/* Stake VIP Calculator — "ambient glass" aesthetic.
   Deep navy mesh · frosted-glass cards · neon cyan/violet accents · real gem colours.
   Custom CSS (no Tailwind runtime): every class mirrors the PHP markup + app.js hooks. */

:root {
  /* surfaces */
  --bg:              #0b1326;
  --surface-lowest:  #060e20;
  --surface-low:     #131b2e;
  --surface:         #171f33;
  --surface-high:    #222a3d;
  --surface-variant: #2d3449;

  /* accents */
  --cyan:        #00dbe7;
  --cyan-bright: #74f5ff;
  --primary:     #e1fdff;   /* near-white cyan tint — headings/values */
  --violet:      #e9b3ff;   /* secondary accent */
  --violet-deep: #7d01b1;
  --tertiary:    #c2c1ff;
  --good:        #74f5ff;

  /* ink */
  --on-surface: #dae2fd;
  --on-variant: #b9cacb;
  --outline:    #849495;

  --error-bg:  #93000a;
  --error-ink: #ffdad6;

  /* glass primitives */
  --glass-bg:     rgba(255, 255, 255, 0.03);
  --glass-bg-2:   rgba(255, 255, 255, 0.05);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-edge:   rgba(255, 255, 255, 0.15);
  --hair:         rgba(255, 255, 255, 0.10);

  --f-display: 'Sora', system-ui, -apple-system, sans-serif;
  --f-body:    'Inter', system-ui, -apple-system, sans-serif;
  --f-mono:    'JetBrains Mono', ui-monospace, 'SFMono-Regular', monospace;

  --maxw: 72rem;
  --radius: 0.75rem;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--f-body);
  color: var(--on-surface);
  background-color: var(--bg);
  /* ambient mesh */
  background-image:
    radial-gradient(at 20% 30%, rgba(114, 0, 163, 0.15) 0px, transparent 50%),
    radial-gradient(at 80% 80%, rgba(0, 219, 231, 0.10) 0px, transparent 50%),
    radial-gradient(at 50% 50%, rgba(125, 1, 177, 0.05) 0px, transparent 70%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  line-height: 1.6;
  min-height: 100dvh;
}

a { color: var(--cyan); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--cyan-bright); }

.gem { display: block; }

::selection { background: var(--cyan); color: var(--surface-lowest); }

/* custom scrollbar */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: rgba(255, 255, 255, 0.02); }
::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.1); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, 0.2); }

/* ---------- Glass card primitive ---------- */
.glass {
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(24px);
  backdrop-filter: blur(24px);
  border: 1px solid var(--glass-border);
  border-top-color: var(--glass-edge);
  border-left-color: var(--glass-edge);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.30);
  border-radius: var(--radius);
}

/* ---------- Header / TopNavBar ---------- */
.site-head {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  gap: 14px; flex-wrap: wrap;
  padding: 16px clamp(1rem, 5vw, 4rem);
  background: rgba(11, 19, 38, 0.80);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--hair);
  box-shadow: 0 0 20px rgba(0, 219, 231, 0.10);
}
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand-mark { width: 28px; height: 28px; filter: drop-shadow(0 0 6px rgba(0, 219, 231, 0.45)); }
.brand-name {
  font-family: var(--f-display); font-weight: 700; font-size: 1.2rem;
  letter-spacing: -.01em; color: var(--primary);
}
.brand-name-2 { color: var(--cyan); }
.brand-tag {
  font-family: var(--f-mono);
  font-size: .68rem; text-transform: uppercase; letter-spacing: .16em;
  color: var(--on-variant); font-weight: 500;
}

