/* Equazy – made by alexma. Farver fra DESIGN.md (appens Theme.swift). */

@font-face { font-family: "Inter"; src: url("/fonts/Inter-Regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/fonts/Inter-Medium.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/fonts/Inter-SemiBold.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Space Grotesk"; src: url("/fonts/SpaceGrotesk-Medium.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Space Grotesk"; src: url("/fonts/SpaceGrotesk-Bold.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }

:root {
  color-scheme: light dark;
  --bg: #F3F4F6;
  --card: #FFFFFF;
  --card-muted: #E9EBEF;
  --border: #D5D9E0;
  --empty: #E3E6EB;
  --text: #15181E;
  --secondary: #5B6472;
  --accent: #1D4ED8;
  --accent-ink: #FFFFFF;
  --accent-light: #DBE6FB;
  --success: #166534;
  --success-light: #DCFCE7;
  --target: #15181E;
  --bonus: #D97706;
  --ink: #15181E;
  --sel-bg: #15181E;
  --sel-fg: #FFFFFF;
  --accent-text: #1D4ED8;
  --accent-btn: #1D4ED8;
  --bonus-text: #B45309;
  --bonus-on-sel: #F59E0B;

  --hero: #1D4ED8;
  --hero-panel: #1741BC;
  --hero-text: #FFFFFF;
  --hero-soft: #DBE6FB;
  --tile: #FFFFFF;
  --tile-text: #15181E;
  --tile-sel: #15181E;
  --tile-sel-text: #FFFFFF;
  --band: #15181E;
  --band-text: #F3F4F6;
  --band-soft: #B8C0CC;

  --shadow-tile: 0 2px 0 rgba(10, 20, 60, .18), 0 6px 14px -6px rgba(10, 20, 60, .35);
  --shadow-card: 0 1px 2px rgba(21, 24, 30, .06), 0 12px 32px -16px rgba(21, 24, 30, .22);

  --font-display: "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
  --font-body: "Inter", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --r-card: 14px;
  --r-tile: 8px;
  --gutter: 16px;
  --max: 1160px;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0F1115;
    --card: #1A1D23;
    --card-muted: #16191E;
    --border: #2C313A;
    --empty: #22262D;
    --text: #F3F4F6;
    --secondary: #9AA3B2;
    --accent: #3B6EF0;
    --accent-ink: #FFFFFF;
    --accent-light: #1E2A4A;
    --success: #4ADE80;
    --success-light: #14301F;
    --target: #262B33;
    --bonus: #F59E0B;
    --sel-bg: #F3F4F6;
    --sel-fg: #15181E;
    --accent-text: #8FB0FF;
    --accent-btn: #2F5FE0;
    --bonus-text: #F59E0B;
    --bonus-on-sel: #B45309;

    --hero: #16307E;
    --hero-panel: #0F2463;
    --hero-text: #FFFFFF;
    --hero-soft: #C9D6F5;
    --tile: #F3F4F6;
    --tile-text: #15181E;
    --tile-sel: #0F1115;
    --tile-sel-text: #FFFFFF;
    --band: #1A1D23;
    --band-text: #F3F4F6;
    --band-soft: #9AA3B2;
    --shadow-tile: 0 2px 0 rgba(0, 0, 0, .35), 0 6px 14px -6px rgba(0, 0, 0, .6);
    --shadow-card: 0 1px 2px rgba(0, 0, 0, .3), 0 12px 32px -16px rgba(0, 0, 0, .7);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 80px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 1rem/1.6 var(--font-body);
  font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--accent); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
::selection { background: var(--accent); color: #fff; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 700; line-height: 1.08; letter-spacing: -.025em; margin: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
.tnum { font-variant-numeric: tabular-nums; }
.icon { width: 24px; height: 24px; flex: none; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
@media (min-width: 720px) { :root { --gutter: 32px; } }

.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--card); color: var(--text); padding: 10px 14px; border-radius: 10px; font-weight: 600; }
.skip:focus { top: 12px; }

/* ---------- Header ---------- */
.site-header { position: absolute; inset: 0 0 auto 0; z-index: 20; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; font: 700 1.25rem/1 var(--font-display); letter-spacing: -.02em; min-height: 44px; }
.brand img { width: 34px; height: 34px; border-radius: 9px; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { color: inherit; text-decoration: none; font-weight: 500; font-size: .9375rem; padding: 10px 12px; border-radius: 10px; min-height: 44px; display: inline-flex; align-items: center; }
.nav a:hover { background: color-mix(in srgb, currentColor 10%, transparent); }
.nav .nav-hide { display: none; }
@media (min-width: 760px) { .nav .nav-hide { display: inline-flex; } }
.lang { display: inline-flex; align-items: center; gap: 6px; border: 1px solid color-mix(in srgb, currentColor 30%, transparent); }
.lang .icon { width: 18px; height: 18px; }
.is-hero-page .site-header { color: var(--hero-text); }
.is-plain-page .site-header { position: static; border-bottom: 1px solid var(--border); background: var(--card); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: var(--hero);
  color: var(--hero-text);
  padding: 96px 0 56px;
  overflow: hidden;
  isolation: isolate;
}
.hero::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 1px; background: rgba(255,255,255,.12);
}
.hero-grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 960px) {
  .hero { padding: 120px 0 88px; min-height: min(100svh, 940px); display: flex; align-items: center; }
  .hero-grid { grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); gap: 56px; }
}
.hero h1 { font-size: clamp(2.75rem, 1.6rem + 4.2vw, 4.5rem); letter-spacing: -.035em; line-height: .98; }
.hero h1 .line { display: block; }
.hero h1 .soft { color: var(--hero-soft); }
.hero-lede { margin-top: 20px; font-size: clamp(1.0625rem, 1rem + .35vw, 1.25rem); line-height: 1.55; color: var(--hero-soft); max-width: 34ch; }
.hero-cta { margin-top: 32px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.hero-note { font-size: .9375rem; color: var(--hero-soft); }

.store-badge {
  display: inline-flex; align-items: center; gap: 12px;
  min-height: 60px; padding: 10px 22px 10px 16px;
  background: #000; color: #fff; border-radius: 14px;
  border: 1px solid rgba(255,255,255,.28);
  text-decoration: none; cursor: default;
  box-shadow: 0 10px 24px -12px rgba(0,0,0,.55);
}
.store-badge .icon { width: 30px; height: 30px; }
.store-badge span { display: grid; line-height: 1.1; text-align: left; }
.store-badge small { font-size: .75rem; font-weight: 500; letter-spacing: .01em; opacity: .85; }
.store-badge strong { font: 700 1.3rem/1.1 var(--font-display); letter-spacing: -.01em; }
.store-badge .soon { margin-left: 6px; align-self: center; font: 600 .6875rem/1 var(--font-body); text-transform: uppercase; letter-spacing: .08em; padding: 6px 8px; border-radius: 6px; background: var(--bonus); color: #15181E; }

/* ---------- Game (hero) ---------- */
.game { position: relative; width: 100%; max-width: 480px; margin-inline: auto; }
.game-panel {
  background: var(--hero-panel);
  border-radius: 24px;
  padding: 14px;
  box-shadow: 0 30px 60px -30px rgba(5, 15, 50, .7), inset 0 1px 0 rgba(255,255,255,.08);
  transition: transform .6s var(--ease-out);
}
@media (min-width: 960px) { .game-panel { transform: rotate(-2.5deg); } }
.game:hover .game-panel, .game:focus-within .game-panel, .game.is-live .game-panel { transform: rotate(0deg); }
@media (min-width: 520px) { .game-panel { padding: 18px; } }
.game-top { display: flex; align-items: stretch; gap: 10px; margin-bottom: 14px; }
.target-card {
  flex: none; display: grid; align-content: center; justify-items: start;
  min-width: 112px; padding: 10px 16px; border-radius: 14px;
  background: var(--ink); color: #fff;
  transition: background-color .3s ease, transform .3s var(--ease-out);
}
.target-card .label { font: 600 .6875rem/1 var(--font-body); letter-spacing: .1em; text-transform: uppercase; opacity: .7; }
.target-card .value { font: 700 2.5rem/1 var(--font-display); letter-spacing: -.03em; margin-top: 6px; font-variant-numeric: tabular-nums; }
.target-card.is-hit { background: #166534; }
.players { flex: 1; display: grid; gap: 6px; min-width: 0; }
.player { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 12px; border-radius: 12px; background: rgba(255,255,255,.08); color: var(--hero-soft); font-weight: 500; font-size: .9375rem; transition: background-color .3s ease, color .3s ease; }
.player b { font: 700 1.125rem/1 var(--font-display); color: #fff; font-variant-numeric: tabular-nums; }
.player.is-turn { background: #fff; color: var(--ink); }
.player.is-turn b { color: var(--ink); }
.player .who { display: inline-flex; align-items: center; gap: 8px; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.player .dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; opacity: 0; flex: none; }
.player.is-turn .dot { opacity: 1; background: var(--accent); }

.board {
  --n: 6; --g: 6px;
  --t: calc((100% - (var(--n) - 1) * var(--g)) / var(--n));
  position: relative; width: 100%; aspect-ratio: 1; touch-action: none; user-select: none; -webkit-user-select: none;
}
@media (min-width: 520px) { .board { --g: 8px; } }
.tile {
  position: absolute; width: var(--t); height: var(--t);
  left: calc(var(--c) * (var(--t) + var(--g)));
  top: calc(var(--r) * (var(--t) + var(--g)));
  display: grid; place-items: center;
  background: var(--tile); color: var(--tile-text);
  border-radius: var(--r-tile);
  font: 700 clamp(1.375rem, 1rem + 2.2vw, 2rem)/1 var(--font-display);
  box-shadow: var(--shadow-tile);
  transition: background-color .16s ease, color .16s ease, box-shadow .16s ease;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.tile.is-bonus { box-shadow: inset 0 0 0 3px var(--bonus), var(--shadow-tile); }
.tile.is-bonus::after {
  content: "×2"; position: absolute; top: 3px; right: 5px;
  font: 700 .625rem/1 var(--font-display); color: #B45309;
}
.tile.is-sel { background: var(--tile-sel); color: var(--tile-sel-text); }
.tile.is-hint { box-shadow: inset 0 0 0 3px var(--accent), var(--shadow-tile); }
.tile:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.sign {
  position: absolute; z-index: 3; width: 30px; height: 30px; margin: -15px 0 0 -15px;
  display: grid; place-items: center; border-radius: 50%;
  background: var(--accent); color: #fff; font: 700 1.125rem/1 var(--font-display);
  box-shadow: 0 0 0 3px var(--hero-panel), 0 6px 14px -4px rgba(0,0,0,.4);
  pointer-events: none;
}
.points-pop { position: absolute; z-index: 5; pointer-events: none; font: 700 1.75rem/1 var(--font-display); color: #fff; text-shadow: 0 2px 10px rgba(0,0,0,.35); }
.cursor { position: absolute; z-index: 6; left: 0; top: 0; width: 44px; height: 44px; pointer-events: none; opacity: 0; color: #fff; filter: drop-shadow(0 4px 8px rgba(0,0,0,.45)); }
.cursor svg { width: 44px; height: 44px; stroke-width: 1.6; }
.cursor .tap { position: absolute; left: 8px; top: 2px; width: 22px; height: 22px; border-radius: 50%; background: rgba(255,255,255,.45); transform: scale(0); }
.game-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 14px; min-height: 44px; }
.status { font-size: .9375rem; color: var(--hero-soft); line-height: 1.35; }
.status b { color: #fff; font-family: var(--font-display); font-weight: 700; font-size: 1.0625rem; }
.hint-btn {
  flex: none; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 14px;
  border-radius: 12px; border: 1px solid rgba(255,255,255,.3); background: transparent; color: #fff;
  font: 600 .9375rem/1 var(--font-body); cursor: pointer;
}
.hint-btn:hover { background: rgba(255,255,255,.1); }
.hint-btn .icon { width: 18px; height: 18px; }
.no-js .hint-btn { display: none; }
.board.shake { animation: shake .4s ease; }
@keyframes shake { 20% { transform: translateX(-6px); } 40% { transform: translateX(6px); } 60% { transform: translateX(-4px); } 80% { transform: translateX(3px); } }

/* ---------- Sections ---------- */
.section { padding: 88px 0; }
@media (min-width: 960px) { .section { padding: 128px 0; } }
.section-head { max-width: 680px; margin-bottom: 48px; }
.section-head h2 { font-size: clamp(2.125rem, 1.5rem + 2.8vw, 3.5rem); }
.section-head p { margin-top: 16px; font-size: 1.125rem; color: var(--secondary); max-width: 52ch; }

/* How it works */
.steps { display: grid; gap: 48px; counter-reset: step; }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 32px; } }
.step h3 { font-size: 1.5rem; margin-top: 28px; display: flex; align-items: baseline; gap: 12px; }
.step h3 .n { font-size: 1rem; color: var(--accent-text); font-variant-numeric: tabular-nums; }
.step p { margin-top: 10px; color: var(--secondary); max-width: 38ch; }
.stage {
  height: 228px; border-radius: 20px; background: var(--card); box-shadow: var(--shadow-card);
  display: grid; place-items: center; position: relative; overflow: hidden;
}
.mini { --m: 50px; --mg: 6px; position: relative; width: calc(3 * var(--m) + 2 * var(--mg)); height: calc(3 * var(--m) + 2 * var(--mg)); }
.mini .mt {
  position: absolute; width: var(--m); height: var(--m); border-radius: 8px;
  left: calc(var(--c) * (var(--m) + var(--mg))); top: calc(var(--r) * (var(--m) + var(--mg)));
  display: grid; place-items: center; background: var(--empty); color: var(--text);
  font: 700 1.5rem/1 var(--font-display);
}
.mini .mt.lift { background: var(--card); box-shadow: 0 0 0 1px var(--border), 0 3px 8px -4px rgba(0,0,0,.3); }
.mini-finger { position: absolute; width: 36px; height: 36px; color: var(--text); left: 0; top: 0; opacity: 0; }
.mini-finger svg { width: 36px; height: 36px; stroke-width: 1.6; }

.eqrow { display: flex; align-items: center; gap: 6px; }
.eqrow .mt { position: static; width: 48px; height: 48px; border-radius: 8px; display: grid; place-items: center; font: 700 1.5rem/1 var(--font-display); background: var(--sel-bg); color: var(--sel-fg); }
.eqrow .slot { width: 36px; height: 36px; border-radius: 50%; background: var(--accent-light); color: var(--accent-text); position: relative; overflow: hidden; }
.eqrow .slot span { position: absolute; inset: 0; display: grid; place-items: center; font: 700 1.25rem/1 var(--font-display); }
.eqrow .eqsign { font: 700 1.5rem/1 var(--font-display); color: var(--secondary); padding-inline: 2px; }
.eqrow .goal { width: auto; padding-inline: 10px; background: var(--card); color: var(--text); box-shadow: 0 0 0 2px var(--border); }

/* Mini animations – kun når scenen er synlig og bevægelse er tilladt */
@media (prefers-reduced-motion: no-preference) {
  .is-playing .s1 .mini-finger { animation: s1-finger 4s var(--ease-out) infinite; }
  .is-playing .s1 .a { animation: s1-a 4s linear infinite; }
  .is-playing .s1 .b { animation: s1-b 4s linear infinite; }
  .is-playing .s2 .slot span { animation: s2-slot 4s var(--ease-out) infinite; }
  .is-playing .s2 .slot span:nth-child(1) { --y0: 0%; }
  .is-playing .s2 .goal { animation: s2-goal 4s ease infinite; }
  .is-playing .s3 .gone { animation: s3-gone 4s var(--ease-out) infinite; }
  .is-playing .s3 .fall { animation: s3-fall 4s linear infinite; }
  .is-playing .s3 .new { animation: s3-new 4s linear infinite; }
  .is-playing .s3 .new:nth-of-type(odd) { animation-delay: .04s; }
}
@keyframes s1-finger {
  0% { opacity: 0; transform: translate(10px, 150px); }
  12% { opacity: 1; transform: translate(14px, 76px); }
  30% { transform: translate(14px, 76px); }
  50% { transform: translate(70px, 76px); }
  78% { opacity: 1; transform: translate(70px, 76px); }
  90%, 100% { opacity: 0; transform: translate(80px, 150px); }
}
@keyframes s1-a { 0%, 22% { background: var(--card); color: var(--text); } 24%, 86% { background: var(--sel-bg); color: var(--sel-fg); } 90%, 100% { background: var(--card); color: var(--text); } }
@keyframes s1-b { 0%, 44% { background: var(--card); color: var(--text); } 46%, 86% { background: var(--sel-bg); color: var(--sel-fg); } 90%, 100% { background: var(--card); color: var(--text); } }
.s2 .slot span { transform: translateY(var(--y, 0)); }
.s2 .slot span:nth-child(1) { --y: 100%; }
.s2 .slot span:nth-child(2) { --y: 100%; }
.s2 .slot span:nth-child(3) { --y: 0%; }
@keyframes s2-slot { 0% { transform: translateY(100%); } 100% { transform: translateY(100%); } }
.is-playing .s2 .slot span:nth-child(1) { animation-name: s2-plus; }
.is-playing .s2 .slot span:nth-child(2) { animation-name: s2-minus; }
.is-playing .s2 .slot span:nth-child(3) { animation-name: s2-times; }
@keyframes s2-plus { 0%, 8% { transform: translateY(100%); } 14%, 24% { transform: translateY(0); } 30%, 100% { transform: translateY(-100%); } }
@keyframes s2-minus { 0%, 24% { transform: translateY(100%); } 30%, 40% { transform: translateY(0); } 46%, 100% { transform: translateY(-100%); } }
@keyframes s2-times { 0%, 40% { transform: translateY(100%); } 46%, 92% { transform: translateY(0); } 98%, 100% { transform: translateY(-100%); } }
@keyframes s2-goal { 0%, 50% { background: var(--card); color: var(--text); box-shadow: 0 0 0 2px var(--border); } 54%, 90% { background: var(--success-light); color: var(--success); box-shadow: 0 0 0 2px var(--success); } 96%, 100% { background: var(--card); color: var(--text); box-shadow: 0 0 0 2px var(--border); } }
.s3 .new { opacity: 0; }
@keyframes s3-gone {
  0%, 10% { transform: scale(1); opacity: 1; background: var(--sel-bg); color: var(--sel-fg); }
  22%, 88% { transform: scale(.2); opacity: 0; background: var(--sel-bg); color: var(--sel-fg); }
  96%, 100% { transform: scale(1); opacity: 1; background: var(--sel-bg); color: var(--sel-fg); }
}
@keyframes s3-fall {
  0%, 24% { transform: translateY(0); animation-timing-function: cubic-bezier(.5, 0, .9, .5); }
  34% { transform: translateY(calc(var(--m) + var(--mg) + 6px)); animation-timing-function: ease-out; }
  40%, 88% { transform: translateY(calc(var(--m) + var(--mg))); }
  92% { opacity: 1; }
  96% { transform: translateY(calc(var(--m) + var(--mg))); opacity: 0; }
  97%, 100% { transform: translateY(0); opacity: 1; }
}
@keyframes s3-new {
  0%, 40% { transform: scale(0); opacity: 0; }
  48% { transform: scale(1.12); opacity: 1; }
  54%, 90% { transform: scale(1); opacity: 1; }
  96%, 100% { transform: scale(1); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) { .s3 .new { opacity: 0; } }

/* Points */
.points { background: var(--card); border-block: 1px solid var(--border); }
.points-grid { display: grid; gap: 48px; align-items: center; }
@media (min-width: 960px) { .points-grid { grid-template-columns: 1fr 1.05fr; gap: 80px; } }
.rules { margin-top: 32px; display: grid; gap: 0; border-top: 1px solid var(--border); }
.rules div { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--border); }
.rules dt { color: var(--secondary); }
.rules dd { margin: 0; font: 700 1.125rem/1.3 var(--font-display); font-variant-numeric: tabular-nums; }
.rules .bonus-word { color: var(--bonus-text); }
.calc { background: var(--bg); border-radius: 24px; padding: 28px 20px; display: grid; gap: 28px; justify-items: center; }
@media (min-width: 520px) { .calc { padding: 40px 32px; } }
.calc-eq { display: flex; align-items: center; justify-content: center; gap: 6px; flex-wrap: nowrap; }
.calc-eq .ct { width: clamp(40px, 11vw, 60px); height: clamp(40px, 11vw, 60px); border-radius: 10px; display: grid; place-items: center; background: var(--sel-bg); color: var(--sel-fg); font: 700 clamp(1.25rem, 1rem + 1.6vw, 1.875rem)/1 var(--font-display); position: relative; }
.calc-eq .ct.bonus { box-shadow: inset 0 0 0 3px var(--bonus); }
.calc-eq .op { font: 700 clamp(1.125rem, 1rem + 1vw, 1.5rem)/1 var(--font-display); color: var(--accent-text); width: 22px; text-align: center; }
.calc-eq .res { font: 700 clamp(1.5rem, 1rem + 2vw, 2.25rem)/1 var(--font-display); color: var(--success); padding-left: 4px; }
.receipt { width: 100%; max-width: 360px; margin: 0; }
.receipt div { display: flex; justify-content: space-between; align-items: baseline; padding: 10px 0; border-bottom: 1px dashed var(--border); }
.receipt dt { color: var(--secondary); }
.receipt dd { margin: 0; font: 700 1.125rem/1 var(--font-display); font-variant-numeric: tabular-nums; }
.receipt .is-bonus dt { color: var(--bonus-text); }
.receipt .is-bonus dd { color: var(--bonus-text); }
.total { display: flex; align-items: baseline; gap: 12px; }
.total .big { font: 700 clamp(4.5rem, 3rem + 7vw, 7.5rem)/.9 var(--font-display); letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.total .unit { color: var(--secondary); font-weight: 500; }

/* Levels */
.levels { display: grid; gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: 20px; overflow: hidden; }
@media (min-width: 820px) { .levels { grid-template-columns: repeat(3, 1fr); } }
.level { background: var(--card); padding: 28px 24px; display: grid; gap: 18px; align-content: start; }
.level h3 { font-size: 1.75rem; display: flex; align-items: center; justify-content: space-between; }
.level .bars { display: inline-flex; gap: 4px; }
.level .bars i { width: 8px; height: 22px; border-radius: 3px; background: var(--empty); }
.level .bars i.on { background: var(--accent); }
.level dl { margin: 0; display: grid; gap: 10px; }
.level dl div { display: flex; justify-content: space-between; gap: 12px; }
.level dt { color: var(--secondary); }
.level dd { margin: 0; font: 700 1.0625rem/1.4 var(--font-display); font-variant-numeric: tabular-nums; text-align: right; }
.ops { display: inline-flex; gap: 4px; }
.ops span { width: 28px; height: 28px; border-radius: 7px; display: grid; place-items: center; background: var(--accent-light); color: var(--accent-text); font: 700 1rem/1 var(--font-display); }
.ops span.off { background: transparent; color: var(--border); box-shadow: inset 0 0 0 1px var(--border); }
.level p { color: var(--secondary); font-size: .9375rem; }

/* Play your way */
.modes { display: grid; gap: 16px; }
@media (min-width: 900px) { .modes { grid-template-columns: 1.2fr 1fr; grid-template-rows: auto auto; } .mode-bots { grid-row: span 3; } }
.mode { background: var(--card); border-radius: 20px; padding: 28px 24px; box-shadow: var(--shadow-card); display: grid; gap: 14px; align-content: start; }
@media (min-width: 520px) { .mode { padding: 32px; } }
.mode h3 { font-size: 1.5rem; display: flex; align-items: center; gap: 12px; }
.mode h3 .icon { color: var(--accent); width: 28px; height: 28px; }
.mode p { color: var(--secondary); }
.bots { display: grid; gap: 10px; margin-top: 12px; }
.bot { display: flex; align-items: center; gap: 14px; padding: 12px; border-radius: 14px; background: var(--bg); }
.bot .face { width: 52px; height: 52px; border-radius: 12px; display: grid; place-items: center; background: var(--sel-bg); color: var(--sel-fg); font: 700 1.5rem/1 var(--font-display); flex: none; }
.bot:nth-child(2) .face { background: var(--accent); }
.bot:nth-child(3) .face { background: var(--bonus); color: #15181E; }
.bot b { display: block; font-family: var(--font-display); font-size: 1.125rem; }
.bot span { color: var(--secondary); font-size: .9375rem; }
.linkbox { display: flex; align-items: center; gap: 10px; margin-top: 4px; padding: 12px 14px; border-radius: 12px; background: var(--bg); font: 500 .9375rem/1.3 var(--font-display); color: var(--text); overflow: hidden; white-space: nowrap; }
.linkbox .icon { color: var(--accent); width: 20px; height: 20px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.chips span { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 999px; background: var(--bg); font-size: .875rem; font-weight: 500; }
.chips .icon { width: 16px; height: 16px; color: var(--accent); }

/* Fair band */
.band { background: var(--band); color: var(--band-text); }
.band .section-head p { color: var(--band-soft); }
.promises { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; border-top: 1px solid rgba(255,255,255,.14); }
@media (min-width: 820px) { .promises { grid-template-columns: repeat(2, 1fr); column-gap: 48px; } }
.promises li { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; padding: 24px 0; border-bottom: 1px solid rgba(255,255,255,.14); }
.promises .icon { grid-row: span 2; width: 28px; height: 28px; color: #8FB0FF; margin-top: 2px; }
.promises b { font: 700 1.25rem/1.25 var(--font-display); letter-spacing: -.01em; }
.promises span { color: var(--band-soft); }

/* FAQ */
.faq { max-width: 820px; }
.faq details { border-bottom: 1px solid var(--border); }
.faq details:first-of-type { border-top: 1px solid var(--border); }
.faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 0; min-height: 44px; font: 600 1.0625rem/1.4 var(--font-body); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .icon { transition: transform .3s var(--ease-out); color: var(--secondary); }
.faq details[open] summary .icon { transform: rotate(180deg); }
.faq .answer { padding: 0 0 22px; color: var(--secondary); max-width: 68ch; }
.faq .answer p + p { margin-top: 10px; }

/* Final CTA */
.finale { text-align: center; padding: 96px 0 112px; }
.finale img { width: 112px; height: 112px; border-radius: 26px; margin: 0 auto 28px; box-shadow: 0 24px 48px -20px rgba(29, 78, 216, .55); }
.finale h2 { font-size: clamp(2.25rem, 1.5rem + 3vw, 3.75rem); }
.finale p { margin: 16px auto 32px; color: var(--secondary); max-width: 44ch; font-size: 1.125rem; }
.finale .store-badge { margin-inline: auto; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border); background: var(--card); padding: 40px 0 48px; font-size: .9375rem; color: var(--secondary); }
.foot-grid { display: grid; gap: 24px; }
@media (min-width: 820px) { .foot-grid { grid-template-columns: 1fr auto; align-items: center; } }
.foot-brand { display: flex; align-items: center; gap: 12px; color: var(--text); }
.foot-brand img { width: 40px; height: 40px; border-radius: 10px; }
.foot-brand b { font: 700 1.125rem/1.2 var(--font-display); display: block; }
.foot-brand span { color: var(--secondary); font-size: .875rem; }
.foot-links { display: flex; flex-wrap: wrap; gap: 0 4px; margin: 0; padding: 0; list-style: none; }
.foot-links a { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 10px; color: var(--text); text-decoration: none; font-weight: 500; border-radius: 8px; }
.foot-links a:hover { background: var(--bg); }
.foot-links .icon { width: 18px; height: 18px; color: var(--secondary); }
.foot-legal { margin-top: 20px; font-size: .8125rem; }

/* ---------- Document pages (legal, support) ---------- */
.doc-hero { padding: 56px 0 32px; }
@media (min-width: 960px) { .doc-hero { padding: 88px 0 40px; } }
.doc-hero h1 { font-size: clamp(2.25rem, 1.6rem + 3vw, 3.75rem); }
.doc-hero .meta { margin-top: 14px; color: var(--secondary); }
.doc-hero .intro { margin-top: 18px; font-size: 1.125rem; max-width: 60ch; }
.doc-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; padding-bottom: 96px; }
@media (min-width: 1000px) { .doc-layout { grid-template-columns: 240px minmax(0, 1fr); gap: 64px; } }
.toc { font-size: .9375rem; }
.toc b { display: block; font: 700 .8125rem/1 var(--font-body); letter-spacing: .06em; text-transform: uppercase; color: var(--secondary); margin-bottom: 12px; }
.toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.toc a { display: block; padding: 7px 10px; border-radius: 8px; color: var(--text); text-decoration: none; }
.toc a:hover { background: var(--card-muted); }
@media (min-width: 1000px) { .toc { position: sticky; top: 24px; align-self: start; max-height: calc(100vh - 48px); overflow: auto; } }
@media (max-width: 999px) { .toc { background: var(--card); border-radius: var(--r-card); padding: 18px; border: 1px solid var(--border); } .toc ol { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); } }
.doc { max-width: 72ch; }
.doc section { padding-top: 8px; margin-bottom: 44px; scroll-margin-top: 24px; }
.doc h2 { font-size: clamp(1.5rem, 1.3rem + .8vw, 1.875rem); margin-bottom: 14px; }
.doc h3 { font-size: 1.1875rem; margin: 24px 0 8px; }
.doc p, .doc ul, .doc ol { margin: 0 0 14px; }
.doc ul, .doc ol { padding-left: 1.25em; }
.doc li { margin-bottom: 6px; }
.doc li::marker { color: var(--secondary); }
.short { margin: 0 0 18px; padding: 14px 16px; border-radius: 12px; background: var(--accent-light); color: var(--text); }
.short b { color: var(--accent-text); }
.table-wrap { overflow-x: auto; margin: 0 0 16px; border: 1px solid var(--border); border-radius: 12px; background: var(--card); }
.doc table { width: 100%; border-collapse: collapse; font-size: .9375rem; min-width: 520px; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid var(--border); }
.doc tr:last-child td { border-bottom: 0; }
.doc th { font-weight: 600; background: var(--card-muted); }
.callout { display: flex; gap: 14px; padding: 18px; border-radius: 14px; background: var(--card); border: 1px solid var(--border); margin: 0 0 18px; }
.callout .icon { color: var(--accent); margin-top: 2px; }
.steps-list { counter-reset: s; list-style: none; padding: 0 !important; display: grid; gap: 10px; }
.steps-list li { counter-increment: s; display: grid; grid-template-columns: 36px 1fr; gap: 12px; align-items: center; padding: 12px 14px; background: var(--card); border: 1px solid var(--border); border-radius: 12px; margin: 0; }
.steps-list li::before { content: counter(s); width: 36px; height: 36px; border-radius: 8px; display: grid; place-items: center; background: var(--ink); color: #fff; font: 700 1rem/1 var(--font-display); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .steps-list li::before { background: var(--accent); } }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 22px; border-radius: 14px; font: 600 1rem/1 var(--font-body); text-decoration: none; border: 0; cursor: pointer; }
.btn-primary { background: var(--accent-btn); color: #fff; }
.btn-primary:hover { background: color-mix(in srgb, var(--accent-btn) 88%, #000); }
.btn .icon { width: 20px; height: 20px; }

/* Reveal: JS sætter startværdier, så indholdet er synligt uden JS */
.no-js .reveal { opacity: 1 !important; transform: none !important; }

/* 404 */
.notfound { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: 64px 0; }
.notfound .big { font: 700 clamp(5rem, 3rem + 10vw, 9rem)/1 var(--font-display); letter-spacing: -.04em; }
.notfound p { color: var(--secondary); margin: 12px auto 28px; max-width: 40ch; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; }
  .game-panel { transform: none; }
}

/* Tillæg: bonusring i point-eksemplet og trin 3 */
.calc-eq .ct .ring { position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 3px var(--bonus); }
.calc-eq .ct .x2 { position: absolute; top: 3px; right: 5px; font: 700 .625rem/1 var(--font-display); font-style: normal; color: var(--bonus-on-sel); }
.s3 .gone { background: var(--sel-bg); color: var(--sel-fg); }
@media (prefers-reduced-motion: no-preference) { .tile.is-hint { animation: hint-pulse .65s ease-in-out infinite alternate; } }
@keyframes hint-pulse { from { box-shadow: inset 0 0 0 3px var(--accent), var(--shadow-tile); } to { box-shadow: inset 0 0 0 5px var(--accent), 0 0 0 4px rgba(255,255,255,.55); } }
.sign { font-size: 1.25rem; }
