/* Soka prototype v3: spacious and visual, at a professional type scale. Numbers always, colored by benchmark. */
:root {
  --bg: #0B1424; --panel: #131F33; --panel2: #1A2840; --border: #24324A; --text: #F4F6FA; --muted: #9AA6B8;
  --lime: #BEF264; --cyan: #22D3EE; --magenta: #D946EF; --ink: #0B1424;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --gap: 48px; --pad: 24px; --radius: 16px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--text); font-family: var(--sans); font-size: 14px; line-height: 1.5; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
.tab, .n { font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.lbl { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
:focus-visible { outline: 2px solid var(--lime); outline-offset: 2px; border-radius: 6px; }
svg.lucide { width: 18px; height: 18px; }

/* Frame: three places (Team, Matches, Players) */
.app { display: grid; grid-template-columns: 88px minmax(0, 1fr); min-height: 100vh; }
.rail { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 22px 0; border-right: 1px solid var(--border); }
.rail .logo { width: 36px; height: 36px; margin-bottom: 26px; }
.nav { display: flex; flex-direction: column; align-items: center; gap: 5px; width: 68px; padding: 11px 0; border-radius: 12px; color: var(--muted); font-size: 12px; font-weight: 600; }
.nav svg.lucide { width: 22px; height: 22px; }
.nav.on { color: var(--text); background: var(--panel); }
.nav.on svg.lucide { color: var(--lime); }
.main { min-width: 0; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 22px max(20px, env(safe-area-inset-right, 0px)) 110px max(20px, env(safe-area-inset-left, 0px)); }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 32px; position: relative; }
.clubbtn { display: inline-flex; align-items: center; gap: 10px; padding: 6px 12px 6px 6px; border-radius: 999px; background: var(--panel); white-space: nowrap; }
.crest { width: 30px; height: 30px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-weight: 800; font-size: 11px; color: var(--ink); flex: none; }
.me { width: 34px; height: 34px; border-radius: 50%; background: var(--panel2); display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 12px; }
.proto { width: 24px; height: 24px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; }
.proto::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: #FACC15; }
.protoback { position: fixed; left: 14px; bottom: 14px; z-index: 84; width: 30px; height: 30px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--panel2); box-shadow: inset 0 0 0 1px var(--border); }
.protoback::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: #FACC15; }
.menu { position: absolute; top: 48px; z-index: 30; background: var(--panel2); border: 1px solid var(--border); border-radius: 14px; padding: 8px; min-width: 240px; box-shadow: 0 18px 40px rgba(0,0,0,.45); }
.menu.left { left: 0; } .menu.right { right: 0; }
.menu a { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 8px; }
.menu a:hover { background: var(--panel); }
.menu hr { border: 0; border-top: 1px solid var(--border); margin: 6px 0; }
.menu svg.lucide { color: var(--muted); }
.bottombar { display: none; }
@media (max-width: 860px) {
  .app { grid-template-columns: minmax(0, 1fr); }
  .rail { display: none; }
  .bottombar { display: flex; justify-content: space-around; position: fixed; left: 0; right: 0; bottom: 0; z-index: 25; background: var(--panel);
    border-top: 1px solid var(--border); padding: 6px max(12px, env(safe-area-inset-left, 0px)) calc(6px + env(safe-area-inset-bottom, 0px)); }
  .bottombar .nav { width: 88px; padding: 7px 0; }
  :root { --gap: 36px; --pad: 18px; }
}
@media (max-width: 600px) { .clubbtn .team-name { display: none; } }

/* Type */
h1 { font-size: 28px; line-height: 1.2; margin: 0; font-weight: 700; letter-spacing: -.01em; }
h2 { font-size: 18px; line-height: 1.3; margin: 0; font-weight: 650; }
h3 { font-size: 15px; margin: 0; font-weight: 600; }
.section { margin-top: var(--gap); }
.section > header { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.card { background: var(--panel); border-radius: var(--radius); padding: var(--pad); min-width: 0; }
.grid { display: grid; gap: 16px; }
.cols2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }
.cols3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); align-items: start; }
.row { display: flex; align-items: center; gap: 10px; }
.between { justify-content: space-between; }
.wrapx { flex-wrap: wrap; }
.stack { display: flex; flex-direction: column; gap: 14px; }
.btn { display: inline-flex; align-items: center; gap: 8px; background: var(--lime); color: var(--ink); border-radius: 10px; padding: 9px 14px; font-weight: 700; font-size: 13px; min-height: 40px; }
.btn.ghost { background: var(--panel2); color: var(--text); }
.info { display: inline-flex; color: var(--muted); vertical-align: middle; cursor: help; }
.info svg.lucide { width: 15px; height: 15px; }

/* Numbers, colored by benchmark (red, orange, yellow, light green, dark green). Always dark text. */
.n { display: inline-flex; align-items: center; justify-content: center; min-width: 34px; height: 24px; padding: 0 8px; border-radius: 7px; font-size: 12px; font-weight: 750; color: var(--ink); white-space: nowrap; }
.n.lg { min-width: 48px; height: 32px; font-size: 15px; border-radius: 9px; }
.n.xl { min-width: 64px; height: 44px; font-size: 20px; border-radius: 12px; padding: 0 12px; }
.n.none { background: var(--panel2); color: var(--muted); }
.n.few { opacity: .6; }
.unit { font-size: 12px; color: var(--muted); margin-left: 6px; }
.skchip { display: inline-flex; align-items: center; gap: 8px; background: var(--panel2); padding: 5px 6px 5px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; }

