@font-face { font-family: "Geist"; src: url("/fonts/Geist-Variable.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("/fonts/GeistMono-Variable.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
    color-scheme: dark;
    --bg: #0c0d10;
    --surface: #14161b;
    --surface-2: #1b1e25;
    --line: #262a33;
    --line-strong: #353a45;
    --ink: #eceef2;
    --dim: #a3a9b5;
    --accent: #f5c518;
    --accent-soft: rgb(245 197 24 / .12);
    --accent-ink: #1c1600;
    --danger: #f07062;
    --ok: #86d395;
    --radius: 14px;
    --radius-input: 10px;
    --ease: cubic-bezier(.16, 1, .3, 1);
    --sans: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
    --serff: #17bfcf;
    --serff-soft: rgb(23 191 207 / .12);
    --serff-ink: #03262b;
    --serff-navy: #082c5e;
    --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100dvh; background: var(--bg); color: var(--ink); font: 16px/1.55 var(--sans); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--ink); text-decoration-color: var(--line-strong); text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--accent); }
h1, h2, h3 { margin: 0; font-weight: 650; letter-spacing: -.025em; line-height: 1.1; }
h1 { font-size: clamp(2rem, 1.4rem + 2.4vw, 3.1rem); }
h2 { font-size: 1.35rem; letter-spacing: -.015em; }
h3 { font-size: 1.05rem; letter-spacing: -.01em; }
p { margin: 0; }
code { font-family: var(--mono); font-size: .88em; color: var(--ink); background: var(--surface-2); padding: 1px 6px; border-radius: 6px; }
.icon { flex: none; }
.dim { color: var(--dim); }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.lead { color: var(--dim); font-size: 1.06rem; max-width: 58ch; margin-top: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* header */
.top { position: sticky; top: 0; z-index: 20; height: 64px; display: flex; align-items: center; gap: 28px; padding: 0 clamp(16px, 3vw, 32px); background: rgb(12 13 16 / .86); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: -.02em; text-decoration: none; white-space: nowrap; }
.brand .icon { color: var(--accent); }
.nav { display: flex; gap: 4px; flex: 1; min-width: 0; }
.nav a { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 999px; color: var(--dim); text-decoration: none; font-size: .95rem; white-space: nowrap; transition: color .2s var(--ease), background .2s var(--ease); }
.nav a:hover { color: var(--ink); background: var(--surface-2); }
.nav a[aria-current="page"] { color: var(--ink); background: var(--surface-2); }
.nav a[aria-current="page"] .icon { color: var(--accent); }
.who { display: flex; align-items: center; gap: 6px; }
.who .name { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 8px; border-radius: 999px; color: var(--ink); text-decoration: none; font-size: .95rem; }
.who .name:hover { background: var(--surface-2); }

@media (max-width: 760px) {
    .top { gap: 10px; }
    .brand span { display: none; }
    .nav a { padding: 8px 10px; }
    .nav a span, .who .name span, .who .btn span { display: none; }
}

/* layout */
.page { width: 100%; max-width: 1240px; margin: 0 auto; padding: clamp(28px, 5vw, 56px) clamp(16px, 3vw, 32px) 96px; }
.page.wide { max-width: none; padding: 0; }
.stack > * + * { margin-top: var(--gap, 20px); }
.section { margin-top: clamp(48px, 7vw, 80px); }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }

.split { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: center; }
.split.reverse { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); }
@media (max-width: 860px) { .split, .split.reverse { grid-template-columns: 1fr; } }

.shot { position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--surface); aspect-ratio: 940 / 425; }
.shot img { width: 100%; height: 100%; object-fit: cover; }
.shot.tall { aspect-ratio: 4 / 3; }

.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(20px, 3vw, 28px); }

