/* ============================================================
   BRATWURST BRACKETOLOGY 2026
   Colors: LGCM Maroon #812529, Tan #C9A87C, Cream, White
   Fonts: Oswald (display) + Lato (body)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@400;500;600;700&family=Lato:wght@300;400;700&display=swap');

/* ── Variables ─────────────────────────────────────────────── */
:root {
  --brand:        #812529;
  --brand-dark:   #5C1A1D;
  --brand-light:  #F5E8E9;
  --tan:          #C9A87C;
  --tan-light:    #E8D5B7;
  --tan-pale:     #F5EDE0;
  --cream:        #FAF6F0;
  --dark:         #1C1917;
  --charcoal:     #292524;
  --warm-gray:    #78716C;
  --light-gray:   #E7E5E4;
  --border:       #D6C9B8;
  --white:        #FFFFFF;
  --green:        #15803D;
  --green-light:  #DCFCE7;

  --region-originals: #1E3A8A;
  --region-cheese:    #92400E;
  --region-fire:      #991B1B;
  --region-wall:      #4C1D95;

  --font-display: 'Oswald', sans-serif;
  --font-body:    'Lato', Arial, sans-serif;

  --radius:     6px;
  --radius-lg:  12px;
  --shadow:     0 2px 8px rgba(0,0,0,0.1);
  --shadow-lg:  0 8px 32px rgba(0,0,0,0.15);
}

/* ── Reset ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--dark);
  min-height: 100vh;
  overflow-x: hidden;
}
button { cursor: pointer; font-family: var(--font-display); }
a { color: var(--brand); }
input { font-family: var(--font-body); }

/* ── Header ────────────────────────────────────────────────── */
.site-header {
  background: var(--brand-dark);
  border-bottom: 4px solid var(--tan);
}
.header-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 18px 24px 16px;
  display: flex;
  align-items: center;
  gap: 18px;
}
.header-logo img {
  height: 60px;
  width: 60px;
  border-radius: 50%;
  mix-blend-mode: screen;
  flex-shrink: 0;
}
.header-text h1 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3.5vw, 2.4rem);
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.02em;
  line-height: 1.1;
  text-transform: uppercase;
}
.header-text h1 em {
  font-style: normal;
  color: var(--tan-light);
}
.header-text p {
  font-family: var(--font-body);
  font-size: 0.82rem;
  color: rgba(255,255,255,0.6);
  margin-top: 4px;
  letter-spacing: 0.02em;
}

/* ── Round Banner ──────────────────────────────────────────── */
.round-banner {
  background: var(--dark);
  padding: 13px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  text-align: center;
  min-height: 52px;
}
.round-banner.active   { background: var(--brand); }
.round-banner.voted    { background: var(--charcoal); }
.round-banner.complete { background: var(--tan); }
.round-banner.complete .banner-text { color: var(--dark); }
.banner-text {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--white);
  letter-spacing: 0.04em;
}
.banner-text strong { color: var(--tan-light); }
.round-banner.active .banner-text strong { color: var(--white); font-size: 1.05em; }

