@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&family=VT323&family=Bebas+Neue&family=Inter:wght@400;600;700;900&display=swap');

/* ═══════════════════════════════════════════════
   90s OLYMPIADE — PASTEL 90s DESIGN SYSTEM
   Palette: Pink · Cyan · Yellow · Mint · Cream
═══════════════════════════════════════════════ */

:root {
  /* Brand palette */
  --pink:        #FF6B9D;
  --pink-light:  #FFB3D1;
  --pink-dark:   #E0005A;
  --cyan:        #00C9C8;
  --cyan-light:  #B2F0EF;
  --cyan-dark:   #007A79;
  --yellow:      #FFD93D;
  --yellow-dark: #E6A800;
  --mint:        #6BCB77;
  --mint-light:  #C8F5CC;
  --purple:      #C77DFF;
  --purple-dark: #7B2FBE;

  /* Surfaces */
  --bg:          #FFF5F9;
  --bg-alt:      #FFF0F7;
  --card:        #FFFFFF;
  --card-alt:    #FFF8FC;
  --border:      #F0C0D8;
  --border-dark: #E090B8;

  /* Text */
  --text:        #1A1A2E;
  --text-mid:    #4A4A6A;
  --text-dim:    #9090AA;

  /* Neon accents (kept for legacy classes) */
  --neon-yellow: var(--yellow);
  --neon-pink:   var(--pink);
  --neon-cyan:   var(--cyan);
  --neon-green:  var(--mint);
  --neon-purple: var(--purple);
  --dark-bg:     var(--bg);
  --dark-card:   var(--card);
  --dark-border: var(--border);
  --text-main:   var(--text);

  /* Shadows */
  --shadow-sm:   3px 3px 0 var(--border-dark);
  --shadow-md:   4px 4px 0 var(--pink-dark);
  --shadow-cyan: 4px 4px 0 var(--cyan-dark);
}

/* ── RESET ── */
*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

/* Subtle dot pattern */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,107,157,0.08) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
  z-index: 0;
}

/* ── SCROLLBAR ── */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-alt); }
::-webkit-scrollbar-thumb { background: var(--pink); border-radius: 4px; }

/* ── TYPOGRAPHY ── */
h1,h2,h3 { font-family: 'Bebas Neue', 'Press Start 2P', sans-serif; line-height: 1.2; letter-spacing: 2px; }
h1 { font-size: clamp(1.8rem, 4vw, 3rem); }
h2 { font-size: clamp(1.3rem, 2.5vw, 2rem); }
h3 { font-size: clamp(1rem, 1.8vw, 1.4rem); }

.vt323 { font-family: 'VT323', monospace; }
.orbitron { font-family: 'Bebas Neue', sans-serif; }

/* Legacy neon text — map to pastel */
.neon-yellow { color: var(--yellow-dark); }
.neon-pink   { color: var(--pink-dark); }
.neon-cyan   { color: var(--cyan-dark); }
.neon-green  { color: var(--mint); }
.neon-purple { color: var(--purple-dark); }

/* ══════════════════════════
   HEADER
══════════════════════════ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,245,249,0.96);
  border-bottom: 3px solid var(--pink);
  backdrop-filter: blur(8px);
  padding: 0 2rem;
  box-shadow: 0 2px 0 var(--border);
}

.header-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.6rem;
  color: var(--text);
  text-decoration: none;
  letter-spacing: 4px;
}

.logo span { color: var(--pink-dark); }

nav { display: flex; gap: 0.3rem; align-items: center; flex-wrap: wrap; }

nav a {
  font-family: 'Press Start 2P', monospace;
  font-size: 0.5rem;
  color: var(--text-mid);
  text-decoration: none;
  padding: 0.35rem 0.6rem;
  border: 2px solid transparent;
  transition: all 0.15s;
  letter-spacing: 0.5px;
}

nav a:hover, nav a.active {
  color: var(--pink-dark);
  border-color: var(--pink);
  background: var(--pink-light);
}

.nav-login {
  background: var(--pink) !important;
  color: #fff !important;
  border-color: var(--pink-dark) !important;
  box-shadow: 2px 2px 0 var(--pink-dark);
}
.nav-login:hover { opacity: 0.85; }

/* ══════════════════════════
   TICKER
══════════════════════════ */
.ticker {
  background: var(--yellow);
  color: var(--text);
  padding: 0.5rem 0;
  overflow: hidden;
  white-space: nowrap;
  border-bottom: 2px solid var(--yellow-dark);
}

