:root {
  color-scheme: dark;
  --bg: #0c0708;
  --bg-2: #140b0d;
  --ink: #f6ece6;
  --ink-2: rgba(246, 236, 230, .68);
  --ink-3: rgba(246, 236, 230, .42);
  --line: rgba(246, 236, 230, .09);
  --line-2: rgba(246, 236, 230, .16);
  --maroon: #7d1a2b;
  --maroon-hi: #a8263c;
  --maroon-lo: #3d0d16;
  --gold: #e8c98f;
  --pitch: #12301f;
  --pitch-hi: #18402a;
  --ease: cubic-bezier(.32, .72, 0, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --r: 2rem;
  --gutter: clamp(16px, 4vw, 56px);
  --display: "Kanit", "Anuphan", system-ui, sans-serif;
  --body: "Anuphan", system-ui, sans-serif;
  --mono: "Chakra Petch", "Anuphan", ui-monospace, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; background: #050304; }
body {
  margin: 0;
  min-height: 100dvh;
  /* page-long fade: black at the top, oxblood by the footer */
  background: linear-gradient(180deg, #050304 0%, #0a0507 22%, #1a070c 48%, #3a0c17 74%, #5e1424 92%, #6b1729 100%);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3 { margin: 0; font-family: var(--display); font-weight: 900; line-height: 1.05; letter-spacing: -.01em; }
p { margin: 0; }
.muted { color: var(--ink-3); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 8px; }

/* ── atmosphere ── */
.grain {
  position: fixed; inset: 0; z-index: 3; pointer-events: none; opacity: .05; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
/* ambient motion: two slow floodlight beams + drifting dust (canvas, see app.js) */
.ambient { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.beam {
  position: absolute; top: -20vh; width: 46vmax; height: 150vh;
  background: linear-gradient(180deg, rgba(255, 236, 214, .085), rgba(255, 236, 214, .025) 45%, transparent 75%);
  clip-path: polygon(44% 0, 56% 0, 100% 100%, 0 100%);
  filter: blur(18px);
  transform-origin: 50% 0;
  will-change: transform;
}
.beam--l { left: -6vmax; animation: sway-l 19s cubic-bezier(.45, 0, .55, 1) infinite alternate; }
.beam--r { right: -6vmax; animation: sway-r 23s cubic-bezier(.45, 0, .55, 1) infinite alternate; }
@keyframes sway-l { from { transform: rotate(-34deg); } to { transform: rotate(-16deg); } }
@keyframes sway-r { from { transform: rotate(32deg); } to { transform: rotate(14deg); } }
.dust { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .9; }
main, footer { position: relative; z-index: 1; }

/* ── nav ── */
.nav {
  position: fixed; z-index: 4; top: calc(16px + env(safe-area-inset-top)); left: 50%; transform: translateX(-50%);
  display: flex; align-items: center; gap: 2px; padding: 6px;
  border-radius: 999px; background: rgba(20, 11, 13, .62);
  border: 1px solid var(--line-2);
  backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4);
  box-shadow: 0 20px 40px -20px rgba(0, 0, 0, .6);
  white-space: nowrap;
}
.nav a {
  text-decoration: none; font-size: 14px; padding: 8px 14px; border-radius: 999px; color: var(--ink-2);
  transition: background .5s var(--ease), color .5s var(--ease);
}
.nav a:hover { background: rgba(246, 236, 230, .07); color: var(--ink); }
.nav__brand { margin-right: 4px; display: flex; align-items: center; gap: 8px; font-family: var(--mono); font-weight: 700; color: var(--ink) !important; letter-spacing: .04em; }

/* ── primitives ── */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-weight: 600; font-size: 11px; letter-spacing: .22em; text-transform: uppercase;
  color: var(--gold); padding: 5px 12px; border-radius: 999px;
  background: rgba(232, 201, 143, .07); border: 1px solid rgba(232, 201, 143, .18);
}
.eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--maroon-hi); box-shadow: 0 0 10px var(--maroon-hi); }

.bezel {
  padding: 6px; border-radius: var(--r);
  background: rgba(246, 236, 230, .035);
  border: 1px solid var(--line);
}
.bezel__core {
  border-radius: calc(var(--r) - 6px);
  background: linear-gradient(180deg, rgba(36, 18, 22, .92), rgba(20, 11, 13, .96));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .07), 0 30px 60px -30px rgba(0, 0, 0, .7);
}

.btn {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 8px 8px 8px 22px; border-radius: 999px; border: 0;
  font-weight: 600; font-size: 15px; text-decoration: none;
  transition: transform .5s var(--ease), background .5s var(--ease);
}
.btn:active { transform: scale(.97); }
.btn__icon {
  display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
  font-size: 15px; transition: transform .6s var(--ease);
}
.btn:hover .btn__icon { transform: translate(2px, -1px) scale(1.06); }
.btn--primary { background: var(--maroon-hi); color: #fff; box-shadow: 0 10px 30px -10px rgba(168, 38, 60, .8), inset 0 1px 0 rgba(255, 255, 255, .2); }
.btn--primary:hover { background: #b92d45; }
.btn--primary .btn__icon { background: rgba(0, 0, 0, .22); }
.btn--ghost { background: rgba(246, 236, 230, .06); border: 1px solid var(--line-2); }
.btn--ghost:hover { background: rgba(246, 236, 230, .1); }
.btn--ghost .btn__icon { background: rgba(246, 236, 230, .08); }

/* reveal */
.reveal { opacity: 0; transform: translateY(40px); filter: blur(6px); transition: opacity 1s var(--ease-out), transform 1.1s var(--ease-out), filter 1s var(--ease-out); }
.reveal.is-in { opacity: 1; transform: none; filter: none; }

/* ── hero ── */
.hero {
  min-height: min(100dvh, 960px);
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); align-items: center; gap: clamp(24px, 5vw, 80px);
  padding: 120px var(--gutter) 64px; max-width: 1400px; margin: 0 auto;
}
.hero__copy { display: flex; flex-direction: column; align-items: flex-start; gap: 28px; }
.hero__title { font-size: clamp(64px, 12vw, 176px); line-height: .86; font-style: italic; letter-spacing: -.02em; }
.hero__line { display: block; }
.hero__line--outline { color: transparent; -webkit-text-stroke: 2px var(--ink); }
.hero__line--outline em { font-style: inherit; color: var(--maroon-hi); -webkit-text-stroke: 0; text-shadow: 0 0 40px rgba(168, 38, 60, .6); }
.hero__lede { max-width: 34ch; color: var(--ink-2); font-size: clamp(16px, 1.4vw, 19px); }
.hero__lede strong { color: var(--ink); font-weight: 600; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; }

.next { width: min(100%, 520px); }
.next__core { padding: 22px 24px 20px; }
.next__head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-family: var(--mono); font-size: 13px; }
.next__label { color: var(--gold); letter-spacing: .14em; text-transform: uppercase; font-weight: 600; }
.next__when { color: var(--ink-2); text-align: right; }
.next__vs { display: flex; align-items: center; gap: 14px; margin: 10px 0 16px; font-family: var(--display); font-weight: 800; font-size: clamp(26px, 3.2vw, 36px); line-height: 1.15; }
.next__team--us { color: var(--ink); }
.next__team { color: var(--ink-2); }
.next__x { font-family: var(--mono); font-size: 12px; font-weight: 700; color: var(--bg); background: var(--gold); padding: 3px 8px; border-radius: 6px; letter-spacing: .1em; }
.countdown { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.countdown div { background: rgba(0, 0, 0, .28); border: 1px solid var(--line); border-radius: 14px; padding: 10px 6px 8px; text-align: center; }
.countdown b { display: block; font-family: var(--mono); font-size: clamp(24px, 3vw, 34px); font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums; }
.countdown span { font-size: 12px; color: var(--ink-3); }

/* hero photo stack */
.hero__stack { position: relative; aspect-ratio: 4 / 5; width: 100%; max-width: 520px; justify-self: center; }
.card-photo {
  position: absolute; inset: 0; margin: auto; width: 74%; height: 82%;
  padding: 6px; border-radius: 28px; background: rgba(246, 236, 230, .05); border: 1px solid var(--line-2);
  transition: transform 1.2s var(--ease), opacity 1.2s var(--ease);
  will-change: transform;
}
.card-photo__in { position: relative; height: 100%; border-radius: 22px; overflow: hidden; background: var(--bg-2); }
.card-photo img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.85) contrast(1.05); }
.card-photo__in::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(12, 7, 8, .92)); }
.card-photo__cap { position: absolute; z-index: 1; left: 18px; right: 18px; bottom: 16px; display: flex; justify-content: space-between; align-items: end; }
.card-photo__cap b { font-family: var(--display); font-size: 34px; font-weight: 900; font-style: italic; line-height: 1; }
.card-photo__cap span { font-family: var(--mono); font-size: 12px; color: var(--gold); letter-spacing: .1em; }

