/* ═══════════════════════════════════════════════════════
   GameCalendar — style.css
   Dark · Lima + Rosa · Concept rebuild
═══════════════════════════════════════════════════════ */

:root {
  /* ── Fondos: negro frío con tinte índigo ── */
  --bg:       #08090c;
  --bg-2:     #0d0e12;
  --panel:    #131520;
  --panel-2:  #181a25;

  /* ── Líneas muy sutiles ── */
  --line:     #1f2130;
  --line-2:   #272a3a;

  /* ── Texto: escala con leve tinte violeta ── */
  --ink:      #eeedf2;
  --ink-2:    #9a98ac;
  --ink-3:    #5c5a70;

  /* ── Acento único: ámbar dorado desaturado ── */
  --accent:     #e8a93a;
  --accent-ink: #0d0e12;
  --accent-hi:  #f0bf60;
  --accent-dim: color-mix(in oklab, var(--accent) 14%, var(--panel));

  /* ── Evento: azul periwinkle (reemplaza el rosa saturado) ── */
  --event: #5b8dee;
  --beta:  #5b8dee;

  /* ── backward-compat aliases para game.html ── */
  --text:       var(--ink);
  --text-mid:   var(--ink-2);
  --text-faint: var(--ink-3);
  --bg-card:    var(--panel);
  --bg-raised:  var(--panel-2);
  --bg-hi:      var(--panel-2);
  --bg-modal:   var(--panel);
  --border:     var(--line);
  --border-hi:  var(--line-2);
  --green:      var(--accent);
  --green-dim:  color-mix(in oklab, var(--accent) 14%, var(--panel));
  --red:        var(--event);
  --red-dim:    color-mix(in oklab, var(--event) 14%, var(--panel));
  --gold:       var(--accent);
  --gold-dim:   color-mix(in oklab, var(--accent) 14%, var(--panel));
  --pink:       var(--event);
  --pink-dim:   color-mix(in oklab, var(--event) 14%, var(--panel));
  --blue:       var(--event);
  --hdr-bg:     var(--bg-2);
  --hdr-text:   var(--ink);

  /* ── Geometría: radios simplificados ── */
  --radius:    12px;
  --radius-sm:  7px;
  --r:          7px;
  --r-lg:      10px;
  --r-xl:      12px;

  --sidebar:   280px;
  --shadow:    0 20px 48px -16px rgba(0, 0, 0, .72);
  --ease-out:  cubic-bezier(.22, 1, .36, 1);
}

