/* ============================================================
   KODIAK TCG — Design tokens
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@500;600;700;900&family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@400;600;700&display=swap');

:root {
  /* color — tema claro, distinto del negro de Omega Store */
  --ink: #EDF1F4;
  /* fondo general, gris acero muy claro */
  --ink-2: #FFFFFF;
  /* tarjetas / paneles */
  --ink-3: #E2E8ED;
  /* borde / degradé sutil */
  --bone: #14171B;
  /* texto principal (casi negro) */
  --bone-dim: #5B626B;
  /* texto secundario */
  --red: #D9241E;
  --red-dim: #AD1D18;
  --frost: #1E7FA0;
  /* celeste/hielo profundo, legible sobre fondo claro */
  --frost-dim: #145A73;
  --gold: #A6771F;
  --on-accent: #FFFFFF;
  /* texto sobre botones de color solido */

  /* type */
  --f-display: 'Cinzel', serif;
  --f-body: 'Inter', sans-serif;
  --f-mono: 'JetBrains Mono', monospace;

  /* layout */
  --maxw: 1240px;
  --radius-card: 18px;
  --border-thin: 1px solid rgba(20, 23, 27, 0.10);
  --header-h: 78px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--bone);
  font-family: var(--f-body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

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

ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

h1,
h2,
h3 {
  font-family: var(--f-display);
  margin: 0;
  letter-spacing: 0.02em;
}

p {
  margin: 0;
}

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 28px;
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}

/* ---------- Textured background ---------- */
.bg-noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    radial-gradient(circle at 15% 20%, rgba(217, 36, 30, 0.06), transparent 40%),
    radial-gradient(circle at 85% 75%, rgba(30, 127, 160, 0.07), transparent 45%);
}

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(237, 241, 244, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: var(--border-thin);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand img {
  height: 44px;
  width: 44px;
  object-fit: cover;
  border-radius: 50%;
}

.brand-name {
  font-family: var(--f-display);
  font-size: 1.15rem;
  letter-spacing: 0.08em;
}

.brand-name span {
  color: var(--red);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 22px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 34px;
}

.nav-links a {
  font-size: 0.86rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--bone-dim);
  transition: color 0.2s ease;
  position: relative;
  padding-bottom: 4px;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--bone);
}

.nav-links a.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 2px;
  background: var(--red);
}

.social-icons {
  display: flex;
  align-items: center;
  gap: 10px;
}

.social-icons a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: var(--border-thin);
  color: var(--bone-dim);
  transition: all 0.2s ease;
}

.social-icons a svg {
  display: block;
}

.social-icons a:hover {
  border-color: var(--frost);
  color: var(--frost);
  transform: translateY(-2px);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.hamburger span {
  width: 24px;
  height: 2px;
  background: var(--bone);
  transition: all 0.25s ease;
}

.hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger.open span:nth-child(2) {
  opacity: 0;
}

.hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  z-index: 1;
  padding: 96px 0 64px;
  overflow: hidden;
}

.hero .wrap {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.eyebrow {
  font-family: var(--f-mono);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--red-dim);
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}

.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: var(--red-dim);
}

.hero h1 {
  font-size: clamp(2.4rem, 4.6vw, 3.8rem);
  line-height: 1.05;
  font-weight: 700;
}

.hero h1 em {
  font-style: normal;
  color: var(--frost);
}

.hero p.lead {
  margin-top: 22px;
  max-width: 46ch;
  color: var(--bone-dim);
  font-size: 1.05rem;
}

.hero-actions {
  display: flex;
  gap: 16px;
  margin-top: 34px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 26px;
  font-family: var(--f-mono);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: 10px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.2s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--red);
  color: var(--on-accent);
}

.btn-primary:hover {
  background: var(--red-dim);
}

.btn-outline {
  border-color: rgba(20, 23, 27, 0.22);
  color: var(--bone);
}

