/* ============================================================
   GRIM PICKS - REDESIGNED MOBILE-FIRST CSS
   Premium dark fantasy draft aesthetic with macabre undertones
   ============================================================ */

/* Base styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  /* Backgrounds - rich dark with purple-warm undertones */
  --bg-dark: #0d0d12;
  --bg-surface: #141419;
  --bg-card: #1a1a22;
  --bg-card-hover: #24242e;
  --bg-hover: #1e1e28;

  /* Text */
  --text-primary: #f0eee8;
  --text-secondary: #8a8694;
  --text-muted: #5a5666;

  /* Accents */
  --accent: #e8c547;
  --accent-dim: #a08930;
  --accent-glow: rgba(232, 197, 71, 0.15);

  /* Semantic */
  --success: #3d9e50;
  --error: #c43030;
  --blood: #8b1a1a;
  --blood-subtle: rgba(139, 26, 26, 0.15);

  /* Rankings */
  --rank-gold: #e8c547;
  --rank-silver: #b0b0b8;
  --rank-bronze: #b87333;

  /* Purple accents */
  --purple: #6c4fa0;
  --purple-dim: #4a3670;
  --purple-subtle: rgba(108, 79, 160, 0.15);

  /* Borders & Shadows */
  --border: #2a2a35;
  --border-subtle: #1f1f28;
  --card-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
  --card-shadow-hover: 0 8px 32px rgba(0, 0, 0, 0.6);
  --glow-gold: 0 0 20px rgba(232, 197, 71, 0.08);
  --glow-blood: 0 0 20px rgba(139, 26, 26, 0.12);

  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;

  /* Border radius */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 20px;
  --radius-full: 9999px;

  /* Safe area / nav */
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-top: env(safe-area-inset-top, 0px);
  --nav-height: 64px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--bg-dark);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  min-height: -webkit-fill-available;
  overscroll-behavior-y: contain;
}

/* Utility */
[x-cloak] {
  display: none !important;
}

/* ============ TYPOGRAPHY ============ */
h1,
h2 {
  font-family: "Playfair Display", Georgia, serif;
}

h1 {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

h2 {
  font-size: 1.35rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
}

h3 {
  font-size: 1.1rem;
  font-weight: 500;
}

/* ============ LAYOUT ============ */
.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 1.25rem;
  padding-bottom: calc(var(--nav-height) + var(--safe-bottom) + 1.5rem);
}

.tv-container {
  padding: 1rem;
  padding-bottom: calc(var(--nav-height) + var(--safe-bottom) + 1rem);
  min-height: 100vh;
}

/* ============ TOP NAVIGATION (Desktop) ============ */
nav:not(.mobile-nav) {
  background: rgba(20, 20, 25, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 0.75rem 1.25rem;
  display: none;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-subtle);
  position: sticky;
  top: 0;
  z-index: 100;
}

nav:not(.mobile-nav) a {
  color: var(--text-secondary);
  text-decoration: none;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-sm);
  transition: all 0.2s;
  font-size: 0.875rem;
  position: relative;
}

nav:not(.mobile-nav) a:hover {
  color: var(--text-primary);
  background: var(--bg-hover);
}

nav:not(.mobile-nav) a.active {
  color: var(--accent);
}

nav:not(.mobile-nav) a.active::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 2px;
  background: var(--accent);
  border-radius: 1px;
}

nav .nav-links {
  display: flex;
  gap: 0.25rem;
  flex-wrap: wrap;
}

.nav-title {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--accent) !important;
  letter-spacing: 0.02em;
}

/* ============ MOBILE BOTTOM NAV ============ */
.mobile-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(20, 20, 25, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-around;
  align-items: stretch;
  padding-bottom: var(--safe-bottom);
  z-index: 1000;
  height: calc(var(--nav-height) + var(--safe-bottom));
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.4);
}

.mobile-nav a {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0.4rem 0.2rem;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  gap: 0.2rem;
  transition: color 0.15s;
  -webkit-tap-highlight-color: transparent;
  min-height: var(--nav-height);
  position: relative;
}

.mobile-nav a:active,
.mobile-nav a.active {
  color: var(--accent);
}

.mobile-nav a.active::after {
  content: "";
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 4px;
  background: var(--accent);
  border-radius: 50%;
}

.mobile-nav .nav-icon {
  font-size: 1.2rem;
  line-height: 1;
}

/* ============ LEADERBOARD ============ */
.leaderboard {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.leaderboard-header {
  text-align: center;
  padding: 0.75rem 0;
}

.leaderboard-header h1 {
  font-size: 2rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.leaderboard-header .year {
  font-size: 1.1rem;
  color: var(--text-secondary);
}

.player-row {
  display: flex;
  align-items: center;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 0.875rem 1rem;
  gap: 0.75rem;
  transition: all 0.2s ease-out;
  -webkit-tap-highlight-color: transparent;
  box-shadow: var(--card-shadow);
  border: 1px solid var(--border-subtle);
}

.player-row:active {
  background: var(--bg-card-hover);
  transform: scale(0.99);
}

.player-rank {
  font-family: "JetBrains Mono", monospace;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-secondary);
  min-width: 40px;
  text-align: center;
}

.player-rank.gold {
  color: var(--rank-gold);
}
.player-rank.silver {
  color: var(--rank-silver);
}
.player-rank.bronze {
  color: var(--rank-bronze);
}

.player-info {
  flex: 1;
  min-width: 0;
}

.player-name {
  font-size: 1rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.player-stats {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.player-score {
  font-family: "JetBrains Mono", monospace;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent);
  min-width: 40px;
  text-align: right;
}

.player-recent {
  display: none;
  gap: 0.25rem;
}

.recent-prediction {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg-dark);
  overflow: hidden;
  flex-shrink: 0;
}

.recent-prediction img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

/* ============ DEATHS GRID ============ */
.deaths-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.875rem;
}

.death-card {
  display: block;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  -webkit-tap-highlight-color: transparent;
  text-decoration: none;
  color: inherit;
  transition: all 0.2s ease-out;
  box-shadow: var(--card-shadow);
  border: 1px solid var(--border-subtle);
}

.death-card:hover {
  transform: translateY(-3px) scale(1.01);
  box-shadow: var(--card-shadow-hover);
  border-color: var(--border);
}

.death-card:active {
  transform: scale(0.98);
}

.death-card-photo {
  width: 100%;
  height: 100px;
  object-fit: cover;
  object-position: top center;
  background: var(--bg-dark);
}

.death-card-photo.no-photo {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: var(--text-muted);
}

.death-card-content {
  padding: 0.625rem;
}

