/* =======================================================================
   DEBATERIS — pamata stili
   Krasas meklet TIKAI seit (:root). Maini vertibas — mainas visa lapa.
   ======================================================================= */

:root {
  /* ---- Krāsas: pamata palete. Jauna tēma vispirms maina šīs vērtības ----
     Krāsām, ko lieto ar caurspīdību, ir kanālu tokens (--x-rgb: trīs skaitļi) un no tā
     rgba(var(--x-rgb), 0.08). Tēma maina tikai --x-rgb, krāsa un visi tās toņi seko līdzi.
     Nelietot color-mix() šiem toņiem: gradients tad jaucas citā krāsu telpā un izskats mainās. */
  --tint-rgb: 255, 255, 255;      /* gaišais pārklājums: līnijas, stikls, atspīdums */
  --shade-rgb: 0, 0, 0;           /* tumšais pārklājums un ēnas */
  --scrim-rgb: 10, 15, 31;        /* aizklājums zem logiem un kāršu attēliem */
  --bg-deep-rgb: 13, 21, 48;
  --accent-rgb: 196, 15, 81;
  --cyber-rgb: 65, 224, 208;
  --wheel-ink-rgb: 244, 241, 255; /* rata uzraksti */
  --tint: rgb(var(--tint-rgb));
  --shade: rgb(var(--shade-rgb));
  --scrim: rgb(var(--scrim-rgb));

  /* Fons un virsmas */
  --bg: #0a0f1f;
  --bg-deep: rgb(var(--bg-deep-rgb));
  --surface: #111a33;
  --surface-2: #18234a;
  --field-autofill: #111a33;      /* pārlūka automātiski aizpildīta lauka fons */
  --line: #2a3a6e;
  --line-strong: #3b4f8f;

  /* Zīmola akcents ("spied šeit") un tā toņi */
  --accent: rgb(var(--accent-rgb));
  --accent-bright: #ff3d82;
  --accent-light: #ffb3cb;
  --accent-deep: #7e0a35;
  --accent-soft: rgba(var(--accent-rgb), 0.16);

  /* Sekundārie akcenti (spēļu kārtis, puses) */
  --cyber: rgb(var(--cyber-rgb));
  --cyber-light: #e8fffc;
  --cyber-600: #1fb6a8;
  --cyber-deep: #0c4a45;
  --violet: #7c5cff;
  --violet-light: #a894ff;
  --violet-deep: #2e2263;
  --amber: #f5a524;
  --amber-light: #ffca6b;
  --amber-deep: #6b4106;

  /* ---- Teksts ---- */
  --text: #f4f1ff;
  --text-strong: #ffffff;            /* virsraksti uz kārtīm, izvēlēts stāvoklis */
  --text-body: #c9d3f0;           /* garāks teksts: saraksti, juridiskās lapas */
  --text-list: #c9d3f0;
  --text-quiet: #9fb0d9;          /* kājenes saites */
  --muted: #9fb0d9;
  --on-bright: #0a0f1f;           /* teksts uz gaišas krāsainas virsmas (birkas, avatāri) */

  /* ---- Lomas: ko krāsa nozīmē. Tēma var tās piesaistīt citai paletei ---- */
  --press: var(--accent);         /* galvenā poga: nākamais solis */
  --press-hover: #b00d49;
  --on-press: #fff;               /* teksts un ikonas uz --press */
  --side-pros: var(--accent-bright);      /* apsūdzība: teksts */
  --side-pros-rgb: 255, 61, 130;     /* apsūdzība: apmales ar caurspīdību */
  --side-def: var(--cyber);               /* aizstāvība */
  --side-def-rgb: var(--cyber-rgb);
  --side-def-fill: var(--cyber-600);
  --on-side-def: #08201e;
  --side-judge: var(--violet);       /* tiesnesis: neitrāls */

  /* ---- Tipogrāfija ----
     Fontus ielādē HTML lapu <head> (Google Fonts), tāpēc jauns fonts jāpievieno arī tur.
     Katram jaunam fontam (īpaši virsrakstu fontam) JĀBŪT latviešu burtiem āčēģīķļņšūž un
     ĀČĒĢĪĶĻŅŠŪŽ: viens maketā izmēģināts fonts nesaturēja 18 no tiem, un tad pārlūks tos
     zīmē ar citu fontu vārda vidū. */
  --font-display: "Lexend", system-ui, -apple-system, "Segoe UI", sans-serif;   /* virsraksti, skaitļi, pogas */
  --font-pixel: "Pixelify Sans", "Lexend", system-ui, sans-serif;   /* tikai zīmola vārds DEBATERIS */
  --font-body: "Lexend", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-label: "Space Mono", ui-monospace, "Courier New", monospace;         /* mazās etiķetes ar lielajiem burtiem */
  --font-serif: var(--font-body); /* tēmas teksts, citāti: tiesas svars */

  /* ---- Forma: noapaļojumi, apmales, ēnas ---- */
  --radius-dot: 0;              /* runu progresa svītriņas */
  --radius-bar: 0;              /* šauras joslas */
  --radius-focus: 0;            /* fokusa rāmis */
  --radius-stamp: 0;            /* zīmogi, mazas saites-pogas */
  --radius-badge: 0;            /* mazas kvadrātiskas zīmes */
  --radius-sm: 0;
  --radius-md: 0;              /* pogas, ievades lauki */
  --radius-tile: 0;
  --radius-lg: 0;              /* kārtis */
  --radius-pill: 0;
  --radius-round: 0;            /* apļi */

  --border-hair: 2px;             /* parastā apmale */
  --border-thick: 2px;
  --border-stamp: 4px;            /* zīmogi un skenera rāmis */
  --border-focus: 2px;            /* fokusa rāmis */

  --shadow-card: none;
  --shadow-press: inset 0 -6px 0 var(--accent-deep);           /* ēna zem galvenās pogas (multfilmas/arkādes tēmai) */
  --shadow-press-active: inset 0 -2px 0 var(--accent-deep);    /* tā pati ēna, kad poga nospiesta */
  --glow: none;
  --shadow-press-glow: 0 0 34px -4px rgba(var(--accent-rgb), 0.8);
  --shadow-filter: none;
  --shadow-game: none;
  --shadow-case-dot: none;
  --shadow-code: none;
  --shadow-stamp: none;
  --shadow-timeline-fill: none;
  --shadow-tl-dot: none;
  --shadow-progress: none;
  --shadow-drawn: none;
  --shadow-verdict-stamp: none;
  --shadow-verdict-win: none;
  --shadow-scanner-box: none;
  --shadow-scanner-dim: 0 0 0 3000px rgba(var(--shade-rgb), 0.35);
  --shadow-autofill: 0 0 0 1000px var(--field-autofill) inset;
  --shadow-cart-toast: 0 12px 30px -12px rgba(var(--shade-rgb), 0.6);

  /* Teksta un filtru mirdzums */
  --drop-game-glyph: 0 0 0 transparent;
  --glow-game-title: none;
  --glow-stamp: none;
  --drop-wheel-pointer: 0 0 0 transparent;
  --glow-timer-hot: none;

  /* ---- Atstarpes: --space-N = N × 2 px (padding, margin, gap) ---- */
  --space-1: 2px;
  --space-2: 4px;
  --space-3: 6px;
  --space-4: 8px;
  --space-5: 10px;
  --space-6: 12px;
  --space-7: 14px;
  --space-8: 16px;
  --space-9: 18px;
  --space-10: 20px;
  --space-11: 22px;
  --space-12: 24px;
  --space-13: 26px;
  --space-14: 28px;
  --space-15: 30px;
  --space-16: 32px;
  --space-17: 34px;
  --space-18: 36px;
  --space-19: 38px;
  --space-20: 40px;
  --space-22: 44px;
  --space-24: 48px;
  --space-25: 50px;
  --space-28: 56px;
  --space-30: 60px;
  --space-31: 62px;
  --space-35: 70px;
  --space-36: 72px;
  --space-42: 84px;
  --space-45: 90px;

  --header-h: 68px;

  /* ---- Kustība: visur viena valoda, nevis nejauši ilgumi ---- */
  --e-out: cubic-bezier(0.16, 1, 0.3, 1);
  --e-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --t-fast: 180ms;
  --t-base: 420ms;
  --t-slow: 680ms;

  /* Vecie nosaukumi, lai nesalūzt citi zari (#8 u.c.). Jaunā kodā lieto --font-* un --radius-* */
  --f-display: var(--font-display);
  --f-body: var(--font-body);
  --f-serif: var(--font-serif);
  --r-sm: var(--radius-sm);
  --r-md: var(--radius-md);
  --r-lg: var(--radius-lg);
  --r-pill: var(--radius-pill);

  /* ---- v3 arkāde: pikseļu stūris, hromatiskā nobīde, papildu virsma ----
     --notch nogriež 6 px stūrus (clip-path). Tēmai bez tiem: --notch: none. */
  --notch: polygon(6px 0, calc(100% - 6px) 0, 100% 6px, 100% calc(100% - 6px), calc(100% - 6px) 100%, 6px 100%, 0 calc(100% - 6px), 0 6px);
  --chroma-a: var(--cyber);       /* logo un virsrakstu nobīde pa kreisi */
  --chroma-b: var(--accent-bright);/* … un pa labi */
  --surface-3: #22306a;           /* tiesneša galda virsma */
  --scanline: rgba(var(--tint-rgb), 0.03);
  --floor-grid: rgba(var(--cyber-rgb), 0.1);
}

* { box-sizing: border-box; }

[hidden] { display: none !important; }

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

body {
  margin: 0;
  background: var(--bg);
  background-attachment: fixed;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16.5px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.06;
  letter-spacing: -0.03em;
  font-weight: 800;
  margin: 0;
}

p { margin: 0; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }

:focus-visible {
  outline: var(--border-focus) solid var(--accent-bright);
  outline-offset: 3px;
  border-radius: var(--radius-focus);
}

::selection { background: var(--accent); color: var(--on-press); }

.wrap {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 var(--space-10);
}

.wrap--narrow { max-width: 820px; }

/* ---------- Galvene ---------------------------------------------------- */

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  display: flex;
  align-items: center;
  backdrop-filter: blur(14px);
  background: rgba(var(--bg-deep-rgb), 0.88);
  border-bottom: var(--border-hair) solid var(--line);
}

.header__inner {
  display: flex;
  align-items: center;
  gap: var(--space-10);
  width: 100%;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--space-5);
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.14em;
  font-size: 15px;
}

.brand__mark {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: var(--radius-badge);
  background: linear-gradient(150deg, var(--accent-bright), var(--accent));
  box-shadow: var(--glow);
  font-size: 16px;
}

.nav {
  display: none;
  gap: var(--space-2);
  margin-left: var(--space-4);
}

.nav a {
  padding: var(--space-4) var(--space-6);
  border-radius: var(--radius-pill);
  font-size: 14px;
  color: var(--muted);
  transition: color 0.18s ease, background 0.18s ease;
}

.nav a:hover { color: var(--text); background: rgba(var(--tint-rgb), 0.06); }

.header__right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: var(--space-5);
}

.lang {
  display: inline-flex;
  padding: 3px;
  border: var(--border-hair) solid var(--line);
  border-radius: var(--radius-pill);
  background: rgba(var(--tint-rgb), 0.04);
}

.lang button {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  padding: 5px 11px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease;
}

.lang button[aria-pressed="true"] {
  background: var(--accent);
  color: var(--on-press);
}

/* ---------- Pogas ------------------------------------------------------ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  padding: var(--space-6) var(--space-11);
  border-radius: var(--radius-pill);
  border: var(--border-hair) solid transparent;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease;
  white-space: nowrap;
}

.btn:active { scale: 0.96; }

.btn--primary {
  background: linear-gradient(140deg, var(--accent-bright), var(--accent));
  color: var(--on-press);
  box-shadow: var(--glow);
}

.btn--primary:hover { box-shadow: var(--shadow-press-glow); }

.btn--ghost {
  background: rgba(var(--tint-rgb), 0.05);
  border-color: var(--line-strong);
  color: var(--text);
}

.btn--ghost:hover { background: rgba(var(--tint-rgb), 0.1); }

.btn--sm { padding: 9px var(--space-8); font-size: 14px; }
.btn--block { width: 100%; }

.icon-btn {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: var(--radius-round);
  border: var(--border-hair) solid var(--line);
  background: rgba(var(--tint-rgb), 0.05);
  cursor: pointer;
}

.icon-btn:hover { background: rgba(var(--tint-rgb), 0.1); }

/* ---------- Kopigie elementi ------------------------------------------ */

.section { padding-block: var(--space-42); }
.section--tight { padding-block: var(--space-28); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-4);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-bright);
  margin-bottom: var(--space-7);
  font-family: var(--font-label);
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--accent);
}

.section__title { font-size: clamp(26px, 4vw, 40px); }

.section__sub {
  color: var(--muted);
  margin-top: var(--space-7);
  max-width: 62ch;
  font-size: 17px;
}

.card {
  background: var(--surface);
  border: var(--border-hair) solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
}

/* Neona izgaismojums uz malas */
.card--glow::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(140deg, rgba(var(--accent-rgb), 0.75), transparent 45%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.grid { display: grid; gap: var(--space-9); }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px var(--space-6);
  border-radius: var(--radius-pill);
  border: var(--border-hair) solid var(--line);
  background: rgba(var(--tint-rgb), 0.05);
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
}

/* ---------- HUB: spelu izvele ----------------------------------------- */

.hub { padding-block: var(--space-20) var(--space-12); }

.hub__head { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--space-10); flex-wrap: wrap; }

.hub__kicker {
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
  font-family: var(--font-label);
}

.hub__title { font-size: clamp(34px, 7vw, 52px); margin-top: var(--space-3); }

.hub__sub { color: var(--muted); margin-top: var(--space-5); max-width: 52ch; }

.search {
  position: relative;
  margin: var(--space-13) 0 var(--space-8);
}

.search input {
  width: 100%;
  padding: 15px var(--space-9) 15px var(--space-24);
  border-radius: var(--radius-pill);
  border: var(--border-hair) solid var(--line);
  background: rgba(var(--tint-rgb), 0.05);
  color: var(--text);
  font-size: 16px;
}

.search input::placeholder { color: var(--muted); }

.search__icon {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  pointer-events: none;
}

.filters { display: flex; gap: var(--space-5); flex-wrap: wrap; margin-bottom: var(--space-13); }

.filter {
  display: inline-flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-5) var(--space-8);
  border-radius: var(--radius-pill);
  border: var(--border-hair) solid var(--line);
  background: rgba(var(--tint-rgb), 0.05);
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.18s ease, background-color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, scale 0.12s ease-out;
}

.filter:hover { color: var(--text); border-color: var(--line-strong); }

.filter[aria-pressed="true"] {
  color: var(--on-press);
  background: var(--accent-soft);
  border-color: var(--accent);
  box-shadow: var(--shadow-filter);
}

.games { display: grid; grid-template-columns: 1fr; gap: var(--space-8); }

.game {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 260px;
  padding: var(--space-9);
  border-radius: var(--radius-lg);
  border: var(--border-hair) solid var(--line);
  overflow: hidden;
  cursor: pointer;
  text-align: left;
  background: var(--surface);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.game:hover { transform: translateY(-4px); box-shadow: var(--shadow-game); }

.game__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.game--brand .game__bg { background: linear-gradient(160deg, var(--accent-bright) 0%, var(--accent) 45%, var(--accent-deep) 100%); }
.game--violet .game__bg { background: linear-gradient(160deg, var(--violet-light) 0%, var(--violet) 45%, var(--violet-deep) 100%); }
.game--amber .game__bg { background: linear-gradient(160deg, var(--amber-light) 0%, var(--amber) 45%, var(--amber-deep) 100%); }
.game--cyber .game__bg { background: linear-gradient(160deg, var(--cyber-light) 0%, var(--cyber) 45%, var(--cyber-deep) 100%); }

.game__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 80% at 50% 0%, rgba(var(--tint-rgb), 0.22), transparent 55%),
    linear-gradient(to top, rgba(var(--scrim-rgb), 0.92) 12%, rgba(var(--scrim-rgb), 0.25) 55%, transparent 80%);
}

.game__glyph {
  position: absolute;
  top: 14px;
  right: 16px;
  font-size: 58px;
  line-height: 1;
  opacity: 0.9;
  z-index: 1;
  filter: drop-shadow(var(--drop-game-glyph));
}

.game__body { position: relative; z-index: 2; }

.game__kicker {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(var(--tint-rgb), 0.78);
  font-family: var(--font-label);
}

.game__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(19px, 3.4vw, 26px);
  letter-spacing: -0.01em;
  margin: var(--space-2) 0 var(--space-4);
  color: var(--text-strong);
  text-shadow: var(--glow-game-title);
}

.game__meta {
  display: flex;
  gap: var(--space-5);
  flex-wrap: wrap;
  font-size: 12px;
  color: rgba(var(--tint-rgb), 0.85);
  font-weight: 600;
}

.game__meta span { display: inline-flex; align-items: center; gap: 5px; }

.game__tag {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  padding: 5px 11px;
  border-radius: var(--radius-pill);
  background: rgba(var(--tint-rgb), 0.95);
  color: var(--on-bright);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-family: var(--font-label);
}

.game--soon { filter: saturate(0.55); }
.game--soon .game__bg::after { background: linear-gradient(to top, rgba(var(--scrim-rgb), 0.95) 18%, rgba(var(--scrim-rgb), 0.6) 70%); }

.game__soon {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  padding: 5px 11px;
  border-radius: var(--radius-pill);
  background: rgba(var(--shade-rgb), 0.55);
  border: var(--border-hair) solid rgba(var(--tint-rgb), 0.25);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-strong);
  font-family: var(--font-label);
}

.games__empty {
  grid-column: 1 / -1;
  padding: var(--space-20);
  text-align: center;
  color: var(--muted);
  border: var(--border-hair) dashed var(--line-strong);
  border-radius: var(--radius-lg);
}