/* forms */
label, .label { display: block; font-weight: 550; font-size: .95rem; margin-bottom: 8px; }
.field + .field { margin-top: 22px; }
.help { color: var(--dim); font-size: .88rem; margin-top: 8px; }
.error { color: var(--danger); font-size: .9rem; margin-top: 8px; display: flex; gap: 6px; align-items: center; }
input[type=email], input[type=text], textarea, select {
    width: 100%; padding: 12px 14px; border-radius: var(--radius-input); border: 1px solid var(--line-strong); background: var(--bg); color: var(--ink); font: inherit;
    transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
input::placeholder, textarea::placeholder { color: #7d8492; }
input:focus-visible, textarea:focus-visible, select:focus-visible { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
textarea { resize: vertical; min-height: 96px; }
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--dim) 50%), linear-gradient(135deg, var(--dim) 50%, transparent 50%); background-position: calc(100% - 20px) 52%, calc(100% - 15px) 52%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 40px; }
input[type=checkbox], input[type=radio] { accent-color: var(--accent); width: 18px; height: 18px; margin: 0; flex: none; }
input[type=range] { width: 100%; accent-color: var(--accent); }
.check { display: flex; gap: 12px; align-items: flex-start; font-weight: 400; font-size: .95rem; color: var(--ink); cursor: pointer; }
.check input { margin-top: 3px; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 20px; border-radius: 999px; border: 1px solid transparent; background: var(--accent); color: var(--accent-ink); font: inherit; font-weight: 650; font-size: .95rem; text-decoration: none; white-space: nowrap; cursor: pointer; transition: transform .15s var(--ease), background .2s var(--ease), border-color .2s var(--ease); }
.btn:hover { background: #ffd43b; }
.btn:active { transform: scale(.98); }
.btn:focus-visible, .nav a:focus-visible, .chip:focus-visible, .who .name:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn.ghost:hover { background: var(--surface-2); border-color: #454b58; }
.btn.danger { background: transparent; color: var(--danger); border-color: rgb(240 112 98 / .45); }
.btn.danger:hover { background: rgb(240 112 98 / .1); }
.btn.quiet { background: transparent; color: var(--dim); padding: 8px 10px; }
.btn.quiet:hover { color: var(--ink); background: var(--surface-2); }
.btn.small { padding: 7px 14px; font-size: .88rem; }

/* chips & badges */
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.chips::-webkit-scrollbar { display: none; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 999px; border: 1px solid var(--line-strong); color: var(--dim); text-decoration: none; white-space: nowrap; font-size: .93rem; transition: color .2s var(--ease), border-color .2s var(--ease), background .2s var(--ease); }
.chip:hover { color: var(--ink); border-color: #454b58; }
.chip[aria-current="page"] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); font-weight: 600; }
.chip .mono { font-size: .82rem; opacity: .8; }
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: .8rem; color: var(--dim); background: var(--surface-2); white-space: nowrap; }
.badge.approved { color: var(--ok); background: rgb(134 211 149 / .1); }
.badge.pending, .badge.processing { color: var(--accent); background: var(--accent-soft); }
.badge.rejected, .badge.failed { color: var(--danger); background: rgb(240 112 98 / .1); }

/* flash */
.flash { display: flex; gap: 10px; align-items: center; padding: 12px 16px; border-radius: var(--radius-input); border: 1px solid rgb(134 211 149 / .3); background: rgb(134 211 149 / .08); margin-bottom: 28px; }
.flash .icon { color: var(--ok); }

/* empty */
.empty { border: 1px dashed var(--line-strong); border-radius: var(--radius); padding: 40px 24px; text-align: center; color: var(--dim); }
.empty > .icon { color: var(--accent); margin: 0 auto 12px; display: block; }
.empty strong { display: block; color: var(--ink); font-size: 1.05rem; margin-bottom: 4px; }