/* ── strip ── */
.strip {
  max-width: 1400px; margin: 0 auto; padding: 0 var(--gutter);
  display: grid; grid-template-columns: repeat(4, 1fr);
}
.strip div { padding: 26px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 2px; }
.strip div + div { padding-left: 24px; border-left: 1px solid var(--line); }
.strip b { font-family: var(--display); font-size: clamp(32px, 4.5vw, 60px); font-weight: 900; font-style: italic; line-height: 1; }
.strip span { color: var(--ink-3); font-size: 14px; }

/* ── sections ── */
.section { max-width: 1400px; margin: 0 auto; padding: clamp(88px, 12vw, 160px) var(--gutter) 0; scroll-margin-top: 40px; }
.section__head { display: grid; grid-template-columns: auto 1fr; grid-template-areas: "eb eb" "h p"; gap: 20px 64px; align-items: end; margin-bottom: 48px; }
.section__head .eyebrow { grid-area: eb; justify-self: start; }
.section__head h2 { grid-area: h; font-size: clamp(44px, 7vw, 96px); font-style: italic; }
.section__head p { grid-area: p; max-width: 42ch; color: var(--ink-2); justify-self: end; }

/* ── fixtures ── */
.fixtures { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.fx {
  display: grid; grid-template-columns: 132px 1fr auto; align-items: center; gap: 28px;
  padding: 6px; border-radius: var(--r); background: rgba(246, 236, 230, .03); border: 1px solid var(--line);
  transition: transform .7s var(--ease), border-color .7s var(--ease), background .7s var(--ease);
}
.fx:hover { transform: translateX(6px); border-color: var(--line-2); }
.fx__date {
  border-radius: calc(var(--r) - 6px); padding: 18px 12px; text-align: center;
  background: linear-gradient(160deg, var(--maroon), var(--maroon-lo));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14);
}
.fx__dow { font-size: 13px; color: rgba(255, 255, 255, .7); }
.fx__day { font-family: var(--display); font-size: 56px; font-weight: 900; font-style: italic; line-height: .95; }
.fx__mon { font-family: var(--display); font-weight: 800; font-size: 18px; }
.fx__main { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.fx__meta { font-family: var(--mono); font-size: 13px; color: var(--ink-3); letter-spacing: .06em; display: flex; flex-wrap: wrap; gap: 4px 14px; }
.fx__match { font-family: var(--display); font-weight: 800; font-size: clamp(24px, 3vw, 40px); line-height: 1.15; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 16px; }
.fx__match .vs { font-family: var(--mono); font-size: 12px; font-weight: 700; color: var(--ink-3); letter-spacing: .14em; }
.fx__match .us { color: var(--ink); }
.fx__match .them { color: var(--ink-2); }
.fx__side { padding-right: 22px; text-align: right; }
.fx__tag { display: inline-block; font-family: var(--mono); font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--ink-2); }
.fx__round { font-family: var(--mono); font-size: 13px; color: var(--ink-3); margin-top: 6px; }

