

:root {
  --bg: #130c2c;
  --bg-2: #180f36;
  --panel: #1f1543;
  --raised: #2a1d58;
  --line: #34266a;
  --line-2: #45358a;

  --text: #f5f1ff;
  --muted: #b0a5d8;
  --dim: #8478b4;

  --violet: #8b5cf6;
  --violet-hi: #a78bfa;
  --violet-lip: #5b21b6;
  --gem: #3fd0ff;
  --gem-lip: #0a7fae;
  --gold: #ffcb3d;
  --gold-lip: #b8800f;
  --win: #34d77b;
  --win-lip: #13894a;
  --loss: #ff5a76;

  --side-a: #a78bfa;
  --side-b: #ffcb3d;

  --r-sm: 10px;
  --r: 14px;
  --r-lg: 20px;

  --display: 'Lilita One', 'Nunito', system-ui, sans-serif;
  --body: 'Nunito', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html, body { height: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  font-variant-numeric: tabular-nums;
}

button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; padding: 0; }
img { display: block; }
h1, h2, h3, p, dl, dd, ol { margin: 0; }

:focus-visible {
  outline: 3px solid var(--violet-hi);
  outline-offset: 2px;
  border-radius: 8px;
}

.hidden { display: none; }
[hidden] { display: none !important; }

.gem-icon {
  width: 1.15em;
  height: 1.15em;
  flex: none;
  vertical-align: -0.18em;
  display: inline-block;
}

.icon-svg { width: 20px; height: 20px; }

.gold-text { color: var(--gold); }
.gem-text { color: var(--gem); }



.app-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr) 320px;
  height: 100vh;
  height: 100dvh;
}

.main-wrapper {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
}

.content-area {
  flex: 1;
  overflow-y: auto;
  padding: 24px 32px 48px;
}

.content-area > * { max-width: 1120px; margin-inline: auto; }



.sidebar-left {
  background: var(--bg-2);
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  padding: 20px 14px;
  overflow-y: auto;
}

.brand-section {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 8px 24px;
}

.brand-icon { width: 40px; height: 40px; flex: none; }

.brand-name {
  font-family: var(--display);
  font-size: 26px;
  line-height: 1;
  letter-spacing: 0.01em;
  text-shadow: 0 3px 0 var(--violet-lip);
}

.brand-highlight { color: var(--violet); }

.brand-wordmark {
  display: block;
  width: 100%;
  max-width: 150px;
  height: auto;
  min-width: 0;
}

.nav-group { margin-bottom: 20px; }

.nav-header {
  font-size: 12px;
  font-weight: 800;
  color: var(--dim);
  padding: 0 12px 6px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 10px 12px;
  border-radius: var(--r-sm);
  color: var(--muted);
  font-weight: 700;
  text-align: left;
  transition: background-color .15s, color .15s;
}

.nav-item:hover { background: var(--panel); color: var(--text); }

.nav-item.active {
  background: var(--raised);
  color: var(--text);
  box-shadow: inset 3px 0 0 var(--violet);
}

.nav-item.active .nav-svg { color: var(--violet-hi); }

.nav-svg { width: 20px; height: 20px; flex: none; }

.badge-hot {
  margin-left: auto;
  font-size: 11px;
  font-weight: 900;
  color: #3a0d18;
  background: var(--loss);
  padding: 1px 7px;
  border-radius: 6px;
}

.sidebar-footer { margin-top: auto; padding-top: 12px; }

.fee-badge-card {
  width: 100%;
  border-collapse: collapse;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r);
  font-size: 13px;
}

.fee-badge-title {
  caption-side: top;
  text-align: left;
  font-size: 12px;
  font-weight: 800;
  color: var(--dim);
  padding: 0 12px 6px;
}

.fee-row td { padding: 5px 12px; color: var(--muted); }
.fee-row:first-child td { padding-top: 10px; }
.fee-row:last-child td { padding-bottom: 10px; }
.fee-row td:last-child { text-align: right; color: var(--text); font-weight: 800; }

.age-note {
  font-size: 12px;
  color: var(--dim);
  padding: 12px 4px 0;
  line-height: 1.45;
}

.age-note strong { color: var(--muted); }

.scrim { display: none; }



.top-navbar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 32px;
  border-bottom: 1px solid var(--line);
  background: var(--bg);
  min-height: 68px;
}

.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: var(--r-sm);
  color: var(--muted);
  flex: none;
}

.icon-btn:hover { background: var(--panel); color: var(--text); }

.menu-toggle { display: none; }

.top-center-stats {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-inline: auto;
}

.balance-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 42px;
  padding: 0 16px;
  background: var(--panel);
  border: 2px solid var(--line);
  border-radius: 12px;
  font-family: var(--display);
  font-size: 20px;
  line-height: 1;
}

.balance-pill .gem-icon { width: 22px; height: 22px; }

.balance-value.bump { animation: bump .45s ease-out; }

@keyframes bump {
  30% { transform: scale(1.12); }
}

.top-right-profile { display: flex; align-items: center; gap: 8px; margin-left: auto; }

.user-profile-card { display: flex; align-items: center; gap: 10px; }

.user-avatar {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  border: 2px solid var(--line-2);
  background: var(--raised);
}

.user-meta { display: flex; flex-direction: column; line-height: 1.2; }
.user-name { font-weight: 800; font-size: 14px; }
.user-level { font-size: 12px; color: var(--gold); font-weight: 700; }



.btn {
  --fill: var(--raised);
  --lip: #160e33;
  --ink: var(--text);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 42px;
  padding: 0 18px;
  border-radius: 12px;
  background: var(--fill);
  color: var(--ink);
  font-weight: 900;
  font-size: 15px;
  white-space: nowrap;
  text-decoration: none;
  box-shadow: 0 4px 0 var(--lip);
  transform: translateY(0);
  transition: transform .08s, box-shadow .08s, filter .15s;
}

