:root {
  --bg: #07111f;
  --panel: rgba(8, 19, 35, 0.78);
  --panel-strong: rgba(11, 23, 42, 0.92);
  --line: rgba(135, 191, 255, 0.18);
  --text: #eff6ff;
  --muted: #8ea6c8;
  --hot: #ff7b38;
  --hot-2: #ffbe63;
  --cold: #6dd3ff;
  --green: #6cf5a3;
  --shadow: 0 24px 60px rgba(2, 7, 17, 0.45);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Noto Sans SC", "Space Grotesk", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(255, 123, 56, 0.22), transparent 28%),
    radial-gradient(circle at 80% 20%, rgba(109, 211, 255, 0.18), transparent 24%),
    linear-gradient(180deg, #08101c 0%, #040912 100%);
}

body[data-page="stake"] #connectWalletButton,
body[data-page="stake"] #legacyWalletControls {
  display: none !important;
}

.page-shell {
  min-height: 100vh;
}

.site-shell,
.jackpot-shell {
  min-height: 100vh;
  padding: 28px clamp(20px, 4vw, 56px) 56px;
}

.site-header,
.jackpot-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 22px;
}

.brand--compact .brand__mark {
  width: 44px;
  height: 44px;
  border-radius: 14px;
}

.site-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 12px;
}

.user-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}

.user-tabs--compact {
  margin-bottom: 0;
}

.env-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: -4px 0 24px;
  padding: 14px 18px;
  border-radius: 18px;
  border: 1px solid rgba(255, 190, 99, 0.22);
  background:
    linear-gradient(90deg, rgba(255, 123, 56, 0.12), rgba(109, 211, 255, 0.08)),
    rgba(255, 255, 255, 0.03);
  box-shadow: inset 0 0 0 1px rgba(255, 190, 99, 0.04);
}

.env-banner__label {
  color: var(--hot-2);
  font-family: "Space Grotesk", sans-serif;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.env-banner strong {
  font-family: "Space Grotesk", sans-serif;
  color: #fff5d3;
  font-size: 18px;
  text-align: right;
}

.user-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 88px;
  padding: 12px 18px;
  border: 1px solid rgba(135, 191, 255, 0.18);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  text-decoration: none;
  border-radius: 4px;
  transition: 0.2s ease;
}

.user-tab.is-active {
  background: linear-gradient(180deg, rgba(17, 33, 56, 0.8), rgba(10, 20, 37, 0.9));
  border-color: rgba(255, 190, 99, 0.34);
  box-shadow: inset 0 0 0 1px rgba(255, 190, 99, 0.08);
}

.user-tab--focus {
  border-color: rgba(108, 245, 163, 0.28);
}

.user-content {
  display: grid;
  gap: 28px;
}

.trade-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(340px, 0.8fr);
  gap: 20px;
}

.trade-hero {
  display: grid;
  grid-template-columns: minmax(360px, 0.92fr) minmax(0, 1.08fr);
  gap: 20px;
  align-items: stretch;
}

.chart-card,
.buy-panel,
.doc-card,
.jackpot-panel,
.bulletin-card,
.mini-fomo {
  padding: 22px;
}

.chart-card--secondary {
  padding-top: 24px;
}

.chart-frame {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 14px;
  align-items: stretch;
  margin-top: 18px;
}

.chart-frame__y,
.chart-frame__x {
  color: var(--muted);
  font-size: 13px;
}

.chart-frame__y {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  text-align: center;
}

.chart-frame__x {
  grid-column: 2;
  text-align: right;
}

.chart-canvas {
  position: relative;
  padding: 18px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(135, 191, 255, 0.12);
}

.chart-svg {
  width: 100%;
  height: auto;
  display: block;
}

.chart-badge {
  position: absolute;
  top: 18px;
  right: 18px;
  padding: 9px 12px;
  border-radius: 999px;
  background: rgba(255, 123, 56, 0.12);
  border: 1px solid rgba(255, 190, 99, 0.22);
  color: #fff5d3;
  font-size: 12px;
}

.doc-flow {
  display: grid;
  gap: 18px;
  margin-top: 18px;
}

.doc-flow section {
  padding: 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(135, 191, 255, 0.12);
}

.doc-flow h3 {
  margin-top: 0;
}

.whitepaper-flow {
  gap: 20px;
}

.whitepaper-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  gap: 18px;
  padding: 24px;
  border-radius: 24px;
  border: 1px solid rgba(255, 190, 99, 0.22);
  background:
    radial-gradient(circle at top right, rgba(255, 190, 99, 0.16), transparent 30%),
    radial-gradient(circle at left center, rgba(109, 211, 255, 0.12), transparent 24%),
    linear-gradient(160deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02));
  box-shadow: inset 0 0 0 1px rgba(255, 190, 99, 0.05);
}

