/* Inner pages: buy, cabinet, leaderboard, rules. Tokens from site.css. */
.page { padding-top: clamp(32px, 5vw, 72px); padding-bottom: clamp(56px, 7vw, 104px); min-height: 70vh; }
.page-title { font-family: var(--f-display); font-weight: 400; font-size: clamp(38px, 4.6vw, 66px); line-height: 1.05; letter-spacing: -.03em; margin: 0 0 24px; }
.split { display: grid; gap: 48px; }
@media (min-width: 1000px) { .split { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 96px; align-items: start; } .split .summary { position: sticky; top: 100px; } }

/* buy */
.price-big { font-size: clamp(50px, 5vw, 66px); line-height: 1; margin: 0 0 18px; color: var(--ink); }
.facts { margin: 32px 0 0; border-top: 1px solid var(--line); }
.facts div { display: grid; grid-template-columns: 15ch 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.facts dt { color: var(--muted); font-size: var(--s14); }
.facts dd { margin: 0; }
.loss { color: var(--loss); }
.form { max-width: 560px; width: 100%; }
.country { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: center; }
.country #flag-slot:empty { display: none; }
.country:has(#flag-slot:empty) { grid-template-columns: 1fr; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: var(--s14); color: var(--muted); margin: 6px 0 24px; cursor: pointer; }
.check input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--accent); flex: none; }
.providers { border: 0; padding: 0; margin: 0 0 14px; }
.providers legend { font-size: var(--s14); color: var(--muted); margin-bottom: 12px; padding: 0; }
.prov { width: 100%; justify-content: flex-start; margin-bottom: 12px; padding: 16px 20px; }
.prov .via { font-size: var(--s12); opacity: .75; font-weight: 400; }
.prov .amt { margin-left: auto; }
.notice { border: 1px solid var(--line); border-radius: var(--r2); padding: 22px 24px; margin-bottom: 28px; background: var(--surface); }
.notice h2 { font-size: var(--s21); font-weight: 500; margin: 0 0 8px; }

