:root {
  --page: #07171d;
  --panel: #10232c;
  --panel-2: #17313c;
  --line: #263d48;
  --text: #e8f1f5;
  --muted: #91a6b1;
  --red: #f02d44;
  --green: #18d91b;
  --black: #1a252b;
  --gold: #f3c850;
  --stake-ink: #07171d;
}

@font-face {
  font-family: "UrsoJulee";
  src: url("/assets/urso-slot/fonts/Julee-Regular.ttf") format("truetype");
  font-display: swap;
}

.urso-slot-page {
  width: 100%;
  color: #eaf6fb;
}

.urso-slot-wrap {
  width: min(1280px, calc(100vw - 28px));
  margin: 0 auto;
  display: grid;
  gap: 16px;
}

.urso-slot-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 14px;
  background: linear-gradient(180deg, rgba(20,45,56,0.96), rgba(10,27,34,0.96));
  border: 1px solid rgba(103,151,168,0.24);
  border-radius: 8px;
}

.urso-slot-head h1,
.urso-slot-head p {
  margin: 0;
}

.urso-slot-head h1 {
  font-family: "UrsoJulee", system-ui, sans-serif;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 0.92;
  letter-spacing: 0;
  color: #f2d667;
  text-shadow: 0 3px 0 rgba(0,0,0,0.36);
}

.urso-slot-head p,
.urso-slot-kicker {
  color: #9fbcc7;
  font-size: 13px;
}

.urso-slot-kicker {
  display: block;
  margin-bottom: 4px;
  color: #59d74c;
  font-weight: 900;
  text-transform: uppercase;
}

.urso-slot-head-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.urso-slot-head-actions button,
.urso-slot-head-actions a,
.urso-slot-console button,
#slot-history-clear {
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid rgba(112,154,170,0.34);
  border-radius: 8px;
  color: #eaf6fb;
  background: #17313c;
  font-weight: 900;
  text-decoration: none;
}

.urso-slot-head-actions button:hover,
.urso-slot-head-actions a:hover,
.urso-slot-console button:hover,
#slot-history-clear:hover {
  background: #224654;
}

.urso-slot-machine {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 290px;
  gap: 14px;
  align-items: stretch;
}

.urso-slot-stage {
  position: relative;
  min-height: 540px;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid rgba(103,151,168,0.24);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(4,18,23,0.1), rgba(4,18,23,0.24)),
    url("/assets/urso-slot/images/background/basic.png") center / cover no-repeat;
  box-shadow: inset 0 0 80px rgba(0,0,0,0.42), 0 18px 42px rgba(0,0,0,0.18);
  isolation: isolate;
}

.urso-slot-stage::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at 50% 42%, transparent 0 48%, rgba(0,0,0,0.24) 100%);
  z-index: 1;
}

.urso-slot-panel,
.urso-win-panel {
  position: absolute;
  z-index: 4;
  display: grid;
  place-items: center;
  gap: 2px;
  min-width: 132px;
  min-height: 54px;
  padding: 10px 14px;
  background-position: center;
  background-size: contain;
  background-repeat: no-repeat;
  text-align: center;
  text-shadow: 0 2px 0 rgba(0,0,0,0.6);
}

.urso-slot-panel span,
.urso-win-panel span,
.urso-win-panel small {
  color: #d3eff7;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.urso-slot-panel strong,
.urso-win-panel strong {
  color: #f1d360;
  font-size: clamp(16px, 1.8vw, 24px);
  font-weight: 950;
}

.urso-slot-credit {
  left: 5%;
  bottom: 6%;
  background-image: url("/assets/urso-slot/images/ui/panels/credit_panel.png");
}

.urso-slot-bet-panel {
  left: 22%;
  bottom: 6%;
  background-image: url("/assets/urso-slot/images/ui/panels/total_bet_panel.png");
}

.urso-win-panel {
  left: 50%;
  bottom: 3.2%;
  width: min(25%, 230px);
  min-height: 108px;
  transform: translateX(-50%);
  background-image: url("/assets/urso-slot/images/ui/panels/win_panel.png");
}

.urso-win-panel small {
  max-width: 180px;
  color: #eaf6fb;
  font-size: 11px;
  text-transform: none;
}

.urso-slot-title {
  position: absolute;
  z-index: 4;
  left: 50%;
  top: 4.5%;
  display: grid;
  justify-items: center;
  transform: translateX(-50%);
  text-align: center;
}

.urso-slot-title strong {
  font-family: "UrsoJulee", system-ui, sans-serif;
  color: #f2d667;
  font-size: clamp(24px, 3.8vw, 48px);
  line-height: 0.9;
  text-shadow: 0 3px 0 rgba(0,0,0,0.45);
}

.urso-slot-title small {
  color: #cde5ed;
  font-weight: 900;
}

.urso-reels-window {
  position: absolute;
  z-index: 3;
  left: 16.6%;
  top: 15%;
  width: 66.2%;
  height: 61%;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 6px;
  overflow: hidden;
  padding: 1.3% 1.15%;
  background: linear-gradient(180deg, rgba(3,13,18,0.86), rgba(10,22,30,0.88));
  border: 1px solid rgba(245,214,103,0.26);
  border-radius: 8px;
  box-shadow: inset 0 0 22px rgba(0,0,0,0.78);
}

.urso-reel {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(17,41,51,0.86), rgba(6,19,25,0.9));
}

.urso-reel::before,
.urso-reel::after {
  content: "";
  position: absolute;
  z-index: 2;
  left: 0;
  right: 0;
  height: 19%;
  pointer-events: none;
}

.urso-reel::before {
  top: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.46), transparent);
}

.urso-reel::after {
  bottom: 0;
  background: linear-gradient(0deg, rgba(0,0,0,0.5), transparent);
}

.urso-reel-track {
  position: relative;
  z-index: 1;
  will-change: transform;
}

.urso-symbol-cell {
  height: var(--slot-cell, 150px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5%;
  border-radius: 8px;
  transition: filter 180ms ease, transform 180ms ease, background 180ms ease;
}

.urso-symbol-cell img {
  max-width: 94%;
  max-height: 94%;
  object-fit: contain;
  filter: drop-shadow(0 12px 16px rgba(0,0,0,0.52));
}

.urso-reel.is-spinning .urso-symbol-cell img {
  filter: blur(1.4px) drop-shadow(0 12px 16px rgba(0,0,0,0.44));
}

.urso-reel.is-settled {
  animation: ursoReelSettle 420ms ease;
}

.urso-symbol-cell.is-win {
  background: radial-gradient(circle, rgba(242,211,96,0.48), rgba(242,211,96,0.08) 62%, transparent 72%);
  transform: scale(1.06);
}

.urso-symbol-cell.is-win img {
  filter: drop-shadow(0 0 18px rgba(242,211,96,0.95)) drop-shadow(0 12px 16px rgba(0,0,0,0.52));
}

.urso-win-lines {
  position: absolute;
  inset: 1.3% 1.15%;
  z-index: 5;
  pointer-events: none;
  filter: drop-shadow(0 0 5px rgba(0,0,0,0.8));
  opacity: 0.95;
}

.urso-spin-button,
.urso-auto-button,
.urso-lines-button,
.urso-bet-button,
.urso-bet-down-button,
.urso-max-button {
  position: absolute;
  z-index: 5;
  display: grid;
  place-items: center;
  border: 0;
  color: #fff4b8;
  background-color: transparent;
  background-position: center;
  background-size: contain;
  background-repeat: no-repeat;
  font-family: "UrsoJulee", system-ui, sans-serif;
  font-size: 22px;
  line-height: 1;
  text-shadow: 0 2px 0 rgba(0,0,0,0.72);
}

.urso-spin-button:disabled,
.urso-auto-button:disabled,
.urso-lines-button:disabled,
.urso-bet-button:disabled,
.urso-bet-down-button:disabled,
.urso-max-button:disabled {
  filter: saturate(0.45) brightness(0.72);
}

.urso-spin-button {
  right: 6%;
  bottom: 3.5%;
  width: 110px;
  height: 126px;
  background-image: url("/assets/urso-slot/images/ui/buttons/spin_unpressed.png");
}

.urso-spin-button:active {
  background-image: url("/assets/urso-slot/images/ui/buttons/spin_pressed.png");
}

.urso-auto-button {
  right: 18%;
  bottom: 4%;
  width: 96px;
  height: 112px;
  background-image: url("/assets/urso-slot/images/ui/buttons/auto_unpressed.png");
}

.urso-auto-button.is-active,
.urso-auto-button:active {
  background-image: url("/assets/urso-slot/images/ui/buttons/auto_pressed.png");
}

.urso-lines-button {
  right: 30%;
  bottom: 6.5%;
  width: 112px;
  height: 76px;
  background-image: url("/assets/urso-slot/images/ui/buttons/lines_unpressed.png");
  font-size: 18px;
}

.urso-lines-button:active {
  background-image: url("/assets/urso-slot/images/ui/buttons/lines_pressed.png");
}

.urso-bet-button,
.urso-bet-down-button,
.urso-max-button {
  top: 5.5%;
  width: 92px;
  height: 44px;
  background-image: url("/assets/urso-slot/images/ui/buttons/btn_normal.png");
  font-size: 16px;
}

.urso-bet-down-button {
  left: 5%;
}

.urso-bet-button {
  left: 14%;
}

.urso-max-button {
  left: 23%;
  background-image: url("/assets/urso-slot/images/ui/buttons/max_bet_unpressed.png");
}

.urso-max-button:active {
  background-image: url("/assets/urso-slot/images/ui/buttons/max_bet_pressed.png");
}

.urso-slot-console {
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(103,151,168,0.24);
  border-radius: 8px;
  background: #142d38;
}

.urso-console-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 4px;
  border-radius: 8px;
  background: #071c24;
}

.urso-console-tabs button {
  border: 0;
  background: transparent;
}

.urso-console-tabs button.is-active {
  background: #294858;
}

.urso-slot-console label {
  display: grid;
  gap: 6px;
  color: #9fbcc7;
  font-size: 12px;
  font-weight: 900;
}

.urso-slot-console input {
  min-height: 38px;
  width: 100%;
  padding: 0 12px;
  border: 1px solid rgba(112,154,170,0.34);
  border-radius: 4px;
  color: #f5fbff;
  background: #071c24;
  font-weight: 900;
}

.urso-console-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

.urso-console-row button.is-selected {
  color: #071c24;
  background: #59d74c;
  border-color: #59d74c;
}

.urso-console-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 38px;
  padding: 0 10px;
  border: 1px solid rgba(112,154,170,0.24);
  border-radius: 4px;
  background: #0a222b;
}

.urso-console-info span,
.urso-slot-console p {
  color: #9fbcc7;
  font-size: 12px;
}

.urso-console-info strong {
  color: #f1d360;
}

.urso-slot-console p {
  margin: 0;
}

.urso-slot-history {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid rgba(103,151,168,0.24);
  border-radius: 8px;
  background: #0b2028;
}

.urso-slot-history > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.urso-slot-history h2 {
  margin: 0;
  font-size: 18px;
}

.urso-slot-history ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.urso-slot-history #slot-history li {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 12px;
  min-height: 42px;
  padding: 8px 10px;
  border: 1px solid rgba(112,154,170,0.2);
  border-radius: 8px;
  background: #102a34;
}

.urso-slot-history #slot-history span {
  font-weight: 900;
}

.urso-slot-history #slot-history small {
  color: #9fbcc7;
}

.urso-slot-history #slot-history strong {
  color: #59d74c;
}

.urso-paytable-modal article {
  width: min(1180px, calc(100vw - 28px));
  max-height: min(880px, calc(100vh - 28px));
  overflow: auto;
  color: #eaf6fb;
  background: #081c24;
  border: 1px solid rgba(103,151,168,0.34);
}

.urso-paytable-modal header {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #081c24;
}

