/* Over Live — interface (charte docs/charte). Tokens: overlive-tokens.css. */
*, *::before, *::after { box-sizing: border-box; }
html { color-scheme: dark light; }
body {
  margin: 0; background: var(--ground); color: var(--ink);
  font: var(--text-body); -webkit-font-smoothing: antialiased;
}
a { color: var(--brand-text); }
a:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--live); outline-offset: 2px; }
h1, h2, h3, .ol-display { font-family: var(--font-display); margin: 0; }
h1 { font: var(--text-h1); }
h2 { font: var(--text-h2); }
h3 { font: var(--text-h3); }
.ol-label { font: var(--text-label); letter-spacing: .04em; text-transform: uppercase; }
.ol-muted { color: var(--ink-muted); }
.ol-small { font: var(--text-small); }

/* Layout: sidebar + main. Fixed compact column on desktop (no longer grows
   with the screen), icon rail on demand, collapsible full-width bar on mobile. */
:root { --side-w: 224px; --side-rail-w: 64px; }
.ol-app { display: grid; grid-template-columns: var(--side-w) minmax(0, 1fr); min-height: 100vh;
  overflow-x: clip; transition: grid-template-columns .2s ease; }
.ol-side {
  --surface-1: var(--sidebar-bg); --surface-2: #1e293b; --line: #334155; --control-border: #64748b;
  --ink: var(--sidebar-ink); --ink-muted: var(--sidebar-muted); --brand-text: #60a5fa; --live-text: #22d3ee;
  color-scheme: dark; color: var(--ink);
  position: sticky; top: 0; height: 100vh; height: 100dvh; min-width: 0;
  overflow-y: auto; overflow-x: hidden; background: var(--sidebar-bg);
  border-right: 1px solid var(--line); padding: var(--space-4) var(--space-3);
  display: flex; flex-direction: column; gap: var(--space-4);
}
.ol-side-head { display: flex; align-items: center; justify-content: space-between; gap: var(--space-2); min-height: 44px; }
.ol-side-body { display: flex; flex-direction: column; gap: var(--space-4); flex: 1 0 auto; }
.ol-side-toggle { display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 44px; height: 44px; padding: 0; border: 0; border-radius: var(--radius-sm);
  background: transparent; color: var(--ink-muted); cursor: pointer; }
.ol-side-toggle:hover { background: var(--surface-2); color: var(--ink); }
html:not(.ol-js) .ol-side-toggle { display: none; }
.ol-ico { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linejoin: miter; stroke-linecap: square; }
.ol-ico-menu { display: none; }
.ol-side-logout { margin-top: auto; }
.ol-side-logout .ol-btn { gap: var(--space-2); }
.ol-main { min-width: 0; width: 100%; max-width: 1100px; padding: var(--space-6) var(--space-8);
  display: flex; flex-direction: column; gap: var(--space-6); }
.ol-logo { display: flex; align-items: center; gap: var(--space-2); min-width: 0; text-decoration: none; color: var(--ink); }
.ol-logo svg { flex: none; }
.ol-logo span { font: 700 22px/24px var(--font-display); letter-spacing: .02em; }
.ol-logo b { color: var(--live-text); font-weight: 700; }
.ol-nav { display: flex; flex-direction: column; gap: var(--space-1); }
.ol-nav a { display: flex; align-items: center; gap: var(--space-3); min-height: 44px; padding: 6px 12px;
  border-radius: var(--radius-sm); color: var(--ink-muted); text-decoration: none; overflow-wrap: anywhere; }
.ol-nav a:hover { background: var(--surface-2); color: var(--ink); text-decoration: none; }
.ol-nav a[aria-current="page"] { background: rgba(37, 99, 235, .18); color: var(--ink); font-weight: 600; }
.ol-side-label { min-width: 0; }

/* Icon rail (desktop only, toggled by #ol-side-toggle, remembered in localStorage) */
@media (min-width: 901px) {
  [data-side="rail"] .ol-app { grid-template-columns: var(--side-rail-w) minmax(0, 1fr); }
  [data-side="rail"] .ol-side { padding: var(--space-4) var(--space-2); align-items: center; }
  [data-side="rail"] .ol-side-head { flex-direction: column; }
  [data-side="rail"] .ol-side-body { align-items: center; }
  [data-side="rail"] .ol-logo span, [data-side="rail"] .ol-switch { display: none; }
  [data-side="rail"] .ol-side-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  [data-side="rail"] .ol-nav a, [data-side="rail"] .ol-side-logout .ol-btn { justify-content: center; width: 44px; padding: 0; }
  [data-side="rail"] .ol-ico-rail { transform: scaleX(-1); }
}

/* Mobile: the sidebar becomes a sticky top bar; the menu button opens the
   navigation full width. Without JavaScript the navigation stays visible. */
@media (max-width: 900px) {
  .ol-app { grid-template-columns: minmax(0, 1fr); }
  .ol-side { z-index: 20; height: auto; max-height: 100vh; max-height: 100dvh; border-right: 0;
    border-bottom: 1px solid var(--line); padding: var(--space-2) var(--space-4); gap: var(--space-2); }
  .ol-js .ol-side-body { display: none; }
  .ol-js[data-side-open] .ol-side-body { display: flex; padding-bottom: var(--space-2); }
  .ol-js .ol-ico-menu { display: block; }
  .ol-ico-rail { display: none; }
  .ol-main { padding: var(--space-6) var(--space-4); }
}

/* Structure switcher */
.ol-switch { display: flex; flex-direction: column; gap: var(--space-2); }
.ol-switch select { width: 100%; }
#ol-spectate input[type="color"] { width: 72px; padding: 2px; }
.ol-spectate-preview { display: block; max-width: min(100%, 320px); aspect-ratio: 16 / 9; object-fit: cover; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.ol-avatar { width: 32px; height: 32px; border-radius: var(--radius-pill); background: var(--ground);
  display: inline-flex; align-items: center; justify-content: center; font: 700 14px/1 var(--font-display); flex: none; }

/* Cards and sections */
.ol-card { background: var(--surface-1); padding: var(--space-6); display: flex; flex-direction: column; gap: var(--space-4);
  border: var(--ol-card-edge); }
.ol-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: var(--space-4); }
.ol-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: var(--space-4); }
.ol-cut { clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, var(--cut) 100%, 0 calc(100% - var(--cut))); }

/* Controls */
.ol-field { display: flex; flex-direction: column; gap: var(--space-1); }
.ol-field > span { font: var(--text-label); letter-spacing: .04em; text-transform: uppercase; color: var(--ink-muted); }
input, select, textarea {
  font: var(--text-body); color: var(--ink); background: var(--surface-2);
  border: 1px solid var(--control-border); border-radius: var(--radius-sm);
  padding: 10px 12px; min-height: 44px; width: 100%;
}
.ol-row { display: flex; flex-wrap: wrap; gap: var(--space-3); align-items: flex-end; }
.ol-row > .ol-field { flex: 1 1 200px; }
.ol-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  min-height: 44px; padding: 0 var(--space-4); border-radius: var(--radius-sm);
  border: 1px solid var(--control-border); background: transparent; color: var(--ink);
  font: 700 15px/1 var(--font-display); letter-spacing: .04em; text-transform: uppercase;
  cursor: pointer; text-decoration: none; transition: background-color .15s, border-color .15s;
}
.ol-btn:hover { background: var(--surface-2); text-decoration: none; }
.ol-btn-primary { background: var(--brand); color: var(--on-brand); border-color: transparent; border-radius: 0;
  clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, var(--cut) 100%, 0 calc(100% - var(--cut))); }
.ol-btn-primary:hover { background: var(--brand-strong); }
.ol-btn-danger { color: var(--danger); border-color: var(--danger); }
.ol-btn-sm { min-height: 36px; padding: 0 var(--space-3); font-size: 13px; }
.ol-btn[disabled] { opacity: .5; cursor: not-allowed; }

/* Badges (always with text: colour never alone) */
.ol-badge { display: inline-flex; align-items: center; gap: 6px; font: var(--text-label); letter-spacing: .04em;
  text-transform: uppercase; padding: 4px 8px; border-radius: var(--radius-sm); border: 1px solid var(--line); color: var(--ink-muted); }
