/* Pip Temple layout and components. Colours/fonts come from brand.css only. */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 400 15px/1.55 var(--font-ui);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--fg); }
p a, .link { color: var(--accent); }
p a:hover, .link:hover { text-decoration: underline; text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
code, .num { font-family: var(--font-num); font-variant-numeric: tabular-nums; }
code { font-size: .88em; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; letter-spacing: -.01em; text-wrap: balance; }
p { margin: 0; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---- Containers -------------------------------------------------------- */
.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding-inline: 24px; }
.wrap-narrow { max-width: 760px; }
@media (max-width: 560px) { .wrap { padding-inline: 16px; } }

/* ---- Notice banner (simulated-only disclosure) ------------------------- */
.notice-bar { border-bottom: 1px solid var(--line); background: var(--surface); color: var(--fg-muted); font-size: 13px; }
.notice-bar .wrap { display: flex; gap: 8px 16px; justify-content: center; flex-wrap: wrap; padding-block: 7px; text-align: center; }
.notice-bar strong { color: var(--fg); font-weight: 500; }

/* ---- Top navigation ---------------------------------------------------- */
.nav { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(1.6) blur(10px); -webkit-backdrop-filter: saturate(1.6) blur(10px); border-bottom: 1px solid var(--line); }
.nav .wrap { display: flex; align-items: center; gap: 28px; height: 60px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--fg); flex: none; }
.brand svg { height: 26px; width: auto; }
.brand span { font-weight: 600; font-size: 17px; letter-spacing: -.02em; }
.nav-links { display: flex; gap: 22px; font-size: 14px; color: var(--fg-muted); }
.nav-links a[aria-current="page"] { color: var(--fg); }
.nav-right { margin-left: auto; display: flex; align-items: center; gap: 12px; font-size: 14px; }
.nav-right .who { color: var(--fg-muted); }
@media (max-width: 760px) { .nav-links { display: none; } .nav .wrap { gap: 12px; } .nav-right .who { display: none; } }

/* ---- Buttons ----------------------------------------------------------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 18px;
  border-radius: var(--radius-sm); border: 1px solid transparent; font: 500 14px/1 var(--font-ui); cursor: pointer;
  transition: background-color .15s, border-color .15s, color .15s; white-space: nowrap; }
.btn-primary { background: var(--invert-bg); color: var(--invert-fg); }
.btn-primary:hover { color: var(--invert-fg); opacity: .88; }
.btn-secondary { background: var(--bg); color: var(--fg); border-color: var(--line-strong); }
.btn-secondary:hover { background: var(--surface-2); }
.btn-ghost { background: none; color: var(--fg-muted); padding: 0 10px; }
.btn-ghost:hover { color: var(--fg); background: var(--surface-2); }
.btn-sm { height: 32px; padding: 0 12px; font-size: 13px; }
.btn-lg { height: 48px; padding: 0 24px; font-size: 15px; }
.btn-block { width: 100%; }
form.inline { display: inline; margin: 0; }

/* ---- Pills ------------------------------------------------------------- */
.pill { display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 9px; border-radius: 999px; font-size: 12px;
  font-weight: 500; border: 1px solid var(--line-strong); color: var(--fg-muted); white-space: nowrap; }
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pill-live { color: var(--up); border-color: color-mix(in srgb, var(--up) 40%, var(--line)); }
.pill-open { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); }
.pill-warn { color: var(--warn); border-color: color-mix(in srgb, var(--warn) 45%, var(--line)); }
.pill-demo { color: var(--fg); }
.pill-demo::before { display: none; }

/* ---- Alerts ------------------------------------------------------------ */
.alert { border-radius: var(--radius-sm); padding: 11px 14px; font-size: 14px; border: 1px solid var(--line); }
.alert-ok { border-color: color-mix(in srgb, var(--up) 40%, var(--line)); }
.alert-err { background: var(--err-soft); border-color: color-mix(in srgb, var(--down) 45%, var(--line)); }
.alert-warn { background: var(--warn-soft); border-color: color-mix(in srgb, var(--warn) 45%, var(--line)); color: var(--fg); }
.alert ul { margin: 0; padding-left: 18px; }

