:root {
  color-scheme: dark;
  --bg: #09070f;
  --panel: #15111e;
  --panel-2: #20192b;
  --panel-3: #2a2038;
  --line: #3d3150;
  --text: #f7f3fb;
  --muted: #a99eb6;
  --blue: #d3a82f;
  --blue-2: #ab8220;
  --green: #5fd19a;
  --red: #ef5a78;
  --gold: #e3b83c;
  --purple: #7b4bad;
  --sidebar: 248px;
  --sidebar-collapsed: 68px;
  --chat: 310px;
  --header: 68px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-width: 320px;
  min-height: 100%;
  margin: 0;
  background: var(--bg);
  color: var(--text);
}

body {
  overflow-x: hidden;
}

body::before {
  position: fixed;
  z-index: -1;
  inset: 0;
  background: #09070f url("/assets/cubicbets-fantasy-hero.png") center / cover no-repeat;
  opacity: 0.1;
  content: "";
}

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

button {
  color: inherit;
}

button:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 2px solid #61baff;
  outline-offset: 2px;
}

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

.app-shell {
  min-height: 100vh;
}

.topbar {
  position: fixed;
  z-index: 30;
  top: 0;
  right: 0;
  left: 0;
  height: var(--header);
  display: grid;
  grid-template-columns: var(--sidebar) 1fr var(--chat);
  border-bottom: 1px solid var(--line);
  background: rgba(9, 7, 15, 0.98);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.24);
}

.app-shell.sidebar-collapsed .topbar {
  grid-template-columns: var(--sidebar-collapsed) 1fr var(--chat);
}

.topbar-left,
.topbar-center,
.topbar-right {
  display: flex;
  align-items: center;
}

.topbar-left {
  gap: 14px;
  padding: 0 18px;
  border-right: 1px solid var(--line);
}

.app-shell.sidebar-collapsed .topbar-left {
  justify-content: center;
  padding: 0;
}

.app-shell.sidebar-collapsed .topbar-left .logo {
  display: none;
}

.topbar-center {
  justify-content: space-between;
  gap: 16px;
  padding: 0 26px;
}

.topbar-right {
  justify-content: space-between;
  padding: 0 15px;
  border-left: 1px solid var(--line);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 0;
  background: transparent;
  cursor: pointer;
  font-size: 23px;
  font-weight: 850;
  letter-spacing: 0;
}

.brand-logo-mark {
  display: block;
  flex: 0 0 auto;
  border-radius: 50%;
  object-fit: contain;
  filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.34));
}

.logo strong {
  color: var(--gold);
}

.desktop-compact-logo {
  display: inline-flex;
}

.icon-button {
  width: 40px;
  height: 40px;
  display: inline-grid;
  flex: 0 0 auto;
  place-items: center;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  cursor: pointer;
}

.icon-button:hover {
  border-color: var(--line);
  background: var(--panel-2);
}

.balance-control {
  display: flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--panel);
  overflow: hidden;
}

.balance-value {
  max-width: min(310px, 36vw);
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 140px;
  padding: 10px 14px;
  border: 0;
  background: transparent;
  cursor: pointer;
  font-weight: 750;
}

.balance-value span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.currency-icon {
  display: inline-block;
  object-fit: contain;
  image-rendering: auto;
  pointer-events: none;
  user-select: none;
  vertical-align: middle;
}

.wallet-button {
  width: 48px;
  height: 43px;
  display: grid;
  place-items: center;
  border: 0;
  background: #6b3b91;
  cursor: pointer;
}

.online {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #c9d2e2;
  font-size: 13px;
}

.online::before {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #2be276;
  content: "";
}

.auth-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.auth-actions .button {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 13px;
  white-space: nowrap;
}

.profile-button {
  width: 42px;
  height: 42px;
  display: grid;
  align-items: center;
  justify-items: center;
  gap: 0;
  padding: 3px;
  border: 0;
  border-radius: 6px;
  background: #1d2939;
  cursor: pointer;
}

.profile-button > strong {
  display: none;
}

.profile-button .avatar {
  width: 36px;
  height: 36px;
  border-width: 2px;
}

.profile-button.active,
.profile-button:hover {
  background: #26364b;
}

.profile-menu-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.profile-dropdown {
  position: absolute;
  z-index: 60;
  top: calc(100% + 10px);
  right: 0;
  width: 220px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #111720;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.45);
}

.profile-card-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 11px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.profile-card-head div {
  min-width: 0;
}

.profile-card-head strong,
.profile-card-head small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-card-head small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}

.profile-rank-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 12px;
  color: #dbe4ef;
  font-size: 12px;
}

.profile-rank-row span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-progress {
  height: 6px;
  margin: 7px 0 10px;
  border-radius: 999px;
  background: #263244;
  overflow: hidden;
}

.profile-progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #d3a82f, #7dd6ff);
}

.profile-dropdown button {
  width: 100%;
  min-height: 36px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: #d7e0ed;
  cursor: pointer;
  text-align: left;
}

.profile-dropdown button:hover {
  background: #202b3a;
  color: #fff;
}

.topbar-user-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.reward-menu-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.reward-toggle {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 6px;
  background: #1d2939;
  color: #dbe6f5;
  cursor: pointer;
}

.reward-toggle.active,
.reward-toggle:hover {
  background: #26364b;
  color: #fff;
}

.rewards-dropdown {
  position: absolute;
  z-index: 70;
  top: calc(100% + 10px);
  right: -166px;
  width: min(392px, calc(100vw - 24px));
  display: grid;
  gap: 9px;
  padding: 10px;
  border: 1px solid #27364b;
  border-radius: 7px;
  background: #121a27;
  box-shadow: 0 22px 56px rgba(0, 0, 0, 0.52);
}

.reward-menu-row {
  min-height: 64px;
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) 90px;
  align-items: center;
  gap: 11px;
  padding: 10px;
  border-radius: 6px;
  background: #1b2a3f;
}

.reward-menu-row strong,
.reward-menu-row span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.reward-menu-row span {
  margin-top: 3px;
  color: #bed0e3;
}

.reward-menu-row .button {
  min-height: 37px;
  justify-content: center;
  padding: 0 12px;
}

.rewards-dropdown .button.primary {
  border-color: #1d8cff;
  background: #147be8;
  color: #fff;
}

.rewards-dropdown .button.primary:hover {
  background: #2092ff;
}

.reward-menu-row .button:disabled {
  border-color: transparent;
  background: #142135;
  color: #b9c5d3;
  opacity: 1;
}

.reward-menu-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  background: #142236;
  color: #8ec5ff;
}

.reward-menu-row.gold .reward-menu-icon {
  color: #f6d665;
}

.reward-menu-row.daily .reward-menu-icon {
  color: #70b7ff;
}

.reward-menu-row.weekly .reward-menu-icon {
  color: #42e477;
}

.reward-menu-row.monthly .reward-menu-icon {
  color: #ff5d8d;
}

.reward-explore-button {
  min-height: 42px;
  justify-content: center;
}

.profile-dropdown {
  width: 210px;
  padding: 6px;
  border-color: #26354b;
  border-radius: 7px;
  background: #121a27;
}

.profile-card-head {
  align-items: center;
  gap: 10px;
  min-height: 88px;
  padding: 10px;
  border: 1px solid #2b3a50;
  border-radius: 6px;
  background:
    radial-gradient(circle at 18% -10%, rgba(243, 55, 102, 0.24), transparent 34%),
    radial-gradient(circle at 100% 0%, rgba(125, 76, 214, 0.18), transparent 36%),
    #1a2740;
}

.profile-avatar {
  width: 48px;
  height: 48px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.12), transparent),
    #2f2144;
}

.profile-card-head strong {
  color: #fff;
  font-size: 15px;
}

.profile-card-head small {
  color: #c7d5ea;
  font-weight: 700;
}

.profile-rank-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 8px 4px 5px;
  font-size: 12px;
  color: #c9d6e8;
}