.btn:hover:not(:disabled) { filter: brightness(1.08); }

.btn:active:not(:disabled) {
  transform: translateY(3px);
  box-shadow: 0 1px 0 var(--lip);
}

.btn:disabled {
  cursor: not-allowed;
  opacity: .45;
  filter: saturate(.4);
}

.btn-primary { --fill: var(--violet); --lip: var(--violet-lip); --ink: #fff; }
.btn-gem { --fill: var(--gem); --lip: var(--gem-lip); --ink: #04263a; }
.btn-gold { --fill: var(--gold); --lip: var(--gold-lip); --ink: #3a2500; }
.btn-win { --fill: var(--win); --lip: var(--win-lip); --ink: #032a14; }
.btn-ghost { --fill: var(--raised); --lip: #120a2a; }

.btn-lg { height: 50px; font-size: 16px; border-radius: 14px; }
.btn-sm { height: 34px; padding: 0 14px; font-size: 14px; border-radius: 10px; box-shadow: 0 3px 0 var(--lip); }
.full-width { width: 100%; }



.giveaway-banner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 28px 32px;
  margin-bottom: 32px;
  border-radius: var(--r-lg);
  background:
    radial-gradient(circle at 78% 120%, rgba(255, 203, 61, .22), transparent 55%),
    linear-gradient(115deg, #2d1a6b, #1f1250 60%);
  border: 2px solid #4a339a;
  box-shadow: 0 6px 0 #0d0822;
  overflow: hidden;
  isolation: isolate;
}


.giveaway-banner::before,
.giveaway-banner::after {
  content: '';
  position: absolute;
  z-index: -1;
  border-radius: 22%;
  background: rgba(139, 92, 246, .16);
}
.giveaway-banner::before { width: 120px; height: 120px; left: -40px; bottom: -60px; transform: rotate(-14deg); }
.giveaway-banner::after { width: 22px; height: 22px; left: 46%; top: 18px; transform: rotate(12deg); background: rgba(139, 92, 246, .45); }

.giveaway-left { min-width: 0; }

.giveaway-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 14px;
  color: var(--gold);
  margin-bottom: 4px;
}

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--loss);
  box-shadow: 0 0 0 0 rgba(255, 90, 118, .6);
  animation: livePulse 1.8s infinite;
}

@keyframes livePulse {
  70% { box-shadow: 0 0 0 8px rgba(255, 90, 118, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 90, 118, 0); }
}

.giveaway-title {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(28px, 2.8vw, 42px);
  line-height: 1.05;
  text-shadow: 0 4px 0 var(--violet-lip);
}

.giveaway-rap {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  font-weight: 800;
  color: var(--muted);
}

.giveaway-right {
  display: flex;
  align-items: center;
  gap: 24px;
  flex: none;
  margin-right: 130px;
}

.giveaway-meta { display: flex; gap: 20px; }
.meta-box { display: flex; flex-direction: column; }
.meta-label { font-size: 12px; font-weight: 700; color: var(--muted); }
.meta-val { font-family: var(--display); font-size: 22px; line-height: 1.2; white-space: nowrap; }

.giveaway-art {
  position: absolute;
  right: 18px;
  bottom: -26px;
  width: 150px;
  height: 150px;
  transform: rotate(-8deg);
  z-index: -1;
}



.view-panel { display: none; }
.view-panel.active { display: block; animation: viewIn .2s ease-out; }

@keyframes viewIn {
  from { opacity: 0; transform: translateY(6px); }
}

.view-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 24px;
  margin-bottom: 16px;
}

.view-title {
  font-family: var(--display);
  font-weight: 400;
  font-size: 30px;
  line-height: 1.1;
}

.view-head:has(.view-sub) { flex-direction: column; align-items: flex-start; gap: 4px; }
.view-sub { color: var(--muted); max-width: 65ch; }

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
}

.action-buttons { display: flex; gap: 10px; }

.room-stats-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  margin-top: 4px;
  color: var(--muted);
  font-size: 14px;
}

.room-stats-bar span { display: inline-flex; align-items: center; gap: 5px; }
.room-stats-bar strong { color: var(--text); }

.filter-controls { display: flex; gap: 8px; margin-bottom: 12px; }

.btn-filter {
  height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  color: var(--muted);
  font-weight: 700;
  font-size: 14px;
}

.btn-filter:hover { color: var(--text); }

.btn-filter.active {
  background: var(--violet);
  border-color: var(--violet);
  color: #fff;
}



.rooms-list-container { display: flex; flex-direction: column; gap: 8px; }

.room-card {
  display: grid;
  grid-template-columns: minmax(250px, 1.7fr) minmax(120px, 1fr) 120px 84px 96px;
  align-items: center;
  gap: 16px;
  padding: 12px 16px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r);
  transition: border-color .15s;
}

.room-card:hover { border-color: var(--line-2); }

.room-players { display: flex; align-items: center; gap: 10px; min-width: 0; }

.player-col { display: flex; align-items: center; gap: 8px; min-width: 0; }

.player-bubble img {
  width: 36px;
  height: 36px;
  border-radius: 11px;
  border: 2px solid var(--side-a);
}

.player-col + .vs-text + .player-col .player-bubble img { border-color: var(--side-b); }
.player-bubble.waiting img { border-style: dashed; border-color: var(--line-2) !important; opacity: .7; }

.player-name-tag {
  font-weight: 800;
  font-size: 14px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 104px;
}

.player-name-tag.waiting-name { color: var(--dim); font-weight: 600; }

.vs-text { font-family: var(--display); font-size: 13px; color: var(--dim); }

.room-items-preview { display: flex; flex-wrap: wrap; gap: 6px; min-width: 0; }

