/* ==========================================================================
   NESTLÉ GRAND SLAM TENNIS CHAMPIONSHIP 2026
   Swiss Sports Broadcast & Editorial Magazine Design System
   Palette extracted directly from the KRNBT match jersey:
     Obsidian Stage: #080C14  | Editorial Stone: #F3F1EC
     KRNBT Royal:    #143A92  | Championship Gold: #E8AE2A
     KRNBT Crimson:  #D62828  | Ink Black: #0B1221
   ========================================================================== */

:root {
  --stage-bg: #080c14;
  --stage-surface: #0f1624;
  --stage-border: rgba(255, 255, 255, 0.11);

  --paper-bg: #f3f1ec;
  --paper-card: #ffffff;
  --paper-surface: #e7e4dc;
  --paper-border: #d5d0c5;

  --ink-dark: #0b1221;
  --ink-muted: #525d73;
  --text-light: #f6f7f9;
  --text-light-muted: #9aa7bd;

  --krnbt-blue: #143a92;
  --krnbt-gold: #e8ae2a;
  --krnbt-gold-dark: #b6800c;
  --krnbt-red: #d62828;

  --font-display: "Anton", "Barlow Condensed", sans-serif;
  --font-condensed: "Barlow Condensed", sans-serif;
  --font-body: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: "IBM Plex Mono", monospace;

  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-left: env(safe-area-inset-left, 0px);
  --safe-right: env(safe-area-inset-right, 0px);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html {
  scroll-behavior: smooth;
  background: var(--stage-bg);
  color: var(--text-light);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-size-adjust: 100%;
}

body {
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--stage-bg);
  overflow-x: hidden;
}

button,
a {
  font: inherit;
  color: inherit;
  text-decoration: none;
  background: none;
  border: none;
  cursor: pointer;
}

button:focus-visible,
a:focus-visible,
[role="button"]:focus-visible {
  outline: 2px solid var(--krnbt-gold);
  outline-offset: 2px;
}

img {
  display: block;
  max-width: 100%;
}

/* ==========================================================================
   TOP BROADCAST HEADER
   ========================================================================== */
.broadcast-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 60;
  padding: calc(10px + var(--safe-top)) calc(clamp(16px, 3vw, 40px) + var(--safe-right)) 10px calc(clamp(16px, 3vw, 40px) + var(--safe-left));
  min-height: calc(60px + var(--safe-top));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: rgba(8, 12, 20, 0.92);
  border-bottom: 1px solid var(--stage-border);
  transition: opacity 0.3s ease;
}

.broadcast-stage.is-fullscreen.is-idle .broadcast-header,
.broadcast-stage.is-fullscreen.is-idle .control-dock {
  opacity: 0;
  pointer-events: none;
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-crest-logo {
  flex-shrink: 0;
  width: 34px;
  height: 38px;
  object-fit: contain;
}

.opener-logo {
  flex-shrink: 0;
  width: 44px;
  height: 48px;
  object-fit: contain;
}

.footer-brand-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-logo {
  flex-shrink: 0;
  width: 32px;
  height: 36px;
  object-fit: contain;
}

.brand-sep {
  width: 1px;
  height: 22px;
  background: var(--stage-border);
  flex-shrink: 0;
}

.brand-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.brand-title {
  font-family: var(--font-condensed);
  font-weight: 800;
  font-size: 16px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-light);
  line-height: 1.05;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.brand-sub {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--krnbt-gold);
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

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

.header-date {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--text-light-muted);
  white-space: nowrap;
}

.nav-link {
  padding: 8px 10px;
  font-family: var(--font-condensed);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-light-muted);
  white-space: nowrap;
  transition: color 0.18s ease;
}

.nav-link:hover {
  color: var(--text-light);
}

.nav-cta {
  padding: 8px 16px;
  background: var(--krnbt-gold);
  color: var(--ink-dark);
  font-family: var(--font-condensed);
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: background 0.18s ease;
}

.nav-cta:hover {
  background: #f5c34d;
}

/* ==========================================================================
   BROADCAST INTRO STAGE (100DVH FOR IOS/ANDROID + DESKTOP)
   ========================================================================== */
