/* ================================================================
   TICKLE FIGHT TUESDAY — Shared Styles
   Mobile-first, max 480px — CryptoFightClub theme
   ================================================================ */

@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Special+Elite&display=swap');

*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

:root {
  --bg:        #080202;
  --surface:   rgba(14,4,4,0.97);
  --surface2:  rgba(22,6,6,0.98);
  --surface3:  rgba(32,8,8,0.99);
  --primary:   #cc0000;
  --primary2:  #ff1a00;
  --gold:      #c87c00;
  --gold2:     #e89a10;
  --pink:      #ff1a00;
  --green:     #4ab840;
  --red:       #cc0000;
  --text:      #e0dcd8;
  --text-dim:  rgba(224,220,216,0.55);
  --text-faint:rgba(224,220,216,0.22);
  --border:    rgba(160,0,0,0.45);
  --glow-red:  rgba(200,0,0,0.45);
  --glow-gold: rgba(200,124,0,0.55);

  /* Legacy aliases so existing rules don't break */
  --glow-pur:  rgba(200,0,0,0.4);
}

html, body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Special Elite', cursive;
  min-height: 100vh;
  overscroll-behavior: none;
  -webkit-font-smoothing: antialiased;
}

/* Public page background image */
body.public-bg {
  background-image: url('img/background.jpg');
  background-size: 100% auto;
  background-position: top center;
  background-attachment: local;
  background-repeat: no-repeat;
  background-color: var(--bg);
  padding-top: 0;
}


body {
  max-width: 480px;
  margin: 0 auto;
  padding-bottom: 60px;
  position: relative;
  z-index: 1;
}

/* ── Scrollbar ─────────────────────────────────────────────── */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: rgba(160,0,0,0.5); border-radius: 2px; }

/* ── Site Header (Public) ───────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 9997;
  background: linear-gradient(160deg, #1a0202 0%, #0a0101 100%);
  border-bottom: 2px solid var(--primary);
  padding: 14px 16px 12px;
  text-align: center;
  box-shadow: 0 4px 32px rgba(180,0,0,0.35);
}

.site-header h1 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.7em;
  font-weight: 400;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: var(--primary2);
  text-shadow: 0 0 18px rgba(220,0,0,0.7), 2px 2px 0 #000;
  animation: fluorescent 12s linear infinite;
}

.site-header .tagline {
  font-family: 'Special Elite', cursive;
  font-size: 0.68em;
  letter-spacing: 2px;
  color: var(--text-dim);
  text-transform: uppercase;
  margin-top: 2px;
}

/* ── All Time Top Tickler strip (inside site-header) ─────────── */
.most-tickled-strip {
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px solid rgba(160,0,0,0.3);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px;
  line-height: 1.3;
}

.mt-label {
  font-family: 'Special Elite', cursive !important;
  font-size: 0.72em !important;
  font-weight: 700 !important;
  color: #ffffff !important;
  letter-spacing: 1px;
  white-space: nowrap;
}

/* Ticker: bold red + flicker — also enforced inline via JS */
.mt-ticker {
  font-family: 'Bebas Neue', sans-serif !important;
  font-size: 1em !important;
  color: #ff1a00 !important;
  letter-spacing: 2px;
  text-shadow: 0 0 10px rgba(220,0,0,0.8);
  animation: fluorescent 12s linear infinite;
  white-space: nowrap;
}

/* Dollar amount: glowing green + flicker — also enforced inline via JS */
.mt-dollar {
  font-family: 'Bebas Neue', sans-serif !important;
  font-size: 1em !important;
  color: #39d86a !important;
  letter-spacing: 2px;
  text-shadow: 0 0 10px rgba(57,216,106,0.85), 0 0 22px rgba(57,216,106,0.4);
  animation: fluorescent 12s linear infinite;
  white-space: nowrap;
}

/* ── Admin: Most Tickled input block ────────────────────────── */

/* ── Admin Header ───────────────────────────────────────────── */
.admin-header {
  position: sticky;
  top: 0;
  z-index: 9997;
  background: linear-gradient(160deg, #1a0202 0%, #0a0101 100%);
  border-bottom: 2px solid var(--primary);
  padding: 14px 16px 12px;
  text-align: center;
  box-shadow: 0 4px 32px rgba(180,0,0,0.35);
}

.admin-header h1 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.4em;
  font-weight: 400;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: var(--primary2);
  text-shadow: 0 0 14px rgba(220,0,0,0.6), 2px 2px 0 #000;
}