.fx.is-next { background: rgba(168, 38, 60, .1); border-color: rgba(168, 38, 60, .5); box-shadow: 0 30px 80px -40px rgba(168, 38, 60, .8); }
.fx.is-next .fx__tag { background: var(--gold); color: var(--bg); border-color: transparent; }
.fx.is-done { opacity: .5; }
.fx.is-bye .fx__date { background: rgba(246, 236, 230, .06); box-shadow: none; }
.fx.is-bye .fx__match { color: var(--ink-3); font-size: clamp(20px, 2.4vw, 30px); }

.all { margin-top: 28px; border-radius: 24px; border: 1px solid var(--line); background: rgba(246, 236, 230, .02); }
.all summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 18px 22px; cursor: pointer; color: var(--ink-2); font-weight: 500; }
.all summary::-webkit-details-marker { display: none; }
.all__chev { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: rgba(246, 236, 230, .06); transition: transform .6s var(--ease); }
.all[open] .all__chev { transform: rotate(45deg); }
.all__body { padding: 0 22px 22px; display: grid; gap: 18px; }
.day { display: grid; grid-template-columns: 110px 1fr; gap: 16px; padding-top: 18px; border-top: 1px solid var(--line); }
.day__d { font-family: var(--display); font-weight: 800; font-size: 20px; }
.day__slots { display: grid; gap: 12px; }
.slot { display: grid; grid-template-columns: 130px 60px 1fr; gap: 10px; font-size: 15px; align-items: start; }
.slot__t { font-family: var(--mono); color: var(--ink-3); }
.slot__a { font-family: var(--mono); font-weight: 700; color: var(--gold); }
.slot__m { display: grid; gap: 2px; color: var(--ink-2); }
.slot__m .hl { color: var(--ink); font-weight: 600; }
.slot__m .hl::before { content: "● "; color: var(--maroon-hi); }

/* ── tactics ── */
.tactics { display: flex; justify-content: center; }