.item-thumb-card {
  font-size: 12px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 8px;
  background: var(--raised);
  border: 1px solid var(--line-2);
  white-space: nowrap;
}

.item-thumb-card.titanic {
  border-color: transparent;
  background:
    linear-gradient(var(--raised), var(--raised)) padding-box,
    linear-gradient(90deg, #ff6b9a, #ffcb3d, #3fd0ff, #a78bfa) border-box;
}

.room-value { display: flex; flex-direction: column; }

.room-value-main {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--display);
  font-size: 20px;
  line-height: 1.2;
}

.room-fee-tag { font-size: 12px; color: var(--dim); font-weight: 700; }

.room-score-indicators { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; }

.score-text { font-family: var(--display); font-size: 18px; line-height: 1.1; }

.dice-score-dots { display: none; }

.round-mode-tag { font-size: 12px; font-weight: 700; color: var(--dim); }

.btn-view,
.btn-join-room {
  width: 100%;
  height: 38px;
  border-radius: 11px;
  font-weight: 900;
  transition: transform .08s, box-shadow .08s;
}

.btn-view { background: var(--raised); box-shadow: 0 3px 0 #120a2a; }
.btn-join-room { background: var(--win); color: #032a14; box-shadow: 0 3px 0 var(--win-lip); }
.btn-view:active, .btn-join-room:active { transform: translateY(2px); box-shadow: 0 1px 0 #120a2a; }



.game-layout {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.game-controls {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 20px;
}

.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.form-group label,
.form-group .label {
  font-size: 13px;
  font-weight: 800;
  color: var(--muted);
}

.input-with-icon {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  padding: 0 14px;
  background: var(--bg);
  border: 2px solid var(--line);
  border-radius: 12px;
  transition: border-color .15s;
}

.input-with-icon:focus-within { border-color: var(--violet); }

.input-with-icon input {
  flex: 1;
  min-width: 0;
  background: none;
  border: 0;
  outline: none;
  font-weight: 800;
  font-size: 16px;
}

.suffix-text { color: var(--dim); font-weight: 800; }

.custom-select {
  height: 44px;
  padding: 0 40px 0 14px;
  background: var(--bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b0a5d8' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center / 18px;
  border: 2px solid var(--line);
  border-radius: 12px;
  font-weight: 800;
  appearance: none;
  outline: none;
}

.custom-select:focus { border-color: var(--violet); }
.custom-select option { background: var(--panel); }

input[type=number]::-webkit-inner-spin-button { opacity: .4; }

.multiplier-info-box {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 12px 14px;
  background: var(--bg);
  border-radius: 12px;
}

.info-line { display: flex; justify-content: space-between; font-size: 14px; }
.info-line dt { color: var(--muted); }
.info-line dd { font-weight: 900; }

.fee-notice-pill { font-size: 13px; color: var(--dim); }

.stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  min-height: 380px;
  padding: 32px;
}

.game-result-box {
  display: none;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  border-radius: 12px;
  font-weight: 800;
  animation: resultIn .25s ease-out;
}

.game-result-box.win { background: rgba(52, 215, 123, .14); color: var(--win); }
.game-result-box.loss { background: rgba(255, 90, 118, .14); color: var(--loss); }

.result-icon { display: none; }

@keyframes resultIn {
  from { opacity: 0; transform: translateY(6px) scale(.97); }
}



.mines-board-wrapper { padding: 20px; }

.mines-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  max-width: 520px;
  margin-inline: auto;
}

.mine-tile {
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  background: var(--raised);
  border-radius: 14px;
  box-shadow: 0 5px 0 #150d33;
  cursor: pointer;
  transition: transform .08s, box-shadow .08s, background-color .15s;
}

.mine-tile svg { width: 46%; height: 46%; }

.mine-tile:not(.revealed):hover { background: #35266c; transform: translateY(-2px); box-shadow: 0 7px 0 #150d33; }
.mine-tile:not(.revealed):active { transform: translateY(4px); box-shadow: 0 1px 0 #150d33; }

.mine-tile.revealing { animation: tileWobble .3s infinite; }
.mine-tile.revealed { cursor: default; transform: translateY(4px); box-shadow: 0 1px 0 #150d33; }
.mine-tile.gem { background: rgba(63, 208, 255, .16); animation: tilePop .25s ease-out; }
.mine-tile.mine { background: rgba(255, 90, 118, .2); animation: tilePop .25s ease-out; }
.mine-tile.mine-reveal { background: var(--panel); opacity: .6; animation: none; }

@keyframes tilePop { 50% { transform: translateY(4px) scale(1.08); } }
@keyframes tileWobble { 50% { transform: rotate(2deg); } }



.side-picker { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }

.btn-picker {
  height: 44px;
  border-radius: 12px;
  border: 2px solid var(--line);
  font-weight: 900;
  color: var(--muted);
}

.btn-picker.heads.active { border-color: var(--violet); background: rgba(139, 92, 246, .2); color: var(--text); }
.btn-picker.tails.active { border-color: var(--gold); background: rgba(255, 203, 61, .15); color: var(--text); }

.mini-coin {
  display: inline-block;
  width: 16px;
  height: 16px;
  margin-right: 8px;
  vertical-align: -3px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 2px rgba(0, 0, 0, .25);
}
.mini-coin.heads { background: radial-gradient(circle at 35% 30%, #c4b5fd, #7c3aed 70%); }
.mini-coin.tails { background: radial-gradient(circle at 35% 30%, #fff1b8, #e0a21c 70%); }

.coin-3d {
  --flip-from: 0deg;
  --flip-to: 0deg;
  position: relative;
  width: 184px;
  height: 184px;
  transform-style: preserve-3d;
  transition: transform .55s cubic-bezier(.2, .9, .3, 1.25);
}

.coin-face {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border-radius: 50%;
  overflow: hidden;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.coin-front {
  transform: translateZ(7px);
  background: radial-gradient(circle at 32% 26%, #e4dbff 0, #a78bfa 20%, #8b5cf6 46%, #6d28d9 78%, #4c1d95 100%);
  box-shadow: inset 0 0 0 5px #4c1d95, inset 0 0 0 9px rgba(196, 181, 253, .5), inset 0 -16px 26px rgba(30, 8, 80, .45);
}

.coin-back {
  transform: rotateY(180deg) translateZ(7px);
  background: radial-gradient(circle at 32% 26%, #fffbe6 0, #ffe17a 22%, #ffcb3d 48%, #e0a21c 78%, #a8740c 100%);
  box-shadow: inset 0 0 0 5px #a8740c, inset 0 0 0 9px rgba(255, 240, 180, .6), inset 0 -16px 26px rgba(110, 65, 0, .4);
}


.coin-face::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: repeating-conic-gradient(rgba(255, 255, 255, .25) 0 2.5deg, rgba(0, 0, 0, .14) 2.5deg 5deg);
  -webkit-mask: radial-gradient(circle, transparent calc(50% - 15px), #000 calc(50% - 14px), #000 calc(50% - 6px), transparent calc(50% - 5px));
  mask: radial-gradient(circle, transparent calc(50% - 15px), #000 calc(50% - 14px), #000 calc(50% - 6px), transparent calc(50% - 5px));
}


.coin-face::after {
  content: '';
  position: absolute;
  inset: 24px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, .3);
  box-shadow: inset 0 2px 0 rgba(0, 0, 0, .18), 0 2px 0 rgba(0, 0, 0, .12);
}

.coin-emblem {
  position: relative;
  z-index: 1;
  width: 48%;
  height: 48%;
  filter: drop-shadow(0 2px 0 rgba(0, 0, 0, .2));
}

.coin-shine {
  position: absolute;
  inset: 0;
  z-index: 2;
  border-radius: 50%;
  pointer-events: none;
  background: linear-gradient(115deg, transparent 38%, rgba(255, 255, 255, .5) 48%, transparent 58%) no-repeat;
  background-size: 260% 100%;
  background-position: 160% 0;
  animation: coinShine 5s ease-in-out infinite;
}

@keyframes coinShine {
  0%, 62% { background-position: 160% 0; }
  88%, 100% { background-position: -60% 0; }
}


.coin-edge { position: absolute; inset: 0; transform-style: preserve-3d; }
.coin-edge i {
  position: absolute;
  inset: 1px;
  border-radius: 50%;
  transform: translateZ(var(--z));
  background: #4c1d95;
}
.coin-edge i.g { background: #9a6a08; }

.coin-3d.flipping { animation: coinFlip 2s cubic-bezier(.3, .1, .25, 1); }

@keyframes coinFlip {
  0% { transform: rotateY(var(--flip-from)) translateY(0) rotateX(0deg); }
  45% { transform: rotateY(calc(var(--flip-from) + (var(--flip-to) - var(--flip-from)) * .55)) translateY(-64px) rotateX(22deg); }
  100% { transform: rotateY(var(--flip-to)) translateY(0) rotateX(0deg); }
}



.upgrader-wheel-box {
  --chance: 48.8;
  position: relative;
  width: 260px;
  height: 260px;
}

.wheel-circle {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(var(--win) 0 calc(var(--chance) * 1%), var(--raised) 0 100%);
  box-shadow: 0 6px 0 #0d0822;
  transition: box-shadow .3s;
}

.wheel-circle::after {
  content: '';
  position: absolute;
  inset: 22px;
  border-radius: 50%;
  background: var(--panel);
}

.wheel-pointer {
  position: absolute;
  left: 50%;
  top: -10px;
  width: 0;
  height: 0;
  margin-left: -12px;
  border: 12px solid transparent;
  border-top: 18px solid var(--text);
  border-bottom: 0;
  z-index: 2;
}

.wheel-inner {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

.wheel-inner span { font-family: var(--display); font-size: 44px; line-height: 1; }
.wheel-inner small { font-weight: 700; color: var(--muted); }

.upgrade-win { box-shadow: 0 6px 0 #0d0822, 0 0 0 6px rgba(52, 215, 123, .5); }
.upgrade-loss { box-shadow: 0 6px 0 #0d0822, 0 0 0 6px rgba(255, 90, 118, .5); }



.crash-screen {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 380px;
  overflow: hidden;
  background:
    linear-gradient(var(--line) 1px, transparent 1px) 0 0 / 100% 56px,
    linear-gradient(90deg, var(--line) 1px, transparent 1px) 0 0 / 56px 100%,
    var(--panel);
  background-blend-mode: normal;
}

.crash-screen::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 60%, transparent 30%, var(--panel) 80%);
}

.crash-rocket {
  position: absolute;
  left: 50%;
  bottom: 24px;
  width: 56px;
  height: 56px;
  margin-left: -28px;
  transition: transform .1s linear;
}

.crash-multiplier-big {
  position: relative;
  font-family: var(--display);
  font-size: clamp(56px, 8vw, 88px);
  line-height: 1;
  text-shadow: 0 5px 0 #0d0822;
}

.crash-status-text { position: relative; color: var(--muted); font-weight: 800; }

.crash-screen.crashed .crash-rocket { transition: transform .35s ease-in; }



.table-panel { overflow-x: auto; }

.custom-table { width: 100%; border-collapse: collapse; }

.custom-table th {
  text-align: left;
  font-size: 13px;
  font-weight: 800;
  color: var(--dim);
  padding: 14px 20px 10px;
  border-bottom: 1px solid var(--line);
}

.custom-table td { padding: 12px 20px; border-bottom: 1px solid var(--line); }
.custom-table tr:last-child td { border-bottom: 0; }
.custom-table .num { text-align: right; }

.rank-badge {
  display: inline-grid;
  place-items: center;
  min-width: 30px;
  height: 30px;
  border-radius: 9px;
  font-family: var(--display);
  color: var(--muted);
}

.rank-gold { background: var(--gold); color: #3a2500; box-shadow: 0 3px 0 var(--gold-lip); }
.rank-silver { background: #d8d4ea; color: #2a2540; box-shadow: 0 3px 0 #8f89aa; }
.rank-bronze { background: #e8945a; color: #3a1800; box-shadow: 0 3px 0 #9c5627; }

.leaderboard-player { display: flex; align-items: center; gap: 10px; font-weight: 800; }
.leaderboard-avatar { width: 32px; height: 32px; border-radius: 10px; }
.leaderboard-wagered { font-family: var(--display); font-size: 17px; }
.leaderboard-level { color: var(--muted); font-weight: 700; }



.giveaways-list-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 12px;
}

.giveaway-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 18px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
}

.giveaway-card-top { display: flex; align-items: center; justify-content: space-between; }

.giveaway-prize-tag {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--display);
  font-size: 24px;
}

.giveaway-count { font-size: 13px; color: var(--muted); font-weight: 700; }
.giveaway-card-body { color: var(--muted); flex: 1; }
.giveaway-card-body strong { display: block; color: var(--text); font-size: 17px; }

.btn-giveaway-join.joined { --fill: var(--raised); --lip: #120a2a; --ink: var(--muted); }

.empty-state {
  grid-column: 1 / -1;
  padding: 48px 24px;
  text-align: center;
  color: var(--muted);
  background: var(--panel);
  border: 1px dashed var(--line-2);
  border-radius: var(--r-lg);
}

.empty-state strong { display: block; color: var(--text); font-size: 17px; margin-bottom: 4px; }



.affiliate-boxes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }

.aff-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  padding: 20px;
}

.aff-card span { color: var(--muted); font-weight: 700; font-size: 14px; }
.aff-card strong { font-family: var(--display); font-weight: 400; font-size: 28px; line-height: 1.2; }
.aff-card .btn { margin-top: 8px; }

.fair-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.fair-box { padding: 22px; display: flex; flex-direction: column; gap: 10px; }
.fair-box h3 { font-size: 18px; font-weight: 900; }
.fair-box p { color: var(--muted); max-width: 60ch; }

.formula {
  font-family: ui-monospace, 'Cascadia Code', Consolas, monospace;
  font-size: 14px;
  padding: 12px 14px;
  background: var(--bg);
  border-radius: 10px;
  color: var(--gem);
  overflow-x: auto;
}

.fee-specs-list { border-collapse: collapse; width: 100%; }
.fee-specs-list td { padding: 8px 0; border-bottom: 1px solid var(--line); }
.fee-specs-list tr:last-child td { border-bottom: 0; }
.fee-specs-list td:last-child { text-align: right; font-weight: 900; }



.sidebar-right {
  display: flex;
  flex-direction: column;
  background: var(--bg-2);
  border-left: 1px solid var(--line);
  min-height: 0;
}

.chat-header {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 68px;
  padding: 0 18px;
  border-bottom: 1px solid var(--line);
}

.chat-title { font-family: var(--display); font-size: 20px; }

.chat-online-count {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--muted);
  font-weight: 700;
}

.chat-close { margin-left: auto; }

.chat-toggle { position: relative; }
.chat-toggle[aria-expanded="true"] { color: var(--violet-hi); background: var(--panel); }

.chat-unread {
  position: absolute;
  top: 3px;
  right: 2px;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  border-radius: 9px;
  background: var(--loss);
  color: #fff;
  font-size: 10px;
  font-weight: 900;
  line-height: 17px;
  text-align: center;
  animation: pop .35s cubic-bezier(.2, .9, .3, 1.5);
}
.chat-unread[hidden] { display: none; }


@media (min-width: 1281px) {
  .app-layout { transition: grid-template-columns .3s cubic-bezier(.2, .8, .3, 1); }
  .sidebar-right { min-width: 0; overflow: hidden; transition: visibility 0s; }
  body.chat-collapsed .app-layout { grid-template-columns: 240px minmax(0, 1fr) 0px; }
  body.chat-collapsed .sidebar-right { visibility: hidden; border-left-color: transparent; transition: visibility 0s .3s; }
}

.status-indicator { width: 8px; height: 8px; border-radius: 50%; background: var(--win); }

.chat-pinned { display: flex; flex-direction: column; gap: 8px; padding: 12px; border-bottom: 1px solid var(--line); }

.chat-announcement-card {
  font-size: 13px;
  color: var(--muted);
  padding: 10px 12px;
  background: var(--panel);
  border-radius: 12px;
  border-left: 3px solid var(--violet);
}

.chat-announcement-card strong { color: var(--text); }

.chat-mini-giveaway-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: var(--panel);
  border-radius: 12px;
}

.mini-giveaway-content { flex: 1; min-width: 0; }
.mini-giveaway-name { font-weight: 900; font-size: 14px; }
.mini-giveaway-value { font-size: 12px; color: var(--gold); font-weight: 700; }

.chat-messages-container {
  flex: 1;
  overflow-y: auto;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.chat-empty { margin: auto; text-align: center; color: var(--dim); font-size: 14px; padding: 24px; }

.chat-msg { display: flex; gap: 10px; animation: resultIn .2s ease-out; }

.chat-msg-avatar { width: 32px; height: 32px; border-radius: 10px; flex: none; background: var(--raised); }

.chat-msg-body { min-width: 0; }

.chat-msg-header { display: flex; align-items: baseline; gap: 6px; font-size: 13px; }
.chat-msg-name { font-weight: 900; }
.chat-msg-level { font-size: 11px; font-weight: 800; color: var(--gold); }
.chat-msg-time { margin-left: auto; font-size: 11px; color: var(--dim); }
.chat-msg-text { font-size: 14px; color: #ddd6f6; overflow-wrap: anywhere; }

.chat-input-bar {
  display: flex;
  gap: 8px;
  padding: 12px;
  border-top: 1px solid var(--line);
}

.chat-input-bar input {
  flex: 1;
  min-width: 0;
  height: 42px;
  padding: 0 14px;
  background: var(--panel);
  border: 2px solid var(--line);
  border-radius: 12px;
  outline: none;
}

.chat-input-bar input:focus { border-color: var(--violet); }
.chat-input-bar input::placeholder { color: var(--dim); }

.btn-chat-send {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--violet);
  color: #fff;
  box-shadow: 0 3px 0 var(--violet-lip);
}

.btn-chat-send:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--violet-lip); }



.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(8, 4, 22, .72);
  opacity: 0;
  visibility: hidden;
  transition: opacity .18s, visibility .18s;
}

.modal-overlay.open { opacity: 1; visibility: visible; }

.modal-card {
  width: 100%;
  max-width: 460px;
  max-height: calc(100dvh - 32px);
  overflow-y: auto;
  background: var(--panel);
  border: 2px solid var(--line-2);
  border-radius: 22px;
  box-shadow: 0 8px 0 #0a0620;
  transform: translateY(12px) scale(.98);
  transition: transform .2s cubic-bezier(.2, .9, .3, 1.2);
}

.modal-overlay.open .modal-card { transform: none; }

.duel-display-card { max-width: 620px; }

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 18px 0 22px;
}

.modal-header h3 { font-family: var(--display); font-weight: 400; font-size: 24px; }

.modal-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  margin: 16px 22px 0;
  padding: 4px;
  background: var(--bg);
  border-radius: 12px;
}

.modal-tab { height: 38px; border-radius: 9px; font-weight: 800; color: var(--muted); }
.modal-tab.active { background: var(--raised); color: var(--text); }

.modal-body { display: flex; flex-direction: column; gap: 16px; padding: 18px 22px 24px; }

.modal-body #depositSection,
.modal-body #withdrawSection { display: flex; flex-direction: column; gap: 16px; }
.modal-body #withdrawSection.hidden,
.modal-body .hidden { display: none; }

.modal-desc { color: var(--muted); }

.security-code-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 16px;
  background: var(--bg);
  border: 2px dashed var(--line-2);
  border-radius: 14px;
}

.code-title { font-size: 13px; font-weight: 800; color: var(--muted); }

.neon-code {
  font-family: var(--display);
  font-weight: 400;
  font-size: 40px;
  letter-spacing: .12em;
  color: var(--gem);
}

.deposit-instructions,
.withdraw-instructions { display: flex; flex-direction: column; gap: 14px; }

.step-guide {
  padding-left: 0;
  list-style: none;
  counter-reset: step;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 14px;
}

.step-guide li { counter-increment: step; display: flex; gap: 10px; align-items: baseline; }

.step-guide li::before {
  content: counter(step);
  flex: none;
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 7px;
  background: var(--raised);
  font-size: 12px;
  font-weight: 900;
}

.instruction-text { color: var(--muted); font-size: 14px; }

.inventory-items-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 8px;
}

.inventory-item-card {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 12px;
  background: var(--bg);
  border: 2px solid var(--line);
  border-radius: 12px;
  font-size: 13px;
  cursor: pointer;
  text-align: left;
}

.inventory-item-card span { color: var(--gem); font-weight: 800; }
.inventory-item-card.selected { border-color: var(--gold); background: rgba(255, 203, 61, .1); }

.inventory-empty { font-size: 14px; color: var(--dim); }



.match-arena-stage {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
}

.fighter-side { display: flex; flex-direction: column; align-items: center; gap: 10px; min-width: 0; }

.fighter-avatar {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  border: 3px solid var(--side-a);
  background: var(--raised);
}

.fighter-avatar.side-b { border-color: var(--side-b); }

.fighter-name {
  font-weight: 900;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dice-3d-box {
  display: grid;
  place-items: center;
  width: 80px;
  height: 80px;
  border-radius: 20px;
  font-family: var(--display);
  font-size: 40px;
}

.dice-a { background: var(--side-a); color: #2a0f6a; box-shadow: 0 6px 0 var(--violet-lip); }
.dice-b { background: var(--side-b); color: #3a2500; box-shadow: 0 6px 0 var(--gold-lip); }

.dice-face.rolling { display: inline-block; animation: diceRoll .8s ease-out; }

@keyframes diceRoll {
  0% { transform: rotate(-200deg) scale(.4); opacity: 0; }
  70% { transform: rotate(12deg) scale(1.1); opacity: 1; }
}

.fighter-score { font-family: var(--display); font-size: 36px; line-height: 1; }

.arena-center { display: flex; flex-direction: column; align-items: center; gap: 6px; }

.vs-glow-badge { font-family: var(--display); font-size: 28px; color: var(--dim); }

.match-mode-label {
  font-size: 12px;
  font-weight: 900;
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--raised);
  color: var(--muted);
}

.total-pot-pill { display: flex; align-items: center; gap: 6px; font-family: var(--display); font-size: 20px; }
.fee-rate-tag { font-size: 12px; color: var(--dim); font-weight: 700; }

.match-status-bar {
  text-align: center;
  padding: 12px;
  background: var(--bg);
  border-radius: 12px;
  font-weight: 800;
  color: var(--muted);
}



.history-list-box { display: flex; flex-direction: column; gap: 6px; }

.history-item {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  background: var(--bg);
  border-radius: 12px;
}

.history-left, .history-right { display: flex; flex-direction: column; }
.history-right { align-items: flex-end; }
.history-winner { font-weight: 900; }
.history-mode, .history-time { font-size: 12px; color: var(--dim); }
.history-payout { font-family: var(--display); color: var(--gem); }

.history-list-box .empty-state { padding: 32px 16px; }



@media (max-width: 1280px) {
  .app-layout { grid-template-columns: 240px minmax(0, 1fr); }


  .sidebar-right {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(340px, 100%);
    z-index: 60;
    transform: translateX(100%);
    transition: transform .25s ease;
  }

  .sidebar-right.open { transform: none; box-shadow: -8px 0 0 rgba(0, 0, 0, .25); }

  .scrim.open {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 50;
    background: rgba(8, 4, 22, .6);
  }

  .room-card { grid-template-columns: minmax(240px, 1.6fr) minmax(100px, 1fr) 110px 80px 88px; }
}

@media (max-width: 1440px) {
  .giveaway-banner { flex-wrap: wrap; padding-right: 210px; }
  .giveaway-right { margin-right: 0; }
}

@media (max-width: 1080px) {
  .giveaway-banner { padding-right: 32px; }
  .giveaway-art { opacity: .35; }
  .game-layout { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .app-layout { grid-template-columns: minmax(0, 1fr); }

  .menu-toggle { display: inline-grid; }

  .sidebar-left {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 260px;
    z-index: 60;
    transform: translateX(-100%);
    transition: transform .25s ease;
  }

  .sidebar-left.open { transform: none; }

  .top-navbar { padding: 10px 16px; gap: 8px; }
  .top-center-stats { margin-inline: 0 auto; }
  .user-meta { display: none; }

  .content-area { padding: 16px 16px 40px; }

  .giveaway-banner { flex-direction: column; align-items: stretch; padding: 22px; }
  .giveaway-right { justify-content: space-between; flex-wrap: wrap; }

  .room-card {
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "players value"
      "items   score"
      "action  action";
    gap: 10px 12px;
  }

  .room-players { grid-area: players; }
  .room-items-preview { grid-area: items; }
  .room-value { grid-area: value; align-items: flex-end; }
  .room-score-indicators { grid-area: score; align-items: flex-end; }
  .room-card > div:last-child { grid-area: action; }

  .affiliate-boxes, .fair-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .balance-pill { padding: 0 12px; font-size: 18px; }
  .wallet-btn { padding: 0 14px; }
  .view-head .action-buttons { width: 100%; }
  .view-head .action-buttons .btn { flex: 1; }
  .giveaway-meta { gap: 16px; }
  .giveaway-right .btn { width: 100%; }
  .form-row { grid-template-columns: 1fr; }
  .match-arena-stage { gap: 6px; }
  .dice-3d-box { width: 64px; height: 64px; font-size: 32px; }
  .stage { min-height: 300px; padding: 24px 16px; }
  .upgrader-wheel-box { width: 220px; height: 220px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}



.toast-stack {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 200;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  transform: translateX(-50%);
  pointer-events: none;
  width: max-content;
  max-width: calc(100vw - 32px);
}

.toast {
  padding: 10px 18px;
  border-radius: 12px;
  font-weight: 800;
  font-size: 14px;
  background: var(--raised);
  border: 2px solid var(--line-2);
  box-shadow: 0 4px 0 #0a0620;
  animation: resultIn .2s ease-out;
  transition: opacity .25s, transform .25s;
}

.toast.success { border-color: var(--win); }
.toast.error { border-color: var(--loss); }
.toast.leaving { opacity: 0; transform: translateY(6px); }




body.auth-pending .auth-only,
body.auth-pending .guest-only,
body.logged-out .auth-only,
body.logged-in .guest-only { display: none !important; }

.user-menu-wrap { position: relative; }

.user-profile-card {
  padding: 4px 8px 4px 4px;
  border-radius: 14px;
  text-align: left;
  transition: background-color .15s;
}
.user-profile-card:hover,
.user-profile-card[aria-expanded="true"] { background: var(--panel); }
.user-profile-card .chevron { width: 16px; height: 16px; color: var(--dim); transition: transform .2s; }
.user-profile-card[aria-expanded="true"] .chevron { transform: rotate(180deg); }

.user-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  z-index: 80;
  display: flex;
  flex-direction: column;
  min-width: 190px;
  padding: 6px;
  background: var(--panel);
  border: 2px solid var(--line-2);
  border-radius: 14px;
  box-shadow: 0 6px 0 #0a0620;
  animation: resultIn .15s ease-out;
}
.user-menu[hidden] { display: none; }

.user-menu > * {
  display: block;
  padding: 9px 12px;
  border-radius: 9px;
  font-weight: 800;
  font-size: 14px;
  color: var(--text);
  text-decoration: none;
  text-align: left;
}
.user-menu > *:hover { background: var(--raised); }
.user-menu .danger { color: var(--loss); }

.login-modal { max-width: 440px; }
.login-step { display: flex; flex-direction: column; gap: 16px; }
.login-step[hidden] { display: none; }

.form-error { min-height: 1.2em; margin-top: -6px; color: var(--loss); font-weight: 800; font-size: 14px; }
.form-error:empty { display: none; }

.login-who {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 14px;
  background: var(--bg);
}
.login-who img { width: 52px; height: 52px; border-radius: 14px; background: var(--raised); flex: none; }
.login-who > div { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; }
.login-who strong { font-size: 17px; font-weight: 900; overflow-wrap: anywhere; }

.link-btn {
  padding: 0;
  font-size: 13px;
  font-weight: 700;
  color: var(--violet-hi);
  text-decoration: underline;
}

.phrase-box {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 12px 12px 16px;
  border: 2px dashed var(--line-2);
  border-radius: 14px;
  background: var(--bg);
}
.phrase-box code {
  flex: 1;
  min-width: 0;
  font-family: var(--display);
  font-size: 20px;
  color: var(--gem);
  overflow-wrap: anywhere;
}

.edit-profile-link {
  align-self: flex-start;
  margin-top: -6px;
  font-size: 14px;
  font-weight: 800;
  color: var(--violet-hi);
}



.values-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 12px;
  margin-bottom: 16px;
}

.values-toolbar .filter-controls { margin: 0; }
.values-toolbar .custom-select { min-width: 150px; }
.values-search { flex: 1 1 260px; color: var(--dim); }
.values-search input::-webkit-search-cancel-button { filter: invert(.7); }

.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 10px;
}

.value-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px 16px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r);
}

.value-card.tier-titanic { border-color: #5b4a9e; }
.value-card.tier-gargantuan { border-color: var(--gold-lip); }

.value-name {
  font-weight: 900;
  font-size: 15px;
  line-height: 1.25;
}

.value-tags { display: flex; flex-wrap: wrap; gap: 4px; }

.value-tag {
  font-size: 11px;
  font-weight: 800;
  padding: 1px 7px;
  border-radius: 6px;
  background: var(--raised);
  color: var(--muted);
}

.value-tag.v-golden { background: rgba(255, 203, 61, .16); color: var(--gold); }
.value-tag.v-rainbow { background: linear-gradient(90deg, rgba(255, 107, 154, .25), rgba(63, 208, 255, .25)); color: var(--text); }
.value-tag.v-shiny { background: rgba(63, 208, 255, .14); color: var(--gem); }

.value-amount {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  font-family: var(--display);
  font-size: 22px;
  line-height: 1.2;
}

.value-exists { font-size: 12px; color: var(--dim); font-weight: 700; }

.values-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  color: var(--dim);
  font-size: 13px;
  font-weight: 700;
}

.stream-blur-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--raised);
  color: var(--muted);
  font-family: var(--body);
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  transition: all .2s ease;
  user-select: none;
}

.stream-blur-btn:hover {
  background: var(--panel);
  border-color: var(--line-2);
  color: var(--text);
}

.stream-blur-btn.active {
  background: rgba(139, 92, 246, 0.22);
  border-color: var(--violet-hi);
  color: var(--gold);
  box-shadow: 0 0 14px rgba(139, 92, 246, 0.4);
}

.stream-blur-btn .icon-svg {
  width: 16px;
  height: 16px;
}

body.stream-mode .stream-blur-btn {
  background: rgba(255, 203, 61, 0.18);
  border-color: var(--gold);
  color: var(--gold);
}

body.stream-mode .blurable,
body.stream-mode .balance-value,
body.stream-mode #userGemsDisplay,
body.stream-mode #upgraderChanceText,
body.stream-mode .wheel-inner,
body.stream-mode #upgraderResultBox,
body.stream-mode #upgraderWager,
body.stream-mode #upgraderMultiplierSelect,
body.stream-mode .dice-3d-box,
body.stream-mode .dice-face,
body.stream-mode .fighter-score,
body.stream-mode .total-pot-pill,
body.stream-mode .fee-rate-tag,
body.stream-mode #diceWagerGems,
body.stream-mode .room-card .card-foot,
body.stream-mode #minesWagerGems,
body.stream-mode #minesNextPayout,
body.stream-mode #minesCashoutBtn,
body.stream-mode #coinflipWagerGems,
body.stream-mode #coinflipPot,
body.stream-mode #coinflipResultText,
body.stream-mode #crashMultiplier,
body.stream-mode #crashChart,
body.stream-mode #crashHistory,
body.stream-mode #crashBetGems,
body.stream-mode #liveTrack,
body.stream-mode #leaderboardBody .num,
body.stream-mode .giveaway-rap,
body.stream-mode #bannerPrizeValue,
body.stream-mode .fee-badge-card td:last-child {
  filter: blur(7px) !important;
  user-select: none !important;
  transition: filter .25s ease;
}

body.stream-mode .wheel-inner:hover,
body.stream-mode .balance-value:hover {
  filter: blur(2px) !important;
}

.bot-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--raised);
  border: 1px solid var(--line);
  font-size: 12px;
  font-weight: 800;
  color: var(--muted);
  user-select: none;
}

.bot-status-pill.online {
  border-color: rgba(52, 215, 123, 0.4);
  color: var(--win);
}

.bot-status-pill.offline {
  border-color: rgba(255, 90, 118, 0.35);
  color: var(--loss);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}

.status-dot.dot-green {
  background: #34d77b;
  box-shadow: 0 0 10px #34d77b;
  animation: pulseGreen 2s infinite ease-in-out;
}

.status-dot.dot-red {
  background: #ff5a76;
  box-shadow: 0 0 8px #ff5a76;
  animation: pulseRed 2s infinite ease-in-out;
}

@keyframes pulseGreen {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.3); opacity: 0.65; }
}

@keyframes pulseRed {
  0%, 100% { transform: scale(1); opacity: 0.9; }
  50% { transform: scale(1.25); opacity: 0.5; }
}

.wallet-bot-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-radius: 10px;
  margin: 12px 18px 0;
  font-size: 13px;
  font-weight: 700;
  transition: all .2s ease;
}

.wallet-bot-banner.online {
  background: rgba(52, 215, 123, 0.12);
  border: 1px solid rgba(52, 215, 123, 0.4);
  color: #34d77b;
}

.wallet-bot-banner.offline {
  background: rgba(255, 90, 118, 0.12);
  border: 1px solid rgba(255, 90, 118, 0.4);
  color: #ff5a76;
}

button:disabled.btn-disabled-bots {
  opacity: 0.45 !important;
  cursor: not-allowed !important;
  pointer-events: auto !important;
}