.admin-header .tagline {
  font-family: 'Special Elite', cursive;
  font-size: 0.68em;
  letter-spacing: 2px;
  color: var(--text-dim);
  text-transform: uppercase;
  margin-top: 2px;
}

/* ── Status Badge ───────────────────────────────────────────── */
.status-strip {
  padding: 8px 16px;
  text-align: center;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  border-radius: 3px;
  font-family: 'Special Elite', cursive;
  font-size: 0.72em;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

.status-badge .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}

.status-idle    { background: rgba(160,0,0,0.08); color: var(--text-dim); }
.status-idle .dot { background: #555; }

.status-ready   { background: rgba(74,184,64,0.12); color: var(--green); }
.status-ready .dot { background: var(--green); box-shadow: 0 0 6px var(--green); }

.status-fighting { background: rgba(200,0,0,0.18); color: #ff6666; animation: pulse-badge 1.2s ease-in-out infinite; }
.status-fighting .dot { background: var(--primary2); box-shadow: 0 0 8px var(--primary2); animation: pulse-dot 1.2s ease-in-out infinite; }

.status-complete { background: rgba(200,124,0,0.15); color: var(--gold2); }
.status-complete .dot { background: var(--gold2); box-shadow: 0 0 8px var(--gold2); }

@keyframes pulse-badge {
  0%,100% { background: rgba(200,0,0,0.15); }
  50%      { background: rgba(200,0,0,0.28); }
}
@keyframes pulse-dot {
  0%,100% { transform: scale(1); }
  50%      { transform: scale(1.4); }
}

/* ── Section Layout ─────────────────────────────────────────── */
.section {
  padding: 16px 16px 0;
}

.section-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1em;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--primary2);
  text-shadow: 0 0 8px rgba(200,0,0,0.4);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.section-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* ── Coin Cards ─────────────────────────────────────────────── */
.coin-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.coin-card {
  background: var(--surface);
  border-radius: 4px;
  padding: 12px 8px 10px;
  text-align: center;
  border: 1px solid var(--border);
  transition: border-color 0.7s ease, box-shadow 0.7s ease, background 0.7s ease, transform 0.15s, opacity 0.3s;
  cursor: pointer;
  position: relative;
  user-select: none;
}

.coin-card:active { transform: scale(0.93); }

.coin-card.in-arena {
  border-color: var(--primary);
  background: var(--surface2);
  box-shadow: 0 0 8px rgba(180,0,0,0.2);
}

.coin-card.selected {
  border-color: var(--gold2);
  background: rgba(200,124,0,0.08);
}

.coin-card.eliminated {
  opacity: 0.22;
  filter: grayscale(1);
  border-color: transparent !important;
  pointer-events: none;
}

.coin-card.fighting-now {
  border-color: var(--primary2);
  animation: card-fighting 0.6s ease-in-out infinite alternate;
}

@keyframes card-fighting {
  from { box-shadow: 0 0 8px rgba(200,0,0,0.5); }
  to   { box-shadow: 0 0 22px rgba(200,0,0,0.9), 0 0 40px rgba(200,0,0,0.3); }
}

/* Slowly glows gold to preview who fights next */
.coin-card.next-fighter {
  border-color: var(--gold2);
  background: rgba(200,124,0,0.07);
  transition: border-color 0.7s ease, box-shadow 0.7s ease, background 0.7s ease;
  animation: next-fighter-glow 1.4s ease-in-out 0.7s infinite;
}

@keyframes next-fighter-glow {
  0%, 100% {
    box-shadow: 0 0 10px rgba(200,124,0,0.35);
    transform: scale(1);
  }
  50% {
    box-shadow: 0 0 28px rgba(200,124,0,0.85), 0 0 52px rgba(200,124,0,0.2);
    transform: scale(1.04);
  }
}

/* Logo image + placeholder */
.coin-logo-wrap {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  margin: 0 auto 8px;
  overflow: hidden;
  position: relative;
}

.coin-logo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}