.whitepaper-hero__eyebrow,
.whitepaper-kpi__label,
.whitepaper-section__eyebrow,
.whitepaper-note__eyebrow {
  color: var(--hot-2);
  font-family: "Space Grotesk", sans-serif;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.whitepaper-hero__title {
  margin: 10px 0 12px;
  font-size: clamp(30px, 5vw, 42px);
  line-height: 1.05;
}

.whitepaper-hero__lede {
  margin: 0;
  color: #d8e8fb;
  font-size: 16px;
  line-height: 1.8;
}

.whitepaper-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.whitepaper-pill {
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(135, 191, 255, 0.16);
  background: rgba(255, 255, 255, 0.04);
  color: #e7f2ff;
  font-size: 13px;
}

.whitepaper-summary {
  display: grid;
  gap: 12px;
}

.whitepaper-summary__card {
  padding: 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(135, 191, 255, 0.12);
}

.whitepaper-summary__card strong {
  display: block;
  margin-bottom: 8px;
  font-size: 16px;
}

.whitepaper-summary__card p,
.whitepaper-section p,
.whitepaper-note p {
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
}

.whitepaper-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.whitepaper-kpi {
  padding: 18px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(135, 191, 255, 0.12);
}

.whitepaper-kpi__value {
  display: block;
  margin-top: 10px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 26px;
  line-height: 1.15;
}

.whitepaper-kpi__hint {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

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

.whitepaper-section,
.whitepaper-note {
  padding: 20px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(135, 191, 255, 0.12);
}

.whitepaper-section h3,
.whitepaper-note h3 {
  margin: 10px 0 12px;
  font-size: 22px;
}

.whitepaper-list {
  display: grid;
  gap: 10px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.whitepaper-list li {
  padding-left: 18px;
  position: relative;
  color: #dce9f9;
  line-height: 1.8;
}

.whitepaper-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 11px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(180deg, var(--hot), var(--hot-2));
  box-shadow: 0 0 0 4px rgba(255, 190, 99, 0.08);
}

.whitepaper-manifesto {
  display: grid;
  gap: 18px;
}

.whitepaper-manifesto__lead {
  margin: 0;
  color: #eef6ff;
  font-size: 18px;
  line-height: 1.75;
}

.whitepaper-manifesto__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.whitepaper-manifesto__card {
  min-height: 108px;
  padding: 16px 16px 14px;
  border-radius: 18px;
  border: 1px solid rgba(255, 190, 99, 0.16);
  background:
    radial-gradient(circle at top right, rgba(255, 190, 99, 0.1), transparent 36%),
    rgba(255, 255, 255, 0.025);
}

.whitepaper-manifesto__card strong {
  display: block;
  margin-bottom: 8px;
  color: #fff4d0;
  font-size: 16px;
}

.whitepaper-manifesto__card p {
  color: var(--muted);
  line-height: 1.75;
}

.whitepaper-credo {
  padding: 18px;
  border-radius: 20px;
  border: 1px solid rgba(109, 211, 255, 0.18);
  background:
    linear-gradient(145deg, rgba(109, 211, 255, 0.08), rgba(255, 123, 56, 0.04)),
    rgba(255, 255, 255, 0.03);
}

.whitepaper-credo__title {
  margin: 0;
  color: #fff4d0;
  font-family: "Space Grotesk", sans-serif;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.whitepaper-credo__metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 16px 0;
}

.whitepaper-credo__metric {
  padding: 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(135, 191, 255, 0.12);
}

.whitepaper-credo__metric span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.whitepaper-credo__metric strong {
  display: block;
  margin-top: 8px;
  color: #f8fbff;
  font-size: 19px;
}

.whitepaper-credo__lines {
  display: grid;
  gap: 8px;
}

.whitepaper-credo__lines p {
  margin: 0;
}

.whitepaper-credo__claim {
  color: #eef6ff;
  font-weight: 700;
}

.whitepaper-credo__dedication {
  color: #ffdca3;
}

.whitepaper-release {
  margin: 14px 0 0;
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid rgba(255, 190, 99, 0.16);
  background:
    radial-gradient(circle at top right, rgba(255, 190, 99, 0.1), transparent 40%),
    rgba(255, 255, 255, 0.03);
}

.whitepaper-release__label {
  color: var(--hot-2);
  font-family: "Space Grotesk", sans-serif;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.whitepaper-release__value {
  margin-top: 10px;
  color: #fff4d0;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(26px, 4vw, 34px);
  line-height: 1.2;
  word-break: break-word;
}

.whitepaper-note {
  background:
    linear-gradient(145deg, rgba(255, 123, 56, 0.08), rgba(109, 211, 255, 0.05)),
    rgba(255, 255, 255, 0.03);
}

.whitepaper-timeline {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.whitepaper-timeline__item {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 14px;
  align-items: start;
  padding: 14px 0;
  border-top: 1px solid rgba(135, 191, 255, 0.1);
}

.whitepaper-timeline__item:first-child {
  border-top: 0;
  padding-top: 0;
}

.whitepaper-timeline__label {
  color: #fff2ca;
  font-family: "Space Grotesk", sans-serif;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.whitepaper-full {
  grid-column: 1 / -1;
}

.whitepaper-footer {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.whitepaper-footer__card {
  padding: 18px;
  border-radius: 18px;
  border: 1px solid rgba(135, 191, 255, 0.12);
  background: rgba(255, 255, 255, 0.03);
}

.whitepaper-footer__card strong {
  display: block;
  margin-bottom: 8px;
  font-size: 15px;
}

.whitepaper-footer__card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
}

.bulletin-stack {
  display: grid;
  gap: 16px;
}

.bulletin-date {
  color: var(--hot-2);
  font-family: "Space Grotesk", sans-serif;
  font-size: 13px;
}

.jackpot-shell {
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 123, 56, 0.18), transparent 24%),
    radial-gradient(circle at 80% 20%, rgba(109, 211, 255, 0.12), transparent 24%),
    linear-gradient(180deg, #07101d 0%, #030812 100%);
}

.jackpot-stage {
  display: grid;
  gap: 28px;
}

.jackpot-stage__hero {
  min-height: 58vh;
  display: grid;
  align-content: center;
  justify-items: center;
  text-align: center;
  gap: 18px;
}

.jackpot-countdown {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(96px, 18vw, 220px);
  line-height: 0.88;
  font-weight: 700;
  color: #fff5d3;
  text-shadow: 0 0 32px rgba(255, 190, 99, 0.14);
}

.jackpot-epoch-meta {
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 245, 211, 0.78);
}

.jackpot-hero-grid {
  width: min(1080px, 100%);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.jackpot-claim-actions {
  justify-content: center;
  margin-top: 6px;
}

.jackpot-stage__trend {
  width: 100%;
}

.jackpot-panel--trend {
  padding: 24px;
  background:
    radial-gradient(circle at top right, rgba(255, 190, 99, 0.12), transparent 34%),
    radial-gradient(circle at left center, rgba(109, 211, 255, 0.1), transparent 26%),
    var(--panel-strong);
}

.jackpot-trend__header {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
  margin-bottom: 18px;
}

.jackpot-trend__header h2 {
  margin: 8px 0 0;
  font-size: clamp(24px, 3.2vw, 34px);
  line-height: 1.08;
}

.jackpot-trend__toolbar {
  display: grid;
  gap: 12px;
  justify-items: end;
}

.jackpot-trend__meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.jackpot-trend__controls {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  position: relative;
  z-index: 6;
}

.jackpot-trend__control {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 190, 99, 0.14);
  background: rgba(255, 255, 255, 0.025);
  color: var(--muted);
  font-family: "Space Grotesk", sans-serif;
  font-size: 12px;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.jackpot-trend__control.is-active {
  color: #fff7d8;
  border-color: rgba(255, 190, 99, 0.32);
  background: rgba(255, 190, 99, 0.08);
}

.jackpot-trend__control--refresh {
  border-color: rgba(109, 211, 255, 0.18);
}

.jackpot-trend__control--fullscreen {
  border-color: rgba(255, 190, 99, 0.22);
}

.jackpot-trend__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 190, 99, 0.24);
  background: rgba(255, 123, 56, 0.1);
  color: #fff5d3;
  font-family: "Space Grotesk", sans-serif;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.jackpot-trend__badge--cool {
  border-color: rgba(109, 211, 255, 0.22);
  background: rgba(109, 211, 255, 0.1);
  color: #dff4ff;
}

.jackpot-trend__summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.jackpot-trend__stat {
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid rgba(255, 190, 99, 0.1);
  background: rgba(255, 255, 255, 0.025);
  min-width: 0;
}

.jackpot-trend__stat span,
.jackpot-trend__stat small {
  display: block;
}

.jackpot-trend__stat span {
  color: var(--muted);
  font-size: 13px;
}

.jackpot-trend__stat strong {
  display: block;
  margin-top: 8px;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(24px, 3.2vw, 40px);
  line-height: 1.05;
  color: #fff2cf;
  overflow-wrap: anywhere;
}

.jackpot-trend__stat small {
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.jackpot-trend__chart-card {
  position: relative;
  padding: 18px;
  border-radius: 22px;
  border: 1px solid rgba(135, 191, 255, 0.12);
  background: rgba(3, 10, 18, 0.34);
  overflow: hidden;
}

.jackpot-trend__chart-card:fullscreen,
.jackpot-trend__chart-card.is-mobile-fullscreen {
  padding: 18px;
  background: rgba(3, 10, 18, 0.98);
}

.jackpot-trend__chart-card:fullscreen {
  width: 100vw;
  height: 100vh;
  overflow: auto;
}

.jackpot-trend__chart-card.is-mobile-fullscreen {
  position: fixed;
  inset: 0;
  z-index: 9999;
  overflow: auto;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
  border-radius: 0;
}

.jackpot-trend__floating-fullscreen {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 4;
  display: none;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 190, 99, 0.28);
  background: rgba(5, 10, 18, 0.82);
  color: #fff5d3;
  font-family: "Space Grotesk", sans-serif;
  font-size: 11px;
  cursor: pointer;
  backdrop-filter: blur(10px);
}

.jackpot-trend__yheads {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 13px;
}

.jackpot-trend__grid {
  min-width: 0;
}

.jackpot-trend__canvas-wrap {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr) 76px;
  gap: 14px;
  align-items: stretch;
}

.jackpot-trend__canvas {
  position: relative;
  min-width: 0;
  aspect-ratio: 980 / 360;
  min-height: 360px;
  padding: 14px;
  border-radius: 20px;
  border: 1px solid rgba(135, 191, 255, 0.08);
  background: rgba(6, 15, 28, 0.88);
  overflow: hidden;
  touch-action: pan-y;
}

.jackpot-trend__chart-svg {
  width: 100%;
  height: 100%;
  display: block;
}

.jackpot-trend__chart-grid line {
  stroke: rgba(135, 191, 255, 0.12);
  stroke-width: 1;
  stroke-dasharray: 6 14;
}

.jackpot-trend__chart-line {
  shape-rendering: geometricPrecision;
  vector-effect: non-scaling-stroke;
}

.jackpot-trend__chart-line--1,
.jackpot-trend__chart-line--2 {
  filter: drop-shadow(0 0 5px rgba(255, 214, 131, 0.1));
}

.jackpot-trend__chart-line--3,
.jackpot-trend__chart-line--4 {
  filter: drop-shadow(0 0 10px rgba(255, 141, 87, 0.22));
}

.jackpot-trend__chart-band {
  filter: drop-shadow(0 0 14px rgba(255, 141, 87, 0.08));
}

.jackpot-trend__hover-guide {
  position: absolute;
  top: 14px;
  bottom: 14px;
  width: 1px;
  background: linear-gradient(180deg, rgba(255, 214, 131, 0), rgba(255, 214, 131, 0.82), rgba(255, 214, 131, 0));
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%);
  transition: opacity 0.14s ease;
}

.jackpot-trend__hover-guide.is-visible {
  opacity: 1;
}

.jackpot-trend__hover-dot {
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: var(--trend-dot, #fff);
  border: 2px solid rgba(7, 17, 31, 0.95);
  box-shadow: 0 0 0 4px rgba(255, 214, 131, 0.14);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -50%);
  transition: opacity 0.14s ease;
}

.jackpot-trend__hover-dot.is-visible {
  opacity: 1;
}

.jackpot-trend__tooltip {
  position: absolute;
  top: 0;
  left: 0;
  min-width: 188px;
  max-width: min(260px, calc(100% - 20px));
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(255, 214, 131, 0.22);
  background: rgba(5, 10, 18, 0.96);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.32);
  color: #fff8e2;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, calc(-100% - 12px));
  transition: opacity 0.14s ease;
  z-index: 3;
}

.jackpot-trend__tooltip.is-visible {
  opacity: 1;
}

.jackpot-trend__tooltip strong {
  display: block;
  margin-bottom: 8px;
  font-size: 12px;
  letter-spacing: 0.04em;
}

.jackpot-trend__tooltip-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 12px;
  line-height: 1.45;
}

.jackpot-trend__tooltip-row + .jackpot-trend__tooltip-row {
  margin-top: 4px;
}