/* nav + language switcher */
.site-nav { display: flex; align-items: center; gap: clamp(10px, 2vw, 22px); flex-wrap: wrap; }
.site-nav-link {
  font-size: .9rem; font-weight: 500; color: var(--on-variant);
  padding: 4px 2px; border-bottom: 2px solid transparent; transition: color .2s ease, border-color .2s ease;
}
.site-nav-link:hover { color: var(--on-surface); }
.site-nav-link.is-active { color: var(--cyan); border-bottom-color: var(--cyan); }
.lang-switch {
  display: inline-flex; align-items: center; gap: 2px;
  font-family: var(--f-mono); font-size: .72rem; font-weight: 500;
  padding: 3px; border: 1px solid var(--glass-border); border-radius: 999px; background: var(--glass-bg-2);
}
.lang-switch .lang {
  display: inline-block; padding: 3px 8px; border-radius: 999px; color: var(--on-variant); letter-spacing: .04em;
}
.lang-switch a.lang:hover { color: var(--on-surface); background: rgba(255, 255, 255, 0.06); }
.lang-switch .lang.is-active { color: var(--surface-lowest); background: var(--cyan); }

/* ---------- Shell ---------- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 8px clamp(1rem, 5vw, 4rem) 48px; }

.hero { text-align: center; padding: 56px 0 40px; max-width: 42rem; margin: 0 auto; }
.hero-title {
  font-family: var(--f-display);
  font-weight: 300;
  font-size: clamp(2rem, 6vw, 3rem);
  line-height: 1.15;
  letter-spacing: -.02em;
  margin: 0;
  color: var(--primary);
  text-shadow: 0 2px 24px rgba(0, 219, 231, 0.25);
}
.hero-title::after {
  content: ""; display: block; width: 72px; height: 2px; margin: 20px auto 0;
  background: linear-gradient(90deg, transparent, var(--cyan), var(--violet), transparent);
  box-shadow: 0 0 10px rgba(0, 219, 231, 0.6);
}
.hero-sub {
  max-width: 38rem; margin: 20px auto 0; color: var(--on-variant);
  font-size: clamp(1rem, 2.5vw, 1.12rem); font-weight: 300;
}
.hero-sub strong { color: var(--on-surface); font-weight: 500; }

/* ---------- Tool layout (bento) ---------- */
.tool {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-top: 8px;
  align-items: start;
}
@media (min-width: 900px) {
  .tool { grid-template-columns: 1.4fr 1fr; }
}

/* ---------- Estimator panel (left) ---------- */
.cert {
  position: relative;
  /* glass */
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(24px);
  backdrop-filter: blur(24px);
  border: 1px solid var(--glass-border);
  border-top-color: var(--glass-edge);
  border-left-color: var(--glass-edge);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.30);
  border-radius: var(--radius);
  padding: 2rem;
  overflow: hidden;
  transition: border-color .3s ease, box-shadow .3s ease;
}
.cert:hover { box-shadow: 0 8px 32px 0 rgba(0, 219, 231, 0.06); }
/* one decorative bracket, top-left (others suppressed for the cleaner look) */
.cert-corner {
  position: absolute; width: 64px; height: 64px; pointer-events: none; z-index: 1;
  border-color: var(--glass-edge);
}
.cert-corner-tl { top: 1rem; left: 1rem; border-top: 1px solid var(--glass-edge); border-left: 1px solid var(--glass-edge); border-top-left-radius: var(--radius); }
.cert-corner-tr, .cert-corner-bl, .cert-corner-br { display: none; }

.cert-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 2rem; padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.cert-kicker {
  font-family: var(--f-mono);
  font-size: .8rem; text-transform: uppercase; letter-spacing: .18em;
  color: var(--on-variant); font-weight: 500;
}
.cert-seal {
  display: inline-grid; place-items: center;
  font-family: var(--f-mono); font-size: .68rem; font-weight: 500; letter-spacing: .08em;
  color: var(--on-variant);
  border: 1px solid var(--glass-edge); border-radius: 999px;
  padding: 4px 14px;
}

/* fields */
.field { display: block; }
.field + .field { margin-top: 2rem; }
.field-label {
  display: block; font-family: var(--f-mono);
  font-size: .72rem; text-transform: uppercase; letter-spacing: .1em;
  color: var(--on-variant); font-weight: 500; margin-bottom: 12px;
}