/* ── Buttons ───────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 11px 26px;
  border: none;
  border-radius: var(--radius);
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: all 0.15s ease;
  text-decoration: none;
}
.btn-vote {
  background: var(--tan);
  color: var(--dark);
  padding: 9px 22px;
  font-size: 0.88rem;
}
.btn-vote:hover { background: var(--tan-light); transform: translateY(-1px); }
.btn-primary {
  background: var(--brand);
  color: var(--white);
  width: 100%;
  justify-content: center;
  font-size: 1.05rem;
  padding: 15px;
}
.btn-primary:hover:not(:disabled) { background: var(--brand-dark); transform: translateY(-1px); }
.btn-primary:disabled { background: var(--warm-gray); cursor: not-allowed; opacity: 0.7; }
.btn-secondary {
  background: transparent;
  color: var(--brand);
  border: 2px solid var(--brand);
  padding: 10px 24px;
}
.btn-secondary:hover { background: var(--brand-light); }

/* ── Views ─────────────────────────────────────────────────── */
.main-content { position: relative; overflow: hidden; }
.view { display: none; width: 100%; animation: slideIn 0.3s ease; }
.view.active { display: block; }
#view-register.active, #view-thanks.active, #view-already-voted.active {
  display: flex;
}
@keyframes slideIn {
  from { opacity: 0; transform: translateX(30px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* ── Bracket Wrapper ───────────────────────────────────────── */
#view-bracket { padding: 28px 0 48px; }

.bracket-intro {
  text-align: center;
  padding: 0 24px 24px;
}
.bracket-intro h2 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--charcoal);
}
.bracket-intro p {
  color: var(--warm-gray);
  font-size: 0.9rem;
  margin-top: 6px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}
.voting-cta {
  margin-top: 14px;
}

.bracket-scroll {
  overflow-x: auto;
  padding: 0 20px 24px;
  -webkit-overflow-scrolling: touch;
}
.bracket-scroll::-webkit-scrollbar { height: 5px; }
.bracket-scroll::-webkit-scrollbar-track { background: var(--light-gray); }
.bracket-scroll::-webkit-scrollbar-thumb { background: var(--tan); border-radius: 3px; }

.swipe-hint {
  text-align: center;
  font-size: 0.78rem;
  color: var(--warm-gray);
  padding-bottom: 6px;
  display: none;
}
@media (max-width: 900px) { .swipe-hint { display: block; } }

/* ── Bracket — Rounds as Columns ───────────────────────────── */
.bracket-container {
  min-width: 840px;
  display: inline-block;
}

.bracket-col-headers {
  display: flex;
  align-items: flex-end;
  margin-bottom: 0;
}
.bch {
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--warm-gray);
  text-align: center;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--border);
}
.bch.r16-hdr   { width: 210px; }
.bch.e8-hdr    { width: 185px; }
.bch.ff-hdr    { width: 165px; }
.bch.champ-hdr { flex: 1; color: var(--tan); border-bottom-color: var(--tan); }
.bch-gap       { width: 38px; border-bottom: 2px solid var(--border); flex-shrink: 0; }

.bracket-body {
  display: flex;
  align-items: stretch;
  height: 720px;
}

.round-col {
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
}
.r16-col   { width: 210px; }
.e8-col    { width: 185px; }
.ff-col    { width: 165px; }
.champ-col { width: 150px; align-items: center; justify-content: center; }

.conn-col {
  width: 38px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
}

/* Slots */
.slot {
  display: flex;
  align-items: center;
  padding: 5px 0;
}
.slot.s1 { flex: 1; }
.slot.s2 { flex: 2; }
.slot.s4 { flex: 4; }
.slot.s8 {
  flex: 8;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

/* Connector pairs */
.conn-pair {
  display: flex;
  flex-direction: column;
}
.conn-pair.s2 { flex: 2; }
.conn-pair.s4 { flex: 4; }
.conn-pair.s8 { flex: 8; }

.conn-half {
  flex: 1;
  border-right: 2px solid var(--border);
}
.conn-half.top { border-bottom: 2px solid var(--border); }
.conn-half.bot { border-top:    2px solid var(--border); }

/* Champ crown */
.champ-crown {
  text-align: center;
}
.champ-crown span {
  font-size: 1.5rem;
  display: block;
  line-height: 1;
}
.champ-crown small {
  font-family: var(--font-display);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--tan);
  display: block;
  margin-top: 4px;
}

/* ── Matchup Box ───────────────────────────────────────────── */
.matchup-box {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  width: 100%;
  transition: border-color 0.15s, box-shadow 0.15s;
  position: relative;
}
.matchup-box.active-matchup {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(129, 37, 41, 0.12);
  cursor: pointer;
}
.matchup-box.active-matchup:hover {
  border-color: var(--brand-dark);
  transform: scale(1.02);
}
.matchup-box.tbd {
  background: var(--light-gray);
  border-color: var(--light-gray);
}