.btn-outline:hover {
  border-color: var(--frost);
  color: var(--frost);
}

/* ---------- Hero visual: emblema circular con el logo (marca, no navegación) ---------- */
.hero-emblem {
  position: relative;
  width: 100%;
  max-width: 340px;
  aspect-ratio: 1/1;
  margin: 0 auto;
}
.emblem-ring {
  position: absolute; inset: 0; border-radius: 50%;
  border: 1px solid rgba(20,23,27,0.14);
  animation: emblem-spin 55s linear infinite;
}
.emblem-ring.ring-2 {
  inset: 32px; border-style: dashed; border-color: rgba(30,127,160,0.35);
  animation-duration: 70s; animation-direction: reverse;
}
.emblem-ring.ring-3 { inset: 60px; border-color: rgba(217,36,30,0.2); animation: none; }
@keyframes emblem-spin { to { transform: rotate(360deg); } }
.emblem-logo {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 46%; height: 46%; object-fit: cover; border-radius: 50%;
  background: var(--ink-2); border: 1px solid rgba(20,23,27,0.10);
  filter: drop-shadow(0 18px 30px rgba(20,23,27,0.18));
}

/* ============================================================
   ÍNDICE DE CATEGORÍAS (tabla de contenidos, no grilla de íconos)
   ============================================================ */