.death-card-name {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.15rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.death-card-profession {
  color: var(--text-secondary);
  font-size: 0.875rem;
  margin-bottom: 0.25rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.death-card-meta {
  display: flex;
  justify-content: space-between;
  color: var(--text-secondary);
  font-size: 0.875rem;
}

.death-card-predictors {
  margin-top: 0.4rem;
  padding-top: 0.4rem;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  gap: 0.2rem;
}

.predictor-tag {
  display: inline-block;
  background: var(--accent-dim);
  color: var(--bg-dark);
  padding: 0.15rem 0.3rem;
  border-radius: 3px;
  font-size: 0.875rem;
  font-weight: 600;
}

/* ============ FORMS ============ */
.form-group {
  margin-bottom: 1rem;
}

label {
  display: block;
  margin-bottom: 0.35rem;
  font-weight: 500;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

input,
select {
  width: 100%;
  padding: 0.8rem 0.875rem;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 16px;
  -webkit-appearance: none;
  appearance: none;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}

input:focus,
select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%238a8694' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.875rem center;
  padding-right: 2.25rem;
}

button {
  padding: 0.8rem 1.25rem;
  background: linear-gradient(135deg, var(--accent) 0%, #d4a832 100%);
  color: var(--bg-dark);
  border: none;
  border-radius: var(--radius-md);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease-out;
  -webkit-tap-highlight-color: transparent;
  min-height: 48px;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.15);
}

button:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(232, 197, 71, 0.25);
}

button:active {
  transform: translateY(0);
  opacity: 0.9;
}

button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

button.secondary {
  background: var(--bg-card);
  color: var(--text-primary);
  border: 1px solid var(--border);
  text-shadow: none;
}

button.secondary:hover {
  background: var(--bg-card-hover);
  border-color: var(--text-muted);
  box-shadow: none;
}

button.secondary:active {
  background: var(--bg-hover);
}

button.danger {
  background: var(--error);
  color: white;
  text-shadow: none;
}

/* ============ SEARCH RESULTS ============ */
.search-results {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  margin-top: 0.5rem;
  max-height: 300px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  box-shadow: var(--card-shadow-hover);
  border: 1px solid var(--border);
}

.search-result {
  display: flex;
  align-items: center;
  padding: 0.65rem;
  gap: 0.65rem;
  cursor: pointer;
  border-bottom: 1px solid var(--border-subtle);
  -webkit-tap-highlight-color: transparent;
  min-height: 60px;
  transition: background 0.15s;
}

.search-result:active,
.search-result:hover {
  background: var(--bg-hover);
}

.search-result:last-child {
  border-bottom: none;
}

.search-result-photo {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  object-position: top center;
  background: var(--bg-dark);
  flex-shrink: 0;
}

.search-result-info {
  flex: 1;
  min-width: 0;
}

.search-result-name {
  font-weight: 600;
  font-size: 0.9rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.search-result-desc {
  color: var(--text-secondary);
  font-size: 0.9rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ============ PREDICTIONS LIST ============ */
.predictions-list {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.prediction-item {
  display: flex;
  align-items: center;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 0.75rem;
  gap: 0.75rem;
  min-height: 56px;
  box-shadow: var(--card-shadow);
  transition: all 0.2s ease-out;
  border: 1px solid var(--border-subtle);
}

.prediction-item:hover {
  box-shadow: var(--card-shadow-hover);
  border-color: var(--border);
}

.prediction-item.hit {
  border-left: 4px solid var(--success);
  box-shadow:
    var(--card-shadow),
    inset 0 0 20px rgba(61, 158, 80, 0.05);
}

.prediction-photo {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  object-position: top center;
  background: var(--bg-dark);
  flex-shrink: 0;
}

.prediction-photo.no-photo {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--text-muted);
}

.prediction-info {
  flex: 1;
  min-width: 0;
}

.prediction-name {
  font-weight: 600;
  font-size: 0.875rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.prediction-quarter {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.prediction-points {
  font-family: "JetBrains Mono", monospace;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--accent);
}

/* ============ DRAFT PAGE ============ */
.draft-grid {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.player-column {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 0.875rem;
  box-shadow: var(--card-shadow);
  border: 1px solid var(--border-subtle);
  border-top: 3px solid var(--border);
}

.player-column:nth-child(6n + 1) {
  border-top-color: var(--accent);
}
.player-column:nth-child(6n + 2) {
  border-top-color: var(--purple);
}
.player-column:nth-child(6n + 3) {
  border-top-color: var(--success);
}
.player-column:nth-child(6n + 4) {
  border-top-color: var(--rank-bronze);
}
.player-column:nth-child(6n + 5) {
  border-top-color: #3498db;
}
.player-column:nth-child(6n + 6) {
  border-top-color: var(--error);
}

.player-column-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 0.6rem;
}

.player-column-name {
  font-weight: 600;
  font-size: 0.95rem;
}

.player-column-count {
  background: var(--bg-hover);
  padding: 0.15rem 0.4rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.draft-prediction {
  padding: 0.5rem;
  border-radius: var(--radius-sm);
  margin-bottom: 0.35rem;
  background: var(--bg-hover);
  transition: background 0.15s;
}

.draft-prediction:hover {
  background: var(--bg-card-hover);
}

.draft-prediction.unique {
  border-left: 3px solid var(--purple);
}

.draft-prediction.shared {
  border-left: 3px solid var(--text-muted);
}

.draft-prediction-name {
  font-weight: 500;
  font-size: 0.95rem;
}

.draft-prediction-meta {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-top: 0.1rem;
}

.shared-badge,
.unique-badge {
  display: inline-block;
  padding: 0.08rem 0.25rem;
  border-radius: 3px;
  font-size: 0.875rem;
  margin-left: 0.35rem;
  vertical-align: middle;
}

.shared-badge {
  background: rgba(90, 86, 102, 0.3);
  color: var(--text-secondary);
}

.unique-badge {
  background: var(--purple);
  color: #fff;
}

/* ============ OVERVIEW PAGE ============ */
.overview-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.6rem;
}

.celebrity-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
}

.celebrity-card.is-dead {
  border: 2px solid var(--success);
}

.celebrity-photo {
  width: 100%;
  height: 90px;
  object-fit: cover;
  object-position: top center;
  background: var(--bg-dark);
}

.celebrity-photo.no-photo {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: var(--text-muted);
}

.celebrity-content {
  padding: 0.5rem;
}

.celebrity-name {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.2rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.celebrity-count {
  display: inline-block;
  background: var(--accent);
  color: var(--bg-dark);
  padding: 0.1rem 0.35rem;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.875rem;
}

.celebrity-count.unique {
  background: var(--success);
  color: white;
}

.celebrity-players {
  display: flex;
  flex-wrap: wrap;
  gap: 0.2rem;
  margin-top: 0.3rem;
}

.player-chip {
  background: var(--bg-dark);
  padding: 0.1rem 0.25rem;
  border-radius: 3px;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.player-chip .quarter {
  color: var(--accent);
  margin-left: 0.15rem;
}

/* ============ STATS BAR ============ */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.stat-item {
  background: var(--bg-card);
  padding: 0.875rem;
  border-radius: var(--radius-lg);
  text-align: center;
  box-shadow: var(--card-shadow);
  border: 1px solid var(--border-subtle);
}

.stat-value {
  font-family: "JetBrains Mono", monospace;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--accent);
}

.stat-label {
  color: var(--text-secondary);
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ============ FILTER BAR ============ */
.filter-bar {
  display: flex;
  gap: 0.65rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
  align-items: center;
}

.filter-bar select {
  flex: 1;
  min-width: 140px;
}

.filter-bar label {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 0;
  white-space: nowrap;
}

.filter-bar input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
}

/* ============ COUNTDOWN ============ */
.countdown-banner {
  text-align: center;
  padding: 0.875rem;
  background: linear-gradient(135deg, var(--blood) 0%, #1a0a0a 100%);
  border-radius: var(--radius-lg);
  margin-bottom: 1.25rem;
  color: var(--text-primary);
  box-shadow: var(--glow-blood);
  border: 1px solid rgba(139, 26, 26, 0.3);
}

.countdown-time {
  font-family: "JetBrains Mono", monospace;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}

.countdown-label {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

/* ============ MESSAGES ============ */
.message {
  padding: 0.875rem;
  border-radius: var(--radius-lg);
  margin-bottom: 1rem;
  font-size: 0.875rem;
}

.message.success {
  background: rgba(61, 158, 80, 0.15);
  border: 1px solid var(--success);
  color: #6fd585;
}

.message.error {
  background: rgba(196, 48, 48, 0.15);
  border: 1px solid var(--error);
  color: #e87070;
}

/* ============ LOADING ============ */
.loading {
  text-align: center;
  padding: 1.5rem;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.scroll-sentinel {
  padding: 1rem;
  text-align: center;
}

.loading-more {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.all-loaded {
  text-align: center;
  padding: 1rem;
  color: var(--text-secondary);
  font-size: 0.95rem;
  opacity: 0.7;
}

.loading::after {
  content: "";
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid var(--accent);
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin-left: 0.5rem;
  vertical-align: middle;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ============ ADMIN ============ */
.admin-section {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 1rem;
  margin-bottom: 1.25rem;
  box-shadow: var(--card-shadow);
  border: 1px solid var(--border-subtle);
}

.admin-section h3 {
  margin-bottom: 0.65rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 1rem;
}

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

.admin-table th,
.admin-table td {
  padding: 0.4rem 0.25rem;
  text-align: left;
  border-bottom: 1px solid var(--border-subtle);
}

.admin-table th {
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.toggle-btn {
  padding: 0.25rem 0.4rem;
  font-size: 0.9rem;
  min-height: auto;
}

/* ============ MANAGE DEATHS ADMIN TABLE ============ */
/* Toolbar above the table holding search, year filter, visibility filter,
   and the bulk-purge button. Wraps on narrow screens since on mobile we'd
   otherwise get a horizontal scrollbar just for the controls. */
.manage-deaths-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  margin-bottom: 1rem;
}

/* Pull margin off the form-controls inside the toolbar - they're styled
   globally for use in .form-group contexts which have spacing, but here
   they sit inline and shouldn't carry that. Also override the global
   `width: 100%` on inputs/selects, since otherwise each control would
   stretch to fill the flex line and wrap onto its own row. */
.manage-deaths-toolbar input[type="text"],
.manage-deaths-toolbar select {
  margin: 0;
  width: auto;
}

/* Specific widths for each control so they sit side-by-side on one
   row at typical viewport widths. flex-wrap still kicks in on narrow
   screens, so this won't break mobile - they'll just stack as needed. */
.manage-deaths-toolbar input[type="text"] {
  width: 280px;
  max-width: 100%; /* don't overflow the container on very narrow viewports */
}

.manage-deaths-toolbar select {
  width: 180px;
}

/* Sortable column headers: clickable, with hover affordance and an
   "active sort" color tint when the column is the current sort field. */
.admin-table th.sortable {
  cursor: pointer;
  user-select: none;
  transition: color 0.15s;
}

.admin-table th.sortable:hover {
  color: var(--text-primary, #fff);
}

.admin-table th.sort-active {
  color: var(--accent);
}

/* Sort direction icon: small caret rendered inline with the header text. */
.admin-table th.sortable i {
  margin-left: 0.25rem;
  font-size: 0.85em;
}

/* Checkbox cells (bulk-select column): narrow, less padding. */
.admin-table th.checkbox-cell,
.admin-table td.checkbox-cell {
  width: 30px;
  padding-right: 0;
}

/* Profession column: constrain width so long descriptions wrap to a
   couple of lines instead of stretching the column and squishing
   everything else in the table. The data values here are the longest
   in the row so they were dominating the auto-layout. */
.admin-table th.col-profession,
.admin-table td.col-profession {
  max-width: 280px;
  white-space: normal;
  overflow-wrap: break-word;
}

/* Date column: keep it on one line so "May 11, 26" doesn't fragment
   into two stacked rows when the column is narrow. Numeric/short-string
   columns generally want nowrap; wrapping there is ALWAYS ugly. */
.admin-table th.col-date,
.admin-table td.col-date {
  white-space: nowrap;
}

/* Numeric columns: right-aligned so commas and digit counts line up
   vertically. This is the standard convention for tabular numeric data
   and makes magnitude comparisons across rows much faster ("is this row
   bigger than the one above?" becomes a one-glance read). */
.admin-table th.col-numeric,
.admin-table td.col-numeric {
  text-align: right;
  white-space: nowrap;
}

/* Subtle highlight on bulk-selected rows so you can scan the page and
   see at a glance what's queued for the bulk action. */
.admin-table tr.selected {
  background: rgba(255, 255, 255, 0.03);
}

/* ============ FOOTER ============ */
.footer {
  text-align: center;
  padding: 1.5rem;
  color: var(--text-muted);
  font-size: 0.95rem;
  border-top: 1px solid var(--border-subtle);
  margin-top: 2.5rem;
}

.footer a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.15s;
}

.footer a:hover {
  color: var(--accent);
}

/* ============ MODAL ============ */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  z-index: 1001;
  padding: 0;
}

.modal {
  background: var(--bg-card);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  padding: 1.5rem;
  padding-bottom: calc(1.5rem + var(--safe-bottom));
  width: 100%;
  max-width: 500px;
  max-height: 80vh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  box-shadow: 0 -4px 32px rgba(0, 0, 0, 0.5);
  border: 1px solid var(--border-subtle);
  border-bottom: none;
}

.modal h2 {
  margin-bottom: 0.65rem;
  font-size: 1.15rem;
}

.modal .form-group {
  margin-bottom: 0.75rem;
}

.modal textarea {
  width: 100%;
  min-height: 100px;
  padding: 0.75rem;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 16px;
  font-family: inherit;
  resize: vertical;
  -webkit-appearance: none;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}

.modal textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.modal-actions {
  display: flex;
  gap: 0.65rem;
  margin-top: 1rem;
}

.modal-actions button {
  flex: 1;
}

/* ============================================================
   TABLET / DESKTOP STYLES (768px+)
   ============================================================ */
@media (min-width: 768px) {
  :root {
    --nav-height: 0px;
  }

  h1 {
    font-size: 2.25rem;
    margin-bottom: 0.75rem;
  }

  h2 {
    font-size: 1.75rem;
  }

  .container,
  .tv-container {
    padding: 2rem;
    padding-bottom: 2rem;
  }

  /* Show top nav, hide bottom nav */
  nav:not(.mobile-nav) {
    display: flex;
  }

  .mobile-nav {
    display: none !important;
  }

  /* Leaderboard */
  .leaderboard {
    gap: 1rem;
  }
  .leaderboard-header {
    padding: 1.5rem 0;
  }
  .leaderboard-header h1 {
    font-size: 3rem;
  }
  .leaderboard-header .year {
    font-size: 1.5rem;
  }

  .player-row {
    padding: 1rem 1.5rem;
    gap: 1.25rem;
  }

  .player-row:hover {
    background: var(--bg-card-hover);
    transform: translateY(-2px);
    box-shadow: var(--card-shadow-hover);
  }

  .player-rank {
    font-size: 2rem;
    min-width: 60px;
  }
  .player-name {
    font-size: 1.5rem;
  }
  .player-stats {
    font-size: 0.95rem;
  }
  .player-score {
    font-size: 2.5rem;
  }
  .player-recent {
    display: flex;
  }
  .recent-prediction {
    width: 40px;
    height: 40px;
  }

  /* Deaths grid */
  .deaths-grid {
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.25rem;
  }

  .death-card-photo {
    height: 160px;
  }
  .death-card-content {
    padding: 0.875rem;
  }
  .death-card-name {
    font-size: 1.1rem;
  }
  .death-card-profession {
    font-size: 0.95rem;
  }
  .death-card-meta {
    font-size: 0.9rem;
  }
  .predictor-tag {
    font-size: 0.9rem;
    padding: 0.2rem 0.4rem;
  }

  /* Overview */
  .overview-grid {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.25rem;
  }
  .celebrity-photo {
    height: 140px;
  }
  .celebrity-content {
    padding: 0.75rem;
  }
  .celebrity-name {
    font-size: 1rem;
  }
  .celebrity-count {
    font-size: 0.9rem;
    padding: 0.15rem 0.5rem;
  }
  .player-chip {
    font-size: 0.9rem;
    padding: 0.15rem 0.35rem;
  }

  /* Draft */
  .draft-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
  }
  .player-column {
    padding: 1rem;
  }
  .player-column-name {
    font-size: 1.1rem;
  }
  .draft-prediction {
    padding: 0.65rem;
  }
  .draft-prediction-name {
    font-size: 0.9rem;
  }

  /* Stats bar */
  .stats-bar {
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
  }
  .stat-item {
    padding: 1rem;
  }
  .stat-value {
    font-size: 1.75rem;
  }
  .stat-label {
    font-size: 0.9rem;
  }

  /* Forms */
  .form-group {
    margin-bottom: 1.25rem;
  }
  input,
  select {
    padding: 0.875rem 1rem;
  }

  /* Search results */
  .search-results {
    max-height: 400px;
  }
  .search-result {
    padding: 0.875rem;
  }
  .search-result-photo {
    width: 56px;
    height: 56px;
  }
  .search-result-name {
    font-size: 1rem;
  }
  .search-result-desc {
    font-size: 0.95rem;
  }

  /* Predictions */
  .prediction-item {
    padding: 0.875rem;
  }
  .prediction-photo {
    width: 48px;
    height: 48px;
  }
  .prediction-name {
    font-size: 1rem;
  }
  .prediction-points {
    font-size: 1.35rem;
  }

  /* Modal */
  .modal-backdrop {
    align-items: center;
    padding: 1rem;
  }
  .modal {
    border-radius: var(--radius-xl);
    padding: 1.5rem;
    max-height: 90vh;
    border: 1px solid var(--border-subtle);
  }
  .modal h2 {
    font-size: 1.35rem;
  }

  /* Footer */
  .footer {
    padding: 2rem;
    font-size: 0.95rem;
  }
}

/* ============================================================
   LARGE DESKTOP (1200px+)
   ============================================================ */
@media (min-width: 1200px) {
  .leaderboard-header h1 {
    font-size: 4rem;
  }

  .player-row {
    padding: 1.25rem 2rem;
    gap: 2rem;
  }
  .player-rank {
    font-size: 2.5rem;
    min-width: 80px;
  }
  .player-name {
    font-size: 2rem;
  }
  .player-stats {
    font-size: 1.1rem;
  }
  .player-score {
    font-size: 3.5rem;
  }
  .recent-prediction {
    width: 50px;
    height: 50px;
  }
}

/* ============ NOTABLE DEATHS 2025 SECTION ============ */
.notable-deaths-marquee {
  overflow: hidden;
  position: relative;
}

/* Fade masks on edges */
.notable-deaths-marquee::before,
.notable-deaths-marquee::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 40px;
  z-index: 2;
  pointer-events: none;
}
.notable-deaths-marquee::before {
  left: 0;
  background: linear-gradient(to right, var(--bg-dark), transparent);
}
.notable-deaths-marquee::after {
  right: 0;
  background: linear-gradient(to left, var(--bg-dark), transparent);
}

.notable-deaths-track {
  display: flex;
  gap: 0.75rem;
  animation: marquee-scroll 30s linear infinite;
  width: max-content;
}

.notable-deaths-marquee:hover .notable-deaths-track {
  animation-play-state: paused;
}

@keyframes marquee-scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.notable-death-card {
  flex: 0 0 140px;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: all 0.2s ease-out;
  box-shadow: var(--card-shadow);
  border: 1px solid var(--border-subtle);
}

.notable-death-card:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: var(--card-shadow-hover);
}

.notable-death-photo {
  width: 100%;
  height: 90px;
  background: var(--bg-dark);
  overflow: hidden;
}

.notable-death-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  filter: grayscale(30%) brightness(0.85);
  transition: filter 0.3s;
}

.notable-death-card:hover .notable-death-photo img {
  filter: grayscale(0%) brightness(1);
}

.notable-death-photo .photo-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  font-size: 2rem;
  color: var(--text-muted);
}

.notable-death-info {
  padding: 0.5rem;
}

.notable-death-name {
  font-size: 0.9rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 0.15rem;
}

.notable-death-age {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-bottom: 0.35rem;
}

.notable-death-date {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.notable-death-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
}

/* Category badges with color coding */
.category-badge {
  display: inline-block;
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.category-film {
  background: #e74c3c;
  color: white;
}
.category-music {
  background: #9b59b6;
  color: white;
}
.category-television {
  background: #3498db;
  color: white;
}
.category-politics {
  background: #27ae60;
  color: white;
}
.category-sports {
  background: #f39c12;
  color: #000;
}
.category-other {
  background: #7f8c8d;
  color: white;
}

/* Cause of death badge */
.cod-badge {
  display: inline-block;
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
  font-size: 0.875rem;
  background: var(--bg-hover);
  color: var(--text-secondary);
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Desktop adjustments */
@media (min-width: 768px) {
  .notable-death-card {
    flex: 0 0 180px;
  }
  .notable-death-photo {
    height: 120px;
  }
  .notable-death-info {
    padding: 0.75rem;
  }
  .notable-death-name {
    font-size: 0.9rem;
  }
  .notable-death-age {
    font-size: 0.9rem;
  }
  .notable-death-date {
    font-size: 0.9rem;
  }
  .category-badge {
    font-size: 0.875rem;
    padding: 0.15rem 0.4rem;
  }
  .cod-badge {
    font-size: 0.875rem;
    padding: 0.15rem 0.4rem;
  }
}

/* ============ NOTABLE DEATHS VERTICAL SCROLL ============ */
.notable-deaths-scroll {
  height: 320px;
  overflow: hidden;
  position: relative;
  border-radius: var(--radius-sm);
}

/* Fade masks top/bottom */
.notable-deaths-scroll::before,
.notable-deaths-scroll::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 30px;
  z-index: 2;
  pointer-events: none;
}
.notable-deaths-scroll::before {
  top: 0;
  background: linear-gradient(to bottom, var(--bg-card), transparent);
}
.notable-deaths-scroll::after {
  bottom: 0;
  background: linear-gradient(to top, var(--bg-card), transparent);
}

.notable-deaths-scroll-track {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  animation: scrollVertical 60s linear infinite;
}

.notable-deaths-scroll:hover .notable-deaths-scroll-track {
  animation-play-state: paused;
}

@keyframes scrollVertical {
  0% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(-50%);
  }
}

.notable-scroll-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem;
  border-radius: var(--radius-sm);
  background: var(--bg-hover);
  text-decoration: none;
  color: inherit;
  transition: background 0.15s;
  flex-shrink: 0;
}

.notable-scroll-item:hover {
  background: var(--bg-card-hover);
}

.notable-scroll-photo {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  object-position: top center;
  background: var(--bg-dark);
  flex-shrink: 0;
}

.notable-scroll-info {
  flex: 1;
  min-width: 0;
}

.notable-scroll-name {
  font-weight: 500;
  font-size: 0.9rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.notable-scroll-meta {
  font-size: 0.9rem;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ============ DEATHS PAGE ============ */
.month-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.month-btn {
  padding: 0.5rem 0.875rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
  min-height: auto;
}

.month-btn:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
  transform: none;
  box-shadow: none;
}

.month-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--bg-dark);
  font-weight: 600;
}

.deaths-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 1rem;
}