/* Region left borders */
.matchup-box[data-region="Wisconsin Originals"] { border-left: 3px solid var(--region-originals); }
.matchup-box[data-region="Cheese Country"]      { border-left: 3px solid var(--region-cheese); }
.matchup-box[data-region="Fire Starters"]       { border-left: 3px solid var(--region-fire); }
.matchup-box[data-region="Off the Wall"]        { border-left: 3px solid var(--region-wall); }
.matchup-box[data-region="Championship"]        { border-left: 3px solid var(--tan); }
.matchup-box[data-region="Originals/Cheese"]    { border-left: 3px solid var(--region-originals); }
.matchup-box[data-region="Fire/Wall"]           { border-left: 3px solid var(--region-fire); }

.bracket-team {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 5px 7px 5px 8px;
  min-height: 31px;
}
.bracket-team:first-child { border-bottom: 1px solid var(--light-gray); }
.bracket-team.winner { background: var(--green-light); }
.bracket-team.loser  { opacity: 0.4; text-decoration: line-through; }
.bracket-team.tbd-team {
  justify-content: center;
  color: var(--warm-gray);
  font-style: italic;
}
.team-seed {
  font-family: var(--font-display);
  font-size: 0.62rem;
  font-weight: 600;
  color: var(--warm-gray);
  min-width: 14px;
  text-align: right;
  flex-shrink: 0;
}
.team-name {
  font-size: 0.72rem;
  line-height: 1.2;
  color: var(--dark);
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.winner .team-name { font-weight: 700; color: var(--green); }
.winner-icon { font-size: 0.7rem; flex-shrink: 0; }

/* Flavor info button */
.flavor-info-btn {
  background: none;
  border: none;
  font-size: 0.65rem;
  color: var(--warm-gray);
  padding: 0 2px;
  cursor: pointer;
  flex-shrink: 0;
  font-family: sans-serif;
  line-height: 1;
  border-radius: 50%;
  width: 14px;
  height: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.1s, color 0.1s;
}
.flavor-info-btn:hover { background: var(--brand-light); color: var(--brand); }

.active-label {
  font-family: var(--font-display);
  font-size: 0.52rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brand);
  text-align: center;
  padding: 2px 4px;
  background: var(--brand-light);
}

/* ── Flavor Tooltip ────────────────────────────────────────── */
.flavor-tooltip {
  position: fixed;
  z-index: 500;
  background: var(--white);
  border: 2px solid var(--brand);
  border-radius: var(--radius-lg);
  padding: 16px;
  max-width: 280px;
  box-shadow: var(--shadow-lg);
  pointer-events: auto;
}
.flavor-tooltip.hidden { display: none; }
.tt-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}
.tt-region-tag {
  font-family: var(--font-display);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 20px;
  color: white;
  white-space: nowrap;
}
.tt-region-tag.originals { background: var(--region-originals); }
.tt-region-tag.cheese    { background: var(--region-cheese); }
.tt-region-tag.fire      { background: var(--region-fire); }
.tt-region-tag.wall      { background: var(--region-wall); }
.tt-region-tag.snub      { background: var(--warm-gray); }
.tt-close {
  background: none;
  border: none;
  font-size: 1rem;
  color: var(--warm-gray);
  cursor: pointer;
  line-height: 1;
  padding: 0;
  font-family: sans-serif;
}
.tt-close:hover { color: var(--brand); }
.tt-name {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--dark);
  margin-bottom: 8px;
  line-height: 1.2;
}
.tt-blurb {
  font-size: 0.82rem;
  color: var(--warm-gray);
  line-height: 1.5;
  margin-bottom: 12px;
}
.tt-wp-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 5px;
}
.tt-wp-label {
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--warm-gray);
}
.tt-wp-score {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--brand);
}
.tt-wp-bar-wrap {
  height: 6px;
  background: var(--light-gray);
  border-radius: 3px;
  overflow: hidden;
}
.tt-wp-bar-fill {
  height: 100%;
  background: var(--brand);
  border-radius: 3px;
  transition: width 0.4s ease;
}

