/* Bahía Vésper — neon night-city prototype */

:root {
  --bg: #08010f;
  --bg-2: #12061f;
  --bg-card: rgba(22, 10, 36, 0.86);
  --pink: #ff2d95;
  --pink-soft: #ff7ac4;
  --magenta: #e019ff;
  --cyan: #00f0ff;
  --cyan-dim: #5ce8ff;
  --purple: #7b2cff;
  --orange: #ff6b35;
  --gold: #ffc857;
  --sun: #ffd27a;
  --text: #f6eefe;
  --text-dim: #c9b4d8;
  --muted: #8b7399;
  --line: rgba(255, 45, 149, 0.35);
  --nav-h: 68px;
  --ad-leader: 92px;
  --radius: 16px;
  --font: "Outfit", "Segoe UI", system-ui, sans-serif;
  --display: "Syne", "Outfit", sans-serif;
  --shadow-neon: 0 0 18px rgba(255, 45, 149, 0.45), 0 0 40px rgba(0, 240, 255, 0.12);
  --header-offset: calc(var(--nav-h) + var(--ad-leader) + 12px);
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  min-height: 100%;
}

body {
  background:
    radial-gradient(1200px 500px at 80% -10%, rgba(255, 45, 149, 0.16), transparent 55%),
    radial-gradient(900px 400px at 0% 20%, rgba(0, 240, 255, 0.08), transparent 50%),
    var(--bg);
  overflow-x: hidden;
  padding-top: var(--nav-h);
}

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

a { color: var(--cyan); text-decoration: none; }
a:hover { color: var(--pink-soft); }

button, .tab, .logo, .card, .btn { -webkit-tap-highlight-color: transparent; }

:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 6px;
}
.app:focus,
.app:focus-visible {
  outline: none;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -40px;
  z-index: 200;
  background: var(--cyan);
  color: #12061f;
  padding: 0.4rem 0.8rem;
  font-weight: 700;
  border-radius: 0 0 8px 8px;
}
.skip-link:focus { top: 0; }

/* Overlays */
.scanlines {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 150;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0 2px,
    rgba(0, 0, 0, 0.07) 2px 3px
  );
  opacity: 0.45;
  mix-blend-mode: multiply;
}
.vignette {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 140;
  background: radial-gradient(ellipse at center, transparent 50%, rgba(0, 0, 0, 0.45) 100%);
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 120;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 0 1.25rem;
  background: rgba(8, 1, 15, 0.78);
  backdrop-filter: blur(18px) saturate(1.3);
  -webkit-backdrop-filter: blur(18px) saturate(1.3);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45), 0 1px 0 rgba(0, 240, 255, 0.15);
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: inherit;
  flex-shrink: 0;
}
.logo:hover { color: inherit; }
.logo-mark {
  filter: drop-shadow(0 0 8px rgba(255, 107, 53, 0.7));
  animation: logoPulse 4.5s ease-in-out infinite;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 10px;
  overflow: hidden;
}
.logo-mark-img {
  width: 40px;
  height: 40px;
  object-fit: cover;
  display: block;
}
@keyframes logoPulse {
  0%, 100% { filter: drop-shadow(0 0 6px rgba(255, 107, 53, 0.55)); }
  50% { filter: drop-shadow(0 0 14px rgba(255, 45, 149, 0.9)); }
}
.logo-text { display: flex; flex-direction: column; line-height: 1; }
.logo-word {
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: 0.18em;
  background: linear-gradient(180deg, #fff 0%, #ffb3dc 42%, #ff2d95 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 12px rgba(255, 45, 149, 0.7));
}
.logo-word-sm { font-size: 1.1rem; letter-spacing: 0.16em; }
.logo-sub {
  margin-top: 0.2rem;
  font-size: 0.62rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--cyan-dim);
}

.tabs {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  flex: 1;
  min-width: 0;
}
.tab {
  position: relative;
  color: var(--text-dim);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.45rem 0.9rem 0.45rem 0.5rem;
  border-radius: 999px;
  transition: color 0.2s, background 0.2s, box-shadow 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.tab-icon {
  width: 22px;
  height: 22px;
  object-fit: cover;
  border-radius: 6px;
  flex-shrink: 0;
}
.tab:hover {
  color: #fff;
  background: rgba(255, 45, 149, 0.12);
}
.tab.is-active {
  color: #fff;
  background: linear-gradient(180deg, rgba(255, 45, 149, 0.28), rgba(123, 44, 255, 0.18));
  box-shadow: inset 0 0 0 1px rgba(255, 45, 149, 0.5), 0 0 16px rgba(255, 45, 149, 0.25);
}
.tab.is-active::after {
  content: "";
  position: absolute;
  left: 22%;
  right: 22%;
  bottom: 4px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, transparent, var(--cyan), var(--pink), transparent);
  box-shadow: 0 0 8px var(--cyan);
}

.header-tools {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: auto;
  flex-shrink: 0;
}

.lang-switch {
  display: flex;
  border: 1px solid rgba(0, 240, 255, 0.35);
  border-radius: 999px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.3);
}
.lang-btn {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--text-dim);
  font: 700 0.72rem/1 var(--font);
  letter-spacing: 0.08em;
  padding: 0.4rem 0.65rem;
  cursor: pointer;
}
.lang-btn.is-active {
  background: linear-gradient(180deg, var(--cyan), #0099b8);
  color: #081018;
  box-shadow: 0 0 12px rgba(0, 240, 255, 0.55);
}

.icon-btn {
  appearance: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255, 45, 149, 0.4);
  background: rgba(255, 45, 149, 0.08);
  color: var(--pink-soft);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.2s, box-shadow 0.2s;
}
.icon-btn:hover {
  background: rgba(255, 45, 149, 0.2);
  box-shadow: var(--shadow-neon);
}
.icon-btn[aria-pressed="true"] { color: var(--muted); }

