/* padelada.club v2 — one stylesheet. Tokens and components: docs/padelada-club/DESIGN-BRIEF-v2.md.
   Dark only. No ornaments, no lilac. Coral = the single main button of a screen. */
:root {
  color-scheme: dark;
  /* Brand tokens = the app theme «Festa», dark (src/theme/colors.ts darkColors + darkBackdrop.ts, site/level-colors.json). */
  --bg: #0A1124;            /* darkBackdrop.base */
  --night: #101B38;         /* brandNight / darkBackdrop.top */
  --bg-deep: #070D1C;
  --sunk: #0B1328;          /* segmentTrack */
  --surface: #141C30;       /* darkBackdrop.surface */
  --surface-2: #1B2542;     /* darkBackdrop.surfaceSunk */
  --surface-3: #232F52;
  --line: #2A3555;          /* line */
  --line-strong: #7C7E86;   /* lineStrong */
  --line-soft: rgba(255, 255, 255, .07);
  --ink: #F5F5F7;           /* ink */
  --ink-2: #C9CDD8;
  --mu: #A8AAB2;            /* inkMuted */
  --cream: #FFF1EA;         /* brandCream */
  --mint: #4BE3BA;          /* brandMint */
  --mint-light: #9CF0D6;    /* successSoftInk */
  --mint-deep: #1F8F77;
  --mint-tint: rgba(75, 227, 186, .10);
  --tint-mint: #1F3A33;     /* tintMint */
  --coral: #FF5E5B;         /* brandCoral: the one main button */
  --button-coral: #EE4845;  /* buttonCoral: flat main button, white label (Murat 17.11) */
  --on-brand: #0A1124;      /* onBrand */
  --mango: #FFA62B;         /* brandMango: highlights, «Abriéndose», records */
  --amber-tint: rgba(255, 166, 43, .10);
  --tint-mango: #3A3228;    /* tintMango */
  --gold: #C8900C;          /* captainGold: captain ring */
  --gold-light: #F7D774;    /* goldLight */
  --danger: #FF8498;        /* danger */
  --lvl-mint: #84EBC2;      /* level colours, bin centres of the three tiers */
  --lvl-lime: #B5F570;
  --lvl-amber: #FF9751;
  --av-1: #FFA62B; --av-2: #4BE3BA; --av-3: #FF6F6C; --av-4: #82C7D9; /* avatar1–4 */
  --wrap: 1200px;
  --wide: 1280px;
  --gut: 24px;
  --pad: 120px;
  --sec: 128px;
  --r-card: 28px;
  --r-in: 18px;
  --hx-h: 88px;
  --ease: cubic-bezier(.25, .1, .25, 1);
  --display: 'Montserrat Alternates', 'Golos Text', system-ui, sans-serif;
  --text: 'Golos Text', system-ui, -apple-system, 'Segoe UI', sans-serif;
  scroll-padding-top: calc(var(--hx-h) + 16px);
}
@media (max-width: 1099px) { :root { --hx-h: 76px; --sec: 96px; } }
@media (max-width: 767px) { :root { --sec: 72px; --gut: 16px; --r-card: 24px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 17px/1.6 var(--text); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden; min-width: 320px;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4, p, ul, ol, figure, dl, dd { margin: 0; padding: 0; }
ul, ol { list-style: none; }
h1, h2 { font-family: var(--display); font-weight: 800; letter-spacing: -.02em; text-wrap: balance; }
h3, h4 { font-weight: 700; text-wrap: balance; }
p { text-wrap: pretty; }
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--mint); outline-offset: 3px; border-radius: 8px; }
[hidden] { display: none !important; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; padding: 10px 16px; border-radius: 12px; background: var(--surface-3); }
.skip:focus { top: 12px; }
.num { font-family: var(--display); font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }

/* ---------- layout ---------- */
.wrap { width: min(var(--wrap), calc(100% - 2 * 48px)); margin-inline: auto; }
.wrap.wide { width: min(var(--wide), calc(100% - 2 * 48px)); }
@media (max-width: 1023px) { .wrap, .wrap.wide { width: calc(100% - 80px); } }
@media (max-width: 767px) { .wrap, .wrap.wide { width: calc(100% - 40px); } }
@media (max-width: 359px) { .wrap, .wrap.wide { width: calc(100% - 32px); } }
.sec { padding-block: var(--sec); }
.sec + .sec { padding-top: 0; }
.sec.band, .sec + .sec.band { padding-block: var(--sec); }
.sec.band { background: var(--bg-deep); border-block: 1px solid var(--line-soft); }
.sec.band + .sec { padding-top: var(--sec); }
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gut); }
main { display: block; min-height: 60vh; }

/* ---------- type ---------- */
.eyebrow { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 20px; font-size: 15px; font-weight: 500; line-height: 1.3; color: var(--mint); }
.eyebrow a:hover { text-decoration: underline; text-underline-offset: 3px; }
.display { font-size: 76px; line-height: 1.02; }
.h1 { font-size: 60px; line-height: 1.04; }
.h2 { font-size: 44px; line-height: 1.08; }
.h3 { font-size: 22px; line-height: 1.25; }
.lead { font-size: 21px; line-height: 1.5; color: var(--ink-2); max-width: 40ch; }
.lead.wide { max-width: 58ch; }
.muted { color: var(--mu); }
.cap { font-size: 14px; line-height: 1.4; color: var(--mu); }
.body { font-size: 17px; line-height: 1.6; color: var(--ink-2); max-width: 62ch; }
.sec-head { display: flex; flex-direction: column; gap: 16px; margin-bottom: 48px; max-width: 760px; }
.sec-head.row { flex-direction: row; align-items: flex-end; justify-content: space-between; max-width: none; gap: 24px; }
.sec-head.row > div:first-child { display: flex; flex-direction: column; gap: 16px; max-width: 720px; }
@media (max-width: 1099px) { .display { font-size: 60px; } .h1 { font-size: 48px; } .h2 { font-size: 38px; } }
@media (max-width: 767px) {
  body { font-size: 16px; line-height: 1.55; }
  .display { font-size: clamp(30px, 9.4vw, 42px); line-height: 1.06; }
  .h1 { font-size: 36px; line-height: 1.08; }
  .h2 { font-size: 30px; line-height: 1.12; }
  .h3 { font-size: 19px; line-height: 1.3; }
  .lead { font-size: 18px; }
  .body { font-size: 16px; }
  .sec-head { margin-bottom: 32px; gap: 12px; }
  .sec-head.row { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 359px) { .display { font-size: 36px; } .h1 { font-size: 32px; } .h2 { font-size: 27px; } }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 56px; padding: 0 28px; border-radius: 999px; border: 0;
  font: 500 17px/1.2 var(--text); letter-spacing: -.005em; text-align: center; white-space: nowrap; cursor: pointer;
  transition: background-color .2s var(--ease), box-shadow .2s var(--ease), transform .15s var(--ease), color .2s var(--ease);
}
.btn:active { transform: scale(.98); }
.btn .ico { width: 20px; height: 20px; flex: none; }
.btn-main { background: var(--button-coral); color: #fff; box-shadow: none; } /* flat, Murat 17.11 (docs/design/home-2026-11-16) */
.btn-main:hover { background: #E3403D; }
.btn-main:active { background: #D63A37; }
.btn-line { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .22); }
.btn-line:hover { background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .34); }
.btn-soft { background: var(--surface-2); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.btn-soft:hover { background: var(--surface-3); }
.btn-sm { min-height: 44px; padding: 0 20px; font-size: 15px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: var(--mint); font-weight: 500; }
.link .ico { width: 18px; height: 18px; transition: transform .2s var(--ease); }
.link:hover .ico { transform: translateX(3px); }
.link-inline { color: var(--mint); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
@media (max-width: 767px) {
  .btn-row { flex-direction: column; align-items: stretch; }
  .btn-row .btn { width: 100%; }
  .btn { white-space: normal; text-wrap: balance; padding-block: 12px; }
}

/* store buttons */
.stores { display: flex; flex-wrap: wrap; gap: 12px; }
.store {
  display: inline-flex; align-items: center; gap: 12px; min-height: 60px; padding: 0 24px 0 20px; border-radius: 18px;
  background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); transition: background-color .2s var(--ease);
}
.store:hover { background: var(--surface-3); }
.store .ico { width: 26px; height: 26px; }
.store span { display: flex; flex-direction: column; line-height: 1.15; }
.store small { font-size: 13px; color: var(--mu); }
.store b { font-size: 19px; font-weight: 500; letter-spacing: -.01em; }
@media (max-width: 767px) { .stores { flex-direction: column; } .store { justify-content: center; } }

/* ---------- header (capsule, as padelada.com) ---------- */
.hx { position: sticky; top: 0; z-index: 60; height: var(--hx-h); }
.hx-bar { padding-top: 14px; }
.hx-in {
  position: relative; width: min(1200px, calc(100% - 48px)); height: 60px; margin: 0 auto; padding: 0 10px 0 22px;
  display: flex; align-items: center; gap: 20px;
  border-radius: 30px; background: rgba(20, 28, 48, .66); border: 1px solid rgba(255, 255, 255, .10);
  -webkit-backdrop-filter: saturate(180%) blur(24px); backdrop-filter: saturate(180%) blur(24px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06), 0 12px 32px rgba(0, 0, 0, .35);
}
.hx-logo { display: flex; align-items: center; gap: 10px; flex: none; min-height: 44px; }
.hx-logo img { height: 26px; width: auto; }
.hx-logo .club { align-self: center; font-size: 15px; font-weight: 500; color: var(--mu); padding-left: 10px; border-left: 1px solid var(--line); line-height: 18px; }
.hx-nav { display: flex; align-items: center; justify-content: center; gap: 2px; flex: 1 1 auto; min-width: 0; }
.hx-nav a, .hx-acct > a {
  display: inline-flex; align-items: center; height: 40px; padding: 0 14px; border-radius: 999px;
  font-size: 14px; font-weight: 500; white-space: nowrap; color: rgba(245, 245, 247, .74);
  transition: color .2s var(--ease), background-color .2s var(--ease);
}
.hx-nav a:hover, .hx-acct > a:hover { color: var(--ink); background: rgba(255, 255, 255, .05); }
.hx-nav a[aria-current], .hx-acct > a[aria-current] { color: var(--ink); background: var(--tint-mint); box-shadow: inset 0 0 0 1px rgba(75, 227, 186, .45); }
.hx-right { display: flex; align-items: center; gap: 6px; flex: none; }
.hx-lang { position: relative; }
.hx-lang summary {
  list-style: none; display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 12px; border-radius: 999px; cursor: pointer;
  font-size: 13px; font-weight: 500; letter-spacing: .03em; color: rgba(245, 245, 247, .74);
}
.hx-lang summary::-webkit-details-marker { display: none; }
.hx-lang summary:hover, .hx-lang[open] summary { color: var(--ink); background: rgba(255, 255, 255, .06); }
.hx-lang summary .ico { width: 12px; height: 12px; transition: transform .2s var(--ease); }
.hx-lang[open] summary .ico { transform: rotate(180deg); }
.hx-pop {
  position: absolute; top: calc(100% + 14px); right: -8px; min-width: 200px; padding: 6px; border-radius: 20px;
  background: var(--surface-2); border: 1px solid rgba(255, 255, 255, .10); box-shadow: 0 24px 60px rgba(0, 0, 0, .55);
}
.hx-pop a { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 42px; padding: 0 14px; border-radius: 14px; font-size: 15px; color: var(--ink-2); }
.hx-pop a:hover { background: rgba(255, 255, 255, .06); color: var(--ink); }
.hx-pop a[aria-current] { color: var(--ink); }
.hx-pop a[aria-current]::after { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--mint); }
.hx-acct { display: flex; align-items: center; gap: 2px; }
.hx-login { height: 40px; padding: 0 18px; border-radius: 999px; display: inline-flex; align-items: center; font-size: 14px; font-weight: 500; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .22); }
.hx-login:hover { background: rgba(255, 255, 255, .06); }
.hx-login[aria-current] { box-shadow: inset 0 0 0 1px rgba(75, 227, 186, .55); }
.hx-me { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 12px 0 4px; border-radius: 999px; font-size: 14px; font-weight: 500; color: var(--ink); }
.hx-me:hover { background: rgba(255, 255, 255, .06); }
.hx-store { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px 0 14px; border-radius: 999px; background: var(--surface-3); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .10); font-size: 14px; font-weight: 500; white-space: nowrap; }
.hx-store .ico { width: 17px; height: 17px; }
.hx-store:hover { background: var(--line); } .hx-store { position: relative; } .hx-store::after { content: ''; position: absolute; inset: -4px 0; } /* hit area 44px on phones, look unchanged */
.hx-store.play { display: none; }
html[data-os=android] .hx-store.play { display: inline-flex; } html[data-os=android] .hx-store.ios:has(~ .hx-store.play) { display: none; }
/* «Google Play» длиннее «App Store»: на 360–374 px (частые Android) шапка не помещалась на 5 px — отступы как у компактной шапки. */
@media (min-width: 360px) and (max-width: 374px) { html[data-os=android] .hx-store.play { gap: 6px; padding: 0 10px; } }
@media (max-width: 359px) { html[data-os=android] .hx-store.play { gap: 5px; padding: 0 8px; font-size: 12.5px; } }
.hx-burger { display: none; position: relative; width: 44px; height: 44px; border: 0; border-radius: 22px; background: transparent; cursor: pointer; }
.hx-burger span { position: absolute; left: 13px; width: 18px; height: 1.5px; border-radius: 1px; background: var(--ink); transition: transform .3s var(--ease), top .3s var(--ease); }
.hx-burger span:first-child { top: 18px; }
.hx-burger span:last-child { top: 25px; }
.hx-open .hx-burger span:first-child { top: 21.5px; transform: rotate(45deg); }
.hx-open .hx-burger span:last-child { top: 21.5px; transform: rotate(-45deg); }
.hx-menu { display: none; }
.proto { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 999px; font-size: 13px; font-weight: 500; color: var(--mango); background: var(--amber-tint); box-shadow: inset 0 0 0 1px rgba(255, 166, 43, .35); white-space: nowrap; }
.proto-bar { display: flex; justify-content: center; padding-top: 8px; }
.avatar { display: inline-grid; place-items: center; flex: none; width: 32px; height: 32px; border-radius: 50%; overflow: hidden; font-size: 13px; font-weight: 700; color: var(--on-brand); background: var(--av-2); }
.avatar.a0 { background: var(--av-1); } .avatar.a1 { background: var(--av-2); } .avatar.a2 { background: var(--av-3); } .avatar.a3 { background: var(--av-4); }
.avatar.ph { background: var(--surface-2); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12); }
.avatar.ph img { width: 100%; height: 100%; object-fit: cover; }
.avatar.gold { box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--gold); }
.avatar.lg { width: 72px; height: 72px; font-size: 24px; }
.avatar.md { width: 44px; height: 44px; font-size: 16px; }
.avatar.anon { background: var(--surface-3); box-shadow: inset 0 0 0 1px var(--line); }
@media (max-width: 1239px) { .hx-logo .club { display: none; } .hx-nav a { padding: 0 11px; } }
@media (max-width: 1099px) {
  .hx-nav, .hx-lang, .hx-acct, .hx-login { display: none !important; }
  .hx-bar { padding-top: 10px; }
  .hx-in { width: calc(100% - 20px); height: 56px; padding: 0 6px 0 18px; gap: 10px; justify-content: space-between; border-radius: 28px; }
  .hx-burger { display: block; }
  .hx-store { height: 36px; padding: 0 14px 0 12px; }
  .hx-menu {
    display: block; position: fixed; top: var(--hx-h); left: 10px; right: 10px; max-height: calc(100dvh - var(--hx-h) - 10px);
    overflow-y: auto; overscroll-behavior: contain; border-radius: 28px; background: rgba(20, 28, 48, .96); border: 1px solid rgba(255, 255, 255, .10);
    -webkit-backdrop-filter: saturate(180%) blur(24px); backdrop-filter: saturate(180%) blur(24px); box-shadow: 0 24px 60px rgba(0, 0, 0, .55);
    visibility: hidden; opacity: 0; transition: opacity .25s var(--ease), visibility 0s linear .25s;
  }
  .hx-open .hx-menu { visibility: visible; opacity: 1; transition: opacity .25s var(--ease); }
  html.hx-open, html.hx-open body { overflow: hidden; }
}
.hx-menu-in { padding: 14px 18px 20px; }
.hx-big a { display: flex; align-items: center; min-height: 52px; font-size: 26px; line-height: 1.15; font-weight: 500; letter-spacing: -.02em; }
.hx-big a[aria-current] { color: var(--mint); }
.hx-small { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.hx-small a { display: flex; align-items: center; min-height: 46px; font-size: 18px; color: var(--ink-2); }
.hx-seg { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; margin-top: 20px; padding: 4px; border-radius: 14px; background: rgba(255, 255, 255, .05); border: 1px solid var(--line); }
.hx-seg a { display: flex; align-items: center; justify-content: center; height: 42px; border-radius: 10px; font-size: 15px; font-weight: 500; color: var(--ink-2); }
.hx-seg a[aria-current] { color: var(--ink); background: var(--surface-3); box-shadow: inset 0 0 0 1px rgba(75, 227, 186, .45); }
@media (max-width: 359px) { .hx-in { padding-left: 14px; } .hx-logo img { height: 22px; } .hx-store { padding: 0 12px; } }

/* ---------- footer ---------- */
.ft { margin-top: var(--sec); padding: 64px 0 48px; background: var(--bg-deep); border-top: 1px solid var(--line-soft); }
.ft-top { display: flex; justify-content: space-between; gap: 48px; padding-bottom: 40px; border-bottom: 1px solid var(--line-soft); }
.ft-brand { display: flex; flex-direction: column; gap: 16px; max-width: 360px; }
.ft-brand img { height: 28px; width: auto; align-self: flex-start; }
.ft-brand p { font-family: var(--display); font-weight: 800; font-size: 22px; line-height: 1.2; letter-spacing: -.01em; }
/* «Сделано на Коста-Браве, между матчами» — как на padelada.com: тихо, курсивом, под слоганом. */
.ft-made { display: block; font-size: 14px; line-height: 1.4; font-style: italic; color: var(--mu); text-wrap: balance; }
.ft-links { display: grid; grid-template-columns: repeat(2, minmax(0, auto)); gap: 4px 48px; align-content: start; }
.ft-links a { display: inline-flex; align-items: center; min-height: 44px; font-size: 15px; color: var(--ink-2); }
.ft-links a:hover { color: var(--ink); }
.ft-bot { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 28px; }
.ft-co { font-size: 14px; color: var(--mu); }
.ft-langs { display: flex; flex-wrap: wrap; gap: 4px; }
.ft-langs a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; border-radius: 999px; font-size: 14px; color: var(--mu); }
.ft-langs a:hover { color: var(--ink); background: rgba(255, 255, 255, .05); }
.ft-langs a[aria-current] { color: var(--ink); box-shadow: inset 0 0 0 1px rgba(75, 227, 186, .45); }
@media (max-width: 1023px) { .ft-top { flex-direction: column; gap: 32px; } }
@media (max-width: 767px) {
  .ft { padding: 48px 0 32px; }
  .ft-top, .ft-bot { flex-direction: column; align-items: flex-start; gap: 28px; }
  .ft-links { grid-template-columns: 1fr; gap: 0; }
  .ft-langs { margin-left: -12px; }
}