.death-grid-card {
  position: relative;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: all 0.2s ease-out;
  box-shadow: var(--card-shadow);
  border: 1px solid var(--border-subtle);
}

.death-grid-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--card-shadow-hover);
  border-color: var(--border);
}

.death-grid-views {
  background-color: var(--purple);
  padding: 0 0.2rem;
  border-radius: 0.2rem;
}

.death-grid-photo {
  width: 100%;
  height: 120px;
  object-fit: cover;
  object-position: top center;
  background: var(--bg-dark);
  filter: grayscale(20%);
  transition: filter 0.3s;
}

.death-grid-card:hover .death-grid-photo {
  filter: grayscale(0%);
}

.death-grid-photo-placeholder {
  width: 100%;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: var(--text-muted);
  background: var(--bg-dark);
}

.death-grid-info {
  padding: 0.75rem;
}

.death-grid-name {
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.25rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.death-grid-meta {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.death-grid-badge {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  padding: 0.2rem 0.5rem;
  background: var(--success);
  color: white;
  border-radius: 4px;
  font-size: 0.9rem;
  font-weight: 500;
  z-index: 1;
}

.deceased-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  background: var(--blood);
  color: #ffcccc;
  padding: 0.1rem 0.35rem;
  border-radius: 3px;
  font-size: 0.875rem;
  font-weight: 500;
  margin-left: 0.35rem;
  vertical-align: middle;
}

.draft-prediction.deceased {
  background: var(--blood-subtle);
}

.load-more-trigger {
  margin: 20px 0;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* ============================================================
   PHASE 2: LAYOUT REDESIGN COMPONENTS
   ============================================================ */

/* ============ LEADERBOARD: SEASON SUMMARY ============ */
.season-summary {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.season-stat {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 0.875rem;
  text-align: center;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--card-shadow);
}

.season-stat-value {
  font-family: "JetBrains Mono", monospace;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent);
}

.season-stat-label {
  font-size: 0.875rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ============ LEADERBOARD: PODIUM ============ */
.podium {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.podium-block {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--card-shadow);
  position: relative;
  overflow: hidden;
}

.podium-block::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
}

.podium-1 {
  background: linear-gradient(
    135deg,
    rgba(232, 197, 71, 0.12) 0%,
    var(--bg-card) 100%
  );
}
.podium-1::before {
  background: var(--rank-gold);
}

.podium-2 {
  background: linear-gradient(
    135deg,
    rgba(176, 176, 184, 0.08) 0%,
    var(--bg-card) 100%
  );
}
.podium-2::before {
  background: var(--rank-silver);
}

.podium-3 {
  background: linear-gradient(
    135deg,
    rgba(184, 115, 51, 0.08) 0%,
    var(--bg-card) 100%
  );
}
.podium-3::before {
  background: var(--rank-bronze);
}

.podium-rank {
  font-family: "JetBrains Mono", monospace;
  font-size: 1.75rem;
  font-weight: 700;
  min-width: 48px;
  text-align: center;
}

.podium-1 .podium-rank {
  color: var(--rank-gold);
}
.podium-2 .podium-rank {
  color: var(--rank-silver);
}
.podium-3 .podium-rank {
  color: var(--rank-bronze);
}

.podium-info {
  flex: 1;
  min-width: 0;
}

.podium-name {
  font-size: 1.1rem;
  font-weight: 600;
}

.podium-meta {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.podium-hits {
  display: flex;
  gap: 0.35rem;
  flex-wrap: wrap;
  margin-top: 0.4rem;
}

.podium-hit-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  background: var(--success);
  color: white;
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  font-size: 0.875rem;
  font-weight: 500;
}

.podium-hit-badge.dark-horse {
  background: var(--purple);
}

.podium-hit-badge img {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  object-fit: cover;
}

.podium-score {
  font-family: "JetBrains Mono", monospace;
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent);
  text-align: right;
}

