*{box-sizing:border-box}[hidden]{display:none!important}:root{color-scheme:dark;--bg:#07131a;--ink:#f5fffd;--muted:#9ab8b6;--line:rgba(255,255,255,.12);--aqua:#5df4d0;--blue:#58bfff;--yellow:#ffe066}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:640px;padding:16px;background:radial-gradient(circle at 80% -5%,rgba(41,221,191,.18),transparent 34%),radial-gradient(circle at 15% 4%,rgba(74,135,255,.18),transparent 32%),linear-gradient(180deg,#081b24,#061118)}.topbar{max-width:980px;margin:0 auto 12px;display:flex;align-items:center;justify-content:space-between;gap:12px}.eyebrow{margin:0 0 2px;color:#79b8b7;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-radius:999px;border:1px solid var(--line);background:rgba(255,255,255,.055);color:#d8efec;font-size:11px;font-weight:850}.sound{cursor:pointer}.arena{position:relative;overflow:hidden;isolation:isolate;max-width:980px;min-height:470px;margin:0 auto;padding:24px 22px 27px;border:1px solid rgba(93,244,208,.18);border-radius:30px;background:radial-gradient(circle at 50% 55%,rgba(56,179,184,.1),transparent 44%),linear-gradient(165deg,#0a2430,#071821);box-shadow:0 24px 70px rgba(0,0,0,.32);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;text-align:center;user-select:none;touch-action:manipulation;cursor:pointer;outline:none}.arena:focus-visible{box-shadow:0 0 0 3px rgba(93,244,208,.25),0 24px 70px rgba(0,0,0,.32)}.waves{position:absolute;inset:0;z-index:-1;pointer-events:none}.waves i{position:absolute;left:50%;top:58%;width:240px;height:240px;border:1px solid rgba(93,244,208,.12);border-radius:50%;transform:translate(-50%,-50%);animation:wave 5s ease-out infinite}.waves i:nth-child(2){animation-delay:-1.7s}.waves i:nth-child(3){animation-delay:-3.4s}.timer{display:flex;align-items:end;gap:5px;padding:8px 14px;border:1px solid var(--line);border-radius:14px;background:rgba(2,10,15,.36)}.timer span{color:#8cabaa;font-size:11px;font-weight:850}.timer strong{font-size:27px;line-height:1}.timer small{color:#9ebbb9}.copy{max-width:700px}.state{margin:0 0 6px;color:#69d9c4;font-size:11px;font-weight:950;letter-spacing:.15em}.copy h2{margin:0;font-size:clamp(27px,4.6vw,44px);letter-spacing:-.055em;line-height:1.12;word-break:keep-all}.copy p:last-child{margin:10px auto 0;max-width:620px;color:var(--muted);font-size:13px;line-height:1.6;word-break:keep-all}.counter{display:flex;align-items:baseline;justify-content:center;gap:7px;min-height:92px}.counter strong{font-size:clamp(70px,13vw,112px);line-height:.8;letter-spacing:-.07em;text-shadow:0 0 30px rgba(93,244,208,.18)}.counter>span{font-size:20px;font-weight:850;color:#b5d3d0}.counter small{margin-left:6px;color:#7fa5a2;font-size:13px}.start{min-width:190px;min-height:52px;border:0;border-radius:16px;background:linear-gradient(135deg,#6ef2cf,#59caff);color:#05201d;font-size:17px;font-weight:950;box-shadow:0 13px 34px rgba(68,214,193,.22);cursor:pointer}.hint{margin:-3px 0 0;color:#668b89;font-size:11px}.summary{max-width:980px;margin:12px auto 0;display:grid;grid-template-columns:150px 175px 1fr;gap:10px}.summary article{min-height:90px;padding:15px;border:1px solid var(--line);border-radius:18px;background:rgba(4,13,18,.76)}.summary article>span,.flow>div:first-child span{color:#86a8a5;font-size:11px;font-weight:850}.summary article>strong{display:block;margin-top:9px;font-size:20px}.flow>div:first-child{display:flex;justify-content:space-between;gap:8px}.flow small{color:#729c99}.meter{height:9px;margin-top:13px;border-radius:999px;background:#102b32;overflow:hidden}.meter i{display:block;width:0;height:100%;border-radius:inherit;background:linear-gradient(90deg,#58bfff,#5df4d0);box-shadow:0 0 18px rgba(93,244,208,.34)}.milestones{display:flex;justify-content:space-between;margin-top:6px;color:#527773;font-size:9px}.fx{position:absolute;inset:0;pointer-events:none}.tap-ring{position:absolute;width:26px;height:26px;margin:-13px;border:2px solid hsl(var(--h) 90% 68%);border-radius:50%;box-shadow:0 0 14px hsl(var(--h) 90% 62% / .4);animation:tap .52s ease-out forwards}.tap-dot{position:absolute;width:7px;height:7px;border-radius:50%;background:hsl(var(--h) 95% 68%);animation:dot .48s ease-out forwards}.state-countdown .counter strong{color:var(--yellow)}.state-playing{border-color:rgba(93,244,208,.45);background:radial-gradient(circle at 50% 52%,rgba(93,244,208,.15),transparent 44%),linear-gradient(165deg,#092a32,#071b22)}.state-playing .counter strong{color:#effffc}.state-finished .waves i{animation-play-state:paused}@keyframes wave{0%{transform:translate(-50%,-50%) scale(.25);opacity:.5}70%,100%{transform:translate(-50%,-50%) scale(2.5);opacity:0}}@keyframes tap{to{transform:scale(4);opacity:0}}@keyframes dot{to{transform:translate(var(--x),var(--y)) scale(.3);opacity:0}}@media(max-width:700px){.game{padding:11px}.arena{min-height:482px;padding:22px 15px;border-radius:24px}.copy h2{font-size:33px}.counter{min-height:86px}.summary{grid-template-columns:1fr 1fr}.flow{grid-column:1/-1}.top-actions{gap:5px}.mode,.sound{padding:6px 8px}}@media(max-width:390px){.game{padding:9px}.arena{min-height:475px}.copy h2{font-size:29px}.copy p:last-child{font-size:12px}.counter strong{font-size:76px}.counter small{display:block;margin-left:0}.summary article{padding:12px;min-height:80px}}@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}
}
