/**
 * 20x21EUG Mural Tour — style.css
 * ─────────────────────────────────────────────────────────────────────────────
 * All styles for the mural tour app. Theming is controlled entirely through
 * CSS custom properties in :root — change those values to restyle the whole app.
 *
 * LAYOUT OVERVIEW
 *
 *   Desktop (≥768px)
 *   ┌──────────────────────────────────────────────────────────┐
 *   │  #app-header  (fixed, full width, z-index 700)          │
 *   ├─────────────┬────────────────────────────────────────────┤
 *   │  #sidebar   │  #map                                     │
 *   │  (520px,    │  #tour-progress (fixed below header       │
 *   │  z-index    │   during active tour, z-index 600)        │
 *   │  400)       │  #fab-area (floating, bottom-right)       │
 *   └─────────────┴────────────────────────────────────────────┘
 *
 *   Mobile (<768px)
 *   ┌──────────────────────────────────────────────────────────┐
 *   │  #app-header                                            │
 *   ├──────────────────────────────────────────────────────────┤
 *   │  #map                                                   │
 *   │  #fab-area (floating, bottom-right)                     │
 *   └──────────────────────────────────────────────────────────┘
 *        ↑ #drawer slides up from the bottom (3 states below)
 *
 * DRAWER STATES (mobile only)
 *   hidden  — no class  — translateY(100%)           fully off screen
 *   peek    — .peek     — translateY(100% - 120px)   peek strip at bottom
 *   open    — .open     — translateY(0)              full 65vh
 *
 * BREAKPOINT: 768px
 *   Below: drawer, mobile filter panel, and header filter button are active.
 *   Above: sidebar replaces drawer; filter panel and filter button are hidden.
 *
 * iOS SAFE AREAS
 *   --safe-top and --safe-bottom use env(safe-area-inset-*) to clear the
 *   iPhone notch and home indicator. Requires viewport-fit=cover in the
 *   <meta name="viewport"> tag (already set in index.html).
 */

:root {
  --bg:             #0D0D0D;
  --surface:        #1A1A1A;
  --surface-raised: #242424;
  --accent:         #E8401C;
  --accent-hover:   #C93516;
  --text-primary:   #F5F0EB;
  --text-secondary: #A0998F;
  --border:         #2E2E2E;
  --pin-unvisited:  #E8401C;
  --pin-visited:    #555550;
  --header-h:       52px;
  --sidebar-w:      520px;
  --safe-top:       env(safe-area-inset-top, 0px);
  --safe-bottom:    env(safe-area-inset-bottom, 0px);
}

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

.skip-link {
  position: absolute;
  top: -100%;
  left: 8px;
  background: var(--surface);
  color: var(--text-primary);
  padding: 8px 16px;
  border-radius: 0 0 6px 6px;
  font-size: 16px;
  z-index: 9999;
  text-decoration: none;
  border: 1px solid var(--border);
}
.skip-link:focus { top: 0; }

html, body {
  height: 100%;
  background: var(--bg);
  color: var(--text-primary);
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  overflow: hidden;
}

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

/* ── HEADER ── */
#app-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: calc(var(--header-h) + var(--safe-top));
  padding-top: var(--safe-top);
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  padding-left: 12px;
  padding-right: 12px;
  gap: 10px;
  z-index: 700;
}

.header-logo {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 22px;
  letter-spacing: 1px;
  color: var(--text-primary);
  flex: 1;
}

.visited-counter {
  font-size: 16px;
  color: var(--text-secondary);
  white-space: nowrap;
}

.visited-counter.complete {
  color: var(--accent);
  font-weight: 600;
}

.icon-btn {
  background: none;
  border: 1px solid var(--border);
  color: var(--text-primary);
  border-radius: 6px;
  padding: 6px 12px;
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  min-height: 44px;
  min-width: 44px;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: background 0.15s;
  white-space: nowrap;
}