.broadcast-stage {
  position: relative;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  min-height: 580px;
  overflow: hidden;
  background: radial-gradient(circle at 68% 42%, #13254c 0%, #0a1326 48%, #070b14 100%);
  user-select: none;
  touch-action: pan-y;
}

/* Crisp Architectural Frame & Court Geometry */
.stage-frame {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.stage-court-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.stage-side-ticker {
  position: absolute;
  top: 50%;
  right: 16px;
  transform: translateY(-50%) rotate(90deg);
  transform-origin: right center;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.24em;
  color: rgba(255, 255, 255, 0.26);
  white-space: nowrap;
  z-index: 4;
}

.stage-tricolor-bar {
  position: absolute;
  top: calc(60px + var(--safe-top));
  left: 0;
  right: 0;
  height: 3px;
  display: flex;
  z-index: 5;
}

.stage-tricolor-bar .bar-blue { flex: 6; background: var(--krnbt-blue); }
.stage-tricolor-bar .bar-gold { flex: 2.5; background: var(--krnbt-gold); }
.stage-tricolor-bar .bar-red { flex: 1.5; background: var(--krnbt-red); }

.stage-grid-rule {
  position: absolute;
  background: rgba(255, 255, 255, 0.05);
}

.rule-v1 { top: 0; bottom: 0; left: 6%; width: 1px; }
.rule-v2 { top: 0; bottom: 0; right: 6%; width: 1px; }
.rule-h1 { left: 0; right: 0; bottom: 86px; height: 1px; }

/* Broadcast Slash Wipe */
.slash-wipe {
  position: absolute;
  inset: 0;
  z-index: 45;
  pointer-events: none;
  overflow: hidden;
}

.wipe-bar {
  position: absolute;
  top: -15%;
  left: -135%;
  width: 120%;
  height: 130%;
  transform: skewX(-14deg);
}

.wipe-bar.b1 { background: var(--krnbt-blue); }
.wipe-bar.b2 { background: var(--krnbt-gold); width: 18%; }
.wipe-bar.b3 { background: var(--krnbt-red); width: 9%; }

.slash-wipe.is-active .wipe-bar.b1 {
  animation: wipeAcross 0.52s cubic-bezier(0.76, 0, 0.24, 1) forwards;
}
.slash-wipe.is-active .wipe-bar.b2 {
  animation: wipeAcross 0.52s cubic-bezier(0.76, 0, 0.24, 1) 0.04s forwards;
}
.slash-wipe.is-active .wipe-bar.b3 {
  animation: wipeAcross 0.52s cubic-bezier(0.76, 0, 0.24, 1) 0.08s forwards;
}

@keyframes wipeAcross {
  0% { left: -135%; }
  48% { left: 0%; }
  100% { left: 135%; }
}

/* ==========================================================================
   SCENES
   ========================================================================== */
.scene {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.28s ease;
}

.scene.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* ---------- SCENE 0: CHAMPIONSHIP OPENER ---------- */
.scene-opener {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(82px + var(--safe-top)) clamp(20px, 6vw, 84px) calc(104px + var(--safe-bottom));
}

.opener-inner {
  width: 100%;
  max-width: 1080px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.opener-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

.eyebrow-tag {
  padding: 5px 12px;
  background: var(--krnbt-red);
  color: #ffffff;
  font-family: var(--font-condensed);
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.eyebrow-code {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--krnbt-gold);
}

.opener-title {
  font-family: var(--font-display);
  font-size: clamp(40px, 7.2vw, 108px);
  line-height: 0.94;
  letter-spacing: 0.015em;
  text-transform: uppercase;
  color: var(--text-light);
}

.title-gold {
  color: var(--krnbt-gold);
}

.opener-subtitle {
  margin-top: 14px;
  font-family: var(--font-condensed);
  font-size: clamp(18px, 2.3vw, 28px);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #cbd5e7;
}

.opener-spec-grid {
  margin-top: 28px;
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--stage-border);
  border-bottom: 1px solid var(--stage-border);
}

.spec-cell {
  padding: 16px 20px 16px 0;
  border-right: 1px solid var(--stage-border);
}

.spec-cell:not(:first-child) {
  padding-left: 20px;
}

.spec-cell:last-child {
  border-right: none;
}

.spec-cell dt {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--krnbt-gold);
  margin-bottom: 6px;
}

.spec-cell dd {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.35;
  color: var(--text-light);
}

.opener-actions {
  margin-top: 30px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn-primary {
  min-height: 48px;
  padding: 0 28px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--krnbt-gold);
  color: var(--ink-dark);
  font-family: var(--font-condensed);
  font-weight: 800;
  font-size: 17px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: background 0.18s ease, transform 0.18s ease;
}

.btn-primary:hover {
  background: #f5c34d;
  transform: translateY(-1px);
}

.btn-secondary {
  min-height: 48px;
  padding: 0 24px;
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: var(--text-light);
  font-family: var(--font-condensed);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: border-color 0.18s ease, background 0.18s ease;
}

.btn-secondary:hover {
  border-color: var(--text-light);
  background: rgba(255, 255, 255, 0.06);
}

/* ---------- SCENE 1: INDIVIDUAL PLAYER BROADCAST SPOTLIGHT ---------- */
.scene-player {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  padding: calc(74px + var(--safe-top)) clamp(24px, 6vw, 84px) calc(92px + var(--safe-bottom));
}

.watermark-layer {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  overflow: hidden;
  z-index: 1;
}

.watermark-text {
  font-family: var(--font-display);
  font-size: clamp(130px, 23vw, 330px);
  line-height: 0.85;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.03);
  -webkit-text-stroke: 1.5px rgba(255, 255, 255, 0.1);
  white-space: nowrap;
}