.coin-placeholder {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 0.68em;
  font-weight: 400;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 1px;
  line-height: 1;
}

.coin-ticker {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 0.88em;
  font-weight: 400;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.coin-card.in-arena .coin-ticker { color: var(--text); }

/* Corner badge */
.coin-badge {
  position: absolute;
  top: 5px;
  right: 5px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  font-size: 0.65em;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

/* ── Arena Grid (Public — Remaining Fighters) ───────────────── */
.arena-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.arena-empty-state {
  grid-column: 1/-1;
  text-align: center;
  padding: 48px 20px;
  color: var(--text-faint);
  font-size: 0.88em;
  line-height: 1.8;
}

.arena-empty-state .big-emoji {
  font-size: 2.5em;
  display: block;
  margin-bottom: 10px;
}

/* ── Fight Overlay ──────────────────────────────────────────── */
.fight-overlay {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 480px;
  background: rgba(4, 0, 0, 0.97);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px 20px;
  overflow: hidden;
}

.fight-overlay.hidden { display: none; }

/* Announcement */
.fight-announcement {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.5em;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 5px;
  color: var(--primary2);
  text-align: center;
  text-shadow: 0 0 24px rgba(220,0,0,0.8), 2px 2px 0 #000;
  animation: pop-in 0.4s cubic-bezier(0.34,1.56,0.64,1) both;
  margin-bottom: 28px;
  line-height: 1.4;
}

.fight-announcement .match-number {
  display: block;
  font-family: 'Special Elite', cursive;
  font-size: 0.45em;
  color: var(--text-dim);
  letter-spacing: 3px;
  margin-bottom: 4px;
}

@keyframes pop-in {
  from { transform: scale(0.4); opacity: 0; }
  to   { transform: scale(1);   opacity: 1; }
}

/* Fight stage */
.fight-stage {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 8px;
}

.fight-fighter {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  flex: 1;
  transition: transform 0.6s cubic-bezier(0.34,1.56,0.64,1), opacity 0.5s ease;
}

.fight-fighter.off-left  { transform: translateX(-240px); opacity: 0; }
.fight-fighter.off-right { transform: translateX(240px);  opacity: 0; }
.fight-fighter.on-stage  { transform: translateX(0);       opacity: 1; }

/* nudge toward center during tickling */
.fight-fighter.nudge-right { transform: translateX(18px); }
.fight-fighter.nudge-left  { transform: translateX(-18px); }

/* loser exit */
.fight-fighter.exit-left  {
  transform: translateX(-320px) rotate(-30deg);
  opacity: 0;
  transition: transform 0.7s ease-in, opacity 0.7s ease-in;
}
.fight-fighter.exit-right {
  transform: translateX(320px) rotate(30deg);
  opacity: 0;
  transition: transform 0.7s ease-in, opacity 0.7s ease-in;
}

/* Fighter logo wrapper in fight view */
.fight-logo-wrap {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--primary);
  box-shadow: 0 0 24px var(--glow-red);
  position: relative;
  transition: border-color 0.35s ease, box-shadow 0.35s ease, transform 0.35s ease, opacity 0.35s ease;
  flex-shrink: 0;
}

/* One fighter randomly has the "lead" during tickling */
.fight-logo-wrap.advantage-logo {
  border-color: var(--gold2);
  box-shadow: 0 0 36px var(--glow-gold), 0 0 60px rgba(200,124,0,0.25);
  transform: scale(1.08);
}

/* The other fighter is slightly on the back foot */
.fight-logo-wrap.disadvantage-logo {
  border-color: rgba(160,0,0,0.4);
  box-shadow: 0 0 8px rgba(160,0,0,0.2);
  transform: scale(0.94);
  opacity: 0.8;
}

.fight-logo-wrap img,
.fight-logo-wrap .fight-placeholder {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.fight-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72em;
  font-weight: 900;
  color: #fff;
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* Winner/loser states */
.fight-logo-wrap.winner-logo {
  border-color: var(--gold2);
  box-shadow: 0 0 40px var(--glow-gold), 0 0 80px rgba(200,124,0,0.3);
  animation: winner-pulse 0.8s ease-out;
}
@keyframes winner-pulse {
  0%   { transform: scale(1); }
  40%  { transform: scale(1.18); }
  100% { transform: scale(1); }
}

.fight-logo-wrap.loser-logo {
  border-color: var(--red);
  animation: loser-shake 0.5s ease-out;
}
@keyframes loser-shake {
  0%,100% { transform: rotate(0deg); }
  15%     { transform: rotate(-12deg); }
  35%     { transform: rotate(12deg); }
  55%     { transform: rotate(-10deg); }
  75%     { transform: rotate(10deg); }
}

/* Emoji overlays on fighters */
.fight-emoji-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 6.6em;
  pointer-events: none;
  z-index: 2;
  opacity: 0;
  transition: opacity 0.3s;
}

.fight-emoji-overlay.visible {
  opacity: 1;
  animation: emoji-pop 0.4s cubic-bezier(0.34,1.56,0.64,1) both;
}

@keyframes emoji-pop {
  from { transform: scale(0); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}

/* Fighter name */
.fight-name {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.05em;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--text);
  text-align: center;
}

/* ── Tickle Center ──────────────────────────────────────────── */
.tickle-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  flex: 0 0 70px;
  opacity: 0;
  transition: opacity 0.3s;
}

