:root {
  color-scheme: dark;
  --ink: #f4f8f2;
  --muted: #aab7ad;
  --soft: #dce7dd;
  --void: #06110f;
  --charcoal: #0d1814;
  --panel: rgba(12, 24, 20, 0.82);
  --panel-strong: rgba(15, 30, 25, 0.94);
  --line: rgba(222, 235, 220, 0.18);
  --mint: #59f0bf;
  --teal: #24c6b8;
  --gold: #ffc857;
  --coral: #ff8066;
  --violet: #a99cff;
  --leaf: #9ee493;
  --shadow: 0 24px 90px rgba(0, 0, 0, 0.42);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--void);
  min-height: 100vh;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(115deg, rgba(89, 240, 191, 0.08), transparent 35%),
    linear-gradient(255deg, rgba(255, 128, 102, 0.08), transparent 42%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.024) 0 1px, transparent 1px 96px);
  mask-image: linear-gradient(180deg, #000 0%, rgba(0,0,0,.7) 42%, transparent 100%);
  z-index: -1;
}

a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { cursor: pointer; }
canvas, svg { display: block; }
p { color: var(--muted); line-height: 1.65; }
.shell { width: min(1180px, calc(100% - 32px)); margin: 0 auto; }
.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 20;
  padding: 10px 12px;
  background: var(--ink);
  color: var(--void);
  border-radius: 8px;
}
.skip-link:focus { top: 14px; }

.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 12;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px clamp(16px, 3vw, 34px);
  background: rgba(6, 17, 15, 0.72);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.brand-coin {
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  filter: drop-shadow(0 10px 24px rgba(255, 200, 87, 0.26));
}
.brand strong {
  display: block;
  font-size: 1.05rem;
  letter-spacing: 0;
}
.brand small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: .76rem;
}
.nav-links {
  display: flex;
  justify-content: center;
  gap: clamp(10px, 2.5vw, 28px);
  color: var(--soft);
  font-size: .93rem;
}
.nav-links a { opacity: .84; }
.nav-links a:hover { opacity: 1; color: var(--mint); }
.account-strip {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}
.wallet-pill {
  max-width: 150px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--soft);
  background: rgba(255, 255, 255, 0.06);
  font-size: .86rem;
}

