/* A warm, spacious classroom theme. Activity mechanics live in style.css. */
:root {
  --purple: #176b57;
  --muted: #667167;
  --line: #e7e9df;
  color: #293e33;
  background: #faf9f3;
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
}
body { background: radial-gradient(ellipse at 0 30%, #f3f4e7 0, transparent 45%), #faf9f3; }
button, a, select { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, select:focus-visible { outline: 3px solid #e09c31; outline-offset: 4px; }
header { background: #fffdf8; border-bottom: 1px solid #e7e9df; }
.bar, main, footer { max-width: 1210px; }
.bar { height: 86px; }
.brand { font-size: 23px; letter-spacing: -.6px; gap: 11px; }
.brand small { color: #6c7c6c; letter-spacing: 1.6px; font-size: 9px; }
.logo { background: #287b64; border-radius: 16px 16px 16px 5px; transform: rotate(-5deg); width: 47px; height: 47px; box-shadow: 0 3px 0 #155b49; color: #ffe49d; }
.brand b { color: #258267; }
.header-actions { gap: 12px; }
.sound-toggle { background: #fff; color: #3f5d4c; border-color: #dde4d8; min-height: 42px; }
.stars { border: 1px solid #ecd995; background: #fff4cc; color: #785520; }
main { padding-top: 28px; }
.hero { min-height: 360px; padding: 36px 45px; background: #edf4e5; border: 1px solid #dfe8d5; border-radius: 28px; grid-template-columns: 1.08fr 1fr; position: relative; }
.hero-copy { position: relative; z-index: 1; }
.hero .eyebrow { color: #3d745c; letter-spacing: 1.1px; font-size: 11px; }
.hero .eyebrow span { margin-right: 5px; color: #b88124; }
.hero h1 { font-size: clamp(37px,4.5vw,59px); line-height: 1.12; letter-spacing: -2px; margin: 16px 0; color: #2e4937; }
.hero h1 em { font-style: normal; color: #29836b; }
.hero p:not(.eyebrow) { font-size: 16px; line-height: 1.65; max-width: 385px; color: #556b55; margin-bottom: 22px; }
.primary { background: #287b64; border-radius: 13px; padding: 12px 21px; box-shadow: 0 4px 0 #185e4b; min-height: 47px; font-weight: 800; transition: transform .15s; }
.primary:hover { background: #1e6a55; transform: translateY(-1px); }
.primary:active { transform: translateY(2px); box-shadow: 0 2px 0 #185e4b; }
.hero .primary span { margin-left: 15px; }
.hero-note { font-size: 12px; color: #61745e; margin-top: 18px; }
.hero-note span { color: #b17c2c; margin-right: 5px; font-size: 17px; }
.hero-art { position: relative; display: flex; flex-direction: column; align-items: center; }
.hero svg { max-height: 315px; width: 100%; overflow: visible; }
.art-label { margin-top: -6px; padding: 6px 14px; background: #fffaf0; border: 1px solid #eadfc4; border-radius: 20px; color: #7d6636; font-size: 12px; transform: rotate(-3deg); }
.art-label span { color: #c18c25; }
.section-heading { margin: 35px 0 19px; align-items: center; }
.eyebrow { color: #6f806b; letter-spacing: 1.2px; font-size: 10px; }
.section-heading h2 { font-size: 29px; letter-spacing: -.8px; margin-top: 4px; }
#activity-count { border: 1px solid #e3e6dc; background: white; border-radius: 20px; padding: 8px 13px; font-size: 12px; color: #5d705a; white-space: nowrap; }
.category-menu { gap: 14px; }
.category-button { --accent: #337a62; --soft: #e7f2df; background: #fff; color: #304b39; border: 2px solid #e4e9de; min-height: 88px; padding: 14px 16px; border-radius: 17px; gap: 12px; position: relative; transition: background .15s, border-color .15s; }
.category-button:nth-child(2) { --accent: #a76621; --soft: #fff1d9; color: #6b4b26; }
.category-button:nth-child(3) { --accent: #815b9e; --soft: #f0e8f7; color: #614677; }
.category-button:hover, .category-button[aria-pressed=true] { background: var(--soft); border-color: var(--accent); }
.category-icon { background: var(--soft); color: var(--accent); border-radius: 14px; width: 48px; height: 48px; font-size: 21px; }
.category-button[aria-pressed=true] .category-icon { background: var(--accent); color: white; }
.category-button strong { font-size: 16px; display: block; }
.category-button small { display: block; margin-top: 3px; font-size: 12px; opacity: .85; }
.category-check { display: none; margin-left: auto; color: var(--accent); font-weight: bold; }
.category-button[aria-pressed=true] .category-check { display: inline; }
.practice-length { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; background: transparent; border: 0; border-bottom: 1px dashed #d9dfd0; border-radius: 0; margin: 8px 0 17px; padding: 13px 1px; color: #52644e; }
.practice-length label { font-size: 13px; }
.practice-length select { border-color: #d8dfcf; background: white; color: #435a3f; min-height: 37px; font-size: 13px; }
.practice-length p { margin: 0 0 0 auto; font-size: 11px; max-width: 410px; color: #727d6b; }
.group-title { font-size: 16px; color: #4b6046; margin: 19px 0 14px; }
.cards { grid-template-columns: repeat(3, minmax(0,1fr)); gap: 17px; }
.card { min-height: 184px; padding: 20px; border: 1px solid #e4e6dd; border-radius: 20px; box-shadow: 0 4px 0 #eaece2; grid-template-columns: 62px 1fr; gap: 13px; align-content: start; transition: transform .16s, box-shadow .16s; }
.card:hover { border-color: #9ab79c; background: #fff; transform: translateY(-3px); box-shadow: 0 7px 0 #e4e9dc; }
.card .symbol { width: 62px; height: 62px; font-size: 31px; border-radius: 19px 19px 19px 6px; background: var(--tint); color: #475238; }
.card strong { color: #304631; font-size: 18px; letter-spacing: -.3px; line-height: 1.3; }
.card small { color: #697362; font-size: 13px; line-height: 1.5; margin-top: 7px; }
.card .arrow { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; border-top: 1px dashed #e4e7dc; padding-top: 11px; margin-top: 2px; font-size: 12px; color: #4e7653; }
.card .arrow b { display: grid; place-items: center; width: 25px; height: 25px; background: #eef3e8; border-radius: 50%; font-size: 16px; }
.card .completed-label { color: #2c7153; font-size: 11px; margin-top: 4px; }
#home[data-category="1"] .card .arrow { color: #956021; }
#home[data-category="2"] .card .arrow { color: #79558f; }
footer { padding-top: 24px; padding-bottom: 24px; color: #7c8574; font-size: 11px; }
footer strong { color: #50664a; font-size: 14px; }
#back { padding: 10px 15px; border: 1px solid #dce3d5; border-radius: 12px; background: white; color: #476440; font-size: 14px; }
.board { max-width: 900px; border: 1px solid #e1e7d8; border-top: 6px solid #80b399; border-radius: 24px; box-shadow: 0 7px 0 #ecede3; padding: clamp(20px,4vw,42px); }
.board h1 { color: #2d513c; letter-spacing: -1px; margin-top: 7px; }
.board p { line-height: 1.65; }
.board .eyebrow { color: #597951; }
.board progress { accent-color: #388969; height: 10px; margin: 14px 0 5px; }
.choice, .tile { min-height: 64px; border: 2px solid #dfe7d6; border-bottom-width: 5px; background: #f5f8ef; color: #405c35; }
.choice:hover:not(:disabled), .tile:hover:not(:disabled) { border-color: #8aac77; }
.choice.correct, .tile.matched { background: #daf3e0; border-color: #77b28c; }
.choice.wrong { background: #ffebe4; border-color: #dda08b; }
.feedback { color: #486944; }
.key { background: #eef3e6; color: #4c6d3b; }
.listen-button { background: #edf6ea; color: #356d4b; border-color: #bfd8b6; min-height: 44px; }
.drawing-tools button, .palette button, .drag-slot { min-height: 44px; }
.puzzle-grid { max-width: 100%; }
@media (max-width: 1000px) {
  .hero { padding: 30px; }
  .category-button { padding: 12px; gap: 8px; }
  .category-button strong { font-size: 14px; }
  .category-check { display: none !important; }
  .practice-length p { max-width: 340px; }
}
@media (max-width: 760px) {
  .bar, main, footer { padding-inline: 18px; }
  .hero { grid-template-columns: 1.15fr 1fr; padding: 26px; }
  .hero h1 { font-size: 37px; letter-spacing: -1.4px; }
  .hero p:not(.eyebrow) { font-size: 14px; }
  .hero .eyebrow { font-size: 9px; }
  .hero-note, .art-label { display: none; }
  .category-button { flex-direction: column; text-align: center; gap: 8px; }
  .category-button small { font-size: 10px; }
  .category-icon { width: 40px; height: 40px; }
  .cards { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .card { padding: 16px; grid-template-columns: 50px 1fr; }
  .card .symbol { width: 50px; height: 50px; font-size: 25px; }
  .card strong { font-size: 16px; }
  .practice-length p { flex-basis: 100%; max-width: none; }
}
@media (max-width: 520px) {
  .bar { height: 74px; }
  .brand { font-size: 18px; gap: 8px; }
  .brand small { font-size: 7px; letter-spacing: 1px; }
  .logo { width: 36px; height: 36px; font-size: 24px; border-radius: 12px 12px 12px 4px; }
  .header-actions { gap: 6px; }
  .sound-toggle { font-size: 0; padding: 7px 9px; }
  .sound-toggle .sound-icon { font-size: 17px; }
  .stars { padding: 7px 9px; font-size: 12px; }
  main { padding-top: 16px; }
  .hero { grid-template-columns: 1fr; padding: 25px 24px 14px; }
  .hero h1 { font-size: 38px; }
  .hero-art { margin-top: 10px; }
  .hero svg { max-height: 190px; margin: 0; }
  .hero .primary { font-size: 14px; padding: 10px 16px; }
  .hero p:not(.eyebrow) { margin-bottom: 16px; }
  .section-heading { align-items: start; gap: 8px; margin-top: 27px; flex-wrap: wrap; }
  .section-heading h2 { font-size: 25px; }
  #activity-count { font-size: 11px; padding: 5px 10px; }
  .category-menu { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 7px; }
  .category-button { border-radius: 14px; min-height: 114px; padding: 10px 4px; }
  .category-button strong { font-size: 12px; line-height: 1.3; }
  .category-button small { display: none; }
  .category-icon { width: 37px; height: 37px; font-size: 17px; }
  .cards { grid-template-columns: 1fr; gap: 13px; }
  .card { min-height: 126px; padding: 15px 17px; }
  .card .arrow { padding-top: 8px; }
  .card-copy { align-self: center; }
  .board { padding-inline: 14px; }
  .board h1 { font-size: 29px; }
  .board .question { font-size: 36px; }
  .board .options { gap: 9px; }
  .board .puzzle-pair { gap: 10px; }
  footer { gap: 7px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}

/* Bright meadow inspired by the supplied reference. */
:root { background: #a7df55; --purple: #167caa; }
body { background: #a7df55 url("meadow.svg") center top / cover fixed no-repeat; min-height: 100vh; }
header { background: #f5ffffed; border-bottom: 3px solid #fff; box-shadow: 0 3px 16px #168bb31a; }
.logo { background: #0c94bd; box-shadow: 0 3px 0 #067196; }
.brand b { color: #0089b2; }
main { margin-top: 22px; margin-bottom: 24px; background: #fffffff0; border: 3px solid #fff; border-radius: 30px; box-shadow: 0 12px 40px #287c6020; padding: 22px 28px 30px; }
.hero { background: linear-gradient(115deg,#e9fcff 5%,#c4f5fb 60%,#e8ffbd); border: 2px solid #a5e5f2; box-shadow: 0 5px 0 #d2f1ed; }
.hero h1 { color: #115371; }
.hero h1 em { color: #0c91b7; }
.hero p:not(.eyebrow) { color: #3b6171; }
.hero .eyebrow { color: #26798d; }
.primary { background: #0785b3; box-shadow: 0 4px 0 #056689; }
.primary:hover { background: #06749c; }
.primary:active { box-shadow: 0 2px 0 #056689; }
.section-heading h2 { color: #17647f; }
.category-button { --accent: #087eab; --soft: #e2f8ff; border-color: #b8e8f5; }
.category-button:nth-child(2) { --accent: #a66100; --soft: #fff1b8; border-color: #f4da83; }
.category-button:nth-child(3) { --accent: #a6397d; --soft: #ffe3f3; border-color: #efbada; }
.card { border: 2px solid #d0ebbd; box-shadow: 0 4px 0 #dcefc9; background: #fffef2; }
.card:nth-child(3n+2) { border-color: #c1e9f3; background: #f2fcff; box-shadow: 0 4px 0 #d4edf2; }
.card:nth-child(3n+3) { border-color: #f4d3de; background: #fff5fa; box-shadow: 0 4px 0 #f6e1e9; }
.card:hover { border-color: #53b2cf; box-shadow: 0 7px 0 #d5edf2; }
.board { border-color: #b8e6f0; border-top-color: #30b3d1; box-shadow: 0 7px 0 #d8edf1; }
.board h1 { color: #17647f; }
footer { border: 2px solid white; border-radius: 20px; background: #faffeeed; padding: 20px 28px; margin-bottom: 24px; color: #4e6d36; }
@media(max-width: 1270px) { main, footer { margin-left: 20px; margin-right: 20px; } }
@media(max-width: 760px) { main { padding: 16px; margin: 14px 12px 20px; border-radius: 23px; } footer { margin-inline: 12px; padding: 18px; } }
@media(max-width: 520px) { body { background-size: auto 100vh; } main { padding: 10px; margin-inline: 8px; } .hero { padding-inline: 20px; } }
