:root {
  --bg: #0a0e1f;
  --tx: #f2f4ff;
  --mu: #7f87a8;
  --bd: #1c2346;
  --long: #3d7bff;
  --short: #ff3d8b;
  --soft: #c9cdf0;
  --card: #0c1128;
  --well: #080b19;
  --line: #27305e;
  --mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --sans: 'Archivo', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --gut: 32px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { background: var(--bg); scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--tx);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }
ul, ol { list-style: none; }
code { font-family: var(--mono); }
::selection { background: var(--long); color: #fff; }
:focus-visible { outline: 2px solid var(--tx); outline-offset: 3px; }

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 var(--gut); }

.lab {
  display: inline-block;
  font: 500 12px/1.4 var(--mono);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--mu);
}
.pv {
  display: inline-block;
  font: 500 10px/1 var(--mono);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--soft);
  border: 1px solid #2f3a6e;
  border-radius: 99px;
  padding: 4px 8px 3px;
  vertical-align: 2px;
  white-space: nowrap;
}
.lab .pv { margin-left: 8px; }

.big {
  font-family: var(--sans);
  font-stretch: 125%;
  font-weight: 900;
  letter-spacing: -.02em;
  line-height: .86;
}

/* ───────── hero ───────── */
.hero {
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.hero::before, .hero::after {
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  width: 50%;
  z-index: -3;
}
.hero::before {
  left: 0;
  background:
    radial-gradient(80% 60% at 0% 55%, rgba(61,123,255,.30), transparent 70%),
    linear-gradient(90deg, #12266f 0%, #0d1a50 55%, #0b1337 100%);
}
.hero::after {
  right: 0;
  background:
    radial-gradient(80% 60% at 100% 55%, rgba(255,61,139,.26), transparent 70%),
    linear-gradient(90deg, #250a24 0%, #400d34 50%, #5f0f48 100%);
}
.hero-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hero-lines { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 100%; }
.hero-seam {
  position: absolute;
  left: 50%; top: 150px; bottom: 0;
  width: 1px;
  background: linear-gradient(180deg, transparent, rgba(242,244,255,.16) 18%, rgba(242,244,255,.16) 82%, transparent);
}

.top {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 24px;
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 22px var(--gut);
}
.brand { display: inline-flex; align-items: center; gap: 10px; }
.logo { width: 30px; height: 30px; display: block; flex: none; }
.wordmark { font-weight: 800; font-stretch: 125%; font-size: 22px; letter-spacing: -.01em; line-height: 1; }
.nav { display: flex; gap: 24px; margin-left: auto; }
.nav a {
  font: 500 12px/1 var(--mono);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--soft);
  padding: 6px 0;
  border-bottom: 1px solid transparent;
}
.nav a:hover { color: #fff; border-bottom-color: rgba(242,244,255,.4); }
.status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font: 500 11px/1 var(--mono);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--tx);
  border: 1px solid rgba(242,244,255,.22);
  border-radius: 99px;
  padding: 9px 13px 8px;
  background: rgba(10,14,31,.5);
  white-space: nowrap;
}
.status i { width: 8px; height: 8px; border-radius: 50%; background: linear-gradient(90deg, var(--long) 50%, var(--short) 50%); flex: none; }

.meta {
  text-align: center;
  font: 400 15px/1.4 var(--mono);
  color: var(--soft);
  padding: 6px var(--gut) 0;
}
.meta span { opacity: .45; margin: 0 .45em; }
.meta i { font-style: normal; white-space: nowrap; }

.vs-grid {
  --w: clamp(44px, calc(10.4vw - 52px), 124px);
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px minmax(0, 1fr);
  column-gap: 40px;
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 44px var(--gut) 0;
}
.half { position: relative; display: flex; flex-direction: column; align-items: flex-start; min-width: 0; }
.half-short { align-items: flex-end; text-align: right; }
.word { font-size: var(--w); margin-top: 12px; }
.half-long .word { color: var(--long); }
.half-short .word { color: var(--short); }
.line {
  font-weight: 700;
  font-size: clamp(24px, 2.2vw, 34px);
  line-height: 1.12;
  letter-spacing: -.015em;
  margin-top: 44px;
  max-width: 14ch;
}
.sub { margin-top: 16px; max-width: 30ch; color: var(--soft); font-size: 16px; }
.cta {
  margin-top: 28px;
  display: inline-flex;
  align-items: center;
  height: 46px;
  padding: 0 22px;
  border-radius: 99px;
  font: 600 12.5px/1 var(--mono);
  letter-spacing: .12em;
  text-transform: uppercase;
  transition: transform .15s ease, background .15s ease;
}
.cta:hover { transform: translateY(-1px); }
.cta-long { background: var(--long); color: #fff; }
.cta-long:hover { background: #5a8fff; }
.cta-short { border: 1.5px solid var(--short); color: #fff; }
.cta-short:hover { background: rgba(255,61,139,.16); }
.count {
  margin-top: auto;
  padding: 44px 0 34px;
  font: 400 14px/1.4 var(--mono);
  color: var(--soft);
}
.count b { font-weight: 600; color: var(--tx); font-size: 22px; margin-right: 4px; vertical-align: -2px; }
.half-short .count b { margin-left: 6px; }
.count .pv { margin-left: 6px; }
.half-short .count .pv { margin: 0 2px 0 0; }

.seam { display: flex; flex-direction: column; align-items: center; min-width: 0; }
.vs {
  font-size: calc(var(--w) * .7);
  height: calc(var(--w) * .86);
  margin-top: 12px;
  display: flex;
  align-items: center;
  color: var(--tx);
}
.ticket-wrap { width: 100%; margin-top: 44px; filter: drop-shadow(0 28px 44px rgba(3,5,14,.6)); }

/* ticket */
.ticket { --c: var(--long); --o: var(--short); font-family: var(--mono); transition: opacity .3s ease; }
.ticket[data-side="short"] { --c: var(--short); --o: var(--long); }
.ticket.swap { opacity: 0; }
.t-top, .t-stub { position: relative; background: var(--card); border: 1px solid var(--line); }
.t-top {
  border-bottom: 0;
  border-radius: 16px 16px 0 0;
  padding: 20px 18px 18px;
  overflow: hidden;
  -webkit-mask: radial-gradient(circle 10px at 0 100%, #0000 95%, #000) 0 0 / 51% 100% no-repeat,
                radial-gradient(circle 10px at 100% 100%, #0000 95%, #000) 100% 0 / 51% 100% no-repeat;
          mask: radial-gradient(circle 10px at 0 100%, #0000 95%, #000) 0 0 / 51% 100% no-repeat,
                radial-gradient(circle 10px at 100% 100%, #0000 95%, #000) 100% 0 / 51% 100% no-repeat;
}
.t-top::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--long) 50%, var(--short) 50%);
}
.t-stub {
  border-top: 0;
  border-radius: 0 0 16px 16px;
  padding: 18px 18px 18px;
  -webkit-mask: radial-gradient(circle 10px at 0 0, #0000 95%, #000) 0 0 / 51% 100% no-repeat,
                radial-gradient(circle 10px at 100% 0, #0000 95%, #000) 100% 0 / 51% 100% no-repeat;
          mask: radial-gradient(circle 10px at 0 0, #0000 95%, #000) 0 0 / 51% 100% no-repeat,
                radial-gradient(circle 10px at 100% 0, #0000 95%, #000) 100% 0 / 51% 100% no-repeat;
}
.t-stub::before { content: ""; position: absolute; left: 16px; right: 16px; top: 0; border-top: 1.5px dashed #313b70; }
.t-head { display: flex; justify-content: space-between; align-items: center; font: 500 11px/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--mu); }
.t-coin { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin: 14px 0 14px; }
.t-coin b { font-family: var(--sans); font-stretch: 125%; font-weight: 900; font-size: 40px; line-height: 1; letter-spacing: -.02em; }
.venue {
  font: 500 10px/1 var(--mono);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--soft);
  border: 1px solid #2f3a6e;
  border-radius: 5px;
  padding: 5px 6px 4px;
  white-space: nowrap;
}
.t-row {
  display: grid;
  grid-template-columns: 10px 44px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  padding: 9px 0;
  border-top: 1px solid var(--bd);
}
.dot { width: 10px; height: 10px; border-radius: 50%; }
.t-open .dot { background: var(--c); }
.t-wait .dot { border: 2px solid var(--o); }
.t-sd { text-transform: uppercase; letter-spacing: .1em; font-size: 11px; font-weight: 600; }
.t-open .t-sd { color: var(--c); }
.t-wait .t-sd { color: var(--o); }
.t-w { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.t-wait .t-w, .t-wait .t-s { color: var(--mu); }
.t-s { font-weight: 600; font-variant-numeric: tabular-nums; }
.ticket.taken .t-wait .dot { background: var(--o); }
.ticket.taken .t-wait .t-w, .ticket.taken .t-wait .t-s { color: var(--tx); }
.t-clock { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.t-clock .lab { font-size: 11px; }
.t-clock b { font: 600 30px/1 var(--mono); font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.t-note { font: 400 12px/1.45 var(--mono); color: var(--mu); margin-top: 8px; }
.btn-take {
  margin-top: 14px;
  width: 100%;
  height: 48px;
  border: 0;
  border-radius: 12px;
  background: var(--o);
  color: #fff;
  font: 600 12.5px/1 var(--mono);
  letter-spacing: .12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: filter .15s ease, transform .15s ease;
}
.btn-take:hover { filter: brightness(1.12); }
.btn-take:active { transform: translateY(1px); }
.ticket.taken .btn-take { background: transparent; border: 1.5px solid var(--o); cursor: default; filter: none; }
.t-share { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 16px; }
.t-share .lab { font-size: 10px; flex: none; }
.t-share code {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
  color: var(--soft);
  border: 1px dashed #313b70;
  border-radius: 6px;
  padding: 5px 8px;
}

/* ───────── sections ───────── */
.sec { padding-top: 128px; }
.sec-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 34ch); align-items: end; gap: 20px 48px; margin-bottom: 36px; }
.sec-head .sec-sub { justify-self: end; text-align: right; }
.h2 {
  font-stretch: 125%;
  font-weight: 900;
  font-size: clamp(32px, 4.2vw, 58px);
  line-height: .98;
  letter-spacing: -.025em;
  margin-top: 12px;
  max-width: 18ch;
  text-wrap: balance;
}
.sec-sub { color: var(--soft); max-width: 34ch; font-size: 16px; }
.fine { margin-top: 18px; font: 400 12.5px/1.5 var(--mono); color: var(--mu); }

/* board */
.cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; }
.col {
  --c: var(--long);
  --o: var(--short);
  border: 1px solid var(--bd);
  border-radius: 20px;
  padding: 22px 22px 24px;
  background: linear-gradient(180deg, rgba(61,123,255,.13), rgba(61,123,255,.02) 45%, transparent);
  min-width: 0;
}
.col-short {
  --c: var(--short);
  --o: var(--long);
  background: linear-gradient(180deg, rgba(255,61,139,.12), rgba(255,61,139,.02) 45%, transparent);
}
.col-head {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 12px;
  padding-bottom: 18px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--bd);
  font-weight: inherit;
}
.bigs { font-stretch: 125%; font-weight: 900; font-size: 34px; line-height: 1; letter-spacing: -.02em; text-transform: uppercase; color: var(--c); }
.cm { font: 400 14px/1.3 var(--mono); color: var(--soft); }
.col-head b { margin-left: auto; font: 500 12px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--mu); }
.col-head b span { color: var(--tx); font-weight: 600; font-size: 14px; }

.tks {
  --tkh: 66px;
  --gap: 10px;
  display: flex;
  flex-direction: column;
  gap: var(--gap);
  height: calc(6 * var(--tkh) + 5 * var(--gap));
  overflow: hidden;
}
.tk {
  position: relative;
  flex: none;
  height: var(--tkh);
  display: grid;
  grid-template-columns: minmax(0, .9fr) auto minmax(0, 1.1fr) auto;
  grid-template-areas: "coin stake who take";
  align-items: center;
  gap: 12px;
  padding: 0 12px 0 18px;
  background: var(--card);
  border: 1px solid var(--bd);
  border-radius: 12px;
  overflow: hidden;
  transition: background .3s ease, border-color .3s ease;
}
.tk::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--c); }
.tk-coin { grid-area: coin; display: flex; flex-direction: column; align-items: flex-start; gap: 3px; min-width: 0; }
.tk-coin .venue { border: 0; padding: 0; font-size: 9.5px; color: var(--mu); }
.tk-coin b { font-weight: 800; font-stretch: 115%; font-size: 18px; letter-spacing: -.01em; white-space: nowrap; }
.tk-stake { grid-area: stake; font: 600 17px/1 var(--mono); font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
.tk-stake small { font-size: 11px; font-weight: 500; color: var(--mu); margin-left: 4px; letter-spacing: .08em; text-transform: uppercase; }
.tk-who { grid-area: who; display: flex; flex-direction: column; font: 400 12.5px/1.4 var(--mono); color: var(--soft); min-width: 0; }
.tk-who span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tk-who .ago { color: var(--mu); }
.tk-take {
  grid-area: take;
  height: 36px;
  padding: 0 13px;
  border-radius: 9px;
  border: 1.5px solid var(--o);
  background: transparent;
  color: var(--tx);
  font: 600 11px/1 var(--mono);
  letter-spacing: .08em;
  text-transform: uppercase;
  cursor: pointer;
  white-space: nowrap;
  transition: background .15s ease;
}
.tk-take:hover { background: var(--o); }
.tk.enter { animation: tkIn .55s cubic-bezier(.2, .8, .2, 1) both; }
.tk.fade { animation: tkFade .5s ease both; }
.tk.taken { border-color: var(--o); background: color-mix(in srgb, var(--card), var(--o) 14%); }
.tk.taken .tk-take { background: var(--o); border-color: var(--o); cursor: default; }
.tk.out { animation: tkOut .45s ease both; }
@keyframes tkIn {
  from { opacity: 0; transform: translateY(-10px); margin-top: calc(-1 * (var(--tkh) + var(--gap))); }
  to { opacity: 1; transform: none; margin-top: 0; }
}
@keyframes tkFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes tkOut {
  from { opacity: 1; }
  to { opacity: 0; margin-bottom: calc(-1 * (var(--tkh) + var(--gap))); transform: scale(.98); }
}

/* open a duel */
.opener {
  --c: var(--short);
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  border: 1px solid var(--bd);
  border-radius: 24px;
  overflow: hidden;
  background: #0b1026;
}
.opener[data-side="long"] { --c: var(--long); }
.op-form { padding: 40px; display: flex; flex-direction: column; gap: 26px; min-width: 0; }
.op-form .h2 { font-size: clamp(30px, 3.4vw, 46px); }
.op-form .sec-sub { margin-top: 12px; }
.op-receipt {
  padding: 40px;
  border-left: 1px dashed #2c3566;
  display: flex;
  flex-direction: column;
  min-width: 0;
  transition: background .3s ease;
  background: linear-gradient(160deg, color-mix(in srgb, var(--c) 18%, transparent), color-mix(in srgb, var(--c) 3%, transparent) 60%);
}
.field { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.field small { color: var(--mu); font-size: 13px; line-height: 1.45; }
.op-form .hint { margin-top: -12px; color: var(--mu); font-size: 13px; line-height: 1.45; }
.op-form .hint.low { color: var(--short); }
.op-form > div:first-child > .lab { display: block; }
.field-row { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 20px; }
.in {
  height: 54px;
  width: 100%;
  background: var(--well);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0 16px;
  font: 400 15px var(--mono);
  outline: none;
  transition: border-color .15s ease;
}
.in::placeholder { color: #565e82; }
.in:focus, .stake-in:focus-within { border-color: var(--c); }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border: 1px solid var(--line); border-radius: 14px; background: var(--well); }
.seg button {
  height: 58px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--mu);
  font-family: var(--sans);
  font-stretch: 125%;
  font-weight: 900;
  font-size: 24px;
  letter-spacing: -.01em;
  cursor: pointer;
  transition: background .15s ease, color .15s ease;
}
.seg button:hover { color: var(--tx); }
.seg button[aria-pressed="true"][data-side="long"] { background: var(--long); color: #fff; }
.seg button[aria-pressed="true"][data-side="short"] { background: var(--short); color: #fff; }
.stake-in { display: flex; align-items: center; height: 58px; background: var(--well); border: 1px solid var(--line); border-radius: 12px; padding: 0 16px; transition: border-color .15s ease; }
.stake-in input { flex: 1; min-width: 0; width: 100%; background: transparent; border: 0; outline: 0; font: 600 24px var(--mono); font-variant-numeric: tabular-nums; }
.stake-in span { color: var(--mu); font: 500 12px var(--mono); text-transform: uppercase; letter-spacing: .14em; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chips button { height: 32px; padding: 0 12px; border-radius: 99px; border: 1px solid var(--line); background: transparent; color: var(--soft); font: 500 13px var(--mono); cursor: pointer; }
.chips button:hover { border-color: var(--c); color: var(--tx); }
.fixed { height: 58px; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 0 16px; border: 1px dashed var(--line); border-radius: 12px; font: 500 16px var(--mono); }
.fixed em { font: 500 10px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--mu); font-style: normal; }
.rc { margin-top: 14px; font-family: var(--mono); font-size: 14px; }
.rc div { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 11px 0; border-bottom: 1px solid rgba(242,244,255,.07); }
.rc dt { color: var(--soft); }
.rc dd { font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.rc.alt { margin-top: 6px; }
.rc.alt div:last-child { border-bottom: 0; }
.win { margin-top: 26px; }
.win p { margin-top: 6px; display: flex; align-items: baseline; gap: 10px; }
.win b { font: 600 clamp(48px, 5.4vw, 76px)/1 var(--mono); letter-spacing: -.03em; color: var(--c); font-variant-numeric: tabular-nums; transition: color .2s ease; overflow-wrap: anywhere; }
.win em { font: 500 16px var(--mono); font-style: normal; color: var(--soft); text-transform: uppercase; letter-spacing: .14em; }
.btn-open {
  margin-top: auto;
  width: 100%;
  height: 56px;
  border-radius: 14px;
  border: 1.5px dashed #3a4372;
  background: rgba(10,14,31,.4);
  color: var(--soft);
  font: 600 12.5px/1 var(--mono);
  letter-spacing: .12em;
  text-transform: uppercase;
  cursor: not-allowed;
}
.op-receipt .rc.alt + .btn-open { margin-top: 28px; }

/* how */
.strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--bd); border-radius: 20px; }
.strip li { position: relative; display: flex; flex-direction: column; padding: 26px 24px 24px; border-left: 1px solid var(--bd); min-width: 0; }
.strip li:first-child { border-left: 0; }
.strip li + li::before {
  content: "";
  position: absolute;
  left: -7px; top: 30px;
  width: 12px; height: 12px;
  border-top: 1px solid #39437a;
  border-right: 1px solid #39437a;
  background: var(--bg);
  transform: rotate(45deg);
}
.n { font: 500 12px/1 var(--mono); letter-spacing: .14em; color: var(--mu); }
.strip h3 { font-stretch: 125%; font-weight: 900; font-size: 24px; line-height: 1; letter-spacing: -.01em; text-transform: uppercase; margin: 16px 0 12px; }
.strip p { color: var(--soft); font-size: 15px; line-height: 1.5; }
.mini { margin-top: auto; padding-top: 24px; min-height: 146px; display: flex; flex-direction: column; justify-content: flex-end; gap: 10px; font-family: var(--mono); font-size: 12.5px; }
.sd { font: 600 10.5px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; }
.sd.s, b.s, .v.s { color: var(--short); }
.sd.l { color: var(--long); }
.v { font-weight: 600; font-variant-numeric: tabular-nums; }
.mini-tk { display: flex; align-items: center; gap: 12px; padding: 12px; border: 1px solid var(--line); border-left: 3px solid var(--short); border-radius: 10px; background: var(--card); }
.mini-tk .v { margin-left: auto; }
.mini-tk b { font-family: var(--sans); font-stretch: 115%; font-weight: 800; font-size: 16px; }
.mini-link { font-size: 11.5px; color: var(--soft); border: 1px dashed #313b70; border-radius: 6px; padding: 6px 8px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mini-pot div, .mini-out div { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); }
.mini-pot .sum { background: transparent; border-style: dashed; color: var(--soft); }
.mini-out div span:first-child { color: var(--soft); }
.chart { width: 100%; height: auto; display: block; overflow: visible; }
.ct { font-family: var(--mono); font-size: 11px; fill: var(--mu); letter-spacing: .02em; }
.ct.cm { fill: var(--short); }

.example {
  margin-top: 24px;
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  align-items: baseline;
  gap: 12px 24px;
  padding: 24px 28px;
  border: 1px solid var(--bd);
  border-radius: 16px;
  background: linear-gradient(90deg, rgba(61,123,255,.07), rgba(255,61,139,.08));
}
.example p { font-size: clamp(18px, 1.7vw, 22px); line-height: 1.4; font-weight: 500; }
.example b { font-weight: 800; }
.nb { white-space: nowrap; }

/* leaderboard */
.lb-wrap { border: 1px solid var(--bd); border-radius: 20px; overflow: hidden; }
.lb { width: 100%; border-collapse: collapse; font-family: var(--mono); font-variant-numeric: tabular-nums; }
.lb th {
  font: 500 11px/1 var(--mono);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--mu);
  text-align: left;
  padding: 18px 24px 16px;
  border-bottom: 1px solid var(--bd);
  background: rgba(28,35,70,.35);
  white-space: nowrap;
}
.lb td { padding: 15px 24px; border-bottom: 1px solid var(--bd); font-size: 15px; }
.lb tbody tr:last-child td { border-bottom: 0; }
.lb tbody tr:hover td { background: rgba(28,35,70,.25); }
.lb .r { text-align: right; }
.lb .rk { width: 90px; color: var(--mu); }
.lb tbody tr:nth-child(-n+3) .rk { color: var(--tx); font-weight: 600; }
.lb .wl { color: var(--tx); }
.lb .sol { font-weight: 600; }

/* rules */
.rules { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 40px; align-items: start; }
.rules > div:first-child { position: sticky; top: 32px; }
.mlist { font-family: var(--mono); font-size: 14.5px; border-top: 1px solid var(--bd); }
.mlist div { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 20px; padding: 16px 0; border-bottom: 1px solid var(--bd); }
.mlist dt { color: var(--mu); text-transform: uppercase; letter-spacing: .14em; font-size: 12px; padding-top: 2px; }
.mlist dd { color: var(--soft); }
.mlist a { color: var(--long); text-decoration: underline; text-underline-offset: 3px; }
.mlist a:hover { color: #fff; }
.mlist .warn dt { color: var(--tx); }
.mlist .warn dd { color: var(--tx); }

/* footer */
.foot { margin-top: 128px; border-top: 1px solid var(--bd); padding: 40px 0 56px; }
.foot-in { display: flex; align-items: center; gap: 14px 36px; }
.foot-txt { display: grid; gap: 4px; min-width: 0; }
.foot-line { font-weight: 600; }
.foot-mu { color: var(--mu); font-size: 14px; }
.foot-url { margin-left: auto; font: 500 14px var(--mono); color: var(--long); }

/* toast */
.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 50;
  max-width: calc(100vw - 32px);
  transform: translate(-50%, 16px);
  opacity: 0;
  pointer-events: none;
  background: #121935;
  border: 1px solid #2f3a6e;
  border-radius: 12px;
  padding: 12px 16px;
  font: 500 13px/1.4 var(--mono);
  color: var(--tx);
  transition: opacity .2s ease, transform .2s ease;
  box-shadow: 0 16px 40px rgba(0,0,0,.4);
}
.toast.on { opacity: 1; transform: translate(-50%, 0); }

/* ───────── responsive ───────── */
@media (max-width: 1120px) {
  .nav { display: none; }
  .status { margin-left: auto; }
  .hero { min-height: 0; background: #12266f; }
  .hero::before, .hero::after, .hero-bg { display: none; }
  .vs-grid { --w: clamp(56px, 15vw, 132px); display: flex; flex-direction: column; padding: 0; }
  .half { padding: 32px var(--gut) 0; }
  .half-long {
    background:
      radial-gradient(85% 45% at 0% 55%, rgba(61,123,255,.26), transparent),
      linear-gradient(180deg, #12266f 0%, #0d1a50 100%);
  }
  .half-short {
    background:
      radial-gradient(85% 45% at 100% 55%, rgba(255,61,139,.24), transparent),
      linear-gradient(180deg, #2c0b28 0%, #4a0e3c 100%);
  }
  .line { margin-top: 28px; max-width: 18ch; }
  .count { margin-top: 0; padding: 30px 0 34px; }
  .seam {
    position: relative;
    z-index: 1;
    padding: 8px var(--gut) 44px;
    background: linear-gradient(180deg, #0d1a50 0%, #0a0e1f 30%, #0a0e1f 70%, #2c0b28 100%);
  }
  .seam .spacer { display: none; }
  .vs { margin-top: 0; height: auto; font-size: clamp(48px, 10vw, 84px); padding: 8px 0 4px; }
  .ticket-wrap { max-width: 380px; margin-top: 20px; }
}

@media (max-width: 900px) {
  .sec-head { grid-template-columns: minmax(0, 1fr); }
  .sec-head .sec-sub { justify-self: start; text-align: left; }
  .cols { grid-template-columns: minmax(0, 1fr); }
  .opener { grid-template-columns: minmax(0, 1fr); }
  .op-receipt { border-left: 0; border-top: 1px dashed #2c3566; }
  .strip { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .strip li:nth-child(3) { border-left: 0; }
  .strip li:nth-child(n+3) { border-top: 1px solid var(--bd); }
  .strip li:nth-child(3)::before { display: none; }
  .rules { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .rules > div:first-child { position: static; }
}

@media (max-width: 640px) {
  :root { --gut: 16px; }
  .top { padding: 16px var(--gut); gap: 12px; }
  .st-a { display: none; }
  .meta { font-size: 12.5px; padding-top: 0; }
  .meta span { margin: 0 .3em; }
  .meta i:nth-child(2) span { display: none; }
  .meta i:nth-child(3) { display: block; }
  .sec { padding-top: 76px; }
  .sec-head { margin-bottom: 24px; }
  .col { padding: 16px 14px 18px; border-radius: 16px; }
  .bigs { font-size: 28px; }
  .col-head .cm { order: 3; flex-basis: 100%; }
  .tks { --tkh: 84px; height: calc(4 * var(--tkh) + 3 * var(--gap)); }
  .tk {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: "coin stake" "who take";
    align-content: center;
    row-gap: 8px;
    padding: 0 10px 0 14px;
  }
  .tk-coin { flex-direction: row; align-items: baseline; gap: 8px; }
  .op-form, .op-receipt { padding: 24px 18px; }
  .field-row { grid-template-columns: minmax(0, 1fr); }
  .seg button { font-size: 20px; height: 52px; }
  .strip { grid-template-columns: minmax(0, 1fr); }
  .strip li { border-left: 0; padding: 22px 18px; }
  .strip li + li { border-top: 1px solid var(--bd); }
  .strip li + li::before { left: 26px; top: -7px; transform: rotate(135deg); display: block; }
  .strip li:nth-child(3)::before { display: block; }
  .mini { min-height: 0; }
  .example { grid-template-columns: minmax(0, 1fr); padding: 20px 18px; }
  .lb th, .lb td { padding-left: 12px; padding-right: 12px; }
  .lb th { font-size: 10px; letter-spacing: .1em; }
  .lb td { font-size: 13.5px; }
  .lb .rk { width: 44px; }
  .mlist div { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .foot { margin-top: 76px; }
  .foot-in { flex-wrap: wrap; }
  .foot-url { margin-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .tk.enter, .tk.fade, .tk.out { animation-duration: .01s; }
  .ticket, .cta, .btn-take { transition: none; }
}