/* ---- Panels & tables --------------------------------------------------- */
.panel { border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--bg); min-width: 0; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.panel-head h2, .panel-head h3 { font-size: 14px; font-weight: 600; }
.panel-head .sub { font-size: 13px; color: var(--fg-muted); }
.panel-body { padding: 18px; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { text-align: left; font-weight: 500; font-size: 13px; color: var(--fg-muted); padding: 10px 18px; background: var(--surface);
  border-bottom: 1px solid var(--line); white-space: nowrap; }
td { padding: 11px 18px; border-bottom: 1px solid var(--line); vertical-align: middle; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: var(--surface); }
td.num, th.num { text-align: right; font-family: var(--font-num); font-variant-numeric: tabular-nums; }
th.num { font-family: var(--font-ui); }
.pos { color: var(--up); } .neg { color: var(--down); }
tr.me td { background: var(--accent-soft); }
tr.me td:first-child { box-shadow: inset 2px 0 0 var(--accent); }
.rank { font-family: var(--font-num); color: var(--fg-muted); width: 56px; }
.muted { color: var(--fg-muted); } .faint { color: var(--fg-faint); } .small { font-size: 13px; }
.empty { padding: 28px 18px; color: var(--fg-muted); font-size: 14px; }

/* ---- Forms ------------------------------------------------------------- */
.field { display: grid; gap: 6px; }
.field label { font-size: 13px; font-weight: 500; }
.field .hint { font-size: 12px; color: var(--fg-faint); font-weight: 400; }
.input { width: 100%; height: 42px; padding: 0 12px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
  background: var(--bg); color: var(--fg); font: 400 15px var(--font-ui); transition: border-color .15s, box-shadow .15s; }
.input:focus { outline: none; border-color: var(--fg); box-shadow: 0 0 0 3px var(--accent-soft); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--fg-muted); line-height: 1.45; }
.check input { margin-top: 3px; width: 16px; height: 16px; accent-color: var(--fg); flex: none; }
.form-stack { display: grid; gap: 18px; }

/* ---- Auth pages -------------------------------------------------------- */
.auth { min-height: calc(100vh - 140px); display: grid; place-items: center; padding-block: 48px; padding-inline: 16px; }
.auth-card { width: 100%; max-width: 400px; display: grid; gap: 24px; }
.auth-card .brand svg { height: 34px; }
.auth-card h1 { font-family: var(--font-display); font-weight: 400; font-size: 32px; letter-spacing: -.02em; }
.auth-card .lede { color: var(--fg-muted); font-size: 14px; margin-top: 6px; }
.auth-foot { font-size: 14px; color: var(--fg-muted); text-align: center; }

/* ---- Marketing: hero --------------------------------------------------- */
.hero { padding-block: 88px 72px; border-bottom: 1px solid var(--line); position: relative; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px; mask-image: radial-gradient(ellipse 70% 60% at 70% 30%, #000 0%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 70% 30%, #000 0%, transparent 75%); opacity: .55; }
.hero .wrap { position: relative; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.hero h1 { font-family: var(--font-display); font-weight: 400; font-size: clamp(44px, 6.4vw, 76px); line-height: 1.02; letter-spacing: -.03em; }
.hero .lede { margin-top: 22px; font-size: 18px; line-height: 1.6; color: var(--fg-muted); max-width: 34em; }
.hero .ctas { margin-top: 32px; display: flex; gap: 12px; flex-wrap: wrap; }
.hero .fine { margin-top: 16px; font-size: 13px; color: var(--fg-faint); }
@media (max-width: 900px) { .hero { padding-block: 56px 48px; } .hero .wrap { grid-template-columns: minmax(0, 1fr); gap: 40px; } }

/* Product preview panel in the hero */
.preview { border: 1px solid var(--line-strong); border-radius: var(--radius-lg); background: var(--bg);
  box-shadow: 0 1px 0 var(--line), 0 24px 60px -24px color-mix(in srgb, var(--fg) 22%, transparent); overflow: hidden; min-width: 0; }
.preview-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--line); font-size: 13px; }
.preview-top .title { font-weight: 500; }
.preview-chart { padding: 14px 16px 6px; border-bottom: 1px solid var(--line); }
.chart.preview-chart { padding: 14px 12px 4px; }
.preview-chart svg { display: block; width: 100%; height: auto; }
.preview table td, .preview table th { padding: 9px 16px; }
.preview .label { display: block; font-size: 12px; color: var(--fg-faint); padding: 9px 16px; border-top: 1px solid var(--line); background: var(--surface); }

/* ---- Marketing: sections ----------------------------------------------- */
.section { padding-block: 88px; border-bottom: 1px solid var(--line); }
.section-head { max-width: 640px; display: grid; gap: 12px; margin-bottom: 44px; }
.section-head h2 { font-family: var(--font-display); font-weight: 400; font-size: clamp(30px, 4vw, 44px); line-height: 1.1; letter-spacing: -.025em; }
.section-head p { color: var(--fg-muted); font-size: 17px; }
@media (max-width: 760px) { .section { padding-block: 56px; } }

.pillars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.pillar { padding: 28px; display: grid; gap: 10px; align-content: start; }
.pillar + .pillar { border-left: 1px solid var(--line); }
.pillar h3 { font-size: 16px; }
.pillar p { color: var(--fg-muted); font-size: 15px; }
.pillar svg { width: 22px; height: 22px; color: var(--fg); }
@media (max-width: 860px) { .pillars { grid-template-columns: minmax(0, 1fr); } .pillar + .pillar { border-left: 0; border-top: 1px solid var(--line); } }

.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; counter-reset: step; }
.step { padding: 4px 28px 4px 0; display: grid; gap: 10px; align-content: start; }
.step + .step { padding-left: 28px; border-left: 1px solid var(--line); }
.step .n { font-family: var(--font-num); font-size: 13px; color: var(--fg-faint); }
.step h3 { font-size: 16px; }
.step p { color: var(--fg-muted); font-size: 15px; }
@media (max-width: 960px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 36px; } .step:nth-child(3) { padding-left: 0; border-left: 0; } }
@media (max-width: 560px) { .steps { grid-template-columns: minmax(0, 1fr); } .step + .step { padding-left: 0; border-left: 0; } }