/* ── TEMA CLARO ── */
html[data-theme="light"] {
  color-scheme: light;
  --bg:       #f3f2f8;
  --bg-2:     #eceaf4;
  --panel:    #ffffff;
  --panel-2:  #f0eef8;
  --line:     #dddaea;
  --line-2:   #cbc8e0;
  --ink:      #17162a;
  --ink-2:    #56546e;
  --ink-3:    #9694b0;
  --accent:     #b87c18;
  --accent-ink: #ffffff;
  --accent-hi:  #cc9224;
  --accent-dim: color-mix(in oklab, #b87c18 12%, #ffffff);
  --event:    #3b6dd4;
  --beta:     #3b6dd4;
  --hdr-bg:   #ffffff;
  --hdr-text: #17162a;
  --shadow:   0 20px 48px -16px rgba(0, 0, 0, .10);
  --green-dim:  color-mix(in oklab, #b87c18 12%, #ffffff);
  --red-dim:    color-mix(in oklab, #3b6dd4 10%, #ffffff);
  --gold-dim:   color-mix(in oklab, #b87c18 12%, #ffffff);
  --pink-dim:   color-mix(in oklab, #3b6dd4 10%, #ffffff);
}

/* ── RESET ── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html {
  color-scheme: dark;
  transition: background .25s, color .25s;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'Space Grotesk', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  min-height: 100dvh;
  position: relative;
  line-height: 1.45;
  overflow-x: hidden;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

input,
select {
  font-family: inherit;
  color: inherit;
}

img {
  display: block;
}

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

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

/* ── ATMOSPHERE ── */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(900px 600px at 78% -8%, color-mix(in oklab, var(--accent) 7%, transparent), transparent 60%),
    radial-gradient(700px 520px at 4% 8%, color-mix(in oklab, var(--event) 6%, transparent), transparent 55%);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: .045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ── APP LAYOUT ── */
.app {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
}

/* ══════════════════════════════════════════════════════════
   GLOBAL HEADER
══════════════════════════════════════════════════════════ */
.app-header {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 20px;
  padding: 0 32px;
  height: 60px;
  flex-shrink: 0;
  position: sticky;
  top: 0;
  z-index: 30;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}

.header-brand {
  display: flex;
  align-items: baseline;
  gap: 14px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 800;
  font-size: 17px;
  letter-spacing: -.02em;
  line-height: 1;
  color: var(--ink);
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
}
.logo:hover { opacity: .8; }

.logo-mark {
  flex: 0 0 auto;
  display: block;
}
.logo-mark--light { display: none; }
.logo-mark--dark  { display: block; }
html[data-theme="light"] .logo-mark--light { display: block; }
html[data-theme="light"] .logo-mark--dark  { display: none; }

.logo b {
  color: var(--accent);
  font-style: normal;
}

/* DEV+ micro-component */
.dev-plus {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: var(--ink-3);
  letter-spacing: .04em;
  white-space: nowrap;
}

.dev-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

.dev-text {
  opacity: .7;
}

/* Section navigation */
.header-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
}

/* Blog button in main header nav */
.blog-nav-btn {
  padding: 6px 16px;
  border-radius: 20px;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .02em;
  text-decoration: none;
  white-space: nowrap;
  transition: background .14s, transform .1s;
}
.blog-nav-btn:hover { background: var(--accent-hi); }
.blog-nav-btn:active { transform: scale(.96); }

.header-right {
  display: flex;
  justify-content: flex-end;
}

/* Segmented control (moved to header) */
.seg {
  display: flex;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 3px;
  gap: 2px;
}

.seg button {
  flex: 1;
  border: 0;
  background: transparent;
  color: var(--ink-3);
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 12px;
  padding: 6px 14px;
  border-radius: 6px;
  cursor: pointer;
  transition: .15s;
  white-space: nowrap;
}

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

.seg button:not([aria-pressed="true"]):hover {
  color: var(--ink);
  background: var(--panel);
}

/* Search in header */
.search {
  display: flex;
  align-items: center;
  gap: 9px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 8px 13px;
  width: 240px;
  color: var(--ink-3);
  transition: border-color .15s, width .2s var(--ease-out);
}

.search:focus-within {
  border-color: var(--line-2);
  width: 280px;
}

.search input {
  border: 0;
  background: transparent;
  color: var(--ink);
  font-size: 13px;
  outline: none;
  width: 100%;
  min-width: 0;
}

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

.search-clear {
  font-size: 16px;
  color: var(--ink-3);
  line-height: 1;
  padding: 0 2px;
  flex-shrink: 0;
  transition: color .12s;
}

.search-clear:hover {
  color: var(--ink);
}

/* ══════════════════════════════════════════════════════════
   FILTER STRIP — contextual, visible on search focus
══════════════════════════════════════════════════════════ */
.filter-strip {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height .22s var(--ease-out), opacity .18s, padding .22s;
  padding: 0 32px;
  border-bottom: 1px solid transparent;
  pointer-events: none;
}

.filter-strip.active {
  max-height: 80px;
  opacity: 1;
  padding: 14px 32px;
  border-bottom-color: var(--line);
  pointer-events: auto;
}

.fs-row {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.fs-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.fs-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9.5px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-3);
  white-space: nowrap;
}

/* Platform chips */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.chip {
  border: 1px solid var(--line-2);
  background: var(--panel);
  color: var(--ink-2);
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: .02em;
  padding: 5px 10px;
  min-height: 30px;
  border-radius: 6px;
  cursor: pointer;
  transition: border-color .15s, color .15s, background .15s;
  display: inline-flex;
  align-items: center;
}

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

.chip[aria-pressed="true"] {
  background: color-mix(in oklab, var(--accent) 16%, var(--panel));
  border-color: color-mix(in oklab, var(--accent) 55%, transparent);
  color: var(--ink);
}

.fs-select {
  background: var(--panel);
  border: 1px solid var(--line);
  color: var(--ink);
  font-size: 12px;
  padding: 5px 28px 5px 9px;
  border-radius: 7px;
  cursor: pointer;
  outline: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='%236f7480' stroke-width='1.6'%3E%3Cpath d='M3 4.5 6 8l3-3.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 8px center;
  transition: border-color .15s;
  min-height: 30px;
}

.fs-select:focus {
  border-color: var(--line-2);
}

.fs-select option {
  background: var(--panel);
}

.fs-reset {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  color: var(--ink-3);
  padding: 5px 9px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: transparent;
  cursor: pointer;
  transition: color .15s, border-color .15s;
  white-space: nowrap;
  margin-left: auto;
}

.fs-reset:hover {
  color: var(--accent);
  border-color: color-mix(in oklab, var(--accent) 40%, var(--line));
}

/* ── MAIN ── */
.main {
  padding: 28px 32px 60px;
  display: flex;
  flex-direction: column;
  gap: 40px;
  min-width: 0;
  flex: 1;
}

/* Topbar: solo fecha + título de sección */
.topbar {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

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

.g-date {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: .10em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.greeting h1 {
  margin: 0;
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 800;
  font-size: 36px;
  letter-spacing: -.03em;
  line-height: 1;
}

.icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--ink-2);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: .15s;
  position: relative;
}

.icon-btn:hover {
  border-color: var(--line-2);
  color: var(--ink);
}

.icon-btn .badge {
  position: absolute;
  top: -5px;
  right: -5px;
  background: var(--accent);
  color: var(--accent-ink);
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  font-weight: 700;
  min-width: 16px;
  height: 16px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  padding: 0 4px;
}

/* Section header */
.sec-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.sec-title {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.kicker {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -.02em;
  color: var(--ink);
}

.ki-lime {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  flex-shrink: 0;
  background: var(--accent);
}

.ki-pink {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  flex-shrink: 0;
  background: var(--event);
}

.sec-title .sub {
  font-size: 13px;
  color: var(--ink-2);
}

.nav-arrows {
  display: flex;
  gap: 8px;
}

.nav-arrows button {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid var(--line-2);
  background: var(--panel);
  color: var(--ink);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: .15s;
}

.nav-arrows button:hover {
  background: var(--accent);
  color: var(--accent-ink);
  border-color: var(--accent);
}

.nav-arrows button:active {
  transform: translateY(1px);
}

/* ── CAROUSEL ── */
.rail {
  display: flex;
  gap: 32px;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding-bottom: 12px;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: var(--line-2) transparent;
}

.rail::-webkit-scrollbar {
  height: 6px;
}

.rail::-webkit-scrollbar-track {
  background: transparent;
}

.rail::-webkit-scrollbar-thumb {
  background: var(--line-2);
  border-radius: 20px;
}

.day-group {
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex: 0 0 auto;
  scroll-snap-align: start;
}

.day-label {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding-left: 2px;
}

.day-label .dnum {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 800;
  font-size: 20px;
  line-height: 1;
  color: var(--ink);
}

.day-label .dname {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.day-label.is-today .dnum {
  color: var(--accent);
}

.day-cards {
  display: flex;
  gap: 14px;
}

/* ── GAME CARD ── */
.game-card {
  width: 212px;
  flex: 0 0 auto;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition: .2s;
  display: flex;
  flex-direction: column;
}

.game-card:hover {
  transform: translateY(-4px);
  border-color: var(--line-2);
  box-shadow: var(--shadow);
}

.cover {
  position: relative;
  aspect-ratio: 3/4;
  overflow: hidden;
  flex-shrink: 0;
}

.cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .3s var(--ease-out);
}

.game-card:hover .cover img {
  transform: scale(1.04);
}

.cover .ph {
  position: absolute;
  inset: 0;
  background-color: var(--ph-a, #1c2230);
  background-image: repeating-linear-gradient(135deg, transparent 0 11px,
      color-mix(in oklab, var(--ph-b, #2b3550) 60%, transparent) 11px 12px);
}

.cover .ph::after {
  content: attr(data-ph);
  position: absolute;
  top: 10px;
  left: 10px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 8.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .4);
}

.cover .scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(8, 9, 12, .55) 70%, rgba(8, 9, 12, .95));
}

.cover .ctitle {
  position: absolute;
  left: 13px;
  right: 13px;
  bottom: 12px;
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 700;
  font-size: 17px;
  line-height: 1.08;
  letter-spacing: -.01em;
  text-shadow: 0 2px 12px rgba(0, 0, 0, .6);
}

.cover .score {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(8, 9, 12, .72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, .10);
  color: var(--accent);
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  font-size: 12px;
  width: 32px;
  height: 32px;
  border-radius: 7px;
  display: grid;
  place-items: center;
}

.cover .score.tbd {
  color: var(--ink-3);
  font-size: 8.5px;
}

.cover .ea-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(8, 9, 12, .75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(16, 185, 129, .4);
  color: #10B981;
  font-family: 'JetBrains Mono', monospace;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 4px 7px;
  border-radius: 6px;
  white-space: nowrap;
}

.card-foot {
  padding: 11px 13px 13px;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.plats {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
}

.plat {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--ink-2);
  border: 1px solid var(--line-2);
  border-radius: 5px;
  padding: 2px 6px;
}

.genre {
  font-size: 12px;
  color: var(--ink-3);
}

/* Rail empty / search */
.rail-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 200px;
  color: var(--ink-3);
  font-size: 14px;
  flex: 1;
}

.day-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 160px;
  min-height: 180px;
  color: var(--ink-3);
  font-size: 12px;
}

/* Skeleton */
@keyframes shimmer {
  0% {
    background-position: -500px 0;
  }

  100% {
    background-position: 500px 0;
  }
}

.skel-cover {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--panel) 25%, var(--panel-2) 50%, var(--panel) 75%);
  background-size: 500px 100%;
  animation: shimmer 1.4s infinite linear;
}

.skel {
  background: linear-gradient(90deg, var(--panel) 25%, var(--panel-2) 50%, var(--panel) 75%);
  background-size: 500px 100%;
  animation: shimmer 1.4s infinite linear;
}

/* ── EVENTS ── */
.events-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.event-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
  overflow: hidden;
  transition: border-color .15s, transform .15s, box-shadow .15s;
  cursor: pointer;
}