.urso-paytable-pages {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.urso-paytable-pages img {
  width: 100%;
  border-radius: 8px;
  border: 1px solid rgba(103,151,168,0.24);
  background: #102a34;
}

.urso-paytable-note {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.urso-paytable-note span {
  padding: 8px 10px;
  border: 1px solid rgba(112,154,170,0.22);
  border-radius: 8px;
  color: #d5eaf1;
  background: #102a34;
  font-weight: 800;
}

@keyframes ursoReelSettle {
  0% { transform: translateY(0); }
  36% { transform: translateY(5px); }
  100% { transform: translateY(0); }
}

@media (max-width: 1180px) {
  .urso-slot-machine {
    grid-template-columns: 1fr;
  }

  .urso-slot-console {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .urso-slot-console p,
  .urso-console-row {
    grid-column: span 2;
  }
}

@media (max-width: 760px) {
  .urso-slot-wrap {
    width: calc(100vw - 18px);
  }

  .urso-slot-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .urso-slot-stage {
    min-height: auto;
  }

  .urso-reels-window {
    gap: 3px;
  }

  .urso-slot-panel,
  .urso-win-panel {
    min-width: 92px;
    min-height: 42px;
    padding: 6px 8px;
  }

  .urso-slot-panel strong,
  .urso-win-panel strong {
    font-size: 12px;
  }

  .urso-slot-panel span,
  .urso-win-panel span,
  .urso-win-panel small {
    font-size: 9px;
  }

  .urso-spin-button {
    width: 72px;
    height: 84px;
    font-size: 15px;
  }

  .urso-auto-button {
    width: 64px;
    height: 74px;
    font-size: 14px;
  }

  .urso-lines-button {
    width: 74px;
    height: 52px;
    font-size: 13px;
  }

  .urso-bet-button,
  .urso-bet-down-button,
  .urso-max-button {
    width: 58px;
    height: 30px;
    font-size: 11px;
  }

  .urso-console-row,
  .urso-slot-console {
    grid-template-columns: 1fr;
  }

  .urso-slot-console p,
  .urso-console-row {
    grid-column: auto;
  }

  .urso-slot-history #slot-history li,
  .urso-paytable-pages {
    grid-template-columns: 1fr;
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  grid-template-rows: auto auto minmax(0, 1fr);
  min-height: 100vh;
  background:
    radial-gradient(circle at 72% -12%, rgba(31, 103, 118, 0.28), transparent 36rem),
    linear-gradient(180deg, #0a1b22 0, #07171d 34rem, #061117 100%);
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
  letter-spacing: 0;
}

body.chat-open {
  grid-template-columns: 280px minmax(0, 1fr);
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
  border: 1px solid #2c4855;
  border-radius: 4px;
  background: #1d3844;
  color: #e8f1f5;
  min-height: 38px;
  font-weight: 700;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05);
}

button:hover {
  filter: brightness(1.08);
}

input,
select,
textarea {
  color: var(--text);
  background: #0c1c24;
  border: 1px solid #2a4652;
  border-radius: 4px;
}

.topbar {
  grid-column: 1 / -1;
  grid-row: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  position: sticky;
  top: 0;
  z-index: 30;
  min-height: 58px;
  padding: 10px 18px;
  background:
    linear-gradient(180deg, #0d2028, #071116);
  border-bottom: 2px solid rgba(24,217,27,0.58);
  color: #f7f7f7;
  box-shadow: 0 14px 34px rgba(0,0,0,0.38), 0 0 0 1px rgba(255,255,255,0.02) inset;
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #ffffff;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.brand img,
.balance-pill img {
  width: 18px;
  height: 18px;
}

.topbar nav {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #c7d5dc;
  font-size: 14px;
  flex-wrap: wrap;
  padding: 4px;
  background: rgba(255,255,255,0.035);
  border: 1px solid rgba(143,166,178,0.14);
  border-radius: 6px;
}

.topbar .primary-nav {
  flex: 1 1 auto;
  min-width: 260px;
}

.topbar .topbar-utility-nav {
  flex: 0 0 auto;
  background:
    linear-gradient(180deg, rgba(25,201,111,0.09), rgba(255,255,255,0.035)),
    #0b1b22;
  border-color: rgba(84,164,191,0.38);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
}

.topbar .topbar-utility-nav a {
  background: rgba(84,164,191,0.08);
  border-color: rgba(84,164,191,0.18);
}

.topbar nav a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 10px;
  border: 1px solid transparent;
  border-radius: 4px;
  font-weight: 800;
}

.topbar nav a::before {
  content: attr(data-nav-icon);
  display: inline-grid;
  place-items: center;
  min-width: 20px;
  height: 20px;
  padding: 0 4px;
  color: #07171d;
  background: #8fa6b2;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
  box-shadow: inset 0 -2px 0 rgba(0,0,0,0.16);
}

.topbar nav a:hover {
  color: #ffffff;
  background: #142934;
  border-color: #2b4855;
}

.topbar nav a:hover::before {
  background: #18d91b;
}

.topbar nav a.nav-dailyfree {
  color: #07171d;
  background: linear-gradient(180deg, #e7cc79, #cdae5a);
  border-color: #e7cc79;
  order: 90;
  box-shadow: 0 0 14px rgba(231,204,121,0.14);
}

.topbar nav a.nav-dailyfree::before {
  background: #07171d;
  color: #e7cc79;
}

.topbar nav a.nav-dailyfree:hover {
  color: #07171d;
  background: linear-gradient(180deg, #f0da91, #d4ba6e);
}

.topbar-right {
  margin-left: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
}

.admin-panel-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 38px;
  padding: 8px 11px;
  margin-left: 2px;
  color: #ffdce3;
  background:
    linear-gradient(180deg, rgba(240,45,68,0.2), rgba(240,45,68,0.08)),
    #151219;
  border: 1px solid rgba(240,45,68,0.58);
  border-radius: 4px;
  font-size: 14px;
  font-weight: 900;
  white-space: nowrap;
}

.admin-panel-link::before {
  content: attr(data-nav-icon);
  display: inline-grid;
  place-items: center;
  min-width: 20px;
  height: 20px;
  padding: 0 4px;
  color: #07171d;
  background: #f04d73;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
}

.admin-panel-link:hover {
  color: #ffffff;
  border-color: #ff6b86;
  filter: brightness(1.08);
}

.balance-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  padding: 5px 8px;
  border: 1px solid #705a1e;
  border-radius: 4px;
  background: #201a0b;
  color: var(--gold);
  font-weight: 800;
  cursor: pointer;
}

.balance-pill:hover {
  border-color: #f3c850;
  filter: brightness(1.12);
}

.top-pulls-strip {
  grid-column: 1 / -1;
  grid-row: 2;
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  align-items: stretch;
  background: rgba(11,23,29,0.68);
  color: rgba(255,255,255,0.82);
  border-bottom: 1px solid rgba(31,51,61,0.72);
}

.top-pulls-title {
  display: grid;
  align-content: center;
  gap: 3px;
  padding: 12px 16px;
  background: rgba(7,17,22,0.72);
  border-right: 1px solid rgba(31,51,61,0.72);
}

.top-pulls-title strong {
  color: #f4c65c;
  text-transform: uppercase;
  font-size: 13px;
}

.top-pulls-title span {
  color: #9da3aa;
  font-size: 12px;
}

.top-pulls-track {
  display: flex;
  overflow-x: auto;
  scrollbar-width: thin;
}

.top-pull-card {
  flex: 0 0 184px;
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-right: 1px solid rgba(47,48,54,0.72);
  border-bottom: 2px solid var(--accent);
  background: linear-gradient(180deg, rgba(255,255,255,0.035), rgba(255,255,255,0.005));
  opacity: 0.78;
}

.top-pull-card img {
  width: 58px;
  height: 42px;
  object-fit: contain;
  opacity: 0.82;
  filter: drop-shadow(0 8px 10px rgba(0,0,0,0.32));
}

.top-pull-card .top-win-badge {
  display: grid;
  place-items: center;
  width: 58px;
  height: 42px;
  color: #07171d;
  background: linear-gradient(180deg, var(--accent), #f8d96a);
  border-radius: 4px;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
  box-shadow: inset 0 -2px 0 rgba(0,0,0,0.18), 0 8px 14px rgba(0,0,0,0.3);
}

.top-pull-card div {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.top-pull-card strong,
.top-pull-card span,
.top-pull-card small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.top-pull-card strong {
  color: #7df0a1;
  font-size: 12px;
}

.top-pull-card span {
  font-weight: 700;
  font-size: 12px;
}

.top-pull-card small {
  color: #f4c65c;
  font-size: 11px;
}

.top-pull-empty {
  display: flex;
  align-items: center;
  min-width: 220px;
  padding: 0 18px;
  color: #9da3aa;
  font-weight: 700;
}

.transfer-modal {
  position: fixed;
  inset: 0;
  z-index: 95;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(3,10,14,0.72);
}

.transfer-modal[hidden] {
  display: none;
}

.transfer-panel {
  display: grid;
  gap: 14px;
  width: min(440px, 100%);
  padding: 16px;
  color: #ffffff;
  background: #10232c;
  border: 1px solid #254552;
  border-radius: 4px;
  box-shadow: 0 24px 70px rgba(0,0,0,0.44);
}

.transfer-panel header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.transfer-panel header div {
  display: grid;
  gap: 2px;
}

.transfer-panel header span {
  color: #8fa6b2;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.transfer-panel h2 {
  margin: 0;
  font-size: 20px;
}

.transfer-panel form {
  display: grid;
  gap: 10px;
}

.transfer-panel label {
  display: grid;
  gap: 6px;
  color: #8fa6b2;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.transfer-panel input {
  min-height: 42px;
  padding: 0 10px;
  color: #ffffff;
  background: #071b22;
  border: 1px solid #254552;
  border-radius: 4px;
}

.transfer-panel button {
  min-height: 42px;
  color: #07171d;
  background: #18d91b;
  border: 1px solid #12b915;
  border-radius: 4px;
  font-weight: 900;
  cursor: pointer;
}

.transfer-panel header button {
  min-height: 34px;
  padding: 0 10px;
  color: #ffffff;
  background: #203943;
  border-color: #315260;
}

.transfer-panel button:disabled {
  opacity: 0.58;
  cursor: wait;
}

.transfer-panel p {
  margin: 0;
  color: #8fa6b2;
  font-size: 13px;
  font-weight: 800;
}

main {
  grid-column: 2;
  grid-row: 3;
  width: 100%;
  max-width: 1480px;
  margin: 0 auto;
  padding: 18px clamp(12px, 2vw, 24px);
}

.game-shell {
  display: grid;
  gap: 10px;
}

.round-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 52px;
  padding: 9px 16px;
  background: #10232c;
  border: 1px solid var(--line);
  border-radius: 4px;
  box-shadow: 0 12px 28px rgba(0,0,0,0.16);
}

.round-bar strong,
.round-bar small {
  display: block;
}

.round-bar small {
  margin-top: 3px;
  color: var(--muted);
  overflow-wrap: anywhere;
}

.round-clock {
  font-size: 24px;
  font-weight: 700;
}

.round-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.sound-toggle {
  min-height: 34px;
  padding: 0 10px;
  white-space: nowrap;
}

.sound-toggle[aria-pressed="true"] {
  background: #153820;
  border-color: #21b450;
  color: #baffc9;
}

.wheel-window {
  position: relative;
  overflow: hidden;
  height: 75px;
  background: #dddddd;
  border: 1px solid var(--line);
  border-radius: 4px;
}

.wheel-track {
  display: flex;
  height: 100%;
  will-change: transform;
}

.wheel-cell {
  flex: 0 0 75px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  color: #ffffff;
  font-size: 18px;
  font-weight: 700;
  border-right: 1px solid rgba(255,255,255,0.12);
}

.wheel-cell.red,
.history-dot.red,
.bet-red .bet-main {
  background: var(--red);
}

.wheel-cell.black,
.history-dot.black,
.bet-black .bet-main {
  background: var(--black);
}

.wheel-cell.green,
.history-dot.green,
.bet-green .bet-main {
  background: var(--green);
}

.wheel-pointer {
  position: absolute;
  z-index: 2;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 3px;
  transform: translateX(-50%);
  background: #e6d24b;
}

.wheel500-window {
  position: relative;
  overflow: hidden;
  height: 88px;
  background: #dddddd;
  border: 1px solid var(--line);
  border-radius: 4px;
}

.wheel500-track {
  display: flex;
  height: 100%;
  will-change: transform;
}

.wheel500-cell {
  flex: 0 0 88px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 20px;
  font-weight: 700;
  border-right: 1px solid rgba(255,255,255,0.16);
}

.wheel500-blue {
  background: #54a4bf;
}

.wheel500-red {
  background: #f02d44;
}

.wheel500-teal {
  background: #16897a;
}

.wheel500-green {
  background: #18d91b;
  color: #041d09;
}

.wheel500-black {
  background: #1a252b;
}

.wheel500-purple {
  background: #7b4db3;
}

.wheel500-gold {
  background: #f3e600;
  color: #1f1700;
}

.wheel500-pink {
  background: #b7375f;
}

.wheel500-cyan {
  background: #48bdd6;
  color: #092027;
}

.wheel500-stage {
  display: grid;
  grid-template-columns: 296px minmax(420px, 1fr) 64px;
  gap: 0;
  align-items: stretch;
  min-height: 560px;
  overflow: hidden;
  background: #071b22;
  border: 1px solid #1d3540;
  border-radius: 4px;
  box-shadow: 0 24px 60px rgba(0,0,0,0.28);
}

.wheel500-side {
  align-content: start;
  display: grid;
  gap: 12px;
  padding: 16px 12px;
  background: #18313b;
  border-right: 1px solid #254552;
}

.wheel500-mode-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 4px;
  background: #081c24;
  border-radius: 8px;
}

.wheel500-mode-tabs button {
  min-height: 36px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #c8d7de;
}

.wheel500-mode-tabs button.is-active {
  background: #2a4350;
  color: #ffffff;
}

.wheel500-field {
  display: grid;
  gap: 6px;
  color: #8fa6b2;
  font-size: 13px;
  font-weight: 800;
}

.wheel500-field input,
.wheel500-field select {
  width: 100%;
  min-height: 38px;
  padding: 0 10px;
  color: #ffffff;
  background: #081c24;
  border: 1px solid #2b4a58;
}

.wheel500-amount-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 48px 48px;
  overflow: hidden;
  border: 1px solid #2b4a58;
  border-radius: 4px;
}

.wheel500-amount-row input {
  border: 0;
  border-radius: 0;
}

.wheel500-amount-row button {
  min-height: 38px;
  border: 0;
  border-left: 1px solid #2b4a58;
  border-radius: 0;
  background: #243d49;
  color: #dce8ee;
}

.wheel500-current {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  margin-top: 2px;
  color: #f3c850;
  font-size: 22px;
  background: #0b1f27;
  border: 1px solid #294652;
  border-radius: 4px;
}

.wheel500-current img {
  width: 26px;
  height: 26px;
}

.wheel500-chip-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}

.wheel500-chip-row button {
  padding: 0;
  min-height: 30px;
  background: #233b46;
  color: #cfe0e7;
  border: 1px solid #2b4a58;
}

.wheel500-play {
  min-height: 56px;
  margin-top: 2px;
  color: #042308;
  background: #18d91b;
  border: 0;
  font-weight: 900;
}

.wheel500-table {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto auto;
  min-width: 0;
  background:
    radial-gradient(circle at 50% 46%, rgba(65, 92, 106, 0.18), transparent 20rem),
    #061820;
}

.wheel500-wheel-wrap {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 440px;
  overflow: visible;
}

.wheel500-ring {
  position: relative;
  width: min(520px, 58vw);
  aspect-ratio: 1;
  border-radius: 50%;
  background: #203944;
  transition: transform 5s cubic-bezier(.12,.76,.16,1);
  transform-origin: 50% 50%;
  transform: translateZ(0);
  will-change: transform;
  box-shadow:
    0 0 0 22px #1f3947,
    0 0 0 34px rgba(25, 45, 55, 0.84),
    0 24px 54px rgba(0,0,0,0.34);
}

.wheel500-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.wheel500-segment {
  fill: #334c58;
  stroke: #203944;
  stroke-width: 1.8;
  vector-effect: non-scaling-stroke;
  shape-rendering: geometricPrecision;
}

.wheel500-segment.wheel500-red {
  fill: #f02d44;
}

.wheel500-segment.wheel500-blue {
  fill: #54a4bf;
}

.wheel500-segment.wheel500-green {
  fill: #18d91b;
}

.wheel500-segment.wheel500-pink {
  fill: #b7375f;
}

.wheel500-segment.wheel500-cyan {
  fill: #49bed7;
}

.wheel500-segment.wheel500-gold {
  fill: #f3e600;
}

.wheel500-ring::before {
  content: "";
  position: absolute;
  inset: 22%;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(255,255,255,0.025), transparent 54%),
    #111d2c;
  box-shadow:
    inset 0 0 0 2px #253848,
    inset 0 0 0 82px rgba(17, 29, 44, 0.88);
  z-index: 1;
}

.wheel500-tick {
  --angle: calc(360deg / var(--n) * var(--i));
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.wheel500-arrow {
  --wheel500-arrow-color: #f04d73;
  position: absolute;
  top: -34px;
  left: 50%;
  width: 0;
  height: 0;
  border-left: 15px solid transparent;
  border-right: 15px solid transparent;
  border-bottom: 46px solid var(--wheel500-arrow-color);
  transform: translateX(-50%);
  transition: border-bottom-color 0.16s ease, filter 0.16s ease;
  filter: drop-shadow(0 8px 10px rgba(0,0,0,0.42));
  z-index: 3;
}

.wheel500-arrow::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 39px;
  width: 6px;
  height: 18px;
  border-radius: 999px;
  background: var(--wheel500-arrow-color);
  transform: translateX(-50%);
}

.wheel500-arrow.wheel500-red {
  --wheel500-arrow-color: #f02d44;
}

.wheel500-arrow.wheel500-blue {
  --wheel500-arrow-color: #54a4bf;
}

.wheel500-arrow.wheel500-green {
  --wheel500-arrow-color: #18d91b;
}

.wheel500-arrow.wheel500-pink {
  --wheel500-arrow-color: #b7375f;
}

.wheel500-arrow.wheel500-cyan {
  --wheel500-arrow-color: #49bed7;
}

.wheel500-arrow.wheel500-gold {
  --wheel500-arrow-color: #f3e600;
}

.wheel500-arrow.is-flash {
  animation: wheel500ArrowFlash 0.7s ease;
}

@keyframes wheel500ArrowFlash {
  0%, 100% { filter: drop-shadow(0 0 0 transparent); }
  35% { filter: drop-shadow(0 0 14px var(--wheel500-arrow-color)); }
}

.wheel500-history-rail {
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 6px;
  min-height: 310px;
  padding: 16px 8px;
  background: #0b1f27;
  border-left: 1px solid #1d3540;
}

.wheel500-rail-dot {
  width: 22px;
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  text-indent: 999px;
  background: #3a3d46;
}

.wheel500-rail-dot.wheel500-red {
  background: #f02d44;
}

.wheel500-rail-dot.wheel500-blue {
  background: #54a4bf;
}

.wheel500-rail-dot.wheel500-green {
  background: #18d91b;
}

.wheel500-rail-dot.wheel500-pink {
  background: #7e3f52;
}

.wheel500-rail-dot.wheel500-cyan {
  background: #49bed7;
}

.wheel500-rail-dot.wheel500-gold {
  background: #f3e600;
}

.wheel500-choice-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  padding: 16px clamp(16px, 7vw, 90px);
  border-top: 1px solid #1d3540;
}

.wheel500-choice {
  display: grid;
  gap: 3px;
  min-height: 48px;
  place-items: center;
  color: #e7f0f5;
  background: #1f3844;
  border: 1px solid #315360;
  width: 100%;
  border-radius: 8px 8px 4px 4px;
}

.wheel500-choice-card {
  overflow: hidden;
  background: transparent;
  border: 0;
  border-radius: 8px;
}

.wheel500-choice-bets {
  display: grid;
  align-content: start;
  min-height: 74px;
  max-height: 128px;
  overflow: auto;
  background: #0a1c24;
  border: 1px solid #1d3540;
  border-top: 0;
  border-radius: 0 0 8px 8px;
}

.wheel500-choice-bets .empty {
  padding: 12px;
  color: var(--muted);
}

.wheel500-choice strong {
  font-size: 15px;
}

.wheel500-choice span {
  color: rgba(255,255,255,0.78);
  font-size: 12px;
}

.wheel500-choice.is-active,
.wheel500-choice:hover {
  color: #ffffff;
  background: #284854;
}

.wheel500-choice-red {
  color: #ffffff;
  background: #f02d44;
  border-color: #f02d44;
}

.wheel500-choice-blue {
  color: #ffffff;
  background: #54a4bf;
  border-color: #54a4bf;
}

.wheel500-choice-green {
  color: #041c09;
  background: #18d91b;
  border-color: #18d91b;
}

.wheel500-choice-pink {
  color: #ffffff;
  background: #7e3f52;
  border-color: #7e3f52;
}

.wheel500-choice-cyan {
  border-color: #49bed7;
}

.wheel500-choice-gold {
  color: #211900;
  background: #f3e600;
  border-color: #f3e600;
}

.wheel500-choice-red span,
.wheel500-choice-blue span,
.wheel500-choice-green span,
.wheel500-choice-pink span,
.wheel500-choice-cyan span {
  color: rgba(255,255,255,0.78);
}

.wheel500-choice-green span {
  color: rgba(4,28,9,0.72);
}

.wheel500-choice-gold span {
  color: rgba(33,25,0,0.72);
}

.wheel500-choice.is-active {
  box-shadow:
    inset 0 0 0 2px rgba(255,255,255,0.42),
    0 0 0 1px rgba(255,255,255,0.08);
}

.wheel500-table-foot {
  display: flex;
  justify-content: flex-end;
  padding: 12px 18px 14px;
  color: #91a6b1;
  border-top: 1px solid #1d3540;
  font-weight: 800;
  font-size: 13px;
}

.admin-rig {
  display: grid;
  gap: 8px;
  padding: 12px;
  background: #10131b;
  border: 1px solid #30384a;
  border-radius: 4px;
  color: #ffffff;
}

.admin-rig[hidden] {
  display: none;
}

.admin-rig > div {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.admin-rig button {
  min-width: 42px;
  min-height: 34px;
  color: #ffffff;
  background: #272d3a;
  border: 1px solid #424b60;
}

.admin-rig button.red {
  background: #c9282d;
}

.admin-rig button.black {
  background: #202126;
}

.admin-rig button.green {
  background: #229e56;
}

.admin-rig small {
  color: #9fe29f;
  font-weight: 800;
}

.history {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px;
  background: #eeeeee;
  border: 1px solid var(--line);
  border-radius: 4px;
}

.history-dot {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #ffffff;
  font-weight: 700;
}

.bet-controls {
  display: grid;
  grid-template-columns: repeat(9, minmax(58px, auto)) 1fr;
  gap: 0;
  border: 1px solid var(--line);
  background: #ffffff;
  border-radius: 4px;
  overflow: hidden;
}

.guest-lock {
  grid-column: 1 / -1;
  padding: 10px 14px;
  background: #fff6d9;
  border-bottom: 1px solid #e5d28a;
  color: #5d4a00;
}

.guest-lock a {
  font-weight: 700;
  text-decoration: underline;
}

.is-guest .bet-main {
  opacity: 0.72;
}

.bet-controls button {
  border: 0;
  border-right: 1px solid var(--line);
  border-radius: 0;
  background: #eeeeee;
}

.bet-controls input {
  min-width: 160px;
  border: 0;
  padding: 0 14px;
}

.wheel500-controls {
  grid-template-columns: repeat(8, minmax(58px, auto)) 1fr 140px;
}

.wheel500-bet {
  border-radius: 0;
  background: #dff0df;
}

.wheel500-panel {
  display: grid;
  grid-template-columns: 220px 1fr;
  min-height: 180px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 4px;
}

.wheel500-panel[hidden] {
  display: none;
}

.wheel500-panel h2,
.wheel500-panel p {
  margin: 0;
}

.wheel500-panel > div:first-child {
  padding: 14px;
  border-right: 1px solid var(--line);
}

.bet-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 14px;
}

.bet-column {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
  min-height: 260px;
}

.bet-main {
  width: 100%;
  min-height: 48px;
  border: 0;
  border-radius: 0;
  color: #ffffff;
  font-size: 18px;
  font-weight: 700;
}

.bet-total {
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  color: #555555;
}

.bet-row,
.online-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 12px;
  border-bottom: 1px solid #eeeeee;
  font-size: 14px;
}

.online-panel {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 4px;
}

.online-panel h2 {
  margin: 0;
  padding: 12px;
  font-size: 16px;
  border-bottom: 1px solid var(--line);
}

.page-head,
.auth-panel {
  background: #ffffff;
  border: 1px solid var(--line);
  border-top: 4px solid #61d787;
  border-radius: 4px;
  padding: 18px;
  margin-bottom: 16px;
  box-shadow: 0 10px 24px rgba(31,43,34,0.07);
}

.page-head h1,
.auth-panel h1 {
  margin: 0 0 8px;
}

.cases-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  background:
    linear-gradient(90deg, rgba(106,215,255,0.18), rgba(255,79,122,0.10)),
    #ffffff;
}

.cases-head a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 14px;
  color: #ffffff;
  background: #202126;
  border-radius: 4px;
  font-weight: 800;
}

.auth-panel {
  max-width: 420px;
  margin: 30px auto;
}

.auth-panel form {
  display: grid;
  gap: 12px;
}

.auth-panel label {
  display: grid;
  gap: 6px;
}

.auth-panel input,
.admin-user input {
  min-height: 38px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 4px;
}

.notice {
  padding: 10px;
  background: #fff0f0;
  border: 1px solid #e0aaaa;
  border-radius: 4px;
}

.skin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 14px;
}

.shop-filter {
  display: grid;
  grid-template-columns: minmax(180px, 1.4fr) minmax(140px, 1fr) minmax(140px, 1fr) 130px 150px 90px auto;
  gap: 10px;
  align-items: end;
  margin-bottom: 16px;
  padding: 14px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-top: 4px solid #f4c65c;
  border-radius: 4px;
  box-shadow: 0 10px 24px rgba(31,43,34,0.07);
}

