/* =========================================================
   FS 31 Soccer School — landing page
   Palet diambil dari logo dan seragam: oranye, hitam jersey,
   hijau rumput, putih garis lapangan.
   ========================================================= */

@font-face { font-family: "Barlow"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/barlow-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/barlow-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/barlow-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/barlow-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Big Shoulders Display"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/big-shoulders-display-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Big Shoulders Display"; font-style: normal; font-weight: 800; font-display: swap; src: url("../fonts/big-shoulders-display-latin-800-normal.woff2") format("woff2"); }
@font-face { font-family: "Big Shoulders Display"; font-style: normal; font-weight: 900; font-display: swap; src: url("../fonts/big-shoulders-display-latin-900-normal.woff2") format("woff2"); }

:root {
  --turf-900: #0a3320;
  --turf-800: #0d4426;
  --turf-700: #0f5a2d;
  --turf-600: #14703a;
  --chalk: #f2f4ec;
  --chalk-2: #e3e8da;
  --ink: #121212;
  --ink-2: #1d1d1d;
  --ink-3: #2a2a2a;
  --orange: #f26a1b;
  --orange-d: #c94f0a;
  --gold: #f2b705;
  --silver: #c5cdd2;
  --bronze: #cd7f32;
  --card-yellow: #ffd21f;
  --red: #d7263d;

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

  --gutter: clamp(1.25rem, 4vw, 3rem);
  --maxw: 1180px;
  --nav-h: 72px;
  --radius: 14px;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 12px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--chalk);
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, h4, p { margin: 0; }

:focus-visible {
  outline: 3px solid var(--card-yellow);
  outline-offset: 3px;
  border-radius: 4px;
}

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: fixed; left: 1rem; top: -4rem; z-index: 200;
  background: var(--card-yellow); color: var(--ink);
  padding: .6rem 1rem; font-weight: 700; border-radius: 8px;
  transition: top .2s;
}
.skip-link:focus { top: 1rem; }

.wrap { width: min(100% - var(--gutter) * 2, var(--maxw)); margin-inline: auto; }

/* ---------- Tipografi ---------- */
.display, h1, h2, h3 { font-family: var(--font-display); letter-spacing: .005em; }

h2 {
  font-size: clamp(2.5rem, 5.4vw, 4.25rem);
  font-weight: 800;
  line-height: .98;
  text-wrap: balance;
}
h3 { font-weight: 700; line-height: 1.05; }

.lead { font-size: 1.2rem; line-height: 1.55; max-width: 58ch; }

/* ---------- Tombol ---------- */
.btn {
  --bg: var(--orange); --fg: var(--ink);
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  padding: .85rem 1.6rem;
  min-height: 48px;
  font-weight: 700; font-size: 1.05rem; text-decoration: none;
  background: var(--bg); color: var(--fg);
  border: 2px solid var(--bg); border-radius: 999px;
  transition: transform .25s var(--ease), background .2s, color .2s, box-shadow .25s;
  box-shadow: 0 6px 0 rgba(0,0,0,.28);
}
.btn:hover { transform: translateY(-3px); box-shadow: 0 9px 0 rgba(0,0,0,.28); }
.btn:active { transform: translateY(2px); box-shadow: 0 2px 0 rgba(0,0,0,.28); }
.btn--ghost { --bg: transparent; --fg: #fff; border-color: rgba(255,255,255,.7); box-shadow: none; }
.btn--ghost:hover { background: #fff; color: var(--ink); box-shadow: none; }
.btn--ink { --bg: var(--ink); --fg: #fff; }
.btn--sm { padding: .55rem 1.2rem; min-height: 42px; font-size: .98rem; box-shadow: 0 4px 0 rgba(0,0,0,.28); }
.btn svg { width: 1.15em; height: 1.15em; }

/* =========================================================
   NAVBAR
   ========================================================= */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--nav-h);
  display: flex; align-items: center;
  color: #fff;
  transition: background .3s, box-shadow .3s;
}
.nav.is-solid {
  background: rgba(18,18,18,.92);
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 24px rgba(0,0,0,.25);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; }
.brand img { width: 46px; height: 46px; }
.brand span {
  font-family: var(--font-display); font-weight: 800; font-size: 1.45rem; line-height: .95;
}
.brand small { display: block; font-family: var(--font-body); font-weight: 500; font-size: .72rem; opacity: .8; letter-spacing: .08em; }

.nav__links { display: flex; align-items: center; gap: .4rem; list-style: none; margin: 0; padding: 0; }
.nav__links a:not(.btn) {
  position: relative; display: block; padding: .6rem .85rem;
  text-decoration: none; font-weight: 600;
}
.nav__links a:not(.btn)::after {
  content: ""; position: absolute; left: .85rem; right: .85rem; bottom: .25rem; height: 3px;
  background: var(--orange); border-radius: 2px;
  transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
}
.nav__links a:not(.btn):hover::after,
.nav__links a.is-active::after { transform: scaleX(1); }

.nav__toggle {
  display: none; width: 46px; height: 46px; border-radius: 50%;
  background: rgba(0,0,0,.35); border: 2px solid rgba(255,255,255,.6);
  align-items: center; justify-content: center;
}
.nav__toggle span, .nav__toggle span::before, .nav__toggle span::after {
  display: block; width: 20px; height: 2px; background: #fff; border-radius: 2px;
  transition: transform .3s var(--ease), background .2s;
}
.nav__toggle span { position: relative; }
.nav__toggle span::before, .nav__toggle span::after { content: ""; position: absolute; left: 0; }
.nav__toggle span::before { top: -7px; }
.nav__toggle span::after { top: 7px; }
.nav__toggle[aria-expanded="true"] span { background: transparent; }
.nav__toggle[aria-expanded="true"] span::before { transform: translateY(7px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span::after { transform: translateY(-7px) rotate(-45deg); }

/* Bola yang menggelinding mengikuti scroll */
.nav__progress {
  position: absolute; left: 0; right: 0; bottom: 0; height: 3px;
  background: rgba(255,255,255,.12);
}
.nav__progress i {
  position: absolute; inset: 0 auto 0 0; width: calc(var(--pf, 0) * 100%);
  background: var(--orange);
}
.nav__ball {
  position: absolute; bottom: -10px; width: 22px; height: 22px;
  left: calc(11px + (100% - 22px) * var(--pf, 0));
  transform: translateX(-50%) rotate(calc(var(--pf, 0) * 1440deg));
  filter: drop-shadow(0 2px 2px rgba(0,0,0,.45));
  pointer-events: none;
}

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative; isolation: isolate;
  min-height: 100svh; display: flex; flex-direction: column; justify-content: flex-end;
  color: #fff; background: var(--ink); overflow: hidden;
}
.hero__slides { position: absolute; inset: 0; z-index: -2; }
.hero__slide {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transform: scale(1.02);
  transition: opacity 1.2s ease;
}
.hero__slide.is-active { opacity: 1; animation: kenburns 9s ease-out forwards; }
@keyframes kenburns { from { transform: scale(1.02); } to { transform: scale(1.09); } }

.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(10,10,10,.82) 0%, rgba(10,10,10,.5) 52%, rgba(10,10,10,.15) 100%),
    linear-gradient(0deg, rgba(10,10,10,.9) 0%, rgba(10,10,10,0) 45%);
}
/* garis lapangan: lingkaran tengah sebagian */
.hero::after {
  content: ""; position: absolute; z-index: -1; right: -12vw; top: 50%;
  width: min(62vw, 760px); aspect-ratio: 1; border-radius: 50%;
  border: 3px solid rgba(255,255,255,.14); transform: translateY(-50%);
  pointer-events: none;
}

