*{box-sizing:border-box}[hidden]{display:none!important}:root{color-scheme:dark;--bg:#050d18;--ink:#f4fbff;--muted:#91a8ba;--line:rgba(255,255,255,.11);--cyan:#4fe7ff;--blue:#547cff;--pink:#ff69c7}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:750px;padding:16px;background:radial-gradient(circle at 50% -10%,rgba(69,123,255,.2),transparent 35%),radial-gradient(circle at 10% 45%,rgba(79,231,255,.08),transparent 30%),linear-gradient(180deg,#081423,#040a12)}.topbar,.stage,.summary{max-width:980px;margin-left:auto;margin-right:auto}.topbar{margin-bottom:12px;display:flex;justify-content:space-between;align-items:center;gap:12px}.eyebrow{margin:0 0 2px;color:#77a9c8;font-size:10px;font-weight:950;letter-spacing:.18em}h1{margin:0;font-size:clamp(21px,3vw,28px);letter-spacing:-.04em}.top-actions{display:flex;gap:7px}.mode,.sound{min-height:34px;padding:7px 10px;border:1px solid var(--line);border-radius:999px;background:rgba(255,255,255,.055);color:#d8e7f2;font-size:11px;font-weight:850}.sound{cursor:pointer}.stage{position:relative;overflow:hidden;min-height:555px;border:1px solid rgba(79,231,255,.18);border-radius:30px;background:linear-gradient(165deg,#0b1a2b,#06111d);box-shadow:0 24px 70px rgba(0,0,0,.34);display:flex;flex-direction:column}.hud{height:48px;padding:0 18px;display:flex;align-items:center;justify-content:center;gap:18px;border-bottom:1px solid rgba(255,255,255,.07);background:rgba(4,12,21,.6)}.hud span{color:#7892a7;font-size:10px;font-weight:850}.hud strong{margin-left:4px;color:#e9f8ff}.copy{position:absolute;z-index:6;inset:48px 0 0;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:24px;text-align:center;background:radial-gradient(circle,rgba(10,31,50,.76),rgba(5,15,25,.92) 62%)}.copy .state{margin:0 0 6px;color:#67e2f6;font-size:11px;font-weight:950;letter-spacing:.15em}.copy h2{margin:0;font-size:clamp(28px,5vw,45px);line-height:1.12;letter-spacing:-.055em;word-break:keep-all}.copy p{max-width:640px;margin:11px 0 18px;color:var(--muted);font-size:13px;line-height:1.65;word-break:keep-all}.action,.result button{min-width:190px;min-height:52px;border:0;border-radius:16px;background:linear-gradient(135deg,#4fe7ff,#6775ff);color:#05131c;font-weight:950;cursor:pointer;box-shadow:0 14px 34px rgba(79,190,255,.2)}.copy .hint{margin:9px 0 0;font-size:10px;color:#658197}.arena{position:relative;flex:1;min-height:505px;overflow:hidden;touch-action:manipulation;user-select:none;background:radial-gradient(circle at 50% 50%,rgba(79,231,255,.05),transparent 44%)}.gridlines{position:absolute;inset:0;opacity:.14;background-image:linear-gradient(rgba(117,195,255,.18) 1px,transparent 1px),linear-gradient(90deg,rgba(117,195,255,.18) 1px,transparent 1px);background-size:48px 48px;mask-image:radial-gradient(circle,#000 10%,transparent 78%)}.target{position:absolute;z-index:5;width:66px;height:66px;margin:-33px;border:0;border-radius:50%;background:radial-gradient(circle,#fff 0 7%,#73f1ff 8% 17%,#0f2030 18% 30%,#ff6fc8 31% 38%,#102238 39% 58%,#4fe7ff 59% 64%,#081423 65%);box-shadow:0 0 0 1px rgba(255,255,255,.26),0 0 30px rgba(79,231,255,.35);cursor:crosshair;touch-action:manipulation;animation:targetIn .12s ease-out}.target i,.target b,.target span{position:absolute;pointer-events:none}.target i{inset:-11px;border:1px solid rgba(79,231,255,.32);border-radius:50%;animation:ring 1.1s linear infinite}.target b{left:50%;top:-18px;width:1px;height:102px;background:linear-gradient(transparent,#8ff5ff,transparent)}.target span{top:50%;left:-18px;width:102px;height:1px;background:linear-gradient(90deg,transparent,#8ff5ff,transparent)}.result{position:absolute;z-index:8;inset:48px 0 0;display:grid;place-content:center;justify-items:center;text-align:center;background:radial-gradient(circle,rgba(31,57,88,.86),rgba(5,14,24,.96) 65%)}.result>span{color:#70ddeb;font-size:11px;font-weight:950;letter-spacing:.14em}.result>strong{margin-top:4px;font-size:clamp(45px,9vw,78px);letter-spacing:-.07em}.result>small{margin:2px 0 18px;color:#91a8ba}.fx{position:absolute;inset:0;pointer-events:none}.fx i{position:absolute;width:7px;height:7px;border-radius:50%;background:hsl(var(--h) 90% 65%);animation:pop .55s ease-out forwards}.summary{margin-top:11px;display:grid;grid-template-columns:170px 170px 1fr;gap:9px}.summary article{min-height:82px;padding:14px;border:1px solid var(--line);border-radius:18px;background:rgba(5,14,23,.78)}.summary article>span,.pace>div:first-child span{color:#7d97ab;font-size:10px;font-weight:850}.summary article>strong{display:block;margin-top:8px;font-size:19px}.pace>div:first-child{display:flex;justify-content:space-between}.pace small{color:#638299}.meter{height:8px;margin-top:13px;border-radius:999px;background:#102538;overflow:hidden}.meter i{display:block;width:0;height:100%;border-radius:inherit;background:linear-gradient(90deg,#547cff,#4fe7ff,#ff69c7);transition:width .18s}.state-playing .copy{display:none}@keyframes targetIn{from{transform:scale(.55);opacity:0}to{transform:scale(1);opacity:1}}@keyframes ring{to{transform:rotate(360deg)}}@keyframes pop{to{transform:translate(var(--x),var(--y)) scale(.2);opacity:0}}@media(max-width:700px){.game{padding:10px}.stage{min-height:580px;border-radius:24px}.arena{min-height:530px}.target{width:62px;height:62px;margin:-31px}.summary{grid-template-columns:1fr 1fr}.pace{grid-column:1/-1}.hud{gap:10px;padding:0 8px}.copy h2{font-size:33px}}@media(max-width:390px){.game{padding:8px}.stage{min-height:560px}.arena{min-height:510px}.copy h2{font-size:29px}.copy p{font-size:12px}.summary article{padding:11px;min-height:76px}}@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}
}


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