.shop-filter label {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.shop-filter span {
  color: #62676b;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.shop-filter input,
.shop-filter select {
  min-height: 40px;
  min-width: 0;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #ffffff;
}

.shop-filter strong {
  align-self: center;
  justify-self: end;
  white-space: nowrap;
  color: #111114;
}

.inventory-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  padding: 12px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 4px;
}

.inventory-toolbar span {
  color: var(--muted);
}

.skin-card {
  position: relative;
  display: grid;
  gap: 12px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 12px;
}

.inventory-check {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  width: fit-content;
  color: #555555;
  font-size: 13px;
}

.inventory-check input {
  width: 16px;
  height: 16px;
}

.history-modal {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(10,12,18,0.64);
}

.history-modal[hidden] {
  display: none;
}

.history-modal-panel {
  display: grid;
  gap: 12px;
  width: min(980px, 100%);
  max-height: min(780px, calc(100vh - 36px));
  overflow: auto;
  padding: 14px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 4px;
  box-shadow: 0 24px 70px rgba(0,0,0,0.34);
}

.history-modal-panel > header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.history-modal-panel h2,
.history-modal-panel p {
  margin: 0;
}

.history-modal-panel p {
  color: var(--muted);
}

.history-table {
  display: grid;
  gap: 6px;
}

.history-head,
.history-row {
  display: grid;
  grid-template-columns: 120px minmax(190px, 1fr) 110px 110px 90px 90px;
  gap: 10px;
  align-items: center;
}

.history-head {
  padding: 8px 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.history-row {
  min-height: 48px;
  padding: 9px 10px;
  background: #f7f8fb;
  border: 1px solid #eaedf3;
  border-radius: 4px;
}

.history-row small {
  display: block;
  color: var(--muted);
  margin-top: 2px;
}

.history-row.is-win {
  background: #f0fff4;
  border-color: #b8e8c5;
}

.history-row.is-push {
  background: #fffbea;
  border-color: #eadb9b;
}

.skin-art {
  position: relative;
  min-height: 82px;
  display: flex;
  align-items: end;
  padding: 10px;
  color: #ffffff;
  font-weight: 700;
  border-radius: 4px;
  background:
    linear-gradient(135deg, var(--accent), #262626 72%),
    #444444;
  overflow: hidden;
}

.skin-art img {
  position: absolute;
  inset: 6px 8px 18px;
  width: calc(100% - 16px);
  height: calc(100% - 24px);
  object-fit: contain;
  z-index: 1;
  filter: drop-shadow(0 8px 12px rgba(0,0,0,0.38));
}

.skin-art span {
  position: relative;
  z-index: 2;
  padding: 3px 6px;
  border-radius: 4px;
  background: rgba(0,0,0,0.45);
}

.skin-card h3 {
  margin: 0 0 4px;
  font-size: 16px;
}

.skin-card p {
  margin: 0;
  color: var(--muted);
}

.skin-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.skin-row strong {
  display: grid;
  gap: 2px;
}

.skin-row small {
  color: var(--muted);
  font-weight: 400;
}

.skin-row button {
  min-width: 92px;
  background: #e9e9e9;
}

.admin-grid {
  display: grid;
  gap: 10px;
}

.admin-create {
  display: grid;
  gap: 12px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  margin-bottom: 16px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #ffffff;
}

.admin-create h2 {
  margin: 0;
  font-size: 18px;
}

.create-user-form,
.daily-settings-form,
.voucher-create-form {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(180px, 1fr) minmax(110px, 140px) minmax(88px, auto) minmax(96px, 110px);
  gap: 8px;
  align-items: end;
  min-width: 0;
}

.daily-settings-form {
  grid-template-columns: repeat(4, minmax(0, 1fr)) minmax(100px, 120px);
}

.voucher-create-form {
  grid-template-columns: minmax(220px, 1fr) minmax(110px, 140px) minmax(120px, 150px) minmax(130px, 150px);
}

.create-user-form > *,
.daily-settings-form > *,
.voucher-create-form > * {
  min-width: 0;
}

.create-user-form input,
.daily-settings-form input,
.daily-settings-form select,
.voucher-create-form input {
  width: 100%;
  box-sizing: border-box;
  min-height: 38px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #ffffff;
}

.daily-settings-form label {
  display: grid;
  gap: 5px;
}

.daily-settings-form span {
  color: #62676b;
  font-size: 12px;
  font-weight: 800;
}

.create-user-form button,
.daily-settings-form button,
.voucher-create-form button {
  width: 100%;
  min-height: 38px;
}

.admin-section-head {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 14px;
}

.admin-section-head p {
  margin: 6px 0 0;
  color: #6a7b84;
  font-size: 13px;
  font-weight: 700;
}

.leaderboard-reset-panel {
  display: grid;
  gap: 14px;
}

.leaderboard-reset-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.leaderboard-reset-form {
  display: grid;
  gap: 7px;
  min-width: 0;
  padding: 12px;
  border: 1px solid #d7e2e8;
  border-radius: 4px;
  background: #f7fbfd;
}

.leaderboard-reset-form strong {
  font-size: 16px;
}

.leaderboard-reset-form span,
.leaderboard-reset-form small {
  color: #5f737d;
  font-size: 12px;
  font-weight: 800;
}

.leaderboard-reset-form button,
.user-stats-wipe-form button {
  min-height: 38px;
}

.leaderboard-reset-all {
  min-width: min(260px, 100%);
  background: #241116;
  border-color: #7d2538;
}

.leaderboard-reset-all button,
.user-stats-wipe-form button {
  color: #ffffff;
  background: #a5283f;
  border-color: #d14b62;
}

.check-row {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #555555;
}

.check-row input {
  min-height: auto;
}

.admin-user {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(0, 520px) minmax(130px, 160px);
  gap: 12px;
  align-items: center;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #ffffff;
}

.user-stats-wipe-form {
  display: grid;
}

.admin-user small {
  display: block;
  color: var(--muted);
  margin-top: 4px;
}

.admin-user-head {
  display: grid;
  gap: 4px;
}

.credit-form {
  display: grid;
  grid-template-columns: minmax(118px, 140px) minmax(90px, 110px) minmax(0, 1fr) minmax(92px, 110px);
  gap: 8px;
  align-items: center;
  width: 100%;
  min-width: 0;
}

.credit-form > * {
  min-width: 0;
}

.credit-form select,
.credit-form input {
  width: 100%;
  box-sizing: border-box;
  min-height: 38px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #ffffff;
}

.credit-form button {
  width: 100%;
  min-height: 38px;
}

@media (max-width: 980px) {
  .admin-section-head {
    display: grid;
  }

  .leaderboard-reset-grid,
  .admin-user {
    grid-template-columns: 1fr;
  }

  .credit-form {
    grid-template-columns: 1fr;
  }
}

.admin-promo-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.voucher-list {
  display: grid;
  gap: 12px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  margin-bottom: 16px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #ffffff;
}

.voucher-list h2 {
  margin: 0;
  font-size: 18px;
}

.voucher-table {
  display: grid;
  gap: 8px;
}

.voucher-table article {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(120px, auto) minmax(130px, auto);
  align-items: center;
  gap: 10px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #f7f7f7;
}

.dailyfree-shell {
  display: grid;
  gap: 16px;
}

.dailyfree-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 18px;
  align-items: center;
  padding: 26px;
  color: #ffffff;
  background:
    linear-gradient(135deg, rgba(17,17,20,0.94), rgba(32,24,22,0.92)),
    radial-gradient(circle at 82% 20%, rgba(244,198,92,0.24), transparent 32%);
  border: 1px solid #28282e;
  border-radius: 8px;
}

.dailyfree-hero h1 {
  margin: 8px 0;
  font-size: 42px;
}

.dailyfree-hero p {
  margin: 0;
  color: #d9dde1;
  max-width: 560px;
}

.eyebrow {
  color: #7df0a1;
  font-weight: 800;
  text-transform: uppercase;
  font-size: 12px;
}

.dailyfree-prize {
  display: grid;
  gap: 6px;
  padding: 18px;
  background: #f4c65c;
  color: #151515;
  border-radius: 8px;
  box-shadow: 0 18px 34px rgba(0,0,0,0.22);
}

.dailyfree-prize span,
.dailyfree-prize small {
  font-weight: 800;
}

.dailyfree-prize strong {
  font-size: 30px;
}

.dailyfree-freecase .single-case-hero {
  border-top: 3px solid var(--accent, #f3c850);
}

.dailyfree-freecase .case-open-result:empty {
  display: none;
}

.dailyfree-case-status {
  color: #f3c850;
  font-style: normal;
  font-weight: 900;
}

.dailyfree-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.dailyfree-case-card {
  display: grid;
  grid-template-columns: minmax(260px, 0.9fr) minmax(0, 1.4fr);
  gap: 18px;
  padding: 20px;
  color: #ffffff;
  background:
    radial-gradient(circle at 14% 12%, rgba(243,200,80,0.18), transparent 18rem),
    linear-gradient(135deg, rgba(21,24,32,0.98), rgba(9,29,37,0.98));
  border: 1px solid #5f5637;
  border-top: 3px solid var(--accent);
  border-radius: 8px;
  box-shadow: 0 22px 54px rgba(0,0,0,0.34);
}

.dailyfree-case-main {
  display: grid;
  align-content: start;
  gap: 10px;
}

.dailyfree-case-main h2 {
  margin: 0;
  font-size: clamp(26px, 4vw, 44px);
}

.dailyfree-case-main p,
.dailyfree-case-main small {
  margin: 0;
  color: #b7cbd4;
}

.dailyfree-case-main strong {
  color: #f3c850;
  font-size: 22px;
}

.dailyfree-case-items {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.dailyfree-case-items span {
  display: grid;
  gap: 5px;
  min-width: 0;
  padding: 8px;
  background: rgba(7,17,22,0.72);
  border: 1px solid rgba(143,166,178,0.18);
  border-radius: 4px;
}

.dailyfree-case-items img {
  width: 100%;
  height: 54px;
  object-fit: contain;
  filter: drop-shadow(0 10px 12px rgba(0,0,0,0.38));
}

.dailyfree-case-items b,
.dailyfree-case-items em {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dailyfree-case-items b {
  font-size: 12px;
}

.dailyfree-case-items em {
  color: #8fa6b2;
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
}

.dailyfree-case-result {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 12px;
  background: rgba(24,217,27,0.08);
  border: 1px solid rgba(24,217,27,0.34);
  border-radius: 4px;
}

.dailyfree-case-result[hidden] {
  display: none;
}

.dailyfree-case-result img {
  width: 96px;
  height: 64px;
  object-fit: contain;
}

.dailyfree-case-result div {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.dailyfree-case-result span {
  color: #7df0a1;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.dailyfree-case-result strong,
.dailyfree-case-result small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dailyfree-card {
  display: grid;
  gap: 12px;
  align-content: start;
  min-height: 210px;
  padding: 18px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.dailyfree-card h2 {
  margin: 0;
}

.dailyfree-card p {
  margin: 0;
  color: var(--muted);
}

.dailyfree-card button,
.dailyfree-case-main button,
.button-link {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 16px;
  background: #111114;
  color: #ffffff;
  border: 1px solid #111114;
  border-radius: 4px;
  font-weight: 800;
}

.redeem-card form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 130px;
  gap: 10px;
}

.redeem-card input {
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 4px;
  text-transform: uppercase;
}

.empty {
  color: var(--muted);
}

.casebattle {
  display: grid;
  gap: 14px;
}

.casebattle-tabs {
  display: flex;
  gap: 8px;
}

.casebattle-tabs button {
  background: #eeeeee;
}

.casebattle-tabs button.is-active {
  background: #202020;
  color: #ffffff;
}

.casebattle-panel {
  display: none;
  gap: 14px;
}

.casebattle-panel.is-active {
  display: grid;
}

.battle-builder {
  display: grid;
  grid-template-columns: 1fr 160px 150px;
  gap: 12px;
  align-items: end;
  padding: 14px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 4px;
}

.battle-builder h2,
.battle-builder p,
.battle-builder-summary strong,
.battle-builder-summary small {
  margin: 0;
}

.battle-builder p,
.battle-builder-summary small {
  color: var(--muted);
}

.battle-builder label,
.battle-builder-summary {
  display: grid;
  gap: 6px;
}

.battle-builder select {
  min-height: 38px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #ffffff;
}

.battle-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(7,9,14,0.72);
}

.battle-modal[hidden] {
  display: none;
}

.battle-modal-panel {
  display: grid;
  gap: 14px;
  width: min(980px, 100%);
  max-height: min(860px, calc(100vh - 36px));
  overflow: auto;
  padding: 16px;
  background: #11131c;
  border: 1px solid #2a3140;
  border-radius: 8px;
  color: #ffffff;
  box-shadow: 0 24px 70px rgba(0,0,0,0.48);
}

.battle-modal-panel header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.battle-modal-panel h2,
.battle-modal-panel p {
  margin: 0;
}

.battle-modal-panel p {
  color: #98a2b3;
}

.battle-modal-panel label {
  display: grid;
  gap: 6px;
  font-weight: 800;
}

.battle-modal-panel select {
  min-height: 42px;
  padding: 8px 10px;
  color: #ffffff;
  background: #1a1e2a;
  border: 1px solid #343b4c;
  border-radius: 4px;
}

.selected-cases-modal {
  color: #202020;
}

.casebattle-modal-cases {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 10px;
}

.case-modal-choice {
  display: grid;
  gap: 6px;
  justify-items: center;
  min-height: 168px;
  padding: 10px;
  color: #ffffff;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--accent, #777777) 18%, #181b27), #171a24);
  border: 1px solid color-mix(in srgb, var(--accent, #777777) 44%, #303545);
}

.case-modal-choice img {
  width: 100%;
  height: 72px;
  object-fit: contain;
}

.case-modal-choice small {
  color: #9fe29f;
  font-weight: 800;
}

.selected-cases {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-height: 44px;
  align-items: center;
  padding: 10px;
  background: #eeeeee;
  border: 1px solid var(--line);
  border-radius: 4px;
}

.selected-case {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  min-height: 42px;
  padding: 0 10px;
  background: #ffffff;
}

.selected-case img,
.battle-case-pill img {
  width: 34px;
  height: 26px;
  object-fit: contain;
}

.casebattle-cases {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
}

.case-option,
.battle-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 4px;
}

.case-option {
  display: grid;
  gap: 14px;
  min-height: 430px;
  padding: 16px;
  overflow: hidden;
  border-top: 0;
  background:
    radial-gradient(circle at 50% 22%, color-mix(in srgb, var(--accent, #777777) 34%, transparent), transparent 42%),
    #11131c;
  color: #ffffff;
}

.caseopening-cases .case-option {
  color: #202126;
  background:
    radial-gradient(circle at 50% 18%, color-mix(in srgb, var(--accent, #777777) 24%, transparent), transparent 42%),
    linear-gradient(180deg, #ffffff, #f7f8fb);
  border-top: 4px solid var(--accent, #777777);
  box-shadow: 0 12px 28px rgba(20,25,40,0.08);
}

.caseopening-cases .case-option p,
.caseopening-cases .case-odds,
.caseopening-cases .case-option .case-rtp {
  color: #596070;
}

.caseopening-cases .case-box-art {
  background:
    linear-gradient(155deg, rgba(255,255,255,0.56), transparent 34%),
    linear-gradient(180deg, color-mix(in srgb, var(--accent, #777777) 16%, #ffffff), #eef1f7);
  box-shadow: 0 18px 28px rgba(20,25,40,0.16);
}

.caseopening-cases .case-preview-card {
  color: #202126;
  background: #eef1f7;
}

.caseopening-cases .case-preview-card img {
  background: #eef1f7;
}

.caseopening-cases .case-preview-card em {
  color: #596070;
}

.caseopening-cases .case-actions a {
  color: #ffffff;
  background: #202126;
}

.caseopening-cases .case-actions .case-battle-link {
  color: #202126;
  background: color-mix(in srgb, var(--accent, #777777) 28%, #ffffff);
  border-color: color-mix(in srgb, var(--accent, #777777) 46%, #ffffff);
}

.case-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.case-highlights span {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-width: 128px;
  padding: 7px 9px;
  background: rgba(255,255,255,0.78);
  border: 1px solid color-mix(in srgb, var(--accent, #777777) 24%, #dfe3ec);
  border-radius: 4px;
}

.case-highlights em {
  color: #2d7a43;
  font-style: normal;
  font-weight: 900;
}

.case-hero {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 150px;
}

.case-box-art {
  position: absolute;
  inset: 34px 12px 10px;
  border: 1px solid color-mix(in srgb, var(--accent, #777777) 65%, #ffffff);
  border-radius: 8px;
  background:
    linear-gradient(155deg, rgba(255,255,255,0.16), transparent 34%),
    linear-gradient(180deg, color-mix(in srgb, var(--accent, #777777) 24%, #161927), #151722);
  transform: perspective(420px) rotateX(12deg);
  box-shadow: 0 18px 28px rgba(0,0,0,0.34);
}

.case-box-art img {
  position: absolute;
  width: 42%;
  height: 82px;
  object-fit: contain;
  filter: drop-shadow(0 10px 12px rgba(0,0,0,0.4));
}

.case-box-art img:nth-child(1) {
  left: 10%;
  top: 16px;
}

.case-box-art img:nth-child(2) {
  left: 35%;
  top: 0;
  z-index: 1;
}

.case-box-art img:nth-child(3) {
  right: 7%;
  top: 22px;
}

.case-hero-main {
  position: relative;
  z-index: 2;
  width: 74%;
  height: 132px;
  object-fit: contain;
  filter: drop-shadow(0 16px 16px rgba(0,0,0,0.5));
}

.case-option-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.case-option h2,
.case-option p,
.battle-card h2,
.battle-card p {
  margin: 0;
}

.case-option p,
.battle-card p {
  color: #aab0bd;
}

.case-option button {
  background: #55d86a;
  color: #071109;
}

.case-odds {
  display: grid;
  gap: 4px;
  color: #aab0bd;
  font-size: 12px;
}

.case-odds span {
  display: grid;
  grid-template-columns: 120px 1fr;
  justify-content: space-between;
  gap: 8px;
}

.case-odds em {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-style: normal;
  text-align: right;
}

.case-preview-strip {
  display: flex;
  gap: 6px;
  min-height: 84px;
  overflow-x: auto;
  padding-bottom: 3px;
}

.case-preview-card {
  flex: 0 0 92px;
  display: grid;
  grid-template-rows: 46px auto auto;
  gap: 3px;
  min-width: 0;
  padding: 5px;
  color: #ffffff;
  background: #202331;
  border: 1px solid rgba(255,255,255,0.08);
  border-top: 3px solid var(--accent, #777777);
  border-radius: 4px;
}

.case-preview-card img {
  width: 100%;
  height: 46px;
  object-fit: contain;
  border-radius: 4px;
}

.case-preview-card b,
.case-preview-card em {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 11px;
  line-height: 1.15;
}

.case-preview-card em {
  color: #aab0bd;
  font-style: normal;
}

.case-rtp {
  color: #7df0a1;
}

.case-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.case-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 14px;
  color: #ffffff;
  background: #1d1f29;
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 4px;
  font-weight: 800;
  text-decoration: none;
}

.case-open-result {
  min-height: 0;
}

.single-case {
  display: grid;
  gap: 16px;
}

.single-case-hero {
  position: relative;
  display: grid;
  place-items: center;
  gap: 12px;
  min-height: 420px;
  overflow: hidden;
  padding: 24px;
  color: #ffffff;
  background:
    radial-gradient(circle at 50% 28%, color-mix(in srgb, var(--accent, #777777) 36%, transparent), transparent 34%),
    linear-gradient(180deg, #11131c, #171a24);
  border: 1px solid #242936;
  border-radius: 8px;
}

.single-case-hero > a {
  position: absolute;
  top: 14px;
  left: 14px;
  color: #cbd5e1;
  text-decoration: none;
  font-weight: 800;
}

.single-case-hero .case-box-art {
  width: min(520px, 82vw);
  height: 210px;
  inset: auto;
}

.single-case-hero .case-hero-main {
  width: min(360px, 68vw);
  height: 210px;
}

.single-case-hero h1 {
  position: relative;
  z-index: 2;
  margin: 0;
}

.single-case-hero strong {
  position: relative;
  z-index: 2;
  color: #7df0a1;
  font-size: 22px;
}

.single-case-hero button {
  position: relative;
  z-index: 2;
  min-width: 220px;
}

.case-open-controls {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: end;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.case-open-controls label {
  display: grid;
  gap: 5px;
  color: #cbd5e1;
  font-size: 12px;
  font-weight: 800;
}

.case-open-controls select {
  min-height: 38px;
  min-width: 88px;
  padding: 0 10px;
  color: #e8f1f5;
  border: 1px solid #2a4652;
  border-radius: 4px;
  background: #0b1b23;
}

.single-case-odds {
  display: grid;
  gap: 12px;
  padding: 16px;
  background: #11131c;
  border: 1px solid #242936;
  border-radius: 8px;
  color: #ffffff;
}

.single-case-odds h2 {
  margin: 0;
}

.case-skin-matrix {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 10px;
}

.case-skin-entry {
  display: grid;
  gap: 6px;
  min-height: 198px;
  padding: 10px;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--accent, #777777) 12%, #202331), #171a23);
  border: 1px solid color-mix(in srgb, var(--accent, #777777) 44%, #303545);
  border-top: 3px solid var(--accent, #777777);
  border-radius: 4px;
}

.case-skin-entry div {
  display: grid;
  place-items: center;
  min-height: 78px;
}

.case-skin-entry img {
  width: 100%;
  height: 76px;
  object-fit: contain;
  filter: drop-shadow(0 10px 12px rgba(0,0,0,0.38));
}

.case-skin-entry strong,
.case-skin-entry span,
.case-skin-entry small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.case-skin-entry span,
.case-skin-chance {
  color: #aab0bd;
}

.case-skin-price {
  color: #7df0a1;
  font-weight: 900;
}

.case-skin-chance {
  font-size: 12px;
}

.case-open-panel {
  display: grid;
  gap: 12px;
  padding: 14px;
  color: #e8f1f5;
  background:
    linear-gradient(180deg, rgba(84,164,191,0.08), transparent 32%),
    #0f1a22;
  border: 1px solid #263847;
  border-radius: 4px;
}

.case-open-multi {
  display: grid;
  gap: 14px;
}

.case-open-multi.is-multi {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.case-open-multi.is-multi .case-roll-item {
  width: 124px;
  grid-template-rows: 72px 32px 20px;
  min-height: 136px;
}

.case-open-multi.is-multi .case-roll-item img {
  height: 72px;
}

.case-open-multi.is-multi .case-roller {
  min-height: 168px;
}

.case-result-toolbar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.case-result-toolbar button,
.case-final-actions button {
  color: #e8f1f5;
  background: #203845;
  border: 1px solid #2a4652;
}

.case-final-actions {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

.case-pull-history {
  display: grid;
  gap: 10px;
  padding: 14px;
  color: #e8f1f5;
  background:
    linear-gradient(180deg, rgba(84,164,191,0.06), transparent 38%),
    #0f1a22;
  border: 1px solid #263847;
  border-radius: 4px;
}

.case-pull-history h2 {
  margin: 0;
  font-size: 18px;
}

#single-case-history-list,
#dailyfree-case-history-list {
  display: flex;
  gap: 8px;
  overflow-x: auto;
}

.case-history-drop {
  flex: 0 0 150px;
  display: grid;
  gap: 4px;
  padding: 8px;
  color: #e8f1f5;
  border: 1px solid color-mix(in srgb, var(--accent, #777777) 36%, #263847);
  border-top: 3px solid var(--accent, #777777);
  border-radius: 4px;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--accent, #777777) 12%, #17232d), #111d26);
}

.case-history-drop img {
  width: 100%;
  height: 58px;
  object-fit: contain;
}

.case-history-drop strong,
.case-history-drop small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.case-open-head,
.battle-player-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.case-open-head h2,
.case-open-head p {
  margin: 0;
}

.case-roller {
  position: relative;
  overflow: hidden;
  min-height: 186px;
  background: #111111;
  border-radius: 4px;
}

.case-roller-track {
  display: flex;
  gap: 8px;
  width: max-content;
  padding: 16px 14px 24px;
  transition: transform 6s cubic-bezier(.08,.6,0,1);
}

.case-roller-pointer {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  z-index: 2;
  width: 2px;
  background: #ffffff;
  box-shadow: 0 0 16px rgba(255,255,255,0.8);
}

.case-roll-item {
  display: grid;
  grid-template-rows: 84px 36px 22px;
  gap: 4px;
  width: 148px;
  min-height: 154px;
  padding: 8px;
  border-top: 3px solid var(--accent, #777777);
  border-radius: 4px;
  background: #202020;
  color: #ffffff;
}

.case-roll-item.is-focused {
  outline: 2px solid #ffffff;
  outline-offset: 2px;
  box-shadow: 0 0 0 4px rgba(255,255,255,0.12), 0 0 24px color-mix(in srgb, var(--accent, #ffffff) 54%, transparent);
}

.case-roll-item.tone-grey,
.case-preview-card.tone-grey,
.battle-slot-item.tone-grey,
.case-drop.tone-grey {
  background:
    linear-gradient(135deg, rgba(125,133,148,0.18), rgba(32,35,43,0.96)),
    #20232b;
  border-color: #555d6c;
  border-top-color: #7d8594;
}

.case-roll-item.tone-purple,
.case-preview-card.tone-purple,
.battle-slot-item.tone-purple,
.case-drop.tone-purple {
  background:
    radial-gradient(circle at 50% 22%, rgba(144,92,255,0.34), transparent 42%),
    linear-gradient(135deg, #51368c, #20232b 78%),
    #20232b;
  border-color: #7c59d8;
  border-top-color: #a77dff;
}

.case-roll-item.tone-red,
.case-preview-card.tone-red,
.battle-slot-item.tone-red,
.case-drop.tone-red {
  background:
    radial-gradient(circle at 50% 22%, rgba(255,73,93,0.36), transparent 42%),
    linear-gradient(135deg, #9d263a, #20232b 78%),
    #20232b;
  border-color: #c83f68;
  border-top-color: #ff5d73;
}

.case-roll-item.tone-gold,
.case-preview-card.tone-gold,
.battle-slot-item.tone-gold,
.case-drop.tone-gold {
  background:
    radial-gradient(circle at 50% 18%, rgba(255,224,108,0.50), transparent 45%),
    linear-gradient(135deg, #d2a94a, #362915 48%, #171a23 84%),
    #2a2115;
  border-color: #ffd866;
  border-top-color: #ffe27a;
  box-shadow: inset 0 0 0 1px rgba(255,232,138,0.24), 0 0 18px rgba(210,169,74,0.22);
}

.case-roll-item img {
  width: 100%;
  height: 84px;
  object-fit: contain;
}

.case-roll-item strong,
.case-roll-item small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.case-open-final {
  max-width: 240px;
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.28s ease, transform 0.28s ease;
}

.case-open-final.is-hidden {
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
}

.casebattle-list {
  display: grid;
  gap: 12px;
}

.battle-group {
  display: grid;
  gap: 10px;
}

.battle-group h2 {
  margin: 6px 0 0;
  font-size: 16px;
}

.battle-card {
  overflow: hidden;
}

.battle-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 14px;
  border-bottom: 1px solid var(--line);
}

.battle-players {
  display: flex;
  gap: 8px;
  min-height: 42px;
  align-items: center;
  padding: 10px 14px;
  background: #f7f7f7;
  border-bottom: 1px solid var(--line);
}

.battle-case-sequence {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
}

.battle-case-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 8px;
  color: #dce3ef;
  background: #172234;
  border-radius: 4px;
  font-size: 12px;
}

.battle-case-pill b {
  display: inline-grid;
  place-items: center;
  width: 20px;
  height: 20px;
  color: #ffffff;
  background: rgba(255,255,255,0.12);
  border-radius: 4px;
}

.battle-case-pill em {
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-style: normal;
}

.battle-case-pill.is-done {
  opacity: 0.35;
  filter: grayscale(1);
}

.battle-case-pill.is-current {
  outline: 2px solid #d2a94a;
  background: #263651;
  opacity: 1;
  filter: none;
}

.battle-join {
  background: #dff0df;
}

.battle-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
}

.battle-bot {
  background: #e8e2f2;
}

.battle-spectate {
  display: block;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  background: #eeeeee;
  color: #333333;
  font-weight: 700;
}

.battle-lobby-list {
  gap: 18px;
}

.battle-lobby-section {
  display: grid;
  gap: 8px;
  padding: 12px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 4px;
}

.battle-lobby-section > header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 0 4px 8px;
  border-bottom: 1px solid #eeeeee;
}

.battle-lobby-section h2 {
  margin: 0;
  font-size: 18px;
}

.battle-lobby-section > header span {
  color: var(--muted);
  font-weight: 900;
}

.battle-lobby-row {
  display: grid;
  grid-template-columns: 92px minmax(280px, 1.5fr) 130px minmax(220px, 1fr) 260px;
  gap: 12px;
  align-items: center;
  min-height: 106px;
  padding: 12px;
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--accent, #777777) 12%, transparent), transparent 44%),
    #f8f9fb;
  border: 1px solid color-mix(in srgb, var(--accent, #777777) 24%, #e2e5eb);
  border-left: 5px solid var(--accent, #777777);
  border-radius: 4px;
}

.battle-lobby-row.status-running {
  background:
    linear-gradient(90deg, rgba(85,216,106,0.16), transparent 42%),
    #f8fdf9;
}

.battle-round-badge {
  display: grid;
  place-items: center;
  gap: 2px;
  width: 66px;
  height: 66px;
  border-radius: 50%;
  background: #ffffff;
  border: 2px solid color-mix(in srgb, var(--accent, #777777) 48%, #dfe3ec);
}

.battle-round-badge strong {
  font-size: 20px;
}

.battle-round-badge span {
  color: var(--muted);
  font-size: 11px;
}

.battle-lobby-cases,
.battle-lobby-players,
.battle-lobby-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.battle-lobby-cases {
  min-width: 0;
  overflow: hidden;
}

.battle-case-thumb {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 78px;
  height: 54px;
  flex: 0 0 auto;
  background: #eef1f7;
  border: 1px solid #e1e5ee;
  border-radius: 4px;
}

.battle-case-thumb small {
  position: absolute;
  top: 4px;
  left: 4px;
  padding: 2px 5px;
  color: #ffffff;
  background: #202126;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 900;
}

.battle-case-thumb img {
  width: 88%;
  height: 44px;
  object-fit: contain;
}

.battle-more {
  color: var(--muted);
  font-weight: 900;
}

.battle-lobby-value {
  display: grid;
  gap: 4px;
}

.battle-lobby-value small {
  color: var(--muted);
}

.battle-lobby-value strong {
  color: #1f9d55;
  font-size: 20px;
}

.battle-player-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 34px;
  max-width: 120px;
  padding: 6px 9px;
  overflow: hidden;
  color: #202126;
  background: #ffffff;
  border: 1px solid #dfe3ec;
  border-radius: 999px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.battle-player-chip b,
.battle-player-chip em {
  color: #ffffff;
  background: #202126;
  border-radius: 999px;
  padding: 2px 5px;
  font-size: 10px;
  font-style: normal;
}

.battle-player-chip.is-bot em {
  background: #d7193f;
}

.battle-player-chip.is-open {
  justify-content: center;
  width: 34px;
  color: #7a8190;
  background: #eef1f7;
  font-weight: 900;
}

.battle-lobby-actions {
  justify-content: flex-end;
  flex-wrap: wrap;
}

.battle-lobby-actions small {
  flex-basis: 100%;
  color: var(--muted);
  text-align: right;
}

.battle-watch,
.battle-primary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 86px;
  min-height: 40px;
  padding: 0 12px;
  color: #202126;
  background: #ffffff;
  border: 1px solid #d3d8e2;
  border-radius: 4px;
  font-weight: 900;
}

.battle-primary-action {
  color: #ffffff;
  background: #202126;
  border-color: #202126;
}

.battle-lobby-actions .battle-bot {
  min-width: 56px;
  background: #f2eaff;
}

.battle-archive {
  opacity: 0.68;
  filter: grayscale(0.72);
}

.battle-archive .battle-lobby-row {
  min-height: 78px;
  background: #f1f1f1;
  border-color: #e4e4e4;
  border-left-color: #b7bcc6;
}

.battle-archive .battle-case-thumb {
  width: 58px;
  height: 42px;
}

.battle-archive .battle-case-thumb img {
  height: 32px;
}

.battle-players span {
  padding: 5px 8px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 4px;
}

.battle-drops {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 10px;
  padding: 12px;
}

.battle-round {
  border-bottom: 1px solid var(--line);
}

.battle-round h3 {
  margin: 0;
  padding: 10px 12px 0;
  font-size: 14px;
  color: #555555;
}

.case-drop {
  display: grid;
  gap: 5px;
  min-height: 148px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background:
    linear-gradient(135deg, var(--accent), #262626 74%),
    #444444;
  color: #ffffff;
}

.case-drop img {
  width: 100%;
  height: 72px;
  object-fit: contain;
  filter: drop-shadow(0 7px 10px rgba(0,0,0,0.35));
}

.case-drop small {
  color: rgba(255,255,255,0.82);
}

.battle-room {
  overflow: hidden;
  background:
    radial-gradient(circle at 50% -10%, rgba(108, 59, 180, 0.22), transparent 34%),
    #111319;
  border: 1px solid #222633;
  border-radius: 4px;
  color: #ffffff;
}

.battle-video-head {
  display: grid;
  grid-template-columns: 1fr auto 1.4fr 1fr;
  gap: 16px;
  align-items: center;
  min-height: 74px;
  padding: 12px 18px;
  background:
    linear-gradient(90deg, rgba(126, 56, 180, 0.18), transparent 24%, transparent 76%, rgba(126, 56, 180, 0.14)),
    #161820;
  border-bottom: 1px solid #242735;
}

.battle-video-head a {
  color: #a2a6b3;
  font-weight: 700;
}

.battle-video-pot,
.battle-video-title,
.battle-video-actions {
  display: grid;
  gap: 3px;
  justify-items: center;
}

.battle-video-pot {
  color: #f1c24a;
  font-weight: 900;
}

.battle-video-pot span,
.battle-video-title strong {
  color: #a2a6b3;
  font-size: 12px;
}

.battle-video-title h2 {
  margin: 0;
  font-size: 18px;
  text-align: center;
}

.battle-video-actions {
  justify-items: end;
}

.battle-video-actions span {
  padding: 9px 12px;
  color: #cfd5df;
  background: #202331;
  border: 1px solid #303546;
  border-radius: 4px;
  font-weight: 700;
}

.battle-video-meta {
  display: grid;
  grid-template-columns: 150px 120px 1fr 170px;
  gap: 10px;
  align-items: center;
  min-height: 76px;
  padding: 10px 18px;
  background: #181b23;
  border-bottom: 1px solid #242735;
}

.battle-mode,
.battle-round-box,
.battle-value-box {
  display: grid;
  gap: 3px;
  min-height: 54px;
  align-content: center;
  justify-items: center;
  background: #14171e;
  border-radius: 4px;
  color: #f1f3f6;
  font-weight: 900;
}

.battle-mode span,
.battle-round-box span,
.battle-value-box span {
  color: #949aa7;
  font-size: 12px;
  text-transform: uppercase;
}

.battle-value-box strong {
  color: #f1c24a;
}

.battle-case-sequence-room {
  justify-content: center;
  border-bottom: 0;
  padding: 0;
  background: transparent;
}

.battle-case-sequence-room .battle-case-pill {
  width: 56px;
  height: 48px;
  justify-content: center;
  padding: 4px;
  background: #202331;
  border: 1px solid #303546;
}

.battle-case-sequence-room .battle-case-pill img {
  width: 42px;
  height: 32px;
}

.battle-case-sequence-room .battle-case-pill em,
.battle-case-sequence-room .battle-case-pill b {
  display: none;
}

.battle-versus-banner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 14px;
  min-height: 54px;
  padding: 0 18px;
  background: #111319;
  border-bottom: 1px solid #1e222d;
  color: #9ba2b0;
  text-align: center;
  font-weight: 800;
}

.battle-versus-banner::before,
.battle-versus-banner::after {
  content: "";
  height: 1px;
  background: #242936;
}

.battle-versus-banner strong {
  color: #f1c24a;
}

.battle-room-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  padding: 0 18px 18px;
  background: #111319;
}

.battle-room-grid.is-waiting-grid {
  gap: 12px;
  padding-top: 18px;
}

.battle-room.players-3 .battle-room-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.battle-room.players-4 .battle-room-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.battle-room.is-team-battle .battle-room-grid {
  position: relative;
  column-gap: 10px;
  padding-left: 18px;
  padding-right: 18px;
}

.battle-room.is-team-battle .battle-room-grid::before {
  content: "";
  position: absolute;
  top: 18px;
  bottom: 18px;
  left: 50%;
  z-index: 3;
  width: 2px;
  background:
    linear-gradient(180deg, transparent, rgba(241,194,74,0.8) 12%, rgba(125,123,255,0.8) 88%, transparent);
  box-shadow: 0 0 22px rgba(241,194,74,0.18), 0 0 22px rgba(125,123,255,0.18);
  transform: translateX(-50%);
  pointer-events: none;
}

.battle-room.is-team-battle .battle-room-grid::after {
  content: "TEAM 1  VS  TEAM 2";
  position: absolute;
  top: 0;
  left: 50%;
  z-index: 4;
  padding: 4px 10px;
  color: #11131c;
  background: #f1c24a;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.battle-room.is-team-battle .battle-player-lane:nth-child(2),
.battle-room.is-team-battle .battle-wait-slot:nth-child(2) {
  margin-right: 12px;
}

.battle-room.is-team-battle .battle-player-lane:nth-child(3),
.battle-room.is-team-battle .battle-wait-slot:nth-child(3) {
  margin-left: 12px;
}

.battle-wait-slot {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 12px;
  min-width: 0;
  min-height: 260px;
  padding: 18px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.04), transparent),
    #151820;
  border: 1px solid #283044;
  border-radius: 8px;
  text-align: center;
}

.battle-wait-slot.team-1 {
  box-shadow: inset 0 3px 0 rgba(241,194,74,0.74);
}

.battle-wait-slot.team-2 {
  box-shadow: inset 0 3px 0 rgba(125,123,255,0.74);
}

.battle-wait-slot.team-3 {
  box-shadow: inset 0 3px 0 rgba(84,214,106,0.74);
}

.battle-wait-slot.team-4 {
  box-shadow: inset 0 3px 0 rgba(201,40,45,0.74);
}

.battle-wait-label {
  color: #cbd2dd;
  font-weight: 900;
}

.battle-wait-check {
  display: inline-grid;
  place-items: center;
  width: 54px;
  height: 54px;
  color: #10131b;
  background: #62d96b;
  border-radius: 50%;
  box-shadow: 0 0 22px rgba(98,217,107,0.28);
  font-size: 28px;
  font-weight: 900;
}

.battle-wait-check.is-empty {
  color: #11131c;
  background: #f1c24a;
  box-shadow: 0 0 22px rgba(241,194,74,0.24);
}

.battle-wait-slot strong {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.battle-wait-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.battle-wait-actions button,
.battle-wait-actions a {
  min-height: 38px;
  padding: 0 14px;
  color: #11131c;
  background: #f1c24a;
  border: 1px solid #d0a72e;
  border-radius: 4px;
  font-weight: 900;
  text-decoration: none;
}

.battle-wait-actions .battle-view-join {
  color: #ffffff;
  background: #268b57;
  border-color: #38b96f;
}

.battle-player-lane {
  display: grid;
  grid-template-rows: 58px 330px minmax(120px, auto) 44px;
  gap: 0;
  min-width: 0;
  min-height: 552px;
  padding: 0;
  background: #151820;
  border-right: 1px solid #242936;
  border-radius: 0;
}

.battle-player-lane:first-child {
  border-left: 1px solid #242936;
}

.battle-player-lane.team-1 {
  box-shadow: inset 3px 0 0 rgba(241,194,74,0.65);
}

.battle-player-lane.team-2 {
  box-shadow: inset 3px 0 0 rgba(125,123,255,0.65);
}

.battle-player-lane.team-3 {
  box-shadow: inset 3px 0 0 rgba(84,214,106,0.65);
}

.battle-player-lane.team-4 {
  box-shadow: inset 3px 0 0 rgba(201,40,45,0.65);
}

.battle-player-lane.is-winner {
  background:
    linear-gradient(180deg, rgba(84,214,106,0.22), transparent 52%),
    #151820;
  box-shadow: inset 0 0 0 2px rgba(84,214,106,0.68), 0 0 28px rgba(84,214,106,0.18);
}

.battle-player-lane.is-winner .battle-player-head::after {
  content: "GEWINNER";
  flex: 0 0 auto;
  padding: 4px 7px;
  color: #071109;
  background: #55d86a;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 900;
}

.battle-player-head {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
  min-width: 0;
  padding: 8px;
  background: #181b23;
  border-bottom: 1px solid #242936;
}

.battle-player-head b {
  padding: 2px 5px;
  border-radius: 4px;
  background: #202020;
  color: #ffffff;
  font-size: 11px;
}

.battle-avatar {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  border-radius: 50%;
  color: #f1c24a;
  background: #202331;
  border: 2px solid #303546;
  font-weight: 900;
}

.battle-player-head div {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.battle-player-head strong,
.battle-player-head small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.battle-player-head small {
  color: #f1c24a;
  font-weight: 900;
}

.battle-slot {
  position: relative;
  overflow: hidden;
  height: 330px;
  min-height: 330px;
  background:
    linear-gradient(180deg, rgba(0,0,0,0.42), transparent 22%, transparent 78%, rgba(0,0,0,0.46)),
    #0d1016;
}

.battle-slot::before,
.battle-slot::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  z-index: 3;
  height: 110px;
  pointer-events: none;
}

.battle-slot::before {
  top: 0;
  background: linear-gradient(180deg, #0d1016, transparent);
}

.battle-slot::after {
  bottom: 0;
  background: linear-gradient(0deg, #0d1016, transparent);
}

.battle-slot-track {
  --battle-spin-duration: 7.4s;
  --battle-spin-distance: -590px;
  --battle-final-distance: -590px;
  --battle-bait-distance: -504px;
  --battle-early-bait-distance: -418px;
  --battle-late-bait-distance: -676px;
  --battle-mid-distance: -300px;
  --battle-pre-flip-distance: -674px;
  --battle-drift-one: -532px;
  --battle-drift-two: -568px;
  display: grid;
  gap: 12px;
  padding: 18px 24px;
  transform: translateY(0);
  will-change: transform;
}

.battle-slot.is-hold .battle-slot-track {
  transform: translateY(var(--battle-final-distance));
}

@keyframes battleSlotSpin {
  from { transform: translateY(0); filter: none; }
  68% { transform: translateY(var(--battle-mid-distance)); filter: none; }
  92% { transform: translateY(var(--battle-pre-flip-distance)); filter: blur(0.18px); }
  to { transform: translateY(var(--battle-spin-distance)); filter: none; }
}

@keyframes battleSlotGlide {
  0% { transform: translateY(0); filter: none; }
  70% { transform: translateY(var(--battle-mid-distance)); filter: none; }
  94% { transform: translateY(var(--battle-pre-flip-distance)); filter: blur(0.16px); }
  100% { transform: translateY(var(--battle-spin-distance)); filter: none; }
}

@keyframes battleSlotNearMiss {
  0% { transform: translateY(0); filter: none; }
  66% { transform: translateY(var(--battle-mid-distance)); filter: none; }
  93% { transform: translateY(var(--battle-pre-flip-distance)); filter: blur(0.18px); }
  100% { transform: translateY(var(--battle-spin-distance)); filter: none; }
}

@keyframes battleSlotLateBait {
  0% { transform: translateY(0); filter: none; }
  68% { transform: translateY(var(--battle-mid-distance)); filter: none; }
  95% { transform: translateY(var(--battle-pre-flip-distance)); filter: blur(0.16px); }
  100% { transform: translateY(var(--battle-spin-distance)); filter: none; }
}

@keyframes battleSlotDoubleBait {
  0% { transform: translateY(0); filter: none; }
  64% { transform: translateY(var(--battle-mid-distance)); filter: none; }
  93% { transform: translateY(var(--battle-pre-flip-distance)); filter: blur(0.18px); }
  100% { transform: translateY(var(--battle-spin-distance)); filter: none; }
}

.battle-slot-item {
  display: grid;
  grid-template-columns: minmax(76px, 104px) minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-width: 0;
  height: 74px;
  min-height: 74px;
  opacity: 0.82;
  filter: none;
  padding: 8px;
  border: 1px solid rgba(255,255,255,0.08);
  border-top: 3px solid #7d8594;
  border-radius: 4px;
}

.battle-slot:not(.is-hold) .battle-slot-item {
  animation: battleItemSettle var(--battle-spin-duration, 7.4s) cubic-bezier(.08,.72,.08,1) both;
}

.battle-slot-item img {
  width: 100%;
  height: 54px;
  object-fit: contain;
  filter: drop-shadow(0 12px 14px rgba(0,0,0,0.45));
}

.battle-slot-item div {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.battle-slot-item strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 14px;
}

.battle-slot-item small {
  color: #9aa1ad;
}

.battle-slot-item em {
  color: #f1c24a;
  font-style: normal;
  font-weight: 900;
}

.battle-slot.is-hold .battle-slot-item.is-winning {
  opacity: 1;
  filter: none;
}

.battle-slot.is-hold .battle-slot-item.is-winning img {
  transform: scale(1.22);
}

.battle-slot:not(.is-hold) .battle-slot-item.is-bait {
  animation-name: battleBaitFocus;
}

.battle-slot:not(.is-hold).is-roll-late .battle-slot-item.is-primary-bait,
.battle-slot:not(.is-hold).is-roll-double .battle-slot-item.is-primary-bait {
  animation-name: battleLateBaitFocus;
}

.battle-slot:not(.is-hold).is-roll-double .battle-slot-item.is-early-bait {
  animation-name: battleEarlyBaitFocus;
}

.battle-slot:not(.is-hold).is-roll-glide .battle-slot-item.is-bait,
.battle-slot:not(.is-hold).is-roll-normal .battle-slot-item.is-bait {
  animation-name: battleSoftBaitFocus;
}

.battle-slot:not(.is-hold) .battle-slot-item.is-winning {
  animation-name: battleWinningFocus;
}

@keyframes battleItemSettle {
  0%, 86% { opacity: 0.82; filter: none; }
  96%, 100% { opacity: 0.24; filter: blur(1.3px) grayscale(0.75); }
}

@keyframes battleBaitFocus {
  0%, 78% { opacity: 0.82; filter: none; transform: scale(1); }
  86%, 92% { opacity: 1; filter: none; transform: scale(1.04); }
  100% { opacity: 0.36; filter: blur(0.8px) grayscale(0.25); transform: scale(1); }
}

@keyframes battleSoftBaitFocus {
  0%, 82% { opacity: 0.82; filter: none; transform: scale(1); }
  91% { opacity: 0.95; filter: none; transform: scale(1.025); }
  100% { opacity: 0.38; filter: blur(0.75px) grayscale(0.25); transform: scale(1); }
}

@keyframes battleEarlyBaitFocus {
  0%, 58% { opacity: 0.82; filter: none; transform: scale(1); }
  69%, 75% { opacity: 0.98; filter: none; transform: scale(1.035); }
  100% { opacity: 0.30; filter: blur(0.95px) grayscale(0.35); transform: scale(1); }
}

@keyframes battleLateBaitFocus {
  0%, 80% { opacity: 0.82; filter: none; transform: scale(1); }
  90%, 96% { opacity: 1; filter: none; transform: scale(1.045); }
  100% { opacity: 0.34; filter: blur(0.75px) grayscale(0.20); transform: scale(1); }
}

@keyframes battleWinningFocus {
  0%, 90% { opacity: 0.82; filter: none; transform: scale(1); }
  98%, 100% { opacity: 1; filter: none; transform: scale(1.08); }
}

.battle-slot-side {
  position: absolute;
  top: 50%;
  z-index: 5;
  width: 0;
  height: 0;
  border-top: 14px solid transparent;
  border-bottom: 14px solid transparent;
  transform: translateY(-50%);
}

.battle-slot-left {
  left: 0;
  border-left: 18px solid #263144;
}

.battle-slot-right {
  right: 0;
  border-right: 18px solid #263144;
}

.battle-slot.is-idle {
  display: grid;
  place-items: center;
  color: #8f97a6;
}

.case-roller-mini {
  min-height: 124px;
}

.case-roller-mini .case-roller-track {
  transition-duration: 4.8s;
}

.case-roller-mini .case-roll-item {
  width: 104px;
  min-height: 104px;
  grid-template-rows: 54px 24px 18px;
  font-size: 11px;
}

.case-roller-mini .case-roll-item img {
  height: 54px;
}

.case-roller-mini.is-idle {
  display: grid;
  place-items: center;
  color: #ffffff;
}

.battle-player-drops {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 10px;
  align-content: start;
  min-height: 145px;
  padding: 12px;
  background: #181b23;
  border-top: 1px solid #242936;
}

.battle-player-drops .empty {
  color: #8fa0b6;
}

.battle-player-drops .case-drop {
  min-height: 100px;
  font-size: 12px;
  grid-template-columns: 76px 1fr;
  align-items: center;
}

.battle-player-drops .case-drop img {
  grid-row: 1 / 4;
  height: 54px;
}

.battle-lane-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 14px;
  background: #12151d;
  border-top: 1px solid #242936;
  color: #9aa9bd;
  font-weight: 900;
}

.battle-lane-total strong {
  color: #f1c24a;
}

.case-drop.is-compact span,
.case-drop.is-compact strong,
.case-drop.is-compact small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.winner-banner {
  padding: 14px;
  background: #dff0df;
  border-bottom: 1px solid var(--line);
  font-weight: 800;
  animation: winnerPulse 1s ease-in-out 0s 4 alternate;
}

@keyframes winnerPulse {
  from { filter: brightness(1); }
  to { filter: brightness(1.18); }
}

.live-chat {
  grid-column: 1;
  grid-row: 3;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-self: stretch;
  position: sticky;
  top: 0;
  z-index: 10;
  width: 42px;
  min-height: 100%;
}

body.chat-open .live-chat {
  width: 280px;
}

.live-chat.is-collapsed {
  display: grid;
}

.live-chat-toggle {
  grid-column: 1;
  align-self: stretch;
  width: 42px;
  min-width: 42px;
  min-height: 220px;
  padding: 8px 6px;
  color: #ffffff;
  background: #26272d;
  border: 1px solid #3c404b;
  border-left: 0;
  border-radius: 0;
  writing-mode: vertical-rl;
  text-orientation: mixed;
}

.live-chat-panel {
  grid-column: 2;
  display: none;
  overflow: hidden;
  height: 100%;
  background: #ffffff;
  border: 1px solid var(--line);
  border-top: 0;
  border-left: 0;
  border-radius: 0;
  box-shadow: inset -1px 0 0 rgba(0,0,0,0.05);
}

.live-chat-panel.is-open {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
}

.live-chat-head {
  display: flex;
  justify-content: space-between;
  padding: 12px;
  background: #202126;
  color: #ffffff;
}

.live-chat-head small {
  color: #7df0a1;
}

.live-chat-messages {
  display: grid;
  align-content: start;
  gap: 8px;
  overflow: auto;
  padding: 12px;
  background: #f4f4f4;
}

.live-chat-message {
  display: grid;
  gap: 3px;
  padding: 8px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 4px;
}

.live-chat-message strong {
  font-size: 12px;
}

.live-chat-message.is-admin strong {
  color: #c9282d;
}

.live-chat-form {
  display: grid;
  grid-template-columns: 1fr 82px;
  gap: 8px;
  padding: 10px;
  border-top: 1px solid var(--line);
}

.live-chat-form input {
  min-height: 38px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 4px;
}

.live-chat-login {
  padding: 12px;
  border-top: 1px solid var(--line);
}

.original-game {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 16px;
  align-items: stretch;
  min-height: 560px;
}

.original-controls {
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 16px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 4px;
  box-shadow: 0 16px 34px rgba(0,0,0,0.18);
}

.original-controls label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.original-controls input,
.original-controls select {
  min-height: 40px;
  padding: 0 10px;
}

.original-controls button {
  min-height: 48px;
  color: #041d09;
  background: #18d91b;
  border-color: #18d91b;
}

.original-controls p {
  margin: 0;
  color: var(--muted);
}

.plinko-board,
.slot-cabinet,
.crash-stage,
.dice-stage {
  position: relative;
  overflow: hidden;
  min-height: 560px;
  padding: 18px;
  background:
    radial-gradient(circle at 52% 34%, rgba(84, 164, 191, 0.12), transparent 20rem),
    #071b22;
  border: 1px solid #1d3540;
  border-radius: 4px;
  box-shadow: 0 24px 60px rgba(0,0,0,0.28);
}

.plinko-page .plinko-board {
  display: grid;
  align-content: stretch;
  padding: 24px 28px 52px;
  background:
    radial-gradient(circle at 50% 18%, rgba(24,217,27,0.06), transparent 18rem),
    #071b22;
}

.plinko-page .original-stage-title {
  position: relative;
  z-index: 4;
  justify-self: start;
  display: grid;
  gap: 2px;
  color: #ffffff;
  text-transform: uppercase;
}

.plinko-page .original-stage-title span {
  color: #9bb7c4;
  font-size: 11px;
  text-transform: none;
}

.plinko-pegs,
.plinko-ball {
  position: absolute;
  inset: 0;
}

.plinko-pegs span {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #d7edf6;
  box-shadow: 0 0 12px rgba(84,164,191,0.7);
  transform: translate(-50%, -50%);
}

.plinko-ball {
  width: 18px;
  height: 18px;
  left: 50%;
  top: 3%;
  inset: auto;
  border-radius: 50%;
  background: #f3e600;
  box-shadow: 0 0 18px rgba(243,230,0,0.7);
  transform: translate(-50%, -50%);
  z-index: 2;
}

.plinko-bins {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  display: grid;
  grid-auto-flow: column;
  gap: 4px;
}

.plinko-bins span {
  display: grid;
  place-items: center;
  min-height: 34px;
  color: #041d09;
  background: #18d91b;
  border-radius: 4px;
  font-weight: 900;
  font-size: 12px;
}

.plinko-last-wins {
  position: absolute;
  top: 50%;
  right: 18px;
  z-index: 4;
  display: grid;
  gap: 8px;
  transform: translateY(-50%);
}

.plinko-last-wins span {
  min-width: 58px;
  padding: 8px 10px;
  color: #041d09;
  background: #18d91b;
  border-radius: 4px;
  box-shadow: 0 3px 0 rgba(0,0,0,0.28);
  font-size: 12px;
  font-weight: 900;
  text-align: center;
}

.plinko-last-wins span.is-loss {
  color: #d7edf6;
  background: #203845;
}

.plinko-last-wins span.bin-low {
  color: #07171d;
  background: #54a4bf;
}

.plinko-last-wins span.bin-mid {
  color: #07171d;
  background: #18d91b;
}

.plinko-last-wins span.bin-warm {
  color: #07171d;
  background: #f3e600;
}

.plinko-last-wins span.bin-hot {
  color: #ffffff;
  background: #f02d44;
}

.slot-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(90px, 1fr));
  gap: 10px;
  max-width: 520px;
  margin: 40px auto 24px;
}

.slot-cell {
  display: grid;
  place-items: center;
  min-height: 110px;
  color: #e8f1f5;
  background: #10232c;
  border: 1px solid #2a4652;
  border-radius: 8px;
  font-size: 24px;
  font-weight: 900;
}

.slot-cell.is-spinning {
  animation: slotPulse 0.18s linear infinite alternate;
}

.slot-cell.is-win {
  color: #041d09;
  background: #18d91b;
  border-color: #18d91b;
}

@keyframes slotPulse {
  from { filter: brightness(0.82); transform: translateY(0); }
  to { filter: brightness(1.2); transform: translateY(-2px); }
}

.slot-paytable {
  display: grid;
  gap: 6px;
  max-width: 520px;
  margin: 0 auto;
  color: var(--muted);
}

.crash-stage canvas {
  width: 100%;
  height: min(420px, 60vh);
  background: #091820;
  border: 1px solid #1d3540;
  border-radius: 4px;
}

.crash-multiplier {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  color: #18d91b;
  font-size: 56px;
  font-weight: 900;
  text-shadow: 0 0 24px rgba(24,217,27,0.3);
}

.dice-stage {
  display: grid;
  align-content: center;
  gap: 24px;
}

.dice-number {
  justify-self: center;
  color: #ffffff;
  font-size: 72px;
  font-weight: 900;
}

.dice-slider {
  width: min(720px, 100%);
  justify-self: center;
  accent-color: #18d91b;
}

.dice-track-labels,
.dice-metrics {
  display: flex;
  justify-content: center;
  gap: 24px;
  color: var(--muted);
}

.dice-page.is-win .dice-number {
  color: #18d91b;
}

.dice-page.is-lose .dice-number {
  color: #f02d44;
}

.original-game {
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 0;
  overflow: hidden;
  min-height: 620px;
  background: #071b22;
  border: 1px solid #1d3540;
  border-radius: 4px;
  box-shadow: 0 26px 70px rgba(0,0,0,0.34);
}

.original-controls {
  gap: 12px;
  padding: 14px 12px;
  background: #18313b;
  border: 0;
  border-right: 1px solid #254552;
  border-radius: 0;
  box-shadow: none;
}

.original-controls h1 {
  display: none;
}

.original-mode-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 4px;
  background: #081c24;
  border-radius: 999px;
}

.original-mode-tabs button {
  min-height: 36px;
  color: #c8d7de;
  background: transparent;
  border: 0;
  border-radius: 999px;
}

.original-mode-tabs button.is-active {
  color: #ffffff;
  background: #2a4350;
}

.original-field,
.original-controls label {
  display: grid;
  gap: 7px;
  color: #8fa6b2;
  font-size: 13px;
  font-weight: 900;
}

.original-controls input,
.original-controls select {
  width: 100%;
  min-height: 40px;
  color: #ffffff;
  background: #081c24;
  border: 1px solid #2b4a58;
  border-radius: 4px;
}

.original-amount-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 48px 48px;
  overflow: hidden;
  border: 1px solid #2b4a58;
  border-radius: 4px;
}

.original-amount-row input {
  border: 0;
  border-radius: 0;
}

.original-amount-row button {
  min-height: 40px;
  color: #dce8ee;
  background: #243d49;
  border: 0;
  border-left: 1px solid #2b4a58;
  border-radius: 0;
}

.original-play,
.original-controls .original-play {
  min-height: 54px;
  margin-top: 4px;
  color: #041d09;
  background: #18d91b;
  border-color: #18d91b;
  font-weight: 900;
}

.original-secondary,
.original-controls .original-secondary {
  min-height: 46px;
  color: #ffffff;
  background: #223c48;
  border-color: #315260;
}

.original-controls p {
  min-height: 42px;
  padding: 10px;
  color: #b7cbd4;
  background: #0c2028;
  border: 1px solid #254552;
  border-radius: 4px;
}

.plinko-board,
.slot-cabinet,
.crash-stage,
.dice-stage {
  min-height: 620px;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.original-stage-title {
  position: absolute;
  top: 18px;
  left: 22px;
  z-index: 3;
  display: grid;
  gap: 2px;
  color: #ffffff;
}

.original-stage-title strong,
.crash-topline strong {
  font-size: 18px;
  text-transform: uppercase;
}

.original-stage-title span,
.crash-topline span {
  color: #8fa6b2;
  font-size: 12px;
  font-weight: 800;
}

.plinko-board {
  background:
    linear-gradient(180deg, rgba(84,164,191,0.08), transparent 40%),
    #071b22;
}

.plinko-pegs {
  top: 58px;
  bottom: 18px;
}

.plinko-pegs span {
  width: 10px;
  height: 10px;
  background: #c4dce6;
  box-shadow:
    0 0 0 3px rgba(196,220,230,0.08),
    0 0 18px rgba(84,164,191,0.55);
}

.plinko-ball {
  width: 20px;
  height: 20px;
  background: #f3e600;
  box-shadow:
    inset 0 -4px 8px rgba(0,0,0,0.22),
    0 0 22px rgba(243,230,0,0.72);
}

.plinko-ball[hidden] {
  display: none;
}

.plinko-ball.is-live {
  display: block;
  z-index: 4;
}

.plinko-bins {
  left: 18px;
  right: 18px;
  bottom: 22px;
  gap: 6px;
}

.plinko-bins span {
  min-height: 40px;
  color: #07171d;
  background: #18d91b;
  border-radius: 4px;
  box-shadow: inset 0 -3px 0 rgba(0,0,0,0.18);
}

.plinko-bins .bin-low {
  background: #54a4bf;
}

.plinko-bins .bin-mid {
  background: #18d91b;
}

.plinko-bins .bin-warm {
  background: #f3e600;
}

.plinko-bins .bin-hot {
  background: #f02d44;
  color: #ffffff;
}

.slot-cabinet {
  display: grid;
  align-content: center;
  justify-items: center;
  padding: 26px 72px;
  background:
    radial-gradient(circle at 50% 16%, rgba(243,230,0,0.22), transparent 10rem),
    linear-gradient(180deg, #18313b, #071b22 70%);
}

.slot-marquee {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 18px;
  width: min(620px, 100%);
  padding: 14px 20px;
  color: #07171d;
  background: #f3c850;
  border: 6px solid #38210f;
  border-radius: 8px 8px 0 0;
  box-shadow: inset 0 0 0 2px rgba(255,255,255,0.24);
}

.slot-marquee strong {
  font-size: 28px;
  text-transform: uppercase;
}

.slot-marquee span {
  font-weight: 900;
  text-align: center;
}

.slot-window {
  position: relative;
  width: min(620px, 100%);
  padding: 26px;
  background: #5f1d1d;
  border: 8px solid #38210f;
  border-top: 0;
  border-radius: 0 0 8px 8px;
  box-shadow: 0 22px 42px rgba(0,0,0,0.36);
}

.slot-grid {
  gap: 8px;
  max-width: none;
  margin: 0;
  padding: 12px;
  background: #140b0b;
  border: 6px solid #d7b35a;
  border-radius: 6px;
}

.slot-cell {
  position: relative;
  overflow: hidden;
  min-height: 112px;
  color: #31180c;
  background:
    linear-gradient(180deg, #fff6d5, #e7d09a 48%, #fff2c4);
  border: 1px solid #8b652b;
  border-radius: 4px;
  font-size: 22px;
  text-shadow: 0 1px 0 rgba(255,255,255,0.5);
}

.slot-symbol {
  display: grid;
  place-items: center;
  gap: 7px;
  min-width: 0;
  font-weight: 900;
}

.slot-symbol i {
  position: relative;
  display: block;
  width: 58px;
  height: 46px;
}

.slot-symbol b {
  color: #31180c;
  font-size: 14px;
  line-height: 1;
}

.slot-symbol-coin i {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 34% 28%, #fff5a9 0 16%, transparent 17%),
    linear-gradient(135deg, #ffd84b, #b67f12);
  border: 4px solid #875d0a;
  box-shadow: inset 0 -5px 0 rgba(0,0,0,0.14);
}

.slot-symbol-coin i::before {
  content: "EUR";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #5c3a00;
  font-size: 12px;
  font-weight: 900;
}

.slot-symbol-cherry i::before,
.slot-symbol-cherry i::after {
  content: "";
  position: absolute;
  bottom: 1px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 34% 28%, #ffb1b1 0 12%, transparent 13%),
    #d71938;
  border: 3px solid #8f0e22;
}

.slot-symbol-cherry i::before {
  left: 6px;
}

.slot-symbol-cherry i::after {
  right: 6px;
}

.slot-symbol-cherry {
  position: relative;
}

.slot-symbol-cherry i {
  border-top: 4px solid #27823c;
  border-radius: 50% 50% 0 0;
}

.slot-symbol-case i {
  width: 58px;
  height: 40px;
  margin-top: 4px;
  background:
    linear-gradient(90deg, transparent 0 14%, rgba(255,255,255,0.22) 14% 20%, transparent 20% 100%),
    #d49a28;
  border: 4px solid #6e4110;
  border-radius: 5px;
  box-shadow: inset 0 -6px 0 rgba(0,0,0,0.18);
}

.slot-symbol-case i::before {
  content: "";
  position: absolute;
  left: 18px;
  top: -11px;
  width: 22px;
  height: 12px;
  border: 4px solid #6e4110;
  border-bottom: 0;
  border-radius: 6px 6px 0 0;
}

.slot-symbol-ak i {
  width: 64px;
  height: 34px;
  margin-top: 8px;
}

.slot-symbol-ak i::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 13px;
  width: 54px;
  height: 8px;
  background: #25343a;
  border-radius: 999px;
  box-shadow:
    18px 8px 0 -1px #6d4d22,
    35px -6px 0 -2px #25343a;
  transform: rotate(-12deg);
}

.slot-symbol-ak i::after {
  content: "";
  position: absolute;
  left: 28px;
  top: 19px;
  width: 22px;
  height: 8px;
  background: #6d4d22;
  transform: rotate(46deg);
}

.slot-symbol-knife i {
  width: 66px;
  height: 38px;
  margin-top: 6px;
}

.slot-symbol-knife i::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 12px;
  width: 44px;
  height: 12px;
  background: linear-gradient(90deg, #cfd6d8, #758489);
  clip-path: polygon(0 45%, 82% 0, 100% 50%, 82% 100%, 0 55%);
  transform: rotate(-18deg);
}

.slot-symbol-knife i::after {
  content: "";
  position: absolute;
  right: 4px;
  top: 17px;
  width: 18px;
  height: 8px;
  background: #3c2412;
  border-radius: 2px;
  transform: rotate(-18deg);
}

.slot-symbol-seven i {
  width: 58px;
  height: 52px;
}

.slot-symbol-seven i::before {
  content: "7";
  position: absolute;
  inset: -4px 0 0;
  color: #d71938;
  font-size: 58px;
  line-height: 1;
  font-weight: 900;
  text-shadow: 2px 2px 0 #ffd84b;
}

.slot-cell.is-win {
  color: #07171d;
  background: #18d91b;
  box-shadow: 0 0 20px rgba(24,217,27,0.45);
}

.slot-lever {
  position: absolute;
  right: 34px;
  top: 44%;
  width: 28px;
  height: 150px;
  border-radius: 999px;
  background: #38210f;
}

.slot-lever span {
  position: absolute;
  left: 50%;
  top: -34px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #f02d44;
  border: 7px solid #7c1e1e;
  transform: translateX(-50%);
}

.slot-paytable {
  grid-template-columns: repeat(3, minmax(110px, 1fr));
  gap: 8px;
  width: min(620px, 100%);
  max-width: none;
  margin-top: 18px;
}

.slot-paytable span {
  padding: 8px 10px;
  color: #f3c850;
  background: #0b1f27;
  border: 1px solid #254552;
  border-radius: 4px;
  font-weight: 900;
  text-align: center;
}

.crash-stage {
  display: grid;
  align-content: stretch;
  padding: 24px;
  background:
    linear-gradient(180deg, rgba(84,164,191,0.08), transparent 42%),
    #071b22;
}

.crash-topline {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 40px;
  margin-bottom: 12px;
}

.crash-stage canvas {
  height: min(470px, 62vh);
  background:
    linear-gradient(rgba(84,164,191,0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(84,164,191,0.08) 1px, transparent 1px),
    #07171d;
  background-size: 58px 58px;
  border-color: #254552;
}

.crash-multiplier {
  top: 47%;
  color: #ffffff;
  font-size: clamp(48px, 8vw, 96px);
  text-shadow:
    0 0 22px rgba(24,217,27,0.58),
    0 0 2px rgba(255,255,255,0.62);
}

.crash-plane {
  position: absolute;
  left: 8%;
  top: 78%;
  z-index: 3;
  width: 88px;
  height: 52px;
  filter: drop-shadow(0 0 16px rgba(24,217,27,0.3));
  transition: left 0.12s linear, top 0.12s linear, transform 0.12s linear, opacity 0.16s ease;
}

.crash-plane svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.crash-plane .plane-body {
  fill: #dff8e0;
}

.crash-plane .plane-wing,
.crash-plane .plane-tail {
  fill: #18d91b;
}

.crash-plane .plane-glow {
  fill: none;
  stroke: #bfffbd;
  stroke-linecap: round;
  stroke-width: 6;
  opacity: 0.82;
}

.crash-plane span {
  position: absolute;
  left: 8px;
  top: 13px;
  width: 44px;
  height: 8px;
  background: #dff8e0;
  border-radius: 999px 8px 8px 999px;
}

.crash-plane span::before,
.crash-plane span::after {
  content: "";
  position: absolute;
  background: #18d91b;
}

.crash-plane span::before {
  left: 15px;
  top: -13px;
  width: 18px;
  height: 30px;
  clip-path: polygon(0 48%, 100% 0, 78% 100%);
}

.crash-plane span::after {
  right: -7px;
  top: -5px;
  width: 14px;
  height: 19px;
  clip-path: polygon(0 0, 100% 50%, 0 100%);
}

.crash-page.is-crashed .crash-plane {
  opacity: 0.25;
  filter: drop-shadow(0 0 18px rgba(240,45,68,0.48));
}

.crash-live-bets {
  position: absolute;
  top: 84px;
  right: 24px;
  z-index: 5;
  display: grid;
  gap: 8px;
  width: min(260px, 30vw);
  max-height: 360px;
  overflow: auto;
  padding: 12px;
  color: #e8f1f5;
  background: rgba(10, 28, 36, 0.92);
  border: 1px solid #254552;
  border-radius: 4px;
  box-shadow: 0 16px 36px rgba(0,0,0,0.28);
}

.crash-live-bets > strong {
  color: #ffffff;
  text-transform: uppercase;
  font-size: 12px;
}

.crash-live-bets > div {
  display: grid;
  gap: 6px;
}

.crash-live-bets > div > span {
  color: #8fa6b2;
  font-size: 12px;
}

.crash-bet-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2px 8px;
  padding: 8px;
  background: #0b1f27;
  border: 1px solid #254552;
  border-radius: 4px;
}

.crash-bet-row strong,
.crash-bet-row span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.crash-bet-row span {
  color: #f1c24a;
  font-weight: 900;
}

.crash-bet-row em {
  grid-column: 1 / -1;
  color: #8fa6b2;
  font-style: normal;
  font-size: 12px;
}

.crash-bet-row.status-cashed {
  border-color: #18d91b;
}

.crash-bet-row.status-cashed em {
  color: #7df0a1;
}

.crash-bet-row.status-lost {
  opacity: 0.62;
}

.crash-info-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr 1fr;
  gap: 12px;
  margin-top: 12px;
}

.crash-info-card {
  display: grid;
  align-content: start;
  gap: 10px;
  min-width: 0;
  padding: 12px;
  color: #ffffff;
  background: #10232c;
  border: 1px solid #254552;
  border-radius: 4px;
}

.crash-info-card header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.crash-info-card header strong {
  text-transform: uppercase;
}

.crash-info-card header span {
  color: #8fa6b2;
  font-size: 12px;
  font-weight: 900;
}

.crash-history-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.crash-history-strip > span {
  display: inline-grid;
  place-items: center;
  min-width: 58px;
  min-height: 30px;
  padding: 0 9px;
  color: #07171d;
  background: #54a4bf;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 900;
  box-shadow: inset 0 -3px 0 rgba(0,0,0,0.18);
}

.crash-history-strip .tone-mid {
  background: #18d91b;
}

.crash-history-strip .tone-warm {
  background: #f3e600;
}

.crash-history-strip .tone-hot {
  color: #ffffff;
  background: #f02d44;
}

.crash-player-list,
.crash-user-list {
  display: grid;
  gap: 7px;
  max-height: 310px;
  overflow: auto;
}

.crash-player-list > span,
.crash-user-list > span {
  color: #8fa6b2;
  font-weight: 800;
}

.crash-player-row,
.crash-user-row {
  display: grid;
  align-items: center;
  gap: 8px;
  min-width: 0;
  padding: 9px;
  background: #071b22;
  border: 1px solid #254552;
  border-left: 4px solid #54a4bf;
  border-radius: 4px;
}

.crash-player-row {
  grid-template-columns: minmax(0, 1fr) auto auto auto;
}

.crash-user-row {
  grid-template-columns: minmax(0, 1fr) auto auto;
}

.crash-player-row.status-cashed,
.crash-user-row.status-cashed {
  border-left-color: #18d91b;
}

.crash-player-row.status-lost,
.crash-user-row.status-lost {
  border-left-color: #f02d44;
}

.crash-player-row strong,
.crash-player-row span,
.crash-player-row em,
.crash-player-row b,
.crash-user-row strong,
.crash-user-row small,
.crash-user-row span,
.crash-user-row em {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.crash-player-row span,
.crash-user-row strong {
  color: #f1c24a;
  font-weight: 900;
}

.crash-player-row em,
.crash-user-row small {
  color: #8fa6b2;
  font-style: normal;
  font-size: 12px;
  font-weight: 800;
}

.crash-player-row b,
.crash-user-row span,
.crash-user-row em {
  color: #ffffff;
  font-style: normal;
  font-weight: 900;
}

.crash-player-row.status-cashed b,
.crash-user-row.status-cashed em {
  color: #7df0a1;
}

.crash-player-row.status-lost b,
.crash-user-row.status-lost em {
  color: #ff8291;
}

.demo-battle-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.demo-battle-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 12px;
  color: #071109;
  background: #55d86a;
  border: 1px solid #38b96f;
  border-radius: 4px;
  font-weight: 900;
  text-decoration: none;
}

.dice-stage {
  align-content: center;
  gap: 26px;
  padding: clamp(18px, 4vw, 56px);
  background:
    radial-gradient(circle at 50% 16%, rgba(24,217,27,0.1), transparent 20rem),
    #071b22;
}

.dice-result-card {
  justify-self: center;
  display: grid;
  gap: 4px;
  min-width: 220px;
  padding: 18px 24px;
  color: #ffffff;
  background: #10232c;
  border: 1px solid #254552;
  border-radius: 8px;
  text-align: center;
}

.dice-result-card span {
  color: #8fa6b2;
  font-weight: 900;
  text-transform: uppercase;
}

.dice-number {
  font-size: clamp(56px, 10vw, 112px);
  line-height: 1;
}

.dice-slider-wrap {
  position: relative;
  display: grid;
  gap: 14px;
  width: min(820px, 100%);
  justify-self: center;
  padding: 0 12px;
}

.dice-slider-wrap::before {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  top: 21px;
  height: 18px;
  border-radius: 999px;
  background:
    linear-gradient(90deg, #f02d44 0 var(--dice-target, 50%), #18d91b var(--dice-target, 50%) 100%);
  box-shadow: inset 0 3px 7px rgba(0,0,0,0.35);
}

.dice-roll-marker {
  position: absolute;
  left: var(--dice-roll, 50%);
  top: -11px;
  z-index: 4;
  display: none;
  width: 2px;
  height: 54px;
  background: #ffffff;
  box-shadow: 0 0 12px rgba(255,255,255,0.55);
  transform: translateX(-50%);
}

.dice-page.has-roll .dice-roll-marker {
  display: block;
}

.dice-roll-marker::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -12px;
  width: 0;
  height: 0;
  border-left: 9px solid transparent;
  border-right: 9px solid transparent;
  border-top: 13px solid #ffffff;
  transform: translateX(-50%);
}

.dice-roll-marker span {
  position: absolute;
  left: 50%;
  top: -42px;
  min-width: 54px;
  padding: 4px 6px;
  color: #07171d;
  background: #ffffff;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 900;
  text-align: center;
  transform: translateX(-50%);
}

.dice-page[data-direction="under"] .dice-slider-wrap::before {
  background:
    linear-gradient(90deg, #18d91b 0 var(--dice-target, 50%), #f02d44 var(--dice-target, 50%) 100%);
}

.dice-slider {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 60px;
  background: transparent;
  accent-color: #ffffff;
}

.dice-track-labels {
  justify-content: space-between;
  padding: 0 4px;
  color: #8fa6b2;
  font-weight: 900;
}

.dice-bottom-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(120px, 1fr));
  gap: 12px;
  width: min(820px, 100%);
  justify-self: center;
}

.dice-bottom-metrics span,
.dice-metrics span {
  display: grid;
  gap: 4px;
  padding: 12px;
  color: #8fa6b2;
  background: #10232c;
  border: 1px solid #254552;
  border-radius: 4px;
  font-weight: 900;
}

.dice-bottom-metrics strong,
.dice-metrics strong {
  color: #ffffff;
}

.dice-stage > p {
  justify-self: center;
  margin: 0;
  color: #8fa6b2;
  font-weight: 900;
}

.dice-history-panel {
  display: grid;
  gap: 12px;
  width: min(1070px, calc(100vw - 48px));
  margin: 14px auto 0;
  padding: 14px;
  color: #ffffff;
  background: #10232c;
  border: 1px solid #254552;
  border-radius: 4px;
}

.dice-history-panel header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
}

.dice-history-panel header div {
  display: grid;
  gap: 2px;
}

.dice-history-panel header span,
.dice-history-panel header small {
  color: #8fa6b2;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.dice-history-panel h2 {
  margin: 0;
  font-size: 18px;
  text-transform: uppercase;
}

.dice-history-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 8px;
}

.dice-history-list article {
  display: grid;
  gap: 3px;
  padding: 10px;
  background: #071b22;
  border: 1px solid #254552;
  border-left: 4px solid #f02d44;
  border-radius: 4px;
}

.dice-history-list article.is-win {
  border-left-color: #18d91b;
}

.dice-history-list article.is-empty {
  color: #8fa6b2;
  border-left-color: #54a4bf;
  font-weight: 900;
}

.dice-history-list strong,
.dice-history-list span,
.dice-history-list small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dice-history-list span {
  color: #f3e600;
  font-weight: 900;
}

.dice-history-list small {
  color: #8fa6b2;
  font-weight: 800;
}

.page-head,
.auth-panel,
.shop-filter,
.skin-card,
.online-panel,
.bet-column,
.bet-controls,
.history,
.wheel500-panel,
.case-option,
.single-case-hero,
.case-odds-panel,
.dailyfree-card,
.redeem-card,
.history-modal-panel,
.admin-create,
.voucher-list,
.voucher-table article,
.admin-user,
.create-user-form,
.credit-form,
.daily-settings-form,
.voucher-create-form,
.battle-builder,
.battle-lobby-row,
.casebattle-tabs,
.inventory-toolbar,
.history-modal,
.modal-card {
  background: var(--panel);
  border-color: var(--line);
  color: var(--text);
  box-shadow: 0 16px 34px rgba(0,0,0,0.18);
}

.shop-filter input,
.shop-filter select,
.auth-panel input,
.admin-user input,
.create-user-form input,
.daily-settings-form input,
.daily-settings-form select,
.voucher-create-form input,
.credit-form input,
.credit-form select,
.battle-builder select,
.case-open-controls select,
.bet-controls input,
.wheel500-bet,
.original-controls input,
.original-controls select,
.redeem-card input,
.live-chat-form input {
  background: #0c1c24;
  border-color: #2a4652;
  color: var(--text);
}

.shop-filter span,
.daily-settings-form span,
.inventory-check,
.check-row,
.bet-total {
  color: var(--muted);
}

.shop-filter strong {
  color: var(--text);
}

.page-head,
.auth-panel,
.shop-filter {
  border-top-color: #19c96f;
}

.skin-card,
.case-option,
.dailyfree-card,
.battle-lobby-row {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.035), rgba(255,255,255,0)),
    var(--panel);
}

.skin-row button,
.case-option button,
.single-case-hero button,
.dailyfree-card button,
.dailyfree-case-main button,
.button-link,
.auth-panel button,
.shop-filter button,
.credit-form button,
.voucher-create-form button,
.daily-settings-form button,
.battle-lobby-actions button,
.battle-builder button {
  color: #041d09;
  background: #18d91b;
  border-color: #18d91b;
}

.skin-row button:hover,
.case-option button:hover,
.single-case-hero button:hover,
.dailyfree-card button:hover,
.dailyfree-case-main button:hover,
.button-link:hover,
.auth-panel button:hover,
.shop-filter button:hover,
.credit-form button:hover,
.voucher-create-form button:hover,
.daily-settings-form button:hover,
.battle-lobby-actions button:hover,
.battle-builder button:hover {
  filter: brightness(1.08);
}

.page-head {
  display: grid;
  gap: 8px;
}

.cases-head {
  align-items: center;
  color: var(--text);
  background:
    linear-gradient(90deg, rgba(25,201,111,0.12), rgba(84,164,191,0.08)),
    var(--panel);
}

.cases-head a,
.caseopening-cases .case-actions a {
  color: #041d09;
  background: #18d91b;
  border: 1px solid #18d91b;
}

.caseopening-cases .case-option {
  color: var(--text);
  background:
    radial-gradient(circle at 50% 18%, color-mix(in srgb, var(--accent, #777777) 22%, transparent), transparent 45%),
    linear-gradient(180deg, rgba(255,255,255,0.035), rgba(255,255,255,0)),
    var(--panel);
  border-color: var(--line);
  border-top: 4px solid var(--accent, #777777);
  box-shadow: 0 18px 34px rgba(0,0,0,0.22);
}

.caseopening-cases .case-option p,
.caseopening-cases .case-odds,
.caseopening-cases .case-option .case-rtp {
  color: var(--muted);
}

.caseopening-cases .case-box-art,
.caseopening-cases .case-preview-card,
.caseopening-cases .case-preview-card img {
  color: var(--text);
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--accent, #777777) 16%, #10232c), #0d1b24);
}

.caseopening-cases .case-preview-card em {
  color: var(--muted);
}

.caseopening-cases .case-actions .case-battle-link {
  color: #e8f1f5;
  background: #203845;
  border-color: #2a4652;
}

.selected-cases {
  color: var(--text);
  background: #10232c;
  border-color: #263d48;
}

.selected-cases-modal {
  color: var(--text);
}

.selected-case {
  color: var(--text);
  background: #17313c;
  border: 1px solid #2a4652;
  border-radius: 4px;
}

.admin-grid {
  gap: 12px;
}

.admin-create,
.voucher-list,
.admin-user {
  overflow: hidden;
}

.admin-user {
  grid-template-columns: minmax(190px, 0.7fr) minmax(0, 1.45fr);
}

.credit-form {
  grid-template-columns: minmax(130px, 150px) minmax(110px, 130px) minmax(160px, 1fr) minmax(110px, 120px);
}

.create-user-form,
.daily-settings-form,
.voucher-create-form,
.credit-form {
  width: 100%;
}

.voucher-table article {
  grid-template-columns: minmax(0, 1fr) minmax(110px, auto) minmax(130px, auto);
  align-items: center;
}

.case-skin-matrix {
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
}

.case-skin-entry {
  min-height: 210px;
}

.case-skin-price {
  order: 3;
}

.case-skin-chance {
  order: 4;
  font-size: 11px;
}

.bet-controls button,
.wheel500-chip-row button,
.blackjack-presets button,
.blackjack-actions button {
  background: #1d3844;
  color: #e8f1f5;
  border-color: #2c4855;
}

.live-chat-toggle,
.live-chat-panel,
.live-chat-head,
.live-chat-messages,
.live-chat-message,
.live-chat-form,
.live-chat-login {
  border-color: #1f333d;
}

.live-chat-toggle {
  background: #10232c;
}

.live-chat-panel {
  background: #0a171d;
}

.live-chat-messages {
  background: #08151b;
}

.live-chat-message {
  background: #10232c;
}

.live-chat-form {
  background: #0f2028;
}

.blackjack-shell {
  display: grid;
  gap: 14px;
}

.blackjack-table {
  position: relative;
  display: grid;
  gap: 34px;
  min-height: 560px;
  padding: 28px;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 40%, rgba(255,255,255,0.08), transparent 34%),
    linear-gradient(135deg, #10553d, #17352f 58%, #202126);
  border: 1px solid #2d3038;
  border-radius: 8px;
  color: #ffffff;
}

.blackjack-table::before {
  content: "BLACKJACK";
  position: absolute;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%);
  color: rgba(255,255,255,0.14);
  font-size: clamp(46px, 9vw, 118px);
  font-weight: 900;
  letter-spacing: 0;
  white-space: nowrap;
  z-index: 0;
}

.blackjack-status {
  position: relative;
  z-index: 1;
  justify-self: center;
  min-height: 42px;
  padding: 10px 16px;
  background: rgba(0,0,0,0.28);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 4px;
  font-weight: 800;
}

.blackjack-hand {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 12px;
}

.blackjack-player {
  align-self: end;
}

.blackjack-hand-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 640px;
  width: 100%;
  margin: 0 auto;
}

.blackjack-hand-head h2 {
  margin: 0;
}

.blackjack-hand-head span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  min-height: 34px;
  color: #202126;
  background: #ffffff;
  border-radius: 4px;
  font-weight: 900;
}

.blackjack-cards {
  display: flex;
  justify-content: center;
  align-items: stretch;
  min-height: 148px;
}

.blackjack-cards.is-split {
  display: grid;
  grid-template-columns: repeat(2, minmax(220px, 1fr));
  gap: 12px;
  max-width: 760px;
  margin: 0 auto;
}

.blackjack-hand-stack {
  display: grid;
  gap: 8px;
  min-height: 190px;
  padding: 12px;
  background: rgba(0,0,0,0.18);
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 8px;
}

.blackjack-hand-stack.is-active {
  border-color: #81e37f;
  box-shadow: 0 0 0 1px rgba(129,227,127,0.34), 0 14px 32px rgba(0,0,0,0.24);
}

.blackjack-hand-stack.is-done {
  opacity: 0.82;
}

.blackjack-hand-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-weight: 900;
}

.blackjack-hand-meta span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  min-height: 28px;
  color: #202126;
  background: #ffffff;
  border-radius: 4px;
}

.blackjack-hand-meta small {
  color: rgba(255,255,255,0.72);
}

.blackjack-card-row {
  display: flex;
  justify-content: center;
  min-height: 138px;
}

.blackjack-hand-stack em {
  min-height: 18px;
  color: rgba(255,255,255,0.76);
  font-style: normal;
  font-weight: 800;
  text-align: center;
}

.playing-card {
  display: grid;
  grid-template-rows: 22px 1fr 22px;
  width: 96px;
  height: 136px;
  margin-left: -18px;
  padding: 8px;
  color: #101010;
  background: #ffffff;
  border: 1px solid #d9d9d9;
  border-radius: 8px;
  box-shadow: 0 12px 18px rgba(0,0,0,0.28);
  font-weight: 900;
}

.playing-card.is-dealing {
  opacity: 0;
  transform: translateY(-34px) rotate(-4deg) scale(0.96);
  animation: blackjackDealCard 0.58s cubic-bezier(.18,.78,.2,1) forwards;
  animation-delay: var(--deal-delay, 0ms);
}

.playing-card:first-child {
  margin-left: 0;
}

.playing-card strong {
  place-self: center;
  font-size: 42px;
}

.playing-card span:last-child {
  transform: rotate(180deg);
}

.playing-card.is-red {
  color: #c9282d;
}

.playing-card.is-hidden {
  background:
    repeating-linear-gradient(45deg, rgba(255,255,255,0.12) 0 4px, transparent 4px 8px),
    #b42638;
  border-color: #6f1a24;
}

@keyframes blackjackDealCard {
  0% {
    opacity: 0;
    transform: translateY(-34px) rotate(-4deg) scale(0.96);
  }
  65% {
    opacity: 1;
    transform: translateY(4px) rotate(1deg) scale(1.02);
  }
  100% {
    opacity: 1;
    transform: translateY(0) rotate(0deg) scale(1);
  }
}

.blackjack-actions {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) repeat(5, minmax(92px, 132px));
  gap: 8px;
  padding: 12px;
  background: var(--panel);
  border: 1px solid #263d48;
  border-radius: 4px;
  color: var(--text);
}

.blackjack-presets {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.blackjack-presets button {
  min-height: 34px;
  padding: 0 12px;
  background: #111114;
  color: #ffffff;
  border-color: #30333a;
}

.blackjack-insurance {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) 120px 120px;
  gap: 10px;
  align-items: center;
  padding: 12px;
  background: #fff8dc;
  border: 1px solid #e0c05a;
  border-radius: 4px;
}

.blackjack-insurance[hidden] {
  display: none;
}

.blackjack-actions label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-weight: 700;
}

.blackjack-actions input {
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 4px;
}

.blackjack-actions button {
  align-self: end;
  min-height: 42px;
}

.blackjack-actions button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.wheel500-stage {
  position: relative;
  grid-template-columns: 296px minmax(0, 1fr);
  padding-right: 42px;
  overflow: hidden;
}

.wheel500-table {
  position: relative;
  grid-template-rows: minmax(420px, auto) auto auto;
}

.wheel500-wheel-wrap {
  --wheel-size: clamp(330px, 37vw, 390px);
  min-height: 420px;
  padding: 26px 18px 28px;
  overflow: visible;
}

.wheel500-wheel-frame {
  position: relative;
  width: var(--wheel-size);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
}

.wheel500-history-rail {
  position: absolute;
  top: 86px;
  right: 10px;
  bottom: 110px;
  z-index: 2;
  width: 26px;
  min-height: 0;
  padding: 0;
  background: transparent;
  border-left: 0;
  pointer-events: none;
}

.wheel500-rail-dot {
  width: 18px;
  height: 7px;
  opacity: 0.9;
}

.wheel500-ring {
  width: 100%;
  box-shadow:
    0 0 0 14px #1f3947,
    0 0 0 24px rgba(25, 45, 55, 0.84),
    0 18px 42px rgba(0,0,0,0.34);
}

.wheel500-arrow {
  top: -24px;
  width: 28px;
  height: 42px;
  background: var(--wheel500-arrow-color);
  border: 0;
  clip-path: polygon(50% 100%, 0 0, 100% 0);
  transition: background-color 0.16s ease, filter 0.16s ease;
}

.wheel500-arrow::after {
  display: none;
}

.slot-demo-page {
  display: grid;
  justify-items: center;
  color: #0f172a;
}

.slot-demo-shell {
  display: grid;
  gap: 18px;
  width: min(960px, 100%);
}

.slot-demo-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  color: #e8f1f5;
}

.slot-demo-head > div {
  display: flex;
  align-items: center;
  gap: 12px;
}

.slot-demo-logo {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, #f3c850, #f04d73 58%, #8b5cf6);
  border-radius: 8px;
  box-shadow: 0 12px 24px rgba(0,0,0,0.26);
  font-size: 24px;
}

.slot-demo-head h1,
.slot-demo-head p {
  margin: 0;
}

.slot-demo-head h1 {
  font-size: clamp(20px, 3vw, 28px);
}

.slot-demo-head p {
  color: #9bb7c4;
  font-size: 13px;
}

.slot-demo-head button,
.slot-demo-actions button,
.slot-demo-bet button,
.slot-demo-auto button,
#slot-history-clear,
.slot-paytable-modal button {
  min-height: 36px;
  border-radius: 8px;
}

.slot-demo-head button {
  padding: 0 14px;
  color: #e8f1f5;
  background: #17313c;
  border: 1px solid #2a4652;
  font-weight: 900;
}

.slot-demo-machine {
  position: relative;
  display: grid;
  gap: 12px;
  padding: 14px;
  background: linear-gradient(180deg, #ffffff, #f7fafc);
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 8px;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.05), 0 20px 48px rgba(0,0,0,0.24);
}

.slot-bulb-row {
  position: absolute;
  top: -4px;
  left: 18px;
  right: 18px;
  display: grid;
  grid-auto-flow: column;
  gap: 6px;
}

.slot-bulb-row span {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  animation: slotBulbBlink 0.9s linear infinite;
}

.slot-bulb-row span:nth-child(3n+1) { background: #f59e0b; }
.slot-bulb-row span:nth-child(3n+2) { background: #ef4444; }
.slot-bulb-row span:nth-child(3n) { background: #14b8a6; }

@keyframes slotBulbBlink {
  0%, 100% { filter: brightness(0.8); }
  50% { filter: brightness(1.35); }
}

.slot-demo-marquee {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 14px;
  padding: 10px 12px;
  background: linear-gradient(180deg, #ffffff, #f3f4f6);
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 8px;
}

.slot-demo-marquee h2 {
  margin: 0;
  color: #111827;
  font-size: clamp(18px, 3vw, 26px);
  font-weight: 900;
  text-align: center;
  text-transform: uppercase;
}

.slot-demo-marquee div {
  display: grid;
  gap: 2px;
}

.slot-demo-marquee div:last-child {
  justify-items: end;
}

.slot-demo-marquee small {
  color: #64748b;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.slot-demo-marquee strong {
  color: #10b981;
  font-size: 18px;
  font-weight: 900;
}

#slot-last-win {
  color: #c026d3;
}

.slot-demo-chrome {
  padding: 10px;
  background: linear-gradient(145deg, #e5e7eb, #cbd5e1 50%, #e5e7eb 70%, #94a3b8);
  border-radius: 8px;
  box-shadow: inset 0 1px rgba(255,255,255,0.7), inset 0 -1px rgba(0,0,0,0.12), 0 8px 18px rgba(0,0,0,0.14);
}

.slot-reels-window {
  padding: 10px;
  background: linear-gradient(180deg, #ffffff, #f5f7fb);
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 8px;
}

.slot-reels {
  display: grid;
  grid-template-columns: repeat(3, minmax(90px, 1fr));
  gap: 12px;
}

.slot-reel-cell {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 152px;
  overflow: hidden;
  background: radial-gradient(120% 100% at 50% 30%, #ffffff, #e5e7eb);
  border: 1px solid rgba(0,0,0,0.07);
  border-radius: 8px;
}

.slot-reel-cell::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.06), transparent 40%, transparent 60%, rgba(0,0,0,0.08));
  pointer-events: none;
}

.slot-demo-symbol {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #111827;
  font-size: clamp(58px, 8vw, 82px);
  line-height: 1;
  text-shadow: 0 8px 16px rgba(0,0,0,0.12);
}

.slot-demo-symbol.bar {
  padding: 8px 14px;
  color: #ffffff;
  background: #111827;
  border-radius: 8px;
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 900;
}

.slot-demo-symbol.seven {
  color: #dc2626;
  font-size: clamp(62px, 8vw, 86px);
  font-weight: 900;
  text-shadow: 0 8px 16px rgba(220,38,38,0.28);
}

.slot-demo-symbol.spin-anim {
  animation: slotFlicker 0.22s ease-in-out infinite alternate;
}

.slot-demo-symbol.is-settled {
  animation: slotSettle 0.36s ease;
}

@keyframes slotFlicker {
  from { filter: brightness(0.88); transform: translateY(-3px) scale(0.98); }
  to { filter: brightness(1.22); transform: translateY(3px) scale(1.02); }
}

@keyframes slotSettle {
  0% { transform: translateY(-12px) scale(0.96); opacity: 0.35; }
  70% { transform: translateY(3px) scale(1.04); opacity: 1; }
  100% { transform: translateY(0) scale(1); opacity: 1; }
}

.slot-reel-cell.is-win {
  background: radial-gradient(circle, rgba(24,217,27,0.34), #dfffe6 72%);
  box-shadow: 0 0 0 2px rgba(24,217,27,0.45), 0 0 28px rgba(24,217,27,0.28);
}

.slot-demo-controls {
  display: grid;
  grid-template-columns: minmax(220px, auto) minmax(240px, 1fr) auto;
  gap: 10px;
  align-items: stretch;
  margin-top: 12px;
}

.slot-demo-bet,
.slot-demo-auto {
  display: grid;
  align-items: center;
  gap: 8px;
  padding: 8px;
  background: #ffffff;
  border: 1px solid #d9e0e8;
  border-radius: 8px;
}

.slot-demo-bet {
  grid-template-columns: auto 38px minmax(90px, 1fr) 38px;
}

.slot-demo-bet span,
.slot-demo-auto strong {
  color: #64748b;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.slot-demo-bet input {
  width: 100%;
  min-height: 36px;
  color: #0f172a;
  background: #f8fafc;
  border: 1px solid #d9e0e8;
  border-radius: 8px;
  text-align: center;
  font-weight: 900;
}

.slot-demo-bet button,
.slot-demo-auto button {
  color: #334155;
  background: #f1f5f9;
  border: 1px solid #d9e0e8;
  font-weight: 900;
}

.slot-demo-auto {
  grid-template-columns: minmax(86px, auto) minmax(0, 1fr);
}

.slot-demo-auto > div:first-child {
  display: grid;
  gap: 2px;
}

.slot-demo-auto small {
  color: #64748b;
  font-size: 11px;
}

#slot-auto-counts {
  display: flex;
  gap: 6px;
  overflow-x: auto;
}

#slot-auto-counts button {
  min-width: 40px;
}

.slot-demo-actions {
  display: flex;
  gap: 8px;
}

.slot-demo-actions button {
  padding: 0 18px;
  color: #ffffff;
  border: 0;
  font-weight: 900;
  text-transform: uppercase;
}

#slot-spin {
  background: linear-gradient(180deg, #ef4444, #dc2626);
  box-shadow: 0 10px 18px rgba(239,68,68,0.28);
}

#slot-max-bet {
  background: #f59e0b;
}

.slot-demo-lever {
  position: absolute;
  top: 50%;
  right: -34px;
  width: 38px;
  height: 38px;
  padding: 0;
  background: radial-gradient(circle at 30% 30%, #fecaca, #ef4444 60%, #7f1d1d);
  border: 0;
  border-radius: 50%;
  box-shadow: inset 0 1px rgba(255,255,255,0.8), inset 0 -2px rgba(0,0,0,0.25), 0 10px 18px rgba(239,68,68,0.45);
  transform: translateY(-50%);
}

.slot-demo-lever::before {
  content: "";
  position: absolute;
  left: -11px;
  top: 31px;
  width: 12px;
  height: 118px;
  background: linear-gradient(180deg, #d1d5db, #64748b);
  border-radius: 999px;
  box-shadow: inset 0 1px rgba(255,255,255,0.7), inset 0 -2px rgba(0,0,0,0.25), 0 6px 12px rgba(0,0,0,0.2);
}

.slot-demo-lever.is-pulled {
  transform: translateY(-44%) scale(0.96);
}

.slot-demo-foot {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 0 2px;
  color: #64748b;
  font-size: 13px;
}

.slot-demo-foot p {
  margin: 0;
  font-weight: 800;
}

.slot-demo-history {
  display: grid;
  gap: 10px;
  padding: 14px;
  color: #e8f1f5;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.slot-demo-history > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.slot-demo-history h2 {
  margin: 0;
  font-size: 18px;
}

#slot-history-clear {
  color: #9bb7c4;
  background: #10232c;
  border: 1px solid #2a4652;
}

#slot-history {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

#slot-history li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 10px;
  align-items: center;
  padding: 10px;
  background: #10232c;
  border: 1px solid #263d48;
  border-radius: 8px;
}

#slot-history small {
  color: #9bb7c4;
}

#slot-history strong {
  color: #f04d73;
}

.slot-paytable-modal[hidden],
.slot-toast[hidden] {
  display: none;
}

.slot-paytable-modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 18px;
}

.slot-paytable-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(7,14,20,0.72);
}

.slot-paytable-modal article {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 14px;
  width: min(640px, 100%);
  padding: 18px;
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 24px 70px rgba(0,0,0,0.42);
}

.slot-paytable-modal header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.slot-paytable-modal h2 {
  margin: 0;
}

.slot-paytable-modal button {
  color: #0f172a;
  background: #f1f5f9;
  border: 1px solid #d9e0e8;
  font-weight: 900;
}

.slot-demo-paytable {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.slot-demo-paytable span {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid #d9e0e8;
  border-radius: 8px;
}

.slot-demo-paytable .slot-demo-symbol {
  justify-self: start;
  font-size: 34px;
}

.slot-demo-paytable em {
  color: #475569;
  font-style: normal;
  font-weight: 800;
}

.slot-toast {
  position: fixed;
  left: 50%;
  bottom: 20px;
  z-index: 70;
  padding: 10px 14px;
  color: #ffffff;
  background: rgba(15,23,42,0.95);
  border-radius: 8px;
  box-shadow: 0 8px 18px rgba(0,0,0,0.35);
  transform: translateX(-50%);
}

@media (max-width: 1100px) {
  .admin-user {
    grid-template-columns: 1fr;
  }

  .credit-form,
  .shop-filter {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .create-user-form,
  .voucher-create-form,
  .daily-settings-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .topbar {
    align-items: flex-start;
    flex-wrap: wrap;
    padding: 10px;
    gap: 10px;
  }

body.chat-open {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto minmax(0, 1fr);
  }

  body.chat-open .live-chat {
    grid-column: 1;
    grid-row: 3;
    width: 100%;
    min-height: 360px;
    grid-template-columns: 42px minmax(0, 1fr);
  }

  body.chat-open main {
    grid-column: 1;
    grid-row: 4;
  }

  .topbar-right {
    width: 100%;
    margin-left: 0;
  }

  .topbar .primary-nav,
  .topbar .topbar-utility-nav,
  .admin-panel-link {
    width: 100%;
  }

  .top-pulls-strip,
  .dailyfree-hero,
  .dailyfree-case-card,
  .dailyfree-grid,
  .admin-promo-grid,
  .daily-settings-form,
  .voucher-create-form,
  .voucher-table article,
  .redeem-card form,
  .shop-filter {
    grid-template-columns: 1fr;
  }

  .top-pulls-title {
    border-right: 0;
    border-bottom: 1px solid #2f3036;
  }

  .dailyfree-case-items {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .round-bar {
    align-items: flex-start;
    gap: 10px;
  }

  .round-actions {
    flex-direction: column;
    align-items: flex-end;
  }

  main {
    padding: 10px;
  }

  .bet-controls {
    grid-template-columns: repeat(3, 1fr);
  }

  .bet-controls input {
    grid-column: 1 / -1;
    min-height: 42px;
  }

  .bet-grid {
    grid-template-columns: 1fr;
  }

  .admin-user,
  .create-user-form,
  .daily-settings-form,
  .voucher-create-form,
  .credit-form,
  .original-game,
  .wheel500-panel,
  .battle-builder,
  .casebattle-cases,
  .battle-lobby-row,
  .history-head,
  .history-row {
    grid-template-columns: 1fr;
  }

  .cases-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .battle-lobby-actions {
    justify-content: flex-start;
  }

  .battle-lobby-actions small {
    text-align: left;
  }

  .battle-lobby-cases {
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .history-head {
    display: none;
  }

  .wheel500-controls {
    grid-template-columns: repeat(2, 1fr);
  }

  .wheel500-bet {
    grid-column: 1 / -1;
  }

  .wheel500-stage {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-right: 0;
  }

  .wheel500-side {
    border-right: 0;
    border-bottom: 1px solid #254552;
  }

  .wheel500-choice-grid {
    grid-template-columns: 1fr 1fr;
    padding: 12px;
  }

  .wheel500-history-rail {
    position: static;
    display: flex;
    width: auto;
    min-height: 32px;
    padding: 8px 12px;
    border-left: 0;
    border-top: 1px solid #1d3540;
    pointer-events: auto;
  }

  .wheel500-ring {
    width: min(320px, 78vw);
  }

  .original-game {
    gap: 10px;
    min-height: auto;
    overflow: visible;
  }

  .original-controls {
    padding: 12px;
    border-right: 0;
    border-bottom: 1px solid #254552;
  }

  .plinko-board,
  .slot-cabinet,
  .crash-stage,
  .dice-stage {
    min-height: 420px;
    padding: 12px;
  }

  .slot-grid {
    grid-template-columns: repeat(3, minmax(72px, 1fr));
    gap: 8px;
    margin-top: 14px;
  }

  .slot-cabinet {
    padding: 12px;
  }

  .slot-window {
    padding: 12px;
    border-width: 5px;
  }

  .slot-marquee {
    grid-template-columns: 1fr;
    gap: 4px;
    padding: 10px;
    border-width: 5px;
  }

  .slot-marquee strong {
    font-size: 20px;
  }

  .slot-lever {
    display: none;
  }

  .slot-cell {
    min-height: 78px;
    font-size: 18px;
  }

  .slot-demo-head,
  .slot-demo-foot,
  .slot-demo-history > div {
    align-items: flex-start;
    flex-direction: column;
  }

  .slot-demo-machine {
    padding: 12px;
  }

  .slot-demo-marquee,
  .slot-demo-controls,
  .slot-demo-auto,
  .slot-demo-bet {
    grid-template-columns: 1fr;
  }

  .slot-demo-marquee div,
  .slot-demo-marquee div:last-child {
    justify-items: center;
  }

  .slot-demo-marquee {
    text-align: center;
  }

  .slot-reels {
    gap: 8px;
  }

  .slot-reel-cell {
    min-height: 112px;
  }

  .slot-demo-symbol {
    font-size: 46px;
  }

  .slot-demo-symbol.seven {
    font-size: 54px;
  }

  .slot-demo-lever {
    display: none;
  }

  .slot-demo-paytable,
  #slot-history li {
    grid-template-columns: 1fr;
  }

  .plinko-last-wins {
    top: auto;
    right: 12px;
    bottom: 52px;
    grid-auto-flow: column;
    transform: none;
  }

  .plinko-pegs {
    top: 48px;
    bottom: 64px;
  }

  .plinko-bins {
    bottom: 16px;
  }

  .plinko-last-wins span {
    min-width: 46px;
    padding: 6px 8px;
  }

  .crash-stage canvas {
    height: 330px;
  }

  .crash-multiplier {
    font-size: 38px;
  }

  .crash-live-bets {
    position: static;
    width: auto;
    max-height: 180px;
    margin-top: 10px;
  }

  .crash-info-grid {
    grid-template-columns: 1fr;
  }

  .crash-player-row,
  .crash-user-row {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .dice-number {
    font-size: 48px;
  }

  .dice-metrics {
    flex-direction: column;
    align-items: center;
    gap: 8px;
  }

  .dice-bottom-metrics {
    grid-template-columns: 1fr;
  }

  .dice-history-panel {
    width: calc(100vw - 20px);
    margin-top: 10px;
    padding: 12px;
  }

  .dice-history-panel header {
    align-items: flex-start;
    flex-direction: column;
  }

  .battle-room.players-3 .battle-room-grid,
  .battle-room.players-4 .battle-room-grid {
    grid-template-columns: 1fr;
  }

  .battle-room.is-team-battle .battle-room-grid {
    row-gap: 10px;
  }

  .battle-room.is-team-battle .battle-room-grid::before,
  .battle-room.is-team-battle .battle-room-grid::after {
    display: none;
  }

  .battle-room.is-team-battle .battle-player-lane:nth-child(2),
  .battle-room.is-team-battle .battle-wait-slot:nth-child(2),
  .battle-room.is-team-battle .battle-player-lane:nth-child(3),
  .battle-room.is-team-battle .battle-wait-slot:nth-child(3) {
    margin: 0;
  }

  .battle-video-head,
  .battle-video-meta {
    grid-template-columns: 1fr;
  }

  .blackjack-actions {
    grid-template-columns: 1fr 1fr;
  }

  .blackjack-cards.is-split {
    grid-template-columns: 1fr;
  }

  .blackjack-actions label {
    grid-column: 1 / -1;
  }

  .playing-card {
    width: 76px;
    height: 108px;
  }

}

.slot-paytable-modal.urso-paytable-modal article {
  width: min(1180px, calc(100vw - 28px));
  max-height: min(880px, calc(100vh - 28px));
  overflow: auto;
  color: #eaf6fb;
  background: #081c24;
  border: 1px solid rgba(103,151,168,0.34);
}

.slot-paytable-modal.urso-paytable-modal button {
  color: #eaf6fb;
  background: #17313c;
}

.slot-demo-head-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.slot-demo-head-actions a,
.slot-demo-head-actions button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid rgba(112,154,170,0.34);
  border-radius: 8px;
  color: #e8f1f5;
  background: #17313c;
  font-weight: 900;
  text-decoration: none;
}

.topbar-right a.username {
  color: #e8f1f5;
  font-weight: 900;
  text-decoration: none;
}

.topbar-right a.username:hover {
  color: #e7cc79;
}

.profile-page,
.leaderboard-page {
  display: grid;
  gap: 16px;
}

.reward-grid,
.leaderboard-columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.reward-card,
.reward-panel,
.leaderboard-card,
.leaderboard-bonus-strip article {
  border: 1px solid rgba(103,151,168,0.24);
  border-radius: 8px;
  background: linear-gradient(180deg, #142d38, #0b2028);
  box-shadow: 0 12px 28px rgba(0,0,0,0.16);
}

.reward-card {
  display: grid;
  gap: 8px;
  padding: 16px;
}

.reward-card span,
.reward-panel .eyebrow,
.leaderboard-card header span,
.leaderboard-bonus-strip span {
  color: #9fbcc7;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.reward-card strong,
.reward-action strong,
.leaderboard-card header strong,
.leaderboard-bonus-strip strong {
  color: #e7cc79;
  font-size: clamp(20px, 3vw, 30px);
}

.reward-card small,
.reward-card em,
.reward-panel p,
.reward-action small,
.reward-action p,
.leaderboard-bonus-strip small {
  color: #a9c3cd;
  font-style: normal;
}

.reward-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
  gap: 16px;
  align-items: center;
  padding: 18px;
}

.reward-panel h2,
.leaderboard-card h2 {
  margin: 4px 0 0;
}

.reward-action {
  display: grid;
  gap: 8px;
}

.reward-action button,
.reward-bonus-card button,
.leaderboard-bonus-strip button,
.leaderboard-profile-link {
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid rgba(89,215,76,0.46);
  border-radius: 8px;
  color: #07171d;
  background: #59d74c;
  font-weight: 950;
  text-decoration: none;
}

.reward-action button:disabled,
.reward-bonus-card button:disabled,
.leaderboard-bonus-strip button:disabled {
  color: #8aa2ac;
  background: #142934;
  border-color: rgba(112,154,170,0.24);
}

.reward-bonus-card {
  grid-template-rows: auto auto auto minmax(38px, auto) auto;
}

.leaderboard-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.leaderboard-bonus-strip {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.leaderboard-bonus-strip article {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 10px;
  align-items: center;
  padding: 14px;
}

.leaderboard-bonus-strip article > span,
.leaderboard-bonus-strip article > small {
  grid-column: 1;
}

.leaderboard-card {
  overflow: hidden;
}

.leaderboard-card header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  padding: 14px;
  border-bottom: 1px solid rgba(103,151,168,0.2);
}

.leaderboard-card header strong {
  font-size: 14px;
  white-space: nowrap;
}

.leaderboard-table {
  display: grid;
}

.leaderboard-row {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  min-height: 48px;
  padding: 0 14px;
  border-bottom: 1px solid rgba(103,151,168,0.12);
}

.leaderboard-row b {
  color: #59d74c;
}

.leaderboard-row span {
  font-weight: 900;
}

.leaderboard-row strong {
  color: #e7cc79;
}

.leaderboard-row.is-me {
  background: rgba(89,215,76,0.08);
}

@media (max-width: 980px) {
  .reward-grid,
  .leaderboard-columns {
    grid-template-columns: 1fr;
  }

  .reward-panel,
  .leaderboard-bonus-strip,
  .leaderboard-bonus-strip article {
    grid-template-columns: 1fr;
  }

  .leaderboard-hero {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* Final mobile topbar pass */
.topbar-menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 4px;
  flex-direction: column;
  min-width: 46px;
  min-height: 42px;
  padding: 6px 8px;
  border: 1px solid rgba(143,166,178,0.18);
  border-radius: 8px;
  color: #dce8ee;
  background: rgba(10,23,30,0.84);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
}

.topbar-menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
}

.topbar-menu-toggle small {
  font-size: 9px;
  font-weight: 900;
  text-transform: uppercase;
}

.topbar-drawer {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1 1 auto;
  min-width: 0;
}

.topbar-drawer .primary-nav {
  flex: 1 1 auto;
}

@media (max-width: 820px) {
  .topbar {
    position: sticky;
    align-items: center;
    flex-wrap: nowrap;
    min-height: 54px;
    padding: 8px 10px;
    gap: 8px;
  }

  .topbar .brand {
    flex: 1 1 auto;
    min-width: 0;
    font-size: 15px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .topbar-menu-toggle {
    display: inline-flex;
    flex: 0 0 auto;
  }

  .topbar-drawer {
    display: none;
    position: absolute;
    left: 8px;
    right: 8px;
    top: calc(100% + 6px);
    z-index: 35;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 10px;
    border: 1px solid rgba(92,116,128,0.38);
    border-radius: 10px;
    background: rgba(8,18,24,0.97);
    box-shadow: 0 18px 30px rgba(0,0,0,0.34);
  }

  .topbar.is-open .topbar-drawer {
    display: flex;
  }

  .topbar nav,
  .topbar .primary-nav,
  .topbar .topbar-utility-nav,
  .topbar-right,
  .admin-panel-link {
    width: 100%;
    min-width: 0;
  }

  .topbar nav {
    flex-wrap: wrap;
  }

  .topbar-right {
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
  }

  .topbar .admin-panel-link {
    margin-left: 0;
    justify-content: center;
  }
}