.ticker-inner {
  display: inline-block;
  font-family: 'Press Start 2P', monospace;
  font-size: 0.55rem;
  letter-spacing: 2px;
  animation: marquee 30s linear infinite;
}

@keyframes marquee {
  from { transform: translateX(100vw); }
  to   { transform: translateX(-100%); }
}

/* ══════════════════════════
   HERO
══════════════════════════ */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding: 4rem 2rem;
  background:
    radial-gradient(ellipse at 20% 40%, rgba(255,107,157,0.18) 0%, transparent 55%),
    radial-gradient(ellipse at 80% 60%, rgba(0,201,200,0.14) 0%, transparent 55%),
    radial-gradient(ellipse at 50% 100%, rgba(255,217,61,0.12) 0%, transparent 50%),
    var(--bg);
}

.hero-bg {
  position: absolute;
  inset: 0;
}

.hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,107,157,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,201,200,0.06) 1px, transparent 1px);
  background-size: 50px 50px;
}

.hero-content { position: relative; z-index: 1; max-width: 900px; }

.hero-eyebrow {
  font-family: 'VT323', monospace;
  font-size: 1.4rem;
  color: var(--cyan-dark);
  letter-spacing: 4px;
  margin-bottom: 1rem;
  animation: blink 1.5s step-end infinite;
}

@keyframes blink { 50% { opacity: 0; } }

.hero h1 {
  font-size: clamp(2.5rem, 7vw, 5rem);
  color: var(--text);
  margin-bottom: 0.3rem;
  letter-spacing: 5px;
}

@keyframes flicker {
  0%,95%,100% { opacity: 1; }
  96% { opacity: 0.85; }
  98% { opacity: 0.9; }
}

.hero-sub {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(1.2rem, 3vw, 2rem);
  color: var(--pink-dark);
  margin-bottom: 2rem;
  letter-spacing: 4px;
}

.hero-info {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.hero-badge {
  background: white;
  border: 2px solid var(--pink);
  padding: 0.6rem 1.2rem;
  font-family: 'VT323', monospace;
  font-size: 1.3rem;
  color: var(--text);
  box-shadow: 3px 3px 0 var(--pink);
}

/* ══════════════════════════
   BUTTONS
══════════════════════════ */
.btn-primary {
  display: inline-block;
  font-family: 'Press Start 2P', monospace;
  font-size: 0.65rem;
  color: #fff;
  background: var(--pink-dark);
  border: 2px solid var(--pink-dark);
  padding: 0.9rem 2rem;
  cursor: pointer;
  text-decoration: none;
  letter-spacing: 1px;
  box-shadow: var(--shadow-md);
  transition: all 0.12s;
  position: relative;
  top: 0;
}

.btn-primary:hover {
  top: 2px;
  box-shadow: 2px 2px 0 var(--pink-dark);
  background: var(--pink);
}

.btn-secondary {
  display: inline-block;
  font-family: 'Press Start 2P', monospace;
  font-size: 0.65rem;
  color: var(--cyan-dark);
  background: white;
  border: 2px solid var(--cyan);
  padding: 0.9rem 2rem;
  cursor: pointer;
  text-decoration: none;
  letter-spacing: 1px;
  box-shadow: var(--shadow-cyan);
  transition: all 0.12s;
}

.btn-secondary:hover {
  background: var(--cyan-light);
  box-shadow: 2px 2px 0 var(--cyan-dark);
}

.btn-group { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ══════════════════════════
   SECTIONS
══════════════════════════ */
.section { padding: 5rem 2rem; position: relative; z-index: 1; }
.section:nth-child(even) { background: var(--bg-alt); }
.section-inner { max-width: 1400px; margin: 0 auto; }

.section-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  color: var(--text);
  text-align: center;
  margin-bottom: 0.3rem;
  letter-spacing: 4px;
}

.section-subtitle {
  font-family: 'VT323', monospace;
  font-size: 1.3rem;
  color: var(--text-dim);
  text-align: center;
  margin-bottom: 3rem;
  letter-spacing: 2px;
}

/* ══════════════════════════
   CARDS
══════════════════════════ */
.card {
  background: var(--card);
  border: 2px solid var(--border);
  padding: 1.5rem;
  transition: all 0.18s;
  position: relative;
}

.card:hover {
  border-color: var(--pink);
  box-shadow: 4px 4px 0 var(--pink-light);
  transform: translateY(-1px);
}

.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 4px;
  height: 0;
  background: var(--pink);
  transition: height 0.25s;
}

