:root {
  --ink: #fff7fb;
  --muted: #c7aebd;
  --line: rgba(255, 255, 255, 0.13);
  --paper: #0e0710;
  --panel: rgba(255, 255, 255, 0.08);
  --coral: #b43a79;
  --gold: #d99a5f;
  --leaf: #c13584;
  --night: #16091a;
  --shadow: 0 14px 40px rgba(0, 0, 0, 0.24);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(180deg, #070309 0%, #170917 48%, #080307 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 72px;
  padding: 0 5vw;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  background: rgba(16, 6, 17, 0.68);
  backdrop-filter: blur(22px) saturate(145%);
}

.brand,
.top-actions,
.hero-actions,
.form-footer {
  display: flex;
  align-items: center;
}

.brand {
  gap: 0.7rem;
  font-weight: 800;
  color: var(--ink);
}

.top-actions {
  gap: 1rem;
  color: #e6c8d5;
  font-size: 0.95rem;
  font-weight: 700;
}

.top-actions a:hover {
  color: #fff;
}

main {
  overflow-x: hidden;
}

.hero {
  display: grid;
  grid-template-columns: minmax(360px, 1.15fr) minmax(320px, 0.85fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 5rem);
  min-height: calc(100vh - 72px);
  padding: clamp(2rem, 6vw, 5rem) 5vw 4rem;
  color: var(--ink);
  background: #070309;
}

.globe-shell {
  position: relative;
  width: min(100%, 780px);
  aspect-ratio: 1;
  margin: 0 auto;
}

#globe {
  width: 100%;
  height: 100%;
  display: block;
  filter: drop-shadow(0 0 42px rgba(193, 53, 132, 0.22));
  cursor: grab;
  touch-action: pan-x pan-y pinch-zoom;
}

#globe:active {
  cursor: grabbing;
}

.globe-label {
  display: none;
}

.globe-tooltip {
  position: absolute;
  z-index: 3;
  max-width: 230px;
  transform: translate(-50%, calc(-100% - 16px));
  padding: 0.7rem 0.8rem;
  border: 1px solid rgba(245, 96, 64, 0.48);
  border-radius: 8px;
  color: var(--ink);
  background: rgba(24, 7, 22, 0.94);
  box-shadow: 0 12px 34px rgba(193, 53, 132, 0.22);
  pointer-events: none;
}

.globe-tooltip strong,
.globe-tooltip span {
  display: block;
}

.globe-tooltip strong {
  overflow: hidden;
  font-size: 0.95rem;
  font-weight: 950;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.globe-tooltip span {
  margin-top: 0.2rem;
  color: var(--gold);
  font-size: 0.8rem;
  font-weight: 850;
}

.hero-copy {
  max-width: 620px;
  padding: 0;
}

.eyebrow {
  margin: 0 0 0.8rem;
  color: var(--gold);
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0;
}

h1,
h2 {
  margin: 0;
  letter-spacing: 0;
  line-height: 0.98;
}

h1 {
  max-width: 680px;
  font-size: clamp(2.7rem, 5.8vw, 5.8rem);
}

h2 {
  font-size: clamp(2rem, 3.2vw, 3.4rem);
}

.hero-copy > p:not(.eyebrow) {
  max-width: 620px;
  margin: 1.35rem 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.25vw, 1.18rem);
  line-height: 1.65;
}

.hero-actions {
  gap: 0.8rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.primary-action,
.secondary-action,
.bid-form button {
  min-height: 48px;
  border-radius: 7px;
  font-weight: 750;
}

.primary-action,
.bid-form button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0 1.2rem;
  color: var(--ink);
  background: #9f2c6f;
  cursor: pointer;
}

.primary-action:hover,
.bid-form button:hover {
  background: #b4337e;
}

.secondary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 1.1rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.07);
}

.signal-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 2rem;
  max-width: 680px;
}

.signal-grid div {
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.055);
}

.signal-grid strong,
.signal-grid span {
  display: block;
}

.signal-grid strong {
  min-height: 2.2rem;
  font-size: clamp(1.45rem, 2.2vw, 2rem);
}

.signal-grid span {
  margin-top: 0.15rem;
  color: #d9b7c6;
  font-size: 0.9rem;
  font-weight: 700;
}

.board-section,
.claim-section {
  padding: 4rem 5vw;
}

.board-section {
  background: #100712;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1.2rem;
  margin-bottom: 1.4rem;
}