.ol-badge-owner { color: var(--brand-text); border-color: var(--brand-text); }
.ol-badge-warning { color: var(--warning); border-color: var(--warning); }
.ol-badge[data-state="on"] { color: var(--success); border-color: var(--success); }
.ol-badge[data-state="off"] { color: var(--ink-muted); }

/* Notices */
.ol-notice { padding: var(--space-3) var(--space-4); border-left: 3px solid var(--line); background: var(--surface-2); }
.ol-notice-success { border-color: var(--success); }
.ol-notice-warning { border-color: var(--warning); }
.ol-notice-danger { border-color: var(--danger); }
.ol-notice[hidden] { display: none; }

/* Tables */
.ol-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.ol-table { width: 100%; border-collapse: collapse; background: var(--surface-1); }
.ol-table th { text-align: left; color: var(--ink-muted); font: var(--text-label); letter-spacing: .04em;
  text-transform: uppercase; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.ol-table td { padding: 12px 16px; border-bottom: 1px solid var(--surface-2); vertical-align: middle; }
.ol-code { font: var(--text-code); background: var(--surface-2); padding: 2px 6px; border-radius: var(--radius-sm); word-break: break-all; }

/* Centered single-card pages (onboarding, invitation) */
.ol-center { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: var(--space-6) var(--space-4); }
.ol-center > .ol-card { width: 100%; max-width: 720px; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
.ol-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Two-factor authentication */
[hidden] { display: none !important; }
.ol-center > .ol-card.ol-narrow { max-width: 440px; }
.ol-code-input { font: var(--text-code); font-size: 22px; letter-spacing: .3em; text-align: center; }
.ol-badge-success { color: var(--success); border-color: var(--success); }
.ol-qr { display: flex; flex-wrap: wrap; gap: var(--space-6); align-items: center; }
.ol-qr img { width: 200px; height: 200px; background: #fff; padding: var(--space-2); }
.ol-steps { margin: 0; padding-left: 1.25em; display: flex; flex-direction: column; gap: var(--space-2); }
.ol-recovery { list-style: none; margin: 0; padding: 0; display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 140px), 1fr)); gap: var(--space-2); }
.ol-recovery li { font: var(--text-code); background: var(--surface-2); padding: var(--space-2) var(--space-3); text-align: center; }

/* Tournaments */
.ol-tform { display: flex; flex-direction: column; gap: var(--space-4); }
.ol-tform fieldset { border: 0; margin: 0; min-width: 0; }
.ol-tform-legend { float: left; width: 100%; padding: 0; margin-bottom: var(--space-2); font: var(--text-h3); }
.ol-tform-legend + * { clear: both; }
.ol-check { display: inline-flex; align-items: center; gap: var(--space-2); min-height: 44px; }
.ol-check input { width: 18px; height: 18px; accent-color: var(--brand); }
textarea { font: var(--text-body); color: var(--ink); background: var(--surface-2); border: 1px solid var(--control-border); border-radius: var(--radius-sm); padding: var(--space-3); resize: vertical; width: 100%; }
.ol-status { display: inline-flex; vertical-align: middle; font: var(--text-label); letter-spacing: .06em; text-transform: uppercase;
  padding: 3px 8px; border: 1px solid var(--line); color: var(--ink-muted); white-space: nowrap; }
.ol-status[data-status="published"], .ol-status[data-status="registration_open"] { color: var(--brand-text); border-color: var(--brand-text); }
.ol-status[data-status="registration_closed"], .ol-status[data-status="checkin"] { color: var(--warning); border-color: var(--warning); }
.ol-status[data-status="running"] { color: var(--on-live); background: var(--live-fill); border-color: var(--live-fill); }
.ol-status[data-status="finished"] { color: var(--success); border-color: var(--success); }
.ol-status[data-status="cancelled"] { color: var(--danger); border-color: var(--danger); }
.ol-tabs { display: flex; flex-wrap: wrap; gap: var(--space-1); border-bottom: 1px solid var(--line); }
.ol-tabs a, .ol-tabs .ol-tab-soon { padding: 10px 14px; font: var(--text-label); letter-spacing: .06em; text-transform: uppercase;
  color: var(--ink-muted); border-bottom: 2px solid transparent; margin-bottom: -1px; text-decoration: none; }
.ol-tabs a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--brand); }
.ol-tabs .ol-tab-soon { opacity: .45; cursor: not-allowed; }
.ol-tpanel { display: flex; flex-direction: column; gap: var(--space-4); }
.ol-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: var(--space-3); }
.ol-kpi { background: var(--surface-1); padding: var(--space-4); display: flex; flex-direction: column; gap: var(--space-1); }
.ol-kpi b { font: 700 28px/32px var(--font-display); }
.ol-kpi span { color: var(--ink-muted); font: var(--text-small); }
.ol-lifecycle { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--space-2); counter-reset: step; }
.ol-lifecycle li { font: var(--text-label); letter-spacing: .04em; text-transform: uppercase; color: var(--ink-muted);
  padding: 6px 10px; background: var(--surface-2); }
.ol-lifecycle li[aria-current="step"] { color: var(--on-brand); background: var(--brand); }
.ol-journal { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--space-2); }
.ol-empty { align-items: flex-start; }
.ol-num { font-variant-numeric: tabular-nums; }

/* ── Teams ─────────────────────────────────────────────────────────────── */
.ol-team-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.ol-team-list li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px;
  padding: 10px 0; border-bottom: 1px solid var(--surface-2); }
.ol-team-list li:last-child { border-bottom: 0; }
.ol-team-name { display: inline-flex; align-items: center; gap: 10px; min-width: 0; overflow-wrap: anywhere; }
.ol-team-title { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.ol-team-tag { font: var(--text-label); letter-spacing: .04em; color: var(--ink-muted); }
.ol-team-logo { width: 40px; height: 40px; flex: none; object-fit: cover; background: var(--surface-2);
  display: inline-grid; place-items: center; font-family: Rajdhani, sans-serif; font-weight: 700; text-transform: uppercase;
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px)); }
.ol-team-logo-lg { width: 64px; height: 64px; font-size: 1.4rem; }
.ol-field-sm { max-width: 160px; }
.ol-games { border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 20px; }
.ol-games legend { margin-bottom: 8px; }
.ol-copy { flex-wrap: nowrap; }
.ol-copy input { flex: 1; min-width: 0; }
@media (max-width: 600px) { .ol-copy { flex-wrap: wrap; } }

/* ── Registrations and public tournament page ─────────────────────────── */
.ol-reg-status { font: var(--text-label); letter-spacing: .04em; text-transform: uppercase; padding: 2px 8px;
  border: 1px solid var(--line, var(--surface-2)); color: var(--ink-muted); }
.ol-reg-status[data-status="confirmed"] { color: var(--success); border-color: var(--success); }
.ol-reg-status[data-status="pending"], .ol-reg-status[data-status="waitlist"] { color: var(--warning); border-color: var(--warning); }
.ol-public { max-width: 960px; margin: 0 auto; padding: 16px; display: grid; gap: 16px; }
.ol-public-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 0; }
.ol-participants { margin: 0; padding-left: 1.6em; columns: 2 220px; column-gap: 32px; }
.ol-participants li { padding: 4px 0; break-inside: avoid; overflow-wrap: anywhere; }
.ol-rules { white-space: pre-wrap; overflow-wrap: anywhere; }
.ol-add-row { align-items: flex-end; }
.ol-add-row .ol-field { flex: 1; min-width: 200px; }

/* ── Seeding and bracket ──────────────────────────────────────────────── */
.ol-seeding { margin: 0; padding: 0; list-style: none; counter-reset: seed; display: grid; gap: 4px; }
.ol-seeding li { counter-increment: seed; display: flex; align-items: center; gap: 10px; padding: 6px 8px;
  background: var(--surface-2); cursor: grab; }