.scoring { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 56px; align-items: start; }
.scoring .copy { display: grid; gap: 16px; color: var(--fg-muted); font-size: 16px; max-width: 34em; }
.formula { border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); padding: 6px 0; font-family: var(--font-num); font-size: 14px; }
.formula div { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 16px; padding: 12px 20px; }
.formula div + div { border-top: 1px solid var(--line); }
.formula dt { color: var(--fg-muted); font-family: var(--font-ui); }
.formula dd { margin: 0; color: var(--fg); }
@media (max-width: 860px) { .scoring { grid-template-columns: minmax(0, 1fr); gap: 32px; } .formula div { grid-template-columns: minmax(0, 1fr); gap: 4px; } }

.faq { max-width: 760px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 0; font-size: 16px; font-weight: 500; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--font-num); color: var(--fg-faint); font-size: 18px; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq details p { padding-bottom: 20px; color: var(--fg-muted); max-width: 62ch; }

.cta-band { padding-block: 96px; text-align: left; }
.cta-band .wrap { display: flex; justify-content: space-between; align-items: end; gap: 32px; flex-wrap: wrap; }
.cta-band h2 { font-family: var(--font-display); font-weight: 400; font-size: clamp(32px, 4.4vw, 52px); letter-spacing: -.03em; line-height: 1.05; max-width: 14em; }

