/* Banner Brawl — "Title Belt" design. One hand-written stylesheet, no framework. */

@font-face { font-family: "Fraunces"; font-style: normal; font-weight: 600; font-display: swap; src: url(/static/fonts/fraunces-600.woff2) format("woff2"); }
@font-face { font-family: "Fraunces"; font-style: italic; font-weight: 500; font-display: swap; src: url(/static/fonts/fraunces-500-italic.woff2) format("woff2"); }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 400 800; font-display: swap; src: url(/static/fonts/manrope-var.woff2) format("woff2"); }

:root {
  --bg: #0A0F1F;
  --surface: #121A30;
  --border: #2A3452;
  --text: #EEF0F6;
  --muted: #AEB6C8;
  --faint: #8792AB;
  --gold: #E5B64B;
  --gold-soft: rgba(229, 182, 75, .18);
  --danger: #FF8A80;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --gutter: clamp(16px, 4vw, 40px);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 16px/1.55 var(--sans); }
a { color: var(--text); text-underline-offset: .18em; }
a:hover { color: var(--gold); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
img { max-width: 100%; }
strong { font-weight: 800; }
h1, h2, h3 { margin: 0; }
p { margin: 0; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 var(--gutter); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.muted { color: var(--muted); }
.num { font-variant-numeric: tabular-nums; }
.gold { color: var(--gold); }
[hidden] { display: none !important; }

/* Type */
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font: 800 13px/1.3 var(--sans); letter-spacing: .22em; text-transform: uppercase; color: var(--gold); }
.display { font-family: var(--serif); font-weight: 600; letter-spacing: -.02em; line-height: 1.02; }
.display em { font-style: italic; font-weight: 500; color: var(--gold); }
.h1 { font-size: clamp(42px, 7.5vw, 92px); line-height: 1; max-width: 900px; text-wrap: balance; }
.h2 { font-size: clamp(32px, 4.5vw, 52px); }
.h3 { font-size: clamp(28px, 3.6vw, 40px); }
.lede { font-size: clamp(17px, 2vw, 21px); color: var(--muted); max-width: 600px; text-wrap: balance; }
.hero-sub { max-width: 720px; }
.hero-sub a { color: var(--gold); font-weight: 700; }

/* Header / footer */
.site-header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; padding-top: 24px; padding-bottom: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; text-decoration: none; font: italic 500 26px/1 var(--serif); }
.site-nav { display: flex; gap: 8px 24px; font-weight: 700; font-size: 15px; }
.site-nav a, .footer-nav a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; }
.site-footer { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; align-items: center; padding-top: 64px; padding-bottom: 40px; color: var(--faint); font-size: 14px; }
.footer-nav { display: flex; gap: 20px; }
.footer-nav a { color: var(--faint); }

/* Sections and cards */
.section { margin-top: clamp(56px, 8vw, 96px); }
.hero { padding: clamp(32px, 6vw, 72px) 0 36px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 18px; }
.page-head { padding: clamp(24px, 5vw, 56px) 0 28px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: clamp(20px, 4vw, 36px); }
.center { text-align: center; }
.stack { display: flex; flex-direction: column; gap: 14px; }

