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

.hidden { display: none !important; }

body {
  background: #0f0f0f;
  color: #f0f0f0;
  font-family: system-ui, sans-serif;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

main {
  text-align: center;
  padding: 2rem;
}

.banner {
  max-width: 480px;
  width: 90vw;
  margin-bottom: 2.5rem;
  filter: drop-shadow(0 0 12px #ff00ff) drop-shadow(0 0 30px #ff00ff88);
  animation: banner-flicker 6s infinite;
}

.under-construction {
  font-size: 0.85rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: #00ffff;
  margin-bottom: 3rem;
  text-shadow:
    0 0 6px #00ffff,
    0 0 20px #00ffff,
    0 0 40px #00ffff;
  animation: flicker 4s infinite;
}

.champion-label {
  font-size: 1rem;
  color: #bf00ff;
  margin-bottom: 0.5rem;
  letter-spacing: 0.08em;
  text-shadow:
    0 0 6px #bf00ff,
    0 0 20px #bf00ff;
}

.champion-name {
  font-size: 2.2rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.02em;
  text-shadow:
    0 0 8px #ff00ff,
    0 0 20px #ff00ff,
    0 0 50px #ff00ff,
    0 0 80px #ff006688;
  animation: name-pulse 3s ease-in-out infinite;
}

.merch-link {
  display: inline-block;
  margin-top: 2.5rem;
  padding: 0.6rem 1.8rem;
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  color: #00ffff;
  border: 1px solid #00ffff;
  box-shadow: 0 0 8px #00ffff, inset 0 0 8px #00ffff22;
  transition: box-shadow 0.2s, color 0.2s;
}

.merch-link:hover {
  color: #fff;
  box-shadow: 0 0 18px #00ffff, 0 0 40px #00ffff, inset 0 0 12px #00ffff44;
}

/* ── FIFA Draft ── */

.draft-main {
  max-width: 1100px;
  width: 100%;
  padding: 2rem;
  text-align: center;
}

.draft-status {
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  color: #00ffff;
  text-shadow: 0 0 8px #00ffff;
  margin-bottom: 1rem;
}

.your-turn-banner {
  background: #ff00ff18;
  border: 1px solid #ff00ff;
  color: #ff00ff;
  text-shadow: 0 0 8px #ff00ff;
  padding: 0.6rem 1.5rem;
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  margin-bottom: 1.5rem;
  animation: name-pulse 2s ease-in-out infinite;
}

.your-turn-banner.hidden { display: none; }

.draft-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 2rem;
  text-align: left;
}

@media (max-width: 700px) {
  .draft-layout { grid-template-columns: 1fr; }
}

.conf-section { margin-bottom: 1.5rem; }

.conf-label {
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #555;
  margin-bottom: 0.5rem;
}

.conf-teams {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.team-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 90px;
  padding: 0.5rem 0.3rem;
  border: 1px solid #222;
  border-radius: 4px;
  font-size: 0.7rem;
  color: #666;
  text-align: center;
  gap: 0.2rem;
}

.team-flag { font-size: 1.4rem; line-height: 1; }
.team-name { color: #aaa; line-height: 1.2; }
.team-group { font-size: 0.55rem; color: #444; letter-spacing: 0.05em; }
.team-picker { font-size: 0.6rem; color: #555; margin-top: 0.1rem; }
.pick-group { font-size: 0.6rem; color: #555; margin-left: 0.3rem; }

.team-card--pickable {
  border-color: #00ffff44;
  color: #fff;
  cursor: pointer;
  transition: all 0.15s;
}
.team-card--pickable .team-name { color: #fff; }
.team-card--pickable:hover {
  border-color: #00ffff;
  box-shadow: 0 0 10px #00ffff44;
}

.team-card--taken {
  opacity: 0.35;
}

.team-card--mine {
  border-color: #ff00ff44;
  opacity: 0.8;
}
.team-card--mine .team-name { color: #ff00ff; }

.picks-section { border-left: 1px solid #1a1a1a; padding-left: 1.5rem; }

.picks-title {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #555;
  margin-bottom: 0.75rem;
}

.pick-entry {
  display: grid;
  grid-template-columns: 24px 1fr 1fr 24px;
  gap: 0.4rem;
  align-items: center;
  padding: 0.3rem 0;
  border-bottom: 1px solid #111;
  font-size: 0.72rem;
}

.pick-num    { color: #444; }
.pick-manager { color: #aaa; }
.pick-team   { color: #fff; }
.pick-round  { color: #444; text-align: right; }

.picks-toggle { margin-bottom: 0.75rem; display: flex; gap: 0.4rem; }

.manager-picks-group {
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #111;
}

.manager-picks-name {
  font-size: 0.72rem;
  color: #00ffff;
  margin-bottom: 0.3rem;
  letter-spacing: 0.05em;
}

.manager-pick {
  font-size: 0.72rem;
  color: #ccc;
  padding: 0.15rem 0;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.manager-pick--empty { color: #333; }

.fi { font-size: 1rem; line-height: 1; }

/* ── Match Schedule ── */

.section-label {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #00ffff;
  text-shadow: 0 0 8px #00ffff;
  margin-bottom: 1.25rem;
}

.matches-section  { margin-bottom: 3rem; }
.managers-section { margin-bottom: 3rem; }

.matches-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.match-card {
  border: 1px solid #1e1e1e;
  padding: 1rem 1.25rem;
  min-width: 220px;
  max-width: 260px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  text-align: center;
}

.match-team {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
}

.match-flag  { font-size: 1.6rem; line-height: 1; }
.match-country { font-size: 0.85rem; color: #fff; font-weight: 600; }
.match-manager { font-size: 0.65rem; color: #ff00ff; text-shadow: 0 0 6px #ff00ff88; letter-spacing: 0.05em; }

.match-score {
  font-size: 1.4rem;
  font-weight: 700;
  color: #00ffff;
  text-shadow: 0 0 8px #00ffff;
  padding: 0.25rem 0;
}

.match-kickoff {
  font-size: 0.75rem;
  color: #555;
  letter-spacing: 0.1em;
  padding: 0.35rem 0;
}

.match-group {
  font-size: 0.6rem;
  color: #333;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-top: 0.25rem;
}

/* ── Manager Cards ── */

.managers-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.manager-card {
  border: 1px solid #1e1e1e;
  padding: 1rem 1.25rem;
  min-width: 180px;
  flex: 1;
  max-width: 220px;
}

.manager-card-name {
  font-size: 0.75rem;
  color: #00ffff;
  text-shadow: 0 0 6px #00ffff88;
  letter-spacing: 0.08em;
  margin-bottom: 0.65rem;
  font-weight: 600;
}

.manager-team-row {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.2rem 0;
  font-size: 0.75rem;
}

.manager-team-name  { color: #ccc; flex: 1; }
.manager-team-group { font-size: 0.6rem; color: #444; letter-spacing: 0.05em; }

/* ── Pick Confirmation Modal ── */

.pick-modal {
  position: fixed;
  inset: 0;
  background: #000000cc;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
}

.pick-modal-box {
  background: #0f0f0f;
  border: 1px solid #ff00ff;
  box-shadow: 0 0 30px #ff00ff44;
  padding: 2rem 2.5rem;
  text-align: center;
  min-width: 260px;
}

.pick-modal-label {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #888;
  margin-bottom: 1.25rem;
}

.pick-modal-team {
  font-size: 1.1rem;
  font-weight: 600;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1.75rem;
}

.pick-modal-actions { display: flex; gap: 0.75rem; justify-content: center; }

.modal-confirm-btn {
  border-color: #ff00ff !important;
  color: #ff00ff !important;
  box-shadow: 0 0 8px #ff00ff44;
}

.modal-confirm-btn:hover {
  box-shadow: 0 0 16px #ff00ff88 !important;
  color: #fff !important;
}

/* ── Hall of Fame ── */

.hof-main {
  max-width: 860px;
  width: 100%;
  padding: 2rem;
  text-align: center;
}

.back-link {
  display: inline-block;
  margin-bottom: 1.5rem;
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #888;
  text-decoration: none;
}

.back-link:hover { color: #00ffff; }

.hof-title {
  font-size: 1.6rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: #ff00ff;
  text-shadow: 0 0 8px #ff00ff, 0 0 24px #ff00ff;
  margin-bottom: 2rem;
}

.hof-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.hof-table th {
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #00ffff;
  border-bottom: 1px solid #00ffff44;
  padding: 0.6rem 0.75rem;
  text-align: left;
}

.hof-table td {
  padding: 0.65rem 0.75rem;
  border-bottom: 1px solid #ffffff0d;
  color: #ccc;
}

.hof-table tr:hover td { background: #ffffff08; }

.name-cell {
  color: #fff;
  font-weight: 600;
}

.champ-cell {
  color: #ff00ff;
  font-weight: 700;
  text-shadow: 0 0 8px #ff00ff;
}

.gutnekt-cell {
  color: #00ffff;
  font-weight: 700;
  text-shadow: 0 0 8px #00ffff;
}

.horsey-cell {
  color: #ff6600;
  font-weight: 700;
  text-shadow: 0 0 8px #ff660088;
}

.loading { color: #555; }

.filter-toggle {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.toggle-btn {
  background: none;
  border: 1px solid #444;
  color: #666;
  padding: 0.4rem 1.2rem;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.2s;
}

.toggle-btn.active {
  border-color: #00ffff;
  color: #00ffff;
  box-shadow: 0 0 8px #00ffff44;
}

.toggle-btn:hover:not(.active) {
  border-color: #888;
  color: #aaa;
}

.alumni {
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  color: #555;
  text-transform: uppercase;
  margin-left: 0.4rem;
}

@keyframes flicker {
  0%, 95%, 100% { opacity: 1; }
  96%            { opacity: 0.4; }
  97%            { opacity: 1; }
  98%            { opacity: 0.2; }
  99%            { opacity: 1; }
}

@keyframes banner-flicker {
  0%, 92%, 100% { filter: drop-shadow(0 0 12px #ff00ff) drop-shadow(0 0 30px #ff00ff88); }
  93%           { filter: drop-shadow(0 0 4px #ff00ff); }
  94%           { filter: drop-shadow(0 0 12px #ff00ff) drop-shadow(0 0 30px #ff00ff88); }
}

@keyframes name-pulse {
  0%, 100% { text-shadow: 0 0 8px #ff00ff, 0 0 20px #ff00ff, 0 0 50px #ff00ff, 0 0 80px #ff006688; }
  50%       { text-shadow: 0 0 4px #ff00ff, 0 0 10px #ff00ff, 0 0 25px #ff00ff; }
}