.tickle-center.visible { opacity: 1; }

.tickle-fingers {
  display: flex;
  align-items: center;
  gap: 2px;
}

.finger {
  font-size: 1.9em;
  line-height: 1;
  display: inline-block;
}

.finger-l {
  animation: poke-left 0.25s ease-in-out infinite alternate;
}
.finger-r {
  animation: poke-right 0.25s ease-in-out infinite alternate;
}

@keyframes poke-left {
  from { transform: translateX(0)   rotate(-8deg) scaleY(1);   }
  to   { transform: translateX(8px) rotate(8deg)  scaleY(0.9); }
}
@keyframes poke-right {
  from { transform: translateX(0)    rotate(8deg)  scaleY(1);   }
  to   { transform: translateX(-8px) rotate(-8deg) scaleY(0.9); }
}

.tickle-label {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 0.78em;
  font-weight: 400;
  color: var(--primary2);
  text-transform: uppercase;
  letter-spacing: 2px;
  text-align: center;
  text-shadow: 0 0 8px rgba(220,0,0,0.6);
  animation: flicker 0.4s ease-in-out infinite alternate;
}

@keyframes flicker {
  from { opacity: 0.7; }
  to   { opacity: 1;   }
}

.tickle-commentary {
  font-family: 'Special Elite', cursive;
  font-size: 0.62em;
  color: rgba(224,220,216,0.6);
  text-align: center;
  letter-spacing: 0.5px;
  font-style: italic;
  min-height: 1.4em;
  transition: opacity 0.2s;
}

/* ── Match Result Banner ────────────────────────────────────── */
.result-banner {
  margin-top: 28px;
  text-align: center;
  opacity: 0;
  transition: opacity 0.4s;
}

.result-banner.visible { opacity: 1; }

.result-winner-line {
  font-family: 'Special Elite', cursive;
  font-size: 0.88em;
  font-weight: 400;
  color: var(--gold2);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  line-height: 1.45;
  filter: drop-shadow(0 0 10px rgba(200,124,0,0.6));
  animation: pop-in 0.4s cubic-bezier(0.34,1.56,0.64,1) both;
  max-width: 320px;
  margin: 0 auto;
}

.result-loser-line {
  font-size: 0.78em;
  color: var(--green);
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-top: 8px;
  animation: pop-in 0.4s cubic-bezier(0.34,1.56,0.64,1) 0.2s both;
}

/* ── Match Feed ─────────────────────────────────────────────── */
.match-feed {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px 16px 0;
}

.feed-item {
  background: var(--surface);
  border-radius: 3px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  animation: slide-in-left 0.3s ease-out both;
  border-left: 3px solid var(--primary);
}

@keyframes slide-in-left {
  from { transform: translateX(-16px); opacity: 0; }
  to   { transform: translateX(0);     opacity: 1; }
}

.feed-item .feed-logos {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.feed-logo {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border);
}