.ol-seeding li::before { content: counter(seed); font: var(--text-label); color: var(--ink-muted); min-width: 2ch; text-align: right; }
.ol-seeding .ol-seed-name { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.ol-grip { color: var(--ink-muted); }
.ol-bracket { display: grid; gap: 12px; }
.ol-rounds { display: flex; gap: 16px; overflow-x: auto; padding-bottom: 8px; }
.ol-round { display: flex; flex-direction: column; justify-content: space-around; gap: 10px; min-width: 190px; flex: none; }
.ol-match { display: grid; gap: 2px; padding: 8px 10px; background: var(--surface-2); border-left: 3px solid transparent; }
.ol-match[data-status="ready"] { border-left-color: var(--brand-text); }
.ol-match[data-match] { cursor: pointer; }
.ol-match[data-match]:hover, .ol-match[data-match]:focus-visible { outline: 2px solid var(--brand-text); outline-offset: 1px; }
.ol-match-code { font: var(--text-label); color: var(--ink-muted); letter-spacing: .04em; }
.ol-match-row { display: flex; justify-content: space-between; gap: 8px; }
.ol-match-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ol-match-row.is-winner { font-weight: 700; }
.ol-match[data-status="bye"] { opacity: .6; }
.ol-champion { margin: 0; padding: 12px 16px; border: 1px solid var(--winner); color: var(--winner);
  font-family: Rajdhani, sans-serif; font-size: 1.3rem; }
.ol-dialog:not([open]) { display: none; }
.ol-dialog { border: 0; max-width: min(92vw, 420px); color: inherit; }
.ol-dialog::backdrop { background: rgb(0 0 0 / .6); }

/* ── Matches ───────────────────────────────────────────────────────────── */
.ol-mstatus { font: var(--text-label); letter-spacing: .04em; text-transform: uppercase; padding: 1px 6px;
  border: 1px solid var(--ink-muted); color: var(--ink-muted); margin-left: 6px; }
.ol-mstatus[data-status="ready"] { color: var(--brand-text); border-color: var(--brand-text); }
.ol-mstatus[data-status="called"], .ol-mstatus[data-status="awaiting"] { color: var(--warning); border-color: var(--warning); }
.ol-mstatus[data-status="live"] { color: var(--on-live); background: var(--live-fill); border-color: var(--live-fill); }
.ol-mstatus[data-status="dispute"] { color: var(--danger); border-color: var(--danger); }
.ol-match[data-status="live"] { border-left-color: var(--live); }
.ol-match[data-status="dispute"] { border-left-color: var(--danger); }
.ol-mlist { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.ol-mhead { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.ol-mhead h2 { margin: 0; }
.ol-mplayers { margin: 0; font-size: 1.1rem; overflow-wrap: anywhere; }
.ol-station { max-width: 140px; }
.ol-mymatch { border-left: 3px solid var(--brand-text); }

/* ── Player space ──────────────────────────────────────────────────────── */
.ol-hero { border-left: 3px solid var(--brand-text); }
.ol-hero[data-status="called"] { border-left-color: var(--warning); }
.ol-hero[data-status="live"] { border-left-color: var(--live); }
.ol-hero[data-status="live"] .ol-label { color: var(--live-text); }
.ol-hero-players { margin: 0; font-family: Rajdhani, sans-serif; font-size: 1.6rem; overflow-wrap: anywhere; }
.ol-checkin-card { border-left: 3px solid var(--warning); }
.ol-ps-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.ol-ps-item { display: flex; align-items: center; gap: 12px; padding: 10px 0; color: inherit; text-decoration: none;
  border-bottom: 1px solid var(--surface-2); }
.ol-ps-list li:last-child .ol-ps-item { border-bottom: 0; }
.ol-ps-text { display: grid; gap: 2px; flex: 1; min-width: 0; overflow-wrap: anywhere; }
.ol-date { display: grid; place-items: center; width: 48px; height: 52px; flex: none; background: var(--surface-2);
  font-family: Rajdhani, sans-serif; line-height: 1; }
.ol-date b { font-size: 1.3rem; }
.ol-date span { font-size: .7rem; letter-spacing: .06em; color: var(--ink-muted); }
.ol-winner-badge { font: var(--text-label); letter-spacing: .04em; text-transform: uppercase; padding: 2px 8px;
  color: var(--winner); border: 1px solid var(--winner); }
.ol-tabbar { display: none; }
@media (max-width: 720px) {
  .ol-tabbar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; background: var(--surface-1);
    border-top: 1px solid var(--surface-2); padding-bottom: env(safe-area-inset-bottom); }
  .ol-tabbar a { flex: 1; text-align: center; padding: 14px 4px; font: var(--text-label); letter-spacing: .04em;
    text-transform: uppercase; color: var(--ink-muted); text-decoration: none; }
  .ol-tabbar a[aria-current="page"] { color: var(--brand-text); }
  .ol-main:has(.ol-tabbar) { padding-bottom: 72px; }
}

/* ── Brand kit ─────────────────────────────────────────────────────────── */
.ol-brand-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: start; }
@media (max-width: 900px) { .ol-brand-grid { grid-template-columns: 1fr; } }
.ol-plain { border: 0; margin: 0; padding: 0; display: grid; gap: 12px; }
.ol-color-field input[type="color"] { width: 100%; height: 44px; padding: 2px; background: var(--surface-2); border: 1px solid var(--surface-2); }
.ol-brand-preview { --pv-primary: #2563eb; --pv-secondary: #475569; --pv-tertiary: #f59e0b; position: relative; min-height: 220px;
  padding: 48px 16px 16px; background: repeating-conic-gradient(#1f2937 0% 25%, #111827 0% 50%) 50% / 24px 24px;
  display: grid; align-content: end; gap: 10px; overflow: hidden; }
.ol-brand-preview img { position: absolute; max-width: 96px; max-height: 56px; object-fit: contain; }
.ol-brand-preview[data-position="top-left"] img { top: 10px; left: 10px; }
.ol-brand-preview[data-position="top-right"] img { top: 10px; right: 10px; }
.ol-brand-preview[data-position="bottom-left"] img { bottom: 10px; left: 10px; }
.ol-brand-preview[data-position="bottom-right"] img { bottom: 10px; right: 10px; }
.ol-brand-preview[data-position="off"] img { display: none; }
.ol-pv-bar { display: flex; align-items: center; gap: 10px; padding: 10px 14px; color: #fff; font-weight: 700;
  background: linear-gradient(90deg, var(--pv-primary), var(--pv-secondary)); }
.ol-pv-side { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ol-pv-right { text-align: right; }
.ol-pv-tag { font-size: .75em; opacity: .8; }
.ol-pv-score { font-size: 1.4rem; min-width: 1.4ch; text-align: center; }
.ol-pv-vs { font-size: .8rem; opacity: .7; }
/* Overlay style picker: each preview reads the style's --ov-* variables
   exactly like the overlays; "none" = their own defaults. */
.ol-field-legend { padding: 0; font: var(--text-label); letter-spacing: .04em; text-transform: uppercase; color: var(--ink-muted); }
.ov-style-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 140px), 1fr)); gap: 10px; }
.ov-style-card { position: relative; display: flex; flex-direction: column; gap: 6px; cursor: pointer; }
.ov-style-card input { position: absolute; opacity: 0; pointer-events: none; }
.ov-style-preview { display: flex; align-items: center; justify-content: space-between; gap: 6px;
  height: 56px; padding: 0 12px; border: 2px solid transparent; outline: 1px solid var(--ov-border, #1e293b);
  background: var(--ov-bg, linear-gradient(135deg, #111827, #0a0e17)); color: var(--ov-text, #f8fafc);
  border-radius: var(--ov-radius, 10px); box-shadow: var(--ov-shadow, none);
  font-family: var(--ov-font-display, 'Inter', sans-serif); font-style: var(--ov-font-style, normal);
  text-transform: var(--ov-transform, none); letter-spacing: var(--ov-letter-spacing, 0); font-weight: 700; }
.ov-style-preview .ov-p { font-size: 14px; }
.ov-style-preview .ov-s { font-size: 20px; color: var(--ov-text-muted, #94a3b8); }
.ov-style-preview .ov-a { color: var(--ov-primary, #2563eb); text-shadow: var(--ov-glow, none); }
.ov-style-preview .ov-b { color: var(--ov-secondary, #94a3b8); text-shadow: var(--ov-glow, none); }
.ov-style-name { font: var(--text-small); font-weight: 600; color: var(--ink-muted); }
.ov-style-card input:checked ~ .ov-style-preview { border-color: var(--live); }
.ov-style-card input:checked ~ .ov-style-name { color: var(--ink); }
.ov-style-card input:focus-visible ~ .ov-style-preview { border-color: var(--live); outline: 2px solid var(--live); }
.ol-pv-winner { justify-self: start; padding: 2px 10px; background: var(--pv-tertiary); color: #111; font-weight: 800; font-size: .8rem; }
.ol-pv-bar[data-anim="slide"] { animation: ol-pv-slide .6s ease; }
.ol-pv-bar[data-anim="fade"] { animation: ol-pv-fade .6s ease; }
.ol-pv-bar[data-anim="zoom"] { animation: ol-pv-zoom .5s ease; }
.ol-pv-bar[data-anim="pulse"] { animation: ol-pv-zoom .8s ease 2 alternate; }
.ol-pv-bar[data-anim="neon_sweep"] { animation: ol-pv-fade .8s ease; box-shadow: 0 0 18px var(--pv-primary); }
@keyframes ol-pv-slide { from { transform: translateY(40px); opacity: 0; } }
@keyframes ol-pv-fade { from { opacity: 0; } }
@keyframes ol-pv-zoom { from { transform: scale(.85); opacity: .3; } }
@media (prefers-reduced-motion: reduce) { .ol-pv-bar { animation: none !important; } }
.ol-sponsor-thumb { width: 72px; height: 32px; object-fit: contain; background: var(--surface-1); flex: none; }
.ol-map-row input:not([type]) { flex: 1 1 auto; min-width: 0; }
.ol-map-row input[type=number] { width: 72px; flex: none; }
.ol-pick { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.ol-pick input { width: 18px; height: 18px; min-height: 0; margin: 0; padding: 0; accent-color: var(--brand); }
.ol-grow { flex: 1 1 auto; min-width: 0; }

/* ── Public tournament page: stream ─────────────────────────────────────── */
.ol-stream-frame { position: relative; aspect-ratio: 16 / 9; background: var(--surface-2); }
.ol-stream-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.ol-live { display: inline-block; vertical-align: middle; padding: 2px 8px; font: var(--text-label); color: var(--on-live); background: var(--live-fill); }

/* ── Showcase of a structure ────────────────────────────────────────────── */
.ol-sc-socials { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: var(--space-3); }
.ol-sc-hero { display: flex; gap: var(--space-6); align-items: center; background: var(--surface-1); padding: var(--space-6); flex-wrap: wrap; }
.ol-sc-logo { width: 120px; height: 120px; object-fit: contain; flex: none; background: var(--surface-2); }
.ol-sc-mono { display: flex; align-items: center; justify-content: center; font: 700 48px/1 var(--font-display); color: var(--ink-muted); }
.ol-sc-id { flex: 1 1 260px; min-width: 0; display: grid; gap: var(--space-2); }
.ol-sc-id h1 { margin: 0; }
.ol-sc-desc { margin: 0; white-space: pre-line; color: var(--ink-muted); overflow-wrap: anywhere; }
.ol-sc-links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--space-2); }
.ol-sc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: var(--space-3); }
.ol-sc-tournament { display: grid; gap: var(--space-1); color: inherit; text-decoration: none; align-content: start; }
.ol-sc-tournament:hover { background: var(--surface-2); }
.ol-sc-tname { font: 700 22px/26px var(--font-display); overflow-wrap: anywhere; }
.ol-sc-champion { color: var(--winner); font: var(--text-label); }
.ol-sc-tournament .ol-live, .ol-sc-tournament .ol-status { justify-self: start; }

/* ── Public player / team profiles ──────────────────────────────────────── */
.ol-pp-gold { color: var(--winner); }
.ol-pp-history { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-2); }
.ol-pp-history li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px var(--space-3); padding: var(--space-3); background: var(--surface-2); }
.ol-pp-history li > a, .ol-pp-history li > .ol-small { grid-column: 1; overflow-wrap: anywhere; }
.ol-pp-res { grid-column: 2; grid-row: 1 / span 2; align-items: center; gap: var(--space-2); }

/* ── Legal pages ────────────────────────────────────────────────────────── */
.ol-terms { max-width: 72ch; }
.ol-terms h2 { margin-top: var(--space-6); }
.ol-terms p { line-height: 1.6; }

/* ── Round robin groups ─────────────────────────────────────────────────── */
.ol-group { display: grid; gap: var(--space-3); margin-bottom: var(--space-6); }
.ol-table-wrap { overflow-x: auto; }
.ol-standings { border-collapse: collapse; width: 100%; max-width: 640px; }
.ol-standings th, .ol-standings td { padding: 6px; white-space: nowrap; text-align: left; border-bottom: 1px solid var(--surface-2); }
.ol-standings th { font: var(--text-label); color: var(--ink-muted); }
.ol-standings .ol-num { text-align: right; font-variant-numeric: tabular-nums; }
.ol-standings tr.is-winner td { color: var(--winner); font-weight: 700; }

/* ── Public and sign-in pages (landing, login, register, CGU…) ──────────── */
.ol-pub { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; overflow-x: clip; }
.ol-pub-head, .ol-pub-main, .ol-pub-foot { width: 100%; max-width: 1100px; margin: 0 auto; padding-left: var(--space-4); padding-right: var(--space-4); }
.ol-pub-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-3);
  padding-top: var(--space-4); padding-bottom: var(--space-4); }
.ol-pub-nav { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); }
.ol-pub-main { flex: 1 0 auto; display: flex; flex-direction: column; gap: var(--space-8); padding-top: var(--space-6); padding-bottom: var(--space-8); }
.ol-pub-center { align-items: center; justify-content: center; }
.ol-pub-center > .ol-card { width: 100%; max-width: 440px; }
.ol-pub .ol-card > .ol-badge { align-self: flex-start; }
.ol-pub-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-2) var(--space-4);
  border-top: 1px solid var(--line); padding-top: var(--space-2); padding-bottom: var(--space-4); color: var(--ink-muted); }
.ol-pub-links { display: flex; flex-wrap: wrap; gap: 0 var(--space-4); }
.ol-pub-links a { display: inline-flex; align-items: center; min-height: 44px; }
.ol-btn-block { width: 100%; }
.ol-tap { display: inline-flex; align-items: center; align-self: flex-start; min-height: 44px; }
.ol-or { display: flex; align-items: center; gap: var(--space-3); color: var(--ink-muted); font: var(--text-small); }
.ol-or::before, .ol-or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.ol-notice-dismiss { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); overflow-wrap: anywhere; }
.ol-notice-dismiss .ol-btn { flex: none; width: 44px; padding: 0; }
.ol-choices { border: 0; margin: 0; padding: 0; min-width: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: var(--space-2); }
.ol-choices legend { padding: 0; margin-bottom: var(--space-2); }
.ol-choice { display: flex; align-items: flex-start; gap: var(--space-2); padding: var(--space-3); min-height: 44px;
  border: 1px solid var(--line); border-radius: var(--radius-sm); cursor: pointer; }
