/* ==========================================================================
   HOCKEYSITY.GAMES - MODERN FANTASY HOCKEY PLATFORM (FINLAND)
   Design System, Flexbox Architecture, Responsive Components & Animations
   ========================================================================== */

:root {
  /* Color Palette */
  --bg-main: #070d19;
  --bg-surface: #0b1528;
  --bg-card: #0e192f;
  --bg-card-hover: #142442;
  --bg-glass: rgba(255, 255, 255, 0.04);
  --bg-glass-strong: rgba(255, 255, 255, 0.08);

  --ice-cyan: #00f0ff;
  --ice-blue: #38bdf8;
  --ice-light: #e0f2fe;
  --ice-frost: #93c5fd;
  
  --accent-gold: #f59e0b;
  --accent-gold-glow: rgba(245, 158, 11, 0.25);
  --accent-green: #10b981;
  --accent-red: #ef4444;

  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --text-inverse: #070d19;

  --border-subtle: rgba(56, 189, 248, 0.16);
  --border-glow: rgba(0, 240, 255, 0.35);
  --border-glass: rgba(255, 255, 255, 0.08);

  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.25);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.5);
  --shadow-cyan-glow: 0 4px 14px rgba(0, 0, 0, 0.4);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-full: 9999px;

  --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --transition-fast: 0.2s ease;
  --transition-normal: 0.25s ease;
}

/* ==========================================================================
   Base & Reset
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-main);
  color: var(--text-primary);
  line-height: 1.65;
  overflow-x: hidden;
  min-height: 100vh;
  position: relative;
}

body::before {
  display: none;
}

img, svg {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--ice-blue);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--ice-cyan);
}

/* Container */
.container {
  width: 100%;
  max-width: 1220px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
  position: relative;
  z-index: 1;
}

.container-narrow {
  max-width: 860px;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 900;
  background: #070d19;
  border-bottom: 1px solid var(--border-subtle);
  transition: background-color var(--transition-normal), border-color var(--transition-normal);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 16px;
}

/* Brand Logo - Compact, Modern and Sleek */
.brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  flex-shrink: 0;
}

.brand-icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  flex-shrink: 0;
  transition: transform var(--transition-fast);
}

.brand-logo:hover .brand-icon {
  transform: scale(1.05) rotate(-2deg);
}

.brand-title {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: #ffffff;
  line-height: 1;
  text-transform: uppercase;
}

.brand-title span {
  color: var(--ice-cyan);
}

/* Desktop Nav (> 991px) - Fluid & Adaptive */
.desktop-nav {
  display: flex;
  align-items: center;
  flex: 1 1 auto;
  justify-content: center;
  min-width: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: clamp(4px, 0.9vw, 12px);
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-item {
  position: relative;
  flex-shrink: 0;
}

.nav-link {
  display: inline-block;
  font-size: clamp(0.68rem, 0.72vw, 0.76rem);
  font-weight: 600;
  color: var(--text-secondary);
  padding: 6px clamp(5px, 0.7vw, 10px);
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  white-space: nowrap;
  letter-spacing: -0.01em;
}

.nav-link:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.06);
}

.nav-link.active {
  color: var(--ice-cyan);
  background: rgba(0, 240, 255, 0.08);
  box-shadow: inset 0 -2px 0 var(--ice-cyan);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.header-cta {
  font-size: 0.82rem;
  padding: 7px 14px;
  white-space: nowrap;
}

/* Intermediate Desktop Header (992px - 1280px)
   Prevents nav link crowding with 8 Finnish items */
@media (max-width: 1280px) {
  .header-cta {
    display: none !important;
  }
}

@media (min-width: 992px) and (max-width: 1240px) {
  .header-inner {
    height: 64px;
    gap: 10px;
  }

  .brand-icon {
    width: 28px;
    height: 28px;
  }

  .brand-icon img {
    width: 20px;
    height: 20px;
  }

  .brand-title {
    font-size: 1.05rem;
  }

  .desktop-nav {
    justify-content: flex-end;
  }

  .nav-links {
    gap: clamp(2px, 0.45vw, 6px);
  }

  .nav-link {
    font-size: clamp(0.66rem, 0.64vw, 0.72rem);
    padding: 5px clamp(3px, 0.4vw, 7px);
    letter-spacing: -0.025em;
  }
}

@media (min-width: 992px) and (max-width: 1060px) {
  .container {
    padding-left: 14px;
    padding-right: 14px;
  }

  .header-inner {
    gap: 6px;
  }

  .nav-links {
    gap: 2px;
  }

  .nav-link {
    font-size: 0.7rem;
    padding: 4px 4px;
    letter-spacing: -0.03em;
  }
}

/* Burger Toggle Button (<= 991px) */
.burger-btn {
  display: none;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  width: 40px;
  height: 40px;
  cursor: pointer;
  padding: 8px;
  flex-direction: column;
  justify-content: space-around;
  align-items: center;
  transition: all var(--transition-fast);
  flex-shrink: 0;
}

/* Collapse nav into burger before items get squeezed together */
@media (max-width: 1180px) {
  .desktop-nav {
    display: none;
  }

  .burger-btn {
    display: flex;
  }

  .header-inner {
    height: 60px;
  }
}

.burger-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--ice-cyan);
}

.burger-line {
  width: 20px;
  height: 2px;
  background-color: var(--ice-cyan);
  border-radius: 2px;
  transition: all var(--transition-fast);
}

.burger-btn.active .burger-line:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.burger-btn.active .burger-line:nth-child(2) {
  opacity: 0;
}

.burger-btn.active .burger-line:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* Mobile Nav Drawer & Overlay */
.mobile-nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(3, 7, 18, 0.85);
  z-index: 998;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-normal), visibility var(--transition-normal);
}

.mobile-nav-overlay.open {
  opacity: 1;
  visibility: visible;
}

.mobile-nav-drawer {
  position: fixed;
  top: 0;
  right: -340px;
  width: 320px;
  max-width: 88vw;
  height: 100vh;
  background: #081020;
  border-left: 1px solid var(--border-glow);
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.8);
  z-index: 999;
  padding: 20px 20px 30px 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: right 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  overflow-y: auto;
}

.mobile-nav-drawer.open {
  right: 0;
}

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

.drawer-close-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-secondary);
  transition: all var(--transition-fast);
}

.drawer-close-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border-color: var(--ice-cyan);
}

.mobile-nav-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
  padding: 0;
}