.profile-rank-pair span {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 5px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-rank-pair i {
  width: 10px;
  height: 10px;
  flex: 0 0 auto;
  border-radius: 3px;
  box-shadow: 0 0 10px currentColor;
}

.profile-dropdown .profile-progress {
  margin: 6px 4px 6px;
  background: #243149;
}

.profile-dropdown .profile-rank-row {
  margin: 0 4px 8px;
  color: #bfcde1;
}

.profile-menu-list {
  display: grid;
  overflow: hidden;
  border-radius: 6px;
}

.profile-menu-list + .profile-menu-list {
  margin-top: 8px;
}

.profile-dropdown .profile-menu-list button,
.profile-logout {
  min-height: 46px;
  display: grid;
  grid-template-columns: 20px 1fr 16px;
  gap: 10px;
  align-items: center;
  padding: 0 12px;
  border-radius: 0;
  background: #162235;
  color: #cfd9e7;
  font-weight: 700;
}

.profile-dropdown .profile-menu-list button + button {
  border-top: 1px solid rgba(255, 255, 255, 0.055);
}

.profile-dropdown .profile-menu-list button:hover {
  background: #1c2b42;
}

.profile-logout {
  width: 100%;
  margin-top: 8px;
  border: 1px solid rgba(255, 49, 104, 0.54);
  border-radius: 6px;
  background: rgba(95, 16, 46, 0.78);
  color: #ff4e83;
}

.profile-logout:hover {
  background: rgba(136, 25, 64, 0.92);
  color: #ff6e9c;
}

.qbee-avatar {
  --qbee-main: #fff;
  --qbee-shadow: #dfe8f4;
  position: relative;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  overflow: hidden;
  border: 1px solid #2d3d56;
  border-radius: 7px;
  background:
    radial-gradient(circle at 50% 22%, rgba(255, 255, 255, 0.18), transparent 22%),
    linear-gradient(145deg, #18243a, #0c111c);
}

.qbee-avatar.topbar {
  width: 36px;
  height: 36px;
}

.qbee-avatar.profile {
  width: 48px;
  height: 48px;
}

.qbee-avatar.account {
  width: 174px;
  height: 174px;
  border-color: #3b4c68;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.34);
}

.qbee-avatar.builder {
  width: 168px;
  height: 168px;
  margin: 0 auto;
  border-color: #405775;
}

.qbee-avatar.bg-realm {
  background: linear-gradient(180deg, #75b965 0 44%, #4c853d 44% 100%);
}

.qbee-avatar.bg-casino {
  background: radial-gradient(circle at 50% 30%, rgba(255, 223, 86, 0.38), transparent 36%), linear-gradient(145deg, #3d2812, #0f0a11);
}

.qbee-avatar.bg-crystal {
  background: radial-gradient(circle at 30% 28%, rgba(118, 236, 255, 0.45), transparent 28%), linear-gradient(145deg, #11293d, #07121c);
}

.qbee-avatar.bg-lava {
  background: radial-gradient(circle at 54% 76%, rgba(255, 91, 36, 0.5), transparent 28%), linear-gradient(145deg, #35111b, #0c0710);
}

.qbee-avatar.bg-celestial {
  background: radial-gradient(circle at 30% 22%, rgba(255, 255, 255, 0.75), transparent 12%), linear-gradient(145deg, #1f1c5d, #070817);
}

.qbee-body {
  position: relative;
  z-index: 3;
  width: 48%;
  height: 44%;
  border-radius: 14% 14% 20% 20%;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), transparent 18%),
    linear-gradient(145deg, var(--qbee-main), var(--qbee-shadow));
  box-shadow:
    inset -8px -8px 0 rgba(0, 0, 0, 0.11),
    0 10px 18px rgba(0, 0, 0, 0.28);
}

.qbee-ear,
.qbee-arm,
.qbee-leg {
  position: absolute;
  background: linear-gradient(145deg, var(--qbee-main), var(--qbee-shadow));
  box-shadow: inset -4px -5px 0 rgba(0, 0, 0, 0.1);
  content: "";
}

.qbee-ear {
  top: -20%;
  width: 28%;
  height: 24%;
  border-radius: 18%;
}

.qbee-ear.left {
  left: 10%;
}

.qbee-ear.right {
  right: 10%;
}

.qbee-arm {
  top: 44%;
  width: 18%;
  height: 38%;
  border-radius: 999px;
}

.qbee-arm.left {
  left: -18%;
  transform: rotate(8deg);
}

.qbee-arm.right {
  right: -18%;
  transform: rotate(-8deg);
}

.qbee-leg {
  bottom: -22%;
  width: 22%;
  height: 28%;
  border-radius: 0 0 999px 999px;
}

.qbee-leg.left {
  left: 20%;
}

.qbee-leg.right {
  right: 20%;
}

.qbee-eye {
  position: absolute;
  top: 33%;
  width: 10%;
  height: 15%;
  border-radius: 999px;
  background: #11151f;
}

.qbee-eye.left {
  left: 30%;
}

.qbee-eye.right {
  right: 30%;
}

.qbee-mouth {
  position: absolute;
  left: 50%;
  bottom: 22%;
  width: 24%;
  height: 12%;
  border-bottom: 3px solid #11151f;
  border-radius: 0 0 999px 999px;
  transform: translateX(-50%);
}

.qbee-mouth.cool,
.qbee-mouth.smirk {
  width: 20%;
  border-bottom-width: 2px;
  transform: translateX(-50%) rotate(-8deg);
}

.qbee-mouth.royal {
  width: 30%;
  height: 14%;
  border: 0;
  border-radius: 999px;
  background: #11151f;
}

.qbee-shades {
  position: absolute;
  z-index: 2;
  top: 29%;
  left: 24%;
  width: 52%;
  height: 16%;
  border-radius: 4px;
  background: #101725;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.2);
}

.qbee-money-eye,
.qbee-laser {
  position: absolute;
  z-index: 4;
  top: 28%;
  color: #26d878;
  font-size: 0.3em;
  font-weight: 900;
}

.qbee-money-eye.left,
.qbee-laser.left {
  left: 27%;
}

.qbee-money-eye.right,
.qbee-laser.right {
  right: 27%;
}

.qbee-laser {
  width: 16%;
  height: 4px;
  border-radius: 999px;
  background: #ff3168;
  color: transparent;
  box-shadow: 0 0 12px #ff3168;
}

.qbee-item {
  position: absolute;
  z-index: 6;
  object-fit: contain;
  pointer-events: none;
  filter: drop-shadow(0 6px 8px rgba(0, 0, 0, 0.35));
}

.qbee-item.back {
  z-index: 1;
  width: 66%;
  height: 54%;
  top: 18%;
  left: 17%;
  opacity: 0.9;
}

.qbee-item.hat {
  width: 48%;
  height: 38%;
  top: 4%;
  left: 26%;
}

.qbee-item.face {
  width: 34%;
  height: 22%;
  top: 37%;
  left: 33%;
}

.qbee-item.neck {
  width: 40%;
  height: 24%;
  top: 55%;
  left: 30%;
}

.qbee-item.shirt {
  z-index: 5;
  width: 42%;
  height: 30%;
  top: 56%;
  left: 29%;
}

.qbee-item.pants {
  z-index: 5;
  width: 42%;
  height: 24%;
  top: 69%;
  left: 29%;
}

.qbee-item.hand {
  width: 38%;
  height: 38%;
  right: 6%;
  bottom: 14%;
  transform: rotate(-18deg);
}

.account-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.account-profile-card {
  position: sticky;
  top: calc(var(--header) + 18px);
  display: grid;
  justify-items: center;
  gap: 12px;
  padding: 16px;
  border: 1px solid #2c3d56;
  border-radius: 7px;
  background:
    radial-gradient(circle at 20% 0%, rgba(255, 64, 114, 0.18), transparent 34%),
    linear-gradient(180deg, #172235, #101724);
}

.account-avatar-edit {
  justify-self: stretch;
  justify-content: center;
}

.account-profile-card > strong {
  max-width: 100%;
  overflow: hidden;
  color: #fff;
  font-size: 18px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-profile-card > span {
  color: #b9c7d9;
  font-size: 13px;
}

.account-main {
  min-width: 0;
  display: grid;
  gap: 14px;
}

.account-stats {
  margin: 0;
}

.account-tabs {
  width: min(480px, 100%);
}

.account-tab-panel {
  min-height: 330px;
}

.account-currency {
  width: min(360px, 100%);
  margin-top: 12px;
}

.account-currency button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
}

.account-switch-row input {
  width: 19px;
  height: 19px;
  accent-color: #1d8cff;
}

.chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  padding: 6px 10px;
  border: 1px solid #334761;
  border-radius: 999px;
  background: #172235;
  color: #d9e5f4;
  font-size: 13px;
  font-weight: 750;
}

.empty-state.compact {
  min-height: auto;
  padding: 14px;
}

.avatar-builder-modal {
  width: min(850px, calc(100vw - 26px));
}

.avatar-builder-body {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 22px;
}

.avatar-builder-preview {
  display: grid;
  align-content: start;
  gap: 12px;
  text-align: center;
}

.avatar-builder-preview .button {
  justify-content: center;
}

.avatar-accordion {
  max-height: min(560px, calc(100vh - 210px));
  overflow: auto;
  border: 1px solid #26364d;
  border-radius: 7px;
  background: #0d1420;
}

.avatar-category + .avatar-category {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.avatar-category-head {
  width: 100%;
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 15px;
  border: 0;
  background: #101827;
  color: #dce7f5;
  cursor: pointer;
  font-weight: 800;
  text-align: left;
}

.avatar-category.open .avatar-category-head,
.avatar-category-head:hover {
  background: #152238;
}

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

.avatar-option {
  min-height: 132px;
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 6px;
  padding: 10px 8px;
  border: 1px solid #2b3c55;
  border-radius: 7px;
  background: #121c2b;
  color: #dce7f6;
  cursor: pointer;
}

.avatar-option:hover {
  border-color: #4f6f9c;
  background: #18263a;
}

.avatar-option.selected {
  border-color: #d3a82f;
  box-shadow: inset 0 0 0 1px rgba(211, 168, 47, 0.4);
}

.avatar-option.locked {
  cursor: not-allowed;
  opacity: 0.48;
}

.avatar-option-art {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
}

.avatar-option-art img {
  max-width: 64px;
  max-height: 64px;
  object-fit: contain;
  filter: drop-shadow(0 5px 8px rgba(0, 0, 0, 0.32));
}

.avatar-option strong,
.avatar-option small {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.avatar-option strong {
  font-size: 12px;
}

.avatar-option small {
  color: #aebbd0;
  font-size: 11px;
}

.avatar-none-preview,
.avatar-expression-preview,
.avatar-swatch,
.avatar-bg-preview {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border: 1px solid #344963;
  border-radius: 8px;
  background: #182438;
  color: #d7e5f6;
  font-weight: 900;
}

.avatar-swatch {
  background: linear-gradient(145deg, var(--swatch-a), var(--swatch-b));
}

.avatar-bg-preview.bg-realm {
  background: linear-gradient(180deg, #75b965 0 44%, #4c853d 44% 100%);
}

.avatar-bg-preview.bg-casino {
  background: radial-gradient(circle, #f6d665, transparent 42%), #392414;
}

.avatar-bg-preview.bg-crystal {
  background: radial-gradient(circle, #8af0ff, transparent 42%), #10283c;
}

.avatar-bg-preview.bg-lava {
  background: radial-gradient(circle, #ff6b36, transparent 42%), #36111a;
}

.avatar-bg-preview.bg-celestial {
  background: radial-gradient(circle, #fff, transparent 20%), #17145a;
}

.rain-boost-button {
  width: 32px;
  height: 32px;
  border-color: #485a76;
  background: #33445e;
}

.rain-boost-button:hover {
  background: #405674;
}

.auth-modal {
  width: min(460px, 100%);
  position: relative;
  border-color: rgba(212, 168, 48, 0.42);
  background: #131019;
  overflow: hidden;
}

.auth-close {
  position: absolute;
  z-index: 2;
  top: 12px;
  right: 12px;
}

.auth-brand-panel {
  height: 124px;
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 0%, rgba(214, 168, 50, 0.2), transparent 52%),
    linear-gradient(180deg, #221631 0%, #14101d 100%);
}

.auth-brand-panel::before {
  position: absolute;
  inset: auto 0 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 218, 111, 0.55), transparent);
  content: "";
}

.auth-cube-stack {
  position: relative;
  width: 104px;
  height: 78px;
}

.auth-cube-stack span {
  position: absolute;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255, 229, 149, 0.45);
  border-radius: 7px;
  background: linear-gradient(145deg, #fff7ba, #d7a82f 62%, #8a5d13);
  box-shadow: 0 12px 32px rgba(213, 166, 44, 0.22);
  transform: rotate(45deg) skew(-8deg, -8deg);
}

.auth-cube-stack span:nth-child(1) {
  left: 27px;
  top: 0;
}

.auth-cube-stack span:nth-child(2) {
  left: 2px;
  top: 30px;
  opacity: 0.82;
}

.auth-cube-stack span:nth-child(3) {
  right: 2px;
  top: 30px;
  opacity: 0.9;
}

.auth-lock {
  position: absolute;
  right: calc(50% - 68px);
  bottom: 23px;
  padding: 5px;
  border: 1px solid rgba(255, 233, 159, 0.35);
  border-radius: 999px;
  background: #1b1524;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25);
}

.auth-body {
  padding-top: 18px;
}

.auth-logo-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  margin-bottom: 14px;
  color: #fff;
  font-weight: 850;
  font-size: 20px;
}

.auth-tabs {
  margin-bottom: 13px;
}

.auth-subtitle {
  margin: 0 0 16px;
  color: var(--muted);
  text-align: center;
}

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

.required-star {
  color: #ff4d78;
  font-weight: 900;
}

.optional-label {
  margin-left: 5px;
  color: #8f9bad;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.password-rules {
  display: grid;
  gap: 7px;
  margin-top: -2px;
  color: #909bad;
  font-size: 12px;
}

.password-rules span {
  display: flex;
  align-items: center;
  gap: 7px;
}

.password-rules span.passed {
  color: #59e58d;
}

.password-rules span.passed i {
  color: #59e58d;
  fill: currentColor;
}

.auth-referrer-field {
  margin-top: 2px;
}

.auth-check-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: #c7d0de;
  font-size: 13px;
  line-height: 1.45;
}

.auth-check-row input {
  margin-top: 3px;
}

.auth-check-row button,
.auth-link {
  padding: 0;
  border: 0;
  background: transparent;
  color: #f2c84e;
  cursor: pointer;
}

.auth-link {
  justify-self: start;
  margin-top: -2px;
}

.auth-gate {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.auth-gate > div:nth-child(2) {
  flex: 1;
}

.auth-gate h2 {
  margin: 0 0 4px;
}

.auth-gate p {
  margin: 0;
}

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

.promo-panel {
  display: grid;
  align-content: start;
  gap: 12px;
}

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

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

.promo-form label {
  color: #d6dfec;
  font-size: 13px;
  font-weight: 800;
}

.promo-form input {
  width: 100%;
  height: 42px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #111926;
  color: #fff;
  font-weight: 800;
}

.promo-amount-field {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 52px 52px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #111926;
}

.promo-amount-field input {
  border: 0;
  border-radius: 0;
  background: transparent;
}

.promo-amount-field button {
  border: 0;
  border-left: 1px solid var(--line);
  background: #192536;
  color: #ecf4ff;
  cursor: pointer;
  font-weight: 900;
}

.promo-amount-field button:hover {
  background: #233149;
}

.promo-cost-row {
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #151f2f;
  color: #c8d3e4;
}

.promo-cost-row strong {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #fff;
}

.promo-manage-list {
  display: grid;
  gap: 9px;
}

.promo-manage-row {
  display: grid;
  grid-template-columns: minmax(150px, 1.1fr) repeat(3, minmax(0, 0.72fr)) auto;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid #2b3950;
  border-radius: 6px;
  background: #131d2c;
}

.promo-manage-row.deleted {
  opacity: 0.62;
}

.promo-manage-row strong,
.promo-manage-row span {
  display: block;
}

.promo-code-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid rgba(212, 168, 48, 0.44);
  border-radius: 5px;
  background: #211936;
  color: #ffe28b;
  font-weight: 950;
  letter-spacing: 0;
}

.button.small {
  min-height: 34px;
  padding: 6px 11px;
  font-size: 13px;
}

.button:disabled {
  opacity: 0.48;
  cursor: not-allowed;
}

.avatar {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 2px solid #d6a832;
  border-radius: 7px;
  background: #2e2139;
  color: #ffe595;
  font-weight: 850;
}

.sidebar {
  position: fixed;
  z-index: 20;
  top: var(--header);
  bottom: 0;
  left: 0;
  width: var(--sidebar);
  display: flex;
  flex-direction: column;
  padding: 16px;
  border-right: 1px solid var(--line);
  background: #100c17;
  overflow-y: auto;
  transition: width 180ms ease, padding 180ms ease, left 160ms ease;
}

.app-shell.sidebar-collapsed .sidebar {
  width: var(--sidebar-collapsed);
  padding: 16px 8px;
}

.search-box {
  position: relative;
  margin-bottom: 14px;
}

.app-shell.sidebar-collapsed .search-box {
  height: 43px;
  display: grid;
  place-items: center;
  border-radius: 5px;
  background: var(--panel-2);
}

.search-box svg {
  position: absolute;
  top: 13px;
  left: 12px;
  width: 17px;
  color: var(--muted);
}

.app-shell.sidebar-collapsed .search-box svg {
  position: static;
}

.search-box input {
  width: 100%;
  height: 43px;
  padding: 0 12px 0 38px;
  border: 1px solid transparent;
  border-radius: 5px;
  background: var(--panel-2);
  color: var(--text);
}

.app-shell.sidebar-collapsed .search-box input {
  display: none;
}

.nav-stack {
  display: grid;
  flex: 0 0 auto;
  gap: 5px;
}

.nav-button {
  width: 100%;
  min-height: 42px;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px 12px;
  border: 1px solid transparent;
  border-radius: 5px;
  background: transparent;
  color: #c5cede;
  cursor: pointer;
  text-align: left;
}

.app-shell.sidebar-collapsed .nav-button {
  justify-content: center;
  gap: 0;
  padding: 10px 0;
}

.nav-button svg {
  width: 18px;
  height: 18px;
}

.nav-button:hover,
.nav-button.active {
  border-color: #684a86;
  background: #271a34;
  color: #fff;
}

.nav-button.reward {
  border-color: #8057a6;
  background: #2b1a3d;
}

.nav-label {
  flex: 1;
}

.app-shell.sidebar-collapsed .nav-label,
.app-shell.sidebar-collapsed .nav-button[data-action="toggle-originals"] svg:last-child {
  display: none;
}

.subnav {
  max-height: 0;
  margin-left: 10px;
  overflow: hidden;
  transition: max-height 180ms ease;
}

.app-shell.sidebar-collapsed .subnav {
  margin-left: 0;
}

.subnav.open {
  max-height: 880px;
}

.subnav .nav-button {
  min-height: 35px;
  padding: 7px 10px;
  font-size: 13px;
}

.discord-callout {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: auto;
  padding: 12px;
  border: 1px solid #6d4a94;
  border-radius: 6px;
  background: linear-gradient(180deg, #312349, #211932);
  color: #fff;
  cursor: pointer;
}

.discord-logo {
  display: block;
  flex: 0 0 auto;
  color: #aeb7ff;
}

.app-shell.sidebar-collapsed .discord-callout {
  justify-content: center;
  padding: 12px 0;
}

.app-shell.sidebar-collapsed .discord-callout span {
  display: none;
}

.chat-panel {
  position: fixed;
  z-index: 20;
  top: var(--header);
  right: 0;
  bottom: 0;
  width: var(--chat);
  display: flex;
  flex-direction: column;
  border-left: 1px solid var(--line);
  background: #100c17;
  transition: transform 180ms ease, right 160ms ease;
  will-change: transform;
}

.app-shell.chat-collapsed .chat-panel {
  transform: translateX(100%);
}

.app-shell.chat-collapsed .page {
  margin-right: 0;
}

.chat-pull-tab {
  position: fixed;
  z-index: 45;
  top: calc(var(--header) + 92px);
  right: 0;
  min-width: 40px;
  min-height: 104px;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 8px;
  border: 1px solid rgba(214, 168, 50, 0.45);
  border-right: 0;
  border-radius: 7px 0 0 7px;
  background: #19121f;
  color: #f3d26a;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.36);
  cursor: grab;
  touch-action: none;
}

.chat-pull-tab span {
  writing-mode: vertical-rl;
  text-transform: uppercase;
  letter-spacing: 0;
  font-size: 11px;
  font-weight: 850;
}

.chat-pull-tab:active {
  cursor: grabbing;
}

.app-shell.chat-collapsed .chat-pull-tab {
  display: flex;
}

.rain-card {
  margin: 12px;
  padding: 13px;
  border: 1px solid #8a6a25;
  border-radius: 6px;
  background: #241d13;
}

.rain-title,
.rain-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.rain-amount {
  margin: 7px 0 3px;
  font-size: 21px;
  font-weight: 800;
}

.chat-list {
  flex: 1;
  padding: 2px 12px 16px;
  overflow-y: auto;
}

.chat-message {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 9px;
  margin: 12px 0;
}

.chat-avatar {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 2px solid #8c61b2;
  border-radius: 6px;
  background: #2a2038;
  font-size: 12px;
  font-weight: 850;
}

.chat-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
  color: #dde4ef;
  font-size: 12px;
}

.rank-dot {
  width: 7px;
  height: 14px;
  border-radius: 2px;
}

.chat-bubble {
  display: inline-block;
  max-width: 100%;
  padding: 7px 9px;
  border-radius: 5px;
  background: var(--panel-2);
  color: #dfe6f2;
  font-size: 13px;
  overflow-wrap: anywhere;
}

.chat-compose {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  padding: 12px;
  border-top: 1px solid var(--line);
}

.chat-compose input {
  min-width: 0;
  height: 40px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--panel-2);
  color: white;
}

.page {
  min-height: 100vh;
  margin-left: var(--sidebar);
  margin-right: var(--chat);
  padding: calc(var(--header) + 22px) 28px 50px;
}

.app-shell.sidebar-collapsed .page {
  margin-left: var(--sidebar-collapsed);
}

.page-inner {
  width: min(100%, 1240px);
  margin: 0 auto;
}

.page-title-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.page-title {
  margin: 0;
  font-size: 28px;
  letter-spacing: 0;
}

.page-subtitle {
  margin: 6px 0 0;
  color: var(--muted);
}

.hero {
  position: relative;
  min-height: 350px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  margin-bottom: 20px;
  padding: 48px;
  border: 1px solid #5a3e6f;
  border-radius: 7px;
  background: #0e0a14 url("/assets/cubicbets-fantasy-hero.png") center / cover no-repeat;
  overflow: hidden;
}

.hero::before {
  position: absolute;
  inset: 0;
  background: rgba(7, 5, 11, 0.24);
  content: "";
}

.hero > div:first-child {
  position: relative;
  z-index: 1;
  width: 54%;
  min-width: 500px;
  padding: 22px;
  text-shadow: 0 2px 12px #000;
}

.hero h1 {
  max-width: 700px;
  margin: 0 0 10px;
  font-size: 42px;
  line-height: 1.05;
  letter-spacing: 0;
}

.hero h1 strong {
  color: #f1c84f;
}

.hero p {
  max-width: 620px;
  color: #d1c7d9;
  font-size: 16px;
}

.hero-art {
  display: none;
}

.hero-cube {
  position: absolute;
  top: 20px;
  right: 70px;
  width: 120px;
  height: 120px;
  display: grid;
  place-items: center;
  border: 3px solid #4186b7;
  border-radius: 12px;
  background: #173b57;
  color: #81d2ff;
  font-size: 56px;
  font-weight: 900;
  transform: rotate(8deg);
}

.hero-flag {
  position: absolute;
  right: 0;
  bottom: 22px;
  width: 210px;
  height: 68px;
  border: 5px solid #657386;
  background:
    linear-gradient(45deg, #273444 25%, transparent 25%) 0 0 / 28px 28px,
    linear-gradient(45deg, transparent 75%, #273444 75%) 0 0 / 28px 28px,
    linear-gradient(45deg, transparent 75%, #273444 75%) 14px -14px / 28px 28px,
    linear-gradient(45deg, #273444 25%, #aab1bb 25%) 14px 14px / 28px 28px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.button {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 15px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--panel-2);
  color: #fff;
  cursor: pointer;
  font-weight: 700;
}

.button:hover:not(:disabled) {
  border-color: #48627f;
  background: var(--panel-3);
}

.button.primary {
  border-color: #d8ad32;
  background: #9a7020;
  color: #fff9e8;
}

.button.primary:hover:not(:disabled) {
  background: #b98c28;
}

.button.success {
  border-color: #2cae72;
  background: #21885a;
}

.button.danger {
  border-color: rgba(255, 82, 104, 0.58);
  background: linear-gradient(180deg, #8f1730, #5f1023);
  color: #fff1f4;
}

.button.danger:hover:not(:disabled) {
  background: linear-gradient(180deg, #b51d3a, #741329);
}

.button.gold {
  border-color: #b48e26;
  background: #6b561d;
}

.button:disabled {
  opacity: 0.48;
  cursor: not-allowed;
}

.button.block {
  width: 100%;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 22px;
}

.feature-card {
  position: relative;
  min-height: 145px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(21, 17, 30, 0.94);
  overflow: hidden;
}

.feature-card::after {
  position: absolute;
  top: -20px;
  right: -20px;
  width: 115px;
  height: 115px;
  border: 18px solid currentColor;
  opacity: 0.09;
  transform: rotate(24deg);
  content: "";
}

.feature-card h3 {
  margin: 0 0 4px;
  font-size: 17px;
}

.feature-card p {
  margin: 0 0 13px;
  color: var(--muted);
  font-size: 13px;
}

.section {
  margin-top: 24px;
}

.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
}

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

.game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(126px, 1fr));
  gap: 10px;
}

.game-tile {
  position: relative;
  min-height: 172px;
  aspect-ratio: 0.75;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding: 10px 8px 12px;
  border: 2px solid color-mix(in srgb, var(--tile-color) 72%, #263245);
  border-radius: 6px;
  background: #0c1420;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04), 0 12px 28px rgba(0, 0, 0, 0.24);
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  transition: transform 140ms ease, filter 140ms ease, border-color 140ms ease;
}

.game-tile::before {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, transparent 40%, rgba(4, 8, 15, 0.36) 68%, rgba(4, 8, 15, 0.8)),
    radial-gradient(circle at 50% 26%, color-mix(in srgb, var(--tile-color) 36%, transparent), transparent 58%);
  content: "";
  pointer-events: none;
}

.game-tile:hover {
  transform: translateY(-2px);
  filter: brightness(1.08);
}

.tile-art {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background:
    radial-gradient(circle at 52% 28%, color-mix(in srgb, var(--art-a, var(--tile-color)) 34%, transparent), transparent 48%),
    linear-gradient(145deg, var(--art-a, #17344f), var(--art-b, #101827) 58%, #07101b);
}

.tile-art::before {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 18px 18px;
  opacity: 0.26;
  content: "";
}

.tile-vignette {
  position: absolute;
  inset: 0;
  z-index: 8;
  background:
    linear-gradient(180deg, transparent 30%, rgba(0, 0, 0, 0.5) 82%),
    radial-gradient(ellipse at 50% 20%, transparent 42%, rgba(0, 0, 0, 0.35));
  pointer-events: none;
}

.tile-light {
  position: absolute;
  top: -34px;
  left: 50%;
  width: 130px;
  height: 92px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--art-glow, var(--tile-color)) 46%, transparent);
  filter: blur(16px);
  transform: translateX(-50%);
  opacity: 0.82;
}

.tile-theme-gold { --art-a: #56420c; --art-b: #171208; --art-glow: #f4cf42; }
.tile-theme-red { --art-a: #5e1520; --art-b: #180b10; --art-glow: #ff4e5e; }
.tile-theme-teal { --art-a: #0b4a56; --art-b: #0b2028; --art-glow: #31d7de; }
.tile-theme-green { --art-a: #0f5b28; --art-b: #0b1e15; --art-glow: #36df69; }
.tile-theme-cyan { --art-a: #0c4a67; --art-b: #0a1722; --art-glow: #3fd8ff; }
.tile-theme-indigo { --art-a: #1731a0; --art-b: #0b132a; --art-glow: #5576ff; }
.tile-theme-blue { --art-a: #0d5e78; --art-b: #0a1822; --art-glow: #47d1ff; }
.tile-theme-violet { --art-a: #172c87; --art-b: #0c1230; --art-glow: #6d83ff; }
.tile-theme-aqua { --art-a: #0b4b53; --art-b: #071d23; --art-glow: #22e5df; }
.tile-theme-steel { --art-a: #17314a; --art-b: #0b1420; --art-glow: #82a6bd; }
.tile-theme-space { --art-a: #2a2146; --art-b: #070916; --art-glow: #f35d72; }
.tile-theme-emerald { --art-a: #0b4e17; --art-b: #071908; --art-glow: #62db69; }
.tile-theme-coin { --art-a: #6a420a; --art-b: #1d1207; --art-glow: #ffc94a; }
.tile-theme-grid { --art-a: #1b5227; --art-b: #0a1e12; --art-glow: #52d567; }
.tile-theme-dice { --art-a: #1d2f82; --art-b: #0a1027; --art-glow: #6e7fff; }
.tile-theme-pink { --art-a: #64133e; --art-b: #1b0918; --art-glow: #ff4e96; }
.tile-theme-jungle { --art-a: #15451e; --art-b: #07170c; --art-glow: #58b86b; }
.tile-theme-slice { --art-a: #77221f; --art-b: #200b0d; --art-glow: #ff4f45; }
.tile-theme-road { --art-a: #107756; --art-b: #0a2319; --art-glow: #36dfa6; }

.tile-badge {
  position: absolute;
  z-index: 12;
  top: 0;
  left: 0;
  min-width: 44px;
  padding: 6px 8px;
  border-radius: 0 0 6px 0;
  background: #ffe252;
  color: #06080c;
  font-size: 11px;
  font-weight: 950;
  line-height: 1;
}

.tile-item,
.tile-cubit,
.tile-qbee {
  position: absolute;
  z-index: 5;
  object-fit: contain;
  image-rendering: pixelated;
  filter: drop-shadow(0 10px 8px rgba(0, 0, 0, 0.48));
}

.tile-item.primary {
  top: 28px;
  left: 50%;
  width: 66px;
  height: 66px;
  transform: translateX(-50%);
}

.tile-item.secondary {
  top: 44px;
  right: 13px;
  width: 52px;
  height: 52px;
  transform: rotate(12deg);
}

.tile-cubit {
  width: 30px;
  height: 30px;
}

.tile-cubit.coin-a {
  right: 22px;
  bottom: 55px;
  transform: rotate(12deg);
}

.tile-cubit.coin-b {
  left: 20px;
  bottom: 60px;
  transform: rotate(-18deg) scale(0.82);
  opacity: 0.9;
}

.tile-playing-card {
  position: absolute;
  z-index: 4;
  width: 48px;
  height: 66px;
  display: grid;
  align-content: start;
  padding: 6px;
  border-radius: 6px;
  background: #eef7fb;
  color: #101827;
  box-shadow: 0 12px 14px rgba(0, 0, 0, 0.36);
}

.tile-playing-card b {
  font-size: 15px;
  line-height: 1;
}

.tile-playing-card small {
  color: #ce2848;
  font-size: 16px;
  line-height: 1;
}

.tile-playing-card.card-a {
  top: 24px;
  left: 38px;
  transform: rotate(-13deg);
}

.tile-playing-card.card-b {
  top: 29px;
  right: 32px;
  transform: rotate(10deg);
}

.tile-die {
  position: absolute;
  z-index: 5;
  width: 44px;
  height: 44px;
  border-radius: 7px;
  background: #eaf1f8;
  box-shadow: inset -7px -8px 0 rgba(85, 105, 130, 0.18), 0 12px 16px rgba(0, 0, 0, 0.34);
  transform: rotate(-12deg);
}

.tile-die i {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #546377;
}

.tile-die i:nth-child(1) { top: 9px; left: 9px; }
.tile-die i:nth-child(2) { top: 9px; right: 9px; }
.tile-die i:nth-child(3) { top: 19px; left: 19px; }
.tile-die i:nth-child(4) { right: 9px; bottom: 9px; }
.tile-die i:nth-child(5) { bottom: 9px; left: 9px; }

.tile-die.die-a {
  top: 36px;
  left: 36px;
}

.tile-die.die-b {
  top: 52px;
  right: 31px;
  transform: rotate(14deg) scale(0.92);
}

.tile-slide-reel {
  position: absolute;
  top: 22px;
  left: 19px;
  right: 19px;
  z-index: 3;
  height: 72px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 5px;
  padding: 6px;
  border: 2px solid rgba(255, 227, 80, 0.62);
  border-radius: 8px;
  background: rgba(10, 12, 18, 0.35);
  transform: rotate(-8deg);
}

.tile-slide-reel i {
  border-radius: 5px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.28), transparent 28%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(0, 0, 0, 0.28));
}

.tile-roulette-wheel,
.tile-wheel {
  position: absolute;
  z-index: 4;
  top: 28px;
  left: 50%;
  width: 82px;
  height: 82px;
  border: 8px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  background:
    radial-gradient(circle, #182232 0 20%, transparent 21%),
    conic-gradient(#e94b64 0 18deg, #1d2534 18deg 36deg, #e94b64 36deg 54deg, #1d2534 54deg 72deg, #e94b64 72deg 90deg, #1d2534 90deg 108deg, #e94b64 108deg 126deg, #1d2534 126deg 144deg, #e94b64 144deg 162deg, #1d2534 162deg 180deg, #e94b64 180deg 198deg, #1d2534 198deg 216deg, #e94b64 216deg 234deg, #1d2534 234deg 252deg, #e94b64 252deg 270deg, #1d2534 270deg 288deg, #e94b64 288deg 306deg, #1d2534 306deg 324deg, #e94b64 324deg 342deg, #1d2534 342deg 360deg);
  box-shadow: 0 14px 18px rgba(0, 0, 0, 0.42);
  transform: translateX(-50%);
}

.tile-wheel {
  background:
    radial-gradient(circle, #26324a 0 28%, transparent 29%),
    conic-gradient(#5e7bff 0 36deg, #25345f 36deg 72deg, #8bd3ff 72deg 108deg, #25345f 108deg 144deg, #f0d454 144deg 180deg, #25345f 180deg 216deg, #5e7bff 216deg 252deg, #25345f 252deg 288deg, #8bd3ff 288deg 324deg, #25345f 324deg 360deg);
}

.tile-theme-teal .tile-item.primary,
.tile-theme-green .tile-item.primary,
.tile-theme-cyan .tile-item.primary {
  top: 70px;
  width: 44px;
  height: 44px;
  opacity: 0.9;
}

.tile-case-stack .case-chest,
.tile-art > .case-chest {
  position: absolute;
  z-index: 4;
  top: 39px;
  left: 50%;
  width: 116px;
  height: 94px;
  margin: 0;
  transform: translateX(-50%);
}

.tile-case-stack .case-chest:first-child {
  left: 39%;
  top: 45px;
  transform: translateX(-50%) rotate(-10deg) scale(0.86);
}

.tile-case-stack .case-chest:last-child {
  left: 62%;
  top: 35px;
  transform: translateX(-50%) rotate(9deg) scale(0.92);
}

.tile-art .case-chest .chest-lid-open {
  transform: translateY(-21px) rotate(-4deg) scale(1.04);
}

.tile-mine-grid,
.tile-keno-grid,
.tile-plinko-board {
  position: absolute;
  z-index: 3;
  display: grid;
  gap: 4px;
}

.tile-mine-grid {
  top: 28px;
  left: 20px;
  width: 90px;
  grid-template-columns: repeat(3, 1fr);
  transform: rotate(-5deg);
}

.tile-mine-grid i,
.tile-keno-grid i {
  min-height: 25px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 5px;
  background: rgba(8, 24, 29, 0.7);
}

.tile-tower-stack {
  position: absolute;
  z-index: 3;
  top: 37px;
  left: 50%;
  width: 82px;
  display: grid;
  gap: 5px;
  transform: translateX(-50%);
}

.tile-tower-stack i {
  height: 18px;
  border: 1px solid rgba(118, 171, 210, 0.45);
  border-radius: 5px;
  background: rgba(23, 48, 72, 0.78);
}

.tile-qbee {
  top: 35px;
  left: 50%;
  width: 58px;
  height: 58px;
  transform: translateX(-50%);
}

.tile-crash-line {
  position: absolute;
  z-index: 3;
  right: 12px;
  bottom: 58px;
  left: 18px;
  height: 54px;
  border-left: 3px solid rgba(246, 93, 113, 0.8);
  border-bottom: 3px solid rgba(246, 93, 113, 0.8);
  border-radius: 0 0 0 14px;
  transform: skewY(-23deg);
}

.game-tile-crash .tile-qbee {
  top: 42px;
  left: 49%;
  transform: translateX(-50%) rotate(-13deg);
}

.tile-limbo-number {
  position: absolute;
  z-index: 4;
  top: 42px;
  left: 50%;
  color: #dbff6b;
  font-size: 30px;
  font-weight: 950;
  text-shadow: 0 6px 18px rgba(0, 0, 0, 0.55);
  transform: translateX(-50%) rotate(-5deg);
}

.tile-coin {
  position: absolute;
  z-index: 4;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 201, 74, 0.14);
  box-shadow: 0 14px 18px rgba(0, 0, 0, 0.36);
}

.tile-coin.big {
  top: 32px;
  left: 43px;
  width: 66px;
  height: 66px;
}

.tile-coin.small {
  top: 69px;
  right: 29px;
  width: 42px;
  height: 42px;
}

.tile-keno-grid {
  top: 27px;
  left: 16px;
  right: 16px;
  grid-template-columns: repeat(4, 1fr);
  transform: rotate(-7deg);
}

.tile-keno-grid i {
  display: grid;
  place-items: center;
}

.tile-keno-grid .tile-cubit {
  position: static;
  width: 18px;
  height: 18px;
}

.tile-plinko-board {
  top: 21px;
  left: 28px;
  right: 28px;
  grid-template-columns: repeat(6, 1fr);
}

.tile-plinko-board i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.78);
}

.tile-snake-path {
  position: absolute;
  z-index: 3;
  top: 24px;
  left: 17px;
  width: 104px;
  height: 84px;
  border: 8px solid rgba(71, 184, 95, 0.55);
  border-right-color: transparent;
  border-bottom-color: rgba(71, 184, 95, 0.26);
  border-radius: 48% 62% 50% 40%;
  transform: rotate(-18deg);
}

.tile-blade {
  position: absolute;
  z-index: 6;
  top: 34px;
  left: 44px;
  width: 78px;
  height: 13px;
  border-radius: 999px 3px 3px 999px;
  background: linear-gradient(90deg, #fff6bd, #d6e6ff 62%, #7a879a);
  box-shadow: 0 12px 18px rgba(0, 0, 0, 0.34);
  transform: rotate(-36deg);
}

.tile-slice-pop {
  position: absolute;
  z-index: 5;
  top: 49px;
  right: 16px;
  color: #56ff82;
  font-size: 16px;
  font-weight: 950;
  transform: rotate(7deg);
}

.tile-road-lanes {
  position: absolute;
  inset: 22px 10px 56px;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
  transform: skewX(-12deg);
}

.tile-road-lanes i {
  border-radius: 5px;
  background: rgba(202, 239, 220, 0.2);
}

.game-tile-cross-road .tile-qbee {
  top: 48px;
  width: 54px;
  height: 54px;
}

.game-tile-slide .tile-item.primary { top: 31px; width: 54px; height: 54px; }
.game-tile-slide .tile-item.secondary { top: 45px; right: 17px; width: 42px; height: 42px; }
.game-tile-roulette .tile-item.primary { top: 65px; left: 74%; width: 48px; height: 48px; opacity: 0.92; }
.game-tile-case-battles .tile-item.primary { top: 28px; left: 28px; width: 47px; height: 47px; transform: rotate(-16deg); }
.game-tile-case-battles .tile-item.secondary { top: 27px; right: 17px; width: 48px; height: 48px; }
.game-tile-cases .tile-item.primary { top: 24px; left: 34px; width: 48px; height: 48px; transform: rotate(-13deg); }
.game-tile-cases .tile-item.secondary { top: 30px; right: 23px; width: 48px; height: 48px; }
.game-tile-mines .tile-item.primary { top: 73px; left: 74%; width: 44px; height: 44px; opacity: 0.86; }
.game-tile-tower .tile-item.primary { top: 24px; left: 50%; width: 42px; height: 42px; }
.game-tile-crash .tile-item.primary { top: 74px; left: 72%; width: 45px; height: 45px; }
.game-tile-limbo .tile-item.primary { top: 80px; left: 72%; width: 44px; height: 44px; }
.game-tile-coinflip .tile-item.primary { top: 77px; left: 70%; width: 44px; height: 44px; }
.game-tile-keno .tile-item.primary { top: 70px; left: 72%; width: 40px; height: 40px; }
.game-tile-dice .tile-item.primary { top: 73px; left: 68%; width: 46px; height: 46px; transform: rotate(24deg); }
.game-tile-plinko .tile-item.primary { top: 68px; left: 70%; width: 48px; height: 48px; }
.game-tile-snakes .tile-item.primary { top: 38px; left: 54%; width: 65px; height: 65px; }
.game-tile-slice .tile-item.primary { top: 63px; left: 29%; width: 45px; height: 45px; transform: rotate(-18deg); }
.game-tile-cross-road .tile-item.primary { top: 32px; left: 74%; width: 38px; height: 38px; }

.game-tile > .game-title {
  position: relative;
  z-index: 10;
  max-width: 100%;
  color: #f8fbff;
  font-size: 22px;
  font-weight: 950;
  line-height: 0.92;
  text-align: center;
  text-shadow: 0 3px 8px rgba(0, 0, 0, 0.62);
  text-transform: uppercase;
}

.game-tile-case-battles > .game-title,
.game-tile-cross-road > .game-title {
  font-size: 19px;
}

.game-tile-blackjack > .game-title,
.game-tile-baccarat > .game-title {
  font-size: 19px;
}

.game-tile-coinflip > .game-title {
  font-size: 21px;
}

.game-tile > small {
  position: relative;
  z-index: 10;
  margin-top: 3px;
  color: #e7eef9;
  font-size: 9px;
  font-weight: 850;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

.panel {
  border: 1px solid #463655;
  border-radius: 6px;
  background: var(--panel);
}

.panel-body {
  padding: 18px;
}

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

.lobby-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 14px;
}

.lobby-filter {
  min-height: 34px;
  padding: 7px 11px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #171120;
  color: #d6ddec;
  cursor: pointer;
  font-weight: 750;
}

.lobby-filter.active {
  border-color: #d8ad32;
  background: #342812;
  color: #ffe59b;
}

.compact-tabs {
  min-width: min(470px, 100%);
  margin: 0;
}

.legal-page p {
  margin-top: 0;
  color: #d8d1df;
  line-height: 1.6;
}

.site-footer {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 26px;
  margin-top: 34px;
  padding: 22px 0 0;
  border-top: 1px solid var(--line);
  color: #b8afc4;
}

.site-footer h3 {
  margin: 0 0 10px;
  color: #f6f0fb;
  font-size: 14px;
}

.site-footer button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 5px 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #b8afc4;
  cursor: pointer;
  text-align: left;
}

.site-footer button:hover {
  color: #f4d36e;
}

.site-footer p {
  grid-column: 1 / -1;
  margin: 4px 0 0;
  font-size: 12px;
}

.stat {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--panel);
}

.stat-label {
  color: var(--muted);
  font-size: 12px;
}

.stat-value {
  margin-top: 6px;
  font-size: 22px;
  font-weight: 850;
}

.table-wrap {
  overflow-x: auto;
}

.affiliate-hero {
  display: grid;
  grid-template-columns: 1.15fr 1.35fr 1fr 0.72fr;
  gap: 10px;
  align-items: stretch;
  background:
    linear-gradient(135deg, rgba(44, 33, 62, 0.94), rgba(16, 22, 35, 0.98)),
    var(--panel);
}

.affiliate-code-card,
.affiliate-claim-card,
.affiliate-mini-stat {
  min-height: 118px;
  display: grid;
  align-content: center;
  gap: 8px;
  padding: 18px;
  border: 1px solid #35465f;
  border-radius: 6px;
  background: #121b2a;
}

.affiliate-code-card span,
.affiliate-claim-card span,
.affiliate-mini-stat span,
.affiliate-link-panel label {
  color: #c8b4e3;
  font-size: 12px;
  font-weight: 750;
}

.affiliate-code-card strong,
.affiliate-claim-card strong,
.affiliate-mini-stat strong {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #fff;
  font-size: 24px;
}

.affiliate-code-card strong {
  overflow-wrap: anywhere;
}

.affiliate-claim-card {
  grid-template-columns: minmax(0, 1fr) auto;
}

.affiliate-claim-card span,
.affiliate-claim-card strong {
  grid-column: 1;
}

.affiliate-claim-card .button {
  grid-column: 2;
  grid-row: 1 / 3;
  align-self: center;
  min-width: 96px;
}

.affiliate-link-panel,
.affiliate-join-panel,
.affiliate-table-panel,
.affiliate-info {
  background: #120d19;
}

.affiliate-link-panel {
  display: grid;
  gap: 10px;
}

.affiliate-link-panel .amount-input {
  grid-template-columns: minmax(0, 1fr) auto auto;
  margin: 0;
}

.affiliate-link-panel .amount-input input {
  color: #f5ecff;
}

.affiliate-join-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.affiliate-join-panel h2,
.affiliate-table-panel h2,
.affiliate-info h2 {
  margin: 0 0 5px;
  font-size: 18px;
}

.affiliate-join-panel p,
.affiliate-info p {
  margin: 0;
}

.affiliate-code-pill {
  min-width: 150px;
  padding: 14px 16px;
  border: 1px solid #8d6b23;
  border-radius: 6px;
  background: #261d0d;
  color: #ffe28a;
  font-size: 20px;
  font-weight: 850;
  text-align: center;
}

.affiliate-join-form {
  width: min(430px, 100%);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.affiliate-join-form input {
  min-width: 0;
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--panel-2);
  color: #fff;
  font-weight: 750;
}

.affiliate-table-wrap td:first-child {
  white-space: normal;
}

.affiliate-table-wrap td small {
  display: block;
  margin-top: 3px;
  font-size: 11px;
}

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

.affiliate-steps .stat {
  min-height: 150px;
  background:
    radial-gradient(circle at 18% 0%, rgba(211, 168, 47, 0.16), transparent 38%),
    #121b2a;
}

.affiliate-steps .stat strong {
  display: block;
  margin: 8px 0 7px;
}

.affiliate-info {
  display: grid;
  gap: 8px;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: 13px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  white-space: nowrap;
}

th {
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
}

td {
  font-size: 13px;
}

.positive {
  color: var(--green);
}

.negative {
  color: var(--red);
}

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

.progress {
  height: 8px;
  border-radius: 4px;
  background: #26344a;
  overflow: hidden;
}

.progress > div {
  height: 100%;
  border-radius: inherit;
  background: var(--gold);
}

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

.case-source-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 16px;
}

.case-source-tabs button {
  min-height: 82px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #172235;
  color: #dce8f6;
  cursor: pointer;
  text-align: left;
}

.case-source-tabs button.active {
  border-color: #1788ff;
  background: #0f3158;
}

.case-source-tabs svg {
  flex: 0 0 auto;
}

.case-source-tabs strong,
.case-source-tabs small {
  display: block;
}

.case-source-tabs small {
  margin-top: 4px;
  color: var(--muted);
}

.case-community-tabs {
  justify-content: flex-start;
  margin-bottom: 14px;
}

.case-community-tabs .primary {
  margin-left: auto;
  background: #1788ff;
  color: white;
}

.case-filter-bar {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) repeat(3, minmax(150px, 200px));
  gap: 10px;
  align-items: end;
  margin-bottom: 16px;
}

.case-search-field {
  min-height: 48px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 0 10px 0 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #172235;
}

.case-search-field input {
  height: 42px;
  border: 0;
  background: transparent;
  color: var(--text);
  outline: 0;
}

.case-lobby-grid {
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 16px;
}

.lobby-case-card {
  position: relative;
  min-height: 247px;
  justify-content: flex-start;
  padding: 13px 12px 27px;
  border-color: #263650;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.018), transparent 42%),
    #0e1824;
  cursor: pointer;
  transition:
    border-color 150ms ease,
    transform 150ms ease,
    box-shadow 150ms ease;
}

.lobby-case-card:hover,
.lobby-case-card:focus-visible {
  border-color: color-mix(in srgb, var(--case-accent) 55%, #426084);
  box-shadow:
    0 14px 28px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transform: translateY(-2px);
  outline: 0;
}

.lobby-case-card h3 {
  width: 100%;
  min-height: 35px;
  display: grid;
  place-items: center;
  margin: 2px 0 21px;
  font-size: 14px;
  line-height: 1.2;
  color: #eff6ff;
}

.lobby-case-card > strong {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  color: #dff4ff;
  font-size: 14px;
  line-height: 1;
}

.lobby-case-card > small {
  min-height: 32px;
  margin: 8px 0 10px;
  font-size: 11px;
}

.case-zoom-button {
  position: absolute;
  top: 11px;
  right: 10px;
  z-index: 4;
  width: 25px;
  height: 25px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #d7e7f7;
  cursor: pointer;
}

.case-zoom-button:hover {
  color: #ffffff;
}

.case-lobby-art {
  height: 132px;
  margin: 19px 0 5px;
  transform: none;
}

.case-empty-state {
  grid-column: 1 / -1;
}

.case-earnings-panel {
  margin-top: 12px;
}

.case-creator-list {
  display: grid;
  gap: 8px;
}

.case-creator-list div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #121c2e;
}

.case-creator-list span {
  color: var(--muted);
}

.case-builder-modal {
  width: min(980px, calc(100vw - 24px));
}

.case-builder-top {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 16px;
  align-items: stretch;
}

.case-builder-preview {
  display: grid;
  place-items: center;
  gap: 6px;
  padding: 18px;
  border: 1px solid color-mix(in srgb, var(--case-accent) 42%, var(--line));
  border-radius: 7px;
  background:
    radial-gradient(circle at 50% 20%, color-mix(in srgb, var(--case-accent) 28%, transparent), transparent 68%),
    #111a2b;
  text-align: center;
  overflow: hidden;
}

.case-builder-art {
  position: relative;
  width: 100%;
  height: 172px;
  display: grid;
  place-items: end center;
  margin: 0;
}

.case-builder-art .case-chest {
  margin-bottom: 4px;
  transform: translateY(4px) scale(1.04);
}

.case-builder-art .case-fan-item {
  width: 58px;
}

.case-builder-art .case-fan-item img {
  width: 54px;
  height: 54px;
}

.case-builder-art .case-fan-item.item-0 {
  top: 16px;
  left: calc(50% - 29px);
  transform: rotate(-2deg) scale(1.08);
}

.case-builder-art .case-fan-item.item-1 {
  top: 45px;
  left: calc(50% - 88px);
  transform: rotate(-18deg) scale(0.9);
}

.case-builder-art .case-fan-item.item-2 {
  top: 45px;
  right: calc(50% - 88px);
  transform: rotate(18deg) scale(0.9);
}

.case-builder-art .case-fan-item.item-3 {
  top: 66px;
  left: calc(50% - 56px);
  transform: rotate(-8deg) scale(0.78);
}

.case-builder-art .case-fan-item.item-4 {
  top: 66px;
  right: calc(50% - 56px);
  transform: rotate(8deg) scale(0.78);
}

.case-builder-heading {
  margin: 18px 0 10px;
}

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

.case-builder-rows {
  display: grid;
  gap: 8px;
}

.case-builder-row {
  display: grid;
  grid-template-columns: 48px minmax(180px, 1fr) 96px 18px 92px 36px;
  gap: 8px;
  align-items: center;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #121c2e;
}

.case-builder-row img {
  width: 42px;
  height: 42px;
  object-fit: contain;
  image-rendering: pixelated;
}

.case-builder-row select,
.case-builder-row input {
  height: 40px;
}

.case-builder-row > span,
.case-builder-row > strong {
  color: #dce8f6;
  font-size: 13px;
}

.case-builder-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
}

.case-card {
  min-height: 292px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding: 18px 16px;
  border: 1px solid color-mix(in srgb, var(--case-accent) 35%, var(--line));
  border-radius: 6px;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--case-accent) 10%, transparent), transparent 38%),
    #17111f;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  text-align: center;
  overflow: hidden;
}

.case-chest {
  position: relative;
  width: 190px;
  height: 154px;
  margin-bottom: 0;
  background: transparent;
  filter:
    saturate(1.22)
    contrast(1.04)
    drop-shadow(0 20px 16px rgba(0, 0, 0, 0.55))
    drop-shadow(0 0 14px color-mix(in srgb, var(--case-accent) 24%, transparent));
}

.case-chest::before,
.case-chest::after {
  display: none;
}

.case-chest span,
.case-chest i {
  position: absolute;
  display: block;
  box-sizing: border-box;
}

.case-shadow {
  right: 7%;
  bottom: 4px;
  left: 7%;
  height: 23px;
  border-radius: 999px;
  background: radial-gradient(ellipse, rgba(0, 0, 0, 0.58), transparent 72%);
}

.case-lid {
  z-index: 2;
  top: 6px;
  left: 17px;
  width: 140px;
  height: 64px;
  perspective: 220px;
  transform: rotate(-2deg);
  transform-origin: 50% 100%;
  filter: drop-shadow(0 9px 0 rgba(0, 0, 0, 0.22));
}

.case-lid-panel {
  inset: 0;
  clip-path: polygon(8% 28%, 48% 0, 92% 28%, 100% 78%, 84% 100%, 16% 100%, 0 78%);
  border: 5px solid color-mix(in srgb, var(--case-accent) 36%, #071019);
  border-radius: 14px 14px 10px 10px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.34) 0 11%, transparent 12% 100%),
    linear-gradient(180deg, color-mix(in srgb, var(--case-accent) 88%, #fff47a), color-mix(in srgb, var(--case-accent) 66%, #19341d) 58%, color-mix(in srgb, var(--case-accent) 44%, #07131b));
  box-shadow:
    inset 0 9px 0 rgba(255, 255, 255, 0.18),
    inset 0 -14px 0 rgba(0, 0, 0, 0.26);
  transform: rotateX(30deg);
  transform-origin: 50% 100%;
}

.case-lid-band {
  z-index: 2;
  top: 14px;
  width: 20px;
  height: 45px;
  border: 3px solid color-mix(in srgb, var(--case-accent) 35%, #061019);
  border-radius: 4px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.18), transparent 28%),
    color-mix(in srgb, var(--case-accent) 34%, #101827);
  box-shadow: inset 0 5px 0 rgba(255, 255, 255, 0.18);
}

.case-lid-band.left {
  left: 32px;
  transform: rotate(-8deg);
}

.case-lid-band.right {
  right: 33px;
  transform: rotate(8deg);
}

.case-mouth {
  z-index: 5;
  top: 58px;
  left: 12px;
  width: 150px;
  height: 50px;
  clip-path: polygon(8% 25%, 50% 0, 92% 25%, 100% 58%, 74% 100%, 26% 100%, 0 58%);
  background:
    radial-gradient(ellipse at 50% 26%, rgba(255, 255, 255, 0.1), transparent 34%),
    #020508;
  box-shadow:
    inset 0 11px 18px rgba(0, 0, 0, 0.95),
    0 -4px 0 color-mix(in srgb, var(--case-accent) 44%, #06131b);
}

.case-rim {
  z-index: 6;
  top: 76px;
  left: 5px;
  width: 164px;
  height: 29px;
  clip-path: polygon(7% 0, 50% 31%, 93% 0, 100% 43%, 55% 100%, 0 45%);
  border: 4px solid color-mix(in srgb, var(--case-accent) 37%, #061019);
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--case-accent) 54%, #0b2215), color-mix(in srgb, var(--case-accent) 92%, #76ff5f) 50%, color-mix(in srgb, var(--case-accent) 56%, #07111b));
  box-shadow:
    inset 0 6px 0 rgba(255, 255, 255, 0.23),
    0 5px 0 rgba(0, 0, 0, 0.18);
}

.case-body {
  z-index: 4;
  right: 4px;
  bottom: 8px;
  left: 4px;
  height: 78px;
}

.case-panel.left {
  top: 19px;
  left: 0;
  width: 48px;
  height: 57px;
  clip-path: polygon(0 7%, 100% 24%, 100% 100%, 0 82%);
  background: linear-gradient(180deg, color-mix(in srgb, var(--case-accent) 70%, #11351f), color-mix(in srgb, var(--case-accent) 38%, #061018));
  border: 4px solid color-mix(in srgb, var(--case-accent) 35%, #061019);
}

.case-panel.front {
  top: 27px;
  left: 42px;
  width: 84px;
  height: 50px;
  clip-path: polygon(0 0, 100% 0, 96% 100%, 4% 100%);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.19), transparent 20%),
    color-mix(in srgb, var(--case-accent) 82%, #0d2c16);
  border: 4px solid color-mix(in srgb, var(--case-accent) 38%, #061019);
}

.case-panel.right {
  top: 18px;
  right: 0;
  width: 50px;
  height: 58px;
  clip-path: polygon(0 24%, 100% 7%, 100% 82%, 0 100%);
  background: linear-gradient(180deg, color-mix(in srgb, var(--case-accent) 58%, #0c291a), color-mix(in srgb, var(--case-accent) 32%, #04111b));
  border: 4px solid color-mix(in srgb, var(--case-accent) 35%, #061019);
}

.case-band {
  z-index: 2;
  top: 31px;
  width: 15px;
  height: 43px;
  border-radius: 3px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.16), transparent 30%),
    color-mix(in srgb, var(--case-accent) 34%, #101827);
  box-shadow: inset 0 5px 0 rgba(255, 255, 255, 0.16);
}

.case-band.left {
  left: 17px;
  transform: rotate(-8deg);
}

.case-band.center {
  left: 80px;
}

.case-band.right {
  right: 17px;
  transform: rotate(8deg);
}

.case-lock {
  z-index: 7;
  left: 71px;
  bottom: 0;
  width: 36px;
  height: 36px;
  clip-path: polygon(8% 0, 92% 0, 100% 86%, 50% 100%, 0 86%);
  border: 3px solid color-mix(in srgb, var(--case-accent) 40%, #061019);
  border-radius: 5px;
  background:
    radial-gradient(circle at 50% 54%, color-mix(in srgb, var(--case-accent) 18%, #030609) 0 3px, transparent 4px),
    linear-gradient(180deg, color-mix(in srgb, var(--case-accent) 96%, #efff69), color-mix(in srgb, var(--case-accent) 66%, #1d3a16));
  box-shadow: inset 0 6px 0 rgba(255, 255, 255, 0.22);
}

.case-chest-sprite {
  width: 100%;
  height: 100%;
  display: block;
  overflow: visible;
  shape-rendering: crispEdges;
}

.case-chest-sprite path,
.case-chest-sprite ellipse {
  vector-effect: non-scaling-stroke;
}

.case-chest-sprite path:not(.chest-shine):not(.chest-lid-highlight):not(.chest-keyhole) {
  stroke: color-mix(in srgb, var(--case-accent) 34%, #061019);
  stroke-linejoin: round;
  stroke-width: 4;
}

.case-chest .chest-lid-open {
  transform: translateY(-27px) rotate(-4deg) scale(1.05);
  transform-box: view-box;
  transform-origin: 112px 94px;
  filter: drop-shadow(0 10px 0 rgba(0, 0, 0, 0.22));
}

.case-chest .chest-shadow {
  fill: rgba(0, 0, 0, 0.42);
}

.case-chest .chest-lid-top {
  fill: color-mix(in srgb, var(--case-accent) 88%, #f5ff8a);
}

.case-chest .chest-lid-back {
  fill: color-mix(in srgb, var(--case-accent) 58%, #082010);
}

.case-chest .chest-lid-side.left,
.case-chest .chest-body-left,
.case-chest .chest-base-left {
  fill: color-mix(in srgb, var(--case-accent) 50%, #062116);
}

.case-chest .chest-lid-side.right,
.case-chest .chest-body-right,
.case-chest .chest-base-right {
  fill: color-mix(in srgb, var(--case-accent) 42%, #041724);
}

.case-chest .chest-lid-band,
.case-chest .chest-band {
  fill: color-mix(in srgb, var(--case-accent) 38%, #0b1824);
}

.case-chest .chest-lid-highlight,
.case-chest .chest-shine {
  fill: rgba(255, 255, 255, 0.34);
  stroke: none;
}

.case-chest .chest-inside {
  fill: #010407;
  filter: drop-shadow(0 -4px 0 color-mix(in srgb, var(--case-accent) 36%, #06131b));
}

.case-chest .chest-rim-back {
  fill: color-mix(in srgb, var(--case-accent) 64%, #11331b);
}

.case-chest .chest-rim-front {
  fill: color-mix(in srgb, var(--case-accent) 76%, #0a2915);
}

.case-chest .chest-body-front,
.case-chest .chest-base-front {
  fill: color-mix(in srgb, var(--case-accent) 72%, #082313);
}

.case-chest .chest-lock {
  fill: color-mix(in srgb, var(--case-accent) 82%, #b4ff52);
  stroke: color-mix(in srgb, var(--case-accent) 40%, #061016);
  stroke-width: 3;
}

.case-chest .chest-keyhole {
  fill: color-mix(in srgb, var(--case-accent) 24%, #030609);
  stroke: none;
}

.case-chest .chest-outline {
  fill: none;
  stroke: color-mix(in srgb, var(--case-accent) 38%, #061019);
  stroke-linejoin: round;
  stroke-width: 4;
  opacity: 0.9;
}

.case-chest-royal {
  --case-accent: #d6a82b;
}

.case-chest-deep {
  --case-accent: #8065e8;
}

.case-chest-bright {
  --case-accent: #33d7e8;
}

.case-card h3 {
  margin: 0 0 4px;
}

.case-card p {
  margin: 0 0 14px;
  color: var(--muted);
}

.daily-rank-case {
  justify-content: space-between;
  gap: 9px;
}

.daily-rank-case.locked {
  opacity: 0.72;
}

.daily-rank-case.claimed {
  border-color: rgba(31, 201, 126, 0.38);
}

.daily-case-art,
.daily-case-hero-art {
  position: relative;
  width: 100%;
  height: 166px;
  display: grid;
  place-items: end center;
  margin: -10px 0 2px;
}

.daily-case-art::after,
.daily-case-hero-art::after {
  position: absolute;
  right: 16%;
  bottom: 11px;
  left: 16%;
  height: 18px;
  border-radius: 999px;
  background: radial-gradient(ellipse, rgba(0, 0, 0, 0.44), transparent 68%);
  content: "";
}

.daily-case-art .case-chest {
  z-index: 5;
  margin: 0;
  transform: translateY(3px) scale(0.9);
}

.daily-case-item-fan {
  position: absolute;
  z-index: 6;
  inset: 0;
  pointer-events: none;
}

.case-fan-item {
  position: absolute;
  display: grid;
  justify-items: center;
  gap: 3px;
  width: 64px;
  min-height: 64px;
  padding: 0;
  border: 0;
  background: transparent;
}

.case-fan-item img {
  width: 62px;
  height: 62px;
  object-fit: contain;
  image-rendering: pixelated;
  filter:
    drop-shadow(0 9px 8px rgba(0, 0, 0, 0.52))
    drop-shadow(0 0 10px color-mix(in srgb, var(--case-accent) 32%, transparent));
}

.case-fan-item small {
  max-width: 58px;
  padding: 2px 5px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.44);
  color: #ffe58c;
  font-size: 9px;
  font-weight: 850;
  line-height: 1.1;
  white-space: nowrap;
}

.case-fan-item.item-0 {
  top: 11px;
  left: calc(50% - 32px);
  z-index: 8;
  transform: translateY(-6px) scale(1.16);
}

.case-fan-item.item-1 {
  top: 36px;
  left: calc(50% - 94px);
  z-index: 7;
  transform: rotate(-13deg) scale(0.98);
}

.case-fan-item.item-2 {
  top: 36px;
  right: calc(50% - 94px);
  z-index: 7;
  transform: rotate(13deg) scale(0.98);
}

.case-fan-item.item-3 {
  top: 55px;
  left: calc(50% - 63px);
  z-index: 6;
  opacity: 0.95;
  transform: rotate(-5deg) scale(0.84);
}

.case-fan-item.item-4 {
  top: 55px;
  right: calc(50% - 63px);
  z-index: 6;
  opacity: 0.95;
  transform: rotate(5deg) scale(0.84);
}

.case-lobby-art .case-chest {
  width: 128px;
  height: 104px;
  transform: translateY(2px);
}

.case-lobby-art .case-fan-item {
  width: 56px;
  min-height: 56px;
}

.case-lobby-art .case-fan-item img {
  width: 53px;
  height: 53px;
}

.case-lobby-art .case-fan-item.item-0 {
  top: 7px;
  left: calc(50% - 28px);
  transform: rotate(-2deg) scale(1.04);
}

.case-lobby-art .case-fan-item.item-1 {
  top: 34px;
  left: calc(50% - 82px);
  transform: rotate(-18deg) scale(0.9);
}

.case-lobby-art .case-fan-item.item-2 {
  top: 34px;
  right: calc(50% - 82px);
  transform: rotate(18deg) scale(0.9);
}

.case-lobby-art .case-fan-item.item-3 {
  top: 56px;
  left: calc(50% - 55px);
  transform: rotate(-7deg) scale(0.74);
}

.case-lobby-art .case-fan-item.item-4 {
  top: 56px;
  right: calc(50% - 55px);
  transform: rotate(7deg) scale(0.74);
}

.daily-case-preview-items {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
}

.daily-case-preview-items span {
  min-height: 70px;
  display: grid;
  place-items: center;
  gap: 3px;
  padding: 6px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 5px;
  background: rgba(12, 18, 30, 0.62);
}

.daily-case-preview-items img {
  width: 38px;
  height: 38px;
  object-fit: contain;
  image-rendering: pixelated;
}

.daily-case-preview-items small {
  color: var(--gold);
  font-size: 10px;
}

.daily-case-heading {
  align-items: center;
}

.reward-list {
  display: grid;
  gap: 8px;
}

.reward-row {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--panel-2);
}

.reward-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 5px;
  background: #342341;
}

.challenge-toolbar {
  margin: 12px 0;
}

.challenge-create-panel {
  margin-bottom: 14px;
}

.challenge-referrer-field {
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--panel-2);
}

.challenge-referrer-field input {
  width: 20px;
  min-height: 20px;
}

.challenge-cost-panel {
  display: grid;
  gap: 4px;
  padding: 12px;
  border: 1px solid var(--gold);
  border-radius: 5px;
  background: rgba(214, 168, 43, 0.12);
}

.challenge-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 12px;
}

.challenge-card {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--panel-2);
}

.challenge-card-head {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  align-items: center;
  gap: 12px;
}

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

.challenge-meta-grid span {
  display: grid;
  gap: 2px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.025);
}

.challenge-meta-grid small {
  color: var(--muted);
  font-size: 11px;
}

.challenge-claims {
  min-height: 18px;
  font-size: 12px;
}

.fairness-proof-box {
  display: grid;
  gap: 8px;
  margin-top: 14px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--panel-2);
}

.fairness-proof-box code,
.table-wrap code {
  overflow-wrap: anywhere;
  color: #c7f7ff;
}

.leader-podium {
  min-height: 260px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: end;
  gap: 20px;
  padding: 24px;
}

.podium-place {
  text-align: center;
}

.podium-place:first-child {
  order: 2;
}

.podium-place:nth-child(2) {
  order: 1;
}

.podium-place:nth-child(3) {
  order: 3;
}

.podium-avatar {
  width: 70px;
  height: 70px;
  display: grid;
  place-items: center;
  margin: 0 auto 10px;
  border: 4px solid var(--podium);
  border-radius: 10px;
  background: #26354b;
  font-size: 28px;
  font-weight: 900;
}

.podium-place:first-child .podium-avatar {
  width: 92px;
  height: 92px;
}

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

.field {
  display: grid;
  gap: 7px;
}

.field label {
  color: #cdd6e4;
  font-size: 12px;
  font-weight: 700;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 42px;
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--panel-2);
  color: #fff;
}

.field textarea {
  min-height: 100px;
  resize: vertical;
}

.game-layout {
  display: grid;
  grid-template-columns: 290px minmax(0, 1fr);
  min-height: 590px;
  overflow: hidden;
}

.bet-panel {
  padding: 14px;
  border-right: 1px solid var(--line);
  background: #181120;
}

.game-stage {
  position: relative;
  min-width: 0;
  min-height: 590px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: #100b17;
  overflow: hidden;
}

.game-stage::before {
  position: absolute;
  inset: 0;
  background: url("/assets/cubicbets-fantasy-hero.png") center / cover no-repeat;
  opacity: 0.07;
  content: "";
}

.game-stage > * {
  position: relative;
  z-index: 1;
}

.fun-bet-pill {
  position: absolute;
  z-index: 4;
  top: 16px;
  left: 16px;
  padding: 7px 10px;
  border: 1px solid rgba(255, 212, 90, 0.5);
  border-radius: 6px;
  background: rgba(34, 25, 7, 0.78);
  color: #ffd45a;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.game-result-box {
  position: fixed;
  z-index: 25;
  top: calc(var(--header) + 230px);
  left: calc(var(--sidebar) + ((100vw - var(--sidebar) - var(--chat)) / 2));
  width: min(212px, 74vw);
  min-height: 124px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 9px;
  padding: 18px 20px;
  border: 2px solid #18ee86;
  border-radius: 7px;
  background: rgba(13, 24, 35, 0.88);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.42), inset 0 0 34px rgba(24, 238, 134, 0.06);
  pointer-events: none;
  transform: translate(-50%, -50%);
  animation: result-box-pop 420ms cubic-bezier(0.17, 0.82, 0.32, 1.1) both;
}

.game-result-box strong {
  color: #36ef88;
  font-size: 38px;
  font-weight: 950;
  line-height: 1;
  letter-spacing: 0;
  text-shadow: 0 8px 22px rgba(0, 0, 0, 0.28);
}

.game-result-box em {
  color: #ffd45a;
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.game-result-box span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  color: #f3f5f8;
  font-size: 17px;
  font-weight: 850;
}

.game-result-box.loss {
  border-color: #ff2c68;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.42), inset 0 0 34px rgba(255, 44, 104, 0.06);
}

.game-result-box.loss strong {
  color: #ff3e78;
}

.cross-road-layout .game-result-box {
  top: calc(var(--header) + 370px);
}

@keyframes result-box-pop {
  from {
    opacity: 0;
    transform: translate(-50%, -46%) scale(0.92);
  }

  to {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
}

.game-footer {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-top: 1px solid var(--line);
  background: #1b1425;
}

.roulette-layout {
  grid-template-columns: 1fr;
}

.roulette-layout .game-stage {
  min-height: 690px;
  justify-content: flex-start;
  padding: 20px;
}

.roulette-layout .bet-panel {
  grid-row: 2;
  border-top: 1px solid var(--line);
  border-right: 0;
}

.roulette-layout .game-footer {
  grid-row: 3;
}

.roulette-layout .roulette-chip-tray {
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

.blackjack-layout {
  grid-template-columns: 1fr;
}

.blackjack-layout .game-stage {
  min-height: 470px;
  justify-content: stretch;
  padding: 0;
  background: #111820;
}

.blackjack-layout .game-stage::before {
  opacity: 0.05;
}

.blackjack-layout .bet-panel {
  grid-row: 2;
  border-top: 1px solid var(--line);
  border-right: 0;
  background: #182333;
}

.blackjack-layout .game-footer {
  grid-row: 3;
}

.baccarat-layout {
  grid-template-columns: 1fr;
}

.baccarat-layout .game-stage {
  min-height: 550px;
  justify-content: stretch;
  padding: 0;
  background: #101923;
}

.baccarat-layout .game-stage::before {
  opacity: 0.04;
}

.baccarat-layout .bet-panel {
  grid-row: 2;
  border-top: 1px solid var(--line);
  border-right: 0;
  background: #182333;
}

.baccarat-layout .game-footer {
  grid-row: 3;
}

.hilo-layout {
  grid-template-columns: 1fr;
}

.hilo-layout .game-stage {
  min-height: 600px;
  justify-content: stretch;
  padding: 0;
  background: #101923;
}

.hilo-layout .game-stage::before {
  opacity: 0.04;
}

.hilo-layout .bet-panel {
  grid-row: 2;
  border-top: 1px solid var(--line);
  border-right: 0;
  background: #182333;
}

.hilo-layout .game-footer {
  grid-row: 3;
}

.wheel-layout {
  grid-template-columns: 1fr;
}

.wheel-layout .game-stage {
  min-height: 600px;
  justify-content: stretch;
  padding: 0;
  background: #101923;
}

.wheel-layout .game-stage::before {
  opacity: 0.04;
}

.wheel-layout .bet-panel {
  grid-row: 2;
  border-top: 1px solid var(--line);
  border-right: 0;
  background: #182333;
}

.wheel-layout .game-footer {
  display: none;
}

.mines-layout {
  grid-template-columns: 1fr;
}

.mines-layout .game-stage {
  min-height: 600px;
  justify-content: stretch;
  padding: 0;
  background: #101923;
}

.mines-layout .game-stage::before {
  opacity: 0.04;
}

.mines-layout .bet-panel {
  grid-row: 2;
  border-top: 1px solid var(--line);
  border-right: 0;
  background: #182333;
}

.mines-layout .game-footer {
  display: none;
}

.tower-layout {
  grid-template-columns: 1fr;
}

.tower-layout .game-stage {
  min-height: 600px;
  justify-content: stretch;
  padding: 0;
  background: #101923;
}

.tower-layout .game-stage::before {
  opacity: 0.04;
}

.tower-layout .bet-panel {
  grid-row: 2;
  border-top: 1px solid var(--line);
  border-right: 0;
  background: #182333;
}

.tower-layout .game-footer {
  display: none;
}

.crash-layout {
  grid-template-columns: 1fr;
}

.crash-layout .game-stage {
  min-height: 600px;
  justify-content: stretch;
  padding: 0;
  background: #101923;
}

.crash-layout .game-stage::before {
  opacity: 0.04;
}

.crash-layout .bet-panel {
  grid-row: 2;
  border-top: 1px solid var(--line);
  border-right: 0;
  background: #182333;
}

.crash-layout .game-footer {
  display: none;
}

.limbo-layout {
  grid-template-columns: 1fr;
}

.limbo-layout .game-stage {
  min-height: 330px;
  justify-content: stretch;
  padding: 0;
  background: #101923;
}

.limbo-layout .game-stage::before {
  opacity: 0.04;
}

.limbo-layout .bet-panel {
  grid-row: 2;
  border-top: 1px solid var(--line);
  border-right: 0;
  background: #182333;
}

.limbo-layout .game-footer {
  display: none;
}

.coinflip-layout {
  grid-template-columns: 1fr;
}

.coinflip-layout .game-stage {
  min-height: 310px;
  justify-content: stretch;
  padding: 0;
  background: #101923;
}

.coinflip-layout .game-stage::before {
  opacity: 0.04;
}

.coinflip-layout .bet-panel {
  grid-row: 2;
  border-top: 1px solid var(--line);
  border-right: 0;
  background: #182333;
}

.coinflip-layout .game-footer {
  display: none;
}

.keno-layout {
  grid-template-columns: 1fr;
}

.keno-layout .game-stage {
  min-height: 600px;
  justify-content: stretch;
  padding: 0;
  background: #101923;
}

.keno-layout .game-stage::before {
  opacity: 0.04;
}

.keno-layout .bet-panel {
  grid-row: 2;
  border-top: 1px solid var(--line);
  border-right: 0;
  background: #182333;
}

.keno-layout .game-footer {
  display: none;
}

.dice-layout {
  grid-template-columns: 1fr;
}

.dice-layout .game-stage {
  min-height: 520px;
  justify-content: stretch;
  padding: 0;
  background: #101923;
}

.dice-layout .game-stage::before {
  opacity: 0.04;
}

.dice-layout .bet-panel {
  grid-row: 2;
  border-top: 1px solid var(--line);
  border-right: 0;
  background: #182333;
}

.dice-layout .game-footer {
  display: none;
}

.dice-stage {
  width: 100%;
  min-height: 520px;
  display: grid;
  grid-template-rows: 1fr auto;
  gap: 18px;
  padding: 28px 28px 22px;
  background:
    radial-gradient(circle at 50% 42%, rgba(73, 99, 142, 0.22), transparent 34%),
    linear-gradient(180deg, #101923 0%, #111722 100%);
}

.dice-slider-area {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 22px;
  width: min(760px, 100%);
  margin: 0 auto;
  padding: 40px 8px 24px;
}

.dice-track-wrap {
  position: relative;
  width: 100%;
  min-height: 48px;
  display: grid;
  align-items: center;
}

.dice-track {
  height: 22px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 5px;
  background: linear-gradient(90deg, #20d989 0 var(--dice-target), #f04074 var(--dice-target) 100%);
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.32), 0 10px 28px rgba(0, 0, 0, 0.22);
}

.dice-stage.over .dice-track {
  background: linear-gradient(90deg, #f04074 0 var(--dice-target), #20d989 var(--dice-target) 100%);
}

.dice-range {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 48px;
  margin: 0;
  background: transparent;
  cursor: grab;
  appearance: none;
  -webkit-appearance: none;
}

.dice-range:active {
  cursor: grabbing;
}

.dice-range:disabled {
  cursor: default;
}

.dice-range::-webkit-slider-runnable-track {
  height: 22px;
  background: transparent;
}

.dice-range::-webkit-slider-thumb {
  width: 29px;
  height: 29px;
  margin-top: -4px;
  border: 3px solid #93a9ff;
  border-radius: 6px;
  background: #466dff;
  box-shadow: 0 7px 18px rgba(70, 109, 255, 0.38), 0 2px 0 rgba(255, 255, 255, 0.34) inset;
  appearance: none;
  -webkit-appearance: none;
}

.dice-range::-moz-range-track {
  height: 22px;
  background: transparent;
}

.dice-range::-moz-range-thumb {
  width: 29px;
  height: 29px;
  border: 3px solid #93a9ff;
  border-radius: 6px;
  background: #466dff;
  box-shadow: 0 7px 18px rgba(70, 109, 255, 0.38), 0 2px 0 rgba(255, 255, 255, 0.34) inset;
}

.dice-roll-bubble {
  position: absolute;
  z-index: 4;
  top: calc(50% - 58px);
  left: var(--dice-result);
  min-width: 68px;
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  background: #1a2635;
  color: #ecf3ff;
  font-size: 20px;
  font-weight: 900;
  line-height: 1;
  text-align: center;
  opacity: 0;
  transform: translateX(-50%) translateY(4px);
  transition: left 360ms ease, opacity 180ms ease, transform 180ms ease;
  pointer-events: none;
}

.dice-stage.has-result .dice-roll-bubble,
.dice-stage.rolling .dice-roll-bubble {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.dice-stage.rolling .dice-roll-bubble {
  left: var(--dice-target);
  animation: dice-roll-pulse 540ms ease-in-out infinite alternate;
}

.dice-roll-bubble.win {
  border-color: rgba(32, 217, 137, 0.6);
  color: #32ef94;
}

.dice-roll-bubble.loss {
  border-color: rgba(240, 64, 116, 0.72);
  color: #ff4f82;
}

.dice-scale {
  display: flex;
  justify-content: space-between;
  color: #8392a9;
  font-size: 13px;
  font-weight: 800;
}

.dice-config-row {
  width: min(760px, 100%);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 0 auto;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 7px;
  background: #182333;
}

.dice-input-card {
  display: grid;
  gap: 7px;
  min-width: 0;
  color: #cdd6e4;
  font-size: 12px;
  font-weight: 800;
}

.dice-input-wrap {
  display: grid;
  grid-template-columns: 1fr 38px;
  align-items: center;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #111a28;
  overflow: hidden;
}

.dice-input-wrap input {
  min-width: 0;
  height: 42px;
  padding: 0 11px;
  border: 0;
  background: transparent;
  color: #fff;
  font-weight: 850;
}

.dice-input-wrap b,
.dice-flip-button {
  height: 42px;
  display: grid;
  place-items: center;
  border: 0;
  border-left: 1px solid var(--line);
  background: #151f2e;
  color: #dbe5f4;
  font-size: 16px;
  font-weight: 950;
}

.dice-flip-button {
  cursor: pointer;
}

.dice-flip-button:disabled {
  cursor: default;
  opacity: 0.5;
}

.dice-controls {
  display: grid;
  gap: 12px;
}

.dice-fair-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 4px;
  color: #cdd6e4;
  font-size: 13px;
  font-weight: 750;
}

.dice-fair-row > span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.dice-advanced-toggle {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #111a28;
  color: #dbe5f4;
  font-weight: 850;
  cursor: pointer;
}

.dice-auto-advanced {
  display: grid;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #111a28;
}

.dice-auto-rule {
  display: grid;
  gap: 8px;
}

.dice-auto-rule > label {
  color: #cdd6e4;
  font-size: 12px;
  font-weight: 800;
}

.dice-auto-rule-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.dice-auto-rule-tabs button {
  min-height: 30px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #182333;
  color: #cdd6e4;
  cursor: pointer;
}

.dice-auto-rule-tabs button.active {
  border-color: rgba(73, 112, 255, 0.64);
  background: #263d75;
  color: #fff;
}

.dice-percent-input {
  display: grid;
  grid-template-columns: 1fr 38px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #0f1723;
  overflow: hidden;
}

.dice-percent-input input {
  min-width: 0;
  height: 38px;
  padding: 0 11px;
  border: 0;
  background: transparent;
  color: #fff;
  font-weight: 800;
}

.dice-percent-input span {
  display: grid;
  place-items: center;
  border-left: 1px solid var(--line);
  color: #dbe5f4;
  font-weight: 900;
}

@keyframes dice-roll-pulse {
  from {
    filter: brightness(0.92);
    transform: translateX(-50%) translateY(0) scale(0.98);
  }

  to {
    filter: brightness(1.18);
    transform: translateX(-50%) translateY(-2px) scale(1.02);
  }
}

.blackjack-table {
  position: relative;
  width: 100%;
  min-height: 470px;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 10px;
  padding: 18px 20px 26px;
  background:
    radial-gradient(circle at 50% 44%, rgba(50, 69, 88, 0.35), transparent 34%),
    linear-gradient(180deg, #121b26 0%, #111720 100%);
}

.blackjack-shoe {
  position: absolute;
  z-index: 3;
  top: 94px;
  right: 26px;
  width: 82px;
  height: 112px;
  pointer-events: none;
}

.blackjack-shoe span {
  position: absolute;
  right: calc(var(--shoe-layer, 0) * 3px);
  top: calc(var(--shoe-layer, 0) * 3px);
  width: 72px;
  height: 98px;
  border: 3px solid #eef6ff;
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.18), transparent 32%),
    repeating-linear-gradient(45deg, #1f5f88, #1f5f88 9px, #2879aa 9px, #2879aa 18px);
  box-shadow: 0 7px 14px rgba(0, 0, 0, 0.28);
}

.blackjack-shoe span:nth-child(1) {
  --shoe-layer: 4;
}

.blackjack-shoe span:nth-child(2) {
  --shoe-layer: 3;
}

.blackjack-shoe span:nth-child(3) {
  --shoe-layer: 2;
}

.blackjack-shoe span:nth-child(4) {
  --shoe-layer: 1;
}

.blackjack-shoe span:nth-child(5) {
  --shoe-layer: 0;
}

.blackjack-rules {
  display: flex;
  justify-content: center;
  gap: 18px;
  color: #93a1b8;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

.blackjack-card-area {
  display: grid;
  align-content: center;
  gap: 12px;
}

.blackjack-hand {
  min-height: 150px;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 4px;
}

.blackjack-hand > b {
  min-width: 42px;
  min-height: 24px;
  display: grid;
  place-items: center;
  padding: 3px 9px;
  border-radius: 12px;
  background: #1d2a3d;
  color: #f2f6ff;
  font-size: 13px;
}

.blackjack-hand.active > b {
  background: #d7aa32;
  color: #17110b;
}

.blackjack-hand.outcome-win > b {
  background: #20d566;
  color: #07140c;
}

.blackjack-hand.outcome-loss > b {
  background: #e51b63;
  color: #fff;
}

.blackjack-hand.outcome-push > b {
  background: #d7a12b;
  color: #180f05;
}

.blackjack-hand.outcome-win .playing-card {
  border-color: #20d566;
  box-shadow: 0 0 0 4px rgba(32, 213, 102, 0.75), 0 12px 26px rgba(0, 0, 0, 0.26);
}

.blackjack-hand.outcome-loss .playing-card {
  border-color: #e51b63;
  box-shadow: 0 0 0 4px rgba(229, 27, 99, 0.78), 0 12px 26px rgba(0, 0, 0, 0.26);
}

.blackjack-hand.outcome-push .playing-card {
  border-color: #d7a12b;
  box-shadow: 0 0 0 4px rgba(215, 161, 43, 0.72), 0 12px 26px rgba(0, 0, 0, 0.26);
}

.blackjack-player-hands {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 18px;
}

.blackjack-player-hands .blackjack-hand {
  min-width: min(300px, 100%);
}

.blackjack-empty {
  min-height: 132px;
  display: grid;
  place-items: center;
  color: #7f8da3;
  font-weight: 800;
}

.blackjack-side-row {
  display: flex;
  align-items: end;
  justify-content: space-around;
  gap: 24px;
}

.blackjack-side-bet {
  display: grid;
  justify-items: center;
  gap: 7px;
  color: #a9b5c7;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.blackjack-side-bet > small {
  min-height: 16px;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  color: #d3deed;
  font-size: 11px;
  font-weight: 800;
}

.blackjack-side-spot {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border: 2px dashed #48566a;
  border-radius: 50%;
  background: rgba(14, 21, 31, 0.45);
  color: #f5d26b;
  cursor: pointer;
}

.blackjack-side-spot:hover:not(:disabled) {
  border-color: #d7aa32;
  background: rgba(215, 170, 50, 0.1);
}

.blackjack-side-spot:disabled {
  cursor: default;
}

.blackjack-side-spot.has-chip {
  border-style: solid;
  border-color: #d7aa32;
  background: radial-gradient(circle at 35% 28%, #fff2a4, #d7aa32 42%, #80581a 75%);
  color: #15100b;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.32);
}

.blackjack-side-spot b {
  font-size: 13px;
}

.blackjack-side-spot small {
  display: none;
}

.blackjack-side-result {
  min-height: 20px;
  display: inline-grid;
  place-items: center;
  padding: 4px 8px;
  border-radius: 999px;
  color: #fff;
  font-size: 10px;
  font-style: normal;
  font-weight: 900;
  letter-spacing: 0;
}

.blackjack-side-result.loss {
  background: #e51b63;
}

.blackjack-side-result.win {
  background: #20c967;
  color: #07140c;
}

.blackjack-side-actions {
  align-self: end;
  display: flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 8px;
}

.blackjack-side-actions button {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 0;
  background: transparent;
  color: #c8d3e3;
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
}

.blackjack-side-actions button:hover {
  color: #fff;
}

.blackjack-action-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 12px;
}

.blackjack-action-grid .button {
  min-height: 48px;
  background: #223044;
}

.blackjack-action-grid .button.primary {
  background: #1c6fab;
  border-color: #2c90d6;
}

.blackjack-chip-tray {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  place-items: center;
  gap: 8px;
  margin: 10px 0 13px;
  padding: 9px;
  border: 1px solid #26364d;
  border-radius: 6px;
  background: #142030;
}

.amount-input {
  display: grid;
  grid-template-columns: 48px 1fr auto auto;
  align-items: center;
  margin-bottom: 13px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--panel-2);
  overflow: hidden;
}

.prefixed-input {
  display: grid;
  grid-template-columns: 48px 1fr;
  align-items: center;
  margin-bottom: 13px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--panel-2);
  overflow: hidden;
}

.input-prefix {
  height: 46px;
  display: grid;
  place-items: center;
  box-sizing: border-box;
  border-right: 1px solid var(--line);
  background: #171120;
  color: #f2d66f;
  font-size: 24px;
  font-weight: 900;
  line-height: 1;
  pointer-events: none;
  user-select: none;
}

.prefixed-input .input-prefix {
  padding-bottom: 3px;
}

.currency-prefix {
  padding: 0;
}

.amount-input input {
  min-width: 0;
  height: 46px;
  padding: 0 10px;
  border: 0;
  background: transparent;
  color: white;
  font-weight: 750;
}

.prefixed-input input {
  min-width: 0;
  height: 46px;
  padding: 0 10px;
  border: 0;
  background: transparent;
  color: white;
  font-weight: 750;
}

.amount-input button {
  height: 46px;
  padding: 0 10px;
  border: 0;
  background: transparent;
  color: #c6d0df;
  cursor: pointer;
}

.segmented {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  gap: 4px;
  margin-bottom: 12px;
  padding: 4px;
  border-radius: 5px;
  background: #0e0a14;
}

.segmented button {
  min-height: 37px;
  padding: 7px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  cursor: pointer;
}

.segmented button.active {
  background: #3a2949;
}

.difficulty-grid {
  grid-auto-flow: row;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.toggle-row {
  min-height: 42px;
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 10px 0 14px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #100b17;
  color: #d7dfeb;
}

.toggle-row input {
  width: 18px;
  height: 18px;
  accent-color: var(--gold);
}

.result-banner {
  min-height: 40px;
  margin-top: 12px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #100b17;
  color: #cbd5e4;
  font-size: 13px;
}

.result-banner.win {
  border-color: #287e59;
  color: var(--green);
}

.result-banner.loss {
  border-color: #84364a;
  color: #ff758f;
}

.slide-bettors {
  margin-top: 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #100b17;
  overflow: hidden;
}

.slide-bettors-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 9px 10px;
  border-bottom: 1px solid var(--line);
  color: #e7edf8;
  font-size: 12px;
}

.slide-bettors-head span {
  color: var(--muted);
}

.slide-bettors-list {
  max-height: 245px;
  overflow-y: auto;
}

.slide-bettor {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-bottom: 1px solid rgba(61, 49, 80, 0.62);
  color: #d7dfeb;
  font-size: 12px;
}

.slide-bettor:last-child {
  border-bottom: 0;
}

.slide-bettor.self {
  background: rgba(214, 168, 50, 0.12);
  color: #fff2b8;
}

.slide-bettor span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.slide-bettor b {
  color: #f0cf68;
  font-size: 11px;
}

.slide-bettor em {
  min-width: 42px;
  padding: 3px 5px;
  border-radius: 4px;
  background: #241a31;
  color: #9ee7c0;
  font-style: normal;
  font-weight: 850;
  text-align: center;
}

.history-strip {
  width: 100%;
  display: flex;
  gap: 6px;
  padding: 8px;
  overflow: hidden;
}

.history-pill {
  flex: 0 0 auto;
  min-width: 58px;
  padding: 7px 9px;
  border-radius: 5px;
  background: #2c2038;
  color: #dce5f2;
  font-size: 12px;
  font-weight: 750;
  text-align: center;
}

.big-number {
  font-size: 72px;
  font-weight: 900;
  letter-spacing: 0;
}

.big-number.win {
  color: var(--green);
}

.big-number.loss {
  color: var(--red);
}

.playing-card {
  position: relative;
  width: 94px;
  height: 132px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 9px;
  border: 2px solid #e8edf5;
  border-radius: 7px;
  background: #f8fafc;
  color: #101522;
  font-size: 24px;
  font-weight: 900;
  box-shadow: 0 7px 20px rgba(0, 0, 0, 0.22);
  overflow: hidden;
}

.playing-card.red {
  color: #d82e4e;
}

.playing-card.back {
  align-items: center;
  justify-content: center;
  border-color: #6cb6eb;
  background: repeating-linear-gradient(45deg, #1d5880, #1d5880 8px, #2874a5 8px, #2874a5 16px);
  color: white;
}

.blackjack-table .playing-card.from-shoe {
  --shoe-x: 175px;
  --shoe-y: -150px;
  animation: blackjack-card-from-shoe 620ms cubic-bezier(.14,.84,.16,1) both;
  animation-delay: calc(var(--card-index, 0) * 85ms);
}

.blackjack-table .dealer-hand .playing-card.from-shoe {
  --shoe-x: 170px;
  --shoe-y: -34px;
}

.blackjack-table .playing-card.from-shoe::after {
  position: absolute;
  inset: -2px;
  z-index: 2;
  display: grid;
  place-items: center;
  border: 2px solid #6cb6eb;
  border-radius: 7px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.18), transparent 34%),
    repeating-linear-gradient(45deg, #1d5880, #1d5880 8px, #2874a5 8px, #2874a5 16px);
  color: #fff;
  content: "C";
  font-size: 24px;
  font-weight: 900;
  animation: blackjack-card-back-reveal 620ms cubic-bezier(.14,.84,.16,1) both;
  animation-delay: inherit;
}

@keyframes blackjack-card-from-shoe {
  from {
    opacity: 0;
    transform: translate(var(--shoe-x), var(--shoe-y)) rotate(7deg) scale(0.86);
  }

  45% {
    opacity: 1;
    transform: translate(calc(var(--shoe-x) * 0.35), calc(var(--shoe-y) * 0.35)) rotate(2deg) scale(0.98);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes blackjack-card-back-reveal {
  0%,
  58% {
    opacity: 1;
  }

  76%,
  100% {
    opacity: 0;
  }
}

.baccarat-table {
  position: relative;
  width: 100%;
  min-height: 550px;
  display: grid;
  grid-template-rows: minmax(300px, 1fr) auto auto;
  gap: 12px;
  padding: 20px 14px 16px;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 26%, rgba(42, 64, 88, 0.28), transparent 38%),
    linear-gradient(180deg, #111b26 0%, #101822 100%);
}

.baccarat-shoe {
  position: absolute;
  z-index: 4;
  top: 16px;
  right: 27px;
  width: 84px;
  height: 112px;
  pointer-events: none;
}

.baccarat-shoe span {
  position: absolute;
  right: calc(var(--shoe-layer, 0) * 3px);
  top: calc(var(--shoe-layer, 0) * 3px);
  width: 72px;
  height: 98px;
  border: 3px solid #eef6ff;
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.18), transparent 32%),
    repeating-linear-gradient(45deg, #1f5f88, #1f5f88 9px, #2879aa 9px, #2879aa 18px);
  box-shadow: 0 7px 14px rgba(0, 0, 0, 0.28);
}

.baccarat-shoe span:nth-child(1) {
  --shoe-layer: 4;
}

.baccarat-shoe span:nth-child(2) {
  --shoe-layer: 3;
}

.baccarat-shoe span:nth-child(3) {
  --shoe-layer: 2;
}

.baccarat-shoe span:nth-child(4) {
  --shoe-layer: 1;
}

.baccarat-shoe span:nth-child(5) {
  --shoe-layer: 0;
}

.baccarat-ribbon {
  position: absolute;
  z-index: 1;
  top: 36%;
  left: 50%;
  min-width: 220px;
  padding: 13px 20px;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 4px;
  background: #172234;
  color: #aeb9ca;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-align: center;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.22);
}

.baccarat-ribbon::before,
.baccarat-ribbon::after {
  position: absolute;
  top: 50%;
  width: 38px;
  height: 24px;
  transform: translateY(-50%);
  background: #121c2b;
  clip-path: polygon(0 0, 100% 16%, 78% 50%, 100% 84%, 0 100%, 18% 50%);
  content: "";
}

.baccarat-ribbon::before {
  left: -34px;
}

.baccarat-ribbon::after {
  right: -34px;
  transform: translateY(-50%) scaleX(-1);
}

.baccarat-card-zone {
  position: relative;
  z-index: 2;
  display: grid;
  align-items: start;
  padding: 8px 92px 0 22px;
}

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

.baccarat-hand {
  min-height: 185px;
  display: grid;
  align-content: start;
  gap: 8px;
}

.baccarat-hand-title {
  display: inline-flex;
  align-items: center;
  justify-self: center;
  gap: 8px;
  min-height: 32px;
  color: #c9d4e5;
  font-weight: 900;
}

.baccarat-hand-title b {
  min-width: 35px;
  padding: 4px 12px;
  border-radius: 999px;
  background: #d7a12b;
  color: #201407;
  text-align: center;
}

.baccarat-hand.resolved .baccarat-hand-title b {
  background: #20d566;
}

.baccarat-table .card-row {
  min-height: 150px;
}

.baccarat-table .playing-card.from-shoe {
  --shoe-x: 230px;
  --shoe-y: -90px;
  animation: baccarat-card-from-shoe 620ms cubic-bezier(.14,.84,.16,1) both;
}

.baccarat-table .playing-card.from-shoe::after {
  position: absolute;
  inset: -2px;
  z-index: 2;
  display: grid;
  place-items: center;
  border: 2px solid #6cb6eb;
  border-radius: 7px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.18), transparent 34%),
    repeating-linear-gradient(45deg, #1d5880, #1d5880 8px, #2874a5 8px, #2874a5 16px);
  color: #fff;
  content: "C";
  font-size: 24px;
  font-weight: 900;
  animation: baccarat-card-back-reveal 620ms cubic-bezier(.14,.84,.16,1) both;
}

.baccarat-bet-pads {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.baccarat-pad {
  position: relative;
  min-height: 96px;
  display: grid;
  place-items: center;
  gap: 4px;
  border: 1px solid #273348;
  border-radius: 6px;
  background: #172234;
  color: #eef5ff;
  cursor: pointer;
  font-weight: 850;
}

.baccarat-pad span {
  color: #b7c2d3;
  font-size: 13px;
  font-weight: 650;
}

.baccarat-pad:hover:not(:disabled),
.baccarat-pad.has-chip {
  border-color: #40536f;
  background: #1a2a3d;
}

.baccarat-pad.winner {
  border-color: #22d96d;
  box-shadow: inset 0 0 0 1px #22d96d, 0 0 0 2px rgba(34, 217, 109, 0.18);
}

.baccarat-chip {
  position: absolute;
  right: 14px;
  top: 50%;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  transform: translateY(-50%);
  border: 2px dashed rgba(255, 255, 255, 0.72);
  border-radius: 50%;
  background: radial-gradient(circle at 35% 28%, #fff6a9, #f5ca45 42%, #df7d23 72%, #7d3913);
  color: #241006;
  font-size: 10px;
  font-style: normal;
  font-weight: 950;
  letter-spacing: 0;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.28);
}

.baccarat-table-actions {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 36px;
}

.baccarat-table-actions button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 0;
  background: transparent;
  color: #c3ccda;
  cursor: pointer;
  font-weight: 750;
}

.baccarat-table-actions button:disabled,
.baccarat-pad:disabled {
  cursor: not-allowed;
  opacity: 0.58;
}

@keyframes baccarat-card-from-shoe {
  from {
    opacity: 0;
    transform: translate(var(--shoe-x), var(--shoe-y)) rotate(7deg) scale(0.86);
  }

  45% {
    opacity: 1;
    transform: translate(calc(var(--shoe-x) * 0.35), calc(var(--shoe-y) * 0.35)) rotate(2deg) scale(0.98);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes baccarat-card-back-reveal {
  0%,
  58% {
    opacity: 1;
  }

  76%,
  100% {
    opacity: 0;
  }
}

.slide-stage {
  width: min(860px, 100%);
  display: grid;
  gap: 18px;
}

.slide-status {
  display: grid;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(16, 11, 23, 0.86);
  text-align: center;
}

.slide-status strong {
  color: #f4d05c;
  font-size: 18px;
}

.slide-status em {
  color: #cbd5e4;
  font-size: 13px;
  font-style: normal;
}

.slide-window {
  position: relative;
  height: 138px;
  display: flex;
  align-items: center;
  border: 1px solid #463655;
  border-radius: 8px;
  background: #100b17;
  overflow: hidden;
  box-shadow: inset 0 0 42px rgba(0, 0, 0, 0.42);
}

.slide-window::before,
.slide-window::after {
  position: absolute;
  z-index: 3;
  top: 0;
  bottom: 0;
  width: 100px;
  content: "";
  pointer-events: none;
}

.slide-window::before {
  left: 0;
  background: linear-gradient(90deg, #100b17, transparent);
}

.slide-window::after {
  right: 0;
  background: linear-gradient(270deg, #100b17, transparent);
}

.slide-marker {
  position: absolute;
  z-index: 4;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 3px;
  background: #f4d05c;
  box-shadow: 0 0 18px rgba(244, 208, 92, 0.8);
}

.slide-marker::before,
.slide-marker::after {
  position: absolute;
  left: 50%;
  width: 0;
  height: 0;
  border-right: 10px solid transparent;
  border-left: 10px solid transparent;
  content: "";
  transform: translateX(-50%);
}

.slide-marker::before {
  top: 0;
  border-top: 14px solid #f4d05c;
}

.slide-marker::after {
  bottom: 0;
  border-bottom: 14px solid #f4d05c;
}

.slide-track {
  display: flex;
  gap: 8px;
  padding-left: calc(50% - 41px);
  will-change: transform;
}

.slide-track.rolling {
  animation: slide-glide 2800ms cubic-bezier(.08,.78,.08,1) var(--slide-delay, 0ms) both;
}

.slide-tile {
  min-width: 82px;
  min-height: 54px;
  display: grid;
  place-items: center;
  border: 1px solid #58436a;
  border-radius: 6px;
  background: #251a31;
  color: #dce6f4;
  cursor: default;
  font-weight: 900;
}

.slide-tile.hot {
  border-color: #d6a832;
  background: #3a2a12;
  color: #ffe28a;
}

.slide-tile.cold {
  border-color: #3d5268;
  background: #172131;
  color: #95a8bf;
}

.slide-tile.current {
  outline: 2px solid rgba(244, 208, 92, 0.32);
  outline-offset: -3px;
}

@keyframes slide-glide {
  from {
    transform: translateX(var(--slide-from));
  }

  to {
    transform: translateX(var(--slide-to));
  }
}

.card-row {
  min-height: 142px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.card-zone {
  width: 100%;
  text-align: center;
}

.card-zone h3 {
  color: var(--muted);
  font-size: 13px;
}

.hilo-table {
  position: relative;
  width: 100%;
  min-height: 600px;
  display: grid;
  grid-template-rows: minmax(340px, 1fr) auto;
  gap: 26px;
  padding: 48px 16px 40px;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 26%, rgba(41, 62, 87, 0.35), transparent 34%),
    linear-gradient(180deg, #111b26 0%, #101822 100%);
}

.hilo-center {
  position: relative;
  z-index: 2;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 12px;
}

.hilo-card-stack {
  position: relative;
  width: 116px;
  height: 164px;
  display: grid;
  place-items: center;
}

.hilo-card-stack::before,
.hilo-card-stack::after {
  position: absolute;
  inset: 7px -3px -7px 3px;
  z-index: -1;
  border: 3px solid #eef6ff;
  border-radius: 9px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.18), transparent 34%),
    repeating-linear-gradient(45deg, #1d5880, #1d5880 8px, #2874a5 8px, #2874a5 16px);
  content: "";
  box-shadow: 0 12px 22px rgba(0, 0, 0, 0.28);
}

.hilo-card-stack::after {
  inset: 13px -7px -13px 7px;
  z-index: -2;
}

.hilo-card-stack .playing-card {
  width: 112px;
  height: 158px;
  font-size: 28px;
}

.hilo-card-stack .playing-card.from-deck {
  animation: hilo-card-deal 560ms cubic-bezier(.14,.84,.16,1) both;
}

.hilo-card-stack .playing-card.from-deck::after {
  position: absolute;
  inset: -2px;
  z-index: 2;
  display: grid;
  place-items: center;
  border: 2px solid #6cb6eb;
  border-radius: 7px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.18), transparent 34%),
    repeating-linear-gradient(45deg, #1d5880, #1d5880 8px, #2874a5 8px, #2874a5 16px);
  color: #fff;
  content: "C";
  font-size: 28px;
  font-weight: 900;
  animation: hilo-card-back-reveal 560ms cubic-bezier(.14,.84,.16,1) both;
}

.hilo-status {
  display: grid;
  justify-items: center;
  gap: 3px;
  min-height: 42px;
  color: #c8d4e5;
}

.hilo-status strong {
  color: #eef5ff;
}

.hilo-status span {
  color: #a9b5c7;
  font-size: 13px;
}

.hilo-history {
  min-height: 30px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
}

.hilo-history span {
  min-width: 34px;
  padding: 5px 7px;
  border: 1px solid #2a364b;
  border-radius: 5px;
  background: #172234;
  color: #dbe6f5;
  font-size: 12px;
  font-weight: 850;
}

.hilo-history span.red {
  color: #ff637d;
}

.hilo-side-card {
  position: absolute;
  z-index: 1;
  top: 100px;
  display: grid;
  justify-items: center;
  gap: 8px;
  opacity: 0.42;
}

.hilo-side-card.highest {
  left: 28px;
}

.hilo-side-card.lowest {
  right: 28px;
}

.hilo-side-card .playing-card {
  width: 88px;
  height: 126px;
  border-color: #34445b;
  color: #92a1b6;
  font-size: 26px;
}

.hilo-side-card span {
  color: #748299;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.25;
  text-align: center;
  text-transform: uppercase;
}

.hilo-predictions {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.hilo-prediction,
.hilo-skip-stage {
  min-height: 66px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 5px 10px;
  padding: 14px 18px;
  border: 1px solid #263348;
  border-radius: 6px;
  background: #172234;
  color: #dbe6f5;
  cursor: pointer;
  font-size: 13px;
  text-align: left;
  appearance: none;
}

.hilo-prediction:hover:not(:disabled),
.hilo-skip-stage:hover:not(:disabled) {
  border-color: #3c5576;
  background: #1b2940;
}

.hilo-prediction:disabled,
.hilo-skip-stage:disabled {
  cursor: not-allowed;
  opacity: 0.58;
}

.hilo-prediction span,
.hilo-skip-stage span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-weight: 850;
}

.hilo-prediction strong,
.hilo-skip-stage strong {
  justify-self: end;
  color: #eef5ff;
}

.hilo-prediction em,
.hilo-skip-stage em {
  grid-column: 1 / -1;
  color: #9facbf;
  font-style: normal;
  font-weight: 800;
}

.hilo-prediction.higher svg {
  color: #e7b638;
}

.hilo-prediction.lower svg {
  color: #a873ff;
}

.hilo-prediction.selected {
  border-color: #22d96d;
  box-shadow: inset 0 0 0 1px rgba(34, 217, 109, 0.72);
}

.hilo-skip-stage {
  background: #141d2b;
}

.hilo-skip-stage span svg {
  color: #61d5ff;
}

.hilo-payout-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 12px 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #131d2b;
  color: #aeb9ca;
  font-size: 12px;
  font-weight: 850;
}

.hilo-payout-box strong {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #eef5ff;
}

.hilo-layout .bet-panel .button span {
  margin-left: auto;
  color: #b6c2d3;
  font-size: 12px;
}

@keyframes hilo-card-deal {
  from {
    opacity: 0;
    transform: translateY(-48px) rotate(3deg) scale(0.9);
  }

  55% {
    opacity: 1;
    transform: translateY(8px) rotate(1deg) scale(1.02);
  }

  to {
    opacity: 1;
    transform: translateY(0) rotate(0) scale(1);
  }
}

@keyframes hilo-card-back-reveal {
  0%,
  58% {
    opacity: 1;
  }

  76%,
  100% {
    opacity: 0;
  }
}

.roulette-wheel {
  width: min(310px, 70vw);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border: 32px solid #8f2450;
  border-radius: 50%;
  background: #0d0912;
  box-shadow: inset 0 0 0 24px #3b2a46, 0 12px 40px rgba(0, 0, 0, 0.35);
  transition: transform 1.3s cubic-bezier(.16,.68,.15,1);
}

.roulette-wrap {
  position: relative;
  display: grid;
  place-items: center;
}

.roulette-pointer {
  position: absolute;
  z-index: 2;
  top: -12px;
  width: 0;
  height: 0;
  border-right: 12px solid transparent;
  border-left: 12px solid transparent;
  border-top: 22px solid var(--gold);
}

.roulette-ball {
  position: absolute;
  top: 18px;
  left: 50%;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: #eef4ff;
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.8);
}

.roulette-wheel::before {
  width: 78px;
  height: 78px;
  border: 14px solid var(--gold);
  border-radius: 50%;
  content: "";
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 7px;
  margin-top: 15px;
}

.chip {
  min-width: 42px;
  padding: 7px 8px;
  border: 2px solid #f2d66f;
  border-radius: 999px;
  background: radial-gradient(circle at 35% 25%, #fff2a0, #d69b2c 58%, #7c4216);
  color: #201006;
  font-size: 11px;
  font-weight: 900;
  text-align: center;
}

.wheel-stage {
  width: 100%;
  min-height: 600px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding: 28px 18px 0;
  background: radial-gradient(circle at 50% 26%, rgba(45, 57, 78, 0.42), transparent 35%), #101923;
}

.wheel-game {
  position: relative;
  display: grid;
  place-items: center;
  width: min(430px, 72vw);
  aspect-ratio: 1;
  margin-bottom: 28px;
}

.wheel-pointer {
  position: absolute;
  z-index: 4;
  top: -18px;
  left: 50%;
  width: 38px;
  height: 54px;
  border-radius: 24px 24px 18px 18px;
  background: linear-gradient(180deg, #ff6685 0%, #e73461 62%, #a81c43 100%);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.38), inset 0 2px 7px rgba(255, 255, 255, 0.26);
  clip-path: polygon(50% 0, 82% 18%, 78% 46%, 57% 100%, 43% 100%, 22% 46%, 18% 18%);
  transform: translateX(-50%);
}

.wheel-pointer::after {
  position: absolute;
  top: 10px;
  left: 50%;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.23);
  content: "";
  transform: translateX(-50%);
}

.wheel-disc {
  position: relative;
  width: 100%;
  height: 100%;
  border: 12px solid #27364c;
  border-radius: 50%;
  background: var(--wheel-bg);
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.34), inset 0 0 0 8px rgba(64, 78, 103, 0.88);
  transform: rotate(var(--wheel-rotation));
}

.wheel-game.spinning .wheel-disc {
  animation: wheel-spin var(--wheel-spin-duration, 3600ms) cubic-bezier(.12,.78,.11,1) forwards;
}

.wheel-disc::before {
  position: absolute;
  inset: 11%;
  border-radius: 50%;
  background: #1b2332;
  box-shadow: inset 0 0 0 16px rgba(12, 18, 28, 0.64), 0 0 0 1px rgba(255, 255, 255, 0.05);
  content: "";
}

.wheel-disc::after {
  position: absolute;
  inset: 39%;
  border: 2px solid #435069;
  border-radius: 50%;
  background: #1c2432;
  content: "";
}

.wheel-hub {
  position: absolute;
  inset: 42%;
  z-index: 2;
  border-radius: 50%;
  background: #1d2634;
}

.wheel-payout-row {
  width: min(700px, 100%);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(92px, 1fr));
  gap: 7px;
  margin-top: 4px;
}

.wheel-payout-tile {
  position: relative;
  min-height: 45px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.035);
  border-radius: 6px 6px 3px 3px;
  background: #202b3b;
  color: #f6f9ff;
  font-size: 16px;
  font-weight: 900;
}

.wheel-payout-tile::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 4px;
  background: var(--tile-color);
  content: "";
}

.wheel-payout-tile.result {
  border-color: color-mix(in srgb, var(--tile-color) 52%, rgba(255, 255, 255, 0.08));
  background: linear-gradient(180deg, color-mix(in srgb, var(--tile-color) 28%, #202b3b), #202b3b);
}

.wheel-status {
  min-height: 28px;
  margin: 12px 0 8px;
  color: #aeb9cb;
  font-size: 13px;
  font-weight: 750;
}

.wheel-status.win {
  color: #80f0b2;
}

.wheel-status.loss {
  color: #f18a9b;
}

.wheel-controls {
  width: min(700px, 100%);
  display: grid;
  gap: 11px;
  margin: 0 auto;
}

.wheel-controls .segmented {
  padding: 7px;
  border-color: rgba(255, 255, 255, 0.04);
  background: #101724;
}

.wheel-controls .segmented button {
  min-height: 39px;
  border: 0;
  background: transparent;
  color: #d9e3f2;
}

.wheel-controls .segmented button.active {
  background: #253348;
  color: #ffffff;
}

.wheel-controls .button.primary {
  border-color: #1685dc;
  background: #1284e3;
  color: #ffffff;
}

.wheel-controls .amount-input,
.wheel-controls .field select {
  border-color: rgba(255, 255, 255, 0.04);
  background: #223147;
}

.wheel-fair-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 2px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  color: #c7d3e5;
  font-size: 13px;
  font-weight: 800;
}

.wheel-fair-row span,
.wheel-fair-row div {
  display: flex;
  align-items: center;
  gap: 8px;
}

@keyframes wheel-spin {
  from {
    transform: rotate(var(--wheel-spin-from));
  }

  to {
    transform: rotate(var(--wheel-spin-to));
  }
}

.roulette-stage {
  width: min(780px, 100%);
  display: grid;
  justify-items: center;
  gap: 16px;
}

.roulette-history {
  min-height: 31px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
}

.roulette-history span,
.muted-pill {
  min-width: 31px;
  height: 31px;
  display: grid;
  place-items: center;
  border-radius: 5px;
  background: #273347;
  color: #dfe9f7;
  font-size: 12px;
  font-weight: 900;
}

.roulette-history .red {
  background: #de124b;
}

.roulette-history .black {
  background: #30394c;
}

.roulette-history .green {
  background: #26be47;
  color: #07130b;
}

.muted-pill {
  width: auto;
  padding: 0 10px;
  color: var(--muted);
}

.roulette-wheel-wrap {
  position: relative;
  width: min(330px, 72vw);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
}

.roulette-wheel-real {
  width: 100%;
  height: 100%;
  overflow: visible;
  filter: drop-shadow(0 24px 38px rgba(0, 0, 0, 0.44));
}

.roulette-shadow-ring {
  fill: #101722;
  stroke: #1d2839;
  stroke-width: 14;
}

.roulette-spin-layer,
.roulette-idle-layer {
  transform-box: view-box;
  transform-origin: 160px 160px;
}

.roulette-idle-layer {
  animation: roulette-idle-spin 10.6s linear infinite;
}

.roulette-wheel-wrap.spinning .roulette-idle-layer {
  animation: roulette-wheel-spin-stop var(--roulette-spin-duration, 3250ms) cubic-bezier(.12,.78,.1,1) forwards;
}

.roulette-wheel-wrap.recent-spin:not(.spinning) .roulette-idle-layer {
  animation: roulette-wheel-after-land 10.6s linear 2.2s infinite both;
}

.roulette-svg-pocket path {
  stroke: #172233;
  stroke-width: 1.2;
}

.roulette-svg-pocket.red path {
  fill: #df0e4a;
}

.roulette-svg-pocket.black path {
  fill: #323b50;
}

.roulette-svg-pocket.green path {
  fill: #30c650;
}

.roulette-svg-pocket text {
  fill: #ffffff;
  font-size: 10px;
  font-weight: 950;
  letter-spacing: 0;
  pointer-events: none;
  text-anchor: middle;
  dominant-baseline: middle;
}

.roulette-svg-pocket.green text {
  fill: #06130b;
}

.roulette-center circle:first-child {
  fill: #0c111b;
  stroke: #101722;
  stroke-width: 18;
}

.roulette-center path {
  fill: none;
  stroke: #f3c532;
  stroke-linecap: round;
  stroke-width: 5;
}

.roulette-center circle:last-child {
  fill: #0c111b;
  stroke: #f3c532;
  stroke-width: 8;
}

.roulette-ball-orbit {
  position: absolute;
  inset: 0;
  z-index: 3;
  border-radius: 50%;
  animation: roulette-ball-spin 6.2s linear infinite reverse;
  pointer-events: none;
}

.roulette-wheel-wrap.spinning .roulette-ball-orbit {
  animation: roulette-ball-spin-stop var(--roulette-spin-duration, 3250ms) cubic-bezier(.08,.78,.12,1) forwards;
}

.roulette-wheel-wrap.recent-spin:not(.spinning) .roulette-ball-orbit {
  animation: roulette-ball-after-land 6.2s linear 2.2s infinite reverse both;
}

.roulette-wheel-ball {
  position: absolute;
  top: 43px;
  left: 50%;
  width: 15px;
  height: 15px;
  margin-left: -7.5px;
  border-radius: 50%;
  background: #f7fbff;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.88);
}

.roulette-wheel-wrap.recent-spin .roulette-wheel-ball {
  animation: roulette-ball-pop 760ms cubic-bezier(.18,.92,.22,1) both;
}

.roulette-result-badge {
  position: absolute;
  inset: 38%;
  display: grid;
  place-items: center;
  border: 8px solid #efc338;
  border-radius: 50%;
  background: #101721;
  color: #f4d45e;
  font-size: 24px;
  font-weight: 950;
  box-shadow: 0 12px 20px rgba(0, 0, 0, 0.36);
}

.roulette-result-badge.red {
  color: #ffecf1;
}

.roulette-result-badge.black {
  color: #eef4ff;
}

.roulette-result-badge.green {
  color: #cfffda;
}

.roulette-wheel-wrap.recent-spin .roulette-result-badge {
  animation: roulette-result-pop 720ms cubic-bezier(.18,.92,.22,1) both;
}

@keyframes roulette-idle-spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes roulette-ball-spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes roulette-wheel-spin-stop {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(var(--roulette-wheel-stop));
  }
}

@keyframes roulette-ball-spin-stop {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(calc(-1 * var(--roulette-ball-stop)));
  }
}

@keyframes roulette-wheel-after-land {
  from {
    transform: rotate(var(--roulette-wheel-rest));
  }

  to {
    transform: rotate(calc(var(--roulette-wheel-rest) + 360deg));
  }
}

@keyframes roulette-ball-after-land {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

@keyframes roulette-result-pop {
  0% {
    opacity: 0.35;
    transform: scale(0.86);
  }

  55% {
    opacity: 1;
    transform: scale(1.1);
  }

  100% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes roulette-ball-pop {
  0% {
    filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.72));
    transform: scale(0.86);
  }

  55% {
    filter: drop-shadow(0 0 16px rgba(255, 255, 255, 0.96));
    transform: scale(1.32);
  }

  100% {
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.88));
    transform: scale(1);
  }
}

.roulette-grid {
  display: grid;
  grid-template-columns: 58px repeat(12, minmax(36px, 1fr)) 48px;
  grid-template-rows: repeat(3, 42px) 42px 42px;
  gap: 4px;
  width: min(760px, 100%);
}

.roulette-cell {
  position: relative;
  min-width: 0;
  min-height: 40px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 5px;
  background: #263145;
  color: #eef4ff;
  cursor: pointer;
  font-size: 12px;
  font-weight: 900;
  overflow: visible;
  transition: transform 120ms ease, filter 120ms ease, box-shadow 120ms ease;
}

.roulette-cell:hover {
  filter: brightness(1.14);
  transform: translateY(-1px);
}

.roulette-cell:disabled,
.roulette-chip:disabled,
.roulette-total-box button:disabled,
.roulette-table-actions button:disabled {
  cursor: not-allowed;
  opacity: 0.58;
}

.roulette-cell:disabled:hover {
  filter: none;
  transform: none;
}

.roulette-cell.red {
  background: #dd0d48;
}

.roulette-cell.black {
  background: #31394d;
}

.roulette-cell.green {
  background: #2bc546;
  color: #07110b;
}

.roulette-cell.outside {
  background: #243049;
}

.roulette-cell.swatch.red,
.roulette-cell.swatch.black {
  color: transparent;
}

.roulette-cell.swatch.red::before,
.roulette-cell.swatch.black::before {
  width: 44px;
  height: 26px;
  border-radius: 5px;
  content: "";
}

.roulette-cell.swatch.red::before {
  background: #dd0d48;
}

.roulette-cell.swatch.black::before {
  background: #3a4058;
}

.roulette-cell.selected {
  box-shadow: inset 0 0 0 2px rgba(245, 201, 63, 0.92), 0 8px 18px rgba(0, 0, 0, 0.28);
}

.roulette-chip-stack {
  position: absolute;
  z-index: 2;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 2px dashed rgba(255, 255, 255, 0.72);
  border-radius: 999px;
  background: radial-gradient(circle at 35% 28%, #fff6a9, #f4c23d 42%, #d5791d 70%, #7b3912);
  color: #241006;
  font-size: 9px;
  font-weight: 950;
  letter-spacing: 0;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.35);
}

.roulette-table-actions {
  width: min(760px, 100%);
  display: flex;
  justify-content: space-between;
}

.roulette-table-actions button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 0;
  background: transparent;
  color: #aeb9ca;
  cursor: pointer;
  font-weight: 750;
}

.roulette-chip-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 14px 0 8px;
  color: #cbd5e5;
  font-size: 12px;
  font-weight: 800;
}

.roulette-chip-heading strong {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #eef5ff;
}

.roulette-chip-tray {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  place-items: center;
  gap: 8px;
  margin-bottom: 14px;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #202b3e;
}

.roulette-chip {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 2px dashed rgba(255, 255, 255, 0.68);
  border-radius: 50%;
  background: radial-gradient(circle at 35% 28%, #fff6a9, #f5ca45 42%, #df7d23 72%, #7d3913);
  color: #241006;
  cursor: pointer;
  font-size: 10px;
  font-weight: 950;
  letter-spacing: 0;
  line-height: 1;
}

.roulette-chip.active {
  border-color: #fff8c8;
  box-shadow: 0 0 0 3px rgba(245, 201, 63, 0.22), 0 10px 20px rgba(0, 0, 0, 0.28);
}

.roulette-total-box {
  display: grid;
  grid-template-columns: 48px 1fr auto auto;
  align-items: center;
  margin-bottom: 13px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--panel-2);
  overflow: hidden;
}

.roulette-total-box > span {
  height: 46px;
  display: grid;
  place-items: center;
  border-right: 1px solid var(--line);
  background: #171120;
}

.roulette-total-box strong {
  min-width: 0;
  padding: 0 10px;
  color: #fff;
  font-weight: 800;
}

.roulette-total-box button {
  height: 46px;
  padding: 0 10px;
  border: 0;
  background: transparent;
  color: #c6d0df;
  cursor: pointer;
}

.roulette-selected {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}

.roulette-selected span {
  padding: 6px 8px;
  border-radius: 4px;
  background: #20182c;
  color: #aeb9ca;
  font-size: 11px;
  font-weight: 750;
}

.roulette-selected b {
  color: #f4d35f;
}

.mines-grid,
.tower-grid,
.keno-grid {
  display: grid;
  gap: 7px;
}

.mines-grid {
  width: min(480px, 90vw);
  grid-template-columns: repeat(5, 1fr);
}

.mine-cell,
.keno-cell,
.tower-cell {
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border: 1px solid #58436a;
  border-radius: 5px;
  background: #2c2038;
  cursor: pointer;
  font-weight: 850;
}

.mine-cell.revealed {
  background: #187f68;
}

.mine-cell.mine {
  background: #b92e4e;
}

.mines-stage {
  position: relative;
  width: 100%;
  min-height: 600px;
  display: grid;
  place-items: center;
  padding: 32px 18px;
  overflow: hidden;
  background: linear-gradient(180deg, #143d5b 0%, #0d2639 52%, #091722 100%);
}

.mines-stage::before {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 28% 38%, rgba(80, 175, 222, 0.18), transparent 18%),
    radial-gradient(circle at 72% 68%, rgba(91, 158, 104, 0.16), transparent 18%);
  content: "";
}

.mines-jelly {
  position: absolute;
  z-index: 1;
  left: max(8px, 4%);
  bottom: 8%;
  width: 92px;
  height: 260px;
  opacity: 0.72;
  filter: drop-shadow(0 0 18px rgba(218, 114, 227, 0.3));
}

.mines-jelly::before {
  position: absolute;
  top: 0;
  left: 10px;
  width: 70px;
  height: 62px;
  border-radius: 52% 48% 42% 44%;
  background:
    radial-gradient(circle at 62% 35%, rgba(255, 255, 255, 0.18) 0 12px, transparent 13px),
    linear-gradient(135deg, #a84cc6, #f08cdc 58%, #8940b3);
  content: "";
}

.mines-jelly::after {
  position: absolute;
  top: 54px;
  left: 18px;
  width: 58px;
  height: 198px;
  background:
    linear-gradient(90deg, transparent 0 7px, #c964d5 8px 14px, transparent 15px 22px, #f08cdc 23px 29px, transparent 30px 38px, #a84cc6 39px 45px, transparent 46px),
    repeating-linear-gradient(180deg, transparent 0 18px, rgba(255, 255, 255, 0.13) 19px 22px, transparent 23px 38px);
  clip-path: polygon(0 0, 100% 0, 74% 100%, 57% 72%, 40% 100%, 22% 68%);
  content: "";
}

.mines-seaweed {
  position: absolute;
  right: max(16px, 10%);
  bottom: 4%;
  width: 120px;
  height: 120px;
  opacity: 0.65;
}

.mines-seaweed::before,
.mines-seaweed::after {
  position: absolute;
  bottom: 0;
  width: 42px;
  height: 106px;
  border-radius: 50% 50% 8px 8px;
  background: linear-gradient(180deg, #71955d, #304c38);
  content: "";
}

.mines-seaweed::before {
  left: 10px;
  transform: rotate(-18deg);
}

.mines-seaweed::after {
  right: 12px;
  transform: rotate(24deg);
}

.mines-board {
  position: relative;
  z-index: 2;
  width: min(535px, 82vw);
  padding: 14px;
  border-radius: 8px;
  background: #111823;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.42), inset 0 0 0 1px rgba(255, 255, 255, 0.03);
}

.mines-stage .mines-grid {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(var(--mine-cols), minmax(0, 1fr));
  gap: 7px;
}

.mines-stage .mine-cell {
  position: relative;
  min-width: 0;
  overflow: hidden;
  border: 0;
  border-radius: 7px;
  background: #1f2c3f;
  box-shadow: inset 0 -5px 0 rgba(9, 14, 22, 0.3), 0 2px 0 rgba(0, 0, 0, 0.25);
  transition: transform 130ms ease, background 130ms ease, box-shadow 130ms ease;
}

.mines-stage .mine-cell:not(:disabled):hover {
  background: #26374f;
  transform: translateY(-2px);
}

.mines-stage .mine-cell.revealed {
  background: #101824;
  box-shadow: inset 0 0 28px rgba(31, 232, 239, 0.12), 0 0 0 1px rgba(76, 234, 240, 0.05);
  cursor: default;
}

.mines-stage .mine-cell.last {
  animation: mine-reveal-pop 260ms ease both;
}

.mine-safe {
  display: grid;
  place-items: center;
  width: 72%;
  height: 72%;
  border-radius: 8px;
  background: radial-gradient(circle, rgba(54, 246, 248, 0.34), rgba(15, 184, 206, 0.1) 58%, transparent 70%);
  box-shadow: 0 0 18px rgba(57, 245, 246, 0.38);
}

.mine-safe .currency-icon {
  filter: drop-shadow(0 0 8px rgba(52, 243, 245, 0.75));
}

.mines-stage .mine-cell.mine {
  background: #11151e;
  box-shadow: inset 0 0 24px rgba(255, 93, 132, 0.16);
}

.mine-bomb {
  width: 64%;
  height: 64%;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 28%, rgba(255, 255, 255, 0.18) 0 8%, transparent 9%),
    radial-gradient(circle, #d7658a 0 12%, #7b304e 13% 62%, #391925 63%);
  color: #ffadc6;
  box-shadow: 0 0 18px rgba(255, 83, 127, 0.32);
}

.mines-controls {
  width: min(700px, 100%);
  display: grid;
  gap: 11px;
  margin: 0 auto;
}

.mines-controls .segmented {
  padding: 7px;
  border-color: rgba(255, 255, 255, 0.04);
  background: #101724;
}

.mines-controls .segmented button {
  min-height: 39px;
  border: 0;
  background: transparent;
  color: #d9e3f2;
}

.mines-controls .segmented button.active {
  background: #253348;
  color: #fff;
}

.mines-controls .button.primary {
  border-color: #1685dc;
  background: #1284e3;
  color: #fff;
}

.mines-controls .button.primary:disabled,
.mines-controls .button:disabled {
  opacity: 0.58;
}

.mines-controls .amount-input {
  border-color: rgba(255, 255, 255, 0.04);
  background: #223147;
}

.mines-slider-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: #d8e2f0;
  font-size: 13px;
  font-weight: 800;
}

.mines-slider {
  width: 100%;
  accent-color: #178be8;
}

.mines-grid-size {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  overflow: hidden;
  border-radius: 6px;
  background: #101724;
}

.mines-grid-size button {
  min-height: 40px;
  border: 0;
  border-right: 1px solid rgba(255, 255, 255, 0.04);
  background: transparent;
  color: #d6dfef;
  cursor: pointer;
  font-weight: 800;
}

.mines-grid-size button:last-child {
  border-right: 0;
}

.mines-grid-size button.active {
  background: #243348;
  color: #fff;
}

.mine-random-button {
  border-color: rgba(255, 255, 255, 0.04);
  background: #223147;
}

.mines-info-field {
  display: grid;
  gap: 7px;
}

.mines-info-field label {
  color: #d8e2f0;
  font-size: 13px;
  font-weight: 800;
}

.mines-info-field div {
  min-height: 42px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border-radius: 6px;
  background: #223147;
  color: #f8fbff;
  font-weight: 850;
}

.mines-fair-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 2px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  color: #c7d3e5;
  font-size: 13px;
  font-weight: 800;
}

.mines-fair-row span,
.mines-fair-row div {
  display: flex;
  align-items: center;
  gap: 8px;
}

@keyframes mine-reveal-pop {
  0% {
    transform: scale(0.82);
    filter: brightness(1.6);
  }

  100% {
    transform: scale(1);
    filter: brightness(1);
  }
}

.stat-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 16px;
}

.stat-strip span {
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: rgba(22, 16, 31, 0.92);
  color: #d9e2ef;
  font-size: 12px;
  font-weight: 800;
}

.keno-stage {
  position: relative;
  width: 100%;
  min-height: 600px;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 9px;
  overflow: hidden;
  padding: 54px 16px 30px;
  background:
    radial-gradient(circle at 50% 12%, rgba(37, 72, 116, 0.28), transparent 22%),
    linear-gradient(180deg, #101923 0%, #0f1824 100%);
}

.keno-board {
  position: relative;
  z-index: 2;
  width: min(600px, 86vw);
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 8px;
}

.keno-stage .keno-cell {
  position: relative;
  min-width: 0;
  min-height: 68px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.035);
  border-radius: 6px;
  background: #1b2637;
  color: #e3edf8;
  font-size: 14px;
  font-weight: 900;
  box-shadow: inset 0 -5px 0 rgba(8, 13, 21, 0.26);
  transition: transform 120ms ease, background 130ms ease, border-color 130ms ease, color 130ms ease;
}

.keno-stage .keno-cell:not(:disabled):hover {
  background: #24344b;
  transform: translateY(-1px);
}

.keno-stage .keno-cell.selected {
  border-color: rgba(18, 132, 227, 0.72);
  background: #1284e3;
  color: #ffffff;
  box-shadow: inset 0 -5px 0 rgba(7, 83, 150, 0.32), 0 0 0 1px rgba(18, 132, 227, 0.18);
}

.keno-stage .keno-cell.drawn {
  border-color: rgba(255, 47, 97, 0.1);
  background: #0e141e;
  color: #c51c51;
  animation: keno-draw-pop 240ms ease both;
  animation-delay: var(--keno-delay, 0ms);
}

.keno-stage .keno-cell.missed-pick {
  background: #113457;
  color: #9ecfff;
}

.keno-stage .keno-cell.hit {
  border-color: #35df67;
  background: #173520;
  color: #35df67;
  box-shadow: 0 0 0 1px rgba(53, 223, 103, 0.3), 0 0 22px rgba(53, 223, 103, 0.18), inset 0 0 18px rgba(53, 223, 103, 0.08);
  animation: keno-hit-pop 320ms ease both;
  animation-delay: var(--keno-delay, 0ms);
}

.keno-empty {
  position: relative;
  z-index: 2;
  width: min(670px, 90vw);
  min-height: 84px;
  display: grid;
  place-items: center;
  border-radius: 6px;
  background: #1d2b3f;
  color: #bfcbdc;
  font-size: 14px;
  font-weight: 750;
}

.keno-payout-table {
  position: relative;
  z-index: 2;
  width: min(670px, 90vw);
  display: grid;
  grid-template-columns: repeat(var(--keno-payout-cols), minmax(0, 1fr));
  gap: 8px;
  margin-top: 1px;
}

.keno-payout-table span {
  min-height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 7px 6px;
  border: 1px solid rgba(255, 255, 255, 0.035);
  border-radius: 5px;
  background: #1d2b3f;
  color: #cfd9e7;
  font-size: 13px;
  font-weight: 900;
}

.keno-payout-table span.active {
  border-color: rgba(53, 223, 103, 0.7);
  background: #153527;
  color: #5cf28a;
  box-shadow: 0 0 0 1px rgba(53, 223, 103, 0.16);
}

.keno-payout-table .hit-count {
  color: #d8e4f4;
  font-size: 12px;
}

.keno-result-card {
  position: absolute;
  z-index: 4;
  left: 50%;
  top: 54%;
  min-width: 200px;
  min-height: 116px;
  display: grid;
  place-items: center;
  gap: 8px;
  padding: 18px 24px;
  border: 2px solid #35df67;
  border-radius: 8px;
  background: rgba(13, 20, 31, 0.9);
  color: #ffffff;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.38), 0 0 26px rgba(53, 223, 103, 0.12);
  transform: translate(-50%, -50%);
  animation: keno-result-pop 260ms ease both;
}

.keno-result-card.loss {
  border-color: #ff3f71;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.38), 0 0 26px rgba(255, 63, 113, 0.12);
}

.keno-result-card strong {
  color: #35df67;
  font-size: 34px;
  font-weight: 950;
}

.keno-result-card.loss strong {
  color: #ff3f71;
}

.keno-result-card span {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #dbe7f5;
  font-size: 18px;
  font-weight: 850;
}

.keno-controls {
  width: min(700px, 100%);
  display: grid;
  gap: 11px;
  margin: 0 auto;
}

.keno-controls .segmented {
  padding: 7px;
  border-color: rgba(255, 255, 255, 0.04);
  background: #101724;
}

.keno-controls .segmented button {
  min-height: 39px;
  border: 0;
  background: transparent;
  color: #d9e3f2;
}

.keno-controls .segmented button.active {
  background: #253348;
  color: #fff;
}

.keno-controls .button.primary {
  border-color: #1685dc;
  background: #1284e3;
  color: #fff;
}

.keno-controls .button:disabled {
  opacity: 0.58;
}

.keno-controls .amount-input {
  border-color: rgba(255, 255, 255, 0.04);
  background: #223147;
}

.keno-risk-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #d8e2f0;
  font-size: 13px;
  font-weight: 800;
}

.keno-risk-row strong {
  color: #f7fbff;
}

.keno-risk-slider {
  width: 100%;
  accent-color: #ffffff;
}

.keno-action-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.keno-action-row .button {
  border-color: rgba(255, 255, 255, 0.04);
  background: #223147;
}

.keno-fair-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 2px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  color: #c7d3e5;
  font-size: 13px;
  font-weight: 800;
}

.keno-fair-row span,
.keno-fair-row div {
  display: flex;
  align-items: center;
  gap: 8px;
}

@keyframes keno-draw-pop {
  from {
    opacity: 0.6;
    transform: scale(0.94);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes keno-hit-pop {
  from {
    opacity: 0.7;
    transform: scale(0.9);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes keno-result-pop {
  from {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.92);
  }

  to {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
}

.tower-stage {
  position: relative;
  width: 100%;
  min-height: 600px;
  display: grid;
  place-items: start center;
  padding: 28px 16px 18px;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 18%, rgba(130, 170, 216, 0.22), transparent 24%),
    linear-gradient(180deg, #142337 0%, #172d48 54%, #101923 100%);
}

.tower-stage::before {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.75) 0 18px, transparent 18px),
    radial-gradient(circle at 19% 74%, #e6f1ff 0 55px, transparent 56px),
    radial-gradient(circle at 77% 77%, #dcecff 0 64px, transparent 65px),
    radial-gradient(circle at 9% 88%, #bed4ef 0 82px, transparent 83px),
    radial-gradient(circle at 92% 91%, #c8ddf4 0 92px, transparent 93px);
  opacity: 0.86;
  content: "";
}

.tower-stage::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 34%;
  background:
    linear-gradient(135deg, transparent 0 34%, rgba(119, 157, 190, 0.48) 35% 46%, transparent 47%),
    linear-gradient(225deg, transparent 0 30%, rgba(78, 121, 157, 0.42) 31% 44%, transparent 45%);
  opacity: 0.42;
  content: "";
}

.tower-mountain {
  position: absolute;
  bottom: -14px;
  width: 270px;
  height: 210px;
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.84) 0 30%, rgba(172, 200, 229, 0.94) 31% 100%);
  opacity: 0.85;
  z-index: 1;
}

.tower-mountain-left {
  left: 6%;
}

.tower-mountain-right {
  right: 3%;
  transform: scaleX(-1);
}

.tower-guardian {
  position: absolute;
  z-index: 2;
  top: 4px;
  left: 50%;
  --tower-guardian-scale: 1;
  width: 310px;
  height: 178px;
  transform: translateX(-50%) scale(var(--tower-guardian-scale));
  pointer-events: none;
  filter: drop-shadow(0 16px 18px rgba(0, 0, 0, 0.32));
  animation: tower-breathe 4.2s ease-in-out infinite;
}

.tower-head {
  position: absolute;
  top: 38px;
  left: 50%;
  width: 146px;
  height: 104px;
  border-radius: 42% 42% 35% 35%;
  background:
    radial-gradient(circle at 28% 32%, rgba(255, 255, 255, 0.78) 0 15px, transparent 16px),
    radial-gradient(circle at 72% 32%, rgba(255, 255, 255, 0.74) 0 15px, transparent 16px),
    linear-gradient(180deg, #f3f6f7, #c9d1d4);
  transform: translateX(-50%);
  box-shadow: inset 0 -14px 0 rgba(101, 112, 119, 0.25);
}

.tower-head::before,
.tower-head::after {
  position: absolute;
  bottom: -22px;
  width: 64px;
  height: 54px;
  border-radius: 0 0 50% 50%;
  background: linear-gradient(180deg, #f1f4f4, #c6d1d3);
  content: "";
}

.tower-head::before {
  left: -36px;
  transform: rotate(22deg);
}

.tower-head::after {
  right: -36px;
  transform: rotate(-22deg);
}

.tower-hat {
  position: absolute;
  top: -30px;
  left: 45px;
  width: 72px;
  height: 48px;
  border-radius: 14px 14px 10px 10px;
  background: linear-gradient(180deg, #e8772d, #a54822);
  transform: rotate(7deg);
}

.tower-hat::before {
  position: absolute;
  top: -17px;
  left: 47px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #f19b36;
  content: "";
}

.tower-eye {
  position: absolute;
  top: 38px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: radial-gradient(circle at 55% 52%, #080b12 0 5px, white 6px 100%);
  z-index: 2;
}

.tower-eye.left {
  left: 48px;
}

.tower-eye.right {
  right: 42px;
}

.tower-nose {
  position: absolute;
  top: 54px;
  left: 59px;
  width: 37px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(180deg, #8352a4, #562a6f);
  z-index: 3;
}

.tower-mouth {
  position: absolute;
  left: 46px;
  bottom: 13px;
  width: 58px;
  height: 19px;
  border: 4px solid #513039;
  border-top: 0;
  border-radius: 0 0 40px 40px;
}

.tower-arm {
  position: absolute;
  top: 46px;
  width: 72px;
  height: 110px;
  border-radius: 40px;
  background:
    radial-gradient(circle at 50% 16%, rgba(255, 255, 255, 0.86) 0 23px, transparent 24px),
    linear-gradient(180deg, #eff3f4, #c8d1d3);
  box-shadow: inset 0 -12px 0 rgba(98, 109, 115, 0.18);
}

.tower-arm.left {
  left: 24px;
  transform: rotate(25deg);
}

.tower-arm.right {
  right: 24px;
  transform: rotate(-25deg);
}

.tower-guardian.tower-qbee {
  z-index: 4;
  top: 8px;
  width: 238px;
  height: 166px;
  display: grid;
  place-items: start center;
  filter: drop-shadow(0 17px 20px rgba(0, 0, 0, 0.34));
}

.tower-qbee img {
  position: relative;
  z-index: 3;
  width: 168px;
  height: auto;
  margin-top: 1px;
}

.tower-qbee-glow {
  position: absolute;
  z-index: 1;
  top: 18px;
  width: 178px;
  height: 112px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(90, 229, 136, 0.24), transparent 66%);
  filter: blur(2px);
}

.tower-qbee-block {
  position: absolute;
  z-index: 2;
  bottom: 1px;
  width: 176px;
  height: 72px;
  border-radius: 12px;
  background:
    linear-gradient(145deg, #5fe282 0 36%, #33ac5e 37% 52%, #a26a3c 53% 100%);
  box-shadow:
    inset 0 0 0 4px rgba(255, 255, 255, 0.08),
    inset 0 -28px 0 rgba(87, 56, 33, 0.22),
    0 16px 34px rgba(0, 0, 0, 0.34);
  transform: perspective(260px) rotateX(58deg) rotateZ(45deg);
}

.tower-board {
  position: relative;
  z-index: 3;
  width: min(400px, 84vw);
  margin-top: 168px;
  padding: 38px 15px 15px;
  border-radius: 0 0 8px 8px;
  background: #0d1420;
  box-shadow:
    0 18px 42px rgba(0, 0, 0, 0.44),
    inset 0 0 0 1px rgba(255, 255, 255, 0.03);
}

.tower-icecap {
  position: absolute;
  top: -24px;
  right: -2px;
  left: -2px;
  height: 50px;
  background:
    radial-gradient(circle at 6% 42%, #fff 0 14px, transparent 15px),
    radial-gradient(circle at 20% 40%, #fff 0 17px, transparent 18px),
    radial-gradient(circle at 38% 35%, #fff 0 13px, transparent 14px),
    radial-gradient(circle at 58% 42%, #fff 0 17px, transparent 18px),
    radial-gradient(circle at 76% 38%, #fff 0 14px, transparent 15px),
    radial-gradient(circle at 93% 42%, #fff 0 16px, transparent 17px),
    linear-gradient(180deg, #fff 0 34px, transparent 35px);
  filter: drop-shadow(0 5px 0 rgba(180, 205, 229, 0.72));
}

.tower-stage .tower-grid {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(var(--tower-cols), minmax(0, 1fr));
  gap: 8px;
}

.tower-stage .tower-cell {
  position: relative;
  min-width: 0;
  min-height: 36px;
  aspect-ratio: 2.35 / 1;
  overflow: hidden;
  border: 1px solid transparent;
  border-radius: 6px;
  background: #172130;
  box-shadow: inset 0 -5px 0 rgba(8, 12, 19, 0.28), 0 2px 0 rgba(0, 0, 0, 0.18);
  color: #dce8f4;
  cursor: default;
  transition: transform 140ms ease, background 140ms ease, border-color 140ms ease, box-shadow 140ms ease;
}

.tower-stage .tower-cell.current {
  border-color: #0875e5;
  background: rgba(8, 117, 229, 0.5);
  box-shadow: inset 0 -5px 0 rgba(6, 74, 145, 0.32), 0 0 0 1px rgba(8, 117, 229, 0.34), 0 0 18px rgba(8, 117, 229, 0.18);
  cursor: pointer;
}

.tower-stage .tower-cell.current:hover {
  background: rgba(15, 133, 246, 0.68);
  transform: translateY(-1px);
}

.tower-stage .tower-cell.safe {
  background: #182434;
  box-shadow: inset 0 0 18px rgba(26, 233, 245, 0.08);
}

.tower-gem,
.tower-trap {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
}

.tower-gem {
  filter: drop-shadow(0 0 9px rgba(47, 235, 247, 0.68));
  animation: tower-reveal-pop 280ms ease both;
}

.tower-trap {
  color: #eef1ef;
  filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.26));
  animation: tower-reveal-pop 280ms ease both;
}

.tower-stage .tower-cell.bad {
  background: #1a1f2b;
  box-shadow: inset 0 0 16px rgba(255, 62, 117, 0.12);
}

.tower-stage .tower-cell.bad.last {
  border-color: #e11665;
  background: #4a1832;
  box-shadow: 0 0 0 1px rgba(225, 22, 101, 0.4), 0 0 18px rgba(225, 22, 101, 0.2);
}

.tower-controls {
  width: min(700px, 100%);
  display: grid;
  gap: 11px;
  margin: 0 auto;
}

.tower-controls .segmented {
  padding: 7px;
  border-color: rgba(255, 255, 255, 0.04);
  background: #101724;
}

.tower-controls .segmented button {
  min-height: 39px;
  border: 0;
  background: transparent;
  color: #d9e3f2;
}

.tower-controls .segmented button.active {
  background: #253348;
  color: #fff;
}

.tower-controls .button.primary {
  border-color: #1685dc;
  background: #1284e3;
  color: #fff;
}

.tower-controls .button.primary:disabled,
.tower-controls .button:disabled {
  opacity: 0.58;
}

.tower-controls .amount-input,
.tower-controls .field select {
  border-color: rgba(255, 255, 255, 0.04);
  background: #223147;
}

.tower-random-button {
  border-color: rgba(255, 255, 255, 0.04);
  background: #223147;
}

.tower-info-field {
  display: grid;
  gap: 7px;
}

.tower-info-field label {
  color: #d8e2f0;
  font-size: 13px;
  font-weight: 800;
}

.tower-info-field div {
  min-height: 42px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border-radius: 6px;
  background: #223147;
  color: #f8fbff;
  font-weight: 850;
}

.tower-fair-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 2px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  color: #c7d3e5;
  font-size: 13px;
  font-weight: 800;
}

.tower-fair-row span,
.tower-fair-row div {
  display: flex;
  align-items: center;
  gap: 8px;
}

.coinflip-stage {
  position: relative;
  width: 100%;
  min-height: 310px;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 16%, rgba(216, 165, 45, 0.14), transparent 24%),
    linear-gradient(180deg, #101923 0%, #0d1420 100%);
}

.coinflip-stage::before {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.06) 0 1px, transparent 2px),
    radial-gradient(circle at 72% 21%, rgba(255, 255, 255, 0.05) 0 1px, transparent 2px),
    linear-gradient(180deg, transparent 0 64%, rgba(28, 41, 58, 0.78) 65% 100%);
  content: "";
}

.coinflip-toss-zone {
  position: relative;
  z-index: 2;
  height: 188px;
  display: grid;
  place-items: center;
}

.coinflip-main-coin {
  width: 118px;
  height: 118px;
  display: grid;
  place-items: center;
  perspective: 680px;
  opacity: 0.95;
}

.coinflip-stage:not(.active) .coinflip-main-coin {
  opacity: 0.72;
}

.coinflip-flips {
  position: absolute;
  left: 50%;
  bottom: 13px;
  color: #d7e2f0;
  font-size: 14px;
  font-weight: 800;
  transform: translateX(-50%);
}

.coinflip-ladder {
  position: relative;
  z-index: 3;
  height: 122px;
  display: flex;
  gap: 11px;
  align-items: center;
  overflow-x: auto;
  padding: 14px 18px 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  background: #142031;
  scrollbar-width: thin;
}

.coinflip-step {
  flex: 0 0 90px;
  height: 90px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 44%, rgba(38, 53, 76, 0.9), rgba(13, 20, 31, 0.96) 66%),
    #0d1420;
  color: #e5edf8;
  font-size: 13px;
  font-weight: 950;
  box-shadow: inset 0 -7px 0 rgba(0, 0, 0, 0.2);
}

.coinflip-step.complete,
.coinflip-step.pending {
  background: transparent;
  box-shadow: none;
}

.coinflip-step.lost {
  filter: drop-shadow(0 0 12px rgba(255, 76, 124, 0.22));
}

.coin-face {
  position: relative;
  width: 74px;
  height: 74px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 5px solid #f7d65b;
  background:
    radial-gradient(circle at 32% 25%, rgba(255, 255, 255, 0.78) 0 8px, transparent 9px),
    radial-gradient(circle at 50% 52%, #f4c72f 0 47%, #d99a16 48% 72%, #986b12 73% 100%);
  color: #6a4308;
  font-size: 27px;
  font-weight: 950;
  box-shadow:
    inset 0 -8px 0 rgba(111, 70, 7, 0.2),
    0 8px 16px rgba(0, 0, 0, 0.28);
  transform-style: preserve-3d;
}

.coin-face::before {
  position: absolute;
  inset: 12px;
  border-radius: 50%;
  border: 3px dashed rgba(112, 73, 7, 0.32);
  content: "";
}

.coin-face span {
  position: relative;
  z-index: 2;
}

.coin-face.tails {
  border-color: #d5dce5;
  background:
    radial-gradient(circle at 32% 25%, rgba(255, 255, 255, 0.86) 0 8px, transparent 9px),
    radial-gradient(circle at 50% 52%, #d8dee8 0 47%, #aab3bf 48% 72%, #747f8d 73% 100%);
  color: #3e4754;
}

.coin-face.lost {
  border-color: #ff668f;
  box-shadow:
    inset 0 -8px 0 rgba(111, 70, 7, 0.14),
    0 0 18px rgba(255, 76, 124, 0.34);
  animation: coinflip-loss 420ms ease both;
}

.coin-face.tossing {
  width: 104px;
  height: 104px;
  font-size: 36px;
  animation: coinflip-main-toss 820ms cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.coin-face.slot-tossing {
  animation: coinflip-slot-toss 820ms cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.coinflip-controls {
  width: min(700px, 100%);
  display: grid;
  gap: 11px;
  margin: 0 auto;
}

.coinflip-controls .segmented {
  padding: 7px;
  border-color: rgba(255, 255, 255, 0.04);
  background: #101724;
}

.coinflip-controls .segmented button {
  min-height: 39px;
  border: 0;
  background: transparent;
  color: #d9e3f2;
}

.coinflip-controls .segmented button.active {
  background: #253348;
  color: #fff;
}

.coinflip-controls .button.primary {
  border-color: #1685dc;
  background: #1284e3;
  color: #fff;
}

.coinflip-controls .button:disabled {
  opacity: 0.58;
}

.coinflip-controls .amount-input,
.coinflip-payout-field div {
  border-color: rgba(255, 255, 255, 0.04);
  background: #223147;
}

.coinflip-random {
  border-color: rgba(255, 255, 255, 0.04);
  background: #223147;
}

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

.coinflip-side-grid button {
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 5px;
  background: #223147;
  color: #dce6f4;
  font-weight: 850;
  cursor: pointer;
}

.coinflip-side-grid button:disabled {
  cursor: default;
  opacity: 0.58;
}

.coinflip-side-grid button.active {
  background: #253a57;
  box-shadow: inset 0 0 0 1px rgba(22, 133, 220, 0.28);
}

.coinflip-side-grid .coin-face {
  width: 24px;
  height: 24px;
  border-width: 2px;
  font-size: 10px;
  box-shadow: none;
}

.coinflip-side-grid .coin-face::before {
  inset: 5px;
  border-width: 1px;
}

.coinflip-payout-field {
  display: grid;
  gap: 7px;
}

.coinflip-payout-field label {
  color: #d8e2f0;
  font-size: 13px;
  font-weight: 800;
}

.coinflip-payout-field div {
  min-height: 42px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border-radius: 6px;
  color: #f8fbff;
  font-weight: 850;
}

.coinflip-fair-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 2px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  color: #c7d3e5;
  font-size: 13px;
  font-weight: 800;
}

.coinflip-fair-row span,
.coinflip-fair-row div {
  display: flex;
  align-items: center;
  gap: 8px;
}

@keyframes coinflip-main-toss {
  0% {
    transform: translateY(42px) rotateY(0deg) rotateZ(-8deg) scale(0.82);
  }

  42% {
    transform: translateY(-50px) rotateY(720deg) rotateZ(8deg) scale(1.05);
  }

  100% {
    transform: translateY(0) rotateY(1440deg) rotateZ(0deg) scale(1);
  }
}

@keyframes coinflip-slot-toss {
  0% {
    opacity: 0;
    transform: translateY(-64px) rotateY(0deg) scale(0.78);
  }

  45% {
    opacity: 1;
    transform: translateY(-24px) rotateY(720deg) scale(1.08);
  }

  100% {
    opacity: 1;
    transform: translateY(0) rotateY(1440deg) scale(1);
  }
}

@keyframes coinflip-loss {
  0%,
  100% {
    transform: translateX(0);
  }

  25% {
    transform: translateX(-4px);
  }

  50% {
    transform: translateX(4px);
  }

  75% {
    transform: translateX(-2px);
  }
}

.limbo-stage {
  position: relative;
  width: 100%;
  min-height: 330px;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 92%, rgba(28, 60, 94, 0.46), transparent 25%),
    radial-gradient(circle at 78% 26%, rgba(61, 88, 124, 0.18), transparent 22%),
    linear-gradient(180deg, #101923 0%, #0d1420 100%);
}

.limbo-stage::before {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 9% 12%, rgba(255, 255, 255, 0.95) 0 1px, transparent 2px),
    radial-gradient(circle at 15% 31%, rgba(255, 255, 255, 0.9) 0 3px, transparent 4px),
    radial-gradient(circle at 74% 18%, rgba(255, 255, 255, 0.8) 0 1px, transparent 2px),
    radial-gradient(circle at 87% 54%, rgba(255, 255, 255, 0.88) 0 1px, transparent 2px),
    radial-gradient(circle at 29% 74%, rgba(255, 255, 255, 0.82) 0 1px, transparent 2px),
    radial-gradient(circle at 62% 68%, rgba(255, 255, 255, 0.74) 0 1px, transparent 2px);
  opacity: 0.92;
  content: "";
  animation: limbo-stars 8s ease-in-out infinite;
}

.limbo-stage::after {
  position: absolute;
  right: 0;
  bottom: -28%;
  left: 0;
  height: 54%;
  background: radial-gradient(ellipse at 50% 100%, rgba(29, 115, 188, 0.16), transparent 66%);
  content: "";
}

.limbo-history-row {
  position: absolute;
  top: 17px;
  left: 17px;
  z-index: 3;
  display: flex;
  gap: 7px;
  max-width: calc(100% - 34px);
  overflow: hidden;
}

.limbo-history-row:empty {
  display: none;
}

.limbo-history-row button {
  min-width: 66px;
  min-height: 34px;
  padding: 0 10px;
  border: 0;
  border-radius: 5px;
  background: #1b2a3d;
  color: #31e56b;
  font-size: 13px;
  font-weight: 950;
  cursor: default;
  box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.2);
}

.limbo-history-row button.loss {
  color: #ff4c7c;
}

.limbo-result {
  position: absolute;
  top: 35%;
  left: 50%;
  z-index: 3;
  margin: 0;
  color: #31e56b;
  font-size: clamp(68px, 9vw, 116px);
  font-weight: 950;
  letter-spacing: 0;
  text-shadow: 0 0 26px rgba(49, 229, 107, 0.22);
  transform: translate(-50%, -50%);
  animation: limbo-result-pop 240ms ease both;
}

.limbo-result.loss {
  color: #ff4c7c;
  text-shadow: 0 0 26px rgba(255, 76, 124, 0.22);
}

.limbo-result.idle-readout {
  top: 30%;
  color: rgba(233, 241, 251, 0.64);
  font-size: clamp(54px, 7vw, 90px);
  text-shadow: 0 0 22px rgba(151, 186, 220, 0.16);
  animation: limbo-idle-pulse 2.8s ease-in-out infinite;
}

.limbo-astronaut {
  position: absolute;
  left: 50%;
  bottom: 20px;
  z-index: 3;
  --limbo-astronaut-scale: 0.78;
  width: 138px;
  height: 180px;
  transform: translateX(-50%) scale(var(--limbo-astronaut-scale));
  animation: limbo-float 4s ease-in-out infinite;
  filter: drop-shadow(0 22px 22px rgba(0, 0, 0, 0.38));
}

.limbo-helmet {
  position: absolute;
  top: 0;
  left: 50%;
  width: 104px;
  height: 96px;
  border: 7px solid #dce8f5;
  border-radius: 50%;
  background:
    radial-gradient(circle at 36% 31%, rgba(255, 255, 255, 0.88) 0 9px, transparent 10px),
    linear-gradient(145deg, #27374c, #121d2c);
  transform: translateX(-50%);
}

.limbo-helmet::after {
  position: absolute;
  right: 21px;
  bottom: 21px;
  left: 21px;
  height: 12px;
  border-radius: 999px;
  background: rgba(19, 29, 44, 0.88);
  content: "";
}

.limbo-body {
  position: absolute;
  top: 84px;
  left: 50%;
  width: 70px;
  height: 72px;
  border-radius: 20px 20px 18px 18px;
  background:
    linear-gradient(90deg, transparent 0 29px, rgba(16, 25, 35, 0.32) 30px 39px, transparent 40px),
    linear-gradient(180deg, #edf3f8, #bccbd8);
  transform: translateX(-50%);
  box-shadow: inset 0 -12px 0 rgba(75, 94, 113, 0.2);
}

.limbo-body::after {
  position: absolute;
  top: 18px;
  left: 50%;
  width: 24px;
  height: 18px;
  border-radius: 4px;
  background: #1685dc;
  content: "";
  transform: translateX(-50%);
}

.limbo-arm,
.limbo-leg {
  position: absolute;
  border-radius: 999px;
  background: linear-gradient(180deg, #e8f1f8, #adbdc9);
}

.limbo-arm {
  top: 94px;
  width: 34px;
  height: 72px;
}

.limbo-arm.left {
  left: 19px;
  transform: rotate(24deg);
}

.limbo-arm.right {
  right: 19px;
  transform: rotate(-24deg);
}

.limbo-leg {
  bottom: 0;
  width: 32px;
  height: 62px;
}

.limbo-leg.left {
  left: 43px;
  transform: rotate(10deg);
}

.limbo-leg.right {
  right: 43px;
  transform: rotate(-10deg);
}

.limbo-controls {
  width: min(700px, 100%);
  display: grid;
  gap: 11px;
  margin: 0 auto;
}

.limbo-controls .segmented {
  padding: 7px;
  border-color: rgba(255, 255, 255, 0.04);
  background: #101724;
}

.limbo-controls .segmented button {
  min-height: 39px;
  border: 0;
  background: transparent;
  color: #d9e3f2;
}

.limbo-controls .segmented button.active {
  background: #253348;
  color: #fff;
}

.limbo-controls .button.primary {
  border-color: #1685dc;
  background: #1284e3;
  color: #fff;
}

.limbo-controls .amount-input,
.limbo-controls .prefixed-input {
  border-color: rgba(255, 255, 255, 0.04);
  background: #223147;
}

.limbo-fair-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 2px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  color: #c7d3e5;
  font-size: 13px;
  font-weight: 800;
}

.limbo-fair-row span,
.limbo-fair-row div {
  display: flex;
  align-items: center;
  gap: 8px;
}

@keyframes limbo-float {
  0%,
  100% {
    transform: translateX(-50%) translateY(0) scale(var(--limbo-astronaut-scale));
  }

  50% {
    transform: translateX(-50%) translateY(-14px) scale(var(--limbo-astronaut-scale));
  }
}

@keyframes limbo-stars {
  0%,
  100% {
    opacity: 0.78;
  }

  50% {
    opacity: 1;
  }
}

@keyframes limbo-result-pop {
  from {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.92);
  }

  to {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
}

@keyframes limbo-idle-pulse {
  0%,
  100% {
    opacity: 0.58;
    transform: translate(-50%, -50%) scale(1);
  }

  50% {
    opacity: 0.86;
    transform: translate(-50%, -50%) scale(1.035);
  }
}

@keyframes tower-breathe {
  0%,
  100% {
    transform: translateX(-50%) translateY(0) scale(var(--tower-guardian-scale));
  }

  50% {
    transform: translateX(-50%) translateY(3px) scale(var(--tower-guardian-scale));
  }
}

@keyframes tower-reveal-pop {
  0% {
    transform: scale(0.72);
    opacity: 0;
    filter: brightness(1.5);
  }

  100% {
    transform: scale(1);
    opacity: 1;
    filter: brightness(1);
  }
}

@keyframes crash-qbee-hover {
  0%,
  100% {
    transform: translateY(0) rotate(-2deg);
  }

  50% {
    transform: translateY(-5px) rotate(2deg);
  }
}

@keyframes crash-flame-pulse {
  from {
    transform: scaleY(0.72);
    opacity: 0.76;
  }

  to {
    transform: scaleY(1.08);
    opacity: 1;
  }
}

@keyframes crash-line-sway {
  0%,
  100% {
    transform: rotate(9deg);
  }

  50% {
    transform: rotate(16deg);
  }
}

@keyframes crash-cubit-hook {
  0%,
  100% {
    transform: translateY(0) rotate(-5deg);
  }

  50% {
    transform: translateY(7px) rotate(6deg);
  }
}

.crash-live-stage {
  width: 100%;
  min-height: 600px;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 12px;
  padding: 16px 14px 0;
  background: #101923;
}

.crash-history-row {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  overflow: hidden;
  padding: 1px 2px 0;
}

.crash-history-row span {
  flex: 0 0 auto;
  min-width: 60px;
  padding: 8px 10px;
  border-radius: 5px;
  color: #111827;
  font-size: 13px;
  font-weight: 900;
  text-align: center;
}

.crash-history-row span.hot {
  background: #31e56b;
}

.crash-history-row span.cold {
  background: #ff3f71;
}

.crash-graph {
  position: relative;
  min-height: 500px;
  overflow: hidden;
  border-radius: 6px 6px 0 0;
  background:
    radial-gradient(circle at 70% 36%, rgba(31, 104, 172, 0.1), transparent 24%),
    #101923;
}

.crash-grid-lines {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 100% 72px, 96px 100%;
  opacity: 0;
  transition: opacity 180ms ease;
}

.crash-live-stage.running .crash-grid-lines,
.crash-live-stage.crashed .crash-grid-lines,
.crash-live-stage.waiting .crash-grid-lines {
  opacity: 1;
}

.crash-curve {
  position: absolute;
  left: 7%;
  bottom: 13%;
  width: 84%;
  height: 58%;
  border-top: 4px solid #2fe67a;
  border-radius: 100% 0 0;
  filter: drop-shadow(0 0 12px rgba(47, 230, 122, 0.4));
  transform: skewY(-10deg) scaleX(var(--crash-progress, 0));
  transform-origin: left bottom;
  opacity: 0;
  transition: opacity 120ms ease;
}

.crash-live-stage.running .crash-curve,
.crash-live-stage.crashed .crash-curve,
.crash-live-stage.waiting .crash-curve {
  opacity: 1;
}

.crash-live-stage.crashed .crash-curve,
.crash-live-stage.waiting .crash-curve {
  border-color: #ff3f71;
  filter: drop-shadow(0 0 12px rgba(255, 63, 113, 0.42));
}

.crash-ship {
  position: absolute;
  left: calc(7% + var(--crash-x, 0) * 84%);
  bottom: calc(13% + var(--crash-y, 0) * 53%);
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background:
    radial-gradient(circle at 38% 30%, rgba(255, 255, 255, 0.22), transparent 24%),
    linear-gradient(145deg, #223249, #151f2e);
  box-shadow: 0 0 24px rgba(47, 230, 122, 0.22), inset 0 0 0 1px rgba(255, 255, 255, 0.06);
  opacity: 0;
  transform: translate(-50%, 50%) rotate(calc(var(--crash-progress, 0) * 28deg));
  transition: opacity 160ms ease, left 50ms linear, bottom 50ms linear, transform 50ms linear;
}

.crash-live-stage.running .crash-ship,
.crash-live-stage.crashed .crash-ship,
.crash-live-stage.waiting .crash-ship {
  opacity: 1;
}

.crash-live-stage.crashed .crash-ship,
.crash-live-stage.waiting .crash-ship {
  box-shadow: 0 0 24px rgba(255, 63, 113, 0.3), inset 0 0 0 1px rgba(255, 63, 113, 0.28);
}

.crash-qbee-fisher {
  width: 158px;
  height: 122px;
  display: block;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  overflow: visible;
  transform: translate(-43%, 54%) rotate(calc(-10deg + var(--crash-progress, 0) * 18deg));
  filter: drop-shadow(0 15px 16px rgba(0, 0, 0, 0.38));
}

.crash-live-stage.crashed .crash-qbee-fisher,
.crash-live-stage.waiting .crash-qbee-fisher {
  box-shadow: none;
  filter: drop-shadow(0 15px 16px rgba(255, 63, 113, 0.18));
}

.crash-qbee-img {
  position: absolute;
  z-index: 4;
  left: 30px;
  top: 20px;
  width: 70px;
  height: auto;
  animation: crash-qbee-hover 900ms ease-in-out infinite;
}

.crash-jetpack {
  position: absolute;
  z-index: 2;
  left: 20px;
  top: 44px;
  width: 28px;
  height: 44px;
  border-radius: 9px;
  background:
    linear-gradient(90deg, transparent 44%, rgba(255, 255, 255, 0.22) 45% 56%, transparent 57%),
    linear-gradient(180deg, #7d8da1, #33455f);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.08);
}

.crash-jetpack-flame {
  position: absolute;
  z-index: 1;
  left: 22px;
  top: 83px;
  width: 24px;
  height: 44px;
  border-radius: 50% 50% 45% 45%;
  background:
    radial-gradient(circle at 50% 28%, #fff2a1 0 18%, transparent 19%),
    linear-gradient(180deg, #ffcf45, #ff6a2f 62%, transparent);
  transform-origin: 50% 0;
  animation: crash-flame-pulse 190ms ease-in-out infinite alternate;
  filter: blur(0.2px) drop-shadow(0 0 10px rgba(255, 130, 47, 0.42));
}

.crash-fishing-rod {
  position: absolute;
  z-index: 5;
  left: 82px;
  top: 42px;
  width: 72px;
  height: 5px;
  border-radius: 999px;
  background: linear-gradient(90deg, #79512d, #d39b5b);
  transform: rotate(-24deg);
  transform-origin: left center;
}

.crash-fishing-rod::after {
  position: absolute;
  right: -5px;
  top: -3px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #e0ad6c;
  content: "";
}

.crash-fishing-line {
  position: absolute;
  z-index: 3;
  left: 139px;
  top: 23px;
  width: 2px;
  height: 78px;
  background: linear-gradient(180deg, rgba(220, 244, 255, 0.92), rgba(220, 244, 255, 0.18));
  transform: rotate(12deg);
  transform-origin: top center;
  animation: crash-line-sway 880ms ease-in-out infinite;
}

.crash-hook-cubit {
  position: absolute;
  z-index: 6;
  left: 128px;
  top: 92px;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(13, 20, 30, 0.48);
  box-shadow: 0 0 20px rgba(255, 230, 99, 0.28);
  animation: crash-cubit-hook 880ms ease-in-out infinite;
}

.crash-live-stage.crashed .crash-hook-cubit,
.crash-live-stage.waiting .crash-hook-cubit {
  box-shadow: 0 0 20px rgba(255, 63, 113, 0.3);
}

.crash-live-readout {
  position: absolute;
  top: 43%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #31e56b;
  font-size: 76px;
  font-weight: 950;
  letter-spacing: 0;
  text-shadow: 0 0 22px rgba(49, 229, 107, 0.22);
}

.crash-live-readout.loss {
  color: #ff3f71;
  text-shadow: 0 0 22px rgba(255, 63, 113, 0.28);
}

.crash-live-status {
  position: absolute;
  left: 50%;
  bottom: 18%;
  min-width: 180px;
  padding: 9px 12px;
  border-radius: 5px;
  background: rgba(16, 25, 35, 0.78);
  color: #cbd7e7;
  font-size: 13px;
  font-weight: 800;
  text-align: center;
  transform: translateX(-50%);
}

.crash-live-stage.betting .crash-live-status {
  bottom: 44%;
  color: #dbe6f5;
}

.crash-controls {
  width: min(700px, 100%);
  display: grid;
  gap: 11px;
  margin: 0 auto;
}

.crash-controls .button.primary {
  border-color: #1685dc;
  background: #1284e3;
  color: #fff;
}

.crash-controls .button.primary:disabled {
  opacity: 0.72;
}

.crash-controls .amount-input,
.crash-controls .prefixed-input {
  border-color: rgba(255, 255, 255, 0.04);
  background: #223147;
}

.crash-target-input .input-prefix {
  font-size: 20px;
  line-height: 1;
}

.crash-round-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: #d7e2f0;
  font-size: 13px;
  font-weight: 850;
}

.crash-round-summary span {
  display: flex;
  align-items: center;
  gap: 7px;
}

.crash-bettors {
  max-height: 210px;
  overflow-y: auto;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 6px;
  background: #101724;
}

.crash-bettor {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  color: #d8e2f0;
  font-size: 12px;
}

.crash-bettor:last-child {
  border-bottom: 0;
}

.crash-bettor.self {
  background: rgba(214, 168, 50, 0.12);
  color: #fff3bf;
}

.crash-bettor.cashed em {
  background: rgba(49, 229, 107, 0.16);
  color: #68f29b;
}

.crash-bettor.lost em {
  background: rgba(255, 63, 113, 0.13);
  color: #ff86a6;
}

.crash-bettor span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.crash-bettor b {
  color: #f2d46e;
  font-size: 11px;
}

.crash-bettor em {
  min-width: 48px;
  padding: 3px 6px;
  border-radius: 4px;
  background: #1c2839;
  color: #cfe2f5;
  font-style: normal;
  font-weight: 900;
  text-align: center;
}

.crash-fair-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 2px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  color: #c7d3e5;
  font-size: 13px;
  font-weight: 800;
}

.crash-fair-row span,
.crash-fair-row div {
  display: flex;
  align-items: center;
  gap: 8px;
}

.plinko-board {
  position: relative;
  width: min(640px, 92vw);
  height: 430px;
  padding-bottom: 42px;
}

.peg {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #dce7f7;
}

.plinko-ball {
  position: absolute;
  z-index: 2;
  top: 0;
  left: 50%;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #f6cc3b;
  transition: transform 1.5s cubic-bezier(.3,.1,.58,1);
  animation: plinko-drop 720ms cubic-bezier(.22,.8,.32,1) var(--delay, 0ms) both;
}

.plinko-ball.idle {
  transform: translate(0, 0);
  animation: none;
}

.plinko-bins {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  display: grid;
  grid-template-columns: repeat(9, 1fr);
  gap: 4px;
}

.plinko-bin {
  padding: 8px 2px;
  border-radius: 3px;
  background: #bb3150;
  font-size: 10px;
  font-weight: 800;
  text-align: center;
}

.plinko-results {
  position: absolute;
  top: 16px;
  right: -8px;
  display: grid;
  gap: 5px;
}

.plinko-results span {
  min-width: 62px;
  padding: 5px 8px;
  border-radius: 4px;
  background: #2a2038;
  font-size: 12px;
  font-weight: 850;
  text-align: center;
}

.plinko-results .win {
  color: #69e3a5;
}

.plinko-results .loss {
  color: #ff758f;
}

@keyframes plinko-drop {
  0% {
    opacity: 0;
    transform: translate(0, 0);
  }

  18% {
    opacity: 1;
  }
}

.item-result {
  display: grid;
  place-items: center;
  text-align: center;
}

.item-result img {
  width: 124px;
  height: 124px;
  object-fit: contain;
  image-rendering: pixelated;
}

.case-preview {
  width: min(760px, 100%);
  display: grid;
  justify-items: center;
  gap: 18px;
  text-align: center;
}

.case-preview .case-chest {
  transform: scale(1.75);
}

.daily-case-preview {
  width: min(620px, 100%);
  gap: 14px;
  padding: 6px 0 4px;
}

.daily-case-hero-art {
  height: 210px;
  margin: 0 auto 4px;
}

.daily-case-hero-art .case-chest {
  z-index: 3;
  margin: 0 0 28px;
  transform: scale(1.5);
}

.daily-case-hero-art .case-fan-item {
  width: 92px;
  min-height: 104px;
  padding: 10px 7px 7px;
}

.daily-case-hero-art .case-fan-item img {
  width: 78px;
  height: 78px;
}

.daily-case-hero-art .case-fan-item small {
  max-width: 78px;
  font-size: 10px;
}

.daily-case-hero-art .case-fan-item.item-0 {
  top: 0;
  left: calc(50% - 46px);
  transform: translateY(-7px) scale(1.15);
}

.daily-case-hero-art .case-fan-item.item-1 {
  top: 39px;
  left: calc(50% - 155px);
  transform: rotate(-13deg);
}

.daily-case-hero-art .case-fan-item.item-2 {
  top: 39px;
  right: calc(50% - 155px);
  transform: rotate(13deg);
}

.daily-case-hero-art .case-fan-item.item-3 {
  top: 66px;
  left: calc(50% - 97px);
  transform: rotate(-6deg) scale(0.9);
}

.daily-case-hero-art .case-fan-item.item-4 {
  top: 66px;
  right: calc(50% - 97px);
  z-index: 4;
  opacity: 0.86;
  transform: rotate(6deg) scale(0.9);
}

.case-drop-note {
  max-width: 560px;
  margin: -8px 0 0;
  font-size: 13px;
}

.case-drop-list {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.case-drop-list span {
  display: grid;
  justify-items: center;
  gap: 6px;
  min-height: 154px;
  padding: 12px 10px;
  border: 1px solid color-mix(in srgb, var(--case-accent, #d6a82b) 28%, var(--line));
  border-radius: 7px;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--case-accent, #d6a82b) 8%, transparent), transparent 38%),
    rgba(18, 24, 37, 0.94);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  text-align: center;
}

.case-drop-list img,
.case-lane img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  image-rendering: pixelated;
  filter: drop-shadow(0 8px 8px rgba(0, 0, 0, 0.44));
}

.case-drop-list b {
  max-width: 100%;
  color: #eef4ff;
  font-size: 13px;
  line-height: 1.2;
}

.case-drop-list small {
  padding: 4px 7px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.34);
  color: #ffe58c;
  font-size: 11px;
  font-weight: 800;
}

.case-lanes {
  width: min(860px, 100%);
  display: grid;
  gap: 12px;
}

.case-lanes.single {
  grid-template-columns: 1fr;
}

.case-lanes.multi {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.daily-case-lanes.multi {
  width: 100%;
  max-height: 560px;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  overflow: auto;
  padding-right: 4px;
}

.case-lane {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(11, 17, 29, 0.92);
  overflow: hidden;
}

.case-window,
.battle-live-reel {
  position: relative;
  width: 100%;
  height: 168px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 7px;
  background:
    linear-gradient(90deg, rgba(7, 10, 18, 0.92), transparent 20%, transparent 80%, rgba(7, 10, 18, 0.92)),
    #101827;
}

.case-lane.vertical .case-window,
.battle-live-reel {
  height: 258px;
  background:
    linear-gradient(180deg, rgba(7, 10, 18, 0.94), transparent 22%, transparent 78%, rgba(7, 10, 18, 0.94)),
    #101827;
}

.case-marker {
  position: absolute;
  z-index: 2;
  pointer-events: none;
}

.case-lane.horizontal .case-marker {
  left: 50%;
  width: 0;
  height: 0;
  border-left: 11px solid transparent;
  border-right: 11px solid transparent;
  transform: translateX(-50%);
}

.case-lane.horizontal .case-marker.top {
  top: 0;
  border-top: 15px solid var(--gold);
}

.case-lane.horizontal .case-marker.bottom {
  bottom: 0;
  border-bottom: 15px solid var(--gold);
}

.case-lane.vertical .case-marker,
.battle-live-reel .case-marker {
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.case-lane.vertical .case-marker.top,
.battle-live-reel .case-marker.top {
  top: 50%;
  transform: translateY(-29px);
}

.case-lane.vertical .case-marker.bottom,
.battle-live-reel .case-marker.bottom {
  top: 50%;
  transform: translateY(29px);
}

.case-reel-track {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 100%;
  padding: 0 calc(50% - 58px);
  transform: translate3d(calc(-1 * var(--reel-stop-px, 4960px)), 0, 0);
  will-change: transform;
}

.case-lanes.spinning .case-lane.horizontal .case-reel-track {
  animation: case-horizontal-spin var(--case-spin-ms, 9200ms) cubic-bezier(.11,.72,.14,1) both;
}

.case-lane.vertical .case-reel-track,
.battle-reel-track {
  display: grid;
  gap: 10px;
  justify-items: center;
  transform: translate3d(0, calc(-1 * var(--reel-stop-px, 3900px)), 0);
  will-change: transform;
}

.case-lane.vertical .case-reel-track {
  padding: 63px 0 104px;
}

.battle-reel-track {
  padding: 112px 0 104px;
}

.case-lanes.spinning .case-lane.vertical .case-reel-track {
  animation: case-vertical-spin calc(var(--case-spin-ms, 9200ms) - 900ms) cubic-bezier(.11,.72,.14,1) var(--lane-delay, 0ms) both;
}

.battle-grid.reeling .battle-reel-track {
  animation: battle-vertical-spin 3600ms cubic-bezier(.08,.76,.12,1) both;
}

.case-reel-card,
.battle-reel-card {
  width: 116px;
  min-height: 132px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex: 0 0 116px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  background: #172235;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  text-align: center;
}

.case-reel-card img,
.battle-reel-card img {
  width: 58px;
  height: 58px;
  object-fit: contain;
  image-rendering: pixelated;
}

.case-reel-card small,
.battle-reel-card small {
  max-width: 96px;
  min-height: 32px;
  overflow: hidden;
  color: #dbe5f2;
  font-size: 11px;
}

.case-reel-card b,
.battle-reel-card b {
  color: var(--gold);
  font-size: 11px;
}

.case-special-symbol {
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 42px;
  font-weight: 950;
  line-height: 1;
}

.case-special-symbol.gold-star {
  border: 2px solid rgba(255, 232, 128, 0.82);
  background:
    radial-gradient(circle at 35% 28%, #fff6a8, #f4c842 38%, #bd8420 72%);
  color: #fff7b8;
  text-shadow: 0 2px 0 #8b5b12, 0 0 16px rgba(255, 218, 89, 0.62);
  box-shadow:
    inset 0 3px 0 rgba(255, 255, 255, 0.34),
    0 0 22px rgba(244, 200, 66, 0.38);
}

.case-special-symbol.no-star {
  border: 2px solid rgba(128, 139, 158, 0.4);
  background: #1a2434;
  color: #6f7d91;
  text-shadow: none;
}

.case-reel-card.gold-star {
  border-color: rgba(255, 213, 77, 0.65);
  background:
    radial-gradient(circle at 50% 20%, rgba(255, 215, 79, 0.22), transparent 56%),
    #182236;
}

.case-reel-card.no-star {
  opacity: 0.72;
}

.case-lane-result {
  min-height: 44px;
  display: grid;
  place-items: center;
  text-align: center;
}

.case-lane-result strong {
  color: #eef4ff;
}

.case-lane-result span,
.case-lane-result small {
  color: var(--muted);
  font-size: 12px;
}

.daily-case-modal {
  width: min(920px, calc(100vw - 24px));
}

.daily-case-toolbar,
.daily-case-modal-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}

.daily-case-toolbar span {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: rgba(20, 29, 45, 0.86);
  color: #dbe7f5;
  font-weight: 700;
}

.daily-case-preview {
  margin: 10px auto 16px;
}

.daily-case-results {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 9px;
  margin: 12px 0;
}

.daily-case-results div {
  display: grid;
  justify-items: center;
  gap: 4px;
  padding: 11px;
  border: 1px solid rgba(31, 201, 126, 0.32);
  border-radius: 6px;
  background: rgba(15, 33, 36, 0.86);
  text-align: center;
}

.daily-case-results .star-hit {
  border-color: rgba(255, 213, 77, 0.54);
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 213, 77, 0.2), transparent 64%),
    rgba(32, 29, 18, 0.9);
}

.daily-case-results .star-miss {
  border-color: rgba(125, 137, 156, 0.2);
  background: rgba(19, 26, 38, 0.86);
}

.daily-case-results img {
  width: 52px;
  height: 52px;
  object-fit: contain;
  image-rendering: pixelated;
}

.daily-case-results span,
.daily-case-results small {
  color: var(--muted);
  font-size: 12px;
}

.daily-case-results strong {
  color: #eef5ff;
}

.daily-case-modal-heading {
  margin-top: 18px;
}

.daily-star-gate {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
  padding: 12px;
  border: 1px solid rgba(255, 213, 77, 0.26);
  border-radius: 7px;
  background:
    radial-gradient(circle at 34px 32px, rgba(255, 213, 77, 0.18), transparent 82px),
    rgba(22, 26, 38, 0.92);
}

.daily-star-gate strong,
.daily-star-gate small {
  display: block;
}

.daily-star-gate strong {
  color: #fff4b5;
}

.daily-star-gate small {
  margin-top: 3px;
  color: var(--muted);
}

.daily-case-drop-list {
  grid-template-columns: repeat(auto-fit, minmax(142px, 1fr));
}

.battle-lobby,
.battle-create-stage {
  display: grid;
  gap: 14px;
  width: 100%;
}

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

.battle-lobby-stats span {
  display: grid;
  gap: 3px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(13, 20, 32, 0.9);
}

.battle-lobby-stats strong {
  color: #eef5ff;
  font-size: 22px;
}

.battle-lobby-stats small {
  color: var(--muted);
  font-size: 12px;
}

.battle-lobby-tabs {
  justify-content: flex-start;
  flex-wrap: wrap;
}

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

.battle-lobby-card {
  min-height: 246px;
  display: grid;
  align-content: start;
  gap: 11px;
  padding: 12px;
  border: 1px solid rgba(119, 138, 166, 0.28);
  border-radius: 7px;
  background: #101827;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.battle-lobby-card.in-progress {
  border-color: rgba(255, 213, 77, 0.28);
}

.battle-card-top,
.battle-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.battle-card-top span {
  color: #eef5ff;
  font-weight: 850;
}

.battle-card-top b {
  min-width: 40px;
  display: inline-grid;
  place-items: center;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(55, 97, 255, 0.16);
  color: #99b6ff;
  font-size: 12px;
}

.battle-card-players {
  display: flex;
  align-items: center;
  gap: 6px;
}

.battle-card-players span,
.battle-avatar {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  background: #1b2638;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
}

.battle-card-players span.filled,
.battle-avatar {
  border-color: rgba(255, 213, 77, 0.34);
  background: linear-gradient(135deg, #28384f, #172235);
  color: #fff0b2;
}

.battle-card-cases,
.battle-case-sequence {
  display: flex;
  gap: 7px;
  overflow: hidden;
}

.battle-card-cases span {
  min-width: 74px;
  display: grid;
  justify-items: center;
  gap: 3px;
}

.battle-card-cases small {
  max-width: 74px;
  overflow: hidden;
  color: #d8e5f6;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.battle-card-case-art,
.battle-sequence-art {
  position: relative;
  display: grid;
  place-items: end center;
  width: 74px;
  height: 62px;
}

.battle-card-case-art .case-chest,
.battle-sequence-art .case-chest {
  width: 70px;
  height: 58px;
  transform: none;
}

.battle-card-case-art .daily-case-item-fan,
.battle-sequence-art .daily-case-item-fan {
  display: none;
}

.battle-card-meta {
  margin-top: auto;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.battle-card-meta span {
  color: var(--muted);
  font-size: 12px;
}

.battle-card-meta strong {
  color: var(--gold);
}

.case-battles-page {
  display: grid;
  gap: 18px;
  width: 100%;
}

.battle-page-heading {
  display: grid;
  grid-template-columns: auto minmax(40px, 1fr) auto;
  align-items: center;
  gap: 18px;
  width: 100%;
  margin-bottom: 18px;
}

.battle-page-heading h1 {
  margin: 0;
  color: #eef5ff;
  font-size: 24px;
}

.battle-page-heading > span {
  height: 1px;
  background: #263245;
}

.battle-lobby-controls {
  display: grid;
  grid-template-columns: minmax(0, auto) minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.battle-lobby-tools {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px;
}

.battle-lobby-tools > span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #c8d4e5;
  font-size: 13px;
  font-weight: 800;
}

.battle-lobby-tools > button,
.battle-lobby-tools label {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  border: 1px solid #253247;
  border-radius: 6px;
  background: #172236;
  color: #dce6f5;
  font-weight: 800;
}

.battle-lobby-tools > button {
  cursor: pointer;
}

.battle-lobby-tools > button.active {
  border-color: #197eff;
  background: #1d3558;
}

.battle-lobby-tools select {
  min-width: 112px;
  border: 0;
  background: transparent;
  color: #eef5ff;
  font: inherit;
  outline: 0;
}

.battle-lobby .battle-lobby-tabs {
  width: auto;
  padding: 4px;
  background: #172236;
}

.battle-lobby .battle-lobby-tabs button {
  min-width: 92px;
  min-height: 38px;
}

.battle-lobby-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.battle-lobby-row {
  min-height: 96px;
  grid-template-columns: minmax(172px, 1fr) minmax(220px, 1.35fr) minmax(116px, auto) minmax(120px, auto) minmax(150px, auto);
  align-items: center;
  gap: 16px;
  padding: 14px 16px;
  border-color: rgba(52, 68, 94, 0.72);
  background:
    linear-gradient(90deg, rgba(29, 49, 80, 0.72), rgba(15, 24, 38, 0.95));
}

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

.battle-row-info .battle-card-top {
  justify-content: flex-start;
}

.battle-lobby-row .battle-card-cases {
  min-height: 74px;
  justify-content: center;
  padding: 6px 10px;
  border-radius: 7px;
  background: rgba(7, 12, 21, 0.52);
}

.battle-lobby-row .battle-card-cases em {
  align-self: center;
  color: #91a4bf;
  font-style: normal;
  font-weight: 900;
}

.battle-lobby-row .battle-card-meta {
  display: grid;
  justify-content: start;
  gap: 4px;
  margin: 0;
  padding: 0;
  border: 0;
}

.battle-row-status {
  color: #cbd7e8;
  font-weight: 850;
  text-align: center;
}

.battle-row-action {
  display: flex;
  justify-content: flex-end;
}

.battle-row-action .button {
  min-width: 138px;
}

.battle-create-stage {
  display: grid;
  gap: 16px;
}

.battle-create-form {
  display: grid;
  gap: 12px;
}

.battle-create-panel,
.battle-selected-cases {
  display: grid;
  gap: 10px;
  padding: 16px;
  border: 1px solid #263447;
  border-radius: 7px;
  background: #101827;
}

.battle-create-panel h2,
.battle-selected-cases h2 {
  margin: 0;
  color: #eef5ff;
  font-size: 15px;
}

.battle-create-panel .battle-option-grid {
  grid-template-columns: repeat(auto-fit, minmax(136px, 1fr));
}

.battle-create-panel .battle-option-grid button,
.battle-create-add-case {
  min-height: 44px;
  border: 1px solid #263447;
  border-radius: 6px;
  background: #18243a;
  color: #dce7f7;
  cursor: pointer;
  font-weight: 850;
}

.battle-create-panel .battle-option-grid button.active {
  border-color: #197eff;
  background: #1d3558;
  color: #fff;
}

.battle-create-add-case {
  justify-content: center;
}

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

.battle-selected-case {
  min-height: 86px;
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 7px;
  background: rgba(11, 17, 29, 0.72);
}

.battle-selected-case-art {
  position: relative;
  width: 70px;
  height: 58px;
}

.battle-selected-case-art .case-chest {
  width: 66px;
  height: 54px;
  transform: none;
}

.battle-selected-case-art .daily-case-item-fan {
  display: none;
}

.battle-selected-case strong,
.battle-selected-case span {
  display: block;
}

.battle-selected-case strong {
  overflow: hidden;
  color: #eef5ff;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.battle-selected-case span {
  margin-top: 4px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 850;
}

.battle-create-footer {
  min-height: 66px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
  padding: 14px 16px;
  border: 1px solid #263447;
  border-radius: 7px;
  background: #101827;
}

.battle-create-footer span {
  color: #c8d4e5;
  font-weight: 800;
}

.battle-create-footer strong {
  color: #eef5ff;
}

.battle-create-preview,
.battle-create-notes {
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background:
    radial-gradient(circle at 50% 4%, color-mix(in srgb, var(--case-accent, #3bd67f) 24%, transparent), transparent 56%),
    #101827;
  text-align: center;
}

.battle-create-preview h2,
.battle-create-notes h3 {
  margin: 0;
}

.battle-create-preview strong {
  color: var(--gold);
  font-size: 22px;
}

.battle-create-notes {
  justify-items: start;
  text-align: left;
}

.battle-create-notes p {
  margin: 0;
  color: var(--muted);
}

.battle-create-sequence,
.battle-case-builder-list {
  width: 100%;
  display: grid;
  gap: 6px;
}

.battle-create-sequence {
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  margin-top: 4px;
}

.battle-create-sequence span,
.battle-case-builder-list span {
  min-height: 34px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 9px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 5px;
  background: rgba(11, 17, 29, 0.76);
  color: #dbe7f5;
  font-size: 12px;
}

.battle-case-builder-list span {
  justify-content: space-between;
}

.battle-case-builder-list b {
  width: 22px;
  height: 22px;
  display: inline-grid;
  flex: 0 0 22px;
  place-items: center;
  border-radius: 4px;
  background: rgba(255, 213, 77, 0.12);
  color: var(--gold);
}

.battle-case-builder-list small {
  margin-left: auto;
  color: var(--muted);
}

.battle-case-builder-list button {
  width: 24px;
  height: 24px;
  display: grid;
  flex: 0 0 24px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #151d2b;
  color: #dbe7f5;
  cursor: pointer;
  font-weight: 900;
}

.battle-case-sequence {
  width: 100%;
  padding: 8px 0 12px;
}

.battle-case-sequence button {
  flex: 0 0 60px;
  min-height: 58px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #101827;
  cursor: default;
}

.battle-case-sequence button.active {
  border-color: var(--gold);
  box-shadow: 0 0 0 1px rgba(255, 213, 77, 0.18);
}

.battle-sequence-art {
  width: 54px;
  height: 44px;
}

.battle-sequence-art .case-chest {
  width: 52px;
  height: 42px;
}

.battle-countdown {
  display: grid;
  place-items: center;
  gap: 10px;
  text-align: center;
}

.battle-countdown.inline {
  width: min(360px, 100%);
  margin: 0 auto 12px;
  padding: 12px;
  border: 1px solid rgba(255, 213, 77, 0.25);
  border-radius: 7px;
  background: rgba(19, 24, 36, 0.9);
}

.battle-countdown.inline span,
.battle-countdown.inline small {
  color: var(--muted);
  font-size: 12px;
}

.battle-countdown strong {
  width: 116px;
  height: 116px;
  display: grid;
  place-items: center;
  border: 3px solid var(--gold);
  border-radius: 50%;
  background: #261934;
  color: var(--gold);
  font-size: 58px;
}

.battle-strip {
  width: 100%;
}

.battle-cancel-button {
  margin-left: auto;
  min-height: 34px;
  padding: 7px 12px;
  font-size: 12px;
}

.battle-grid {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

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

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

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

.battle-side {
  min-height: 430px;
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #141e2e;
}

.battle-waiting-slot {
  min-height: 258px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  border: 1px dashed rgba(255, 255, 255, 0.16);
  border-radius: 7px;
  background: rgba(11, 17, 29, 0.76);
  text-align: center;
}

.battle-waiting-slot strong {
  color: #eef5ff;
}

.battle-waiting-slot small {
  color: var(--muted);
}

.battle-add-bot {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 4px;
  border-color: rgba(255, 213, 77, 0.44);
  background: rgba(156, 107, 26, 0.24);
  color: #ffe59a;
}

.battle-side.bot-player {
  border-color: rgba(96, 165, 250, 0.34);
  background:
    radial-gradient(circle at 50% 0%, rgba(59, 130, 246, 0.13), transparent 58%),
    #141e2e;
}

.battle-side.bot-player .battle-avatar {
  border-color: rgba(96, 165, 250, 0.44);
  background: linear-gradient(135deg, #1f4f83, #172235);
  color: #dbeafe;
}

.battle-side.winner {
  border-color: #38d996;
  box-shadow: 0 0 0 1px rgba(56, 217, 150, 0.28);
}

.battle-side.loser {
  opacity: 0.78;
}

.battle-side-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.battle-side-head h2 {
  margin: 0;
  font-size: 16px;
}

.battle-side-head strong {
  color: var(--gold);
}

.battle-round-strip {
  display: flex;
  gap: 4px;
}

.battle-round-strip span {
  min-width: 26px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 4px;
  background: #202c40;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.battle-round-strip span.active {
  background: #3761ff;
  color: #fff;
}

.battle-round-strip span.settled {
  color: var(--gold);
}

.battle-items {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.battle-item {
  width: 78px;
  min-height: 92px;
  display: grid;
  justify-items: center;
  gap: 4px;
  padding: 7px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #202c40;
  text-align: center;
}

.battle-item img {
  width: 42px;
  height: 42px;
  object-fit: contain;
  image-rendering: pixelated;
}

.battle-item strong,
.battle-item small {
  font-size: 10px;
}

.battle-winner-panel {
  width: min(420px, 100%);
  display: grid;
  justify-items: center;
  gap: 6px;
  margin: 0 auto 12px;
  padding: 14px;
  border: 1px solid rgba(56, 217, 150, 0.5);
  border-radius: 7px;
  background: rgba(20, 44, 43, 0.92);
  text-align: center;
}

.battle-winner-panel span {
  color: var(--muted);
  font-size: 12px;
}

.battle-winner-panel strong {
  color: #69e3a5;
  font-size: 24px;
}

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

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

.battle-option-grid button,
.battle-layout-buttons button {
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #100b17;
  color: #dbe5f2;
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
}

.battle-option-grid button.active,
.battle-layout-buttons button.active {
  border-color: var(--gold);
  background: #3b2a17;
  color: #fff0b2;
}

.battle-cost-box {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 10px 0;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #100b17;
}

.battle-cost-box span {
  color: var(--muted);
  font-size: 12px;
}

.battle-cost-box strong {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--gold);
}

@keyframes case-horizontal-spin {
  from {
    transform: translate3d(0, 0, 0);
  }

  100% {
    transform: translate3d(calc(-1 * var(--reel-stop-px, 4960px)), 0, 0);
  }
}

@keyframes case-vertical-spin {
  from {
    transform: translate3d(0, 0, 0);
  }

  100% {
    transform: translate3d(0, calc(-1 * var(--reel-stop-px, 3900px)), 0);
  }
}

@keyframes battle-vertical-spin {
  from {
    transform: translate3d(0, 0, 0);
  }

  30% {
    transform: translate3d(0, -920px, 0);
  }

  100% {
    transform: translate3d(0, calc(-1 * var(--reel-stop-px, 3900px)), 0);
  }
}

.snake-loop {
  width: min(720px, 100%);
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 6px;
  margin: 18px 0;
}

.snakes-stage {
  display: grid;
  justify-items: center;
  gap: 10px;
}

.dice-pair {
  display: flex;
  gap: 8px;
}

.dice-pair span {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 2px solid #e9edf5;
  border-radius: 7px;
  background: #f8fafc;
  color: #111827;
  font-weight: 900;
}

.slice-picker {
  max-height: 210px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  overflow-y: auto;
  padding-right: 4px;
}

.slice-picker button {
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #100b17;
  cursor: pointer;
  font-size: 12px;
}

.slice-picker button.active {
  border-color: var(--gold);
  background: #372815;
}

.slice-stage {
  position: relative;
  width: min(760px, 100%);
  height: 430px;
  border-bottom: 6px solid #6c3b22;
  background:
    linear-gradient(rgba(40, 23, 39, 0.25), rgba(10, 6, 15, 0.35)),
    repeating-linear-gradient(90deg, #4b2918, #4b2918 34px, #5c351f 34px, #5c351f 68px);
  overflow: hidden;
}

.slice-score {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 2;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: rgba(9, 7, 15, 0.82);
  font-weight: 900;
}

.slice-object {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: 92px;
  min-height: 92px;
  display: grid;
  place-items: center;
  padding: 8px;
  border: 2px solid #f0c358;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 25%, #f6d56c, #a94d34 65%, #3d1821);
  cursor: pointer;
  animation: fruit-float 2.6s ease-in-out var(--delay) infinite alternate;
  text-align: center;
}

.slice-object span {
  font-size: 11px;
  font-weight: 900;
}

.slice-object b {
  color: #fff5ad;
}

.slice-object small {
  color: #f0d2c4;
  font-size: 10px;
}

.slash-line {
  position: absolute;
  z-index: 3;
  top: 46%;
  left: 12%;
  width: 74%;
  height: 3px;
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 0 0 16px rgba(255, 255, 255, 0.85);
  transform: rotate(-16deg) scaleX(0);
  transform-origin: left;
}

.slice-stage.exploded .slash-line {
  animation: slash 300ms ease-out both;
}

@keyframes slash {
  to {
    transform: rotate(-16deg) scaleX(1);
  }
}

@keyframes fruit-float {
  from {
    transform: translateY(0) rotate(-5deg);
  }

  to {
    transform: translateY(-34px) rotate(8deg);
  }
}

.plinko-layout,
.snakes-layout,
.slice-layout {
  grid-template-columns: 1fr;
}

.plinko-layout .game-stage,
.snakes-layout .game-stage,
.slice-layout .game-stage {
  min-height: 600px;
  justify-content: stretch;
  padding: 0;
  background: #101923;
}

.plinko-layout .game-stage::before,
.snakes-layout .game-stage::before,
.slice-layout .game-stage::before {
  opacity: 0.04;
}

.plinko-layout .bet-panel,
.snakes-layout .bet-panel,
.slice-layout .bet-panel {
  grid-row: 2;
  width: min(720px, 100%);
  justify-self: center;
  display: grid;
  gap: 10px;
  border-top: 1px solid var(--line);
  border-right: 0;
  background: #182333;
}

.plinko-layout .game-footer,
.snakes-layout .game-footer,
.slice-layout .game-footer {
  display: none;
}

.plinko-controls,
.snakes-controls,
.slice-controls {
  display: grid;
  gap: 12px;
}

.plinko-board {
  width: 100%;
  height: 600px;
  display: grid;
  place-items: center;
  padding: 24px 22px 40px;
  background:
    radial-gradient(circle at 50% 18%, rgba(86, 118, 160, 0.2), transparent 24%),
    linear-gradient(180deg, #101923 0%, #0f1520 100%);
  overflow: hidden;
}

.plinko-peg-field {
  position: relative;
  width: min(620px, 88vw);
  height: 410px;
}

.plinko-drop-source {
  position: absolute;
  z-index: 6;
  top: 26px;
  left: 50%;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  background: rgba(23, 31, 45, 0.86);
  transform: translateX(-50%);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
}

.plinko-board .peg {
  width: 9px;
  height: 9px;
  background: #dce7f7;
  box-shadow: 0 0 10px rgba(220, 231, 247, 0.32);
}

.plinko-board .plinko-ball {
  top: 50px;
  left: 50%;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  background: transparent;
  border-radius: 50%;
  offset-distance: 0%;
  offset-path: path("M 0 0 C 14 28 -12 66 0 350");
  offset-rotate: 0deg;
  transform: translate(-50%, -50%) scale(0.82);
  animation:
    plinko-ball-fall var(--drop-time, 1650ms) cubic-bezier(0.38, 0.02, 0.2, 1) var(--drop-delay, 0ms) both,
    plinko-ball-bounce var(--drop-time, 1650ms) linear var(--drop-delay, 0ms) both;
  filter: drop-shadow(0 10px 12px rgba(0, 0, 0, 0.38));
  will-change: offset-distance, transform, opacity;
}

.plinko-board .plinko-ball img {
  width: 100% !important;
  height: 100% !important;
  animation: plinko-ball-spin var(--drop-time, 1650ms) linear var(--drop-delay, 0ms) both;
}

.plinko-bins {
  right: 28px;
  bottom: 34px;
  left: 28px;
  grid-template-columns: repeat(var(--plinko-cols), minmax(0, 1fr));
  gap: 5px;
}

.plinko-bin {
  min-height: 32px;
  display: grid;
  place-items: center;
  padding: 7px 3px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 4px;
  background: #253147;
  color: #dbe7f8;
  font-size: 11px;
  font-weight: 950;
  transition: transform 220ms ease, filter 220ms ease;
}

.plinko-bin.win {
  background: linear-gradient(180deg, #d89725, #a9611d);
  color: #15110a;
}

.plinko-bin.loss {
  background: linear-gradient(180deg, #30516f, #1d2b3e);
}

.plinko-bin.active {
  filter: brightness(1.22);
  transform: translateY(-6px);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.34);
}

.plinko-results {
  top: 78px;
  right: 22px;
  max-height: 230px;
  overflow: hidden;
}

.plinko-results span {
  background: #182333;
  color: #dce7f7;
}

@keyframes plinko-ball-fall {
  0% {
    opacity: 0;
    offset-distance: 0%;
  }

  5% {
    opacity: 1;
    offset-distance: 3%;
  }

  14% {
    offset-distance: 10%;
  }

  28% {
    offset-distance: 23%;
  }

  44% {
    offset-distance: 41%;
  }

  62% {
    offset-distance: 63%;
  }

  78% {
    offset-distance: 83%;
  }

  94% {
    opacity: 1;
    offset-distance: 98%;
  }

  100% {
    opacity: 1;
    offset-distance: 100%;
  }
}

@keyframes plinko-ball-bounce {
  0% {
    transform: translate(-50%, -50%) scale(0.76);
  }

  7% {
    transform: translate(-50%, -50%) scale(1.08, 0.92);
  }

  14%,
  31%,
  48%,
  65%,
  81% {
    transform: translate(-50%, -50%) scale(0.9, 1.1);
  }

  20%,
  38%,
  55%,
  72%,
  88% {
    transform: translate(-50%, -50%) scale(1.08, 0.94);
  }

  100% {
    transform: translate(-50%, -50%) scale(0.92, 1.04);
  }
}

@keyframes plinko-ball-spin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(540deg);
  }
}

.snakes-stage {
  min-height: 600px;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 18px;
  padding: 28px 16px;
  background:
    radial-gradient(circle at 50% 22%, rgba(75, 112, 82, 0.24), transparent 28%),
    linear-gradient(180deg, #101923, #111720);
}

.snakes-readout {
  display: grid;
  justify-items: center;
  gap: 4px;
  text-align: center;
}

.snakes-readout strong {
  color: #f3d36b;
  font-size: 44px;
  font-weight: 950;
  line-height: 1;
}

.snakes-stage.lost .snakes-readout strong {
  color: #ff4f82;
}

.snakes-readout span {
  color: #cbd6e8;
  font-weight: 750;
}

.snakes-stage .dice-pair span {
  width: 56px;
  height: 56px;
  border: 3px solid #edf4ff;
  border-radius: 8px;
  font-size: 22px;
  box-shadow: 0 10px 18px rgba(0, 0, 0, 0.25);
}

.dice-pair.rolling span {
  animation: snake-dice-roll 360ms ease-in-out infinite alternate;
}

.snake-loop {
  width: min(690px, 94vw);
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
}

.snake-tile {
  position: relative;
  min-height: 76px;
  display: grid;
  place-items: center;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 7px;
  background: linear-gradient(180deg, #1d2b3e, #15202f);
  color: #d9e5f4;
  font-size: 14px;
  font-weight: 950;
  overflow: hidden;
}

.snake-tile.snake {
  background: linear-gradient(180deg, #412037, #211827);
  color: #ff6f92;
}

.snake-tile.active {
  border-color: rgba(243, 211, 107, 0.86);
  box-shadow: 0 0 0 3px rgba(243, 211, 107, 0.12), 0 16px 30px rgba(0, 0, 0, 0.28);
  transform: translateY(-4px);
}

.snake-tile.passed:not(.snake) {
  color: #62e79d;
}

.snake-tile.pending {
  animation: snake-tile-pulse 520ms ease-in-out infinite alternate;
}

.snake-tile b {
  position: absolute;
  right: 6px;
  bottom: 5px;
  color: #f3d36b;
}

.snakes-last-roll,
.snakes-payout-field,
.slice-selected-count {
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 12px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 5px;
  background: #1c2a3c;
  color: #d7e2f0;
  font-weight: 850;
}

.snakes-payout-field {
  display: grid;
  gap: 4px;
}

.snakes-payout-field label {
  color: #c7d3e5;
  font-size: 12px;
}

.snakes-payout-field div {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #fff;
  font-size: 17px;
}

@keyframes snake-dice-roll {
  from {
    transform: translateY(0) rotate(-5deg);
  }

  to {
    transform: translateY(-7px) rotate(7deg);
  }
}

@keyframes snake-tile-pulse {
  from {
    filter: brightness(0.94);
  }

  to {
    filter: brightness(1.18);
  }
}

.slice-stage {
  width: 100%;
  height: 600px;
  border-bottom: 0;
  background:
    radial-gradient(circle at 50% 24%, rgba(97, 141, 98, 0.22), transparent 24%),
    linear-gradient(180deg, #101923, #15151d 72%, #332116 100%);
}

.slice-score {
  color: #f3d36b;
  font-size: 26px;
}

.slice-current {
  position: absolute;
  z-index: 2;
  right: 16px;
  top: 18px;
  max-width: min(360px, calc(100% - 150px));
  padding: 8px 11px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 5px;
  background: rgba(9, 14, 21, 0.78);
  color: #d6e0ee;
  font-size: 13px;
  font-weight: 800;
}

.slice-object {
  width: 96px;
  min-height: 96px;
  border-color: rgba(243, 211, 107, 0.88);
  background:
    radial-gradient(circle at 32% 24%, #fff3a8, #e8b846 40%, #a85d24 72%, #321922);
  box-shadow: 0 16px 26px rgba(0, 0, 0, 0.32);
  animation: slice-fly 2.25s ease-in-out var(--delay) infinite alternate;
}

.slice-object span {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.86);
  color: #2a1b15;
  font-size: 17px;
}

.slice-object b {
  color: #fff4a8;
  font-size: 13px;
}

.slice-object small {
  color: #f7d5c5;
}

.slice-object.revealed {
  opacity: 0.2;
  transform: scale(0.82);
  pointer-events: none;
}

.slice-object.last {
  animation: slice-hit 360ms ease both;
}

.slice-stage.exploded .slash-line,
.slice-stage.sliced .slash-line {
  animation: slash 300ms ease-out both;
}

.slice-blast {
  position: absolute;
  z-index: 5;
  left: 50%;
  top: 50%;
  width: 128px;
  height: 128px;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.slice-blast::before,
.slice-blast::after,
.slice-blast span {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, #fff3a5 0 18%, #ff725e 18% 54%, rgba(125, 25, 34, 0) 55%);
  content: "";
  animation: slice-blast 620ms ease-out both;
}

.slice-blast::before {
  inset: 0;
}

.slice-blast::after {
  inset: 18px;
  animation-delay: 80ms;
}

.slice-blast span:nth-child(1) {
  inset: 34px 70px 48px 8px;
}

.slice-blast span:nth-child(2) {
  inset: 16px 8px 72px 66px;
}

.slice-blast span:nth-child(3) {
  inset: 76px 24px 8px 42px;
}

.slice-picker-panel {
  display: grid;
  gap: 10px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 7px;
  background: #111a28;
}

.slice-preset-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
}

.slice-preset-row button {
  min-height: 33px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #182333;
  color: #d8e2f0;
  cursor: pointer;
}

.slice-preset-row button.active {
  border-color: rgba(243, 211, 107, 0.72);
  background: #3d2d18;
  color: #fff1b7;
}

.slice-picker {
  max-height: 260px;
}

.slice-picker button {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}

.slice-picker button small {
  grid-column: 1 / -1;
  color: #9eb0c8;
}

@keyframes slice-fly {
  from {
    transform: translateY(0) translateX(0) rotate(-7deg);
  }

  to {
    transform: translateY(-48px) translateX(var(--slice-drift)) rotate(10deg);
  }
}

@keyframes slice-hit {
  from {
    filter: brightness(1.25);
  }

  to {
    filter: brightness(1);
  }
}

@keyframes slice-blast {
  from {
    opacity: 1;
    transform: scale(0.35);
  }

  to {
    opacity: 0;
    transform: scale(1.35);
  }
}

.cross-road-layout {
  grid-template-columns: 1fr;
}

.cross-road-layout .game-stage {
  min-height: 500px;
  justify-content: stretch;
  padding: 0;
  background: #111821;
}

.cross-road-layout .game-stage::before {
  opacity: 0.03;
}

.cross-road-layout .bet-panel {
  grid-row: 2;
  width: min(720px, 100%);
  justify-self: center;
  display: grid;
  gap: 10px;
  border-top: 1px solid var(--line);
  border-right: 0;
  background: #151f2d;
}

.cross-road-layout .game-footer {
  grid-row: 3;
}

.cross-road-layout .amount-input,
.cross-road-layout .field select {
  background: #1c2a3c;
}

.cross-road-scene {
  --lane-width: 118px;
  --start-width: 190px;
  position: relative;
  width: 100%;
  min-height: 500px;
  border-radius: 0;
  background:
    linear-gradient(90deg, rgba(255,255,255,0.08) 0 2px, transparent 2px 100%) calc(var(--start-width) + 41px) 0 / var(--lane-width) 100%,
    linear-gradient(#22323b, #14252d);
  overflow: hidden;
  isolation: isolate;
}

.cross-road-track {
  position: absolute;
  z-index: 2;
  inset: 0 auto 0 0;
  width: max-content;
  display: grid;
  grid-template-columns: var(--start-width) repeat(var(--lane-count), var(--lane-width));
  transform: translateX(calc(var(--road-step) * -1 * var(--lane-width)));
  transition: transform 620ms cubic-bezier(0.2, 0.74, 0.22, 1);
}

.cross-start-zone {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 34% 76%, #6fb64a 0 18px, transparent 19px),
    radial-gradient(circle at 78% 74%, #7fc85d 0 24px, transparent 25px),
    radial-gradient(circle at 70% 24%, #4f963e 0 32px, transparent 33px),
    linear-gradient(#498e43 0 46%, #5da753 46% 64%, #315d35 64% 100%);
  box-shadow: inset -10px 0 0 rgba(0, 0, 0, 0.16);
}

.cross-start-zone::before,
.cross-start-zone::after {
  position: absolute;
  right: 0;
  left: 0;
  height: 24px;
  background: linear-gradient(#77756f, #4d4e4d);
  content: "";
}

.cross-start-zone::before {
  top: 178px;
}

.cross-start-zone::after {
  bottom: 88px;
}

.cross-start-zone span {
  position: absolute;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #ffc4d4;
  box-shadow: 52px 86px #df8bff, 108px 34px #bedbff, 132px 118px #fff18e;
}

.cross-road-lane {
  position: relative;
  display: grid;
  place-items: center;
  border: 0;
  border-left: 1px solid rgba(255, 255, 255, 0.04);
  border-right: 1px solid rgba(0, 0, 0, 0.22);
  background:
    linear-gradient(180deg, transparent 0 18%, rgba(255,255,255,0.34) 18% 28%, transparent 28% 42%, rgba(255,255,255,0.34) 42% 52%, transparent 52% 66%, rgba(255,255,255,0.34) 66% 76%, transparent 76% 100%) center / 2px 100% no-repeat,
    linear-gradient(90deg, #20323a, #263a42 50%, #1a2a32);
  cursor: pointer;
}

.cross-road-lane:disabled {
  cursor: default;
  opacity: 1;
}

.cross-road-lane.active .road-disk {
  box-shadow: 0 0 0 3px rgba(227, 184, 60, 0.22), 0 12px 22px rgba(0, 0, 0, 0.45);
}

.cross-road-lane.cleared .road-disk {
  color: #72ff9a;
  transform: translateY(50px) scale(0.82);
}

.road-disk {
  position: relative;
  z-index: 4;
  width: 74px;
  height: 74px;
  display: grid;
  place-items: center;
  border: 5px solid #42525b;
  border-radius: 50%;
  background:
    repeating-linear-gradient(90deg, rgba(255,255,255,0.08) 0 5px, transparent 5px 11px),
    radial-gradient(circle at 45% 35%, #43535d, #223039 72%);
  color: #d9e2eb;
  font-size: 13px;
  font-weight: 900;
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.48);
  transition: transform 260ms ease, color 260ms ease, box-shadow 260ms ease;
}

.road-barricade {
  position: absolute;
  z-index: 5;
  top: 50%;
  left: 50%;
  width: 54px;
  height: 20px;
  border: 2px solid #5d6872;
  border-radius: 4px;
  background:
    repeating-linear-gradient(135deg, #d8dbe0 0 8px, #64707c 8px 14px);
  transform: translate(-50%, -50%);
  opacity: 0.9;
}

.cross-traffic {
  position: absolute;
  z-index: 3;
  top: 0;
  bottom: 0;
  left: var(--start-width);
  width: calc(var(--lane-count) * var(--lane-width));
  transform: translateX(calc(var(--road-step) * -1 * var(--lane-width)));
  transition: transform 620ms cubic-bezier(0.2, 0.74, 0.22, 1);
  pointer-events: none;
}

.cross-car {
  position: absolute;
  left: calc(var(--lane) * var(--lane-width) + 32px);
  top: -74px;
  width: 54px;
  height: 76px;
  border: 3px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  background: linear-gradient(#e94f57, #a82534);
  box-shadow: inset 0 14px 0 rgba(255, 255, 255, 0.18), inset 0 -10px 0 rgba(0, 0, 0, 0.18), 0 12px 18px rgba(0, 0, 0, 0.35);
  animation: cross-car-drive var(--car-speed) linear var(--car-delay) infinite;
}

.cross-car::before {
  position: absolute;
  inset: 11px 12px auto;
  height: 20px;
  border-radius: 4px;
  background: rgba(21, 30, 40, 0.74);
  content: "";
}

.cross-car::after {
  position: absolute;
  right: 8px;
  bottom: 10px;
  left: 8px;
  height: 5px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.26);
  content: "";
}

.cross-car.blue {
  background: linear-gradient(#4b9bff, #1d4f9a);
}

.cross-car.gold {
  background: linear-gradient(#f2bd55, #af6a1f);
}

.cross-car.green {
  background: linear-gradient(#57d493, #23845c);
}

.cross-car.reverse {
  animation-name: cross-car-drive-reverse;
}

.cross-runner {
  position: absolute;
  z-index: 7;
  top: 286px;
  left: 72px;
  width: 86px;
  height: 92px;
  display: grid;
  place-items: center;
  filter: drop-shadow(0 14px 16px rgba(0, 0, 0, 0.4));
  transform-origin: 50% 88%;
}

.cross-runner img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  image-rendering: auto;
}

.cross-road-scene.stepping .cross-runner {
  animation: cross-qbee-glide 620ms cubic-bezier(0.18, 0.8, 0.24, 1) both;
}

.cross-road-scene.crashing .cross-runner {
  animation: cross-qbee-hit 1050ms cubic-bezier(0.18, 0.8, 0.24, 1) both;
}

.cross-road-scene.crashed .cross-runner {
  opacity: 0;
  transform: translate3d(54px, 14px, 0) rotate(12deg) scale(0.58);
}

.cross-impact-layer {
  position: absolute;
  z-index: 12;
  inset: 0;
  pointer-events: none;
}

.cross-impact-car {
  position: absolute;
  left: 117px;
  top: -112px;
  width: 62px;
  height: 90px;
  border: 3px solid rgba(255, 255, 255, 0.18);
  border-radius: 13px;
  background: linear-gradient(#ff5160, #a92535);
  box-shadow:
    inset 0 15px 0 rgba(255, 255, 255, 0.18),
    inset 0 -13px 0 rgba(0, 0, 0, 0.22),
    0 18px 26px rgba(0, 0, 0, 0.42);
}

.cross-impact-car::before {
  position: absolute;
  inset: 12px 13px auto;
  height: 24px;
  border-radius: 5px;
  background: rgba(21, 30, 40, 0.74);
  content: "";
}

.cross-impact-car::after {
  position: absolute;
  right: 9px;
  bottom: 12px;
  left: 9px;
  height: 6px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.28);
  content: "";
}

.cross-road-scene.crashing .cross-impact-car {
  animation: cross-impact-drive 1050ms cubic-bezier(0.08, 0.74, 0.12, 1) both;
}

.cross-road-scene.crashed .cross-impact-car {
  opacity: 0;
}

.cross-blood-splat {
  position: absolute;
  left: 96px;
  top: 326px;
  width: 92px;
  height: 54px;
  opacity: 0;
  transform: scale(0.45) rotate(-7deg);
  transform-origin: 50% 50%;
}

.cross-blood-splat::before,
.cross-blood-splat::after,
.cross-blood-splat i {
  position: absolute;
  border-radius: 999px;
  background: #b30f28;
  box-shadow: 0 0 0 1px rgba(80, 0, 12, 0.16), 0 5px 12px rgba(0, 0, 0, 0.22);
  content: "";
}

.cross-blood-splat::before {
  inset: 13px 14px 9px 10px;
  background: radial-gradient(circle at 28% 38%, #ff5266, #b30f28 68%);
}

.cross-blood-splat::after {
  width: 34px;
  height: 24px;
  right: 2px;
  top: 17px;
  transform: rotate(18deg);
}

.cross-blood-splat i:nth-child(1) {
  width: 22px;
  height: 18px;
  left: 2px;
  top: 6px;
}

.cross-blood-splat i:nth-child(2) {
  width: 18px;
  height: 15px;
  right: 12px;
  top: 1px;
}

.cross-blood-splat i:nth-child(3) {
  width: 14px;
  height: 12px;
  left: 26px;
  bottom: 1px;
}

.cross-blood-splat i:nth-child(4) {
  width: 10px;
  height: 9px;
  right: 0;
  bottom: 6px;
}

.cross-blood-splat i:nth-child(5) {
  width: 8px;
  height: 7px;
  left: 78px;
  top: 43px;
}

.cross-road-scene.crashing .cross-blood-splat {
  animation: cross-blood-arrive 1050ms ease-out both;
}

.cross-road-scene.crashed .cross-blood-splat {
  opacity: 1;
  transform: scale(1) rotate(-7deg);
}

.cross-current-chip,
.cross-loss-splash {
  position: absolute;
  z-index: 8;
  left: 96px;
  top: 390px;
  min-width: 62px;
  padding: 5px 8px;
  border-radius: 7px;
  background: rgba(10, 16, 21, 0.82);
  color: #72ff9a;
  font-size: 13px;
  font-weight: 950;
  text-align: center;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.32);
}

.cross-current-chip.loss {
  color: #ff6c85;
}

.cross-loss-splash {
  top: 310px;
  background: rgba(62, 18, 30, 0.9);
  color: #ff6c85;
  animation: cross-pop 520ms ease both;
}

.cross-payout-box,
.cross-settled {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 5px;
  background: #1c2a3c;
}

.cross-payout-box span {
  color: #d6dfeb;
}

.cross-payout-box strong,
.cross-settled strong {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.cross-settled {
  border-color: rgba(95, 209, 154, 0.3);
  color: #72ff9a;
}

.cross-settled.loss {
  border-color: rgba(239, 90, 120, 0.32);
  color: #ff6c85;
}

@keyframes cross-car-drive {
  from {
    transform: translateY(-90px);
  }

  to {
    transform: translateY(620px);
  }
}

@keyframes cross-car-drive-reverse {
  from {
    transform: translateY(620px) rotate(180deg);
  }

  to {
    transform: translateY(-90px) rotate(180deg);
  }
}

@keyframes cross-qbee-glide {
  0% {
    transform: translate3d(0, 0, 0) rotate(0deg) scale(1);
  }

  20% {
    transform: translate3d(12px, -5px, 0) rotate(2deg) scale(1.02);
  }

  58% {
    transform: translate3d(46px, -13px, 0) rotate(4deg) scale(1.035);
  }

  82% {
    transform: translate3d(64px, -3px, 0) rotate(1deg) scale(1.01);
  }

  100% {
    transform: translate3d(0, 0, 0) rotate(0deg) scale(1);
  }
}

@keyframes cross-qbee-hit {
  0% {
    opacity: 1;
    transform: translate3d(0, 0, 0) rotate(0deg) scale(1);
  }

  24% {
    opacity: 1;
    transform: translate3d(18px, -5px, 0) rotate(2deg) scale(1.02);
  }

  43% {
    opacity: 1;
    transform: translate3d(44px, -10px, 0) rotate(4deg) scale(1.03);
  }

  58% {
    opacity: 1;
    transform: translate3d(54px, 5px, 0) rotate(10deg) scale(0.78, 0.62);
  }

  78% {
    opacity: 0.45;
    transform: translate3d(58px, 13px, 0) rotate(14deg) scale(0.58);
  }

  100% {
    opacity: 0;
    transform: translate3d(58px, 13px, 0) rotate(14deg) scale(0.5);
  }
}

@keyframes cross-impact-drive {
  0% {
    opacity: 0;
    transform: translate3d(0, -92px, 0);
  }

  24% {
    opacity: 1;
  }

  54% {
    opacity: 1;
    transform: translate3d(0, 350px, 0);
  }

  100% {
    opacity: 0;
    transform: translate3d(0, 760px, 0);
  }
}

@keyframes cross-blood-arrive {
  0%,
  42% {
    opacity: 0;
    transform: scale(0.35) rotate(-7deg);
  }

  54% {
    opacity: 1;
    transform: scale(1.14) rotate(-7deg);
  }

  70% {
    opacity: 1;
    transform: scale(0.94) rotate(-7deg);
  }

  100% {
    opacity: 1;
    transform: scale(1) rotate(-7deg);
  }
}

@keyframes cross-pop {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.86);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.modal-backdrop {
  position: fixed;
  z-index: 80;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(2, 6, 12, 0.78);
}

.modal {
  width: min(680px, 100%);
  max-height: 90vh;
  border: 1px solid #5c466f;
  border-radius: 7px;
  background: #15101d;
  overflow-y: auto;
  box-shadow: 0 24px 90px rgba(0, 0, 0, 0.5);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 17px 19px;
  border-bottom: 1px solid var(--line);
}

.modal-header h2 {
  margin: 0;
  font-size: 18px;
}

.modal-body {
  padding: 19px;
}

.tabs {
  display: flex;
  gap: 4px;
  padding: 4px;
  border-radius: 5px;
  background: #0d0912;
}

.tabs button {
  flex: 1;
  min-height: 40px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  cursor: pointer;
}

.tabs button.active {
  background: #3a2949;
}

.game-tabs {
  margin: 12px 0 14px;
}

.game-tabs button {
  white-space: nowrap;
}

.compact-stats {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 14px;
}

.empty-state {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.025);
  color: var(--muted);
  text-align: center;
}

.battle-picker-backdrop {
  background: rgba(3, 7, 13, 0.84);
}

.battle-case-picker-modal {
  width: min(720px, calc(100vw - 24px));
  max-height: min(92vh, 880px);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  border-color: #29364a;
  background: #0f1724;
  overflow: hidden;
}

.battle-case-picker-modal .modal-header {
  padding: 16px 17px 10px;
  border-bottom: 0;
}

.battle-case-picker-body {
  display: grid;
  gap: 12px;
  padding: 10px 17px 16px;
  overflow-y: auto;
}

.battle-picker-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.battle-picker-tabs button,
.battle-picker-controls select,
.battle-picker-search {
  min-height: 39px;
  border: 1px solid #253247;
  border-radius: 6px;
  background: #1a2638;
  color: #dbe7f5;
}

.battle-picker-tabs button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 10px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
}

.battle-picker-tabs button.active {
  border-color: #177bff;
  background: #1d3558;
  box-shadow: inset 0 0 0 1px rgba(24, 122, 255, 0.42);
}

.battle-picker-search {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  padding: 0 11px;
}

.battle-picker-search svg {
  color: #8ba1bb;
}

.battle-picker-search input {
  width: 100%;
  height: 38px;
  border: 0;
  background: transparent;
  color: #eef5ff;
  outline: 0;
  font: inherit;
}

.battle-picker-search input::placeholder {
  color: #91a0b4;
}

.battle-picker-controls {
  display: grid;
  grid-template-columns: minmax(0, 190px) minmax(0, 190px);
  gap: 8px;
}

.battle-picker-controls select {
  width: 100%;
  padding: 0 12px;
}

.battle-picker-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(146px, 1fr));
  gap: 12px;
}

.battle-picker-card {
  min-height: 276px;
  display: grid;
  grid-template-rows: 120px minmax(34px, auto) auto auto;
  align-items: center;
  justify-items: center;
  gap: 8px;
  padding: 13px 12px 14px;
  border: 1px solid #263447;
  border-radius: 7px;
  background: #0e1825;
  text-align: center;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

.battle-picker-card.selected {
  border-color: rgba(25, 126, 255, 0.7);
  box-shadow:
    inset 0 0 0 1px rgba(25, 126, 255, 0.24),
    0 12px 30px rgba(0, 0, 0, 0.16);
}

.battle-picker-art {
  position: relative;
  display: grid;
  place-items: end center;
  width: 126px;
  height: 112px;
}

.battle-picker-art .case-chest {
  width: 112px;
  height: 92px;
  transform: none;
}

.battle-picker-art .daily-case-item-fan {
  transform: translateY(-4px) scale(0.88);
}

.battle-picker-card strong {
  max-width: 120px;
  min-height: 34px;
  display: grid;
  place-items: center;
  color: #eef5ff;
  font-size: 13px;
  line-height: 1.18;
}

.battle-picker-card > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  color: #dce9ff;
  font-size: 13px;
  font-weight: 800;
}

.battle-picker-stepper {
  width: 100%;
  height: 38px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  align-items: center;
  overflow: hidden;
  border-radius: 6px;
  background: #1a2638;
}

.battle-picker-stepper button {
  height: 38px;
  border: 0;
  background: transparent;
  color: #dce7f7;
  cursor: pointer;
  font-size: 17px;
  font-weight: 900;
}

.battle-picker-stepper button:hover:not(:disabled) {
  background: #26384f;
}

.battle-picker-stepper button:disabled {
  cursor: not-allowed;
  opacity: 0.42;
}

.battle-picker-stepper b {
  color: #eef5ff;
  font-size: 16px;
}

.battle-picker-footer {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 17px;
  border-top: 1px solid #223044;
  background: #111b2a;
}

.battle-picker-footer span {
  color: #c6d2e4;
  font-size: 13px;
}

.battle-picker-footer strong {
  color: #eef5ff;
}

.setting-row {
  cursor: pointer;
}

.setting-row input {
  width: 18px;
  height: 18px;
  accent-color: var(--gold);
}

.dice-fair-row > span,
.wheel-fair-row > span,
.mines-fair-row > span,
.tower-fair-row > span,
.limbo-fair-row > span,
.coinflip-fair-row > span,
.keno-fair-row > span,
.crash-fair-row > span {
  cursor: pointer;
}

body.quick-mode * {
  animation-duration: 1ms !important;
  transition-duration: 1ms !important;
}

body.compact-game-controls .bet-panel {
  gap: 9px;
}

body.compact-game-controls .field,
body.compact-game-controls .result-banner,
body.compact-game-controls .amount-input {
  margin-block: 4px;
}

.wallet-methods {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 9px;
  margin: 16px 0;
}

.wallet-method {
  min-height: 64px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--panel-2);
  cursor: pointer;
}

.wallet-method.active {
  border-color: var(--gold);
}

#toast-region {
  position: fixed;
  z-index: 100;
  right: 20px;
  bottom: 20px;
  display: grid;
  gap: 8px;
}

.toast {
  min-width: 260px;
  max-width: 360px;
  padding: 12px 14px;
  border: 1px solid #3b4b63;
  border-radius: 5px;
  background: #172235;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.35);
}

.toast.good {
  border-color: #2e8c63;
}

.toast.bad {
  border-color: #a33750;
}

.mobile-only {
  display: none;
}

@media (max-width: 1280px) {
  :root {
    --chat: 275px;
  }

  .game-grid {
    grid-template-columns: repeat(auto-fill, minmax(124px, 1fr));
  }

  .case-lobby-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 1050px) {
  :root {
    --chat: 0px;
  }

  .topbar {
    grid-template-columns: var(--sidebar) 1fr;
  }

  .app-shell.sidebar-collapsed .topbar {
    grid-template-columns: var(--sidebar-collapsed) 1fr;
  }

  .topbar-right {
    display: none;
  }

  .chat-panel {
    right: -310px;
    width: 310px;
    transition: right 160ms ease;
  }

  .chat-panel.open {
    right: 0;
  }

  .mobile-only {
    display: inline-grid;
  }

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

  .site-footer {
    grid-template-columns: 1fr 1fr;
  }

  .case-lobby-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .case-filter-bar {
    grid-template-columns: 1fr 1fr;
  }

  .promo-manage-row {
    grid-template-columns: minmax(150px, 1fr) minmax(0, 0.7fr) minmax(0, 0.7fr);
  }

  .affiliate-hero {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .affiliate-steps {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  :root {
    --sidebar: 0px;
    --header: 60px;
  }

  .game-result-box {
    top: calc(var(--header) + 180px);
    left: 50vw;
    width: min(204px, calc(100vw - 32px));
  }

  .topbar {
    grid-template-columns: 1fr;
  }

  .topbar-left {
    display: none;
  }

  .topbar-center {
    padding: 0 12px;
  }

  .desktop-compact-logo {
    display: none;
  }

  .balance-value {
    min-width: auto;
    padding: 8px 10px;
  }

  .sidebar {
    left: -260px;
    width: 250px;
    transition: left 160ms ease;
  }

  .sidebar.open {
    left: 0;
  }

  .app-shell.sidebar-collapsed .topbar {
    grid-template-columns: 1fr;
  }

  .app-shell.sidebar-collapsed .sidebar {
    left: -260px;
    width: 250px;
    padding: 16px;
  }

  .app-shell.sidebar-collapsed .sidebar.open {
    left: 0;
  }

  .app-shell.sidebar-collapsed .search-box {
    height: auto;
    display: block;
    background: transparent;
  }

  .app-shell.sidebar-collapsed .search-box svg {
    position: absolute;
    top: 13px;
    left: 12px;
  }

  .app-shell.sidebar-collapsed .search-box input {
    display: block;
  }

  .app-shell.sidebar-collapsed .nav-button {
    justify-content: flex-start;
    gap: 11px;
    padding: 10px 12px;
  }

  .app-shell.sidebar-collapsed .subnav {
    margin-left: 10px;
  }

  .app-shell.sidebar-collapsed .subnav .nav-button {
    padding: 7px 10px;
  }

  .app-shell.sidebar-collapsed .nav-label,
  .app-shell.sidebar-collapsed .nav-button[data-action="toggle-originals"] svg:last-child,
  .app-shell.sidebar-collapsed .discord-callout span {
    display: inline;
  }

  .app-shell.sidebar-collapsed .nav-label {
    flex: 1;
  }

  .app-shell.sidebar-collapsed .discord-callout {
    justify-content: flex-start;
    padding: 12px;
  }

  .page {
    margin: 0;
    padding: calc(var(--header) + 14px) 12px 36px;
  }

  .app-shell.sidebar-collapsed .page {
    margin: 0;
  }

  .hero {
    min-height: 520px;
    align-items: flex-end;
    justify-content: stretch;
    padding: 24px;
    background-position: 32% center;
  }

  .hero::before {
    background: rgba(7, 5, 11, 0.42);
  }

  .hero > div:first-child {
    width: 100%;
    min-width: 0;
    padding: 10px 0;
  }

  .hero h1 {
    font-size: 34px;
  }

  .hero-art {
    display: none;
  }

  .hero-cube {
    top: 8px;
    right: 80px;
    width: 92px;
    height: 92px;
  }

  .feature-grid,
  .stats-grid,
  .form-grid,
  .promo-grid,
  .case-grid {
    grid-template-columns: 1fr;
  }

  .case-source-tabs,
  .case-filter-bar,
  .case-builder-top,
  .case-look-grid,
  .case-builder-row {
    grid-template-columns: 1fr;
  }

  .case-community-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .case-community-tabs .primary {
    margin-left: 0;
  }

  .case-search-field {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .case-search-field button {
    grid-column: 1 / -1;
  }

  .case-builder-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .compact-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .account-layout {
    grid-template-columns: 1fr;
  }

  .account-profile-card {
    position: static;
  }

  .account-tabs {
    width: 100%;
  }

  .avatar-builder-modal {
    width: calc(100vw - 16px);
    max-height: calc(100vh - 16px);
  }

  .avatar-builder-body {
    grid-template-columns: 1fr;
  }

  .avatar-accordion {
    max-height: none;
  }

  .avatar-option-grid {
    grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
  }

  .promo-manage-row {
    grid-template-columns: 1fr;
  }

  .promo-manage-row .button {
    width: 100%;
  }

  .affiliate-hero,
  .affiliate-claim-card,
  .affiliate-join-form {
    grid-template-columns: 1fr;
  }

  .affiliate-claim-card .button {
    grid-column: auto;
    grid-row: auto;
    width: 100%;
  }

  .affiliate-join-panel {
    align-items: stretch;
    flex-direction: column;
  }

  .affiliate-code-pill,
  .affiliate-join-panel .button {
    width: 100%;
  }

  .site-footer {
    grid-template-columns: 1fr;
  }

  .compact-tabs {
    width: 100%;
  }

  .battle-case-picker-modal {
    width: calc(100vw - 16px);
    max-height: calc(100vh - 16px);
  }

  .battle-picker-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .battle-picker-controls {
    grid-template-columns: 1fr;
  }

  .battle-picker-grid {
    grid-template-columns: repeat(auto-fill, minmax(132px, 1fr));
    gap: 9px;
  }

  .battle-picker-card {
    min-height: 250px;
    padding: 10px;
  }

  .battle-picker-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .battle-page-heading {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .battle-page-heading > span {
    display: none;
  }

  .battle-lobby-controls {
    grid-template-columns: 1fr;
  }

  .battle-lobby-tools {
    justify-content: stretch;
  }

  .battle-lobby-tools > button,
  .battle-lobby-tools label {
    flex: 1 1 150px;
    justify-content: center;
  }

  .battle-lobby-row {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .battle-lobby-row .battle-card-cases {
    justify-content: flex-start;
  }

  .battle-row-status,
  .battle-row-action {
    justify-content: stretch;
    text-align: left;
  }

  .battle-row-action .button {
    width: 100%;
  }

  .battle-selected-case-list {
    grid-template-columns: 1fr;
  }

  .battle-create-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .game-grid {
    grid-template-columns: repeat(auto-fill, minmax(112px, 1fr));
  }

  .game-layout {
    grid-template-columns: 1fr;
  }

  .bet-panel {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .game-stage {
    min-height: 490px;
    padding: 14px;
  }

  .dice-layout .game-stage {
    min-height: 500px;
    padding: 0;
  }

  .dice-stage {
    min-height: 500px;
    padding: 22px 14px 16px;
  }

  .dice-slider-area {
    padding-inline: 2px;
  }

  .dice-config-row {
    grid-template-columns: 1fr;
    padding: 12px;
  }

  .playing-card {
    width: 69px;
    height: 98px;
    font-size: 18px;
  }

  .card-row {
    min-height: 105px;
    gap: 6px;
  }

  .blackjack-table {
    min-height: 430px;
    padding: 14px 10px 18px;
  }

  .blackjack-rules {
    flex-wrap: wrap;
    gap: 6px 14px;
  }

  .blackjack-player-hands {
    gap: 6px;
  }

  .blackjack-side-row {
    justify-content: center;
    gap: 34px;
  }

  .blackjack-chip-tray {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .baccarat-table {
    min-height: 500px;
    padding: 14px 10px 16px;
  }

  .baccarat-card-zone {
    padding: 14px 0 0;
  }

  .baccarat-hands {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .baccarat-bet-pads {
    gap: 7px;
  }

  .baccarat-pad {
    min-height: 86px;
    padding: 8px 6px;
  }

  .baccarat-chip {
    right: 6px;
    width: 32px;
    height: 32px;
    font-size: 9px;
  }

  .baccarat-ribbon {
    top: 39%;
    min-width: 180px;
    padding: 10px 14px;
  }

  .baccarat-shoe {
    right: 10px;
    transform: scale(0.82);
    transform-origin: top right;
  }

  .hilo-table {
    min-height: 540px;
    padding: 34px 10px 26px;
  }

  .hilo-side-card {
    top: 72px;
  }

  .hilo-side-card.highest {
    left: 10px;
  }

  .hilo-side-card.lowest {
    right: 10px;
  }

  .hilo-side-card .playing-card {
    width: 62px;
    height: 90px;
    font-size: 18px;
  }

  .hilo-side-card span {
    font-size: 9px;
  }

  .hilo-card-stack {
    width: 96px;
    height: 138px;
  }

  .hilo-card-stack .playing-card {
    width: 92px;
    height: 130px;
    font-size: 22px;
  }

  .hilo-predictions {
    grid-template-columns: 1fr;
  }

  .wheel-stage {
    min-height: 500px;
    padding: 24px 10px 0;
  }

  .wheel-game {
    width: min(340px, 84vw);
    margin-bottom: 18px;
  }

  .wheel-payout-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .wheel-payout-tile {
    min-height: 40px;
    font-size: 14px;
  }

  .mines-stage {
    min-height: 500px;
    padding: 22px 10px;
  }

  .mines-board {
    width: min(360px, 88vw);
    padding: 10px;
  }

  .mines-stage .mines-grid {
    gap: 5px;
  }

  .mines-jelly {
    left: -8px;
    transform: scale(0.72);
    transform-origin: bottom left;
  }

  .mines-seaweed {
    right: -16px;
    transform: scale(0.72);
    transform-origin: bottom right;
  }

  .tower-stage {
    min-height: 500px;
    padding: 22px 10px 16px;
  }

  .tower-guardian {
    top: 0;
    --tower-guardian-scale: 0.78;
    transform-origin: top center;
  }

  .tower-board {
    width: min(360px, 88vw);
    margin-top: 128px;
    padding: 32px 10px 10px;
  }

  .tower-stage .tower-grid {
    gap: 6px;
  }

  .tower-stage .tower-cell {
    min-height: 31px;
  }

  .tower-mountain {
    transform: scale(0.76);
    transform-origin: bottom center;
  }

  .tower-mountain-right {
    transform: scale(0.76) scaleX(-1);
  }

  .coinflip-stage {
    min-height: 280px;
  }

  .coinflip-toss-zone {
    height: 160px;
  }

  .coinflip-main-coin {
    width: 96px;
    height: 96px;
  }

  .coin-face.tossing {
    width: 86px;
    height: 86px;
    font-size: 30px;
  }

  .coinflip-ladder {
    height: 106px;
    gap: 8px;
    padding: 12px 12px 16px;
  }

  .coinflip-step {
    flex-basis: 74px;
    height: 74px;
    font-size: 11px;
  }

  .coinflip-step .coin-face {
    width: 62px;
    height: 62px;
    font-size: 22px;
  }

  .coinflip-side-grid {
    grid-template-columns: 1fr;
  }

  .keno-stage {
    min-height: 500px;
    padding: 28px 10px 18px;
  }

  .keno-board {
    width: min(430px, 92vw);
    gap: 5px;
  }

  .keno-stage .keno-cell {
    min-height: 46px;
    border-radius: 5px;
    font-size: 12px;
  }

  .keno-payout-table {
    width: min(430px, 92vw);
    gap: 5px;
    overflow-x: auto;
  }

  .keno-payout-table span {
    min-width: 56px;
    min-height: 32px;
    padding: 6px 5px;
    font-size: 11px;
  }

  .keno-empty {
    width: min(430px, 92vw);
    min-height: 68px;
  }

  .keno-result-card {
    top: 50%;
    min-width: 170px;
    min-height: 98px;
  }

  .keno-result-card strong {
    font-size: 28px;
  }

  .keno-action-row {
    grid-template-columns: 1fr;
  }

  .limbo-stage {
    min-height: 300px;
  }

  .limbo-result {
    top: 32%;
    font-size: 58px;
  }

  .limbo-history-row {
    top: 12px;
    left: 12px;
    gap: 5px;
    max-width: calc(100% - 24px);
  }

  .limbo-history-row button {
    min-width: 56px;
    min-height: 30px;
    padding: 0 7px;
    font-size: 12px;
  }

  .limbo-astronaut {
    bottom: 14px;
    --limbo-astronaut-scale: 0.66;
    transform-origin: bottom center;
  }

  .crash-live-stage {
    min-height: 500px;
    padding: 12px 10px 0;
  }

  .crash-graph {
    min-height: 425px;
  }

  .crash-history-row {
    gap: 6px;
  }

  .crash-history-row span {
    min-width: 54px;
    padding: 7px 8px;
    font-size: 12px;
  }

  .crash-live-readout {
    font-size: 50px;
  }

  .crash-ship {
    width: 48px;
    height: 48px;
  }

  .roulette-grid {
    grid-template-columns: 48px repeat(12, minmax(34px, 1fr)) 42px;
    min-width: 690px;
  }

  .roulette-stage {
    justify-items: start;
    overflow-x: auto;
  }

  .roulette-wheel-wrap,
  .roulette-history {
    justify-self: center;
  }

  .roulette-table-actions {
    min-width: 690px;
  }

  .leader-podium {
    gap: 7px;
    padding: 14px 7px;
  }

  .battle-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 440px) {
  .logo {
    font-size: 18px;
  }

  .logo .brand-logo-mark {
    width: 28px;
    height: 28px;
  }

  .wallet-button {
    width: 40px;
  }

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

  .page-title-row {
    align-items: flex-start;
    flex-direction: column;
  }
}
