/* HinchaDigital landing: logo intro, product hero and chapters. Tokens and component measures from docs/diseno/biblioteca (main). */

@font-face { font-family: "Korolev"; src: url("../fonts/Korolev-Bold.woff") format("woff"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Korolev"; src: url("../fonts/Korolev-Medium.woff") format("woff"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Raleway"; src: url("../fonts/RalewayLF-Variable.woff") format("woff"); font-weight: 100 900; font-display: swap; }

:root {
  --hd-brand: #00B466; --hd-brand-dark: #007F48; --hd-brand-deep: #027A46; --hd-accent: #00FF96;
  --hd-ink-900: #1D2026; --hd-ink-850: #1F2028; --hd-ink-800: #1F2228; --hd-ink-700: #2A2F39; --hd-ink-600: #3E4655; --hd-ink-550: #3E5055;
  --hd-paper-100: #EAEAEA; --hd-paper-200: #DEDEDE;
  --hd-zone-a: #22A6B3; --hd-zone-b: #4834D4;
  --bg: #17191E; --surface: var(--hd-ink-800); --surface-2: var(--hd-ink-700);
  --line: #343945; --ink: var(--hd-paper-100); --muted: #A3A9B4;
  --radius: 2px; --radius-lg: 6px;
  --page: #08090B;
  --gutter: clamp(20px, 5vw, 72px);
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--page); color: var(--ink); font: 400 16px/1.55 "Raleway"; font-feature-settings: "lnum", "tnum"; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }

.btn { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 16px; border-radius: var(--radius-lg); border: 1px solid transparent; font: 600 14px "Raleway"; white-space: nowrap; }
.btn.primary { background: var(--hd-brand); color: #fff; height: 48px; padding: 0 26px; font-size: 16px; }
.btn.primary:hover, .btn.primary:focus-visible { background: var(--hd-brand-deep); }
.btn.primary:focus-visible { outline: 2px solid var(--hd-accent); outline-offset: 3px; }
.btn.secondary { background: var(--surface-2); color: var(--ink); border-color: var(--line); }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.sm { height: 32px; padding: 0 12px; font-size: 13px; }

/* Window of the platform (designed at 1040 x 598) */
.window {
  width: 1040px; border: 1px solid var(--line); border-bottom: 0; border-radius: 12px 12px 0 0; overflow: hidden; background: var(--bg);
  box-shadow: 0 24px 60px rgba(0,0,0,.45);
  transform-origin: 50% 0;
  -webkit-mask-image: linear-gradient(to bottom, #000 72%, transparent);
          mask-image: linear-gradient(to bottom, #000 72%, transparent);
}
.window__bar { height: 38px; display: grid; place-items: center; background: var(--surface); border-bottom: 1px solid var(--line); }
.url { font-size: 12px; color: var(--muted); background: var(--bg); border: 1px solid var(--line); border-radius: 99px; padding: 3px 16px; }

/* C7 shell */
.shell { display: grid; grid-template-columns: 210px 1fr; height: 560px; }
.side { background: var(--surface); border-right: 1px solid var(--line); display: flex; flex-direction: column; }
.side .strip { height: 4px; background: linear-gradient(90deg, var(--hd-brand) 50%, var(--hd-accent) 50%); }
.side .org { display: flex; align-items: center; gap: 10px; padding: 14px 14px 8px; }
.side .org img { width: 28px; }
.side .org b { display: block; font: 700 13px "Raleway"; letter-spacing: .04em; }
.side .org small { display: block; font-size: 11px; color: var(--muted); }
.side nav { display: flex; flex-direction: column; padding: 6px; }
.side nav a { height: 34px; display: flex; align-items: center; padding: 0 10px; border-radius: var(--radius-lg); color: var(--muted); font: 500 13.5px "Raleway"; }
.side nav a.on { background: var(--surface-2); color: var(--ink); }
.side .me { margin-top: auto; padding: 10px 14px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.main { padding: 18px 22px; overflow: hidden; }
.crumbs { font-size: 12px; color: var(--muted); }
.crumbs b { color: var(--ink); font-weight: 600; }
.pagehead { display: flex; align-items: flex-end; justify-content: space-between; margin: 6px 0 14px; }
.pagehead h3 { margin: 0; font: 700 22px/1.1 "Korolev"; letter-spacing: .03em; text-transform: uppercase; }
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); margin-bottom: 14px; }
.tabs a { padding: 9px 13px; font: 500 13px "Raleway"; color: var(--muted); border-bottom: 2px solid transparent; white-space: nowrap; }
.tabs a.on { color: var(--ink); border-color: var(--hd-brand); }
.fecha { display: flex; align-items: center; justify-content: space-between; margin: 2px 0 14px; text-align: center; }
.fecha b { display: block; font: 700 18px/1.1 "Korolev"; letter-spacing: .03em; text-transform: uppercase; }
.fecha small { font-size: 12.5px; color: var(--muted); }
.cards { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.card { background: var(--hd-ink-800); border-radius: var(--radius-lg); padding: 12px; }
.match { display: grid; grid-template-columns: 36px 1fr 36px; gap: 10px; }
.crest { width: 36px; height: 36px; padding: 4px; background: var(--hd-paper-200); border-radius: var(--radius); display: flex; align-items: center; justify-content: center; flex: none; }
.crest svg { width: 100%; height: 100%; }
.crest.sm { width: 22px; height: 22px; padding: 2px; }
.match .bar { display: grid; grid-template-columns: 1fr 36px 1fr; height: 36px; background: var(--hd-ink-700); border-radius: var(--radius); overflow: hidden; }
.match .name { display: flex; align-items: center; justify-content: center; padding: 0 6px; font: 600 12px/1.05 "Raleway"; text-align: center; color: #fff; }
.match .vs { display: grid; place-items: center; background: var(--hd-brand); font: 800 12px "Raleway"; }
.rows { display: grid; grid-template-columns: auto 1fr auto; gap: 6px 12px; margin-top: 10px; font-size: 13px; align-items: center; }
.score { font-weight: 700; }
.muted { color: var(--muted); }
.chip { display: inline-flex; align-items: center; height: 22px; padding: 0 9px; border-radius: 999px; font: 600 11.5px "Raleway"; border: 1px solid transparent; justify-self: start; }
.rows .chip:not(.cat) { justify-self: end; }
.chip.ok { background: rgba(0,180,102,.18); color: #4CD597; border-color: rgba(0,180,102,.35); }
.chip.warn { background: rgba(245,158,11,.18); color: #F5B54B; border-color: rgba(245,158,11,.35); }
.chip.info { background: rgba(30,89,169,.22); color: #8DB4F0; border-color: rgba(30,89,169,.4); }
.chip.cat { background: var(--hd-ink-900); color: #fff; letter-spacing: .06em; border-radius: var(--radius); font-weight: 500; min-width: 30px; justify-content: center; }
.libre { margin: 14px 0 0; font-size: 13px; color: var(--muted); }

/* Phone with the public view (C4.1 table, compact) */
.phone { position: relative; width: 250px; filter: drop-shadow(0 30px 50px rgba(0,0,0,.55)); }
.phone > img { width: 100%; }
.screen { position: absolute; left: 4.62%; top: 2.13%; width: 91.01%; height: 95.74%; border-radius: 13% / 6.1%; overflow: hidden; background: var(--bg); padding-top: 34px; }
.pub__head { display: flex; align-items: center; gap: 8px; padding: 8px 14px 10px; }
.pub__head img { width: 24px; }
.pub__head b { display: block; font: 700 12px "Raleway"; letter-spacing: .04em; }
.pub__head small { display: block; font-size: 10px; color: var(--muted); }
.pub__tabs { display: flex; border-bottom: 1px solid var(--line); padding: 0 8px; margin-bottom: 8px; }
.pub__tabs a { padding: 7px 7px; font: 500 10.5px "Raleway"; color: var(--muted); border-bottom: 2px solid transparent; }
.pub__tabs a.on { color: var(--ink); border-color: var(--hd-brand); }
.standings { width: calc(100% - 16px); margin: 0 8px; border-collapse: collapse; color: #fff; }
.standings th { background: var(--hd-ink-850); font: 600 8.5px/1 "Raleway"; letter-spacing: .04em; text-transform: uppercase; padding: 7px 4px; color: #C9CDD3; text-align: center; }
.standings th.club { text-align: left; padding-left: 8px; }
.standings td { background: var(--hd-ink-550); font: 500 10px "Raleway"; text-align: center; height: 30px; padding: 0 4px; border-bottom: 1px solid var(--hd-ink-800); }
.standings td.pos { font-weight: 700; width: 24px; }
.standings tr.z-a td.pos { background: var(--hd-zone-a); }
.standings tr.z-b td.pos { background: var(--hd-zone-b); }
.standings td.club { text-align: left; font-weight: 600; white-space: nowrap; padding-left: 6px; }
.standings td.club .crest { display: inline-flex; vertical-align: middle; margin-right: 6px; }
.standings td.club span:last-child { vertical-align: middle; }
.standings td.pts { background: var(--hd-brand); font-weight: 700; width: 28px; }

/* ---------- Static page (no JavaScript) ---------- */
.stage { max-width: 1280px; margin: 0 auto; padding: 24px var(--gutter) 40px; display: flex; flex-direction: column; align-items: center; gap: 40px; }
.logo { width: clamp(170px, 16vw, 200px); align-self: flex-start; }
.nav-right { display: none; }
.tag { font: 500 12px "Korolev"; letter-spacing: .18em; text-transform: uppercase; color: var(--hd-accent); border: 1px solid var(--hd-brand-deep); border-radius: var(--radius); padding: 5px 10px 4px; }
.hint, .glow { display: none; }
.intro { text-align: center; }
.intro h1 { margin: 0 auto; font: 700 clamp(40px, 5.6vw, 88px)/1 "Korolev"; letter-spacing: -.01em; text-wrap: balance; }
.intro h1 span { color: var(--hd-brand); }
.intro__sub { margin: 20px auto 28px; max-width: 46ch; color: var(--muted); font-size: clamp(17px, 1.3vw + 10px, 21px); }
.chapters { display: grid; gap: 28px; width: 100%; max-width: 760px; }
.chapter__num { margin: 0 0 6px; font: 500 14px "Korolev"; letter-spacing: .18em; color: var(--hd-brand); }
.chapter h2 { margin: 0; font: 700 clamp(30px, 3.6vw, 48px)/1.05 "Korolev"; }
.chapter__text { margin: 8px 0 0; color: var(--muted); }
.window { text-align: left; }
.bgc { display: none; }
html:not(.js) .fx { display: none; }
.view, .pview, .head { display: none; }
.view[data-v="0"], .pview[data-v="0"], .head[data-v="0 1 2"] { display: block; }

/* ---------- Views inside the window ---------- */
.views { position: relative; height: 430px; }
.seg { display: inline-flex; gap: 2px; padding: 3px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); margin-bottom: 12px; }
.seg span { padding: 5px 12px; font: 500 12.5px "Raleway"; color: var(--muted); border-radius: 4px; }
.seg span.on { background: var(--surface-2); color: var(--ink); }
.standings.wide { width: 100%; margin: 0; }
.standings.wide th { font-size: 10.5px; padding: 9px 6px; }
.standings.wide td { font-size: 12.5px; height: 34px; }
.standings.wide td.pos { width: 40px; font-size: 13px; }
.standings.wide td.pts { width: 46px; font-size: 13px; }
.standings.wide td.club { padding-left: 12px; }
.draw { display: grid; grid-template-columns: 1.1fr 1fr; gap: 22px; }
.draw h4, .tx__pauta h4 { margin: 0 0 10px; font: 600 13px "Raleway"; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.slots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.slot { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 6px 10px; background: var(--hd-ink-800); border: 1px solid var(--line); border-radius: var(--radius-lg); font-size: 11.5px; text-align: center; }
.slot b { position: absolute; left: 8px; top: 6px; font: 700 13px "Korolev"; color: var(--hd-brand); }
.slot .crest { width: 40px; height: 40px; }
.jor { display: grid; grid-template-columns: 16px 22px 1fr 20px 1fr 22px 16px; align-items: center; gap: 6px; padding: 9px 10px; margin-bottom: 6px; background: var(--hd-ink-800); border-radius: var(--radius-lg); font-size: 12px; }
.jor span { color: var(--hd-brand); font: 700 12px "Korolev"; text-align: center; }
.jor b { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.jor b:nth-of-type(2) { text-align: right; }
.jor i { font-style: normal; color: var(--muted); text-align: center; font-size: 11px; }
.draw .btn { margin-top: 10px; }
.tx { display: grid; grid-template-columns: 1.55fr 1fr; gap: 18px; }
.tx__preview { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius-lg); overflow: hidden; background: repeating-linear-gradient(115deg, #1f6b34 0 26px, #1a5f2e 26px 52px); }
.live { position: absolute; left: 14px; top: 12px; font: 700 10px "Korolev"; letter-spacing: .14em; background: var(--hd-accent-soft, #26D585); color: #0d2b1b; padding: 3px 7px; border-radius: 2px; }
.lat { position: absolute; right: 14px; top: 14px; width: 44%; }
.lat__head { display: flex; flex-direction: column; padding: 6px 9px; background: linear-gradient(90deg, var(--hd-brand), var(--hd-accent)); color: #08261a; border-radius: 2px; margin-bottom: 4px; line-height: 1; }
.lat__head small { font: 500 7.5px "Korolev"; letter-spacing: .1em; text-transform: uppercase; }
.lat__head strong { font: 700 17px "Korolev"; margin: 2px 0; }
.lat__head span { font: 500 9px "Korolev"; }
.lat__row { display: flex; align-items: center; gap: 6px; height: 22px; margin-bottom: 3px; padding: 0 7px 0 4px; background: rgba(23,25,30,.92); border-radius: 2px; font: 700 9px "Korolev"; text-transform: uppercase; }
.lat__row span { flex: 1; }
.lat__row b { color: var(--hd-accent); }
.lat__row.top { background: rgba(0,180,102,.95); }
.lat__row.top b { color: #fff; }
.crest.xs { width: 16px; height: 16px; padding: 1px; }
.pauta { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 0 10px; height: 46px; margin-bottom: 6px; background: var(--hd-ink-800); border: 1px solid var(--line); border-radius: var(--radius-lg); font-size: 12.5px; }
.pauta.on { border-color: rgba(0,180,102,.5); }
.pauta em { font-style: normal; }

/* ---------- Views inside the phone ---------- */
.pviews { position: relative; }
.pv__title { padding: 4px 14px 8px; font: 700 12px "Korolev"; letter-spacing: .04em; text-transform: uppercase; }
.pmatch { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 6px 0; }
.pmatch .crest { width: 40px; height: 40px; }
.pmatch b { font: 700 30px "Korolev"; }
.pmatch i { font-style: normal; color: var(--muted); }
.pteams { display: flex; justify-content: space-between; padding: 0 14px 10px; font-size: 9.5px; color: var(--muted); }
.pfield { margin: 0 12px 8px; }
.pfield label { display: block; font-size: 9px; color: var(--muted); margin-bottom: 4px; }
.pin { height: 30px; display: flex; align-items: center; padding: 0 9px; background: var(--hd-ink-800); border: 1px solid var(--hd-brand); border-radius: var(--radius-lg); font-size: 10.5px; }
.pbtn { display: flex; justify-content: center; margin: 0 12px; height: 34px; font-size: 11.5px; }
.pfix { display: grid; grid-template-columns: 22px 1fr 16px 1fr 22px; align-items: center; gap: 5px; margin: 0 10px 6px; padding: 7px 6px; background: var(--hd-ink-800); border-radius: 4px; font-size: 9px; font-weight: 600; }
.pfix span:nth-of-type(2) { text-align: right; }
.pfix i { font-style: normal; color: var(--muted); text-align: center; }
.screen .libre { margin: 6px 12px 0; font-size: 9.5px; }
.pctl { display: flex; align-items: center; justify-content: space-between; margin: 0 12px 6px; height: 40px; padding: 0 10px; background: var(--hd-ink-800); border: 1px solid var(--line); border-radius: var(--radius-lg); font-size: 10.5px; }
.pctl em { font-style: normal; font-size: 9.5px; color: var(--muted); border: 1px solid var(--line); border-radius: 99px; padding: 3px 9px; }
.pctl.on { border-color: rgba(0,180,102,.5); }
.pctl.on em { color: #4CD597; background: rgba(0,180,102,.18); border-color: rgba(0,180,102,.35); }
.screen .pbtn { margin-top: 10px; }


/* ---------- Scroll story (.js): one pinned stage, everything placed by escena.js ---------- */
.js .scene { height: 950svh; position: relative; }
.js .stage { position: sticky; top: 0; height: 100svh; max-width: none; margin: 0; padding: 0; display: block; overflow: hidden; }
.js .stage > * { position: absolute; left: 0; top: 0; }
.js .logo { width: 100px; max-width: none; z-index: 20; transform-origin: 0 0; will-change: transform; }
.js .nav-right { display: flex; align-items: center; gap: 24px; left: auto; right: var(--gutter); top: 24px; z-index: 20; font-size: 14px; color: var(--muted); opacity: 0; }
.js .nav-right a:hover { color: var(--ink); }
.js .hint { display: block; left: 50%; top: auto; bottom: 28px; transform: translateX(-50%); margin: 0; z-index: 20; font: 500 12px "Korolev"; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.js .hint i { display: block; width: 9px; height: 9px; margin: 10px auto 0; border-right: 2px solid var(--hd-brand); border-bottom: 2px solid var(--hd-brand); transform: rotate(45deg); }
.js .intro { left: var(--gutter); right: var(--gutter); z-index: 4; will-change: transform, opacity; }

/* Background worlds: flat panels that wipe across, like a broadcast transition */
.js .bgc { display: block; left: 0; top: 0; width: 100%; height: 100%; transform: translateX(100%); z-index: 1; will-change: transform; }
.bgc--0 { background: #1D2026; }
.bgc--1 { background: #0E3B27; }
.bgc--3 { background: #15171B; }
.bgc--4 { background: #2A2F39; }


/* Chapter text: centered, above or below the platform */
.js .chapters { display: block; z-index: 8; left: var(--gutter); right: var(--gutter); top: 0; bottom: 0; width: auto; max-width: none; pointer-events: none; }
.js .chapter { position: absolute; left: 0; right: 0; max-width: 680px; margin: 0 auto; text-align: center; opacity: 0; will-change: transform, opacity; }
.js .chapter--top, .js .chapter--bottom { top: 0; }
.js .chapter h2 { font-size: clamp(26px, 2.8vw, 40px); }
.js .chapter__text { margin: 12px auto 0; max-width: 56ch; color: #8E949E; font-size: clamp(15px, 1.1vw, 17.5px); line-height: 1.55; }
.js .window { width: 1040px; z-index: 6; transform-origin: 50% 50%; will-change: transform, opacity; }
.js .phone { width: 250px; z-index: 7; will-change: transform, opacity; }
.js .view, .js .pview, .js .head { display: block; position: absolute; left: 0; right: 0; top: 0; opacity: 0; }
.js .head { position: relative; }
.js .head + .head { position: absolute; top: 18px; left: 22px; right: 22px; }
.js .main { position: relative; }
.js .pviews { height: 420px; }

/* ---------- "Before" objects (escena.js places their centers) ---------- */
.js .before { display: block; opacity: 0; pointer-events: none; will-change: transform, opacity; }
.js .bigslots { width: 900px; height: 560px; z-index: 11; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.bslot { position: relative; display: flex; align-items: center; justify-content: center; background: rgba(31,34,40,.9); border: 1px solid var(--line); border-radius: 8px; }
.bslot b { position: absolute; left: 16px; top: 12px; font: 700 30px "Korolev"; color: var(--hd-brand); }
.bslot__in { display: flex; flex-direction: column; align-items: center; gap: 10px; font: 600 17px "Raleway"; opacity: 0; }
.bslot .crest { width: 80px; height: 80px; padding: 8px; }

.js .tv { width: 920px; z-index: 10; transform-origin: 50% 50%; }
.tv__frame { padding: 12px; background: #0b0c0f; border-radius: 12px; box-shadow: 0 30px 80px rgba(0,0,0,.6), inset 0 0 0 1px #2a2d33; }
.tv__screen { position: relative; width: 896px; height: 504px; overflow: hidden; border-radius: 2px; }
.tv__pic { position: absolute; left: 0; top: 0; width: 467px; transform: scale(1.9186); transform-origin: 0 0; border-radius: 0; }
.player { position: absolute; left: 0; right: 0; bottom: 0; height: 54px; display: flex; align-items: center; gap: 16px; padding: 0 20px; background: linear-gradient(transparent, rgba(0,0,0,.75)); }
.player__play { width: 0; height: 0; border-left: 16px solid #fff; border-top: 10px solid transparent; border-bottom: 10px solid transparent; }
.player__line { flex: 1; height: 4px; background: rgba(255,255,255,.3); border-radius: 2px; }
.player__line b { display: block; width: 78%; height: 100%; background: var(--hd-brand); border-radius: 2px; }
.player__time { font: 600 13px "Raleway"; color: #fff; }
.tv__stand { width: 260px; height: 30px; margin: 0 auto; background: linear-gradient(#22252b, #121418); clip-path: polygon(18% 0, 82% 0, 100% 100%, 0 100%); }
.js .slot__in, .js .draw__fix { opacity: 0; }
.slot__in { display: flex; flex-direction: column; align-items: center; gap: 6px; }

/* Phones */
@media (max-width: 760px) {
  .window { display: none; }
  .phone { width: min(270px, 70vw); margin: 0 auto; }
  .js .phone { width: min(250px, 64vw); }
  .js .chapter h2 { font-size: 32px; }
  .js .chapter__text { font-size: 15px; }
  .js .nav-right a, .js .hint { display: none; }
  }

/* ---------- Contact and footer ---------- */
.contact { max-width: 1280px; margin: 0 auto; min-height: 70svh; padding: 80px var(--gutter); display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
.contact h2 { margin: 0; font: 700 clamp(32px, 4.4vw, 58px)/1.05 "Korolev"; max-width: 18ch; }
.contact p { margin: 22px 0 30px; color: var(--muted); max-width: 40ch; }
.foot { max-width: 1280px; margin: 0 auto; padding: 40px var(--gutter) 48px; border-top: 1px solid var(--line); display: flex; flex-direction: column; align-items: center; gap: 16px; }

/* Static page on smaller screens: zoom the window */
@media (max-width: 1140px) { html:not(.js) .window { zoom: .8; } }
@media (max-width: 900px)  { html:not(.js) .window { zoom: .62; } }
.js .window { -webkit-mask-image: none; mask-image: none; border-bottom: 1px solid var(--line); border-radius: 12px; }

/* Feature objects that leave the platform and fill the screen */
.js .bigmatch { width: 387px; z-index: 11; padding: 12px; box-shadow: 0 30px 80px rgba(0,0,0,.45); }
.brows { margin-top: 10px; display: grid; gap: 6px; }
.brow { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; font-size: 13px; will-change: transform, opacity; }
.brow .chip:not(.cat) { justify-self: end; }
.js .bigtable { width: 786px; z-index: 11; }
.bth, .btr { display: grid; grid-template-columns: 40px 1fr repeat(7, 44px) 46px; align-items: center; text-align: center; }
.bth { background: var(--hd-ink-850); font: 600 10.5px "Raleway"; letter-spacing: .04em; text-transform: uppercase; color: #C9CDD3; height: 31px; }
.bth .club, .btr .club { text-align: left; padding-left: 12px; }
.btr { height: 34px; background: var(--hd-ink-550); border-bottom: 1px solid var(--hd-ink-800); font: 500 12.5px "Raleway"; color: #fff; will-change: transform, opacity; }
.btr .pos { height: 100%; display: grid; place-items: center; font-weight: 700; font-size: 13px; }
.btr.z-a .pos { background: var(--hd-zone-a); }
.btr.z-b .pos { background: var(--hd-zone-b); }
.btr .club { display: flex; align-items: center; gap: 8px; font-weight: 600; white-space: nowrap; }
.btr .pts { height: 100%; display: grid; place-items: center; background: var(--hd-brand); font-weight: 700; font-size: 13px; }
.js .dc { width: 120px; height: 120px; z-index: 12; }
.crest.dcrest { width: 120px; height: 120px; padding: 14px; border-radius: 10px; box-shadow: 0 14px 30px rgba(0,0,0,.4); }

/* ---------- v10: darker page, soon pill, overlays, planner, studio, pieces, bento ---------- */

/* overlays on the broadcast (designed inside the 467 px preview) */
.ov-goal { position: absolute; left: 14px; top: 36px; display: flex; align-items: center; gap: 6px; height: 24px; padding: 0 8px 0 3px; background: rgba(23,25,30,.94); border-radius: 2px; font: 700 9.5px "Korolev"; text-transform: uppercase; }
.ov-goal b { background: var(--hd-brand); color: #fff; padding: 2px 6px; border-radius: 2px; letter-spacing: .08em; }
.ov-goal em { font-style: normal; color: var(--hd-accent); }
.ov-l3 { position: absolute; left: 50%; bottom: 14px; width: 74%; transform: translateX(-50%); }
.ov-l3__t { display: inline-block; padding: 3px 9px; background: linear-gradient(90deg, var(--hd-brand), var(--hd-accent)); color: #08261a; font: 700 8px "Korolev"; letter-spacing: .12em; text-transform: uppercase; border-radius: 2px 2px 0 0; }
.ov-l3__m { display: flex; align-items: center; gap: 7px; height: 28px; padding: 0 9px; background: rgba(23,25,30,.95); border-radius: 0 2px 2px 2px; font: 700 10px "Korolev"; text-transform: uppercase; }
.ov-l3__m span { flex: 1; }
.ov-l3__m span:last-of-type { text-align: right; }
.ov-l3__m b { font-size: 13px; color: var(--hd-accent); }

/* planner */
.phases { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; }
.phases i { flex: 1; height: 1px; background: var(--line); }
.ph { padding: 6px 12px; border: 1px solid var(--line); border-radius: 99px; font: 600 12px "Raleway"; color: var(--muted); }
.ph.on { color: #fff; border-color: rgba(0,180,102,.5); background: rgba(0,180,102,.14); }
.views .draw .slot { padding: 8px 6px 6px; }
.views .draw .slot .crest { width: 34px; height: 34px; }
.views .draw .jor { padding: 7px 10px; }

/* studio */
.studio { display: grid; grid-template-columns: 1fr 250px; gap: 22px; }
.studio h4 { margin: 0 0 10px; font: 600 13px "Raleway"; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.thumbs { display: grid; grid-template-columns: repeat(4, 120px); gap: 10px; }
.thumb { width: 120px; height: 150px; border-radius: 6px; overflow: hidden; outline: 1px solid var(--line); }
.thumb.on { outline: 2px solid var(--hd-brand); }
.thumb__in { width: 240px; height: 300px; transform: scale(.5); transform-origin: 0 0; }
.studio__side .seg { margin-bottom: 16px; }
.studio__side .pauta { font-size: 12px; }
.studio__btns { display: flex; gap: 8px; margin-top: 8px; }

/* a social piece (4:5, 240 x 300) */
.pc { position: relative; width: 240px; height: 300px; overflow: hidden; padding: 20px 16px 0; background: #1D2026; color: #fff; font-family: "Raleway"; }
.pc__strip { position: absolute; left: 0; right: 0; top: 0; height: 5px; background: linear-gradient(90deg, var(--hd-brand) 50%, var(--hd-accent) 50%); }
.pc small { display: block; font: 500 8.5px "Korolev"; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.pc strong { display: block; font: 700 36px/1 "Korolev"; margin-top: 6px; }
.pc em { display: block; font: 500 12px "Korolev"; font-style: normal; color: var(--hd-brand); letter-spacing: .1em; text-transform: uppercase; margin: 4px 0 10px; }
.pc__m, .pc__t { display: flex; align-items: center; gap: 5px; height: 24px; margin-bottom: 4px; padding: 0 6px; background: rgba(42,47,57,.9); border-radius: 2px; font: 600 8px "Raleway"; }
.pc__m span { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pc__m span:last-of-type { text-align: right; }
.pc__m b { font: 700 11px "Korolev"; color: var(--hd-accent); }
.pc__t b { width: 12px; font: 700 10px "Korolev"; color: var(--hd-brand); }
.pc__t span { flex: 1; }
.pc__t em { margin: 0; font: 700 11px "Korolev"; color: #fff; }
.pc--gol { text-align: center; }
.pc .crest.pc__crest { width: 64px; height: 64px; padding: 6px; margin: 12px auto 8px; }
.pc--gol strong { font-size: 26px; }
.pc__big { font: 700 70px/1 "Korolev"; color: var(--hd-accent); margin-top: 4px; }
.pc__big span { display: block; font: 500 12px "Korolev"; letter-spacing: .18em; text-transform: uppercase; color: #fff; }
.pc__foot { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--hd-brand); }

/* phone: a post in a feed */
.ppost__h { display: flex; align-items: center; gap: 8px; padding: 4px 12px 8px; font-size: 10.5px; }
.ppost__h img { width: 20px; }
.ppost__img { width: 207px; height: 259px; margin: 0 auto; overflow: hidden; border-radius: 4px; }
.ppost__img .pc { transform: scale(.8625); transform-origin: 0 0; }
.ppost__a { margin: 8px 12px 2px; font: 600 10px "Raleway"; }
.ppost__c { margin: 0 12px; font-size: 9.5px; color: var(--muted); }
.ppost__c b { color: var(--ink); }


.js .fx { opacity: 0; pointer-events: none; will-change: transform, opacity; }

/* ---------- v11: devices, carousel phones, closing bento ---------- */
.js .dev-laptop { width: 860px; z-index: 11; }
.lap__lid { width: 800px; margin: 0 auto; padding: 16px 16px 20px; background: #0b0c0f; border-radius: 16px 16px 4px 4px; box-shadow: inset 0 0 0 1px #2a2d33, 0 30px 80px rgba(0,0,0,.6); }
.lap__screen { position: relative; width: 768px; height: 432px; overflow: hidden; border-radius: 2px; }
.lap__screen .bpic { position: absolute; left: 0; top: 0; width: 467px; transform: scale(1.6445); transform-origin: 0 0; border-radius: 0; }
.lap__base { height: 18px; background: linear-gradient(#34383f, #17191d); border-radius: 0 0 14px 14px; box-shadow: 0 20px 40px rgba(0,0,0,.5); }
.js .dev-mobile { width: 572px; height: 328px; padding: 20px 30px; z-index: 11; background: #0b0c0f; border-radius: 46px; box-shadow: inset 0 0 0 2px #2a2d33, 0 30px 80px rgba(0,0,0,.6); }
.mob__screen { position: relative; width: 512px; height: 288px; overflow: hidden; border-radius: 14px; }
.mob__screen .bpic { position: absolute; left: 0; top: 0; width: 467px; transform: scale(1.0964); transform-origin: 0 0; border-radius: 0; }
.js .cphone { width: 250px; z-index: 11; filter: drop-shadow(0 30px 50px rgba(0,0,0,.55)); }
.cphone > img { width: 100%; }

/* closing bento: a normal section; cards build as they enter the screen */
.bento { max-width: 1240px; margin: 0 auto; padding: clamp(80px, 14vh, 140px) var(--gutter) 80px; text-align: left; }
.bento__logo { width: min(460px, 72vw); margin: 0 0 26px; }
.bento h2 { margin: 0; font: 700 clamp(30px, 3.4vw, 48px)/1.05 "Korolev"; }
.bento__sub { margin: 12px 0 34px; max-width: 54ch; color: var(--muted); }
.bento__grid { display: grid; grid-template-columns: repeat(6, 1fr); grid-auto-rows: 132px; gap: 14px; text-align: left; }
.bcard { position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: 10px; padding: 18px; border-radius: 8px; overflow: hidden; border: 1px solid var(--line); }
.bcard h3 { margin: 0; font: 700 19px/1.15 "Korolev"; }
.bcard p { margin: 4px 0 0; font-size: 13px; line-height: 1.4; opacity: .8; }
.w1 { grid-column: span 1; } .w2 { grid-column: span 2; } .w3 { grid-column: span 3; } .h2 { grid-row: span 2; }
.tone-ink { background: var(--bg); }
.tone-pitch { background: repeating-linear-gradient(115deg, #1f6b34 0 18px, #1a5f2e 18px 36px); border-color: #237a3e; }
.tone-paper { background: #EAEAEA; color: #17191E; border-color: #EAEAEA; }
.tone-paper p { opacity: .7; }
.tone-gold { background: #24200A; border-color: #4a4108; }
.tone-deep { background: #0E3B27; border-color: #155238; }
.tone-ink2 { background: #2A2F39; border-color: #3E4655; }
.tone-brand { background: var(--hd-brand); border-color: var(--hd-brand); color: #0b2a1b; }
.tone-brand .mini-chips span { border-color: rgba(11,42,27,.35); }
.m-laptop { width: min(250px, 80%); }
.m-laptop__s { height: 120px; padding: 12px; background: #0b0c0f; border: 6px solid #22252b; border-radius: 10px 10px 2px 2px; display: grid; gap: 8px; }
.m-laptop__s i { display: block; height: 18px; border-radius: 3px; background: linear-gradient(90deg, #2A2F39 0 30%, transparent 30% 34%, #2A2F39 34% 68%, transparent 68% 72%, var(--hd-brand) 72%); }
.m-laptop__b { height: 10px; margin: 0 -14px; background: linear-gradient(#3a3e46, #1b1d22); border-radius: 0 0 8px 8px; }
.m-phone { position: absolute; right: 18px; top: 16px; width: 92px; transform: rotate(8deg); filter: drop-shadow(0 16px 26px rgba(0,0,0,.35)); }
.c-staff .bcard__t { max-width: 58%; margin-top: auto; }
.mini-badge { display: inline-block; padding: 4px 10px; border-radius: 99px; background: rgba(255,255,255,.12); font: 600 11px "Raleway"; letter-spacing: .08em; text-transform: uppercase; }
.mini-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.mini-chips span { padding: 4px 10px; border-radius: 99px; border: 1px solid rgba(255,255,255,.25); font: 600 11.5px "Raleway"; }
.mini-chips.sm span { padding: 3px 8px; }
.mini-toggle { display: inline-flex; align-items: center; gap: 8px; font: 600 12px "Raleway"; }
.mini-toggle i { width: 30px; height: 18px; border-radius: 99px; background: var(--hd-accent); position: relative; }
.mini-toggle i::after { content: ""; position: absolute; right: 2px; top: 2px; width: 14px; height: 14px; border-radius: 50%; background: #fff; }
.mini-log { display: grid; gap: 5px; }
.mini-log span { font-size: 11.5px; padding: 4px 8px; background: rgba(23,25,30,.08); border-radius: 4px; }
.mini-l3 span { font-size: 12px; }
@media (max-width: 900px) {
  .bento__grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 124px; gap: 10px; }
  .w2, .w3 { grid-column: span 2; } .w1 { grid-column: span 1; }
  .c-stats, .c-over, .c-rrss { grid-row: span 1; }
  .bcard { padding: 14px; } .bcard h3 { font-size: 16px; } .bcard p { font-size: 12px; }
  .mini-num { font-size: 40px; margin-top: 0; } .m-laptop__s { height: 64px; padding: 6px; gap: 4px; } .m-laptop__s i { height: 10px; }
  .m-phone { width: 70px; }
}
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .bento__logo, .bento h2, .bento__sub, .bcard { animation: build linear both; animation-timeline: view(); animation-range: entry 0% cover 28%; }
    .bcard:nth-child(3n+1) { animation-name: build-l; }
    .bcard:nth-child(3n+2) { animation-name: build-up; }
    .bcard:nth-child(3n) { animation-name: build-r; }
    @keyframes build { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: none; } }
    @keyframes build-l { from { opacity: 0; transform: translateX(-60px) scale(.94); } to { opacity: 1; transform: none; } }
    @keyframes build-up { from { opacity: 0; transform: translateY(70px) scale(.94); } to { opacity: 1; transform: none; } }
    @keyframes build-r { from { opacity: 0; transform: translateX(60px) scale(.94); } to { opacity: 1; transform: none; } }
  }
}
.mini-match { display: inline-flex; align-items: center; gap: 10px; padding: 6px 10px; background: var(--hd-ink-700); border-radius: 4px; font: 700 18px "Korolev"; }
.mini-num { font: 700 84px/1 "Korolev"; color: var(--hd-accent); }
.mini-num span { font-size: 22px; color: #fff; opacity: .7; margin-left: 6px; }
.mini-l3 i { display: inline-block; font: 700 10px "Korolev"; font-style: normal; letter-spacing: .14em; background: #26D585; color: #0d2b1b; padding: 3px 7px; border-radius: 2px; }
.mini-l3 span { display: block; margin-top: 8px; padding: 8px 10px; background: linear-gradient(90deg, var(--hd-brand), var(--hd-accent)); color: #08261a; font: 700 12px "Korolev"; text-transform: uppercase; border-radius: 2px; }
.mini-phases { display: flex; flex-wrap: wrap; gap: 6px; }
.mini-phases span { padding: 4px 10px; border: 1px solid rgba(0,180,102,.5); border-radius: 99px; font: 600 11.5px "Raleway"; }
.mini-posts { display: flex; gap: 10px; }
.mini-posts i { width: 60px; height: 75px; border-radius: 6px; background: linear-gradient(180deg, var(--hd-brand) 0 5px, #1f3a2d 5px); box-shadow: 0 10px 24px rgba(0,0,0,.35); }
.mini-posts i:nth-child(2) { transform: translateY(10px) rotate(4deg); background: linear-gradient(180deg, var(--hd-accent) 0 5px, #24305a 5px); }
.mini-posts i:nth-child(3) { transform: rotate(-4deg); }
.mini-url { display: inline-block; padding: 7px 14px; background: var(--page); border: 1px solid var(--line); border-radius: 99px; font-size: 14px; color: var(--muted); }
.mini-url b { color: var(--ink); font-weight: 600; }
.mini-chip { display: inline-block; padding: 4px 10px; border-radius: 99px; font: 600 11px "Raleway"; background: rgba(0,180,102,.18); color: #4CD597; border: 1px solid rgba(0,180,102,.35); }
.mini-gold { display: inline-block; padding: 4px 10px; background: var(--hd-gold, #BEAA07); color: #fff; font: 600 10px "Raleway"; letter-spacing: .12em; text-transform: uppercase; border-radius: 2px; }
@media (max-width: 900px) { .mini-num { font-size: 40px; } .mini-posts i { width: 40px; height: 50px; } }
.mini-crests { display: flex; gap: 8px; }
.mini-crests .crest { width: 32px; height: 32px; padding: 3px; }

.mini-table { display: grid; gap: 4px; }
.mini-table div { display: flex; align-items: center; gap: 8px; height: 30px; padding: 0 10px; background: rgba(16,18,21,.45); border-radius: 2px; font: 600 13px "Raleway"; }
.mini-table b { width: 14px; font: 700 13px "Korolev"; color: var(--hd-brand); }
.mini-table span { flex: 1; }
.mini-table em { font: 700 14px "Korolev"; font-style: normal; }
.mini-posts i { box-shadow: none; }

/* ---------- v12: product lighting instead of decoration ---------- */
.chapter__text strong { color: var(--ink); font-weight: 600; }
/* studio sweep: each world gets lighter toward the floor the product stands on */
.js .stage { background: linear-gradient(180deg, #08090B 0 55%, #0D0F12 100%); }
.bgc--0 { background: linear-gradient(180deg, #06080B 0 55%, #0B0E13 100%); }
.bgc--1 { background: linear-gradient(180deg, #03140D 0 55%, #062117 100%); }
.bgc--3 { background: linear-gradient(180deg, #050607 0 55%, #0A0B0D 100%); }
.bgc--4 { background: linear-gradient(180deg, #07090C 0 55%, #0E1116 100%); }
/* contact shadows under every device */
.phone::after, .cphone::after, .tv::after, .dev-laptop::after, .dev-mobile::after {
  content: ""; position: absolute; left: 10%; right: 10%; bottom: -26px; height: 34px; z-index: -1; pointer-events: none;
  background: radial-gradient(closest-side, rgba(0,0,0,.6), rgba(0,0,0,0)); }
.js .window { box-shadow: 0 50px 70px -30px rgba(0,0,0,.85), 0 0 0 1px rgba(255,255,255,.04); }
.phone, .cphone { filter: none; }
.js .cphone { filter: none; }

.foot__logo { width: 170px; }
.foot__social { display: flex; gap: 24px; font-size: 15px; }
.foot__social a { color: var(--muted); }
.foot__social a:hover, .foot__social a:focus-visible { color: var(--ink); }
/* closing grid: centered heading */
.bento { text-align: center; }
.bento__logo { margin: 0 auto 26px; }
.bento__sub { margin: 12px auto 34px; }
.bento__grid { text-align: left; }

/* ---------- v13: hero ---------- */
.intro h1 span { display: block; }
.intro h1 .h1a { color: var(--ink); }
.intro h1 .h1b { color: var(--hd-brand); }
.intro__sub { margin: 18px auto 22px; }
.soon { display: inline-flex; align-items: center; gap: 12px; margin: 0; flex-wrap: wrap; justify-content: center; }
.soon b { font: 700 15px/1 "Korolev"; letter-spacing: .06em; text-transform: uppercase; background: #26D585; color: #0d2b1b; padding: 9px 12px 8px; border-radius: 2px; }
.soon span { font: 500 15px "Raleway"; color: var(--ink); }
@media (prefers-reduced-motion: no-preference) {
  .js .intro .h1a, .js .intro .h1b, .js .intro__sub, .js .soon { animation: hero-line .9s cubic-bezier(.2,.7,.2,1) both; }
  .js .intro .h1b { animation-delay: .12s; }
  .js .intro__sub { animation-delay: .26s; }
  .js .soon { animation-delay: .38s; }
  .js .window { animation: hero-rise 1.2s cubic-bezier(.2,.7,.2,1) .3s both; }
  .js .phone { animation: hero-rise 1.2s cubic-bezier(.2,.7,.2,1) .45s both; }
  @keyframes hero-line { from { opacity: 0; translate: 0 28px; } to { opacity: 1; translate: 0 0; } }
  @keyframes hero-rise { from { translate: 0 160px; } to { translate: 0 0; } }
}
.js .hint { display: none; }
/* hero background: brand green rising from the bottom, behind the platform (requested by the owner) */
.hero-bg { display: none; }
.js .hero-bg { display: block; left: 0; top: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; will-change: opacity;
  background:
    linear-gradient(180deg, rgba(8,9,11,0) 0, rgba(8,9,11,0) 38%, rgba(0,127,72,.22) 72%, rgba(0,180,102,.38) 100%),
    linear-gradient(180deg, #08090B 0, #0A1410 55%, #0E3B27 100%); }
/* phones: the full-screen table keeps only position, club and points */
@media (max-width: 760px) {
  .js .bigtable { width: 340px; }
  .bth, .btr { grid-template-columns: 34px 1fr 46px; }
  .bth > :nth-child(n+3):nth-child(-n+9), .btr > :nth-child(n+3):nth-child(-n+9) { display: none; }
  .btr { height: 38px; font-size: 14px; }
  .intro__sub { font-size: 16px; }
  .soon span { font-size: 14px; }
}
/* never scroll sideways: clip (unlike hidden) keeps the sticky scene working */
html, body { overflow-x: clip; }
.bento { overflow-x: clip; }
@media (max-width: 900px) {
  .bcard:nth-child(3n+1), .bcard:nth-child(3n) { animation-name: build-up; }
}
@media (max-width: 900px) { .c-plan { grid-column: span 1; } }
@media (max-width: 760px) {
  .intro h1 { font-size: clamp(42px, 12.5vw, 54px); line-height: .98; }
  .intro__sub { margin: 16px auto 20px; }
}
/* calmer hero type */
.intro h1 { font-size: clamp(34px, 4.6vw, 72px); line-height: 1.02; }
.intro__sub { font-size: clamp(15px, 1.1vw + 9px, 19px); }
@media (max-width: 760px) {
  .intro h1 { font-size: clamp(30px, 9vw, 36px); }
  .intro__sub { font-size: 15px; margin: 14px auto 18px; }
  .soon b { font-size: 13px; padding: 8px 10px 7px; }
  .soon span { font-size: 13px; }
}
@media (max-width: 760px) {
  .js .chapter h2 { font-size: 25px; }
  .js .chapter__text { font-size: 14px; line-height: 1.5; margin-top: 8px; }
}

/* goal entry on the phone: player and minute as separate fields, then the goals already saved */
.pform { margin: 0 12px 10px; }
.pform label, .pgoals p { display: block; margin: 0 0 5px; font-size: 9px; color: var(--muted); }
.pform__row { display: grid; grid-template-columns: minmax(0, 1fr) 40px; gap: 6px; }
.pin { height: 30px; display: flex; align-items: center; gap: 6px; padding: 0 8px; background: var(--hd-ink-800); border: 1px solid var(--hd-brand); border-radius: var(--radius-lg); font-size: 10.5px; white-space: nowrap; overflow: hidden; }
.pin--min { justify-content: center; padding: 0; font-variant-numeric: tabular-nums; }
.pgoals { display: grid; gap: 4px; margin: 0 12px 12px; }
.pgoals > span { display: grid; grid-template-columns: 24px 18px minmax(0, 1fr); align-items: center; gap: 6px; height: 26px; padding: 0 8px; background: var(--hd-ink-800); border-radius: 4px; font-size: 10px; }
.pgoals i { font-style: normal; color: var(--muted); font-variant-numeric: tabular-nums; }
.pgoals b { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pgoals .crest.xs, .pin .crest.xs { width: 16px; height: 16px; padding: 1px; }
/* justified paragraphs: last line centered in centered blocks, Spanish hyphenation to avoid gaps */
.intro__sub, .chapter__text, .bento__sub { text-align: justify; text-align-last: center; hyphens: auto; -webkit-hyphens: auto; }
.bcard p { text-align: justify; text-align-last: left; hyphens: auto; -webkit-hyphens: auto; }