.mobile-nav-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}

.mobile-nav-link svg {
  color: var(--ice-blue);
  transition: transform var(--transition-fast);
}

.mobile-nav-link:hover, .mobile-nav-link.active {
  background: rgba(0, 240, 255, 0.1);
  border-color: var(--ice-cyan);
  color: var(--ice-cyan);
}

.mobile-nav-link:hover svg {
  transform: translateX(3px);
  color: var(--ice-cyan);
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 22px;
  font-size: 0.92rem;
  font-weight: 700;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-fast);
  border: none;
  text-decoration: none;
  line-height: 1.2;
}

.btn-primary {
  background: linear-gradient(135deg, #00f0ff 0%, #0284c7 100%);
  color: #070d19;
  box-shadow: 0 4px 16px rgba(0, 240, 255, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(0, 240, 255, 0.5);
  color: #000000;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--ice-blue);
  color: var(--ice-cyan);
}

.btn-sm {
  padding: 7px 14px;
  font-size: 0.82rem;
  border-radius: var(--radius-sm);
}

.btn-lg {
  padding: 14px 28px;
  font-size: 1.05rem;
}

/* ==========================================================================
   Hero Section (Pure Flexbox)
   ========================================================================== */
.hero-section {
  position: relative;
  padding: 50px 0 70px 0;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(7, 13, 25, 0.92) 0%, rgba(7, 13, 25, 0.7) 50%, rgba(7, 13, 25, 0.45) 100%),
    linear-gradient(180deg, rgba(7, 13, 25, 0.3) 0%, rgba(7, 13, 25, 0.95) 100%),
    url("../images/hero-bg.jpg") center / cover no-repeat;
}

.hero-flex-container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.hero-content-col {
  flex: 1 1 520px;
  min-width: 290px;
}

.hero-visual-col {
  flex: 1 1 420px;
  min-width: 290px;
  max-width: 520px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--ice-cyan);
  margin-bottom: 20px;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--ice-cyan);
}

.hero-title {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 18px;
  color: #ffffff;
  letter-spacing: -0.02em;
}

.gradient-text {
  color: var(--ice-cyan);
}

.hero-lead {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 28px;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 36px;
}

/* Hero Metrics Flex */
.hero-metrics-flex {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
  padding-top: 20px;
  border-top: 1px solid var(--border-subtle);
}

.metric-item {
  flex: 1 1 120px;
  display: flex;
  flex-direction: column;
}

.metric-value {
  font-size: 1.75rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.2;
}

.metric-value span {
  color: var(--ice-cyan);
}

.metric-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

/* Hero Preview Card */
.hero-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 22px;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

.hero-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-subtle);
}

.hero-card-title {
  font-size: 1.05rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #ffffff;
}

.live-tag {
  background: rgba(16, 185, 129, 0.15);
  color: var(--accent-green);
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 3px 8px;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
}

.rink-preview {
  background: #0b1528;
  border: 1px dashed var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 14px;
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.rink-row {
  display: flex;
  justify-content: space-around;
  gap: 8px;
}

.rink-goalie-row {
  max-width: 140px;
  margin: 0 auto;
}

.mini-player-slot {
  background: rgba(15, 27, 51, 0.85);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 6px 10px;
  text-align: center;
  flex: 1 1 30%;
  min-width: 0;
}

.mini-pos {
  font-size: 0.65rem;
  font-weight: 800;
  color: var(--ice-cyan);
  text-transform: uppercase;
}

.mini-name {
  font-size: 0.8rem;
  font-weight: 700;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mini-pts {
  font-size: 0.72rem;
  color: var(--accent-gold);
  font-weight: 600;
}

.hero-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(0, 0, 0, 0.25);
  padding: 12px 14px;
  border-radius: var(--radius-sm);
}

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

.hero-total-val {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--ice-cyan);
}

/* ==========================================================================
   Page Headers (Subpages)
   ========================================================================== */
.page-header {
  padding: 44px 0 36px 0;
  text-align: center;
  position: relative;
  background: #091325;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 40px;
}

.page-header-badge {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--ice-cyan);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  padding: 4px 12px;
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
}

.page-header-title {
  font-size: 2.6rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.page-header-desc {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 660px;
  margin: 0 auto;
}

.breadcrumb-nav {
  margin-top: 16px;
  display: flex;
  justify-content: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.breadcrumb-nav a {
  color: var(--ice-blue);
}

/* ==========================================================================
   Section Layouts & Flex Cards
   ========================================================================== */
.section {
  padding: 60px 0;
  position: relative;
}

.section-alt {
  background: rgba(11, 21, 40, 0.45);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.sub-block-spacing {
  margin-top: 40px;
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 44px auto;
}

.section-tag {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--ice-cyan);
  margin-bottom: 8px;
  display: inline-block;
}

.section-title {
  font-size: 2.2rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.2;
  margin-bottom: 14px;
  letter-spacing: -0.02em;
}

.section-desc {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Cards Flex Containers (replaces grid) */
.cards-flex {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

.cards-flex-3 > .glass-card {
  flex: 1 1 calc(33.333% - 18px);
  min-width: 270px;
}

.cards-flex-2 > .glass-card {
  flex: 1 1 calc(50% - 14px);
  min-width: 280px;
}

.cards-flex-4 > .glass-card {
  flex: 1 1 calc(25% - 18px);
  min-width: 230px;
}

/* Glass Card */
.glass-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  transition: background-color var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast);
  display: flex;
  flex-direction: column;
}

.glass-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(56, 189, 248, 0.35);
  box-shadow: var(--shadow-md);
}

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  color: var(--ice-cyan);
  flex-shrink: 0;
}

.card-title {
  font-size: 1.18rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 10px;
}

.card-text {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 16px;
}

.feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.feature-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.86rem;
  color: var(--text-primary);
}

.feature-list li svg {
  flex-shrink: 0;
  color: var(--ice-cyan);
}

/* ==========================================================================
   Media Feature Showcase Cards (Pure Flexbox)
   ========================================================================== */
.media-showcase-flex {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

.media-card {
  flex: 1 1 calc(50% - 12px);
  min-width: 290px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast);
  display: flex;
  flex-direction: column;
}

.media-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-glow);
  box-shadow: var(--shadow-cyan-glow);
}

.media-card-img-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #060d1a;
}

.media-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
  display: block;
}

.media-card:hover .media-card-img {
  transform: scale(1.04);
}

