/* =====================================================
   Sam Media · FIFA World Cup 2026 Poule
   Brand: #7DC242 (Sam Green) · #000 · #fff
   ===================================================== */

:root {
  --green:      #7DC242;
  --green-dim:  #5a9030;
  --green-glow: rgba(125, 194, 66, 0.15);
  --bg:         #060e08;
  --bg-card:    #0c1a0e;
  --bg-card2:   #112214;
  --bg-input:   #07100a;
  --border:     #1c3020;
  --border-hi:  #2a4830;
  --text:       #f0f0f0;
  --text-sub:   #888;
  --text-dim:   #555;
  --gold:       #f0b429;
  --silver:     #9eb3c2;
  --bronze:     #cd7f32;
  --red:        #ef4444;
  --yellow:     #eab308;
  --radius:     12px;
  --radius-sm:  8px;
  --shadow:     0 4px 24px rgba(0,0,0,0.5);
  --transition: 0.18s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background:
    /* Sam Green dome overhead — stadium atmosphere */
    radial-gradient(ellipse 140% 45% at 50% -8%, rgba(125,194,66,0.32) 0%, transparent 55%),
    /* Floodlight towers — sharp beams left & right */
    radial-gradient(ellipse 22% 65% at  3%  2%, rgba(125,194,66,0.22) 0%, transparent 75%),
    radial-gradient(ellipse 22% 65% at 97%  2%, rgba(125,194,66,0.22) 0%, transparent 75%),
    /* Secondary beam fans */
    radial-gradient(ellipse 18% 50% at 18%  0%, rgba(125,194,66,0.10) 0%, transparent 65%),
    radial-gradient(ellipse 18% 50% at 82%  0%, rgba(125,194,66,0.10) 0%, transparent 65%),
    /* Warm crowd glow — amber from mid-stands */
    radial-gradient(ellipse 55% 35% at 78% 72%, rgba(220,150,40,0.13) 0%, transparent 55%),
    radial-gradient(ellipse 45% 30% at 22% 68%, rgba(200,130,30,0.10) 0%, transparent 50%),
    /* Pitch green rising from bottom */
    radial-gradient(ellipse 85% 28% at 50% 108%, rgba(125,194,66,0.20) 0%, transparent 62%),
    /* Deep charcoal-teal base */
    linear-gradient(180deg, #040a06 0%, #060e08 22%, #07100a 50%, #08130c 75%, #091508 100%);
  color: var(--text);
  min-height: 100vh;
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  position: relative;
}

/* Stadium silhouette + pitch */
body::before {
  content: '';
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 52vh;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 480' preserveAspectRatio='xMidYMax slice'%3E%3C!-- LEFT STAND --%3E%3Cpath d='M0,480 L0,80 L18,78 L18,120 L50,115 L50,155 L82,148 L82,188 L115,180 L115,220 L148,212 L148,255 L182,246 L182,292 L218,284 L218,340 L256,334 L256,480 Z' fill='%230d1f0d'/%3E%3C!-- Left stand row lines --%3E%3Cline x1='18' y1='120' x2='256' y2='334' stroke='%23142814' stroke-width='1'/%3E%3Cline x1='50' y1='155' x2='256' y2='334' stroke='%23142814' stroke-width='1'/%3E%3Cline x1='82' y1='188' x2='256' y2='334' stroke='%23142814' stroke-width='1'/%3E%3Cline x1='115' y1='220' x2='256' y2='334' stroke='%23142814' stroke-width='1'/%3E%3Cline x1='148' y1='255' x2='256' y2='334' stroke='%23142814' stroke-width='1'/%3E%3C!-- RIGHT STAND --%3E%3Cpath d='M1440,480 L1440,80 L1422,78 L1422,120 L1390,115 L1390,155 L1358,148 L1358,188 L1325,180 L1325,220 L1292,212 L1292,255 L1258,246 L1258,292 L1222,284 L1222,340 L1184,334 L1184,480 Z' fill='%230d1f0d'/%3E%3C!-- Right stand row lines --%3E%3Cline x1='1422' y1='120' x2='1184' y2='334' stroke='%23142814' stroke-width='1'/%3E%3Cline x1='1390' y1='155' x2='1184' y2='334' stroke='%23142814' stroke-width='1'/%3E%3Cline x1='1358' y1='188' x2='1184' y2='334' stroke='%23142814' stroke-width='1'/%3E%3Cline x1='1325' y1='220' x2='1184' y2='334' stroke='%23142814' stroke-width='1'/%3E%3Cline x1='1292' y1='255' x2='1184' y2='334' stroke='%23142814' stroke-width='1'/%3E%3C!-- FAR END STAND (top arc) --%3E%3Cpath d='M256,200 Q720,150 1184,200 L1184,240 Q720,190 256,240 Z' fill='%230a1a0a'/%3E%3Cpath d='M256,240 Q720,190 1184,240 L1184,275 Q720,225 256,275 Z' fill='%230c1e0c'/%3E%3Cpath d='M256,275 Q720,225 1184,275 L1184,334 L256,334 Z' fill='%230e220e'/%3E%3C!-- LEFT FLOODLIGHT TOWER --%3E%3Crect x='5' y='0' width='10' height='82' fill='%23193019' rx='2'/%3E%3Crect x='0' y='75' width='20' height='7' fill='%231f3d1f' rx='1'/%3E%3Cellipse cx='10' cy='75' rx='22' ry='8' fill='rgba(125,194,66,0.35)'/%3E%3C!-- RIGHT FLOODLIGHT TOWER --%3E%3Crect x='1425' y='0' width='10' height='82' fill='%23193019' rx='2'/%3E%3Crect x='1420' y='75' width='20' height='7' fill='%231f3d1f' rx='1'/%3E%3Cellipse cx='1430' cy='75' rx='22' ry='8' fill='rgba(125,194,66,0.35)'/%3E%3C!-- PITCH base --%3E%3Crect x='256' y='334' width='928' height='146' fill='%230d2a0d'/%3E%3C!-- Pitch stripes (alternating lighter/darker) --%3E%3Crect x='256' y='334' width='93' height='146' fill='rgba(0,0,0,0.12)'/%3E%3Crect x='442' y='334' width='93' height='146' fill='rgba(0,0,0,0.12)'/%3E%3Crect x='628' y='334' width='93' height='146' fill='rgba(0,0,0,0.12)'/%3E%3Crect x='814' y='334' width='93' height='146' fill='rgba(0,0,0,0.12)'/%3E%3Crect x='1000' y='334' width='93' height='146' fill='rgba(0,0,0,0.12)'/%3E%3Crect x='1093' y='334' width='91' height='146' fill='rgba(0,0,0,0.12)'/%3E%3C!-- Pitch markings --%3E%3Crect x='256' y='334' width='928' height='146' fill='none' stroke='rgba(255,255,255,0.18)' stroke-width='2'/%3E%3Cline x1='720' y1='334' x2='720' y2='480' stroke='rgba(255,255,255,0.18)' stroke-width='1.5'/%3E%3Cellipse cx='720' cy='407' rx='70' ry='42' fill='none' stroke='rgba(255,255,255,0.16)' stroke-width='1.5'/%3E%3Ccircle cx='720' cy='407' r='4' fill='rgba(255,255,255,0.25)'/%3E%3C!-- Left penalty area --%3E%3Crect x='256' y='366' width='110' height='100' fill='none' stroke='rgba(255,255,255,0.13)' stroke-width='1.5'/%3E%3Crect x='256' y='382' width='55' height='68' fill='none' stroke='rgba(255,255,255,0.10)' stroke-width='1'/%3E%3C!-- Right penalty area --%3E%3Crect x='1074' y='366' width='110' height='100' fill='none' stroke='rgba(255,255,255,0.13)' stroke-width='1.5'/%3E%3Crect x='1129' y='382' width='55' height='68' fill='none' stroke='rgba(255,255,255,0.10)' stroke-width='1'/%3E%3C!-- Goals --%3E%3Crect x='240' y='375' width='16' height='64' fill='none' stroke='rgba(255,255,255,0.30)' stroke-width='2'/%3E%3Crect x='1184' y='375' width='16' height='64' fill='none' stroke='rgba(255,255,255,0.30)' stroke-width='2'/%3E%3C!-- Nets behind goals --%3E%3Cpath d='M240,375 L220,365 L220,445 L240,439' fill='none' stroke='rgba(255,255,255,0.12)' stroke-width='1'/%3E%3Cpath d='M1200,375 L1220,365 L1220,445 L1200,439' fill='none' stroke='rgba(255,255,255,0.12)' stroke-width='1'/%3E%3C!-- Pitch green glow overlay --%3E%3Crect x='256' y='334' width='928' height='146' fill='url(%23pitchGlow)'/%3E%3Cdefs%3E%3CradialGradient id='pitchGlow' cx='50%25' cy='50%25' r='50%25'%3E%3Cstop offset='0%25' stop-color='rgba(125,194,66,0.08)'/%3E%3Cstop offset='100%25' stop-color='rgba(0,0,0,0)'/%3E%3C/radialGradient%3E%3C/defs%3E%3C/svg%3E");
  background-size: 100% 100%;
  pointer-events: none;
  z-index: 0;
}

/* Football net grid — full-page subtle overlay */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    repeating-linear-gradient(0deg,   transparent, transparent 34px, rgba(125,194,66,0.035) 34px, rgba(125,194,66,0.035) 35px),
    repeating-linear-gradient(90deg,  transparent, transparent 34px, rgba(125,194,66,0.035) 34px, rgba(125,194,66,0.035) 35px);
  pointer-events: none;
  z-index: 0;
}