/* native select styling (cyan/violet chevron drawn in CSS — no icon font needed) */
.rank-select, .cur-select {
  appearance: none; -webkit-appearance: none;
  background-color: var(--glass-bg-2);
  color: var(--on-surface);
  border: 1px solid var(--hair); border-radius: 0.5rem;
  cursor: pointer;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--on-variant) 50%),
    linear-gradient(135deg, var(--on-variant) 50%, transparent 50%);
  background-repeat: no-repeat;
}
.rank-select:focus, .cur-select:focus {
  outline: none; border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(0, 219, 231, 0.20);
}
.rank-select option, .cur-select option { background: var(--bg); color: var(--on-surface); }
.cur-select optgroup { background: var(--bg); color: var(--on-variant); font-weight: 600; }

/* rank picker */
.rank-row { display: flex; align-items: center; gap: 14px; }
.rank-gem {
  width: 48px; height: 48px; flex-shrink: 0;
  display: grid; place-items: center;
  border-radius: 999px; background: rgba(233, 179, 255, 0.10);
  border: 1px solid rgba(233, 179, 255, 0.25);
  box-shadow: 0 0 14px rgba(233, 179, 255, 0.18);
  filter: drop-shadow(0 0 4px rgba(0, 0, 0, .35));
}
.rank-gem .gem { width: 30px; height: 30px; }
.rank-select {
  flex: 1; min-width: 0;
  font-family: var(--f-display); font-size: 1.15rem; font-weight: 600;
  padding: 12px 40px 12px 16px;
  background-position: calc(100% - 20px) 55%, calc(100% - 14px) 55%;
  background-size: 6px 6px, 6px 6px;
}

/* progress slider + % input */
.prog-row { display: flex; align-items: center; gap: 16px; }
.slider {
  flex: 1; min-width: 0;
  -webkit-appearance: none; appearance: none;
  height: 6px; border-radius: 999px; cursor: pointer;
  background:
    linear-gradient(90deg, var(--violet-deep), var(--cyan)) left center / var(--p, 50%) 100% no-repeat,
    rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 0 8px rgba(0, 219, 231, 0.25) inset;
}
.slider::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--primary);
  border: 2px solid rgba(0, 219, 231, 0.8);
  box-shadow: 0 0 10px rgba(0, 219, 231, 0.6);
  cursor: grab; margin-top: 0;
}
.slider::-moz-range-thumb {
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--primary);
  border: 2px solid rgba(0, 219, 231, 0.8);
  box-shadow: 0 0 10px rgba(0, 219, 231, 0.6);
  cursor: grab;
}
.slider:focus { outline: none; }
.slider:focus::-webkit-slider-thumb { box-shadow: 0 0 0 4px rgba(0, 219, 231, 0.25), 0 0 10px rgba(0, 219, 231, 0.6); }

.prog-num {
  display: flex; align-items: baseline; gap: 3px; flex-shrink: 0;
  border-bottom: 1px solid var(--glass-edge); padding-bottom: 4px; min-width: 4.5rem;
  justify-content: flex-end;
}
.prog-num input {
  width: 3.4rem; border: 0; background: transparent; outline: none; text-align: right;
  font-family: var(--f-mono); font-size: 1.3rem; font-weight: 500; color: var(--primary); padding: 0;
}
.prog-suffix { font-family: var(--f-mono); font-size: 1rem; color: var(--on-variant); }

.cur-select {
  width: 100%; max-width: 12rem;
  font-family: var(--f-mono); font-size: .9rem; font-weight: 500;
  padding: 10px 34px 10px 14px;
  background-position: calc(100% - 16px) 55%, calc(100% - 10px) 55%;
  background-size: 5px 5px, 5px 5px;
}

/* divider */
.cert-rule {
  border: 0; height: 1px; margin: 2rem 0;
  background: linear-gradient(90deg, transparent, var(--hair), transparent);
}
.cert-rule::after { content: none; }

