/* --- Tokens: src/styles/theme.css --- */
/**
 * Design tokens — the only file with colour literals (PROJECT.md, «Стили»).
 * Night-navy screen from the logo, orange→amber as the warm accent, logo blue
 * as the cool one, and a near-paper tone for the sticker outlines.
 */
:root {
  color-scheme: dark;

  /* --- Surfaces --- */
  --bg-base: #0b1630;
  --bg-elevated: #0f1c3d;
  --bg-surface: #13224a;
  --bg-card: #172a58;
  --bg-card-raised: #1c3266;
  --bg-overlay: rgb(5 10 24 / 0.88);
  --bg-overlay-soft: rgb(5 10 24 / 0.62);
  --bg-inset: rgb(5 10 24 / 0.35);

  /* --- Accents --- */
  --accent-orange: #f26a10;
  --accent-amber: #f7a21b;
  --accent-gold: #ffc23a;
  --accent-blue: #2e6fe0;
  --accent-blue-deep: #1e63d6;
  --accent-sky: #9cc0ff;
  --accent-mint: #5fd6a8;

  /* --- Text --- */
  --text-primary: #eef2ff;
  --text-secondary: #bcc6e4;
  --text-muted: #8795bb;
  --text-inverse: #0b1630;
  --text-on-accent: #1a0d02;
  --sticker-paper: #f7f9ff;

  /* --- Lines --- */
  --border-soft: rgb(156 192 255 / 0.12);
  --border-medium: rgb(156 192 255 / 0.22);
  --border-strong: rgb(156 192 255 / 0.36);
  --border-accent: rgb(247 162 27 / 0.6);
  --border-blue: rgb(46 111 224 / 0.65);

  /* --- Gradients --- */
  --gradient-flame: linear-gradient(100deg, #f26a10, #f7a21b);
  --gradient-gold: linear-gradient(100deg, #f7a21b, #ffd45c 55%, #ffb02e);
  --gradient-blue: linear-gradient(120deg, #1e63d6, #4b8af0);
  --gradient-text: linear-gradient(95deg, #ffb347, #f7a21b 45%, #ff7a2e);
  --gradient-text-cool: linear-gradient(95deg, #cfe0ff, #9cc0ff 60%, #6f9cf0);
  --gradient-screen: linear-gradient(160deg, #24499e, #142b62 55%, #0d1a3c);
  --gradient-screen-top: linear-gradient(160deg, #3a2a7a, #2a3d9a 45%, #102056);
  --gradient-divider: linear-gradient(
    90deg,
    rgb(46 111 224 / 0),
    #2e6fe0 18%,
    #f26a10 55%,
    #f7a21b 82%,
    rgb(247 162 27 / 0)
  );
  --gradient-panel: linear-gradient(
    180deg,
    rgb(28 50 102 / 0.75),
    rgb(19 34 74 / 0.75)
  );
  --stripe-texture: repeating-linear-gradient(
    135deg,
    rgb(156 192 255 / 0.07) 0 2px,
    rgb(156 192 255 / 0) 2px 9px
  );

  /* --- Glows and shadows --- */
  --glow-orange: 0 0 22px rgb(242 106 16 / 0.45);
  --glow-gold-strong:
    0 0 0 1px rgb(255 194 58 / 0.65), 0 0 26px rgb(255 194 58 / 0.6),
    0 0 64px rgb(242 106 16 / 0.4);
  --glow-blue: 0 0 20px rgb(46 111 224 / 0.4);
  --glow-text: 0 0 14px rgb(247 162 27 / 0.45);
  --glow-drop-warm: drop-shadow(0 0 10px rgb(247 162 27 / 0.35));
  --gradient-shine: linear-gradient(
    100deg,
    rgb(255 255 255 / 0) 30%,
    rgb(255 255 255 / 0.32) 50%,
    rgb(255 255 255 / 0) 70%
  );
  --shadow-card: 0 12px 32px rgb(2 6 20 / 0.45);
  --shadow-sticker: 0 3px 0 rgb(2 6 20 / 0.55);
  --shadow-top:
    0 0 0 1px rgb(247 162 27 / 0.55), 0 18px 48px rgb(242 106 16 / 0.28);

  /* --- Background art --- */
  --art-glow-warm: #f26a10;
  --art-glow-cool: #1e63d6;
  --art-glow-gold: #f7a21b;
  --art-dot: #9cc0ff;

  /* --- Stars --- */
  --star-on: #f7a21b;
  --star-off: rgb(156 192 255 / 0.25);

  /* --- Spinner --- */
  --spinner-track: rgb(156 192 255 / 0.2);
  --spinner-head: #f7a21b;

  /* --- Focus --- */
  --focus-ring: #ffc23a;

  /* --- Layout ---
     One width for the header, the footer, the offer list and the sticky bar. */
  --layout-max-width: 1180px;
  --layout-padding-x: 1.25rem;
  --content-max-width: 760px;

  /* --- Radius, by hierarchy: stickers < cards < phone screens < tiles --- */
  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-screen: 18px;
  --radius-lg: 22px;
}

/* --- Fonts: astro.config.mjs fonts, declared here because <Font cssVariable> did it in the source --- */
:root {
  --font-display: 'Baloo 2', sans-serif;
  --font-body: 'Atkinson Hyperlegible', sans-serif;
}

/* --- Reset: src/styles/global.css --- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-text-size-adjust: 100%;
  tab-size: 4;
  scroll-behavior: smooth;
}

body,
h1,
h2,
h3,
h4,
p,
ul,
ol,
dl,
dd,
figure {
  margin: 0;
}

ul,
ol {
  padding: 0;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.01em;
  color: var(--text-primary);
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

/* Load-bearing. `hidden` is how the age gate, the access screen, the promo
   modal and the cookie notice are toggled; a component's `display` would
   otherwise outrank the browser's own `[hidden]` rule. Keep `!important`. */
[hidden] {
  display: none !important;
}

body {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
  background: var(--bg-base);
  color: var(--text-primary);
}

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

img {
  max-width: 100%;
  height: auto;
  display: block;
}

:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 3px;
}

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

/* Anchors of the home sections (same ids in both modes) and of the guide pages:
   the footer navigation jumps here. */
#auswahl,
#spielarten,
#checkliste,
#extras,
[data-anchor] {
  scroll-margin-top: 1.5rem;
}

/* Keeps a control operable by keyboard while invisible — used by the CSS-only
   disclosure toggles, which must not fall out of the tab order. */
.srOnly {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* --- Firmament --- */
.firmament {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  background: var(--bg-base);
}

.firmament_art {
  width: 100%;
  height: 100%;
  display: block;
}

.firmament_grid {
  opacity: 0.5;
}

.firmament_dot {
  fill: var(--art-dot);
  fill-opacity: 0.09;
}

.firmament_stop_warm {
  stop-color: var(--art-glow-warm);
  stop-opacity: 0.26;
}

.firmament_stop_fade_warm {
  stop-color: var(--art-glow-warm);
  stop-opacity: 0;
}

.firmament_stop_cool {
  stop-color: var(--art-glow-cool);
  stop-opacity: 0.3;
}

.firmament_stop_fade_cool {
  stop-color: var(--art-glow-cool);
  stop-opacity: 0;
}

.firmament_stop_gold {
  stop-color: var(--art-glow-gold);
  stop-opacity: 0.14;
}

.firmament_stop_fade_gold {
  stop-color: var(--art-glow-gold);
  stop-opacity: 0;
}

.firmament_mask_on {
  stop-color: var(--sticker-paper);
  stop-opacity: 1;
}

.firmament_mask_off {
  stop-color: var(--sticker-paper);
  stop-opacity: 0;
}

@media (min-width: 769px) {
  .firmament_grid {
    opacity: 0.8;
  }
}

/* --- Lintel --- */
.lintel {
  position: relative;
  background: var(--bg-elevated);
}

.lintel_inner {
  width: 100%;
  max-width: var(--layout-max-width);
  margin-inline: auto;
  padding-inline: var(--layout-padding-x);
  display: flex;
  align-items: center;
  min-height: 4rem;
  padding-block: 0.5rem;
}

.lintel_home {
  display: inline-flex;
  border-radius: var(--radius-xs);
}

.lintel_logo {
  width: auto;
  height: 2.625rem;
}

@media (min-width: 769px) {
  .lintel_logo {
    height: 3.125rem;
  }
}

.lintel_line {
  height: 0.1875rem;
  background: var(--gradient-divider);
}

/* --- Landing --- */
.landing {
  flex: 1;
  display: block;
}

.landing_note {
  width: 100%;
  max-width: var(--layout-max-width);
  margin-inline: auto;
  padding-inline: var(--layout-padding-x);
  margin-top: -0.75rem;
  color: var(--text-muted);
  font-size: 0.8125rem;
}

.landing_note_link {
  margin-left: 0.25rem;
  color: var(--accent-sky);
  text-decoration: underline;
}

/* --- Leadin --- */
.leadin {
  max-height: 30dvh;
  overflow: hidden;
  padding-block: 1rem 0.75rem;
}

.leadin_inner {
  width: 100%;
  max-width: var(--layout-max-width);
  margin-inline: auto;
  padding-inline: var(--layout-padding-x);
  display: grid;
  gap: 0.625rem;
  align-items: end;
}

@media (min-width: 769px) {
  .leadin_inner {
    grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
    gap: 2rem;
  }
}

.leadin_head {
  display: grid;
  gap: 0.5rem;
  justify-items: start;
}

.leadin_badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.25rem 0.625rem 0.25rem 0.25rem;
  border-radius: var(--radius-xs);
  background: var(--bg-inset);
  border: 1px solid var(--border-medium);
  color: var(--text-secondary);
  font-size: 0.8125rem;
  font-weight: 700;
  line-height: 1.2;
}

.leadin_tick {
  display: inline-grid;
  place-items: center;
  width: 1.375rem;
  height: 1.375rem;
  border-radius: var(--radius-xs);
  background: var(--gradient-flame);
  color: var(--text-on-accent);
}

.leadin_title {
  font-size: clamp(1.4rem, min(6vw, 5.4dvh), 2.85rem);
  line-height: 1.04;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

.leadin_place {
  position: relative;
  display: inline-block;
  white-space: nowrap;
}

.leadin_swoosh {
  position: absolute;
  left: -2%;
  right: -2%;
  bottom: -0.26em;
  width: 104%;
  height: 0.32em;
  overflow: visible;
}

.leadin_swoosh path {
  fill: none;
  stroke: var(--accent-orange);
  stroke-width: 5;
  stroke-linecap: round;
}

.leadin_side {
  display: none;
}

@media (min-width: 560px) {
  .leadin_side {
    display: grid;
    gap: 0.625rem;
    justify-items: start;
  }
}

.leadin_text {
  color: var(--text-secondary);
  font-size: clamp(0.9rem, 2.2dvh, 1.05rem);
  line-height: 1.5;
  max-width: 46ch;
}

.leadin_cta {
  display: inline-flex;
  align-items: center;
  min-height: 2.5rem;
  padding-inline: 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: var(--bg-surface);
  color: var(--text-primary);
  font-weight: 700;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.leadin_cta:hover {
  border-color: var(--accent-amber);
  background: var(--bg-card);
}

@media (max-height: 620px) {
  .leadin_side {
    display: none;
  }
}

/* --- Shortlist --- */
.shortlist {
  padding-block: 1.125rem 1.75rem;
}

.shortlist_inner {
  width: 100%;
  max-width: var(--layout-max-width);
  margin-inline: auto;
  padding-inline: var(--layout-padding-x);
}

.shortlist_stack {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.625rem;
}

.shortlist_end {
  width: 100%;
  height: 1px;
}

/* --- Cartouche --- */
.cartouche {
  position: relative;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-soft);
  background: var(--gradient-panel);
  box-shadow: var(--shadow-card);
  padding: 1rem 0.875rem 0.875rem;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.cartouche:hover {
  border-color: var(--border-strong);
}

@media (min-width: 769px) {
  .cartouche {
    padding: 1.125rem 1.125rem;
  }
}

.cartouche_top_1 {
  border-color: var(--border-accent);
  animation: cartouche_glow 2.6s ease-in-out infinite alternate;
}

.cartouche_top_1:hover {
  border-color: var(--accent-gold);
}

.cartouche_top_23 {
  border-color: var(--border-blue);
  box-shadow: var(--shadow-card), var(--glow-blue);
}

@keyframes cartouche_glow {
  from {
    box-shadow: var(--shadow-top);
  }
  to {
    box-shadow: var(--glow-gold-strong);
  }
}

.cartouche_hit {
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: inherit;
}

.cartouche_hit:focus-visible {
  outline-offset: -3px;
}

.cartouche_rank {
  border: 2px solid var(--sticker-paper);
  box-shadow: var(--shadow-sticker);
  transform: rotate(-3deg);
  position: absolute;
  top: -0.8125rem;
  left: 0.75rem;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.125rem 0.625rem 0.125rem 0.1875rem;
  border-radius: var(--radius-xs);
  background: var(--gradient-blue);
  color: var(--text-primary);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.8125rem;
  line-height: 1.3;
  pointer-events: none;
}

.cartouche_top_1 .cartouche_rank {
  background: var(--gradient-flame);
  color: var(--text-on-accent);
  animation: cartouche_wobble 1.6s ease-in-out infinite alternate;
}

.cartouche_rank_no {
  display: inline-grid;
  place-items: center;
  min-width: 1.25rem;
  height: 1.25rem;
  border-radius: 0.3125rem;
  background: var(--bg-base);
  color: var(--sticker-paper);
  font-size: 0.75rem;
}

@keyframes cartouche_wobble {
  from {
    transform: rotate(-4deg);
  }
  to {
    transform: rotate(2deg) translateY(-2px);
  }
}

.cartouche_inner {
  position: relative;
  pointer-events: none;
  display: grid;
  grid-template-columns: 8.75rem minmax(0, 1fr);
  grid-template-areas: "screen main" "perks perks" "cta cta" "terms terms";
  gap: 0.75rem 0.875rem;
  align-items: center;
}

@media (min-width: 769px) {
  .cartouche_inner {
    grid-template-columns: 11rem minmax(0, 1.3fr) minmax(0, 1fr) 12.25rem;
    grid-template-areas: "screen main perks cta" "terms terms terms terms";
    gap: 0.625rem 1.375rem;
  }
}

.cartouche_screen {
  grid-area: screen;
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 16/10;
  overflow: hidden;
  border-radius: var(--radius-screen);
  border: 2px solid var(--border-medium);
  background: var(--stripe-texture), var(--gradient-screen);
}

.cartouche_screen::before {
  content: "";
  position: absolute;
  top: 0.3125rem;
  left: 50%;
  z-index: 1;
  width: 26%;
  height: 0.25rem;
  border-radius: 0.125rem;
  background: var(--bg-inset);
  transform: translateX(-50%);
}

.cartouche_top_1 .cartouche_screen {
  border-color: var(--border-accent);
  background: var(--stripe-texture), var(--gradient-screen-top);
}

.cartouche_shot {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cartouche_main {
  grid-area: main;
  display: grid;
  gap: 0.375rem;
  justify-items: start;
  min-width: 0;
}

.cartouche_name {
  font-size: 1.1875rem;
  line-height: 1.1;
}

@media (min-width: 769px) {
  .cartouche_name {
    font-size: 1.375rem;
  }
}

.cartouche_verdict {
  border: 2px solid var(--sticker-paper);
  box-shadow: var(--shadow-sticker);
  transform: rotate(-2deg);
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  margin-top: 0.125rem;
  padding: 0.1875rem 0.5rem;
  border-radius: var(--radius-xs);
  background: var(--bg-base);
}

.cartouche_score {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.9375rem;
  line-height: 1;
  color: var(--sticker-paper);
}

.cartouche_perks {
  grid-area: perks;
  display: flex;
  flex-wrap: wrap;
  gap: 0.625rem 0.875rem;
  align-items: flex-start;
  min-width: 0;
}

.cartouche_features {
  flex: 1 1 55%;
  min-width: 0;
}

.cartouche_payments {
  flex: 1 1 35%;
  min-width: 0;
}

.cartouche_payments:empty {
  display: none;
}

.cartouche_feature_list {
  display: grid;
  gap: 0.375rem;
}

.cartouche_feature {
  position: relative;
  padding-left: 1.25rem;
  color: var(--text-secondary);
  font-size: 0.875rem;
  line-height: 1.4;
}

.cartouche_feature::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.3em;
  width: 0.625rem;
  height: 0.625rem;
  border-radius: 0.1875rem;
  background: var(--gradient-flame);
}

.cartouche_feature_more {
  display: grid;
  gap: 0.375rem;
}

.cartouche_feature_toggle {
  position: relative;
  z-index: 2;
  pointer-events: auto;
  justify-self: start;
  padding-left: 1.25rem;
  color: var(--accent-sky);
  font-size: 0.8125rem;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}

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

.cartouche_feature_toggle:hover {
  color: var(--text-primary);
}

.cartouche_less_label {
  display: none;
}

.cartouche_feature_more[open] .cartouche_more_label {
  display: none;
}

.cartouche_feature_more[open] .cartouche_less_label {
  display: inline;
}

.cartouche_feature_more[open] .cartouche_feature_toggle {
  order: 2;
}

.cartouche_feature_extra {
  display: grid;
  gap: 0.375rem;
}

.cartouche_cta {
  grid-area: cta;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding-inline: 1.125rem;
  border-radius: var(--radius-sm);
  background: var(--gradient-blue);
  box-shadow: var(--glow-blue);
  color: var(--text-primary);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.0625rem;
  text-align: center;
  transition: transform 0.2s ease, filter 0.2s ease;
}

.cartouche_cta::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--gradient-shine);
  transform: translateX(-110%);
  animation: cartouche_shine 3.4s ease-in-out infinite alternate;
}

.cartouche:hover .cartouche_cta {
  transform: translateY(-1px);
  filter: brightness(1.08);
}

.cartouche_top_1 .cartouche_cta {
  background: var(--gradient-gold);
  box-shadow: var(--glow-gold-strong);
  color: var(--text-on-accent);
  animation: cartouche_pulse 1.8s ease-in-out infinite alternate;
}

.cartouche_top_1 .cartouche_cta::after {
  animation-duration: 2.2s;
}

@keyframes cartouche_shine {
  from {
    transform: translateX(-110%);
  }
  to {
    transform: translateX(110%);
  }
}

@keyframes cartouche_pulse {
  from {
    transform: scale(1);
  }
  to {
    transform: scale(1.03);
  }
}

/* --- Welcomer --- */
.welcomer_note {
  background: var(--gradient-text-cool);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 700;
  font-size: 0.9375rem;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

/* --- Stars --- */
.stars {
  --star: 1rem;
  position: relative;
  display: inline-flex;
  vertical-align: middle;
  line-height: 0;
}

.stars_sm {
  --star: 0.85rem;
}

.stars_md {
  --star: 1rem;
}

.stars_row {
  display: inline-flex;
  gap: 0.12rem;
}

.stars_row svg {
  width: var(--star);
  height: var(--star);
  flex: none;
}

.stars_lit {
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--fill);
  overflow: hidden;
}

.stars_off {
  fill: var(--star-off);
}

.stars_on {
  fill: var(--star-on);
}

/* --- Playtime --- */
.playtime_wrap {
  width: 100%;
  max-width: var(--layout-max-width);
  margin-inline: auto;
  padding-inline: var(--layout-padding-x);
}

.playtime_title {
  font-size: clamp(1.55rem, 4.4vw, 2.3rem);
  text-wrap: balance;
}

.playtime_lead {
  margin-top: 0.625rem;
  max-width: 60ch;
  color: var(--text-secondary);
  font-size: 1.0625rem;
  line-height: 1.55;
}

.playtime_kinds {
  padding-block: 2.5rem 2.25rem;
}

.playtime_intro {
  margin-bottom: 1.5rem;
}

.playtime_shelf {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.125rem 0.875rem;
  list-style: none;
}

@media (min-width: 769px) {
  .playtime_shelf {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.625rem 1.375rem;
  }
}

.playtime_app {
  display: grid;
  gap: 0.375rem;
  align-content: start;
}

.playtime_glyph {
  display: grid;
  place-items: center;
  width: 3.75rem;
  height: 3.75rem;
  margin-bottom: 0.375rem;
  border-radius: var(--radius-lg);
  background: var(--gradient-blue);
  color: var(--text-primary);
  box-shadow: var(--shadow-sticker);
}

.playtime_app:nth-child(3n+2) .playtime_glyph {
  background: var(--gradient-flame);
  color: var(--text-on-accent);
}

.playtime_app:nth-child(3n+3) .playtime_glyph {
  background: var(--stripe-texture), var(--gradient-screen-top);
}

.playtime_app_title {
  font-size: 1.1875rem;
}

.playtime_app_text {
  color: var(--text-secondary);
  font-size: 0.875rem;
  line-height: 1.5;
}

.playtime_more {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.625rem;
  min-height: 2.875rem;
  padding-inline: 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-accent);
  color: var(--accent-amber);
  font-weight: 700;
}

.playtime_more:hover {
  background: var(--bg-surface);
  color: var(--text-primary);
}

.playtime_check {
  padding-block: 2.25rem;
  background: var(--bg-elevated);
  border-block: 1px solid var(--border-soft);
}

.playtime_split {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 769px) {
  .playtime_split {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.3fr);
    gap: 3rem;
    align-items: start;
  }
}

.playtime_aside {
  display: grid;
  align-content: start;
}

.playtime_phone {
  display: none;
}

@media (min-width: 769px) {
  .playtime_phone {
    display: block;
    width: 9.375rem;
    height: auto;
    margin-top: 1.625rem;
    transform: rotate(-6deg);
  }
}

.playtime_phone_body {
  fill: var(--bg-card-raised);
  stroke: var(--sticker-paper);
  stroke-width: 3;
}

.playtime_phone_screen {
  fill: var(--bg-base);
}

.playtime_phone_notch {
  fill: var(--bg-inset);
}

.playtime_phone_row {
  fill: var(--bg-surface);
}

.playtime_phone_tick {
  fill: none;
  stroke: var(--accent-amber);
  stroke-width: 3.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.playtime_phone_card {
  fill: var(--accent-blue-deep);
  fill-opacity: 0.55;
}

.playtime_list {
  display: grid;
  gap: 0.875rem;
  list-style: none;
}

@media (min-width: 560px) {
  .playtime_list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.125rem 1.25rem;
  }
}

.playtime_item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.75rem;
  align-items: start;
  padding: 0.875rem;
  border-radius: var(--radius-md);
  background: var(--bg-surface);
  border: 1px solid var(--border-soft);
}

.playtime_tick {
  border: 2px solid var(--sticker-paper);
  box-shadow: var(--shadow-sticker);
  transform: rotate(-4deg);
  display: grid;
  place-items: center;
  width: 1.875rem;
  height: 1.875rem;
  border-radius: var(--radius-xs);
  background: var(--gradient-flame);
  color: var(--text-on-accent);
}

.playtime_item_title {
  font-size: 1.125rem;
}

.playtime_item_text {
  margin-top: 0.25rem;
  color: var(--text-secondary);
  font-size: 0.875rem;
  line-height: 1.5;
}

.playtime_extras {
  padding-block: 2.5rem 3rem;
}

.playtime_band {
  display: grid;
  gap: 1.375rem;
  padding: 1.5rem 1.125rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-medium);
  background: var(--stripe-texture), var(--gradient-screen);
}

@media (min-width: 769px) {
  .playtime_band {
    padding: 2.125rem 2.25rem;
  }
}

.playtime_band_head {
  max-width: 62ch;
}

.playtime_blocks {
  display: grid;
  gap: 1rem;
}

@media (min-width: 769px) {
  .playtime_blocks {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.625rem;
  }
}

.playtime_block {
  display: grid;
  gap: 0.375rem;
  align-content: start;
  padding-left: 0.875rem;
  border-left: 3px solid var(--accent-orange);
}

.playtime_block_icon {
  color: var(--accent-amber);
}

.playtime_block_title {
  font-size: 1.125rem;
}

.playtime_block_text {
  color: var(--text-secondary);
  font-size: 0.9375rem;
  line-height: 1.5;
}

.playtime_band_link {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  min-height: 2.875rem;
  padding-inline: 1.125rem;
  border-radius: var(--radius-sm);
  background: var(--gradient-flame);
  color: var(--text-on-accent);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1rem;
}

.playtime_band_link:hover {
  filter: brightness(1.08);
}

/* --- Almanac --- */
.almanac {
  width: 100%;
  max-width: var(--layout-max-width);
  margin-inline: auto;
  padding-inline: var(--layout-padding-x);
  max-width: 67.5rem;
  padding-block: 1.875rem 3.5rem;
}

.almanac_head {
  display: grid;
  gap: 0.75rem;
}

.almanac_title {
  font-size: clamp(2rem, 6.4vw, 3.1rem);
  line-height: 1.04;
  text-wrap: balance;
  max-width: 22ch;
}

.almanac_lead {
  max-width: 68ch;
  color: var(--text-secondary);
  font-size: 1.0625rem;
  line-height: 1.65;
}

.almanac_jump {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.375rem;
}

.almanac_jump_link {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  min-height: 2.375rem;
  padding-inline: 0.75rem;
  border-radius: var(--radius-xs);
  border: 1px solid var(--border-medium);
  background: var(--bg-surface);
  color: var(--text-secondary);
  font-size: 0.875rem;
  font-weight: 700;
}

.almanac_jump_link:hover {
  border-color: var(--accent-amber);
  color: var(--text-primary);
}

.almanac_h2 {
  font-size: clamp(1.45rem, 4.2vw, 1.95rem);
}

.almanac_compare {
  margin-top: 2.25rem;
}

.almanac_table_wrap {
  margin-top: 0.875rem;
  overflow-x: auto;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-soft);
  background: var(--bg-elevated);
}

.almanac_table {
  width: 100%;
  min-width: 45rem;
  border-collapse: collapse;
  font-size: 0.9375rem;
}

.almanac_table th,
.almanac_table td {
  padding: 0.75rem 0.875rem;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--border-soft);
}