.event-card:hover {
  border-color: var(--line-2);
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.event-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 16px;
  bottom: 16px;
  width: 2px;
  border-radius: 1px;
  background: var(--ec, var(--event));
  opacity: .7;
}

.event-card.live {
  border-color: color-mix(in oklab, var(--event) 45%, transparent);
}

.ev-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.ev-type {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ec, var(--event));
  display: flex;
  align-items: center;
  gap: 7px;
}

.ev-type i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  display: block;
}

.ev-live-now {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .1em;
  color: var(--event);
  text-transform: uppercase;
}

.ev-live-now i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--event);
  animation: pulse 1.4s infinite;
  display: block;
}

@keyframes pulse {

  0%,
  100% {
    opacity: 1;
    box-shadow: 0 0 0 0 color-mix(in oklab, var(--event) 60%, transparent);
  }

  50% {
    opacity: .5;
    box-shadow: 0 0 0 5px transparent;
  }
}

.ev-name {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 700;
  font-size: 19px;
  letter-spacing: -.015em;
  line-height: 1.15;
}

.ev-desc {
  font-size: 13px;
  color: var(--ink-2);
  margin-top: -4px;
}

.ev-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.ev-when {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.ev-when .date {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
}

.ev-when .rel {
  font-size: 11.5px;
  color: var(--ink-3);
}

.ev-count {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  font-size: 13px;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--line-2);
  border-radius: 9px;
  padding: 6px 11px;
  letter-spacing: .02em;
  white-space: nowrap;
}

.ev-cta {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-weight: 600;
  font-size: 13px;
  color: var(--accent-ink);
  background: var(--accent);
  border: 0;
  border-radius: 9px;
  padding: 8px 14px;
  cursor: pointer;
  font-family: inherit;
  transition: .15s;
  white-space: nowrap;
}

.ev-cta:hover {
  filter: brightness(1.08);
}

.ev-cta.ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line-2);
}

.ev-cta.ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* Evento finalizado */
.event-card.finished {
  opacity: .78;
}

.ev-fin-badge {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-3);
  background: var(--panel);
  border: 1px solid var(--line-2);
  border-radius: 7px;
  padding: 4px 9px;
}

/* Thumbnail YouTube en tarjeta de evento */
.ev-video {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 16/9;
  border: 1px solid var(--line);
  transition: border-color .15s;
}

.ev-video:hover {
  border-color: var(--accent);
}

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

.ev-play-btn {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(8, 9, 12, .75);
  backdrop-filter: blur(4px);
  color: #fff;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  padding: 5px 14px;
  border-radius: 99px;
  border: 1px solid rgba(255, 255, 255, .18);
  white-space: nowrap;
  pointer-events: none;
}

.ev-video.is-live .ev-play-btn {
  background: color-mix(in oklab, var(--event) 80%, rgba(8, 9, 12, .5));
}

/* Botón Twitch */
.ev-twitch-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid var(--line-2);
  background: var(--panel);
  color: var(--ink-2);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: border-color .14s, color .14s;
}

.ev-twitch-btn:hover {
  border-color: #9147ff;
  color: #9147ff;
}

/* Event logo banner */
.ev-logo {
  margin: -20px -22px 18px;
  border-radius: var(--radius) var(--radius) 0 0;
  overflow: hidden;
  background: linear-gradient(160deg, var(--panel-2) 0%, var(--bg-2) 100%);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 160px;
  padding: 22px 28px;
}

.ev-logo img {
  max-height: 100px;
  max-width: 85%;
  object-fit: contain;
  object-position: center;
  filter: drop-shadow(0 4px 16px rgba(0, 0, 0, .6));
}

/* Botón "Ver todos los eventos" */
.events-show-more {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 24px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-2);
  background: var(--panel);
  color: var(--ink-2);
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color .15s, color .15s, background .15s;
  width: 100%;
  margin-top: 4px;
}

.events-show-more:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: color-mix(in oklab, var(--accent) 8%, var(--panel));
}

.esm-count {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 700;
  background: var(--accent);
  color: var(--accent-ink);
  padding: 2px 7px;
  border-radius: 999px;
}

/* Events empty */
.events-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 40px 20px;
  color: var(--ink-3);
}

.events-empty p {
  font-size: 14px;
  line-height: 1.7;
}

.events-empty .sub {
  font-size: 12px;
  margin-top: 4px;
  opacity: .7;
}


/* ══════════════════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════════════════ */

/* Tablet (≤ 900px): collapse header, stack search */
@media (max-width: 900px) {
  .app-header {
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
    height: auto;
    padding: 12px 20px;
    gap: 10px;
  }

  .header-brand {
    grid-column: 1;
    grid-row: 1;
  }

  .header-nav {
    grid-column: 2;
    grid-row: 1;
    justify-content: flex-end;
  }

  .header-right {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-content: stretch;
  }

  .search,
  .search:focus-within {
    width: 100%;
  }

  .main {
    padding: 20px 20px 60px;
    gap: 32px;
  }

  .greeting h1 {
    font-size: 28px;
  }

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

  .nav-arrows {
    display: none;
  }

  .filter-strip.active {
    padding: 12px 20px;
  }

  .fs-row {
    gap: 14px;
  }
}