.card:hover::before { height: 100%; }

/* ══════════════════════════
   GAME CARDS
══════════════════════════ */
.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.2rem;
}

.game-card {
  background: white;
  border: 2px solid var(--border);
  padding: 1.5rem;
  cursor: pointer;
  transition: all 0.18s;
  position: relative;
  overflow: hidden;
}

.game-card:hover {
  border-color: var(--pink);
  box-shadow: 5px 5px 0 var(--pink-light);
  transform: translateY(-2px);
}

.game-card::after {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 0; height: 0;
  border-style: solid;
  border-width: 0 28px 28px 0;
  border-color: transparent var(--pink-light) transparent transparent;
  transition: all 0.2s;
}

.game-card:hover::after { border-color: transparent var(--pink) transparent transparent; }

.game-icon { font-size: 2.5rem; margin-bottom: 1rem; display: block; }

.game-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.1rem;
  color: var(--text);
  margin-bottom: 0.5rem;
  letter-spacing: 2px;
}

.game-rule {
  font-size: 0.85rem;
  color: var(--text-mid);
  line-height: 1.6;
}

/* ══════════════════════════
   SCHEDULE
══════════════════════════ */
.schedule-list { display: flex; flex-direction: column; gap: 0.8rem; }

.schedule-item {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  background: white;
  border: 2px solid var(--border);
  padding: 1rem 1.5rem;
  border-left: 4px solid var(--pink);
  box-shadow: 3px 3px 0 var(--border);
}

.schedule-time {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.3rem;
  color: var(--pink-dark);
  min-width: 80px;
  white-space: nowrap;
}

.schedule-desc {
  font-family: 'VT323', monospace;
  font-size: 1.3rem;
  color: var(--text);
}

/* ══════════════════════════
   PRIZES
══════════════════════════ */
.prizes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.5rem;
}

.prize-card {
  background: white;
  border: 2px solid var(--yellow-dark);
  padding: 2rem;
  text-align: center;
  box-shadow: 4px 4px 0 var(--yellow-dark);
}

.prize-rank {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 3rem;
  color: var(--yellow-dark);
  display: block;
  margin-bottom: 0.5rem;
  letter-spacing: 2px;
}

.prize-name {
  font-family: 'VT323', monospace;
  font-size: 1.3rem;
  color: var(--text-mid);
}

/* ══════════════════════════
   RULES
══════════════════════════ */
.rules-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 1.2rem;
}

.rule-item { display: flex; gap: 1rem; align-items: flex-start; }
.rule-icon { color: var(--mint); font-size: 1rem; flex-shrink: 0; margin-top: 0.1rem; }

.rule-text {
  font-size: 0.9rem;
  color: var(--text-mid);
  line-height: 1.6;
}

.rule-text strong { color: var(--pink-dark); }

/* ══════════════════════════
   FOOTER
══════════════════════════ */
.site-footer {
  background: var(--text);
  border-top: 4px solid var(--pink);
  padding: 3rem 2rem;
  margin-top: 4rem;
  color: white;
}

.footer-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
}

.footer-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.2rem;
  color: var(--yellow);
  margin-bottom: 1rem;
  letter-spacing: 3px;
}

.footer-text {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.8;
}

.footer-text a { color: var(--cyan-light); text-decoration: none; }
.footer-text a:hover { color: var(--cyan); }

.footer-bottom {
  max-width: 1400px;
  margin: 2rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.15);
  text-align: center;
  font-family: 'VT323', monospace;
  font-size: 1rem;
  color: rgba(255,255,255,0.4);
}

