/* ============ Tokens ============ */
:root {
  --white: #F5F6F8;          /* home kit */
  --paper: #FFFFFF;
  --navy: #0F1B3D;           /* ink + night games */
  --navy-2: #1B2B5C;
  --gold: #C8A24B;           /* trophy-cabinet gold */
  --turf: #1E6A3B;
  --turf-2: #24804A;
  --maroon: #7B1F45;         /* the turban in my favourite photo */
  --lime: #C6F432;           /* the socks */
  --muted: #5A6480;

  --display: "Big Shoulders Display", "Arial Narrow", Impact, sans-serif;
  --body: "Archivo", system-ui, -apple-system, Segoe UI, sans-serif;

  --gutter: clamp(16px, 4vw, 48px);
  --bar-h: 64px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--white);
  color: var(--navy);
  font: 400 17px/1.6 var(--body);
  overflow-x: clip;
}
body.locked { overflow: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 var(--gutter); }

.section-title {
  font: 900 clamp(44px, 8vw, 88px)/0.92 var(--display);
  margin: 0 0 12px;
  letter-spacing: -0.01em;
}
.section-sub { color: var(--muted); margin: 0 0 40px; max-width: 56ch; }

.btn {
  font: 700 17px/1 var(--body);
  display: inline-block;
  padding: 15px 24px;
  border-radius: 999px;
  border: 2px solid var(--navy);
  background: var(--navy);
  color: var(--white);
  text-decoration: none;
  cursor: pointer;
  transition: transform .15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--navy); }