/* ── SCROLLBAR ── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border-hi); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-dim); }

/* ── HEADER ── */
#header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(5, 13, 5, 0.93);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 0 0 rgba(125,194,66,0.28), 0 4px 24px rgba(0,0,0,0.7);
  padding: 0 24px;
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 24px;
  height: 60px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
}

.logo img {
  height: 34px;
  width: auto;
  filter: drop-shadow(0 0 8px rgba(125,194,66,0.30));
}

.logo-divider {
  width: 1px;
  height: 28px;
  background: var(--border-hi);
  flex-shrink: 0;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
  gap: 3px;
}

.logo-text .brand {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--text);
}

.logo-text .event {
  font-size: 11px;
  color: var(--green);
  font-weight: 700;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  text-shadow: 0 0 12px rgba(125,194,66,0.5);
}

.nav-tabs {
  display: flex;
  gap: 4px;
  flex: 1;
}

.nav-tab {
  padding: 6px 14px;
  border-radius: 6px;
  border: none;
  background: transparent;
  color: var(--text-sub);
  font-size: 13.5px;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
  position: relative;
}

.nav-tab:hover { color: var(--text); background: var(--bg-card2); }

.nav-tab.active {
  color: var(--green);
  background: var(--green-glow);
}

.nav-tab.active::after {
  content: '';
  position: absolute;
  bottom: -7px;
  left: 14px;
  right: 14px;
  height: 2px;
  background: var(--green);
  border-radius: 1px;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}

