: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;
}

/* StockTickerBar — sits at the very top in normal flow (not fixed/sticky),
   so it scrolls away with the page. Only the inner track animates. */
.stock-ticker-bar {
  height: 36px;
  width: 100%;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: #000000;
  border-bottom: 1px solid #161616;
}

.ticker-track {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  white-space: nowrap;
  will-change: transform;
  animation: ticker-scroll 34s linear infinite;
}

.stock-ticker-bar:hover .ticker-track {
  animation-play-state: paused;
}

.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 20px;
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.2px;
  font-variant-numeric: tabular-nums;
}

.ticker-item b {
  color: #ffffff;
  font-weight: 700;
}

.ticker-item .tk-price {
  color: #8f8f8f;
}

.ticker-item .tk-up {
  color: var(--success);
}

.ticker-item .tk-down {
  color: var(--danger);
}

@keyframes ticker-scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .ticker-track {
    animation: none;
  }
}

.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(--ink);
  color: #fafafa;
  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);
}

.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;
}

/* Copyable contract-address chip */
.ca-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  max-width: 100%;
  margin-top: 26px;
  padding: 8px 8px 8px 14px;
  border: 1px solid var(--light-border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  transition: border-color 250ms var(--ease), transform 250ms var(--ease), box-shadow 250ms var(--ease);
}

.ca-chip:hover {
  transform: translateY(-1px);
  border-color: var(--lime);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.06);
}

.ca-label {
  flex: none;
  padding: 4px 9px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--lime);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1px;
}

.ca-addr {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: ui-monospace, "SF Mono", Menlo, "Roboto Mono", monospace;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.2px;
}

.ca-status {
  flex: none;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #eef0e8;
  color: var(--ink);
  transition: background 200ms var(--ease), color 200ms var(--ease);
}

.ca-ico {
  width: 16px;
  height: 16px;
}

.ca-ico-done {
  display: none;
}

.ca-chip.is-copied .ca-status {
  background: rgba(140, 255, 94, 0.2);
  color: #1f8f1f;
}

.ca-chip.is-copied .ca-ico-copy {
  display: none;
}

.ca-chip.is-copied .ca-ico-done {
  display: block;
}

.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;
}

/* Featured Battle — protocol preview card in the hero (calm, launch-ready) */
.featured-battle {
  display: flex;
  flex-direction: column;
  gap: 30px;
  padding: 38px;
  border: 1px solid var(--border);
  background: var(--card);
  color: #fafafa;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.08);
}

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

.fb-eyebrow {
  color: #9a9a9a;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.6px;
}

.fb-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid #2a2a2a;
  border-radius: 999px;
  color: var(--lime);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

.fb-badge::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--lime);
}

.fb-title {
  margin: 0;
  font-size: clamp(38px, 3.6vw, 52px);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.5px;
}

.fb-title span {
  margin: 0 6px;
  color: #6b6b66;
  font-weight: 500;
}

.fb-sides {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.fb-side {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding: 20px;
  border: 1px solid #232323;
  border-radius: 20px;
  background: var(--card-2);
  color: #fafafa;
  text-align: left;
  cursor: pointer;
  transition: transform 200ms var(--ease), border-color 200ms var(--ease), background 200ms var(--ease);
}

.fb-side:hover {
  transform: translateY(-2px);
  border-color: #3a3a3a;
}

.fb-side-tag {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #9a9a9a;
}

.fb-side b {
  font-size: 26px;
  font-weight: 700;
}

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

.fb-side.is-selected .fb-side-tag {
  color: #0a0a0a;
}

.fb-flow {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 20px;
  padding-top: 28px;
  border-top: 1px solid #202020;
}

.fb-step {
  display: flex;
  align-items: center;
  gap: 12px;
}

.fb-step b {
  flex: 0 0 auto;
  color: var(--lime);
  font-size: 13px;
  font-weight: 700;
}

.fb-step span {
  color: #cfcfca;
  font-size: 15px;
  font-weight: 500;
}

.fb-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.fb-badges span {
  padding: 9px 13px;
  border: 1px solid #202020;
  border-radius: 999px;
  background: #0c0c0c;
  color: #9a9a9a;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.3px;
}

/* 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 {
  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 page refinement: living chart --- */
.panel-chart {
  position: relative;
  transition: transform 250ms var(--ease), border-color 250ms var(--ease), box-shadow 250ms var(--ease);
}

.panel-chart:hover {
  border-color: #2f2f2f;
  box-shadow: 0 0 0 1px rgba(204, 255, 0, 0.12), 0 22px 44px rgba(0, 0, 0, 0.34);
}

.chart-svg {
  display: block;
  width: 100%;
  height: 180px;
  overflow: visible;
  animation: chart-float 7s ease-in-out infinite;
}

.panel-chart:hover .chart-svg {
  animation-play-state: paused;
}

.chart-area {
  fill: url(#chartFill);
  stroke: none;
}

.chart-ghost {
  fill: none;
  stroke: rgba(255, 255, 255, 0.16);
  stroke-width: 3;
  stroke-linecap: round;
}

.chart-line {
  fill: none;
  stroke: var(--lime);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
  animation: chart-glow 4s ease-in-out infinite;
}

.chart-dot {
  fill: var(--lime);
  filter: drop-shadow(0 0 6px rgba(204, 255, 0, 0.85));
  transform-box: fill-box;
  transform-origin: center;
  animation: chart-dot-pulse 2.4s ease-in-out infinite;
}

.chart-halo {
  fill: rgba(204, 255, 0, 0.35);
  transform-box: fill-box;
  transform-origin: center;
  animation: chart-halo 2.4s ease-in-out infinite;
}

@keyframes chart-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

@keyframes chart-glow {
  0%, 100% { filter: drop-shadow(0 0 4px rgba(204, 255, 0, 0.38)); }
  50% { filter: drop-shadow(0 0 9px rgba(204, 255, 0, 0.7)); }
}

@keyframes chart-dot-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.35); }
}

