*{box-sizing:border-box}[hidden]{display:none!important}:root{color-scheme:dark;--ink:#f9fbff;--muted:#8c9ab0;--line:rgba(255,255,255,.1)}html,body{margin:0;min-height:100%;overflow:hidden;background:#07070c}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 0 0,rgba(255,62,104,.12),transparent 30%),radial-gradient(circle at 100% 5%,rgba(75,218,255,.12),transparent 32%),linear-gradient(180deg,#0d0d15,#050508)}.topbar,.stage{max-width:960px;margin:auto}.topbar{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:12px}.eyebrow{margin:0 0 2px;color:#888ba4;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:#ececf5;font-size:11px;font-weight:850}.stage{position:relative;overflow:hidden;min-height:620px;padding:20px;border:1px solid rgba(255,255,255,.09);border-radius:30px;background:linear-gradient(160deg,rgba(18,18,30,.98),rgba(7,7,12,.98));box-shadow:0 25px 70px rgba(0,0,0,.36)}.scan{position:absolute;left:-20%;right:-20%;height:120px;top:-130px;background:linear-gradient(180deg,transparent,rgba(255,255,255,.025),transparent);animation:scan 5s linear infinite;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:#818ba1;font-size:10px;font-weight:850}.hud strong{color:#fff;font-size:13px}.intro,.result{position:relative;z-index:2;min-height:510px;display:grid;place-content:center;justify-items:center;text-align:center}.color-orb{position:relative;width:160px;height:160px;margin-bottom:25px;border-radius:50%;background:conic-gradient(#ff4d6d,#ffd84b,#56e08f,#4bcfff,#9d74ff,#ff4d6d);filter:saturate(1.1);box-shadow:0 0 70px rgba(255,255,255,.08);animation:rotate 8s linear infinite}.color-orb:after{content:"";position:absolute;inset:22px;border-radius:50%;background:#0c0c14;box-shadow:inset 0 0 35px rgba(255,255,255,.04)}.color-orb i{position:absolute;z-index:2;width:13px;height:13px;border-radius:50%;background:#fff;box-shadow:0 0 14px currentColor}.color-orb i:nth-child(1){left:22px;top:37px;color:#ff5573}.color-orb i:nth-child(2){right:19px;top:60px;color:#50dfff}.color-orb i:nth-child(3){left:73px;bottom:15px;color:#67ea9c}.color-orb i:nth-child(4){left:72px;top:73px;color:#a380ff}.state{margin:0 0 7px;color:#a6a9bd;font-size:10px;font-weight:950;letter-spacing:.16em}.intro h2,.result h2{margin:0;font-size:clamp(31px,5vw,47px);letter-spacing:-.05em}.intro>p:not(.state){max-width:590px;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,#ff5575,#8a78ff,#4fdcff);color:#09090e;font-weight:950;cursor:pointer;box-shadow:0 14px 38px rgba(150,92,255,.2)}.play{position:relative;z-index:2;min-height:500px;padding-top:40px;display:grid;align-content:center;justify-items:center;text-align:center}.word{min-height:110px;display:grid;place-items:center;font-size:clamp(62px,12vw,112px);font-weight:1000;letter-spacing:-.06em;text-shadow:0 8px 35px currentColor;transition:transform .14s}.word.pop{animation:pop .18s}.choices{width:min(680px,100%);display:grid;grid-template-columns:repeat(4,1fr);gap:9px;margin-top:20px}.choices button{min-height:64px;border:1px solid rgba(255,255,255,.1);border-radius:16px;background:#151520;color:#fff;font-weight:900;cursor:pointer;transition:.13s}.choices button:hover{transform:translateY(-2px);border-color:rgba(255,255,255,.26)}.choices button:active{transform:scale(.97)}.feedback{height:28px;margin-top:12px;color:#8c95a8;font-size:12px}.feedback.good{color:#6ee9a5}.feedback.bad{color:#ff748e}.meter{width:min(680px,100%);height:5px;border-radius:999px;background:rgba(255,255,255,.07);overflow:hidden}.meter i{display:block;width:0;height:100%;background:linear-gradient(90deg,#ff4f72,#ffdb50,#58e19b,#55dfff,#a076ff)}.result h2 strong{font-size:clamp(70px,13vw,115px);background:linear-gradient(90deg,#ff6681,#ffd85c,#64e8a6,#62e6ff,#aa88ff);-webkit-background-clip:text;color:transparent}.result h2 small{font-size:16px;color:#878ea0}.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,.035)}.result-grid small{display:block;color:#7e8596;font-size:10px}.result-grid b{display:block;margin-top:3px;font-size:17px}.flash{position:absolute;inset:0;pointer-events:none}.flash.good{animation:goodFlash .25s}.flash.bad{animation:badFlash .25s}@keyframes scan{to{transform:translateY(780px)}}@keyframes rotate{to{transform:rotate(360deg)}}@keyframes pop{50%{transform:scale(1.08)}}@keyframes goodFlash{50%{background:rgba(80,240,160,.08)}}@keyframes badFlash{50%{background:rgba(255,70,95,.1)}}@media(max-width:650px){.game{padding:9px}.stage{min-height:650px;padding:14px;border-radius:24px}.choices{grid-template-columns:1fr 1fr}.word{font-size:72px}.result-grid{grid-template-columns:1fr}.hud{grid-template-columns:1fr 1fr}.hud span:last-child{grid-column:1/-1}}@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}
}