/* Apaksejais josla ar veikalu */
.hub-banner {
  margin: var(--space-14) 0 var(--space-30);
  padding: var(--space-10) var(--space-11);
  display: flex;
  align-items: center;
  gap: var(--space-9);
  flex-wrap: wrap;
  border-radius: var(--radius-lg);
  border: var(--border-hair) solid var(--line);
  background: linear-gradient(120deg, rgba(var(--accent-rgb), 0.18), rgba(var(--tint-rgb), 0.03));
}

.hub-banner__icon { font-size: 30px; }
.hub-banner h3 { font-size: 18px; }
.hub-banner p { color: var(--muted); font-size: 14px; margin-top: 3px; }
.hub-banner .btn { margin-left: auto; }

/* ---------- HERO (veikala lapa) --------------------------------------- */

.hero { padding-block: var(--space-36) var(--space-20); }

.hero__grid { display: grid; gap: var(--space-22); align-items: center; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-3) var(--space-7);
  border-radius: var(--radius-pill);
  border: var(--border-hair) solid rgba(var(--accent-rgb), 0.45);
  background: var(--accent-soft);
  color: var(--accent-bright);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-family: var(--font-label);
}

.hero h1 { font-size: clamp(36px, 6.4vw, 62px); margin-top: var(--space-10); }
.hero h1 .accent {
  display: block;
  background: linear-gradient(100deg, var(--accent-bright), var(--accent-light));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__sub { color: var(--muted); font-size: 18px; margin-top: var(--space-10); max-width: 54ch; }

.hero__actions { display: flex; gap: var(--space-6); flex-wrap: wrap; margin-top: var(--space-15); }

.stats { display: flex; gap: var(--space-16); flex-wrap: wrap; margin-top: var(--space-19); }
.stats strong { font-family: var(--font-display); font-size: 26px; display: block; }
.stats span { color: var(--muted); font-size: 13px; }

/* Lietas mape (vizualis) */
.case { padding: var(--space-11); }
.case__top { display: flex; justify-content: space-between; align-items: center; font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); font-weight: 700; font-family: var(--font-label); }
.case__status { display: inline-flex; align-items: center; gap: 7px; color: var(--cyber); }
.case__dot { width: 7px; height: 7px; border-radius: var(--radius-round); background: var(--cyber); box-shadow: var(--shadow-case-dot); animation: pulse 2.4s ease-in-out infinite; }
.case__label { font-size: 12px; text-transform: uppercase; letter-spacing: 0.14em; color: var(--muted); font-weight: 700; margin-top: var(--space-11); font-family: var(--font-label); }
.case__topic { font-family: var(--font-display); font-size: 22px; margin-top: var(--space-5); line-height: 1.25; }
.case__roles { display: flex; gap: var(--space-4); flex-wrap: wrap; margin-top: var(--space-6); }
.case__role { padding: 7px 13px; border-radius: var(--radius-pill); background: rgba(var(--tint-rgb), 0.06); border: var(--border-hair) solid var(--line); font-size: 13px; font-weight: 600; }
.case__role--active { background: var(--accent-soft); border-color: var(--accent); color: var(--text-strong); }
.case__timer { margin-top: var(--space-11); padding-top: var(--space-9); border-top: var(--border-hair) solid var(--line); display: flex; align-items: baseline; justify-content: space-between; }
.case__time { font-family: var(--font-display); font-size: 34px; letter-spacing: 0.04em; color: var(--accent-bright); }

@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }

/* ---------- Soli / lomas / BUJ --------------------------------------- */

.steps { grid-template-columns: 1fr; }

.step { padding: var(--space-11); }
.step__n { font-family: var(--font-display); font-size: 13px; font-weight: 700; letter-spacing: 0.2em; color: var(--accent-bright); }
.step h3 { font-size: 19px; margin: var(--space-5) 0 var(--space-4); }
.step p { color: var(--muted); font-size: 15px; }

.roles { grid-template-columns: 1fr; }
.role { padding: var(--space-12); }
.role__icon { font-size: 32px; }
.role__tag { font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); font-weight: 700; margin-top: var(--space-7); font-family: var(--font-label); }
.role h3 { font-size: 22px; margin: var(--space-3) 0 var(--space-5); }
.role p { color: var(--muted); font-size: 15px; }
.role__skill { margin-top: var(--space-8); font-size: 13px; font-weight: 600; color: var(--cyber); }

.faq-item { padding: 0 var(--space-10); }
.faq-item summary { cursor: pointer; padding: var(--space-9) 0; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: var(--space-8); align-items: center; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; color: var(--accent-bright); font-size: 22px; line-height: 1; }
.faq-item[open] summary::after { content: "–"; }
.faq-item p { color: var(--muted); padding-bottom: var(--space-10); font-size: 15px; }

/* ---------- Veikals ---------------------------------------------------- */

.age-switch { display: inline-flex; padding: var(--space-2); border-radius: var(--radius-pill); border: var(--border-hair) solid var(--line); background: rgba(var(--tint-rgb), 0.04); margin-top: var(--space-3); }
.age-switch button { border: 0; background: transparent; padding: var(--space-5) var(--space-10); border-radius: var(--radius-pill); font-weight: 600; font-size: 14px; color: var(--muted); cursor: pointer; transition: background-color 0.18s ease, color 0.18s ease, scale 0.12s ease-out; }
.age-switch button[aria-pressed="true"] { background: var(--accent); color: var(--on-press); box-shadow: var(--glow); }

.age-note { color: var(--muted); font-size: 14px; margin-top: var(--space-6); max-width: 62ch; }

.plans { grid-template-columns: 1fr; margin-top: var(--space-17); }

.plan { padding: var(--space-14); display: flex; flex-direction: column; }
.plan__badge { position: absolute; top: 18px; right: 18px; padding: 5px var(--space-6); border-radius: var(--radius-pill); background: var(--accent); font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; font-family: var(--font-label); }
.plan h3 { font-size: 24px; }
.plan__price { font-family: var(--font-display); font-size: 44px; margin: var(--space-7) 0 var(--space-1); }
.plan__price-note { color: var(--muted); font-size: 13px; }
.plan__desc { color: var(--muted); margin-top: var(--space-8); font-size: 15px; }
.plan ul { list-style: none; padding: 0; margin: var(--space-10) 0 var(--space-13); display: grid; gap: 11px; }
.plan li { display: flex; gap: var(--space-5); font-size: 15px; color: var(--text-list); }
.plan li::before { content: "✓"; color: var(--accent-bright); font-weight: 700; }
.plan .btn { margin-top: auto; }
.plan__note { color: var(--muted); font-size: 13px; margin-top: var(--space-11); }

/* ---------- Debasu sablons -------------------------------------------- */

.blueprint-topic { display: inline-block; padding: var(--space-5) var(--space-9); border-radius: var(--radius-pill); background: rgba(var(--tint-rgb), 0.05); border: var(--border-hair) dashed var(--line-strong); color: var(--muted); font-size: 14px; margin-top: var(--space-11); }

.bp { grid-template-columns: 1fr; margin-top: var(--space-13); }

.bp__step { padding: var(--space-11); display: flex; gap: var(--space-9); }
.bp__letter {
  flex: none;
  width: 46px; height: 46px;
  display: grid; place-items: center;
  border-radius: var(--radius-tile);
  background: linear-gradient(150deg, var(--accent-bright), var(--accent));
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 20px;
  box-shadow: var(--glow);
}
.bp__step h3 { font-size: 18px; }
.bp__q { color: var(--accent-bright); font-size: 13px; font-weight: 600; margin-top: var(--space-2); }
.bp__ex { color: var(--muted); font-size: 15px; margin-top: var(--space-5); font-style: italic; }

.tip { margin-top: var(--space-11); padding: var(--space-10) var(--space-11); border-radius: var(--radius-md); border: var(--border-hair) solid rgba(var(--cyber-rgb), 0.3); background: rgba(var(--cyber-rgb), 0.07); display: flex; gap: var(--space-7); }
.tip h4 { font-size: 15px; color: var(--cyber); }
.tip p { color: var(--muted); font-size: 15px; margin-top: 5px; }

/* ---------- Skolam ----------------------------------------------------- */

.schools { display: grid; gap: var(--space-17); align-items: center; }
.schools ul { list-style: none; padding: 0; margin: var(--space-12) 0 0; display: grid; gap: 13px; }
.schools li { display: flex; gap: 11px; color: var(--text-list); }
.schools li::before { content: "▹"; color: var(--accent-bright); }

/* ---------- Nobeiguma aicinajums + kajene ----------------------------- */

.final { text-align: center; padding: var(--space-35) var(--space-13); border-radius: var(--radius-lg); border: var(--border-hair) solid var(--line); background: linear-gradient(150deg, rgba(var(--accent-rgb), 0.22), rgba(var(--tint-rgb), 0.02)); }
.final h2 { font-size: clamp(28px, 5vw, 44px); }
.final p { color: var(--muted); margin: var(--space-8) auto var(--space-14); max-width: 48ch; }
.final__actions { display: flex; gap: var(--space-6); justify-content: center; flex-wrap: wrap; }

.footer { margin-top: var(--space-35); border-top: var(--border-hair) solid var(--line); background: rgba(var(--bg-deep-rgb), 0.6); padding: var(--space-25) 0 var(--space-15); }
.footer__grid { display: grid; gap: var(--space-17); grid-template-columns: 1fr; }
.footer__tagline { color: var(--muted); font-size: 14px; margin-top: var(--space-7); max-width: 32ch; }
.footer__title { font-family: var(--f-display); font-weight: 800; line-height: 1.06; font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-bottom: var(--space-7); }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.footer a { color: var(--text-quiet); font-size: 14px; }
.footer a:hover { color: var(--accent-bright); }
.footer__bottom { margin-top: var(--space-20); padding-top: var(--space-11); border-top: var(--border-hair) solid var(--line); display: flex; justify-content: space-between; gap: var(--space-7); flex-wrap: wrap; color: var(--muted); font-size: 13px; }

/* ---------- Istabas kods ---------------------------------------------- */

.room { min-height: calc(100vh - var(--header-h)); min-height: calc(100svh - var(--header-h)); display: grid; place-items: center; padding: var(--space-30) var(--space-10); }
.room__card { width: 100%; max-width: 520px; padding: var(--space-20) var(--space-16); text-align: center; }
.room h1 { font-size: 32px; }
.room p { color: var(--muted); margin-top: var(--space-6); }
.code { display: flex; gap: var(--space-5); justify-content: center; margin: var(--space-16) 0 var(--space-5); }
.code input {
  width: 52px; height: 64px;
  text-align: center;
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text);
  background: rgba(var(--tint-rgb), 0.05);
  border: var(--border-hair) solid var(--line-strong);
  border-radius: var(--radius-md);
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
.code input:focus { border-color: var(--accent); box-shadow: var(--shadow-code); outline: none; }
.room__hint { font-size: 13px; color: var(--muted); }
.room__soon { margin-top: var(--space-13); padding: var(--space-6) var(--space-8); border-radius: var(--radius-md); background: rgba(var(--tint-rgb), 0.04); border: var(--border-hair) dashed var(--line-strong); font-size: 13px; color: var(--muted); }

/* ---------- Platakiem ekraniem ---------------------------------------- */

/* Viena speles kartina — platais "banera" variants */
.games--single .game { grid-column: 1 / -1; min-height: 300px; }
.games--single .game__glyph { font-size: 76px; }
.games--single .game__title { font-size: clamp(24px, 5vw, 38px); }