/* Phone (≤ 540px) */
@media (max-width: 540px) {
  .app-header {
    padding: 10px 16px;
  }

  .logo {
    font-size: 15px;
  }

  .logo-mark {
    width: 22px;
    height: 22px;
  }

  .dev-plus {
    display: none;
  }

  .seg button {
    font-size: 11px;
    padding: 6px 10px;
  }

  .main {
    padding: 16px 16px 60px;
    gap: 28px;
  }

  .greeting h1 {
    font-size: 24px;
  }

  .game-card {
    width: 160px;
  }

  .detail-panel {
    width: 100vw;
    max-height: 96dvh;
    border-radius: 20px 20px 0 0;
    top: auto;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 70; /* encima del bottom-nav (z-index 40) y del backdrop */
    transform: translateY(100%) scale(1);
    overflow-x: hidden;
    touch-action: pan-y;
  }

  .detail-panel.open {
    transform: translateY(0) scale(1);
  }

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

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

  .ia-summary-card {
    padding: 20px 18px 24px;
  }

  #ia-titular {
    font-size: 20px;
  }

  .filter-strip.active {
    padding: 10px 16px;
    max-height: 120px;
  }

  .fs-row {
    flex-wrap: wrap;
    gap: 10px;
  }
}


/* ══════════════════════════════════════════════════════════
   FICHA DE JUEGO — panel deslizante desde la derecha
══════════════════════════════════════════════════════════ */

/* Hint de hover en las cards */
.card-hint {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  opacity: 0;
  transition: opacity .18s;
  pointer-events: none;
}

.card-hint span {
  background: rgba(8, 9, 12, .7);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, .14);
  color: #fff;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 7px 12px;
  border-radius: 8px;
}

.game-card:hover .card-hint {
  opacity: 1;
}

/* Backdrop */
.dp-backdrop {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: oklch(0% 0 0 / 48%);
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s, visibility .25s;
}

.dp-backdrop.open {
  opacity: 1;
  visibility: visible;
}

/* Panel — floating centered dialog */
.detail-panel {
  position: fixed;
  top: 50%;
  left: 50%;
  width: min(640px, 92vw);
  max-height: 88dvh;
  z-index: 60;
  background: var(--bg-2);
  border: 1px solid var(--line-2);
  border-radius: 20px;
  box-shadow: 0 32px 80px -20px rgba(0, 0, 0, .8), 0 0 0 1px rgba(255,255,255,.04);
  transform: translate(-50%, -48%) scale(0.97);
  opacity: 0;
  visibility: hidden;
  transition: transform .28s var(--ease-out), opacity .22s, visibility .22s;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.detail-panel.open {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
  visibility: visible;
}

/* Scrollable body inside the panel */
.detail-panel .dp-inner {
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  overscroll-behavior-x: none;
  touch-action: pan-y;
  flex: 1;
}

.detail-panel .dp-inner::-webkit-scrollbar {
  width: 6px;
}

.detail-panel .dp-inner::-webkit-scrollbar-thumb {
  background: var(--line-2);
  border-radius: 20px;
}

/* Botón cerrar */
.dp-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 3;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: rgba(8, 9, 12, .6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, .1);
  color: var(--ink);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: .15s;
}

.dp-close:hover {
  background: var(--accent);
  color: var(--accent-ink);
  border-color: var(--accent);
}

/* Loading / error */
.dp-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  color: var(--ink-3);
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
}

/* Hero */
.dp-hero {
  position: relative;
  aspect-ratio: 21/9;
  overflow: hidden;
  flex-shrink: 0;
}