/* ---- Footer ------------------------------------------------------------ */
.footer { border-top: 1px solid var(--line); padding-block: 36px 48px; font-size: 13px; color: var(--fg-muted); }
.footer .wrap { display: grid; gap: 20px; }
.footer-top { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.footer p { max-width: 80ch; color: var(--fg-faint); }
.theme-switch { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; padding: 2px; }
.theme-switch button { background: none; border: 0; color: var(--fg-faint); font: 500 12px var(--font-ui); padding: 4px 10px; border-radius: 999px; cursor: pointer; }
.theme-switch button[aria-pressed="true"] { background: var(--surface-2); color: var(--fg); }

/* ---- App pages --------------------------------------------------------- */
.page { padding-block: 32px 64px; display: grid; gap: 24px; }
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.page-head h1 { font-size: 26px; font-weight: 600; letter-spacing: -.02em; }
.page-head .meta { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 8px; font-size: 13px; color: var(--fg-muted); }
.season-tabs { display: flex; gap: 4px; flex-wrap: wrap; border-bottom: 1px solid var(--line); }
.season-tabs a { padding: 8px 12px; font-size: 14px; color: var(--fg-muted); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.season-tabs a[aria-current="page"] { color: var(--fg); border-bottom-color: var(--fg); }

.stats { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.stat { padding: 16px 18px; display: grid; gap: 6px; align-content: start; min-width: 0; }
.stat + .stat { border-left: 1px solid var(--line); }
.stat .k { font-size: 13px; color: var(--fg-muted); }
.stat .v { font-family: var(--font-num); font-variant-numeric: tabular-nums; font-size: 24px; font-weight: 500; letter-spacing: -.02em; line-height: 1.15; white-space: nowrap; }
.stat .d { font-size: 12px; color: var(--fg-faint); font-family: var(--font-num); }
@media (max-width: 1080px) { .stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .stat:nth-child(4) { border-left: 0; } .stat:nth-child(n+4) { border-top: 1px solid var(--line); } }
@media (max-width: 560px) { .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat:nth-child(odd) { border-left: 0; } .stat:nth-child(4) { border-left: 1px solid var(--line); } .stat:nth-child(n+3) { border-top: 1px solid var(--line); } .stat .v { font-size: 20px; } }

.dash-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 24px; align-items: start; }
.dash-main, .dash-side { display: grid; gap: 24px; min-width: 0; }
@media (max-width: 1020px) { .dash-grid { grid-template-columns: minmax(0, 1fr); } }

.chart { padding: 8px 12px 4px; }
.chart svg { display: block; width: 100%; height: auto; }
.chart .grid line { stroke: var(--line); stroke-width: 1; }
.chart .grid text, .chart .axis text { fill: var(--fg-faint); font: 400 11px var(--font-num); }
.chart .base { stroke: var(--fg-faint); stroke-dasharray: 3 4; stroke-width: 1; }
.chart .area { fill: var(--chart-fill); stroke: none; }
.chart .line { fill: none; stroke: var(--fg); stroke-width: 1.75; stroke-linejoin: round; stroke-linecap: round; }
.chart .dot { fill: var(--fg); stroke: var(--bg); stroke-width: 2; }

.kv { display: grid; gap: 0; }
.kv div { display: flex; justify-content: space-between; gap: 12px; padding: 11px 18px; font-size: 14px; }
.kv div + div { border-top: 1px solid var(--line); }
.kv dt { color: var(--fg-muted); }
.kv dd { margin: 0; text-align: right; min-width: 0; overflow-wrap: anywhere; }

.rules-text { white-space: pre-wrap; font-size: 14px; color: var(--fg-muted); line-height: 1.65; }
.defs { margin: 0; padding-left: 18px; display: grid; gap: 8px; font-size: 14px; color: var(--fg-muted); }
.defs strong { color: var(--fg); font-weight: 500; }
.two-col { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; align-items: start; }
@media (max-width: 900px) { .two-col { grid-template-columns: minmax(0, 1fr); } }

.admin-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.code-cell { font-family: var(--font-num); font-size: 12px; color: var(--fg-muted); max-width: 420px; overflow-wrap: anywhere; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* Phone-sized chart swap and column hiding */
.chart-sm { display: none; }
@media (max-width: 640px) { .chart-lg { display: none; } .chart-sm { display: block; } .hide-sm { display: none; } }

.flash-wrap { padding-top: 20px; }

/* Forms: textarea and select share the input look */
.textarea { height: auto; padding: 10px 12px; font: 400 13px/1.5 var(--font-num); resize: vertical; }
select.input { appearance: auto; }
.two-col.tight { gap: 14px; }
.filter-links { display: flex; gap: 4px; flex-wrap: wrap; font-size: 13px; }
.filter-links a { padding: 3px 9px; border-radius: 999px; color: var(--fg-muted); }
.filter-links a[aria-current="page"] { background: var(--surface-2); color: var(--fg); }
.return-form { display: inline-flex; gap: 6px; align-items: center; }
.return-form .check { font-size: 12px; gap: 5px; }
.return-form .check input { margin-top: 0; }

/* MT5 login card */
.cred { display: flex; align-items: center; justify-content: flex-end; gap: 6px; flex-wrap: wrap; }
.cred .btn-sm { height: 28px; padding: 0 8px; }
.cred-msg { margin: 0 18px 12px; color: var(--up); }
.howto { border-top: 1px solid var(--line); }
.howto details { border-bottom: 1px solid var(--line); }
.howto summary { cursor: pointer; padding: 12px 18px; font-size: 14px; font-weight: 500; }
.steps-list { margin: 0; padding: 0 18px 14px 38px; display: grid; gap: 8px; font-size: 14px; color: var(--fg-muted); }
.steps-list strong { color: var(--fg); font-weight: 500; }
.howto .small.faint { padding: 0 18px 12px; margin: 0; }
.panel-body-tight { padding: 12px 18px; }

/* Account health */
.issue { display: flex; gap: 8px; align-items: baseline; padding: 2px 0; }
.issue .pill { flex: none; }
.unblock-form { display: flex; gap: 6px; flex-wrap: wrap; }
.input-sm { height: 32px; font-size: 13px; width: 180px; }

/* Performance tiles */
.perf { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-bottom: 1px solid var(--line); }
.perf > div { padding: 14px 18px; display: grid; gap: 4px; align-content: start; min-width: 0; border-top: 1px solid var(--line); }
.perf > div:nth-child(-n+4) { border-top: 0; }
.perf > div:not(:nth-child(4n+1)) { border-left: 1px solid var(--line); }
.perf .k { font-size: 12px; color: var(--fg-muted); }
.perf .v { font-family: var(--font-num); font-size: 18px; font-weight: 500; white-space: nowrap; }
.perf .d { font-size: 11px; color: var(--fg-faint); }
@media (max-width: 760px) {
  .perf { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .perf > div { border-left: 0 !important; border-top: 1px solid var(--line) !important; }
  .perf > div:nth-child(-n+2) { border-top: 0 !important; }
  .perf > div:nth-child(even) { border-left: 1px solid var(--line) !important; }
}

/* Leaderboard: filter, rank movement, unranked divider */
.seg { display: inline-flex; gap: 2px; margin: 12px 18px 4px; padding: 2px; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.seg a { padding: 4px 12px; font-size: 13px; color: var(--fg-muted); border-radius: calc(var(--radius-sm) - 2px); }
.seg a:hover { color: var(--fg); }
.seg a[aria-current="true"] { background: var(--fg); color: var(--bg); }
.move { font-family: var(--font-num); font-size: 12px; white-space: nowrap; }
.move-new { color: var(--accent); }
tr.divider td { font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--fg-muted); background: var(--surface); padding-top: 10px; padding-bottom: 6px; }
.panel-foot { margin: 0; padding: 10px 18px 14px; }

/* Mobile tab bar (logged in): the top nav links are hidden under 760px */
.tabbar { display: none; }
@media (max-width: 760px) {
  .tabbar { display: flex; position: fixed; inset: auto 0 0 0; z-index: 30; background: var(--bg);
            border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); }
  .tabbar a { flex: 1; text-align: center; padding: 12px 4px; font-size: 13px; color: var(--fg-muted); }
  .tabbar a[aria-current="page"] { color: var(--fg); font-weight: 600; box-shadow: inset 0 2px 0 var(--accent); }
  body.has-tabbar { padding-bottom: calc(48px + env(safe-area-inset-bottom)); }
}

/* Profile */
.nav-right a.who:hover { color: var(--fg); }
.nav-right a.who[aria-current="page"] { color: var(--fg); }

/* Admin season form */
.field-err { font-size: 12px; color: var(--down); }
.input[aria-invalid="true"] { border-color: var(--down); }
.input[readonly] { background: var(--surface); color: var(--fg-muted); cursor: not-allowed; }
#standings, #mt5-login, #join, #seasons { scroll-margin-top: 84px; }
.lead-sm { margin: 6px 0 0; font-size: 15px; color: var(--fg-muted); max-width: 60ch; }

/* ---- Season cards (landing page, /s/<slug>) ----------------------------- */
.seasons-section { position: relative; }
.season-feature { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg); background: var(--bg); overflow: hidden;
  box-shadow: 0 1px 0 var(--line), 0 30px 80px -40px color-mix(in srgb, var(--fg) 30%, transparent); }
.sf-main { padding: 40px; display: grid; gap: 18px; align-content: start; min-width: 0; }
.sf-top { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.sf-kicker { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--fg-faint); }
.sf-name { font-family: var(--font-display); font-weight: 400; font-size: clamp(38px, 5vw, 60px); line-height: 1; letter-spacing: -.03em; }
.sf-tag { font-size: 18px; line-height: 1.5; color: var(--fg-muted); max-width: 32em; }
.sf-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px 24px; margin: 8px 0 0; }
.sf-facts div { border-top: 1px solid var(--line); padding-top: 12px; min-width: 0; }
.sf-facts dt { font-size: 12px; color: var(--fg-faint); }
.sf-facts dd { margin: 4px 0 0; font-family: var(--font-num); font-size: 17px; font-variant-numeric: tabular-nums; }
.sf-facts .unit { font-size: 12px; color: var(--fg-muted); }
.sf-rewards { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--fg-muted); margin-top: 4px; }
.sf-rewards svg { width: 20px; height: 20px; flex: none; color: var(--accent); }
.sf-rewards strong { color: var(--fg); font-weight: 600; margin-right: 6px; }
.sf-side { padding: 40px; display: grid; gap: 18px; align-content: center; border-left: 1px solid var(--line);
  background: radial-gradient(120% 90% at 100% 0%, var(--accent-soft), transparent 60%), var(--surface); }
