/* =========================================================
   kiberdro.si — galvenais stils (mobile-first)
   ========================================================= */

/* ---------- Fonts (Inter, SIL Open Font License, hostēts lokāli) ---------- */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("../fonts/inter-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329,
    U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("../fonts/inter-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Dizaina mainīgie ---------- */
:root {
  --bg: #0f172a;
  --bg-alt: #111827;
  --surface: #1e293b;
  --surface-hover: #243247;
  --border: #334155;

  --text: #f3f4f6;
  --text-muted: #94a3b8;

  --green: #10b981;
  --green-dark: #059669;
  --blue: #3b82f6;
  --red: #ef4444;

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 20px;

  --shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
  --shadow-hover: 0 12px 32px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(16, 185, 129, 0.35);

  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --header-h: 64px;
  --transition: 0.25s ease;
}

/* ---------- Pamata reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

input,
button {
  font: inherit;
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
  border-radius: 4px;
}

[hidden] {
  display: none !important;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 200;
  padding: 8px 16px;
  background: var(--green);
  color: var(--bg);
  border-radius: var(--radius-sm);
  font-weight: 600;
}

.skip-link:focus {
  top: 12px;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: 16px;
}

/* ---------- Pogas ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition),
    box-shadow var(--transition), border-color var(--transition);
}

.btn--primary {
  background: var(--green);
  color: #052e1f;
}

.btn--primary:hover {
  background: var(--green-dark);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(16, 185, 129, 0.3);
}

.btn--ghost {
  border-color: var(--border);
  color: var(--text);
  background: transparent;
}

.btn--ghost:hover {
  border-color: var(--blue);
  color: var(--blue);
}

.btn--sm { padding: 8px 16px; font-size: 0.875rem; }
.btn--lg { padding: 14px 28px; font-size: 1rem; }
.btn--block { width: 100%; }

/* ---------- Galvene ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(51, 65, 85, 0.6);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

.logo__mark {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  background: rgba(16, 185, 129, 0.15);
  color: var(--green);
  font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
  font-size: 0.85rem;
}

.logo__accent {
  color: var(--green);
}

/* Mobilā izvēlne (checkbox triks, bez JS) */
.nav__toggle {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.nav__burger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 8px;
  cursor: pointer;
  border-radius: var(--radius-sm);
}

.nav__burger span {
  display: block;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

.nav__toggle:checked + .nav__burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle:checked + .nav__burger span:nth-child(2) { opacity: 0; }
.nav__toggle:checked + .nav__burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.nav__toggle:focus-visible + .nav__burger { outline: 2px solid var(--green); }

.nav__menu {
  position: absolute;
  top: var(--header-h);
  left: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 20px 16px 24px;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  transform: translateY(-8px);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition), transform var(--transition), visibility var(--transition);
}

.nav__toggle:checked ~ .nav__menu {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}

.nav__links {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.nav__links a {
  display: block;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-weight: 500;
  transition: color var(--transition), background var(--transition);
}

.nav__links a:hover {
  color: var(--text);
  background: var(--surface);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 72px 0 80px;
  text-align: center;
  background:
    radial-gradient(ellipse 60% 50% at 50% 0%, rgba(16, 185, 129, 0.18), transparent 70%),
    radial-gradient(ellipse 40% 40% at 85% 30%, rgba(59, 130, 246, 0.12), transparent 70%);
}

/* Smalks "režģa" fons */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.06) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
  pointer-events: none;
}

.hero__inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(30, 41, 59, 0.6);
  color: var(--text-muted);
  font-size: 0.85rem;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.2);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  50% { box-shadow: 0 0 0 7px rgba(16, 185, 129, 0); }
}