.hamburger {
  display: none;
  padding: 0;
}
.hamburger span {
  display: block;
  width: 16px;
  height: 2px;
  margin: 2.5px auto;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}
.hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(4.5px) rotate(45deg); }
.hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-4.5px) rotate(-45deg); }

/* Ads */
.ad {
  position: relative;
}
.ad-label {
  position: absolute;
  top: 6px;
  left: 10px;
  z-index: 1;
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.ad-leaderboard {
  position: sticky;
  top: var(--nav-h);
  z-index: 90;
  background: rgba(8, 1, 15, 0.92);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  justify-content: center;
  padding: 8px 12px 10px;
}
.ad-slot {
  display: grid;
  place-items: center;
  border: 1px dashed rgba(201, 180, 216, 0.28);
  border-radius: 8px;
  background:
    repeating-linear-gradient(-45deg, transparent, transparent 8px, rgba(255,255,255,0.02) 8px, rgba(255,255,255,0.02) 16px),
    rgba(255, 255, 255, 0.03);
  color: var(--muted);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
}
.ad-slot-leaderboard {
  width: min(728px, 100%);
  height: 72px;
}
.ad-slot-feed {
  width: 100%;
  min-height: 120px;
  margin: 0;
}
.ad-slot-sidebar {
  width: 100%;
  min-height: 280px;
}
.ad-feed {
  grid-column: 1 / -1;
  padding: 0.2rem 0 0.4rem;
}
.ad-placeholder { opacity: 0.7; }

/* Main */
.app {
  min-height: 60vh;
  padding-bottom: 4rem;
}

/* Hero */
.hero {
  position: relative;
  isolation: isolate;
  min-height: clamp(420px, 72vh, 640px);
  overflow: hidden;
  display: grid;
  align-items: end;
}
.hero-sky {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 55% at 72% 28%, rgba(255, 210, 122, 0.75) 0%, rgba(255, 107, 53, 0.45) 22%, rgba(255, 45, 149, 0.22) 46%, transparent 68%),
    linear-gradient(180deg,
      #14061f 0%,
      #2a0b3d 16%,
      #6a1a5c 38%,
      #c44b62 54%,
      #ff8a4a 66%,
      #ffc17a 70.5%,
      #ff6b9a 71.5%,
      #1a0a28 72.2%,
      #0a0414 100%);
  z-index: -3;
}
.hero-sun {
  position: absolute;
  width: min(340px, 55vw);
  aspect-ratio: 1;
  right: 12%;
  top: 8%;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 45%, #fff4c8 0%, #ffd27a 18%, #ff6b35 52%, #ff2d95 78%, transparent 79%);
  box-shadow: 0 0 80px 20px rgba(255, 107, 53, 0.45), 0 0 160px 40px rgba(255, 45, 149, 0.25);
  z-index: -2;
  mask-image: linear-gradient(#000, #000),
    repeating-linear-gradient(to bottom, #000 0 10px, transparent 10px 16px);
  mask-composite: exclude;
  -webkit-mask-image: linear-gradient(#000 0 0),
    repeating-linear-gradient(to bottom, #000 0 10px, transparent 10px 16px);
  -webkit-mask-composite: xor;
  -webkit-mask-position: 0 0, 0 42%;
  -webkit-mask-size: 100% 100%, 100% 58%;
  -webkit-mask-repeat: no-repeat;
}
.hero-horizon {
  position: absolute;
  left: 0;
  right: 0;
  top: 71.6%;
  height: 2px;
  background: linear-gradient(90deg, transparent 2%, var(--cyan), var(--pink), var(--cyan), transparent 98%);
  box-shadow: 0 0 12px var(--cyan), 0 0 24px rgba(255, 45, 149, 0.65);
  z-index: 1;
  pointer-events: none;
}
.hero-grid {
  position: absolute;
  left: -10%;
  right: -10%;
  bottom: 0;
  height: 36%;
  background:
    linear-gradient(rgba(224, 25, 255, 0.35) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 240, 255, 0.28) 1px, transparent 1px);
  background-size: 48px 48px;
  transform: perspective(500px) rotateX(62deg);
  transform-origin: bottom;
  mask-image: linear-gradient(to top, rgba(0,0,0,0.65), transparent 90%);
  z-index: -1;
  opacity: 0.55;
}
.hero-art {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
.hero-art svg { width: 100%; height: 100%; }
.hero-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 78% 26%;
  z-index: 0;
}
.hero-photo-shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(8,1,15,0.78) 0%, rgba(8,1,15,0.42) 42%, rgba(8,1,15,0.12) 68%, rgba(8,1,15,0.28) 100%),
    linear-gradient(180deg, rgba(8,1,15,0.2) 0%, transparent 28%, rgba(8,1,15,0.55) 100%);
}
.hero-copy {
  position: relative;
  z-index: 2;
  padding: 2.5rem 6vw 3.5rem;
  max-width: 780px;
}
.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cyan);
  text-shadow: 0 0 12px rgba(0, 240, 255, 0.6);
  margin: 0 0 0.8rem;
}
.hero-kicker::before {
  content: "";
  width: 28px;
  height: 2px;
  background: linear-gradient(90deg, var(--pink), var(--cyan));
  box-shadow: 0 0 8px var(--cyan);
}
.hero h1 {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(2.6rem, 7vw, 5.4rem);
  line-height: 0.95;
  letter-spacing: 0.02em;
  margin: 0 0 1rem;
  text-wrap: balance;
  background: linear-gradient(180deg, #ffffff 10%, #ffd0ea 45%, #ff2d95 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 6px 0 rgba(80, 0, 50, 0.35)) drop-shadow(0 0 24px rgba(255, 45, 149, 0.55));
}
.hero-lead {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: #ffe9f6;
  max-width: 38ch;
  margin: 0 0 1.5rem;
  text-shadow: 0 2px 16px rgba(20, 0, 20, 0.8);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }

.btn {
  appearance: none;
  border: 0;
  cursor: pointer;
  font: 700 0.9rem/1 var(--font);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.85rem 1.25rem;
  border-radius: 999px;
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: #fff;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-neon {
  background: linear-gradient(90deg, var(--pink), var(--orange));
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.15), 0 8px 24px rgba(255, 45, 149, 0.4), 0 0 22px rgba(255, 45, 149, 0.45);
  color: #1a0510;
}
.btn-neon:hover { box-shadow: 0 0 0 1px #fff, 0 10px 28px rgba(255, 45, 149, 0.55), 0 0 28px rgba(255, 107, 53, 0.5); color: #1a0510; }
.btn-ghost {
  background: rgba(8, 1, 15, 0.45);
  border: 1px solid rgba(0, 240, 255, 0.45);
  color: var(--cyan-dim);
  box-shadow: 0 0 16px rgba(0, 240, 255, 0.15);
}
.btn-ghost:hover { background: rgba(0, 240, 255, 0.12); color: #fff; }
a.btn { color: inherit; }
a.btn-neon { color: #1a0510; }
a.btn-neon:hover { color: #1a0510; }

/* Sections / feeds */
.section {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 2.2rem 0 0;
}
.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}
.section-head h2 {
  font-family: var(--display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin: 0;
  letter-spacing: 0.02em;
}
.section-kicker {
  margin: 0 0 0.2rem;
  color: var(--cyan);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.72rem;
  font-weight: 600;
}

.feed-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.15rem;
}

.card {
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid rgba(255, 45, 149, 0.22);
  border-radius: var(--radius);
  overflow: hidden;
  color: inherit;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s;
  animation: cardIn 0.55s ease both;
}
.card:nth-child(1) { animation-delay: 0.02s; }
.card:nth-child(2) { animation-delay: 0.07s; }
.card:nth-child(3) { animation-delay: 0.12s; }
.card:nth-child(4) { animation-delay: 0.16s; }
.card:nth-child(5) { animation-delay: 0.2s; }
.card:nth-child(6) { animation-delay: 0.24s; }
.card:nth-child(7) { animation-delay: 0.28s; }
.card:nth-child(8) { animation-delay: 0.32s; }
@keyframes cardIn {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}
.card:hover {
  transform: translateY(-6px);
  border-color: rgba(0, 240, 255, 0.55);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.4), 0 0 24px rgba(0, 240, 255, 0.18), 0 0 18px rgba(255, 45, 149, 0.2);
  color: inherit;
}
.card-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}
.card-thumb .thumb-art,
.thumb-art {
  width: 100%;
  height: 100%;
}
.card-body { padding: 0.95rem 1rem 1.1rem; display: flex; flex-direction: column; gap: 0.4rem; flex: 1; }
.card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.72rem;
  color: var(--muted);
  letter-spacing: 0.04em;
}
.chip {
  display: inline-flex;
  align-items: center;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.62rem;
}
.chip-tricks { background: rgba(0, 240, 255, 0.14); color: var(--cyan); border: 1px solid rgba(0, 240, 255, 0.3); }
.chip-guides { background: rgba(123, 44, 255, 0.18); color: #d4b7ff; border: 1px solid rgba(123, 44, 255, 0.4); }
.chip-news { background: rgba(255, 107, 53, 0.16); color: #ffc09a; border: 1px solid rgba(255, 107, 53, 0.4); }
.badge-today {
  background: linear-gradient(90deg, var(--pink), var(--orange));
  color: #1a0510;
  box-shadow: 0 0 10px rgba(255, 45, 149, 0.5);
  border: 0;
}
.card h3 {
  font-family: var(--display);
  font-size: 1.12rem;
  line-height: 1.25;
  margin: 0.15rem 0;
  letter-spacing: 0.01em;
}
.card-excerpt {
  margin: 0;
  color: var(--text-dim);
  font-size: 0.9rem;
  flex: 1;
}
.card-read { color: var(--muted); font-size: 0.75rem; }

/* Thumbnails */
.thumb-art {
  position: relative;
  display: block;
  overflow: hidden;
}
.thumb-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.thumb-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(8,1,15,0.55), transparent 50%);
}
.t-sunset { background: linear-gradient(180deg, #2a0b3d 0%, #c44b62 50%, #ff8a4a 80%, #ffd27a 100%); }
.t-night { background: linear-gradient(180deg, #070414 0%, #1a0a40 40%, #3a1070 70%, #00f0ff 160%); }
.t-street { background: linear-gradient(135deg, #1a0518 0%, #5a1038 40%, #ff2d95 100%); }
.t-road { background: linear-gradient(180deg, #24103a 0%, #3d1560 40%, #1a1020 70%, #111 100%); }
.t-radio { background: radial-gradient(circle at 50% 50%, #00f0ff 0 4%, transparent 5%), linear-gradient(160deg, #12061f, #003344 60%, #ff2d95); }
.t-map { background-color: #160a28; background-image: linear-gradient(rgba(0,240,255,0.2) 1px, transparent 1px), linear-gradient(90deg, rgba(255,45,149,0.2) 1px, transparent 1px); background-size: 18px 18px; }
.t-wave { background: linear-gradient(180deg, #4a1040 0%, #123050 40%, #00b4c8 75%, #7affd0 100%); }
.t-chase { background: linear-gradient(110deg, #1a0510 0%, #5a1030 40%, #ff6b35 80%, #ffd27a 100%); }
.t-rooftop { background: linear-gradient(200deg, #0d0820, #2a1450 40%, #ff2d95 100%); }
.t-dock { background: linear-gradient(180deg, #201030 0%, #3a2060 35%, #164050 70%, #00c8b4 100%); }

.thumb-deco {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* Article */
.article-wrap {
  width: min(1180px, calc(100% - 2rem));
  margin: 1.4rem auto 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 1.6rem;
  align-items: start;
}
.article {
  background: rgba(18, 8, 30, 0.72);
  border: 1px solid rgba(255, 45, 149, 0.2);
  border-radius: 20px;
  padding: 1.5rem 1.6rem 2.2rem;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.3);
}
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--cyan);
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}
.article-hero-thumb {
  border-radius: 14px;
  overflow: hidden;
  aspect-ratio: 21 / 9;
  margin-bottom: 1.2rem;
  border: 1px solid rgba(255, 255, 255, 0.06);
}
.article-hero-thumb .thumb-art { height: 100%; }
.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
  color: var(--muted);
  font-size: 0.82rem;
  margin-bottom: 0.6rem;
}
.article h1 {
  font-family: var(--display);
  font-size: clamp(1.7rem, 4vw, 2.5rem);
  line-height: 1.15;
  margin: 0 0 1rem;
}
.article-body { font-size: 1.05rem; color: #efe3f6; }
.article-body h2 {
  font-family: var(--display);
  font-size: 1.35rem;
  margin: 1.6rem 0 0.6rem;
}
.article-body p { margin: 0 0 1rem; }
.article-body ul, .article-body ol { margin: 0 0 1rem; padding-left: 1.2rem; }
.article-body li { margin: 0.3rem 0; }
.tip-box {
  margin: 1.3rem 0;
  padding: 1rem 1.1rem;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.1), rgba(255, 45, 149, 0.1));
  border: 1px solid rgba(0, 240, 255, 0.35);
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.08);
}
.tip-box strong {
  display: block;
  color: var(--cyan);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 0.72rem;
  margin-bottom: 0.35rem;
}

.article-aside {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  position: sticky;
  top: calc(var(--nav-h) + var(--ad-leader) + 16px);
}
.related {
  background: rgba(18, 8, 30, 0.72);
  border: 1px solid rgba(255, 45, 149, 0.2);
  border-radius: 16px;
  padding: 1rem;
}
.related h2 {
  font-family: var(--display);
  font-size: 1.05rem;
  margin: 0 0 0.8rem;
}
.related a {
  display: block;
  padding: 0.55rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--text);
  font-weight: 600;
  font-size: 0.92rem;
}
.related a:first-of-type { border-top: 0; }
.related a:hover { color: var(--cyan); }
.related .mini-cat {
  display: block;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--pink-soft);
  font-weight: 700;
  margin-bottom: 0.15rem;
}

.not-found {
  width: min(720px, calc(100% - 2rem));
  margin: 3rem auto;
  text-align: center;
}

/* Notification banner */
.notif-banner {
  position: fixed;
  z-index: 160;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  pointer-events: none;
}
.notif-inner {
  pointer-events: auto;
  width: min(720px, 100%);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  align-items: center;
  background: linear-gradient(180deg, rgba(28, 10, 48, 0.96), rgba(12, 4, 22, 0.96));
  border: 1px solid rgba(255, 45, 149, 0.45);
  border-radius: 18px;
  padding: 1rem 1.1rem;
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.55), 0 0 28px rgba(255, 45, 149, 0.2);
  backdrop-filter: blur(16px);
  animation: cardIn 0.4s ease both;
}
.notif-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--pink), var(--orange));
  color: #1a0510;
  font-size: 1.1rem;
  flex-shrink: 0;
  box-shadow: 0 0 16px rgba(255, 45, 149, 0.5);
}
.notif-copy { flex: 1; min-width: 180px; }
.notif-title { margin: 0; font-weight: 700; font-family: var(--display); }
.notif-text { margin: 0.15rem 0 0; color: var(--text-dim); font-size: 0.9rem; }
.notif-actions { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.notif-actions .btn { padding: 0.7rem 1rem; }

/* Footer */
.site-footer {
  border-top: 1px solid rgba(255, 45, 149, 0.25);
  background: linear-gradient(180deg, #0c0314, #05010a);
  margin-top: 2rem;
  padding: 2.4rem 1rem 2.8rem;
}
.footer-inner { width: min(1180px, 100%); margin: 0 auto; }
.footer-brand { margin-bottom: 0.8rem; }
.footer-brand p { margin: 0.35rem 0 0; color: var(--text-dim); }
.footer-legal {
  color: var(--muted);
  font-size: 0.85rem;
  max-width: 70ch;
  margin: 0 0 0.8rem;
}
.footer-copy { color: var(--muted); font-size: 0.8rem; margin: 0; }

/* Responsive */
@media (max-width: 980px) {
  .feed-grid { grid-template-columns: repeat(2, 1fr); }
  .article-wrap { grid-template-columns: 1fr; }
  .article-aside { position: static; }
}

@media (max-width: 760px) {
  .hero-photo { object-position: center 18%; }

  .site-header { padding: 0 0.75rem; gap: 0.5rem; }
  .logo-sub { display: none; }
  .hamburger { display: grid; }
  .tabs {
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0.25rem;
    padding: 0.7rem;
    background: rgba(8, 1, 15, 0.96);
    border-bottom: 1px solid var(--line);
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.25s ease, opacity 0.25s ease;
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.45);
  }
  body.nav-open .tabs {
    transform: none;
    opacity: 1;
    pointer-events: auto;
  }
  .tab { border-radius: 10px; }
  .hero-copy { padding: 1.6rem 1rem 2.4rem; }
  .hero-sun { right: -8%; top: 4%; }
  .feed-grid { grid-template-columns: 1fr; }
  .article { padding: 1.1rem 1rem 1.6rem; }
  .ad-slot-leaderboard { height: 60px; }
  :root { --ad-leader: 80px; }
}

@media (min-width: 761px) and (max-width: 1180px) {
  .tabs { overflow-x: auto; scrollbar-width: none; }
  .tabs::-webkit-scrollbar { display: none; }
  .tab { flex-shrink: 0; padding: 0.5rem 0.7rem; font-size: 0.82rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .card, .notif-inner, .logo-mark { animation: none !important; }
  .card, .btn, .tab, .hamburger span { transition: none !important; }
  .hero-horizon {
  position: absolute;
  left: 0;
  right: 0;
  top: 71.6%;
  height: 2px;
  background: linear-gradient(90deg, transparent 2%, var(--cyan), var(--pink), var(--cyan), transparent 98%);
  box-shadow: 0 0 12px var(--cyan), 0 0 24px rgba(255, 45, 149, 0.65);
  z-index: 1;
  pointer-events: none;
}
.hero-grid { transform: none; opacity: 0.2; }
}

@media (prefers-reduced-motion: no-preference) {
  .hero-sun { animation: sunGlow 8s ease-in-out infinite; }
}
@keyframes sunGlow {
  0%, 100% { filter: brightness(1); }
  50% { filter: brightness(1.12); }
}

#hoy, .section, .article-wrap {
  scroll-margin-top: calc(var(--nav-h) + var(--ad-leader) + 8px);
}

@media (min-width: 900px) {
  .hero-copy { max-width: 42%; }
  .hero h1 { font-size: clamp(2.2rem, 5.4vw, 4.4rem); }
}


/* ===== Section themes ===== */
body[data-theme="tricks"] {
  --accent-theme: #ffb347;
  --theme-ink: #14343a;
  background:
    radial-gradient(1000px 420px at 80% 0%, rgba(0, 180, 200, 0.16), transparent 55%),
    radial-gradient(800px 400px at 0% 30%, rgba(255, 179, 71, 0.12), transparent 50%),
    #07151a;
}
body[data-theme="guides"] {
  background:
    radial-gradient(1000px 420px at 80% 0%, rgba(255, 200, 87, 0.18), transparent 55%),
    radial-gradient(800px 400px at 0% 20%, rgba(196, 80, 74, 0.1), transparent 50%),
    #1a100c;
}
body[data-theme="news"] {
  background:
    radial-gradient(900px 400px at 70% 0%, rgba(255, 45, 149, 0.2), transparent 55%),
    #05010b;
}
body[data-theme="map"] {
  background:
    radial-gradient(900px 500px at 50% 0%, rgba(255, 186, 80, 0.16), transparent 55%),
    radial-gradient(700px 400px at 10% 40%, rgba(0, 160, 170, 0.10), transparent 50%),
    #0e1410;
}
body[data-theme="game"] {
  background:
    radial-gradient(900px 400px at 40% 0%, rgba(255, 90, 31, 0.16), transparent 55%),
    #12080c;
}

.section-hero {
  position: relative;
  isolation: isolate;
  min-height: clamp(280px, 42vh, 420px);
  overflow: hidden;
  display: grid;
  align-items: end;
}
.section-hero-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
}
.section-hero-shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(8,1,15,0.15) 0%, rgba(8,1,15,0.55) 70%, rgba(8,1,15,0.88) 100%);
}
.section-hero-copy {
  position: relative;
  z-index: 2;
  padding: 2rem 6vw 1.6rem;
  max-width: 820px;
}
.section-hero-copy h1 {
  font-family: var(--display);
  font-size: clamp(2rem, 5vw, 3.6rem);
  line-height: 0.95;
  margin: 0 0 0.6rem;
  background: linear-gradient(180deg, #fff 10%, #ffd0ea 55%, #ff2d95 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 18px rgba(255, 45, 149, 0.4));
}
body[data-theme="tricks"] .section-hero-copy h1 {
  background: linear-gradient(180deg, #fff 10%, #b8fff0 50%, #00c4b0 100%);
  -webkit-background-clip: text;
  background-clip: text;
}
body[data-theme="guides"] .section-hero-copy h1 {
  background: linear-gradient(180deg, #fff8e8 10%, #ffd27a 50%, #ff6b35 100%);
  -webkit-background-clip: text;
  background-clip: text;
}
body[data-theme="map"] .section-hero-copy h1 {
  background: linear-gradient(180deg, #fff8e8 10%, #ffe08a 50%, #2aa7c2 100%);
  -webkit-background-clip: text;
  background-clip: text;
}
body[data-theme="game"] .section-hero-copy h1 {
  background: linear-gradient(180deg, #fff 10%, #ffc09a 50%, #ff5a1f 100%);
  -webkit-background-clip: text;
  background-clip: text;
}
.section-hero-copy .hero-lead { color: #ffe9f6; text-shadow: 0 2px 14px rgba(0,0,0,0.7); margin: 0; }

/* Beach stage (Trucos) */
.beach-stage {
  position: relative;
  height: 180px;
  overflow: hidden;
  border-top: 2px solid rgba(0, 200, 210, 0.35);
  background: linear-gradient(#7ec8ff 0 36%, #2aa7c2 36% 58%, #f3d7a0 58% 100%);
}
.beach-sea {
  position: absolute;
  left: -5%;
  right: -5%;
  top: 32%;
  height: 32%;
  background:
    repeating-linear-gradient(180deg, rgba(255,255,255,0.25) 0 3px, transparent 3px 14px),
    linear-gradient(180deg, #4ad0e0, #1a7a9a);
  animation: seaShift 8s linear infinite;
}
.beach-foam {
  position: absolute;
  left: 0; right: 0;
  top: 58%;
  height: 10px;
  background: repeating-linear-gradient(90deg, transparent 0 18px, rgba(255,255,255,0.7) 18px 28px);
  opacity: 0.7;
  animation: foamMove 3.5s linear infinite;
}
.beach-palms {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 12% 70%, #0a3 0 8px, transparent 9px),
    radial-gradient(circle at 14% 62%, #063 0 18px, transparent 19px),
    radial-gradient(circle at 86% 72%, #0a3 0 8px, transparent 9px),
    radial-gradient(circle at 88% 64%, #063 0 20px, transparent 21px);
}
.beach-car {
  position: absolute;
  bottom: 18px;
  width: 84px;
  height: 34px;
  animation: carDrive 11s linear infinite;
  filter: drop-shadow(0 4px 0 rgba(0,0,0,0.25));
}
.beach-car svg { width: 100%; height: 100%; }
@keyframes seaShift { from { transform: translateX(0); } to { transform: translateX(-40px); } }
@keyframes foamMove { from { transform: translateX(0); } to { transform: translateX(-28px); } }
@keyframes carDrive {
  0% { left: -10%; transform: scaleX(1); }
  48% { left: 102%; transform: scaleX(1); }
  50% { left: 102%; transform: scaleX(-1); }
  98% { left: -10%; transform: scaleX(-1); }
  100% { left: -10%; transform: scaleX(1); }
}
@media (prefers-reduced-motion: reduce) {
  .beach-sea, .beach-foam, .beach-car { animation: none; }
  .beach-car { left: 40%; }
}

/* Cheat terminal */
.cheat-box {
  margin: 1.2rem auto 0;
  width: min(1180px, calc(100% - 2rem));
  background: rgba(4, 18, 16, 0.92);
  border: 1px solid #2dffb0;
  box-shadow: 0 0 20px rgba(45, 255, 176, 0.2), inset 0 0 30px rgba(0, 40, 30, 0.4);
  border-radius: 10px;
  padding: 0.85rem 1rem;
  font-family: "IBM Plex Mono", "Courier New", monospace;
  color: #9bffd2;
}
.cheat-title {
  letter-spacing: 0.16em;
  font-size: 0.72rem;
  text-transform: uppercase;
  margin: 0 0 0.5rem;
  color: #2dffb0;
}
.cheat-row { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.cheat-row input {
  flex: 1;
  min-width: 160px;
  background: #031410;
  border: 1px solid #1a8f6a;
  color: #c8ffe6;
  padding: 0.55rem 0.7rem;
  font: 600 0.95rem/1 "Courier New", monospace;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: 4px;
}
.cheat-row button {
  appearance: none;
  border: 1px solid #2dffb0;
  background: #0a3;
  color: #031410;
  font: 700 0.8rem/1 "Courier New", monospace;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.55rem 0.9rem;
  cursor: pointer;
  border-radius: 4px;
}
.cheat-log { margin: 0.45rem 0 0; font-size: 0.85rem; min-height: 1.2em; }
.cheat-hints { margin: 0.3rem 0 0; color: #4a8; font-size: 0.75rem; }
body.cheat-marealta .beach-sea { height: 42%; top: 26%; }
body.cheat-solcielo .beach-stage { filter: saturate(1.35) brightness(1.12); }
body.cheat-niteneo .beach-stage { filter: hue-rotate(40deg) brightness(0.7) saturate(1.2); }

/* Guides checklist */
.guide-tools {
  width: min(1180px, calc(100% - 2rem));
  margin: 1.2rem auto 0;
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 1rem;
  align-items: start;
}
.checklist {
  background: rgba(40, 22, 12, 0.86);
  border: 1px solid rgba(255, 180, 80, 0.35);
  border-radius: 16px;
  padding: 1rem;
}
.checklist h3 {
  font-family: var(--display);
  margin: 0 0 0.7rem;
  font-size: 1.05rem;
}
.checklist label {
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
  padding: 0.4rem 0;
  border-top: 1px solid rgba(255,255,255,0.06);
  color: var(--text);
  font-size: 0.92rem;
  cursor: pointer;
}
.checklist label:first-of-type { border-top: 0; }
.checklist a { color: #ffc857; }
.pin-row { display: flex; gap: 0.35rem; flex-wrap: wrap; margin-bottom: 0.6rem; }
.pin-dot {
  width: 12px; height: 12px; border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  background: #e2512b;
  box-shadow: 0 0 0 3px rgba(226, 81, 43, 0.25);
}
.pin-dot.cyan { background: #00c8b4; box-shadow: 0 0 0 3px rgba(0,200,180,0.25); }
.pin-dot.gold { background: #ffc857; box-shadow: 0 0 0 3px rgba(255,200,87,0.25); }
@media (max-width: 860px) {
  .guide-tools { grid-template-columns: 1fr; }
}

/* News ticker + rain */
.ticker {
  position: relative;
  z-index: 3;
  background: #120018;
  border-top: 2px solid #ff2d95;
  border-bottom: 2px solid #00f0ff;
  overflow: hidden;
  display: flex;
  align-items: center;
  height: 40px;
}
.ticker-label {
  flex-shrink: 0;
  background: linear-gradient(90deg, #ff2d95, #ff6b35);
  color: #1a0510;
  font-weight: 800;
  letter-spacing: 0.12em;
  font-size: 0.7rem;
  padding: 0 0.8rem;
  height: 100%;
  display: grid;
  place-items: center;
  animation: neonFlicker 4.5s steps(2, end) infinite;
}
.ticker-track {
  display: flex;
  gap: 3rem;
  white-space: nowrap;
  animation: tickerMove 32s linear infinite;
  padding-left: 1.2rem;
  font-weight: 600;
  color: #ffe9f6;
}
@keyframes tickerMove { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes neonFlicker {
  0%, 92%, 100% { opacity: 1; filter: brightness(1); }
  93% { opacity: 0.55; filter: brightness(1.4); }
  96% { opacity: 1; }
}
.rain-layer {
  pointer-events: none;
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
}
.news-stage { position: relative; }

/* Map — Leaflet CRS.Simple + illustrated aerial city */
.map-shell {
  width: min(1180px, calc(100% - 2rem));
  margin: 1.2rem auto 0;
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 1rem;
  align-items: stretch;
  position: relative;
}
.map-filters {
  background: rgba(22, 20, 14, 0.94);
  border: 1px solid rgba(255, 186, 80, 0.35);
  border-radius: 14px;
  padding: 0.9rem;
}
.map-sheet-toggle {
  display: none;
  width: 100%;
  appearance: none;
  border: 0;
  background: transparent;
  color: #ffe08a;
  font: 700 0.95rem/1 var(--display, inherit);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  padding: 0.7rem 0;
}
.map-filters h3 { font-family: var(--display); margin: 0.7rem 0 0.5rem; font-size: 1rem; color: #ffe08a; }
.map-filters h3:first-child { margin-top: 0; }
.map-filters label { display: flex; gap: 0.45rem; align-items: center; margin: 0.35rem 0; font-size: 0.9rem; cursor: pointer; }
.map-hint { margin: 0.8rem 0 0; color: #c9b89a; font-size: 0.8rem; }
.map-layer-toggles { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.map-layer-btn {
  appearance: none;
  border: 1px solid rgba(255,186,80,0.35);
  background: rgba(20,16,10,0.8);
  color: #e6d2b0;
  border-radius: 999px;
  padding: 0.35rem 0.7rem;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
}
.map-layer-btn.is-on {
  background: #ffe08a;
  color: #1a1208;
  border-color: #ffe08a;
}
.map-add-btn { width: 100%; margin-top: 0.9rem; }
.map-add-btn.is-armed { box-shadow: 0 0 0 2px #c6ff4a; }
.map-viewport {
  position: relative;
  height: min(78vh, 720px);
  min-height: 460px;
  border: 1px solid rgba(255, 186, 80, 0.4);
  border-radius: 14px;
  overflow: hidden;
  background: #1a140c;
  touch-action: none;
  box-shadow: inset 0 0 40px rgba(0,0,0,0.25);
}
#vesper-leaflet,
.leaflet-container {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: #1a140c;
  font-family: inherit;
}
.leaflet-container a { color: #58c4d4; }
.leaflet-control-zoom a {
  background: rgba(28,22,12,0.92) !important;
  color: #ffe08a !important;
  border-color: #ffc857 !important;
}
.leaflet-bar { border-color: #ffc857 !important; }
.leaflet-popup-content-wrapper, .leaflet-popup-tip {
  background: rgba(28, 22, 12, 0.96);
  color: #fff8e8;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.45);
}
.leaflet-popup-content { margin: 0.7rem 0.9rem; }
.leaflet-popup-content h3 { margin: 0 0 0.3rem; font-size: 1rem; font-family: var(--display); }
.leaflet-popup-content p { margin: 0 0 0.4rem; font-size: 0.85rem; color: #e6d2b0; }
.leaflet-popup-close-button { color: #ffe08a !important; }
.map-pin { background: none !important; border: 0 !important; }
.map-pin-glyph {
  display: block;
  width: 18px;
  height: 18px;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  border: 2px solid #1a1208;
  box-shadow: 0 2px 6px rgba(0,0,0,0.35);
}
.map-pin-community .map-pin-glyph {
  border-radius: 4px;
  transform: none;
  width: 16px;
  height: 16px;
  box-shadow: 0 0 0 2px #1a1208, 0 0 0 4px #c6ff4a;
}
.map-community-badge {
  display: inline-block;
  background: #c6ff4a;
  color: #212b14;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  margin: 0 0 0.3rem !important;
}
.map-remove-pin {
  appearance: none;
  border: 1px solid #ffc857;
  background: transparent;
  color: #ffe08a;
  border-radius: 8px;
  padding: 0.25rem 0.5rem;
  cursor: pointer;
  font-size: 0.8rem;
}
.map-district-label {
  background: none !important;
  border: 0 !important;
  pointer-events: none;
}
.map-district-label span {
  display: inline-block;
  font-family: var(--display);
  font-weight: 800;
  font-size: 15px;
  color: #fff8e8;
  text-shadow:
    -2px -2px 0 rgba(20,12,6,0.9),
     2px -2px 0 rgba(20,12,6,0.9),
    -2px  2px 0 rgba(20,12,6,0.9),
     2px  2px 0 rgba(20,12,6,0.9);
  white-space: nowrap;
}
.map-car { background: none !important; border: 0 !important; pointer-events: none; }
.map-car span {
  display: block;
  width: 20px;
  height: 10px;
  border-radius: 4px;
  border: 1px solid rgba(20,12,6,0.7);
  box-shadow: 0 1px 3px rgba(0,0,0,0.55);
}
.map-add-form {
  position: absolute;
  z-index: 1200;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%);
  width: min(320px, calc(100% - 2rem));
  background: rgba(28, 22, 12, 0.96);
  border: 1px solid #c6ff4a;
  border-radius: 12px;
  padding: 0.8rem;
  color: #fff8e8;
}
.map-add-form[hidden] { display: none !important; }
.map-add-form label { display: block; font-size: 0.85rem; }
.map-add-form input {
  width: 100%;
  margin-top: 0.3rem;
  padding: 0.45rem 0.5rem;
  border-radius: 8px;
  border: 1px solid #ffc857;
  background: #1a140c;
  color: #fff8e8;
}
.map-add-actions { display: flex; gap: 0.5rem; margin-top: 0.6rem; }
.map-poi-index {
  width: min(1180px, calc(100% - 2rem));
  margin: 1.2rem auto 0;
}
.map-poi-index h2 { font-family: var(--display); font-size: 1.3rem; margin: 0 0 0.6rem; }
.map-poi-index ul { list-style: none; padding: 0; margin: 0; columns: 2; gap: 0 2rem; }
.map-poi-index li { break-inside: avoid; margin: 0.25rem 0; }
.map-poi-index a { color: #ffe9f6; text-decoration: none; }
.map-poi-index a:hover { color: #58c4d4; }
.map-index-cat {
  display: inline-block;
  min-width: 5.5rem;
  color: #ffc857;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.map-credit { color: #8a7a68; font-size: 0.78rem; margin: 0.8rem 0 0; }

@media (max-width: 800px) {
  .map-shell {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    display: block;
    position: relative;
  }
  .map-viewport {
    min-height: 440px;
    height: 72vh;
    border-radius: 0;
    border-left: 0;
    border-right: 0;
  }
  .map-filters {
    position: absolute;
    left: 0.6rem;
    right: 0.6rem;
    bottom: 0;
    z-index: 1100;
    max-height: 58%;
    overflow: auto;
    transform: translateY(calc(100% - 52px));
    transition: transform 0.22s ease;
    border-radius: 16px 16px 0 0;
    margin: 0;
    padding-bottom: 1rem;
  }
  .map-filters.is-open { transform: none; }
  .map-sheet-toggle { display: block; }
  .map-poi-index { columns: 1; width: min(1180px, calc(100% - 2rem)); }
  .map-poi-index ul { columns: 1; }
}

/* Game */
.game-shell {
  width: min(1100px, calc(100% - 2rem));
  margin: 1rem auto 0;
}
.game-hud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1rem;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.5rem;
  font-family: var(--display);
}
.game-stars { letter-spacing: 0.15em; font-size: 1.15rem; background: linear-gradient(90deg, #00f0ff, #ff2d95); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 0 6px rgba(0,240,255,0.45)); }
.game-frame {
  position: relative;
  border: 2px solid rgba(255, 90, 31, 0.45);
  border-radius: 12px;
  overflow: hidden;
  background: #1a1010;
  box-shadow: 0 0 24px rgba(255, 90, 31, 0.15);
}
#vesper-game {
  display: block;
  width: 100%;
  height: auto;
  background: #14301c;
  touch-action: none;
}
.game-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(8, 2, 10, 0.72);
  color: #fff;
  text-align: center;
  padding: 1.2rem;
  z-index: 3;
}
.game-overlay[hidden] { display: none !important; }
.game-overlay h2 { font-family: var(--display); margin: 0 0 0.5rem; font-size: clamp(1.6rem, 4vw, 2.4rem); }
.game-overlay p { margin: 0 0 1rem; max-width: 40ch; color: #f3d7c8; }
.game-touch {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
}
.stick-base, .pad-btn {
  pointer-events: auto;
  position: absolute;
  bottom: 16px;
}
.stick-base {
  left: 16px;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: rgba(0,0,0,0.35);
  border: 2px solid rgba(255,255,255,0.35);
  touch-action: none;
}
.stick-knob {
  position: absolute;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(255, 90, 31, 0.9);
  left: 32px;
  top: 32px;
  pointer-events: none;
}
.pad-btn {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.4);
  color: #fff;
  font-weight: 800;
  letter-spacing: 0.06em;
  background: rgba(0,0,0,0.4);
}
.pad-gas { right: 20px; background: rgba(0, 160, 90, 0.65); }
.pad-brake { right: 96px; background: rgba(160, 20, 40, 0.65); }
@media (min-width: 901px) {
  .game-touch { display: none; }
}
.game-help { color: var(--text-dim); font-size: 0.88rem; margin: 0.6rem 0 0; }

img[loading="lazy"] { background: #160a28; }

body.cheat-palmabris .beach-car { animation-duration: 5.5s; }
body.cheat-palmabris .beach-palms {
  background:
    radial-gradient(circle at 12% 70%, #0a3 0 8px, transparent 9px),
    radial-gradient(circle at 14% 62%, #063 0 18px, transparent 19px),
    radial-gradient(circle at 28% 74%, #0a3 0 7px, transparent 8px),
    radial-gradient(circle at 30% 66%, #063 0 16px, transparent 17px),
    radial-gradient(circle at 72% 70%, #0a3 0 8px, transparent 9px),
    radial-gradient(circle at 74% 62%, #063 0 18px, transparent 19px),
    radial-gradient(circle at 86% 72%, #0a3 0 8px, transparent 9px),
    radial-gradient(circle at 88% 64%, #063 0 20px, transparent 21px);
}
@media (prefers-reduced-motion: reduce) {
  .ticker-track, .ticker-label { animation: none; }
}
@media (max-width: 860px) {
  .map-shell { grid-template-columns: 1fr; }
}
img[loading="lazy"] { content-visibility: auto; }
