/* Stonkride website: arcade-dark, chunky cartoon cards, chart greens and reds, coin gold */
:root {
  color-scheme: dark;
  --bg: #05070c;
  --bg2: #0b1018;
  --panel: #101724;
  --panel2: #162032;
  --ink: #02040a;
  --line: rgba(255, 255, 255, 0.1);
  --text: #f2f6ff;
  --muted: #9aa6bd;
  --green: #2bff6a;
  --green-d: #0c9e36;
  --red: #ff3b4b;
  --gold: #ffc93a;
  --gold-d: #a86a00;
  --blue: #57a8ff;
  --display: 'Bungee', Impact, sans-serif;
  --body: 'Rajdhani', system-ui, sans-serif;
  --r: 16px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  background: var(--bg);
  color: var(--text);
  font: 500 17px/1.5 var(--body);
  min-height: 100vh;
  overflow-x: hidden;
}
body.gw-open { overflow: hidden; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition: none !important; }
}

.container { width: 100%; max-width: 1180px; margin: 0 auto; padding-inline: 20px; }
.up { color: var(--green); }
.down { color: var(--red); }

/* ---------- Brand ---------- */
.brand {
  font-family: var(--display);
  font-size: 24px;
  text-decoration: none;
  transform: skew(-9deg);
  display: inline-block;
  letter-spacing: -0.5px;
  white-space: nowrap;
  filter: drop-shadow(0 3px 0 rgba(0, 0, 0, 0.7));
}
.brand.small { font-size: 18px; }
.stonk {
  background: linear-gradient(#ffffff 0%, #e4eaf1 52%, #9aa6b5 53%, #eef2f6 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  -webkit-text-stroke: 1.5px #161b24;
}
.ride {
  background: linear-gradient(#c8ff7a 0%, var(--green) 50%, var(--green-d) 51%, #6dff98 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  -webkit-text-stroke: 1.5px #05240e;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 400 15px var(--display);
  letter-spacing: 0.5px;
  text-decoration: none;
  border: 2.5px solid var(--ink);
  border-radius: 12px;
  padding: 9px 16px;
  cursor: pointer;
  box-shadow: 0 4px 0 var(--ink);
  transition: transform 0.08s, box-shadow 0.08s, background 0.15s;
  white-space: nowrap;
}
.btn:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--ink); }
.btn.play { background: linear-gradient(#3dff7c, #12b847); color: #03210d; text-shadow: 0 1px 0 rgba(255, 255, 255, 0.4); }
.btn.play:hover { background: linear-gradient(#5cff92, #18cc52); }
.btn.ghost { background: var(--panel2); color: var(--text); border-color: var(--ink); }
.btn.ghost:hover { background: #1e2a40; }
.btn.gold { background: linear-gradient(#ffe27a, #f0a800); color: #3d2600; }
.btn.big { font-size: 18px; padding: 13px 24px; border-radius: 14px; }
.btn.wide { width: 100%; }
.btn[disabled] { opacity: 0.45; cursor: not-allowed; transform: none; box-shadow: 0 4px 0 var(--ink); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 30;
  background: rgba(5, 7, 12, 0.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-row { display: flex; align-items: center; gap: 24px; height: 68px; }
.nav { display: flex; gap: 6px; margin-right: auto; }
.nav a {
  text-decoration: none;
  font-weight: 700; font-size: 16px;
  padding: 6px 12px;
  border-radius: 10px;
  color: var(--muted);
}
.nav a:hover { color: var(--text); background: var(--panel); }
.nav a.on { color: var(--text); background: var(--panel2); }
.header-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.connect .addr { font-family: var(--body); font-weight: 700; font-size: 15px; }
.connect .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--green); box-shadow: 0 0 8px var(--green); }
.menu-toggle {
  display: none;
  width: 44px; height: 44px;
  border-radius: 12px;
  border: 2px solid var(--line);
  background: var(--panel);
  font-size: 20px;
  cursor: pointer;
}
@media (max-width: 860px) {
  .header-row { gap: 12px; }
  .menu-toggle { display: block; }
  .nav {
    position: absolute; top: 68px; left: 0; right: 0;
    flex-direction: column; gap: 2px;
    padding: 10px 16px 16px;
    background: rgba(5, 7, 12, 0.97);
    border-bottom: 1px solid var(--line);
    display: none;
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px; font-size: 18px; }
  .header-actions .connect { display: none; }
  .nav .connect-mobile { display: block; }
}
@media (max-width: 420px) {
  .brand { font-size: 20px; }
  .header-actions .btn.play { padding: 8px 12px; }
}

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
#heroCanvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hero::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(5, 7, 12, 0.92) 0%, rgba(5, 7, 12, 0.6) 45%, rgba(5, 7, 12, 0) 75%);
}
.hero-inner { position: relative; z-index: 1; padding-block: 72px 110px; max-width: 1180px; }
.hero-inner > * { max-width: 620px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-weight: 700; font-size: 15px; letter-spacing: 1px; text-transform: uppercase;
  color: var(--green);
  background: rgba(43, 255, 106, 0.08);
  border: 1px solid rgba(43, 255, 106, 0.3);
  border-radius: 999px;
  padding: 5px 14px;
}
.chain-dot { width: 10px; height: 10px; border-radius: 50%; background: #ccff00; box-shadow: 0 0 10px #ccff00; flex: none; }
.hero-title {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(54px, 10vw, 118px);
  line-height: 1;
  margin-top: 18px;
  transform: skew(-9deg) rotate(-2deg);
  transform-origin: left;
  filter: drop-shadow(0 7px 0 rgba(0, 0, 0, 0.7)) drop-shadow(0 0 30px rgba(43, 255, 106, 0.25));
}
.hero-title .stonk, .hero-title .ride { -webkit-text-stroke-width: 2.5px; }
.hero-tag {
  font-family: var(--display);
  font-size: clamp(14px, 2vw, 20px);
  transform: skew(-9deg) rotate(-2deg);
  transform-origin: left;
  margin-top: 6px;
  text-shadow: 0 2px 0 #000;
}
.hero-sub { font-size: 20px; color: #cfd8ea; margin-top: 22px; max-width: 56ch; }
.hero-cta { display: flex; gap: 14px; margin-top: 30px; flex-wrap: wrap; }

.tape {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  background: rgba(2, 4, 10, 0.88);
  border-top: 1px solid var(--line);
  overflow: hidden;
  height: 44px;
}
.tape-track { display: flex; width: max-content; animation: tape 40s linear infinite; height: 100%; align-items: center; }
.tape:hover .tape-track { animation-play-state: paused; }
.tape-item { display: inline-flex; align-items: center; gap: 8px; padding: 0 26px; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tape-item .tk { font-family: var(--display); font-size: 14px; }
.tape-item .mini-logo { width: 24px; height: 24px; }
@keyframes tape { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section { padding-block: 72px; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: 26px; }
.section-title, .page-title {
  font-family: var(--display); font-weight: 400;
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.1;
  transform: skew(-6deg);
  text-shadow: 0 3px 0 rgba(0, 0, 0, 0.6);
  text-wrap: balance;
}
.lead { color: var(--muted); font-size: 19px; margin-top: 6px; max-width: 60ch; }
.sub-title { font-family: var(--display); font-weight: 400; font-size: 22px; margin: 40px 0 14px; }

/* Cartoon card base */
.toon {
  background: linear-gradient(180deg, var(--panel2), var(--panel));
  border: 2.5px solid var(--ink);
  border-radius: var(--r);
  box-shadow: 0 6px 0 var(--ink), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

/* Steps */
.steps { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; margin-top: 28px; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }
.step {
  position: relative;
  padding: 26px 24px 24px;
  background: linear-gradient(180deg, var(--panel2), var(--panel));
  border: 2.5px solid var(--ink);
  border-radius: var(--r);
  box-shadow: 0 6px 0 var(--ink);
  min-width: 0;
}
.step-n {
  position: absolute; top: -16px; left: 20px;
  width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--display); font-size: 18px;
  background: var(--green); color: #03210d;
  border: 2.5px solid var(--ink);
  box-shadow: 0 3px 0 var(--ink);
}
.step h3 { font-family: var(--display); font-weight: 400; font-size: 20px; margin-top: 14px; }
.step p { color: var(--muted); margin-top: 6px; }
.step-art { height: 92px; border-radius: 12px; background: var(--bg2); border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; gap: 10px; overflow: hidden; position: relative; }
.step-ride {
  background:
    linear-gradient(transparent 0 0),
    repeating-linear-gradient(90deg, rgba(43, 255, 106, 0.06) 0 1px, transparent 1px 24px),
    var(--bg2);
}
.step-ride::before {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 70%;
  background: linear-gradient(transparent, rgba(43, 255, 106, 0.12));
  clip-path: polygon(0 80%, 15% 55%, 28% 70%, 42% 30%, 55% 48%, 70% 12%, 82% 40%, 100% 20%, 100% 100%, 0 100%);
}
.step-ride::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 70%;
  background: var(--green);
  clip-path: polygon(0 80%, 15% 55%, 28% 70%, 42% 30%, 55% 48%, 70% 12%, 82% 40%, 100% 20%, 100% 23%, 82% 43%, 70% 15%, 55% 51%, 42% 33%, 28% 73%, 15% 58%, 0 83%);
  filter: drop-shadow(0 0 6px var(--green));
}
.soon {
  display: inline-block;
  font: 400 11px var(--display);
  color: var(--gold);
  border: 1px solid rgba(255, 201, 58, 0.5);
  border-radius: 6px;
  padding: 1px 6px;
  margin-left: 4px;
  vertical-align: 2px;
}

/* Coins and token chips */
.coin {
  display: inline-grid; place-items: center;
  width: 28px; height: 28px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #ffe58a, var(--gold) 55%, #c98a00);
  border: 2px solid #7a4d00;
  color: #5e3b00;
  font: 400 13px var(--display);
  box-shadow: 0 3px 0 rgba(0, 0, 0, 0.55), inset 0 -2px 0 rgba(0, 0, 0, 0.15);
  flex: none;
}
.coin.big { width: 50px; height: 50px; font-size: 22px; border-width: 3px; animation: bob 2.4s ease-in-out infinite; }
.coin.big:nth-child(2) { animation-delay: -0.8s; }
.coin.big:nth-child(3) { animation-delay: -1.6s; }
@keyframes bob { 50% { transform: translateY(-6px) rotate(8deg); } }
.step-trade .arrow { font-size: 30px; color: var(--muted); }
.token {
  font: 400 16px var(--display);
  padding: 8px 12px;
  border-radius: 10px;
  background: #ccff00; color: #1b2200;
  border: 2.5px solid var(--ink);
  box-shadow: 0 3px 0 var(--ink);
}
.mini-logo { display: inline-block; width: 30px; height: 30px; flex: none; }
.mini-logo.lg { width: 46px; height: 46px; }
.mini-logo svg { width: 100%; height: 100%; display: block; }

/* Multiplier legend */
.mult-legend { display: flex; flex-wrap: wrap; gap: 8px; }
.mchip {
  display: inline-flex; align-items: baseline; gap: 6px;
  font-weight: 700; font-size: 15px;
  padding: 4px 10px;
  border-radius: 8px;
  background: var(--panel);
  border: 1px solid var(--line);
}
.mchip b { font-family: var(--display); font-weight: 400; color: var(--gold); font-size: 14px; }

/* Track cards */
.track-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
@media (max-width: 980px) { .track-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .track-grid { grid-template-columns: 1fr; } }
.track-card {
  --accent: var(--green);
  display: flex; flex-direction: column; gap: 14px;
  padding: 18px;
  background: linear-gradient(180deg, var(--panel2), var(--panel));
  border: 2.5px solid var(--ink);
  border-radius: var(--r);
  box-shadow: 0 6px 0 var(--ink);
  transition: transform 0.15s, box-shadow 0.15s;
  min-width: 0;
}
.track-card:hover { transform: translateY(-3px); box-shadow: 0 9px 0 var(--ink), 0 0 26px -6px var(--accent); }
.tc-head { display: flex; align-items: center; gap: 12px; }
.tc-head .mini-logo { width: 52px; height: 52px; transform: rotate(-6deg); }
.track-card:hover .tc-head .mini-logo { animation: wiggle 0.5s ease-in-out; }
@keyframes wiggle { 30% { transform: rotate(8deg) scale(1.1); } 60% { transform: rotate(-10deg) scale(1.05); } }
.tc-tk { font-family: var(--display); font-size: 22px; line-height: 1.1; }
.tc-nm { color: var(--muted); font-size: 15px; }
.tc-px { margin-left: auto; text-align: right; font-variant-numeric: tabular-nums; }
.tc-px b { display: block; font-size: 20px; }
.tc-px span { font-size: 15px; font-weight: 700; }
.coin-pill {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 201, 58, 0.08);
  border: 1px solid rgba(255, 201, 58, 0.3);
}
.coin-pill .name { font-family: var(--display); font-size: 15px; color: var(--gold); }
.coin-pill .bal { margin-left: auto; font-weight: 700; font-variant-numeric: tabular-nums; }
.ranges-label { font-size: 13px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); }
.range-chips { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.rchip {
  display: flex; flex-direction: column; align-items: center;
  padding: 7px 2px;
  border-radius: 10px;
  background: var(--bg2);
  border: 1.5px solid var(--line);
  cursor: pointer;
  line-height: 1.15;
}
.rchip:hover { border-color: var(--accent); background: #0f1724; }
.rchip .rk { font-family: var(--display); font-size: 12px; }
.rchip .rd { font-size: 11px; color: var(--muted); font-weight: 700; }
.rchip .rm { font-family: var(--display); font-size: 13px; color: var(--gold); }
.rchip.d4 .rd, .rchip.d5 .rd { color: var(--red); }
.tc-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: auto; }

/* ---------- Pages ---------- */
.page { padding-top: 44px; }
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; margin-bottom: 28px; }
.total-card {
  padding: 14px 20px;
  border-radius: var(--r);
  background: linear-gradient(180deg, #2a2208, #171206);
  border: 2.5px solid var(--ink);
  box-shadow: 0 6px 0 var(--ink);
  text-align: right;
}
.total-card .label { font-size: 13px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); }
.total-card .total { font-family: var(--display); font-size: 32px; color: var(--gold); font-variant-numeric: tabular-nums; }
.total-card .sub { color: var(--muted); font-weight: 600; }

.account-card {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  padding: 16px 20px;
  margin-bottom: 26px;
  border-radius: var(--r);
  background: var(--panel);
  border: 1px dashed rgba(255, 255, 255, 0.18);
}
.account-card .txt { flex: 1 1 280px; min-width: 0; }
.account-card b { font-size: 18px; }
.account-card p { color: var(--muted); }
.account-card .addr { font-family: ui-monospace, monospace; font-size: 15px; word-break: break-all; }

.balance-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 980px) { .balance-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .balance-grid { grid-template-columns: 1fr; } }
.bal-card {
  display: flex; flex-direction: column; gap: 12px;
  padding: 16px;
  background: linear-gradient(180deg, var(--panel2), var(--panel));
  border: 2.5px solid var(--ink);
  border-radius: var(--r);
  box-shadow: 0 6px 0 var(--ink);
  min-width: 0;
}
.bal-card.empty { opacity: 0.75; }
.bal-top { display: flex; align-items: center; gap: 12px; }
.bal-top .coin { width: 44px; height: 44px; font-size: 18px; }
.bal-name { font-family: var(--display); font-size: 16px; }
.bal-amt { font-family: var(--display); font-size: 28px; font-variant-numeric: tabular-nums; line-height: 1.1; }
.bal-sub { color: var(--muted); font-weight: 600; font-variant-numeric: tabular-nums; }
.bal-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.bal-actions .btn { font-size: 13px; padding: 8px 10px; }

.activity { border-radius: var(--r); border: 1px solid var(--line); overflow: hidden; }
.act-row {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 14px; align-items: center;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  background: var(--bg2);
}
.act-row:last-child { border-bottom: 0; }
.act-row .what { min-width: 0; }
.act-row .what b { display: block; }
.act-row .what span { color: var(--muted); font-size: 15px; }
.act-row .amt { font-family: var(--display); color: var(--gold); font-variant-numeric: tabular-nums; }
.act-empty { padding: 26px; text-align: center; color: var(--muted); background: var(--bg2); }

/* Trade */
.network-pill {
  display: inline-flex; align-items: center; gap: 9px;
  font-weight: 700;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--panel);
  border: 1px solid var(--line);
}
.trade-layout { display: grid; grid-template-columns: minmax(0, 480px) minmax(0, 1fr); gap: 26px; align-items: start; }
@media (max-width: 900px) { .trade-layout { grid-template-columns: 1fr; } }
.swap-card {
  display: flex; flex-direction: column; gap: 10px;
  padding: 18px;
  background: linear-gradient(180deg, var(--panel2), var(--panel));
  border: 2.5px solid var(--ink);
  border-radius: 20px;
  box-shadow: 0 7px 0 var(--ink);
}
.swap-box { padding: 14px; border-radius: 14px; background: var(--bg2); border: 1px solid var(--line); }
.swap-label { display: flex; justify-content: space-between; color: var(--muted); font-weight: 600; font-size: 15px; }
.swap-row { display: flex; align-items: center; gap: 10px; margin-top: 6px; }
.swap-row input, .swap-row .out {
  flex: 1; min-width: 0;
  background: transparent; border: 0; outline: none;
  color: var(--text);
  font: 400 30px var(--display);
  font-variant-numeric: tabular-nums;
  overflow: hidden; text-overflow: ellipsis;
}
.swap-row input::placeholder { color: #4a5568; }
.max {
  font: 400 12px var(--display);
  padding: 5px 8px;
  border-radius: 8px;
  background: rgba(43, 255, 106, 0.12);
  color: var(--green);
  border: 1px solid rgba(43, 255, 106, 0.4);
  cursor: pointer;
}
.asset-select {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 10px 6px 6px;
  border-radius: 12px;
  background: var(--panel2);
  border: 2px solid var(--ink);
  box-shadow: 0 3px 0 var(--ink);
  position: relative;
  flex: none;
}
.asset-select select {
  appearance: none; -webkit-appearance: none;
  background: transparent; border: 0;
  color: var(--text);
  font: 400 15px var(--display);
  padding-right: 18px;
  cursor: pointer;
}
.asset-select select option { background: var(--panel); color: var(--text); font-family: var(--body); }
.asset-select::after { content: '▾'; position: absolute; right: 9px; pointer-events: none; color: var(--muted); }
.token-select::after { content: none; }
.token-select { font: 400 15px var(--display); padding-right: 12px; }
.token-select .mini-logo { width: 26px; height: 26px; }
.swap-usd { color: var(--muted); font-weight: 600; margin-top: 4px; font-variant-numeric: tabular-nums; }
.swap-arrow {
  align-self: center;
  width: 40px; height: 40px; margin: -20px 0;
  display: grid; place-items: center;
  border-radius: 12px;
  background: var(--panel2);
  border: 2.5px solid var(--ink);
  font-size: 20px;
  z-index: 1;
}
.swap-info { display: grid; gap: 4px; padding: 8px 4px; }
.swap-info div { display: flex; justify-content: space-between; gap: 10px; }
.swap-info dt { color: var(--muted); }
.swap-info dd { font-weight: 700; text-align: right; font-variant-numeric: tabular-nums; }
.fine { color: var(--muted); font-size: 14px; text-align: center; }

.trade-side { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.side-card {
  padding: 18px;
  border-radius: var(--r);
  background: linear-gradient(180deg, var(--panel2), var(--panel));
  border: 2.5px solid var(--ink);
  box-shadow: 0 6px 0 var(--ink);
}
.side-head { display: flex; align-items: center; gap: 12px; }
.side-tk { font-family: var(--display); font-size: 22px; line-height: 1.1; }
.side-nm { color: var(--muted); }
.side-px { margin-left: auto; font-family: var(--display); font-size: 24px; font-variant-numeric: tabular-nums; }
#sideChart { width: 100%; height: auto; aspect-ratio: 640 / 220; display: block; margin-top: 14px; max-width: 100%; }
.side-foot { display: flex; justify-content: space-between; color: var(--muted); font-weight: 600; margin-top: 6px; }
.earn-card { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.earn-card > div { flex: 1 1 220px; min-width: 0; }
.earn-card p { color: var(--muted); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: var(--bg2); margin-top: 40px; }
.footer-row { display: flex; gap: 28px; align-items: center; padding-block: 28px; flex-wrap: wrap; }
.footer-text { flex: 1 1 400px; max-width: 80ch; display: grid; gap: 8px; }
.footer-row p { color: var(--muted); font-size: 15px; }

/* ---------- Game window ---------- */
.game-window {
  position: fixed; inset: 0; z-index: 100;
  display: flex; flex-direction: column;
  background: #000;
  animation: gwIn 0.22s ease-out;
}
@keyframes gwIn { from { opacity: 0; transform: scale(0.97); } }
@media (min-width: 900px) {
  .game-window { inset: 18px; border: 3px solid var(--ink); border-radius: 18px; overflow: hidden; box-shadow: 0 0 0 100vmax rgba(0, 0, 0, 0.7), 0 20px 60px rgba(0, 0, 0, 0.7); }
}
.gw-bar {
  display: flex; align-items: center; gap: 14px;
  height: 52px; padding: 0 12px 0 18px;
  padding-top: env(safe-area-inset-top, 0px);
  background: #0a0e16;
  border-bottom: 2px solid var(--ink);
  flex: none;
}
.gw-wallet { margin-left: auto; display: flex; align-items: center; gap: 8px; font-weight: 700; color: var(--gold); font-variant-numeric: tabular-nums; }
.gw-wallet .coin { width: 22px; height: 22px; font-size: 11px; }
.gw-bar .btn { padding: 6px 12px; font-size: 13px; box-shadow: 0 3px 0 var(--ink); }
#gameFrame { flex: 1; width: 100%; border: 0; display: block; background: #05070c; }

/* ---------- Modal ---------- */
.modal { position: fixed; inset: 0; z-index: 120; display: grid; place-items: center; padding: 16px; background: rgba(0, 0, 0, 0.6); }
.modal-card {
  width: min(460px, 100%);
  padding: 24px;
  border-radius: 20px;
  background: linear-gradient(180deg, var(--panel2), var(--panel));
  border: 2.5px solid var(--ink);
  box-shadow: 0 8px 0 var(--ink), 0 30px 80px rgba(0, 0, 0, 0.6);
  animation: gwIn 0.18s ease-out;
}
.modal-card h3 { font-family: var(--display); font-weight: 400; font-size: 24px; transform: skew(-6deg); }
.modal-card p { color: var(--muted); margin-top: 8px; }
.modal-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 20px; flex-wrap: wrap; }
.review { margin-top: 16px; border-radius: 14px; background: var(--bg2); border: 1px solid var(--line); padding: 14px; display: grid; gap: 8px; }
.review div { display: flex; justify-content: space-between; gap: 12px; }
.review dt { color: var(--muted); }
.review dd { font-weight: 700; text-align: right; font-variant-numeric: tabular-nums; }
.notice {
  margin-top: 14px;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(255, 201, 58, 0.1);
  border: 1px solid rgba(255, 201, 58, 0.35);
  color: #ffe08a;
  font-weight: 600;
}

.push { margin-left: auto; }
.mono { font-family: ui-monospace, monospace; word-break: break-all; }

@media (max-width: 700px) {
  .hero::after { background: linear-gradient(180deg, rgba(5, 7, 12, 0.9) 0%, rgba(5, 7, 12, 0.7) 55%, rgba(5, 7, 12, 0.15) 100%); }
  .hero-inner { padding-block: 44px 150px; }
}