.jackpot-trend__tooltip-row span:last-child {
  text-align: right;
  color: #ffe7b7;
}

.jackpot-trend__scale {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: var(--muted);
  font-family: "Space Grotesk", sans-serif;
  font-size: 12px;
  line-height: 1.1;
  padding: 10px 0;
}

.jackpot-trend__scale--left {
  text-align: right;
}

.jackpot-trend__scale--right {
  text-align: left;
}

.jackpot-trend__scale-overlay {
  position: absolute;
  top: 12px;
  bottom: 12px;
  z-index: 2;
  display: none;
  flex-direction: column;
  justify-content: space-between;
  pointer-events: none;
  color: #d9ecff;
  font-family: "Space Grotesk", sans-serif;
  font-size: 10px;
  line-height: 1.1;
}

.jackpot-trend__scale-overlay span {
  padding: 4px 6px;
  border-radius: 10px;
  background: rgba(5, 10, 18, 0.68);
  border: 1px solid rgba(135, 191, 255, 0.14);
  backdrop-filter: blur(6px);
}

.jackpot-trend__scale-overlay--left {
  left: 10px;
  align-items: flex-start;
}

.jackpot-trend__scale-overlay--right {
  right: 10px;
  align-items: flex-end;
}

.jackpot-trend__legend {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  margin-top: 12px;
}

.jackpot-trend__legend-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #dce9f8;
  font-size: 13px;
}

.jackpot-trend__legend-swatch {
  width: 20px;
  height: 3px;
  border-radius: 999px;
  display: inline-block;
}

.jackpot-trend__legend-note {
  flex: 1 1 100%;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.jackpot-trend__axis {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.jackpot-trend__axis-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid rgba(135, 191, 255, 0.16);
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  font-size: 12px;
  font-family: "Space Grotesk", sans-serif;
}

.jackpot-trend__axis-chip.is-current {
  color: #fff7d8;
  border-color: rgba(255, 190, 99, 0.26);
  background: rgba(255, 190, 99, 0.08);
}

body.jackpot-chart-fullscreen {
  overflow: hidden;
}

.jackpot-trend__empty {
  padding: 28px 20px;
  border-radius: 20px;
  border: 1px dashed rgba(135, 191, 255, 0.18);
  text-align: center;
  color: var(--muted);
}

.jackpot-status-line {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 24px;
  color: var(--muted);
  font-size: 14px;
}

.jackpot-card {
  min-width: 0;
  padding: 18px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 190, 99, 0.16);
}

.jackpot-card span {
  display: block;
  color: var(--muted);
}

.jackpot-card strong {
  display: block;
  margin-top: 8px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 32px;
}

.jackpot-card strong.jackpot-card__address {
  width: 100%;
  max-width: 100%;
  font-size: clamp(13px, 1.2vw, 17px);
  line-height: 1.35;
  letter-spacing: -0.02em;
  white-space: normal;
  word-break: break-all;
  overflow-wrap: anywhere;
}

.jackpot-stage__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  align-items: start;
}

.jackpot-panel-stack {
  display: grid;
  gap: 20px;
  align-content: start;
}

.jackpot-dual-board,
.jackpot-board-stack {
  display: grid;
  gap: 16px;
}

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

.jackpot-board-stack {
  grid-template-columns: 1fr;
}

.jackpot-mini-board {
  min-width: 0;
  display: grid;
  gap: 12px;
  padding: 16px;
  border-radius: 22px;
  border: 1px solid rgba(135, 191, 255, 0.12);
  background: rgba(255, 255, 255, 0.02);
}

.jackpot-panel--guide {
  align-self: start;
}

.mini-fomo {
  position: relative;
  display: grid;
  grid-template-rows: auto auto auto auto;
  align-content: start;
  min-height: 100%;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 190, 99, 0.12), transparent 34%),
    radial-gradient(circle at 100% 20%, rgba(109, 211, 255, 0.12), transparent 32%),
    var(--panel-strong);
}

.mini-fomo::after {
  content: "";
  position: absolute;
  inset: auto -60px -80px auto;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 123, 56, 0.18), transparent 68%);
  pointer-events: none;
}

.mini-fomo__header,
.mini-fomo__footer {
  position: relative;
  z-index: 1;
}

.mini-fomo__footer {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(240px, 0.65fr);
  gap: 16px;
  align-items: stretch;
  margin-top: 0;
}

.mini-fomo__countdown {
  position: relative;
  z-index: 1;
  margin: 18px 0 20px;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(52px, 8vw, 88px);
  line-height: 0.95;
  letter-spacing: -0.05em;
  font-weight: 700;
  color: #fff5d3;
  text-shadow: 0 0 26px rgba(255, 190, 99, 0.14);
}

.mini-fomo__sub {
  position: relative;
  z-index: 1;
  margin: -6px 0 0;
  color: var(--muted);
}

.mini-fomo__stats {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
  margin-bottom: 18px;
}

.mini-fomo__stat {
  padding: 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 190, 99, 0.14);
}

.mini-fomo__stat span {
  display: block;
  color: var(--muted);
  font-size: 13px;
}

.mini-fomo__stat strong {
  display: block;
  margin-top: 8px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 28px;
}

.mini-fomo__cta {
  display: flex;
  position: relative;
  z-index: 1;
  min-height: 100%;
  padding: 18px;
  border: 1px solid rgba(255, 190, 99, 0.2);
  border-radius: 18px;
  background:
    linear-gradient(145deg, rgba(255, 190, 99, 0.12), rgba(109, 211, 255, 0.05)),
    rgba(255, 255, 255, 0.035);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  flex-direction: column;
  justify-content: center;
  gap: 12px;
}

.mini-fomo__cta h3 {
  margin: 0;
  font-size: 22px;
}

.mini-fomo__cta p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.mini-fomo__pulse {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #fff5d3;
}

.mini-fomo__pulse::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--hot);
  box-shadow: 0 0 0 0 rgba(255, 123, 56, 0.45);
  animation: pulse 1.8s infinite;
}

.mini-fomo__timeline {
  display: grid;
  gap: 10px;
  margin-top: 0;
}

.mini-fomo__timeline-row {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  min-height: 52px;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(135, 191, 255, 0.1);
}

.mini-fomo__timeline-row strong {
  font-family: "Space Grotesk", sans-serif;
}

.mini-fomo__timeline-rank {
  font-family: "Space Grotesk", sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: #fff5d3;
}

.mini-fomo__timeline-address {
  min-width: 0;
  font-size: 16px;
  line-height: 1.12;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mini-fomo__timeline-amount {
  font-family: "Space Grotesk", sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: #ecf4ff;
  text-align: right;
  white-space: nowrap;
}

.mini-fomo__footer .trade-preview {
  display: grid;
  align-content: start;
  margin-top: 0;
}

.mini-fomo__footer .trade-preview__row {
  align-items: center;
}

.mini-fomo__footer .trade-preview span,
.mini-fomo__footer .trade-preview strong {
  white-space: nowrap;
}

.mini-fomo__footer .trade-preview strong {
  text-align: right;
}

.mini-fomo__footer .buy-actions {
  display: grid;
  align-content: stretch;
  margin-top: 0;
}

.mini-fomo__footer .action-btn {
  width: 100%;
  min-height: 52px;
}

.mini-fomo__epoch-board {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.mini-fomo__epoch-summary {
  margin: 0;
  white-space: normal;
  overflow-wrap: anywhere;
  line-height: 1.6;
}

.section-title--compact {
  align-items: center;
  margin-bottom: 0;
}

.section-title--compact h3 {
  margin: 0;
  font-size: 17px;
}

.feed-table--compact {
  margin-top: 0;
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 28px clamp(20px, 4vw, 56px) 36px;
}

.hero__backdrop {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, rgba(255, 123, 56, 0.08), transparent 30%),
    linear-gradient(300deg, rgba(109, 211, 255, 0.1), transparent 34%);
  pointer-events: none;
}

.topbar,
.hero-grid,
.content {
  position: relative;
  z-index: 1;
}

.topbar {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
  margin-bottom: 28px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 16px;
}

.brand__copy {
  min-width: 0;
}

.brand__mark {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  overflow: hidden;
}

.brand__mark:not(img) {
  border-radius: 18px;
  background: linear-gradient(145deg, var(--hot), #f8472a);
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: 28px;
  box-shadow: 0 16px 30px rgba(255, 123, 56, 0.25);
}

.brand__mark--logo {
  display: block;
  object-fit: cover;
  background: transparent;
  box-shadow: 0 14px 28px rgba(255, 166, 31, 0.34);
}

.brand h1,
.section-heading h2,
.section-title h2,
.section-title h3 {
  margin: 0;
}

.brand__copy h1 {
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.05;
}

.eyebrow {
  margin: 0 0 6px;
  color: var(--hot-2);
  font-family: "Space Grotesk", sans-serif;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.brand__copy .eyebrow {
  margin-bottom: 4px;
}

.lang-switcher {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 50;
  display: inline-flex;
  gap: 8px;
  padding: 8px;
  border: 1px solid rgba(135, 191, 255, 0.18);
  border-radius: 16px;
  background: rgba(6, 15, 29, 0.82);
  box-shadow: 0 18px 40px rgba(3, 8, 18, 0.35);
  backdrop-filter: blur(12px);
}

.lang-switcher--inline {
  position: static;
  top: auto;
  right: auto;
  z-index: auto;
  margin-left: 0;
  flex: 0 0 auto;
}

.lang-switcher button {
  border: 1px solid rgba(135, 191, 255, 0.18);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  border-radius: 10px;
  padding: 8px 12px;
  cursor: pointer;
  font: inherit;
}

.lang-switcher button.is-active {
  border-color: rgba(255, 190, 99, 0.4);
  background: linear-gradient(180deg, rgba(255, 123, 56, 0.24), rgba(255, 190, 99, 0.14));
  color: #fff2ca;
}

.topbar__status,
.section-title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.chip,
.tag,
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  font-size: 12px;
}

.nav-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 72px;
  padding: 9px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  text-decoration: none;
  transition: 0.2s ease;
}

.nav-pill.is-active {
  color: #fff6da;
  background: rgba(255, 123, 56, 0.14);
  border-color: rgba(255, 190, 99, 0.28);
}

.wallet-btn {
  background: transparent;
  border: 1px solid rgba(255, 190, 99, 0.34);
  border-radius: 999px;
  color: #fff5d3;
  padding: 10px 16px;
  cursor: pointer;
  font-weight: 700;
  touch-action: manipulation;
}

.wallet-btn:disabled,
.action-btn:disabled,
.asset-switcher__btn:disabled,
.preset-group button:disabled {
  opacity: 0.58;
  cursor: not-allowed;
}

.wallet-btn--ghost {
  background: rgba(255, 123, 56, 0.14);
}

.wallet-modal-open {
  overflow: hidden;
}

.wallet-modal {
  position: fixed;
  inset: 0;
  z-index: 60;
}

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

.wallet-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 10, 18, 0.68);
  backdrop-filter: blur(8px);
}

