/* fill bar */

.fill-header{
  display:flex;
  justify-content:space-between;
  gap:10px;
  margin-bottom:8px;
  color:var(--muted);
  font-size:.9rem;
}

.fill-bar{
  height:12px;
  border-radius:999px;
  background:rgba(255,255,255,.08);
  overflow:hidden;
  position:relative;
}

.fill-bar-value{
  height:100%;
  border-radius:999px;
  background:linear-gradient(90deg, #ffb81c, #ffd56c);
  position:relative;
  overflow:hidden;
  animation:barPulse 2.1s ease-in-out infinite;
  transition:width .45s ease;
}

.fill-bar-value::after{
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(90deg, transparent, rgba(255,255,255,.28), transparent);
  animation:fillShimmer 2.4s linear infinite;
}

@keyframes fillShimmer{
  0%{ transform:translateX(-130%); }
  100%{ transform:translateX(130%); }
}

@keyframes snapshotPulse{
  0%,100%{
    filter:brightness(1);
  }
  50%{
    filter:brightness(1.08);
  }
}

@keyframes barPulse{
  0%,100%{ filter:brightness(1); }
  50%{ filter:brightness(1.12); }
}

/* values */

.positive{
  color:var(--green) !important;
}

.negative{
  color:var(--red) !important;
}

.neutral{
  color:#fff !important;
}

/* responsive */

@media (max-width:1280px){
  .tier-grid{
    grid-template-columns:repeat(4, minmax(0,1fr)) !important;
  }

  .home-leader-strip,
  .home-insights-grid{
    grid-template-columns:repeat(2, minmax(0,1fr));
  }

  .home-snapshot-layout{
    grid-template-columns:1fr;
  }

  .home-snapshot-grid{
    grid-template-columns:repeat(3, minmax(0,1fr));
  }

  .home-feature-grid{
    grid-template-columns:1fr;
  }
}

@media (max-width:1100px){
  .header-inner{
    grid-template-columns:1fr;
    align-items:flex-start;
    gap:10px;
  }

  .nav{
    width:100%;
  }

  .tier-grid{
    grid-template-columns:repeat(3, minmax(0,1fr)) !important;
  }

  .profile-hero.profile-hero-wide{
    grid-template-columns:1fr;
  }

  .player-profile-copy{
    align-items:flex-start;
  }

  .player-formula-help{
    white-space:normal;
  }
}

@media (max-width:980px){
  .home-events-grid,
  .media-grid{
    grid-template-columns:1fr;
  }

  .event-layout-grid{
    grid-template-columns:1fr;
  }

  .event-details-col{
    padding-right:0;
    border-right:none;
  }

  .event-rsvp-col{
    padding-left:0;
    align-items:center;
  }
    .standings-meta-shell{
    grid-template-columns:1fr;
    gap:10px;
  }

  .standings-current-stat{
    white-space:normal;
  }

  .standings-formula-display{
    width:100%;
  }
  .home-snapshot-layout,
  .format-toggle{
    padding-left:12px;
    padding-right:12px;
  }

  .home-analysis-grid{
    grid-template-columns:1fr;
  } 
}

@media (max-width:900px){
  #schedule-list{
    grid-template-columns:repeat(2, minmax(0,1fr)) !important;
  }  
}

@media (max-width:800px){
  .tier-grid,
  #dashboard-grid,
  .rules-grid,
  .rules-chip-grid{
    grid-template-columns:repeat(2, minmax(0,1fr)) !important;
  }

  #schedule-list{
    grid-template-columns:1fr !important;
  }

  .home-snapshot-grid{
    grid-template-columns:repeat(2, minmax(0,1fr));
  }

  .home-snapshot-grid .snapshot-card::after{
    display:none;
  }
  
  .home-insight-formula{
    width:100%;
    min-height:28px;
    justify-content:flex-start;
    text-align:left;
    padding:0;
  }

  .home-event-fixed-buttons,
  .home-event-fixed-buttons-inline{
    width:100%;
    flex-wrap:wrap;
  }

  #schedule-list .home-event-top-right,
  #home-events-list .home-event-top-right{
    width:100%;
    justify-content:flex-end;
  }
  
  .home-dual-rsvp-btn,
  .home-fixed-rsvp-btn{
    min-width:0;
    flex:1 1 220px;
  }

   .home-event-top-right{
    width:100%;
    justify-content:flex-end;
    margin-top:8px;
  }
  
  .home-analysis-col .page-title-row{
    padding-left:12px;
    padding-right:12px;
  }
  
  .event-card-topline{
    flex-direction:column;
    align-items:flex-start;
  }

  .schedule-day-pill{
    font-size:1rem;
    padding:7px 14px;
  }
  
    .event-guide-line{
    flex-direction:column;
  }

  .event-guide-line .profile-line-label{
    min-width:0;
    flex:none;
  }
  
    .archetype-filter-row{
    gap:8px;
  }

  .archetype-filter-pill{
    width:100%;
    justify-content:space-between;
  }

  .archetype-mode-toggle{
    gap:8px;
  }

  .archetype-mode-btn{
  width:auto;
  max-width:max-content;
  justify-content:center;
}

  .event-rsvp-summary{
    gap:8px;
    font-size:.95rem;
  }  
}