.media-card-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--ice-cyan);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
}

.media-card-content {
  padding: 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.media-card-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 8px;
}

.media-card-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.55;
  margin-bottom: 14px;
  flex: 1;
}

.media-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.82rem;
  color: var(--ice-blue);
  font-weight: 600;
}

/* ==========================================================================
   Team Builder Component (Pure Flexbox)
   ========================================================================== */
.team-builder-wrapper {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.builder-header {
  background: rgba(15, 27, 51, 0.95);
  border-bottom: 1px solid var(--border-subtle);
  padding: 18px 22px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.builder-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.stat-box {
  display: flex;
  flex-direction: column;
}

.stat-title {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

.stat-num {
  font-size: 1.25rem;
  font-weight: 800;
  color: #ffffff;
}

.stat-num.cyan {
  color: var(--ice-cyan);
}

.stat-num.gold {
  color: var(--accent-gold);
}

/* Builder Flex Layout (replaces grid) */
.builder-flex {
  display: flex;
  flex-wrap: wrap;
  min-height: 560px;
}

.roster-pitch-flex {
  flex: 1 1 56%;
  min-width: 320px;
  background: #091325;
  padding: 22px;
  border-right: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
}

.roster-pitch-flex::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 5%;
  right: 5%;
  height: 2px;
  background: rgba(239, 68, 68, 0.35);
  transform: translateY(-50%);
  pointer-events: none;
}

.roster-pitch-flex::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100px;
  height: 100px;
  border: 2px solid rgba(56, 189, 248, 0.3);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.roster-tier-title {
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ice-blue);
  margin-bottom: 8px;
  text-align: center;
}

.roster-slots-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-bottom: 16px;
  position: relative;
  z-index: 2;
}

.goalie-slots-row {
  max-width: 200px;
  margin: 0 auto;
}

.slot-card {
  flex: 1 1 140px;
  max-width: 170px;
  min-height: 110px;
  background: rgba(15, 27, 51, 0.85);
  border: 1.5px dashed var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 10px 8px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition-fast);
  position: relative;
}

.slot-card:hover {
  border-color: var(--ice-cyan);
  background: rgba(20, 36, 68, 0.9);
}

.slot-card.filled {
  border-style: solid;
  border-color: var(--border-glow);
  background: linear-gradient(145deg, rgba(22, 38, 70, 0.95), rgba(11, 21, 40, 0.95));
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.slot-badge-pos {
  font-size: 0.65rem;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(56, 189, 248, 0.2);
  color: var(--ice-cyan);
  margin-bottom: 4px;
}

.slot-empty-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
}

.slot-player-name {
  font-size: 0.82rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.2;
  margin-bottom: 2px;
}

.slot-player-team {
  font-size: 0.7rem;
  color: var(--text-secondary);
}

.slot-player-price {
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--accent-gold);
  margin-top: 4px;
}

.slot-remove-btn {
  position: absolute;
  top: -6px;
  right: -6px;
  width: 22px;
  height: 22px;
  background: var(--accent-red);
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
  opacity: 0.95;
  transition: transform var(--transition-fast);
}

.slot-remove-btn:hover {
  transform: scale(1.15);
}

.slot-remove-btn svg {
  width: 12px;
  height: 12px;
}

/* Player Selection Pool Flex */
.player-pool-flex {
  flex: 1 1 38%;
  min-width: 290px;
  padding: 22px;
  background: var(--bg-surface);
  display: flex;
  flex-direction: column;
}

.pool-controls {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 14px;
}

.pool-search-input {
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 9px 12px;
  color: #ffffff;
  font-size: 0.88rem;
  outline: none;
  transition: border-color var(--transition-fast);
}

.pool-search-input:focus {
  border-color: var(--ice-cyan);
}

.pos-filter-tabs {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.pos-tab {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  padding: 5px 10px;
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--transition-fast);
}

.pos-tab:hover, .pos-tab.active {
  background: var(--ice-blue);
  color: #070d19;
  border-color: var(--ice-blue);
}

.player-list-scroll {
  flex: 1;
  max-height: 400px;
  overflow-y: auto;
  padding-right: 4px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.player-list-scroll::-webkit-scrollbar {
  width: 5px;
}
.player-list-scroll::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.2);
}
.player-list-scroll::-webkit-scrollbar-thumb {
  background: var(--border-subtle);
  border-radius: 4px;
}

.pool-player-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 11px;
  background: rgba(15, 27, 51, 0.6);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.pool-player-row:hover {
  background: rgba(22, 38, 70, 0.8);
  border-color: var(--ice-blue);
}

.pool-player-info {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.pool-pos-tag {
  width: 26px;
  height: 26px;
  border-radius: 5px;
  background: rgba(56, 189, 248, 0.15);
  color: var(--ice-cyan);
  font-size: 0.7rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.pool-player-details {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.pool-name {
  font-size: 0.85rem;
  font-weight: 700;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pool-meta {
  font-size: 0.7rem;
  color: var(--text-muted);
}

.pool-player-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.pool-cost {
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--accent-gold);
}

.add-player-btn {
  background: rgba(0, 240, 255, 0.15);
  border: 1px solid var(--border-glow);
  color: var(--ice-cyan);
  width: 28px;
  height: 28px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.add-player-btn svg {
  width: 14px;
  height: 14px;
}

.add-player-btn:hover:not(:disabled) {
  background: var(--ice-cyan);
  color: #070d19;
}

.add-player-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
  color: var(--accent-green);
}

.builder-bottom-bar {
  background: rgba(11, 21, 40, 0.95);
  border-top: 1px solid var(--border-subtle);
  padding: 14px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.validation-notice {
  font-size: 0.82rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.validation-notice svg {
  flex-shrink: 0;
}

/* ==========================================================================
   Calculator Component (Pure Flexbox)
   ========================================================================== */
.calc-wrapper {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-lg);
}

.calc-flex-container {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
}

.calc-controls-col {
  flex: 1 1 54%;
  min-width: 290px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.calc-result-col {
  flex: 1 1 38%;
  min-width: 290px;
  align-self: flex-start;
  position: sticky;
  top: 86px;
}

.calc-category-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--ice-cyan);
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  gap: 8px;
}

.calc-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(15, 27, 51, 0.5);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 11px 16px;
  gap: 12px;
}

.calc-row-label {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.calc-stat-name {
  font-size: 0.92rem;
  font-weight: 600;
  color: #ffffff;
}

.calc-stat-mult {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.calc-stepper {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.stepper-btn {
  width: 30px;
  height: 30px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-subtle);
  color: #ffffff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.stepper-btn svg {
  width: 14px;
  height: 14px;
}

.stepper-btn:hover {
  background: var(--ice-blue);
  color: #070d19;
}

.stepper-val {
  min-width: 28px;
  text-align: center;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--ice-cyan);
}

.calc-result-box {
  background: linear-gradient(160deg, rgba(13, 24, 45, 0.98), rgba(6, 12, 23, 0.98));
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-lg);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), var(--shadow-cyan-glow);
  height: auto;
}

/* Top Score Card */
.calc-score-card {
  text-align: center;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(0, 240, 255, 0.15);
  border-radius: var(--radius-md);
  padding: 16px 14px 14px 14px;
}

.calc-score-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ice-cyan);
  background: rgba(0, 240, 255, 0.08);
  border: 1px solid rgba(0, 240, 255, 0.2);
  padding: 3px 10px;
  border-radius: var(--radius-full);
  margin-bottom: 8px;
}

.pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--ice-cyan);
}

.calc-total-points {
  font-size: 3rem;
  font-weight: 900;
  line-height: 1;
  color: #ffffff;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.calc-total-points span {
  font-size: 1.1rem;
  color: var(--ice-cyan);
  font-weight: 700;
  margin-left: 2px;
}

.calc-performance-tier {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  background: rgba(0, 240, 255, 0.1);
  border: 1px solid var(--border-glow);
  color: var(--ice-cyan);
  transition: all var(--transition-fast);
}

/* Settings & Simulator Panel */
.calc-settings-panel {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.calc-captain-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(245, 158, 11, 0.06);
  border: 1px solid rgba(245, 158, 11, 0.25);
  border-radius: var(--radius-md);
  padding: 9px 12px;
  cursor: pointer;
  transition: background-color var(--transition-fast), border-color var(--transition-fast);
}

.calc-captain-toggle:hover {
  background: rgba(245, 158, 11, 0.12);
  border-color: var(--accent-gold);
}

.calc-captain-toggle.active {
  background: rgba(245, 158, 11, 0.18);
  border-color: var(--accent-gold);
  box-shadow: var(--shadow-sm);
}

.captain-toggle-label {
  display: flex;
  align-items: center;
  gap: 10px;
}

.captain-c-icon {
  width: 24px;
  height: 24px;
  border-radius: 5px;
  background: rgba(245, 158, 11, 0.2);
  color: var(--accent-gold);
  font-weight: 900;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(245, 158, 11, 0.4);
  flex-shrink: 0;
}

.captain-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.2;
}

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

.captain-switch-badge {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-secondary);
  font-size: 0.7rem;
  font-weight: 800;
  padding: 3px 9px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  transition: all var(--transition-fast);
}

.calc-captain-toggle.active .captain-switch-badge {
  background: var(--accent-gold);
  color: #070d19;
}

.calc-sim-trigger-btn {
  width: 100%;
  justify-content: center;
  font-size: 0.84rem;
  padding: 8px 14px;
}

/* Simulation Live Log */
.calc-sim-box {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 10px 12px;
}

.calc-sim-header {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ice-cyan);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sim-live-tag {
  background: rgba(16, 185, 129, 0.15);
  color: var(--accent-green);
  border: 1px solid rgba(16, 185, 129, 0.3);
  font-size: 0.65rem;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
}

.calc-sim-log {
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-height: 120px;
  overflow-y: auto;
}

.calc-sim-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.76rem;
  padding: 3px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  color: var(--text-secondary);
}

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

.calc-sim-time {
  font-weight: 700;
  color: var(--ice-cyan);
  margin-right: 5px;
}

.calc-sim-pts {
  font-weight: 700;
  color: var(--accent-gold);
}

/* Breakdown Card */
.calc-breakdown-card {
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 12px;
}

.calc-breakdown-title {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.calc-points-breakdown {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 0;
  margin: 0;
}

.calc-points-breakdown li {
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  color: var(--text-secondary);
  padding: 3px 0;
}

.calc-points-breakdown li span:last-child {
  font-weight: 700;
  color: #ffffff;
}

.calc-points-breakdown li.breakdown-total-row {
  border-top: 1px solid var(--border-subtle);
  padding-top: 6px;
  margin-top: 2px;
}

.calc-actions-row {
  display: flex;
  gap: 8px;
}

/* ==========================================================================
   App Toast Notification (Fixed Floating Banner)
   ========================================================================== */
.app-toast-container {
  position: fixed;
  top: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
  width: calc(100% - 32px);
  max-width: 460px;
}

.app-toast {
  pointer-events: auto;
  background: #0b1528;
  border: 1px solid var(--border-subtle);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.7);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: #ffffff;
  font-size: 0.88rem;
  font-weight: 600;
  animation: toastSlideDown 0.3s ease forwards;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.app-toast.toast-success {
  border-color: rgba(16, 185, 129, 0.6);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.7);
}

.app-toast.toast-warning {
  border-color: rgba(245, 158, 11, 0.6);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.7);
}

.app-toast.toast-error {
  border-color: rgba(239, 68, 68, 0.6);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.7);
}

.app-toast-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
}

.app-toast.toast-success .app-toast-icon { color: var(--accent-green); background: rgba(16, 185, 129, 0.15); }
.app-toast.toast-warning .app-toast-icon { color: var(--accent-gold); background: rgba(245, 158, 11, 0.15); }
.app-toast.toast-error .app-toast-icon { color: var(--accent-red); background: rgba(239, 68, 68, 0.15); }
.app-toast.toast-info .app-toast-icon { color: var(--ice-cyan); background: rgba(0, 240, 255, 0.15); }

.app-toast-text {
  flex: 1;
  line-height: 1.4;
}

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

/* ==========================================================================
   Saved Team Modal (Interactive Full Details)
   ========================================================================== */
.team-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(3, 7, 18, 0.85);
  z-index: 10001;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.team-modal-backdrop.open {
  opacity: 1;
  visibility: visible;
}

.team-modal-content {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.85);
  border-radius: var(--radius-md);
  max-width: 520px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 26px;
  position: relative;
  transform: translateY(20px);
  transition: transform 0.25s ease;
}

.team-modal-backdrop.open .team-modal-content {
  transform: translateY(0);
}

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

.team-modal-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 8px;
}

