:root {
  --bg: #100c07;
  --bg-soft: #19110a;
  --panel: rgba(18, 12, 8, 0.72);
  --panel-strong: rgba(28, 19, 11, 0.9);
  --text: #f5e9d2;
  --muted: #c8ad79;
  --gold: #d7b15c;
  --gold-soft: rgba(215, 177, 92, 0.18);
  --orange: #ff824a;
  --line: rgba(215, 177, 92, 0.22);
  --shadow: 0 22px 60px rgba(0, 0, 0, 0.46);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    linear-gradient(180deg, rgba(255, 130, 74, 0.08), transparent 32%),
    radial-gradient(1200px 700px at 50% 0%, rgba(215, 177, 92, 0.12), transparent 65%),
    var(--bg);
  color: var(--text);
}

button,
input,
select,
textarea {
  font: inherit;
}

.page-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.topbar {
  display: grid;
  grid-template-columns: minmax(280px, 1.2fr) minmax(320px, 1.4fr) minmax(180px, auto);
  gap: 1rem;
  align-items: center;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(16, 12, 7, 0.96), rgba(16, 12, 7, 0.82));
  backdrop-filter: blur(10px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  min-width: 0;
}

.brand-emoji {
  font-size: 1.9rem;
  line-height: 1;
}

.brand-copy {
  min-width: 0;
}

.brand-title {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--text);
}

.brand-subtitle {
  margin-top: 0.14rem;
  font-size: 0.82rem;
  color: var(--muted);
}

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  justify-content: flex-start;
}

.tab-button {
  border: 1px solid rgba(215, 177, 92, 0.2);
  background: rgba(25, 17, 10, 0.82);
  color: var(--text);
  border-radius: 999px;
  padding: 0.68rem 1rem;
  cursor: pointer;
  transition: transform 140ms ease, border-color 140ms ease, background 140ms ease, color 140ms ease;
}

.tab-button:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 130, 74, 0.42);
  background: rgba(35, 24, 13, 0.92);
}

.tab-button.is-active {
  color: #100c07;
  background: linear-gradient(180deg, #f0d189, #c9922d);
  border-color: transparent;
  box-shadow: 0 10px 28px rgba(215, 177, 92, 0.28);
}

.wallet-zone {
  display: flex;
  justify-content: flex-end;
}

.wallet-button {
  min-width: 160px;
  border: 1px solid rgba(215, 177, 92, 0.38);
  background: linear-gradient(180deg, rgba(40, 27, 14, 0.96), rgba(20, 14, 8, 0.96));
  color: var(--gold);
  border-radius: 999px;
  padding: 0.7rem 1rem;
  cursor: pointer;
  letter-spacing: 0.05em;
  transition: transform 140ms ease, border-color 140ms ease, color 140ms ease, box-shadow 140ms ease;
}

.wallet-button:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 130, 74, 0.58);
  color: #ffd995;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.26);
}

.wallet-button.is-connected {
  color: #130d08;
  background: linear-gradient(180deg, #f2da9a, #d09a33);
  border-color: transparent;
}

.main-stage {
  flex: 1;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  min-height: 0;
}

.hero-map {
  position: relative;
  min-height: clamp(560px, 72vh, 900px);
  padding: clamp(1rem, 2.5vw, 1.75rem);
  display: grid;
  place-items: center;
  overflow: hidden;
  isolation: isolate;
}

.hero-map__image-wrap,
.hero-map__overlay {
  position: absolute;
  inset: 0;
}

.hero-map__image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
  display: block;
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 130, 74, 0.08), transparent 58%),
    #050403;
}

.hero-map__overlay {
  background:
    linear-gradient(90deg, rgba(16, 12, 7, 0.82) 0%, rgba(16, 12, 7, 0.28) 50%, rgba(16, 12, 7, 0.78) 100%),
    linear-gradient(180deg, rgba(16, 12, 7, 0.16), rgba(16, 12, 7, 0.7));
  pointer-events: none;
}

.hero-map__image-wrap {
  position: relative;
  inset: auto;
  z-index: 0;
  width: min(1280px, 100%);
  aspect-ratio: 3 / 2;
  margin-inline: auto;
  border-radius: 26px;
  overflow: hidden;
  border: 1px solid rgba(215, 177, 92, 0.22);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.03) inset,
    0 18px 48px rgba(0, 0, 0, 0.4),
    0 0 36px rgba(255, 130, 74, 0.1);
  background:
    radial-gradient(circle at 50% 50%, rgba(215, 177, 92, 0.09), transparent 60%),
    rgba(7, 5, 4, 0.96);
}

.hero-copy {
  position: absolute;
  left: clamp(1rem, 4vw, 3rem);
  bottom: clamp(6.5rem, 10vw, 9rem);
  max-width: min(760px, calc(100vw - 2rem));
  z-index: 1;
  text-shadow: 0 8px 26px rgba(0, 0, 0, 0.45);
}

.eyebrow {
  margin: 0 0 0.5rem;
  color: #f2da9a;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.74rem;
}

.hero-title {
  margin: 0;
  font-size: clamp(2rem, 4.2vw, 4rem);
  line-height: 0.98;
  max-width: 14ch;
}

.hero-text {
  margin: 1rem 0 0;
  max-width: 42ch;
  color: #f7e7be;
  font-size: 1.05rem;
}

.status-band {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(19, 14, 9, 0.88), rgba(14, 10, 6, 0.96));
}

.status-band__label {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--gold);
}

.status-band__text {
  color: var(--text);
  text-align: right;
}

[data-section] {
  display: none;
}

.section-open {
  display: block;
}

@media (max-width: 980px) {
  .topbar {
    grid-template-columns: 1fr;
    justify-items: stretch;
  }

  .wallet-zone {
    justify-content: flex-start;
  }

  .tabs {
    justify-content: flex-start;
  }

  .hero-map {
    min-height: 62vh;
  }

  .hero-copy {
    bottom: clamp(4.5rem, 8vw, 6rem);
  }
}

@media (max-width: 640px) {
  .topbar {
    padding: 0.9rem 0.9rem 0.85rem;
  }

  .brand-title {
    font-size: 1rem;
  }

  .tab-button {
    padding: 0.6rem 0.85rem;
  }

  .wallet-button {
    width: 100%;
  }

  .hero-map {
    min-height: 56vh;
    padding: 0.85rem;
  }

  .hero-copy {
    bottom: 4.5rem;
    left: 0.9rem;
    right: 0.9rem;
  }

  .hero-title {
    max-width: 100%;
  }

  .status-band {
    flex-direction: column;
    align-items: flex-start;
  }

  .status-band__text {
    text-align: left;
  }
}
