.stage.lit { --ink: var(--gray-800); --ink2: color-mix(in srgb, var(--gray-800) 60%, transparent); --glass: color-mix(in srgb, var(--gray-20) 62%, transparent); }
.stage { --ink: var(--gray-70); --ink2: color-mix(in srgb, var(--gray-70) 55%, transparent); --glass: color-mix(in srgb, var(--gray-800) 60%, transparent); position: relative; height: clamp(520px, 76vh, 820px); line-height: normal; background: var(--gray-900); color: var(--ink); color-scheme: dark; overflow: hidden; touch-action: none; user-select: none; -webkit-user-select: none; }
.stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; opacity: 0; transition: opacity .5s ease; }
.stage canvas.on { opacity: 1; }
.top { position: absolute; left: 0; right: 0; top: 0; z-index: 5; display: flex; align-items: center; gap: 18px; padding: calc(18px + env(safe-area-inset-top, 0px)) clamp(16px, 3vw, 32px) 0; pointer-events: none; }
.top h1 { margin: 0; font-size: 17px; font-weight: 550; letter-spacing: -0.02em; white-space: nowrap; }
.top > * { pointer-events: auto; }
.seg { position: relative; display: flex; padding: 3px; border-radius: 12px; background: var(--glass); -webkit-backdrop-filter: blur(16px) saturate(150%); backdrop-filter: blur(16px) saturate(150%); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--gray-0) 8%, transparent); transition: background .5s; }
.seg button { position: relative; z-index: 1; border: 0; background: none; padding: 7px 13px; border-radius: 8px; font-size: 13px; font-weight: 550; color: var(--ink2); cursor: default; white-space: nowrap; transition: color .2s; }
.seg button[aria-pressed="true"] { color: var(--gray-830); }
.seg i { position: absolute; top: 3px; bottom: 3px; left: 0; border-radius: 8px; background: var(--gray-70); }
.tabs { margin: 0 auto; }
.stats { font-size: 12px; color: var(--ink2); font-variant-numeric: tabular-nums; white-space: nowrap; }
.bar { position: absolute; left: 0; right: 0; bottom: calc(18px + env(safe-area-inset-bottom, 0px)); z-index: 5; margin: 0 auto; width: max-content; max-width: calc(100% - 24px); display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px; padding: 7px 7px 7px 16px; border-radius: 12px; background: var(--glass); -webkit-backdrop-filter: blur(16px) saturate(150%); backdrop-filter: blur(16px) saturate(150%); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--gray-0) 8%, transparent), var(--e3); transition: background .5s; }
.cap { font-size: 13px; color: var(--ink2); max-width: 46ch; }
.ctl { display: flex; gap: 6px; align-items: center; }
.btn { border: 0; border-radius: 8px; padding: 8px 12px; font-size: 13px; font-weight: 550; cursor: default; background: color-mix(in srgb, var(--gray-0) 8%, transparent); color: var(--ink); white-space: nowrap; }
.stage.lit .btn { background: color-mix(in srgb, var(--gray-900) 7%, transparent); }
.btn[aria-pressed="true"] { background: var(--yellow-200); color: var(--gray-830); }
.ptr { position: absolute; left: 0; top: 0; z-index: 30; width: 24px; height: 24px; pointer-events: none; opacity: 0; transition: opacity .25s; }
.msg { position: absolute; inset: 0; display: none; place-items: center; font-size: 15px; color: var(--ink2); text-align: center; padding: 30px; }
@media (max-width: 760px) { .top { flex-wrap: wrap; } .top h1 { display: none; } .stats { display: none; } .tabs { margin: 0; } .cap { display: none; } .bar { padding: 7px; } }
.cap { display: none; }
.stats { margin-left: auto; }