@media (max-width:700px){
  body{
    padding-top:0;
  }

  .site-header{
    position:relative;
    top:auto;
    left:auto;
    width:calc(100% - 24px);
    margin:12px auto 0;
    transform:none;
  }

  .site-header .wrap.header-inner{
    padding:12px 0;
  }

  .logo{
    font-size:1.45rem;
  }

  .tag{
    font-size:.92rem;
    white-space:normal;
  }

  .nav{
    gap:5px;
    flex-wrap:wrap;
    overflow:visible;
  }

  .nav > a,
  .nav-dropdown-parent{
    min-height:44px;
    padding:6px 10px;
    font-size:.94rem;
  }

  .nav-dropdown-menu{
    top:calc(100% + 6px);
    min-width:200px;
  }

  .nav-dropdown:last-child .nav-dropdown-menu{
    right:0;
    left:auto;
  }
}

@media (max-width:640px){
  .tier-grid,
  #dashboard-grid,
  .rules-grid,
  .rules-chip-grid,
  #schedule-list,
  .media-grid{
    grid-template-columns:1fr !important;
  }
  .home-leader-strip,
  .home-insights-grid{
    grid-template-columns:1fr;
  }

  .archetype-section.archetype-hitman,
  .archetype-section.archetype-closer,
  .archetype-section.archetype-grinder,
  .archetype-section.archetype-lucky-devil,
  .archetype-section.archetype-wildcard,
  .archetype-section.archetype-bubble-magnet,
  .archetype-section.archetype-technician{
    padding:12px;
    border-radius:16px;
  }

  .archetype-section .tier-grid{
    padding:10px;
    border-radius:14px;
  }
  
  .archetype-section::before{
    left:12px;
    right:12px;
  }

  .archetype-active-summary{
    padding:10px 12px;
    border-radius:12px;
  }

  .archetype-active-summary-count{
    min-width:30px;
    height:30px;
    font-size:.76rem;
  }
  
  .home-snapshot-grid{
    grid-template-columns:1fr;
  }

  .featured-player-top{
    grid-template-columns:1fr;
    text-align:center;
  }

  .featured-player-avatar{
    display:flex;
    justify-content:center;
  }

  .featured-player-stats{
    grid-template-columns:1fr;
  }
  
  .crew-card-topline{
    align-items:flex-start;
  }

  .crew-tier-rank{
    min-width:30px;
    height:30px;
    font-size:.85rem;
  }

  .tier-distribution-row{
    grid-template-columns:1fr;
    gap:6px;
  }

  .tier-distribution-count{
    text-align:left;
  }
  
  .home-badge-row{
    align-items:flex-start;
    text-align:left;
  }

  .home-badge-main{
    justify-content:flex-start;
  }
  
  .home-mini-name{
    white-space:normal;
  }

  .home-jump-nav{
  flex-direction:column;
}

  .home-jump-pill{
    width:100%;
    justify-content:center;
  }
  
  #standings-table{
    min-width:640px;
  }

  .blind-table{
    min-width:640px;
  }
  
  .player-avatar.profile,
  .player-avatar-fallback.profile{
    width:230px;
    height:230px;
    font-size:3rem;
  }

  .player-formula-display,
  .dashboard-formula-display{
    width:100%;
    font-size:.92rem;
  }

  .events-header-suits{
    gap:8px;
  }

  .events-header-suit{
    font-size:1.9rem;
  }
  
   .event-rsvp-avatar-row{
    position:static;
    width:auto;
    height:auto;
    display:grid;
    grid-template-columns:repeat(3, 64px);
    justify-content:center;
    gap:12px 16px;
    margin:0;
  }

  .event-rsvp-avatar-row::before,
  .event-rsvp-avatar-row::after{
    display:none;
  }

  .event-rsvp-avatar-row > .event-rsvp-seat-player,
  .event-rsvp-avatar-row > .event-empty-seat{
    position:static;
    width:64px;
    height:64px;
    transform:none !important;
  }

  .event-rsvp-seat-player .player-avatar-wrap{
    width:64px;
    height:64px;
  }
  
  .event-rsvp-avatar-row .player-avatar.table,
  .event-rsvp-avatar-row .player-avatar-fallback.table{
    width:64px;
    height:64px;
    font-size:1.12rem;
  }

  .event-empty-seat{
    font-size:2.4rem;
  }
  
  .player-formula-help{
    text-align:center;
    font-size:.78rem;
    letter-spacing:.08em;
    text-transform:uppercase;
    margin:4px 0 14px;
    opacity:.75;
  }

  .player-formula-help::after{
    content:"";
    display:block;
    width:40px;
    height:1px;
    margin:8px auto 0;
    background:rgba(255,184,28,.35);
  }
  
  .player-dna-grid{
    grid-template-columns:1fr;
  }

  .featured-player-meta{
    align-items:center;
  }

  .featured-player-tier,
  .featured-player-archetype{
    margin-left:auto;
    margin-right:auto;
  }
  .site-header .header-inner{
    align-items:flex-start;
  }

  .nav{
    gap:8px;
  }

  .nav a{
    padding:7px 9px;
    font-size:.86rem;
  }

  .page-title-row{
    gap:10px;
  }

  .page-chip-dashboard{
    width:64px;
    height:64px;
  }

  .section{
    padding:20px 18px;
  }

  .section-head{
    margin-bottom:14px;
  }

  .format-toggle,
  .home-snapshot-layout,
  .home-analysis-lane{
    padding-left:12px;
    padding-right:12px;
  }

  .dashboard-buttons-shell .dashboard-buttons{
    padding:10px;
  }

  .dashboard-meta-shell-inline,
  .standings-meta-shell{
    grid-template-columns:1fr;
    gap:10px;
    padding:0;
  }

 .dashboard-meta-shell-inline > #dashboard-current-stat,
