/* 2xCrash — a dark "quant lab": deep navy, a soft aurora, glass panels and one gradient accent.
   The numbers are the show. No casino gold, no flashing wins, nothing that looks like a bet button.
   Fonts are self-hosted (the CSP allows 'self' only); scripts they do not cover fall back to the system. */

/* ------------------------------------------------------------------ fonts */
@font-face { font-family: "Inter Variable"; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url(/static/fonts/inter-latin-wght-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter Variable"; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url(/static/fonts/inter-latin-ext-wght-normal.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Inter Variable"; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url(/static/fonts/inter-cyrillic-ext-wght-normal.woff2) format("woff2");
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; }
@font-face { font-family: "Inter Variable"; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url(/static/fonts/inter-cyrillic-wght-normal.woff2) format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Inter Variable"; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url(/static/fonts/inter-greek-ext-wght-normal.woff2) format("woff2");
  unicode-range: U+1F00-1FFF; }
@font-face { font-family: "Inter Variable"; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url(/static/fonts/inter-greek-wght-normal.woff2) format("woff2");
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF; }
@font-face { font-family: "Inter Variable"; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url(/static/fonts/inter-vietnamese-wght-normal.woff2) format("woff2");
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB; }
@font-face { font-family: "Manrope Variable"; font-style: normal; font-display: swap; font-weight: 200 800;
  src: url(/static/fonts/manrope-latin-wght-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Manrope Variable"; font-style: normal; font-display: swap; font-weight: 200 800;
  src: url(/static/fonts/manrope-latin-ext-wght-normal.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Manrope Variable"; font-style: normal; font-display: swap; font-weight: 200 800;
  src: url(/static/fonts/manrope-cyrillic-ext-wght-normal.woff2) format("woff2");
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; }
@font-face { font-family: "Manrope Variable"; font-style: normal; font-display: swap; font-weight: 200 800;
  src: url(/static/fonts/manrope-cyrillic-wght-normal.woff2) format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Manrope Variable"; font-style: normal; font-display: swap; font-weight: 200 800;
  src: url(/static/fonts/manrope-greek-wght-normal.woff2) format("woff2");
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF; }
@font-face { font-family: "Manrope Variable"; font-style: normal; font-display: swap; font-weight: 200 800;
  src: url(/static/fonts/manrope-vietnamese-wght-normal.woff2) format("woff2");
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB; }
@font-face { font-family: "JetBrains Mono Variable"; font-style: normal; font-display: swap; font-weight: 100 800;
  src: url(/static/fonts/jetbrains-mono-latin-wght-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "JetBrains Mono Variable"; font-style: normal; font-display: swap; font-weight: 100 800;
  src: url(/static/fonts/jetbrains-mono-latin-ext-wght-normal.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "JetBrains Mono Variable"; font-style: normal; font-display: swap; font-weight: 100 800;
  src: url(/static/fonts/jetbrains-mono-cyrillic-wght-normal.woff2) format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "JetBrains Mono Variable"; font-style: normal; font-display: swap; font-weight: 100 800;
  src: url(/static/fonts/jetbrains-mono-cyrillic-ext-wght-normal.woff2) format("woff2");
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; }
@font-face { font-family: "JetBrains Mono Variable"; font-style: normal; font-display: swap; font-weight: 100 800;
  src: url(/static/fonts/jetbrains-mono-greek-wght-normal.woff2) format("woff2");
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF; }
@font-face { font-family: "JetBrains Mono Variable"; font-style: normal; font-display: swap; font-weight: 100 800;
  src: url(/static/fonts/jetbrains-mono-vietnamese-wght-normal.woff2) format("woff2");
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB; }

/* ----------------------------------------------------------------- tokens */
:root {
  --bg: #06070c;
  --panel: #0f121c;
  --surface: rgba(255, 255, 255, .035);
  --surface-2: rgba(255, 255, 255, .06);
  --surface-3: rgba(255, 255, 255, .09);
  --ink: #f5f7fc;
  --text: #d3d9e4;
  --ink-2: #b4bdcc;
  --muted: #8a94a8;
  --line: rgba(255, 255, 255, .08);
  --line-2: rgba(255, 255, 255, .15);
  --accent: #a5b4fc;
  --accent-hi: #c7d2fe;
  --accent-2: #67e8f9;
  --accent-ink: #07080d;
  --accent-soft: rgba(129, 140, 248, .13);
  --good: #34d399;
  --good-soft: rgba(52, 211, 153, .12);
  --warn: #fb7185;
  --warn-soft: rgba(251, 113, 133, .1);
  --focus: #a5b4fc;
  --grad: linear-gradient(120deg, #c4b5fd 0%, #818cf8 42%, #22d3ee 100%);
  --grad-warm: linear-gradient(120deg, #fda4af 0%, #fb7185 45%, #f59e0b 100%);
  --grad-good: linear-gradient(120deg, #6ee7b7 0%, #22d3ee 100%);
  --chart-1: #a5b4fc;
  --chart-2: #fda4af;
  --chart-3: #6ee7b7;
  --chart-grid: rgba(255, 255, 255, .07);
  --radius: 18px;
  --shadow: inset 0 1px 0 rgba(255, 255, 255, .04), 0 24px 48px -30px rgba(0, 0, 0, .85);
  --glow: 0 18px 48px -18px rgba(129, 140, 248, .5);
  --measure: 46rem;
  --wide: 74rem;
  --font: "Inter Variable", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", "Helvetica Neue", Arial, sans-serif;
  --display: "Manrope Variable", "Inter Variable", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", sans-serif;
  --mono: "JetBrains Mono Variable", ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  /* icons for CSS masks (the CSP allows data: images) */
  --i-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 17 17 7M8.5 7H17v8.5'/%3E%3C/svg%3E");
  --i-chev: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  --i-check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
  --i-ban: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='m5.6 5.6 12.8 12.8'/%3E%3C/svg%3E");
  --i-shield: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 2.8 4.5 5.8v5.4c0 4.6 3.1 8.4 7.5 9.9 4.4-1.5 7.5-5.3 7.5-9.9V5.8z'/%3E%3Cpath d='m8.8 12 2.2 2.2 4.3-4.4'/%3E%3C/svg%3E");
  --i-verified: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 19V5M4 19h16'/%3E%3Cpath d='m7.5 14.5 3.5-4 3 2.5 5-6'/%3E%3Ccircle cx='19' cy='7' r='1.2'/%3E%3C/svg%3E");
  --i-heart: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 20s-7.5-4.4-7.5-10A4.3 4.3 0 0 1 12 7.4 4.3 4.3 0 0 1 19.5 10c0 5.6-7.5 10-7.5 10z'/%3E%3C/svg%3E");
  --i-info: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 11v5M12 8h.01'/%3E%3C/svg%3E");
  --i-alert: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3.5 2.8 19.5h18.4z'/%3E%3Cpath d='M12 10v4M12 16.8h.01'/%3E%3C/svg%3E");
  color-scheme: dark;
}

/* ------------------------------------------------------------------- base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--bg); }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font: 400 17px/1.7 var(--font);
  font-feature-settings: "cv11", "ss03";
  font-kerning: normal;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
/* aurora and a faint lab grid behind everything */
body::before, body::after { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; }
body::before {
  background:
    radial-gradient(52rem 34rem at 12% -8%, rgba(124, 92, 255, .20), transparent 62%),
    radial-gradient(46rem 30rem at 92% -4%, rgba(34, 211, 238, .12), transparent 60%),
    radial-gradient(40rem 28rem at 50% 108%, rgba(251, 113, 133, .06), transparent 60%);
}
body::after {
  background-image: linear-gradient(rgba(255, 255, 255, .03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .03) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 70% 55% at 50% 0%, #000 25%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 55% at 50% 0%, #000 25%, transparent 75%);
}
::selection { background: rgba(139, 92, 246, .45); color: #fff; }
img, svg { max-width: 100%; }
a { color: var(--accent); text-decoration-color: rgba(165, 180, 252, .4); text-underline-offset: 3px; transition: color .15s, text-decoration-color .15s; }
a:hover { color: var(--accent-hi); text-decoration-color: currentColor; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
strong, b { color: var(--ink); font-weight: 680; }
.skip { position: absolute; inset-inline-start: -999px; top: 8px; background: var(--panel); color: var(--ink); padding: .55rem .9rem; border-radius: 10px; z-index: 60; }
.skip:focus { inset-inline-start: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--muted); }
.small { font-size: .88rem; }
.num, .tabular { font-variant-numeric: tabular-nums; }
.break { overflow-wrap: anywhere; }

/* ----------------------------------------------------------------- header */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(6, 7, 12, .72);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  backdrop-filter: saturate(160%) blur(16px);
  border-bottom: 1px solid var(--line);
}
.bar { max-width: var(--wide); margin: 0 auto; padding: .7rem 1.25rem; display: flex; align-items: center; gap: 1.1rem; min-height: 3.9rem; }
.brand { display: inline-flex; align-items: center; gap: .6rem; color: var(--ink); text-decoration: none; flex: none; }
.brand:hover { color: var(--ink); }
.brand-name { font: 800 1.14rem/1 var(--display); letter-spacing: -.02em; }
.brand-tag { color: var(--muted); font-size: .78rem; font-weight: 550; border-inline-start: 1px solid var(--line-2); padding-inline-start: .6rem; }
.logo { width: 32px; height: 32px; flex: none; filter: drop-shadow(0 4px 14px rgba(129, 140, 248, .45)); }
.nav { display: flex; gap: .2rem; flex-wrap: wrap; align-items: center; }
.nav a { color: var(--ink-2); text-decoration: none; padding: .42rem .7rem; border-radius: 10px; font-size: .93rem; font-weight: 520; transition: color .15s, background-color .15s; }
.nav a:hover { color: var(--ink); background: var(--surface-2); }
.nav a[aria-current="page"] { color: var(--ink); background: var(--surface-3); }
.nav a.nav-cta { color: var(--accent-ink); background: var(--grad); font-weight: 680; box-shadow: 0 6px 20px -8px rgba(129, 140, 248, .8); }
.nav a.nav-cta:hover { filter: brightness(1.07); color: var(--accent-ink); }
.nav-wide { margin-inline-start: auto; flex-wrap: nowrap; overflow: hidden; min-width: 0; padding: 8px 4px; margin-block: -8px; }
.nav-wide a { white-space: nowrap; flex: none; }
.site-header.compact .nav-wide { display: none; }
.site-header.compact .menu { display: block; }
.menu { display: none; margin-inline-start: auto; position: relative; }
.menu summary {
  list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: .5rem; padding: .5rem .9rem;
  border: 1px solid var(--line-2); border-radius: 999px; font-size: .92rem; font-weight: 620; color: var(--ink); background: var(--surface-2);
}
.menu summary::before {
  content: ""; width: 1rem; height: .72rem;
  background: linear-gradient(currentColor 0 0) top/100% 2px no-repeat, linear-gradient(currentColor 0 0) center/70% 2px no-repeat,
    linear-gradient(currentColor 0 0) bottom/100% 2px no-repeat;
}
.menu[open] summary { background: var(--surface-3); }
.menu summary::-webkit-details-marker { display: none; }
.menu .nav {
  position: absolute; inset-inline-end: 0; top: 3rem; background: var(--panel); border: 1px solid var(--line-2); border-radius: 16px;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .9); padding: .5rem; flex-direction: column; align-items: stretch; min-width: 14rem;
}
.menu .nav a { padding: .6rem .8rem; }
.langs { display: flex; gap: .35rem; flex: none; }
.lang { font-size: .86rem; color: var(--ink-2); text-decoration: none; border: 1px solid var(--line-2); border-radius: 999px; padding: .32rem .75rem; white-space: nowrap; background: var(--surface); }
.lang:hover { color: var(--ink); background: var(--surface-2); }
.lang-menu { position: relative; }
.lang-menu summary {
  list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: .4rem; font-size: .86rem; color: var(--ink-2);
  border: 1px solid var(--line-2); border-radius: 999px; padding: .32rem .75rem; white-space: nowrap; background: var(--surface);
}
.lang-menu summary svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.lang-menu summary::-webkit-details-marker { display: none; }
.lang-menu[open] summary, .lang-menu summary:hover { color: var(--ink); background: var(--surface-2); }
.lang-menu ul {
  position: absolute; inset-inline-end: 0; top: 2.6rem; z-index: 30; list-style: none; margin: 0; padding: .5rem;
  background: var(--panel); border: 1px solid var(--line-2); border-radius: 16px; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .9);
  min-width: 12rem; max-height: 70vh; overflow: auto; display: grid; grid-template-columns: 1fr; gap: .15rem;
}
.lang-menu.many ul { width: min(34rem, 92vw); grid-template-columns: repeat(auto-fill, minmax(8.5rem, 1fr)); }
.lang-menu li { margin: 0; }
.lang-menu a { display: block; padding: .38rem .6rem; border-radius: 8px; color: var(--ink-2); text-decoration: none; font-size: .9rem;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lang-menu a:hover { background: var(--surface-2); color: var(--ink); }
@media (max-width: 1280px) { .brand-tag { display: none; } }
@media (max-width: 1060px) {
  .nav-wide { display: none; }
  .menu { display: block; }
}
@media (max-width: 560px) {
  .bar { gap: .6rem; padding-inline: 1rem; }
  .brand-name { font-size: 1.05rem; }
  .lang-cur { display: none; }
  .lang-menu summary { padding: .5rem; }
  .lang-menu summary svg { width: 18px; height: 18px; }
  .menu summary { padding: .45rem .8rem; }
}

/* ------------------------------------------------------------------- page */
.page { max-width: var(--measure); margin: 0 auto; padding: 2rem 1.25rem 4rem; }
.wide .page { max-width: var(--wide); }
.wide .page > .prose, .prose-col { max-width: var(--measure); }
.crumbs { font-size: .85rem; color: var(--muted); margin-bottom: 1.2rem; }
.crumbs a { color: var(--ink-2); text-decoration: none; }
.crumbs a:hover { color: var(--ink); }
h1, h2, h3 { font-family: var(--display); color: var(--ink); line-height: 1.16; letter-spacing: -.025em; overflow-wrap: break-word; hyphens: auto; text-wrap: balance; }
h1 { font-size: clamp(2.05rem, 1.35rem + 2.8vw, 3.25rem); margin: .3rem 0 1rem; font-weight: 800; }
h2 { font-size: clamp(1.45rem, 1.2rem + .9vw, 1.85rem); margin: 2.8rem 0 .9rem; font-weight: 780; }
h3 { font-size: 1.14rem; margin: 1.7rem 0 .5rem; font-weight: 740; letter-spacing: -.012em; }
p, ul, ol { margin: 0 0 1.05rem; }
li { margin: .3rem 0; }
main ul:not([class]) li::marker { color: #a78bfa; }
main ol:not([class]) li::marker { color: var(--muted); font-weight: 700; }
.lead { font-size: clamp(1.08rem, 1rem + .35vw, 1.22rem); line-height: 1.65; color: var(--ink-2); }
.kicker {
  display: inline-flex; align-items: center; gap: .55rem; margin: 0 0 1.1rem; padding: .36rem .85rem .36rem .7rem;
  border: 1px solid var(--line-2); border-radius: 999px; background: var(--surface-2); color: var(--ink-2);
  font-size: .76rem; font-weight: 650; letter-spacing: .09em; text-transform: uppercase;
}
.kicker::before { content: ""; width: .5rem; height: .5rem; border-radius: 50%; background: var(--good); box-shadow: 0 0 0 4px rgba(52, 211, 153, .18); animation: pulse 2.4s ease-in-out infinite; }
.updated { color: var(--muted); font-size: .85rem; margin-top: 3rem; }
hr { border: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--line-2), transparent); margin: 2.5rem 0; }
code, kbd { font: .86em var(--mono); background: var(--surface-2); border: 1px solid var(--line); padding: .1em .4em; border-radius: 6px; color: #e9d5ff; }
.formula {
  font: 500 1rem/1.6 var(--mono); color: var(--ink); background: rgba(3, 4, 8, .55); border: 1px solid var(--line-2);
  border-inline-start: 3px solid #a78bfa; border-radius: 12px; padding: .95rem 1.15rem; overflow-x: auto;
}

/* ------------------------------------------------------------- components */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(12.5rem, 1fr)); gap: 1rem; margin: 2rem 0; }
.stat {
  position: relative; overflow: hidden; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.35rem 1.3rem 1.25rem; box-shadow: var(--shadow);
}
.stat::before { content: ""; position: absolute; inset: 0 0 auto; height: 2px; background: var(--grad); opacity: .85; }
.stat::after { content: ""; position: absolute; inset: -40% -30% auto auto; width: 12rem; height: 12rem; border-radius: 50%;
  background: radial-gradient(circle, rgba(129, 140, 248, .16), transparent 70%); pointer-events: none; }
.stat.warn::before { background: var(--grad-warm); }
.stat.warn::after { background: radial-gradient(circle, rgba(251, 113, 133, .14), transparent 70%); }
.stat b {
  display: block; font: 800 clamp(2rem, 1.55rem + 1.3vw, 2.65rem)/1.1 var(--display); letter-spacing: -.03em; font-variant-numeric: tabular-nums;
  padding-bottom: .08em; margin-bottom: -.08em;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stat.warn b { background: var(--grad-warm); -webkit-background-clip: text; background-clip: text; }
.stat span { position: relative; display: block; color: var(--ink-2); font-size: .92rem; margin-top: .6rem; line-height: 1.45; }
.callout {
  position: relative; background: var(--accent-soft); border: 1px solid rgba(165, 180, 252, .22); border-radius: 16px;
  padding: 1rem 1.2rem 1rem 3.1rem; margin: 1.6rem 0; color: var(--text);
}
.callout::before { content: ""; position: absolute; inset-inline-start: 1.1rem; top: 1.12rem; width: 1.25rem; height: 1.25rem; background: var(--accent);
  -webkit-mask: var(--i-info) center/contain no-repeat; mask: var(--i-info) center/contain no-repeat; }
.callout.warn { background: var(--warn-soft); border-color: rgba(251, 113, 133, .3); }
.callout.warn::before { background: var(--warn); -webkit-mask-image: var(--i-alert); mask-image: var(--i-alert); }
[dir="rtl"] .callout { padding: 1rem 3.1rem 1rem 1.2rem; }
.callout > :last-child { margin-bottom: 0; }
.callout-title { font: 750 1.02rem/1.35 var(--display); color: var(--ink); margin-bottom: .35rem; }
.chip {
  display: inline-flex; align-items: center; gap: .35rem; font: 650 .7rem/1 var(--font); letter-spacing: .07em; text-transform: uppercase;
  padding: .38rem .62rem; border-radius: 999px; background: var(--accent-soft); color: var(--accent-hi); border: 1px solid rgba(165, 180, 252, .25);
}

/* cards: tools, guides and the daily articles */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(16.5rem, 1fr)); gap: 1rem; margin: 1.4rem 0; }
/* three, six or nine cards sit in full rows of three instead of leaving a gap in rows of four */
@media (min-width: 900px) {
  .cards:has(> :last-child:nth-child(3)), .cards:has(> :last-child:nth-child(6)), .cards:has(> :last-child:nth-child(9)) {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
.card {
  position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: .3rem; overflow: hidden;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.3rem 1.35rem 1.35rem;
  color: var(--text); text-decoration: none; box-shadow: var(--shadow);
  transition: transform .22s ease, border-color .22s ease, background-color .22s ease, box-shadow .22s ease;
}
.card:hover { transform: translateY(-3px); border-color: rgba(165, 180, 252, .38); background: var(--surface-2); box-shadow: var(--shadow), var(--glow); color: var(--text); }
.card::after {
  content: ""; position: absolute; top: 1.4rem; inset-inline-end: 1.3rem; width: 1.1rem; height: 1.1rem; background: var(--muted);
  -webkit-mask: var(--i-arrow) center/contain no-repeat; mask: var(--i-arrow) center/contain no-repeat; transition: transform .22s ease, background-color .22s ease;
}
.card:hover::after { background: var(--accent-2); transform: translate(2px, -2px); }
[dir="rtl"] .card::after { transform: scaleX(-1); }
[dir="rtl"] .card:hover::after { transform: scaleX(-1) translate(2px, -2px); }
.card h3 { margin: .15rem 0 .1rem; font-size: 1.1rem; color: var(--ink); padding-inline-end: 1.6rem; }
.card p { margin: 0; color: var(--ink-2); font-size: .94rem; line-height: 1.55; }
.card-ic {
  display: inline-grid; place-items: center; width: 2.75rem; height: 2.75rem; border-radius: 13px; margin-bottom: .55rem;
  background: linear-gradient(140deg, rgba(167, 139, 250, .24), rgba(34, 211, 238, .1)); border: 1px solid rgba(165, 180, 252, .26); color: #d8ccff;
}
.card-ic svg { width: 1.35rem; height: 1.35rem; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.card.card-feature { background: linear-gradient(150deg, rgba(139, 92, 246, .2), rgba(34, 211, 238, .07) 60%, rgba(255, 255, 255, .03)); border-color: rgba(165, 180, 252, .3); }
.card.card-feature .card-ic { background: var(--grad); color: var(--accent-ink); border: 0; }
/* daily guides: one card fills the row, two share it, then rows of three */
.cards.posts { grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr)); }
@media (min-width: 1100px) { .cards.posts:has(> :nth-child(4)) { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.card.post { padding-top: 0; }
.card.post::after { display: none; }
.post-art { display: block; align-self: stretch; height: 7.5rem; margin: 0 -1.35rem .95rem; border-bottom: 1px solid var(--line); overflow: hidden; }
.post-art svg { display: block; width: 100%; max-width: 30rem; height: 100%; margin: 0 auto; }
.post-art svg *, .post-banner svg *, .sim-static * { vector-effect: non-scaling-stroke; }
.post-meta { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; font-size: .8rem; color: var(--muted); margin-bottom: .2rem; }
.card.post h3 { padding: 0; }
.card.post p { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
/* cover art per article family: a tinted field and a motif drawn in currentColor */
.fam-odds { background: radial-gradient(120% 140% at 0% 0%, rgba(139, 92, 246, .45), rgba(12, 14, 26, .9) 70%); color: #c4b5fd; }
.fam-ruin { background: radial-gradient(120% 140% at 100% 0%, rgba(251, 113, 133, .38), rgba(12, 14, 26, .9) 70%); color: #fda4af; }
.fam-systems { background: radial-gradient(120% 140% at 0% 100%, rgba(245, 158, 11, .32), rgba(12, 14, 26, .9) 70%); color: #fcd34d; }
.fam-volatility { background: radial-gradient(120% 140% at 50% 0%, rgba(34, 211, 238, .34), rgba(12, 14, 26, .9) 70%); color: #67e8f9; }
.fam-mines { background: radial-gradient(120% 140% at 100% 100%, rgba(52, 211, 153, .32), rgba(12, 14, 26, .9) 70%); color: #6ee7b7; }
.fam-roulette { background: radial-gradient(120% 140% at 0% 50%, rgba(34, 197, 94, .30), rgba(12, 14, 26, .9) 70%); color: #86efac; }
.fam-myth, .fam- { background: radial-gradient(120% 140% at 0% 0%, rgba(236, 72, 153, .32), rgba(12, 14, 26, .9) 70%); color: #f9a8d4; }
.post-banner { height: clamp(8rem, 18vw, 11rem); border-radius: 20px; overflow: hidden; border: 1px solid var(--line-2); margin: .2rem 0 1.4rem; }
.post-banner svg { display: block; width: 100%; height: 100%; }
.post-head { display: flex; align-items: center; gap: .7rem; flex-wrap: wrap; color: var(--muted); font-size: .86rem; margin: -.2rem 0 1.2rem; }

/* tables */
.table-wrap { overflow-x: auto; margin: 1.5rem 0; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
table { border-collapse: collapse; width: 100%; font-size: .94rem; }
caption { caption-side: bottom; text-align: start; color: var(--muted); font-size: .82rem; padding: .7rem 1rem; }
th, td { text-align: start; padding: .68rem 1rem; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { font-size: .73rem; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); font-weight: 650; background: rgba(255, 255, 255, .03); }
tbody th { color: var(--ink); font-weight: 620; }
tbody tr { transition: background-color .15s; }
tbody tr:hover { background: rgba(255, 255, 255, .025); }
tbody tr:last-child td, tbody tr:last-child th { border-bottom: 0; }
table.num td { font-variant-numeric: tabular-nums; }
td.neg { color: var(--warn); }
.zone { display: inline-block; font-size: .76rem; font-weight: 650; padding: .16rem .55rem; border-radius: 999px; white-space: nowrap; }
.zone-A { background: rgba(52, 211, 153, .14); color: #86efc4; }
.zone-B { background: rgba(251, 191, 36, .14); color: #fcd689; }
.zone-C { background: rgba(148, 163, 184, .16); color: #c3cedd; }
.zone-D { background: rgba(251, 113, 133, .15); color: #fda4b4; }
tr.me { outline: 2px solid var(--accent); outline-offset: -2px; }
details.faq { border: 1px solid var(--line); background: var(--surface); border-radius: 14px; margin: .6rem 0; transition: background-color .15s, border-color .15s; }
details.faq summary { cursor: pointer; font-weight: 640; color: var(--ink); padding: .95rem 1.1rem; padding-inline-end: 3rem; list-style: none; position: relative; }
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after {
  content: ""; position: absolute; inset-inline-end: 1.1rem; top: 50%; width: 1.05rem; height: 1.05rem; margin-top: -.52rem; background: var(--muted);
  -webkit-mask: var(--i-chev) center/contain no-repeat; mask: var(--i-chev) center/contain no-repeat; transition: transform .2s ease;
}
details.faq[open] { background: var(--surface-2); border-color: var(--line-2); }
details.faq[open] summary::after { transform: rotate(180deg); background: var(--accent); }
details.faq > :not(summary) { margin-inline: 1.1rem; }
details.faq > :last-child:not(summary) { margin-bottom: 1rem; }
.toc { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 1rem 1.2rem; margin: 1.4rem 0; font-size: .95rem; }
.toc p { margin: 0 0 .35rem; font-weight: 680; color: var(--ink); }
.toc ol { margin: 0; padding-inline-start: 1.2rem; }

/* ------------------------------------------------------------------ tools */
.tool {
  position: relative; background: linear-gradient(180deg, rgba(255, 255, 255, .055), rgba(255, 255, 255, .025));
  border: 1px solid var(--line-2); border-radius: 22px; padding: clamp(1.1rem, 2.5vw, 1.8rem); margin: 1.8rem 0; box-shadow: var(--shadow);
}
.tool::before { content: ""; position: absolute; inset: -1px 12% auto; height: 1px; background: linear-gradient(90deg, transparent, rgba(167, 139, 250, .8), rgba(34, 211, 238, .8), transparent); }
.tool h2, .tool h3 { margin-top: 0; }
.fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(11.5rem, 1fr)); gap: 1rem 1.2rem; }
.field label, .field .label { display: block; font-size: .82rem; color: var(--ink-2); margin-bottom: .4rem; font-weight: 600; }
.input, select.input, textarea.input {
  width: 100%; font: inherit; font-size: 1rem; line-height: 1.4; color: var(--ink); background-color: rgba(3, 4, 8, .55);
  border: 1px solid var(--line-2); border-radius: 12px; padding: .68rem .85rem; transition: border-color .15s, box-shadow .15s, background-color .15s;
}
.input:hover { border-color: rgba(255, 255, 255, .24); }
.input:focus { outline: none; border-color: #a78bfa; box-shadow: 0 0 0 4px rgba(139, 92, 246, .25); background-color: rgba(3, 4, 8, .8); }
select.input {
  -webkit-appearance: none; appearance: none; padding-inline-end: 2.5rem; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a5b4fc' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right .8rem center; background-size: 1rem;
}
[dir="rtl"] select.input { background-position: left .8rem center; }
select.input option { background: var(--panel); color: var(--ink); }
textarea.input { min-height: 9rem; resize: vertical; }
input[type="checkbox"], input[type="radio"], input[type="range"] { accent-color: #8b5cf6; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem; font: 680 .98rem/1.2 var(--font); border-radius: 12px;
  padding: .74rem 1.2rem; border: 1px solid transparent; background: var(--grad); color: var(--accent-ink); cursor: pointer; text-decoration: none;
  box-shadow: 0 10px 30px -12px rgba(129, 140, 248, .75), inset 0 1px 0 rgba(255, 255, 255, .4); transition: transform .15s, box-shadow .15s, filter .15s;
}
.btn:hover { color: var(--accent-ink); transform: translateY(-1px); filter: brightness(1.07); box-shadow: 0 14px 34px -12px rgba(129, 140, 248, .9), inset 0 1px 0 rgba(255, 255, 255, .4); }
.btn:active { transform: translateY(0); }
.btn.secondary { background: var(--surface-2); color: var(--ink); border-color: var(--line-2); box-shadow: none; }
.btn.secondary:hover { background: var(--surface-3); border-color: rgba(255, 255, 255, .28); color: var(--ink); filter: none; }
.btn:disabled { opacity: .55; cursor: progress; transform: none; }
.btn-lg { padding: .95rem 1.5rem; font-size: 1.04rem; border-radius: 14px; }
.actions { display: flex; gap: .7rem; flex-wrap: wrap; margin-top: 1.1rem; align-items: center; }
.result { margin-top: 1.2rem; }
.result-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(9.5rem, 1fr)); gap: .7rem; margin: .9rem 0; }
.result-grid div { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: .75rem .9rem; }
.result-grid b { display: block; font: 700 1.35rem/1.25 var(--mono); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.result-grid span { font-size: .8rem; color: var(--muted); }
.result-grid .bad b { color: var(--warn); }
.result-grid .ok b { color: var(--good); }
.chart { width: 100%; height: auto; display: block; margin: .6rem 0; }
.chart .grid { stroke: var(--chart-grid); stroke-width: 1; }
.chart .axis { fill: var(--muted); font-size: 11px; font-family: var(--mono); }
.chart .line { fill: none; stroke-width: 1.4; opacity: .55; }
.chart .line.c1 { stroke: var(--chart-1); }
.chart .line.c2 { stroke: var(--chart-2); }
.chart .line.c3 { stroke: var(--chart-3); }
.chart .line-mean { fill: none; stroke: #fff; stroke-width: 2.2; stroke-dasharray: 6 5; }
.chart .bar { fill: var(--chart-1); }
.chart .bar.loss { fill: var(--chart-2); }
.chart .zero { stroke: #fff; stroke-width: 1; opacity: .4; }
.legend { display: flex; gap: 1rem; flex-wrap: wrap; font-size: .82rem; color: var(--muted); }
.legend i.lg-lines { background: var(--chart-1); }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-inline-end: .35rem; vertical-align: -1px; }
.summary-text { background: var(--accent-soft); border: 1px solid rgba(165, 180, 252, .22); border-radius: 14px; padding: .85rem 1rem; color: var(--ink); }
.pf-rounds { font: .85rem/1.5 var(--mono); }
.pf-rounds td, .pf-rounds th { padding: .38rem .65rem; }
.ok-text { color: var(--good); font-weight: 650; }
.bad-text { color: var(--warn); font-weight: 650; }
.timer { font: 750 2.5rem/1.1 var(--mono); letter-spacing: -.03em; font-variant-numeric: tabular-nums; color: var(--ink); }
.checklist { list-style: none; padding: 0; }
.checklist li { display: flex; gap: .7rem; align-items: flex-start; padding: .55rem 0; border-bottom: 1px solid var(--line); }
.checklist input { margin-top: .4rem; }

/* ---------------------------------------------------------------- age gate */
.agegate { position: fixed; inset: 0; background: rgba(3, 4, 8, .72); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  display: flex; align-items: center; justify-content: center; z-index: 50; padding: 1rem; }
.agegate-box { background: linear-gradient(180deg, #151a2b, #0d1019); color: var(--text); border: 1px solid var(--line-2); border-radius: 22px;
  max-width: 27rem; padding: 1.7rem; box-shadow: 0 40px 90px -20px rgba(0, 0, 0, .9), var(--glow); }
.agegate-box h2 { margin: 0 0 .6rem; }

/* ----------------------------------------------------------------- region */
.region { margin: 3rem 0 0; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 1.25rem 1.35rem; font-size: .94rem; }
.region-h { font-size: .74rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin: 0 0 .5rem; font-weight: 650; }
.region-from { font-weight: 680; color: var(--ink); margin-bottom: .45rem; }
.region-facts { display: grid; grid-template-columns: max-content 1fr; gap: .25rem 1rem; margin: .5rem 0; }
.region-facts dt { color: var(--muted); }
.region-facts dd { margin: 0; }
.region-note { color: var(--ink-2); font-size: .9rem; }
.region-help-h { font-weight: 680; color: var(--ink); margin: .7rem 0 .25rem; }
.region-help { padding-inline-start: 1.1rem; margin-bottom: .5rem; }
.region-more { margin: 0; }

/* ----------------------------------------------------------------- footer */
.site-footer { position: relative; margin-top: 5rem; font-size: .93rem; background: linear-gradient(180deg, rgba(255, 255, 255, .015), rgba(255, 255, 255, .035)); border-top: 1px solid var(--line); }
.site-footer::before { content: ""; position: absolute; inset: -1px 0 auto; height: 1px; background: linear-gradient(90deg, transparent, rgba(167, 139, 250, .55), rgba(34, 211, 238, .55), transparent); }
.foot-grid { max-width: var(--wide); margin: 0 auto; padding: 3.2rem 1.25rem 1.6rem; display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 2rem; }
.foot-grid h2 { font: 700 .74rem/1.2 var(--font); text-transform: uppercase; letter-spacing: .11em; color: var(--muted); margin: 0 0 1rem; }
.foot-grid ul { list-style: none; padding: 0; margin: 0; }
.foot-grid li { margin: .5rem 0; }
.foot-grid a { color: var(--ink-2); text-decoration: none; }
.foot-grid a:hover { color: var(--ink); }
.foot-brand p { color: var(--muted); margin-top: .9rem; max-width: 22rem; }
.foot-legal { max-width: var(--wide); margin: 0 auto; padding: 1.3rem 1.25rem 2.4rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .88rem; }
.foot-legal p { margin: .35rem 0; }
.foot-legal strong { color: var(--ink-2); }
@media (max-width: 760px) {
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; }
  body { font-size: 16px; }
}

/* -------------------------------------------------------------------- home */
.hero-wrap { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(2rem, 4.5vw, 4.5rem); align-items: center; padding: clamp(1rem, 3.5vw, 3rem) 0 1.5rem; }
.hero { padding: 0; }
.hero h1 {
  font-size: clamp(2.45rem, 1.4rem + 3.7vw, 4.3rem); line-height: 1.06; letter-spacing: -.038em; max-width: 14ch; margin: .2rem 0 1rem;
  padding-bottom: .14em;
  background: linear-gradient(180deg, #fff 35%, #c9c1ff 100%); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero .lead { max-width: 36rem; }
.hero .actions { margin-top: 1.7rem; gap: .8rem; }
.hero .actions .btn { padding: .92rem 1.45rem; font-size: 1.02rem; border-radius: 14px; }
.trust { display: flex; flex-wrap: wrap; gap: .5rem 1.3rem; list-style: none; padding: 0; margin: 1.5rem 0 0; color: var(--ink-2); font-size: .9rem; }
.trust li { display: inline-flex; align-items: center; gap: .45rem; margin: 0; }
.trust li::before { content: ""; width: 1rem; height: 1rem; background: var(--good); -webkit-mask: var(--i-check) center/contain no-repeat; mask: var(--i-check) center/contain no-repeat; }

/* the live crash simulation */
.sim {
  position: relative; isolation: isolate; border-radius: 24px; padding: 1.05rem; overflow: hidden;
  background: linear-gradient(180deg, rgba(22, 26, 42, .92), rgba(9, 11, 19, .95)); border: 1px solid var(--line-2);
  box-shadow: 0 50px 100px -45px rgba(99, 70, 220, .75), inset 0 1px 0 rgba(255, 255, 255, .06);
}
.sim::before { content: ""; position: absolute; inset: -30% -20% auto auto; width: 70%; height: 70%; z-index: -1; border-radius: 50%;
  background: radial-gradient(circle, rgba(139, 92, 246, .28), transparent 65%); }
.sim-top { display: flex; align-items: center; justify-content: space-between; gap: .6rem; font-size: .76rem; padding: .1rem .2rem 0; }
.sim-live { display: inline-flex; align-items: center; gap: .5rem; font-weight: 720; letter-spacing: .1em; text-transform: uppercase; color: var(--good); }
.sim-live i { width: .52rem; height: .52rem; border-radius: 50%; background: currentColor; box-shadow: 0 0 12px currentColor; animation: pulse 1.6s ease-in-out infinite; }
.sim-rtp { font-family: var(--mono); color: var(--muted); border: 1px solid var(--line-2); border-radius: 999px; padding: .22rem .6rem; }
.sim-stage { position: relative; height: clamp(13rem, 24vw, 18rem); margin: .8rem 0 .75rem; border-radius: 16px; overflow: hidden; direction: ltr;
  background: radial-gradient(90% 80% at 20% 100%, rgba(139, 92, 246, .14), transparent 70%), rgba(2, 3, 7, .55); border: 1px solid var(--line); }
.sim-canvas, .sim-static { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.sim.on .sim-static { display: none; }
.sim-static path { fill: none; stroke: #a78bfa; stroke-width: 3; stroke-linecap: round; }
.sim-static .area { fill: rgba(139, 92, 246, .16); stroke: none; }
.sim-mult {
  position: absolute; top: 38%; left: 50%; transform: translate(-50%, -50%); margin: 0; white-space: nowrap;
  font: 800 clamp(2.5rem, 1.6rem + 3vw, 3.9rem)/1 var(--mono); letter-spacing: -.05em; font-variant-numeric: tabular-nums;
  color: #fff; text-shadow: 0 0 34px rgba(165, 180, 252, .45); transition: color .2s;
}
.sim-mult.win { color: #6ee7b7; text-shadow: 0 0 34px rgba(52, 211, 153, .5); }
.sim-mult.crash { color: var(--warn); text-shadow: 0 0 34px rgba(251, 113, 133, .55); }
.sim-hist { display: flex; gap: .4rem; list-style: none; margin: 0 0 .85rem; padding: 0; min-height: 1.75rem; overflow: hidden; direction: ltr;
  -webkit-mask-image: linear-gradient(90deg, #000 75%, transparent); mask-image: linear-gradient(90deg, #000 75%, transparent); }
.sim-hist li { flex: none; margin: 0; font: 650 .8rem/1 var(--mono); padding: .45rem .58rem; border-radius: 9px; background: var(--warn-soft); color: #fda4af; border: 1px solid rgba(251, 113, 133, .2); }
.sim-hist li.hi { background: var(--good-soft); color: #86efc4; border-color: rgba(52, 211, 153, .22); }
.sim-hist li.new { animation: chip-in .45s cubic-bezier(.2, .8, .2, 1); }
.sim-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .55rem; margin: 0; }
.sim-stats div { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: .65rem .75rem; min-width: 0; }
.sim-stats dt { font-size: .7rem; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; font-weight: 650; line-height: 1.3; }
.sim-stats dd { margin: .3rem 0 0; font: 750 1.2rem/1.2 var(--mono); color: var(--ink); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.sim-stats dd.neg { color: var(--warn); }
.sim-stats dd.sim-sub { margin-top: .15rem; font: 500 .74rem/1.3 var(--font); color: var(--muted); letter-spacing: 0; }
.sim-note { margin: .8rem .2rem 0; font-size: .78rem; line-height: 1.45; color: var(--muted); }

/* section heads and the closing call to action */
.section-title { margin-top: 4.2rem; font-size: clamp(1.6rem, 1.25rem + 1.2vw, 2.25rem); }
.section-title::before { content: ""; display: block; width: 2.6rem; height: 3px; border-radius: 3px; background: var(--grad); margin-bottom: 1rem; }
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-top: 4.2rem; }
.sec-head .section-title { margin: 0; }
.sec-more { color: var(--ink-2); text-decoration: none; font-weight: 620; font-size: .95rem; white-space: nowrap; padding: .45rem .9rem; border: 1px solid var(--line-2); border-radius: 999px; background: var(--surface); }
.sec-more:hover { color: var(--ink); background: var(--surface-2); }
[dir="rtl"] .sec-more span, [dir="rtl"] .flip-rtl { display: inline-block; transform: scaleX(-1); }
.principles { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 1rem; padding: 0; list-style: none; margin: 1.4rem 0; }
.principles li { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.3rem 1.3rem 1.25rem; margin: 0; color: var(--ink-2); font-size: .95rem; line-height: 1.6; }
.principles li::before { content: ""; display: block; width: 1.6rem; height: 1.6rem; margin-bottom: .85rem; background: var(--grad);
  -webkit-mask: var(--ic, var(--i-check)) center/contain no-repeat; mask: var(--ic, var(--i-check)) center/contain no-repeat; }
.principles li:nth-child(1) { --ic: var(--i-ban); }
.principles li:nth-child(2) { --ic: var(--i-shield); }
.principles li:nth-child(3) { --ic: var(--i-verified); }
.principles li:nth-child(4) { --ic: var(--i-heart); }
.principles b { display: block; margin-bottom: .35rem; color: var(--ink); font: 750 1.06rem/1.35 var(--display); }
.cta-band {
  position: relative; overflow: hidden; isolation: isolate; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem 2.5rem; flex-wrap: wrap;
  margin: 4.5rem 0 1rem; padding: clamp(1.6rem, 4vw, 2.8rem); border-radius: 26px; border: 1px solid rgba(165, 180, 252, .3);
  background: linear-gradient(125deg, rgba(139, 92, 246, .32), rgba(79, 70, 229, .18) 45%, rgba(34, 211, 238, .16));
}
.cta-band::after { content: ""; position: absolute; inset: auto -5% -35% 35%; height: 120%; z-index: -1; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(34, 211, 238, .25), transparent); }
.cta-band h2 { margin: 0 0 .5rem; font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.15rem); }
.cta-band p { margin: 0; color: var(--ink-2); max-width: 36rem; }
.cta-copy { flex: 1 1 22rem; }
@media (max-width: 900px) {
  .hero-wrap { grid-template-columns: minmax(0, 1fr); gap: 2rem; }
  .hero h1 { max-width: 16ch; }
}
@media (max-width: 480px) {
  .sim { padding: .8rem; border-radius: 20px; }
  .sim-stats { gap: .4rem; }
  .sim-stats div { padding: .55rem .55rem; }
  .sim-stats dd { font-size: 1.02rem; }
  .sim-stats dt { font-size: .64rem; letter-spacing: .04em; }
  .hero .actions .btn { flex: 1 1 100%; }
  .cta-band .btn { flex: 1 1 100%; }
}

/* -------------------------------------------------------------- commercial */
.commercial { background: var(--surface); border: 1px solid var(--line-2); border-radius: 18px; padding: 0; margin: 1.6rem 0; overflow: hidden; }
.commercial .mf-warning { margin: 0; padding: .9rem 1rem; background: #f5f7fc; color: #07080d; font-weight: 800; font-size: 1.05rem;
  letter-spacing: .01em; text-align: center; text-transform: uppercase; }
.commercial .ad-label { margin: 0; padding: .6rem 1rem; font-size: .8rem; color: var(--muted); border-bottom: 1px solid var(--line); }
.commercial .ad-list { list-style: none; margin: 0; padding: 0; }
.commercial .ad-list li { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; padding: .85rem 1rem; border-bottom: 1px solid var(--line); margin: 0; }
.commercial .ad-list li .ad-info { flex: 1 1 18rem; min-width: 0; }
.commercial .ad-list li .btn { flex: 0 0 auto; }
.commercial .ad-auth { color: var(--muted); }
.commercial .ad-foot { margin: 0; padding: .7rem 1rem; color: var(--ink-2); background: rgba(255, 255, 255, .03); }
@media (max-width: 560px) { .commercial .ad-list li .btn { flex: 1 1 100%; justify-content: center; } }
.reg-stats { color: var(--muted); }
.chk-list { padding-inline-start: 1.1rem; }
.chk-list li { margin: .4rem 0; }
.checker-form { display: flex; gap: .7rem; flex-wrap: wrap; }
.checker-form .input { flex: 1 1 16rem; }

/* -------------------------------------------------------------- languages */
[dir="rtl"] .formula, [dir="rtl"] code, [dir="rtl"] .num td, [dir="rtl"] .num th { direction: ltr; unicode-bidi: isolate; }
/* a figure such as "−3%" keeps its sign in front in right-to-left pages; text that starts with a
   right-to-left word still runs right to left */
[dir="rtl"] .stat b, [dir="rtl"] .sim-stats dd, [dir="rtl"] .result-grid b, [dir="rtl"] .timer, [dir="rtl"] .sim-rtp { unicode-bidi: plaintext; }
@supports not ((-webkit-background-clip: text) or (background-clip: text)) {
  .hero h1, .stat b, .stat.warn b { background: none; color: var(--ink); }
}

/* ----------------------------------------------------------------- motion */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s cubic-bezier(.2, .7, .2, 1), transform .7s cubic-bezier(.2, .7, .2, 1); }
.reveal.in { opacity: 1; transform: none; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .4; } }
@keyframes chip-in { from { opacity: 0; transform: translateX(-10px) scale(.92); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
@media print {
  .site-header, .site-footer, .region, .agegate, .sim, .cta-band { display: none; }
  body { background: #fff; color: #000; }
  body::before, body::after { display: none; }
}

/* daily guides: the figures code prints under the lead */
.key-figures { list-style: none; padding: 0; margin: 1.1rem 0 1.7rem; display: grid; grid-template-columns: repeat(auto-fit, minmax(13.5rem, 1fr)); gap: .65rem; }
.key-figures li { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: .8rem .95rem; }
.key-figures b { display: block; font: 750 1.2rem/1.25 var(--mono); color: var(--ink); letter-spacing: -.01em; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.key-figures span { display: block; margin-top: .25rem; font-size: .84rem; line-height: 1.4; color: var(--muted); }