.almanac_table thead th {
  position: sticky;
  top: 0;
  background: var(--bg-surface);
  color: var(--text-muted);
  font-size: 0.8125rem;
}

.almanac_table tbody th a {
  color: var(--text-primary);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1rem;
  text-decoration: underline;
  text-decoration-color: var(--border-accent);
  text-underline-offset: 3px;
}

.almanac_table tbody th a:hover {
  color: var(--accent-amber);
}

.almanac_table td {
  color: var(--text-secondary);
}

.almanac_table tbody tr:nth-child(even) {
  background: var(--bg-inset);
}

.almanac_table tbody tr:last-child > * {
  border-bottom: 0;
}

.almanac_genre {
  margin-top: 2.75rem;
}

.almanac_genre_head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.875rem;
  align-items: center;
}

.almanac_genre_icon {
  display: grid;
  place-items: center;
  width: 3.375rem;
  height: 3.375rem;
  border-radius: var(--radius-lg);
  background: var(--gradient-flame);
  color: var(--text-on-accent);
  box-shadow: var(--shadow-sticker);
}

.almanac_genre_text {
  margin-top: 0.25rem;
  color: var(--text-secondary);
  max-width: 62ch;
}

.almanac_cards {
  display: grid;
  gap: 1rem;
  margin-top: 1rem;
  list-style: none;
}

