:root {
  color-scheme: light;
  font-family: Inter, "Segoe UI", "Microsoft YaHei", system-ui, sans-serif;
  color: #1a1b18;
  background: #f1f0e9;
  font-synthesis: none;
  --ink: #1a1b18;
  --ink-2: #34352f;
  --paper: #f7f6ef;
  --paper-2: #eeede5;
  --line: #d6d4ca;
  --muted: #76766f;
  --mint: #60e5b2;
  --mint-dark: #1a6d50;
  --coral: #ff6b57;
  --coral-dark: #c53a2b;
  --blue: #5c7cfa;
  --violet: #9a65e8;
  --gold: #e0ab3a;
  --danger: #d84a3b;
  --shadow: 0 16px 42px rgba(39, 39, 34, 0.08);
}

* { box-sizing: border-box; }

[hidden] { display: none !important; }

html { min-width: 320px; scroll-behavior: smooth; }

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  background: #f1f0e9;
}

.deployment-notice {
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  overflow: hidden;
  color: var(--ink);
  background: #f1f0e9;
}
body.is-deploying .app-shell,
body.is-deploying .mobile-nav,
body.is-deploying .toast,
body.is-deploying .shoe-dialog { display: none !important; }

.deployment-header,
.deployment-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  padding: 14px 34px;
  border-bottom: 1px solid var(--line);
}

.deployment-footer {
  min-height: 58px;
  border-top: 1px solid var(--line);
  border-bottom: 0;
}

.deployment-brand { display: flex; align-items: center; gap: 12px; }
.deployment-brand img { width: 46px; height: 46px; object-fit: cover; border: 1px solid var(--ink); border-radius: 5px; }
.deployment-brand strong { font-size: 20px; font-weight: 900; }
.deployment-header > span,
.deployment-footer > span { color: var(--muted); font-size: 10px; font-weight: 850; }
.deployment-footer p { margin: 0; color: var(--muted); font-size: 12px; }

.deployment-main {
  display: grid;
  grid-template-columns: minmax(340px, 0.9fr) minmax(420px, 1.1fr);
  align-items: center;
  min-height: 0;
  padding: 36px max(34px, calc((100vw - 1320px) / 2));
}

.deployment-copy { position: relative; z-index: 2; max-width: 620px; }
.deployment-copy h1 { max-width: 600px; margin: 12px 0 14px; font-size: 54px; line-height: 1.04; letter-spacing: 0; }
.deployment-copy > p { margin: 0; color: var(--coral-dark); font-size: 22px; font-weight: 850; }
.deployment-progress { display: flex; align-items: center; gap: 10px; margin-top: 38px; color: var(--muted); font-size: 10px; font-weight: 850; }
.deployment-progress i { position: relative; width: 112px; height: 4px; overflow: hidden; background: #d7d5cb; }
.deployment-progress i::after { content: ""; position: absolute; inset: 0 auto 0 0; width: 44%; background: var(--mint-dark); animation: deployment-scan 1.8s ease-in-out infinite alternate; }

.deployment-visual { position: relative; display: grid; place-items: center; align-self: stretch; min-height: 430px; }
.deployment-visual::before { content: ""; position: absolute; width: min(39vw, 540px); aspect-ratio: 1; border: 1px solid #c8c5ba; border-radius: 50%; }
.deployment-visual img { position: relative; z-index: 1; width: min(45vw, 630px); max-height: 62vh; object-fit: contain; filter: drop-shadow(0 26px 34px rgba(43, 36, 40, 0.16)); }
.deployment-visual strong { position: absolute; right: 0; bottom: 1%; color: rgba(26, 27, 24, 0.07); font-size: 78px; font-weight: 950; }

@keyframes deployment-scan {
  from { transform: translateX(-18%); }
  to { transform: translateX(145%); }
}

button,
input,
select { font: inherit; letter-spacing: 0; }

button { color: inherit; }

button,
a,
input,
select { -webkit-tap-highlight-color: transparent; }

button:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid rgba(92, 124, 250, 0.32);
  outline-offset: 2px;
}

.app-shell {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  min-height: 100vh;
}

.side-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 86px;
  height: 100vh;
  padding: 18px 10px 14px;
  color: #f7f6ef;
  background: #181916;
  border-right: 1px solid #30312d;
}

.brand-mark {
  display: block;
  width: 58px;
  height: 58px;
  padding: 2px;
  background: #f1f0e9;
  border: 1px solid #45463f;
  border-radius: 6px;
  overflow: hidden;
  cursor: pointer;
}

.brand-logo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 3px;
}

.side-nav nav {
  display: grid;
  gap: 6px;
  width: 100%;
  margin-top: 20px;
}

.nav-item {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 4px;
  min-height: 58px;
  padding: 9px 4px;
  color: #9d9e96;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 6px;
  cursor: pointer;
  font-size: 11px;
  font-weight: 700;
}

.nav-item svg { width: 20px; height: 20px; stroke-width: 1.8; }