.chapter-list { border-top: var(--border-thin); }
.chapter-row {
  display: flex; align-items: center; gap: 22px; padding: 20px 6px;
  border-bottom: var(--border-thin);
  transition: padding-left 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
.chapter-row:hover { padding-left: 16px; border-color: rgba(217,36,30,0.35); background: var(--ink-2); }
.chapter-index { font-family: var(--f-mono); font-size: 0.82rem; color: var(--bone-dim); width: 30px; flex-shrink: 0; }
.chapter-icon { font-size: 1.5rem; width: 40px; text-align: center; flex-shrink: 0; }
.chapter-info { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.chapter-info .chapter-name { font-family: var(--f-display); font-size: 1.05rem; }
.chapter-info .chapter-count { font-family: var(--f-mono); font-size: 0.76rem; color: var(--bone-dim); }
.chapter-arrow { font-family: var(--f-mono); color: var(--frost); flex-shrink: 0; }

/* ============================================================
   CÓMO FUNCIONA (paso a paso)
   ============================================================ */
.how-it-works { padding-top: 24px; }
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.step-card {
  background: var(--ink-2); border: var(--border-thin); border-radius: 16px; padding: 26px 22px;
  position: relative;
}
.step-num {
  display: inline-block; font-family: var(--f-mono); font-size: 0.8rem; font-weight: 700;
  color: var(--red); border: 1px solid rgba(217,36,30,0.3); border-radius: 999px; padding: 4px 12px;
  margin-bottom: 14px;
}
.step-card h3 { font-size: 1.1rem; margin-bottom: 8px; }
.step-card p { color: var(--bone-dim); font-size: 0.92rem; }

/* ============================================================
   SECTION HEADINGS
   ============================================================ */
.section {
  position: relative;
  z-index: 1;
  padding: 70px 0;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 38px;
  gap: 20px;
  flex-wrap: wrap;
}

.section-head h2 {
  font-size: clamp(1.6rem, 2.6vw, 2.2rem);
}

.section-head p {
  color: var(--bone-dim);
  max-width: 40ch;
  margin-top: 8px;
}

.section-link {
  font-family: var(--f-mono);
  font-size: 0.8rem;
  color: var(--frost);
  white-space: nowrap;
}

.section-link:hover {
  text-decoration: underline;
}

/* ============================================================
   CARROUSEL DE DESTACADOS (autoplay)
   ============================================================ */
.carousel-shell {
  position: relative;
}

.carousel-track {
  display: flex;
  gap: 22px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 10px;
  scrollbar-width: none;
}

.carousel-track::-webkit-scrollbar {
  display: none;
}

.carousel-track .card {
  flex: 0 0 260px;
  scroll-snap-align: start;
}

.carousel-nav {
  display: flex;
  gap: 10px;
  margin-top: 18px;
  justify-content: flex-end;
}

.carousel-nav button {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(20, 23, 27, 0.18);
  background: var(--ink-2);
  color: var(--bone);
  cursor: pointer;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.carousel-nav button:hover {
  border-color: var(--red);
  color: var(--red);
}

/* ============================================================
   TARJETA DE PRODUCTO
   ============================================================ */
.card {
  position: relative;
  border-radius: var(--radius-card);
  background: var(--ink-2);
  border: var(--border-thin);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.card:hover {
  transform: translateY(-6px);
  border-color: rgba(217, 36, 30, 0.35);
  box-shadow: 0 24px 44px rgba(20, 23, 27, 0.14);
}

.card::after {
  content: "";
  position: absolute;
  inset: 7px;
  border-radius: 12px;
  pointer-events: none;
  border: 1px solid rgba(20, 23, 27, 0.06);
}

.card-art {
  position: relative;
  aspect-ratio: 1/1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--ink-2);
}

.card-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.card-art.has-img {
  background: var(--ink-2);
}

.card-art.has-img img {
  object-fit: contain;
  padding: 16px;
  box-sizing: border-box;
}

.card-art .art-placeholder {
  font-family: var(--f-mono);
  font-size: 0.66rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(242, 241, 237, 0.55);
  text-align: center;
  padding: 0 14px;
}

.card .card-art::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  background: linear-gradient(115deg, transparent 30%, rgba(143, 216, 232, 0.5) 48%, rgba(255, 255, 255, 0.7) 50%, rgba(217, 36, 30, 0.45) 52%, transparent 70%);
  transform: translateX(-120%);
}

.card:hover .card-art::before {
  opacity: 1;
  animation: sheen 1.1s ease forwards;
}

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

.card-body {
  padding: 16px 16px 18px;
  position: relative;
  z-index: 1;
}

.card-cat {
  font-family: var(--f-mono);
  font-size: 0.68rem;
  color: var(--bone-dim);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.card-name {
  font-family: var(--f-body);
  font-weight: 600;
  font-size: 0.95rem;
  margin-top: 6px;
  line-height: 1.3;
  min-height: 2.5em;
}

.card-foot {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  margin-top: 14px;
}

.card-cta {
  font-family: var(--f-mono);
  font-size: 0.72rem;
  color: var(--frost);
}

/* ============================================================
   BANDA REDES
   ============================================================ */
.ig-band {
  border-top: var(--border-thin);
  border-bottom: var(--border-thin);
  padding: 34px 0;
  background: var(--ink-2);
}

.ig-band .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.ig-band-text {
  font-family: var(--f-mono);
  font-size: 0.85rem;
  color: var(--bone-dim);
  display: flex;
  align-items: center;
  gap: 10px;
}

.ig-band-icons {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--frost);
}

.ig-band strong {
  color: var(--bone);
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  padding: 54px 0 34px;
  position: relative;
  z-index: 1;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.footer-brand img {
  height: 38px;
  width: 38px;
  object-fit: cover;
  border-radius: 50%;
}

.site-footer h4 {
  font-family: var(--f-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--bone-dim);
  margin-bottom: 14px;
}

.site-footer ul li {
  margin-bottom: 9px;
}

.site-footer ul a:hover {
  color: var(--frost);
}

.footer-bottom {
  margin-top: 46px;
  padding-top: 22px;
  border-top: var(--border-thin);
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
  color: var(--bone-dim);
  flex-wrap: wrap;
  gap: 10px;
}

/* ============================================================
   PÁGINA CATÁLOGO
   ============================================================ */
.catalog-header {
  padding: 54px 0 30px;
  position: relative;
  z-index: 1;
}

.catalog-header h1 {
  font-size: clamp(2rem, 3.6vw, 2.7rem);
}

.catalog-header p {
  color: var(--bone-dim);
  margin-top: 12px;
  max-width: 55ch;
}

.catalog-controls {
  position: sticky;
  top: var(--header-h);
  z-index: 40;
  background: rgba(237, 241, 244, 0.94);
  backdrop-filter: blur(10px);
  border-top: var(--border-thin);
  border-bottom: var(--border-thin);
  padding: 18px 0;
}

.controls-row {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
}

.search-box {
  flex: 1;
  min-width: 220px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--ink-2);
  border: var(--border-thin);
  border-radius: 10px;
  padding: 10px 14px;
}

.search-box input {
  background: none;
  border: none;
  outline: none;
  color: var(--bone);
  font-family: var(--f-body);
  width: 100%;
  font-size: 0.92rem;
}

.search-box input::placeholder {
  color: var(--bone-dim);
}

.chip-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.chip {
  font-family: var(--f-mono);
  font-size: 0.76rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(20, 23, 27, 0.18);
  cursor: pointer;
  background: var(--ink-2);
  color: var(--bone-dim);
  transition: all 0.2s ease;
  white-space: nowrap;
}

.chip:hover {
  border-color: var(--bone);
  color: var(--bone);
}

.chip.active {
  background: var(--red);
  border-color: var(--red);
  color: var(--on-accent);
}

.sort-select {
  background: var(--ink-2);
  border: var(--border-thin);
  border-radius: 10px;
  color: var(--bone);
  font-family: var(--f-mono);
  font-size: 0.78rem;
  padding: 10px 12px;
  cursor: pointer;
}

.catalog-meta {
  padding: 22px 0 0;
  font-family: var(--f-mono);
  font-size: 0.8rem;
  color: var(--bone-dim);
}

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 22px;
  padding: 26px 0 70px;
}

.empty-state {
  text-align: center;
  padding: 80px 20px;
  color: var(--bone-dim);
}

.empty-state h3 {
  font-family: var(--f-display);
  color: var(--bone);
  margin-bottom: 10px;
}

/* ---------- Modal producto ---------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 17, 20, 0.55);
  backdrop-filter: blur(4px);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-box {
  background: var(--ink-2);
  border: var(--border-thin);
  border-radius: 20px;
  max-width: 560px;
  width: 100%;
  display: grid;
  grid-template-columns: 200px 1fr;
  overflow: hidden;
  box-shadow: 0 30px 70px rgba(15, 17, 20, 0.35);
  transform: translateY(16px);
  transition: transform 0.25s ease;
}

.modal-overlay.open .modal-box {
  transform: translateY(0);
}

.modal-art {
  aspect-ratio: 1/1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--ink-2);
}

.modal-art.has-img {
  background: var(--ink-2);
}

.modal-art.has-img img {
  object-fit: contain;
  padding: 16px;
  box-sizing: border-box;
}

.modal-art .art-placeholder {
  font-family: var(--f-mono);
  font-size: 0.66rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(242, 241, 237, 0.55);
  text-align: center;
  padding: 0 14px;
}

.modal-info {
  padding: 26px 24px;
  position: relative;
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 16px;
  background: none;
  border: none;
  color: var(--bone-dim);
  font-size: 1.3rem;
  cursor: pointer;
}

.modal-close:hover {
  color: var(--bone);
}

.modal-info .card-cat {
  display: block;
}

.modal-info h3 {
  margin-top: 8px;
  font-size: 1.2rem;
}

.modal-info .modal-desc {
  margin-top: 12px;
  color: var(--bone-dim);
  font-size: 0.92rem;
}

.modal-info .modal-social {
  display: flex;
  gap: 10px;
  margin-top: 22px;
}

.modal-info .btn {
  flex: 1;
  justify-content: center;
}

/* ============================================================
   PÁGINA GUÍAS
   ============================================================ */
.guide-header { padding: 54px 0 30px; position: relative; z-index: 1; }
.guide-header h1 { font-size: clamp(2rem, 3.6vw, 2.7rem); }
.guide-header p { color: var(--bone-dim); margin-top: 12px; max-width: 55ch; }

.guide-tabs { display: flex; gap: 8px; flex-wrap: wrap; padding: 0 0 32px; }
.guide-active-title { font-size: 1.3rem; margin-bottom: 20px; }
.guide-tab {
  font-family: var(--f-mono); font-size: 0.76rem; letter-spacing: 0.03em; text-transform: uppercase;
  padding: 9px 16px; border-radius: 999px; border: 1px solid rgba(20,23,27,0.18); cursor: pointer;
  background: var(--ink-2); color: var(--bone-dim); transition: all 0.2s ease; white-space: nowrap;
}.guide-tab:hover { border-color: var(--bone); color: var(--bone); }
.guide-tab.active { background: var(--red); border-color: var(--red); color: var(--on-accent); }

.guide-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; padding-bottom: 80px;
}
.guide-plate {
  background: var(--bone); color: var(--ink); border-radius: 16px; padding: 28px 22px; min-height: 170px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease; box-shadow: 0 14px 30px rgba(20,23,27,0.10);
  border: none; font-family: inherit; cursor: pointer; width: 100%;
}
.guide-plate:hover { transform: translateY(-5px); box-shadow: 0 22px 44px rgba(20,23,27,0.18); }
.guide-plate-icon { font-size: 1.7rem; margin-bottom: 10px; }
.guide-plate h3 { font-family: var(--f-body); font-weight: 700; font-size: 1.02rem; margin-bottom: 8px; }
.guide-plate p { font-family: var(--f-body); font-size: 0.82rem; color: rgba(242,241,237,0.6); line-height: 1.4; }
.guide-plate-cta {
  display: block; margin-top: 16px; font-family: var(--f-mono); font-size: 0.72rem; letter-spacing: 0.04em;
  text-transform: uppercase; color: var(--frost);
}