.icon-btn:hover { background: var(--surface-raised); }
.icon-btn:disabled { opacity: 0.4; cursor: default; }

.filter-badge {
  background: var(--accent);
  color: #fff;
  border-radius: 10px;
  font-size: 13px;
  padding: 1px 6px;
  font-weight: 600;
  line-height: 1.4;
}

/* ── TOUR PROGRESS BAR ── */
#tour-progress {
  position: fixed;
  top: calc(var(--header-h) + var(--safe-top));
  left: 0; right: 0;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 8px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  z-index: 600;
  flex-wrap: wrap;
}

#tour-progress.hidden { display: none; }

#tour-progress-text {
  font-size: 16px;
  color: var(--text-primary);
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tour-nav { display: flex; gap: 6px; flex-shrink: 0; }

.tour-nav button {
  min-height: 44px;
  padding: 0 10px;
  background: var(--surface-raised);
  border: 1px solid var(--border);
  color: var(--text-primary);
  border-radius: 4px;
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s;
}

.tour-nav button:hover:not(:disabled) { background: var(--border); }
.tour-nav button:disabled { opacity: 0.4; cursor: default; }

#tour-exit { border-color: var(--accent) !important; color: var(--accent) !important; }

/* ── MAP ── */
#map {
  position: fixed;
  top: calc(var(--header-h) + var(--safe-top));
  left: 0; right: 0; bottom: 0;
  z-index: 0;
}

body.tour-active #map { top: calc(var(--header-h) + var(--safe-top) + 46px); }

/* ── LOADING OVERLAY ── */
#map-loading {
  position: absolute;
  inset: 0;
  background: rgba(13,13,13,0.88);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  z-index: 1000;
  color: var(--text-primary);
  font-size: 16px;
}

.spinner {
  width: 40px; height: 40px;
  border: 3px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

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

/* ── CUSTOM PIN ── */
.mural-pin { transition: transform 0.15s ease; cursor: pointer; display: block; }
.mural-pin:hover, .mural-pin:focus { transform: scale(1.3); }
.mural-pin.active svg circle:first-child { stroke: #fff; stroke-width: 3; }

/* ── LEAFLET POPUP OVERRIDES ── */
.leaflet-popup-content-wrapper {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.5);
  padding: 0;
  overflow: hidden;
}

.leaflet-popup-content { margin: 0; }
.leaflet-popup-tip-container { display: none; }
.leaflet-container a.leaflet-popup-close-button { display: none; }

.pin-popup { cursor: pointer; width: 200px; overflow: hidden; }
.popup-img { width: 200px; height: 130px; object-fit: contain; display: block; background: #000; }
.popup-info { padding: 8px 10px; }
.popup-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 16px;
  color: var(--text-primary);
  margin: 0;
  line-height: 1.2;
  word-wrap: break-word;
  overflow-wrap: break-word;
}
.popup-artist {
  font-size: 16px;
  color: var(--text-secondary);
  margin: 3px 0 0;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

/* ── FABs ── */
#fab-area {
  position: fixed;
  bottom: calc(24px + var(--safe-bottom));
  right: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 400;
}

.fab {
  min-height: 44px;
  padding: 0 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-primary);
  border-radius: 22px;
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(0,0,0,0.5);
  transition: background 0.15s;
}

.fab:hover { background: var(--surface-raised); }

/* ── BOTTOM DRAWER (mobile) ── */
#drawer {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: 65vh;
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-radius: 12px 12px 0 0;
  transform: translateY(100%);
  transition: transform 0.3s ease;
  overflow-y: auto;
  z-index: 500;
  overscroll-behavior: contain;
}

#drawer { padding-bottom: var(--safe-bottom); }
#drawer.open { transform: translateY(0); }
#drawer.peek { transform: translateY(calc(100% - 120px - var(--safe-bottom))); }

.drawer-handle {
  width: 40px; height: 4px;
  border-radius: 2px;
  background: var(--border);
  margin: 10px auto 4px;
  flex-shrink: 0;
}