.podium-score-label {
  font-size: 0.875rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  text-align: right;
}

/* ============ LEADERBOARD: EXPANDABLE CARDS ============ */
.lb-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--card-shadow);
  overflow: hidden;
  transition: all 0.2s;
}

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

.lb-card-main {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.875rem 1rem;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.lb-rank {
  font-family: "JetBrains Mono", monospace;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-secondary);
  min-width: 36px;
  text-align: center;
}

.lb-player-info {
  flex: 1;
  min-width: 0;
}

.lb-player-name {
  font-weight: 600;
  font-size: 0.95rem;
}

.lb-player-meta {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.lb-score-area {
  text-align: right;
}

.lb-score {
  font-family: "JetBrains Mono", monospace;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
}

.lb-score-label {
  font-size: 0.875rem;
  color: var(--text-secondary);
  text-transform: uppercase;
}

.lb-expand-icon {
  color: var(--text-muted);
  transition: transform 0.2s;
  font-size: 0.9rem;
}

.lb-expand-icon.rotated {
  transform: rotate(180deg);
}

.lb-card-detail {
  padding: 0 1rem 1rem;
  border-top: 1px solid var(--border-subtle);
}

.lb-hit-grid {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin: 0.75rem 0;
}

.lb-hit-card {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.5rem;
  background: var(--bg-hover);
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--success);
}

.lb-hit-card.dark-horse {
  border-left-color: var(--purple);
}