@media (min-width: 560px) {
  .games { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .roles { grid-template-columns: repeat(3, 1fr); }
  .bp { grid-template-columns: repeat(2, 1fr); }
  .plans { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
}

@media (min-width: 900px) {
  .nav { display: flex; }
  .games--single .game { min-height: 380px; padding: var(--space-13); }
  .games { grid-template-columns: repeat(3, 1fr); }
  .steps { grid-template-columns: repeat(5, 1fr); }
  .hero__grid { grid-template-columns: 1.1fr 0.9fr; }
  .schools { grid-template-columns: 1fr 1fr; }
}

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

/* =======================================================================
   2. KARTA — kustiba, scroll-stasts un ikonas
   Viss zemak respekte "prefers-reduced-motion" (skat. faila beigas).
   ======================================================================= */

/* ---------- Ikonas (SVG, nevis emoji) --------------------------------- */

.ico {
  width: 1em;
  height: 1em;
  flex: none;
  display: inline-block;
  vertical-align: -0.125em;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ico--lg { width: 30px; height: 30px; stroke-width: 1.5; }
.ico--xl { width: 42px; height: 42px; stroke-width: 1.4; }

/* ---------- Paradisanas efekts ritinot ------------------------------- */

.r {
  opacity: 0;
  transform: translateY(22px);
  filter: blur(5px);
  transition:
    opacity var(--t-slow) var(--e-out),
    transform var(--t-slow) var(--e-out),
    filter var(--t-slow) var(--e-out);
  transition-delay: calc(var(--i, 0) * 70ms);
  will-change: opacity, transform;
}

.r.is-in { opacity: 1; transform: none; filter: blur(0); }

.r--left { transform: translateX(-30px); }
.r--scale { transform: scale(0.94); filter: blur(10px); }

/* Teksts, kas nak pa rindam (virsraksti) */
.line-mask { display: block; overflow: hidden; padding-bottom: 0.08em; }
.line-mask > span {
  display: block;
  transform: translateY(110%);
  transition: transform 1s var(--e-out);
  transition-delay: calc(var(--i, 0) * 110ms);
}
.is-in .line-mask > span, .line-mask.is-in > span { transform: none; }

/* ---------- HERO: ritinasana = tiesas sede ---------------------------- */

.trial {
  position: relative;
  height: 320vh;                 /* ritinasanas celjs sedei */
}

.trial__stage {
  position: sticky;
  top: var(--header-h);
  height: calc(100vh - var(--header-h));
  height: calc(100svh - var(--header-h));
  min-height: 560px;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.trial__inner {
  width: 100%;
  max-width: 1120px;
  padding: 0 var(--space-10);
  display: grid;
  gap: var(--space-14);
  align-items: center;
}

/* Fona "zales" gaisma, kas kustas lidzi sedei */
.trial__glow {
  position: absolute;
  inset: -20%;
  background: radial-gradient(45% 45% at var(--glow-x, 50%) 22%, rgba(var(--accent-rgb), 0.16), transparent 70%);
  opacity: 0.85;
  pointer-events: none;
  transition: background 120ms linear;
}

.trial__copy { position: relative; z-index: 2; }

.trial h1 {
  font-size: clamp(38px, 7.2vw, 78px);
  font-weight: 900;
  letter-spacing: -0.045em;
}

.trial h1 em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--accent-bright);
}

.trial__sub {
  color: var(--muted);
  font-size: clamp(16px, 2vw, 19px);
  margin-top: var(--space-11);
  max-width: 46ch;
}

/* Fazes teksts zem svariem */
.phase {
  position: relative;
  z-index: 2;
  height: 26px;
  margin-top: var(--space-5);
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}

.phase span {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 320ms var(--e-out), transform 320ms var(--e-out);
}

.phase span.is-on { opacity: 1; transform: none; color: var(--accent-bright); }

/* Svari */
.scales { position: relative; z-index: 2; width: 100%; max-width: 460px; margin: 0 auto; }
.scales svg { width: 100%; height: auto; overflow: visible; }

.scales .post { stroke: rgba(var(--tint-rgb), 0.35); }
.scales .beam { stroke: var(--text); stroke-width: 5; stroke-linecap: round; }
.scales .pan { stroke: rgba(var(--tint-rgb), 0.55); fill: rgba(var(--tint-rgb), 0.05); }
.scales .chain { stroke: rgba(var(--tint-rgb), 0.28); stroke-width: 1.2; }
.scales .weight { transition: opacity 260ms var(--e-out), transform 420ms var(--e-out); transform-origin: center; }
.scales .weight--off { opacity: 0; transform: translateY(-14px) scale(0.6); }
.scales .pan-label {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  fill: var(--muted);
  text-anchor: middle;
}
.scales .pan-label.is-on { fill: var(--text-strong); }

/* Ãmurs un spiedogs */
.gavel { position: absolute; z-index: 3; right: 4%; top: 6%; width: clamp(90px, 16vw, 150px); opacity: 0; }
.gavel svg { width: 100%; height: auto; }

.strike {
  position: absolute;
  z-index: 4;
  inset: 0;
  background: radial-gradient(35% 35% at 50% 45%, rgba(var(--tint-rgb), 0.75), transparent 60%);
  opacity: 0;
  pointer-events: none;
}

.stamp {
  position: absolute;
  z-index: 5;
  left: 50%;
  top: 46%;
  translate: -50% -50%;
  padding: var(--space-8) var(--space-17);
  border: var(--border-stamp) solid var(--accent-bright);
  border-radius: var(--radius-stamp);
  color: var(--accent-bright);
  font-family: var(--font-display);
  font-size: clamp(30px, 6vw, 62px);
  font-weight: 900;
  letter-spacing: 0.06em;
  opacity: 0;
  rotate: -9deg;
  scale: 2.4;
  text-shadow: var(--glow-stamp);
  box-shadow: var(--shadow-stamp);
  pointer-events: none;
  white-space: nowrap;
}

/* Ritinasanas made */
.scroll-hint {
  position: absolute;
  bottom: 22px;
  left: 50%;
  translate: -50% 0;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  transition: opacity 300ms var(--e-out);
  font-family: var(--font-label);
}

.scroll-hint i {
  width: 1px;
  height: 26px;
  background: linear-gradient(var(--accent-bright), transparent);
  animation: hint 2.2s ease-in-out infinite;
}

@keyframes hint {
  0%, 100% { transform: scaleY(0.4); transform-origin: top; opacity: 0.4; }
  50% { transform: scaleY(1); transform-origin: top; opacity: 1; }
}

/* ---------- Temu lente (marquee) -------------------------------------- */

.ticker {
  position: relative;
  overflow: hidden;
  border-block: var(--border-hair) solid var(--line);
  background: rgba(var(--tint-rgb), 0.02);
  padding: var(--space-8) 0;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.ticker__row { display: flex; gap: var(--space-7); width: max-content; animation: slide 46s linear infinite; }
.ticker:hover .ticker__row { animation-play-state: paused; }

@keyframes slide { to { transform: translateX(-50%); } }

.ticker__item {
  display: inline-flex;
  align-items: center;
  gap: var(--space-5);
  padding: 9px var(--space-9);
  border: var(--border-hair) solid var(--line);
  border-radius: var(--radius-pill);
  background: var(--surface);
  font-family: var(--font-serif);
  font-size: 15px;
  color: var(--text-body);
  white-space: nowrap;
}

.ticker__item .ico { color: var(--accent-bright); }

/* ---------- Soli ka sedes hronologija --------------------------------- */

.timeline { position: relative; margin-top: var(--space-20); }

.timeline__rail {
  position: absolute;
  left: 21px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: var(--line);
  overflow: hidden;
}

.timeline__fill {
  position: absolute;
  inset: 0 0 auto 0;
  height: var(--fill, 0%);
  background: linear-gradient(var(--accent-bright), var(--accent));
  box-shadow: var(--shadow-timeline-fill);
  transition: height 120ms linear;
}

.tl-step { position: relative; padding: 0 0 var(--space-17) var(--space-31); }

.tl-step__dot {
  position: absolute;
  left: 12px;
  top: 4px;
  width: 20px;
  height: 20px;
  border-radius: var(--radius-round);
  border: var(--border-thick) solid var(--line-strong);
  background: var(--bg);
  display: grid;
  place-items: center;
  transition: background-color var(--t-base) var(--e-out), border-color var(--t-base) var(--e-out), box-shadow var(--t-base) var(--e-out);
}

.tl-step.is-in .tl-step__dot {
  border-color: var(--accent);
  background: var(--accent);
  box-shadow: var(--shadow-tl-dot);
}

.tl-step__n {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.24em;
  color: var(--accent-bright);
}

.tl-step h3 { font-size: 21px; margin: var(--space-4) 0 var(--space-4); }
.tl-step p { color: var(--muted); max-width: 54ch; }

/* ---------- Kartinu "tilt" un spidiens -------------------------------- */

.tilt {
  transform-style: preserve-3d;
  transition: transform 260ms var(--e-out);
  will-change: transform;
}

.tilt__inner { transform: translateZ(28px); }

.shine {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  opacity: 0;
  pointer-events: none;
  background: radial-gradient(240px 240px at var(--mx, 50%) var(--my, 50%), rgba(var(--tint-rgb), 0.16), transparent 65%);
  transition: opacity var(--t-base) var(--e-out);
}

.tilt:hover .shine, .game:hover .shine { opacity: 1; }

/* ---------- Skaitiitaji ------------------------------------------------ */

.stats strong { font-variant-numeric: tabular-nums; }

/* ---------- Debasu sablona "sabrukums" -------------------------------- */

.bp__step { transition: transform var(--t-base) var(--e-out), opacity var(--t-base) var(--e-out); }
.bp.is-broken .bp__step[data-bp="2"] { opacity: 0.25; transform: translateY(12px) rotate(-1.4deg); }
.bp.is-broken .bp__step[data-bp="3"] { transform: translateY(22px) rotate(2deg); }

.bp-demo {
  margin-top: var(--space-10);
  display: flex;
  align-items: center;
  gap: var(--space-7);
  flex-wrap: wrap;
  font-size: 14px;
  color: var(--muted);
}

/* ---------- Pogas: neona "pulss" un magnetisms ------------------------ */

.btn--primary { position: relative; overflow: hidden; }

.btn--primary::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, transparent 20%, rgba(var(--tint-rgb), 0.35) 50%, transparent 80%);
  transform: translateX(-120%);
}

.btn--primary:hover::after { animation: sweep 780ms var(--e-out); }

@keyframes sweep { to { transform: translateX(120%); } }

/* ---------- Galvenes progress ---------------------------------------- */

.progress {
  position: absolute;
  left: 0;
  bottom: -1px;
  height: 2px;
  width: var(--w, 0%);
  background: linear-gradient(90deg, var(--accent), var(--accent-bright));
  box-shadow: var(--shadow-progress);
}

@media (min-width: 900px) {
  .trial__inner { grid-template-columns: 1.05fr 0.95fr; gap: var(--space-25); }
  .timeline__rail { left: 21px; }
}

@media (prefers-reduced-motion: reduce) {
  .r { opacity: 1 !important; transform: none !important; filter: none !important; }
  .line-mask > span { transform: none !important; }
  .trial { height: auto !important; }
  .trial__stage { position: static; height: auto; padding: var(--space-30) 0; }
  .ticker__row { animation: none; }
  .stamp { display: none; }
}

/* ---------- Ikonu pieskanosana konkretiem elementiem ------------------- */

.ico--hero { width: 62px; height: 62px; stroke-width: 1.15; }

.brand__mark .ico { width: 18px; height: 18px; color: var(--on-press); stroke-width: 1.9; }
.room__card .brand__mark .ico { width: 24px; height: 24px; }

.search__icon .ico { width: 19px; height: 19px; }
.search input { padding-left: var(--space-25); }

.filter .ico { width: 15px; height: 15px; margin-right: -2px; }
.filter[aria-pressed="true"] .ico { color: var(--accent-bright); }

.game__glyph { color: rgba(var(--tint-rgb), 0.92); }
.game__meta .ico { width: 14px; height: 14px; opacity: 0.85; }

.icon-btn .ico { width: 17px; height: 17px; transition: color var(--t-fast) var(--e-out), fill var(--t-fast) var(--e-out), scale var(--t-fast) var(--e-out); }
.icon-btn.is-fav .ico { color: var(--accent-bright); fill: var(--accent); }
.icon-btn:hover .ico { color: var(--accent-bright); }

.role__icon { color: var(--accent-bright); }
.hub-banner__icon { color: var(--accent-bright); }
.tip [data-ico] { color: var(--cyber); }

.plan li .ico { color: var(--accent-bright); }

/* ---------- Sedes aina šaurakos ekranos ------------------------------- */

@media (max-width: 899px) {
  .trial { height: 300vh; }
  .trial__stage { padding-block: var(--space-4); }
  .trial__inner { gap: var(--space-7); }
  .trial h1 { font-size: clamp(30px, 6.6vw, 46px); }
  .trial__sub { font-size: 15.5px; margin-top: var(--space-7); max-width: 42ch; }
  .trial .hero__actions { margin-top: var(--space-9); }
  .trial .stats { margin-top: var(--space-10); gap: var(--space-10); }
  .trial .stats strong { font-size: 21px; }
  .scales { max-width: 290px; }
  .phase { margin-top: var(--space-1); }
  .gavel { width: 84px; top: 3%; }
}

@media (max-width: 899px) and (max-height: 720px) {
  .trial .stats, .scroll-hint { display: none; }
  .scales { max-width: 230px; }
}

/* =======================================================================
   SPELES ISTABA UN RATS
   ======================================================================= */

.room-page { padding-block: var(--space-20) var(--space-35); }

.room-head {
  display: grid;
  gap: var(--space-13);
  align-items: start;
  padding-bottom: var(--space-17);
  margin-bottom: var(--space-15);
  border-bottom: var(--border-hair) solid var(--line);
}

.room-code {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(46px, 11vw, 88px);
  letter-spacing: 0.14em;
  line-height: 1;
  margin-top: var(--space-3);
  background: linear-gradient(120deg, var(--text) 30%, var(--accent-bright));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.room-note { color: var(--muted); font-size: 14px; margin-top: var(--space-6); max-width: 54ch; }

.join-card { padding: var(--space-12); }
.join-card h2 { font-size: 18px; margin-bottom: var(--space-7); }

.join-steps { margin: 0; padding-left: var(--space-10); display: grid; gap: 9px; color: var(--muted); font-size: 14.5px; }
.join-steps li::marker { color: var(--accent-bright); font-weight: 700; }

.qr-slot {
  margin: var(--space-9) 0 0;
  height: 132px;
  border-radius: var(--radius-md);
  border: var(--border-hair) dashed var(--line-strong);
  background:
    repeating-linear-gradient(45deg, rgba(var(--tint-rgb), 0.03) 0 8px, transparent 8px 16px);
}

.players-head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-8); }
.players-count { font-family: var(--font-display); font-size: 14px; color: var(--muted); letter-spacing: 0.1em; }

.add-player { display: flex; gap: var(--space-5); margin: var(--space-10) 0 var(--space-11); flex-wrap: wrap; }

.add-player input {
  flex: 1 1 220px;
  padding: 13px var(--space-9);
  border-radius: var(--radius-pill);
  border: var(--border-hair) solid var(--line);
  background: rgba(var(--tint-rgb), 0.05);
  color: var(--text);
  font-size: 16px;
  font-family: inherit;
}

.add-player input::placeholder { color: var(--muted); }
.add-player input:disabled { opacity: 0.45; }

.players { display: grid; gap: var(--space-6); grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }

.player {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  padding: 11px 13px;
  border-radius: var(--radius-md);
  border: var(--border-hair) solid var(--line);
  background: var(--surface);
  box-shadow: inset 3px 0 0 var(--c, var(--accent));
  animation: pop 340ms var(--e-out) both;
}

@keyframes pop {
  0% { opacity: 0; transform: translateY(10px) scale(0.96); }
  100% { opacity: 1; transform: none; }
}

.player__avatar {
  width: 34px;
  height: 34px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: var(--radius-round);
  background: var(--c, var(--accent));
  color: var(--on-bright);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 15px;
}

.player__name { font-weight: 600; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.player__x {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  padding: 0 var(--space-2);
  transition: color var(--t-fast) var(--e-out);
}

.player__x:hover { color: var(--accent-bright); }

.players-empty {
  grid-column: 1 / -1;
  padding: var(--space-16);
  text-align: center;
  color: var(--muted);
  border: var(--border-hair) dashed var(--line-strong);
  border-radius: var(--radius-md);
}

.room-actions { display: flex; gap: var(--space-6); flex-wrap: wrap; margin-top: var(--space-14); }

.btn:disabled { opacity: 0.45; cursor: not-allowed; box-shadow: none; }
.btn:disabled::after { display: none; }

/* Koda kluda */
.code-error { min-height: 20px; margin-top: var(--space-5); font-size: 13.5px; color: var(--accent-bright); opacity: 0; transition: opacity var(--t-fast) var(--e-out); }
.code-error.is-on { opacity: 1; }

.code.is-wrong { animation: shake 420ms var(--e-in-out); }

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-9px); }
  40% { transform: translateX(8px); }
  60% { transform: translateX(-5px); }
  80% { transform: translateX(3px); }
}

/* ---------- Rats ------------------------------------------------------- */

#wheel-step { text-align: center; }
#wheel-step .eyebrow { justify-content: center; }
#wheel-step .section__sub, #wheel-step .room-note { margin-left: auto; margin-right: auto; }
#wheel-step .room-actions { justify-content: center; }

.wheel-stage { display: grid; gap: var(--space-18); justify-items: center; margin-top: var(--space-17); }

.wheel {
  position: relative;
  width: min(540px, 86vw);
  margin: 0 auto;
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

/* Fuksijas mirdzums zem rata — tas piesien ratu pie zimola */
.wheel__halo {
  position: absolute;
  inset: -14%;
  border-radius: var(--radius-round);
  background: radial-gradient(circle, rgba(var(--accent-rgb), 0.10), transparent 62%);
  filter: blur(6px);
  pointer-events: none;
}

.wheel__disc { position: relative; transform-origin: 50% 50%; }
.wheel__disc svg { width: 100%; height: auto; display: block; overflow: visible; }

/* Sektori — tumši, ar krāsu tikai kā pieskaņu, nevis kā konfektes */
.wheel__seg {
  fill: var(--c);
  fill-opacity: 0.14;
  stroke: none;
  transition: fill-opacity 420ms var(--e-out);
}

.wheel__seg.is-won { fill-opacity: 0.42; }

.wheel__spoke { stroke: var(--c); stroke-opacity: 0.45; stroke-width: 1.5; }

.wheel__rim { fill: none; stroke: rgba(var(--tint-rgb), 0.16); stroke-width: 2; }
.wheel__rim--inner { stroke: rgba(var(--tint-rgb), 0.07); stroke-width: 1; }

.wheel__tick { stroke: rgba(var(--tint-rgb), 0.16); stroke-width: 1; }
.wheel__tick--big { stroke: rgba(var(--tint-rgb), 0.4); stroke-width: 2; }

.wheel__label {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.16em;
  fill: rgba(var(--wheel-ink-rgb), 0.72);
  text-anchor: middle;
  dominant-baseline: middle;
  text-transform: uppercase;
  transition: fill 420ms var(--e-out), opacity 260ms var(--e-out);
}

.wheel__label.is-won { fill: var(--text-strong); }

/* Grieziena laika uzraksti pieklust — salasit tos tapat nevar */
.wheel__disc.is-spinning .wheel__label { opacity: 0.12; }

/* Rumba stav uz vietas, negriezas lidzi diskam */
.wheel__hub-fixed {
  position: absolute;
  left: 50%;
  top: 50%;
  translate: -50% -50%;
  width: 27%;
  z-index: 2;
  pointer-events: none;
}

.wheel__hub-fixed svg { width: 100%; height: auto; display: block; overflow: visible; }
.wheel__hub { fill: var(--bg-deep); stroke: rgba(var(--tint-rgb), 0.14); stroke-width: 2; }
.wheel__hub-ring { fill: none; stroke: rgba(var(--accent-rgb), 0.55); stroke-width: 1.5; }

.wheel__hub-mark {
  fill: none;
  stroke: var(--accent-bright);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Bultina — ass neona ķīlis, nevis balts trijstūris */
.wheel__pointer {
  position: absolute;
  top: -6px;
  left: 50%;
  translate: -50% 0;
  z-index: 3;
  width: 26px;
  height: 40px;
  background: linear-gradient(180deg, var(--accent-bright), var(--accent));
  clip-path: polygon(50% 100%, 0 0, 100% 0);
  filter: drop-shadow(var(--drop-wheel-pointer));
}

.wheel-result {
  width: 100%;
  max-width: 560px;
  padding: var(--space-13);
  border-radius: var(--radius-lg);
  border: var(--border-hair) solid var(--line);
  background: var(--surface);
  animation: pop 420ms var(--e-out) both;
}

.wheel-result .hub__kicker { text-align: center; }

.wheel-cat {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(28px, 5vw, 42px);
  color: var(--c, var(--accent-bright));
  margin-top: var(--space-3);
  text-shadow: 0 0 26px color-mix(in srgb, var(--c, var(--accent)) 45%, transparent);
}

.wheel-topic {
  font-family: var(--font-serif);
  font-size: clamp(20px, 3vw, 27px);
  line-height: 1.3;
  margin: var(--space-5) 0 var(--space-7);
}

.chip--fact { color: var(--cyber); border-color: rgba(var(--cyber-rgb), 0.4); background: rgba(var(--cyber-rgb), 0.1); }
.chip--opinion { color: var(--accent-bright); border-color: rgba(var(--accent-rgb), 0.45); background: var(--accent-soft); }

/* ---------- Izlozetas lomas ------------------------------------------- */

.roles-drawn { display: grid; gap: var(--space-6); grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); margin-top: var(--space-11); }

.drawn {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 15px;
  border-radius: var(--radius-md);
  border: var(--border-hair) solid var(--line);
  background: var(--surface);
}

.drawn--main { border-color: rgba(var(--accent-rgb), 0.45); box-shadow: var(--shadow-drawn); }
.drawn__name { font-weight: 700; flex: 1; }
.drawn__role { font-family: var(--font-display); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.drawn--main .drawn__role { color: var(--accent-bright); }

@media (min-width: 820px) {
  .room-head { grid-template-columns: 1.3fr 0.7fr; gap: var(--space-20); }
}

/* =======================================================================
   SEDES GAITA — karts, izpete, runas, vertejums, verdikts
   ======================================================================= */

#topic-step, #research-step, #speech-step, #score-step, #verdict-step {
  padding-block: var(--space-20) var(--space-30);
  text-align: center;
}

#topic-step .eyebrow, #research-step .eyebrow, #speech-step .eyebrow,
#score-step .eyebrow, #verdict-step .eyebrow { justify-content: center; }

#topic-step .room-note, #research-step .room-note, #speech-step .room-note,
#score-step .room-note { margin-left: auto; margin-right: auto; }

#topic-step .room-actions, #research-step .room-actions, #speech-step .room-actions,
#score-step .room-actions, #verdict-step .room-actions { justify-content: center; }

.room-type {
  display: inline-flex;
  align-items: center;
  gap: var(--space-4);
  margin-top: var(--space-7);
  padding: 5px var(--space-7);
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: var(--border-hair) solid var(--line);
  font-family: var(--font-label);
}

.room-type--box { color: var(--accent-bright); border-color: rgba(var(--accent-rgb), 0.45); background: var(--accent-soft); }
.room-type--digital { color: var(--cyber); border-color: rgba(var(--cyber-rgb), 0.4); background: rgba(var(--cyber-rgb), 0.1); }

/* Karts koda ievade */
.card-entry { display: flex; gap: var(--space-5); justify-content: center; flex-wrap: wrap; margin: var(--space-12) 0 var(--space-3); }

.card-entry input {
  width: min(280px, 80vw);
  padding: var(--space-7) var(--space-10);
  border-radius: var(--radius-pill);
  border: var(--border-hair) solid var(--line-strong);
  background: rgba(var(--tint-rgb), 0.05);
  color: var(--text);
  font-family: var(--font-display);
  font-size: 18px;
  letter-spacing: 0.12em;
  text-align: center;
  text-transform: uppercase;
}

.topic-big { max-width: 22ch; margin-left: auto; margin-right: auto; font-size: clamp(24px, 4.4vw, 40px); }

/* Taimeris — tiksosa bumba */
.timer {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(62px, 14vw, 128px);
  line-height: 1;
  letter-spacing: 0.02em;
  margin: var(--space-13) 0 var(--space-4);
  font-variant-numeric: tabular-nums;
  color: var(--text);
  transition: color 300ms var(--e-out);
}

.timer.is-warn { color: var(--amber); }

.timer.is-hot {
  color: var(--accent-bright);
  animation: tick 1s steps(2, end) infinite;
  text-shadow: var(--glow-timer-hot);
}

.timer.is-done {
  color: var(--accent-bright);
  font-size: clamp(40px, 9vw, 86px);
  animation: slam 500ms var(--e-out);
}

@keyframes tick {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.06); }
}