.dp-hero .ph {
  position: absolute;
  inset: 0;
  background-color: var(--ph-a, #1c2230);
  background-image: repeating-linear-gradient(135deg, transparent 0 16px, color-mix(in oklab, var(--ph-b, #2b3550) 55%, transparent) 16px 17px);
}

.dp-hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.dp-hero .scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 32%, rgba(10, 11, 14, .55) 66%, var(--bg-2) 99%);
}

.dp-hero-info {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.dp-plats {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.dp-plats .plat {
  background: rgba(8, 9, 12, .5);
  backdrop-filter: blur(6px);
}

.dp-title {
  margin: 0;
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 800;
  font-size: 28px;
  line-height: 1.05;
  letter-spacing: -.02em;
  text-shadow: 0 2px 12px rgba(0, 0, 0, .6);
}

.dp-studio {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--ink-2);
  letter-spacing: .02em;
}

/* Body */
.dp-body {
  padding: 20px 24px 36px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

/* Facts grid */
.dp-facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}

.dp-fact {
  background: var(--panel);
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.dp-fact .k {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.dp-fact .v {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
}

/* Scores */
.dp-scores {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.score-card {
  display: flex;
  align-items: center;
  gap: 13px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 14px;
}

.sc-badge {
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  border-radius: 9px;
  display: grid;
  place-items: center;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  font-size: 18px;
  background: var(--sc, var(--line-2));
  color: #0a0b0e;
}

.sc-badge.na {
  background: var(--panel-2);
  color: var(--ink-3);
  font-size: 11px;
}

.sc-meta {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.sc-name {
  font-weight: 700;
  font-size: 13.5px;
}

.sc-sub {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: var(--ink-3);
  letter-spacing: .02em;
}

/* Actions */
.dp-actions {
  display: flex;
  gap: 10px;
}

.dp-btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px;
  border-radius: 11px;
  font-family: inherit;
  font-weight: 600;
  font-size: 13.5px;
  cursor: pointer;
  border: 0;
  transition: .15s;
}

.dp-btn.primary {
  background: var(--accent);
  color: var(--accent-ink);
}

.dp-btn.primary:hover {
  filter: brightness(1.08);
}

.dp-btn.ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line-2);
}

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

.dp-btn.ghost.on {
  border-color: var(--event);
  color: var(--event);
}

/* Secciones del body */
.dp-section h3 {
  margin: 0 0 12px;
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: -.01em;
  display: flex;
  align-items: center;
  gap: 9px;
}

.dp-section h3 .count {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 500;
  color: var(--ink-3);
}

.dp-section p {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink-2);
}

/* Screenshots */
.dp-shots {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.shot {
  aspect-ratio: 16/9;
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  border: 1px solid var(--line);
  transition: .15s;
}

.shot .ph {
  position: absolute;
  inset: 0;
  background-color: var(--ph-a, #1c2230);
  background-image: repeating-linear-gradient(135deg, transparent 0 10px, color-mix(in oklab, var(--ph-b, #2b3550) 55%, transparent) 10px 11px);
}

.shot img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

/* Videos */
.dp-videos {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.video-item {
  display: flex;
  gap: 13px;
  align-items: center;
  cursor: pointer;
}

.vph {
  width: 150px;
  flex: 0 0 auto;
  aspect-ratio: 16/9;
  border-radius: 10px;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #13161e;
}

.vph img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.vph .play {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-ink);
  display: grid;
  place-items: center;
  font-size: 13px;
  padding-left: 2px;
  transition: .15s;
}

.video-item:hover .play {
  transform: scale(1.1);
}

.vmeta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.vtitle {
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.25;
}

.vsrc {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: var(--ink-3);
  letter-spacing: .04em;
}

/* Apariciones en eventos */
.dp-events {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.appear {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}

.appear:last-child {
  border-bottom: 0;
}

.appear i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  flex: 0 0 auto;
}

.ap-text {
  flex: 1;
  min-width: 0;
}

.ap-name {
  font-size: 13.5px;
  font-weight: 600;
}

.ap-note {
  font-size: 12px;
  color: var(--ink-3);
}

.ap-date {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  color: var(--ink-2);
  white-space: nowrap;
}

/* ── RESUMEN IA DIARIO ── */
.ki-purple {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  flex-shrink: 0;
  background: var(--ink-2);
}

.ia-summary-card {
  background: var(--panel);
  border: 1px solid color-mix(in oklab, var(--accent) 22%, var(--line));
  border-radius: var(--radius);
  padding: 28px 30px 32px;
  position: relative;
  overflow: hidden;
}

.ia-summary-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--accent);
}

.ia-content-box {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

#ia-titular {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 800;
  font-size: 24px;
  letter-spacing: -.02em;
  line-height: 1.2;
  color: var(--ink);
  margin: 0;
}

#ia-resumen {
  font-size: 14px;
  line-height: 1.8;
  color: var(--ink-2);
  margin: 0;
  max-width: 72ch;
}

@keyframes ia-pulse {

  0%,
  100% {
    opacity: .35;
  }

  50% {
    opacity: .7;
  }
}

.ia-loading {
  animation: ia-pulse 1.6s infinite ease-in-out;
}

/* Links de la ficha */
/* ── Quick links (oficial + sociales) — entre scores y descripción ── */
.dp-quick-links {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 20px 4px;
  flex-wrap: wrap;
}

.dp-official-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 14px;
  border-radius: 20px;
  border: 1px solid var(--line-2);
  background: var(--panel);
  color: var(--ink-2);
  font-size: 12px;
  font-weight: 500;
  text-decoration: none;
  transition: border-color .14s, color .14s, background .14s;
}
.dp-official-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: color-mix(in oklab, var(--accent) 8%, var(--panel));
}

.dp-social-row {
  display: flex;
  gap: 6px;
}
.dp-social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--line-2);
  background: var(--panel);
  color: var(--ink-3);
  text-decoration: none;
  transition: border-color .14s, color .14s, background .14s;
}
.dp-social-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: color-mix(in oklab, var(--accent) 8%, var(--panel));
}

.dp-links-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.dp-ext-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 13px;
  border-radius: 9px;
  border: 1px solid var(--line-2);
  background: var(--panel);
  color: var(--ink-2);
  font-size: 12px;
  font-weight: 500;
  text-decoration: none;
  transition: border-color .14s, color .14s, background .14s;
}

.dp-ext-link:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: color-mix(in oklab, var(--accent) 8%, var(--panel));
}

.dp-ext-link.store {
  border-color: color-mix(in oklab, var(--accent) 30%, transparent);
  color: var(--ink);
}

.dp-ext-link.store:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ── LIGHTBOX ── */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(0, 0, 0, .93);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s;
}

.lightbox.show {
  opacity: 1;
  pointer-events: auto;
}

.lightbox img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 8px;
}

.lightbox-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--panel);
  border: 1px solid var(--line-2);
  color: var(--ink);
  font-size: 18px;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background .13s;
}

.lightbox-close:hover {
  background: var(--panel-2);
}

/* ── VIDEO MODAL ── */
.video-modal {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(0, 0, 0, .92);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s;
}

.video-modal.show {
  opacity: 1;
  pointer-events: auto;
}

.video-modal-inner {
  position: relative;
  width: min(880px, 94vw);
  transform: scale(.96);
  transition: transform .22s cubic-bezier(.22, 1, .36, 1);
}

.video-modal.show .video-modal-inner {
  transform: scale(1);
}

.video-modal-inner iframe {
  width: 100%;
  aspect-ratio: 16/9;
  border: none;
  border-radius: 12px;
  display: block;
}

.video-modal-close {
  position: absolute;
  top: -14px;
  right: -14px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--panel);
  border: 1px solid var(--line-2);
  color: var(--ink);
  font-size: 18px;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background .13s;
}

.video-modal-close:hover {
  background: var(--panel-2);
}

/* ══════════════════════════════════════════════════════════
   PHONE — breakpoint específico para pantallas < 480px
══════════════════════════════════════════════════════════ */
@media (max-width: 480px) {

  /* Espaciado */
  .main {
    padding: 14px 12px 90px;
    gap: 22px;
  }

  /* Titulares de sección */
  .sec-title h2 {
    font-size: 18px;
  }

  .greeting h1 {
    font-size: 20px;
  }

  /* Search siempre full-width */
  .search {
    width: 100%;
    min-width: 0;
  }

  /* Rail: cards más compactas para ver 2+ en pantalla */
  .game-card {
    width: 160px;
  }

  /* IA summary: menos padding interior */
  .ia-summary-card {
    padding: 18px 16px 22px;
  }

  #ia-titular {
    font-size: 17px;
  }

  #ia-resumen {
    font-size: 13px;
    line-height: 1.65;
  }

  /* Panels de detalle: full-screen en teléfonos */
  .detail-panel {
    width: 100vw;
    height: 100dvh;
    border-left: none;
  }

  /* El hero del panel ocupa menos para que se vea el contenido */
  .dp-hero {
    aspect-ratio: 16/9;
  }

  .dp-title {
    font-size: 26px;
  }

  .dp-body {
    padding: 18px 16px 32px;
    gap: 20px;
  }

  /* Facts: 2 columnas en lugar de 3 */
  .dp-facts {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Mob toggle: esquina inferior derecha, fuera de la barra iOS */
  .mob-toggle {
    bottom: 28px;
    right: 16px;
    font-size: 11px;
    padding: 10px 16px;
  }

  /* Sidebar: casi pantalla completa en móvil pequeño */
  .sidebar {
    width: 92vw;
    padding: 22px 18px 28px;
  }

  /* Calendario: cerrado por defecto en teléfonos pequeños */
  .cal-details {
    open: false;
  }

  .f-block-cal .cal-details[open] > .cal {
    margin-top: 10px;
  }

  /* Topbar: sin gap extra */
  .topbar {
    gap: 10px;
  }
}

