@font-face {
  font-display: swap;
  font-family: "PP Neue Montreal";
  font-style: normal;
  font-weight: 400;
  src: url("./fonts/fonts/PPF%20Fonts%20-%20v7.72/Neue%20Montreal%20v3.0%20NEWLY%20ADDED/web/PPNeueMontreal-Regular.woff2") format("woff2");
}

@font-face {
  font-display: swap;
  font-family: "PP Neue Montreal";
  font-style: normal;
  font-weight: 600;
  src: url("./fonts/fonts/PPF%20Fonts%20-%20v7.72/Neue%20Montreal%20v3.0%20NEWLY%20ADDED/web/PPNeueMontreal-Semibold.woff2") format("woff2");
}

@font-face {
  font-display: swap;
  font-family: "PP Neue Montreal";
  font-style: normal;
  font-weight: 800;
  src: url("./fonts/fonts/PPF%20Fonts%20-%20v7.72/Neue%20Montreal%20v3.0%20NEWLY%20ADDED/web/PPNeueMontreal-Extrabold.woff2") format("woff2");
}

@font-face {
  font-display: swap;
  font-family: "PP Mondwest";
  font-style: normal;
  font-weight: 400;
  src: url("./fonts/PPMondwest-Regular.woff2") format("woff2");
}

@font-face {
  font-display: swap;
  font-family: "PP Mondwest";
  font-style: normal;
  font-weight: 700;
  src: url("./fonts/PPMondwest-Bold.woff2") format("woff2");
}

@font-face {
  font-display: swap;
  font-family: "PP NeueBit";
  font-style: normal;
  font-weight: 400;
  src: url("./fonts/PPNeueBit-Regular.woff2") format("woff2");
}

@font-face {
  font-display: swap;
  font-family: "PP NeueBit";
  font-style: normal;
  font-weight: 700;
  src: url("./fonts/PPNeueBit-Bold.woff2") format("woff2");
}

:root {
  color-scheme: light;
  --font-body: "PP Neue Montreal", Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-display: "PP Neue Montreal", Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-accent: "PP NeueBit", Inter, ui-sans-serif, system-ui, sans-serif;
  --font-token: "PP Mondwest", Inter, ui-sans-serif, system-ui, sans-serif;
  --bg: #f7f8fb;
  --surface: #ffffff;
  --surface-soft: #f1f4f8;
  --line: #dde3ec;
  --line-strong: #c7d0de;
  --ink: #101828;
  --muted: #667085;
  --muted-strong: #475467;
  --green: #11a36a;
  --green-soft: #e9f8f1;
  --red: #e24a4a;
  --red-soft: #fff0f0;
  --blue: #3157f6;
  --blue-soft: #eef2ff;
  --gold: #c98b12;
  --gold-soft: #fff7df;
  --shadow: 0 18px 60px rgba(16, 24, 40, 0.08);
  --glass: rgba(255, 255, 255, 0.88);
  --header-bg: rgba(255, 255, 255, 0.86);
  --card-tint: rgba(255, 255, 255, 0.64);
}

[data-theme="dark"] {
  color-scheme: dark;
  --bg: #090d14;
  --surface: #111722;
  --surface-soft: #161e2b;
  --line: #263244;
  --line-strong: #344157;
  --ink: #f3f7fb;
  --muted: #8c98aa;
  --muted-strong: #bdc7d5;
  --green: #45d790;
  --green-soft: rgba(69, 215, 144, 0.13);
  --red: #ff7070;
  --red-soft: rgba(255, 112, 112, 0.13);
  --blue: #8da2ff;
  --blue-soft: rgba(141, 162, 255, 0.15);
  --gold: #f4bf48;
  --gold-soft: rgba(244, 191, 72, 0.14);
  --shadow: 0 18px 60px rgba(0, 0, 0, 0.28);
  --glass: rgba(17, 23, 34, 0.88);
  --header-bg: rgba(9, 13, 20, 0.84);
  --card-tint: rgba(17, 23, 34, 0.68);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: clip;
  background:
    radial-gradient(circle at top left, rgba(49, 87, 246, 0.09), transparent 32rem),
    radial-gradient(circle at top right, rgba(201, 139, 18, 0.12), transparent 28rem),
    linear-gradient(180deg, var(--bg), var(--bg));
  color: var(--ink);
  font-family: var(--font-body);
  letter-spacing: 0;
}

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

button,
input {
  font: inherit;
}

.market-header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0.85rem clamp(1rem, 3vw, 2rem);
  border-bottom: 1px solid rgba(221, 227, 236, 0.85);
  background: var(--header-bg);
  backdrop-filter: blur(18px);
}

.market-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  min-width: max-content;
  border: 1px solid transparent;
  border-radius: 0.95rem;
  padding: 0.25rem 0.55rem 0.25rem 0.25rem;
  transition:
    background 160ms ease,
    border-color 160ms ease,
    transform 160ms ease;
}

.market-brand:hover,
.market-brand:focus-visible {
  border-color: rgba(201, 139, 18, 0.32);
  background:
    linear-gradient(135deg, var(--gold-soft), transparent 68%),
    var(--glass);
  transform: translateY(-1px);
}

.brand-icon {
  display: grid;
  width: 2.75rem;
  height: 2.75rem;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(201, 139, 18, 0.36);
  border-radius: 0.9rem;
  background: var(--surface);
  box-shadow:
    0 8px 24px rgba(16, 24, 40, 0.08),
    inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.brand-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.market-brand strong,
.market-brand small {
  display: block;
}

.market-brand strong {
  font-size: 1rem;
  font-weight: 900;
}

.market-brand small {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 700;
}

.brand-live-dot {
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 999px;
  background: var(--gold);
  box-shadow: 0 0 0 3px var(--gold-soft);
}

.market-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.25rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-soft);
}

.market-nav a {
  border-radius: 999px;
  padding: 0.55rem 0.85rem;
  color: var(--muted-strong);
  font-size: 0.88rem;
  font-weight: 750;
  transition:
    background 160ms ease,
    color 160ms ease,
    transform 160ms ease;
}

.market-nav a:hover,
.market-nav a:focus-visible {
  background: var(--surface);
  color: var(--ink);
  transform: translateY(-1px);
}

.header-actions,
.hero-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.header-actions {
  position: relative;
}

.primary-button,
.secondary-button,
.ghost-button,
.social-icon-button,
.social-link-button {
  display: inline-flex;
  min-height: 2.55rem;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0 1rem;
  border: 1px solid transparent;
  font-weight: 750;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    border-color 160ms ease,
    background 160ms ease;
}

.primary-button {
  background: var(--ink);
  color: #fff;
  box-shadow: 0 12px 24px rgba(16, 24, 40, 0.18);
}

.secondary-button {
  border-color: var(--line-strong);
  background: var(--surface);
  color: var(--ink);
}

.ghost-button,
.theme-toggle,
.social-icon-button,
.social-link-button {
  border-color: var(--line);
  background: var(--glass);
  color: var(--muted-strong);
}

.social-icon-button {
  width: 2.55rem;
  padding: 0;
  overflow: hidden;
}

.social-icon-button img {
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 0.25rem;
  object-fit: cover;
}