@keyframes slam {
  0% { transform: scale(1.5); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.facts { max-width: 620px; margin: var(--space-13) auto 0; padding: var(--space-12); text-align: left; }
.facts h3 { font-size: 17px; margin-bottom: var(--space-7); }
.facts ul { margin: 0; padding-left: var(--space-10); display: grid; gap: 11px; color: var(--text-body); font-size: 15.5px; }
.facts li::marker { color: var(--accent-bright); }

/* Runas */
.turn-topic { font-family: var(--font-serif); color: var(--muted); font-size: 17px; margin: var(--space-5) auto var(--space-11); max-width: 34ch; }
.turn-label { font-size: clamp(24px, 4.4vw, 38px); }
.turn--pros { color: var(--side-pros); }
.turn--def { color: var(--side-def); }
.turn--both { color: var(--text); }

.turn-dots { display: flex; gap: var(--space-4); justify-content: center; margin-bottom: var(--space-4); }
.turn-dot { width: 26px; height: 4px; border-radius: var(--radius-dot); background: var(--line-strong); transition: background 300ms var(--e-out); }
.turn-dot.is-done { background: rgba(var(--accent-rgb), 0.45); }
.turn-dot.is-on { background: var(--accent-bright); box-shadow: var(--shadow-progress); }

/* Vertesana */
.score-grid { display: grid; gap: var(--space-9); margin-top: var(--space-14); text-align: left; }

.score-card { padding: var(--space-11); }
.score-card h3 { font-size: 19px; margin-bottom: var(--space-8); }
.score-card--pros h3 { color: var(--side-pros); }
.score-card--def h3 { color: var(--side-def); }

.score-row { display: flex; align-items: center; justify-content: space-between; gap: var(--space-7); padding: 11px 0; border-top: var(--border-hair) solid var(--line); flex-wrap: wrap; }
.score-row:first-of-type { border-top: 0; }
.score-row strong { display: block; font-size: 15px; }
.score-row span { color: var(--muted); font-size: 13px; }

.score-dots { display: flex; gap: var(--space-3); }

.score-dot {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-badge);
  border: var(--border-hair) solid var(--line-strong);
  background: rgba(var(--tint-rgb), 0.04);
  color: var(--muted);
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: background-color var(--t-fast) var(--e-out), border-color var(--t-fast) var(--e-out), color var(--t-fast) var(--e-out), scale 0.12s ease-out;
}

.score-dot.is-on { background: var(--accent); border-color: var(--accent); color: var(--on-press); }
.score-card--def .score-dot.is-on { background: var(--side-def-fill); border-color: var(--side-def); color: var(--on-side-def); }

.score-total { display: flex; align-items: baseline; gap: var(--space-5); margin-top: var(--space-9); padding-top: var(--space-8); border-top: var(--border-hair) solid var(--line); }
.score-total span { color: var(--muted); font-size: 13px; text-transform: uppercase; letter-spacing: 0.12em; font-family: var(--font-label); }
.score-total strong { font-family: var(--font-display); font-size: 30px; }
.score-total small { color: var(--muted); font-size: 12px; }

/* Verdikts */
.verdict-stamp {
  display: inline-block;
  margin: var(--space-5) 0 var(--space-9);
  padding: var(--space-6) var(--space-14);
  border: var(--border-stamp) solid var(--accent-bright);
  border-radius: var(--radius-stamp);
  color: var(--accent-bright);
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(24px, 5vw, 44px);
  letter-spacing: 0.06em;
  rotate: -6deg;
  animation: slam 560ms var(--e-out) both;
  box-shadow: var(--shadow-verdict-stamp);
}

.verdict-scores { display: flex; gap: var(--space-7); justify-content: center; margin-top: var(--space-13); flex-wrap: wrap; }

.verdict-side {
  min-width: 150px;
  padding: var(--space-9) var(--space-12);
  border-radius: var(--radius-md);
  border: var(--border-hair) solid var(--line);
  background: var(--surface);
}

.verdict-side span { display: block; color: var(--muted); font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; font-family: var(--font-label); }
.verdict-side strong { font-family: var(--font-display); font-size: 40px; }
.verdict-side.is-win { border-color: var(--accent); box-shadow: var(--shadow-verdict-win); }

@media (min-width: 760px) {
  .score-grid { grid-template-columns: 1fr 1fr; }
}

/* ---------- QR skeneris ------------------------------------------------ */

.scanner {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-content: center;
  gap: var(--space-9);
  justify-items: center;
  padding: var(--space-12);
  background: rgba(var(--scrim-rgb), 0.94);
  backdrop-filter: blur(8px);
  animation: pop 260ms var(--e-out) both;
}

.scanner__box {
  position: relative;
  width: min(420px, 84vw);
  aspect-ratio: 1;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--shade);
  box-shadow: var(--shadow-scanner-box);
}

.scanner__box video { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Ramis ar stūriem, lai zina, kur turēt kārti */
.scanner__frame {
  position: absolute;
  inset: 14%;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-scanner-dim);
}

.scanner__frame::before,
.scanner__frame::after {
  content: "";
  position: absolute;
  width: 34px;
  height: 34px;
  border: var(--border-stamp) solid var(--accent-bright);
}

.scanner__frame::before { top: -3px; left: -3px; border-right: 0; border-bottom: 0; border-radius: var(--radius-sm) 0 0 0; }
.scanner__frame::after { bottom: -3px; right: -3px; border-left: 0; border-top: 0; border-radius: 0 0 var(--radius-sm) 0; }

.scanner__status {
  max-width: 34ch;
  text-align: center;
  color: var(--muted);
  font-size: 14.5px;
}

.scanner__status.is-error { color: var(--accent-bright); }

/* ---------- Telefona galvene: nekas nedrīkst izstumt lapu ------------- */

.header__inner { min-width: 0; }
.brand { min-width: 0; }

@media (max-width: 600px) {
  /* Zimola vards uz mazam ekraniem paliek tikai ka zime; ekrana lasitajam vards paliek (saitei vajag nosaukumu) */
  .brand [data-brand] { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

  .header__right { gap: var(--space-4); }

  .header .btn--sm {
    padding: 9px var(--space-7);
    font-size: 13px;
    max-width: 46vw;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .lang button { padding: 5px 9px; font-size: 11px; }

  .wrap { padding-inline: var(--space-8); }
  .hub__head > a { width: 100%; justify-content: center; }
  .hub-banner .btn { margin-left: 0; width: 100%; }
  .room-actions .btn { flex: 1 1 auto; }
}

@media (max-width: 380px) {
  .header .btn--sm { max-width: 42vw; }
}

/* ---------- Telefona drošā zona un apakšmala ------------------------- */

body {
  /* Safari apakšējā josla pārklāj saturu — atstājam vietu zem tās */
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

.wrap, .room-page, .header__inner {
  padding-left: max(var(--space-8), env(safe-area-inset-left));
  padding-right: max(var(--space-8), env(safe-area-inset-right));
}

@media (min-width: 640px) {
  .wrap, .room-page, .header__inner {
    padding-left: max(var(--space-10), env(safe-area-inset-left));
    padding-right: max(var(--space-10), env(safe-area-inset-right));
  }
}

.room { padding-bottom: calc(var(--space-45) + env(safe-area-inset-bottom, 0px)); }
.room-page { padding-bottom: calc(var(--space-45) + env(safe-area-inset-bottom, 0px)); }
.footer { padding-bottom: calc(var(--space-20) + env(safe-area-inset-bottom, 0px)); }

/* Kartiņas nosaukums nekad neizlien ārpus kartiņas */
.game__title { overflow-wrap: anywhere; hyphens: auto; }
.games--single .game__title { font-size: clamp(22px, 7vw, 38px); }

/* ---------- Pārgriešana ----------------------------------------------- */

.respin {
  width: 100%;
  max-width: 560px;
  margin: var(--space-11) auto 0;
  padding: var(--space-10);
  border-radius: var(--radius-lg);
  border: var(--border-hair) dashed var(--line-strong);
  background: rgba(var(--tint-rgb), 0.03);
}

.respin .hub__kicker { text-align: center; }
.respin .room-note { text-align: center; }

.respin__list { display: flex; gap: var(--space-5); justify-content: center; flex-wrap: wrap; margin-top: var(--space-7); }

.respin__btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: var(--space-4) var(--space-8) var(--space-4) var(--space-4);
  border-radius: var(--radius-pill);
  border: var(--border-hair) solid var(--line-strong);
  background: var(--surface);
  color: var(--text);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: background-color var(--t-fast) var(--e-out), border-color var(--t-fast) var(--e-out), color var(--t-fast) var(--e-out), scale 0.12s ease-out;
}

.respin__btn:hover { border-color: var(--c, var(--accent)); box-shadow: 0 0 20px -10px var(--c, var(--accent)); }
.respin__btn .player__avatar { width: 28px; height: 28px; font-size: 13px; }


/* =======================================================================
   3. KĀRTA — mazāk AI šablona, vairāk skaidrības (2026-10)
   ======================================================================= */

a, button { -webkit-tap-highlight-color: transparent; }
button { touch-action: manipulation; }

h1, h2, h3, .section__title, .wheel-topic { text-wrap: balance; }
p, li, .room-note { text-wrap: pretty; }

.room-code, .score-total strong, .players-count, .verdict-side strong, .stats strong, .timer {
  font-variant-numeric: tabular-nums;
}

/* Bez dekoratīvās svītriņas pirms katra virsrakstiņa */
.eyebrow::before { content: none; }

/* Nospiešana: viens, vienāds 0.96 visur */
.btn { transition: box-shadow 0.2s ease, background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, scale 0.12s ease-out; }
.filter:active, .respin__btn:active, .score-dot:active, .icon-btn:active,
.age-switch button:active, .lang button:active { scale: 0.96; }

/* Pogas bez "spīduma", kas pārskrien pāri */
.btn--primary::after { content: none; }

/* Neaktīvas pogas izskatās neaktīvas un nesola neko */
.is-soon, .btn.is-soon:disabled {
  opacity: 1;
  cursor: default;
  color: var(--muted);
  background: rgba(var(--tint-rgb), 0.03);
  border: var(--border-hair) dashed var(--line-strong);
  box-shadow: none;
}

/* Hero: divas rindas vienā fontā, akcents tikai ar krāsu */
.h1-line { display: block; }
.h1-accent { color: var(--accent-bright); }

/* Istabas kods: tīrs, bez gradienta teksta */
.room-code { background: none; -webkit-background-clip: border-box; background-clip: border-box; color: var(--text); }

/* Hover pacelšana tikai ierīcēm ar peli, lai telefonā nepaliek "pielipis" stāvoklis */
@media (hover: none) {
  .game:hover { transform: none; box-shadow: none; }
}

/* Pieskāriena laukumi telefonā vismaz 44px */
@media (pointer: coarse) {
  .lang button { min-height: 40px; min-width: 44px; }
  .icon-btn { width: 44px; height: 44px; }
  .score-dot { width: 44px; height: 44px; }
  .player__x { min-width: 44px; min-height: 44px; }
  .filter { min-height: 44px; }
}

/* ---------- Lomas kā sēdēšanas kārtība tiesā --------------------------- */

.roles { display: grid; gap: var(--space-7); margin-top: var(--space-17); }

.seat {
  padding: var(--space-12) var(--space-11);
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: var(--border-hair) solid var(--line);
}

.seat__tag {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  font-family: var(--font-label);
}

.seat h3 { font-size: clamp(22px, 3vw, 28px); margin: var(--space-4) 0 var(--space-5); }
.seat p { color: var(--muted); font-size: 15px; }
.seat__skill { margin-top: var(--space-8); padding-top: var(--space-7); border-top: var(--border-hair) solid var(--line); font-size: 13px; font-weight: 600; color: var(--text); }

.seat--pros h3 { color: var(--side-pros); }
.seat--def h3 { color: var(--side-def); }
.seat--judge { background: var(--bg-deep); border-color: var(--side-judge); }

@media (min-width: 820px) {
  .roles { grid-template-columns: 1fr 1.1fr 1fr; align-items: end; }
  .seat--pros { text-align: left; }
  .seat--def { text-align: right; }
  .seat--judge { text-align: center; padding-block: var(--space-17); margin-bottom: var(--space-13); }
}

/* Cenas: galvenais piedāvājums atšķiras ar malu, ne ar mirdzumu */
.plan--main { border-color: rgba(var(--accent-rgb), 0.5); }

/* BUJ karte */
.faq-card { padding: var(--space-13); scroll-margin-top: calc(var(--header-h) + 16px); }

/* ---------- Rats un tēma: viens skaidrs nākamais solis ----------------- */

.wheel-next-step { color: var(--text); font-size: 16px; margin-top: var(--space-6); }

.sides {
  display: grid;
  gap: var(--space-4);
  max-width: 420px;
  margin: var(--space-13) auto 0;
  text-align: left;
}

.sides__row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--space-8);
  padding: var(--space-6) var(--space-8);
  border-radius: var(--radius-md);
  background: var(--surface);
  border: var(--border-hair) solid var(--line);
}

.sides__row span { color: var(--muted); font-size: 13px; text-transform: uppercase; letter-spacing: 0.1em; font-family: var(--font-label); }
.sides__row strong { font-weight: 700; }
.sides__row--pros strong { color: var(--side-pros); }
.sides__row--def strong { color: var(--side-def); }

/* Pārgriešana ir sekundāra — maza, zem galvenās pogas */
.respin {
  max-width: 460px;
  margin: var(--space-13) auto 0;
  padding: 0;
  border: 0;
  background: none;
}

.respin .room-note { margin-top: 0; text-align: center; }
.respin__btn { padding: var(--space-3) var(--space-7) var(--space-3) var(--space-3); font-size: 13px; background: transparent; }
.respin-none { margin-top: var(--space-11); }

.card-manual { max-width: 460px; margin: var(--space-11) auto 0; text-align: center; }
.card-manual summary { cursor: pointer; color: var(--muted); font-size: 14px; list-style: none; }
.card-manual summary::-webkit-details-marker { display: none; }
.card-manual summary:hover { color: var(--text); }
.card-manual[open] summary { margin-bottom: var(--space-2); }

.card-entry input::placeholder { font-family: var(--font-body); letter-spacing: 0.04em; text-transform: none; color: var(--muted); }

/* ---------- Power-ups ------------------------------------------------ */

.powerbar { margin-top: var(--space-17); padding-top: var(--space-13); border-top: var(--border-hair) solid var(--line); }
.powerbar .hub__kicker { text-align: center; }

.pu-groups { display: grid; gap: var(--space-7); margin-top: var(--space-7); text-align: left; }

.pu-group { display: grid; gap: var(--space-4); }
.pu-group__title { font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); font-family: var(--font-label); }
.pu-group--pros .pu-group__title { color: var(--side-pros); }
.pu-group--def .pu-group__title { color: var(--side-def); }

.pu {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-6);
  width: 100%;
  min-height: 48px;
  padding: var(--space-5) var(--space-8);
  border-radius: var(--radius-md);
  border: var(--border-hair) solid var(--line);
  background: var(--surface);
  color: var(--muted);
  font: inherit;
  text-align: left;
  cursor: not-allowed;
  transition: border-color 0.18s ease, color 0.18s ease, background-color 0.18s ease, scale 0.12s ease-out;
}

.pu__name { font-weight: 700; font-size: 14.5px; }
.pu__when { font-size: 12px; color: var(--muted); }

.pu.is-open { cursor: pointer; color: var(--text); border-color: var(--line-strong); }
.pu-group--pros .pu.is-open { border-color: rgba(var(--side-pros-rgb), 0.6); }
.pu-group--def .pu.is-open { border-color: rgba(var(--side-def-rgb), 0.55); }
.pu.is-open:hover { background: var(--surface-2); }
.pu.is-open:active { scale: 0.96; }
.pu.is-spent { opacity: 0.45; }
.pu.is-spent .pu__name { text-decoration: line-through; }

@media (min-width: 820px) {
  .pu-groups { grid-template-columns: repeat(3, 1fr); }
}

.pu-preview { max-width: 460px; margin: var(--space-13) auto 0; text-align: left; }
.pu-preview .hub__kicker { text-align: center; }
.pu-preview ul { list-style: none; padding: 0; margin: var(--space-6) 0 0; display: grid; gap: var(--space-4); }
.pu-preview li { padding: var(--space-6) var(--space-7); border-radius: var(--radius-md); background: var(--surface); border: var(--border-hair) solid var(--line); }
.pu-preview strong { display: block; font-size: 14.5px; }
.pu-preview span { color: var(--muted); font-size: 13.5px; }

.pu-modal {
  position: fixed;
  inset: 0;
  z-index: 150;
  display: grid;
  place-items: center;
  padding: var(--space-10);
  background: rgba(var(--scrim-rgb), 0.82);
  backdrop-filter: blur(6px);
  animation: pop 220ms var(--e-out) both;
}

.pu-modal__box {
  width: min(460px, 100%);
  padding: var(--space-13);
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: var(--border-hair) solid var(--line-strong);
  text-align: center;
  display: grid;
  gap: var(--space-7);
}

.pu-modal__box--pros { border-color: rgba(var(--side-pros-rgb), 0.6); }
.pu-modal__box--def { border-color: rgba(var(--side-def-rgb), 0.55); }
.pu-modal__title { font-family: var(--font-display); font-weight: 800; font-size: 22px; }
.pu-modal__fact { font-family: var(--font-serif); font-size: 20px; line-height: 1.35; }
.pu-modal__timer { font-size: 64px; margin: var(--space-2) 0; }
.pu-modal .room-note { margin: 0 auto; }