@keyframes chart-halo {
  0% { transform: scale(1); opacity: 0.5; }
  70%, 100% { transform: scale(3.4); opacity: 0; }
}

/* --- App page refinement: premium flow timeline --- */
.flow-head {
  max-width: 720px;
}

.flow-timeline {
  list-style: none;
  margin: 52px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 22px;
}

.flow-step {
  position: relative;
  padding-top: 40px;
}

.flow-step::before {
  content: "";
  position: absolute;
  top: 10px;
  left: 26px;
  right: -22px;
  height: 2px;
  background: var(--light-border);
}

.flow-step::after {
  content: "";
  position: absolute;
  top: 10px;
  left: 26px;
  right: -22px;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, rgba(204, 255, 0, 0.9) 50%, transparent 100%);
  background-size: 45% 100%;
  background-repeat: no-repeat;
  animation: flow-sweep 3.6s ease-in-out infinite;
}

.flow-step:nth-child(2)::after { animation-delay: 0.45s; }
.flow-step:nth-child(3)::after { animation-delay: 0.9s; }
.flow-step:nth-child(4)::after { animation-delay: 1.35s; }

.flow-step:last-child::before,
.flow-step:last-child::after {
  display: none;
}

.flow-node {
  position: absolute;
  top: 0;
  left: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1px solid var(--light-border);
  background: var(--surface);
  z-index: 1;
  transition: border-color 250ms var(--ease);
}

.flow-node::after {
  content: "";
  position: absolute;
  inset: 6px;
  border-radius: 50%;
  background: #c3c4bc;
  transition: background 250ms var(--ease), box-shadow 250ms var(--ease);
}

.flow-step b {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.flow-step h3 {
  margin: 0;
  color: var(--ink);
  font-size: 19px;
  font-weight: 600;
}

.flow-step.is-active .flow-node {
  border-color: var(--lime);
}

.flow-step.is-active .flow-node::after {
  background: var(--lime);
  box-shadow: 0 0 10px 2px rgba(204, 255, 0, 0.55);
  animation: flow-glow 2.2s ease-in-out infinite;
}

.flow-step.is-active b {
  color: var(--ink);
}

@keyframes flow-sweep {
  0% { background-position: -60% 0; opacity: 0; }
  25% { opacity: 1; }
  75% { opacity: 1; }
  100% { background-position: 160% 0; opacity: 0; }
}

@keyframes flow-glow {
  0%, 100% { box-shadow: 0 0 8px 1px rgba(204, 255, 0, 0.4); }
  50% { box-shadow: 0 0 15px 4px rgba(204, 255, 0, 0.7); }
}

/* --- App page refinement: micro-interactions --- */
.round-cockpit,
.status-panel,
.account-card {
  transition: transform 250ms var(--ease), border-color 250ms var(--ease), box-shadow 250ms var(--ease);
}

.round-cockpit:hover,
.status-panel:hover,
.account-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.1);
}

.app-pair div,
.side-option,
.integrity-row span {
  transition: transform 250ms var(--ease), border-color 250ms var(--ease), background 250ms var(--ease), color 250ms var(--ease);
}

.app-pair div:hover {
  border-color: #333333;
}

.side-option:hover:not(.selected) {
  transform: translateY(-1px);
  border-color: #3a3a3a;
}

.integrity-row span:hover {
  border-color: #3a3a3a;
  color: #cfcfca;
}

.stake-input input:focus {
  outline: none;
  border-color: var(--lime);
  box-shadow: 0 0 0 3px rgba(204, 255, 0, 0.16);
}