/* Rail: scroll suave y snapping táctil en todos los móviles */
@media (max-width: 1080px) {
  .rail {
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }

  .day-group {
    scroll-snap-align: start;
  }
}
/* ══════════════════════════════════════════════════════════
   DEV+ TRIGGER BUTTON (header brand area)
══════════════════════════════════════════════════════════ */

.dev-plus-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  background: none;
  border: 1px solid var(--line-2);
  border-radius: 6px;
  padding: 3px 8px;
  cursor: pointer;
  transition: border-color .15s, background .15s;
  color: var(--ink-3);
}

.dev-plus-btn:hover,
.dev-plus-btn[aria-expanded="true"] {
  border-color: var(--accent);
  background: color-mix(in oklab, var(--accent) 8%, transparent);
  color: var(--ink);
}

.dev-plus-btn .dev-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--ink-3);
  flex-shrink: 0;
  transition: background .15s;
}

.dev-plus-btn[aria-expanded="true"] .dev-dot,
.dev-plus-btn:hover .dev-dot {
  background: var(--accent);
}

.dev-plus-btn .dev-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: .10em;
  text-transform: uppercase;
}

/* ── Theme toggle button ── */
.lang-toggle {
  height: 30px;
  padding: 0 9px;
  background: none;
  border: 1px solid var(--line-2);
  border-radius: 6px;
  cursor: pointer;
  color: var(--ink-3);
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
  transition: border-color .15s, color .15s, background .15s;
  flex-shrink: 0;
}
.lang-toggle:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: color-mix(in oklab, var(--accent) 8%, transparent);
}

.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  background: none;
  border: 1px solid var(--line-2);
  border-radius: 6px;
  cursor: pointer;
  color: var(--ink-3);
  transition: border-color .15s, color .15s, background .15s;
  flex-shrink: 0;
}
.theme-toggle:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: color-mix(in oklab, var(--accent) 8%, transparent);
}
.theme-toggle .icon-sun  { display: none; }
.theme-toggle .icon-moon { display: block; }
html[data-theme="light"] .theme-toggle .icon-sun  { display: block; }
html[data-theme="light"] .theme-toggle .icon-moon { display: none; }

/* ── Event games panel ── */
.ev-games-backdrop {
  position: fixed;
  inset: 0;
  z-index: 54;
  background: rgba(0, 0, 0, .6);
  backdrop-filter: blur(4px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s;
}
.ev-games-backdrop.open { opacity: 1; pointer-events: auto; }

.ev-games-panel {
  position: fixed;
  inset: 0;
  margin: auto;
  width: min(640px, calc(100vw - 32px));
  max-height: calc(100vh - 64px);
  background: var(--panel);
  border-radius: 16px;
  border: 1px solid var(--line-2);
  box-shadow: var(--shadow);
  z-index: 55;
  display: flex;
  flex-direction: column;
  opacity: 0;
  pointer-events: none;
  transform: translateY(16px) scale(.97);
  transition: opacity .22s, transform .22s var(--ease-out);
}
.ev-games-panel.open {
  opacity: 1;
  pointer-events: auto;
  transform: none;
}

.ev-games-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 20px 20px 14px;
  border-bottom: 1px solid var(--line);
  flex-shrink: 0;
}
.ev-games-label {
  font-size: 10px;
  font-family: 'JetBrains Mono', monospace;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--ink-3);
  margin-bottom: 4px;
}
.ev-games-name {
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.2;
}
.ev-games-close {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
  color: var(--ink-3);
  padding: 2px 4px;
  transition: color .14s;
  flex-shrink: 0;
}
.ev-games-close:hover { color: var(--ink); }

.ev-games-scroll {
  overflow-y: auto;
  padding: 16px 20px 24px;
}
.ev-games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 10px;
}
.ev-game-item {
  cursor: pointer;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--line);
  transition: border-color .14s, transform .14s;
}
.ev-game-item:hover {
  border-color: var(--accent);
  transform: scale(1.03);
}
.ev-game-item img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  display: block;
}
.ev-game-item .ev-game-ph {
  width: 100%;
  aspect-ratio: 3 / 4;
  background: var(--panel-2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  color: var(--ink-3);
}
.ev-game-item .ev-game-title {
  padding: 5px 6px;
  font-size: 10px;
  font-weight: 500;
  color: var(--ink-2);
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ── Event games button on event cards ── */
.ev-games-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  border-radius: 6px;
  border: 1px solid var(--line-2);
  background: none;
  color: var(--ink-3);
  font-size: 11px;
  font-weight: 500;
  cursor: pointer;
  transition: border-color .14s, color .14s, background .14s;
}
.ev-games-btn:hover {
  border-color: var(--event);
  color: var(--event);
  background: color-mix(in oklab, var(--event) 8%, transparent);
}

/* ── Headlines cargar más ── */
.hl-load-more {
  display: flex;
  justify-content: center;
  padding: 12px 0 4px;
}
.hl-load-more-btn {
  padding: 7px 20px;
  border-radius: 20px;
  border: 1px solid var(--line-2);
  background: none;
  color: var(--ink-3);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: border-color .14s, color .14s, background .14s;
}
.hl-load-more-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: color-mix(in oklab, var(--accent) 8%, transparent);
}

/* ══════════════════════════════════════════════════════════
   DB ACTIVITY TICKER
══════════════════════════════════════════════════════════ */

.db-ticker-wrap {
  border-bottom: 1px solid var(--line);
  background: var(--bg);
  overflow: hidden;
  height: 0;
  transition: height .2s var(--ease-out);
}

.db-ticker-wrap.active {
  height: 36px;
}