/* ---------- Result ---------- */
.result-rank {
  display: flex; align-items: center; gap: 1.25rem;
  padding: 1.5rem;
  background: rgba(6, 14, 32, 0.30);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 0.5rem;
  box-shadow: inset 0 0 20px rgba(0, 219, 231, 0.05), 0 0 15px rgba(0, 219, 231, 0.10);
}
.result-gem {
  width: 64px; height: 64px; flex-shrink: 0;
  display: grid; place-items: center;
  border-radius: 999px;
  background: rgba(125, 1, 177, 0.20);
  border: 1px solid rgba(233, 179, 255, 0.30);
  box-shadow: 0 0 15px rgba(233, 179, 255, 0.20);
}
.result-gem .gem { width: 40px; height: 40px; filter: drop-shadow(0 2px 4px rgba(0, 0, 0, .35)); }
.result-id { display: flex; flex-direction: column; gap: 2px; }
.result-label {
  font-family: var(--f-mono); font-size: .7rem; text-transform: uppercase; letter-spacing: .16em;
  color: var(--on-variant); font-weight: 500;
}
.result-name {
  font-family: var(--f-display); font-size: 1.8rem; font-weight: 700; line-height: 1.1; color: var(--primary);
}
.result-sub { font-family: var(--f-mono); font-size: .76rem; color: var(--on-variant); margin-top: 2px; }
.result-rake { font-family: var(--f-mono); font-size: .78rem; color: var(--on-variant); margin-top: 2px; }

/* remaining-to-rank-up headline */
.remain { margin-top: 2rem; }
.remain-label {
  display: block; font-family: var(--f-mono);
  font-size: .74rem; text-transform: uppercase; letter-spacing: .14em;
  color: var(--on-variant); font-weight: 500;
}
.remain-label strong { color: var(--cyan); font-weight: 700; }
.remain-val {
  display: block; font-family: var(--f-display);
  font-size: clamp(2.1rem, 7vw, 2.8rem); font-weight: 700; line-height: 1.1; margin-top: 8px;
  color: var(--primary); letter-spacing: -.02em;
  text-shadow: 0 0 14px rgba(0, 219, 231, 0.30);
}
.remain-equiv {
  display: block; font-family: var(--f-mono); font-size: .8rem; color: var(--on-variant); margin-top: 10px;
}

.levelup-row {
  margin-top: 1.5rem; padding: 1rem;
  border-radius: 0.5rem;
  background: rgba(194, 193, 255, 0.06);
  border: 1px solid rgba(194, 193, 255, 0.20);
  font-size: .92rem; color: var(--tertiary);
}
.levelup-row strong { color: var(--cyan); font-weight: 700; }
.levelup-row .est {
  font-family: var(--f-mono); font-size: .6rem; text-transform: uppercase; letter-spacing: .08em;
  color: var(--on-variant); opacity: .7;
}

/* Path to next level (per-game table) */
.path { margin-top: 1.75rem; padding-top: 1.5rem; border-top: 1px solid rgba(255, 255, 255, 0.06); }
.path-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 12px; }
.path-title {
  font-family: var(--f-mono); font-size: .74rem; text-transform: uppercase; letter-spacing: .12em;
  color: var(--on-variant); font-weight: 500;
}
.path-title span { color: var(--primary); }
.path-cur { font-family: var(--f-mono); font-size: .7rem; color: var(--on-variant); }
.games { width: 100%; border-collapse: collapse; margin-top: 14px; }
.games thead th {
  text-align: left; font-family: var(--f-mono);
  font-size: .62rem; text-transform: uppercase; letter-spacing: .08em;
  color: var(--on-variant); font-weight: 500; padding: 8px 4px;
  border-bottom: 1px solid rgba(0, 219, 231, 0.30);
}
.games thead th:not(:first-child) { text-align: right; }
.games tbody td { padding: 10px 4px; border-bottom: 1px solid rgba(255, 255, 255, 0.06); font-size: .88rem; }
.games tbody tr:last-child td { border-bottom: 0; }
.g-name { color: var(--on-surface); }
.g-meta { font-family: var(--f-mono); font-size: .66rem; color: var(--on-variant); white-space: nowrap; }
.path-note { font-size: .74rem; color: var(--on-variant); margin: 12px 0 0; line-height: 1.5; }
.path-note strong { color: var(--on-surface); }