@media (prefers-reduced-motion: reduce) {
  .chart-svg,
  .chart-line,
  .chart-dot,
  .chart-halo,
  .flow-step::after,
  .flow-step.is-active .flow-node::after {
    animation: none;
  }
}

/* ============================================================
   BATTLE INTERFACE — production-grade refinement (app page)
   ============================================================ */

/* --- Round card --- */
.round-cockpit {
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: 30px;
}

.round-cockpit .round-header {
  align-items: flex-start;
}

.rc-id {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.round-cockpit .rc-round {
  color: #8f8f8f;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.4px;
}

.round-cockpit .rc-live {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  align-self: flex-start;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid rgba(204, 255, 0, 0.32);
  background: rgba(204, 255, 0, 0.08);
  color: var(--lime);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.4px;
  text-transform: none;
}

.round-cockpit .rc-live i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 8px 1px rgba(204, 255, 0, 0.7);
  animation: live-pulse 1.8s ease-in-out infinite;
}

.rc-timer {
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: right;
}

.round-cockpit .rc-timer span {
  color: #8f8f8f;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.rc-timer b {
  color: #fafafa;
  font-size: 20px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.rc-battle {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-bottom: 20px;
  border-bottom: 1px solid #1e1e1e;
}

.rc-battle strong {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.3px;
}

.rc-battle span {
  color: #8f8f8f;
  font-size: 13px;
}

.rc-sides {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.rc-side {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 18px;
  border: 1px solid #202020;
  border-radius: 18px;
  background: var(--card-2);
  transition: border-color 250ms var(--ease), transform 250ms var(--ease);
}

.rc-side:hover {
  border-color: #333333;
  transform: translateY(-2px);
}

.rc-side-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #b6b6b0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.3px;
}

.rc-side-tag .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.rc-side-tag .dot.bull {
  background: var(--lime);
  box-shadow: 0 0 7px 1px rgba(204, 255, 0, 0.5);
}

.rc-side-tag .dot.bear {
  background: #6b6b66;
}

.rc-side b.pos {
  font-size: 30px;
  font-weight: 700;
  color: var(--lime);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.rc-side-tag em {
  font-style: normal;
  color: #fafafa;
}

.rc-entry-wrap {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.rc-entry-label {
  color: #8f8f8f;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.rc-entry {
  color: #fafafa;
  font-size: 26px;
  font-weight: 700;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

/* Battles selector */
.market-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 34px;
}

.market-chip {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  padding: 12px 18px;
  border: 1px solid var(--light-border);
  border-radius: 16px;
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  transition: transform 250ms var(--ease), border-color 250ms var(--ease), background 250ms var(--ease), color 250ms var(--ease);
}

.market-chip:hover {
  transform: translateY(-2px);
  border-color: var(--lime);
}

.market-chip.is-active {
  background: var(--ink);
  border-color: var(--ink);
  color: #fafafa;
}

.market-chip .mc-live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--muted);
}

.market-chip .mc-live i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 6px 1px rgba(140, 255, 94, 0.5);
}

.market-chip b {
  font-size: 16px;
  font-weight: 700;
}

@keyframes live-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* --- Chart hover tooltip (TradingView feel) --- */
.chart-crosshair {
  stroke: rgba(255, 255, 255, 0.28);
  stroke-width: 1;
  stroke-dasharray: 3 4;
  opacity: 0;
  transition: opacity 150ms var(--ease);
}

.chart-cursor {
  fill: #ffffff;
  stroke: var(--lime);
  stroke-width: 2;
  opacity: 0;
  filter: drop-shadow(0 0 5px rgba(204, 255, 0, 0.85));
  transition: opacity 150ms var(--ease);
}

.chart-hovering .chart-crosshair,
.chart-hovering .chart-cursor {
  opacity: 1;
}

.chart-tooltip {
  position: absolute;
  top: 8px;
  transform: translateX(-50%);
  padding: 5px 10px;
  border-radius: 9px;
  background: #0a0a0a;
  border: 1px solid #2c2c2c;
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.45);
  transition: opacity 150ms var(--ease);
}

.chart-hovering .chart-tooltip {
  opacity: 1;
}

/* --- Stake terminal --- */
.stake-ticket {
  gap: 0;
  padding: 30px;
}

.st-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.st-balance {
  color: #8f8f8f;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

.st-balance b {
  color: #fafafa;
  font-variant-numeric: tabular-nums;
}

.stake-ticket .side-option {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  min-height: 0;
  padding: 14px 16px;
  border-radius: 16px;
}

.stake-ticket .side-option span {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #8f8f8f;
}

.stake-ticket .side-option b {
  font-size: 18px;
}

.stake-ticket .side-option.selected span {
  color: #0a0a0a;
}

.quick-amounts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 12px;
}