/* ---------- Modal de guía ---------- */
.guide-modal-box {
  background: var(--ink-2); border: var(--border-thin); border-radius: 20px; max-width: 480px; width: 100%;
  padding: 30px 26px; position: relative; box-shadow: 0 30px 70px rgba(15,17,20,0.35);
  transform: translateY(16px); transition: transform 0.25s ease;
}
.modal-overlay.open .guide-modal-box { transform: translateY(0); }
.guide-modal-icon { display: block; font-size: 1.8rem; margin-bottom: 8px; }
.guide-modal-box h3 { margin-top: 8px; font-size: 1.25rem; }
.guide-modal-box .modal-desc { margin-top: 14px; color: var(--bone-dim); font-size: 0.95rem; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 980px) {
  .hero .wrap {
    grid-template-columns: 1fr;
  }

  .hero-emblem {
    max-width: 220px;
    order: -1;
    margin-bottom: 10px;
  }

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

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

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

@media (max-width: 720px) {
  .nav-right {
    gap: 12px;
  }

  .nav-links {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--ink);
    border-bottom: var(--border-thin);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    z-index: 49;
  }

  .nav-links.open {
    max-height: 260px;
  }

  .nav-links a {
    width: 100%;
    padding: 16px 28px;
    border-bottom: var(--border-thin);
  }

  .hamburger {
    display: flex;
  }

  .catalog-grid {
    grid-template-columns: repeat(2, minmax(140px, 1fr));
    gap: 14px;
  }

  .chapter-row {
    gap: 14px;
    padding: 16px 4px;
  }

  .chapter-icon {
    width: 30px;
  }

  .modal-box {
    grid-template-columns: 1fr;
  }

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

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

/* Keyboard focus visibility */
a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 2px solid var(--frost);
  outline-offset: 2px;
}