.save-status {
  font-size: 12px;
  color: var(--text-dim);
  min-width: 70px;
  text-align: right;
}

.save-status.saving { color: var(--yellow); }
.save-status.saved  { color: var(--green); }
.save-status.error  { color: var(--red); }

#user-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  cursor: pointer;
  transition: all var(--transition);
  color: var(--text);
  font-size: 13px;
}

#user-btn:hover { border-color: var(--border-hi); }

.avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: #000;
  flex-shrink: 0;
}

/* ── MAIN LAYOUT ── */
#app {
  max-width: 1200px;
  margin: 0 auto;
  padding: 28px 24px 80px;
  position: relative;
  z-index: 1;
}

.view { display: none; }
.view.active { display: block; }

/* ── SECTION HEADER ── */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 12px;
}

.section-title {
  font-size: 22px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-title .icon { font-size: 20px; }

.section-sub {
  font-size: 13px;
  color: var(--text-sub);
  margin-top: 3px;
}

/* ── CARDS ── */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  transition: border-color var(--transition);
  backdrop-filter: blur(4px);
}

.card:hover { border-color: var(--border-hi); }

/* ── BUTTON ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 18px;
  border-radius: var(--radius-sm);
  border: none;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
}

.btn-primary {
  background: var(--green);
  color: #000;
}
.btn-primary:hover { background: #8ed44a; transform: translateY(-1px); }

.btn-ghost {
  background: transparent;
  color: var(--text-sub);
  border: 1px solid var(--border);
}
.btn-ghost:hover { border-color: var(--border-hi); color: var(--text); }

.btn-sm { padding: 6px 12px; font-size: 12.5px; }

/* ── LEADERBOARD ── */
.leaderboard-grid {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.lb-row {
  display: grid;
  grid-template-columns: 48px 1fr auto auto;
  align-items: center;
  gap: 12px 16px;
  padding: 14px 18px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  cursor: pointer;
  position: relative;
}

.lb-row:hover { border-color: var(--border-hi); background: var(--bg-card2); }
.lb-row:hover::after {
  content: '→ view';
  position: absolute;
  right: 76px;
  font-size: 10px;
  color: var(--text-dim);
  pointer-events: none;
}
.lb-row.me { border-color: var(--green); background: var(--green-glow); }

.lb-rank {
  font-size: 18px;
  font-weight: 800;
  text-align: center;
  color: var(--text-dim);
}

.lb-rank.rank-1 { color: var(--gold); font-size: 22px; }
.lb-rank.rank-2 { color: var(--silver); font-size: 20px; }
.lb-rank.rank-3 { color: var(--bronze); font-size: 19px; }

.lb-user {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.lb-name {
  font-weight: 600;
  font-size: 15px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.lb-bar-wrap {
  width: 140px;
  height: 6px;
  background: var(--border);
  border-radius: 3px;
  overflow: hidden;
}

.lb-bar {
  height: 100%;
  background: var(--green);
  border-radius: 3px;
  transition: width 0.6s ease;
}

.lb-pts {
  font-size: 16px;
  font-weight: 700;
  color: var(--green);
  white-space: nowrap;
}

.lb-sub {
  font-size: 11px;
  color: var(--text-dim);
}

.lb-progress {
  font-size: 12px;
  color: var(--text-sub);
  white-space: nowrap;
}

.lb-prizes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 28px;
}

.prize-card {
  position: relative;
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0;
  text-align: center;
  transition: all 0.3s;
}

.prize-card:hover { border-color: var(--border-hi); transform: translateY(-3px); box-shadow: 0 12px 40px rgba(0,0,0,0.6); }

.prize-card.rank-1 { border-color: rgba(255,215,0,0.4); }
.prize-card.rank-2 { border-color: rgba(192,192,192,0.4); }
.prize-card.rank-3 { border-color: rgba(205,127,50,0.4); }

.prize-hero {
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.prize-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}

.prize-card.rank-1 .prize-hero-bg {
  background: linear-gradient(135deg, #1a0a00 0%, #4a1500 30%, #8B0000 60%, #DAA520 100%);
}
.prize-card.rank-2 .prize-hero-bg {
  background: linear-gradient(135deg, #0a0a12 0%, #1a1a2e 40%, #4a4a6a 70%, #8a8aaa 100%);
}
.prize-card.rank-3 .prize-hero-bg {
  background: linear-gradient(135deg, #0a0a0a 0%, #1a0f00 40%, #3d2200 60%, #6b3e00 100%);
}

.prize-player-silhouette {
  position: relative;
  z-index: 2;
  width: 90px;
  height: 110px;
  display: flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 8px 20px rgba(0,0,0,0.7));
}

.prize-player-silhouette svg {
  width: 100%;
  height: 100%;
}

.prize-rank-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,215,0,0.15) 0%, transparent 70%);
  z-index: 1;
}
.rank-2 .prize-rank-glow {
  background: radial-gradient(circle, rgba(192,192,192,0.12) 0%, transparent 70%);
}
.rank-3 .prize-rank-glow {
  background: radial-gradient(circle, rgba(205,127,50,0.12) 0%, transparent 70%);
}

.prize-kit-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  font-size: 32px;
  z-index: 5;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.8));
}