/* ══════════════════════════
   MODAL
══════════════════════════ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(26,26,46,0.7);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  backdrop-filter: blur(4px);
}

.modal-overlay.active { display: flex; }

.modal {
  background: white;
  border: 3px solid var(--pink);
  box-shadow: 8px 8px 0 var(--pink-light);
  width: 100%;
  max-width: 600px;
  max-height: 85vh;
  overflow-y: auto;
  padding: 2rem;
  position: relative;
}

.modal-close {
  position: absolute;
  top: 1rem; right: 1rem;
  background: var(--pink-dark);
  border: none;
  color: white;
  font-family: 'Press Start 2P', monospace;
  font-size: 0.55rem;
  padding: 0.4rem 0.8rem;
  cursor: pointer;
  box-shadow: 2px 2px 0 #7a0030;
}

.modal-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.5rem;
  color: var(--text);
  margin-bottom: 1.5rem;
  padding-right: 4rem;
  letter-spacing: 3px;
}

.modal-body {
  font-size: 0.9rem;
  color: var(--text-mid);
  line-height: 1.8;
}

/* ══════════════════════════
   FORMS
══════════════════════════ */
.form-group { margin-bottom: 1.3rem; }

.form-label {
  display: block;
  font-family: 'Press Start 2P', monospace;
  font-size: 0.5rem;
  color: var(--pink-dark);
  margin-bottom: 0.5rem;
  letter-spacing: 1px;
}

.form-input {
  width: 100%;
  background: white;
  border: 2px solid var(--border);
  border-bottom: 3px solid var(--pink);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  padding: 0.7rem 0.9rem;
  outline: none;
  transition: all 0.15s;
}

.form-input:focus {
  border-color: var(--pink);
  box-shadow: 3px 3px 0 var(--pink-light);
}

.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M0 0l6 8 6-8z' fill='%23E0005A'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-color: white;
  cursor: pointer;
}

.btn-submit {
  width: 100%;
  font-family: 'Press Start 2P', monospace;
  font-size: 0.6rem;
  background: var(--pink-dark);
  color: white;
  border: 2px solid var(--pink-dark);
  padding: 0.9rem;
  cursor: pointer;
  letter-spacing: 1px;
  box-shadow: 4px 4px 0 #7a0030;
  transition: all 0.12s;
}

.btn-submit:hover {
  box-shadow: 2px 2px 0 #7a0030;
  transform: translate(2px,2px);
}

/* ══════════════════════════
   ALERTS
══════════════════════════ */
.alert {
  padding: 0.9rem 1.2rem;
  font-size: 0.9rem;
  margin-bottom: 1.2rem;
  border-left: 4px solid;
  border-radius: 0;
}

