:root{color-scheme:dark;--background:#0d0b18;--panel:#181426;--line:#2a233a;--text:#f8f5ff;--muted:#aaa1be;--accent:#b896ff;--bright:#7844e9;font-family:"Pretendard","Noto Sans KR","Apple SD Gothic Neo",system-ui,sans-serif;background:var(--background);color:var(--text);font-synthesis:none}
*,*::before,*::after{box-sizing:border-box}
body{margin:0;min-height:100vh;background:radial-gradient(ellipse at 50% 0%,#171126 0%,var(--background) 55%)}
a{color:inherit;text-decoration:none}
button{font:inherit;color:inherit;cursor:pointer}
button,a{-webkit-tap-highlight-color:transparent;touch-action:manipulation}
button:focus-visible,a:focus-visible,canvas:focus-visible{outline:2px solid #dec9ff;outline-offset:3px}
button:active,.primary:active,.card-play:active{transform:scale(.96)}
h1,h2,h3,p{margin:0}
.icon{width:22px;height:22px;flex:none}
.shell{width:min(1120px,calc(100% - 48px));margin-inline:auto}
.topbar{background:#100d1b;border-bottom:1px solid #252034}
.topbar-inner{height:76px;display:flex;align-items:center;justify-content:space-between}
.brand,.top-actions,.balance{display:flex;align-items:center}
.brand{gap:10px;font-size:22px;font-weight:950;letter-spacing:-.07em;line-height:1}
.brand img{width:43px;height:43px;border-radius:13px}
.brand-accent{color:#af86fb;margin-left:3px}
.brand small{display:block;margin-top:5px;color:#9c90b1;font:700 9px/1 system-ui;letter-spacing:.17em}
.top-actions{gap:10px}
.balance{gap:8px;border:1px solid var(--line);background:#1a1529;padding:8px 13px;border-radius:99px;min-height:40px;font-variant-numeric:tabular-nums}
.coin{display:inline-grid;place-items:center;border-radius:50%;width:20px;height:20px;background:#ffc768;color:#5d360e;font-size:13px;box-shadow:inset 0 0 0 2px #ffe59f}
.icon-button{display:grid;place-items:center;background:#1a1529;border:1px solid var(--line);border-radius:12px;width:42px;height:42px;color:#c9bddb;transition:background .18s,transform .18s,color .18s}
.icon-button:hover{background:#30224a;color:white}
main.shell{padding:28px 0 calc(112px + env(safe-area-inset-bottom));animation:appear .32s ease both}
.hero{min-height:386px;position:relative;overflow:hidden;isolation:isolate;border-radius:25px;border:1px solid #483265;background:#201337 url('./assets/hero.webp') right 34% / 77% auto no-repeat;display:flex;align-items:center}
.hero::before{content:"";position:absolute;inset:0;z-index:-1;background:linear-gradient(90deg,#24163e 0%,#24163e 20%,#24163eed 30%,#2516427a 47%,transparent 70%)}
.hero-content{padding:35px 52px}
.hero-label{display:inline-flex;align-items:center;gap:7px;padding:7px 11px;border-radius:30px;border:1px solid #69518e;background:#422966b8;color:#eadbff;font-size:12px;font-weight:750}
.hero-label .icon{width:14px;height:14px;color:#d4abff}
.hero h1{font-size:clamp(50px,6.1vw,82px);font-weight:950;line-height:.99;letter-spacing:-.09em;margin:17px 0}
.hero h1 em{font-style:normal;color:#c39aff}
.hero p{color:#ded3ed;font-size:15px;line-height:1.65;margin-bottom:21px;letter-spacing:-.02em}
.primary,.secondary{display:inline-flex;align-items:center;justify-content:center;gap:8px;border:1px solid #a680fa;border-radius:11px;padding:11px 17px;min-height:44px;font-weight:800;font-size:14px;background:linear-gradient(115deg,#8d55f5,#6838d9);color:white;transition:filter .2s,transform .18s}
.primary:hover,.secondary:hover{filter:brightness(1.18)}
.primary .icon,.secondary .icon{width:18px;height:18px}
.secondary{background:#2a2140;border-color:#4c396e}
.section{margin-top:33px}
.section-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:14px}
.section-heading h2{display:flex;align-items:center;gap:9px;font-size:23px;letter-spacing:-.06em}
.section-heading h2 span{display:grid;place-items:center;width:33px;height:33px;border-radius:10px;background:#231838;color:#bc97fb;border:1px solid #35254e}
.section-heading h2 .icon{width:18px;height:18px}
.text-link{display:inline-flex;align-items:center;gap:4px;color:#c0addd;font-weight:700;font-size:13px;min-height:36px}
.text-link .icon{width:16px;height:16px}
.text-link:hover{color:#fff}
.filters{display:flex;flex-wrap:wrap;gap:7px;margin-bottom:14px}
.filter{background:#171322;border:1px solid #2d253e;border-radius:9px;min-height:36px;padding:6px 13px;color:#bcb2ce;font-size:13px;font-weight:650;transition:background .18s}
.filter.active,.filter:hover{color:#e5d4ff;border-color:#6948a0;background:#33224f}
.game-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;animation:appear .25s ease both}
.game-card{border:1px solid #2d253e;background:#181425;border-radius:16px;overflow:hidden;min-width:0;transition:border-color .2s}
.game-card:hover{border-color:#62498d}
.card-art{height:147px;position:relative;isolation:isolate;background-position:center;background-size:cover}
.card-art.rabbit{background-image:linear-gradient(0deg,#16122357,transparent 60%),url('./assets/hero.webp');background-position:70% 54%}
.card-art.orbit{background-image:url('./assets/orbit.webp')}
.card-art.stack{background-image:url('./assets/stack.webp')}
.status{position:absolute;left:11px;top:11px;display:inline-flex;align-items:center;gap:6px;border-radius:20px;background:#161325ed;border:1px solid #75618a;padding:5px 8px;font-size:11px;color:#e0d4ee;font-weight:750}
.status i{width:6px;height:6px;border-radius:50%;background:#c0a3e6}
.status.live{color:#b7f5de;border-color:#3a776f}
.status.live i{background:#7eebbe}
.favorite{position:absolute;right:9px;top:8px;background:#191325de}
.favorite.selected{color:#f0a4d3}
.favorite.selected .icon{fill:#f0a4d3}
.card-body{min-height:99px;display:flex;justify-content:space-between;align-items:center;gap:10px;padding:12px 13px 14px}
.genre{color:#c2a0f7;font-size:11px;font-weight:750}
.card-body h3{font-size:18px;letter-spacing:-.045em;margin:3px 0 4px}
.card-body p,.empty p{font-size:12px;color:var(--muted);line-height:1.5;word-break:keep-all}
.card-play{display:grid;place-items:center;width:40px;height:40px;flex:none;border-radius:11px;background:#342153;color:#d7bcff;border:1px solid #5b3c89;transition:background .18s,transform .18s}
.card-play:hover{background:#543582}
.empty{border:1px dashed #392e4d;border-radius:15px;background:#151123;min-height:77px;padding:16px;display:flex;align-items:center;gap:13px;color:#d7cbe7;font-size:14px}
.empty a{text-decoration:underline}
.empty-icon{display:grid;place-items:center;background:#28203c;color:#c0a0f3;border-radius:11px;width:40px;height:40px;flex:none}
.empty p{margin-top:4px}
.bottom-nav{position:fixed;z-index:5;bottom:0;inset-inline:0;padding:7px 12px calc(7px + env(safe-area-inset-bottom));border-top:1px solid #302540;background:#120e20f5;backdrop-filter:blur(14px)}
.nav-inner{width:min(520px,100%);margin:auto;display:grid;grid-template-columns:repeat(4,1fr);gap:5px}
.nav-inner a{min-height:49px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;border-radius:10px;color:#aa9dbf;font-size:11px;font-weight:750;transition:background .18s,color .18s}
.nav-inner a[aria-current],.nav-inner a:hover{color:#e1cbff;background:#30204b}
.nav-inner .icon{width:20px;height:20px}
.page-heading,.play-heading{margin-bottom:23px}
.page-heading h1,.play-heading h1{font-size:clamp(27px,5vw,40px);letter-spacing:-.065em}
.page-heading p{color:var(--muted);margin-top:5px;font-size:14px}
.profile{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.profile>div,.records li{padding:16px;border:1px solid var(--line);border-radius:14px;background:var(--panel)}
.profile>div>span{display:block;color:var(--muted);font-size:13px;margin-bottom:7px}
.profile strong{font-size:23px;display:flex;align-items:center;gap:8px}
.records{padding:0;list-style:none}
.records li{display:flex;justify-content:space-between;gap:10px;margin-bottom:8px}
.records strong{color:#d9bbff}
.install{margin-top:19px}
.toast{position:fixed;z-index:6;left:50%;bottom:calc(80px + env(safe-area-inset-bottom));transform:translateX(-50%);border-radius:10px;background:#352452;border:1px solid #6a4e93;padding:10px 14px;width:max-content;max-width:calc(100% - 30px);font-size:13px}
.toast:empty{display:none}
.runner{max-width:820px;margin:auto}
.runner-toolbar{display:flex;align-items:center;gap:8px;margin-bottom:10px}
.hud{display:flex;flex-wrap:wrap;gap:5px 13px;flex:1;color:#d9caec;font-size:13px;font-variant-numeric:tabular-nums}
.hud strong{color:#fff}
.hud [data-coins]{color:#ffd173}
.stage{position:relative;background:#181027;border:1px solid #544075;border-radius:18px;overflow:hidden}
.stage canvas{width:100%;display:block;touch-action:none;aspect-ratio: 2 / 1}
.stage-overlay{position:absolute;inset:0;background:#0d0921be;display:grid;place-items:center;text-align:center;padding:12px}
.stage-overlay[hidden]{display:none}
.stage-panel{max-width:96%;padding:18px 25px;background:#211637e8;border:1px solid #624983;border-radius:16px}
.stage-panel h2{font-size:clamp(22px,5vw,34px);letter-spacing:-.06em;margin-bottom:5px}
.stage-panel p,.game-help{color:#d6c9e9;font-size:13px;line-height:1.55}
.stage-actions{display:flex;flex-wrap:wrap;justify-content:center;gap:6px;margin-top:12px}
.game-help{margin-top:11px;color:var(--muted);word-break:keep-all}
.hero,.page-heading,.play-heading{animation:appear .3s ease both}
@keyframes appear{from{opacity:0;transform:translateY(4px)}to{opacity:1;transform:translateY(0)}}
@media(max-width:720px){
 .shell{width:calc(100% - 28px)}
 .topbar-inner{height:63px}
 .brand img{width:37px;height:37px}
 .brand{font-size:20px}
 main.shell{padding-top:16px}
 .hero{min-height:415px;align-items:flex-end;border-radius:20px;background-size:auto 93%;background-position:80% -28px}
 .hero::before{background:linear-gradient(0deg,#211438 8%,#211438ed 29%,#21143826 65%,transparent 90%)}
 .hero-content{padding:23px}
 .hero h1{font-size:46px;margin:9px 0}
 .hero h1 br{display:none}
 .hero h1 em{margin-left:.13em}
 .hero p{font-size:13px;margin-bottom:13px}
 .game-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
 .card-art{height:113px}
 .card-body{padding:9px;align-items:flex-start;min-height:101px}
 .card-body h3{font-size:15px}
 .card-body p{font-size:11px}
 .card-play{width:36px;height:36px;align-self:center}
 .section{margin-top:24px}
 .section-heading h2{font-size:20px}
 .stage canvas{aspect-ratio: 1.1 / 1}
 .stage-panel{padding:13px 10px}
}
@media(max-width:375px){.hero h1{font-size:39px}.hero-content{padding:18px}.card-body{gap:4px}.card-play{width:33px;height:38px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important}}
.icon-button:disabled{cursor:default;opacity:.45}