.wallet-modal__panel {
  position: relative;
  z-index: 1;
  width: min(560px, calc(100vw - 28px));
  margin: 12vh auto 0;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background:
    radial-gradient(circle at top, rgba(255, 190, 99, 0.08), transparent 46%),
    rgba(7, 15, 24, 0.96);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.34);
}

.wallet-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.wallet-modal__header h3 {
  margin: 0;
  font-size: 28px;
}

.wallet-modal__close {
  border: none;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-weight: 700;
}

.wallet-modal__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.wallet-modal__intro {
  display: grid;
  gap: 6px;
  margin-bottom: 14px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 190, 99, 0.18);
  border-radius: 18px;
  background: rgba(255, 190, 99, 0.08);
}

.wallet-modal__intro strong {
  color: #fff5d3;
  font-size: 15px;
}

.wallet-modal__intro span {
  color: var(--muted);
  line-height: 1.6;
  font-size: 14px;
}

.wallet-modal__actions {
  display: flex;
  justify-content: flex-start;
  margin-top: 14px;
}

.wallet-modal__utility {
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid rgba(135, 191, 255, 0.16);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  color: #f5f8ff;
  cursor: pointer;
  transition: border-color 0.18s ease, background 0.18s ease;
}

.wallet-modal__utility:hover {
  border-color: rgba(255, 190, 99, 0.36);
  background: rgba(255, 123, 56, 0.08);
}

.wallet-modal__option {
  display: grid;
  gap: 8px;
  align-content: start;
  min-height: 128px;
  padding: 18px;
  border: 1px solid rgba(135, 191, 255, 0.16);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.03);
  color: #f5f8ff;
  text-align: left;
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.wallet-modal__option:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 190, 99, 0.36);
  background: rgba(255, 123, 56, 0.08);
}

.wallet-modal__option strong {
  font-size: 20px;
}

.wallet-modal__option span {
  color: var(--muted);
  line-height: 1.55;
}

.wallet-modal__hint {
  margin: 16px 4px 0;
  color: var(--muted);
}

.wallet-modal__hint--warn {
  color: #fff5d3;
}

.wallet-modal__hint--error {
  color: #ffb3a1;
}

.launch-countdown-modal {
  position: fixed;
  inset: 0;
  z-index: 100100;
  pointer-events: none;
}

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

.launch-countdown-modal__backdrop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top, rgba(255, 190, 99, 0.18), transparent 28%),
    rgba(3, 8, 16, 0.82);
  backdrop-filter: blur(12px);
  pointer-events: none;
}

.launch-countdown-modal__panel {
  position: relative;
  z-index: 1;
  width: min(760px, calc(100vw - 28px));
  margin: 8vh auto 0;
  padding: 30px 28px 34px;
  border: 1px solid rgba(255, 190, 99, 0.22);
  border-radius: 32px;
  background:
    radial-gradient(circle at top, rgba(255, 123, 56, 0.16), transparent 44%),
    linear-gradient(180deg, rgba(9, 20, 36, 0.98), rgba(5, 12, 23, 0.98));
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.42);
  text-align: center;
  pointer-events: auto;
}

.launch-countdown-modal__eyebrow {
  margin: 0 0 12px;
  color: var(--hot-2);
  font-family: "Space Grotesk", sans-serif;
  font-size: 13px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.launch-countdown-modal__title {
  margin: 0;
  font-size: clamp(30px, 5vw, 56px);
  line-height: 1.08;
  color: #fff7df;
}

.launch-countdown-modal__timer {
  margin: 26px 0 18px;
  font-family: "Space Grotesk", "Noto Sans SC", sans-serif;
  font-size: clamp(68px, 16vw, 150px);
  font-weight: 700;
  line-height: 0.92;
  letter-spacing: -0.05em;
  color: #fff2ca;
  text-shadow: 0 0 32px rgba(255, 190, 99, 0.18);
}

.launch-countdown-modal__summary {
  margin: 0;
  font-size: clamp(20px, 3vw, 28px);
  line-height: 1.5;
  color: #f7fbff;
}

.launch-countdown-modal__hint {
  margin: 18px auto 0;
  max-width: 560px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
}

.launch-countdown-modal__actions {
  display: flex;
  justify-content: center;
  margin-top: 24px;
}

.chip--live,
.tag--warm {
  color: #fff7d4;
  background: rgba(255, 123, 56, 0.14);
  border-color: rgba(255, 190, 99, 0.32);
}

.tag--accent {
  color: #d9f5ff;
  background: rgba(109, 211, 255, 0.12);
}

.badge--onchain {
  color: #d8fff1;
  background: rgba(108, 245, 163, 0.12);
}

.badge--synced {
  color: #dff3ff;
  background: rgba(109, 211, 255, 0.14);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.85fr);
  gap: 20px;
}

.hero-side {
  display: grid;
  gap: 20px;
}

.card {
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--panel);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

.card--glow {
  background:
    radial-gradient(circle at 50% 12%, rgba(255, 190, 99, 0.12), transparent 42%),
    var(--panel-strong);
}

.hero-main {
  padding: clamp(24px, 4vw, 36px);
}

.hero-main__meta {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}

.hero-main__epoch {
  color: var(--muted);
  font-family: "Space Grotesk", sans-serif;
}

.countdown-wrap {
  margin: 24px 0 32px;
}

.countdown {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(64px, 11vw, 132px);
  line-height: 0.92;
  letter-spacing: -0.05em;
  font-weight: 700;
}

.countdown-sub,
.helper,
.hero-note,
.section-hint,
.summary-card__sub,
.metric-label,
.address-label,
.stat__label {
  color: var(--muted);
}

.jackpot {
  margin-top: 12px;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 700;
  color: #fff5d3;
}

.hero-note {
  max-width: 520px;
}

.last-player,
.viewer-card,
.ledger-card,
.summary-card {
  padding: 22px;
}

.address-row,
.table-card__row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.address-value {
  font-family: "Space Grotesk", sans-serif;
}

.metric-pair,
.viewer-grid,
.summary-grid,
.panel-grid,
.ledger-grid,
.stats-grid {
  display: grid;
  gap: 16px;
}

.metric-pair {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 18px;
}

.metric-value,
.stat__value,
.summary-card__value {
  display: block;
  margin-top: 6px;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
}

.metric-value {
  font-size: 24px;
}

.viewer-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 18px;
}

.content {
  padding: 0 clamp(20px, 4vw, 56px) 56px;
}

.panel-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 28px;
}

.stake-stage {
  margin-bottom: 28px;
}

.stake-stage .card-stack {
  width: 100%;
}

.liquidity-stage {
  margin-bottom: 28px;
}

.liquidity-stage .card-stack {
  width: 100%;
}

.panel-grid > .card {
  padding: 22px;
}

.card-stack {
  display: grid;
  gap: 20px;
  grid-template-columns: minmax(280px, 0.72fr) minmax(0, 1.28fr);
  align-items: start;
}

.card-stack > .card {
  padding: 22px;
}