.hero {
  position: relative;
  min-height: 96vh;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(6,17,15,.18), rgba(6,17,15,.9)),
    #06110f;
}
.world-stage {
  position: absolute;
  inset: 0;
}
#worldCanvas, .world-fallback {
  width: 100%;
  height: 100%;
}
.world-fallback {
  display: grid;
  place-items: center;
  background:
    linear-gradient(120deg, rgba(36,198,184,.16), transparent),
    linear-gradient(240deg, rgba(255,128,102,.12), transparent),
    #071310;
}
.fallback-grid {
  width: min(760px, 86vw);
  aspect-ratio: 1;
  transform: rotateX(58deg) rotateZ(43deg);
  background:
    linear-gradient(90deg, rgba(89,240,191,.46) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255,200,87,.36) 1px, transparent 1px);
  background-size: 52px 52px;
  border: 1px solid rgba(89,240,191,.4);
}
.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 24vh;
  background: linear-gradient(180deg, transparent, var(--void));
  pointer-events: none;
}
.hero-overlay {
  position: relative;
  z-index: 2;
  min-height: 96vh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  align-items: end;
  gap: 22px;
  padding: 118px 0 52px;
}
.control-panel, .wallet-panel, .drawer-panel {
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}
.control-panel {
  width: min(720px, 100%);
  padding: clamp(22px, 4vw, 38px);
  border-radius: 8px;
}
.eyebrow {
  margin: 0 0 10px;
  color: var(--mint);
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}
h1, h2, h3 { margin: 0; line-height: 1.05; letter-spacing: 0; }
h1 { max-width: 720px; font-size: clamp(2.35rem, 6vw, 5.6rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 3.3rem); }
h3 { font-size: 1.08rem; }
.lede {
  max-width: 680px;
  margin: 18px 0 0;
  color: var(--soft);
  font-size: clamp(1rem, 1.7vw, 1.18rem);
}
.hero-actions, .token-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}
.primary-button, .secondary-button, .ghost-button, .icon-button, .filter {
  min-height: 44px;
  border-radius: 8px;
  border: 1px solid transparent;
  padding: 11px 16px;
  font-weight: 800;
  letter-spacing: 0;
}
.primary-button {
  color: #06110f;
  background: linear-gradient(135deg, var(--mint), var(--gold));
  box-shadow: 0 18px 42px rgba(89, 240, 191, 0.18);
}
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.08);
}
.ghost-button, .icon-button {
  color: var(--soft);
  border-color: var(--line);
  background: transparent;
}
.primary-button:disabled {
  cursor: not-allowed;
  opacity: .48;
  box-shadow: none;
}
.full { width: 100%; justify-content: center; }
.stats-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 28px 0 0;
}
.stats-row div {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
}
.stats-row dt {
  color: var(--muted);
  font-size: .75rem;
}
.stats-row dd {
  margin: 5px 0 0;
  font-size: 1.35rem;
  font-weight: 900;
}
.wallet-panel {
  padding: 18px;
  border-radius: 8px;
  align-self: end;
}
.wallet-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  color: var(--muted);
}
.wallet-head strong { color: var(--ink); }
.mini-coin {
  width: 124px;
  height: 124px;
  margin: 24px auto;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background:
    radial-gradient(circle at 32% 24%, #fff8c7, #ffc857 38%, #9b5b17 100%);
  box-shadow: inset -12px -14px 24px rgba(83, 44, 6, 0.4), 0 22px 44px rgba(255, 200, 87, 0.22);
}
.mini-coin span {
  width: 74px;
  height: 74px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 2px solid rgba(6,17,15,.34);
  color: var(--void);
  font-size: 3rem;
  font-weight: 950;
}
#selectedParcelText {
  min-height: 54px;
  margin-bottom: 16px;
}

.section {
  padding: clamp(56px, 9vw, 110px) 0;
}
.app-band {
  position: relative;
  z-index: 3;
}
.section-head {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(260px, .68fr);
  gap: 24px;
  align-items: end;
  margin-bottom: 26px;
}
.image-head {
  align-items: stretch;
}
.image-head > div {
  align-self: end;
}
.section-head p:last-child {
  margin: 0;
}
.title-image {
  min-height: 220px;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: rgba(255,255,255,.045);
}
.title-image img,
.coin-ledger-image,
.service-thumb {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.market-layout {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  overflow: hidden;
}
.toolbar {
  display: flex;
  gap: 8px;
  padding: 12px;
  border-bottom: 1px solid var(--line);
  overflow-x: auto;
}
.filter {
  white-space: nowrap;
  color: var(--soft);
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.05);
}
.filter.active {
  color: var(--void);
  background: var(--mint);
  border-color: var(--mint);
}
.parcel-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
}
.parcel-card {
  min-height: 194px;
  padding: 18px;
  background: var(--charcoal);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.parcel-card.selected {
  outline: 2px solid var(--gold);
  outline-offset: -2px;
}
.parcel-card.owned {
  background: linear-gradient(135deg, rgba(89,240,191,.16), rgba(13,24,20,1));
}
.parcel-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
}
.parcel-id {
  color: var(--ink);
  font-size: 1.18rem;
  font-weight: 900;
}
.badge {
  padding: 5px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--soft);
  font-size: .75rem;
}
.price {
  margin-top: auto;
  color: var(--gold);
  font-weight: 900;
}
.parcel-card button {
  width: 100%;
  min-height: 40px;
  border-radius: 8px;
  border: 1px solid var(--line);
  color: var(--ink);
  background: rgba(255,255,255,.07);
  font-weight: 800;
}
.parcel-card button:hover { border-color: var(--mint); }