.social-link-button {
  gap: 0.55rem;
  border-color: var(--line-strong);
  background: var(--surface);
  color: var(--ink);
  padding-inline: 1rem;
}

.social-link-button img {
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 0.28rem;
  object-fit: cover;
}

.theme-toggle {
  display: inline-flex;
  min-height: 2.55rem;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
  padding: 0 0.85rem;
  font-weight: 800;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    border-color 160ms ease,
    background 160ms ease;
}

.theme-dot {
  width: 0.72rem;
  height: 0.72rem;
  border-radius: 999px;
  background: var(--gold);
  box-shadow: 0 0 0 3px var(--gold-soft);
}

.wallet-login {
  display: inline-flex;
  min-height: 2.7rem;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(49, 87, 246, 0.28);
  border-radius: 999px;
  background: var(--blue);
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-weight: 900;
  padding: 0 1.15rem;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease;
}

.wallet-login:hover,
.wallet-login:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 16px 32px rgba(49, 87, 246, 0.22);
}

.wallet-metrics {
  display: flex;
  align-items: center;
  gap: 1.1rem;
}

.wallet-metrics div {
  display: grid;
  gap: 0.12rem;
  min-width: 4.75rem;
}

.wallet-metrics span {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
}

.wallet-metrics strong {
  color: var(--green);
  font-size: 1rem;
  font-weight: 900;
  line-height: 1;
}

.profile-menu {
  position: relative;
}

.profile-menu::after {
  position: absolute;
  top: 100%;
  right: 0;
  width: 11rem;
  height: 0.9rem;
  content: "";
}

.profile-trigger {
  display: inline-flex;
  min-height: 2.85rem;
  align-items: center;
  gap: 0.45rem;
  border: 1px solid rgba(244, 191, 72, 0.42);
  border-radius: 999px;
  background:
    linear-gradient(135deg, var(--gold-soft), transparent 72%),
    var(--surface-soft);
  color: var(--muted-strong);
  cursor: pointer;
  padding: 0.25rem 0.5rem 0.25rem 0.25rem;
  box-shadow: 0 10px 24px rgba(16, 24, 40, 0.16);
}

.profile-avatar {
  display: inline-flex;
  width: 2.25rem;
  height: 2.25rem;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 999px;
  background:
    radial-gradient(circle at 35% 35%, rgba(244, 191, 72, 0.95), transparent 28%),
    radial-gradient(circle at 68% 65%, rgba(49, 87, 246, 0.92), transparent 34%),
    radial-gradient(circle at 30% 78%, rgba(17, 163, 106, 0.86), transparent 28%),
    var(--surface);
}

.profile-avatar img {
  width: 120%;
  height: 120%;
  object-fit: cover;
  opacity: 0.52;
  mix-blend-mode: screen;
}

.profile-avatar.large {
  width: 3rem;
  height: 3rem;
  flex: 0 0 auto;
}

.profile-chevron {
  font-size: 0.9rem;
  transition: transform 160ms ease;
}

.profile-dropdown {
  position: absolute;
  top: calc(100% + 0.45rem);
  right: 0;
  z-index: 80;
  display: grid;
  width: min(22.5rem, calc(100vw - 2rem));
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: var(--surface);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.22);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-0.35rem);
  transition:
    opacity 160ms ease,
    transform 160ms ease;
}

.profile-menu:hover .profile-dropdown,
.profile-menu:focus-within .profile-dropdown,
.profile-menu.is-open .profile-dropdown {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.profile-menu:hover .profile-chevron,
.profile-menu:focus-within .profile-chevron,
.profile-menu.is-open .profile-chevron {
  transform: rotate(180deg);
}

.profile-head {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  border-bottom: 1px solid var(--line);
  padding: 1rem;
}

.profile-head strong,
.profile-head span {
  display: block;
}

.profile-head strong {
  font-size: 1rem;
  font-weight: 900;
}

.profile-head span {
  margin-top: 0.18rem;
  color: var(--muted);
  font-family: var(--font-token);
  font-size: 0.86rem;
}

.profile-row {
  display: flex;
  min-height: 3.1rem;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  color: var(--muted-strong);
  cursor: pointer;
  font: inherit;
  font-weight: 850;
  padding: 0 1rem;
  text-align: left;
}

.profile-row:hover,
.profile-row:focus-visible {
  background: var(--surface-soft);
  color: var(--ink);
}

.profile-row b {
  border-radius: 999px;
  background: var(--blue-soft);
  color: var(--blue);
  font-size: 0.72rem;
  padding: 0.25rem 0.5rem;
}

.profile-row-label {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 0.7rem;
}

.profile-row-icon {
  display: inline-grid;
  width: 1.55rem;
  height: 1.55rem;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  background:
    linear-gradient(135deg, var(--gold-soft), transparent 70%),
    var(--surface-soft);
  color: var(--blue);
  font-family: var(--font-token);
  font-size: 1rem;
  font-weight: 900;
}

.profile-row.logout .profile-row-icon {
  color: var(--red);
}

.theme-row {
  position: relative;
}

.theme-row b {
  display: none;
}

.profile-toggle {
  position: relative;
  display: inline-flex;
  width: 2.85rem;
  height: 1.55rem;
  flex: 0 0 auto;
  align-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--surface-soft);
  box-shadow: inset 0 1px 3px rgba(16, 24, 40, 0.12);
  padding: 0.16rem;
  transition:
    background 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease;
}

.profile-toggle span {
  width: 1.13rem;
  height: 1.13rem;
  border-radius: 999px;
  background: var(--surface);
  box-shadow: 0 2px 6px rgba(16, 24, 40, 0.24);
  transform: translateX(0);
  transition: transform 160ms ease;
}

.profile-toggle.is-on {
  border-color: rgba(49, 87, 246, 0.58);
  background: var(--blue);
  box-shadow: 0 0 0 3px var(--blue-soft);
}

.profile-toggle.is-on span {
  transform: translateX(1.28rem);
}

.profile-row.logout {
  border-bottom: 0;
  color: var(--red);
}

.wallet-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  background: rgba(5, 8, 12, 0.58);
  backdrop-filter: blur(10px);
  padding: 1rem;
}

.wallet-modal[hidden] {
  display: none;
}

.wallet-dialog {
  width: min(29rem, 100%);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 1.15rem;
  background: var(--surface);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.34);
}

.terms-dialog {
  border-color: rgba(244, 191, 72, 0.38);
  box-shadow:
    0 28px 90px rgba(0, 0, 0, 0.34),
    0 0 0 1px rgba(49, 87, 246, 0.12);
}

.wallet-dialog-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid var(--line);
  padding: 1.1rem;
}

.wallet-dialog-head h2 {
  margin: 0.2rem 0 0;
  font-size: 1.55rem;
}

.wallet-dialog-head p {
  margin: 0.35rem 0 0;
  color: var(--muted);
  line-height: 1.45;
}

.wallet-brand-strip {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  column-gap: 0.75rem;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(135deg, var(--gold-soft), transparent 72%),
    var(--surface-soft);
  padding: 0.9rem 1rem;
}