.standings-current-stat{
  display:inline-flex;
  align-items:center;
  gap:12px;
  color:#dbeafe;
  font-size:1.34rem;
  font-weight:800;
  line-height:1.05;
  white-space:nowrap;
}

  #players-help-copy,
  #players-explainer,
  .page-helper-copy{
    font-size:.9rem;
    line-height:1.45;
  }

  .dashboard-studio-chip,
  .standings-race-chip{
    width:100%;
    justify-content:flex-start;
  }
}

/* ===== SECTION ICON STYLING ===== */

.report-icon{
  color:#ffb81c;
  font-size:1.05em;
  line-height:1;
}

.snapshot-heading{
  display:inline-block;
  margin-right:6px;
  color:#ffd56c;
}

.snapshot-flash{
  animation:cameraFlash 4.8s ease-in-out infinite;
  transform-origin:center center;
}

@keyframes cameraFlash{
  0%, 91%, 100%{
    transform:scale(1);
    filter:brightness(1);
    text-shadow:none;
  }

  93%{
    transform:scale(1.28);
    filter:brightness(2.1);
    text-shadow:
      0 0 8px rgba(255,255,255,.55),
      0 0 18px rgba(255,255,255,.35);
  }

  95%{
    transform:scale(.96);
    filter:brightness(.82);
    text-shadow:none;
  }

  97%{
    transform:scale(1.14);
    filter:brightness(1.45);
    text-shadow:
      0 0 6px rgba(255,255,255,.35);
  }
}

.pulse-icon{
  display:inline-block;
  margin-right:6px;
  color:#d7263d;
  transform:translateY(1px);
  filter:drop-shadow(0 0 4px rgba(215,38,61,.28));
  animation:pulseBeat 1.8s ease-in-out infinite;
}

@keyframes pulseBeat{
  0%, 100%{
    transform:translateY(1px) scale(1);
    filter:drop-shadow(0 0 4px rgba(215,38,61,.28));
  }
  50%{
    transform:translateY(1px) scale(1.12);
    filter:drop-shadow(0 0 8px rgba(215,38,61,.42));
  }
}

/* FINAL OVERRIDE — archetype player-count pills */
.archetype-filter-pill.archetype-hitman > span{
  border:1px solid #ff6b6b !important;
  background:linear-gradient(180deg, rgba(255,214,214,.18), rgba(255,255,255,0) 42%), linear-gradient(180deg, rgba(255,107,107,.34), rgba(120,22,22,.96)) !important;
  color:#fff1f1 !important;
  box-shadow:
    inset 0 1px 0 rgba(255,226,226,.16),
    inset 0 -2px 4px rgba(56,10,10,.42),
    0 2px 8px rgba(0,0,0,.22) !important;
}

.archetype-filter-pill.archetype-closer > span{
  border:1px solid #ffd56c !important;
  background:linear-gradient(180deg, rgba(255,244,210,.18), rgba(255,255,255,0) 42%), linear-gradient(180deg, rgba(255,213,108,.34), rgba(120,82,10,.96)) !important;
  color:#fff7df !important;
  box-shadow:
    inset 0 1px 0 rgba(255,244,210,.16),
    inset 0 -2px 4px rgba(64,42,8,.42),
    0 2px 8px rgba(0,0,0,.22) !important;
}

.archetype-filter-pill.archetype-grinder > span{
  border:1px solid #b9fbc0 !important;
  background:linear-gradient(180deg, rgba(230,255,236,.18), rgba(255,255,255,0) 42%), linear-gradient(180deg, rgba(185,251,192,.32), rgba(12,92,30,.96)) !important;
  color:#f4fff6 !important;
  box-shadow:
    inset 0 1px 0 rgba(230,255,236,.16),
    inset 0 -2px 4px rgba(8,38,14,.42),
    0 2px 8px rgba(0,0,0,.22) !important;
}

.archetype-filter-pill.archetype-lucky-devil > span{
  border:1px solid #c4b5fd !important;
  background:linear-gradient(180deg, rgba(239,232,255,.18), rgba(255,255,255,0) 42%), linear-gradient(180deg, rgba(196,181,253,.34), rgba(68,30,118,.96)) !important;
  color:#faf7ff !important;
  box-shadow:
    inset 0 1px 0 rgba(239,232,255,.16),
    inset 0 -2px 4px rgba(24,10,50,.42),
    0 2px 8px rgba(0,0,0,.22) !important;
}

.archetype-filter-pill.archetype-wildcard > span{
  border:1px solid #78ffff !important;
  background:linear-gradient(180deg, rgba(224,255,255,.18), rgba(255,255,255,0) 42%), linear-gradient(180deg, rgba(120,255,255,.34), rgba(12,88,96,.96)) !important;
  color:#f4ffff !important;
  box-shadow:
    inset 0 1px 0 rgba(230,255,255,.16),
    inset 0 -2px 4px rgba(8,34,40,.42),
    0 2px 8px rgba(0,0,0,.22) !important;
}

