@font-face { font-family: 'Fredoka'; src: url(../fonts/fredoka.woff2) format('woff2'); font-weight: 300 700; font-display: swap; }
@font-face { font-family: 'Baloo 2'; src: url(../fonts/baloo2-deva.woff2) format('woff2'); font-weight: 400 800; font-display: block; unicode-range: U+0900-097F, U+1CD0-1CF9, U+200C-200D, U+20A8, U+20B9, U+25CC, U+A830-A839, U+A8E0-A8FF; }

:root {
  --ink: #2b2a5e; --muted: #6a6aa0; --card: #ffffff;
  --c1: #ff7aa8; --c1d: #d64a7e; --c2: #4cc3ff; --c2d: #1d8fd0; --c3: #ffc93c; --c3d: #d99a00; --c4: #7ddc6f; --c4d: #3fa833;
  --violet: #9b7bff; --violetd: #6b4fd8;
  --font: 'Fredoka', 'Baloo 2', system-ui, sans-serif;
  --tap: 64px;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; overflow: hidden; }
body {
  font-family: var(--font); color: var(--ink); font-weight: 500;
  background:
    radial-gradient(60px 26px at 14% 9%, rgba(255,255,255,.85) 60%, transparent 62%),
    radial-gradient(44px 20px at 22% 7%, rgba(255,255,255,.85) 60%, transparent 62%),
    radial-gradient(70px 28px at 86% 15%, rgba(255,255,255,.7) 60%, transparent 62%),
    radial-gradient(120% 60% at 50% 115%, #9ff0a0 0 40%, transparent 41%),
    linear-gradient(180deg, #4cc3ff 0%, #8fd8ff 45%, #c6b8ff 100%);
  user-select: none; -webkit-user-select: none; touch-action: manipulation;
}
button { font-family: inherit; color: inherit; border: 0; background: none; cursor: pointer; padding: 0; touch-action: manipulation; }
input { font-family: inherit; }
.deva { font-family: 'Baloo 2', var(--font); }
img.pic { display: block; width: 100%; height: 100%; object-fit: contain; pointer-events: none; }
img.pic.xs { display: inline-block; width: 20px; height: 20px; vertical-align: -3px; }
img.pic.sm { display: inline-block; width: 28px; height: 28px; vertical-align: -6px; }

#app { position: relative; height: 100%; max-width: 520px; margin: 0 auto; }
.screen { position: absolute; inset: 0; display: flex; flex-direction: column; padding: calc(10px + env(safe-area-inset-top)) 14px calc(14px + env(safe-area-inset-bottom)); overflow-y: auto; animation: fadein .3s ease; }
@keyframes fadein { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes bob { 50% { transform: translateY(-7px) rotate(-3deg); } }
.bob { animation: bob 2.6s ease-in-out infinite; }

/* buttons */
.rbtn { width: var(--tap); height: var(--tap); border-radius: 22px; background: #fff; box-shadow: 0 5px 0 #c9c3ef, 0 10px 20px rgba(40,30,120,.18); display: grid; place-items: center; flex: none; padding: 12px; position: relative; font-size: 26px; font-weight: 700; color: var(--ink); }
.rbtn:active, .big:active, .opt:active, .tile:active, .game-card:active, .lv:active { transform: translateY(3px) scale(.97); }
.big { min-height: var(--tap); border-radius: 24px; font-size: 24px; font-weight: 700; display: flex; align-items: center; justify-content: center; gap: 10px; padding: 0 22px; color: #fff; background: linear-gradient(180deg, #b49bff, var(--violet)); box-shadow: 0 6px 0 var(--violetd), 0 12px 22px rgba(80,50,180,.3); }
.big img.pic { width: 36px; height: 36px; flex: none; }
.big.go { background: linear-gradient(180deg, #a2ef93, var(--c4)); box-shadow: 0 6px 0 var(--c4d), 0 12px 22px rgba(60,160,50,.3); }
.pill { min-height: 48px; padding: 0 20px; border-radius: 99px; background: rgba(255,255,255,.75); font-size: 18px; font-weight: 600; }
.pill.on { background: #fff; box-shadow: 0 4px 0 #c9c3ef; color: var(--violetd); }
.pill.warn { background: #ffe3ea; color: #c23a5e; margin-top: 12px; min-height: var(--tap); width: 100%; }
.title { text-align: center; font-size: 30px; margin: 10px 0 14px; color: var(--ink); text-shadow: 0 2px 0 rgba(255,255,255,.7); }

/* setup */
.setup { align-items: center; }
.lang-pills { display: flex; gap: 10px; align-self: center; }
.mascot-big { width: 130px; height: 130px; margin-top: 6px; }
.mascot-mid { width: 110px; height: 110px; margin-top: 30px; }
.av-grid { display: grid; grid-template-columns: repeat(4, 76px); gap: 12px; justify-content: center; }
.av { width: 76px; height: 76px; border-radius: 24px; background: #fff; padding: 10px; box-shadow: 0 5px 0 #c9c3ef; border: 4px solid transparent; }
.av.on { border-color: var(--c1); transform: scale(1.06); }
.field { width: min(320px, 100%); height: var(--tap); border-radius: 22px; border: 4px solid #fff; background: rgba(255,255,255,.9); color: var(--ink); font-size: 24px; text-align: center; font-weight: 600; outline: none; margin: 16px 0; }
.field:focus { border-color: var(--c2); }
.setup .big.go { width: 140px; height: 76px; }
.setup .big.go img.pic { width: 44px; height: 44px; }
.corner { position: absolute; left: 14px; top: calc(10px + env(safe-area-inset-top)); }
.age-list { display: flex; flex-direction: column; gap: 16px; width: min(340px, 100%); }
.age-card, .wl-card { display: flex; align-items: center; gap: 18px; min-height: 96px; border-radius: 28px; padding: 12px 22px; color: #fff; font-size: 28px; font-weight: 700; text-shadow: 0 2px 0 rgba(0,0,0,.15); }
.age-card img.pic { width: 64px; height: 64px; flex: none; }
.c1 { background: linear-gradient(180deg, #ff9cc0, var(--c1)); box-shadow: 0 7px 0 var(--c1d), 0 14px 24px rgba(214,74,126,.3); }
.c2 { background: linear-gradient(180deg, #8edcff, var(--c2)); box-shadow: 0 7px 0 var(--c2d), 0 14px 24px rgba(29,143,208,.3); }
.c3 { background: linear-gradient(180deg, #ffe07a, var(--c3)); box-shadow: 0 7px 0 var(--c3d), 0 14px 24px rgba(217,154,0,.3); color: #6b4300; text-shadow: none; }
.c4 { background: linear-gradient(180deg, #b0f0a3, var(--c4)); box-shadow: 0 7px 0 var(--c4d), 0 14px 24px rgba(63,168,51,.3); color: #1f5a17; text-shadow: none; }
.wl-big { display: flex; gap: 16px; width: min(340px, 100%); }
.wl-card { flex: 1; flex-direction: column; justify-content: center; min-height: 170px; gap: 4px; }
.wl-card b { font-size: 72px; line-height: 1; }

/* home */
.home { gap: 12px; }
.top { display: flex; align-items: center; gap: 10px; }
.flex1 { flex: 1; }
.bubble .hello { font-size: 24px; line-height: 1.15; overflow-wrap: anywhere; }
.bubble .agechip { font-size: 16px; color: var(--muted); margin-top: 2px; }
.rbtn.me { padding: 8px; }
.rbtn.hold .ring { position: absolute; inset: -5px; border-radius: 26px; border: 5px solid transparent; pointer-events: none; }
.rbtn.hold.holding .ring { border-color: var(--c4); animation: holdring 3s linear forwards; }
@keyframes holdring { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
.hold-hint { text-align: center; color: var(--ink); min-height: 22px; margin: 0; font-size: 17px; font-weight: 600; }
.mascot-row { display: flex; align-items: center; justify-content: center; gap: 10px; }
.mascot-row .mascot { width: 84px; height: 84px; }
.bubble { max-width: 230px; background: #fff; border-radius: 22px; padding: 10px 16px; font-size: 20px; font-weight: 700; box-shadow: 0 5px 0 #c9c3ef; position: relative; }
.bubble::before { content: ''; position: absolute; left: -10px; top: 50%; margin-top: -10px; border: 10px solid transparent; border-right-color: #fff; border-left: 0; }
.wl-toggle { display: flex; background: rgba(255,255,255,.55); border-radius: 26px; padding: 6px; gap: 6px; }
.wl-toggle button { flex: 1; min-height: var(--tap); border-radius: 20px; font-size: 22px; font-weight: 700; color: var(--muted); }
.wl-toggle button b { font-size: 30px; margin-right: 4px; }
.wl-toggle button.on { background: #fff; color: var(--violetd); box-shadow: 0 4px 0 #c9c3ef; }
.game-grid { display: grid; grid-template-columns: 1fr 1fr; grid-auto-rows: minmax(150px, 190px); gap: 14px; flex: 1; align-content: center; }
.game-card { justify-content: center; }
.game-card { border-radius: 28px; padding: 14px 10px 12px; display: flex; flex-direction: column; align-items: center; gap: 6px; min-height: 150px; font-weight: 700; }
.game-card .gi { width: 62px; height: 62px; }
.game-card .gn { font-size: 19px; line-height: 1.15; text-align: center; }
.game-card .gs { font-size: 16px; background: rgba(255,255,255,.35); border-radius: 99px; padding: 2px 10px; }
.sticker-btn { width: 100%; }

/* bars */
.bar { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.bar h2 { flex: 1; min-width: 0; margin: 0; text-align: center; font-size: 22px; color: var(--ink); background: rgba(255,255,255,.85); border-radius: 20px; padding: 10px 8px; }
.bar .sp { width: var(--tap); flex: none; }
.hint { text-align: center; color: var(--ink); font-size: 18px; margin: 0 0 10px; font-weight: 600; }

/* levels */
.lv-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; padding: 4px; }
.lv { aspect-ratio: 1; border-radius: 30px; background: #fff; box-shadow: 0 6px 0 #c9c3ef, 0 12px 20px rgba(40,30,120,.15); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 84px; }
.lv b { font-size: 36px; color: var(--violetd); }
.lv .st i { font-style: normal; font-size: 20px; color: #ddd8f3; }
.lv .st i.on { color: #ffb800; text-shadow: 0 1px 0 #c98a00; }
.lv.open { background: linear-gradient(180deg, #fff, #f3eeff); outline: 4px solid var(--c4); }
.lv.lock { background: rgba(255,255,255,.5); box-shadow: none; padding: 26px; }

/* game */
.gbar { margin-bottom: 6px; }
.dots { flex: 1; display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; }
.dots i { width: 16px; height: 16px; border-radius: 50%; background: rgba(255,255,255,.55); }
.dots i.d { background: #ffc93c; box-shadow: 0 2px 0 #d99a00; }
.dots i.c { background: #fff; outline: 3px solid var(--c1); }
.prompt { display: flex; align-items: center; gap: 8px; background: rgba(255,255,255,.9); border-radius: 22px; padding: 6px 14px 6px 8px; margin-bottom: 10px; font-size: 19px; font-weight: 600; min-height: 56px; }
.prompt .pm { width: 44px; height: 44px; flex: none; }
.stage { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: space-evenly; gap: 14px; padding-bottom: 10px; }
.pic-card { width: 170px; height: 170px; border-radius: 34px; background: #fff; padding: 22px; box-shadow: 0 7px 0 #c9c3ef, 0 14px 26px rgba(40,30,120,.18); flex: none; }
.pic-card.hidden-pic { padding: 46px; background: #f3eeff; }
.target { width: 150px; height: 150px; border-radius: 34px; background: #fff; display: grid; place-items: center; font-size: 96px; font-weight: 700; color: var(--c1d); box-shadow: 0 7px 0 #c9c3ef; line-height: 1; }
.ear { width: 160px; height: 150px; border-radius: 34px; background: #fff; box-shadow: 0 7px 0 #c9c3ef; position: relative; padding: 24px 40px 40px; animation: bob 2.4s ease-in-out infinite; }
.ear .ghost { position: absolute; bottom: 4px; left: 0; right: 0; text-align: center; font-size: 30px; font-weight: 700; color: var(--violetd); opacity: 0; }
.ear.show .ghost { opacity: 1; }
.opts { display: grid; gap: 14px; width: 100%; justify-content: center; }
.opts.letters { grid-template-columns: repeat(auto-fit, minmax(84px, 100px)); }
.opts.letters.n4 { grid-template-columns: repeat(2, 104px); }
.opts.letters.n5 { grid-template-columns: repeat(3, 92px); }
.opt { min-height: 84px; min-width: var(--tap); border-radius: 26px; background: #fff; font-size: 46px; font-weight: 700; color: var(--ink); box-shadow: 0 6px 0 #c9c3ef, 0 12px 20px rgba(40,30,120,.15); display: flex; align-items: center; justify-content: center; gap: 8px; line-height: 1; padding: 6px; }
.opt .deva, .tile .deva, .slot .deva, .target .deva { font-weight: 600; transform: translateY(.06em); }
.opt.yes { background: #b8f5a8; box-shadow: 0 6px 0 var(--c4d); }
.opt.no { opacity: .35; }
.opts.pics { display: flex; flex-wrap: wrap; }
.opts.pics .opt { width: 136px; height: 136px; padding: 20px; }
.opts.cats { grid-template-columns: repeat(2, minmax(130px, 1fr)); }
.opts.cats.n2 { grid-template-columns: repeat(2, minmax(130px, 160px)); }
.opts.cats .opt { flex-direction: column; font-size: 20px; min-height: 104px; }
.opts.cats .opt img.pic { width: 48px; height: 48px; }
.word-card { background: #fff; border-radius: 30px; padding: 14px 26px; box-shadow: 0 7px 0 #c9c3ef; font-size: 44px; font-weight: 700; color: var(--violetd); display: flex; align-items: center; gap: 14px; min-height: 96px; max-width: 100%; }
.word-card .wcpic { width: 64px; height: 64px; }
.word-card .w.deva { font-weight: 600; }
.slots { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.slot { min-width: 54px; height: 64px; border-radius: 18px; background: rgba(255,255,255,.55); border: 3px dashed #fff; display: grid; place-items: center; font-size: 36px; font-weight: 700; padding: 0 6px; }
.slot.filled { background: #fff; border: 3px solid #fff; box-shadow: 0 4px 0 #c9c3ef; }
.slot.gap { background: #fff6cf; border-color: var(--c3); color: var(--c3d); }
.slots.yes .slot { background: #b8f5a8; }
.bank { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.tile { min-width: var(--tap); height: 72px; padding: 0 12px; border-radius: 22px; background: linear-gradient(180deg, #fff3b8, #ffd84d); box-shadow: 0 6px 0 var(--c3d); font-size: 36px; font-weight: 700; color: #5b3a00; position: relative; z-index: 1; }
.tile.used { visibility: hidden; }
.tile.drag { z-index: 5; box-shadow: 0 14px 24px rgba(0,0,0,.25); }
.wob { animation: wob .45s; }
@keyframes wob { 20% { transform: translateX(-8px) rotate(-4deg); } 40% { transform: translateX(7px) rotate(3deg); } 60% { transform: translateX(-5px); } 80% { transform: translateX(3px); } }
.shake { animation: wob .45s; }

/* trace */
.trace-wrap { width: 100%; display: flex; justify-content: center; }
#tc { background: #fff; border-radius: 34px; box-shadow: 0 7px 0 #c9c3ef; touch-action: none; }
#tc.yes { box-shadow: 0 7px 0 var(--c4d); }
.trace-bar { display: flex; gap: 16px; align-items: center; }
.mini-pic { width: 80px; height: 80px; border-radius: 24px; background: #fff; padding: 12px; box-shadow: 0 5px 0 #c9c3ef; }
.big-r { width: 80px; height: 80px; }

/* word search */
.ws-words { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.ws-w { display: flex; align-items: center; gap: 6px; background: #fff; border-radius: 18px; padding: 6px 12px 6px 6px; min-height: 52px; font-size: 18px; font-weight: 700; box-shadow: 0 4px 0 #c9c3ef; }
.ws-w img.pic { width: 36px; height: 36px; }
.ws-w.got { background: #b8f5a8; text-decoration: line-through; text-decoration-thickness: 3px; }
.ws-grid { display: grid; grid-template-columns: repeat(var(--n), 1fr); gap: 4px; width: min(100%, 400px); background: #fff; border-radius: 24px; padding: 8px; box-shadow: 0 7px 0 #c9c3ef; touch-action: none; }
.ws-grid .cell { aspect-ratio: 1; display: grid; place-items: center; font-size: clamp(20px, 6.4vw, 28px); font-weight: 700; border-radius: 12px; background: #f4f1ff; }
.ws-grid.deva .cell { font-size: clamp(18px, 5.4vw, 26px); font-weight: 600; }
.ws-grid .cell.sel { background: #ffd84d; }
.ws-grid .cell.found.f1 { background: #ffb3cd; } .ws-grid .cell.found.f2 { background: #a6e3ff; } .ws-grid .cell.found.f3 { background: #c5f5b8; } .ws-grid .cell.found.f4 { background: #d9c9ff; } .ws-grid .cell.found.f0 { background: #ffe08a; }

/* crossword */
.cw-grid { display: grid; grid-template-columns: repeat(var(--cols), minmax(0, 52px)); gap: 4px; justify-content: center; }
.cw-x { aspect-ratio: 1; }
.cw-c { aspect-ratio: 1; background: #fff; border-radius: 10px; position: relative; display: grid; place-items: center; font-size: clamp(18px, 6vw, 28px); font-weight: 700; box-shadow: 0 3px 0 #c9c3ef; min-width: 40px; }
.cw-grid.deva .cw-c { font-size: clamp(16px, 5vw, 24px); font-weight: 600; }
.cw-c sup { position: absolute; left: 4px; top: 1px; font-size: 11px; color: var(--muted); font-family: var(--font); }
.cw-c.hl { background: #fff3b8; }
.cw-c.filled { color: var(--violetd); }
.cw-clues { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.clue { width: var(--tap); height: var(--tap); border-radius: 18px; background: #fff; padding: 10px; position: relative; box-shadow: 0 4px 0 #c9c3ef; }
.clue sup { position: absolute; left: 3px; top: 0; font-size: 12px; font-weight: 700; color: var(--muted); }
.clue.on { outline: 4px solid var(--c1); }
.clue.got { background: #b8f5a8; }

/* stickers */
.stk-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.stk { aspect-ratio: 1; border-radius: 24px; background: rgba(255,255,255,.6); padding: 14px; }
.stk img.pic { filter: grayscale(1) brightness(1.6) opacity(.45); }
.stk.got { background: #fff; box-shadow: 0 5px 0 #c9c3ef; }
.stk.got img.pic { filter: none; animation: bob 3s ease-in-out infinite; }

/* settings */
.settings .card { background: #fff; border-radius: 26px; padding: 14px 16px; margin-bottom: 14px; box-shadow: 0 6px 0 #c9c3ef; }
.settings label { display: block; font-weight: 700; margin: 10px 0 6px; font-size: 17px; }
.settings .small { font-size: 15px; color: #4b4a7a; line-height: 1.45; margin: 6px 0; font-weight: 400; }
.seg { display: flex; gap: 6px; background: #efeafe; border-radius: 20px; padding: 5px; }
.seg button { flex: 1; min-height: 54px; border-radius: 16px; font-size: 19px; font-weight: 700; color: var(--muted); }
.seg button.on { background: var(--violet); color: #fff; box-shadow: 0 4px 0 var(--violetd); }
.kid-rows { display: flex; flex-direction: column; gap: 8px; }
.kid-row { display: flex; align-items: center; gap: 8px; border-radius: 20px; background: #f4f1ff; padding: 6px; }
.kid-row.on { outline: 3px solid var(--c4); }
.kid-pick { flex: 1; display: flex; align-items: center; gap: 10px; min-height: 56px; text-align: left; font-size: 17px; font-weight: 600; }
.kid-pick img.pic { width: 48px; height: 48px; flex: none; }
.rbtn.sm { width: 56px; height: 56px; padding: 12px; box-shadow: 0 3px 0 #c9c3ef; }
.big.add { width: 100%; margin-top: 12px; font-size: 20px; }

/* overlays */
.overlay { position: fixed; inset: 0; background: rgba(40,30,110,.45); display: grid; place-items: center; z-index: 20; padding: 18px; animation: fadein .2s; }
.sheet { background: #fff; border-radius: 32px; padding: 22px 18px 20px; width: min(400px, 100%); text-align: center; position: relative; box-shadow: 0 20px 40px rgba(0,0,0,.25); max-height: 92vh; overflow-y: auto; }
.sheet h2 { margin: 0 0 12px; padding: 0 44px; font-size: 26px; color: var(--violetd); }
.sheet .q { font-size: 26px; font-weight: 700; margin: 6px 0 12px; }
.sheet .close { position: absolute; right: 10px; top: 10px; width: 56px; height: 56px; padding: 0; box-shadow: none; background: #f1edff; font-size: 24px; }
.sheet .row { display: flex; gap: 12px; justify-content: center; }
.yes-btn { background: linear-gradient(180deg, #a2ef93, var(--c4)); box-shadow: 0 6px 0 var(--c4d); }
.no-btn { background: linear-gradient(180deg, #ffb3c9, var(--c1)); box-shadow: 0 6px 0 var(--c1d); }
.gate .entry { font-size: 40px; font-weight: 700; min-height: 56px; background: #f4f1ff; border-radius: 18px; margin: 0 auto 12px; width: 160px; }
.gate .pad { display: grid; grid-template-columns: repeat(3, 76px); gap: 10px; justify-content: center; }
.gate .key { height: 64px; border-radius: 18px; background: #f1edff; font-size: 30px; font-weight: 700; box-shadow: 0 4px 0 #cfc6f5; }
.kid-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.kid { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px; border-radius: 24px; background: #f4f1ff; font-size: 18px; font-weight: 700; min-height: 120px; }
.kid img.pic { width: 64px; height: 64px; }
.kid.on { outline: 4px solid var(--c4); }
.result .big-stars { display: flex; justify-content: center; gap: 8px; margin: 4px 0 10px; }
.result .big-stars i { font-style: normal; font-size: 64px; color: #e5e0f7; transform: scale(0); animation: starin .5s forwards; }
.result .big-stars i.on { color: #ffb800; text-shadow: 0 4px 0 #c98a00; }
@keyframes starin { 60% { transform: scale(1.3) rotate(15deg); } to { transform: scale(1); } }
.new-stk { display: flex; align-items: center; justify-content: center; gap: 12px; font-size: 22px; font-weight: 700; color: var(--c1d); margin-bottom: 14px; }
.new-stk img.pic { width: 72px; height: 72px; animation: bob 1.6s ease-in-out infinite; }
.rb { width: 84px; height: 76px; padding: 0; }
.rb img.pic { width: 40px; height: 40px; }

/* effects */
.fx { position: fixed; inset: 0; pointer-events: none; z-index: 15; }
.spark { position: absolute; font-style: normal; font-size: 28px; color: #ffc93c; text-shadow: 0 2px 0 #d99a00; animation: spark .9s ease-out forwards; }
@keyframes spark { from { transform: translate(-50%, -50%) scale(.4); opacity: 1; } to { transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy))) scale(1.2); opacity: 0; } }
.yes { animation: yay .5s; }
@keyframes yay { 40% { transform: scale(1.12); } }
.confetti { position: fixed; inset: 0; pointer-events: none; z-index: 30; overflow: hidden; }
.confetti i { position: absolute; top: -20px; width: 12px; height: 18px; border-radius: 4px; animation: fall 2s linear forwards; }
@keyframes fall { to { transform: translateY(110vh) rotate(var(--r)); } }

@media (min-height: 740px) {
  .pic-card { width: 200px; height: 200px; padding: 26px; }
  .target, .ear { width: 170px; height: 170px; }
  .opt { min-height: 96px; }
  .tile { height: 80px; }
  .slot { height: 72px; min-width: 60px; }
  .opts.pics .opt { width: 150px; height: 150px; }
}
@media (max-height: 700px) {
  .pic-card { width: 140px; height: 140px; padding: 18px; }
  .target, .ear { width: 130px; height: 130px; }
  .game-card { min-height: 128px; }
  .game-card .gi { width: 52px; height: 52px; }
}
@media (prefers-reduced-motion: reduce) { .bob, .ear, .stk.got img.pic { animation: none; } }

/* long words / crossword: keep everything on one 360x800 screen */
.stage.many .pic-card { width: 150px; height: 150px; padding: 18px; }
.slots.many .slot { min-width: 40px; height: 56px; font-size: 28px; padding: 0 4px; }
.bank.many .tile, .stage.crossword .tile { height: 64px; font-size: 30px; }
.stage.crossword { gap: 10px; }
.stage.crossword .cw-grid { grid-template-columns: repeat(var(--cols), minmax(0, 44px)); }