/* cabinet */
.login { max-width: 460px; }
.code-input { font-family: var(--f-mono); font-size: var(--s28); letter-spacing: .4em; text-align: center; }
.attempt-head { display: flex; flex-wrap: wrap; gap: 14px 24px; align-items: baseline; justify-content: space-between; margin-bottom: 28px; }
.attempt-head h2 { font-family: var(--f-display); font-weight: 400; font-size: var(--s28); margin: 0; }
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.kpis > div { padding: 20px 20px 20px 0; }
.kpis > div + div { padding-left: 20px; border-left: 1px solid var(--line); }
.kpis dt { color: var(--muted); font-size: var(--s14); margin-bottom: 6px; }
.kpis dd { margin: 0; font-family: var(--f-mono); font-variant-numeric: tabular-nums; font-size: clamp(21px, 2vw, 28px); }
.kpis .timer { color: var(--accent); }
@media (max-width: 760px) { .kpis { grid-template-columns: 1fr 1fr; } .kpis > div:nth-child(3) { padding-left: 0; border-left: 0; } .kpis > div:nth-child(n+3) { border-top: 1px solid var(--line); } }
.dist { margin: 28px 0 36px; }
.dist .bar { position: relative; height: 10px; background: var(--raised); border-radius: var(--r1); overflow: hidden; }
.dist .fill { position: absolute; inset: 0 auto 0 0; background: var(--accent); border-radius: var(--r1); transition: width .6s var(--ease); }
.dist .fill.warn { background: var(--down); }
.dist .bar .tick { position: absolute; top: -3px; bottom: -3px; width: 2px; margin-left: -1px; background: var(--ink); opacity: .7; }
.dist .bar { overflow: visible; }
.dist .fill { overflow: hidden; }
/* labels sit at their true positions on the $loss .. start*1.5 scale (start is at 66.7%, not the middle) */
.dist .scale { position: relative; height: 18px; font-family: var(--f-mono); font-size: var(--s12); color: var(--muted); margin-top: 8px; white-space: nowrap; }
.dist .scale span { position: absolute; top: 0; }
.dist .scale .s-lo { left: 0; }
.dist .scale .s-mid { transform: translateX(-50%); color: var(--ink); }
.dist .scale .s-hi { right: 0; }
@media (max-width: 520px) { .dist .scale .s-hi { display: none; } }
.dist .scale .loss { color: var(--loss); }
.dist p { margin: 0 0 10px; }
.creds { display: grid; gap: 0; border: 1px solid var(--line); border-radius: var(--r2); overflow: hidden; margin-bottom: 20px; }
.creds div { display: grid; grid-template-columns: 11ch 1fr auto; gap: 12px; align-items: center; padding: 14px 18px; background: var(--surface); }
.creds div + div { border-top: 1px solid var(--line); }
.creds dt { color: var(--muted); font-size: var(--s14); }
.creds dd { margin: 0; font-family: var(--f-mono); font-size: var(--s18); word-break: break-all; }
.copy { background: none; border: 1px solid var(--line); border-radius: var(--r1); padding: 6px 12px; font-size: var(--s12); color: var(--muted); cursor: pointer; }
.copy:hover { color: var(--ink); border-color: var(--muted); }
.guide { padding-left: 20px; margin: 0; color: var(--muted); }
.guide li { margin-bottom: 8px; }
.guide b { color: var(--ink); font-weight: 500; }
.panel-grid { display: grid; gap: 40px; margin-top: 8px; }
@media (min-width: 1000px) { .panel-grid { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 64px; } }
.sub-h { font-size: var(--s18); font-weight: 500; margin: 0 0 14px; }
.blown { display: grid; grid-template-columns: auto 1fr; gap: 8px 28px; align-items: center; border: 2px solid var(--loss); background: var(--loss-soft); border-radius: var(--r2); padding: 28px; margin-bottom: 32px; }
.blown .big-x { width: clamp(72px, 9vw, 120px); height: clamp(72px, 9vw, 120px); color: var(--loss); grid-row: span 3; }
.blown .tags { display: flex; gap: 10px; flex-wrap: wrap; }
.blown .tag { font-family: var(--f-mono); font-weight: 500; font-size: var(--s14); color: var(--loss); border: 1px solid var(--loss); border-radius: var(--r1); padding: 3px 10px; }
.blown h2 { font-family: var(--f-display); font-weight: 500; font-size: clamp(28px, 3.3vw, 50px); color: var(--loss); margin: 0; line-height: 1; }
.blown p { margin: 0; font-size: var(--s18); max-width: 52ch; }
@media (max-width: 600px) { .blown { grid-template-columns: 1fr; } .blown .big-x { grid-row: auto; } }
.state { border: 1px solid var(--line); border-radius: var(--r2); background: var(--surface); padding: 24px; margin-bottom: 28px; }
.state h3 { margin: 0 0 8px; }
.state p { margin: 0; color: var(--muted); }
.attempts { margin-top: 56px; }
.row-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.who-line { color: var(--muted); font-size: var(--s14); display: inline-flex; align-items: center; gap: 8px; min-width: 0; }
.table-scroll { overflow-x: auto; }

/* leaderboard page */
.lb-full td.rank { font-family: var(--f-mono); color: var(--muted); width: 4ch; }
.lb-full .num { white-space: nowrap; }
.elim { margin-top: 72px; }
.elim h2 { display: flex; align-items: center; gap: 12px; }
.elim h2 .xmark { color: var(--loss); }
.elim td { color: var(--muted); }
.elim td .loss { color: var(--loss); }
.lb-meta { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; align-items: baseline; margin-bottom: 28px; }
@media (max-width: 600px) { .lb-full td, .lb-full th { padding-left: 6px; padding-right: 6px; font-size: var(--s14); } .hide-s { display: none; } }