/* ---------- cards & chips ---------- */
.card { position: relative; border-radius: var(--r-card); background: var(--surface); border: 1px solid var(--line); padding: 32px; }
.card.lift { background: linear-gradient(180deg, var(--surface-2), var(--surface)); }
.card.flat { background: transparent; }
.card-link { transition: border-color .2s var(--ease), background-color .2s var(--ease); }
.card-link:hover { border-color: rgba(75, 227, 186, .35); background: var(--surface-2); }
@media (max-width: 767px) { .card { padding: 24px; } }
.chip { display: inline-flex; align-items: center; gap: 8px; min-height: 32px; padding: 0 14px; border-radius: 999px; font-size: 14px; font-weight: 500; line-height: 1.2; white-space: nowrap; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); color: var(--ink-2); }
.chip.mint { color: var(--mint); background: var(--mint-tint); box-shadow: inset 0 0 0 1px rgba(75, 227, 186, .35); }
.chip.mango { color: var(--mango); background: var(--amber-tint); box-shadow: inset 0 0 0 1px rgba(255, 166, 43, .35); }
.chip.dim { color: var(--mu); }
.chip .ico { width: 16px; height: 16px; }
.ico { width: 20px; height: 20px; flex: none; }
.dot-sep::before { content: '·'; margin: 0 8px; color: var(--mu); }

/* state badge: four shapes, not only colour */
.st { display: inline-flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 500; line-height: 1.2; white-space: nowrap; }
.st i { position: relative; width: 14px; height: 14px; flex: none; border-radius: 50%; }
.st-abierta i { background: var(--mint); }
.st-abriendose i { box-shadow: inset 0 0 0 2px var(--mango); background: linear-gradient(90deg, var(--mango) 50%, transparent 50%); }
.st-por-abrir i { box-shadow: inset 0 0 0 2px var(--mu); }
.st-espera i { box-shadow: inset 0 0 0 2px var(--line-strong); background: radial-gradient(circle, var(--line-strong) 0 2.5px, transparent 3px); }
.st-abierta { color: var(--mint); }
.st-abriendose { color: var(--mango); }
.st-por-abrir { color: var(--ink-2); }
.st-espera { color: var(--mu); }
.st.pill { min-height: 36px; padding: 0 16px 0 12px; border-radius: 999px; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); }
.st.pill.st-abierta { background: var(--mint-tint); box-shadow: inset 0 0 0 1px rgba(75, 227, 186, .35); }

/* ---------- hero light ---------- */
.lit { position: relative; isolation: isolate; }
.lit::before { content: ''; position: absolute; inset: -200px 0 0; z-index: -1; pointer-events: none;
  background: radial-gradient(52% 58% at 78% 26%, rgba(75, 227, 186, .13), transparent 70%), radial-gradient(40% 50% at 10% 0%, rgba(75, 227, 186, .07), transparent 70%); }

/* ---------- HOME ---------- */
.hero { padding: 72px 0 0; }
.hero .grid { align-items: center; }
.hero-copy { grid-column: 1 / span 7; display: flex; flex-direction: column; gap: 28px; }
.hero-copy h1 span { display: block; }
.hero-copy h1 .acc { color: var(--mint); }
.hero-side { grid-column: 8 / span 5; }
@media (max-width: 939px) { .hero-copy, .hero-side { grid-column: 1 / -1; } }
@media (max-width: 767px) { .hero { padding: 32px 0 0; } .hero-copy { gap: 20px; } }

/* showcase card of a comarca (hero side) */
.show-name { font-size: 26px; font-weight: 700; line-height: 1.15; letter-spacing: -.01em; }
.show-reg { margin-top: 6px; font-size: 14px; color: var(--mu); }
.show-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 24px 0; padding: 20px 0; border-block: 1px solid var(--line-soft); }
.show-stats b { display: block; font-size: 34px; line-height: 1; }
.show-stats span { display: block; margin-top: 8px; font-size: 13px; color: var(--mu); line-height: 1.3; }

/* map block on home */
.mapblock { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gut); align-items: start; }
.mapblock .mapfig { grid-column: 1 / span 8; }
.mapblock aside { grid-column: 9 / span 4; display: flex; flex-direction: column; gap: 16px; }
@media (max-width: 1023px) { .mapblock .mapfig, .mapblock aside { grid-column: 1 / -1; } }
.mapfig { display: block; position: relative; padding: 24px; border-radius: 32px; background: radial-gradient(70% 70% at 50% 40%, var(--night), var(--sunk)); border: 1px solid var(--line); }
.mapfig svg, .mapfig img { width: 100%; height: auto; }
.mapfig .can { fill: none; stroke: var(--line); stroke-width: 1.2; }
.mapfig .can-t { fill: var(--mu); font: 500 22px var(--text); }
@media (max-width: 767px) { .mapfig { padding: 12px; border-radius: 22px; } }
.m-abierta { fill: var(--mint); }
.m-abriendose { fill: var(--tint-mango); }
.m-por-abrir { fill: var(--surface-3); }
.m-espera { fill: var(--surface-2); }
.map-svg path { stroke: var(--bg); stroke-width: .7; stroke-linejoin: round; transition: fill .15s var(--ease); }
.map-svg path.m-abriendose { stroke: rgba(255, 166, 43, .75); stroke-width: .6; }
.map-svg a:hover path, .map-svg path:hover { fill: var(--mint-light); fill-opacity: 1; }
.map-svg path.sel { fill: var(--ink); fill-opacity: 1; }
.legend { display: grid; grid-template-columns: 1fr; gap: 4px; padding: 8px 24px; }
.legend li { display: flex; flex-direction: column; gap: 4px; padding: 14px 0; border-top: 1px solid var(--line-soft); }
.legend li:first-child { border-top: 0; }
.legend p { font-size: 14px; line-height: 1.45; color: var(--mu); }
.legend.row { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; padding: 0; margin-top: 24px; }
.legend.row li { border-top: 0; padding: 0; }
@media (max-width: 1023px) { .legend.row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 479px) { .legend.row { grid-template-columns: 1fr; gap: 16px; } }

.cocard { display: flex; flex-direction: column; gap: 16px; padding: 24px; }
.cocard h3 { font-size: 20px; line-height: 1.2; overflow-wrap: anywhere; }
.cocard .stats { display: flex; gap: 32px; }
.cocard .stats b { display: block; font-size: 30px; line-height: 1; }
.cocard .stats span { display: block; margin-top: 6px; font-size: 13px; color: var(--mu); }
.cocard .link { margin-top: auto; align-self: flex-start; min-height: 32px; }

/* steps */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gut); }
.step { display: flex; flex-direction: column; gap: 14px; }
.step .n { font-size: 56px; line-height: 1; color: var(--mint); }
.step h3 { font-size: 22px; line-height: 1.25; }
.step p { color: var(--ink-2); }
.step > div { display: flex; flex-direction: column; gap: 8px; }
@media (max-width: 1023px) { .steps { grid-template-columns: 1fr; } .step { flex-direction: row; gap: 24px; } .step .n { font-size: 44px; min-width: 64px; } .step > div { display: flex; flex-direction: column; gap: 8px; } }
@media (max-width: 767px) { .step { gap: 16px; } .step .n { font-size: 36px; min-width: 48px; } }

.duo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gut); }
.duo .card { display: flex; flex-direction: column; gap: 20px; padding: 48px; min-height: 360px; }
.duo .card .btn { margin-top: auto; align-self: flex-start; }
.duo .card .kick { width: 56px; height: 56px; border-radius: 18px; display: grid; place-items: center; background: var(--mint-tint); color: var(--mint); box-shadow: inset 0 0 0 1px rgba(75, 227, 186, .3); }
.duo .card .kick .ico { width: 26px; height: 26px; }
@media (max-width: 1023px) { .duo { grid-template-columns: 1fr; } .duo .card { min-height: 0; } }
@media (max-width: 767px) { .duo .card { padding: 28px 24px; } .duo .card .btn { align-self: stretch; } }

.final { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 28px; padding: 80px 48px; border-radius: 40px; background: radial-gradient(60% 90% at 50% 0%, rgba(75, 227, 186, .14), transparent 70%), var(--surface); border: 1px solid var(--line); }
.final .stores, .final .btn-row { justify-content: center; }
@media (max-width: 767px) { .final { padding: 56px 20px; border-radius: 28px; gap: 24px; } .final .stores, .final .btn-row { width: 100%; } }

