:root {
  --bg-dark: #0b0f17;
  --bg-card: #131a27;
  --bg-card-elevated: #1b2436;
  --bg-input: #161f30;
  --border-subtle: rgba(255, 255, 255, 0.09);
  --border-focus: #10b981;

  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;

  /* Wordle Football Feedback Colors */
  --tile-green: #16a34a;
  --tile-green-border: #22c55e;
  --tile-yellow: #ca8a04;
  --tile-yellow-border: #eab308;
  --tile-grey: #263042;
  --tile-grey-border: #334155;

  --accent-primary: #10b981;
  --accent-hover: #059669;
  --donate-gold: #f59e0b;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--bg-dark);
  background-image:
    radial-gradient(circle at 50% 0%, rgba(16, 185, 129, 0.12), transparent 55%),
    radial-gradient(circle at 85% 20%, rgba(59, 130, 246, 0.07), transparent 40%);
  color: var(--text-main);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  line-height: 1.45;
}

.confetti-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 150;
}

/* AD SLOTS */
.ad-banner-top {
  background: #070a10;
  border-bottom: 1px solid var(--border-subtle);
  padding: 8px 16px;
  display: flex;
  justify-content: center;
}

.ad-placeholder {
  width: 100%;
  max-width: 728px;
  min-height: 54px;
  border: 1px dashed rgba(148, 163, 184, 0.25);
  border-radius: var(--radius-sm);
  background: rgba(19, 26, 39, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 8px 14px;
  color: var(--text-muted);
  font-size: 0.8rem;
  text-align: center;
}

.ad-badge {
  background: rgba(148, 163, 184, 0.2);
  color: #cbd5e1;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  letter-spacing: 0.05em;
}

/* HEADER */
.site-header {
  border-bottom: 1px solid var(--border-subtle);
  background: rgba(11, 15, 23, 0.85);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 40;
}

.header-inner {
  max-width: 840px;
  margin: 0 auto;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-group {
  display: flex;
  align-items: center;
  gap: 11px;
}

.logo-mark {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: linear-gradient(135deg, #10b981, #047857);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.3);
}

.brand-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.5rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.05;
}

.brand-accent {
  color: var(--accent-primary);
}

.brand-five {
  display: inline-block;
  background: rgba(16, 185, 129, 0.16);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.35);
  font-size: 0.85rem;
  padding: 1px 7px;
  border-radius: 6px;
  vertical-align: middle;
  margin-left: 2px;
}

.brand-subtitle {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 500;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-gaffer-nav {
  background: rgba(59, 130, 246, 0.16);
  color: #60a5fa;
  border: 1px solid rgba(59, 130, 246, 0.45);
  font-weight: 700;
  font-size: 0.82rem;
  padding: 7px 12px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: transform 0.15s ease, background 0.15s ease;
}

.btn-gaffer-nav:hover {
  background: rgba(59, 130, 246, 0.28);
  color: #93c5fd;
  transform: translateY(-1px);
}

.btn-donate-nav {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #0b0f17;
  border: none;
  font-weight: 700;
  font-size: 0.82rem;
  padding: 8px 13px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: transform 0.15s ease, filter 0.15s ease;
}

.btn-donate-nav:hover {
  transform: translateY(-1px);
  filter: brightness(1.08);
}

.icon-btn {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}

.icon-btn:hover {
  background: var(--bg-card-elevated);
  border-color: rgba(255, 255, 255, 0.22);
}

/* MAIN LAYOUT */
.main-container {
  width: 100%;
  max-width: 840px;
  margin: 0 auto;
  padding: 16px 16px 40px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* DAILY 5 BAR & TIMER */
.daily-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  padding: 10px 12px;
  border-radius: var(--radius-md);
}

.daily-rounds-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.mode-switch {
  display: flex;
  background: #0b0f17;
  padding: 3px;
  border-radius: 8px;
  border: 1px solid var(--border-subtle);
}

.mode-btn {
  background: transparent;
  color: var(--text-muted);
  border: none;
  padding: 5px 10px;
  font-size: 0.78rem;
  font-weight: 700;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s;
}

.mode-btn.active {
  background: var(--accent-primary);
  color: #06281e;
}

.round-tabs {
  display: flex;
  align-items: center;
  gap: 6px;
}

.round-tab {
  background: var(--bg-card-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  padding: 6px 11px;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: all 0.15s;
}

.round-tab:hover {
  border-color: rgba(255, 255, 255, 0.25);
}

.round-tab.active {
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.25);
  background: rgba(16, 185, 129, 0.14);
}

.round-tab.won {
  background: rgba(22, 163, 74, 0.2);
  border-color: var(--tile-green-border);
  color: #86efac;
}

.round-tab.lost {
  background: rgba(239, 68, 68, 0.18);
  border-color: rgba(239, 68, 68, 0.5);
  color: #fca5a5;
}

.reset-timer-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  color: var(--text-muted);
  background: rgba(11, 15, 23, 0.65);
  padding: 6px 11px;
  border-radius: 999px;
  border: 1px solid var(--border-subtle);
}

.timer-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-primary);
  box-shadow: 0 0 8px var(--accent-primary);
}