@media (min-width: 560px) {
  .almanac_cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .almanac_cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.almanac_card {
  display: grid;
  gap: 0.5rem;
  height: 100%;
  padding: 0.75rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-soft);
  background: var(--gradient-panel);
  transition: border-color 0.2s ease;
}

.almanac_card:hover {
  border-color: var(--accent-amber);
}

.almanac_card_img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-screen);
  border: 2px solid var(--border-medium);
}

.almanac_card_name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.3125rem;
  line-height: 1.1;
}

.almanac_card_text {
  color: var(--text-secondary);
  font-size: 0.9375rem;
  line-height: 1.5;
}

.almanac_card_more {
  color: var(--accent-amber);
  font-weight: 700;
  font-size: 0.875rem;
}

.almanac_devices {
  margin-top: 3rem;
  padding: 1.375rem 1.125rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-medium);
  background: var(--stripe-texture), var(--gradient-screen);
}

.almanac_devices_grid {
  display: grid;
  gap: 0.875rem;
  margin-top: 0.875rem;
}

@media (min-width: 769px) {
  .almanac_devices_grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.almanac_device {
  display: grid;
  gap: 0.375rem;
  align-content: start;
  padding: 0.875rem;
  border-radius: var(--radius-md);
  background: var(--bg-inset);
  color: var(--accent-amber);
}

.almanac_device h3 {
  font-size: 1.125rem;
}

.almanac_device p {
  color: var(--text-secondary);
  line-height: 1.5;
}

.almanac_devices_note {
  margin-top: 0.875rem;
  color: var(--text-secondary);
  font-size: 0.9375rem;
}

.almanac_guide {
  display: grid;
  gap: 0.75rem;
  align-items: center;
  margin-top: 2rem;
  padding: 1.125rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-accent);
  background: var(--bg-elevated);
  color: var(--accent-amber);
}