/* ---------- MAP page ---------- */
.maphead { padding: 48px 0 40px; }
.maphead .grid { align-items: end; }
.maphead .t { grid-column: 1 / span 7; display: flex; flex-direction: column; gap: 16px; }
.maphead .s { grid-column: 8 / span 5; }
@media (max-width: 1023px) { .maphead .t, .maphead .s { grid-column: 1 / -1; } }
.search { position: relative; }
.search input {
  width: 100%; height: 60px; padding: 0 20px 0 56px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface);
  font-size: 17px; color: var(--ink); transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.search input::placeholder { color: var(--mu); }
.search input:focus { outline: none; border-color: rgba(75, 227, 186, .6); box-shadow: 0 0 0 4px rgba(75, 227, 186, .12); }
.search > .ico { position: absolute; left: 20px; top: 20px; color: var(--mu); }
.results { position: absolute; z-index: 20; left: 0; right: 0; top: calc(100% + 8px); max-height: 360px; overflow-y: auto; padding: 6px; border-radius: 22px; background: var(--surface-2); border: 1px solid rgba(255, 255, 255, .1); box-shadow: 0 24px 60px rgba(0, 0, 0, .55); }
.results[hidden] { display: none; }
.results button { display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 12px; min-height: 52px; padding: 8px 14px; border: 0; border-radius: 14px; background: transparent; text-align: left; cursor: pointer; }
.results button:hover, .results button[aria-selected="true"] { background: rgba(255, 255, 255, .06); }
.results button span { display: flex; flex-direction: column; min-width: 0; }
.results button b { font-weight: 700; font-size: 16px; overflow-wrap: anywhere; }
.results button small { font-size: 13px; color: var(--mu); }
.results p { padding: 14px; font-size: 15px; color: var(--ink-2); }
.mapstage { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gut); align-items: start; }
.mapstage .mapfig { grid-column: 1 / span 8; }
.mapstage .panel { grid-column: 9 / span 4; position: sticky; top: calc(var(--hx-h) + 16px); display: flex; flex-direction: column; gap: 16px; }
@media (max-width: 1023px) { .mapstage .mapfig, .mapstage .panel { grid-column: 1 / -1; position: static; } }
.pick h2 { font-family: var(--text); font-weight: 700; font-size: 26px; line-height: 1.2; letter-spacing: -.01em; overflow-wrap: anywhere; }
.pick .reg { font-size: 14px; color: var(--mu); }
.pick .stats { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding: 20px 0; border-block: 1px solid var(--line-soft); }
.pick .stats b { display: block; font-size: 40px; line-height: 1; }
.pick .stats span { display: block; margin-top: 8px; font-size: 14px; color: var(--mu); }
.pick .btn { width: 100%; }
.mapnotes { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gut); margin-top: 64px; }
.mapnotes .legend.row { grid-column: 1 / -1; margin: 0; }
.cta-band { display: flex; align-items: center; justify-content: space-between; gap: 32px; padding: 40px 48px; border-radius: var(--r-card); background: var(--surface); border: 1px solid var(--line); }
.cta-band p { font-size: 22px; line-height: 1.35; font-weight: 500; max-width: 30ch; }
@media (max-width: 767px) { .cta-band { flex-direction: column; align-items: stretch; padding: 28px 24px; } .cta-band p { font-size: 19px; } }

/* ---------- COMARCA ---------- */
.cohead { padding: 40px 0 0; }
.cohead .grid { align-items: center; }
.cohead .t { grid-column: 1 / span 7; display: flex; flex-direction: column; gap: 24px; }
.cohead .t h1 { overflow-wrap: anywhere; hyphens: auto; }
.cohead .t h1.long { font-size: 44px; line-height: 1.1; }
.cohead .v { grid-column: 8 / span 5; }
.cohead .t.wide { grid-column: 1 / -1; max-width: 760px; } /* no map frame: the text is not squeezed into 7 columns, nor stretched over 12 */
.statusline { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.statusline .n { font-size: 15px; color: var(--ink-2); }
.statusline .n b { font-family: var(--display); font-weight: 800; color: var(--ink); }
/* Activity over 7 days (18.11): one line under the status, mint icon, numbers glued to their words. */
.activity { display: flex; gap: 10px; align-items: center; margin: 14px 0 0; font-size: 16px; line-height: 1.4; color: var(--ink-2); }
.activity .ico { color: var(--mint); flex: none; }
.silhouette { position: relative; aspect-ratio: 1; border-radius: 32px; background: radial-gradient(65% 65% at 50% 45%, var(--night), var(--sunk)); border: 1px solid var(--line); overflow: hidden; }
.silhouette svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.silhouette .nb { fill: var(--surface); stroke: var(--sunk); stroke-width: .6; }
.silhouette .me { stroke: var(--mint); stroke-width: 1.4; stroke-linejoin: round; }
.silhouette figcaption { position: absolute; left: 20px; bottom: 16px; font-size: 13px; color: var(--mu); }
.note { display: flex; gap: 14px; align-items: flex-start; padding: 18px 20px; border-radius: var(--r-in); background: var(--surface-2); border: 1px solid var(--line); font-size: 16px; line-height: 1.5; color: var(--ink-2); max-width: 600px; }
.note .ico { color: var(--mint); margin-top: 2px; }
.note.amber { background: var(--amber-tint); border-color: rgba(255, 166, 43, .3); }
.note.amber .ico { color: var(--mango); }
.sample { font-size: 13px; color: var(--mu); }
@media (max-width: 1023px) { .cohead .t, .cohead .v { grid-column: 1 / -1; } .cohead .v { max-width: 420px; } }
@media (max-width: 767px) { .cohead { padding-top: 24px; } .cohead .t h1.long { font-size: 30px; } .cohead .v { max-width: none; } .silhouette { aspect-ratio: 4 / 3; } }

.tabs { display: inline-flex; gap: 4px; padding: 4px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); }
.tabs a, .tabs button { display: inline-flex; align-items: center; height: 44px; padding: 0 20px; border: 0; border-radius: 999px; background: transparent; font-size: 15px; font-weight: 500; color: var(--ink-2); cursor: pointer; white-space: nowrap; }
.tabs a:hover, .tabs button:hover { color: var(--ink); }
.tabs [aria-current], .tabs [aria-selected="true"] { color: var(--ink); background: var(--surface-3); box-shadow: inset 0 0 0 1px rgba(75, 227, 186, .4); }
.tabs.full { display: flex; }
.tabs.full > * { flex: 1; justify-content: center; }

.tours { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gut); }
@media (max-width: 1099px) { .tours { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 767px) { .tours { grid-template-columns: minmax(0, 1fr); } } /* minmax: a 24-seat card must not widen the column */
.tcard { display: flex; flex-direction: column; gap: 20px; padding: 28px; }
.tcard .top { display: flex; gap: 20px; align-items: flex-start; }
.date { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 72px; height: 80px; flex: none; border-radius: 20px; background: var(--surface-2); border: 1px solid var(--line); }
.date b { font-size: 32px; line-height: 1; }
.date span { margin-top: 4px; font-size: 13px; font-weight: 500; color: var(--mu); text-transform: lowercase; }
.date.x b { color: var(--mu); text-decoration: line-through; text-decoration-thickness: 2px; }
.tcard h3 { font-size: 19px; line-height: 1.3; }
.tcard .meta { margin-top: 6px; font-size: 14px; line-height: 1.45; color: var(--mu); }
.tcard .bot { display: flex; flex-direction: column; gap: 12px; margin-top: auto; padding-top: 18px; border-top: 1px solid var(--line-soft); }
.seats { display: grid; grid-template-columns: repeat(var(--c, 12), 10px); gap: 5px; }
.seats i { width: 10px; height: 10px; border-radius: 50%; background: var(--mint); }
.seats i.f { background: transparent; box-shadow: inset 0 0 0 1.5px var(--line-strong); }
.seats.lg { grid-template-columns: repeat(var(--c, 12), minmax(0, 18px)); gap: 8px; }
.seats.lg i { width: 100%; height: auto; aspect-ratio: 1; }
.left { font-size: 15px; font-weight: 500; color: var(--mint); }
.left.full { color: var(--mango); }
.left.x { color: var(--mu); }
.empty { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; padding: 40px; border-radius: var(--r-card); border: 1px solid var(--line); background: var(--surface); }
.empty p { font-size: 19px; line-height: 1.45; color: var(--ink-2); max-width: 46ch; }
@media (max-width: 767px) { .empty { padding: 28px 24px; } .empty .btn { width: 100%; } }

.metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)) ; gap: var(--gut); }
.metric { padding: 28px; }
.metric b { display: block; font-size: 52px; line-height: 1; }
.metric span { display: block; margin-top: 12px; font-size: 15px; color: var(--mu); }
.metric b.up { color: var(--mint); }
.metric b.word { color: var(--mint); font-size: 40px; line-height: 1.3; }
.chart { margin-top: var(--gut); padding: 32px; }
.chart svg { width: 100%; height: 200px; }
.chart .bar { fill: var(--mint-deep); }
.chart .bar.last { fill: var(--mint); }
.chart .base { stroke: var(--line); }
@media (max-width: 1023px) { .metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 767px) { .metric { padding: 20px; } .metric b { font-size: 36px; } .metric b.word { font-size: 28px; line-height: 1.29; } .chart { padding: 20px; } .chart svg { height: 140px; } }

.builders { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gut); }
.capcard { grid-column: 1 / span 5; align-self: start; display: flex; flex-direction: column; gap: 20px; }
.capcard .who { display: flex; align-items: center; gap: 20px; }
.capcard .who b { display: block; font-size: 24px; line-height: 1.2; font-weight: 700; }
.capcard .who div > span { display: block; margin-top: 4px; color: var(--mu); font-size: 15px; }
.capcard .role { font-size: 14px; font-weight: 500; color: var(--mint); }
.orgs { grid-column: 6 / span 7; }
.orgs h3 { margin-bottom: 8px; }
.orgs ol li { display: flex; align-items: center; gap: 16px; min-height: 64px; border-top: 1px solid var(--line-soft); }
.orgs ol li:first-child { border-top: 0; }
.orgs .pos { width: 28px; font-size: 18px; color: var(--mu); }
.orgs .nm { flex: 1; font-weight: 700; min-width: 0; overflow-wrap: anywhere; }
.orgs .ct { font-size: 15px; color: var(--ink-2); white-space: nowrap; }
.orgs .race { margin-top: 16px; }
@media (max-width: 1023px) { .capcard, .orgs { grid-column: 1 / -1; } }

.clubs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gut); }
.card.club { display: flex; flex-direction: column; gap: 14px; padding: 28px; }
.card.club h3 { font-size: 19px; }
.card.club .meta { display: flex; flex-wrap: wrap; gap: 8px; }
.card.club .addr { font-size: 14px; color: var(--mu); }
.card.club .link { margin-top: auto; min-height: 32px; }
.card.club .link + .link { margin-top: 0; }
.fix { margin-top: 24px; font-size: 15px; color: var(--mu); }
@media (max-width: 1099px) { .clubs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 767px) { .clubs { grid-template-columns: 1fr; } }

.slots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gut); }
.slot { display: flex; flex-direction: column; gap: 16px; min-height: 240px; padding: 28px; }
.slot .logo { display: grid; place-items: center; height: 96px; border-radius: var(--r-in); background: var(--surface-2); font-size: 22px; font-weight: 700; letter-spacing: -.01em; color: var(--ink); }
.slot .lbl { font-size: 14px; color: var(--mu); }
.slot.free { background: transparent; }
.slot.free p { font-size: 17px; color: var(--ink-2); }
.slot.free .btn { margin-top: auto; align-self: flex-start; }
@media (max-width: 1023px) { .slots { grid-template-columns: minmax(0, 1fr); } .slot { min-height: 0; } }
@media (max-width: 767px) { .slot.free .btn { align-self: stretch; } }

.members { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 28px 32px; }
.members p { color: var(--ink-2); max-width: 56ch; }
@media (max-width: 767px) { .members { flex-direction: column; align-items: stretch; padding: 24px; } }

