:root { --c: #4D96FF; --c2: #FFD93D; --bg: #152238; --ink: #14203d; --mut: #5d6a8a; --sat: env(safe-area-inset-top, 0px); }
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; overflow: hidden; background: var(--bg); font-family: "Be Vietnam Pro", system-ui, sans-serif; color: var(--ink); overscroll-behavior: none; }
canvas#c { position: fixed; inset: 0; touch-action: none; display: block; }
#menu { position: fixed; inset: 0; z-index: 20; display: none; overflow-y: auto; -webkit-overflow-scrolling: touch; }
#menu.on { display: block; }
button { font: inherit; cursor: pointer; color: inherit; }
button:disabled { cursor: default; }
.home { min-height: 100%; display: flex; flex-direction: column; align-items: center; padding: calc(var(--sat) + 66px) 16px 24px; max-width: 520px; margin: 0 auto; }
.logo { text-align: center; color: #fff; text-shadow: 0 3px 16px rgba(10,20,60,.55); }
.logo h1 { margin: 0; font-size: clamp(42px, 12vw, 60px); font-weight: 900; letter-spacing: -1px; line-height: 1; }
.logo p { margin: 6px 0 0; font-weight: 800; font-size: 15px; }
.spacer { height: max(230px, calc(46vh - 120px)); width: 100%; display: flex; align-items: flex-end; justify-content: center; cursor: pointer; }
.spacer .hint { margin-bottom: -6px; background: rgba(255,255,255,.85); border-radius: 999px; padding: 5px 14px; font-size: 13px; font-weight: 800; color: var(--mut); }
.sheet { width: 100%; margin-top: 16px; background: rgba(255,255,255,.94); border-radius: 26px; padding: 14px; box-shadow: 0 -6px 30px rgba(10,20,60,.25); display: flex; flex-direction: column; gap: 8px; }
.btn { display: block; width: 100%; min-height: 52px; border: 0; border-radius: 18px; background: #fff; font-weight: 800; font-size: 17px; margin: 6px 0; box-shadow: 0 6px 18px rgba(0,0,0,.14); }
.btn.main { background: linear-gradient(180deg, #ffd93d, #ff8a3d); color: #fff; text-shadow: 0 1px 2px rgba(120,50,0,.35); }
.btn.big { min-height: 78px; font-size: 26px; font-weight: 900; }
.btn small { display: block; font-size: 14px; font-weight: 700; opacity: .95; }
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tile { border: 0; border-radius: 20px; background: #f1f6ff; padding: 12px; text-align: left; min-height: 104px; box-shadow: 0 3px 10px rgba(20,40,90,.08); display: flex; flex-direction: column; gap: 2px; }
.tile i { font-style: normal; font-size: 26px; }
.tile b { font-size: 17px; }
.tile small { color: var(--mut); font-weight: 700; font-size: 12.5px; line-height: 1.3; }
.tile.hot { background: linear-gradient(180deg, #fff6d6, #ffe7a8); }
.link { border: 0; background: #f1f6ff; border-radius: 14px; min-height: 48px; padding: 10px 16px; font-weight: 800; width: 100%; }
.panel { background: #fff; border-radius: 22px; padding: 20px; max-width: 520px; margin: calc(var(--sat) + 70px) auto 24px; width: calc(100% - 32px); }
.panel h2 { margin: 0 0 8px; }
.panel h3 { margin: 18px 0 8px; font-size: 16px; }
.panel p, .panel li { color: var(--mut); font-weight: 600; line-height: 1.5; }
.panel li b { color: var(--ink); }
.chang { display: flex; flex-direction: column; gap: 8px; margin: 12px 0; }
.ch { display: flex; align-items: center; gap: 12px; border: 0; border-radius: 18px; background: #f1f6ff; padding: 10px 12px; text-align: left; min-height: 64px; }
.ch.cur { background: linear-gradient(180deg, #fff6d6, #ffe7a8); box-shadow: 0 0 0 3px #ffb627 inset; }
.ch.lock { opacity: .5; }
.ch .n { width: 44px; height: 44px; border-radius: 14px; background: #fff; display: grid; place-items: center; font-weight: 900; font-size: 22px; flex: none; }
.ch .t { flex: 1; display: flex; flex-direction: column; }
.ch .t b { font-size: 16px; }
.ch .t small { color: var(--mut); font-weight: 700; font-size: 13px; }
.ch .s i, .stars i { font-style: normal; color: #d4dbea; font-size: 18px; }
.ch .s i.on { color: #ffb627; }
.album { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 12px 0; }
.st { background: #f1f6ff; border-radius: 18px; padding: 10px 6px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 2px; }
.st i { font-style: normal; font-size: 40px; width: 64px; height: 64px; display: grid; place-items: center; border-radius: 50%; background: #e3e9f5; color: #b0bbd3; font-weight: 900; }
.st.has i { background: radial-gradient(circle at 35% 30%, #fff, #ffe7a8); box-shadow: 0 4px 12px rgba(255,170,40,.35); }
.st b { font-size: 13px; }
.st small { font-size: 11px; color: var(--mut); font-weight: 700; line-height: 1.25; }
.gate { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 10px 0; }
.gate .btn { font-size: 24px; font-weight: 900; background: #f1f6ff; }
.kpi { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 10px 0; }
.kpi div { background: #f1f6ff; border-radius: 16px; padding: 10px; text-align: center; }
.kpi b { display: block; font-size: 24px; }
.kpi span { font-size: 12px; color: var(--mut); font-weight: 700; }
.sk .row { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 10px; align-items: center; margin: 8px 0; font-weight: 700; font-size: 14px; }
.sk .bar { height: 12px; background: #eef2f9; border-radius: 6px; overflow: hidden; }
.sk .bar i { display: block; height: 100%; border-radius: 6px; }
.sk em { grid-column: 2; font-style: normal; font-size: 12px; color: var(--mut); margin-top: -4px; }
.meo { background: #fff6d6; border-radius: 16px; padding: 12px 14px; margin-top: 12px; }
.meo p { margin: 4px 0 0; }
.opt { display: flex; gap: 10px; align-items: center; min-height: 48px; font-weight: 700; font-size: 15px; }
.opt input { width: 24px; height: 24px; flex: none; }
.foot { color: var(--mut); font-size: 13px; text-align: center; margin: 6px 0 0; }
.foot a { color: var(--c); }
