*{box-sizing:border-box}[hidden]{display:none!important}:root{color-scheme:dark;--pink:#ff5d9e;--violet:#8b64ff;--ink:#fff6fb}html,body{margin:0;min-height:100%;overflow:hidden;background:#130915}body{font-family:Pretendard,"Noto Sans KR",system-ui,sans-serif;color:var(--ink)}button{font:inherit}.game{min-height:680px;padding:14px;background:radial-gradient(circle at 20% 0,rgba(255,75,145,.2),transparent 31%),radial-gradient(circle at 88% 12%,rgba(111,92,255,.24),transparent 34%),linear-gradient(180deg,#190a1d,#0b0711)}.top,.intro,.stage,.done{max-width:960px;margin:0 auto}.top{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:10px}.eyebrow{margin:0;color:#ff96bf;font-size:10px;font-weight:950;letter-spacing:.18em}h1{margin:2px 0 0;font-size:clamp(22px,3vw,29px)}.top-actions{display:flex;gap:7px;align-items:center}.top-actions>*{border:1px solid rgba(255,255,255,.12);border-radius:999px;background:rgba(255,255,255,.055);color:#f5dcea;padding:7px 10px;font-size:11px;font-weight:850}.intro,.done{min-height:560px;border:1px solid rgba(255,100,160,.2);border-radius:26px;background:radial-gradient(circle at center,rgba(255,65,135,.14),transparent 38%),rgba(17,7,22,.76);display:grid;place-content:center;justify-items:center;text-align:center;padding:30px}.hero-heart,.done-heart{position:relative;width:128px;height:128px;display:grid;place-items:center;color:#ff4e8f;font-size:112px;line-height:1;filter:drop-shadow(0 0 26px rgba(255,61,135,.4));animation:pulse 1.7s ease-in-out infinite}.hero-heart i{position:absolute;font-style:normal;color:white;font-size:31px;font-weight:950;top:47px}.intro>span,.done>span{color:#ff8bb7;font-size:11px;font-weight:950;letter-spacing:.15em}.intro h2,.done h2{margin:7px 0 8px;font-size:clamp(30px,5vw,48px);letter-spacing:-.045em}.intro p,.done p{max-width:680px;margin:0;color:#b7a8ba;line-height:1.7}.rules{display:flex;gap:8px;flex-wrap:wrap;justify-content:center;margin:18px 0}.rules b{padding:8px 11px;border:1px solid rgba(255,255,255,.1);border-radius:999px;background:rgba(255,255,255,.045);font-size:11px;color:#eacfe0}.primary{border:0;border-radius:15px;padding:13px 26px;background:linear-gradient(135deg,#ff4f90,#a865ff);color:white;font-weight:950;cursor:pointer;box-shadow:0 12px 28px rgba(255,63,137,.24)}.stage{border:1px solid rgba(255,98,157,.18);border-radius:26px;padding:13px;background:linear-gradient(160deg,rgba(34,12,39,.94),rgba(11,8,20,.97))}.hud{display:grid;grid-template-columns:repeat(4,1fr);gap:7px;margin-bottom:10px}.hud>div{padding:9px 11px;border:1px solid rgba(255,255,255,.08);border-radius:13px;background:rgba(255,255,255,.035)}.hud span{display:block;color:#9d8fa3;font-size:9px;font-weight:850}.hud strong{font-size:19px}.board-wrap{position:relative;width:min(100%,720px);margin:auto;touch-action:none;user-select:none}.board{display:grid;grid-template-columns:repeat(8,1fr);gap:5px;padding:9px;border:1px solid rgba(255,116,171,.17);border-radius:20px;background:rgba(6,5,13,.62)}.heart{position:relative;aspect-ratio:1;border:0;border-radius:13px;background:linear-gradient(145deg,rgba(255,76,139,.16),rgba(130,70,196,.12));display:grid;place-items:center;color:white;cursor:crosshair;transition:transform .16s,filter .16s,opacity .18s}.heart.empty{background:rgba(255,255,255,.018);border:1px dashed rgba(255,255,255,.045);cursor:default}.heart:not(.empty)::before{content:"♥";position:absolute;font-size:clamp(27px,5vw,49px);color:hsl(var(--h) 86% 62%);filter:drop-shadow(0 0 9px hsl(var(--h) 80% 45% / .45));opacity:.92}.heart b{position:relative;z-index:2;font-size:clamp(13px,2.5vw,21px);text-shadow:0 1px 5px #240814}.heart.is-selected:not(.empty){transform:scale(.91);filter:brightness(1.55);box-shadow:inset 0 0 0 2px #fff,0 0 18px rgba(255,82,146,.42)}.heart.pop{animation:pop .34s ease forwards}.selection{position:absolute;border:2px solid #fff2a2;border-radius:15px;background:rgba(255,238,154,.08);box-shadow:0 0 20px rgba(255,232,122,.24);pointer-events:none}.burst-layer{position:absolute;inset:0;pointer-events:none;overflow:hidden}.burst{position:absolute;color:#ff81b3;font-size:18px;animation:burst .7s ease-out forwards}.message{text-align:center;margin:10px 0 8px;color:#aa99ad;font-size:11px;min-height:18px}.progress{height:5px;border-radius:99px;background:#251325;overflow:hidden}.progress i{display:block;width:0;height:100%;background:linear-gradient(90deg,#ff4b8e,#ffd26f);transition:width .22s}.done-heart{font-size:118px}.done h2 b{color:#ff70a8}.done .primary{margin-top:18px}.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;box-shadow:0 0 35px rgba(255,211,80,.16)}@keyframes pulse{50%{transform:scale(1.06);filter:drop-shadow(0 0 38px rgba(255,61,135,.58))}}@keyframes pop{60%{transform:scale(1.22) rotate(5deg);opacity:1}100%{transform:scale(.15);opacity:0}}@keyframes burst{to{transform:translate(var(--x),var(--y)) rotate(var(--r));opacity:0}}@keyframes recordPop{0%{transform:scale(.8);opacity:0}70%{transform:scale(1.08)}100%{transform:scale(1)}}@media(max-width:620px){.game{padding:8px;min-height:720px}.hud{grid-template-columns:repeat(2,1fr)}.board{gap:3px;padding:5px;border-radius:15px}.heart{border-radius:9px}.intro,.done{padding:22px;min-height:590px}}

/* 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){.hero-heart{width:90px!important;height:90px!important;font-size:80px!important}.hero-heart i{font-size:22px!important;top:34px!important}.rules{margin:8px 0!important;gap:4px!important}.rules b{padding:5px 7px!important;font-size:9px!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}
}