/* ── Wurst Leaderboard ─────────────────────────────────────── */
.wurst-section {
  max-width: 760px;
  margin: 36px auto 0;
  padding: 0 20px;
}
.wurst-section h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--brand-dark);
  margin-bottom: 4px;
}
.wurst-section .wurst-explainer {
  font-size: 0.82rem;
  color: var(--warm-gray);
  margin-bottom: 16px;
  line-height: 1.5;
}
.wurst-section .wurst-explainer strong { color: var(--brand); }

.wurst-header-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 8px 6px;
  border-bottom: 2px solid var(--border);
  margin-bottom: 4px;
}
.wh-rank  { font-family: var(--font-display); font-size: 0.62rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--warm-gray); width: 28px; text-align: center; }
.wh-name  { font-family: var(--font-display); font-size: 0.62rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--warm-gray); flex: 1; }
.wh-wp    { font-family: var(--font-display); font-size: 0.62rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--warm-gray); width: 80px; text-align: right; }

.wurst-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 8px;
  border-bottom: 1px solid var(--light-gray);
  transition: background 0.1s;
}
.wurst-row:hover { background: var(--tan-pale); }
.wurst-row.bracket-entry { }
.wurst-row.snub-entry { opacity: 0.75; }
.wurst-row.limburger  { opacity: 0.5; }

.wr-rank {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--warm-gray);
  width: 28px;
  text-align: center;
  flex-shrink: 0;
}
.wr-name {
  flex: 1;
  font-size: 0.85rem;
  color: var(--dark);
  font-weight: 700;
}
.wr-tag {
  font-family: var(--font-display);
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: 20px;
  flex-shrink: 0;
}
.wr-tag.in  { background: var(--brand-light); color: var(--brand); }
.wr-tag.out { background: var(--light-gray); color: var(--warm-gray); }
.wr-tag.dnp { background: #FEF3C7; color: #92400E; }
.wr-wp-wrap { width: 80px; flex-shrink: 0; display: flex; align-items: center; gap: 6px; justify-content: flex-end; }
.wr-bar { flex: 1; height: 4px; background: var(--light-gray); border-radius: 2px; overflow: hidden; max-width: 44px; }
.wr-bar-fill { height: 100%; background: var(--brand); border-radius: 2px; }
.wr-score {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--brand);
  width: 24px;
  text-align: right;
  flex-shrink: 0;
}
.wurst-row.limburger .wr-score { color: var(--warm-gray); }
.wurst-row.limburger .wr-bar-fill { background: var(--warm-gray); }

.wurst-section-divider {
  font-family: var(--font-display);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--warm-gray);
  padding: 10px 8px 4px;
  border-bottom: 1px dashed var(--border);
  margin-bottom: 4px;
}

/* ── Round Schedule ───────────────────────────────────────── */
.round-schedule {
  display: flex;
  gap: 10px;
  padding: 14px 24px;
  background: var(--charcoal);
  overflow-x: auto;
  justify-content: center;
  flex-wrap: wrap;
}
.schedule-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 7px 14px;
  border-radius: var(--radius);
  min-width: 110px;
}
.schedule-item.active-round  { background: var(--brand); }
.schedule-item.past-round    { background: rgba(255,255,255,0.1); }
.schedule-item.future-round  { background: rgba(255,255,255,0.05); }
.schedule-round-name {
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--white);
}
.schedule-dates {
  font-size: 0.68rem;
  color: rgba(255,255,255,0.55);
  margin-top: 2px;
}