/* ---------- TOURNAMENT ---------- */
.tohead { padding: 40px 0 0; }
.tohead .grid { align-items: start; }
.tohead .t { grid-column: 1 / span 7; display: flex; flex-direction: column; gap: 24px; }
.tohead .sign { grid-column: 9 / span 4; position: sticky; top: calc(var(--hx-h) + 16px); }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 0 32px; margin-top: 8px; }
.facts div { display: flex; flex-direction: column; gap: 4px; padding: 18px 0; border-top: 1px solid var(--line-soft); }
.facts dt { font-size: 14px; color: var(--mu); }
.facts dd { font-size: 18px; line-height: 1.35; }
.facts dd a { color: var(--mint); }
.sign { display: flex; flex-direction: column; gap: 20px; }
.sign .big { font-size: 64px; line-height: 1; }
.sign .big small { font-size: 22px; color: var(--mu); letter-spacing: 0; }
.sign .btn { width: 100%; }
.sign .x { font-size: 18px; line-height: 1.45; color: var(--ink-2); }
.plist { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.plist li { display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 10px 16px 10px 10px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); min-width: 0; }
.plist li span { min-width: 0; overflow-wrap: anywhere; font-weight: 700; font-size: 15px; line-height: 1.3; }
.plist li.anon span { font-weight: 400; color: var(--mu); }
@media (max-width: 1099px) { .plist { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 767px) { .plist { grid-template-columns: 1fr 1fr; } }
@media (max-width: 1023px) { .tohead .t, .tohead .sign { grid-column: 1 / -1; position: static; } }
@media (max-width: 479px) { .facts { grid-template-columns: 1fr; } .plist { grid-template-columns: 1fr; } }
.podium { display: grid; grid-template-columns: 1fr 1.15fr 1fr; gap: var(--gut); align-items: end; }
.pod { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; padding: 28px 16px; border-radius: var(--r-card); background: var(--surface); border: 1px solid var(--line); }
.pod .place { font-size: 48px; line-height: 1; }
.pod.p1 { padding-top: 44px; background: linear-gradient(180deg, rgba(255, 166, 43, .14), var(--surface) 70%); border-color: rgba(255, 166, 43, .35); }
.pod.p1 .place { color: var(--mango); }
.pod .names { font-weight: 700; line-height: 1.35; }
.pod .pts { font-size: 15px; color: var(--mu); }
.restable { width: 100%; margin-top: var(--gut); border-collapse: collapse; }
.restable th { text-align: left; font-size: 14px; font-weight: 500; color: var(--mu); padding: 0 16px 12px; }
.restable td { padding: 16px; border-top: 1px solid var(--line-soft); font-size: 16px; }
.restable td.num { font-size: 18px; }
.restable th:last-child, .restable td:last-child { text-align: right; }
@media (max-width: 767px) { .podium { grid-template-columns: 1fr; } .pod.p1 { order: -1; } .restable td, .restable th { padding-inline: 8px; } }
.addr { display: flex; justify-content: space-between; align-items: center; gap: 24px; }
.addr b { display: block; font-size: 20px; }
.addr span { display: block; margin-top: 4px; color: var(--mu); }
@media (max-width: 767px) { .addr { flex-direction: column; align-items: flex-start; } }

/* ---------- INFO pages (organizers, sponsors) ---------- */
.ihead { padding: 64px 0 0; }
.ihead .t { display: flex; flex-direction: column; gap: 28px; max-width: 860px; }
.ladder { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gut); counter-reset: l; }
.rung { position: relative; display: flex; flex-direction: column; gap: 14px; padding: 32px 28px; }
.rung .n { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; font-size: 18px; color: var(--mint); background: var(--mint-tint); box-shadow: inset 0 0 0 1px rgba(75, 227, 186, .35); }
.rung:last-child .n { color: var(--on-brand); background: var(--mint); box-shadow: none; }
.rung h3 { font-size: 20px; }
.rung p { font-size: 16px; color: var(--ink-2); }
.rung:not(:last-child)::after { content: ''; position: absolute; top: 54px; right: calc(-1 * var(--gut) - 1px); width: calc(var(--gut) + 2px); height: 1px; background: rgba(75, 227, 186, .4); }
@media (max-width: 1099px) { .ladder { grid-template-columns: 1fr 1fr; } .rung::after { display: none; } }
@media (max-width: 767px) { .ladder { grid-template-columns: 1fr; } }
.format { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gut); align-items: center; }
.format .t { grid-column: 1 / span 6; display: flex; flex-direction: column; gap: 20px; }
.format .n2 { grid-column: 8 / span 5; display: grid; grid-template-columns: 1fr 1fr; gap: var(--gut); }
.format .n2 .card { padding: 32px 28px; }
.format .n2 small { display: block; font-size: 14px; color: var(--mu); }
.format .n2 b { display: block; margin: 10px 0 6px; font-size: 88px; line-height: .9; color: var(--mint); }
.format .n2 span { font-size: 18px; color: var(--ink-2); }
@media (max-width: 1023px) { .format .t, .format .n2 { grid-column: 1 / -1; } }
@media (max-width: 767px) { .format .n2 b { font-size: 64px; } .format .n2 .card { padding: 24px 20px; } }
.split { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gut); }
.split > .l { grid-column: 1 / span 5; display: flex; flex-direction: column; gap: 20px; }
.split > .r { grid-column: 7 / span 6; display: flex; flex-direction: column; gap: 20px; }
@media (max-width: 1023px) { .split > .l, .split > .r { grid-column: 1 / -1; } }
.incomes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gut); }
.incomes .card { display: flex; flex-direction: column; gap: 14px; }
.incomes .card p { color: var(--ink-2); font-size: 16px; }
.incomes .kick, .gets .kick { width: 48px; height: 48px; border-radius: 16px; display: grid; place-items: center; color: var(--mint); background: var(--mint-tint); box-shadow: inset 0 0 0 1px rgba(75, 227, 186, .3); }
.incomes .kick .ico, .gets .kick .ico { width: 22px; height: 22px; }
@media (max-width: 1023px) { .incomes { grid-template-columns: 1fr; } }
.cats { margin-top: var(--gut); display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gut); }
.cats > p { grid-column: 1 / span 4; font-size: 19px; line-height: 1.5; color: var(--ink-2); }
.cats > ul { grid-column: 5 / span 8; display: flex; flex-direction: column; }
.cats li { display: block; padding: 24px 0; border-top: 1px solid var(--line-soft); }
.cats li:first-child { border-top: 0; padding-top: 0; }
.cats li b { font-weight: 700; }
.cats li p { color: var(--ink-2); font-size: 16px; }
@media (max-width: 1023px) { .cats > p, .cats > ul { grid-column: 1 / -1; } }
@media (max-width: 767px) { .cats li { grid-template-columns: 1fr; gap: 8px; } }
.vsteps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gut); }
.vsteps li { display: flex; flex-direction: column; gap: 14px; padding: 28px; }
.vsteps .n { font-size: 40px; line-height: 1; color: var(--mint); }
.vsteps p { color: var(--ink-2); }
@media (max-width: 1023px) { .vsteps { grid-template-columns: 1fr; } }
.gets { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gut); }
.gets .card { display: flex; flex-direction: column; gap: 16px; }
.gets p { color: var(--ink-2); }
@media (max-width: 1023px) { .gets { grid-template-columns: 1fr; } }
.flow { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gut); }
.flow li { display: flex; flex-direction: column; gap: 16px; padding-top: 24px; border-top: 2px solid var(--line); }
.flow li:first-child { border-top-color: var(--mint); }
.flow .n { font-size: 40px; line-height: 1; color: var(--mint); }
.flow p { color: var(--ink-2); }
@media (max-width: 1023px) { .flow { grid-template-columns: 1fr 1fr; row-gap: 40px; } }
@media (max-width: 767px) { .flow { grid-template-columns: 1fr; row-gap: 28px; } }
.rules { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gut); }
.rules li { display: flex; gap: 16px; padding: 28px; }
.rules li .ico { color: var(--mint); margin-top: 3px; }
.rules li p { color: var(--ink-2); }
.rules li.no { grid-column: 1 / -1; background: var(--surface-2); }
.rules li.no .ico { color: var(--mango); }
@media (max-width: 767px) { .rules { grid-template-columns: 1fr; } .rules li { padding: 22px 20px; } }

/* ---------- FAQ ---------- */
.faq { max-width: 880px; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 76px; padding: 18px 0; cursor: pointer; font-size: 21px; line-height: 1.35; font-weight: 500; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .pm { position: relative; width: 36px; height: 36px; flex: none; border-radius: 50%; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); }
.faq summary .pm::before, .faq summary .pm::after { content: ''; position: absolute; left: 11px; top: 17px; width: 14px; height: 2px; border-radius: 1px; background: var(--ink); transition: transform .25s var(--ease); }
.faq summary .pm::after { transform: rotate(90deg); }
.faq details[open] summary .pm::after { transform: rotate(0); }
.faq details[open] summary .pm { background: var(--mint-tint); box-shadow: inset 0 0 0 1px rgba(75, 227, 186, .4); }
.faq summary:hover { color: var(--ink); }
.faq .a { padding: 0 60px 28px 0; font-size: 18px; line-height: 1.6; color: var(--ink-2); }
@media (max-width: 767px) { .faq summary { font-size: 18px; min-height: 68px; gap: 16px; } .faq .a { padding-right: 0; font-size: 16px; } }

/* ---------- LEGAL ---------- */
.legal { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gut); padding-top: 48px; }
.legal nav { grid-column: 1 / span 3; position: sticky; top: calc(var(--hx-h) + 24px); align-self: start; }
.legal nav p { font-size: 14px; color: var(--mu); margin-bottom: 12px; }
.legal nav a { display: flex; align-items: center; min-height: 44px; padding: 8px 14px; margin-left: -14px; border-radius: 14px; font-size: 15px; line-height: 1.3; color: var(--ink-2); }
.legal nav a:hover { color: var(--ink); background: rgba(255, 255, 255, .04); }
.legal nav a[aria-current] { color: var(--ink); background: var(--surface-2); box-shadow: inset 0 0 0 1px rgba(75, 227, 186, .35); }
.legal article { grid-column: 5 / span 8; display: flex; flex-direction: column; gap: 32px; }
.legal article .doc { display: flex; flex-direction: column; gap: 28px; }
.legal article section { display: flex; flex-direction: column; gap: 10px; padding-top: 28px; border-top: 1px solid var(--line-soft); }
.legal article section:first-child { border-top: 0; padding-top: 0; }
.legal article h2.h3 { font-family: var(--text); font-weight: 700; letter-spacing: 0; font-size: 20px; }
.legal article p { font-size: 17px; line-height: 1.7; color: var(--ink-2); max-width: 68ch; }
@media (max-width: 1023px) {
  .legal nav { grid-column: 1 / -1; position: static; }
  .legal nav ul { display: flex; flex-wrap: wrap; gap: 6px; }
  .legal nav a { margin: 0; padding: 0 14px; border-radius: 999px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); font-size: 14px; }
  .legal article { grid-column: 1 / -1; }
}
@media (max-width: 767px) { .legal { padding-top: 16px; } .legal article p { font-size: 16px; } .legal h1.h1 { font-size: clamp(25px, 7.4vw, 36px); } }

