/* ===== People ============================================================ */
.avatar { position: relative; display: inline-block; width: 34px; height: 34px; border-radius: 50%; overflow: hidden; flex: none; background: #26283f; }
.avatar::after { content: ''; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08); pointer-events: none; }
/* a blocky head (inline svg from App.art.avatar) over a backdrop tone */
.avatar .av {
  display: block; width: 100%; height: 100%;
  background: linear-gradient(180deg, color-mix(in srgb, var(--at) 88%, #fff), color-mix(in srgb, var(--at) 55%, #000));
}
.avatar-sm { width: 30px; height: 30px; }
.avatar-lg { width: 44px; height: 44px; border-radius: 12px; }
.avatar-xl { width: 76px; height: 76px; border-radius: 18px; }

.lvl {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  min-width: 22px; height: 18px; padding: 0 5px; border-radius: 5px;
  font-size: 11px; font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums;
  background: rgba(255, 255, 255, 0.07); color: #aab2c0;
}
.lvl-1 { background: rgba(127, 214, 131, 0.13); color: #8fe093; }
.lvl-2 { background: rgba(214, 196, 66, 0.15); color: #e7d15a; }
.lvl-3 { background: rgba(76, 141, 255, 0.16); color: #7eb0ff; }
.lvl-4 { background: rgba(155, 107, 255, 0.18); color: #bb9bff; }
.lvl-5 { background: rgba(255, 77, 94, 0.17); color: #ff8592; }
.lvl-6 { background: linear-gradient(90deg, rgba(255, 150, 20, 0.3), rgba(255, 140, 0, 0.25)); color: #ffe38a; box-shadow: inset 0 0 0 1px rgba(255, 150, 20, 0.35); }

/* ===== Item tile ========================================================= */
.item {
  --rc: #8b93a4;
  position: relative; display: flex; flex-direction: column;
  padding: 10px 10px 12px; border-radius: 8px; overflow: hidden; isolation: isolate;
  background:
    linear-gradient(0deg, color-mix(in srgb, var(--rc) 26%, transparent) 0%, transparent 55%),
    linear-gradient(180deg, #1c1d33, #15162a);
  border: 1px solid var(--line);
  transition: transform 0.18s var(--ease), border-color 0.18s, box-shadow 0.18s;
}
.item::before {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(60% 45% at 50% 48%, color-mix(in srgb, var(--rc) 24%, transparent), transparent 70%);
}
.item::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--rc); box-shadow: 0 0 16px var(--rc); }
.item:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--rc) 55%, transparent); box-shadow: 0 14px 30px -16px var(--rc); }
.item-top { display: flex; align-items: center; justify-content: space-between; gap: 6px; min-height: 18px; font-size: 11.5px; color: var(--muted); font-weight: 600; }
.item-tag { display: inline-flex; align-items: center; gap: 4px; }
.item-tag i { font-style: normal; color: var(--muted-2); font-weight: 500; font-family: var(--mono); font-size: 10px; }
.st { color: #ff8a3d; font-weight: 700; }
.item-odds { color: var(--text-2); background: rgba(0, 0, 0, 0.35); padding: 2px 6px; border-radius: 4px; font-variant-numeric: tabular-nums; }
.item-img { position: relative; aspect-ratio: 4 / 3; display: grid; place-items: center; margin: 2px 0 6px; }
.item-img img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 8px 14px rgba(0, 0, 0, 0.55)); transition: transform 0.25s var(--ease); }
.item:hover .item-img img { transform: scale(1.07) rotate(-2deg); }
.item-meta { min-width: 0; }
.item-kind { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.item-name { font-size: 14px; font-weight: 600; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.item-price { margin-top: 6px; font-family: var(--display); font-size: 17px; }
.item-price .amt { color: #fff; font-weight: 700; }
.item.selectable { cursor: pointer; }
.item.selected { border-color: var(--yellow); box-shadow: 0 0 0 1px var(--yellow), 0 0 22px -6px rgba(255, 150, 20, 0.6); }
.item.selected::before { content: ''; position: absolute; inset: auto 8px auto auto; top: 8px; width: 18px; height: 18px; border-radius: 50%; z-index: 2;
  background: var(--yellow) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23241900' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E") center / 11px no-repeat; }
.item.disabled { opacity: 0.4; pointer-events: none; }
.item-actions { display: flex; gap: 6px; margin-top: 8px; }
.item-actions .btn { flex: 1; height: 30px; font-size: 13px; padding: 0 8px; }
.item-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.item-grid.sm { grid-template-columns: repeat(auto-fill, minmax(126px, 1fr)); gap: 8px; }
.item-grid.sm .item { padding: 8px 8px 10px; }
.item-grid.sm .item-name { font-size: 12.5px; }

/* ===== Red / Blue / bonus coins (App.art.face) ================================ */
img.tcoin { display: block; flex: none; object-fit: contain; }

/* ===== Case cards ======================================================== */
.case-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(196px, 1fr)); gap: 12px; }
/* home: each case section is one row; cases that don't fit slide through it (home.js) */
.case-row { --n: 6; overflow: hidden; margin: -8px -6px; padding: 8px 6px; }
.case-track {
  display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - (var(--n) - 1) * 12px) / var(--n)); gap: 12px;
  transition: transform 0.6s var(--ease);
}
.case-card {
  position: relative; display: flex; flex-direction: column; align-items: center;
  padding: 18px 14px 16px; border-radius: 12px; overflow: hidden; isolation: isolate;
  background: linear-gradient(180deg, #181a2d, #131525);
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: transform 0.25s var(--ease), border-color 0.25s;
}
/* one soft pool of the case's colour behind it, a little stronger on hover */
.case-card::before {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: 0.6; transition: opacity 0.3s;
  background: radial-gradient(54% 38% at 50% 40%, color-mix(in srgb, var(--c1) 22%, transparent), transparent 80%);
}
.case-card:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--c1) 30%, rgba(255, 255, 255, 0.05)); }
.case-card:hover::before { opacity: 1; }
.case-card .case-visual { width: 94%; transition: transform 0.35s var(--ease); }
.case-card:hover .case-visual { transform: translateY(-3%) scale(1.03); }
.case-name { margin-top: 8px; font-family: var(--display); font-weight: 700; font-size: 18px; text-transform: uppercase; letter-spacing: 0.03em; text-align: center; line-height: 1.1; }
.case-price {
  --cut: 7px;
  margin-top: 10px; padding: 7px 16px; clip-path: var(--chamfer);
  background: rgba(255, 138, 0, 0.12); color: var(--yellow);
  font-family: var(--display); font-size: 18px; transition: background 0.2s, color 0.2s;
}
.case-price .amt { font-weight: 700; }
.case-card:hover .case-price { background: var(--accent-grad); color: #2a1300; }
.case-card:hover .case-price .coin { filter: brightness(0.9); }
.case-tag {
  --cut: 5px;
  position: absolute; top: 12px; left: 12px; z-index: 3; padding: 4px 9px; clip-path: var(--chamfer);
  font-family: var(--display); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em;
  background: rgba(76, 141, 255, 0.22); color: #a8c6ff;
}
.case-tag.hot { background: rgba(255, 77, 94, 0.24); color: #ffa3ad; }
.case-tag.gold { background: rgba(255, 150, 20, 0.22); color: var(--yellow); }
@media (max-width: 560px) {
  .case-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .case-card { padding: 12px 8px 14px; }
  .case-name { font-size: 16px; }
  .case-price { font-size: 16px; padding: 6px 12px; }
}

/* Case art: a 3D render (App.art.caseSrc, tools/case-art) that carries its own contact shadow. */
.case-visual { position: relative; isolation: isolate; aspect-ratio: 512 / 400; }
.case-visual .case-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; z-index: 1; }
/* a community case's emblem, laid over the badge of its plain body (the transform is the badge's
   projected axes in the render; tools/case-art/out/anchors.json) */
.case-decal {
  position: absolute; left: 62.22%; top: 49.53%; width: 22%; aspect-ratio: 1; z-index: 2; pointer-events: none;
  transform: translate(-50%, -50%) matrix(0.933, -0.175, -0.025, 1.007, 0, 0);
  filter: drop-shadow(0 1px 0 rgba(0, 0, 0, 0.45));
}
.case-decal .decal { display: block; width: 100%; height: 100%; }
/* the best item in the case (home page and Cases cards), rising out from behind the lid. Item
   pictures are square; --lx/--ly is where the lid is in the case picture (App.art.caseLid). */
.case-card.with-hero .case-visual { margin-top: 27%; }
.case-visual .case-hero {
  position: absolute; z-index: 0; width: 50%; aspect-ratio: 1; object-fit: contain; pointer-events: none;
  left: calc(var(--lx, 0.489) * 100%); top: calc(var(--ly, 0.174) * 100% - 57%); translate: -50% 0;
  filter: drop-shadow(0 0 14px color-mix(in srgb, var(--c1) 40%, transparent)) drop-shadow(0 6px 8px rgba(0, 0, 0, 0.45));
  transition: transform 0.35s var(--ease);
}
.case-card:hover .case-hero { transform: translateY(-7%) scale(1.05); }

/* ===== Reel (case spinner) =============================================== */
.reel { position: relative; overflow: hidden; border-radius: 10px; background: linear-gradient(180deg, #0c0d18, #11122200 40%), repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.015) 0 1px, transparent 1px 40px), #0e0f1c; border: 1px solid var(--line); }
.reel-h { height: calc(var(--cell) + 28px); }
.reel-track { position: absolute; left: 0; top: 0; display: flex; gap: var(--gap); will-change: transform; }
.reel-h .reel-track { top: 14px; flex-direction: row; }
.reel-v .reel-track { left: 50%; margin-left: calc(var(--cell) / -2); flex-direction: column; }
.reel-cell {
  --rc: #8b93a4;
  position: relative; flex: none; width: var(--cell); height: var(--cell);
  border-radius: 6px; overflow: hidden; display: grid; place-items: center;
  background: linear-gradient(0deg, color-mix(in srgb, var(--rc) 38%, transparent), transparent 65%), linear-gradient(180deg, #1a1b31, #141529);
  border: 1px solid rgba(255, 255, 255, 0.04);
  transition: opacity 0.3s, transform 0.35s var(--ease), box-shadow 0.3s;
}
.reel-cell img { width: 86%; height: 86%; object-fit: contain; filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.55)); pointer-events: none; }
.reel-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--rc); box-shadow: 0 0 14px var(--rc); }
.reel-marker { position: absolute; z-index: 3; pointer-events: none; }
.reel-h .reel-marker { left: 50%; top: 0; bottom: 0; width: 2px; margin-left: -1px; background: linear-gradient(180deg, #ffc24a, #ff7a00); box-shadow: 0 0 16px rgba(255, 138, 0, 0.9), 0 0 2px #fff; }
.reel-h .reel-marker::before, .reel-h .reel-marker::after { content: ''; position: absolute; left: 50%; transform: translateX(-50%); border: 8px solid transparent; }
.reel-h .reel-marker::before { top: 0; border-top-color: var(--yellow); }
.reel-h .reel-marker::after { bottom: 0; border-bottom-color: var(--yellow); }
.reel-v .reel-marker { top: 50%; left: 0; right: 0; height: 2px; margin-top: -1px; background: linear-gradient(90deg, #ffc24a, #ff7a00); box-shadow: 0 0 16px rgba(255, 138, 0, 0.9), 0 0 2px #fff; }
.reel-v .reel-marker::before, .reel-v .reel-marker::after { content: ''; position: absolute; top: 50%; transform: translateY(-50%); border: 7px solid transparent; }
.reel-v .reel-marker::before { left: 0; border-left-color: var(--yellow); }
.reel-v .reel-marker::after { right: 0; border-right-color: var(--yellow); }
.reel-shade { position: absolute; inset: 0; pointer-events: none; z-index: 2; }
.reel-h .reel-shade { background: linear-gradient(90deg, #0e0f1c 0%, transparent 20%, transparent 80%, #0e0f1c 100%); }
.reel-v .reel-shade { background: linear-gradient(180deg, #0e0f1c 0%, transparent 24%, transparent 76%, #0e0f1c 100%); }
.reel.done .reel-cell:not(.win) { opacity: 0.25; filter: grayscale(0.5); }
.reel-cell.win { transform: scale(1.08); box-shadow: 0 0 0 2px var(--rc), 0 0 40px -2px var(--rc); z-index: 1; }

/* ===== Toasts ============================================================ */
.toasts { position: fixed; top: calc(var(--topbar-h) + 12px); right: 16px; z-index: 200; display: flex; flex-direction: column; gap: 8px; pointer-events: none; }
.toast {
  pointer-events: auto; display: flex; align-items: flex-start; gap: 10px; max-width: 360px;
  padding: 12px 14px; border-radius: 10px; background: #1a1b30; border: 1px solid var(--line-2); border-left: 3px solid var(--blue);
  box-shadow: var(--shadow); font-size: 13.5px; color: var(--text-2); cursor: pointer;
  opacity: 0; transform: translateX(20px); transition: opacity 0.22s, transform 0.22s var(--ease);
}
.toast.in { opacity: 1; transform: none; }
.toast a { color: var(--yellow); font-weight: 600; text-decoration: underline; }
.toast b { color: #fff; }
.toast-ic { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; flex: none; background: rgba(76, 141, 255, 0.18); color: var(--blue); }
.toast-ic .ic { width: 13px; height: 13px; stroke-width: 3; }
.toast-msg { padding-top: 1px; }
.toast-msg .amt { color: #fff; }
.toast-success { border-left-color: var(--green); }
.toast-error { border-left-color: var(--red); }
.toast-success .toast-ic { background: rgba(36, 198, 97, 0.18); color: var(--green-1); }
.toast-error .toast-ic { background: rgba(255, 77, 94, 0.18); color: var(--red); }
.toast-gold { border-color: rgba(255, 150, 20, 0.4); border-left-color: var(--orange); background: linear-gradient(90deg, rgba(255, 150, 20, 0.14), #1a1b30 60%); }
.toast-gold .toast-ic { background: rgba(255, 150, 20, 0.2); color: var(--yellow); }

/* ===== Modal ============================================================= */
.modal-overlay {
  position: fixed; inset: 0; z-index: 150; display: grid; place-items: center; padding: 20px;
  background: rgba(5, 6, 14, 0.75); backdrop-filter: blur(4px); opacity: 0; transition: opacity 0.18s;
}
.modal-overlay.in { opacity: 1; }
.modal {
  width: min(560px, 100%); max-height: calc(100vh - 40px); overflow: auto;
  background: linear-gradient(180deg, #1a1b31, #141526); border: 1px solid var(--line-2); border-top: 2px solid var(--orange); border-radius: 12px; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.7);
  transform: translateY(10px) scale(0.98); transition: transform 0.2s var(--ease);
}
.modal-overlay.in .modal { transform: none; }
.modal-sm { width: min(420px, 100%); }
.modal-lg { width: min(860px, 100%); }
.modal-head { display: flex; align-items: center; gap: 10px; padding: 16px 16px 0 20px; }
.modal-head h3 { font-size: 24px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.02em; flex: 1; }
.modal-body { padding: 14px 20px 20px; }
.modal-text { color: var(--text-2); line-height: 1.6; }
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; padding: 0 20px 20px; }

/* ===== Dropdown menu ===================================================== */
.menu {
  position: fixed; z-index: 120; min-width: 200px; padding: 6px;
  background: #181930; border: 1px solid var(--line-2); border-radius: 10px; box-shadow: var(--shadow);
  opacity: 0; transform: translateY(-4px); transition: opacity 0.15s, transform 0.15s var(--ease);
}
.menu.in { opacity: 1; transform: none; }
.menu-item { width: 100%; display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 8px; color: var(--text-2); font-weight: 500; font-size: 13.5px; text-align: left; }
.menu-item:hover { background: rgba(255, 255, 255, 0.06); color: #fff; }
.menu-item .ic { color: var(--muted); }
.menu-item:hover .ic { color: var(--yellow); }
.menu-div { height: 1px; background: var(--line); margin: 6px 4px; }
.menu-user { display: flex; align-items: center; gap: 10px; padding: 8px 8px 10px; }
.menu-user b { display: block; color: #fff; }
.menu-user > div > span { display: flex; align-items: center; gap: 4px; font-size: 12px; color: var(--muted); }

/* ===== Bet control ======================================================= */
.bet-control { display: flex; flex-direction: column; gap: 8px; }
.bet-input { display: flex; align-items: center; gap: 8px; height: 46px; padding: 0 12px; border-radius: 8px; background: var(--bg-0); border: 1px solid var(--line-2); }
.bet-input:focus-within { border-color: rgba(255, 150, 20, 0.5); }
.bet-input .coin { width: 20px; height: 20px; }
.bet-input input { flex: 1; min-width: 0; height: 100%; background: none; border: 0; outline: none; font-family: var(--display); font-size: 21px; font-weight: 700; color: #fff; font-variant-numeric: tabular-nums; }
.bet-quick { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; }
.bet-quick button { height: 30px; border-radius: 7px; background: var(--bg-4); color: var(--muted); font-size: 12px; font-weight: 600; }
.bet-quick button:hover { color: #fff; background: var(--bg-5); }

/* ===== Tabs ============================================================== */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 18px; overflow-x: auto; }
.tabs a, .tabs button { padding: 10px 16px; color: var(--muted); font-family: var(--display); font-size: 16px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; display: inline-flex; gap: 8px; align-items: center; }
.tabs a:hover, .tabs button:hover { color: #fff; }
.tabs .on { color: #fff; border-bottom-color: var(--orange); box-shadow: inset 0 -12px 18px -14px rgba(255, 138, 0, 0.6); }

/* ===== Tables ============================================================ */
.table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.table th { text-align: left; font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted-2); font-weight: 600; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.table td { padding: 11px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table .num { text-align: right; font-variant-numeric: tabular-nums; }
.table-wrap { overflow-x: auto; }

/* ===== Misc ============================================================== */
.confetti { position: fixed; inset: 0; width: 100vw; height: 100vh; pointer-events: none; z-index: 300; }
.drawer-scrim { position: fixed; inset: var(--topbar-h) 0 0 0; z-index: 65; background: rgba(0, 0, 0, 0.5); opacity: 0; pointer-events: none; transition: opacity 0.2s; }
body.chat-drawer .drawer-scrim { opacity: 1; pointer-events: auto; }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; }
.stat { padding: 14px 16px; border-radius: 12px; background: var(--bg-3); border: 1px solid var(--line); }
.stat > span { display: block; font-size: 12px; color: var(--muted); margin-bottom: 4px; }
.stat b { font-family: var(--display); font-size: 24px; display: flex; align-items: center; gap: 6px; }
.progress { height: 8px; border-radius: 8px; background: rgba(255, 255, 255, 0.08); overflow: hidden; }
.progress i { display: block; height: 100%; border-radius: 8px; background: linear-gradient(90deg, #ff7a00, #ffc24a); }
.wallet-row { display: flex; justify-content: space-between; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.wallet-row b .amt { font-size: 16px; }
.wallet p { margin: 14px 0; line-height: 1.6; }
.wallet-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.settings { display: flex; flex-direction: column; }
.set-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); cursor: pointer; }
.set-row:last-child { border-bottom: 0; }
.set-row span { display: flex; flex-direction: column; gap: 2px; }
.set-row small { color: var(--muted); font-size: 12px; }
.set-row .input { width: 180px; }
.set-row.danger b { color: var(--red); }
.faq details { border-bottom: 1px solid var(--line); padding: 12px 0; }
.faq summary { cursor: pointer; font-weight: 600; color: #fff; list-style: none; display: flex; justify-content: space-between; }
.faq summary::after { content: '+'; color: var(--muted); font-size: 18px; line-height: 1; }
.faq details[open] summary::after { content: '–'; }
.faq p { margin-top: 8px; color: var(--text-2); line-height: 1.6; }
.verify-chip { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); }
.verify-chip .ic { width: 14px; height: 14px; color: var(--green-1); }
.verify-chip a { color: var(--text-2); text-decoration: underline; text-decoration-color: rgba(255, 255, 255, 0.25); }

/* ---------------------------------------------------------------- sign in (online mode) */
.btn-steam {
  color: #fff;
  background: linear-gradient(180deg, #2a475e 0%, #171a21 100%);
  border: 1px solid rgba(102, 192, 244, 0.35);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}
.btn-steam:hover { border-color: #66c0f4; }
.login-box { display: grid; gap: 16px; }
.login-box .btn-steam { justify-content: center; }
.login-dev { display: grid; gap: 8px; padding-top: 14px; border-top: 1px solid var(--line); }
.login-dev .input { flex: 1; min-width: 0; }

/* styled dropdown (ui.selectBox) */
.cselect {
  display: inline-flex; align-items: center; justify-content: space-between; gap: 10px; height: 40px; min-width: 150px; padding: 0 12px 0 14px;
  border-radius: 10px; background: #0f1020; border: 1px solid rgba(160, 170, 255, 0.08); color: var(--text); font-size: 13.5px; font-weight: 600; white-space: nowrap;
  transition: border-color 0.15s, background 0.15s;
}
.cselect span { overflow: hidden; text-overflow: ellipsis; }
.cselect .ic { flex: none; width: 14px; height: 14px; color: var(--muted); transition: transform 0.2s var(--ease); }
.cselect:hover { border-color: rgba(160, 170, 255, 0.18); background: #131428; }
.cselect[data-menu-anchor] { border-color: rgba(255, 174, 26, 0.45); }
.cselect[data-menu-anchor] .ic { transform: rotate(180deg); color: var(--yellow); }
.menu-item .menu-check { margin-left: auto; width: 14px; height: 14px; color: var(--yellow); }

/* two-handle range slider (ui.rangeSlider) */
.rslider { display: flex; align-items: center; gap: 14px; height: 40px; padding: 0 16px 0 12px; border-radius: 10px; background: #0f1020; border: 1px solid rgba(160, 170, 255, 0.08); }
.rs-label { flex: none; color: var(--muted); font-size: 12.5px; font-weight: 600; }
.rs-val { flex: none; min-width: 112px; color: #fff; font-size: 12.5px; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.rs-rail { position: relative; flex: 1; min-width: 90px; height: 100%; margin: 0 9px; cursor: pointer; touch-action: none; }
.rs-track { position: absolute; left: 0; right: 0; top: 50%; height: 6px; margin-top: -3px; border-radius: 3px; background: rgba(255, 255, 255, 0.08); }
.rs-fill { position: absolute; top: 0; bottom: 0; border-radius: 3px; background: var(--accent-grad); box-shadow: 0 0 10px rgba(255, 150, 20, 0.35); }
.rs-thumb {
  position: absolute; top: 50%; z-index: 1; width: 18px; height: 18px; margin: -9px 0 0 -9px; border-radius: 50%;
  background: #fff; box-shadow: 0 0 0 3px #0f1020, 0 0 0 4px rgba(255, 174, 26, 0.6), 0 2px 6px rgba(0, 0, 0, 0.5); cursor: grab;
  transition: transform 0.12s var(--ease);
}
.rs-thumb::before { content: ''; position: absolute; inset: -10px; border-radius: 50%; } /* bigger grab area */
.rs-thumb:hover, .rs-thumb:focus-visible { transform: scale(1.15); outline: none; }
.rs-thumb.active { transform: scale(1.2); cursor: grabbing; }
