*{box-sizing:border-box}[hidden]{display:none!important}:root{color-scheme:dark;--bg:#171009;--ink:#fffaf3;--muted:#c5ae95;--line:rgba(255,255,255,.12);--gold:#ffca68;--orange:#ff8e4f;--blue:#6ebeff}html,body{margin:0;min-height:100%;overflow:hidden;background:var(--bg)}body{font-family:Pretendard,"Noto Sans KR",system-ui,-apple-system,"Segoe UI",sans-serif;color:var(--ink)}button{font:inherit}.game{min-height:680px;padding:16px;background:radial-gradient(circle at 50% -20%,rgba(255,166,80,.22),transparent 38%),radial-gradient(circle at 5% 25%,rgba(102,121,255,.12),transparent 28%),linear-gradient(180deg,#21150c,#120d08)}.topbar{max-width:980px;margin:0 auto 12px;display:flex;align-items:center;justify-content:space-between;gap:12px}.eyebrow{margin:0 0 2px;color:#c39d74;font-size:10px;font-weight:950;letter-spacing:.18em}h1{margin:0;font-size:clamp(21px,3vw,28px);letter-spacing:-.04em}.top-actions{display:flex;gap:7px}.mode,.sound{min-height:34px;padding:7px 10px;border-radius:999px;border:1px solid var(--line);background:rgba(255,255,255,.055);color:#f4e4d4;font-size:11px;font-weight:850}.sound{cursor:pointer}.stage{position:relative;overflow:hidden;isolation:isolate;max-width:980px;min-height:500px;margin:0 auto;padding:24px 20px 26px;border:1px solid rgba(255,202,104,.2);border-radius:30px;background:radial-gradient(circle at 50% 30%,rgba(255,151,77,.09),transparent 34%),linear-gradient(165deg,#24170e,#140f0b);box-shadow:0 24px 70px rgba(0,0,0,.34);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:13px;text-align:center;outline:none;touch-action:manipulation}.stars{position:absolute;inset:0;z-index:-1;pointer-events:none}.stars i{position:absolute;width:4px;height:4px;border-radius:50%;background:#ffd893;box-shadow:0 0 14px #ffbe66;animation:twinkle 3.8s ease-in-out infinite}.stars i:nth-child(1){left:12%;top:20%}.stars i:nth-child(2){right:14%;top:28%;animation-delay:-1.1s}.stars i:nth-child(3){left:21%;bottom:18%;animation-delay:-2.3s}.stars i:nth-child(4){right:20%;bottom:16%;animation-delay:-3.2s}.stars i:nth-child(5){left:52%;top:10%;animation-delay:-1.8s}.orbital-system{position:relative;width:180px;height:180px;display:grid;place-items:center}.orb-core{position:relative;z-index:3;width:108px;height:108px;border-radius:50%;display:grid;place-content:center;background:radial-gradient(circle at 36% 28%,#fff5df 0 5%,#ffc96b 10%,#c36a2c 48%,#3a1d0e 76%);box-shadow:0 0 0 10px rgba(255,202,104,.04),0 0 50px rgba(255,145,75,.25)}.orb-core strong{font-size:48px;line-height:.9;letter-spacing:-.08em;color:#fff9ed}.orb-core span{margin-top:5px;color:#6c3519;font-size:8px;font-weight:950;letter-spacing:.16em}.orbit-ring{position:absolute;left:50%;top:50%;border:1px solid rgba(255,218,146,.23);border-radius:50%;transform-origin:center}.ring-a{width:142px;height:142px;margin:-71px;animation:spinA 2.7s linear infinite}.ring-b{width:172px;height:96px;margin:-48px -86px;animation:spinB 4.6s linear infinite reverse}.ring-c{width:122px;height:176px;margin:-88px -61px;animation:spinC 3.5s linear infinite}.bead{position:absolute;left:50%;top:-5px;width:10px;height:10px;margin-left:-5px;border-radius:50%;background:#ffe7a5;box-shadow:0 0 9px #ffd16f,0 0 20px rgba(255,167,70,.55)}.ring-b .bead{background:#78c9ff;box-shadow:0 0 10px #65bfff,0 0 22px rgba(72,154,255,.48)}.ring-c .bead{background:#ff8bb5;box-shadow:0 0 10px #ff75a8,0 0 22px rgba(255,84,146,.42)}.copy{max-width:700px}.state{margin:0 0 5px;color:#e4ad6c;font-size:11px;font-weight:950;letter-spacing:.15em}.copy h2{margin:0;font-size:clamp(28px,4.8vw,43px);letter-spacing:-.055em;line-height:1.12;word-break:keep-all}.copy p:last-child{margin:9px auto 0;max-width:620px;color:var(--muted);font-size:13px;line-height:1.6;word-break:keep-all}.action{min-width:190px;min-height:51px;padding:10px 28px;border:0;border-radius:16px;background:linear-gradient(135deg,#ffd477,#ff995c);color:#271307;font-size:16px;font-weight:950;box-shadow:0 13px 34px rgba(255,147,80,.22);cursor:pointer}.hint{margin:-3px 0 0;color:#967d67;font-size:10px}.result{display:grid;grid-template-columns:1fr 1fr;gap:10px;width:min(510px,100%)}.result>div{padding:11px;border:1px solid rgba(255,202,104,.17);border-radius:14px;background:rgba(31,17,9,.55)}.result span{display:block;color:#b99672;font-size:10px;font-weight:850}.result strong{display:block;margin-top:4px;font-size:20px}.result p{grid-column:1/-1;margin:1px 0 0;color:#ead7c3}.summary{max-width:980px;margin:11px auto 0;display:grid;grid-template-columns:150px 175px 1fr;gap:9px}.summary article{min-height:86px;padding:14px;border:1px solid var(--line);border-radius:18px;background:rgba(20,12,7,.78)}.summary article>span,.scale-head span{color:#b18f6d;font-size:10px;font-weight:850}.summary article>strong{display:block;margin-top:8px;font-size:19px}.scale-head{display:flex;justify-content:space-between;gap:8px}.scale-head small{color:#96795e}.scale{position:relative;height:10px;margin-top:15px;border-radius:999px;background:linear-gradient(90deg,#6ebeff,#8d8f9d 50%,#ff8e4f);box-shadow:inset 0 0 0 1px rgba(255,255,255,.08)}.scale .center{position:absolute;left:50%;top:-5px;width:2px;height:20px;background:#fff7e9;opacity:.65}.scale b{position:absolute;left:50%;top:50%;width:17px;height:17px;border:3px solid #fff;border-radius:50%;background:#ffbd62;box-shadow:0 0 18px #ffb65a;transform:translate(-50%,-50%);opacity:.25;transition:left .6s cubic-bezier(.2,.8,.2,1),opacity .2s}.labels{display:flex;justify-content:space-between;margin-top:7px;color:#765f4b;font-size:9px}.state-running{cursor:pointer;border-color:rgba(255,202,104,.42)}.state-running .orb-core{background:radial-gradient(circle at 36% 28%,#696159 0 5%,#3b332b 45%,#1a1410 78%);box-shadow:0 0 0 10px rgba(255,255,255,.02),0 0 44px rgba(111,163,255,.12)}.state-running .orb-core strong{color:#cbbfb2}.state-running .orbit-ring{border-color:rgba(110,190,255,.28)}.state-running .bead{filter:saturate(.75)}.state-result .orbital-system{transform:scale(.82);margin:-14px 0}.state-result .orb-core strong{font-size:42px}@keyframes twinkle{0%,100%{opacity:.25;transform:scale(.8)}50%{opacity:.9;transform:scale(1.15)}}@keyframes spinA{to{transform:rotate(360deg)}}@keyframes spinB{to{transform:rotate(360deg)}}@keyframes spinC{to{transform:rotate(360deg)}}@media(max-width:700px){.game{padding:10px}.stage{min-height:510px;padding:21px 14px;border-radius:24px}.orbital-system{width:165px;height:165px;transform:scale(.92)}.copy h2{font-size:33px}.summary{grid-template-columns:1fr 1fr}.scale-card{grid-column:1/-1}.top-actions{gap:5px}.mode,.sound{padding:6px 8px}}@media(max-width:390px){.game{padding:8px}.stage{min-height:500px}.orbital-system{transform:scale(.83);margin:-10px 0}.copy h2{font-size:29px}.copy p:last-child{font-size:12px}.summary article{padding:11px;min-height:78px}.result strong{font-size:18px}}@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation-duration:5s!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}
}


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