.hero__title {
  max-width: 14ch;
  font-size: clamp(2.25rem, 8vw, 4.25rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.text-gradient {
  background: linear-gradient(90deg, var(--green), var(--blue));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__subtitle {
  max-width: 560px;
  color: var(--text-muted);
  font-size: clamp(1rem, 2.5vw, 1.2rem);
}

.hero__actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  margin-top: 8px;
}

/* ---------- Sadaļas ---------- */
.section {
  padding: 64px 0;
}

.section--alt {
  background: var(--bg-alt);
  border-block: 1px solid rgba(51, 65, 85, 0.5);
}

.section__head {
  margin-bottom: 36px;
  text-align: center;
}

.section__title {
  font-size: clamp(1.75rem, 5vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.section__lead {
  margin-top: 8px;
  color: var(--text-muted);
}

/* ---------- Kartītes ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition),
    background var(--transition), border-color var(--transition);
}

.card__title {
  font-size: 1.2rem;
  font-weight: 700;
}

.card__text {
  color: var(--text-muted);
  flex-grow: 1;
}

/* ---------- Spēļu režģis ---------- */
.games-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.game-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  padding: 28px 24px;
}

.game-card:hover {
  transform: translateY(-6px);
  background: var(--surface-hover);
  box-shadow: var(--shadow-hover);
}

.game-card .btn {
  margin-top: 8px;
}

.game-card__icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin-bottom: 4px;
  border-radius: var(--radius);
}

.game-card__icon svg {
  width: 28px;
  height: 28px;
}

.game-card__icon--red   { background: rgba(239, 68, 68, 0.12);  color: var(--red); }
.game-card__icon--blue  { background: rgba(59, 130, 246, 0.12); color: var(--blue); }
.game-card__icon--green { background: rgba(16, 185, 129, 0.12); color: var(--green); }

.tag {
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.tag--red   { background: rgba(239, 68, 68, 0.12);  color: #fca5a5; }
.tag--blue  { background: rgba(59, 130, 246, 0.12); color: #93c5fd; }
.tag--green { background: rgba(16, 185, 129, 0.12); color: #6ee7b7; }

/* ---------- Zināšanu bāze ---------- */
.knowledge-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: start;
}

.block__title {
  margin-bottom: 16px;
  font-size: 1.35rem;
  font-weight: 700;
}

/* Vārdnīca */
.glossary {
  padding: 24px;
}

.search {
  position: relative;
  margin-bottom: 16px;
}

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

.search__input {
  width: 100%;
  padding: 12px 14px 12px 42px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.search__input::placeholder {
  color: #64748b;
}

.search__input:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
}

.accordion {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.accordion__item {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg);
  overflow: hidden;
  transition: border-color var(--transition);
}

.accordion__item[open] {
  border-color: rgba(16, 185, 129, 0.5);
}

.accordion__trigger {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 10px;
  padding: 14px 44px 14px 16px;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
  transition: background var(--transition);
}

.accordion__trigger::-webkit-details-marker {
  display: none;
}

.accordion__trigger:hover {
  background: rgba(30, 41, 59, 0.6);
}

/* "+" ikona, kas pārvēršas par "−" */
.accordion__trigger::after {
  content: "+";
  position: absolute;
  top: 50%;
  right: 16px;
  color: var(--green);
  font-size: 1.3rem;
  font-weight: 400;
  line-height: 1;
  transform: translateY(-50%);
  transition: transform var(--transition);
}

.accordion__item[open] .accordion__trigger::after {
  transform: translateY(-50%) rotate(45deg);
}

.accordion__hint {
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 400;
}

.accordion__panel {
  padding: 0 16px 16px;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.glossary__empty {
  padding: 16px;
  color: var(--text-muted);
  text-align: center;
}

/* Gidi */
.guides-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.guide-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

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

.guide-card__media {
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 9;
  font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
  font-size: 1.75rem;
  font-weight: 700;
  color: rgba(243, 244, 246, 0.85);
}

.guide-card__media--blue  { background: linear-gradient(135deg, #1e3a8a, #3b82f6); }
.guide-card__media--green { background: linear-gradient(135deg, #064e3b, #10b981); }
.guide-card__media--red   { background: linear-gradient(135deg, #7f1d1d, #ef4444); }

.guide-card__body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding: 18px 20px 20px;
}

.guide-card__meta {
  color: var(--text-muted);
  font-size: 0.8rem;
}

.guide-card__title {
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.35;
}

.guide-card .btn {
  margin-top: 4px;
}

/* ---------- Kājene ---------- */
.site-footer {
  padding-top: 48px;
  background: var(--bg);
}

.footer__inner {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.footer__brand {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 520px;
}

.footer__disclaimer {
  padding: 12px 16px;
  border-left: 3px solid var(--red);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: rgba(239, 68, 68, 0.08);
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer__disclaimer strong {
  color: #fca5a5;
}

.footer__links {
  display: flex;
  gap: 24px;
}

.footer__links a {
  color: var(--text-muted);
  transition: color var(--transition);
}

.footer__links a:hover {
  color: var(--green);
}

.footer__bottom {
  margin-top: 32px;
  padding-block: 20px;
  border-top: 1px solid var(--border);
  color: #64748b;
  font-size: 0.85rem;
}

/* =========================================================
   Planšetes (≥ 640px)
   ========================================================= */
@media (min-width: 640px) {
  .container { padding-inline: 24px; }

  .hero__actions {
    flex-direction: row;
    justify-content: center;
    width: auto;
  }

  .games-grid  { grid-template-columns: repeat(2, 1fr); }
  .guides-list { grid-template-columns: repeat(2, 1fr); }
}

/* =========================================================
   Desktop (≥ 960px)
   ========================================================= */
@media (min-width: 960px) {
  :root { --header-h: 72px; }

  .nav__burger { display: none; }

  .nav__menu {
    position: static;
    flex-direction: row;
    align-items: center;
    gap: 28px;
    padding: 0;
    background: none;
    border: 0;
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .nav__links {
    flex-direction: row;
    gap: 4px;
  }

  .hero { padding: 120px 0 128px; }
  .section { padding: 96px 0; }

  .games-grid { grid-template-columns: repeat(3, 1fr); gap: 24px; }

  .knowledge-grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }

  /* Gidi — horizontālas kartītes blakus vārdnīcai */
  .guides-list { grid-template-columns: 1fr; }

  .guide-card { flex-direction: row; }

  .guide-card__media {
    flex: 0 0 160px;
    aspect-ratio: auto;
    font-size: 1.4rem;
  }

  .footer__inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
  }
}

/* =========================================================
   Apakšlapas (spēles, gidi, informācija)
   ========================================================= */
.container--narrow {
  max-width: 800px;
}

.page-hero {
  padding: 40px 0 32px;
  border-bottom: 1px solid rgba(51, 65, 85, 0.6);
  background: radial-gradient(ellipse 60% 90% at 50% 0%, rgba(16, 185, 129, 0.12), transparent 70%);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.breadcrumb a:hover {
  color: var(--green);
}

.page-hero__title {
  font-size: clamp(1.75rem, 6vw, 2.75rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.page-hero__lead {
  max-width: 640px;
  margin-top: 10px;
  color: var(--text-muted);
}

.page-body {
  padding: 40px 0 72px;
}

/* Paziņojumu bloki */
.callout {
  padding: 14px 18px;
  border-left: 3px solid var(--blue);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: rgba(59, 130, 246, 0.08);
  color: var(--text);
  font-size: 0.95rem;
}

.callout--warn { border-left-color: var(--red);   background: rgba(239, 68, 68, 0.08); }
.callout--ok   { border-left-color: var(--green); background: rgba(16, 185, 129, 0.08); }
.callout--draft {
  border-left-color: #f59e0b;
  background: rgba(245, 158, 11, 0.1);
  color: #fcd34d;
}

/* Raksta teksts */
.prose > * + * { margin-top: 1em; }
.prose h2 { margin-top: 2em; font-size: 1.45rem; line-height: 1.3; }
.prose h3 { margin-top: 1.6em; font-size: 1.15rem; }
.prose ul,
.prose ol { padding-left: 1.4em; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li + li { margin-top: 0.45em; }
.prose li::marker { color: var(--green); }
.prose a:not(.btn) { color: var(--blue); text-decoration: underline; }
.prose strong { color: #fff; }
.prose code {
  padding: 2px 6px;
  border-radius: 4px;
  background: var(--surface);
  font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
  font-size: 0.9em;
}

.article-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 48px !important;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

/* =========================================================
   Spēles
   ========================================================= */
.game-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 16px;
}

.pill {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 600;
}

.pill--green {
  border-color: rgba(16, 185, 129, 0.4);
  background: rgba(16, 185, 129, 0.1);
  color: #6ee7b7;
}

.progress {
  height: 6px;
  margin-bottom: 20px;
  border-radius: 999px;
  background: var(--surface);
  overflow: hidden;
}

.progress__bar {
  height: 100%;
  width: 0;
  background: var(--green);
  transition: width 0.4s ease;
}

.game-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 20px 0 32px;
}

.game-actions--flush { margin-bottom: 0; }
.prose--spaced { margin-top: 48px; }

.game-subtitle {
  margin-bottom: 12px;
  font-size: 1.1rem;
}

/* E-pasta imitācija (pikšķerēšana) */
.email {
  border-radius: var(--radius);
  background: #f8fafc;
  color: #1e293b;
  box-shadow: var(--shadow);
  overflow: hidden;
  font-size: 0.95rem;
}

.email__head {
  padding: 16px 20px;
  border-bottom: 1px solid #cbd5e1;
  background: #e2e8f0;
}

.email__subject {
  margin-bottom: 8px;
  color: #0f172a;
  font-size: 1.05rem;
  font-weight: 700;
}

.email__row {
  color: #475569;
  font-size: 0.875rem;
  overflow-wrap: anywhere;
}

.email__label {
  display: inline-block;
  min-width: 44px;
  font-weight: 600;
}

.email__body {
  padding: 20px;
  line-height: 1.7;
}

.email__body p + p,
.email__body p + div,
.email__body div + p { margin-top: 0.9em; }

.email__url {
  color: #2563eb;
  text-decoration: underline;
  overflow-wrap: anywhere;
}

.email__button {
  display: inline-block;
  padding: 10px 18px;
  border-radius: 6px;
  background: #1d4ed8;
  color: #fff;
  font-weight: 600;
}

.email__attachment {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  background: #fff;
  font-size: 0.875rem;
}

.flag {
  cursor: pointer;
  border-radius: 3px;
  transition: background var(--transition), box-shadow var(--transition);
}

.flag:focus-visible { outline: 2px solid var(--blue); }
.flag.is-found  { background: rgba(239, 68, 68, 0.18);  box-shadow: 0 0 0 2px var(--red); }
.flag.is-missed { background: rgba(245, 158, 11, 0.25); box-shadow: 0 0 0 2px #f59e0b; }

.flag-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.flag-list__empty { color: var(--text-muted); }

.flag-item {
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-left: 3px solid var(--red);
  border-radius: var(--radius-sm);
  background: var(--surface);
}

.flag-item--missed { border-left-color: #f59e0b; }

.flag-item__tag {
  display: block;
  color: #fca5a5;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.flag-item--missed .flag-item__tag { color: #fcd34d; }
.flag-item strong { display: block; margin: 2px 0 4px; }
.flag-item p { color: var(--text-muted); font-size: 0.92rem; }

/* Rezultātu kartīte */
.result {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 32px 24px;
  text-align: center;
}

.result__score {
  color: var(--green);
  font-size: 3rem;
  font-weight: 800;
  line-height: 1;
}

.result p { color: var(--text-muted); max-width: 480px; }

.result__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 8px;
}

/* Paroles pārbaude */
.game-panel {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 24px;
}

.field-label { font-weight: 600; }

.pw-field {
  display: flex;
  gap: 8px;
  margin-top: -10px;
}

.input {
  flex: 1;
  min-width: 0;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg);
  font-size: 1.05rem;
}

.input:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
}

.meter {
  height: 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--bg);
  overflow: hidden;
}

.meter__bar {
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: var(--red);
  transition: width 0.3s ease, background 0.3s ease;
}

.pw-result {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.pw-result > div {
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg);
}

.pw-result__label {
  display: block;
  margin-bottom: 4px;
  color: var(--text-muted);
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.pw-result strong { font-size: 1.25rem; }

.checklist {
  display: grid;
  gap: 8px;
}

.checklist li {
  position: relative;
  padding-left: 28px;
  color: var(--text-muted);
}

.checklist li::before {
  content: "✕";
  position: absolute;
  top: 0;
  left: 0;
  width: 20px;
  color: var(--red);
  font-weight: 700;
  text-align: center;
}

.checklist li.is-ok { color: var(--text); }
.checklist li.is-ok::before { content: "✓"; color: var(--green); }

.note {
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* Scenāriji */
.scenario { padding: 24px; }

.scenario__title {
  font-size: 1.25rem;
  font-weight: 700;
}

.scenario__text {
  margin: 10px 0 20px;
  color: var(--text-muted);
  font-size: 1.02rem;
}

.choices {
  display: grid;
  gap: 10px;
}

.choice {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg);
  line-height: 1.5;
  text-align: left;
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition);
}

.choice:hover:not(:disabled) {
  border-color: var(--blue);
  background: rgba(59, 130, 246, 0.08);
}

.choice:disabled { cursor: default; }
.choice.is-correct { border-color: var(--green); background: rgba(16, 185, 129, 0.12); }
.choice.is-wrong   { border-color: var(--red);   background: rgba(239, 68, 68, 0.12); }

.feedback { margin-top: 16px; }

@media (min-width: 640px) {
  .pw-result { grid-template-columns: 1fr 1fr; }
  .game-panel,
  .scenario { padding: 32px; }
}

@media (min-width: 960px) {
  .page-hero { padding: 64px 0 48px; }
}

/* ---------- Samazināta kustība ---------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