.pu-flash {
  position: fixed;
  left: 50%;
  bottom: calc(28px + env(safe-area-inset-bottom, 0px));
  translate: -50% 0;
  z-index: 160;
  padding: var(--space-6) var(--space-10);
  border-radius: var(--radius-pill);
  background: var(--text);
  color: var(--bg-deep);
  font-weight: 700;
  animation: pop 220ms var(--e-out) both;
}

.pulse { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-5); }

.pulse__btn {
  display: grid;
  gap: var(--space-2);
  min-height: 84px;
  padding: var(--space-7);
  border-radius: var(--radius-md);
  border: var(--border-hair) solid var(--line-strong);
  background: var(--bg-deep);
  color: var(--text);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: scale 0.12s ease-out, border-color 0.18s ease;
}

.pulse__btn strong { font-family: var(--font-display); font-size: 26px; font-variant-numeric: tabular-nums; }
.pulse__btn--pros strong { color: var(--side-pros); }
.pulse__btn--def strong { color: var(--side-def); }
.pulse__btn:active { scale: 0.96; }

.pulse__bar { height: 10px; border-radius: var(--radius-bar); background: rgba(var(--cyber-rgb), 0.6); overflow: hidden; }
.pulse__fill { display: block; height: 100%; background: var(--accent-bright); transition: width 0.4s var(--e-out); }
.pulse__labels { display: flex; justify-content: space-between; margin-top: var(--space-4); font-size: 13px; color: var(--muted); }

/* ---------- Konts ------------------------------------------------------ */

.header__account { gap: var(--space-4); }
.header__account .ico { width: 16px; height: 16px; }

@media (max-width: 600px) {
  .header__account { width: 40px; height: 40px; padding: 0; justify-content: center; }
  .header__account [data-i18n] { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
}

.account { width: 100%; max-width: 440px; padding: var(--space-16) var(--space-14); }
.account h1 { font-size: 28px; }
.account > .room-note { margin-top: var(--space-5); }

.account__tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2);
  margin: var(--space-12) 0 var(--space-9);
  padding: var(--space-2);
  border-radius: var(--radius-pill);
  border: var(--border-hair) solid var(--line);
  background: rgba(var(--tint-rgb), 0.03);
}

.account__tabs button {
  min-height: 40px;
  border: 0;
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease;
}

.account__tabs button[aria-selected="true"] { background: var(--surface-2); color: var(--text); }

.account__form { display: grid; gap: var(--space-7); }
.account__form label { display: grid; gap: var(--space-3); font-size: 13.5px; font-weight: 600; color: var(--muted); }
.account__form small { font-weight: 500; font-size: 12px; }

.account__form input[type="email"],
.account__form input[type="password"],
.account__form input[type="text"] {
  min-height: 48px;
  padding: 0 var(--space-8);
  border-radius: var(--radius-md);
  border: var(--border-hair) solid var(--line-strong);
  background: rgba(var(--tint-rgb), 0.04);
  color: var(--text);
  font: inherit;
  font-size: 16px;
}

.account__form input:focus { outline: none; border-color: var(--accent); }

.account__form .check { display: flex; align-items: flex-start; gap: var(--space-5); font-weight: 500; color: var(--text); cursor: pointer; }
.account__form .check input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--accent); flex: none; }
.account__form .btn { margin-top: var(--space-3); min-height: 48px; }

.account__msg { min-height: 22px; margin-top: var(--space-8); font-size: 14px; color: var(--cyber); }
.account__msg.is-error { color: var(--accent-bright); }
.account__play { display: inline-block; margin-top: var(--space-2); font-size: 14px; color: var(--muted); }
.account__play:hover { color: var(--text); }

/* ---------- Juridiskās lapas ---------------------------------------- */
.legal { padding-block: var(--space-24) var(--space-45); }
.legal h1 { font-size: clamp(30px, 5vw, 44px); }
.legal h2 { font-size: 19px; margin: var(--space-17) 0 var(--space-5); }
.legal p, .legal li { color: var(--text-body); max-width: 64ch; }
.legal ul { padding-left: var(--space-10); display: grid; gap: var(--space-3); }

/* Galvene: izvēlne tikai tad, kad tai ir vieta vienā rindā */
.nav a { white-space: nowrap; }
@media (max-width: 1139px) { .nav { display: none; } }

/* Spēles kartiņa ar īstu bildi: bilde redzama, tumšs tikai lejā zem teksta */
.game.has-art .game__bg { background-size: cover; background-position: center 40%; }
.game.has-art .game__bg::after {
  background: linear-gradient(to top, rgba(var(--scrim-rgb), 0.92) 6%, rgba(var(--scrim-rgb), 0.35) 38%, transparent 62%),
              linear-gradient(to right, rgba(var(--scrim-rgb), 0.55), transparent 45%);
}
.game.has-art .game__glyph { display: none; }

/* Chrome automātiskā aizpilde (saglabāts e-pasts) uzspiež gaišu fonu.
   Pārklājam to ar iekšēju ēnu tieši lauka krāsā un paturam savu teksta krāsu. */
:root { color-scheme: dark; }

input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
  -webkit-text-fill-color: var(--text);
  caret-color: var(--text);
  -webkit-box-shadow: var(--shadow-autofill);
  box-shadow: var(--shadow-autofill);
  transition: background-color 9999s ease-out 0s;
}

.account__form input:-webkit-autofill:focus { border-color: var(--accent); }

/* =======================================================================
   4. KĀRTA — mierīgāks izskats (2026-10-09)
   Viena akcenta krāsa, kas nozīmē "spied šeit". Bez mirdzuma, bez gradientiem uz pogām.
   ======================================================================= */

h1, .trial h1, .hub__title { font-weight: 800; }

/* Pogas: taisnstūri ar noapaļotiem stūriem, nevis kapsulas; vienlaidu krāsa */
.btn { border-radius: var(--radius-md); }
.btn--primary { background: var(--press); box-shadow: var(--shadow-press); }
.btn--primary:hover { background: var(--press-hover); box-shadow: var(--shadow-press); }
.btn--ghost { background: transparent; }
.btn--ghost:hover { background: rgba(var(--tint-rgb), 0.06); }

.search input, .add-player input, .card-entry input { border-radius: var(--radius-md); }

/* Kartītes bez "neona malas" pārejas */
.card--glow::after { content: none; }

/* Virsrakstiņi virs katras sadaļas virsraksta — lapā tie tikai atkārto izvēlni */
#ka-tas-notiek > .eyebrow, #lomas > .eyebrow, #veikals > .eyebrow,
#sablons > .eyebrow, #skolam .eyebrow { display: none; }

/* Galvenes pogas vienā augstumā */
.header__right .btn--sm { min-height: 40px; }
.header .nav { gap: var(--space-1); }

/* ---------- Grozs: ikona galvenē un paziņojums ------------------------- */

.header__cart { position: relative; width: 40px; padding: 0; justify-content: center; }
.header__cart .ico { width: 18px; height: 18px; }

.cart-count {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: var(--radius-badge);
  background: var(--accent);
  color: var(--on-press);
  font-size: 11px;
  font-weight: 700;
  line-height: 18px;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.cart-toast {
  position: fixed;
  left: 50%;
  bottom: calc(24px + env(safe-area-inset-bottom, 0px));
  translate: -50% 0;
  z-index: 170;
  display: flex;
  align-items: center;
  gap: var(--space-8);
  padding: var(--space-6) var(--space-7) var(--space-6) var(--space-9);
  border-radius: var(--radius-md);
  background: var(--text);
  color: var(--bg-deep);
  font-weight: 600;
  font-size: 14px;
  box-shadow: var(--shadow-cart-toast);
  animation: pop 220ms var(--e-out) both;
}

.cart-toast a { padding: var(--space-3) var(--space-5); border-radius: var(--radius-stamp); background: var(--accent); color: var(--on-press); }

/* ---------- Kase -------------------------------------------------------- */

.checkout-page { padding-block: var(--space-22) var(--space-45); }
.checkout-page h1 { font-size: clamp(30px, 5vw, 44px); margin-bottom: var(--space-13); }

.checkout { display: grid; gap: var(--space-11); align-items: start; }
.checkout__cart h2, .checkout-done h2 { font-size: 20px; margin-bottom: var(--space-7); }

.cart-line {
  display: grid;
  grid-template-columns: 1fr auto auto auto;
  align-items: center;
  gap: var(--space-7);
  padding: var(--space-7) 0;
  border-bottom: var(--border-hair) solid var(--line);
}

.cart-line__info { display: grid; gap: var(--space-1); }
.cart-line__info span { color: var(--muted); font-size: 13.5px; }
.cart-line__sum { font-weight: 700; font-variant-numeric: tabular-nums; min-width: 72px; text-align: right; }

.qty { display: inline-flex; align-items: center; border: var(--border-hair) solid var(--line-strong); border-radius: var(--radius-sm); }
.qty button {
  width: 36px;
  height: 36px;
  border: 0;
  background: transparent;
  color: var(--text);
  font-size: 18px;
  cursor: pointer;
  transition: background-color 0.15s ease, scale 0.12s ease-out;
}
.qty button:hover { background: rgba(var(--tint-rgb), 0.06); }
.qty button:active { scale: 0.96; }
.qty output { min-width: 26px; text-align: center; font-variant-numeric: tabular-nums; font-weight: 700; }

.cart-line__x {
  width: 36px;
  height: 36px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 22px;
  cursor: pointer;
}
.cart-line__x:hover { color: var(--accent-bright); }

.cart-empty { padding: var(--space-15) 0; display: grid; gap: var(--space-8); justify-items: start; color: var(--muted); }

.checkout__form { padding: var(--space-12); display: grid; gap: var(--space-9); }
.checkout__form fieldset { border: 0; margin: 0; padding: 0; display: grid; gap: var(--space-6); }
.checkout__form legend { font-family: var(--font-display); font-weight: 700; font-size: 15px; margin-bottom: var(--space-5); }
.checkout__form label { display: grid; gap: var(--space-3); font-size: 13.5px; font-weight: 600; color: var(--muted); }

.checkout__form input[type="text"], .checkout__form input:not([type]),
.checkout__form input[type="email"], .checkout__form input[type="tel"] {
  min-height: 46px;
  padding: 0 var(--space-7);
  border-radius: var(--radius-sm);
  border: var(--border-hair) solid var(--line-strong);
  background: rgba(var(--tint-rgb), 0.04);
  color: var(--text);
  font: inherit;
  font-size: 16px;
}
.checkout__form input:focus { outline: none; border-color: var(--accent); }

.choice {
  display: flex !important;
  grid-template-columns: none;
  align-items: flex-start;
  gap: var(--space-6) !important;
  padding: var(--space-6) var(--space-7);
  border-radius: var(--radius-sm);
  border: var(--border-hair) solid var(--line);
  cursor: pointer;
  transition: border-color 0.15s ease;
}
.choice:has(input:checked) { border-color: var(--accent); }
.choice input { margin-top: 3px; accent-color: var(--accent); width: 18px; height: 18px; flex: none; }
.choice span { display: grid; gap: var(--space-1); }
.choice strong { color: var(--text); font-size: 14.5px; }
.choice small { font-weight: 500; font-size: 12.5px; color: var(--muted); }
.choice.is-off { opacity: 0.5; cursor: default; }

.checkout__form .check { display: flex; align-items: flex-start; gap: var(--space-5); color: var(--text); font-weight: 500; cursor: pointer; }
.checkout__form .check input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--accent); flex: none; }

.totals { display: grid; gap: var(--space-4); padding-top: var(--space-7); border-top: var(--border-hair) solid var(--line); font-variant-numeric: tabular-nums; }
.totals div { display: flex; justify-content: space-between; color: var(--muted); font-size: 14.5px; }
.totals .totals__sum { color: var(--text); font-weight: 800; font-size: 18px; padding-top: var(--space-3); }

.checkout-done { padding: var(--space-17) var(--space-14); max-width: 560px; display: grid; gap: var(--space-8); justify-items: start; }
.checkout-done p { color: var(--muted); }

@media (min-width: 900px) {
  .checkout { grid-template-columns: 1fr 420px; gap: var(--space-20); }
}

.account__user h2 { font-size: 24px; margin-top: var(--space-4); }
.account__user .room-actions { margin-top: var(--space-10); }
.account__danger:hover { color: var(--accent-bright); border-color: rgba(var(--accent-rgb), 0.5); }

/* Žetons stāv virs virsraksta, nevis tam pāri */
.plan__badge { position: static; align-self: flex-start; margin-bottom: var(--space-7); font-family: var(--font-label); }

/* ---------- Vairāku ierīču istaba (B1) ------------------------------- */
.join-self { max-width: 520px; margin: var(--space-12) auto 0; padding: var(--space-14) var(--space-12); }
.join-self .add-player { margin-bottom: var(--space-4); }

.room-qr {
  display: block;
  width: 148px;
  height: 148px;
  margin: var(--space-9) 0 0;
  border-radius: var(--radius-sm);
  background: var(--text);
  image-rendering: pixelated;
}

.room-offline {
  margin: 0 0 var(--space-9);
  padding: var(--space-5) var(--space-8);
  border-radius: var(--radius-md);
  border: var(--border-hair) solid var(--line-strong);
  background: var(--surface);
  color: var(--amber);
  font-size: 14px;
}

.player.is-away { opacity: 0.5; }
.player__tag { flex: none; font-size: 12px; color: var(--muted); }
/* Gatavība istabā: kartītē vieta vārdam, „tu” un gatavības pogai */
.players { grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr)); }
.player__name { min-width: 4ch; }
.player__ready {
  flex: none; min-height: 32px; padding: 0 var(--space-5); display: inline-flex; align-items: center;
  border: var(--border-hair) solid var(--line); background: transparent; color: var(--muted);
  font-family: var(--font-label); font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
}
button.player__ready { cursor: pointer; min-height: 44px; }
.player__ready.is-on { border-color: var(--cyber); background: var(--cyber); color: var(--on-bright); }
.player.is-ready { border-color: rgba(var(--cyber-rgb), 0.6); }
.ready-btn.is-ready { background: transparent; color: var(--cyber); border: var(--border-hair) solid var(--cyber); box-shadow: none; }
.player__x { min-width: 44px; min-height: 44px; margin: -11px -8px -11px 0; }
.respin__btn:disabled { opacity: 0.45; cursor: not-allowed; box-shadow: none; }

/* Koda rūtiņas: 375 px telefonā sešas 52 px rūtiņas neietilpa kartītē, tagad tās sarūk */
.code { gap: var(--space-4); }
.code input { flex: 1 1 0; min-width: 0; max-width: 52px; }
@media (max-width: 420px) {
  .room__card { padding-inline: var(--space-10); }
}

/* ---------- Administrācija (B3) -------------------------------------- */
.admin { padding-block: var(--space-20) var(--space-45); }
.admin #admin-login { margin: var(--space-20) auto 0; }
.admin__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: var(--space-8); margin-bottom: var(--space-11); }
.admin__actions { display: flex; flex-wrap: wrap; gap: var(--space-5); }
.admin__actions .btn { min-height: 44px; }
.admin__orders { display: grid; gap: var(--space-6); grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }

.admin-order {
  display: grid;
  gap: var(--space-4);
  padding: var(--space-8);
  border-radius: var(--radius-md);
  border: var(--border-hair) solid var(--line);
  background: var(--surface);
  font-size: 14px;
  min-width: 0;
}

.admin-order--off { opacity: 0.55; }
.admin-order__top { display: flex; justify-content: space-between; gap: var(--space-5); }
.admin-order__top span, .admin-order__items { color: var(--muted); }
.admin-order__who { overflow-wrap: anywhere; }
.admin-order__who a { color: var(--text); }
.admin-order__meta { display: flex; justify-content: space-between; gap: var(--space-5); }
.admin-order__status { display: flex; align-items: center; justify-content: space-between; gap: var(--space-5); color: var(--muted); }

.admin-order__status select {
  min-height: 44px;
  padding: 0 var(--space-6);
  border-radius: var(--radius-sm);
  border: var(--border-hair) solid var(--line-strong);
  background: var(--bg-deep);
  color: var(--text);
  font: inherit;
}

@media (max-width: 420px) {
  .admin__orders { grid-template-columns: 1fr; }
}

/* ---------- E-pastu saites un paroles atjaunošana (B2) -------------- */
/* Teksta saites kontu lapās: pieskāriena laukums telefonā vismaz 44 px */
.account__play { display: inline-flex; align-items: center; min-height: 44px; }
.account__form .account__play { justify-self: start; margin-top: 0; }
#news .btn, #to-login { margin-top: var(--space-6); min-height: 48px; }

/* B6: power-up loga avots. Gara saite telefonā pārlūzt, nevis izstumj logu platumā */
.pu-modal__source { overflow-wrap: anywhere; }

/* Spēles brīži (moments.js): „IEBILDUMS!” sprādziens virs loga. Kustību dara GSAP,
   šeit tikai forma un izmērs, krāsas un fonts no :root. Klikšķi iet cauri uz logu. */
.pu-burst-layer {
  position: fixed;
  inset: 0;
  z-index: 155;
  display: grid;
  place-items: center;
  overflow: hidden;
  pointer-events: none;
}

.pu-burst {
  display: grid;
  place-items: center;
  width: min(88vw, 420px);
  aspect-ratio: 1.45;
  background: var(--accent);
  clip-path: polygon(50.0% 0.0%, 58.2% 13.9%, 71.7% 5.0%, 74.9% 18.7%, 89.1% 18.8%, 83.3% 33.9%, 98.7% 38.9%, 90.0% 50.0%, 98.7% 61.1%, 83.3% 66.1%, 89.1% 81.2%, 74.9% 81.3%, 71.7% 95.0%, 58.2% 86.1%, 50.0% 100.0%, 41.1% 89.0%, 28.3% 95.0%, 26.9% 78.9%, 10.9% 81.2%, 14.0% 67.4%, 1.3% 61.1%, 13.0% 50.0%, 1.3% 38.9%, 14.0% 32.6%, 10.9% 18.8%, 26.9% 21.1%, 28.3% 5.0%, 41.1% 11.0%);
}