/* ── Registration ──────────────────────────────────────────── */
#view-register {
  min-height: 70vh;
  align-items: center;
  justify-content: center;
  padding: 40px 16px;
}
.register-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 38px 34px;
  max-width: 460px;
  width: 100%;
  box-shadow: var(--shadow-lg);
}
.register-card h2 {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--brand-dark);
  margin-bottom: 8px;
}
.register-card .register-sub {
  color: var(--warm-gray);
  font-size: 0.88rem;
  margin-bottom: 24px;
  line-height: 1.5;
}
.prize-pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}
.prize-pill {
  background: var(--tan-pale);
  border: 1px solid var(--tan-light);
  border-radius: 20px;
  padding: 4px 12px;
  font-size: 0.78rem;
  color: var(--dark);
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.04em;
}
.form-group { margin-bottom: 16px; }
.form-group label {
  display: block;
  font-size: 0.78rem;
  font-family: var(--font-display);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--charcoal);
  margin-bottom: 5px;
}
.form-group input {
  width: 100%;
  padding: 11px 13px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.95rem;
  background: var(--cream);
  transition: border-color 0.15s;
}
.form-group input:focus { outline: none; border-color: var(--brand); background: var(--white); }
.consent-text {
  font-size: 0.74rem;
  color: var(--warm-gray);
  line-height: 1.5;
  margin-bottom: 18px;
  padding: 11px 12px;
  background: var(--light-gray);
  border-radius: var(--radius);
}
.error-msg {
  background: var(--brand-light);
  color: var(--brand-dark);
  padding: 10px 13px;
  border-radius: var(--radius);
  font-size: 0.84rem;
  margin-bottom: 12px;
}
.back-link {
  display: block;
  text-align: center;
  margin-top: 14px;
  font-size: 0.84rem;
  color: var(--warm-gray);
  cursor: pointer;
}
.back-link:hover { color: var(--brand); }

/* ── Voting View ───────────────────────────────────────────── */
#view-vote {
  padding: 28px 16px 80px;
  max-width: 720px;
  margin: 0 auto;
}
.vote-header {
  text-align: center;
  margin-bottom: 28px;
}
.vote-header h2 {
  font-family: var(--font-display);
  font-size: 1.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--brand-dark);
}
.vote-header p { color: var(--warm-gray); margin-top: 6px; }
.vote-progress {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
  margin-top: 12px;
}
.progress-bar {
  height: 5px;
  background: var(--light-gray);
  border-radius: 3px;
  flex: 1;
  max-width: 200px;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  background: var(--brand);
  border-radius: 3px;
  transition: width 0.3s ease;
}
.progress-text {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--warm-gray);
  letter-spacing: 0.05em;
}

.voting-region { margin-bottom: 28px; }
.voting-region-header {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 8px 13px;
  border-radius: var(--radius) var(--radius) 0 0;
  color: var(--white);
  display: flex;
  align-items: center;
  gap: 8px;
}
.voting-region-header.originals { background: var(--region-originals); }
.voting-region-header.cheese    { background: var(--region-cheese); }
.voting-region-header.fire      { background: var(--region-fire); }
.voting-region-header.wall      { background: var(--region-wall); }

.vote-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-top: none;
  padding: 18px;
  margin-bottom: 2px;
}
.vote-card:last-child { border-radius: 0 0 var(--radius) var(--radius); }
.vote-matchup-label {
  font-size: 0.74rem;
  font-family: var(--font-display);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--warm-gray);
  margin-bottom: 12px;
}
.vote-options {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 10px;
  align-items: center;
}
.vote-option {
  background: var(--cream);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 13px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  text-align: center;
  transition: all 0.15s;
  cursor: pointer;
  min-height: 76px;
  justify-content: center;
  position: relative;
}
.vote-option:hover { border-color: var(--brand); background: var(--brand-light); transform: translateY(-1px); }
.vote-option.selected {
  border-color: var(--brand);
  background: var(--brand-light);
  box-shadow: 0 0 0 3px rgba(129,37,41,0.15);
}
.vote-option.selected .option-seed { color: var(--brand); }
.vote-option.selected .option-name { color: var(--brand-dark); font-weight: 700; }
.option-seed {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--warm-gray);
  letter-spacing: 0.04em;
}
.option-name { font-size: 0.88rem; line-height: 1.3; color: var(--dark); }
.option-info-btn {
  position: absolute;
  top: 6px;
  right: 6px;
  background: none;
  border: none;
  font-size: 0.65rem;
  color: var(--warm-gray);
  cursor: pointer;
  padding: 2px 4px;
  font-family: sans-serif;
  border-radius: 3px;
}
.option-info-btn:hover { color: var(--brand); background: rgba(129,37,41,0.08); }

