/* ============================================
   PhatMC — design tokens
   ============================================ */
:root {
  /* color */
  --bg-void: #10141a;
  --bg-panel: #1a2029;
  --bg-panel-raised: #212836;
  --line: #2b3242;
  --line-soft: #1f2530;

  --grass: #83b25a;
  --grass-deep: #5c8a3c;
  --lantern: #f0b84f;
  --lantern-dim: #a9803a;
  --redstone: #c85a4a;
  --waterlogged: #5fa3a8;

  --text-hi: #eef0e6;
  --text-mid: #a7b0a4;
  --text-low: #6b7266;

  /* type */
  --f-display: "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
  --f-body: "Inter", ui-sans-serif, system-ui, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, monospace;

  --radius: 10px;
  --radius-sm: 6px;
}

* { box-sizing: border-box; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg-void);
  color: var(--text-hi);
  font-family: var(--f-body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

::selection {
  background: var(--grass-deep);
  color: var(--text-hi);
}

/* subtle ambient noise/grid texture across whole page */
.chunk-noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    linear-gradient(var(--line-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-soft) 1px, transparent 1px);
  background-size: 64px 64px;
  opacity: 0.25;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black 40%, transparent 90%);
}

/* ============================================
   Topbar
   ============================================ */
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 32px;
  background: rgba(16, 20, 26, 0.82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-soft);
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: 0.01em;
}
.brand-mark { color: var(--grass); font-size: 1rem; }

.topnav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 0.9rem;
}
.topnav a {
  text-decoration: none;
  color: var(--text-mid);
  transition: color 0.15s ease;
}
.topnav a:hover { color: var(--text-hi); }
.topnav a.active { color: var(--text-hi); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 34px;
  height: 34px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  cursor: pointer;
  flex-shrink: 0;
}
.nav-toggle-bar {
  display: block;
  width: 16px;
  height: 2px;
  background: var(--text-mid);
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.topbar.nav-open .nav-toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.topbar.nav-open .nav-toggle-bar:nth-child(2) { opacity: 0; }
.topbar.nav-open .nav-toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================
   Sub-page hero (mods / map)
   ============================================ */
.page-hero {
  position: relative;
  z-index: 1;
  max-width: 880px;
  margin: 0 auto;
  padding: 72px 32px 40px;
}
.page-title {
  font-family: var(--f-display);
  font-size: clamp(2.2rem, 6vw, 3.2rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0 0 14px;
}
.page-sub {
  color: var(--text-mid);
  max-width: 62ch;
  font-size: 1.02rem;
  margin: 0;
}
.page-hero-map {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

/* ============================================
   Modpack page — version meta + download buttons
   ============================================ */
.pack-meta {
  font-family: var(--f-mono);
  font-size: 0.8rem;
  color: var(--text-low);
  margin: 0 0 20px;
}
.pack-downloads {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 14px;
}
.pack-note {
  margin: 0;
}
.pack-note code {
  font-family: var(--f-mono);
  background: var(--bg-panel);
  border: 1px solid var(--line);
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 0.9em;
  color: var(--text-hi);
}

/* ============================================
   Join note (link out to mods page)
   ============================================ */
.join-note {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line-soft);
  color: var(--text-low);
  font-size: 0.92rem;
}
.join-note a {
  color: var(--lantern);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}
.join-note a:hover { border-bottom-color: var(--lantern); }

/* ============================================
   Teaser cards (homepage → mods.html / map.html)
   ============================================ */
.teaser-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}
.teaser-card {
  display: block;
  background: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  text-decoration: none;
  color: var(--text-hi);
  transition: border-color 0.15s ease, transform 0.12s ease;
}
.teaser-card:hover { border-color: var(--grass-deep); transform: translateY(-2px); }
.teaser-card h2 {
  font-family: var(--f-display);
  font-size: 1.3rem;
  margin: 0 0 10px;
}
.teaser-card p {
  color: var(--text-mid);
  margin: 0 0 18px;
  font-size: 0.92rem;
}
.teaser-link {
  font-family: var(--f-mono);
  font-size: 0.82rem;
  color: var(--lantern);
}

/* ============================================
   Game cards (games.html)
   ============================================ */
.game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 24px;
}
.game-card {
  background: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.game-card:hover {
  border-color: var(--grass-deep);
  transform: translateY(-3px);
}

.game-card-media {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--bg-panel-raised);
}
.game-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.game-card:hover .game-card-media img {
  transform: scale(1.06);
}
.game-card-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(16, 20, 26, 0) 45%, var(--bg-panel) 100%);
  pointer-events: none;
}
.game-card-type {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 1;
  font-family: var(--f-mono);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-hi);
  background: rgba(16, 20, 26, 0.72);
  backdrop-filter: blur(4px);
  border: 1px solid var(--line);
  padding: 4px 10px;
  border-radius: 999px;
}