.team-modal-close {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-secondary);
  transition: all var(--transition-fast);
}

.team-modal-close:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  border-color: var(--ice-cyan);
}

.team-summary-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 16px 0;
}

.team-summary-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background: rgba(15, 27, 51, 0.5);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
}

.team-summary-pos {
  width: 22px;
  height: 22px;
  border-radius: 4px;
  background: rgba(56, 189, 248, 0.2);
  color: var(--ice-cyan);
  font-weight: 800;
  font-size: 0.7rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 8px;
}

/* ==========================================================================
   Calculator Upgrades (Presets, Captain Toggle, Simulator)
   ========================================================================== */
.calc-presets-bar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 18px;
  align-items: center;
}

.calc-preset-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 700;
  text-transform: uppercase;
  margin-right: 4px;
}

.calc-preset-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 6px 12px;
  cursor: pointer;
  transition: all var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.calc-preset-btn:hover, .calc-preset-btn.active {
  background: rgba(0, 240, 255, 0.14);
  border-color: var(--ice-cyan);
  color: #ffffff;
  box-shadow: var(--shadow-sm);
}


/* ==========================================================================
   Content & Legal Sections (Privacy, Cookies, Mission, Business Model)
   ========================================================================== */
.content-box {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 38px 32px;
  box-shadow: var(--shadow-md);
  margin-bottom: 36px;
}

.legal-meta {
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  margin-bottom: 28px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.86rem;
  color: var(--ice-light);
}

.legal-meta strong {
  color: var(--ice-cyan);
}

.legal-section {
  margin-bottom: 30px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.legal-section:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.legal-heading {
  font-size: 1.25rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.legal-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 7px;
  background: rgba(0, 240, 255, 0.12);
  border: 1px solid var(--border-glow);
  color: var(--ice-cyan);
  font-size: 0.85rem;
  font-weight: 800;
  flex-shrink: 0;
}

.legal-text {
  font-size: 0.94rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 12px;
}

.legal-sublist {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 12px 0 12px 14px;
}

.legal-sublist li {
  position: relative;
  padding-left: 18px;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.legal-sublist li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--ice-cyan);
  font-size: 1.1rem;
  line-height: 1;
}

/* Contact Flex (replaces grid) */
.contact-flex-container {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
}

.contact-info-col {
  flex: 1 1 44%;
  min-width: 290px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.contact-form-col {
  flex: 1 1 48%;
  min-width: 290px;
}

.contact-card {
  background: rgba(15, 27, 51, 0.7);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 18px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.contact-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: rgba(0, 240, 255, 0.1);
  border: 1px solid var(--border-glow);
  color: var(--ice-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-card h4 {
  font-size: 1rem;
  color: #ffffff;
  margin-bottom: 4px;
}

.contact-card p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin-bottom: 3px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}

.form-label {
  font-size: 0.86rem;
  font-weight: 600;
  color: #ffffff;
}

.form-control {
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 11px 14px;
  color: #ffffff;
  font-size: 0.92rem;
  font-family: inherit;
  transition: all var(--transition-fast);
}

.form-control:focus {
  outline: none;
  border-color: var(--ice-cyan);
  box-shadow: 0 0 0 2px rgba(0, 240, 255, 0.25);
}

textarea.form-control {
  resize: vertical;
  min-height: 110px;
}

/* Table Responsive Wrapper */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 16px 0;
}

/* ==========================================================================
   Disclaimer Banner
   ========================================================================== */
.disclaimer-banner {
  background: rgba(15, 27, 51, 0.85);
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  margin: 28px 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}

.disclaimer-badge {
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid var(--accent-gold);
  color: var(--accent-gold);
  padding: 5px 10px;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  flex-shrink: 0;
}

.disclaimer-text {
  flex: 1 1 auto;
  font-size: 0.86rem;
  color: var(--text-secondary);
  line-height: 1.5;
  min-height: auto;
}

/* ==========================================================================
   Footer (Pure Flexbox - Standardized Across All Pages)
   ========================================================================== */
.site-footer {
  background: #040812;
  border-top: 1px solid var(--border-subtle);
  padding: 60px 0 28px 0;
  position: relative;
  z-index: 10;
}

.footer-flex-container {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: space-between;
  margin-bottom: 40px;
}

.footer-col-brand {
  flex: 1 1 320px;
  max-width: 380px;
}

.footer-col-nav {
  flex: 1 1 180px;
  min-width: 160px;
}

.footer-brand-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 14px 0 16px 0;
}

.footer-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.footer-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--ice-blue);
}

.footer-badge svg {
  color: var(--ice-cyan);
}

.footer-col-title {
  font-size: 0.98rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  position: relative;
  padding-bottom: 6px;
}

.footer-col-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 24px;
  height: 2px;
  background: var(--ice-cyan);
}

.footer-links-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-link {
  font-size: 0.88rem;
  color: var(--text-secondary);
  transition: all var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.footer-link:hover {
  color: var(--ice-cyan);
  transform: translateX(3px);
}

.footer-disclaimer-box {
  background: rgba(11, 21, 40, 0.6);
  border: 1px solid rgba(245, 158, 11, 0.25);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  margin-bottom: 32px;
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

.footer-disclaimer-box strong {
  color: var(--accent-gold);
}

.footer-bottom {
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.footer-bottom-links {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.footer-bottom-links a {
  color: var(--text-secondary);
}

.footer-bottom-links a:hover {
  color: var(--ice-cyan);
}

/* ==========================================================================
   Cookie Banner & Modal
   ========================================================================== */
.cookie-banner {
  position: fixed;
  bottom: 20px;
  left: 20px;
  right: 20px;
  max-width: 680px;
  margin: 0 auto;
  background: #091224;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 20px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.85);
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.cookie-content h4 {
  font-size: 1.05rem;
  color: #ffffff;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.cookie-content p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.cookie-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(3, 7, 18, 0.85);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

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

.modal-card {
  background: #0b1528;
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-lg);
  max-width: 580px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 26px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8);
  position: relative;
}

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

.modal-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: #ffffff;
}

.modal-close-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
}

.modal-close-btn:hover {
  color: #ffffff;
}

.cookie-option-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  gap: 14px;
}

.cookie-opt-info h5 {
  font-size: 0.92rem;
  color: #ffffff;
  margin-bottom: 4px;
}

.cookie-opt-info p {
  font-size: 0.78rem;
  color: var(--text-secondary);
}

.switch {
  position: relative;
  display: inline-block;
  width: 42px;
  height: 22px;
  flex-shrink: 0;
}

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

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(255, 255, 255, 0.15);
  transition: .3s;
  border-radius: 22px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .3s;
  border-radius: 50%;
}

