/* =========================================================================
   Learning games: dashboard strip, hub (#games-screen), player (#play-screen)
   and the look of each game. Same dark laboratory theme as styles.css.
   ========================================================================= */

/* ------------------------------------------------------------ dashboard */
.menu-shortcut--games { color: #f5d38a; background: rgba(245, 184, 75, .08); border-color: rgba(245, 184, 75, .38); }
.menu-shortcut--games:hover { background: rgba(245, 184, 75, .16); border-color: #f5b84b; }
.menu-shortcut--games kbd { background: #f5b84b; box-shadow: 0 2px 0 #a8761f; }
.dashboard-games-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin: 30px 0 12px; }
.dashboard-games-head p:not(.eyebrow) { margin: 0; color: #80929b; font-size: 13px; }
.dashboard-games { display: grid; grid-template-columns: repeat(5, minmax(150px, 1fr)); gap: 10px; }
.dash-game { position: relative; display: grid; gap: 4px; text-align: left; padding: 14px 14px 13px; border: 1px solid var(--line); border-top: 3px solid var(--accent); background: linear-gradient(150deg, rgba(12, 35, 51, .92), rgba(7, 21, 33, .9)); border-radius: 4px; cursor: pointer; transition: transform .2s, border-color .2s; }
.dash-game:hover { transform: translateY(-3px); border-color: var(--accent); }
.dash-game__n { color: var(--accent); font: 500 10px DM Mono, monospace; letter-spacing: .14em; }
.dash-game strong { font-size: 14.5px; }
.dash-game small { color: #8ea1aa; font-size: 11.5px; }
.dash-game.is-done::after { content: "✓"; position: absolute; top: 10px; right: 12px; color: var(--accent); font-weight: 800; }
.dash-game.is-locked { filter: saturate(.35); opacity: .75; }
#dashboard-screen.game-overlay .dash-game { backdrop-filter: blur(9px); }
@media (max-width: 920px) { .dashboard-games { grid-template-columns: repeat(5, 170px); overflow-x: auto; padding-bottom: 8px; } }

/* ------------------------------------------------------------------ hub */
.games-screen, .play-screen { flex-direction: column; background: radial-gradient(circle at 80% 0%, rgba(84, 223, 215, .08), transparent 40%), radial-gradient(circle at 0% 100%, rgba(122, 102, 255, .08), transparent 40%), var(--ink); }
.games-wrap { width: min(1280px, 94vw); margin: 0 auto; padding: 38px 0 120px; }
.games-heading { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; }
.games-heading h2 { font-size: clamp(42px, 5.4vw, 72px); margin: 12px 0 10px; }
.games-heading p:not(.eyebrow) { margin: 0; color: #8da1aa; max-width: 560px; line-height: 1.6; font-size: 15px; }
.games-stats { display: flex; gap: 10px; }
.games-stat { min-width: 108px; padding: 14px 16px; border: 1px solid var(--line); background: rgba(12, 33, 50, .7); text-align: center; border-radius: 4px; }
.games-stat strong { display: block; font-size: 26px; color: var(--cyan); }
.games-stat small { color: #7f939c; font: 500 9.5px DM Mono, monospace; letter-spacing: .14em; }
.games-tabs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; margin: 30px 0 18px; }
.games-tab { position: relative; display: grid; gap: 3px; text-align: left; padding: 12px 14px; border: 1px solid var(--line); background: rgba(9, 26, 42, .8); border-radius: 4px; cursor: pointer; transition: .2s; overflow: hidden; }
.games-tab::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--accent); opacity: .45; }
.games-tab:hover { border-color: var(--accent); }
.games-tab.is-active { border-color: var(--accent); background: linear-gradient(160deg, color-mix(in srgb, var(--accent) 22%, #0b2133), #0a1c2b); box-shadow: 0 12px 34px rgba(0, 0, 0, .3); }
.games-tab.is-active::before { opacity: 1; }
.games-tab__n { color: var(--accent); font: 500 11px DM Mono, monospace; letter-spacing: .14em; }
.games-tab__name { font-weight: 800; font-size: 14px; }
.games-tab__state { color: #8da1aa; font-size: 11.5px; }
.games-tab.is-done .games-tab__state { color: #87edbd; }
.games-tab.is-locked { opacity: .7; }
.games-level { position: relative; padding: 22px; border: 1px solid var(--line); border-radius: 6px; background: linear-gradient(170deg, rgba(12, 33, 50, .75), rgba(7, 19, 30, .75)); }
.games-level__head h3 { margin: 6px 0 4px; font-size: 30px; letter-spacing: -.03em; }
.games-level__head p:not(.eyebrow) { margin: 0 0 18px; color: #8da1aa; }
.games-level__head .eyebrow { color: var(--accent); }
.games-level.is-locked .challenge-card, .games-level.is-locked .game-grid { filter: grayscale(.8) brightness(.7); pointer-events: none; }
.games-lock { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 16px; padding: 14px 16px; border: 1px dashed rgba(245, 184, 75, .5); background: rgba(245, 184, 75, .07); border-radius: 6px; }
.games-lock > span { font-size: 26px; }
.games-lock p { margin: 0; flex: 1 1 240px; color: #e9dcc0; }
.games-subtitle { margin: 26px 0 12px; color: #a9bac2; font: 500 12px DM Mono, monospace; letter-spacing: .18em; text-transform: uppercase; }
.challenge-card { display: grid; grid-template-columns: auto 1fr auto; gap: 22px; align-items: center; padding: 22px; border: 1px solid color-mix(in srgb, var(--accent) 55%, transparent); border-radius: 8px; background: radial-gradient(circle at 0% 0%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 55%), rgba(6, 22, 33, .9); box-shadow: 0 18px 50px rgba(0, 0, 0, .25); animation: rise .5s ease both; }
.challenge-card__badge { display: grid; place-items: center; width: 82px; height: 82px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, color-mix(in srgb, var(--accent) 55%, white 10%), color-mix(in srgb, var(--accent) 25%, #06151b)); box-shadow: 0 0 40px color-mix(in srgb, var(--accent) 35%, transparent); font-size: 38px; animation: float 4s ease-in-out infinite; }
.challenge-card__body h3 { margin: 6px 0; font-size: 24px; }
.challenge-card__body p:not(.eyebrow) { margin: 0 0 10px; color: #a3b5bd; line-height: 1.55; font-size: 14px; }
.challenge-card__body .eyebrow { color: var(--accent); }
.challenge-card__parts { display: flex; flex-wrap: wrap; gap: 6px; }
.challenge-card__side { display: grid; gap: 12px; justify-items: end; text-align: right; }
.best small { display: block; color: #7f939c; font: 500 9.5px DM Mono, monospace; letter-spacing: .14em; }
.best strong { display: block; font-size: 30px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px; background: color-mix(in srgb, var(--accent, #54dfd7) 15%, transparent); border: 1px solid color-mix(in srgb, var(--accent, #54dfd7) 40%, transparent); color: color-mix(in srgb, var(--accent, #54dfd7) 70%, white); font: 700 11.5px Manrope, sans-serif; }
.game-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.game-card { position: relative; display: grid; grid-template-rows: auto 1fr auto; overflow: hidden; border: 1px solid var(--line); border-radius: 8px; background: rgba(8, 24, 37, .92); transition: transform .22s, border-color .22s, box-shadow .22s; animation: rise .5s ease both; animation-delay: calc(var(--i) * 70ms); }
.game-card:hover { transform: translateY(-4px); border-color: var(--accent); box-shadow: 0 18px 44px rgba(0, 0, 0, .3); }
.game-card__art { height: 92px; display: grid; place-items: center; font-size: 42px; background: var(--art, linear-gradient(135deg, color-mix(in srgb, var(--accent) 30%, #0a1f30), #08192a)); border-bottom: 1px solid var(--line); }
.game-card__art span { filter: drop-shadow(0 6px 14px rgba(0, 0, 0, .4)); transition: transform .3s; }
.game-card:hover .game-card__art span { transform: scale(1.15) rotate(-6deg); }
.game-card[data-type="sequence"] { --art: repeating-linear-gradient(90deg, rgba(84,223,215,.18) 0 2px, transparent 2px 46px), linear-gradient(135deg, #0f3340, #08192a); }
.game-card[data-type="truefalse"] { --art: linear-gradient(90deg, rgba(255,107,107,.32) 0 50%, rgba(80,214,140,.32) 50%), #0a1f30; }
.game-card[data-type="memory"] { --art: repeating-conic-gradient(rgba(122,102,255,.28) 0 25%, transparent 0 50%) 0 0 / 28px 28px, #0d1d36; }
.game-card[data-type="connect"] { --art: radial-gradient(circle at 20% 50%, rgba(122,102,255,.5) 0 6px, transparent 7px), radial-gradient(circle at 80% 50%, rgba(84,223,215,.5) 0 6px, transparent 7px), linear-gradient(135deg, #16123a, #08192a); }
.game-card[data-type="fillblanks"] { --art: repeating-linear-gradient(0deg, rgba(180,249,220,.14) 0 1px, transparent 1px 18px), linear-gradient(135deg, #0f2d33, #08192a); }
.game-card[data-type="wordsearch"] { --art: radial-gradient(rgba(84,223,215,.32) 1.5px, transparent 2px) 0 0 / 14px 14px, linear-gradient(135deg, #0b2a35, #08192a); }
.game-card[data-type="crossword"] { --art: linear-gradient(rgba(255,255,255,.12) 1px, transparent 1px) 0 0 / 18px 18px, linear-gradient(90deg, rgba(255,255,255,.12) 1px, transparent 1px) 0 0 / 18px 18px, linear-gradient(135deg, #3a2b12, #08192a); }
.game-card[data-type="dragdrop"] { --art: linear-gradient(135deg, rgba(255,138,101,.35), transparent 60%), repeating-linear-gradient(45deg, rgba(255,255,255,.05) 0 8px, transparent 8px 16px), #0a1f30; }
.game-card[data-type="sort"] { --art: linear-gradient(90deg, rgba(80,214,140,.3) 0 48%, transparent 48% 52%, rgba(255,107,107,.3) 52%), #0a1f30; }
.game-card__body { padding: 14px 16px 6px; }
.game-card__body small { color: var(--accent); font: 500 10px DM Mono, monospace; letter-spacing: .14em; }
.game-card__body h4 { margin: 6px 0; font-size: 17px; }
.game-card__body p { margin: 0; color: #91a5ae; font-size: 13px; line-height: 1.5; }
.game-card__foot { display: flex; align-items: center; gap: 10px; padding: 12px 16px 14px; }
.game-card__best { color: #8da1aa; font-size: 12px; }
.game-card__new { padding: 3px 8px; border-radius: 999px; background: rgba(245, 184, 75, .16); color: #f5d38a; font: 800 10px Manrope, sans-serif; letter-spacing: .1em; }
.game-card__play { margin-left: auto; padding: 9px 14px; border: 1px solid var(--accent); border-radius: 999px; background: color-mix(in srgb, var(--accent) 16%, transparent); color: #fff; font-weight: 800; font-size: 13px; cursor: pointer; transition: .2s; }
.game-card__play:hover:not(:disabled) { background: var(--accent); color: #06151b; }
.stars { display: inline-flex; gap: 2px; font-size: 16px; }
.stars i { font-style: normal; color: rgba(255, 255, 255, .16); }
.stars i.is-on { color: #f5c451; text-shadow: 0 0 12px rgba(245, 196, 81, .6); }
.games-badges { margin-top: 10px; }
.badge-row { display: flex; flex-wrap: wrap; gap: 10px; }
.badge { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border: 1px solid rgba(245, 196, 81, .32); background: rgba(245, 196, 81, .07); border-radius: 999px; }
.badge > span { font-size: 22px; }
.badge strong { display: block; font-size: 13px; }
.badge small { color: #a8b4a0; font-size: 11.5px; }
.badge.is-new { animation: pop .6s cubic-bezier(.2, 1.4, .4, 1) both; }
.games-empty { color: #7f939c; font-size: 13.5px; }

/* --------------------------------------------------------------- player */
.play-screen { min-height: 100vh; position: relative; --accent: #54dfd7; }
.play-screen::before { content: ""; position: fixed; inset: 0; pointer-events: none; opacity: .5; background: var(--play-bg, none); }
.play-screen[data-type="quiz"] { --play-bg: radial-gradient(ellipse at 50% -10%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 60%); }
.play-screen[data-type="mysterybox"] { --play-bg: radial-gradient(circle at 50% 20%, rgba(122,102,255,.22), transparent 55%), repeating-linear-gradient(135deg, rgba(255,255,255,.025) 0 12px, transparent 12px 24px); }
.play-screen[data-type="matchdrag"] { --play-bg: linear-gradient(90deg, rgba(84,223,215,.08), transparent 45%, rgba(122,102,255,.08)); }
.play-screen[data-type="scramble"], .play-screen[data-type="identify"] { --play-bg: radial-gradient(circle at 50% 70%, rgba(245,184,75,.16), transparent 55%); }
.play-screen[data-type="labhunt"] { --play-bg: radial-gradient(circle at 50% 30%, rgba(255,107,107,.14), transparent 60%); }
.play-screen[data-type="crossword"] { --play-bg: linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px) 0 0 / 32px 32px, linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px) 0 0 / 32px 32px; }
.play-screen[data-type="wordsearch"] { --play-bg: radial-gradient(rgba(84,223,215,.08) 1px, transparent 1.5px) 0 0 / 22px 22px; }
.play-screen[data-type="memory"] { --play-bg: radial-gradient(circle at 20% 30%, rgba(122,102,255,.18), transparent 45%), radial-gradient(circle at 80% 70%, rgba(84,223,215,.12), transparent 45%); }
.play-screen[data-type="truefalse"] { --play-bg: linear-gradient(90deg, rgba(255,107,107,.1), transparent 35%, transparent 65%, rgba(80,214,140,.1)); }
.play-top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 16px; height: 72px; padding: 0 4vw; border-bottom: 1px solid var(--line); background: rgba(5, 17, 27, .92); backdrop-filter: blur(10px); }
.play-title { flex: 1 1 auto; min-width: 0; display: grid; gap: 3px; }
.play-title small { color: var(--accent); font: 500 10px DM Mono, monospace; letter-spacing: .14em; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.play-title strong { font-size: 18px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.play-tools { display: flex; align-items: center; gap: 10px; }
.play-timer { color: #8da1aa; font: 500 13px DM Mono, monospace; }
.play-speaker { display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 50%; background: rgba(12, 33, 50, .9); cursor: pointer; font-size: 18px; transition: .2s; }
.play-speaker:hover { border-color: var(--accent); transform: scale(1.06); }
.play-score { display: flex; align-items: baseline; gap: 5px; padding: 8px 14px; border: 1px solid color-mix(in srgb, var(--accent) 50%, transparent); border-radius: 999px; background: color-mix(in srgb, var(--accent) 12%, transparent); }
.play-score span { color: #f5c451; }
.play-score strong { font-size: 20px; }
.play-score small { color: #8da1aa; }
.play-score.is-bump { animation: bump .45s cubic-bezier(.2, 1.6, .4, 1); }
.play-progress { display: flex; align-items: center; gap: 14px; width: min(1180px, 92vw); margin: 16px auto 0; }
.play-track { flex: 1; height: 8px; border-radius: 8px; background: rgba(150, 206, 212, .12); overflow: hidden; }
.play-track i { display: block; height: 100%; width: 0; border-radius: 8px; background: linear-gradient(90deg, var(--accent), color-mix(in srgb, var(--accent) 50%, white)); box-shadow: 0 0 16px color-mix(in srgb, var(--accent) 60%, transparent); transition: width .5s cubic-bezier(.2, .8, .2, 1); }
.play-step { min-width: 120px; text-align: right; color: #a3b5bd; font: 500 12px DM Mono, monospace; letter-spacing: .06em; }
.play-stage { position: relative; width: min(1180px, 92vw); margin: 18px auto 0; padding-bottom: 210px; }
.play-screen.has-feedback .game-stage { pointer-events: none; }
.game-stage { animation: rise .45s ease both; }
.intro-card { max-width: 680px; margin: 5vh auto 0; padding: 36px 34px; text-align: center; border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent); border-radius: 14px; background: radial-gradient(circle at 50% 0%, color-mix(in srgb, var(--accent) 20%, transparent), transparent 60%), rgba(6, 22, 33, .94); box-shadow: 0 24px 70px rgba(0, 0, 0, .4); animation: pop .5s cubic-bezier(.2, 1.2, .4, 1) both; }
.intro-card__icon { display: grid; place-items: center; width: 92px; height: 92px; margin: 0 auto 10px; border-radius: 50%; font-size: 44px; background: radial-gradient(circle at 35% 30%, color-mix(in srgb, var(--accent) 50%, white 8%), color-mix(in srgb, var(--accent) 18%, #06151b)); box-shadow: 0 0 46px color-mix(in srgb, var(--accent) 35%, transparent); animation: float 4s ease-in-out infinite; }
.intro-card .eyebrow { color: var(--accent); }
.intro-card h2 { font-size: clamp(32px, 4.4vw, 50px); margin: 10px 0 12px; }
.intro-card__lead { color: #b1c2c9; line-height: 1.65; font-size: 15.5px; margin: 0 auto 18px; max-width: 540px; }
.intro-parts { display: grid; gap: 8px; max-width: 420px; margin: 0 auto 18px; padding: 0; list-style: none; text-align: left; }
.intro-parts li { padding: 10px 14px; border: 1px solid var(--line); border-radius: 8px; background: rgba(12, 33, 50, .7); font-size: 14px; }
.intro-parts b { color: var(--accent); margin-right: 6px; }
.intro-card__best { color: #f5d38a; font-size: 13.5px; }
.play-start { margin-top: 6px; border-radius: 999px; padding: 15px 26px; }
.play-start:focus-visible, .primary-button:focus-visible, .secondary-button:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }

/* Feedback: a sheet that slides up from the bottom with the document's explanation. */
.play-feedback { position: fixed; z-index: 40; left: 50%; bottom: 92px; width: min(860px, calc(100vw - 24px)); display: flex; align-items: center; gap: 16px; padding: 16px 18px; border-radius: 14px; border: 1px solid; background: rgba(5, 20, 29, .97); box-shadow: 0 24px 60px rgba(0, 0, 0, .5); transform: translateX(-50%); animation: sheet .35s cubic-bezier(.2, 1.1, .4, 1) both; }
.play-feedback[hidden] { display: none; }
.play-feedback.is-ok { border-color: rgba(80, 214, 140, .6); box-shadow: 0 24px 60px rgba(0, 0, 0, .5), inset 4px 0 0 #50d68c; }
.play-feedback.is-bad { border-color: rgba(255, 107, 107, .6); box-shadow: 0 24px 60px rgba(0, 0, 0, .5), inset 4px 0 0 #ff6b6b; }
.play-feedback__icon { flex: 0 0 auto; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; font-size: 24px; font-weight: 800; color: #06151b; }
.play-feedback.is-ok .play-feedback__icon { background: #50d68c; animation: pop .5s cubic-bezier(.2, 1.6, .4, 1) both; }
.play-feedback.is-bad .play-feedback__icon { background: #ff6b6b; animation: shake .45s ease; }
.play-feedback__body { flex: 1 1 auto; min-width: 0; max-height: 34vh; overflow: auto; }
.play-feedback__body strong { display: block; font-size: 16.5px; margin-bottom: 4px; }
.play-feedback.is-ok .play-feedback__body strong { color: #9af0bf; }
.play-feedback.is-bad .play-feedback__body strong { color: #ffb0ab; }
.play-feedback__body p { margin: 0; color: #c7d5db; font-size: 14px; line-height: 1.55; white-space: pre-line; }
.play-feedback__note { margin-top: 6px !important; color: #f5d38a !important; font-weight: 600; }
.play-feedback__photo { flex: 0 0 auto; width: 96px; height: 72px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); }
.play-feedback .primary-button { flex: 0 0 auto; min-width: 0; border-radius: 999px; }
.play-toast { position: fixed; z-index: 45; left: 50%; top: 86px; max-width: min(560px, calc(100vw - 24px)); padding: 11px 16px; border-radius: 10px; background: rgba(5, 20, 29, .97); border: 1px solid var(--line); font-size: 14px; transform: translate(-50%, -20px); opacity: 0; pointer-events: none; transition: .25s; }
.play-toast.is-show { transform: translate(-50%, 0); opacity: 1; }
.play-toast.is-ok { border-color: rgba(80, 214, 140, .6); }
.play-toast.is-bad { border-color: rgba(255, 107, 107, .6); }
.play-confirm { position: fixed; z-index: 60; inset: 0; display: grid; place-items: center; background: rgba(2, 10, 16, .7); backdrop-filter: blur(3px); }
.play-confirm[hidden] { display: none; }
.play-confirm__card { width: min(420px, calc(100vw - 32px)); padding: 26px; text-align: center; border: 1px solid var(--line); border-radius: 14px; background: #08192a; animation: pop .35s cubic-bezier(.2, 1.3, .4, 1) both; }
.play-confirm__card strong { font-size: 21px; }
.play-confirm__card p { color: #a3b5bd; }

/* Results */
.result-card { position: relative; max-width: 660px; margin: 3vh auto 0; padding: 34px; text-align: center; border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent); border-radius: 16px; background: radial-gradient(circle at 50% 0%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 60%), rgba(6, 22, 33, .96); box-shadow: 0 30px 80px rgba(0, 0, 0, .45); animation: pop .55s cubic-bezier(.2, 1.2, .4, 1) both; }
.result-card .eyebrow { color: var(--accent); }
.result-card h2 { font-size: clamp(54px, 7vw, 86px); margin: 4px 0 6px; }
.result-card h2 em { color: var(--accent); }
.result-stars { display: flex; justify-content: center; gap: 10px; margin-top: 14px; }
.result-stars i { font-style: normal; font-size: 52px; color: rgba(255, 255, 255, .12); }
.result-stars i.is-on { color: #f5c451; text-shadow: 0 0 22px rgba(245, 196, 81, .75); animation: star-in .6s cubic-bezier(.2, 1.6, .4, 1) both; animation-delay: calc(.25s + var(--i) * .22s); }
.result-card__msg { color: #c9d7dc; font-size: 16.5px; margin: 0 0 18px; }
.result-card__detail { color: #8da1aa; }
.result-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 16px; }
.result-stats div { padding: 12px; border: 1px solid var(--line); border-radius: 10px; background: rgba(12, 33, 50, .7); }
.result-stats strong { display: block; font-size: 22px; }
.result-stats small { color: #7f939c; font: 500 9.5px DM Mono, monospace; letter-spacing: .14em; }
.result-parts { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 6px; text-align: left; }
.result-parts li { display: flex; justify-content: space-between; padding: 9px 14px; border-radius: 8px; background: rgba(12, 33, 50, .7); font-size: 14px; }
.result-parts b { color: var(--accent); }
.result-unlock { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 14px; padding: 10px 18px; border-radius: 999px; background: rgba(245, 184, 75, .12); border: 1px solid rgba(245, 184, 75, .5); color: #f5d38a; animation: pop .6s .8s cubic-bezier(.2, 1.6, .4, 1) both; }
.result-unlock span { font-size: 22px; }
.badge-row--result { justify-content: center; margin-bottom: 16px; }
.result-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 8px; }
.result-actions .primary-button, .result-actions .secondary-button { min-width: 0; border-radius: 999px; }
.confetti { position: absolute; inset: -40px 0 auto; height: 0; pointer-events: none; z-index: 5; }
.confetti i { position: absolute; top: 0; left: var(--x); width: 8px; height: 13px; border-radius: 2px; opacity: 0; animation: confetti var(--d) var(--delay) cubic-bezier(.2, .6, .4, 1) forwards; }

/* ----------------------------------------------------------- shared bits */
.drag-ghost { position: fixed !important; z-index: 1000; left: 0; top: 0; margin: 0 !important; pointer-events: none; opacity: .95; box-shadow: 0 22px 48px rgba(0, 0, 0, .5) !important; transition: none !important; animation: none !important; }
.is-dragging { opacity: .35; }
.is-over { outline: 2px dashed var(--accent) !important; outline-offset: 3px; transform: scale(1.02); }
.is-shake { animation: shake .45s ease; }
.is-bounce { animation: bounce-back .55s ease; }
.spell-actions { display: flex; justify-content: center; gap: 10px; margin: 16px 0 6px; flex-wrap: wrap; }
.spell-actions .primary-button, .spell-actions .secondary-button { min-width: 0; border-radius: 999px; }
.primary-button:disabled { opacity: .45; cursor: default; transform: none; }
.quiz-card__keys, .tf-keys { margin: 14px 0 0; text-align: center; color: #6f8590; font-size: 12px; }
.quiz-card__keys kbd, .tf-keys kbd { padding: 1px 6px; border: 1px solid var(--line); border-radius: 4px; font: 600 11px DM Mono, monospace; }
@media (pointer: coarse) { .quiz-card__keys, .tf-keys, .spell-stage .quiz-card__keys { display: none; } }
.game-stage h4 { margin: 0 0 10px; color: #a9bac2; font: 500 11px DM Mono, monospace; letter-spacing: .16em; text-transform: uppercase; }

/* ------------------------------------------------------------------ quiz */
.quiz-stage { position: relative; }
.streak { position: absolute; right: 0; top: -6px; padding: 6px 12px; border-radius: 999px; background: rgba(255, 138, 101, .14); border: 1px solid rgba(255, 138, 101, .5); color: #ffc2ad; font-weight: 800; font-size: 13px; opacity: 0; transform: scale(.8); transition: .3s cubic-bezier(.2, 1.6, .4, 1); }
.streak.is-on { opacity: 1; transform: scale(1); }
.quiz-card { max-width: 900px; margin: 0 auto; padding: 26px 26px 20px; border-radius: 16px; border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent); background: linear-gradient(170deg, rgba(12, 33, 50, .95), rgba(6, 20, 31, .95)); box-shadow: 0 22px 60px rgba(0, 0, 0, .35); animation: slide-in .45s cubic-bezier(.2, .9, .3, 1) both; }
.quiz-card__top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.quiz-card__count { color: #8da1aa; font: 500 13px DM Mono, monospace; }
.quiz-card__question { margin: 18px 0 20px; font-size: clamp(19px, 2.2vw, 25px); font-weight: 700; line-height: 1.45; letter-spacing: -.01em; }
.quiz-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.quiz-tile { position: relative; display: flex; align-items: center; gap: 14px; min-height: 72px; padding: 12px 16px; text-align: left; border: 1px solid var(--line); border-radius: 12px; background: linear-gradient(160deg, rgba(16, 42, 61, .95), rgba(9, 27, 41, .95)); cursor: pointer; font-size: 15px; line-height: 1.4; transition: transform .15s, border-color .15s, background .2s, opacity .3s; animation: tile-in .45s cubic-bezier(.2, 1.2, .4, 1) both; animation-delay: calc(var(--i) * 70ms + .1s); }
.quiz-tile:hover:not(:disabled) { transform: translateY(-3px); border-color: var(--accent); box-shadow: 0 12px 30px rgba(0, 0, 0, .3); }
.quiz-tile:active:not(:disabled) { transform: scale(.98); }
.quiz-tile:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.quiz-tile__letter { flex: 0 0 auto; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; background: color-mix(in srgb, var(--accent) 20%, transparent); border: 1px solid color-mix(in srgb, var(--accent) 50%, transparent); font-weight: 800; color: color-mix(in srgb, var(--accent) 60%, white); }
.quiz-tile:disabled { cursor: default; }
.quiz-tile.is-right { border-color: #50d68c; background: linear-gradient(160deg, rgba(36, 120, 76, .55), rgba(12, 50, 34, .9)); animation: right-pop .5s cubic-bezier(.2, 1.6, .4, 1) both; }
.quiz-tile.is-right .quiz-tile__letter { background: #50d68c; color: #06151b; border-color: #50d68c; }
.quiz-tile.is-wrong { border-color: #ff6b6b; background: linear-gradient(160deg, rgba(130, 40, 40, .55), rgba(55, 14, 18, .9)); animation: shake .45s ease both; }
.quiz-tile.is-wrong .quiz-tile__letter { background: #ff6b6b; color: #06151b; border-color: #ff6b6b; }
.quiz-tile.is-dim { opacity: .45; }

/* --------------------------------------------------------- mystery box */
.box-hint { text-align: center; color: #c5b9ff; font-size: 16px; font-weight: 700; margin: 4px 0 20px; }
.box-shelf { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 18px; max-width: 980px; margin: 0 auto; padding: 30px 20px 26px; border-radius: 18px; background: linear-gradient(180deg, transparent 72%, rgba(122, 102, 255, .14) 72%, rgba(122, 102, 255, .05)); transition: .35s; }
.box-shelf.is-asking { grid-template-columns: repeat(5, minmax(0, 92px)); justify-content: center; padding: 10px; gap: 12px; }
.mystery-box { position: relative; display: grid; justify-items: center; padding: 0; border: 0; background: none; cursor: pointer; animation: rise .5s cubic-bezier(.2, 1.2, .4, 1) both; animation-delay: calc(var(--i) * 90ms); }
.mystery-box__lid { position: relative; z-index: 2; width: 92%; height: 22px; border-radius: 6px 6px 3px 3px; background: linear-gradient(180deg, #a08cff, #7a66ff); box-shadow: 0 4px 0 #4d3fb8; transition: transform .45s cubic-bezier(.2, 1.4, .4, 1); }
.mystery-box__body { display: grid; place-items: center; width: 84%; aspect-ratio: 1 / .85; margin-top: -2px; border-radius: 4px 4px 10px 10px; background: linear-gradient(160deg, #6a55f0, #3d2fa6); box-shadow: inset 0 -10px 0 rgba(0, 0, 0, .18), 0 16px 30px rgba(0, 0, 0, .35); }
.mystery-box__body::before { content: ""; position: absolute; left: 50%; top: 0; bottom: 30px; width: 16%; transform: translateX(-50%); background: rgba(245, 196, 81, .85); border-radius: 2px; }
.mystery-box__body b { position: relative; z-index: 1; font-size: clamp(30px, 4vw, 48px); color: #fff; text-shadow: 0 4px 0 rgba(0, 0, 0, .25); }
.mystery-box__label { margin-top: 10px; color: #c5b9ff; font: 700 12px DM Mono, monospace; letter-spacing: .12em; }
.box-shelf.is-asking .mystery-box__lid { height: 12px; }
.box-shelf.is-asking .mystery-box__body b { font-size: 22px; }
.box-shelf.is-asking .mystery-box__label { margin-top: 4px; font-size: 10px; }
.mystery-box:hover:not(.is-opened) .mystery-box__lid { transform: translateY(-6px) rotate(-3deg); }
.mystery-box:not(.is-opened) .mystery-box__body { animation: wiggle 3.4s ease-in-out infinite; animation-delay: calc(var(--i) * .5s); }
.mystery-box.is-opening .mystery-box__lid { transform: translateY(-34px) rotate(-24deg); opacity: .9; }
.mystery-box.is-opening .mystery-box__body { animation: shake .45s ease; }
.mystery-box.is-opened { cursor: default; }
.mystery-box.is-opened .mystery-box__lid { transform: translateY(-14px) rotate(-14deg); opacity: .5; }
.mystery-box.is-opened .mystery-box__body { filter: saturate(.5) brightness(.75); }
.mystery-box__result { position: absolute; top: 34%; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; font-size: 24px; font-weight: 900; color: #06151b; transform: scale(0); transition: transform .4s cubic-bezier(.2, 1.6, .4, 1); }
.box-shelf.is-asking .mystery-box__result { width: 28px; height: 28px; font-size: 15px; }
.mystery-box.is-right .mystery-box__result { background: #50d68c; transform: scale(1); }
.mystery-box.is-wrong .mystery-box__result { background: #ff6b6b; transform: scale(1); }
.mystery-box:focus-visible { outline: 2px solid #c5b9ff; outline-offset: 6px; border-radius: 8px; }
.box-question { margin-top: 18px; }
.box-question[hidden] { display: none; }

/* --------------------------------------------------- matching with drag */
.match-board { display: grid; grid-template-columns: 1.35fr 1fr; gap: 22px; align-items: start; }
.match-col { display: grid; gap: 10px; }
.match-situation { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: rgba(9, 27, 41, .92); animation: slide-in .45s ease both; animation-delay: calc(var(--i) * 70ms); transition: border-color .2s; }
.match-situation__n { grid-row: span 2; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: rgba(84, 223, 215, .14); color: var(--cyan); font-weight: 800; }
.match-situation p { margin: 0; line-height: 1.5; font-size: 14.5px; }
.match-socket { min-height: 46px; display: flex; align-items: center; padding: 6px 10px; border: 2px dashed rgba(150, 206, 212, .3); border-radius: 10px; color: #6f8590; font-size: 13px; transition: .2s; cursor: default; }
.match-board.is-picking .match-situation:not(.is-right):not(.is-wrong) .match-socket { border-color: var(--cyan); color: var(--cyan); cursor: pointer; animation: pulse-border 1.2s ease-in-out infinite; }
.match-socket.is-over { background: rgba(84, 223, 215, .12); border-color: var(--cyan); }
.match-socket__chip { display: flex; align-items: center; gap: 10px; color: #fff; font-size: 14px; animation: pop .4s cubic-bezier(.2, 1.6, .4, 1) both; }
.match-socket__chip b { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; color: #06151b; }
.match-socket.is-right { border: 2px solid #50d68c; background: rgba(80, 214, 140, .1); }
.match-socket.is-right b { background: #50d68c; }
.match-socket.is-wrong { border: 2px solid #f5b84b; background: rgba(245, 184, 75, .1); }
.match-socket.is-wrong b { background: #f5b84b; }
.match-situation.is-right { border-color: rgba(80, 214, 140, .5); }
.match-situation.is-wrong { border-color: rgba(255, 107, 107, .5); }
.match-col--actions { position: sticky; top: 90px; }
.match-tray { display: grid; gap: 10px; padding: 14px; border-radius: 14px; border: 1px solid rgba(122, 102, 255, .35); background: rgba(122, 102, 255, .07); }
.action-chip { display: flex; align-items: center; gap: 12px; padding: 13px 14px; border: 1px solid rgba(150, 206, 212, .28); border-radius: 12px; background: linear-gradient(160deg, #143247, #0c2132); cursor: grab; user-select: none; font-size: 14.5px; font-weight: 600; box-shadow: 0 6px 16px rgba(0, 0, 0, .25); transition: transform .15s, border-color .15s, opacity .3s; animation: tile-in .45s cubic-bezier(.2, 1.2, .4, 1) both; animation-delay: calc(var(--i) * 70ms + .2s); }
.action-chip b { flex: 0 0 auto; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; background: var(--violet); color: #fff; }
.action-chip:hover { transform: translateX(-4px); border-color: var(--violet); }
.action-chip.is-selected { border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(84, 223, 215, .35); transform: translateX(-6px); }
.action-chip.is-used { opacity: 0; transform: scale(.6); pointer-events: none; height: 0; padding-top: 0; padding-bottom: 0; margin: -5px 0; border-width: 0; overflow: hidden; transition: .35s; }
.action-chip:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }

/* --------------------------------------------------- spelling (scramble, identify) */
.spell-stage { max-width: 900px; margin: 0 auto; text-align: center; }
.spell-clue { padding: 22px 24px; border-radius: 16px; border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent); background: linear-gradient(170deg, rgba(12, 33, 50, .95), rgba(6, 20, 31, .95)); text-align: left; animation: slide-in .45s ease both; }
.spell-jumble { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin: 16px 0 8px; }
.spell-jumble span { padding: 6px 14px; border-radius: 10px; background: rgba(245, 184, 75, .1); border: 1px dashed rgba(245, 184, 75, .5); color: #f5d38a; font: 700 clamp(22px, 3vw, 32px) DM Mono, monospace; letter-spacing: .18em; }
.spell-description { margin: 12px 0 0; font-size: 16.5px; line-height: 1.6; color: #d4e0e5; }
.spell-length { margin: 10px 0 0; color: #8da1aa; font: 500 12px DM Mono, monospace; letter-spacing: .1em; }
.spell-slots { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px 6px; margin: 26px 0 18px; }
.spell-word { display: flex; gap: 6px; }
.spell-gap { width: 18px; }
.spell-slot { width: clamp(34px, 4.6vw, 48px); height: clamp(42px, 5.6vw, 58px); display: grid; place-items: center; border: 0; border-bottom: 3px solid rgba(150, 206, 212, .4); border-radius: 8px 8px 4px 4px; background: rgba(12, 33, 50, .8); font: 800 clamp(20px, 2.6vw, 28px) Manrope, sans-serif; cursor: pointer; transition: .15s; }
.spell-slot.is-filled { border-bottom-color: var(--accent); background: rgba(16, 44, 63, .95); animation: pop .3s cubic-bezier(.2, 1.6, .4, 1); }
.spell-slot.is-right { background: rgba(80, 214, 140, .2); border-bottom-color: #50d68c; color: #b9f5d3; }
.spell-slot.is-wrong { background: rgba(255, 107, 107, .2); border-bottom-color: #ff6b6b; color: #ffc6c2; }
.letter-tray { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; padding: 18px; border-radius: 16px; background: linear-gradient(180deg, rgba(120, 82, 34, .25), rgba(70, 46, 18, .25)); border: 1px solid rgba(245, 184, 75, .25); }
.letter-tile { width: clamp(42px, 5vw, 54px); height: clamp(42px, 5vw, 54px); display: grid; place-items: center; border: 0; border-radius: 10px; background: linear-gradient(160deg, #fbe3b0, #e8c27a); color: #3a2608; font: 900 clamp(20px, 2.4vw, 26px) Manrope, sans-serif; box-shadow: 0 5px 0 #b48a3d, 0 10px 18px rgba(0, 0, 0, .3); transform: rotate(var(--tilt)); cursor: pointer; transition: transform .15s, opacity .25s; animation: tile-in .4s cubic-bezier(.2, 1.4, .4, 1) both; animation-delay: calc(var(--i) * 40ms); }
.letter-tile:hover:not(:disabled) { transform: translateY(-4px) rotate(0); }
.letter-tile:active:not(:disabled) { transform: translateY(2px); box-shadow: 0 2px 0 #b48a3d; }
.letter-tile.is-used { opacity: .18; transform: scale(.85); cursor: default; }
.letter-tile:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.spell-answer { color: #9af0bf; font: 700 18px DM Mono, monospace; letter-spacing: .12em; }

/* ------------------------------------------------------------- lab hunt */
.hunt-clue { display: flex; gap: 14px; align-items: center; max-width: 900px; margin: 0 auto 18px; padding: 16px 20px; border-radius: 14px; border: 1px solid rgba(255, 107, 107, .45); background: linear-gradient(160deg, rgba(60, 20, 26, .6), rgba(10, 24, 36, .95)); }
.hunt-clue.is-new { animation: slide-in .45s ease both; }
.hunt-clue__icon { font-size: 34px; animation: float 3s ease-in-out infinite; }
.hunt-clue small { color: #ff9e98; font: 500 10.5px DM Mono, monospace; letter-spacing: .14em; }
.hunt-clue p { margin: 4px 0 0; font-size: 16.5px; line-height: 1.5; }
.hunt-bench { position: relative; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; padding: 26px 22px 34px; border-radius: 18px; background: linear-gradient(180deg, #2a3b46 0, #1d2b34 70%, #13202a 70%, #0e1820); box-shadow: inset 0 -14px 0 rgba(0, 0, 0, .25), 0 26px 60px rgba(0, 0, 0, .4); }
.hunt-item { position: relative; padding: 0; border: 3px solid rgba(255, 255, 255, .85); border-radius: 10px; background: #0b3a26; overflow: hidden; aspect-ratio: 4 / 3; cursor: zoom-in; transform: rotate(var(--tilt)); box-shadow: 0 10px 20px rgba(0, 0, 0, .35); transition: transform .2s, box-shadow .2s, border-color .2s; animation: drop-in .5s cubic-bezier(.2, 1.3, .4, 1) both; animation-delay: calc(var(--i) * 55ms); }
.hunt-item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s; }
.hunt-item:hover:not(:disabled) { transform: rotate(0) scale(1.06); z-index: 2; box-shadow: 0 18px 30px rgba(0, 0, 0, .5); }
.hunt-item:hover:not(:disabled) img { transform: scale(1.08); }
.hunt-item__tag { position: absolute; left: 0; right: 0; bottom: 0; padding: 4px 6px; background: rgba(4, 30, 18, .88); color: #b9f5d3; font: 700 11px Manrope, sans-serif; transform: translateY(100%); transition: transform .3s; }
.hunt-item.is-found { border-color: #50d68c; box-shadow: 0 0 0 4px rgba(80, 214, 140, .35), 0 10px 20px rgba(0, 0, 0, .35); }
.hunt-item.is-found .hunt-item__tag { transform: translateY(0); }
.hunt-item.is-found::after { content: "✓"; position: absolute; top: 6px; right: 6px; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: #50d68c; color: #06151b; font-weight: 900; animation: pop .4s cubic-bezier(.2, 1.6, .4, 1) both; }
.hunt-item.is-miss { border-color: #ff6b6b; animation: shake .45s ease; }
.hunt-item:focus-visible { outline: 3px solid #ffb0ab; outline-offset: 3px; }

/* --------------------------------------------------------------- sequence */
.seq-stage { max-width: 820px; margin: 0 auto; }
.seq-head { text-align: center; }
.seq-head h3 { margin: 12px 0 18px; font-size: clamp(20px, 2.6vw, 28px); }
.seq-list { position: relative; display: grid; gap: 10px; margin: 0; padding: 0 0 0 24px; list-style: none; }
.seq-list::before { content: ""; position: absolute; left: 41px; top: 20px; bottom: 20px; width: 2px; background: linear-gradient(var(--accent), transparent); opacity: .5; }
.seq-step { position: relative; display: flex; align-items: center; gap: 12px; padding: 12px 12px 12px 10px; border: 1px solid var(--line); border-radius: 12px; background: linear-gradient(160deg, #123047, #0b2132); cursor: grab; user-select: none; box-shadow: 0 6px 16px rgba(0, 0, 0, .25); transition: border-color .2s, background .2s; }
.seq-step__n { flex: 0 0 auto; position: relative; z-index: 1; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: #0a1c2b; border: 2px solid var(--accent); font-weight: 900; }
.seq-step__grip { color: #5d7480; letter-spacing: -2px; }
.seq-step__text { flex: 1; font-size: 15.5px; font-weight: 600; line-height: 1.45; }
.seq-step__moves { display: flex; flex-direction: column; gap: 4px; }
.seq-move { width: 34px; height: 26px; border: 1px solid var(--line); border-radius: 6px; background: rgba(12, 33, 50, .9); font-size: 11px; cursor: pointer; }
.seq-move:disabled { opacity: .25; cursor: default; }
.seq-step.is-right, .seq-step.is-locked { cursor: default; border-color: rgba(80, 214, 140, .7); background: linear-gradient(160deg, rgba(36, 120, 76, .45), rgba(12, 50, 34, .85)); }
.seq-step.is-right .seq-step__n { background: #50d68c; border-color: #50d68c; color: #06151b; }
.seq-step.is-wrong { border-color: rgba(255, 107, 107, .75); animation: shake .45s ease; }
.seq-status { text-align: center; color: #a3b5bd; font-size: 14px; min-height: 22px; }

/* ----------------------------------------------------------- true / false */
.tf-deck { position: relative; display: grid; place-items: center; height: clamp(250px, 38vh, 330px); max-width: 640px; margin: 10px auto 0; }
.tf-card { grid-area: 1 / 1; position: relative; width: 100%; height: 100%; display: flex; flex-direction: column; justify-content: center; padding: 26px 30px; border-radius: 20px; border: 1px solid rgba(150, 206, 212, .3); background: linear-gradient(160deg, #163449, #0b2132); box-shadow: 0 26px 60px rgba(0, 0, 0, .4); cursor: grab; user-select: none; touch-action: pan-y; transition: transform .35s cubic-bezier(.2, .9, .3, 1), opacity .35s; animation: deal .45s cubic-bezier(.2, 1.2, .4, 1) both; --lean-true: 0; --lean-false: 0; }
.tf-card.is-held { transition: none; cursor: grabbing; }
.tf-card--under { pointer-events: none; animation: none; transform: translateY(calc(var(--depth) * 12px)) scale(calc(1 - var(--depth) * .04)); opacity: calc(1 - var(--depth) * .3); filter: brightness(.7); }
.tf-card__top { position: absolute; top: 18px; left: 22px; }
.tf-card__text { margin: 0; font-size: clamp(19px, 2.4vw, 26px); font-weight: 700; line-height: 1.45; text-align: center; }
.tf-stamp { position: absolute; top: 22px; padding: 4px 12px; border: 3px solid; border-radius: 8px; font: 900 22px Manrope, sans-serif; letter-spacing: .1em; transform: rotate(-14deg); }
.tf-stamp--true { right: 22px; color: #50d68c; opacity: var(--lean-true); }
.tf-stamp--false { left: 22px; color: #ff6b6b; opacity: var(--lean-false); transform: rotate(14deg); }
.tf-card.is-gone-right { transform: translateX(16%) rotate(4deg); --lean-true: 1; }
.tf-card.is-gone-left { transform: translateX(-16%) rotate(-4deg); --lean-false: 1; }
.tf-card.is-right { border-color: #50d68c; box-shadow: 0 0 0 4px rgba(80, 214, 140, .3), 0 26px 60px rgba(0, 0, 0, .4); }
.tf-card.is-wrong { border-color: #ff6b6b; box-shadow: 0 0 0 4px rgba(255, 107, 107, .3), 0 26px 60px rgba(0, 0, 0, .4); }
.tf-controls { display: flex; align-items: center; justify-content: center; gap: 22px; margin-top: 26px; flex-wrap: wrap; }
.tf-button { min-width: 150px; padding: 16px 24px; border-radius: 999px; border: 2px solid; font: 900 17px Manrope, sans-serif; letter-spacing: .08em; cursor: pointer; transition: transform .15s, background .2s; }
.tf-button--false { color: #ffb0ab; border-color: #ff6b6b; background: rgba(255, 107, 107, .12); }
.tf-button--true { color: #9af0bf; border-color: #50d68c; background: rgba(80, 214, 140, .12); }
.tf-button:hover:not(:disabled) { transform: translateY(-3px) scale(1.03); }
.tf-button--false:hover:not(:disabled) { background: rgba(255, 107, 107, .28); }
.tf-button--true:hover:not(:disabled) { background: rgba(80, 214, 140, .28); }
.tf-button:disabled { opacity: .4; cursor: default; }

/* ----------------------------------------------------------------- memory */
.mem-stats { display: flex; justify-content: center; gap: 24px; margin-bottom: 16px; color: #a3b5bd; font-size: 14px; }
.mem-stats b { color: #fff; font-size: 20px; }
.mem-grid { display: grid; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); gap: 12px; max-width: 760px; margin: 0 auto; perspective: 1000px; }
.mem-card { position: relative; aspect-ratio: 4 / 3; padding: 0; border: 0; background: none; cursor: pointer; animation: deal .45s cubic-bezier(.2, 1.2, .4, 1) both; animation-delay: calc(var(--i) * 35ms); }
.mem-card__inner { position: absolute; inset: 0; transform-style: preserve-3d; transition: transform .5s cubic-bezier(.2, .9, .3, 1); }
.mem-card.is-up .mem-card__inner { transform: rotateY(180deg); }
.mem-card__back, .mem-card__front { position: absolute; inset: 0; display: grid; place-items: center; border-radius: 12px; backface-visibility: hidden; -webkit-backface-visibility: hidden; overflow: hidden; }
.mem-card__back { background: repeating-linear-gradient(45deg, rgba(255, 255, 255, .05) 0 6px, transparent 6px 12px), radial-gradient(circle at 50% 50%, #6a55f0, #2e2280); border: 2px solid rgba(197, 185, 255, .5); box-shadow: 0 10px 20px rgba(0, 0, 0, .3); }
.mem-card__back b { display: grid; place-items: center; width: 44px; height: 44px; border: 2px solid rgba(255, 255, 255, .7); color: #fff; font: 800 20px DM Mono, monospace; }
.mem-card:hover:not(.is-up) .mem-card__back { filter: brightness(1.15); }
.mem-card__front { transform: rotateY(180deg); padding: 10px; background: linear-gradient(160deg, #eaf7f6, #cfe6e8); color: #082231; border: 2px solid #fff; text-align: center; font-weight: 800; font-size: clamp(12px, 1.4vw, 15px); line-height: 1.3; }
.mem-card__front--photo { padding: 0; background: #0b3a26; }
.mem-card__front img { width: 100%; height: 100%; object-fit: cover; }
.mem-card.is-matched .mem-card__front { border-color: #50d68c; box-shadow: 0 0 0 3px rgba(80, 214, 140, .55), 0 0 26px rgba(80, 214, 140, .45); }
.mem-card.is-matched { cursor: default; animation: matched .6s ease both; }
.mem-card.is-miss .mem-card__front { border-color: #ff6b6b; animation: shake .45s ease; }
.mem-card:focus-visible { outline: 3px solid #c5b9ff; outline-offset: 3px; border-radius: 12px; }

/* ---------------------------------------------------- fill in the blanks */
.blank-board { display: grid; grid-template-columns: 1.6fr 1fr; gap: 22px; align-items: start; }
.blank-list { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.blank-strip { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--line); background: linear-gradient(160deg, rgba(14, 40, 52, .95), rgba(8, 24, 36, .95)); animation: slide-in .45s ease both; animation-delay: calc(var(--i) * 60ms); }
.blank-strip__n { flex: 0 0 auto; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: rgba(180, 249, 220, .14); color: var(--mint); font-weight: 800; font-size: 13px; }
.blank-strip p { margin: 0; font-size: 15.5px; line-height: 2; }
.blank-gap { display: inline-block; min-width: 130px; min-height: 34px; margin: 0 4px; padding: 2px 12px; vertical-align: middle; border: 0; border-bottom: 3px dashed rgba(180, 249, 220, .5); border-radius: 8px 8px 0 0; background: rgba(180, 249, 220, .07); color: #fff; font: 800 15px Manrope, sans-serif; cursor: pointer; transition: .2s; }
.game-stage.is-picking .blank-gap:not(.is-right) { border-bottom-color: var(--mint); animation: pulse-border 1.2s ease-in-out infinite; }
.blank-gap.is-right { border-bottom: 3px solid #50d68c; background: rgba(80, 214, 140, .18); color: #b9f5d3; animation: pop .4s cubic-bezier(.2, 1.6, .4, 1); cursor: default; }
.blank-gap.is-wrong { border-bottom-color: #ff6b6b; background: rgba(255, 107, 107, .18); animation: shake .45s ease; }
.word-bank-wrap { position: sticky; top: 90px; padding: 16px; border-radius: 14px; border: 1px solid rgba(180, 249, 220, .3); background: rgba(180, 249, 220, .05); }
.word-bank { display: flex; flex-wrap: wrap; gap: 10px; }
.word-chip { padding: 10px 16px; border-radius: 999px; background: linear-gradient(160deg, #1d4f4a, #123634); border: 1px solid rgba(180, 249, 220, .45); color: #e6fff6; font-weight: 800; font-size: 14.5px; cursor: grab; user-select: none; box-shadow: 0 6px 14px rgba(0, 0, 0, .25); transition: transform .15s, opacity .3s; animation: tile-in .4s cubic-bezier(.2, 1.4, .4, 1) both; animation-delay: calc(var(--i) * 50ms + .2s); }
.word-chip:hover { transform: translateY(-3px); }
.word-chip.is-selected { border-color: #fff; box-shadow: 0 0 0 3px rgba(180, 249, 220, .5); transform: translateY(-3px); }
.word-chip.is-used { opacity: .2; pointer-events: none; transform: scale(.9); }
.word-chip:focus-visible { outline: 2px solid var(--mint); outline-offset: 2px; }

/* -------------------------------------------------- drag and drop (place) */
.dd-board { display: grid; grid-template-columns: 1fr 1.5fr; gap: 22px; align-items: start; }
.dd-tray-wrap { position: sticky; top: 90px; padding: 16px; border-radius: 14px; border: 1px solid rgba(255, 138, 101, .4); background: rgba(255, 138, 101, .06); }
.dd-tray { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.dd-tool { display: grid; justify-items: center; gap: 6px; padding: 10px; text-align: center; border-radius: 12px; border: 1px solid rgba(255, 138, 101, .45); background: linear-gradient(160deg, #3b2219, #1d1410); cursor: grab; user-select: none; font-weight: 800; font-size: 13.5px; box-shadow: 0 6px 14px rgba(0, 0, 0, .3); transition: transform .15s, opacity .3s; animation: tile-in .4s cubic-bezier(.2, 1.4, .4, 1) both; animation-delay: calc(var(--i) * 60ms + .15s); }
.dd-tool img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 8px; pointer-events: none; }
.dd-tool__icon { display: grid; place-items: center; width: 100%; aspect-ratio: 4 / 3; border-radius: 8px; background: rgba(255, 138, 101, .12); font-size: 30px; }
.dd-tool:hover { transform: translateY(-3px) rotate(-1deg); }
.dd-tool.is-selected { border-color: #fff; box-shadow: 0 0 0 3px rgba(255, 138, 101, .5); }
.dd-tool.is-used { opacity: .15; pointer-events: none; transform: scale(.9); }
.dd-tool:focus-visible { outline: 2px solid #ffb59c; outline-offset: 2px; }
.dd-jobs { display: grid; gap: 10px; }
.dd-job { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 14px 16px; text-align: left; border: 1px solid var(--line); border-radius: 12px; background: rgba(9, 27, 41, .92); cursor: pointer; transition: .2s; animation: slide-in .45s ease both; animation-delay: calc(var(--i) * 60ms); }
.dd-job p { margin: 0; font-size: 15px; line-height: 1.45; }
.dd-drop { flex: 0 0 auto; min-width: 160px; padding: 10px; border: 2px dashed rgba(255, 138, 101, .45); border-radius: 10px; color: #8d7a73; font-size: 12px; text-align: center; }
.game-stage.is-picking .dd-job:not(.is-right) .dd-drop { border-color: #ffb59c; animation: pulse-border 1.2s ease-in-out infinite; }
.dd-job.is-right { border-color: #50d68c; background: rgba(80, 214, 140, .1); cursor: default; }
.dd-job.is-right .dd-drop { border: 2px solid #50d68c; color: #b9f5d3; animation: pop .4s cubic-bezier(.2, 1.6, .4, 1); }
.dd-job.is-wrong { border-color: #ff6b6b; animation: shake .45s ease; }

/* ---------------------------------------------------------- safe / unsafe */
.sort-conveyor { display: grid; place-items: center; min-height: 190px; margin: 6px auto 22px; max-width: 620px; }
.sort-card { width: 100%; padding: 26px 30px; text-align: center; border-radius: 18px; border: 1px solid rgba(150, 206, 212, .35); background: linear-gradient(160deg, #183a50, #0c2333); box-shadow: 0 22px 50px rgba(0, 0, 0, .4); cursor: grab; user-select: none; animation: deal .45s cubic-bezier(.2, 1.2, .4, 1) both; transition: transform .45s cubic-bezier(.4, 0, .2, 1), opacity .45s; }
.sort-card small { color: #8da1aa; font: 500 11px DM Mono, monospace; letter-spacing: .14em; }
.sort-card p { margin: 10px 0 0; font-size: clamp(18px, 2.2vw, 23px); font-weight: 800; line-height: 1.45; }
.sort-card.is-into-safe { transform: translate(-28%, 120px) scale(.5); opacity: 0; }
.sort-card.is-into-unsafe { transform: translate(28%, 120px) scale(.5); opacity: 0; }
.sort-bins { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; max-width: 760px; margin: 0 auto; }
.sort-bin { position: relative; display: grid; justify-items: center; gap: 4px; padding: 24px 16px 18px; border-radius: 10px 10px 26px 26px; border: 2px solid; cursor: pointer; transition: transform .2s; }
.sort-bin::before { content: ""; position: absolute; left: 8%; right: 8%; top: -10px; height: 12px; border-radius: 8px 8px 0 0; background: inherit; filter: brightness(1.3); }
.sort-bin--safe { border-color: #50d68c; background: linear-gradient(180deg, rgba(80, 214, 140, .28), rgba(20, 70, 46, .6)); }
.sort-bin--unsafe { border-color: #ff6b6b; background: linear-gradient(180deg, rgba(255, 107, 107, .28), rgba(80, 22, 26, .6)); }
.sort-bin:hover { transform: translateY(-3px); }
.sort-bin__label { font: 900 22px Manrope, sans-serif; letter-spacing: .14em; }
.sort-bin__count { color: rgba(255, 255, 255, .75); font: 700 13px DM Mono, monospace; }
.sort-bin.is-gulp { animation: gulp .5s cubic-bezier(.2, 1.6, .4, 1); }

/* ---------------------------------------------------------------- connect */
.connect-board { position: relative; display: grid; grid-template-columns: 1fr 1.4fr; gap: 90px; max-width: 980px; margin: 0 auto; }
.connect-lines { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; z-index: 0; }
.connect-line { fill: none; stroke-width: 4; stroke-linecap: round; }
.connect-line--ok { stroke: #50d68c; filter: drop-shadow(0 0 6px rgba(80, 214, 140, .6)); stroke-dasharray: 600; animation: draw .6s ease both; }
.connect-line--bad { stroke: #ff6b6b; stroke-dasharray: 8 8; opacity: .8; }
.connect-col { position: relative; z-index: 1; display: grid; gap: 10px; align-content: start; }
.connect-item { position: relative; display: flex; align-items: center; gap: 12px; min-height: 62px; padding: 10px 14px; text-align: left; border: 1px solid var(--line); border-radius: 12px; background: linear-gradient(160deg, #1b1f4a, #0f1530); cursor: pointer; font-size: 14.5px; font-weight: 700; line-height: 1.4; transition: .2s; animation: slide-in .45s ease both; animation-delay: calc(var(--i) * 60ms); }
.connect-item--right { background: linear-gradient(160deg, #10304a, #0a1e30); font-weight: 600; }
.connect-item img { width: 46px; height: 36px; object-fit: cover; border-radius: 6px; }
.connect-item__icon { font-size: 22px; }
.connect-dot { position: absolute; top: 50%; width: 14px; height: 14px; margin-top: -7px; border-radius: 50%; background: #0a1c2b; border: 3px solid var(--violet); }
.connect-item--left .connect-dot { right: -8px; }
.connect-item--right .connect-dot { left: -8px; border-color: var(--cyan); }
.connect-item:hover:not(:disabled) { border-color: var(--violet); transform: translateY(-2px); }
.connect-item.is-selected { border-color: #fff; box-shadow: 0 0 0 3px rgba(122, 102, 255, .45); }
.connect-board.is-picking .connect-item:not(.is-linked):not(.is-selected) { border-style: dashed; }
.connect-item.is-linked { border-color: #50d68c; background: linear-gradient(160deg, rgba(36, 120, 76, .45), rgba(12, 50, 34, .85)); cursor: default; }
.connect-item.is-linked .connect-dot { background: #50d68c; border-color: #50d68c; }
.connect-item.is-wrong { border-color: #ff6b6b; animation: shake .45s ease; }

/* ------------------------------------------------------------ word search */
.ws-board { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(220px, 1fr); gap: 24px; align-items: start; }
.ws-wrap { position: relative; max-width: 620px; width: 100%; justify-self: center; }
.ws-grid { display: grid; grid-template-columns: repeat(var(--size), 1fr); gap: 2px; padding: 12px; border-radius: 14px; border: 1px solid rgba(84, 223, 215, .35); background: rgba(5, 22, 32, .95); box-shadow: 0 0 40px rgba(84, 223, 215, .12), 0 24px 60px rgba(0, 0, 0, .4); user-select: none; -webkit-user-select: none; }
.ws-cell { display: grid; place-items: center; aspect-ratio: 1; border-radius: 6px; font: 800 clamp(13px, 1.9vw, 19px) DM Mono, monospace; color: #c9e4e8; cursor: pointer; transition: background .2s, color .2s; }
.ws-cell:hover { background: rgba(84, 223, 215, .12); }
.ws-cell.is-found { color: #fff; }
.ws-cell.is-anchor { background: var(--cyan); color: #06151b; }
.ws-cell.is-hint { animation: hint 1.6s ease 2; }
.ws-lines { position: absolute; inset: 12px; width: calc(100% - 24px); height: calc(100% - 24px); pointer-events: none; }
.ws-line { stroke-width: .72; stroke-linecap: round; opacity: .38; }
.ws-line--live { stroke: #fff; opacity: .3; }
.ws-grid.is-shake { animation: shake .4s ease; }
.ws-side { position: sticky; top: 90px; padding: 16px; border-radius: 14px; border: 1px solid var(--line); background: rgba(9, 27, 41, .9); }
.ws-words { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; padding: 0; list-style: none; }
.ws-words li { padding: 6px 11px; border-radius: 8px; background: rgba(84, 223, 215, .08); border: 1px solid rgba(84, 223, 215, .25); font: 700 13px DM Mono, monospace; letter-spacing: .05em; transition: .3s; }
.ws-words li.is-found { text-decoration: line-through; opacity: .5; background: rgba(80, 214, 140, .15); border-color: rgba(80, 214, 140, .5); }
.ws-words li.is-hinted:not(.is-found) { border-color: #f5b84b; }
.ws-fact { min-height: 48px; margin: 0 0 12px; padding: 10px 12px; border-radius: 10px; background: rgba(180, 249, 220, .07); color: #cfe9e2; font-size: 13.5px; line-height: 1.5; }
.ws-fact.is-new { animation: pop .4s cubic-bezier(.2, 1.4, .4, 1); }
.ws-fact b { color: var(--mint); }
.ws-hint { border-radius: 999px; }

/* -------------------------------------------------------------- crossword */
.cw-board { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(260px, 1fr); gap: 24px; align-items: start; }
.cw-grid-wrap { display: grid; justify-items: center; gap: 10px; }
.cw-active { width: 100%; min-height: 48px; margin: 0; padding: 10px 14px; border-radius: 10px; background: rgba(245, 184, 75, .1); border: 1px solid rgba(245, 184, 75, .35); font-size: 14px; line-height: 1.45; }
.cw-active b { color: #f5d38a; }
.cw-grid { display: grid; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); width: min(100%, calc(var(--cols) * 44px)); gap: 2px; padding: 10px; border-radius: 12px; background: rgba(4, 14, 22, .9); box-shadow: 0 24px 60px rgba(0, 0, 0, .4); }
.cw-block { aspect-ratio: 1; }
.cw-cell { position: relative; aspect-ratio: 1; display: block; border-radius: 4px; background: #f3f0e6; box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .12); transition: background .2s; }
.cw-cell small { position: absolute; top: 1px; left: 3px; z-index: 1; color: #6a5a3c; font: 700 clamp(7px, .8vw, 9px) DM Mono, monospace; pointer-events: none; }
.cw-input { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; background: transparent; text-align: center; text-transform: uppercase; color: #13222b; font: 800 clamp(13px, 1.7vw, 19px) Manrope, sans-serif; caret-color: transparent; cursor: pointer; }
.cw-input:focus { outline: none; }
.cw-cell.is-active { background: #ffe6a8; }
.cw-cell.is-current { background: #f5b84b; box-shadow: inset 0 0 0 2px #a8761f; }
.cw-cell.is-solved { background: #b9f0cf; }
.cw-cell.is-solved .cw-input { color: #0e5130; }
.cw-cell.is-revealed .cw-input { color: #a8761f; }
.cw-cell.is-wrong { animation: shake .4s ease; background: #ffc6c2; }
.cw-side { display: grid; gap: 4px; max-height: 70vh; overflow: auto; padding: 16px; border-radius: 14px; border: 1px solid var(--line); background: rgba(9, 27, 41, .9); }
.cw-side h4 { margin: 8px 0 6px !important; }
.cw-clues { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.cw-clues li { display: block; padding: 8px 10px; border-radius: 8px; font-size: 13.5px; line-height: 1.45; cursor: pointer; transition: background .2s; }
.cw-clues li:hover { background: rgba(245, 184, 75, .08); }
.cw-clues li b { margin-right: 8px; color: #f5d38a; }
.cw-clues li em { color: #7f939c; font-style: normal; }
.cw-clues li.is-active { background: rgba(245, 184, 75, .16); }
.cw-clues li.is-solved { color: #8ad8ab; text-decoration: line-through; text-decoration-color: rgba(138, 216, 171, .5); }

/* ------------------------------------------------------------- keyframes */
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes pop { 0% { transform: scale(.6); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
@keyframes bump { 0% { transform: scale(1); } 40% { transform: scale(1.18); } 100% { transform: scale(1); } }
@keyframes sheet { from { transform: translate(-50%, 40px); opacity: 0; } to { transform: translate(-50%, 0); opacity: 1; } }
@keyframes slide-in { from { opacity: 0; transform: translateX(-16px); } to { opacity: 1; transform: none; } }
@keyframes tile-in { from { opacity: 0; transform: translateY(14px) scale(.9); } to { opacity: 1; transform: rotate(var(--tilt, 0)); } }
@keyframes right-pop { 0% { transform: scale(1); } 45% { transform: scale(1.05); } 100% { transform: scale(1); } }
@keyframes shake { 0%, 100% { transform: translateX(0); } 20% { transform: translateX(-9px); } 40% { transform: translateX(8px); } 60% { transform: translateX(-6px); } 80% { transform: translateX(4px); } }
@keyframes bounce-back { 0% { transform: translateY(0); } 30% { transform: translateY(-10px); } 60% { transform: translateY(4px); } 100% { transform: translateY(0); } }
@keyframes wiggle { 0%, 88%, 100% { transform: rotate(0); } 91% { transform: rotate(-3deg); } 94% { transform: rotate(3deg); } 97% { transform: rotate(-2deg); } }
@keyframes drop-in { from { opacity: 0; transform: translateY(-30px) rotate(var(--tilt)); } to { opacity: 1; transform: rotate(var(--tilt)); } }
@keyframes deal { from { opacity: 0; transform: translateY(30px) scale(.94); } to { opacity: 1; transform: none; } }
@keyframes matched { 0% { transform: scale(1); } 50% { transform: scale(1.06); } 100% { transform: scale(1); } }
@keyframes gulp { 0% { transform: scale(1); } 40% { transform: scale(1.08, .92); } 100% { transform: scale(1); } }
@keyframes draw { from { stroke-dashoffset: 600; } to { stroke-dashoffset: 0; } }
@keyframes hint { 0%, 100% { background: transparent; } 50% { background: #f5b84b; color: #06151b; } }
@keyframes star-in { 0% { transform: scale(0) rotate(-90deg); opacity: 0; } 100% { transform: scale(1) rotate(0); opacity: 1; } }
@keyframes pulse-border { 0%, 100% { box-shadow: 0 0 0 0 rgba(84, 223, 215, 0); } 50% { box-shadow: 0 0 0 4px rgba(84, 223, 215, .2); } }
@keyframes confetti { 0% { opacity: 1; transform: translate(0, 0) rotate(0); } 100% { opacity: 0; transform: translate(var(--dx), 520px) rotate(var(--r)); } }

/* ------------------------------------------------------------ responsive */
@media (max-width: 980px) {
  .game-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .challenge-card { grid-template-columns: auto 1fr; }
  .challenge-card__side { grid-column: 1 / -1; justify-items: stretch; text-align: left; grid-template-columns: 1fr auto; align-items: center; }
  .hunt-bench { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .ws-board, .cw-board { grid-template-columns: 1fr; }
  .ws-side, .word-bank-wrap, .dd-tray-wrap, .match-col--actions { position: static; }
}
@media (max-width: 760px) {
  .games-tabs { grid-template-columns: repeat(5, minmax(120px, 1fr)); overflow-x: auto; padding-bottom: 6px; }
  .games-stats { width: 100%; }
  .games-stat { flex: 1; min-width: 0; }
  .game-grid { grid-template-columns: 1fr; }
  .challenge-card { grid-template-columns: 1fr; text-align: center; }
  .challenge-card__badge { margin: 0 auto; }
  .challenge-card__parts { justify-content: center; }
  .challenge-card__side { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .play-top { gap: 10px; height: 64px; padding: 0 12px; }
  .play-exit span, .play-timer { display: none; }
  .play-title strong { font-size: 15px; }
  .play-score { padding: 6px 10px; white-space: nowrap; }
  .play-score strong { font-size: 17px; }
  .play-speaker { width: 38px; height: 38px; }
  .play-stage { width: calc(100vw - 24px); padding-bottom: 260px; }
  .play-progress { width: calc(100vw - 24px); }
  .quiz-tiles { grid-template-columns: 1fr; }
  .quiz-card { padding: 18px 16px 16px; }
  .quiz-tile { min-height: 58px; }
  .box-shelf { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .box-shelf.is-asking { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .match-board, .blank-board, .dd-board { grid-template-columns: 1fr; }
  .match-col--actions { order: -1; }
  .match-tray { grid-template-columns: 1fr; }
  .hunt-bench { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; padding: 16px 12px 24px; }
  .connect-board { grid-template-columns: 1fr 1fr; gap: 34px; }
  .connect-item { font-size: 13px; min-height: 54px; padding: 8px 10px; }
  .connect-item img, .connect-item__icon { display: none; }
  .mem-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 7px; }
  .mem-card__front { font-size: 11px; padding: 5px; }
  .dd-job { flex-direction: column; align-items: stretch; }
  .dd-drop { min-width: 0; }
  .tf-card { padding: 22px 18px; }
  .tf-button { min-width: 0; flex: 1; }
  .result-card { padding: 24px 16px; }
  .play-feedback { flex-wrap: wrap; bottom: 82px; }
  .play-feedback__photo { display: none; }
  .play-feedback .primary-button { width: 100%; }
  .intro-card { padding: 26px 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .challenge-card__badge, .intro-card__icon, .hunt-clue__icon, .mystery-box:not(.is-opened) .mystery-box__body { animation: none !important; }
}