/* ── TOUR PEEK CARD ── */
.tour-peek-card {
  display: none;
  align-items: center;
  gap: 12px;
  padding: 8px 14px 10px;
  cursor: pointer;
  border-bottom: 1px solid var(--border);
  min-height: 96px;
}

#drawer.peek .tour-peek-card { display: flex; }

.tour-peek-img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 6px;
  flex-shrink: 0;
  background: #000;
}

.tour-peek-info {
  flex: 1;
  min-width: 0;
}

.tour-peek-stop {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 3px;
}

.tour-peek-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 22px;
  color: var(--text-primary);
  line-height: 1.1;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.tour-peek-hint {
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 4px;
}

.tour-peek-chevron {
  color: var(--text-secondary);
  flex-shrink: 0;
}

/* FABs float above the peek card during a tour */
@media (max-width: 767px) {
  body.tour-active #fab-area { bottom: calc(120px + 16px + var(--safe-bottom)); }
}

/* ── TRACK ME BUTTON ── */
#tour-track-me {
  min-width: 44px;
  padding: 0 10px;
}

#tour-track-me.active {
  border-color: #5B9CF6;
  color: #5B9CF6;
}

/* ── GPS DOT ── */
.gps-dot {
  position: relative;
  width: 20px;
  height: 20px;
}

.gps-dot-inner {
  width: 12px;
  height: 12px;
  background: #5B9CF6;
  border: 2px solid #fff;
  border-radius: 50%;
  position: absolute;
  top: 4px; left: 4px;
  z-index: 1;
}

.gps-dot-pulse {
  width: 20px;
  height: 20px;
  background: rgba(91,156,246,0.35);
  border-radius: 50%;
  position: absolute;
  top: 0; left: 0;
  animation: gps-pulse 1.5s ease-out infinite;
}

@keyframes gps-pulse {
  0%  { transform: scale(0.6); opacity: 1; }
  100%{ transform: scale(2);   opacity: 0; }
}

/* ── DESKTOP SIDEBAR ── */
#sidebar { display: none; }

@media (min-width: 768px) {
  #map { left: var(--sidebar-w); }
  body.tour-active #map { left: var(--sidebar-w); }

  #sidebar {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: calc(var(--header-h) + var(--safe-top));
    left: 0;
    width: var(--sidebar-w);
    bottom: 0;
    background: var(--surface);
    border-right: 1px solid var(--border);
    z-index: 400;
    overflow: hidden;
  }

  .sidebar-top {
    flex-shrink: 0;
    border-bottom: 1px solid var(--border);
  }

  .sidebar-logo-row {
    padding: 12px 14px;
    border-bottom: 1px solid var(--border);
  }

  .sidebar-logo-row .header-logo { font-size: 18px; }

  #sidebar-filter-section { padding: 12px 14px; }

  #sidebar-content {
    flex: 1;
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  #drawer { display: none; }
  #filter-btn { display: none; }
  #filter-panel { display: none; }
  #filter-overlay { display: none; }

  #tour-progress { left: var(--sidebar-w); }
  #tour-sheet { left: var(--sidebar-w); border-radius: 12px 12px 0 0; }
  #tour-overlay { left: var(--sidebar-w); }
  #about-modal { left: var(--sidebar-w); border-radius: 12px 12px 0 0; }
  #about-overlay { left: var(--sidebar-w); }

  #fab-area { right: 16px; }

  .sidebar-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    border-top: 1px solid var(--border);
    flex-shrink: 0;
    font-size: 13px;
    color: var(--text-secondary);
  }

  .sidebar-footer-about {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 13px;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    text-decoration: underline;
    padding: 4px 0;
    min-height: 44px;
  }

  .sidebar-footer-about:hover { color: var(--text-primary); }
}

/* ── SIDEBAR FILTER SECTION (desktop inline) ── */
.sf-heading {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.sf-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
}