.ol-choice:has(input:checked) { border-color: var(--brand-text); box-shadow: inset 0 0 0 1px var(--brand-text); }
.ol-choice input { width: 18px; height: 18px; min-height: 0; margin: 2px 0 0; padding: 0; flex: none; accent-color: var(--brand); }
.ol-choice b, .ol-choice small { display: block; }
.ol-choice small { color: var(--ink-muted); font: var(--text-small); }
/* Language picker (partials/lang_picker.html) placed in the public header */
.ol-pub-head .lang-picker { position: relative; top: auto; right: auto; z-index: 30; font-family: var(--font-sans); }
.ol-pub-head .lang-picker .lp-toggle { min-height: 44px; background: transparent; color: var(--ink);
  border: 1px solid var(--control-border); border-radius: var(--radius-sm); backdrop-filter: none; }
.ol-pub-head .lang-picker .lp-toggle:hover { background: var(--surface-2); }
.ol-pub-head .lang-picker .lp-menu { background: var(--surface-1); color: var(--ink); border: 1px solid var(--line);
  border-radius: var(--radius-sm); box-shadow: 0 12px 32px rgb(0 0 0 / .35); }
.ol-pub-head .lang-picker .lp-item { min-height: 44px; }
.ol-pub-head .lang-picker .lp-item:hover { background: var(--surface-2); }
.ol-pub-head .lang-picker .lp-item.active { color: var(--brand-text); }
/* Landing */
.ol-pub-hero { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-4); padding: var(--space-8) 0; max-width: 760px; }
.ol-pub-hero h1 { font: var(--text-display); overflow-wrap: anywhere; }
.ol-pub-hero h1 span { color: var(--brand-text); }
.ol-pub-lead { margin: 0; max-width: 640px; color: var(--ink-muted); font-size: 18px; line-height: 28px; }
.ol-pub-features { display: flex; flex-direction: column; gap: var(--space-4); }
.ol-pub-features .ol-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); }
.ol-pub-features .ol-card p { margin: 0; }
@media (max-width: 600px) { .ol-pub-hero { padding: var(--space-4) 0; } .ol-pub-hero h1 { font: var(--text-h1); } }