.wallet-brand-strip span {
  display: grid;
  width: 2.8rem;
  height: 2.8rem;
  grid-row: span 2;
  place-items: center;
  overflow: hidden;
  border-radius: 0.85rem;
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
}

.wallet-brand-strip img {
  width: 120%;
  height: 120%;
  object-fit: cover;
}

.wallet-brand-strip strong {
  font-size: 1rem;
  font-weight: 900;
}

.wallet-brand-strip small {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.wallet-close {
  display: inline-grid;
  width: 2.35rem;
  height: 2.35rem;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--muted-strong);
  cursor: pointer;
  font-weight: 900;
}

.wallet-options {
  display: grid;
  gap: 0.7rem;
  padding: 1rem;
}

.terms-signal-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.55rem;
  border-bottom: 1px solid var(--line);
  padding: 0.85rem 1rem 0;
}

.terms-signal-grid span {
  display: grid;
  gap: 0.3rem;
  border: 1px solid var(--line);
  border-radius: 0.8rem;
  background: var(--surface-soft);
  color: var(--muted-strong);
  font-size: 0.76rem;
  font-weight: 850;
  padding: 0.65rem;
}

.terms-signal-grid b {
  display: inline-grid;
  width: 1.55rem;
  height: 1.55rem;
  place-items: center;
  border-radius: 999px;
  background: var(--gold-soft);
  color: var(--gold);
}

.wallet-option {
  display: flex;
  min-height: 4rem;
  align-items: center;
  gap: 0.85rem;
  border: 1px solid var(--line);
  border-radius: 0.9rem;
  background: var(--surface-soft);
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  font-weight: 900;
  padding: 0 1rem;
  text-align: left;
}

.wallet-option-icon {
  display: inline-grid;
  width: 2.35rem;
  height: 2.35rem;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(49, 87, 246, 0.22);
  border-radius: 0.75rem;
  background:
    radial-gradient(circle at 35% 30%, rgba(244, 191, 72, 0.55), transparent 34%),
    var(--surface);
  color: var(--blue);
  font-family: var(--font-token);
  font-size: 1.3rem;
  font-weight: 900;
}

.terms-read-icon {
  background:
    radial-gradient(circle at 35% 30%, rgba(49, 87, 246, 0.28), transparent 34%),
    var(--surface);
  color: var(--blue);
}

.terms-sign-icon {
  background:
    radial-gradient(circle at 35% 30%, rgba(28, 178, 106, 0.32), transparent 34%),
    var(--surface);
  color: var(--green);
  font-size: 0.86rem;
}

.wallet-option-copy {
  display: grid;
  gap: 0.18rem;
  min-width: 0;
}

.wallet-option-copy strong {
  color: var(--ink);
  font-weight: 900;
}

.wallet-option-copy small {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 750;
}

.wallet-option b {
  margin-left: auto;
  border-radius: 999px;
  background: var(--blue-soft);
  color: var(--blue);
  font-size: 0.72rem;
  padding: 0.3rem 0.55rem;
}

.wallet-option:hover,
.wallet-option:focus-visible {
  border-color: rgba(49, 87, 246, 0.42);
  background: var(--blue-soft);
}

.wallet-status {
  margin: 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
  padding: 0.9rem 1rem 1rem;
}

.mobile-profile-trigger {
  display: none;
}

.primary-button:hover,
.secondary-button:hover,
.ghost-button:hover,
.social-icon-button:hover,
.social-link-button:hover,
.theme-toggle:hover,
.primary-button:focus-visible,
.secondary-button:focus-visible,
.ghost-button:focus-visible,
.social-icon-button:focus-visible,
.social-link-button:focus-visible,
.theme-toggle:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 18px 30px rgba(16, 24, 40, 0.14);
}

.large {
  min-height: 3rem;
  padding-inline: 1.25rem;
}

main {
  width: min(1480px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 2rem 0 4rem;
}

.market-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 23rem;
  gap: 1rem;
  align-items: stretch;
}

.hero-copy,
.hero-panel,
.stats-strip,
.markets-column,
.rail-card {
  border: 1px solid var(--line);
  border-radius: 1.15rem;
  background: var(--glass);
  box-shadow: var(--shadow);
}

.hero-copy {
  position: relative;
  overflow: hidden;
  padding: clamp(2rem, 5vw, 4.5rem);
}

.hero-copy::after {
  position: absolute;
  inset: auto 2rem 2rem auto;
  width: min(28vw, 18rem);
  aspect-ratio: 1;
  content: "";
  border-radius: 999px;
  background: url("./large_logo.png") center / cover;
  filter: saturate(1.16) drop-shadow(0 18px 42px rgba(201, 139, 18, 0.18));
  opacity: 0.52;
}

.overline {
  margin: 0 0 0.85rem;
  color: var(--blue);
  font-family: var(--font-accent);
  font-size: 1.08rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 12ch;
  margin-bottom: 1rem;
  font-size: clamp(3.3rem, 7vw, 6.7rem);
  font-weight: 850;
  line-height: 0.92;
  letter-spacing: 0;
}

h2,
h3 {
  font-weight: 850;
}

.hero-copy p:not(.overline) {
  max-width: 43rem;
  color: var(--muted-strong);
  font-size: 1.1rem;
  line-height: 1.65;
  overflow-wrap: anywhere;
}

.hero-panel {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.35rem;
}

.panel-label {
  color: var(--muted);
  font-family: var(--font-accent);
  font-size: 1.02rem;
  font-weight: 800;
  text-transform: uppercase;
}

.pool-amount {
  display: block;
  margin: 0.85rem 0 0.4rem;
  color: var(--gold);
  font-family: var(--font-token);
  font-size: 2.7rem;
  line-height: 1;
}

.hero-panel p {
  color: var(--muted-strong);
  line-height: 1.5;
}

.pool-reward-preview {
  display: grid;
  gap: 0.75rem;
  margin: 1rem 0 0;
  border: 1px solid rgba(201, 139, 18, 0.32);
  border-radius: 0.95rem;
  background:
    linear-gradient(135deg, rgba(201, 139, 18, 0.16), transparent 60%),
    var(--surface);
  padding: 0.85rem;
}

.pool-preview-head,
.pool-preview-total,
.pool-preview-lines span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.pool-preview-head span,
.pool-preview-total small,
.pool-preview-lines span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.pool-preview-head b {
  border-radius: 999px;
  background: var(--gold-soft);
  color: var(--gold);
  font-size: 0.7rem;
  padding: 0.24rem 0.48rem;
}

.pool-preview-total {
  align-items: end;
  border-block: 1px solid var(--line);
  padding: 0.72rem 0;
}

.pool-preview-total strong {
  color: var(--ink);
  font-family: var(--font-token);
  font-size: 1.85rem;
  line-height: 0.9;
}

.pool-preview-lines {
  display: grid;
  gap: 0.45rem;
}

.pool-preview-lines span {
  justify-content: flex-start;
}

.pool-preview-lines i {
  width: 0.5rem;
  height: 0.5rem;
  flex: 0 0 auto;
  border-radius: 999px;
  background: var(--green);
  box-shadow: 0 0 0 3px var(--green-soft);
}

