/* Kuru Games: the open world (js/games/world/*). One full-screen page: the canvas is drawn by three.js; everything a child reads
   or presses is HTML on top of it (game bar, start card, joystick, prompts, panel, game layer). The 2D campus map stays in the page
   as the list view and the fallback (hub.css); this file only decides which one shows. */

/* ---- which view: the world shows with JavaScript unless the list was chosen or the device cannot draw it */
.wd { display: none; }
html.js .hb-world:not(.is-list) .wd { display: block; position: fixed; inset: 0; z-index: 400; padding: 0; margin: 0; }
html.js .hb-world:not(.is-list) :is(.hb-map, .hb-legend) { display: none; }
html.js .hb-world:not(.is-list) { isolation: auto; overflow: visible; }
/* the world is the whole page: the site's nav, the shelf and the footer step aside ("All games" brings the page back) */
html.gw-on :is(.nv, .hb-shelf, .hb-promise, .hb-note, footer.ft, .skip, .hb-sky, .hb-hero__in, .hb-todaybox) { display: none !important; }
html.gw-on, html.gw-on body { overflow: hidden; overscroll-behavior: none; }
.wd-open { display: inline-flex; align-items: center; min-height: 44px; margin: 4px 0 0 10px; padding: 0 18px; border: 0; border-radius: 999px; background: var(--blue, #2346C6); color: #fff; font: 800 16px/1 var(--font-body); cursor: pointer; }
.wd-open:hover { filter: brightness(1.08); }
.wd-open[hidden] { display: none; }

/* ---- the stage: the whole viewport */
.wd__stage { position: relative; width: 100%; height: 100vh; height: 100dvh; overflow: clip; isolation: isolate; background: linear-gradient(180deg, #5CB6EA, #BFE6F2); color: #1B2A55; font-family: var(--font-body); user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.hb-world[data-sky="dusk"] .wd__stage { background: linear-gradient(180deg, #7A8FD0, #F6C2A4); }
.hb-world[data-sky="night"] .wd__stage { background: linear-gradient(180deg, #070F2E, #1B2D62); }
.wd__canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; cursor: grab; outline: none; }
.wd__canvas:active { cursor: grabbing; }
.wd__loading { position: absolute; inset: 0; z-index: 7; display: grid; place-content: center; justify-items: center; gap: 6px; text-align: center; color: #13306B; font: 700 17px/1.3 var(--font-body); }
.wd__loading b { font: 800 26px/1.1 var(--font-display); }
.hb-world[data-sky="night"] .wd__loading { color: #EAF0FF; }
.wd__loading[hidden] { display: none; }
.wd__spin { width: 50px; height: 50px; margin-bottom: 8px; border-radius: 50%; border: 6px solid rgba(255, 255, 255, .6); border-top-color: #FFCB3D; }
@media (prefers-reduced-motion: no-preference) { html:not(.rm) .wd__spin { animation: wd-spin 900ms linear infinite; } }
@keyframes wd-spin { to { transform: rotate(360deg); } }

/* ---- the game bar: slim, over the world, inside the safe areas */
.gw-bar { position: absolute; z-index: 35; left: 0; right: 0; top: 0; display: flex; align-items: center; gap: 10px 14px; padding: max(10px, env(safe-area-inset-top)) max(14px, env(safe-area-inset-right)) 8px max(14px, env(safe-area-inset-left)); pointer-events: none; }
.gw-bar > * { pointer-events: auto; }
.gw-logo { display: inline-flex; align-items: center; min-height: 44px; padding: 4px 12px; border-radius: 999px; background: rgba(255, 253, 248, .92); box-shadow: 0 2px 0 rgba(24, 34, 77, .12), 0 8px 14px -8px rgba(24, 34, 77, .5); }
.gw-logo img { display: block; width: 78px; height: auto; }
.gw-zone { margin: 0 auto 0 0; padding: 7px 16px; border-radius: 999px; background: rgba(255, 253, 248, .88); font: 800 17px/1.1 var(--font-display); color: #1B2A55; box-shadow: 0 2px 0 rgba(24, 34, 77, .1); }
.gw-stars { display: inline-flex; align-items: center; gap: 7px; margin: 0; padding: 6px 14px 6px 10px; border-radius: 999px; background: rgba(255, 253, 248, .92); font: 800 20px/1 var(--font-display); color: #7A4A10; box-shadow: 0 2px 0 rgba(24, 34, 77, .12); }
.gw-stars i { width: 24px; height: 24px; background: linear-gradient(#FFE27A, #FFB300); clip-path: polygon(50% 0, 62% 35%, 98% 36%, 69% 57%, 80% 92%, 50% 70%, 20% 92%, 31% 57%, 2% 36%, 38% 35%); }
.gw-stars span { font: 700 14px/1 var(--font-body); color: #5A6A96; }
.gw-stars.is-pop { animation: gw-pop 520ms cubic-bezier(.2, 1.4, .3, 1); }
@keyframes gw-pop { 0% { transform: scale(1); } 35% { transform: scale(1.22) rotate(-3deg); } 100% { transform: scale(1); } }
.gw-tools { display: flex; align-items: center; gap: 8px; }
.gw-btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-width: 44px; min-height: 44px; padding: 0 12px; border: 0; border-radius: 999px; background: rgba(255, 253, 248, .92); color: #1B2A55; cursor: pointer; font: 800 15.5px/1 var(--font-body); text-decoration: none;
  box-shadow: 0 2px 0 rgba(24, 34, 77, .12), 0 8px 14px -8px rgba(24, 34, 77, .5); }
.gw-btn svg { width: 22px; height: 22px; flex: none; }
.gw-btn:hover { background: #fff; }
.gw-btn:focus-visible, .gw-logo:focus-visible, .gw-act:focus-visible, .gw-layer__x:focus-visible { outline: 3px solid #1F3FB8; outline-offset: 3px; }
#gw-sound .gw-off { display: none; } #gw-sound.is-off .gw-on { display: none; } #gw-sound.is-off .gw-off { display: inline; }
#gw-sky .gw-moon { display: none; } #gw-sky.is-night .gw-sun { display: none; } #gw-sky.is-night .gw-moon { display: inline; }
.hb-world[data-sky="night"] .gw-logo, .hb-world[data-sky="night"] .gw-zone, .hb-world[data-sky="night"] .gw-stars, .hb-world[data-sky="night"] .gw-btn { background: rgba(24, 36, 84, .86); color: #fff; }
.hb-world[data-sky="night"] .gw-zone, .hb-world[data-sky="night"] .gw-stars { color: #FFE9A8; }
.hb-world[data-sky="night"] .gw-stars span { color: #BFCBFF; }
@media (max-width: 760px) {
  .gw-bar { gap: 6px 8px; flex-wrap: wrap; }
  .gw-logo { padding: 4px 9px; } .gw-logo img { width: 62px; }
  .gw-zone { font-size: 15px; padding: 6px 12px; order: 5; margin: 0; }
  .gw-btn--txt span { display: none; }
  .gw-btn--txt { padding: 0; width: 44px; }
  .gw-stars { margin-left: auto; font-size: 18px; } .gw-stars span { display: none; }
}
@media (max-height: 460px) { .gw-zone { order: 0; margin-right: auto; } .gw-bar { flex-wrap: nowrap; padding-bottom: 4px; } .gw-btn--txt span { display: none; } .gw-btn--txt { padding: 0; width: 44px; } .gw-stars span { display: none; } }

/* ---- the zone banner and Kuru's words */
.gw-banner { position: absolute; z-index: 18; left: 50%; top: 74px; translate: -50% 0; display: grid; gap: 2px; justify-items: center; max-width: min(520px, calc(100% - 28px)); padding: 12px 26px 13px; border-radius: 22px; text-align: center; pointer-events: none;
  background: rgba(255, 253, 248, .94); color: #1B2A55; box-shadow: 0 3px 0 rgba(24, 34, 77, .12), 0 18px 30px -14px rgba(24, 34, 77, .6); }
.gw-banner b { font: 800 clamp(22px, 3.4vw, 32px)/1.05 var(--font-display); }
.gw-banner span { font: 700 16px/1.3 var(--font-body); color: #4E5C86; }
.gw-banner a { pointer-events: auto; color: #1F3FB8; }
.gw-banner[hidden] { display: none; }
@media (prefers-reduced-motion: no-preference) { html:not(.rm) .gw-banner.is-in { animation: gw-drop 520ms cubic-bezier(.2, 1.3, .3, 1) both; } }
@keyframes gw-drop { from { opacity: 0; transform: translateY(-18px) scale(.92); } to { opacity: 1; transform: none; } }
@media (max-height: 460px) { .gw-banner { top: 56px; padding: 8px 20px 9px; } .gw-banner b { font-size: 20px; } }
.wd__say { position: absolute; left: 0; top: 0; z-index: 12; max-width: min(300px, 64%); margin: 0; padding: 10px 15px; border-radius: 18px; background: #fff; color: #1B2A55; text-align: center; pointer-events: none;
  font: 800 16px/1.25 var(--font-display); box-shadow: 0 2px 0 rgba(24, 34, 77, .12), 0 12px 22px -10px rgba(24, 34, 77, .6); will-change: transform; }
.wd__say::after { content: ""; position: absolute; left: 50%; bottom: -6px; width: 14px; height: 14px; margin-left: -7px; background: #fff; border-radius: 3px; transform: rotate(45deg); }
.wd__say[hidden] { display: none; }
@media (prefers-reduced-motion: no-preference) { html:not(.rm) .wd__say:not([hidden]) { animation: wd-pop 320ms cubic-bezier(.2, 1.3, .3, 1) both; } }
@keyframes wd-pop { from { opacity: 0; scale: .8; } to { opacity: 1; scale: 1; } }
.gw-prompt { position: absolute; left: 0; top: 0; z-index: 11; display: inline-flex; align-items: center; gap: 8px; max-width: 70%; padding: 6px 14px 6px 7px; border-radius: 999px; background: rgba(255, 253, 248, .96); color: #1B2A55; pointer-events: none; will-change: transform;
  font: 800 16px/1.1 var(--font-display); box-shadow: 0 2px 0 rgba(24, 34, 77, .12), 0 10px 18px -8px rgba(24, 34, 77, .55); white-space: nowrap; }
.gw-prompt[hidden] { display: none; }
.gw-key { display: inline-grid; place-items: center; min-width: 30px; height: 30px; padding: 0 6px; border-radius: 9px; background: #2346C6; color: #fff; font: 800 16px/1 var(--font-display); box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .25); }
.gw-prompt__free { margin-left: 8px; padding: 2px 8px; border-radius: 999px; background: #3FBF74; color: #fff; font: 800 13px/1.2 var(--font-body); }
.gw-keys { position: absolute; left: 50%; bottom: 14px; z-index: 6; translate: -50% 0; margin: 0; padding: 8px 16px; border-radius: 999px; background: rgba(255, 253, 248, .88); color: #33436F; font: 700 15px/1.2 var(--font-body); pointer-events: none; transition: opacity 600ms; }
.gw-keys[hidden] { display: none; } .gw-keys.is-fade { opacity: 0; }
.gw-keys kbd { display: inline-block; min-width: 22px; padding: 1px 5px; margin: 0 1px; border-radius: 6px; background: #fff; box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .18); font: 800 13px/1.4 var(--font-body); text-align: center; }
.gw-keys span { margin-left: 8px; opacity: .8; }

/* ---- the start card (over the live world: Kuru waves behind it) */
.gw-start { position: absolute; inset: 0; z-index: 30; display: grid; place-items: center end; padding: 70px max(5vw, 24px) 24px; background: linear-gradient(90deg, rgba(10, 20, 60, 0) 30%, rgba(10, 20, 60, .28)); }
.gw-start[hidden] { display: none; }
.gw-start__card { width: min(430px, 100%); padding: 26px 28px 22px; border-radius: 30px; text-align: center; background: #FFFDF8; box-shadow: inset 0 1px 0 #fff, 0 3px 4px rgba(24, 34, 77, .22), 0 34px 70px -24px rgba(10, 20, 60, .75); }
.gw-start__t { font: 800 clamp(34px, 4vw, 48px)/1 var(--font-display); color: #2346C6; outline: none; }
.gw-start__d { margin-top: 10px; font: 600 17px/1.45 var(--font-body); color: #3C4A75; text-wrap: balance; }
.gw-start__acts { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 18px; }
.gw-start__go { min-height: 56px; padding: 0 34px; font-size: 21px; }
.gw-start__k { margin-top: 12px; font: 700 15px/1.3 var(--font-body); color: #6573A0; }
@media (prefers-reduced-motion: no-preference) { html:not(.rm) .gw-start__card { animation: lk-in 560ms cubic-bezier(.2, 1.2, .3, 1) both; } }
@media (max-width: 760px), (max-height: 460px) { .gw-start { place-items: center; padding: 64px 14px 14px; background: linear-gradient(0deg, rgba(10, 20, 60, .3), rgba(10, 20, 60, 0) 60%); } }
@media (max-height: 460px) { .gw-start { place-items: center end; } .gw-start__card { width: min(380px, 56%); padding: 14px 18px 12px; border-radius: 22px; } .gw-start__t { font-size: 28px; } .gw-start__d { font-size: 15px; margin-top: 4px; } .gw-start__acts { margin-top: 10px; } .gw-start__go { min-height: 48px; } .gw-start__k { display: none; } }

/* ---- touch controls: joystick bottom-left, run / hop / use bottom-right */
.gw-touch { position: absolute; inset: auto 0 0 0; z-index: 16; display: flex; justify-content: space-between; align-items: flex-end; padding: 0 max(18px, env(safe-area-inset-right)) max(18px, env(safe-area-inset-bottom)) max(22px, env(safe-area-inset-left)); pointer-events: none; }
.gw-touch[hidden] { display: none; }
.gw-stick { position: relative; width: 132px; height: 132px; border-radius: 50%; pointer-events: auto; touch-action: none; background: radial-gradient(circle at 50% 40%, rgba(255, 255, 255, .5), rgba(255, 255, 255, .22)); box-shadow: inset 0 0 0 3px rgba(255, 255, 255, .7), 0 12px 24px -10px rgba(10, 20, 60, .6); }
.gw-knob { position: absolute; left: 50%; top: 50%; width: 58px; height: 58px; margin: -29px 0 0 -29px; border-radius: 50%; background: radial-gradient(circle at 40% 30%, #fff, #D8E6FF); box-shadow: 0 6px 12px -4px rgba(10, 20, 60, .6); }
.gw-acts { display: flex; align-items: flex-end; gap: 14px; pointer-events: none; }
.gw-act { pointer-events: auto; display: grid; place-items: center; width: 68px; height: 68px; border: 0; border-radius: 50%; background: rgba(255, 253, 248, .94); color: #1B2A55; box-shadow: 0 3px 0 rgba(24, 34, 77, .16), 0 12px 20px -8px rgba(10, 20, 60, .6); touch-action: manipulation; }
.gw-act svg { width: 32px; height: 32px; }
.gw-act--use { width: 84px; height: 84px; background: #2346C6; color: #fff; opacity: .8; } .gw-act--use.is-ready { opacity: 1; background: #1F9E5B; } .gw-act--use svg { width: 40px; height: 40px; }
.gw-act--run { width: 54px; height: 54px; align-self: center; } .gw-act--run[aria-pressed="true"] { background: #FFCB3D; }
.gw-act:active { transform: scale(.94); }
@media (prefers-reduced-motion: no-preference) { html:not(.rm) .gw-act--use.is-ready { animation: gw-pulse 1100ms ease-in-out infinite; } }
@keyframes gw-pulse { 50% { box-shadow: 0 0 0 10px rgba(63, 191, 116, .35), 0 12px 20px -8px rgba(10, 20, 60, .6); } }
@media (max-height: 460px) { .gw-stick { width: 116px; height: 116px; } .gw-act { width: 58px; height: 58px; } .gw-act--use { width: 72px; height: 72px; } .gw-touch { padding-bottom: max(10px, env(safe-area-inset-bottom)); } }

/* ---- portrait phone: a friendly card */
.gw-turn { position: absolute; inset: 0; z-index: 40; display: grid; place-items: center; padding: 20px; background: rgba(10, 20, 60, .55); }
.gw-turn[hidden] { display: none; }
.gw-turn__card { width: min(340px, 100%); padding: 26px 22px 20px; border-radius: 28px; text-align: center; background: #FFFDF8; display: grid; gap: 8px; justify-items: center; }
.gw-turn__card h2 { font: 800 26px/1.1 var(--font-display); color: #2346C6; }
.gw-turn__card p { font: 600 17px/1.4 var(--font-body); color: #3C4A75; }
.gw-turn__phone { width: 54px; height: 94px; border-radius: 12px; border: 6px solid #2346C6; background: linear-gradient(#D6E6FF, #fff); position: relative; }
.gw-turn__phone::after { content: ""; position: absolute; left: 50%; bottom: 6px; width: 14px; height: 4px; margin-left: -7px; border-radius: 4px; background: #2346C6; }
@media (prefers-reduced-motion: no-preference) { html:not(.rm) .gw-turn__phone { animation: gw-rot 2.6s ease-in-out infinite; } }
@keyframes gw-rot { 0%, 20% { transform: rotate(0); } 55%, 80% { transform: rotate(-90deg); } 100% { transform: rotate(0); } }

/* ---- a game inside the page */
.gw-layer { position: absolute; inset: 0; z-index: 60; display: flex; flex-direction: column; background: #FFF4E2; }
.gw-layer[hidden] { display: none; }
.gw-layer__bar { display: flex; align-items: center; gap: 14px; padding: max(8px, env(safe-area-inset-top)) max(12px, env(safe-area-inset-right)) 8px max(12px, env(safe-area-inset-left)); background: #FFFDF8; box-shadow: 0 2px 0 rgba(24, 34, 77, .1); }
.gw-layer__bar h2 { font: 800 20px/1.1 var(--font-display); color: #1B2A55; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gw-layer__x { display: inline-flex; align-items: center; gap: 6px; min-height: 48px; padding: 0 18px 0 10px; border: 0; border-radius: 999px; background: #2346C6; color: #fff; cursor: pointer; font: 800 16px/1 var(--font-body); }
.gw-layer__x svg { width: 22px; height: 22px; }
.gw-layer__frame { flex: 1; width: 100%; border: 0; background: #FFF4E2; min-height: 0; }
@media (max-height: 460px) { .gw-layer__bar { padding-block: 4px; } .gw-layer__x { min-height: 44px; } }

/* ---- the place panel: a card on the right (wide) or a sheet from the bottom (phones) */
.wd__panel { position: absolute; z-index: 22; right: 14px; top: 70px; bottom: 14px; width: min(410px, 42%); display: flex; flex-direction: column; border-radius: 26px; background: #FFFDF8; color: var(--ink, #1B2A55);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9), 0 3px 4px rgba(24, 34, 77, .22), 0 30px 60px -22px rgba(24, 34, 77, .7); overflow: hidden; outline: none; }
.wd__panel[hidden] { display: none; }
@media (prefers-reduced-motion: no-preference) { html:not(.rm) .wd__panel.is-in { animation: wd-in 380ms cubic-bezier(.2, 1.1, .3, 1) both; } }
@keyframes wd-in { from { opacity: 0; transform: translateX(26px); } to { opacity: 1; transform: none; } }
.wd-panel__body { display: flex; flex-direction: column; min-height: 0; flex: 1; }
.wd-panel__x { position: absolute; right: 10px; top: 10px; z-index: 2; width: 44px; height: 44px; display: grid; place-items: center; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .86); color: #1B2A55; cursor: pointer; }
.wd-panel__x svg { width: 20px; height: 20px; }
.wd-panel__x:focus-visible, .wd-game:focus-visible { outline: 3px solid #1F3FB8; outline-offset: 2px; }
.wd-panel__head { display: flex; align-items: center; gap: 12px; padding: 14px 62px 12px 14px; background: var(--pl-bg, #FFE9B8); }
.wd-panel__art { flex: none; width: 92px; aspect-ratio: 240 / 180; border-radius: 16px; overflow: hidden; background: rgba(255, 255, 255, .5); }
.wd-panel__art svg { display: block; width: 100%; height: 100%; }
.wd-panel__art--home { background: #FFF4D6 url('/assets/art/icons/sun.svg') center / 62% no-repeat; }
.wd-panel__t { font: 800 clamp(21px, 2vw, 25px)/1.1 var(--font-display); color: var(--pl-ink, #7A4A10); outline: none; }
.wd-panel__l { margin-top: 3px; font: 700 15.5px/1.35 var(--font-body); color: var(--pl-ink, #7A4A10); }
.wd-panel__l b { font-weight: 900; }
.wd-games { list-style: none; margin: 0; padding: 10px 12px; display: grid; gap: 8px; overflow-y: auto; overscroll-behavior: contain; flex: 1; min-height: 0; }
.wd-game { position: relative; display: grid; grid-template-columns: 54px minmax(0, 1fr); align-items: center; gap: 12px; width: 100%; min-height: 66px; padding: 7px 12px 7px 8px; text-align: left; border: 0; border-radius: 18px; text-decoration: none; cursor: pointer;
  background: var(--pl-bg, #F4F0E6); color: var(--ink, #1B2A55); font-family: var(--font-body); box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .6); transition: transform 120ms, box-shadow 120ms; }
.wd-game:hover { transform: translateY(-1px); box-shadow: inset 0 0 0 2px #fff, 0 6px 12px -6px rgba(24, 34, 77, .4); }
.wd-game__art { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 14px; background: rgba(255, 255, 255, .62); }
.wd-game__art svg { width: 44px; height: 44px; }
.wd-game__body { display: grid; gap: 1px; min-width: 0; justify-items: start; }
.wd-game__t { font: 800 17px/1.2 var(--font-display); color: var(--pl-ink, #1B2A55); }
.wd-game__m { font: 700 15px/1.25 var(--font-body); color: #4E5C86; }
.wd-game__st { display: inline-flex; align-items: center; gap: 5px; margin-top: 3px; padding: 2px 9px; border-radius: 999px; background: rgba(255, 255, 255, .78); font: 800 14.5px/1.3 var(--font-body); color: #3C4A75; }
.wd-game__st i { width: 14px; height: 14px; background: #FFC93C; clip-path: polygon(50% 0, 62% 35%, 98% 36%, 69% 57%, 80% 92%, 50% 70%, 20% 92%, 31% 57%, 2% 36%, 38% 35%); }
.wd-game__st.is-done { background: #C9EFD9; color: #1B5A33; }
.wd-game__st.is-new { background: #fff; color: #1F3FB8; }
.wd-game .lk-trial, .wd-game .lk-badge { margin-top: 3px; font-size: 14px; }
.wd-game.is-free { box-shadow: inset 0 0 0 3px #3FBF74, 0 6px 14px -8px rgba(31, 120, 70, .7); background: #E8F8EE; }
.wd-game.is-locked { background: #F2EEE4; }
.wd-game.is-locked .wd-game__art { opacity: .66; filter: saturate(.65); }
.wd-game.is-locked .wd-game__t { color: #4B5575; }
.wd-panel__cta { display: flex; align-items: center; justify-content: space-between; gap: 10px 14px; flex-wrap: wrap; padding: 12px 14px 14px; background: #FFE28A; }
.wd-panel__cta p { flex: 1 1 170px; font: 700 15.5px/1.3 var(--font-body); color: #5A3A06; }
.wd-panel__cta .btn { min-height: 46px; }

@media (max-width: 859px) {
  .wd__panel { left: 8px; right: 8px; top: auto; bottom: 74px; width: auto; max-height: min(330px, calc(100% - 190px)); border-radius: 24px; }
  @media (prefers-reduced-motion: no-preference) { html:not(.rm) .wd__panel.is-in { animation: wd-up 380ms cubic-bezier(.2, 1.1, .3, 1) both; } }
  .wd-panel__art { width: 58px; border-radius: 12px; }
  .wd-panel__head { padding: 8px 56px 8px 8px; gap: 10px; }
  .wd-panel__t { font-size: 20px; }
  .wd-panel__l { margin-top: 1px; font-size: 14.5px; line-height: 1.25; }
  .wd-games { padding: 8px; gap: 6px; }
  .wd-game { min-height: 60px; padding: 5px 10px 5px 6px; grid-template-columns: 46px minmax(0, 1fr); gap: 10px; }
  .wd-game__art { width: 46px; height: 46px; } .wd-game__art svg { width: 38px; height: 38px; }
  .wd-panel__cta { flex-wrap: nowrap; gap: 8px; padding: 8px 10px; }
  .wd-panel__cta p { font-size: 14.5px; line-height: 1.2; flex: 1 1 auto; }
  .wd-panel__cta p b { display: block; }
  .wd-panel__cta .btn { min-height: 44px; padding: 0 14px; font-size: 15.5px; flex: none; }
  .wd-panel__x { top: 6px; right: 6px; }
}
@media (max-width: 640px) {
  .wd__stage:not([data-open=""]) .wd__tools, .wd__stage:not([data-open=""]) .wd__say { display: none; }
}
@keyframes wd-up { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: none; } }

/* the sheet's offers on the dark of night keep their own paper (lock.css); nothing to add here */

.wd-panel__art--school { background: #E6F0FF url('/assets/3d/posters/school.png') center / contain no-repeat; }
@media (max-height: 460px) and (min-width: 560px) {
  .wd__panel { top: 54px; bottom: 8px; right: 8px; width: min(380px, 48%); border-radius: 20px; left: auto; max-height: none; }
  .wd-panel__art { width: 64px; }
  .wd-panel__cta { padding: 8px 10px; }
}
.gw-start__acts [hidden] { display: none !important; }

/* ---------- install card (install.js) and the tree house's sticker link */
.gw-install { margin-top: 10px; min-height: 44px; }
.gw-install[hidden], .gw-ios[hidden] { display: none !important; }
.gw-ios { margin-top: 10px; text-align: left; font: 700 14px/1.4 var(--font-body); color: #46538A; }
.gw-ios summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; justify-content: center; color: var(--blue, #2346C6); list-style: none; }
.gw-ios summary::-webkit-details-marker { display: none; }
.gw-ios p { padding: 4px 6px 2px; }
@media (max-height: 460px) { .gw-install { margin-top: 6px; min-height: 40px; } .gw-ios { margin-top: 4px; } .gw-ios summary { min-height: 36px; } }
.wd-panel__link { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; margin: 10px 12px 0; padding: 0 14px; border-radius: 14px; background: #FFF7E0; color: #7A4A06; font: 800 15px/1 var(--font-body); text-decoration: none; box-shadow: inset 0 0 0 2px #FFC93C; }
.wd-panel__link:hover { background: #FFEFC2; }