.hero__body { padding-top: calc(var(--nav-h) + 3rem); padding-bottom: clamp(2rem, 6vh, 4rem); }
.hero h1 {
  font-size: clamp(3rem, 9.4vw, 8.5rem);
  font-weight: 900; line-height: .92; text-transform: uppercase;
}
.hero h1 .line { display: block; overflow: hidden; padding: .06em 0 .04em; margin-top: -.06em; }
.hero h1 .line > span { display: block; transform: translateY(105%); animation: rise .9s var(--ease) forwards; }
.hero h1 .line:nth-child(2) > span { animation-delay: .12s; }
.hero h1 .line:nth-child(3) > span { animation-delay: .24s; }
@keyframes rise { to { transform: none; } }

.hero__sub {
  margin-top: 1.6rem; max-width: 46ch; font-size: 1.2rem; line-height: 1.5;
  opacity: 0; animation: fadein .8s .55s forwards;
}
.hero__cta { margin-top: 1.8rem; display: flex; flex-wrap: wrap; gap: .9rem; opacity: 0; animation: fadein .8s .7s forwards; }
@keyframes fadein { to { opacity: 1; } }

/* bola menggelinding satu kali saat halaman dibuka */
.hero__roll {
  position: absolute; left: 0; bottom: 0; width: 100%; height: 0; pointer-events: none;
}
.hero__ball {
  position: absolute; left: 0; bottom: 118px; width: clamp(56px, 7vw, 88px); aspect-ratio: 1;
  animation: roll 2.2s .35s cubic-bezier(.12,.6,.25,1) forwards;
  transform: translateX(-120%);
}
.hero__ball svg { width: 100%; height: 100%; animation: spin 2.2s .35s cubic-bezier(.12,.6,.25,1) forwards; filter: drop-shadow(0 10px 10px rgba(0,0,0,.45)); }
@keyframes roll { to { transform: translateX(72vw); } }
@keyframes spin { to { transform: rotate(900deg); } }

/* papan skor: latihan berikutnya */
.scoreboard {
  background: rgba(10,10,10,.78); backdrop-filter: blur(8px);
  border-top: 3px solid var(--orange);
}
.scoreboard__inner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: .8rem 2rem; padding-block: 1rem;
}
.scoreboard__label { font-size: .95rem; opacity: .8; }
.scoreboard__when { font-family: var(--font-display); font-size: 1.7rem; font-weight: 700; line-height: 1.05; }

.countdown { display: flex; gap: .5rem; }
.seg {
  min-width: 4.4rem; padding: .35rem .5rem .3rem; text-align: center;
  background: var(--ink); border: 1px solid rgba(255,255,255,.14); border-radius: 8px;
  position: relative;
}
.seg::after { /* garis tengah papan flip */
  content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: rgba(255,255,255,.1);
}
.seg b {
  display: block; font-family: var(--font-display); font-weight: 800; font-size: 2.1rem; line-height: 1;
  font-variant-numeric: tabular-nums; color: var(--orange);
}
.seg small { display: block; font-size: .72rem; opacity: .7; }

.hero__dots { position: absolute; right: var(--gutter); top: calc(var(--nav-h) + 1.2rem); display: flex; gap: .5rem; }
.hero__dots button {
  width: 14px; height: 14px; padding: 0; border-radius: 50%;
  border: 2px solid #fff; background: transparent; transition: background .2s, transform .2s;
}
.hero__dots button[aria-current="true"] { background: var(--orange); border-color: var(--orange); transform: scale(1.25); }

/* =========================================================
   TICKER — papan LED pinggir lapangan
   ========================================================= */