.continent-tabs {
  display: flex;
  gap: 0.55rem;
  overflow-x: auto;
  padding-bottom: 0.6rem;
}

.continent-tabs button {
  flex: 0 0 auto;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 0 1rem;
  color: #e2bed0;
  background: rgba(255, 255, 255, 0.045);
  font-weight: 700;
  cursor: pointer;
}

.continent-tabs button[aria-selected="true"] {
  color: var(--ink);
  border-color: rgba(193, 53, 132, 0.6);
  background: rgba(193, 53, 132, 0.24);
}

.leaderboard-panel {
  margin-top: 1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.leader-row {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) 130px 116px;
  align-items: center;
  gap: 1rem;
  min-height: 76px;
  padding: 0.9rem 1rem;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.025);
}

.leader-row:last-child {
  border-bottom: 0;
}

.rank {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  color: var(--ink);
  background: rgba(193, 53, 132, 0.22);
  font-weight: 800;
}

.rank.gold {
  background: rgba(217, 154, 95, 0.18);
  color: #f0c596;
}

.leader-main {
  min-width: 0;
}

.leader-main a {
  display: inline-block;
  max-width: 100%;
  overflow: hidden;
  font-size: 1rem;
  font-weight: 950;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.leader-main p {
  margin: 0.2rem 0 0;
  color: var(--muted);
  line-height: 1.35;
}

.amount {
  font-weight: 950;
  text-align: right;
}

.claim-button {
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: rgba(193, 53, 132, 0.14);
  font-weight: 900;
  cursor: pointer;
}

.claim-section {
  background: #0b050d;
}

.seo-section {
  padding: 4rem 5vw;
  background: #120812;
}

.seo-copy {
  max-width: 1180px;
}

.seo-copy > p:not(.eyebrow) {
  max-width: 820px;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.7;
}

.seo-columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.2rem;
  margin-top: 2rem;
}

.seo-columns div {
  min-height: 100%;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
}

.seo-columns h3 {
  margin: 0;
  font-size: 1.05rem;
}

.seo-columns p {
  margin: 0.55rem 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.bid-form {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  padding: clamp(1rem, 2vw, 1.4rem);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  box-shadow: var(--shadow);
}

.bid-form label {
  display: grid;
  gap: 0.45rem;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 850;
}

.bid-form input,
.bid-form select {
  width: 100%;
  min-height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  padding: 0 0.85rem;
  color: var(--ink);
  background: rgba(20, 7, 21, 0.78);
  font: inherit;
  font-weight: 750;
}

.wide {
  grid-column: span 3;
}

.form-footer {
  justify-content: space-between;
  gap: 1rem;
}

.form-footer p {
  margin: 0;
  color: var(--muted);
  font-weight: 800;
}

.checkout-result {
  margin-top: 1rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.07);
  line-height: 1.5;
}

.checkout-result a,
.checkout-result button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  margin-top: 0.8rem;
  border: 0;
  border-radius: 8px;
  padding: 0 1rem;
  color: #fff;
  background: var(--leaf);
  font-weight: 900;
  cursor: pointer;
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
  }

  .hero > * {
    min-width: 0;
  }

  .globe-shell {
    max-width: 560px;
  }

  .section-heading {
    display: block;
  }

  .bid-form {
    grid-template-columns: 1fr;
  }

  .seo-columns {
    grid-template-columns: 1fr;
  }

  .wide {
    grid-column: auto;
  }
}

@media (max-width: 640px) {
  .topbar {
    align-items: center;
    flex-direction: row;
    min-height: 72px;
    padding-block: 0.6rem;
    gap: 0.75rem;
  }

  .top-actions {
    gap: 0.75rem;
    font-size: 0.9rem;
  }

  .hero {
    align-items: start;
    gap: 0.5rem;
    padding: 0.75rem 5vw 2.5rem;
  }

  .globe-shell {
    width: min(104vw, 440px);
    max-width: none;
    justify-self: center;
    margin-top: -0.5rem;
    margin-bottom: -0.5rem;
  }

  .hero-copy {
    width: 100%;
    padding: 1.15rem;
  }

  h1 {
    font-size: clamp(2rem, 10vw, 2.55rem);
  }

  .signal-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .leader-row {
    grid-template-columns: 52px minmax(0, 1fr);
  }

  .amount {
    text-align: left;
  }

  .claim-button {
    grid-column: 2;
  }
}
