/* Turbo Soccer site. Tokens and shapes come from the game's own UI kit
   (dark plates, hard drop shadow instead of outlines, slanted yellow main button). */
@font-face { font-family: "Heavy"; src: url("fonts/Montserrat-Black.ttf") format("truetype"); font-weight: 900; font-display: swap; }
@font-face { font-family: "Body"; src: url("fonts/BuilderSans-Bold.otf") format("opentype"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Body"; src: url("fonts/BuilderSans-ExtraBold.otf") format("opentype"); font-weight: 800; font-display: swap; }

:root {
  color-scheme: dark;
  --royal: #1640b0; --royal2: #1c56d2; --deep: #0d2c86;
  --plate: #0a2a8a; --plate2: #1440b8; --ink: #020b33;
  --yellow: #fcdc23; --yellow2: #f2b800; --orange: #fc7a02;
  --cyan: #4cc6ff; --mint: #7af5c8; --white: #ffffff; --muted: #c9d6ff;
  --drop: rgba(2, 11, 51, .5);
  --line: rgba(2, 11, 51, .55);
  --band: rgba(9, 32, 112, .8);

  --heavy: "Heavy", "Arial Black", Impact, sans-serif;
  --body: "Body", "Segoe UI", system-ui, sans-serif;

  --wrap: 1200px;
  --gut-l: max(20px, env(safe-area-inset-left, 0px));
  --gut-r: max(20px, env(safe-area-inset-right, 0px));
  --sec: clamp(64px, 9vw, 120px);
  --cut: clamp(18px, 3vw, 44px);
  --nav-h: 64px;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--body); font-weight: 700; font-size: 18px; line-height: 1.5; color: var(--white);
  background: var(--royal); overflow-x: clip; -webkit-tap-highlight-color: rgba(252, 220, 35, .25);
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
ul, ol { list-style: none; }
.wrap { max-width: var(--wrap); margin-inline: auto; padding-left: var(--gut-l); padding-right: var(--gut-r); }

h1, h2, h3, h4 { font-family: var(--heavy); font-weight: 900; font-style: italic; text-transform: uppercase; letter-spacing: -.01em; text-wrap: balance; }
h1 { font-size: clamp(40px, 5.9vw, 88px); line-height: .92; text-shadow: 0 5px 0 rgba(2, 11, 51, .45); }
h1 .ln { display: block; overflow: hidden; padding: .04em .12em .14em 0; margin-bottom: -.14em; }
h1 .ln > span { display: block; }
h2 { font-size: clamp(34px, 4.6vw, 60px); line-height: 1; text-shadow: 0 4px 0 rgba(2, 11, 51, .45); }
h2.huge { font-size: clamp(56px, 9vw, 128px); line-height: .9; }
h3 { font-size: clamp(20px, 2vw, 26px); line-height: 1.1; }
h4 { font-size: 19px; line-height: 1.15; }
p { text-wrap: pretty; }

:focus-visible { outline: 3px solid var(--white); outline-offset: 4px; border-radius: 6px; }
section { padding-block: var(--sec); position: relative; }
section[id] { scroll-margin-top: var(--nav-h); }
/* darker sections are cut on a slant, top and bottom, like the menu bands */
.band { background: var(--band); padding-block: calc(var(--sec) + var(--cut)); clip-path: polygon(0 var(--cut), 100% 0, 100% calc(100% - var(--cut)), 0 100%); }

.skip { position: absolute; left: 12px; top: -80px; z-index: 100; padding: 12px 16px; border-radius: 8px; background: var(--yellow); color: var(--plate); font-family: var(--heavy); font-style: italic; text-transform: uppercase; text-decoration: none; }
.skip:focus { top: 12px; }

/* ---------- moving backdrop ---------- */
.bg { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; background: var(--royal); }
.bg-far, .bg-near { position: absolute; inset: 0; will-change: transform; }
.bg i { position: absolute; display: block; }
.bg .lane { top: -30%; height: 170%; background: var(--royal2); transform: skewX(-24deg); will-change: translate; overflow: hidden; }
.bg .b1 { left: 52%; width: 34%; animation: sway 19s ease-in-out infinite alternate; }
.bg .b2 { left: 88%; width: 6%; opacity: .55; animation: sway 13s ease-in-out infinite alternate-reverse; }
.bg .b3 { left: -10%; width: 16%; background: #123aa4; animation: sway 23s ease-in-out infinite alternate-reverse; }
/* racing hatch running up the edge of the main lane */
.bg .b1::before { content: ""; position: absolute; left: 0; top: -64px; bottom: -64px; width: 22px; background: url("assets/tex/hatch.png") 0 0 / 32px 32px; opacity: .22; animation: climb 2.4s linear infinite; }
@keyframes sway { from { translate: -3.5vw 0; } to { translate: 3.5vw 0; } }
@keyframes climb { to { translate: 0 -32px; } }

.bg .dots { width: min(46vw, 520px); aspect-ratio: 1; overflow: hidden; opacity: .3; -webkit-mask-image: radial-gradient(closest-side, #000 20%, transparent 100%); mask-image: radial-gradient(closest-side, #000 20%, transparent 100%); }
.bg .dots::before { content: ""; position: absolute; inset: -64px; background: url("assets/tex/dots.png") 0 0 / 64px 64px; animation: slide 9s linear infinite; }
.bg .d1 { left: -6%; top: 6%; }
.bg .d2 { right: -8%; bottom: -4%; }
.bg .d2::before { animation-direction: reverse; animation-duration: 12s; }
@keyframes slide { to { translate: 64px -64px; } }

@keyframes spin { to { rotate: 360deg; } }

/* boost streaks that cross the screen along the slant, a few seconds apart */
.bg .streak { left: var(--x); top: 104%; width: 26vh; height: 7px; background: var(--c, var(--white)); opacity: 0; rotate: -66deg; transform-origin: left center; clip-path: polygon(0 50%, 100% 0, 100% 100%); animation: streak var(--t, 11s) linear var(--d, 0s) infinite; will-change: translate; }
.bg .s1 { --x: 8%; --t: 11s; --d: 1s; }
.bg .s2 { --x: 31%; --t: 14s; --d: 5s; --c: var(--cyan); width: 18vh; }
.bg .s3 { --x: 47%; --t: 9s; --d: 3s; --c: var(--yellow); height: 5px; }
.bg .s4 { --x: 66%; --t: 16s; --d: 8s; }
.bg .s5 { --x: -6%; --t: 13s; --d: 10.5s; --c: var(--cyan); width: 34vh; }
@keyframes streak { 0% { translate: 0 0; opacity: 0; } 1% { opacity: .34; } 13% { opacity: .34; } 14%, 100% { translate: 62vh -139vh; opacity: 0; } }

.rays { position: absolute; left: 50%; top: 50%; width: 150%; aspect-ratio: 1; margin: -75% 0 0 -75%; background: url("assets/tex/rays.png") center / contain no-repeat; opacity: .13; pointer-events: none; animation: spin 110s linear infinite; -webkit-mask-image: radial-gradient(closest-side, #000 45%, transparent 100%); mask-image: radial-gradient(closest-side, #000 45%, transparent 100%); }

.still .bg *, .still .bg *::before, .still .rays, .still .btn-play::after { animation-play-state: paused; }

/* ---------- buttons: the slanted bars of the title menu ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; min-height: 56px; padding: 0 28px;
  font-family: var(--heavy); font-style: italic; font-size: 20px; line-height: 1; text-transform: uppercase; text-decoration: none; white-space: nowrap;
  color: var(--white); border: 0; border-radius: 10px; transform: skewX(-10deg); cursor: pointer; touch-action: manipulation;
  background: linear-gradient(180deg, var(--plate2), var(--plate)); box-shadow: 0 6px 0 var(--drop);
  transition: transform .22s var(--ease), box-shadow .22s var(--ease);
}
.btn > span { display: block; transform: skewX(10deg); }
.btn::before { content: ""; position: absolute; inset: 0; border-radius: inherit; background: #fff; opacity: 0; transition: opacity .2s linear; pointer-events: none; }
.btn:hover { transform: skewX(-10deg) translateY(-3px); box-shadow: 0 9px 0 var(--drop); }
.btn:hover::before { opacity: .14; }
.btn:active { transform: skewX(-10deg) translateY(4px); box-shadow: 0 2px 0 var(--drop); transition-duration: .06s; }
.btn-sm { min-height: 44px; padding: 0 22px; font-size: 17px; border-radius: 8px; box-shadow: 0 4px 0 var(--drop); }
.btn-lg { min-height: 72px; padding: 0 44px; font-size: clamp(22px, 2.6vw, 30px); border-radius: 12px; }
.btn-blue { background: linear-gradient(180deg, #2a62e6, #1440b8); }
.btn-cyan { background: linear-gradient(180deg, #8adbff, var(--cyan) 55%, #25a8ea); color: var(--plate); }
.btn-mint { background: linear-gradient(180deg, #b4ffe3, var(--mint) 55%, #46dfa8); color: var(--plate); }
.btn-play { background: linear-gradient(180deg, #ffe85a, var(--yellow) 55%, var(--yellow2)); color: var(--plate); overflow: hidden; }
/* the shine that crosses the game's JOGAR button */
.btn-play::after { content: ""; position: absolute; top: -20%; bottom: -20%; left: 0; width: 34%; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .75), transparent); transform: translateX(-140%); animation: glint 4.8s cubic-bezier(.4, 0, .2, 1) infinite; pointer-events: none; }
@keyframes glint { 0%, 60% { transform: translateX(-140%); } 84%, 100% { transform: translateX(420%); } }
.actions { display: flex; flex-wrap: wrap; gap: 16px 20px; margin-top: 32px; padding-left: 6px; }

/* round icon holder used on the game's menu bars */
.dot { flex: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--plate); border: 3px solid var(--white); }
.dot img { width: 20px; height: 20px; }
.dot.big { width: 52px; height: 52px; border-color: var(--c, var(--white)); box-shadow: 0 4px 0 var(--drop); }
.dot.big img { width: 28px; height: 28px; }

/* ---------- plates ---------- */
.plate { background: var(--plate); border-radius: 14px; box-shadow: 0 6px 0 var(--drop); }
.band .plate { background: #082374; }

/* ---------- nav ---------- */
.nav { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 30; background: var(--plate); box-shadow: 0 4px 0 var(--drop); }
.nav-in { display: flex; align-items: center; gap: 20px; min-height: var(--nav-h); }
.nav-logo { flex: none; display: flex; align-items: center; min-height: 44px; border-radius: 6px; }
.nav-logo img { height: 44px; width: auto; }
.nav nav { display: flex; gap: 4px; margin-left: auto; }
.nav nav a { position: relative; display: flex; align-items: center; min-height: 44px; padding: 0 14px; font-family: var(--heavy); font-style: italic; font-size: 15px; text-transform: uppercase; text-decoration: none; color: var(--muted); border-radius: 8px; transition: color .2s linear; }
.nav nav a::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 6px; height: 4px; border-radius: 2px; background: var(--yellow); transform: skewX(-20deg) scaleX(0); transform-origin: left center; transition: transform .3s var(--ease); }
.nav nav a { white-space: nowrap; }
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 60; max-width: calc(100vw - 32px); padding: 14px 20px; border-radius: 10px; background: var(--yellow); color: #0a2a8a; font-family: var(--body, sans-serif); font-size: 16px; font-weight: 700; box-shadow: 0 6px 0 rgba(0, 0, 0, .35); overflow-wrap: anywhere; transform: translate(-50%, 24px); opacity: 0; visibility: hidden; transition: transform .25s ease, opacity .25s ease, visibility 0s .25s; }
.toast.is-on { transform: translate(-50%, 0); opacity: 1; visibility: visible; transition-delay: 0s; }
@media (prefers-reduced-motion: reduce) { .toast { transition: none; } }
.nav nav a:hover { color: var(--white); }
.nav nav a.is-here { color: var(--yellow); }
.nav nav a.is-here::after { transform: skewX(-20deg) scaleX(1); }
.nav .btn { margin-right: 4px; }

/* ---------- hero ---------- */
.hero { padding-block: clamp(36px, 5vw, 72px) clamp(96px, 11vw, 150px); overflow: clip; }
.hero .actions { gap: 16px 18px; }
.btn { flex: none; }
.hero .btn { padding: 0 24px; }
.hero-in { display: grid; grid-template-columns: minmax(0, 12fr) minmax(0, 10fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.hero-logo { width: clamp(200px, 26vw, 340px); margin: 0 0 20px -8px; }
.lede { margin-top: 22px; font-size: clamp(18px, 1.7vw, 22px); line-height: 1.45; max-width: 27em; color: var(--muted); }
.hero-art { position: relative; }
.hero-back { position: absolute; inset: 0; border-radius: 18px; background: var(--yellow); transform: rotate(3deg) translate(14px, 10px); box-shadow: 0 8px 0 var(--drop); }
.hero-frame { position: relative; border-radius: 18px; overflow: hidden; transform: rotate(-2deg); box-shadow: 0 10px 0 var(--drop); background: var(--plate); aspect-ratio: 900 / 608; }
.hero-frame img { width: 100%; height: 114%; object-fit: cover; will-change: transform; }

/* ---------- numbers: a scoreboard strip ---------- */
.numbers { padding-block: 0 var(--sec); margin-top: clamp(-90px, -6vw, -56px); z-index: 2; }
.board { display: grid; grid-template-columns: repeat(4, 1fr); background: var(--plate); border-radius: 14px; box-shadow: 0 8px 0 var(--drop); overflow: hidden; border-top: 6px solid var(--yellow); transform: skewX(-6deg); margin-inline: 12px; }
.cell { padding: clamp(18px, 2.2vw, 28px) clamp(14px, 1.8vw, 24px); min-width: 0; border-left: 3px solid var(--line); }
.cell > * { transform: skewX(6deg); }
.cell:first-child { border-left: 0; }
.cell dt { font-family: var(--heavy); font-style: italic; font-size: 14px; text-transform: uppercase; color: var(--yellow); }
.cell dd { margin-top: 6px; font-family: var(--heavy); font-style: italic; font-size: clamp(36px, 4.1vw, 56px); line-height: 1; font-variant-numeric: tabular-nums; text-shadow: 0 4px 0 rgba(2, 11, 51, .45); white-space: nowrap; }
.cell p { margin-top: 8px; font-size: 15px; line-height: 1.35; color: var(--muted); }
.source { margin-top: 20px; font-size: 14px; color: var(--muted); max-width: 60em; }

/* ---------- shared text ---------- */
.intro { margin-top: 18px; font-size: clamp(18px, 1.6vw, 21px); color: var(--muted); max-width: 31em; }
.two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 88px); align-items: center; }
.crumb { font-family: var(--heavy); font-style: italic; font-size: 16px; text-transform: uppercase; color: var(--yellow); margin-bottom: 8px; }

/* ---------- match ---------- */
.match { padding-top: 0; }
.match-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(28px, 6vw, 88px); align-items: center; }
.steps { display: grid; gap: 26px; margin-top: 36px; }
.steps li { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 18px; align-items: start; }
.num { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 10px; transform: skewX(-10deg); background: linear-gradient(180deg, #ffe85a, var(--yellow) 55%, var(--yellow2)); color: var(--plate); font-family: var(--heavy); font-style: italic; font-size: 26px; box-shadow: 0 5px 0 var(--drop); }
.steps p { margin-top: 6px; color: var(--muted); }
.modes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(10px, 1.6vw, 20px); align-items: start; }
.modes li:nth-child(2) { margin-top: 32px; }
.modes li:nth-child(3) { margin-top: 64px; }
.mode { border-radius: 12px; overflow: hidden; background: var(--plate); box-shadow: 0 6px 0 var(--drop); transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.mode img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; transition: transform .6s var(--ease); }
.mode .foot { position: relative; padding: 12px 14px 14px; background: var(--plate); }
.mode .foot::before, .panel .foot::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 5px; background: var(--r, var(--yellow)); }
.mode b { display: block; font-family: var(--heavy); font-style: italic; font-size: clamp(22px, 2.6vw, 32px); line-height: 1.1; text-shadow: 0 3px 0 rgba(2, 11, 51, .45); }
.mode span { display: block; font-size: 15px; color: var(--muted); white-space: nowrap; }
@media (hover: hover) {
  .mode:hover { transform: translateY(-8px) rotate(-1.5deg); box-shadow: 0 14px 0 var(--drop); }
  .mode:hover img { transform: scale(1.07); }
}

/* ---------- features: a menu like the game's ---------- */
.menu { margin-top: clamp(32px, 4vw, 48px); display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.menu-tabs { display: grid; gap: 14px; padding: 0 16px 0 8px; }
.bar { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 58px; padding: 0 20px 0 10px; border: 0; border-radius: 8px; cursor: pointer; touch-action: manipulation; text-align: left;
  font-family: var(--heavy); font-style: italic; font-size: clamp(16px, 1.6vw, 20px); text-transform: uppercase; color: var(--white);
  background: linear-gradient(180deg, var(--plate2), var(--plate)); box-shadow: 0 5px 0 var(--drop); transform: skewX(-10deg);
  transition: transform .3s var(--ease), box-shadow .2s var(--ease); }
.bar > span { transform: skewX(10deg); }
.bar > span:last-child { display: block; min-width: 0; }
.bar:hover { transform: skewX(-10deg) translateX(8px); }
.bar:active { transform: skewX(-10deg) translateY(3px); box-shadow: 0 2px 0 var(--drop); transition-duration: .06s; }
.bar[aria-selected="true"] { background: linear-gradient(180deg, #ffe85a, var(--yellow) 55%, var(--yellow2)); color: var(--plate); transform: skewX(-10deg) translateX(14px); }
.menu-panels { border-radius: 14px; overflow: hidden; background: #082374; box-shadow: 0 8px 0 var(--drop); }
.panel .pic { overflow: hidden; aspect-ratio: 16 / 9; background: var(--plate); }
.panel img { width: 100%; height: 100%; object-fit: cover; }
.panel .foot { position: relative; padding: 22px clamp(18px, 2.4vw, 30px) 26px; --r: var(--yellow); }
.panel .foot p { margin-top: 8px; color: var(--muted); max-width: 40em; }
.panel:focus-visible { outline-offset: -6px; }
.panel + .panel { border-top: 3px solid var(--line); }
.js .panel + .panel { border-top: 0; }
.panel.is-in img { animation: panel-img .7s cubic-bezier(.16, 1, .3, 1) both; }
.panel.is-in .foot > * { animation: panel-txt .55s cubic-bezier(.16, 1, .3, 1) both; }
.panel.is-in .foot > p { animation-delay: .07s; }
@keyframes panel-img { from { transform: scale(1.12); opacity: 0; } }
@keyframes panel-txt { from { transform: translateY(14px); opacity: 0; } }

/* ---------- devices ---------- */
.split { margin-top: clamp(32px, 4vw, 48px); display: flex; gap: 6px; height: 56px; transform: skewX(-10deg); margin-inline: 6px; }
.split i { display: block; flex: 0 0 auto; width: calc(var(--w) * 1% - 4px); background: var(--c); border-radius: 8px; box-shadow: 0 6px 0 var(--drop); transform-origin: left center; }
.split-key { margin-top: 36px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.split-key li { display: flex; gap: 14px; align-items: center; min-width: 0; }
.split-key b { flex: none; font-family: var(--heavy); font-style: italic; font-size: clamp(32px, 3.8vw, 50px); line-height: .95; color: var(--c); font-variant-numeric: tabular-nums; text-shadow: 0 4px 0 rgba(2, 11, 51, .45); }
.split-key p { color: var(--muted); font-size: 16px; line-height: 1.3; }

/* ---------- creators ---------- */
.creators .two { align-items: start; }
.pilot { margin-top: 28px; padding: 20px 22px 18px; }
.pilot-row { display: flex; justify-content: space-between; gap: 16px; font-family: var(--heavy); font-style: italic; font-size: 15px; text-transform: uppercase; }
.pilot-row span:last-child { color: var(--mint); text-align: right; }
.pilot-bar { margin-top: 12px; height: 18px; border-radius: 6px; background: var(--ink); transform: skewX(-10deg); overflow: hidden; }
.pilot-bar i { display: block; height: 100%; border-radius: 6px; background: linear-gradient(180deg, #b4ffe3, var(--mint) 55%, #46dfa8); transform-origin: left center; }
.pilot p { margin-top: 12px; font-size: 16px; color: var(--muted); }
.note { margin-top: 22px; font-size: 15px; color: var(--muted); }
.sub { margin-bottom: 18px; color: var(--yellow); }
.perks li { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 18px; align-items: center; padding: 18px 22px; border-top: 3px solid var(--line); --c: var(--mint); }
.perks li:first-child { border-top: 0; }
.perks p { margin-top: 4px; color: var(--muted); font-size: 17px; }

/* ---------- team ---------- */
.facts div { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; padding: 18px 24px; border-top: 3px solid var(--line); }
.facts div:first-child { border-top: 0; }
.facts dt { color: var(--muted); }
.facts dd { font-family: var(--heavy); font-style: italic; text-transform: uppercase; font-size: clamp(18px, 1.8vw, 22px); text-align: right; font-variant-numeric: tabular-nums; }

/* ---------- brands / play ---------- */
.shot { border-radius: 16px; overflow: hidden; box-shadow: 0 10px 0 var(--drop); background: var(--plate); aspect-ratio: 16 / 10; }
.shot img { width: 100%; height: 116%; object-fit: cover; will-change: transform; }
.shot.tilt { transform: rotate(2deg); }
.play { padding-bottom: clamp(80px, 10vw, 140px); overflow: clip; }
.play-art { position: relative; }
.channels { margin-top: 36px; display: grid; gap: 0; max-width: 440px; border-radius: 12px; overflow: hidden; background: var(--plate); box-shadow: 0 6px 0 var(--drop); }
.channels li + li { border-top: 3px solid var(--line); }
.channels a { position: relative; display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 54px; padding: 8px 20px; text-decoration: none; }
.channels a::before { content: ""; position: absolute; inset: 0; background: var(--plate2); transform: scaleX(0); transform-origin: left center; transition: transform .35s var(--ease); }
.channels a:hover::before { transform: scaleX(1); }
.channels a > * { position: relative; }
.channels a:focus-visible { outline-offset: -4px; }
.channels b { font-family: var(--heavy); font-style: italic; text-transform: uppercase; font-weight: 900; }
.channels span { color: var(--muted); overflow-wrap: anywhere; text-align: right; }

/* ---------- footer ---------- */
footer { position: relative; background: var(--ink); color: var(--muted); font-size: 15px; }
.foot-in { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 6px 24px; padding-block: 20px calc(20px + env(safe-area-inset-bottom, 0px)); }
footer a { color: var(--white); text-underline-offset: 4px; display: inline-flex; align-items: center; min-height: 44px; }
.motion { min-height: 44px; padding: 0 4px; border: 0; background: none; color: var(--white); font: inherit; text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }

/* ---------- responsive ---------- */
@media (max-width: 1020px) {
  .nav nav a { padding: 0 10px; }
  .nav nav a::after { left: 10px; right: 10px; }
  .split-key li { flex-wrap: wrap; }
}
@media (max-width: 1000px) {
  .nav nav a:not(.keep) { display: none; }
}
@media (max-width: 860px) {
  /* stacked layout: the spinning rays would spill over the buttons above the picture */
  .rays { display: none; }
  .hero-in, .two, .match-grid, .menu { grid-template-columns: minmax(0, 1fr); }
  .hero { padding-bottom: 120px; }
  .hero-art { margin: 8px 14px 0 4px; }
  .board { grid-template-columns: repeat(2, 1fr); transform: skewX(-3deg); margin-inline: 6px; }
  .cell > * { transform: skewX(3deg); }
  .cell:nth-child(3) { border-left: 0; }
  .cell:nth-child(n+3) { border-top: 3px solid var(--line); }
  .menu-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 14px; padding: 0 8px; }
  .bar { min-height: 52px; padding: 0 12px 0 8px; font-size: 14px; gap: 8px; }
  .bar .dot { width: 32px; height: 32px; }
  .bar .dot img { width: 16px; height: 16px; }
  .bar:hover, .bar[aria-selected="true"] { transform: skewX(-10deg); }
  .shot.tilt { margin-inline: 6px; }
  .bg .b1 { left: 58%; width: 60%; }
}
@media (max-width: 560px) {
  body { font-size: 17px; }
  .nav-in { gap: 10px; }
  .nav-logo img { height: 38px; }
  .nav nav a.keep { padding: 0 8px; font-size: 14px; }
  .btn { font-size: 18px; padding: 0 22px; }
  .btn-sm { font-size: 15px; padding: 0 16px; }
  .hero .actions { flex-wrap: wrap; }
  .actions .btn { flex: 1 1 100%; }
  .actions { padding-inline: 6px; }
  .cell dd { font-size: clamp(28px, 8.6vw, 44px); }
  .modes li:nth-child(2) { margin-top: 14px; }
  .modes li:nth-child(3) { margin-top: 28px; }
  .mode .foot { padding: 10px 10px 12px; }
  .mode span { font-size: 13px; }
  .split { height: 44px; }
  .split-key { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .split-key li { flex-wrap: nowrap; }
  .split-key b { min-width: 2.5em; }
  .pilot-row { font-size: 13px; }
  .bar { font-size: 12px; padding: 0 12px; }
  .bar .dot { display: none; }
  .facts div { padding: 16px 18px; }
  .perks li { padding: 16px 16px; gap: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .bg *, .bg *::before, .rays { animation: none !important; }
  .bg .streak { display: none; }
  .btn-play::after { animation: none; display: none; }
  .panel.is-in img, .panel.is-in .foot > * { animation: none; }
  .btn, .bar, .mode, .mode img, .nav nav a::after, .channels a::before { transition: none; }
}

/* ============ additions: partnerships page parts ============ */
.cards { margin-top: clamp(32px, 4vw, 48px); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 2vw, 24px); }
.card { padding: 24px 22px 26px; --c: var(--yellow); }
.card .dot { margin-bottom: 16px; }
.card p { margin-top: 8px; color: var(--muted); font-size: 17px; }
.card small { display: block; margin-top: 12px; font-size: 14px; color: var(--c); font-family: var(--heavy); font-style: italic; text-transform: uppercase; }
.price { margin-top: clamp(20px, 3vw, 32px); padding: 24px 26px; display: flex; flex-wrap: wrap; gap: 8px 28px; align-items: center; border-top: 6px solid var(--yellow); }
.price h3 { flex: none; color: var(--yellow); }
.price p { flex: 1 1 320px; color: var(--muted); }
.aud-grid { margin-top: clamp(32px, 4vw, 48px); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 2vw, 24px); }
.aud-grid .plate { padding: 22px 22px 14px; }
.aud-grid h3 { color: var(--yellow); margin-bottom: 8px; }
.meter { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 12px; align-items: baseline; padding-block: 12px; border-top: 3px solid var(--line); }
.meter:first-of-type { border-top: 0; }
.meter b { font-family: var(--heavy); font-style: italic; font-size: 26px; line-height: 1; font-variant-numeric: tabular-nums; }
.meter i { grid-column: 1 / -1; display: block; height: 12px; border-radius: 4px; background: var(--ink); transform: skewX(-10deg); overflow: hidden; }
.meter i::before { content: ""; display: block; height: 100%; width: var(--v); border-radius: 4px; background: var(--c, var(--yellow)); }
.aud-note { margin-top: 26px; color: var(--muted); max-width: 52em; }
.aud-note strong { color: var(--white); }
.steps.row { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(16px, 2.4vw, 28px); margin-top: clamp(32px, 4vw, 48px); }
.steps.row li { grid-template-columns: minmax(0, 1fr); gap: 14px; }
.faq { margin-top: clamp(28px, 4vw, 44px); display: grid; gap: 12px; max-width: 860px; }
.faq details { padding: 0 22px; }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 60px; font-family: var(--heavy); font-style: italic; text-transform: uppercase; font-size: clamp(16px, 1.6vw, 19px); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; font-size: 28px; line-height: 1; color: var(--yellow); transition: rotate .25s var(--ease); }
.faq details[open] summary::after { rotate: 45deg; }
.faq details p { padding-bottom: 20px; color: var(--muted); max-width: 44em; }
@media (max-width: 860px) {
  .cards, .aud-grid { grid-template-columns: minmax(0, 1fr); }
  .steps.row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) { .steps.row { grid-template-columns: minmax(0, 1fr); } }

/* ============ language switch (small, in the nav) ============ */
.lang { flex: none; appearance: none; -webkit-appearance: none; min-height: 32px; padding: 0 8px; border: 2px solid rgba(255, 255, 255, .22); border-radius: 8px; background: transparent; color: var(--muted); font-family: var(--heavy); font-style: italic; font-size: 13px; cursor: pointer; }
.lang:hover { color: var(--white); border-color: rgba(255, 255, 255, .5); }
.lang option { background: var(--plate); color: var(--white); font-style: normal; }
.nav nav + .lang { margin-left: 4px; }

/* ============ audience charts ============ */
.chart { padding: 24px 22px 18px !important; text-align: center; }
.chart h3 { text-align: left; }
.donut { position: relative; width: min(78%, 230px); aspect-ratio: 1; margin: 14px auto 20px; display: grid; place-content: center; }
.donut::before { content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: conic-gradient(var(--yellow) 0 calc(var(--a) * 1%), var(--cyan) 0 calc((var(--a) + var(--b)) * 1%), var(--mint) 0 calc((var(--a) + var(--b) + var(--d)) * 1%), rgba(255, 255, 255, .16) 0);
  -webkit-mask: radial-gradient(closest-side, transparent 60%, #000 61%); mask: radial-gradient(closest-side, transparent 60%, #000 61%);
  filter: drop-shadow(0 6px 0 var(--drop)); transition: rotate .8s var(--ease), scale .4s var(--ease); }
.chart:hover .donut::before { rotate: 25deg; scale: 1.04; }
.donut b { position: relative; font-family: var(--heavy); font-style: italic; font-size: clamp(34px, 3.6vw, 46px); line-height: 1; color: var(--yellow); text-shadow: 0 4px 0 rgba(2, 11, 51, .45); }
.donut span { position: relative; margin-top: 4px; font-size: 15px; color: var(--muted); }
.legend { display: grid; gap: 0; text-align: left; }
.legend li { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-top: 3px solid var(--line); }
.legend li::before { content: ""; flex: none; width: 16px; height: 16px; border-radius: 4px; background: var(--k); transform: skewX(-10deg); }
.legend span { flex: 1; min-width: 0; }
.legend b { font-family: var(--heavy); font-style: italic; font-size: 20px; font-variant-numeric: tabular-nums; }
.bigstats { margin-top: clamp(14px, 2vw, 24px); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 2vw, 24px); }
.bigstats .plate { height: 100%; padding: 22px 22px 24px; border-top: 6px solid var(--c); }
.bigstats li > .plate, .bigstats li { height: 100%; }
.bigstats b { display: block; font-family: var(--heavy); font-style: italic; font-size: clamp(40px, 5vw, 68px); line-height: 1; color: var(--c); text-shadow: 0 4px 0 rgba(2, 11, 51, .45); font-variant-numeric: tabular-nums; }
.bigstats p { margin-top: 8px; color: var(--muted); }
.mail { display: inline-block; margin-top: 28px; font-family: var(--heavy); font-style: italic; font-size: clamp(18px, 2.2vw, 28px); color: var(--yellow); text-underline-offset: 6px; overflow-wrap: anywhere; }
@media (max-width: 860px) { .bigstats { grid-template-columns: minmax(0, 1fr); } .donut { width: min(64%, 230px); } }
@media (max-width: 560px) { .lang { padding: 0 5px; font-size: 12px; } }
@media (prefers-reduced-motion: reduce) { .donut::before { transition: none; } }

/* closing title: sized from its own column so long words (CONVERSAR, HABLEMOS) never run under the picture */
.play .two > div:first-child { container-type: inline-size; position: relative; z-index: 1; }
.play h2.huge { font-size: clamp(36px, 12cqi, 128px); }
.play .mail { display: block; margin-top: 22px; }

/* Arabic: the page mirrors; keep handles, the address and the big numbers left to right */
[dir="rtl"] :is(h1, h2, h3, h4, .btn, .bar, .nav nav a, .cell dt, .crumb, .card small, .faq summary, .facts dd, .channels b) { font-style: normal; letter-spacing: 0; }
[dir="rtl"] :is(.mail, .channels span, .cell dd, .legend b, .bigstats b, .donut b, .split-key b) { direction: ltr; unicode-bidi: isolate; }
[dir="rtl"] .chart h3 { text-align: right; }
[dir="rtl"] .legend { text-align: right; }
[dir="rtl"] .hero-logo { margin: 0 -8px 20px 0; }