.lb-hit-photo {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.lb-hit-info {
  flex: 1;
  min-width: 0;
}

.lb-hit-name {
  font-weight: 500;
  font-size: 0.95rem;
}

.lb-hit-breakdown {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.lb-hit-points {
  font-family: "JetBrains Mono", monospace;
  font-weight: 700;
  color: var(--success);
  font-size: 0.9rem;
}

.lb-progress-bar {
  height: 4px;
  background: var(--bg-hover);
  border-radius: 2px;
  overflow: hidden;
  margin-top: 0.5rem;
}

.lb-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent-dim));
  border-radius: 2px;
  transition: width 0.5s ease-out;
}

.lb-no-hits {
  color: var(--text-secondary);
  font-size: 0.95rem;
  font-style: italic;
  padding: 0.5rem 0;
}

/* ============ DEATHS: DEATH TOLL BANNER ============ */
.death-toll-banner {
  text-align: center;
  padding: 1.25rem;
  background: linear-gradient(135deg, var(--blood) 0%, #1a0a0a 100%);
  border-radius: var(--radius-lg);
  margin-bottom: 1.5rem;
  border: 1px solid rgba(139, 26, 26, 0.3);
  box-shadow: var(--glow-blood);
}

.death-toll-title {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.death-toll-title i {
  color: var(--accent);
  margin-right: 0.35rem;
}

.death-toll-stats {
  display: flex;
  justify-content: center;
  gap: 2rem;
}

.dt-stat-value {
  font-family: "JetBrains Mono", monospace;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--accent);
  display: block;
}

.dt-stat-label {
  font-size: 0.875rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

/* ============ DEATHS: SCROLLING MONTH BAR ============ */
.month-scroll-bar {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 0.5rem;
  margin-bottom: 1rem;
  scrollbar-width: none;
}

.month-scroll-bar::-webkit-scrollbar {
  display: none;
}

.month-pill {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
  padding: 0.5rem 0.875rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  color: var(--text-secondary);
  cursor: pointer;
  scroll-snap-align: center;
  transition: all 0.15s;
  min-height: auto;
  font-size: 0.95rem;
  font-weight: 500;
}

.month-pill:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
  transform: none;
  box-shadow: none;
}

.month-pill.active {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--bg-dark);
  font-weight: 600;
}

.month-pill-count {
  font-size: 0.875rem;
  font-family: "JetBrains Mono", monospace;
  opacity: 0.7;
}

.month-pill.active .month-pill-count {
  opacity: 1;
}

/* ============ DEATHS: VIEW TOGGLE ============ */
.view-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.view-toggle {
  display: inline-flex;
  background: var(--bg-card);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  overflow: hidden;
}

.view-toggle-btn {
  padding: 0.4rem 0.75rem;
  background: transparent;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 0.95rem;
  min-height: auto;
  border-radius: 0;
  transition: all 0.15s;
}

.view-toggle-btn:hover {
  color: var(--text-primary);
  transform: none;
  box-shadow: none;
}

.view-toggle-btn.active {
  background: var(--accent);
  color: var(--bg-dark);
}

.sort-toggle {
  display: inline-flex;
  background: var(--bg-card);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  overflow: hidden;
}

/* ============ DEATHS: FEATURED HERO CARD ============ */
.featured-death {
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 1.5rem;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--card-shadow-hover);
  text-decoration: none;
  color: inherit;
  transition: all 0.2s;
}

.featured-death:hover {
  border-color: var(--border);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.7);
}

.featured-death-photo-wrap {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.featured-death-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.featured-death-gradient {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60%;
  background: linear-gradient(to top, var(--bg-card), transparent);
}

.featured-death-label {
  display: inline-block;
  background: var(--blood);
  color: #ffcccc;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.5rem;
}

.featured-death-content {
  padding: 1rem 1.25rem 1.25rem;
}

.featured-death-name {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.featured-death-meta {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
}

.featured-death-views {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.95rem;
  color: var(--accent);
  margin-bottom: 0.25rem;
}

.featured-death-predictors {
  font-size: 0.95rem;
  color: var(--success);
}

/* ============ DEATHS: LIST VIEW ============ */
.deaths-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.death-list-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem;
  background: var(--bg-card);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  text-decoration: none;
  color: inherit;
  transition: all 0.15s;
}

.death-list-row:hover {
  background: var(--bg-card-hover);
  border-color: var(--border);
}

.death-list-photo {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  object-position: top center;
  flex-shrink: 0;
}

.death-list-info {
  flex: 1;
  min-width: 0;
}

.death-list-name {
  font-weight: 600;
  font-size: 0.875rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.death-list-meta {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.death-list-badge {
  font-size: 0.875rem;
  color: var(--success);
  white-space: nowrap;
}

/* ============ DRAFT: WAR ROOM ============ */
.war-room-header {
  text-align: center;
  margin-bottom: 1.5rem;
}

.war-room-title {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.75rem;
  font-weight: 700;
}

.war-room-title i {
  color: var(--accent);
  margin-right: 0.35rem;
}

.war-room-countdown {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.95rem;
  color: var(--accent);
  background: var(--bg-card);
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--border);
}

.war-room-locked {
  font-size: 0.95rem;
  color: var(--text-secondary);
  background: var(--bg-card);
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--border);
}

/* ============ DRAFT: INTEL STRIP ============ */
.intel-strip {
  display: flex;
  gap: 0.625rem;
  overflow-x: auto;
  scrollbar-width: none;
  margin-bottom: 1.25rem;
  padding-bottom: 0.25rem;
}

.intel-strip::-webkit-scrollbar {
  display: none;
}

.intel-card {
  flex: 1;
  min-width: 100px;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 0.75rem;
  text-align: center;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--card-shadow);
  flex-shrink: 0;
}

.intel-icon {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
  display: block;
}

.intel-card.unique .intel-icon {
  color: var(--purple);
}
.intel-card.deceased .intel-icon {
  color: var(--blood);
}

.intel-value {
  font-family: "JetBrains Mono", monospace;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--accent);
}

.intel-card.deceased .intel-value {
  color: var(--error);
}

.intel-label {
  font-size: 0.875rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

/* ============ DRAFT: TABS ============ */
.draft-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 1.25rem;
  background: var(--bg-card);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  overflow: hidden;
}

.draft-tab {
  flex: 1;
  padding: 0.6rem 1rem;
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  min-height: auto;
  border-radius: 0;
  transition: all 0.15s;
}

.draft-tab:hover {
  color: var(--text-primary);
  background: var(--bg-hover);
  transform: none;
  box-shadow: none;
}

.draft-tab.active {
  background: var(--accent);
  color: var(--bg-dark);
  font-weight: 600;
}

/* ============ DRAFT: ENHANCED PICKS ============ */
.draft-pick {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem;
  border-radius: var(--radius-sm);
  margin-bottom: 0.35rem;
  background: var(--bg-hover);
  transition: background 0.15s;
}

.draft-pick:hover {
  background: var(--bg-card-hover);
}

.draft-pick.dead {
  background: var(--blood-subtle);
}

.draft-pick-photo {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.draft-pick-info {
  flex: 1;
  min-width: 0;
}

.draft-pick-name {
  font-weight: 500;
  font-size: 0.95rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.draft-pick.dead .draft-pick-name {
  text-decoration: line-through;
  opacity: 0.7;
}

.draft-pick-quarter {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.draft-pick-status {
  flex-shrink: 0;
  font-size: 0.9rem;
}

.draft-status-dead {
  color: var(--blood);
}

.draft-status-unique {
  color: var(--purple);
}

.draft-status-shared {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.875rem;
  color: var(--text-muted);
  background: var(--bg-dark);
  padding: 0.1rem 0.3rem;
  border-radius: 3px;
}

/* ============ DRAFT: BOARD GRID ============ */
.draft-board-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
}

.draft-player-col {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--card-shadow);
  overflow: hidden;
}

.draft-player-col:nth-child(6n + 1) {
  border-top: 3px solid var(--accent);
}
.draft-player-col:nth-child(6n + 2) {
  border-top: 3px solid var(--purple);
}
.draft-player-col:nth-child(6n + 3) {
  border-top: 3px solid var(--success);
}
.draft-player-col:nth-child(6n + 4) {
  border-top: 3px solid var(--rank-bronze);
}
.draft-player-col:nth-child(6n + 5) {
  border-top: 3px solid #3498db;
}
.draft-player-col:nth-child(6n + 6) {
  border-top: 3px solid var(--error);
}

.draft-player-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border);
}

.draft-player-name {
  font-weight: 600;
  font-size: 1rem;
}

.draft-player-count {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.9rem;
  color: var(--text-secondary);
  background: var(--bg-hover);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
}

.draft-mobile-chevron {
  display: none !important;
  color: var(--text-muted);
  font-size: 0.9rem;
  transition: transform 0.2s;
}

.draft-mobile-chevron.rotated {
  transform: rotate(180deg);
}

.draft-player-picks {
  padding: 0.5rem;
}

.draft-pick-main {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex: 1;
  min-width: 0;
}

.draft-pick-meta {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.draft-pick-no-photo {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-dark);
  color: var(--text-muted);
  font-size: 0.875rem;
}

.draft-pick-dead {
  background: var(--blood-subtle);
}