@media (min-width: 769px) {
  .almanac_guide {
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 1.25rem;
  }
}

.almanac_guide p {
  color: var(--text-secondary);
}

.almanac_guide_title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.1875rem;
}

.almanac_guide .almanac_guide_title {
  color: var(--text-primary);
}

.almanac_guide_link {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  min-height: 2.875rem;
  padding-inline: 1.125rem;
  border-radius: var(--radius-sm);
  background: var(--gradient-flame);
  color: var(--text-on-accent);
  font-family: var(--font-display);
  font-weight: 800;
}

/* --- Dossier --- */
.dossier {
  width: 100%;
  max-width: var(--layout-max-width);
  margin-inline: auto;
  padding-inline: var(--layout-padding-x);
  max-width: 65rem;
  padding-block: 1.375rem 3.5rem;
}

.dossier_crumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
  list-style: none;
  color: var(--text-muted);
  font-size: 0.875rem;
}

.dossier_crumbs ol li + li::before {
  content: "/";
  margin-right: 0.375rem;
  color: var(--border-strong);
}

.dossier_crumbs ol a {
  color: var(--accent-sky);
}

.dossier_crumbs ol a:hover {
  color: var(--text-primary);
}

.dossier_head {
  display: grid;
  gap: 1.375rem;
  margin-top: 1.125rem;
}

