*{box-sizing:border-box}[hidden]{display:none!important}:root{color-scheme:dark;--bg:#07131d;--ink:#f5fbff;--muted:#9db2c3;--line:rgba(255,255,255,.12);--blue:#73b8ff;--cyan:#68e7f4;--purple:#a98bff;--green:#65efba;--red:#ff708b}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:720px;padding:16px;background:radial-gradient(circle at 50% -15%,rgba(91,139,255,.2),transparent 37%),radial-gradient(circle at 5% 25%,rgba(101,239,186,.08),transparent 28%),linear-gradient(180deg,#0a1724,#06101a)}.topbar,.mode-card,.stage,.summary{max-width:980px;margin-left:auto;margin-right:auto}.topbar{margin-bottom:10px;display:flex;align-items:center;justify-content:space-between;gap:12px}.eyebrow{margin:0 0 2px;color:#89a7c0;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:#dce8f1;font-size:11px;font-weight:850}.sound{cursor:pointer}.mode-card{margin-bottom:10px;padding:10px 12px;border:1px solid rgba(115,184,255,.14);border-radius:16px;background:rgba(8,23,35,.78);display:flex;align-items:center;justify-content:space-between;gap:12px}.mode-card>div:first-child{display:grid}.mode-card strong{font-size:12px}.mode-card small{color:#7891a6;font-size:10px;margin-top:1px}.mode-switch{display:flex;gap:5px}.mode-switch button{border:1px solid rgba(255,255,255,.1);border-radius:999px;padding:7px 10px;background:#102433;color:#88a1b5;font-size:11px;font-weight:900;cursor:pointer}.mode-switch button.is-on{background:linear-gradient(135deg,#73b8ff,#68e7f4);color:#061621;border-color:transparent}.mode-switch button:disabled{opacity:.45;cursor:not-allowed}.stage{position:relative;overflow:hidden;min-height:505px;padding:20px 20px 22px;border:1px solid rgba(115,184,255,.2);border-radius:30px;background:radial-gradient(circle at 50% 54%,rgba(115,184,255,.07),transparent 40%),linear-gradient(160deg,#0d2030,#08131e);box-shadow:0 24px 70px rgba(0,0,0,.34);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:11px;text-align:center}.copy{max-width:690px}.state{margin:0 0 4px;color:#80c7d8;font-size:11px;font-weight:950;letter-spacing:.15em}.copy h2{margin:0;font-size:clamp(25px,4.2vw,38px);letter-spacing:-.052em;line-height:1.12;word-break:keep-all}.copy p:last-child{margin:7px auto 0;max-width:610px;color:var(--muted);font-size:12px;line-height:1.55;word-break:keep-all}.board-wrap{position:relative;width:min(350px,78vw);aspect-ratio:1}.board{width:100%;height:100%;display:grid;grid-template-columns:repeat(3,1fr);gap:9px;padding:9px;border:1px solid rgba(255,255,255,.08);border-radius:24px;background:rgba(3,9,14,.34);box-shadow:inset 0 0 35px rgba(93,166,255,.05);transition:filter .25s,transform .3s}.board.is-cleared{animation:boardClear .9s ease}.tile{position:relative;border:1px solid rgba(255,255,255,.1);border-radius:18px;background:linear-gradient(155deg,hsl(var(--h) 45% 22% / .86),hsl(var(--h) 50% 12% / .96));box-shadow:inset 0 0 20px rgba(255,255,255,.02);color:hsl(var(--h) 80% 78%);font-size:15px;font-weight:900;cursor:pointer;touch-action:manipulation;transition:transform .12s,background .12s,box-shadow .12s,border-color .12s;overflow:hidden}.tile:before{content:"";position:absolute;inset:18%;border-radius:50%;border:1px solid hsl(var(--h) 80% 70% / .18)}.tile span{position:relative;z-index:1;opacity:.48}.tile.is-lit{transform:scale(.94);background:radial-gradient(circle,hsl(var(--h) 95% 75%) 0 10%,hsl(var(--h) 86% 50%) 38%,hsl(var(--h) 50% 18%) 75%);border-color:hsl(var(--h) 95% 80% / .7);box-shadow:0 0 28px hsl(var(--h) 90% 58% / .45),inset 0 0 30px hsl(var(--h) 90% 75% / .18);color:#fff}.tile.is-lit span{opacity:1}.tile.is-wrong{animation:shake .3s ease;background:linear-gradient(155deg,#6a1d31,#2b0c15);border-color:#ff708b}.shield{position:absolute;inset:9px;display:grid;place-items:center;border-radius:18px;background:rgba(3,10,16,.18);backdrop-filter:blur(1px);pointer-events:none;opacity:0;transition:opacity .15s}.shield span{padding:8px 11px;border-radius:999px;background:rgba(4,13,20,.74);border:1px solid rgba(255,255,255,.1);color:#b8c9d5;font-size:10px;font-weight:850}.state-showing .shield{opacity:1}.clear-fx{position:absolute;inset:9px;display:grid;place-content:center;gap:2px;border-radius:18px;pointer-events:none;opacity:0;transform:scale(.7);background:radial-gradient(circle,rgba(90,255,200,.22),rgba(20,70,80,.08) 45%,transparent 70%)}.clear-fx strong{font-size:clamp(30px,7vw,52px);line-height:1;background:linear-gradient(180deg,#fff,#77ffd5);-webkit-background-clip:text;color:transparent;text-shadow:0 0 30px rgba(101,239,186,.16)}.clear-fx span{color:#d2fff1;font-size:12px;font-weight:900}.clear-fx.show{animation:clearPop 1.05s ease forwards}.round{display:flex;gap:8px;flex-wrap:wrap;justify-content:center}.round span{padding:6px 9px;border:1px solid var(--line);border-radius:999px;background:rgba(255,255,255,.04);color:#90a9ba;font-size:11px}.round strong{color:#eef8ff}.action{min-width:190px;min-height:48px;padding:9px 23px;border:0;border-radius:15px;background:linear-gradient(135deg,#73b8ff,#68e7f4);color:#071722;font-weight:950;cursor:pointer;box-shadow:0 12px 32px rgba(88,181,224,.2)}.hint{margin:-3px 0 0;color:#6e8798;font-size:10px}.summary{margin-top:10px;display:grid;grid-template-columns:150px 150px 1fr;gap:9px}.summary article{min-height:78px;padding:13px;border:1px solid var(--line);border-radius:17px;background:rgba(4,12,18,.76)}.summary article>span,.trail>div:first-child span{color:#89a3b5;font-size:10px;font-weight:850}.summary article>strong{display:block;margin-top:7px;font-size:19px}.trail>div:first-child{display:flex;justify-content:space-between}.trail small{color:#718ca0}.trail-dots{display:flex;flex-wrap:wrap;gap:5px;margin-top:11px}.trail-dots i{width:9px;height:9px;border-radius:50%;background:#183249;border:1px solid rgba(115,184,255,.13)}.trail-dots i.on{background:linear-gradient(135deg,#73b8ff,#68e7f4);box-shadow:0 0 10px rgba(104,231,244,.3)}.burst{position:absolute;inset:0;pointer-events:none}.burst i{position:absolute;width:7px;height:11px;border-radius:3px;background:hsl(var(--h) 90% 70%);animation:burst .95s ease-out forwards}@keyframes shake{25%{transform:translateX(-6px)}75%{transform:translateX(6px)}}@keyframes burst{to{transform:translate(var(--x),var(--y)) rotate(var(--r));opacity:0}}@keyframes boardClear{0%{transform:scale(1)}28%{transform:scale(.97);filter:brightness(1.7)}60%{transform:scale(1.025);filter:brightness(1.25)}100%{transform:scale(1);filter:none}}@keyframes clearPop{0%{opacity:0;transform:scale(.55)}22%,62%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(1.12)}}@media(max-width:700px){.game{padding:10px}.mode-card{align-items:flex-start;flex-direction:column}.stage{min-height:520px;padding:18px 12px;border-radius:24px}.copy h2{font-size:30px}.board-wrap{width:min(330px,86vw)}.board{gap:7px;padding:7px}.tile{border-radius:15px}.summary{grid-template-columns:1fr 1fr}.trail{grid-column:1/-1}.top-actions{gap:5px}.mode,.sound{padding:6px 8px}}@media(max-width:390px){.game{padding:8px}.stage{min-height:500px}.copy h2{font-size:27px}.copy p:last-child{font-size:11px}.board-wrap{width:min(300px,88vw)}.summary article{padding:11px;min-height:72px}.mode-switch{width:100%}.mode-switch button{flex:1}}@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation-duration:.001ms!important;animation-iteration-count:1!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}
}

