:root {
  --bg: #f7f8f2;
  --surface: #ffffff;
  --ink: #070707;
  --muted: #6b6b66;
  --soft: #eceee6;
  --card: #101010;
  --card-2: #151515;
  --border: #202020;
  --light-border: #dedfd8;
  --lime: #ccff00;
  --success: #8cff5e;
  --danger: #ff6464;
  --radius-nav: 24px;
  --radius-card: 28px;
  --radius-input: 20px;
  --ease: cubic-bezier(0.19, 1, 0.22, 1);
  font-family: "Space Grotesk", "Satoshi", "Inter", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--ink);
}

body {
  letter-spacing: 0;
}

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

button {
  font: inherit;
}

.announcement {
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 8px 20px;
  background: #070707;
  color: #fafafa;
  font-size: 15px;
}

.announcement a {
  color: var(--lime);
  font-weight: 700;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 32px;
  min-height: 96px;
  padding: 0 clamp(24px, 7vw, 144px);
  border-bottom: 1px solid var(--light-border);
  background: rgba(247, 248, 242, 0.94);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  width: fit-content;
  font-size: 28px;
  font-weight: 700;
}

.brand-mark {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  clip-path: polygon(0 0, 88% 0, 100% 18%, 100% 100%, 12% 100%, 0 82%);
  background: #070707;
}

.brand img {
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.page-nav {
  display: flex;
  align-items: center;
  gap: 34px;
  color: var(--muted);
  font-size: 18px;
  font-weight: 500;
}

.page-nav a {
  position: relative;
  transition: color 220ms var(--ease);
}

.page-nav a:hover,
.page-nav a.active {
  color: var(--ink);
}

.page-nav a.active::after {
  content: "↗";
  position: absolute;
  top: -13px;
  right: -16px;
  color: var(--lime);
  font-size: 12px;
}

.button {
  min-height: 58px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 28px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 220ms var(--ease), border-color 220ms var(--ease), background 220ms var(--ease);
}

.button:hover,
.choice-row button:hover,
.confirm:hover {
  transform: translateY(-2px);
  border-color: var(--lime);
}

.button:disabled {
  cursor: wait;
  opacity: 0.64;
}

.button.connected {
  position: relative;
  overflow: hidden;
  background: var(--lime);
  color: #070707;
  border-color: var(--lime);
}

/* Reveal a clear "Disconnect" affordance when hovering the connected address. */
.button.connected::after {
  content: "Disconnect";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border-radius: inherit;
  background: var(--danger);
  color: #fff;
  opacity: 0;
  transition: opacity 200ms var(--ease);
}

.button.connected:hover {
  border-color: var(--danger);
  transform: none;
}

.button.connected:hover::after {
  opacity: 1;
}

.button.dark,
.button.lime,
.confirm {
  background: var(--ink);
  color: #fafafa;
}

.button.lime {
  background: var(--lime);
  color: #070707;
  border-color: var(--lime);
}

.button.light {
  background: var(--surface);
  border-color: var(--light-border);
}

.header-actions {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.x-link {
  width: 58px;
  height: 58px;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  font-size: 18px;
  font-weight: 800;
  transition: transform 220ms var(--ease), border-color 220ms var(--ease), background 220ms var(--ease);
}

.x-link:hover {
  transform: translateY(-2px);
  border-color: var(--lime);
  background: var(--lime);
}

.cut {
  border-radius: 999px;
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 50%, calc(100% - 14px) 100%, 0 100%);
}

.cut-card {
  border-radius: var(--radius-card);
  clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 18px 100%, 0 calc(100% - 18px));
}

.landing-page {
  min-height: 100svh;
  overflow-x: hidden;
}

.page-deck {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: clamp(72px, 9vw, 150px);
  padding: 24px 0 64px;
}

.page {
  position: relative;
  width: min(1720px, calc(100vw - 96px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(420px, 0.82fr);
  align-items: center;
  gap: clamp(48px, 6vw, 120px);
  padding: 48px 0;
  scroll-margin-top: 150px;
}

.hero-copy,
.page-copy,
.section-copy {
  max-width: 760px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 24px;
  color: var(--ink);
  font-size: 18px;
  font-weight: 700;
}

.eyebrow span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--lime);
}

