/* ── crash ─────────────────────────────────────────────────── */
.crash-page {
  width: 100%;
  max-width: 1110px;
  margin: 0 auto;
}
.crash-history-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}
.crash-history-label {
  display: flex;
  align-items: center;
  gap: 7px;
  flex: 0 0 auto;
  margin-right: 3px;
  color: #555862;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}
.crash-history-label .i {
  width: 13px;
  height: 13px;
}
.crash-history-track {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 1;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 2px;
}
.crash-history-track::-webkit-scrollbar {
  display: none;
}
.history-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  height: 30px;
  min-width: 52px;
  padding: 0 10px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #121318;
  color: #9598a3;
  font-size: 10.5px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  transition:
    background 0.16s ease,
    border-color 0.16s ease,
    color 0.16s ease;
}
.history-chip:hover {
  border-color: var(--line-strong);
  color: var(--text);
}
.history-chip[data-tier="low"] {
  color: #8db2ff;
}
.history-chip[data-tier="mid"] {
  color: #6fdcc1;
}
.history-chip[data-tier="high"] {
  color: #ffd46b;
}
.history-chip.latest {
  color: #ffcb86;
  border-color: rgba(255, 151, 52, 0.24);
  background: rgba(255, 130, 29, 0.1);
  box-shadow: inset 0 0 0 1px rgba(255, 170, 85, 0.05);
}
.history-empty {
  color: var(--muted-2);
  font-size: 10px;
  letter-spacing: 0.02em;
}
.history-arrow {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #121318;
  color: var(--muted);
}
.history-arrow:hover {
  color: var(--text);
  border-color: var(--line-strong);
}