/* ---------- Gem ladder (right) ---------- */
.ladder-wrap {
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(24px);
  backdrop-filter: blur(24px);
  border: 1px solid var(--glass-border);
  border-top-color: var(--glass-edge);
  border-left-color: var(--glass-edge);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.30);
  border-radius: var(--radius);
  padding: 1.5rem;
  position: sticky; top: 88px;
}
.ladder-head {
  font-family: var(--f-mono);
  font-size: .8rem; text-transform: uppercase; letter-spacing: .18em; font-weight: 500;
  color: var(--on-variant); padding-bottom: 1rem; margin-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.ladder { position: relative; padding-left: 0; }
/* rail centred on the node column (node-col 24px → centre 12px; rail left 11 + width 2 → centre 12px) */
.ladder-rail, .ladder-rail-fill { position: absolute; left: 11px; width: 2px; border-radius: 2px; }
.ladder-rail { top: 19px; bottom: 19px; background: rgba(255, 255, 255, 0.10); }
.ladder-rail-fill {
  bottom: 19px; height: calc(var(--fill, 0%) * (100% - 38px) / 100%);
  background: linear-gradient(180deg, var(--cyan), var(--violet-deep));
  box-shadow: 0 0 10px rgba(0, 219, 231, 0.50);
  transition: height .5s cubic-bezier(.2,.8,.2,1);
}
.ladder-row {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 24px 28px 1fr auto; align-items: center; gap: 11px;
  padding: 8px 10px 8px 0; border-radius: 8px; min-height: 40px;
  transition: background .2s ease, opacity .2s ease;
}
.ladder-node {
  width: 9px; height: 9px; border-radius: 50%; justify-self: center;
  background: var(--surface); border: 1px solid rgba(255, 255, 255, 0.30);
}
.ladder-gem { width: 28px; height: 28px; opacity: .9; transition: transform .2s ease, opacity .2s ease; }
.ladder-gem .gem { width: 100%; height: 100%; }
.ladder-name { font-family: var(--f-body); font-size: .95rem; font-weight: 400; color: var(--on-variant); }
.ladder-min { font-family: var(--f-mono); font-size: .74rem; color: var(--on-variant); justify-self: end; }
.ladder-here {
  display: none; grid-column: 4; grid-row: 1; justify-self: end; align-items: center;
  font-family: var(--f-mono);
  font-size: .58rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 700;
  color: var(--error-ink); background: var(--error-bg); padding: 4px 9px; border-radius: 6px; white-space: nowrap;
}

/* earned (already passed) */
.ladder-row.is-earned { opacity: .6; }
.ladder-row.is-earned .ladder-node { background: rgba(255, 255, 255, 0.30); border-color: rgba(255, 255, 255, 0.30); }
.ladder-row.is-earned .ladder-gem { opacity: 1; }
/* locked (still above you) */
.ladder-row.is-locked { opacity: .4; }
.ladder-row.is-locked:hover { opacity: 1; }
.ladder-row.is-locked .ladder-gem { opacity: .8; }
/* current */
.ladder-row.is-current {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  box-shadow: inset 0 0 20px rgba(233, 179, 255, 0.05), 0 0 15px rgba(233, 179, 255, 0.10);
  margin-left: -8px; padding-left: 8px;
}
.ladder-row.is-current .ladder-gem { opacity: 1; transform: scale(1.12); filter: drop-shadow(0 0 6px rgba(233, 179, 255, .5)); }
.ladder-row.is-current .ladder-name { font-weight: 700; color: var(--violet); }
.ladder-row.is-current .ladder-node {
  width: 12px; height: 12px;
  background: var(--violet); border: 2px solid var(--surface);
  box-shadow: 0 0 10px rgba(233, 179, 255, 0.80);
}
.ladder-row.is-current .ladder-min { display: none; }
.ladder-row.is-current .ladder-here { display: inline-flex; }

/* ---------- Social proof ---------- */
.social { text-align: center; margin: 2rem auto 0; font-size: .9rem; color: var(--on-variant); }
.social strong { color: var(--primary); font-family: var(--f-mono); }

/* ---------- SEO sections ---------- */
.seo { max-width: 48rem; margin: 64px auto 0; }
#levels { max-width: var(--maxw); }
.seo-h {
  font-family: var(--f-display); font-weight: 600; font-size: clamp(1.5rem, 3.5vw, 2rem);
  margin: 0 0 14px; color: var(--primary); letter-spacing: -.01em;
}
.seo-lead, .seo p { color: var(--on-variant); margin: 0 0 14px; }
.seo p strong, .seo-lead strong { color: var(--on-surface); font-weight: 600; }
.seo-note { font-size: .84rem; color: var(--on-variant); font-style: italic; opacity: .8; }

.table-scroll {
  overflow-x: auto; border-radius: var(--radius);
  border: 1px solid var(--glass-border);
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px);
}
.ranks { width: 100%; border-collapse: collapse; min-width: 32rem; }
.ranks thead th {
  text-align: left; font-family: var(--f-mono);
  font-size: .68rem; text-transform: uppercase; letter-spacing: .1em;
  color: var(--on-variant); font-weight: 500; padding: 13px 16px;
  border-bottom: 1px solid rgba(0, 219, 231, 0.30); background: rgba(255, 255, 255, 0.03);
}
.ranks thead th:not(:first-child) { text-align: right; }
.ranks tbody td { padding: 11px 16px; border-bottom: 1px solid rgba(255, 255, 255, 0.06); font-size: .92rem; color: var(--on-surface); }
.ranks tbody tr:nth-child(even) { background: rgba(255, 255, 255, 0.02); }
.ranks tbody tr:last-child td { border-bottom: 0; }
.rk-name { display: flex; align-items: center; gap: 10px; font-family: var(--f-display); font-weight: 500; color: var(--on-surface); }
.rk-gem { width: 26px; height: 26px; flex-shrink: 0; }
.rk-gem .gem { width: 100%; height: 100%; }
.rk-num { font-family: var(--f-mono); color: var(--on-variant); text-align: right; white-space: nowrap; }