.pool-preview-lines b {
  margin-left: auto;
  color: var(--ink);
  font-size: 0.74rem;
  white-space: nowrap;
}

.pool-flow {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.4rem;
  margin: 1.25rem 0 0.75rem;
}

.pool-flow span {
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  background: var(--gold-soft);
  padding: 0.7rem 0.5rem;
  color: var(--gold);
  font-size: 0.76rem;
  font-weight: 800;
  text-align: center;
}

.pool-meter {
  height: 0.62rem;
  overflow: hidden;
  border-radius: 999px;
  background: var(--surface-soft);
}

.pool-meter span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--gold), #19b777);
}

.hero-panel small {
  margin-top: 0.75rem;
  color: var(--muted);
}

.stats-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  margin: 1rem 0;
  overflow: hidden;
}

.stats-strip div {
  padding: 1.1rem;
  background: var(--card-tint);
}

.stats-strip span,
.stats-strip strong {
  display: block;
}

.stats-strip span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 750;
}

.stats-strip strong {
  margin-top: 0.35rem;
  font-family: var(--font-token);
  font-size: 1.25rem;
}

.market-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 23rem;
  gap: 1rem;
  align-items: start;
}

.markets-column {
  overflow: hidden;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.2rem;
  border-bottom: 1px solid var(--line);
}

.section-head h2 {
  margin: 0;
  font-size: clamp(1.75rem, 3vw, 2.7rem);
  line-height: 1.04;
}

.search-wrap {
  width: min(100%, 24rem);
}

.board-controls {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.7rem;
  width: min(100%, 38rem);
}

.select-wrap {
  display: inline-flex;
  min-width: 12rem;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--surface);
  padding: 0 0.85rem;
}

.select-wrap span {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 850;
  text-transform: uppercase;
}

.select-wrap select {
  min-height: 2.85rem;
  min-width: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  outline: none;
}

.search-wrap input {
  width: 100%;
  min-height: 2.85rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  outline: none;
  padding: 0 1rem;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease;
}

.search-wrap input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(49, 87, 246, 0.12);
}

.tabs {
  display: flex;
  gap: 0.5rem;
  padding: 0.85rem 1.2rem;
  border-bottom: 1px solid var(--line);
  overflow-x: auto;
}

.tabs button {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted-strong);
  cursor: pointer;
  font-weight: 750;
  min-height: 2.35rem;
  padding: 0 0.9rem;
  white-space: nowrap;
  transition:
    background 160ms ease,
    color 160ms ease,
    transform 160ms ease,
    border-color 160ms ease;
}

.tabs button:hover,
.tabs button:focus-visible,
.tabs button.is-active {
  border-color: rgba(49, 87, 246, 0.35);
  background: var(--blue-soft);
  color: var(--blue);
  transform: translateY(-1px);
}

.market-table {
  background: var(--surface);
}

.table-row {
  display: grid;
  grid-template-columns: minmax(18rem, 1.6fr) minmax(7rem, 0.7fr) minmax(5rem, 0.45fr) minmax(12rem, 0.9fr);
  gap: 1rem;
  align-items: center;
  min-height: 5rem;
  border-bottom: 1px solid var(--line);
  padding: 0.8rem 1.2rem;
}

.table-head {
  min-height: 2.8rem;
  background: var(--surface-soft);
  color: var(--muted);
  font-family: var(--font-accent);
  font-size: 1rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.market-row {
  cursor: pointer;
  transition:
    background 160ms ease,
    transform 160ms ease,
    box-shadow 160ms ease;
}

.market-row:hover,
.market-row:focus-within {
  position: relative;
  z-index: 1;
  background: var(--surface-soft);
  box-shadow: 0 16px 36px rgba(16, 24, 40, 0.08);
  transform: translateY(-1px);
}

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

.flag {
  width: 3rem;
  height: 2rem;
  flex: 0 0 auto;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 0.45rem;
  background: var(--surface-soft);
}

.flag img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.market-title {
  min-width: 0;
}

.market-title strong,
.market-title span {
  display: block;
}

.market-title strong {
  overflow: hidden;
  font-size: 1rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.market-title span {
  margin-top: 0.2rem;
  color: var(--muted);
  font-size: 0.82rem;
}

.token-status {
  display: inline-flex;
  align-items: center;
  margin-left: 0.35rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--muted-strong);
  font-size: 0.68rem;
  line-height: 1;
  padding: 0.22rem 0.42rem;
}

.price-stack strong,
.price-stack span {
  display: block;
}

.price-stack strong {
  font-family: var(--font-token);
  font-size: 0.98rem;
}

.price-stack span {
  margin-top: 0.2rem;
  color: var(--muted);
  font-size: 0.78rem;
}

.change {
  color: var(--green);
  font-weight: 850;
}

.change.is-negative {
  color: var(--red);
}

.change.neutral {
  color: var(--muted-strong);
}

.trade-actions {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 2.4rem;
  gap: 0.45rem;
}

.trade-actions button {
  min-height: 2.45rem;
  border: 1px solid transparent;
  border-radius: 0.7rem;
  cursor: pointer;
  font-weight: 850;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease;
}

.buy {
  background: var(--green-soft);
  color: var(--green);
}

.sell {
  background: var(--red-soft);
  color: var(--red);
}

.chart {
  background: var(--blue-soft);
  color: var(--blue);
}

.watch {
  background: var(--surface-soft);
  color: var(--muted-strong);
}

.watch.is-active {
  background: var(--gold-soft);
  color: var(--gold);
}

.token-status.is-live {
  background: rgba(28, 178, 106, 0.12);
  color: var(--green);
}

.platform-access-gate {
  min-height: calc(100vh - 5rem);
  display: grid;
  place-items: center;
  padding: 2rem 1rem;
}

.platform-gate-card {
  position: relative;
  width: min(42rem, 100%);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 1.15rem;
  background:
    radial-gradient(circle at 16% 20%, rgba(244, 191, 72, 0.2), transparent 28%),
    linear-gradient(135deg, rgba(49, 87, 246, 0.12), transparent 58%),
    var(--surface);
  box-shadow: var(--shadow-soft);
  padding: 2rem;
}

.platform-gate-card::after {
  position: absolute;
  right: -3rem;
  bottom: -4rem;
  width: min(52vw, 19rem);
  aspect-ratio: 1;
  content: "";
  background: url("./large_logo.png") center / cover no-repeat;
  filter: saturate(1.14);
  opacity: 0.08;
  pointer-events: none;
}

.platform-gate-card > * {
  position: relative;
  z-index: 1;
}

.platform-gate-card h1 {
  max-width: 10ch;
  margin: 1rem 0 0;
  font-size: clamp(3rem, 8vw, 5.4rem);
  letter-spacing: 0;
  line-height: 0.92;
}

.platform-gate-card p:not(.overline) {
  max-width: 42rem;
  color: var(--muted-strong);
  font-size: 1.05rem;
  line-height: 1.55;
}

.gate-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.2rem;
}

.gate-actions .primary-button {
  background: var(--blue);
  color: #fff;
}

.gate-actions .secondary-button {
  background: var(--surface-soft);
  color: var(--ink);
}