@media (min-width: 769px) {
  .dossier_head {
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.95fr);
    align-items: center;
    gap: 2.25rem;
  }
}

.dossier_head_text {
  display: grid;
  gap: 0.75rem;
  justify-items: start;
}

.dossier_genre {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.25rem 0.625rem;
  border-radius: var(--radius-xs);
  border: 1px solid var(--border-medium);
  background: var(--bg-surface);
  color: var(--text-secondary);
  font-size: 0.8125rem;
  font-weight: 700;
}

.dossier_title {
  font-size: clamp(2.2rem, 7vw, 3.4rem);
  line-height: 1;
}

.dossier_tagline {
  color: var(--text-secondary);
  font-size: 1.125rem;
  line-height: 1.5;
  max-width: 48ch;
}

.dossier_verdict {
  border: 2px solid var(--sticker-paper);
  box-shadow: var(--shadow-sticker);
  transform: rotate(-2deg);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.3125rem 0.625rem;
  border-radius: var(--radius-xs);
  background: var(--bg-base);
}

.dossier_score {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.125rem;
  color: var(--sticker-paper);
}

.dossier_score_note {
  color: var(--text-muted);
  font-size: 0.75rem;
}

.dossier_play {
  display: grid;
  gap: 0.375rem;
  margin-top: 0.375rem;
}

