:root {
  --bg: #070c19;
  --bg-soft: #0c1428;
  --card: #121c33;
  --card-soft: #17233d;
  --line: #283a61;
  --line-bright: #4265a4;
  --text: #f5f8ff;
  --muted: #99a9c7;
  --accent: #7c9cff;
  --accent-bright: #44b8ff;
  --success: #38c99c;
  --danger: #f06b7a;
  --gold: #e5b85d;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 82% 8%, rgba(40, 87, 184, .22), transparent 34rem),
    radial-gradient(circle at 10% 70%, rgba(21, 68, 143, .13), transparent 30rem),
    var(--bg);
  color: var(--text);
  font: 15px/1.6 Inter, "Segoe UI", system-ui, sans-serif;
}
a { color: #b9caff; text-decoration: none; transition: color .18s ease, border-color .18s ease, transform .18s ease; }
a:hover { color: white; }
.site-header {
  position: relative;
  z-index: 10;
  max-width: 1200px;
  margin: auto;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  gap: 28px;
  border-bottom: 1px solid rgba(75, 103, 160, .34);
}
.brand { display: inline-flex; align-items: center; gap: 10px; color: white; font-weight: 800; font-size: 20px; letter-spacing: -.5px; }
.brand-mark {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid #6f93e8;
  border-radius: 50%;
  background: linear-gradient(145deg, #203e79, #0d1730);
  box-shadow: inset 0 0 12px rgba(93, 153, 255, .32), 0 0 18px rgba(69, 130, 255, .18);
  color: #dce8ff;
  font-size: 15px;
}
nav { display: flex; gap: 18px; flex: 1; }
.user-menu { display: flex; gap: 14px; align-items: center; color: var(--muted); font-size: 13px; }
.user-menu strong { color: var(--success); }
.link-button { border: 0; background: transparent; color: #b9c8ff; cursor: pointer; padding: 0; }
.container { max-width: 1200px; margin: 0 auto; padding: 42px 24px 72px; }
footer { max-width: 1200px; margin: auto; padding: 26px 24px; color: var(--muted); font-size: 12px; border-top: 1px solid rgba(75, 103, 160, .32); }
footer strong { color: #dbe6ff; }
h1 { margin: 0; font-size: 34px; letter-spacing: -1px; }
h2 { margin: 0; font-size: 18px; }
p { color: var(--muted); }
.eyebrow { color: #84a7ff; font-size: 12px; font-weight: 800; letter-spacing: 1.7px; margin: 0 0 10px; }

.hero-stage {
  position: relative;
  isolation: isolate;
  min-height: 570px;
  display: flex;
  align-items: center;
  overflow: hidden;
  margin-top: 24px;
  padding: 72px 64px;
  border: 1px solid rgba(75, 113, 190, .3);
  border-radius: 28px;
  background:
    linear-gradient(90deg, rgba(8, 16, 34, .99) 0%, rgba(10, 23, 49, .96) 48%, rgba(9, 19, 40, .58) 73%, rgba(7, 13, 27, .2) 100%),
    radial-gradient(circle at 79% 45%, rgba(43, 102, 224, .3), transparent 36%),
    #091226;
  box-shadow: 0 38px 100px rgba(0, 0, 0, .3);
}
.hero-stage::before {
  content: "";
  position: absolute;
  z-index: 2;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(89, 129, 213, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(89, 129, 213, .045) 1px, transparent 1px);
  background-size: 42px 42px;
  -webkit-mask-image: linear-gradient(90deg, #000, rgba(0, 0, 0, .65) 52%, transparent 85%);
  mask-image: linear-gradient(90deg, #000, rgba(0, 0, 0, .65) 52%, transparent 85%);
}
.hero-copy { position: relative; z-index: 3; width: min(61%, 650px); padding: 0; }
.hero-copy h1 { max-width: 650px; font-size: clamp(46px, 6vw, 76px); line-height: 1.04; letter-spacing: -3.2px; }
.hero-copy h1 span {
  color: #a9c3ff;
  background: linear-gradient(100deg, #f8fbff, #8ab2ff 62%, #5b8ef0);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-lead { max-width: 590px; margin: 24px 0 0; font-size: 17px; line-height: 1.85; }
.hero-actions { display: flex; align-items: center; gap: 24px; margin-top: 30px; }
.hero-button { min-height: 48px; padding-inline: 20px; box-shadow: 0 12px 34px rgba(65, 118, 238, .24); }
.text-link { font-weight: 700; }
.text-link span { margin-left: 5px; color: var(--accent-bright); }
.hero-signals { display: flex; flex-wrap: wrap; gap: 12px 22px; margin-top: 30px; }
.hero-signals span {
  color: #b8c9eb;
  padding: 0;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .02em;
}
.hero-signals span::before {
  content: "";
  display: inline-block;
  width: 5px;
  height: 5px;
  margin: 0 8px 2px 0;
  border-radius: 50%;
  background: #6e9cff;
  box-shadow: 0 0 12px rgba(91, 142, 255, .9);
}
.hero-art {
  position: absolute;
  z-index: 1;
  top: 50%;
  right: -112px;
  width: min(720px, 61vw);
  aspect-ratio: 1;
  transform: translateY(-50%);
  pointer-events: none;
}
.hero-art img {
  position: absolute;
  z-index: 1;
  inset: 0;
  width: 100%;
  height: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  opacity: .78;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, .45) 19%, #000 44%, #000 82%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, .45) 19%, #000 44%, #000 82%, transparent 100%);
  filter: saturate(.9) contrast(1.04) drop-shadow(0 30px 46px rgba(0, 0, 0, .65));
}
.coin-glow {
  position: absolute;
  z-index: 0;
  inset: 13%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(58, 121, 255, .38), rgba(31, 72, 156, .14) 45%, transparent 72%);
  filter: blur(28px);
}
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin: 22px 0 34px;
  padding: 24px 8px;
  border-top: 1px solid rgba(70, 101, 165, .3);
  border-bottom: 1px solid rgba(70, 101, 165, .3);
}
.feature-card {
  position: relative;
  min-height: 126px;
  padding: 10px 34px;
  border-left: 1px solid rgba(70, 101, 165, .3);
}
.feature-card:first-child { border-left: 0; }
.feature-card h2 { margin: 14px 0 7px; font-size: 17px; }
.feature-card p { margin: 0; font-size: 13px; }
.feature-number { color: #7297f1; font: 700 11px/1 monospace; letter-spacing: 1px; }

.page-heading, .section-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 26px; }
.section-heading { align-items: center; margin-bottom: 14px; }
.button { display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: 8px; background: #202c4b; color: white; padding: 9px 14px; font-weight: 700; cursor: pointer; }
.button:hover { transform: translateY(-1px); border-color: #6685c7; }
.button.primary { background: linear-gradient(135deg, #89a7ff, #5d82e6); border-color: #8eaaff; color: #081126; }
.button.danger { background: var(--danger); border-color: var(--danger); color: #251019; }
.balance-card { display: flex; flex-direction: column; gap: 2px; background: linear-gradient(120deg, #263867, #1a2748); border: 1px solid #526ba9; border-radius: 12px; padding: 26px; margin-bottom: 24px; }
.balance-card span { color: #ccd8ff; }
.balance-card strong { color: white; font-size: 42px; letter-spacing: -1px; }
.grid { display: grid; gap: 20px; margin-bottom: 20px; }
.grid.two { grid-template-columns: 1fr 1fr; }
.card { display: block; background: linear-gradient(145deg, var(--card), #10182c); border: 1px solid var(--line); border-radius: 12px; padding: 20px; color: inherit; margin-bottom: 20px; box-shadow: 0 14px 34px rgba(0, 0, 0, .11); }
.bets-heading { margin-bottom: 48px; }
.market-section { margin: 0 0 54px; }
.market-section-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 19px; }
.market-section-heading > div { position: relative; }
.market-section-heading .eyebrow { margin-bottom: 5px; }
.market-section-heading h2 { font-size: 25px; letter-spacing: -.5px; }
.market-section-heading p:last-child { margin: 6px 0 0; font-size: 12px; }
.market-count { flex: 0 0 auto; color: #657797; font: 700 10px/1.2 monospace; letter-spacing: 1px; }
.market-count strong { color: #afc5ee; font-size: 18px; }
.open-markets-section,
.resolved-markets-section,
.awaiting-markets-section {
  position: relative;
  padding: 26px;
  border: 1px solid rgba(59, 82, 132, .68);
  border-radius: 20px;
  background: linear-gradient(145deg, rgba(14, 24, 45, .96), rgba(8, 15, 29, .98));
  box-shadow: 0 22px 58px rgba(0, 0, 0, .2), inset 0 1px rgba(255, 255, 255, .035);
}
.open-markets-section {
  border-color: rgba(65, 103, 180, .74);
  background:
    radial-gradient(circle at 100% 0, rgba(52, 104, 218, .13), transparent 28rem),
    linear-gradient(145deg, rgba(15, 27, 52, .98), rgba(8, 16, 31, .99));
}
.open-section-heading { padding: 0 0 17px 25px; border-bottom: 1px solid rgba(73, 105, 170, .42); }
.live-indicator {
  position: absolute;
  left: -24px;
  top: 6px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #6b9dff;
  box-shadow: 0 0 0 6px rgba(77, 133, 255, .11), 0 0 20px rgba(80, 139, 255, .95);
  animation: live-pulse 1.8s ease-in-out infinite;
}
.open-market-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(310px, 1fr)); gap: 18px; }
.open-market-card {
  position: relative;
  display: flex;
  overflow: hidden;
  min-height: 286px;
  flex-direction: column;
  border: 1px solid rgba(83, 119, 191, .78);
  border-radius: 17px;
  background: linear-gradient(145deg, #17294c, #0d1a32);
  padding: 24px 25px 0;
  color: inherit;
  box-shadow: 0 18px 48px rgba(0, 0, 0, .23), inset 0 1px rgba(255, 255, 255, .035);
}
.open-market-card::before { content: ""; position: absolute; inset: 0 0 auto; height: 2px; background: linear-gradient(90deg, #78a5ff, rgba(65, 128, 250, .1) 68%, transparent); }
.open-market-card:hover { border-color: #668fe3; color: inherit; transform: translateY(-4px); box-shadow: 0 25px 60px rgba(0, 0, 0, .3), 0 0 32px rgba(61, 117, 228, .1); }
.open-market-index { position: absolute; z-index: 2; top: 17px; right: 20px; color: rgba(131, 168, 238, .1); font: 800 54px/1 monospace; letter-spacing: -5px; }
.open-market-head { position: relative; z-index: 1; display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin: -24px -25px 0; padding: 19px 25px 17px; border-bottom: 1px solid rgba(78, 111, 178, .42); background: rgba(9, 19, 39, .48); }
.open-market-head .status { margin-top: 3px; padding: 6px 9px; font: 800 9px/1 monospace; letter-spacing: 1.2px; }
.open-market-deadline { display: grid; justify-items: end; gap: 2px; padding-right: 48px; }
.open-market-deadline small { color: #667b9f; font: 700 9px/1 monospace; letter-spacing: 1px; }
.open-market-deadline strong { color: #c9daff; font: 700 22px/1 monospace; }
.open-market-deadline strong span { color: #7891bc; font-size: 10px; letter-spacing: .5px; }
.open-market-copy { position: relative; z-index: 1; margin: 0; padding: 27px 0 30px; }
.open-market-copy h3 { max-width: 90%; margin: 0; color: #f4f7ff; font-size: 22px; line-height: 1.48; letter-spacing: -.3px; }
.open-market-copy p { margin: 12px 0 0; color: #607392; font: 700 9px/1.3 monospace; letter-spacing: .8px; }
.open-market-copy p strong { color: #899dbf; }
.open-market-footer { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(115px, 1fr) 72px auto; align-items: center; gap: 20px; margin: auto -25px 0; padding: 17px 20px 18px 25px; border-top: 1px solid rgba(70, 100, 158, .35); background: rgba(7, 15, 31, .5); }
.market-stat { display: grid; gap: 4px; }
.market-stat small { color: #5f7292; font: 700 9px/1 monospace; letter-spacing: .8px; }
.market-stat strong { color: #dce7fc; font-size: 16px; }
.pool-stat strong { color: #e7c37b; font-size: 20px; text-shadow: 0 0 20px rgba(218, 171, 73, .13); }
.market-entry { display: flex; align-items: center; gap: 9px; color: #abc3f4; font-size: 12px; font-weight: 800; }
.market-entry b { display: grid; place-items: center; width: 28px; height: 28px; border: 1px solid rgba(107, 150, 239, .55); border-radius: 50%; color: #dbe7ff; }
.empty-market { grid-column: 1 / -1; display: grid; gap: 7px; justify-items: center; padding: 58px 20px; border: 1px dashed rgba(72, 104, 171, .55); border-radius: 16px; text-align: center; }
.empty-market > span { color: #58709b; font: 700 10px/1 monospace; letter-spacing: 1.5px; }
.empty-market p { margin-bottom: 0; }
.awaiting-market-list { overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: rgba(15, 25, 47, .78); }
.awaiting-market-list a { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 15px 17px; color: inherit; border-top: 1px solid var(--line); }
.awaiting-market-list a:first-child { border-top: 0; }
.awaiting-market-list a:hover { background: rgba(41, 61, 101, .3); }
.awaiting-market-list a > span:last-child { color: var(--muted); font-size: 12px; }
.history-section-heading { align-items: end; padding-bottom: 17px; border-bottom: 1px solid rgba(68, 94, 146, .4); }
.resolved-market-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(245px, 1fr)); align-items: start; gap: 14px; }
.resolved-market {
  overflow: hidden;
  min-height: 176px;
  border: 1px solid rgba(71, 99, 157, .9);
  border-radius: 15px;
  background: linear-gradient(145deg, #19315a, #101f3b);
  box-shadow: 0 13px 32px rgba(0, 0, 0, .23), inset 0 1px rgba(255, 255, 255, .05);
  transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}
.resolved-market:hover { border-color: #7092d2; transform: translateY(-2px); box-shadow: 0 18px 38px rgba(0, 0, 0, .28); }
.resolved-market[open] { grid-column: span 2; }
.resolved-market summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 24px;
  grid-template-rows: auto minmax(52px, auto) auto;
  align-items: center;
  gap: 13px 12px;
  min-height: 176px;
  padding: 17px 18px 16px;
  cursor: pointer;
  list-style: none;
  color: white;
}
.resolved-market summary::-webkit-details-marker { display: none; }
.history-outcome { display: flex; align-items: center; gap: 10px; }
.history-outcome > b { display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid rgba(178, 201, 245, .34); border-radius: 10px; background: rgba(3, 10, 24, .22); color: #c4d4f2; font-size: 17px; }
.history-outcome > span { display: grid; gap: 2px; }
.history-outcome strong { color: #dbe7ff; font: 800 10px/1 monospace; letter-spacing: 1.1px; }
.history-outcome small { color: rgba(219, 231, 255, .65); font-size: 10px; }
.history-title { grid-column: 1 / -1; display: grid; align-self: start; gap: 7px; min-width: 0; }
.history-title > strong { overflow: hidden; color: white; font-size: 16px; line-height: 1.45; text-overflow: ellipsis; white-space: nowrap; }
.history-title > small { overflow: hidden; color: rgba(211, 225, 250, .62); font: 600 9px/1.3 monospace; text-overflow: ellipsis; white-space: nowrap; }
.history-pool { grid-column: 1 / -1; display: flex; align-items: end; justify-content: space-between; gap: 12px; padding-top: 12px; border-top: 1px solid rgba(219, 231, 255, .16); }
.history-pool small { color: rgba(219, 231, 255, .58); font: 700 9px/1 monospace; letter-spacing: .8px; }
.history-pool strong { color: white; font-size: 18px; }
.history-chevron { grid-column: 2; grid-row: 1; position: relative; width: 22px; height: 22px; border: 1px solid rgba(219, 231, 255, .28); border-radius: 50%; }
.history-chevron::before, .history-chevron::after { content: ""; position: absolute; left: 5px; top: 9px; width: 10px; height: 1px; background: #687b9e; transition: transform .18s ease; }
.history-chevron::after { transform: rotate(90deg); }
.resolved-market[open] .history-chevron::after { transform: rotate(0); }
.resolved-market[open] summary { color: white; }
.resolved-market.user-won { border-color: #35a47d; background: linear-gradient(145deg, #176d56, #10483d); box-shadow: 0 13px 32px rgba(0, 0, 0, .23), inset 0 1px rgba(255, 255, 255, .08); }
.resolved-market.user-won .history-outcome > b { border-color: rgba(185, 255, 226, .46); background: rgba(3, 50, 36, .25); color: #c5ffe9; }
.resolved-market.user-won .history-outcome strong,
.resolved-market.user-won .history-pool strong { color: #e1fff3; }
.resolved-market.user-lost { border-color: #b54f63; background: linear-gradient(145deg, #7b2e41, #4d2030); box-shadow: 0 13px 32px rgba(0, 0, 0, .23), inset 0 1px rgba(255, 255, 255, .07); }
.resolved-market.user-lost .history-outcome > b { border-color: rgba(255, 201, 211, .48); background: rgba(74, 9, 25, .27); color: #ffe0e5; }
.resolved-market.user-lost .history-outcome strong,
.resolved-market.user-lost .history-pool strong { color: #fff0f3; }
.resolved-market-body { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 18px; border-top: 1px solid rgba(228, 237, 255, .2); background: rgba(3, 9, 20, .36); }
.history-comparison { display: flex; align-items: center; gap: 20px; }
.history-choice { display: grid; min-width: 110px; gap: 3px; }
.history-choice small { color: rgba(220, 231, 250, .58); font: 700 9px/1 monospace; letter-spacing: .8px; }
.history-choice strong { color: white; font-size: 14px; }
.history-choice span { color: rgba(220, 231, 250, .58); font-size: 10px; }
.winner-choice strong { color: #e8c97e; }
.history-versus { color: rgba(220, 231, 250, .45); font: 800 9px/1 monospace; }
.history-detail-link { display: flex; align-items: center; gap: 12px; color: white; font-size: 12px; font-weight: 800; }
.history-detail-link b { display: grid; place-items: center; width: 28px; height: 28px; border: 1px solid rgba(220, 231, 250, .35); border-radius: 50%; }
.empty-history { margin: 0; padding: 32px 20px; border: 1px dashed rgba(48, 68, 108, .7); border-radius: 12px; }
@keyframes live-pulse { 0%, 100% { opacity: .65; transform: scale(.85); } 50% { opacity: 1; transform: scale(1.1); } }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 10px 8px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; }
th { font-size: 12px; color: var(--muted); font-weight: 600; }
.right { text-align: right; }
small { color: var(--muted); }
.tag, .status { display: inline-block; font-size: 11px; line-height: 1; padding: 5px 7px; border-radius: 99px; background: #29365b; color: #cdd9ff; }
.status.settled { background: #1c5a4d; color: #baf5e3; }
.status.cancelled { background: #65313a; color: #ffd4da; }
.status.open { border: 1px solid rgba(104, 157, 255, .5); background: rgba(47, 102, 213, .3); color: #c9ddff; }
.status.closed { background: #4b416a; color: #ded2ff; }
.form { display: grid; gap: 14px; }
.form.inline { display: flex; align-items: end; grid-template-columns: 1fr auto; }
label { display: grid; gap: 6px; color: #c9d3ee; font-size: 13px; }
input, select, textarea { width: 100%; background: #0d1426; color: white; border: 1px solid var(--line); border-radius: 7px; padding: 9px 10px; font: inherit; }
input:focus, select:focus, textarea:focus { outline: 2px solid rgba(91, 139, 239, .36); border-color: #6489d8; }
textarea { resize: vertical; }
.market-list { list-style: none; margin: 0; padding: 0; }
.market-list li { border-bottom: 1px solid var(--line); }
.market-list a { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; color: inherit; }
.market-list span { color: var(--muted); }
.flash { border-radius: 8px; padding: 12px 14px; margin-bottom: 16px; }
.flash.success { background: #16483d; color: #c9ffed; }
.flash.error { background: #52262e; color: #ffd7dc; }
.danger-zone { border-color: #81404a; }
.table-scroll { overflow: auto; }
.pagination { display: flex; justify-content: space-between; gap: 12px; }

.money-celebration {
  position: fixed;
  z-index: 1000;
  inset: 0;
  display: grid;
  place-items: start center;
  padding-top: clamp(72px, 12vh, 128px);
  overflow: hidden;
  pointer-events: none;
  opacity: 0;
  transition: opacity .32s ease;
}
.money-celebration::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 27%, rgba(53, 116, 239, .2), transparent 32%);
  opacity: 0;
}
.money-celebration.income::before {
  background: radial-gradient(circle at 50% 30%, rgba(230, 184, 88, .18), rgba(57, 116, 226, .1) 20%, transparent 43%);
}
.money-celebration.is-active { opacity: 1; }
.money-celebration.is-active::before { animation: reward-flash 1.5s ease-out both; }
.money-celebration.is-leaving { opacity: 0; }
.money-toast {
  position: relative;
  z-index: 2;
  min-width: min(390px, calc(100vw - 32px));
  display: flex;
  align-items: center;
  gap: 15px;
  border: 1px solid rgba(105, 145, 224, .7);
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(18, 32, 62, .97), rgba(8, 15, 29, .97));
  box-shadow: 0 24px 80px rgba(0, 0, 0, .5), 0 0 32px rgba(60, 119, 232, .2), inset 0 1px rgba(255, 255, 255, .08);
  padding: 16px 20px;
  transform: translateY(-26px) scale(.9);
  opacity: 0;
}
.income .money-toast { border-color: rgba(221, 177, 83, .7); box-shadow: 0 24px 80px rgba(0, 0, 0, .52), 0 0 42px rgba(221, 177, 83, .2), inset 0 1px rgba(255, 255, 255, .09); }
.is-active .money-toast { animation: reward-toast-in .7s cubic-bezier(.16, 1, .3, 1) both; }
.money-toast small { display: block; color: #aebddd; font-size: 11px; font-weight: 700; letter-spacing: .5px; }
.money-toast strong { display: block; margin-top: 1px; color: #ecf3ff; font-size: 25px; line-height: 1.15; letter-spacing: -.5px; }
.income .money-toast strong { color: #f4ca72; text-shadow: 0 0 22px rgba(231, 185, 87, .34); }
.money-toast p { margin: 3px 0 0; color: #8192b3; font-size: 11px; }
.money-coin {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border: 2px solid #79a3ff;
  border-radius: 50%;
  background: radial-gradient(circle at 36% 28%, #d8e6ff, #4d7bd9 28%, #142b59 68%);
  box-shadow: 0 0 24px rgba(79, 137, 247, .42), inset 0 0 0 4px rgba(9, 19, 42, .6);
  color: #081329;
  font-size: 25px;
  font-weight: 900;
}
.income .money-coin {
  border-color: #f3cf79;
  background: radial-gradient(circle at 35% 27%, #fff3b3, #dba53c 30%, #684211 72%);
  box-shadow: 0 0 30px rgba(231, 182, 74, .48), inset 0 0 0 4px rgba(51, 30, 4, .58);
  color: #291703;
}
.is-active .money-coin { animation: coin-arrive .85s cubic-bezier(.16, 1, .3, 1) both; }
.money-burst { position: absolute; z-index: 1; left: 50%; top: clamp(112px, 18vh, 180px); width: 1px; height: 1px; }
.sent .money-burst { display: none; }
.zall-particle, .spark-particle {
  position: absolute;
  left: 0;
  top: 0;
  opacity: 0;
  transform: translate(-50%, -50%);
}
.zall-particle {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1px solid #f2cd78;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff1a5, #d59b31 34%, #5b390b 76%);
  box-shadow: 0 0 16px rgba(224, 173, 61, .45);
  color: #2c1903;
  font-size: 13px;
  font-weight: 900;
}
.spark-particle { width: 6px; height: 19px; border-radius: 99px; background: linear-gradient(#f8dc8b, #4c8df5); box-shadow: 0 0 12px #7da8ff; }
.is-active .zall-particle, .is-active .spark-particle { animation: particle-burst 1.45s cubic-bezier(.12, .75, .25, 1) var(--delay, 0s) both; }
.money-burst :nth-child(1)  { --x:-260px; --y:-90px;  --r:-250deg; --delay:.02s; }
.money-burst :nth-child(2)  { --x:-205px; --y:80px;   --r:210deg;  --delay:.08s; }
.money-burst :nth-child(3)  { --x:-150px; --y:-155px; --r:-190deg; --delay:.12s; }
.money-burst :nth-child(4)  { --x:-96px;  --y:145px;  --r:260deg;  --delay:.04s; }
.money-burst :nth-child(5)  { --x:-42px;  --y:-190px; --r:-320deg; --delay:.15s; }
.money-burst :nth-child(6)  { --x:28px;   --y:174px;  --r:220deg;  --delay:.07s; }
.money-burst :nth-child(7)  { --x:92px;   --y:-176px; --r:300deg;  --delay:.11s; }
.money-burst :nth-child(8)  { --x:150px;  --y:136px;  --r:-210deg; --delay:.03s; }
.money-burst :nth-child(9)  { --x:218px;  --y:-112px; --r:250deg;  --delay:.09s; }
.money-burst :nth-child(10) { --x:275px;  --y:54px;   --r:-280deg; --delay:.14s; }
.money-burst :nth-child(11) { --x:-290px; --y:16px;   --r:200deg;  --delay:.17s; }
.money-burst :nth-child(12) { --x:-228px; --y:-170px; --r:-240deg; --delay:.05s; }
.money-burst :nth-child(13) { --x:-122px; --y:205px;  --r:290deg;  --delay:.13s; }
.money-burst :nth-child(14) { --x:-8px;   --y:-225px; --r:-340deg; --delay:.01s; }
.money-burst :nth-child(15) { --x:112px;  --y:210px;  --r:260deg;  --delay:.16s; }
.money-burst :nth-child(16) { --x:204px;  --y:-178px; --r:-230deg; --delay:.06s; }
.money-burst :nth-child(17) { --x:296px;  --y:-18px;  --r:310deg;  --delay:.1s; }
.money-burst :nth-child(18) { --x:235px;  --y:160px;  --r:-270deg; --delay:.18s; }
.money-burst :nth-child(19) { --x:-178px; --y:175px;  --r:230deg;  --delay:.09s; }
.money-burst :nth-child(20) { --x:56px;   --y:-240px; --r:-300deg; --delay:.04s; }

@keyframes reward-toast-in {
  0% { opacity: 0; transform: translateY(-28px) scale(.88); }
  55% { opacity: 1; transform: translateY(5px) scale(1.025); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes coin-arrive {
  0% { transform: scale(.25) rotateY(-540deg); filter: brightness(2); }
  70% { transform: scale(1.12) rotateY(12deg); }
  100% { transform: scale(1) rotateY(0); filter: brightness(1); }
}
@keyframes particle-burst {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(.3) rotate(0); }
  14% { opacity: 1; }
  72% { opacity: .95; }
  100% { opacity: 0; transform: translate(calc(-50% + var(--x)), calc(-50% + var(--y))) scale(.75) rotate(var(--r)); }
}
@keyframes reward-flash {
  0% { opacity: 0; transform: scale(.8); }
  28% { opacity: 1; }
  100% { opacity: 0; transform: scale(1.18); }
}

@media (prefers-reduced-motion: reduce) {
  .money-burst { display: none; }
  .is-active .money-toast, .is-active .money-coin, .money-celebration.is-active::before { animation: none; }
  .money-celebration.is-active, .money-celebration.is-active .money-toast { opacity: 1; transform: none; }
  .live-indicator { animation: none; }
}

@media (max-width: 900px) {
  .hero-stage { min-height: 540px; padding: 58px 42px; }
  .hero-copy { width: 68%; }
  .hero-art { right: -205px; width: 650px; }
  .feature-grid { grid-template-columns: 1fr; padding: 8px 0; }
  .feature-card { min-height: 0; padding: 22px 8px; border-top: 1px solid rgba(70, 101, 165, .3); border-left: 0; }
  .feature-card:first-child { border-top: 0; }
}
@media (max-width: 760px) {
  .site-header { flex-wrap: wrap; gap: 12px; }
  .user-menu { order: 2; flex: 0 0 100%; justify-content: space-between; margin-left: 0; }
  nav { order: 3; flex: 0 0 100%; width: 100%; gap: 16px; overflow-x: auto; padding-bottom: 3px; white-space: nowrap; }
  .grid.two { grid-template-columns: 1fr; }
  .hero-stage { min-height: 570px; align-items: flex-start; margin-top: 16px; padding: 44px 26px; border-radius: 20px; }
  .hero-copy { width: 100%; }
  .hero-copy h1 { font-size: 46px; letter-spacing: -2px; }
  .hero-lead { max-width: 100%; font-size: 15px; line-height: 1.75; }
  .hero-actions { align-items: flex-start; flex-direction: column; gap: 14px; }
  .hero-signals { max-width: 270px; }
  .hero-art { top: 72%; right: -210px; width: 520px; opacity: .5; }
  .hero-art img { opacity: .68; }
  .page-heading { flex-direction: column; }
  .bets-heading { margin-bottom: 40px; }
  .market-section { margin-bottom: 46px; }
  .market-section-heading { align-items: flex-end; }
  .market-section-heading h2 { font-size: 22px; }
  .open-markets-section,
  .resolved-markets-section,
  .awaiting-markets-section { margin-inline: -8px; padding: 17px 14px; border-radius: 16px; }
  .open-section-heading { padding-left: 24px; }
  .open-market-grid { grid-template-columns: 1fr; }
  .open-market-card { min-height: 276px; padding-inline: 20px; }
  .open-market-head { margin-inline: -20px; padding-inline: 20px; }
  .open-market-copy h3 { max-width: 100%; font-size: 20px; }
  .open-market-deadline { padding-right: 42px; }
  .open-market-footer { grid-template-columns: minmax(105px, 1fr) 64px auto; gap: 12px; margin-inline: -20px; padding-left: 20px; }
  .market-entry { font-size: 0; }
  .market-entry b { font-size: 12px; }
  .awaiting-market-list a { grid-template-columns: auto minmax(0, 1fr); }
  .awaiting-market-list a > span:last-child { grid-column: 2; }
  .history-section-heading { align-items: flex-end; }
  .history-section-heading p:last-child { display: none; }
  .resolved-market-list { grid-template-columns: 1fr; }
  .resolved-market[open] { grid-column: auto; }
  .resolved-market summary { grid-template-columns: minmax(0, 1fr) 24px; grid-template-rows: auto minmax(48px, auto) auto; gap: 12px; min-height: 168px; padding: 16px; }
  .history-title > strong { white-space: normal; }
  .history-chevron { grid-column: 2; grid-row: 1; }
  .resolved-market-body { align-items: stretch; flex-direction: column; gap: 18px; padding: 17px 15px 19px; }
  .history-comparison { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 10px; }
  .history-choice { min-width: 0; }
  .history-detail-link { justify-content: flex-end; }
  .form.inline { display: grid; }
}
