*{box-sizing:border-box}[hidden]{display:none!important}:root{color-scheme:dark;--ink:#fff9e9;--muted:#a69c80;--line:rgba(255,255,255,.1);--yellow:#ffd74d;--orange:#ff8c42;--cyan:#57def8}html,body{margin:0;min-height:100%;overflow:hidden;background:#100c05}body{font-family:Pretendard,"Noto Sans KR",system-ui,sans-serif;color:var(--ink)}button{font:inherit}.game{min-height:720px;padding:16px;background:radial-gradient(circle at 15% 0,rgba(255,200,58,.16),transparent 35%),radial-gradient(circle at 85% 10%,rgba(255,96,47,.11),transparent 30%),linear-gradient(180deg,#171006,#090704)}.topbar,.stage{max-width:960px;margin:auto}.topbar{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:12px}.eyebrow{margin:0 0 2px;color:#b19c62;font-size:10px;font-weight:950;letter-spacing:.18em}h1{margin:0;font-size:clamp(21px,3vw,29px)}.actions{display:flex;gap:7px}.pill{min-height:34px;padding:7px 10px;border:1px solid var(--line);border-radius:999px;background:rgba(255,255,255,.05);color:#fff2c9;font-size:11px;font-weight:850}.stage{position:relative;overflow:hidden;min-height:620px;padding:20px;border:1px solid rgba(255,204,69,.18);border-radius:30px;background:linear-gradient(160deg,rgba(28,20,8,.98),rgba(10,7,3,.98));box-shadow:0 25px 75px rgba(0,0,0,.36)}.grid-bg{position:absolute;inset:0;opacity:.22;background-image:linear-gradient(rgba(255,215,77,.08) 1px,transparent 1px),linear-gradient(90deg,rgba(255,215,77,.08) 1px,transparent 1px);background-size:32px 32px;mask-image:linear-gradient(180deg,black,transparent 75%)}.hud{position:relative;z-index:2;display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.hud span{padding:9px;border:1px solid var(--line);border-radius:12px;background:rgba(255,255,255,.035);text-align:center;color:#a29370;font-size:10px;font-weight:850}.hud strong{color:#fff5d8;font-size:13px}.intro,.result{position:relative;z-index:2;min-height:510px;display:grid;place-content:center;justify-items:center;text-align:center}.bolt{width:145px;height:145px;display:grid;place-items:center;margin-bottom:25px;border:1px solid rgba(255,213,72,.35);border-radius:38px;background:radial-gradient(circle at 50% 40%,rgba(255,223,92,.16),transparent 60%),#171006;font-size:72px;filter:drop-shadow(0 0 28px rgba(255,190,58,.25));animation:charge 1.8s ease-in-out infinite}.state{margin:0 0 7px;color:#ffd34b;font-size:10px;font-weight:950;letter-spacing:.16em}.intro h2,.result h2{margin:0;font-size:clamp(31px,5vw,47px);letter-spacing:-.05em}.intro>p:not(.state){max-width:590px;margin:10px 0 22px;color:var(--muted);font-size:13px;line-height:1.7}.primary{min-width:190px;min-height:52px;border:0;border-radius:16px;background:linear-gradient(135deg,#ffe163,#ff8f43);color:#211202;font-weight:950;cursor:pointer;box-shadow:0 14px 38px rgba(255,163,53,.22)}.play{position:relative;z-index:2;min-height:500px;display:grid;align-content:center;justify-items:center;text-align:center}.difficulty{width:min(620px,100%);display:grid;grid-template-columns:auto 1fr auto;gap:10px;align-items:center;color:#a59673;font-size:10px;font-weight:850}.difficulty>div{height:5px;border-radius:999px;background:rgba(255,255,255,.07);overflow:hidden}.difficulty i{display:block;width:10%;height:100%;background:linear-gradient(90deg,#ffe45b,#ff8844);transition:width .2s}.difficulty b{color:#ffdc5d}.question{margin:12px 0 20px;font-size:clamp(64px,12vw,110px);font-weight:1000;letter-spacing:-.06em;text-shadow:0 9px 42px rgba(255,201,61,.12)}.question.hit{animation:hit .18s}.answers{width:min(660px,100%);display:grid;grid-template-columns:1fr 1fr;gap:10px}.answers button{min-height:70px;border:1px solid rgba(255,215,77,.16);border-radius:17px;background:linear-gradient(145deg,#261b09,#151005);color:#fff4d2;font-size:22px;font-weight:950;cursor:pointer;transition:.13s}.answers button:hover{transform:translateY(-2px);border-color:#f6c643}.answers button:active{transform:scale(.98)}.feedback{height:24px;margin:12px 0 8px;color:#9c8d6d;font-size:12px}.feedback.good{color:#79efaa}.feedback.bad{color:#ff7b72}.timer{width:min(660px,100%);height:5px;border-radius:999px;background:rgba(255,255,255,.07);overflow:hidden}.timer i{display:block;width:0;height:100%;background:linear-gradient(90deg,#ffd84d,#ff8740)}.result h2 strong{font-size:clamp(70px,13vw,115px);color:#ffdc58;text-shadow:0 0 42px rgba(255,200,60,.25)}.result h2 small{font-size:16px;color:#a19069}.result-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:9px;width:min(540px,100%);margin:22px 0}.result-grid span{padding:13px;border:1px solid var(--line);border-radius:14px;background:rgba(255,255,255,.035)}.result-grid small{display:block;color:#9a8b68;font-size:10px}.result-grid b{display:block;margin-top:3px;font-size:17px}.sparks{position:absolute;inset:0;pointer-events:none}.sparks i{position:absolute;width:4px;height:22px;border-radius:99px;background:#ffe264;box-shadow:0 0 14px currentColor;animation:spark .55s ease-out forwards}@keyframes charge{50%{transform:scale(1.05);box-shadow:0 0 40px rgba(255,190,58,.12)}}@keyframes hit{50%{transform:scale(1.08)}}@keyframes spark{to{transform:translate(var(--x),var(--y)) rotate(var(--r));opacity:0}}@media(max-width:650px){.game{padding:9px}.stage{min-height:650px;padding:14px;border-radius:24px}.hud{grid-template-columns:1fr 1fr}.hud span:last-child{grid-column:1/-1}.question{font-size:66px}.answers button{min-height:62px;font-size:19px}.result-grid{grid-template-columns:1fr}}@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation-duration:.001ms!important;transition-duration:.001ms!important}}


/* v0.9.7 universal mobile compact */
@media(max-width:700px){
  html,body{min-height:0!important;max-width:100%!important;overflow-x:hidden!important}
  .game{min-height:0!important;padding:6px!important;max-width:100%!important;overflow-x:hidden!important}
  .topbar,.top,main.game>header{min-height:30px!important;margin-bottom:5px!important;padding:0!important;display:flex!important;align-items:center!important}
  .topbar>div:first-child,.top>div:first-child,main.game>header>div:first-child{display:none!important}
  .top-actions,.topbar>.actions,.top>.top-actions,main.game>header>div:last-child{width:100%!important;display:flex!important;justify-content:flex-end!important;align-items:center!important;gap:4px!important;margin:0!important}
  .mode,.sound,.pill,.top-actions>*,main.game>header>div:last-child>*{min-height:27px!important;padding:4px 7px!important;font-size:9px!important;line-height:1.1!important}
  .intro,.done,.result,.complete{min-height:0!important;padding:15px 11px!important;border-radius:18px!important}
  .intro h2,.done h2,.result h2,.complete h2{font-size:clamp(24px,7vw,31px)!important;line-height:1.15!important;margin-top:5px!important;margin-bottom:6px!important;word-break:keep-all}
  .intro>p:not(.state),.intro .desc,.intro .description,.copy p:last-child,.done>p:not(.state),.result>p:not(.state){font-size:10.5px!important;line-height:1.45!important;margin:6px auto 12px!important;display:-webkit-box!important;-webkit-line-clamp:2!important;-webkit-box-orient:vertical!important;overflow:hidden!important;max-width:96%!important}
  .stage{border-radius:18px!important;padding-left:9px!important;padding-right:9px!important}
  .meteor-logo,.cosmos,.hero-heart,.portal,.demo,.sky,.galaxy,.done-heart,.pulse,.const{transform:scale(.72);transform-origin:center;margin-top:-14px!important;margin-bottom:-13px!important}
  .evolution{margin:9px 0!important;gap:4px!important;max-width:100%;overflow:hidden}.evolution em{width:34px!important;height:34px!important;font-size:16px!important;flex:0 0 auto}.evolution b{font-size:10px!important}
  .primary,.action,.intro button,.done button,.result button{min-height:43px!important;padding:9px 17px!important;border-radius:12px!important;font-size:12px!important}
  .help,.message,.note{font-size:9px!important;line-height:1.35!important}
}
@media(max-width:390px){
  .game{padding:5px!important}
  .intro h2,.done h2,.result h2,.complete h2{font-size:24px!important}
  .mode,.sound,.pill,.top-actions>*,main.game>header>div:last-child>*{font-size:8.5px!important;padding:4px 6px!important}
}

@media(max-width:700px){.stage{min-height:0!important}.intro,.result{min-height:430px!important}.bolt-logo{transform:scale(.7);margin:-18px auto!important}}


/* v0.9.7 mobile idle/gameplay compaction */
@media(max-width:700px){
  .arena.state-idle,.stage.state-idle{min-height:min(430px,calc(100dvh - 145px))!important;padding:12px 10px!important}
  .arena.state-idle .copy h2,.stage.state-idle .copy h2,.stage .copy h2{font-size:clamp(22px,6.5vw,29px)!important;line-height:1.15!important;margin:5px 0 6px!important;word-break:keep-all}
  .arena.state-idle .copy>p:not(.state),.stage.state-idle .copy>p:not(.state),.stage .copy>p:not(.state){font-size:10.5px!important;line-height:1.4!important;margin:5px auto 9px!important;display:-webkit-box!important;-webkit-line-clamp:2!important;-webkit-box-orient:vertical!important;overflow:hidden!important}
  .hint,.typing-note{font-size:9px!important;line-height:1.3!important;margin-top:5px!important}
  .mode-card,.start-panel{padding:10px!important;margin-bottom:7px!important;border-radius:15px!important}
  .summary{min-height:0!important;padding:11px 9px!important}
}

/* v0.10.0 common fullscreen bridge */
html.host-fullscreen,html.host-fullscreen body{width:100%!important;height:100%!important;min-height:100%!important;max-height:none!important;overflow-y:auto!important;overflow-x:hidden!important;-webkit-overflow-scrolling:touch!important}
html.host-fullscreen .game{width:100%!important;min-height:100dvh!important;height:auto!important;max-height:none!important;overflow:visible!important;padding:6px!important}
@media(max-width:700px){
 html.host-fullscreen .topbar,html.host-fullscreen .top,html.host-fullscreen main.game>header{display:none!important}
 html.host-fullscreen .intro,html.host-fullscreen .done,html.host-fullscreen .result,html.host-fullscreen .complete,html.host-fullscreen .stage,html.host-fullscreen .arena,html.host-fullscreen .panel{min-height:0!important;max-height:none!important}
 html.host-fullscreen .summary{display:none!important}
 html.host-fullscreen .intro,html.host-fullscreen .done{padding-top:10px!important;padding-bottom:10px!important}
 html.host-fullscreen .help,html.host-fullscreen .hint,html.host-fullscreen .legend{max-height:34px;overflow:hidden}
}
