:root {
  color-scheme: dark;
  --bg: #07090d;
  --surface: #0d1016;
  --surface-2: #111620;
  --surface-3: #171d28;
  --border: #232b39;
  --border-strong: #354154;
  --text: #f5f7fa;
  --muted: #929cad;
  --subtle: #657083;
  --acid: #b8ff3f;
  --acid-ink: #0d1305;
  --violet: #9b83ff;
  --blue: #5f9dff;
  --orange: #ff9e55;
  --red: #ff657a;
  --success: #58dfa7;
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius: 16px;
  --radius-lg: 24px;
  --radius-xl: 28px;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
  font-family:
    Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  background: var(--bg);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at 55% -20%, rgba(155, 131, 255, 0.1), transparent 32%),
    var(--bg);
}

button,
input,
select {
  font: inherit;
}

button {
  color: inherit;
}

button,
a,
input,
select {
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid rgba(184, 255, 63, 0.48);
  outline-offset: 2px;
}

button {
  border: 0;
  cursor: pointer;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.prototype-banner {
  min-height: 30px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  padding: 6px 16px;
  background: var(--acid);
  color: var(--acid-ink);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.prototype-banner span + span {
  padding-left: 12px;
  border-left: 1px solid rgba(13, 19, 5, 0.3);
  opacity: 0.72;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  height: 70px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  padding: 0 34px;
  border-bottom: 1px solid rgba(35, 43, 57, 0.8);
  background: rgba(7, 9, 13, 0.88);
  backdrop-filter: blur(18px);
}

.brand {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 11px;
  min-height: 44px;
  padding: 0;
  background: transparent;
  font-size: 18px;
  font-weight: 950;
  letter-spacing: -0.03em;
}

.brand-mark {
  width: 30px;
  height: 30px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3px;
  padding: 4px;
  border: 1px solid rgba(184, 255, 63, 0.35);
  border-radius: 9px;
  background: rgba(184, 255, 63, 0.08);
  transform: rotate(-5deg);
}

.brand-mark i {
  display: block;
  border-radius: 3px;
  background: var(--acid);
}

.brand-mark i:last-child {
  background: var(--violet);
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 4px;
  border: 1px solid var(--border);
  border-radius: 13px;
  background: rgba(13, 16, 22, 0.9);
}

.nav-link {
  min-height: 38px;
  padding: 0 15px;
  border-radius: 9px;
  color: var(--muted);
  background: transparent;
  font-size: 13px;
  font-weight: 700;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--text);
  background: var(--surface-3);
}

.topbar-actions {
  justify-self: end;
  display: flex;
  gap: 9px;
}

.chain-pill {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 13px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.chain-dot,
.wallet-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--acid);
  box-shadow: 0 0 0 4px rgba(184, 255, 63, 0.1);
}

.wallet-indicator {
  background: var(--violet);
  box-shadow: 0 0 0 4px rgba(155, 131, 255, 0.1);
}

.button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 11px;
  font-size: 13px;
  font-weight: 850;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button:active {
  transform: translateY(0);
}

.button:disabled {
  cursor: not-allowed;
  opacity: 0.42;
  transform: none;
}

.button-primary {
  color: var(--acid-ink);
  background: var(--acid);
  box-shadow: 0 8px 30px rgba(184, 255, 63, 0.14);
}

.button-primary:hover {
  background: #c6ff61;
}

.button-secondary {
  color: var(--text);
  border-color: var(--border-strong);
  background: var(--surface-2);
}

.button-secondary:hover {
  border-color: #4b5a70;
  background: var(--surface-3);
}

.button-ghost {
  color: var(--muted);
  background: transparent;
}

.button-ghost:hover {
  color: var(--text);
  background: var(--surface-2);
}

.button-danger {
  color: #ff9baa;
  border-color: rgba(255, 101, 122, 0.25);
  background: rgba(255, 101, 122, 0.08);
}

.button-full {
  width: 100%;
}

.x-glyph {
  font-size: 17px;
  line-height: 1;
}

.view {
  display: none;
}

.view.is-active {
  display: block;
  animation: view-in 220ms ease both;
}

@keyframes view-in {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: none; }
}

.page-shell {
  width: min(1480px, calc(100% - 48px));
  margin: 0 auto;
  padding: 40px 0 80px;
}

.market-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 335px;
  gap: 24px;
}

.narrow-shell {
  width: min(1160px, calc(100% - 48px));
}

.detail-shell {
  width: min(1240px, calc(100% - 48px));
}

.hero-panel {
  min-height: 360px;
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.06fr 0.94fr;
  align-items: center;
  gap: 32px;
  padding: 54px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 80% 40%, rgba(155, 131, 255, 0.18), transparent 32%),
    linear-gradient(135deg, #11161e 0%, #0a0d12 70%);
}

.hero-panel::before,
.hero-panel::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.hero-panel::before {
  width: 390px;
  height: 390px;
  right: -110px;
  top: -130px;
  border: 1px solid rgba(184, 255, 63, 0.08);
  border-radius: 50%;
  box-shadow: 0 0 0 55px rgba(184, 255, 63, 0.025), 0 0 0 110px rgba(184, 255, 63, 0.015);
}

.hero-panel::after {
  inset: 0;
  opacity: 0.1;
  background-image: linear-gradient(rgba(255,255,255,.12) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.12) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to right, transparent 30%, black);
}

.hero-copy,
.hero-versus {
  position: relative;
  z-index: 1;
}

.eyebrow,
.kicker,
.preview-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--acid);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--acid);
  box-shadow: 0 0 0 5px rgba(184, 255, 63, 0.1);
}

.hero-copy h1 {
  margin: 18px 0 18px;
  font-size: clamp(48px, 5.2vw, 80px);
  line-height: 0.9;
  letter-spacing: -0.065em;
}

.hero-copy h1 span {
  color: var(--acid);
}

.hero-copy > p {
  max-width: 580px;
  margin-bottom: 28px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  gap: 8px;
}

.hero-versus {
  min-height: 250px;
  display: grid;
  grid-template-columns: 1fr 82px 1fr;
  align-items: center;
  padding: 28px 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 22px;
  background: rgba(7, 9, 13, 0.75);
  box-shadow: var(--shadow);
}

.versus-person {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.versus-person .avatar {
  width: 66px;
  height: 66px;
  margin-bottom: 13px;
  font-size: 16px;
}

.versus-person strong {
  margin-bottom: 7px;
  font-size: 14px;
}

.versus-person > span:last-child {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.4;
}

.versus-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
}