.vs-divider {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--warm-gray);
  letter-spacing: 0.1em;
}

.vote-footer {
  position: sticky;
  bottom: 0;
  background: var(--cream);
  padding: 14px 0 6px;
  border-top: 2px solid var(--border);
  margin-top: 20px;
}

/* ── Thanks / Already Voted ────────────────────────────────── */
#view-thanks, #view-already-voted {
  min-height: 70vh;
  align-items: center;
  justify-content: center;
  padding: 40px 16px;
}
.thanks-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 44px 34px;
  max-width: 480px;
  width: 100%;
  box-shadow: var(--shadow-lg);
  text-align: center;
}
.thanks-icon { font-size: 2.8rem; margin-bottom: 14px; }
.thanks-card h2 {
  font-family: var(--font-display);
  font-size: 1.9rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--brand-dark);
  margin-bottom: 14px;
}
.thanks-card p { color: var(--warm-gray); line-height: 1.6; margin-bottom: 10px; }
.prize-callout {
  background: var(--tan-pale);
  border: 2px solid var(--tan-light);
  border-radius: var(--radius);
  padding: 14px;
  margin: 18px 0;
}
.prize-callout strong {
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--dark);
  display: block;
  margin-bottom: 4px;
}
.share-section {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--light-gray);
}
.share-section p { font-size: 0.84rem; margin-bottom: 10px; }

/* ── Footer ────────────────────────────────────────────────── */
.site-footer {
  background: var(--charcoal);
  border-top: 4px solid var(--tan);
  padding: 26px 24px;
  text-align: center;
  margin-top: 48px;
}
.site-footer p { color: rgba(255,255,255,0.55); font-size: 0.78rem; line-height: 1.8; }
.site-footer strong { color: var(--tan-light); font-family: var(--font-display); font-size: 0.88rem; letter-spacing: 0.05em; }
.site-footer a { color: var(--tan-light); }

/* ── Modals ────────────────────────────────────────────────── */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.modal-overlay.open { display: flex; }
.modal-box {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 30px;
  max-width: 500px;
  width: 100%;
  max-height: 80vh;
  overflow-y: auto;
}
.modal-box h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.modal-box p { font-size: 0.84rem; line-height: 1.7; color: var(--warm-gray); margin-bottom: 10px; }
.modal-close { float: right; background: none; border: none; font-size: 1.25rem; cursor: pointer; color: var(--warm-gray); }

/* ── Loading ───────────────────────────────────────────────── */
.loading-state {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 24px;
  gap: 10px;
}
.loading-dot {
  width: 9px; height: 9px;
  background: var(--brand);
  border-radius: 50%;
  animation: bounce 0.8s ease-in-out infinite;
}
.loading-dot:nth-child(2) { animation-delay: 0.15s; }
.loading-dot:nth-child(3) { animation-delay: 0.3s; }
@keyframes bounce {
  0%, 80%, 100% { transform: scale(0.6); opacity: 0.4; }
  40%           { transform: scale(1);   opacity: 1; }
}

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 640px) {
  .header-inner { padding: 12px 14px; }
  .header-text h1 { font-size: 1.25rem; }
  .register-card, .thanks-card { padding: 26px 18px; }
  .vote-options { grid-template-columns: 1fr; gap: 8px; }
  .vs-divider { text-align: center; }
  #view-vote { padding: 20px 12px 80px; }
  .flavor-tooltip { max-width: 88vw; }
}

/* ============================================================
   NEW: Bottom Nav, Fighter Cards, Bottom Sheet, Home Link
   ============================================================ */