.stake-side-column {
  grid-column: 1;
  display: grid;
  gap: 20px;
  align-content: start;
}

.card--overview {
  grid-column: auto;
}

.overview-actions {
  display: grid;
  gap: 14px;
  align-content: start;
  padding: 0 12px;
}

.overview-actions--stack {
  padding: 0;
}

.overview-actions--stack .buy-actions {
  margin-top: 0;
}

.overview-actions--stack .action-btn {
  width: 100%;
}

.card--stake-main {
  grid-column: 2;
}

.card--liquidity-main {
  grid-column: 2;
}

.card--full {
  grid-column: 1 / -1;
}

.overview-grid {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.stake-actions-layout {
  display: grid;
  grid-template-columns: minmax(220px, 0.68fr) minmax(0, 1.32fr);
  gap: 18px;
  margin-top: 18px;
}

.stake-actions-layout--single {
  grid-template-columns: minmax(0, 1fr);
}

.stake-action-list {
  display: grid;
  gap: 10px;
}

.stake-action-row {
  display: grid;
  grid-template-columns: minmax(118px, 0.72fr) minmax(0, 1.28fr);
  gap: 10px;
  align-items: stretch;
}

.stake-action-row .action-btn {
  min-height: 52px;
  justify-content: center;
  white-space: normal;
}

.stake-action-value {
  width: 100%;
  min-height: 52px;
  border: 1px solid rgba(255, 190, 99, 0.2);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.035);
  color: #fff5d3;
  padding: 12px 14px;
  font: 700 15px/1.2 "Space Grotesk", "Noto Sans SC", sans-serif;
  letter-spacing: 0.01em;
  outline: none;
}

.stake-action-value[readonly] {
  color: rgba(226, 236, 255, 0.92);
  cursor: default;
}

.stake-action-value--editable {
  border-color: rgba(109, 211, 255, 0.24);
  background: rgba(2, 8, 17, 0.2);
}

.stake-action-value--editable:focus {
  border-color: rgba(109, 211, 255, 0.58);
  box-shadow: 0 0 0 4px rgba(109, 211, 255, 0.12);
}

.stake-actions-main,
.stake-actions-side {
  display: grid;
  gap: 14px;
  align-content: start;
}

.stake-actions-main {
  padding: 16px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(135, 191, 255, 0.12);
}

.buy-actions--stack {
  grid-template-columns: 1fr;
  margin-top: 0;
}

.stake-epoch-note {
  margin: 2px 0 0;
  color: #fff5d3;
  line-height: 1.7;
}

.permission-banner {
  margin-top: 18px;
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid rgba(255, 190, 99, 0.22);
  background:
    linear-gradient(90deg, rgba(255, 123, 56, 0.12), rgba(109, 211, 255, 0.06)),
    rgba(255, 255, 255, 0.03);
}

.permission-banner strong {
  display: block;
  margin-bottom: 8px;
  color: #fff5d3;
}

.asset-switcher {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0 10px;
}

.wallet-inline {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 16px;
  margin: 18px 0 6px;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(135, 191, 255, 0.12);
}

.wallet-session-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 10px;
}

.wallet-status {
  margin-top: 6px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: #fff5d3;
}

.wallet-address {
  margin-top: 8px;
  color: var(--text);
  font-family: "Space Grotesk", sans-serif;
  word-break: break-all;
}

.wallet-address--invite {
  margin-top: 10px;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(109, 211, 255, 0.18);
  background:
    linear-gradient(135deg, rgba(109, 211, 255, 0.08), rgba(255, 123, 56, 0.08)),
    rgba(255, 255, 255, 0.03);
  color: #fff5d3;
  font-size: 15px;
  line-height: 1.5;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.invite-link-panel {
  min-width: 0;
}

.trade-runtime-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.runtime-pill {
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(135, 191, 255, 0.12);
}

.runtime-pill strong {
  display: block;
  margin-top: 8px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 18px;
}

.trade-status-card {
  margin-top: 18px;
  display: grid;
  gap: 10px;
  padding: 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(135, 191, 255, 0.12);
}

.trade-status-card__row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
}

.trade-status-card__row strong {
  font-family: "Space Grotesk", sans-serif;
  text-align: right;
  word-break: break-all;
}

.trade-rules-meta {
  margin-top: 0;
  margin-bottom: 18px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  padding: 14px 16px;
}

.trade-rules-meta .trade-status-card__row {
  display: grid;
  gap: 6px;
  align-content: start;
}

.trade-rules-meta .trade-status-card__row span {
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}

.trade-rules-meta .trade-status-card__row strong {
  text-align: left;
  line-height: 1.25;
}

.fomo-preview-panel {
  display: grid;
  gap: 12px;
  margin-top: 18px;
  padding: 16px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(135, 191, 255, 0.12);
}

.mono-link {
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px dashed rgba(135, 191, 255, 0.25);
}

.mono-link:hover {
  color: #fff5d3;
  border-bottom-color: rgba(255, 190, 99, 0.45);
}

.asset-switcher__btn,
.preset-group button {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  cursor: pointer;
  transition: 0.2s ease;
}

.asset-switcher__btn {
  padding: 12px 16px;
}

.asset-switcher__btn.is-active,
.preset-group button:hover {
  background: rgba(255, 123, 56, 0.18);
  border-color: rgba(255, 190, 99, 0.3);
}

.preset-group button.is-active {
  background: rgba(109, 211, 255, 0.14);
  border-color: rgba(109, 211, 255, 0.3);
}

.preset-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0;
}

.preset-group button {
  padding: 12px 18px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 15px;
  font-weight: 600;
  min-height: 44px;
}

.quick-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 16px;
  margin-top: -4px;
}

.quick-row__note {
  color: var(--muted);
  font-size: 13px;
}

.invite-link-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
  margin-top: 14px;
}

.inline-link-btn {
  border: 0;
  background: transparent;
  color: #d9f5ff;
  cursor: pointer;
  padding: 0;
  font: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.inline-link-btn:hover {
  color: #fff5d3;
}

.input-shell {
  display: grid;
  gap: 8px;
}

.input-shell input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(2, 8, 17, 0.55);
  color: var(--text);
  padding: 14px 16px;
  font-size: 16px;
}

.entry-flow {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.entry-flow__node {
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(109, 211, 255, 0.08);
  border: 1px solid rgba(109, 211, 255, 0.18);
}

.entry-flow__arrow {
  color: var(--hot-2);
  font-family: "Space Grotesk", sans-serif;
}

.trade-preview {
  margin-top: 18px;
  padding: 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(135, 191, 255, 0.12);
  display: grid;
  gap: 10px;
}

.trade-preview__row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
}

.invite-manager-panel {
  margin-top: 18px;
}

.invite-lookup-result {
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(135, 191, 255, 0.12);
  background: rgba(255, 255, 255, 0.025);
  color: #dbe9ff;
  font-size: 14px;
  line-height: 1.6;
  word-break: break-word;
}

.invite-lookup-result strong {
  color: #ffffff;
}

.invite-lookup-result--ok {
  border-color: rgba(120, 255, 208, 0.28);
  color: #d8fff1;
}

.invite-lookup-result--warn {
  border-color: rgba(255, 227, 138, 0.24);
  color: #fff5d3;
}

.invite-lookup-result--error {
  border-color: rgba(255, 146, 119, 0.26);
  color: #ffb3a1;
}

.buy-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.buy-actions--single {
  grid-template-columns: 1fr;
}