.game-card-body {
  padding: 20px 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.game-card-head {
  display: flex;
  align-items: center;
  gap: 12px;
}
.game-card-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  flex-shrink: 0;
  background: var(--bg-panel-raised);
  object-fit: cover;
}
.game-card-head h2 {
  font-family: var(--f-display);
  font-size: 1.4rem;
  margin: 4px 0 0;
}

.game-card-desc {
  color: var(--text-mid);
  font-size: 0.94rem;
  margin: 0;
}

.game-card-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.stat-chip {
  font-family: var(--f-mono);
  font-size: 0.72rem;
  color: var(--text-mid);
  background: var(--bg-panel-raised);
  border: 1px solid var(--line-soft);
  padding: 4px 10px;
  border-radius: 999px;
}

.game-card-connect {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.game-card .ip-row,
.game-card .status-pill {
  background: var(--bg-panel-raised);
}
.game-card-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--line-soft);
}
.game-card-links a {
  font-family: var(--f-mono);
  font-size: 0.82rem;
  color: var(--lantern);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}
.game-card-links a:hover { border-bottom-color: var(--lantern); }

@media (max-width: 640px) {
  .game-grid { grid-template-columns: 1fr; }
}

/* ============================================
   Mod compatibility badges (mods.html)
   ============================================ */
.mod-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 24px;
}
.mod-toolbar-end {
  justify-content: flex-end;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--f-mono);
  font-size: 0.76rem;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--bg-panel);
  border: 1px solid var(--line);
  color: var(--text-mid);
  cursor: pointer;
  transition: all 0.15s ease;
}
.filter-chip:hover { border-color: var(--grass-deep); color: var(--text-hi); }
.filter-chip[aria-pressed="true"] {
  background: var(--bg-panel-raised);
  border-color: var(--grass);
  color: var(--text-hi);
}
.filter-chip[data-filter="all"][aria-pressed="true"] { border-color: var(--lantern); }

.chip-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}
.chip-dot.badge-server { background: var(--grass); }
.chip-dot.badge-optional { background: var(--lantern); }
.chip-dot.badge-required { background: var(--redstone); }
.chip-dot.badge-auto { background: var(--waterlogged); }
.chip-dot.badge-unknown { background: var(--text-low); }

.view-toggle {
  display: flex;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
  flex-shrink: 0;
}
.view-btn {
  font-family: var(--f-mono);
  font-size: 0.78rem;
  padding: 7px 14px;
  background: var(--bg-panel);
  color: var(--text-mid);
  border: none;
  cursor: pointer;
  transition: all 0.15s ease;
}
.view-btn:not(:last-child) { border-right: 1px solid var(--line); }
.view-btn[aria-pressed="true"] { background: var(--bg-panel-raised); color: var(--text-hi); }
.view-btn:hover { color: var(--text-hi); }

.mod-filter-empty {
  color: var(--text-low);
  font-size: 0.92rem;
  margin: 4px 0 20px;
}

/* list view */
.mod-grid.list {
  grid-template-columns: 1fr;
  gap: 10px;
}
.mod-grid.list .mod-card { align-items: flex-start; }
.mod-grid.list .mod-card img { width: 48px; height: 48px; }
.mod-grid.list .mod-card-body p {
  -webkit-line-clamp: unset;
  display: block;
  overflow: visible;
}

.badge {
  font-family: var(--f-mono);
  font-size: 0.68rem;
  letter-spacing: 0.03em;
  padding: 3px 8px;
  border-radius: 4px;
  white-space: nowrap;
}
.badge-server { background: rgba(131, 178, 90, 0.15); color: var(--grass); }
.badge-optional { background: rgba(240, 184, 79, 0.15); color: var(--lantern); }
.badge-required { background: rgba(200, 90, 74, 0.15); color: var(--redstone); }
.badge-auto { background: rgba(95, 163, 168, 0.18); color: var(--waterlogged); }
.badge-unknown { background: var(--bg-panel-raised); color: var(--text-low); }

.mod-card-badge {
  margin-top: 8px;
  display: inline-block;
}

/* ============================================
   Map page iframe
   ============================================ */
.map-frame-wrap {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-panel);
  height: 70vh;
  min-height: 420px;
}
.map-frame-wrap iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}
.map-frame-note {
  margin-top: 14px;
}

@media (max-width: 640px) {
  .teaser-grid { grid-template-columns: 1fr; }
  .page-hero-map { align-items: flex-start; }
  .map-frame-wrap { height: 58vh; min-height: 320px; }
}

/* ============================================
   Hero
   ============================================ */
.hero {
  position: relative;
  z-index: 1;
  padding: 96px 32px 80px;
  max-width: 880px;
  margin: 0 auto;
}