.nav-item:hover { color: #f7f6ef; background: rgba(255, 255, 255, 0.045); }

.nav-item.is-active {
  color: #f7f6ef;
  background: #242521;
  border-color: #30312c;
}

.nav-item.is-active::before {
  content: "";
  position: absolute;
  left: -10px;
  top: 50%;
  width: 3px;
  height: 24px;
  background: var(--coral);
  transform: translateY(-50%);
}

.nav-item.is-active svg {
  color: var(--coral);
  stroke-width: 2;
}

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

.topbar {
  position: sticky;
  top: 0;
  z-index: 15;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  padding: 0 32px;
  background: rgba(247, 246, 239, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.topbar-title { display: flex; align-items: baseline; gap: 12px; }
.topbar-title strong { font-size: 18px; font-weight: 950; }
.topbar-title span { color: var(--muted); font-size: 13px; }
.topbar-actions { display: flex; align-items: center; gap: 10px; }

.community-links { display: flex; align-items: center; gap: 6px; }
.community-link {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 5px;
  cursor: pointer;
}
.community-link svg { width: 16px; height: 16px; }
.community-link:hover:not(:disabled) { color: #fff; background: var(--ink); border-color: var(--ink); }
.community-link:disabled { color: #96978f; background: #ecebe4; cursor: not-allowed; opacity: 1; }
.x-link { font-family: Arial, sans-serif; font-size: 15px; font-weight: 900; }

.status-pill,
.network-chip,
.rarity-tag,
.mint-limit {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 30px;
  padding: 6px 10px;
  border: 1px solid #a6d9c6;
  border-radius: 999px;
  color: var(--mint-dark);
  background: #e4faef;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.status-pill.neutral { color: #55564f; background: #ecebe4; border-color: #cfcec4; }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--mint-dark); }
.neutral .status-dot { background: #92938b; }

.wallet-button,
.primary-action,
.claim-button,
.mint-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 42px;
  padding: 10px 15px;
  color: #f9f8f1;
  background: var(--ink);
  border: 1px solid var(--ink);
  border-radius: 6px;
  cursor: pointer;
  font-weight: 850;
}

.wallet-button svg,
.primary-action svg,
.claim-button svg,
.mint-button svg { width: 18px; height: 18px; }

.wallet-button:hover,
.primary-action:hover,
.claim-button:hover,
.mint-button:hover { color: #fff; background: var(--coral); border-color: var(--coral); }

main { padding: 28px 32px 42px; }

.app-view { display: none; animation: viewIn 180ms ease-out; }
.app-view.is-active { display: block; }

@keyframes viewIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

h1,
h2,
h3,
p { margin: 0; letter-spacing: 0; }

h1 { font-size: 30px; line-height: 1.08; }
h2 { font-size: 28px; line-height: 1.12; }
h3 { font-size: 16px; line-height: 1.25; }

.eyebrow {
  display: block;
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
}

.home-layout {
  display: grid;
  grid-template-columns: minmax(330px, 0.9fr) minmax(460px, 1.3fr);
  gap: 26px;
  max-width: 1500px;
  margin: 0 auto;
}

.shoe-stage {
  position: sticky;
  top: 104px;
  align-self: start;
  min-height: 680px;
  overflow: hidden;
  padding: 24px;
  background: #cfefe2;
  border: 1px solid #afd8c8;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.shoe-stage::before {
  content: "";
  position: absolute;
  inset: 92px 32px auto;
  height: 1px;
  background: rgba(24, 25, 22, 0.12);
}

.stage-head,
.section-heading,
.welcome-row,
.view-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.rarity-tag { min-height: 28px; color: #285c48; background: rgba(247, 246, 239, 0.72); border-color: rgba(40, 92, 72, 0.3); }
.rarity-rare { color: #3852bb; border-color: #8ea2f4; }
.rarity-epic { color: #7144ad; border-color: #bb98e9; }
.rarity-legendary { color: #7b5512; border-color: #d5ad55; }

.shoe-stage > img {
  position: relative;
  z-index: 2;
  display: block;
  width: min(100%, 620px);
  aspect-ratio: 1;
  margin: 22px auto 0;
  object-fit: contain;
  mix-blend-mode: multiply;
  filter: drop-shadow(0 30px 24px rgba(34, 70, 55, 0.22));
}

.shoe-empty-state {
  position: absolute;
  z-index: 2;
  inset: 110px 24px 116px;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 9px;
  color: rgba(26, 109, 80, 0.74);
  text-align: center;
}

.shoe-empty-state svg {
  width: 78px;
  height: 78px;
  margin-bottom: 5px;
  stroke-width: 1.15;
}

.shoe-empty-state strong { color: var(--ink); font-size: 18px; }
.shoe-empty-state span { color: var(--mint-dark); font-size: 12px; }

.stage-track {
  position: absolute;
  z-index: 1;
  left: -8%;
  right: -8%;
  bottom: 134px;
  height: 98px;
  transform: skewY(-5deg);
  border-top: 1px solid rgba(25, 88, 63, 0.2);
  border-bottom: 1px solid rgba(25, 88, 63, 0.2);
}

.stage-track span { position: absolute; top: 50%; width: 34%; height: 5px; background: rgba(255, 107, 87, 0.54); }
.stage-track span:nth-child(1) { left: 1%; }
.stage-track span:nth-child(2) { left: 42%; }
.stage-track span:nth-child(3) { left: 84%; }

.shoe-vitals {
  position: absolute;
  z-index: 3;
  right: 24px;
  bottom: 20px;
  left: 24px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid rgba(24, 25, 22, 0.18);
}

.shoe-vitals div { padding: 16px 10px 2px; border-right: 1px solid rgba(24, 25, 22, 0.14); }
.shoe-vitals div:last-child { border-right: 0; }
.shoe-vitals span,
.balance-band span,
.vault-metrics span,
.run-stat-grid span { display: block; color: var(--muted); font-size: 11px; }
.shoe-vitals strong { display: block; margin-top: 5px; font-size: 15px; }

.dashboard-column { display: grid; align-content: start; gap: 18px; }
.welcome-row { min-height: 50px; }

.icon-button {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  padding: 0;
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 6px;
  cursor: pointer;
}
.icon-button svg { width: 18px; height: 18px; }
.icon-button:hover { background: var(--paper-2); }
.icon-button:disabled { opacity: 0.42; cursor: not-allowed; }
.icon-button.danger { color: var(--danger); }

.balance-band {
  display: grid;
  grid-template-columns: 1.35fr 1fr 1fr;
  min-height: 136px;
  background: var(--ink);
  border-radius: 8px;
  color: #f7f6ef;
  box-shadow: var(--shadow);
}

.balance-band > div { display: flex; flex-direction: column; justify-content: center; padding: 22px; border-right: 1px solid #3b3c37; }
.balance-band > div:last-child { border-right: 0; }
.balance-band span { color: #aeb0a8; }
.balance-band strong { margin: 7px 0 2px; font-size: 24px; }
.balance-band small { color: #ff8a78; font-size: 10px; font-weight: 800; }
.balance-primary strong { color: #f7f6ef; font-size: 30px; }

.quick-actions { display: grid; grid-template-columns: 1.1fr 1fr 1fr; gap: 10px; }
.quick-actions button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 10px 12px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 6px;
  cursor: pointer;
  font-weight: 800;
}
.quick-actions button svg { width: 18px; }
.quick-actions .primary-action { color: #fff; background: var(--coral); border-color: var(--coral); }
.quick-actions button:hover { border-color: var(--ink); }

.vault-strip,
.activity-panel {
  padding: 20px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.live-indicator { display: inline-flex; align-items: center; gap: 6px; color: var(--mint-dark); font-size: 11px; font-weight: 800; }
.live-indicator span { width: 7px; height: 7px; border-radius: 50%; background: var(--mint-dark); }
.vault-metrics { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 18px; border-top: 1px solid var(--line); }
.vault-metrics div { padding: 16px 8px 2px; border-right: 1px solid var(--line); }
.vault-metrics div:last-child { border-right: 0; }
.vault-metrics strong { display: block; margin-top: 6px; font-size: 15px; }

.text-button { padding: 5px; color: var(--muted); background: transparent; border: 0; cursor: pointer; font-size: 12px; font-weight: 750; }
.text-button:hover { color: var(--ink); }
.activity-list { display: grid; margin-top: 14px; }
.activity-item { position: relative; display: grid; grid-template-columns: 30px 1fr auto; align-items: center; gap: 13px; min-height: 58px; padding: 10px 0; border-top: 1px solid var(--line); }
.activity-item::before { content: ""; position: absolute; left: 0; top: 18px; bottom: 18px; width: 2px; background: #bbb9b0; }
.activity-item[data-activity-type="run"]::before { background: var(--coral); }
.activity-item[data-activity-type="market"]::before { background: var(--blue); }
.activity-item[data-activity-type="repair"]::before { background: var(--gold); }
.activity-item[data-activity-type="mint"]::before { background: var(--violet); }
.activity-sequence { padding-left: 9px; color: #9a9991; font-family: Consolas, "SFMono-Regular", monospace; font-size: 9px; font-weight: 800; }
.activity-item strong { display: block; font-size: 13px; }
.activity-item small { display: block; margin-top: 3px; color: var(--muted); font-size: 10px; }
.activity-value { color: var(--ink); font-size: 12px; font-weight: 850; }

.view-heading { min-height: 56px; margin: 0 auto 24px; max-width: 1500px; }
.view-heading h2 small { color: var(--muted); font-size: 15px; }

.run-layout {
  display: grid;
  grid-template-columns: minmax(460px, 1.45fr) minmax(310px, 0.55fr);
  min-height: 640px;
  max-width: 1500px;
  margin: 0 auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--paper);
}

.run-console { position: relative; display: grid; grid-template-rows: 1fr auto; min-height: 640px; background: #d9eee5; border-right: 1px solid #bcd6cb; }
.route-canvas { position: relative; display: grid; place-content: center; min-height: 520px; overflow: hidden; }
.map-grid { position: absolute; inset: 0; opacity: 0.48; background-size: 54px 54px; background-image: linear-gradient(#a8c8bb 1px, transparent 1px), linear-gradient(90deg, #a8c8bb 1px, transparent 1px); }
.route-line { position: absolute; inset: 13% 12%; border: 8px solid rgba(255, 255, 255, 0.7); border-right-color: transparent; border-bottom-color: var(--coral); border-radius: 48% 38% 52% 30%; transform: rotate(-8deg); }
.route-line i { position: absolute; display: block; width: 12px; height: 12px; border: 3px solid var(--ink); border-radius: 50%; background: var(--mint); }
.route-line i:nth-child(1) { left: -10px; top: 55%; }
.route-line i:nth-child(2) { left: 33%; bottom: -10px; }
.route-line i:nth-child(3) { right: 1%; bottom: 25%; }
.route-line i:nth-child(4) { right: 13%; top: -10px; background: var(--coral); }
.run-timer { position: relative; z-index: 2; color: #6b756e; font-size: 17px; font-weight: 800; text-align: center; }
.run-distance { position: relative; z-index: 2; min-width: 280px; padding: 12px 24px; color: var(--ink); background: rgba(247, 246, 239, 0.86); border: 1px solid rgba(24, 25, 22, 0.14); border-radius: 8px; font-size: 64px; font-weight: 950; text-align: center; box-shadow: 0 14px 34px rgba(37, 67, 54, 0.12); }
.run-distance span { font-size: 15px; }
.run-controls { position: relative; z-index: 3; display: flex; align-items: center; justify-content: center; gap: 12px; min-height: 100px; padding: 18px; background: rgba(247, 246, 239, 0.82); border-top: 1px solid #bcd6cb; }
.run-main-button { display: grid; place-items: center; width: 60px; height: 60px; color: #fff; background: var(--coral); border: 0; border-radius: 50%; cursor: pointer; box-shadow: 0 10px 24px rgba(197, 58, 43, 0.24); }
.run-main-button svg { width: 24px; height: 24px; fill: currentColor; }
.run-main-button:disabled { opacity: 0.45; cursor: not-allowed; }

.run-sidebar { display: grid; align-content: start; gap: 18px; padding: 22px; }
.compact-shoe { display: grid; grid-template-columns: 96px 1fr; align-items: center; gap: 12px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.compact-shoe img { width: 96px; aspect-ratio: 1; object-fit: contain; mix-blend-mode: multiply; }
.compact-shoe span,
.compact-shoe small { display: block; color: var(--muted); font-size: 10px; }
.compact-shoe strong { display: block; margin: 4px 0; font-size: 15px; }
.run-stat-grid { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--line); }
.run-stat-grid div { display: flex; flex-direction: column; min-height: 120px; padding: 17px 14px 14px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.run-stat-grid div:nth-child(2n) { border-right: 0; }
.run-stat-grid div:nth-last-child(-n+2) { border-bottom: 0; }
.run-stat-grid span { margin: 0 0 12px; color: var(--muted); font-size: 10px; }
.run-stat-grid strong { overflow-wrap: anywhere; font-size: 20px; line-height: 1.12; }
.run-stat-grid #runReward { font-size: 15px; white-space: normal; }
.run-stat-grid small { margin-top: auto; padding-top: 12px; color: #a1a099; font-size: 8px; font-weight: 800; }
.claim-button { width: 100%; color: #f7f6ef; background: var(--ink); border-color: var(--ink); }
.claim-button:hover { color: #fff; background: var(--coral); border-color: var(--coral); }
.claim-button:disabled { color: #90918a; background: #e5e4dc; border-color: #d6d4ca; cursor: not-allowed; }
.inline-status { min-height: 20px; color: var(--muted); font-size: 12px; line-height: 1.5; text-align: center; }

.segmented-control { display: inline-flex; padding: 3px; background: #e4e3db; border: 1px solid var(--line); border-radius: 6px; }
.segmented-control button { min-width: 62px; padding: 7px 10px; color: var(--muted); background: transparent; border: 0; border-radius: 4px; cursor: pointer; font-size: 12px; font-weight: 800; }
.segmented-control button.is-active { color: var(--ink); background: var(--paper); box-shadow: 0 2px 6px rgba(39,39,34,0.08); }

.shoe-grid { display: grid; grid-template-columns: repeat(4, minmax(210px, 1fr)); gap: 14px; max-width: 1500px; margin: 0 auto; }
.shoe-card { overflow: hidden; background: var(--paper); border: 1px solid var(--line); border-radius: 8px; transition: transform 160ms ease, box-shadow 160ms ease; }
.shoe-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.shoe-image-wrap { position: relative; display: grid; place-items: center; aspect-ratio: 1.08; overflow: hidden; background: #deeee6; border-bottom: 1px solid #c9ddd4; }
.shoe-card.rare .shoe-image-wrap { background: #e3e9fb; border-color: #c9d3f6; }
.shoe-card.epic .shoe-image-wrap { background: #ece3f5; border-color: #d8c6ec; }
.shoe-card.legendary .shoe-image-wrap { background: #eee7d8; border-color: #dccba9; }
.shoe-image-wrap img { width: 94%; height: 94%; object-fit: contain; mix-blend-mode: multiply; transition: transform 180ms ease; }
.shoe-card:hover .shoe-image-wrap img { transform: scale(1.035) rotate(-1deg); }
.token-number { position: absolute; top: 10px; left: 10px; padding: 5px 7px; background: rgba(247,246,239,0.84); border-radius: 4px; font-size: 10px; font-weight: 850; }
.equipped-badge { position: absolute; right: 10px; top: 10px; padding: 5px 7px; color: #f7f6ef; background: rgba(24, 25, 22, 0.86); border-radius: 4px; font-size: 9px; font-weight: 900; }
.shoe-card-body { padding: 14px; }
.shoe-card-title { display: flex; justify-content: space-between; gap: 10px; align-items: start; }
.shoe-card-title strong { font-size: 14px; }
.shoe-card-title span { font-size: 9px; font-weight: 900; }
.shoe-card-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 14px 0; }
.shoe-card-stats div { padding: 8px; background: var(--paper-2); border-radius: 4px; }
.shoe-card-stats span { display: block; color: var(--muted); font-size: 9px; }
.shoe-card-stats strong { display: block; margin-top: 3px; font-size: 12px; }
.shoe-card-actions { display: grid; grid-template-columns: 1fr auto; gap: 7px; }
.shoe-card-actions button { min-height: 36px; padding: 8px 10px; background: transparent; border: 1px solid var(--line); border-radius: 4px; cursor: pointer; font-size: 11px; font-weight: 800; }
.shoe-card-actions button:first-child { color: #fff; background: var(--ink); border-color: var(--ink); }
.shoe-card-actions button:hover { border-color: var(--coral); }

.market-tools { display: flex; gap: 8px; }
.search-field { display: flex; align-items: center; gap: 8px; min-width: 210px; padding: 0 10px; background: var(--paper); border: 1px solid var(--line); border-radius: 6px; }
.search-field svg { width: 16px; color: var(--muted); }
.search-field input { width: 100%; height: 38px; background: transparent; border: 0; outline: 0; }
.market-tools select { height: 40px; padding: 0 32px 0 11px; background: var(--paper); border: 1px solid var(--line); border-radius: 6px; }
.market-stats { display: flex; gap: 28px; max-width: 1500px; margin: -8px auto 20px; color: var(--muted); font-size: 12px; }
.market-stats strong { margin-left: 5px; color: var(--ink); }
.market-price { display: flex; align-items: baseline; justify-content: space-between; margin: 12px 0; }
.market-price span { color: var(--muted); font-size: 10px; }
.market-price strong { font-size: 17px; }

.rank-layout { display: grid; grid-template-columns: minmax(520px, 1fr) 310px; gap: 18px; max-width: 1500px; margin: 0 auto; }
.rank-board { background: var(--paper); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.rank-head,
.rank-row { display: grid; grid-template-columns: 80px 1fr 130px 130px; align-items: center; gap: 10px; min-height: 56px; padding: 0 20px; }
.rank-head { color: var(--muted); background: #e8e7df; font-size: 10px; font-weight: 850; }
.rank-row { border-top: 1px solid var(--line); font-size: 13px; }
.rank-position { font-size: 16px; font-weight: 950; }
.runner-cell { display: flex; align-items: center; gap: 10px; }
.runner-avatar { display: grid; place-items: center; width: 32px; height: 32px; color: #fff; background: var(--ink); border-radius: 50%; font-size: 10px; font-weight: 900; }
.rank-row.is-me { background: #e4faef; }
.season-heading-actions { display: flex; align-items: center; justify-content: flex-end; gap: 18px; }
.season-tabs[hidden] { display: none; }
.season-tabs button { min-width: 92px; }
.season-tabs button.is-claimable::after { content: ""; display: inline-block; width: 6px; height: 6px; margin-left: 6px; background: var(--coral); border-radius: 50%; vertical-align: 1px; }
.season-time { text-align: right; }
.season-time span { display: block; color: var(--muted); font-size: 10px; }
.season-time strong { display: block; margin-top: 4px; font-size: 14px; }
.season-reward-panel { display: grid; align-content: start; gap: 18px; padding: 22px; color: #f7f6ef; background: var(--ink); border-radius: 8px; }
.season-reward-panel .eyebrow { color: #aeb0a8; }
.big-rank { color: #ff8170; font-size: 64px; }
.season-reward-panel > div { padding-top: 14px; border-top: 1px solid #3b3c37; }
.season-reward-panel div span { display: block; color: #aeb0a8; font-size: 10px; }
.season-reward-panel div strong { display: block; margin-top: 5px; }
.season-reward-panel button { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; margin-top: 10px; color: #83847c; background: #2a2b27; border: 1px solid #3b3c37; border-radius: 6px; }
.season-reward-panel button:not(:disabled) { color: var(--ink); background: var(--mint); border-color: var(--mint); cursor: pointer; }
.season-reward-panel button:not(:disabled):hover { background: #72e7c0; }

.mint-limit { color: var(--ink); background: #ecebe4; border-color: var(--line); }
.mint-layout { display: grid; grid-template-columns: minmax(500px, 1.25fr) minmax(320px, 0.75fr); max-width: 1300px; margin: 0 auto; background: var(--paper); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.mint-showcase { position: relative; min-height: 640px; padding: 20px; background: #dff2e9; border-right: 1px solid #bfd9ce; }
.mint-shoe-switcher { position: relative; z-index: 3; display: flex; justify-content: center; gap: 6px; }
.mint-shoe-switcher button { display: inline-flex; align-items: center; gap: 7px; min-height: 34px; padding: 7px 9px; color: #6f716a; background: rgba(247,246,239,0.72); border: 1px solid transparent; border-radius: 5px; cursor: pointer; font-size: 10px; font-weight: 850; }
.mint-shoe-switcher button.is-active { color: var(--ink); border-color: rgba(24,25,22,0.3); background: var(--paper); }
.swatch { width: 9px; height: 9px; border-radius: 2px; background: var(--mint); }
.swatch.rare { background: var(--blue); }
.swatch.epic { background: var(--violet); }
.swatch.legendary { background: var(--gold); }
.mint-showcase > img { display: block; width: min(92%, 620px); aspect-ratio: 1; margin: 0 auto; object-fit: contain; mix-blend-mode: multiply; filter: drop-shadow(0 32px 26px rgba(37,67,54,0.2)); }
.rarity-odds { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid rgba(24,25,22,0.15); }
.rarity-odds span { padding: 13px 6px 0; color: #5c665f; border-right: 1px solid rgba(24,25,22,0.12); font-size: 10px; text-align: center; }
.rarity-odds span:last-child { border-right: 0; }
.mint-checkout { display: flex; flex-direction: column; padding: 34px; }
.mint-price { display: flex; align-items: baseline; gap: 10px; margin-top: 8px; }
.mint-price strong { font-size: 70px; line-height: 1; }
.mint-price span { color: var(--muted); font-size: 14px; font-weight: 800; }
.token-quote { display: flex; justify-content: space-between; gap: 16px; margin-top: 20px; padding: 14px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.token-quote span { color: var(--muted); font-size: 11px; }
.token-quote strong { font-size: 13px; text-align: right; }
.mint-type { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 18px; }
.mint-type button { padding: 12px; text-align: left; background: transparent; border: 1px solid var(--line); border-radius: 6px; cursor: pointer; }
.mint-type button.is-active { background: #f7f6ef; border-color: var(--ink); box-shadow: inset 3px 0 0 var(--coral); }
.mint-type span,
.mint-type small { display: block; }
.mint-type span { font-size: 13px; font-weight: 900; }
.mint-type small { margin-top: 3px; color: var(--muted); font-size: 9px; }
.checkout-flow { display: grid; margin: 26px 0; }
.flow-step { display: grid; grid-template-columns: 30px 1fr; align-items: center; gap: 10px; }
.flow-step > span { display: grid; place-items: center; width: 28px; height: 28px; color: #85867f; border: 1px solid var(--line); border-radius: 50%; font-size: 11px; font-weight: 900; }
.flow-step.is-ready > span { color: #f7f6ef; background: var(--ink); border-color: var(--ink); }
.flow-step strong,
.flow-step small { display: block; }
.flow-step strong { font-size: 12px; }
.flow-step small { margin-top: 2px; color: var(--muted); font-size: 9px; }
.flow-line { width: 1px; height: 20px; margin: 4px 0 4px 14px; background: var(--line); }
.mint-button { min-height: 50px; color: #f7f6ef; background: var(--ink); border-color: var(--ink); }
.mint-button:hover { color: #fff; background: var(--coral); border-color: var(--coral); }
.allocation-row { display: flex; justify-content: space-between; gap: 8px; margin-top: 14px; color: var(--muted); font-size: 9px; }

.toast { position: fixed; z-index: 100; right: 22px; bottom: 22px; max-width: min(380px, calc(100vw - 44px)); padding: 13px 15px; color: #fff; background: var(--ink); border: 1px solid #41423c; border-radius: 6px; box-shadow: 0 16px 40px rgba(0,0,0,0.22); opacity: 0; transform: translateY(10px); pointer-events: none; transition: 180ms ease; font-size: 12px; line-height: 1.5; }
.toast.is-visible { opacity: 1; transform: translateY(0); }
.toast.is-error { background: #722e26; border-color: #a84b40; }

.shoe-dialog { width: min(760px, calc(100vw - 32px)); padding: 0; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); box-shadow: 0 30px 80px rgba(0,0,0,0.28); }
.shoe-dialog::backdrop { background: rgba(18,19,16,0.68); backdrop-filter: blur(5px); }
.dialog-close { position: absolute; z-index: 3; top: 12px; right: 12px; display: grid; place-items: center; width: 36px; height: 36px; background: rgba(247,246,239,0.9); border: 1px solid var(--line); border-radius: 50%; cursor: pointer; }
.dialog-close svg { width: 18px; }
.dialog-layout { display: grid; grid-template-columns: 1fr 1fr; }
.dialog-art { display: grid; place-items: center; min-height: 430px; background: #dff2e9; }
.dialog-art img { width: 94%; object-fit: contain; mix-blend-mode: multiply; }
.dialog-info { display: flex; flex-direction: column; padding: 34px 28px 28px; }
.dialog-info h3 { margin-top: 8px; font-size: 24px; }
.dialog-info .shoe-card-stats { margin-top: 24px; }
.dialog-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: auto; }
.dialog-actions button { min-height: 42px; padding: 10px; border: 1px solid var(--line); border-radius: 5px; background: transparent; cursor: pointer; font-weight: 850; }
.dialog-actions button.primary { color: #fff; background: var(--ink); border-color: var(--ink); }

.whitepaper { max-width: 1180px; margin: 0 auto; }
.whitepaper-cover {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 32px;
  padding: 34px 0 38px;
  border-bottom: 2px solid var(--ink);
}
.whitepaper-cover h2 { font-size: 46px; }
.whitepaper-cover p { max-width: 720px; margin-top: 13px; color: var(--muted); font-size: 15px; line-height: 1.75; }
.whitepaper-version { min-width: 112px; padding-left: 18px; border-left: 1px solid var(--line); }
.whitepaper-version span,
.whitepaper-version small { display: block; color: var(--muted); font-size: 9px; font-weight: 850; }
.whitepaper-version strong { display: block; margin: 5px 0; color: var(--coral); font-size: 34px; line-height: 1; }
.whitepaper-livebar { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 54px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.whitepaper-livebar > span { display: inline-flex; align-items: center; gap: 7px; flex: 0 0 auto; color: var(--mint-dark); font-size: 10px; font-weight: 900; }
.whitepaper-livebar i { width: 7px; height: 7px; background: var(--mint); border: 1px solid var(--mint-dark); border-radius: 50%; }
.whitepaper-livebar p { color: var(--muted); font-size: 11px; line-height: 1.5; text-align: right; }
.whitepaper-section {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 24px;
  padding: 38px 0;
  border-bottom: 1px solid var(--line);
}
.whitepaper-index { color: #aaa9a1; font-family: Consolas, "SFMono-Regular", monospace; font-size: 13px; font-weight: 800; }
.whitepaper-content { min-width: 0; }
.whitepaper-content h3 { margin-bottom: 20px; font-size: 25px; }
.whitepaper-lead { max-width: 900px; color: var(--ink-2); font-size: 14px; line-height: 1.8; }
.play-steps { border-top: 1px solid var(--line); }
.play-steps > div { display: grid; grid-template-columns: 42px minmax(0, 1fr); gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.play-steps > div > strong { display: grid; place-items: center; width: 28px; height: 28px; color: #fff; background: var(--ink); border-radius: 50%; font-size: 11px; }
.play-steps p b,
.play-steps p span { display: block; }
.play-steps p b { font-size: 14px; }
.play-steps p span { margin-top: 5px; color: var(--muted); font-size: 12px; line-height: 1.6; }
.rules-table { margin-top: 22px; overflow-x: auto; border-top: 1px solid var(--ink); }
.rules-table > div { display: grid; grid-template-columns: 1.3fr repeat(3, 1fr); min-width: 620px; padding: 13px 10px; border-bottom: 1px solid var(--line); font-size: 12px; }
.rules-table .rules-head { color: var(--muted); background: #e8e7df; font-size: 10px; font-weight: 850; }
.rules-table strong { color: var(--ink); }
.shoe-grade-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 24px; }
.shoe-grade { min-width: 0; overflow: hidden; background: var(--paper); border: 1px solid var(--line); border-top: 4px solid var(--ink); border-radius: 6px; }
.shoe-grade.common-grade { border-top-color: var(--mint-dark); }
.shoe-grade.rare-grade { border-top-color: var(--blue); }
.shoe-grade.epic-grade { border-top-color: var(--violet); }
.shoe-grade.legendary-grade { border-top-color: var(--gold); }
.shoe-grade-visual { aspect-ratio: 1 / 1; overflow: hidden; background: #e7e6e1; border-bottom: 1px solid var(--line); }
.shoe-grade-visual img { display: block; width: 100%; height: 100%; object-fit: cover; mix-blend-mode: multiply; }
.shoe-grade header { padding: 15px 14px 13px; border-bottom: 1px solid var(--line); }
.shoe-grade header span,
.shoe-grade header strong,
.shoe-grade header small { display: block; }
.shoe-grade header span { color: var(--muted); font-size: 9px; font-weight: 900; }
.shoe-grade header strong { margin-top: 4px; font-size: 16px; }
.shoe-grade header small { margin-top: 5px; color: var(--muted); font-size: 10px; }
.shoe-grade dl { display: grid; grid-template-columns: 1fr 1fr; margin: 0; }
.shoe-grade dl div { min-width: 0; min-height: 66px; padding: 11px 12px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.shoe-grade dl div:nth-child(2n) { border-right: 0; }
.shoe-grade dl div:nth-last-child(-n+2) { border-bottom: 0; }
.shoe-grade dt { color: var(--muted); font-size: 8px; font-weight: 800; }
.shoe-grade dd { margin: 7px 0 0; font-size: 12px; font-weight: 900; overflow-wrap: anywhere; }
.shoe-grade > p { min-height: 72px; margin: 0; padding: 12px 14px; color: var(--muted); background: #eeede7; border-top: 1px solid var(--line); font-size: 10px; line-height: 1.6; }
.whitepaper-notes { display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; margin-top: 24px; border-top: 1px solid var(--line); }
.whitepaper-notes p { padding: 15px 0; border-bottom: 1px solid var(--line); }
.whitepaper-notes b,
.whitepaper-notes span { display: block; }
.whitepaper-notes b { font-size: 12px; }
.whitepaper-notes span { margin-top: 5px; color: var(--muted); font-size: 11px; line-height: 1.6; }
.metric-lines { display: grid; grid-template-columns: repeat(3, 1fr); margin-bottom: 22px; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--line); }
.metric-lines > div { min-height: 92px; padding: 16px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.metric-lines > div:nth-child(3n) { border-right: 0; }
.metric-lines > div:nth-last-child(-n+3) { border-bottom: 0; }
.metric-lines span,
.metric-lines strong { display: block; }
.metric-lines span { color: var(--muted); font-size: 10px; }
.metric-lines strong { margin-top: 12px; font-size: 18px; }
.formula-grid { display: grid; grid-template-columns: 1fr 1fr; margin-top: 24px; border-top: 1px solid var(--ink); }
.formula-grid > div { min-height: 146px; padding: 18px 18px 17px 0; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.formula-grid > div:nth-child(2n) { padding-right: 0; padding-left: 18px; border-right: 0; }
.formula-grid span,
.formula-grid strong { display: block; }
.formula-grid span { color: var(--coral-dark); font-size: 9px; font-weight: 900; }
.formula-grid strong { margin-top: 10px; font-size: 14px; line-height: 1.5; }
.formula-grid p { margin-top: 9px; color: var(--muted); font-size: 11px; line-height: 1.65; }
.formal-model { display: grid; grid-template-columns: 210px minmax(0, 1fr); align-items: center; margin-top: 26px; color: #f7f6ef; background: var(--ink); }
.formal-model > div { min-height: 126px; padding: 21px; border-right: 1px solid #3b3c37; }
.formal-model span,
.formal-model strong,
.formal-model small { display: block; }
.formal-model span { color: #aeb0a8; font-size: 9px; font-weight: 850; }
.formal-model strong { margin-top: 9px; color: var(--mint); font-size: 27px; }
.formal-model small { margin-top: 6px; color: #f7f6ef; font-size: 10px; }
.formal-model > p { padding: 20px 24px; color: #d2d3cc; font-size: 12px; line-height: 1.75; }
.payback-table { margin-top: 22px; }
.repair-lines { grid-template-columns: repeat(4, 1fr); margin-top: 22px; }
.repair-lines > div { border-bottom: 0; }
.repair-lines > div:nth-child(3n) { border-right: 1px solid var(--line); }
.repair-lines > div:last-child { border-right: 0; }
.durability-scale { display: grid; grid-template-columns: repeat(5, 1fr); border-top: 1px solid var(--ink); border-bottom: 1px solid var(--line); }
.durability-scale > div { min-height: 150px; padding: 16px; border-right: 1px solid var(--line); }
.durability-scale > div:last-child { border-right: 0; }
.durability-scale strong,
.durability-scale span { display: block; }
.durability-scale strong { color: var(--coral-dark); font-size: 25px; }
.durability-scale span { margin-top: 8px; font-size: 11px; font-weight: 850; }
.durability-scale p { margin-top: 10px; color: var(--muted); font-size: 10px; line-height: 1.55; }
.repair-intro { margin-top: 26px; }
.repair-cost-grid { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 18px; color: #f7f6ef; background: var(--ink); }
.repair-cost-grid > div { min-height: 108px; padding: 18px; border-right: 1px solid #3b3c37; }
.repair-cost-grid > div:last-child { border-right: 0; }
.repair-cost-grid span,
.repair-cost-grid strong,
.repair-cost-grid small { display: block; }
.repair-cost-grid span { color: #aeb0a8; font-size: 9px; }
.repair-cost-grid strong { margin-top: 12px; color: var(--mint); font-size: 19px; }
.repair-cost-grid small { margin-top: 5px; color: #d2d3cc; font-size: 9px; }
.claim-flow { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--ink); }
.claim-flow > div { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 11px; min-height: 120px; padding: 17px 15px 17px 0; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.claim-flow > div:nth-child(3n) { padding-right: 0; padding-left: 15px; border-right: 0; }
.claim-flow > div:nth-child(3n+2) { padding-left: 15px; }
.claim-flow > div > strong { display: grid; place-items: center; width: 27px; height: 27px; color: #fff; background: var(--ink); border-radius: 50%; font-size: 10px; }
.claim-flow b,
.claim-flow span { display: block; }
.claim-flow b { font-size: 12px; }
.claim-flow span { margin-top: 6px; color: var(--muted); font-size: 10px; line-height: 1.55; }
.track-table { margin-top: 23px; }
.market-guide { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--ink); }
.market-guide > div { min-height: 145px; padding: 18px 20px 18px 0; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.market-guide > div:nth-child(2n) { padding-right: 0; padding-left: 20px; border-right: 0; }
.market-guide span,
.market-guide strong { display: block; }
.market-guide span { color: var(--coral-dark); font-size: 9px; font-weight: 900; }
.market-guide strong { margin-top: 8px; font-size: 16px; }
.market-guide p { margin-top: 9px; color: var(--muted); font-size: 11px; line-height: 1.65; }
.whitepaper-footnote { margin-top: 15px; color: var(--muted); font-size: 11px; line-height: 1.6; }
.economy-flow { display: grid; grid-template-columns: 1.7fr repeat(3, 1fr); color: #f7f6ef; background: var(--ink); }
.economy-flow > div { min-height: 112px; padding: 19px; border-right: 1px solid #3b3c37; }
.economy-flow > div:last-child { border-right: 0; }
.economy-flow span,
.economy-flow strong { display: block; }
.economy-flow span { color: #aeb0a8; font-size: 10px; }
.economy-flow strong { margin-top: 14px; font-size: 17px; line-height: 1.35; }
.economy-flow > div:not(:first-child) strong { color: var(--mint); font-size: 24px; }
.contract-list { border-top: 1px solid var(--ink); }
.contract-list a { display: grid; grid-template-columns: minmax(150px, 1fr) auto 18px; align-items: center; gap: 18px; min-height: 56px; padding: 0 10px; color: var(--ink); border-bottom: 1px solid var(--line); text-decoration: none; }
.contract-list a:hover { color: var(--coral-dark); background: #eeede5; }
.contract-list span { font-size: 12px; font-weight: 850; }
.contract-list code { color: var(--muted); font-size: 11px; }
.contract-list svg { width: 15px; height: 15px; }
.contract-intro { margin-bottom: 22px; }
.contract-placeholder { margin: 0; padding: 18px 10px; color: var(--muted); border-bottom: 1px solid var(--line); font-size: 12px; font-weight: 750; }

.mobile-nav { display: none; }

@media (max-width: 1180px) {
  .home-layout { grid-template-columns: minmax(310px, 0.85fr) minmax(390px, 1.15fr); }
  .shoe-stage { min-height: 590px; }
  .shoe-grid { grid-template-columns: repeat(3, minmax(190px, 1fr)); }
  .vault-metrics { grid-template-columns: 1fr 1fr; }
  .vault-metrics div:nth-child(2) { border-right: 0; }
  .vault-metrics div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .mint-layout { grid-template-columns: minmax(430px, 1fr) 350px; }
}

@media (max-width: 1000px) {
  .rank-layout { grid-template-columns: 1fr; }
  .season-reward-panel { grid-template-columns: 1fr 1fr; }
  .season-reward-panel .eyebrow,
  .season-reward-panel .big-rank,
  .season-reward-panel button { grid-column: 1 / -1; }
  .shoe-grade-grid { grid-template-columns: 1fr 1fr; }
  .durability-scale { grid-template-columns: repeat(3, 1fr); }
  .durability-scale > div { border-bottom: 1px solid var(--line); }
  .durability-scale > div:nth-child(3n) { border-right: 0; }
  .repair-cost-grid { grid-template-columns: 1fr 1fr; }
  .repair-cost-grid > div:nth-child(2) { border-right: 0; }
  .repair-cost-grid > div:nth-child(-n+2) { border-bottom: 1px solid #3b3c37; }
}

@media (max-width: 900px) {
  .deployment-main { grid-template-columns: 1fr; align-content: center; padding: 34px 28px; }
  .deployment-copy h1 { font-size: 46px; }
  .deployment-visual { min-height: 300px; }
  .deployment-visual img { width: min(78vw, 520px); max-height: 38vh; }
  .deployment-visual::before { width: min(62vw, 420px); }
  .deployment-visual strong { font-size: 54px; }
  .app-shell { display: block; }
  .side-nav { display: none; }
  .topbar { height: 66px; padding: 0 18px; }
  .topbar-title span { display: none; }
  .status-pill { display: none; }
  .wallet-button { min-width: 42px; padding: 9px 11px; }
  .wallet-button span { display: none; }
  main { padding: 20px 16px 92px; }
  .home-layout { grid-template-columns: 1fr; }
  .shoe-stage { position: relative; top: auto; min-height: 560px; }
  .run-layout { grid-template-columns: 1fr; }
  .run-console { min-height: 540px; border-right: 0; border-bottom: 1px solid #bcd6cb; }
  .route-canvas { min-height: 430px; }
  .run-sidebar { grid-template-columns: 1fr 1fr; }
  .compact-shoe,
  .claim-button,
  .inline-status { grid-column: 1 / -1; }
  .shoe-grid { grid-template-columns: repeat(2, minmax(180px, 1fr)); }
  .rank-layout { grid-template-columns: 1fr; }
  .season-reward-panel { grid-template-columns: 1fr 1fr; }
  .season-reward-panel .eyebrow,
  .season-reward-panel .big-rank,
  .season-reward-panel button { grid-column: 1 / -1; }
  .mint-layout { grid-template-columns: 1fr; }
  .mint-showcase { min-height: 560px; border-right: 0; border-bottom: 1px solid #bfd9ce; }
  .mint-checkout { padding: 28px; }
  .mobile-nav { position: fixed; z-index: 30; right: 0; bottom: 0; left: 0; display: grid; grid-template-columns: repeat(6, 1fr); min-height: 68px; padding: 7px max(8px, env(safe-area-inset-right)) max(7px, env(safe-area-inset-bottom)) max(8px, env(safe-area-inset-left)); background: rgba(24,25,22,0.96); border-top: 1px solid #353630; backdrop-filter: blur(14px); }
  .mobile-nav button { position: relative; display: grid; justify-items: center; align-content: center; gap: 3px; color: #a5a69f; background: transparent; border: 0; font-size: 9px; font-weight: 750; }
  .mobile-nav svg { width: 19px; height: 19px; }
  .mobile-nav button.is-active { color: #ff8170; }
  .mobile-nav button.is-active::before { content: ""; position: absolute; top: 0; width: 22px; height: 2px; background: var(--coral); }
  .toast { bottom: 84px; }
  .whitepaper-cover { padding-top: 20px; }
}

@media (max-width: 620px) {
  .deployment-header { min-height: 64px; padding: 10px 16px; }
  .deployment-brand { gap: 9px; }
  .deployment-brand img { width: 40px; height: 40px; }
  .deployment-brand strong { font-size: 17px; }
  .deployment-header > span { font-size: 8px; }
  .deployment-main { align-content: space-between; padding: 28px 18px 18px; }
  .deployment-copy h1 { max-width: 340px; margin-top: 10px; font-size: 36px; }
  .deployment-copy > p { font-size: 18px; }
  .deployment-progress { margin-top: 25px; }
  .deployment-visual { min-height: 260px; }
  .deployment-visual img { width: min(94vw, 420px); max-height: 34vh; }
  .deployment-visual::before { width: min(76vw, 330px); }
  .deployment-visual strong { right: -6px; font-size: 42px; }
  .deployment-footer { align-items: flex-start; flex-direction: column; gap: 5px; min-height: 70px; padding: 12px 16px; }
  .deployment-footer p { font-size: 10px; }
  h1 { font-size: 25px; }
  h2 { font-size: 24px; }
  .topbar-title strong { font-size: 16px; }
  .home-layout { gap: 18px; }
  .shoe-stage { min-height: 470px; padding: 18px; }
  .shoe-stage > img { margin-top: 5px; }
  .shoe-vitals { right: 18px; left: 18px; bottom: 15px; }
  .shoe-vitals div { padding: 12px 5px 0; }
  .shoe-vitals strong { font-size: 12px; }
  .stage-track { bottom: 110px; }
  .balance-band { grid-template-columns: 1fr 1fr; }
  .balance-band .balance-primary { grid-column: 1 / -1; border-right: 0; border-bottom: 1px solid #3b3c37; }
  .balance-band > div { min-height: 102px; padding: 16px; }
  .balance-band > div:nth-child(2) { border-right: 1px solid #3b3c37; }
  .balance-band > div:nth-child(3) { border-right: 0; }
  .quick-actions { grid-template-columns: 1fr; }
  .vault-metrics { grid-template-columns: 1fr 1fr; }
  .view-heading { align-items: flex-start; flex-direction: column; }
  .season-heading-actions { align-items: stretch; flex-direction: column; width: 100%; }
  .season-tabs { width: 100%; }
  .season-tabs button { flex: 1; }
  .season-time { text-align: left; }
  .market-heading { gap: 14px; }
  .market-tools { width: 100%; }
  .search-field { min-width: 0; flex: 1; }
  .market-tools select { max-width: 130px; }
  .market-stats { gap: 12px; flex-wrap: wrap; }
  .shoe-grid { grid-template-columns: 1fr 1fr; gap: 9px; }
  .shoe-card-body { padding: 10px; }
  .shoe-card-stats { gap: 5px; }
  .shoe-card-actions { grid-template-columns: 1fr; }
  .run-layout { min-height: 0; }
  .run-console { min-height: 440px; }
  .route-canvas { min-height: 345px; }
  .run-distance { min-width: 220px; font-size: 46px; }
  .run-controls { min-height: 90px; }
  .run-sidebar { display: grid; grid-template-columns: 1fr; padding: 16px; }
  .run-stat-grid { grid-column: 1 / -1; }
  .rank-board { overflow-x: auto; }
  .rank-head,
  .rank-row { min-width: 610px; }
  .season-reward-panel { grid-template-columns: 1fr; }
  .season-reward-panel > * { grid-column: 1 !important; }
  .mint-showcase { min-height: 440px; padding: 12px; }
  .mint-shoe-switcher { display: grid; grid-template-columns: 1fr 1fr; }
  .mint-showcase > img { width: 100%; margin-top: -10px; }
  .rarity-odds { grid-template-columns: 1fr 1fr; }
  .rarity-odds span:nth-child(2) { border-right: 0; }
  .rarity-odds span:nth-child(-n+2) { border-bottom: 1px solid rgba(24,25,22,0.12); padding-bottom: 8px; }
  .mint-checkout { padding: 22px 18px; }
  .mint-price strong { font-size: 58px; }
  .dialog-layout { grid-template-columns: 1fr; }
  .dialog-art { min-height: 300px; }
  .dialog-info { min-height: 340px; }
  .community-links { gap: 4px; }
  .community-link { width: 32px; height: 32px; }
  .topbar-actions { gap: 6px; }
  .whitepaper-cover { grid-template-columns: 1fr; gap: 20px; padding-bottom: 28px; }
  .whitepaper-cover h2 { font-size: 34px; }
  .whitepaper-version { padding: 0; border-left: 0; }
  .whitepaper-livebar { align-items: flex-start; flex-direction: column; gap: 5px; padding: 13px 0; }
  .whitepaper-livebar p { text-align: left; }
  .whitepaper-section { grid-template-columns: 1fr; gap: 10px; padding: 28px 0; }
  .whitepaper-content h3 { font-size: 22px; }
  .whitepaper-notes { grid-template-columns: 1fr; }
  .shoe-grade-grid { grid-template-columns: 1fr; }
  .shoe-grade > p { min-height: 0; }
  .metric-lines { grid-template-columns: 1fr 1fr; }
  .metric-lines > div,
  .metric-lines > div:nth-child(3n) { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
  .metric-lines > div:nth-child(2n) { border-right: 0; }
  .metric-lines > div:nth-last-child(-n+2) { border-bottom: 0; }
  .formula-grid { grid-template-columns: 1fr; }
  .formula-grid > div,
  .formula-grid > div:nth-child(2n) { min-height: 0; padding: 17px 0; border-right: 0; }
  .formal-model { grid-template-columns: 1fr; }
  .formal-model > div { min-height: 0; border-right: 0; border-bottom: 1px solid #3b3c37; }
  .payback-table > div { grid-template-columns: 1.05fr 1fr 0.72fr 0.95fr; gap: 5px; min-width: 0; padding: 12px 5px; font-size: 10px; }
  .payback-table .rules-head { font-size: 8px; }
  .durability-scale { grid-template-columns: 1fr 1fr; }
  .durability-scale > div,
  .durability-scale > div:nth-child(3n) { min-height: 138px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
  .durability-scale > div:nth-child(2n) { border-right: 0; }
  .durability-scale > div:last-child { grid-column: 1 / -1; min-height: 0; border-right: 0; }
  .repair-cost-grid { grid-template-columns: 1fr 1fr; }
  .claim-flow { grid-template-columns: 1fr; }
  .claim-flow > div,
  .claim-flow > div:nth-child(3n),
  .claim-flow > div:nth-child(3n+2) { min-height: 0; padding: 15px 0; border-right: 0; }
  .market-guide { grid-template-columns: 1fr; }
  .market-guide > div,
  .market-guide > div:nth-child(2n) { min-height: 0; padding: 17px 0; border-right: 0; }
  .repair-lines { grid-template-columns: 1fr 1fr; }
  .repair-lines > div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .economy-flow { grid-template-columns: 1fr 1fr; }
  .economy-flow > div { min-height: 94px; border-bottom: 1px solid #3b3c37; }
  .economy-flow > div:nth-child(2n) { border-right: 0; }
  .economy-flow > div:nth-last-child(-n+2) { border-bottom: 0; }
  .contract-list a { grid-template-columns: 1fr 18px; gap: 10px; padding: 10px; }
  .contract-list code { grid-column: 1 / -1; grid-row: 2; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}