/* ---------- LOGIN ---------- */
.login { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gut); padding: 48px 0 0; align-items: start; }
.login .t { grid-column: 1 / span 5; display: flex; flex-direction: column; gap: 20px; padding-top: 24px; }
.login .box { grid-column: 7 / span 6; padding: 40px; display: flex; flex-direction: column; gap: 28px; }
@media (max-width: 1023px) { .login .t, .login .box { grid-column: 1 / -1; } .login .box { max-width: 600px; } }
@media (max-width: 767px) { .login { padding-top: 16px; } .login .t { padding-top: 0; } .login .box { padding: 24px 20px; gap: 24px; } }
.field { display: flex; flex-direction: column; gap: 10px; }
.field label { font-size: 15px; font-weight: 500; color: var(--ink-2); }
.field input, .field select {
  height: 56px; padding: 0 18px; border-radius: 16px; border: 1px solid var(--line); background: var(--surface-2); color: var(--ink); font-size: 17px; width: 100%;
}
.field input:focus, .field select:focus { outline: none; border-color: rgba(75, 227, 186, .6); box-shadow: 0 0 0 4px rgba(75, 227, 186, .12); }
.field .err { display: flex; gap: 8px; align-items: center; font-size: 15px; color: var(--danger); }
.field.bad input { border-color: rgba(255, 132, 152, .7); }
.otp { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; }
.otp input { height: 64px; padding: 0; text-align: center; font-family: var(--display); font-weight: 800; font-size: 26px; }
@media (max-width: 359px) { .otp { gap: 6px; } .otp input { height: 54px; font-size: 22px; } }
.msg { display: flex; gap: 12px; align-items: flex-start; padding: 16px 18px; border-radius: 16px; font-size: 15px; line-height: 1.5; background: var(--mint-tint); color: var(--ink); box-shadow: inset 0 0 0 1px rgba(75, 227, 186, .3); }
.msg .ico { color: var(--mint); margin-top: 1px; }
.msg.bad { background: rgba(255, 132, 152, .08); box-shadow: inset 0 0 0 1px rgba(255, 132, 152, .35); }
.msg.bad .ico { color: var(--danger); }
.msg.warn { background: var(--amber-tint); box-shadow: inset 0 0 0 1px rgba(255, 166, 43, .35); }
.msg.warn .ico { color: var(--mango); }
.fine { font-size: 14px; line-height: 1.5; color: var(--mu); }
.fine a { color: var(--ink-2); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.qr { display: grid; grid-template-columns: 200px 1fr; gap: 28px; align-items: center; }
.qr .code { width: 200px; height: 200px; padding: 14px; border-radius: 24px; background: var(--ink); }
.qr .code svg { width: 100%; height: 100%; }
.qr ol { display: flex; flex-direction: column; gap: 12px; }
.qr p { font-size: 17px; line-height: 1.5; color: var(--ink-2); }
.timer { display: flex; align-items: center; gap: 12px; font-size: 14px; color: var(--mu); }
.timer i { position: relative; flex: 0 0 72px; height: 4px; border-radius: 2px; background: var(--surface-3); overflow: hidden; }
.timer i::after { content: ''; position: absolute; inset: 0; width: 64%; border-radius: 2px; background: var(--mint); }
@media (max-width: 767px) { .qr { grid-template-columns: 1fr; justify-items: center; text-align: center; } .qr .code { width: 220px; height: 220px; } }
.phone { margin-top: 8px; padding: 20px; border-radius: 22px; background: var(--surface-2); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 14px; }
.phone .q { font-size: 16px; line-height: 1.45; }
.phone .q small { display: block; color: var(--mu); font-size: 14px; margin-top: 4px; }
.pane[hidden] { display: none; }
.or { display: flex; align-items: center; gap: 16px; font-size: 14px; color: var(--mu); }
.or::before, .or::after { content: ''; flex: 1; height: 1px; background: var(--line-soft); }

/* ---------- MEMBER / PANEL ---------- */
.zhead { padding: 40px 0 48px; }
.zhead .row { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.zhead .t { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.zhead .t p { font-size: 18px; color: var(--ink-2); }
.zhead .acts { display: flex; flex-wrap: wrap; gap: 10px; }
.ztabs { margin-top: 32px; }
@media (max-width: 767px) { .zhead .acts, .zhead .select { width: 100%; } .zhead { padding: 24px 0 32px; } .ztabs { margin-top: 24px; } .ztabs.tabs { display: flex; } .ztabs.tabs > * { flex: 1; justify-content: center; padding: 0 10px; } }
.select { position: relative; display: inline-flex; max-width: 100%; }
.select select { width: 100%; text-overflow: ellipsis; appearance: none; height: 44px; padding: 0 44px 0 18px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font-size: 15px; font-weight: 500; cursor: pointer; max-width: 100%; }
.select .ico { position: absolute; right: 16px; top: 15px; width: 14px; height: 14px; pointer-events: none; color: var(--mu); }
.rank { width: 100%; border-collapse: separate; border-spacing: 0; }
.rank th { text-align: left; padding: 0 20px 14px; font-size: 14px; font-weight: 500; color: var(--mu); }
.rank td { padding: 0 20px; height: 68px; border-top: 1px solid var(--line-soft); font-size: 16px; }
.rank td.p { width: 96px; font-size: 22px; }
.rank td.c { width: 140px; text-align: right; font-size: 18px; }
.rank th.c { text-align: right; }
.rank .who { display: flex; align-items: center; gap: 14px; font-weight: 700; }
.rank .who.anon { font-weight: 400; color: var(--mu); }
.rank tr.me td { background: rgba(75, 227, 186, .10); border-top-color: transparent; }
.rank tr.me td:first-child { border-radius: 18px 0 0 18px; }
.rank tr.me td:last-child { border-radius: 0 18px 18px 0; }
.rank tr.me .you { margin-left: 8px; }
.rank tr.me + tr td { border-top-color: transparent; }
.rank tr.p1 td.p { color: var(--mango); }
@media (max-width: 767px) {
  .rank th, .rank td { padding: 0 8px; }
  .rank td.p { width: 44px; font-size: 18px; }
  .rank td.c, .rank th.c { width: auto; font-size: 16px; }
  .rank .hide-s { display: none; }
  .rank .who { gap: 10px; font-size: 15px; }
  .rank .who .avatar { width: 28px; height: 28px; font-size: 13px; }
}
.hist { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gut); }
.hist .facts2 { grid-column: 1 / span 4; display: flex; flex-direction: column; gap: 16px; }
.hist .main2 { grid-column: 5 / span 8; display: flex; flex-direction: column; gap: var(--gut); }
@media (max-width: 1023px) { .hist .facts2, .hist .main2 { grid-column: 1 / -1; } }
.names { display: flex; flex-wrap: wrap; gap: 8px; }
.names li { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px 0 4px; border-radius: 999px; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); font-weight: 700; font-size: 15px; }
.names li .avatar { width: 32px; height: 32px; }
.timeline li { display: grid; grid-template-columns: 140px 1fr; gap: 20px; padding: 16px 0; border-top: 1px solid var(--line-soft); }
.timeline li:first-child { border-top: 0; }
.timeline span { color: var(--mu); font-size: 15px; }
.timeline b { font-weight: 700; }
@media (max-width: 479px) { .timeline li { grid-template-columns: 1fr; gap: 4px; } }
.records { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.records li { display: flex; flex-direction: column; gap: 8px; padding: 22px; border-radius: 22px; background: var(--surface-2); border: 1px solid var(--line); }
.records b { font-size: 36px; line-height: 1; color: var(--mango); }
.records span { font-size: 14px; color: var(--ink-2); line-height: 1.4; }
.records small { font-size: 13px; color: var(--mu); }
@media (max-width: 479px) { .records { grid-template-columns: 1fr; } }
.years { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.arch li { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 60px; border-top: 1px solid var(--line-soft); }
.arch li:first-child { border-top: 0; }
.arch b { font-weight: 700; }
.arch span { font-size: 14px; color: var(--mu); white-space: nowrap; }
@media (max-width: 479px) { .arch li { flex-direction: column; align-items: flex-start; gap: 2px; padding: 12px 0; } }

.pgrid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gut); }
.pgrid > .w12 { grid-column: 1 / -1; }
.pgrid > .w8 { grid-column: span 8; }
.pgrid > .w7 { grid-column: span 7; }
.pgrid > .w6 { grid-column: span 6; }
.pgrid > .w5 { grid-column: span 5; }
.pgrid > .w4 { grid-column: span 4; }
@media (max-width: 1023px) { .pgrid > * { grid-column: 1 / -1 !important; } }
.pcard { display: flex; flex-direction: column; gap: 20px; }
.pcard h3 { font-size: 20px; }
.pcard .cap { margin-top: -12px; }
.lad { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.lad li { display: flex; flex-direction: column; gap: 12px; }
.lad li i { height: 6px; border-radius: 3px; background: var(--surface-3); }
.lad li.done i { background: var(--mint); }
.lad li.now i { background: linear-gradient(90deg, var(--mint) 70%, var(--surface-3) 70%); }
.lad li span { font-size: 14px; line-height: 1.35; color: var(--mu); }
.lad li.done span, .lad li.now span { color: var(--ink); }
@media (max-width: 767px) { .lad { grid-template-columns: 1fr 1fr; row-gap: 20px; } }
.racebox { display: flex; align-items: center; gap: 24px; }
.racebox .place { white-space: nowrap; font-size: 72px; line-height: .9; color: var(--mint); }
.racebox p { color: var(--ink-2); }
.near { position: relative; height: 10px; border-radius: 5px; background: var(--surface-3); }
.near i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 5px; background: linear-gradient(90deg, var(--mint-deep), var(--mint)); }
.near b { position: absolute; top: -5px; width: 20px; height: 20px; margin-left: -10px; border-radius: 50%; background: var(--ink); box-shadow: 0 0 0 4px var(--surface); }
.near-l { display: flex; justify-content: space-between; font-size: 13px; color: var(--mu); margin-top: 10px; }
.money { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.money b { white-space: nowrap; font-size: clamp(22px, 2.3vw, 34px) !important; }
.money li { padding: 20px; border-radius: 20px; background: var(--surface-2); border: 1px solid var(--line); }
.money b { display: block; font-size: 34px; line-height: 1; }
.money span { display: block; margin-top: 10px; font-size: 14px; color: var(--mu); }
.money li.acc b { color: var(--mint); }
@media (max-width: 767px) { .money { grid-template-columns: 1fr; } }
.big-n { font-size: 56px; line-height: 1; }
.big-n small { font-size: 18px; letter-spacing: 0; color: var(--mu); font-family: var(--text); font-weight: 400; }
.form { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 20px; }
.form .f2 { grid-column: span 2; }
.form .f3 { grid-column: span 3; }
.form .f6 { grid-column: 1 / -1; }
@media (max-width: 767px) { .form { grid-template-columns: 1fr 1fr; } .form .f3, .form .f6 { grid-column: 1 / -1; } .form .f2 { grid-column: span 1; } }
.seg { display: flex; gap: 4px; padding: 4px; border-radius: 16px; background: var(--surface-2); border: 1px solid var(--line); }
.seg span { flex: 1; display: grid; place-items: center; height: 46px; border-radius: 12px; font-size: 15px; color: var(--ink-2); }
.seg span.on { background: var(--surface-3); color: var(--ink); box-shadow: inset 0 0 0 1px rgba(75, 227, 186, .4); }
.toggle { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; padding: 12px 18px; border-radius: 16px; background: var(--surface-2); border: 1px solid var(--line); }
.toggle b { font-weight: 700; }
.toggle small { display: block; font-size: 14px; color: var(--mu); margin-top: 2px; }
.sw { position: relative; width: 52px; height: 32px; flex: none; border-radius: 16px; background: var(--surface-3); box-shadow: inset 0 0 0 1px var(--line); }
.sw::after { content: ''; position: absolute; left: 3px; top: 3px; width: 26px; height: 26px; border-radius: 50%; background: var(--line-strong); }
.sw.dis { opacity: .55; }
.tlist li { display: grid; grid-template-columns: 72px 1fr auto; gap: 20px; align-items: center; padding: 16px 0; border-top: 1px solid var(--line-soft); }
.tlist li:first-child { border-top: 0; }
.tlist .date { width: 64px; height: 68px; border-radius: 18px; }
.tlist .date b { font-size: 26px; }
.tlist b.nm { font-weight: 700; }
.tlist small { display: block; color: var(--mu); font-size: 14px; margin-top: 2px; }
@media (max-width: 767px) { .tlist li { grid-template-columns: 64px 1fr; } .tlist li > :last-child { grid-column: 2; justify-self: start; } }
.dialog { padding: 28px; border-radius: 24px; background: var(--surface-2); border: 1px solid rgba(255, 255, 255, .1); box-shadow: 0 24px 60px rgba(0, 0, 0, .45); display: flex; flex-direction: column; gap: 20px; }
.dialog p { font-size: 18px; line-height: 1.45; }
.pslots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.pslots li { display: flex; flex-direction: column; gap: 12px; padding: 22px; border-radius: 22px; background: var(--surface-2); border: 1px solid var(--line); min-height: 200px; }
.pslots li.free { background: transparent; }
.pslots li.pending { border-color: rgba(255, 166, 43, .4); background: var(--amber-tint); }
.pslots li p { font-size: 15px; line-height: 1.45; color: var(--ink-2); }
.pslots li b { font-weight: 700; }
.pslots .btn-row { margin-top: auto; }
.pslots .btn-row .btn { flex: 1; }
@media (max-width: 1099px) { .pslots { grid-template-columns: 1fr; } .pslots li { min-height: 0; } .pslots .btn-row { flex-direction: row; } }
.vstate { display: inline-flex; align-items: center; gap: 8px; min-height: 30px; padding: 0 12px 0 10px; border-radius: 999px; font-size: 13px; font-weight: 500; white-space: nowrap; background: var(--surface-3); color: var(--ink-2); }
.vstate i { width: 12px; height: 12px; border-radius: 50%; flex: none; }
.vstate.s0 i { box-shadow: inset 0 0 0 2px var(--mu); }
.vstate.s1 { color: var(--mint-light); } .vstate.s1 i { box-shadow: inset 0 0 0 2px var(--mint); background: linear-gradient(90deg, var(--mint) 50%, transparent 50%); }
.vstate.s2 { color: var(--mint); background: var(--mint-tint); } .vstate.s2 i { background: var(--mint); }
.vstate.s3 { color: var(--mango); background: var(--amber-tint); } .vstate.s3 i { background: var(--mango); }
.vlist li { display: grid; grid-template-columns: 48px 1fr auto; gap: 20px; align-items: start; padding: 24px 0; border-top: 1px solid var(--line-soft); }
.vlist li:first-child { border-top: 0; padding-top: 4px; }
.vlist .n { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; font-size: 16px; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); }
.vlist h3 { font-size: 18px; margin-bottom: 6px; }
.vlist p { color: var(--ink-2); font-size: 16px; }
.vlist .btn-row { margin-top: 16px; }
.vlist .msg { margin-top: 14px; }
@media (max-width: 767px) { .vlist li { grid-template-columns: 40px 1fr; } .vlist li > .vstate { grid-column: 2; justify-self: start; } }
.consent { display: flex; gap: 12px; align-items: flex-start; margin-top: 14px; padding: 14px 16px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line); font-size: 14px; line-height: 1.5; color: var(--ink-2); }
.consent .box2 { width: 22px; height: 22px; flex: none; border-radius: 7px; box-shadow: inset 0 0 0 1.5px var(--line-strong); margin-top: 1px; }
.pick-co { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.join { max-width: 720px; display: flex; flex-direction: column; gap: 24px; padding: 48px; }
@media (max-width: 767px) { .join { padding: 28px 24px; } }
.stack { display: flex; flex-direction: column; gap: var(--gut); }
.stack-s { display: flex; flex-direction: column; gap: 12px; }
.sp-l { margin-top: 48px; }

/* ---------- narrow-width fixes (overflow sweep 320–1440, 5 languages) ---------- */
.card .btn { white-space: normal; text-wrap: balance; }
.tabs.full > *, .ztabs > * { min-width: 0; white-space: normal; text-align: center; line-height: 1.2; padding-inline: 14px; }
.vlist li > div, .tlist li > div { min-width: 0; }
@media (max-width: 479px) {
  .tabs a, .tabs button { font-size: 14px; padding-inline: 10px; }
  .tabs .ico { display: none; }
  .rank { table-layout: fixed; }
  .rank th { font-size: 13px; }
  .rank td.p, .rank th:first-child { width: 60px; }
  .rank th:first-child { padding-right: 4px; }
  .rank td.c, .rank th.c { width: 88px; }
  .rank .who { min-width: 0; overflow-wrap: anywhere; }
  .arch span { white-space: normal; }
  .pslots .btn-row { flex-direction: column; }
}
.msg span, .msg div, .note span { min-width: 0; overflow-wrap: break-word; }


.zhead + .sec { padding-top: 48px; }
@media (max-width: 767px) { .zhead + .sec { padding-top: 32px; } .racebox .place { font-size: 56px; } }


/* ---------- QA round 1 (13.11): typography, rhythm, states ---------- */
/* Cyrillic headings in Golos (Montserrat Alternates Cyrillic reads as Latin look-alikes); numbers stay Montserrat. */
:lang(ru) :is(h1, h2, .display, .h1, .h2, .ft-brand p), :lang(uk) :is(h1, h2, .display, .h1, .h2, .ft-brand p) { font-family: var(--text); font-weight: 700; letter-spacing: -.025em; }
:lang(ru) .display, :lang(uk) .display { letter-spacing: -.03em; }
h1, h2, h3, summary, .cta-band p, .sign .x, .err, .statement, .legal nav a, .final .link, .show-name, .pick h2 { text-wrap: balance; }
p, li, dd, .msg span, .note span { text-wrap: pretty; }
.store b { white-space: nowrap; }
@media (max-width: 359px) { .store { padding: 0 16px; gap: 10px; } .store b { font-size: 16px; } }
.builders { align-items: start; }
.tours.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 767px) { .tours.two { grid-template-columns: minmax(0, 1fr); } }
.tcard .chip.tp { margin-top: 10px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
@media (min-width: 1024px) { .steps h3 { min-height: 2.5em; } }
@media (max-width: 359px) { .show-stats { grid-template-columns: 1fr 1fr; row-gap: 16px; } .show-stats > div:last-child { grid-column: 1 / -1; } }
@media (max-width: 479px) {
  .orgs ol li { display: grid; grid-template-columns: 22px 44px minmax(0, 1fr); column-gap: 12px; row-gap: 2px; padding: 12px 0; min-height: 0; }
  .orgs .pos { grid-row: 1 / span 2; align-self: center; }
  .orgs .avatar { grid-row: 1 / span 2; align-self: center; }
  .orgs .nm { overflow-wrap: normal; }
  .orgs .ct { grid-column: 3; font-size: 14px; color: var(--mu); }
}
/* tournament head: title + lead, signup card (right / second on phone), facts */
.tgrid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 0 var(--gut); align-items: start; }
.tgrid .t { grid-column: 1 / span 7; }
.tgrid .sign { grid-column: 9 / span 4; grid-row: 1 / span 2; position: sticky; top: calc(var(--hx-h) + 16px); }
.tgrid .tfacts { grid-column: 1 / span 7; margin-top: 24px; }
@media (max-width: 1023px) { .tgrid .t, .tgrid .sign, .tgrid .tfacts { grid-column: 1 / -1; grid-row: auto; position: static; } .tgrid .sign { margin-top: 28px; } }
.plist li.free { background: transparent; }
.plist li.free span:last-child { font-weight: 400; color: var(--mu); }
.restable-c { padding: 8px 20px; max-width: 760px; margin-top: var(--gut); }
.restable-c .restable { margin-top: 0; }
.restable th.r, .restable td.r { text-align: right; }
@media (max-width: 767px) {
  .podium { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .pod { padding: 18px 6px; gap: 8px; } .pod.p1 { order: 0; padding-top: 26px; }
  .pod .place { font-size: 30px; } .pod .avatar.lg { width: 44px; height: 44px; font-size: 16px; }
  .pod .names { font-size: 14px; } .pod .pts { font-size: 13px; }
  .restable-c { padding: 4px 12px; }
}
.moneynotes { display: grid; grid-template-columns: 7fr 5fr; gap: var(--gut); margin-top: var(--gut); }
.moneynotes .card { display: flex; flex-direction: column; gap: 14px; }
.moneynotes .kick { width: 48px; height: 48px; border-radius: 16px; display: grid; place-items: center; color: var(--mint); background: var(--mint-tint); box-shadow: inset 0 0 0 1px rgba(75, 227, 186, .3); }
@media (max-width: 1023px) { .moneynotes { grid-template-columns: 1fr; } }
.note.wide { max-width: none; }
.example { display: flex; align-items: center; gap: 24px; margin-top: var(--gut); padding: 24px; }
.example .logo { display: grid; place-items: center; min-width: 220px; height: 88px; padding: 0 24px; border-radius: var(--r-in); background: var(--surface-2); font-size: 22px; font-weight: 700; }
@media (max-width: 767px) { .example { flex-direction: column; align-items: stretch; } .example .logo { min-width: 0; } }
.rules li.wide { grid-column: 1 / -1; }
.ihead + .sec .faq { margin-top: -64px; }
@media (max-width: 767px) { .ihead + .sec .faq { margin-top: -32px; } }
.faq-c p { max-width: none; }
.noacc { padding-top: 24px; border-top: 1px solid var(--line-soft); font-size: 16px !important; color: var(--ink-2); }
.demo-btns { display: flex; gap: 8px; }
.demo-btns span { display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px; border-radius: 999px; font-size: 14px; color: var(--mu); box-shadow: inset 0 0 0 1px var(--line); }
.tabs.full > *, .ztabs > * { height: auto; min-height: 44px; padding: 8px 14px; }
@media (max-width: 479px) { .tabs.full > *, .ztabs > * { padding: 8px 8px; font-size: 14px; } }
.rank-c { padding: 16px 12px; max-width: 880px; }
.rank .who .nm { min-width: 0; }
@media (max-width: 479px) { .rank .who { flex-wrap: wrap; gap: 6px 10px; overflow-wrap: normal; } .rank .who .chip { margin-left: 0; } }
.statement { font-size: 22px; font-weight: 500; line-height: 1.35; }
.pgrid { align-items: start; }
.row-card { flex-direction: row; align-items: center; justify-content: space-between; gap: 24px; }
@media (max-width: 767px) { .row-card { flex-direction: column; align-items: stretch; } }
.sw.on { background: var(--mint-tint); box-shadow: inset 0 0 0 1px rgba(75, 227, 186, .5); }
.sw.on::after { left: 23px; background: var(--mint); }
.proto-states { display: flex; flex-direction: column; gap: 10px; }
.zhead .t { flex: 1 1 480px; }
.zhead .t p { max-width: none; }
.lad li span { min-height: 2.6em; }
.legal article p { max-width: 66ch; }
.big-n small { margin-left: 4px; }
/* map: card as a bottom sheet on phones, map pannable for finger-size targets */
@media (max-width: 1023px) {
  .mapstage { display: flex; flex-direction: column; gap: 16px; }
  .mapstage .panel { display: contents; }
  .mapstage .pick { position: sticky; bottom: 10px; z-index: 5; order: 2; box-shadow: 0 -12px 40px rgba(0, 0, 0, .5); }
  .mapstage .panel-notes { order: 3; display: flex; flex-direction: column; gap: 12px; }
}
@media (max-width: 767px) {
  .mapstage .mapfig { overflow-x: auto; overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch; }
  .mapstage .mapfig svg { width: 200%; max-width: none; }
  .pick { padding: 18px 20px; gap: 12px; }
  .pick h2 { font-size: 20px; }
  .pick .stats { padding: 10px 0; }
  .pick .stats b { font-size: 28px; }
  .pick .reg { display: none; }
  .pick .btn { min-height: 48px; }
}
.panel-notes { display: flex; flex-direction: column; gap: 12px; }
/* footer languages: codes on phones, one line */
.ft-langs .s { display: none; }
@media (max-width: 767px) { .ft-langs { flex-wrap: nowrap; gap: 2px; } .ft-langs .l { display: none; } .ft-langs .s { display: inline; } .ft-langs a { padding: 0 12px; letter-spacing: .04em; } }
@media (max-width: 359px) { .join .h1 { font-size: 24px; } .join { padding: 24px 18px; } }
.sign .chip { align-self: flex-start; }
@media (max-width: 479px) { .rank .who .avatar { display: none; } }
/* map bottom sheet on phones: one compact row (state + name | arrow) */
@media (max-width: 767px) {
  .mapstage .pick { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 4px 12px; padding: 14px 14px 14px 18px; border-radius: 22px; }
  .mapstage .pick > .stack-s { gap: 6px; }
  .mapstage .pick .stats { display: none; }
  .mapstage .pick .st.pill { min-height: 26px; padding: 0 10px 0 8px; font-size: 13px; }
  .mapstage .pick h2 { font-size: 18px; }
  .mapstage .pick .btn { width: auto; min-height: 44px; padding: 0 16px; font-size: 15px; }
}
/* icon-only round button on phones: the name comes from aria-label, the text span is not rendered (nothing clipped) */
@media (max-width: 767px) { .mapstage .pick .btn { width: 52px; height: 52px; padding: 0; border-radius: 50%; } .mapstage .pick .btn .lbl { display: none; } .mapstage .pick .btn .ico { width: 22px; height: 22px; } }
@media (max-width: 1023px) { .mapstage .pick { width: 100%; align-self: stretch; } }
@media (max-width: 479px) {
  .vlist li { grid-template-columns: 1fr; gap: 12px; }
  .vlist li > .n { width: 32px; height: 32px; font-size: 14px; }
  .vlist li > .vstate { grid-column: 1; }
}

/* ---------- LEGAL: headings, table of contents, collapsible lists (tails) ---------- */
.proto.draft { align-self: flex-start; white-space: normal; height: auto; min-height: 26px; padding-block: 4px; font-size: 13px; line-height: 1.35; }
.fold > summary { list-style: none; cursor: pointer; }
.fold > summary::-webkit-details-marker { display: none; }
.legal nav .fold > summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 56px; padding: 8px 18px; border-radius: 18px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.legal nav .fold > summary .k { font-size: 13px; color: var(--mu); display: block; }
.legal nav .fold > summary b { display: block; font-size: 15px; font-weight: 600; color: var(--ink); line-height: 1.3; }
.legal nav .fold > summary::after, .toc > summary::after { content: ''; flex: none; width: 10px; height: 10px; margin-left: auto; border-right: 2px solid var(--mu); border-bottom: 2px solid var(--mu); transform: rotate(45deg) translate(-2px, -2px); transition: transform .2s var(--ease); }
.fold[open] > summary::after { transform: rotate(225deg) translate(-2px, -2px); }
.legal nav .fold[open] > summary { margin-bottom: 12px; }
.legal nav .fold > summary .k + b { margin-top: 2px; }
.legal nav .fold > summary > span { display: contents; }
.toc { border-radius: 22px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.toc > summary { display: flex; align-items: center; min-height: 56px; padding: 8px 20px; font-size: 16px; font-weight: 600; color: var(--ink); }
.toc > summary .k { font-size: 16px; color: var(--ink); }
.toc ol { list-style: none; counter-reset: t; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 24px; padding: 0 20px 14px; }
.toc li { counter-increment: t; }
.toc li a { display: flex; gap: 10px; align-items: baseline; min-height: 44px; padding: 10px 0; font-size: 15px; line-height: 1.35; color: var(--ink-2); border-top: 1px solid var(--line-soft); }
.toc li a::before { content: counter(t); flex: none; min-width: 1.4em; color: var(--mint); font-variant-numeric: tabular-nums; }
.toc li a:hover { color: var(--ink); }
.legal article .doc.numbered { counter-reset: s; }
.legal article .doc.numbered section[id] { counter-increment: s; }
.legal article .doc.numbered section[id] > h2::before { content: counter(s) '. '; color: var(--mint); font-variant-numeric: tabular-nums; }
.legal article h2.h3 { text-wrap: balance; }
.legal article h3.h4 { font-family: var(--text); font-weight: 700; font-size: 17px; line-height: 1.35; color: var(--ink); margin-top: 10px; }
.legal article p { font-size: 17px; line-height: 1.65; max-width: 62ch; text-wrap: pretty; }
.legal article .restable { max-width: 62ch; margin-top: 4px; }
@media (min-width: 1024px) {
  .legal nav .fold > summary { min-height: 0; padding: 0; border-radius: 0; background: none; box-shadow: none; cursor: default; pointer-events: none; margin-bottom: 12px; }
  .legal nav .fold > summary b, .legal nav .fold > summary::after { display: none; }
  .legal nav .fold[open] > summary { margin-bottom: 12px; }
  .legal nav .fold > summary .k { font-size: 14px; }
}
@media (max-width: 1023px) {
  .legal nav .fold ul { padding-bottom: 4px; }
}
@media (max-width: 767px) {
  .toc ol { grid-template-columns: 1fr; }
  .legal article p { font-size: 16px; }
}

/* Comarca «Abriéndose»: a bar without numbers (the opening threshold is never shown on public pages) */
.note:has(.openbar) { flex-wrap: wrap; }
.note .openbar { flex: 1 0 100%; display: block; height: 6px; margin-top: 4px; border-radius: 999px; background: var(--surface-3); overflow: hidden; }
.note .openbar i { display: block; height: 100%; border-radius: 999px; background: var(--mango); }

/* ---------- v4: photos, portraits, results card, local ad slot, level colours ---------- */
.step-ph figcaption { margin-top: 8px; font-size: 13px; line-height: 1.4; color: var(--mu); }
/* «Así funciona»: a small landscape in each step */
.step-ph img { width: 100%; aspect-ratio: 3 / 2; height: auto; object-fit: cover; border-radius: var(--r-in); border: 1px solid var(--line); }
.step-ph { margin-bottom: 6px; }
@media (max-width: 1023px) {
  .step { display: grid; grid-template-columns: 64px minmax(0, 1fr); column-gap: 24px; row-gap: 14px; }
  .step-ph { grid-column: 1 / -1; margin-bottom: 0; }
  .step-ph img { aspect-ratio: 16 / 9; }
}
@media (max-width: 767px) { .step { grid-template-columns: 48px minmax(0, 1fr); column-gap: 16px; } }
.lead.desc { font-size: 19px; line-height: 1.55; max-width: 52ch; }
/* AI note under portraits */
.fine.ai { margin-top: 16px; }
/* Results card, newspaper style in the card language */
.news { display: flex; flex-direction: column; gap: 14px; max-width: 760px; margin-bottom: var(--gut); }
.news-k { font-size: 14px; font-weight: 500; color: var(--mint); }
.news-h { font-family: var(--display); font-weight: 800; font-size: 30px; line-height: 1.15; letter-spacing: -.02em; text-wrap: balance; }
:lang(ru) .news-h, :lang(uk) .news-h { font-family: var(--text); font-weight: 700; letter-spacing: -.02em; }
.news-t { margin-top: 4px; }
.news-t td { padding-block: 12px; }
.news-t .who { display: flex; align-items: center; gap: 12px; font-weight: 700; min-width: 0; }
.news-t .who.anon { font-weight: 400; color: var(--mu); }
.news-t tr.w1 td { background: var(--amber-tint); border-top-color: transparent; }
.news-t tr.w1 td:first-child { border-radius: 14px 0 0 14px; color: var(--mango); }
.news-t tr.w1 td:last-child { border-radius: 0 14px 14px 0; color: var(--mango); }
.news-t tr.w1 + tr td { border-top-color: transparent; }
.news-f { display: flex; align-items: center; justify-content: space-between; gap: 16px 24px; flex-wrap: wrap; padding-top: 4px; }
.news-f .link { min-height: 32px; }
.tohead ~ .sec .news { margin: var(--gut) 0 0; }
@media (max-width: 767px) {
  .news-h { font-size: 24px; }
  .news-t th, .news-t td { padding-inline: 8px; }
  .news-t .hide-s { display: none; }
  .news-t .who { gap: 10px; font-size: 15px; }
}
@media (max-width: 359px) { .news-t .avatar { display: none; } }
/* Free sponsor slot: a space for a local ad, mirroring the logo box of the filled slots */
.slot.free .adspace { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 10px; min-height: 96px; padding: 18px 20px; border-radius: var(--r-in); background: linear-gradient(180deg, var(--tint-mango), rgba(58, 50, 40, .35)); box-shadow: inset 0 0 0 1px rgba(255, 166, 43, .3); }
.slot.free .adspace p { font-size: 16px; line-height: 1.4; color: var(--ink); }
.slot.free .ad-k { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 12px; color: var(--mango); background: rgba(255, 166, 43, .14); }
.slot.free .ad-k .ico { width: 18px; height: 18px; }
/* Level colours (app level tiers) */
.lvl { white-space: nowrap; margin-left: 4px; }
.lvl::before { content: ''; display: inline-block; width: 8px; height: 8px; margin-right: 6px; border-radius: 50%; vertical-align: .08em; background: var(--lv); }
.lv-mint { --lv: var(--lvl-mint); } .lv-lime { --lv: var(--lvl-lime); } .lv-amber { --lv: var(--lvl-amber); }
/* Photo credits list */
.credlist { display: flex; flex-direction: column; }
.credlist li { display: flex; flex-direction: column; gap: 2px; padding: 14px 0; border-top: 1px solid var(--line-soft); font-size: 15px; color: var(--ink-2); }
.credlist li:first-child { border-top: 0; }
.credlist b { color: var(--ink); }
.credlist span { overflow-wrap: anywhere; }
.left.x .ico { display: inline-block; width: 16px; height: 16px; vertical-align: -3px; margin-right: 6px; }

/* ---------- fix5 (13.11): hero photo cards (home + comarca) ---------- */
/* One photo card: rounded like the cards, image always object-fit: cover (never stretched), credit as a small glass chip on the photo. */
img { height: auto; }
.ph { position: relative; margin: 0; border-radius: 32px; overflow: hidden; background: var(--surface); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08), 0 40px 80px -20px rgba(0, 0, 0, .55); isolation: isolate; }
.ph > img { width: 100%; height: 100%; object-fit: cover; }
.ph::after { content: ''; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08); pointer-events: none; }
.phcredit { position: absolute; left: 12px; top: 12px; z-index: 2; max-width: calc(100% - 24px); padding: 5px 10px; border-radius: 10px; font-size: 13px; line-height: 1.35; font-weight: 500; color: rgba(245, 245, 247, .92); background: rgba(10, 17, 36, .56); -webkit-backdrop-filter: blur(12px) saturate(140%); backdrop-filter: blur(12px) saturate(140%); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12); text-wrap: balance; }
.lead.desc { font-size: 19px; line-height: 1.55; max-width: 52ch; }
@media (max-width: 767px) { .lead.desc { font-size: 17px; } .ph { border-radius: 24px; } }