.timer-countdown {
  color: var(--text-main);
  font-variant-numeric: tabular-nums;
  font-weight: 700;
}

/* MYSTERY PLAYER CARD */
.mystery-card {
  background: linear-gradient(135deg, rgba(27, 36, 54, 0.9), rgba(19, 26, 39, 0.95));
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
}

.mystery-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.mystery-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #26334d, #0f172a);
  border: 2px solid rgba(16, 185, 129, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
  position: relative;
}

.mystery-question {
  font-family: 'Outfit', sans-serif;
  font-size: 1.85rem;
  font-weight: 900;
  color: var(--accent-primary);
}

.mystery-club-img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  transition: filter 0.35s ease;
}

.mystery-club-img.blurred-crest {
  filter: blur(6px) saturate(1.3);
  transform: scale(0.95);
}

.mystery-tag-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 4px;
}

.round-badge {
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #34d399;
  background: rgba(16, 185, 129, 0.14);
  padding: 2px 8px;
  border-radius: 4px;
}

.guesses-left-badge {
  font-size: 0.72rem;
  font-weight: 700;
  color: #cbd5e1;
  background: rgba(255, 255, 255, 0.08);
  padding: 2px 8px;
  border-radius: 4px;
}

.streak-mini-pill {
  font-size: 0.72rem;
  font-weight: 700;
  color: #fde047;
  background: rgba(234, 179, 8, 0.14);
  padding: 2px 8px;
  border-radius: 4px;
}

.mystery-title {
  font-size: 1.15rem;
  font-weight: 800;
}

.mystery-hint {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 2px;
}

/* 3-Tier Hint Buttons */
.mystery-hints-group {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.hint-chip {
  background: rgba(234, 179, 8, 0.12);
  color: #fde047;
  border: 1px solid rgba(234, 179, 8, 0.35);
  padding: 7px 10px;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: all 0.15s;
}

.hint-chip:hover:not(:disabled) {
  background: rgba(234, 179, 8, 0.24);
  transform: translateY(-1px);
}

.hint-chip.revealed {
  background: rgba(16, 185, 129, 0.18);
  border-color: rgba(16, 185, 129, 0.45);
  color: #6ee7b7;
}

.hint-chip:disabled {
  cursor: not-allowed;
}

.hint-chip:disabled:not(.revealed) {
  background: rgba(255, 255, 255, 0.04);
  border: 1px dashed rgba(255, 255, 255, 0.14);
  color: var(--text-dim);
  opacity: 0.7;
}

/* LIVE SCOUT REPORT (CONFIRMED CLUES TRACKER) */
.scout-report-bar {
  background: rgba(19, 26, 39, 0.85);
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: var(--radius-md);
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

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

.scout-title {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  color: #34d399;
}

.filter-toggle-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: all 0.15s;
}

.filter-toggle-btn.active {
  background: rgba(16, 185, 129, 0.18);
  border-color: var(--accent-primary);
  color: #6ee7b7;
}

.scout-slots-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
}