.archetype-filter-pill.archetype-bubble-magnet > span{
  border:1px solid #8bd3ff !important;
  background:linear-gradient(180deg, rgba(230,247,255,.18), rgba(255,255,255,0) 42%), linear-gradient(180deg, rgba(139,211,255,.34), rgba(20,64,110,.96)) !important;
  color:#f4fbff !important;
  box-shadow:
    inset 0 1px 0 rgba(230,247,255,.16),
    inset 0 -2px 4px rgba(10,24,44,.42),
    0 2px 8px rgba(0,0,0,.22) !important;
}

.archetype-filter-pill.archetype-technician > span{
  border:1px solid #9be7ff !important;
  background:linear-gradient(180deg, rgba(235,251,255,.18), rgba(255,255,255,0) 42%), linear-gradient(180deg, rgba(155,231,255,.34), rgba(20,72,98,.96)) !important;
  color:#f6fdff !important;
  box-shadow:
    inset 0 1px 0 rgba(235,251,255,.16),
    inset 0 -2px 4px rgba(10,26,40,.42),
    0 2px 8px rgba(0,0,0,.22) !important;
}

/* FINAL FIX — FULL ARCHETYPE FILTER PILL COLORS */
.archetype-filter-pill.archetype-hitman{
  border-color:#ff6b6b !important;
  background:
    linear-gradient(180deg, rgba(255,214,214,.14), rgba(255,255,255,0) 42%),
    linear-gradient(180deg, rgba(255,107,107,.22), rgba(96,20,20,.94)) !important;
  color:#ffe1e1 !important;
  box-shadow:
    inset 0 1px 0 rgba(255,226,226,.12),
    inset 0 -2px 4px rgba(48,10,10,.42),
    0 8px 18px rgba(0,0,0,.22) !important;
}

.archetype-filter-pill.archetype-hitman.active{
  border-color:#ff7d7d !important;
  background:
    linear-gradient(180deg, rgba(255,220,220,.18), rgba(255,255,255,0) 42%),
    linear-gradient(180deg, rgba(255,107,107,.34), rgba(120,22,22,.96)) !important;
  color:#fff1f1 !important;
}

.archetype-filter-pill.archetype-closer{
  border-color:#ffd56c !important;
  background:
    linear-gradient(180deg, rgba(255,244,210,.14), rgba(255,255,255,0) 42%),
    linear-gradient(180deg, rgba(255,213,108,.20), rgba(96,68,10,.94)) !important;
  color:#fff0c9 !important;
  box-shadow:
    inset 0 1px 0 rgba(255,244,210,.12),
    inset 0 -2px 4px rgba(56,38,8,.42),
    0 8px 18px rgba(0,0,0,.22) !important;
}

.archetype-filter-pill.archetype-closer.active{
  border-color:#ffe08a !important;
  background:
    linear-gradient(180deg, rgba(255,244,210,.18), rgba(255,255,255,0) 42%),
    linear-gradient(180deg, rgba(255,213,108,.30), rgba(120,82,10,.96)) !important;
  color:#fff7df !important;
}

.archetype-filter-pill.archetype-grinder{
  border-color:#b9fbc0 !important;
  background:
    linear-gradient(180deg, rgba(230,255,236,.14), rgba(255,255,255,0) 42%),
    linear-gradient(180deg, rgba(185,251,192,.20), rgba(12,78,30,.94)) !important;
  color:#ecfff0 !important;
  box-shadow:
    inset 0 1px 0 rgba(230,255,236,.12),
    inset 0 -2px 4px rgba(8,34,14,.42),
    0 8px 18px rgba(0,0,0,.22) !important;
}

.archetype-filter-pill.archetype-grinder.active{
  border-color:#cbffd1 !important;
  background:
    linear-gradient(180deg, rgba(230,255,236,.18), rgba(255,255,255,0) 42%),
    linear-gradient(180deg, rgba(185,251,192,.30), rgba(12,92,30,.96)) !important;
  color:#f4fff6 !important;
}

.archetype-filter-pill.archetype-lucky-devil{
  border-color:#c4b5fd !important;
  background:
    linear-gradient(180deg, rgba(239,232,255,.14), rgba(255,255,255,0) 42%),
    linear-gradient(180deg, rgba(196,181,253,.22), rgba(56,26,96,.94)) !important;
  color:#f3edff !important;
  box-shadow:
    inset 0 1px 0 rgba(239,232,255,.12),
    inset 0 -2px 4px rgba(20,10,44,.42),
    0 8px 18px rgba(0,0,0,.22) !important;
}

.archetype-filter-pill.archetype-lucky-devil.active{
  border-color:#d6c9ff !important;
  background:
    linear-gradient(180deg, rgba(239,232,255,.18), rgba(255,255,255,0) 42%),
    linear-gradient(180deg, rgba(196,181,253,.32), rgba(68,30,118,.96)) !important;
  color:#faf7ff !important;
}

.archetype-filter-pill.archetype-wildcard{
  border-color:#93c5fd !important;
  background:
    linear-gradient(180deg, rgba(219,234,254,.14), rgba(255,255,255,0) 42%),
    linear-gradient(180deg, rgba(59,130,246,.22), rgba(18,42,78,.94)) !important;
  color:#dbeafe !important;
  box-shadow:
    inset 0 1px 0 rgba(219,234,254,.12),
    inset 0 -2px 4px rgba(10,22,44,.42),
    0 8px 18px rgba(0,0,0,.22) !important;
}

