:root {
  --bg-0: #070c18;
  --bg-1: #0d1630;
  --panel: #111f41;
  --panel-2: #162a53;
  --panel-3: #1a325e;
  --line: rgba(86, 133, 211, 0.34);
  --line-strong: rgba(114, 165, 245, 0.56);
  --text: #eaf2ff;
  --muted: #9fb2d4;
  --accent: #1ec8ff;
  --accent-2: #2d5bff;
  --warm: #ffb347;
  --success: #33d39a;
  --danger: #ef708c;
  --radius-xl: 18px;
  --radius-lg: 14px;
  --radius-md: 10px;
  --container: min(1320px, 95vw);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

html {
  background: #070c18;
  overscroll-behavior-y: none;
}

body {
  min-height: 100vh;
  min-height: 100dvh;
  color: var(--text);
  font-family: "Manrope", "Segoe UI", sans-serif;
  line-height: 1.45;
  background-color: var(--bg-0);
  background:
    radial-gradient(1200px circle at 8% -26%, rgba(45, 91, 255, 0.35), transparent 48%),
    radial-gradient(900px circle at 96% -24%, rgba(30, 200, 255, 0.22), transparent 46%),
    linear-gradient(180deg, var(--bg-0), var(--bg-1));
  overscroll-behavior-y: none;
  padding-bottom: env(safe-area-inset-bottom, 0);
}

@supports (height: 100svh) {
  body {
    min-height: 100svh;
  }
}

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

button,
input {
  font: inherit;
}

:where(a, button, input, select, textarea, [role="button"], [tabindex]):focus-visible {
  outline: 2px solid rgba(147, 214, 255, 0.95);
  outline-offset: 2px;
}

::selection {
  background: rgba(146, 205, 255, 0.28);
  color: #f8fbff;
}

.container {
  width: var(--container);
  margin-inline: auto;
}

.clean-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: linear-gradient(180deg, var(--panel), var(--panel-2));
  padding: 0.9rem;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-family: "Sora", "Segoe UI", sans-serif;
}

h1 {
  font-size: clamp(1.48rem, 3vw, 2.32rem);
  line-height: 1.1;
}

h2 {
  font-size: clamp(1.06rem, 2vw, 1.32rem);
}

h3 {
  font-size: 1rem;
}

h4 {
  font-size: 0.92rem;
}

p {
  margin: 0.56rem 0 0;
}

.eyebrow {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #a2ddff;
  font-size: 0.73rem;
  font-weight: 700;
}

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

/* Top Bar */
.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(12px);
  background: rgba(8, 14, 30, 0.87);
  border-bottom: 1px solid var(--line);
}

.topbar-inner {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.74rem 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.62rem;
  min-width: 164px;
}

.brand-mark {
  width: 28px;
  aspect-ratio: 1;
  border-radius: 8px;
  background: linear-gradient(140deg, var(--accent), var(--accent-2));
  position: relative;
  box-shadow: 0 0 16px rgba(30, 200, 255, 0.45);
}

.brand-mark::after {
  content: "";
  position: absolute;
  inset: 6px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.84);
}

.brand-word {
  font-family: "Sora", "Segoe UI", sans-serif;
  font-size: 0.98rem;
  letter-spacing: 0.1em;
  font-weight: 700;
}

.site-nav {
  display: inline-flex;
  align-items: center;
  gap: 0.88rem;
}

.site-nav a {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 600;
}

.site-nav a:hover,
.site-nav a.is-active {
  color: var(--text);
}

.menu-toggle {
  display: none;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  background: rgba(19, 35, 68, 0.84);
  color: var(--text);
  padding: 0.44rem 0.68rem;
  font-weight: 700;
}

.top-actions {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.34rem;
}

.top-auth-link {
  text-decoration: none;
  white-space: nowrap;
}

.audio-controls {
  position: relative;
}

.audio-controls-panel {
  position: absolute;
  top: calc(100% + 0.4rem);
  right: 0;
  min-width: 220px;
  border: 1px solid rgba(167, 197, 230, 0.45);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(20, 33, 50, 0.96), rgba(14, 24, 38, 0.96));
  box-shadow: 0 16px 34px rgba(5, 9, 16, 0.44);
  padding: 0.62rem;
  z-index: 48;
  display: grid;
  gap: 0.46rem;
}

.audio-controls-panel[hidden] {
  display: none !important;
}

.audio-controls-title {
  margin: 0;
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #c8daee;
}

.audio-field {
  margin: 0;
  display: grid;
  gap: 0.22rem;
  color: #d4e2f4;
  font-size: 0.75rem;
}

.audio-field-value {
  font-family: "Sora", "Segoe UI", sans-serif;
  font-size: 0.8rem;
  color: #f0f7ff;
}

.audio-slider {
  margin-top: 0;
}

.audio-controls.is-open .audio-controls-toggle {
  border-color: rgba(174, 216, 248, 0.66);
}

.top-auth-link.btn.small {
  padding: 0.39rem 0.6rem;
  font-size: 0.76rem;
}

.wallet-chip {
  display: inline-flex;
  gap: 0.34rem;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.32rem 0.62rem;
  background: rgba(17, 31, 61, 0.9);
  color: #aecdff;
  font-size: 0.8rem;
  font-weight: 600;
}

.wallet-chip strong {
  color: var(--text);
  font-family: "Sora", "Segoe UI", sans-serif;
  font-size: 0.82rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: var(--radius-md);
  padding: 0.56rem 0.9rem;
  font-weight: 700;
  color: #071327;
  background: linear-gradient(135deg, #92e9ff, var(--accent));
  cursor: pointer;
  transition: transform 120ms ease, filter 120ms ease, box-shadow 160ms ease;
}

.btn:hover {
  filter: brightness(1.03);
}

.btn:active {
  transform: translateY(1px);
}

.btn:disabled {
  opacity: 0.56;
  cursor: not-allowed;
  filter: saturate(0.7);
}

.btn.ghost {
  border: 1px solid #3a5b8f;
  color: var(--text);
  background: #173058;
}

.btn.small {
  padding: 0.42rem 0.66rem;
  font-size: 0.82rem;
}

/* App Shell */
.app-shell {
  display: grid;
  grid-template-columns: 220px 1fr 290px;
  gap: 0.75rem;
  padding: 1rem 0 2.4rem;
}

.left-rail,
.right-rail,
.main-column,
.lobby-sidebar,
.lobby-content {
  display: grid;
  gap: 0.72rem;
  align-content: start;
}

.rail-group {
  display: grid;
  gap: 0.4rem;
}

.rail-title {
  margin: 0;
  color: #c4d9f8;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.rail-link {
  border-radius: 9px;
  border: 1px solid transparent;
  padding: 0.42rem 0.52rem;
  color: #b4c9ea;
  font-weight: 600;
  font-size: 0.88rem;
}

.rail-link:hover,
.rail-link.is-active {
  border-color: var(--line);
  background: rgba(25, 52, 101, 0.54);
  color: var(--text);
}

.pay-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.36rem;
}

.pay-row span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.24rem 0.46rem;
  color: #bdd1ef;
  font-size: 0.74rem;
  font-weight: 700;
}

.chat-block {
  max-height: 420px;
  overflow: auto;
}

.chat-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.34rem;
}

.chat-list li {
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #132850;
  padding: 0.34rem 0.44rem;
  color: #cfe1f8;
  font-size: 0.78rem;
}

/* Lobby */
.promo-slider {
  display: grid;
  gap: 0.58rem;
  padding: 0.72rem;
}

.promo-slider-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.6rem;
}

.promo-slider-nav {
  display: inline-flex;
  align-items: center;
  gap: 0.26rem;
}

.promo-slider-nav .btn {
  min-width: 34px;
  padding-inline: 0.5rem;
}

.promo-slider-track {
  --promo-index: 0;
  display: flex;
  width: 100%;
  will-change: transform;
  touch-action: pan-y;
  transform: translateX(calc(var(--promo-index) * -100%));
  transition: transform 420ms cubic-bezier(0.22, 0.61, 0.36, 1);
}

.promo-slider-viewport {
  width: 100%;
  overflow: hidden;
  border-radius: 12px;
}