.token-band {
  background:
    linear-gradient(90deg, rgba(255,200,87,.12), transparent 38%),
    linear-gradient(270deg, rgba(169,156,255,.1), transparent 34%),
    #10150f;
}
.token-layout {
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(300px, .55fr);
  gap: 34px;
  align-items: center;
}
.coin-showcase {
  border: 1px solid rgba(255, 200, 87, 0.25);
  border-radius: 8px;
  padding: 26px;
  background: rgba(6, 17, 15, 0.58);
}
.coin-ledger-image {
  aspect-ratio: 16 / 9;
  margin-bottom: 20px;
  border-radius: 8px;
  border: 1px solid rgba(255, 200, 87, .18);
}
.coin-face {
  width: min(310px, 72vw);
  aspect-ratio: 1;
  margin: 0 auto 22px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background:
    radial-gradient(circle at 32% 24%, #fff8c7, #ffc857 36%, #b76c1e 72%, #62300b 100%);
  box-shadow: inset -24px -26px 38px rgba(82, 39, 6, .46), 0 40px 80px rgba(255, 200, 87, .18);
}
.coin-ring {
  width: 68%;
  height: 68%;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 5px solid rgba(6,17,15,.38);
  box-shadow: inset 0 0 0 8px rgba(255,255,255,.16);
}
.coin-ring span {
  color: var(--void);
  font-size: clamp(5rem, 12vw, 9rem);
  line-height: 1;
  font-weight: 950;
}
.token-specs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.token-specs div {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.token-specs span {
  display: block;
  color: var(--muted);
  font-size: .75rem;
}
.token-specs strong {
  display: block;
  margin-top: 4px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.feature-card {
  min-height: 220px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
}
.feature-card span {
  display: inline-flex;
  margin-bottom: 28px;
  color: var(--coral);
  font-weight: 900;
}

.auth-drawer {
  position: fixed;
  inset: 0;
  z-index: 30;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease;
}
.auth-drawer.open {
  opacity: 1;
  pointer-events: auto;
}
.drawer-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .62);
}
.drawer-panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(430px, 100%);
  min-height: 100%;
  padding: 28px;
  border-radius: 0;
}
.drawer-panel label {
  display: grid;
  gap: 8px;
  margin: 18px 0;
  color: var(--soft);
  font-weight: 800;
}
.drawer-panel input {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  color: var(--ink);
  background: rgba(255,255,255,.07);
}
.close-button {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--soft);
  background: transparent;
}
.fineprint {
  font-size: .86rem;
}
.toast {
  position: fixed;
  left: 50%;
  bottom: 22px;
  z-index: 40;
  max-width: min(520px, calc(100% - 28px));
  transform: translate(-50%, 120px);
  padding: 13px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: rgba(8, 18, 15, .94);
  box-shadow: var(--shadow);
  transition: transform .24s ease;
}
.toast.show { transform: translate(-50%, 0); }
.footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 28px 0 44px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.world-app {
  min-height: 100svh;
  height: 100svh;
  isolation: isolate;
}
.world-app .world-stage {
  position: absolute;
  inset: 0;
}
.world-app #worldCanvas,
.world-app .world-fallback {
  width: 100vw;
  height: 100svh;
  cursor: grab;
  touch-action: none;
}
.world-app #worldCanvas:active { cursor: grabbing; }
.world-app::after {
  height: 32vh;
  background: linear-gradient(180deg, transparent, rgba(6,17,15,.72));
}
.world-crosshair {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 4;
  width: 18px;
  height: 18px;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(244,248,242,.52);
  border-radius: 50%;
  box-shadow: 0 0 24px rgba(89,240,191,.32);
  pointer-events: none;
}
#apps, #services, #market, #token, #dao {
  scroll-margin-top: 88px;
}
.world-crosshair::before,
.world-crosshair::after {
  content: "";
  position: absolute;
  background: rgba(244,248,242,.62);
}
.world-crosshair::before {
  left: 50%;
  top: -9px;
  width: 1px;
  height: 36px;
}
.world-crosshair::after {
  top: 50%;
  left: -9px;
  width: 36px;
  height: 1px;
}
.explorer-overlay {
  position: absolute;
  inset: 82px 18px 18px;
  z-index: 5;
  display: grid;
  grid-template-columns: minmax(280px, 420px) minmax(260px, 330px);
  justify-content: space-between;
  align-items: end;
  gap: 18px;
  pointer-events: none;
}
.world-hud,
.land-console {
  pointer-events: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(8, 18, 15, .76);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}