/* FAQ */
.faq { display: flex; flex-direction: column; gap: 10px; margin-top: 8px; }
.faq-item {
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px);
  border: 1px solid var(--glass-border); border-radius: 0.5rem;
  transition: border-color .2s ease;
}
.faq-item[open] { border-color: rgba(0, 219, 231, 0.25); }
.faq-q {
  cursor: pointer; padding: 15px 18px; font-weight: 600; font-size: 1rem; color: var(--on-surface);
  list-style: none; position: relative; padding-right: 44px;
}
.faq-q::-webkit-details-marker { display: none; }
.faq-q::after {
  content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%);
  color: var(--cyan); font-family: var(--f-mono); font-size: 1.3rem; font-weight: 400;
}
.faq-item[open] .faq-q::after { content: "–"; }
.faq-a { padding: 0 18px 16px; color: var(--on-variant); }

/* ---------- CTA button ---------- */
.cta-btn {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--f-mono); font-size: .82rem; font-weight: 500;
  text-transform: uppercase; letter-spacing: .08em;
  color: var(--surface-lowest); background: linear-gradient(90deg, var(--cyan), var(--cyan-bright));
  padding: 11px 20px; border-radius: 999px; margin-top: 18px;
  box-shadow: 0 0 18px rgba(0, 219, 231, 0.35); transition: transform .2s ease, box-shadow .2s ease;
}
.cta-btn:hover { color: var(--surface-lowest); transform: translateY(-1px); box-shadow: 0 0 26px rgba(0, 219, 231, 0.55); }

/* ---------- Blackjack strategy ---------- */
.bj-legend {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px;
  max-width: var(--maxw); margin: 8px auto 0; padding: 16px 0;
}
.bj-legend-title {
  font-family: var(--f-mono); font-size: .72rem; text-transform: uppercase; letter-spacing: .14em;
  color: var(--on-variant); font-weight: 500;
}
.bj-key {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: .82rem; color: var(--on-surface);
}
.bj-key b {
  display: inline-grid; place-items: center; min-width: 24px; height: 22px; padding: 0 5px;
  font-family: var(--f-mono); font-size: .72rem; font-weight: 700; border-radius: 5px;
}