.ticker { background: var(--ink); color: var(--orange); overflow: hidden; border-block: 3px solid var(--ink-3); }
.ticker__track { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.ticker:hover .ticker__track { animation-play-state: paused; }
.ticker__group { display: flex; align-items: center; gap: 1.6rem; padding: .7rem 0 .7rem 1.6rem; }
.ticker__item {
  font-family: var(--font-display); font-weight: 700; font-size: 1.35rem; letter-spacing: .04em;
  text-transform: uppercase; white-space: nowrap; text-shadow: 0 0 10px rgba(242,106,27,.55);
}
.ticker__group svg { width: 20px; height: 20px; flex: none; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* =========================================================
   SECTION DASAR
   ========================================================= */
.section { position: relative; padding-block: clamp(4.5rem, 9vw, 7.5rem); overflow: hidden; }
.section__head { max-width: 46rem; margin-bottom: clamp(2.2rem, 5vw, 3.5rem); }
.section__head p { margin-top: 1.1rem; font-size: 1.15rem; max-width: 52ch; }

.turf {
  color: #fff;
  background: repeating-linear-gradient(90deg, var(--turf-700) 0 90px, var(--turf-800) 90px 180px);
}
.turf::before, .turf::after { /* busur sudut lapangan */
  content: ""; position: absolute; width: 150px; height: 150px; border-radius: 50%;
  border: 3px solid rgba(255,255,255,.28); pointer-events: none;
}
.turf::before { left: -75px; top: -75px; }
.turf::after { right: -75px; bottom: -75px; }
.turf > .wrap { position: relative; z-index: 1; }

/* =========================================================
   PROFIL
   ========================================================= */
.profil__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.profil__text p + p { margin-top: 1rem; }
.profil__text .lead { margin-top: 1.3rem; }

.skills { display: flex; flex-wrap: wrap; gap: .55rem; margin: 1.4rem 0 0; padding: 0; list-style: none; }
.skills li {
  padding: .35rem .9rem; border-radius: 999px; font-weight: 600; font-size: .98rem;
  background: var(--ink); color: #fff;
}

/* lembar susunan pemain */
.teamsheet {
  margin-top: 2.2rem; background: #fff; border-radius: var(--radius);
  box-shadow: 0 14px 0 var(--chalk-2), 0 0 0 2px var(--ink);
  overflow: hidden;
}
.teamsheet__title {
  background: var(--ink); color: #fff; padding: .8rem 1.2rem;
  font-family: var(--font-display); font-weight: 800; font-size: 1.5rem;
  display: flex; align-items: center; justify-content: space-between;
}
.teamsheet dl { margin: 0; }
.teamsheet .row {
  display: grid; grid-template-columns: 8.5rem 1fr; gap: 1rem;
  padding: .8rem 1.2rem; border-top: 1px dashed #c8cfc0;
}
.teamsheet .row:first-child { border-top: 0; }
.teamsheet dt { font-weight: 700; color: var(--orange-d); }
.teamsheet dd { margin: 0; overflow-wrap: anywhere; }
.teamsheet dd a { text-underline-offset: 3px; }

/* papan taktik */
.tactics { position: sticky; top: calc(var(--nav-h) + 1.2rem); }
.tactics__board {
  border-radius: var(--radius); overflow: hidden;
  box-shadow: 0 0 0 6px var(--ink), 0 24px 40px rgba(0,0,0,.25);
}
.tactics svg { width: 100%; height: auto; }
.tactics figcaption { margin-top: 1.1rem; font-size: .95rem; opacity: .75; }
.player {
  transform: translate(200px, 262px);
  transition: transform 1.1s var(--ease);
}
.tactics.is-in .player { transform: translate(var(--x), var(--y)); }
.tactics.is-in .player:nth-of-type(2n) { transition-delay: .08s; }
.tactics.is-in .player:nth-of-type(3n) { transition-delay: .16s; }
.trail { stroke-dasharray: 7 7; opacity: 0; transition: opacity .6s 1s; }
.tactics.is-in .trail { opacity: 1; animation: dash 1.4s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -28; } }

/* =========================================================
   KELOMPOK USIA & JADWAL (turf)
   ========================================================= */
.jerseys { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(.9rem, 2.5vw, 1.8rem); list-style: none; margin: 0; padding: 0; }
.jersey { text-align: center; }
.jersey__shirt {
  display: block; margin-inline: auto; width: min(100%, 220px);
  transform-origin: 50% 0; transition: transform .45s var(--ease), filter .45s;
  filter: drop-shadow(0 14px 10px rgba(0,0,0,.35));
}
.jersey:hover .jersey__shirt, .jersey:focus-within .jersey__shirt {
  transform: translateY(-8px) rotate(-3deg); filter: drop-shadow(0 26px 16px rgba(0,0,0,.4));
}
.jersey:nth-child(even):hover .jersey__shirt { transform: translateY(-8px) rotate(3deg); }
.jersey h3 { margin-top: 1.1rem; font-size: 2rem; font-weight: 800; }
.jersey p { opacity: .88; }

/* tiket matchday */
.ticket {
  --notch: 16px;
  margin-top: clamp(3rem, 6vw, 5rem);
  display: grid; grid-template-columns: 1.4fr 1fr;
  background: var(--chalk); color: var(--ink);
  border-radius: var(--radius); position: relative;
  box-shadow: 0 20px 0 rgba(0,0,0,.18);
  -webkit-mask: radial-gradient(circle var(--notch) at 0 50%, #0000 98%, #000) left / 51% 100% no-repeat,
                radial-gradient(circle var(--notch) at 100% 50%, #0000 98%, #000) right / 51% 100% no-repeat;
          mask: radial-gradient(circle var(--notch) at 0 50%, #0000 98%, #000) left / 51% 100% no-repeat,
                radial-gradient(circle var(--notch) at 100% 50%, #0000 98%, #000) right / 51% 100% no-repeat;
}
.ticket__main { padding: clamp(1.4rem, 3vw, 2.4rem); }
.ticket__stub {
  padding: clamp(1.4rem, 3vw, 2.4rem); background: var(--ink); color: #fff;
  border-radius: 0 var(--radius) var(--radius) 0; position: relative;
  display: flex; flex-direction: column; justify-content: center; gap: .9rem;
}
.ticket__stub::before { /* perforasi */
  content: ""; position: absolute; left: -1px; top: 18px; bottom: 18px; border-left: 3px dashed var(--chalk);
}
.ticket h3 { font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 800; }
.ticket__facts { margin: 1.3rem 0 0; display: grid; gap: 1rem; }
.fact { display: flex; gap: .9rem; align-items: flex-start; }
.fact svg { width: 26px; height: 26px; flex: none; margin-top: .15rem; color: var(--orange-d); }
.fact b { display: block; font-size: 1.15rem; }
.fact span { opacity: .8; }

.days { display: flex; gap: .5rem; margin-top: .45rem; flex-wrap: wrap; }
.day {
  padding: .3rem .95rem; border-radius: 999px; font-weight: 700;
  border: 2px solid var(--ink); background: transparent;
}
.day.is-today { background: var(--orange); border-color: var(--orange); }
.ticket__stub .scoreboard__label { opacity: .85; }
.ticket__stub .scoreboard__when { font-size: 1.5rem; }
.ticket__stub .countdown { flex-wrap: wrap; }
.ticket__stub .seg { min-width: 3.9rem; background: #000; }
.ticket__link { margin-top: .4rem; }

/* =========================================================
   PRESTASI
   ========================================================= */
.medals { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-bottom: 2.4rem; }
.medal-card {
  display: flex; align-items: center; gap: 1rem; padding: 1.1rem 1.3rem;
  background: #fff; border-radius: var(--radius); box-shadow: 0 6px 0 var(--chalk-2), 0 0 0 2px var(--ink);
}
.medal {
  --c: var(--gold);
  flex: none; width: 54px; height: 54px; border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 900; font-size: 1.8rem; line-height: 1; color: var(--ink);
  background: radial-gradient(circle at 32% 28%, #fff8 0 14%, transparent 15%), var(--c);
  box-shadow: inset 0 0 0 4px rgba(0,0,0,.14), 0 0 0 3px var(--c);
}
.medal--2 { --c: var(--silver); }
.medal--3 { --c: var(--bronze); }
.medal-card strong { display: block; font-family: var(--font-display); font-size: 2.6rem; line-height: .95; font-weight: 800; font-variant-numeric: tabular-nums; }
.medal-card span.lbl { font-weight: 600; }

.filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 2rem; }
.chip {
  padding: .5rem 1.15rem; min-height: 44px; border-radius: 999px; font-weight: 700;
  background: transparent; border: 2px solid var(--ink);
  transition: background .2s, color .2s, transform .2s var(--ease);
}
.chip:hover { transform: translateY(-2px); }
.chip[aria-pressed="true"] { background: var(--ink); color: #fff; }

.year-group { display: grid; grid-template-columns: 7.5rem 1fr; gap: 1rem 2rem; padding-block: 1.6rem; border-top: 3px solid var(--ink); }
.year-group[hidden] { display: none; }
.year-group.flash { animation: flash .5s var(--ease); }
@keyframes flash { from { opacity: 0; transform: translateX(-18px); } to { opacity: 1; transform: none; } }
.year {
  font-family: var(--font-display); font-weight: 900; font-size: clamp(3rem, 6vw, 4.6rem); line-height: .85;
  color: transparent; -webkit-text-stroke: 2px var(--ink);
  align-self: start; position: sticky; top: calc(var(--nav-h) + 1rem);
}
.results { list-style: none; margin: 0; padding: 0; display: grid; gap: .8rem; }
.result {
  display: grid; grid-template-columns: auto 1fr; gap: 1.1rem; align-items: center;
  padding: 1rem 1.2rem; background: #fff; border-radius: 12px;
  box-shadow: 0 4px 0 var(--chalk-2); transition: transform .3s var(--ease), box-shadow .3s;
}
.result:hover { transform: translateX(6px); box-shadow: 0 4px 0 var(--orange); }
.result h4 { font-family: var(--font-display); font-weight: 800; font-size: 1.55rem; line-height: 1.05; }
.meta { list-style: none; margin: .45rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: .25rem 1.4rem; font-size: .98rem; opacity: .85; }
.meta li { display: flex; align-items: center; gap: .4rem; }
.meta li::before {
  content: ""; width: 1em; height: 1em; flex: none; background: var(--orange-d);
  -webkit-mask: var(--ico) center / contain no-repeat; mask: var(--ico) center / contain no-repeat;
}
.meta .pin { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a7 7 0 0 0-7 7c0 5 7 13 7 13s7-8 7-13a7 7 0 0 0-7-7zm0 9.5A2.5 2.5 0 1 1 12 6.5a2.5 2.5 0 0 1 0 5z'/%3E%3C/svg%3E"); }
.meta .cal { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 2v2H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V6a2 2 0 0 0-2-2h-2V2h-2v2H9V2zm-2 8h14v10H5z'/%3E%3C/svg%3E"); }
.meta .cat { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M17 3H7v2H3v3a4 4 0 0 0 4 4h.3A5 5 0 0 0 11 14.9V18H8v3h8v-3h-3v-3.1a5 5 0 0 0 3.7-2.9H17a4 4 0 0 0 4-4V5h-4zM5 8V7h2v3a2 2 0 0 1-2-2zm14 0a2 2 0 0 1-2 2V7h2z'/%3E%3C/svg%3E"); }

/* =========================================================
   GALERI
   ========================================================= */
.dark { background: var(--ink); color: #fff; }
.dark .section__head p { opacity: .8; }

.gallery {
  display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: clamp(150px, 19vw, 230px);
  grid-auto-flow: dense; gap: clamp(.5rem, 1.2vw, .9rem);
}
.tile { position: relative; padding: 0; border: 0; background: var(--ink-3); border-radius: 10px; overflow: hidden; }
.tile--big { grid-column: span 2; grid-row: span 2; }
.tile--wide { grid-column: span 2; }
.tile--tall { grid-row: span 2; }
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.tile:hover img, .tile:focus-visible img { transform: scale(1.06); }
.tile::before { /* siku bingkai kamera */
  content: ""; position: absolute; inset: 12px; z-index: 2; pointer-events: none;
  border: 2px solid var(--orange); border-radius: 4px; opacity: 0; transform: scale(1.08);
  transition: opacity .3s, transform .4s var(--ease);
  -webkit-mask: linear-gradient(#000 0 0) top left / 28px 28px no-repeat, linear-gradient(#000 0 0) top right / 28px 28px no-repeat,
                linear-gradient(#000 0 0) bottom left / 28px 28px no-repeat, linear-gradient(#000 0 0) bottom right / 28px 28px no-repeat;
          mask: linear-gradient(#000 0 0) top left / 28px 28px no-repeat, linear-gradient(#000 0 0) top right / 28px 28px no-repeat,
                linear-gradient(#000 0 0) bottom left / 28px 28px no-repeat, linear-gradient(#000 0 0) bottom right / 28px 28px no-repeat;
}
.tile:hover::before, .tile:focus-visible::before { opacity: 1; transform: none; }
.tile__cap {
  position: absolute; inset: auto 0 0 0; z-index: 1; text-align: left;
  padding: 2.2rem 1rem .9rem; font-weight: 600; font-size: .98rem; line-height: 1.3;
  background: linear-gradient(0deg, rgba(0,0,0,.85), transparent);
  transform: translateY(40%); opacity: 0; transition: transform .4s var(--ease), opacity .3s;
}
.tile:hover .tile__cap, .tile:focus-visible .tile__cap { transform: none; opacity: 1; }
@media (hover: none) { .tile__cap { transform: none; opacity: 1; } }
.gallery-note { margin-top: 1.4rem; opacity: .65; font-size: .95rem; }

dialog.lightbox {
  width: min(96vw, 1200px); max-height: 94svh; padding: 0; border: 0; border-radius: 14px;
  background: var(--ink); color: #fff; overflow: hidden;
}
dialog.lightbox::backdrop { background: rgba(0,0,0,.86); backdrop-filter: blur(4px); }
.lightbox__stage { position: relative; display: grid; place-items: center; background: #000; touch-action: pan-y; }
.lightbox__stage img { max-width: 100%; max-height: 76svh; width: auto; height: auto; object-fit: contain; }
.lightbox__bar { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .9rem 1.2rem; }
.lightbox__bar p { font-size: 1rem; }
.lightbox__count { opacity: .65; font-variant-numeric: tabular-nums; white-space: nowrap; }
.lb-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 48px; height: 48px; border-radius: 50%; border: 2px solid rgba(255,255,255,.7);
  background: rgba(0,0,0,.55); display: grid; place-items: center; transition: background .2s;
}
.lb-btn:hover { background: var(--orange); border-color: var(--orange); }
.lb-btn svg { width: 22px; height: 22px; }
.lb-prev { left: .8rem; } .lb-next { right: .8rem; }
.lb-close { top: .8rem; right: .8rem; transform: none; }

/* =========================================================
   TANTANGAN PENALTI
   ========================================================= */
.pk__grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.pk__info p { margin-top: 1.1rem; font-size: 1.15rem; max-width: 40ch; }
.pk__score { display: flex; gap: .55rem; margin-top: 1.6rem; }
.pip {
  width: 34px; height: 34px; border-radius: 50%; border: 3px solid rgba(255,255,255,.6);
  display: grid; place-items: center; font-weight: 800; font-size: 1rem; line-height: 1;
  transition: background .3s, border-color .3s, transform .3s var(--ease);
}
.pip.is-goal { background: var(--card-yellow); border-color: var(--card-yellow); color: var(--ink); transform: scale(1.1); }
.pip.is-save { background: var(--red); border-color: var(--red); transform: scale(1.1); }
.pk__status { min-height: 4.2rem; margin-top: 1.4rem; font-family: var(--font-display); font-weight: 800; font-size: 2.3rem; line-height: 1; }
.pk__status small { display: block; margin-top: .5rem; font-family: var(--font-body); font-weight: 500; font-size: 1.05rem; line-height: 1.4; max-width: 38ch; }
.pk__actions { display: flex; gap: .8rem; flex-wrap: wrap; margin-top: 1.2rem; }

.pk__stage {
  position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden;
  background: repeating-linear-gradient(90deg, #12602f 0 60px, #0f5329 60px 120px);
  box-shadow: 0 0 0 6px var(--ink), 0 26px 40px rgba(0,0,0,.35);
}
.pk__stage > svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.pk__zones {
  position: absolute; left: 18.75%; top: 11.1%; width: 62.5%; height: 47.2%;
  display: grid; grid-template: 1fr 1fr / repeat(3, 1fr);
}
.zone {
  background: transparent; border: 2px dashed rgba(255,255,255,0); border-radius: 6px; padding: 0;
  transition: background .2s, border-color .2s;
}
.zone:hover:not(:disabled), .zone:focus-visible { background: rgba(242,106,27,.35); border-color: rgba(255,255,255,.85); }
.zone:disabled { cursor: default; }
.pk__ball, .pk__keeper { transform-box: fill-box; transform-origin: center; transition: transform .55s cubic-bezier(.2,.7,.3,1); }
.pk__keeper { transition-duration: .45s; }
#net { transform-origin: center; }
.net-hit { animation: nethit .6s var(--ease); }
@keyframes nethit { 30% { transform: scale(1.04, 1.08); opacity: .8; } }

/* =========================================================
   KONTAK
   ========================================================= */
.contact { background: var(--orange); color: var(--ink); }
.contact__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.contact h2 { font-size: clamp(2.8rem, 6.4vw, 5.2rem); }
.contact__list { display: grid; gap: 1rem; }
.cbox { background: var(--ink); color: #fff; border-radius: var(--radius); padding: 1.2rem 1.4rem; box-shadow: 0 6px 0 rgba(0,0,0,.25); }
.cbox h3 { font-size: 1.4rem; color: var(--orange); margin-bottom: .35rem; }
.cbox a { text-underline-offset: 3px; }
.cbox ul { margin: 0; padding: 0; list-style: none; display: grid; gap: .25rem; }
.cbox .tel { font-size: 1.35rem; font-weight: 700; text-decoration: none; }
.cbox .tel:hover { text-decoration: underline; }
.contact .lead { margin-top: 1.3rem; }
.contact__cta { margin-top: 1.8rem; display: flex; flex-wrap: wrap; gap: .8rem; }

/* =========================================================
   FOOTER
   ========================================================= */
.footer { background: var(--ink); color: #fff; padding-block: 3.5rem 2rem; position: relative; overflow: hidden; }
.footer::before { content: ""; position: absolute; left: 50%; top: -90px; width: 180px; height: 180px; margin-left: -90px; border-radius: 50%; border: 3px solid rgba(255,255,255,.12); }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; position: relative; }
.footer h3 { font-size: 1.3rem; margin-bottom: .7rem; color: var(--orange); }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .3rem; }
.footer a { text-underline-offset: 3px; }
.footer .brand { margin-bottom: 1rem; }
.footer p { opacity: .75; max-width: 40ch; }
.footer__copy { margin-top: 2.5rem; padding-top: 1.3rem; border-top: 1px solid rgba(255,255,255,.14); opacity: .6; font-size: .95rem; }

/* =========================================================
   RESPONSIF
   ========================================================= */
@media (max-width: 980px) {
  .profil__grid, .pk__grid, .contact__grid { grid-template-columns: 1fr; }
  .tactics { position: static; max-width: 520px; }
  .jerseys { grid-template-columns: repeat(2, 1fr); row-gap: 2.2rem; }
  .ticket { grid-template-columns: 1fr; -webkit-mask: none; mask: none; }
  .ticket__stub { border-radius: 0 0 var(--radius) var(--radius); }
  .ticket__stub::before { left: 18px; right: 18px; top: -1px; bottom: auto; border-left: 0; border-top: 3px dashed var(--chalk); }
  .medals { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__grid > :first-child { grid-column: 1 / -1; }
}

@media (max-width: 860px) {
  .nav__toggle { display: inline-flex; }
  .nav__links {
    position: fixed; inset: var(--nav-h) 0 auto 0; flex-direction: column; align-items: stretch; gap: 0;
    background: #121212; padding: .8rem var(--gutter) 1.6rem;
    transform: translateY(-120%); transition: transform .4s var(--ease);
    box-shadow: 0 20px 30px rgba(0,0,0,.4);
  }
  .nav__links.is-open { transform: none; }
  .nav__links a:not(.btn) { padding: .9rem .2rem; font-size: 1.2rem; border-bottom: 1px solid rgba(255,255,255,.1); }
  .nav__links a:not(.btn)::after { display: none; }
  .nav__links .btn { margin-top: 1rem; }
  .nav.is-solid, .nav:has(.nav__links.is-open) { background: rgba(18,18,18,.97); }
  .hero__dots { top: auto; bottom: calc(100% - 100svh + 1rem); }
}

@media (max-width: 640px) {
  body { font-size: 1rem; }
  .brand span { font-size: 1.25rem; }
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 38vw; }
  .year-group { grid-template-columns: 1fr; gap: .6rem; }
  .year { position: static; }
  .result { grid-template-columns: 1fr; }
  .teamsheet .row { grid-template-columns: 1fr; gap: .15rem; }
  .scoreboard__inner { flex-direction: column; align-items: flex-start; }
  .seg { min-width: 3.7rem; }
  .seg b { font-size: 1.8rem; }
  .hero__ball { bottom: 150px; }
  .footer__grid { grid-template-columns: 1fr; }
  .pk__status { font-size: 1.9rem; }
}

/* =========================================================
   GERAK DIKURANGI
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .hero h1 .line > span { transform: none; }
  .hero__sub, .hero__cta { opacity: 1; }
  .hero__ball { display: none; }
  .ticker__track { animation: none; }
  .ticker { overflow-x: auto; }
  .player { transform: translate(var(--x), var(--y)); }
}

/* =========================================================
   TOMBOL SUARA (navbar) + FOTO POTRET PROFIL
   ========================================================= */
.nav__inner { gap: .8rem; }
.brand { margin-right: auto; }
.nav__sound {
  width: 46px; height: 46px; border-radius: 50%; padding: 0; flex: none;
  display: inline-grid; place-items: center; color: #fff;
  background: rgba(0,0,0,.35); border: 2px solid rgba(255,255,255,.6);
  transition: background .2s, color .2s, transform .25s var(--ease);
}
.nav__sound svg { width: 22px; height: 22px; }
.nav__sound:hover { background: var(--orange); border-color: var(--orange); color: var(--ink); transform: scale(1.08); }
.nav__sound[aria-pressed="false"] { opacity: .8; }

.portrait { margin: 0; position: sticky; top: calc(var(--nav-h) + 1.2rem); max-width: 440px; justify-self: end; }
.portrait img {
  width: 100%; height: min(72vh, 640px); object-fit: cover; object-position: 50% 22%;
  border-radius: var(--radius); box-shadow: 0 0 0 6px var(--ink), 0 24px 40px rgba(0,0,0,.25);
}
.portrait figcaption { margin-top: 1.1rem; font-size: .95rem; opacity: .75; }

/* =========================================================
   ARENA: tab + kerangka permainan
   ========================================================= */
.arena__tabs { display: flex; gap: .5rem; margin-bottom: 2.2rem; overflow-x: auto; padding: .4rem .25rem .7rem; scrollbar-width: thin; }
.tab {
  flex: none; padding: .6rem 1.3rem; min-height: 46px; border-radius: 999px; font-weight: 700; font-size: 1.05rem;
  background: rgba(0,0,0,.28); color: #fff; border: 2px solid rgba(255,255,255,.55);
  transition: background .2s, color .2s, border-color .2s, transform .25s var(--ease);
}
.tab:hover { transform: translateY(-2px); }
.tab[aria-selected="true"] { background: var(--orange); border-color: var(--orange); color: var(--ink); }

.game { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.game--board { grid-template-columns: .95fr 1.05fr; align-items: start; }
.game__info h3 { font-size: clamp(2.2rem, 4.4vw, 3.4rem); font-weight: 800; line-height: .98; }
.game__info > p { margin-top: 1rem; font-size: 1.1rem; max-width: 46ch; }
.game__actions { display: flex; gap: .8rem; flex-wrap: wrap; margin-top: 1.3rem; }
.game__stage {
  position: relative; border-radius: var(--radius); overflow: hidden; background: var(--ink);
  box-shadow: 0 0 0 6px var(--ink), 0 26px 40px rgba(0,0,0,.35);
}
.pk__info p { margin-top: 1.1rem; }

.stats { display: flex; gap: 1rem; margin-top: 1.3rem; }
.stat { background: rgba(0,0,0,.3); border: 2px solid rgba(255,255,255,.22); border-radius: 12px; padding: .5rem 1.1rem; min-width: 7.5rem; }
.stat b { display: block; font-family: var(--font-display); font-weight: 900; font-size: 2.8rem; line-height: 1; color: var(--card-yellow); font-variant-numeric: tabular-nums; }
.stat span { font-size: .95rem; opacity: .85; }

#jgCanvas { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; touch-action: manipulation; cursor: pointer; }

/* sprint */
.sprint { padding: 1rem 1rem 1.2rem; background: #12602f; }
.track { position: relative; display: grid; gap: .55rem; }
.lane {
  display: grid; grid-template-columns: 4.6rem 1fr; gap: .6rem; align-items: center; padding: .3rem .6rem;
  background: repeating-linear-gradient(90deg, rgba(255,255,255,.09) 0 10%, transparent 10% 20%); border-radius: 8px;
}
.lane__name { font-weight: 700; font-size: .95rem; }
.lane__run { position: relative; height: 42px; border-bottom: 2px dashed rgba(255,255,255,.35); }
.runner {
  position: absolute; top: 2px; left: calc(var(--p, 0) * (100% - 36px)); width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center; font: 900 1.2rem var(--font-display); font-style: normal; border: 3px solid #fff;
  transition: transform .08s;
}
.r0 { background: var(--orange); color: var(--ink); } .r1 { background: #121212; color: #fff; }
.r2 { background: #fff; color: #121212; } .r3 { background: var(--card-yellow); color: #121212; }
.runner.is-step { transform: translateY(-6px) rotate(-8deg); }
.runner.is-trip { transform: translateX(-5px) rotate(16deg); filter: grayscale(.6); }
.track__finish { position: absolute; right: .6rem; top: 0; bottom: 0; width: 10px; background: repeating-linear-gradient(0deg, #fff 0 10px, #121212 10px 20px); opacity: .9; border-radius: 2px; }
.sprint__pad { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; margin-top: 1rem; }
.pad { min-height: 68px; font-size: 1.4rem; touch-action: manipulation; user-select: none; -webkit-user-select: none; --bg: #121212; --fg: #fff; border-color: rgba(255,255,255,.4); }
.pad:active { background: var(--orange); color: var(--ink); }

/* chips di area hijau */
.chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.2rem; }
.turf .chip { border-color: rgba(255,255,255,.7); color: #fff; }
.turf .chip[aria-checked="true"], .turf .chip[aria-pressed="true"] { background: #fff; color: var(--ink); }
.chip:disabled { opacity: .45; cursor: default; transform: none; }
.chip--sm { min-height: 38px; padding: .3rem .9rem; font-size: .95rem; }

/* formasi */
.fm__read { margin-top: 1.4rem; background: rgba(0,0,0,.3); border-radius: 12px; padding: 1rem 1.2rem; border: 2px solid transparent; transition: border-color .3s; }
.fm__read p { margin-top: .5rem; }
.fm__big { font-family: var(--font-display); font-weight: 900; font-size: 2.8rem; line-height: 1; }
.fm__read ul { margin: .6rem 0 0; padding-left: 1.2rem; color: var(--card-yellow); }
.fm__read small { display: block; font-size: 1rem; margin-top: .3rem; }
.fm__flash { border-color: var(--card-yellow); }
.fm__stage { max-width: 440px; width: 100%; justify-self: center; background: #0d4426; }
#fmBoard { display: block; width: 100%; height: auto; touch-action: none; user-select: none; -webkit-user-select: none; }
.lab-player { cursor: grab; transition: transform .8s var(--ease); outline: none; }
.lab-player.is-drag { transition: none; cursor: grabbing; }
.lab-player circle { stroke: #fff; stroke-width: 3; fill: var(--orange); transition: fill .3s; }
.lab-player text { font: 800 16px var(--font-body); fill: #121212; pointer-events: none; }
.lab-player[data-r="gk"] circle { fill: var(--card-yellow); }
.lab-player[data-r="mid"] circle { fill: #121212; } .lab-player[data-r="mid"] text { fill: #fff; }
.lab-player[data-r="att"] circle { fill: #fff; stroke: #121212; }
.lab-player:focus-visible circle { stroke: var(--card-yellow); stroke-width: 5; }
.lab-player.is-drag circle { stroke-width: 5; }

/* manager */
.fields { display: grid; gap: .8rem; margin-top: 1.3rem; max-width: 22rem; }
.fields label { display: grid; gap: .3rem; font-weight: 700; }
select {
  font: inherit; padding: .6rem .9rem; min-height: 46px; border-radius: 10px;
  border: 2px solid rgba(255,255,255,.7); background: rgba(0,0,0,.35); color: #fff;
}
select:disabled { opacity: .5; }
select option { color: #121212; background: #fff; }
.talk { margin-top: 1.3rem; background: rgba(0,0,0,.35); border: 2px solid var(--card-yellow); border-radius: 12px; padding: 1rem; }
.talk__btns { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: .8rem; }
.mg__board { background: var(--ink); border-radius: var(--radius); overflow: hidden; box-shadow: 0 0 0 6px var(--ink), 0 26px 40px rgba(0,0,0,.35); }
.mg__score { display: grid; grid-template-columns: 1fr auto auto auto 1fr; align-items: center; gap: .8rem; padding: 1rem 1.2rem; background: #000; }
.mg__team { font: 800 1.3rem var(--font-display); }
.mg__team:first-child { text-align: right; }
.mg__score b { font: 900 3.2rem var(--font-display); line-height: 1; min-width: 1.1ch; text-align: center; color: var(--orange); font-variant-numeric: tabular-nums; }
.mg__score b.pulse { animation: pulse .7s var(--ease); }
@keyframes pulse { 40% { transform: scale(1.5); color: var(--card-yellow); } }
.mg__clock { font: 800 1.4rem var(--font-display); background: var(--orange); color: var(--ink); padding: .1rem .7rem; border-radius: 6px; min-width: 3.6rem; text-align: center; }
.mg__bar { height: 5px; background: #2a2a2a; }
.mg__bar i { display: block; height: 100%; width: 0; background: var(--orange); }
.mg__feed { list-style: none; margin: 0; padding: .4rem 0; height: 340px; overflow-y: auto; }
.mg__ev { display: grid; grid-template-columns: 3.2rem 1fr; gap: .6rem; padding: .5rem 1.2rem; border-bottom: 1px solid #262626; animation: evIn .35s var(--ease); }
.mg__ev time { font: 800 1.15rem var(--font-display); color: var(--orange); }
.mg__ev--goal { background: rgba(242,106,27,.22); font-weight: 700; }
.mg__ev--goal-away { background: rgba(215,38,61,.22); }
.mg__ev--info { opacity: .8; }
@keyframes evIn { from { opacity: 0; transform: translateY(-8px); } }
.mg__hint { padding: 1.2rem; opacity: .7; }
.mg__stats { padding: 1rem 1.2rem 1.3rem; border-top: 3px solid var(--orange); }
.mg__stats h4, .co__result h4 { font: 800 2rem var(--font-display); color: var(--orange); }
.mg__stats p, .co__result p { margin-top: .6rem; }
.mg__stats table, .co__result table { width: 100%; border-collapse: collapse; margin-top: .4rem; }
.mg__stats td, .mg__stats th, .co__result td { padding: .35rem .3rem; border-bottom: 1px solid #2c2c2c; text-align: left; }
.mg__stats td:not(:first-child), .mg__stats th:not(:first-child), .co__result td:not(:first-child) { text-align: right; font-variant-numeric: tabular-nums; }

/* pelatih */
.sessions { display: grid; gap: .8rem; margin-top: 1.3rem; }
.session { background: rgba(0,0,0,.28); border-radius: 12px; padding: .8rem 1rem; border: 2px solid transparent; transition: border-color .2s; }
.session.is-run { border-color: var(--card-yellow); }
.session__head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; font: 800 1.4rem var(--font-display); }
.session__eff { font: 600 .9rem var(--font-body); opacity: .85; }
.session__eff[data-low="true"] { color: var(--card-yellow); opacity: 1; }
.session .chips { margin-top: .5rem; }
.fatigue { margin-top: 1rem; max-width: 30rem; }
.meter { height: 12px; background: rgba(0,0,0,.4); border-radius: 999px; overflow: hidden; margin-top: .35rem; }
.meter i { display: block; height: 100%; width: 20%; background: var(--card-yellow); }
.meter i[data-hi="true"] { background: var(--red); }
.co__stage { padding: 1rem 1rem 1.2rem; color: #fff; }
#coRadar { display: block; width: 100%; max-width: 440px; margin: 0 auto; height: auto; }
.rd-ring, .rd-axis { fill: none; stroke: #333; }
.rd-label { fill: #e3e8da; font: 600 12px var(--font-body); }
.rd-base { fill: none; stroke: #888; stroke-dasharray: 4 4; }
.rd-now { fill: rgba(242,106,27,.4); stroke: var(--orange); stroke-width: 2.5; }
.rd-dot { fill: var(--orange); }
.rd-val { fill: #fff; font: 800 12px var(--font-body); }
.co__result { margin-top: .6rem; padding: .4rem .4rem 0; }
.co__result small { display: block; opacity: .8; margin-top: .25rem; }
.co__note { opacity: .6; font-size: .9rem; }

@media (max-width: 980px) {
  .game, .game--board { grid-template-columns: 1fr; }
  .portrait { position: static; max-width: 520px; justify-self: start; }
  .portrait img { height: 460px; }
  .fm__stage { justify-self: start; }
}
@media (max-width: 640px) {
  .mg__score { gap: .4rem; padding: .8rem; }
  .mg__team { font-size: 1rem; }
  .mg__score b { font-size: 2.4rem; }
  .mg__feed { height: 280px; }
  .lane { grid-template-columns: 3.6rem 1fr; }
  .stat { min-width: 6.4rem; }
}

/* ===== Papan taktik di profil ===== */
.fmcard { position: sticky; top: calc(var(--nav-h) + 1.2rem); background: #0d4426; color: #fff; border-radius: 18px; padding: clamp(1.1rem, 3vw, 1.8rem); box-shadow: 0 10px 0 rgba(0,0,0,.18); max-width: 520px; justify-self: end; width: 100%; }
.fmcard h3 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); font-weight: 800; line-height: 1; }
.fmcard > p { margin-top: .5rem; opacity: .9; }
.fmcard .chip { border-color: rgba(255,255,255,.7); color: #fff; }
.fmcard .chip[aria-checked="true"], .fmcard .chip[aria-pressed="true"] { background: #fff; color: var(--ink); }
.fmcard .fm__stage { margin-top: 1.1rem; max-width: none; }
.fmcard .btn--ghost { color: #fff; border-color: rgba(255,255,255,.7); }
@media (max-width: 900px) { .fmcard { position: static; justify-self: stretch; max-width: none; } }

/* ===== Pop-up ===== */
.popup { border: 0; border-radius: 16px; padding: 1.6rem 1.7rem; max-width: min(92vw, 420px); background: var(--chalk); color: var(--ink); box-shadow: 0 20px 60px rgba(0,0,0,.45); }
.popup::backdrop { background: rgba(0,0,0,.6); }
.popup[open] { animation: popIn .22s ease-out; }
.popup h3 { font-size: 1.9rem; font-weight: 800; line-height: 1.05; border-left: 6px solid var(--card-yellow); padding-left: .7rem; }
.popup p { margin: .9rem 0 1.3rem; }
@keyframes popIn { from { transform: scale(.9); opacity: 0; } to { transform: none; opacity: 1; } }
.session.is-missing { outline: 3px solid var(--card-yellow); outline-offset: 4px; border-radius: 12px; animation: shakeX .4s; }
@keyframes shakeX { 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }

/* ===== Isian ===== */
.numfield, .selfield { display: flex; flex-direction: column; gap: .35rem; margin-top: 1rem; font-weight: 600; font-size: 1rem; }
.numfield input, .selfield input[type=text], .selfield select { font: inherit; padding: .55rem .8rem; border-radius: 10px; border: 2px solid rgba(255,255,255,.7); background: rgba(0,0,0,.25); color: #fff; min-height: 44px; max-width: 320px; }
.numfield input { max-width: 120px; font-family: var(--font-display); font-weight: 800; font-size: 1.5rem; }
.selfield input[type=color] { width: 70px; height: 44px; border: 2px solid #fff; border-radius: 10px; background: none; padding: 2px; }
.selfield select option { color: #121212; }

/* ===== Pertandingan ===== */
.fb { display: grid; grid-template-columns: minmax(280px, .8fr) 1.3fr; gap: clamp(1.4rem, 4vw, 3rem); align-items: start; }
.fb__setup h3 { font-size: clamp(2.2rem, 4.4vw, 3.4rem); font-weight: 800; line-height: .98; }
.fb__setup > p { margin-top: .8rem; max-width: 46ch; }
.fb__setup fieldset { border: 0; padding: 0; margin: 1.2rem 0 0; min-width: 0; }
.fb__setup legend { font-family: var(--font-display); font-weight: 800; font-size: 1.35rem; padding: 0; }
.fb__hint { margin-top: .6rem; font-size: .95rem; opacity: .85; }
.kits { display: grid; grid-template-columns: repeat(4, 1fr); gap: .6rem; margin-top: .6rem; max-width: 380px; }
.kit { background: rgba(0,0,0,.25); border: 2px solid transparent; border-radius: 12px; padding: .4rem .2rem .5rem; color: #fff; cursor: pointer; font: inherit; font-weight: 700; display: flex; flex-direction: column; align-items: center; transition: transform .15s; }
.kit svg { width: 100%; max-width: 64px; }
.kit:hover { transform: translateY(-3px); }
.kit[aria-checked="true"] { border-color: var(--card-yellow); background: rgba(255,210,31,.18); }
.check { display: flex; gap: .6rem; align-items: center; margin-top: 1.2rem; font-weight: 600; }
.check input { width: 22px; height: 22px; accent-color: var(--orange); }
.fb__keys { margin-top: 1.2rem; }
.fb__keys summary { cursor: pointer; font-weight: 700; }
.fb__keys ul { margin: .6rem 0 0; padding-left: 1.2rem; }
.fb__keys li { margin: .25rem 0; }

.fb__stage { position: relative; aspect-ratio: 1120 / 640; width: 100%; background: #0b3d20; border-radius: 16px; overflow: hidden; box-shadow: 0 10px 0 rgba(0,0,0,.25); touch-action: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.fb__stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.fb__hud { position: absolute; left: 0; right: 0; top: 0; display: flex; align-items: center; justify-content: space-between; gap: .5rem; padding: .4rem .6rem; background: linear-gradient(rgba(0,0,0,.65), rgba(0,0,0,0)); color: #fff; z-index: 3; pointer-events: none; }
.fb__hud[hidden] { display: none; }
.fb__score { display: flex; align-items: center; gap: .45rem; font-family: var(--font-display); font-weight: 800; font-size: clamp(.85rem, 2.4vw, 1.3rem); white-space: nowrap; min-width: 0; }
.fb__score b { font-size: clamp(1.3rem, 4vw, 2.1rem); background: rgba(0,0,0,.55); padding: 0 .5rem; border-radius: 6px; min-width: 1.6em; text-align: center; }
.fb__score span { overflow: hidden; text-overflow: ellipsis; max-width: 22vw; }
.fb__time { font-family: var(--font-display); font-weight: 900; font-size: clamp(1.1rem, 3.4vw, 1.8rem); background: var(--orange); color: var(--ink); padding: 0 .6rem; border-radius: 6px; }
.fb__time.is-low { background: var(--red); color: #fff; animation: blink .6s steps(2) infinite; }
@keyframes blink { 50% { opacity: .55; } }
.fb__tools { display: flex; gap: .3rem; pointer-events: auto; }
.fb__tools button { font: inherit; font-weight: 700; font-size: .8rem; min-height: 32px; padding: 0 .6rem; border-radius: 8px; border: 2px solid rgba(255,255,255,.7); background: rgba(0,0,0,.55); color: #fff; cursor: pointer; }
.fb__banner { position: absolute; left: 50%; top: 22%; transform: translateX(-50%) scale(.8); z-index: 4; font-family: var(--font-display); font-weight: 900; font-size: clamp(1.4rem, 5vw, 3rem); color: #fff; text-shadow: 0 3px 0 rgba(0,0,0,.6); background: rgba(0,0,0,.45); padding: .1em .7em; border-radius: 10px; opacity: 0; pointer-events: none; white-space: nowrap; }
.fb__banner:empty { display: none; }
.fb__banner.is-show { animation: bnr 1.4s ease-out forwards; }
.fb__banner[data-tone="goal"] { background: var(--orange); color: var(--ink); text-shadow: none; }
.fb__banner[data-tone="good"] { background: rgba(31,174,85,.8); }
.fb__banner[data-tone="bad"] { background: rgba(215,38,61,.8); }
@keyframes bnr { 0% { opacity: 0; transform: translateX(-50%) scale(.6); } 12% { opacity: 1; transform: translateX(-50%) scale(1.06); } 20% { transform: translateX(-50%) scale(1); } 80% { opacity: 1; } 100% { opacity: 0; transform: translateX(-50%) scale(1); } }
.fb__over { position: absolute; inset: 0; z-index: 6; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .6rem; text-align: center; background: rgba(0,0,0,.72); color: #fff; padding: 1rem; }
.fb__over[hidden] { display: none; }
.fb__over h4 { font-family: var(--font-display); font-weight: 900; font-size: clamp(2rem, 7vw, 4rem); line-height: 1; }
.fb__over p { max-width: 44ch; font-size: .95rem; }
.fb__over .game__actions { justify-content: center; }
.fb__resscore { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.2rem, 3.6vw, 2rem); }
.fb__rotate { position: absolute; left: 8%; right: 8%; bottom: 8%; z-index: 5; background: var(--card-yellow); color: var(--ink); font-weight: 700; padding: .5rem .8rem; border-radius: 10px; text-align: center; font-size: .9rem; }
.fb__rotate[hidden] { display: none; }

/* kontroler */
.fb__ctrl { position: absolute; inset: auto 0 0 0; z-index: 5; display: flex; justify-content: space-between; align-items: flex-end; padding: 0 .8rem .8rem; pointer-events: none; }
.fb__ctrl[hidden] { display: none; }
.stick { pointer-events: auto; position: relative; width: clamp(96px, 22vmin, 150px); aspect-ratio: 1; border-radius: 50%; background: rgba(255,255,255,.16); border: 3px solid rgba(255,255,255,.6); touch-action: none; }
.stick i { position: absolute; left: 50%; top: 50%; width: 42%; height: 42%; margin: -21%; border-radius: 50%; background: rgba(255,255,255,.85); box-shadow: 0 3px 0 rgba(0,0,0,.3); }
.fb__btns { pointer-events: auto; display: grid; grid-template-columns: repeat(3, auto); gap: .45rem; align-items: end; justify-items: end; }
.fbtn { touch-action: none; font: inherit; font-weight: 800; font-size: clamp(.7rem, 2.2vmin, .95rem); min-width: clamp(54px, 13vmin, 80px); height: clamp(54px, 13vmin, 80px); border-radius: 50%; border: 3px solid rgba(255,255,255,.85); background: rgba(0,0,0,.45); color: #fff; cursor: pointer; padding: 0; }
.fbtn.is-down { transform: scale(.92); filter: brightness(1.3); }
.fbtn--shoot { background: rgba(215,38,61,.8); width: clamp(70px, 17vmin, 104px); height: clamp(70px, 17vmin, 104px); grid-row: 1 / span 2; grid-column: 3; align-self: center; }
.fbtn--pass { background: rgba(30,107,214,.8); grid-column: 2; grid-row: 1; }
.fbtn--drib { background: rgba(242,106,27,.85); grid-column: 1; grid-row: 1; }
.fbtn--run { grid-column: 1; grid-row: 2; }
.fbtn--tack { grid-column: 2; grid-row: 2; }
.fbtn--swap { grid-column: 1 / span 1; grid-row: 3; height: clamp(40px, 9vmin, 54px); border-radius: 22px; }

/* layar penuh */
.fb__stage.is-full { position: fixed; inset: 0; width: 100vw; height: 100vh; height: 100dvh; aspect-ratio: auto !important; z-index: 300; border-radius: 0; box-shadow: none; }
.fb__stage.is-full.is-rot { inset: auto; top: 0; left: 0; width: 100vh; height: 100vw; width: 100dvh; height: 100dvw; transform-origin: top left; transform: translateX(100vw) rotate(90deg); }
.fb__stage:fullscreen { width: 100%; height: 100%; aspect-ratio: auto !important; border-radius: 0; }
.fb__stage:-webkit-full-screen { width: 100%; height: 100%; aspect-ratio: auto !important; border-radius: 0; }
.fb-lock, .fb-lock body { overflow: hidden; }
@media (max-width: 900px) { .fb { grid-template-columns: 1fr; } }
.fb-lock #nav { display: none !important; }
.fb-lock .turf > .wrap { z-index: auto; }

/* ===== Pratinjau lapangan manajer ===== */
.mg__view { position: relative; background: #0b3d20; border-radius: 14px; overflow: hidden; box-shadow: 0 8px 0 rgba(0,0,0,.25); margin-bottom: 1rem; }
.mg__view canvas { display: block; width: 100%; height: auto; }
.mg__view .fb__banner { top: 12%; font-size: clamp(1.1rem, 3.6vw, 2rem); }
.mg__board .mg__view { margin: 0; border-radius: 0; box-shadow: none; }

/* ===== Revisi: penalti, pelatih, pop-up konfirmasi ===== */
.popup__actions { display: flex; gap: .6rem; justify-content: flex-end; flex-wrap: wrap; }
.popup__actions .btn--ghost { color: var(--ink); border-color: var(--ink); }
.pk__shooter { transform-box: fill-box; transition: transform .45s ease-out; }
#pkLeg { transform-box: fill-box; transform-origin: 50% 0; transition: transform .22s ease-in; }
#pkKits { margin: .2rem 0 1rem; }
.co__avatar { position: relative; border-radius: 12px; overflow: hidden; background: #0b1f13; box-shadow: 0 6px 0 rgba(0,0,0,.25); }
.co__avatar canvas { display: block; width: 100%; height: auto; }
.co__tag { position: absolute; left: .6rem; top: .6rem; background: rgba(0,0,0,.6); color: #fff; font-weight: 700; font-size: .85rem; padding: .2rem .6rem; border-radius: 8px; }
.co__week { display: flex; align-items: center; gap: .7rem; margin: .8rem 0 .2rem; font-weight: 700; font-size: .9rem; }
.co__week .meter { flex: 1; }
.co__week .meter i { display: block; height: 100%; background: var(--orange); width: 0; }
.chip:disabled { opacity: .55; cursor: not-allowed; }

/* sprint: karakter pemain */
.sprinter { position: absolute; top: -8px; left: calc(var(--p, 0) * (100% - 44px)); width: 44px; height: 44px; transition: transform .08s; }
.sprinter.is-step { transform: translateY(-6px) rotate(-8deg); }
.sprinter.is-trip { transform: translateX(-5px) rotate(16deg); filter: grayscale(.6); }

/* FAQ */
.faq__list { max-width: 46rem; display: grid; gap: .7rem; }
.faq details { border: 2px solid currentColor; border-radius: 10px; padding: .9rem 1.1rem; }
.faq summary { cursor: pointer; font-weight: 700; }
.faq details[open] summary { margin-bottom: .5rem; }
.faq p { margin: 0; max-width: 60ch; }

/* ---------- Revisi 9: halaman penuh, info kelompok usia, form kontak ---------- */
[data-home][hidden], [data-page][hidden] { display: none !important; }
.back { margin: 0 0 1.4rem; }
.back a { font-weight: 700; text-underline-offset: 3px; }
.more { margin-top: 2rem; }
.top-title { font-size: 1.7rem; margin: 0 0 1rem; }
.results { margin-bottom: 0; }

.jersey__btn {
  display: block; width: 100%; padding: 0; border: 0; background: none; color: inherit;
  font: inherit; text-align: center; cursor: pointer; border-radius: var(--radius);
}
.jersey__btn:focus-visible { outline: 3px solid var(--orange); outline-offset: 6px; }
.jersey__btn[aria-expanded="true"] .jersey__shirt { transform: translateY(-8px) rotate(-3deg); filter: drop-shadow(0 26px 16px rgba(0,0,0,.4)); }
.jersey__btn[aria-expanded="true"] h3 { color: var(--orange); }

.jinfo { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .4s var(--ease); margin-top: 0; }
.jinfo.is-open { grid-template-rows: 1fr; margin-top: 1.6rem; }
.jinfo__clip { overflow: hidden; min-height: 0; }
.jinfo__box { position: relative; background: var(--ink); color: #fff; border-radius: var(--radius); padding: 1.4rem 1.6rem; box-shadow: 0 6px 0 rgba(0,0,0,.25); }
.jinfo__box::before { content: ""; position: absolute; top: -9px; left: var(--cx, 50%); width: 18px; height: 18px; background: var(--ink); transform: translateX(-50%) rotate(45deg); }
.jinfo__item[hidden] { display: none; }
.jinfo__item h3 { font-size: 2rem; color: var(--orange); display: flex; flex-wrap: wrap; align-items: baseline; gap: .2rem 1rem; }
.jinfo__item h3 small { font-family: var(--font-body, inherit); font-size: 1rem; font-weight: 600; color: #fff; opacity: .85; }
.jinfo__list { list-style: none; margin: .9rem 0 1.2rem; padding: 0; display: grid; gap: .55rem; max-width: 62ch; }
.jinfo__list b { display: block; font-size: .85rem; opacity: .7; font-weight: 600; }
@media (prefers-reduced-motion: reduce) { .jinfo { transition: none; } }

.kform { margin-top: 1.6rem; max-width: 34rem; }
.kform__hint { font-weight: 600; margin: 0 0 .7rem; }
.kform__grid { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
.kform label { display: grid; gap: .3rem; font-size: .9rem; font-weight: 700; }
.kform input, .kform select {
  min-height: 46px; padding: .55rem .8rem; border: 2px solid var(--ink); border-radius: 10px;
  background: #fff; color: var(--ink); font: inherit; font-weight: 500;
}
.kform input:focus-visible, .kform select:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
.kform__prev { margin: 1rem 0 0; padding: .8rem 1rem; border: 2px dashed var(--ink); border-radius: 10px; font-size: .95rem; }
.kform__prev b { display: block; font-size: .85rem; margin-bottom: .25rem; }
.kform__prev span { white-space: pre-line; }
@media (max-width: 640px) { .kform__grid { grid-template-columns: 1fr; } }
