/* ============================================================
   DMC GAMER OLYMPICS! ~~ MAXIMUM CRINGE STYLESHEET v420.69 ~~
   ============================================================ */

:root {
  --bg: #05010f;
  --bg-2: #0b0330;
  --surface: #12053a;
  --surface-2: #1a0b52;
  --border: #ff00e1;
  --border-2: #00ffe1;
  --text: #f7f2ff;
  --muted: #a99bff;
  --accent: #ff00c8;      /* HOT PINK */
  --accent-2: #00ff9c;    /* NEON GREEN */
  --accent-3: #00e5ff;    /* CYAN */
  --gold: #ffd400;
  --silver: #dbe4ff;
  --bronze: #ff8a3d;
  --danger: #ff003c;
  --shadow-neon: 0 0 12px currentColor, 0 0 24px currentColor;
  --r: 4px;
}

* { box-sizing: border-box; }

@keyframes blink { 0%, 60% { opacity: 1; } 61%, 100% { opacity: 0.15; } }
@keyframes rainbowBg {
  0%   { background-position:   0% 50%; }
  100% { background-position: 400% 50%; }
}
@keyframes marqueeSlide { from { transform: translateX(0); } to { transform: translateX(-50%); } }

html, body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 15px;
  line-height: 1.5;
  cursor: crosshair;
  background:
    radial-gradient(1200px 800px at 10% -10%, rgba(255, 0, 200, 0.30) 0%, transparent 55%),
    radial-gradient(1000px 700px at 100% 0%, rgba(0, 229, 255, 0.25) 0%, transparent 55%),
    radial-gradient(900px 900px at 50% 120%, rgba(0, 255, 156, 0.20) 0%, transparent 55%),
    linear-gradient(115deg, #05010f, #0b0330, #1a0b52, #0b0330, #05010f);
}

a { color: var(--accent-3); text-decoration: none; text-shadow: 0 0 6px var(--accent-3); }
a:hover { color: var(--accent-2); text-decoration: none; text-shadow: 0 0 10px var(--accent-2); }

/* CRT scanline overlay */
.scanlines {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 999;
  background:
    repeating-linear-gradient(
      to bottom,
      rgba(255, 255, 255, 0.03) 0 1px,
      transparent 1px 3px
    );
  mix-blend-mode: overlay;
}

.container { max-width: 1180px; margin: 0 auto; padding: 0 20px; }

/* ---------- Header / brand ---------- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(5, 1, 15, 0.9);
  backdrop-filter: blur(6px);
  border-bottom: 2px solid var(--accent);
  box-shadow: 0 0 16px rgba(255, 0, 200, 0.4);
}
.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  gap: 12px;
  flex-wrap: wrap;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: "Bungee Shade", "Impact", sans-serif;
  font-size: 22px;
  letter-spacing: 1.2px;
  color: var(--text);
  text-shadow:
    0 0 6px var(--accent),
    0 0 12px var(--accent-3);
}
.brand:hover { text-decoration: none; }
.brand-skull { font-size: 24px; display: inline-block; }
.brand-name { display: inline-block; }
.brand-name .bang { color: var(--gold); text-shadow: 0 0 12px var(--gold); }
.brand-mascot {
  height: 36px;
  width: auto;
  border-radius: 6px;
  border: 2px solid var(--accent-2);
  box-shadow: 0 0 8px var(--accent-2);
  image-rendering: pixelated;
}

.nav {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-family: "Orbitron", "Impact", sans-serif;
  font-weight: 700;
  letter-spacing: 1px;
}
.nav a, .nav .link-btn {
  color: var(--text);
  padding: 6px 10px;
  border: 2px solid transparent;
  border-radius: 4px;
  text-shadow: 0 0 6px var(--accent-3);
  transition: all 0.15s ease;
}
.nav a:hover, .nav .link-btn:hover {
  color: var(--bg);
  background: var(--accent-2);
  border-color: var(--accent-2);
  text-shadow: none;
  box-shadow: 0 0 16px var(--accent-2);
  transform: skew(-6deg) scale(1.03);
}
.nav a.active {
  color: var(--bg);
  background: var(--accent);
  border-color: var(--accent);
  text-shadow: none;
  box-shadow: 0 0 12px var(--accent);
}
.nav .inline-form { display: inline; margin: 0; }
.link-btn {
  background: none;
  border: 2px solid transparent;
  color: var(--text);
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  letter-spacing: 1px;
}

/* ---------- Marquee ---------- */
.marquee {
  overflow: hidden;
  background: linear-gradient(90deg, var(--accent), var(--accent-3), var(--accent-2), var(--gold), var(--accent));
  background-size: 300% 100%;
  animation: rainbowBg 8s linear infinite;
  color: #0b0330;
  border-top: 2px solid var(--gold);
  border-bottom: 2px solid var(--gold);
  padding: 4px 0;
}
.marquee-track {
  display: inline-flex;
  gap: 32px;
  padding-left: 32px;
  white-space: nowrap;
  animation: marqueeSlide 40s linear infinite;
  font-family: "Bungee", "Impact", sans-serif;
  font-size: 14px;
  letter-spacing: 1.5px;
  text-shadow: 1px 1px 0 rgba(255, 255, 255, 0.6);
}
.marquee-item::after { content: '  ✦  '; color: rgba(0, 0, 0, 0.6); }