.scene-player.is-animating .watermark-text {
  animation: watermarkDrift 5.2s linear forwards;
}

@keyframes watermarkDrift {
  0% { transform: translateX(3%); }
  100% { transform: translateX(-4%); }
}

.player-info-col {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  max-width: 640px;
}

.player-index-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  width: 100%;
}

.player-mobile-event {
  display: none;
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--text-light-muted);
  white-space: nowrap;
}

.player-name-lockup {
  display: flex;
  flex-direction: column;
}

.player-num-badge {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--text-light);
  padding: 5px 10px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  white-space: nowrap;
}

.player-role-badge {
  font-family: var(--font-condensed);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 5px 14px;
  background: var(--krnbt-gold);
  color: var(--ink-dark);
  white-space: nowrap;
}

.player-role-badge.is-crimson {
  background: var(--krnbt-red);
  color: #ffffff;
}

.player-role-badge.is-royal {
  background: var(--krnbt-blue);
  color: #ffffff;
}

.player-callsign {
  font-family: var(--font-display);
  font-size: clamp(58px, 8.6vw, 134px);
  line-height: 0.88;
  letter-spacing: 0.015em;
  text-transform: uppercase;
  color: var(--krnbt-gold);
}

.player-surname {
  font-family: var(--font-display);
  font-size: clamp(48px, 7.2vw, 112px);
  line-height: 0.92;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--text-light);
  margin-top: 2px;
}

.player-rule {
  width: 72px;
  height: 3px;
  margin: 18px 0 14px;
  background: var(--krnbt-red);
}

.player-tagline {
  font-family: var(--font-condensed);
  font-size: clamp(18px, 2.1vw, 25px);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #d6dfee;
}

.player-dossier-table {
  margin-top: 24px;
  width: 100%;
  max-width: 480px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid var(--stage-border);
}

.dossier-row {
  padding: 12px 14px 12px 0;
  border-bottom: 1px solid var(--stage-border);
}

.dossier-row dt {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--text-light-muted);
  margin-bottom: 3px;
}

.dossier-row dd {
  font-family: var(--font-condensed);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--text-light);
}