.prize-player-face.fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-card2);
  font-size: 28px;
  font-weight: 800;
  color: var(--text);
}

.prize-body {
  padding: 16px 14px 18px;
  background: linear-gradient(180deg, rgba(6,14,8,0) 0%, rgba(6,14,8,0.9) 100%);
  position: relative;
  z-index: 2;
}

.prize-crown { font-size: 28px; margin-bottom: 2px; }
.prize-place { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-dim); }
.prize-value {
  font-size: 15px;
  font-weight: 700;
  margin-top: 6px;
  min-height: 22px;
  color: var(--text);
}
.prize-value.editable { cursor: pointer; }
.prize-value.editable:hover { color: var(--green); }

.prize-edit-hint {
  font-size: 10px;
  color: var(--text-dim);
  margin-top: 4px;
  opacity: 0;
  transition: opacity 0.2s;
}
.prize-card:hover .prize-edit-hint { opacity: 1; }

.prize-player-full {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  height: 140px;
  width: auto;
  object-fit: contain;
  object-position: bottom;
  z-index: 1;
  filter: brightness(0.75) saturate(0.9);
}

.prize-kit-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 28px;
  z-index: 3;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.6));
}

.prize-player-face {
  position: absolute;
  bottom: 8px;
  right: 10px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.5);
  background-color: var(--bg-card2);
  z-index: 4;
}

/* ── HOW TO PLAY ── */
.howto-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
}

.howto-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 20px;
  transition: border-color var(--transition);
}

.howto-card:hover { border-color: var(--border-hi); }

.howto-icon { font-size: 32px; margin-bottom: 10px; }
.howto-title { font-size: 16px; font-weight: 700; margin-bottom: 10px; }
.howto-body { font-size: 13.5px; color: var(--text-sub); line-height: 1.6; }
.howto-body p { margin-bottom: 8px; }
.howto-body ul { padding-left: 18px; margin-bottom: 8px; }
.howto-body li { margin-bottom: 4px; }

/* ── SUB-TABS (within predictions) ── */
.sub-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0;
}

.sub-tab {
  padding: 10px 18px;
  border: none;
  background: transparent;
  color: var(--text-sub);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: all var(--transition);
}

.sub-tab:hover { color: var(--text); }
.sub-tab.active { color: var(--green); border-bottom-color: var(--green); }

.sub-view { display: none; }
.sub-view.active { display: block; }

/* ── GROUP SELECTOR ── */
.group-selector {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 20px;
}

.group-btn {
  padding: 6px 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text-sub);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
}

.group-btn:hover { border-color: var(--border-hi); color: var(--text); }

.group-btn.active {
  background: var(--green-glow);
  border-color: var(--green);
  color: var(--green);
}

/* ── MATCH CARD ── */
.match-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 10px;
  transition: border-color var(--transition);
}

