:root {
  --bg: #09070d;
  --card: #17101e;
  --cream: #f8f2e7;
  --muted: #ad9faf;
  --orange: #ef6c24;
  --purple: #a678d0;
}
* {
  box-sizing: border-box;
}
[hidden] {
  display: none !important;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background:
    radial-gradient(circle at 20% 0, #251135 0, transparent 32rem),
    radial-gradient(circle at 92% 58%, #28113880 0, transparent 29rem),
    var(--bg);
  color: var(--cream);
  font-family: "Trebuchet MS", Arial, sans-serif;
  line-height: 1.55;
}
button,
input,
textarea {
  font: inherit;
}
button {
  color: inherit;
}
.hidden {
  display: none !important;
}
.site-header {
  height: 86px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(20px, 5vw, 72px);
  border-bottom: 1px solid #c997df2e;
  background: linear-gradient(105deg, #2a1238f5, #180b24f5 58%, #32163ff5);
  box-shadow: 0 12px 34px #05020755;
}
.brand-lockup {
  display: flex;
  align-items: center;
  gap: 13px;
}
.brand-mark,
.footer-logo {
  width: 58px;
  height: 58px;
  padding: 3px;
  border-radius: 50%;
  object-fit: contain;
  background: radial-gradient(
    circle,
    #e3c9ed 0 38%,
    #ad78c1 62%,
    #613675 73%,
    transparent 74%
  );
  filter: drop-shadow(0 0 18px #d19be270) drop-shadow(0 0 12px #ef6c2440);
}
.brand-lockup h1 {
  font:
    600 clamp(1.05rem, 2vw, 1.45rem)/1.1 Georgia,
    serif;
  margin: 0 0 4px;
}
.brand-lockup p,
.eyebrow {
  margin: 0;
  color: var(--orange);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.72rem;
  font-weight: 800;
}
.button {
  border: 0;
  border-radius: 10px;
  background: var(--orange);
  color: #180a03;
  padding: 10px 17px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 7px 25px #a057c82b;
}
.button:hover {
  filter: brightness(1.08);
}
.button.outline {
  border: 1px solid #ffffff2c;
  background: #130d19;
  color: var(--cream);
  box-shadow: none;
}
.story-intro {
  position: relative;
  max-width: 860px;
  margin: 20px auto 0;
  padding: 38px 46px 24px;
  text-align: center;
}
.story-intro:before,
.story-intro:after {
  content: "";
  position: absolute;
  top: 0;
  width: 72px;
  height: 1px;
  background: linear-gradient(90deg, transparent, #ef6c2470);
}
.story-intro:before {
  left: calc(50% - 82px);
}
.story-intro:after {
  right: calc(50% - 82px);
  transform: scaleX(-1);
}
.story-intro h2,
.map-heading h2,
.how-it-works h2,
.modal h2 {
  font:
    600 clamp(2rem, 4vw, 3.2rem)/1.05 Georgia,
    serif;
  margin: 9px 0 18px;
}
.story-intro > p:not(.eyebrow) {
  max-width: 720px;
  margin: 0 auto 12px;
  color: #b8acba;
  line-height: 1.75;
}
.story-intro > p:last-child {
  color: #eadfea;
  font-weight: 700;
}
.intro-bar {
  display: flex;
  align-items: stretch;
  justify-content: center;
  max-width: 1220px;
  margin: auto;
  padding: 8px 20px 34px;
}
.event-date,
.event-fact {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 0 32px;
  border-right: 1px solid #ffffff16;
}
.event-fact:last-child {
  border: 0;
}
.event-date b {
  font: 700 3.4rem/1 Georgia;
  color: var(--orange);
}
.event-date span,
.event-fact span {
  display: block;
}
.event-date strong,
.event-fact strong {
  display: block;
  font-size: 0.96rem;
}
.event-date small,
.event-fact small {
  display: block;
  color: #9d919f;
  font-size: 0.78rem;
}
.event-fact i {
  color: var(--purple);
  font-size: 1.7rem;
  font-style: normal;
}
.map-shell {
  max-width: 1320px;
  margin: auto;
  padding: 38px clamp(16px, 3vw, 40px) 66px;
}
.map-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}
.map-heading h2 {
  margin: 7px 0 0;
  max-width: 760px;
}
.map-actions {
  display: flex;
  gap: 10px;
}
.map-area {
  position: relative;
  border: 1px solid #ffffff17;
  border-radius: 22px;
  overflow: hidden;
  background: #16101b;
  box-shadow:
    0 30px 80px #0008,
    0 0 0 1px #b47ad51f,
    0 0 46px #a678d01c;
}
#map {
  height: 580px;
  width: 100%;
  filter: saturate(0.75) contrast(1.05);
}
.map-legend {
  position: absolute;
  z-index: 500;
  left: 16px;
  bottom: 16px;
  display: flex;
  gap: 12px;
  padding: 8px 11px;
  border: 1px solid #ffffff1a;
  border-radius: 10px;
  background: #100b16eb;
  color: #d8ced9;
  font-size: 0.74rem;
}
.map-legend i {
  display: inline-block;
  width: 10px;
  height: 10px;
  border: 2px solid #56bd72;
  border-radius: 50%;
}
.map-count {
  margin-top: 12px;
  padding: 14px 18px;
  border: 1px solid #ffffff17;
  border-radius: 14px;
  background: #17101e;
}
.map-count span,
.map-count small {
  display: block;
}
.map-count strong {
  font-family: Georgia, serif;
}
.map-count small {
  color: #a99cad;
  font-size: 0.78rem;
}
.owner-action {
  text-align: right;
  margin: 10px 4px 0;
  color: #887c8b;
  font-size: 0.78rem;
}
.owner-action button,
footer button,
.text-link {
  padding: 0;
  border: 0;
  background: transparent;
  color: #cba5e5;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.location-status {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: -8px 0 16px;
  padding: 10px 13px;
  border: 1px solid #a678d038;
  border-radius: 10px;
  background: #22152c;
  color: #d7c4dc;
  font-size: 0.82rem;
}
.location-status button {
  margin-left: auto;
  border: 0;
  background: transparent;
  color: #d6b7e9;
  text-decoration: underline;
  cursor: pointer;
}
.how-it-works {
  padding: 76px clamp(20px, 7vw, 110px);
  background: #0d0911;
  border-block: 1px solid #ffffff0c;
}
.how-it-works > .eyebrow,
.how-it-works > h2 {
  text-align: center;
}
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  max-width: 1060px;
  margin: 42px auto 0;
  gap: 40px;
}
.steps article {
  padding-top: 22px;
  border-top: 1px solid #ef6c2455;
}
.steps article > span {
  font: 700 0.75rem Georgia;
  color: var(--orange);
  letter-spacing: 0.15em;
}
.steps h3 {
  font: 600 1.25rem Georgia;
  margin: 12px 0 7px;
}
.steps p {
  margin: 0;
  color: #9f939f;
  font-size: 0.9rem;
}
footer {
  min-height: 210px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 36px 20px 30px;
  border-top: 1px solid #ffffff0d;
  background: radial-gradient(circle at 50% 35%, #51296c2e, transparent 13rem);
  color: #8f838f;
  font-size: 0.78rem;
  text-align: center;
}
.footer-logo {
  width: 66px;
  height: 66px;
}
.footer-links {
  display: flex;
  gap: 16px;
}
.admin-link {
  color: #746a76;
}
.modal {
  position: fixed;
  width: min(540px, calc(100% - 30px));
  max-height: 90vh;
  overflow: auto;
  padding: 32px;
  border: 1px solid #ffffff22;
  border-radius: 22px;
  background: linear-gradient(155deg, #1e1327, #110d16);
  color: var(--cream);
  box-shadow:
    0 28px 90px #000b,
    0 0 40px #a678d018;
}
.modal::backdrop {
  background: #050307dd;
  backdrop-filter: blur(7px);
}
.modal-close {
  position: absolute;
  right: 16px;
  top: 13px;
  border: 0;
  background: transparent;
  color: #cabdcb;
  font-size: 1.7rem;
  cursor: pointer;
}
.modal > p {
  color: #b8acba;
}
.modal h2 {
  font-size: 2.25rem;
  margin-top: 7px;
}
.modal label {
  display: block;
  margin: 14px 0 0;
  color: #eadde9;
  font-size: 0.84rem;
  font-weight: 700;
}
.modal input,
.modal textarea {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 11px 12px;
  border: 1px solid #ffffff22;
  border-radius: 9px;
  background: #0c0910;
  color: white;
  outline: none;
}
.modal input:focus,
.modal textarea:focus {
  border-color: #a678d0;
}
.modal textarea {
  min-height: 86px;
  resize: vertical;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 11px;
}
.address-grid {
  grid-template-columns: 1fr 0.62fr 0.62fr;
}
.check {
  display: flex !important;
  align-items: flex-start;
  gap: 11px;
  padding: 13px;
  border: 1px solid #ffffff15;
  border-radius: 11px;
  background: #ffffff06;
}
.check input {
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  accent-color: var(--orange);
}
.check span,
.check small {
  display: block;
}
.check small {
  color: #9c919e;
  font-weight: 400;
}
.permit {
  margin-top: 10px;
  padding: 13px 15px;
  border: 1px solid #ef6c2455;
  border-radius: 10px;
  background: #ef6c2410;
  color: #cbbfcb;
  font-size: 0.82rem;
}
.permit strong {
  display: block;
  color: #f2a16f;
}
.submit {
  width: 100%;
  margin-top: 18px;
}
.text-link,
.danger-link {
  display: block;
  width: 100%;
  margin-top: 14px;
  border: 0;
  background: transparent;
  color: #cba5e5;
  text-align: center;
  cursor: pointer;
  text-decoration: underline;
}
.danger-link {
  color: #e79583;
}
.form-message:not(:empty) {
  margin-top: 13px;
  padding: 10px 12px;
  border-radius: 9px;
  background: #ffffff0a;
  color: #efb08d;
  font-size: 0.84rem;
}
.personal-code {
  margin: 18px 0;
  padding: 16px;
  border: 1px dashed #ef6c2490;
  border-radius: 12px;
  background: #0b080e;
  color: #fff;
  font: 700 1.65rem/1 monospace;
  text-align: center;
  letter-spacing: 0.12em;
}
.code-warning {
  padding: 14px;
  border: 1px solid #d75a4b55;
  border-radius: 11px;
  background: #9f2e2417;
  color: #cdbfcf;
  font-size: 0.84rem;
}
.code-warning strong {
  display: block;
  margin-bottom: 5px;
  color: #ffb19b;
}
.managed-address {
  margin: 4px 0 18px;
  padding: 12px 14px;
  border-radius: 10px;
  background: #ffffff09;
  font-weight: 700;
}
.admin-list {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}
.admin-row {
  padding: 13px;
  border: 1px solid #ffffff14;
  border-radius: 11px;
  background: #ffffff07;
}
.admin-row strong,
.admin-row small {
  display: block;
}
.admin-row small {
  color: #9f929f;
}
.admin-row label {
  margin-top: 10px;
}
.admin-actions {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}
.admin-actions button {
  flex: 1;
  padding: 8px;
  border: 1px solid #ffffff18;
  border-radius: 8px;
  background: #1c1324;
  cursor: pointer;
}
.admin-actions .delete {
  color: #e79583;
}
.leaflet-div-icon {
  border: 0 !important;
  background: transparent !important;
}
.house-pin {
  position: relative;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 4px solid #fff;
  border-radius: 50% 50% 50% 0;
  background: #ef6c24;
  box-shadow: 0 7px 19px #0008;
  transform: rotate(-45deg);
}
.house-pin b {
  font-size: 20px;
  transform: rotate(45deg);
}
.house-pin.spooky {
  background: #6f3a87;
}
.house-pin.visited {
  border-color: #51c773;
}
.house-pin em {
  position: absolute;
  right: -8px;
  top: -8px;
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #51c773;
  color: #081109;
  font: 900 12px Arial;
  transform: rotate(45deg);
}
.pin-popup strong,
.pin-popup span {
  display: block;
}
.pin-popup span {
  margin-top: 4px;
  color: #6f3a87;
  font-weight: 700;
}
.pin-popup p {
  margin: 7px 0;
}
.pin-popup button {
  width: 100%;
  padding: 7px;
  border: 0;
  border-radius: 7px;
  background: #22152c;
  color: #5f2e72;
  font-weight: 700;
  cursor: pointer;
}
.live-location {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 2px solid white;
  border-radius: 50%;
  background: #7c3aed;
  box-shadow: 0 0 0 8px #7c3aed30;
  animation: pulse 1.8s infinite;
}
.live-location:after {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: white;
}
@keyframes pulse {
  50% {
    box-shadow: 0 0 0 16px #7c3aed08;
  }
}
@media (max-width: 700px) {
  .site-header {
    height: 72px;
    padding: 0 15px;
  }
  .brand-mark {
    width: 46px;
    height: 46px;
  }
  .brand-lockup {
    gap: 8px;
  }
  .brand-lockup h1 {
    font-size: 0.96rem;
  }
  .brand-lockup p {
    font-size: 0.56rem;
    letter-spacing: 0.1em;
  }
  .join-top {
    padding: 9px 11px;
    font-size: 0.78rem;
  }
  .story-intro {
    margin-top: 8px;
    padding: 35px 20px 23px;
  }
  .story-intro h2 {
    font-size: 2.15rem;
  }
  .story-intro > p:not(.eyebrow) {
    font-size: 0.92rem;
    line-height: 1.65;
  }
  .intro-bar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    padding: 8px 16px 26px;
  }
  .event-date {
    grid-row: span 2;
    border: 0;
    padding: 0;
  }
  .event-fact {
    border: 0;
    padding: 0;
  }
  .event-fact i {
    display: none;
  }
  .map-shell {
    padding-top: 20px;
  }
  .map-heading {
    display: block;
  }
  .map-heading h2 {
    font-size: 2rem;
  }
  .map-actions {
    display: grid;
    margin-top: 16px;
  }
  .map-actions .button {
    min-height: 46px;
  }
  .map-actions .button:last-child {
    display: none;
  }
  #map {
    height: 460px;
  }
  .map-legend {
    left: 10px;
    right: 10px;
    bottom: 10px;
    justify-content: center;
    flex-wrap: wrap;
    font-size: 0.67rem;
  }
  .owner-action {
    text-align: center;
  }
  .steps {
    grid-template-columns: 1fr;
    gap: 26px;
  }
  .how-it-works {
    padding-block: 54px;
  }
  .how-it-works h2 {
    font-size: 2rem;
  }
  .address-grid {
    grid-template-columns: 1fr;
  }
  .modal {
    padding: 27px 20px;
  }
  .footer-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 14px;
  }
}