.draft-pick-unique {
  border-left: 3px solid var(--purple);
}

.dead-name {
  text-decoration: line-through;
  opacity: 0.7;
}

.draft-pick-badges {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  flex-shrink: 0;
}

.draft-badge-dead {
  color: var(--blood);
  font-size: 0.9rem;
}

.draft-badge-unique {
  color: var(--purple);
  font-size: 0.9rem;
}

.draft-badge-shared {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.875rem;
  color: var(--text-muted);
  background: var(--bg-dark);
  padding: 0.1rem 0.35rem;
  border-radius: 3px;
}

@media (max-width: 767px) {
  .draft-mobile-chevron {
    display: inline-block !important;
  }
  .draft-player-header {
    cursor: pointer;
  }
  .draft-player-picks.mobile-collapsed {
    display: none;
  }
  .draft-board-grid {
    grid-template-columns: 1fr;
  }
}

/* ============ DRAFT: OVERLAP MATRIX ============ */
.overlap-table {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.overlap-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0.75rem;
  background: var(--bg-card);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  flex-wrap: wrap;
}

.overlap-row.overlap-dead {
  border-left: 3px solid var(--blood);
  background: var(--blood-subtle);
}

.overlap-row.overlap-unique {
  border-left: 3px solid var(--purple);
}

.overlap-photo {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.overlap-celeb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
  flex: 1;
}

.overlap-celeb-photo {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.overlap-no-photo {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-dark);
  color: var(--text-muted);
  font-size: 0.9rem;
}

.overlap-celeb-info {
  min-width: 0;
}

.overlap-celeb-name {
  font-weight: 600;
  font-size: 0.875rem;
}

.overlap-celeb-meta {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.overlap-pickers {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  flex: 1;
}

.overlap-picker-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  background: var(--bg-hover);
  color: var(--text-secondary);
  padding: 0.15rem 0.45rem;
  border-radius: var(--radius-full);
  font-size: 0.9rem;
}

.overlap-picker-quarter {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.overlap-status {
  flex-shrink: 0;
}

.overlap-dead-badge {
  color: var(--blood);
  font-size: 0.9rem;
  font-weight: 600;
}

.overlap-unique-badge {
  color: var(--purple);
  font-size: 0.9rem;
  font-weight: 500;
}

/* ============ PREDICTIONS: PROFILE HEADER ============ */
.profile-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.profile-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--purple), var(--purple-dim));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: white;
  flex-shrink: 0;
}

.profile-name {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.2;
}

.profile-rank {
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.profile-rank-value {
  font-family: "JetBrains Mono", monospace;
  font-weight: 700;
  color: var(--accent);
}

/* ============ PREDICTIONS: SCORE DASHBOARD ============ */
.score-dashboard {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.score-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 1rem;
  text-align: center;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--card-shadow);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.score-card-label {
  font-size: 0.875rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.3px;
  margin-bottom: 0.5rem;
}

/* Score Ring */
.score-ring {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: conic-gradient(
    var(--accent) calc(var(--ring-pct, 0) * 1%),
    var(--bg-hover) 0
  );
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  position: relative;
}

.score-ring-inner {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--bg-card);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.score-ring-value {
  font-family: "JetBrains Mono", monospace;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
}

.score-ring-label {
  font-size: 0.875rem;
  color: var(--text-secondary);
  text-transform: uppercase;
}

/* Hit Rate */
.hit-rate-numbers {
  font-family: "JetBrains Mono", monospace;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.hit-rate-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.hit-rate-fraction {
  font-family: "JetBrains Mono", monospace;
  display: flex;
  align-items: baseline;
  gap: 0.15rem;
}

.hit-rate-num {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent);
}

.hit-rate-sep {
  font-size: 1rem;
  color: var(--text-muted);
}

.hit-rate-den {
  font-size: 1rem;
  color: var(--text-secondary);
}

.hit-rate-bar {
  height: 6px;
  background: var(--bg-hover);
  border-radius: 3px;
  overflow: hidden;
  margin: 0 auto;
  max-width: 100px;
  width: 100%;
}

.hit-rate-fill {
  height: 100%;
  background: var(--success);
  border-radius: 3px;
  transition: width 0.5s ease-out;
}

/* Quarter Breakdown */
.quarter-bars {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 0.5rem;
  margin-bottom: 0.25rem;
}

.quarter-bar-col,
.quarter-bar-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  flex: 1;
}

.quarter-bar-count {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.quarter-bar-track {
  width: 100%;
  max-width: 24px;
  height: 40px;
  background: var(--bg-hover);
  border-radius: 3px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}

.quarter-bar-fill {
  width: 100%;
  background: var(--purple);
  border-radius: 3px;
  transition: height 0.5s ease-out;
  min-height: 2px;
}

.quarter-bar-label {
  font-size: 0.875rem;
  color: var(--text-secondary);
  font-family: "JetBrains Mono", monospace;
}

/* ============ PREDICTIONS: TABS ============ */
.picks-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 1rem;
  background: var(--bg-card);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  overflow: hidden;
}

.picks-tab {
  flex: 1;
  padding: 0.55rem 0.75rem;
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  min-height: auto;
  border-radius: 0;
  transition: all 0.15s;
}

.picks-tab:hover {
  color: var(--text-primary);
  background: var(--bg-hover);
  transform: none;
  box-shadow: none;
}

.picks-tab.active {
  background: var(--accent);
  color: var(--bg-dark);
  font-weight: 600;
}

.picks-tab-count {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.9rem;
  margin-left: 0.25rem;
  opacity: 0.8;
}

/* ============ PREDICTIONS: ENHANCED CARDS ============ */
.pick-card {
  display: flex;
  align-items: center;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 0.75rem;
  gap: 0.75rem;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--card-shadow);
  transition: all 0.2s;
  margin-bottom: 0.5rem;
}

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

.pick-card.pick-hit {
  border-left: 4px solid var(--success);
  box-shadow:
    var(--card-shadow),
    inset 0 0 20px rgba(61, 158, 80, 0.05);
}

.pick-card.pick-dark-horse {
  border-left: 4px solid var(--purple);
}

.pick-photo,
.pick-card-photo {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  object-position: top center;
  flex-shrink: 0;
  background: var(--bg-dark);
}

.pick-card-no-photo {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
}

.pick-info,
.pick-card-info {
  flex: 1;
  min-width: 0;
}

.pick-name,
.pick-card-name {
  font-weight: 600;
  font-size: 0.9rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pick-meta,
.pick-card-meta {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 0.2rem;
}

.pick-card-action {
  flex-shrink: 0;
}

.pick-card-points {
  font-family: "JetBrains Mono", monospace;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--success);
}

.pick-delete-btn {
  width: 32px;
  height: 32px;
  min-height: auto;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-muted);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  cursor: pointer;
}

.pick-delete-btn:hover {
  color: var(--error);
  border-color: var(--error);
  background: rgba(196, 48, 48, 0.1);
  transform: none;
  box-shadow: none;
}

.pick-badge {
  font-size: 0.9rem;
  margin-left: 0.3rem;
}

.pick-badge.dark-horse {
  color: var(--purple);
}

.breakdown-chip.dark-horse {
  background: rgba(128, 90, 213, 0.15);
  color: var(--purple);
}

.pick-quarter-badge {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.875rem;
  color: var(--text-secondary);
  background: var(--bg-hover);
  padding: 0.1rem 0.35rem;
  border-radius: 3px;
}

.pick-dark-horse-badge {
  font-size: 0.875rem;
  color: var(--purple);
  font-weight: 500;
}

.pick-breakdown {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  margin-top: 0.35rem;
}

.breakdown-chip {
  font-size: 0.875rem;
  font-family: "JetBrains Mono", monospace;
  background: rgba(61, 158, 80, 0.15);
  color: #6fd585;
  padding: 0.1rem 0.3rem;
  border-radius: 3px;
}

.pick-score {
  text-align: right;
  flex-shrink: 0;
}

.pick-score-value {
  font-family: "JetBrains Mono", monospace;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--success);
  line-height: 1;
}

.pick-score-label {
  font-size: 0.875rem;
  color: var(--text-secondary);
  text-transform: uppercase;
}

.pick-delete {
  width: 32px;
  height: 32px;
  min-height: auto;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-muted);
  border-radius: var(--radius-sm);
  flex-shrink: 0;
  font-size: 0.95rem;
}

.pick-delete:hover {
  color: var(--error);
  border-color: var(--error);
  background: rgba(196, 48, 48, 0.1);
  transform: none;
  box-shadow: none;
}

/* ============ PREDICTIONS: OTHER PLAYERS ============ */
.player-chip-scroll {
  display: flex;
  overflow-x: auto;
  gap: 0.5rem;
  scrollbar-width: none;
  padding-bottom: 0.5rem;
}

.player-chip-scroll::-webkit-scrollbar {
  display: none;
}