.pu-burst span {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(28px, 8.5vw, 46px);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--text);
}

@media (prefers-reduced-motion: reduce) {
  .pu-burst-layer { display: none; }
}

/* Verdikta zīmogs uzkrīt no 3x izmēra, „LAIKS!” un +30 s palielina visu taimera bloku:
   uz brīdi tas nedrīkst radīt horizontālo ritināšanu */
#speech-step, #verdict-step { overflow-x: clip; }

/* Galvenās pogas ēna nospiežot (tagad nav; tēma to iestata ar --shadow-press-active) */
.btn--primary:active { box-shadow: var(--shadow-press-active); }

/* =======================================================================
   B9: palīgklase un pieskāriena laukumi vismaz 44 px (izskats gandrīz nemainās)
   ======================================================================= */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* Logotips: lielāks laukums, mazais zīmols paliek savā vietā */
a.brand { min-width: 44px; min-height: 44px; }

/* LV/EN: caurspīdīga mala pagarina pogu par 4 px, fons (virs padding) paliek tāds pats */
.lang button { border-block: 2px solid transparent; margin-block: -2px; background-clip: padding-box; }

/* Tikai ikonu pogas galvenē: neredzams laukums ap pogu, pati poga nemainās */
.header .header__cart, .header .header__account { position: relative; overflow: visible; }
.header__cart::before, .header__account::before { content: ""; position: absolute; inset: -3px; }

/* LV/EN telefonā: ar caurspīdīgo malu poga ir 44 px, redzamais fons paliek 40 px */
@media (pointer: coarse) {
  .lang button { min-height: 44px; }
}

/* Teksta pogas: vismaz 44 px augsta (bija 38 līdz 42 px) */
.btn, .respin__btn { min-height: 44px; }
.header__right .btn--sm { min-height: 44px; }
.account__tabs button { min-height: 44px; }
.card-manual summary { padding-block: 11px; }
.account__play { min-width: 44px; }
@media (max-width: 420px) {
  /* sešas rūtiņas 375 px platumā: 42 px bija par šauru, ar šaurāku atstarpi paliek 44 px */
  .code { gap: 5px; }
}

/* Spēles kartīte: virsraksts ir īsta saite (tastatūrai un ekrāna lasītājam), peles klikšķi uz kartītes apstrādā app.js */
.game__link { color: inherit; }

/* =======================================================================
   v3: ARKĀDES TIESAS ZĀLE (melnraksts apskatei)
   Krāsas un fonti nāk no :root. Šeit tikai forma: robainie stūri (--notch), 2 px apmales,
   vājas CRT līnijas fonā, mono etiķetes un hromatiskais logo. Bez mirdzuma, bez gradientiem
   uz pogām, bez parādīšanās efekta sekcijām (CLAUDE.md 5).
   ======================================================================= */

/* CRT līnijas visā lapā: tikai faktūra */
body { background-image: repeating-linear-gradient(0deg, var(--scanline) 0 1px, transparent 1px 4px); }

/* Robainie stūri pogām un paneļiem */
.px, .btn, .card, .plan, .seat, .tip, .final, .wheel-result, .verdict-side, .pu-modal__box, .room__card,
.hub-banner, .cart-toast, .room__soon, .chip, .level__n, .plan__badge { clip-path: var(--notch); }
.card, .plan, .seat, .tip, .final { border-width: var(--border-hair); box-shadow: none; }

/* Fokuss: clip-path nogriež ārējo rāmi, tāpēc robainajiem elementiem rāmis iekšpusē */
.btn:focus-visible, .px:focus-visible, .chip:focus-visible { outline: var(--border-focus) solid var(--cyber); outline-offset: -6px; }
:focus-visible { outline-color: var(--cyber); }

/* Virsraksti: pikseļu fonts */
h1, h2, h3, h4, .section__title, .hub__title { font-family: var(--font-display); font-weight: 700; letter-spacing: 0.01em; }
.section__title { font-size: clamp(32px, 6vw, 56px); line-height: 1.02; }
.section__sub { color: var(--text-body); font-size: 18px; }
.eyebrow--pros { color: var(--side-pros); }
.eyebrow--def { color: var(--side-def); }
.eyebrow--violet { color: var(--violet-light); }

/* Logo: DEBATERIS ar hromatisko nobīdi (bez izplūduma) */
.brand__mark { display: none; }
.brand [data-brand], .footer .brand span {
  position: static; width: auto; height: auto; overflow: visible; clip-path: none; white-space: nowrap;
  font-family: var(--font-display); font-weight: 700; font-size: 24px; letter-spacing: 0.06em; color: var(--text);
  text-shadow: -2px 0 var(--chroma-a), 2px 0 var(--chroma-b);
}

/* Galvene: mono izvēlne, kvadrātiskas pogas */
.header { background: rgb(var(--scrim-rgb)); backdrop-filter: none; }
.room__soon:empty { display: none; }
.nav a { font-family: var(--font-label); font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text); }
.nav a:hover { color: var(--cyber); background: none; }
@media (min-width: 960px) { .nav { display: flex; } }
.header .btn--ghost { border-color: var(--line); }
.lang { padding: 0; gap: 0; border: var(--border-hair) solid var(--line); background: none; }
.lang button { min-height: 44px; min-width: 44px; padding: 0 var(--space-5); font-family: var(--font-label); font-size: 13px; font-weight: 700; color: var(--text); }
.lang button[aria-pressed="true"] { background: var(--cyber); color: var(--on-bright); }
.progress { background: var(--cyber); box-shadow: none; }

/* Pogas: mono etiķete; galvenā poga ar pikseļu fontu un iespiestu apakšmalu */
.btn { font-family: var(--font-label); font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; }
.btn--primary { font-family: var(--font-display); font-size: 20px; letter-spacing: 0.06em; border: 0; color: var(--on-press); }
.btn--primary.btn--sm { font-size: 16px; }
.btn--ghost { background: transparent; border: var(--border-hair) solid var(--violet); }
.btn--ghost:hover { background: rgba(var(--tint-rgb), 0.06); border-color: var(--violet-light); }

/* Ievades lauki: kvadrātiski, tumši, fokusā ciāns */
input:focus, .code input:focus, .add-player input:focus, .card-entry input:focus { border-color: var(--cyber); box-shadow: none; outline: none; }
.code input { height: 64px; font-family: var(--font-display); font-size: 32px; font-weight: 700; background: var(--bg); border: var(--border-hair) solid var(--cyber); color: var(--text); }
.chip { background: var(--bg); font-family: var(--font-label); text-transform: uppercase; letter-spacing: 0.08em; }

/* Kājene */
.footer { background: var(--bg-deep); }
.footer, .footer a, .footer__bottom { font-family: var(--font-label); }
.footer h4 { font-family: var(--font-label); color: var(--muted); }
.footer a { font-size: 13px; }

/* ---------- Sākumlapa --------------------------------------------- */

.arcade-strip {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: var(--space-4) var(--space-7);
  padding: var(--space-3) var(--space-8); background: var(--surface); border-bottom: var(--border-hair) solid var(--line);
  font-family: var(--font-label); font-size: 13px; letter-spacing: 0.06em; text-align: center;
}
.arcade-strip__tag { color: var(--cyber); font-weight: 700; text-transform: uppercase; }
.arcade-strip__cta {
  display: inline-flex; align-items: center; min-height: 36px; padding: 0 var(--space-6);
  background: var(--cyber); color: var(--on-bright); font-weight: 700; text-transform: uppercase;
}
@media (max-width: 600px) { .arcade-strip__cta { min-height: 44px; } }

.arcade-hero { position: relative; overflow: hidden; }
.arcade-sky { position: absolute; inset: 0; pointer-events: none; }
.arcade-star { position: absolute; left: var(--x); top: var(--y); width: 4px; height: 4px; background: var(--c, var(--text)); }
.arcade-star--dim { opacity: 0.6; }
.arcade-sprite { position: absolute; shape-rendering: crispEdges; image-rendering: pixelated; }

/* Tiesas zāle zem teksta: rezultātu tablo, tiesnesis, galds, āmurs (poga) un divas tribīnes */
.arcade-court { position: relative; height: 470px; margin-top: var(--space-16); }
.arcade-floor {
  position: absolute; left: 0; right: 0; bottom: 0; height: 200px; background-color: var(--bg-deep);
  border-top: var(--border-hair) solid var(--line);
  background-image: linear-gradient(var(--floor-grid) 1px, transparent 1px), linear-gradient(90deg, var(--floor-grid) 1px, transparent 1px);
  background-size: 48px 24px;
}
.court-score {
  position: absolute; left: 50%; bottom: 396px; translate: -50% 0; display: flex; align-items: center; gap: var(--space-5);
  padding: var(--space-4) var(--space-8); background: var(--bg-deep); border: 3px solid var(--line); clip-path: var(--notch);
  font-family: var(--font-label); font-weight: 700; font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; white-space: nowrap;
}
.court-score b { min-width: 1.2ch; font-family: var(--font-display); font-size: 26px; text-align: center; color: var(--text); }
.court-score b.is-up { animation: court-pop 420ms steps(4); }
.court-score i { font-style: normal; font-size: 22px; color: var(--muted); }
.court-score__side--pros { color: var(--side-pros); }
.court-score__side--def { color: var(--side-def); }
.court-judge { left: 50%; bottom: 282px; width: 112px; height: 84px; translate: -50% 0; }
.arcade-bench__top {
  position: absolute; left: 50%; bottom: 260px; width: 200px; height: 30px; translate: -50% 0;
  background: var(--surface-3); border: 4px solid var(--line);
}
.arcade-bench {
  position: absolute; left: 50%; bottom: 110px; width: min(560px, 50vw); height: 150px; translate: -50% 0;
  display: grid; place-items: center; background: var(--surface-2); border: 4px solid var(--line); box-shadow: inset 0 10px 0 var(--surface-3);
}
.arcade-bench__label { font-family: var(--font-label); font-weight: 700; font-size: 14px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--violet-light); }
.court-block { left: calc(50% + 130px); bottom: 260px; width: 60px; height: 18px; }
.court-gavel {
  position: absolute; left: calc(50% + 121px); bottom: 266px; width: 96px; height: 60px; padding: 0;
  background: none; border: 0; cursor: pointer; transform-origin: 96% 94%; transition: transform 140ms var(--e-out, ease-out);
}
.court-gavel::before { content: ""; position: absolute; inset: -10px; }
.court-gavel svg { position: static; display: block; width: 100%; height: 100%; }
.court-gavel:hover { transform: rotate(10deg); }
.court-gavel:focus-visible { outline: 3px solid var(--cyber); outline-offset: 8px; }
.court-bam {
  position: absolute; left: calc(50% + 160px); bottom: 284px; width: 8px; height: 8px; opacity: 0; pointer-events: none;
  background: #fff;
  box-shadow: -30px -4px 0 #fff, 30px -4px 0 #fff, -20px -22px 0 #fff, 20px -22px 0 #fff, 0 -32px 0 #fff,
    -40px 8px 0 var(--side-pros), 40px 8px 0 var(--cyber);
}
.arcade-podium {
  --c: var(--side-pros); --c-rgb: var(--side-pros-rgb);
  position: absolute; bottom: 90px; width: min(180px, 20vw); height: 130px; display: grid; place-items: center;
  background: var(--surface-2); border: 4px solid var(--line); border-top: 12px solid var(--c); transition: box-shadow 200ms;
}
.arcade-podium--pros { left: max(2%, calc(50% - 560px)); }
.arcade-podium--def { --c: var(--side-def); --c-rgb: var(--side-def-rgb); right: max(2%, calc(50% - 560px)); }
.arcade-podium__sprite { left: 50%; bottom: calc(100% + 16px); width: 56%; height: auto; translate: -50% 0; transition: opacity 200ms, filter 200ms; }
.arcade-podium__label { font-family: var(--font-label); font-weight: 700; font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--c); }
.court-win {
  position: absolute; left: 50%; bottom: calc(100% + 130px); translate: -50% 0; padding: var(--space-3) var(--space-6);
  background: var(--c); color: var(--on-bright); clip-path: var(--notch); white-space: nowrap;
  font-family: var(--font-display); font-weight: 800; font-size: 18px; text-transform: uppercase;
  opacity: 0; scale: 0.4; transition: opacity 160ms, scale 240ms cubic-bezier(0.3, 1.6, 0.5, 1);
}
.arcade-court[data-winner="pros"] .arcade-podium--pros,
.arcade-court[data-winner="def"] .arcade-podium--def { box-shadow: 0 0 0 4px rgba(var(--c-rgb), 0.35), 0 -20px 48px rgba(var(--c-rgb), 0.3); }
.arcade-court[data-winner="pros"] .arcade-podium--pros .court-win,
.arcade-court[data-winner="def"] .arcade-podium--def .court-win { opacity: 1; scale: 1; }
.arcade-court[data-winner="pros"] .arcade-podium--pros .arcade-podium__sprite,
.arcade-court[data-winner="def"] .arcade-podium--def .arcade-podium__sprite { animation: court-jump 520ms steps(4) 2; }
.arcade-court[data-winner="pros"] .arcade-podium--def .arcade-podium__sprite,
.arcade-court[data-winner="def"] .arcade-podium--pros .arcade-podium__sprite { opacity: 0.35; filter: grayscale(1); }
.arcade-court.is-striking .court-gavel { animation: court-strike 700ms cubic-bezier(0.5, 0, 0.3, 1); }
.arcade-court.is-striking .court-bam { animation: court-bam 360ms steps(3) 380ms; }
.arcade-court.is-striking .arcade-bench,
.arcade-court.is-striking .arcade-bench__top,
.arcade-court.is-striking .court-block,
.arcade-court.is-striking .court-judge { animation: court-shake 240ms steps(4) 380ms; }
@keyframes court-strike {
  0% { transform: rotate(0); } 35% { transform: rotate(32deg); } 55% { transform: rotate(-8deg); }
  70% { transform: rotate(-4deg); } 100% { transform: rotate(0); }
}
@keyframes court-bam { 0% { opacity: 1; scale: 0.6; } 100% { opacity: 0; scale: 1.7; } }
@keyframes court-shake {
  0%, 100% { transform: none; } 25% { transform: translate(-3px, 2px); }
  50% { transform: translate(3px, -1px); } 75% { transform: translate(-2px, 1px); }
}
@keyframes court-jump { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-22px); } }
@keyframes court-pop { 0% { scale: 1.8; color: var(--cyber); } 100% { scale: 1; } }
@media (prefers-reduced-motion: reduce) {
  .arcade-court *, .arcade-court.is-striking * { animation: none !important; transition: none !important; }
}

.arcade-hero__copy {
  position: relative; max-width: 760px; margin: 0 auto; padding: var(--space-28) var(--space-12) 0;
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: var(--space-9);
}
.arcade-kicker { margin: 0; font-family: var(--font-label); font-size: 13px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); }
.arcade-logo {
  margin: 0; font-family: var(--font-display); font-weight: 700; font-size: clamp(48px, 13vw, 128px); line-height: 1;
  letter-spacing: 0.04em; text-shadow: -5px 0 var(--chroma-a), 5px 0 var(--chroma-b);
}
.arcade-hero__line { margin: 0; max-width: 560px; font-size: 20px; line-height: 1.5; color: var(--text-body); }
.arcade-join {
  margin-top: var(--space-7); padding: var(--space-11); display: flex; flex-direction: column; align-items: center;
  gap: var(--space-7); background: var(--surface); border: var(--border-hair) solid var(--line);
}
.arcade-join__label { font-family: var(--font-label); font-size: 13px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--cyber); }
.arcade-join__row { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-4); }
.arcade-code { margin: 0; gap: var(--space-4); }
.arcade-code input { width: 52px; max-width: 52px; }
.arcade-play { min-height: 64px; padding: 0 var(--space-13); font-size: 26px; }
.arcade-join.is-wrong .code { animation: shake 420ms var(--e-in-out); }
.arcade-hero .code-error { margin: 0; }
.arcade-hero__note { margin: 0; font-family: var(--font-label); font-size: 12px; color: var(--muted); }
.arcade-links { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-6); }

@media (max-width: 700px) {
  .arcade-hero__copy { padding: var(--space-20) var(--space-8) 0; }
  .arcade-hero__line { font-size: 17px; }
  .arcade-join { width: 100%; padding: var(--space-9) var(--space-7); }
  .arcade-join__row { flex-direction: column; align-items: stretch; width: 100%; }
  .arcade-code { width: 100%; gap: var(--space-3); }
  .arcade-code input { flex: 1 1 0; width: 100%; min-width: 0; max-width: none; height: 60px; font-size: 30px; }
  .arcade-play { width: 100%; min-height: 62px; font-size: 28px; }
  .arcade-court { height: 310px; margin-top: var(--space-12); }
  .arcade-floor { height: 150px; background-size: 32px 16px; }
  .court-score { bottom: 262px; gap: var(--space-3); padding: var(--space-3) var(--space-5); font-size: 10px; }
  .court-score b { font-size: 18px; }
  .court-score i { font-size: 16px; }
  .court-judge { bottom: 168px; width: 64px; height: 48px; }
  .arcade-bench__top { bottom: 156px; width: 96px; height: 18px; border-width: 3px; }
  .arcade-bench { bottom: 70px; width: 42vw; height: 90px; border-width: 3px; box-shadow: inset 0 6px 0 var(--surface-3); }
  .arcade-bench__label { font-size: 10px; letter-spacing: 0.1em; }
  .court-block { left: calc(50% + 40px); bottom: 160px; width: 36px; height: 11px; }
  .court-gavel { left: calc(50% + 35px); bottom: 165px; width: 58px; height: 36px; }
  .court-bam { left: calc(50% + 58px); bottom: 176px; scale: 0.6; }
  .arcade-podium { bottom: 56px; width: 25vw; height: 80px; border-width: 3px; border-top-width: 8px; }
  .arcade-podium--pros { left: 3%; }
  .arcade-podium--def { right: 3%; }
  .arcade-podium__sprite { width: 60%; bottom: calc(100% + 8px); }
  .arcade-podium__label { font-size: 10px; letter-spacing: 0.08em; }
  .court-win { bottom: calc(100% + 66px); padding: var(--space-2) var(--space-4); font-size: 12px; }
}