.scout-slot {
  background: rgba(11, 15, 23, 0.65);
  border: 1px dashed rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-sm);
  padding: 6px 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 48px;
  transition: all 0.2s;
}

.scout-slot.locked-green {
  background: rgba(22, 163, 74, 0.22);
  border: 1px solid var(--tile-green-border);
}

.scout-slot.narrowed-yellow {
  background: rgba(202, 138, 4, 0.18);
  border: 1px solid var(--tile-yellow-border);
}

.scout-slot-label {
  font-size: 0.62rem;
  font-weight: 700;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.scout-slot-val {
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 2px;
}

.scout-mini-icon {
  width: 15px;
  height: 15px;
  object-fit: contain;
}

/* SEARCH & AUTOCOMPLETE */
.search-section {
  position: relative;
  z-index: 30;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.search-box-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.search-icon {
  position: absolute;
  left: 14px;
  color: var(--text-muted);
  pointer-events: none;
}

.player-search-input {
  width: 100%;
  background: var(--bg-input);
  border: 2px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-md);
  padding: 14px 115px 14px 44px;
  color: var(--text-main);
  font-size: 0.96rem;
  font-weight: 500;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.player-search-input:focus {
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.15);
}

.player-search-input:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.search-count-tag {
  position: absolute;
  right: 12px;
  font-size: 0.72rem;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.06);
  padding: 3px 8px;
  border-radius: 6px;
  pointer-events: none;
}

/* Quick Starter Picks */
.starter-picks-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.starter-label {
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--text-muted);
}

.starter-chips {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.starter-chip {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #e2e8f0;
  font-size: 0.74rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: all 0.15s;
}

.starter-chip:hover {
  background: rgba(16, 185, 129, 0.16);
  border-color: var(--accent-primary);
  color: #ffffff;
}

.starter-chip img {
  width: 14px;
  height: 14px;
  object-fit: contain;
}

.autocomplete-dropdown {
  position: absolute;
  top: 52px;
  left: 0;
  right: 0;
  background: #151e2e;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-md);
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.7);
  max-height: 320px;
  overflow-y: auto;
  z-index: 50;
}

.ac-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  cursor: pointer;
  transition: background 0.1s;
}

.ac-item:last-child {
  border-bottom: none;
}

.ac-item:hover,
.ac-item.highlighted {
  background: rgba(16, 185, 129, 0.16);
}

.ac-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ac-club-logo {
  width: 28px;
  height: 28px;
  object-fit: contain;
  flex-shrink: 0;
}

.ac-name {
  font-weight: 700;
  font-size: 0.94rem;
  color: var(--text-main);
}

.ac-sub {
  font-size: 0.76rem;
  color: var(--text-muted);
}

.ac-right {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.76rem;
  font-weight: 700;
  color: #cbd5e1;
}

.ac-pos-badge {
  background: rgba(255, 255, 255, 0.08);
  padding: 3px 7px;
  border-radius: 5px;
}

/* ROUND RESULT BANNER */
.round-result-banner {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.18), rgba(19, 26, 39, 0.95));
  border: 1px solid rgba(16, 185, 129, 0.45);
  border-radius: var(--radius-md);
  padding: 16px;
  animation: fadeIn 0.25s ease;
}

.round-result-banner.lost-banner {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.18), rgba(19, 26, 39, 0.95));
  border-color: rgba(239, 68, 68, 0.45);
}

.result-banner-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
}

.result-player-profile {
  display: flex;
  align-items: center;
  gap: 14px;
}

.result-club-logo {
  width: 52px;
  height: 52px;
  object-fit: contain;
}