.versus-center b {
  width: 53px;
  height: 53px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border-strong);
  border-radius: 50%;
  background: var(--surface-3);
  font-size: 13px;
  transform: rotate(-7deg);
}

.versus-center span,
.versus-center small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.avatar {
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  display: inline-grid;
  place-items: center;
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: white;
  font-size: 10px;
  font-style: normal;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.avatar-jade { background: linear-gradient(145deg, #196d58, #38b58a); }
.avatar-violet { background: linear-gradient(145deg, #6d50e2, #b08cff); }
.avatar-orange { background: linear-gradient(145deg, #a94f28, #ff9d54); }
.avatar-blue { background: linear-gradient(145deg, #2658a9, #65a5ff); }
.avatar-dark { background: #252d3a; color: #aeb7c5; }

.marketplace-section {
  padding-top: 46px;
}

.section-heading,
.rail-heading,
.challenge-topline,
.challenge-footer,
.chart-heading,
.preview-asset,
.review-header,
.challenge-detail-heading,
.live-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.section-heading h2,
.page-intro h1 {
  margin: 7px 0 0;
  font-size: 30px;
  letter-spacing: -0.04em;
}

.text-button,
.back-link,
.rail-heading button,
.detail-player button {
  min-height: 44px;
  padding: 0;
  color: var(--muted);
  background: transparent;
  font-size: 12px;
  font-weight: 800;
}

.text-button:hover,
.back-link:hover,
.rail-heading button:hover,
.detail-player button:hover {
  color: var(--text);
}

.filters {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin: 24px 0 14px;
}

.segmented,
.activity-tabs,
.asset-tabs {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
}

.filter-chip,
.activity-tabs button,
.asset-tabs button {
  min-height: 38px;
  padding: 0 15px;
  border-radius: 8px;
  color: var(--muted);
  background: transparent;
  font-size: 12px;
  font-weight: 800;
}

.filter-chip.is-active,
.activity-tabs button.is-active,
.asset-tabs button.is-active {
  color: var(--text);
  background: var(--surface-3);
}

.search-box {
  min-width: 270px;
  height: 46px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 14px;
  border: 1px solid var(--border);
  border-radius: 11px;
  background: var(--surface);
  color: var(--subtle);
}

.search-box:focus-within {
  border-color: #536178;
  box-shadow: 0 0 0 3px rgba(95, 157, 255, 0.08);
}

.search-box input {
  min-width: 0;
  width: 100%;
  border: 0;
  outline: 0;
  color: var(--text);
  background: transparent;
  font-size: 13px;
}

.search-box input::placeholder {
  color: var(--subtle);
}

.challenge-list {
  display: grid;
  gap: 12px;
}

.challenge-card,
.rail-card,
.form-card,
.preview-card,
.x-origin-card,
.review-card,
.challenge-detail-card,
.accept-card,
.timeline-card,
.terms-panel,
.activity-list article,
.ranking-table {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.challenge-card {
  position: relative;
  overflow: hidden;
  padding: 24px 26px 22px;
  transition: border-color 160ms ease, transform 160ms ease;
}

.challenge-card:hover {
  border-color: #354155;
  transform: translateY(-1px);
}

.challenge-card[hidden] {
  display: none;
}

.challenge-accent {
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
}

.stock-accent { background: var(--acid); }
.crypto-accent { background: var(--orange); }
.versus-accent { background: var(--violet); }

.asset-identity {
  display: flex;
  align-items: center;
  gap: 11px;
}

.asset-identity > div,
.challenger > div,
.post-author > div,
.preview-asset > div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.asset-identity strong {
  font-size: 14px;
}

.asset-identity span,
.challenger span,
.post-author span,
.preview-asset small {
  color: var(--muted);
  font-size: 11px;
}

.asset-logo {
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 11px;
  font-size: 14px;
  font-style: normal;
  font-weight: 950;
}

.asset-logo.mini {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  font-size: 10px;
}

.asset-nvda { color: #0b1807; background: #79e44c; }
.asset-doge { color: #241703; background: #ddb851; }
.asset-tsla { color: white; background: #e43535; }
.asset-ansem { color: white; background: linear-gradient(145deg, #7d59ff, #3d77f0); }
.asset-bonk { color: #251102; background: #ff9a3d; }
.asset-wif { color: #fff; background: #8057cd; }

.dual-assets {
  position: relative;
}

.dual-assets .asset-logo + .asset-logo {
  margin-left: -20px;
  transform: translateX(22px);
}

.dual-assets > div {
  margin-left: 20px;
}

.status-pill {
  min-height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 9px;
  border: 1px solid;
  border-radius: 999px;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.status-pill i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.status-open { color: var(--acid); border-color: rgba(184, 255, 63, 0.22); background: rgba(184, 255, 63, 0.07); }
.status-draft { color: var(--muted); border-color: var(--border); background: var(--surface-2); }
.status-unfunded { min-height: 32px; color: #ffc26e; border-color: rgba(255, 158, 85, 0.3); background: rgba(255, 158, 85, 0.08); }
.status-live { color: var(--success); border-color: rgba(88, 223, 167, .24); background: rgba(88, 223, 167, .08); }

.challenge-prediction {
  position: relative;
  padding: 24px 0 16px 24px;
}

.challenge-prediction.compact {
  padding-left: 0;
}

.quote-mark {
  position: absolute;
  left: 0;
  top: 12px;
  color: var(--acid);
  font-family: Georgia, serif;
  font-size: 44px;
  line-height: 1;
}

.challenge-prediction h3 {
  max-width: 690px;
  margin: 0;
  font-size: 22px;
  line-height: 1.25;
  letter-spacing: -0.025em;
}

.challenge-prediction em,
.detail-call h1 em {
  color: var(--acid);
  font-style: normal;
}

.price-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 20px;
  color: var(--muted);
  font-size: 11px;
}

.price-row span + span {
  padding-left: 10px;
  border-left: 1px solid var(--border);
}

.price-row b {
  color: var(--text);
}

.price-up { color: var(--success) !important; }
.price-down { color: var(--red) !important; }

.challenge-footer {
  padding-top: 18px;
  border-top: 1px solid var(--border);
}

.challenger {
  min-width: 150px;
  display: flex;
  align-items: center;
  gap: 9px;
}

.challenger strong {
  font-size: 12px;
}

.stake-box {
  margin-left: auto;
  text-align: right;
}

.stake-box span,
.activity-copy > span,
.activity-result span,
.countdown span,
.accept-heading > span {
  display: block;
  margin-bottom: 3px;
  color: var(--subtle);
  font-size: 8px;
  font-weight: 900;
  letter-spacing: .12em;
}

.stake-box strong {
  font-size: 14px;
}

.empty-state {
  padding: 72px 20px;
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius);
  text-align: center;
}

.empty-state span { font-size: 34px; color: var(--subtle); }
.empty-state h3 { margin: 12px 0 6px; }
.empty-state p { color: var(--muted); font-size: 13px; }

.market-rail {
  display: flex;
  flex-direction: column;
  gap: 13px;
}

.rail-card {
  padding: 20px;
}

.rail-heading {
  margin-bottom: 17px;
}

.rail-heading h2 {
  margin: 0;
  font-size: 14px;
}

.rail-heading > span {
  color: var(--success);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.09em;
}

.ticker-list {
  display: grid;
  gap: 4px;
}

.ticker-list > div {
  min-height: 48px;
  display: grid;
  grid-template-columns: 28px 1fr auto 52px;
  align-items: center;
  gap: 8px;
  padding: 7px 0;
  border-bottom: 1px solid rgba(35, 43, 57, 0.7);
}

.ticker-list > div:last-child {
  border: 0;
}

.ticker-list strong,
.ticker-list b {
  font-size: 11px;
}

.ticker-list em {
  text-align: right;
  font-size: 9px;
  font-style: normal;
  font-weight: 800;
}

.source-note,
.microcopy {
  margin: 12px 0 0;
  color: var(--subtle);
  font-size: 9px;
  line-height: 1.5;
}

.post-author {
  display: flex;
  align-items: center;
  gap: 10px;
}

.post-author strong {
  font-size: 12px;
}

.post-author i,
.detail-player i {
  color: var(--blue);
  font-style: normal;
}

.social-post > p,
.x-post-text {
  margin: 16px 0;
  font-size: 13px;
  line-height: 1.55;
}

.social-post > p b,
.x-post-text b {
  color: var(--blue);
}

.leaderboard-mini ol {
  display: grid;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.leaderboard-mini li {
  min-height: 53px;
  display: grid;
  grid-template-columns: 16px 34px 1fr auto;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid rgba(35, 43, 57, 0.7);
}

.leaderboard-mini li:last-child { border: 0; }
.leaderboard-mini li > span:first-child { color: var(--subtle); font-size: 10px; }
.leaderboard-mini li .avatar { width: 32px; height: 32px; }
.leaderboard-mini li div { display: flex; flex-direction: column; }
.leaderboard-mini li strong { font-size: 11px; }
.leaderboard-mini li small { color: var(--subtle); font-size: 8px; }
.leaderboard-mini li > b { font-size: 9px; }

.page-intro {
  margin-bottom: 28px;
}

.page-intro .back-link {
  display: block;
  margin-bottom: 22px;
}

.page-intro > p,
.live-header p {
  margin: 9px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.create-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 370px;
  gap: 20px;
  align-items: start;
}

.form-card,
.review-card {
  padding: 8px 28px;
}

.form-section {
  padding: 26px 0 28px;
  border-bottom: 1px solid var(--border);
}

.form-section:last-child {
  border: 0;
}

.step-title {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
}

.step-title > span {
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border: 1px solid rgba(184, 255, 63, 0.26);
  border-radius: 9px;
  color: var(--acid);
  background: rgba(184, 255, 63, 0.06);
  font-size: 11px;
  font-weight: 900;
}

.step-title h2 {
  margin: 1px 0 4px;
  font-size: 15px;
}

.step-title p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
}

.choice-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 9px;
}

.choice-card {
  min-height: 112px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 5px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface-2);
  text-align: left;
}

.choice-card:hover,
.choice-card.is-selected {
  border-color: rgba(184, 255, 63, 0.42);
  background: rgba(184, 255, 63, 0.055);
}

.choice-icon {
  min-width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  margin-bottom: 5px;
  border-radius: 8px;
  color: var(--acid);
  background: rgba(184, 255, 63, .09);
  font-size: 11px;
  font-weight: 900;
}

.choice-card strong { font-size: 12px; }
.choice-card small { color: var(--muted); font-size: 9px; }

.field-grid,
.parsed-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.field {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.field-wide {
  grid-column: 1 / -1;
}

.field > span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 750;
}

.field input,
.field select,
.select-control,
.input-prefix,
.input-suffix {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  color: var(--text);
  background: #0b0e14;
  outline: 0;
  font-size: 12px;
}

.field input,
.field select {
  padding: 0 13px;
}

.field input:focus,
.field select:focus,
.select-control:focus,
.input-prefix:focus-within,
.input-suffix:focus-within {
  border-color: var(--acid);
  box-shadow: 0 0 0 3px rgba(184, 255, 63, 0.08);
}

.select-control {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
}

.select-control > span {
  display: flex;
  align-items: center;
  gap: 9px;
}

.select-control b {
  font-size: 12px;
}

.select-control em {
  color: var(--muted);
  font-style: normal;
}

.input-prefix,
.input-suffix {
  display: flex;
  align-items: center;
}

.input-prefix > span,
.input-suffix > b {
  flex: 0 0 auto;
  padding: 0 13px;
  color: var(--muted);
  font-size: 11px;
}

.input-prefix input,
.input-suffix input {
  min-height: 46px;
  padding-left: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.market-rule-note,
.ambiguity-callout,
.open-warning,
.cancel-rule,
.safe-callout {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 14px;
  padding: 12px 13px;
  border: 1px solid rgba(95, 157, 255, 0.18);
  border-radius: 10px;
  background: rgba(95, 157, 255, 0.055);
}

.market-rule-note > span,
.ambiguity-callout > span,
.cancel-rule > span,
.safe-callout > span {
  width: 19px;
  height: 19px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--blue);
  background: rgba(95, 157, 255, 0.14);
  font-size: 10px;
  font-weight: 900;
}

.market-rule-note p,
.ambiguity-callout p,
.open-warning p,
.cancel-rule p,
.safe-callout p {
  margin: 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.5;
}

.quick-stakes {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 7px;
  margin-top: 9px;
}

.quick-stakes button {
  min-height: 40px;
  border: 1px solid var(--border);
  border-radius: 9px;
  color: var(--muted);
  background: var(--surface-2);
  font-size: 10px;
  font-weight: 800;
}

.quick-stakes button:hover,
.quick-stakes button.is-active {
  color: var(--acid);
  border-color: rgba(184, 255, 63, 0.32);
  background: rgba(184, 255, 63, 0.06);
}

.toggle-row {
  min-height: 66px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 15px;
  border: 1px solid var(--border);
  border-radius: 11px;
  background: var(--surface-2);
  cursor: pointer;
}

.toggle-row > span {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.toggle-row b { font-size: 12px; }
.toggle-row small { color: var(--muted); font-size: 9px; }
.toggle-row input { position: absolute; opacity: 0; pointer-events: none; }
.toggle-row i {
  width: 42px;
  height: 24px;
  position: relative;
  flex: 0 0 auto;
  border-radius: 999px;
  background: #293140;
  transition: background 160ms ease;
}
.toggle-row i::after {
  content: "";
  width: 18px;
  height: 18px;
  position: absolute;
  left: 3px;
  top: 3px;
  border-radius: 50%;
  background: white;
  transition: transform 160ms ease;
}
.toggle-row input:checked + i { background: var(--acid); }
.toggle-row input:checked + i::after { transform: translateX(18px); background: var(--acid-ink); }

.callout-field {
  margin-top: 12px;
}

.open-warning {
  border-color: rgba(255, 158, 85, 0.16);
  background: rgba(255, 158, 85, 0.045);
}

.open-warning > span {
  min-height: 20px;
  display: grid;
  place-items: center;
  padding: 0 6px;
  border-radius: 5px;
  color: var(--orange);
  background: rgba(255, 158, 85, .12);
  font-size: 7px;
  font-weight: 900;
}

.preview-card,
.accept-card,
.terms-panel {
  padding: 23px;
}

.sticky-card {
  position: sticky;
  top: 90px;
}

.preview-label {
  color: var(--muted);
  margin-bottom: 18px;
}

.preview-asset {
  justify-content: flex-start;
}

.preview-asset .status-pill {
  margin-left: auto;
}

.preview-card > h2 {
  margin: 22px 0;
  font-size: 24px;
  line-height: 1.2;
  letter-spacing: -0.035em;
}

.preview-versus,
.duel-row {
  display: grid;
  grid-template-columns: 1fr 48px 1fr;
  align-items: center;
  padding: 17px 10px;
  border-block: 1px solid var(--border);
}

.preview-versus > div,
.duel-row > div {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.preview-versus > b,
.duel-row > span {
  text-align: center;
  color: var(--subtle);
  font-size: 11px;
  font-weight: 900;
}

.preview-versus small,
.duel-row small {
  color: var(--muted);
  font-size: 9px;
}

.terms-list {
  display: grid;
  gap: 0;
  margin: 16px 0;
}

.terms-list > div {
  min-height: 37px;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  border-bottom: 1px solid rgba(35, 43, 57, 0.65);
}

.terms-list > div:last-child { border: 0; }
.terms-list dt { color: var(--muted); font-size: 9px; }
.terms-list dd { margin: 0; text-align: right; font-size: 10px; font-weight: 750; }

.cancel-rule {
  margin: 16px 0;
  border-color: rgba(88, 223, 167, 0.16);
  background: rgba(88, 223, 167, 0.045);
}

.cancel-rule > span,
.safe-callout > span { color: var(--success); background: rgba(88, 223, 167, .12); }

.split-intro {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
}

.xdraft-layout {
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.x-origin-card {
  position: sticky;
  top: 90px;
  padding: 23px;
}

.x-origin-heading {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 22px;
}

.x-origin-heading > span:not(.x-glyph) { font-size: 11px; font-weight: 800; }
.x-origin-heading small { margin-left: auto; color: var(--subtle); font-size: 8px; }
.x-post-text { margin: 20px 0; font-size: 17px; line-height: 1.5; letter-spacing: -0.01em; }
.x-post-meta { display: flex; gap: 25px; padding: 14px 0; border-block: 1px solid var(--border); color: var(--muted); font-size: 10px; }

.review-card {
  padding-top: 26px;
  padding-bottom: 26px;
}

.review-header {
  margin-bottom: 22px;
}

.review-header > div > span {
  color: var(--acid);
  font-size: 8px;
  font-weight: 900;
  letter-spacing: .12em;
}

.review-header h2 {
  margin: 5px 0 0;
  font-size: 22px;
}

.confidence-badge {
  padding: 8px 10px;
  border-radius: 8px;
  color: var(--success);
  background: rgba(88, 223, 167, .08);
  font-size: 9px;
  font-weight: 800;
}

.ambiguity-callout {
  margin: 18px 0;
  border-color: rgba(255, 158, 85, .2);
  background: rgba(255, 158, 85, .06);
}

.ambiguity-callout > span { color: var(--orange); background: rgba(255, 158, 85, .12); }
.ambiguity-callout strong { display: block; margin-bottom: 3px; font-size: 10px; }

.terms-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 18px 0;
}

.terms-summary > div {
  min-height: 74px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 7px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface-2);
}

.terms-summary span { color: var(--muted); font-size: 8px; }
.terms-summary b { font-size: 12px; }

.review-legal {
  margin: 18px 0;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #0a0d12;
}

.review-legal label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.5;
  cursor: pointer;
}

.review-legal input { width: 17px; height: 17px; accent-color: var(--acid); }

.detail-shell > .back-link {
  margin-bottom: 20px;
}

.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 20px;
  align-items: start;
}

.challenge-detail-card {
  overflow: hidden;
}

.challenge-detail-heading {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
}

.detail-call {
  padding: 35px 34px 30px;
}

.detail-call h1 {
  max-width: 720px;
  margin: 12px 0 24px;
  font-size: clamp(34px, 4.2vw, 52px);
  line-height: 1.05;
  letter-spacing: -.05em;
}

.detail-player {
  display: flex;
  align-items: center;
  gap: 10px;
}

.detail-player > div { display: flex; flex-direction: column; gap: 3px; }
.detail-player b { font-size: 11px; }
.detail-player span { color: var(--muted); font-size: 9px; }
.detail-player button { margin-left: auto; }

.chart-card {
  margin: 0 24px 24px;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 13px;
  background: #090c11;
}

.chart-heading > div:first-child { display: flex; align-items: baseline; gap: 9px; flex-wrap: wrap; }
.chart-heading span { width: 100%; color: var(--subtle); font-size: 8px; font-weight: 900; letter-spacing: .1em; }
.chart-heading strong { font-size: 26px; letter-spacing: -.03em; }
.chart-heading em { font-size: 10px; font-style: normal; font-weight: 800; }
.chart-range { display: flex; gap: 3px; padding: 3px; border-radius: 8px; background: var(--surface-2); }
.chart-range button { min-width: 34px; height: 30px; border-radius: 6px; color: var(--muted); background: transparent; font-size: 9px; font-weight: 800; }
.chart-range button.is-active { color: var(--text); background: var(--surface-3); }
.chart-card svg { width: 100%; height: auto; margin-top: 20px; overflow: visible; }
.gridlines line { stroke: #1b222e; stroke-width: 1; }
.target-line { stroke: var(--violet); stroke-width: 1; stroke-dasharray: 6 6; opacity: .75; }
.target-label { fill: var(--violet); font-size: 10px; font-weight: 800; }
.chart-area { fill: url(#area); }
.chart-line { fill: none; stroke: var(--acid); stroke-width: 3; stroke-linecap: round; }
.chart-point { fill: var(--acid); stroke: rgba(184,255,63,.24); stroke-width: 8; }
.chart-axis { display: flex; justify-content: space-between; color: var(--subtle); font-size: 8px; }

.accept-heading {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.accept-heading strong {
  font-size: 21px;
  letter-spacing: -.03em;
}

.duel-row {
  margin: 20px 0;
}

.strong-terms {
  margin-bottom: 18px;
}

.strong-terms .highlight-term {
  margin-top: 7px;
  padding: 12px;
  border: 1px solid rgba(184, 255, 63, .15);
  border-radius: 9px;
  background: rgba(184, 255, 63, .05);
}

.strong-terms .highlight-term dd {
  color: var(--acid);
  font-size: 14px;
}

.rules-box {
  margin: 18px 0;
  padding: 15px;
  border: 1px solid var(--border);
  border-radius: 11px;
  background: #090c11;
}

.rules-box h3 { margin: 0 0 11px; font-size: 10px; }
.rules-box ul { display: grid; gap: 9px; margin: 0; padding: 0; list-style: none; }
.rules-box li { display: flex; justify-content: space-between; gap: 12px; color: var(--muted); font-size: 8px; }
.rules-box li b { color: var(--text); text-align: right; font-weight: 700; }
.accept-card .button + .button { margin-top: 7px; }

.live-header {
  align-items: flex-end;
  margin-bottom: 24px;
}

.live-header h1 { margin: 13px 0 0; font-size: 38px; letter-spacing: -.045em; }
.countdown { text-align: right; }
.countdown b { font-size: 20px; font-variant-numeric: tabular-nums; }

.live-duel {
  min-height: 280px;
  display: grid;
  grid-template-columns: 1fr 120px 1fr;
  align-items: center;
  gap: 24px;
  padding: 38px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: radial-gradient(circle at center, rgba(155, 131, 255, .14), transparent 26%), var(--surface);
}

.live-player { display: flex; flex-direction: column; align-items: center; text-align: center; }
.live-player .avatar { width: 74px; height: 74px; margin-bottom: 13px; font-size: 13px; }
.live-player h2 { margin: 0 0 6px; font-size: 18px; }
.live-player p { margin: 0 0 12px; color: var(--muted); font-size: 12px; }
.live-player > b { color: var(--acid); font-size: 11px; }
.live-vs { display: flex; flex-direction: column; align-items: center; gap: 7px; }
.live-vs > b { width: 68px; height: 68px; display: grid; place-items: center; border: 1px solid var(--border-strong); border-radius: 50%; background: var(--surface-3); font-size: 17px; transform: rotate(-5deg); }
.live-vs > span { color: var(--text); font-size: 11px; font-weight: 800; }
.live-vs > small { color: var(--subtle); font-size: 8px; font-weight: 900; letter-spacing: .1em; }

.live-grid {
  display: grid;
  grid-template-columns: 1.25fr .75fr;
  gap: 18px;
  margin-top: 18px;
}

.timeline-card { padding: 24px; }
.timeline-card h2,
.terms-panel h2 { margin: 0 0 20px; font-size: 14px; }
.timeline-card ol { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.timeline-card li { min-height: 62px; position: relative; display: flex; gap: 12px; color: var(--subtle); }
.timeline-card li::after { content: ""; width: 1px; height: 31px; position: absolute; left: 13px; top: 30px; background: var(--border); }
.timeline-card li:last-child::after { display: none; }
.timeline-card li > span { width: 27px; height: 27px; flex: 0 0 auto; display: grid; place-items: center; border: 1px solid var(--border); border-radius: 50%; background: var(--surface-2); font-size: 9px; font-weight: 900; }
.timeline-card li > div { display: flex; flex-direction: column; gap: 4px; padding-top: 2px; }
.timeline-card li b { color: var(--muted); font-size: 11px; }
.timeline-card li small { font-size: 9px; }
.timeline-card li.is-done > span { color: var(--acid-ink); border-color: var(--acid); background: var(--acid); }
.timeline-card li.is-done b { color: var(--text); }
.timeline-card li.is-current > span { color: var(--acid); border-color: rgba(184,255,63,.4); background: rgba(184,255,63,.07); }
.timeline-card li.is-current b { color: var(--text); }

.stats-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-bottom: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.stats-strip > div { padding: 20px; border-right: 1px solid var(--border); }
.stats-strip > div:last-child { border: 0; }
.stats-strip span { display: block; margin-bottom: 7px; color: var(--subtle); font-size: 8px; font-weight: 900; letter-spacing: .11em; }
.stats-strip b { font-size: 18px; }

.activity-tabs { margin-bottom: 13px; }
.activity-list { display: grid; gap: 10px; }
.activity-list article { min-height: 102px; display: grid; grid-template-columns: 48px 1fr auto auto; align-items: center; gap: 14px; padding: 18px 20px; }
.result-icon { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; font-size: 14px; font-weight: 950; }
.result-win { color: var(--acid-ink); background: var(--acid); }
.result-live { color: var(--success); background: rgba(88,223,167,.11); }
.result-open { color: var(--orange); background: rgba(255,158,85,.1); }
.activity-copy h2 { margin: 3px 0; font-size: 14px; }
.activity-copy p { margin: 0; color: var(--muted); font-size: 9px; }
.activity-result { min-width: 110px; text-align: right; }
.activity-result span { color: var(--success); }
.activity-result b { color: var(--success); font-size: 13px; }
.activity-result.neutral span { color: var(--subtle); }
.activity-result.neutral b { color: var(--text); }

.podium {
  display: grid;
  grid-template-columns: 1fr 1.12fr 1fr;
  align-items: end;
  gap: 12px;
  margin: 40px auto 24px;
  max-width: 790px;
}

.podium-place {
  min-height: 210px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 25px 15px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  text-align: center;
}

.podium-place.first { min-height: 255px; border-color: rgba(184,255,63,.25); background: linear-gradient(180deg, rgba(184,255,63,.06), var(--surface) 45%); }
.podium-place .avatar { width: 61px; height: 61px; margin-bottom: 13px; font-size: 13px; }
.podium-place h2 { margin: 0 0 5px; font-size: 15px; }
.podium-place p { margin: 0 0 9px; color: var(--muted); font-size: 10px; }
.podium-place > b { color: var(--acid); font-size: 11px; }
.rank-medal { position: absolute; top: 12px; left: 12px; width: 26px; height: 26px; display: grid; place-items: center; border-radius: 8px; color: var(--muted); background: var(--surface-3); font-size: 10px; font-weight: 900; }
.first .rank-medal { color: var(--acid-ink); background: var(--acid); }
.crown { position: absolute; top: -24px; color: var(--acid); font-size: 30px; }

.ranking-table { overflow: hidden; }
.ranking-head,
.ranking-row { display: grid; grid-template-columns: 70px 1.4fr .7fr .8fr .6fr; align-items: center; gap: 12px; padding: 0 20px; }
.ranking-head { min-height: 42px; color: var(--subtle); background: var(--surface-2); font-size: 8px; font-weight: 900; letter-spacing: .1em; }
.ranking-row { min-height: 72px; border-top: 1px solid var(--border); color: var(--muted); font-size: 11px; }
.ranking-row.is-you { background: rgba(184,255,63,.035); }
.ranking-row > span:nth-child(2) { display: grid; grid-template-columns: 37px 1fr; align-items: center; column-gap: 9px; }
.ranking-row .avatar { width: 34px; height: 34px; grid-row: span 2; }
.ranking-row strong,
.ranking-row b { color: var(--text); }
.ranking-row small { color: var(--subtle); font-size: 8px; }

.profile-hero {
  margin-top: 18px;
  padding: 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at 12% 20%, rgba(184, 255, 63, 0.12), transparent 33%),
    linear-gradient(135deg, var(--surface-2), var(--surface));
  box-shadow: var(--shadow);
}

.profile-identity,
.profile-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.profile-avatar {
  width: 82px;
  height: 82px;
  font-size: 21px;
  box-shadow: 0 0 0 6px rgba(184, 255, 63, 0.08);
}

.profile-identity h1 {
  margin: 6px 0 2px;
  font-size: 31px;
  letter-spacing: -0.04em;
}

.profile-identity h1 i {
  color: var(--acid);
  font-style: normal;
}

.profile-identity p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.profile-stats { margin-top: 16px; }

.profile-grid {
  margin-top: 16px;
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(290px, 0.75fr);
  gap: 16px;
}

.profile-panel {
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: var(--surface);
}

.compact-heading { margin-bottom: 18px; }
.compact-heading h2,
.badges-panel h2 { margin: 6px 0 0; font-size: 19px; }

.profile-calls { display: grid; gap: 9px; }

.profile-calls article {
  min-height: 82px;
  padding: 14px;
  display: grid;
  grid-template-columns: 42px 1fr auto;
  align-items: center;
  gap: 13px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface-2);
}

.profile-calls article > div > span {
  color: var(--subtle);
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.profile-calls h3 { margin: 3px 0; font-size: 14px; }
.profile-calls p { margin: 0; color: var(--muted); font-size: 10px; }

.result-loss {
  color: var(--red);
  border: 1px solid rgba(255, 87, 109, 0.35);
  background: rgba(255, 87, 109, 0.08);
}

.badge-grid {
  margin-top: 18px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
}

.badge-grid > div {
  min-height: 112px;
  padding: 15px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface-2);
}

.badge-grid > div > span { margin-bottom: 9px; font-size: 23px; }
.badge-grid b { font-size: 11px; }
.badge-grid small { margin-top: 3px; color: var(--muted); font-size: 9px; line-height: 1.4; }
.badges-panel .microcopy { margin-top: 14px; }

.mobile-nav {
  display: none;
}

.modal {
  width: min(470px, calc(100% - 28px));
  max-height: calc(100vh - 36px);
  padding: 0;
  border: 1px solid var(--border-strong);
  border-radius: 20px;
  color: var(--text);
  background: var(--surface);
  box-shadow: 0 34px 110px rgba(0,0,0,.7);
}

.modal::backdrop {
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(7px);
}

.modal-shell {
  position: relative;
  padding: 30px;
}

.modal-close {
  width: 40px;
  height: 40px;
  position: absolute;
  top: 15px;
  right: 15px;
  z-index: 3;
  border-radius: 10px;
  color: var(--muted);
  background: var(--surface-2);
  font-size: 22px;
}

.modal-step { display: none; text-align: center; }
.modal-step.is-active { display: block; }
.modal-step > h2 { margin: 8px 0; font-size: 25px; letter-spacing: -.04em; }
.modal-step > p { margin: 0 0 20px; color: var(--muted); font-size: 12px; line-height: 1.55; }
.modal-icon { width: 56px; height: 56px; display: grid; place-items: center; margin: 4px auto 18px; border: 1px solid rgba(155,131,255,.24); border-radius: 17px; color: var(--violet); background: rgba(155,131,255,.08); font-size: 25px; }
.success-icon { color: var(--success); border-color: rgba(88,223,167,.2); background: rgba(88,223,167,.07); }

.wallet-options { display: grid; gap: 8px; margin: 20px 0 4px; }
.wallet-options button { min-height: 62px; display: grid; grid-template-columns: 38px 1fr auto; align-items: center; gap: 12px; padding: 10px 13px; border: 1px solid var(--border); border-radius: 11px; background: var(--surface-2); text-align: left; }
.wallet-options button:hover { border-color: var(--border-strong); background: var(--surface-3); }
.wallet-options button b { font-size: 12px; }
.wallet-options button em { color: var(--muted); font-size: 8px; font-style: normal; }
.wallet-logo { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 10px; font-size: 11px; font-weight: 900; }
.rh-wallet { color: #071108; background: #65db83; }
.mm-wallet { color: #2b1304; background: #f59657; }
.wc-wallet { color: white; background: #4389f8; }

.transaction-review { margin: 22px 0; padding: 8px 16px; border: 1px solid var(--border); border-radius: 12px; background: #090c11; text-align: left; }
.transaction-review > div { min-height: 43px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--border); }
.transaction-review > div:last-child { border: 0; }
.transaction-review dt { color: var(--muted); font-size: 9px; }
.transaction-review dd { margin: 0; font-size: 10px; font-weight: 750; }
.safe-callout { margin-bottom: 18px; text-align: left; }
.modal-step .button + .button { margin-top: 8px; }
.success-burst { width: 84px; height: 84px; display: grid; place-items: center; margin: 3px auto 20px; border-radius: 50%; color: var(--acid-ink); background: var(--acid); box-shadow: 0 0 0 14px rgba(184,255,63,.08); font-size: 31px; font-weight: 900; }

.receipt-modal { width: min(520px, calc(100% - 28px)); }
.receipt-shell { padding-top: 55px; }
.receipt-art { overflow: hidden; position: relative; margin-bottom: 16px; padding: 23px; border: 1px solid rgba(184,255,63,.22); border-radius: 16px; background: radial-gradient(circle at 100% 0, rgba(155,131,255,.22), transparent 34%), linear-gradient(145deg, #131923, #090c11); }
.receipt-art::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .07; background-image: linear-gradient(45deg, transparent 48%, white 49%, white 51%, transparent 52%); background-size: 24px 24px; }
.receipt-brand { position: relative; z-index: 1; display: grid; grid-template-columns: 27px auto 1fr; align-items: center; gap: 8px; }
.receipt-brand .brand-mark { width: 27px; height: 27px; }
.receipt-brand > span:last-child { justify-self: end; color: var(--muted); font-size: 7px; font-weight: 900; letter-spacing: .08em; }
.receipt-result { position: relative; z-index: 1; padding: 37px 0 26px; }
.receipt-result > span { color: var(--acid); font-size: 10px; font-weight: 900; letter-spacing: .13em; }
.receipt-result h2 { margin: 8px 0 19px; font-size: 32px; line-height: 1.06; letter-spacing: -.05em; }
.receipt-price { display: flex; gap: 28px; }
.receipt-price span { display: flex; flex-direction: column; gap: 4px; color: var(--muted); font-size: 8px; }
.receipt-price b { color: var(--text); font-size: 15px; }
.receipt-winner { position: relative; z-index: 1; display: flex; align-items: center; gap: 12px; padding: 16px 0; border-block: 1px solid var(--border); }
.receipt-winner .avatar { width: 52px; height: 52px; }
.receipt-winner > div { display: flex; flex-direction: column; }
.receipt-winner span { color: var(--acid); font-size: 7px; font-weight: 900; letter-spacing: .12em; }
.receipt-winner h3 { margin: 3px 0; font-size: 13px; }
.receipt-winner p { margin: 0; color: var(--muted); font-size: 9px; }
.receipt-proof { position: relative; z-index: 1; display: flex; justify-content: space-between; gap: 12px; padding-top: 16px; color: var(--muted); font-size: 7px; font-weight: 800; }
.receipt-proof span:first-child { color: var(--success); }

.asset-modal { width: min(610px, calc(100% - 28px)); }
.asset-shell > h2 { margin: 7px 0 20px; font-size: 27px; }
.modal-search { width: 100%; height: 52px; margin-bottom: 11px; }
.asset-tabs { margin-bottom: 11px; }
.asset-results { display: grid; gap: 5px; max-height: 330px; overflow: auto; }
.asset-results > button { min-height: 60px; display: grid; grid-template-columns: 40px 1fr auto auto; align-items: center; gap: 11px; padding: 8px 11px; border: 1px solid transparent; border-radius: 11px; background: var(--surface-2); text-align: left; }
.asset-results > button:hover { border-color: var(--border-strong); background: var(--surface-3); }
.asset-results > button > div { display: flex; flex-direction: column; gap: 3px; }
.asset-results > button b { font-size: 11px; }
.asset-results > button small { color: var(--muted); font-size: 8px; }
.asset-results > button em { font-size: 10px; font-style: normal; font-weight: 700; }
.ready-tag,
.review-tag { padding: 5px 6px; border-radius: 5px; color: var(--success); background: rgba(88,223,167,.08); font-size: 7px; font-weight: 900; }
.review-tag { color: var(--orange); background: rgba(255,158,85,.08); }
.request-asset { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-top: 13px; padding: 14px; border: 1px dashed var(--border-strong); border-radius: 11px; }
.request-asset b { font-size: 10px; }
.request-asset p { max-width: 360px; margin: 3px 0 0; color: var(--muted); font-size: 8px; line-height: 1.45; }

.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 100;
  max-width: calc(100% - 28px);
  padding: 12px 16px;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  color: var(--text);
  background: #181e28;
  box-shadow: var(--shadow);
  font-size: 11px;
  font-weight: 700;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 12px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid rgba(184, 255, 63, 0.62) !important;
  outline-offset: 2px;
}

@media (max-width: 1120px) {
  .market-shell { grid-template-columns: 1fr; }
  .market-rail { display: grid; grid-template-columns: repeat(3, 1fr); }
  .hero-panel { padding: 42px; }
  .topbar { padding-inline: 22px; }
  .chain-name { display: none; }
}

@media (max-width: 900px) {
  .desktop-nav { display: none; }
  .topbar { grid-template-columns: 1fr auto; }
  .hero-panel { grid-template-columns: 1fr; }
  .hero-copy { text-align: center; }
  .hero-copy > p { margin-inline: auto; }
  .hero-actions { justify-content: center; }
  .create-layout,
  .detail-grid { grid-template-columns: 1fr; }
  .sticky-card { position: static; }
  .xdraft-layout { grid-template-columns: 1fr; }
  .x-origin-card { position: static; }
  .market-rail { grid-template-columns: 1fr 1fr; }
  .leaderboard-mini { grid-column: span 2; }
  .profile-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  body { padding-bottom: 72px; }
  .prototype-banner { min-height: 24px; font-size: 8px; }
  .prototype-banner span + span { display: none; }
  .topbar { height: 60px; padding: 0 15px; }
  .brand { font-size: 16px; }
  .brand-mark { width: 27px; height: 27px; }
  .chain-pill { display: none; }
  .wallet-button { min-height: 40px; padding-inline: 12px; }
  .wallet-label { font-size: 11px; }
  .page-shell,
  .narrow-shell,
  .detail-shell { width: min(100% - 24px, 100%); padding: 22px 0 36px; }
  .hero-panel { min-height: 0; display: block; padding: 30px 21px 21px; border-radius: 18px; }
  .hero-copy h1 { margin-top: 15px; font-size: 45px; }
  .hero-copy > p { font-size: 13px; }
  .hero-actions { flex-direction: column; }
  .hero-versus { min-height: 180px; grid-template-columns: 1fr 58px 1fr; margin-top: 23px; padding: 20px 8px; }
  .versus-person .avatar { width: 50px; height: 50px; }
  .versus-person strong { font-size: 11px; }
  .versus-person > span:last-child { font-size: 9px; }
  .versus-center b { width: 42px; height: 42px; font-size: 10px; }
  .marketplace-section { padding-top: 32px; }
  .section-heading { align-items: flex-end; }
  .section-heading h2,
  .page-intro h1 { font-size: 25px; }
  .text-button { font-size: 10px; }
  .filters { flex-direction: column; }
  .segmented { width: 100%; }
  .filter-chip { flex: 1; }
  .search-box { width: 100%; min-width: 0; }
  .challenge-card { padding: 18px; }
  .challenge-prediction { padding-top: 21px; }
  .challenge-prediction h3 { font-size: 18px; }
  .price-row { flex-wrap: wrap; line-height: 1.6; }
  .challenge-footer { display: grid; grid-template-columns: 1fr auto; }
  .challenge-footer .button { grid-column: 1 / -1; width: 100%; }
  .stake-box { margin-left: 0; }
  .market-rail { grid-template-columns: 1fr; }
  .leaderboard-mini { grid-column: auto; }
  .choice-grid { grid-template-columns: 1fr; }
  .choice-card { min-height: 76px; display: grid; grid-template-columns: 35px 1fr; grid-template-rows: auto auto; align-items: center; column-gap: 11px; }
  .choice-icon { grid-row: span 2; margin: 0; }
  .choice-card strong { align-self: end; }
  .choice-card small { align-self: start; }
  .field-grid,
  .parsed-fields { grid-template-columns: 1fr; }
  .form-card,
  .review-card { padding-inline: 18px; }
  .quick-stakes { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .quick-stakes button { min-width: 0; font-size: 9px; }
  .split-intro { align-items: flex-start; flex-direction: column; }
  .split-intro .status-pill { order: -1; }
  .x-origin-card { padding: 18px; }
  .x-post-text { font-size: 15px; }
  .terms-summary { grid-template-columns: 1fr; }
  .detail-grid { display: flex; flex-direction: column; }
  .challenge-detail-card,
  .accept-card { width: 100%; }
  .challenge-detail-heading { padding: 16px; }
  .detail-call { padding: 25px 18px 20px; }
  .detail-call h1 { font-size: 34px; }
  .chart-card { margin: 0 12px 12px; padding: 14px; }
  .chart-heading { align-items: flex-start; }
  .chart-heading strong { font-size: 21px; }
  .live-header { align-items: flex-start; flex-direction: column; }
  .countdown { text-align: left; }
  .live-duel { min-height: 0; grid-template-columns: 1fr 62px 1fr; gap: 8px; padding: 25px 10px; }
  .live-player .avatar { width: 53px; height: 53px; }
  .live-player h2 { font-size: 13px; }
  .live-player p { min-height: 30px; font-size: 9px; }
  .live-player > b { font-size: 8px; }
  .live-vs > b { width: 47px; height: 47px; font-size: 11px; }
  .live-vs > span { font-size: 8px; }
  .live-grid { grid-template-columns: 1fr; }
  .stats-strip { grid-template-columns: 1fr 1fr; }
  .stats-strip > div:nth-child(2) { border-right: 0; }
  .stats-strip > div:nth-child(-n+2) { border-bottom: 1px solid var(--border); }
  .activity-tabs { width: 100%; overflow-x: auto; }
  .activity-tabs button { flex: 1 0 auto; }
  .activity-list article { grid-template-columns: 44px 1fr; padding: 15px; }
  .activity-result { min-width: 0; grid-column: 2; text-align: left; }
  .activity-list article .button { grid-column: 1 / -1; width: 100%; }
  .podium { grid-template-columns: 1fr; align-items: stretch; margin-top: 30px; }
  .podium-place,
  .podium-place.first { min-height: 170px; }
  .podium-place.first { order: -1; }
  .podium-place .avatar { width: 53px; height: 53px; }
  .ranking-table { overflow-x: auto; }
  .ranking-head,
  .ranking-row { min-width: 620px; }
  .profile-hero { align-items: flex-start; flex-direction: column; padding: 22px 18px; }
  .profile-identity { align-items: flex-start; }
  .profile-avatar { width: 62px; height: 62px; }
  .profile-identity h1 { font-size: 24px; }
  .profile-actions { width: 100%; }
  .profile-actions .button { flex: 1; }
  .profile-panel { padding: 18px; }
  .profile-calls article { grid-template-columns: 40px 1fr; }
  .profile-calls article > b { grid-column: 2; }
  .badge-grid { grid-template-columns: 1fr 1fr; }
  .mobile-nav { height: 66px; position: fixed; inset: auto 0 0; z-index: 40; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--border); background: rgba(8,10,14,.96); backdrop-filter: blur(16px); }
  .mobile-nav button { min-height: 58px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; color: var(--subtle); background: transparent; font-size: 8px; font-weight: 800; }
  .mobile-nav button span { font-size: 18px; line-height: 1; }
  .mobile-nav button.is-active { color: var(--acid); }
  .modal-shell { padding: 28px 20px 22px; }
  .asset-results > button { grid-template-columns: 38px 1fr auto; }
  .asset-results .ready-tag,
  .asset-results .review-tag { grid-column: 2 / -1; justify-self: start; margin-top: -6px; }
  .request-asset { align-items: flex-start; flex-direction: column; }
  .request-asset .button { width: 100%; }
  .receipt-result h2 { font-size: 27px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