.world-hud {
  padding: 18px;
}
.world-hud h1 {
  font-size: clamp(2rem, 4.2vw, 4.2rem);
}
.world-hud .lede {
  margin-top: 12px;
  font-size: 1rem;
}
.control-cluster {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0;
}
.world-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
}
.world-stats div {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  background: rgba(255,255,255,.055);
}
.world-stats dt {
  color: var(--muted);
  font-size: .72rem;
}
.world-stats dd {
  margin: 4px 0 0;
  color: var(--ink);
  font-weight: 950;
  overflow: hidden;
  text-overflow: ellipsis;
}
.world-help {
  margin: 12px 0 0;
  font-size: .83rem;
}
.land-console {
  padding: 14px;
}
.land-console .wallet-head {
  align-items: center;
  margin-bottom: 10px;
}
.icon-button.compact {
  min-height: 36px;
  padding: 7px 11px;
}
#miniMap {
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(2,8,7,.72);
}
.selected-land {
  min-height: 192px;
  margin: 14px 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255,255,255,.055);
}
.selected-land h2 {
  font-size: 1.45rem;
}
.land-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 12px 0;
}
.land-meta div {
  min-width: 0;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255,255,255,.055);
}
.land-meta dt {
  color: var(--muted);
  font-size: .7rem;
}
.land-meta dd {
  margin: 3px 0 0;
  color: var(--ink);
  font-weight: 900;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.mobile-drive {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  width: max-content;
  margin: 14px auto 0;
}
.mobile-drive div {
  display: flex;
  gap: 6px;
}
.mobile-drive button {
  width: 58px;
  height: 48px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: rgba(8, 18, 15, .8);
  font-weight: 900;
  backdrop-filter: blur(12px);
}
.app-band {
  margin-top: 0;
  background: var(--void);
}

.services-band {
  position: relative;
  z-index: 3;
  background: var(--void);
}
.product-band {
  position: relative;
  z-index: 3;
  background:
    linear-gradient(180deg, rgba(89,240,191,.08), transparent 34%),
    var(--void);
}
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.product-card {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: rgba(255,255,255,.045);
}
.product-card.active {
  border-color: rgba(89,240,191,.72);
  box-shadow: 0 0 0 1px rgba(89,240,191,.22), 0 18px 48px rgba(89,240,191,.08);
}
.product-image {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-bottom: 1px solid var(--line);
}
.product-body {
  min-height: 390px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.product-body h3 {
  font-size: 1.42rem;
}
.product-body p {
  margin-bottom: 0;
}
.product-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.product-list li {
  color: var(--soft);
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255,255,255,.045);
  font-size: .88rem;
}
.product-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: auto 0 0;
}
.product-meta div {
  min-width: 0;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255,255,255,.055);
}
.product-meta dt {
  color: var(--muted);
  font-size: .7rem;
}
.product-meta dd {
  margin: 4px 0 0;
  color: var(--ink);
  font-weight: 950;
}
.product-card button {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: rgba(255,255,255,.07);
  font-weight: 900;
}
.product-card.active button {
  color: var(--void);
  background: var(--mint);
  border-color: var(--mint);
}
.service-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 360px);
  gap: 18px;
  align-items: start;
}
.service-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.service-card,
.service-cart {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255,255,255,.045);
}
.service-card {
  min-height: 292px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.service-thumb {
  aspect-ratio: 16 / 9;
  border-radius: 7px;
  border: 1px solid rgba(255,255,255,.1);
}
.service-card > div,
.service-card > p,
.service-card > dl,
.service-card > button {
  margin-left: 6px;
  margin-right: 6px;
}
.service-card.selected {
  border-color: rgba(89,240,191,.72);
  box-shadow: 0 0 0 1px rgba(89,240,191,.28), 0 18px 48px rgba(89,240,191,.08);
}
.service-card h3 {
  font-size: 1.28rem;
}
.service-card p {
  margin: 0;
}
.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.service-tags span {
  padding: 5px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--soft);
  font-size: .75rem;
  background: rgba(255,255,255,.045);
}
.service-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: auto;
}
.service-meta div,
.cart-totals div {
  min-width: 0;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255,255,255,.055);
}
.service-meta dt,
.cart-totals dt {
  color: var(--muted);
  font-size: .7rem;
}
.service-meta dd,
.cart-totals dd {
  margin: 4px 0 0;
  color: var(--ink);
  font-weight: 950;
}
.service-card button {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: rgba(255,255,255,.07);
  font-weight: 900;
}
.service-card.selected button {
  color: var(--void);
  background: var(--mint);
  border-color: var(--mint);
}
.service-cart {
  position: sticky;
  top: 96px;
  padding: 18px;
}
.service-cart h3 {
  font-size: 1.45rem;
}
.cart-totals {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 16px 0;
}
.service-cart .secondary-button {
  margin-top: 8px;
}