h1,
h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(64px, 5.4vw, 92px);
  line-height: 0.98;
  font-weight: 600;
  letter-spacing: 0;
}

h2 {
  font-size: clamp(52px, 4.8vw, 76px);
}

.lede,
.body-copy {
  margin: 28px 0 0;
  color: #242424;
  font-size: clamp(20px, 1.5vw, 24px);
  line-height: 1.55;
}

.body-copy {
  color: var(--muted);
  font-size: 20px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 36px;
}

.live-card,
.round-panel,
.trade-preview {
  border: 1px solid var(--border);
  background: var(--card);
  color: #fafafa;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.08);
}

.live-card,
.round-panel {
  min-height: 600px;
  padding: 32px;
}

.live-top,
.round-header,
.price-row,
.participants,
.preview-head,
.market-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.live-top span,
.round-header span,
.round-meta span,
.integrity-row span,
.side-copy span,
.price-row span,
.participants span,
.preview-head span,
.quote-grid span,
.battle-split span {
  color: #9a9a9a;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}

.live-top strong,
.round-header strong {
  display: block;
  margin-top: 8px;
  font-size: 54px;
  line-height: 0.9;
}

.countdown,
.round-state {
  padding: 12px 16px;
  border: 1px solid #2a2a2a;
  border-radius: var(--radius-input);
  color: var(--lime);
  font-weight: 700;
}

.round-meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 28px;
}

.round-meta div {
  min-height: 116px;
  padding: 18px;
  border: 1px solid #202020;
  border-radius: 24px;
  background: var(--card-2);
}

.round-meta b {
  display: block;
  margin-top: 16px;
  color: #fafafa;
  font-size: 24px;
}

.side-balance {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  margin-top: 30px;
}

.side-copy b {
  display: block;
  margin-top: 8px;
  font-size: 54px;
}

.side-copy:first-child b {
  color: var(--success);
}

.side-copy:last-child b {
  color: var(--danger);
}

.align-right {
  text-align: right;
}

.price-row {
  margin-top: 34px;
  padding: 22px 0;
  border-top: 1px solid #202020;
  border-bottom: 1px solid #202020;
}

.price-row strong {
  font-size: 32px;
}

.battle-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 24px;
}

.battle-split article {
  padding: 22px;
  border: 1px solid #202020;
  border-radius: 24px;
  background: var(--card-2);
}

.battle-split b {
  display: block;
  margin-top: 10px;
  font-size: 48px;
}

.battle-split article:first-child b {
  color: var(--success);
}

.battle-split article:last-child b {
  color: var(--danger);
}

.progress {
  height: 10px;
  margin-top: 26px;
  border-radius: 999px;
  background: #242424;
  overflow: hidden;
}

.progress i {
  display: block;
  width: var(--w);
  height: 100%;
  border-radius: 999px;
  background: var(--lime);
}

.mini-chart,
.panel-chart {
  margin-top: 26px;
  padding: 24px;
  border: 1px solid #202020;
  border-radius: 24px;
  background: #0c0c0c;
}

.mini-chart svg,
.panel-chart svg {
  width: 100%;
  height: 180px;
}

.mini-chart path,
.panel-chart path {
  fill: none;
  stroke-width: 4;
  stroke-linecap: round;
}

.mini-chart path:first-child,
.panel-chart path:first-child {
  stroke: rgba(255, 255, 255, 0.26);
}

.mini-chart path:last-child,
.panel-chart path:last-child {
  stroke: var(--lime);
}

.integrity-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.integrity-row span {
  padding: 10px 12px;
  border: 1px solid #202020;
  border-radius: 999px;
  background: #0c0c0c;
}

.participants {
  margin-top: 24px;
}

.participants strong {
  font-size: 28px;
}

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

.steps li {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 18px 0;
  border-bottom: 1px solid var(--light-border);
  font-size: 21px;
}

.steps b {
  color: var(--lime);
  font-size: 16px;
}

