.game-topbar{height:90px}.game-main{padding-top:12px;max-width:1120px;min-height:0}.game-intro{display:flex;justify-content:space-between;align-items:center;gap:24px;padding:24px 32px;border:1px solid #e5dbf5;border-radius:26px;background:linear-gradient(120deg,#efe6ff,#f9f3ff 52%,#f1f8ed);margin-bottom:22px}.game-kicker{font-size:10px;font-weight:700;letter-spacing:.15em;color:#775b9d}.game-intro h1{font-size:clamp(34px,5vw,52px);line-height:1.05;margin:8px 0 6px}.game-intro h1 span{color:#977aca;font-size:.65em;vertical-align:18%}.game-intro p{margin:0;color:#6f6286;font-size:16px}.game-categories{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;flex:none}.game-category{display:flex;align-items:center;justify-content:flex-start;gap:10px;min-width:153px;padding:11px 13px;border:2px solid #e7dff0;border-radius:16px;background:#fff;color:var(--ink);text-align:left}.game-category img{object-fit:contain}.game-category strong,.game-category small{display:block}.game-category strong{font:500 20px Fredoka,sans-serif}.game-category small{margin-top:3px;color:#746789;font-size:11px}.game-category:hover{transform:translateY(-2px);border-color:#bda7e5}.game-category[aria-pressed=true]{border-color:#9e81d3;background:#faf5ff;box-shadow:0 3px 0 #e7d9f6}.game-category[data-category=fruits][aria-pressed=true]{border-color:#cc9766;background:#fff8ee;box-shadow:0 3px 0 #f4e0c6}
.match-board{--match-accent:#7656bd;--match-tint:#f4edff;--match-line:#d7c6f1;--match-shelf:#f9f5fe;background:#fff;border:1px solid var(--border);border-radius:25px;padding:23px 29px 14px;box-shadow:0 12px 38px #6d50820a}.match-board[data-theme=fruits]{--match-accent:#a26033;--match-tint:#fff4e5;--match-line:#efd0ac;--match-shelf:#fdf8f1}.board-header{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:17px}.board-header h2{font-size:27px}.board-header p{margin:5px 0 0;color:#6f6286;font-size:14px;line-height:1.45}.match-progress{display:grid;gap:6px;min-width:104px;text-align:right;font-size:14px;font-weight:700;color:var(--match-accent)}.match-progress progress{appearance:none;width:104px;height:7px;border:0;border-radius:10px;background:var(--match-tint);overflow:hidden}.match-progress progress::-webkit-progress-bar{background:var(--match-tint)}.match-progress progress::-webkit-progress-value{background:var(--match-accent);border-radius:10px}.match-progress progress::-moz-progress-bar{background:var(--match-accent);border-radius:10px}
.word-grid,.picture-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:13px}.word-target{min-width:0;display:grid;grid-template-rows:auto 1fr;justify-items:center;gap:10px;border:2px solid var(--match-line);border-radius:16px;background:#fff;padding:10px;color:var(--ink);transition:transform .18s,border-color .18s,background .18s}.word-target:hover:not(:disabled),.word-target.is-over{background:var(--match-tint);border-color:var(--match-accent);transform:translateY(-3px)}.word-label{font:500 clamp(15px,2.4vw,23px)/1.15 Fredoka,sans-serif;overflow-wrap:anywhere}.word-pocket{display:grid;place-items:center;position:relative;width:100%;height:88px;border:2px dashed var(--match-line);border-radius:11px;background:var(--match-tint);color:var(--match-accent)}.word-pocket img{width:63px;height:63px;object-fit:contain;animation:match-pop .38s cubic-bezier(.3,1.3,.5,1)}.drop-cue{font-size:26px;line-height:1;font-weight:400;opacity:.7}.word-target.is-matched{background:#f5fbf6;border-color:#a8cdb0;opacity:1;cursor:default}.word-target.is-matched .word-pocket{border-color:#d4e9d8;background:#eef8ef;color:#387647}.word-target.is-matched .word-pocket:after{content:'✓';position:absolute;right:5px;top:5px;display:grid;place-items:center;background:#fff;border:1px solid #d2e9d7;border-radius:50%;width:21px;height:21px;font-size:13px;font-weight:700}.word-target.is-wrong{border-color:#dda36c;background:#fff6e9;animation:match-nudge .28s ease-in-out}
.picture-shelf{margin-top:15px;padding:11px 12px 13px;border:1px solid var(--match-line);border-radius:15px;background:var(--match-shelf)}.shelf-label{display:flex;gap:6px;align-items:center;margin:0 0 8px 2px;font-size:12px;font-weight:700;color:var(--match-accent)}.picture-grid[hidden],.round-complete[hidden],.picture-shelf:has(.round-complete:not([hidden])) .shelf-label{display:none}.picture-card{min-width:0;height:90px;display:grid;place-items:center;border:2px solid #e6dcef;border-radius:13px;background:#fff;box-shadow:0 3px 0 #eae2f2;cursor:grab;touch-action:none;user-select:none;-webkit-user-select:none;transition:transform .18s,box-shadow .18s,background .18s,border-color .18s}.picture-card:hover:not(:disabled),.picture-card[aria-pressed=true]{border-color:var(--match-accent);background:var(--match-tint);transform:translateY(-3px)}.picture-card img,.drag-ghost img{width:64px;height:64px;max-width:88%;object-fit:contain;pointer-events:none;user-select:none}.picture-card.is-dragging{opacity:.32;cursor:grabbing;transform:none}.picture-card.is-used{visibility:hidden}.drag-ghost{position:fixed;z-index:100;top:0;left:0;pointer-events:none;display:grid;place-items:center;width:90px;height:83px;border:2px solid #b49adf;border-radius:16px;background:#fff;box-shadow:0 11px 23px #51327b33;will-change:transform}.game-status{min-height:23px;margin:9px 0 0;text-align:center;color:#6a567f;font-size:14px;font-weight:600;line-height:1.5}.game-status[data-kind=success]{color:#356642}.game-status[data-kind=retry]{color:#8b572e}
.round-complete{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:9px 11px}.round-complete strong{display:block;font:500 24px Fredoka,sans-serif;color:var(--match-accent)}.round-complete small{display:block;margin-top:4px;font-size:13px;color:#6a5a7e}.round-actions{display:flex;gap:7px;flex-wrap:wrap}.round-actions .primary,.round-actions .secondary{font-size:13px;min-height:39px;padding:8px 13px}.game-effects{position:fixed;inset:0;z-index:110;pointer-events:none;overflow:hidden}.match-spark{position:absolute;left:var(--left);top:var(--top);width:var(--size);height:var(--size);border-radius:var(--shape);background:var(--color);animation:match-spark .73s cubic-bezier(.15,.6,.55,1) forwards}.game-credit{text-align:center;color:#74648a;font-size:11px;margin-top:14px}.game-credit a{color:#684ab0}
@keyframes match-spark{0%{opacity:1;transform:translate(-50%,-50%) scale(.65)}65%{opacity:1}100%{opacity:0;transform:translate(var(--dx),var(--dy)) rotate(var(--angle)) scale(.45)}}@keyframes match-pop{from{transform:scale(.62) rotate(-9deg);opacity:.25}to{transform:scale(1);opacity:1}}@keyframes match-nudge{25%{transform:translateX(-3px)}70%{transform:translateX(3px)}}
@media(max-width:720px){.game-intro{padding:18px 21px;gap:14px}.game-category{min-width:124px;padding:8px}.game-category img{width:39px;height:39px}.match-board{padding:17px 18px 10px}.board-header{gap:10px}.word-grid,.picture-grid{gap:9px}}
@media(max-width:550px){.game-topbar{height:67px}.game-main{padding:5px 12px 18px}.game-intro{align-items:stretch;flex-direction:column;padding:13px 14px;gap:10px;margin-bottom:12px;border-radius:17px}.game-intro h1{font-size:33px;margin:4px 0 2px}.game-intro p{font-size:13px}.game-kicker{font-size:8px}.game-categories{gap:7px}.game-category{min-width:0;gap:7px;padding:6px 8px;border-radius:11px}.game-category img{width:33px;height:33px}.game-category strong{font-size:17px}.game-category small{font-size:10px;margin-top:1px}.match-board{border-radius:17px;padding:13px 9px 8px}.board-header{margin-bottom:10px}.board-header h2{font-size:21px}.board-header p{font-size:11px}.match-progress{font-size:12px;min-width:58px;gap:4px}.match-progress progress{width:58px;height:5px}.word-grid,.picture-grid{gap:5px}.word-target{gap:5px;padding:5px 3px;border-radius:10px}.word-label{font-size:clamp(12px,3.6vw,16px);letter-spacing:-.035em}.word-pocket{height:58px;border-radius:7px}.word-pocket img{width:42px;height:42px}.word-target.is-matched .word-pocket:after{width:15px;height:15px;font-size:10px;right:1px;top:1px}.drop-cue{font-size:20px}.picture-shelf{margin-top:10px;padding:6px 5px 8px;border-radius:10px}.shelf-label{margin-bottom:5px;font-size:10px}.picture-card{height:60px;border-radius:9px}.picture-card img{width:43px;height:43px}.game-status{font-size:11px;margin-top:6px;min-height:17px}.round-complete{padding:6px;gap:7px;flex-wrap:wrap}.round-complete strong{font-size:20px}.round-complete small{font-size:11px}.round-actions .primary,.round-actions .secondary{font-size:11px;padding:6px 10px;min-height:33px}.game-credit{margin-top:10px;font-size:10px}.drag-ghost{width:66px;height:61px}.drag-ghost img{width:47px;height:47px}}
@media(prefers-reduced-motion:reduce){.word-target,.picture-card,.word-pocket img,.match-spark{transition:none;animation:none}}

.game-pointer-glow{position:fixed;inset:0;z-index:0;pointer-events:none;background:radial-gradient(320px circle at var(--glow-x,50%) var(--glow-y,50%),#b583f04a,transparent 75%);opacity:0;transition:opacity .2s}
.game-pointer-glow.is-visible{opacity:1}
.game-main,.game-topbar{position:relative;z-index:1}
.match-board{scroll-margin-top:10px}
.match-progress{gap:4px}
#roundLabel{font-size:11px;font-weight:600;color:#746789}
.word-grid,.picture-grid{grid-template-columns:repeat(5,minmax(0,1fr));gap:10px}
.word-target{gap:7px;padding:8px}
.word-pocket{height:64px}
.word-pocket img{width:53px;height:53px;pointer-events:none;user-select:none}
.picture-card{height:68px}
.picture-card img{width:52px;height:52px}
.word-target.has-picture:not(:disabled) .word-pocket{cursor:grab;touch-action:none;user-select:none}
.word-target.is-dragging .word-pocket img{opacity:.3}
.word-target.is-misplaced{background:#fff5f4;border-color:#dca2a2}
.word-target.is-misplaced .word-pocket{border-color:#e9b6b5;background:#fceae9}
.word-target.is-picked{outline:2px solid var(--match-accent);outline-offset:2px}
.board-footer{display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:36px;margin-top:10px}
.board-footer .game-status{margin:0;text-align:left}
.board-tools{display:flex;gap:6px;flex:none;margin-left:auto}
.board-tools .game-link{min-height:34px;padding:6px 10px;font-size:12px}
#checkMatches{background:var(--match-tint);border-color:var(--match-line);color:var(--match-accent)}
.screen-feedback{position:absolute;inset:0;border:4px solid var(--cue);box-shadow:inset 0 0 42px 9px var(--cue);animation:match-edge .52s ease-out both}
.edge-correct{--cue:#64c183}.edge-wrong{--cue:#e26c70}
@keyframes match-edge{0%{opacity:.85}100%{opacity:0}}
.game-finish-copy{display:flex;gap:13px;align-items:center}
.rank-badge{display:grid;place-items:center;flex:none;width:61px;height:61px;border-radius:16px;background:#eadcf8;border:2px solid #d7c1ef;color:#6f4aa8;font:600 28px Fredoka,sans-serif}
.rank-scale{display:flex;gap:4px;margin-top:7px}
.rank-scale span{min-width:23px;padding:2px 4px;text-align:center;border-radius:5px;background:#f3ebfa;color:#725b89;font-size:10px}
.rank-scale [aria-current=true]{background:#7756b6;color:#fff;font-weight:700}
@media(max-width:550px){
 .word-grid,.picture-grid{gap:5px}
 .word-target{gap:4px;padding:4px 2px}
 .word-label{font-size:clamp(10px,3.15vw,14px)}
 .word-pocket{height:47px}
 .word-pocket img{width:37px;height:37px}
 .picture-card{height:49px}
 .picture-card img{width:36px;height:36px}
 #roundLabel{font-size:9px}
 .board-footer{align-items:flex-start;flex-wrap:wrap;margin-top:7px;gap:4px}
 .board-footer .game-status{width:100%;min-height:0}
 .board-footer .game-status:empty{display:none}
 .board-tools .game-link{font-size:10px;min-height:28px;padding:4px 8px}
 .rank-badge{width:47px;height:47px;font-size:22px;border-radius:12px}
}
@media(prefers-reduced-motion:reduce){.game-pointer-glow{display:none}.screen-feedback{animation:none;opacity:.5}}

.game-categories{grid-template-columns:repeat(3,minmax(0,1fr))}
.game-category{min-width:136px}
.pronoun-category-art{display:grid;place-items:center;min-width:42px;height:46px;font:600 31px Fredoka,sans-serif;color:#7850b0}
.pronoun-modes{display:flex;gap:10px;flex-wrap:wrap;margin:0 0 18px}
.pronoun-modes button{min-height:44px;font-size:16px;color:#65468c;background:#fff;border:1px solid #c7ace8;border-radius:13px;padding:10px 16px;opacity:1}
.pronoun-modes button[aria-pressed=true]{background:#7855b4;color:#fff;border-color:#7855b4}
.pronoun-modes[hidden],.match-board[hidden]{display:none}
.match-board[data-theme=pronouns]{--match-accent:#7750ae;--match-tint:#f3ebff;--match-line:#d9c8ee;--match-shelf:#f7f2ff}
.match-board[data-theme=pronouns] .word-grid,.match-board[data-theme=pronouns] .picture-grid{grid-template-columns:repeat(7,minmax(0,1fr))}
.pronoun-card-text{font:500 21px/1.2 Fredoka,sans-serif;text-align:center;max-width:100%;padding:5px;pointer-events:none;overflow-wrap:normal}
.match-board[data-theme=pronouns] .picture-card{height:142px}
.match-board[data-theme=pronouns] .word-pocket{height:126px}
.pronoun-card{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;pointer-events:none;width:100%}
.pronoun-card img,.word-pocket .pronoun-card img,.drag-ghost .pronoun-card img{height:80px;width:80px;object-fit:contain;max-width:100%}
.pronoun-card .pronoun-card-text{font:500 16px/1.15 Fredoka,sans-serif;padding:2px}
.drag-ghost:has(.pronoun-card){width:112px;height:140px}
.word-pocket .pronoun-card-text{font-size:15px}
.pronoun-quiz{min-height:380px;background:linear-gradient(135deg,#fff,#f8f2ff);padding-bottom:25px}
.pronoun-question{padding:24px 0 12px;text-align:center}
.pronoun-question h3{font:500 clamp(27px,4vw,43px)/1.3 Fredoka,sans-serif;margin:18px 0 27px;color:var(--ink)}
.pronoun-context{font-size:18px;color:#6f6286;margin:0 0 14px}
.pronoun-choices{display:flex;justify-content:center;gap:14px;flex-wrap:wrap}
.pronoun-choice{padding:15px 24px;min-height:58px;min-width:100px;border:2px solid #d9c8ee;background:#fff;border-radius:15px;font:500 24px/1.3 Fredoka,sans-serif;color:var(--ink)}
.pronoun-choice:hover:not(:disabled){background:#efe5ff;border-color:#9c79ce}
.pronoun-choice.is-correct{background:#e8f7ec;border-color:#75b68a;color:#276b3b;opacity:1}
.pronoun-choice.is-wrong{background:#fff0ef;border-color:#df9b99}
.quiz-controls{display:flex;justify-content:center;gap:12px;margin-top:19px;flex-wrap:wrap}
.quiz-controls [hidden]{display:none}
.quiz-progress{font-size:16px;white-space:nowrap;color:#7750ae}
@media(max-width:960px){.game-intro{align-items:stretch;flex-direction:column}.game-category{min-width:0}}
@media(max-width:800px){.match-board[data-theme=pronouns] .word-grid,.match-board[data-theme=pronouns] .picture-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:550px){.game-category{gap:4px;padding:6px}.game-category strong{font-size:16px}.game-category small{font-size:10px}.game-category img{width:28px;height:28px}.pronoun-category-art{min-width:26px;font-size:24px}.game-categories{gap:4px}.pronoun-modes{gap:6px}.pronoun-modes button{padding:8px 10px;font-size:14px}.match-board[data-theme=pronouns] .picture-card{height:123px}.match-board[data-theme=pronouns] .word-pocket{height:108px}.pronoun-card img,.word-pocket .pronoun-card img{width:66px;height:66px}.pronoun-card .pronoun-card-text{font-size:14px}.pronoun-quiz{padding:16px 13px}.quiz-progress{font-size:13px}.pronoun-choices{gap:8px}.pronoun-choice{font-size:20px;min-width:76px;padding:13px}.pronoun-context{font-size:16px}.pronoun-question{padding-top:12px}}