/* Banner frame and banner (§7) */
.frame { padding: clamp(10px, 1.6vw, 16px); border: 1px solid var(--border); border-radius: 16px; background: var(--surface); }
.frame-gold { border-color: var(--gold); }
.banner {
  position: relative; display: flex; flex-direction: column; justify-content: center; align-items: center;
  width: 100%; max-width: 970px; aspect-ratio: 970 / 250; margin: 0 auto; overflow: hidden;
  border-radius: 10px; background: #000; text-decoration: none; color: inherit;
}
.frame .banner { max-width: none; }
.banner picture, .banner img { display: block; width: 100%; height: 100%; object-fit: cover; }
.banner-ad { position: absolute; top: 8px; right: 10px; font: 700 11px/1 var(--sans); letter-spacing: .06em; padding: 3px 5px; border-radius: 3px; background: rgba(10, 15, 31, .6); color: #fff; }
.banner-text { padding: 4% 6%; text-align: center; }
.banner-headline { font-family: var(--serif); font-weight: 600; font-size: clamp(22px, 5vw, 56px); line-height: 1.02; overflow-wrap: anywhere; }
.banner-tagline { font-size: clamp(12px, 1.9vw, 20px); margin-top: .45em; overflow-wrap: anywhere; }
/* Buyer text themes, tuned to sit inside the navy and gold frame. All text is at least 4.5:1. */
.theme-knockout { background: #0A0F1F; color: #E5B64B; }     /* 10.1:1 */
.theme-corner-red { background: #B3261E; color: #FFF6F0; }   /* 6.1:1 */
.theme-neon { background: #1B1340; color: #5EEAD4; }         /* 11.7:1 */
.theme-clean { background: #EEF0F6; color: #0A0F1F; }        /* 16.7:1 */
.theme-clean .banner-ad { background: rgba(10, 15, 31, .75); }
/* Internal "Vacant" theme for the house ad (reign 0): an empty frame waiting to be filled */
.theme-vacant { background: var(--surface); color: var(--text); }
.theme-vacant::before { content: ""; position: absolute; inset: 12px; border: 2px dashed var(--gold); border-radius: 6px; pointer-events: none; }
.theme-vacant .banner-headline em { font-style: italic; font-weight: 500; color: var(--gold); }
.theme-vacant .banner-tagline { color: var(--muted); }
.theme-vacant .banner-ad { background: none; color: var(--faint); top: 18px; right: 20px; }
.banner-removed { background: repeating-linear-gradient(45deg, #121A30 0 14px, #18213B 14px 28px); color: var(--muted); font: 600 clamp(18px, 4vw, 36px)/1.1 var(--serif); }

/* Champion row */
.champ-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 28px; padding: 16px 8px 4px; }
.champ-name { font-weight: 800; font-size: 18px; overflow-wrap: anywhere; }
.champ-row .stat { color: var(--muted); }
.champ-row .stat strong { color: var(--text); font-variant-numeric: tabular-nums; }
.champ-row .report { margin-left: auto; display: inline-flex; align-items: center; min-height: 44px; font-size: 13px; color: var(--muted); }
.champ-notes { padding: 4px 8px 0; display: flex; flex-direction: column; gap: 2px; color: var(--muted); font-style: italic; }
.champ-notes .photo { color: var(--gold); font-style: normal; font-weight: 700; }

/* CTA */
.cta-block { margin-top: 40px; display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; }
.cta {
  display: inline-flex; align-items: center; justify-content: center; gap: 14px; max-width: 100%;
  min-height: 56px; padding: 22px clamp(24px, 5vw, 44px); border: 0; border-radius: 999px;
  background: var(--gold); color: var(--bg); text-decoration: none; cursor: pointer;
  font: 800 clamp(20px, 3.2vw, 32px)/1.15 var(--sans); box-shadow: 0 0 0 6px var(--gold-soft);
  overflow-wrap: anywhere; transition: transform .12s, box-shadow .12s;
}
.cta:hover, .cta:focus-visible { color: var(--bg); transform: translateY(-1px); box-shadow: 0 0 0 9px var(--gold-soft); }
.cta svg { flex: none; }
.cta-sm { font-size: 18px; padding: 14px 28px; }
.btn-outline {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 24px;
  border: 1px solid var(--gold); border-radius: 999px; background: transparent; color: var(--gold);
  font: 800 16px/1 var(--sans); text-decoration: none; cursor: pointer;
}
.btn-outline:hover { background: var(--gold-soft); color: var(--gold); }
.note { color: var(--muted); font-size: 15px; }
.inline-icon { display: inline-flex; align-items: center; gap: 8px; }
.inline-icon svg { flex: none; }
.charity-line { font-size: 15px; }
.charity-line a { color: var(--gold); font-weight: 700; }
.soft-hold { font-size: 14px; font-weight: 700; color: var(--gold); animation: pulse 1.8s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .45; } }
@media (prefers-reduced-motion: reduce) { .soft-hold { animation: none; } .cta { transition: none; } }

/* Rules and spoils */
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.rule { display: flex; flex-direction: column; gap: 10px; padding: 32px 28px; }
.rule-num { font: italic 500 44px/1 var(--serif); color: var(--gold); }
.rule h3 { font-size: 21px; font-weight: 800; }
.rule p { color: var(--muted); }
.spoils { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 40px; align-items: center; }
.bullets { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 18px; font-size: 18px; }
.bullets li { display: flex; gap: 14px; }
.bullets li::before { content: ""; flex: none; width: 8px; height: 8px; margin-top: 11px; border-radius: 50%; background: var(--gold); }

/* Tale of the tape */
.tape-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 24px; }
.tape-head a { font-weight: 700; }
.tape { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); gap: 24px; }
.tape-value { font: 600 clamp(36px, 5vw, 48px)/1 var(--serif); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.tape-label { color: var(--muted); margin-top: 6px; overflow-wrap: anywhere; }
.tape-label a { color: var(--muted); }

/* Subscribe */
.subscribe { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.subscribe form { width: 100%; max-width: 520px; display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.pill-input { flex: 1 1 240px; min-height: 54px; padding: 0 20px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); color: var(--text); font: inherit; }
.subscribe .btn-outline { min-height: 54px; padding: 0 26px; flex: 0 0 auto; }

/* Forms */
input, select, textarea, button { font: inherit; }
.form { max-width: 720px; margin: 0 auto; display: flex; flex-direction: column; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field > label, .field > legend, .label { font-weight: 700; }
fieldset.field { border: 0; padding: 0; margin: 0; min-width: 0; }
.input {
  width: 100%; min-height: 48px; padding: 10px 14px; border: 1px solid var(--border); border-radius: 10px;
  background: var(--bg); color: var(--text);
}
.input:focus { border-color: var(--gold); outline: none; box-shadow: 0 0 0 3px var(--gold-soft); }
select.input { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 40px; }
textarea.input { min-height: 96px; resize: vertical; }
input[type=file].input { padding: 10px; }
.hint { color: var(--muted); font-size: 14px; }
.error { color: var(--danger); font-size: 14px; font-weight: 700; }
.alert { border: 1px solid var(--danger); color: var(--text); background: rgba(255, 138, 128, .08); padding: 12px 16px; border-radius: 10px; }
.notice { border: 1px solid var(--border); background: var(--surface); padding: 12px 16px; border-radius: 10px; }
.choice { display: flex; flex-wrap: wrap; gap: 8px; }
.choice label { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border: 1px solid var(--border); border-radius: 999px; background: var(--bg); cursor: pointer; font-weight: 500; }
.choice label:has(input:checked) { border-color: var(--gold); color: var(--gold); }
.choice input { accent-color: var(--gold); width: 18px; height: 18px; margin: 0; }
.check { display: flex; gap: 12px; align-items: flex-start; font-weight: 500; cursor: pointer; }
.check input { accent-color: var(--gold); width: 20px; height: 20px; margin: 2px 0 0; flex: none; }
.check a { color: var(--gold); }
.counter { float: right; color: var(--faint); font-weight: 500; font-size: 13px; }
.price-tag { font: 600 clamp(64px, 14vw, 120px)/1 var(--serif); color: var(--gold); font-variant-numeric: tabular-nums; }
.value-panel { display: flex; flex-direction: column; gap: 6px; }
.value-panel p { color: var(--text); }
.preview { display: flex; flex-direction: column; gap: 8px; }
.form-card { display: flex; flex-direction: column; gap: 20px; }

/* Tables (Fight Record, giving, admin) */
.table-box { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--border); border-radius: 16px; background: var(--surface); }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
th, td { padding: 12px 10px; text-align: left; border-bottom: 1px solid var(--border); white-space: nowrap; }
th { font: 800 11px/1.3 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--gold); }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
tbody tr:last-child td { border-bottom: 0; }
td.wrap-cell { white-space: normal; min-width: 150px; overflow-wrap: anywhere; }
tr.is-current td { background: rgba(229, 182, 75, .07); }
tr.is-current td:first-child { box-shadow: inset 3px 0 0 var(--gold); }
.current-tag { display: inline-flex; align-items: center; gap: 6px; color: var(--gold); font-weight: 800; }
.removed-name { color: var(--faint); font-style: italic; }
.filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; margin-bottom: 16px; }
.filters .field { flex: 1 1 180px; }
.filters .btn-outline { min-height: 48px; }
.pager { display: flex; justify-content: space-between; gap: 12px; margin-top: 16px; }
.pager a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; }

/* Crowned */
.celebrate { display: flex; flex-direction: column; align-items: center; gap: 18px; text-align: center; padding: clamp(24px, 6vw, 72px) 0; }
.share { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }

/* Prose pages (terms, privacy) */
.prose { max-width: 720px; margin: 0 auto; }
.prose h2 { font: 600 26px/1.2 var(--serif); margin: 36px 0 10px; }
.prose p, .prose ul { color: var(--muted); margin: 0 0 12px; }
.prose li { margin-bottom: 6px; }
.prose strong { color: var(--text); }
.prose a { color: var(--gold); }

/* Admin (plain) */
.admin table { font-size: 14px; }
.admin td form { display: flex; gap: 6px; }
.admin .input { min-height: 36px; padding: 4px 8px; }
.admin button { min-height: 36px; padding: 0 12px; border-radius: 8px; border: 1px solid var(--gold); background: transparent; color: var(--gold); font-weight: 700; cursor: pointer; }
.admin h2 { font: 600 24px/1.2 var(--serif); margin: 32px 0 12px; }
.rules-sub { margin: 8px auto 36px; max-width: 520px; }
[data-gap] { margin-top: 20px; }
[data-gap-b] { margin-bottom: 16px; }

.hall table { font-size: 14px; }