.quick-amounts button {
  min-height: 40px;
  border: 1px solid #232323;
  border-radius: 12px;
  background: transparent;
  color: #cfcfca;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 250ms var(--ease), border-color 250ms var(--ease), background 250ms var(--ease), color 250ms var(--ease);
}

.quick-amounts button:hover:not(:disabled) {
  transform: translateY(-1px);
  border-color: var(--lime);
  color: #fafafa;
}

.quick-amounts button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.ticket-summary .ts-net strong {
  color: var(--lime);
}

.stake-ticket .confirm {
  min-height: 62px;
  margin-top: 20px;
  font-size: 15px;
}

.st-foot {
  margin: 14px 0 0;
  color: #7d7d78;
  font-size: 12px;
  line-height: 1.5;
}

/* --- Round status rows --- */
.status-panel {
  padding: 30px;
}

.status-rows {
  list-style: none;
  margin: 22px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}

.status-rows li {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--light-border);
  transition: background 200ms var(--ease);
}

.status-rows li:last-child {
  border-bottom: 0;
}

.sr-ico {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid var(--light-border);
  border-radius: 11px;
  background: #fbfcf7;
  color: #3a3a36;
  transition: border-color 250ms var(--ease), color 250ms var(--ease);
}

.sr-ico svg {
  width: 17px;
  height: 17px;
}

.status-rows li:hover .sr-ico {
  border-color: rgba(140, 200, 40, 0.5);
  color: var(--ink);
}

.sr-label {
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}

.sr-value {
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  text-align: right;
}

.sr-value.ok,
.sr-value {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
}

.sr-value.ok::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 6px 1px rgba(140, 255, 94, 0.5);
}

.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 7px 1px rgba(140, 255, 94, 0.6);
  animation: live-pulse 1.8s ease-in-out infinite;
}

/* --- Wallet dashboard --- */
.wallet-dash {
  max-width: 520px;
  padding: 26px 28px;
  border: 1px solid #202020;
  background: #070707;
  color: #fafafa;
}

.wd-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 18px;
  border-bottom: 1px solid #1c1c1c;
}

.wd-title {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.3px;
}

.wd-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 8px 1px rgba(204, 255, 0, 0.6);
}

.wd-net {
  color: #8f8f8f;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

.wd-body {
  padding-top: 6px;
}

.wd-view {
  display: none;
  padding-top: 14px;
}

.wallet-dash[data-state="disconnected"] .wd-off {
  display: block;
}

.wallet-dash[data-state="connected"] .wd-on {
  display: block;
}

.wd-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 0;
  border-bottom: 1px solid #171717;
}

.wd-row span {
  color: #8f8f8f;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

.wd-row strong {
  color: #fafafa;
  font-size: 15px;
  font-weight: 700;
  overflow-wrap: anywhere;
  text-align: right;
}

.wd-row .wd-muted {
  color: #8f8f8f;
}

.wd-row .wd-ok {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.wd-row .wd-ok i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 6px 1px rgba(140, 255, 94, 0.5);
}

.wd-wallets {
  display: inline-flex;
  gap: 8px;
}

.wd-wallets em {
  padding: 6px 11px;
  border: 1px solid #242424;
  border-radius: 999px;
  background: #101010;
  color: #cfcfca;
  font-size: 12px;
  font-weight: 600;
  font-style: normal;
  transition: border-color 250ms var(--ease);
}

.wd-wallets em:hover {
  border-color: #3a3a3a;
}

.wd-cta {
  width: 100%;
  margin-top: 20px;
}

/* --- Micro-interactions: elevation --- */
.stake-ticket {
  transition: transform 250ms var(--ease), border-color 250ms var(--ease), box-shadow 250ms var(--ease);
}

.stake-ticket:hover {
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.1);
}

.wallet-dash {
  transition: transform 250ms var(--ease), border-color 250ms var(--ease), box-shadow 250ms var(--ease);
}

.wallet-dash:hover {
  transform: translateY(-2px);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.28);
}

.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;
  }

  .featured-battle {
    padding: 26px;
    gap: 24px;
  }

  .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;
  }

  .flow-timeline {
    grid-template-columns: 1fr;
    gap: 0;
    margin-top: 40px;
  }

  .flow-step {
    padding: 0 0 30px 44px;
  }

  .flow-step::before {
    top: 24px;
    bottom: -6px;
    left: 10px;
    right: auto;
    width: 2px;
    height: auto;
  }

  .flow-step::after {
    display: none;
  }

  .flow-step:last-child::before {
    display: none;
  }

  .flow-node {
    top: 2px;
    left: 0;
  }

  .flow-step b {
    margin-bottom: 4px;
  }

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

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