/* Avatars */
.av { border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-weight: 800; color: var(--ink); flex: none; }

/* Clips */
.strip { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(180px, 1fr); gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 4px; }
.strip .clip { scroll-snap-align: start; }
.clip { position: relative; border-radius: 12px; overflow: hidden; aspect-ratio: 16/9; background: var(--panel2); display: block; }
.clip img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .2s; }
.clip:hover img { transform: scale(1.04); }
.clip .play { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.clip .play span { width: 34px; height: 34px; border-radius: 50%; background: rgba(11,20,36,.7); display: flex; align-items: center; justify-content: center; }
.clip .play svg.lucide { width: 15px; height: 15px; color: #fff; }
.clip .cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 16px 9px 7px; background: linear-gradient(transparent, rgba(11,20,36,.92)); font-size: 12px; font-weight: 600; display: flex; justify-content: space-between; gap: 6px; }
.clip .mark { position: absolute; top: 7px; left: 7px; width: 20px; height: 20px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 800; color: var(--ink); }

/* Skill tiles and sections */
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; }
.tileskill { background: var(--panel); border-radius: 14px; padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.tileskill:hover { background: var(--panel2); }
.tileskill .top { display: flex; align-items: center; justify-content: space-between; }
.ico { width: 38px; height: 38px; border-radius: 11px; display: inline-flex; align-items: center; justify-content: center; background: var(--panel2); flex: none; }
.skill { scroll-margin-top: 20px; }
.skill .head { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.skill .head .ico { width: 44px; height: 44px; border-radius: 12px; }
.metric { display: grid; grid-template-columns: minmax(120px, 1.1fr) minmax(110px, 2fr) 104px; gap: 14px; align-items: center; padding: 10px 0; }
.metric + .metric { border-top: 1px solid var(--border); }
.metric .name { font-weight: 500; }
.metric .track { position: relative; height: 8px; border-radius: 999px; background: var(--panel2); }
.metric .fill { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 999px; }
.metric .mid { position: absolute; left: 50%; top: -4px; bottom: -4px; width: 2px; background: rgba(244,246,250,.45); }
.metric .out { display: flex; align-items: center; justify-content: flex-end; }
.pitchwrap svg { width: 100%; height: auto; display: block; }
@media (max-width: 600px) {
  .metric { grid-template-columns: minmax(0, 1fr) auto; row-gap: 8px; }
  .metric .track { grid-column: 1 / -1; grid-row: 2; }
  .strip { grid-auto-columns: 72%; }
  .herobtns { flex-direction: row; flex-wrap: wrap; }
}

/* Squad table */
.sqwrap { overflow-x: auto; }
table.sq { border-collapse: separate; border-spacing: 0; width: 100%; table-layout: fixed; }
.sq th:first-child { width: 250px; }
.sq th { position: sticky; top: 0; background: var(--bg); text-align: center; padding: 8px 6px 12px; vertical-align: bottom; }
.sq th .ico { width: 34px; height: 34px; margin: 0 auto 6px; }
.sq th span { display: block; font-size: 12px; font-weight: 600; color: var(--muted); line-height: 1.2; }
.sq th:first-child, .sq td:first-child { position: sticky; left: 0; background: var(--bg); text-align: left; z-index: 2; }
.sq td { padding: 11px 6px; border-top: 1px solid var(--border); text-align: center; }
.sq tr.few td:not(:first-child) { opacity: .6; }
.pcard { display: none; }
.pgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 16px; margin-top: 16px; }
.pgrid > span { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 600; min-width: 0; }
.pgrid .nm { flex: 1; min-width: 0; line-height: 1.25; }
.pgrid svg.lucide { width: 16px; height: 16px; color: var(--muted); flex: none; }
.formwrap { max-width: 640px; margin: 0 auto; }
@media (max-width: 860px) { .sqwrap { display: none; } .pcard { display: block; } }

/* Charts, tooltips, clip previews */
svg.chart { width: 100%; height: auto; display: block; }
#tip { position: fixed; z-index: 60; max-width: 260px; background: var(--text); color: var(--ink); border-radius: 8px; padding: 7px 10px; font-size: 12px; pointer-events: none; }
[data-pl] { cursor: pointer; }
#peek { position: fixed; z-index: 61; width: 232px; border-radius: 12px; overflow: hidden; background: var(--panel2); box-shadow: 0 16px 36px rgba(0,0,0,.5); cursor: pointer; }
#peek:hover { outline: 2px solid var(--lime); }
#peek .pp span { transition: transform .15s; }
#peek:hover .pp span { transform: scale(1.1); }
#peek img { width: 100%; aspect-ratio: 16/9; object-fit: cover; display: block; }
#peek .pp { position: absolute; top: 0; left: 0; right: 0; aspect-ratio: 16/9; display: flex; align-items: center; justify-content: center; }
#peek .pp span { width: 38px; height: 38px; border-radius: 50%; background: rgba(190,242,100,.95); display: flex; align-items: center; justify-content: center; }
#peek .pp svg { width: 16px; height: 16px; color: var(--ink); }
#peek .cap { padding: 9px 11px; font-size: 12px; display: flex; flex-direction: column; gap: 4px; }
#peek .cap b { font-weight: 600; line-height: 1.35; }
#peek .cap .row { gap: 8px; color: var(--muted); }

/* Full-screen viewer (phones, tablets, and every page but the match page on a computer) */
.viewer { position: fixed; inset: 0; z-index: 80; background: rgba(5,10,20,.94); display: flex; align-items: center; justify-content: center; padding: 16px; }
.viewer .box { width: min(920px, 100%); max-height: 100%; overflow: auto; }

/* The player: shared by the viewer and the dock (0171) */
.player { display: flex; flex-direction: column; gap: 8px; min-height: 0; }
.pscreen { position: relative; border-radius: 12px; overflow: hidden; aspect-ratio: 16/9; background: #000; user-select: none; -webkit-user-select: none; touch-action: manipulation; cursor: pointer; flex: none; }
.pscreen img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pscreen.playing img { animation: kb calc(8s / var(--spd, 1)) linear infinite alternate; }
@keyframes kb { from { transform: scale(1); } to { transform: scale(1.07); } }
.pscreen .bigplay { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; pointer-events: none; }
.pscreen .bigplay span { width: 58px; height: 58px; border-radius: 50%; background: rgba(190,242,100,.95); display: flex; align-items: center; justify-content: center; }
.pscreen .bigplay svg { width: 24px; height: 24px; color: var(--ink); }
.pspeed { position: absolute; top: 10px; right: 10px; background: rgba(11,20,36,.85); border-radius: 8px; padding: 3px 8px; font-size: 12px; font-weight: 700; }
.pflash { position: absolute; top: 50%; width: 62px; height: 62px; margin-top: -31px; border-radius: 50%; background: rgba(11,20,36,.75); display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 15px; pointer-events: none; animation: pf .65s ease-out forwards; }
.pflash.l { left: 14%; } .pflash.r { right: 14%; }
@keyframes pf { from { opacity: 1; transform: scale(.9); } to { opacity: 0; transform: scale(1.15); } }
.prog { position: relative; height: 6px; border-radius: 999px; background: var(--panel2); cursor: pointer; margin: 6px 0 2px; flex: none; }
.prog::before { content: ""; position: absolute; left: 0; right: 0; top: -9px; bottom: -9px; }
.prog i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 999px; background: var(--lime); pointer-events: none; }
.prog b { position: absolute; top: -4px; width: 4px; height: 14px; margin-left: -2px; border-radius: 2px; pointer-events: none; }
.pbar { display: flex; align-items: center; gap: 2px; flex-wrap: wrap; flex: none; }
.pbar button { width: 36px; height: 36px; border-radius: 9px; display: inline-flex; align-items: center; justify-content: center; }
.pbar button:hover { background: var(--panel2); }
.pbar button.on { color: var(--lime); background: var(--panel2); }
.grow { flex: 1 1 auto; min-width: 0; }
.ptime { font-size: 12px; color: var(--muted); margin-left: 6px; white-space: nowrap; }
.pnow { display: flex; align-items: center; gap: 10px; flex: none; }
.pnow b { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pnow .n svg.lucide { width: 14px; height: 14px; }
.plhead { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; flex: none; }
.plist { position: relative; display: flex; flex-direction: column; gap: 4px; overflow: auto; min-height: 0; }
.pitem { display: flex; gap: 10px; align-items: center; padding: 6px; border-radius: 10px; text-align: left; flex: none; }
.pitem:hover { background: var(--panel2); }
.pitem.on { background: var(--panel2); box-shadow: inset 0 0 0 2px var(--lime); }
.pitem img { width: 84px; aspect-ratio: 16/9; object-fit: cover; border-radius: 6px; flex: none; }
.pitem > span { display: flex; flex-direction: column; min-width: 0; font-size: 12px; }
.pitem b { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.player.modal .plist { flex-direction: row; overflow-x: auto; overflow-y: hidden; padding-bottom: 4px; }
.player.modal .pitem { width: 210px; }
.player.modal .pitem img { width: 70px; }

/* The match page: one scroll, with the video beside it on a computer (0171) */
.wrap.wide { max-width: 1500px; }
.mlayout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; align-items: start; }
.mmain { min-width: 0; }
.dock { display: none; }
@media (min-width: 1180px) {
  .mlayout { grid-template-columns: minmax(0, 1fr) clamp(380px, 30vw, 470px); }
  .dock { display: block; position: sticky; top: 16px; background: var(--panel); border-radius: 16px; padding: 14px; }
  .dock .player { height: calc(100vh - 60px); }
  .dock .plist { flex: 1 1 0; }
}
.n.plain { background: var(--panel2); color: var(--text); }
.cols3.tight { grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); }
.scoreline { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: start; gap: 16px; padding: 26px 20px; }
.scoreline .side { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; min-width: 0; }
.scoreline .side > b { font-size: 16px; }
.scoreline .mid { display: flex; flex-direction: column; align-items: center; gap: 8px; padding-top: 4px; }
.scoreline .big { font-size: 46px; font-weight: 800; letter-spacing: -.02em; line-height: 1; }
.crest.lg { width: 52px; height: 52px; font-size: 15px; }
.scorer { gap: 6px; font-size: 12px; }
.scorer svg.lucide { width: 14px; height: 14px; color: var(--muted); }
.verdict { font-size: 20px; line-height: 1.35; }
.pairhead { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.pairs { display: flex; flex-direction: column; gap: 16px; }
.pair { display: grid; grid-template-columns: 70px minmax(0, 1fr) 70px; align-items: center; row-gap: 6px; }
.pair .v { font-weight: 700; font-size: 15px; }
.pair .v.r { text-align: right; }
.pair .nm { text-align: center; color: var(--muted); font-size: 12px; font-weight: 600; }
.pair .bars { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
.pair .bars span { height: 8px; border-radius: 999px; background: var(--panel2); display: flex; overflow: hidden; }
.pair .bars span:first-child { justify-content: flex-end; }
.pair .bars i { display: block; height: 100%; border-radius: 999px; }
.fullvid { position: relative; display: block; border-radius: 12px; overflow: hidden; aspect-ratio: 16/9; background: #000; }
.fullvid img { width: 100%; height: 100%; object-fit: cover; opacity: .85; display: block; }
.fullvid .bigplay { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.fullvid .bigplay span { width: 62px; height: 62px; border-radius: 50%; background: rgba(190,242,100,.95); display: flex; align-items: center; justify-content: center; transition: transform .15s; }
.fullvid:hover .bigplay span { transform: scale(1.08); }
.fullvid .bigplay svg { width: 24px; height: 24px; color: var(--ink); }
.fullvid .dur { position: absolute; right: 10px; bottom: 10px; background: rgba(11,20,36,.85); border-radius: 8px; padding: 3px 8px; font-size: 12px; font-weight: 700; }
.tl { position: relative; height: 104px; margin: 18px 8px 0; }
.tl .axis { position: absolute; left: 0; right: 0; top: 48px; height: 2px; background: var(--border); }
.tl .ht { position: absolute; top: 28px; height: 42px; width: 2px; margin-left: -1px; background: var(--muted); opacity: .45; }
.tl .tm { position: absolute; transform: translateX(-50%); display: flex; align-items: center; justify-content: center; }
.tl .tm.up { bottom: 60px; } .tl .tm.down { top: 56px; }
.tl .tm.shot { width: var(--r); height: var(--r); border-radius: 50%; border: 2px solid var(--c); }
.tl .tm.shot.goal { background: var(--c); }
.tl .tm.bk { width: 10px; height: 14px; border-radius: 2px; }
.tl .tm.bk.yellow { background: #FACC15; } .tl .tm.bk.red { background: #EF4444; }
.tl .tm.sub { width: 20px; height: 20px; color: var(--muted); }
.tl .tm.sub svg.lucide { width: 15px; height: 15px; }
.tl .tm:hover { filter: brightness(1.35); }
.tlx { position: absolute; left: 0; right: 0; bottom: 0; height: 16px; }
.tlx span { position: absolute; transform: translateX(-50%); font-size: 12px; color: var(--muted); }
.tlx span:first-child { transform: none; }
@media (max-width: 600px) {
  .scoreline { padding: 18px 8px; gap: 8px; }
  .scoreline .big { font-size: 34px; }
  .crest.lg { width: 44px; height: 44px; }
  .verdict { font-size: 17px; }
  .pair { grid-template-columns: 56px minmax(0, 1fr) 56px; }
}

/* Settings and emails (0172, 0173) */
.setlist { padding: 8px 20px; }
.setrow { display: flex; align-items: center; gap: 14px; padding: 14px 0; }
.setrow + .setrow { border-top: 1px solid var(--border); }
.setrow .btn.ghost { min-height: 36px; padding: 6px 10px; }
.switch { width: 46px; height: 28px; border-radius: 999px; background: var(--panel2); position: relative; flex: none; transition: background .15s; }
.switch span { position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: var(--muted); transition: left .15s, background .15s; }
.switch.on { background: var(--lime); }
.switch.on span { left: 21px; background: var(--ink); }
.switch[disabled] { opacity: .45; cursor: not-allowed; }
.mailwrap { max-width: 640px; margin: 20px auto 0; display: flex; flex-direction: column; gap: 16px; }
.inbox { display: flex; gap: 12px; align-items: flex-start; background: var(--panel); border-radius: 14px; padding: 14px 16px; }
.inbox .ico { width: 40px; height: 40px; border-radius: 50%; }
.inbox .mlogo { width: 26px; height: 26px; }
.inbox .grow { display: flex; flex-direction: column; gap: 2px; }
.inbox .subj { font-weight: 600; }
.prevline { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mail { background: #FFFFFF; color: #0B1424; border-radius: 14px; padding: 30px 28px; display: flex; flex-direction: column; gap: 14px; }
.mail a { color: inherit; }
.mail h3 { font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: #5B6678; margin-top: 10px; }
.mhead { display: flex; align-items: center; gap: 10px; font-size: 12px; font-weight: 600; color: #5B6678; }
.mhead .mlogo { width: 28px; height: 28px; }
.mscore { display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap; margin-top: 8px; }
.mteam { display: inline-flex; align-items: center; gap: 8px; font-size: 16px; }
.mbig { font-size: 34px; font-weight: 800; letter-spacing: -.02em; }
.mmeta, .mscorers { margin: 0; text-align: center; color: #5B6678; font-size: 13px; }
.mscorers { color: #0B1424; }
.mverdict { margin: 6px 0 0; font-size: 16px; font-weight: 600; text-align: center; line-height: 1.4; }
.mtitle { font-size: 22px; margin-top: 6px; }
.mmoments { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.mmoment { display: flex; flex-direction: column; gap: 6px; font-size: 13px; line-height: 1.35; }
.mthumb, .mhero { position: relative; display: block; border-radius: 10px; overflow: hidden; aspect-ratio: 16/9; background: #0B1424; }
.mthumb img, .mhero img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mail .pp { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.mail .pp span { width: 34px; height: 34px; border-radius: 50%; background: rgba(190,242,100,.95); display: flex; align-items: center; justify-content: center; }
.mail .pp svg { width: 15px; height: 15px; color: #0B1424; }
.mhero .pp span { width: 54px; height: 54px; }
.mtop { display: flex; flex-direction: column; }
.mplayer { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid #E3E7EE; }
.mmuted { color: #5B6678; font-size: 12px; }
.mbtn { align-self: center; margin-top: 12px; background: #0B1424; color: #FFFFFF !important; font-weight: 700; border-radius: 10px; padding: 13px 26px; }
.mfoot { margin: 10px 0 0; text-align: center; font-size: 12px; color: #5B6678; }
.mfoot a { text-decoration: underline; color: #4D7C0F !important; }
@media (max-width: 600px) { .mail { padding: 22px 16px; } .mmoments { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } .pscreen.playing img, .pflash { animation: none !important; } }

/* Compare: up to four on a computer, two on a phone (0167) */
.cgridwrap { padding: 20px 20px 8px; overflow-x: auto; }
.cgrid { display: grid; align-items: center; column-gap: 14px; }
.crow { display: contents; }
.cphead { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; padding: 4px 4px 16px; min-width: 0; }
.cphead b { font-size: 14px; line-height: 1.25; }
.cphead .cx { position: absolute; top: 0; right: 0; width: 28px; height: 28px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; color: var(--muted); }
.cphead .cx:hover { background: var(--panel2); color: var(--text); }
.cphead .cx svg.lucide { width: 15px; height: 15px; }
.addc { justify-content: flex-start; padding-top: 10px; }
.cadd { width: 56px; height: 56px; border-radius: 50%; border: 2px dashed var(--border); display: inline-flex; align-items: center; justify-content: center; color: var(--muted); }
.cadd:hover { border-color: var(--lime); color: var(--lime); }
.cl { display: flex; align-items: center; gap: 10px; padding: 12px 0; border-top: 1px solid var(--border); min-width: 0; }
.cl b { font-weight: 600; font-size: 13px; line-height: 1.25; }
.cl svg.lucide { flex: none; color: var(--muted); }
.cc { display: flex; align-items: center; gap: 10px; padding: 12px 0; border-top: 1px solid var(--border); min-width: 0; height: 100%; }
.cbar { position: relative; flex: 1 1 auto; height: 8px; border-radius: 999px; background: var(--panel2); min-width: 24px; }
.cbar i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 999px; }
.cbar b { position: absolute; left: 50%; top: -4px; bottom: -4px; width: 2px; background: rgba(244,246,250,.45); }
.cmpmenu { max-height: 360px; overflow-y: auto; top: 64px; min-width: 260px; text-align: left; }
.mlbl { padding: 8px 10px 4px; display: block; }
.skchip.warn { padding: 6px 12px; }
@media (max-width: 600px) {
  .cgridwrap { padding: 16px 12px 6px; }
  .cgrid { column-gap: 8px; }
  .cc { flex-direction: column; align-items: stretch; gap: 6px; }
  .cc .n { align-self: center; }
  .cl svg.lucide { display: none; }
}

/* The player's own view (0153, 0158, 0168) */
.pvbar { display: flex; align-items: center; justify-content: space-between; background: var(--panel); border-radius: 12px; padding: 8px 8px 8px 14px; margin-bottom: 18px; }
.pvwrap { max-width: 760px; margin: 0 auto; }
.place { display: inline-flex; align-items: baseline; gap: 2px; background: var(--panel2); border-radius: 8px; padding: 4px 10px; font-weight: 700; font-size: 13px; white-space: nowrap; }
.place .muted { font-weight: 500; }
.pvskills { display: grid; gap: 10px; }
.pvskill { display: flex; align-items: center; gap: 12px; padding: 14px 16px; }
.iconbtn { width: 36px; height: 36px; border-radius: 9px; display: inline-flex; align-items: center; justify-content: center; color: var(--muted); }
.iconbtn:hover { background: var(--panel2); color: var(--text); }

/* Sharing inside Soka (0169) */
.sheet { position: fixed; inset: 0; z-index: 90; background: rgba(5,10,20,.7); display: flex; align-items: flex-end; justify-content: center; padding: 16px; }
@media (min-width: 700px) { .sheet { align-items: center; } }
.sbox { width: min(560px, 100%); max-height: calc(100vh - 32px); overflow: auto; background: var(--panel); border: 1px solid var(--border); border-radius: 18px; padding: 20px; display: flex; flex-direction: column; gap: 16px; box-shadow: 0 24px 60px rgba(0,0,0,.5); }
.seg { display: flex; background: var(--panel2); border-radius: 10px; padding: 3px; }
.seg button { flex: 1; padding: 8px 10px; border-radius: 8px; font-weight: 600; font-size: 13px; color: var(--muted); }
.seg button.on { background: var(--bg); color: var(--text); }
.tchip { padding: 7px 12px; border-radius: 999px; background: var(--panel2); font-size: 13px; font-weight: 600; }
.tchip.on { background: var(--lime); color: var(--ink); }
.pchips { display: flex; flex-wrap: wrap; gap: 6px; }
.pchip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px 3px 3px; border-radius: 999px; background: var(--panel2); font-size: 12px; font-weight: 600; }
.pchip.on { box-shadow: inset 0 0 0 2px var(--lime); }
.snote { width: 100%; resize: vertical; background: var(--bg); color: var(--text); border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; font: inherit; }
.snote:focus { outline: 2px solid var(--lime); outline-offset: 0; }
.seenby svg.lucide { color: var(--muted); }
.vsep { width: 1px; height: 24px; background: var(--border); margin: 0 4px; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
#toast { position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 20px); z-index: 95; background: var(--text); color: var(--ink); border-radius: 12px; padding: 11px 16px; font-size: 13px; display: flex; align-items: center; gap: 10px; box-shadow: 0 14px 34px rgba(0,0,0,.45); opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; max-width: calc(100vw - 32px); }
#toast.show { opacity: 1; transform: translate(-50%, 0); }
#toast svg.lucide { width: 16px; height: 16px; flex: none; }
@media (max-width: 860px) { #toast { bottom: 84px; } }

/* PDF reports on paper (0170), in the light palette (0108) */
.pdfbar { gap: 12px; }
.pdfview { display: flex; flex-direction: column; align-items: center; gap: 24px; margin-top: 18px; }
.a4wrap { position: relative; overflow: hidden; border-radius: 4px; box-shadow: 0 18px 50px rgba(0,0,0,.45); flex: none; max-width: 100%; }
.a4 { width: 794px; height: 1123px; background: #FFFFFF; color: #0B1424; transform-origin: 0 0; padding: 48px 56px 64px; position: relative; font-size: 13px; display: flex; flex-direction: column; gap: 12px; }
.a4 a { color: inherit; }
.a4head { display: flex; justify-content: space-between; align-items: center; padding-bottom: 14px; border-bottom: 1px solid #DDE2E8; }
.a4head .mlogo { width: 34px; height: 34px; }
.a4word { font-size: 22px; letter-spacing: .05em; color: #0B1424; }
.a4right { display: flex; flex-direction: column; align-items: flex-end; gap: 3px; font-size: 11px; color: #5B6678; }
.a4eyebrow { font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: #4D7C0F; }
.a4kicker { font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #4D7C0F; margin-top: 4px; }
.a4 h1 { font-size: 30px; color: #0B1424; }
.a4 h2 { font-size: 14px; margin-top: 6px; color: #0B1424; }
.a4sub { margin: 0; color: #5B6678; }
.a4verdict { margin: 0; font-size: 15px; font-weight: 700; }
.a4tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.a4tile { background: #F4F6FA; border-radius: 10px; padding: 12px 14px; display: flex; flex-direction: column; gap: 4px; }
.a4tile b { font-size: 20px; font-variant-numeric: tabular-nums; }
.a4tile .a4vs { font-size: 14px; color: #5B6678; font-weight: 600; letter-spacing: 0; text-transform: none; }
.a4tile > span { font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #5B6678; }
.a4moments, .a4clips { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.a4clips { grid-template-columns: 1fr; gap: 8px; }
.a4moment img, .a4clip img { width: 100%; aspect-ratio: 16/9; object-fit: cover; border-radius: 8px; display: block; }
.a4moment > span { display: block; font-size: 11.5px; margin-top: 5px; line-height: 1.35; }
.a4clip { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 10px; align-items: center; font-size: 11.5px; line-height: 1.35; }
.a4link { color: #4D7C0F; font-weight: 600; }
.a4two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: center; }
.a4cap { display: block; font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #5B6678; margin-bottom: 4px; }
.a4table { width: 100%; border-collapse: collapse; font-size: 11.5px; color: #0B1424; }
.a4table th { text-align: left; font-size: 9.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #5B6678; padding: 5px 6px; border-bottom: 1.5px solid #0B1424; }
.a4table td { padding: 5px 6px; border-bottom: 1px solid #DDE2E8; font-variant-numeric: tabular-nums; }
.a4table .n { height: 20px; min-width: 30px; font-size: 11px; }
.a4pairs .pairhead { margin-bottom: 8px; }
.a4pairs .pairs { gap: 8px; }
.a4 .pair .v { font-size: 13px; }
.a4 .pair .nm { color: #5B6678; font-size: 11px; }
.a4 .pair .bars span { background: #E6EAF0; height: 6px; }
.a4 .skchip { background: #F4F6FA; color: #0B1424; }
.a4 svg.lucide { color: #5B6678; width: 15px; height: 15px; }
.a4form { display: flex; gap: 14px; }
.a4skills { display: flex; flex-direction: column; gap: 7px; }
.a4skill { display: grid; grid-template-columns: 170px minmax(0, 1fr) 44px; gap: 12px; align-items: center; }
.a4sk { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }
.a4track { position: relative; height: 7px; border-radius: 999px; background: #E6EAF0; }
.a4track i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 999px; }
.a4track b { position: absolute; left: 50%; top: -4px; bottom: -4px; width: 2px; background: #0B1424; opacity: .5; }
.a4foot { position: absolute; left: 56px; right: 56px; bottom: 28px; display: flex; justify-content: space-between; gap: 12px; font-size: 10.5px; color: #5B6678; border-top: 1px solid #DDE2E8; padding-top: 8px; }
@media print {
  @page { size: A4; margin: 0; }
  html, body { background: #FFFFFF; }
  .rail, .bottombar, .topbar, .pdfbar, #tip, #peek, #toast, .viewer, .sheet { display: none !important; }
  .app { display: block; }
  .wrap { padding: 0 !important; max-width: none !important; }
  .pdfview { display: block; margin: 0; }
  .a4wrap { width: auto !important; height: auto !important; box-shadow: none; border-radius: 0; overflow: visible; }
  .a4 { transform: none !important; page-break-after: always; break-after: page; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* Stage 4: the website, sign-up, set-up and the club area (0174–0185) */
body.public .rail, body.public .bottombar { display: none; }
body.public .app { grid-template-columns: minmax(0, 1fr); }
body.public .wrap { max-width: 1080px; padding-bottom: 60px; }
.sitehead { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 44px; }
.brand { gap: 10px; font-size: 18px; }
.brand .mlogo { width: 30px; height: 30px; }
.sitenav { gap: 24px; color: var(--muted); font-weight: 600; font-size: 13px; }
.sitenav a:hover { color: var(--text); }
@media (max-width: 860px) { .sitenav { display: none; } }
@media (max-width: 420px) { .sitehead .btn.ghost[href="#team"] { display: none; } }
.hero { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr); gap: 48px; align-items: center; min-height: 440px; }
@media (max-width: 860px) { .hero { grid-template-columns: minmax(0, 1fr); gap: 36px; min-height: 0; } }
h1.big { font-size: 48px; line-height: 1.06; letter-spacing: -.025em; }
@media (max-width: 600px) { h1.big { font-size: 34px; } }
.lead { font-size: 17px; line-height: 1.55; margin: 18px 0 0; max-width: 560px; }
.btn.lg { min-height: 48px; padding: 12px 20px; font-size: 14px; border-radius: 12px; justify-content: center; }
.phone { justify-self: center; width: 260px; border-radius: 38px; padding: 12px; background: #050A14; box-shadow: 0 30px 80px rgba(0,0,0,.55), inset 0 0 0 1px var(--border); }
.pscr { border-radius: 28px; background: var(--bg); padding: 22px 16px 20px; display: flex; flex-direction: column; }
.pmscore { font-size: 30px; font-weight: 800; margin-top: 6px; letter-spacing: -.01em; }
.pmthumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 14px; }
.pmthumbs img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; display: block; }
.price .pbig { font-size: 42px; font-weight: 800; margin-top: 8px; letter-spacing: -.02em; }
.price .pbig .muted { font-size: 15px; font-weight: 500; letter-spacing: 0; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 24px; }
.facts > div { display: flex; flex-direction: column; gap: 4px; }
.facts b { font-size: 17px; }
.samplecard { display: flex; align-items: center; gap: 20px; transition: background .15s; }
.samplecard:hover { background: var(--panel2); }
.samplecard img { width: 168px; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 12px; flex: none; display: block; }
@media (max-width: 600px) { .samplecard { gap: 14px; } .samplecard img { width: 92px; } .samplecard .ico { display: none; } }
.trust { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 20px; }
.trust .row { gap: 12px; font-weight: 600; align-items: flex-start; }
.trust svg.lucide { flex: none; margin-top: 2px; }
.cta { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; padding: 36px; }
.sitefoot { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 14px; margin-top: 56px; padding-top: 22px; border-top: 1px solid var(--border); }
.sitefoot .mlogo { width: 20px; height: 20px; }
.sitefoot a:hover, .sitefoot button:hover { color: var(--text); }
.cookiebar { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 85; max-width: 600px; margin: 0 auto; background: var(--panel2); border: 1px solid var(--border); border-radius: 16px; padding: 16px 18px; display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; box-shadow: 0 18px 50px rgba(0,0,0,.5); }
.cookiebar p { margin: 0; flex: 1 1 240px; font-size: 13px; }
.btn.eq { min-width: 96px; justify-content: center; box-shadow: inset 0 0 0 1px var(--border); }
.fld { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.fld > span { font-size: 12px; font-weight: 600; color: var(--muted); }
.fld input { background: var(--bg); color: var(--text); border: 1px solid var(--border); border-radius: 10px; padding: 11px 12px; font: inherit; min-height: 44px; width: 100%; min-width: 0; }
.fld input:focus, .codebox input:focus { outline: 2px solid var(--lime); outline-offset: 0; }
.fld.wide { grid-column: 1 / -1; }
.fgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 24px; }
.fgrid.two { margin-top: 0; }
@media (max-width: 600px) { .fgrid { grid-template-columns: minmax(0, 1fr); } .fgrid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.formwrap2 { max-width: 720px; margin: 0 auto; }
.formnav { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 28px; flex-wrap: wrap; }
.btn.off { opacity: .45; cursor: not-allowed; }
.btn.wide { width: 100%; justify-content: center; }
.stepper { display: flex; gap: 6px; list-style: none; margin: 0; padding: 0; }
.stepper li { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 13px; padding: 4px 12px 4px 4px; border-radius: 999px; }
.stepper li b { font-weight: 600; }
.stepper li span { width: 26px; height: 26px; border-radius: 50%; background: var(--panel2); display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 12px; }
.stepper li span svg.lucide { width: 14px; height: 14px; }
.stepper li.on { color: var(--text); background: var(--panel); }
.stepper li.on span { background: var(--lime); color: var(--ink); }
.stepper li.done span { background: var(--panel); color: var(--lime); }
@media (max-width: 600px) { .stepper li:not(.on) b { display: none; } .stepper li:not(.on) { padding-right: 4px; } }
.codebox { display: flex; gap: 8px; }
.codebox input { width: 46px; height: 54px; text-align: center; font-size: 20px; font-weight: 700; background: var(--bg); color: var(--text); border: 1px solid var(--border); border-radius: 10px; min-width: 0; }
@media (max-width: 400px) { .codebox input { width: 40px; } }
.okchip { padding: 6px 12px; white-space: nowrap; }
.addteam { display: flex; align-items: center; justify-content: center; gap: 8px; color: var(--muted); font-weight: 600; border: 1px dashed var(--border); background: none; width: 100%; }
.addteam:hover { color: var(--text); border-color: var(--muted); }
.paygrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 16px; margin-top: 24px; align-items: start; }
hr.sep { border: 0; border-top: 1px solid var(--border); margin: 4px 0; width: 100%; }
.total { font-size: 22px; }
.ul { text-decoration: underline; text-underline-offset: 3px; }
.donepage { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 14px; padding-top: 48px; }
.donepage p { margin: 0; }
.donecheck { width: 64px; height: 64px; border-radius: 50%; background: var(--lime); color: var(--ink); display: inline-flex; align-items: center; justify-content: center; flex: none; }
.donecheck svg.lucide { width: 30px; height: 30px; stroke-width: 3; }
.meter { width: 120px; height: 8px; border-radius: 999px; background: var(--panel2); overflow: hidden; display: inline-block; flex: none; }
.meter span { display: block; height: 100%; background: var(--lime); border-radius: 999px; }
.meter.sm { width: 70px; height: 6px; }
a.setrow:hover b { color: var(--lime); }
.drop { width: 100%; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 32px 16px; border: 1.5px dashed var(--border); border-radius: var(--radius); color: var(--text); text-align: center; }
.drop:hover { border-color: var(--lime); }
.drop svg.lucide { width: 28px; height: 28px; }
.paste { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; white-space: pre; overflow-x: auto; }
.tscroll { overflow-x: auto; margin: 14px -4px 0; }
.tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
.tbl th { text-align: left; font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); padding: 8px 10px; border-bottom: 1px solid var(--border); white-space: nowrap; }
.tbl td { padding: 10px; border-bottom: 1px solid var(--border); white-space: nowrap; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl th.c, .tbl td.c { text-align: center; }
.tbl th svg.lucide { width: 15px; height: 15px; vertical-align: middle; }
.tbl td svg.lucide { width: 16px; height: 16px; vertical-align: middle; }
.tbl tr.flag td { background: rgba(250, 204, 21, .06); }
.tag { display: inline-block; font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: var(--panel2); color: var(--muted); }
.sdot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; flex: none; }
.tabs { display: flex; gap: 4px; margin-top: 18px; border-bottom: 1px solid var(--border); overflow-x: auto; scrollbar-width: none; }
.tabs a { padding: 10px 14px; font-weight: 600; font-size: 13px; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tabs a.on { color: var(--text); border-bottom-color: var(--lime); }
.tabs a:hover { color: var(--text); }
.cfhead { margin-bottom: 28px; }
.seg.lang { width: 112px; }
.cfwrap { max-width: 520px; display: flex; flex-direction: column; gap: 14px; }
.cfwrap h1 { font-size: 24px; }
.cfwrap p { margin: 0; }

/* Click-through fixes (22 November 2026) */
a.back { min-height: 32px; padding-right: 8px; }
.sitefoot a, .sitefoot button { min-height: 32px; display: inline-flex; align-items: center; }
.frow .fwho { min-width: 0; flex: 1 1 auto; }
.fname { min-width: 0; }
@media (max-width: 600px) {
  .frow { flex-wrap: wrap; row-gap: 8px; }
  .frow .fwho { flex: 1 1 100%; }
  .frow > .row:last-child { margin-left: 50px; }
}
.pricegrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 600px) { .price .pbig { font-size: 30px; } .pricegrid .price { padding: 18px; } }
.grid.cols2.tight { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.setrow { position: relative; }
.tchip.rolebtn { display: inline-flex; align-items: center; gap: 4px; }
.rolebtn svg.lucide { width: 14px; height: 14px; }
.btn.slim { min-height: 32px; padding: 4px 10px; font-size: 12px; }
.tag.swap { cursor: pointer; color: var(--text); padding: 5px 12px; min-height: 28px; }
.tag.swap:hover { background: var(--border); }