.match-card:hover { border-color: var(--border-hi); }
.match-card.locked { opacity: 0.6; pointer-events: none; }
.match-card.has-result { border-color: #2a3a1a; }

.match-label {
  font-size: 11px;
  color: var(--text-dim);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 14px;
}

.match-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
}

.team-side {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
}

.team-flag { font-size: 28px; line-height: 1; }

.team-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 120px;
}

.team-name.winning { color: var(--green); }

.score-block {
  display: flex;
  align-items: center;
  gap: 6px;
}

.score-ctrl {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.score-btn {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg-card2);
  color: var(--text);
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
  line-height: 1;
  font-weight: 400;
}

.score-btn:hover { background: var(--green); border-color: var(--green); color: #000; }

.score-num {
  font-size: 28px;
  font-weight: 800;
  min-width: 36px;
  text-align: center;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

.score-sep {
  font-size: 22px;
  font-weight: 300;
  color: var(--text-dim);
}

.match-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  font-size: 12px;
  color: var(--text-dim);
}

.result-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.result-badge.home-win { background: rgba(125,194,66,0.15); color: var(--green); }
.result-badge.draw     { background: rgba(234,179,8,0.15);  color: var(--yellow); }
.result-badge.away-win { background: rgba(59,130,246,0.15); color: #60a5fa; }

.actual-result {
  font-size: 12px;
  color: var(--text-sub);
  display: flex;
  align-items: center;
  gap: 6px;
}

.actual-result .correct   { color: var(--green); }
.actual-result .incorrect { color: var(--red); }

/* ── GROUP STANDINGS TABLE ── */
.standings-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 32px;
}

.standings-title {
  padding: 12px 18px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-sub);
  border-bottom: 1px solid var(--border);
  background: var(--bg-card2);
}

.standings-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.standings-table th {
  padding: 8px 14px;
  text-align: center;
  color: var(--text-dim);
  font-size: 11px;
  font-weight: 600;
  border-bottom: 1px solid var(--border);
}

.standings-table th:first-child { text-align: left; }

.standings-table td {
  padding: 10px 14px;
  text-align: center;
  border-bottom: 1px solid var(--border);
}

.standings-table td:first-child { text-align: left; }

.standings-table tr:last-child td { border-bottom: none; }

.standings-table tr.qualifies td { border-left: 2px solid var(--green); }
.standings-table tr.qualifies-3rd td { border-left: 2px solid var(--yellow); }

.std-team {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
}

.std-pts { font-weight: 700; color: var(--green); }

/* ── KNOCKOUT BRACKET ── */
.ko-intro {
  padding: 14px 18px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 20px;
  font-size: 13.5px;
  color: var(--text-sub);
  display: flex;
  align-items: center;
  gap: 10px;
}

