.stage { position: relative; height: clamp(520px, 76vh, 820px); line-height: normal; background: var(--gray-860); color: var(--gray-70); color-scheme: dark; overflow: hidden; touch-action: none; user-select: none; -webkit-user-select: none; }
canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.top { position: absolute; left: 0; right: 0; top: 0; display: flex; align-items: flex-start; gap: 20px; padding: calc(22px + env(safe-area-inset-top, 0px)) clamp(18px, 3vw, 36px) 0; pointer-events: none; }
.top h1 { margin: 0; font-size: 20px; font-weight: 550; letter-spacing: -0.022em; }
.top p { margin: 4px 0 0; font-size: 13px; color: color-mix(in srgb, var(--gray-70) 55%, transparent); max-width: 40ch; }
.stats { margin-left: auto; text-align: right; font-size: 12px; color: color-mix(in srgb, var(--gray-70) 45%, transparent); font-variant-numeric: tabular-nums; white-space: nowrap; }
.bar { position: absolute; left: 0; right: 0; margin: 0 auto; width: max-content; bottom: calc(18px + env(safe-area-inset-bottom, 0px)); display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; padding: 8px; max-width: calc(100% - 24px); border-radius: 12px; background: color-mix(in srgb, var(--gray-800) 62%, transparent); -webkit-backdrop-filter: blur(18px) saturate(150%); backdrop-filter: blur(18px) saturate(150%); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--gray-0) 8%, transparent), var(--e3); }
.seg { position: relative; display: flex; padding: 3px; border-radius: 12px; background: color-mix(in srgb, var(--gray-900) 28%, transparent); }
.seg button { position: relative; z-index: 1; border: 0; background: none; padding: 7px 12px; border-radius: 8px; font-size: 13px; font-weight: 550; color: color-mix(in srgb, var(--gray-70) 62%, transparent); cursor: default; transition: color .2s; white-space: nowrap; }
.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); }
.wind { display: flex; align-items: center; gap: 8px; padding: 0 8px; font-size: 13px; color: color-mix(in srgb, var(--gray-70) 70%, transparent); }
.wind input { width: 96px; accent-color: var(--yellow-200); }
.tg, .act { border: 0; border-radius: 12px; padding: 9px 12px; font-size: 13px; font-weight: 550; cursor: default; background: color-mix(in srgb, var(--gray-0) 7%, transparent); color: color-mix(in srgb, var(--gray-70) 85%, transparent); transition: background .2s, color .2s; white-space: nowrap; }
.tg:is(:hover, [data-hover]), .act:is(:hover, [data-hover]) { background: color-mix(in srgb, var(--gray-0) 13%, transparent); }
.tg[aria-pressed="true"] { background: var(--orange-450); color: var(--gray-0); }
.hint { position: absolute; left: clamp(18px, 3vw, 36px); bottom: calc(26px + env(safe-area-inset-bottom, 0px)); font-size: 12px; color: color-mix(in srgb, var(--gray-70) 38%, transparent); pointer-events: none; }
.ptr { position: absolute; left: 0; top: 0; z-index: 30; width: 24px; height: 24px; pointer-events: none; opacity: 0; transition: opacity .25s; }
.toast { position: absolute; left: 50%; top: 84px; transform: translate(-50%, -6px); padding: 8px 14px; border-radius: 9999px; background: color-mix(in srgb, var(--gray-800) 80%, transparent); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); font-size: 13px; opacity: 0; transition: opacity .25s, transform .4s cubic-bezier(.2,.9,.25,1); pointer-events: none; white-space: nowrap; }
.toast.on { opacity: 1; transform: translate(-50%, 0); }
.nogl { position: absolute; inset: 0; display: grid; place-items: center; font-size: 15px; color: color-mix(in srgb, var(--gray-70) 70%, transparent); }
@media (max-width: 760px) { .hint { display: none; } .top p { display: none; } .wind input { width: 70px; } .seg button { padding: 7px 9px; font-size: 13px; } .tg, .act { padding: 9px 10px; font-size: 13px; } }