.construction-panel {
  border: 1px solid var(--line);
  border-radius: 1rem;
  background:
    radial-gradient(circle at 12% 20%, rgba(49, 87, 246, 0.18), transparent 26%),
    radial-gradient(circle at 86% 0%, rgba(244, 191, 72, 0.18), transparent 28%),
    var(--surface);
  padding: 2rem;
}

.construction-icon {
  display: inline-grid;
  width: 3rem;
  height: 3rem;
  place-items: center;
  border-radius: 0.85rem;
  background: var(--blue-soft);
  color: var(--blue);
  font-family: var(--font-token);
  font-weight: 900;
}

.construction-panel h2 {
  max-width: 18ch;
  margin: 0.6rem 0;
  font-size: clamp(2rem, 5vw, 3.8rem);
  line-height: 0.96;
}

.construction-panel p:not(.overline) {
  max-width: 48rem;
  color: var(--muted-strong);
  font-size: 1.02rem;
  line-height: 1.55;
}

.trade-actions button:hover,
.trade-actions button:focus-visible,
.moment-list button:hover,
.moment-list button:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(16, 24, 40, 0.12);
}

.empty-state {
  margin: 0;
  padding: 2rem;
  color: var(--muted);
  text-align: center;
}

.right-rail {
  display: grid;
  gap: 1rem;
  position: sticky;
  top: 5.6rem;
}

.rail-card {
  padding: 1rem;
}

.rail-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.9rem;
}

.rail-head h3 {
  margin: 0;
  font-size: 1rem;
}

.rail-head span {
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 800;
  padding: 0.35rem 0.6rem;
}

.leaderboard {
  display: grid;
  gap: 0.6rem;
}

.leader-row {
  display: grid;
  grid-template-columns: 2rem 1.8rem minmax(0, 1fr) auto;
  gap: 0.55rem;
  align-items: center;
}

.leader-row img {
  width: 1.8rem;
  height: 1.2rem;
  border-radius: 0.25rem;
  object-fit: cover;
}

.leader-row strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.leader-row span,
.leader-row b {
  color: var(--muted);
  font-size: 0.78rem;
}

.badge-list {
  display: grid;
  gap: 0.85rem;
  margin: 0;
  padding-left: 1.15rem;
}

.badge-list li::marker {
  color: var(--gold);
  font-weight: 900;
}

.badge-list strong,
.badge-list span {
  display: block;
}

.badge-list span {
  margin-top: 0.2rem;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.45;
}

.moment-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
}

.moment-list button {
  min-height: 3rem;
  border: 1px solid var(--line);
  border-radius: 0.85rem;
  background: var(--surface-soft);
  color: var(--ink);
  cursor: pointer;
  font-weight: 800;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    border-color 160ms ease;
}

.toast {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 50;
  max-width: min(24rem, calc(100% - 2rem));
  border: 1px solid var(--line);
  border-radius: 0.9rem;
  background: var(--ink);
  color: #fff;
  box-shadow: 0 18px 42px rgba(16, 24, 40, 0.22);
  padding: 0.9rem 1rem;
  font-weight: 750;
}

.terms-shell {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 2rem 0 4rem;
}

.terms-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(18rem, 25rem);
  gap: 1rem;
  align-items: stretch;
  min-height: 25rem;
  margin-bottom: 1rem;
}

.terms-hero > div,
.terms-summary-card,
.terms-card,
.terms-final {
  border: 1px solid var(--line);
  border-radius: 1.15rem;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.terms-hero > div {
  position: relative;
  overflow: hidden;
  padding: clamp(1.4rem, 4vw, 2.6rem);
}

.terms-hero > div::after {
  position: absolute;
  right: -3rem;
  bottom: -4rem;
  width: min(38vw, 20rem);
  aspect-ratio: 1;
  content: "";
  background: url("./large_logo.png") center / cover no-repeat;
  opacity: 0.1;
  pointer-events: none;
}

.terms-hero h1 {
  position: relative;
  z-index: 1;
  max-width: 12ch;
  margin-bottom: 1rem;
}

.terms-hero p:not(.overline),
.terms-card p,
.terms-final p {
  color: var(--muted-strong);
  line-height: 1.6;
}

.terms-hero p:not(.overline) {
  position: relative;
  z-index: 1;
  max-width: 48rem;
  font-size: 1.08rem;
}

.terms-summary-card {
  display: flex;
  flex-direction: column;
  justify-content: end;
  background:
    linear-gradient(145deg, rgba(244, 191, 72, 0.18), transparent 62%),
    var(--surface);
  padding: 1.25rem;
}

.terms-summary-card span {
  color: var(--blue);
  font-family: var(--font-accent);
  font-size: 1.05rem;
  font-weight: 900;
  text-transform: uppercase;
}

.terms-summary-card strong {
  display: block;
  margin: 0.6rem 0;
  color: var(--gold);
  font-family: var(--font-token);
  font-size: 2.25rem;
  line-height: 0.95;
}

.terms-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.terms-card {
  padding: 1.2rem;
}

.terms-card.accent {
  border-color: rgba(49, 87, 246, 0.34);
  background:
    linear-gradient(135deg, var(--blue-soft), transparent 72%),
    var(--surface);
}

.terms-card.warning {
  border-color: rgba(226, 74, 74, 0.24);
  background:
    linear-gradient(135deg, var(--red-soft), transparent 70%),
    var(--surface);
}

.terms-number {
  display: inline-grid;
  width: 2.4rem;
  height: 2.4rem;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 0.7rem;
  background: var(--gold-soft);
  color: var(--gold);
  font-family: var(--font-token);
  font-size: 1rem;
  font-weight: 900;
}

.terms-card h2,
.terms-final h2 {
  margin: 0.9rem 0 0.65rem;
  font-size: clamp(1.55rem, 3vw, 2.2rem);
  line-height: 1;
}

.terms-final {
  margin-top: 1rem;
  background:
    radial-gradient(circle at 15% 20%, rgba(244, 191, 72, 0.2), transparent 34%),
    linear-gradient(135deg, rgba(49, 87, 246, 0.12), transparent 72%),
    var(--surface);
  padding: clamp(1.3rem, 3vw, 2rem);
}

.terms-final p {
  max-width: 48rem;
}

.market-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
  border-top: 1px solid var(--line);
  color: var(--muted);
  padding: 1.25rem 0 2rem;
  font-size: 0.86rem;
  font-weight: 800;
}



.hero-market-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: 1.25rem 0 1.35rem;
}

.hero-market-preview span {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted-strong);
  font-size: 0.86rem;
  font-weight: 850;
  padding: 0.45rem 0.65rem 0.45rem 0.45rem;
}

.hero-market-preview img {
  width: 1.65rem;
  height: 1.08rem;
  border-radius: 0.22rem;
  object-fit: cover;
}

.hero-market-preview b {
  color: var(--green);
  font-size: 0.78rem;
}

.launch-countdown {
  display: inline-grid;
  gap: 0.5rem;
  margin: 0 0 1.25rem;
  border: 1px solid rgba(49, 87, 246, 0.18);
  border-radius: 1rem;
  background:
    linear-gradient(135deg, var(--blue-soft), transparent 72%),
    var(--surface);
  padding: 0.85rem;
}