.feed-logo.feed-winner { border-color: var(--gold2); }
.feed-logo.feed-loser  { border-color: #333; filter: grayscale(0.7); opacity: 0.6; }

.feed-placeholder {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.55em;
  font-weight: 900;
  color: #fff;
  border: 2px solid var(--border);
}

.feed-text {
  font-size: 0.78em;
  line-height: 1.5;
  flex: 1;
  min-width: 0;
}

.feed-winner-name { color: var(--gold2); font-weight: 700; }
.feed-loser-name  { color: var(--text-dim); }

.feed-vs { color: var(--text-faint); font-size: 0.85em; }

/* ── Champion Screen ────────────────────────────────────────── */
.champion-screen {
  text-align: center;
  padding: 40px 20px;
  animation: pop-in 0.6s cubic-bezier(0.34,1.56,0.64,1) both;
}

.champion-crown {
  font-size: 2.8em;
  display: block;
  animation: float-bob 2.5s ease-in-out infinite;
  margin-bottom: 4px;
}

@keyframes float-bob {
  0%,100% { transform: translateY(0) rotate(-3deg); }
  50%     { transform: translateY(-12px) rotate(3deg); }
}

.champion-logo-wrap {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid var(--gold2);
  box-shadow: 0 0 60px var(--glow-gold), 0 0 120px rgba(200,124,0,0.2);
  margin: 12px auto;
  animation: champ-glow 2.5s ease-in-out infinite;
}

@keyframes champ-glow {
  0%,100% { box-shadow: 0 0 40px var(--glow-gold); }
  50%     { box-shadow: 0 0 80px var(--glow-gold), 0 0 140px rgba(200,124,0,0.3); }
}

.champion-logo-wrap img,
.champion-logo-wrap .champ-placeholder {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.champ-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85em;
  font-weight: 900;
  color: #fff;
  text-transform: uppercase;
}

.champion-name {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2.4em;
  font-weight: 400;
  color: var(--gold2);
  text-transform: uppercase;
  letter-spacing: 6px;
  text-shadow: 0 0 24px rgba(200,124,0,0.8), 2px 2px 0 #000;
  margin-top: 8px;
}

.champion-subtitle {
  font-family: 'Special Elite', cursive;
  font-size: 0.8em;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 3px;
  margin-top: 6px;
}

.champion-confetti {
  font-size: 1.8em;
  letter-spacing: 8px;
  margin-top: 16px;
  animation: confetti-spin 1.5s ease-in-out infinite alternate;
}

@keyframes confetti-spin {
  from { letter-spacing: 4px; }
  to   { letter-spacing: 12px; }
}

/* ── Lineup (pre-fight coin list) ──────────────────────────── */
.lineup-notice {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78em;
  color: var(--text-dim);
  margin-bottom: 12px;
}

.lineup-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 6px var(--green);
  animation: pulse-dot 1.5s ease-in-out infinite;
  flex-shrink: 0;
}

@keyframes lineup-pop {
  from { transform: scale(0.5); opacity: 0; }
  to   { transform: scale(1);   opacity: 1; }
}

/* ── Waiting / Idle Screen ──────────────────────────────────── */
.waiting-screen {
  text-align: center;
  padding: 48px 24px;
}

.waiting-screen .wait-emoji {
  font-size: 2.5em;
  display: block;
  margin-bottom: 12px;
  animation: float-bob 3s ease-in-out infinite;
}

.waiting-screen .wait-text {
  font-size: 1em;
  color: var(--text-dim);
  line-height: 1.6;
}

.waiting-screen .wait-text strong {
  color: var(--text);
  display: block;
  font-size: 1.1em;
  margin-bottom: 6px;
}

/* ── Buttons ────────────────────────────────────────────────── */
.btn {
  display: block;
  width: 100%;
  padding: 16px;
  border: 1px solid rgba(160,0,0,0.5);
  border-radius: 3px;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.2em;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 3px;
  cursor: pointer;
  transition: transform 0.15s, filter 0.15s, opacity 0.2s;
  -webkit-tap-highlight-color: transparent;
}

.btn:active:not(:disabled) { transform: scale(0.96); }

.btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.btn-start {
  background: linear-gradient(135deg, rgba(140,0,0,0.95), rgba(80,0,0,0.95));
  color: #e0dcd8;
  box-shadow: 0 4px 24px rgba(160,0,0,0.5);
  border-color: var(--primary);
}
.btn-start:not(:disabled):hover  { filter: brightness(1.12); }
.btn-start:not(:disabled):active { filter: brightness(1.2); }