.trade-preview {
  padding: 30px;
}

.preview-head {
  min-height: 54px;
}

.preview-head strong {
  color: var(--lime);
}

.quote-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 24px;
}

.quote-grid div {
  min-height: 116px;
  padding: 18px;
  border: 1px solid #202020;
  border-radius: 24px;
  background: var(--card-2);
}

.quote-grid b {
  display: block;
  margin-top: 16px;
  font-size: 30px;
}

.choice-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 20px;
}

.choice-row button {
  min-height: 62px;
  border: 1px solid #202020;
  border-radius: 999px;
  background: transparent;
  color: #fafafa;
  font-weight: 700;
  cursor: pointer;
}

.choice-row .selected {
  background: var(--lime);
  color: #070707;
  border-color: var(--lime);
}

.confirm {
  width: 100%;
  margin-top: 18px;
  border-radius: 999px;
}

.section-title {
  max-width: 850px;
}

.page#roadmap {
  grid-template-columns: minmax(0, 0.72fr) minmax(560px, 1fr);
}

.timeline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
  margin-top: 56px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 24px;
  height: 1px;
  background: var(--light-border);
}

.timeline article {
  position: relative;
  padding-top: 58px;
}

.timeline i {
  position: absolute;
  top: 12px;
  left: 0;
  width: 24px;
  height: 24px;
  border: 1px solid var(--ink);
  border-radius: 50%;
  background: var(--bg);
}

.timeline i::after {
  content: "";
  position: absolute;
  inset: 6px;
  border-radius: 50%;
  background: var(--lime);
}

.timeline b,
.timeline span {
  display: block;
}

.timeline b {
  font-size: 22px;
}

.timeline span {
  margin-top: 10px;
  color: var(--muted);
  line-height: 1.45;
}

/* App and docs pages */
.app-page,
.docs-page {
  background: var(--bg);
  color: var(--ink);
}

.app-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 88px;
  padding: 18px clamp(24px, 7vw, 144px);
  border-bottom: 1px solid var(--light-border);
}

.app-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.app-shell,
.docs-shell {
  width: min(1180px, calc(100vw - 40px));
  margin: 0 auto;
  padding: 80px 0;
}

.app-shell,
.docs-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 18px;
}

.app-workspace {
  width: min(1500px, calc(100vw - 48px));
  margin: 0 auto;
  padding: 72px 0 96px;
}

.app-intro {
  max-width: 920px;
  margin-bottom: 48px;
}

.app-intro h1 {
  font-size: clamp(54px, 7vw, 104px);
}

.app-intro p {
  max-width: 780px;
  color: var(--muted);
  font-size: 20px;
  line-height: 1.6;
}

.app-grid {
  display: grid;
  grid-template-columns: minmax(420px, 1fr) minmax(320px, 0.72fr) minmax(300px, 0.62fr);
  gap: 18px;
  align-items: stretch;
}

.round-cockpit,
.stake-ticket,
.status-panel {
  border: 1px solid var(--border);
  background: var(--card);
  color: #fafafa;
  padding: 28px;
}

.round-cockpit {
  min-height: 620px;
}

.app-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 26px;
}

.app-pair div {
  min-height: 178px;
  padding: 20px;
  border: 1px solid #202020;
  border-radius: 24px;
  background: var(--card-2);
}

.app-pair span,
.app-pair small,
.ticket-label,
.stake-input span,
.ticket-summary span,
.status-panel dt {
  color: #9a9a9a;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}

.app-pair b {
  display: block;
  margin: 18px 0;
  color: var(--lime);
  font-size: 44px;
  line-height: 0.9;
}

.stake-ticket {
  display: flex;
  flex-direction: column;
}

.side-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 18px;
}

.side-option {
  min-height: 58px;
  border: 1px solid #202020;
  border-radius: 999px;
  background: transparent;
  color: #fafafa;
  font-weight: 700;
  cursor: pointer;
}

.side-option.selected {
  background: var(--lime);
  color: #070707;
  border-color: var(--lime);
}