.player-chip-btn {
  flex-shrink: 0;
  padding: 0.4rem 0.875rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  border-radius: var(--radius-full);
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  min-height: auto;
  transition: all 0.15s;
}

.player-chip-btn:hover {
  color: var(--text-primary);
  background: var(--bg-hover);
  transform: none;
  box-shadow: none;
}

.player-chip-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--bg-dark);
  font-weight: 600;
}

.player-chip-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--purple-dim);
  color: var(--accent);
  font-size: 0.875rem;
  font-weight: 700;
  margin-right: 0.25rem;
}

/* ============ ADD: STEP INDICATOR ============ */
.step-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: 1.75rem;
}

.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
}

.step-number,
.step-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-muted);
  transition: all 0.3s;
}

.step.active .step-number,
.step.active .step-circle {
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: 0 0 12px var(--accent-glow);
}

.step.completed .step-number,
.step.completed .step-circle,
.step.complete .step-number,
.step.complete .step-circle {
  background: var(--success);
  border-color: var(--success);
  color: white;
}

.step-label {
  font-size: 0.875rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.step.active .step-label {
  color: var(--accent);
}

.step.completed .step-label,
.step.complete .step-label {
  color: var(--success);
}

.step-connector,
.step-line {
  width: 40px;
  height: 2px;
  background: var(--border);
  margin: 0 0.5rem;
  margin-bottom: 1.25rem;
  transition: background 0.3s;
}

.step-connector.active,
.step-line.active {
  background: var(--accent);
}

/* ============ ADD: CELEBRITY PROFILE CARD ============ */
.celeb-profile-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 1.5rem;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--card-shadow-hover);
}

.celeb-profile-photo-wrap {
  height: 180px;
  overflow: hidden;
  background: var(--bg-dark);
  display: flex;
  align-items: center;
  justify-content: center;
}

.celeb-profile-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.celeb-profile-no-photo {
  color: var(--text-muted);
}

.celeb-profile-info {
  padding: 1rem 1.25rem;
}

.celeb-profile-name {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.celeb-profile-desc {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
}

.celeb-profile-extract {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 0.75rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.celeb-profile-pick-count {
  font-size: 0.95rem;
  color: var(--accent);
  padding: 0.5rem 0.75rem;
  background: var(--accent-glow);
  border-radius: var(--radius-sm);
  margin-bottom: 0.75rem;
}

.celeb-change-btn {
  padding: 0.4rem 0.75rem;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 0.95rem;
  min-height: auto;
  border-radius: var(--radius-sm);
}

.celeb-change-btn:hover {
  color: var(--text-primary);
  border-color: var(--text-muted);
  transform: none;
  box-shadow: none;
}

/* ============ ADD: QUARTER CARDS ============ */
.quarter-section-title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
}

.quarter-section-title i {
  color: var(--accent);
  margin-right: 0.35rem;
}

.quarter-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.65rem;
  margin-bottom: 1rem;
}

.quarter-card {
  padding: 0.875rem;
  background: var(--bg-card);
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  cursor: pointer;
  text-align: center;
  transition: all 0.15s;
  min-height: auto;
  color: var(--text-secondary);
}

.quarter-card:hover {
  border-color: var(--text-muted);
  color: var(--text-primary);
  transform: none;
  box-shadow: none;
}

.quarter-card.selected,
.quarter-card.active {
  border-color: var(--accent);
  color: var(--text-primary);
  background: var(--accent-glow);
  box-shadow: 0 0 16px var(--accent-glow);
}

.quarter-card-label {
  font-family: "JetBrains Mono", monospace;
  font-size: 1.1rem;
  font-weight: 700;
  color: inherit;
}

.quarter-card.selected .quarter-card-label,
.quarter-card.active .quarter-card-label {
  color: var(--accent);
}

.quarter-card-months {
  font-size: 0.9rem;
  margin-top: 0.15rem;
}

.quarter-card-bonus {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

/* ============ ADD: SEAL FATE BUTTON ============ */
.seal-fate-btn {
  width: 100%;
  padding: 1rem;
  background: linear-gradient(135deg, var(--blood) 0%, #2a0a0a 100%);
  color: var(--accent);
  border: 1px solid rgba(139, 26, 26, 0.5);
  font-size: 1.1rem;
  font-weight: 700;
  border-radius: var(--radius-lg);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
  letter-spacing: 0.02em;
}

.seal-fate-btn:hover {
  box-shadow:
    var(--glow-blood),
    0 4px 16px rgba(139, 26, 26, 0.4);
}

.seal-fate-btn:disabled {
  opacity: 0.5;
}

.my-picks-count {
  text-align: center;
  margin-top: 1.25rem;
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.my-picks-count a {
  color: var(--accent);
  text-decoration: none;
}

.my-picks-count a:hover {
  text-decoration: underline;
}

/* ============ HELP: RULEBOOK ============ */
.rulebook-header {
  text-align: center;
  margin-bottom: 1.5rem;
}

.rulebook-icon {
  font-size: 2.5rem;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.rulebook-title {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.75rem;
  font-weight: 700;
}

.rulebook-subtitle {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-top: 0.25rem;
}

/* ============ HELP: QUICK NAV ============ */
.quick-nav {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  scrollbar-width: none;
  margin-bottom: 1.5rem;
  padding-bottom: 0.25rem;
}

.quick-nav::-webkit-scrollbar {
  display: none;
}

.quick-nav-pill {
  flex-shrink: 0;
  padding: 0.5rem 0.875rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: all 0.15s;
  white-space: nowrap;
}

.quick-nav-pill:hover {
  color: var(--accent);
  border-color: var(--accent-dim);
  background: var(--bg-hover);
}

/* ============ HELP: SCORING TIERS ============ */
.scoring-tiers {
  display: flex;
  gap: 0.75rem;
  overflow-x: auto;
  scrollbar-width: none;
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
}

.scoring-tiers::-webkit-scrollbar {
  display: none;
}

.scoring-tier {
  flex: 1;
  min-width: 120px;
  flex-shrink: 0;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 1rem;
  text-align: center;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--card-shadow);
  border-top: 3px solid var(--accent);
}

.scoring-tier:nth-child(2) {
  border-top-color: var(--success);
}
.scoring-tier:nth-child(3) {
  border-top-color: #3498db;
}
.scoring-tier:nth-child(4) {
  border-top-color: var(--purple);
}
.scoring-tier:nth-child(5) {
  border-top-color: var(--rank-bronze);
}

.tier-icon {
  font-size: 1.25rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.tier-points {
  font-family: "JetBrains Mono", monospace;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 0.25rem;
}

.tier-name {
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 0.25rem;
}

.tier-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

/* ============ HELP: SCORE CALCULATOR ============ */
.score-calc {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  margin-bottom: 1.5rem;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--card-shadow);
}

.score-calc h3 {
  margin-bottom: 1rem;
  font-size: 1rem;
}

.score-calc h3 i {
  color: var(--accent);
  margin-right: 0.35rem;
}

.calc-options {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-bottom: 1rem;
}

.calc-option {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.5rem 0.65rem;
  background: var(--bg-hover);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  cursor: pointer;
  margin-bottom: 0;
}

.calc-option input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
  flex-shrink: 0;
}

.calc-option select {
  width: auto;
  padding: 0.35rem 2rem 0.35rem 0.5rem;
  font-size: 0.95rem;
  min-height: auto;
}

.calc-option span:nth-child(2) {
  flex: 1;
}

.calc-points {
  font-family: "JetBrains Mono", monospace;
  font-weight: 700;
  color: var(--success);
  font-size: 0.95rem;
}

.calc-total {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
}

.calc-total-label {
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.calc-total-value {
  font-family: "JetBrains Mono", monospace;
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent);
}

.calc-total-suffix {
  font-size: 0.95rem;
  color: var(--text-secondary);
}

/* ============ HELP: STRATEGY GRID ============ */
.strategy-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.strategy-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 1rem;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--card-shadow);
}

.strategy-icon {
  font-size: 1.25rem;
  color: var(--purple);
  margin-bottom: 0.5rem;
}

.strategy-title {
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 0.35rem;
}

.strategy-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* ============ HELP: FAQ ACCORDION ============ */
.faq-section {
  margin-bottom: 1.5rem;
}

.faq-item {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  margin-bottom: 0.5rem;
  overflow: hidden;
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.875rem 1rem;
  cursor: pointer;
  font-weight: 500;
  font-size: 0.9rem;
  -webkit-tap-highlight-color: transparent;
  transition: background 0.15s;
}

.faq-question:hover {
  background: var(--bg-hover);
}

.faq-question i {
  color: var(--text-muted);
  font-size: 0.9rem;
  transition: transform 0.2s;
  flex-shrink: 0;
  margin-left: 0.5rem;
}

.faq-question i.rotated {
  transform: rotate(180deg);
}