.archetype-filter-pill.archetype-wildcard.active{
  border-color:#bfdbfe !important;
  background:
    linear-gradient(180deg, rgba(219,234,254,.18), rgba(255,255,255,0) 42%),
    linear-gradient(180deg, rgba(59,130,246,.32), rgba(18,42,78,.96)) !important;
  color:#eff6ff !important;
}

.archetype-filter-pill.archetype-bubble-magnet{
  border-color:#8bd3ff !important;
  background:
    linear-gradient(180deg, rgba(230,247,255,.14), rgba(255,255,255,0) 42%),
    linear-gradient(180deg, rgba(139,211,255,.22), rgba(20,64,110,.94)) !important;
  color:#edf8ff !important;
  box-shadow:
    inset 0 1px 0 rgba(230,247,255,.12),
    inset 0 -2px 4px rgba(10,24,44,.42),
    0 8px 18px rgba(0,0,0,.22) !important;
}

.archetype-filter-pill.archetype-bubble-magnet.active{
  border-color:#b6e6ff !important;
  background:
    linear-gradient(180deg, rgba(230,247,255,.18), rgba(255,255,255,0) 42%),
    linear-gradient(180deg, rgba(139,211,255,.30), rgba(20,64,110,.96)) !important;
  color:#f4fbff !important;
}

.archetype-filter-pill.archetype-technician{
  border-color:#9be7ff !important;
  background:
    linear-gradient(180deg, rgba(235,251,255,.14), rgba(255,255,255,0) 42%),
    linear-gradient(180deg, rgba(155,231,255,.22), rgba(20,72,98,.94)) !important;
  color:#eefbff !important;
  box-shadow:
    inset 0 1px 0 rgba(235,251,255,.12),
    inset 0 -2px 4px rgba(10,26,40,.42),
    0 8px 18px rgba(0,0,0,.22) !important;
}

.archetype-filter-pill.archetype-technician.active{
  border-color:#c8f2ff !important;
  background:
    linear-gradient(180deg, rgba(235,251,255,.18), rgba(255,255,255,0) 42%),
    linear-gradient(180deg, rgba(155,231,255,.30), rgba(20,72,98,.96)) !important;
  color:#f6fdff !important;
}

/* =========================================================
   SITE-WIDE POLISH PASS
   Players / Home / Rules / Schedule / Media
   ========================================================= */

/* -------------------------
   1) Page-title accent bars
   ------------------------- */
.page-title-row::after{
  content:"";
  position:absolute;
  left:0;
  right:0;
  bottom:-10px;
  height:2px;
  border-radius:999px;
  opacity:.9;
  background:linear-gradient(90deg, rgba(255,255,255,.18), transparent 100%);
}

.page-title-row:has(.page-title-orange)::after{
  background:linear-gradient(90deg, rgba(255,184,28,.9), rgba(255,184,28,.18) 58%, transparent 100%);
}

.page-title-row:has(.page-title-red)::after{
  background:linear-gradient(90deg, rgba(239,68,68,.9), rgba(239,68,68,.18) 58%, transparent 100%);
}

.page-title-row:has(.page-title-pink)::after,
.page-title-row:has(.schedule-page-title)::after{
  background:linear-gradient(90deg, rgba(244,114,182,.9), rgba(244,114,182,.18) 58%, transparent 100%);
}

.page-title-row:has(.page-title-green)::after{
  background:linear-gradient(90deg, rgba(34,197,94,.9), rgba(34,197,94,.18) 58%, transparent 100%);
}

.page-title-row:has(.page-title-purple)::after{
  background:linear-gradient(90deg, rgba(168,85,247,.9), rgba(168,85,247,.18) 58%, transparent 100%);
}

.page-title-row:has(.champions-title-purple)::after{
  background:linear-gradient(90deg, rgba(168,85,247,.9), rgba(168,85,247,.18) 58%, transparent 100%);
}

.page-title-row:has(.champions-title-blue)::after{
  background:linear-gradient(90deg, rgba(59,130,246,.9), rgba(59,130,246,.18) 58%, transparent 100%);
}

.page-title-row:has(.champions-title-pink)::after{
  background:linear-gradient(90deg, rgba(34,197,94,.9), rgba(34,197,94,.18) 58%, transparent 100%);
}

/* -------------------------
   2) Home page polish
   ------------------------- */

.league-ticker::before{
  content:"";
  position:absolute;
  left:16px;
  right:16px;
  top:0;
  height:3px;
  border-radius:999px;
  background:linear-gradient(
    90deg,
    rgba(239,68,68,.98) 0%,
    rgba(255,184,28,.98) 25%,
    rgba(34,197,94,.98) 50%,
    rgba(59,130,246,.98) 75%,
    rgba(168,85,247,.98) 100%
  );
  box-shadow:
    0 0 10px rgba(239,68,68,.16),
    0 0 14px rgba(59,130,246,.12);
  pointer-events:none;
  z-index:3;
}