.dossier_button {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.25rem;
  padding-inline: 1.5rem;
  border-radius: var(--radius-sm);
  background: var(--gradient-gold);
  box-shadow: var(--glow-gold-strong);
  color: var(--text-on-accent);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.1875rem;
  transition: transform 0.2s ease, filter 0.2s ease;
}

.dossier_button::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--gradient-shine);
  transform: translateX(-110%);
  animation: dossier_shine 2.8s ease-in-out infinite alternate;
}

.dossier_button:hover {
  transform: translateY(-1px);
  filter: brightness(1.06);
}

@keyframes dossier_shine {
  from {
    transform: translateX(-110%);
  }
  to {
    transform: translateX(110%);
  }
}

.dossier_play_note {
  color: var(--text-muted);
  font-size: 0.8125rem;
}

.dossier_cover {
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 2px solid var(--border-medium);
  box-shadow: var(--shadow-card);
  background: var(--gradient-screen);
}

.dossier_cover_img {
  width: 100%;
  height: auto;
}

.dossier_facts {
  margin-top: 2rem;
  padding: 1.125rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-soft);
  background: var(--gradient-panel);
}

.dossier_facts_title {
  font-size: 1.375rem;
}

.dossier_facts_list {
  display: grid;
  gap: 0.625rem 1.25rem;
  margin-top: 0.75rem;
}