.action-btn--buy {
  background: linear-gradient(145deg, var(--hot), #f8472a);
  border-color: transparent;
  color: #fff;
  font-weight: 700;
}

.helper--strong {
  margin-top: 12px;
  color: #dbe9ff;
}

.helper--ok {
  color: #d8fff1;
}

.helper--warn {
  color: #fff5d3;
}

.helper--error {
  color: #ffb3a1;
}

.list-stack,
.feed-table {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.leader-item,
.feed-row {
  display: grid;
  grid-template-columns: 70px 1.4fr 1fr 1fr;
  gap: 12px;
  align-items: center;
  padding: 14px 16px;
  border: 1px solid rgba(135, 191, 255, 0.12);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.025);
}

.feed-row--invite {
  grid-template-columns: minmax(0, 2.3fr) minmax(110px, 0.82fr) minmax(110px, 0.82fr) minmax(110px, 0.82fr) minmax(110px, 0.9fr);
  align-items: start;
}

.feed-row--jackpot {
  grid-template-columns: minmax(0, 2.05fr) minmax(205px, 1.34fr) minmax(126px, 0.92fr) minmax(118px, 0.84fr);
  align-items: center;
  column-gap: 18px;
}

.feed-row--jackpot-history {
  grid-template-columns: minmax(0, 2.4fr) minmax(120px, 0.95fr) minmax(140px, 1fr) minmax(140px, 1fr);
  align-items: start;
}

body[data-page="trade"] .feed-row--trade-epoch {
  grid-template-columns: minmax(0, 2fr) minmax(150px, 1.18fr) minmax(104px, 0.8fr) minmax(110px, 0.9fr);
  gap: 10px;
  padding: 11px 12px;
  align-items: center;
}

body[data-page="trade"] .feed-row--trade-epoch > strong,
body[data-page="trade"] .feed-row--trade-epoch > span {
  min-width: 0;
  white-space: nowrap;
  line-height: 1.15;
}

body[data-page="trade"] .feed-row--trade-epoch > strong:nth-child(n + 2),
body[data-page="trade"] .feed-row--trade-epoch > span:nth-child(n + 2) {
  text-align: right;
}

body[data-page="trade"] .feed-row--trade-epoch > strong {
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

body[data-page="trade"] .feed-row--trade-epoch .feed-row__address {
  min-width: 0;
}

body[data-page="trade"] .feed-row--trade-epoch .feed-row__address--with-copy {
  min-width: 0;
  width: auto;
  max-width: 100%;
}

body[data-page="trade"] .feed-row--trade-epoch .feed-row__address-text {
  font-size: 13px;
}

body[data-page="trade"] .feed-row--trade-epoch .feed-row__copy-btn {
  min-width: 28px;
  height: 18px;
  padding: 0 5px;
  font-size: 9px;
}

.feed-row--fomo-preview {
  grid-template-columns: 84px minmax(88px, 0.8fr) minmax(160px, 1.25fr) minmax(88px, 0.8fr) minmax(160px, 1.25fr);
}

.leader-item--guide {
  grid-template-columns: 70px minmax(120px, 0.9fr) minmax(0, 1.9fr) minmax(120px, 0.8fr);
  align-items: start;
}

.leader-item--guide-rich {
  align-items: stretch;
}

.guide-rich-copy {
  display: grid;
  gap: 10px;
  line-height: 1.7;
}

.guide-rich-copy strong {
  font-size: 15px;
  color: #fff5d3;
}

.guide-rich-copy p {
  margin: 0;
  white-space: normal;
}

.guide-rich-copy ul {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 6px;
}

.guide-rich-copy li {
  line-height: 1.65;
}

.site-contact-footer {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(0, 1.6fr);
  gap: 24px;
  margin-top: 28px;
  padding: 26px 28px;
  border-top: 1px solid rgba(255, 184, 74, 0.14);
  border-bottom: 1px solid rgba(255, 184, 74, 0.08);
  background:
    radial-gradient(circle at top left, rgba(255, 166, 0, 0.1), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.01));
}

.site-contact-footer__brand {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 16px;
  align-content: start;
}

.site-contact-footer__brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: 24px;
  color: #fff7db;
  background: linear-gradient(145deg, #ffb347, #ff8a00);
  box-shadow: 0 10px 28px rgba(255, 138, 0, 0.24);
}

.site-contact-footer__brand-copy strong {
  display: block;
  margin-bottom: 14px;
  color: #ffbf54;
  font-family: "Space Grotesk", sans-serif;
  font-size: 20px;
  letter-spacing: 0.28em;
}

.site-contact-footer__brand-copy p,
.site-contact-footer__intro p {
  margin: 0;
  color: #d4c4a2;
  line-height: 1.7;
}

.site-contact-footer__links {
  display: grid;
  gap: 14px;
}

.site-contact-footer__intro strong {
  display: block;
  margin-bottom: 8px;
  color: #fff4d1;
  font-size: 24px;
}

.site-contact-footer__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.site-contact-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 14px;
  border: 1px solid rgba(255, 184, 74, 0.14);
  background: rgba(255, 255, 255, 0.025);
  color: #efe2c6;
  text-decoration: none;
  transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease;
}

.site-contact-chip:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 184, 74, 0.3);
  background: rgba(255, 184, 74, 0.08);
}

.site-contact-chip__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  color: #d5c5ab;
  font-family: "Space Grotesk", sans-serif;
  font-size: 16px;
  line-height: 1;
}

.site-contact-chip--button {
  cursor: pointer;
  font: inherit;
}