.btn-reset {
  background: linear-gradient(135deg, rgba(40,6,6,0.97), rgba(20,3,3,0.97));
  color: var(--text-dim);
  box-shadow: 0 4px 18px rgba(100,0,0,0.3);
  border-color: rgba(100,0,0,0.4);
}

.btn-purple {
  background: linear-gradient(135deg, var(--primary), rgba(100,0,0,0.9));
  color: var(--text);
  box-shadow: 0 4px 24px var(--glow-red);
  border-color: var(--primary);
}

/* Controls section */
.controls {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.arena-counter {
  text-align: center;
  font-size: 0.78em;
  color: var(--text-dim);
  padding: 4px;
}

.arena-counter strong {
  color: var(--text);
}

/* ── Participant Count Strip ────────────────────────────────── */
.fighter-count-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 10px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  margin: 12px 16px 0;
  border-radius: 3px;
  font-size: 0.78em;
}

.count-item { text-align: center; }
.count-item .num { font-size: 1.5em; font-weight: 900; color: var(--text); display: block; }
.count-item .lbl { color: var(--text-dim); text-transform: uppercase; letter-spacing: 1px; }

.count-item.remaining .num { color: var(--green); }
.count-item.eliminated .num { color: var(--primary2); }
.count-item.total .num { color: var(--gold2); }

.count-divider { width: 1px; height: 32px; background: var(--border); }

/* ── VS Badge ───────────────────────────────────────────────── */
.vs-badge {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 0.82em;
  font-weight: 400;
  color: #fff;
  flex-shrink: 0;
  box-shadow: 0 0 14px rgba(200,0,0,0.5);
  letter-spacing: 1px;
}

/* ── Misc Utilities ─────────────────────────────────────────── */
.hidden  { display: none !important; }
.mt-8    { margin-top: 8px; }
.mt-12   { margin-top: 12px; }
.mt-16   { margin-top: 16px; }
.text-center { text-align: center; }

/* Divider */
.divider {
  height: 1px;
  background: var(--border);
  margin: 16px;
}

/* Subtle label */
.label {
  font-size: 0.7em;
  color: var(--text-faint);
  text-transform: uppercase;
  letter-spacing: 2px;
}

/* ── Fluorescent room-light flicker overlay ─────────────────── */
/* Synced with light image & title. Slow, infrequent — 12s cycle */
@keyframes roomLight {
  0%    { background: rgba(0,0,0,0.15); }
  /* first flicker ~18% */
  18%   { background: rgba(0,0,0,0.15); }
  18.5% { background: rgba(0,0,0,0.78); }
  19%   { background: rgba(0,0,0,0.15); }
  19.8% { background: rgba(0,0,0,0.68); }
  20.4% { background: rgba(0,0,0,0.15); }
  /* long calm period ... */
  /* second flicker ~72% */
  72%   { background: rgba(0,0,0,0.15); }
  72.4% { background: rgba(0,0,0,0.82); }
  72.8% { background: rgba(0,0,0,0.15); }
  100%  { background: rgba(0,0,0,0.15); }
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  animation: roomLight 12s linear infinite;
}

/* ── Fluorescent flicker (light image + public title only) ──── */
@keyframes fluorescent {
  0%    { opacity: 1;    }
  /* first flicker ~18% */
  18%   { opacity: 1;    }
  18.5% { opacity: 0.1;  }
  19%   { opacity: 1;    }
  19.8% { opacity: 0.3;  }
  20.4% { opacity: 1;    }
  /* long calm ... */
  /* second flicker ~72% */
  72%   { opacity: 1;    }
  72.4% { opacity: 0.06; }
  72.8% { opacity: 1;    }
  100%  { opacity: 1;    }
}

/* Light fixture image at the top of each page */
.light-bar {
  display: flex;
  justify-content: center;
  padding: 0;
  position: relative;
  z-index: 2;
  margin-bottom: -6px;
}

.light-img {
  max-width: min(340px, 88vw);
  width: 100%;
  height: auto;
  display: block;
  animation: fluorescent 12s linear infinite;
  filter: drop-shadow(0 2px 18px rgba(180,0,0,0.35));
}
