* { box-sizing: border-box; }
html, body { margin: 0; }

body {
    font-family: var(--f-text);
    background: var(--bg);
    color: var(--text);
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
}
body.no-scroll { overflow: hidden; }

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
input, select, textarea { font: inherit; color: inherit; }
img { display: block; max-width: 100%; }
svg { flex: none; }

[hidden] { display: none !important; }
h1, h2, h3, h4 { margin: 0; font-family: var(--f-display); letter-spacing: -.035em; font-weight: 700; }
p { margin: 0; }
small, strong { display: inline; }

::selection { background: rgba(140,92,246,.45); color: #fff; }
:focus-visible { outline: 2px solid var(--acc); outline-offset: 2px; border-radius: 8px; }

.hide-sb { scrollbar-width: none; -ms-overflow-style: none; }
.hide-sb::-webkit-scrollbar { display: none; }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,.1); border-radius: 999px; border: 3px solid transparent; background-clip: padding-box; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,.18); background-clip: padding-box; }

@keyframes tick     { to { transform: translateX(-50%); } }

@keyframes pulseDot { 50% { opacity: .45; } }
@keyframes shine    { 0% { transform: translateX(-120%); } 60%, 100% { transform: translateX(240%); } }
@keyframes glowUp   { 50% { opacity: .85; transform: scale(1.04); } }
@keyframes floaty   { 50% { transform: translateY(-4px); } }
@keyframes fadeUp   { from { opacity: 0; transform: translateY(10px); } }

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

.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 44px; padding: 0 16px; border-radius: var(--r-xs);
    font-size: 13px; font-weight: 800; white-space: nowrap;
    transition: filter .15s, transform .12s, background .15s, border-color .15s;
}
.btn:active { transform: translateY(1px); }
.btn:hover { filter: brightness(1.07); }