/* Home hero: copy left, Calella card right; the comarca facts sit on the photo in a glass panel. */
.hero { padding: 56px 0 0; }
.hero-grid { align-items: center; }
.heroph { display: block; position: relative; border-radius: 32px; transition: transform .3s var(--ease); }
.heroph:hover { transform: translateY(-2px); }
.heroph .ph { aspect-ratio: 5 / 6; max-height: 620px; width: 100%; }
.heroph .ph > img { object-position: 50% 42%; }
/* Two columns from 900 px: the headline scales with the column so «Ваше сообщество.» / «La teva comunitat.» stay on one line */
/* The headline always keeps its three lines: the size follows the copy column (container units), per language, up to the display size. */
.hero-copy { container-type: inline-size; }
.hero-copy .display { --k: 12.6cqi; --cap: 76px; font-size: min(var(--cap), var(--k)); }
:lang(en) .hero-copy .display, :lang(ru) .hero-copy .display { --k: 10.9cqi; }
:lang(ca) .hero-copy .display { --k: 10.2cqi; }
@media (max-width: 1099px) { .hero-copy .display { --cap: 60px; } }
@media (max-width: 767px) { .hero-copy .display { --cap: 42px; } }
@media (max-width: 359px) { .hero-copy .display { --cap: 36px; } }
@media (min-width: 940px) and (max-width: 1199px) { .hero-copy { gap: 24px; } .hero-copy .lead { font-size: 19px; } .hero .btn { padding-inline: 20px; font-size: 16px; } .heroph .ph { aspect-ratio: 4 / 3; } }
.hero-card { position: absolute; left: 14px; right: 14px; bottom: 14px; z-index: 2; padding: 18px 20px 16px; border-radius: 22px; background: rgba(10, 17, 36, .72); -webkit-backdrop-filter: blur(20px) saturate(160%); backdrop-filter: blur(20px) saturate(160%); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12), 0 16px 40px rgba(0, 0, 0, .35); }
.hc-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.hc-name { min-width: 0; }
.hero-card .show-name { font-size: 24px; }
.hero-card .show-reg { margin-top: 4px; font-size: 14px; color: var(--ink-2); }
.hero-card .show-stats { margin: 14px 0 0; padding: 14px 0 0; border-block: 0; border-top: 1px solid rgba(255, 255, 255, .10); }
.hero-card .show-stats b { font-size: 28px; }
.hero-card .show-stats .up { color: var(--mint); }
.hero-card .show-stats span { margin-top: 6px; color: var(--ink-2); }
@media (max-width: 939px) {
  .hero-side { margin-top: 40px; }
  .heroph .ph { aspect-ratio: 16 / 9; max-height: 480px; }
}
@media (max-width: 767px) {
  .hero { padding-top: 32px; }
  .hero-side { margin-top: 32px; }
  .heroph .ph { aspect-ratio: 4 / 3; }
}
/* Phones and narrow two-column windows: the panel goes under the photo (same card), so the photo stays a photo. */
@media (max-width: 559px), (min-width: 940px) and (max-width: 1199px) {
  .heroph { overflow: hidden; border-radius: 24px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
  .heroph .ph { border-radius: 24px 24px 0 0; box-shadow: none; }
  .hero-card { position: static; border-radius: 0; background: none; -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: none; padding: 18px 20px 20px; }
}
@media (max-width: 359px) { .hc-top { flex-direction: column; gap: 10px; } .hero-card .show-stats b { font-size: 24px; } }

/* Comarca hero: the same photo card, square on desktop, wide below 1024 px; the outline is a small glass mark. */
.cophoto { aspect-ratio: 1 / 1; max-height: 560px; width: 100%; }
.cophoto .mini { position: absolute; right: 12px; top: 12px; z-index: 2; width: 60px; height: 60px; padding: 8px; border-radius: 16px; background: rgba(10, 17, 36, .56); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14); }
.cophoto .mini svg { width: 100%; height: 100%; }
.cophoto .phcredit { top: auto; bottom: 12px; max-width: calc(100% - 24px); }
@media (max-width: 1023px) { .cohead .v { max-width: none; margin-top: 16px; } .cophoto { aspect-ratio: 16 / 10; max-height: 480px; } }
@media (max-width: 767px) { .cophoto { aspect-ratio: 4 / 3; } }
.hero-card .show-reg { white-space: nowrap; overflow: hidden; text-overflow: clip; }

