/* আওরির খোঁজে: promo game. Storybook-painted UI kit. */
:root {
  --gold: #F4B850; --gold-hi: #FFE7AE; --gold-lo: #D9862A; --brown: #4A2A08; --wood: #C99543;
  --cream: #FFF1D6; --sand: #E8D7B4; --night: #0B1222; --red: #C8463A; --ice: #8FD0FF;
  --game-font: 'Anek Bangla', system-ui, sans-serif; --story-font: 'Tiro Bangla', serif;
}
html.lang-en { --story-font: 'Literata', Georgia, serif; }
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; background: #05080F; }
body { font-family: var(--game-font); font-stretch: 106%; color: var(--cream); overscroll-behavior: none; }
a { color: var(--gold-hi); }
button { font: inherit; }
:focus-visible { outline: 3px solid var(--gold-hi); outline-offset: 3px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[hidden] { display: none !important; }

#game { position: relative; width: 100%; max-width: 480px; height: 100vh; height: 100dvh; margin: 0 auto; overflow: hidden; background: var(--night); user-select: none; -webkit-user-select: none; }
.screen { position: absolute; inset: 0; display: flex; flex-direction: column; overflow: hidden; animation: fadein .35s ease; }
.screen > .bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.screen > .shade { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.screen > :where(:not(.bg):not(.shade)) { position: relative; z-index: 1; }
@keyframes fadein { from { opacity: 0 } to { opacity: 1 } }

/* buttons */
.btn-gold { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 62px; padding: 0 28px; border-radius: 20px; border: 3px solid var(--brown);
  background: linear-gradient(180deg, var(--gold-hi) 0%, var(--gold) 48%, var(--gold-lo) 100%);
  box-shadow: inset 0 3px 0 rgba(255,255,255,.6), inset 0 -5px 0 rgba(120,60,0,.35), 0 6px 0 var(--brown), 0 14px 22px rgba(0,0,0,.5);
  color: #3A1E02; font-family: var(--game-font); font-weight: 800; font-size: 24px; line-height: 1.1; text-decoration: none; text-shadow: 0 1px 0 rgba(255,255,255,.55); cursor: pointer; transition: transform .08s, box-shadow .08s; }
.btn-gold:active { transform: translateY(4px); box-shadow: inset 0 3px 0 rgba(255,255,255,.6), inset 0 -5px 0 rgba(120,60,0,.35), 0 2px 0 var(--brown), 0 6px 12px rgba(0,0,0,.5); }
.btn-gold:disabled { filter: grayscale(.7) brightness(.8); cursor: default; }
.btn-wood { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 16px; border-radius: 16px; border: 3px solid var(--wood);
  background: linear-gradient(180deg, #6A4423 0%, #43290F 100%); box-shadow: inset 0 2px 0 rgba(255,220,150,.25), 0 5px 0 #1A0E05, 0 10px 16px rgba(0,0,0,.45);
  color: var(--gold-hi); font-family: var(--game-font); font-weight: 700; font-size: 17px; line-height: 1.15; text-decoration: none; cursor: pointer; transition: transform .08s; }
.btn-wood:active { transform: translateY(3px); }
.btn-round { width: 48px; height: 48px; flex-shrink: 0; border-radius: 999px; border: 3px solid var(--wood); background: radial-gradient(circle at 35% 30%, #7A5130 0%, #3A230E 75%);
  box-shadow: 0 4px 0 #1A0E05, 0 8px 14px rgba(0,0,0,.45); color: var(--gold-hi); display: flex; align-items: center; justify-content: center; padding: 0; cursor: pointer; text-decoration: none; }
.btn-round:active { transform: translateY(3px); }
.btn-link { background: none; border: 0; color: var(--gold-hi); font-weight: 700; font-size: 16px; min-height: 44px; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.panel { border-radius: 20px; border: 3px solid var(--wood); background: linear-gradient(180deg, rgba(58,39,22,.96) 0%, rgba(30,19,9,.97) 100%);
  box-shadow: inset 0 0 0 2px rgba(255,220,150,.14), 0 0 0 2px #1A0E05, 0 14px 30px rgba(0,0,0,.55); color: #F6E7C8; }
.hud { height: 40px; padding: 0 12px 0 8px; border-radius: 999px; border: 2px solid var(--wood); background: rgba(20,12,4,.8); display: inline-flex; align-items: center; gap: 6px;
  font-weight: 800; font-size: 18px; color: var(--gold-hi); box-shadow: 0 3px 0 rgba(0,0,0,.5); white-space: nowrap; }
.ol { text-shadow: 0 3px 0 #2A1604, 2px 0 0 #2A1604, -2px 0 0 #2A1604, 0 -2px 0 #2A1604, 0 6px 14px rgba(0,0,0,.6); }
.ribbon { display: inline-block; padding: 8px 30px; background: linear-gradient(180deg, var(--red), #8E2A22); border: 3px solid #4A140F; border-radius: 6px; color: #FFF1D6;
  font-weight: 800; font-size: 21px; line-height: 1.2; box-shadow: 0 5px 0 #4A140F; white-space: nowrap; }
.story { font-family: var(--story-font); }

/* top bar */
.topbar { display: flex; align-items: center; gap: 8px; padding: max(14px, env(safe-area-inset-top)) 12px 0; }
.topbar .spacer { flex: 1; }
.stage-title { margin: 10px auto 0; width: min(320px, calc(100% - 32px)); padding: 8px 14px; text-align: center; }
.stage-title h2 { margin: 0; font-size: 18px; line-height: 1.3; color: var(--gold-hi); }
.stage-title p { margin: 0; font-size: 14px; line-height: 1.45; color: var(--sand); }
.bottom { margin-top: auto; padding: 0 12px max(16px, env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 12px; }

/* title screen */
.title-logo { margin: 70px auto 0; display: flex; flex-direction: column; align-items: center; gap: 12px; animation: bob 2.6s ease-in-out infinite; }
.title-logo img { width: 210px; height: auto; filter: drop-shadow(0 0 18px rgba(255,214,120,.55)) drop-shadow(0 4px 6px rgba(0,0,0,.7)); }
.title-tag { margin: 0 0 4px; text-align: center; font-size: 19px; font-weight: 700; line-height: 1.45; }
.title-note { margin: 0; text-align: center; font-size: 14px; color: var(--sand); }
.row2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.langsw { display: flex; gap: 6px; }
.langsw a { min-height: 40px; min-width: 44px; padding: 0 12px; display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; border: 2px solid var(--wood); background: rgba(20,12,4,.8); color: var(--gold-hi); text-decoration: none; font-weight: 700; font-size: 15px; }
.langsw a[aria-current] { background: var(--gold); color: #3A1E02; border-color: var(--brown); }

/* map */
.map-scroll { position: relative; flex: 1; overflow-y: auto; overflow-x: hidden; }
.map-box { position: relative; width: 100%; aspect-ratio: 720 / 1280; }
.map-box > img { position: absolute; inset: 0; width: 100%; height: 100%; }
.node { position: absolute; transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; }
.node button { width: 56px; height: 56px; border-radius: 999px; padding: 0; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 24px; cursor: pointer;
  border: 3px solid var(--brown); background: radial-gradient(circle at 35% 30%, #D7C7A8, #9B8A6C 60%, #5E523F); color: #2A1604; box-shadow: 0 5px 0 #1A0E05; }
.node.now button { width: 64px; height: 64px; font-size: 28px; background: radial-gradient(circle at 35% 30%, #FFF0C4, var(--gold) 55%, #C9741C); color: #3A1E02; animation: pulse 1.6s ease-out infinite; }
.node.lock button { background: radial-gradient(circle at 35% 30%, #7D7466, #3B342B); color: #B9A88A; border-color: #2A2016; cursor: default; }
.node.sel button { outline: 3px solid var(--cream); outline-offset: 3px; }
.node .stars { display: flex; gap: 1px; margin-top: 2px; }
.node .pin { position: absolute; bottom: 100%; margin-bottom: 4px; animation: bob 2.2s ease-in-out infinite; }
.map-shade-top { position: absolute; left: 0; right: 0; top: 0; height: 90px; background: linear-gradient(180deg, rgba(8,12,24,.75), rgba(8,12,24,0)); z-index: 2; pointer-events: none; }
.map-top { position: absolute; left: 0; right: 0; top: 0; z-index: 3; }
.map-panel { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 12px; }
.map-panel .info { display: flex; align-items: center; gap: 12px; }
.medal { width: 46px; height: 46px; flex-shrink: 0; border-radius: 999px; background: radial-gradient(circle at 35% 30%, var(--gold-hi), var(--gold-lo)); border: 3px solid var(--brown);
  display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 22px; color: #3A1E02; }
.map-panel h2 { margin: 0; font-size: 21px; line-height: 1.2; color: var(--gold-hi); }
.map-panel p { margin: 0; font-size: 15px; line-height: 1.4; color: var(--sand); }
.map-bottom { position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; padding: 0 12px max(14px, env(safe-area-inset-bottom)); }

/* stage 1: Lukla landing */
.plane { position: absolute; left: 50%; top: 24%; width: 120px; margin-left: -60px; transition: transform .9s cubic-bezier(.5,0,.6,1), opacity .5s; z-index: 1; filter: drop-shadow(0 6px 6px rgba(0,0,0,.5)); }
.plane.wobble { animation: wobble 1.6s ease-in-out infinite; }
.plane.land { transform: translate(-40px, 260px) scale(.45); }
.plane.miss { transform: translate(160px, -120px) rotate(-18deg) scale(.8); opacity: 0; }
@keyframes wobble { 0%,100% { transform: rotate(-3deg) translateY(0) } 50% { transform: rotate(3deg) translateY(-6px) } }
.meter { position: relative; height: 34px; border-radius: 999px; border: 3px solid var(--brown); background: linear-gradient(90deg, #7A2A22, #B5562E 30%, #B5562E 70%, #7A2A22); overflow: hidden; }
.meter .zone { position: absolute; top: 0; bottom: 0; background: linear-gradient(180deg, #8BE07A, #3E9B3A); border-left: 2px solid #1F4A1B; border-right: 2px solid #1F4A1B; }
.meter .needle { position: absolute; top: -2px; bottom: -2px; width: 6px; margin-left: -3px; background: var(--cream); border-radius: 3px; box-shadow: 0 0 0 2px #1A0E05; }
.approaches { display: flex; justify-content: center; gap: 8px; }
.approaches span { width: 34px; height: 10px; border-radius: 999px; background: #4A3B2A; border: 2px solid #1A0E05; }
.approaches span.ok { background: #6FD06A; }
.approaches span.bad { background: #E2554B; }
.toast { position: absolute; left: 50%; top: 42%; transform: translate(-50%, -50%); z-index: 4; font-size: 30px; font-weight: 800; white-space: nowrap; animation: pop .9s ease forwards; pointer-events: none; }
@keyframes pop { 0% { opacity: 0; transform: translate(-50%, -30%) scale(.7) } 20% { opacity: 1; transform: translate(-50%, -50%) scale(1.08) } 70% { opacity: 1; transform: translate(-50%, -55%) scale(1) } 100% { opacity: 0; transform: translate(-50%, -70%) } }

/* stage 2: memory */
.cards { flex: 1; min-height: 0; display: grid; grid-template-columns: repeat(3, 96px); grid-auto-rows: 108px; gap: 10px; padding: 14px 16px; align-content: center; justify-content: center; }
.card { width: 100%; height: 100%; perspective: 600px; border: 0; padding: 0; background: none; cursor: pointer; }
.card .in { display: block; position: relative; width: 100%; height: 100%; transition: transform .35s; transform-style: preserve-3d; }
.card.up .in, .card.done .in { transform: rotateY(180deg); }
.card .f, .card .b { position: absolute; inset: 0; border-radius: 14px; border: 3px solid var(--wood); backface-visibility: hidden; -webkit-backface-visibility: hidden; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 0 #1A0E05; }
.card .f { background: radial-gradient(circle at 50% 40%, #6A4423, #2E1B0C); }
.card .f svg { opacity: .55; }
.card .b { transform: rotateY(180deg); background: radial-gradient(circle at 50% 40%, #FFF6DE, #EFD9A8); }
.card.done .b { box-shadow: 0 0 0 3px #6FD06A, 0 4px 0 #1A0E05; }

/* stage 3: footprints */
.field { position: relative; flex: 1; }
.print { position: absolute; width: 68px; height: 72px; margin: -36px 0 0 -34px; border-radius: 999px; padding: 0; display: flex; align-items: center; justify-content: center; cursor: pointer; background: transparent; border: 3px solid transparent; }
.print svg { width: 40px; height: 56px; opacity: .3; transition: opacity .3s, filter .3s; }
.print.found { border-color: var(--gold); background: rgba(13,20,36,.35); }
.print.found svg { opacity: 1; filter: drop-shadow(0 0 8px rgba(255,210,94,.9)); }
.print.hint { border: 3px dashed #FFD25E; background: rgba(255,214,120,.25); animation: pulse 1.4s ease-out infinite; }
.miss-dot { position: absolute; width: 30px; height: 30px; margin: -15px 0 0 -15px; border-radius: 999px; border: 2px solid rgba(255,255,255,.8); animation: ripple .5s ease-out forwards; pointer-events: none; }
@keyframes ripple { from { transform: scale(.3); opacity: 1 } to { transform: scale(1.4); opacity: 0 } }
.slots { flex: 1; display: flex; gap: 6px; }
.slots span { flex: 1; height: 44px; border-radius: 10px; display: flex; align-items: center; justify-content: center; background: rgba(0,0,0,.35); border: 2px solid #4A3B2A; }
.slots span.on { background: rgba(244,184,80,.18); border-color: var(--wood); }
.tray { padding: 12px 14px; display: flex; align-items: center; gap: 12px; }

/* stage 4: torches */
.torches { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px 10px; padding: 0 22px; margin: auto 0; }
.torch { position: relative; height: 128px; border: 0; background: none; padding: 0; cursor: pointer; display: flex; align-items: flex-end; justify-content: center; }
.torch .flame { position: absolute; left: 50%; top: 4px; width: 46px; height: 62px; margin-left: -23px; border-radius: 50% 50% 45% 45% / 60% 60% 40% 40%;
  background: radial-gradient(circle at 50% 70%, #FFF6C8 0%, #FFC24A 35%, #E2552A 70%, rgba(226,85,42,0) 72%); opacity: .18; transform: scale(.7); transition: opacity .15s, transform .15s; }
.torch .glow { position: absolute; left: 50%; top: -20px; width: 140px; height: 140px; margin-left: -70px; border-radius: 999px; background: radial-gradient(circle, rgba(255,190,90,.55), rgba(255,190,90,0) 65%); opacity: 0; transition: opacity .15s; pointer-events: none; }
.torch.lit .flame { opacity: 1; transform: scale(1); animation: flicker .25s ease-in-out infinite alternate; }
.torch.lit .glow { opacity: 1; }
.torch:disabled { cursor: default; }
@keyframes flicker { from { transform: scale(1) rotate(-3deg) } to { transform: scale(1.06, .96) rotate(3deg) } }
.round-dots { display: flex; justify-content: center; gap: 8px; }

/* stage 5: chant */
.chant-slots { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.chant-slots span { min-height: 58px; border-radius: 12px; display: flex; align-items: center; justify-content: center; text-align: center; font-family: var(--story-font); font-size: 14px; padding: 4px; word-break: break-word;
  border: 3px solid #1A0E05; box-shadow: 0 4px 0 #1A0E05; background: radial-gradient(circle at 40% 30%, #6E6556, #3B342B); color: #B9A88A; }
.chant-slots span.on { background: radial-gradient(circle at 40% 30%, #FFF0C4, #E9B45A 70%, #B9761E); color: #2A1604; }
.chant-slots.shake { animation: shake .4s; }
@keyframes shake { 20%,60% { transform: translateX(-8px) } 40%,80% { transform: translateX(8px) } }
.tiles { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.tile { min-height: 50px; padding: 0 16px; border-radius: 14px; font-family: var(--story-font); font-size: 18px; cursor: pointer; border: 3px solid var(--wood);
  background: linear-gradient(180deg, #7A5130, #4A2E14); color: var(--gold-hi); box-shadow: inset 0 2px 0 rgba(255,220,150,.25), 0 4px 0 #1A0E05; }
.tile:disabled { border-color: #3A2A1A; background: #2A1C10; color: #5A4A35; box-shadow: none; cursor: default; }

/* modal */
.modal { position: absolute; inset: 0; z-index: 10; background: rgba(6,9,18,.74); display: flex; flex-direction: column; padding: 22px; overflow-y: auto; animation: fadein .25s ease; }
.modal .panel { position: relative; width: 100%; max-width: 400px; margin: auto; padding: 40px 18px 18px; display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; flex-shrink: 0; }
.modal .panel::before { content: ''; display: block; height: 0; margin-top: 4px; }
.modal .ribbon { position: absolute; top: -22px; left: 50%; transform: translateX(-50%); }
.modal .panel.scroll-ribbon { margin-top: 22px; }
.big-stars { display: flex; align-items: flex-end; gap: 4px; }
.big-stars svg { animation: starpop .45s cubic-bezier(.3,1.6,.5,1) both; }
.big-stars svg:nth-child(2) { animation-delay: .15s } .big-stars svg:nth-child(3) { animation-delay: .3s }
@keyframes starpop { from { transform: scale(0) rotate(-40deg) } to { transform: scale(1) rotate(0) } }
.fact { padding: 12px 14px; border-radius: 12px; background: rgba(0,0,0,.3); border: 1px solid rgba(201,149,67,.5); text-align: left; }
.fact b { display: block; font-size: 15px; color: var(--ice); }
.fact p { margin: 2px 0 0; font-size: 15px; line-height: 1.6; color: #F6E7C8; }
.modal .btn-gold { align-self: stretch; }

/* ending */
.end-head { padding: max(24px, env(safe-area-inset-top)) 22px 0; text-align: center; }
.end-head h1 { margin: 0; font-size: 30px; line-height: 1.25; color: var(--gold-hi); }
.end-head p { margin: 4px 0 0; font-size: 18px; line-height: 1.5; }
.end-stats { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; }
.reward { padding: 30px 16px 16px; display: flex; flex-direction: column; gap: 12px; margin-top: 16px; position: relative; }
.reward .ribbon { position: absolute; top: -22px; left: 50%; transform: translateX(-50%); font-size: 19px; }
.code-row { display: flex; gap: 8px; align-items: stretch; }
.code { flex: 1; padding: 10px; border-radius: 12px; border: 2px dashed var(--gold); background: rgba(244,184,80,.12); text-align: center; font-family: ui-monospace, Menlo, monospace; font-weight: 700; font-size: 22px; letter-spacing: .06em; color: var(--gold-hi); user-select: all; -webkit-user-select: all; }
.reward p { margin: 0; font-size: 15px; line-height: 1.5; color: var(--sand); }
.gift { display: flex; gap: 12px; align-items: center; text-align: left; }
.gift svg { flex-shrink: 0; }
.form { display: flex; flex-direction: column; gap: 10px; text-align: left; width: 100%; }
.form label { font-size: 14px; font-weight: 700; color: var(--gold-hi); }
.form input { width: 100%; min-height: 48px; padding: 0 14px; border-radius: 12px; border: 2px solid var(--wood); background: rgba(0,0,0,.35); color: var(--cream); font: inherit; font-size: 17px; }
.form input::placeholder { color: #A89878; }
.form .msg { min-height: 1.4em; font-size: 14px; margin: 0; }
.form .msg.err { color: #FF9A8A; } .form .msg.ok { color: #8BE07A; }
.form .fine { font-size: 13px; color: #BFAF8F; margin: 0; line-height: 1.5; }
.hp { position: absolute; left: -9999px; }

@keyframes bob { 0%,100% { transform: translateY(0) } 50% { transform: translateY(-8px) } }
@keyframes pulse { 0%,100% { box-shadow: 0 0 0 0 rgba(255,214,120,.7), 0 5px 0 #1A0E05 } 50% { box-shadow: 0 0 0 14px rgba(255,214,120,0), 0 5px 0 #1A0E05 } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; } }
@media (min-width: 481px) { body { background: radial-gradient(circle at 50% 30%, #1A2440, #05080F 70%); } #game { box-shadow: 0 0 60px rgba(0,0,0,.6); } }
noscript p { padding: 24px; text-align: center; }

/* stage 1: flying the Lukla approach */
.stage-fly { touch-action: none; }
.stage-fly .cam { position: absolute; z-index: 0; will-change: transform; }
.cam-bg, .lane { position: absolute; inset: 0; width: 100%; height: 100%; }
.jet, .plane-shadow, .flare { position: absolute; left: 0; top: 0; transform-origin: 0 0; pointer-events: none; }
.jet svg { display: block; width: 200px; height: 110px; filter: drop-shadow(0 6px 6px rgba(0,0,0,.45)); transition: filter .2s; }
.jet.out svg { filter: drop-shadow(0 0 10px rgba(255,90,70,.95)) drop-shadow(0 6px 6px rgba(0,0,0,.45)); }
.jet .prop { animation: spin .09s linear infinite; }
@keyframes spin { to { transform: rotate(360deg) } }
.plane-shadow { width: 150px; height: 24px; border-radius: 50%; background: radial-gradient(ellipse, rgba(0,0,0,.45), rgba(0,0,0,0) 70%); }
.flare { width: 120px; height: 120px; }
.flare-target, .flare-ring { position: absolute; inset: 0; border-radius: 50%; }
.flare-target { border: 4px dashed rgba(255,241,214,.95); box-shadow: 0 0 0 2px rgba(0,0,0,.35); }
.flare-ring { border: 6px solid #FFD25E; box-shadow: 0 0 16px rgba(255,210,94,.9), inset 0 0 10px rgba(255,210,94,.6); }
.flare-ring.hit { border-color: #6FD06A; box-shadow: 0 0 20px rgba(111,208,106,.95); }
.flare-ring.off { border-color: #E2554B; box-shadow: 0 0 16px rgba(226,85,75,.9); }
.stage-fly > .cloud { position: absolute; left: -50%; width: 200%; z-index: 0; pointer-events: none;
  background: radial-gradient(ellipse 14% 40% at 10% 50%, rgba(255,240,225,.55), transparent 70%), radial-gradient(ellipse 18% 45% at 38% 40%, rgba(255,235,215,.45), transparent 70%),
    radial-gradient(ellipse 12% 35% at 63% 60%, rgba(255,240,225,.5), transparent 70%), radial-gradient(ellipse 16% 42% at 86% 45%, rgba(255,235,215,.45), transparent 70%); }
.stage-fly > .cloud.far { top: 10%; height: 22%; opacity: .55; animation: drift 46s linear infinite; }
.stage-fly > .cloud.near { top: 30%; height: 26%; opacity: .5; animation: drift 17s linear infinite reverse; }
@keyframes drift { from { transform: translateX(0) } to { transform: translateX(25%) } }
.stage-fly > .fog { position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: 0; transition: opacity .25s;
  background: linear-gradient(180deg, rgba(214,222,236,0) 15%, rgba(214,222,236,.92) 40%, rgba(214,222,236,.85) 70%, rgba(214,222,236,.25) 100%); }
.stage-fly > .wind { position: relative; align-self: flex-end; margin: 8px 12px 0; z-index: 2; display: flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; background: rgba(20,12,4,.7); border: 2px solid var(--wood); font-weight: 700; font-size: 14px; color: var(--cream); transition: opacity .2s; }
.stage-fly > .wind svg { transition: transform .2s; }
.fly-ctrl { display: flex; gap: 10px; align-items: center; }
.btn-gold.ready { animation: pulse 1s ease-out infinite; }
.ctrl-hint { margin: 0; text-align: center; font-size: 14px; color: var(--sand); line-height: 1.4; }
.dust-layer { position: absolute; inset: 0; pointer-events: none; }
.puff { position: absolute; width: 36px; height: 36px; margin: -18px 0 0 -18px; border-radius: 50%; background: radial-gradient(circle, rgba(236,222,196,.9), rgba(236,222,196,0) 70%); animation: puff 1.3s ease-out forwards; }
@keyframes puff { from { transform: scale(.4); opacity: 1 } to { transform: translate(var(--dx, 0), -30px) scale(2.6); opacity: 0 } }
.screen.shake { animation: shakeit .4s; }
@keyframes shakeit { 20% { transform: translate(-5px, 3px) } 40% { transform: translate(5px, -3px) } 60% { transform: translate(-3px, 2px) } 80% { transform: translate(3px, -1px) } }
.blink { animation: blink 1.1s ease-in-out infinite; }
@keyframes blink { 50% { opacity: .2 } }

[tabindex="-1"]:focus { outline: none; }

/* stage 1 v3: tap when the shadow is on the green */
.zone-poly { fill: rgba(111,208,106,.38); stroke: #B8F5A8; stroke-width: 4; stroke-dasharray: 14 8; animation: zoneglow 1.2s ease-in-out infinite; }
.zone-poly.now { fill: rgba(140,240,120,.7); stroke: #fff; }
@keyframes zoneglow { 50% { fill: rgba(111,208,106,.55) } }
.tap-hint { position: absolute; margin: -6px 0 0 -18px; z-index: 2; pointer-events: none; animation: taphand 1.1s ease-in-out infinite; filter: drop-shadow(0 4px 6px rgba(0,0,0,.6)); }
@keyframes taphand { 0%,100% { transform: translateY(0) scale(1) } 50% { transform: translateY(10px) scale(.9) } }
.stage-fly .ctrl-hint { font-weight: 700; font-size: 16px; color: var(--gold-hi); }

/* "Aowri is a novel" card on the title screen */
.book-card { display: flex; align-items: center; gap: 12px; width: 100%; padding: 8px 14px 8px 8px; border-radius: 16px; border: 2px solid var(--wood); background: rgba(20,12,4,.78);
  color: var(--cream); text-align: left; cursor: pointer; box-shadow: 0 4px 0 rgba(0,0,0,.5); }
.book-card img { width: 44px; height: 64px; object-fit: cover; border-radius: 4px; flex-shrink: 0; box-shadow: 0 3px 6px rgba(0,0,0,.6); }
.book-card span:not(.chev) { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.book-card strong { font-size: 17px; line-height: 1.3; color: var(--gold-hi); }
.book-card small { font-size: 13px; line-height: 1.35; color: var(--sand); }
.book-card .chev { font-size: 30px; line-height: 1; color: var(--gold); }
.book-card:active { transform: translateY(2px); }
.about-cover { width: 150px; height: auto; border-radius: 6px; border: 2px solid var(--wood); box-shadow: 0 10px 22px rgba(0,0,0,.6); transform: rotate(-3deg); }

/* ---------- character quiz ---------- */
.quiz .quiz-emblems { position: relative; height: 300px; margin: 30px auto 0; width: 100%; max-width: 420px; }
.quiz .quiz-emblems img { position: absolute; width: 92px; height: 92px; border-radius: 14px; border: 3px solid var(--wood); box-shadow: 0 8px 18px rgba(0,0,0,.6);
  left: calc(50% - 46px + (var(--i) - 4) * min(36px, 9vw)); top: calc(96px + (var(--i) - 4) * (var(--i) - 4) * 5px); transform: rotate(calc((var(--i) - 4) * 5deg)); animation: bob 3s ease-in-out infinite; animation-delay: calc(var(--i) * -.4s); }
.quiz-title { margin: 0; text-align: center; font-size: 34px; line-height: 1.2; color: var(--gold-hi); }
.quiz-intro { margin: 0; text-align: center; font-size: 17px; line-height: 1.55; color: var(--cream); }
.quiz-note { margin: 0; text-align: center; font-size: 13px; line-height: 1.45; color: #BFAF8F; }
.quiz-progress { flex: 1; height: 12px; border-radius: 999px; background: rgba(0,0,0,.45); border: 2px solid #4A3B2A; overflow: hidden; }
.quiz-progress span { display: block; height: 100%; background: linear-gradient(90deg, var(--gold-lo), var(--gold-hi)); transition: width .3s; }
.quiz-q { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 18px; padding: 10px 16px max(20px, env(safe-area-inset-bottom)); }
.quiz-count { margin: 0; text-align: center; font-size: 15px; font-weight: 700; color: var(--gold); letter-spacing: .02em; }
.quiz-q h2 { margin: 0 0 6px; text-align: center; font-size: 26px; line-height: 1.35; color: var(--gold-hi); }
.quiz-opts { display: flex; flex-direction: column; gap: 12px; }
.quiz-opt { display: flex; align-items: center; gap: 14px; min-height: 64px; padding: 10px 16px; border-radius: 16px; border: 3px solid var(--wood); text-align: left; cursor: pointer;
  background: linear-gradient(180deg, rgba(106,68,35,.95), rgba(67,41,15,.95)); color: var(--cream); font-family: var(--game-font); font-size: 18px; line-height: 1.35; font-weight: 600;
  box-shadow: inset 0 2px 0 rgba(255,220,150,.2), 0 5px 0 #1A0E05; transition: transform .08s; }
.quiz-opt:active { transform: translateY(3px); }
.quiz-opt .letter { flex-shrink: 0; width: 36px; height: 36px; border-radius: 999px; display: flex; align-items: center; justify-content: center; background: rgba(0,0,0,.35); border: 2px solid var(--wood); color: var(--gold-hi); font-weight: 800; }
.quiz-opt.on { border-color: var(--gold-hi); background: linear-gradient(180deg, var(--gold-hi), var(--gold) 55%, var(--gold-lo)); color: #3A1E02; }
.quiz-opt.on .letter { background: #3A1E02; color: var(--gold-hi); }
.quiz-think { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 26px; }
.quiz-think h2 { margin: 0; font-size: 24px; color: var(--gold-hi); }
.quiz-spin { position: relative; width: 150px; height: 150px; }
.quiz-spin img { position: absolute; inset: 0; width: 150px; height: 150px; border-radius: 18px; border: 3px solid var(--wood); opacity: 0; animation: cycle 1.8s steps(1) infinite; }
@keyframes cycle { 0% { opacity: 1 } 11.1% { opacity: 0 } }
.quiz-res .quiz-result { position: relative; z-index: 1; flex: 1; overflow-y: auto; display: flex; flex-direction: column; align-items: stretch; gap: 12px; padding: 4px 16px max(20px, env(safe-area-inset-bottom)); text-align: center; }
.quiz-card { position: relative; align-self: center; width: min(250px, 66vw); animation: starpop .5s cubic-bezier(.3,1.5,.5,1) both; }
.quiz-card img { width: 100%; height: auto; display: block; border-radius: 20px; border: 4px solid var(--gold); box-shadow: 0 0 0 3px #2A1604, 0 0 40px rgba(255,200,90,.35), 0 18px 30px rgba(0,0,0,.6); }
.quiz-pct { position: absolute; left: 50%; bottom: -16px; transform: translateX(-50%); white-space: nowrap; padding: 4px 16px; border-radius: 999px; background: var(--red); border: 3px solid #4A140F; color: #FFF1D6; font-weight: 800; font-size: 16px; }
.quiz-name { margin: 18px 0 0; font-size: 42px; line-height: 1.15; color: var(--gold-hi); }
.quiz-tag { margin: 0; font-size: 19px; font-weight: 700; color: var(--cream); }
.quiz-traits { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.quiz-traits span { padding: 4px 14px; border-radius: 999px; border: 2px solid var(--wood); background: rgba(20,12,4,.8); color: var(--gold-hi); font-weight: 700; font-size: 15px; }
.quiz-desc { margin: 4px 0 0; font-size: 17px; line-height: 1.7; color: #F6E7C8; text-align: left; }
.quiz-why { padding: 16px; display: flex; flex-direction: column; gap: 10px; text-align: left; }
.quiz-why h2 { margin: 0; font-size: 21px; color: var(--gold-hi); }
.quiz-why p { margin: 0; font-size: 16px; line-height: 1.55; color: var(--sand); }
.quiz-also { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.quiz-also div { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 14px; border: 2px solid #4A3B2A; background: rgba(20,12,4,.7); text-align: left; }
.quiz-also img { width: 46px; height: 46px; border-radius: 8px; flex-shrink: 0; }
.quiz-also b { font-size: 15px; line-height: 1.2; color: var(--cream); flex: 1; }
.quiz-also small { font-size: 14px; font-weight: 800; color: var(--gold); }
@media (max-height: 720px) { .quiz .quiz-emblems { height: 190px; margin-top: 8px; } .quiz .quiz-emblems img { width: 76px; height: 76px; top: calc(40px + (var(--i) - 4) * (var(--i) - 4) * 4px); left: calc(50% - 38px + (var(--i) - 4) * min(32px, 8vw)); } .quiz-title { font-size: 28px; } }
.quiz-cardbox { display: flex; align-items: center; gap: 14px; }
.quiz-preview { width: 104px; aspect-ratio: 4 / 5; flex-shrink: 0; border-radius: 10px; border: 2px solid var(--wood); background: rgba(0,0,0,.35); overflow: hidden; box-shadow: 0 8px 16px rgba(0,0,0,.5); transform: rotate(-3deg); }
.quiz-preview img { width: 100%; height: 100%; object-fit: cover; display: block; }
.quiz-cardside { display: flex; flex-direction: column; gap: 4px; text-align: left; }
.quiz-cardside b { font-size: 17px; color: var(--gold-hi); }
.quiz-cardside span { font-size: 14px; line-height: 1.5; color: var(--sand); }

/* gift-news form */
.notify-panel { padding: 30px 16px 16px; }
.notify-h { margin: 0; font-size: 21px; color: #FFE3A3; line-height: 1.3; text-align: center; }
.notify-p { font-size: 14px !important; color: #E8D7B4 !important; text-align: center; }
.form .lbl { font-size: 14px; font-weight: 700; color: var(--gold-hi); }
.via { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.via button { min-height: 60px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; border-radius: 12px; border: 2px solid var(--wood); background: rgba(0,0,0,.35); color: var(--cream); font: inherit; font-size: 15px; font-weight: 700; cursor: pointer; padding: 0 4px; min-width: 0; white-space: nowrap; }
.via button svg { width: 18px; height: 18px; flex-shrink: 0; }
.via button[aria-checked="true"] { border-color: var(--gold-hi); background: linear-gradient(#5a3d1d, #3a2812); color: #FFE3A3; box-shadow: 0 0 0 1px var(--gold-hi), 0 0 14px rgba(255, 210, 120, .25); }
.form .btn-gold svg { width: 22px; height: 22px; }
.notify-done { display: flex; align-items: center; gap: 12px; padding-top: 4px; }
.notify-done svg { width: 40px; height: 40px; flex-shrink: 0; }
.notify-done p { margin: 0; color: #8BE07A; font-weight: 700; font-size: 16px; line-height: 1.45; }
@media (max-width: 380px) { .via button { font-size: 14px; } }
