:root {
  color-scheme: dark;
  --bg: #101116;
  --panel: #1a1b24;
  --line: #323342;
  --text: #f5f3fb;
  --muted: #c0bdd1;
  --lime: #daff79;
  --violet: #c7b9ff;
  font-family: Tahoma, Arial, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; color: var(--text); background: var(--bg); line-height: 1.65; }
.wrap { width: min(1120px, calc(100% - 48px)); margin-inline: auto; }
.top { border-bottom: 1px solid var(--line); }
.top-inner, .top-actions, .section-head, .lab, .lab-actions, .bar, .dialog-head { display: flex; align-items: center; gap: 14px; }
.top-inner, .section-head, .lab, .bar, .dialog-head { justify-content: space-between; }
.top-inner { min-height: 72px; }
.brand { display: inline-flex; align-items: center; gap: .25rem; color: var(--text); text-decoration: none; font-size: 1.04rem; font-weight: 800; letter-spacing: .06em; }
.brand span:last-child { color: var(--lime); }
.mark { font-size: 1.5rem; margin-right: .2rem; color: var(--lime); }
.network, .eyebrow, .label, .fine { font-size: .83rem; color: var(--muted); }
.network { display: inline-flex; align-items: center; gap: 8px; }
.network i, .eyebrow span { width: 7px; height: 7px; border-radius: 50%; background: var(--lime); display: inline-block; }
button, select, input { font: inherit; }
button, .primary { cursor: pointer; }
button:disabled { cursor: wait; opacity: .48; }
button:focus-visible, a:focus-visible, select:focus-visible, input:focus-visible { outline: 3px solid var(--violet); outline-offset: 3px; }
.primary, .secondary, .icon { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; border-radius: 10px; min-height: 42px; padding: .47rem 1rem; font-size: .9rem; text-decoration: none; font-weight: 700; border: 1px solid transparent; }
.primary { background: var(--lime); color: #182006; }
.primary:hover:not(:disabled) { background: #e6ff9f; }
.secondary, .icon { background: #22232e; color: var(--text); border-color: var(--line); }
.secondary:hover:not(:disabled), .icon:hover { background: #343549; }
.hero { margin-block: 30px 19px; border: 1px solid #3d3354; border-radius: 21px; min-height: 298px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(250px, .72fr); align-items: center; background: radial-gradient(ellipse at 17% 49%, #372952, #201b32 44%, #191826 78%); overflow: hidden; }
.hero-copy { grid-column: 1; grid-row: 1; padding: 30px 42px; }
.art { grid-column: 2; grid-row: 1; padding: 12px 14px; }
.art svg { display: block; width: 100%; max-height: 254px; }
.eyebrow { display: flex; align-items: center; gap: 8px; color: var(--violet); font-weight: 700; }
h1, h2, p { margin: 0; }
h1 { font-size: clamp(2.05rem, 4.2vw, 3.5rem); line-height: 1.35; margin-block: .4rem .8rem; }
h1 em { font-style: normal; color: var(--lime); }
.hero-copy p { max-width: 550px; color: var(--muted); }
.hero-link { margin-top: 1.15rem; }
.bar { border: 1px solid var(--line); border-radius: 14px; background: var(--panel); padding: 15px 21px; }
.bar div { flex: 1; display: grid; }
.bar strong { font-size: 1.04rem; }
.bar strong[dir=ltr] { text-align: left; }
.markets { margin-top: 38px; scroll-margin-top: 15px; }
h2 { font-size: 1.65rem; }
.lab { background: #221d34; border: 1px solid #403654; border-radius: 12px; padding: 12px 16px; margin-block: 14px 17px; }
.lab p { color: var(--muted); font-size: .86rem; }
.lab-actions { flex-wrap: wrap; }
[hidden] { display: none !important; }
.market-card { background: var(--panel); border: 1px solid var(--line); border-radius: 13px; padding: 14px 17px; margin-block: 0 12px; }
.market-card h3 { margin: 0 0 .25rem; font-size: 1rem; }
.market-card p { color: var(--muted); font-size: .84rem; }
.tabs { display: flex; gap: 7px; margin: 16px 0 10px; flex-wrap: wrap; }
.tabs button { background: transparent; color: var(--muted); border: 1px solid var(--line); padding: 5px 12px; border-radius: 8px; font-size: .82rem; }
.tabs button[aria-pressed=true] { background: #352a50; color: #eee7ff; border-color: #625080; }
.wagers { display: grid; gap: 8px; }
.wager { display: grid; grid-template-columns: minmax(150px, 1.5fr) repeat(3, minmax(82px, 1fr)) minmax(115px, auto); gap: 12px; align-items: center; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 12px 15px; }
.wager > div { display: grid; gap: .1rem; min-width: 0; }
.wager strong { overflow-wrap: anywhere; font-size: .9rem; }
.wager strong[dir=ltr] { text-align: left; }
.wager-action { justify-self: end; }
.wager-action button { white-space: nowrap; min-height: 36px; font-size: .8rem; padding: .28rem .65rem; }
.empty, .notice { padding: 10px 4px; color: var(--muted); }
.notice { min-height: 45px; font-size: .85rem; }
.notice[data-error=true] { color: #ffaeaa; }
footer { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; border-top: 1px solid var(--line); margin: 20px 0; padding: 12px 0; color: var(--muted); font-size: .8rem; }
dialog { background: #1e1e2a; color: var(--text); border: 1px solid #4f426b; border-radius: 15px; width: min(410px, calc(100% - 32px)); }
dialog::backdrop { background: #09070ecb; }
dialog form { display: grid; gap: .5rem; }
dialog h2 { font-size: 1.25rem; }
dialog label { font-size: .86rem; }
dialog input, dialog select { width: 100%; padding: .5rem; background: var(--bg); border: 1px solid var(--line); color: var(--text); border-radius: 7px; }
.icon { padding: 0 .55rem; min-height: 32px; font-size: 1.25rem; }
@media (max-width: 690px) {
  .wrap { width: calc(100% - 26px); }
  .hero { grid-template-columns: 1fr; }
  .hero-copy { padding: 20px; }
  .art { grid-column: 1; grid-row: 2; padding: 0 14px 8px; }
  .art svg { max-height: 130px; }
  .hero-copy p { font-size: .9rem; }
  .lab { align-items: flex-start; flex-direction: column; }
  .wager { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wager > div:first-child { grid-column: 1 / -1; }
  .wager-action { justify-self: start; }
  .bar { display: grid; grid-template-columns: 1fr 1fr; }
  .top-actions { gap: 6px; }
  .wallet { padding-inline: .45rem; font-size: .78rem; }
  .network { font-size: .71rem; }
  .brand { font-size: .85rem; }
}

footer a { color: var(--violet); text-underline-offset: .15em; }