/* ---------- Hero ---------- */
.hero, .hero-mega {
  padding: 18px 0 6px;
  position: relative;
}
.hero h1, .hero-mega h1 {
  font-family: "Bungee Shade", "Impact", sans-serif;
  font-size: 28px;
  margin: 0 0 4px;
  letter-spacing: 1px;
  line-height: 1.1;
  color: var(--accent);
  text-shadow: 0 0 8px var(--accent), 2px 2px 0 rgba(0, 0, 0, 0.5);
}
.hero p { margin: 0; }

.hero-mega {
  display: grid;
  grid-template-columns: 1fr 140px;
  gap: 16px;
  align-items: center;
  padding: 18px 0 10px;
}
.hero-mega > div { min-width: 0; }
@media (max-width: 720px) { .hero-mega { grid-template-columns: 1fr; } }
.hero-mega .hero-gif {
  width: 100%;
  max-width: 140px;
  border: 2px solid var(--accent-2);
  border-radius: 6px;
  box-shadow: 0 0 10px var(--accent-2);
  justify-self: end;
}
.presented-by {
  display: inline-block;
  padding: 3px 12px;
  margin-bottom: 8px;
  font-family: "Bungee", "Impact", sans-serif;
  font-size: 11px;
  letter-spacing: 2px;
  color: var(--gold);
  border: 1px solid var(--gold);
  border-radius: 3px;
  background: rgba(255, 212, 0, 0.1);
  text-shadow: 0 0 6px var(--gold);
  box-shadow: 0 0 10px rgba(255, 212, 0, 0.3);
}
.hero-taglines {
  font-family: "Press Start 2P", monospace;
  font-size: 12px;
  line-height: 1.9;
  color: var(--accent-2);
  text-shadow: 0 0 6px var(--accent-2);
  margin-top: 12px;
}
.hero-taglines span { display: inline-block; margin-right: 12px; }
.hero-taglines .warn { color: var(--gold); text-shadow: 0 0 6px var(--gold); }
.hero-taglines .rekt { color: var(--danger); text-shadow: 0 0 6px var(--danger); }

.muted { color: var(--muted); }
.small { font-size: 13px; }
.strong { font-weight: 800; }
.num { text-align: right; font-variant-numeric: tabular-nums; font-family: "Orbitron", monospace; }

.section { margin-top: 36px; }
.section h2 {
  font-family: "Bungee", "Impact", sans-serif;
  font-size: 24px;
  margin: 0 0 12px;
  letter-spacing: 1.2px;
  color: var(--accent-2);
  text-shadow: 0 0 6px var(--accent-2), 2px 2px 0 var(--bg);
}
.section h3 {
  font-family: "Orbitron", "Impact", sans-serif;
  font-weight: 900;
  margin: 8px 0;
  font-size: 14px;
  color: var(--gold);
  text-shadow: 0 0 4px var(--gold);
  text-transform: uppercase;
  letter-spacing: 2px;
}