.pitch-wrap { width: min(100%, 760px); }
.pitch {
  position: relative; aspect-ratio: 680 / 900; overflow: hidden;
  background:
    repeating-linear-gradient(180deg, var(--pitch) 0 11.11%, var(--pitch-hi) 11.11% 22.22%);
}
.pitch::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(80% 60% at 50% 50%, transparent 40%, rgba(0, 0, 0, .45)); }
.pitch__lines { position: absolute; inset: 0; width: 100%; height: 100%; color: rgba(255, 255, 255, .22); }
.pitch__players { position: absolute; inset: 0; z-index: 1; }
.slotp { position: absolute; transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; gap: 8px; width: 26%; }
.slotp__num {
  display: grid; place-items: center; width: clamp(44px, 8.5vw, 68px); aspect-ratio: 1; border-radius: 50%;
  font-family: var(--display); font-style: italic; font-weight: 900; font-size: clamp(20px, 3.6vw, 30px); color: #fff;
  background: radial-gradient(circle at 35% 30%, #c4344d, var(--maroon) 70%);
  border: 2px solid rgba(255, 255, 255, .85);
  box-shadow: 0 12px 26px -10px rgba(0, 0, 0, .8), 0 0 0 6px rgba(168, 38, 60, .18);
}
.slotp[data-n="1"] .slotp__num { background: radial-gradient(circle at 35% 30%, #f1d9a8, var(--gold) 70%); color: var(--bg); }
.slotp__role .short { display: none; }
.slotp__role { white-space: nowrap; font-size: clamp(11px, 1.6vw, 14px); font-weight: 600; line-height: 1.25; text-align: center; color: rgba(255, 255, 255, .9); background: rgba(12, 7, 8, .72); padding: 2px 10px; border-radius: 999px; }

/* ── squad ── */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 36px; }
.chip { border: 1px solid var(--line-2); background: transparent; padding: 8px 16px; border-radius: 999px; font-size: 14px; color: var(--ink-2); transition: background .5s var(--ease), color .5s var(--ease), border-color .5s var(--ease); }
.chip:hover { color: var(--ink); }
.chip.is-on { background: var(--ink); color: var(--bg); border-color: var(--ink); }

.squad { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 22px; }

/* ── venue ── */
.venue { padding-top: clamp(88px, 12vw, 160px); }
.venue__core { padding: clamp(28px, 5vw, 64px); display: flex; justify-content: space-between; align-items: flex-end; gap: 28px; flex-wrap: wrap;
  background: radial-gradient(100% 140% at 100% 0%, rgba(168, 38, 60, .35), transparent 60%), linear-gradient(180deg, rgba(36, 18, 22, .92), rgba(20, 11, 13, .96)); }
.venue h2 { font-size: clamp(40px, 6vw, 80px); font-style: italic; margin: 18px 0 12px; }
.venue p { color: var(--ink-2); }

/* ── footer ── */
.footer { text-align: center; padding: 120px var(--gutter) 64px; color: var(--ink-2); display: grid; gap: 6px; font-size: 15px; }
.footer__motto { font-family: var(--display); font-weight: 900; font-style: italic; font-size: clamp(28px, 4vw, 48px); color: var(--ink); line-height: 1.2; }


/* ── responsive ── */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding-top: 104px; min-height: auto; }
  .hero__stack { max-width: 360px; order: -1; width: 78%; }
  .section__head { grid-template-columns: 1fr; grid-template-areas: "eb" "h" "p"; }
  .section__head p { justify-self: start; }
  .strip { grid-template-columns: repeat(2, 1fr); }
  .strip div:nth-child(3) { padding-left: 0; border-left: 0; }
  .strip div:nth-child(n+3) { border-top: 0; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .nav { top: calc(12px + env(safe-area-inset-top)); }
  .nav a { padding: 8px 11px; font-size: 13px; }
  .next__head { flex-direction: column; gap: 2px; }
  .next__when { text-align: left; }
  .next__core { padding: 18px 16px 16px; }
  .hero__stack { width: 70%; }
  .fx { grid-template-columns: 88px 1fr; gap: 16px; }
  .fx:hover { transform: none; }
  .fx__day { font-size: 40px; }
  .fx__mon { font-size: 15px; }
  .fx__side { grid-column: 1 / -1; text-align: left; padding: 0 12px 10px; display: flex; gap: 10px; align-items: center; }
  .fx__round { margin: 0; }
  .day { grid-template-columns: 1fr; gap: 8px; }
  .slot { grid-template-columns: 1fr; gap: 2px; }
  .slot__t { display: flex; gap: 10px; }
  .squad { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .slotp__role .full { display: none; }
  .slotp__role .short { display: inline; }
  .slotp__role { padding: 1px 8px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; filter: none; }
  html { scroll-behavior: auto; }
}

/* ── FUT cards ── */
.squad { perspective: 1400px; }
.pl { container-type: inline-size; }
.pl[hidden] { display: none; }
.fut {
  --rx: 0deg; --ry: 0deg; --mx: 50%; --my: 30%;
  display: block; width: 100%; padding: 0; border: 0; background: none; text-align: left;
  transform: perspective(900px) rotateX(var(--rx)) rotateY(var(--ry));
  transition: transform .7s var(--ease);
  filter: drop-shadow(0 18px 24px rgba(0, 0, 0, .45));
}
.fut.is-tilt { transition: transform .2s var(--ease-out); }
.fut:hover { filter: drop-shadow(0 26px 34px rgba(0, 0, 0, .55)); }
.fut__in { position: relative; aspect-ratio: 100 / 140; transform-style: preserve-3d; transition: transform .9s var(--ease); }
.fut.is-flipped .fut__in { transform: rotateY(180deg); }
.fut__face {
  position: absolute; inset: 0; overflow: hidden;
  backface-visibility: hidden; -webkit-backface-visibility: hidden;
  clip-path: polygon(13% 0, 87% 0, 100% 6%, 100% 91%, 50% 100%, 0 91%, 0 6%);
  background: var(--trim);
}
/* inner plate sits inside the trim, same silhouette */
.fut__face::before {
  content: ""; position: absolute; inset: 1.8cqw; z-index: 0;
  clip-path: inherit; background: var(--plate);
}
.fut__face > * { position: relative; z-index: 1; }
.fut__back { transform: rotateY(180deg); }

.fut--gold {
  --trim: linear-gradient(150deg, #fff3c9, #c99a3f 35%, #fbe6a6 55%, #9c6d22 85%);
  --plate: linear-gradient(160deg, #f7e5ad 0%, #e2bf6c 32%, #c4953f 62%, #e9cc85 100%);
  --fg: #2b1a04; --fg-2: rgba(43, 26, 4, .7); --line-c: rgba(43, 26, 4, .22); --chip: rgba(43, 26, 4, .1);
}
.fut--red {
  --trim: linear-gradient(150deg, #f6dca0, #9c6d22 30%, #f3d58e 55%, #6d4710 85%);
  --plate: linear-gradient(160deg, #c8384f 0%, #8e1d30 38%, #4a0f1a 72%, #7d1a2b 100%);
  --fg: #fff4ea; --fg-2: rgba(255, 244, 234, .72); --line-c: rgba(255, 244, 234, .2); --chip: rgba(255, 255, 255, .1);
}
.fut__front, .fut__back { color: var(--fg); }

.fut__ovr { position: absolute; top: 13cqw; left: 10cqw; display: flex; flex-direction: column; align-items: center; line-height: 1; z-index: 2; }
.fut__ovr b { font-family: var(--display); font-weight: 900; font-size: 17cqw; letter-spacing: -.03em; }
.fut__ovr span { font-family: var(--mono); font-weight: 700; font-size: 7cqw; margin-top: 1cqw; }
.fut__ovr i { font-style: normal; font-family: var(--mono); font-weight: 700; font-size: 4.4cqw; margin-top: 3cqw; padding: .6cqw 2cqw; border-radius: 99px; background: var(--chip); border: 1px solid var(--line-c); }
.fut__img {
  position: absolute; top: 7cqw; right: 7cqw; width: 64cqw; aspect-ratio: 1;
  -webkit-mask-image: linear-gradient(180deg, #000 62%, transparent 98%); mask-image: linear-gradient(180deg, #000 62%, transparent 98%);
}
.fut__img img { width: 100%; height: 100%; object-fit: cover; border-radius: 6cqw 6cqw 0 0; filter: saturate(.95) contrast(1.05); }
.fut__name {
  position: absolute; top: 70cqw; left: 8cqw; right: 8cqw; text-align: center;
  font-family: var(--display); font-weight: 900; font-size: 10.5cqw; line-height: 1.2;
  padding-bottom: 2cqw; border-bottom: 1px solid var(--line-c);
}
.fut__stats { position: absolute; top: 89cqw; left: 13cqw; right: 13cqw; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 1.2cqw 8cqw; grid-auto-flow: column; grid-template-rows: repeat(3, auto); }
.fut__stats li { font-family: var(--mono); font-weight: 600; font-size: 5.6cqw; color: var(--fg-2); display: flex; gap: 2cqw; align-items: baseline; line-height: 1.3; }
.fut__stats b { color: var(--fg); font-weight: 700; min-width: 7cqw; }
.fut__shine {
  position: absolute; inset: 0; z-index: 3; pointer-events: none; mix-blend-mode: soft-light;
  background:
    radial-gradient(70cqw 70cqw at var(--mx) var(--my), rgba(255, 255, 255, .55), transparent 60%),
    linear-gradient(115deg, transparent 38%, rgba(255, 255, 255, .55) 48%, transparent 58%) no-repeat;
  background-size: 100% 100%, 300% 100%;
  background-position: 0 0, 150% 0;
  animation: futSweep 7s var(--ease) infinite;
}
.pl:nth-child(3n+2) .fut__shine { animation-delay: 2.3s; }
.pl:nth-child(3n) .fut__shine { animation-delay: 4.6s; }
@keyframes futSweep { 0%, 70% { background-position: 0 0, 150% 0; } 100% { background-position: 0 0, -50% 0; } }

.fut__back { padding: 13cqw 10cqw 0; display: flex; flex-direction: column; gap: 4cqw; }
.fut__bname { text-align: center; font-family: var(--display); font-weight: 900; font-size: 10cqw; line-height: 1.1; }
.fut__bname small { display: block; font-family: var(--mono); font-weight: 600; font-size: 4.6cqw; color: var(--fg-2); margin-top: 1cqw; letter-spacing: .06em; }
.fut__pos { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.4cqw; }
.fut__pos span { display: inline-flex; align-items: center; gap: 1.4cqw; font-size: 4.2cqw; font-weight: 600; padding: .6cqw 2.4cqw .6cqw .8cqw; border-radius: 99px; background: var(--chip); }
.fut__pos b { display: grid; place-items: center; min-width: 5.6cqw; height: 5.6cqw; border-radius: 99px; background: var(--fg); color: transparent; font-family: var(--mono); font-size: 3.6cqw; }
.fut--gold .fut__pos b { color: #f2d999; }
.fut--red .fut__pos b { color: #7d1a2b; }
.fut__fun { list-style: none; margin: 1cqw 0 0; padding: 0; display: grid; gap: 2.6cqw; }
.fut__fun li { display: grid; grid-template-columns: 1fr auto; gap: .8cqw 2cqw; font-size: 4.6cqw; font-weight: 600; line-height: 1.2; }
.fut__fun b { font-family: var(--mono); }
.fut__fun i { grid-column: 1 / -1; height: 1.6cqw; border-radius: 9px; background: var(--chip); overflow: hidden; position: relative; }
.fut__fun i::after { content: ""; position: absolute; inset: 0; width: var(--v); border-radius: inherit; background: var(--fg); transform-origin: left; transform: scaleX(0); transition: transform 1.1s var(--ease-out) .35s; }
.fut.is-flipped .fut__fun i::after { transform: scaleX(1); }
.fut__hint { margin-top: auto; margin-bottom: 17cqw; text-align: center; font-size: 3.8cqw; color: var(--fg-2); }

/* ── stadium intro ── */
.intro { display: none; }
html.intro-on { overflow: hidden; }
html.intro-on .intro {
  display: grid; place-items: center; position: fixed; inset: 0; z-index: 10; overflow: hidden;
  background: radial-gradient(120% 80% at 50% 110%, #2a0a12, #050304 60%);
  transition: transform .95s cubic-bezier(.7, 0, .2, 1), opacity .95s var(--ease);
}
.intro.is-out { transform: translateY(-100%); }
.intro__tower { position: absolute; top: 7vh; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2vmin; padding: 1.4vmin; border-radius: 1vmin; background: rgba(255, 255, 255, .04); }
.intro__tower--l { left: 9vw; transform: rotate(-14deg); }
.intro__tower--r { right: 9vw; transform: rotate(14deg); }
.intro__tower i { width: 3.4vmin; height: 3.4vmin; border-radius: 50%; background: #2a2224; }
.intro.is-go .intro__tower i { animation: lampOn .5s steps(1, end) forwards; }
.intro.is-go .intro__tower--l i { animation-delay: calc(.2s + var(--d, 0s)); }
.intro.is-go .intro__tower--r i { animation-delay: calc(.55s + var(--d, 0s)); }
.intro__tower i:nth-child(2) { --d: .05s; } .intro__tower i:nth-child(3) { --d: .1s; }
.intro__tower i:nth-child(4) { --d: .08s; } .intro__tower i:nth-child(5) { --d: .13s; } .intro__tower i:nth-child(6) { --d: .18s; }
@keyframes lampOn {
  0% { background: #fff8ec; box-shadow: 0 0 2vmin #fff, 0 0 6vmin rgba(255, 236, 214, .8); }
  20% { background: #3a3032; box-shadow: none; }
  40%, 100% { background: #fff8ec; box-shadow: 0 0 2vmin #fff, 0 0 7vmin rgba(255, 236, 214, .7); }
}
.intro__beam { position: absolute; top: 4vh; width: 70vmax; height: 140vh; opacity: 0; transform-origin: 50% 0;
  background: linear-gradient(180deg, rgba(255, 240, 222, .32), rgba(255, 240, 222, .06) 50%, transparent 80%);
  clip-path: polygon(46% 0, 54% 0, 100% 100%, 0 100%); filter: blur(10px); }
.intro__beam--l { left: calc(9vw - 35vmax + 6vmin); transform: rotate(-28deg); }
.intro__beam--r { right: calc(9vw - 35vmax + 6vmin); transform: rotate(28deg); }
.intro.is-go .intro__beam { animation: beamOn .9s var(--ease-out) forwards; }
.intro.is-go .intro__beam--l { animation-delay: .45s; }
.intro.is-go .intro__beam--r { animation-delay: .8s; }
@keyframes beamOn { to { opacity: 1; } }

.intro__logo { position: relative; display: grid; justify-items: center; text-align: center; }
.intro__logo b { font-family: var(--display); font-style: italic; font-weight: 900; font-size: clamp(64px, 16vw, 200px); line-height: .9; letter-spacing: -.02em; opacity: 0; }
.intro__logo em { font-family: var(--display); font-style: italic; font-weight: 900; font-size: clamp(40px, 9vw, 110px); line-height: 1; color: var(--maroon-hi); text-shadow: 0 0 40px rgba(168, 38, 60, .8); opacity: 0; }
.intro__logo small { font-family: var(--mono); font-weight: 600; letter-spacing: .3em; font-size: clamp(11px, 1.4vw, 15px); color: var(--gold); margin-top: 18px; opacity: 0; }
.intro.is-go .intro__logo b { animation: slam .55s cubic-bezier(.2, 1.4, .4, 1) 1.15s forwards; }
.intro.is-go .intro__logo em { animation: stamp .45s cubic-bezier(.2, 1.6, .4, 1) 1.5s forwards; }
.intro.is-go .intro__logo small { animation: fadeUp .6s var(--ease-out) 1.75s forwards; }
.intro.is-go .intro__logo { animation: shake .35s linear 1.3s; }
@keyframes slam { 0% { opacity: 0; transform: scale(2.6); filter: blur(14px); } 60% { opacity: 1; filter: blur(0); } 100% { opacity: 1; transform: none; } }
@keyframes stamp { 0% { opacity: 0; transform: scale(3) rotate(-12deg); } 100% { opacity: 1; transform: rotate(-4deg); } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes shake { 0%, 100% { transform: none; } 20% { transform: translate(-6px, 3px); } 40% { transform: translate(5px, -4px); } 60% { transform: translate(-3px, 2px); } 80% { transform: translate(2px, -1px); } }
.intro__ring { position: absolute; left: 50%; top: 40%; width: 20vmin; height: 20vmin; margin: -10vmin 0 0 -10vmin; border-radius: 50%; border: 2px solid rgba(232, 201, 143, .8); opacity: 0; }
.intro.is-go .intro__ring { animation: ring 1s var(--ease-out) 1.3s forwards; }
@keyframes ring { 0% { opacity: .9; transform: scale(.4); } 100% { opacity: 0; transform: scale(6); } }
.intro__skip { position: absolute; right: 20px; bottom: calc(20px + env(safe-area-inset-bottom)); border: 1px solid var(--line-2); background: rgba(255, 255, 255, .06); border-radius: 99px; padding: 8px 18px; font-size: 14px; color: var(--ink-2); }
@media (max-width: 640px) {
  .intro__tower { top: 9vh; }
  .intro__tower--l { left: 5vw; } .intro__tower--r { right: 5vw; }
}

/* ── training ── */
.tn { display: grid; grid-template-columns: auto 1fr; gap: clamp(20px, 4vw, 44px); align-items: center; padding: clamp(20px, 3.5vw, 40px);
  background: radial-gradient(90% 140% at 0% 0%, rgba(232, 201, 143, .16), transparent 55%), linear-gradient(180deg, rgba(36, 18, 22, .92), rgba(20, 11, 13, .96)); }
.tn__date {
  display: grid; justify-items: center; align-content: center; width: clamp(104px, 14vw, 150px); aspect-ratio: 1; border-radius: 24px;
  background: linear-gradient(160deg, #f6dfa5, #c99a3f 60%, #a8792c); color: #2b1a04;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5), 0 20px 40px -18px rgba(232, 201, 143, .6);
}
.tn__date span { font-weight: 600; font-size: clamp(13px, 1.4vw, 16px); }
.tn__date b { font-family: var(--display); font-style: italic; font-weight: 900; font-size: clamp(52px, 7vw, 80px); line-height: .95; }
.tn__body { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; min-width: 0; }
.tn__top { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: baseline; font-family: var(--mono); font-weight: 600; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; }
.tn__label { color: var(--gold); }
.tn__in { color: var(--bg); background: var(--gold); padding: 2px 10px; border-radius: 99px; letter-spacing: .04em; animation: pulse 2.4s var(--ease) infinite; }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(232, 201, 143, .5); } 50% { box-shadow: 0 0 0 8px rgba(232, 201, 143, 0); } }
.tn__title { font-size: clamp(30px, 4.4vw, 54px); font-style: italic; line-height: 1.15; }
.tn__meta { color: var(--ink-2); font-size: clamp(15px, 1.5vw, 18px); }
.tn__note { color: var(--gold); font-weight: 600; }
.tn .tr__tag { margin-top: 6px; }

.rail-wrap { position: relative; margin-top: 22px; }
.rail-nav { display: flex; justify-content: flex-end; gap: 8px; margin-bottom: 12px; }
.rail-nav button { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line-2); background: rgba(246, 236, 230, .04); transition: background .5s var(--ease), transform .5s var(--ease); }
.rail-nav button:hover { background: rgba(246, 236, 230, .1); }
.rail-nav button:active { transform: scale(.94); }
.rail {
  list-style: none; margin: 0 calc(var(--gutter) * -1); padding: 4px var(--gutter) 18px;
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(210px, 230px); gap: 12px;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); scrollbar-width: none;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 var(--gutter), #000 calc(100% - var(--gutter)), transparent);
          mask-image: linear-gradient(90deg, transparent, #000 var(--gutter), #000 calc(100% - var(--gutter)), transparent);
}
.rail::-webkit-scrollbar { display: none; }
.tr {
  scroll-snap-align: start; display: flex; flex-direction: column; align-items: flex-start; gap: 8px;
  padding: 18px 18px 16px; border-radius: 22px; border: 1px solid var(--line); background: rgba(246, 236, 230, .035);
  transition: transform .6s var(--ease), border-color .6s var(--ease);
}
.tr:hover { transform: translateY(-3px); border-color: var(--line-2); }
.tr__date { display: flex; align-items: center; gap: 10px; }
.tr__date b { font-family: var(--display); font-style: italic; font-weight: 900; font-size: 44px; line-height: 1; }
.tr__date span { font-size: 13px; line-height: 1.25; color: var(--ink-2); }
.tr__title { font-family: var(--display); font-weight: 800; font-size: 21px; line-height: 1.25; }
.tr__meta { font-size: 14px; color: var(--ink-3); }
.tr__note { font-size: 13px; color: var(--gold); font-weight: 600; }
.tr__tag { font-family: var(--mono); font-weight: 700; font-size: 11px; letter-spacing: .1em; padding: 3px 10px; border-radius: 99px; border: 1px solid var(--line-2); color: var(--ink-2); }
.tr__tag--friendly { color: var(--gold); border-color: rgba(232, 201, 143, .4); }
.tr__tag--internal { color: var(--ink); border-color: rgba(246, 236, 230, .35); }
.tr__tag--tbd { border-style: dashed; color: var(--ink-3); }
.tr__tag--cup { background: var(--gold); color: var(--bg); border-color: transparent; }
.tr__tag--match { background: var(--maroon-hi); color: #fff; border-color: transparent; }
.tr--match { background: linear-gradient(160deg, rgba(168, 38, 60, .28), rgba(61, 13, 22, .3)); border-color: rgba(168, 38, 60, .45); }
.tr--cup { background: linear-gradient(160deg, rgba(232, 201, 143, .14), rgba(232, 201, 143, .03)); border-color: rgba(232, 201, 143, .3); }
.tr.is-past { opacity: .38; }
.tr.is-next { border-color: var(--gold); background: linear-gradient(160deg, rgba(232, 201, 143, .2), rgba(232, 201, 143, .04)); box-shadow: 0 20px 50px -24px rgba(232, 201, 143, .55); }
.tr.is-next .tr__tag { background: var(--gold); color: var(--bg); border-color: transparent; border-style: solid; }

@media (max-width: 640px) {
  .tn { grid-template-columns: 1fr; }
  .tn__date { width: auto; aspect-ratio: auto; grid-auto-flow: column; justify-content: start; align-items: baseline; gap: 10px; padding: 10px 18px; border-radius: 18px; }
  .tn__date b { font-size: 44px; }
  .rail { grid-auto-columns: 74%; }
  .rail-nav { display: none; }
}

/* ── iOS add-to-home-screen help ── */
.ios { padding: 0; border: 0; background: transparent; color: var(--ink); width: min(92vw, 380px); }
.ios::backdrop { background: rgba(6, 3, 4, .72); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.ios[open] .ios__in { animation: iosIn .6s var(--ease-out); }
@keyframes iosIn { from { opacity: 0; transform: translateY(24px) scale(.97); } }
.ios__in { display: grid; justify-items: start; gap: 14px; padding: 26px 24px 22px; border-radius: 28px; border: 1px solid var(--line-2);
  background: linear-gradient(180deg, #24121a, #140b0d); box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .8); }
.ios__in img { border-radius: 16px; box-shadow: 0 10px 24px -8px rgba(168, 38, 60, .7); }
.ios h3 { font-size: 26px; font-style: italic; line-height: 1.25; }
.ios ol { margin: 0; padding-left: 20px; display: grid; gap: 8px; color: var(--ink-2); }
.ios b { color: var(--ink); }
.ios__glyph { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 6px; background: rgba(246, 236, 230, .1); font-size: 12px; }
.ios .btn { justify-self: stretch; justify-content: space-between; margin-top: 4px; }