.site-contact-chip__copy-wrap {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.site-contact-chip__copy-value {
  color: #ffcf78;
  font-family: "Space Grotesk", sans-serif;
}

.site-contact-chip__copy-action {
  color: #bfa981;
  font-size: 13px;
}

.leader-item--stake,
.leader-item--dividend {
  grid-template-columns: 76px minmax(0, 1.7fr) minmax(120px, 1fr) minmax(120px, 1fr);
}

.leader-item--board-head {
  background: rgba(109, 211, 255, 0.06);
  border-color: rgba(109, 211, 255, 0.16);
}

.leader-item--board-head strong {
  color: #dff4ff;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.leader-item__address {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 600;
  min-width: 0;
}

.leader-item__rank {
  justify-self: start;
  color: #fff5d3;
}

.leader-item__address .feed-row__address--with-copy {
  width: 100%;
}

.feed-row__address {
  word-break: break-all;
  overflow-wrap: anywhere;
  line-height: 1.45;
}

.feed-row__address--with-copy {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0;
  width: auto;
  max-width: 100%;
  justify-self: start;
  min-height: 24px;
  word-break: normal;
  overflow-wrap: normal;
}

.feed-row__address-text {
  flex: 0 1 auto;
  min-width: 0;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.feed-row__copy-btn {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 22px;
  padding: 0 7px;
  border-radius: 999px;
  border: 1px solid rgba(255, 190, 99, 0.25);
  background: rgba(255, 255, 255, 0.05);
  color: #fff5d3;
  font-size: 11px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
  margin-left: -1px;
}

.feed-row__copy-btn:hover {
  background: rgba(255, 190, 99, 0.12);
  border-color: rgba(255, 190, 99, 0.45);
  transform: translateY(-1px);
}

.feed-row__copy-btn:active {
  transform: translateY(0);
}

.jackpot-shell .feed-row--jackpot > strong:nth-child(n + 2),
.jackpot-shell .feed-row--jackpot > span:nth-child(n + 2),
.jackpot-shell .feed-row--jackpot-history > strong:nth-child(n + 2),
.jackpot-shell .feed-row--jackpot-history > span:nth-child(n + 2) {
  white-space: nowrap;
  text-align: left;
  min-width: 0;
}

.leader-item strong,
.feed-row strong {
  font-family: "Space Grotesk", sans-serif;
}

.section-block {
  margin-bottom: 28px;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: end;
  margin-bottom: 16px;
}

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

.stats-grid {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  margin-top: 18px;
}

.invite-stats-grid .stat__value {
  font-size: clamp(20px, 1.9vw, 30px);
  line-height: 1.08;
  word-break: break-word;
}

.stat {
  padding: 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.03);
}

.stake-active-meta {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.stake-active-meta--ready {
  color: #fff5d3;
}

.stat__value {
  font-size: 24px;
}

.table-card {
  margin-top: 18px;
  border-top: 1px solid rgba(135, 191, 255, 0.12);
  padding-top: 16px;
  display: grid;
  gap: 12px;
}

.healthy {
  color: var(--green);
}

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

.summary-card__value {
  font-size: 28px;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 123, 56, 0.45);
  }

  70% {
    box-shadow: 0 0 0 14px rgba(255, 123, 56, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(255, 123, 56, 0);
  }
}

.page-shell--admin .hero,
.admin-header {
  padding: 28px clamp(20px, 4vw, 56px) 18px;
}

.brand__mark--admin {
  background: linear-gradient(145deg, #2ca5ff, #1571d8);
  box-shadow: 0 16px 30px rgba(44, 165, 255, 0.2);
}

.admin-content {
  padding-top: 18px;
}

.admin-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-bottom: 24px;
}

.admin-grid--hero {
  align-items: stretch;
}

.admin-hero,
.admin-ops-owners,
.admin-panel {
  padding: 22px;
}

.admin-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.stat--warn {
  border: 1px solid rgba(255, 190, 99, 0.18);
}

.stat--ok {
  border: 1px solid rgba(108, 245, 163, 0.18);
}

.admin-alert-list,
.admin-data-list,
.ops-feed {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.admin-alert,
.admin-data-row,
.ops-feed__row,
.notice-preview {
  padding: 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(135, 191, 255, 0.12);
}

.admin-alert p,
.notice-preview p {
  margin-bottom: 0;
  color: var(--muted);
}

.admin-alert--critical {
  border-color: rgba(255, 123, 56, 0.28);
  background: rgba(255, 123, 56, 0.08);
}

.admin-alert--warning {
  border-color: rgba(255, 190, 99, 0.22);
}

.admin-alert--info {
  border-color: rgba(109, 211, 255, 0.22);
}

.admin-action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.action-btn {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  min-height: 44px;
  padding: 12px 16px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  touch-action: manipulation;
  transition: transform 0.14s ease, border-color 0.14s ease, background 0.14s ease, box-shadow 0.14s ease, opacity 0.14s ease;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

.action-btn:not(:disabled):active,
.action-btn[data-primed="true"] {
  transform: translateY(1px) scale(0.992);
  border-color: rgba(109, 211, 255, 0.34);
  background: rgba(109, 211, 255, 0.14);
}

.action-btn[aria-busy="true"] {
  box-shadow: 0 0 0 1px rgba(109, 211, 255, 0.22), 0 10px 24px rgba(2, 8, 17, 0.18);
}

.action-btn:disabled,
.action-btn.action-btn--disabled {
  color: rgba(226, 236, 255, 0.42);
  background: linear-gradient(180deg, rgba(124, 132, 142, 0.14), rgba(91, 98, 108, 0.1));
  border-color: rgba(148, 163, 184, 0.18);
  box-shadow: none;
  filter: grayscale(0.45) saturate(0.55);
  transform: none;
}

.action-btn--primary:disabled,
.action-btn--buy:disabled,
.action-btn--primary.action-btn--disabled,
.action-btn--buy.action-btn--disabled {
  background: linear-gradient(180deg, rgba(124, 132, 142, 0.16), rgba(91, 98, 108, 0.12));
  border-color: rgba(148, 163, 184, 0.2);
}

.action-btn--primary {
  background: rgba(109, 211, 255, 0.12);
  border-color: rgba(109, 211, 255, 0.24);
}

.action-btn--danger {
  background: rgba(255, 123, 56, 0.12);
  border-color: rgba(255, 123, 56, 0.28);
}

.text-area,
.select-shell {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(2, 8, 17, 0.55);
  color: var(--text);
  padding: 14px 16px;
  font-size: 15px;
  font-family: inherit;
}

.text-area {
  min-height: 120px;
  resize: vertical;
}

.notice-preview__eyebrow,
.ops-feed__time,
.ops-feed__type {
  color: var(--hot-2);
  font-family: "Space Grotesk", sans-serif;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.ops-feed__row {
  display: grid;
  grid-template-columns: 90px 90px 1fr;
  gap: 14px;
  align-items: start;
}

@media (max-width: 1080px) {
  .hero-grid,
  .panel-grid,
  .ledger-grid,
  .summary-grid,
  .admin-grid,
  .admin-kpis,
  .trade-hero,
  .trade-grid,
  .jackpot-stage__grid,
  .jackpot-hero-grid,
  .jackpot-dual-board,
  .jackpot-board-stack,
  .mini-fomo__stats,
  .whitepaper-grid,
  .whitepaper-kpis,
  .whitepaper-footer,
  .whitepaper-hero,
  .whitepaper-manifesto__grid,
  .whitepaper-credo__metrics {
    grid-template-columns: 1fr;
  }

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

  .jackpot-trend__chart-card {
    padding: 16px;
  }

  .stake-action-row {
    grid-template-columns: minmax(104px, 0.74fr) minmax(0, 1.26fr);
  }

  .leader-item--stake,
  .leader-item--dividend {
    grid-template-columns: 68px minmax(0, 1.6fr) minmax(104px, 1fr) minmax(104px, 1fr);
  }
}

@media (max-width: 720px) {
  .site-shell,
  .jackpot-shell {
    padding: 22px 16px 40px;
  }

  .site-header,
  .jackpot-topbar,
  .topbar,
  .section-heading,
  .hero-main__meta,
  .address-row,
  .table-card__row,
  .ops-feed__row {
    flex-direction: column;
    align-items: flex-start;
  }

  .metric-pair,
  .viewer-grid,
  .stats-grid,
  .trade-runtime-grid,
  .wallet-inline,
  .buy-actions,
  .stake-actions-layout,
  .card-stack {
    grid-template-columns: 1fr;
  }

  .card--overview,
  .card--stake-main,
  .card--liquidity-main,
  .card--full {
    grid-column: 1 / -1;
  }

  .site-actions {
    width: 100%;
  }

  .site-actions .lang-switcher--inline {
    margin-left: auto;
  }

  .site-actions .wallet-btn {
    width: 100%;
    justify-content: center;
    min-height: 48px;
  }

  .stake-action-row {
    grid-template-columns: minmax(96px, 0.78fr) minmax(0, 1.22fr);
    gap: 8px;
  }

  .stake-action-row .action-btn,
  .stake-action-value {
    min-height: 50px;
    border-radius: 14px;
    font-size: 14px;
    padding: 10px 12px;
  }

  .user-tab {
    min-width: calc(50% - 5px);
    min-height: 52px;
    padding: 12px 14px;
  }

  .wallet-modal__grid {
    grid-template-columns: 1fr;
  }

  .wallet-modal__actions {
    justify-content: stretch;
  }

  .wallet-modal__utility {
    width: 100%;
  }

  .wallet-modal__option {
    min-height: 108px;
  }

  .wallet-modal__panel {
    margin-top: 8vh;
    width: min(560px, calc(100vw - 20px));
    padding: 18px;
  }

  .launch-countdown-modal__panel {
    width: min(100vw - 20px, 720px);
    margin-top: 10vh;
    padding: 24px 18px 26px;
    border-radius: 26px;
  }

  .launch-countdown-modal__summary {
    font-size: 19px;
  }

  .launch-countdown-modal__hint {
    font-size: 14px;
  }

  .mini-fomo__timeline-row {
    grid-template-columns: 46px minmax(0, 1fr) auto;
    gap: 10px;
    padding: 12px;
    align-items: center;
  }

  .mini-fomo__footer {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .mini-fomo__timeline-rank {
    font-size: 15px;
  }

  .mini-fomo__timeline-address {
    font-size: 14px;
  }

  .mini-fomo__timeline-amount {
    font-size: 13px;
  }

  .mini-fomo__footer .trade-preview span,
  .mini-fomo__footer .trade-preview strong {
    white-space: normal;
  }

  .whitepaper-hero,
  .whitepaper-section,
  .whitepaper-note,
  .whitepaper-kpi,
  .whitepaper-footer__card {
    padding: 18px;
  }

  .whitepaper-hero__title {
    font-size: 30px;
  }

  .whitepaper-kpi__value {
    font-size: 22px;
  }

  .whitepaper-timeline__item {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .site-contact-footer {
    grid-template-columns: 1fr;
    padding: 22px 18px;
  }

  .site-contact-footer__brand {
    grid-template-columns: 44px minmax(0, 1fr);
  }

  .site-contact-footer__intro strong {
    font-size: 20px;
  }

  .site-contact-chip {
    width: 100%;
    justify-content: flex-start;
  }

  .leader-item,
  .feed-row {
    grid-template-columns: 1fr;
  }

  .jackpot-mini-board {
    padding: 12px;
    gap: 10px;
  }

  .jackpot-shell .feed-row--jackpot,
  .jackpot-shell .feed-row--jackpot-history {
    grid-template-columns: minmax(0, 1.46fr) minmax(108px, 1.16fr) minmax(64px, 0.7fr) minmax(74px, 0.78fr);
    gap: 8px;
    padding: 10px 10px;
    align-items: center;
  }

  .jackpot-shell .feed-row--jackpot strong,
  .jackpot-shell .feed-row--jackpot-history strong,
  .jackpot-shell .feed-row--jackpot span,
  .jackpot-shell .feed-row--jackpot-history span {
    font-size: 12px;
    line-height: 1.18;
    min-width: 0;
  }

  .jackpot-shell .feed-row--jackpot > strong:nth-child(2),
  .jackpot-shell .feed-row--jackpot > span:nth-child(2) {
    white-space: nowrap;
  }

  .jackpot-shell .feed-row--jackpot > span:not(.feed-row__address),
  .jackpot-shell .feed-row--jackpot-history > span:not(.feed-row__address),
  .jackpot-shell .feed-row--jackpot > strong:not(:first-child),
  .jackpot-shell .feed-row--jackpot-history > strong:not(:first-child) {
    text-align: right;
  }

  .jackpot-shell .feed-row__address--with-copy {
    min-height: 24px;
    align-items: center;
    gap: 0;
    width: auto;
    max-width: 100%;
  }

  .jackpot-shell .feed-row__address-text {
    display: inline-block;
    max-width: 100%;
    font-size: 12px;
    line-height: 1.1;
  }

  .jackpot-shell .feed-row__copy-btn {
    min-width: 24px;
    height: 16px;
    padding: 0 4px;
    font-size: 8px;
    margin-left: -1px;
  }

  .jackpot-shell .feed-row__copy-btn:hover,
  .jackpot-shell .feed-row__copy-btn:active {
    transform: none;
  }

  body[data-page="trade"] .mini-fomo__epoch-board {
    gap: 10px;
  }

  body[data-page="trade"] .section-title--compact h3 {
    font-size: 14px;
  }

  body[data-page="trade"] .feed-table--compact {
    gap: 8px;
  }

  body[data-page="trade"] .feed-row--trade-epoch {
    grid-template-columns: minmax(0, 1.45fr) minmax(88px, 1fr) minmax(62px, 0.68fr) minmax(72px, 0.78fr);
    gap: 6px;
    padding: 9px 8px;
  }

  body[data-page="trade"] .feed-row--trade-epoch > strong,
  body[data-page="trade"] .feed-row--trade-epoch > span {
    font-size: 11px;
  }

  body[data-page="trade"] .feed-row--trade-epoch .feed-row__address--with-copy {
    min-height: 20px;
  }

  body[data-page="trade"] .feed-row--trade-epoch .feed-row__address-text {
    font-size: 11px;
    line-height: 1.05;
  }

  body[data-page="trade"] .feed-row--trade-epoch .feed-row__copy-btn {
    min-width: 20px;
    height: 14px;
    padding: 0 3px;
    font-size: 7px;
    margin-left: -1px;
  }

  body[data-page="trade"] .feed-row--trade-epoch .feed-row__copy-btn:hover,
  body[data-page="trade"] .feed-row--trade-epoch .feed-row__copy-btn:active {
    transform: none;
  }

  .trade-rules-meta {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    padding: 12px;
  }

  .trade-rules-meta .trade-status-card__row {
    gap: 4px;
  }

  .trade-rules-meta .trade-status-card__row span,
  .trade-rules-meta .trade-status-card__row strong,
  .trade-rules-meta .trade-status-card__row a {
    font-size: 11px;
  }

  .leader-item--stake,
  .leader-item--dividend {
    grid-template-columns: 52px minmax(0, 1.35fr) minmax(82px, 0.9fr) minmax(82px, 0.9fr);
    gap: 8px;
    padding: 10px;
  }

  .leader-item--board-head strong,
  .leader-item--stake span,
  .leader-item--stake strong,
  .leader-item--dividend span,
  .leader-item--dividend strong {
    font-size: 11px;
    line-height: 1.2;
  }

  .leader-item__rank {
    text-align: left;
  }

  .jackpot-panel--trend {
    padding: 18px;
  }

  .jackpot-trend__header,
  .jackpot-trend__row-head,
  .jackpot-trend__row-meta {
    flex-direction: column;
    align-items: flex-start;
  }

  .jackpot-trend__meta {
    justify-content: flex-start;
  }

  .jackpot-trend__toolbar,
  .jackpot-trend__controls {
    width: 100%;
  }

  .jackpot-trend__controls {
    gap: 8px;
  }

  .jackpot-trend__control {
    flex: 1 1 calc(50% - 8px);
    min-width: 0;
  }

  .jackpot-trend__control--fullscreen {
    flex-basis: 100%;
  }

  .jackpot-trend__summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .jackpot-trend__stat {
    padding: 12px;
  }

  .jackpot-trend__stat span {
    font-size: 11px;
    line-height: 1.3;
  }

  .jackpot-trend__stat strong {
    margin-top: 6px;
    font-size: clamp(18px, 5.2vw, 24px);
    line-height: 1.12;
  }

  .jackpot-trend__stat small {
    margin-top: 6px;
    font-size: 10px;
    line-height: 1.35;
  }

  .jackpot-trend__chart-card {
    padding: 10px;
  }

  .jackpot-trend__floating-fullscreen {
    display: inline-flex;
    top: 10px;
    right: 10px;
    min-height: 30px;
    padding: 0 10px;
    font-size: 10px;
  }

  .jackpot-trend__yheads {
    margin-bottom: 6px;
    font-size: 11px;
  }

  .jackpot-trend__grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .jackpot-trend__canvas-wrap {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }

  .jackpot-trend__canvas {
    aspect-ratio: 1 / 1.26;
    min-height: 420px;
    padding: 12px 38px;
  }

  .jackpot-trend__scale {
    display: none;
  }

  .jackpot-trend__scale-overlay {
    display: flex;
  }

  .jackpot-trend__scale-overlay span {
    max-width: 64px;
    font-size: 9px;
    white-space: nowrap;
  }

  .jackpot-trend__legend {
    gap: 8px 12px;
    margin-top: 8px;
  }

  .jackpot-trend__legend-item,
  .jackpot-trend__legend-note {
    font-size: 11px;
    line-height: 1.35;
  }

  .jackpot-trend__legend-note {
    display: none;
  }

  .jackpot-trend__tooltip {
    min-width: 164px;
    max-width: calc(100% - 28px);
    padding: 10px 12px;
    font-size: 11px;
    z-index: 5;
  }

  .jackpot-trend__tooltip strong,
  .jackpot-trend__tooltip-row {
    font-size: 11px;
  }

  .jackpot-trend__hover-guide,
  .jackpot-trend__hover-dot {
    display: block;
  }

  .jackpot-trend__row {
    padding: 14px;
  }

  .jackpot-trend__row-value {
    text-align: left;
    font-size: 20px;
  }

  .jackpot-trend__spark {
    margin-top: 10px;
    padding: 8px 8px 4px;
  }

  .jackpot-trend__axis {
    margin-top: 10px;
    gap: 6px;
  }

  .jackpot-trend__axis-chip {
    min-height: 24px;
    padding: 0 8px;
    font-size: 11px;
  }

  .jackpot-trend__chart-card:fullscreen,
  .jackpot-trend__chart-card.is-mobile-fullscreen {
    padding: 10px;
  }

  .jackpot-trend__chart-card:fullscreen .jackpot-trend__floating-fullscreen,
  .jackpot-trend__chart-card.is-mobile-fullscreen .jackpot-trend__floating-fullscreen {
    top: 12px;
    right: 12px;
  }

  .jackpot-trend__chart-card:fullscreen .jackpot-trend__canvas,
  .jackpot-trend__chart-card.is-mobile-fullscreen .jackpot-trend__canvas {
    aspect-ratio: auto;
    min-height: min(88dvh, 760px);
    padding: 12px 40px;
  }

  .trade-preview__row {
    flex-direction: column;
    align-items: flex-start;
  }

  .trade-status-card__row {
    flex-direction: column;
    align-items: flex-start;
  }

  .trade-status-card__row strong,
  .wallet-address,
  .feed-row,
  .leader-item {
    width: 100%;
  }
}

a,
button,
input,
select,
textarea {
  outline-offset: 3px;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid rgba(109, 211, 255, 0.82);
  box-shadow: 0 0 0 5px rgba(109, 211, 255, 0.14);
}

.user-tab,
.wallet-btn,
.action-btn,
.asset-switcher__btn,
.preset-group button,
.jackpot-trend__control,
.inline-link-btn {
  -webkit-tap-highlight-color: transparent;
}

.user-tab:hover,
.wallet-btn:hover,
.action-btn:not(:disabled):hover,
.asset-switcher__btn:not(:disabled):hover,
.preset-group button:not(:disabled):hover,
.jackpot-trend__control:not(:disabled):hover,
.inline-link-btn:not(:disabled):hover {
  border-color: rgba(109, 211, 255, 0.34);
  background-color: rgba(109, 211, 255, 0.08);
}

.wallet-btn:disabled,
.action-btn:disabled,
.asset-switcher__btn:disabled,
.preset-group button:disabled,
.jackpot-trend__control:disabled {
  filter: saturate(0.7);
}

.wallet-address,
.mono-link,
.stat__value,
.jackpot-card__address,
.trade-preview__row strong,
.trade-status-card__row strong {
  overflow-wrap: anywhere;
}

.input-shell input,
.text-area,
.select-shell {
  min-height: 48px;
}

.input-shell input:focus,
.text-area:focus,
.select-shell:focus {
  border-color: rgba(109, 211, 255, 0.42);
  background: rgba(3, 12, 24, 0.72);
}

@media (max-width: 720px) {
  .site-header,
  .jackpot-topbar {
    gap: 16px;
  }

  .brand {
    width: 100%;
  }

  .brand__copy h1 {
    font-size: 26px;
  }

  .user-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-flow: row;
    grid-auto-columns: initial;
    overflow: visible;
    gap: 10px;
    padding-bottom: 0;
    scroll-snap-type: none;
  }

  .user-tab {
    min-width: 0;
    justify-content: center;
    scroll-snap-align: unset;
    white-space: nowrap;
  }

  .site-actions {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
  }

  .site-actions .wallet-btn {
    width: auto;
    min-width: 0;
  }

  .site-actions .lang-switcher--inline {
    justify-self: end;
    margin-left: 0;
  }

  .preset-group,
  .asset-switcher {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .preset-group button,
  .asset-switcher__btn {
    width: 100%;
  }
}

@media (max-width: 720px) {
  .user-tabs,
  .user-tabs.user-tabs--compact {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-flow: row;
    grid-auto-columns: initial;
    overflow: visible;
    gap: 10px;
    padding-bottom: 0;
    scroll-snap-type: none;
  }

  .user-tabs .user-tab {
    width: 100%;
    min-width: 0;
    justify-content: center;
    scroll-snap-align: unset;
    white-space: nowrap;
  }

  .jackpot-topbar {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }

  .jackpot-topbar .user-tabs.user-tabs--compact {
    width: 100%;
    margin-top: 0;
    margin-bottom: 24px;
  }

  .jackpot-topbar .user-tabs.user-tabs--compact .user-tab {
    min-height: 54px;
    padding: 12px 14px;
    font-size: 16px;
  }
}