.launch-countdown.launch-today {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
  border-color: rgba(244, 191, 72, 0.46);
  background:
    radial-gradient(circle at 10% 25%, rgba(244, 191, 72, 0.34), transparent 34%),
    linear-gradient(135deg, rgba(49, 87, 246, 0.12), transparent 70%),
    var(--surface);
}

.launch-countdown > span {
  color: var(--muted);
  font-family: var(--font-accent);
  font-size: 0.86rem;
  font-weight: 900;
  text-transform: uppercase;
}

.launch-countdown.launch-today > span {
  color: var(--blue);
}

.launch-countdown.launch-today strong {
  color: var(--ink);
  font-family: var(--font-token);
  font-size: 1.5rem;
  line-height: 1;
}

.launch-live-button {
  display: inline-flex;
  min-height: 2.25rem;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--blue);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 900;
  padding: 0 0.85rem;
  text-transform: uppercase;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease;
}

.launch-live-button:hover,
.launch-live-button:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 12px 22px rgba(16, 24, 40, 0.18);
}

.launch-countdown div {
  display: grid;
  grid-template-columns: repeat(4, auto auto);
  gap: 0.2rem 0.42rem;
  align-items: baseline;
}

.launch-countdown b {
  min-width: 2ch;
  color: var(--ink);
  font-family: var(--font-token);
  font-size: 1.65rem;
  line-height: 0.9;
  text-align: right;
}

.launch-countdown small {
  color: var(--muted-strong);
  font-size: 0.72rem;
  font-weight: 850;
  text-transform: uppercase;
}

.playbook-section,
.feature-band,
.reward-section,
.social-section {
  margin-top: 1rem;
}

.section-head.standalone {
  border: 1px solid var(--line);
  border-radius: 1.15rem;
  background: var(--glass);
  box-shadow: var(--shadow);
}

.playbook-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.playbook-card,
.reward-card,
.feature-copy,
.feature-image,
.social-section {
  border: 1px solid var(--line);
  border-radius: 1.15rem;
  background: var(--glass);
  box-shadow: var(--shadow);
}

.playbook-card {
  position: relative;
  min-height: 17rem;
  overflow: hidden;
  padding: 1.1rem;
}

.playbook-card.has-image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.16;
  filter: saturate(0.9) contrast(1.05);
}

.token-card .token-mark {
  position: absolute;
  inset: -2.5rem -2rem auto auto;
  width: 10rem;
  opacity: 0.2;
  pointer-events: none;
  transform: rotate(10deg);
}

.playbook-card .step,
.playbook-card h3,
.playbook-card p {
  position: relative;
}

.step {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 900;
  margin-bottom: 4.5rem;
  padding: 0.35rem 0.55rem;
}

.playbook-card h3 {
  margin-bottom: 0.55rem;
  font-size: 1.35rem;
}

.playbook-card p,
.feature-copy p,
.reward-card p,
.reward-card span {
  color: var(--muted-strong);
  line-height: 1.55;
}

.feature-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 23rem;
  gap: 1rem;
}

.feature-copy {
  padding: clamp(1.4rem, 3vw, 2.2rem);
}

.feature-copy h2,
.reward-card h2,
.social-section h2 {
  margin-bottom: 0.8rem;
  font-size: clamp(1.8rem, 3.2vw, 3rem);
  line-height: 1;
}

.feature-points {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1.35rem;
}

.feature-points span {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--muted-strong);
  font-size: 0.84rem;
  font-weight: 800;
  padding: 0.55rem 0.75rem;
}

.feature-image {
  min-height: 19rem;
  overflow: hidden;
}

.feature-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.82;
}

.reward-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 17rem 17rem;
  gap: 1rem;
}

.reward-card {
  padding: 1.2rem;
}

.token-reward-card {
  position: relative;
  overflow: hidden;
}

.reward-token-mark {
  position: absolute;
  inset: -3rem -2.5rem auto auto;
  width: 12rem;
  opacity: 0.16;
  pointer-events: none;
  transform: rotate(8deg);
}

.token-reward-card > *:not(.reward-token-mark) {
  position: relative;
}

.reward-card.compact {
  display: flex;
  min-height: 12rem;
  flex-direction: column;
  justify-content: space-between;
}

.reward-card.compact strong {
  color: var(--gold);
  font-family: var(--font-token);
  font-size: 1.65rem;
  line-height: 1;
}

.social-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: clamp(1.4rem, 3vw, 2rem);
}

.social-section h2 {
  max-width: 17ch;
  margin-bottom: 0;
}

.social-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.65rem;
}

[data-theme="dark"] .hero-copy::after {
  opacity: 0.5;
  filter: saturate(1.18) drop-shadow(0 18px 48px rgba(244, 191, 72, 0.18));
}

[data-theme="dark"] .primary-button {
  background: #f3f7fb;
  color: #101828;
}

[data-theme="dark"] .toast {
  background: #f3f7fb;
  color: #101828;
}

[data-theme="dark"] .market-table {
  background: #0f1520;
}

[data-theme="dark"] .table-head {
  color: #aeb8c8;
}

[data-theme="dark"] .market-title strong,
[data-theme="dark"] .price-stack strong,
[data-theme="dark"] .trade-actions button {
  color: var(--ink);
}

[data-theme="dark"] .buy {
  color: var(--green);
}

[data-theme="dark"] .sell {
  color: var(--red);
}

[data-theme="dark"] .watch {
  color: var(--muted-strong);
}