.stake-input {
  position: relative;
  display: grid;
  gap: 10px;
  margin-top: 26px;
}

.stake-input input {
  width: 100%;
  height: 72px;
  padding: 0 64px 0 18px;
  border: 1px solid #202020;
  border-radius: var(--radius-input);
  background: #0c0c0c;
  color: #fafafa;
  font-size: 28px;
  font-weight: 700;
}

.stake-input b {
  position: absolute;
  right: 18px;
  bottom: 22px;
  color: var(--lime);
}

.ticket-summary {
  display: grid;
  gap: 12px;
  margin-top: 24px;
}

.ticket-summary div {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid #202020;
}

.stake-ticket .confirm {
  margin-top: auto;
}

.tx-message {
  margin: 24px 0 18px;
  color: #9a9a9a;
  font-size: 14px;
  line-height: 1.5;
}

.status-panel {
  border-color: var(--light-border);
  background: var(--surface);
  color: var(--ink);
  border-radius: var(--radius-card);
}

.status-panel h2 {
  font-size: 34px;
}

.status-panel dl {
  display: grid;
  gap: 12px;
  margin: 24px 0 0;
}

.status-panel div {
  padding-bottom: 14px;
  border-bottom: 1px solid var(--light-border);
}

.status-panel dd {
  margin: 8px 0 0;
  color: var(--ink);
  font-weight: 700;
}

.account-section {
  display: block;
  margin-top: 18px;
}

.account-card {
  max-width: 980px;
  min-height: 390px;
  padding: 32px;
  border: 1px solid var(--light-border);
  background: var(--surface);
}

.account-card h2 {
  max-width: 680px;
  margin-top: 18px;
  font-size: clamp(36px, 3.4vw, 58px);
}

.account-card p {
  max-width: 680px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.6;
}

.wallet-card {
  background: #070707;
  color: #fafafa;
  border-color: #202020;
}

.wallet-card h2 {
  color: #fafafa;
}

.wallet-card p,
.wallet-card .account-status span {
  color: #9a9a9a;
}

.account-status {
  display: grid;
  gap: 8px;
  margin: 36px 0 24px;
  padding: 18px;
  border: 1px solid #202020;
  border-radius: 20px;
  background: #101010;
}

.account-status span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}

.account-status strong {
  color: var(--lime);
  font-size: clamp(22px, 2.3vw, 34px);
  overflow-wrap: anywhere;
}

.wallet-message {
  margin: 0 0 24px;
  color: #9a9a9a;
  font-size: 15px;
  line-height: 1.55;
}

.how-to-play {
  display: grid;
  grid-template-columns: minmax(280px, 0.55fr) minmax(0, 1fr);
  gap: 48px;
  margin-top: 96px;
  padding-top: 72px;
  border-top: 1px dashed var(--light-border);
}

.how-to-play h2 {
  font-size: clamp(42px, 4vw, 68px);
}

.play-steps {
  display: grid;
  grid-template-columns: repeat(5, minmax(170px, 1fr));
  gap: 16px;
}

.play-steps article {
  min-height: 250px;
  padding: 22px;
  border: 1px solid var(--light-border);
  border-radius: var(--radius-card);
  background: var(--surface);
}

.play-steps b {
  color: var(--lime);
  font-size: 18px;
}

.play-steps h3 {
  margin: 26px 0 12px;
  font-size: 22px;
}

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

.app-hero-panel,
.trade-board,
.config-panel,
.docs-grid article {
  border: 1px solid var(--light-border);
  border-radius: var(--radius-card);
  background: var(--surface);
  padding: 28px;
}

.app-hero-panel {
  grid-column: 1 / -1;
}

.app-hero-panel h1,
.docs-shell h1 {
  margin-top: 20px;
  font-size: clamp(48px, 8vw, 104px);
}

.round-meta,
.trade-board,
.config-panel dl {
  display: grid;
  gap: 12px;
}

.round-meta {
  grid-template-columns: repeat(3, 1fr);
  margin-top: 28px;
}

.round-meta span,
.position-card,
.config-panel div {
  border: 1px solid var(--light-border);
  border-radius: 20px;
  padding: 18px;
}