.promo-slide {
  flex: 0 0 100%;
  border: 1px solid rgba(166, 203, 246, 0.44);
  border-radius: 12px;
  padding: 0.78rem;
  background:
    radial-gradient(360px circle at 88% 12%, rgba(30, 200, 255, 0.2), transparent 58%),
    linear-gradient(148deg, #12264d, #0f1f40);
}

.promo-slide:nth-child(1) {
  border-color: rgba(255, 214, 143, 0.56);
  background:
    radial-gradient(420px circle at 86% 10%, rgba(255, 179, 71, 0.34), transparent 56%),
    linear-gradient(140deg, #4e2f10, #2e1f10 62%, #24190e);
}

.promo-slide:nth-child(2) {
  background:
    radial-gradient(380px circle at 88% 14%, rgba(30, 200, 255, 0.26), transparent 58%),
    linear-gradient(142deg, #12264d, #0f1f40);
}

.promo-slide:nth-child(3) {
  background:
    radial-gradient(360px circle at 86% 12%, rgba(120, 246, 219, 0.23), transparent 58%),
    linear-gradient(144deg, #0f3440, #0f2b3d 58%, #122749);
}

.promo-slide h3 {
  margin-top: 0.12rem;
  font-size: clamp(1rem, 1.75vw, 1.28rem);
  max-width: 32ch;
}

.promo-slide p {
  max-width: 54ch;
}

.promo-slide .btn {
  margin-top: 0.56rem;
}

.promo-slider-dots {
  display: inline-flex;
  align-items: center;
  gap: 0.32rem;
}

.promo-dot {
  width: 8px;
  height: 8px;
  border: 0;
  border-radius: 999px;
  background: rgba(174, 205, 237, 0.5);
  cursor: pointer;
  transition: transform 160ms ease, background-color 160ms ease;
}

.promo-dot.is-active {
  transform: scale(1.18);
  background: #8fd6ff;
}

.lobby-profile-strip {
  display: grid;
  gap: 0.54rem;
}

.lobby-profile-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1.4fr;
  gap: 0.5rem;
  align-items: stretch;
}

.lobby-division-progress {
  border: 1px solid rgba(164, 191, 217, 0.44);
  border-radius: 10px;
  background: rgba(24, 35, 49, 0.68);
  padding: 0.48rem 0.56rem;
  display: grid;
  gap: 0.44rem;
}

.lobby-division-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.4rem;
  color: #dfe9f5;
  font-size: 0.82rem;
}

.banner-layout {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 0.7rem;
}

.hero-banner {
  position: relative;
  overflow: hidden;
}

.hero-banner-main {
  min-height: 198px;
  border-color: rgba(255, 214, 143, 0.48);
  background:
    radial-gradient(700px circle at 85% 8%, rgba(255, 179, 71, 0.35), transparent 46%),
    linear-gradient(132deg, #dc7b00, #c86900 45%, #9d4500);
}

.hero-banner-main h1,
.hero-banner-main p,
.hero-banner-main .eyebrow {
  color: #fff4e2;
  max-width: 23ch;
}

.hero-banner-main .btn {
  margin-top: 0.66rem;
}

.hero-banner-side {
  min-height: 95px;
  display: grid;
  align-content: center;
}

.hero-banner-side {
  background:
    radial-gradient(380px circle at 90% 20%, rgba(30, 200, 255, 0.3), transparent 56%),
    linear-gradient(140deg, #12264d, #0f1f40);
}

.hero-banner-side.warm {
  background:
    radial-gradient(390px circle at 90% 20%, rgba(255, 179, 71, 0.26), transparent 56%),
    linear-gradient(140deg, #19305e, #14264a);
}

.search-shell {
  padding: 0.62rem;
}

.search-shell input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #10234a;
  color: var(--text);
  padding: 0.58rem 0.66rem;
}

.search-shell input::placeholder {
  color: #88a3c8;
}

.auth-hub {
  display: grid;
  gap: 0.56rem;
}

.auth-tabs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
  gap: 0.36rem;
}

.auth-tab {
  border: 1px solid #45679f;
  border-radius: 9px;
  background: #17315d;
  color: #d7e8fd;
  font-weight: 700;
  padding: 0.42rem 0.44rem;
  cursor: pointer;
}

.auth-tab.is-active {
  border-color: transparent;
  background: linear-gradient(135deg, #9ce6ff, #8ab8ff);
  color: #08172d;
}

.auth-panel {
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #132851;
  padding: 0.62rem;
}

.auth-panel h3 {
  margin-bottom: 0.26rem;
}

.auth-form {
  display: grid;
  gap: 0.24rem;
}

.auth-feedback {
  margin-top: 0.48rem;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #102248;
  color: #c7dbf6;
  font-size: 0.81rem;
  padding: 0.4rem 0.5rem;
}

.auth-feedback:empty {
  display: none;
}

.auth-feedback.success {
  border-color: rgba(51, 211, 154, 0.62);
  color: #a4efcf;
}

.auth-feedback.error {
  border-color: rgba(239, 112, 140, 0.58);
  color: #ffc1ce;
}

.email-verify-panel {
  display: grid;
  gap: 0.44rem;
}

.email-verify-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.42rem;
}

.email-verify-actions .muted {
  font-size: 0.78rem;
}

.bonus-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.62rem;
}

.bonus-card {
  display: grid;
  gap: 0.38rem;
  min-height: 174px;
}

.bonus-card p {
  margin: 0;
}

.bonus-card h3 {
  font-size: 1.08rem;
}

.bonus-card.warm {
  background:
    radial-gradient(280px circle at 88% 12%, rgba(255, 179, 71, 0.34), transparent 56%),
    linear-gradient(140deg, #16305b, #102443);
}

.bonus-card.cool {
  background:
    radial-gradient(280px circle at 88% 12%, rgba(30, 200, 255, 0.32), transparent 56%),
    linear-gradient(140deg, #17335f, #112645);
}

.bonus-card.dark {
  background:
    radial-gradient(280px circle at 88% 12%, rgba(151, 122, 255, 0.26), transparent 56%),
    linear-gradient(140deg, #142a50, #0e1f3a);
}

.bonus-redeem {
  display: grid;
  gap: 0.48rem;
}

.bonus-redeem-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.48rem;
  align-items: end;
}

.row-shell {
  display: grid;
  gap: 0.5rem;
}

.section-head-inline {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.6rem;
}

.section-head-inline.no-margin {
  margin: 0;
}

.link-more {
  color: #9adfff;
  font-size: 0.84rem;
  font-weight: 700;
}

.link-more:hover {
  color: #c8f0ff;
}

.game-row {
  display: flex;
  gap: 0.56rem;
  overflow-x: auto;
  padding-bottom: 0.15rem;
}

.game-card {
  min-width: 182px;
  max-width: 182px;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: #10234a;
  display: grid;
  transition: transform 160ms ease, border-color 160ms ease;
}

.game-card:hover {
  transform: translateY(-2px);
  border-color: var(--line-strong);
}

.game-thumb {
  height: 102px;
  position: relative;
}

.original-thumb {
  border-bottom: 1px solid rgba(148, 191, 243, 0.32);
  box-shadow: inset 0 0 0 1px rgba(222, 237, 255, 0.04);
  isolation: isolate;
}

.thumb-preview {
  overflow: hidden;
}

.thumb-preview span {
  position: absolute;
}

.original-thumb .thumb-scanline,
.original-thumb .thumb-vignette,
.original-thumb .thumb-chip {
  position: absolute;
  z-index: 4;
  pointer-events: none;
}

.original-thumb .thumb-scanline {
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0) 14%, rgba(196, 229, 255, 0.16) 49%, rgba(255, 255, 255, 0) 86%);
  transform: translateY(-120%);
  animation: previewScanline 3.6s ease-in-out infinite;
  mix-blend-mode: screen;
}

.original-thumb .thumb-vignette {
  inset: 0;
  background:
    radial-gradient(240px circle at 50% -16%, rgba(159, 214, 255, 0.2), transparent 60%),
    radial-gradient(160px circle at 50% 120%, rgba(4, 10, 20, 0.58), transparent 68%);
}

.original-thumb .thumb-chip {
  top: 0.34rem;
  left: 0.36rem;
  border: 1px solid rgba(166, 212, 255, 0.54);
  border-radius: 999px;
  background: rgba(10, 23, 48, 0.7);
  color: #d8ecff;
  font-style: normal;
  font-size: 0.58rem;
  letter-spacing: 0.06em;
  line-height: 1;
  font-weight: 700;
  padding: 0.2rem 0.34rem;
  text-transform: uppercase;
  text-shadow: 0 0 8px rgba(173, 215, 255, 0.36);
}

.original-thumb .thumb-chip.alt {
  left: auto;
  right: 0.36rem;
  border-color: rgba(159, 239, 213, 0.56);
  color: #c9ffe8;
}

.game-meta {
  margin: 0;
  color: #9ec4e5;
  font-size: 0.67rem;
  line-height: 1.3;
  letter-spacing: 0.01em;
}

.orig-preview-crash {
  background:
    radial-gradient(260px circle at 50% -22%, rgba(181, 236, 255, 0.34), transparent 58%),
    linear-gradient(180deg, #1b4f88, #174271 58%, #102f53 100%);
}

.orig-preview-dice {
  background:
    radial-gradient(240px circle at 50% -14%, rgba(176, 224, 255, 0.28), transparent 60%),
    linear-gradient(180deg, #122746, #0e1d34 68%, #0a1426 100%);
}

.orig-preview-doors {
  background:
    radial-gradient(220px circle at 50% -20%, rgba(148, 210, 255, 0.24), transparent 58%),
    linear-gradient(180deg, #11243e, #0d1a2f 70%, #0a1322 100%);
}

.orig-preview-slots {
  background:
    radial-gradient(240px circle at 50% -20%, rgba(149, 214, 255, 0.24), transparent 58%),
    linear-gradient(180deg, #102445, #0d1b32 72%, #091224 100%);
}

.orig-preview-mines {
  background:
    radial-gradient(230px circle at 50% -22%, rgba(145, 204, 255, 0.2), transparent 58%),
    linear-gradient(180deg, #102343, #0e1b34 72%, #091324 100%);
}

.orig-preview-cars {
  background:
    radial-gradient(240px circle at 50% -24%, rgba(144, 206, 255, 0.22), transparent 58%),
    linear-gradient(180deg, #16263d, #101a2e 72%, #0a111f 100%);
}

.orig-crash-atmo {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(140px circle at 76% 20%, rgba(255, 205, 118, 0.24), transparent 72%),
    radial-gradient(180px circle at 30% 14%, rgba(197, 236, 255, 0.22), transparent 70%);
  opacity: 0.95;
}

.orig-crash-skyline {
  position: absolute;
  left: 0.46rem;
  right: 0.46rem;
  bottom: 0.34rem;
  height: 50%;
  display: flex;
  align-items: flex-end;
  gap: 0.11rem;
}

.orig-crash-tower {
  position: relative;
  flex: var(--tower-w, 1) 1 0;
  height: var(--tower-h, 42%);
  border-radius: 5px 5px 0 0;
  background: linear-gradient(180deg, rgba(132, 184, 231, 0.92), rgba(60, 102, 154, 0.98));
  box-shadow: inset 0 1px 0 rgba(233, 246, 255, 0.22);
  overflow: hidden;
  opacity: 0.88;
  animation: origCrashSkylinePulse 4.2s ease-in-out var(--tower-delay, 0ms) infinite;
}

.orig-crash-tower::after {
  content: "";
  position: absolute;
  left: 22%;
  right: 22%;
  top: 14%;
  bottom: 10%;
  background: repeating-linear-gradient(
    180deg,
    rgba(234, 246, 255, 0.42) 0 3px,
    rgba(234, 246, 255, 0) 3px 7px
  );
  opacity: 0.72;
}

.orig-crash-trail {
  position: absolute;
  left: 12%;
  bottom: 30%;
  width: 58px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(206, 238, 255, 0.94), rgba(206, 238, 255, 0));
  transform-origin: 0 50%;
  filter: drop-shadow(0 0 8px rgba(201, 237, 255, 0.34));
  animation: origCrashTrail 3.1s ease-in-out infinite;
}

.orig-crash-heli {
  position: absolute;
  left: 17%;
  bottom: 25%;
  width: 24px;
  height: 12px;
  transform-origin: 50% 50%;
  filter: drop-shadow(0 2px 6px rgba(5, 14, 28, 0.5));
  animation: origCrashHeliFly 3.1s cubic-bezier(0.24, 0.7, 0.24, 1) infinite;
}

.orig-crash-tail {
  position: absolute;
  left: -9px;
  top: 4px;
  width: 10px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, #69b4ee, #8fd6ff);
}

.orig-crash-cabin {
  position: absolute;
  inset: 2px 2px 1px;
  border-radius: 6px 7px 6px 4px;
  background: linear-gradient(180deg, #f0fbff, #9ed3f8 55%, #64ace3);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.42);
}

.orig-crash-cabin::after {
  content: "";
  position: absolute;
  right: 3px;
  top: 2px;
  width: 7px;
  height: 4px;
  border-radius: 8px;
  background: rgba(227, 248, 255, 0.88);
}

.orig-crash-rotor {
  position: absolute;
  left: 4px;
  right: -2px;
  top: -3px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(214, 239, 255, 0.9), rgba(214, 239, 255, 0.16));
  transform-origin: 45% 50%;
  animation: origCrashRotor 260ms linear infinite;
}

.orig-crash-beacon {
  position: absolute;
  right: -2px;
  top: 4px;
  width: 3px;
  height: 3px;
  border-radius: 999px;
  background: rgba(255, 141, 123, 0.95);
  box-shadow: 0 0 9px rgba(255, 141, 123, 0.72);
  animation: origCrashBeacon 620ms ease-in-out infinite;
}

.orig-crash-hud {
  position: absolute;
  left: 0.44rem;
  top: 0.4rem;
  border: 1px solid rgba(175, 213, 245, 0.72);
  border-radius: 999px;
  background: rgba(10, 21, 38, 0.82);
  color: #d9edff;
  font-size: 0.53rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  line-height: 1;
  padding: 0.18rem 0.34rem;
}

.orig-dice-ring {
  position: absolute;
  width: 72px;
  aspect-ratio: 1;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  border-radius: 999px;
  border: 1px solid rgba(176, 216, 255, 0.72);
  background:
    radial-gradient(circle at 50% 50%, rgba(13, 24, 46, 0.95) 56%, transparent 57%),
    conic-gradient(from -90deg, rgba(74, 223, 170, 0.94) 0 44%, rgba(255, 125, 159, 0.9) 44% 100%);
  box-shadow: inset 0 0 14px rgba(130, 197, 255, 0.24);
}

.orig-dice-markers {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 88px;
  height: 88px;
  transform: translate(-50%, -50%);
}

.orig-dice-markers span {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 2px;
  height: 6px;
  border-radius: 999px;
  background: rgba(205, 231, 255, 0.74);
  transform: rotate(calc(var(--marker-idx, 0) * 45deg)) translateY(-38px);
}

.orig-dice-needle {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 3px;
  height: 35px;
  transform-origin: 50% 100%;
  transform: translate(-50%, -100%) rotate(18deg);
  background: linear-gradient(180deg, #ffe1a6, rgba(255, 201, 116, 0));
  animation: origDiceNeedle 2.9s cubic-bezier(0.2, 0.8, 0.2, 1) infinite;
}

.orig-dice-value {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  font-family: "Sora", "Segoe UI", sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  color: #d8ecff;
  letter-spacing: 0.02em;
}

.orig-dice-chip {
  position: absolute;
  left: 50%;
  bottom: 0.5rem;
  transform: translateX(-50%);
  border: 1px solid rgba(176, 215, 247, 0.72);
  border-radius: 999px;
  background: rgba(10, 20, 36, 0.84);
  color: #d9ecff;
  font-size: 0.52rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  line-height: 1;
  padding: 0.18rem 0.34rem;
}

.orig-doors-grid {
  position: absolute;
  inset: 0.54rem 0.46rem 0.48rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.22rem;
}

.orig-door-panel {
  position: relative;
  border-radius: 8px;
  border: 1px solid rgba(171, 207, 255, 0.56);
  background: linear-gradient(180deg, #4b78b1, #2c4a6d 58%, #1d3552);
  box-shadow: inset 0 -10px 16px rgba(5, 13, 28, 0.34);
}

.orig-door-panel::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 14%;
  transform: translateX(-50%);
  width: 26%;
  height: 40%;
  border-radius: 999px;
  border: 1px solid rgba(255, 198, 108, 0.54);
  background: rgba(255, 198, 108, 0.15);
}

.orig-door-panel::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 18%;
  width: 4px;
  height: 4px;
  border-radius: 999px;
  background: rgba(216, 237, 255, 0.78);
  transform: translateX(-50%);
}

.orig-door-panel.p1,
.orig-door-panel.p3 {
  animation: origDoorIdle 2.8s ease-in-out infinite;
}

.orig-door-panel.p2 {
  border-color: rgba(162, 245, 212, 0.74);
  box-shadow:
    inset 0 -10px 16px rgba(5, 13, 28, 0.34),
    0 0 0 1px rgba(162, 245, 212, 0.22);
  animation: origDoorFocus 2.8s ease-in-out infinite;
}

.orig-doors-chip {
  position: absolute;
  right: 0.42rem;
  top: 0.42rem;
  border: 1px solid rgba(170, 233, 209, 0.72);
  border-radius: 999px;
  background: rgba(9, 23, 35, 0.82);
  color: #d4ffeb;
  font-size: 0.52rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  line-height: 1;
  padding: 0.18rem 0.34rem;
}

.orig-slot-jackpot {
  position: absolute;
  left: 50%;
  top: 0.42rem;
  transform: translateX(-50%);
  border: 1px solid rgba(186, 219, 248, 0.74);
  border-radius: 999px;
  background: rgba(10, 19, 34, 0.84);
  color: #e2f2ff;
  font-size: 0.5rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1;
  padding: 0.16rem 0.34rem;
}

.orig-slot-frame {
  position: absolute;
  inset: 0.9rem 0.44rem 0.44rem;
  border: 1px solid rgba(166, 203, 238, 0.5);
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(17, 33, 58, 0.8), rgba(12, 24, 42, 0.82));
  padding: 0.22rem;
}

.orig-slot-window {
  position: absolute;
  inset: 0.22rem;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.14rem;
}

.orig-slot-window span {
  border: 1px solid rgba(174, 211, 255, 0.46);
  border-radius: 6px;
  background: rgba(11, 26, 53, 0.78);
  display: grid;
  place-items: center;
  font-family: "Sora", "Segoe UI", sans-serif;
  font-size: 0.52rem;
  font-weight: 700;
  color: #d9ecff;
  text-shadow: 0 0 9px rgba(173, 215, 255, 0.38);
  animation: origSlotBob 1.9s ease-in-out infinite;
}

.orig-slot-window span.is-multi {
  color: #b7ffdd;
}

.orig-slot-window span.is-seven {
  color: #ffe1a8;
}

.orig-slot-window span.is-star {
  color: #ffbcd0;
}

.orig-slot-window span:nth-child(5n + 1) { animation-delay: 0ms; }
.orig-slot-window span:nth-child(5n + 2) { animation-delay: 90ms; }
.orig-slot-window span:nth-child(5n + 3) { animation-delay: 160ms; }
.orig-slot-window span:nth-child(5n + 4) { animation-delay: 240ms; }
.orig-slot-window span:nth-child(5n + 5) { animation-delay: 320ms; }

.orig-mines-grid {
  position: absolute;
  inset: 0.82rem 0.52rem 0.48rem;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.16rem;
}

.orig-mines-grid span {
  border-radius: 5px;
  border: 1px solid rgba(171, 208, 255, 0.48);
  background: rgba(16, 33, 64, 0.84);
  display: grid;
  place-items: center;
  color: rgba(220, 236, 255, 0.86);
  font-size: 0.43rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.orig-mines-grid span.hot {
  border-color: rgba(240, 121, 151, 0.76);
  background: rgba(240, 121, 151, 0.38);
  color: #ffd5e0;
}

.orig-mines-grid span.safe {
  border-color: rgba(88, 224, 169, 0.76);
  background: rgba(88, 224, 169, 0.34);
  color: #d2ffe9;
}

.orig-mines-chip {
  position: absolute;
  right: 0.42rem;
  top: 0.42rem;
  border: 1px solid rgba(190, 220, 249, 0.76);
  border-radius: 999px;
  background: rgba(9, 20, 36, 0.82);
  color: #e1efff;
  font-size: 0.5rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  line-height: 1;
  padding: 0.18rem 0.34rem;
}

.orig-road-surface {
  position: absolute;
  inset: 0.54rem 0.5rem 0.44rem;
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(22, 33, 50, 0.86), rgba(12, 20, 33, 0.9)),
    linear-gradient(180deg, rgba(141, 193, 240, 0.14), rgba(141, 193, 240, 0));
  box-shadow: inset 0 1px 0 rgba(198, 223, 249, 0.12);
}

.orig-road-line {
  position: absolute;
  top: 18%;
  bottom: 12%;
  width: 2px;
  background: repeating-linear-gradient(180deg, rgba(230, 243, 255, 0.86) 0 8px, rgba(230, 243, 255, 0) 8px 16px);
  animation: origRoadDash 0.85s linear infinite;
}

.orig-road-line.l1 { left: 38%; }
.orig-road-line.l2 { right: 38%; }

.orig-car {
  position: absolute;
  width: 12px;
  height: 18px;
  border-radius: 4px;
  border: 1px solid rgba(191, 226, 255, 0.68);
  box-shadow: 0 1px 4px rgba(6, 13, 23, 0.45);
}

.orig-car.traffic-a {
  left: 27%;
  top: 24%;
  background: linear-gradient(180deg, #c7e5ff, #6b8cc2);
  animation: origTrafficFloatA 2.4s ease-in-out infinite;
}

.orig-car.traffic-b {
  right: 27%;
  top: 42%;
  background: linear-gradient(180deg, #ffcad7, #a5536e);
  border-color: rgba(255, 201, 215, 0.74);
  animation: origTrafficFloatB 2.6s ease-in-out infinite;
}

.orig-car.player {
  left: 50%;
  bottom: 16%;
  transform: translateX(-50%);
  background: linear-gradient(180deg, #ffe6b5, #be8138);
  border-color: rgba(255, 226, 176, 0.72);
  animation: origPlayerLane 2.8s ease-in-out infinite;
}

.orig-cars-hud {
  position: absolute;
  right: 0.42rem;
  top: 0.42rem;
  border: 1px solid rgba(174, 213, 245, 0.74);
  border-radius: 999px;
  background: rgba(8, 19, 33, 0.84);
  color: #deefff;
  font-size: 0.5rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1;
  padding: 0.18rem 0.34rem;
}

.crash-thumb .thumb-road {
  left: 50%;
  bottom: -12px;
  width: 86%;
  height: 86%;
  transform: translateX(-50%);
  background:
    repeating-linear-gradient(
      180deg,
      rgba(213, 232, 255, 0.14) 0 4px,
      rgba(213, 232, 255, 0) 4px 11px
    ),
    linear-gradient(180deg, rgba(17, 35, 66, 0.88), rgba(10, 18, 37, 0.95));
  clip-path: polygon(24% 0, 76% 0, 100% 100%, 0 100%);
  opacity: 0.8;
}

.crash-thumb .thumb-rocket {
  width: 14px;
  height: 28px;
  left: 50%;
  bottom: 17%;
  border-radius: 999px;
  background: linear-gradient(180deg, #d2ecff, #78c8ff);
  box-shadow: 0 0 14px rgba(126, 213, 255, 0.72);
  transform: translateX(-50%);
  animation: thumbRocketFly 2.4s ease-in-out infinite;
}

.crash-thumb .thumb-rocket::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 100%;
  width: 8px;
  height: 16px;
  transform: translateX(-50%);
  background: linear-gradient(180deg, rgba(255, 210, 147, 0.96), rgba(255, 130, 90, 0));
}

.dice-thumb {
  display: grid;
  place-items: center;
}

.dice-thumb .thumb-dice-ring {
  left: 50%;
  top: 50%;
  width: 66px;
  height: 66px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, rgba(10, 20, 43, 0.95) 56%, transparent 57%),
    conic-gradient(from -90deg, rgba(52, 224, 156, 0.95) 0 48%, rgba(255, 108, 146, 0.9) 48% 100%);
  border: 1px solid rgba(176, 214, 255, 0.68);
}

.dice-thumb .thumb-dice-needle {
  left: 50%;
  top: 50%;
  width: 3px;
  height: 30px;
  transform-origin: 50% 100%;
  transform: translate(-50%, -100%) rotate(0deg);
  background: linear-gradient(180deg, #ffd88a, rgba(255, 195, 101, 0));
  box-shadow: 0 0 12px rgba(255, 214, 128, 0.62);
  animation: thumbNeedleSpin 2.8s cubic-bezier(0.24, 0.84, 0.24, 1) infinite;
}

.doors-thumb .thumb-door-leaf {
  top: 0;
  bottom: 0;
  width: 50%;
  background: linear-gradient(180deg, #436fb2, #223b64 58%, #172b4a);
}

.doors-thumb .thumb-door-leaf.left {
  left: 0;
  transform-origin: left center;
  border-right: 1px solid rgba(182, 214, 255, 0.56);
  animation: thumbDoorLeft 2.8s ease-in-out infinite;
}

.doors-thumb .thumb-door-leaf.right {
  right: 0;
  transform-origin: right center;
  border-left: 1px solid rgba(182, 214, 255, 0.56);
  animation: thumbDoorRight 2.8s ease-in-out infinite;
}

.slots-thumb {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.24rem;
  padding: 0.38rem;
}

.slots-thumb span {
  inset: auto;
  position: relative;
  border: 1px solid rgba(177, 211, 255, 0.5);
  border-radius: 7px;
  background: rgba(10, 23, 48, 0.76);
  display: grid;
  place-items: center;
  color: #d9ebff;
  font-family: "Sora", "Segoe UI", sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  text-shadow: 0 0 9px rgba(175, 215, 255, 0.36);
}

.slots-thumb span:nth-child(1) {
  animation: thumbSlotBob 1.85s ease-in-out infinite;
}

.slots-thumb span:nth-child(2) {
  animation: thumbSlotBob 1.85s ease-in-out 120ms infinite;
}

.slots-thumb span:nth-child(3) {
  animation: thumbSlotBob 1.85s ease-in-out 240ms infinite;
}

.mines-thumb {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.2rem;
  padding: 0.34rem;
}

.mines-thumb span {
  inset: auto;
  position: relative;
  border-radius: 6px;
  border: 1px solid rgba(175, 210, 255, 0.5);
  background: rgba(16, 34, 65, 0.82);
}

.mines-thumb span.hot {
  background: rgba(239, 112, 140, 0.34);
  border-color: rgba(239, 112, 140, 0.74);
}

.mines-thumb span.safe {
  background: rgba(51, 211, 154, 0.32);
  border-color: rgba(51, 211, 154, 0.72);
}

.cars-thumb,
.cars-preview-track {
  background:
    radial-gradient(220px circle at 50% -10%, rgba(116, 214, 255, 0.2), transparent 58%),
    linear-gradient(180deg, rgba(16, 34, 67, 0.7), rgba(10, 21, 43, 0.9));
}

.cars-thumb .lane,
.cars-preview-track .lane {
  position: absolute;
  top: -8%;
  bottom: -8%;
  width: 2px;
  background:
    repeating-linear-gradient(
      180deg,
      rgba(222, 235, 255, 0.86) 0 9px,
      rgba(222, 235, 255, 0) 9px 17px
    );
  animation: thumbLaneFlow 0.82s linear infinite;
}

.cars-thumb .lane-left,
.cars-preview-track .lane-left {
  left: 38%;
}

.cars-thumb .lane-right,
.cars-preview-track .lane-right {
  right: 38%;
}

.cars-thumb .traffic-car,
.cars-preview-track .traffic-car {
  position: absolute;
  width: 12px;
  height: 18px;
  border-radius: 4px;
  border: 1px solid rgba(194, 227, 255, 0.62);
  background: linear-gradient(180deg, #8ed6ff, #3f77ca);
  box-shadow: 0 0 8px rgba(95, 182, 255, 0.38);
}

.cars-thumb .traffic-car.car-a,
.cars-preview-track .traffic-car.car-a {
  left: 26%;
  top: 18%;
  animation: thumbTrafficA 2.2s linear infinite;
}

.cars-thumb .traffic-car.car-b,
.cars-preview-track .traffic-car.car-b {
  right: 26%;
  top: 36%;
  background: linear-gradient(180deg, #ffa6ba, #b74a67);
  border-color: rgba(255, 190, 204, 0.7);
  animation: thumbTrafficB 2s linear infinite;
}

.cars-thumb .traffic-car.player,
.cars-preview-track .traffic-car.player {
  left: 50%;
  bottom: 12%;
  transform: translateX(-50%);
  background: linear-gradient(180deg, #9dffe0, #2f9582);
  border-color: rgba(186, 255, 229, 0.72);
}

.game-body {
  padding: 0.5rem;
  display: grid;
  gap: 0.24rem;
}

.game-body p {
  margin: 0;
  color: #abc2e4;
  font-size: 0.76rem;
}

.game-label {
  border: 1px solid rgba(162, 205, 255, 0.48);
  border-radius: 999px;
  width: max-content;
  padding: 0.12rem 0.42rem;
  color: #c6e0ff;
  font-size: 0.66rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.bg-original-crash { background: linear-gradient(145deg, #234d88, #1b3765); }
.bg-original-dice { background: linear-gradient(145deg, #275394, #1c3f74); }
.bg-original-doors { background: linear-gradient(145deg, #21457e, #1b3561); }
.bg-original-wheel { background: linear-gradient(145deg, #2b4e84, #21406a); }
.bg-original-slots { background: linear-gradient(145deg, #2f4a90, #1f315f); }
.bg-original-mines { background: linear-gradient(145deg, #3b427b, #232955); }
.bg-original-cars { background: linear-gradient(145deg, #2f567f, #1d3d63); }

.bg-slot-a { background: linear-gradient(145deg, #8f3a5f, #542650); }
.bg-slot-b { background: linear-gradient(145deg, #6758a3, #3a2d77); }
.bg-slot-c { background: linear-gradient(145deg, #3e5ca7, #21417f); }
.bg-slot-d { background: linear-gradient(145deg, #7f6a2f, #4f4320); }
.bg-slot-e { background: linear-gradient(145deg, #78412f, #4c2a1e); }
.bg-slot-f { background: linear-gradient(145deg, #4f3a78, #30224f); }

.bg-live-a { background: linear-gradient(145deg, #3f678f, #2a496c); }
.bg-live-b { background: linear-gradient(145deg, #385f8d, #234468); }
.bg-live-c { background: linear-gradient(145deg, #2d5c83, #1f4562); }
.bg-live-d { background: linear-gradient(145deg, #45648a, #28445f); }

.live-bets-list {
  margin: 0.58rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.34rem;
}

.live-bets-list li {
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #132850;
  padding: 0.4rem 0.52rem;
  display: flex;
  justify-content: space-between;
  gap: 0.6rem;
  align-items: center;
}

.live-bets-list.compact li {
  padding: 0.32rem 0.42rem;
}

.live-bets-list .bet-main {
  color: #d6e6fa;
  font-size: 0.8rem;
}

.live-bets-list .bet-amount {
  color: #9ce9c8;
  font-size: 0.78rem;
  font-weight: 700;
}

.live-bets-list .bet-loss {
  color: #ffb8c4;
}

/* Originals grid page */
.page-stack {
  padding: 1rem 0 2.4rem;
  display: grid;
  gap: 0.78rem;
}

.hero-lobby h1 {
  max-width: 17ch;
}

.mode-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.7rem;
}

.mode-card {
  display: grid;
  gap: 0.55rem;
  cursor: pointer;
}

.mode-card-pro {
  gap: 0.48rem;
  padding: 0.72rem;
  border-color: rgba(158, 195, 239, 0.42);
  background:
    radial-gradient(320px circle at 50% -30%, rgba(109, 182, 243, 0.18), transparent 62%),
    linear-gradient(180deg, rgba(18, 35, 64, 0.96), rgba(12, 23, 44, 0.98));
  transition: transform 190ms ease, border-color 190ms ease, box-shadow 190ms ease;
}

.mode-card-pro:hover {
  transform: translateY(-3px);
  border-color: rgba(188, 222, 255, 0.68);
  box-shadow: 0 14px 30px rgba(7, 13, 22, 0.32);
}

.mode-card-pro h3 {
  font-size: 1rem;
}

.mode-copy {
  margin: 0;
  color: #a9c3de;
  font-size: 0.78rem;
  line-height: 1.34;
}

.mode-visual {
  height: 180px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #0f2041;
  position: relative;
  overflow: hidden;
}

.mode-card-pro .mode-visual {
  height: 194px;
  border-radius: 14px;
}

.mode-card-pro .mode-visual::before,
.mode-card-pro .mode-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.mode-card-pro .mode-visual::before {
  background: linear-gradient(180deg, rgba(201, 228, 255, 0.08), rgba(201, 228, 255, 0));
  mix-blend-mode: screen;
}

.mode-card-pro .mode-visual::after {
  background: radial-gradient(200px circle at 50% 112%, rgba(2, 7, 15, 0.68), rgba(2, 7, 15, 0));
}

.mode-chip {
  position: absolute;
  z-index: 5;
  top: 0.46rem;
  left: 0.46rem;
  border: 1px solid rgba(170, 214, 255, 0.6);
  border-radius: 999px;
  background: rgba(10, 20, 40, 0.72);
  color: #d7ebff;
  font-style: normal;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  line-height: 1;
  text-transform: uppercase;
  padding: 0.23rem 0.38rem;
}

.mode-chip.alt {
  left: auto;
  right: 0.46rem;
  border-color: rgba(159, 237, 213, 0.58);
  color: #c9ffe6;
}

.mode-card-pro[data-original-card="cars"] .mode-chip.alt {
  border-color: rgba(255, 216, 162, 0.68);
  color: #ffe2ad;
}

.visual-crash {
  perspective: 760px;
}

.crash-grid {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(transparent 91%, rgba(153, 191, 252, 0.25) 92%, transparent 93%),
    linear-gradient(90deg, transparent 91%, rgba(153, 191, 252, 0.22) 92%, transparent 93%);
  background-size: 32px 32px;
  transform: rotateX(58deg) translateY(26%);
  transform-origin: bottom;
}

.crash-line {
  position: absolute;
  left: 7%;
  bottom: 14%;
  width: 80%;
  height: 60%;
  clip-path: polygon(0 98%, 8% 90%, 19% 82%, 31% 70%, 45% 60%, 60% 43%, 78% 23%, 100% 4%, 100% 100%, 0 100%);
  background: linear-gradient(180deg, rgba(30, 200, 255, 0.5), rgba(45, 91, 255, 0.78));
  filter: drop-shadow(0 0 12px rgba(30, 200, 255, 0.52));
  transform-origin: left bottom;
  animation: crashPulse 2.8s ease-in-out infinite;
}

.visual-dice {
  display: grid;
  place-items: center;
}

.preview-ring {
  width: 112px;
  aspect-ratio: 1;
  position: relative;
  border-radius: 999px;
  border: 2px solid rgba(154, 202, 255, 0.65);
  box-shadow:
    inset 0 0 18px rgba(30, 200, 255, 0.28),
    0 0 18px rgba(30, 200, 255, 0.24);
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 50% 40%, #244f8e, #182f57);
  animation: pulseRing 3.5s ease-in-out infinite;
}

.preview-ring span {
  font-family: "Sora", "Segoe UI", sans-serif;
  font-size: 1.05rem;
  color: #d8ecff;
}

.visual-doors {
  display: grid;
  place-items: center;
  perspective: 820px;
}

.visual-slots {
  display: grid;
  place-items: center;
}

.slot-preview-window {
  width: 174px;
  height: 96px;
  border: 1px solid rgba(180, 214, 255, 0.5);
  border-radius: 10px;
  background:
    radial-gradient(240px circle at 50% -20%, rgba(30, 200, 255, 0.26), transparent 58%),
    linear-gradient(180deg, #13274d, #0f1f3f);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.3rem;
  padding: 0.34rem;
}

.slot-preview-window span {
  border: 1px solid rgba(169, 205, 255, 0.44);
  border-radius: 8px;
  background: rgba(16, 37, 71, 0.74);
  display: grid;
  place-items: center;
  font-family: "Sora", "Segoe UI", sans-serif;
  font-size: 0.9rem;
  color: #d7e9ff;
}

.visual-mines {
  display: grid;
  place-items: center;
}

.visual-cars {
  display: grid;
  place-items: center;
}

.cars-preview-track {
  width: 178px;
  height: 112px;
  border: 1px solid rgba(171, 206, 255, 0.48);
  border-radius: 10px;
  position: relative;
  overflow: hidden;
}

.mines-preview-grid {
  width: 132px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.3rem;
}

.mines-preview-grid span {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 7px;
  border: 1px solid rgba(174, 209, 255, 0.5);
  background: #122548;
}

.mines-preview-grid span.hot {
  background: rgba(239, 112, 140, 0.38);
  border-color: rgba(239, 112, 140, 0.7);
}

.mines-preview-grid span.safe {
  background: rgba(51, 211, 154, 0.3);
  border-color: rgba(51, 211, 154, 0.68);
}

.door-stage {
  width: 168px;
  height: 108px;
  border: 1px solid rgba(153, 191, 252, 0.46);
  border-radius: 10px;
  background: linear-gradient(180deg, #1b325a, #162947);
  position: relative;
  overflow: hidden;
  transform: rotateX(12deg);
}

.door {
  position: absolute;
  top: 0;
  width: 50%;
  height: 100%;
  background: linear-gradient(180deg, #2c4b7b, #1f365a);
}

.door.left {
  left: 0;
  transform-origin: left;
  border-right: 1px solid rgba(168, 203, 255, 0.55);
  animation: doorLeft 2.7s ease-in-out infinite;
}

.door.right {
  right: 0;
  transform-origin: right;
  border-left: 1px solid rgba(168, 203, 255, 0.55);
  animation: doorRight 2.7s ease-in-out infinite;
}

.door-center {
  position: absolute;
  inset: 12% 28%;
  border-radius: 8px;
  border: 1px solid rgba(255, 179, 71, 0.48);
  background: rgba(255, 179, 71, 0.12);
}

/* Mode pages */
.mode-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 0.7rem;
  align-items: start;
}

.crash-stage {
  position: relative;
  height: 392px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background:
    radial-gradient(680px circle at 52% -28%, rgba(66, 150, 255, 0.34), transparent 62%),
    radial-gradient(540px circle at 100% 0%, rgba(45, 203, 255, 0.22), transparent 58%),
    linear-gradient(180deg, #11254d, #0d1730 72%);
  overflow: hidden;
}

.crash-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(168, 212, 255, 0.1), rgba(168, 212, 255, 0));
  mix-blend-mode: screen;
  pointer-events: none;
  z-index: 1;
}

.crash-stage::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(500px circle at 50% 100%, rgba(7, 14, 28, 0), rgba(7, 14, 28, 0.68));
  pointer-events: none;
  z-index: 1;
}

#crash-canvas {
  width: 100%;
  height: 100%;
  display: block;
  position: relative;
  z-index: 2;
}

.crash-overlay {
  position: absolute;
  top: 0.8rem;
  right: 0.8rem;
  border: 1px solid rgba(166, 203, 255, 0.44);
  border-radius: 10px;
  background: rgba(11, 23, 50, 0.72);
  padding: 0.44rem 0.62rem;
  display: grid;
  gap: 0.06rem;
  justify-items: end;
  z-index: 3;
}

.crash-overlay span {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #a7c5eb;
  font-size: 0.64rem;
}

.crash-overlay strong {
  color: #b8e8ff;
  font-family: "Sora", "Segoe UI", sans-serif;
  font-size: 1.22rem;
  text-shadow: 0 0 18px rgba(30, 200, 255, 0.45);
}

.crash-timer {
  position: absolute;
  left: 0.8rem;
  right: 0.8rem;
  bottom: 0.8rem;
  border: 1px solid rgba(166, 203, 255, 0.42);
  border-radius: 10px;
  background: rgba(9, 19, 41, 0.76);
  padding: 0.42rem 0.5rem;
  z-index: 3;
}

.crash-timer-head {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  align-items: center;
}

.crash-timer-head span {
  color: #9ec2eb;
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
}

.crash-timer-head strong {
  color: #d8edff;
  font-family: "Sora", "Segoe UI", sans-serif;
  font-size: 0.9rem;
}

.crash-round-crash {
  border: 1px solid rgba(169, 205, 255, 0.48);
  border-radius: 999px;
  padding: 0.2rem 0.45rem;
  color: #d3e7ff;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.crash-x-strip {
  margin-top: 0.56rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #122548;
  padding: 0.44rem 0.52rem;
  display: grid;
  gap: 0.34rem;
}

.crash-x-strip > span {
  color: #aecaee;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
}

.crash-x-history {
  display: flex;
  flex-wrap: wrap;
  gap: 0.28rem;
  min-height: 28px;
}

.crash-x-chip {
  border: 1px solid rgba(166, 203, 255, 0.42);
  border-radius: 999px;
  background: rgba(14, 34, 64, 0.92);
  color: #d5ebff;
  font-family: "Sora", "Segoe UI", sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 0.16rem 0.44rem;
}

.crash-x-chip.hot {
  border-color: rgba(78, 223, 166, 0.54);
  color: #c7f7e2;
  background: rgba(40, 116, 94, 0.45);
}

.crash-feed-enter {
  animation: crashFeedIn 360ms ease;
}

.crash-panel .row-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.toggle-row {
  margin-top: 0.62rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #c7dbfa;
  font-size: 0.82rem;
  font-weight: 700;
}

.toggle-row input {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: #3be1ff;
}

.input-disabled {
  opacity: 0.56;
}

.dice-stage {
  min-height: 372px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background:
    radial-gradient(520px circle at 50% -18%, rgba(51, 211, 154, 0.2), transparent 58%),
    radial-gradient(520px circle at 100% 0%, rgba(239, 112, 140, 0.2), transparent 60%),
    linear-gradient(180deg, #102247, #0f1c38);
  display: grid;
  place-items: center;
  padding: 0.8rem;
}

.roll-ring {
  --dice-win-start: 0%;
  --dice-win-end: 50%;
  width: 250px;
  aspect-ratio: 1;
  border-radius: 999px;
  border: 2px solid rgba(178, 216, 255, 0.74);
  position: relative;
  background:
    radial-gradient(circle at 50% 50%, rgba(10, 21, 43, 0.94) 54%, transparent 55%),
    conic-gradient(
      from -90deg,
      rgba(239, 112, 140, 0.9) 0 var(--dice-win-start),
      rgba(52, 224, 156, 0.97) var(--dice-win-start) var(--dice-win-end),
      rgba(239, 112, 140, 0.9) var(--dice-win-end) 100%
    );
  box-shadow:
    inset 0 0 34px rgba(30, 200, 255, 0.28),
    0 0 34px rgba(30, 200, 255, 0.24);
  contain: paint;
}

.roll-ring.rolling {
  box-shadow:
    inset 0 0 30px rgba(44, 210, 255, 0.24),
    0 0 30px rgba(44, 210, 255, 0.24);
}

.ring-zone {
  position: absolute;
  z-index: 5;
  border: 1px solid rgba(170, 204, 249, 0.44);
  border-radius: 9px;
  padding: 0.24rem 0.36rem;
  font-size: 0.62rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 700;
  white-space: nowrap;
  text-align: center;
}

.ring-zone.zone-left {
  left: -6px;
  top: 14px;
}

.ring-zone.zone-right {
  right: -6px;
  top: 14px;
}

.ring-zone.is-win {
  border-color: rgba(78, 223, 166, 0.54);
  color: #b7f5d8;
  background: rgba(51, 211, 154, 0.24);
}

.ring-zone.is-risk {
  border-color: rgba(239, 112, 140, 0.5);
  color: #ffd0da;
  background: rgba(239, 112, 140, 0.24);
}

.ring-pointer {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 4px;
  height: 44%;
  transform-origin: 50% 100%;
  transform: translate3d(-50%, -100%, 0) rotate(180deg);
  background: linear-gradient(180deg, #ffd37f, rgba(255, 180, 86, 0.08));
  box-shadow: 0 0 10px rgba(255, 203, 116, 0.44);
  transition: none;
  z-index: 4;
  will-change: transform;
  backface-visibility: hidden;
}

.roll-ring.rolling .ring-pointer {
  filter: none;
}

.ring-core {
  position: absolute;
  inset: 31%;
  border-radius: 999px;
  border: 1px solid rgba(188, 220, 255, 0.62);
  background: rgba(10, 20, 43, 0.93);
  display: grid;
  place-items: center;
  text-align: center;
  z-index: 5;
}

.ring-core span {
  font-family: "Sora", "Segoe UI", sans-serif;
  font-size: 1.2rem;
  color: #dcf0ff;
}

.ring-core small {
  color: #a7c4e9;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.dice-panel {
  display: grid;
  gap: 0.42rem;
}

.dice-direction-grid {
  margin-top: 0.42rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.4rem;
}

.dice-direction {
  border: 1px solid #496da8;
  border-radius: 10px;
  background: #16305c;
  color: #dcecff;
  font-weight: 700;
  cursor: pointer;
  padding: 0.52rem 0.54rem;
  display: grid;
  gap: 0.12rem;
  text-align: left;
}

.dice-direction span {
  font-size: 0.71rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #b9d3f2;
}

.dice-direction strong {
  font-family: "Sora", "Segoe UI", sans-serif;
  font-size: 0.94rem;
}

.dice-direction.is-active {
  border-color: transparent;
  background: linear-gradient(135deg, #9ce7ff, #8ab8ff);
  color: #071327;
}

.dice-direction.is-active span {
  color: #27486b;
}

.dice-direction:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.dice-roll-btn {
  width: 100%;
  margin-top: 0.3rem;
}

.doors-stage {
  min-height: 0;
  width: 100%;
  max-width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  background:
    radial-gradient(470px circle at 50% -8%, rgba(30, 200, 255, 0.16), transparent 56%),
    radial-gradient(520px circle at 100% 0%, rgba(255, 179, 71, 0.12), transparent 60%),
    linear-gradient(180deg, #102247, #0f1c38);
  padding: 0.7rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: 224px;
  justify-items: stretch;
  align-items: stretch;
  gap: 0.55rem;
  perspective: 1100px;
  transform-style: preserve-3d;
  overflow: clip;
  contain: layout paint;
}

.doors-stage[data-difficulty="hard"] {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.play-door {
  appearance: none;
  display: block;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  height: 100%;
  min-height: 0;
  border: 1px solid rgba(171, 206, 255, 0.52);
  border-radius: 10px;
  background: linear-gradient(180deg, #173564, #112645);
  padding: 0;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  box-shadow: inset 0 0 0 1px rgba(195, 221, 255, 0.08);
  transform: translateZ(0);
  transform-style: flat;
  isolation: isolate;
  contain: layout paint;
  --open-delay: 0ms;
  transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.play-door::before {
  content: "";
  position: absolute;
  top: 10%;
  bottom: 10%;
  left: 50%;
  width: 2px;
  transform: translateX(-50%);
  background: linear-gradient(180deg, transparent, rgba(232, 247, 255, 0.7), transparent);
  opacity: 0.4;
  filter: blur(0.4px);
  z-index: 3;
  transition: opacity 420ms ease;
}

.play-door:hover {
  transform: translateY(-3px);
  border-color: rgba(206, 228, 255, 0.66);
}

.play-door .door-portal {
  position: absolute;
  inset: 11% 10%;
  border-radius: 9px;
  background:
    radial-gradient(ellipse at 50% 24%, rgba(119, 226, 255, 0.55), rgba(32, 111, 255, 0.08) 62%),
    linear-gradient(180deg, rgba(8, 23, 53, 0.92), rgba(7, 13, 27, 0.95));
  opacity: 0.18;
  transform: scale(0.95);
  transition: opacity 260ms ease var(--open-delay), transform 260ms ease var(--open-delay);
}

.play-door .door-frame {
  position: absolute;
  inset: 9% 8%;
  border-radius: 10px;
  border: 1px solid rgba(193, 220, 255, 0.34);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.05),
    0 0 0 1px rgba(113, 172, 246, 0.2);
}

.play-door .door-leaf {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 50%;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.13) 0 2px, transparent 2px 100%),
    linear-gradient(180deg, #3b629e, #223b63 58%, #172b4a);
  transition: transform 620ms cubic-bezier(0.2, 0.82, 0.2, 1) var(--open-delay);
  z-index: 1;
  backface-visibility: hidden;
}

.play-door .door-leaf::before {
  content: "";
  position: absolute;
  inset: 9% 12%;
  border-radius: 8px;
  border: 1px solid rgba(218, 236, 255, 0.24);
}

.play-door .door-leaf::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 217, 158, 0.92);
  box-shadow: 0 0 9px rgba(255, 206, 126, 0.6);
  transform: translateY(-50%);
}

.play-door .door-leaf.leaf-left {
  left: 0;
  transform-origin: left center;
  border-right: 1px solid rgba(178, 211, 255, 0.56);
}

.play-door .door-leaf.leaf-left::after {
  right: 10px;
}

.play-door .door-leaf.leaf-right {
  right: 0;
  transform-origin: right center;
  border-left: 1px solid rgba(178, 211, 255, 0.56);
}

.play-door .door-leaf.leaf-right::after {
  left: 10px;
}

.play-door .door-core {
  position: absolute;
  left: 50%;
  bottom: 12%;
  transform: translateX(-50%);
  min-width: 72px;
  border-radius: 8px;
  border: 1px solid rgba(255, 179, 71, 0.48);
  background: rgba(255, 179, 71, 0.12);
  display: grid;
  place-items: center;
  color: #f8d18f;
  font-weight: 700;
  font-size: 0.82rem;
  text-shadow: 0 0 12px rgba(255, 179, 71, 0.4);
  z-index: 2;
  transition: opacity 240ms ease var(--open-delay), transform 240ms ease var(--open-delay);
}

.play-door .door-core::after {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #f4d4a1;
  box-shadow: 0 0 10px rgba(255, 210, 148, 0.55);
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
}

.play-door.picked {
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.14),
    0 0 0 1px rgba(134, 193, 255, 0.45),
    0 0 22px rgba(106, 188, 255, 0.28);
}

.play-door.open .door-leaf.leaf-left {
  transform: perspective(900px) rotateY(-114deg);
}

.play-door.open .door-leaf.leaf-right {
  transform: perspective(900px) rotateY(114deg);
}

.play-door.open::before {
  opacity: 0;
}

.play-door.open .door-portal {
  opacity: 1;
  transform: scale(1);
}

.play-door.open .door-core {
  transform: translateX(-50%) translateY(-2px);
}

.play-door.safe {
  border-color: rgba(51, 211, 154, 0.64);
}

.play-door.safe .door-portal {
  background:
    radial-gradient(ellipse at 50% 24%, rgba(94, 255, 191, 0.68), rgba(57, 202, 135, 0.15) 62%),
    linear-gradient(180deg, rgba(5, 29, 30, 0.88), rgba(4, 18, 20, 0.95));
}

.play-door.safe .door-core {
  border-color: rgba(51, 211, 154, 0.62);
  background: rgba(51, 211, 154, 0.18);
  color: #a8f0d2;
  text-shadow: 0 0 10px rgba(51, 211, 154, 0.32);
  animation: doorPulseSafe 0.6s ease;
}

.play-door.bomb {
  border-color: rgba(239, 112, 140, 0.68);
}

.play-door.bomb .door-portal {
  background:
    radial-gradient(ellipse at 50% 24%, rgba(255, 147, 169, 0.74), rgba(239, 112, 140, 0.2) 62%),
    linear-gradient(180deg, rgba(35, 10, 25, 0.9), rgba(21, 7, 15, 0.96));
}

.play-door.bomb .door-core {
  border-color: rgba(239, 112, 140, 0.62);
  background: rgba(239, 112, 140, 0.2);
  color: #ffc2cf;
  text-shadow: 0 0 10px rgba(239, 112, 140, 0.36);
  animation: doorPulseBomb 0.6s ease;
}

.door-difficulty {
  margin-top: 0.35rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.34rem;
}

.door-diff-btn {
  border: 1px solid #486b9f;
  border-radius: 9px;
  background: #17315b;
  color: #d6e8ff;
  font-weight: 700;
  font-size: 0.8rem;
  padding: 0.42rem 0.45rem;
  cursor: pointer;
}

.door-diff-btn.is-active {
  border-color: transparent;
  background: linear-gradient(135deg, #9fe7ff, #8bb9ff);
  color: #09172c;
}

.door-diff-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.slot-stage {
  min-height: 392px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background:
    radial-gradient(560px circle at 48% -18%, rgba(125, 198, 255, 0.28), transparent 58%),
    radial-gradient(420px circle at 102% -2%, rgba(255, 201, 122, 0.2), transparent 58%),
    linear-gradient(176deg, #1a2a45, #121d32 62%, #0d1628);
  padding: 0.64rem;
}

.slot-machine-shell {
  border: 1px solid rgba(196, 220, 249, 0.5);
  border-radius: 12px;
  background:
    radial-gradient(380px circle at 50% -24%, rgba(225, 241, 255, 0.14), transparent 58%),
    rgba(9, 16, 30, 0.84);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  padding: 0.5rem;
  display: grid;
  gap: 0.44rem;
}

.slot-machine-head,
.slot-machine-foot {
  border: 1px solid rgba(142, 190, 255, 0.44);
  border-radius: 9px;
  background: rgba(20, 41, 82, 0.68);
  padding: 0.36rem 0.5rem;
  display: flex;
  justify-content: space-between;
  gap: 0.56rem;
  align-items: center;
  flex-wrap: wrap;
}

.slot-machine-head span,
.slot-machine-foot span {
  color: #bad2f4;
  font-size: 0.78rem;
}

.slot-machine-head strong {
  font-family: "Sora", "Segoe UI", sans-serif;
  color: #f9d18a;
  text-shadow: 0 0 14px rgba(255, 195, 103, 0.45);
}

.slot-window {
  border: 1px solid rgba(165, 204, 255, 0.44);
  border-radius: 10px;
  background:
    radial-gradient(440px circle at 50% -10%, rgba(30, 200, 255, 0.14), transparent 60%),
    linear-gradient(180deg, #102043, #0a162e);
  padding: 0.36rem;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.34rem;
  overflow: hidden;
  position: relative;
}

.slot-window::after {
  content: "";
  position: absolute;
  left: 0.36rem;
  right: 0.36rem;
  top: 50%;
  height: 1px;
  transform: translateY(-0.5px);
  background: linear-gradient(90deg, rgba(255, 225, 166, 0), rgba(255, 225, 166, 0.74), rgba(255, 225, 166, 0));
  pointer-events: none;
  z-index: 4;
}

.slot-reel {
  height: 276px;
  border: 1px solid rgba(158, 197, 250, 0.42);
  border-radius: 9px;
  background:
    linear-gradient(180deg, rgba(22, 36, 59, 0.96), rgba(11, 21, 38, 0.96));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    inset 0 -10px 24px rgba(0, 0, 0, 0.26);
  overflow: hidden;
  position: relative;
}

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

.slot-reel::before {
  top: 0;
  height: 52px;
  background: linear-gradient(180deg, rgba(10, 19, 40, 0.96), rgba(10, 19, 40, 0));
}

.slot-reel::after {
  bottom: 0;
  height: 52px;
  background: linear-gradient(180deg, rgba(10, 19, 40, 0), rgba(10, 19, 40, 0.96));
}

.slot-icons {
  position: relative;
  top: 0;
  will-change: transform;
}

.slot-symbol {
  height: 92px;
  border-bottom: 1px solid rgba(167, 203, 251, 0.2);
  display: grid;
  place-items: center;
  text-align: center;
  font-family: "Sora", "Segoe UI", "Segoe UI Emoji", "Apple Color Emoji", "Noto Color Emoji", sans-serif;
  font-size: 1.02rem;
  letter-spacing: 0;
  font-weight: 700;
}

.slot-symbol em {
  font-style: normal;
  text-transform: none;
  line-height: 1;
  font-size: 1.92rem;
  text-shadow: 0 0 14px rgba(211, 231, 255, 0.28);
}

.slot-symbol.seven em,
.slot-symbol.crown em,
.slot-symbol.diamond em {
  text-shadow: 0 0 18px rgba(255, 213, 143, 0.52);
}

.slot-symbol.seven em {
  color: #ffd48a;
}

.slot-symbol.diamond em {
  color: #93defe;
}

.slot-symbol.crown em {
  color: #ffe4bf;
}

.slot-symbol.bar em {
  color: #d6dff7;
}

.slot-symbol.bolt em {
  color: #ffe299;
}

.slot-panel {
  display: grid;
  gap: 0.42rem;
}

.slot-rtp-presets {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.3rem;
}

.slot-chip-btn {
  border: 1px solid #446494;
  border-radius: 9px;
  background: #16315d;
  color: #d5e7ff;
  font-size: 0.74rem;
  font-weight: 700;
  padding: 0.38rem 0.35rem;
  cursor: pointer;
  transition: border-color 140ms ease, background 140ms ease, color 140ms ease;
}

.slot-chip-btn:hover {
  border-color: rgba(183, 218, 255, 0.68);
}

.slot-chip-btn.is-active {
  border-color: transparent;
  background: linear-gradient(135deg, #9fe7ff, #8bb9ff);
  color: #081429;
}

.slot-chip-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.slot-math {
  margin-top: 0;
  font-size: 0.76rem;
  line-height: 1.35;
}

.slot-panel .row-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.mines-stage {
  min-height: 392px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background:
    radial-gradient(520px circle at 50% -12%, rgba(72, 140, 255, 0.2), transparent 58%),
    radial-gradient(380px circle at 100% 0%, rgba(239, 112, 140, 0.12), transparent 58%),
    linear-gradient(180deg, #102247, #0e1832);
  padding: 0.64rem;
}

.mines-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.4rem;
}

.mines-cell {
  appearance: none;
  aspect-ratio: 1;
  border: 1px solid rgba(172, 209, 255, 0.56);
  border-radius: 10px;
  background: linear-gradient(180deg, #1a3a6e, #12284d);
  cursor: pointer;
  color: #e6f0ff;
  font-family: "Sora", "Segoe UI", sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  transition: transform 130ms ease, border-color 130ms ease;
}

.mines-cell:hover {
  transform: translateY(-2px);
  border-color: rgba(203, 228, 255, 0.76);
}

.mines-cell.safe {
  border-color: rgba(51, 211, 154, 0.76);
  background: linear-gradient(180deg, rgba(51, 211, 154, 0.32), rgba(19, 74, 64, 0.74));
  color: #d3f8e8;
}

.mines-cell.mine {
  border-color: rgba(239, 112, 140, 0.78);
  background: linear-gradient(180deg, rgba(239, 112, 140, 0.42), rgba(89, 33, 49, 0.82));
  color: #ffe2e8;
}

.mines-cell.dim {
  opacity: 0.45;
}

.mines-panel {
  display: grid;
  gap: 0.42rem;
}

.cars-stage {
  height: 420px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background:
    radial-gradient(560px circle at 50% -18%, rgba(166, 207, 248, 0.24), transparent 58%),
    radial-gradient(460px circle at 100% -4%, rgba(255, 212, 151, 0.16), transparent 58%),
    linear-gradient(180deg, #222f41, #141d2a 72%, #101722);
  overflow: hidden;
  position: relative;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07);
}

.cars-stage:fullscreen {
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  max-width: none;
  border: none;
  border-radius: 0;
  margin: 0;
}

.cars-stage:fullscreen .cars-overlay {
  top: 1rem;
  left: 1rem;
  background: rgba(6, 15, 32, 0.72);
}

#cars-canvas {
  width: 100%;
  height: 100%;
  display: block;
  touch-action: none;
}

.cars-overlay {
  position: absolute;
  top: 0.8rem;
  left: 0.8rem;
  border: 1px solid rgba(184, 214, 244, 0.54);
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(11, 20, 34, 0.85), rgba(9, 15, 27, 0.78));
  padding: 0.44rem 0.56rem;
  display: grid;
  gap: 0.1rem;
  z-index: 3;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.cars-overlay.is-reward {
  border-color: rgba(171, 255, 226, 0.82);
  box-shadow: 0 0 24px rgba(130, 246, 212, 0.32);
  transform: translateY(-1px) scale(1.01);
}

.cars-overlay span {
  color: #bdd3ed;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.cars-overlay strong {
  color: #edf5ff;
  font-family: "Sora", "Segoe UI", sans-serif;
  font-size: 0.9rem;
}

.cars-panel {
  display: grid;
  gap: 0.42rem;
}

.cars-touch-controls {
  margin-top: 0.3rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.34rem;
}

.cars-touch-controls .btn {
  width: 100%;
}

.cars-touch-controls .btn.is-holding {
  border-color: rgba(165, 237, 213, 0.82);
  box-shadow: 0 0 0 1px rgba(165, 237, 213, 0.28) inset;
  transform: translateY(1px) scale(0.995);
}

.cars-touch-hint {
  margin-top: 0.06rem;
  font-size: 0.74rem;
}

.cars-difficulty {
  margin-top: 0.18rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.34rem;
}

.cars-diff-btn {
  border: 1px solid #486b9f;
  border-radius: 9px;
  background: #17315b;
  color: #d6e8ff;
  font-weight: 700;
  font-size: 0.78rem;
  padding: 0.42rem 0.44rem;
  cursor: pointer;
}

.cars-diff-btn.is-active {
  border-color: transparent;
  background: linear-gradient(135deg, #9fe7ff, #8bb9ff);
  color: #09172c;
}

.cars-diff-btn:disabled {
  opacity: 0.52;
  cursor: not-allowed;
}

.field {
  display: block;
  margin-top: 0.62rem;
  color: #bad1f0;
  font-size: 0.84rem;
  font-weight: 600;
}

input[type="number"],
input[type="search"],
input[type="text"],
input[type="email"],
input[type="password"],
input[type="range"] {
  width: 100%;
  margin-top: 0.33rem;
  border: 1px solid #45649a;
  border-radius: 9px;
  background: #112549;
  color: var(--text);
  padding: 0.53rem 0.6rem;
}

input[type="range"] {
  padding: 0;
  height: 2rem;
}

input::placeholder {
  color: #89a4ca;
}

input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  border-color: rgba(175, 220, 255, 0.84);
  box-shadow: 0 0 0 3px rgba(122, 194, 255, 0.22);
}

.row-actions {
  margin-top: 0.68rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.42rem;
}

.row-actions .btn.is-active {
  border-color: transparent;
  color: #071327;
  background: linear-gradient(135deg, #92e9ff, var(--accent));
}

.kv {
  margin-top: 0.62rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #132850;
  padding: 0.5rem 0.58rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.56rem;
}

.kv span {
  color: #b7cdf0;
  font-size: 0.82rem;
}

.kv strong {
  font-family: "Sora", "Segoe UI", sans-serif;
}

.status {
  margin-top: 0.62rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #122548;
  color: #d0dff2;
  padding: 0.44rem 0.56rem;
  font-size: 0.83rem;
}

.status.win {
  border-color: rgba(51, 211, 154, 0.6);
  color: #aaf1d3;
}

.status.loss {
  border-color: rgba(239, 112, 140, 0.56);
  color: #ffc1ce;
}

.subhead {
  margin-top: 0.72rem;
  font-size: 0.92rem;
}

.history-list {
  margin: 0.44rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.32rem;
}

.history-list li {
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #122548;
  color: #d2e1f2;
  font-size: 0.8rem;
  padding: 0.36rem 0.48rem;
}

.history-list li.win {
  border-color: rgba(51, 211, 154, 0.58);
}

.history-list li.loss {
  border-color: rgba(239, 112, 140, 0.54);
}

.crypto-deposit-item {
  display: grid;
  gap: 0.26rem;
}

.crypto-deposit-item.tone-ok {
  border-color: rgba(94, 212, 156, 0.56);
  background: linear-gradient(180deg, rgba(19, 51, 58, 0.82), rgba(15, 39, 48, 0.82));
}

.crypto-deposit-item.tone-warn {
  border-color: rgba(236, 182, 102, 0.58);
  background: linear-gradient(180deg, rgba(58, 44, 18, 0.72), rgba(44, 33, 14, 0.72));
}

.crypto-deposit-item.tone-risk {
  border-color: rgba(236, 125, 153, 0.56);
  background: linear-gradient(180deg, rgba(60, 22, 38, 0.74), rgba(43, 18, 31, 0.74));
}

.crypto-deposit-line {
  font-weight: 700;
  letter-spacing: 0.01em;
}

.crypto-deposit-address,
.crypto-deposit-meta {
  overflow-wrap: anywhere;
}

.crypto-deposit-meta {
  font-size: 0.72rem;
}

.crypto-status-timeline {
  margin: 0.06rem 0 0;
  padding: 0 0 0 1rem;
  display: grid;
  gap: 0.14rem;
  font-size: 0.7rem;
  color: #afc7de;
}

.crypto-status-timeline li {
  border: 0;
  background: transparent;
  border-radius: 0;
  margin: 0;
  padding: 0;
  color: inherit;
  font-size: inherit;
}

.crypto-status-timeline li::marker {
  color: rgba(167, 200, 228, 0.74);
}

.crypto-deposit-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.28rem;
}

.crypto-deposit-actions .btn {
  padding: 0.24rem 0.44rem;
  font-size: 0.66rem;
}

/* Sports */
.grid-two {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
}

.sports-layout {
  align-items: start;
}

.bet-mode-switch {
  margin-top: 0.56rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.34rem;
}

.mode-btn {
  border: 1px solid #46689f;
  border-radius: 8px;
  background: #17315c;
  color: #d6e7fd;
  font-weight: 700;
  padding: 0.4rem;
  cursor: pointer;
}

.mode-btn.is-active {
  border-color: transparent;
  background: linear-gradient(135deg, #9ce7ff, #89b8ff);
  color: #08162b;
}

.match-list {
  margin-top: 0.56rem;
  display: grid;
  gap: 0.48rem;
}

.match-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #122548;
  padding: 0.56rem;
  display: grid;
  gap: 0.43rem;
}

.match-card p {
  margin: 0.2rem 0 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.odds-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.34rem;
}

.odd-btn {
  border: 1px solid #48679d;
  border-radius: 8px;
  background: #17315e;
  color: #e4efff;
  padding: 0.39rem 0.4rem;
  font-weight: 700;
  cursor: pointer;
}

.odd-btn:hover {
  border-color: #6e92ce;
}

.odd-btn.selected {
  border-color: transparent;
  background: linear-gradient(135deg, #9fe7ff, #8ab7ff);
  color: #071426;
}

.slip-card {
  position: sticky;
  top: 78px;
}

.slip-items {
  margin: 0.52rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.32rem;
}

.slip-items li {
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #122548;
  color: #d3e2f5;
  font-size: 0.81rem;
  padding: 0.36rem 0.46rem;
}

.summary-row {
  margin-top: 0.54rem;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #122548;
  padding: 0.42rem 0.5rem;
  display: flex;
  justify-content: space-between;
  gap: 0.58rem;
}

.summary-row span {
  color: #bdd2f2;
  font-size: 0.84rem;
}

.summary-row strong {
  font-size: 0.88rem;
}

.footer {
  border-top: 1px solid var(--line);
  background: rgba(7, 11, 21, 0.9);
}

.footer-inner {
  padding: 0.84rem 0 1.1rem;
  display: grid;
  gap: 0.14rem;
}

.footer-inner p {
  margin: 0;
  color: #90a7ca;
  font-size: 0.79rem;
}

.win-splash {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  pointer-events: none;
  opacity: 0;
  z-index: 1000;
  transition: opacity 300ms cubic-bezier(0.22, 0.61, 0.36, 1);
  will-change: opacity;
}

.win-splash.is-show {
  opacity: 1;
}

.win-splash.is-hide {
  opacity: 0;
}

.win-splash-plate {
  position: relative;
  min-width: 220px;
  max-width: min(460px, 92vw);
  border: 1px solid rgba(154, 219, 255, 0.66);
  border-radius: 15px;
  background:
    radial-gradient(180px circle at 50% 0%, rgba(103, 238, 183, 0.28), transparent 70%),
    linear-gradient(180deg, rgba(12, 36, 68, 0.96), rgba(8, 24, 46, 0.96));
  box-shadow:
    0 22px 56px rgba(1, 9, 24, 0.58),
    0 0 40px rgba(60, 222, 171, 0.25);
  padding: 0.8rem 1.3rem 0.86rem;
  display: grid;
  gap: 0.18rem;
  justify-items: center;
  transform: translateY(16px) scale(0.94);
  will-change: transform, opacity;
}

.win-splash.is-show .win-splash-plate {
  animation: winSplashPop 1850ms cubic-bezier(0.17, 0.84, 0.18, 1);
}

.win-splash.is-hide .win-splash-plate {
  animation: none;
  opacity: 0;
  transform: translateY(-2px) scale(0.99);
  transition: transform 280ms ease, opacity 260ms ease;
}

.win-splash-badge {
  color: #8fd3ff;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.66rem;
  font-weight: 700;
}

.win-splash-amount {
  color: #e8fbff;
  font-family: "Sora", "Segoe UI", sans-serif;
  font-size: 1.58rem;
  text-shadow: 0 0 22px rgba(88, 233, 176, 0.35);
}

.win-splash-detail {
  color: #b8d7f6;
  font-size: 0.82rem;
}

.win-splash-sparks {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
}

.win-splash-spark {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 30%, #f2ffb6, #4de2b4);
  opacity: 0;
  transform: translate(0, 0) scale(0.5);
}

.win-splash.is-show .win-splash-spark {
  animation: winSplashSpark 560ms ease-out var(--delay) both;
}

.win-splash.is-hide .win-splash-spark {
  animation: none;
  opacity: 0;
}

@keyframes origCrashSkylinePulse {
  0%,
  100% {
    transform: translateY(0);
    opacity: 0.82;
  }
  50% {
    transform: translateY(-2px);
    opacity: 0.98;
  }
}

@keyframes origCrashHeliFly {
  0% {
    transform: translate(0, 0) scale(0.94) rotate(-3deg);
  }
  56% {
    transform: translate(62px, -30px) scale(1) rotate(-7deg);
  }
  100% {
    transform: translate(112px, -58px) scale(0.9) rotate(-11deg);
  }
}

@keyframes origCrashTrail {
  0% {
    transform: translate(0, 0) scaleX(0.86);
    opacity: 0.32;
  }
  56% {
    transform: translate(60px, -30px) scaleX(1);
    opacity: 0.62;
  }
  100% {
    transform: translate(108px, -58px) scaleX(0.72);
    opacity: 0.12;
  }
}

@keyframes origCrashRotor {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes origCrashBeacon {
  0%,
  100% {
    opacity: 0.35;
  }
  50% {
    opacity: 1;
  }
}

@keyframes origDiceNeedle {
  0% {
    transform: translate(-50%, -100%) rotate(18deg);
  }
  50% {
    transform: translate(-50%, -100%) rotate(244deg);
  }
  100% {
    transform: translate(-50%, -100%) rotate(18deg);
  }
}

@keyframes origDoorIdle {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-3px);
  }
}

@keyframes origDoorFocus {
  0%,
  100% {
    transform: translateY(0) scale(1);
    filter: brightness(1);
  }
  50% {
    transform: translateY(-4px) scale(1.02);
    filter: brightness(1.1);
  }
}

@keyframes origSlotBob {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(4px);
  }
}

@keyframes origRoadDash {
  0% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(16px);
  }
}

@keyframes origTrafficFloatA {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(5px);
  }
  100% {
    transform: translateY(0);
  }
}

@keyframes origTrafficFloatB {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(4px);
  }
  100% {
    transform: translateY(0);
  }
}

@keyframes origPlayerLane {
  0%,
  100% {
    transform: translateX(-50%);
  }
  35% {
    transform: translateX(calc(-50% - 8px));
  }
  68% {
    transform: translateX(calc(-50% + 10px));
  }
}

@keyframes crashPulse {
  0% {
    transform: scale(0.9) translateY(5%);
    opacity: 0.82;
  }
  50% {
    transform: scale(1) translateY(0);
    opacity: 1;
  }
  100% {
    transform: scale(0.93) translateY(3%);
    opacity: 0.84;
  }
}

@keyframes thumbRocketFly {
  0%,
  100% {
    transform: translateX(-50%) translateY(0) scale(0.94);
  }
  50% {
    transform: translateX(-50%) translateY(-14px) scale(1.06);
  }
}

@keyframes thumbNeedleSpin {
  0% {
    transform: translate(-50%, -100%) rotate(18deg);
  }
  50% {
    transform: translate(-50%, -100%) rotate(248deg);
  }
  100% {
    transform: translate(-50%, -100%) rotate(18deg);
  }
}

@keyframes thumbDoorLeft {
  0%,
  100% {
    transform: perspective(420px) rotateY(0deg);
  }
  48% {
    transform: perspective(420px) rotateY(-72deg);
  }
}

@keyframes thumbDoorRight {
  0%,
  100% {
    transform: perspective(420px) rotateY(0deg);
  }
  48% {
    transform: perspective(420px) rotateY(72deg);
  }
}

@keyframes thumbSlotBob {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(5px);
  }
}

@keyframes thumbLaneFlow {
  0% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(16px);
  }
}

@keyframes previewScanline {
  0%,
  100% {
    transform: translateY(-120%);
    opacity: 0;
  }
  25% {
    opacity: 0.7;
  }
  55% {
    transform: translateY(120%);
    opacity: 0.4;
  }
  75% {
    opacity: 0;
  }
}

@keyframes thumbTrafficA {
  0% {
    transform: translateY(-4px);
  }
  100% {
    transform: translateY(56px);
  }
}

@keyframes thumbTrafficB {
  0% {
    transform: translateY(-16px);
  }
  100% {
    transform: translateY(54px);
  }
}

@keyframes thumbPlayerDodge {
  0%,
  100% {
    transform: translateX(-50%);
  }
  25% {
    transform: translateX(calc(-50% - 9px));
  }
  55% {
    transform: translateX(calc(-50% + 12px));
  }
}

@keyframes pulseRing {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(0.96);
  }
}

@keyframes dicePulse {
  0% {
    opacity: 1;
    filter: brightness(1);
    box-shadow: 0 0 12px rgba(255, 204, 118, 0.62);
  }
  50% {
    opacity: 0.74;
    filter: brightness(1.22);
    box-shadow: 0 0 18px rgba(255, 225, 163, 0.84);
  }
  100% {
    opacity: 1;
    filter: brightness(1);
    box-shadow: 0 0 12px rgba(255, 204, 118, 0.62);
  }
}

@keyframes diceRingFlash {
  0% {
    filter: saturate(1) brightness(1);
    box-shadow:
      inset 0 0 34px rgba(30, 200, 255, 0.28),
      0 0 32px rgba(30, 200, 255, 0.24);
  }
  50% {
    filter: saturate(1.18) brightness(1.08);
    box-shadow:
      inset 0 0 36px rgba(58, 226, 169, 0.34),
      0 0 40px rgba(255, 196, 126, 0.28);
  }
  100% {
    filter: saturate(1) brightness(1);
    box-shadow:
      inset 0 0 34px rgba(30, 200, 255, 0.28),
      0 0 32px rgba(30, 200, 255, 0.24);
  }
}

@keyframes winSplashPop {
  0% {
    transform: translateY(14px) scale(0.92);
    opacity: 0;
  }
  16% {
    transform: translateY(0) scale(1.03);
    opacity: 1;
  }
  60% {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
  100% {
    transform: translateY(-2px) scale(1.01);
    opacity: 1;
  }
}

@keyframes winSplashSpark {
  0% {
    opacity: 0;
    transform: translate(0, 0) scale(0.4);
  }
  18% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translate(var(--sx), var(--sy)) scale(1);
  }
}

@keyframes crashFeedIn {
  0% {
    opacity: 0;
    transform: translateY(8px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes doorLeft {
  0%,
  100% {
    transform: rotateY(0deg);
  }
  48% {
    transform: rotateY(-66deg);
  }
}

@keyframes doorRight {
  0%,
  100% {
    transform: rotateY(0deg);
  }
  48% {
    transform: rotateY(66deg);
  }
}

@keyframes doorPulseSafe {
  0% {
    box-shadow: 0 0 0 rgba(51, 211, 154, 0);
  }
  50% {
    box-shadow: 0 0 24px rgba(51, 211, 154, 0.36);
  }
  100% {
    box-shadow: 0 0 0 rgba(51, 211, 154, 0);
  }
}

@keyframes doorPulseBomb {
  0% {
    box-shadow: 0 0 0 rgba(239, 112, 140, 0);
  }
  50% {
    box-shadow: 0 0 24px rgba(239, 112, 140, 0.42);
  }
  100% {
    box-shadow: 0 0 0 rgba(239, 112, 140, 0);
  }
}

/* Roadshift Rebrand */
:root {
  --bg-0: #1b2634;
  --bg-1: #121a24;
  --panel: #1b2837;
  --panel-2: #192433;
  --panel-3: #223244;
  --line: rgba(160, 186, 213, 0.25);
  --line-strong: rgba(189, 213, 236, 0.46);
  --text: #e7eef8;
  --muted: #b5c1d1;
  --accent: #7bc7ff;
  --accent-2: #4e90c0;
  --warm: #f2c28c;
}

body {
  background:
    radial-gradient(900px circle at 8% -26%, rgba(151, 197, 238, 0.2), transparent 52%),
    radial-gradient(760px circle at 92% -22%, rgba(137, 225, 196, 0.16), transparent 54%),
    radial-gradient(840px circle at 50% 118%, rgba(99, 146, 194, 0.22), transparent 64%),
    linear-gradient(180deg, #202d3d, #141d29 66%, #101721);
}

.clean-card {
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(31, 44, 59, 0.97), rgba(25, 35, 48, 0.98));
  box-shadow:
    0 16px 34px rgba(6, 12, 20, 0.32),
    inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.topbar {
  background: rgba(16, 23, 33, 0.88);
  border-bottom: 1px solid rgba(171, 197, 224, 0.32);
}

.brand-mark {
  width: 30px;
  border-radius: 10px;
  border: 1px solid rgba(163, 191, 220, 0.42);
  background: linear-gradient(180deg, #2b394a, #1a2736);
  box-shadow:
    0 0 18px rgba(124, 193, 242, 0.28),
    0 8px 18px rgba(9, 14, 22, 0.36);
  overflow: hidden;
}

.brand-mark::before {
  content: "";
  position: absolute;
  inset: 4px 9px;
  border-radius: 999px;
  background: linear-gradient(180deg, #5a6f88, #3a4b61);
}

.brand-mark::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 6px;
  bottom: 6px;
  width: 2px;
  transform: translateX(-50%);
  background: repeating-linear-gradient(
    180deg,
    rgba(240, 246, 255, 0.95) 0 4px,
    rgba(240, 246, 255, 0) 4px 8px
  );
}

.brand-word {
  letter-spacing: 0.09em;
  color: #edf4ff;
}

.btn {
  border-radius: 11px;
  color: #0f1d2d;
  background: linear-gradient(135deg, #ffe3b3, #f6c886 56%, #e0ac75);
  box-shadow: 0 8px 16px rgba(10, 16, 26, 0.24);
}

.btn.ghost {
  border-color: rgba(184, 209, 232, 0.46);
  background: rgba(32, 45, 61, 0.82);
}

.rail-link,
.auth-tab,
.dice-direction,
.door-diff-btn,
.cars-diff-btn,
.mode-btn,
.odd-btn,
.slot-chip-btn {
  border-radius: 11px;
  background: rgba(33, 47, 64, 0.82);
}

.rail-link:hover,
.rail-link.is-active {
  background: rgba(166, 195, 225, 0.16);
  border-color: rgba(184, 213, 240, 0.58);
}

.game-card {
  border-radius: 15px;
  background: rgba(31, 45, 62, 0.9);
  box-shadow: 0 10px 24px rgba(7, 13, 21, 0.3);
}

.game-card:hover {
  transform: translateY(-3px) scale(1.008);
}

.mode-visual,
.crash-stage,
.dice-stage,
.doors-stage,
.slot-stage,
.mines-stage,
.cars-stage {
  border-radius: 16px;
  border-color: rgba(168, 194, 220, 0.44);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.04),
    0 14px 30px rgba(8, 13, 22, 0.25);
}

.crash-stage,
.slot-stage,
.mines-stage,
.cars-stage,
.doors-stage,
.dice-stage {
  background:
    radial-gradient(520px circle at 50% -18%, rgba(141, 194, 241, 0.18), transparent 56%),
    radial-gradient(460px circle at 100% 0%, rgba(138, 227, 201, 0.12), transparent 58%),
    linear-gradient(180deg, #202d3d, #141d29 70%, #0f1721);
}

.field,
.kv span,
.status,
.history-list li,
.chat-list li,
.match-card p,
.summary-row span {
  color: #dfe9f5;
}

input[type="number"],
input[type="search"],
input[type="text"],
input[type="email"],
input[type="password"],
input[type="range"] {
  border-color: rgba(171, 197, 222, 0.5);
  background: rgba(24, 36, 50, 0.76);
}

.kv,
.status,
.history-list li,
.match-card,
.auth-panel,
.chat-list li,
.summary-row,
.slip-items li,
.crash-x-strip,
.crash-x-chip {
  background: rgba(24, 35, 49, 0.68);
  border-color: rgba(164, 191, 217, 0.44);
}

.status.win,
.history-list li.win {
  border-color: rgba(145, 239, 202, 0.7);
}

.status.loss,
.history-list li.loss {
  border-color: rgba(242, 168, 181, 0.7);
}

.footer {
  background: rgba(15, 23, 32, 0.9);
  border-top-color: rgba(165, 191, 217, 0.34);
}

.footer-inner p {
  color: #b9c8da;
}

.access-strip {
  display: grid;
  gap: 0.58rem;
}

.access-strip-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.access-strip-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.5rem;
}

.kv.compact {
  padding: 0.48rem 0.56rem;
}

.account-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.62rem;
}

.account-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(16, 28, 41, 0.72);
  padding: 0.62rem;
  display: grid;
  gap: 0.5rem;
}

.account-badge {
  border: 1px solid rgba(170, 206, 236, 0.5);
  border-radius: 999px;
  padding: 0.18rem 0.44rem;
  font-size: 0.72rem;
  font-weight: 700;
  color: #d7e7f8;
}

.level-progress-wrap {
  display: flex;
  align-items: center;
  gap: 0.46rem;
}

.level-progress-track {
  flex: 1;
  height: 9px;
  border-radius: 999px;
  background: rgba(19, 33, 48, 0.9);
  border: 1px solid rgba(156, 188, 216, 0.34);
  overflow: hidden;
}

.level-progress-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #79b4e8, #95e6cb);
}

.crypto-form {
  display: grid;
  gap: 0.38rem;
}

.crypto-grid {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.32rem 0.48rem;
  align-items: center;
}

select {
  border: 1px solid rgba(171, 197, 222, 0.5);
  border-radius: 9px;
  background: rgba(24, 36, 50, 0.76);
  color: var(--text);
  padding: 0.42rem 0.52rem;
}

.admin-shell {
  padding-bottom: 2.2rem;
}

.admin-summary-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.5rem;
}

.admin-control-card {
  display: grid;
  gap: 0.46rem;
}

.admin-control-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.34rem;
}

.admin-login-inline {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 0.34rem;
  align-items: end;
}

.admin-wallet-cell {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.28rem;
  align-items: center;
  min-width: 160px;
}

.admin-wallet-cell input {
  margin-top: 0;
}

.admin-summary-card {
  display: grid;
  gap: 0.2rem;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(16, 28, 42, 0.72);
}

.admin-summary-card span {
  color: var(--muted);
  font-size: 0.75rem;
}

.admin-summary-card strong {
  font-family: "Sora", "Segoe UI", sans-serif;
  font-size: 1rem;
}

.admin-table-card {
  display: grid;
  gap: 0.52rem;
}

.table-wrap {
  overflow: auto;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 780px;
}

.admin-table th,
.admin-table td {
  border-bottom: 1px solid rgba(160, 186, 213, 0.24);
  padding: 0.44rem 0.5rem;
  text-align: left;
  font-size: 0.82rem;
}

.admin-table th {
  color: #bfd1e5;
  font-size: 0.74rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.admin-inline-actions {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.admin-filter-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.4rem;
  align-items: end;
}

.admin-filter-field {
  display: grid;
  gap: 0.2rem;
}

.admin-filter-field span {
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  color: #adc6df;
  text-transform: uppercase;
}

.admin-filter-actions {
  display: flex;
  gap: 0.3rem;
  flex-wrap: wrap;
}

.admin-status-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid rgba(163, 194, 222, 0.35);
  background: rgba(20, 34, 49, 0.72);
  color: #d5e5f5;
  font-size: 0.69rem;
  line-height: 1;
  padding: 0.2rem 0.5rem;
  white-space: nowrap;
}

.admin-status-chip[data-tone="ok"] {
  border-color: rgba(125, 224, 185, 0.56);
  color: #bdf0da;
  background: rgba(20, 55, 44, 0.72);
}

.admin-status-chip[data-tone="warn"] {
  border-color: rgba(247, 206, 125, 0.54);
  color: #ffe3ab;
  background: rgba(63, 47, 20, 0.74);
}

.admin-status-chip[data-tone="risk"] {
  border-color: rgba(247, 142, 121, 0.52);
  color: #ffd0c5;
  background: rgba(66, 33, 32, 0.74);
}

.admin-status-chip[data-tone="muted"] {
  border-color: rgba(157, 177, 198, 0.38);
  color: #b9cbe0;
  background: rgba(25, 36, 50, 0.74);
}

.admin-table tr.is-selected td {
  background: rgba(120, 172, 224, 0.12);
}

.admin-mono {
  font-family: "Consolas", "Menlo", "Monaco", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.01em;
}

.admin-deposit-empty {
  border: 1px dashed rgba(162, 190, 219, 0.32);
  border-radius: 10px;
  padding: 0.7rem;
  color: #b5cae1;
}

.admin-deposit-details {
  display: grid;
  gap: 0.54rem;
}

.admin-deposit-overview {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.4rem;
}

.admin-overview-item {
  border: 1px solid rgba(157, 185, 215, 0.28);
  border-radius: 10px;
  background: rgba(16, 29, 44, 0.68);
  padding: 0.45rem 0.5rem;
  display: grid;
  gap: 0.16rem;
}

.admin-overview-item span {
  color: #a8c0da;
  font-size: 0.67rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.admin-overview-item strong {
  font-size: 0.86rem;
  color: #d7e7f8;
}

.admin-detail-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.5rem;
}

.admin-detail-card {
  border: 1px solid rgba(156, 186, 217, 0.3);
  border-radius: 11px;
  background: rgba(14, 27, 42, 0.74);
  padding: 0.52rem;
  display: grid;
  gap: 0.38rem;
}

.admin-detail-card h3 {
  margin: 0;
  font-size: 0.86rem;
}

.admin-timeline,
.admin-chip-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.28rem;
}

.admin-timeline li {
  border: 1px solid rgba(155, 184, 215, 0.28);
  border-radius: 9px;
  background: rgba(15, 27, 40, 0.72);
  padding: 0.34rem 0.42rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.76rem;
}

.admin-timeline li .muted {
  font-size: 0.68rem;
}

.admin-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.28rem;
}

.admin-chip-list li {
  border: 1px solid rgba(176, 203, 228, 0.38);
  border-radius: 999px;
  background: rgba(19, 34, 51, 0.75);
  color: #d4e6f8;
  font-size: 0.72rem;
  padding: 0.16rem 0.42rem;
}

.admin-keyval {
  display: grid;
  gap: 0.22rem;
}

.admin-keyval-row {
  display: grid;
  grid-template-columns: 128px 1fr;
  gap: 0.44rem;
  font-size: 0.76rem;
}

.admin-keyval-row strong {
  color: #aac3dd;
  font-weight: 600;
}

.admin-action-bar {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.5rem;
  align-items: end;
}

.admin-reason-wrap {
  display: grid;
  gap: 0.22rem;
}

.admin-reason-wrap span {
  color: #afc7de;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.admin-force-wrap {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.78rem;
  color: #bed3e8;
}

.admin-action-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.34rem;
}

.admin-inline-actions select,
.admin-table input[type="number"],
.admin-table input[type="search"],
.admin-table input[type="text"],
.admin-table input[type="date"] {
  min-width: 92px;
  padding: 0.3rem 0.42rem;
  font-size: 0.78rem;
}

.mode-card h3 {
  font-size: 1.12rem;
  letter-spacing: 0.01em;
}

.mode-card:not(.originals-mode-card) .mode-visual {
  border-color: rgba(172, 199, 224, 0.54);
  background:
    radial-gradient(340px circle at 50% -18%, rgba(123, 184, 237, 0.18), transparent 62%),
    linear-gradient(180deg, #132235, #101a2a);
}

.visual-crash .crash-line {
  background: linear-gradient(180deg, rgba(130, 199, 247, 0.42), rgba(72, 127, 198, 0.9));
  filter: drop-shadow(0 0 14px rgba(130, 199, 247, 0.44));
}

.crash-burst {
  position: absolute;
  right: 8%;
  top: 10%;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: radial-gradient(circle at 50% 50%, rgba(255, 236, 189, 0.9), rgba(255, 236, 189, 0));
  animation: crashBurstPulse 2.6s ease-in-out infinite;
}

.preview-ring i {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 2px;
  height: 44%;
  transform-origin: 50% 100%;
  transform: translate(-50%, -100%) rotate(16deg);
  background: linear-gradient(180deg, rgba(245, 220, 162, 0.95), rgba(245, 220, 162, 0));
  animation: thumbNeedleSpin 3.8s cubic-bezier(0.2, 0.74, 0.18, 1) infinite;
}

.slot-preview-window span:nth-child(3) {
  color: #ffe4ad;
}

.cars-preview-track .traffic-car.car-c,
.cars-thumb .traffic-car.car-c {
  left: 54%;
  top: 22%;
  background: linear-gradient(180deg, #ffe1ab, #bd7f3c);
  border-color: rgba(255, 223, 171, 0.74);
  animation: thumbTrafficC 2.35s linear infinite;
}

.thumb-wave {
  left: 9%;
  right: 9%;
  bottom: 13%;
  height: 2px;
  background: linear-gradient(90deg, rgba(168, 210, 255, 0.05), rgba(168, 210, 255, 0.8), rgba(168, 210, 255, 0.05));
  animation: thumbWaveMove 2.2s ease-in-out infinite;
}

.thumb-dice-chip {
  left: 74%;
  top: 24%;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: radial-gradient(circle at 40% 35%, #ffe4bb, #d89f56);
  box-shadow: 0 0 10px rgba(255, 208, 145, 0.46);
}

.chat-block {
  max-height: 520px;
  display: grid;
  gap: 0.42rem;
  grid-template-rows: auto 1fr auto auto auto;
  overflow: hidden;
}

.chat-list {
  max-height: 100%;
  overflow: auto;
  padding-right: 0.12rem;
  padding-bottom: 0.08rem;
  min-height: 0;
  scroll-behavior: smooth;
}

.chat-list li {
  position: relative;
  display: grid;
  gap: 0.28rem;
  border: 1px solid rgba(160, 190, 219, 0.34);
  border-radius: 11px;
  background: linear-gradient(180deg, rgba(24, 37, 52, 0.86), rgba(18, 31, 45, 0.84));
  padding: 0.38rem 0.46rem;
}

.chat-item.is-bot {
  border-color: rgba(141, 212, 187, 0.46);
  background: linear-gradient(180deg, rgba(22, 44, 46, 0.8), rgba(17, 36, 39, 0.8));
}

.chat-item.is-chat-fresh {
  animation: chatMessageIn 360ms cubic-bezier(0.24, 0.76, 0.2, 1) both;
}

.chat-msg-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.42rem;
  color: #afc7df;
  font-size: 0.67rem;
}

.chat-msg-author {
  font-weight: 700;
  letter-spacing: 0.01em;
  color: #e2effc;
}

.chat-msg-time {
  color: #95afca;
  font-variant-numeric: tabular-nums;
}

.chat-msg-text {
  color: #d9e8f9;
  font-size: 0.79rem;
  line-height: 1.42;
  overflow-wrap: anywhere;
}

.chat-msg-reply {
  border-left: 2px solid rgba(157, 201, 240, 0.56);
  padding-left: 0.44rem;
  color: #b5cde5;
  font-size: 0.72rem;
  line-height: 1.35;
}

.chat-msg-badge {
  justify-self: start;
  border: 1px solid rgba(245, 203, 133, 0.62);
  border-radius: 999px;
  background: rgba(77, 58, 27, 0.62);
  color: #f7d9a5;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  line-height: 1;
  text-transform: uppercase;
  padding: 0.16rem 0.34rem;
}

.chat-msg-actions {
  display: flex;
  justify-content: flex-end;
}

.chat-reply-btn {
  border: 1px solid rgba(170, 199, 223, 0.42);
  border-radius: 999px;
  background: rgba(24, 37, 52, 0.84);
  color: #cae0f6;
  font-size: 0.65rem;
  padding: 0.14rem 0.4rem;
  cursor: pointer;
  transition: border-color 150ms ease, background-color 150ms ease, color 150ms ease;
}

.chat-reply-btn:hover,
.chat-reply-btn:focus-visible {
  border-color: rgba(195, 224, 248, 0.74);
  background: rgba(35, 52, 71, 0.9);
  color: #eff7ff;
}

.chat-compose {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.32rem;
  align-items: center;
}

.chat-compose input {
  min-width: 0;
  margin-top: 0;
}

.chat-compose .btn {
  min-height: 38px;
}

.chat-new-indicator {
  justify-self: center;
  border: 1px solid rgba(172, 210, 243, 0.6);
  border-radius: 999px;
  background: rgba(29, 45, 63, 0.9);
  color: #e6f2ff;
  font-size: 0.73rem;
  font-weight: 700;
  line-height: 1;
  padding: 0.26rem 0.58rem;
  cursor: pointer;
  box-shadow: 0 8px 16px rgba(6, 12, 20, 0.28);
  transition: transform 160ms ease, border-color 160ms ease, background-color 160ms ease;
}

.chat-new-indicator:hover,
.chat-new-indicator:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(197, 227, 250, 0.76);
  background: rgba(41, 60, 82, 0.94);
}

.chat-reply-preview {
  border: 1px solid rgba(160, 196, 229, 0.34);
  border-radius: 9px;
  background: rgba(20, 34, 50, 0.78);
  padding: 0.3rem 0.44rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.44rem;
  font-size: 0.72rem;
  color: #bed5ea;
}

.chat-reply-preview button {
  border: none;
  background: transparent;
  color: #acd0f1;
  font-weight: 700;
  cursor: pointer;
}

.chat-compose-feedback {
  min-height: 1.06rem;
  margin: 0;
  color: #b9cee5;
  font-size: 0.72rem;
  line-height: 1.34;
}

.chat-compose-feedback.is-error {
  color: #ffc7d2;
}

.chat-compose-feedback.is-warn {
  color: #ffdca8;
}

.chat-compose-feedback.is-success {
  color: #bff1dc;
}

@keyframes chatMessageIn {
  0% {
    opacity: 0;
    transform: translateY(6px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.auth-page {
  background:
    radial-gradient(940px circle at 8% -24%, rgba(62, 98, 146, 0.22), transparent 54%),
    linear-gradient(180deg, #09111d, #0d1625 68%, #0b1320);
}

.auth-page .app-shell.auth-shell {
  grid-template-columns: 220px 1fr;
}

.auth-page .right-rail {
  display: none;
}

.admin-page {
  background:
    radial-gradient(980px circle at 100% -28%, rgba(71, 109, 158, 0.2), transparent 58%),
    linear-gradient(180deg, #09111d, #0c1523 70%, #0a1220);
}

.auth-shell .clean-card {
  border-radius: 14px;
  border-color: rgba(163, 191, 221, 0.36);
  background: linear-gradient(180deg, rgba(19, 31, 47, 0.94), rgba(14, 24, 37, 0.94));
}

.auth-shell .auth-hub {
  gap: 0.65rem;
}

.auth-shell .auth-tabs {
  gap: 0.44rem;
}

.auth-shell .auth-tab {
  border: 1px solid rgba(153, 185, 218, 0.4);
  border-radius: 10px;
  background: rgba(21, 35, 52, 0.9);
  color: #d6e6f9;
  min-height: 40px;
}

.auth-shell .auth-tab.is-active {
  background: linear-gradient(135deg, #a8e7ff, #85bdff);
  color: #0a1728;
}

.auth-shell .auth-panel,
.auth-shell .account-card {
  border-radius: 12px;
  border: 1px solid rgba(157, 189, 220, 0.38);
  background: rgba(15, 28, 44, 0.88);
}

.auth-shell .auth-form {
  gap: 0.34rem;
}

.auth-shell .field {
  margin-top: 0.44rem;
}

.auth-shell input[type="number"],
.auth-shell input[type="search"],
.auth-shell input[type="text"],
.auth-shell input[type="email"],
.auth-shell input[type="password"],
.auth-shell select {
  border-radius: 10px;
  border-color: rgba(155, 187, 220, 0.48);
  background: rgba(19, 32, 49, 0.96);
  min-height: 40px;
}

.auth-shell .auth-feedback {
  border-radius: 10px;
  background: rgba(17, 31, 48, 0.88);
}

.admin-shell .clean-card {
  border-radius: 14px;
  border-color: rgba(162, 190, 218, 0.34);
  background: linear-gradient(180deg, rgba(20, 32, 48, 0.94), rgba(14, 24, 36, 0.94));
}

.admin-shell .admin-table th,
.admin-shell .admin-table td {
  border-bottom-color: rgba(160, 186, 213, 0.2);
}

.admin-shell input[type="number"],
.admin-shell input[type="search"],
.admin-shell input[type="text"],
.admin-shell input[type="date"],
.admin-shell input[type="email"],
.admin-shell input[type="password"],
.admin-shell select {
  border-radius: 10px;
  border-color: rgba(155, 187, 220, 0.42);
  background: rgba(19, 32, 49, 0.94);
  min-height: 38px;
}

.crash-shell {
  grid-template-columns: 220px 1fr 360px;
}

.crash-shell .right-rail-chat {
  position: sticky;
  top: 76px;
  height: calc(100vh - 90px);
  display: grid;
  align-content: stretch;
}

.chat-block-immersive {
  height: 100%;
  max-height: none;
  grid-template-rows: auto 1fr auto auto auto;
  min-height: 0;
}

.crash-presets {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.3rem;
}

.crash-volatility {
  margin-top: 0.52rem;
  border: 1px solid rgba(167, 198, 224, 0.36);
  border-radius: 11px;
  background: rgba(20, 33, 47, 0.68);
  padding: 0.42rem 0.48rem;
  display: grid;
  gap: 0.34rem;
}

.crash-volatility-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
}

.crash-volatility-head span {
  color: #aec8e4;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.64rem;
  font-weight: 700;
}

.crash-volatility-head strong {
  color: #eef5ff;
  font-family: "Sora", "Segoe UI", sans-serif;
  font-size: 0.78rem;
}

.crash-volatility p {
  margin: 0;
  color: #c8d9eb;
  font-size: 0.73rem;
  line-height: 1.35;
}

.crash-volatility-sync {
  margin: 0;
  color: #bcd3e9;
  font-size: 0.72rem;
  line-height: 1.35;
}

.crash-volatility-controls {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.28rem;
}

.crash-volatility-controls .btn {
  min-height: 34px;
}

.crash-volatility-controls .btn.is-active {
  border-color: rgba(202, 226, 248, 0.72);
  background: linear-gradient(180deg, rgba(60, 83, 107, 0.94), rgba(44, 64, 85, 0.94));
  color: #eef6ff;
}

@keyframes crashBurstPulse {
  0%,
  100% {
    transform: scale(0.76);
    opacity: 0.34;
  }
  50% {
    transform: scale(1.2);
    opacity: 0.86;
  }
}

@keyframes thumbTrafficC {
  0% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(64px);
  }
}

@keyframes thumbWaveMove {
  0%,
  100% {
    opacity: 0.24;
    transform: scaleX(0.82);
  }
  50% {
    opacity: 0.72;
    transform: scaleX(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .promo-slider-track,
  .cars-overlay,
  .slot-icons,
  .win-splash,
  .win-splash-spark,
  .play-door,
  .mines-cell,
  .dice-direction,
  .cars-touch-controls .btn,
  .game-card,
  .promo-slide,
  .promo-dot {
    transition: none !important;
    animation: none !important;
  }
}

@media (max-width: 1240px) {
  .app-shell {
    grid-template-columns: 200px 1fr 270px;
  }

  .crash-shell {
    grid-template-columns: 200px 1fr 320px;
  }

  .admin-summary-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .admin-filter-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .admin-deposit-overview {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-detail-grid {
    grid-template-columns: 1fr;
  }

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

  .lobby-profile-grid {
    grid-template-columns: 1fr 1fr 1.15fr;
  }
}

@media (max-width: 1100px) {
  .app-shell {
    grid-template-columns: 190px 1fr;
  }

  .right-rail {
    display: none;
  }

  .mode-layout,
  .grid-two {
    grid-template-columns: 1fr;
  }

  .bonus-grid {
    grid-template-columns: 1fr;
  }

  .slot-reel {
    height: 234px;
  }

  .slip-card {
    position: static;
  }
}

@media (max-width: 860px) {
  .menu-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 0.35rem);
    left: 3vw;
    right: 3vw;
    display: grid;
    gap: 0.34rem;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #122345;
    padding: 0.58rem;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-6px);
    transition: opacity 130ms ease, transform 130ms ease;
  }

  .site-nav.open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .wallet-chip {
    display: none;
  }

  .top-actions {
    margin-left: auto;
  }

  .audio-controls-panel {
    right: -0.2rem;
    min-width: 204px;
  }

  .app-shell {
    grid-template-columns: 1fr;
  }

  .left-rail,
  .lobby-sidebar {
    grid-template-columns: 1fr 1fr;
  }

  .hero-lobby h1 {
    max-width: none;
  }

   .account-grid {
    grid-template-columns: 1fr;
  }

  .mode-grid,
  .doors-stage {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .promo-slider-head {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .lobby-profile-grid {
    grid-template-columns: 1fr;
  }

  .admin-login-inline {
    grid-template-columns: 1fr;
  }

  .admin-filter-grid {
    grid-template-columns: 1fr 1fr;
  }

  .admin-action-bar {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .left-rail,
  .lobby-sidebar,
  .mode-grid,
  .doors-stage,
  .lobby-profile-grid,
  .odds-row,
  .dice-direction-grid,
  .cars-difficulty,
  .cars-touch-controls,
  .door-difficulty,
  .bonus-redeem-row,
  .slot-panel .row-actions {
    grid-template-columns: 1fr;
  }

  .slot-rtp-presets {
    grid-template-columns: 1fr;
  }

  .crash-presets,
  .crash-volatility-controls {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .doors-stage {
    grid-auto-rows: 196px;
  }

  .slot-window {
    grid-template-columns: repeat(5, minmax(56px, 1fr));
    gap: 0.24rem;
  }

  .crash-stage {
    height: 348px;
  }

  .roll-ring {
    width: 218px;
  }

  .ring-zone {
    font-size: 0.56rem;
  }

  .cars-stage {
    height: 336px;
  }

  .play-door {
    min-height: 196px;
  }

  .slot-reel {
    height: 208px;
  }

  .slot-symbol {
    height: 69px;
    font-size: 0.94rem;
    letter-spacing: 0;
  }

  .slot-symbol em {
    font-size: 1.36rem;
  }

  .topbar-inner {
    gap: 0.5rem;
  }

  .audio-controls-panel {
    position: fixed;
    top: 3.85rem;
    right: 0.5rem;
    left: 0.5rem;
    min-width: 0;
  }

  .admin-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-filter-grid,
  .admin-deposit-overview {
    grid-template-columns: 1fr;
  }

  .admin-keyval-row {
    grid-template-columns: 1fr;
    gap: 0.18rem;
  }

  .admin-action-buttons {
    display: grid;
    grid-template-columns: 1fr;
  }

  .chat-block {
    max-height: 480px;
    gap: 0.34rem;
  }

  .chat-list li {
    padding: 0.34rem 0.4rem;
  }

  .chat-compose {
    grid-template-columns: 1fr;
    gap: 0.28rem;
  }

  .chat-compose .btn {
    width: 100%;
  }

  .chat-reply-preview {
    align-items: flex-start;
    flex-direction: column;
  }

  .game-card {
    min-width: 164px;
    max-width: 164px;
  }

}

.rg-strip {
  width: var(--container);
  margin: 0.6rem auto 0;
  padding: 0.62rem 0.78rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(18, 31, 60, 0.92), rgba(14, 24, 48, 0.92));
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  font-size: 0.82rem;
  color: #c5d7f8;
}

.rg-strip a {
  color: #8edfff;
  font-weight: 700;
}

.age-gate {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: rgba(4, 10, 20, 0.82);
  backdrop-filter: blur(6px);
}

.age-gate-card {
  width: min(520px, 96vw);
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  padding: 1rem;
  background: linear-gradient(180deg, #111f41, #162a53);
  box-shadow: 0 26px 60px rgba(0, 0, 0, 0.4);
}

.age-gate-actions {
  margin-top: 0.82rem;
  display: flex;
  gap: 0.56rem;
  flex-wrap: wrap;
}

/* Cars + Slots polish layer */
.slot-stage {
  background:
    radial-gradient(620px circle at 50% -20%, rgba(84, 155, 228, 0.14), transparent 56%),
    linear-gradient(180deg, #111a27, #0c1420 64%, #09111a);
}

.slot-machine-shell {
  border-color: rgba(148, 182, 224, 0.36);
  background: linear-gradient(180deg, rgba(10, 15, 26, 0.94), rgba(7, 12, 20, 0.96));
  box-shadow: inset 0 1px 0 rgba(247, 250, 255, 0.04), 0 12px 28px rgba(2, 5, 10, 0.32);
}

.slot-machine-shell.is-idle {
  border-color: rgba(148, 182, 224, 0.36);
}

.slot-machine-shell.is-win {
  border-color: rgba(125, 236, 193, 0.66);
  box-shadow: inset 0 1px 0 rgba(244, 252, 248, 0.08), 0 0 0 1px rgba(125, 236, 193, 0.18), 0 16px 34px rgba(8, 28, 24, 0.38);
}

.slot-machine-shell.is-jackpot {
  border-color: rgba(255, 214, 136, 0.78);
  box-shadow: inset 0 1px 0 rgba(255, 248, 230, 0.16), 0 0 0 1px rgba(255, 214, 136, 0.24), 0 18px 36px rgba(48, 32, 8, 0.4);
}

.slot-window {
  border-color: rgba(130, 173, 226, 0.36);
  background: linear-gradient(180deg, #0d1623, #0a1220);
}

.slot-window::after {
  background: linear-gradient(90deg, rgba(255, 224, 166, 0), rgba(255, 224, 166, 0.34), rgba(255, 224, 166, 0));
}

.slot-window.is-spinning .slot-reel {
  border-color: rgba(148, 189, 240, 0.52);
}

.slot-reel {
  background: linear-gradient(180deg, rgba(12, 21, 36, 0.98), rgba(8, 15, 27, 0.98));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), inset 0 -8px 14px rgba(0, 0, 0, 0.18);
}

.slot-symbol {
  border-bottom-color: rgba(149, 180, 221, 0.12);
}

.slot-symbol em {
  text-shadow: 0 1px 0 rgba(5, 10, 16, 0.36);
}

.cars-stage {
  background:
    radial-gradient(680px circle at 50% -22%, rgba(150, 184, 219, 0.12), transparent 58%),
    linear-gradient(180deg, #171f2a, #111924 68%, #0c121a);
  box-shadow: inset 0 1px 0 rgba(248, 251, 255, 0.04);
}

.cars-overlay {
  border-color: rgba(160, 188, 220, 0.42);
  background: linear-gradient(180deg, rgba(10, 16, 26, 0.84), rgba(8, 13, 22, 0.82));
  box-shadow: 0 8px 18px rgba(3, 8, 14, 0.24);
}

.cars-overlay.is-reward {
  border-color: rgba(146, 233, 202, 0.74);
  box-shadow: 0 0 0 1px rgba(146, 233, 202, 0.18), 0 8px 20px rgba(13, 34, 30, 0.34);
}

@media (max-width: 900px) {
  .slot-stage,
  .cars-stage {
    min-height: 340px;
  }

  .slot-reel {
    height: 222px;
  }

  .slot-symbol {
    height: 74px;
  }

  .slot-symbol em {
    font-size: 1.54rem;
  }
}

/* Street Checkers production layer */
.cars-stage {
  border: 1px solid rgba(181, 208, 232, 0.46);
  background:
    radial-gradient(760px circle at 50% -26%, rgba(157, 207, 255, 0.16), transparent 56%),
    radial-gradient(420px circle at 102% -8%, rgba(255, 192, 104, 0.14), transparent 54%),
    linear-gradient(180deg, #151d27, #0f151e 68%, #090d14);
  box-shadow:
    inset 0 1px 0 rgba(248, 251, 255, 0.05),
    0 20px 34px rgba(4, 8, 14, 0.36);
}

.cars-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(221, 235, 252, 0.06), rgba(221, 235, 252, 0));
  z-index: 1;
}

#cars-canvas {
  position: relative;
  z-index: 2;
}

.cars-hit-flash {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 140ms ease;
  background: radial-gradient(circle at 50% 60%, rgba(255, 216, 138, 0.4), rgba(255, 216, 138, 0));
  z-index: 3;
}

.cars-hit-flash.is-show {
  opacity: 1;
}

.cars-countdown {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  z-index: 4;
  pointer-events: none;
  font-family: "Sora", "Segoe UI", sans-serif;
  font-size: clamp(2.4rem, 6vw, 4.4rem);
  letter-spacing: 0.02em;
  color: #f0f7ff;
  text-shadow: 0 0 24px rgba(176, 212, 245, 0.32), 0 8px 30px rgba(3, 8, 14, 0.58);
}

.cars-overlay {
  border-color: rgba(177, 206, 235, 0.52);
  background: linear-gradient(180deg, rgba(7, 12, 20, 0.84), rgba(6, 10, 17, 0.82));
  box-shadow: 0 10px 20px rgba(2, 6, 10, 0.34);
}

.cars-overlay strong {
  font-size: 0.98rem;
}

.cars-stage.is-near-miss .cars-overlay {
  border-color: rgba(255, 234, 167, 0.74);
  box-shadow: 0 0 0 1px rgba(255, 234, 167, 0.16), 0 10px 22px rgba(29, 22, 8, 0.42);
}

.cars-panel .kv {
  border-color: rgba(170, 196, 221, 0.52);
}

.cars-panel .kv strong {
  color: #f2f7ff;
  letter-spacing: 0.01em;
}

.cars-touch-controls {
  gap: 0.42rem;
}

.cars-touch-controls .btn {
  min-height: 48px;
  font-size: 0.86rem;
  touch-action: manipulation;
}

.cars-touch-controls .btn.is-holding {
  border-color: rgba(176, 243, 214, 0.86);
  box-shadow: 0 0 0 1px rgba(176, 243, 214, 0.26) inset;
}

#cars-status.status {
  line-height: 1.36;
  min-height: 2.5rem;
}

@media (max-width: 620px) {
  .cars-overlay {
    top: 0.58rem;
    left: 0.58rem;
    padding: 0.36rem 0.44rem;
  }

  .cars-overlay strong {
    font-size: 0.86rem;
  }

  .cars-touch-controls .btn {
    min-height: 52px;
    font-size: 0.9rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cars-hit-flash,
  .cars-countdown {
    transition: none !important;
  }
}

body.cars-guide-open {
  overflow: hidden;
}

.cars-guide-overlay {
  position: fixed;
  inset: 0;
  z-index: 1400;
  display: grid;
  place-items: center;
  padding: clamp(0.86rem, 2.4vw, 1.5rem);
  background:
    radial-gradient(720px circle at 50% -10%, rgba(169, 218, 255, 0.24), transparent 58%),
    linear-gradient(180deg, rgba(6, 12, 21, 0.84), rgba(4, 8, 14, 0.9));
  backdrop-filter: blur(8px) saturate(1.06);
  -webkit-backdrop-filter: blur(8px) saturate(1.06);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 240ms ease, visibility 0ms linear 240ms;
}

.cars-guide-overlay.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition-delay: 0ms;
}

.cars-guide-panel {
  position: relative;
  width: min(640px, 100%);
  border: 1px solid rgba(178, 213, 242, 0.56);
  border-radius: 20px;
  background:
    radial-gradient(340px circle at 78% -26%, rgba(255, 203, 118, 0.18), transparent 60%),
    radial-gradient(440px circle at 20% -22%, rgba(167, 224, 255, 0.2), transparent 64%),
    linear-gradient(180deg, rgba(23, 36, 52, 0.98), rgba(15, 26, 39, 0.98));
  box-shadow:
    inset 0 1px 0 rgba(241, 248, 255, 0.08),
    0 26px 60px rgba(2, 7, 14, 0.52);
  padding: clamp(0.92rem, 2.4vw, 1.24rem) clamp(0.9rem, 2.2vw, 1.16rem);
  transform: translateY(14px) scale(0.985);
  opacity: 0;
  transition: transform 260ms cubic-bezier(0.2, 0.8, 0.2, 1), opacity 220ms ease;
}

.cars-guide-overlay.is-open .cars-guide-panel {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.cars-guide-close {
  position: absolute;
  top: 0.56rem;
  right: 0.56rem;
  width: 2rem;
  aspect-ratio: 1;
  border-radius: 999px;
  border: 1px solid rgba(185, 214, 240, 0.54);
  background: rgba(11, 21, 33, 0.72);
  color: #e8f4ff;
  font-size: 1.16rem;
  line-height: 1;
  cursor: pointer;
}

.cars-guide-eyebrow {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  font-size: 0.68rem;
  color: #a8d7ff;
  font-weight: 700;
}

.cars-guide-panel h2 {
  margin-top: 0.28rem;
  font-size: clamp(1.1rem, 2.2vw, 1.32rem);
  color: #f1f8ff;
}

.cars-guide-lead {
  margin-top: 0.34rem;
  color: #d2e3f4;
  line-height: 1.5;
}

.cars-guide-list {
  margin: 0.7rem 0 0;
  padding-left: 1.02rem;
  display: grid;
  gap: 0.42rem;
  color: #dceaf8;
}

.cars-guide-list li {
  line-height: 1.45;
}

.cars-guide-list strong {
  color: #f0f7ff;
}

.cars-guide-actions {
  margin-top: 0.86rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.cars-guide-actions .btn {
  flex: 1 1 190px;
}

@media (max-width: 620px) {
  .cars-guide-panel {
    border-radius: 16px;
    padding: 0.82rem 0.78rem;
  }

  .cars-guide-list {
    gap: 0.34rem;
    font-size: 0.92rem;
  }

  .cars-guide-actions {
    margin-top: 0.72rem;
  }
}

@media (max-width: 430px) {
  .cars-guide-overlay {
    padding: 0.62rem;
  }

  .cars-guide-close {
    top: 0.44rem;
    right: 0.44rem;
  }

  .cars-guide-actions .btn {
    flex-basis: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cars-guide-overlay,
  .cars-guide-panel {
    transition: none !important;
  }

  .cars-guide-panel,
  .cars-guide-overlay.is-open .cars-guide-panel {
    transform: none !important;
    opacity: 1 !important;
  }
}

/* UI rhythm refresh */
:root {
  --space-1: 0.34rem;
  --space-2: 0.52rem;
  --space-3: 0.74rem;
  --space-4: 1rem;
  --shadow-soft: 0 12px 24px rgba(6, 11, 18, 0.28);
  --shadow-hover: 0 16px 30px rgba(7, 13, 21, 0.34);
}

body {
  line-height: 1.5;
  background:
    radial-gradient(900px circle at 10% -28%, rgba(154, 203, 248, 0.22), transparent 54%),
    radial-gradient(760px circle at 94% -24%, rgba(141, 226, 202, 0.16), transparent 54%),
    radial-gradient(860px circle at 56% 112%, rgba(97, 144, 191, 0.24), transparent 64%),
    linear-gradient(180deg, #1f2b39, #141d29 66%, #0f1721);
}

p {
  margin-top: 0.62rem;
}

.clean-card {
  border-radius: 16px;
  padding: clamp(0.78rem, 1.4vw, 1rem);
  background:
    radial-gradient(340px circle at 50% -34%, rgba(156, 201, 244, 0.1), transparent 64%),
    linear-gradient(180deg, rgba(30, 43, 58, 0.96), rgba(23, 34, 46, 0.98));
  box-shadow: var(--shadow-soft);
  transition: border-color 200ms ease, box-shadow 200ms ease, transform 200ms ease;
}

.clean-card:hover {
  border-color: rgba(192, 218, 241, 0.58);
  box-shadow: var(--shadow-hover);
}

.app-shell {
  gap: clamp(0.56rem, 1.2vw, 0.84rem);
  padding: clamp(0.78rem, 1.8vw, 1.08rem) 0 2.3rem;
}

.page-stack,
.left-rail,
.main-column,
.right-rail,
.lobby-content,
.lobby-sidebar {
  gap: clamp(0.56rem, 1.1vw, 0.8rem);
}

.page-stack {
  padding: clamp(0.82rem, 1.8vw, 1.08rem) 0 2.3rem;
}

.section-head-inline {
  gap: 0.5rem;
}

.eyebrow {
  letter-spacing: 0.12em;
  color: #b7e5ff;
}

.topbar {
  background:
    linear-gradient(180deg, rgba(21, 30, 42, 0.92), rgba(16, 24, 35, 0.9));
  border-bottom: 1px solid rgba(181, 206, 229, 0.38);
  box-shadow: 0 10px 22px rgba(6, 11, 18, 0.28);
}

.topbar-inner {
  min-height: 66px;
  gap: 0.7rem;
  padding: 0.62rem 0;
}

.site-nav {
  gap: 0.44rem;
  flex-wrap: wrap;
}

.site-nav a {
  padding: 0.34rem 0.58rem;
  border: 1px solid transparent;
  border-radius: 999px;
  color: #c6d4e6;
  transition: color 160ms ease, border-color 160ms ease, background-color 160ms ease;
}

.site-nav a:hover,
.site-nav a.is-active {
  color: #f0f6ff;
  border-color: rgba(175, 205, 234, 0.56);
  background: rgba(156, 190, 223, 0.16);
}

.top-actions {
  gap: 0.42rem;
}

.wallet-chip {
  border-color: rgba(181, 207, 232, 0.56);
  background: linear-gradient(180deg, rgba(26, 38, 52, 0.9), rgba(20, 31, 44, 0.9));
  color: #c9d9ec;
  box-shadow: inset 0 1px 0 rgba(240, 246, 255, 0.08);
}

.wallet-chip strong {
  color: #f1f6fd;
  font-size: 0.86rem;
  letter-spacing: 0.01em;
}

.btn {
  min-height: 40px;
  border: 1px solid rgba(235, 215, 182, 0.56);
  border-radius: 11px;
  box-shadow: 0 8px 16px rgba(10, 16, 26, 0.22);
  transition: transform 180ms ease, filter 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.btn:hover:not(:disabled) {
  transform: translateY(-1px);
  filter: brightness(1.03);
  box-shadow: 0 10px 20px rgba(11, 17, 27, 0.28);
}

.btn.ghost {
  border-color: rgba(184, 210, 232, 0.52);
  color: #e4eef9;
  background: linear-gradient(180deg, rgba(40, 55, 73, 0.86), rgba(31, 44, 60, 0.84));
}

.btn.ghost:hover:not(:disabled) {
  border-color: rgba(204, 225, 245, 0.64);
  background: linear-gradient(180deg, rgba(47, 63, 82, 0.9), rgba(36, 49, 66, 0.88));
}

.btn.small {
  min-height: 34px;
  padding: 0.38rem 0.62rem;
  font-size: 0.79rem;
}

input[type="number"],
input[type="search"],
input[type="text"],
input[type="email"],
input[type="password"],
input[type="date"],
textarea,
select {
  border-color: rgba(176, 201, 225, 0.56);
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(30, 44, 60, 0.84), rgba(22, 34, 47, 0.84));
  color: #eef5ff;
  transition: border-color 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

input[type="number"]:hover,
input[type="search"]:hover,
input[type="text"]:hover,
input[type="email"]:hover,
input[type="password"]:hover,
input[type="date"]:hover,
textarea:hover,
select:hover {
  border-color: rgba(191, 214, 237, 0.7);
}

.hero-lobby {
  position: relative;
  overflow: hidden;
}

.hero-lobby::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(320px circle at 84% -30%, rgba(188, 225, 255, 0.14), transparent 68%),
    linear-gradient(180deg, rgba(248, 252, 255, 0.05), rgba(248, 252, 255, 0));
}

.hero-lobby h1 {
  line-height: 1.12;
  letter-spacing: -0.01em;
}

.hero-lobby .muted {
  color: #d3dfec;
}

.promo-slide,
.game-card,
.mode-card-pro,
.match-card,
.account-card,
.live-bets-list li,
.chat-list li,
.status,
.kv {
  border-color: rgba(172, 198, 222, 0.44);
  background:
    linear-gradient(180deg, rgba(29, 43, 58, 0.84), rgba(22, 34, 47, 0.82));
}

.promo-slide,
.game-card,
.mode-card-pro,
.match-card,
.account-card,
.live-bets-list li,
.chat-list li {
  transition: transform 190ms ease, border-color 190ms ease, box-shadow 190ms ease;
}

.promo-slide:hover,
.game-card:hover,
.mode-card-pro:hover,
.match-card:hover,
.account-card:hover,
.live-bets-list li:hover,
.chat-list li:hover {
  border-color: rgba(199, 220, 240, 0.62);
  box-shadow: 0 10px 22px rgba(8, 14, 23, 0.28);
}

.status {
  color: #e9f2fd;
  line-height: 1.42;
}

.status.win {
  border-color: rgba(144, 236, 200, 0.7);
  color: #c9f9e5;
}

.status.loss {
  border-color: rgba(243, 171, 186, 0.72);
  color: #ffd9e1;
}

.kv {
  align-items: center;
}

.kv strong {
  color: #f1f7ff;
  font-size: 0.93rem;
  letter-spacing: 0.01em;
}

.live-bets-list .bet-main {
  color: #edf5ff;
}

.live-bets-list .bet-amount {
  font-family: "Sora", "Segoe UI", sans-serif;
  letter-spacing: 0.01em;
}

.auth-feedback {
  background: linear-gradient(180deg, rgba(27, 40, 56, 0.88), rgba(21, 32, 45, 0.86));
  color: #deebfa;
}

@keyframes sectionReveal {
  0% {
    opacity: 0;
    transform: translateY(14px) scale(0.995);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.main-column > *,
.left-rail > *,
.right-rail > *,
.lobby-content > *,
.lobby-sidebar > *,
.page-stack > * {
  opacity: 0;
  transform: translateY(14px);
  animation: sectionReveal 520ms cubic-bezier(0.2, 0.76, 0.22, 1) forwards;
}

.main-column > *:nth-child(1),
.left-rail > *:nth-child(1),
.right-rail > *:nth-child(1),
.page-stack > *:nth-child(1),
.lobby-content > *:nth-child(1),
.lobby-sidebar > *:nth-child(1) { animation-delay: 30ms; }

.main-column > *:nth-child(2),
.left-rail > *:nth-child(2),
.right-rail > *:nth-child(2),
.page-stack > *:nth-child(2),
.lobby-content > *:nth-child(2),
.lobby-sidebar > *:nth-child(2) { animation-delay: 80ms; }

.main-column > *:nth-child(3),
.left-rail > *:nth-child(3),
.right-rail > *:nth-child(3),
.page-stack > *:nth-child(3),
.lobby-content > *:nth-child(3),
.lobby-sidebar > *:nth-child(3) { animation-delay: 130ms; }

.main-column > *:nth-child(4),
.left-rail > *:nth-child(4),
.right-rail > *:nth-child(4),
.page-stack > *:nth-child(4),
.lobby-content > *:nth-child(4),
.lobby-sidebar > *:nth-child(4) { animation-delay: 180ms; }

.main-column > *:nth-child(5),
.left-rail > *:nth-child(5),
.right-rail > *:nth-child(5),
.page-stack > *:nth-child(5),
.lobby-content > *:nth-child(5),
.lobby-sidebar > *:nth-child(5) { animation-delay: 230ms; }

.main-column > *:nth-child(6),
.left-rail > *:nth-child(6),
.right-rail > *:nth-child(6),
.page-stack > *:nth-child(6),
.lobby-content > *:nth-child(6),
.lobby-sidebar > *:nth-child(6) { animation-delay: 280ms; }

.main-column > *:nth-child(7),
.left-rail > *:nth-child(7),
.right-rail > *:nth-child(7),
.page-stack > *:nth-child(7),
.lobby-content > *:nth-child(7),
.lobby-sidebar > *:nth-child(7) { animation-delay: 330ms; }

.main-column > *:nth-child(8),
.left-rail > *:nth-child(8),
.right-rail > *:nth-child(8),
.page-stack > *:nth-child(8),
.lobby-content > *:nth-child(8),
.lobby-sidebar > *:nth-child(8) { animation-delay: 380ms; }

.main-column > *:nth-child(9),
.left-rail > *:nth-child(9),
.right-rail > *:nth-child(9),
.page-stack > *:nth-child(9),
.lobby-content > *:nth-child(9),
.lobby-sidebar > *:nth-child(9) { animation-delay: 430ms; }

.main-column > *:nth-child(10),
.left-rail > *:nth-child(10),
.right-rail > *:nth-child(10),
.page-stack > *:nth-child(10),
.lobby-content > *:nth-child(10),
.lobby-sidebar > *:nth-child(10) { animation-delay: 480ms; }

@media (max-width: 860px) {
  .site-nav {
    position: absolute;
    top: calc(100% + 0.35rem);
    left: 3vw;
    right: 3vw;
    display: grid;
    gap: 0.34rem;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #122345;
    padding: 0.58rem;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-6px);
    transition: opacity 130ms ease, transform 130ms ease;
  }

  .site-nav.open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .wallet-chip {
    display: none;
  }
}

@media (max-width: 430px) {
  .topbar-inner {
    gap: 0.44rem;
    padding: 0.5rem 0;
    min-height: 58px;
    flex-wrap: wrap;
  }

  .brand {
    min-width: auto;
    gap: 0.44rem;
  }

  .brand-mark {
    width: 24px;
    border-radius: 8px;
  }

  .brand-word {
    font-size: 0.84rem;
    letter-spacing: 0.07em;
  }

  .top-actions {
    width: 100%;
    margin-left: 0;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 0.26rem;
  }

  .wallet-chip {
    display: inline-flex;
    padding: 0.24rem 0.5rem;
    font-size: 0.72rem;
  }

  .wallet-chip strong {
    font-size: 0.76rem;
  }

  .btn.small,
  .top-auth-link.btn.small {
    min-height: 32px;
    padding: 0.32rem 0.52rem;
    font-size: 0.74rem;
  }

  .app-shell,
  .page-stack {
    gap: 0.56rem;
    padding-top: 0.72rem;
  }

  .clean-card {
    padding: 0.72rem;
    border-radius: 14px;
  }

  .section-head-inline {
    gap: 0.4rem;
    align-items: flex-start;
  }

  .section-head-inline h2 {
    font-size: 0.98rem;
  }

  .promo-slide {
    padding: 0.68rem;
  }

  .lobby-profile-grid {
    gap: 0.36rem;
  }

  .lobby-division-progress {
    padding: 0.42rem 0.46rem;
  }

  .status,
  .kv {
    margin-top: 0.5rem;
  }

  .game-card {
    min-width: 156px;
    max-width: 156px;
  }

  .live-bets-list li {
    padding: 0.34rem 0.44rem;
  }

  .crash-volatility {
    padding: 0.38rem 0.42rem;
  }

  .crash-volatility-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.18rem;
  }

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

  .chat-list {
    scroll-behavior: auto;
  }
}

/* Top actions + account panel */
.top-deposit-link {
  border-color: rgba(255, 226, 174, 0.78);
  background:
    linear-gradient(135deg, #ffe3b1, #ffcb83 54%, #ecad60 100%);
  color: #1b202a;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.top-deposit-link:hover:not(:disabled) {
  border-color: rgba(255, 236, 200, 0.9);
  box-shadow: 0 12px 22px rgba(10, 15, 23, 0.3);
}

.account-session-panel {
  display: grid;
  gap: 0.62rem;
}

.account-session-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.46rem;
}

/* Originals cards canonical (v2) */
.game-row .originals-card {
  flex: 0 0 224px;
  min-width: 224px;
  max-width: 224px;
}

.originals-card,
.originals-mode-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border: 1px solid rgba(180, 207, 232, 0.52);
  border-radius: 16px;
  background:
    radial-gradient(340px circle at 50% -36%, rgba(177, 215, 246, 0.14), transparent 66%),
    linear-gradient(180deg, rgba(21, 33, 46, 0.98), rgba(14, 23, 34, 0.99));
  box-shadow:
    inset 0 1px 0 rgba(248, 252, 255, 0.08),
    0 16px 34px rgba(4, 8, 13, 0.36);
  transition: transform 260ms cubic-bezier(0.2, 0.78, 0.22, 1), border-color 240ms ease, box-shadow 260ms ease;
}

.originals-card::before,
.originals-mode-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(220px circle at 50% -40%, rgba(216, 235, 253, 0.14), transparent 68%);
}

.originals-card::after,
.originals-mode-card::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 38%;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(6, 13, 23, 0), rgba(6, 13, 23, 0.48));
}

.originals-card:hover,
.originals-mode-card:hover {
  transform: translateY(-4px);
  border-color: rgba(207, 229, 249, 0.72);
  box-shadow:
    inset 0 1px 0 rgba(252, 255, 255, 0.1),
    0 22px 44px rgba(3, 7, 12, 0.44);
}

.originals-card .game-body {
  position: relative;
  z-index: 8;
  padding: 0.58rem 0.62rem 0.68rem;
  gap: 0.22rem;
}

.game-body h4 {
  margin: 0.03rem 0 0.1rem;
  font-size: 0.98rem;
  line-height: 1.22;
  color: #eff6ff;
  letter-spacing: -0.01em;
}

.game-stat {
  margin: 0;
  color: #daecff;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.game-meta {
  margin: 0;
  color: #acc3dd;
  font-size: 0.67rem;
  line-height: 1.34;
}

.originals-mode-card {
  display: grid;
  gap: 0.56rem;
  padding: 0.72rem;
}

.originals-mode-card h3 {
  margin: 0.1rem 0 0;
  font-size: 1.04rem;
  letter-spacing: -0.01em;
  color: #eff7ff;
}

.mode-meta {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.24rem;
}

.mode-meta span {
  border: 1px solid rgba(177, 210, 240, 0.52);
  border-radius: 999px;
  background: rgba(18, 33, 49, 0.76);
  color: #cfe4fa;
  font-size: 0.64rem;
  letter-spacing: 0.04em;
  line-height: 1;
  text-transform: uppercase;
  padding: 0.19rem 0.44rem;
}

.originals-mode-card .mode-copy {
  margin: 0;
  color: #b8cee4;
  line-height: 1.4;
}

.orig-preview {
  --preview-radius: 14px;
  --orig-z-image: 1;
  --orig-z-scene: 2;
  --orig-z-overlay: 3;
  --orig-z-vignette: 4;
  --orig-z-tag: 5;
  position: relative;
  display: block;
  width: 100%;
  height: auto;
  min-height: 0;
  aspect-ratio: 16 / 10;
  border: 1px solid rgba(174, 207, 235, 0.52);
  border-radius: var(--preview-radius);
  overflow: hidden;
  isolation: isolate;
  background: linear-gradient(180deg, #172842, #111f35 68%, #0d1727);
  box-shadow:
    inset 0 1px 0 rgba(246, 252, 255, 0.08),
    0 10px 26px rgba(2, 6, 10, 0.34);
  transform: translateZ(0);
  contain: layout paint;
  backface-visibility: hidden;
  transition: transform 260ms cubic-bezier(0.2, 0.78, 0.22, 1), border-color 240ms ease, box-shadow 240ms ease;
}

.originals-card .orig-preview {
  --preview-radius: 0px;
  border-top: 0;
  border-left: 0;
  border-right: 0;
}

.originals-mode-card .orig-preview {
  --preview-radius: 14px;
}

.orig-preview.orig-preview-v2::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: var(--orig-z-overlay);
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(232, 243, 255, 0.14), rgba(232, 243, 255, 0) 34%),
    linear-gradient(180deg, rgba(5, 12, 22, 0) 58%, rgba(5, 12, 22, 0.75) 100%);
}

.orig-preview.orig-preview-v2::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: var(--orig-z-vignette);
  pointer-events: none;
  background: radial-gradient(220px circle at 50% 118%, rgba(4, 9, 18, 0.68), rgba(4, 9, 18, 0));
}

.orig-preview-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: var(--orig-z-image);
  opacity: 0.18;
  transform: scale(1.03);
  filter: saturate(0.84) contrast(1.08) brightness(0.9);
  transition: transform 280ms ease, opacity 280ms ease;
}

.orig-preview-v2.orig-preview-crash {
  background:
    radial-gradient(220px circle at 20% 8%, rgba(66, 188, 255, 0.34), transparent 60%),
    radial-gradient(250px circle at 76% -4%, rgba(111, 163, 255, 0.34), transparent 58%),
    linear-gradient(180deg, #1b3358, #142844 62%, #0f1d33);
}

.orig-preview-v2.orig-preview-dice {
  background:
    radial-gradient(200px circle at 22% 12%, rgba(78, 200, 184, 0.22), transparent 60%),
    radial-gradient(230px circle at 78% -4%, rgba(115, 177, 255, 0.22), transparent 58%),
    linear-gradient(180deg, #132f4e, #10263f 66%, #0c1c2f);
}

.orig-preview-v2.orig-preview-doors {
  background:
    radial-gradient(240px circle at 50% -24%, rgba(141, 176, 255, 0.22), transparent 62%),
    linear-gradient(180deg, #1a2f4f, #14253f 66%, #0f1d32);
}

.orig-preview-v2.orig-preview-slots {
  background:
    radial-gradient(220px circle at 50% -24%, rgba(96, 220, 255, 0.18), transparent 60%),
    linear-gradient(180deg, #173357, #132846 64%, #0f1f37);
}

.orig-preview-v2.orig-preview-mines {
  background:
    radial-gradient(220px circle at 24% -12%, rgba(111, 194, 255, 0.22), transparent 60%),
    linear-gradient(180deg, #183253, #132744 64%, #0f2038);
}

.orig-preview-v2.orig-preview-cars {
  background:
    radial-gradient(220px circle at 18% 6%, rgba(113, 196, 255, 0.2), transparent 58%),
    linear-gradient(180deg, #1b314d, #15253d 66%, #101e32);
}

.orig-scene-layer {
  position: absolute;
  inset: 0;
  z-index: var(--orig-z-scene);
  pointer-events: none;
  opacity: 0.96;
  transition: transform 260ms cubic-bezier(0.2, 0.76, 0.22, 1), opacity 260ms ease, filter 260ms ease;
  will-change: transform, opacity;
}

.orig-scene-layer > * {
  pointer-events: none;
  position: absolute;
}

.orig-preview-tag,
.orig2-chip {
  border-radius: 999px;
  border: 1px solid rgba(192, 221, 248, 0.78);
  background: rgba(8, 20, 35, 0.84);
  box-shadow: 0 0 0 1px rgba(189, 218, 245, 0.18);
  color: #e3f1ff;
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  line-height: 1;
  text-transform: uppercase;
  padding: 0.2rem 0.36rem;
}

.orig-preview-tag {
  position: absolute;
  z-index: var(--orig-z-tag);
  top: 0.42rem;
  right: 0.42rem;
  transition: transform 200ms ease, border-color 200ms ease, background-color 200ms ease;
}

.orig2-chip {
  z-index: 3;
  left: 0.42rem;
  top: 0.42rem;
}

.orig2-chip-soft {
  left: auto;
  right: 0.42rem;
  border-color: rgba(176, 227, 255, 0.76);
}

.orig2-chip-live {
  border-color: rgba(168, 228, 255, 0.78);
}

.orig2-chip-multiplier,
.orig2-chip-success,
.orig2-chip-jackpot,
.orig2-chip-speed {
  left: auto;
  right: 0.42rem;
}

.orig2-chip-success {
  border-color: rgba(161, 236, 208, 0.78);
  color: #d4ffee;
}

.orig2-chip-jackpot {
  border-color: rgba(255, 218, 164, 0.82);
  color: #ffe7ba;
}

.orig2-chip-speed {
  border-color: rgba(190, 221, 250, 0.82);
}

.orig2-crash-chart {
  inset: 1.08rem 0.58rem 0.48rem;
  border-radius: 10px;
  border: 1px solid rgba(166, 206, 247, 0.5);
  background: linear-gradient(180deg, rgba(13, 27, 45, 0.74), rgba(10, 21, 36, 0.74));
  overflow: hidden;
}

.orig2-crash-grid {
  inset: 0;
  background:
    linear-gradient(transparent 91%, rgba(160, 203, 248, 0.22) 92%, transparent 93%),
    linear-gradient(90deg, transparent 91%, rgba(160, 203, 248, 0.22) 92%, transparent 93%);
  background-size: 18px 18px;
  opacity: 0.82;
}

.orig2-crash-path {
  left: 7%;
  right: 8%;
  bottom: 12%;
  height: 62%;
  clip-path: polygon(0 94%, 10% 89%, 22% 80%, 34% 72%, 48% 58%, 64% 43%, 80% 26%, 100% 2%, 100% 100%, 0 100%);
  background: linear-gradient(180deg, rgba(90, 220, 255, 0.54), rgba(80, 138, 255, 0.86));
  filter: drop-shadow(0 0 10px rgba(92, 201, 255, 0.56));
  animation: orig2CrashPath 3.8s ease-in-out infinite;
}

.orig2-crash-dot {
  right: 8%;
  top: 7%;
  width: 7px;
  aspect-ratio: 1;
  border-radius: 999px;
  background: #a9ecff;
  box-shadow: 0 0 0 4px rgba(121, 209, 255, 0.18), 0 0 12px rgba(121, 209, 255, 0.8);
  animation: orig2CrashDot 3.8s ease-in-out infinite;
}

.orig2-crash-spark {
  right: 14%;
  top: 44%;
  width: 54px;
  height: 1px;
  background: linear-gradient(90deg, rgba(189, 233, 255, 0.92), rgba(189, 233, 255, 0));
  transform-origin: right center;
  animation: orig2CrashSpark 3.8s ease-in-out infinite;
}

.orig2-dice-dial {
  left: 50%;
  top: 52%;
  width: 74px;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border-radius: 999px;
  border: 1px solid rgba(168, 211, 250, 0.76);
  box-shadow: inset 0 0 14px rgba(109, 195, 255, 0.24);
}

.orig2-dice-arc {
  inset: 5px;
  border-radius: inherit;
  background:
    radial-gradient(circle at 50% 50%, rgba(11, 21, 35, 0.95) 54%, transparent 55%),
    conic-gradient(from -100deg, rgba(89, 232, 183, 0.94) 0 52%, rgba(255, 138, 174, 0.88) 52% 100%);
}

.orig2-dice-pointer {
  left: 50%;
  top: 50%;
  width: 3px;
  height: 31px;
  transform-origin: 50% 100%;
  transform: translate(-50%, -100%) rotate(22deg);
  border-radius: 999px;
  background: linear-gradient(180deg, #ffe1a8, rgba(255, 198, 113, 0));
  animation: orig2DicePointer 2.8s cubic-bezier(0.2, 0.8, 0.22, 1) infinite;
}

.orig2-dice-value {
  left: 50%;
  top: 52%;
  transform: translate(-50%, -50%);
  font-family: "Sora", "Segoe UI", sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  color: #e1f3ff;
}

.orig2-dice-labels {
  inset: auto 0.42rem 0.42rem;
  display: flex;
  justify-content: space-between;
  gap: 0.24rem;
}

.orig2-dice-labels .orig2-chip {
  position: relative;
  inset: auto;
  flex: 1;
  text-align: center;
}

.orig2-doors-hall {
  inset: 1.02rem 0.5rem 0.48rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.24rem;
}

.orig2-door {
  position: relative;
  border-radius: 8px;
  border: 1px solid rgba(171, 207, 252, 0.56);
  background: linear-gradient(180deg, #4a76ad, #2b486b 58%, #1c3450);
  box-shadow: inset 0 -10px 16px rgba(5, 12, 24, 0.36);
  animation: orig2DoorIdle 2.6s ease-in-out var(--door-delay, 0ms) infinite;
}

.orig2-door::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 18%;
  width: 3px;
  height: 3px;
  border-radius: 999px;
  background: rgba(228, 241, 255, 0.88);
  transform: translateX(-50%);
}

.orig2-door.is-safe {
  border-color: rgba(156, 236, 205, 0.78);
  box-shadow:
    inset 0 -10px 16px rgba(5, 12, 24, 0.36),
    0 0 0 1px rgba(156, 236, 205, 0.24);
  animation: orig2DoorSafe 2.6s ease-in-out var(--door-delay, 0ms) infinite;
}

.orig2-slots-frame {
  inset: 1rem 0.48rem 0.48rem;
  border-radius: 10px;
  border: 1px solid rgba(174, 211, 250, 0.5);
  background: linear-gradient(180deg, rgba(14, 28, 47, 0.82), rgba(11, 22, 36, 0.82));
  padding: 0.26rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.2rem;
}

.orig2-slot-reel {
  border-radius: 7px;
  border: 1px solid rgba(165, 202, 239, 0.38);
  background: rgba(15, 31, 54, 0.78);
  display: grid;
  gap: 0.14rem;
  padding: 0.14rem;
  animation: orig2SlotReel 2.3s ease-in-out var(--reel-delay, 0ms) infinite;
}

.orig2-slot-cell {
  border-radius: 5px;
  border: 1px solid rgba(174, 211, 248, 0.42);
  background: rgba(18, 35, 58, 0.86);
  display: grid;
  place-items: center;
  min-height: 18px;
  font-family: "Sora", "Segoe UI", sans-serif;
  font-size: 0.53rem;
  font-weight: 700;
  color: #deefff;
}

.orig2-slot-cell.is-seven {
  color: #ffe2af;
}

.orig2-slot-cell.is-multi {
  color: #bdf7dd;
}

.orig2-mines-grid {
  inset: 0.94rem 0.52rem 0.48rem;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.16rem;
}

.orig2-mines-cell {
  border-radius: 5px;
  border: 1px solid rgba(170, 207, 248, 0.44);
  background: rgba(17, 33, 56, 0.84);
  display: grid;
  place-items: center;
  min-height: 14px;
  font-size: 0.42rem;
  font-weight: 700;
  color: #d8ecff;
}

.orig2-mines-cell.is-mine {
  border-color: rgba(241, 133, 160, 0.78);
  background: rgba(241, 133, 160, 0.36);
  color: #ffe1ea;
}

.orig2-mines-cell.is-safe {
  border-color: rgba(104, 227, 176, 0.78);
  background: rgba(104, 227, 176, 0.34);
  color: #d7ffec;
}

.orig2-cars-track {
  inset: 1rem 0.5rem 0.48rem;
  border-radius: 10px;
  border: 1px solid rgba(172, 207, 244, 0.5);
  background: linear-gradient(180deg, rgba(22, 35, 52, 0.86), rgba(13, 24, 39, 0.9));
  overflow: hidden;
}

.orig2-cars-lane {
  top: -8%;
  bottom: -8%;
  width: 2px;
  background: repeating-linear-gradient(180deg, rgba(231, 242, 255, 0.85) 0 8px, rgba(231, 242, 255, 0) 8px 16px);
  animation: orig2LaneFlow 0.88s linear infinite;
}

.orig2-cars-lane.lane-a {
  left: 38%;
}

.orig2-cars-lane.lane-b {
  right: 38%;
}

.orig2-cars-car {
  width: 11px;
  height: 18px;
  border-radius: 4px;
  border: 1px solid rgba(188, 224, 254, 0.72);
  box-shadow: 0 1px 5px rgba(6, 12, 22, 0.42);
}

.orig2-cars-car.traffic-a {
  left: 26%;
  top: 18%;
  background: linear-gradient(180deg, #bfe4ff, #668fc7);
  animation: orig2TrafficA 2.4s linear infinite;
}

.orig2-cars-car.traffic-b {
  right: 26%;
  top: 38%;
  background: linear-gradient(180deg, #ffd2de, #ad5a73);
  border-color: rgba(255, 201, 216, 0.74);
  animation: orig2TrafficB 2.2s linear infinite;
}

.orig2-cars-car.player {
  left: 50%;
  bottom: 14%;
  transform: translateX(-50%);
  background: linear-gradient(180deg, #ffe3b1, #bc7f37);
  border-color: rgba(255, 225, 170, 0.76);
  animation: orig2PlayerLane 2.8s ease-in-out infinite;
}

.originals-card:hover .orig-preview,
.originals-mode-card:hover .orig-preview {
  transform: translateY(-1px);
  border-color: rgba(208, 230, 249, 0.76);
  box-shadow:
    inset 0 1px 0 rgba(251, 255, 255, 0.1),
    0 16px 30px rgba(2, 7, 12, 0.38);
}

.originals-card:hover .orig-preview-image,
.originals-mode-card:hover .orig-preview-image {
  transform: scale(1.05);
  opacity: 0.26;
}

.originals-card:hover .orig-scene-layer,
.originals-mode-card:hover .orig-scene-layer {
  transform: translateY(-1px) scale(1.012);
  opacity: 1;
  filter: saturate(1.06);
}

.originals-card:hover .orig-preview-tag,
.originals-mode-card:hover .orig-preview-tag {
  transform: translateY(-1px);
  border-color: rgba(218, 236, 252, 0.9);
  background: rgba(9, 21, 36, 0.92);
}

.originals-card:focus-visible,
.originals-mode-card:focus-visible {
  border-color: rgba(214, 235, 254, 0.86);
  box-shadow:
    inset 0 1px 0 rgba(247, 252, 255, 0.12),
    0 0 0 2px rgba(158, 219, 255, 0.34),
    0 20px 38px rgba(3, 8, 15, 0.44);
}

.card-reveal {
  opacity: 0;
  transform: translate3d(0, 18px, 0) scale(0.984);
  filter: blur(2px);
  transition:
    opacity 460ms cubic-bezier(0.22, 0.75, 0.2, 1),
    transform 620ms cubic-bezier(0.2, 0.78, 0.22, 1),
    filter 480ms ease;
  transition-delay: calc(var(--reveal-index, 0) * 34ms);
}

.card-reveal.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
  filter: blur(0);
}

@keyframes orig2CrashPath {
  0%,
  100% {
    transform: translateY(2px) scaleY(0.96);
  }
  50% {
    transform: translateY(-2px) scaleY(1.02);
  }
}

@keyframes orig2CrashDot {
  0%,
  100% {
    transform: scale(0.9);
    opacity: 0.7;
  }
  50% {
    transform: scale(1.16);
    opacity: 1;
  }
}

@keyframes orig2CrashSpark {
  0%,
  100% {
    transform: scaleX(0.45) translateX(12px);
    opacity: 0.24;
  }
  48% {
    transform: scaleX(1.05) translateX(0);
    opacity: 0.86;
  }
}

@keyframes orig2DicePointer {
  0%,
  100% {
    transform: translate(-50%, -100%) rotate(-14deg);
  }
  50% {
    transform: translate(-50%, -100%) rotate(36deg);
  }
}

@keyframes orig2DoorIdle {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(2px);
  }
}

@keyframes orig2DoorSafe {
  0%,
  100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-1px) scale(1.03);
  }
}

@keyframes orig2SlotReel {
  0%,
  100% {
    transform: translateY(0);
  }
  45% {
    transform: translateY(-2px);
  }
  70% {
    transform: translateY(1px);
  }
}

@keyframes orig2LaneFlow {
  to {
    transform: translateY(24px);
  }
}

@keyframes orig2TrafficA {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(9px);
  }
  100% {
    transform: translateY(0);
  }
}

@keyframes orig2TrafficB {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-9px);
  }
  100% {
    transform: translateY(0);
  }
}

@keyframes orig2PlayerLane {
  0%,
  100% {
    transform: translateX(-50%);
  }
  36% {
    transform: translateX(-64%);
  }
  72% {
    transform: translateX(-38%);
  }
}

@media (max-width: 1200px) {
  .game-row .originals-card {
    flex-basis: 210px;
    min-width: 210px;
    max-width: 210px;
  }

  .account-session-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 992px) {
  .game-row .originals-card {
    flex-basis: 194px;
    min-width: 194px;
    max-width: 194px;
  }

  .originals-mode-card {
    padding: 0.66rem;
  }

  .mode-meta span {
    font-size: 0.62rem;
  }
}

@media (max-width: 860px) {
  .top-deposit-link {
    order: 3;
  }
}

@media (max-width: 768px) {
  .game-row .originals-card {
    flex-basis: 184px;
    min-width: 184px;
    max-width: 184px;
  }

  .orig-preview-tag,
  .orig2-chip {
    font-size: 0.52rem;
    padding: 0.18rem 0.33rem;
  }
}

@media (max-width: 560px) {
  .game-row .originals-card {
    flex-basis: 172px;
    min-width: 172px;
    max-width: 172px;
  }

  .account-session-grid {
    grid-template-columns: 1fr;
  }

  .originals-card .game-body {
    padding: 0.5rem 0.54rem 0.58rem;
  }

  .game-meta {
    font-size: 0.64rem;
  }

  .orig2-dice-dial {
    width: 68px;
  }

  .orig2-crash-chart,
  .orig2-cars-track,
  .orig2-doors-hall,
  .orig2-slots-frame,
  .orig2-mines-grid {
    inset-inline: 0.42rem;
  }
}

@media (max-width: 430px) {
  .game-row .originals-card {
    flex-basis: 166px;
    min-width: 166px;
    max-width: 166px;
  }

  .top-deposit-link {
    min-height: 32px;
    padding: 0.32rem 0.56rem;
    font-size: 0.74rem;
  }

  .orig2-mines-cell {
    min-height: 12px;
    font-size: 0.38rem;
  }
}

@media (max-width: 390px) {
  .game-row .originals-card {
    flex-basis: 162px;
    min-width: 162px;
    max-width: 162px;
  }

  .mode-meta {
    gap: 0.2rem;
  }

  .mode-meta span {
    font-size: 0.6rem;
    padding: 0.15rem 0.34rem;
  }
}

@media (max-width: 360px) {
  .game-row .originals-card {
    flex-basis: 156px;
    min-width: 156px;
    max-width: 156px;
  }

  .game-body h4 {
    font-size: 0.92rem;
  }

  .game-stat {
    font-size: 0.72rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .card-reveal,
  .card-reveal.is-visible {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    transition: none !important;
  }

  .orig-preview,
  .orig-preview-image,
  .orig-preview-tag,
  .orig2-chip {
    transition: none !important;
  }

  .orig-preview-image {
    transform: none !important;
  }

  .orig-scene-layer,
  .orig-scene-layer * {
    animation: none !important;
    transition: none !important;
    transform: none !important;
    filter: none !important;
  }

  .originals-card:hover,
  .originals-mode-card:hover,
  .originals-card:hover .orig-preview,
  .originals-mode-card:hover .orig-preview {
    transform: none !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .main-column > *,
  .left-rail > *,
  .right-rail > *,
  .lobby-content > *,
  .lobby-sidebar > *,
  .page-stack > * {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
  }

  .clean-card,
  .btn,
  .site-nav a,
  .game-card,
  .mode-card-pro,
  .match-card,
  .account-card,
  .live-bets-list li,
  .chat-list li,
  input[type="number"],
  input[type="search"],
  input[type="text"],
  input[type="email"],
  input[type="password"],
  input[type="date"],
  textarea,
  select {
    transition: none !important;
  }

  .chat-item.is-chat-fresh {
    animation: none !important;
  }

  .chat-list {
    scroll-behavior: auto !important;
  }
}

/* Originals previews remake (v3) */
.orig-preview.orig-preview-v3 {
  border-color: rgba(171, 209, 241, 0.58);
  background: linear-gradient(180deg, #152741, #101d31 68%, #0b1524);
  box-shadow:
    inset 0 1px 0 rgba(247, 252, 255, 0.1),
    0 12px 26px rgba(3, 8, 14, 0.35);
}

.orig-preview.orig-preview-v3::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(223, 240, 255, 0.15), rgba(223, 240, 255, 0) 34%),
    linear-gradient(180deg, rgba(7, 14, 24, 0) 60%, rgba(7, 14, 24, 0.66));
  z-index: 2;
}

.orig-preview.orig-preview-v3::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(220px circle at 50% 116%, rgba(4, 10, 18, 0.68), rgba(4, 10, 18, 0));
  z-index: 3;
}

.orig-preview-v3 .orig-preview-image {
  opacity: 0.12;
  transform: scale(1.015);
  filter: saturate(0.7) contrast(1.05) brightness(0.82);
}

.orig-preview-v3 .orig-preview-tag {
  display: none;
}

.orig-preview-v3.orig-preview-crash {
  background:
    radial-gradient(190px circle at 12% 10%, rgba(80, 194, 255, 0.3), transparent 64%),
    radial-gradient(220px circle at 86% -2%, rgba(107, 152, 255, 0.28), transparent 58%),
    linear-gradient(180deg, #1a3153, #122441 66%, #0c192d);
}

.orig-preview-v3.orig-preview-dice {
  background:
    radial-gradient(220px circle at 18% 6%, rgba(72, 217, 181, 0.22), transparent 62%),
    radial-gradient(220px circle at 84% -6%, rgba(120, 177, 255, 0.2), transparent 58%),
    linear-gradient(180deg, #15314f, #11253f 66%, #0b1a2e);
}

.orig-preview-v3.orig-preview-doors {
  background:
    radial-gradient(240px circle at 50% -30%, rgba(140, 178, 255, 0.25), transparent 62%),
    linear-gradient(180deg, #1a3050, #13253f 66%, #0d1b2f);
}

.orig-preview-v3.orig-preview-slots {
  background:
    radial-gradient(220px circle at 52% -28%, rgba(85, 220, 255, 0.2), transparent 62%),
    linear-gradient(180deg, #173358, #132744 66%, #0d1d34);
}

.orig-preview-v3.orig-preview-mines {
  background:
    radial-gradient(220px circle at 18% -10%, rgba(110, 194, 255, 0.24), transparent 62%),
    linear-gradient(180deg, #173353, #122744 66%, #0d1f36);
}

.orig-preview-v3.orig-preview-cars {
  background:
    radial-gradient(220px circle at 18% 8%, rgba(122, 197, 255, 0.22), transparent 62%),
    linear-gradient(180deg, #1a314f, #142640 66%, #0d1b31);
}

.orig-scene-layer-v3 {
  position: absolute;
  inset: 0;
  z-index: 6;
  pointer-events: none;
  padding: 0.46rem;
}

.orig3-panel {
  height: 100%;
  border: 1px solid rgba(171, 210, 244, 0.46);
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(13, 24, 40, 0.78), rgba(9, 18, 31, 0.86));
  box-shadow: inset 0 1px 0 rgba(245, 251, 255, 0.06);
  padding: 0.33rem;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 0.28rem;
}

.orig3-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.26rem;
}

.orig3-title {
  color: #d2e8ff;
  font-size: 0.54rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.orig3-value {
  color: #f2fbff;
  border: 1px solid rgba(193, 223, 249, 0.68);
  border-radius: 999px;
  background: rgba(8, 18, 31, 0.78);
  padding: 0.14rem 0.34rem;
  font-family: "Sora", "Segoe UI", sans-serif;
  font-size: 0.54rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1;
  white-space: nowrap;
}

.orig3-stage {
  min-height: 0;
  border: 1px solid rgba(165, 205, 239, 0.42);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(15, 29, 47, 0.78), rgba(10, 20, 34, 0.85));
  padding: 0.3rem;
  display: grid;
  gap: 0.26rem;
}

.orig3-foot {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.22rem;
}

.orig3-foot-chip {
  border: 1px solid rgba(177, 214, 246, 0.52);
  border-radius: 999px;
  background: rgba(8, 18, 31, 0.74);
  color: #cee6ff;
  font-size: 0.48rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1;
  text-transform: uppercase;
  text-align: center;
  padding: 0.13rem 0.24rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.orig3-stage-crash {
  grid-template-rows: 1fr auto;
}

.orig3-crash-bars {
  min-height: 0;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  align-items: end;
  gap: 0.14rem;
}

.orig3-crash-bar {
  height: var(--bar-height, 40%);
  border-radius: 4px 4px 2px 2px;
  background: linear-gradient(180deg, rgba(136, 228, 255, 0.94), rgba(84, 142, 255, 0.9));
  box-shadow: 0 0 0 1px rgba(180, 217, 248, 0.18);
  animation: orig3CrashBar 2.5s ease-in-out var(--bar-delay, 0ms) infinite;
}

.orig3-trend {
  position: relative;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(159, 217, 255, 0.34), rgba(159, 217, 255, 0.08));
  overflow: hidden;
}

.orig3-trend-dot {
  position: absolute;
  top: 50%;
  left: -8px;
  width: 7px;
  aspect-ratio: 1;
  border-radius: 999px;
  transform: translateY(-50%);
  background: #b9f0ff;
  box-shadow: 0 0 7px rgba(121, 209, 255, 0.9);
  animation: orig3TrendDot 2.6s linear infinite;
}

.orig3-stage-dice {
  grid-template-rows: 1fr auto;
}

.orig3-dice-gauge {
  position: relative;
  align-self: center;
  height: 12px;
  border-radius: 999px;
  border: 1px solid rgba(171, 211, 244, 0.5);
  background: rgba(10, 18, 30, 0.82);
  overflow: visible;
}

.orig3-dice-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #5de7c4, #78beff 74%, #c5ddff);
  box-shadow: 0 0 9px rgba(94, 226, 191, 0.28);
  animation: orig3DiceFill 3.4s ease-in-out infinite;
}

.orig3-dice-marker {
  position: absolute;
  top: -8px;
  transform: translateX(-50%);
  border: 1px solid rgba(184, 219, 249, 0.74);
  border-radius: 999px;
  background: rgba(8, 18, 31, 0.9);
  color: #eff8ff;
  font-size: 0.42rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1;
  padding: 0.11rem 0.2rem;
}

.orig3-dice-picks {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.22rem;
}

.orig3-dice-pick {
  border: 1px solid rgba(179, 215, 246, 0.52);
  border-radius: 7px;
  background: rgba(11, 21, 36, 0.76);
  color: #cfe7ff;
  text-align: center;
  font-size: 0.49rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  line-height: 1;
  padding: 0.18rem 0.2rem;
}

.orig3-dice-pick.is-soft {
  border-color: rgba(164, 237, 211, 0.62);
  color: #d5ffeb;
}

.orig3-stage-doors {
  align-items: stretch;
}

.orig3-doors {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.2rem;
}

.orig3-door {
  border: 1px solid rgba(173, 208, 245, 0.54);
  border-radius: 6px;
  background: linear-gradient(180deg, #4b79b2, #2b486d 58%, #1a314f);
  box-shadow: inset 0 -8px 14px rgba(5, 12, 22, 0.38);
  display: grid;
  place-items: center;
  min-height: 34px;
  animation: orig3DoorIdle 2.7s ease-in-out infinite;
}

.orig3-door.is-safe {
  border-color: rgba(148, 233, 198, 0.78);
  box-shadow:
    inset 0 -8px 14px rgba(5, 12, 22, 0.38),
    0 0 0 1px rgba(148, 233, 198, 0.2);
  animation-name: orig3DoorSafe;
}

.orig3-door-label {
  color: #f2f8ff;
  font-family: "Sora", "Segoe UI", sans-serif;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1;
}

.orig3-stage-slots {
  align-items: stretch;
}

.orig3-slots-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.16rem;
}

.orig3-slot {
  border: 1px solid rgba(170, 206, 239, 0.48);
  border-radius: 5px;
  background: rgba(14, 28, 45, 0.8);
  color: #ddefff;
  display: grid;
  place-items: center;
  min-height: 18px;
  font-family: "Sora", "Segoe UI", sans-serif;
  font-size: 0.48rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  line-height: 1;
}

.orig3-slot.is-seven {
  color: #ffe3b1;
}

.orig3-slot.is-multi {
  color: #c9fbe4;
}

.orig3-stage-mines {
  align-items: stretch;
}

.orig3-mines-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.11rem;
}

.orig3-mine {
  border: 1px solid rgba(168, 206, 243, 0.46);
  border-radius: 4px;
  background: rgba(16, 31, 50, 0.82);
  min-height: 12px;
  display: grid;
  place-items: center;
  color: #dceeff;
  font-size: 0.36rem;
  font-weight: 700;
  line-height: 1;
}

.orig3-mine.is-mine {
  border-color: rgba(241, 133, 160, 0.72);
  background: rgba(241, 133, 160, 0.3);
  color: #ffe3ec;
}

.orig3-mine.is-safe {
  border-color: rgba(103, 227, 176, 0.72);
  background: rgba(103, 227, 176, 0.28);
  color: #d7ffec;
}

.orig3-stage-cars {
  align-items: stretch;
}

.orig3-cars-lanes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.18rem;
}

.orig3-car-lane {
  border: 1px solid rgba(170, 205, 239, 0.45);
  border-radius: 5px;
  background:
    repeating-linear-gradient(180deg, rgba(232, 242, 255, 0.84) 0 7px, rgba(232, 242, 255, 0) 7px 14px),
    rgba(13, 25, 41, 0.84);
  background-size: 1px 14px, auto;
  background-position: 50% 0, 0 0;
  min-height: 38px;
  display: grid;
  align-items: end;
  justify-items: center;
  padding-bottom: 4px;
  animation: orig3LaneFlow 0.9s linear infinite;
}

.orig3-car {
  width: 10px;
  height: 15px;
  border-radius: 4px;
  border: 1px solid rgba(194, 225, 252, 0.7);
  box-shadow: 0 1px 4px rgba(7, 13, 23, 0.4);
  background: linear-gradient(180deg, #d0e8ff, #759acb);
}

.orig3-car.is-traffic {
  animation: orig3TrafficBob 2.3s ease-in-out infinite;
}

.orig3-car.is-player {
  border-color: rgba(255, 221, 171, 0.76);
  background: linear-gradient(180deg, #ffe2af, #bb7e37);
  animation: orig3PlayerBob 2.3s ease-in-out infinite;
}

.originals-card:hover .orig-preview.orig-preview-v3,
.originals-mode-card:hover .orig-preview.orig-preview-v3 {
  transform: translateY(-1px);
  border-color: rgba(210, 231, 249, 0.76);
  box-shadow:
    inset 0 1px 0 rgba(252, 255, 255, 0.12),
    0 18px 31px rgba(2, 7, 13, 0.4);
}

.originals-card:hover .orig3-panel,
.originals-mode-card:hover .orig3-panel {
  border-color: rgba(190, 222, 248, 0.64);
}

.originals-card:hover .orig3-value,
.originals-mode-card:hover .orig3-value {
  border-color: rgba(208, 231, 251, 0.88);
}

@keyframes orig3CrashBar {
  0%,
  100% {
    transform: translateY(1px) scaleY(0.94);
  }
  50% {
    transform: translateY(-1px) scaleY(1.03);
  }
}

@keyframes orig3TrendDot {
  0% {
    left: -8px;
  }
  100% {
    left: calc(100% - 6px);
  }
}

@keyframes orig3DiceFill {
  0%,
  100% {
    filter: saturate(0.92);
  }
  50% {
    filter: saturate(1.08);
  }
}

@keyframes orig3DoorIdle {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(1px);
  }
}

@keyframes orig3DoorSafe {
  0%,
  100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-1px) scale(1.02);
  }
}

@keyframes orig3LaneFlow {
  to {
    background-position: 50% 14px, 0 0;
  }
}

@keyframes orig3TrafficBob {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(2px);
  }
}

@keyframes orig3PlayerBob {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-2px);
  }
}

@media (max-width: 560px) {
  .orig-scene-layer-v3 {
    padding: 0.38rem;
  }

  .orig3-panel {
    padding: 0.28rem;
    gap: 0.24rem;
  }

  .orig3-title {
    font-size: 0.5rem;
  }

  .orig3-value,
  .orig3-foot-chip {
    font-size: 0.46rem;
  }

  .orig3-stage {
    padding: 0.24rem;
  }

  .orig3-door {
    min-height: 30px;
  }
}

@media (max-width: 430px) {
  .orig-scene-layer-v3 {
    padding: 0.34rem;
  }

  .orig3-panel {
    border-radius: 9px;
  }

  .orig3-foot {
    gap: 0.18rem;
  }

  .orig3-foot-chip {
    padding-inline: 0.18rem;
  }

  .orig3-mine {
    min-height: 10px;
    font-size: 0.33rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .orig-preview.orig-preview-v3,
  .orig-preview.orig-preview-v3 * {
    animation: none !important;
    transition: none !important;
  }
}

/* Originals gameplay previews (v4) */
.orig-preview.orig-preview-v4 {
  border-color: rgba(171, 208, 241, 0.58);
  background: linear-gradient(180deg, #152741, #101d31 66%, #0b1626);
  box-shadow:
    inset 0 1px 0 rgba(246, 252, 255, 0.1),
    0 12px 28px rgba(3, 8, 14, 0.35);
}

.orig-preview.orig-preview-v4::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(222, 239, 255, 0.14), rgba(222, 239, 255, 0) 34%),
    linear-gradient(180deg, rgba(5, 12, 22, 0) 64%, rgba(5, 12, 22, 0.54));
}

.orig-preview.orig-preview-v4::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background: radial-gradient(220px circle at 50% 116%, rgba(4, 10, 18, 0.68), rgba(4, 10, 18, 0));
}

.orig-preview-v4 .orig-preview-image {
  opacity: 0.08;
  transform: scale(1.01);
  filter: saturate(0.62) contrast(1.06) brightness(0.76);
}

.orig-preview-v4 .orig-preview-tag {
  display: none;
}

.orig-scene-layer-v4 {
  position: absolute;
  inset: 0;
  z-index: 6;
  pointer-events: none;
  padding: 0.34rem;
}

.orig-scene-layer-v4 .orig-real-stage {
  width: 100%;
  height: 100%;
  min-height: 0;
  border-radius: 9px;
  overflow: hidden;
}

.orig-scene-layer-v4 .crash-stage {
  height: 100%;
  min-height: 0;
  padding: 0.28rem;
}

.orig-real-crash-chart {
  position: absolute;
  inset: 0.34rem;
  border: 1px solid rgba(164, 205, 246, 0.44);
  border-radius: 8px;
  background: rgba(8, 18, 32, 0.6);
  overflow: hidden;
}

.orig-real-crash-grid {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(transparent 91%, rgba(164, 205, 246, 0.24) 92%, transparent 93%),
    linear-gradient(90deg, transparent 91%, rgba(164, 205, 246, 0.22) 92%, transparent 93%);
  background-size: 12px 12px;
  opacity: 0.8;
}

.orig-real-crash-line {
  position: absolute;
  left: 7%;
  right: 8%;
  bottom: 11%;
  height: 60%;
  clip-path: polygon(0 96%, 11% 88%, 22% 78%, 34% 70%, 50% 52%, 66% 38%, 82% 20%, 100% 4%, 100% 100%, 0 100%);
  background: linear-gradient(180deg, rgba(96, 228, 255, 0.52), rgba(80, 140, 255, 0.9));
  filter: drop-shadow(0 0 8px rgba(95, 201, 255, 0.5));
  animation: origRealCrashLine 3.2s ease-in-out infinite;
}

.orig-real-crash-dot {
  position: absolute;
  right: 8%;
  top: 10%;
  width: 6px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: #b3efff;
  box-shadow: 0 0 0 3px rgba(120, 210, 255, 0.18), 0 0 10px rgba(120, 210, 255, 0.72);
  animation: origRealCrashDot 3.2s ease-in-out infinite;
}

.orig-scene-layer-v4 .crash-overlay {
  top: 0.46rem;
  right: 0.46rem;
  padding: 0.26rem 0.34rem;
  border-radius: 7px;
  gap: 0;
}

.orig-scene-layer-v4 .crash-overlay span {
  font-size: 0.46rem;
  letter-spacing: 0.08em;
}

.orig-scene-layer-v4 .crash-overlay strong {
  font-size: 0.64rem;
  text-shadow: 0 0 10px rgba(30, 200, 255, 0.36);
}

.orig-scene-layer-v4 .crash-timer {
  left: 0.46rem;
  right: 0.46rem;
  bottom: 0.46rem;
  padding: 0.22rem 0.32rem;
  border-radius: 7px;
}

.orig-scene-layer-v4 .crash-timer-head span {
  font-size: 0.46rem;
}

.orig-scene-layer-v4 .crash-timer-head strong {
  font-size: 0.56rem;
}

.orig-scene-layer-v4 .dice-stage {
  min-height: 0;
  height: 100%;
  padding: 0.28rem;
}

.orig-scene-layer-v4 .roll-ring {
  width: min(112px, 100%);
  border-width: 1px;
  box-shadow:
    inset 0 0 16px rgba(30, 200, 255, 0.18),
    0 0 16px rgba(30, 200, 255, 0.16);
}

.orig-scene-layer-v4 .ring-zone {
  border-radius: 6px;
  font-size: 0.42rem;
  padding: 0.13rem 0.18rem;
}

.orig-scene-layer-v4 .ring-zone.zone-left {
  left: -2px;
  top: 6px;
}

.orig-scene-layer-v4 .ring-zone.zone-right {
  right: -2px;
  top: 6px;
}

.orig-scene-layer-v4 .ring-pointer {
  width: 2px;
  height: 41%;
}

.orig-scene-layer-v4 .ring-core {
  inset: 33%;
}

.orig-scene-layer-v4 .ring-core span {
  font-size: 0.62rem;
}

.orig-scene-layer-v4 .ring-core small {
  font-size: 0.45rem;
}

.orig-scene-layer-v4 .doors-stage {
  min-height: 0;
  height: 100%;
  padding: 0.28rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: minmax(0, 1fr);
  gap: 0.22rem;
  perspective: 760px;
}

.orig-scene-layer-v4 .play-door {
  border-radius: 7px;
  min-height: 0;
  cursor: default;
  box-shadow: inset 0 0 0 1px rgba(195, 221, 255, 0.06);
}

.orig-scene-layer-v4 .play-door:hover {
  transform: none;
}

.orig-scene-layer-v4 .play-door .door-core {
  min-width: 0;
  width: calc(100% - 0.8rem);
  bottom: 8%;
  font-size: 0.44rem;
  padding: 0.1rem 0.22rem;
}

.orig-scene-layer-v4 .play-door .door-core::after {
  width: 5px;
  height: 5px;
  right: 6px;
}

.orig-scene-layer-v4 .slot-stage {
  min-height: 0;
  height: 100%;
  padding: 0.24rem;
}

.orig-scene-layer-v4 .slot-machine-shell {
  height: 100%;
  padding: 0.24rem;
  gap: 0.18rem;
}

.orig-scene-layer-v4 .slot-machine-head,
.orig-scene-layer-v4 .slot-machine-foot {
  padding: 0.18rem 0.26rem;
  border-radius: 6px;
  gap: 0.2rem;
}

.orig-scene-layer-v4 .slot-machine-head span,
.orig-scene-layer-v4 .slot-machine-foot span {
  font-size: 0.42rem;
}

.orig-scene-layer-v4 .slot-machine-head strong {
  font-size: 0.52rem;
}

.orig-scene-layer-v4 .slot-window {
  flex: 1;
  min-height: 0;
  padding: 0.16rem;
  gap: 0.12rem;
  border-radius: 6px;
}

.orig-scene-layer-v4 .slot-window::after {
  left: 0.16rem;
  right: 0.16rem;
}

.orig-scene-layer-v4 .slot-reel {
  height: 58px;
  border-radius: 5px;
}

.orig-scene-layer-v4 .slot-reel::before,
.orig-scene-layer-v4 .slot-reel::after {
  height: 10px;
}

.orig-scene-layer-v4 .slot-symbol {
  height: 19px;
  font-size: 0.42rem;
}

.orig-scene-layer-v4 .slot-symbol em {
  font-size: 0.74rem;
}

.orig-scene-layer-v4 .mines-stage {
  min-height: 0;
  height: 100%;
  padding: 0.28rem;
}

.orig-scene-layer-v4 .mines-grid {
  height: 100%;
  gap: 0.12rem;
}

.orig-scene-layer-v4 .mines-cell {
  border-radius: 4px;
  display: grid;
  place-items: center;
  font-size: 0.38rem;
  cursor: default;
}

.orig-scene-layer-v4 .mines-cell:hover {
  transform: none;
}

.orig-scene-layer-v4 .cars-stage {
  min-height: 0;
  height: 100%;
  position: relative;
}

.orig-real-cars-road {
  position: absolute;
  inset: 0.3rem;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.14rem;
}

.orig-real-cars-lane {
  position: relative;
  border: 1px solid rgba(162, 194, 228, 0.42);
  border-radius: 6px;
  background: linear-gradient(180deg, rgba(14, 22, 35, 0.86), rgba(9, 14, 22, 0.9));
  overflow: hidden;
  display: grid;
  align-items: end;
  justify-items: center;
  padding-bottom: 4px;
}

.orig-real-cars-lane::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -16px;
  bottom: -16px;
  width: 1px;
  transform: translateX(-50%);
  background: repeating-linear-gradient(180deg, rgba(232, 242, 255, 0.86) 0 7px, rgba(232, 242, 255, 0) 7px 14px);
  animation: origRealLaneFlow 1s linear infinite;
}

.orig-real-car {
  width: 10px;
  height: 15px;
  border-radius: 4px;
  border: 1px solid rgba(188, 222, 254, 0.72);
  box-shadow: 0 1px 4px rgba(6, 12, 22, 0.42);
  position: relative;
  z-index: 2;
}

.orig-real-car.traffic {
  background: linear-gradient(180deg, #cde7ff, #6a93c8);
  animation: origRealTrafficBob 2.2s ease-in-out infinite;
}

.orig-real-car.player {
  border-color: rgba(255, 225, 170, 0.76);
  background: linear-gradient(180deg, #ffe3b1, #bc7f37);
  animation: origRealPlayerBob 2.2s ease-in-out infinite;
}

.orig-scene-layer-v4 .cars-overlay {
  top: 0.42rem;
  left: 0.42rem;
  padding: 0.22rem 0.28rem;
  border-radius: 7px;
  gap: 0.03rem;
}

.orig-scene-layer-v4 .cars-overlay span {
  font-size: 0.46rem;
  letter-spacing: 0.06em;
}

.orig-scene-layer-v4 .cars-overlay strong {
  font-size: 0.58rem;
}

.originals-card:hover .orig-preview.orig-preview-v4,
.originals-mode-card:hover .orig-preview.orig-preview-v4 {
  transform: translateY(-1px);
  border-color: rgba(210, 231, 249, 0.78);
  box-shadow:
    inset 0 1px 0 rgba(252, 255, 255, 0.12),
    0 18px 32px rgba(2, 7, 13, 0.4);
}

.originals-card:hover .orig-scene-layer-v4,
.originals-mode-card:hover .orig-scene-layer-v4 {
  filter: saturate(1.06);
}

@keyframes origRealCrashLine {
  0%,
  100% {
    transform: translateY(1px) scaleY(0.96);
  }
  50% {
    transform: translateY(-1px) scaleY(1.02);
  }
}

@keyframes origRealCrashDot {
  0%,
  100% {
    transform: scale(0.9);
    opacity: 0.72;
  }
  50% {
    transform: scale(1.14);
    opacity: 1;
  }
}

@keyframes origRealLaneFlow {
  to {
    transform: translateX(-50%) translateY(14px);
  }
}

@keyframes origRealTrafficBob {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(2px);
  }
}

@keyframes origRealPlayerBob {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-2px);
  }
}

@media (max-width: 560px) {
  .orig-scene-layer-v4 {
    padding: 0.3rem;
  }

  .orig-scene-layer-v4 .roll-ring {
    width: min(104px, 100%);
  }

  .orig-scene-layer-v4 .slot-reel {
    height: 52px;
  }

  .orig-scene-layer-v4 .slot-symbol {
    height: 17px;
  }
}

@media (max-width: 430px) {
  .orig-scene-layer-v4 {
    padding: 0.26rem;
  }

  .orig-scene-layer-v4 .crash-overlay,
  .orig-scene-layer-v4 .cars-overlay {
    padding: 0.18rem 0.22rem;
  }

  .orig-scene-layer-v4 .doors-stage {
    gap: 0.16rem;
  }

  .orig-scene-layer-v4 .play-door .door-core {
    font-size: 0.4rem;
  }

  .orig-scene-layer-v4 .mines-cell {
    font-size: 0.33rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .orig-preview.orig-preview-v4,
  .orig-preview.orig-preview-v4 * {
    animation: none !important;
    transition: none !important;
  }
}

/* Originals gameplay previews remake (v5) */
.orig-preview.orig-preview-v5 {
  border-color: rgba(177, 212, 241, 0.62);
  background: linear-gradient(180deg, #1a2f4e, #13243c 66%, #0c1829);
  box-shadow:
    inset 0 1px 0 rgba(248, 252, 255, 0.1),
    0 13px 30px rgba(2, 7, 13, 0.38);
}

.orig-preview.orig-preview-v5::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  background:
    linear-gradient(180deg, rgba(224, 239, 255, 0.14), rgba(224, 239, 255, 0) 34%),
    linear-gradient(180deg, rgba(5, 12, 22, 0) 64%, rgba(5, 12, 22, 0.58));
}

.orig-preview.orig-preview-v5::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 3;
  background: radial-gradient(220px circle at 50% 116%, rgba(4, 10, 18, 0.7), rgba(4, 10, 18, 0));
}

.orig-preview-v5 .orig-preview-image {
  opacity: 0.08;
  transform: scale(1.01);
  filter: saturate(0.62) contrast(1.07) brightness(0.75);
}

.orig-preview-v5 .orig-preview-tag {
  display: none;
}

.orig-preview-v5.orig-preview-crash {
  background:
    radial-gradient(220px circle at 18% 6%, rgba(88, 206, 255, 0.3), transparent 62%),
    radial-gradient(220px circle at 82% -4%, rgba(108, 157, 255, 0.28), transparent 58%),
    linear-gradient(180deg, #1a3155, #132744 66%, #0c1c30);
}

.orig-preview-v5.orig-preview-dice {
  background:
    radial-gradient(220px circle at 20% 6%, rgba(73, 217, 182, 0.24), transparent 62%),
    radial-gradient(220px circle at 84% -6%, rgba(123, 181, 255, 0.22), transparent 58%),
    linear-gradient(180deg, #153150, #112640 66%, #0b1b2f);
}

.orig-preview-v5.orig-preview-doors {
  background:
    radial-gradient(220px circle at 50% -26%, rgba(145, 182, 255, 0.24), transparent 62%),
    linear-gradient(180deg, #1a3051, #13253f 66%, #0d1b2f);
}

.orig-preview-v5.orig-preview-slots {
  background:
    radial-gradient(220px circle at 50% -24%, rgba(95, 223, 255, 0.22), transparent 62%),
    linear-gradient(180deg, #17335a, #122845 66%, #0d1d34);
}

.orig-preview-v5.orig-preview-mines {
  background:
    radial-gradient(220px circle at 22% -8%, rgba(112, 194, 255, 0.24), transparent 62%),
    linear-gradient(180deg, #173456, #122845 66%, #0d1f36);
}

.orig-preview-v5.orig-preview-cars {
  background:
    radial-gradient(220px circle at 20% 8%, rgba(122, 197, 255, 0.24), transparent 62%),
    linear-gradient(180deg, #1a314f, #142640 66%, #0d1b31);
}

.orig-scene-layer-v5 {
  position: absolute;
  inset: 0;
  z-index: 6;
  pointer-events: none;
  padding: 0.34rem;
}

.orig5-shell {
  height: 100%;
  border: 1px solid rgba(171, 210, 244, 0.5);
  border-radius: 9px;
  background: linear-gradient(180deg, rgba(13, 24, 40, 0.8), rgba(9, 18, 31, 0.87));
  box-shadow: inset 0 1px 0 rgba(245, 251, 255, 0.06);
  padding: 0.24rem;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 0.22rem;
  min-height: 0;
}

.orig5-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.2rem;
}

.orig5-badge,
.orig5-value,
.orig5-chip {
  border: 1px solid rgba(187, 220, 248, 0.64);
  border-radius: 999px;
  background: rgba(8, 18, 31, 0.78);
  color: #e3f2ff;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  line-height: 1;
  white-space: nowrap;
}

.orig5-badge {
  max-width: 68%;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 0.44rem;
  font-weight: 700;
  padding: 0.11rem 0.25rem;
}

.orig5-value {
  font-family: "Sora", "Segoe UI", sans-serif;
  font-size: 0.48rem;
  font-weight: 700;
  padding: 0.12rem 0.26rem;
}

.orig5-foot {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.14rem;
}

.orig5-chip {
  font-size: 0.41rem;
  font-weight: 700;
  text-align: center;
  padding: 0.1rem 0.18rem;
  overflow: hidden;
  text-overflow: ellipsis;
}

.orig5-crash-plot {
  position: relative;
  border: 1px solid rgba(164, 205, 246, 0.46);
  border-radius: 7px;
  background: rgba(8, 18, 32, 0.62);
  overflow: hidden;
}

.orig5-crash-grid {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(transparent 91%, rgba(164, 205, 246, 0.24) 92%, transparent 93%),
    linear-gradient(90deg, transparent 91%, rgba(164, 205, 246, 0.22) 92%, transparent 93%);
  background-size: 12px 12px;
  opacity: 0.8;
}

.orig5-crash-path {
  position: absolute;
  left: 7%;
  right: 8%;
  bottom: 14%;
  height: 56%;
  clip-path: polygon(0 96%, 12% 88%, 24% 78%, 36% 66%, 52% 52%, 68% 36%, 84% 18%, 100% 4%, 100% 100%, 0 100%);
  background: linear-gradient(180deg, rgba(96, 228, 255, 0.54), rgba(82, 142, 255, 0.9));
  filter: drop-shadow(0 0 8px rgba(95, 201, 255, 0.52));
  animation: orig5CrashPath 2.8s ease-in-out infinite;
}

.orig5-crash-plane {
  position: absolute;
  right: 8%;
  top: 16%;
  width: 11px;
  height: 5px;
  border-radius: 3px;
  background: linear-gradient(90deg, #f5fcff, #9fd9ff);
  box-shadow: 0 0 8px rgba(143, 214, 255, 0.66);
  transform: skewX(-18deg);
  animation: orig5CrashPlane 2.8s ease-in-out infinite;
}

.orig5-crash-glow {
  position: absolute;
  right: 14%;
  top: 40%;
  width: 54px;
  height: 1px;
  background: linear-gradient(90deg, rgba(190, 233, 255, 0.92), rgba(190, 233, 255, 0));
  transform-origin: right center;
  animation: orig5CrashGlow 2.8s ease-in-out infinite;
}

.orig5-crash-bottom {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.14rem;
  align-items: center;
}

.orig5-crash-timer {
  border: 1px solid rgba(176, 212, 244, 0.58);
  border-radius: 6px;
  background: rgba(8, 18, 32, 0.8);
  display: grid;
  gap: 0.02rem;
  padding: 0.1rem 0.18rem;
}

.orig5-crash-timer-label {
  color: #b9d8f6;
  font-size: 0.4rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.orig5-crash-timer-value {
  color: #edf8ff;
  font-family: "Sora", "Segoe UI", sans-serif;
  font-size: 0.44rem;
  font-weight: 700;
}

.orig5-crash-history {
  display: flex;
  gap: 0.12rem;
  justify-content: flex-end;
}

.orig5-crash-history .orig5-chip:last-child {
  border-color: rgba(133, 236, 192, 0.72);
  color: #d2ffeb;
}

.orig5-dice-wrap {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.16rem;
}

.orig5-dice-zone {
  border: 1px solid rgba(177, 214, 246, 0.52);
  border-radius: 6px;
  background: rgba(8, 18, 31, 0.74);
  color: #cfe7ff;
  font-size: 0.38rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1;
  padding: 0.1rem 0.14rem;
}

.orig5-dice-zone.left {
  border-color: rgba(103, 227, 176, 0.68);
  color: #ccffe8;
}

.orig5-dice-zone.right {
  border-color: rgba(239, 150, 173, 0.68);
  color: #ffd7e1;
}

.orig5-dice-wheel {
  position: relative;
  width: 86px;
  aspect-ratio: 1;
  margin-inline: auto;
  border-radius: 50%;
  border: 1px solid rgba(176, 214, 245, 0.72);
  background:
    radial-gradient(circle at 50% 50%, rgba(10, 21, 43, 0.94) 52%, transparent 53%),
    conic-gradient(from -90deg, rgba(239, 112, 140, 0.9) 0 47%, rgba(52, 224, 156, 0.97) 47% 100%);
  box-shadow:
    inset 0 0 18px rgba(30, 200, 255, 0.24),
    0 0 16px rgba(30, 200, 255, 0.2);
}

.orig5-dice-pointer {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 2px;
  height: 41%;
  transform-origin: 50% 100%;
  transform: translate(-50%, -100%) rotate(20deg);
  background: linear-gradient(180deg, #ffd37f, rgba(255, 180, 86, 0.08));
  box-shadow: 0 0 8px rgba(255, 203, 116, 0.42);
  animation: orig5DicePointer 2.4s cubic-bezier(0.2, 0.8, 0.22, 1) infinite;
}

.orig5-dice-core {
  position: absolute;
  inset: 33%;
  border-radius: 50%;
  border: 1px solid rgba(188, 220, 255, 0.62);
  background: rgba(10, 20, 43, 0.93);
  display: grid;
  place-items: center;
  text-align: center;
}

.orig5-dice-roll {
  color: #dcf0ff;
  font-family: "Sora", "Segoe UI", sans-serif;
  font-size: 0.58rem;
  font-weight: 700;
  line-height: 1;
}

.orig5-dice-roll-label {
  color: #a7c4e9;
  font-size: 0.36rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  line-height: 1;
}

.orig5-dice-controls {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.14rem;
}

.orig5-dice-btn {
  border: 1px solid rgba(172, 210, 244, 0.56);
  border-radius: 6px;
  background: rgba(11, 21, 36, 0.76);
  color: #cfe7ff;
  text-align: center;
  font-size: 0.4rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  line-height: 1;
  padding: 0.12rem 0.14rem;
}

.orig5-dice-btn.active {
  border-color: rgba(126, 230, 184, 0.72);
  background: rgba(57, 184, 141, 0.22);
  color: #d7ffec;
}

.orig5-doors-deck {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.14rem;
}

.orig5-door {
  position: relative;
  border: 1px solid rgba(173, 208, 245, 0.56);
  border-radius: 7px;
  overflow: hidden;
  background: linear-gradient(180deg, #4a77b0, #2b486c 58%, #1a314f);
  min-height: 34px;
  box-shadow: inset 0 -8px 12px rgba(5, 12, 22, 0.36);
}

.orig5-door-portal {
  position: absolute;
  inset: 12% 10%;
  border-radius: 7px;
  background:
    radial-gradient(ellipse at 50% 24%, rgba(119, 226, 255, 0.58), rgba(32, 111, 255, 0.1) 62%),
    linear-gradient(180deg, rgba(8, 23, 53, 0.92), rgba(7, 13, 27, 0.95));
  opacity: 0.16;
}

.orig5-door-leaf {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 50%;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.13) 0 2px, transparent 2px 100%),
    linear-gradient(180deg, #3b629e, #223b63 58%, #172b4a);
  transition: transform 560ms cubic-bezier(0.2, 0.82, 0.2, 1);
}

.orig5-door-leaf.left {
  left: 0;
  transform-origin: left center;
  border-right: 1px solid rgba(178, 211, 255, 0.56);
}

.orig5-door-leaf.right {
  right: 0;
  transform-origin: right center;
  border-left: 1px solid rgba(178, 211, 255, 0.56);
}

.orig5-door-core {
  position: absolute;
  left: 50%;
  bottom: 8%;
  transform: translateX(-50%);
  width: calc(100% - 0.48rem);
  border-radius: 6px;
  border: 1px solid rgba(255, 179, 71, 0.54);
  background: rgba(255, 179, 71, 0.16);
  color: #f8d18f;
  font-size: 0.39rem;
  font-weight: 700;
  line-height: 1;
  text-align: center;
  padding: 0.1rem 0.14rem;
  text-transform: uppercase;
}

.orig5-door.is-open .orig5-door-leaf.left {
  transform: perspective(700px) rotateY(-108deg);
}

.orig5-door.is-open .orig5-door-leaf.right {
  transform: perspective(700px) rotateY(108deg);
}

.orig5-door.safe {
  border-color: rgba(51, 211, 154, 0.68);
}

.orig5-door.safe .orig5-door-portal {
  opacity: 1;
  background:
    radial-gradient(ellipse at 50% 24%, rgba(94, 255, 191, 0.72), rgba(57, 202, 135, 0.15) 62%),
    linear-gradient(180deg, rgba(5, 29, 30, 0.88), rgba(4, 18, 20, 0.95));
}

.orig5-door.safe .orig5-door-core {
  border-color: rgba(51, 211, 154, 0.66);
  background: rgba(51, 211, 154, 0.2);
  color: #a8f0d2;
}

.orig5-door.trap {
  border-color: rgba(239, 112, 140, 0.7);
}

.orig5-door.trap .orig5-door-portal {
  opacity: 1;
  background:
    radial-gradient(ellipse at 50% 24%, rgba(255, 147, 169, 0.76), rgba(239, 112, 140, 0.2) 62%),
    linear-gradient(180deg, rgba(35, 10, 25, 0.9), rgba(21, 7, 15, 0.96));
}

.orig5-door.trap .orig5-door-core {
  border-color: rgba(239, 112, 140, 0.66);
  background: rgba(239, 112, 140, 0.2);
  color: #ffc2cf;
}

.orig5-slots-window {
  position: relative;
  border: 1px solid rgba(165, 204, 255, 0.46);
  border-radius: 7px;
  background:
    radial-gradient(340px circle at 50% -10%, rgba(30, 200, 255, 0.14), transparent 60%),
    linear-gradient(180deg, #102043, #0a162e);
  padding: 0.16rem;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.1rem;
  overflow: hidden;
}

.orig5-slots-payline {
  position: absolute;
  left: 0.16rem;
  right: 0.16rem;
  top: 50%;
  height: 1px;
  transform: translateY(-0.5px);
  background: linear-gradient(90deg, rgba(255, 224, 166, 0), rgba(255, 224, 166, 0.78), rgba(255, 224, 166, 0));
  pointer-events: none;
  z-index: 4;
}

.orig5-slot-reel {
  border: 1px solid rgba(158, 197, 250, 0.42);
  border-radius: 5px;
  background: linear-gradient(180deg, rgba(22, 36, 59, 0.96), rgba(11, 21, 38, 0.96));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  display: grid;
  grid-template-rows: repeat(3, minmax(0, 1fr));
  overflow: hidden;
  min-height: 58px;
  animation: orig5ReelFloat 2.6s ease-in-out infinite;
}

.orig5-slot-symbol {
  border-bottom: 1px solid rgba(167, 203, 251, 0.2);
  display: grid;
  place-items: center;
  font-family: "Sora", "Segoe UI", sans-serif;
  font-size: 0.38rem;
  font-weight: 700;
  color: #dcefff;
}

.orig5-slot-symbol:last-child {
  border-bottom: 0;
}

.orig5-slot-symbol.seven {
  color: #ffd48a;
}

.orig5-slot-symbol.diamond {
  color: #93defe;
}

.orig5-slot-symbol.crown {
  color: #ffe4bf;
}

.orig5-slot-symbol.bar {
  color: #d6dff7;
}

.orig5-slot-symbol.bolt {
  color: #ffe299;
}

.orig5-slot-symbol.cherry {
  color: #ffb7c9;
}

.orig5-slot-symbol.lemon {
  color: #f8e7b6;
}

.orig5-slot-symbol.atom {
  color: #b8f2ff;
}

.orig5-mines-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.1rem;
}

.orig5-mines-cell {
  aspect-ratio: 1;
  border: 1px solid rgba(172, 209, 255, 0.56);
  border-radius: 4px;
  background: linear-gradient(180deg, #1a3a6e, #12284d);
  display: grid;
  place-items: center;
  color: #e6f0ff;
  font-family: "Sora", "Segoe UI", sans-serif;
  font-size: 0.32rem;
  font-weight: 700;
  line-height: 1;
}

.orig5-mines-cell.is-safe {
  border-color: rgba(51, 211, 154, 0.76);
  background: linear-gradient(180deg, rgba(51, 211, 154, 0.34), rgba(19, 74, 64, 0.74));
  color: #d3f8e8;
}

.orig5-mines-cell.is-mine {
  border-color: rgba(239, 112, 140, 0.78);
  background: linear-gradient(180deg, rgba(239, 112, 140, 0.42), rgba(89, 33, 49, 0.82));
  color: #ffe2e8;
}

.orig5-cars-road {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.1rem;
}

.orig5-cars-lane {
  position: relative;
  border: 1px solid rgba(162, 194, 228, 0.46);
  border-radius: 5px;
  background: linear-gradient(180deg, rgba(14, 22, 35, 0.86), rgba(9, 14, 22, 0.9));
  min-height: 40px;
  display: grid;
  align-items: end;
  justify-items: center;
  padding-bottom: 4px;
  overflow: hidden;
}

.orig5-cars-dash {
  position: absolute;
  left: 50%;
  top: -16px;
  bottom: -16px;
  width: 1px;
  transform: translateX(-50%);
  background: repeating-linear-gradient(180deg, rgba(232, 242, 255, 0.86) 0 7px, rgba(232, 242, 255, 0) 7px 14px);
  animation: orig5LaneDash 0.92s linear infinite;
}

.orig5-cars-car {
  position: relative;
  z-index: 2;
  width: 10px;
  height: 15px;
  border-radius: 4px;
  border: 1px solid rgba(194, 225, 252, 0.72);
  box-shadow: 0 1px 4px rgba(6, 12, 22, 0.42);
}

.orig5-cars-car.traffic {
  background: linear-gradient(180deg, #cde7ff, #6a93c8);
  animation: orig5TrafficBob 2.2s ease-in-out infinite;
}

.orig5-cars-car.player {
  border-color: rgba(255, 225, 170, 0.76);
  background: linear-gradient(180deg, #ffe3b1, #bc7f37);
  animation: orig5PlayerBob 2.2s ease-in-out infinite;
}

.originals-card:hover .orig-preview.orig-preview-v5,
.originals-mode-card:hover .orig-preview.orig-preview-v5 {
  transform: translateY(-1px);
  border-color: rgba(210, 231, 249, 0.78);
  box-shadow:
    inset 0 1px 0 rgba(252, 255, 255, 0.12),
    0 18px 34px rgba(2, 7, 13, 0.42);
}

.originals-card:hover .orig-scene-layer-v5,
.originals-mode-card:hover .orig-scene-layer-v5 {
  filter: saturate(1.08);
}

@keyframes orig5CrashPath {
  0%,
  100% {
    transform: translateY(1px) scaleY(0.96);
  }
  50% {
    transform: translateY(-1px) scaleY(1.03);
  }
}

@keyframes orig5CrashPlane {
  0%,
  100% {
    transform: skewX(-18deg) translateY(0);
  }
  50% {
    transform: skewX(-18deg) translateY(-2px);
  }
}

@keyframes orig5CrashGlow {
  0%,
  100% {
    transform: scaleX(0.5) translateX(8px);
    opacity: 0.3;
  }
  50% {
    transform: scaleX(1) translateX(0);
    opacity: 0.88;
  }
}

@keyframes orig5DicePointer {
  0%,
  100% {
    transform: translate(-50%, -100%) rotate(-15deg);
  }
  50% {
    transform: translate(-50%, -100%) rotate(35deg);
  }
}

@keyframes orig5ReelFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-1px);
  }
}

@keyframes orig5LaneDash {
  to {
    transform: translateX(-50%) translateY(14px);
  }
}

@keyframes orig5TrafficBob {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(2px);
  }
}

@keyframes orig5PlayerBob {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-2px);
  }
}

@media (max-width: 560px) {
  .orig-scene-layer-v5 {
    padding: 0.3rem;
  }

  .orig5-shell {
    padding: 0.2rem;
    gap: 0.18rem;
  }

  .orig5-badge,
  .orig5-value,
  .orig5-chip {
    font-size: 0.38rem;
  }

  .orig5-slot-reel {
    min-height: 52px;
  }
}

@media (max-width: 430px) {
  .orig-scene-layer-v5 {
    padding: 0.26rem;
  }

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

  .orig5-crash-history {
    justify-content: flex-start;
  }

  .orig5-door {
    min-height: 30px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .orig-preview.orig-preview-v5,
  .orig-preview.orig-preview-v5 * {
    animation: none !important;
    transition: none !important;
  }
}

/* Originals previews calm visual pass */
.orig-preview.orig-preview-v5 {
  border-color: rgba(157, 188, 214, 0.58);
  background: linear-gradient(180deg, #152236, #101a2a 68%, #0d1522);
  box-shadow: inset 0 1px 0 rgba(245, 250, 255, 0.08), 0 10px 22px rgba(4, 8, 13, 0.3);
}

.orig-preview.orig-preview-v5::before,
.orig-preview.orig-preview-v5::after {
  opacity: 0.45;
}

.orig-preview-v5 .orig-preview-image {
  opacity: 0.05;
  filter: saturate(0.45) contrast(1.03) brightness(0.7);
}

.orig-scene-layer-v5 {
  padding: 0.3rem;
}

.orig5-shell {
  border-color: rgba(156, 189, 216, 0.5);
  background: linear-gradient(180deg, rgba(12, 22, 35, 0.82), rgba(9, 16, 27, 0.9));
  box-shadow: none;
  gap: 0.16rem;
}

.orig5-badge,
.orig5-value,
.orig5-chip {
  border-color: rgba(164, 198, 227, 0.56);
  background: rgba(8, 15, 24, 0.82);
  color: #d8e8f7;
  letter-spacing: 0.02em;
  text-transform: none;
}

.orig5-badge {
  font-size: 0.42rem;
}

.orig5-value {
  font-size: 0.45rem;
}

.orig5-foot {
  display: none;
}

.orig5-crash-plot,
.orig5-dice-wheel,
.orig5-doors-deck,
.orig5-slots-window,
.orig5-mines-grid,
.orig5-cars-road {
  border-radius: 7px;
}

.orig5-crash-glow,
.orig5-crash-history {
  display: none;
}

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

.orig5-crash-timer {
  justify-items: start;
}

.orig5-dice-wrap {
  grid-template-columns: 1fr;
  justify-items: center;
}

.orig5-dice-zone {
  display: none;
}

.orig5-dice-controls {
  gap: 0.1rem;
}

.orig5-door {
  min-height: 32px;
}

.orig5-slot-symbol {
  font-size: 0.34rem;
}

.orig5-mines-cell {
  font-size: 0.28rem;
}

.orig5-cars-lane {
  min-height: 36px;
}

.orig5-cars-car {
  width: 9px;
  height: 14px;
}

.orig-preview.orig-preview-v5,
.orig-preview.orig-preview-v5 * {
  animation: none !important;
}

.originals-card:hover .orig-preview.orig-preview-v5,
.originals-mode-card:hover .orig-preview.orig-preview-v5 {
  transform: translateY(-1px);
  border-color: rgba(183, 212, 236, 0.66);
  box-shadow: inset 0 1px 0 rgba(248, 252, 255, 0.1), 0 14px 24px rgba(3, 7, 12, 0.34);
}

.originals-card:hover .orig-scene-layer-v5,
.originals-mode-card:hover .orig-scene-layer-v5 {
  filter: none;
}

/* Originals previews: clean animated pass (v6) */
.orig-preview.orig-preview-v6 {
  border-color: rgba(171, 208, 235, 0.62);
  background: linear-gradient(180deg, #1a2f4d, #13243b 66%, #0d1a2c);
  box-shadow:
    inset 0 1px 0 rgba(247, 252, 255, 0.1),
    0 12px 28px rgba(3, 7, 12, 0.36);
}

.orig-preview.orig-preview-v6::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: var(--orig-z-overlay);
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(230, 242, 255, 0.14), rgba(230, 242, 255, 0) 32%),
    linear-gradient(180deg, rgba(6, 12, 22, 0) 56%, rgba(6, 12, 22, 0.62));
}

.orig-preview.orig-preview-v6::after {
  content: "";
  position: absolute;
  inset: -8% -24% -8% -24%;
  z-index: var(--orig-z-vignette);
  pointer-events: none;
  background: linear-gradient(112deg, rgba(188, 225, 255, 0) 34%, rgba(188, 225, 255, 0.24) 50%, rgba(188, 225, 255, 0) 66%);
  transform: translateX(-34%);
  animation: orig6Sweep 5.2s linear infinite;
}

.orig-preview-v6 .orig-preview-image {
  opacity: 0.96;
  transform: none;
  object-fit: contain;
  object-position: center;
  filter: saturate(0.95) contrast(1.03) brightness(0.97);
  transition: transform 260ms ease, opacity 260ms ease, filter 260ms ease;
}

.orig-preview-v6 .orig-preview-tag {
  top: 0.4rem;
  right: 0.4rem;
  border-color: rgba(201, 227, 249, 0.86);
  background: rgba(8, 18, 31, 0.82);
  color: #e3f2ff;
  font-size: 0.5rem;
  letter-spacing: 0.04em;
  animation: orig6TagPulse 2.8s ease-in-out infinite;
}

.orig-preview-v6.orig-preview-crash .orig-preview-image {
  animation: orig6CrashDrift 3.4s ease-in-out infinite;
}

.orig-preview-v6.orig-preview-dice .orig-preview-image {
  animation: orig6DiceWobble 2.8s ease-in-out infinite;
}

.orig-preview-v6.orig-preview-doors .orig-preview-image {
  animation: orig6DoorsBreath 3.2s ease-in-out infinite;
}

.orig-preview-v6.orig-preview-slots .orig-preview-image {
  animation: orig6SlotsPulse 1.8s ease-in-out infinite;
}

.orig-preview-v6.orig-preview-mines .orig-preview-image {
  animation: orig6MinesBlink 2.6s ease-in-out infinite;
}

.orig-preview-v6.orig-preview-cars .orig-preview-image {
  animation: orig6CarsDrive 1.5s ease-in-out infinite;
}

.orig-preview-v6 .orig-preview-image {
  animation: none !important;
}

.originals-card:hover .orig-preview.orig-preview-v6,
.originals-mode-card:hover .orig-preview.orig-preview-v6 {
  transform: translateY(-1px);
  border-color: rgba(210, 231, 249, 0.8);
  box-shadow:
    inset 0 1px 0 rgba(252, 255, 255, 0.12),
    0 18px 32px rgba(2, 7, 13, 0.4);
}

.originals-card:hover .orig-preview-v6 .orig-preview-image,
.originals-mode-card:hover .orig-preview-v6 .orig-preview-image {
  opacity: 1;
  filter: saturate(1) contrast(1.06) brightness(1);
}

.originals-card:hover .orig-preview-v6 .orig-preview-tag,
.originals-mode-card:hover .orig-preview-v6 .orig-preview-tag {
  border-color: rgba(216, 235, 251, 0.92);
  background: rgba(9, 21, 36, 0.9);
}

@keyframes orig6Sweep {
  0% {
    transform: translateX(-34%);
  }
  100% {
    transform: translateX(34%);
  }
}

@keyframes orig6TagPulse {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-1px);
  }
}

@keyframes orig6CrashDrift {
  0%,
  100% {
    transform: scale(1.02) translateY(0);
  }
  50% {
    transform: scale(1.03) translateY(-2px);
  }
}

@keyframes orig6DiceWobble {
  0%,
  100% {
    transform: scale(1.02) rotate(-0.8deg);
  }
  50% {
    transform: scale(1.02) rotate(0.8deg);
  }
}

@keyframes orig6DoorsBreath {
  0%,
  100% {
    transform: scale(1.02) translateY(0);
  }
  50% {
    transform: scale(1.03) translateY(-1px);
  }
}

@keyframes orig6SlotsPulse {
  0%,
  100% {
    transform: scale(1.02) translateY(0);
    filter: saturate(0.9) contrast(1.04) brightness(0.95);
  }
  50% {
    transform: scale(1.02) translateY(-2px);
    filter: saturate(1.02) contrast(1.08) brightness(1);
  }
}

@keyframes orig6MinesBlink {
  0%,
  100% {
    transform: scale(1.02);
    filter: saturate(0.9) contrast(1.03) brightness(0.94);
  }
  50% {
    transform: scale(1.02);
    filter: saturate(0.98) contrast(1.07) brightness(0.98);
  }
}

@keyframes orig6CarsDrive {
  0%,
  100% {
    transform: scale(1.02) translateX(0);
  }
  50% {
    transform: scale(1.03) translateX(2px);
  }
}

@media (max-width: 560px) {
  .orig-preview-v6 .orig-preview-tag {
    font-size: 0.46rem;
    padding: 0.16rem 0.3rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .orig-preview.orig-preview-v6,
  .orig-preview.orig-preview-v6 * {
    animation: none !important;
    transition: none !important;
  }
}

/* Originals previews alignment fix */
.game-row .originals-card .game-thumb.orig-preview,
.originals-mode-card .mode-visual.orig-preview {
  aspect-ratio: 16 / 9;
  height: auto;
}

/* Originals previews total rework (v7) */
.orig-preview.orig-preview-v7 {
  border-color: rgba(170, 205, 236, 0.62);
  background: linear-gradient(180deg, #1b2e49, #13233a 66%, #0d1a2b);
  box-shadow:
    inset 0 1px 0 rgba(247, 252, 255, 0.1),
    0 12px 26px rgba(3, 7, 12, 0.34);
}

.orig-preview.orig-preview-v7::before,
.orig-preview.orig-preview-v7::after {
  content: none !important;
}

.orig-preview-v7 .orig-preview-image {
  opacity: 1;
  transform: none !important;
  object-fit: cover;
  object-position: center;
  filter: none;
  animation: none !important;
}

.orig-preview-v7 .orig-preview-tag {
  top: 0.38rem;
  right: 0.38rem;
  border-color: rgba(201, 227, 249, 0.84);
  background: rgba(8, 18, 31, 0.78);
  color: #e3f2ff;
  font-size: 0.49rem;
  letter-spacing: 0.04em;
  animation: none !important;
}

.originals-card:hover .orig-preview.orig-preview-v7,
.originals-mode-card:hover .orig-preview.orig-preview-v7 {
  transform: translateY(-1px);
  border-color: rgba(210, 231, 249, 0.8);
  box-shadow:
    inset 0 1px 0 rgba(252, 255, 255, 0.12),
    0 17px 31px rgba(2, 7, 13, 0.39);
}

.originals-card:hover .orig-preview-v7 .orig-preview-image,
.originals-mode-card:hover .orig-preview-v7 .orig-preview-image {
  opacity: 1;
  filter: none;
}

@media (max-width: 560px) {
  .orig-preview-v7 .orig-preview-tag {
    font-size: 0.45rem;
    padding: 0.16rem 0.3rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .orig-preview.orig-preview-v7,
  .orig-preview.orig-preview-v7 * {
    animation: none !important;
    transition: none !important;
  }
}
