*{box-sizing:border-box}[hidden]{display:none!important}html,body{margin:0;background:#061216;color:#effcff;font-family:Pretendard,"Noto Sans KR",system-ui,sans-serif;overflow:hidden}.game{min-height:680px;padding:14px;background:radial-gradient(circle at 50% 10%,#0f565c55,transparent 36%),radial-gradient(circle at 80% 20%,#5b174855,transparent 26%),#061216}header,.panel{max-width:850px;margin:auto}header{display:flex;justify-content:space-between;align-items:center;margin-bottom:10px}header p{margin:0;color:#65ffd8;font-size:10px;letter-spacing:.2em;font-weight:900}h1{margin:3px 0 0}header div:last-child{display:flex;gap:6px}header span,header button{padding:8px 10px;border:1px solid #ffffff1c;border-radius:999px;background:#ffffff0b;color:#d9fff5;font-size:11px;font-weight:800}.panel{border:1px solid #52ffd12b;border-radius:28px;background:linear-gradient(160deg,#0a2024,#071115);padding:17px;box-shadow:0 25px 80px #0008}.intro,.done{min-height:560px;display:grid;place-content:center;text-align:center;justify-items:center}.demo{position:relative;width:180px;height:180px;display:grid;place-items:center}.demo-target,.demo-wave{position:absolute;border-radius:50%}.demo-target{width:132px;height:132px;border:14px solid #58ffd2;box-shadow:0 0 30px #56ffd155}.demo-wave{width:62px;height:62px;border:7px solid #ff62b8;box-shadow:0 0 26px #ff62b888;animation:demoWave 1.7s ease-in-out infinite}.demo b{position:absolute;right:-18px;top:18px;padding:5px 8px;border:1px solid #58ffd2;border-radius:8px;background:#082d2d;color:#b5ffe9;font-size:10px}.intro h2,.done h2{font-size:clamp(31px,5vw,42px);margin:10px 0 8px}.intro p{max-width:650px;color:#8cb0ae;line-height:1.75}.intro p strong:first-child{color:#ff8fca}.intro p strong:last-child{color:#7affdc}.primary{margin-top:15px;padding:14px 24px;border:0;border-radius:14px;background:linear-gradient(135deg,#56ffd1,#65a2ff);font-weight:950;color:#061417}.instruction{display:flex;align-items:center;justify-content:center;gap:7px;flex-wrap:wrap;margin-bottom:9px;padding:8px 11px;border:1px solid #ffffff14;border-radius:12px;background:#ffffff07;font-size:11px;color:#8eb8b3}.instruction b{color:#ff7fc3}.instruction strong{color:#77ffdc}.hud{display:flex;justify-content:center;gap:10px;margin-bottom:9px}.hud span{padding:8px 12px;border:1px solid #ffffff18;border-radius:999px;color:#8fb6b1;background:#ffffff08;font-size:12px}.hud b{color:#fff;margin-left:4px}.arena{position:relative;width:min(100%,540px);aspect-ratio:1;margin:auto;display:block;border:1px solid #56ffd129;border-radius:50%;background:radial-gradient(circle,#0d3335 0 8%,#082024 8% 45%,#071316 45%);cursor:pointer;overflow:visible;color:#7da9a6}.target-zone,.wave,.core,.ghost{position:absolute;left:50%;top:50%;border-radius:50%;transform:translate(-50%,-50%)}.target-zone{width:62%;height:62%;border:16px solid #58ffd2;box-shadow:0 0 36px #58ffd244,inset 0 0 25px #58ffd222}.target-zone:before,.target-zone:after{content:"";position:absolute;inset:-4px;border-radius:50%;border:2px solid rgba(255,255,255,.55)}.target-zone:after{inset:12px;border-color:rgba(4,40,42,.9)}.target-zone i{position:absolute;left:50%;top:-36px;transform:translateX(-50%);font-style:normal;padding:5px 9px;border-radius:999px;background:#0a3a39;border:1px solid #58ffd2;color:#baffec;font-size:10px;font-weight:950;white-space:nowrap}.wave{width:20%;height:20%;border:8px solid #ff62b8;box-shadow:0 0 30px #ff62b899;transition:border-color .1s,box-shadow .1s}.wave.near{border-color:#ffe06e;box-shadow:0 0 38px #ffe06e99}.core{width:18px;height:18px;background:#fff3a0;box-shadow:0 0 26px #fff17a}.ghost{border:4px dashed #ff8e9e;pointer-events:none}.ghost.good{border-color:#fff176;box-shadow:0 0 22px #fff17688}.stop{display:block;width:min(100%,360px);margin:13px auto 0;min-height:52px;border:2px solid #ff63b7;border-radius:15px;background:linear-gradient(135deg,#4a143d,#65184d);color:white;font-size:16px;font-weight:950;cursor:pointer;box-shadow:0 10px 30px #ff63b722}.history{display:flex;justify-content:center;gap:6px;margin-top:10px;min-height:30px;flex-wrap:wrap}.history i{font-style:normal;padding:6px 9px;border-radius:9px;background:#ffffff0a;color:#a8c9c4;font-size:11px}#msg{text-align:center;color:#789b98;font-size:12px;min-height:18px}.done .pulse{font-size:110px;color:#67ffd8;text-shadow:0 0 45px #56ffd166}.done strong{font-size:40px;color:#66ffd8}.done small{margin-top:8px;color:#96b7b3}.result-feedback{margin-top:13px;padding:12px 15px;border:1px solid rgba(255,215,100,.25);border-radius:15px;background:rgba(255,213,88,.08);color:#fff0af;font-weight:900}.result-feedback.record{animation:recordPop .55s ease-out}@keyframes demoWave{0%,100%{width:62px;height:62px}50%{width:132px;height:132px}}@keyframes recordPop{0%{transform:scale(.8);opacity:0}70%{transform:scale(1.08)}100%{transform:scale(1)}}@media(max-width:560px){.game{padding:8px}.panel{padding:10px}.arena{width:min(100%,470px)}.intro h2,.done h2{font-size:30px}}

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