*{box-sizing:border-box}[hidden]{display:none!important}:root{color-scheme:dark;--bg:#06101d;--ink:#eef8ff;--muted:#88a2bc;--line:rgba(255,255,255,.1);--cyan:#58e6ff;--blue:#6687ff;--green:#66f2b1;--red:#ff6f8a}html,body{margin:0;min-height:100%;overflow:hidden;background:var(--bg)}body{font-family:Pretendard,"Noto Sans KR",system-ui,-apple-system,sans-serif;color:var(--ink)}button,textarea{font:inherit}.game{min-height:720px;padding:16px;background:radial-gradient(circle at 12% 0,rgba(88,230,255,.15),transparent 35%),radial-gradient(circle at 90% 15%,rgba(102,135,255,.16),transparent 30%),linear-gradient(180deg,#081421,#030913)}.topbar,.stage{max-width:1020px;margin-left:auto;margin-right:auto}.topbar{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:12px}.eyebrow{margin:0 0 2px;color:#72a4c1;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:#dcebf7;font-size:11px;font-weight:850}.stage{position:relative;overflow:hidden;min-height:620px;padding:22px;border:1px solid rgba(88,230,255,.16);border-radius:30px;background:linear-gradient(160deg,rgba(11,31,48,.98),rgba(5,11,20,.98));box-shadow:0 26px 75px rgba(0,0,0,.34)}.aurora{position:absolute;inset:-35%;background:conic-gradient(from 90deg,transparent,rgba(88,230,255,.08),transparent,rgba(102,135,255,.1),transparent);animation:spin 17s linear infinite;pointer-events:none}.hud{position:relative;z-index:2;display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-bottom:22px}.hud span{padding:9px 11px;border:1px solid var(--line);border-radius:12px;background:rgba(255,255,255,.035);color:#7f99b2;font-size:10px;font-weight:800;text-align:center}.hud strong{color:#e7f8ff;font-size:13px}.intro,.result{position:relative;z-index:2;min-height:500px;display:grid;place-content:center;justify-items:center;text-align:center}.keyboard-art{display:grid;grid-template-columns:repeat(3,42px);gap:8px;transform:perspective(500px) rotateX(55deg) rotateZ(-8deg);margin-bottom:30px}.keyboard-art i{width:42px;height:42px;border:1px solid rgba(88,230,255,.25);border-radius:9px;background:linear-gradient(145deg,#14314b,#091b2b);box-shadow:0 8px 18px rgba(0,0,0,.3),inset 0 0 14px rgba(88,230,255,.08);animation:keyGlow 2.4s ease-in-out infinite}.keyboard-art i:nth-child(2n){animation-delay:-.8s}.keyboard-art i:nth-child(3n){animation-delay:-1.5s}.state{margin:0 0 7px;color:#63e7ff;font-size:10px;font-weight:950;letter-spacing:.16em}.intro h2,.result h2{margin:0;font-size:clamp(31px,5vw,48px);letter-spacing:-.05em}.intro>p:not(.state){max-width:620px;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,#5cecff,#6a80ff);color:#06101b;font-weight:950;cursor:pointer;box-shadow:0 15px 38px rgba(83,182,255,.2)}.play{position:relative;z-index:2}.passage{min-height:188px;padding:20px;border:1px solid rgba(88,230,255,.12);border-radius:18px;background:rgba(2,9,16,.5);font-size:clamp(17px,2.6vw,22px);line-height:1.9;letter-spacing:.01em;word-break:keep-all}.passage span{color:#6d8197}.passage span.ok{color:#dffcff;text-shadow:0 0 14px rgba(88,230,255,.24)}.passage span.bad{color:#ff718b;background:rgba(255,80,110,.08);text-decoration:underline;text-decoration-color:#ff718b}.passage span.cursor{border-left:2px solid #6af2ff}.progress{height:4px;margin:12px 4px 18px;border-radius:999px;background:rgba(255,255,255,.07);overflow:hidden}.progress i{display:block;width:0;height:100%;background:linear-gradient(90deg,#5fe9ff,#7b78ff);transition:width .1s linear}textarea{width:100%;min-height:160px;resize:none;padding:16px;border:1px solid rgba(104,144,255,.22);border-radius:17px;outline:0;background:#07111d;color:#ecf8ff;caret-color:#61efff;font-size:17px;line-height:1.65;box-shadow:inset 0 0 22px rgba(0,0,0,.16)}textarea:focus{border-color:#55dff6;box-shadow:0 0 0 3px rgba(85,223,246,.09),inset 0 0 22px rgba(0,0,0,.16)}.typing-note{display:flex;justify-content:space-between;gap:14px;margin-top:9px;color:#71889f;font-size:11px}.result h2 strong{font-size:clamp(62px,12vw,100px);color:#71efff}.result h2 small{font-size:16px;color:#849bb1}.result-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:9px;width:min(540px,100%);margin:22px 0}.result-grid span{padding:13px;border:1px solid var(--line);border-radius:14px;background:rgba(255,255,255,.04)}.result-grid small{display:block;color:#6f879d;font-size:10px}.result-grid b{display:block;margin-top:3px;color:#edf9ff;font-size:17px}.key-bursts{position:absolute;inset:0;pointer-events:none;overflow:hidden}.key-bursts i{position:absolute;width:7px;height:7px;border-radius:2px;background:#61efff;box-shadow:0 0 14px currentColor;animation:burst .65s ease-out forwards}.sr-only{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}@keyframes spin{to{transform:rotate(360deg)}}@keyframes keyGlow{50%{border-color:rgba(88,230,255,.65);box-shadow:0 8px 18px rgba(0,0,0,.3),inset 0 0 22px rgba(88,230,255,.18)}}@keyframes burst{to{transform:translate(var(--x),var(--y)) rotate(250deg);opacity:0}}@media(max-width:650px){.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}.passage{min-height:200px;padding:15px;font-size:16px}.result-grid{grid-template-columns:1fr}.typing-note{flex-direction:column;gap:3px}}@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}.typing-note{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}
}