input:checked + .slider {
  background-color: var(--ice-cyan);
}

input:checked + .slider:before {
  transform: translateX(20px);
}

/* ==========================================================================
   Accessibility & Special Capabilities (A11y Toolbar & Skip Link)
   ========================================================================== */
.skip-to-content {
  position: absolute;
  top: -120px;
  left: 20px;
  background: var(--ice-cyan);
  color: #070d19;
  font-weight: 800;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  z-index: 10000;
  transition: top 0.2s ease;
  text-decoration: none;
  box-shadow: 0 4px 15px rgba(0, 240, 255, 0.4);
}

.skip-to-content:focus {
  top: 15px;
}

.a11y-toggle-btn {
  position: fixed;
  bottom: 24px;
  left: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(11, 21, 40, 0.95);
  border: 1.5px solid var(--border-glow);
  color: var(--ice-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 998;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6), var(--shadow-cyan-glow);
  transition: all var(--transition-fast);
}

.a11y-toggle-btn:hover,
.a11y-toggle-btn:focus-visible {
  transform: scale(1.1);
  background: var(--ice-cyan);
  color: #070d19;
  outline: 2px solid #ffffff;
}

.a11y-panel {
  position: fixed;
  bottom: 78px;
  left: 24px;
  width: 290px;
  background: #091326;
  border: 1.5px solid var(--border-glow);
  border-radius: var(--radius-lg);
  padding: 16px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8), var(--shadow-cyan-glow);
  z-index: 998;
  display: none;
  flex-direction: column;
  gap: 12px;
}

.a11y-panel.open {
  display: flex;
}

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

.a11y-panel-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 8px;
}

.a11y-btn-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.a11y-tool-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: #ffffff;
  padding: 8px 12px;
  font-size: 0.82rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.a11y-tool-btn:hover,
.a11y-tool-btn.active {
  background: rgba(0, 240, 255, 0.15);
  border-color: var(--border-glow);
  color: var(--ice-cyan);
}

.a11y-status {
  font-size: 0.72rem;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
}

.a11y-tool-btn.active .a11y-status {
  background: var(--ice-cyan);
  color: #070d19;
  font-weight: 700;
}

/* A11y Modes */
body.a11y-large-text {
  font-size: 115% !important;
}

body.a11y-high-contrast {
  --bg-primary: #000000 !important;
  --bg-surface: #0a0a0a !important;
  --text-primary: #ffffff !important;
  --text-secondary: #f0f0f0 !important;
  --border-subtle: #ffffff !important;
  --border-glow: #00ffff !important;
}

body.a11y-dyslexic {
  font-family: Arial, Helvetica, sans-serif !important;
  letter-spacing: 0.05em !important;
  word-spacing: 0.08em !important;
}

body.a11y-dyslexic a {
  text-decoration: underline !important;
}

body.a11y-reduced-motion * {
  animation: none !important;
  transition: none !important;
}

/* ==========================================================================
   RESPONSIVE DESIGN & BURGER MENU (<= 991px)
   Smooth, dense adaptation down to 300px without empty spaces
   ========================================================================== */
@media (max-width: 991px) {
  .desktop-nav {
    display: none;
  }

  .header-cta {
    display: none !important;
  }

  .burger-btn {
    display: flex;
  }

  .header-inner {
    height: 60px;
  }

  /* Compact sections & headers on tablet */
  .section {
    padding: 36px 0;
  }

  .sub-block-spacing {
    margin-top: 22px;
  }

  .section-header {
    margin: 0 auto 22px auto;
  }

  .page-header {
    padding: 24px 0 16px 0;
    margin-bottom: 16px;
  }

  .page-header-title {
    font-size: 2rem;
    margin-bottom: 8px;
  }

  .page-header-desc {
    font-size: 0.94rem;
  }

  .breadcrumb-nav {
    margin-top: 10px;
  }

  .hero-section {
    padding: 28px 0 32px 0;
  }

  .hero-flex-container {
    flex-direction: column;
    gap: 20px;
  }

  .hero-content-col, .hero-visual-col {
    flex: 1 1 100%;
    max-width: 100%;
  }

  .hero-title {
    font-size: 2.1rem;
  }

  /* Keep hero metrics as a sleek horizontal 3-column strip (no empty space) */
  .hero-metrics-flex {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    margin-top: 20px;
    padding: 12px 16px;
    width: 100%;
  }

  .metric-item {
    flex: 1 1 0;
    text-align: center;
  }

  .metric-value {
    font-size: 1.55rem;
  }

  .metric-label {
    font-size: 0.74rem;
  }

  /* Card Grids: 2-column on tablet with orphan card stretched to 100% (ZERO empty gap!) */
  .cards-flex {
    gap: 14px;
  }

  .cards-flex-3 > .glass-card {
    flex: 1 1 calc(50% - 7px);
    min-width: 0;
  }

  .cards-flex-3 > .glass-card:last-child:nth-child(odd) {
    flex: 1 1 100%;
  }

  .cards-flex-4 > .glass-card {
    flex: 1 1 calc(50% - 7px);
    min-width: 0;
  }

  .cards-flex-2 > .glass-card {
    flex: 1 1 100%;
    min-width: 0;
  }

  .media-card {
    flex: 1 1 100%;
    min-width: 0;
  }

  .glass-card {
    padding: 18px 16px;
  }

  .hero-card {
    padding: 18px 16px;
  }

  /* Team builder: compact vertical space, no stretched pitch */
  .builder-flex {
    min-height: auto;
  }

  .roster-pitch-flex {
    border-right: none;
    border-bottom: 1px solid var(--border-subtle);
    flex: 1 1 100%;
    min-width: 0;
    padding: 14px 12px;
    justify-content: flex-start;
    gap: 10px;
  }

  .roster-tier-title {
    margin-bottom: 6px;
    font-size: 0.74rem;
  }

  /* Always keep forward slots 3 across, defense 2 across (hockey lineup, no empty slots) */
  .roster-slots-row {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    justify-content: space-between;
    margin-bottom: 8px;
    width: 100%;
  }

  .slot-card {
    flex: 1 1 0;
    min-width: 0;
    max-width: none;
    min-height: 80px;
    padding: 8px 6px;
  }

  .roster-slots-row.goalie-row,
  .roster-slots-row.goalie-slots-row,
  .goalie-slots-row,
  .roster-slots-row[style*="max-width"] {
    max-width: 200px !important;
    margin: 0 auto !important;
    justify-content: center;
  }

  .player-pool-flex {
    flex: 1 1 100%;
    min-width: 0;
    padding: 14px 12px;
  }

  .player-list-scroll {
    max-height: 300px;
    min-height: auto;
    gap: 6px;
  }

  /* Calculator: stack cleanly with compact preset pills */
  .calc-wrapper {
    padding: 18px 14px;
  }

  .calc-flex-container {
    gap: 18px;
  }

  .calc-controls-col, .calc-result-col {
    flex: 1 1 100%;
    min-width: 0;
  }

  .calc-result-col {
    position: static;
  }

  .calc-presets-bar {
    gap: 6px;
    margin-bottom: 12px;
  }

  .calc-preset-label {
    width: 100%;
    margin-bottom: 4px;
  }

  .calc-preset-btn {
    flex: 1 1 calc(50% - 4px);
    justify-content: center;
  }

  /* Content & Legal spacing */
  .content-box {
    padding: 22px 16px;
    margin-bottom: 18px;
  }

  .legal-section {
    margin-bottom: 16px;
    padding-bottom: 12px;
  }

  .legal-meta {
    padding: 10px 14px;
    margin-bottom: 16px;
    gap: 10px;
  }

  .contact-info-col, .contact-form-col {
    flex: 1 1 100%;
    min-width: 0;
  }

  .disclaimer-banner {
    margin: 20px 0;
    padding: 14px 16px;
    gap: 12px;
  }

  .disclaimer-text {
    flex: 1 1 auto;
    font-size: 0.84rem;
  }

  .footer-top {
    padding: 32px 0 20px 0;
  }

  .footer-col-brand {
    flex: 1 1 100%;
    max-width: 100%;
  }

  .footer-col-nav {
    flex: 1 1 calc(33.333% - 12px);
    min-width: 0;
  }
}