/* ---------- fix5: QA v4 rounds 1–4 ---------- */
.nw { white-space: nowrap; }
/* store buttons never wider than their card */
.store { max-width: 100%; min-width: 0; }
.store span { min-width: 0; }
@media (max-width: 767px) { .final .stores { width: 100%; } .final .store, .card .store { width: 100%; } }
@media (max-width: 359px) { .store small { white-space: normal; } }
/* header at 320: burger inside the capsule */
@media (max-width: 359px) { .hx-in { gap: 6px; padding-right: 6px; } .hx-store { gap: 6px; padding: 0 10px; font-size: 13px; } .hx-store .ico { width: 15px; height: 15px; } .hx-burger { width: 40px; } .hx-burger span { left: 11px; } }
/* comarca numbers at 320 */
@media (max-width: 359px) { .metric b { font-size: 30px; } .metric b.word { font-size: 24px; line-height: 1.25; } .metric { padding: 18px 16px; } }
/* week labels under the activity chart */
.chart-x { display: flex; justify-content: space-between; margin-top: 12px; font-size: 13px; color: var(--mu); }
/* tournament cards: seats always one row, so the divider and «Quedan N plazas» line up across cards */
.tcard .seats { display: flex; gap: 4px; }
.tcard .seats i { flex: 1 1 0; max-width: 10px; min-width: 0; height: auto; aspect-ratio: 1; }
@media (max-width: 359px) { .tcard { padding: 22px 18px; } .tcard .top { flex-direction: column; gap: 14px; } .tcard .date { flex-direction: row; gap: 8px; width: auto; height: 44px; padding: 0 14px; align-self: flex-start; } .tcard .date b { font-size: 22px; } .tcard .date span { margin-top: 0; } }
/* captain card fills the row next to the organisers; captain face smaller (faces only small) */
.builders .capcard { align-self: stretch; }
.capcard .avatar.lg, .pod .avatar.lg { width: 56px; height: 56px; font-size: 20px; }
.avatar.anon .ico { width: 24px; height: 24px; color: var(--mu); }
.avatar.anon:not(.lg) .ico { display: none; }
/* last section of a page: the footer margin is the only gap (no 250 px band) */
main > .sec:last-child { padding-bottom: 0; }
.final { padding: 72px 48px; }
@media (max-width: 767px) { .final { padding: 48px 20px; } }
@media (max-width: 359px) { .final { padding: 40px 16px; } .final .btn, .cta-band .btn { padding-inline: 16px; font-size: 16px; } .btn-row .btn .ico { display: none; } }
.final .more { width: 100%; display: flex; justify-content: center; }
@media (max-width: 767px) { .final .more .btn { width: 100%; } }
/* organizer facts: numbers on one line across the two cards */
.format .n2 .card { display: grid; grid-template-rows: 1fr auto auto; }
.format .n2 small { align-self: end; }
/* tournament page: results card as wide as the podium */
.tohead ~ .sec .news { max-width: none; }
/* mobile menu: equal rhythm for one- and two-line items */
.hx-big a { min-height: 56px; padding-block: 6px; text-wrap: balance; }
/* footer slogan: one sentence per line */
.ft-brand p span { display: block; }
/* ranking: header of the last column never runs out of the card */
.rank th.c { white-space: nowrap; }
@media (max-width: 767px) { .rank td.c, .rank th.c { width: 112px; } }
.rank-c { max-width: none; }
/* panel */
.pgrid { align-items: stretch; }
.pgrid .msg { width: 100%; }
:lang(es) .racebox .place, :lang(ca) .racebox .place { font-family: var(--text); font-weight: 800; }
@media (max-width: 767px) { .tlist li { grid-template-columns: 64px minmax(0, 1fr) auto; } .tlist li > :last-child { grid-column: auto; justify-self: end; } }
/* map on phones: the whole of Spain, no sideways panning */
@media (max-width: 767px) { .mapstage .mapfig { overflow: visible; } .mapstage .mapfig svg { width: 100%; } }
@media (max-width: 359px) { .cohead .t h1 { font-size: 28px; } }
/* «Así funciona»: the same photo card as the heroes, credit as a chip on the photo */
.step-ph.ph { border-radius: var(--r-in); box-shadow: none; }
.step-ph.ph img { border: 0; border-radius: 0; }
.step-ph .phcredit { top: auto; bottom: 10px; left: 10px; max-width: calc(100% - 20px); }
/* seats: the free places are the bright ones, so the dots say the same as «Quedan N plazas» and the big number */
.seats i { background: var(--surface-3); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06); }
.seats i.f { background: var(--mint); box-shadow: none; }

/* ---------- finish pass 13.11: dot lists, home feed, top-10 ---------- */
/* «a · b»: the dot belongs to the part on its right and sits in its left padding; the row is shifted left by one dot and
   clipped, so the first part of every line loses its dot — a «·» never starts or ends a line. */