@media (min-width: 560px) {
  .dossier_facts_list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.dossier_fact {
  display: grid;
  gap: 0.125rem;
  padding-bottom: 0.625rem;
  border-bottom: 1px solid var(--border-soft);
}

.dossier_fact dt {
  color: var(--text-muted);
  font-size: 0.8125rem;
  font-weight: 700;
}

.dossier_fact dd {
  margin: 0;
  color: var(--text-primary);
  line-height: 1.45;
}

.dossier_toc {
  margin-top: 1.375rem;
}

.dossier_toc ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.5rem;
  list-style: none;
}

.dossier_toc a {
  display: inline-flex;
  min-height: 2.25rem;
  align-items: center;
  padding-inline: 0.75rem;
  border-radius: var(--radius-xs);
  border: 1px solid var(--border-medium);
  color: var(--text-secondary);
  font-size: 0.875rem;
}

.dossier_toc a:hover {
  border-color: var(--accent-amber);
  color: var(--text-primary);
}

.dossier_toc_title {
  font-family: var(--font-display);
  font-weight: 800;
}

.dossier_body {
  max-width: var(--content-max-width);
}

.dossier_body section {
  margin-top: 2.25rem;
}

.dossier_body h2 {
  font-size: clamp(1.45rem, 4vw, 1.85rem);
  margin-bottom: 0.75rem;
}

.dossier_body h3 {
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
}

.dossier_body p,
.dossier_body li,
.dossier_body dd {
  color: var(--text-secondary);
  font-size: 1.0625rem;
  line-height: 1.7;
}

.dossier_body p + p {
  margin-top: 0.75rem;
}

.dossier_steps {
  display: grid;
  gap: 0.625rem;
  padding-left: 1.375rem;
}

.dossier_steps li::marker {
  color: var(--accent-amber);
  font-family: var(--font-display);
  font-weight: 800;
}

.dossier_modes {
  display: grid;
  gap: 0.625rem;
}

@media (min-width: 560px) {
  .dossier_modes {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.dossier_mode {
  padding: 0.75rem 0.875rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-soft);
  background: var(--bg-surface);
}

.dossier_mode dt {
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--text-primary);
}

.dossier_mode dd {
  margin: 0.125rem 0 0;
  font-size: 0.9375rem;
  line-height: 1.5;
}

.dossier_table_wrap {
  overflow-x: auto;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-soft);
}

.dossier_table {
  width: 100%;
  min-width: 32.5rem;
  border-collapse: collapse;
  font-size: 0.9375rem;
}

.dossier_table th,
.dossier_table td {
  padding: 0.625rem 0.75rem;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--border-soft);
}

.dossier_table thead th {
  background: var(--bg-elevated);
  color: var(--text-muted);
  font-size: 0.8125rem;
}

.dossier_table tbody th {
  color: var(--text-primary);
  font-weight: 700;
}

.dossier_table td {
  color: var(--text-secondary);
}

.dossier_table tbody tr:last-child > * {
  border-bottom: 0;
}

.dossier_tips {
  display: grid;
  gap: 0.625rem;
  list-style: none;
}

.dossier_tips li {
  position: relative;
  padding-left: 1.625rem;
}

.dossier_tips li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 0.1875rem;
  background: var(--gradient-flame);
}

.dossier_fit {
  display: grid;
  gap: 0.875rem;
}

@media (min-width: 560px) {
  .dossier_fit {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.dossier_fit ul {
  display: grid;
  gap: 0.5rem;
  padding-left: 1.125rem;
}

.dossier_fit_yes,
.dossier_fit_no {
  padding: 0.875rem 1rem;
  border-radius: var(--radius-md);
  background: var(--bg-surface);
}

.dossier_fit_yes {
  border-top: 3px solid var(--accent-mint);
}

.dossier_fit_no {
  border-top: 3px solid var(--accent-orange);
}

.dossier_faq {
  display: grid;
  gap: 0.625rem;
}

.dossier_faq details {
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-soft);
  background: var(--bg-surface);
}

.dossier_faq summary {
  cursor: pointer;
  padding: 0.875rem 1rem;
  color: var(--text-primary);
  font-weight: 700;
}

.dossier_faq details p {
  padding: 0 1rem 0.875rem;
}

.dossier_outro {
  display: grid;
  gap: 0.75rem;
  justify-items: start;
  margin-top: 2.5rem;
  padding: 1.25rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-accent);
  background: var(--stripe-texture), var(--gradient-screen);
}

.dossier_outro_text {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.25rem;
}

.dossier_related {
  margin-top: 2.5rem;
}

.dossier_related h2 {
  font-size: clamp(1.35rem, 4vw, 1.7rem);
}

.dossier_related ul {
  display: grid;
  gap: 0.875rem;
  margin-top: 0.875rem;
  list-style: none;
}

@media (min-width: 560px) {
  .dossier_related ul {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.dossier_related_link {
  display: grid;
  gap: 0.5rem;
  padding: 0.625rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-soft);
  background: var(--bg-surface);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.125rem;
}

.dossier_related_link img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-sm);
}

.dossier_related_link:hover {
  border-color: var(--accent-amber);
}

/* --- Plinth --- */
.plinth {
  margin-top: auto;
  background: var(--bg-elevated);
}