@media (max-width: 768px) {
  .section {
    padding: 26px 0;
  }

  .section-header {
    margin: 0 auto 16px auto;
  }

  .section-title {
    font-size: 1.5rem;
  }

  .section-subtitle {
    font-size: 0.9rem;
    margin-bottom: 6px;
  }

  .page-header {
    padding: 18px 0 12px 0;
    margin-bottom: 12px;
  }

  .page-header-title {
    font-size: 1.65rem;
  }

  .page-header-subtitle,
  .page-header-desc {
    font-size: 0.9rem;
  }

  .breadcrumb-nav {
    margin-top: 8px;
  }

  .hero-section {
    padding: 20px 0 24px 0;
  }

  .hero-flex-container {
    gap: 14px;
  }

  .hero-title {
    font-size: 1.75rem;
  }

  .hero-lead {
    font-size: 0.92rem;
  }

  .hero-metrics-flex {
    gap: 6px;
    padding: 10px 12px;
    margin-top: 14px;
  }

  .metric-value {
    font-size: 1.35rem;
  }

  .metric-label {
    font-size: 0.68rem;
  }

  /* Full-width responsive cards on mobile: zero right-side whitespace */
  .cards-flex {
    gap: 10px;
  }

  .cards-flex-3 > .glass-card,
  .cards-flex-2 > .glass-card,
  .cards-flex-4 > .glass-card,
  .media-card {
    flex: 1 1 100%;
    min-width: 0;
    max-width: 100%;
  }

  .glass-card {
    padding: 16px 14px;
  }

  .media-card-content {
    padding: 16px 14px;
  }

  .media-showcase-flex {
    gap: 12px;
  }

  .content-box {
    padding: 16px 14px;
    margin-bottom: 14px;
  }

  /* Compact Roster Slots: 3 across in Row 1, 2 across in Row 2, 1 centered in Row 3 */
  .roster-pitch-flex {
    padding: 12px 8px;
    gap: 8px;
  }

  .roster-slots-row {
    display: flex;
    flex-wrap: nowrap;
    gap: 6px;
    justify-content: space-between;
    margin-bottom: 6px;
    width: 100%;
  }

  .slot-card {
    flex: 1 1 0;
    min-width: 0;
    max-width: none;
    min-height: 72px;
    padding: 6px 4px;
  }

  .slot-badge-pos {
    font-size: 0.6rem;
    padding: 1px 4px;
    margin-bottom: 2px;
  }

  .slot-empty-label {
    font-size: 0.68rem;
    line-height: 1.15;
  }

  .slot-player-name {
    font-size: 0.74rem;
    line-height: 1.15;
    margin-bottom: 1px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
  }

  .slot-player-team {
    font-size: 0.64rem;
  }

  .slot-player-price {
    font-size: 0.68rem;
    margin-top: 1px;
  }

  .roster-slots-row.goalie-row,
  .roster-slots-row.goalie-slots-row,
  .goalie-slots-row,
  .roster-slots-row[style*="max-width"] {
    max-width: 160px !important;
    margin: 0 auto !important;
  }

  /* Builder stats: 2x2 grid tiles, buttons full width */
  .builder-header {
    flex-direction: column;
    align-items: stretch;
    padding: 10px 12px;
    gap: 8px;
  }

  .builder-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    width: 100%;
  }

  .stat-box {
    flex: 1 1 calc(50% - 4px);
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    padding: 6px 8px;
  }

  .stat-title {
    font-size: 0.64rem;
  }

  .stat-num {
    font-size: 1.05rem;
  }

  .builder-header > div:last-child {
    display: flex;
    gap: 6px;
    width: 100%;
  }

  .builder-header .btn {
    flex: 1 1 auto;
    text-align: center;
    justify-content: center;
    padding: 6px 8px;
    font-size: 0.76rem;
  }

  .builder-bottom-bar {
    padding: 8px 12px;
    gap: 6px;
  }

  .validation-notice {
    font-size: 0.74rem;
  }

  /* Calculator controls */
  .calc-wrapper {
    padding: 14px 10px;
  }

  .calc-row {
    padding: 8px 10px;
    gap: 6px;
  }

  .calc-category-title {
    font-size: 0.94rem;
    padding-bottom: 4px;
  }

  .calc-stat-name {
    font-size: 0.84rem;
  }

  .calc-stat-mult {
    font-size: 0.65rem;
  }

  .sim-top-card {
    padding: 12px 10px;
  }

  .calc-total-points {
    font-size: 2.5rem;
  }

  .sim-settings-card,
  .sim-breakdown-card,
  .sim-log-card {
    padding: 10px;
  }

  /* Legal and Policy spacing */
  .legal-section {
    margin-bottom: 14px;
    padding-bottom: 10px;
  }

  .legal-section h3,
  .legal-section h2 {
    font-size: 1.05rem;
    margin-bottom: 6px;
  }

  .legal-meta {
    padding: 8px 10px;
    margin-bottom: 14px;
    gap: 8px;
  }

  .disclaimer-banner {
    flex-direction: column;
    align-items: flex-start;
    padding: 12px 14px;
    gap: 8px;
    margin: 16px 0;
  }

  .disclaimer-badge {
    padding: 4px 8px;
    font-size: 0.74rem;
  }

  .disclaimer-text {
    flex: 1 1 auto;
    width: 100%;
    min-width: 0;
    min-height: auto;
    font-size: 0.82rem;
    line-height: 1.45;
  }

  .contact-card {
    padding: 12px 10px;
    margin-bottom: 8px;
  }

  .contact-form {
    padding: 14px 12px;
  }

  .form-group {
    margin-bottom: 10px;
  }

  .footer-top {
    padding: 22px 0 14px 0;
  }

  /* Full-width footer nav columns on mobile: no 50% empty gaps */
  .footer-col-nav {
    flex: 1 1 100%;
    min-width: 0;
  }

  .footer-disclaimer-box {
    padding: 10px 12px;
    margin-bottom: 14px;
  }

  .footer-bottom {
    padding-top: 12px;
    gap: 8px;
  }
}

