:root { --c: #3DD68C; --c2: #FF5A5F; --bg: #0C0D13; --ink: #ECEEF5; --mut: #9AA0B5; --card: rgba(255,255,255,.055); --line: rgba(255,255,255,.09); --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; }
.home { min-height: 100%; display: flex; flex-direction: column; align-items: center; gap: 12px; padding: calc(var(--sat) + 72px) 16px 40px; max-width: 520px; margin: 0 auto; }
.logo { text-align: center; }
.lampmark { width: 84px; height: 84px; margin: 0 auto 12px; border-radius: 50%; padding: 9px; background: linear-gradient(135deg, #3A3C4C, #17181F 55%, #2C2E3B); box-shadow: 0 10px 30px rgba(0,0,0,.5), inset 0 0 0 1px rgba(255,255,255,.08); }
.lampmark i { display: block; width: 100%; height: 100%; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff 0, var(--c2) 35%, #6b1a22 100%); animation: den 4s infinite; }
@keyframes den { 0%, 70% { background: radial-gradient(circle at 35% 30%, #ffb3b5 0, var(--c2) 35%, #6b1a22 100%); box-shadow: 0 0 18px rgba(255,90,95,.35); } 72%, 92% { background: radial-gradient(circle at 35% 30%, #e6fff1 0, var(--c) 35%, #145c3a 100%); box-shadow: 0 0 40px rgba(61,214,140,.75); } 100% { background: radial-gradient(circle at 35% 30%, #ffb3b5 0, var(--c2) 35%, #6b1a22 100%); } }
.logo h1 { margin: 0; font-size: clamp(42px, 12vw, 60px); font-weight: 900; letter-spacing: -1.5px; line-height: 1; color: #fff; }
.logo p { margin: 6px 0 0; font-weight: 600; font-size: 16px; color: var(--mut); letter-spacing: .2px; }
.story { color: #C9CDDA; text-align: center; font-weight: 500; margin: 0; line-height: 1.55; font-size: 15px; }
.btn { display: block; width: 100%; min-height: 52px; border: 0; border-radius: 16px; background: var(--card); color: #fff; font-weight: 800; font-size: 16px; margin: 6px 0; box-shadow: inset 0 0 0 1px var(--line); }
.btn.main { background: linear-gradient(180deg, #4BE39A, #22B36E); color: #04220F; box-shadow: 0 10px 28px rgba(61,214,140,.25); }
.btn.big { min-height: 76px; font-size: 22px; font-weight: 900; }
.btn.big small { display: block; font-size: 13px; font-weight: 700; opacity: .8; margin-top: 2px; }
.btn.ghost { background: transparent; color: var(--mut); }
.link { border: 0; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); color: #DADDE8; border-radius: 14px; padding: 13px 16px; min-height: 48px; font-weight: 700; width: 100%; }
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; width: 100%; }
.tile { border: 0; border-radius: 18px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); padding: 14px 12px; min-height: 78px; text-align: left; color: #fff; }
.tile b { display: block; font-size: 15px; font-weight: 800; }
.tile small { display: block; font-size: 12.5px; color: var(--mut); font-weight: 600; margin-top: 4px; }
.kpi { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; width: 100%; }
.kpi > div { background: var(--card); box-shadow: inset 0 0 0 1px var(--line); border-radius: 16px; padding: 10px 8px; text-align: center; }
.kpi small { display: block; font-size: 11.5px; color: var(--mut); font-weight: 600; }
.kpi b { display: block; font-size: 22px; font-weight: 900; color: #fff; margin-top: 2px; font-variant-numeric: tabular-nums; }
.kpi b i { font-style: normal; font-size: 12px; color: var(--mut); font-weight: 700; }
.kpi.light { margin: 12px 0; }
.cmp { margin: 0; font-weight: 800; font-size: 14px; padding: 7px 14px; border-radius: 99px; }
.cmp.up { color: #7CF0B5; background: rgba(61,214,140,.12); }
.cmp.down { color: #FFB547; background: rgba(255,181,71,.12); }
.cmp.dark { display: inline-block; }
.panel { background: #14151D; box-shadow: inset 0 0 0 1px var(--line), 0 20px 50px rgba(0,0,0,.4); border-radius: 22px; padding: 20px 18px; max-width: 520px; margin: calc(var(--sat) + 66px) auto 28px; width: calc(100% - 32px); }
.panel h2 { margin: 0 0 8px; color: #fff; font-size: 22px; }
.panel h3 { margin: 20px 0 6px; color: #fff; font-size: 16px; }
.panel h3 small { color: var(--mut); font-weight: 600; font-size: 12px; margin-left: 4px; }
.panel p, .panel li { color: #B6BBCB; font-weight: 500; line-height: 1.55; font-size: 14.5px; }
.panel b { color: #fff; }
.note { font-size: 13px !important; color: var(--mut) !important; }
.note.strong { color: #DADDE8 !important; font-size: 14px !important; }
.foot { color: var(--mut); font-size: 13px; text-align: center; }
.foot a { color: #DADDE8; }
.list { display: flex; flex-direction: column; gap: 8px; margin: 12px 0; }
.stage, .tb { display: flex; align-items: center; gap: 12px; width: 100%; border: 0; text-align: left; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); border-radius: 16px; padding: 12px; min-height: 64px; color: #fff; }
.stage.lock, .test.lock { opacity: .5; }
.si { font-size: 28px; width: 40px; text-align: center; flex: none; }
.sb { flex: 1; min-width: 0; }
.sb b { display: block; font-weight: 800; }
.sb small { display: block; color: var(--mut); font-weight: 600; font-size: 12.5px; line-height: 1.4; }
.sb small.fr { color: #7CF0B5; }
.ss i { font-style: normal; color: #3A3D4D; font-size: 18px; }
.ss i.on { color: #FFC53D; }
.test { display: flex; gap: 8px; align-items: stretch; }
.test .tb { flex: 1; }
.mini-b { border: 0; border-radius: 14px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); color: #DADDE8; font-weight: 700; font-size: 12px; width: 76px; min-height: 44px; flex: none; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 4px; }
.chip { border: 0; border-radius: 99px; padding: 10px 14px; min-height: 44px; font-weight: 700; font-size: 13.5px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); color: #DADDE8; }
.chip.on { background: #3DD68C; color: #04220F; box-shadow: none; }
.chart { width: 100%; height: auto; display: block; background: rgba(255,255,255,.025); border-radius: 14px; }
.chart .grid { stroke: rgba(255,255,255,.08); stroke-width: 1; }
.chart .axl { fill: #8A90A6; font-size: 10px; font-weight: 600; }
.chart .bandl { fill: rgba(61,214,140,.8); font-size: 9.5px; font-weight: 700; }
.chart .hit { cursor: pointer; }
.readout { font-size: 13px; color: #DADDE8; font-weight: 700; text-align: center; padding: 6px 0 0; }
.empty { padding: 26px 14px; text-align: center; color: var(--mut); background: rgba(255,255,255,.025); border-radius: 14px; font-size: 14px; }
.bars { display: flex; flex-direction: column; gap: 6px; }
.bar { display: grid; grid-template-columns: 96px 1fr 70px; align-items: center; gap: 8px; font-size: 12.5px; color: var(--mut); font-weight: 600; }
.bar i { height: 10px; background: rgba(255,255,255,.05); border-radius: 99px; overflow: hidden; }
.bar em { display: block; height: 100%; background: #6C7290; border-radius: 99px; }
.bar b { text-align: right; color: #DADDE8; font-variant-numeric: tabular-nums; }
.bar.top em { background: #3DD68C; }
.bar.top span, .bar.top b { color: #7CF0B5; }
.rec { list-style: none; padding: 0; margin: 0; }
.rec li { display: flex; justify-content: space-between; padding: 9px 2px; border-bottom: 1px solid var(--line); }
.rec li b { font-variant-numeric: tabular-nums; }