.home-snapshot-layout{
  position:relative;
  display:grid;
  grid-template-columns:minmax(0, 1.08fr) minmax(340px, .92fr);
  gap:16px;
  align-items:stretch;
  padding:16px;
  border:1px solid rgba(255,184,28,.18);
  border-top:none;
  border-radius:0 0 18px 18px;
  background:
    radial-gradient(circle at top right, rgba(255,184,28,.10), transparent 32%),
    radial-gradient(circle at left center, rgba(59,130,246,.08), transparent 24%),
    linear-gradient(180deg, rgba(18,24,32,.98), rgba(12,15,20,.99));
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.04),
    0 12px 28px rgba(0,0,0,.20),
    0 0 18px rgba(255,184,28,.08);
}

/* -------------------------
   4) Rules page polish
   ------------------------- */
.format-toggle{
  display:flex;
  align-items:center;
  justify-content:flex-start;
  gap:16px;
  margin-bottom:14px;
  padding:12px 14px;
  border:1px solid rgba(34,197,94,.22);
  border-radius:16px;
  background:
    radial-gradient(circle at top right, rgba(34,197,94,.12), transparent 32%),
    radial-gradient(circle at left center, rgba(168,85,247,.10), transparent 28%),
    linear-gradient(180deg, rgba(20,26,34,.98), rgba(12,15,20,.99));
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.04),
    0 10px 22px rgba(0,0,0,.18),
    0 0 16px rgba(34,197,94,.08);
}

.format-switch{
  position:relative;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  flex:0 0 auto;
  cursor:pointer;
}

.format-switch input{
  position:absolute;
  opacity:0;
  pointer-events:none;
}

.format-switch-track{
  position:relative;
  display:block;
  width:70px;
  height:36px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.14);
  background:
    linear-gradient(90deg, rgba(34,197,94,.24) 0%, rgba(168,85,247,.24) 100%),
    linear-gradient(180deg, rgba(31,39,51,.98) 0%, rgba(20,26,34,.98) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.05),
    0 6px 16px rgba(0,0,0,.22);
  transition:border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.format-switch-thumb{
  position:absolute;
  top:3px;
  left:3px;
  width:28px;
  height:28px;
  border-radius:50%;
  background:linear-gradient(180deg, #dcfce7 0%, #86efac 100%);
  box-shadow:
    0 4px 10px rgba(0,0,0,.28),
    0 0 0 1px rgba(134,239,172,.20);
  transition:transform .22s ease, background .22s ease, box-shadow .22s ease;
}

.format-switch input:checked + .format-switch-track .format-switch-thumb{
  transform:translateX(34px);
  background:linear-gradient(180deg, #f3e8ff 0%, #d8b4fe 100%);
  box-shadow:
    0 4px 10px rgba(0,0,0,.28),
    0 0 0 1px rgba(216,180,254,.20);
}

.format-switch:hover .format-switch-track{
  border-color:rgba(255,255,255,.24);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.06),
    0 8px 18px rgba(0,0,0,.24);
}

.format-content-shell{
  position:relative;
  overflow:hidden;
  border:1px solid rgba(34,197,94,.20);
  border-radius:18px;
  background:
    radial-gradient(circle at top right, rgba(34,197,94,.12), transparent 30%),
    radial-gradient(circle at left center, rgba(168,85,247,.08), transparent 26%),
    linear-gradient(180deg, rgba(18,24,32,.98), rgba(12,15,20,.99));
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.04),
    0 12px 28px rgba(0,0,0,.20),
    0 0 18px rgba(34,197,94,.08);
}

.format-content-shell::before{
  content:"";
  position:absolute;
  left:16px;
  right:16px;
  top:0;
  height:3px;
  border-radius:999px;
  background:linear-gradient(90deg, rgba(34,197,94,.95), rgba(168,85,247,.40) 58%, transparent 100%);
}

/* -------------------------
   5) Unify stronger “featured / control shell” feel
   ------------------------- */
.dashboard-sort-shell,
.standings-sort-shell,
.format-toggle,
.home-snapshot-layout{
  backdrop-filter:blur(2px);
}


@media (max-width:640px){
  /* Honors already owns its inline/top padding; only its mobile bottom edge resets. */
  .honors-page-shell .page-title-row{
    position:relative !important;
    margin-bottom:14px !important;
    padding-bottom:0 !important;
  }

  .format-toggle{
    flex-direction:column;
    gap:12px;
  }

  .btn-format{
    width:100%;
    min-width:0;
  }
  
  .honors-page-shell .page-title-row::after{
    bottom:-12px !important;
    height:3px !important;
  }
}

/* =========================================
   PHASE 3G — DESKTOP RSVP VISUAL GROUP LIFT
========================================= */

@media (min-width:981px){
  #home-events-list .event-rsvp-block,
  #schedule-list .event-rsvp-block{
    transform:translateY(-18px);
  }
}

/* =========================================
   TABLE FORECAST — FINAL CLEAN DISPLAY
========================================= */

/* Neutralize old auto-push button behavior */
#home-events-list .event-details-col > .home-event-fixed-buttons,
#home-events-list .event-details-col > .home-event-fixed-buttons-inline,
#schedule-list .event-details-col > .btn-rsvp {
  margin-top: 0 !important;
  align-self: flex-start !important;
  padding-top: 0 !important;
}

/* Keep the left event column as a controlled vertical stack */
#home-events-list .event-details-col,
#schedule-list .event-details-col {
  display: flex !important;
  flex-direction: column !important;
}