/* ── Challonge / start.gg tournament page (Lot 10-1) ─────────────────── */
.ol-team-name img.ol-avatar { object-fit: cover; flex: none; }
.ol-tag-input { width: 7ch; min-height: 32px; text-transform: uppercase; }
.ol-ext-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.ol-ext-list li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 16px;
  padding: 10px 0; border-bottom: 1px solid var(--surface-2); }
.ol-ext-list li:last-child { border-bottom: 0; }
/* Platform administration (/admin) */
.ol-adm-dialog { max-width: min(92vw, 560px); }
#tab-comptes .ol-badge { white-space: nowrap; }
.ol-adm-dialog fieldset { border: 1px solid var(--line); padding: var(--space-3); margin: 0 0 var(--space-3); display: grid; gap: var(--space-2); }
.ol-adm-logo { margin: 0; display: grid; gap: var(--space-1); justify-items: start; }
.ol-adm-logo img { max-width: 160px; max-height: 64px; object-fit: contain; background: var(--surface-2); padding: var(--space-2); }

/* ── Game stations: colour, stream station, printable sheet (2026-10-30) ──
   Each station row starts with a chip of its colour; the stream station is
   listed first, edged in its colour and marked "Stream", and the Matches tab
   opens on what is on it. */
.ol-st-chip { flex: none; width: 14px; height: 14px; border-radius: var(--radius-pill); background: var(--st-color); }
.ol-station-row.is-stream { padding: var(--space-2) var(--space-3); border-left: 4px solid var(--st-color);
  background: color-mix(in srgb, var(--st-color) 10%, transparent); }
.ol-badge-stream { background: var(--live-fill); color: var(--on-live); border-color: var(--live-fill); }
.ol-st-color input { width: 36px; height: 30px; padding: 0 2px; border: 1px solid var(--control-border);
  border-radius: var(--radius-sm); background: transparent; cursor: pointer; }
.ol-stream-now { border-left: 4px solid var(--live); }
.ol-stream-now h2 { display: flex; align-items: center; gap: var(--space-2); }
.ol-stream-now .ol-mplayers { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); margin: 0; }

/* ── Light theme (charter of 2026-10-29: contrasted light theme) ─────────
   Dark keeps its look: every rule below only applies in light. Cards get a
   1 px `line` border and `shadow-card`; states become tinted pills; live and
   winner become full pills. Cut cards keep their clip-path: the card itself
   is painted in `line` and its ::before, 1 px inside, holds the fill, so the
   edge follows the cut corners without filters (a stack of drop-shadow
   filters on every card made Chrome lag). The inner polygon, 1 px inside,
   has a cut of --cut - (2 - √2) px. ─────────────────────────────────── */
:root { --ol-card-edge: 0; }
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) { --ol-card-edge: 1px solid var(--line); }
  :root:not([data-theme="dark"]) .ol-card.ol-cut:not([class*="ol-lp-"]), :root:not([data-theme="dark"]) .ol-kpi.ol-cut, :root:not([data-theme="dark"]) .ol-sc-hero.ol-cut { position: relative; isolation: isolate; background: var(--line); border: 0; }
  :root:not([data-theme="dark"]) .ol-card.ol-cut:not([class*="ol-lp-"])::before, :root:not([data-theme="dark"]) .ol-kpi.ol-cut::before, :root:not([data-theme="dark"]) .ol-sc-hero.ol-cut::before { content: ""; position: absolute; inset: 1px; z-index: -1; pointer-events: none; background: var(--ol-cut-bg, var(--surface-1)); clip-path: polygon(0 0, calc(100% - var(--cut) + .59px) 0, 100% calc(var(--cut) - .59px), 100% 100%, calc(var(--cut) - .59px) 100%, 0 calc(100% - var(--cut) + .59px)); box-shadow: inset 3px 0 0 var(--ol-accent, transparent); }
  :root:not([data-theme="dark"]) .ol-sc-tournament:hover { --ol-cut-bg: var(--surface-2); }
  :root:not([data-theme="dark"]) .ol-hero.ol-cut, :root:not([data-theme="dark"]) .ol-mymatch.ol-cut { --ol-accent: var(--brand-text); }
  :root:not([data-theme="dark"]) .ol-hero.ol-cut[data-status="called"], :root:not([data-theme="dark"]) .ol-checkin-card.ol-cut { --ol-accent: var(--warning); }
  :root:not([data-theme="dark"]) .ol-hero.ol-cut[data-status="live"] { --ol-accent: var(--live); }
  :root:not([data-theme="dark"]) .ol-badge:not([class*="ol-badge-"]):not([data-state]), :root:not([data-theme="dark"]) .ol-status:not([data-status="running"]), :root:not([data-theme="dark"]) .ol-reg-status, :root:not([data-theme="dark"]) .ol-mstatus:not([data-status="live"]) { background: var(--surface-2); }
  :root:not([data-theme="dark"]) .ol-status[data-status="registration_closed"], :root:not([data-theme="dark"]) .ol-status[data-status="checkin"], :root:not([data-theme="dark"]) .ol-reg-status[data-status="pending"], :root:not([data-theme="dark"]) .ol-reg-status[data-status="waitlist"], :root:not([data-theme="dark"]) .ol-mstatus[data-status="called"], :root:not([data-theme="dark"]) .ol-mstatus[data-status="awaiting"], :root:not([data-theme="dark"]) .ol-badge-warning { background: var(--warning-bg); border-color: transparent; }
  :root:not([data-theme="dark"]) .ol-status[data-status="finished"], :root:not([data-theme="dark"]) .ol-reg-status[data-status="confirmed"], :root:not([data-theme="dark"]) .ol-badge-success, :root:not([data-theme="dark"]) .ol-badge[data-state="on"] { background: var(--success-bg); border-color: transparent; }
  :root:not([data-theme="dark"]) .ol-status[data-status="cancelled"], :root:not([data-theme="dark"]) .ol-mstatus[data-status="dispute"] { background: var(--danger-bg); border-color: transparent; }
  :root:not([data-theme="dark"]) .ol-winner-badge, :root:not([data-theme="dark"]) .ol-champion { background: var(--winner-fill); color: var(--on-winner); border-color: var(--winner-fill); }
  :root:not([data-theme="dark"]) .ol-sc-champion, :root:not([data-theme="dark"]) .ol-pp-gold, :root:not([data-theme="dark"]) .ol-standings tr.is-winner td { color: var(--ink); font-weight: 700; }
  :root:not([data-theme="dark"]) .ol-sc-champion::before, :root:not([data-theme="dark"]) .ol-pp-gold::before, :root:not([data-theme="dark"]) .ol-standings tr.is-winner td:first-child::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 6px; border-radius: var(--radius-pill); background: var(--winner-fill); vertical-align: middle; }
  :root:not([data-theme="dark"]) .ol-table-wrap { box-shadow: var(--shadow-card); }
  :root:not([data-theme="dark"]) .ol-table th { background: var(--surface-2); }
  :root:not([data-theme="dark"]) .ol-notice { background: var(--surface-1); }
}
:root[data-theme="light"] { --ol-card-edge: 1px solid var(--line); }
:root[data-theme="light"] .ol-card.ol-cut:not([class*="ol-lp-"]), :root[data-theme="light"] .ol-kpi.ol-cut, :root[data-theme="light"] .ol-sc-hero.ol-cut { position: relative; isolation: isolate; background: var(--line); border: 0; }
:root[data-theme="light"] .ol-card.ol-cut:not([class*="ol-lp-"])::before, :root[data-theme="light"] .ol-kpi.ol-cut::before, :root[data-theme="light"] .ol-sc-hero.ol-cut::before { content: ""; position: absolute; inset: 1px; z-index: -1; pointer-events: none; background: var(--ol-cut-bg, var(--surface-1)); clip-path: polygon(0 0, calc(100% - var(--cut) + .59px) 0, 100% calc(var(--cut) - .59px), 100% 100%, calc(var(--cut) - .59px) 100%, 0 calc(100% - var(--cut) + .59px)); box-shadow: inset 3px 0 0 var(--ol-accent, transparent); }
:root[data-theme="light"] .ol-sc-tournament:hover { --ol-cut-bg: var(--surface-2); }
:root[data-theme="light"] .ol-hero.ol-cut, :root[data-theme="light"] .ol-mymatch.ol-cut { --ol-accent: var(--brand-text); }
:root[data-theme="light"] .ol-hero.ol-cut[data-status="called"], :root[data-theme="light"] .ol-checkin-card.ol-cut { --ol-accent: var(--warning); }
:root[data-theme="light"] .ol-hero.ol-cut[data-status="live"] { --ol-accent: var(--live); }
:root[data-theme="light"] .ol-badge:not([class*="ol-badge-"]):not([data-state]), :root[data-theme="light"] .ol-status:not([data-status="running"]), :root[data-theme="light"] .ol-reg-status, :root[data-theme="light"] .ol-mstatus:not([data-status="live"]) { background: var(--surface-2); }
:root[data-theme="light"] .ol-status[data-status="registration_closed"], :root[data-theme="light"] .ol-status[data-status="checkin"], :root[data-theme="light"] .ol-reg-status[data-status="pending"], :root[data-theme="light"] .ol-reg-status[data-status="waitlist"], :root[data-theme="light"] .ol-mstatus[data-status="called"], :root[data-theme="light"] .ol-mstatus[data-status="awaiting"], :root[data-theme="light"] .ol-badge-warning { background: var(--warning-bg); border-color: transparent; }
:root[data-theme="light"] .ol-status[data-status="finished"], :root[data-theme="light"] .ol-reg-status[data-status="confirmed"], :root[data-theme="light"] .ol-badge-success, :root[data-theme="light"] .ol-badge[data-state="on"] { background: var(--success-bg); border-color: transparent; }
:root[data-theme="light"] .ol-status[data-status="cancelled"], :root[data-theme="light"] .ol-mstatus[data-status="dispute"] { background: var(--danger-bg); border-color: transparent; }
:root[data-theme="light"] .ol-winner-badge, :root[data-theme="light"] .ol-champion { background: var(--winner-fill); color: var(--on-winner); border-color: var(--winner-fill); }
:root[data-theme="light"] .ol-sc-champion, :root[data-theme="light"] .ol-pp-gold, :root[data-theme="light"] .ol-standings tr.is-winner td { color: var(--ink); font-weight: 700; }
:root[data-theme="light"] .ol-sc-champion::before, :root[data-theme="light"] .ol-pp-gold::before, :root[data-theme="light"] .ol-standings tr.is-winner td:first-child::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 6px; border-radius: var(--radius-pill); background: var(--winner-fill); vertical-align: middle; }
:root[data-theme="light"] .ol-table-wrap { box-shadow: var(--shadow-card); }
:root[data-theme="light"] .ol-table th { background: var(--surface-2); }
:root[data-theme="light"] .ol-notice { background: var(--surface-1); }