/* Crisp Editorial Motion */
.scene-player.is-animating .player-index-row {
  animation: slideUp 0.36s cubic-bezier(0.16, 1, 0.3, 1) 0.03s both;
}
.scene-player.is-animating .player-callsign {
  animation: slideRight 0.42s cubic-bezier(0.16, 1, 0.3, 1) 0.07s both;
}
.scene-player.is-animating .player-surname {
  animation: slideRight 0.45s cubic-bezier(0.16, 1, 0.3, 1) 0.12s both;
}
.scene-player.is-animating .player-rule {
  animation: scaleRule 0.38s cubic-bezier(0.16, 1, 0.3, 1) 0.17s both;
  transform-origin: left;
}
.scene-player.is-animating .player-tagline,
.scene-player.is-animating .player-dossier-table {
  animation: slideUp 0.44s cubic-bezier(0.16, 1, 0.3, 1) 0.2s both;
}

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

@keyframes slideRight {
  from { opacity: 0; transform: translateX(-28px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes scaleRule {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

/* Portrait Column — Clean Studio Lighting, No AI Glow Rings */
.player-visual-col {
  position: relative;
  z-index: 8;
  height: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.portrait-frame {
  position: relative;
  height: min(76dvh, 720px);
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.player-portrait-img {
  height: 100%;
  width: auto;
  object-fit: contain;
  object-position: bottom center;
  filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 0.65));
  transform-origin: bottom center;
  mask-image: linear-gradient(to bottom, #000 0%, #000 86%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 86%, transparent 100%);
}

.scene-player.is-animating .player-portrait-img {
  animation: portraitPush 5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes portraitPush {
  0% { opacity: 0; transform: translateY(20px) scale(0.97); }
  12% { opacity: 1; transform: translateY(0) scale(1); }
  100% { opacity: 1; transform: translateY(-4px) scale(1.035); }
}

/* ---------- SCENE 2: FULL SQUAD FINALE ---------- */
.scene-finale {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: calc(78px + var(--safe-top)) clamp(16px, 3vw, 48px) calc(96px + var(--safe-bottom));
}

.finale-header {
  text-align: center;
  z-index: 10;
}

.finale-kicker {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--krnbt-gold);
}

.finale-title {
  font-family: var(--font-display);
  font-size: clamp(26px, 4.2vw, 56px);
  line-height: 1.02;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin-top: 6px;
}

.finale-sub {
  margin-top: 6px;
  font-family: var(--font-condensed);
  font-size: clamp(13px, 1.5vw, 18px);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-light-muted);
}

.finale-lineup {
  width: 100%;
  max-width: 1380px;
  margin: auto;
  display: grid;
  grid-template-columns: repeat(9, 1fr);
  align-items: end;
  gap: 6px;
  z-index: 10;
}

.finale-member {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: transform 0.22s ease;
}

.finale-member:hover {
  transform: translateY(-6px);
  z-index: 20;
}

.finale-img-wrap {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  width: 100%;
}

.finale-member img {
  height: clamp(150px, 34dvh, 320px);
  width: auto;
  max-width: 135%;
  object-fit: contain;
  mask-image: linear-gradient(to bottom, #000 0%, #000 84%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 84%, transparent 100%);
}

.finale-member.is-leader img {
  height: clamp(175px, 39dvh, 365px);
}

.finale-plate {
  width: 100%;
  margin-top: -10px;
  padding: 6px 6px;
  background: var(--stage-surface);
  border-top: 2px solid rgba(255, 255, 255, 0.18);
}

.finale-member.is-leader .finale-plate {
  border-top-color: var(--krnbt-gold);
}

.finale-callsign {
  font-family: var(--font-condensed);
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--krnbt-gold);
  text-transform: uppercase;
  line-height: 1.05;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.finale-name {
  font-family: var(--font-condensed);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.05em;
  color: var(--text-light);
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.finale-role {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  color: var(--text-light-muted);
  text-transform: uppercase;
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ==========================================================================
   BOTTOM BROADCAST CONTROL DOCK
   ========================================================================== */
.control-dock {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 50;
  padding: 8px calc(clamp(12px, 3vw, 36px) + var(--safe-right)) calc(12px + var(--safe-bottom)) calc(clamp(12px, 3vw, 36px) + var(--safe-left));
  background: rgba(8, 12, 20, 0.94);
  border-top: 1px solid var(--stage-border);
  transition: opacity 0.3s ease;
}

.timeline-track {
  width: 100%;
  height: 2px;
  background: rgba(255, 255, 255, 0.14);
  overflow: hidden;
  margin-bottom: 10px;
}

.timeline-fill {
  height: 100%;
  width: 0%;
  background: var(--krnbt-gold);
  transition: width 0.1s linear;
}

.dock-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.transport-group {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.icon-btn {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  background: var(--stage-surface);
  border: 1px solid var(--stage-border);
  color: var(--text-light);
  transition: background 0.15s ease, border-color 0.15s ease;
}

.icon-btn:hover {
  background: #1b263c;
  border-color: rgba(255, 255, 255, 0.35);
}

.icon-btn.is-primary {
  background: var(--krnbt-gold);
  color: var(--ink-dark);
  border-color: var(--krnbt-gold);
}

.icon-btn.is-primary:hover {
  background: #f5c34d;
}

.roster-pills {
  display: flex;
  align-items: center;
  gap: 4px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
  flex: 1;
  min-width: 0;
}

.roster-pills::-webkit-scrollbar {
  display: none;
}

.roster-pill {
  flex: 0 0 auto;
  scroll-snap-align: center;
  min-height: 36px;
  padding: 0 11px;
  border: 1px solid transparent;
  background: rgba(255, 255, 255, 0.04);
  font-family: var(--font-condensed);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-light-muted);
  white-space: nowrap;
  transition: color 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.roster-pill:hover {
  color: var(--text-light);
  background: rgba(255, 255, 255, 0.09);
}

.roster-pill.is-active {
  background: var(--krnbt-blue);
  border-color: var(--krnbt-gold);
  color: #ffffff;
}

/* ==========================================================================
   BELOW THE FOLD: SWISS EDITORIAL LIGHT ROSTER SECTION
   ========================================================================== */
.roster-section {
  background: var(--paper-bg);
  color: var(--ink-dark);
  padding: clamp(56px, 7vw, 96px) calc(clamp(16px, 5vw, 72px) + var(--safe-right)) clamp(64px, 8vw, 104px) calc(clamp(16px, 5vw, 72px) + var(--safe-left));
}

.section-container {
  max-width: 1320px;
  margin: 0 auto;
}

/* Tournament Fact Sheet */
.event-sheet {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 2px solid var(--ink-dark);
  border-bottom: 1px solid var(--paper-border);
  margin-bottom: clamp(48px, 6vw, 72px);
}

.sheet-cell {
  padding: 20px 22px 22px 0;
  border-right: 1px solid var(--paper-border);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.sheet-cell:not(:first-child) {
  padding-left: 22px;
}

.sheet-cell:last-child {
  border-right: none;
  padding-right: 0;
}

.sheet-label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--krnbt-blue);
}

.sheet-value {
  font-family: var(--font-condensed);
  font-size: 21px;
  font-weight: 700;
  line-height: 1.18;
  color: var(--ink-dark);
}

.sheet-meta {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--krnbt-red);
  font-weight: 600;
}

/* Group Headers */
.roster-group-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 24px;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--ink-dark);
}

.group-kicker {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--krnbt-red);
}

.group-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.6vw, 46px);
  line-height: 1;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--ink-dark);
  margin-top: 6px;
}