.db-ticker {
  display: flex;
  align-items: center;
  height: 36px;
  padding: 0 32px;
  overflow: hidden;
  position: relative;
}

.db-ticker-item {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--ink-3);
  letter-spacing: .04em;
  white-space: nowrap;
  position: absolute;
  opacity: 0;
  transform: translateY(100%);
  transition: opacity .3s, transform .3s var(--ease-out);
}

.db-ticker-item.visible {
  opacity: 1;
  transform: translateY(0);
}

.db-ticker-item.exiting {
  opacity: 0;
  transform: translateY(-100%);
}

.db-ticker-link {
  color: var(--accent);
  text-decoration: none;
  margin-left: 8px;
  font-weight: 700;
  cursor: pointer;
  transition: opacity .15s;
}

.db-ticker-link:hover { opacity: .7; }

/* ══════════════════════════════════════════════════════════
   DEV+ PANEL FLOTANTE
══════════════════════════════════════════════════════════ */

/* ── BOTÓN GOTY ─────────────────────────────────────────────────────────── */
.goty-btn {
  padding: 5px 10px;
  border-radius: 20px;
  background: transparent;
  border: 1px solid var(--line-2);
  color: var(--accent);
  font-size: 13px;
  cursor: pointer;
  transition: background .14s, border-color .14s, transform .1s;
  white-space: nowrap;
  line-height: 1;
}
.goty-btn:hover { background: var(--accent-dim); border-color: var(--accent); }
.goty-btn:active { transform: scale(.94); }
.goty-btn[aria-expanded="true"] { background: var(--accent-dim); border-color: var(--accent); }

/* ── PANEL GOTY ─────────────────────────────────────────────────────────── */
.goty-backdrop {
  position: fixed;
  inset: 0;
  z-index: 55;
  background: transparent;
  display: none;
}
.goty-backdrop.open { display: block; }

.goty-panel {
  position: fixed;
  top: 68px;
  right: 24px;
  width: min(340px, calc(100vw - 32px));
  max-height: calc(100dvh - 90px);
  z-index: 56;
  background: var(--panel);
  border: 1px solid var(--line-2);
  border-radius: 14px;
  box-shadow: 0 16px 48px -12px rgba(0,0,0,.7);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
  transform: translateY(-8px) scale(.97);
  visibility: hidden;
  transition: opacity .18s, transform .2s var(--ease-out), visibility .18s;
}
.goty-panel.open {
  opacity: 1;
  transform: translateY(0) scale(1);
  visibility: visible;
}

.goty-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px 10px;
  border-bottom: 1px solid var(--line);
  flex-shrink: 0;
}
.goty-title {
  display: flex;
  align-items: center;
  gap: 10px;
}
.goty-trophy {
  font-size: 20px;
  line-height: 1;
  flex-shrink: 0;
}
.goty-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
}
.goty-sublabel {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  letter-spacing: .08em;
  color: var(--ink-3);
  margin-top: 2px;
}
.goty-close {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: var(--panel-2);
  border: 1px solid var(--line);
  color: var(--ink-3);
  font-size: 14px;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: color .12s, border-color .12s;
}
.goty-close:hover { color: var(--ink); border-color: var(--line-2); }

.goty-list {
  overflow-y: auto;
  overscroll-behavior: contain;
  flex: 1;
}
.goty-list::-webkit-scrollbar { width: 4px; }
.goty-list::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 99px; }

.goty-entry {
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  transition: background .1s;
}
.goty-entry:last-child { border-bottom: none; }
.goty-entry:hover { background: var(--panel-2); }

.goty-entry--latest {
  background: color-mix(in oklab, var(--accent) 7%, var(--panel));
  border-left: 2px solid var(--accent);
  padding-left: 14px;
}
.goty-entry--latest:hover {
  background: color-mix(in oklab, var(--accent) 11%, var(--panel));
}

.goty-year {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: .06em;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}
.goty-latest-badge {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--accent-ink);
  background: var(--accent);
  border-radius: 4px;
  padding: 1px 5px;
}
.goty-game {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.3;
  margin-bottom: 4px;
}
.goty-credits {
  font-size: 11px;
  color: var(--ink-3);
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
}
.goty-dev { color: var(--ink-2); }
.goty-credits-sep { color: var(--line-2); }

/* ── DEVPLUS ─────────────────────────────────────────────────────────────── */
.devplus-backdrop {
  position: fixed;
  inset: 0;
  z-index: 55;
  background: transparent;
  display: none;
}

.devplus-backdrop.open { display: block; }

.devplus-panel {
  position: fixed;
  top: 68px;
  left: 24px;
  width: min(360px, calc(100vw - 32px));
  max-height: calc(100dvh - 90px);
  z-index: 56;
  background: var(--panel);
  border: 1px solid var(--line-2);
  border-radius: 14px;
  box-shadow: 0 16px 48px -12px rgba(0,0,0,.7);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
  transform: translateY(-8px) scale(.97);
  visibility: hidden;
  transition: opacity .18s, transform .2s var(--ease-out), visibility .18s;
}

.devplus-panel.open {
  opacity: 1;
  transform: translateY(0) scale(1);
  visibility: visible;
}

.devplus-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px 10px;
  border-bottom: 1px solid var(--line);
  flex-shrink: 0;
}

.devplus-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-2);
}

.devplus-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

.devplus-close {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: var(--panel-2);
  border: 1px solid var(--line);
  color: var(--ink-3);
  font-size: 14px;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: color .12s, border-color .12s;
}

.devplus-close:hover { color: var(--ink); border-color: var(--line-2); }

.devplus-meta {
  padding: 10px 16px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  color: var(--ink-3);
  letter-spacing: .04em;
  border-bottom: 1px solid var(--line);
  flex-shrink: 0;
}

.devplus-log {
  overflow-y: auto;
  overscroll-behavior: contain;
  flex: 1;
}

.devplus-log::-webkit-scrollbar { width: 4px; }
.devplus-log::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 99px; }

.devplus-day {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  border-bottom: 1px solid var(--line);
  gap: 12px;
  transition: background .1s;
}

.devplus-day:last-child { border-bottom: none; }
.devplus-day:hover { background: var(--panel-2); }

.devplus-day-date {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--ink-2);
  letter-spacing: .04em;
  white-space: nowrap;
  flex-shrink: 0;
}

.devplus-day-count {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  flex-shrink: 0;
}

.devplus-day-bar {
  flex: 1;
  height: 3px;
  background: var(--line);
  border-radius: 2px;
  overflow: hidden;
}