.sf-label { font-size: 13px; color: var(--fg-muted); }
.sf-more { justify-self: center; font-size: 14px; }
.countdown { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.countdown div { display: grid; justify-items: center; gap: 4px; padding: 14px 0 12px; border: 1px solid var(--line);
  border-radius: var(--radius-sm); background: var(--bg); }
.countdown b { font-family: var(--font-num); font-weight: 500; font-size: clamp(26px, 3vw, 36px); line-height: 1; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.countdown span { font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--fg-faint); }
.countdown[data-done] b { color: var(--fg-faint); }
.sf-progress { display: grid; gap: 8px; }
.bar { width: 100%; height: 6px; display: block; }
.bar-track { fill: var(--line); } .bar-fill { fill: var(--accent); }
.bar-label { font-size: 13px; color: var(--fg-muted); }
.btn-block { width: 100%; justify-content: center; }

.season-next { margin-top: 16px; display: grid; grid-template-columns: minmax(0, 1.4fr) auto auto auto; gap: 28px; align-items: center;
  border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 22px 28px; background: var(--bg); }
.sn-head { display: grid; gap: 4px; min-width: 0; }
.sn-head h3 { font-family: var(--font-display); font-weight: 400; font-size: 26px; letter-spacing: -.02em; line-height: 1.1; }
.sn-head p { font-size: 14px; color: var(--fg-muted); }
.sn-facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; font-family: var(--font-num); font-size: 13px; color: var(--fg-muted); }
.sn-count { display: grid; gap: 4px; }
.sn-count span { font-size: 12px; color: var(--fg-faint); }
.sn-count b { font-family: var(--font-num); font-weight: 500; font-size: 18px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.sn-actions { display: flex; gap: 8px; }
.season-empty { border: 1px dashed var(--line-strong); border-radius: var(--radius-lg); padding: 40px; display: grid; gap: 10px; justify-items: start; }
.season-empty h3 { font-family: var(--font-display); font-weight: 400; font-size: 28px; }
.season-empty p { color: var(--fg-muted); }

.hero-season { padding-block: 48px 64px; }
.wrap-single { display: block !important; }
.crumbs { font-size: 14px; color: var(--fg-muted); margin-bottom: 18px; }
.rules-details { margin-top: 40px; border: 1px solid var(--line); border-radius: var(--radius-lg); }
.rules-details summary { cursor: pointer; padding: 16px 20px; font-size: 15px; font-weight: 500; }
.rules-details .rules-text { padding: 0 20px 20px; }

@media (max-width: 960px) {
  .season-feature { grid-template-columns: minmax(0, 1fr); }
  .sf-side { border-left: 0; border-top: 1px solid var(--line); }
  .season-next { grid-template-columns: minmax(0, 1fr) auto; gap: 16px 20px; }
  .sn-facts { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 4px 14px; order: 2; }
  .sn-count { order: 1; }
  .sn-actions { grid-column: 1 / -1; order: 3; }
}
@media (max-width: 560px) {
  .sf-main, .sf-side { padding: 24px; }
  .sf-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .season-next { padding: 20px; }
  .sn-actions .btn { flex: 1; justify-content: center; }
}

/* Admin share kit */
.share-link { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.share-link code { font-family: var(--font-num); font-size: 14px; word-break: break-all; }
.share-grid { display: grid; grid-template-columns: 2fr 1.4fr 1fr; gap: 16px; align-items: start; }
.share-preview { background: var(--surface); border-bottom: 1px solid var(--line); }
.share-preview img { display: block; width: 100%; height: auto; }
.share-actions { display: grid; gap: 10px; }
@media (max-width: 960px) { .share-grid { grid-template-columns: minmax(0, 1fr); } }