.plinth_divider {
  height: 0.25rem;
  background: var(--gradient-divider);
  box-shadow: var(--glow-orange);
}

.plinth_inner {
  width: 100%;
  max-width: var(--layout-max-width);
  margin-inline: auto;
  padding-inline: var(--layout-padding-x);
  padding-block: 2rem 1.125rem;
}

.plinth_grid {
  display: grid;
  gap: 1.75rem;
}

@media (min-width: 769px) {
  .plinth_grid {
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.8fr) minmax(0, 1fr);
    gap: 2.5rem;
  }
}

.plinth_about {
  display: grid;
  gap: 0.75rem;
  justify-items: start;
}

.plinth_home {
  display: inline-flex;
}

.plinth_logo {
  width: auto;
  height: 2.75rem;
}

.plinth_text {
  max-width: 44ch;
  color: var(--text-secondary);
  font-size: 0.875rem;
  line-height: 1.55;
}

.plinth_mail {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--accent-sky);
  font-weight: 700;
  font-size: 0.875rem;
  overflow-wrap: anywhere;
}

.plinth_mail:hover {
  color: var(--text-primary);
}

.plinth_col {
  display: grid;
  gap: 0.625rem;
  align-content: start;
}

.plinth_heading {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.0625rem;
  color: var(--text-primary);
}

.plinth_list {
  display: grid;
  gap: 0.5rem;
  list-style: none;
}

.plinth_link {
  color: var(--text-secondary);
  font-size: 0.9375rem;
}

.plinth_link:hover {
  color: var(--accent-amber);
}

.plinth_base {
  display: grid;
  gap: 0.375rem;
  margin-top: 1.75rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-soft);
}

.plinth_fine {
  color: var(--text-muted);
  font-size: 0.75rem;
  line-height: 1.5;
}

.plinth_copy {
  margin-left: 0.375rem;
  white-space: nowrap;
}

/* --- Codex --- */
.codex {
  width: 100%;
  max-width: var(--content-max-width);
  margin-inline: auto;
  padding-inline: var(--layout-padding-x);
  flex: 1;
  padding-block: 2.125rem 3.5rem;
  color: var(--text-primary);
}

.codex h1 {
  font-size: clamp(2rem, 6vw, 2.75rem);
  margin-bottom: 0.75rem;
  text-wrap: balance;
}

.codex h2 {
  margin: 2.25rem 0 0.75rem;
  font-size: clamp(1.4rem, 4vw, 1.75rem);
}

.codex h3 {
  margin: 1.375rem 0 0.5rem;
  font-size: 1.1875rem;
}

.codex p,
.codex li,
.codex dd {
  color: var(--text-secondary);
  font-size: 1.0625rem;
  line-height: 1.7;
}

.codex p + p {
  margin-top: 0.75rem;
}

.codex ul,
.codex ol {
  display: grid;
  gap: 0.5rem;
  margin-block: 0.75rem;
  padding-left: 1.375rem;
}

.codex a {
  color: var(--accent-sky);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.codex a:hover {
  color: var(--text-primary);
}

.codex strong {
  color: var(--text-primary);
}

.codex_lead {
  font-size: 1.1875rem;
  color: var(--text-secondary);
}

.codex_meta {
  margin-top: 0.375rem;
  color: var(--text-muted);
  font-size: 0.875rem;
}

.codex_toc {
  margin-top: 1.375rem;
  padding: 1rem 1.125rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-soft);
  background: var(--bg-surface);
}

.codex_toc ol {
  margin: 0.5rem 0 0;
}

.codex_toc_title {
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--text-primary);
}

.codex_callout {
  margin-top: 1.125rem;
  padding: 0.875rem 1rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-accent);
  background: var(--bg-elevated);
}

.codex_callout p {
  font-size: 1rem;
}

.codex_glossary {
  display: grid;
  gap: 0.625rem;
  margin-top: 0.75rem;
}

@media (min-width: 560px) {
  .codex_glossary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.codex_glossary div {
  padding: 0.75rem 0.875rem;
  border-radius: var(--radius-sm);
  background: var(--bg-surface);
  border: 1px solid var(--border-soft);
}

.codex_glossary dt {
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--accent-amber);
}

.codex_glossary dd {
  margin: 0.125rem 0 0;
  font-size: 0.9375rem;
  line-height: 1.5;
}

.codex_faq {
  display: grid;
  gap: 0.625rem;
  margin-top: 0.75rem;
}

.codex_faq details {
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-soft);
  background: var(--bg-surface);
}

.codex_faq summary {
  cursor: pointer;
  padding: 0.875rem 1rem;
  font-weight: 700;
  color: var(--text-primary);
}

.codex_faq details p {
  padding: 0 1rem 0.875rem;
}

/* --- Waypoint --- */
.waypoint_shell {
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 1.5rem var(--layout-padding-x);
  background: var(--bg-base);
}

.waypoint_panel {
  width: min(100%, 40rem);
  text-align: center;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  background: var(--gradient-panel);
  box-shadow: var(--shadow-card);
}

.waypoint_title {
  margin: 0 0 0.75rem;
  font-size: clamp(1.5rem, 5vw, 2rem);
}

.waypoint_text {
  margin: 0 0 1.25rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

.waypoint_back {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding: 0 1rem;
  border-radius: var(--radius-sm);
  background: var(--gradient-flame);
  color: var(--text-on-accent);
  font-weight: 700;
}

.waypoint_code {
  display: block;
  margin-bottom: 0.5rem;
  font-family: var(--font-display);
  font-size: clamp(3rem, 10vw, 5rem);
  font-weight: 800;
  line-height: 1;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