/* v0.10.0 sequence fullscreen fit */
@media(max-width:700px){
 html.host-fullscreen .mode-card{margin:2px auto 4px!important;padding:6px 8px!important;min-height:34px!important;flex-direction:row!important;align-items:center!important}
 html.host-fullscreen .mode-card small{display:none!important}
 html.host-fullscreen .mode-switch{margin-left:auto!important;gap:3px!important}.host-fullscreen .mode-switch button{padding:5px 7px!important;font-size:9px!important}
 html.host-fullscreen .stage{min-height:0!important;height:auto!important;padding:6px!important;gap:4px!important;justify-content:flex-start!important;border-radius:16px!important}
 html.host-fullscreen .copy .state{margin:0!important;font-size:9px!important}html.host-fullscreen .copy h2{font-size:18px!important;margin:1px 0 2px!important}html.host-fullscreen .copy p:last-child{display:none!important}
 html.host-fullscreen .board-wrap{width:min(48dvh,82vw,320px)!important;max-width:320px!important}
 html.host-fullscreen .board{gap:5px!important;padding:5px!important}html.host-fullscreen .tile{border-radius:12px!important}
 html.host-fullscreen .round{gap:4px!important}html.host-fullscreen .round span{padding:4px 6px!important;font-size:9px!important}
 html.host-fullscreen .action{min-height:40px!important;min-width:170px!important;padding:7px 16px!important}html.host-fullscreen .hint{display:none!important}
}
@media(max-width:700px) and (max-height:650px){html.host-fullscreen .board-wrap{width:min(42dvh,76vw,270px)!important}}