.result-status-tag {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #34d399;
  text-transform: uppercase;
}

.round-result-banner.lost-banner .result-status-tag {
  color: #f87171;
}

.result-player-name {
  font-size: 1.25rem;
  font-weight: 800;
}

.result-player-meta {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.result-banner-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* GUESS BOARD */
.board-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.grid-header {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  padding: 0 4px;
}

.col-head {
  text-align: center;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  color: var(--text-muted);
}

.guesses-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.guess-row-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.guess-player-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0 4px;
}

.guess-player-name {
  display: flex;
  align-items: center;
  gap: 6px;
}

.guess-num-pill {
  font-size: 0.7rem;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.06);
  padding: 1px 6px;
  border-radius: 4px;
}

.guess-tiles-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
}

.attr-tile {
  min-height: 68px;
  border-radius: var(--radius-sm);
  padding: 6px 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 4px;
  border: 2px solid transparent;
  font-weight: 700;
  position: relative;
  transform-origin: center;
  animation: flipTile 0.45s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.attr-tile.green {
  background: var(--tile-green);
  border-color: var(--tile-green-border);
  color: #ffffff;
}

.attr-tile.yellow {
  background: var(--tile-yellow);
  border-color: var(--tile-yellow-border);
  color: #ffffff;
}

.attr-tile.grey {
  background: var(--tile-grey);
  border-color: var(--tile-grey-border);
  color: #e2e8f0;
}

.tile-icon-img {
  width: 24px;
  height: 24px;
  object-fit: contain;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.35));
}

.tile-main-val {
  font-size: 0.85rem;
  font-weight: 800;
  line-height: 1.1;
  word-break: break-word;
}

.tile-sub-val {
  font-size: 0.65rem;
  opacity: 0.9;
  font-weight: 600;
}

.age-val-big {
  font-family: 'Outfit', sans-serif;
  font-size: 1.15rem;
  font-weight: 900;
  display: flex;
  align-items: center;
  gap: 3px;
}

/* Empty Guess Slot */
.empty-slot-row {
  height: 48px;
  border-radius: var(--radius-md);
  border: 1px dashed rgba(255, 255, 255, 0.1);
  background: rgba(19, 26, 39, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dim);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

/* LEGEND */
.legend-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
  padding: 10px 14px;
  background: rgba(19, 26, 39, 0.65);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  color: var(--text-muted);
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.legend-dot {
  width: 11px;
  height: 11px;
  border-radius: 3px;
  display: inline-block;
}

.legend-dot.green { background: var(--tile-green); }
.legend-dot.yellow { background: var(--tile-yellow); }
.legend-dot.grey { background: var(--tile-grey); }

/* GAFFER SIMULATOR CROSS-PROMO */
.gaffer-promo-card {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.2), rgba(19, 26, 39, 0.95));
  border: 1px solid rgba(59, 130, 246, 0.45);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
}

.gaffer-promo-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.gaffer-icon-badge {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(59, 130, 246, 0.22);
  border: 1px solid rgba(59, 130, 246, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}

.gaffer-tag {
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #60a5fa;
  margin-bottom: 2px;
}

.gaffer-promo-left h3 {
  font-size: 1rem;
  font-weight: 800;
}

.gaffer-promo-left h3 span {
  color: #60a5fa;
}

.gaffer-promo-left p {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.btn-gaffer-cta {
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  color: #ffffff;
  text-decoration: none;
  font-weight: 800;
  font-size: 0.82rem;
  padding: 10px 15px;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  transition: transform 0.15s, filter 0.15s;
}

.btn-gaffer-cta:hover {
  transform: translateY(-1px);
  filter: brightness(1.1);
}

.modal-gaffer-link {
  display: block;
  margin-top: 10px;
  text-align: center;
  background: rgba(59, 130, 246, 0.14);
  border: 1px solid rgba(59, 130, 246, 0.4);
  color: #93c5fd;
  text-decoration: none;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-weight: 600;
  transition: background 0.15s;
}

.modal-gaffer-link:hover {
  background: rgba(59, 130, 246, 0.25);
}

/* MONETIZATION ROW */
.monetization-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 8px;
}

.ad-banner-inline .ad-placeholder {
  height: 100%;
  min-height: 130px;
}

.donate-card {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.12), rgba(19, 26, 39, 0.9));
  border: 1px solid rgba(245, 158, 11, 0.35);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.donate-card-icon {
  font-size: 2rem;
  flex-shrink: 0;
}