.eyebrow {
  font-family: var(--f-mono);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--grass);
  margin: 0 0 14px;
}

.hero-title {
  font-family: var(--f-display);
  font-size: clamp(3rem, 9vw, 5.5rem);
  font-weight: 700;
  line-height: 0.95;
  margin: 0 0 20px;
  letter-spacing: -0.02em;
  text-shadow: 0 0 60px rgba(240, 184, 79, 0.15);
}

.hero-sub {
  font-size: 1.08rem;
  color: var(--text-mid);
  max-width: 52ch;
  margin: 0 0 36px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 32px;
}

.ip-row {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
}
.ip-label {
  font-family: var(--f-mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  color: var(--text-low);
}
.ip-value {
  font-family: var(--f-mono);
  font-size: 0.92rem;
  color: var(--text-hi);
}
.copy-btn {
  font-family: var(--f-mono);
  font-size: 0.78rem;
  background: var(--bg-panel-raised);
  color: var(--text-mid);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 4px 10px;
  cursor: pointer;
  transition: all 0.15s ease;
}
.copy-btn:hover { color: var(--text-hi); border-color: var(--grass); }
.copy-btn:focus-visible, a:focus-visible, .btn:focus-visible {
  outline: 2px solid var(--grass);
  outline-offset: 2px;
}

.status-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 0.88rem;
  color: var(--text-mid);
}
.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--text-low);
  flex-shrink: 0;
}
.status-pill[data-state="online"] .status-dot,
.status-pill[data-state="running"] .status-dot {
  background: var(--grass);
  box-shadow: 0 0 8px var(--grass);
  animation: pulse 2.2s ease-in-out infinite;
}
.status-pill[data-state="offline"] .status-dot { background: var(--redstone); }
.status-pill[data-state="asleep"] .status-dot { background: var(--waterlogged); }
.status-pill[data-state="online"] .status-text,
.status-pill[data-state="offline"] .status-text,
.status-pill[data-state="running"] .status-text,
.status-pill[data-state="asleep"] .status-text { color: var(--text-hi); }

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.45; }
}

.load-line {
  font-family: var(--f-mono);
  font-size: 0.78rem;
  color: var(--text-low);
  margin: 10px 0 0;
}

.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--f-body);
  font-weight: 600;
  font-size: 0.94rem;
  padding: 12px 22px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 0.12s ease, background 0.15s ease, border-color 0.15s ease;
}
.btn:active { transform: scale(0.98); }
.btn-primary {
  background: var(--grass);
  color: #10140f;
}
.btn-primary:hover { background: #93c369; }
.btn-ghost {
  background: transparent;
  color: var(--text-hi);
  border-color: var(--line);
}
.btn-ghost:hover { border-color: var(--grass); color: var(--grass); }

/* ============================================
   Sections (generic)
   ============================================ */
.section {
  position: relative;
  z-index: 1;
  max-width: 880px;
  margin: 0 auto;
  padding: 64px 32px;
  border-top: 1px solid var(--line-soft);
}

.section-head { margin-bottom: 32px; }
.section-head h2 {
  font-family: var(--f-display);
  font-size: 2rem;
  margin: 0 0 8px;
  letter-spacing: -0.01em;
}
.section-note { color: var(--text-mid); margin: 0; max-width: 60ch; }

/* ============================================
   Chunk grid (who's online) — signature element
   ============================================ */
.chunk-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(64px, 1fr));
  gap: 6px;
  max-width: 640px;
}

.chunk-tile {
  position: relative;
  aspect-ratio: 1;
  border-radius: 5px;
  background: var(--bg-panel);
  border: 1px solid var(--line-soft);
  opacity: 0;
  animation: chunk-load 0.4s ease forwards;
}

.chunk-tile.empty {
  background-image: linear-gradient(45deg, var(--line-soft) 25%, transparent 25%),
    linear-gradient(-45deg, var(--line-soft) 25%, transparent 25%);
  background-size: 8px 8px;
  background-position: 0 0;
  opacity: 0.35;
}

.chunk-tile.lit {
  background: linear-gradient(160deg, var(--bg-panel-raised), var(--bg-panel));
  border-color: var(--grass-deep);
  box-shadow: 0 0 0 1px rgba(131, 178, 90, 0.15), 0 4px 18px rgba(131, 178, 90, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
}
.chunk-tile.lit img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 3px;
  image-rendering: pixelated;
}
.chunk-tile.lit .chunk-name {
  position: absolute;
  bottom: -22px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--f-mono);
  font-size: 0.68rem;
  color: var(--text-mid);
  white-space: nowrap;
}