.devplus-day-bar-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 2px;
  transition: width .4s var(--ease-out);
}

.devplus-day-btn {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9.5px;
  color: var(--ink-3);
  text-decoration: none;
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 3px 8px;
  cursor: pointer;
  background: none;
  transition: color .12s, border-color .12s;
  white-space: nowrap;
  flex-shrink: 0;
}

.devplus-day-btn:hover { color: var(--accent); border-color: var(--accent); }

/* ══════════════════════════════════════════════════════════
   DAYLOG MODAL (lista de juegos de un día concreto)
══════════════════════════════════════════════════════════ */

.daylog-backdrop {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: oklch(0% 0 0 / 50%);
  opacity: 0;
  visibility: hidden;
  transition: opacity .2s, visibility .2s;
}

.daylog-backdrop.open { opacity: 1; visibility: visible; }

.daylog-panel {
  position: fixed;
  top: 50%;
  left: 50%;
  width: min(540px, 92vw);
  max-height: 80dvh;
  z-index: 61;
  background: var(--panel);
  border: 1px solid var(--line-2);
  border-radius: 16px;
  box-shadow: 0 24px 60px -16px rgba(0,0,0,.75);
  transform: translate(-50%, -48%) scale(.97);
  opacity: 0;
  visibility: hidden;
  transition: opacity .22s, transform .25s var(--ease-out), visibility .22s;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.daylog-panel.open {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, -50%) scale(1);
}

.daylog-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  width: 28px;
  height: 28px;
  border-radius: 7px;
  background: var(--panel-2);
  border: 1px solid var(--line);
  color: var(--ink-3);
  font-size: 15px;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: color .12s, border-color .12s;
}

.daylog-close:hover { color: var(--ink); border-color: var(--line-2); }

.daylog-inner {
  overflow-y: auto;
  overscroll-behavior: contain;
  flex: 1;
  padding: 20px 22px 24px;
}

.daylog-inner::-webkit-scrollbar { width: 5px; }
.daylog-inner::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 99px; }

.daylog-title {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -.01em;
  color: var(--ink);
  margin-bottom: 4px;
}

.daylog-subtitle {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: var(--ink-3);
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.daylog-game-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.daylog-game {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 13px;
  color: var(--ink-2);
  padding: 4px 0;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 10px;
}

.daylog-game:last-child { border-bottom: none; }

.daylog-game-plat {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  color: var(--ink-3);
  letter-spacing: .04em;
  flex-shrink: 0;
}

/* ══════════════════════════════════════════════════════════
   TITULARES (Headlines Top 3)
══════════════════════════════════════════════════════════ */

.headlines-section {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.headlines-ts {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9.5px;
  color: var(--ink-3);
  letter-spacing: .06em;
  white-space: nowrap;
  align-self: flex-end;
  padding-bottom: 4px;
}

.headlines-list {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

/* Skeleton loading */
.hl-skel {
  height: 64px;
  background: linear-gradient(90deg, var(--panel) 25%, var(--panel-2) 50%, var(--panel) 75%);
  background-size: 500px 100%;
  animation: shimmer 1.4s infinite linear;
  border-bottom: 1px solid var(--line);
}
.hl-skel:last-child { border-bottom: none; }

/* Headline item */
.hl-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 20px;
  background: var(--panel);
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  transition: background .12s;
}

.hl-item:last-child { border-bottom: none; }
.hl-item:hover { background: var(--panel-2); }

/* Color indicator dot */
.hl-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 5px;
}

.hl-dot.launch    { background: #4ade80; }
.hl-dot.review    { background: var(--accent); }
.hl-dot.event     { background: #a78bfa; }
.hl-dot.trending  { background: var(--event); }
.hl-dot.delay     { background: #f87171; }
.hl-dot.trailer   { background: #60a5fa; }
.hl-dot.exclusive { background: #fb923c; }
.hl-dot.general   { background: var(--ink-3); }

.hl-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.hl-category {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.hl-title {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 14px;
  line-height: 1.35;
  color: var(--ink);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hl-source {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: var(--ink-3);
  letter-spacing: .02em;
}

.hl-arrow {
  color: var(--ink-3);
  font-size: 16px;
  align-self: center;
  flex-shrink: 0;
  transition: color .12s, transform .12s;
}

.hl-item:hover .hl-arrow { color: var(--ink); transform: translateX(2px); }

/* Headline empty state */
.hl-empty {
  padding: 32px 20px;
  text-align: center;
  color: var(--ink-3);
  font-size: 13px;
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: .04em;
}

/* ki-amber for headlines kicker */
.ki-amber {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  flex-shrink: 0;
  background: var(--accent);
}

/* Reddit trending badge */
.hl-trending-badge {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  color: var(--accent-ink);
  background: var(--event);
  border-radius: 4px;
  padding: 1px 5px;
  margin-left: 6px;
  letter-spacing: .04em;
  vertical-align: middle;
}

.site-footer {
  text-align: center;
  padding: 32px 16px 96px; /* espacio para bottom nav en móvil */
  font-size: 12px;
  color: var(--ink-3);
  letter-spacing: .02em;
}

/* ── BOTTOM NAV (solo móvil) ────────────────────────────────────────────── */
.bottom-nav {
  display: none; /* oculto en desktop */
}

@media (max-width: 600px) {
  /* Mostrar bottom nav */
  .bottom-nav {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 40;
    background: var(--bg-2);
    border-top: 1px solid var(--line);
    padding-bottom: env(safe-area-inset-bottom); /* notch iPhone */
  }

  .bn-btn {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 10px 8px;
    background: none;
    border: none;
    color: var(--ink-3);
    font-family: 'Space Grotesk', sans-serif;
    font-size: 10px;
    font-weight: 500;
    letter-spacing: .02em;
    cursor: pointer;
    transition: color .15s;
    -webkit-tap-highlight-color: transparent;
  }

  .bn-btn svg {
    stroke: currentColor;
    transition: stroke .15s;
  }

  .bn-btn.active {
    color: var(--accent);
  }

  /* Ocultar el segmented control del header en móvil */
  .header-nav .seg {
    display: none;
  }

  /* Contraer el header-nav solo con Blog + GOTY */
  .header-nav {
    gap: 6px;
    justify-content: flex-end;
  }

  /* Dar espacio al contenido para no quedar bajo el bottom nav */
  .main {
    padding-bottom: calc(72px + env(safe-area-inset-bottom));
  }

  /* Bottom nav se oculta cuando un panel está abierto */
  .bottom-nav.hidden {
    display: none;
  }
}