/* Sākumlapā sadaļu virsrakstiņi ir daļa no maketa (citās lapās tie paliek paslēpti) */
.arcade-home #lomas > .eyebrow, .arcade-home #veikals > .eyebrow { display: inline-flex; }

/* Lomas kā tēli */
.roles { display: grid; gap: var(--space-11); grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); margin-top: var(--space-20); align-items: stretch; }
.seat--judge { margin: 0; }
.seat, .seat--pros, .seat--def, .seat--judge {
  text-align: left; padding: var(--space-13); display: flex; flex-direction: column; gap: var(--space-7);
  background: var(--surface); border: var(--border-hair) solid var(--line);
}
.seat--pros { border-color: var(--side-pros); }
.seat--def { border-color: var(--side-def); }
.seat--judge { border-color: var(--side-judge); }
.seat__head { display: flex; justify-content: space-between; align-items: flex-start; gap: var(--space-6); }
.seat__sprite { height: 84px; width: auto; shape-rendering: crispEdges; }
.seat__tag { font-size: 12px; letter-spacing: 0.14em; }
.seat--pros .seat__tag, .seat--pros .seat__skill { color: var(--side-pros); }
.seat--def .seat__tag, .seat--def .seat__skill { color: var(--side-def); }
.seat--judge .seat__tag, .seat--judge .seat__skill { color: var(--violet-light); }
.seat h3, .seat--pros h3, .seat--def h3 { margin: 0; font-size: clamp(30px, 4vw, 38px); color: var(--text); }
.seat p { color: var(--text-body); line-height: 1.55; }
.seat__skill { margin-top: 0; padding-top: 0; border-top: 0; font-family: var(--font-label); font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }
.arcade-note { margin-top: var(--space-12); font-family: var(--font-label); font-size: 13px; color: var(--muted); }
.arcade-note span:first-child { text-transform: uppercase; }

/* 5 soļi kā spēles karte: kartītes savieno pikseļu ceļš, verdikts ir fināls */
.arcade-band { background: var(--bg-deep); border-block: var(--border-hair) solid var(--line); }
.levels {
  list-style: none; margin: var(--space-22) 0 0; padding: 0; display: grid; gap: var(--space-11);
  grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr));
}
.level {
  --c: var(--cyber);
  position: relative; display: flex; flex-direction: column; gap: var(--space-5); padding: var(--space-9);
  background: var(--surface); border: var(--border-hair) solid var(--line); border-top: 6px solid var(--c);
}
.level:nth-child(2) { --c: var(--violet); }
.level:nth-child(3) { --c: var(--side-pros); }
.level:nth-child(4) { --c: var(--cyber); }
.level:nth-child(5) { --c: var(--side-pros); border-color: var(--side-pros); box-shadow: 6px 6px 0 rgba(var(--side-pros-rgb), 0.35); }
.level:not(:last-child)::after {
  content: ""; position: absolute; top: 44px; left: 100%; width: var(--space-11);
  border-top: 4px dashed var(--line);
}
.level__n {
  display: grid; place-items: center; width: 56px; height: 56px; margin-bottom: var(--space-3);
  background: var(--c); color: var(--on-bright); font-family: var(--font-display); font-weight: 800; font-size: 30px; line-height: 1;
}
.level__title { font-family: var(--font-display); font-weight: 700; font-size: 24px; }
.level__text { line-height: 1.5; color: var(--text-body); }
@media (min-width: 900px) { .levels { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--space-9); } .level:not(:last-child)::after { width: var(--space-9); } }
@media (max-width: 899px) { .level:not(:last-child)::after { display: none; } }