.chip {
  padding: 4px 10px;
  border: 1px solid var(--border);
  border-radius: 12px;
  font-size: 16px;
  font-family: 'Inter', sans-serif;
  color: var(--text-secondary);
  cursor: pointer;
  background: none;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
  min-height: 44px;
  display: flex;
  align-items: center;
}

.chip.active {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(232,64,28,0.08);
}

.chip:hover:not(.active) { border-color: var(--text-secondary); color: var(--text-primary); }

.sf-clear {
  font-size: 16px;
  color: var(--text-secondary);
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px 8px;
  text-decoration: underline;
  min-height: 44px;
}

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

/* ── SIDEBAR / DRAWER DETAIL CONTENT ── */
.sidebar-empty {
  padding: 40px 16px;
  color: var(--text-secondary);
  font-size: 16px;
  text-align: center;
  line-height: 1.5;
}

.detail-img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  display: block;
  background: #000;
}

.detail-body { padding: 16px; }

.detail-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 32px;
  letter-spacing: 1px;
  color: var(--text-primary);
  line-height: 1.1;
  margin-bottom: 6px;
}

.detail-meta {
  font-size: 16px;
  color: var(--text-secondary);
  margin-bottom: 4px;
}

.detail-address {
  font-size: 16px;
  color: var(--text-primary);
  margin-bottom: 14px;
}

.detail-body hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 12px 0;
}

.detail-description {
  font-size: 16px;
  color: var(--text-primary);
  line-height: 1.6;
  margin-bottom: 18px;
}

/* ── DETAIL TAGS ── */
.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
}

.detail-tag {
  padding: 3px 10px;
  border: 1px solid var(--border);
  border-radius: 12px;
  font-size: 14px;
  font-family: 'Inter', sans-serif;
  color: var(--text-secondary);
  line-height: 1.6;
  white-space: nowrap;
}

.detail-tag-visited {
  border-color: var(--text-secondary);
}

.detail-tag-visited.active {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(232,64,28,0.08);
}

/* ── VISITED BUTTON ── */
.btn-visited {
  display: block;
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--accent);
  background: transparent;
  color: var(--accent);
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 500;
  border-radius: 6px;
  cursor: pointer;
  margin-bottom: 12px;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.btn-visited:hover { background: rgba(232,64,28,0.1); }

.btn-visited.active {
  background: var(--pin-visited);
  border-color: var(--pin-visited);
  color: var(--text-primary);
}

.btn-visited.active:hover { background: #666660; }

/* ── ACTION BUTTONS ── */
.detail-actions {
  display: flex;
  gap: 8px;
}

.btn-action {
  flex: 1;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-hover);
  color: var(--text-primary);
  text-decoration: none;
  border-radius: 6px;
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 500;
  transition: background 0.15s;
  padding: 0 12px;
  text-align: center;
}

.btn-action:hover { background: var(--accent-hover); }

.btn-action-secondary {
  background: var(--surface-raised);
  border: 1px solid var(--border);
}

.btn-action-secondary:hover { background: var(--border); }

/* ── MOBILE FILTER PANEL ── */
#filter-panel {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: min(80vw, 300px);
  background: var(--surface);
  border-left: 1px solid var(--border);
  z-index: 750;
  display: flex;
  flex-direction: column;
  transform: translateX(110%);
  transition: transform 0.25s ease;
}

#filter-panel.open { transform: translateX(0); }

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

.filter-panel-header h2 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 22px;
  letter-spacing: 1px;
}

.filter-panel-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  overscroll-behavior: contain;
}

.filter-panel-footer {
  padding: 12px 16px;
  border-top: 1px solid var(--border);
  flex-shrink: 0;
}

#filter-clear {
  width: 100%;
  min-height: 44px;
  background: none;
  border: 1px solid var(--border);
  color: var(--text-secondary);
  border-radius: 6px;
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
}