/* ── Landing and sign-in: content and motion (LOT A-4a) ───────────────────
   Entrance in cascade on load (.ol-anim + --i), then motion that keeps going:
   drifting brand halos, a pulsing glow behind the sign-in card, sheens along
   the lit top edges, a live overlay preview (score, bracket, progress bar).
   Relief: cards are lit from the top and cast a shadow; the cut corners clip
   box-shadow, so cut cards get theirs from a drop-shadow filter on their
   container. Continuous motion is transform/opacity only. Fill mode
   "backwards": once played, the element is back to its own style, so hovers
   keep working. Reduced motion: no movement. */
@keyframes ol-rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes ol-rise-zoom { from { opacity: 0; transform: translateY(12px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes ol-live-pulse { 50% { opacity: .35; transform: scale(.8); } }
@keyframes ol-live-ring { from { opacity: .8; transform: scale(1); } to { opacity: 0; transform: scale(3); } }
@keyframes ol-score-bump { 0% { opacity: 0; transform: translateY(-50%) scale(1.3); color: var(--live-text); }
  40% { opacity: 1; transform: scale(1.2); color: var(--live-text); text-shadow: 0 0 18px var(--live); }
  100% { color: inherit; } }
@keyframes ol-score-flash { 0%, 40% { color: var(--live-text); } 100% { color: inherit; } }
@keyframes ol-score-breathe { 50% { transform: scale(1.08); } }
@keyframes ol-bar-grow { from { transform: scaleX(0); } }
@keyframes ol-grid-drift { to { background-position: 0 0, 48px 48px, 48px 48px; } }
@keyframes ol-bar-fill { from { transform: scaleX(.12); } to { transform: scaleX(1); } }
@keyframes ol-drift-a { to { transform: translate(18vw, 12vh) scale(1.15); } }
@keyframes ol-drift-b { to { transform: translate(-16vw, -14vh) scale(.88); } }
@keyframes ol-halo-pulse { 0%, 100% { opacity: .45; transform: translate(-50%, -50%) scale(.92); }
  50% { opacity: .9; transform: translate(-50%, -50%) scale(1.06); } }
@keyframes ol-sheen { 0% { transform: translateX(-100%); } 55%, 100% { transform: translateX(250%); } }
@keyframes ol-field-glow { 50% { border-color: var(--brand-text);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand-text) 30%, transparent), 0 0 18px color-mix(in srgb, var(--brand) 45%, transparent); } }
.ol-anim, .ol-lp-hero h1 { animation: ol-rise .5s cubic-bezier(.2, .7, .2, 1) backwards; animation-delay: calc(var(--i, 0) * 70ms); }
.ol-anim-zoom { animation-name: ol-rise-zoom; }
.ol-lp-hero h1 { --i: 1; }

.ol-lp-hero { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); align-items: center; gap: var(--space-8); }
.ol-lp-hero .ol-pub-hero { max-width: none; position: relative; isolation: isolate; }
/* A brand halo drifts behind the title; the highlighted words glow. */
.ol-lp-hero .ol-pub-hero::before { content: ""; position: absolute; z-index: -1; left: -10%; top: 0; width: 80%; aspect-ratio: 1;
  pointer-events: none; border-radius: 50%; opacity: .35; filter: blur(30px); will-change: transform;
  background: radial-gradient(circle, var(--brand) 0%, transparent 65%);
  animation: ol-drift-a 16s ease-in-out infinite alternate; }
.ol-lp-hero h1 span { text-shadow: 0 0 28px color-mix(in srgb, var(--brand) 70%, transparent); }
.ol-lp-section { display: flex; flex-direction: column; gap: var(--space-4); }
.ol-lp-section > p { margin: 0; max-width: 680px; }
.ol-lp .ol-card h3, .ol-lp .ol-card p { margin: 0; }

/* Overlay preview (shapes of the score overlay: score block, VS badge, bracket bars). */
.ol-lp-preview { position: relative; overflow: hidden; display: flex; flex-direction: column; gap: var(--space-3); min-width: 0;
  padding: var(--space-6); background: linear-gradient(180deg, var(--surface-2), var(--surface-1) 60%); border: 1px solid var(--line);
  box-shadow: inset 0 2px 0 var(--brand), 0 24px 60px -12px rgb(0 0 0 / .6),
    0 0 60px -10px color-mix(in srgb, var(--brand) 45%, transparent); }
.ol-lp-pv-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-2);
  font: var(--text-label); letter-spacing: .04em; text-transform: uppercase; color: var(--ink-muted); }
.ol-lp-pv-live { display: inline-flex; align-items: center; gap: 6px; color: var(--live-text); }
.ol-lp-pv-live i { position: relative; width: 8px; height: 8px; border-radius: var(--radius-pill); background: var(--live);
  animation: ol-live-pulse 1.5s ease-in-out infinite; }
.ol-lp-pv-live i::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: var(--live);
  animation: ol-live-ring 1.5s ease-out infinite; }
.ol-lp-pv-score { display: grid; grid-template-columns: minmax(0, 1fr) auto auto auto minmax(0, 1fr); align-items: center;
  gap: var(--space-3); padding: var(--space-4); background: var(--surface-2); }
