:root {
  --bg: #080414;
  --bg-2: #120923;
  --panel: rgba(23, 9, 42, 0.88);
  --hot-pink: #ff2aa3;
  --cyan: #1df7ff;
  --purple: #8b39ff;
  --yellow: #ffe066;
  --text: #fff6ff;
  --muted: #cdbde9;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.42);
  --radius: 24px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: "Trebuchet MS", "Lucida Grande", Arial, sans-serif;
  background:
    linear-gradient(rgba(8, 4, 20, 0.86), rgba(8, 4, 20, 0.96)),
    url("assets/images/grid-bg.svg"),
    radial-gradient(circle at top left, rgba(255, 42, 163, 0.3), transparent 30%),
    radial-gradient(circle at top right, rgba(29, 247, 255, 0.22), transparent 28%),
    var(--bg);
  line-height: 1.6;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(18px);
  background: rgba(8, 4, 20, 0.84);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.navbar {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  letter-spacing: 0.04em;
  color: var(--cyan);
  text-shadow: 0 0 16px rgba(29, 247, 255, 0.8);
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: var(--bg);
  background: linear-gradient(135deg, var(--cyan), var(--hot-pink));
  border-radius: 50%;
  box-shadow: 0 0 22px rgba(255, 42, 163, 0.7);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  text-decoration: none;
  font-weight: 800;
  font-size: 0.92rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}
.nav-links a:hover { color: var(--yellow); text-shadow: 0 0 12px var(--yellow); }
.nav-toggle { display: none; }

.hero {
  position: relative;
  min-height: 78vh;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-bottom: 4px solid var(--hot-pink);
}
.hero > img {
  width: 100%;
  height: 78vh;
  object-fit: cover;
  filter: saturate(1.2) contrast(1.08);
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(8, 4, 20, 0.82), rgba(8, 4, 20, 0.2), rgba(8, 4, 20, 0.76));
}
.hero-overlay {
  position: absolute;
  z-index: 2;
  width: min(980px, calc(100% - 36px));
  text-align: center;
  padding: 40px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  background: rgba(8, 4, 20, 0.36);
  box-shadow: var(--shadow);
}
h1, h2, h3 { line-height: 1.05; margin: 0 0 16px; }
h1 {
  font-size: clamp(4rem, 13vw, 10rem);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
  text-shadow: 0 0 10px #fff, 0 0 28px var(--hot-pink), 0 0 58px var(--purple);
}
h2 { font-size: clamp(2rem, 5vw, 4.1rem); }
h3 { font-size: 1.35rem; color: var(--yellow); }
.eyebrow {
  margin: 0 0 12px;
  color: var(--cyan);
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-shadow: 0 0 12px rgba(29, 247, 255, 0.7);
}
.hero-overlay p:not(.eyebrow) { font-size: clamp(1.2rem, 2vw, 1.6rem); margin-bottom: 28px; }

.button, .mini-button {
  border: 0;
  cursor: pointer;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  text-decoration: none;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #14051f;
  background: linear-gradient(135deg, var(--yellow), var(--hot-pink));
  border-radius: 999px;
  padding: 14px 22px;
  box-shadow: 0 0 24px rgba(255, 42, 163, 0.5);
}
.button:hover, .mini-button:hover { transform: translateY(-2px); }
.ghost { background: transparent; border: 2px solid var(--cyan); color: var(--cyan); }
.glow { box-shadow: 0 0 34px rgba(29, 247, 255, 0.5), 0 0 44px rgba(255, 42, 163, 0.42); }

.marquee-strip {
  display: flex;
  overflow: hidden;
  gap: 28px;
  padding: 14px 0;
  background: linear-gradient(90deg, var(--hot-pink), var(--purple), var(--cyan));
  color: #10051c;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  white-space: nowrap;
}
.marquee-strip span { animation: crawl 18s linear infinite; }
@keyframes crawl { to { transform: translateX(-300px); } }

.content-section {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 86px 0;
}
.intro-grid, .library-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
  gap: 30px;
  align-items: center;
}
.poster-card, .panel, .map-copy, .note-grid article {
  background: var(--panel);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.poster-card { padding: 28px; transform: rotate(1deg); }
.panel { padding: 28px; }

form { display: grid; gap: 16px; }
label { display: grid; gap: 7px; color: var(--muted); font-weight: 800; }
input {
  width: 100%;
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
  border: 2px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  padding: 14px 16px;
  outline: none;
}
input:focus { border-color: var(--cyan); box-shadow: 0 0 0 4px rgba(29, 247, 255, 0.12); }
.coordinate-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.hint { color: var(--muted); font-size: 0.92rem; }

.list-heading { display: flex; justify-content: space-between; gap: 16px; align-items: start; }
.mini-button { padding: 10px 14px; font-size: 0.76rem; }
.vhs-list { display: grid; gap: 14px; max-height: 590px; overflow: auto; padding-right: 4px; }
.vhs-item {
  display: grid;
  gap: 8px;
  padding: 16px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(255, 42, 163, 0.16), rgba(29, 247, 255, 0.08));
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.vhs-item strong { color: var(--yellow); font-size: 1.18rem; }
.vhs-meta { color: var(--muted); }
.delete-btn { justify-self: start; font: inherit; color: var(--cyan); background: none; border: 0; cursor: pointer; padding: 0; }
.delete-btn:hover { color: var(--hot-pink); }

.map-wrap { display: grid; grid-template-columns: 0.55fr 1fr; gap: 26px; align-items: stretch; }
.map-copy { padding: 28px; }
#map {
  min-height: 520px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 3px solid var(--cyan);
  box-shadow: 0 0 34px rgba(29, 247, 255, 0.22), var(--shadow);
  background: #101010;
}
.leaflet-popup-content-wrapper, .leaflet-popup-tip { background: #14051f; color: var(--text); }

.field-notes { text-align: center; }
.note-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; text-align: left; margin-top: 28px; }
.note-grid article { padding: 24px; }

.footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 34px 0 50px;
  color: var(--muted);
}
.footer a { color: var(--cyan); text-decoration: none; }

@media (max-width: 850px) {
  .nav-toggle {
    display: inline-flex;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.08);
    color: var(--text);
    border-radius: 12px;
    padding: 8px 12px;
    font-size: 1.3rem;
  }
  .nav-links {
    position: absolute;
    left: 16px;
    right: 16px;
    top: 72px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 18px;
    background: rgba(8, 4, 20, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 18px;
  }
  .nav-links.open { display: flex; }
  .intro-grid, .library-layout, .map-wrap, .note-grid { grid-template-columns: 1fr; }
  .coordinate-grid { grid-template-columns: 1fr; }
  .hero, .hero > img { min-height: 70vh; height: 70vh; }
  .hero-overlay { padding: 24px; }
  .footer { flex-direction: column; }
}