/* rules */
.rules { max-width: 760px; }
.rules h2 { font-family: var(--f-display); font-weight: 400; font-size: var(--s28); margin: 56px 0 18px; }
.rules ol, .rules ul { padding-left: 22px; }
.rules li { margin-bottom: 10px; }
.rules .facts { margin-top: 0; }
.pending { border: 1px dashed var(--muted); border-radius: var(--r2); padding: 24px; margin-top: 56px; }
.pending h2 { margin-top: 0; }
.attempt-head .page-title, .attempt-head .row-actions { margin: 0; align-items: center; }
#f-code .row-actions { margin-top: 0; }
@media (max-width: 600px) { .facts div { grid-template-columns: 1fr; gap: 4px; } }
.kpis dd.dt { font-size: var(--s18); padding-top: 6px; }
@media (max-width: 600px) {
  .creds div { grid-template-columns: 1fr auto; }
  .creds dt { grid-column: 1 / -1; }
  .creds dd { font-size: var(--s16); word-break: normal; overflow-wrap: anywhere; }
  .attempts .table td, .attempts .table th { padding-left: 6px; padding-right: 6px; font-size: var(--s14); }
  .attempts .hide-s { display: none; }
}
.times { display: flex; flex-wrap: wrap; gap: 4px 28px; }
.attempt + .attempt { margin-top: 64px; padding-top: 48px; border-top: 1px solid var(--line); }
.form.is-closed .field, .form.is-closed .check { display: none; }
.oid { white-space: nowrap; }
/* balance history (cabinet) */
.hist { margin: 8px 0 40px; }
.hist-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px 20px; margin-bottom: 10px; }
.hist-head .sub-h { margin: 0; }
.legend { display: flex; align-items: center; gap: 8px; font-size: var(--s12); color: var(--muted); }
.legend i { display: inline-block; width: 18px; height: 2px; background: var(--accent); margin-left: 10px; }
.legend i.k-eq { background: var(--muted); }
.hist-box { position: relative; height: clamp(200px, 22vw, 280px); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.hist-box svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.hist-box text { font-family: var(--f-mono); font-size: var(--s12); fill: var(--muted); }
.hist-box .lbl-ink { fill: var(--ink); }
.hist-box .lbl-loss { fill: var(--loss); }
.hist-box .grid { stroke: var(--line); stroke-width: 1; }
.hist-box .zone { fill: var(--loss-soft); }
.hist-box .start { stroke: var(--muted); stroke-width: 1; stroke-dasharray: 2 5; }
.hist-box .floor { stroke: var(--loss); stroke-width: 1.5; stroke-dasharray: 7 6; }
.hist-box .bal { fill: none; stroke: var(--accent); stroke-width: 2.25; stroke-linejoin: round; stroke-linecap: round; }
.hist-box .eq { fill: none; stroke: var(--muted); stroke-width: 1.25; stroke-linejoin: round; }
.hist-box .dot { fill: var(--accent); }
.hist-box .brk { fill: none; stroke: var(--muted); stroke-width: 1.25; }
.hist-box .x { stroke: var(--loss); stroke-width: 3; stroke-linecap: round; }

/* buy page: the season prizes, compact, under the facts */
.buy-prizes { margin-top: 32px; }
.prize-mini { list-style: none; margin: 0 0 10px; padding: 0; border-top: 1px solid var(--line); }
.prize-mini li { display: flex; align-items: baseline; gap: 14px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.prize-mini .pn { color: var(--muted); font-size: var(--s14); }
.prize-mini li:first-child .pn { color: var(--accent); }
.prize-mini .name { font-weight: 500; }
/* the three devices from the prize stage render, one sprite (illustrative, see the note under the list) */
.prize-mini li:has(.dev) { align-items: center; }
.prize-mini .dev { flex: none; width: 56px; height: 56px; border-radius: var(--r0); background: url(img/prize-devices.webp) 0 0 / 300% 100% no-repeat; }
.prize-mini .dev.d2 { background-position: 50% 0; }
.prize-mini .dev.d3 { background-position: 100% 0; }

/* round 4: inner pages sit on glass over the dimmed night desk (.scene in site.css) */
.has-scene .form, .has-scene .table-scroll, .has-scene .login, .has-scene .state, .has-scene .notice, .has-scene .pending, .has-scene .hist {
  background: var(--glass); border: 1px solid var(--glass-line); border-radius: var(--r2);
  -webkit-backdrop-filter: blur(18px) saturate(130%); backdrop-filter: blur(18px) saturate(130%); }
.has-scene .form { padding: clamp(20px, 2.6vw, 36px); }
.has-scene .login { padding: clamp(20px, 2.6vw, 36px); }
.has-scene .table-scroll { padding: 8px clamp(8px, 1.4vw, 20px); }
.has-scene .hist { padding: 18px clamp(14px, 1.8vw, 24px) 14px; }
.has-scene .table td, .has-scene .table th { border-bottom-color: var(--glass-line); }
.has-scene .table tr:last-child td { border-bottom: 0; }
.has-scene .page-title { text-shadow: 0 2px 24px var(--ground); }
.season-line { margin: -12px 0 24px; }

/* empty leaderboard: hide the glass frame with its hidden table */
.table-scroll:has(> table[hidden]) { display: none; }

/* disclaimer: rules page section #disclaimer and the buy-page consent modal (text from disclaimer.js) */
.disclaimer { scroll-margin-top: 96px; }
.rules .disclaimer h2 { margin-top: 56px; margin-bottom: 6px; }
.disc-list, .rules .disc-list { list-style: none; margin: 16px 0 0; padding: 0; }
.disc-list li, .rules .disc-list li { padding: 14px 0; margin: 0; border-bottom: 1px solid var(--line); }
.disc-list h3 { font-size: var(--s16); font-weight: 500; margin: 0 0 6px; }
.disc-list p { margin: 0; color: var(--muted); font-size: var(--s14); max-width: 72ch; }
.disc-note { margin: 18px 0 0; font-size: var(--s14); max-width: 72ch; }
.disc-modal { width: min(720px, calc(100vw - 32px)); max-height: min(86dvh, 860px); padding: 0; border: 1px solid var(--glass-line); border-radius: var(--r2);
  background: var(--surface); color: var(--ink); display: none; flex-direction: column; overflow: hidden; }
.disc-modal[open] { display: flex; }
.disc-modal::backdrop { background: var(--scrim-1); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.dm-head { padding: 22px 24px 14px; border-bottom: 1px solid var(--line); }
.dm-head h2 { font-size: var(--s21); font-weight: 500; line-height: 1.25; margin: 0 0 8px; }
.dm-head p { margin: 0; }
.dm-body { overflow-y: auto; padding: 0 24px 20px; flex: 1 1 auto; min-height: 0; overscroll-behavior: contain; }
.dm-body .disc-list { margin-top: 4px; }
.dm-actions { display: flex; flex-wrap: wrap; gap: 12px; padding: 16px 24px 20px; border-top: 1px solid var(--line); background: var(--raised); }
.dm-actions .btn-buy { flex: 1 1 260px; }
@media (max-width: 600px) {
  .dm-head { padding: 18px 16px 12px; } .dm-body { padding: 0 16px 16px; } .dm-actions { padding: 14px 16px 16px; }
  .dm-actions .btn { flex: 1 1 100%; justify-content: center; }
}

/* motion (2026-10-22): the disclaimer opens with a short scale and fade; the chosen payment option carries a light sweep */
.disc-modal[open] { animation: dm-in .34s cubic-bezier(.2, .7, .2, 1); }
.disc-modal[open]::backdrop { animation: bd-in .34s ease; }
@keyframes dm-in { from { opacity: 0; transform: translateY(10px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes bd-in { from { opacity: 0; } to { opacity: 1; } }
.prov { position: relative; overflow: hidden; }
.prov.sel { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), 0 0 34px var(--accent-glow); }
.prov.sel::after { content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 40%; pointer-events: none;
  background: linear-gradient(100deg, rgba(228, 236, 241, 0), rgba(228, 236, 241, .4), rgba(228, 236, 241, 0));
  animation: sweep 1.1s cubic-bezier(.2, .7, .2, 1) both; }
@keyframes sweep { from { transform: translateX(-120%) skewX(-12deg); } to { transform: translateX(280%) skewX(-12deg); } }

/* cabinet: the participant's own MT5 account (form, check states) */
.acc { margin-top: 8px; align-items: start; }
.acc-form .sub-h { margin-bottom: 18px; }
.pw { display: flex; gap: 8px; }
.pw .input { flex: 1; min-width: 0; }
.pw-eye { flex: none; background: none; border: 1px solid var(--line); border-radius: var(--r1); padding: 0 14px; font: inherit; font-size: var(--s14); color: var(--muted); cursor: pointer; }
.pw-eye:hover, .pw-eye[aria-pressed="true"] { color: var(--ink); border-color: var(--muted); }
.ro-note { margin: 4px 0 0; font-size: var(--s14); color: var(--ink); border-left: 2px solid var(--accent); padding-left: 12px; }
.acc-form .err { margin: 0 0 14px; }
.acc-guide .guide li { margin-bottom: 10px; }
.srv-list { list-style: none; margin: 6px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.srv-list li { border: 1px solid var(--line); border-radius: var(--r1); padding: 3px 9px; font-size: var(--s14); }
.state.failed { border-color: var(--loss); background: var(--loss-soft); }
.state.failed h3 { color: var(--loss); }
.state.failed p { color: var(--ink); }
.state.ok { border-color: var(--accent); }
.state h3 { display: flex; align-items: center; gap: 12px; }
.pulse { flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); animation: beat 1.6s var(--ease) infinite; }
@media (prefers-reduced-motion: reduce) { .pulse { animation: none; } }
.creds.own { max-width: 560px; }
.creds.own div { grid-template-columns: 11ch 1fr; }
.acc-rule { margin: 0; align-self: center; }
@media (max-width: 600px) { .creds.own div { grid-template-columns: 1fr; gap: 4px; } }

/* ================= futurism (2026-10-23, Albert): inner pages as instrument panels =================
   Square frames with corner brackets over the dimmed desk, titles in engineered capitals, the price as a readout. */
.page-title { font-weight: 500; font-size: clamp(36px, 4.4vw, 66px); line-height: .94; letter-spacing: -.005em; text-transform: uppercase; }
.rules h2, .attempt-head h2 { font-weight: 500; text-transform: uppercase; letter-spacing: .01em; }
.blown h2 { text-transform: uppercase; }
.price-big { font-family: var(--f-display); font-weight: 400; font-variant-numeric: tabular-nums; }
.has-scene .form, .has-scene .table-scroll, .has-scene .login, .has-scene .state, .has-scene .notice, .has-scene .pending, .has-scene .hist { position: relative;
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.has-scene .form::before, .has-scene .table-scroll::before, .has-scene .login::before, .has-scene .state::before, .has-scene .notice::before, .has-scene .pending::before, .has-scene .hist::before,
.blown::before, .disc-modal::before { content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 1; border: 1px solid var(--tick);
  -webkit-mask: conic-gradient(at var(--cl) var(--cl), transparent 75%, black 0) 0 0 / calc(100% - var(--cl)) calc(100% - var(--cl));
  mask: conic-gradient(at var(--cl) var(--cl), transparent 75%, black 0) 0 0 / calc(100% - var(--cl)) calc(100% - var(--cl)); }
.blown { position: relative; }
.blown::before { border-color: var(--loss); }
.disc-modal { position: fixed; }
.facts dt, .kpis dt { font-size: var(--s12); }
.kpis { border-top-color: var(--glass-line); border-bottom-color: var(--glass-line); }
.lb-full td .deck { margin-top: 5px; }
.live:has(> #updated:empty) .dot { visibility: hidden; }   /* no reading yet: no live light */

/* the disclaimer body takes focus on open for screen readers; a ring round the whole text is noise, keyboard users get a quiet inset line */
.dm-body:focus { outline: none; }
.dm-body:focus-visible { box-shadow: inset 0 0 0 1px var(--line); }

/* eliminated list: the name keeps one line and ends in an ellipsis; the name column takes what is left */
#el td:first-child { width: 100%; max-width: 0; }
#el .who { min-width: 0; }
#el .who > span:not(:last-child), #el .who > img { flex: none; }
#el .who > span:last-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