@media (max-width: 480px) {
  .container {
    padding-left: 10px;
    padding-right: 10px;
  }

  .header-inner {
    height: 54px;
  }

  .brand-icon {
    width: 26px;
    height: 26px;
  }

  .brand-title {
    font-size: 1rem;
  }

  .section {
    padding: 18px 0;
  }

  .sub-block-spacing {
    margin-top: 14px;
  }

  .section-header {
    margin: 0 auto 12px auto;
  }

  .section-title {
    font-size: 1.3rem;
  }

  .page-header {
    padding: 14px 0 10px 0;
    margin-bottom: 10px;
  }

  .page-header-title {
    font-size: 1.45rem;
  }

  .hero-section {
    padding: 14px 0 18px 0;
  }

  .hero-title {
    font-size: 1.45rem;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
    gap: 6px;
  }

  .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .cards-flex {
    gap: 8px;
  }

  .glass-card {
    padding: 12px 10px;
    border-radius: var(--radius-sm);
  }

  /* Dense Roster Slots: 3 across in Row 1, 2 across in Row 2, 1 in Row 3 (ZERO empty space) */
  .roster-pitch-flex {
    padding: 8px 4px;
    gap: 6px;
  }

  .roster-slots-row {
    gap: 4px;
    margin-bottom: 4px;
  }

  .slot-card {
    min-height: 64px;
    padding: 4px 2px;
    border-radius: var(--radius-sm);
  }

  .slot-empty-label {
    font-size: 0.6rem;
  }

  .slot-player-name {
    font-size: 0.68rem;
  }

  .slot-player-team {
    font-size: 0.6rem;
  }

  .slot-player-price {
    font-size: 0.64rem;
  }

  .roster-slots-row.goalie-row,
  .roster-slots-row.goalie-slots-row,
  .goalie-slots-row,
  .roster-slots-row[style*="max-width"] {
    max-width: 140px !important;
    margin: 0 auto !important;
  }

  .player-pool-flex {
    padding: 10px 6px;
  }

  .pool-player-row {
    padding: 6px;
  }

  .pool-name {
    font-size: 0.78rem;
  }

  .pool-pos-tag {
    width: 20px;
    height: 20px;
    font-size: 0.62rem;
  }

  /* Calculator on small phones */
  .calc-wrapper {
    padding: 10px 6px;
  }

  .calc-flex-container {
    gap: 10px;
  }

  .calc-row {
    padding: 6px 8px;
  }

  .calc-stat-name {
    font-size: 0.8rem;
  }

  .calc-stat-mult {
    font-size: 0.62rem;
  }

  .stepper-btn {
    width: 24px;
    height: 24px;
    font-size: 0.88rem;
  }

  .stepper-val {
    min-width: 18px;
    font-size: 0.84rem;
  }

  .sim-top-card {
    padding: 10px 8px;
  }

  .calc-total-points {
    font-size: 2.2rem;
  }

  .content-box {
    padding: 12px 10px;
    margin-bottom: 10px;
  }

  .legal-section {
    margin-bottom: 10px;
    padding-bottom: 8px;
  }

  .legal-meta {
    padding: 6px 8px;
    margin-bottom: 10px;
  }

  .disclaimer-banner {
    padding: 10px 12px;
    gap: 6px;
    margin: 12px 0;
  }

  .disclaimer-text {
    font-size: 0.78rem;
    line-height: 1.4;
  }

  .footer-col-nav {
    flex: 1 1 100%;
  }

  .footer-disclaimer-box {
    padding: 8px 10px;
    font-size: 0.72rem;
    margin-bottom: 12px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .cookie-banner {
    left: 6px;
    right: 6px;
    bottom: 6px;
    padding: 10px;
  }

  .cookie-buttons {
    flex-direction: column;
    gap: 5px;
  }

  .cookie-buttons .btn {
    width: 100%;
  }

  .a11y-toggle-btn {
    bottom: 16px;
    left: 14px;
    width: 38px;
    height: 38px;
  }

  .a11y-panel {
    bottom: 64px;
    left: 10px;
    right: 10px;
    width: auto;
  }
}

@media (max-width: 340px) {
  .container {
    padding-left: 6px;
    padding-right: 6px;
  }

  .brand-title {
    font-size: 0.95rem;
  }

  .brand-icon {
    width: 24px;
    height: 24px;
  }

  .hero-title {
    font-size: 1.25rem;
  }

  .calc-total-points {
    font-size: 1.95rem;
  }

  .btn {
    padding: 6px 10px;
    font-size: 0.76rem;
  }

  .slot-card {
    min-height: 58px;
    padding: 3px 2px;
  }

  .slot-empty-label {
    font-size: 0.56rem;
  }

  .slot-player-name {
    font-size: 0.64rem;
  }
}