@media (max-width: 980px) {
  .nav-links { display: none; }
  .hero-overlay, .section-head, .token-layout {
    grid-template-columns: 1fr;
  }
  .hero-overlay {
    align-items: end;
    padding-top: 108px;
  }
  .wallet-panel {
    width: min(460px, 100%);
  }
  .parcel-grid, .feature-grid, .service-grid, .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .service-layout {
    grid-template-columns: 1fr;
  }
  .service-cart {
    position: static;
  }
}

@media (max-width: 640px) {
  .topbar {
    padding: 10px 12px;
  }
  .brand small, .wallet-pill { display: none; }
  .brand-coin { width: 40px; height: 40px; flex-basis: 40px; }
  .hero {
    min-height: 106vh;
  }
  .hero-overlay {
    min-height: 106vh;
    padding: 92px 0 36px;
  }
  .control-panel, .wallet-panel {
    padding: 16px;
  }
  .hero-actions, .token-actions {
    display: grid;
  }
  .stats-row, .parcel-grid, .feature-grid, .token-specs, .service-grid, .product-grid {
    grid-template-columns: 1fr;
  }
  .cart-totals, .service-meta {
    grid-template-columns: 1fr;
  }
  .parcel-card { min-height: 172px; }
  .footer { flex-direction: column; }
}

@media (max-width: 860px) {
  .world-app {
    min-height: 100svh;
    height: auto;
  }
  .explorer-overlay {
    position: relative;
    inset: auto;
    grid-template-columns: 1fr;
    padding: 88px 16px 170px;
    min-height: 100svh;
    align-content: space-between;
  }
  .world-app .world-stage {
    position: absolute;
  }
  .world-hud,
  .land-console {
    width: 100%;
  }
  .world-hud {
    padding: 16px;
  }
  .world-hud h1 {
    font-size: 2.1rem;
  }
  .world-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .world-help {
    display: none;
  }
  .mobile-drive {
    display: flex;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(6, 17, 15, .72);
    backdrop-filter: blur(14px);
  }
  .world-crosshair {
    display: none;
  }
}