.alert-success { border-color: var(--mint); color: #1a5c22; background: var(--mint-light); }
.alert-error   { border-color: var(--pink-dark); color: var(--pink-dark); background: #FFE0EC; }
.alert-info    { border-color: var(--cyan); color: var(--cyan-dark); background: var(--cyan-light); }

/* ══════════════════════════
   TABLES
══════════════════════════ */
.table-container { overflow-x: auto; }

table {
  width: 100%;
  border-collapse: collapse;
  font-family: 'Inter', sans-serif;
}

th {
  font-family: 'Press Start 2P', monospace;
  font-size: 0.5rem;
  color: var(--pink-dark);
  text-align: left;
  padding: 0.8rem 1rem;
  border-bottom: 3px solid var(--pink);
  letter-spacing: 1px;
  white-space: nowrap;
  background: var(--bg-alt);
}

td {
  padding: 0.7rem 1rem;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  font-size: 0.9rem;
}

tr:hover td { background: rgba(255,107,157,0.04); }

.rank-1 td:first-child { color: var(--yellow-dark); font-weight: 900; }
.rank-2 td:first-child { color: #888; }
.rank-3 td:first-child { color: #CD7F32; }

/* ══════════════════════════
   BRACKET
══════════════════════════ */
.bracket-container { overflow-x: auto; padding: 2rem 0; }
.bracket { display: flex; gap: 3rem; min-width: max-content; }
.bracket-round { display: flex; flex-direction: column; justify-content: space-around; gap: 1.5rem; }

.bracket-round-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1rem;
  color: var(--pink-dark);
  text-align: center;
  margin-bottom: 1rem;
  letter-spacing: 2px;
}

.bracket-match {
  background: white;
  border: 2px solid var(--border);
  min-width: 200px;
  box-shadow: 3px 3px 0 var(--border);
}

.bracket-team {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 0.8rem;
  font-size: 0.9rem;
}

.bracket-team:first-child { border-bottom: 1px solid var(--border); }
.bracket-team.winner { color: var(--pink-dark); background: var(--pink-light); font-weight: 700; }
.bracket-score { color: var(--mint); font-weight: 700; }

/* ══════════════════════════
   ADMIN PANEL
══════════════════════════ */
.admin-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  min-height: calc(100vh - 64px);
}

.admin-sidebar {
  background: white;
  border-right: 2px solid var(--border);
  padding: 1.5rem 0;
}

.admin-nav-item {
  display: block;
  padding: 0.7rem 1.2rem;
  font-family: 'Press Start 2P', monospace;
  font-size: 0.5rem;
  color: var(--text-mid);
  text-decoration: none;
  letter-spacing: 0.5px;
  transition: all 0.15s;
  border-left: 3px solid transparent;
}

.admin-nav-item:hover, .admin-nav-item.active {
  color: var(--pink-dark);
  border-left-color: var(--pink);
  background: var(--bg-alt);
}

.admin-content { padding: 2rem; background: var(--bg); }

/* ══════════════════════════
   TEAM CARDS
══════════════════════════ */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1rem;
}

.team-card {
  background: white;
  border: 2px solid var(--border);
  padding: 1rem;
  text-align: center;
  transition: all 0.15s;
  box-shadow: 3px 3px 0 var(--border);
}

.team-card:hover {
  border-color: var(--pink);
  box-shadow: 3px 3px 0 var(--pink-light);
}

.team-avatar {
  width: 80px; height: 80px;
  border-radius: 50%;
  border: 3px solid var(--pink);
  object-fit: cover;
  margin: 0 auto 0.8rem;
  display: block;
}

.team-avatar-placeholder {
  width: 80px; height: 80px;
  border-radius: 50%;
  border: 2px dashed var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 0.8rem;
  font-size: 2rem;
  background: var(--bg-alt);
}

.team-name {
  font-family: 'Press Start 2P', monospace;
  font-size: 0.5rem;
  color: var(--text);
  margin-bottom: 0.3rem;
  word-break: break-word;
}

.team-group { font-family: 'VT323', monospace; font-size: 1rem; color: var(--text-dim); }

/* ══════════════════════════
   MATCH CARDS
══════════════════════════ */
.match-card {
  background: white;
  border: 2px solid var(--border);
  padding: 1rem 1.2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.8rem;
  box-shadow: 3px 3px 0 var(--border);
}

.match-team { flex: 1; text-align: center; }

.match-team-name {
  font-family: 'Press Start 2P', monospace;
  font-size: 0.5rem;
  color: var(--text);
  margin-bottom: 0.3rem;
}

.match-score {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.8rem;
  color: var(--pink-dark);
  letter-spacing: 2px;
}

.match-vs {
  font-family: 'Press Start 2P', monospace;
  font-size: 0.55rem;
  color: var(--text-dim);
  padding: 0 0.5rem;
}

.match-game-badge {
  font-family: 'VT323', monospace;
  font-size: 1rem;
  background: var(--bg-alt);
  color: var(--cyan-dark);
  border: 1px solid var(--cyan);
  padding: 0.2rem 0.5rem;
}

.match-pending { border-left: 4px solid var(--text-dim); }
.match-done    { border-left: 4px solid var(--mint); }

/* ══════════════════════════
   LOGIN
══════════════════════════ */
.login-wrapper {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background:
    radial-gradient(ellipse at 30% 40%, rgba(255,107,157,0.12) 0%, transparent 55%),
    radial-gradient(ellipse at 70% 70%, rgba(0,201,200,0.1) 0%, transparent 55%),
    var(--bg);
}

.login-box {
  background: white;
  border: 3px solid var(--pink);
  box-shadow: 8px 8px 0 var(--pink-light);
  padding: 3rem;
  width: 100%;
  max-width: 440px;
}

.login-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2rem;
  color: var(--text);
  text-align: center;
  margin-bottom: 0.3rem;
  letter-spacing: 4px;
}