.dl { display: block; overflow: hidden; }
.dl > span { display: flex; flex-wrap: wrap; margin-left: -1.2em; }
.dl > span > span { position: relative; min-width: 0; padding-left: 1.2em; }
.dl > span > span::before { content: '·'; position: absolute; left: 0; width: 1.2em; text-align: center; }
.hero-card .show-reg { white-space: normal; overflow: visible; }
.hero-card .show-reg .dl > span > span { white-space: nowrap; }
/* home feed: the comarca of each tournament above its title */
.tcard .where { margin-bottom: 6px; font-size: 13px; font-weight: 600; line-height: 1.3; letter-spacing: .01em; color: var(--mint); }
.feedsec .sec-head.row .link { flex: none; }
/* top-10 by level: one calm list card; two columns of five from 1024 px */
.top10 { padding: 8px 28px; }
.top10 ol { display: grid; grid-template-columns: minmax(0, 1fr); column-gap: 48px; }
.top10 li { display: flex; align-items: center; gap: 14px; min-height: 60px; padding: 10px 0; border-top: 1px solid var(--line-soft); }
.top10 li:first-child { border-top: 0; }
.top10 .pos { flex: none; width: 24px; font-size: 17px; color: var(--mu); text-align: right; }
.top10 li:nth-child(-n+3) .pos { color: var(--ink); }
.top10 .nm { flex: 1; min-width: 0; font-weight: 600; line-height: 1.3; }
.lvchip { flex: none; display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-width: 76px; height: 30px; padding: 0 12px; border-radius: 999px; font-size: 15px; font-weight: 600; color: var(--ink-2); background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); }
.lvchip::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--lv); }
.top10-note { margin-top: 16px; }
@media (min-width: 1024px) {
  .top10 { padding: 8px 36px; }
  .top10 ol { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(var(--rows), auto); grid-auto-flow: column; }
  .top10 li.c2 { border-top: 0; }
}
@media (max-width: 767px) { .top10 { padding: 4px 18px; } .top10 li { gap: 12px; min-height: 56px; } }
@media (max-width: 359px) { .top10 { padding: 4px 14px; } .top10 li { gap: 10px; } .top10 .pos { width: 18px; font-size: 15px; } .lvchip { min-width: 68px; padding: 0 10px; font-size: 14px; } }
@media (max-width: 767px) { .tours.feed > :nth-child(n+4) { display: none; } } /* phones: three tournaments, the map link above leads to the rest */
/* organizers, money: the split note is a wide caption card with an «i» under the three incomes (QA qa4-2 #7) */
.splitnote { display: flex; gap: 16px; align-items: flex-start; margin-top: var(--gut); }
.splitnote > .ico { flex: none; width: 22px; height: 22px; margin-top: 3px; color: var(--mint); }
.moneynotes.one { grid-template-columns: minmax(0, 1fr); }
/* cabinet: the number lives in its sentence, set large (QA qa4-4 #9) */
.lead-n { font-size: 17px; line-height: 1.5; }
.lead-n b.num { display: inline-block; font-size: 30px; line-height: 1.1; font-weight: 800; color: var(--ink); vertical-align: -2px; }
/* member header: «Cambiar de comarca en la aplicación» moves as a whole (QA qa4-4 #16) */
.link-inline.nobreak { display: inline-block; }
/* podium with a tie for first: equal steps, in the order of the data */
@media (min-width: 768px) { .podium.tie { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* ---------- QA live 13.11 (P2/P3) ---------- */
/* photo credits never under 12 px */
.phcredit { font-size: 13px; }
/* tap targets ≥ 44 px; the look stays (the hit area grows, not the pill) */
.hx-nav a, .hx-acct > a, .hx-lang summary, .hx-login { position: relative; }
.hx-nav a::after, .hx-acct > a::after, .hx-lang summary::after, .hx-login::after { content: ''; position: absolute; inset: -2px 0; }
.hx-seg a { height: 44px; }
.hx-pop a { min-height: 44px; }
@media (max-width: 359px) { .hx-burger { width: 44px; } .hx-burger span { left: 13px; } }
.card.club .link { min-height: 44px; }
.card.club .link + .link { margin-top: -6px; }
.eyebrow a { display: inline-flex; align-items: center; min-height: 44px; margin-block: -12px; }
/* tournament cards: titles in balanced lines, format and level never split */
.tcard h3 { text-wrap: balance; }
.tcard .meta .fl { white-space: nowrap; }
/* map page on phones: air between the map and the picked comarca */
@media (max-width: 1023px) { .mapstage .panel { margin-top: 8px; } }
/* root 404: the five languages without JS */
.e404-langs { display: flex; flex-wrap: wrap; gap: 4px 8px; margin-top: 32px; }
.e404-langs a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: 999px; font-size: 15px; color: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line); }
.e404-langs a:hover { color: var(--ink); }
/* map regions reachable from the keyboard */
.map-svg path[data-s]:focus-visible { outline: none; stroke: var(--mint); stroke-width: 3; }

/* ---------- home hero 13.11: the map of Spain + search (Murat: the home is for all Spain, not one comarca) ---------- */
.hero-map .hero-grid { row-gap: 32px; }
.hero-map .hero-copy { grid-column: 1 / span 6; grid-row: 1; align-self: end; gap: 32px; }
.hero-map .hero-lead { grid-column: 1 / span 6; grid-row: 2; align-self: start; display: flex; flex-direction: column; gap: 28px; }
.hero-map .hero-side { grid-column: 7 / span 6; grid-row: 1 / span 2; align-self: center; }
.hsearch { display: flex; flex-direction: column; gap: 12px; max-width: 560px; }
.hs-label { font-size: 19px; line-height: 1.35; font-weight: 600; color: var(--ink); text-wrap: balance; }
.hsearch .search input { height: 64px; font-size: 18px; background: var(--surface); box-shadow: 0 18px 40px -18px rgba(0, 0, 0, .6); }
.hsearch .search > .ico { top: 22px; }
.hsearch .search input::-webkit-search-cancel-button { -webkit-appearance: none; }
.hero-map .hero-lead .lead { max-width: 52ch; }
.results a { display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 12px; min-height: 56px; padding: 8px 14px; border-radius: 14px; color: var(--ink); text-decoration: none; }
.results a:hover, .results a[aria-selected="true"] { background: rgba(255, 255, 255, .06); }
.results a span:first-child { display: flex; flex-direction: column; min-width: 0; }
.results a b { font-weight: 700; font-size: 16px; overflow-wrap: anywhere; }
.results a small { font-size: 13px; color: var(--mu); overflow-wrap: anywhere; }
.results a .st { flex: none; }
.hmap { padding: 20px; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.hmap > img, .hmap > svg { display: block; width: 100%; height: auto; aspect-ratio: 1065.3 / 956.1; }
.hmap.live path[data-s] { cursor: pointer; }
.hmap path[data-s]:focus { outline: none; }
.hmap path[data-s]:focus-visible { stroke: var(--ink); stroke-width: 2; }
.map-svg path.hit { fill: var(--mint-light); fill-opacity: 1; }
.hm-tip { position: absolute; left: 0; top: 0; z-index: 3; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; max-width: min(280px, calc(100% - 16px)); padding: 12px 16px; border-radius: 18px; background: rgba(10, 17, 36, .86); -webkit-backdrop-filter: blur(16px) saturate(150%); backdrop-filter: blur(16px) saturate(150%); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12), 0 14px 32px rgba(0, 0, 0, .45); pointer-events: none; }
.hm-tip[hidden] { display: none; }
.hm-tip .hm-name { font-size: 18px; line-height: 1.25; font-weight: 700; overflow-wrap: anywhere; }
.hm-tip .hm-go { display: none; min-height: 32px; margin-top: 2px; font-size: 15px; }
@media (hover: none) { .hm-tip { pointer-events: auto; } .hm-tip .hm-go { display: inline-flex; } }
.hmap .can-t { font-size: 24px; }
.hm-key { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 20px; margin-top: 16px; }
@media (max-width: 939px) {
  .hero-map .hero-copy, .hero-map .hero-side, .hero-map .hero-lead { grid-column: 1 / -1; }
  .hero-map .hero-side { grid-row: 2; margin-top: 0; max-width: 620px; justify-self: center; width: 100%; }
  .hero-map .hero-lead { grid-row: 3; }
  .hsearch { max-width: none; }
}
@media (max-width: 767px) {
  .hero-map .hero-copy { gap: 24px; }
  .hs-label { font-size: 17px; }
  .hsearch .search input { height: 60px; font-size: 17px; }
  .hsearch .search > .ico { top: 20px; }
  .hmap { padding: 10px; }
  .hm-key { display: grid; grid-template-columns: repeat(2, max-content); justify-content: start; gap: 10px 28px; }
  .hmap .can-t { font-size: 34px; }
}
@media (max-width: 359px) { .hm-key { column-gap: 16px; } .hm-key .st { font-size: 14px; } }
.cocards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gut); }
@media (max-width: 1023px) { .cocards { grid-template-columns: 1fr 1fr; } }
@media (max-width: 639px) { .cocards { grid-template-columns: 1fr; } }

/* ---------- sponsors 13.11: the fictional sponsor Fisio Garbí, shown where players see it ---------- */
.exlabel { display: inline-flex; align-items: center; gap: 6px; align-self: flex-start; min-height: 26px; padding: 3px 10px; border-radius: 999px; font-size: 13px; font-weight: 500; line-height: 1.3; color: var(--mango); background: rgba(255, 166, 43, .10); box-shadow: inset 0 0 0 1px rgba(255, 166, 43, .30); }
.exlabel .ico { width: 14px; height: 14px; flex: none; }
.slot .exlabel { margin-bottom: -4px; }
.sx-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: auto 1fr auto; gap: var(--gut); }
.sx-ex { display: grid; grid-row: span 3; grid-template-rows: subgrid; row-gap: 20px; margin: 0; padding: 24px; }
.sx-ex .exlabel { justify-self: start; }
.sx-ex figcaption { display: flex; flex-direction: column; gap: 8px; }
.sx-ex figcaption p { font-size: 16px; line-height: 1.5; color: var(--ink-2); }
.sx-frame { flex: 1; display: flex; flex-direction: column; gap: 12px; min-height: 300px; padding: 16px; border-radius: 22px; background: var(--sunk); box-shadow: inset 0 0 0 1px var(--line); }
.sx-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-bottom: 12px; border-bottom: 1px solid var(--line-soft); }
.sx-bar b { font-size: 16px; font-weight: 700; }
.sx-bar small { font-size: 13px; color: var(--mu); }
.sx-feed { display: flex; flex-direction: column; gap: 12px; }
.sx-msg { display: flex; gap: 10px; align-items: flex-start; }
.sx-msg > div { padding: 8px 12px; border-radius: 4px 16px 16px 16px; background: var(--surface-2); }
.sx-msg b { display: block; font-size: 13px; color: var(--mint); }
.sx-msg p { font-size: 15px; line-height: 1.4; }
.sx-av { display: grid; place-items: center; flex: none; width: 32px; height: 32px; border-radius: 50%; font-size: 13px; font-weight: 700; color: var(--ink); background: var(--surface-3); }
.sx-logo { display: grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 13px; font-size: 16px; font-weight: 800; letter-spacing: -.02em; color: #0A1124; background: linear-gradient(145deg, #9CF0D6 0%, #4BE3BA 55%, #2BB894 100%); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35); }
.sx-logo.sm { width: 34px; height: 34px; border-radius: 10px; font-size: 13px; }
.sx-who { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.sx-who b { font-size: 16px; font-weight: 700; }
.sx-who small { font-size: 13px; line-height: 1.35; color: var(--mu); }
.sx-card { display: flex; align-items: center; gap: 12px; margin-top: auto; padding: 12px; border-radius: 16px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.sx-sub { font-size: 14px; font-weight: 600; color: var(--ink-2); }
.sx-slots { display: flex; flex-direction: column; gap: 10px; }
.sx-slot { display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 10px 12px; border-radius: 16px; font-size: 14px; color: var(--mu); box-shadow: inset 0 0 0 1px var(--line); border: 1px dashed transparent; }
.sx-slot:not(.on) { justify-content: center; box-shadow: none; border-color: var(--line); }
.sx-slot.on { color: var(--ink); background: var(--surface); }
.sx-slot.on small { color: var(--mu); }
.sx-poster { position: relative; overflow: hidden; gap: 8px; padding: 22px 20px 16px; background: radial-gradient(120% 70% at 85% 0%, rgba(75, 227, 186, .22), transparent 60%), linear-gradient(180deg, var(--night), var(--sunk)); }
.sx-kick { font-size: 13px; font-weight: 600; letter-spacing: .02em; color: var(--mint); }
.sx-title { font-family: var(--display); font-size: 28px; line-height: 1.1; font-weight: 800; letter-spacing: -.01em; text-wrap: balance; }
.sx-when { font-size: 15px; color: var(--ink-2); }
.sx-where { display: flex; align-items: center; gap: 6px; font-size: 15px; color: var(--ink-2); }
.sx-where .ico { width: 16px; height: 16px; color: var(--mu); }
.sx-with { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 12px; margin-top: auto; padding-top: 14px; border-top: 1px solid rgba(255, 255, 255, .10); }
.sx-with small { font-size: 13px; color: var(--mu); }
.sx-with > span { display: inline-flex; align-items: center; gap: 8px; }
.sx-with b { font-size: 15px; }
.sx-pack { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 48px; margin-top: var(--gut); padding: 32px; }
.sx-pack ul { display: flex; flex-direction: column; gap: 14px; margin-top: 16px; }
.sx-pack li { display: flex; gap: 12px; align-items: flex-start; font-size: 17px; line-height: 1.45; }
.sx-pack li .ico { flex: none; width: 22px; height: 22px; margin-top: 1px; }
.sx-pack li.y .ico { color: var(--mint); }
.sx-pack li.n .ico { color: var(--coral); }
.sx-pay { grid-column: 1 / -1; max-width: none; }
@media (max-width: 1099px) {
  .sx-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sx-grid > :last-child { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: auto 1fr; column-gap: var(--gut); grid-row: auto; }
  .sx-grid > :last-child .exlabel { grid-column: 1; grid-row: 1; }
  .sx-grid > :last-child .sx-frame { grid-column: 1; grid-row: 2; }
  .sx-grid > :last-child figcaption { grid-column: 2; grid-row: 1 / -1; align-self: center; margin-top: 0; }
}
@media (max-width: 767px) { .sx-grid { grid-template-columns: minmax(0, 1fr); } .sx-grid > :last-child { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto auto; } .sx-grid > :last-child .sx-frame, .sx-grid > :last-child figcaption { grid-column: 1; grid-row: auto; } .sx-pack { grid-template-columns: 1fr; padding: 20px; } .sx-pay { padding: 14px 16px; gap: 10px; font-size: 15px; } .sx-frame { min-height: 0; flex: none; } .sx-poster { min-height: 280px; } .sx-ex { padding: 20px; } }
:lang(ru) .sx-title, :lang(uk) .sx-title { font-family: var(--text); font-weight: 700; letter-spacing: -.02em; }
.sx-ex figcaption p, .sx-pack li span, .sx-pay span, .sx-msg p, .sx-who small { text-wrap: pretty; }

/* Приёмка 17.11: заголовки без одиноких слов. */
h1, h2, h3 { text-wrap: balance; }