.donate-card-body h3 {
  font-size: 0.98rem;
  font-weight: 800;
  margin-bottom: 4px;
}

.donate-card-body p {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.btn-donate-cta {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #0b0f17;
  border: none;
  font-weight: 800;
  font-size: 0.8rem;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  cursor: pointer;
}

/* BUTTONS */
.btn-primary {
  background: var(--accent-primary);
  color: #052e16;
  border: none;
  font-weight: 800;
  font-size: 0.86rem;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background 0.15s;
}

.btn-primary:hover {
  background: #34d399;
}

.btn-secondary {
  background: var(--bg-card-elevated);
  color: var(--text-main);
  border: 1px solid rgba(255, 255, 255, 0.18);
  font-weight: 700;
  font-size: 0.86rem;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.full-width {
  width: 100%;
}

/* FOOTER */
.site-footer {
  border-top: 1px solid var(--border-subtle);
  padding: 20px 16px;
  text-align: center;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.footer-sub {
  margin-top: 6px;
}

.link-btn {
  background: none;
  border: none;
  color: #34d399;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
}

/* MODALS */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(5, 8, 14, 0.78);
  backdrop-filter: blur(6px);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.modal-card {
  width: 100%;
  max-width: 520px;
  background: #131b2b;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.65);
  max-height: 90vh;
  display: flex;
  flex-direction: column;
}

.modal-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-header h2 {
  font-size: 1.15rem;
  font-weight: 800;
}

.modal-close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}

.modal-body {
  padding: 18px 20px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.modal-footer {
  padding: 14px 20px;
  border-top: 1px solid var(--border-subtle);
}

.modal-lead {
  font-size: 0.9rem;
  color: #cbd5e1;
}

.rules-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 0.85rem;
}

.rule-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: rgba(255, 255, 255, 0.03);
  padding: 9px 12px;
  border-radius: var(--radius-sm);
}

.text-green { color: #4ade80; font-weight: 700; }
.text-yellow { color: #facc15; font-weight: 700; }
.text-grey { color: #94a3b8; font-weight: 700; }

.example-box {
  background: rgba(11, 15, 23, 0.6);
  border: 1px solid var(--border-subtle);
  padding: 12px;
  border-radius: var(--radius-sm);
}

.example-caption {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin: 4px 0 10px;
}

.mini-example-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
}

.mini-tile {
  padding: 8px 4px;
  border-radius: 6px;
  text-align: center;
  font-weight: 800;
  font-size: 0.78rem;
  display: flex;
  flex-direction: column;
}

.mini-tile small {
  font-size: 0.62rem;
  opacity: 0.85;
  font-weight: 600;
}

.mini-tile.green { background: var(--tile-green); }
.mini-tile.yellow { background: var(--tile-yellow); }

/* STATS MODAL & DISTRIBUTION */
.scout-rank-banner {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(234, 179, 8, 0.14));
  border: 1px solid rgba(16, 185, 129, 0.4);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.rank-trophy {
  font-size: 1.8rem;
}

.rank-sub {
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  color: #34d399;
}

.rank-title {
  font-size: 1.05rem;
  font-weight: 800;
}

.stats-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.kpi-box {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 10px 6px;
  text-align: center;
  display: flex;
  flex-direction: column;
}

.kpi-num {
  font-family: 'Outfit', sans-serif;
  font-size: 1.4rem;
  font-weight: 900;
  color: #34d399;
}

.kpi-label {
  font-size: 0.68rem;
  color: var(--text-muted);
}

.section-subhead {
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.dist-chart {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.dist-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.76rem;
  font-weight: 700;
}

.dist-label {
  width: 16px;
  text-align: right;
  color: var(--text-muted);
}

.dist-bar-wrap {
  flex: 1;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 4px;
  overflow: hidden;
}

.dist-bar {
  background: var(--accent-primary);
  color: #052e16;
  font-weight: 800;
  font-size: 0.72rem;
  padding: 2px 8px;
  min-width: 24px;
  text-align: right;
  border-radius: 4px;
}

.daily-summary-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.summary-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.04);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
}

.share-copied-msg {
  text-align: center;
  color: #4ade80;
  font-size: 0.8rem;
  margin-top: 8px;
  font-weight: 600;
}

/* DONATE TIERS */
.donate-tiers {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.donate-tier-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(245, 158, 11, 0.35);
  padding: 12px 14px;
  border-radius: var(--radius-md);
  color: var(--text-main);
  text-decoration: none;
  transition: transform 0.15s, background 0.15s;
}

.donate-tier-btn:hover {
  background: rgba(245, 158, 11, 0.14);
  transform: translateY(-1px);
}

.tier-emoji {
  font-size: 1.5rem;
}

.donate-tier-btn div {
  flex: 1;
  margin-left: 12px;
  display: flex;
  flex-direction: column;
}

.donate-tier-btn small {
  color: var(--text-muted);
  font-size: 0.76rem;
}

.custom-donate-box {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.custom-donate-header {
  display: flex;
  align-items: center;
  gap: 12px;
}

.custom-donate-header div {
  display: flex;
  flex-direction: column;
}

.custom-donate-header small {
  color: var(--text-muted);
  font-size: 0.76rem;
}

.custom-donate-Presets {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.preset-amt-btn {
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  padding: 8px 6px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.15s;
}

.preset-amt-btn:hover {
  border-color: rgba(245, 158, 11, 0.45);
}

.preset-amt-btn.active {
  background: rgba(245, 158, 11, 0.18);
  border-color: #f59e0b;
  color: #fde047;
}

.custom-donate-input-row {
  display: flex;
  align-items: stretch;
  gap: 8px;
}

.currency-input-wrap {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
}

.currency-symbol {
  position: absolute;
  left: 12px;
  color: var(--text-muted);
  font-weight: 700;
  font-size: 0.95rem;
}

#customDonateInput {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-sm);
  padding: 10px 12px 10px 28px;
  color: var(--text-main);
  font-size: 0.95rem;
  font-weight: 700;
  outline: none;
}

#customDonateInput:focus {
  border-color: #f59e0b;
}

.stripe-badge-note {
  font-size: 0.72rem;
  color: var(--text-dim);
  text-align: center;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  margin-top: 4px;
}

.stripe-badge-note strong {
  color: #a5b4fc;
}

/* TOAST */
.toast-container {
  position: fixed;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.toast {
  background: #10b981;
  color: #042f1e;
  font-weight: 800;
  font-size: 0.86rem;
  padding: 10px 18px;
  border-radius: 999px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
  animation: fadeIn 0.2s ease;
}

.hidden {
  display: none !important;
}

@keyframes flipTile {
  0% {
    transform: rotateX(75deg);
    opacity: 0.2;
  }
  100% {
    transform: rotateX(0deg);
    opacity: 1;
  }
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 640px) {
  .hide-xs { display: none; }
  .monetization-row { grid-template-columns: 1fr; }
  .mystery-card { flex-direction: column; align-items: flex-start; }
  .mystery-hints-group { width: 100%; }
  .hint-chip { flex: 1; justify-content: center; }
  .tile-main-val { font-size: 0.74rem; }
  .attr-tile { min-height: 62px; padding: 5px 2px; }
  .scout-slot-val { font-size: 0.68rem; }
}