/* ============ Tunnel (prank #1) ============ */
.tunnel {
  position: fixed; inset: 0; z-index: 100;
  background: radial-gradient(ellipse at 50% 120%, #2a3d78 0%, var(--navy) 55%, #060b1c 100%);
  color: var(--white);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 24px;
  transition: transform .9s cubic-bezier(.7,0,.2,1);
  overflow: hidden;
}
.tunnel.gone { transform: translateY(-100%); }
.tunnel-lights {
  position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(90deg, transparent 0 18%, rgba(255,255,255,.04) 18% 19%);
}
.tunnel-kicker { color: var(--gold); font-weight: 700; margin: 0 0 8px; }
.tunnel-title { font: 900 clamp(56px, 12vw, 140px)/.9 var(--display); margin: 0 0 16px; }
.tunnel-taunt { min-height: 1.6em; margin: 0 0 32px; color: #c9d0e6; }
.btn-walkout {
  font: 900 26px/1 var(--display);
  letter-spacing: .02em;
  padding: 18px 40px;
  border-radius: 999px;
  border: none;
  background: var(--gold);
  color: var(--navy);
  cursor: pointer;
  position: relative;
  transition: left .25s ease, top .25s ease, transform .2s ease;
  touch-action: manipulation;
}
.btn-walkout.loose { position: fixed; }

/* ============ Hero ============ */
.hero { padding: 28px var(--gutter) 72px; max-width: 1220px; margin: 0 auto; }
.scoreboard {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  width: fit-content;
  background: var(--navy); color: var(--white);
  padding: 10px 18px; border-radius: 12px;
  font: 700 20px/1 var(--display); letter-spacing: .03em;
}
.scoreboard .score { color: var(--gold); font-size: 26px; }
.scoreboard .clock {
  background: var(--lime); color: var(--navy);
  padding: 4px 8px; border-radius: 6px; min-width: 52px; text-align: center;
}
.hero-grid {
  display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(24px, 5vw, 64px);
  align-items: end; margin-top: 40px;
}
.hero-text { position: relative; }
.hero-number {
  position: absolute; right: 0; top: -40px; margin: 0;
  font: 900 clamp(180px, 30vw, 380px)/.8 var(--display);
  color: transparent; -webkit-text-stroke: 2px var(--gold);
  opacity: .55; pointer-events: none; z-index: -1;
}
.hero-name {
  font: 900 clamp(76px, 15vw, 196px)/.82 var(--display);
  margin: 0 0 28px; text-transform: uppercase; letter-spacing: -0.015em;
}
.hero-line { font-size: clamp(18px, 2vw, 21px); max-width: 34ch; margin: 0 0 28px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-photo { margin: 0; }
.hero-photo img {
  width: 100%; aspect-ratio: 3/4; object-fit: cover; object-position: center 72%;
  border-radius: 200px 200px 16px 16px;
  border: 6px solid var(--paper); box-shadow: 0 0 0 2px var(--navy);
}
.hero-photo figcaption { font-size: 14px; color: var(--muted); margin-top: 10px; }

/* ============ About ============ */
.about { background: var(--navy); color: var(--white); padding: 96px 0; }
.about-grid { display: grid; grid-template-columns: .7fr 1.3fr; gap: clamp(24px, 5vw, 72px); align-items: center; }
.about-photo { border-radius: 16px; aspect-ratio: 4/5; object-fit: cover; object-position: center 30%; width: 100%; }
.about p { max-width: 62ch; color: #dfe4f2; }
.about .section-title { color: var(--gold); }

/* ============ Highlights ============ */
.highlights { padding: 96px 0; }
.fixtures { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.fixture {
  background: var(--paper);
  border: 2px solid var(--navy);
  border-radius: 18px;
  padding: 26px;
}
.fixture h3 { font: 900 34px/1 var(--display); margin: 6px 0 12px; }
.fixture p { margin: 0 0 14px; }
.ft {
  display: inline-block; font-weight: 700; font-size: 14px;
  background: var(--navy); color: var(--white);
  padding: 5px 10px; border-radius: 6px; margin: 0 !important;
}
.fixture-photo {
  grid-column: 1 / -1;
  display: grid; grid-template-columns: 1.25fr 1fr; gap: 26px; align-items: center;
  background: var(--turf); color: var(--white); border-color: var(--turf);
}
.fixture-photo .duo figure:first-child img { object-position: center 70%; }
.fixture-photo .ft { background: var(--lime); color: var(--navy); }
.tags { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tags li {
  font-size: 14px; font-weight: 500;
  padding: 4px 12px; border-radius: 999px;
  border: 1.5px solid currentColor;
}

/* ============ Lineup ============ */
.lineup { background: var(--turf); color: var(--white); padding: 96px 0; }
.lineup .section-sub { color: #cfe8d7; }
.lineup-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 64px); align-items: start; }
.player-card {
  background: var(--white); color: var(--navy);
  border-radius: 18px; padding: 22px 24px; margin-bottom: 28px;
  border-left: 10px solid var(--gold);
}
.player-card h3 { font: 900 44px/1 var(--display); margin: 2px 0 8px; }
.player-card p { margin: 0; }
.pc-pos { font-weight: 700; color: var(--maroon); font-size: 14px; }
.bench h3 { font: 700 22px/1.1 var(--display); letter-spacing: .02em; margin: 0 0 12px; }

.pitch {
  position: relative; width: 100%; max-width: 480px; margin: 0 auto;
  aspect-ratio: 2/3;
  border-radius: 14px;
  background: repeating-linear-gradient(180deg, var(--turf-2) 0 10%, #1f7342 10% 20%);
  box-shadow: inset 0 0 0 3px rgba(255,255,255,.12), 0 18px 40px rgba(0,0,0,.25);
}
.pitch-lines { position: absolute; inset: 0; width: 100%; height: 100%; }
.pitch-lines * { fill: none; stroke: rgba(255,255,255,.75); stroke-width: 1.2; vector-effect: non-scaling-stroke; }
.pl {
  position: absolute; transform: translate(-50%, -50%);
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  background: none; border: 0; padding: 0; cursor: pointer; color: var(--white);
  font: 500 12px/1.1 var(--body); width: 84px; text-align: center;
}
.pl .dot {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--white); color: var(--navy);
  display: grid; place-items: center;
  font: 900 17px/1 var(--display);
  border: 2px solid var(--navy);
  transition: transform .15s ease, background .15s ease;
}
.pl .lbl { text-shadow: 0 1px 2px rgba(0,0,0,.6); }
.pl:hover .dot { transform: scale(1.12); }
.pl[aria-pressed="true"] .dot { background: var(--gold); }
.pl.gk .dot { background: var(--lime); }
.pl .armband { position: absolute; top: -6px; right: 18px; background: var(--maroon); color: #fff; font: 700 10px/1 var(--body); padding: 3px 4px; border-radius: 4px; }

/* ============ Off the pitch ============ */
.offpitch { padding: 96px 0; }
.tracklist { list-style: none; padding: 0; margin: 0 0 48px; counter-reset: t; border-top: 2px solid var(--navy); }
.tracklist li {
  counter-increment: t;
  display: grid; grid-template-columns: 44px minmax(140px, 1fr) 2fr 60px; gap: 16px; align-items: baseline;
  padding: 18px 0; border-bottom: 1px solid #cfd4e2;
}
.tracklist li::before { content: counter(t); font: 900 24px/1 var(--display); color: var(--gold); }
.t-name { font: 900 30px/1 var(--display); }
.t-desc { color: var(--muted); }
.t-time { text-align: right; font-variant-numeric: tabular-nums; color: var(--muted); }

/* ============ Contact ============ */
.contact { background: var(--maroon); color: var(--white); padding: 96px 0; }
.contact .section-sub { color: #f0d6e0; }
.contact-list { list-style: none; padding: 0; margin: 0 0 56px; }
.contact-list li {
  display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap;
  padding: 16px 0; border-bottom: 1px solid rgba(255,255,255,.25);
}
.contact-list a { font: 900 clamp(26px, 4.4vw, 44px)/1.05 var(--display); text-decoration: none; overflow-wrap: anywhere; }
.contact-list a:hover { color: var(--gold); }
.contact-list span { color: #f0d6e0; font-size: 15px; }
.medical { background: rgba(0,0,0,.18); border-radius: 18px; padding: 24px; position: relative; }
.medical-q { font-weight: 700; margin: 0 0 16px; }
.medical-btns { display: flex; gap: 12px; position: relative; min-height: 52px; }
.medical .btn { border-color: var(--white); }
.medical .btn-ghost { color: var(--white); }
.medical #barca-no { background: var(--white); color: var(--maroon); }
#barca-yes { position: relative; transition: transform .2s ease; }
.medical-result { margin: 14px 0 0; min-height: 1.6em; color: var(--gold); font-weight: 700; }


/* ============ Player bar ============ */
.player {
  position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 50;
  height: var(--bar-h);
  max-width: 720px; margin: 0 auto;
  display: flex; align-items: center; gap: 6px;
  padding: 0 14px 0 8px;
  background: var(--navy); color: var(--white);
  border-radius: 999px;
  box-shadow: 0 10px 30px rgba(15,27,61,.35);
  overflow: hidden;
}
.pl-btn {
  width: 44px; height: 44px; flex: none; border-radius: 50%;
  border: 0; background: transparent; color: var(--white); font-size: 16px; cursor: pointer;
}
.pl-btn:hover { background: var(--navy-2); }
.pl-play { background: var(--gold); color: var(--navy); }
.pl-play:hover { background: #d9b45c; }
.pl-meta { min-width: 0; margin-left: 8px; }
.pl-track { margin: 0; font: 700 20px/1.1 var(--display); letter-spacing: .02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pl-artist { margin: 0; font-size: 12px; color: #aab3cf; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pl-progress { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(255,255,255,.12); }
.pl-progress span { display: block; height: 100%; width: 0; background: var(--lime); }
.player.playing .pl-play { animation: pulse .48s ease-in-out infinite; }
@keyframes pulse { 50% { transform: scale(1.08); } }


/* ============ Live shows: ticket stubs ============ */
.t-live { position: relative; }
.t-live .t-name { color: var(--maroon); }
.stubs { display: flex; gap: 12px; overflow-x: auto; padding: 8px 2px 14px; scroll-snap-type: x mandatory; }
.stub {
  flex: none; width: 168px; scroll-snap-align: start;
  display: flex; flex-direction: column; gap: 4px;
  padding: 14px 16px 14px 20px;
  background: var(--paper); border: 2px dashed var(--navy);
  border-radius: 10px; position: relative;
  transform: rotate(var(--r, -1.5deg));
}
.stub:nth-child(2) { --r: 1.2deg; } .stub:nth-child(3) { --r: -0.6deg; } .stub:nth-child(4) { --r: 1.8deg; }
.stub::before, .stub::after {
  content: ""; position: absolute; left: -9px; width: 16px; height: 16px; border-radius: 50%;
  background: var(--white); border: 2px solid var(--navy); top: calc(50% - 8px);
}
.stub::after { left: auto; right: -9px; }
.stub-top { font-size: 12px; font-weight: 700; color: var(--maroon); }
.stub-name { font: 900 30px/1 var(--display); }
.stub-meta { font-size: 13px; color: var(--muted); }
.stub-next { background: var(--navy); color: var(--white); }
.stub-next .stub-top { color: var(--gold); }
.stub-next .stub-meta { color: #aab3cf; }

/* ============ Stoppage-time footer ============ */
.footer { text-align: center; padding: 72px var(--gutter) calc(var(--bar-h) + 48px); background: var(--navy); color: var(--white); }
.board {
  display: inline-flex; flex-direction: column; align-items: center; gap: 6px;
  background: #05070f; border: 4px solid #2b3555; border-radius: 14px;
  padding: 14px 34px 10px; cursor: pointer; color: inherit;
  box-shadow: 0 0 0 6px var(--navy), 0 0 0 8px #2b3555;
}
.board-label { font: 700 13px/1 var(--body); color: #aab3cf; }
.board-num {
  font: 900 72px/1 var(--display); color: var(--lime);
  text-shadow: 0 0 12px rgba(198,244,50,.7), 0 0 30px rgba(198,244,50,.35);
  font-variant-numeric: tabular-nums;
}
.footer-line { font: 700 clamp(26px, 4.5vw, 46px)/1.1 var(--display); max-width: 24ch; margin: 28px auto 18px; min-height: 2.2em; letter-spacing: .01em; }
.footer-small { color: #aab3cf; font-size: 14px; margin: 0; }

/* ============ Song switcher ============ */
.song-panel {
  position: fixed; left: 12px; right: 12px; bottom: calc(var(--bar-h) + 20px); z-index: 50;
  max-width: 720px; margin: 0 auto; border-radius: 16px; overflow: hidden;
  background: var(--navy); color: var(--white);
  box-shadow: 0 10px 30px rgba(15,27,61,.35);
}
.song-panel[hidden] { display: none; }
.song-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 10px 8px 16px; }
.song-now { margin: 0; font: 700 18px/1.2 var(--display); letter-spacing: .02em; }
.song-now small { display: block; font: 500 12px var(--body); color: #aab3cf; margin-top: 2px; }
.song-close { width: 36px; height: 36px; border-radius: 50%; border: 0; background: var(--navy-2); color: var(--white); cursor: pointer; flex: none; }
#song-embed iframe { display: block; width: 100%; border: 0; }
.pl-song {
  margin-left: auto; flex: none;
  border: 0; border-radius: 999px; cursor: pointer;
  background: var(--lime); color: var(--navy);
  font: 700 13px/1.15 var(--body); padding: 10px 16px; max-width: 150px; text-align: center;
}
.pl-song:hover { filter: brightness(1.05); transform: translateY(-1px); }
.pl-meta { flex: 1; }

/* ============ SIUUU celebration (prank #2) ============ */
/* --siu-dur is set from the audio clip's length in script.js */
.siu-stage {
  --siu-dur: 4.4s;
  position: fixed; inset: 0; z-index: 90; pointer-events: none; overflow: hidden;
  background: radial-gradient(ellipse at 50% 100%, rgba(200,162,75,.45), rgba(15,27,61,.88) 62%);
  opacity: 0; visibility: hidden;
}
.siu-stage.go { visibility: visible; animation: stage var(--siu-dur) ease forwards; }
@keyframes stage { 0% { opacity: 0; } 6% { opacity: 1; } 90% { opacity: 1; } 100% { opacity: 0; } }

.siu-guy {
  position: absolute; left: 50%; bottom: -14vh;
  height: min(72vh, 620px); aspect-ratio: 288 / 700;
  transform-origin: 50% 100%;
}
.siu-guy { margin-left: calc(min(72vh, 620px) * -0.2057); }
.siu-spin { width: 100%; height: 100%; transform-style: preserve-3d; }
.siu-spin img {
  width: 100%; height: 100%; display: block;
  filter: drop-shadow(4px 0 0 #fff) drop-shadow(-4px 0 0 #fff) drop-shadow(0 4px 0 #fff) drop-shadow(0 -4px 0 #fff) drop-shadow(0 18px 24px rgba(0,0,0,.45));
}
/* run in → crouch → jump + spin → land on the SIUUU (56% of the clip) → hold */
.siu-stage.go .siu-guy { animation: guy var(--siu-dur) linear forwards; }
@keyframes guy {
  0%   { transform: translate(-90vw, 0) rotate(-6deg); }
  8%   { transform: translate(-70vw, -22px) rotate(-4deg); }
  14%  { transform: translate(-52vw, 0) rotate(-6deg); }
  20%  { transform: translate(-36vw, -22px) rotate(-4deg); }
  26%  { transform: translate(-20vw, 0) rotate(-6deg); }
  32%  { transform: translate(-8vw, -18px) rotate(-3deg); }
  38%  { transform: translate(0, 0) rotate(0); }
  44%  { transform: translate(0, 6vh) scale(1.04, .9); }
  50%  { transform: translate(0, -30vh) scale(1); animation-timing-function: ease-in; }
  56%  { transform: translate(0, 0) scale(1.06, .9); }
  59%  { transform: translate(0, -2vh) scale(1); }
  62%, 100% { transform: translate(0, 0) scale(1.03); }
}
.siu-stage.go .siu-spin { animation: spin var(--siu-dur) ease-in-out forwards; }
@keyframes spin { 0%, 44% { transform: rotateY(0); } 55%, 100% { transform: rotateY(360deg); } }

.siu-text {
  position: absolute; left: 0; right: 0; top: 8vh; text-align: center;
  font: 900 clamp(84px, 20vw, 260px)/1 var(--display);
  color: var(--gold); -webkit-text-stroke: 3px var(--navy);
  opacity: 0;
}
.siu-stage.go .siu-text { animation: siuText var(--siu-dur) cubic-bezier(.2,.9,.3,1.3) forwards; }
@keyframes siuText { 0%, 55% { opacity: 0; transform: scale(.3) rotate(-10deg); } 62% { opacity: 1; transform: scale(1.1) rotate(-4deg); } 68%, 86% { opacity: 1; transform: scale(1) rotate(-4deg); } 100% { opacity: 0; transform: scale(1.3) rotate(-4deg); } }
.siu-ring {
  position: absolute; left: 50%; bottom: 2vh; width: 80px; height: 24px; margin-left: -40px;
  border: 5px solid var(--gold); border-radius: 50%; opacity: 0;
}
.siu-stage.go .siu-ring { animation: ring var(--siu-dur) ease-out forwards; }
@keyframes ring { 0%, 55% { opacity: 0; transform: scale(.5); } 57% { opacity: 1; transform: scale(1); } 80%, 100% { opacity: 0; transform: scale(16); } }
.confetti { position: fixed; top: -12px; width: 10px; height: 14px; z-index: 91; pointer-events: none; border-radius: 2px; }
.shake { animation: shake .35s ease; }
@keyframes shake { 20% { transform: translate(-6px, 3px); } 40% { transform: translate(5px, -4px); } 60% { transform: translate(-4px, 2px); } 80% { transform: translate(3px, -1px); } }

/* ============ Turf card: two photos ============ */
.duo { display: grid; grid-template-columns: 1.3fr 1fr; gap: 10px; }
.duo figure { margin: 0; position: relative; }
.duo img { width: 100%; height: 100%; aspect-ratio: auto; object-fit: cover; border-radius: 12px; min-height: 280px; }
.duo figure:last-child img { object-position: center 25%; }
.duo figcaption {
  position: absolute; left: 8px; right: 8px; bottom: 8px;
  background: var(--lime); color: var(--navy); font-weight: 700; font-size: 13px; line-height: 1.2;
  padding: 6px 8px; border-radius: 6px;
}


/* ============ Football cursor (laptops only) ============ */
@media (hover: hover) and (pointer: fine) {
  body { cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28' viewBox='0 0 28 28'%3E%3Ccircle cx='14' cy='14' r='12.5' fill='%23fff' stroke='%230F1B3D' stroke-width='2'/%3E%3Cpolygon points='14,8.5 19,12.2 17.1,18 10.9,18 9,12.2' fill='%230F1B3D'/%3E%3Cpath d='M14 8.5V2.5M19 12.2l5.6-2M17.1 18l3.4 5M10.9 18l-3.4 5M9 12.2l-5.6-2' stroke='%230F1B3D' stroke-width='1.6'/%3E%3C/svg%3E") 14 14, auto; }
}
.trail { position: fixed; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; background: var(--lime); pointer-events: none; z-index: 120; }

/* ============ Night match mode ============ */
.flood-toggle {
  display: inline-flex; align-items: center; gap: 8px; margin: 12px 0 0;
  font: 700 14px/1 var(--body); color: var(--navy);
  background: transparent; border: 2px solid var(--navy); border-radius: 999px; padding: 8px 14px; cursor: pointer;
}
.flood-dot { width: 12px; height: 12px; border-radius: 50%; background: #9aa5c4; box-shadow: inset 0 0 0 2px rgba(0,0,0,.15); }
body.night .flood-dot { background: var(--lime); box-shadow: 0 0 10px var(--lime); }
.floodlights { position: fixed; inset: 0; pointer-events: none; z-index: 40; opacity: 0; transition: opacity .3s; overflow: hidden; }
.fl { position: absolute; top: -10vh; width: 70vw; height: 120vh; mix-blend-mode: screen; }
.fl-l { left: -20vw; background: conic-gradient(from 150deg at 20% 0%, transparent 0deg, rgba(255,250,220,.16) 12deg, rgba(255,250,220,.05) 30deg, transparent 42deg); transform-origin: 20% 0; }
.fl-r { right: -20vw; background: conic-gradient(from 168deg at 80% 0%, transparent 0deg, rgba(255,250,220,.05) 12deg, rgba(255,250,220,.16) 30deg, transparent 42deg); transform-origin: 80% 0; }
body.night .floodlights { opacity: 1; }
body.night.lights-on .floodlights { animation: flicker 1.1s steps(1) 1; }
body.night.lights-on .fl-l { animation: sweepL 1.6s ease-out 1; }
body.night.lights-on .fl-r { animation: sweepR 1.6s ease-out 1; }
@keyframes flicker { 0% {opacity:0} 10% {opacity:1} 20% {opacity:.1} 35% {opacity:1} 45% {opacity:.3} 60%,100% {opacity:1} }
@keyframes sweepL { from { transform: rotate(-25deg); } to { transform: rotate(0); } }
@keyframes sweepR { from { transform: rotate(25deg); } to { transform: rotate(0); } }

body.night { background: #060c1f; color: #e8ecf7; --muted: #9aa6c6; }
body.night .flood-toggle { color: #e8ecf7; border-color: var(--lime); }
body.night .hero-number { -webkit-text-stroke-color: var(--lime); opacity: .35; }
body.night .hero-photo img { border-color: #0f1a3a; box-shadow: 0 0 0 2px var(--gold), 0 0 60px rgba(255,250,220,.12); }
body.night .btn { background: var(--gold); border-color: var(--gold); color: var(--navy); }
body.night .btn-ghost { background: transparent; color: #e8ecf7; border-color: #e8ecf7; }
body.night .scoreboard { box-shadow: 0 0 0 2px #24305a; }
body.night .about { background: #0b1430; }
body.night .fixture:not(.fixture-photo) { background: #0f1a3a; border-color: #2b3a6b; }
body.night .fixture:not(.fixture-photo) .ft { background: var(--gold); color: var(--navy); }
body.night .tracklist { border-top-color: #e8ecf7; }
body.night .tracklist li { border-bottom-color: #24305a; }
body.night .t-live .t-name { color: #ff8fb8; }
body.night .stub { background: #0f1a3a; border-color: #e8ecf7; }
body.night .stub::before, body.night .stub::after { background: #060c1f; border-color: #e8ecf7; }
body.night .stub-top { color: #ff8fb8; }
body.night .stub-next { background: var(--gold); color: var(--navy); }
body.night .stub-next .stub-meta, body.night .stub-next .stub-top { color: var(--navy); }
body.night .vote { background: #0f1a3a; border-color: #2b3a6b; }
body.night .footer { background: #0b1430; }
body.night .player { box-shadow: 0 0 0 1px #2b3a6b, 0 10px 30px rgba(0,0,0,.5); }
body.night .lineup, body.night .shootout { background-color: #164f2c; }

/* ============ Ballon d'Or vote ============ */
.vote {
  margin-top: 48px; padding: 26px; border-radius: 18px;
  border: 2px solid var(--navy); background: var(--paper);
  position: relative; overflow: hidden;
}
.vote-title { font: 900 34px/1 var(--display); margin: 0 0 6px; }
.vote-q { margin: 0 0 18px; color: var(--muted); }
.vote-btns { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; min-height: 56px; }
#vote-lm { transition: transform .25s ease, opacity .25s ease; transform-origin: left center; }
.vote-result { margin-top: 18px; }
.vote-bar { height: 16px; border-radius: 999px; background: #d8dce8; overflow: hidden; }
.vote-bar span { display: block; height: 100%; width: 0; background: var(--gold); transition: width 1.2s cubic-bezier(.2,.8,.2,1); }
.vote-result p { margin: 10px 0 0; font-weight: 700; }

/* ============ Penalty shootout ============ */
.shootout { background: var(--turf); color: var(--white); padding: 96px 0; overflow: hidden; }
.shootout .section-sub { color: #cfe8d7; }
.pens { display: flex; gap: 10px; margin: 0 0 22px; }
.pens span { width: 22px; height: 22px; border-radius: 50%; border: 2px solid rgba(255,255,255,.7); display: grid; place-items: center; font: 900 13px/1 var(--body); }
.pens span.scored { background: var(--lime); border-color: var(--lime); color: var(--navy); }
.pens span.scored::after { content: "✓"; }
.pens span.missed { background: #b33a3a; border-color: #b33a3a; }
.pens span.missed::after { content: "✕"; }
.goal-area { position: relative; max-width: 620px; padding-bottom: 150px; }
.goal {
  position: relative; width: 100%; aspect-ratio: 3 / 1.15;
  border: 8px solid #fff; border-bottom: 0; border-radius: 6px 6px 0 0;
  background:
    repeating-linear-gradient(90deg, rgba(255,255,255,.28) 0 1.5px, transparent 1.5px 18px),
    repeating-linear-gradient(0deg, rgba(255,255,255,.28) 0 1.5px, transparent 1.5px 18px),
    rgba(0,0,0,.15);
  box-shadow: 0 8px 0 -4px rgba(0,0,0,.2);
}
.goal::after { content: ""; position: absolute; left: -16px; right: -16px; bottom: 0; height: 3px; background: rgba(255,255,255,.85); }
.keeper { position: absolute; left: 50%; bottom: 0; width: 56px; height: 104px; margin-left: -28px; transform-origin: 50% 100%; transition: transform .45s cubic-bezier(.2,.8,.3,1); }
.keeper > span { position: absolute; }
.k-head { width: 26px; height: 26px; border-radius: 50%; background: #c99474; left: 15px; top: 0; box-shadow: inset 0 6px 0 #222; }
.k-body { width: 40px; height: 52px; left: 8px; top: 24px; background: var(--gold); border-radius: 12px 12px 6px 6px; box-shadow: 0 30px 0 -10px #14151a; }
.k-arm { width: 12px; height: 44px; top: -10px; background: linear-gradient(var(--lime) 0 22%, var(--gold) 22%); border-radius: 8px; }
.k-arm-l { left: -2px; transform: rotate(-24deg); } .k-arm-r { right: -2px; transform: rotate(24deg); }
.keeper.dive-0 { transform: translateX(-190%) translateY(-18%) rotate(-72deg); }
.keeper.dive-2 { transform: translateX(190%) translateY(-18%) rotate(72deg); }
.keeper.dive-1 { transform: translateY(-22%); }
.ball {
  position: absolute; left: 50%; bottom: 92px; width: 34px; height: 34px; margin-left: -17px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28' viewBox='0 0 28 28'%3E%3Ccircle cx='14' cy='14' r='12.5' fill='%23fff' stroke='%230F1B3D' stroke-width='2'/%3E%3Cpolygon points='14,8.5 19,12.2 17.1,18 10.9,18 9,12.2' fill='%230F1B3D'/%3E%3Cpath d='M14 8.5V2.5M19 12.2l5.6-2M17.1 18l3.4 5M10.9 18l-3.4 5M9 12.2l-5.6-2' stroke='%230F1B3D' stroke-width='1.6'/%3E%3C/svg%3E") center / contain no-repeat;
  filter: drop-shadow(0 4px 4px rgba(0,0,0,.35));
}
.pen-msg { position: absolute; left: 0; right: 0; bottom: 0; margin: 0; text-align: center; font: 900 30px/1 var(--display); letter-spacing: .02em; }
.shoot-btns { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 8px; }
.shootout .btn { background: var(--white); color: var(--navy); border-color: var(--white); }
.shootout .btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.shootout .btn-ghost { background: transparent; color: var(--white); }
.pen-again { margin-top: 14px; }
@media (max-width: 480px) {
  .keeper { width: 40px; height: 76px; margin-left: -20px; }
  .k-head { width: 20px; height: 20px; left: 10px; }
  .k-body { width: 30px; height: 38px; left: 5px; top: 18px; }
  .k-arm { height: 32px; width: 9px; }
  .shoot-btns .btn { flex: 1; padding: 13px 8px; font-size: 15px; }
  .pen-msg { font-size: 21px; }
}

/* ============ Responsive ============ */
@media (max-width: 1000px) {
  .fixtures { grid-template-columns: 1fr 1fr; }
  .fixtures .fixture:nth-child(3) { grid-column: 1 / -1; }
}
@media (max-width: 860px) {
  .hero-grid, .about-grid, .lineup-grid { grid-template-columns: 1fr; }
  .hero-photo { max-width: 420px; }
  .about-photo { max-width: 360px; }
  .fixtures { grid-template-columns: 1fr; }
  .fixtures .fixture:nth-child(3) { grid-column: auto; }
  .fixture-photo { grid-template-columns: 1fr; }
  .tracklist li { grid-template-columns: 32px 1fr auto; }
  .t-desc { grid-column: 2 / -1; grid-row: 2; }
}
@media (max-width: 480px) {
  body { font-size: 16px; }
  .scoreboard { font-size: 16px; gap: 10px; padding: 8px 12px; }
  .scoreboard .score { font-size: 20px; }
  .pl { width: 70px; font-size: 11px; }
  .pl .dot { width: 30px; height: 30px; font-size: 15px; }
  .pl .armband { right: 10px; }
  .player { left: 8px; right: 8px; bottom: 8px; }
  .pl-btn { width: 40px; height: 40px; }
  .fixture { padding: 20px; }
  .board-num { font-size: 60px; }
  .pl-song { font-size: 11px; padding: 8px 10px; max-width: 86px; }
  .pl-artist { display: none; }
  .pl-track { font-size: 17px; }
  .duo img { min-height: 200px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