.ol-lp-pv-name { min-width: 0; font: var(--text-h3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; transition: color .3s; }
.ol-lp-pv-name:last-child { text-align: right; }
.ol-lp-pv-name.is-winner { color: var(--winner); }
/* Between two score changes (script, every 2.4 s) the numbers breathe. */
.ol-lp-pv-num { display: inline-block; min-width: 1ch; text-align: center; font: var(--text-score); font-variant-numeric: tabular-nums;
  animation: ol-score-breathe 3.2s ease-in-out infinite; }
.ol-lp-pv-num.is-bump { animation: ol-score-bump .7s ease-out, ol-score-breathe 3.2s ease-in-out .7s infinite; }
.ol-lp-pv-vs { padding: 4px 8px; font: var(--text-label); background: var(--brand); color: var(--on-brand);
  clip-path: polygon(0 0, calc(100% - 5px) 0, 100% 5px, 100% 100%, 5px 100%, 0 calc(100% - 5px)); }
.ol-lp-pv-bracket { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(4, 10px);
  grid-auto-flow: column; gap: var(--space-2) var(--space-6); }
/* Bracket bars: drawn once, then their fill keeps advancing and receding, staggered. */
.ol-lp-pv-bracket span { position: relative; overflow: hidden; background: var(--surface-2); border-left: 3px solid var(--brand);
  transform-origin: left; animation: ol-bar-grow .6s cubic-bezier(.2, .7, .2, 1) backwards;
  animation-delay: calc(450ms + var(--i, 0) * 90ms); }
.ol-lp-pv-bracket span::after { content: ""; position: absolute; inset: 0; transform-origin: left;
  background: linear-gradient(90deg, color-mix(in srgb, var(--brand) 55%, transparent), color-mix(in srgb, var(--brand-text) 75%, transparent));
  animation: ol-bar-fill 2.8s ease-in-out infinite alternate; animation-delay: calc(var(--i, 0) * -450ms); }
.ol-lp-pv-bracket span:nth-child(5) { grid-row: 1 / 3; align-self: center; height: 10px; }
.ol-lp-pv-bracket span:nth-child(6) { grid-row: 3 / 5; align-self: center; height: 10px; }
.ol-lp-pv-bar { position: relative; padding-top: var(--space-3); border-top: 1px solid var(--line); font: var(--text-label);
  letter-spacing: .04em; text-transform: uppercase; color: var(--ink-muted); }
.ol-lp-pv-bar::before { content: ""; position: absolute; left: 0; top: -1px; width: 100%; height: 2px; background: var(--brand-text);
  transform-origin: left; animation: ol-bar-grow 4s ease-in-out infinite alternate; }

/* Steps, feature cards, plans: lit from the top, a shadow under, a lift on hover. */
.ol-lp-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-4);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.ol-lp-step-num { font: var(--text-score); color: var(--brand-text); font-variant-numeric: tabular-nums;
  text-shadow: 0 0 20px color-mix(in srgb, var(--brand) 60%, transparent); }
.ol-lp-icon { flex: none; color: var(--ink-muted); transition: color .2s; }
.ol-lp-steps, .ol-lp .ol-grid, .ol-lp-plans { filter: drop-shadow(0 14px 22px rgb(0 0 0 / .45)); }
.ol-lp-card, .ol-lp-step, .ol-lp-plan, .ol-lp-formats-card, .ol-lp-cta { position: relative;
  background: linear-gradient(180deg, var(--surface-2), var(--surface-1) 65%);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--line) 70%, transparent); }
.ol-lp-card::before, .ol-lp-step::before, .ol-lp-plan::before, .ol-lp-formats-card::before { content: ""; position: absolute;
  left: 0; right: 0; top: 0; height: 2px; pointer-events: none; opacity: .55; transition: opacity .2s;
  background: linear-gradient(90deg, transparent, var(--brand-text) 30%, var(--brand) 70%, transparent); }
.ol-lp-card, .ol-lp-step, .ol-lp-plan { transition: transform .2s ease, filter .2s ease; }
.ol-lp-card:hover, .ol-lp-step:hover, .ol-lp-plan:hover { transform: translateY(-4px); filter: brightness(1.12); }
.ol-lp-card:hover::before, .ol-lp-step:hover::before, .ol-lp-plan:hover::before { opacity: 1; }
.ol-lp-card:hover .ol-lp-icon { color: var(--brand-text); }

.ol-lp-formats-card h3 { font: var(--text-label); letter-spacing: .04em; text-transform: uppercase; color: var(--ink-muted); }
.ol-lp-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--space-2); }
.ol-lp-chip { padding: 6px 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); font: var(--text-body-strong);
  overflow-wrap: anywhere; transition: border-color .15s, color .15s; }
.ol-lp-chip:hover { border-color: var(--brand-text); color: var(--brand-text); }

.ol-lp-plans { display: grid; gap: var(--space-4); grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.ol-lp-plan .ol-btn { margin-top: auto; }
.ol-lp-plan-featured { background: linear-gradient(180deg, color-mix(in srgb, var(--brand) 22%, var(--surface-2)), var(--surface-2) 55%);
  box-shadow: inset 0 3px 0 var(--brand), inset 0 0 0 1px color-mix(in srgb, var(--brand) 45%, transparent); }
.ol-lp-plan-featured::before { opacity: 1; }
.ol-lp-checks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--space-2); }
.ol-lp-checks li { position: relative; padding-left: 24px; }
.ol-lp-checks li::before { content: ""; position: absolute; left: 2px; top: 6px; width: 12px; height: 6px;
  border-left: 2px solid var(--success); border-bottom: 2px solid var(--success); transform: rotate(-45deg); }

/* FAQ: native <details>, no script. */
.ol-lp-faq-list { display: flex; flex-direction: column; gap: var(--space-2); }
.ol-lp-faq-item { background: var(--surface-1); border: 1px solid var(--line); border-radius: var(--radius-sm);
  box-shadow: 0 8px 18px -10px rgb(0 0 0 / .5); transition: border-color .2s; }
.ol-lp-faq-item[open] { border-color: color-mix(in srgb, var(--brand-text) 50%, var(--line)); }
.ol-lp-faq-item summary { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3);
  min-height: 44px; padding: var(--space-3) var(--space-4); font: var(--text-body-strong); cursor: pointer; list-style: none;
  transition: color .15s; }
.ol-lp-faq-item summary::-webkit-details-marker { display: none; }
.ol-lp-faq-item summary::after { content: "+"; flex: none; font: var(--text-h3); color: var(--brand-text); transition: transform .2s; }
.ol-lp-faq-item summary:hover { color: var(--brand-text); }
.ol-lp-faq-item[open] summary::after { transform: rotate(45deg); }
.ol-lp-faq-item p { margin: 0; padding: 0 var(--space-4) var(--space-4); }
.ol-lp-faq-item[open] p { animation: ol-rise .3s ease-out; }

.ol-lp-cta { overflow: hidden; align-items: flex-start; padding: var(--space-8);
  background: linear-gradient(120deg, var(--surface-2) 40%, color-mix(in srgb, var(--brand) 28%, var(--surface-2)));
  box-shadow: inset 4px 0 0 var(--brand), inset 0 0 0 1px color-mix(in srgb, var(--brand) 35%, transparent); }