/* ── BRACKET TOOLBAR ── */
.bkt-toolbar {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.bkt-hint {
  font-size: 12px;
  color: var(--text-dim);
}

/* ── BRACKET LAYOUT ── */
.bkt-scroll {
  overflow: hidden;
  width: 100%;
  /* JS sets height to scaled tree height so nothing gets cut off */
}

.bkt-tree {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  min-width: 1260px;
  height: 940px;   /* 8 slots × 940/8 = 117.5px each */
}

/* Each round column */
.bkt-col {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  height: 100%;
  flex: 0 0 150px;
  padding-top: 44px;
  position: relative;
  box-sizing: border-box;
}

.bkt-col-hdr {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 8px;
  border-bottom: 1px solid var(--border);
  background: rgba(125,194,66,0.04);
}

.bkt-col-name {
  font-size: 10px;
  font-weight: 700;
  color: var(--text-sub);
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.bkt-col-pts {
  font-size: 10px;
  font-weight: 700;
  color: var(--green);
}

/* Center column: Final + 3rd */
.bkt-center-col {
  flex: 0 0 168px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: stretch;
  gap: 8px;
  padding: 8px 0;
  border-left: 1px solid rgba(125,194,66,0.2);
  border-right: 1px solid rgba(125,194,66,0.2);
}

.bkt-center-lbl {
  text-align: center;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-sub);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  padding: 0 12px;
}

/* ── BRACKET CARD ── */
.bkt-card {
  background: var(--bg-card2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 9px;
  transition: border-color 0.15s, box-shadow 0.15s;
  position: relative;
}

.bkt-card.has-winner {
  border-color: rgba(125,194,66,0.35);
  box-shadow: 0 0 12px rgba(125,194,66,0.08);
}

.bkt-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.bkt-mnum {
  font-size: 10px;
  font-weight: 700;
  color: var(--green);
  font-family: ui-monospace, monospace;
  letter-spacing: 0.04em;
}

.bkt-lock { font-size: 10px; }

/* Team line: team cell + score input on one row */
.bkt-team-line {
  display: flex;
  align-items: stretch;
  gap: 4px;
  margin-bottom: 4px;
}
.bkt-team-line > .bkt-sel,
.bkt-team-line > .bkt-slot {
  flex: 1;
  margin-bottom: 0;
}
.bkt-score-in {
  width: 32px;
  flex-shrink: 0;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 5px;
  color: var(--text);
  font-size: 12px;
  font-weight: 700;
  text-align: center;
  padding: 0;
  appearance: textfield;
  -moz-appearance: textfield;
}
.bkt-score-in::-webkit-outer-spin-button,
.bkt-score-in::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.bkt-score-in:focus { outline: none; border-color: var(--green); }
.bkt-score-display {
  width: 32px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 5px;
  font-size: 12px;
  font-weight: 700;
  color: var(--text);
}

/* Team select (R32 — free pick) */
.bkt-sel {
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 5px;
  color: var(--text);
  padding: 5px 7px;
  font-size: 11.5px;
  cursor: pointer;
  margin-bottom: 4px;
  transition: border-color 0.12s;
}
.bkt-sel:focus { outline: none; border-color: var(--green); }
.bkt-sel option { background: #0c1a0e; }

/* Team slot (R16 onward — auto-filled) */
.bkt-slot {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 5px 7px;
  border-radius: 5px;
  background: var(--bg-card);
  border: 1px solid transparent;
  font-size: 11.5px;
  margin-bottom: 4px;
  min-height: 27px;
  color: var(--text-dim);
  transition: all 0.15s;
}
.bkt-slot.filled  { color: var(--text); border-color: var(--border); }
.bkt-slot.winner  {
  background: rgba(125,194,66,0.14);
  border-color: rgba(125,194,66,0.45);
  color: var(--green);
  font-weight: 700;
}
.bkt-flag  { font-size: 15px; flex-shrink: 0; }
.bkt-tname { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bkt-tbd   { color: var(--text-dim); font-style: italic; font-size: 11px; }

/* Winner pick row */
.bkt-winner-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin-top: 7px;
  padding-top: 7px;
  border-top: 1px solid var(--border);
}
.bkt-adv { font-size: 9px; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.05em; }
.bkt-flag-btn {
  background: var(--bg-card);
  border: 2px solid var(--border);
  border-radius: 50%;
  width: 30px;
  height: 30px;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.14s;
  line-height: 1;
}
.bkt-flag-btn:hover:not(.chosen) { border-color: var(--border-hi); transform: scale(1.08); }
.bkt-flag-btn.chosen {
  border-color: var(--green);
  background: rgba(125,194,66,0.18);
  box-shadow: 0 0 10px rgba(125,194,66,0.35);
  transform: scale(1.12);
}

/* ── BONUS QUESTIONS ── */
.bonus-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 16px;
}

.bonus-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  transition: border-color var(--transition);
}

.bonus-card:hover { border-color: var(--border-hi); }

.bonus-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.bonus-emoji { font-size: 26px; line-height: 1; }

.bonus-question {
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 14px;
}

.bonus-pts {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--green);
  white-space: nowrap;
  background: var(--green-glow);
  padding: 3px 9px;
  border-radius: 4px;
  flex-shrink: 0;
}

.bonus-tip {
  font-size: 12px;
  color: var(--text-sub);
  background: var(--bg-card2);
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  margin-bottom: 14px;
  border-left: 3px solid var(--green);
  line-height: 1.5;
}

.bonus-input {
  width: 100%;
  padding: 10px 14px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 14px;
  outline: none;
  transition: border-color var(--transition);
  appearance: none;
}

.bonus-input:focus { border-color: var(--green); }
.bonus-input option { background: #1c1c1c; }

.bool-toggle {
  display: flex;
  gap: 8px;
}

.bool-btn {
  flex: 1;
  padding: 10px;
  background: var(--bg-card2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-sub);
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  transition: all var(--transition);
}

.bool-btn:hover { border-color: var(--border-hi); color: var(--text); }
.bool-btn.selected-yes { background: var(--green-glow); border-color: var(--green); color: var(--green); }
.bool-btn.selected-no  { background: rgba(239,68,68,0.1); border-color: var(--red); color: var(--red); }

.bonus-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}

.odds-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11.5px;
  color: var(--text-sub);
  text-decoration: none;
  padding: 4px 10px;
  background: var(--bg-card2);
  border: 1px solid var(--border);
  border-radius: 4px;
  transition: all var(--transition);
}

.odds-link:hover { border-color: var(--green); color: var(--green); }
.odds-link::before { content: '↗'; font-size: 10px; }

/* ── BROWSE ── */
.browse-search-wrap {
  margin-bottom: 20px;
  position: relative;
}

.browse-search {
  width: 100%;
  padding: 12px 18px 12px 44px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-size: 14px;
  outline: none;
  transition: border-color var(--transition);
}

