:root { color-scheme: dark; font: 16px/1.5 "Cascadia Mono", Consolas, monospace; color: var(--pixel-ink); background: var(--pixel-base); }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-height: 100vh; background-image: var(--pixel-grid); background-size: 32px 32px; }
.shell { max-width: 1080px; width: calc(100% - 32px); margin-inline: auto; }
.masthead { display: flex; justify-content: space-between; gap: 12px; margin-top: 20px; padding: 14px 0; border-top: 1px solid var(--pixel-lime); font-size: .86rem; }
a { color: var(--pixel-lime); }
main { padding-bottom: 48px; }
h1, h2, p { margin: 0; }
.heading { padding: clamp(18px, 4.5vw, 46px) 0 22px; }
h1 { font: 700 clamp(1.95rem, 6vw, 5rem)/1.04 var(--pixel-display); letter-spacing: -.075em; }
h1 span { color: var(--pixel-lime); }
h2 { font: 700 clamp(.96rem, 2.5vw, 1.22rem)/1.35 var(--pixel-display); }
.heading p { color: var(--pixel-muted); margin-top: 10px; text-shadow: var(--pixel-copy-shadow); }
.panel { padding: 16px; border: 1px solid var(--pixel-line); background: #1d231b; margin: 0 0 16px; min-width: 0; }
.panel p { margin-top: 10px; }
.panel > :first-child { margin-top: 0; }
.stack { display: grid; gap: 12px; }
.login { max-width: 460px; }
button, select, input { font: inherit; }
input, select { width: 100%; min-width: 0; color: var(--pixel-ink); border: 1px solid var(--pixel-line); background: #151714; padding: 8px; }
label { display: grid; gap: 4px; }
:focus-visible { outline: 2px solid var(--pixel-lime); outline-offset: 3px; }
button { cursor: pointer; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; margin-top: 9px; }
.action { border: 1px solid var(--pixel-lime); color: #141712; background: var(--pixel-lime); padding: 9px 13px; font-weight: 700; }
.action.secondary { color: var(--pixel-lime); background: #171d16; }
.action.secondary[aria-pressed="true"] { color: #141712; background: var(--pixel-lime); }
.action:hover:not(:disabled) { box-shadow: inset 0 0 0 2px #141712; }
.action:disabled { opacity: .46; cursor: default; }
.action-link { text-decoration: none; }
#notice { padding: 9px 12px; margin: 0 0 14px; border-left: 3px solid var(--pixel-lime); background: #232e22; }
#notice.error { border-color: #ff8290; }
.muted { color: var(--pixel-muted); text-shadow: var(--pixel-copy-shadow); }
.round-list { padding-left: 28px; }
.round-list li { border-top: 1px solid var(--pixel-line); padding: 9px 0; }
.round-list .actions { margin: 5px 0 0; }
.round-list .action { font-size: .8rem; }
video { display: block; width: 100%; aspect-ratio: 16 / 9; background: #0c0d0a; }
.clip-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.clip-tabs [aria-pressed="true"], .rank-option[aria-pressed="true"] { border-color: var(--pixel-lime); background: #344a2a; color: var(--pixel-lime); }
.rank-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(145px, 1fr)); gap: 7px; }
.rank-option { display: flex; align-items: center; gap: 7px; min-height: 45px; text-align: left; padding: 5px; background: #181d16; color: var(--pixel-ink); border: 1px solid var(--pixel-line); font-size: .83rem; }
.rank-option img, .reveal img { width: 31px; height: 31px; object-fit: contain; }
.rank-option:hover { border-color: var(--pixel-lime); }
.rank-field { display: grid; gap: 4px; }
.rank-trigger { justify-self: start; min-width: 165px; }
#clip-rank-picker { width: min(650px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); padding: 16px; border: 1px solid var(--pixel-lime); background: var(--pixel-panel); color: var(--pixel-ink); }
#clip-rank-picker::backdrop { background: #0e110de0; }
#clip-rank-picker header { display: flex; align-items: center; justify-content: space-between; gap: 9px; margin-bottom: 12px; }
.reveal { display: flex; align-items: center; gap: 10px; color: var(--pixel-lime); margin-bottom: 10px; }
.reveal img { width: 45px; height: 45px; }
.scores { width: 100%; border-collapse: collapse; margin-top: 10px; }
.scores :is(th,td) { text-align: left; padding: 6px; border-bottom: 1px solid var(--pixel-line); overflow-wrap: anywhere; }
.scores :is(th,td):last-child { text-align: right; }
.round-indicator { color: var(--pixel-lime); margin-bottom: 8px; }
@media (max-width: 460px) { .rank-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
