*{box-sizing:border-box}[hidden]{display:none!important}:root{color-scheme:dark;--ink:#f5f8ff;--muted:#8997b4;--line:rgba(255,255,255,.1);--violet:#9d82ff;--cyan:#65e4ff;--pink:#ff7dc8}html,body{margin:0;min-height:100%;overflow:hidden;background:#050714}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(109,90,255,.2),transparent 33%),radial-gradient(circle at 85% 20%,rgba(43,220,255,.1),transparent 28%),linear-gradient(180deg,#080b1e,#02040b)}.topbar,.stage{max-width:980px;margin:auto}.topbar{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:12px}.eyebrow{margin:0 0 2px;color:#8176ba;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:#e1ddf3;font-size:11px;font-weight:850}.stage{position:relative;overflow:hidden;min-height:620px;padding:20px;border:1px solid rgba(142,121,255,.18);border-radius:30px;background:linear-gradient(160deg,rgba(12,15,38,.98),rgba(4,8,18,.98));box-shadow:0 25px 75px rgba(0,0,0,.35)}#sky{position:absolute;inset:0;width:100%;height:100%;opacity:.65;pointer-events:none}.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:#7785a3;font-size:10px;font-weight:850}.hud strong{color:#edf0ff;font-size:13px}.intro,.result{position:relative;z-index:2;min-height:510px;display:grid;place-content:center;justify-items:center;text-align:center}.planet{position:relative;width:150px;height:150px;margin-bottom:25px;border-radius:50%;background:radial-gradient(circle at 40% 35%,#7beeff 0 3%,#5063bd 18%,#1a2153 60%,#0b0e24);box-shadow:0 0 70px rgba(98,133,255,.25)}.planet:after{content:"";position:absolute;inset:42%;border-radius:50%;background:#d6fbff;box-shadow:0 0 22px #84f3ff}.planet i{position:absolute;left:50%;top:50%;border:1px solid rgba(141,122,255,.35);border-radius:50%;transform:translate(-50%,-50%);animation:orbit 6s linear infinite}.planet i:nth-child(1){width:195px;height:70px}.planet i:nth-child(2){width:205px;height:100px;transform:translate(-50%,-50%) rotate(52deg);animation-duration:9s}.planet i:nth-child(3){width:180px;height:180px;border-color:rgba(89,228,255,.16);animation-duration:12s}.state{margin:0 0 7px;color:#9f8aff;font-size:10px;font-weight:950;letter-spacing:.16em}.intro h2,.result h2,.round-copy h2{margin:0;font-size:clamp(30px,5vw,46px);letter-spacing:-.05em}.intro>p:not(.state),.result>p:not(.state){max-width:580px;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,#a384ff,#62e8ff);color:#090d20;font-weight:950;cursor:pointer;box-shadow:0 14px 36px rgba(122,106,255,.23)}.play{position:relative;z-index:2;padding-top:23px;text-align:center}.round-copy h2{font-size:clamp(24px,4vw,35px)}.grid{--n:3;width:min(520px,82vw);aspect-ratio:1;margin:22px auto 12px;display:grid;grid-template-columns:repeat(var(--n),1fr);gap:9px;padding:12px;border:1px solid rgba(126,111,225,.16);border-radius:24px;background:rgba(3,7,17,.6);box-shadow:inset 0 0 55px rgba(73,62,160,.08)}.tile{position:relative;border:1px solid rgba(142,126,255,.15);border-radius:14px;background:linear-gradient(145deg,#11162d,#090d1e);cursor:pointer;transition:transform .13s,background .2s,border-color .2s,box-shadow .2s}.tile:disabled{cursor:default}.tile:after{content:"";position:absolute;left:50%;top:50%;width:8px;height:8px;border-radius:50%;background:#364062;transform:translate(-50%,-50%);transition:.2s}.tile.show,.tile.good{border-color:rgba(102,232,255,.8);background:radial-gradient(circle,#6beaff 0 10%,#735dff 32%,#19214a 66%,#0c1126);box-shadow:0 0 24px rgba(99,226,255,.22),inset 0 0 24px rgba(123,99,255,.25);transform:scale(.96)}.tile.show:after,.tile.good:after{background:white;box-shadow:0 0 18px #8cf7ff}.tile.wrong{border-color:#ff6f9c;background:radial-gradient(circle,#ff819f,#4d172d 60%,#170912);animation:shake .32s}.round-note{color:#71809d;font-size:11px}.result h2 strong{font-size:clamp(70px,12vw,110px);color:#9aefff}.result h2 small{font-size:16px;color:#8490ad}.burst{position:absolute;inset:0;pointer-events:none}.burst i{position:absolute;width:7px;height:7px;border-radius:50%;background:#80efff;box-shadow:0 0 13px currentColor;animation:burst .8s ease-out forwards}@keyframes orbit{to{rotate:360deg}}@keyframes shake{25%{transform:translateX(-5px)}75%{transform:translateX(5px)}}@keyframes burst{to{transform:translate(var(--x),var(--y)) scale(.2);opacity:0}}@media(max-width:600px){.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}.grid{width:min(520px,92vw);gap:6px;padding:8px}.tile{border-radius:10px}}@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}}


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