.browse-search:focus { border-color: var(--green); }
.browse-search::placeholder { color: var(--text-dim); }

.browse-search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-dim);
  font-size: 16px;
}

.browse-user-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 10px;
  margin-bottom: 28px;
}

.browse-user-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition);
}

.browse-user-card:hover { border-color: var(--green); }
.browse-user-card.me   { border-color: var(--green); background: var(--green-glow); }

.browse-user-info { flex: 1; min-width: 0; }
.browse-user-name { font-weight: 600; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.browse-user-pts  { font-size: 12px; color: var(--green); font-weight: 700; }

/* ── COMPARISON TABLE ── */
.compare-table-wrap {
  overflow-x: auto;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.compare-table th {
  padding: 10px 14px;
  background: var(--bg-card2);
  color: var(--text-sub);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

.compare-table td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
}

.compare-table tr:last-child td { border-bottom: none; }
.compare-table tr:nth-child(even) td { background: rgba(255,255,255,0.01); }

.pred-score {
  font-weight: 700;
  font-family: monospace;
  font-size: 14px;
}

.pred-correct   { color: var(--green); }
.pred-partial   { color: var(--yellow); }
.pred-incorrect { color: var(--text-dim); }
.pred-empty     { color: var(--text-dim); font-style: italic; }

/* ── ADMIN PANEL ── */
.admin-section {
  margin-bottom: 28px;
}

.admin-section-title {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-sub);
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

.lock-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.lock-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 13.5px;
}

.lock-label { flex: 1; font-weight: 600; }

.toggle-switch {
  position: relative;
  width: 44px;
  height: 24px;
}

.toggle-switch input { opacity: 0; width: 0; height: 0; }

.toggle-slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background: var(--border-hi);
  border-radius: 24px;
  transition: all 0.3s;
}

.toggle-slider::before {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  left: 3px;
  bottom: 3px;
  background: white;
  border-radius: 50%;
  transition: all 0.3s;
}

.toggle-switch input:checked + .toggle-slider { background: var(--green); }
.toggle-switch input:checked + .toggle-slider::before { transform: translateX(20px); }

.result-entry-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 10px;
}

.result-entry-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px;
}

.result-entry-label {
  font-size: 12px;
  color: var(--text-sub);
  margin-bottom: 8px;
}

.result-entry-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
}

.result-entry-row input {
  width: 44px;
  padding: 6px;
  text-align: center;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--text);
  font-size: 15px;
  font-weight: 700;
  outline: none;
}

.result-entry-row input:focus { border-color: var(--green); }

/* ── MODAL ── */
#modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.8);
  backdrop-filter: blur(4px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.25s;
  pointer-events: none;
}

#modal-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.modal {
  background: var(--bg-card);
  border: 1px solid var(--border-hi);
  border-radius: 16px;
  padding: 32px;
  max-width: 440px;
  width: 100%;
  box-shadow: var(--shadow);
  transform: translateY(20px);
  transition: transform 0.25s;
}

#modal-overlay.open .modal { transform: translateY(0); }

.modal-logo { text-align: center; margin-bottom: 24px; }
.modal-logo img { height: 32px; }
.modal-logo .modal-logo-text {
  font-size: 18px;
  font-weight: 800;
  margin-top: 8px;
  letter-spacing: -0.01em;
}
.modal-logo .modal-logo-sub {
  font-size: 13px;
  color: var(--text-sub);
  margin-top: 2px;
}

.modal h2 { font-size: 20px; font-weight: 700; margin-bottom: 6px; }
.modal p  { font-size: 13.5px; color: var(--text-sub); margin-bottom: 24px; }

.form-group { margin-bottom: 18px; }
.form-label { display: block; font-size: 12px; font-weight: 600; color: var(--text-sub); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 8px; }

.form-input {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 15px;
  outline: none;
  transition: border-color var(--transition);
}

.form-input:focus { border-color: var(--green); }

.color-picker {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.color-dot {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  cursor: pointer;
  border: 3px solid transparent;
  transition: all var(--transition);
}

.color-dot.selected { border-color: white; transform: scale(1.1); }

/* ── SSO LOGIN ── */
.sso-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 8px 0 4px;
}

.sso-desc {
  font-size: 14px;
  color: var(--text-sub);
  text-align: center;
  line-height: 1.5;
  margin: 0;
}

.google-btn-wrap {
  display: flex;
  justify-content: center;
  min-height: 44px;
}

.sso-hint {
  font-size: 12px;
  color: var(--text-dim);
  text-align: center;
  margin: 0;
}

/* ── USER MENU DROPDOWN ── */
.header-right { position: relative; }

.user-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: var(--bg-card2);
  border: 1px solid var(--border-hi);
  border-radius: var(--radius);
  box-shadow: 0 8px 32px rgba(0,0,0,0.6);
  min-width: 200px;
  z-index: 200;
  overflow: hidden;
  animation: dropIn 0.15s ease;
}