.group-hint {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-muted);
}

/* Editorial Player Cards */
.roster-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: clamp(48px, 6vw, 72px);
}

.squad-card {
  background: var(--paper-card);
  border: 1px solid var(--paper-border);
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.squad-card:hover {
  transform: translateY(-4px);
  border-color: var(--ink-dark);
  box-shadow: 0 16px 32px rgba(11, 18, 33, 0.1);
}

.squad-card-top {
  position: relative;
  height: 310px;
  background: linear-gradient(180deg, #e9e6de 0%, #dcd8ce 100%);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
  padding-top: 20px;
}

.squad-card-meta {
  position: absolute;
  top: 14px;
  left: 14px;
  right: 14px;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.squad-card-num {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-dark);
  padding: 3px 8px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--paper-border);
}

.squad-card-role-tag {
  font-family: var(--font-condensed);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 4px 10px;
  background: var(--ink-dark);
  color: var(--krnbt-gold);
}

.squad-card-role-tag.is-captain {
  background: var(--krnbt-red);
  color: #ffffff;
}

.squad-card-role-tag.is-player {
  background: var(--krnbt-blue);
  color: #ffffff;
}

.squad-card-img {
  position: relative;
  z-index: 3;
  width: 218px;
  height: 290px;
  aspect-ratio: 3 / 4;
  object-fit: contain;
  object-position: bottom center;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.squad-card-body {
  padding: 18px 18px 20px;
  border-top: 1px solid var(--paper-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.squad-card-identity {
  min-width: 0;
}

.squad-card-callsign {
  font-family: var(--font-display);
  font-size: 27px;
  line-height: 1;
  letter-spacing: 0.02em;
  color: var(--ink-dark);
  text-transform: uppercase;
}

.squad-card-name {
  font-family: var(--font-condensed);
  font-size: 24px;
  font-weight: 700;
  color: var(--krnbt-blue);
  margin-left: 4px;
}

.squad-card-tagline {
  font-size: 13px;
  color: var(--ink-muted);
  margin-top: 6px;
  line-height: 1.35;
}

.spotlight-trigger {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid var(--paper-border);
  color: var(--ink-dark);
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.squad-card:hover .spotlight-trigger {
  background: var(--ink-dark);
  border-color: var(--ink-dark);
  color: var(--krnbt-gold);
}

/* Footer */
.site-footer {
  background: var(--stage-bg);
  color: var(--text-light-muted);
  padding: 28px calc(clamp(16px, 5vw, 72px) + var(--safe-right)) calc(28px + var(--safe-bottom)) calc(clamp(16px, 5vw, 72px) + var(--safe-left));
  border-top: 3px solid var(--krnbt-gold);
}

.footer-inner {
  max-width: 1320px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.footer-brand strong {
  font-family: var(--font-condensed);
  font-size: 16px;
  letter-spacing: 0.1em;
  color: var(--text-light);
}

.footer-brand span,
.footer-meta {
  font-family: var(--font-mono);
  font-size: 11px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* ==========================================================================
   TABLET & MOBILE RESPONSIVE (IOS SAFARI & ANDROID CHROME)
   ========================================================================== */
@media (max-width: 1024px) {
  .header-date {
    display: none;
  }

  .event-sheet {
    grid-template-columns: repeat(2, 1fr);
  }

  .sheet-cell {
    padding: 16px 16px 16px 0;
    border-bottom: 1px solid var(--paper-border);
  }

  .sheet-cell:nth-child(2n) {
    border-right: none;
    padding-left: 16px;
    padding-right: 0;
  }

  .sheet-cell:nth-child(2n + 1) {
    padding-left: 0;
  }

  .roster-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .finale-lineup {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px 6px;
  }

  .finale-member img,
  .finale-member.is-leader img {
    height: clamp(86px, 14.5dvh, 136px);
  }
}

@media (max-width: 768px) {
  .brand-sep,
  .brand-sub,
  .rule-v1,
  .rule-v2,
  .group-hint {
    display: none;
  }

  .brand-title {
    font-size: 14px;
  }

  .nav-link {
    padding: 8px 6px;
    font-size: 13px;
  }

  .nav-cta {
    padding: 8px 12px;
    font-size: 13px;
  }

  /* Opener mobile framing */
  .scene-opener {
    padding: calc(76px + var(--safe-top)) 18px calc(112px + var(--safe-bottom));
    align-items: center;
  }

  .opener-title {
    font-size: clamp(34px, 10.5vw, 52px);
  }

  .opener-subtitle {
    font-size: 15px;
    letter-spacing: 0.1em;
    margin-top: 10px;
  }

  .opener-spec-grid {
    grid-template-columns: 1fr;
    margin-top: 18px;
  }

  .spec-cell,
  .spec-cell:not(:first-child) {
    padding: 10px 0;
    border-right: none;
    border-bottom: 1px solid var(--stage-border);
  }

  .spec-cell:last-child {
    border-bottom: none;
  }

  .spec-cell dd {
    font-size: 13px;
  }

  .opener-actions {
    width: 100%;
    margin-top: 20px;
  }

  .btn-primary,
  .btn-secondary {
    flex: 1;
    justify-content: center;
    padding: 0 14px;
    font-size: 15px;
  }

  /* Mobile Player Spotlight: Heroic full-frame portrait + bold broadcast lower-third */
  .stage-side-ticker {
    right: 10px;
    font-size: 8.5px;
    letter-spacing: 0.18em;
    color: rgba(255, 255, 255, 0.22);
  }

  .scene-player {
    grid-template-columns: 1fr;
    grid-template-rows: 1fr auto;
    padding: calc(64px + var(--safe-top)) 16px calc(122px + var(--safe-bottom));
    gap: 0;
  }

  .watermark-layer {
    align-items: flex-start;
    padding-top: calc(92px + var(--safe-top));
  }

  .watermark-text {
    font-size: clamp(110px, 34vw, 175px);
    -webkit-text-stroke: 1.5px rgba(232, 174, 42, 0.18);
  }

  .player-visual-col {
    order: 1;
    align-items: flex-end;
    justify-content: center;
    min-height: 0;
  }

  .portrait-frame {
    height: min(56dvh, 470px);
  }

  .player-info-col {
    order: 2;
    align-items: flex-start;
    text-align: left;
    width: 100%;
    padding: 12px 14px 10px;
    border-top: 3px solid var(--krnbt-gold);
    border-left: 3px solid var(--krnbt-red);
    background: linear-gradient(135deg, rgba(14, 24, 46, 0.94) 0%, rgba(8, 12, 20, 0.96) 100%);
    box-shadow: 0 -14px 32px rgba(0, 0, 0, 0.5);
  }

  .player-index-row {
    margin-bottom: 6px;
  }

  .player-mobile-event {
    display: inline-block;
  }

  .player-name-lockup {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0 10px;
  }

  .player-callsign {
    font-size: clamp(40px, 12vw, 56px);
    line-height: 0.94;
  }

  .player-surname {
    font-size: clamp(40px, 12vw, 56px);
    line-height: 0.94;
    margin-top: 0;
  }

  .player-rule {
    margin: 8px 0 6px;
    width: 44px;
  }

  .player-tagline {
    font-size: 14px;
    line-height: 1.25;
  }

  .footer-meta {
    flex-direction: column;
    gap: 4px;
  }

  .footer-meta span:nth-child(2) {
    display: none;
  }

  .player-dossier-table {
    display: none;
  }

  /* Mobile Finale 3x3 Editorial Grid */
  .scene-finale {
    padding: calc(72px + var(--safe-top)) 12px calc(110px + var(--safe-bottom));
  }

  .finale-title {
    font-size: 22px;
  }

  .finale-sub {
    font-size: 11px;
  }

  .finale-lineup {
    gap: 6px 4px;
  }

  .finale-member img,
  .finale-member.is-leader img {
    width: 100%;
    max-width: 100%;
    height: clamp(74px, 13.5dvh, 112px);
    object-fit: contain;
    object-position: bottom center;
  }

  .finale-plate {
    margin-top: -6px;
    padding: 4px 3px;
  }

  .finale-callsign {
    font-size: 11px;
  }

  .finale-name {
    font-size: 10px;
  }

  .finale-role {
    font-size: 8px;
  }

  /* Mobile Control Dock: 2-tier clean touch layout */
  .dock-row {
    flex-wrap: wrap;
    gap: 8px;
  }

  .roster-pills {
    order: -1;
    flex-basis: 100%;
  }

  .transport-group:first-child {
    flex: 1;
  }

  .icon-btn {
    width: 44px;
    height: 44px;
  }

  /* Mobile Editorial Roster Section */
  .event-sheet {
    grid-template-columns: 1fr;
  }

  .sheet-cell,
  .sheet-cell:nth-child(2n),
  .sheet-cell:nth-child(2n + 1) {
    padding: 14px 0;
    border-right: none;
  }

  .roster-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .squad-card-top {
    height: 270px;
  }

  .squad-card-img {
    width: 189px;
    height: 252px;
    aspect-ratio: 3 / 4;
  }
}