@media (max-width: 1180px) {
  .market-hero,
  .market-layout,
  .feature-band {
    grid-template-columns: 1fr;
  }

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

  .right-rail {
    position: static;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 780px) {
  .market-header {
    align-items: stretch;
    flex-direction: column;
    gap: 0.75rem;
  }

  .market-brand,
  .header-actions {
    justify-content: space-between;
    width: 100%;
  }

  .market-brand {
    justify-content: flex-start;
    min-width: 0;
  }

  .market-brand > span:not(.brand-icon) {
    min-width: 0;
  }

  .market-brand strong,
  .market-brand small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .market-nav {
    justify-content: flex-start;
    min-width: 0;
    max-width: 100%;
    overflow-x: auto;
    scrollbar-width: none;
    width: 100%;
  }

  .market-nav::-webkit-scrollbar,
  .platform-tabs::-webkit-scrollbar,
  .tabs::-webkit-scrollbar {
    display: none;
  }

  .platform-tabs,
  .tabs {
    scrollbar-width: none;
  }

  .market-header > * {
    max-width: 100%;
  }

  .market-nav a {
    padding-inline: 0.75rem;
  }

  .header-actions {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    justify-content: space-between;
    min-width: 0;
    padding-right: 0;
  }

  .wallet-login {
    flex: 1 1 auto;
    max-width: calc(100% - 3.2rem);
    width: auto;
    min-width: 0;
    padding-inline: 0.75rem;
  }

  .wallet-metrics {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-column: 1 / -1;
    gap: 0.55rem;
  }

  .wallet-metrics div {
    min-width: 0;
    border: 1px solid var(--line);
    border-radius: 0.8rem;
    background: var(--surface-soft);
    padding: 0.65rem 0.75rem;
  }

  .profile-menu {
    position: static;
    flex: 0 0 auto;
  }

  .profile-trigger {
    display: none !important;
  }

  .mobile-profile-trigger {
    position: fixed;
    top: 9.5rem;
    left: 1rem;
    right: auto;
    z-index: 95;
    display: inline-flex;
    width: 2.65rem;
    height: 2.65rem;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 1px solid rgba(244, 191, 72, 0.42);
    border-radius: 999px;
    background: var(--surface-soft);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.24);
    padding: 0;
  }

  .mobile-profile-trigger img {
    width: 120%;
    height: 120%;
    object-fit: cover;
  }

  .profile-dropdown {
    position: fixed;
    top: 12.5rem;
    right: 1rem;
    width: min(22.5rem, calc(100vw - 2rem));
  }

  .profile-trigger {
    min-height: 2.65rem;
    padding: 0.2rem;
  }

  .profile-trigger .profile-avatar {
    width: 2.15rem;
    height: 2.15rem;
  }

  .profile-trigger .profile-chevron {
    display: none;
  }

  .profile-dropdown {
    right: 0;
    width: min(22.5rem, calc(100vw - 1rem));
  }

  main {
    width: min(100% - 1rem, 1480px);
    padding-top: 0.75rem;
  }

  .hero-copy {
    padding: 1.4rem;
  }

  .hero-copy::after {
    display: block;
    inset: auto -2.8rem 1.2rem auto;
    width: 11rem;
    opacity: 0.28;
  }

  h1 {
    max-width: 9ch;
    font-size: clamp(2.75rem, 13vw, 4rem);
  }

  .hero-actions,
  .section-head,
  .stats-strip {
    align-items: stretch;
    flex-direction: column;
  }

  .hero-actions .primary-button,
  .hero-actions .secondary-button {
    width: 100%;
  }

  .launch-countdown {
    width: 100%;
  }

  .launch-countdown div {
    grid-template-columns: repeat(2, auto auto);
  }

  .terms-signal-grid {
    grid-template-columns: 1fr;
  }

  .platform-gate-card {
    padding: 1.25rem;
  }

  .gate-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .pool-flow {
    grid-template-columns: 1fr;
  }

  .stats-strip {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .section-head {
    display: flex;
  }

  .search-wrap {
    width: 100%;
  }

  .board-controls {
    align-items: stretch;
    flex-direction: column;
    width: 100%;
  }

  .select-wrap {
    width: 100%;
  }

  .select-wrap select {
    flex: 1;
  }

  .table-head {
    display: none;
  }

  .table-row {
    grid-template-columns: 1fr;
    gap: 0.75rem;
    min-height: 0;
  }

  .trade-actions {
    grid-template-columns: 1fr 1fr 1fr 3rem;
  }

  .transparency-table {
    overflow-x: auto;
  }

  .transparency-row {
    min-width: 42rem;
  }

  .right-rail,
  .playbook-grid,
  .reward-section,
  .terms-hero,
  .terms-grid {
    grid-template-columns: 1fr;
  }

  .terms-shell {
    width: min(100% - 1rem, 1180px);
    padding-top: 0.75rem;
  }

  .terms-hero {
    min-height: 0;
  }

  .terms-hero > div,
  .terms-summary-card,
  .terms-card,
  .terms-final {
    border-radius: 1rem;
  }

  .social-section {
    align-items: stretch;
    flex-direction: column;
  }

  .social-actions {
    justify-content: stretch;
  }

  .social-actions a {
    width: 100%;
  }
}



.badge-explainer {
  margin-top: 1rem;
}

.badge-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.badge-card {
  border: 1px solid var(--line);
  border-radius: 1.15rem;
  background: var(--glass);
  box-shadow: var(--shadow);
  min-height: 14rem;
  padding: 1.1rem;
}

.badge-card strong,
.badge-card span {
  display: block;
}

.badge-card strong {
  color: var(--ink);
  font-size: 1.15rem;
  line-height: 1.1;
}

.badge-card p {
  color: var(--muted-strong);
  line-height: 1.5;
  margin: 0.85rem 0 1.2rem;
}

.badge-card span {
  color: var(--blue);
  font-size: 0.82rem;
  font-weight: 850;
}

.badge-card.highlight {
  background:
    linear-gradient(135deg, var(--gold-soft), transparent 72%),
    var(--glass);
  border-color: rgba(201, 139, 18, 0.42);
}

.status-pill {
  align-self: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--muted-strong);
  font-size: 0.78rem;
  font-weight: 900;
  padding: 0.55rem 0.75rem;
}

.platform-shell {
  width: min(1520px, calc(100% - 2rem));
}

.platform-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 19rem;
  gap: 1rem;
  margin-bottom: 1rem;
}

.platform-intro > div,
.mini-pool-card {
  border: 1px solid var(--line);
  border-radius: 1.15rem;
  background: var(--glass);
  box-shadow: var(--shadow);
  padding: clamp(1.2rem, 3vw, 2rem);
}

.platform-intro h1 {
  max-width: 12ch;
  font-size: clamp(2.5rem, 5vw, 5rem);
}

.platform-intro p {
  max-width: 48rem;
  color: var(--muted-strong);
  font-size: 1.05rem;
  line-height: 1.55;
}

.mini-pool-card {
  display: flex;
  position: relative;
  overflow: hidden;
  flex-direction: column;
  justify-content: space-between;
}

.trophy-spotlight img {
  position: absolute;
  right: -2rem;
  bottom: -2.5rem;
  width: 12rem;
  opacity: 0.28;
  pointer-events: none;
  transform: rotate(8deg);
}

.trophy-spotlight > *:not(img) {
  position: relative;
}

.trophy-spotlight p {
  color: var(--muted-strong);
  font-size: 0.92rem;
  line-height: 1.45;
  margin: 0.85rem 0;
}

.mini-pool-card span,
.mini-pool-card small {
  color: var(--muted);
  font-weight: 800;
}

.mini-pool-card strong {
  color: var(--gold);
  font-size: 1.55rem;
  line-height: 1;
}

.platform-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: var(--glass);
  box-shadow: var(--shadow);
  padding: 0.55rem;
}

.platform-tabs button {
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: var(--muted-strong);
  cursor: pointer;
  font-weight: 850;
  min-height: 2.5rem;
  padding: 0 0.95rem;
  white-space: nowrap;
  transition:
    background 160ms ease,
    color 160ms ease,
    transform 160ms ease,
    border-color 160ms ease;
}

.platform-tabs button:hover,
.platform-tabs button:focus-visible,
.platform-tabs button.is-active {
  border-color: rgba(49, 87, 246, 0.35);
  background: var(--blue-soft);
  color: var(--blue);
  transform: translateY(-1px);
}

.platform-view {
  animation: viewIn 180ms ease both;
}

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