/* Sections in bands: a faint dot pattern under a brand glow, fading at the edges. */
.ol-lp-steps-section, .ol-lp-formats, .ol-lp-faq { position: relative; isolation: isolate; }
.ol-lp-steps-section::before, .ol-lp-formats::before, .ol-lp-faq::before { content: ""; position: absolute; z-index: -1;
  inset: calc(-1 * var(--space-6)) 0; pointer-events: none;
  background: radial-gradient(ellipse at 15% 0%, color-mix(in srgb, var(--brand) 16%, transparent), transparent 60%),
    radial-gradient(color-mix(in srgb, var(--brand-text) 22%, transparent) 1px, transparent 1.5px) 0 0 / 22px 22px;
  -webkit-mask-image: linear-gradient(transparent, #000 15%, #000 85%, transparent);
  mask-image: linear-gradient(transparent, #000 15%, #000 85%, transparent); }

/* Sheen: a light runs along the lit top edge of the preview, the featured plan and the
   sign-in card, then across the call to action, every few seconds. */
.ol-lp-preview::after, .ol-lp-plan-featured::after, .ol-auth-card::after, .ol-lp-cta::after { content: ""; position: absolute;
  left: 0; top: 0; width: 40%; height: 2px; pointer-events: none;
  background: linear-gradient(90deg, transparent, #fff, transparent); opacity: .8;
  animation: ol-sheen 3.6s ease-in-out infinite; }
.ol-lp-plan-featured::after { animation-delay: 1.2s; }
.ol-lp-cta::after { height: 100%; opacity: .07; animation-duration: 6s; }

/* Primary buttons: lit from the top, a sheen crosses them every few seconds; the cut
   corners clip the focus ring, so it goes inside. */
.ol-lp .ol-btn-primary, .ol-auth-card .ol-btn-primary { position: relative; overflow: hidden; transition: background-color .15s, filter .15s;
  background-image: linear-gradient(180deg, rgb(255 255 255 / .16), transparent 55%); box-shadow: inset 0 1px 0 rgb(255 255 255 / .3); }
.ol-lp .ol-btn-primary::after, .ol-auth-card .ol-btn-primary::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, .28) 50%, transparent 65%);
  transform: translateX(-100%); animation: ol-sheen 4.5s ease-in-out 1.5s infinite; }
.ol-lp .ol-btn-primary:hover, .ol-auth-card .ol-btn-primary:hover { filter: brightness(1.15); }
.ol-lp .ol-btn-primary:focus-visible, .ol-auth-card .ol-btn-primary:focus-visible { outline: 2px solid var(--on-brand); outline-offset: -5px; }

/* Sign-in: the card rises and zooms in, then its fields in cascade. Behind it, all the time:
   two brand halos drift, the grid slides under a vignette, a glow pulses under the card. */
.ol-auth-bg { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; opacity: .6;
  background-image: radial-gradient(ellipse at center, transparent 15%, var(--ground) 75%),
    linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-image: radial-gradient(ellipse at center, transparent 15%, var(--ground) 75%),
    linear-gradient(color-mix(in srgb, var(--brand-text) 35%, transparent) 1px, transparent 1px),
    linear-gradient(90deg, color-mix(in srgb, var(--brand-text) 35%, transparent) 1px, transparent 1px);
  background-size: 100% 100%, 48px 48px, 48px 48px; background-position: 0 0, 0 0, 0 0;
  animation: ol-grid-drift 14s linear infinite; }
.ol-auth-bg::before, .ol-auth-bg::after { content: ""; position: absolute; border-radius: 50%; filter: blur(30px); will-change: transform; }
.ol-auth-bg::before { left: -12vmax; top: -14vmax; width: 60vmax; height: 60vmax; opacity: .55;
  background: radial-gradient(circle, var(--brand) 0%, transparent 65%); animation: ol-drift-a 18s ease-in-out infinite alternate; }
.ol-auth-bg::after { right: -14vmax; bottom: -16vmax; width: 55vmax; height: 55vmax; opacity: .45;
  background: radial-gradient(circle, var(--brand-text) 0%, transparent 65%); animation: ol-drift-b 22s ease-in-out infinite alternate; }
.ol-auth-stage { position: relative; isolation: isolate; }
.ol-auth-stage::before { content: ""; position: absolute; z-index: -1; left: 50%; top: 50%; width: min(620px, 100%); aspect-ratio: 1;
  pointer-events: none; border-radius: 50%; filter: blur(20px); will-change: transform, opacity;
  background: radial-gradient(circle, color-mix(in srgb, var(--brand) 55%, transparent) 0%, transparent 62%);
  animation: ol-halo-pulse 3.6s ease-in-out infinite; }
/* The cut corners clip box-shadow: the card's drop shadow comes from its wrapper. */
.ol-auth-lift { width: 100%; max-width: 440px; filter: drop-shadow(0 24px 30px rgb(0 0 0 / .6)); }
.ol-auth-lift > .ol-card { width: 100%; }
.ol-auth-card { position: relative; animation: ol-rise-zoom .45s cubic-bezier(.2, .7, .2, 1) backwards;
  background: linear-gradient(180deg, var(--surface-2), var(--surface-1) 55%);
  box-shadow: inset 0 2px 0 var(--brand), inset 0 0 0 1px var(--line), inset 0 3px 0 rgb(255 255 255 / .06); }
.ol-auth-card input { transition: border-color .2s; }
.ol-auth-card input:focus { border-color: var(--brand-text); animation: ol-field-glow 2.5s ease-in-out infinite; }

@media (max-width: 900px) { .ol-lp-hero { grid-template-columns: minmax(0, 1fr); gap: var(--space-4); } }
@media (max-width: 600px) {
  .ol-lp-preview { padding: var(--space-4); }
  .ol-lp-pv-score { gap: var(--space-2); padding: var(--space-3); }
  .ol-lp-pv-num { font: var(--text-h1); }
  .ol-lp-cta { padding: var(--space-6); }
}
@media (prefers-reduced-motion: reduce) {
  .ol-anim, .ol-lp-hero h1, .ol-auth-card, .ol-auth-bg, .ol-auth-bg::before, .ol-auth-bg::after, .ol-auth-stage::before,
  .ol-auth-card input:focus, .ol-lp-hero .ol-pub-hero::before, .ol-lp-pv-num, .ol-lp-pv-live i, .ol-lp-pv-live i::after,
  .ol-lp-pv-bracket span, .ol-lp-pv-bracket span::after, .ol-lp-pv-bar::before, .ol-lp-faq-item[open] p,
  .ol-lp-preview::after, .ol-lp-plan-featured::after, .ol-auth-card::after, .ol-lp-cta::after { animation: none !important; }
  .ol-lp-pv-live i::after, .ol-lp-preview::after, .ol-lp-plan-featured::after, .ol-auth-card::after, .ol-lp-cta::after { display: none; }
  .ol-auth-card input:focus { box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand-text) 30%, transparent); }
  .ol-lp-pv-num.is-bump { animation: ol-score-flash .6s ease-out !important; }
  .ol-lp-card:hover, .ol-lp-step:hover, .ol-lp-plan:hover { transform: none; }
  .ol-lp .ol-btn-primary::after, .ol-auth-card .ol-btn-primary::after { display: none; }
}

/* Dashboard « Premiers pas » (Lot 9-2) */
.ol-fs { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--space-2); }
.ol-fs-step { display: grid; grid-template-columns: 2.25rem 1fr auto auto; align-items: center; gap: var(--space-3);
  padding: var(--space-3); border: 1px solid var(--line); border-radius: var(--radius-sm); }
.ol-fs-step[aria-current="step"] { border-color: var(--brand); }
.ol-fs-num { width: 2.25rem; height: 2.25rem; display: grid; place-items: center; border-radius: 50%;
  border: 1px solid var(--line); font-family: var(--font-display); font-weight: 700; }
.ol-fs-step[data-done="true"] .ol-fs-num { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }
.ol-fs-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ol-fs-state { color: var(--ink-muted); white-space: nowrap; }
.ol-fs-step .ol-btn { min-height: 44px; }
.ol-fs-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--space-2); }
.ol-fs-list li { display: flex; justify-content: space-between; align-items: center; gap: var(--space-3); flex-wrap: wrap; }
@media (max-width: 600px) {
  .ol-fs-step { grid-template-columns: 2.25rem 1fr; }
  .ol-fs-state { grid-column: 2; }
  .ol-fs-step .ol-btn { grid-column: 1 / -1; justify-self: stretch; text-align: center; }
  .ol-fs-step[data-done="true"] .ol-btn { display: none; }   /* done: the title is enough */
}

/* ── Connexions (Lot 9-5) ──────────────────────────────────────────────── */
#ol-conn-challonge, #ol-conn-startgg, #ol-conn-notifications { margin-bottom: 16px; }
.ol-conn-events { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 4px 16px; }
.ol-conn-events .ol-check { align-items: flex-start; padding: 6px 0; }
.ol-conn-events .ol-check input { margin-top: 3px; flex: none; }
#ol-conn-notifications details ol { margin: 6px 0 6px 18px; padding: 0; }
.ol-conn-list { list-style: none; margin: 8px 0 0; padding: 0; }
.ol-conn-list li { padding: 8px 0; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }

