:root {
  color-scheme: dark;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
}

.go-panel {
  background: linear-gradient(155deg, rgba(42, 42, 42, 0.88), rgba(28, 27, 27, 0.92));
  box-shadow: 0 20px 38px rgba(0, 0, 0, 0.28);
}

.go-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border-radius: 11px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  padding: 0 14px;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: transform 170ms ease, border-color 170ms ease, background-color 170ms ease;
}

.go-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 191, 0, 0.55);
}

.go-btn-primary {
  border-color: rgba(255, 191, 0, 0.9);
  background: #ffbf00;
  color: #2f2200;
}

.go-btn-muted {
  background: rgba(255, 255, 255, 0.06);
  color: #e5e2e1;
}

.go-btn-ghost {
  background: transparent;
  color: #ffe2ab;
}

.go-stat {
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(19, 19, 19, 0.55);
}

.go-stat-label {
  margin: 0;
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #d4c5ab;
}

.go-stat-value {
  margin: 4px 0 0;
  font-family: 'Epilogue', sans-serif;
  font-size: clamp(1.05rem, 2.6vw, 1.6rem);
  font-weight: 900;
  color: #ffe2ab;
}

.go-map {
  width: 100%;
  min-height: 52dvh;
  border-radius: 14px;
  overflow: hidden;
  position: relative;
  background:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    #171717;
  background-size: 22px 22px, 22px 22px, auto;
}

.map-loading-message {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 16px;
  font-size: 0.78rem;
  color: #d4c5ab;
  z-index: 1;
}

.unit-card {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  background: linear-gradient(170deg, rgba(37, 37, 37, 0.9), rgba(28, 27, 27, 0.95));
  padding: 12px;
  transition: transform 170ms ease, border-color 170ms ease, box-shadow 170ms ease;
}

.unit-card:hover,
.unit-card.is-active {
  transform: translateY(-1px);
  border-color: rgba(255, 191, 0, 0.45);
  box-shadow: 0 14px 26px rgba(0, 0, 0, 0.28);
}

.unit-card-head {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: flex-start;
}

.unit-title {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 800;
  line-height: 1.25;
}

.unit-area {
  margin: 2px 0 0;
  font-size: 0.68rem;
  color: #d4c5ab;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
}

.unit-meta,
.unit-location-note {
  margin: 7px 0 0;
  font-size: 0.74rem;
  color: #d4c5ab;
  line-height: 1.35;
}

.unit-highlights {
  margin-top: 9px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.unit-chip {
  border: 1px solid rgba(255, 191, 0, 0.3);
  border-radius: 999px;
  background: rgba(255, 191, 0, 0.1);
  color: #ffe2ab;
  font-size: 0.64rem;
  font-weight: 700;
  padding: 4px 8px;
}

.unit-bottom-row {
  margin-top: 9px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.gofood-pill,
.souls-pill {
  border-radius: 999px;
  font-size: 0.63rem;
  font-weight: 700;
  padding: 4px 8px;
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.gofood-yes {
  color: #c9ffd5;
  border-color: rgba(53, 197, 114, 0.45);
  background: rgba(53, 197, 114, 0.16);
}

.gofood-no {
  color: #dfdfdf;
  background: rgba(255, 255, 255, 0.06);
}

.souls-pill {
  color: #ffe2ab;
  border-color: rgba(255, 191, 0, 0.36);
  background: rgba(255, 191, 0, 0.1);
}

.unit-actions {
  margin-top: 10px;
  display: grid;
  gap: 7px;
  grid-template-columns: 1fr;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  padding: 0 10px;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  transition: transform 150ms ease, border-color 150ms ease;
}

.btn:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 191, 0, 0.5);
}

.btn-primary {
  background: rgba(255, 191, 0, 0.18);
  color: #ffe2ab;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.06);
  color: #e5e2e1;
}

.btn-accent {
  background: #ffbf00;
  color: #2f2200;
  border-color: rgba(255, 191, 0, 0.9);
}

.btn-disabled {
  pointer-events: none;
  opacity: 0.48;
  background: rgba(255, 255, 255, 0.05);
}

.product-card {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  background: linear-gradient(170deg, rgba(37, 37, 37, 0.9), rgba(28, 27, 27, 0.95));
  overflow: hidden;
}

.product-image {
  width: 100%;
  height: clamp(160px, 24vw, 220px);
  object-fit: cover;
  object-position: center;
}

.product-body {
  padding: 10px;
}

.product-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}

.product-name {
  margin: 0;
  font-size: 0.86rem;
  font-weight: 800;
}

.product-price {
  font-size: 0.72rem;
  color: #ffe2ab;
  font-weight: 800;
  white-space: nowrap;
}

.product-note {
  margin: 6px 0 0;
  font-size: 0.72rem;
  line-height: 1.35;
  color: #d4c5ab;
}

.story-card,
.how-step,
.faq-item {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  background: linear-gradient(170deg, rgba(37, 37, 37, 0.9), rgba(28, 27, 27, 0.95));
  padding: 12px;
}

.story-card p,
.how-step p,
.faq-item p {
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.4;
  color: #d4c5ab;
}

.how-step h3 {
  margin: 0 0 6px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.faq-item summary {
  cursor: pointer;
  list-style: none;
  font-size: 0.8rem;
  font-weight: 800;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item p {
  margin-top: 8px;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  border: 1px solid transparent;
  padding: 4px 8px;
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
}

.status-open {
  color: #c9ffd5;
  border-color: rgba(53, 197, 114, 0.45);
  background: rgba(53, 197, 114, 0.16);
}

.status-open .status-dot {
  background: #35c572;
  box-shadow: 0 0 0 0 rgba(53, 197, 114, 0.62);
  animation: pulse-open 2s infinite;
}

.status-soon {
  color: #ffe6a7;
  border-color: rgba(214, 170, 69, 0.45);
  background: rgba(214, 170, 69, 0.16);
}

.status-soon .status-dot {
  background: #d6aa45;
}

.status-closed {
  color: #dfdfdf;
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
}

.status-closed .status-dot {
  background: #7a7a7a;
}

.leaflet-container {
  background: #0f0f0f;
}

.leaflet-control-attribution {
  background: rgba(10, 10, 10, 0.75) !important;
  color: #d8d8d8 !important;
  font-size: 0.62rem !important;
}

.unit-marker {
  width: 16px;
  height: 16px;
  border-radius: 999px;
  border: 2px solid #080808;
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.36);
}

.unit-marker-open {
  background: #35c572;
}

.unit-marker-soon {
  background: #d6aa45;
}

.unit-marker-closed {
  background: #7a7a7a;
}

.popup-card h3 {
  margin: 0 0 6px;
  font-size: 0.9rem;
}

.popup-card p {
  margin: 0;
  font-size: 0.75rem;
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.68s ease, transform 0.68s ease;
}

.reveal.show {
  opacity: 1;
  transform: translateY(0);
}

@keyframes pulse-open {
  0% {
    box-shadow: 0 0 0 0 rgba(53, 197, 114, 0.62);
  }
  70% {
    box-shadow: 0 0 0 8px rgba(53, 197, 114, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(53, 197, 114, 0);
  }
}

@media (min-width: 640px) {
  .go-map {
    min-height: 58dvh;
  }

  .unit-actions {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .go-map {
    min-height: 48dvh;
  }

  #lastUpdated {
    max-width: 112px;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }

  html {
    scroll-behavior: auto;
  }
}