.position-card {
  display: grid;
  gap: 22px;
}

.ticker {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.bar {
  height: 5px;
  border-radius: 999px;
  background: #e7e7df;
}

.bar i {
  display: block;
  width: var(--w);
  height: 100%;
  border-radius: 999px;
  background: var(--lime);
}

.config-panel dl {
  margin: 0;
}

.config-panel dt {
  color: var(--muted);
  text-transform: uppercase;
  font-weight: 700;
}

.config-panel dd {
  margin: 8px 0 0;
  overflow-wrap: anywhere;
}

.docs-shell {
  display: grid;
  gap: 32px;
}

.docs-grid article {
  min-height: 220px;
}

.docs-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.55fr);
  gap: 48px;
  align-items: end;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--light-border);
}

.docs-hero p {
  max-width: 780px;
  color: var(--muted);
  font-size: 20px;
  line-height: 1.6;
}

.docs-summary {
  display: grid;
  gap: 12px;
  padding: 22px;
  border: 1px solid var(--light-border);
  border-radius: var(--radius-card);
  background: var(--surface);
}

.docs-summary div {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 12px 0;
  border-bottom: 1px solid var(--light-border);
}

.docs-summary div:last-child {
  border-bottom: 0;
}

.docs-section {
  padding: 36px;
  border: 1px solid var(--light-border);
  border-radius: var(--radius-card);
  background: var(--surface);
}

.docs-section h2 {
  font-size: clamp(34px, 3.2vw, 52px);
}

.docs-section h3 {
  margin: 28px 0 10px;
  font-size: 24px;
}

.docs-section p,
.docs-section li {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.7;
}

.docs-section code {
  padding: 2px 6px;
  border-radius: 8px;
  background: #eef0e8;
  color: var(--ink);
}

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

.docs-list li {
  padding: 18px;
  border: 1px solid var(--light-border);
  border-radius: 20px;
  background: #fbfcf7;
}

@media (max-width: 1100px) {
  .site-header {
    grid-template-columns: 1fr auto;
    gap: 18px;
    padding-top: 18px;
    padding-bottom: 18px;
  }

  .page-nav {
    grid-column: 1 / -1;
    grid-row: 2;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .page-nav::-webkit-scrollbar {
    display: none;
  }

  .page-nav a {
    flex: 0 0 auto;
  }

  .page,
  .docs-hero,
  .app-shell,
  .app-grid,
  .account-section,
  .how-to-play,
  .docs-grid {
    grid-template-columns: 1fr;
  }

  .timeline,
  .play-steps {
    overflow-x: auto;
    grid-template-columns: repeat(5, minmax(240px, 1fr));
    padding-bottom: 10px;
  }
}

@media (max-width: 680px) {
  .announcement {
    justify-content: flex-start;
    font-size: 13px;
  }

  .brand span:not(.brand-mark) {
    display: none;
  }

  .header-cta {
    min-height: 46px;
    padding: 0 16px;
    font-size: 12px;
  }

  .x-link {
    width: 46px;
    height: 46px;
    font-size: 15px;
  }

  h1,
  h2 {
    font-size: clamp(46px, 14vw, 68px);
  }

  .landing-page {
    overflow-x: hidden;
  }

  .page-deck {
    gap: clamp(48px, 12vw, 90px);
  }

  .page {
    width: min(100% - 32px, 1720px);
    padding: 32px 0;
  }

  .live-card {
    min-height: auto;
    padding: 22px;
  }

  .app-workspace {
    width: min(100% - 32px, 1500px);
    padding: 56px 0 76px;
  }

  .round-cockpit,
  .stake-ticket,
  .status-panel,
  .account-card {
    padding: 22px;
  }

  .battle-split,
  .quote-grid,
  .app-pair,
  .side-options,
  .play-steps,
  .round-meta {
    grid-template-columns: 1fr;
  }

  .how-to-play {
    margin-top: 64px;
    padding-top: 48px;
  }

  .account-section {
    margin-top: 14px;
  }

  .timeline::before {
    display: none;
  }
}