/* ── Header as Home Link ───────────────────────────────────── */
.header-home-link {
  display: flex;
  align-items: center;
  gap: 18px;
  text-decoration: none;
  cursor: pointer;
  flex: 1;
  border-radius: var(--radius);
  transition: opacity 0.15s;
}
.header-home-link:hover { opacity: 0.88; }

/* ── Bottom Nav ────────────────────────────────────────────── */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 62px;
  background: var(--charcoal);
  border-top: 3px solid var(--tan);
  display: flex;
  align-items: stretch;
  z-index: 200;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.25);
}
.bottom-nav-btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  background: none;
  border: none;
  color: rgba(255,255,255,0.5);
  font-family: var(--font-display);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 0.15s, background 0.15s;
  padding: 8px 4px;
  border-right: 1px solid rgba(255,255,255,0.06);
}
.bottom-nav-btn:last-child { border-right: none; }
.bottom-nav-btn:hover { background: rgba(255,255,255,0.06); color: var(--white); }
.bottom-nav-btn.active { color: var(--tan-light); }
.bottom-nav-btn.active .nav-icon { transform: scale(1.15); }
.nav-icon { font-size: 1.3rem; line-height: 1; transition: transform 0.15s; }
.nav-vote-btn { background: var(--brand) !important; color: var(--white) !important; }
.nav-vote-btn:hover { background: var(--brand-dark) !important; }
.nav-vote-btn.voted { background: var(--charcoal) !important; color: rgba(255,255,255,0.4) !important; cursor: default; }

/* Pad page bottom so content isn't hidden behind nav */
body { padding-bottom: 62px; }

/* ── Vote-above-bracket CTA ────────────────────────────────── */
.bracket-vote-cta {
  text-align: center;
  padding: 0 24px 20px;
}
.bracket-vote-cta p {
  font-size: 0.85rem;
  color: var(--warm-gray);
  margin-bottom: 10px;
}

/* ── Choose Your Fighter Vote Cards ────────────────────────── */
.vote-card-fighter {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-top: none;
  padding: 16px;
  margin-bottom: 2px;
}
.vote-card-fighter:last-child { border-radius: 0 0 var(--radius) var(--radius); }

.vote-matchup-label {
  font-size: 0.74rem;
  font-family: var(--font-display);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--warm-gray);
  margin-bottom: 10px;
}

.fighter-options {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 10px;
  align-items: center;
}

.fighter-option {
  background: var(--cream);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
  transition: all 0.15s;
  cursor: pointer;
  position: relative;
}
.fighter-option:hover {
  border-color: var(--brand);
  background: var(--brand-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.fighter-option.selected {
  border-color: var(--brand);
  background: var(--brand-light);
  box-shadow: 0 0 0 3px rgba(129,37,41,0.18);
}
.fighter-option.selected .fighter-name { color: var(--brand-dark); font-weight: 700; }
.fighter-option.selected .fighter-seed { color: var(--brand); }

.fighter-icon {
  width: 80px;
  height: 80px;
  object-fit: contain;
  display: block;
  transition: transform 0.15s;
}
.fighter-option:hover .fighter-icon { transform: scale(1.05); }
.fighter-option.selected .fighter-icon { transform: scale(1.08); }

.fighter-seed {
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--warm-gray);
  letter-spacing: 0.05em;
}
.fighter-name {
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--dark);
}
.fighter-selected-check {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 20px;
  height: 20px;
  background: var(--brand);
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  color: white;
}
.fighter-option.selected .fighter-selected-check { display: flex; }

.fighter-info-btn {
  font-size: 0.72rem;
  color: var(--warm-gray);
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
  padding: 2px 0;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.fighter-info-btn:hover { color: var(--brand); }

.vs-badge {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--warm-gray);
  letter-spacing: 0.12em;
  background: var(--light-gray);
  border-radius: 50%;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* ── Bottom Sheet (Scouting Report) ────────────────────────── */
.sheet-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  z-index: 600;
  align-items: flex-end;
}
.sheet-overlay.open { display: flex; }

