/* DIFA — Da Nang International Football Association
   Charcoal + gold. Wide italic Archivo for the league voice, Hanken Grotesk for reading.
   Team graphics are generated SVG patterns in each club's colour (see tools/build.mjs → pattern()). */

:root {
  --bg: #141414;
  --bg-2: #1c1c1c;
  --bg-3: #262626;
  --bg-4: #303030;
  --line: #2e2e2e;
  --text: #ffffff;
  --soft: #d6d6d6;
  --muted: #9b9b9b;
  --gold: #e8b931;
  --gold-hi: #ffd45e;
  --gold-lo: #b88d1c;
  --win: #33c46b;
  --draw: #8d8d8d;
  --loss: #ef5a3c;

  --display: "Archivo", "Arial Black", sans-serif;
  --body: "Hanken Grotesk", system-ui, sans-serif;

  --wrap: 1360px;
  --gut: clamp(16px, 3vw, 40px);
  --r: 10px;
  --ease: cubic-bezier(.2, .7, .1, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 16px/1.6 var(--body); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
::selection { background: var(--gold); color: #000; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
[hidden] { display: none !important; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 8px; top: -60px; z-index: 200; background: var(--gold); color: #000; padding: 10px 14px; font-weight: 700; }
.skip:focus { top: 8px; }

/* ---------- type: wide italic display ---------- */
.d, h1, h2, h3, h4 { font-family: var(--display); font-style: italic; font-stretch: 125%; font-weight: 800; text-transform: uppercase; line-height: .95; letter-spacing: -.01em; margin: 0; }
h1 { font-size: clamp(40px, 6.4vw, 96px); }
h2 { font-size: clamp(30px, 4vw, 56px); }
h3 { font-size: clamp(18px, 1.6vw, 22px); line-height: 1.05; }
h4 { font-size: 16px; line-height: 1.1; }
.gold { color: var(--gold); }
.tag { font: italic 800 11px/1 var(--display); font-stretch: 125%; letter-spacing: .02em; text-transform: uppercase; color: var(--gold); }
.lede { font-size: clamp(17px, 1.4vw, 20px); line-height: 1.55; max-width: 62ch; color: var(--soft); }
.meta { font-size: 13px; color: var(--muted); }
.sample-note { display: inline-flex; padding: 5px 9px; border: 1px dashed var(--bg-4); border-radius: 6px; font: 700 10px/1 var(--body); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 46px; padding: 0 22px; border: 0; border-radius: 8px; background: var(--gold); color: #000; font: italic 800 14px/1 var(--display); font-stretch: 125%; text-transform: uppercase; letter-spacing: .01em; transition: background .2s, transform .2s var(--ease), box-shadow .2s; }
.btn:hover { background: var(--gold-hi); box-shadow: 0 8px 30px -10px rgba(232, 185, 49, .6); }
.btn:active { transform: translateY(1px); }
.btn.ghost { background: var(--bg-3); color: var(--text); }
.btn.ghost:hover { background: var(--bg-4); box-shadow: none; }
.btn.sm { min-height: 38px; padding: 0 16px; font-size: 12px; }
.btn[disabled] { opacity: .45; pointer-events: none; }
.link { display: inline-flex; align-items: center; gap: 8px; font: italic 800 13px/1 var(--display); font-stretch: 125%; text-transform: uppercase; color: var(--gold); }
.link:hover { color: var(--gold-hi); }
.arr { transition: transform .2s var(--ease); display: inline-block; }
a:hover > .arr, button:hover > .arr { transform: translateX(4px); }
.pill { display: inline-flex; align-items: center; min-height: 36px; padding: 0 16px; border-radius: 999px; background: var(--bg-3); border: 0; font: italic 800 12px/1 var(--display); font-stretch: 125%; text-transform: uppercase; color: var(--soft); transition: background .2s, color .2s; white-space: nowrap; }
.pill:hover { background: var(--bg-4); color: var(--text); }
.pill[aria-pressed="true"], .pill[aria-selected="true"], .pill.on { background: var(--gold); color: #000; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pills.scroll { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.pills.scroll::-webkit-scrollbar { display: none; }
.select { min-height: 38px; padding: 0 36px 0 14px; border-radius: 999px; border: 0; background: var(--bg-3) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23e8b931'/%3E%3C/svg%3E") no-repeat right 14px center; appearance: none; font: 700 13px/1 var(--body); color: var(--text); }
input.select { background-image: none; padding-right: 14px; }

/* ---------- utility bar + ticker ---------- */
.util { background: #0c0c0c; border-bottom: 1px solid var(--line); font-size: 12px; }
.util-in { display: flex; align-items: center; justify-content: space-between; height: 34px; gap: 16px; }
.lang { display: flex; height: 100%; }
.lang a, .lang span { display: flex; align-items: center; padding: 0 14px; font: italic 800 11px/1 var(--display); font-stretch: 125%; text-transform: uppercase; color: var(--muted); }
.lang .on { background: var(--gold); color: #000; }
.lang span small { margin-left: 6px; font: 600 9px/1 var(--body); font-style: normal; letter-spacing: .08em; color: var(--muted); }
.util-mid { flex: 1; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.ticker-run { display: flex; width: max-content; animation: tick 70s linear infinite; }
.util-mid:hover .ticker-run { animation-play-state: paused; }
.ticker-item { display: flex; align-items: center; gap: 8px; padding: 0 18px; white-space: nowrap; font: italic 800 11px/1 var(--display); font-stretch: 112%; text-transform: uppercase; color: var(--soft); }
.ticker-item b { color: var(--gold); }
.ticker-item small { font: 600 10px/1 var(--body); font-style: normal; color: var(--muted); letter-spacing: .06em; }
@keyframes tick { to { transform: translateX(-50%); } }
.socials { display: flex; gap: 2px; }
.socials a { width: 30px; height: 30px; display: grid; place-items: center; color: var(--soft); border-radius: 6px; }
.socials a:hover { color: var(--gold); background: var(--bg-3); }
.socials svg { width: 15px; height: 15px; }
@media (max-width: 700px) { .util-mid { display: none; } }

/* ---------- header + tab bar ---------- */
@view-transition { navigation: auto; }
.top { position: sticky; top: 0; z-index: 50; view-transition-name: top; }
/* blur on a pseudo-element so .top never becomes a containing block for fixed children */
.top::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(20, 20, 20, .95); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid rgba(232, 185, 49, .55); }
.top-in { display: flex; align-items: center; gap: 18px; height: 62px; }
.brand { display: flex; align-items: center; gap: 12px; flex: 0 0 auto; }
.brand .brand-logo { width: 118px; height: auto; }
.brand .foot-logo { width: 160px; }
.brand .fav { width: 24px; height: 28px; margin-left: 2px; }
.top-tag { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font: italic 800 11px/1 var(--display); font-stretch: 125%; text-transform: uppercase; color: var(--muted); }
.top-in .btn { flex: 0 0 auto; }
.top-in .btn[aria-current="page"] { background: var(--text); }
.tabbar { border-top: 1px solid var(--line); }
.tabbar-in { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.tabbar-in::-webkit-scrollbar { display: none; }
.tab { position: relative; flex: 0 0 auto; display: flex; align-items: center; gap: 7px; height: 40px; padding: 0 12px; font: italic 800 12px/1 var(--display); font-stretch: 118%; text-transform: uppercase; color: var(--muted); transition: color .2s, background .2s; }
.tab svg { width: 15px; height: 15px; flex: 0 0 auto; }
.tab:hover { color: var(--text); background: rgba(255, 255, 255, .04); }
.tab[aria-current="page"] { color: var(--text); }
.tab[aria-current="page"] svg { color: var(--gold); }
.tab[aria-current="page"]::after { content: ""; position: absolute; left: 8px; right: 8px; bottom: 0; height: 3px; border-radius: 3px 3px 0 0; background: var(--gold); }
.tab.fz { color: var(--gold); }

/* menu button + panel */
.menu-btn { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 9px; height: 38px; padding: 0 14px; border: 0; border-radius: 8px; background: var(--bg-3); color: var(--text); font: italic 800 12px/1 var(--display); font-stretch: 125%; text-transform: uppercase; }
.menu-btn:hover { background: var(--bg-4); }
.mb-ico { position: relative; width: 16px; height: 12px; }
.mb-ico i { position: absolute; left: 0; right: 0; height: 2px; border-radius: 2px; background: currentColor; transition: transform .25s var(--ease), opacity .2s; }
.mb-ico i:nth-child(1) { top: 0; } .mb-ico i:nth-child(2) { top: 5px; } .mb-ico i:nth-child(3) { top: 10px; }
.menu-btn[aria-expanded="true"] { background: var(--gold); color: #000; }
.menu-btn[aria-expanded="true"] .mb-ico i:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.menu-btn[aria-expanded="true"] .mb-ico i:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] .mb-ico i:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }
.menu { position: absolute; left: 0; right: 0; top: 100%; background: var(--bg); border-bottom: 1px solid rgba(232, 185, 49, .55); box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .8); max-height: calc(100dvh - 104px); overflow-y: auto; overscroll-behavior: contain; animation: drop .25s var(--ease); }
@keyframes drop { from { opacity: 0; transform: translateY(-8px); } }
.menu-in { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; padding-top: 24px; padding-bottom: 28px; }
.menu-group h5 { margin: 0 0 10px; font: italic 900 11px/1 var(--display); font-stretch: 125%; text-transform: uppercase; color: var(--gold); }
.menu-link { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 8px; font: italic 800 15px/1.1 var(--display); font-stretch: 118%; text-transform: uppercase; color: var(--soft); transition: background .15s, color .15s; }
.menu-link svg { width: 18px; height: 18px; flex: 0 0 auto; color: var(--muted); }
.menu-link:hover { background: var(--bg-2); color: var(--text); }
.menu-link[aria-current="page"] { background: var(--bg-2); color: var(--gold); }
.menu-link[aria-current="page"] svg { color: var(--gold); }
body.menu-open::after { content: ""; position: fixed; inset: 0; z-index: 40; background: rgba(0, 0, 0, .55); }
@media (max-width: 760px) {
  .menu-in { grid-template-columns: 1fr 1fr; gap: 18px 12px; }
  .menu-group:last-child { grid-column: 1 / -1; }
  .menu-group:last-child { display: grid; grid-template-columns: 1fr 1fr; column-gap: 12px; }
  .menu-group:last-child h5 { grid-column: 1 / -1; }
}
@media (max-width: 620px) {
  .top-in { height: 54px; gap: 10px; }
  .top-tag { font-size: 10px; }
  .tab { height: 38px; padding: 0 10px; font-size: 11px; }
  .tab svg { display: none; }
  .menu-link { font-size: 13px; padding: 10px; }
}
@media (max-width: 560px) { .top-tag { display: none; } .brand { margin-right: auto; } }
@media (max-width: 420px) { .top-tag { display: none; } .brand { margin-right: auto; } .join-btn { display: none; } }

/* ---------- sections ---------- */
.sec { padding: clamp(48px, 7vw, 96px) 0; }
.sec.tight { padding: clamp(32px, 4vw, 56px) 0; }
.sec.alt { background: #101010; }
.sec-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: clamp(20px, 3vw, 32px); }
.sec-head.center { justify-content: center; text-align: center; flex-direction: column; }
.grid { display: grid; gap: clamp(12px, 1.4vw, 18px); }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1000px) { .g3, .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .g2, .g3 { grid-template-columns: minmax(0, 1fr); } .g4:not(.keep2) { grid-template-columns: minmax(0, 1fr); } }
.panel { background: var(--bg-2); border-radius: var(--r); }

/* ---------- team patterns + crests ---------- */
.pat { background-color: var(--c2); background-image: var(--p); background-size: var(--ps, 120px); }
.crest { width: 40px; height: 47px; flex: 0 0 auto; }
.crest.sm { width: 26px; height: 30px; }
.crest.xs { width: 20px; height: 23px; }
.crest.lg { width: clamp(96px, 12vw, 150px); height: auto; aspect-ratio: 120 / 140; }

/* ---------- story cards (art + overlay title) ---------- */
.story { position: relative; display: block; overflow: hidden; border-radius: var(--r); background: var(--bg-2); isolation: isolate; container-type: inline-size; }
.story .art { position: absolute; inset: 0; z-index: -2; transition: transform .6s var(--ease); }
.story::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, transparent 35%, rgba(0, 0, 0, .88)); }
.story:hover .art { transform: scale(1.04); }
.story .cap { position: absolute; left: 0; right: 0; bottom: 0; padding: clamp(14px, 2vw, 26px); }
.story .cap h3 { margin-top: 8px; font-size: clamp(15px, 1.25vw, 19px); }
.story.big .cap h3 { font-size: clamp(22px, 2.6vw, 38px); max-width: 22ch; }
.story .ratio { aspect-ratio: 4 / 3; }
.story.big .ratio { aspect-ratio: 16 / 9; }
.gallery .story .ratio { aspect-ratio: auto; height: 100%; }

/* photo art (Pexels) */
.art.photo-art img { width: 100%; height: 100%; object-fit: cover; display: block; }
.article-photo { max-width: 1040px; margin: 0 auto 44px; }
.article-photo img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--r); display: block; }
.article-photo figcaption { margin-top: 10px; font-size: 13px; color: var(--muted); }
.article-photo figcaption a { color: var(--soft); text-decoration: underline; text-underline-offset: 2px; }
.article-photo figcaption a:hover { color: var(--gold); }

/* match poster art */
.poster { position: absolute; inset: 0; display: grid; grid-template-columns: 1fr 1fr; }
.poster .side { position: relative; }
.poster .side.a { clip-path: polygon(14% 0, 100% 0, 100% 100%, 0 100%); margin-left: -14%; }
.poster .vs { position: absolute; inset: 0 0 34% 0; display: flex; align-items: center; justify-content: center; gap: 4cqw; }
.story.big .poster .vs { inset: 0 0 18% 0; }
.poster .vs .crest { width: 16cqw; height: auto; aspect-ratio: 120 / 140; filter: drop-shadow(0 10px 24px rgba(0, 0, 0, .5)); }
.poster .score { font: italic 900 9cqw/1 var(--display); font-stretch: 125%; letter-spacing: -.03em; background: #0b0b0b; color: #fff; padding: .14em .34em .1em .26em; border-radius: 8px; white-space: nowrap; box-shadow: 0 16px 40px -12px rgba(0, 0, 0, .7); }
.poster .score i { color: var(--gold); font-style: inherit; margin: 0 .08em; }
.poster .score.ko { font-size: 5cqw; }

/* art for non-match stories */
.art.brand-art { background: radial-gradient(110% 90% at 80% 10%, rgba(232, 185, 49, .42), transparent 55%), linear-gradient(150deg, #2a2a2a, #0c0c0c); overflow: hidden; }
.art.brand-art img { position: absolute; left: 50%; top: 32%; width: 34cqw; opacity: .9; transform: translate(-50%, -50%); filter: drop-shadow(0 18px 40px rgba(0, 0, 0, .6)); }
.art.brand-art::before { content: attr(data-word); position: absolute; left: -2%; top: 6%; font: italic 900 22cqw/1 var(--display); font-stretch: 125%; text-transform: uppercase; color: transparent; -webkit-text-stroke: 1.5px rgba(232, 185, 49, .28); white-space: nowrap; }

/* ---------- home hero ---------- */
.hero { padding: clamp(20px, 3vw, 32px) 0 clamp(40px, 5vw, 64px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 2.05fr) minmax(300px, 1fr); gap: 14px; }
.hero-main { display: grid; gap: 12px; align-content: start; }
.hero-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.hero-side { display: grid; gap: 12px; align-content: start; }
@media (max-width: 1000px) { .hero-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 620px) { .hero-row { grid-template-columns: minmax(0, 1fr); } .hero-row .story .ratio { aspect-ratio: 16 / 8; } }

.promo { position: relative; overflow: hidden; border-radius: var(--r); padding: 22px; background: linear-gradient(135deg, var(--gold), #c99512); color: #000; isolation: isolate; }
.promo h3 { font-size: clamp(20px, 1.8vw, 26px); }
.promo p { margin: 10px 0 16px; font-size: 14px; line-height: 1.45; max-width: 30ch; }
.promo .btn { background: #000; color: var(--gold); }
.promo .btn:hover { background: #1b1b1b; box-shadow: none; }
.promo::after { content: attr(data-md); position: absolute; right: -4px; bottom: -44px; z-index: -1; font: italic 900 200px/1 var(--display); font-stretch: 125%; color: rgba(0, 0, 0, .13); }
.side-head { display: flex; justify-content: space-between; align-items: baseline; padding: 4px 2px 2px; }
.side-head h3 { font-size: 16px; }

.fx { display: grid; gap: 6px; }
.fx-row { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 10px; padding: 12px 14px; background: var(--bg-2); border-radius: 8px; transition: background .2s; }
.fx-row:hover { background: var(--bg-3); }
.fx-row .t { display: flex; align-items: center; gap: 8px; font: italic 800 12px/1.1 var(--display); font-stretch: 112%; text-transform: uppercase; min-width: 0; }
.fx-row .t span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fx-row .t.a { justify-content: flex-end; text-align: right; }
.fx-row .t.a .crest { order: 2; }
.fx-row .mid { text-align: center; font-size: 11px; line-height: 1.3; color: var(--muted); }
.fx-row .mid b { display: block; color: var(--text); font: italic 900 15px/1.2 var(--display); font-stretch: 125%; }
.mine { box-shadow: inset 3px 0 0 var(--gold); }

/* your-club strip (filled by JS) */
.myclub { display: none; }
.myclub.on { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; padding: 14px 18px; border-radius: var(--r); margin-bottom: 14px; position: relative; overflow: hidden; isolation: isolate; }
.myclub.on::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0, 0, 0, .88) 40%, rgba(0, 0, 0, .4)); z-index: -1; }
.myclub .crest { width: 44px; height: 51px; }
.myclub b { font: italic 900 20px/1 var(--display); font-stretch: 125%; text-transform: uppercase; }
.myclub .meta { color: var(--soft); }
.myclub .spacer { flex: 1; }

/* ---------- pre-launch ---------- */
.soon-hero { position: relative; overflow: hidden; isolation: isolate; padding: clamp(36px, 6vw, 88px) 0 clamp(40px, 6vw, 80px); border-bottom: 1px solid var(--line); }
.soon-bg { position: absolute; inset: 0; z-index: -1; background: radial-gradient(90% 70% at 15% 0%, rgba(232, 185, 49, .16), transparent 60%), #0e0e0e; }
.soon-bg .beam { position: absolute; left: 20%; top: -30%; width: 90%; height: 160%; background: conic-gradient(from 180deg at 50% 0%, transparent 162deg, rgba(232, 185, 49, .12) 175deg, rgba(232, 185, 49, .2) 180deg, rgba(232, 185, 49, .12) 185deg, transparent 198deg); animation: sway 12s ease-in-out infinite alternate; }
@keyframes sway { from { transform: translateX(-8%) rotate(-4deg); } to { transform: translateX(6%) rotate(4deg); } }
.soon-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(320px, 1fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
@media (max-width: 1000px) { .soon-grid { grid-template-columns: minmax(0, 1fr); } }
.lockup { display: flex; align-items: center; gap: 18px; margin-bottom: 30px; }
.soon-logo { display: block; width: clamp(130px, 12vw, 170px); height: auto; }
.lockup-sep { width: 1px; align-self: stretch; min-height: 38px; background: linear-gradient(180deg, transparent, var(--gold), transparent); }
.lockup-txt { font: italic 800 11px/1.5 var(--display); font-stretch: 125%; text-transform: uppercase; letter-spacing: .02em; color: var(--muted); }
.lockup-txt b { display: block; color: var(--gold); font-size: 12px; }
.soon-main h1 { margin: 0; font-size: clamp(44px, 6.4vw, 96px); }
.soon-main .lede { margin-top: 18px; }
.soon-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.count { display: grid; grid-template-columns: repeat(4, minmax(0, 92px)); gap: 8px; margin-top: 26px; }
.count div { background: var(--bg-2); border-radius: 8px; padding: 14px 8px 10px; text-align: center; box-shadow: inset 0 -3px 0 var(--gold); }
.count b { display: block; font: italic 900 clamp(30px, 4vw, 46px)/1 var(--display); font-stretch: 125%; font-variant-numeric: tabular-nums; }
.count span { font: 700 10px/1 var(--body); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.tracker { padding: clamp(18px, 2.4vw, 26px); }
.tracker-top { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.tracker-count { margin: 14px 0 12px; font: italic 900 20px/1 var(--display); font-stretch: 125%; text-transform: uppercase; color: var(--soft); }
.tracker-count b { font-size: clamp(48px, 6vw, 72px); color: var(--gold); margin-right: 6px; }
.tracker-count span { font-size: clamp(24px, 3vw, 34px); color: var(--text); margin-right: 8px; }
.track-bar { height: 10px; border-radius: 99px; background: var(--bg-3); overflow: hidden; }
.track-bar i { display: block; height: 100%; width: max(var(--w), 2%); background: linear-gradient(90deg, var(--gold-lo), var(--gold)); border-radius: 99px; }
.slots { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-top: 18px; }
.tracker.big .slots { grid-template-columns: repeat(8, minmax(0, 1fr)); }
@media (max-width: 900px) { .tracker.big .slots { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.slot { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 14px 6px 12px; border-radius: 8px; background: var(--bg-3); color: #5c5c5c; text-align: center; transition: color .2s, background .2s; }
.slot .crest { width: 40px; height: 47px; }
.slot span { font: italic 800 9.5px/1.15 var(--display); font-stretch: 112%; text-transform: uppercase; color: var(--muted); }
a.slot:hover { color: var(--gold); background: var(--bg-4); }
a.slot:hover span { color: var(--text); }
.slot.filled { background: rgba(232, 185, 49, .12); box-shadow: inset 0 0 0 1px rgba(232, 185, 49, .5); }
.slot.filled span { color: var(--text); }
.slot-logo { width: 47px; height: 47px; object-fit: contain; transform: scale(1.45); }
.slot small { font: 700 9px/1 var(--body); letter-spacing: .1em; text-transform: uppercase; color: var(--gold); }
.tracker-foot { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 18px; }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 820px) { .steps { grid-template-columns: minmax(0, 1fr); } }
.step { background: var(--bg-2); border-radius: var(--r); padding: 24px; display: grid; gap: 10px; align-content: start; }
.step .n { font: italic 900 44px/1 var(--display); font-stretch: 125%; color: var(--gold); }
.step p { margin: 0; color: var(--muted); }
a.card { transition: transform .25s var(--ease); }
a.card:hover { transform: translateY(-3px); }

/* ---------- stats centre ---------- */
.tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.sc-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 16px; align-items: start; }
@media (max-width: 1000px) { .sc-grid { grid-template-columns: minmax(0, 1fr); } }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.std { width: 100%; border-collapse: collapse; font-size: 14px; }
.std th { font: 700 11px/1 var(--body); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding: 16px 8px 12px; text-align: center; }
.std th.l, .std td.l { text-align: left; }
.std td { padding: 9px 8px; text-align: center; border-top: 1px solid var(--line); font-variant-numeric: tabular-nums; color: var(--soft); }
.std td.pos { width: 44px; color: var(--muted); font-weight: 700; padding-left: 16px; }
.std tr.top1 td.pos { color: var(--gold); }
.std tr.top1 td { background: rgba(232, 185, 49, .06); }
.std td.team a { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--text); white-space: nowrap; }
.std td.team a:hover { color: var(--gold); }
.std td.pts { color: var(--text); font: italic 900 16px/1 var(--display); font-stretch: 125%; padding-right: 16px; }
.std tbody tr:hover td { background: var(--bg-3); }
.std tr.mine td { background: rgba(232, 185, 49, .12); box-shadow: none; }
.std tr.mine td.team a { color: var(--gold); }
.form { display: inline-flex; gap: 3px; }
.form i { width: 18px; height: 18px; border-radius: 4px; font: 800 9px/18px var(--body); font-style: normal; color: #000; text-align: center; }
.form .W { background: var(--win); } .form .D { background: var(--draw); } .form .L { background: var(--loss); color: #fff; }
.table-note { padding: 12px 16px; font-size: 12px; color: var(--muted); border-top: 1px solid var(--line); }

/* stat cards */
.statcards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.scard { position: relative; overflow: hidden; border-radius: var(--r); aspect-ratio: 4 / 3.7; display: block; isolation: isolate; }
.scard .pat { position: absolute; inset: 0; z-index: -3; }
.scard .sil { position: absolute; left: 50%; bottom: 0; width: 74%; transform: translateX(-50%); z-index: -2; transition: transform .5s var(--ease); }
.scard:hover .sil { transform: translateX(-50%) scale(1.04); }
.scard::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, transparent 45%, rgba(0, 0, 0, .9)); }
.scard .crest { position: absolute; left: 12px; top: 12px; width: 30px; height: 35px; }
.scard .kind { position: absolute; right: 12px; top: 12px; font: italic 800 11px/1 var(--display); font-stretch: 125%; text-transform: uppercase; background: rgba(0, 0, 0, .6); padding: 6px 8px; border-radius: 5px; }
.scard .who { position: absolute; left: 14px; right: 14px; bottom: 12px; display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; }
.scard .who h4 { font-size: clamp(13px, 1.25vw, 18px); line-height: 1; min-width: 0; }
.scard .who h4 small { display: block; font: 700 10px/1.3 var(--body); font-style: normal; letter-spacing: .06em; color: var(--soft); margin-bottom: 4px; }
.scard .who .v { font: italic 900 clamp(34px, 4vw, 56px)/.8 var(--display); font-stretch: 125%; color: var(--gold); }

/* leaders */
.leader { background: var(--bg-2); border-radius: var(--r); overflow: hidden; }
.leader-top { padding: 16px 18px; display: flex; justify-content: space-between; align-items: center; }
.leader ol { list-style: none; margin: 0; padding: 0; }
.leader li a { display: grid; grid-template-columns: 22px 26px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 11px 18px; border-top: 1px solid var(--line); transition: background .15s; }
.leader li a:hover { background: var(--bg-3); }
.leader .r { font-weight: 700; color: var(--muted); font-size: 13px; }
.leader li:first-child .r, .leader li:first-child .v { color: var(--gold); }
.leader .n { font-weight: 700; font-size: 14px; line-height: 1.25; min-width: 0; }
.leader .n small { display: block; font-weight: 500; color: var(--muted); font-size: 12px; }
.leader .v { font: italic 900 20px/1 var(--display); font-stretch: 125%; }

/* team stat bars */
.bars { display: grid; gap: 12px; padding: 18px; }
.bars h4 { margin-bottom: 4px; }
.bar-row { display: grid; grid-template-columns: 150px minmax(0, 1fr) 36px; gap: 12px; align-items: center; font-size: 13px; font-weight: 700; }
.bar-row a { display: flex; gap: 8px; align-items: center; white-space: nowrap; overflow: hidden; }
.bar-track { height: 10px; background: var(--bg-3); border-radius: 99px; overflow: hidden; }
.bar-fill { height: 100%; width: var(--w); background: var(--gold); border-radius: 99px; transform-origin: left; }
.on-show .bar-fill { animation: grow 1s var(--ease) both; }
.bar-row .v { text-align: right; font: italic 900 15px/1 var(--display); font-stretch: 125%; }
@keyframes grow { from { transform: scaleX(0); } }
@media (max-width: 520px) { .bar-row { grid-template-columns: 34px minmax(0, 1fr) 30px; } .bar-row a span { display: none; } }

/* ---------- match list rows ---------- */
.mlist { container: mlist / inline-size; }
.md-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; padding: 28px 0 12px; }
.md-head h3 { font-size: clamp(20px, 2vw, 26px); }
.md-head span { font-size: 13px; color: var(--muted); font-weight: 600; }
.match { display: grid; grid-template-columns: 110px minmax(0, 1fr) 100px minmax(0, 1fr) 160px; align-items: center; gap: 16px; padding: 14px 18px; margin-bottom: 6px; background: var(--bg-2); border-radius: 8px; transition: background .2s; }
a.match:hover { background: var(--bg-3); }
.match-time { font-size: 12px; color: var(--muted); line-height: 1.3; font-weight: 600; }
.match-time b { display: block; color: var(--text); font: italic 900 14px/1.3 var(--display); font-stretch: 125%; text-transform: uppercase; }
.match-team { display: flex; align-items: center; gap: 12px; font: italic 800 16px/1.05 var(--display); font-stretch: 112%; text-transform: uppercase; min-width: 0; }
.match-team span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.match-team.home { justify-content: flex-end; text-align: right; }
.match-team.home .crest { order: 2; }
.match-team.lost { color: var(--muted); }
.score { display: flex; justify-content: center; align-items: center; height: 42px; border-radius: 6px; background: #0b0b0b; font: italic 900 22px/1 var(--display); font-stretch: 125%; font-variant-numeric: tabular-nums; }
.score i { font-style: inherit; width: 36px; text-align: center; }
.score i + i { border-left: 1px solid var(--bg-4); }
.score.ko { background: transparent; box-shadow: inset 0 0 0 1.5px var(--bg-4); font-size: 15px; color: var(--gold); }
.match-venue { font-size: 12px; color: var(--muted); text-align: right; line-height: 1.35; }
.match-venue b { display: block; font: italic 800 11px/1.4 var(--display); font-stretch: 125%; text-transform: uppercase; color: var(--gold); }
@container mlist (max-width: 720px) {
  .match { grid-template-columns: minmax(0, 1fr) 80px minmax(0, 1fr); gap: 10px; padding: 12px 10px; }
  .match-time { grid-column: 1 / -1; display: flex; gap: 8px; align-items: baseline; }
  .match-time b { display: inline; font-size: 12px; }
  .match-venue { display: none; }
  .match-team, .match-team.home { flex-direction: column; text-align: center; font-size: 13px; gap: 8px; }
  .match-team.home .crest { order: 0; }
  .match-team span { white-space: normal; }
  .score { height: 36px; font-size: 18px; }
  .score i { width: 30px; }
}
.gd-pills { justify-content: center; margin-bottom: 20px; }
.gd-pills .pill { min-width: 44px; justify-content: center; }

/* ---------- team cards ---------- */
.tcard { position: relative; display: block; overflow: hidden; border-radius: var(--r); aspect-ratio: 4 / 4.6; isolation: isolate; }
.tcard .pat { position: absolute; inset: 0; z-index: -2; transition: transform .6s var(--ease); }
.tcard:hover .pat { transform: scale(1.06); }
.tcard::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(0, 0, 0, .05) 30%, rgba(0, 0, 0, .85)); }
.tcard .crest { position: absolute; left: 50%; top: 42%; transform: translate(-50%, -50%) rotate(-4deg); width: 44%; height: auto; aspect-ratio: 120 / 140; filter: drop-shadow(0 20px 40px rgba(0, 0, 0, .55)); transition: transform .5s var(--ease); }
.tcard:hover .crest { transform: translate(-50%, -54%) rotate(0); }
.tcard .cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 18px; text-align: center; }
.tcard .cap h3 { font-size: clamp(17px, 1.7vw, 24px); }
.tcard .cap span { display: block; margin-top: 6px; font-size: 13px; color: var(--soft); }
.tcard .pos-badge { position: absolute; right: 12px; top: 12px; background: rgba(0, 0, 0, .65); border-radius: 6px; padding: 6px 9px; font: italic 900 13px/1 var(--display); font-stretch: 125%; }
.tcard .pos-badge small { font: 600 10px/1 var(--body); font-style: normal; color: var(--soft); margin-left: 4px; }
.tcard .fav-badge { position: absolute; left: 12px; top: 12px; background: var(--gold); color: #000; border-radius: 6px; padding: 6px 9px; font: italic 900 11px/1 var(--display); font-stretch: 125%; text-transform: uppercase; display: none; }
.tcard.mine { box-shadow: inset 0 0 0 3px var(--gold); }
.tcard.mine .fav-badge { display: block; }

/* ---------- player cards (tilt) ---------- */
.pcard { position: relative; display: block; border-radius: var(--r); overflow: hidden; aspect-ratio: 3 / 4; isolation: isolate; transition: transform .25s var(--ease), box-shadow .25s; }
.pcard:hover { box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .9); }
.pcard .pat { position: absolute; inset: 0; z-index: -3; }
.pcard .sil { position: absolute; left: 50%; bottom: 0; width: 82%; transform: translateX(-50%); z-index: -2; }
.pcard::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, transparent 48%, rgba(0, 0, 0, .92)); }
.pcard .gloss { position: absolute; inset: 0; z-index: 2; pointer-events: none; background: radial-gradient(circle at var(--gx, 50%) var(--gy, 0%), rgba(255, 255, 255, .25), transparent 45%); opacity: 0; transition: opacity .3s; }
.pcard:hover .gloss { opacity: 1; }
.pcard .pnum { position: absolute; left: 12px; top: 8px; font: italic 900 clamp(40px, 4.6vw, 64px)/1 var(--display); font-stretch: 125%; color: transparent; -webkit-text-stroke: 1.5px rgba(255, 255, 255, .85); }
.pcard .crest { position: absolute; right: 12px; top: 12px; width: 28px; height: 33px; }
.pcard .pinfo { position: absolute; left: 12px; right: 12px; bottom: 12px; }
.pcard .pinfo .tag { font-size: 10px; }
.pcard .pinfo h4 { font-size: clamp(13px, 1.15vw, 16px); margin-top: 5px; }
.pcard .pstats { display: flex; gap: 12px; margin-top: 8px; font-size: 11px; color: var(--soft); font-weight: 600; }
.pcard .pstats b { font: italic 900 14px/1 var(--display); font-stretch: 125%; color: var(--text); margin-right: 3px; }

/* ---------- inner page hero ---------- */
.phero { position: relative; overflow: hidden; isolation: isolate; background: #0e0e0e; border-bottom: 1px solid var(--line); }
.phero-in { padding-top: clamp(40px, 6vw, 84px); padding-bottom: clamp(32px, 4vw, 56px); }
.phero h1 { margin-top: 14px; }
.phero .lede { margin-top: 16px; }
.phero .ghost-word { position: absolute; right: -1vw; bottom: -.16em; z-index: -1; font: italic 900 clamp(100px, 18vw, 290px)/1 var(--display); font-stretch: 125%; text-transform: uppercase; color: transparent; -webkit-text-stroke: 1.5px rgba(232, 185, 49, .18); white-space: nowrap; pointer-events: none; }
.phero > .pat { position: absolute; inset: 0; z-index: -2; }
.phero.team::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(0, 0, 0, .93) 35%, rgba(0, 0, 0, .5)); }
.crumbs { font: 700 12px/1 var(--body); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.crumbs a:hover { color: var(--gold); }
.crumbs span { margin: 0 8px; }
.facts { display: flex; flex-wrap: wrap; gap: 10px 32px; margin-top: 20px; }
.facts div span { display: block; font: 700 10px/1 var(--body); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.facts div b { font: 700 16px/1.2 var(--body); }
.statrow { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
.statrow div { padding: 18px; background: var(--bg-2); border-radius: 8px; }
.statrow b { display: block; font: italic 900 clamp(26px, 3vw, 42px)/1 var(--display); font-stretch: 125%; font-variant-numeric: tabular-nums; }
.statrow span { font: 700 10px/1.2 var(--body); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
@media (max-width: 760px) { .statrow { grid-template-columns: repeat(3, minmax(0, 1fr)); } .statrow div { padding: 14px; } }
.thero-in { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(20px, 4vw, 48px); align-items: center; padding-top: clamp(36px, 5vw, 72px); padding-bottom: clamp(36px, 5vw, 72px); }
@media (max-width: 620px) { .thero-in { grid-template-columns: minmax(0, 1fr); } }
.follow { margin-top: 22px; }
.follow[aria-pressed="true"] { background: var(--bg-3); color: var(--gold); }

table.squad { width: 100%; border-collapse: collapse; font-size: 14px; }
.squad th { font: 700 11px/1 var(--body); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding: 14px 8px; text-align: center; }
.squad th.l, .squad td.l { text-align: left; }
.squad td { padding: 11px 8px; border-top: 1px solid var(--line); text-align: center; font-variant-numeric: tabular-nums; color: var(--soft); }
.squad td.no { font: italic 900 16px/1 var(--display); font-stretch: 125%; color: var(--gold); width: 52px; padding-left: 16px; }
.squad td.l a { font-weight: 700; color: var(--text); }
.squad td.l a:hover { color: var(--gold); }
.squad td.l small { display: block; font-size: 12px; color: var(--muted); }
.squad tbody tr:hover td { background: var(--bg-3); }
.pos-chip { display: inline-block; min-width: 34px; padding: 4px 6px; border-radius: 4px; background: var(--bg-4); font: 800 10px/1 var(--body); letter-spacing: .06em; }

/* player profile */
.pp-in { display: grid; grid-template-columns: minmax(0, 320px) minmax(0, 1fr); gap: clamp(20px, 5vw, 64px); align-items: end; padding-top: clamp(32px, 4vw, 56px); padding-bottom: clamp(32px, 4vw, 56px); }
.pp-body h1 small { display: block; font: 700 14px/1 var(--body); font-style: normal; letter-spacing: .08em; color: var(--muted); margin-bottom: 12px; }
@media (max-width: 760px) { .pp-in { grid-template-columns: minmax(0, 1fr); } .pp-in .pcard { max-width: 260px; } }

/* match centre */
.mc { padding: clamp(32px, 5vw, 64px) 0; }
.mc-board { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: clamp(12px, 4vw, 56px); text-align: center; }
.mc-board .crest { width: clamp(64px, 9vw, 116px); height: auto; aspect-ratio: 120 / 140; margin: 0 auto 14px; }
.mc-board h2 { font-size: clamp(15px, 2.6vw, 34px); }
.mc-score { font: italic 900 clamp(52px, 10vw, 140px)/.9 var(--display); font-stretch: 125%; font-variant-numeric: tabular-nums; display: flex; gap: .18em; align-items: center; justify-content: center; }
.mc-score i { font-style: inherit; color: var(--gold); font-size: .5em; }
.mc-score.ko { font-size: clamp(30px, 5vw, 64px); color: var(--gold); }
.mc-status { display: inline-block; margin-top: 10px; padding: 7px 12px; background: var(--bg-3); border-radius: 999px; font: italic 800 11px/1 var(--display); font-stretch: 125%; text-transform: uppercase; color: var(--soft); }
.mc-meta { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 24px; margin-top: 26px; color: var(--muted); font-size: 14px; }
.mc-scorers { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 16px; margin-top: 22px; font-size: 13px; color: var(--soft); }
.mc-scorers div:first-child { text-align: right; }
.mc-scorers .ball { color: var(--gold); }
.timeline { position: relative; max-width: 760px; margin: 0 auto; }
.timeline::before { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 2px; background: var(--line); transform: translateX(-50%); }
.ev { display: grid; grid-template-columns: minmax(0, 1fr) 64px minmax(0, 1fr); align-items: center; padding: 8px 0; position: relative; }
.ev .min { grid-column: 2; grid-row: 1; justify-self: center; width: 46px; height: 46px; border-radius: 50%; background: var(--bg-3); display: grid; place-items: center; font: italic 900 15px/1 var(--display); font-stretch: 125%; z-index: 1; }
.ev .side { display: flex; align-items: center; gap: 10px; padding: 0 14px; font-weight: 700; font-size: 14px; }
.ev .side small { display: block; color: var(--muted); font-weight: 500; font-size: 12px; }
.ev .side.h { justify-content: flex-end; text-align: right; grid-column: 1; grid-row: 1; }
.ev .side.a { grid-column: 3; grid-row: 1; }
.ev .side a:hover { color: var(--gold); }
.ico { width: 20px; height: 20px; flex: 0 0 auto; }
.card-y, .card-r { display: inline-block; width: 13px; height: 18px; border-radius: 2px; flex: 0 0 auto; vertical-align: middle; }
.card-y { background: #f2c200; } .card-r { background: #e03131; }
.ev.ht { grid-template-columns: 1fr; text-align: center; }
.ev.ht span { justify-self: center; background: var(--bg); border: 1px solid var(--line); padding: 5px 14px; border-radius: 999px; font: italic 800 11px/1 var(--display); font-stretch: 125%; text-transform: uppercase; color: var(--muted); z-index: 1; }
.lineups { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.lineups > div { padding: 18px; }
.lineups h4 { display: flex; gap: 10px; align-items: center; margin-bottom: 12px; }
.lineups ul { list-style: none; margin: 0; padding: 0; }
.lineups li { display: flex; gap: 12px; padding: 8px 0; border-top: 1px solid var(--line); font-size: 14px; }
.lineups li b { width: 26px; font: italic 900 14px/1.4 var(--display); font-stretch: 125%; color: var(--gold); }
.lineups li small { margin-left: auto; color: var(--muted); font-weight: 700; font-size: 11px; }
.lineups li a:hover { color: var(--gold); }
@media (max-width: 620px) { .lineups { grid-template-columns: 1fr; } }

/* ---------- interactive: vote ---------- */
.vote { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 900px) { .vote { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.vote-opt { position: relative; border: 0; padding: 0; background: none; text-align: left; border-radius: var(--r); overflow: hidden; aspect-ratio: 4 / 4.4; isolation: isolate; color: var(--text); }
.vote-opt .pat { position: absolute; inset: 0; z-index: -3; }
.vote-opt .sil { position: absolute; left: 50%; bottom: 0; width: 78%; transform: translateX(-50%); z-index: -2; transition: transform .4s var(--ease); }
.vote-opt:hover .sil { transform: translateX(-50%) scale(1.05); }
.vote-opt::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, transparent 40%, rgba(0, 0, 0, .92)); }
.vote-opt .crest { position: absolute; right: 12px; top: 12px; width: 26px; height: 30px; }
.vote-opt .vinfo { position: absolute; left: 12px; right: 12px; bottom: 12px; }
.vote-opt h4 { font-size: clamp(13px, 1.2vw, 16px); }
.vote-opt .why { display: block; margin-top: 6px; font-size: 12px; color: var(--soft); }
.vote-opt .vbar { margin-top: 10px; height: 6px; border-radius: 99px; background: rgba(255, 255, 255, .15); overflow: hidden; opacity: 0; transition: opacity .3s; }
.vote-opt .vbar i { display: block; height: 100%; width: 0; background: var(--gold); transition: width .8s var(--ease); }
.vote-opt .vpct { position: absolute; left: 12px; top: 8px; font: italic 900 38px/1 var(--display); font-stretch: 125%; opacity: 0; transition: opacity .3s; }
.vote-opt .vcta { position: absolute; left: 12px; top: 12px; background: var(--gold); color: #000; border-radius: 6px; padding: 6px 9px; font: italic 900 11px/1 var(--display); font-stretch: 125%; text-transform: uppercase; transform: translateY(-6px); opacity: 0; transition: .25s var(--ease); }
.vote-opt:hover .vcta, .vote-opt:focus-visible .vcta { opacity: 1; transform: none; }
.vote.voted .vote-opt { pointer-events: none; }
.vote.voted .vbar, .vote.voted .vpct { opacity: 1; }
.vote.voted .vcta { display: none; }
.vote.voted .vote-opt.picked { box-shadow: inset 0 0 0 3px var(--gold); }
.vote.voted .vote-opt:not(.picked) { filter: saturate(.55) brightness(.75); }
.vote-foot { margin-top: 12px; font-size: 13px; color: var(--muted); }

/* ---------- interactive: club picker ---------- */
.picker { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 900px) { .picker { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.pick { position: relative; border: 0; padding: 16px 6px 12px; border-radius: var(--r); background: var(--bg-2); display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; color: var(--text); transition: background .2s, transform .2s var(--ease); }
.pick:hover { background: var(--bg-3); transform: translateY(-2px); }
.pick .crest { width: 48px; height: 56px; }
.pick span { font: italic 800 10px/1.15 var(--display); font-stretch: 112%; text-transform: uppercase; }
.pick[aria-pressed="true"] { background: var(--gold); color: #000; }

/* ---------- interactive: compare ---------- */
.cmp { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr) minmax(0, 1fr); gap: 16px; align-items: start; }
@media (max-width: 900px) { .cmp { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .cmp-mid { grid-column: 1 / -1; order: 3; } }
.cmp-side { display: grid; gap: 10px; }
.cmp-side select { width: 100%; }
.cmp-side .pcard { pointer-events: none; }
.cmp-mid { padding: 6px 18px; }
.cmp-row { padding: 12px 0; border-top: 1px solid var(--line); }
.cmp-row:first-child { border-top: 0; }
.cmp-nums { display: grid; grid-template-columns: 48px minmax(0, 1fr) 48px; align-items: center; gap: 8px; }
.cmp-nums b { font: italic 900 20px/1 var(--display); font-stretch: 125%; color: var(--soft); }
.cmp-nums b:last-child { text-align: right; }
.cmp-nums b.win { color: var(--gold); }
.cmp-label { text-align: center; font: 700 10px/1 var(--body); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.cmp-bars { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; margin-top: 8px; }
.cmp-bars i { height: 6px; background: var(--bg-3); border-radius: 99px; overflow: hidden; position: relative; }
.cmp-bars i::after { content: ""; position: absolute; top: 0; bottom: 0; width: var(--w, 0%); background: var(--soft); transition: width .6s var(--ease); }
.cmp-bars i.win::after { background: var(--gold); }
.cmp-bars i:first-child::after { right: 0; }
.cmp-bars i:last-child::after { left: 0; }

/* ---------- news / media ---------- */
.news-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 1000px) { .news-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.news-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.news-grid.two .story .ratio { aspect-ratio: 16 / 9; }
@media (max-width: 560px) { .news-grid, .news-grid.two { grid-template-columns: minmax(0, 1fr); } }
.article { max-width: 760px; margin: 0 auto; }
.article p { font-size: 18px; line-height: 1.75; margin: 0 0 1.2em; color: var(--soft); }
.article p:first-child::first-letter { float: left; font: italic 900 78px/.8 var(--display); font-stretch: 125%; color: var(--gold); padding: 8px 12px 0 0; }
.byline { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; margin-top: 20px; color: var(--muted); font-size: 14px; }
.gallery { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 190px; gap: 12px; }
.gallery .story:nth-child(1) { grid-column: span 2; grid-row: span 2; }
.gallery .story:nth-child(6) { grid-column: span 2; }
@media (max-width: 760px) { .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 140px; } .gallery .story:nth-child(6) { grid-column: span 1; } }
.play { position: absolute; left: 50%; top: 40%; width: 58px; height: 58px; transform: translate(-50%, -50%); border-radius: 50%; background: var(--gold); display: grid; place-items: center; transition: transform .3s var(--ease); z-index: 2; }
.play::after { content: ""; border-left: 16px solid #000; border-top: 10px solid transparent; border-bottom: 10px solid transparent; margin-left: 4px; }
.story:hover .play { transform: translate(-50%, -50%) scale(1.1); }

/* ---------- crest + partner strip ---------- */
.strip { display: flex; justify-content: center; flex-wrap: wrap; gap: clamp(14px, 3vw, 34px); align-items: center; padding: 36px 0 28px; border-top: 1px solid var(--line); }
.strip a { opacity: .8; transition: opacity .2s, transform .2s; }
.strip a:hover { opacity: 1; transform: translateY(-2px); }
.strip .crest { width: 40px; height: 47px; }
.partners-row { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; padding-bottom: 44px; }
.partners-row span { min-width: 130px; padding: 14px 18px; border-radius: 8px; background: var(--bg-2); text-align: center; font: italic 800 12px/1 var(--display); font-stretch: 125%; text-transform: uppercase; color: var(--muted); }

/* ---------- about / competition / partners blocks ---------- */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 6vw, 88px); align-items: center; }
@media (max-width: 900px) { .split { grid-template-columns: minmax(0, 1fr); } }
.statement { font: italic 900 clamp(30px, 4.4vw, 64px)/.98 var(--display); font-stretch: 125%; text-transform: uppercase; letter-spacing: -.02em; margin: 0; }
.statement em { font-style: inherit; color: var(--gold); }
.pillars { counter-reset: p; }
.pillar { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 6px 16px; padding: 20px 0; border-top: 1px solid var(--line); }
.pillar::before { counter-increment: p; content: "0" counter(p); font: italic 900 16px/1.3 var(--display); font-stretch: 125%; color: var(--gold); }
.pillar h4 { font-size: 18px; }
.pillar p { grid-column: 2; margin: 0; color: var(--muted); }
.card { background: var(--bg-2); border-radius: var(--r); padding: clamp(22px, 3vw, 36px); display: flex; flex-direction: column; gap: 12px; }
.card p { margin: 0; color: var(--muted); }
.card.gold { background: linear-gradient(135deg, var(--gold), #c99512); color: #000; }
.card.gold p, .card.gold .tag { color: rgba(0, 0, 0, .72); }
.rules { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.rule { padding: 22px; background: var(--bg-2); border-radius: var(--r); display: grid; grid-template-columns: 44px 1fr; gap: 6px 12px; }
.rule .n { font: italic 900 16px/1.3 var(--display); font-stretch: 125%; color: var(--gold); grid-row: span 2; }
.rule p { margin: 0; color: var(--muted); font-size: 15px; }
@media (max-width: 760px) { .rules { grid-template-columns: minmax(0, 1fr); } }
.timeline-h { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.timeline-h div { padding: 22px; background: var(--bg-2); border-radius: var(--r); border-top: 3px solid var(--gold); }
.timeline-h b { display: block; font: italic 900 19px/1.1 var(--display); font-stretch: 125%; text-transform: uppercase; margin-bottom: 8px; }
.timeline-h span { color: var(--muted); font-size: 14px; }
@media (max-width: 760px) { .timeline-h { grid-template-columns: 1fr 1fr; } }
details.faq { border-top: 1px solid var(--line); }
details.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 16px; padding: 18px 0; font: italic 800 16px/1.15 var(--display); font-stretch: 112%; text-transform: uppercase; }
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: "+"; color: var(--gold); font-size: 24px; line-height: .8; transition: transform .3s; }
details.faq[open] summary::after { transform: rotate(45deg); }
details.faq p { margin: 0 0 18px; color: var(--muted); max-width: 70ch; }
.tiers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 900px) { .tiers { grid-template-columns: minmax(0, 1fr); } }
.tier { background: var(--bg-2); border-radius: var(--r); padding: 28px 24px; display: flex; flex-direction: column; gap: 14px; }
.tier.feat { background: linear-gradient(160deg, rgba(232, 185, 49, .22), var(--bg-2) 55%); box-shadow: inset 0 0 0 1.5px var(--gold); }
.tier ul { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 10px; }
.tier li { display: flex; gap: 10px; color: var(--soft); font-size: 15px; }
.tier li::before { content: ""; width: 6px; height: 6px; background: var(--gold); margin-top: 9px; flex: 0 0 auto; transform: rotate(45deg); }
.tier .btn { margin-top: auto; }
.reach { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.reach div { padding: 24px; background: var(--bg-2); border-radius: var(--r); }
.reach b { display: block; font: italic 900 clamp(34px, 4.6vw, 60px)/1 var(--display); font-stretch: 125%; color: var(--gold); }
.reach span { font-size: 14px; color: var(--muted); }
@media (max-width: 760px) { .reach { grid-template-columns: 1fr 1fr; } }
.logos { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.logo-slot { min-width: 0; overflow-wrap: break-word; aspect-ratio: 3 / 2; border: 1px dashed var(--bg-4); border-radius: var(--r); display: grid; place-items: center; text-align: center; padding: 12px; }
.logo-slot b { font: italic 900 15px/1 var(--display); font-stretch: 125%; text-transform: uppercase; color: var(--muted); }
.logo-slot span { display: block; font-size: 12px; color: var(--muted); margin-top: 6px; }
.logo-slot.big { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; border: 1.5px solid var(--gold); }
.logo-slot.big b { font-size: 26px; color: var(--gold); }
@media (max-width: 760px) { .logos { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* forms */
.form-card { background: var(--bg-2); border-radius: var(--r); padding: clamp(20px, 3.4vw, 36px); }
.fgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.fgrid .full { grid-column: 1 / -1; }
@media (max-width: 620px) { .fgrid { grid-template-columns: 1fr; } }
.field label { display: block; font: 700 11px/1 var(--body); letter-spacing: .1em; text-transform: uppercase; margin-bottom: 8px; color: var(--soft); }
.field input, .field select, .field textarea { width: 100%; min-height: 48px; padding: 12px 14px; border: 1.5px solid transparent; border-radius: 8px; background: var(--bg-3); font-size: 16px; transition: border-color .2s; }
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 0; border-color: var(--gold); }
.form-note { font-size: 13px; color: var(--muted); }
.form-done { display: none; padding: 24px; border-radius: var(--r); background: rgba(232, 185, 49, .12); box-shadow: inset 0 0 0 1px var(--gold); }
.form-done.show { display: block; }
.form-done p { color: var(--soft); }
.contact-list a, .contact-list div { display: flex; justify-content: space-between; gap: 16px; padding: 16px 0; border-top: 1px solid var(--line); }
.contact-list span { font: 700 11px/1.6 var(--body); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.contact-list a:hover b { color: var(--gold); }

/* toast */
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 300; visibility: hidden; transform: translate(-50%, calc(100% + 40px)); background: var(--gold); color: #000; padding: 14px 20px; border-radius: 10px; font: italic 900 14px/1.2 var(--display); font-stretch: 125%; text-transform: uppercase; box-shadow: 0 20px 50px -10px rgba(0, 0, 0, .6); transition: transform .4s var(--ease); max-width: calc(100% - 32px); text-align: center; }
.toast.show { visibility: visible; transform: translate(-50%, 0); }

/* ---------- footer ---------- */
.foot { background: #0c0c0c; padding: clamp(48px, 6vw, 80px) 0 28px; border-top: 1px solid var(--line); }
.foot-big { font: italic 900 clamp(38px, 7.2vw, 112px)/.88 var(--display); font-stretch: 125%; text-transform: uppercase; letter-spacing: -.03em; margin-bottom: clamp(36px, 5vw, 64px); }
.foot-big span { color: var(--gold); }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 28px; padding-bottom: 36px; border-bottom: 1px solid var(--line); }
.foot h5 { margin: 0 0 14px; font: italic 900 12px/1 var(--display); font-stretch: 125%; text-transform: uppercase; color: var(--gold); }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.foot ul a { color: var(--soft); font-size: 14px; }
.foot ul a:hover { color: var(--gold); }
.foot p { color: var(--muted); font-size: 14px; margin: 14px 0 0; max-width: 36ch; }
.foot-base { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 22px; font-size: 12px; color: var(--muted); }
@media (max-width: 900px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-grid > div:first-child { grid-column: 1 / -1; } }

/* ---------- squads ---------- */
img.crest { object-fit: contain; aspect-ratio: 1; height: auto; }
.tcard img.crest { width: 54%; }
.team-logo { border-radius: 50%; background: rgba(0, 0, 0, .25); }
.cap-badge { position: absolute; right: 12px; top: 12px; width: 26px; height: 26px; border-radius: 50%; background: var(--gold); color: #000; display: grid; place-items: center; font: italic 900 13px/1 var(--display); font-stretch: 125%; }
.test-banner { margin-top: 20px; padding: 14px 18px; border-radius: var(--r); border: 1px dashed var(--gold); background: rgba(232, 185, 49, .08); font-size: 14px; color: var(--soft); }
.test-banner b { display: inline-block; margin-right: 8px; padding: 3px 8px; border-radius: 4px; background: var(--gold); color: #000; font: italic 900 11px/1.3 var(--display); font-stretch: 125%; text-transform: uppercase; }
.pill-n { margin-left: 6px; opacity: .6; font-style: normal; }
.squad-group + .squad-group { margin-top: 8px; }
@media (min-width: 1100px) { .squad-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
@media (min-width: 761px) and (max-width: 1099px) { .squad-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* match log rows (club results + player games) */
.glog { display: grid; gap: 6px; }
.glog-row { display: grid; grid-template-columns: 130px minmax(0, 1fr) auto; grid-template-areas: "when opp res" "when me me"; align-items: center; gap: 4px 16px; padding: 14px 18px; background: var(--bg-2); border-radius: 8px; }
.glog-row:not(:has(.glog-me)) { grid-template-areas: "when opp res"; }
.glog-when { grid-area: when; font-size: 12px; color: var(--muted); line-height: 1.3; }
.glog-when b { display: block; color: var(--text); font: italic 900 14px/1.3 var(--display); font-stretch: 125%; text-transform: uppercase; }
.glog-opp { grid-area: opp; display: flex; align-items: center; gap: 10px; min-width: 0; font: italic 800 15px/1.1 var(--display); font-stretch: 112%; text-transform: uppercase; }
.glog-opp a:hover { color: var(--gold); }
.opp-badge { width: 30px; height: 30px; flex: 0 0 auto; object-fit: contain; }
.opp-badge.blank { display: grid; place-items: center; border-radius: 50%; background: var(--bg-4); font: italic 900 10px/1 var(--display); color: var(--soft); }
.glog-res { grid-area: res; display: flex; align-items: center; gap: 8px; }
.glog-res b { font: italic 900 20px/1 var(--display); font-stretch: 125%; }
.glog-me { grid-area: me; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; font-size: 13px; color: var(--soft); }
.statmini { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.statmini > span { display: inline-flex; align-items: center; gap: 6px; padding: 9px 14px; border-radius: 8px; background: var(--bg-2); font-size: 13px; color: var(--muted); }
.statmini b { font: italic 900 16px/1 var(--display); font-stretch: 125%; color: var(--text); }
.pp-nav { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 22px; }
@media (max-width: 760px) {
  .glog-row { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "when res" "opp opp" "me me"; padding: 12px 14px; }
  .glog-row:not(:has(.glog-me)) { grid-template-areas: "when res" "opp opp"; }
  .glog-when { display: flex; gap: 8px; align-items: baseline; }
  .pp-nav .btn { flex: 1; min-height: 44px; }
  .pp-in { grid-template-columns: 104px minmax(0, 1fr); grid-template-areas: "card crumbs" "card title" "facts facts" "nav nav"; gap: 6px 16px; align-items: end; padding-top: 24px; padding-bottom: 24px; }
  .pp-body { display: contents; }
  .pp-in > .pcard { grid-area: card; width: 104px; max-width: none; align-self: start; }
  .pp-in > .pcard .pinfo, .pp-in > .pcard .cap-badge { display: none; }
  .pp-in > .pcard .pnum { font-size: 32px; left: 8px; top: 4px; }
  .pp-body .crumbs { grid-area: crumbs; align-self: end; }
  .phero .pp-body h1 { grid-area: title; margin-top: 4px !important; font-size: clamp(20px, 6.6vw, 36px); overflow-wrap: anywhere; min-width: 0; }
  .pp-body h1 small { font-size: 11px; margin-bottom: 6px; }
  .pp-body .facts { grid-area: facts; margin-top: 14px; }
  .pp-body .pp-nav { grid-area: nav; margin-top: 16px; }
}

/* player photos (uploaded in the admin) */
.pcard .pphoto, .vote-opt .pphoto { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 20%; z-index: -2; }
.pcard.has-photo::after { background: linear-gradient(180deg, transparent 45%, rgba(0, 0, 0, .9)); }
/* background-removed photos stand on the club pattern, like the silhouette */
.pcard .pphoto.cut { object-fit: contain; object-position: center bottom; filter: drop-shadow(0 12px 28px rgba(0, 0, 0, .55)); transition: transform .5s var(--ease); }
.pcard:hover .pphoto.cut { transform: scale(1.03); transform-origin: bottom center; }
/* number placement: behind a cutout player (trading-card style), small and tucked away over a full photo */
.pcard.has-photo { container-type: inline-size; }
.pcard.has-photo .pat { z-index: -4; }
.pcard.has-cut .pnum { z-index: -3; left: 6%; top: 4%; font-size: 34cqw; line-height: .82; letter-spacing: -.04em; color: transparent; -webkit-text-stroke: 0; background: linear-gradient(180deg, var(--gold-hi), var(--gold) 55%, rgba(232, 185, 49, .25)); -webkit-background-clip: text; background-clip: text; opacity: .9; }
.pcard.has-photo:not(.has-cut) .pnum { left: 10px; top: 10px; padding: 4px 8px 3px; border-radius: 6px; background: rgba(0, 0, 0, .55); font-size: 20px; color: var(--gold); -webkit-text-stroke: 0; }

/* partner logo wall (admin-managed) */
.pw-tier + .pw-tier { margin-top: 28px; }
.pw-tier h3 { font-size: 15px; color: var(--muted); margin-bottom: 12px; }
.pw-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; }
.pw-grid.big { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.pw-item { display: grid; place-items: center; aspect-ratio: 3 / 2; padding: 18px; border-radius: var(--r); background: var(--bg-2); transition: background .2s; }
.pw-grid.big .pw-item { padding: 28px; box-shadow: inset 0 0 0 1.5px rgba(232, 185, 49, .5); }
a.pw-item:hover { background: var(--bg-3); }
.pw-item img { max-width: 100%; max-height: 100%; object-fit: contain; }
.pw-item b { font: italic 900 18px/1.1 var(--display); font-stretch: 125%; text-transform: uppercase; text-align: center; }
.logos[data-partners]:has(.pw-tier) { display: block; }

/* announcement bar (admin → Settings) */
.announce { background: var(--gold); color: #000; font-size: 14px; font-weight: 700; }
.announce-in { display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; min-height: 40px; padding-top: 8px; padding-bottom: 8px; text-align: center; }
.announce a { color: #000; text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
.announce-dot { width: 8px; height: 8px; border-radius: 50%; background: #000; animation: pulse 1.6s infinite; flex: 0 0 auto; }

/* loading + empty states (pages rendered from the database) */
.loading-state { min-height: 60vh; display: grid; place-items: center; }
.spinner { width: 34px; height: 34px; border-radius: 50%; border: 3px solid var(--bg-3); border-top-color: var(--gold); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.empty-state { padding: clamp(28px, 5vw, 56px); border-radius: var(--r); border: 1px dashed var(--bg-4); text-align: center; }
.empty-state h3 { margin-bottom: 10px; }
.empty-state p { margin: 0 auto; max-width: 46ch; color: var(--muted); }

/* ---------- phone layout ---------- */
.bottombar { display: none; }
@media (max-width: 760px) {
  .util { display: none; }
  .tabbar { display: none; }
  .top-in { height: 56px; }
  .top-in .menu-btn { display: none; }
  .top-in .join-btn { display: inline-flex; }
  .top-tag { display: none; }
  .brand { margin-right: auto; }
  .bottombar { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; padding-bottom: env(safe-area-inset-bottom); background: rgba(14, 14, 14, .97); border-top: 1px solid rgba(232, 185, 49, .45); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
  .bottombar a, .bottombar .menu-btn { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; height: 62px; padding: 0; border: 0; border-radius: 0; background: none; color: var(--muted); font: italic 800 10px/1 var(--display); font-stretch: 112%; text-transform: uppercase; -webkit-tap-highlight-color: transparent; }
  .bottombar svg { width: 22px; height: 22px; }
  .bottombar a[aria-current="page"] { color: var(--text); }
  .bottombar a[aria-current="page"] svg { color: var(--gold); }
  .bottombar a[aria-current="page"]::before { content: ""; position: absolute; top: 0; left: 28%; right: 28%; height: 3px; border-radius: 0 0 3px 3px; background: var(--gold); }
  .bottombar .menu-btn .mb-ico { width: 20px; height: 15px; margin: 3px 0 4px; }
  .bottombar .menu-btn .mb-ico i:nth-child(2) { top: 6px; } .bottombar .menu-btn .mb-ico i:nth-child(3) { top: 12px; }
  .bottombar .menu-btn[aria-expanded="true"] { background: none; color: var(--gold); }
  .bottombar .menu-btn[aria-expanded="true"] .mb-ico i:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .bottombar .menu-btn[aria-expanded="true"] .mb-ico i:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
  body { padding-bottom: calc(62px + env(safe-area-inset-bottom)); }
  .menu { position: fixed; top: 56px; bottom: calc(62px + env(safe-area-inset-bottom)); max-height: none; animation-name: rise-up; }
  @keyframes rise-up { from { opacity: 0; transform: translateY(12px); } }
  .menu-link { min-height: 48px; }
  .toast { bottom: calc(76px + env(safe-area-inset-bottom)); }
  .sec { padding: 44px 0; }
  .sec.tight { padding: 28px 0; }
  .sec-head { margin-bottom: 18px; }
  h2 { font-size: clamp(26px, 8vw, 36px); }
  .phero-in { padding-top: 32px; padding-bottom: 28px; }
  .phero h1 { font-size: clamp(36px, 11vw, 56px); }
  .phero .ghost-word { font-size: 34vw; }
  .soon-hero { padding: 28px 0 36px; }
  .lockup { gap: 14px; margin-bottom: 22px; }
  .soon-logo { width: 120px; }
  .brand .brand-logo { width: 100px; }
  .soon-main h1 { font-size: clamp(40px, 12.5vw, 64px); }
  .count { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .count div { padding: 12px 4px 9px; }
  .count b { font-size: clamp(26px, 8vw, 36px); }
  .soon-cta { flex-direction: column; }
  .soon-cta .btn, .tracker-foot .btn { width: 100%; }
  .slot { padding: 10px 4px; }
  .slot .crest, .slot-logo { width: 34px; height: 34px; }
  .slot span { font-size: 8.5px; }
  .tracker-count b { font-size: 52px; }
  .step { padding: 18px; }
  .step .n { font-size: 34px; }
  .timeline-h div { padding: 16px; }
  .foot { padding-top: 40px; }
  .foot-big { font-size: clamp(34px, 11vw, 52px); margin-bottom: 28px; }
  .thero-in { padding-top: 28px; padding-bottom: 28px; justify-items: start; }
  .thero-in .crest.lg { width: 96px; }
  .facts { gap: 12px 22px; }
  .pcard .pinfo h4 { font-size: 13px; }
  .pcard .pnum { font-size: 40px; }
  .btn { min-height: 48px; }
}

/* ---------- reveal ---------- */
.rv { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.rv.in { opacity: 1; transform: none; }
.no-js .rv { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .rv { opacity: 1; transform: none; }
}

/* ---------- languages (EN at /, VI at /vi/) ---------- */
.lang a:not(.on):hover { color: var(--text, #fff); }
.menu-lang { height: auto; gap: 6px; flex-wrap: wrap; }
.menu-lang a { padding: 10px 14px; border-radius: 6px; border: 1px solid var(--line, rgba(255,255,255,.12)); font-size: 12px; }
/* join form privacy consent */
.field.consent { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; line-height: 1.5; color: var(--muted); cursor: pointer; }
.field.consent input { width: 20px; min-height: 0; height: 20px; flex: none; padding: 0; margin-top: 1px; accent-color: var(--gold); }
.prose p { color: var(--soft); line-height: 1.7; }
.tier p { margin: 0; color: var(--soft); }
.tier .name-it { margin: 6px 0 4px; font: italic 900 clamp(22px, 2.4vw, 30px)/1 var(--display); font-stretch: 125%; text-transform: uppercase; color: var(--muted); }
.tier .name-it span { color: var(--gold); text-transform: none; }

/* nationality flags */
.flag, .pflag { display: inline-block; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 3px; box-shadow: 0 0 0 1px rgba(255, 255, 255, .14); }
.pcard .pflag { position: absolute; right: 10px; top: 10px; width: clamp(20px, 13%, 30px); height: auto; z-index: 3; box-shadow: 0 0 0 1px rgba(255, 255, 255, .2), 0 4px 10px rgba(0, 0, 0, .4); }
.pcard .pflag ~ .cap-badge { top: 40px; } /* captain badge sits under the flag */
b.nat { display: inline-flex; align-items: center; gap: 8px; }
b.nat .flag { width: 22px; height: auto; flex: none; }