.chunk-tile.lit.afk {
  border-color: var(--lantern-dim);
  box-shadow: 0 0 0 1px rgba(169, 128, 58, 0.15), 0 4px 18px rgba(169, 128, 58, 0.1);
}
.chunk-tile.lit.afk img {
  filter: grayscale(0.55) brightness(0.72);
}
.chunk-tile.lit.afk::after {
  content: "z";
  position: absolute;
  top: -4px;
  right: -4px;
  width: 16px;
  height: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--f-mono);
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--bg-void);
  background: var(--lantern-dim);
  border-radius: 50%;
}
.chunk-tile.lit.afk .chunk-name {
  color: var(--lantern-dim);
}

@keyframes chunk-load {
  from { opacity: 0; transform: scale(0.85); }
  to { opacity: 1; transform: scale(1); }
}

.chunk-empty, .chunk-error, .mod-error {
  color: var(--text-low);
  font-size: 0.92rem;
  margin-top: 12px;
}

/* ============================================
   Steps (how to join)
   ============================================ */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.step {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}
.step-num {
  font-family: var(--f-mono);
  font-size: 0.85rem;
  color: var(--lantern-dim);
  padding-top: 3px;
  flex-shrink: 0;
}
.step h3 {
  font-family: var(--f-display);
  font-size: 1.15rem;
  margin: 0 0 6px;
}
.step p { margin: 0; color: var(--text-mid); }
.step code {
  font-family: var(--f-mono);
  background: var(--bg-panel);
  border: 1px solid var(--line);
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 0.9em;
  color: var(--text-hi);
}

/* ============================================
   Mods grid
   ============================================ */
.mod-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
  margin-bottom: 20px;
}
.mod-card {
  display: flex;
  gap: 12px;
  background: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 14px;
  text-decoration: none;
  color: var(--text-hi);
  transition: border-color 0.15s ease, transform 0.12s ease;
}
.mod-card:hover { border-color: var(--grass-deep); transform: translateY(-2px); }
.mod-card img {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  flex-shrink: 0;
  background: var(--bg-panel-raised);
  object-fit: cover;
}
.mod-card-body h3 {
  font-size: 0.95rem;
  margin: 0 0 4px;
  font-family: var(--f-display);
}
.mod-card-body p {
  font-size: 0.8rem;
  color: var(--text-mid);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.mod-skeleton {
  background: var(--bg-panel);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
  height: 68px;
  opacity: 0.5;
}

.collection-link {
  display: inline-block;
  font-family: var(--f-mono);
  font-size: 0.85rem;
  color: var(--lantern);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}
.collection-link:hover { border-bottom-color: var(--lantern); }

/* ============================================
   Rules
   ============================================ */
.rules-list {
  margin: 0;
  padding-left: 1.4em;
  display: flex;
  flex-direction: column;
  gap: 12px;
  color: var(--text-mid);
}
.rules-list li::marker {
  font-family: var(--f-mono);
  color: var(--lantern-dim);
}

/* ============================================
   Map CTA card
   ============================================ */
.section-map { border-top: 1px solid var(--line-soft); }
.map-card {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 32px;
  align-items: center;
  background: linear-gradient(160deg, var(--bg-panel-raised), var(--bg-panel));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 40px;
}
.map-card-text h2 {
  font-family: var(--f-display);
  font-size: 1.7rem;
  margin: 0 0 10px;
}
.map-card-text p {
  color: var(--text-mid);
  margin: 0 0 20px;
  max-width: 46ch;
}
.map-card-visual {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}
.map-tile {
  aspect-ratio: 1;
  border-radius: 6px;
  background: var(--grass-deep);
  opacity: 0.25;
}
.map-tile:nth-child(2) { background: var(--lantern-dim); opacity: 0.3; }
.map-tile:nth-child(4) { background: var(--lantern-dim); opacity: 0.2; }
.map-tile:nth-child(5) { background: var(--grass); opacity: 0.4; }
.map-tile:nth-child(6) { opacity: 0.15; }

/* ============================================
   Footer
   ============================================ */
.footer {
  text-align: center;
  padding: 40px 32px 60px;
  color: var(--text-low);
  font-size: 0.85rem;
  font-family: var(--f-mono);
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 640px) {
  .topbar { padding: 14px 18px; }

  .nav-toggle { display: flex; }

  .topnav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--bg-void);
    border-bottom: 1px solid var(--line-soft);
    padding: 0 18px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
  }
  .topbar.nav-open .topnav {
    max-height: 420px;
    padding: 4px 18px 14px;
  }
  .topnav a {
    padding: 12px 0;
    border-bottom: 1px solid var(--line-soft);
    font-size: 0.95rem;
  }
  .topnav a:last-child { border-bottom: none; }

  .hero { padding: 64px 20px 56px; }
  .section { padding: 48px 20px; }
  .map-card { grid-template-columns: 1fr; padding: 28px; }
  .map-card-visual { display: none; }
}