.bj-charts { max-width: var(--maxw); margin: 8px auto 0; }
.bj-scroll { overflow-x: auto; margin: 22px 0; }
.bj-chart { border-collapse: separate; border-spacing: 3px; width: 100%; min-width: 33rem; }
.bj-cap {
  caption-side: top; text-align: left; margin-bottom: 12px;
  font-family: var(--f-display); font-weight: 600; font-size: 1.05rem; color: var(--primary);
}
.bj-chart th {
  font-family: var(--f-mono); font-weight: 500; color: var(--on-variant);
  font-size: .72rem; padding: 6px; text-align: center;
}
.bj-chart th[scope="row"] { text-align: right; padding-right: 10px; white-space: nowrap; color: var(--on-surface); }
.bj-corner { text-align: left !important; font-size: .6rem !important; text-transform: uppercase; letter-spacing: .06em; }
.bj-chart td {
  text-align: center; border-radius: 5px; padding: 0;
}
.bj-chart td span {
  display: grid; place-items: center; height: 30px; min-width: 30px;
  font-family: var(--f-mono); font-size: .78rem; font-weight: 700;
}
/* action colours (legend keys share these) */
.bj-H b, td.bj-H span { background: rgba(255, 120, 110, 0.16); color: #ffb4ab; box-shadow: inset 0 0 0 1px rgba(255, 120, 110, 0.30); }
.bj-S b, td.bj-S span { background: rgba(116, 245, 170, 0.16); color: #8ff0bf; box-shadow: inset 0 0 0 1px rgba(116, 245, 170, 0.30); }
.bj-D b, td.bj-D span { background: rgba(0, 219, 231, 0.18); color: var(--cyan-bright); box-shadow: inset 0 0 0 1px rgba(0, 219, 231, 0.40); }
.bj-Ds b, td.bj-Ds span { background: rgba(0, 219, 231, 0.10); color: var(--cyan-bright); border: 1px dashed rgba(0, 219, 231, 0.55); }
.bj-P b, td.bj-P span { background: rgba(233, 179, 255, 0.16); color: var(--violet); box-shadow: inset 0 0 0 1px rgba(233, 179, 255, 0.34); }
.bj-note { font-size: .78rem; color: var(--on-variant); margin: 4px 0 0; line-height: 1.5; max-width: 52rem; }

/* ---------- 404 ---------- */
.notfound { text-align: center; padding: 64px 0; max-width: 36rem; margin: 0 auto; }
.nf-home { font-family: var(--f-mono); font-size: .9rem; }

/* ---------- Footer ---------- */
.site-foot {
  margin-top: 80px; border-top: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(6, 14, 32, 0.50);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}

/* My-Monkey universe footer (network links) */
.mm-footer {
  max-width: var(--maxw); margin: 0 auto;
  padding: 36px clamp(1rem, 5vw, 4rem) 28px;
  display: grid; gap: 28px 40px;
  grid-template-columns: minmax(12rem, 1.2fr) repeat(auto-fit, minmax(9rem, 1fr));
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.mm-brand { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.mm-brand-link {
  font-family: var(--f-display); font-size: 1.1rem; font-weight: 700; color: var(--primary);
}
.mm-brand-link:hover { color: var(--cyan-bright); }
.mm-cta {
  display: inline-flex; align-items: center; gap: 4px;
  font-family: var(--f-mono); font-size: .76rem; font-weight: 500;
  text-transform: uppercase; letter-spacing: .08em;
  color: var(--cyan);
  border: 1px solid rgba(0, 219, 231, 0.30); border-radius: 999px;
  padding: 7px 14px; transition: border-color .2s ease, background .2s ease, color .2s ease;
}
.mm-cta:hover { color: var(--surface-lowest); background: var(--cyan); border-color: var(--cyan); }
.mm-col h4 {
  font-family: var(--f-mono); font-size: .68rem; text-transform: uppercase; letter-spacing: .14em;
  color: var(--on-variant); font-weight: 500; margin: 0 0 12px;
}
.mm-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.mm-col a { font-size: .9rem; color: var(--on-surface); }
.mm-col a:hover { color: var(--cyan); }

.foot-inner { max-width: var(--maxw); margin: 0 auto; padding: 32px clamp(1rem, 5vw, 4rem) 40px; }
.foot-disclaimer { font-size: .82rem; color: var(--on-variant); margin: 0 0 12px; max-width: 52rem; }
.foot-disclaimer strong { color: var(--on-surface); }
.foot-rg { font-size: .82rem; color: var(--on-variant); margin: 0 0 16px; }
.foot-copy { font-size: .78rem; color: var(--on-variant); margin: 0; font-family: var(--f-mono); opacity: .8; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