/* The forecast card itself */
#home-events-list .event-details-col > .event-rsvp-forecast,
#schedule-list .event-details-col > .event-rsvp-forecast {
  margin: auto auto 18px auto !important;

  width: 100% !important;
  max-width: 430px !important;

  padding: 13px 15px !important;
  border-radius: 14px !important;
  border: 1px solid rgba(255,255,255,.14) !important;

  text-align: center !important;

  background:
    radial-gradient(circle at top left, rgba(255,255,255,.08), transparent 46%),
    linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,.015)),
    rgba(4,8,15,.34) !important;

  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.075),
    0 8px 18px rgba(0,0,0,.18) !important;
}

/* Forecast title */
#home-events-list .event-rsvp-forecast-title,
#schedule-list .event-rsvp-forecast-title {
  margin: 0 0 10px !important;
  color: var(--gold) !important;
  font-size: .82rem !important;
  line-height: 1 !important;
  font-weight: 950 !important;
  letter-spacing: .085em !important;
  text-transform: uppercase !important;
  text-align: center !important;
}

/* Forecast rows */
#home-events-list .event-rsvp-forecast-row,
#schedule-list .event-rsvp-forecast-row {
  display: grid !important;
  grid-template-columns: 104px minmax(0, 1fr) !important;
  gap: 10px !important;
  align-items: start !important;

  margin: 6px 0 !important;
  font-size: .86rem !important;
  line-height: 1.26 !important;
  text-align: left !important;
}

/* Category labels */
#home-events-list .event-rsvp-forecast-label,
#schedule-list .event-rsvp-forecast-label {
  font-weight: 950 !important;
  white-space: nowrap !important;
}

/* Player names / count text */
#home-events-list .event-rsvp-forecast-names,
#schedule-list .event-rsvp-forecast-names {
  color: rgba(255,255,255,.78) !important;
  font-weight: 650 !important;
  line-height: 1.28 !important;
  overflow-wrap: anywhere !important;
}

/* Category colors */
#home-events-list .event-rsvp-forecast-maybe .event-rsvp-forecast-label,
#schedule-list .event-rsvp-forecast-maybe .event-rsvp-forecast-label {
  color: #facc15 !important;
}

#home-events-list .event-rsvp-forecast-tbd .event-rsvp-forecast-label,
#schedule-list .event-rsvp-forecast-tbd .event-rsvp-forecast-label {
  color: #c084fc !important;
}

#home-events-list .event-rsvp-forecast-no .event-rsvp-forecast-label,
#schedule-list .event-rsvp-forecast-no .event-rsvp-forecast-label {
  color: #fb7185 !important;
}

/* Mobile */
@media (max-width: 760px) {
  #home-events-list .event-details-col > .event-rsvp-forecast,
  #schedule-list .event-details-col > .event-rsvp-forecast {
    max-width: 100% !important;
    margin: 16px 0 18px !important;
    text-align: left !important;
  }

  #home-events-list .event-rsvp-forecast-row,
  #schedule-list .event-rsvp-forecast-row {
    grid-template-columns: 1fr !important;
    gap: 3px !important;
  }

  #home-events-list .event-details-col > .home-event-fixed-buttons,
  #home-events-list .event-details-col > .home-event-fixed-buttons-inline {
    width: 100% !important;
    flex-wrap: wrap !important;
  }
}

/* =========================================
   SCHEDULE RSVP BUTTON — VERTICAL ALIGNMENT FIX
========================================= */

#schedule-list .event-details-col > a.btn.btn-rsvp {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;

  min-height: 40px !important;
  padding: 9px 15px !important;

  line-height: 1 !important;
  text-align: center !important;
  white-space: nowrap;
}


/* =========================================
   PHASE 3G.4 — RSVP CONTROL BREATHING ROOM
   Keep table/chairs/avatar at the approved
   3G.2 lift; lower only controls on desktop.
========================================= */

@media (min-width:981px){
  /* Home: lower the pagination dots without moving the table/avatar. */
  #home-events-list .home-rotator-nav-inline{
    width:100%;
    box-sizing:border-box;
    transform:translateY(8px);
  }

  /* Home + Schedule: lower the RSVP-count pill rail for breathing room. */
  #home-events-list .event-rsvp-summary-wrap,
  #schedule-list .event-rsvp-summary-wrap{
    transform:translateY(10px);
  }
}

/* =========================================
   POST-FREEZE — LOCKED HERO BRAND-PAIR SYSTEM
   Watermark and chip move as one visual unit.
========================================= */

:root{
  --tlpt-watermark-opacity:.09;
  --tlpt-watermark-desktop-h:112px;
  --tlpt-watermark-desktop-w:246px;
  --tlpt-watermark-desktop-gap:40px;
  --tlpt-watermark-tablet-h:78px;
  --tlpt-watermark-tablet-w:171px;
  --tlpt-watermark-tablet-gap:28px;
  --tlpt-watermark-mobile-h:58px;
  --tlpt-watermark-mobile-w:128px;
  --tlpt-watermark-mobile-gap:20px;
}

/* The wrapper occupies the original chip grid cell, preserving every hero layout. */
.site-page-hero-brand{
  position:relative;
  width:112px;
  height:112px;
  justify-self:end;
  align-self:center;
  z-index:1;
}

