:root {
  --ink: #f2fbfb;
  --muted: #92a6a8;
  --line: rgba(255, 255, 255, 0.13);
  --paper: #050807;
  --panel: rgba(255, 255, 255, 0.07);
  --aqua: #20d6df;
  --coral: #ff7a66;
  --gold: #e8be66;
  --leaf: #65b891;
  --night: #0a1010;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.34);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(180deg, #000 0%, #07100f 46%, #0e0b08 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(4, 8, 8, 0.58);
  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: #f7ffff;
}

.brand-logo {
  display: block;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  object-fit: cover;
  object-position: center;
  box-shadow: 0 0 0 1px rgba(0, 240, 255, 0.28), 0 0 18px rgba(0, 240, 255, 0.18);
}

.top-actions {
  gap: 1rem;
  color: #b7c8c9;
  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: #edf7f9;
  background: #000;
}

.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 40px rgba(0, 240, 255, 0.16));
  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(0, 240, 255, 0.42);
  border-radius: 8px;
  color: #edf7f9;
  background: rgba(0, 12, 16, 0.92);
  box-shadow: 0 12px 34px rgba(0, 240, 255, 0.14);
  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: #00f0ff;
  font-size: 0.8rem;
  font-weight: 850;
}

.hero-copy {
  max-width: 690px;
  padding: clamp(1rem, 2vw, 1.4rem);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px) saturate(130%);
}

.eyebrow {
  margin: 0 0 0.8rem;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  max-width: 780px;
  font-size: clamp(3rem, 7.2vw, 7rem);
}

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

.hero-copy > p:not(.eyebrow) {
  max-width: 620px;
  margin: 1.35rem 0 0;
  color: #aec3c4;
  font-size: clamp(1.05rem, 1.5vw, 1.3rem);
  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: 8px;
  font-weight: 900;
}

.primary-action,
.bid-form button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  padding: 0 1.2rem;
  color: #031213;
  background: var(--aqua);
  box-shadow: 0 14px 32px rgba(32, 214, 223, 0.18);
  cursor: pointer;
}

.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(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 2rem;
  max-width: 560px;
}

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

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

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

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

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

.board-section {
  background: rgba(255, 255, 255, 0.03);
}

.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: 999px;
  padding: 0 1rem;
  color: #b7c8c9;
  background: rgba(255, 255, 255, 0.06);
  font-weight: 850;
  cursor: pointer;
  backdrop-filter: blur(12px);
}

.continent-tabs button[aria-selected="true"] {
  color: #051112;
  border-color: transparent;
  background: var(--aqua);
}

.leaderboard-panel {
  margin-top: 1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px) saturate(130%);
}

.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: #031213;
  background: var(--aqua);
  font-weight: 950;
}

.rank.gold {
  background: var(--gold);
  color: var(--ink);
}

.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(255, 255, 255, 0.07);
  font-weight: 900;
  cursor: pointer;
}

.claim-section {
  background: rgba(0, 0, 0, 0.34);
}

.seo-section {
  padding: 4rem 5vw;
  background: rgba(255, 255, 255, 0.035);
}

.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.055);
  backdrop-filter: blur(14px);
}

.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.065);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px) saturate(130%);
}

.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(2, 8, 8, 0.72);
  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: 1fr;
  }

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

  .amount {
    text-align: left;
  }

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