/* ==========================================================================
   Apex Arena - futuristic sports hub
   Dark glass UI, neon accents, no framework, no build step.
   ========================================================================== */
:root {
  --bg: #0b0a09;
  --card: rgba(255, 240, 210, .045);
  --card-2: rgba(255, 240, 210, .08);
  --line: rgba(245, 232, 205, .14);
  --text: #f5eddc;
  --muted: #b3a68d;
  --gold: #cdb27a;
  --gold-hi: #efe3c2;
  --bronze: #9b7a45;
  --ivory: #fbf5e6;
  --cream: #f3eee4;
  --wa: #25d366;
  --grad: linear-gradient(120deg, #fffaf0, var(--gold-hi) 42%, var(--gold));
  --radius: 22px;
  --max: 1200px;
  --h: 200;
  --head: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--body); color: var(--text); background: var(--bg);
  line-height: 1.6; -webkit-font-smoothing: antialiased; font-variant-numeric: lining-nums; overflow-x: hidden; min-height: 100vh;
}
body::before {
  content: ''; position: fixed; inset: 0; z-index: -3;
  background:
    radial-gradient(60% 50% at 85% -10%, rgba(205, 178, 122, .07), transparent 60%),
    radial-gradient(50% 40% at 0% 25%, rgba(155, 122, 69, .06), transparent 60%),
    radial-gradient(45% 40% at 100% 95%, rgba(155, 122, 69, .13), transparent 60%),
    var(--bg);
}
body::after {
  content: ''; position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background-image: linear-gradient(rgba(255, 244, 222, .035) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 244, 222, .035) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse at 50% 15%, #000 15%, transparent 75%);
  mask-image: radial-gradient(ellipse at 50% 15%, #000 15%, transparent 75%);
}
.cursor-glow {
  position: fixed; left: 0; top: 0; width: 520px; height: 520px; margin: -260px 0 0 -260px; z-index: -1; pointer-events: none;
  background: radial-gradient(circle, rgba(239, 227, 194, .09), transparent 62%); opacity: 0; transition: opacity .4s; will-change: transform;
}
a { color: inherit; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
.wrap { width: min(var(--max), 100% - 40px); margin-inline: auto; }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- icons ---------- */
.ico { width: 1.25em; height: 1.25em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.ico.fill { fill: currentColor; stroke: none; }
.ico.sp { stroke-width: 4.2; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 13px 22px; border-radius: 99px;
  font: 600 .95rem var(--body); color: var(--ivory); text-decoration: none; border: 1px solid transparent; cursor: pointer;
  transition: transform .2s, box-shadow .25s, background .25s, border-color .25s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--grad); box-shadow: 0 8px 30px -6px rgba(205, 178, 122, .7); }
.btn-primary:hover { box-shadow: 0 12px 40px -6px rgba(239, 227, 194, .65); }
.btn-ghost { background: var(--card); border-color: var(--line); backdrop-filter: blur(8px); }
.btn-ghost:hover { background: var(--card-2); border-color: rgba(255, 244, 222, .25); }
.btn-wa { background: var(--wa); color: #04230f; box-shadow: 0 8px 28px -8px rgba(37, 211, 102, .8); }
.btn-sm { padding: 9px 16px; font-size: .86rem; }
.btn-icon { padding: 9px 12px; }

/* ---------- header ---------- */
.hdr { position: sticky; top: 0; z-index: 50; backdrop-filter: blur(16px) saturate(1.4); background: rgba(10, 8, 6, .62); border-bottom: 1px solid transparent; transition: border-color .3s, background .3s; }
.hdr.scrolled { border-color: var(--line); background: rgba(10, 8, 6, .82); }
.hdr .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 16px; }
.logo { display: flex; align-items: center; gap: 11px; font: 700 1.15rem var(--head); letter-spacing: .01em; color: var(--ivory); text-decoration: none; }
.logo i { width: 44px; height: 44px; flex: none; display: block; filter: drop-shadow(0 0 12px rgba(205, 178, 122, .35)); }
.logo i img { width: 100%; height: 100%; display: block; }
.hdr nav ul { display: flex; gap: 4px; list-style: none; padding: 0; }
.hdr nav a { display: block; padding: 8px 15px; border-radius: 99px; color: var(--muted); text-decoration: none; font-weight: 500; font-size: .95rem; transition: color .2s, background .2s; }
.hdr nav a:hover, .hdr nav a.on { color: var(--ivory); background: var(--card-2); }
.hdr-cta { display: flex; align-items: center; gap: 10px; }
.menu-btn { display: none; width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--line); background: var(--card); place-items: center; cursor: pointer; }
.menu-btn .ico { width: 22px; height: 22px; }

/* ---------- hero ---------- */
.hero { position: relative; padding: clamp(48px, 8vw, 100px) 0 clamp(56px, 8vw, 96px); overflow: hidden; isolation: isolate; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
.badge { display: inline-flex; gap: 10px; align-items: center; padding: 7px 15px; border: 1px solid var(--line); border-radius: 99px; background: var(--card); font-size: .82rem; color: var(--muted); backdrop-filter: blur(6px); }
.badge b { width: 8px; height: 8px; border-radius: 50%; background: var(--gold-hi); box-shadow: 0 0 12px var(--gold-hi); animation: pulse 2s infinite; }
.hero h1 { font: 700 clamp(2.5rem, 6.4vw, 4.9rem)/1.03 var(--head); letter-spacing: -.015em; margin: 22px 0 20px; }
.lead { font-size: clamp(1rem, 1.5vw, 1.18rem); color: var(--muted); max-width: 56ch; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.floor {
  position: absolute; left: -25%; right: -25%; bottom: -8%; height: 52%; z-index: -1;
  background-image: linear-gradient(rgba(239, 227, 194, .28) 1px, transparent 1px), linear-gradient(90deg, rgba(239, 227, 194, .28) 1px, transparent 1px);
  background-size: 64px 64px; transform: perspective(520px) rotateX(64deg); transform-origin: 50% 100%;
  -webkit-mask-image: linear-gradient(to top, #000, transparent 85%); mask-image: linear-gradient(to top, #000, transparent 85%);
  animation: floor 5s linear infinite;
}
.hud { position: relative; aspect-ratio: 1; max-width: 470px; margin-inline: auto; width: 100%; }
.ring { position: absolute; inset: 0; border-radius: 50%; border: 1px dashed rgba(255, 244, 222, .2); animation: spin 44s linear infinite; }
.ring::before { content: ''; position: absolute; top: -5px; left: 50%; width: 10px; height: 10px; margin-left: -5px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 16px var(--gold); }
.ring.r2 { inset: 11%; border-color: rgba(239, 227, 194, .4); animation-duration: 28s; animation-direction: reverse; }
.ring.r2::before { background: var(--bronze); box-shadow: 0 0 16px var(--bronze); }
.ring.r3 { inset: 22%; border: 1px solid rgba(205, 178, 122, .5); animation-duration: 19s; }
.ring.r3::before { background: var(--gold-hi); box-shadow: 0 0 16px var(--gold-hi); }
.orb {
  position: absolute; inset: 32%; border-radius: 50%; display: grid; place-items: center;
  background: radial-gradient(circle at 30% 25%, rgba(255, 244, 222, .28), rgba(205, 178, 122, .38) 45%, rgba(10, 8, 6, .85));
  border: 1px solid rgba(255, 244, 222, .22); box-shadow: 0 0 90px rgba(205, 178, 122, .6), inset 0 0 40px rgba(239, 227, 194, .28);
}
.orb svg { width: 58%; fill: none; stroke: var(--ivory); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 0 12px rgba(239, 227, 194, .95)); transition: opacity .35s, transform .35s; }
.orb svg.swap { opacity: 0; transform: scale(.7) rotate(-20deg); }
.chip { position: absolute; padding: 10px 15px; border-radius: 14px; background: rgba(22, 17, 10, .75); border: 1px solid var(--line); backdrop-filter: blur(10px); font-size: .8rem; display: flex; gap: 10px; align-items: center; animation: float 6s ease-in-out infinite; box-shadow: 0 14px 40px -12px rgba(0, 0, 0, .6); }
.chip b { font: 700 1.05rem var(--head); display: block; line-height: 1.1; }
.chip span { color: var(--muted); font-size: .72rem; }
.chip .ico { color: var(--gold); width: 22px; height: 22px; }
.chip.c1 { top: 6%; left: -2%; }
.chip.c2 { top: 44%; right: -4%; animation-delay: -2s; }
.chip.c3 { bottom: 6%; left: 6%; animation-delay: -4s; }


/* ---------- sections ---------- */
.section { padding: clamp(56px, 7.5vw, 96px) 0; }
.eyebrow { display: inline-flex; align-items: center; gap: 12px; font: 600 .78rem var(--body); letter-spacing: .22em; text-transform: uppercase; color: var(--gold); }
.eyebrow::before { content: ''; width: 34px; height: 2px; background: var(--grad); border-radius: 2px; }
.h2 { font: 700 clamp(1.9rem, 4vw, 3rem)/1.1 var(--head); letter-spacing: -.01em; margin: 14px 0 14px; }
.sec-head { max-width: 62ch; margin-bottom: clamp(30px, 5vw, 52px); }
.sec-head p { color: var(--muted); }
.sec-head.row { max-width: none; display: flex; justify-content: space-between; align-items: end; gap: 20px; flex-wrap: wrap; }

.card { position: relative; padding: 30px; border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(180deg, var(--card-2), var(--card)); transition: transform .3s, border-color .3s, box-shadow .3s; }
.card:hover { transform: translateY(-5px); border-color: rgba(239, 227, 194, .45); box-shadow: 0 24px 60px -30px rgba(239, 227, 194, .45); }
.card .ib { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: var(--grad); margin-bottom: 20px; box-shadow: 0 10px 30px -8px rgba(205, 178, 122, .7); }
.card .ib .ico { width: 26px; height: 26px; color: var(--ivory); }
.card h3 { font: 600 1.3rem var(--head); margin-bottom: 8px; letter-spacing: -.01em; }
.card p { color: var(--muted); font-size: .96rem; }
.card .lnk { display: inline-flex; gap: 8px; align-items: center; margin-top: 18px; font-weight: 600; font-size: .92rem; color: var(--gold); text-decoration: none; }
.card .lnk .ico { transition: transform .25s; }
.card .lnk:hover .ico { transform: translateX(5px); }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

/* ---------- art tiles (stand-ins until real photos are added) ---------- */
.media { position: absolute; inset: 0; overflow: hidden; }
.media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.art {
  position: relative; width: 100%; height: 100%; overflow: hidden; container-type: size;
  background:
    radial-gradient(120% 90% at var(--ax, 20%) var(--ay, 10%), hsl(calc(var(--h) + 8) 38% 46% / .45), transparent 55%),
    radial-gradient(90% 90% at 92% 100%, hsl(calc(var(--h) - 10) 40% 34% / .55), transparent 60%),
    linear-gradient(var(--a, 160deg), hsl(var(--h) 14% 7%), hsl(calc(var(--h) + 6) 18% 14%));
}
.art::before { content: ''; position: absolute; inset: 0; background-image: linear-gradient(rgba(255, 244, 222, .07) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 244, 222, .07) 1px, transparent 1px); background-size: 34px 34px; -webkit-mask-image: radial-gradient(circle at 50% 45%, #000, transparent 72%); mask-image: radial-gradient(circle at 50% 45%, #000, transparent 72%); }
.art::after { content: ''; position: absolute; width: 70%; aspect-ratio: 1; border-radius: 50%; border: 1px solid rgba(239, 227, 194, .16); left: var(--ax); top: var(--ay); transform: translate(-50%, -30%); pointer-events: none; }
.art svg { position: absolute; width: min(58cqw, 62cqh); max-width: 280px; left: calc(50% + var(--ox, 0%)); top: calc(46% + var(--oy, 0%)); transform: translate(-50%, -50%) rotate(var(--r, -8deg)); fill: none; stroke: hsl(var(--h) 38% 88%); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; opacity: .92; filter: drop-shadow(0 0 18px hsl(var(--h) 50% 70% / .3)); transition: transform .6s cubic-bezier(.2, .7, .2, 1); }

/* ---------- academy cards (hover reveal) ---------- */
.acads { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 20px; }
.acad {
  position: relative; display: block; aspect-ratio: 4 / 5; border-radius: 26px; overflow: hidden; isolation: isolate; text-decoration: none; color: var(--ivory);
  border: 1px solid var(--line); transform-style: preserve-3d; transition: transform .35s cubic-bezier(.2, .7, .2, 1), border-color .3s, box-shadow .4s;
}
.acad .media { z-index: -2; transition: transform .8s cubic-bezier(.2, .7, .2, 1); }
.acad::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(8, 6, 4, .96) 8%, rgba(8, 6, 4, .35) 55%, transparent 80%); transition: background .4s; }
.acad::after { content: ''; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .3s; background: radial-gradient(380px circle at var(--mx, 50%) var(--my, 50%), rgba(239, 227, 194, .14), transparent 45%); }
.acad:hover, .acad:focus-visible { border-color: rgba(239, 227, 194, .5); box-shadow: 0 30px 70px -30px rgba(205, 178, 122, .3); }
.acad:hover .media, .acad:focus-visible .media { transform: scale(1.12); }
.acad:hover .art svg { transform: translate(-50%, -54%) rotate(0deg) scale(1.08); }
.acad:hover::after, .acad:focus-visible::after { opacity: 1; }
.acad:hover::before { background: linear-gradient(to top, rgba(8, 6, 4, .98) 20%, rgba(8, 6, 4, .6) 70%, rgba(8, 6, 4, .25)); }
.acad .glyph { position: absolute; top: 16px; left: 16px; width: 46px; height: 46px; border-radius: 15px; display: grid; place-items: center; background: rgba(10, 8, 6, .55); backdrop-filter: blur(10px); border: 1px solid rgba(239, 227, 194, .35); color: var(--gold-hi); }
.acad .glyph .ico { width: 26px; height: 26px; }
.acad .num { position: absolute; top: 20px; right: 20px; font: 600 .78rem var(--head); letter-spacing: .2em; color: rgba(255, 244, 222, .6); }
.acad .info { position: absolute; left: 0; right: 0; bottom: 0; padding: 22px; }
.acad h3 { font: 700 1.5rem/1.15 var(--head); letter-spacing: -.005em; }
.acad .tl { color: rgba(255, 244, 222, .78); font-size: .95rem; margin-top: 4px; }
.acad .more { display: grid; grid-template-rows: 0fr; opacity: 0; transition: grid-template-rows .45s cubic-bezier(.2, .7, .2, 1), opacity .4s; }
.acad .more > div { overflow: hidden; }
.acad:hover .more, .acad:focus-visible .more { grid-template-rows: 1fr; opacity: 1; }
.acad .pills { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 12px; }
.pill { padding: 5px 12px; border-radius: 99px; font-size: .78rem; background: rgba(255, 244, 222, .1); border: 1px solid rgba(255, 244, 222, .24); color: var(--ivory); }
.acad .go { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: .92rem; color: var(--gold-hi); }
@media (hover: none) { .acad .more { grid-template-rows: 1fr; opacity: 1; } .acad::before { background: linear-gradient(to top, rgba(8, 6, 4, .98) 20%, rgba(8, 6, 4, .55) 70%, rgba(8, 6, 4, .2)); } }

/* ---------- store ---------- */
.prods { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; }
.prod { display: flex; flex-direction: column; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: linear-gradient(180deg, var(--card-2), var(--card)); transition: transform .3s, border-color .3s, box-shadow .3s; }
.prod:hover { transform: translateY(-5px); border-color: rgba(239, 227, 194, .45); box-shadow: 0 24px 60px -30px rgba(205, 178, 122, .28); }
.prod:hover .art svg { transform: translate(-50%, -50%) rotate(0deg) scale(1.1); }
.pimg { position: relative; aspect-ratio: 4 / 3; }
.ptag { position: absolute; top: 12px; left: 12px; padding: 4px 10px; border-radius: 99px; font: 600 .72rem var(--body); letter-spacing: .04em; text-transform: uppercase; background: rgba(10, 8, 6, .65); border: 1px solid var(--line); backdrop-filter: blur(8px); }
.pbody { padding: 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.pbody h3 { font: 600 1.06rem/1.3 var(--head); }
.pnote { color: var(--muted); font-size: .88rem; flex: 1; }
.pbtns { display: flex; gap: 8px; }
.pbtns .btn-wa { flex: 1; }

input, select, textarea {
  width: 100%; font: inherit; color: var(--text); background: rgba(255, 244, 222, .05); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; transition: border-color .2s, background .2s;
}
input::placeholder, textarea::placeholder { color: #85795f; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--gold); background: rgba(239, 227, 194, .06); }
select { appearance: none; padding-right: 36px; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 20px) 55%, calc(100% - 14px) 55%; background-size: 6px 6px; background-repeat: no-repeat; }
select option { background: #17120b; color: var(--ivory); }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: s; }
.step { position: relative; padding: 28px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--card); counter-increment: s; }
.step::before { content: '0' counter(s); font: 700 2.6rem var(--head); background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; display: block; line-height: 1; margin-bottom: 14px; }
.step h3 { font: 600 1.15rem var(--head); }
.step p { color: var(--muted); font-size: .93rem; margin-top: 4px; }

/* ---------- stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(180deg, var(--card-2), var(--card)); overflow: hidden; }
.stat { padding: 34px 20px; text-align: center; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat b { display: block; font: 700 clamp(2rem, 4.4vw, 3.2rem)/1 var(--head); letter-spacing: -.01em; }
.stat > span { color: var(--muted); font-size: .9rem; }
@media (min-width: 800px) and (max-width: 1059px) { .prods.teaser .prod:nth-child(4) { display: none; } }

/* ---------- contact ---------- */
.contact { display: grid; grid-template-columns: 1fr 1.1fr; gap: 28px; align-items: start; }
.ccards { display: grid; gap: 14px; }
.ccard { display: flex; gap: 16px; align-items: center; padding: 20px 22px; border-radius: 20px; border: 1px solid var(--line); background: linear-gradient(180deg, var(--card-2), var(--card)); text-decoration: none; transition: transform .25s, border-color .25s, box-shadow .25s; }
a.ccard:hover { transform: translateX(6px); border-color: rgba(239, 227, 194, .5); }
.ccard .ib { width: 50px; height: 50px; border-radius: 15px; display: grid; place-items: center; background: var(--card-2); border: 1px solid var(--line); flex: none; }
.ccard .ib .ico { width: 24px; height: 24px; }
.ccard.wa .ib { background: var(--wa); color: #04230f; border-color: transparent; box-shadow: 0 8px 26px -8px rgba(37, 211, 102, .9); }
.ccard small { display: block; color: var(--muted); font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; }
.ccard strong { font: 600 1.08rem var(--head); word-break: break-word; }
.form { padding: 30px; border-radius: var(--radius); border: 1px solid var(--line); background: linear-gradient(180deg, var(--card-2), var(--card)); display: grid; gap: 14px; }
.form h3 { font: 600 1.35rem var(--head); }
.form .two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form label { display: grid; gap: 6px; font-size: .82rem; color: var(--muted); font-weight: 500; }
.form textarea { min-height: 110px; resize: vertical; }
.form .btns { display: flex; flex-wrap: wrap; gap: 12px; }
.form .hint { font-size: .8rem; color: var(--muted); }
.socials { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.socials a { padding: 6px 14px; border-radius: 99px; border: 1px solid var(--line); font-size: .85rem; text-decoration: none; color: var(--muted); }
.socials a:hover { color: var(--ivory); border-color: rgba(255, 244, 222, .35); }

/* ---------- footer ---------- */
.ftr { border-top: 1px solid var(--line); padding: 56px 0 28px; background: rgba(0, 0, 0, .25); }
.ftr .cols { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 32px; }
.ftr h4 { font: 600 .8rem var(--body); letter-spacing: .18em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.ftr ul { list-style: none; padding: 0; display: grid; gap: 9px; }
.ftr a { text-decoration: none; color: #d9cdb4; font-size: .94rem; }
.ftr a:hover { color: var(--gold); }
.ftr p { color: var(--muted); font-size: .92rem; max-width: 34ch; margin-top: 14px; }
.ftr .bar { margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; color: var(--muted); font-size: .84rem; }

/* ---------- floating WhatsApp ---------- */
.fab { position: fixed; right: 18px; bottom: 18px; z-index: 60; width: 58px; height: 58px; border-radius: 50%; background: var(--wa); color: #04230f; display: grid; place-items: center; text-decoration: none; box-shadow: 0 10px 34px -6px rgba(37, 211, 102, .85); animation: ping 2.8s infinite; transition: transform .2s; }
.fab:hover { transform: scale(1.1); }
.fab .ico { width: 30px; height: 30px; }

/* ---------- academy page ---------- */
.crumbs { display: flex; gap: 8px; align-items: center; font-size: .86rem; color: var(--muted); margin-bottom: 22px; flex-wrap: wrap; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--gold); }
.ahero { position: relative; isolation: isolate; overflow: hidden; padding: clamp(40px, 7vw, 84px) 0 clamp(44px, 6vw, 72px); border-bottom: 1px solid var(--line); }
.ahero .media { z-index: -2; opacity: .55; }
.ahero::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, var(--bg), rgba(10, 8, 6, .55) 55%, rgba(10, 8, 6, .78)); }
.ahero .glow { position: absolute; z-index: -1; width: 700px; height: 700px; right: -200px; top: -300px; border-radius: 50%; background: radial-gradient(circle, rgba(205, 178, 122, .16), transparent 65%); filter: blur(20px); }
.ahero .ic { width: 68px; height: 68px; border-radius: 22px; display: grid; place-items: center; background: rgba(255, 244, 222, .08); border: 1px solid rgba(239, 227, 194, .4); color: var(--gold-hi); margin-bottom: 20px; box-shadow: 0 0 44px rgba(205, 178, 122, .22); }
.ahero .ic .ico { width: 36px; height: 36px; }
.band { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding: 34px 38px; border-radius: var(--radius); border: 1px solid var(--line); background: linear-gradient(120deg, rgba(239, 227, 194, .14), rgba(205, 178, 122, .2), rgba(155, 122, 69, .13)); }
.band h3 { font: 700 1.5rem var(--head); letter-spacing: -.005em; }
.band p { color: var(--muted); margin-top: 4px; }
.ahero h1 { font: 700 clamp(2.2rem, 5.6vw, 4.2rem)/1.05 var(--head); letter-spacing: -.015em; }
.ahero h1 em { font-style: normal; color: var(--gold); }
.facts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.fact { display: inline-flex; align-items: center; gap: 9px; padding: 9px 15px; border-radius: 99px; background: rgba(10, 8, 6, .55); border: 1px solid var(--line); backdrop-filter: blur(8px); font-size: .88rem; }
.fact .ico { width: 17px; height: 17px; color: var(--gold); }
.split { display: grid; grid-template-columns: 1.15fr .85fr; gap: 28px; align-items: start; }
.prose p { color: #d9cdb4; font-size: 1.04rem; }
.checks { list-style: none; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 18px; margin-top: 22px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; font-size: .95rem; }
.checks .ico { width: 20px; height: 20px; color: var(--gold); margin-top: 3px; }
.progs { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.prog { padding: 26px; border-radius: var(--radius); border: 1px solid var(--line); background: linear-gradient(180deg, var(--card-2), var(--card)); position: relative; overflow: hidden; transition: transform .3s, border-color .3s; }
.prog::before { content: ''; position: absolute; left: 0; top: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--gold-hi), var(--gold)); }
.prog:hover { transform: translateY(-4px); border-color: rgba(239, 227, 194, .4); }
.prog h3 { font: 600 1.2rem var(--head); }
.prog dl { margin-top: 14px; display: grid; gap: 6px; font-size: .92rem; }
.prog dl div { display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px dashed var(--line); padding-bottom: 6px; }
.prog dt { color: var(--muted); }
.prog dd { margin: 0; text-align: right; font-weight: 500; }
.prog .fee { margin-top: 16px; font: 700 1.3rem var(--head); color: var(--gold-hi); }
.coaches { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 16px; }
.coach { display: flex; gap: 14px; align-items: center; padding: 18px; border-radius: 20px; border: 1px solid var(--line); background: var(--card); }
.coach i { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; font: 700 1.1rem var(--head); font-style: normal; background: linear-gradient(135deg, #fffaf0, var(--gold)); color: #1a1206; flex: none; }
.coach strong { display: block; font: 600 1rem var(--head); }
.coach span { color: var(--muted); font-size: .85rem; }
.side { position: sticky; top: 90px; display: grid; gap: 14px; }
.side .ccard { padding: 16px 18px; }

/* ---------- gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 168px; grid-auto-flow: dense; gap: 12px; }
.g-item { position: relative; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; cursor: zoom-in; padding: 0; background: var(--card); isolation: isolate; }
.g-item .media { transition: transform .7s cubic-bezier(.2, .7, .2, 1); }
.g-item:hover .media { transform: scale(1.1); }
.g-item::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(8, 6, 4, .85), transparent 55%); opacity: 0; transition: opacity .3s; }
.g-item:hover::after, .g-item:focus-visible::after { opacity: 1; }
.g-item .cap { position: absolute; left: 14px; right: 14px; bottom: 12px; z-index: 2; font-size: .85rem; font-weight: 500; text-align: left; opacity: 0; transform: translateY(8px); transition: all .3s; }
.g-item:hover .cap, .g-item:focus-visible .cap { opacity: 1; transform: none; }
.g-item:hover { border-color: rgba(239, 227, 194, .45); }
.g-item:nth-child(9n+1) { grid-column: span 2; grid-row: span 2; }
.g-item:nth-child(9n+4) { grid-row: span 2; }
.g-item:nth-child(9n+6), .g-item:nth-child(9n+8), .g-item:nth-child(9n+9) { grid-column: span 2; }
@media (hover: none) { .g-item .cap { opacity: 1; transform: none; } .g-item::after { opacity: 1; } }
.note { margin-top: 16px; font-size: .84rem; color: var(--muted); }
.note code { background: var(--card-2); padding: 2px 7px; border-radius: 6px; font-size: .82rem; }

.rail { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(260px, 340px); gap: 16px; overflow-x: auto; padding: 4px 4px 18px; scroll-snap-type: x proximity; }
.rail .acad { scroll-snap-align: start; aspect-ratio: 4 / 3.4; }
.rail .acad .pills { display: none; }
.rail .acad .more { grid-template-rows: 1fr; opacity: 1; }
.rail .rv { opacity: 1; transform: none; }

/* ---------- lightbox ---------- */
.lb { position: fixed; inset: 0; z-index: 100; display: grid; grid-template-rows: auto 1fr auto; background: rgba(8, 6, 4, .92); backdrop-filter: blur(14px); animation: fade .25s; }
.lb-top, .lb-bot { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; gap: 16px; }
.lb-stage { position: relative; display: grid; place-items: center; padding: 0 64px; min-height: 0; touch-action: pan-y; }
.lb-stage .pic { width: min(100%, 1100px); max-height: 100%; aspect-ratio: 16 / 10; border-radius: 18px; overflow: hidden; border: 1px solid var(--line); position: relative; box-shadow: 0 40px 100px -30px rgba(0, 0, 0, .9); animation: pop .3s; }
.lb-stage .pic img { width: 100%; height: 100%; object-fit: contain; background: #000; }
.lb button { width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line); background: var(--card-2); cursor: pointer; display: grid; place-items: center; transition: background .2s, transform .2s; }
.lb button:hover { background: rgba(255, 244, 222, .18); transform: scale(1.06); }
.lb .prev, .lb .next { position: absolute; top: 50%; margin-top: -23px; }
.lb .prev { left: 10px; } .lb .next { right: 10px; }
.lb-bot { justify-content: center; text-align: center; flex-direction: column; gap: 2px; }
.lb-bot b { font: 600 1.05rem var(--head); }
.lb-bot span { color: var(--muted); font-size: .85rem; }

/* ---------- reveal + keyframes ---------- */
.rv { opacity: 0; transform: translateY(26px); transition: opacity .7s cubic-bezier(.2, .7, .2, 1) var(--d, 0ms), transform .7s cubic-bezier(.2, .7, .2, 1) var(--d, 0ms); }
.rv.in { opacity: 1; transform: none; }
.acad.rv.in { transition: opacity .7s var(--d, 0ms), transform .35s cubic-bezier(.2, .7, .2, 1), border-color .3s, box-shadow .4s; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes float { 50% { transform: translateY(-12px); } }
@keyframes floor { to { background-position: 0 64px; } }
@keyframes pulse { 50% { opacity: .35; } }
@keyframes ping { 0% { box-shadow: 0 10px 34px -6px rgba(37, 211, 102, .85), 0 0 0 0 rgba(37, 211, 102, .5); } 70%, 100% { box-shadow: 0 10px 34px -6px rgba(37, 211, 102, .85), 0 0 0 22px rgba(37, 211, 102, 0); } }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: scale(.94); } }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .hero .wrap, .split, .contact { grid-template-columns: 1fr; }
  .hud { max-width: 360px; }
  .grid3, .steps { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .ftr .cols { grid-template-columns: 1fr 1fr; }
  .side { position: static; }
}
@media (max-width: 1100px) {
  .menu-btn { display: grid; }
  .hdr nav { position: absolute; top: 100%; left: 0; right: 0; background: rgba(10, 8, 6, .97); border-bottom: 1px solid var(--line); padding: 14px 20px 22px; transform: translateY(-14px); opacity: 0; visibility: hidden; transition: all .28s; }
  .hdr nav.open { transform: none; opacity: 1; visibility: visible; }
  .hdr nav ul { flex-direction: column; }
  .hdr nav a { padding: 13px 14px; font-size: 1.05rem; }
  .hdr-cta .btn { display: none; }
}
@media (max-width: 640px) {
  .wrap { width: calc(100% - 32px); }
  .chip.c2 { right: 0; }
  .cta-row .btn { flex: 1 1 100%; }
  .form .two, .checks { grid-template-columns: 1fr; }
  .form { padding: 22px; }
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 138px; gap: 10px; }
  .g-item:nth-child(n) { grid-column: auto; grid-row: auto; }
  .g-item:nth-child(9n+1), .g-item:nth-child(9n+6) { grid-column: span 2; }
  .g-item:nth-child(9n+4) { grid-row: span 2; }
  .acads { grid-template-columns: 1fr 1fr; gap: 12px; }
  .acad { aspect-ratio: 3 / 4; border-radius: 20px; }
  .acad .info { padding: 14px; }
  .acad h3 { font-size: 1.12rem; }
  .acad .tl, .acad .num { display: none; }
  .acad .pills { margin: 10px 0 8px; }
  .acad .pill:nth-child(n+2) { display: none; }
  .acad .go { font-size: .82rem; }
  .acad .glyph { width: 38px; height: 38px; top: 12px; left: 12px; border-radius: 12px; }
  .prods { grid-template-columns: 1fr 1fr; gap: 12px; }
  .pbody { padding: 13px; }
  .pbody h3 { font-size: .95rem; }
  .pnote { display: none; }
  .price b { font-size: 1.2rem; }
  .pbtns .btn-wa { font-size: .78rem; padding: 9px 10px; }
  .ftr .cols { grid-template-columns: 1fr; }
  .lb-stage { padding: 0 12px; }
  .lb .prev, .lb .next { top: auto; bottom: -62px; margin: 0; }
  .field input { min-width: 0; width: 100%; }
  .tools, .field { width: 100%; }
  .stat { padding: 26px 12px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .rv { opacity: 1; transform: none; }
}

/* ---------- sports tiles, academy extras ---------- */
.tags { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; flex: 1; align-content: flex-start; margin: 2px 0 10px; }
.tags li { padding: 3px 10px; border-radius: 99px; font-size: .78rem; color: var(--muted); border: 1px solid var(--line); background: rgba(255, 244, 222, .03); }
.acad .kind { display: block; font: 600 .7rem var(--body); letter-spacing: .16em; text-transform: uppercase; color: var(--gold); margin-bottom: 6px; }
.acad .soon { position: absolute; top: 20px; right: 16px; padding: 5px 12px; border-radius: 99px; font: 600 .7rem var(--body); letter-spacing: .1em; text-transform: uppercase; background: rgba(255, 244, 222, .12); border: 1px solid rgba(239, 227, 194, .45); color: var(--ivory); backdrop-filter: blur(8px); }
.acads.few { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.acads.few .acad { aspect-ratio: 16 / 11; }
.stat b.t { font-size: clamp(1.35rem, 2.7vw, 2.1rem); line-height: 1.15; padding: 4px 0 6px; }
.prog { display: flex; flex-direction: column; }
.prog p { color: var(--muted); font-size: .92rem; margin-top: 6px; }
.prog .lnk { display: inline-flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 14px; align-self: flex-start; font-weight: 600; font-size: .9rem; color: var(--gold-hi); text-decoration: none; }
.prog .lnk .ico { transition: transform .25s; }
.prog .lnk:hover .ico { transform: translateX(5px); }
.gallery.uniform { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); grid-auto-rows: 220px; }
.gallery.uniform .g-item:nth-child(n) { grid-column: auto; grid-row: auto; }
.g-item .media img { object-position: center 35%; }
.ahero .media img { object-position: center 40%; }
@media (max-width: 640px) {
  .tags li:nth-child(n+4) { display: none; }
  .acads.few { grid-template-columns: 1fr; }
  .acads.few .acad { aspect-ratio: 4 / 3.4; }
  .acads.few .acad .tl { display: block; }
  .acad .soon { top: 12px; right: 12px; font-size: .62rem; padding: 4px 9px; }
}
.prod.more { grid-column: 1 / -1; flex-direction: row; align-items: stretch; }
.prod.more .pimg { width: min(300px, 38%); aspect-ratio: auto; flex: none; }
.prod.more .pbody { justify-content: center; padding: 26px 30px; }
.prod.more .pbtns { max-width: 380px; }
@media (max-width: 640px) { .prod.more { flex-direction: column; } .prod.more .pimg { width: 100%; aspect-ratio: 16 / 7; } .prod.more .pbody { padding: 16px; } .prod.more .pnote { display: block; } }

/* ---------- luxury theme: dark text on gold surfaces ---------- */
.btn-primary { color: #1c1407; text-shadow: none; }
.card .ib .ico { color: #1c1407; }
.logo, .hdr nav a:hover, .hdr nav a.on { color: var(--ivory); }
h1, h2, h3, .logo { font-weight: 600; }
.badge b { background: var(--gold); box-shadow: 0 0 12px var(--gold); }
.card:hover, .prod:hover { border-color: rgba(205, 178, 122, .5); }
@media (max-width: 960px) {
  .chip.c1 { top: 3%; left: 0; }
  .chip.c2 { top: 70%; right: 0; }
  .chip.c3 { top: auto; bottom: -3%; left: 8%; }
}

/* ---------- cream sections: posh off-white, dark text ---------- */
.section.light {
  --text: #1f1a11; --muted: #6c614e; --line: rgba(60, 44, 18, .15); --card: #fbf8f1; --card-2: #ffffff;
  --ivory: #1f1a11; --gold: #8a6a2c; --gold-hi: #6e5322; --bronze: #8a6a2c;
  --grad: linear-gradient(120deg, #1f1a11, #5c4519 62%, #8a6a2c);
  background: #f4efe5; color: var(--text);
}
.section.light + .section.light { padding-top: 0; }
.light .card, .light .ccard, .light .form, .light .step, .light .prod { box-shadow: 0 16px 36px -26px rgba(60, 40, 10, .45); }
.light .card:hover, .light .prod:hover { border-color: rgba(138, 106, 44, .5); box-shadow: 0 24px 46px -26px rgba(60, 40, 10, .5); }
.light a.ccard:hover { border-color: rgba(138, 106, 44, .55); }
.light .card .ib { background: #1f1a11; box-shadow: 0 10px 26px -10px rgba(31, 26, 17, .55); }
.light .card .ib .ico { color: #efe3c2; }
.light .btn-primary { background: #1f1a11; color: #f5eddc; box-shadow: 0 10px 26px -10px rgba(31, 26, 17, .55); }
.light .btn-ghost { background: rgba(255, 255, 255, .7); border-color: rgba(60, 44, 18, .22); }
.light .btn-ghost:hover { background: #fff; border-color: rgba(60, 44, 18, .42); }
.light .ccard .ib { background: #1f1a11; color: #efe3c2; border-color: transparent; }
.light .ccard.wa .ib { background: var(--wa); color: #04230f; }
.light input, .light select, .light textarea { background: #fff; border-color: rgba(60, 44, 18, .2); color: #1f1a11; }
.light input::placeholder, .light textarea::placeholder { color: #9a8f7a; }
.light input:focus, .light select:focus, .light textarea:focus { background: #fff; border-color: #8a6a2c; }
.light select option { background: #fff; color: #1f1a11; }
.light .step { background: #fff; }
.light .prose p { color: #463d2e; }
.light .band { --text: #f5eddc; --muted: #b3a68d; --ivory: #fbf5e6; --line: rgba(245, 232, 205, .16); color: #f5eddc; background: #15120d; border-color: transparent; box-shadow: none; }
.light .band .btn-ghost { background: rgba(255, 244, 222, .07); border-color: rgba(255, 244, 222, .26); }
.light .band .btn-ghost:hover { background: rgba(255, 244, 222, .15); }

/* ---------- sports balls that drop and roll as you scroll ---------- */
.play { position: relative; height: 150px; overflow: hidden; pointer-events: none; }
.play .ball { position: absolute; left: 0; bottom: 20px; width: var(--bs, 46px); height: var(--bs, 46px); border-radius: 50%; transform-origin: 50% 100%; will-change: transform; }
.play .ball svg { display: block; width: 100%; height: 100%; will-change: transform; }
.play .ball::before { content: ''; position: absolute; inset: 0; border-radius: 50%; background: radial-gradient(circle at 34% 28%, rgba(255, 255, 255, .42), transparent 38%), radial-gradient(circle at 70% 78%, rgba(0, 0, 0, .38), transparent 60%); }
.play[data-ball="shuttle"] .ball::before { display: none; }
.play .shade { position: absolute; left: 0; bottom: 12px; width: var(--bs, 46px); height: 12px; border-radius: 50%; background: radial-gradient(ellipse at center, rgba(239, 227, 194, .32), transparent 70%); will-change: transform, opacity; }
@media (max-width: 640px) { .play { height: 118px; --bs: 38px; } .play .ball { bottom: 16px; } .play .shade { bottom: 9px; } }

/* ---------- open-space scene: one shuttlecock in flight with a fading dotted trail ---------- */
.arena { position: relative; height: 250px; overflow: hidden; pointer-events: none; }
.arena .glowfloor { position: absolute; left: 6%; right: 6%; bottom: 10px; height: 36px; border-radius: 50%; background: radial-gradient(ellipse at center, rgba(239, 227, 194, .18), transparent 70%); }
.arena .shuttle { position: absolute; left: 0; top: 0; width: 44px; height: 44px; will-change: transform; }
.arena .shuttle svg { display: block; width: 100%; height: 100%; filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .5)); }
.arena .dot { position: absolute; left: 0; top: 0; width: 8px; height: 8px; border-radius: 50%; opacity: 0; background: radial-gradient(circle, #fffaf0 0, rgba(239, 227, 194, .55) 55%, rgba(239, 227, 194, 0) 72%); will-change: transform, opacity; }
@media (max-width: 640px) { .arena { height: 200px; } .arena .shuttle { width: 36px; height: 36px; } }

.hero h1 .grad { white-space: nowrap; }

.ico-links { display: flex; gap: 10px; flex-wrap: wrap; }
.ico-links .btn { padding: 10px 13px; }

/* ---------- live scores and tournaments ---------- */
.tn { padding-top: 6px; }
.tn-h { font: 600 1.35rem var(--head); margin: 30px 0 14px; }
.tn-muted { color: var(--muted); font-size: .92rem; }
.tn-note { padding: 12px 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--card); color: var(--muted); font-size: .9rem; margin: 14px 0; }
.tn-note b { color: var(--ivory); }
.tn-error { color: #ffb4a2; font-size: .9rem; min-height: 1.2em; }
.tn-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.tn-list-item { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 16px; background: linear-gradient(180deg, var(--card-2), var(--card)); text-decoration: none; transition: border-color .25s, transform .25s; }
.tn-list-item:hover { border-color: rgba(239, 227, 194, .45); transform: translateY(-2px); }
.tn-list-item b { display: block; font: 600 1.05rem var(--head); }
.tn-list-item small { color: var(--muted); }
.tn-go { color: var(--gold); font-weight: 600; font-size: .9rem; }
.tn-form { display: grid; gap: 18px; max-width: 860px; padding: 26px; border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(180deg, var(--card-2), var(--card)); }
.tn-form label { display: grid; gap: 6px; font-size: .82rem; color: var(--muted); font-weight: 500; }
.tn-form textarea { min-height: 170px; resize: vertical; }
.tn-grid2 { display: grid; grid-template-columns: 2fr 1fr; gap: 14px; }
.tn-grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.tn-grid4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.tn-check { display: flex !important; grid-template-columns: none; flex-direction: row; align-items: center; gap: 10px; color: var(--text) !important; font-size: .95rem !important; cursor: pointer; }
.tn-check input { width: auto; accent-color: var(--gold); }
.tn-plan { padding: 14px 16px; border-radius: 14px; border: 1px dashed rgba(239, 227, 194, .35); background: rgba(239, 227, 194, .05); font-size: .95rem; }
.tn-plan b { color: var(--gold-hi); }
.tn-byes { display: grid; gap: 8px; }
.tn-byehead { margin-top: 4px; }
.tn-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 6px 14px; max-height: 240px; overflow: auto; padding: 12px; border: 1px solid var(--line); border-radius: 14px; }
.tn-card { padding: 18px; border: 1px solid var(--line); border-radius: 20px; background: linear-gradient(180deg, var(--card-2), var(--card)); }
.tn-token-card { max-width: 760px; }
.tn-token-card h3, .tn-card h3 { font: 600 1.25rem var(--head); margin-bottom: 8px; }
.tn-token { font: 600 clamp(1.1rem, 3.4vw, 1.7rem) 'Courier New', monospace; letter-spacing: .06em; padding: 14px 16px; border-radius: 14px; border: 1px solid rgba(239, 227, 194, .4); background: rgba(0, 0, 0, .35); color: var(--gold-hi); word-break: break-all; user-select: all; }
.tn-token.small { font-size: .9rem; letter-spacing: 0; }
.tn-hr { border: 0; border-top: 1px solid var(--line); margin: 22px 0; }
.tn-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.tn-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 8px; }
.tn-livepill { display: inline-flex; align-items: center; gap: 8px; }
.tn-livepill i { width: 8px; height: 8px; border-radius: 50%; background: #ff5d5d; box-shadow: 0 0 10px #ff5d5d; animation: pulse 1.4s infinite; }
.tn-champ { padding: 18px 22px; border-radius: 18px; border: 1px solid rgba(239, 227, 194, .45); background: linear-gradient(120deg, rgba(239, 227, 194, .16), rgba(239, 227, 194, .04)); font: 500 1.2rem var(--head); margin: 14px 0; }
.tn-champ b { color: var(--gold-hi); font-size: 1.5rem; }
.tn-live { display: grid; grid-template-columns: repeat(auto-fit, minmax(310px, 1fr)); gap: 16px; }
.sb-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 8px; flex-wrap: wrap; }
.sb-head small { color: var(--muted); }
.sb-head .tn-livepill { font-weight: 600; padding: 4px 12px; border-radius: 99px; background: rgba(255, 93, 93, .12); border: 1px solid rgba(255, 93, 93, .4); font-size: .85rem; }
.sb-row { display: grid; grid-template-columns: 1fr auto auto; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px dashed var(--line); }
.sb-row.won .sb-name { color: var(--gold-hi); }
.sb-name { font: 600 1.15rem var(--head); display: flex; align-items: center; gap: 8px; overflow-wrap: anywhere; }
.sb-srv { width: 10px; height: 10px; border-radius: 50%; background: var(--gold-hi); box-shadow: 0 0 10px var(--gold-hi); flex: none; }
.sb-pips { display: flex; gap: 5px; }
.sb-pips i { width: 12px; height: 12px; border-radius: 50%; border: 1.5px solid var(--gold); }
.sb-pips i.on { background: var(--gold-hi); }
.sb-pt { font: 700 2.8rem/1 var(--head); min-width: 2ch; text-align: right; }
.sb-hist { margin: 10px 0; color: var(--muted); font-size: .88rem; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.sb-hist span:not(.sb-sep) { padding: 2px 10px; border-radius: 99px; border: 1px solid var(--line); color: var(--text); }
.sb-sep { width: 1px; height: 14px; background: var(--line); }
.sb-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 8px; }
.sb-plus { padding: 16px 10px; font-size: 1rem; overflow-wrap: anywhere; }
.sb-tools { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.sb-tools .btn[disabled] { opacity: .4; pointer-events: none; }
.tn-rows { display: grid; gap: 10px; }
.tn-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 12px 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--card); }
.tn-row small { display: block; color: var(--muted); }
.tn-w { color: var(--gold-hi); }
.tn-start { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; color: var(--muted); font-size: .88rem; }
.br { display: flex; gap: 22px; overflow-x: auto; padding: 4px 2px 14px; align-items: stretch; }
.br-col { min-width: 220px; display: flex; flex-direction: column; }
.br-col h4 { font: 600 .78rem var(--body); letter-spacing: .16em; text-transform: uppercase; color: var(--gold); margin-bottom: 10px; }
.br-list { flex: 1; display: flex; flex-direction: column; justify-content: space-around; gap: 12px; }
.br-m { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--card); }
.br-m.live { border-color: rgba(255, 93, 93, .6); box-shadow: 0 0 18px -6px rgba(255, 93, 93, .6); }
.br-m.bye { opacity: .6; }
.br-p { display: flex; justify-content: space-between; gap: 10px; padding: 8px 12px; font-size: .92rem; }
.br-p + .br-p { border-top: 1px solid var(--line); }
.br-p.win { background: rgba(239, 227, 194, .14); font-weight: 600; }
.br-p.tbd { color: var(--muted); }
.tn-table-wrap { overflow-x: auto; }
.tn-table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.tn-table th, .tn-table td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--line); }
.tn-table th { color: var(--muted); font-weight: 500; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; }
.tn-foot { margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--line); }
.tn-admin { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.tn-adminpill { padding: 4px 12px; border-radius: 99px; background: var(--grad); color: #1c1407; font-weight: 700; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; }
.tn-tokenrow { display: flex; gap: 10px; align-items: center; margin-top: 12px; flex-wrap: wrap; }
.tn-signin summary { cursor: pointer; color: var(--gold); font-weight: 600; }
.tn-signin form { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; max-width: 560px; }
.tn-signin input { flex: 1; min-width: 220px; }
.tn-toast { position: fixed; left: 50%; bottom: 90px; transform: translate(-50%, 20px); opacity: 0; background: #1d1912; border: 1px solid rgba(239, 227, 194, .4); color: var(--ivory); padding: 10px 18px; border-radius: 99px; z-index: 120; transition: all .3s; pointer-events: none; }
.tn-toast.on { opacity: 1; transform: translate(-50%, 0); }
@media (max-width: 760px) { .tn-grid2, .tn-grid3, .tn-grid4 { grid-template-columns: 1fr 1fr; } .tn-form { padding: 18px; } .sb-pt { font-size: 2.3rem; } }
@media (max-width: 520px) { .tn-grid2, .tn-grid3, .tn-grid4 { grid-template-columns: 1fr; } }
.sb-pt { font-family: var(--body); font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }

.hdr nav a, .logo { white-space: nowrap; }
.tn-grid5 { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; }
.tn-backup { margin-top: 30px; max-width: 760px; }
.tn-danger { color: #ffb4a2; border-color: rgba(255, 180, 162, .35); }
.tn-danger:hover { background: rgba(255, 120, 100, .12); }
.tn-modal { position: fixed; inset: 0; z-index: 130; display: grid; place-items: center; padding: 18px; background: rgba(5, 4, 3, .78); backdrop-filter: blur(6px); animation: fade .2s; }
.tn-modal-box { width: min(480px, 100%); max-height: 92vh; overflow: auto; padding: 24px; border-radius: 22px; border: 1px solid rgba(239, 227, 194, .35); background: linear-gradient(180deg, #1d1912, #141109); box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .8); display: grid; gap: 12px; }
.tn-modal-box h3 { font: 600 1.35rem var(--head); line-height: 1.2; }
.tn-modal-box p { color: var(--text); font-size: .95rem; }
.tn-modal-box .tn-muted { color: var(--muted); margin-top: 4px; }
.tn-modal-btns { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; margin-top: 8px; }
.rs-row { display: grid; grid-template-columns: 64px 1fr 1fr; gap: 10px; align-items: center; }
.rs-row span { color: var(--muted); font-size: .9rem; }
.rs-head b { font: 600 .92rem var(--head); overflow-wrap: anywhere; }
.rs-row input { text-align: center; font-size: 1.15rem; padding: 10px; }
.tn-acts { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
#rs-wow { width: 100%; }
.tn-gh { font: 600 1.05rem var(--head); color: var(--gold); margin: 22px 0 8px; }
.tn-gline { color: var(--text); font-size: .92rem; padding: 6px 0; border-bottom: 1px dashed var(--line); }
.tn-gline b { color: var(--gold-hi); margin-right: 8px; }
.tn-pickrow { display: flex !important; flex-direction: row !important; justify-content: space-between; align-items: center; gap: 10px; color: var(--text) !important; font-size: .95rem !important; }
.tn-pickrow select { width: 84px; padding: 8px 30px 8px 12px; }

/* --- stages: next-stage setup page, stage panels --- */
.tn-sub { font: 600 1.2rem var(--head); margin: 6px 0 -6px; }
.tn-narrow { max-width: 340px; }
.tn-qlist { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 8px 14px; }
.tn-q { justify-content: space-between; gap: 12px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); }
.tn-q:has(input:checked) { border-color: rgba(239, 227, 194, .5); background: rgba(239, 227, 194, .09); }
.tn-q .tn-qn { flex: 1; overflow-wrap: anywhere; }
.tn-q small { color: var(--muted); font-size: .78rem; text-align: right; }
.tn-next { margin: 14px 0; max-width: 760px; }
.tn-next .btn { margin-top: 6px; }
.tn-stage { border: 1px solid var(--line); border-radius: 18px; background: var(--card); padding: 4px 18px 18px; margin-bottom: 14px; }
.tn-stage > summary { cursor: pointer; padding: 14px 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; list-style: none; }
.tn-stage > summary::-webkit-details-marker { display: none; }
.tn-stage > summary b { font: 600 1.15rem var(--head); }
.tn-stage > summary small { color: var(--muted); }
.tn-stage > summary::after { content: '+'; margin-left: auto; color: var(--gold); font-size: 1.3rem; }
.tn-stage[open] > summary::after { content: '-'; }
.tn-through { margin: 0 0 10px; }
.tn-more { margin-top: 12px; }