.crash-card {
  position: relative;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #0e0f13;
  box-shadow: var(--shadow-panel);
}
.crash-scene {
  position: relative;
  height: 476px;
  overflow: hidden;
  isolation: isolate;
  border-radius: 18px;
  background:
    radial-gradient(600px 360px at 50% 42%, rgba(74, 167, 255, 0.6), transparent 68%),
    radial-gradient(900px 500px at 50% 0%, #1381ed 0%, #0a5cd2 42%, #07378c 75%, #052566 100%);
  transition: background 0.6s ease;
}
.crash-scene::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(0, 34, 90, 0.04) 0%, transparent 45%, rgba(0, 17, 55, 0.55) 100%),
    radial-gradient(900px 260px at 50% 112%, rgba(107, 206, 255, 0.45), transparent 65%);
  pointer-events: none;
}
.crash-scene::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  opacity: 0.35;
  background-image:
    radial-gradient(circle at 50% 50%, transparent 0 49.7%, rgba(255, 255, 255, 0.05) 50%, transparent 50.4%),
    linear-gradient(115deg, transparent 47%, rgba(255, 255, 255, 0.035) 48%, transparent 49%);
  background-size:
    460px 460px,
    240px 240px;
  background-position:
    center 25%,
    0 0;
  mask-image: linear-gradient(180deg, #000, transparent 70%);
  pointer-events: none;
}
.crash-scene.is-flying {
  background:
    radial-gradient(700px 420px at 55% 36%, rgba(84, 178, 255, 0.42), transparent 68%),
    radial-gradient(900px 500px at 50% 0%, #157ce1 0%, #0b55ba 40%, #062c78 78%, #041b4f 100%);
}
.crash-scene.is-crashed {
  background:
    radial-gradient(700px 420px at 50% 34%, rgba(255, 107, 80, 0.36), transparent 70%),
    radial-gradient(900px 500px at 50% 0%, #7d2734 0%, #481327 48%, #1f0c1c 100%);
}

.scene-stars {
  position: absolute;
  inset: -20%;
  z-index: 0;
  opacity: 0.55;
  background-image:
    radial-gradient(1.5px 1.5px at 9% 19%, #fff, transparent 100%),
    radial-gradient(1px 1px at 18% 55%, #d6efff, transparent 100%),
    radial-gradient(1.8px 1.8px at 26% 32%, #fff, transparent 100%),
    radial-gradient(1px 1px at 35% 71%, #dff5ff, transparent 100%),
    radial-gradient(1.2px 1.2px at 45% 12%, #fff, transparent 100%),
    radial-gradient(1px 1px at 56% 47%, #fff, transparent 100%),
    radial-gradient(1.6px 1.6px at 65% 23%, #d6efff, transparent 100%),
    radial-gradient(1px 1px at 73% 66%, #fff, transparent 100%),
    radial-gradient(1.4px 1.4px at 82% 32%, #fff, transparent 100%),
    radial-gradient(1px 1px at 91% 56%, #dff5ff, transparent 100%),
    radial-gradient(1.1px 1.1px at 14% 82%, #fff, transparent 100%),
    radial-gradient(1.3px 1.3px at 50% 88%, #fff, transparent 100%),
    radial-gradient(1px 1px at 87% 86%, #fff, transparent 100%),
    radial-gradient(1.7px 1.7px at 30% 5%, #fff, transparent 100%);
  transition: transform 1s linear;
  animation: stars-drift 16s linear infinite alternate;
}
@keyframes stars-drift {
  to {
    transform: translate3d(-2%, 2%, 0) scale(1.06);
  }
}
.crash-scene.is-flying .scene-stars {
  animation-duration: 3.5s;
  opacity: 0.8;
}

.scene-arc {
  position: absolute;
  z-index: 1;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.4;
  transition: opacity 0.3s ease;
}
.scene-arc path {
  fill: none;
  stroke: rgba(255, 255, 255, 0.23);
  stroke-width: 1.3;
  stroke-dasharray: 2 8;
  stroke-linecap: round;
}
.crash-scene.is-flying .scene-arc {
  opacity: 0.8;
}
.scene-arc .arc-glow {
  stroke: rgba(151, 220, 255, 0.35);
  stroke-width: 5;
  filter: blur(5px);
  stroke-dasharray: none;
}

.crash-wait {
  position: absolute;
  top: 25px;
  left: 50%;
  z-index: 6;
  width: min(440px, 84%);
  transform: translateX(-50%);
  text-align: center;
  transition:
    opacity 0.25s ease,
    transform 0.25s ease;
}
.crash-wait h2 {
  color: #fff;
  font-size: clamp(22px, 2.6vw, 30px);
  line-height: 1.2;
  letter-spacing: -0.035em;
  font-weight: 750;
  text-shadow: 0 4px 30px rgba(0, 39, 100, 0.45);
}
.crash-wait p {
  margin-top: 5px;
  color: rgba(224, 240, 255, 0.72);
  font-size: 12px;
}
.crash-wait p b {
  color: #fff;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
}
.wait-progress {
  width: 220px;
  height: 8px;
  margin: 12px auto 0;
  padding: 2px;
  overflow: hidden;
  border-radius: 99px;
  background: rgba(3, 31, 82, 0.5);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.3);
}
.wait-progress i {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #8fc6ff, #dfefff);
  box-shadow: 0 0 9px rgba(160, 210, 255, 0.5);
  transform-origin: left;
  transition: transform 0.16s linear;
}
.crash-scene.is-flying .crash-wait,
.crash-scene.is-crashed .crash-wait {
  opacity: 0;
  transform: translateX(-50%) translateY(-10px);
  pointer-events: none;
}

.crash-live {
  position: absolute;
  top: 24px;
  left: 50%;
  z-index: 6;
  display: flex;
  flex-direction: column;
  align-items: center;
  transform: translateX(-50%) scale(0.88);
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.25s ease,
    transform 0.25s var(--ease);
}
.crash-scene.is-flying .crash-live,
.crash-scene.is-crashed .crash-live {
  opacity: 1;
  transform: translateX(-50%) scale(1);
}
.crash-live span {
  color: rgba(213, 234, 255, 0.65);
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}
.crash-live strong {
  margin-top: -2px;
  color: #fff;
  font-size: clamp(48px, 6.2vw, 76px);
  line-height: 1.05;
  letter-spacing: -0.055em;
  font-weight: 820;
  font-variant-numeric: tabular-nums;
  text-shadow:
    0 4px 32px rgba(0, 26, 74, 0.45),
    0 0 50px rgba(116, 197, 255, 0.2);
}
.crash-live strong.is-crashed {
  color: #ff9d8d;
  text-shadow: 0 0 45px rgba(255, 90, 67, 0.35);
}
.crash-live em {
  margin-top: 2px;
  color: #ffd0b9;
  font-size: 11px;
  font-style: normal;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0;
  transition: opacity 0.2s ease;
}
.crash-scene.is-crashed .crash-live em {
  opacity: 1;
}

.scene-axis {
  position: absolute;
  z-index: 4;
  right: 22px;
  top: 112px;
  bottom: 118px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-end;
  width: 88px;
  pointer-events: none;
}
.axis-tick {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  width: 100%;
  color: rgba(226, 242, 255, 0.56);
  font-size: 10px;
  font-variant-numeric: tabular-nums;
}
.axis-tick i {
  display: block;
  width: 26px;
  height: 1px;
  background: rgba(226, 242, 255, 0.32);
}
.axis-tick:nth-child(2n) i {
  width: 14px;
  background: rgba(226, 242, 255, 0.2);
}

.launchpad-art {
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: -42px;
  width: min(1180px, 116%);
  max-width: none;
  transform: translateX(-50%);
  filter: drop-shadow(0 30px 30px rgba(0, 10, 30, 0.38));
  transition:
    transform 1.8s cubic-bezier(0.16, 1, 0.3, 1),
    opacity 1s ease,
    filter 1s ease;
  pointer-events: none;
}
.crash-scene.is-flying .launchpad-art {
  opacity: 0.72;
  transform: translateX(-50%) translateY(75px) scale(1.06);
  filter: drop-shadow(0 20px 30px rgba(0, 10, 30, 0.3)) blur(0.3px);
}
.crash-scene.is-crashed .launchpad-art {
  opacity: 0.25;
  transform: translateX(-50%) translateY(100px) scale(1.1);
}

.rocket-wrap {
  position: absolute;
  z-index: 7;
  left: 50%;
  bottom: 92px;
  width: 158px;
  height: 275px;
  transform: translateX(-50%);
  transform-origin: center bottom;
  transition:
    left 0.16s linear,
    bottom 0.16s linear,
    transform 0.16s linear,
    opacity 0.2s ease;
  will-change: left, bottom, transform;
  pointer-events: none;
}
.rocket-img {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 25px 24px rgba(0, 15, 40, 0.36));
  animation: rocket-idle 3.2s ease-in-out infinite;
}
@keyframes rocket-idle {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-5px);
  }
}
.crash-scene.is-flying .rocket-img {
  animation: rocket-fly 0.8s ease-in-out infinite alternate;
}
@keyframes rocket-fly {
  to {
    transform: translateY(-3px) rotate(-0.7deg);
  }
}
.rocket-flame {
  position: absolute;
  z-index: 1;
  left: 50%;
  bottom: -64px;
  width: 58px;
  height: 185px;
  transform: translateX(-50%) scaleY(0.2);
  transform-origin: top center;
  opacity: 0;
  filter: blur(2px);
  background: linear-gradient(180deg, #fff9dc 0%, #ffd56a 20%, #ff9b2c 52%, rgba(255, 93, 27, 0.25) 82%, transparent 100%);
  clip-path: polygon(36% 0, 64% 0, 90% 42%, 70% 100%, 50% 76%, 30% 100%, 10% 42%);
  transition: opacity 0.2s ease;
  box-shadow: 0 0 30px rgba(255, 151, 49, 0.5);
}
.rocket-flame::after {
  content: "";
  position: absolute;
  left: 35%;
  top: 0;
  width: 30%;
  height: 55%;
  background: #fff;
  filter: blur(3px);
  clip-path: polygon(0 0, 100% 0, 50% 100%);
}
.crash-scene.is-flying .rocket-flame {
  opacity: 1;
  animation: flame 0.12s infinite;
  transform: translateX(-50%) scaleY(1);
}
@keyframes flame {
  0% {
    transform: translateX(-50%) scaleY(1) scaleX(1);
  }
  50% {
    transform: translateX(-50%) scaleY(1.16) scaleX(0.85);
  }
  100% {
    transform: translateX(-50%) scaleY(0.9) scaleX(1.05);
  }
}

.crash-flash {
  position: absolute;
  z-index: 20;
  inset: 0;
  background: radial-gradient(circle at 50% 45%, rgba(255, 205, 164, 0.85), rgba(255, 63, 45, 0.55) 35%, transparent 72%);
  opacity: 0;
  pointer-events: none;
}
.crash-scene.is-crashed .crash-flash {
  animation: crash-flash 1.1s ease-out both;
}
.scene-vignette {
  position: absolute;
  z-index: 5;
  inset: 0;
  border-radius: 18px;
  box-shadow:
    inset 0 0 100px rgba(0, 18, 58, 0.38),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  pointer-events: none;
}
.scene-topline {
  position: absolute;
  z-index: 6;
  top: 14px;
  left: 16px;
  display: flex;
  align-items: center;
  gap: 7px;
  color: rgba(225, 241, 255, 0.5);
  font-size: 9px;
  font-weight: 650;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.scene-topline::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #65e0c1;
  box-shadow: 0 0 8px rgba(101, 224, 193, 0.7);
}
.crash-scene.is-flying .scene-topline::before {
  background: #ffd36d;
  box-shadow: 0 0 8px rgba(255, 211, 109, 0.7);
  animation: pulse-soft 1s infinite;
}
.crash-scene.is-crashed .scene-topline::before {
  background: #ff735f;
  box-shadow: 0 0 8px rgba(255, 115, 95, 0.7);
}
.scene-roundid {
  position: absolute;
  z-index: 6;
  top: 14px;
  right: 18px;
  color: rgba(225, 241, 255, 0.36);
  font-size: 9px;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.08em;
}

.crash-controls {
  padding: 15px 11px 5px;
}
.bet-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 11px;
}
.bet-box {
  padding: 12px 14px 10px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #0a0b0e;
  transition: border-color 0.18s ease;
}
.bet-box:focus-within {
  border-color: rgba(77, 141, 255, 0.3);
}
.bet-box-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 7px;
  color: #666974;
  font-size: 9.5px;
  font-weight: 650;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.bet-box-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.bet-box-row input {
  min-width: 0;
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font-size: 17px;
  font-weight: 750;
  letter-spacing: -0.015em;
  font-variant-numeric: tabular-nums;
}
.bet-box-row .coin {
  width: 18px;
  height: 18px;
}
.bet-box-row .plus-mini {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(255, 122, 24, 0.12);
  color: #ff9a42;
  font-size: 14px;
  font-weight: 600;
}
.bet-box-value {
  color: #ffb35c;
  font-size: 17px;
  font-weight: 750;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.015em;
}
.bet-quick {
  display: flex;
  gap: 5px;
  margin-top: 8px;
}
.bet-quick button {
  flex: 1;
  height: 23px;
  border-radius: 6px;
  background: #14151a;
  color: #6f727d;
  font-size: 9px;
  font-weight: 650;
  transition:
    background 0.16s ease,
    color 0.16s ease;
}
.bet-quick button:hover {
  background: #1d1e25;
  color: var(--text-soft);
}

.auto-row {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 10px;
}
.auto-label {
  flex: 0 0 auto;
  padding-right: 4px;
  color: #676a75;
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.auto-buttons {
  display: flex;
  flex: 1;
  gap: 5px;
}
.auto-btn {
  flex: 1;
  height: 31px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #0c0d10;
  color: #7f828d;
  font-size: 10.5px;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
  transition:
    background 0.16s ease,
    color 0.16s ease,
    border-color 0.16s ease;
}
.auto-btn:hover {
  color: var(--text);
  border-color: var(--line-strong);
}
.auto-btn.is-active {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(180deg, #6b9eff, #4d8dff);
  box-shadow: 0 6px 15px rgba(57, 122, 255, 0.22);
}
.auto-custom {
  width: 72px;
  height: 31px;
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  outline: 0;
  background: #0c0d10;
  color: var(--text-soft);
  font-size: 10.5px;
  font-variant-numeric: tabular-nums;
}
.auto-custom:focus {
  border-color: rgba(77, 141, 255, 0.35);
}

.crash-action {
  width: 100%;
  height: 51px;
  margin-top: 11px;
  border-radius: 11px;
  font-size: 13.5px;
  letter-spacing: 0.01em;
  font-weight: 700;
  background: linear-gradient(180deg, #6a9fff, #4c8dff 58%, #3c7df1);
  box-shadow:
    0 10px 28px rgba(54, 119, 255, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.crash-action:hover:not(:disabled) {
  background: linear-gradient(180deg, #7cadff, #5c98ff 58%, #4787fb);
}
.crash-action.is-cashout {
  background: linear-gradient(180deg, #48dbb7, #2bc39d 60%, #22ad8b);
  box-shadow:
    0 10px 28px rgba(43, 195, 157, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
  color: #05271f;
}
.crash-action.is-cashout:hover:not(:disabled) {
  background: linear-gradient(180deg, #59e6c3, #35cba4 60%, #2bb693);
}
.crash-action.is-wait {
  background: #1a1b21;
  border: 1px solid var(--line);
  box-shadow: none;
  color: #a2a5af;
}
.crash-action.is-wait:hover:not(:disabled) {
  background: #202128;
}
.crash-action .spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.25);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
.crash-hint {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  margin: 8px 0 5px;
  color: #4f525c;
  font-size: 9.5px;
}
.crash-hint .i {
  width: 11px;
  height: 11px;
}

.crash-livebar {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 50px;
  margin-top: 11px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #0d0e12;
  overflow: hidden;
}
.livebar-label {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
  padding-right: 11px;
  border-right: 1px solid var(--line);
  color: #6a6d77;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.livebar-label::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 7px rgba(53, 201, 163, 0.7);
}
.livebar-people {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
  min-width: 0;
  overflow: hidden;
}
.live-person {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 0 1 auto;
  min-width: 0;
  padding: 3px 7px 3px 3px;
  border-radius: 99px;
  background: #15161b;
}
.live-person .avatar {
  width: 23px;
  height: 23px;
  font-size: 8px;
}
.live-person span {
  max-width: 76px;
  overflow: hidden;
  color: #9699a4;
  font-size: 9.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.live-person b {
  color: #cfd2d9;
  font-size: 9.5px;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
}
.live-person.is-won b {
  color: var(--green);
}
.livebar-total {
  flex: 0 0 auto;
  margin-left: auto;
  color: var(--muted);
  font-size: 10px;
  font-variant-numeric: tabular-nums;
}
.livebar-total b {
  margin-left: 5px;
  color: #ffbc71;
  font-size: 11px;
}
.livebar-empty {
  color: var(--muted-2);
  font-size: 10px;
}

/* ── roulette ──────────────────────────────────────────────── */
.roulette-page {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
}
.roulette-board {
  padding: 18px;
  margin-bottom: 14px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background:
    radial-gradient(800px 300px at 50% -15%, rgba(53, 201, 163, 0.035), transparent 70%),
    #0e0f13;
  box-shadow: var(--shadow-panel);
}
.roulette-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 17px;
}
.game-id {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #a7aab4;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.game-id .badge {
  height: 20px;
  color: #6e8791;
  background: rgba(53, 201, 163, 0.06);
  border-color: rgba(53, 201, 163, 0.13);
  font-size: 8.5px;
}
.game-id b {
  color: #e2e4e9;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.roulette-head .icon-btn {
  flex: 0 0 auto;
  border-color: var(--line);
  background: #111217;
}
.roulette-head-meta {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-left: auto;
  color: #6b6e79;
  font-size: 10.5px;
  white-space: nowrap;
}
.roulette-head-meta strong {
  margin-left: 4px;
  color: #cfd2da;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
}
.roulette-head-meta .bank strong {
  color: #ffbc71;
}
.roulette-head-actions {
  display: flex;
  gap: 6px;
}
.roulette-head-actions .btn {
  height: 38px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 550;
  background: #15161b;
  border-color: var(--line);
  color: #a8abb5;
}
.roulette-head-actions .btn:hover {
  background: #1c1d24;
  color: var(--text);
}
.roulette-head-actions .icon-btn {
  width: 38px;
  height: 38px;
  border-radius: 10px;
}

.roulette-recent {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 10px;
}
.recent-label {
  flex: 0 0 auto;
  color: #555862;
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.recent-track {
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
  overflow: hidden;
}
.roll-dot {
  flex: 0 0 auto;
  width: 24px;
  height: 8px;
  border-radius: 3px;
  opacity: 0.92;
  transition: transform 0.2s ease;
}
.roll-dot:hover {
  transform: scaleY(1.5);
}
.roll-dot[data-color="white"] {
  background: #e9e4e0;
}
.roll-dot[data-color="red"] {
  background: #e75b49;
}
.roll-dot[data-color="green"] {
  background: #35c9a3;
}
.roll-dot[data-color="gold"] {
  background: #f4b92d;
}
.recent-empty {
  color: var(--muted-2);
  font-size: 9px;
}
.roulette-status {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  gap: 7px;
  color: #737681;
  font-size: 10.5px;
}
.roulette-status .pulse {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px rgba(53, 201, 163, 0.8);
  animation: pulse-soft 1.4s infinite;
}
.roulette-status.is-spinning {
  color: #ffd189;
}
.roulette-status.is-spinning .pulse {
  background: var(--gold);
  box-shadow: 0 0 8px rgba(244, 185, 45, 0.8);
}
.roulette-status strong {
  color: #c9ccd4;
  font-weight: 650;
}

.roulette-viewport {
  position: relative;
  isolation: isolate;
  height: 130px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.055);
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.018), transparent),
    #0a0b0e;
}
.roulette-viewport::before,
.roulette-viewport::after {
  content: "";
  position: absolute;
  z-index: 4;
  top: 0;
  bottom: 0;
  width: 100px;
  pointer-events: none;
}
.roulette-viewport::before {
  left: 0;
  background: linear-gradient(90deg, #0a0b0e 5%, rgba(10, 11, 14, 0.8) 40%, transparent);
}
.roulette-viewport::after {
  right: 0;
  background: linear-gradient(270deg, #0a0b0e 5%, rgba(10, 11, 14, 0.8) 40%, transparent);
}
.roulette-strip {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 0;
  display: flex;
  gap: 9px;
  transform: translate3d(0, -50%, 0);
  will-change: transform;
}
.roulette-tile {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 105px;
  height: 104px;
  overflow: hidden;
  border-radius: 17px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.32),
    inset 0 -12px 20px rgba(0, 0, 0, 0.12),
    0 8px 20px rgba(0, 0, 0, 0.22);
}
.roulette-tile::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(112deg, rgba(255, 255, 255, 0.24), transparent 35%, transparent 72%, rgba(255, 255, 255, 0.1));
  opacity: 0.55;
  pointer-events: none;
}
.roulette-tile[data-color="white"] {
  background:
    radial-gradient(circle at 35% 25%, #fff 0%, transparent 45%),
    linear-gradient(150deg, #faf7f3 0%, #e7e1dc 55%, #c9c1ba 100%);
}
.roulette-tile[data-color="red"] {
  background:
    radial-gradient(circle at 35% 25%, #ff8b76 0%, transparent 48%),
    linear-gradient(150deg, #f26c58 0%, #df5241 55%, #b93d30 100%);
}
.roulette-tile[data-color="green"] {
  background:
    radial-gradient(circle at 35% 25%, #6de5c5 0%, transparent 48%),
    linear-gradient(150deg, #40d4ae 0%, #2bbb98 55%, #199477 100%);
}
.roulette-tile[data-color="gold"] {
  background:
    radial-gradient(circle at 35% 25%, #ffe08a 0%, transparent 48%),
    linear-gradient(150deg, #f8c744 0%, #eab12a 55%, #c58c13 100%);
}
.roulette-tile::after {
  content: "";
  position: absolute;
  left: 12%;
  right: 12%;
  bottom: 10%;
  height: 13%;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.12);
  filter: blur(9px);
}
.roulette-pointer {
  position: absolute;
  z-index: 6;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  transform: translateX(-50%);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.25));
  box-shadow: 0 0 16px rgba(255, 255, 255, 0.25);
  pointer-events: none;
}
.roulette-pointer::before,
.roulette-pointer::after {
  content: "";
  position: absolute;
  left: 50%;
  width: 0;
  height: 0;
  transform: translateX(-50%);
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
}
.roulette-pointer::before {
  top: -1px;
  border-top: 8px solid #fff;
}
.roulette-pointer::after {
  bottom: -1px;
  border-bottom: 8px solid #fff;
}
.roulette-spin-glow {
  position: absolute;
  z-index: 3;
  top: 50%;
  left: 50%;
  width: 160px;
  height: 160px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.16), transparent 65%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}
.roulette-viewport.is-spinning .roulette-spin-glow {
  opacity: 1;
  animation: pulse-soft 1.5s infinite;
}

.roulette-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 13px;
}
.roulette-bet {
  display: flex;
  align-items: center;
  gap: 9px;
  flex: 0 0 274px;
  height: 52px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #0a0b0e;
  transition: border-color 0.18s ease;
}
.roulette-bet:focus-within {
  border-color: rgba(77, 141, 255, 0.3);
}
.roulette-bet input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font-size: 15px;
  font-weight: 750;
  font-variant-numeric: tabular-nums;
}
.roulette-bet .coin {
  width: 18px;
  height: 18px;
}
.roulette-bet .plus-mini {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(255, 122, 24, 0.12);
  color: #ff9a42;
  font-size: 14px;
}
.color-buttons {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  flex: 1;
}
.color-bet {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  height: 52px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 11px;
  background: #14151a;
  color: #b1b4be;
  font-size: 11px;
  font-weight: 650;
  transition:
    transform 0.18s var(--ease),
    border-color 0.18s ease,
    background 0.18s ease,
    opacity 0.18s ease;
}
.color-bet::before {
  content: "";
  position: absolute;
  left: 14px;
  top: 50%;
  width: 8px;
  height: 8px;
  border-radius: 3px;
  transform: translateY(-50%);
  background: var(--tile-color);
}
.color-bet small {
  color: #686b76;
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.color-bet[data-color="white"] {
  --tile-color: #e9e4e0;
}
.color-bet[data-color="red"] {
  --tile-color: #e75b49;
}
.color-bet[data-color="green"] {
  --tile-color: #35c9a3;
}
.color-bet[data-color="gold"] {
  --tile-color: #f4b92d;
}
.color-bet:hover:not(:disabled) {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.16);
  background: #1a1b21;
}
.color-bet:disabled {
  cursor: not-allowed;
  opacity: 0.46;
}
.color-bet.is-betting {
  opacity: 0.45;
  pointer-events: none;
}
.color-bet.is-own:disabled,
.roulette-controls.is-locked .color-bet.is-own {
  opacity: 1;
  border-color: var(--tile-color);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.035));
  color: #fff;
  box-shadow: inset 0 0 18px rgba(255, 255, 255, 0.03);
}
.roulette-controls.is-locked .color-bet {
  opacity: 0.35;
}
.roulette-controls.is-locked .roulette-bet {
  opacity: 0.5;
}

.roulette-columns {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
.roulette-col {
  position: relative;
  min-height: 260px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: #0e0f13;
}
.roulette-col::before {
  content: "";
  position: absolute;
  top: 0;
  left: 22px;
  right: 22px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--col-accent), transparent);
  opacity: 0.45;
}
.roulette-col[data-color="white"] {
  --col-accent: #e9e4e0;
}
.roulette-col[data-color="red"] {
  --col-accent: #e75b49;
}
.roulette-col[data-color="green"] {
  --col-accent: #35c9a3;
}
.roulette-col[data-color="gold"] {
  --col-accent: #f4b92d;
}
.roulette-col-head {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 13px 13px 12px;
  border-bottom: 1px solid var(--line);
}
.color-tile-mini {
  position: relative;
  display: grid;
  place-items: center;
  width: 37px;
  height: 37px;
  flex: 0 0 auto;
  border-radius: 9px;
  color: rgba(20, 20, 20, 0.75);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: -0.02em;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.3),
    0 4px 10px rgba(0, 0, 0, 0.2);
}
.color-tile-mini[data-color="white"] {
  background: linear-gradient(145deg, #fbf8f4, #d5cec7);
}
.color-tile-mini[data-color="red"] {
  background: linear-gradient(145deg, #f47a66, #c84434);
  color: #fff5f2;
}
.color-tile-mini[data-color="green"] {
  background: linear-gradient(145deg, #58dfbc, #1e9f7f);
  color: #eafff9;
}
.color-tile-mini[data-color="gold"] {
  background: linear-gradient(145deg, #ffd259, #cd9419);
  color: #3a2600;
}
.roulette-col-title {
  flex: 1;
  min-width: 0;
}
.roulette-col-title strong {
  display: block;
  font-size: 13px;
  letter-spacing: -0.01em;
}
.roulette-col-title span {
  display: block;
  margin-top: 1px;
  color: #666974;
  font-size: 9px;
}
.roulette-col-stats {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #747782;
  font-size: 9px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.roulette-col-stats .i {
  width: 11px;
  height: 11px;
}
.roulette-col-stats b {
  color: #a7aab4;
  font-weight: 600;
}
.roulette-players {
  display: flex;
  flex-direction: column;
  gap: 2px;
  max-height: 320px;
  overflow-y: auto;
  padding: 7px;
}
.roulette-player {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 7px;
  border: 1px solid transparent;
  border-radius: 9px;
  transition:
    background 0.16s ease,
    border-color 0.16s ease;
}
.roulette-player:hover {
  background: rgba(255, 255, 255, 0.025);
}
.roulette-player.is-you {
  background: rgba(77, 141, 255, 0.06);
  border-color: rgba(77, 141, 255, 0.13);
}
.roulette-player.is-win {
  background: rgba(53, 201, 163, 0.07);
  border-color: rgba(53, 201, 163, 0.2);
}
.roulette-player .avatar {
  width: 31px;
  height: 31px;
  font-size: 9px;
}
.roulette-player-main {
  flex: 1;
  min-width: 0;
}
.roulette-player-name {
  display: block;
  overflow: hidden;
  color: #bfc2cb;
  font-size: 10.5px;
  font-weight: 550;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.roulette-player-sub {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 1px;
  color: #626570;
  font-size: 8.5px;
}
.lvl-tag {
  display: inline-flex;
  align-items: center;
  height: 13px;
  padding: 0 4px;
  border-radius: 3px;
  background: #2a2112;
  color: #f1b24c;
  font-size: 8px;
  font-weight: 700;
}
.lvl-tag.blue {
  background: #14213b;
  color: #7da9ff;
}
.roulette-player-amount {
  display: flex;
  align-items: center;
  gap: 3px;
  flex: 0 0 auto;
  color: #d5d8df;
  font-size: 10.5px;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
}
.roulette-player-amount .coin {
  width: 12px;
  height: 12px;
}
.roulette-player.is-win .roulette-player-amount {
  color: var(--green);
}
.roulette-empty {
  padding: 24px 10px;
  color: #555862;
  font-size: 10px;
  text-align: center;
}
.roulette-result {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 10px;
  color: #9a9da8;
  font-size: 11px;
  opacity: 0;
  transform: translateY(-3px);
  transition:
    opacity 0.25s ease,
    transform 0.25s ease;
}
.roulette-result.is-visible {
  opacity: 1;
  transform: none;
}
.roulette-result .swatch {
  width: 8px;
  height: 8px;
  border-radius: 3px;
  background: var(--result-color, #fff);
}
.roulette-result strong {
  color: #f1f2f5;
}

/* ── mini games (coinflip / dice / mines) ──────────────────── */
.mini-page {
  width: 100%;
  max-width: 860px;
  margin: 0 auto;
}
.mini-card {
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #0e0f13;
  box-shadow: var(--shadow-panel);
}
.mini-controls {
  padding: 15px 11px 5px;
}
.mini-action {
  width: 100%;
  height: 51px;
  margin-top: 11px;
  border-radius: 11px;
  font-size: 13.5px;
  font-weight: 700;
  background: linear-gradient(180deg, #6a9fff, #4c8dff 58%, #3c7df1);
  box-shadow:
    0 10px 28px rgba(54, 119, 255, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.mini-action:hover:not(:disabled) {
  background: linear-gradient(180deg, #7cadff, #5c98ff 58%, #4787fb);
}
.mini-action.is-cashout {
  background: linear-gradient(180deg, #48dbb7, #2bc39d 60%, #22ad8b);
  box-shadow:
    0 10px 28px rgba(43, 195, 157, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
  color: #05271f;
}
.mini-action.is-cashout:hover:not(:disabled) {
  background: linear-gradient(180deg, #59e6c3, #35cba4 60%, #2bb693);
}
.mini-action.is-wait {
  background: #1a1b21;
  border: 1px solid var(--line);
  box-shadow: none;
  color: #a2a5af;
}
.mini-action:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}
.mini-action .spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.25);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

.side-buttons {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.side-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #0c0d10;
  color: #7f828d;
  font-size: 12px;
  font-weight: 650;
  transition:
    background 0.16s ease,
    color 0.16s ease,
    border-color 0.16s ease;
}
.side-btn .i {
  width: 15px;
  height: 15px;
}
.side-btn:hover {
  color: var(--text);
  border-color: var(--line-strong);
}
.side-btn.is-active {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(180deg, #6b9eff, #4d8dff);
  box-shadow: 0 6px 15px rgba(57, 122, 255, 0.22);
}

.coin-scene {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 34px 16px 22px;
  border-radius: 18px;
  background:
    radial-gradient(420px 220px at 50% 30%, rgba(244, 185, 45, 0.08), transparent 70%),
    radial-gradient(600px 300px at 50% 0%, #1a1410 0%, #0c0b0a 70%);
  perspective: 900px;
}
.coin-visual {
  position: relative;
  width: 138px;
  height: 138px;
  transform-style: preserve-3d;
  transition: transform 2.1s cubic-bezier(0.18, 0.85, 0.25, 1);
}
.coin-scene.is-tails .coin-visual {
  transform: rotateY(180deg);
}
.coin-face {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border-radius: 50%;
  backface-visibility: hidden;
  border: 4px solid rgba(255, 255, 255, 0.22);
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, 0.4),
    inset 0 -10px 22px rgba(0, 0, 0, 0.25),
    0 14px 34px rgba(0, 0, 0, 0.35);
}
.coin-face-front {
  background:
    radial-gradient(circle at 34% 26%, #ffe08a 0%, transparent 46%),
    linear-gradient(150deg, #f8c744 0%, #e0a81f 60%, #b07f10 100%);
  color: #3a2600;
}
.coin-face-back {
  transform: rotateY(180deg);
  background:
    radial-gradient(circle at 34% 26%, #d6e6ff 0%, transparent 46%),
    linear-gradient(150deg, #8fb0e8 0%, #5b7fc4 60%, #36528c 100%);
  color: #0d1b3a;
}
.coin-emblem {
  font-size: 40px;
  font-weight: 850;
  letter-spacing: -0.04em;
}
.coin-face em {
  font-size: 9px;
  font-style: normal;
  font-weight: 750;
  letter-spacing: 0.22em;
}
.coin-scene.is-flipping .coin-visual {
  animation: coin-shake 2.1s ease-in-out;
}
@keyframes coin-shake {
  0%,
  100% {
    translate: 0 0;
  }
  25% {
    translate: 0 -26px;
  }
  60% {
    translate: 0 -14px;
  }
}
.coin-result {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  min-height: 42px;
  opacity: 0;
  transform: translateY(-4px);
  transition:
    opacity 0.25s ease,
    transform 0.25s ease;
}
.coin-result.is-visible {
  opacity: 1;
  transform: none;
}
.coin-result strong {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 19px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}
.coin-result strong.is-win {
  color: var(--green);
}
.coin-result strong.is-lose {
  color: #ff8f7d;
}
.coin-result span {
  color: var(--muted);
  font-size: 10.5px;
}

.mini-history {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 50px;
  margin-top: 12px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #0d0e12;
  overflow: hidden;
}
.mini-history-track {
  display: flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.mini-history-track::-webkit-scrollbar {
  display: none;
}
.mini-history-chip {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  height: 28px;
  padding: 0 10px;
  border-radius: 99px;
  font-size: 10px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.mini-history-chip.is-win {
  background: rgba(53, 201, 163, 0.09);
  color: #3fd6ae;
}
.mini-history-chip.is-lose {
  background: rgba(231, 91, 73, 0.09);
  color: #ff8f7d;
}

/* dice */
.dice-scene {
  padding: 30px 22px 16px;
  border-radius: 18px;
  background:
    radial-gradient(520px 260px at 50% 10%, rgba(77, 141, 255, 0.07), transparent 70%),
    #0a0b0e;
}
.dice-value {
  text-align: center;
  color: #fff;
  font-size: 44px;
  font-weight: 820;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
  margin-bottom: 22px;
}
.dice-track {
  position: relative;
  height: 44px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: linear-gradient(90deg, rgba(231, 91, 73, 0.28) 0%, rgba(231, 91, 73, 0.12) 100%);
}
.dice-track .dice-zone {
  position: absolute;
  inset: 0 auto 0 0;
  width: 50%;
  background: linear-gradient(90deg, rgba(53, 201, 163, 0.5), rgba(53, 201, 163, 0.28));
  transition: width 0.2s ease;
}
.dice-track.is-win .dice-value ~ * {
  /* no-op guard */
}
.dice-track.is-rolling {
  animation: pulse-soft 0.8s infinite;
}
.dice-target-line {
  position: absolute;
  top: -7px;
  bottom: -7px;
  left: 50%;
  width: 2px;
  transform: translateX(-50%);
  background: #fff;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.45);
}
.dice-target-line span {
  position: absolute;
  top: -17px;
  left: 50%;
  transform: translateX(-50%);
  padding: 1px 6px;
  border-radius: 5px;
  background: #fff;
  color: #0a0b0e;
  font-size: 9px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}
.dice-marker {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 3;
}
.dice-marker span {
  position: absolute;
  inset: 0;
  border-radius: 7px;
  background: #fff;
  box-shadow:
    0 0 0 3px rgba(255, 255, 255, 0.18),
    0 5px 14px rgba(0, 0, 0, 0.4);
  transition: background 0.15s ease;
}
.dice-track.is-win .dice-marker span {
  background: #35c9a3;
}
.dice-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 7px;
  color: #4f525c;
  font-size: 9px;
  font-variant-numeric: tabular-nums;
}
.dice-slider-row {
  margin-top: 12px;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #0a0b0e;
}
.dice-slider-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 9px;
  color: #666974;
  font-size: 9.5px;
  font-weight: 650;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.dice-slider-head b {
  color: #ffbc71;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}
.dice-slider {
  width: 100%;
  height: 20px;
  appearance: none;
  outline: 0;
  background: transparent;
}
.dice-slider::-webkit-slider-runnable-track {
  height: 5px;
  border-radius: 99px;
  background: linear-gradient(90deg, #4d8dff, #35c9a3);
}
.dice-slider::-webkit-slider-thumb {
  appearance: none;
  width: 17px;
  height: 17px;
  margin-top: -6px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 9px rgba(0, 0, 0, 0.45);
  cursor: pointer;
}
.dice-slider::-moz-range-track {
  height: 5px;
  border-radius: 99px;
  background: linear-gradient(90deg, #4d8dff, #35c9a3);
}
.dice-slider::-moz-range-thumb {
  width: 17px;
  height: 17px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  cursor: pointer;
}
.dice-presets button {
  font-variant-numeric: tabular-nums;
}

/* mines */
.mines-card {
  max-width: 700px;
  margin: 0 auto;
}
.mines-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 13px 15px 11px;
}
.mines-stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.mines-stat span {
  color: #666974;
  font-size: 9px;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.mines-stat b {
  font-size: 15px;
  font-weight: 750;
  font-variant-numeric: tabular-nums;
}
.mines-stat b.is-gold {
  color: #ffbc71;
}
.mines-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  padding: 6px 12px 4px;
}
.mine-tile {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 12px;
  background: linear-gradient(180deg, #191b22, #121318);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transition:
    transform 0.16s var(--ease),
    background 0.16s ease,
    border-color 0.16s ease,
    opacity 0.2s ease;
}
.mine-tile .i {
  width: 22px;
  height: 22px;
}
.mine-tile:hover:not(:disabled) {
  transform: translateY(-2px);
  border-color: rgba(77, 141, 255, 0.35);
  background: linear-gradient(180deg, #1e2028, #15161c);
}
.mine-tile:disabled {
  cursor: not-allowed;
}
.mine-tile.is-gem {
  border-color: rgba(53, 201, 163, 0.4);
  background: linear-gradient(180deg, rgba(53, 201, 163, 0.16), rgba(53, 201, 163, 0.07));
  color: #3fd6ae;
  animation: mine-pop 0.25s var(--ease);
}
.mine-tile.is-mine {
  border-color: rgba(231, 91, 73, 0.45);
  background: linear-gradient(180deg, rgba(231, 91, 73, 0.2), rgba(231, 91, 73, 0.08));
  color: #ff8f7d;
  animation: mine-pop 0.25s var(--ease);
}
.mine-tile.is-dim {
  opacity: 0.42;
}
@keyframes mine-pop {
  0% {
    transform: scale(0.82);
  }
  60% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}
.mines-presets {
  display: flex;
  gap: 5px;
}
.mines-presets button {
  flex: 1;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #0c0d10;
  color: #7f828d;
  font-size: 11px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  transition:
    background 0.16s ease,
    color 0.16s ease,
    border-color 0.16s ease;
}
.mines-presets button:hover {
  color: var(--text);
  border-color: var(--line-strong);
}
.mines-presets button.is-active {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(180deg, #6b9eff, #4d8dff);
  box-shadow: 0 6px 15px rgba(57, 122, 255, 0.22);
}
.mines-hint-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 9px;
  color: #4f525c;
  font-size: 9.5px;
}
.mines-hint-row .i {
  width: 12px;
  height: 12px;
}

/* ── upgrader ──────────────────────────────────────────────── */
.upg-page {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
}
.upg-card {
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #0e0f13;
  box-shadow: var(--shadow-panel);
}
.upg-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 15px 10px;
}
.upg-title {
  display: flex;
  align-items: center;
  gap: 11px;
}
.upg-title > .i {
  width: 19px;
  height: 19px;
  color: #ff9a42;
}
.upg-title h2 {
  font-size: 16px;
  font-weight: 750;
  letter-spacing: -0.02em;
}
.upg-title p {
  margin-top: 1px;
  color: #666974;
  font-size: 10px;
}
.upg-rtp {
  flex: 0 0 auto;
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: 99px;
  background: #0c0d10;
  color: #6f727d;
  font-size: 9.5px;
  letter-spacing: 0.03em;
  white-space: nowrap;
}
.upg-rtp b {
  margin-left: 3px;
  color: var(--green);
}

.upg-scene {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 340px;
  margin: 0 11px;
  overflow: hidden;
  border-radius: 18px;
  background:
    radial-gradient(500px 260px at 50% 45%, rgba(255, 154, 66, 0.07), transparent 72%),
    radial-gradient(700px 340px at 50% 0%, #14151c 0%, #0a0b0e 72%);
}
.upg-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.45s ease;
  border-radius: 18px;
}
.upg-glow.is-on {
  opacity: 1;
}
.upg-glow.is-win {
  background: radial-gradient(circle at 50% 50%, rgba(53, 201, 163, 0.22), transparent 62%);
}
.upg-glow.is-lose {
  background: radial-gradient(circle at 50% 50%, rgba(231, 91, 73, 0.18), transparent 62%);
}

.upg-pointer {
  position: absolute;
  z-index: 8;
  top: 6px;
  left: 50%;
  width: 0;
  height: 0;
  transform: translateX(-50%);
  border-left: 9px solid transparent;
  border-right: 9px solid transparent;
  border-top: 15px solid #ffb35c;
  filter: drop-shadow(0 3px 8px rgba(255, 122, 24, 0.6));
}
.upg-wheel-wrap {
  position: relative;
  display: grid;
  place-items: center;
  width: 296px;
  height: 296px;
}
.upg-wheel {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 5px solid #1c1e26;
  box-shadow:
    0 0 0 2px rgba(255, 255, 255, 0.05),
    0 18px 44px rgba(0, 0, 0, 0.5),
    inset 0 0 40px rgba(0, 0, 0, 0.5);
  will-change: transform;
}
.upg-wheel::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(circle, transparent 52%, rgba(0, 0, 0, 0.42) 100%);
  pointer-events: none;
}
.upg-label {
  position: absolute;
  top: 50%;
  left: 50%;
  display: block;
  width: 46px;
  margin: -8px 0 0 -23px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-align: center;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.65);
  font-variant-numeric: tabular-nums;
  pointer-events: none;
}
.upg-hub {
  position: relative;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  width: 128px;
  height: 128px;
  border-radius: 50%;
  border: 3px solid #22242d;
  background: radial-gradient(circle at 50% 30%, #1b1d25, #0d0e12 72%);
  box-shadow:
    0 10px 30px rgba(0, 0, 0, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.07);
}
.upg-hub span {
  color: #5f626d;
  font-size: 8px;
  font-weight: 650;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}
.upg-hub strong {
  color: #cfd2da;
  font-size: 26px;
  font-weight: 850;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
  transition: color 0.25s ease;
}
.upg-hub strong.is-win {
  color: #3fd6ae;
}
.upg-hub strong.is-lose {
  color: #ff8f7d;
}

.upg-result {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 48px;
  margin: 8px 11px 0;
  opacity: 0;
  transform: translateY(-4px);
  transition:
    opacity 0.28s ease,
    transform 0.28s ease;
}
.upg-result.is-visible {
  opacity: 1;
  transform: none;
}
.upg-result-mult {
  font-size: 26px;
  font-weight: 820;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}
.upg-result-mult.is-win {
  color: #3fd6ae;
}
.upg-result-mult.is-lose {
  color: #ff8f7d;
}
.upg-result-text {
  color: #7c7f8a;
  font-size: 10.5px;
  line-height: 1.55;
}
.upg-result-text .pos {
  color: var(--green);
  font-weight: 700;
}
.upg-result-text .neg {
  color: #ff8f7d;
  font-weight: 700;
}

.upg-controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: 11px;
}
.upg-chances .bet-box-label {
  margin-bottom: 8px;
}
.upg-chance-list {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 4px;
}
.upg-chance {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  padding: 4px 2px;
  border-radius: 6px;
  background: #121318;
}
.upg-chance b {
  color: #b0b3bd;
  font-size: 9.5px;
  font-weight: 750;
  font-variant-numeric: tabular-nums;
}
.upg-chance span {
  color: #4f525c;
  font-size: 8px;
  font-variant-numeric: tabular-nums;
}
.upg-chance.lose b {
  color: #8d7a80;
}
.upg-chance.win b {
  color: #7fd4e8;
}
.upg-chance.hot b {
  color: #7fd4a8;
}
.upg-chance.jackpot b {
  color: #ffc46b;
}
.upg-spin {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  background: linear-gradient(180deg, #ffae5c, #ff8a2b 58%, #f07615);
  box-shadow:
    0 10px 28px rgba(255, 122, 24, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.upg-spin:hover:not(:disabled) {
  background: linear-gradient(180deg, #ffbc74, #ff9a40 58%, #f9821f);
}
.upg-spin .i {
  width: 14px;
  height: 14px;
}

@media (max-width: 760px) {
  .upg-scene {
    height: 300px;
  }
  .upg-wheel-wrap {
    width: 252px;
    height: 252px;
  }
  .upg-label {
    margin-top: -7px;
    translate: 0 -100px;
  }
  .upg-hub {
    width: 110px;
    height: 110px;
  }
  .upg-hub strong {
    font-size: 22px;
  }
  .upg-controls {
    grid-template-columns: minmax(0, 1fr);
  }
}
