*{box-sizing:border-box}[hidden]{display:none!important}:root{color-scheme:dark;--bg:#06101d;--ink:#f6fbff;--muted:#9eb0c7;--line:rgba(255,255,255,.12);--cyan:#58d8ff;--mint:#62f3b5;--amber:#ffd166;--red:#ff6b88}html,body{margin:0;min-height:100%;overflow:hidden;background:var(--bg)}body{font-family:Pretendard,"Noto Sans KR",system-ui,-apple-system,"Segoe UI",sans-serif;color:var(--ink)}button{font:inherit}.game{min-height:610px;padding:16px;background:radial-gradient(circle at 12% -10%,rgba(71,115,255,.25),transparent 36%),radial-gradient(circle at 90% 10%,rgba(54,216,255,.11),transparent 30%),linear-gradient(180deg,#091526,#06101d)}.topbar{max-width:980px;margin:0 auto 12px;display:flex;align-items:center;justify-content:space-between;gap:14px}.eyebrow{margin:0 0 2px;color:#8ea6c7;font-size:10px;font-weight:900;letter-spacing:.18em}h1{margin:0;font-size:clamp(21px,3vw,28px);letter-spacing:-.04em}.top-actions{display:flex;gap:8px;align-items:center}.mode,.sound{min-height:34px;padding:7px 11px;border-radius:999px;border:1px solid var(--line);background:rgba(255,255,255,.055);color:#dbe7f6;font-size:11px;font-weight:850}.sound{cursor:pointer}.arena{position:relative;isolation:isolate;overflow:hidden;max-width:980px;min-height:448px;margin:0 auto;padding:34px 22px 28px;border:1px solid var(--line);border-radius:30px;background:linear-gradient(160deg,#0b1a2e,#07111f);box-shadow:0 24px 70px rgba(0,0,0,.34);display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;gap:16px;cursor:pointer;user-select:none;touch-action:manipulation;outline:none;transition:background .18s ease,border-color .18s ease,box-shadow .18s ease}.arena:focus-visible{box-shadow:0 0 0 3px rgba(88,216,255,.28),0 24px 70px rgba(0,0,0,.34)}.sky{position:absolute;inset:0;z-index:-1;opacity:.45;pointer-events:none;background-image:radial-gradient(circle,rgba(126,183,255,.5) 0 1px,transparent 1.5px);background-size:42px 42px;mask-image:linear-gradient(to bottom,black,transparent 85%)}.sky i{position:absolute;width:5px;height:5px;border-radius:50%;background:#6fe6ff;box-shadow:0 0 16px #6fe6ff;animation:drift 5s ease-in-out infinite}.sky i:nth-child(1){left:12%;top:23%}.sky i:nth-child(2){left:24%;bottom:18%;animation-delay:-1.4s}.sky i:nth-child(3){right:17%;top:26%;animation-delay:-2.8s}.sky i:nth-child(4){right:9%;bottom:22%;animation-delay:-3.7s}.sky i:nth-child(5){left:42%;top:12%;animation-delay:-2s}.sky i:nth-child(6){right:38%;bottom:10%;animation-delay:-4.1s}.signal{position:relative;width:150px;height:150px;display:grid;place-items:center;flex:0 0 auto}.core{width:70px;height:70px;border-radius:50%;display:grid;place-items:center;background:radial-gradient(circle at 35% 30%,#ebfbff 0 8%,#61dbff 11%,#136a97 48%,#081f35 72%);box-shadow:0 0 0 12px rgba(88,216,255,.05),0 0 45px rgba(88,216,255,.3);transition:transform .18s,box-shadow .18s,background .18s}.core b{font-size:18px;color:#e9fbff;text-shadow:0 0 12px currentColor}.halo{position:absolute;border:1px solid rgba(88,216,255,.3);border-radius:50%;animation:pulse 2.5s ease-out infinite}.h1{width:105px;height:105px}.h2{width:146px;height:146px;animation-delay:.75s}.copy{max-width:690px;position:relative;z-index:2}.status{margin:0 0 7px;color:#8fcbe2;font-size:11px;font-weight:950;letter-spacing:.15em}.copy h2{margin:0;font-size:clamp(29px,5vw,47px);letter-spacing:-.055em;line-height:1.13;word-break:keep-all}.copy p:last-child{margin:12px auto 0;max-width:620px;color:var(--muted);font-size:14px;line-height:1.65;word-break:keep-all}.action{position:relative;z-index:3;min-width:190px;min-height:54px;padding:12px 28px;border:0;border-radius:16px;background:linear-gradient(135deg,#82a8ff,#5ddfff);color:#07111d;font-size:17px;font-weight:950;box-shadow:0 13px 34px rgba(72,185,255,.24);cursor:pointer}.action:active{transform:translateY(1px) scale(.99)}.hint{margin:-5px 0 0;color:#7186a2;font-size:11px}.result{position:relative;z-index:2}.result strong{font-size:clamp(62px,12vw,104px);line-height:.88;letter-spacing:-.07em}.result>span{margin-left:8px;color:#a1b4cc;font-size:18px;font-weight:850}.result p{margin:12px 0 0;color:#c4d2e2}.stats{max-width:980px;margin:12px auto 0;display:grid;grid-template-columns:150px 175px 1fr;gap:10px}.stats article{min-height:88px;padding:15px;border:1px solid var(--line);border-radius:18px;background:rgba(5,13,24,.76)}.stats article>span,.history-head span{display:block;color:#8ca3c1;font-size:11px;font-weight:850}.stats article>strong{display:block;margin-top:9px;font-size:20px}.history{min-width:0}.history-head{display:flex;justify-content:space-between;gap:10px}.history-head small{color:#6f8caf}.chips{display:flex;gap:7px;align-items:center;margin-top:11px;overflow:hidden}.chip{padding:6px 9px;border:1px solid rgba(88,216,255,.16);border-radius:999px;background:#10253e;font-size:11px;font-weight:850;white-space:nowrap}.empty{color:#6f839e;font-size:11px}.burst{position:absolute;inset:0;pointer-events:none}.spark{position:absolute;width:8px;height:8px;border-radius:50%;background:var(--mint);box-shadow:0 0 12px currentColor;animation:burst .68s ease-out forwards}.state-waiting{background:linear-gradient(160deg,#251d0e,#11140f);border-color:rgba(255,209,102,.3)}.state-waiting .core{background:radial-gradient(circle at 35% 30%,#fff6d2 0 8%,#ffd166 11%,#9b6912 48%,#32250d 72%);box-shadow:0 0 0 12px rgba(255,209,102,.05),0 0 45px rgba(255,209,102,.24)}.state-waiting .halo{border-color:rgba(255,209,102,.3)}.state-go{background:radial-gradient(circle at 50% 35%,rgba(98,243,181,.22),transparent 33%),linear-gradient(160deg,#0c2b22,#061912);border-color:rgba(98,243,181,.55);box-shadow:0 0 0 1px rgba(98,243,181,.15),0 26px 80px rgba(17,107,75,.28)}.state-go .core{transform:scale(1.15);background:radial-gradient(circle at 35% 30%,#e9fff7 0 8%,#62f3b5 11%,#159866 48%,#063428 72%);box-shadow:0 0 0 18px rgba(98,243,181,.08),0 0 80px rgba(98,243,181,.62)}.state-go .halo{border-color:rgba(98,243,181,.55);animation-duration:.82s}.state-false{background:linear-gradient(160deg,#31131c,#170b11);border-color:rgba(255,107,136,.4)}.state-false .core{background:radial-gradient(circle at 35% 30%,#ffe8ed 0 8%,#ff6b88 11%,#a52845 50%,#40111d 72%)}.state-result .signal{display:none}.state-result{gap:13px}.state-result .copy h2{font-size:clamp(24px,4vw,36px)}.state-result #desc{display:none}@keyframes pulse{0%{transform:scale(.74);opacity:.88}80%,100%{transform:scale(1.08);opacity:0}}@keyframes drift{0%,100%{transform:translateY(-4px);opacity:.3}50%{transform:translateY(9px);opacity:.9}}@keyframes burst{to{transform:translate(var(--x),var(--y)) scale(.2);opacity:0}}@media(max-width:700px){.game{padding:11px}.topbar{margin-bottom:9px}.arena{min-height:458px;padding:27px 16px 23px;border-radius:24px;gap:15px}.signal{width:132px;height:132px}.h2{width:128px;height:128px}.copy h2{font-size:34px}.copy p:last-child{font-size:13px}.stats{grid-template-columns:1fr 1fr}.history{grid-column:1/-1}.action{min-height:52px}.top-actions{gap:5px}.mode,.sound{padding:6px 8px}}@media(max-width:390px){.game{padding:9px}.arena{min-height:450px}.signal{width:118px;height:118px}.core{width:58px;height:58px}.h1{width:88px;height:88px}.h2{width:114px;height:114px}.copy h2{font-size:30px}.copy p:last-child{font-size:12px}.stats article{min-height:80px;padding:12px}.hint{max-width:250px;line-height:1.45}}@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation-duration:.001ms!important;animation-iteration-count:1!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}
}


/* 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}
}