/* Veikals */
.plans { grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); }
.plan { padding: var(--space-14); gap: var(--space-8); background: var(--surface); border: var(--border-hair) solid var(--violet); }
.plan--main { border-color: var(--side-pros); }
.plan h3 { font-size: 34px; }
.plan__badge { background: var(--side-pros); color: var(--on-bright); font-size: 12px; }
.plan__media { min-height: 150px; }
.plan__badge--empty { visibility: hidden; }
.plan__badge--empty::before { content: "."; }
/* Kastes karte: maza kastes makete tā paša dizainā kā īstā kaste */
.plan__box { display: grid; place-items: center; min-height: 190px; background: var(--bg); border: var(--border-hair) solid var(--line); perspective: 900px; }
.minibox { position: relative; width: 104px; height: 144px; transform: rotateX(6deg) rotateY(-26deg); transform-style: preserve-3d; }
.minibox__front {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  overflow: hidden; background: var(--bg-deep); border: 2px solid var(--line);
}
.minibox__mark { display: grid; place-items: center; width: 48px; height: 48px; background: #d8125b; color: #fff; clip-path: var(--notch); }
.minibox__mark .ico { width: 32px; height: 32px; }
.minibox__name { font-family: var(--font-pixel); font-weight: 700; font-size: 15px; color: var(--text); text-shadow: 2px 2px 0 #d8125b; }
.minibox__stripe { position: absolute; left: 0; right: 0; bottom: 0; height: 8px; background: linear-gradient(90deg, var(--side-pros) 0 33.3%, var(--cyber) 33.3% 66.6%, #8c70ff 66.6%); }
.minibox__side { position: absolute; top: 0; left: 100%; width: 28px; height: 100%; background: var(--surface-2); border: 2px solid var(--line); transform-origin: left center; transform: rotateY(90deg); }
.plan__code {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--space-2);
  background: var(--bg); border: var(--border-hair) solid var(--line);
}
.plan__code span { font-family: var(--font-label); font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); }
.plan__code strong {
  font-family: var(--font-display); font-weight: 700; font-size: clamp(40px, 9vw, 56px); letter-spacing: 0.1em;
  text-shadow: -3px 0 var(--chroma-a), 3px 0 var(--chroma-b);
}
.plan__price { font-size: 52px; font-weight: 700; margin: 0; }
.plan__price-note { color: var(--muted); }
.plan li { color: var(--text-body); }
.plan li::before { content: "▸"; color: var(--accent-bright); }
.plan__note { color: var(--muted); font-family: var(--font-label); font-size: 13px; }

/* ---------- Spēles ekrāni ----------------------------------------- */

.room-code {
  font-family: var(--font-display); font-weight: 700; color: var(--text); -webkit-text-fill-color: currentColor;
  text-shadow: -3px 0 var(--chroma-a), 3px 0 var(--chroma-b);
}
.timer { font-family: var(--font-display); font-weight: 700; }
.player { box-shadow: none; border-left: 6px solid var(--c, var(--accent-bright)); }
.player__avatar, .pu-who__avatar { color: var(--on-bright); font-family: var(--font-display); }
.wheel__halo { display: none; }
.wheel__pointer { background: var(--accent-bright); filter: none; }
.wheel-cat { text-shadow: none; }
.verdict-stamp { font-family: var(--font-display); font-weight: 700; box-shadow: none; }

/* Power-up logs: tumšs aizklājums, iebildumam ātruma svītras */
.pu-modal { background: rgba(var(--scrim-rgb), 0.94); backdrop-filter: none; }
.pu-modal--objection { background-image: repeating-linear-gradient(90deg, rgba(var(--side-pros-rgb), 0.14) 0 2px, transparent 2px 22px); }
.pu-modal__box { background: var(--surface); border: var(--border-hair) solid var(--line); }
.pu-modal__title { font-family: var(--font-display); font-weight: 700; font-size: 28px; }
.pu-modal__kicker {
  display: flex; justify-content: space-between; font-family: var(--font-label); font-size: 12px; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted);
}
.pu-side--pros { color: var(--side-pros); }
.pu-side--def { color: var(--side-def); }

/* IEBILDUMS! balta pikseļu plāksne (tāda pati arī moments.js sprādzienā) */
.pu-plate, .pu-burst {
  padding: var(--space-11) var(--space-5); background: var(--text); color: var(--on-bright); text-align: center;
  clip-path: var(--notch); rotate: -4deg;
}
.pu-plate span, .pu-burst span {
  font-family: var(--font-display); font-weight: 700; font-size: clamp(36px, 11vw, 50px); letter-spacing: 0.04em;
  text-transform: uppercase; color: var(--on-bright); text-shadow: -3px 0 var(--chroma-a), 3px 0 var(--chroma-b);
}
.pu-burst { aspect-ratio: auto; width: min(88vw, 420px); }
.pu-who {
  justify-self: center; display: inline-flex; align-items: center; gap: var(--space-6); padding: var(--space-3) var(--space-7) var(--space-3) var(--space-3);
  border: var(--border-hair) solid var(--side-def); font-family: var(--font-label); font-size: 14px; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
}
.pu-who--pros { border-color: var(--side-pros); }
.pu-who__avatar {
  display: grid; place-items: center; width: 36px; height: 36px; background: var(--side-def); font-size: 20px; font-weight: 700;
}
.pu-who--pros .pu-who__avatar { background: var(--side-pros); }
.pu-modal__timer { font-family: var(--font-display); font-size: 72px; }
.pu-blocks { display: grid; grid-template-columns: repeat(15, minmax(0, 1fr)); gap: 3px; }
.pu-blocks span { height: 14px; background: var(--cyber); }
.pu-blocks span.is-off { background: var(--line); }

/* Verdikts: hromatisks virsraksts, uzvarētāja puse aizpildīta */
.verdict-title { font-size: clamp(40px, 11vw, 72px); line-height: 1; text-transform: uppercase; text-shadow: -3px 0 var(--chroma-a), 3px 0 var(--chroma-b); }
.verdict-scores { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 560px; margin-inline: auto; }
.verdict-side { min-width: 0; text-align: left; padding: var(--space-8) var(--space-5); background: var(--surface); border: var(--border-hair) solid var(--line); }
.verdict-side strong { display: block; font-family: var(--font-display); font-weight: 700; font-size: clamp(56px, 16vw, 76px); line-height: 1; color: var(--muted); }
.verdict-side > span:first-child { font-family: var(--font-label); font-size: 12px; font-weight: 700; letter-spacing: 0.14em; }
.verdict-side--pros > span:first-child { color: var(--side-pros); }
.verdict-side--def > span:first-child { color: var(--side-def); }
.verdict-side .verdict-side__name { display: block; margin-top: var(--space-1); font-family: var(--font-body); font-size: 15px; font-weight: 700; letter-spacing: 0; text-transform: none; color: var(--muted); }
.verdict-side.is-win { box-shadow: none; border-color: transparent; }
.verdict-side--pros.is-win { background: var(--side-pros); }
.verdict-side--def.is-win { background: var(--side-def); }
.verdict-side.is-win strong, .verdict-side.is-win > span, .verdict-side.is-win .verdict-side__name { color: var(--on-bright); }
.verdict-meta { font-family: var(--font-label); font-size: 12px; text-transform: uppercase; letter-spacing: 0.1em; text-align: center; margin-inline: auto; }

/* Rata disks griežoties ir pagriezts kvadrāts: tā stūri (neredzami, rats ir aplis) telefonā
   izkāpa ārpus ekrāna un radīja horizontālo ritināšanu (bija jau pirms v3) */
#wheel-step { overflow-x: clip; }
/* Šaurā telefonā galvenē ietilpst logo, valoda un viena poga */
@media (max-width: 420px) {
  .brand [data-brand] { font-size: 17px; letter-spacing: 0.02em; text-shadow: -1px 0 var(--chroma-a), 1px 0 var(--chroma-b); }
  .header__right { gap: var(--space-3); }
  .header .btn--sm { padding-inline: var(--space-5); font-size: 12px; letter-spacing: 0.02em; }
}
.verdict-stamp { text-transform: uppercase; }
/* Pieskāriena laukumi telefonā vismaz 44 px (daļa bija par maziem jau pirms v3) */
.brand { min-height: 44px; display: inline-flex; align-items: center; }
.header__right .btn--sm, .header__cart, .header__account { min-height: 44px; min-width: 44px; }
.account__tabs button { min-height: 44px; font-family: var(--font-label); font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; }
@media (max-width: 420px) {
  .room .code { gap: var(--space-2); }
  .room .code input { min-width: 44px; }
}

/* Nauda vienmēr salasāmā fontā: pikseļu fontā € izskatās kā 0 */
.plan__price, .totals, .cart-line__sum, .cart-line__info span, .choice strong {
  font-family: "Lexend", system-ui, sans-serif;
  font-variant-numeric: tabular-nums;
}
.plan__price { font-weight: 700; letter-spacing: -0.02em; }

/* ---------- B13: juridiskās lapas, kases piekrišanas ---------------------- */
@media (min-width: 720px) {
  .footer__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1000px) {
  .footer__grid { grid-template-columns: 1.4fr repeat(4, 1fr); }
}
.checkout__form .check a,
.legal a:not(.btn):not(.account__play) { color: var(--accent-bright); text-decoration: underline; text-underline-offset: 3px; }
.shop-banner { margin: var(--space-7) 0 var(--space-10); padding: var(--space-5) var(--space-7); border: var(--border-hair) solid var(--amber); border-radius: var(--r-sm); color: var(--amber-light); font-size: 14px; }
.seller-note { color: var(--muted); font-size: 13px; margin: 0; }
.seller-note:empty { display: none; }
.legal ol { padding-left: var(--space-10); display: grid; gap: var(--space-3); }
.legal ol li { color: var(--text-body); max-width: 64ch; }
.legal__facts { display: grid; grid-template-columns: max-content 1fr; gap: var(--space-3) var(--space-10); margin: var(--space-7) 0 0; }
.legal__facts dt { color: var(--muted); font-size: 14px; }
.legal__facts dd { margin: 0; color: var(--text); overflow-wrap: anywhere; }
.legal .todo { color: var(--amber-light); font-family: var(--f-body); font-size: 0.92em; }
.legal__table { overflow-x: auto; margin-top: var(--space-5); border: var(--border-hair) solid var(--line); border-radius: var(--r-sm); }
.legal__table table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 14px; }
.legal__table th, .legal__table td { text-align: left; vertical-align: top; padding: var(--space-5) var(--space-7); border-bottom: var(--border-hair) solid var(--line); color: var(--text-body); }
.legal__table th { color: var(--muted); font-weight: 600; font-size: 13px; }
.legal__table tr:last-child td { border-bottom: 0; }
.legal__table code, .legal code { font-size: 13px; color: var(--text); }
.legal__form { margin-top: var(--space-5); padding: var(--space-10); border: var(--border-hair) dashed var(--line-strong); border-radius: var(--r-sm); }
.legal__form p { margin: 0 0 var(--space-5); }
.legal__back { margin-top: var(--space-17); }
@media (max-width: 560px) {
  .legal__facts { grid-template-columns: 1fr; gap: 2px; }
  .legal__facts dd { margin-bottom: var(--space-5); }
}
@media print {
  .header, .footer, .legal__back, [data-print], .room-note { display: none !important; }
  body, .legal p, .legal li, .legal h1, .legal h2 { background: #fff !important; color: #000 !important; }
}

/* ---------- B14: lasāms fonts. Pikseļu fonts tikai zīmola vārdam ------------- */
.brand, .arcade-logo { font-family: var(--font-pixel); }
/* taimeri: vienāda platuma cipari, lai skaitlis nelēkā */
.timer, .case__time, .pu-modal__timer, .pulse__btn strong { font-family: var(--font-label); }


/* ---------- B16.2: digitālā pieeja ---------------------------------------- */
.room__host { display: grid; gap: var(--space-5); margin-top: var(--space-13); }
.room__host .room-note { margin: 0 auto; }
.room__host > .btn { min-height: 48px; }
.room__access { display: grid; gap: var(--space-5); padding: var(--space-6) var(--space-8); border-radius: var(--radius-md); border: var(--border-hair) solid var(--line-strong); color: var(--text-body); font-size: 14px; text-align: left; }
.room__access .btn { min-height: 44px; }
.account__access strong { color: var(--text); }
.admin-access { margin-top: var(--space-20); }
.admin-access__form { max-width: 520px; margin-top: var(--space-8); }
.admin-access__form select { min-height: 48px; padding: 0 var(--space-8); border-radius: var(--radius-md); border: var(--border-hair) solid var(--line-strong); background: var(--bg-deep); color: var(--text); font: inherit; }
.admin-access .admin__orders { margin-top: var(--space-8); }
.admin-order .btn { justify-self: start; min-height: 44px; }

/* ---------- B16.3: Ko saka dati, žūrijas pulss pēc runām, datu viktorīna ---------- */
:root { --quiz-wrong-bg: rgba(245, 165, 36, 0.12); }  /* --amber ar caurspīdību */
.data-card { max-width: 620px; margin: var(--space-10) auto 0; padding: var(--space-12); text-align: left; }
.data-card > .room-note { margin-top: var(--space-4); }
.data-jury { margin: var(--space-6) 0 var(--space-8); font-family: var(--font-display); font-size: 21px; font-weight: 700; line-height: 1.3; color: var(--text-strong); }
.data-survey { margin-top: var(--space-12); padding-top: var(--space-10); border-top: var(--border-hair) solid var(--line); }
.data-survey p { margin: var(--space-4) 0 0; color: var(--text); font-size: 17px; line-height: 1.45; overflow-wrap: anywhere; }
.data-source, .pu-modal__source { overflow-wrap: anywhere; }
.data-survey .data-source { font-size: 13.5px; color: var(--muted); }
.data-link { color: var(--accent-bright); text-decoration: underline; text-underline-offset: 3px; }
.data-count { font-variant-numeric: tabular-nums; }
.jury-votes { display: grid; gap: var(--space-6); margin-top: var(--space-8); }
.jury-vote { display: grid; grid-template-columns: minmax(0, 1fr) 1fr 1fr; gap: var(--space-4); align-items: stretch; }
.jury-vote__name { align-self: center; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding-left: var(--space-4); border-left: 4px solid var(--c, var(--line-strong)); font-weight: 700; }
.jury-vote .pulse__btn { min-height: 48px; padding: var(--space-4); place-items: center; text-align: center; font-size: 14px; }
.pulse__btn--pros.is-on { border-color: var(--side-pros); background: rgba(var(--side-pros-rgb), 0.16); }
.pulse__btn--def.is-on { border-color: var(--side-def); background: rgba(var(--side-def-rgb), 0.16); }
@media (max-width: 420px) {
  .jury-vote { grid-template-columns: 1fr 1fr; }
  .jury-vote__name { grid-column: 1 / -1; }
}

.quiz-q { max-width: 680px; margin-left: auto; margin-right: auto; overflow-wrap: anywhere; }
.quiz-who { display: flex; flex-wrap: wrap; gap: var(--space-4); align-items: center; justify-content: center; margin: var(--space-8) 0 0; }
.quiz-who .hub__kicker { width: 100%; text-align: center; }
.quiz-who__btn { min-height: 44px; padding: 0 var(--space-8); border: var(--border-hair) solid var(--line-strong); border-radius: var(--radius-md); background: var(--bg-deep); color: var(--text); font: inherit; font-weight: 600; cursor: pointer; transition: border-color 0.15s ease, scale 0.12s ease-out; }
.quiz-who__btn.is-on { border-color: var(--violet-light); background: rgba(var(--tint-rgb), 0.08); }
.quiz-who__btn.is-done::after { content: " ✓"; color: var(--cyber); }
.quiz-who__btn:active { scale: 0.96; }
.quiz-opts { display: grid; gap: var(--space-5); max-width: 620px; margin: var(--space-10) auto 0; }
.quiz-opt { display: flex; gap: var(--space-6); align-items: center; min-height: 56px; padding: var(--space-5) var(--space-7); border: var(--border-hair) solid var(--line-strong); border-radius: var(--radius-md); background: var(--bg-deep); color: var(--text); font: inherit; font-size: 16px; text-align: left; cursor: pointer; transition: border-color 0.15s ease, background-color 0.15s ease, scale 0.12s ease-out; }
.quiz-opt span:last-child { min-width: 0; overflow-wrap: anywhere; }
.quiz-opt:active:not(:disabled) { scale: 0.96; }
.quiz-opt:disabled { cursor: default; }
.quiz-opt__key { flex: none; display: grid; place-items: center; width: 32px; height: 32px; border: var(--border-hair) solid currentColor; font-family: var(--font-label); font-weight: 700; }
.quiz-opt.is-picked { border-color: var(--violet-light); background: rgba(var(--tint-rgb), 0.08); }
.quiz-opt.is-right { border-color: var(--cyber); background: rgba(var(--cyber-rgb), 0.16); color: var(--text-strong); }
.quiz-opt.is-wrong { border-color: var(--amber); background: var(--quiz-wrong-bg); }
.quiz-score { list-style: none; max-width: 420px; margin: var(--space-10) auto 0; padding: 0; display: grid; gap: var(--space-3); }
.quiz-score li { display: flex; justify-content: space-between; gap: var(--space-6); padding: var(--space-5) var(--space-7); border: var(--border-hair) solid var(--line); background: var(--surface); }
.quiz-score strong { font-variant-numeric: tabular-nums; white-space: nowrap; }
#data-step .turn-topic, #quiz-step .data-jury, #quiz-step .data-source { text-align: center; }

/* ---------- B16.8: 404 lapa (arkādes stilā, istabas koda ievade) ---------- */
.arcade-hero--404 { padding-bottom: var(--space-28); }
.nf__title { margin: 0; font-size: clamp(26px, 6vw, 40px); line-height: 1.2; }

/* ---------- B16.5: pieejamība un kvalitāte (skip link, fokuss, vestibils, juridiskās lapas EN) ---------- */
.skip-link {
  position: absolute; left: var(--space-6); top: var(--space-6); z-index: 100;
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 var(--space-8);
  background: var(--surface); color: var(--text); border: var(--border-hair) solid var(--cyber);
  font-family: var(--font-label); font-size: 13px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  transform: translateY(-200%);
}
.skip-link:focus, .skip-link:focus-visible { transform: none; }
main[tabindex="-1"]:focus { outline: none; }
/* Koda lodziņiem jau ir tirkīza apmale, tāpēc fokusam vajag atsevišķu rāmi */
.code input:focus-visible { outline: var(--border-focus) solid var(--text); outline-offset: 3px; }
/* Tirkīzai pogai tirkīzs fokusa rāmis nebija redzams; .px clip-path nogriež visu ārpusē, tāpēc tumšs rāmis iekšā */
.arcade-strip__cta:focus-visible { outline: var(--border-focus) solid var(--on-bright); outline-offset: -5px; }
/* Vestibils telefonā: „tu” vai „nav tīklā” zem vārda, lai garš vārds paliek redzams */
.player__who { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.player__who .player__name { flex: none; min-width: 0; }
.player__who .player__tag { line-height: 1.2; }
/* Juridiskās lapas ir tikai latviski: EN režīmā to pasaka */
.legal__lang { display: none; }
html[lang="en"] .legal__lang { display: block; margin-bottom: var(--space-4); }

/* ---------- Rats B „Šova tablo” (31.10., design/rats-izvele) ----------------
   Pilnas kategoriju krāsas ar svītrām, spuldzīšu gredzens, tumšas etiķetes ar nogrieztiem
   stūriem, glitch uzraksti (tirkīzs pa kreisi, rozā pa labi kā logo), āmurs kā rādītājs. */
.wheel { width: min(540px, 88vw); }
.wheel__frame { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.wheel__frame svg { width: 100%; height: auto; display: block; overflow: visible; }
.wheel__frame-out { fill: var(--bg-deep); }
.wheel__frame-ring { fill: #111a33; stroke: var(--text); stroke-width: 4; }
.wheel__bulb { fill: var(--text); }
.wheel__bulb--dim { fill: #3b4f8f; }
.wheel__disc { z-index: 1; }
.wheel__seg { fill-opacity: 1; stroke: none; transition: opacity 420ms var(--e-out); }
.wheel__seg-tex, .wheel__seg-band { pointer-events: none; transition: opacity 420ms var(--e-out); }
.wheel__seg-band { fill: #0a0f1f; fill-opacity: 0.18; }
.wheel__spoke { stroke: #0a0f1f; stroke-opacity: 1; stroke-width: 6; }
.wheel__icon { fill: none; stroke: #0a0f1f; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.wheel__plate { fill: #0a0f1f; }
.wheel__label { fill: none; transition: opacity 420ms var(--e-out); }
.wheel__text {
  font-family: var(--font-display); font-weight: 800; font-size: 15px; letter-spacing: 0.12em;
  text-anchor: middle; dominant-baseline: middle; fill: var(--text);
}
.wheel__text--a, .wheel__text--b { mix-blend-mode: screen; opacity: 0.85; transition: transform 180ms var(--e-out); }
.wheel__text--a { fill: var(--cyber); transform: translateX(-1.6px); }
.wheel__text--b { fill: var(--side-pros); transform: translateX(1.6px); }
.wheel__disc.is-spinning .wheel__label { opacity: 0.7; }
.wheel__disc.is-spinning .wheel__text--a { transform: translateX(-4px); }
.wheel__disc.is-spinning .wheel__text--b { transform: translateX(4px); }
.wheel__disc.has-result [data-seg]:not(.is-won), .wheel__disc.has-result .wheel__label:not(.is-won) { opacity: 0.35; }
.wheel__hub { fill: var(--bg-deep); stroke: #2a3a6e; stroke-width: 3; }
.wheel__hub-ring { fill: none; stroke: var(--side-pros); stroke-opacity: 0.4; stroke-width: 2; stroke-dasharray: 3 5; }
.wheel__hub-mark { stroke: var(--text); stroke-width: 1.5; }
.wheel__hub-mark--a { stroke: var(--cyber); opacity: 0.85; mix-blend-mode: screen; translate: -1.6px 0; }
.wheel__hub-mark--b { stroke: var(--side-pros); opacity: 0.85; mix-blend-mode: screen; translate: 1.6px 0; }
.wheel__hub-fixed { width: 24%; }
.wheel__pointer {
  top: -6%; width: 15%; height: auto; background: none; clip-path: none; filter: none; aspect-ratio: 80 / 70;
}
.wheel__pointer svg { width: 100%; height: auto; display: block; overflow: visible; }
/* Griežoties spuldzītes skrien pa apli; apstājoties mirgo uzvarētāja krāsā */
.wheel.is-spinning .wheel__bulb { animation: wheel-chase 0.72s steps(1) infinite; animation-delay: calc(var(--i) * -0.03s); }
.wheel.is-done .wheel__bulb { animation: wheel-win 0.32s steps(1) 6; }
@keyframes wheel-chase { 0% { fill: var(--text); } 50% { fill: #3b4f8f; } }
@keyframes wheel-win { 0% { fill: var(--win, var(--text)); } 50% { fill: #3b4f8f; } }
@media (prefers-reduced-motion: reduce) {
  .wheel.is-spinning .wheel__bulb, .wheel.is-done .wheel__bulb { animation: none; }
  .wheel__text--a, .wheel__text--b { transition: none; }
}


.wheel__seg.is-won { fill-opacity: 1; }

/* Rata tapiņas un skaņas poga galvenē */
.wheel__peg { fill: var(--text); stroke: #0a0f1f; stroke-width: 2; }
.sound-btn { min-width: 44px; min-height: 44px; padding: 0 var(--space-5); display: inline-flex; align-items: center; justify-content: center; }
.sound-btn .ico { width: 20px; height: 20px; }
.sound-btn[aria-pressed="false"] { color: var(--muted); }

/* Taimera „bumba”: pēdējās 10 s zem cipariem izdeg deglis ar dzirksti, pēdējās 3 s pulsē ātrāk */
.timer { position: relative; }
.timer.is-hot::after, .timer.is-hot::before {
  content: ""; position: absolute; bottom: -18px; pointer-events: none;
}
.timer.is-hot::after {
  left: calc(50% - min(210px, 40%)); height: 6px; border-radius: 3px;
  width: calc(min(420px, 80%) * var(--fuse, 1));
  background: repeating-linear-gradient(90deg, var(--amber) 0 10px, var(--accent-bright) 10px 20px);
  transition: width 1s linear;
}
.timer.is-hot::before {
  left: calc(50% - min(210px, 40%) + min(420px, 80%) * var(--fuse, 1) - 7px); width: 14px; height: 14px; bottom: -22px;
  border-radius: 50%; background: #fff7d6; box-shadow: 0 0 10px 4px var(--amber), 0 0 18px 8px rgba(var(--accent-rgb), 0.5);
  transition: left 1s linear; animation: fuse-spark 0.18s steps(2) infinite;
}
.timer.is-critical { animation: tick 0.5s steps(2, end) infinite, timer-shake 0.25s linear infinite; }
@keyframes fuse-spark { 0% { transform: scale(1); } 50% { transform: scale(0.6); } }
@keyframes timer-shake { 0%, 100% { translate: 0 0; } 25% { translate: -2px 1px; } 75% { translate: 2px -1px; } }
@media (prefers-reduced-motion: reduce) {
  .timer.is-hot::before, .timer.is-critical { animation: none; }
  .timer.is-hot::after, .timer.is-hot::before { transition: none; }
}


/* ---------- Lietas materiāli un Mājiens (izpētes laiks) ---------------- */
.dossier { max-width: 720px; margin: var(--space-12) auto 0; display: grid; gap: var(--space-9); text-align: left; }
.dossier .card { padding: var(--space-11); }
.dossier h3 { font-size: 17px; margin-bottom: var(--space-5); }
.dossier__me { border-left: 4px solid var(--line-strong); }
.dossier__me--pros { border-left-color: var(--side-pros); }
.dossier__me--def { border-left-color: var(--side-def); }
.dossier__me--pros h3 { color: var(--side-pros); }
.dossier__me--def h3 { color: var(--side-def); }
.dossier__hint { margin-top: var(--space-4); }
.dossier__key { margin-top: var(--space-5); padding: var(--space-8); border-radius: 14px; border: 1px dashed var(--amber);
  background: rgba(245, 165, 36, 0.08); }
.dossier__key-text { font-size: 17px; font-weight: 700; line-height: 1.4; margin: var(--space-3) 0 var(--space-5); color: var(--text); }
.dossier__side { margin-top: var(--space-8); }
.dossier__label { font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; margin-bottom: var(--space-4); }
.dossier__side--pros .dossier__label { color: var(--side-pros); }
.dossier__side--def .dossier__label { color: var(--side-def); }
.dossier__facts { margin: 0; padding: 0; list-style: none; display: grid; gap: var(--space-6); }
.dossier__facts li { padding: var(--space-6) var(--space-7); border-radius: 12px; background: rgba(var(--tint-rgb), 0.04);
  border: 1px solid var(--line); }
.dossier__facts p { margin: 0 0 var(--space-3); color: var(--text-body); font-size: 15.5px; line-height: 1.45; }
.dossier__src { font-size: 12.5px; color: var(--muted); overflow-wrap: anywhere; }
.dossier__src a { color: var(--cyber); }
.dossier__plan ol { margin: 0; padding-left: var(--space-10); display: grid; gap: var(--space-4); color: var(--text-body); font-size: 15px; }
.dossier__plan strong { color: var(--text); }
.dossier__remind { max-width: 620px; margin: var(--space-9) auto 0; padding: var(--space-7) var(--space-9); text-align: left; }
.dossier__remind summary { cursor: pointer; font-weight: 700; }
@media (max-width: 480px) {
  .dossier .card { padding: var(--space-9); }
  .dossier__key-text { font-size: 16px; }
}

/* ---------- Sesijas tablo (verdikts) ---------------------------------- */
.board { max-width: 520px; margin: var(--space-12) auto 0; padding: var(--space-11); text-align: left; }
.board h3 { font-size: 17px; margin-bottom: var(--space-6); }
.board__list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-4); }
.board__row { display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: var(--space-6);
  padding: var(--space-5) var(--space-6); border-radius: 12px; border: 1px solid var(--line); }
.board__row.is-lead { border-color: var(--amber); background: rgba(245, 165, 36, 0.08); }
.board__name { font-weight: 700; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.board__wins { color: var(--text); white-space: nowrap; }
.board__pts { color: var(--muted); font-size: 13px; white-space: nowrap; }

/* ---------- Vecums istabā un palīgjautājumi (8.11.) ------------------- */
.age-pick { margin: var(--space-8) 0; display: grid; gap: var(--space-4); }
.age-pick__list { display: flex; flex-wrap: wrap; gap: var(--space-4); }
.age-pick__btn { cursor: pointer; min-height: 40px; font-size: 14px; }
.age-pick__btn:disabled { cursor: default; opacity: 0.7; }
.age-pick__btn.is-on { color: var(--text); border-color: var(--accent); background: var(--accent-soft); opacity: 1; }
.dossier__guide ol { margin: 0; padding-left: var(--space-10); display: grid; gap: var(--space-4); color: var(--text-body); font-size: 15px; }

/* Izpētes lapa (8.11. v3): kas labs (PAR krāsa), kas slikts (PRET krāsa), jāņem vērā, vari pieminēt */
.dossier__learn { display: grid; gap: var(--space-6); }
.dossier__learn h3 { margin-bottom: 0; }
.learn__now, .learn__row { padding: var(--space-6) var(--space-7); border-radius: 12px; border-left: 4px solid var(--line-strong);
  background: rgba(var(--tint-rgb), 0.04); }
.learn__now p { margin: var(--space-2) 0 var(--space-3); color: var(--text-body); font-size: 15.5px; line-height: 1.45; }
.learn__row--plus { border-left-color: var(--side-pros); }
.learn__row--minus { border-left-color: var(--side-def); }
.learn__row--mention { border-left-color: var(--amber); }
.learn__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--space-3) var(--space-5); }
.learn__title { font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--text); }
.learn__row--plus .learn__title { color: var(--side-pros); }
.learn__row--minus .learn__title { color: var(--side-def); }
.learn__row--mention .learn__title { color: var(--amber); }
.learn__tag { font-size: 12px; font-weight: 700; color: var(--muted); }
.learn__hint { margin: var(--space-2) 0 var(--space-3); font-size: 13px; color: var(--muted); }
.learn__row ul { margin: 0; padding-left: var(--space-9); display: grid; gap: var(--space-3); color: var(--text-body); font-size: 15px; line-height: 1.4; }
.learn--pop .learn__now, .learn--pop .learn__row { animation: learn-pop .42s cubic-bezier(.2, .8, .2, 1) both;
  animation-delay: calc(var(--i, 0) * 450ms + 150ms); }
@keyframes learn-pop { from { opacity: 0; transform: translateY(8px) scale(.98); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .learn--pop .learn__now, .learn--pop .learn__row { animation: none; } }
.guide__legend { display: flex; flex-wrap: wrap; gap: var(--space-4); margin: var(--space-3) 0 var(--space-6); font-size: 13px; font-weight: 800; }
.guide__yes, .guide__no { padding: 3px 10px; border-radius: 999px; border: 1px solid; }
.guide__yes { color: var(--side-pros); border-color: rgba(var(--side-pros-rgb), .5); }
.guide__no { color: var(--side-def); border-color: var(--side-def); }
.learn__foe > summary { cursor: pointer; list-style: none; }
.learn__foe > summary::-webkit-details-marker { display: none; }
.learn__foe > summary::after { content: "+"; margin-left: auto; font-weight: 800; color: var(--muted); }
.learn__foe[open] > summary::after { content: "−"; }
.learn--pop .learn__foe { animation: learn-pop .42s cubic-bezier(.2, .8, .2, 1) both; animation-delay: calc(var(--i, 0) * 450ms + 150ms); }
@media (prefers-reduced-motion: reduce) { .learn--pop .learn__foe { animation: none; } }
.topic-explain { margin: var(--space-3) auto var(--space-5); max-width: 34rem; padding: var(--space-4) var(--space-6);
  border-radius: 12px; background: rgba(var(--tint-rgb), 0.06); color: var(--text-body); font-size: 15.5px; line-height: 1.45; text-align: left; }
.topic-explain strong { color: var(--amber); margin-right: 4px; }
