*{box-sizing:border-box}[hidden]{display:none!important}:root{color-scheme:dark;--cyan:#67efff;--violet:#a875ff;--gold:#ffd45f;--pink:#ff62b8;--ink:#f7fbff;--muted:#94a6c2}html,body{margin:0;min-height:100%;overflow:hidden;background:#050817}body{font-family:Pretendard,"Noto Sans KR",system-ui,sans-serif;color:var(--ink)}button{font:inherit}.game{min-height:730px;padding:14px;background:radial-gradient(circle at 18% 0,rgba(54,115,255,.28),transparent 33%),radial-gradient(circle at 90% 8%,rgba(255,72,188,.16),transparent 29%),radial-gradient(circle at 50% 100%,rgba(77,255,202,.08),transparent 35%),linear-gradient(180deg,#090e25,#03050d)}.top,.intro,.stage,.done{max-width:940px;margin:0 auto}.top{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:10px}.eyebrow{margin:0;color:#a9b7ff;font-size:10px;font-weight:950;letter-spacing:.18em}h1{margin:2px 0 0;font-size:clamp(22px,3vw,29px)}.top-actions{display:flex;gap:7px}.top-actions>*{border:1px solid rgba(255,255,255,.12);border-radius:999px;background:rgba(255,255,255,.06);color:#e2e9ff;padding:7px 10px;font-size:11px;font-weight:850}.intro,.done{min-height:590px;border:1px solid rgba(115,150,255,.2);border-radius:28px;background:radial-gradient(circle at center,rgba(96,118,255,.14),transparent 43%),rgba(4,8,19,.8);display:grid;place-content:center;justify-items:center;text-align:center;padding:30px}.cosmos{position:relative;width:170px;height:170px;display:grid;place-items:center}.cosmos i{position:absolute;border:1px solid rgba(105,230,255,.38);border-radius:50%;animation:spin 7s linear infinite}.cosmos i:nth-child(1){width:162px;height:162px}.cosmos i:nth-child(2){width:116px;height:116px;animation-direction:reverse;animation-duration:5s}.cosmos i:nth-child(3){width:70px;height:70px}.cosmos b{font-size:57px;color:#fff;text-shadow:0 0 30px #62e9ff}.intro>span,.done>span{color:#a2b0ff;font-size:10px;font-weight:950;letter-spacing:.18em}.intro h2,.done h2{margin:7px 0 8px;font-size:clamp(31px,5vw,49px);letter-spacing:-.045em}.intro p,.done p{max-width:680px;margin:0;color:#95a7c2;line-height:1.75}.evolution{display:flex;align-items:center;gap:8px;margin:18px 0}.evolution em{width:44px;height:44px;border:1px solid rgba(255,255,255,.14);border-radius:50%;display:grid;place-items:center;background:linear-gradient(145deg,rgba(70,118,255,.22),rgba(255,89,183,.12));font-style:normal;font-size:23px}.evolution b{color:#6b7d99}.primary{border:0;border-radius:15px;padding:13px 27px;background:linear-gradient(135deg,#6d80ff,#55e1fa);color:#07101f;font-weight:950;cursor:pointer;box-shadow:0 12px 28px rgba(67,142,255,.25)}.stage{border:1px solid rgba(110,142,255,.2);border-radius:26px;padding:11px;background:#070b19}.hud{display:grid;grid-template-columns:.8fr 1.15fr 1.15fr .8fr;gap:7px;margin-bottom:8px}.hud>div{min-height:62px;padding:8px 10px;border:1px solid rgba(255,255,255,.09);border-radius:13px;background:rgba(255,255,255,.04)}.hud span{display:block;color:#8394af;font-size:9px;font-weight:900}.hud strong{font-size:20px}.drop-preview{display:flex;align-items:center;justify-content:space-between;gap:8px;background:linear-gradient(135deg,rgba(86,227,255,.08),rgba(255,81,184,.07))!important}.drop-preview.next{opacity:.78}.orb-preview{width:42px;height:42px;display:grid;place-items:center;border-radius:50%;border:2px solid rgba(255,255,255,.7);font-size:20px;font-weight:900;box-shadow:0 0 20px var(--orb-color);background:radial-gradient(circle at 32% 28%,#fff 0 8%,var(--orb-color) 35%,#151a35 80%)}.pulse-help{display:grid;grid-template-columns:165px 1fr;gap:8px;margin-bottom:8px}.pulse-help button{border:1px solid rgba(96,238,255,.2);border-radius:13px;background:linear-gradient(145deg,#102449,#12152f);color:#8df4ff;font-weight:950;cursor:pointer;padding:8px 12px}.pulse-help button span,.pulse-help button b{display:block}.pulse-help button b{margin-top:3px;font-size:12px;color:#ffd56d}.pulse-help button:disabled{opacity:.47;cursor:not-allowed}.pulse-help p{margin:0;padding:8px 11px;border:1px solid rgba(255,255,255,.07);border-radius:13px;background:rgba(255,255,255,.025);color:#7f91ad;font-size:10px;line-height:1.55}.pulse-help strong{color:#d9efff}.arena{position:relative;width:min(100%,650px);height:min(63vh,610px);min-height:500px;margin:auto;overflow:hidden;border:1px solid rgba(96,227,255,.19);border-radius:20px;background:radial-gradient(circle at 30% 17%,rgba(62,116,255,.16),transparent 28%),radial-gradient(circle at 78% 55%,rgba(255,70,188,.08),transparent 24%),linear-gradient(180deg,#080f27,#02040b);touch-action:none;user-select:none;box-shadow:inset 0 0 70px rgba(17,65,145,.18)}canvas{width:100%;height:100%;display:block}.danger{position:absolute;left:0;right:0;top:19%;height:1px;border-top:2px dashed rgba(255,87,127,.55);pointer-events:none}.danger span{position:absolute;right:8px;top:-19px;color:#ff8ea9;font-size:9px;font-weight:900;background:#090e21cc;padding:2px 5px;border-radius:5px}.guide{position:absolute;top:54px;bottom:0;width:2px;background:linear-gradient(180deg,rgba(103,239,255,.72),transparent 55%);pointer-events:none}.floating-drop{position:absolute;top:7px;width:54px;height:54px;border-radius:50%;transform:translateX(-50%);pointer-events:none;border:2px solid rgba(255,255,255,.7);box-shadow:0 0 25px var(--orb-color);background:radial-gradient(circle at 32% 28%,#fff 0 8%,var(--orb-color) 35%,#171936 80%);display:grid;place-items:center;color:#fff;font-size:25px;font-weight:950;transition:left .05s linear}.toast{position:absolute;left:50%;top:28%;transform:translate(-50%,-50%);padding:7px 11px;border:1px solid rgba(255,255,255,.13);border-radius:999px;background:rgba(2,8,20,.88);color:#e6fbff;font-size:11px;font-weight:900;opacity:0;transition:opacity .18s}.toast.show{opacity:1}.help{margin:8px 0 2px;text-align:center;color:#7b8ca8;font-size:10px}.galaxy{font-size:100px;color:#d4bcff;text-shadow:0 0 45px rgba(155,111,255,.58);animation:pulse 2s ease-in-out infinite}.done strong{font-size:34px;color:#7ceaff;margin-top:4px}.done .primary{margin-top:17px}.result-feedback{margin-top:14px;min-width:min(420px,90%);padding:13px 16px;border:1px solid rgba(255,216,93,.26);border-radius:16px;background:rgba(255,211,80,.08);color:#fff1ad;font-weight:900}.result-feedback.record{animation:recordPop .55s ease-out;box-shadow:0 0 35px rgba(255,211,80,.16)}@keyframes spin{to{transform:rotate(360deg)}}@keyframes pulse{50%{transform:scale(1.08);filter:brightness(1.2)}}@keyframes recordPop{0%{transform:scale(.78);opacity:0}70%{transform:scale(1.08)}100%{transform:scale(1)}}@media(max-width:680px){.game{padding:8px;min-height:760px}.hud{grid-template-columns:1fr 1fr}.pulse-help{grid-template-columns:1fr}.arena{height:min(60vh,560px);min-height:480px}.intro,.done{padding:22px;min-height:620px}}

/* 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){.intro{padding-top:8px!important}.cosmos{width:105px!important;height:105px!important}.cosmos i:nth-child(1){width:100px!important;height:100px!important}.cosmos i:nth-child(2){width:72px!important;height:72px!important}.cosmos i:nth-child(3){width:44px!important;height:44px!important}.cosmos b{font-size:36px!important}.intro>span{font-size:8px!important}.intro p{max-width:330px!important}.evolution em:nth-of-type(n+6),.evolution b:nth-of-type(n+6){display:none!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}
}

/* v0.10.0 cosmic compact HUD + fullscreen arena */
@media(max-width:700px){
 .stage{padding:4px!important}.hud{grid-template-columns:.62fr 1fr 1fr .62fr!important;gap:2px!important;margin-bottom:3px!important}.hud>div{min-height:37px!important;padding:3px 4px!important;border-radius:9px!important}.hud span{font-size:7px!important;line-height:1!important}.hud strong{font-size:13px!important}.orb-preview{width:28px!important;height:28px!important;font-size:9px!important}.drop-preview{gap:2px!important}
 .pulse-help{margin:0 0 3px!important;padding:0!important;display:block!important}.pulse-help p{display:none!important}.pulse-help button{width:100%!important;min-height:30px!important;padding:4px 8px!important;border-radius:10px!important;display:flex!important;align-items:center!important;justify-content:center!important;gap:8px!important;font-size:10px!important}.pulse-help button b{font-size:9px!important}
 .arena{height:min(72dvh,610px)!important;min-height:410px!important}.help{display:none!important}
}
@media(max-width:700px){html.host-fullscreen .stage{height:100dvh!important;padding:3px!important;display:flex!important;flex-direction:column!important}html.host-fullscreen .hud,html.host-fullscreen .pulse-help{flex:0 0 auto!important}html.host-fullscreen .arena{flex:1 1 auto!important;height:auto!important;min-height:0!important;width:min(100%,650px)!important}html.host-fullscreen .help{display:none!important}}