@keyframes dropIn {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.user-menu-info {
  padding: 14px 16px 12px;
  border-bottom: 1px solid var(--border);
}

.user-menu-name {
  font-weight: 600;
  font-size: 14px;
  color: var(--text);
}

.user-menu-email {
  font-size: 12px;
  color: var(--text-dim);
  margin-top: 2px;
}

.user-menu-item {
  display: block;
  width: 100%;
  padding: 11px 16px;
  background: none;
  border: none;
  color: var(--text-sub);
  font-size: 13.5px;
  text-align: left;
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
}

.user-menu-item:hover { background: var(--bg-card); color: var(--text); }
.user-menu-item.danger:hover { color: #ef4444; }

/* ── TOAST ── */
#toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.toast {
  padding: 12px 18px;
  background: var(--bg-card2);
  border: 1px solid var(--border-hi);
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  box-shadow: var(--shadow);
  animation: toastIn 0.3s ease forwards;
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 320px;
}

.toast.success { border-left: 3px solid var(--green); }
.toast.error   { border-left: 3px solid var(--red); }
.toast.info    { border-left: 3px solid var(--yellow); }

@keyframes toastIn {
  from { opacity: 0; transform: translateX(40px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* ── PROGRESS RING ── */
.progress-ring-wrap {
  text-align: center;
  padding: 8px 0;
}

.progress-mini {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-sub);
}

.progress-track {
  width: 80px;
  height: 5px;
  background: var(--border);
  border-radius: 3px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: var(--green);
  border-radius: 3px;
  transition: width 0.4s ease;
}

/* ── EMPTY STATE ── */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-sub);
}

.empty-state .emoji { font-size: 48px; margin-bottom: 16px; }
.empty-state h3 { font-size: 18px; color: var(--text); margin-bottom: 8px; }
.empty-state p  { font-size: 14px; max-width: 340px; margin: 0 auto 20px; }

/* ── ADMIN GATE ── */
.admin-gate {
  max-width: 400px;
  margin: 60px auto;
  text-align: center;
}

.admin-gate h2 { font-size: 20px; margin-bottom: 8px; }
.admin-gate p  { color: var(--text-sub); margin-bottom: 24px; }

/* ── STAT PILLS ── */
.stat-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.stat-pill {
  flex: 1;
  min-width: 130px;
  padding: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-align: center;
}

.stat-pill .val { font-size: 26px; font-weight: 800; color: var(--green); }
.stat-pill .lbl { font-size: 12px; color: var(--text-sub); margin-top: 2px; }

/* ── TROPHY ANIMATION ── */
@keyframes pulse-glow {
  0%,100% { box-shadow: 0 0 0 0 var(--green-glow); }
  50%      { box-shadow: 0 0 20px 8px var(--green-glow); }
}

.lb-row.me { animation: pulse-glow 3s ease-in-out infinite; }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  #app { padding: 16px 12px 80px; }
  #header { padding: 0 12px; }
  .header-inner { height: 52px; gap: 12px; }
  .nav-tabs { gap: 0; }
  .nav-tab { padding: 6px 10px; font-size: 12px; }
  .logo-text .event { display: none; }

  .match-row { grid-template-columns: 1fr auto 1fr; gap: 8px; }
  .team-flag { font-size: 24px; }
  .score-num { font-size: 24px; }
  .team-name { font-size: 11px; max-width: 80px; }

  .lb-bar-wrap { width: 80px; }
  .lb-row { grid-template-columns: 36px 1fr auto; }
  .lb-progress { display: none; }

  .bonus-grid { grid-template-columns: 1fr; }
  .ko-match-grid { grid-template-columns: 1fr; }
  .browse-user-grid { grid-template-columns: 1fr 1fr; }

  .modal { padding: 24px 20px; }
}

@media (max-width: 480px) {
  .browse-user-grid { grid-template-columns: 1fr; }
  .stat-row { flex-direction: column; }
}

/* ── LOADING SKELETON ── */
.skeleton {
  background: linear-gradient(90deg, var(--bg-card) 25%, var(--bg-card2) 50%, var(--bg-card) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 6px;
}

@keyframes shimmer {
  from { background-position: 200% 0; }
  to   { background-position: -200% 0; }
}

/* ── MISC ── */
.divider {
  height: 1px;
  background: var(--border);
  margin: 24px 0;
}

.text-green { color: var(--green); }
.text-sub   { color: var(--text-sub); }
.text-dim   { color: var(--text-dim); }
.bold       { font-weight: 700; }

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.gap-8  { gap: 8px; }
.gap-12 { gap: 12px; }
.mt-8   { margin-top: 8px; }
.mt-16  { margin-top: 16px; }
.mb-16  { margin-bottom: 16px; }