.login-sub {
  font-family: 'VT323', monospace;
  font-size: 1.2rem;
  color: var(--text-dim);
  text-align: center;
  margin-bottom: 2rem;
  letter-spacing: 2px;
}

/* ══════════════════════════
   TABS
══════════════════════════ */
.tabs { display: flex; gap: 0; margin-bottom: 2rem; border-bottom: 2px solid var(--border); }

.tab {
  flex: 1;
  font-family: 'Press Start 2P', monospace;
  font-size: 0.5rem;
  padding: 0.7rem 0.5rem;
  background: transparent;
  color: var(--text-dim);
  border: none;
  border-bottom: 3px solid transparent;
  cursor: pointer;
  text-align: center;
  transition: all 0.15s;
  letter-spacing: 0.5px;
  margin-bottom: -2px;
}

.tab:hover { color: var(--pink-dark); }

.tab.active {
  color: var(--pink-dark);
  border-bottom-color: var(--pink);
  background: var(--bg-alt);
}

.tab-content { display: none; }
.tab-content.active { display: block; }

/* ══════════════════════════
   GROUP BADGES
══════════════════════════ */
.group-badge {
  display: inline-block;
  font-family: 'Press Start 2P', monospace;
  font-size: 0.55rem;
  padding: 0.2rem 0.5rem;
  border: 2px solid;
  margin-right: 0.3rem;
  font-weight: 700;
}

