:root {
  color-scheme: dark;
  --page: #0b0e14;
  --panel: #111722;
  --panel-raised: #151d2a;
  --line: #263142;
  --text: #f3f5f8;
  --muted: #95a1b3;
  --accent: #f5a623;
  --green: #36c98f;
  --blue: #73a7ff;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
body { min-width: 320px; margin: 0; background: var(--page); color: var(--text); }
button, input { font: inherit; }
button { color: inherit; }
a { color: inherit; text-decoration: none; }
.shell { width: min(100% - 28px, 1240px); margin-inline: auto; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  background: #10151f;
  border-bottom: 1px solid var(--line);
}
.topbar-inner { min-height: 64px; display: flex; align-items: center; gap: 16px; }
.menu-toggle {
  width: 42px; height: 42px; display: grid; place-content: center; gap: 5px;
  padding: 0; border: 1px solid var(--line); border-radius: 10px; background: var(--panel);
  cursor: pointer;
}
.menu-toggle span { display: block; width: 17px; height: 2px; border-radius: 2px; background: var(--text); }
.brand { display: inline-flex; align-items: center; gap: 9px; font-size: 1.12rem; font-weight: 800; letter-spacing: -.04em; }
.brand-mark {
  display: grid; width: 32px; height: 32px; place-items: center;
  border-radius: 9px; background: var(--accent); color: #17120a; font-size: 1.2rem; font-weight: 900;
}
.brand strong { color: var(--accent); }
.topbar-actions { display: flex; gap: 9px; margin-left: auto; }
.button {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 40px; padding: 0 14px; border: 1px solid var(--line); border-radius: 9px;
  background: transparent; font-weight: 700; cursor: pointer;
}
.button-primary { border-color: var(--accent); background: var(--accent); color: #1a140a; }
.button:hover { filter: brightness(1.08); }
.button:disabled { cursor: wait; opacity: .7; }

.site-menu {
  position: fixed; top: 65px; left: 0; bottom: 0; z-index: 1;
  width: 130px; padding: 12px 6px; overflow-y: auto; border-right: 1px solid var(--line);
  background: #121925;
}
.site-menu { display: flex; flex-direction: column; }
.site-menu[hidden] { display: none; }
.site-menu-divider { margin: auto 0 8px; border: 0; border-top: 1px solid var(--line); width: 100%; }
.site-menu-logout {
  display: block; width: 100%; padding: 10px 8px; border: 0; border-radius: 8px; background: none;
  color: #dce2eb; font: inherit; font-size: .78rem; font-weight: 600; text-align: left; cursor: pointer;
}
.site-menu-logout:hover { background: var(--panel-raised); }
.site-menu a { display: block; padding: 10px 8px; border-radius: 8px; color: #dce2eb; font-weight: 600; font-size: .78rem; }
.site-menu a:hover { background: var(--panel-raised); }
.site-menu a[aria-current="page"] { background: #211b12; color: var(--accent); }
@media (min-width: 900px) {
  body.menu-open { padding-left: 130px; }
  body.menu-open > header.topbar { margin-left: -130px; }
}
@media (max-width: 899px) {
  .site-menu { z-index: 5; box-shadow: 0 18px 40px #0008; }
}

main { padding-block: 20px 44px; }
.network-strip {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1px; overflow: hidden;
  border: 1px solid var(--line); border-radius: 12px; background: var(--line);
}
.network-stat { min-width: 0; padding: 13px 14px; background: var(--panel); }
.block-status-message { min-height: 1em; margin: 8px 2px 0; color: var(--muted); font-size: .72rem; }
.block-status-message:empty { display: none; }
.stat-label {
  display: flex; align-items: center; gap: 7px; margin-bottom: 7px;
  color: var(--muted); font-size: .7rem; font-weight: 800; letter-spacing: .075em; text-transform: uppercase;
}
.status-dot { width: 7px; height: 7px; flex: 0 0 7px; border-radius: 50%; background: var(--green); }
.status-dot.amber { background: var(--accent); }
.stat-value { overflow: hidden; color: var(--text); font-size: 1rem; font-weight: 750; text-overflow: ellipsis; white-space: nowrap; }
.stat-detail { margin-top: 4px; color: var(--muted); font-size: .76rem; }
.stat-detail strong { color: var(--text); font-weight: 650; }
.timer { color: var(--accent); font-variant-numeric: tabular-nums; }

.prediction-form { display: flex; gap: 8px; }
.input-wrap { position: relative; flex: 1; min-width: 0; }
.prediction-input {
  width: 100%; min-height: 44px; padding: 0 55px 0 12px;
  border: 1px solid var(--line); border-radius: 9px; outline: none; background: #0c1119; color: var(--text);
}
.prediction-input:disabled { opacity: .65; cursor: not-allowed; }
.prediction-input:focus { border-color: var(--accent); }
.input-unit { position: absolute; top: 50%; right: 12px; transform: translateY(-50%); color: var(--muted); font-size: .8rem; }
.prediction-form .button { min-height: 44px; white-space: nowrap; }
.prediction-form .button:disabled { cursor: not-allowed; opacity: .6; }

.jackpot-card {
  display: grid; gap: 14px; margin-top: 12px; padding: 16px;
  border: 1px solid #73551f; border-radius: 12px;
  background: linear-gradient(115deg, #2a2113, #171923 70%);
}
.jackpot-kicker { color: var(--accent); font-size: .68rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.jackpot-info h2 { margin: 4px 0; font-size: 1rem; }
.jackpot-info p, .wager-note { margin: 0; color: var(--muted); font-size: .78rem; line-height: 1.5; }
.jackpot-amount { display: grid; gap: 3px; }
.jackpot-amount span { color: var(--muted); font-size: .7rem; font-weight: 700; text-transform: uppercase; }
.jackpot-amount strong { color: var(--accent); font-size: 1.45rem; font-variant-numeric: tabular-nums; }
.jackpot-amount small { font-size: .8rem; }
.wager-note { padding-top: 11px; border-top: 1px solid #59431f; }
.wager-note strong { color: var(--text); }

.converter-card { margin-top: 16px; }
#results { margin-top: 14px; }
.converter-description { margin: 4px 0 0; color: var(--muted); font-size: .76rem; }
.converter-refresh { min-height: 36px; padding-inline: 11px; font-size: .75rem; }
.converter-controls { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.converter-field { display: grid; gap: 6px; color: var(--muted); font-size: .75rem; font-weight: 700; }
.converter-field input, .converter-field select {
  width: 100%; min-height: 44px; padding: 0 11px; border: 1px solid var(--line);
  border-radius: 9px; background: #0c1119; color: var(--text);
}
.converter-field input:focus, .converter-field select:focus { border-color: var(--accent); outline: none; }
.converter-arrow { display: none; }
.converter-swap { display: grid; place-items: center; grid-column: 1 / -1; justify-self: center; width: 36px; height: 36px; border: 1px solid var(--line); border-radius: 50%; background: #0c1119; color: var(--accent); font-size: 1.1rem; line-height: 1; cursor: pointer; }
.converter-swap:hover { border-color: var(--accent); background: var(--panel-raised); }
.converter-result { grid-column: 1 / -1; align-self: end; padding: 11px 0; color: var(--accent); font-size: 1.6rem; font-weight: 800; overflow-wrap: anywhere; }
.converter-status { margin: 12px 0 0; color: var(--muted); font-size: .75rem; }

.content-grid { display: grid; gap: 14px; margin-top: 16px; }
.column { display: grid; align-content: start; gap: 14px; min-width: 0; }
.card { overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); }
.card-heading {
  display: flex; min-height: 54px; align-items: center; justify-content: space-between; gap: 12px;
  padding: 0 16px; border-bottom: 1px solid var(--line);
}
.card-heading h2 { margin: 0; font-size: .95rem; }
.card-heading a, .text-link { color: var(--accent); font-size: .8rem; font-weight: 700; }
.card-body { padding: 16px; }
.empty-state {
  display: grid; min-height: 142px; align-content: center; justify-items: center; gap: 8px;
  color: var(--muted); text-align: center;
}
.empty-icon { display: grid; width: 38px; height: 38px; place-items: center; border-radius: 50%; background: #202a38; color: var(--accent); font-size: 1.1rem; }
.empty-state strong { color: #dfe5ee; font-size: .88rem; }
.empty-state p { max-width: 270px; margin: 0; font-size: .8rem; line-height: 1.5; }
.authenticated-account { display: grid; gap: 10px; }
.authenticated-account p { margin: 0; color: var(--muted); font-size: .82rem; }
.authenticated-account strong { color: var(--text); }
.authenticated-account .account-note { font-size: .75rem; }
.authenticated-account .button { justify-self: start; }
.authenticated-user { max-width: 130px; overflow: hidden; color: var(--muted); font-size: .8rem; text-overflow: ellipsis; white-space: nowrap; }
.header-balance-link { display: inline-flex; align-items: center; gap: 9px; max-width: min(460px, 52vw); padding: 5px 12px 5px 6px; border: 1px solid #3a2f17; border-radius: 999px; background: linear-gradient(135deg, #1a1710, #12161f); color: var(--text); text-decoration: none; transition: border-color .15s; }
.header-balance-link:hover { border-color: var(--accent); }
.hdr-avatar { display: inline-flex; flex: 0 0 26px; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 50%; background: linear-gradient(135deg, #ffe08a, #f5a623); color: #3a2402; font-size: .8rem; font-weight: 900; }
.hdr-name { min-width: 0; overflow: hidden; color: #fff; font-size: .85rem; font-weight: 800; letter-spacing: .01em; text-overflow: ellipsis; }
.hdr-balance { padding-left: 9px; border-left: 1px solid #3a3f4b; color: var(--accent); font-size: .9rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.hdr-usd { color: var(--muted); font-size: .7rem; font-weight: 600; }
.coin-sym { display: inline-block; width: 1.05em; height: 1.05em; margin-left: .22em; vertical-align: -.17em; background: url("../img/coin-symbol.svg") center / contain no-repeat; }
.header-balance-link[hidden] { display: none; }
.auth-dialog {
  width: min(440px, calc(100% - 28px)); max-height: min(90vh, 720px); padding: 20px;
  border: 1px solid var(--line); border-radius: 14px; background: var(--panel); color: var(--text);
  box-shadow: 0 24px 80px #000a;
}
.auth-dialog::backdrop { background: #05070bcc; }
.auth-dialog-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.auth-dialog-heading h2 { margin: 0; font-size: 1.05rem; }
.auth-close { width: 36px; height: 36px; border: 1px solid var(--line); border-radius: 9px; background: transparent; color: var(--text); font-size: 1.4rem; cursor: pointer; }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 16px; }
.auth-tab { min-height: 40px; border: 1px solid var(--line); border-radius: 8px; background: transparent; color: var(--muted); cursor: pointer; }
.auth-tab[aria-selected="true"] { border-color: var(--accent); color: var(--accent); }
.auth-message { min-height: 1em; margin: 12px 0 0; color: var(--muted); font-size: .8rem; }
.auth-message[data-error="true"] { color: #ff8585; }
.auth-message[data-success="true"] { color: var(--green); }
.auth-form { display: grid; gap: 12px; margin-top: 12px; }
.auth-form[hidden] { display: none; }
.auth-field { display: grid; gap: 6px; color: var(--muted); font-size: .76rem; font-weight: 700; }
.auth-field input { width: 100%; min-height: 44px; padding: 0 11px; border: 1px solid var(--line); border-radius: 9px; background: #0c1119; color: var(--text); }
.auth-field input:focus { border-color: var(--accent); outline: none; }
.auth-checkbox { display: flex; align-items: flex-start; gap: 9px; color: var(--muted); font-size: .78rem; line-height: 1.4; }
.auth-checkbox input { width: 18px; height: 18px; margin: 0; accent-color: var(--accent); }
.auth-form .button { width: 100%; }
.auth-note { margin: 0; color: var(--muted); font-size: .72rem; line-height: 1.45; }
.consent-stack {
  position: fixed; z-index: 5; right: 12px; bottom: 12px; left: 12px;
  display: grid; gap: 10px; width: min(820px, calc(100% - 24px)); max-height: 90vh;
  margin-inline: auto; overflow-y: auto;
}
.cookie-notice, .location-notice {
  display: grid; gap: 12px; padding: 16px;
  border: 1px solid #73551f; border-radius: 12px; background: #151b26;
  box-shadow: 0 18px 48px #000b;
}
.cookie-notice[hidden], .location-notice[hidden] { display: none; }
.cookie-notice-copy h2 { margin: 0 0 6px; font-size: .95rem; }
.cookie-notice-copy p { margin: 0; color: var(--muted); font-size: .78rem; line-height: 1.5; }
.cookie-notice-actions { display: flex; justify-content: flex-end; gap: 8px; }
.cookie-notice-actions .button { min-height: 40px; font-size: .78rem; }
.cookie-notice-status { grid-column: 1 / -1; margin: 0; color: #ff8585; font-size: .75rem; }
.cookie-notice-status:empty { display: none; }
.location-settings { display: grid; gap: 9px; padding: 12px; border: 1px solid var(--line); border-radius: 9px; background: #0e141e; }
.location-settings > p { margin: 0; color: var(--muted); font-size: .78rem; line-height: 1.5; }
.location-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.location-actions .button { min-height: 40px; font-size: .78rem; }
.location-notice h2 { margin: 0 0 6px; font-size: .95rem; }
.location-notice p { margin: 0; color: var(--muted); font-size: .78rem; line-height: 1.5; }
.location-notice .location-notice-status { grid-column: 1 / -1; color: #ff8585; }
.location-notice-status:empty { display: none; }
.account-page { min-height: 75vh; }
.dashboard-heading { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.dashboard-heading h1 { margin: 0; font-size: clamp(1.45rem, 5vw, 2rem); }
.dashboard-eyebrow { margin: 0 0 5px; color: var(--accent); font-size: .68rem; font-weight: 800; letter-spacing: .12em; }
.dashboard-status { min-height: 1em; margin: 7px 0 0; color: var(--muted); font-size: .78rem; }
.dashboard-status[data-error="true"], .form-status[data-error="true"] { color: #ff8585; }
.dashboard-grid { display: grid; gap: 14px; }
.dashboard-summary { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 14px; padding: 16px; }
.dashboard-avatar { display: grid; width: 52px; height: 52px; place-items: center; border: 1px solid #59431f; border-radius: 14px; background: #211b12; color: var(--accent); font-size: 1.5rem; font-weight: 800; }
.dashboard-identity { min-width: 0; }
.dashboard-identity h2 { overflow: hidden; margin: 0 0 4px; font-size: 1.05rem; text-overflow: ellipsis; }
.dashboard-identity p { margin: 3px 0; color: var(--muted); font-size: .75rem; }
.dashboard-identity strong { color: var(--text); }
.dashboard-stat { display: grid; gap: 3px; padding-top: 10px; border-top: 1px solid var(--line); }
.dashboard-stat > span { color: var(--muted); font-size: .68rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.dashboard-stat > strong { overflow-wrap: anywhere; font-size: 1rem; }
.dashboard-stat small { color: var(--muted); font-size: .7rem; }
.dashboard-stat small b { color: var(--text); }
.dashboard-columns { display: grid; gap: 14px; }
.dashboard-main-column, .dashboard-side-column { display: grid; align-content: start; gap: 14px; min-width: 0; }
.dashboard-card .card-heading { min-height: 54px; }
.dashboard-card .card-heading > div { padding-block: 10px; }
.dashboard-card-description { margin: 4px 0 9px; color: var(--muted); font-size: .72rem; line-height: 1.45; }
.dashboard-form { display: grid; gap: 13px; }
.dashboard-form-grid { display: grid; gap: 13px; }
.dashboard-form .auth-field input[readonly] { color: var(--muted); }
.dashboard-form select { width: 100%; min-height: 44px; padding: 0 11px; border: 1px solid var(--line); border-radius: 9px; background: #0c1119; color: var(--text); }
.dashboard-form select:focus { border-color: var(--accent); outline: none; }
.dashboard-form-actions { display: flex; flex-direction: column; align-items: stretch; gap: 8px; padding-top: 5px; border-top: 1px solid var(--line); }
.dashboard-form-actions .button { width: 100%; }
.form-status { min-height: 1em; margin: 0; color: var(--green); font-size: .75rem; }
.wallet-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 12px 16px 0; }
.wallet-actions .button { padding-inline: 8px; font-size: .72rem; cursor: not-allowed; opacity: .55; }
.dashboard-placeholder-list { display: grid; padding-inline: 16px; }
.dashboard-placeholder-list > div { display: flex; justify-content: space-between; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--line); font-size: .77rem; }
.dashboard-placeholder-list > div:last-child { border-bottom: 0; }
.dashboard-placeholder-list span { color: var(--muted); }
.dashboard-placeholder-list strong { color: var(--accent); font-size: .7rem; text-align: right; }
.dashboard-error { max-width: 540px; }
.dashboard-error .card-body { display: grid; justify-items: start; gap: 12px; }
.dashboard-error p { margin: 0; color: var(--muted); }
.admin-page { padding-bottom: 24px; }
.admin-page > .dashboard-heading { margin-bottom: 16px; }
.admin-tabs { display: flex; gap: 6px; overflow-x: auto; margin: 0 0 14px; padding: 0 0 7px; border-bottom: 1px solid var(--line); scrollbar-width: thin; }
.admin-tab { flex: 0 0 auto; min-height: 40px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 8px 8px 0 0; background: #101722; color: var(--muted); font: inherit; font-size: .76rem; font-weight: 700; cursor: pointer; }
.admin-tab[aria-selected="true"] { border-color: var(--accent); background: #211b12; color: var(--accent); }
.admin-tab:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.admin-tab-panel { min-width: 0; }
.admin-tab-panel[hidden] { display: none; }
.admin-placeholder { display: grid; justify-items: start; gap: 9px; padding: 18px; }
.admin-placeholder h2, .admin-placeholder p { margin: 0; }
.admin-placeholder h2 { font-size: 1rem; }
.admin-placeholder p { color: var(--muted); font-size: .8rem; line-height: 1.55; }
.admin-placeholder > span { color: var(--accent); font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.accounting-card > .card-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.admin-accounting-status { margin: 0; padding: 10px 16px 0; color: var(--muted); font-size: .74rem; line-height: 1.5; }
.accounting-periods { display: grid; grid-template-columns: 1fr; gap: 10px; padding: 14px 16px; }
.accounting-period { min-width: 0; padding: 13px; background: #101722; }
.accounting-period h3 { margin: 0 0 10px; color: var(--accent); font-size: .88rem; }
.accounting-period dl { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 7px 10px; margin: 0; }
.accounting-period dt { color: var(--muted); font-size: .7rem; }
.accounting-period dd { margin: 0; font-size: .7rem; font-variant-numeric: tabular-nums; text-align: right; }
.accounting-period .accounting-positive { color: var(--green); font-weight: 700; }
.accounting-period .accounting-negative { color: #ff8585; font-weight: 700; }
.accounting-history-heading { padding-top: 4px !important; }
.accounting-history-heading h3 { margin: 0; font-size: .88rem; }
.admin-page .card-heading { padding: 14px 16px 0; }
.admin-page .card-heading h2 { margin: 0; font-size: 1rem; }
.admin-search { display: grid; gap: 10px; padding: 14px 16px; }
.admin-search .auth-field { display: grid; gap: 6px; }
.admin-search .auth-field span { color: var(--muted); font-size: .72rem; font-weight: 700; }
.admin-search input { width: 100%; min-height: 42px; padding: 0 11px; border: 1px solid var(--line); border-radius: 9px; background: #0c1119; color: var(--text); }
.admin-search input:focus { border-color: var(--accent); outline: none; }
.admin-search .button { min-height: 42px; }
.admin-table-scroll { max-height: 70vh; }
.admin-empty, .admin-limit { margin: 0; padding: 12px 16px; color: var(--muted); font-size: .75rem; }
.admin-error { padding: 0 16px 12px; }
.admin-level-form { display: grid; gap: 12px; padding: 14px 16px; }
.settings-group-title { margin: 10px 0 0; font-size: .95rem; border-bottom: 1px solid var(--line, rgba(255,255,255,.12)); padding-bottom: 4px; }
.admin-level-form .auth-field { display: grid; gap: 6px; }
.admin-level-form .auth-field span { color: var(--muted); font-size: .72rem; font-weight: 700; }
.admin-level-form input:not([type="checkbox"]), .admin-level-form select, .admin-level-form textarea { width: 100%; min-height: 42px; padding: 0 11px; border: 1px solid var(--line); border-radius: 9px; background: #0c1119; color: var(--text); }
.admin-level-form textarea { padding: 10px 11px; font: inherit; resize: vertical; }
.offerwall-params { display: grid; gap: 12px; margin: 0; padding: 12px; border: 1px solid var(--line); border-radius: 9px; }
.offerwall-params legend { padding: 0 6px; color: var(--muted); font-size: .72rem; font-weight: 700; }
.admin-enabled-field { display: flex; align-items: center; gap: 9px; color: var(--muted); font-size: .78rem; }
.admin-enabled-field input { width: 18px; height: 18px; accent-color: var(--accent); }
.admin-level-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 9px; padding-top: 8px; border-top: 1px solid var(--line); }
.admin-level-actions .form-status { flex: 1 1 100%; }
.admin-edit-button { min-height: 34px; padding: 5px 10px; font-size: .72rem; }
.level-section { margin-top: 14px; }
.level-section .card-heading { padding: 14px 16px 0; }
.level-section .card-heading h2 { margin: 0; font-size: 1rem; }
.help-link { padding: 0; border: 0; background: none; color: var(--accent); font: inherit; font-size: .72rem; font-weight: 700; cursor: pointer; }
.help-link:hover { text-decoration: underline; }
.help-dialog { width: min(480px, calc(100% - 28px)); }
.help-steps { margin: 14px 0 0; padding-left: 0; list-style: none; display: grid; gap: 10px; }
.help-steps li, .help-extra { color: #cfd6e2; font-size: .84rem; line-height: 1.55; }
.help-extra { margin: 12px 0 0; }
.help-dialog a { color: var(--accent); font-weight: 700; text-decoration: underline; }
.level-section .converter-description { margin: 4px 0 0; }
.public-wager-levels { padding: 14px 16px 16px; }
.level-loading { grid-column: 1 / -1; margin: 0; color: var(--muted); font-size: .8rem; }
.wager-level-tabs { display: flex; gap: 8px; overflow-x: auto; padding: 0 0 10px; border-bottom: 1px solid var(--line); scrollbar-width: thin; }
.wager-level-tab { flex: 0 0 auto; min-height: 42px; padding: 8px 14px; border: 1px solid var(--line); border-radius: 9px 9px 0 0; background: #101722; color: var(--muted); font: inherit; font-size: .8rem; font-weight: 750; cursor: pointer; }
.wager-level-tab[aria-selected="true"] { border-color: var(--accent); background: #211b12; color: var(--accent); }
.wager-level-tab:focus-visible, .wager-level-panel:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.wager-level-panels { padding-top: 14px; }
.wager-level-panel { display: grid; justify-items: start; gap: 9px; }
.wager-level-panel[hidden] { display: none; }
.wager-level-kicker { margin: 0; color: var(--muted); font-size: .68rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.wager-level-stake { color: var(--accent); font-size: 1.35rem; }
.wager-level-panel { position: relative; }
.wager-level-jackpot { position: absolute; top: 0; right: 0; display: grid; justify-items: end; gap: 2px; text-align: right; }
.side-card .card-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.jackpot-side { display: flex; flex-direction: column; }
.jackpot-side .card-body { flex: 1; display: grid; align-content: center; justify-items: center; gap: 8px; text-align: center; }
.jackpot-side-amount { color: var(--accent); font-size: clamp(2.4rem, 4.5vw, 3.6rem); line-height: 1.1; font-weight: 900; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; text-shadow: 0 0 14px rgba(245, 166, 35, .4); }
.jackpot-side-since { color: var(--muted); font-size: .8rem; }
.wager-level-jackpot-amount { font-size: 2rem; line-height: 1.1; font-weight: 900; color: var(--accent); text-shadow: 0 0 14px rgba(245, 166, 35, .4); }
.info-wrap { position: relative; display: inline-flex; }
.info-icon { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 14px; box-sizing: border-box; width: 14px; height: 14px; min-width: 14px; min-height: 14px; padding: 0; border: 1px solid var(--muted); border-radius: 50%; background: transparent; color: var(--muted); font: italic 700 .54rem/1 Georgia, serif; text-transform: none; cursor: pointer; }
.info-icon:hover, .info-icon:focus-visible { border-color: var(--accent); color: var(--accent); outline: none; }
.info-tooltip { position: absolute; top: calc(100% + 8px); right: -6px; z-index: 20; width: 230px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 9px; background: #0c1119; color: var(--text); font-size: .72rem; font-weight: 400; letter-spacing: 0; line-height: 1.5; text-align: left; text-transform: none; box-shadow: 0 8px 24px rgba(0, 0, 0, .5); visibility: hidden; opacity: 0; transition: opacity .12s; pointer-events: none; }
.info-tooltip-left { right: auto; left: -6px; width: 280px; font-size: .72rem; font-weight: 400; letter-spacing: 0; text-transform: none; }
.info-tooltip strong { font-weight: 400; }
.info-wrap:hover .info-tooltip, .info-icon:focus-visible + .info-tooltip { visibility: visible; opacity: 1; }
.wager-level-breakdown { color: var(--muted); font-size: .78rem; line-height: 1.55; }
.wager-level-rule { margin: 0; color: var(--muted); font-size: .76rem; line-height: 1.5; }
.level-prediction-form { display: grid; width: 100%; gap: 10px; margin-top: 5px; }
.level-prediction-form .converter-field { min-width: 0; }
.level-prediction-form input { width: 100%; min-height: 44px; padding: 0 11px; border: 1px solid var(--line); border-radius: 9px; background: #0c1119; color: var(--text); }
.level-prediction-form input:disabled { cursor: not-allowed; opacity: .65; }
.level-prediction-form .text-link { justify-self: end; }
.level-prediction-form .button { justify-self: end; }
.level-prediction-form .button:disabled { cursor: not-allowed; opacity: .6; }
.wager-placement-status:empty { display: none; }
.activity-tabs { display: flex; align-items: center; gap: 8px; padding: 0 0 10px; border-bottom: 1px solid var(--line); }
.activity-tabs .info-wrap { margin-left: 4px; }
.activity-panels { padding-top: 14px; }
.activity-panels [role="tabpanel"][hidden] { display: none; }
.activity-panels .live-predictions-heading { padding: 0 0 8px; border-bottom: 0; min-height: 0; }
.activity-panels .live-predictions-status { padding: 0; }
.awaiting-summary { margin: 4px 0 8px; color: var(--accent); font-size: .85rem; font-weight: 700; }
.round-jackpot-won { margin: 4px 0; color: var(--accent); font-size: .85rem; font-weight: 800; }
.wager-placement-status, .live-predictions-status { margin: 0; color: var(--muted); font-size: .74rem; line-height: 1.5; }
.live-predictions-card { width: 100%; margin-top: 5px; overflow: hidden; border: 1px solid var(--line); border-radius: 10px; background: #0f151f; }
.live-predictions-heading { display: flex; min-height: 46px; align-items: center; justify-content: space-between; gap: 10px; padding: 0 12px; border-bottom: 1px solid var(--line); }
.live-predictions-heading h3 { margin: 0; font-size: .88rem; }
.live-predictions-heading span { color: var(--muted); font-size: .74rem; }
.live-predictions-status { padding: 10px 12px 0; }
.live-predictions-card .table-scroll { margin-top: 7px; }
.live-predictions-card th, .live-predictions-card td { padding: 9px 10px; font-size: .74rem; }
.wager-detail-card { max-width: 760px; }
.wager-detail-card .card-body { display: grid; gap: 10px; }
.wager-detail-card .dashboard-eyebrow, .wager-detail-card h2, .wager-detail-card > .card-body > p { margin: 0; }
.wager-detail-card h2 { font-size: 1.15rem; }
.wager-jackpot { color: var(--accent); font-size: clamp(1.5rem, 6vw, 2rem); }
.wager-detail-card > .card-body > p { color: var(--muted); font-size: .8rem; }
.wager-detail-card > .card-body > .account-note { line-height: 1.6; }
.wager-rule-list { display: grid; margin-top: 6px; border-top: 1px solid var(--line); }
.wager-rule-list > div { display: grid; gap: 4px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.wager-rule-list span { color: var(--muted); font-size: .7rem; text-transform: uppercase; }
.wager-rule-list strong { font-size: .8rem; line-height: 1.5; }
.rules-page { display: grid; align-content: start; gap: 14px; }
.rules-page .dashboard-heading { margin-bottom: 0; }
.rules-content { color: #dce2eb; font-size: .88rem; line-height: 1.65; }
.rules-content h2 { margin: 0; font-size: 1rem; }
.rules-content p { margin: 0; }
.rules-content ul, .rules-content ol { display: grid; gap: 8px; margin: 0; padding-left: 22px; }
.rules-content li { padding-left: 2px; }
.rules-note { margin: 0; color: var(--muted); font-size: .8rem; line-height: 1.6; }
.wager-error { margin-top: 12px; }
.offers-page { display: grid; align-content: start; gap: 14px; }
.offers-page .dashboard-heading { margin-bottom: 0; }
.offers-page .card-body { display: grid; gap: 10px; }
.cpx-wall-card { overflow: hidden; }
.cpx-wall-card iframe { display: block; width: 100%; height: 110vh; min-height: 900px; border: 0; background: #fff; }
.admin-row-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.admin-row-actions .button[data-danger="true"] { border-color: #c0485a; color: #ff8fa0; }
.admin-table-scroll td img { display: block; border-radius: 6px; }
.shop-page { display: grid; align-content: start; gap: 14px; }
.shop-page .dashboard-heading { margin-bottom: 0; }
.shop-notice { margin: 0; color: var(--accent); }
.daily-bonus { display: grid; grid-template-columns: minmax(0, 240px) 1fr; align-items: center; border-color: var(--green); }
.daily-bonus img { display: block; width: 100%; height: auto; }
.daily-bonus-body { display: grid; gap: 8px; padding: 16px; justify-items: start; }
.daily-bonus-body h2, .daily-bonus-body p { margin: 0; }
.daily-timer { color: var(--muted); }
.daily-timer strong { color: var(--green); font-variant-numeric: tabular-nums; font-size: 1.2rem; }
@media (max-width: 560px) { .daily-bonus { grid-template-columns: 1fr; } }
.admin-image-preview { display: block; border: 1px solid var(--line); border-radius: 8px; background: #0c1119; object-fit: cover; }
.shop-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.shop-package { display: flex; flex-direction: column; position: relative; }
.shop-coins s { color: var(--muted); font-weight: 500; }
.shop-extra { font-family: "Comic Sans MS", "Chalkboard SE", "Comic Neue", "Segoe Print", cursive; font-size: 1.15em; font-weight: 700; color: #ff4fd8; text-shadow: 0 0 8px rgba(255, 79, 216, .45); }
.shop-best { position: absolute; top: 10px; right: 10px; background: var(--green); color: #06251a; font-weight: 800; font-size: .72rem; padding: 3px 9px; border-radius: 999px; text-transform: uppercase; letter-spacing: .03em; }
.shop-package img { display: block; width: 100%; height: auto; border-bottom: 1px solid var(--line); }
.shop-package-body { display: grid; gap: 6px; padding: 14px; }
.shop-package-body h2 { margin: 0; font-size: 1rem; }
.shop-package-body p { margin: 0; }
.shop-coins { color: var(--accent); font-weight: 700; font-size: 1.15rem; }
.shop-price { color: var(--muted); }
.shop-package-body .button { margin-top: 6px; }
.shop-package-body .button:disabled { opacity: .55; cursor: not-allowed; }
[hidden] { display: none !important; }
.table-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; text-align: left; }
th, td { padding: 11px 10px; border-bottom: 1px solid #222c3a; font-size: .8rem; white-space: nowrap; }
th { color: var(--muted); font-size: .68rem; letter-spacing: .06em; text-transform: uppercase; }
tbody tr:last-child td { border-bottom: 0; }
.game-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.game-tile {
  display: flex; min-height: 76px; flex-direction: column; justify-content: center; gap: 5px;
  padding: 12px; border: 1px solid var(--line); border-radius: 9px; background: #131b27;
}
.game-tile strong { font-size: .82rem; }
.game-tile span { color: var(--muted); font-size: .72rem; }
.coming-soon { color: var(--accent) !important; font-weight: 700; }
footer { padding: 18px 0 28px; border-top: 1px solid var(--line); color: var(--muted); font-size: .75rem; text-align: center; }
.site-footer { margin-top: 24px; padding: 16px 0 20px; border-top: 1px solid var(--line); background: #0b1018; text-align: center; }
.site-footer-inner { display: grid; gap: 12px; justify-items: center; }
.location-disclaimer { width: 100%; margin: 0; padding: 11px 13px; border: 1px solid var(--line); border-radius: 9px; background: #101722; color: var(--muted); font-size: .73rem; line-height: 1.55; }
.location-disclaimer strong { color: var(--text); }
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 18px; }
.footer-links a { color: var(--muted); font-size: .75rem; text-decoration: none; }
.footer-links a:hover, .footer-links a:focus-visible { color: var(--accent); text-decoration: underline; }
.legal-page { max-width: 900px; line-height: 1.65; }
.legal-page h2 { margin: 26px 0 8px; color: var(--accent); font-size: 1.1rem; }
.legal-page h3 { margin: 18px 0 6px; font-size: .98rem; }
.legal-page h4 { margin: 0 0 12px; color: var(--muted); font-size: .8rem; font-weight: 600; }
.legal-page p, .legal-page li { color: #cfd6e2; font-size: .88rem; }
.legal-page a { color: var(--accent); text-decoration: underline; }
.legal-page .rules-content { margin-top: 24px; }
.footer-copyright { margin: 0; color: var(--muted); font-size: .7rem; line-height: 1.5; }

@media (min-width: 640px) {
  .shell { width: min(100% - 40px, 1240px); }
  .topbar-inner { min-height: 72px; }
  .network-strip { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .network-stat { padding: 15px 16px; }
  .prediction-form { width: min(430px, 55%); }
  .jackpot-card { grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: 20px; }
  .jackpot-amount { justify-items: end; text-align: right; }
  .wager-note { grid-column: 1 / -1; }
  .content-grid { grid-template-columns: minmax(0, 1.65fr) minmax(260px, 1fr); gap: 16px; margin-top: 18px; }
  .consent-stack { right: 20px; bottom: 20px; left: auto; width: min(820px, calc(100% - 40px)); }
  .cookie-notice, .location-notice { grid-template-columns: minmax(0, 1fr) auto; align-items: center; }
  .dashboard-summary { grid-template-columns: auto minmax(160px, 1.3fr) repeat(3, minmax(0, 1fr)); }
  .dashboard-stat { padding-top: 0; border-top: 0; border-left: 1px solid var(--line); padding-left: 14px; }
  .dashboard-form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dashboard-form-actions { flex-direction: row; align-items: center; justify-content: space-between; }
  .dashboard-form-actions .button { width: auto; }
  .admin-level-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-level-actions { grid-column: 1 / -1; }
  .admin-level-actions .form-status { flex-basis: 100%; }
  .level-prediction-form { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "input button" "link link"; align-items: center; column-gap: 12px; row-gap: 6px; }
  .level-prediction-form .converter-field { grid-area: input; }
  .level-prediction-form .text-link { grid-area: link; justify-self: end; }
  .level-prediction-form .button { grid-area: button; justify-self: end; min-height: 44px; }
  .accounting-periods { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 900px) {
  main { padding-top: 26px; }
  .converter-controls { grid-template-columns: 100px minmax(120px, 1fr) auto minmax(120px, 1fr); align-items: end; gap: 10px; }
  .converter-arrow { display: block; padding-bottom: 0; color: var(--muted); }
  .converter-swap { grid-column: auto; margin-bottom: 4px; }
  .converter-result { grid-column: 1 / -1; text-align: right; }
  .converter-status { text-align: right; }
  .content-grid { grid-template-columns: minmax(0, 1.8fr) minmax(300px, 1fr); gap: 18px; margin-top: 20px; }
  .network-stat { padding: 16px 18px; }
  .stat-value { font-size: 1.08rem; }
  .dashboard-columns { grid-template-columns: minmax(0, 1.55fr) minmax(300px, .85fr); gap: 18px; }
  .dashboard-summary { padding: 20px; }
}
.topbar .topbar-inner { width: 100%; margin-inline: 0; padding-inline: 14px; }
.with-side { display: grid; gap: 14px; margin-top: 14px; }
.with-side > .level-section, .with-side > .card, .with-side > .network-strip { margin-top: 0; min-width: 0; }
.side-card .game-list { grid-template-columns: 1fr; }
.jackpot-side { overflow: visible; position: relative; z-index: 3; }
.user-flag { border: 1px solid #ff6b6b; background: #2a1616; color: #ff8a8a; border-radius: 6px; font-size: .72rem; font-weight: 700; padding: 1px 7px; cursor: pointer; }
.user-flag-details td { background: #1b1414; padding: 10px 14px; }
.password-wrap { position: relative; display: block; }
.password-wrap input { width: 100%; padding-right: 58px; }
.password-toggle { position: absolute; top: 50%; right: 8px; transform: translateY(-50%); border: 0; background: transparent; color: var(--accent); font-size: .78rem; font-weight: 700; cursor: pointer; padding: 4px; }
.chat-left { display: grid; gap: 14px; align-content: start; min-width: 0; }
.chat-left > .card { margin-top: 0; min-width: 0; }
.chat-card { display: flex; flex-direction: column; min-height: 420px; max-height: 760px; }
.chat-card .chat-pool { color: var(--accent); font-size: .78rem; font-weight: 700; }
.chat-body { display: flex; flex-direction: column; flex: 1; min-height: 0; padding: 0 14px 14px; gap: 8px; }
.chat-tabs { display: flex; gap: 4px; flex-wrap: wrap; }
.chat-tabs button { border: 1px solid var(--line); border-radius: 6px; background: transparent; color: var(--muted); padding: 3px 9px; font-size: .75rem; cursor: pointer; }
.chat-tabs button[aria-pressed="true"] { border-color: var(--accent); color: var(--accent); }
.chat-tabs .chat-badge { background: var(--accent); color: #17120a; border-radius: 8px; padding: 0 5px; margin-left: 4px; font-weight: 800; }
.chat-view { flex: 1; min-height: 0; overflow-y: auto; border: 1px solid var(--line); border-radius: 8px; background: #0d121b; padding: 8px; font-size: .82rem; line-height: 1.4; overflow-wrap: anywhere; }
.chat-view[hidden] { display: none; }
.chat-msg { padding: 3px 0; border-bottom: 1px solid #172031; }
.chat-msg:last-child { border-bottom: 0; }
.chat-msg time { color: var(--muted); font-size: .68rem; margin-right: 5px; }
.chat-user { font-weight: 700; background: none; border: 0; padding: 0; color: var(--blue); cursor: pointer; font: inherit; font-weight: 700; }
.chat-user.role-admin { color: #ff6b6b; }
.chat-user.role-mod { color: var(--green); }
.chat-msg.kind-announcement { background: #211b12; border-left: 3px solid var(--accent); padding-left: 6px; }
.chat-msg.kind-notice { background: #2a1616; border-left: 3px solid #ff6b6b; padding-left: 6px; color: #ffb3b3; }
.chat-msg.kind-flag { background: #2a2210; border-left: 3px solid var(--accent); padding-left: 6px; color: var(--accent); }
.chat-msg.kind-tip, .chat-msg.kind-rain, .chat-msg.kind-prize { color: var(--accent); font-style: italic; }
.chat-msg a { color: var(--blue); }
.chat-tools { display: flex; gap: 4px; flex-wrap: wrap; margin-top: 3px; }
.chat-tools button, .chat-tools select { font-size: .68rem; padding: 1px 5px; border: 1px solid var(--line); border-radius: 5px; background: var(--panel-raised); color: var(--text); cursor: pointer; }
.chat-compose { display: flex; gap: 6px; align-items: flex-start; }
.chat-compose input[type="text"] { flex: 1; min-width: 0; padding: 7px 9px; border: 1px solid var(--line); border-radius: 8px; background: #0d121b; color: var(--text); }
.chat-editor { flex: 1; min-width: 0; min-height: 34px; max-height: 110px; overflow-y: auto; padding: 6px 9px; border: 1px solid var(--line); border-radius: 8px; background: #0d121b; color: var(--text); font-size: .82rem; }
.chat-toolbar { display: flex; gap: 4px; flex-wrap: wrap; }
.chat-toolbar button, .chat-toolbar select { font-size: .72rem; padding: 2px 7px; border: 1px solid var(--line); border-radius: 5px; background: var(--panel-raised); color: var(--text); cursor: pointer; }
.chat-note { color: var(--muted); font-size: .72rem; margin: 0; }
.chat-note.error { color: #ff8a8a; }
.chat-empty { color: var(--muted); font-size: .82rem; }
.chat-section { margin: 0 0 10px; }
.chat-section h3 { margin: 0 0 4px; font-size: .78rem; color: var(--accent); }
.chat-row-form { display: flex; gap: 4px; flex-wrap: wrap; margin-bottom: 6px; }
.chat-row-form input, .chat-row-form select { min-width: 0; flex: 1; padding: 4px 6px; border: 1px solid var(--line); border-radius: 6px; background: #0d121b; color: var(--text); font-size: .78rem; }
.chat-row-form button { font-size: .75rem; padding: 4px 8px; border: 1px solid var(--accent); border-radius: 6px; background: transparent; color: var(--accent); cursor: pointer; }
.chat-pm { padding: 4px 0; border-bottom: 1px solid #172031; }
.chat-pm.unread { border-left: 3px solid var(--accent); padding-left: 6px; }
.chat-list-item { display: flex; justify-content: space-between; gap: 6px; padding: 2px 0; }
.chat-list-item button { font-size: .7rem; border: 1px solid var(--line); background: transparent; color: var(--muted); border-radius: 5px; cursor: pointer; }
@media (min-width: 900px) {
  .chat-row { align-items: stretch; }
  .chat-card { max-height: none; }
}
@media (min-width: 900px) {
  .with-side { grid-template-columns: minmax(0, 1.8fr) minmax(300px, 1fr); gap: 18px; }
}
@media (min-width: 1100px) {
  .content-grid { grid-template-columns: minmax(0, 1.8fr) minmax(300px, 1fr); }
}
@media (min-width: 1100px) {
  .accounting-periods { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 420px) {
  .shell { width: min(100% - 20px, 1240px); }
  .topbar-inner { gap: 10px; }
  .brand { font-size: 1rem; }
  .topbar-actions { gap: 6px; }
  .topbar-actions .button { min-height: 38px; padding-inline: 10px; font-size: .78rem; }
  .header-balance-link { max-width: min(280px, 68vw); gap: 6px; padding: 4px 9px 4px 4px; }
  .hdr-usd { display: none; }
  .hdr-name { max-width: 90px; font-size: .75rem; }
  .hdr-balance { padding-left: 6px; font-size: .78rem; }
  .network-stat { padding: 12px 10px; }
  .stat-label { font-size: .62rem; letter-spacing: .04em; }
  .stat-value { font-size: .9rem; }
}

.page-editor { display: grid; gap: 10px; padding: 14px 16px; }
.page-editor-toolbar { display: flex; flex-wrap: wrap; gap: 6px; }
.page-editor-tool { padding: 4px 10px; min-height: 0; font-size: .8rem; }
.page-editor-surface { min-height: 320px; max-height: 60vh; overflow: auto; padding: 14px; border: 1px solid rgba(255,255,255,.18); border-radius: 8px; background: rgba(0,0,0,.25); line-height: 1.55; }
.page-editor-surface:focus { outline: 2px solid var(--accent, #f7931a); }
.page-editor-source { width: 100%; font-family: Consolas, monospace; font-size: .85rem; padding: 12px; border-radius: 8px; border: 1px solid rgba(255,255,255,.18); background: rgba(0,0,0,.25); color: inherit; }
.static-page-body { line-height: 1.6; }
.page-section { margin-bottom: 14px; }
.page-section > summary { cursor: pointer; list-style: none; padding: 14px 16px; display: flex; align-items: center; gap: 10px; }
.page-section > summary::-webkit-details-marker { display: none; }
.page-section > summary::before { content: "▸"; transition: transform .15s; }
.page-section[open] > summary::before { transform: rotate(90deg); }
.page-section > summary h2 { margin: 0; font-size: 1.1rem; }
.page-section .page-url { margin-left: auto; font-size: .75rem; color: var(--muted); }
.page-title-field { padding: 0 16px; }
.admin-groups { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 10px; }
.admin-group { min-height: 38px; padding: 8px 18px; border: 1px solid var(--line); border-radius: 999px; background: #0d131d; color: var(--muted); font: inherit; font-size: .85rem; font-weight: 800; cursor: pointer; }
.admin-group[aria-pressed="true"] { border-color: var(--accent); background: var(--accent); color: #111; }
.admin-group:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.admin-tab[hidden] { display: none; }
.admin-group-select { display: none; width: 100%; min-height: 44px; margin: 0 0 10px; padding: 8px 12px; border: 1px solid var(--accent); border-radius: 8px; background: #0d131d; color: var(--text, #fff); font: inherit; font-weight: 800; }
@media (max-width: 700px) {
  .admin-groups { display: none; }
  .admin-group-select { display: block; }
}
.blocks-dialog { width: min(820px, calc(100vw - 24px)); }
.blocks-dialog-scroll { max-height: 65vh; overflow: auto; }
.blocks-dialog .block-hash { font-family: Consolas, monospace; font-size: .8rem; color: var(--muted); }
/* Persistent chat dock (right side) */
.chat-dock { position: fixed; top: 65px; right: 0; bottom: 0; z-index: 4; width: 320px; margin: 0; border-radius: 0; border-width: 0 0 0 1px; max-height: none; min-height: 0; overflow: hidden; }
.chat-dock[hidden] { display: none; }
.chat-dock .card-heading { gap: 10px; }
.chat-dock-close { margin-left: auto; border: 1px solid var(--line); border-radius: 6px; background: transparent; color: var(--accent); font-weight: 800; padding: 2px 9px; cursor: pointer; }
.chat-dock-tab { position: fixed; right: 0; top: 50%; z-index: 4; transform: translateY(-50%); padding: 14px 7px; border: 1px solid var(--accent); border-right: 0; border-radius: 10px 0 0 10px; background: #211b12; color: var(--accent); font-weight: 800; font-size: .8rem; cursor: pointer; writing-mode: vertical-rl; }
.chat-dock-tab[hidden] { display: none; }
@media (min-width: 1100px) {
  body.chat-open { padding-right: 320px; }
  body.chat-open > header.topbar { margin-right: -320px; }
}
@media (max-width: 1099px) {
  .chat-dock { box-shadow: 0 18px 40px #0008; }
}
@media (max-width: 480px) { .chat-dock { width: 100vw; } }
@media (min-width: 900px) {
  body.menu-open .shell, body.chat-open .shell { width: calc(100% - 20px); max-width: none; }
  body.menu-open .legal-page, body.menu-open .wager-detail-card { max-width: none; }
}
.chat-left { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1000px) { .chat-left { grid-template-columns: repeat(2, minmax(0, 1fr)); } .chat-left > .level-section { grid-column: 1 / -1; } }
/* Activity ticker */
.activity-ticker { position: relative; overflow: hidden; margin: 0 0 14px; padding: 20px 0 8px; border-radius: 14px; background: linear-gradient(180deg, rgba(34, 24, 66, .85), rgba(14, 12, 30, .9)); border: 1px solid rgba(245, 166, 35, .35); box-shadow: inset 0 0 24px rgba(120, 80, 255, .12); mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent); min-height: 84px; }
.ticker-track { display: flex; width: max-content; animation: ticker-scroll var(--ticker-duration, 60s) linear infinite; }
.activity-ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-run { display: flex; gap: 34px; padding-right: 34px; }
.ticker-item { position: relative; flex: none; display: flex; align-items: center; min-width: 250px; margin-left: 28px; padding: 7px 16px 7px 64px; border-radius: 10px; background: linear-gradient(135deg, #2b2150, #17122f); border: 2px solid #6f5bd6; box-shadow: 0 4px 0 #0c0919, 0 0 14px rgba(111, 91, 214, .35); }
.ticker-item.is-big { border-color: #ffc83d; background: linear-gradient(135deg, #5a1730, #2a0f26); box-shadow: 0 4px 0 #0c0919, 0 0 20px rgba(255, 200, 61, .55); }
.ticker-sticker { position: absolute; left: -22px; top: -20px; width: 96px; transform: rotate(var(--tilt, -6deg)); filter: drop-shadow(0 3px 2px rgba(0, 0, 0, .5)); pointer-events: none; }
.ticker-sticker svg { display: block; width: 100%; height: auto; overflow: visible; }
.ticker-body { display: grid; gap: 3px; white-space: nowrap; }
.ticker-line1 { color: #e9e6ff; font-size: .88rem; }
.ticker-user { color: #7be7ff; font-weight: 800; }
.ticker-amount { color: var(--accent, #f5a623); font-weight: 900; }
.is-big .ticker-line1 .ticker-amount { color: #ffd54a; text-shadow: 0 0 10px rgba(255, 213, 74, .6); }
.ticker-line2 { color: #b9b3de; font-size: .72rem; letter-spacing: .02em; }
.is-big .ticker-line2 { color: #ffc83d; font-weight: 800; }
@keyframes ticker-scroll { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ticker-track { animation: none; } .activity-ticker { overflow-x: auto; } }
main:has(> .activity-ticker:first-child) { padding-top: 0; }

/* Home summary */
.home-summary { display: grid; gap: 14px; margin-top: 8px; }
@media (min-width: 900px) { .home-summary { grid-template-columns: 1.4fr 1fr; } }
.home-card { margin-top: 0; }
.home-card .card-heading { padding: 14px 16px 0; }
.home-card .card-heading h2 { margin: 0; font-size: 1rem; }
.home-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.home-stat, .home-vip { display: grid; gap: 4px; align-content: start; padding: 12px; border-radius: 10px; background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .08); }
.home-label { color: var(--muted); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; }
.home-value { font-size: 1.25rem; font-variant-numeric: tabular-nums; }
.home-value.is-ready { color: #6df0a0; }
.home-stat small, .home-vip small, .home-level small { color: var(--muted); }
.link-button { background: none; border: 0; color: var(--accent); padding: 0; cursor: pointer; font: inherit; text-decoration: underline; }
.home-notes { list-style: none; margin: 0; padding: 0 16px 14px; display: grid; gap: 8px; }
.home-notes li { display: grid; gap: 2px; padding: 8px 10px; border-radius: 8px; background: rgba(255, 255, 255, .04); }
.home-notes li.is-unread { border-left: 3px solid var(--accent); }
.home-level { display: grid; gap: 12px; }
.home-level-main { display: flex; align-items: center; gap: 14px; }
.home-badge { flex: none; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; font-size: 1.4rem; font-weight: 900; color: #1b1203; background: radial-gradient(circle at 30% 25%, #ffe28a, #f5a623 70%); box-shadow: 0 0 14px rgba(245, 166, 35, .5); }
.home-level-text { flex: 1; display: grid; gap: 6px; min-width: 0; }
.xp-bar { height: 10px; border-radius: 6px; background: rgba(255, 255, 255, .1); overflow: hidden; }
.xp-bar span { display: block; height: 100%; width: 0; border-radius: 6px; background: linear-gradient(90deg, #6df0ff, #a53cff); transition: width .6s ease; }
.vip-tier { font-size: 1.15rem; }
.vip-tier[data-tier="silver"] { color: #cfd6e4; }
.vip-tier[data-tier="gold"] { color: #ffd54a; }
.vip-tier[data-tier="platinum"] { color: #7be7ff; text-shadow: 0 0 10px rgba(123, 231, 255, .5); }
.vip-tier[data-tier="bronze"] { color: #d99058; }
.home-guest { margin-top: 12px; color: var(--muted); }
.reward-rows,.reward-programs{display:grid;gap:14px;padding:0 20px 20px}
.reward-row,.reward-program{display:grid;gap:10px;padding:14px;border:1px solid var(--line,#2a3142);border-radius:12px}
.reward-row{grid-template-columns:110px 1fr 2fr auto;align-items:end}
.reward-fields{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:12px;padding:0 20px 12px}
.reward-program .reward-fields{padding:0}
.reward-toggle{display:flex;align-items:center;gap:6px}
#rewards-root .admin-levels-card .table-scroll{margin:0 20px 16px}
#rewards-root .form-status{padding:0 20px}
@media(max-width:800px){.reward-row{grid-template-columns:1fr}}
.tx-scroll{margin:0 20px;max-height:420px;overflow:auto}
.tx-in{color:#3ddc97;font-weight:700}
.tx-out{color:#ff6b6b;font-weight:700}