.faq-answer {
  padding: 0 1rem 0.875rem;
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ============ PHASE 2: DESKTOP OVERRIDES ============ */
@media (min-width: 768px) {
  /* Leaderboard */
  .season-summary {
    grid-template-columns: repeat(4, 1fr);
  }

  .podium {
    flex-direction: row;
    align-items: flex-end;
    justify-content: center;
    gap: 1rem;
  }

  .podium-block {
    flex-direction: column;
    text-align: center;
    width: 220px;
    padding: 1.25rem;
    justify-content: flex-end;
  }

  .podium-1 {
    order: 2;
    padding-top: 4rem;
  }
  .podium-2 {
    order: 1;
    padding-top: 2rem;
  }
  .podium-3 {
    order: 3;
  }

  .podium-rank {
    font-size: 2.25rem;
    min-width: auto;
  }
  .podium-name {
    font-size: 1.25rem;
  }
  .podium-score {
    font-size: 2.5rem;
  }
  .podium-hits {
    justify-content: center;
  }

  .lb-card-main {
    padding: 1rem 1.25rem;
  }
  .lb-rank {
    font-size: 1.5rem;
  }
  .lb-player-name {
    font-size: 1.1rem;
  }
  .lb-score {
    font-size: 1.75rem;
  }

  /* Deaths */
  .death-toll-title {
    font-size: 2rem;
  }
  .death-toll-stats {
    gap: 3rem;
  }
  .dt-stat-value {
    font-size: 1.75rem;
  }

  .featured-death {
    flex-direction: row;
  }

  .featured-death-photo-wrap {
    width: 40%;
    height: auto;
    min-height: 250px;
  }

  .featured-death-content {
    flex: 1;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .featured-death-name {
    font-size: 2rem;
  }

  /* Draft */
  .war-room-title {
    font-size: 2.25rem;
  }
  .intel-card {
    min-width: auto;
  }

  /* Predictions */
  .profile-avatar {
    width: 72px;
    height: 72px;
    font-size: 2rem;
  }
  .profile-name {
    font-size: 1.75rem;
  }

  .score-ring {
    width: 100px;
    height: 100px;
  }

  .score-ring-inner {
    width: 80px;
    height: 80px;
  }

  .score-ring-value {
    font-size: 1.5rem;
  }

  /* Add */
  .celeb-profile-card {
    flex-direction: row;
  }
  .celeb-profile-photo-wrap {
    width: 200px;
    height: auto;
    min-height: 200px;
  }
  .celeb-profile-info {
    flex: 1;
  }

  .quarter-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  /* Help */
  .scoring-tiers {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    overflow-x: visible;
  }

  .strategy-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ============ ANIMATIONS ============ */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-in {
  animation: fadeInUp 0.3s ease-out both;
}

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

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

/* ============ ADMIN: ONE-TIME TEMPORARY PASSWORD ============ */
/* Shown once after an admin reset. The server keeps only the bcrypt hash, so if
   this is lost the only remedy is another reset - which is fine, and safer than
   storing it anywhere. */
.reset-result {
  margin-top: 1rem;
  padding: 1rem 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--accent);
  border-radius: var(--radius-lg);
}

.reset-result-head {
  margin-bottom: 0.5rem;
}

.reset-result-code {
  display: inline-block;
  padding: 0.5rem 0.85rem;
  margin-bottom: 0.5rem;
  background: var(--bg-dark);
  border-radius: 6px;
  color: var(--accent);
  font-family: "JetBrains Mono", monospace;
  font-size: 1.15rem;
  letter-spacing: 0.05em;
  user-select: all; /* one click selects the lot, for pasting into a group chat */
}

.reset-result-note {
  margin: 0 0 0.75rem;
  color: var(--text-secondary);
  font-size: 0.85rem;
}

/* ============ ADMIN TABLES ON A PHONE ============ */
/* The admin tables are width:100% with no scroll container, so on a narrow screen the
   rightmost column - which is where every action button lives - was simply clipped off
   the edge. The buttons rendered; you just couldn't see or reach them. Let the section
   scroll sideways and give the table a floor width, rather than crushing the columns
   until they're unreadable. */
@media (max-width: 768px) {
  .admin-section {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .admin-table {
    min-width: 620px;
  }

  /* Action buttons stack rather than fight for horizontal space. */
  .admin-table td .toggle-btn {
    display: block;
    width: 100%;
    margin-bottom: 0.25rem;
    white-space: nowrap;
  }

  /* Pin the actions column to the right edge. Merely making the table scrollable is
     not enough on its own: the buttons would still sit off-screen behind four columns
     of ID / Name / Predictions / Admin, so you'd have to somehow know to drag sideways
     to find them. Sticky keeps them where a thumb expects them while the rest of the
     row scrolls underneath. */
  .admin-table th:last-child,
  .admin-table td:last-child {
    position: sticky;
    right: 0;
    background: var(--bg-card);
    box-shadow: -10px 0 10px -8px rgba(0, 0, 0, 0.7);
  }
}

/* ============ SIGN IN WITH GOOGLE ============ */
.auth-divider {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 1rem 0 0.75rem;
  color: var(--text-secondary);
  font-size: 0.8rem;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border-subtle);
}

.btn-google,
.btn-google-small {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  background: #fff;
  color: #1f1f1f;
  border: 0;
  border-radius: var(--radius-sm, 8px);
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}

.btn-google {
  width: 100%;
  padding: 0.75rem 1rem;
}

.btn-google-small {
  flex-shrink: 0;
  padding: 0.5rem 1.1rem;
  font-size: 0.9rem;
}

.btn-google:hover,
.btn-google-small:hover {
  background: #f1f3f4;
}

.auth-hint,
.auth-error {
  margin: 0.6rem 0 0;
  font-size: 0.8rem;
  text-align: center;
}

.auth-hint {
  color: var(--text-secondary);
}
.auth-error {
  color: var(--blood);
}

/* The "link your Google account" prompt: this IS the migration path for players who
   signed up with a password. They are already logged in, so their password has already
   proved who they are - linking just staples a Google identity to the same player row. */
.hub-link-google {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--bg-card);
  border: 1px solid var(--accent-dim);
  border-radius: var(--radius-lg);
  padding: 1rem 1.25rem;
  margin-bottom: 1rem;
}

.hub-link-google-icon {
  flex-shrink: 0;
  font-size: 1.35rem;
  color: var(--accent);
}

.hub-link-google-body {
  flex: 1;
  min-width: 0;
}

.hub-link-google-title {
  font-weight: 600;
  margin-bottom: 0.15rem;
}

.hub-link-google-text {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.85rem;
  line-height: 1.45;
}

.hub-linked-note {
  margin: 0 0 1rem;
  color: var(--text-secondary);
  font-size: 0.82rem;
}

.hub-linked-note i {
  color: var(--accent);
}

@media (max-width: 480px) {
  .hub-link-google {
    flex-wrap: wrap;
  }
  .btn-google-small {
    width: 100%;
  }
}

/* ============ WELCOME: CHOOSE A NAME ============ */
.welcome-card {
  max-width: 24rem;
  margin: 15vh auto 0;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-align: center;
}

.welcome-title {
  margin: 0 0 0.35rem;
  font-size: 1.75rem;
}

.welcome-title i {
  color: var(--blood);
}

.welcome-lead {
  margin: 0 0 1.5rem;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.welcome-card input {
  width: 100%;
  margin-bottom: 1rem;
}

.welcome-card button {
  width: 100%;
}

.welcome-error {
  margin: 0 0 0.75rem;
  color: var(--blood);
  font-size: 0.85rem;
}

.welcome-hint {
  margin: 1rem 0 0;
  color: var(--text-secondary);
  font-size: 0.75rem;
}

/* The order matters and is not obvious: an existing player who signs in with Google
   BEFORE logging in gets a new empty account, not their own. Say so loudly. */
.auth-warn {
  margin: 0 0 0.75rem;
  padding: 0.6rem 0.8rem;
  background: var(--blood-subtle);
  border-left: 3px solid var(--blood);
  border-radius: 6px;
  color: var(--text-secondary);
  font-size: 0.8rem;
  line-height: 1.45;
  text-align: left;
}

.auth-warn strong {
  color: var(--text);
}

.btn-unlink {
  margin-left: 0.5rem;
  padding: 0;
  background: none;
  border: 0;
  color: var(--text-secondary);
  font: inherit;
  font-size: 0.78rem;
  text-decoration: underline;
  cursor: pointer;
}

/* Change your own password. Everyone will arrive holding a temporary one the admin
   texted them, so this is the difference between "temporary" and "forever". */
.hub-password {
  margin-bottom: 1rem;
}

.btn-linklike {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0;
  background: none;
  border: 0;
  color: var(--text-secondary);
  font: inherit;
  font-size: 0.85rem;
  cursor: pointer;
}

.btn-linklike:hover {
  color: var(--accent);
}

.hub-password-form {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 0.75rem;
  padding: 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
}

.hub-password-msg {
  margin: 0;
  font-size: 0.82rem;
}

.hub-password-msg.ok {
  color: var(--accent);
}
.hub-password-msg.err {
  color: var(--blood);
}