.row-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
@media (max-width: 720px) { .grid-2 { grid-template-columns: 1fr; } }

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 16px;
}
.card {
  background: linear-gradient(180deg, rgba(26, 11, 82, 0.9), rgba(18, 5, 58, 0.9));
  border: 2px solid var(--accent);
  border-radius: var(--r);
  padding: 16px;
  box-shadow: 0 0 12px rgba(255, 0, 200, 0.4), inset 0 0 0 2px rgba(0, 229, 255, 0.15);
  position: relative;
}
.card::before {
  content: '';
  position: absolute; inset: -2px;
  background: linear-gradient(135deg, var(--accent), var(--accent-3));
  border-radius: calc(var(--r) + 2px);
  z-index: -1;
  opacity: 0.5;
}
.card-hd { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.card-hd h3 { margin: 0; font-size: 16px; color: var(--accent-2); letter-spacing: 1px; }
.card-sub { margin-top: 12px; margin-bottom: 6px; font-size: 11px; color: var(--gold); text-transform: uppercase; letter-spacing: 2px; text-shadow: 0 0 4px var(--gold); }
.next-list { list-style: none; padding: 0; margin: 0; }
.next-list li {
  padding: 8px 0;
  border-top: 1px dashed var(--accent);
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.next-list li:first-child { border-top: none; }

/* ---------- Live tournament block on home ---------- */
.live-tournaments {
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.live-tournament {
  padding: 18px 20px;
  background: linear-gradient(180deg, rgba(26, 11, 82, 0.85), rgba(18, 5, 58, 0.85));
  border: 2px solid var(--accent);
  border-radius: 6px;
  box-shadow: 0 0 14px rgba(255, 0, 200, 0.35), inset 0 0 0 2px rgba(0, 229, 255, 0.15);
  position: relative;
}
.live-tournament-hd {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}
.live-tournament-hd h3 {
  margin: 0;
  font-family: "Bungee", "Impact", sans-serif;
  font-size: 18px;
  letter-spacing: 1px;
  color: var(--accent-2);
  text-shadow: 0 0 4px var(--accent-2);
}
.live-tournament-hd h3 a { color: var(--accent-2); }
.live-bracket { margin: 12px 0 4px; }
.live-tournament-sides {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px dashed var(--accent);
}
@media (max-width: 720px) {
  .live-tournament-sides { grid-template-columns: 1fr; }
}

/* ---------- Tables ---------- */
.table {
  width: 100%;
  border-collapse: collapse;
  background: rgba(11, 3, 48, 0.85);
  border: 2px solid var(--accent-3);
  border-radius: var(--r);
  overflow: hidden;
  box-shadow: 0 0 12px var(--accent-3), 0 0 24px rgba(0, 229, 255, 0.25);
}
.table th, .table td {
  padding: 10px 12px;
  border-bottom: 1px solid rgba(255, 0, 200, 0.35);
  text-align: left;
}
.table th {
  background: linear-gradient(90deg, rgba(255, 0, 200, 0.4), rgba(0, 229, 255, 0.4));
  font-family: "Orbitron", "Impact", sans-serif;
  font-weight: 900;
  color: var(--gold);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  text-shadow: 0 0 4px var(--bg);
}
.table tbody tr:last-child td { border-bottom: none; }
.table tbody tr:hover {
  background: rgba(0, 255, 156, 0.14);
  outline: 1px dashed var(--accent-2);
}
.table.compact th, .table.compact td { padding: 8px 10px; font-size: 14px; }

.col-rank { width: 44px; text-align: center; }
.rank {
  display: inline-block;
  width: 28px;
  height: 28px;
  line-height: 28px;
  border-radius: 4px;
  background: var(--surface-2);
  border: 1px solid var(--accent);
  color: var(--accent-2);
  font-family: "Press Start 2P", monospace;
  font-size: 10px;
  text-align: center;
  text-shadow: 0 0 4px var(--accent-2);
}
.medal { font-size: 24px; filter: drop-shadow(0 0 6px currentColor); }
.medal-1 { color: var(--gold); }
.medal-2 { color: var(--silver); }
.medal-3 { color: var(--bronze); }

.player-link { color: var(--accent-3); font-weight: 700; text-shadow: 0 0 4px var(--accent-3); }
.player-link:hover { color: var(--accent-2); text-shadow: 0 0 8px var(--accent-2); }

/* ---------- Badges ---------- */
.badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 3px;
  font-family: "Bungee", "Impact", sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.3px;
  border: 2px solid;
}
.badge-draft {
  color: var(--muted);
  border-color: var(--muted);
  background: rgba(169, 155, 255, 0.1);
}
.badge-active {
  color: var(--accent-2);
  background: rgba(0, 255, 156, 0.15);
  border-color: var(--accent-2);
  animation: blink 1.2s infinite;
  box-shadow: 0 0 10px var(--accent-2);
}
.badge-done {
  color: var(--gold);
  background: rgba(255, 212, 0, 0.15);
  border-color: var(--gold);
  box-shadow: 0 0 8px var(--gold);
  text-shadow: 0 0 4px var(--gold);
}

/* ---------- Empty state ---------- */
.empty {
  padding: 20px;
  background: rgba(18, 5, 58, 0.8);
  border: 2px dashed var(--accent);
  border-radius: var(--r);
  color: var(--accent-2);
  text-align: center;
  font-family: "Press Start 2P", monospace;
  font-size: 12px;
  line-height: 1.8;
  text-shadow: 0 0 4px currentColor;
  box-shadow: 0 0 12px rgba(255, 0, 200, 0.35);
}
.empty.small { padding: 12px; font-size: 11px; box-shadow: none; }

.game-list { list-style: none; margin: 0; padding: 0; }
.game-list li {
  padding: 10px 0;
  border-top: 1px dashed var(--accent);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.game-list li:first-child { border-top: none; }

.stage-tag {
  font-family: "Press Start 2P", monospace;
  font-size: 9px;
  padding: 3px 6px;
  background: var(--gold);
  color: var(--bg);
  border-radius: 2px;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 0 0 6px var(--gold);
}

/* ---------- Match rows ---------- */
.mrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  font-family: "Orbitron", monospace;
}
.mp { min-width: 70px; font-weight: 700; }
.mp.winner {
  color: var(--accent-2);
  text-shadow: 0 0 6px var(--accent-2);
  position: relative;
}
.mp.winner::after {
  content: ' GG';
  color: var(--gold);
  font-size: 10px;
  font-family: "Press Start 2P", monospace;
  margin-left: 4px;
  vertical-align: middle;
  text-shadow: 0 0 4px var(--gold);
}
.mrow:not(.pending) .mp:not(.winner) {
  color: var(--danger);
  text-decoration: line-through;
  opacity: 0.75;
}
.mrow:not(.pending) .mp:not(.winner)::after {
  content: ' REKT';
  color: var(--danger);
  font-size: 10px;
  font-family: "Press Start 2P", monospace;
  margin-left: 4px;
  text-decoration: none;
  display: inline-block;
  vertical-align: middle;
  text-shadow: 0 0 4px var(--danger);
  animation: blink 1.5s infinite;
}
.mscore {
  padding: 4px 10px;
  background: var(--bg);
  border: 1px solid var(--accent);
  border-radius: 3px;
  font-weight: 900;
  font-size: 14px;
  color: var(--gold);
  text-shadow: 0 0 4px var(--gold);
}
.mrow.pending .mscore { background: transparent; border-color: var(--muted); color: var(--muted); text-shadow: none; font-weight: 700; }

.match-table td { padding: 8px 12px; }

.details-block {
  margin-top: 10px;
  background: rgba(18, 5, 58, 0.7);
  border: 2px solid var(--accent-3);
  border-radius: var(--r);
  padding: 8px 12px;
}
.details-block summary {
  cursor: pointer;
  color: var(--accent-3);
  font-family: "Orbitron", monospace;
  font-weight: 900;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-size: 12px;
  text-shadow: 0 0 4px var(--accent-3);
}
.details-block[open] { padding-bottom: 12px; }

/* ---------- Bracket (tree) ---------- */
:root {
  --ko-match-h: 72px;
  --ko-gap-h: 48px;
  --ko-gap-v: 32px;
}
.ko-bracket {
  display: flex;
  gap: var(--ko-gap-h);
  padding: 12px 0 24px;
  overflow-x: auto;
  align-items: stretch;
  min-height: 240px;
}
.ko-round {
  display: flex;
  flex-direction: column;
  min-width: 220px;
  flex-shrink: 0;
}
.ko-round-label {
  font-family: "Orbitron", "Impact", sans-serif;
  font-size: 12px;
  color: var(--gold);
  text-shadow: 0 0 4px var(--gold);
  text-transform: uppercase;
  letter-spacing: 2px;
  text-align: center;
  margin: 0 0 12px;
  padding-bottom: 6px;
  border-bottom: 1px dashed var(--gold);
}
.ko-round-inner {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  flex: 1;
  gap: var(--ko-gap-v);
}
.match-pair {
  display: flex;
  flex-direction: column;
  gap: var(--ko-gap-v);
  position: relative;
}
.match-solo { position: relative; }

.ko-match {
  padding: 6px 10px;
  background: rgba(11, 3, 48, 0.85);
  border: 2px solid var(--accent-3);
  border-radius: 4px;
  position: relative;
  z-index: 1;
  box-shadow: 0 0 6px rgba(0, 229, 255, 0.25);
  height: var(--ko-match-h);
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.ko-match.done { border-color: var(--accent-2); box-shadow: 0 0 6px rgba(0, 255, 156, 0.25); }
.ko-match.live { border-color: var(--gold); box-shadow: 0 0 6px rgba(255, 212, 0, 0.35); }
.ko-match.pending { border-color: var(--muted); box-shadow: none; opacity: 0.85; }
.ko-match.empty { border-style: dashed; }

.ko-slot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 3px 0;
  font-family: "Orbitron", monospace;
  font-size: 13px;
  color: var(--text);
  gap: 8px;
  min-height: 22px;
}
.ko-slot + .ko-slot { border-top: 1px dashed rgba(255, 0, 200, 0.3); }
.ko-slot.winner { color: var(--accent-2); font-weight: 900; text-shadow: 0 0 4px var(--accent-2); }
.ko-slot.loser { color: var(--muted); text-decoration: line-through; opacity: 0.7; }
.ko-name {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ko-score {
  font-family: "Bungee", "Impact", sans-serif;
  color: var(--gold);
  min-width: 22px;
  text-align: right;
  font-size: 15px;
  text-shadow: 0 0 4px var(--gold);
}

/* Right-side spur going toward next round */
.ko-round:not(:last-child) .ko-match::after {
  content: '';
  position: absolute;
  right: calc(-1 * var(--ko-gap-h) / 2);
  top: 50%;
  width: calc(var(--ko-gap-h) / 2);
  height: 2px;
  background: var(--accent-3);
  z-index: 0;
}
/* Left-side spur coming in from previous round */
.ko-round:not(:first-child) .ko-match::before {
  content: '';
  position: absolute;
  left: calc(-1 * var(--ko-gap-h) / 2);
  top: 50%;
  width: calc(var(--ko-gap-h) / 2);
  height: 2px;
  background: var(--accent-3);
  z-index: 0;
}
/* Vertical bar joining a paired match */
.ko-round:not(:last-child) .match-pair::after {
  content: '';
  position: absolute;
  right: calc(-1 * var(--ko-gap-h) / 2);
  top: calc(var(--ko-match-h) / 2);
  bottom: calc(var(--ko-match-h) / 2);
  width: 2px;
  background: var(--accent-3);
  z-index: 0;
}

/* 3rd place playoff — sits under the main bracket */
.ko-thirdplace {
  margin-top: 4px;
  max-width: 260px;
}
.ko-thirdplace .ko-round-label { color: var(--bronze); border-color: var(--bronze); text-shadow: 0 0 4px var(--bronze); }
.ko-thirdplace .ko-match { border-color: var(--bronze); box-shadow: 0 0 6px rgba(211, 139, 87, 0.3); }

@media (max-width: 720px) {
  :root { --ko-gap-h: 28px; }
  .ko-round { min-width: 180px; }
}

/* ---------- Podium ---------- */
.podium {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}
.podium li {
  padding: 14px 18px;
  background: linear-gradient(135deg, rgba(255, 212, 0, 0.15), rgba(255, 0, 200, 0.15));
  border: 2px solid var(--gold);
  border-radius: var(--r);
  min-width: 200px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: "Bungee", "Impact", sans-serif;
  letter-spacing: 1px;
  box-shadow: 0 0 12px var(--gold);
  text-shadow: 0 0 4px var(--gold);
}
.podium li:first-child {
  box-shadow: 0 0 20px var(--gold), 0 0 40px rgba(255, 212, 0, 0.4);
  transform: scale(1.04);
}

/* ---------- Stats ---------- */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
  margin-top: 12px;
}
.stat {
  padding: 20px;
  background: rgba(18, 5, 58, 0.85);
  border: 2px solid var(--accent);
  border-radius: var(--r);
  text-align: center;
  box-shadow: 0 0 12px rgba(255, 0, 200, 0.35);
  position: relative;
}
.stat-num {
  font-family: "Bungee Shade", "Impact", sans-serif;
  font-size: 40px;
  line-height: 1;
  color: var(--accent-2);
  text-shadow: 0 0 10px var(--accent-2);
}
.stat-label {
  color: var(--gold);
  font-family: "Press Start 2P", monospace;
  font-size: 10px;
  margin-top: 6px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  text-shadow: 0 0 4px var(--gold);
}

/* ---------- Forms ---------- */
.stack { display: flex; flex-direction: column; gap: 14px; margin-top: 16px; }
.stack.narrow { max-width: 520px; }
.stack label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  color: var(--accent-2);
  font-family: "Orbitron", "Impact", sans-serif;
  font-weight: 900;
  font-size: 12px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  text-shadow: 0 0 4px var(--accent-2);
}
.stack input[type=text], .stack input[type=number], .stack input[type=password], .stack input:not([type]),
.stack textarea, .stack select {
  padding: 10px 12px;
  background: var(--bg);
  border: 2px solid var(--accent);
  border-radius: 3px;
  color: var(--text);
  font: inherit;
  font-family: "Orbitron", monospace;
  box-shadow: inset 0 0 8px rgba(255, 0, 200, 0.25);
}
.stack select[disabled] { opacity: 0.6; cursor: not-allowed; }
.stack input:focus, .stack textarea:focus, .stack select:focus {
  outline: 2px solid var(--accent-2);
  outline-offset: 2px;
  box-shadow: 0 0 12px var(--accent-2);
}
.hidden { display: none !important; }
.format-help { margin-top: -4px; color: var(--muted); }

.check {
  flex-direction: row !important;
  align-items: center;
  gap: 8px !important;
  color: var(--text) !important;
  font-family: inherit !important;
  text-transform: none !important;
  letter-spacing: normal !important;
  font-size: 14px !important;
  text-shadow: none !important;
}

.row-form {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  margin: 8px 0;
}
.row-form input:not([type=hidden]) {
  padding: 8px 10px;
  background: var(--bg);
  border: 2px solid var(--accent);
  border-radius: 3px;
  color: var(--text);
  font: inherit;
}
.inline-form { display: inline-flex; gap: 6px; align-items: center; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 9px 18px;
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  color: var(--text);
  border: 2px solid var(--accent);
  border-radius: 3px;
  font-family: "Bungee", "Impact", sans-serif;
  font-weight: 700;
  letter-spacing: 1.5px;
  cursor: crosshair;
  text-decoration: none;
  text-shadow: 0 0 4px var(--accent);
  box-shadow: 0 0 8px var(--accent), inset 0 0 6px rgba(0, 229, 255, 0.25);
  transition: all 0.15s ease;
  text-transform: uppercase;
  font-size: 13px;
}
.btn:hover {
  background: var(--accent);
  color: var(--bg);
  text-shadow: none;
  box-shadow: 0 0 16px var(--accent), 0 0 32px var(--accent);
  transform: translateY(-1px) skew(-3deg);
  text-decoration: none;
}
.btn.small { padding: 5px 12px; font-size: 11px; letter-spacing: 1px; }
.btn.primary {
  background: linear-gradient(180deg, var(--accent), var(--accent-3));
  border-color: var(--gold);
  color: var(--bg);
  text-shadow: 0 0 4px #fff;
  box-shadow: 0 0 12px var(--accent);
}
.btn.primary:hover { filter: brightness(1.15) saturate(1.4); }
.btn.ghost {
  background: transparent;
  border-color: var(--muted);
  color: var(--muted);
  text-shadow: none;
  box-shadow: none;
}
.btn.ghost:hover { border-color: var(--accent-2); color: var(--accent-2); background: transparent; }
.btn.danger {
  background: linear-gradient(180deg, var(--danger), #900021);
  border-color: var(--gold);
  color: #fff;
  text-shadow: 0 0 4px var(--danger);
}
.btn.danger:hover { filter: brightness(1.2); }
.btn[disabled] { opacity: 0.4; cursor: not-allowed; filter: grayscale(1); animation: none; }

/* ---------- Flash ---------- */
.flash {
  padding: 12px 16px;
  border-radius: 3px;
  margin: 12px 0;
  border: 2px solid;
  font-family: "Orbitron", monospace;
  font-weight: 900;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.flash-ok {
  background: rgba(0, 255, 156, 0.15);
  border-color: var(--accent-2);
  color: var(--accent-2);
  text-shadow: 0 0 6px var(--accent-2);
}
.flash-error {
  background: rgba(255, 0, 60, 0.15);
  border-color: var(--danger);
  color: var(--danger);
  text-shadow: 0 0 6px var(--danger);
}
.flash-info {
  background: rgba(0, 229, 255, 0.15);
  border-color: var(--accent-3);
  color: var(--accent-3);
  text-shadow: 0 0 6px var(--accent-3);
}

/* ---------- Danger zone ---------- */
.danger-zone {
  border: 2px dashed var(--danger);
  padding: 20px;
  border-radius: var(--r);
  margin-top: 40px;
  background: rgba(255, 0, 60, 0.06);
  box-shadow: 0 0 12px rgba(255, 0, 60, 0.3);
}
.danger-zone h2 { color: var(--danger); text-shadow: 0 0 6px var(--danger); }

/* ---------- Footer ---------- */
.foot {
  margin-top: 60px;
  padding: 24px 0 32px;
  border-top: 2px solid var(--accent);
  color: var(--muted);
  font-size: 12px;
  background: rgba(5, 1, 15, 0.7);
}
.sponsor-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  padding-bottom: 12px;
  border-bottom: 1px dashed var(--accent);
  margin-bottom: 12px;
}
.sponsor-label {
  font-family: "Bungee", "Impact", sans-serif;
  color: var(--gold);
  text-shadow: 0 0 4px var(--gold);
  letter-spacing: 2px;
  font-size: 12px;
}
.sponsor-chip {
  font-family: "Bungee", "Impact", sans-serif;
  padding: 4px 10px;
  border: 2px solid var(--accent-3);
  color: var(--accent-3);
  background: rgba(0, 229, 255, 0.08);
  text-shadow: 0 0 4px var(--accent-3);
  font-size: 11px;
  letter-spacing: 1px;
  transform: skew(-8deg);
}
.sponsor-chip:nth-child(3n)   { color: var(--accent-2); border-color: var(--accent-2); text-shadow: 0 0 4px var(--accent-2); background: rgba(0, 255, 156, 0.08); }
.sponsor-chip:nth-child(3n+1) { color: var(--accent);   border-color: var(--accent);   text-shadow: 0 0 4px var(--accent);   background: rgba(255, 0, 200, 0.08); }
.sponsor-chip.sponsor-main {
  color: var(--gold);
  border-color: var(--gold);
  background: rgba(255, 212, 0, 0.15);
  text-shadow: 0 0 6px var(--gold);
  box-shadow: 0 0 10px rgba(255, 212, 0, 0.4);
  font-size: 13px;
  padding: 5px 12px;
}
.foot-note {
  font-family: "Press Start 2P", monospace;
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 1px;
  line-height: 1.9;
}

/* ---------- Achievement banner (used on 1st visit / special) ---------- */
.achievement {
  margin: 16px 0;
  padding: 12px 16px;
  border: 2px solid var(--gold);
  background: linear-gradient(90deg, rgba(255, 212, 0, 0.18), rgba(255, 0, 200, 0.18));
  color: var(--gold);
  font-family: "Bungee", "Impact", sans-serif;
  letter-spacing: 1px;
  box-shadow: 0 0 12px var(--gold);
}
.achievement small { display: block; color: var(--text); font-family: system-ui; font-weight: 500; letter-spacing: normal; text-transform: none; margin-top: 4px; }

/* ---------- Reduced motion respect (we still parody but calm down) ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