/* Accent-aware halo behind the chip. The RGB comes from each hero's kicker/border theme. */
.site-page-hero-brand::before{
  content:"";
  position:absolute;
  inset:-24px;
  border-radius:50%;
  pointer-events:none;
  background:
    radial-gradient(
      circle,
      rgba(var(--site-page-hero-accent-rgb),.42) 0 16%,
      rgba(var(--site-page-hero-accent-rgb),.22) 34%,
      rgba(var(--site-page-hero-accent-rgb),.09) 52%,
      transparent 74%
    );
  filter:blur(5px);
  z-index:0;
}

.site-page-hero-watermark{
  position:absolute;
  top:50%;
  right:calc(100% + var(--tlpt-watermark-desktop-gap));
  width:var(--tlpt-watermark-desktop-w);
  height:var(--tlpt-watermark-desktop-h);
  transform:translateY(-50%);
  pointer-events:none;
  background-image:url("images/site/MutedLogo.png");
  background-repeat:no-repeat;
  background-position:center;
  background-size:contain;
  mix-blend-mode:screen;
  opacity:var(--tlpt-watermark-opacity);
  z-index:0;
}

/* Trophy Room owns its shell, but inherits the same locked pair geometry. */
.trophy-room-page .trophy-room-brand{
  --site-page-hero-accent-rgb:255,184,28;
}

/* Supporting copy wraps before it reaches the brand lane. */
@media (min-width:821px){
  .site-page-hero-description{
    max-width:720px;
  }

  .trophy-room-page .trophy-room-hero-copy p{
    max-width:720px;
  }
}

/* The Week That Was has no chip: same size and opacity in its open right rail. */
.news-header-shell::before{
  content:"";
  position:absolute;
  top:32px;
  right:52px;
  width:var(--tlpt-watermark-desktop-w);
  height:var(--tlpt-watermark-desktop-h);
  transform:none;
  pointer-events:none;
  background-image:url("images/site/MutedLogo.png");
  background-repeat:no-repeat;
  background-position:center;
  background-size:contain;
  mix-blend-mode:screen;
  opacity:.14;
  z-index:0;
}

.news-header-shell > *{
  position:relative;
  z-index:1;
}

/* Player Profile stays bespoke geometrically, but shares the same opacity. */
.player-page #player-profile .tlpt-player-summary{
  position:relative;
  overflow:hidden;
  isolation:isolate;
}

.player-page #player-profile .tlpt-player-summary::before{
  content:"";
  position:absolute;
  top:14px;
  right:18px;
  width:min(72%, 620px);
  height:132px;
  pointer-events:none;
  background-image:url("images/site/MutedLogo.png");
  background-repeat:no-repeat;
  background-position:right center;
  background-size:contain;
  mix-blend-mode:screen;
  opacity:var(--tlpt-watermark-opacity);
  z-index:0;
}

.player-page #player-profile .tlpt-player-summary > *{
  position:relative;
  z-index:1;
}

/* Tablet: pair scales together and stays vertically locked to the chip. */
@media (max-width:820px) and (min-width:561px){
  .site-page-hero-brand{
    width:78px;
    height:78px;
  }

  .site-page-hero-brand::before{
    inset:-18px;
    filter:blur(4px);
  }

  .site-page-hero-watermark{
    right:calc(100% + var(--tlpt-watermark-tablet-gap));
    width:var(--tlpt-watermark-tablet-w);
    height:var(--tlpt-watermark-tablet-h);
  }

  .site-page-hero-description{
    max-width:620px;
  }

  .trophy-room-page .trophy-room-hero-copy p{
    max-width:620px;
  }

  .news-header-shell::before{
    top:26px;
    right:32px;
    width:var(--tlpt-watermark-tablet-w);
    height:var(--tlpt-watermark-tablet-h);
    opacity:.14;
  }
}

/* Mobile: maintain the pair without squeezing titles. It becomes a compact row below copy. */
@media (max-width:560px){
  .site-page-hero-brand{
    display:flex;
    align-items:center;
    justify-content:flex-end;
    gap:var(--tlpt-watermark-mobile-gap);
    width:calc(var(--tlpt-watermark-mobile-w) + var(--tlpt-watermark-mobile-gap) + 58px);
    height:58px;
    justify-self:end;
  }

  .site-page-hero-watermark{
    position:static;
    flex:0 0 auto;
    width:var(--tlpt-watermark-mobile-w);
    height:var(--tlpt-watermark-mobile-h);
    transform:none;
  }

  /* Qualified overrides only; style.css keeps ownership of the exact root chip selectors. */
  .site-page-hero-brand > .site-page-hero-chip,
  .trophy-room-page .site-page-hero-brand > .trophy-room-chip{
    position:relative;
    top:auto;
    right:auto;
    flex:0 0 58px;
    width:58px;
    height:58px;
  }

  .site-page-hero-brand::before{
    top:50%;
    right:-10px;
    bottom:auto;
    left:auto;
    width:78px;
    height:78px;
    transform:translateY(-50%);
    filter:blur(3px);
  }

  .site-page-hero-description,
  .trophy-room-page .trophy-room-hero-copy p{
    max-width:100%;
  }

  .news-header-shell::before{
    top:18px;
    right:20px;
    width:var(--tlpt-watermark-mobile-w);
    height:var(--tlpt-watermark-mobile-h);
    transform:none;
    opacity:.14;
  }
}