.group-A { border-color: var(--pink-dark);   color: var(--pink-dark);   background: #FFE0EC; }
.group-B { border-color: var(--cyan-dark);   color: var(--cyan-dark);   background: var(--cyan-light); }
.group-C { border-color: var(--purple-dark); color: var(--purple-dark); background: #F0D5FF; }
.group-D { border-color: var(--mint);        color: #1a5c22;            background: var(--mint-light); }
.group-E { border-color: var(--yellow-dark); color: var(--yellow-dark); background: #FFF0B0; }
.group-F { border-color: #CC5500;            color: #CC5500;            background: #FFE5CC; }
.group-G { border-color: #0055CC;            color: #0055CC;            background: #CCE0FF; }
.group-H { border-color: #557700;            color: #557700;            background: #EEFFC0; }

/* ══════════════════════════
   STATUS BADGES
══════════════════════════ */
.badge {
  display: inline-block;
  font-family: 'VT323', monospace;
  font-size: 0.9rem;
  padding: 0.15rem 0.5rem;
  border: 2px solid;
  letter-spacing: 1px;
}

.badge-pending { border-color: var(--text-dim); color: var(--text-mid); background: var(--bg-alt); }
.badge-done    { border-color: var(--mint);     color: #1a5c22;         background: var(--mint-light); }
.badge-live    { border-color: var(--pink);     color: var(--pink-dark); background: #FFE0EC; animation: blink 1s step-end infinite; }

/* ══════════════════════════
   CHECKIN / CONFIRM
══════════════════════════ */
.checkin-box {
  background: white;
  border: 3px solid var(--cyan);
  box-shadow: 8px 8px 0 var(--cyan-light);
  padding: 2.5rem;
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
}

.confirm-card {
  background: var(--bg-alt);
  border: 2px solid var(--yellow);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.btn-confirm {
  flex: 1;
  font-family: 'Press Start 2P', monospace;
  font-size: 0.55rem;
  padding: 0.9rem;
  cursor: pointer;
  border: 2px solid;
  letter-spacing: 1px;
  transition: all 0.12s;
}

.btn-yes { background: var(--mint-light); color: #1a5c22; border-color: var(--mint); box-shadow: 3px 3px 0 #1a5c22; }
.btn-no  { background: #FFE0EC;           color: var(--pink-dark); border-color: var(--pink); box-shadow: 3px 3px 0 var(--pink-dark); }
.btn-yes:hover, .btn-no:hover { box-shadow: 1px 1px 0; transform: translate(2px,2px); }

/* ══════════════════════════
   SCORE INPUT
══════════════════════════ */
.score-input-big {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2.5rem;
  text-align: center;
  width: 100%;
  background: white;
  border: 3px solid var(--pink);
  color: var(--pink-dark);
  padding: 0.5rem;
  outline: none;
  letter-spacing: 3px;
}

.score-input-big:focus { box-shadow: 4px 4px 0 var(--pink-light); }

/* ══════════════════════════
   GALLERY
══════════════════════════ */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
}

.gallery-wide { grid-column: span 2; }

.gallery-item {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/3;
  cursor: pointer;
  background: var(--bg-alt);
  border: 2px solid var(--border);
}

.gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.gallery-item:hover img { transform: scale(1.06); }

.gallery-overlay {
  position: absolute; inset: 0;
  background: rgba(255,107,157,0.7);
  display: flex;
  align-items: flex-end;
  padding: 0.8rem;
  opacity: 0;
  transition: opacity 0.3s;
}

.gallery-item:hover .gallery-overlay { opacity: 1; }

.gallery-overlay span {
  font-family: 'Press Start 2P', monospace;
  font-size: 0.5rem;
  color: white;
  letter-spacing: 1px;
}

/* ══════════════════════════
   INSTALLER
══════════════════════════ */
.installer-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background: var(--bg);
}

.installer-box {
  background: white;
  border: 3px solid var(--cyan);
  box-shadow: 8px 8px 0 var(--cyan-light);
  padding: 3rem;
  width: 100%;
  max-width: 560px;
}

.step-indicator { display: flex; gap: 0.5rem; margin-bottom: 2rem; }
.step { flex: 1; height: 5px; background: var(--border); border-radius: 2px; }
.step.done   { background: var(--pink); }
.step.active { background: var(--cyan); }

/* ══════════════════════════
   RESPONSIVE
══════════════════════════ */
@media (max-width: 768px) {
  .admin-layout { grid-template-columns: 1fr; }
  .admin-sidebar {
    border-right: none;
    border-bottom: 2px solid var(--border);
    display: flex;
    flex-wrap: wrap;
    padding: 0.5rem;
  }
  .admin-nav-item {
    padding: 0.4rem 0.7rem;
    font-size: 0.4rem;
    border-left: none;
    border-bottom: 3px solid transparent;
  }
  .admin-nav-item.active {
    border-bottom-color: var(--pink);
    border-left: none;
  }
  .schedule-item { flex-direction: column; gap: 0.5rem; }
  .match-card { flex-wrap: wrap; }
  nav { display: none; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-wide { grid-column: span 2; }
}

/* ══════════════════════════
   PIXEL CORNERS (legacy)
══════════════════════════ */
.pixel-corners {
  clip-path: polygon(0 8px, 8px 0, calc(100% - 8px) 0, 100% 8px, 100% calc(100% - 8px), calc(100% - 8px) 100%, 8px 100%, 0 calc(100% - 8px));
}

/* ══════════════════════════
   LIVE DOT ANIMATION
══════════════════════════ */
.live-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--pink);
  display: inline-block;
  margin-right: 6px;
  animation: blink 1s step-end infinite;
}

/* ══════════════════════════
   ACTIVE EVENT BAR (admin)
══════════════════════════ */
.active-event-bar {
  background: var(--yellow);
  border-bottom: 2px solid var(--yellow-dark);
  padding: 0.6rem 2rem;
  font-family: 'Press Start 2P', monospace;
  font-size: 0.5rem;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ════════════════════════════════════════
   90s OLYMPIADE — SECTION COLOR THEMES
════════════════════════════════════════ */

.section-pink {
  background: #FFF0F6;
  border-top: 4px solid var(--pink);
  border-bottom: 4px solid var(--pink);
}

.section-cyan {
  background: #F0FFFE;
  border-top: 4px solid var(--cyan);
  border-bottom: 4px solid var(--cyan);
}

.section-yellow {
  background: #FFFCE0;
  border-top: 4px solid var(--yellow-dark);
  border-bottom: 4px solid var(--yellow-dark);
}

.section-purple {
  background: #F8F0FF;
  border-top: 4px solid var(--purple-dark);
  border-bottom: 4px solid var(--purple-dark);
}

.section-mint {
  background: #F0FFF3;
  border-top: 4px solid var(--mint);
  border-bottom: 4px solid var(--mint);
}

.section-dark {
  background: #1A1A2E;
  color: white;
  border-top: 4px solid var(--pink);
  border-bottom: 4px solid var(--pink);
}

/* Checker stripe divider */
.checker-divider {
  height: 18px;
  background-image: repeating-linear-gradient(
    90deg,
    var(--pink) 0px, var(--pink) 18px,
    var(--yellow) 18px, var(--yellow) 36px,
    var(--cyan) 36px, var(--cyan) 54px,
    var(--purple) 54px, var(--purple) 72px
  );
}

/* Section title colored variants */
.section-title-pink  { color: var(--pink-dark); }
.section-title-cyan  { color: var(--cyan-dark); }
.section-title-yellow{ color: var(--yellow-dark); }
.section-title-purple{ color: var(--purple-dark); }
.section-title-mint  { color: #1a7a2e; }
.section-title-white { color: white; }

/* Cartoon speech bubble */
.speech-bubble {
  background: white;
  border: 3px solid var(--text);
  border-radius: 16px;
  padding: 0.8rem 1.2rem;
  position: relative;
  display: inline-block;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.1rem;
  letter-spacing: 2px;
  color: var(--text);
  box-shadow: 3px 3px 0 var(--text);
}
.speech-bubble::after {
  content: '';
  position: absolute;
  bottom: -18px; left: 20px;
  width: 0; height: 0;
  border-style: solid;
  border-width: 18px 10px 0 10px;
  border-color: var(--text) transparent transparent transparent;
}
.speech-bubble::before {
  content: '';
  position: absolute;
  bottom: -13px; left: 22px;
  width: 0; height: 0;
  border-style: solid;
  border-width: 15px 8px 0 8px;
  border-color: white transparent transparent transparent;
  z-index: 1;
}

/* Sticker badge */
.sticker {
  display: inline-block;
  padding: 0.4rem 1rem;
  border: 3px solid var(--text);
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1rem;
  letter-spacing: 2px;
  transform: rotate(-2deg);
  box-shadow: 3px 3px 0 var(--text);
}

/* Deco star */
.deco-star {
  display: inline-block;
  animation: spin-slow 8s linear infinite;
}
@keyframes spin-slow { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

/* Zigzag border */
.zigzag-top {
  position: relative;
}
.zigzag-top::before {
  content: '';
  position: absolute;
  top: -10px; left: 0; right: 0;
  height: 10px;
  background:
    linear-gradient(135deg, var(--bg) 33.33%, transparent 33.33%) 0 0,
    linear-gradient(225deg, var(--bg) 33.33%, transparent 33.33%) 0 0;
  background-size: 20px 10px;
  background-color: var(--pink);
}

/* Game card colored variants */
.game-card-pink   { border-color: var(--pink) !important; background: #FFF5F9 !important; }
.game-card-cyan   { border-color: var(--cyan) !important; background: #F0FFFE !important; }
.game-card-yellow { border-color: var(--yellow-dark) !important; background: #FFFCE0 !important; }
.game-card-purple { border-color: var(--purple) !important; background: #F8F0FF !important; }
.game-card-mint   { border-color: var(--mint) !important; background: #F0FFF3 !important; }

/* Hero deco elements */
.hero-deco {
  position: absolute;
  pointer-events: none;
  z-index: 0;
  opacity: 0.25;
}

/* Schedule colored items */
.schedule-item-yellow { border-left-color: var(--yellow-dark) !important; background: #FFFCE0; }
.schedule-item-pink   { border-left-color: var(--pink) !important; background: #FFF0F6; }
.schedule-item-cyan   { border-left-color: var(--cyan-dark) !important; background: #F0FFFE; }
.schedule-item-mint   { border-left-color: var(--mint) !important; background: #F0FFF3; }

/* Prize card colored */
.prize-gold   { border-color: var(--yellow-dark) !important; background: #FFFCE0; box-shadow: 4px 4px 0 var(--yellow-dark); }
.prize-silver { border-color: #888 !important; background: #F5F5F5; box-shadow: 4px 4px 0 #888; }
.prize-bronze { border-color: #CD7F32 !important; background: #FFF5E8; box-shadow: 4px 4px 0 #CD7F32; }
