/* Local games inside the quiz shell. The ready action never replaces the board. */
@font-face{font-family:"go2-mark";src:url("/assets/fonts/go2-mark-bold.woff2?v=5") format("woff2"),url("/assets/fonts/go2-mark-bold.ttf?v=5") format("truetype");font-weight:700;font-style:normal;font-display:swap}
#go2-quiz .go-game-brand{font-family:"go2-mark","Nunito Sans",system-ui,sans-serif;font-weight:700;font-size:1em;line-height:1;letter-spacing:0;display:inline-block;vertical-align:baseline;font-feature-settings:normal;font-variant:normal;margin-right:.04em}
#go2-quiz .go-build-experience:has(.go-minigame){justify-content:flex-start;min-height:570px;padding-top:10px}
#go2-quiz .go-build-experience:has(.go-minigame)>h2{font-size:clamp(24px,4vw,34px);margin-bottom:12px;min-height:1.15em}
#go2-quiz .go-build-experience:has(.go-minigame)>.go-small{max-width:390px;font-size:12px;line-height:1.5;margin:8px 0 0}
#go2-quiz .go-build-ready-slot{display:grid;place-items:center;min-height:58px;width:100%;max-width:530px;margin:4px 0 0}
#go2-quiz .go-build-ready-slot p{margin:0;font-size:12px;color:var(--go-muted)}
#go2-quiz .go-build-view-protocol{position:relative;display:flex;align-items:center;justify-content:center;gap:20px;width:100%;min-height:48px;padding:12px 18px;background:var(--go-lime);color:var(--go-on-lime);border:1px solid transparent;border-radius:14px;font-size:15px;font-weight:850;box-shadow:0 5px 15px -10px #52703c70}
#go2-quiz .go-build-view-protocol:disabled{display:flex;padding:10px 18px 18px;background:light-dark(#e7e9e5,#343b35);color:var(--go-muted);border-color:var(--go-line);box-shadow:none;font-size:14px}
#go2-quiz .go-build-view-protocol:disabled .go-build-button-arrow,
#go2-quiz .go-build-view-protocol:not(:disabled) .go-build-button-progress{display:none}
#go2-quiz .go-build-button-progress{position:absolute;left:18px;right:18px;bottom:6px;height:3px;overflow:hidden;border-radius:3px;background:var(--go-line)}
#go2-quiz .go-build-button-progress>span{display:block;width:33%;height:100%;border-radius:inherit;background:var(--go-muted);animation:go-build-button-loading 1.6s ease-in-out infinite alternate}
@keyframes go-build-button-loading{from{transform:translateX(0)}to{transform:translateX(203%)}}
@media(prefers-reduced-motion:reduce){#go2-quiz .go-build-button-progress>span{animation:none;transform:translateX(100%)}}
#go2-quiz .go-build-view-protocol:focus-visible{outline:3px solid var(--go-green);outline-offset:3px}
#go2-quiz .go-build-game-host{width:100%;max-width:530px;margin-top:16px}
#go2-quiz .go-game-toolbar{position:relative;z-index:20;display:flex;align-items:center;justify-content:flex-end;gap:12px;margin:0 5px 9px;text-align:left}
#go2-quiz .go-game-toolbar .lia-mascot,#go2-quiz .go-game-toolbar .lia-mascot-frame,#go2-quiz .go-game-toolbar .lia-mascot-still{display:block;position:static;width:100%;height:100%;object-fit:contain;animation:none;transform:none}
#go2-quiz .go-game-switch{display:flex;align-items:center;justify-content:center;gap:10px;min-height:44px;padding:8px 13px;border:1px solid var(--go-line);border-radius:12px;background:var(--go-panel);color:var(--go-green);font-size:12px;font-weight:800;cursor:pointer}
#go2-quiz .go-game-switch span{font-size:21px;line-height:1}
#go2-quiz .go-game-switch[aria-expanded="true"]{background:var(--go-soft);border-color:var(--go-green)}
#go2-quiz .go-game-switch:focus-visible,#go2-quiz .go-game-options button:focus-visible{outline:3px solid #169e91;outline-offset:3px}
#go2-quiz .go-game-picker{position:absolute;z-index:1;bottom:calc(100% + 7px);right:0;width:100%;max-width:440px;box-sizing:border-box;padding:15px;background:var(--go-panel);border:1px solid var(--go-line);border-radius:19px;box-shadow:0 16px 36px #24442e24}
#go2-quiz #go-game-picker-title{display:block;margin-bottom:10px;font-size:13px;color:var(--go-green)}
#go2-quiz .go-game-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}
#go2-quiz .go-game-options button{position:relative;display:flex;align-items:center;gap:7px;min-height:65px;padding:7px 20px 7px 7px;border:1px solid var(--go-line);border-radius:12px;background:transparent;color:var(--go-green);text-align:left;cursor:pointer}
#go2-quiz .go-game-options button[aria-pressed="true"]{background:#edf4d1;border-color:#9cae69}
#go2-quiz .go-game-option-check{position:absolute;top:5px;right:6px;visibility:hidden;font-size:12px;font-weight:900}
#go2-quiz [aria-pressed="true"]>.go-game-option-check{visibility:visible}
#go2-quiz .go-game-option-mascot{display:block;flex:0 0 40px;width:40px;height:40px}
#go2-quiz .go-game-options strong{display:block;font-size:12px}
#go2-quiz .go-game-options small{display:block;margin-top:3px;font-size:10px;line-height:1.25;color:var(--go-muted)}
#go2-quiz .go-minigame{--game-ink:#143a45;--game-sky:#eaf4e2;--game-floor:#d8ecd2;width:100%;padding:17px 18px 8px;border:1px solid var(--go-line);border-radius:24px;background:var(--go-panel);text-align:left;box-shadow:0 12px 32px -24px #25463355}
#go2-quiz .go-game-title-row{display:flex;align-items:center;gap:9px;margin-bottom:14px}
#go2-quiz .go-game-title-row>div{min-width:0}
#go2-quiz .go-game-title-mascot{display:block;flex:0 0 50px;width:50px;height:56px}
#go2-quiz .go-game-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:44px;margin-bottom:14px}
#go2-quiz .go-game-score{flex-shrink:0;font-size:11px;color:var(--go-muted);font-variant-numeric:tabular-nums}
#go2-quiz .go-game-score b{font-size:18px;color:var(--go-green);padding-right:3px}
#go2-quiz .go-minigame h3{margin:0 0 5px;font-size:22px;line-height:1.15;letter-spacing:-.04em;color:var(--go-ink);font-weight:850}
#go2-quiz .go-game-subtitle{margin:0;font-size:12px;line-height:1.45;color:var(--go-muted);max-width:400px}
#go2-quiz .go-game-field{position:relative;overflow:hidden;border-radius:17px;isolation:isolate;background:radial-gradient(ellipse at 50% 0%,#ffffff70,transparent 70%),linear-gradient(160deg,var(--game-sky),var(--game-floor));color:var(--game-ink);user-select:none;-webkit-user-select:none}
#go2-quiz .go-game-field button{touch-action:manipulation;-webkit-tap-highlight-color:transparent}
#go2-quiz .go-minigame button:focus-visible,#go2-quiz .go-game-canvas:focus-visible{outline:3px solid #169e91;outline-offset:3px}
#go2-quiz .go-minigame .lia-mascot{display:block;width:100%;height:100%;filter:drop-shadow(0 5px 5px #173e381a)}
#go2-quiz .go-minigame .lia-mascot-frame,#go2-quiz .go-minigame .lia-mascot-still{display:block;position:static;width:100%;height:100%;object-fit:contain;animation:none;transform:none}
#go2-quiz .go-game-field.is-arcade{aspect-ratio:5/4}
#go2-quiz .go-game-canvas{display:block;width:100%;height:100%;touch-action:none;cursor:crosshair}
#go2-quiz .go-game-canvas:focus-visible{outline-offset:-4px}
#go2-quiz .go-game-run-motion{position:absolute;left:0;top:0;width:1px;height:1px;opacity:0;pointer-events:none}
#go2-quiz .go-game-hud{position:absolute;top:12px;left:12px;right:12px;display:flex;justify-content:space-between;gap:8px;pointer-events:none;font-size:9px;line-height:1.2;font-weight:850;letter-spacing:.04em;color:#385b42}
#go2-quiz .go-game-hud span{background:#fffef0c9;padding:5px 7px;border-radius:6px}
#go2-quiz .go-game-hud span:empty{display:none}
#go2-quiz .go-game-overlay{position:absolute;inset:0;z-index:2;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:15px;background:#f7f9eeeb;text-align:center;backdrop-filter:blur(3px)}
#go2-quiz .go-game-intro-mascot{width:94px;height:94px;margin-bottom:0}
#go2-quiz .go-game-overlay strong{font-size:23px;letter-spacing:-.04em;line-height:1.15;color:#24462e}
#go2-quiz .go-game-overlay p{max-width:290px;margin:8px 0 14px;font-size:12px;line-height:1.5;color:#577154}
#go2-quiz .go-game-start{min-height:46px;min-width:154px;display:flex;align-items:center;justify-content:center;gap:24px;border:1px solid #acc35f;border-radius:12px;background:#e0f477;color:#294130;padding:10px 19px;font-size:14px;font-weight:850}
#go2-quiz [data-game="sleep"]{--game-sky:#1d3055;--game-floor:#364c75}
#go2-quiz [data-game="sleep"] .go-game-field{background:linear-gradient(150deg,#172747,#30426b)}
#go2-quiz [data-game="rise"]{--game-sky:#fff8d7;--game-floor:#e7edbc}
#go2-quiz [data-game="muscle"]{--game-sky:#f4eadc;--game-floor:#e4ebd8}
#go2-quiz [data-game="hydro"]{--game-sky:#b8e6e9;--game-floor:#8dcbd2}
#go2-quiz [data-game="gut"]{--game-sky:#f7f9ef;--game-floor:#e9f0df}
#go2-quiz [data-game="daily"]{--game-sky:#e9f2de;--game-floor:#d2e4c0}
#go2-quiz .go-game-field.is-memory{padding:12px}
#go2-quiz .go-game-memory-meta{display:flex;justify-content:space-between;gap:8px;font-size:10px;color:#426647;margin:2px 0 10px}
#go2-quiz .go-game-memory{max-width:380px;margin-inline:auto;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}
#go2-quiz .go-game-memory button{position:relative;aspect-ratio:1;min-width:44px;min-height:44px;padding:0;border:1px solid #658359;border-radius:12px;background:linear-gradient(150deg,#729569,#426b52);color:#eaf4d0;box-shadow:0 3px 0 #315f4333;overflow:hidden;transition:background .18s,scale .18s}
#go2-quiz .go-game-card-back{display:grid;place-items:center;position:absolute;inset:0}
#go2-quiz .go-game-card-back img{display:block;width:58%;height:auto;max-height:58%;object-fit:contain}
#go2-quiz .go-game-card-face{display:none;position:absolute;inset:0}
/* Center Muscle's asymmetric sprite without the storefront's bottom-anchored pose. */
#go2-quiz .go-game-card-face .lia-mascot[data-mascot="muscle"]{scale:1.1;translate:-9.2% 1.3%;transform-origin:50% 50%}
#go2-quiz .go-game-memory button[aria-pressed="true"]{background:#fffef1;border-color:#a5bc88}
#go2-quiz .go-game-memory button[aria-pressed="true"] .go-game-card-back{display:none}
#go2-quiz .go-game-memory button[aria-pressed="true"] .go-game-card-face{display:block}
#go2-quiz .go-game-memory button.is-matched{background:#dcecb7;border-color:#8eae68;box-shadow:none}
#go2-quiz .go-game-memory button.is-matched:after{content:"✓";position:absolute;right:4px;bottom:3px;font-size:11px;color:#416b41;font-weight:900}
@media(max-width:560px){
 #go2-quiz .go-game-picker{padding:11px}
 #go2-quiz .go-game-options button{gap:4px;padding:5px 16px 5px 5px}
 #go2-quiz .go-game-option-mascot{flex-basis:32px;width:32px;height:32px}
 #go2-quiz .go-build-game-host{margin-top:10px}
 #go2-quiz .go-minigame{padding:13px 10px 4px;border-radius:19px}
 #go2-quiz .go-game-heading,#go2-quiz .go-game-title-row{margin-left:4px;margin-right:4px}
 #go2-quiz .go-game-title-row{gap:6px;margin-bottom:10px}
 #go2-quiz .go-game-title-mascot{flex-basis:42px;width:42px;height:50px}
 #go2-quiz .go-minigame h3{font-size:20px}
 #go2-quiz .go-game-subtitle{font-size:11px}
 #go2-quiz .go-game-field{border-radius:13px}
 #go2-quiz .go-game-score{font-size:10px}
 #go2-quiz .go-build-status{font-size:12px;min-height:34px}
 #go2-quiz .go-game-intro-mascot{width:65px;height:65px}
 #go2-quiz .go-game-overlay{padding:10px}
 #go2-quiz .go-game-overlay strong{font-size:20px}
 #go2-quiz .go-game-overlay p{font-size:11px;margin:5px 0 10px;max-width:250px}
 #go2-quiz .go-game-hud{top:8px;left:7px;right:7px;font-size:8px;letter-spacing:0}
 #go2-quiz .go-game-hud span{padding:4px 5px}
 #go2-quiz .go-game-field.is-memory{padding:9px}
 #go2-quiz .go-game-memory{gap:6px}
 #go2-quiz .go-game-memory button{border-radius:8px}
 #go2-quiz .go-game-memory-meta{font-size:9px}
 #go2-quiz .go-build-ready-slot p{font-size:11px}
}
@media(prefers-reduced-motion:reduce){#go2-quiz .go-minigame *,#go2-quiz .go-minigame *:before,#go2-quiz .go-minigame *:after{animation:none!important;transition:none!important}}

#go2-quiz .go-build-companions{display:grid;grid-template-columns:repeat(var(--crew-count),minmax(0,62px));justify-content:center;gap:4px;width:max-content;max-width:100%;min-height:62px;margin:0 0 14px}
#go2-quiz .go-build-companion{display:block;width:100%;aspect-ratio:1}
#go2-quiz .go-build-companion .lia-mascot{display:block;width:100%;height:100%}
#go2-quiz .go-build-companion .lia-mascot-frame{width:100%;height:100%}
#go2-quiz .go-game-announcement{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
#go2-quiz .go-game-timer{font-variant-numeric:tabular-nums;font-size:15px;font-weight:800;color:var(--go-green);min-width:48px}
#go2-quiz .go-game-restart{display:flex;align-items:center;justify-content:center;gap:5px;min-height:44px;padding:7px 9px;border:1px solid var(--go-line);border-radius:10px;background:transparent;color:var(--go-green);font-size:11px;font-weight:750}
#go2-quiz .go-game-restart span{font-size:20px;line-height:1}
#go2-quiz .go-game-restart:disabled{opacity:.4;cursor:default}
@media(max-width:560px){
 #go2-quiz .go-build-companions{grid-template-columns:repeat(var(--crew-mobile-count),minmax(0,52px));min-height:52px;margin-bottom:10px}
 #go2-quiz .go-game-timer{font-size:13px;min-width:43px}
 #go2-quiz .go-game-restart{padding-inline:7px;font-size:10px}
}

#go2-quiz .go-game-instructions{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
#go2-quiz .go-game-overlay .go-game-start{margin-top:18px}
#go2-quiz .go-game-memory-meta{justify-content:flex-end}
#go2-quiz .go-minigame.is-finished .go-game-heading{display:none}
#go2-quiz .go-game-results{padding:0 1px 8px;text-align:center}
#go2-quiz .go-game-result-summary{padding:5px 0 11px}
#go2-quiz .go-game-result-summary>span{display:block;font-size:11px;color:var(--go-muted)}
#go2-quiz .go-game-result-summary>strong{display:block;font-size:36px;font-weight:850;color:var(--go-green);line-height:1.2;font-variant-numeric:tabular-nums}
#go2-quiz .go-game-result-summary small{display:block;font-size:11px;font-weight:650;margin-top:4px}
#go2-quiz .go-game-result-save{font-size:12px;line-height:1.4;color:var(--go-muted);max-width:350px;margin:0 auto 12px}
#go2-quiz .go-game-auth-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:0 0 20px}
#go2-quiz .go-game-auth-actions button,#go2-quiz .go-game-again{min-height:44px;border:1px solid var(--go-line);border-radius:12px;background:var(--go-panel);color:var(--go-green);font-size:12px;font-weight:800;padding:10px 12px;touch-action:manipulation}
#go2-quiz .go-game-auth-actions [data-score-auth="signup"]{background:var(--go-lime);color:var(--go-on-lime);border-color:transparent}
#go2-quiz .go-game-ranking{border:1px solid var(--go-line);border-radius:15px;overflow:hidden;text-align:left;margin-bottom:14px}
#go2-quiz .go-game-ranking-heading{display:flex;justify-content:space-between;align-items:center;gap:8px;padding:12px;background:var(--go-soft)}
#go2-quiz .go-game-ranking-heading h4{margin:0;font-size:13px;color:var(--go-green)}
#go2-quiz .go-game-ranking-heading>span{font-size:9px;color:var(--go-muted)}
#go2-quiz .go-game-ranking-list{margin:0;padding:0;list-style:none;max-height:240px;overflow-y:auto;overscroll-behavior:contain}
#go2-quiz .go-game-ranking-list li{display:flex;align-items:center;gap:10px;min-height:48px;padding:8px 12px;border-top:1px solid var(--go-line);font-size:12px}
#go2-quiz .go-game-ranking-list li:first-child{border-top:0}
#go2-quiz .go-game-rank{width:14px;color:var(--go-muted);font-size:10px;text-align:center}
#go2-quiz .go-game-initials{display:grid;place-items:center;width:30px;height:30px;flex:0 0 30px;border-radius:50%;background:var(--go-soft);color:var(--go-green);font-size:10px;font-weight:850}
#go2-quiz .go-game-player-name{flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:750}
#go2-quiz .go-game-ranking-list li>strong{font-variant-numeric:tabular-nums;color:var(--go-green);white-space:nowrap}
#go2-quiz .go-game-ranking-list small{font-size:9px;font-weight:500;margin-left:4px;color:var(--go-muted)}
#go2-quiz .go-game-ranking-empty{padding:18px 12px;margin:0;font-size:12px;text-align:center;color:var(--go-muted)}
#go2-quiz .go-game-again{width:100%;display:flex;align-items:center;justify-content:center;gap:22px;background:var(--go-soft)}
#go2-quiz .go-game-score-retry{background:transparent;border:0;color:var(--go-green);font-size:11px;min-height:44px;text-decoration:underline;text-underline-offset:3px}
#go2-quiz .go-game-results button:focus-visible{outline:3px solid #169e91;outline-offset:2px}
.go-game-saved-notice{position:fixed;z-index:9999;bottom:24px;left:50%;transform:translateX(-50%);max-width:calc(100vw - 32px);padding:15px 22px;border:1px solid #b9d49b;border-radius:16px;background:#f4f9e7;color:#294c35;font:700 14px/1.4 "Nunito Sans",system-ui,sans-serif;box-shadow:0 10px 30px #203d2a25;text-align:center}
@media(max-width:560px){#go2-quiz .go-game-ranking-list li{gap:7px;padding-inline:9px}#go2-quiz .go-game-ranking-heading{padding:10px}#go2-quiz .go-game-ranking-heading>span{font-size:8px}}

/* Keep the mobile loading view focused on the game and its completion action. */
#go2-quiz.go-is-building #go-save-open,
#go2-quiz.go-is-building #go-save-panel{display:none}
@media(max-width:767px){
 #go2-quiz.go-is-building .go-header{grid-template-columns:1fr;margin-bottom:8px}
 #go2-quiz.go-is-building .go-logo,
 #go2-quiz.go-is-building .go-tools{display:none}
 #go2-quiz .go-build-experience,
 #go2-quiz .go-build-experience:has(.go-minigame){min-height:0;padding-top:0;justify-content:flex-start}
 #go2-quiz .go-build-companions{display:none}
 #go2-quiz .go-build-experience>h2,
 #go2-quiz .go-build-status{position:absolute;width:1px;height:1px;min-height:0;margin:-1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
 #go2-quiz .go-build-steps,
 #go2-quiz [data-build-wait]{display:none}
 #go2-quiz .go-build-view-protocol:disabled{display:flex}
 #go2-quiz .go-build-game-host{order:1;margin-top:0}
 #go2-quiz .go-build-ready-slot{order:2;min-height:48px;margin-top:12px}
}

/* Keep the game switch centered after the protocol action on every screen. */
#go2-quiz .go-build-game-host{display:contents}
#go2-quiz .go-build-game-host>.go-game-active{order:1;width:100%;max-width:530px;margin-top:10px}
#go2-quiz .go-build-ready-slot{order:2}
#go2-quiz .go-build-game-host>.go-game-toolbar{order:3;justify-content:center;width:100%;max-width:530px;margin:12px 0 0}
#go2-quiz .go-game-switch svg{width:24px;height:24px;flex-shrink:0}

/* Keep the game header clear on every screen size. */
#go2-quiz.go-is-building .go-logo{display:none}
#go2-quiz .go-build-status[hidden]{display:none}

/* The loading view must not inherit the chat's fixed, clipped viewport. */
.lia-quiz-stage:has(#go2-quiz.go-is-building){min-height:0;padding-block:8px 24px}
#go2-quiz.go-is-building{height:auto;overflow:visible}
#go2-quiz.go-chat.go-is-building{padding-block:14px}
#go2-quiz.go-chat.go-is-building .go-header{padding-block:0;margin-bottom:4px}
#go2-quiz.go-chat.go-is-building #go-main{flex:none;overflow:visible}
#go2-quiz.go-is-building .go-build-experience,
#go2-quiz.go-is-building .go-build-experience:has(.go-minigame){--go-build-game-width:clamp(260px,calc((100dvh - 500px)*1.25),530px);min-height:0;padding:0;justify-content:flex-start}
#go2-quiz.go-is-building .go-build-experience:has(.go-game-field.is-memory){--go-build-game-width:clamp(260px,calc(100dvh - 535px),530px)}
#go2-quiz.go-is-building .go-build-experience>h2{line-height:1.15;margin-bottom:8px}
#go2-quiz.go-is-building .go-build-steps{margin:8px 0 0}
#go2-quiz.go-is-building .go-build-game-host>.go-game-active,
#go2-quiz.go-is-building .go-build-game-host>.go-game-toolbar,
#go2-quiz.go-is-building .go-build-ready-slot{max-width:var(--go-build-game-width)}
@media(min-width:768px) and (max-height:800px){
  #go2-quiz.go-is-building .go-minigame h3{font-size:18px}
  #go2-quiz.go-is-building .go-game-title-mascot{flex-basis:36px;width:36px;height:40px}
  #go2-quiz.go-is-building .go-game-title-row,
  #go2-quiz.go-is-building .go-game-heading{margin-bottom:10px}
}