.full-width {
  width: 100%;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.rail-card.wide {
  grid-column: 1 / -1;
}

.muted-copy {
  color: var(--muted-strong);
  line-height: 1.55;
  margin-bottom: 0;
}

.leaderboard.expanded {
  gap: 0;
}

.leaderboard.expanded .leader-row {
  border-bottom: 1px solid var(--line);
  min-height: 3.3rem;
}

.platform-panel {
  margin-top: 0;
}

.no-margin {
  margin-top: 0;
}

.transparency-card {
  margin-top: 1rem;
}

.transparency-table {
  border: 1px solid var(--line);
  border-radius: 0.8rem;
  overflow: hidden;
}

.transparency-row {
  display: grid;
  grid-template-columns: minmax(8rem, 1fr) repeat(4, minmax(5.5rem, 0.65fr));
  gap: 0.75rem;
  align-items: center;
  min-height: 3.2rem;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
  color: var(--muted-strong);
  font-size: 0.9rem;
  padding: 0.7rem 0.85rem;
}

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

.transparency-head {
  min-height: 2.5rem;
  background: var(--surface-soft);
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.market-docs-shell {
  display: grid;
  grid-template-columns: 17rem minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
  width: min(1320px, calc(100% - 2rem));
}

.docs-sidebar {
  position: sticky;
  top: 5.6rem;
  display: grid;
  gap: 0.55rem;
  border: 1px solid var(--line);
  border-radius: 1.15rem;
  background: var(--glass);
  box-shadow: var(--shadow);
  padding: 1rem;
}

.docs-sidebar strong {
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.docs-sidebar nav {
  display: grid;
  gap: 0.15rem;
}

.docs-sidebar a:not(.docs-sidebar-cta) {
  border-radius: 0.7rem;
  color: var(--muted-strong);
  font-size: 0.9rem;
  font-weight: 750;
  padding: 0.55rem 0.65rem;
  transition:
    background 160ms ease,
    color 160ms ease,
    transform 160ms ease;
}

.docs-sidebar a:not(.docs-sidebar-cta):hover,
.docs-sidebar a:not(.docs-sidebar-cta):focus-visible {
  background: var(--surface-soft);
  color: var(--ink);
  transform: translateX(2px);
}

.docs-sidebar-cta {
  margin-top: 0.45rem;
}

.docs-page {
  display: grid;
  gap: 1rem;
  min-width: 0;
}

.docs-page > *,
.docs-hero > *,
.docs-section > * {
  min-width: 0;
}

.docs-hero,
.docs-section,
.docs-disclaimer {
  border: 1px solid var(--line);
  border-radius: 1.15rem;
  background: var(--glass);
  box-shadow: var(--shadow);
}

.docs-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(17rem, 0.62fr);
  gap: 1rem;
  align-items: stretch;
  padding: clamp(1.4rem, 4vw, 3rem);
}

.docs-hero h1 {
  max-width: 12ch;
  margin-bottom: 1rem;
  font-size: clamp(3rem, 6vw, 5.8rem);
  line-height: 0.94;
}

.docs-hero p:not(.overline),
.docs-section p,
.docs-section li,
.docs-disclaimer p {
  color: var(--muted-strong);
  font-size: 1rem;
  line-height: 1.65;
  overflow-wrap: anywhere;
}

.docs-highlight-grid {
  display: grid;
  gap: 0.7rem;
}

.docs-highlight-grid div,
.docs-split div,
.docs-token-grid span,
.docs-callout {
  border: 1px solid var(--line);
  border-radius: 0.85rem;
  background: var(--surface);
}

.docs-highlight-grid div {
  display: flex;
  min-height: 7rem;
  flex-direction: column;
  justify-content: space-between;
  padding: 1rem;
}

.docs-highlight-grid span,
.docs-split span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 750;
  line-height: 1.45;
}

.docs-highlight-grid strong {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--gold);
  font-family: var(--font-token);
  font-size: 1.65rem;
  line-height: 1;
}

.token-summary img {
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 999px;
  object-fit: cover;
}

.docs-disclaimer {
  display: grid;
  grid-template-columns: 10rem minmax(0, 1fr);
  gap: 1rem;
  align-items: center;
  border-color: rgba(201, 139, 18, 0.42);
  background:
    linear-gradient(135deg, var(--gold-soft), transparent 74%),
    var(--glass);
  padding: 1rem 1.2rem;
}

.docs-disclaimer strong {
  color: var(--gold);
  font-size: 0.9rem;
  font-weight: 900;
  text-transform: uppercase;
}

.docs-disclaimer p {
  margin-bottom: 0;
}

.docs-section {
  padding: clamp(1.25rem, 3vw, 2rem);
  scroll-margin-top: 6.5rem;
}

.docs-section h2 {
  margin-bottom: 0.85rem;
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  line-height: 1.03;
}

.docs-section ul,
.docs-section ol {
  display: grid;
  gap: 0.6rem;
  margin: 1rem 0 0;
  padding-left: 1.25rem;
}

.docs-section li::marker {
  color: var(--gold);
  font-weight: 900;
}

.docs-token-grid,
.docs-split {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.7rem;
  margin: 1rem 0;
}

.docs-token-grid span,
.docs-callout {
  color: var(--gold);
  font-weight: 900;
  padding: 0.9rem 1rem;
}

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

.docs-split div {
  padding: 1rem;
}

.docs-split strong {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--gold);
  font-family: var(--font-token);
  font-size: 1.8rem;
  line-height: 1;
}

.docs-split span {
  display: block;
}

.docs-callout {
  margin: 1rem 0;
  background:
    linear-gradient(135deg, var(--gold-soft), transparent 76%),
    var(--surface);
  color: var(--muted-strong);
  line-height: 1.55;
}

.docs-final {
  border-color: rgba(49, 87, 246, 0.35);
  background:
    linear-gradient(135deg, var(--blue-soft), transparent 72%),
    var(--glass);
}

@media (max-width: 1180px) {
  .badge-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .platform-intro {
    grid-template-columns: 1fr;
  }

  .market-docs-shell,
  .docs-hero {
    grid-template-columns: 1fr;
  }

  .docs-sidebar {
    position: static;
  }

  .docs-sidebar nav {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 780px) {
  .badge-grid,
  .dashboard-grid {
    grid-template-columns: 1fr;
  }

  .platform-shell {
    width: min(100% - 1rem, 1520px);
  }

  .market-docs-shell {
    width: min(100% - 1rem, 1320px);
  }

  .market-docs-shell,
  .docs-page,
  .docs-hero,
  .docs-section,
  .docs-disclaimer {
    max-width: 100%;
    overflow: hidden;
  }

  .docs-sidebar nav,
  .docs-highlight-grid,
  .docs-token-grid,
  .docs-split,
  .docs-disclaimer {
    grid-template-columns: 1fr;
  }

  .docs-page {
    order: 1;
  }

  .docs-sidebar {
    order: 2;
  }

  .docs-hero h1 {
    max-width: 8ch;
    font-size: clamp(2.35rem, 10vw, 3.1rem);
    overflow-wrap: anywhere;
  }

  .docs-section h2 {
    font-size: clamp(1.7rem, 9vw, 2.45rem);
  }

  .docs-hero p:not(.overline),
  .docs-section p,
  .docs-section li,
  .docs-disclaimer p {
    max-width: 32ch;
  }
}