/* motion */
@media (prefers-reduced-motion: no-preference) {
    .rise { animation: rise .7s var(--ease) both; animation-delay: calc(var(--i, 0) * 70ms); }
    @keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* game */
.game { width: 100%; height: calc(100dvh - 108px); border: 0; display: block; background: var(--bg); }

/* leaderboard */
.filters { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.filters select { width: auto; min-width: 180px; padding-top: 9px; padding-bottom: 9px; font-size: .93rem; }
.podium { display: grid; grid-template-columns: 1fr 1.15fr 1fr; gap: 14px; align-items: end; margin-top: 36px; }
.podium .spot { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 22px 20px; min-height: 168px; display: flex; flex-direction: column; justify-content: flex-end; gap: 4px; }
.podium .spot.p1 { min-height: 212px; border-color: rgb(245 197 24 / .45); background: linear-gradient(180deg, rgb(245 197 24 / .14), rgb(245 197 24 / .02) 70%), var(--surface); }
.podium .spot.p2 { order: -1; }
.podium .place { margin-bottom: auto; padding-bottom: 14px; display: inline-flex; align-items: center; gap: 8px; color: var(--dim); font-family: var(--mono); font-size: .9rem; }
.podium .p1 .place { color: var(--accent); }
.podium .who-name { font-weight: 650; font-size: 1.15rem; letter-spacing: -.01em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.podium .time { font-family: var(--mono); font-variant-numeric: tabular-nums; font-size: 1.6rem; font-weight: 600; letter-spacing: -.02em; }
.podium .p1 .time { font-size: 2.1rem; color: var(--accent); }
.podium .car { color: var(--dim); font-size: .88rem; }
.podium .spot.me { box-shadow: inset 0 0 0 1px var(--accent); }
@media (max-width: 760px) { .podium { grid-template-columns: 1fr; } .podium .spot.p2 { order: 0; } .podium .spot, .podium .spot.p1 { min-height: 0; } }

.tower { margin-top: 14px; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.tower .row { display: grid; grid-template-columns: 56px minmax(0, 1.4fr) minmax(0, 1fr) 110px 120px; gap: 12px; align-items: center; padding: 13px 20px; }
.tower .row + .row { border-top: 1px solid var(--line); }
.tower .row:nth-child(even) { background: var(--surface); }
.tower .row.me { background: var(--accent-soft); box-shadow: inset 3px 0 0 var(--accent); }
.tower .pos { font-family: var(--mono); color: var(--dim); }
.tower .nm { font-weight: 550; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tower .cr, .tower .dt { color: var(--dim); font-size: .92rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tower .tm { font-family: var(--mono); font-variant-numeric: tabular-nums; text-align: right; font-weight: 600; }
.tower .tm small { display: block; font-weight: 400; color: var(--dim); font-size: .78rem; }
@media (max-width: 760px) { .tower .row { grid-template-columns: 40px minmax(0, 1fr) auto; } .tower .cr, .tower .dt { display: none; } }

/* photos */
.strip { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(220px, 260px); gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent; }
.mine { scroll-snap-align: start; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.mine .thumb { aspect-ratio: 4 / 3; background: var(--surface-2); display: grid; place-items: center; color: var(--dim); }
.mine .thumb img { width: 100%; height: 100%; object-fit: cover; }
.mine .body { padding: 14px 16px 10px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.mine .text { font-size: .93rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mine .reason { color: var(--danger); font-size: .86rem; }
.mine form { margin-top: auto; }

.wall { columns: 3 280px; column-gap: 18px; }
.tile { break-inside: avoid; margin: 0 0 18px; }
.tile a { display: block; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--surface-2); }
.tile img { width: 100%; height: auto; transition: transform .6s var(--ease); }
.tile a:hover img { transform: scale(1.025); }
.tile figcaption { padding: 12px 2px 0; }
.tile .kind { display: inline-flex; align-items: center; gap: 6px; color: var(--accent); font-size: .85rem; font-weight: 550; }
.tile .text { margin-top: 4px; }
.tile .by { color: var(--dim); font-size: .88rem; margin-top: 2px; }
.pager { display: flex; gap: 10px; margin-top: 12px; }

/* upload */
.upload { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 20px; margin-top: 36px; align-items: start; }
@media (max-width: 900px) { .upload { grid-template-columns: 1fr; } }
.upload .panel h2 { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; }
.upload .panel h2 .icon { color: var(--accent); }
.upload .panel + .panel { margin-top: 20px; }
.drop { position: relative; display: grid; place-items: center; gap: 6px; text-align: center; padding: 28px 16px; border: 1px dashed var(--line-strong); border-radius: var(--radius-input); color: var(--dim); cursor: pointer; transition: border-color .2s var(--ease), background .2s var(--ease); }
.drop:hover, .drop:focus-within { border-color: var(--accent); background: var(--accent-soft); }
.drop .icon { color: var(--accent); }
.drop strong { color: var(--ink); font-weight: 550; }
.drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.kinds { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.kind-opt { position: relative; display: flex; align-items: center; gap: 10px; padding: 12px 14px; border: 1px solid var(--line-strong); border-radius: var(--radius-input); cursor: pointer; font-weight: 450; font-size: .93rem; margin: 0; transition: border-color .2s var(--ease), background .2s var(--ease); }
.kind-opt input { position: absolute; opacity: 0; }
.kind-opt .icon { color: var(--dim); }
.kind-opt:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.kind-opt:has(input:checked) .icon { color: var(--accent); }
.kind-opt:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.corners { position: relative; margin-top: 12px; touch-action: none; user-select: none; }
.corners canvas { width: 100%; display: block; border-radius: var(--radius-input); }
.modes { display: inline-flex; padding: 4px; border-radius: 999px; background: var(--bg); border: 1px solid var(--line); margin-bottom: 14px; }
.modes label { display: inline-flex; align-items: center; gap: 6px; margin: 0; padding: 7px 14px; border-radius: 999px; font-weight: 450; font-size: .9rem; color: var(--dim); cursor: pointer; }
.modes input { position: absolute; opacity: 0; }
.modes label:has(input:checked) { background: var(--surface-2); color: var(--ink); }
.modes label:has(input:focus-visible) { outline: 2px solid var(--accent); }
#map { height: 440px; border-radius: var(--radius-input); border: 1px solid var(--line); background: var(--surface-2); }
.heading-row { display: flex; justify-content: space-between; align-items: baseline; margin: 22px 0 8px; }
.submit-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 24px; }
.leaflet-container { font-family: var(--sans); }
.leaflet-control-layers, .leaflet-bar a { background: var(--surface) !important; color: var(--ink) !important; border-color: var(--line) !important; }
.leaflet-control-attribution { background: rgb(12 13 16 / .75) !important; color: var(--dim) !important; }
.leaflet-control-attribution a { color: var(--ink) !important; }

/* review */
.queue { display: grid; gap: 18px; margin-top: 32px; }
.item { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 24px; padding: 20px; }
@media (max-width: 860px) { .item { grid-template-columns: 1fr; } }
.item .media { border-radius: var(--radius-input); overflow: hidden; background: var(--surface-2); min-height: 200px; display: grid; place-items: center; color: var(--dim); }
.item .media img { width: 100%; height: auto; }
.facts { display: grid; grid-template-columns: auto 1fr; gap: 8px 18px; margin: 18px 0 0; font-size: .93rem; }
.facts dt { color: var(--dim); }
.facts dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 22px; }
.actions form.reject { display: flex; gap: 8px; flex: 1 1 100%; }
.actions form.reject input { padding-top: 9px; padding-bottom: 9px; }
.history { margin-top: 18px; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.history .row { display: grid; grid-template-columns: 56px minmax(0, 1fr) 140px 130px auto; gap: 14px; align-items: center; padding: 12px 18px; font-size: .93rem; }
.history .row + .row { border-top: 1px solid var(--line); }
.history .row img { width: 56px; height: 42px; object-fit: cover; border-radius: 6px; }
.history .text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 760px) { .history .row { grid-template-columns: 56px minmax(0, 1fr) auto; } .history .row .by, .history .row .st { display: none; } }
.upload > section.panel { position: sticky; top: 84px; }
@media (max-width: 900px) { .upload > section.panel { position: static; } }

/* footer */
.footer { border-top: 1px solid var(--line); background: var(--surface); margin-top: 40px; }
.footer-inner { max-width: 1240px; margin: 0 auto; padding: 48px clamp(16px, 3vw, 32px) 36px; display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) auto; gap: 40px; }
@media (max-width: 860px) { .footer-inner { grid-template-columns: 1fr; gap: 28px; } }
.footer-kicker { color: var(--dim); font-size: .9rem; }
.footer-brand { display: inline-flex; align-items: center; gap: 8px; margin-top: 4px; font-size: 1.5rem; font-weight: 650; letter-spacing: -.02em; text-decoration: none; }
.footer-brand .icon { color: var(--accent); }
.footer-brand:hover { color: var(--accent); }
.footer-pitch { margin-top: 12px; max-width: 52ch; font-size: .95rem; }
.footer-contact { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; align-content: start; font-size: .95rem; }
.footer-contact li { display: flex; align-items: center; gap: 10px; }
.footer-contact .icon { color: var(--accent); }
.footer-links { display: grid; gap: 10px; align-content: start; font-size: .95rem; }
.footer-links a { color: var(--dim); text-decoration: none; }
.footer-links a:hover { color: var(--ink); }
.footer-base { max-width: 1240px; margin: 0 auto; padding: 16px clamp(16px, 3vw, 32px) 28px; background: linear-gradient(var(--line), var(--line)) no-repeat top center / calc(100% - 2 * clamp(16px, 3vw, 32px)) 1px; display: flex; gap: 24px; flex-wrap: wrap; color: var(--dim); font-size: .85rem; }

/* social */
.share { display: flex; gap: 8px; flex-wrap: wrap; }
.place-tag { display: inline-flex; align-items: center; gap: 4px; font-size: .78rem; color: var(--dim); border: 1px solid var(--line-strong); border-radius: 999px; padding: 1px 8px; margin-left: 8px; vertical-align: 2px; white-space: nowrap; }
a.player-link { text-decoration: none; }
a.player-link:hover { color: var(--accent); }
.tower .row .act { display: flex; justify-content: flex-end; }
.tower .row.me .nm { display: flex; align-items: center; gap: 10px; }
.callout { display: flex; gap: 16px; align-items: center; justify-content: space-between; flex-wrap: wrap; padding: 18px 22px; border-radius: var(--radius); background: var(--accent-soft); border: 1px solid rgb(245 197 24 / .3); }
.callout p { max-width: 60ch; }
.callout .icon { color: var(--accent); }

/* contest */
.versus { display: grid; grid-template-columns: 1fr auto 1fr; gap: 18px; align-items: center; margin-top: 36px; }
.versus .side { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 28px; }
.versus .side.lead-side { border-color: rgb(245 197 24 / .45); background: linear-gradient(160deg, rgb(245 197 24 / .13), transparent 60%), var(--surface); }
.side-name { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 1.3rem; font-weight: 650; letter-spacing: -.02em; }
.side-points { font-size: clamp(2.6rem, 2rem + 2.5vw, 4rem); font-weight: 600; letter-spacing: -.03em; line-height: 1.05; margin: 18px 0 8px; }
.side-points small { font-family: var(--sans); font-size: 1rem; color: var(--dim); font-weight: 400; margin-left: 10px; letter-spacing: 0; }
.lead-side .side-points { color: var(--accent); }
.vs { color: var(--dim); font-size: 1.1rem; }
@media (max-width: 760px) { .versus { grid-template-columns: 1fr; } .vs { text-align: center; } }
.contest-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 28px; align-items: start; }
@media (max-width: 860px) { .contest-grid { grid-template-columns: 1fr; } }
.ranking { list-style: none; margin: 18px 0 0; padding: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.ranking li { display: flex; align-items: center; gap: 12px; padding: 12px 18px; }
.ranking li + li { border-top: 1px solid var(--line); }
.ranking li:first-child { background: var(--accent-soft); }
.ranking .pos { width: 28px; color: var(--dim); }
.ranking .nm { font-weight: 550; }
.ranking .pts { margin-left: auto; font-weight: 600; }
.stack.contest-aside > * + * { margin-top: 16px; }
.target { margin: 28px 0 24px; padding: 22px 24px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); }
.target-time { font-size: clamp(2.4rem, 2rem + 2vw, 3.4rem); font-weight: 600; letter-spacing: -.03em; color: var(--accent); line-height: 1.1; }
.target .dim { margin-top: 6px; }

/* player */
.player-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; }
.records { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; margin-top: 18px; }
.record { display: flex; flex-direction: column; gap: 4px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; }
.record.is-first { border-color: rgb(245 197 24 / .45); }
.record-route { display: flex; justify-content: space-between; gap: 10px; font-weight: 600; }
.record-route .mono { font-size: .85rem; }
.record-time { font-size: 2rem; font-weight: 600; letter-spacing: -.02em; margin-top: 6px; }
.record.is-first .record-time { color: var(--accent); }
.duel-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 28px; }
.duels { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.duels li { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 12px 16px; border-radius: var(--radius-input); background: var(--surface); border: 1px solid var(--line); }
.duels .icon { color: var(--accent); }
.duels li > span:last-child { margin-left: auto; }

/* about */
.facts-row { display: flex; gap: 32px; margin-top: 32px; flex-wrap: wrap; color: var(--dim); }
.facts-row span { display: block; color: var(--ink); font-size: 2rem; font-weight: 600; letter-spacing: -.02em; }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 56px); }
@media (max-width: 860px) { .about-grid { grid-template-columns: 1fr; } }
.prose { margin-top: 12px; max-width: 62ch; }
body { display: flex; flex-direction: column; }
body > main { flex: 1 0 auto; }
.history .row.player-row { grid-template-columns: minmax(0, 1fr) 90px 80px auto; }
.history .row.flagged { box-shadow: inset 3px 0 0 var(--danger); }
@media (max-width: 760px) { .history .row.player-row { grid-template-columns: minmax(0, 1fr); } }

/* legal */
.legal { max-width: 720px; }
.legal h2 { margin: 40px 0 10px; font-size: 1.2rem; }
.legal p, .legal li { color: var(--dim); }
.legal strong { color: var(--ink); font-weight: 550; }
.legal ul { padding-left: 20px; margin: 0; display: grid; gap: 8px; }

/* serff */
.btn.serff { background: var(--serff); color: var(--serff-ink); }
.btn.serff:hover { background: #3fd3e0; }
.btn.serff:focus-visible { outline-color: var(--serff); }

.by-serff { display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px 5px 14px; border-radius: 999px; border: 1px solid var(--line); color: var(--dim); font-size: .8rem; text-decoration: none; white-space: nowrap; transition: border-color .2s var(--ease), background .2s var(--ease); }
.by-serff img { height: 26px; width: auto; }
.by-serff:hover { border-color: rgb(23 191 207 / .5); background: var(--serff-soft); color: var(--ink); }
.by-serff:focus-visible { outline: 2px solid var(--serff); outline-offset: 2px; }
@media (max-width: 1080px) { .by-serff span { display: none; } .by-serff { padding: 5px 10px; } }
@media (max-width: 560px) { .by-serff { display: none; } }

.serff-kicker { color: var(--serff); font-size: .85rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.serff-logo { display: inline-block; margin-top: 14px; }
.serff-logo img { width: 150px; height: auto; }
.serff-clients { margin-top: 16px; color: var(--dim); font-size: .93rem; }
.serff-clients strong { color: var(--ink); font-weight: 600; }

.serff-band { margin-top: 64px; border-top: 1px solid var(--line); background: radial-gradient(1000px 420px at 0% 0%, rgb(23 191 207 / .12), transparent 60%), radial-gradient(800px 400px at 100% 100%, rgb(8 44 94 / .45), transparent 70%), var(--bg); }
.serff-band-inner { max-width: 1240px; margin: 0 auto; padding: clamp(40px, 6vw, 72px) clamp(16px, 3vw, 32px); display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
@media (max-width: 860px) { .serff-band-inner { grid-template-columns: 1fr; } }
.serff-band-title { margin-top: 22px; font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.4rem); max-width: 20ch; }
.serff-band-text { margin-top: 14px; max-width: 56ch; }
.serff-services { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.serff-services a { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: var(--radius-input); border: 1px solid var(--line); background: rgb(20 22 27 / .7); text-decoration: none; font-weight: 550; transition: border-color .2s var(--ease), background .2s var(--ease), transform .2s var(--ease); }
.serff-services a > .icon:first-child { color: var(--serff); }
.serff-services a > .icon:last-child { margin-left: auto; color: var(--dim); transition: transform .2s var(--ease), color .2s var(--ease); }
.serff-services a:hover { border-color: rgb(23 191 207 / .5); background: var(--serff-soft); }
.serff-services a:hover > .icon:last-child { color: var(--serff); transform: translateX(3px); }
.serff-services a:focus-visible { outline: 2px solid var(--serff); outline-offset: 2px; }
.serff-services small { display: block; color: var(--dim); font-weight: 400; font-size: .86rem; margin-top: 2px; }
.serff-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.serff-band + .footer { margin-top: 0; }

.maker-cta { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 56px); align-items: start; padding: clamp(24px, 4vw, 44px); border-radius: var(--radius); border: 1px solid rgb(23 191 207 / .3); background: radial-gradient(700px 360px at 0% 0%, rgb(23 191 207 / .12), transparent 60%), var(--surface); }
@media (max-width: 860px) { .maker-cta { grid-template-columns: 1fr; } }
.maker-logo { width: 150px; height: auto; }
.maker-name { font-size: clamp(1.6rem, 1.3rem + 1.2vw, 2.2rem); margin-top: 20px; }
.maker-person { display: flex; align-items: center; gap: 14px; margin-top: 24px; }
.maker-person img { width: 56px; height: 56px; border-radius: 999px; object-fit: cover; border: 2px solid rgb(23 191 207 / .5); }
.maker-person strong { display: block; font-weight: 600; }
.maker-person span { display: block; font-size: .9rem; }
.maker-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }

.credit-bar { height: 44px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 0 clamp(12px, 3vw, 32px); border-top: 1px solid var(--line); background: var(--surface); font-size: .88rem; color: var(--dim); overflow: hidden; white-space: nowrap; }
.credit-bar a { color: var(--dim); text-decoration: none; }
.credit-maker { display: inline-flex; align-items: center; gap: 10px; min-width: 0; }
.credit-maker img { height: 26px; width: auto; flex: none; }
.credit-maker strong { color: var(--ink); font-weight: 600; }
.credit-maker:hover strong { color: var(--serff); }
.credit-tagline { color: var(--dim); }
.credit-contact { display: flex; align-items: center; gap: 18px; }
.credit-contact a { display: inline-flex; align-items: center; gap: 6px; }
.credit-contact a:hover { color: var(--ink); }
.credit-contact .credit-cta { padding: 5px 12px; border-radius: 999px; background: var(--serff-soft); color: var(--serff); font-weight: 600; }
.credit-contact .credit-cta:hover { background: var(--serff); color: var(--serff-ink); }
@media (max-width: 1180px) { .credit-tagline { display: none; } }
@media (max-width: 980px) { .credit-contact a:not(.credit-cta) { display: none; } }
@media (max-width: 520px) { .credit-contact { display: none; } .credit-bar { justify-content: center; } }