.btn-acc   { color: #fff; background: var(--acc-grad); box-shadow: var(--acc-sh); }
.btn-gold  { color: var(--gold-ink); background: var(--gold-grad); box-shadow: 0 14px 30px -16px rgba(247,201,75,.9); }
.btn-green { color: var(--green-ink); background: var(--green-grad); box-shadow: 0 16px 34px -14px rgba(54,216,154,.9); }
.btn-soft  { color: var(--text); background: var(--surface-3); border: 1px solid var(--line-3); }
.btn-soft:hover { background: var(--surface-4); filter: none; }
.btn-ghost { color: var(--dim); background: var(--surface-2); border: 1px solid var(--line-2); }
.btn-ghost:hover { color: var(--text); background: var(--surface-4); filter: none; }
.btn-tint  { color: #fff; background: var(--acc-soft); border: 1px solid var(--acc-line); }

.btn-lg { min-height: 58px; border-radius: 17px; font-size: 15px; }
.btn-md { min-height: 46px; border-radius: 14px; }
.btn-sm { min-height: 38px; padding: 0 14px; border-radius: 12px; font-size: 12px; }
.btn-xs { min-height: 34px; padding: 0 11px; border-radius: 10px; font-size: 11px; }
.btn-block { width: 100%; }
.btn-col { flex-direction: column; gap: 3px; }
.btn-col small { font-size: 11px; font-weight: 700; color: var(--lilac-2); }
.btn[disabled], .is-off { opacity: .5; pointer-events: none; }

.ibtn {
    width: 44px; height: 44px; display: grid; place-items: center; flex: none;
    color: var(--dim); background: var(--surface-2); border: 1px solid var(--line);
    border-radius: 14px; position: relative; transition: .15s;
}
.ibtn:hover { color: var(--text); background: var(--surface-4); }
.ibtn.sm { width: 42px; height: 42px; border-radius: var(--r-xs); }
.ibtn .dot {
    position: absolute; top: 8px; right: 8px; width: 8px; height: 8px;
    background: var(--pink); border: 2px solid #0b0d15; border-radius: 50%;
}

.field {
    display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 8px;
    border-radius: var(--r-sm); background: var(--surface-2); border: 1px solid var(--line-2);
}
.field .val { flex: 1; text-align: center; font-size: 18px; font-weight: 800; font-variant-numeric: tabular-nums; }

.field .val[contenteditable] { min-width: 2ch; cursor: text; outline: none; caret-color: var(--mint, #3ee6a8); border-radius: 6px; white-space: nowrap; overflow: hidden; }
.field:focus-within { border-color: color-mix(in srgb, var(--mint, #3ee6a8) 55%, transparent); }
.field .step {
    width: 38px; height: 38px; flex: none; border-radius: var(--r-2xs);
    color: var(--dim); background: var(--surface-3); font-size: 18px; font-weight: 800;
}
.field .step.plus { color: #fff; background: var(--acc-soft-2); }
.field input {
    flex: 1; min-width: 0; background: none; border: 0; text-align: center;
    font-size: 18px; font-weight: 800; font-variant-numeric: tabular-nums;
}
.field input:focus { outline: none; }

.quick-row { display: flex; gap: 6px; }
.quick-row button {
    flex: 1; min-height: 40px; border-radius: 12px; font-size: 12px; font-weight: 800;
    color: var(--dim); background: var(--surface-2); border: 1px solid var(--line-2);
    transition: .15s;
}
.quick-row button:hover { color: var(--text); background: var(--surface-4); }
.quick-row button.on { color: #fff; background: var(--acc-soft-2); border-color: var(--acc-line-2); }

.search-box {
    display: flex; align-items: center; gap: 10px; min-height: 46px; padding: 0 14px;
    border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line-2);
}
.search-box input { flex: 1; min-width: 0; background: none; border: 0; font-size: 13px; font-weight: 600; }
.search-box input::placeholder { color: var(--faint); }
.search-box input:focus { outline: none; }

.select-box {
    display: flex; align-items: center; gap: 9px; min-height: 46px; padding: 0 14px;
    border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line-2);
    font-size: 12.5px; font-weight: 800; color: var(--text); position: relative;
}
.select-box select {
    position: absolute; inset: 0; width: 100%; opacity: 0; cursor: pointer;
}
.select-box .caret { margin-left: auto; color: var(--faint); }
.select-box { min-width: 0; }
.select-box > span:not(.caret) { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.text-input {
    width: 100%; min-height: 48px; padding: 0 14px; border-radius: var(--r-sm);
    background: var(--surface-2); border: 1px solid var(--line-2); font-size: 13px; font-weight: 700;
}
.text-input:focus { outline: none; border-color: var(--acc-line-2); }

select.text-input { color-scheme: dark; cursor: pointer; }
select.text-input option { background: var(--panel); color: var(--text); }
textarea.text-input { min-height: 120px; padding: 14px; resize: vertical; line-height: 1.6; }

.eyebrow {
    font-size: 9px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--faint);
}
.eyebrow.gold { color: var(--gold-pale); letter-spacing: .11em; }
.eyebrow.lilac { color: var(--lilac); letter-spacing: .11em; }
.eyebrow.cyan { color: var(--cyan-2); }
.cap {
    font-size: 10px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; color: var(--faint);
}

.bet-head small.push { font-size: 11px; font-weight: 700; letter-spacing: .01em; font-variant-numeric: tabular-nums; }

.pill {
    display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px;
    font-size: 9px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
}
.pill-green { color: var(--mint); background: rgba(54,216,154,.12); }
.pill-gold  { color: var(--gold-pale); background: var(--gold-soft-2); border: 1px solid var(--gold-line); }
.pill-pink  { color: #fff; background: var(--pink); letter-spacing: 0; text-transform: none; font-size: 10px; }
.pill-acc   { color: var(--lilac); background: var(--acc-soft); border: 1px solid var(--acc-line); }

.livedot {
    width: 7px; height: 7px; flex: none; border-radius: 50%; background: var(--green);
    box-shadow: 0 0 0 4px rgba(54,216,154,.14); animation: pulseDot 1.8s ease-in-out infinite;
}

.num { font-variant-numeric: tabular-nums; }
.dim { color: var(--dim); }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.gold { color: var(--gold-text); }
.green { color: var(--green); }
.hide { display: none !important; }
.grow { flex: 1; min-width: 0; }
.push { margin-left: auto; }
.trunc { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.only-lg { display: inline; }
.only-sm-i { display: none; }
.only-lg-block { display: flex !important; }
.only-sm-block { display: none !important; }
.only-lg-grid { display: grid !important; }
.only-sm-grid { display: none !important; }
@media (max-width: 760px) {
    .only-lg { display: none; }
    .only-sm-i { display: inline; }
    .only-lg-block { display: none !important; }
    .only-sm-block { display: flex !important; }
    .only-lg-grid { display: none !important; }
    .only-sm-grid { display: grid !important; }
}

.legal { color: var(--faint); font-size: 11px; line-height: 1.6; }
.legal a { color: var(--lilac); }
.legal a:hover { color: #fff; }