#filter-clear:hover { border-color: var(--text-secondary); color: var(--text-primary); }

/* Shared filter control styles (used in both panel and sidebar) */
.filter-section { margin-bottom: 20px; }

.filter-section h3 {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
  margin-bottom: 10px;
}

.filter-option {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 0;
  font-size: 16px;
  color: var(--text-primary);
  cursor: pointer;
  min-height: 32px;
}

.filter-option input[type="checkbox"],
.filter-option input[type="radio"] {
  accent-color: var(--accent);
  width: 16px; height: 16px;
  cursor: pointer;
  flex-shrink: 0;
}

/* ── OVERLAY ── */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 700;
}

.overlay.hidden { display: none; }

/* ── TOUR SHEET ── */
#tour-sheet {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-radius: 12px 12px 0 0;
  z-index: 750;
  transform: translateY(110%);
  transition: transform 0.3s ease;
  padding-bottom: env(safe-area-inset-bottom, 0);
}

#tour-sheet.open { transform: translateY(0); }

.tour-sheet-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 16px 12px;
  border-bottom: 1px solid var(--border);
}

.tour-sheet-header h2 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 22px;
  letter-spacing: 1px;
}

#tour-cards { padding: 12px; display: grid; gap: 10px; }

.tour-card {
  background: var(--surface-raised);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.tour-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
}

.tour-card-dot {
  width: 12px; height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
}

.tour-card-name {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 22px;
  letter-spacing: 0.5px;
  color: var(--text-primary);
  line-height: 1.1;
}

.tour-card-stats {
  display: flex;
  align-items: center;
  background: var(--bg);
  border-radius: 6px;
  padding: 10px 0;
}

.tour-stat {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
}

.tour-stat-value {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 20px;
  letter-spacing: 0.5px;
  color: var(--text-primary);
  line-height: 1;
}

.tour-stat-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-secondary);
}

.tour-stat-sep {
  width: 1px;
  height: 30px;
  background: var(--border);
  flex-shrink: 0;
}

.tour-card-btn {
  width: 100%;
  min-height: 44px;
  padding: 0 14px;
  background: var(--accent);
  border: none;
  color: var(--text-primary);
  border-radius: 4px;
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s;
}

.tour-card-btn:hover { background: var(--accent-hover); }

/* ── ACCESSIBLE TOAST ── */
#a11y-toast {
  position: fixed;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  background: var(--surface-raised);
  color: var(--text-primary);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 10px 16px;
  font-size: 16px;
  z-index: 900;
  opacity: 0;
  transition: opacity 0.2s, transform 0.2s;
  pointer-events: none;
  max-width: min(80vw, 320px);
  text-align: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.5);
}
#a11y-toast.visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ── ABOUT MODAL ── */
#about-modal {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-radius: 12px 12px 0 0;
  z-index: 750;
  transform: translateY(110%);
  transition: transform 0.3s ease;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
}

#about-modal.open { transform: translateY(0); }

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

.about-modal-header h2 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 22px;
  letter-spacing: 1px;
}

.about-modal-body {
  flex: 1;
  overflow-y: auto;
  padding: 20px 16px;
  overscroll-behavior: contain;
}

.about-modal-body p {
  font-size: 16px;
  color: var(--text-primary);
  line-height: 1.6;
  margin-bottom: 16px;
}

.about-modal-body a {
  color: var(--accent);
  text-decoration: underline;
}

.about-modal-body a:hover { color: var(--text-primary); }

.about-credits {
  margin-bottom: 16px;
  display: grid;
  gap: 6px;
}

.about-credits dt {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
  margin-top: 10px;
}

.about-credits dd {
  font-size: 16px;
  color: var(--text-primary);
  line-height: 1.5;
  margin-left: 0;
}

.about-official {
  border-top: 1px solid var(--border);
  padding-top: 16px;
  font-weight: 500 !important;
  text-align: center;
}