.bottom-sheet {
  background: var(--white);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  padding: 24px 24px 40px;
  width: 100%;
  max-height: 70vh;
  overflow-y: auto;
  animation: sheetUp 0.28s ease;
}
@keyframes sheetUp {
  from { transform: translateY(100%); }
  to   { transform: translateY(0); }
}

.sheet-handle {
  width: 36px;
  height: 4px;
  background: var(--border);
  border-radius: 2px;
  margin: 0 auto 20px;
}
.sheet-region-tag {
  font-family: var(--font-display);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 20px;
  color: white;
  display: inline-block;
  margin-bottom: 12px;
}
.sheet-region-tag.originals { background: var(--region-originals); }
.sheet-region-tag.cheese    { background: var(--region-cheese); }
.sheet-region-tag.fire      { background: var(--region-fire); }
.sheet-region-tag.wall      { background: var(--region-wall); }
.sheet-region-tag.snub      { background: var(--warm-gray); }

.sheet-top {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 16px;
}
.sheet-icon {
  width: 90px;
  height: 90px;
  object-fit: contain;
  flex-shrink: 0;
}
.sheet-text-block { flex: 1; }
.sheet-name {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--dark);
  line-height: 1.2;
  margin-bottom: 8px;
}
.sheet-blurb {
  font-size: 0.88rem;
  color: var(--warm-gray);
  line-height: 1.6;
}
.sheet-wp-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
  padding-top: 14px;
  border-top: 1px solid var(--light-gray);
}
.sheet-wp-label {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--warm-gray);
}
.sheet-wp-score {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--brand);
}
.sheet-wp-bar-wrap {
  height: 8px;
  background: var(--light-gray);
  border-radius: 4px;
  overflow: hidden;
}
.sheet-wp-bar-fill {
  height: 100%;
  background: var(--brand);
  border-radius: 4px;
  transition: width 0.4s ease;
}
.sheet-close-btn {
  display: block;
  width: 100%;
  margin-top: 20px;
  background: var(--light-gray);
  border: none;
  border-radius: var(--radius);
  padding: 12px;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--charcoal);
  cursor: pointer;
}
.sheet-close-btn:hover { background: var(--border); }

/* Desktop: show old-style tooltip, hide sheet overlay trigger */
@media (min-width: 641px) {
  .bottom-nav { display: none; }
  body { padding-bottom: 0; }
  .sheet-overlay { align-items: center; justify-content: center; }
  .bottom-sheet {
    border-radius: var(--radius-lg);
    max-width: 420px;
    padding: 28px;
    animation: none;
  }
}

/* ── Region Group Labels (Bracket R16) ─────────────────────── */
.region-group {
  display: flex;
  flex-direction: column;
  flex: 2;
}
.region-group-label {
  font-family: var(--font-display);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white);
  padding: 4px 8px;
  border-radius: var(--radius) var(--radius) 0 0;
  white-space: nowrap;
}
.region-group-label.originals { background: var(--region-originals); }
.region-group-label.cheese    { background: var(--region-cheese); color: var(--dark); }
.region-group-label.fire      { background: var(--region-fire); }
.region-group-label.wall      { background: var(--region-wall); }

/* ── Scouting Report Button (Rankings) ─────────────────────── */
.scout-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--brand-light);
  color: var(--brand);
  border: 1px solid rgba(129,37,41,0.2);
  border-radius: 20px;
  padding: 2px 9px;
  font-family: var(--font-display);
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background 0.15s, color 0.15s;
  margin-left: 6px;
  vertical-align: middle;
}
.scout-btn:hover {
  background: var(--brand);
  color: var(--white);
}
.scout-btn.snub {
  background: var(--light-gray);
  color: var(--warm-gray);
  border-color: var(--border);
}
.scout-btn.snub:hover {
  background: var(--warm-gray);
  color: var(--white);
}
