:root {
  color-scheme: dark;
  --bg: #07090c;
  --panel: #11151a;
  --panel-soft: #161a20;
  --panel-strong: #0e1116;
  --text: #f7f7f8;
  --muted: #aaaeb7;
  --border: rgba(239, 56, 56, 0.78);
  --soft-border: rgba(255, 255, 255, 0.11);
  --shadow: 0 20px 55px rgba(0, 0, 0, 0.42);
  --accent: #f04444;
  --accent-2: #ff6a4b;
  --green: #35d662;
  --red: #ff3d3d;
  --nav-bg: rgba(18, 22, 27, 0.96);
  --crash-bg:
    radial-gradient(circle at 69% 46%, rgba(255, 52, 36, 0.2), transparent 28%),
    radial-gradient(circle at 50% 82%, rgba(248, 54, 37, 0.22), transparent 24%),
    linear-gradient(120deg, #0d1116 0%, #111217 48%, #0b0e12 100%);
  --pvp-bg:
    radial-gradient(circle at 69% 54%, rgba(255, 57, 43, 0.34), transparent 20%),
    linear-gradient(118deg, #0e1217 0%, #151417 48%, #0d1014 100%);
  --blackjack-bg:
    radial-gradient(circle at 24% 74%, rgba(255, 62, 44, 0.16), transparent 28%),
    linear-gradient(145deg, #101418 0%, #17191c 100%);
  --bonus-bg:
    radial-gradient(circle at 49% 43%, rgba(255, 60, 42, 0.18), transparent 31%),
    linear-gradient(145deg, #151213 0%, #101318 100%);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--bg);
}

body {
  min-height: 100%;
  margin: 0;
  background:
    radial-gradient(circle at top left, rgba(255, 64, 64, 0.08), transparent 30%),
    var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

.app-splash {
  --splash-mark-opacity: 1;
  --splash-x: 50%;
  --splash-y: 50%;
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background:
    radial-gradient(circle at 52% 45%, rgba(255, 255, 255, 0.12), transparent 30%),
    linear-gradient(145deg, #ff2020 0%, #df080c 54%, #b90408 100%);
  opacity: 1;
  visibility: visible;
  clip-path: circle(150vmax at var(--splash-x) var(--splash-y));
  transition: opacity 0.24s ease, visibility 0.24s ease;
  will-change: clip-path, opacity;
  transform: translateZ(0);
  contain: layout paint style;
}

.app-splash.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  clip-path: circle(0 at var(--splash-x) var(--splash-y));
  transition: none;
}

.app-splash.is-wave {
  opacity: 1;
  visibility: visible;
  transition: none;
}

.app-splash.wave-open {
  animation: splashWaveOpen 0.86s cubic-bezier(0.14, 0.74, 0.16, 1) both;
}

.app-splash.wave-close {
  animation: splashWaveClose 0.76s cubic-bezier(0.38, 0, 0.24, 1) both;
}

.app-splash-brand {
  position: relative;
  width: min(88vw, 390px);
  min-height: 330px;
  display: grid;
  place-items: center;
  isolation: isolate;
}

.app-splash-mark {
  width: min(86vw, 370px);
  height: min(86vw, 370px);
  max-width: none;
  object-fit: contain;
  display: block;
  opacity: var(--splash-mark-opacity);
  transform: scale(1);
}

.app-splash-title {
  display: none;
}

.app-splash.is-animating .app-splash-title {
  animation: splashTitleIn 0.58s 0.12s ease-out both;
}

.app-splash.is-game .app-splash-brand {
  min-height: 300px;
}

.app-splash.is-game {
  --splash-mark-opacity: 1;
}

.app-splash.is-game .app-splash-mark {
  width: min(76vw, 330px);
  height: min(76vw, 330px);
}

button {
  border: 0;
  color: inherit;
  font: inherit;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.app-shell {
  width: min(100%, 440px);
  min-height: 100svh;
  margin: 0 auto;
  padding: max(22px, env(safe-area-inset-top)) 10px max(16px, env(safe-area-inset-bottom));
  background: var(--bg);
  position: relative;
  overflow: hidden;
}

.app-shell::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(circle, rgba(255, 255, 255, 0.06) 0 1px, transparent 1px),
    linear-gradient(rgba(255, 58, 46, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 58, 46, 0.05) 1px, transparent 1px);
  background-size: 34px 34px, 46px 46px, 46px 46px;
  mask-image: linear-gradient(to bottom, transparent, black 16%, black 70%, transparent);
  opacity: 0.36;
}

.topbar,
.content,
.profile-view,
.crash-view,
.blackjack-view,
.bottom-nav {
  position: relative;
  z-index: 1;
}

.blackjack-view {
  min-height: calc(100svh - 20px);
  padding-bottom: 154px;
}

.blackjack-game-panel {
  display: grid;
  gap: 9px;
}

.blackjack-toolbar {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.blackjack-wallet,
.blackjack-rules-btn {
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 12px;
  background: rgba(17, 21, 27, 0.94);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 10px 28px rgba(0, 0, 0, 0.24);
}

.blackjack-wallet {
  min-width: 148px;
  padding: 0 9px 0 8px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.blackjack-wallet > .coin {
  width: 30px;
  height: 30px;
}

.blackjack-wallet strong {
  min-width: 0;
  flex: 1;
  color: #fff;
  font-size: 20px;
  font-weight: 900;
}

.blackjack-plus {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: rgba(239, 51, 56, 0.1);
  position: relative;
}

.blackjack-plus::before,
.blackjack-plus::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 15px;
  height: 2px;
  border-radius: 9px;
  background: var(--accent);
  transform: translate(-50%, -50%);
}

.blackjack-plus::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.blackjack-rules-btn {
  padding: 0 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  color: rgba(224, 228, 235, 0.78);
  font-size: 13px;
  font-weight: 750;
}

.blackjack-rules-btn > span {
  width: 20px;
  height: 20px;
  border: 1.5px solid rgba(224, 228, 235, 0.58);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: Georgia, serif;
  font-size: 13px;
  font-weight: 900;
}

.blackjack-heading {
  min-height: 62px;
  padding: 9px 13px;
  border: 0;
  border-radius: 0;
  background: transparent;
  display: flex;
  align-items: center;
  gap: 11px;
  overflow: hidden;
  position: relative;
}

.blackjack-heading::after {
  content: "";
  position: absolute;
  right: -8%;
  bottom: -27px;
  width: 56%;
  height: 48px;
  border-top: 1px solid rgba(255, 56, 49, 0.36);
  border-radius: 50%;
  transform: rotate(-5deg);
  filter: drop-shadow(0 0 9px rgba(255, 49, 45, 0.32));
}

.blackjack-heading-icon {
  width: 38px;
  height: 38px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, #ff4b52, #bc131c);
  box-shadow: 0 0 18px rgba(255, 48, 51, 0.26), inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.blackjack-heading-icon img {
  width: 23px;
  height: 23px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.blackjack-heading h1,
.blackjack-heading p {
  margin: 0;
}

.blackjack-heading h1 {
  color: #fff;
  font-size: 20px;
  line-height: 1;
  font-weight: 950;
}

.blackjack-heading p {
  margin-top: 4px;
  color: rgba(195, 200, 210, 0.72);
  font-size: 12px;
}

.blackjack-table {
  height: 334px;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 58, 54, 0.28);
  border-radius: 16px;
  background:
    radial-gradient(ellipse at 50% 44%, rgba(109, 17, 23, 0.25), transparent 46%),
    radial-gradient(circle at 48% 52%, rgba(255, 255, 255, 0.035), transparent 32%),
    linear-gradient(154deg, #11151b 0%, #090c11 68%, #0e0a0d 100%);
  box-shadow: inset 0 0 70px rgba(0, 0, 0, 0.44), 0 18px 42px rgba(0, 0, 0, 0.32);
  isolation: isolate;
}

.blackjack-table::before {
  content: none;
}

.blackjack-table-ring {
  position: absolute;
  z-index: 0;
  left: -10%;
  top: 20%;
  width: 120%;
  height: 48%;
  border: 1px solid rgba(255, 52, 48, 0.28);
  border-top-color: rgba(255, 83, 76, 0.48);
  border-radius: 50%;
  box-shadow: 0 -4px 20px rgba(255, 40, 38, 0.08), inset 0 10px 34px rgba(255, 48, 40, 0.025);
}

.blackjack-seat {
  position: absolute;
  z-index: 3;
  left: 12px;
  right: 12px;
  display: grid;
  justify-items: center;
}

.dealer-seat {
  top: 10px;
}

.player-seat {
  bottom: 8px;
}

.blackjack-seat-head {
  height: 22px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 98, 94, 0.9);
  font-size: 12px;
  font-weight: 850;
}

.blackjack-seat-head strong {
  min-width: 27px;
  height: 22px;
  padding: 0 7px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(12, 15, 20, 0.9);
  display: inline-grid;
  place-items: center;
  color: #fff;
  font-size: 11px;
  box-shadow: 0 0 12px rgba(255, 50, 48, 0.11);
}

.blackjack-cards,
.blackjack-hand-cards {
  min-height: 94px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-left: 14px;
  perspective: 800px;
}

.blackjack-dealer-cards:empty::before {
  content: "";
  width: 60px;
  height: 84px;
  border: 2px solid rgba(255, 255, 255, 0.18);
  border-radius: 7px;
  background:
    linear-gradient(45deg, transparent 44%, rgba(255, 68, 63, 0.52) 45% 55%, transparent 56%),
    linear-gradient(-45deg, transparent 44%, rgba(255, 68, 63, 0.52) 45% 55%, transparent 56%),
    #111318;
  background-size: 14px 14px;
  box-shadow: 4px 4px 0 #181b21, 8px 8px 0 #0a0c10, 0 0 20px rgba(255, 47, 42, 0.12);
  transform: rotate(2deg);
}

.blackjack-card-face {
  --card-delay: 0ms;
  width: 64px;
  height: 91px;
  margin-left: -14px;
  flex: 0 0 auto;
  border: 1px solid rgba(255, 255, 255, 0.92);
  border-radius: 7px;
  background: linear-gradient(145deg, #fffefa, #e9e7e4);
  color: #14151a;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 18px rgba(0, 0, 0, 0.34), inset 0 0 0 1px rgba(0, 0, 0, 0.05);
  transform-origin: 50% 120%;
}

.blackjack-card-face.is-dealing {
  animation: blackjackDeal 0.46s var(--card-delay) cubic-bezier(0.18, 0.82, 0.2, 1.12) both;
}

.blackjack-card-face:nth-child(2) { transform: rotate(2deg); }
.blackjack-card-face:nth-child(3) { transform: rotate(4deg); }
.blackjack-card-face:nth-child(4) { transform: rotate(6deg); }
.blackjack-card-face:nth-child(5) { transform: rotate(8deg); }

.blackjack-card-face.red {
  color: #d82731;
}

.blackjack-card-corner {
  position: absolute;
  left: 6px;
  top: 5px;
  display: grid;
  justify-items: center;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 800;
  line-height: 0.92;
}

.blackjack-card-corner strong {
  font-size: 17px;
}

.blackjack-card-corner span {
  margin-top: 2px;
  font-size: 15px;
}

.blackjack-card-center {
  position: absolute;
  inset: 18px 8px 9px;
  display: grid;
  place-items: center;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 35px;
  line-height: 1;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.4);
}

.blackjack-card-face.face .blackjack-card-center {
  inset: 27px 7px 7px;
  border: 1px solid currentColor;
  border-radius: 4px;
  background:
    linear-gradient(135deg, currentColor 0 12%, transparent 13% 87%, currentColor 88%),
    repeating-linear-gradient(45deg, transparent 0 5px, rgba(0, 0, 0, 0.06) 6px 7px);
  font-size: 29px;
  font-weight: 900;
}

.blackjack-card-face.back {
  border: 3px solid #eee9df;
  background:
    radial-gradient(circle, transparent 0 13px, rgba(255, 56, 53, 0.8) 14px 16px, transparent 17px),
    linear-gradient(45deg, transparent 43%, rgba(255, 57, 53, 0.72) 44% 56%, transparent 57%),
    linear-gradient(-45deg, transparent 43%, rgba(255, 57, 53, 0.72) 44% 56%, transparent 57%),
    #101319;
  background-size: 34px 34px, 14px 14px, 14px 14px;
  box-shadow: 0 10px 18px rgba(0, 0, 0, 0.36), inset 0 0 0 2px rgba(255, 55, 51, 0.72);
}

.blackjack-table-message {
  position: absolute;
  z-index: 4;
  left: 50%;
  top: 49%;
  min-height: 30px;
  max-width: 86%;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 999px;
  background: rgba(9, 12, 16, 0.82);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  color: rgba(224, 227, 234, 0.84);
  font-size: 11px;
  transform: translate(-50%, -50%);
  backdrop-filter: blur(8px);
  white-space: nowrap;
}

.blackjack-status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px rgba(255, 64, 59, 0.75);
}

.blackjack-table[data-state="result"] .blackjack-table-message {
  border-color: rgba(255, 61, 57, 0.42);
  color: #fff;
  box-shadow: 0 0 22px rgba(255, 48, 44, 0.17);
  animation: blackjackResultPulse 1.6s ease-in-out infinite;
}

.blackjack-result-overlay {
  position: absolute;
  inset: 0;
  z-index: 40;
  padding: 16px;
  background:
    radial-gradient(circle at 50% 42%, rgba(255, 47, 52, 0.24), transparent 38%),
    rgba(4, 7, 11, 0.72);
  display: grid;
  place-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.24s ease;
  backdrop-filter: blur(5px);
}

.blackjack-result-overlay.visible {
  opacity: 1;
  pointer-events: auto;
}

.blackjack-result-overlay::before,
.blackjack-result-overlay::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
}

.blackjack-result-overlay[data-outcome="win"]::before {
  background:
    radial-gradient(circle at 13% 23%, #ffd35c 0 2px, transparent 3px),
    radial-gradient(circle at 22% 67%, #ff4e58 0 2px, transparent 3px),
    radial-gradient(circle at 35% 14%, #67eaff 0 2px, transparent 3px),
    radial-gradient(circle at 51% 79%, #ffd35c 0 2px, transparent 3px),
    radial-gradient(circle at 66% 18%, #62f88a 0 2px, transparent 3px),
    radial-gradient(circle at 78% 70%, #9c75ff 0 2px, transparent 3px),
    radial-gradient(circle at 88% 31%, #ff5e64 0 2px, transparent 3px);
}

.blackjack-result-overlay[data-outcome="win"].visible::before {
  animation: blackjackConfetti 1.8s ease-out both;
}

.blackjack-result-overlay[data-outcome="win"]::after {
  inset: 18%;
  border: 1px solid rgba(255, 77, 77, 0.38);
  border-radius: 50%;
  box-shadow: 0 0 30px rgba(255, 50, 52, 0.24);
}

.blackjack-result-overlay[data-outcome="win"].visible::after {
  animation: blackjackFirework 1.25s ease-out both;
}

.blackjack-result-overlay[data-outcome="loss"] {
  background:
    radial-gradient(circle at 50% 43%, rgba(150, 15, 24, 0.32), transparent 40%),
    rgba(4, 6, 10, 0.8);
}

.blackjack-result-card {
  width: min(78%, 236px);
  min-height: 184px;
  padding: 20px 17px 17px;
  border: 1px solid rgba(255, 67, 70, 0.66);
  border-radius: 18px;
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 65, 70, 0.32), transparent 44%),
    linear-gradient(160deg, rgba(25, 29, 36, 0.98), rgba(9, 12, 17, 0.99));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 22px 48px rgba(0, 0, 0, 0.5),
    0 0 40px rgba(255, 44, 48, 0.22);
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 6px;
  text-align: center;
  position: relative;
  overflow: hidden;
  animation: blackjackResultIn 0.58s cubic-bezier(0.18, 1.08, 0.3, 1) both;
}

.blackjack-result-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(108deg, transparent 28%, rgba(255, 255, 255, 0.18) 45%, transparent 62%);
  transform: translateX(-110%);
  animation: blackjackResultSheen 1.5s 0.25s ease-out both;
}

.blackjack-result-overlay[data-outcome="loss"] .blackjack-result-card {
  border-color: rgba(165, 38, 45, 0.58);
  background:
    radial-gradient(circle at 50% 0%, rgba(153, 18, 27, 0.28), transparent 45%),
    linear-gradient(160deg, rgba(22, 23, 28, 0.99), rgba(8, 10, 14, 0.99));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 22px 48px rgba(0, 0, 0, 0.52);
}

.blackjack-result-overlay[data-outcome="draw"] .blackjack-result-card {
  border-color: rgba(191, 197, 208, 0.38);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07), 0 22px 48px rgba(0, 0, 0, 0.48);
}

.blackjack-result-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 59, 64, 0.36), rgba(255, 255, 255, 0.04));
  display: grid;
  place-items: center;
  color: #fff;
  font-family: Georgia, serif;
  font-size: 31px;
  line-height: 1;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1), 0 0 26px rgba(255, 49, 53, 0.3);
}

.blackjack-result-title {
  color: #fff;
  font-size: 25px;
  line-height: 1;
  font-weight: 950;
  text-shadow: 0 0 20px rgba(255, 54, 57, 0.36);
}

.blackjack-result-subtitle {
  color: rgba(225, 229, 236, 0.64);
  font-size: 11px;
  font-weight: 800;
}

.blackjack-result-amount {
  min-width: 132px;
  min-height: 40px;
  padding: 6px 14px 6px 9px;
  border-radius: 999px;
  background: linear-gradient(145deg, #ff303c, #a61220);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  box-shadow: 0 10px 24px rgba(255, 43, 51, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.24);
}

.blackjack-result-overlay[data-outcome="loss"] .blackjack-result-amount {
  background: linear-gradient(145deg, #70212a, #3b1218);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.blackjack-result-overlay[data-outcome="draw"] .blackjack-result-amount {
  background: linear-gradient(145deg, #525a67, #292e37);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.blackjack-result-amount .coin {
  width: 26px;
  height: 26px;
}

.blackjack-result-amount strong {
  color: #fff;
  font-size: 19px;
  line-height: 1;
}

.blackjack-hands {
  width: 100%;
  min-height: 112px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 9px;
}

.blackjack-hands:empty::before,
.blackjack-hands:empty::after {
  content: "";
  width: 66px;
  height: 92px;
  flex: 0 0 auto;
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 8px;
  background:
    radial-gradient(circle at 50% 50%, rgba(216, 39, 49, 0.18) 0 16%, transparent 17%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.72), rgba(221, 222, 225, 0.58));
  box-shadow:
    inset 0 0 0 3px rgba(255, 255, 255, 0.18),
    0 10px 18px rgba(0, 0, 0, 0.26),
    0 0 22px rgba(255, 47, 43, 0.1);
  opacity: 0.28;
  transform-origin: 50% 110%;
  animation: blackjackIdleCards 5.8s ease-in-out infinite;
}

.blackjack-hands:empty::before {
  margin-right: -14px;
  transform: translateY(3px);
}

.blackjack-hands:empty::after {
  transform: translateY(3px) rotate(2deg);
  animation-delay: -2.9s;
}

.blackjack-hand {
  min-width: 0;
  position: relative;
  display: grid;
  justify-items: center;
  border-radius: 12px;
}

.blackjack-hand.active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -4px;
  width: 72%;
  height: 2px;
  border-radius: 99px;
  background: var(--accent);
  box-shadow: 0 0 12px rgba(255, 61, 57, 0.8);
  transform: translateX(-50%);
}

.blackjack-hand-label {
  display: none;
  margin-bottom: 2px;
  color: rgba(255, 113, 108, 0.9);
  font-size: 9px;
  font-weight: 900;
}

.blackjack-hands.split .blackjack-hand {
  flex: 1 1 0;
}

.blackjack-hands.split .blackjack-hand-label {
  display: block;
}

.blackjack-hands.split .blackjack-card-face {
  width: 54px;
  height: 78px;
  margin-left: -18px;
}

.blackjack-hands.split .blackjack-card-corner strong { font-size: 14px; }
.blackjack-hands.split .blackjack-card-corner span { font-size: 12px; }
.blackjack-hands.split .blackjack-card-center { font-size: 27px; }

.blackjack-bet-card {
  padding: 11px;
  border: 1px solid rgba(255, 58, 54, 0.3);
  border-radius: 14px;
  background:
    radial-gradient(circle at 50% 82%, rgba(255, 42, 36, 0.16), transparent 54%),
    linear-gradient(145deg, rgba(15, 18, 23, 0.99), rgba(8, 10, 14, 0.99));
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.28);
}

.blackjack-bet-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
}

.blackjack-bet-control {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.blackjack-bet-control > span {
  color: rgba(183, 188, 198, 0.72);
  font-size: 10px;
  font-weight: 850;
}

.blackjack-bet-control > strong {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.blackjack-bet-control .coin,
.blackjack-deal-amount .coin,
.blackjack-payout-note .coin {
  width: 27px;
  height: 27px;
}

.blackjack-bet-input {
  width: 150px;
  max-width: 100%;
  min-width: 0;
  padding: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: #fff;
  font: inherit;
  font-size: 22px;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0;
}

.blackjack-bet-input:disabled {
  opacity: 0.62;
}

.blackjack-bet-presets {
  display: flex;
  gap: 6px;
}

.blackjack-bet-presets button {
  width: 47px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 9px;
  background: #181c23;
  color: rgba(218, 222, 229, 0.76);
  font-size: 12px;
  font-weight: 850;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

.blackjack-bet-presets button:disabled {
  opacity: 0.42;
}

.blackjack-deal-btn {
  width: 100%;
  min-height: 60px;
  margin-top: 9px;
  border-radius: 10px;
  background: linear-gradient(135deg, #ff2733, #d3091b);
  display: grid;
  place-items: center;
  align-content: center;
  gap: 2px;
  color: #fff;
  box-shadow: 0 12px 25px rgba(213, 9, 27, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.24);
  position: relative;
  overflow: hidden;
}

.blackjack-deal-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, 0.14) 48%, transparent 66%);
  transform: translateX(-100%);
  animation: blackjackButtonShine 3.8s ease-in-out infinite;
}

.blackjack-deal-btn:disabled {
  background: linear-gradient(135deg, #4b2025, #34151a);
  color: rgba(255, 255, 255, 0.52);
  box-shadow: none;
  cursor: default;
}

.blackjack-deal-btn:disabled::before {
  display: none;
}

.blackjack-deal-label {
  font-size: 21px;
  font-weight: 950;
  line-height: 1;
}

.blackjack-deal-amount {
  display: none;
  align-items: center;
  gap: 5px;
  font-size: 15px;
}

.blackjack-payout-note {
  min-height: 18px;
  margin: 4px 0 -4px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  color: rgba(175, 180, 190, 0.62);
  font-size: 9px;
}

.blackjack-payout-note .coin {
  width: 15px;
  height: 15px;
}

.blackjack-actions {
  position: fixed;
  z-index: 8;
  left: 50%;
  bottom: calc(68px + env(safe-area-inset-bottom));
  width: min(calc(100% - 20px), 420px);
  padding: 6px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  background: rgba(12, 15, 20, 0.96);
  box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.045);
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  backdrop-filter: blur(12px);
}

.blackjack-actions button {
  min-width: 0;
  height: 58px;
  padding: 5px 3px;
  border: 1px solid rgba(255, 58, 54, 0.42);
  border-radius: 11px;
  background: linear-gradient(145deg, rgba(17, 20, 26, 0.98), rgba(9, 12, 16, 0.98));
  display: grid;
  place-items: center;
  align-content: center;
  gap: 1px;
  color: #ff5757;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.045);
}

.blackjack-actions button:not(:disabled):active {
  transform: translateY(1px) scale(0.985);
  background: rgba(66, 18, 23, 0.98);
}

.blackjack-actions button:disabled {
  border-color: rgba(255, 255, 255, 0.08);
  color: rgba(174, 178, 188, 0.32);
  cursor: default;
}

.blackjack-actions strong {
  overflow: hidden;
  max-width: 100%;
  font-size: 12px;
  line-height: 1;
  text-overflow: ellipsis;
}

.blackjack-actions small {
  overflow: hidden;
  max-width: 100%;
  color: currentColor;
  opacity: 0.68;
  font-size: 7px;
  font-weight: 800;
  line-height: 1;
}

.blackjack-action-icon {
  height: 24px;
  display: grid;
  place-items: center;
  font-size: 25px;
  line-height: 1;
  font-weight: 900;
}

.blackjack-action-icon.double { font-size: 19px; }
.blackjack-action-icon.split { font-size: 23px; }

.blackjack-rules-modal {
  position: fixed;
  z-index: 100001;
  inset: 0;
  display: grid;
  align-items: end;
}

.blackjack-rules-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.68);
  backdrop-filter: blur(5px);
}

.blackjack-rules-sheet {
  width: min(100%, 440px);
  max-height: 78svh;
  margin: 0 auto;
  padding: 22px 18px max(22px, env(safe-area-inset-bottom));
  border: 1px solid rgba(255, 67, 62, 0.38);
  border-bottom: 0;
  border-radius: 18px 18px 0 0;
  background: linear-gradient(155deg, #171b21, #0b0e13);
  position: relative;
  box-shadow: 0 -20px 55px rgba(0, 0, 0, 0.52), 0 -2px 25px rgba(255, 43, 39, 0.12);
  animation: blackjackRulesIn 0.3s cubic-bezier(0.2, 0.8, 0.2, 1) both;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
}

.blackjack-rules-sheet h2 {
  margin: 0 0 7px;
  font-size: 22px;
}

.blackjack-rules-sheet p {
  margin: 0 0 17px;
  color: var(--muted);
  font-size: 13px;
}

.blackjack-rules-sheet h3 {
  margin: 16px 0 4px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0;
}

.blackjack-rules-sheet > div {
  min-height: 43px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: grid;
  grid-template-columns: 76px 1fr;
  align-items: center;
  gap: 10px;
}

.blackjack-rules-sheet > div strong {
  color: var(--accent);
  font-size: 12px;
  line-height: 1.2;
}

.blackjack-rules-sheet > div span {
  color: rgba(219, 223, 230, 0.78);
  font-size: 12px;
  line-height: 1.35;
}

.blackjack-rules-close {
  position: absolute;
  right: 15px;
  top: 13px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 24px;
  line-height: 1;
}

@keyframes blackjackDeal {
  0% { opacity: 0; transform: translate3d(110px, -120px, 0) rotate(20deg) scale(0.72); }
  70% { opacity: 1; transform: translate3d(-2px, 2px, 0) rotate(-1.5deg) scale(1.025); }
  100% { opacity: 1; transform: translate3d(0, 0, 0) rotate(0deg) scale(1); }
}

@keyframes blackjackIdleCards {
  0%,
  100% {
    opacity: 0.2;
  }

  50% {
    opacity: 0.34;
  }
}

@keyframes blackjackResultIn {
  0% { opacity: 0; transform: translateY(15px) scale(0.86); }
  62% { opacity: 1; transform: translateY(-2px) scale(1.025); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes blackjackResultSheen {
  0% { opacity: 0; transform: translateX(-110%); }
  30% { opacity: 1; }
  100% { opacity: 0; transform: translateX(110%); }
}

@keyframes blackjackConfetti {
  0% { opacity: 0; transform: translateY(-10px) scale(0.82); }
  15% { opacity: 1; }
  100% { opacity: 0; transform: translateY(24px) scale(1.08); }
}

@keyframes blackjackFirework {
  0% { opacity: 0; transform: scale(0.42); }
  24% { opacity: 0.9; }
  100% { opacity: 0; transform: scale(1.34); }
}

@keyframes blackjackResultPulse {
  0%, 100% { transform: translate(-50%, -50%) scale(1); }
  50% { transform: translate(-50%, -50%) scale(1.025); }
}

@keyframes blackjackButtonShine {
  0%, 55% { transform: translateX(-120%); }
  78%, 100% { transform: translateX(120%); }
}

@keyframes blackjackRulesIn {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

[hidden] {
  display: none !important;
}

@keyframes splashTitleIn {
  0% {
    opacity: 0;
    transform: translateY(10px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes splashWaveOpen {
  0% {
    clip-path: circle(18px at var(--splash-x) var(--splash-y));
  }

  18% {
    clip-path: circle(42px at var(--splash-x) var(--splash-y));
  }

  100% {
    clip-path: circle(150vmax at var(--splash-x) var(--splash-y));
  }
}

@keyframes splashWaveClose {
  0% {
    clip-path: circle(150vmax at var(--splash-x) var(--splash-y));
  }

  72% {
    clip-path: circle(42px at var(--splash-x) var(--splash-y));
  }

  100% {
    clip-path: circle(18px at var(--splash-x) var(--splash-y));
  }
}

.app-shell.profile-mode {
  padding-top: max(18px, env(safe-area-inset-top));
}

.app-shell.crash-mode {
  padding-top: max(12px, env(safe-area-inset-top));
}

.app-shell.profile-mode .topbar,
.app-shell.crash-mode .topbar {
  display: none;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 2px 0 18px;
}

.profile {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 12px;
}

.avatar {
  flex: 0 0 auto;
  border-radius: 50%;
  border: 2px solid var(--accent);
  background:
    radial-gradient(circle at 50% 18%, #f4d4c3 0 13%, transparent 14%),
    radial-gradient(circle at 43% 31%, #0d0e12 0 24%, transparent 25%),
    radial-gradient(circle at 58% 31%, #0d0e12 0 24%, transparent 25%),
    linear-gradient(145deg, #2b1114 0%, #0c0e12 58%, #1a0c0d 100%);
  box-shadow: inset 0 0 0 2px rgba(0, 0, 0, 0.34), 0 8px 20px rgba(0, 0, 0, 0.22);
  position: relative;
  overflow: hidden;
}

.avatar::before {
  content: "";
  position: absolute;
  left: 18%;
  right: 18%;
  top: 18%;
  height: 34%;
  border-radius: 60% 60% 42% 42%;
  background: #08090c;
  box-shadow:
    -13px 11px 0 -2px #07080a,
    13px 11px 0 -2px #07080a,
    0 31px 0 5px #151821;
}

.avatar::after {
  content: "";
  position: absolute;
  left: 40%;
  top: 44%;
  width: 20%;
  height: 4%;
  border-radius: 999px;
  background: #e63b3b;
  box-shadow:
    -12px -7px 0 -1px #f1ede8,
    12px -7px 0 -1px #f1ede8;
}

.avatar-user {
  background: #050505 url("assets/avatar-t.jpg") center / cover no-repeat;
}

.avatar-user::before,
.avatar-user::after {
  display: none;
}

.avatar-hero {
  width: 58px;
  height: 58px;
}

.profile-copy {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.nickname {
  font-size: 19px;
  line-height: 1.05;
  white-space: nowrap;
  color: var(--text);
  text-shadow:
    0 1px 0 rgba(255, 255, 255, 0.1),
    0 0 12px rgba(240, 68, 68, 0.18);
}

.profile-copy span {
  color: var(--muted);
  font-size: 13px;
  white-space: nowrap;
}

.wallet {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-right: 0;
}

.balance-pill {
  min-width: 120px;
  height: 42px;
  padding: 0 16px 0 9px;
  border: 1px solid var(--soft-border);
  border-radius: 999px;
  background: color-mix(in srgb, var(--panel) 88%, transparent);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.balance-pill strong {
  font-size: 20px;
}

.coin {
  display: inline-grid;
  place-items: center;
  border-radius: 0;
  color: transparent;
  position: relative;
  isolation: isolate;
  background: url("assets/casino-chip-stack.png") center / 92% 92% no-repeat;
  transform: translateY(2px);
  box-shadow:
    none;
}

.coin-lg {
  width: 30px;
  height: 30px;
  font-size: 19px;
}

.round-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(145deg, #ff685f, #e72f35);
  box-shadow: 0 12px 22px rgba(224, 44, 49, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.28);
  display: grid;
  place-items: center;
}

.add-btn {
  color: #fff;
  position: relative;
}

.add-btn::before,
.add-btn::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 20px;
  height: 3px;
  border-radius: 999px;
  background: #fff;
  transform: translate(-50%, -50%);
  box-shadow: 0 1px 3px rgba(116, 17, 18, 0.25);
}

.add-btn::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.content {
  display: grid;
  gap: 8px;
  padding-bottom: 64px;
}

.profile-view {
  min-height: calc(100svh - 82px);
  padding: 4px 0 86px;
  overflow: hidden;
}

.profile-view::before,
.profile-view::after {
  content: "";
  position: absolute;
  pointer-events: none;
  z-index: 0;
}

.profile-view::before {
  left: -96px;
  right: -96px;
  bottom: -48px;
  height: 220px;
  border-top: 2px solid rgba(255, 48, 42, 0.74);
  border-radius: 50% 50% 0 0;
  filter: drop-shadow(0 0 18px rgba(255, 54, 45, 0.64));
  opacity: 0.62;
  transform: rotate(-5deg);
}

.profile-view::after {
  left: -34px;
  bottom: -52px;
  width: 138px;
  height: 138px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, transparent 0 45%, rgba(255, 58, 50, 0.46) 46% 53%, transparent 54%),
    radial-gradient(circle, rgba(255, 48, 42, 0.2), transparent 66%);
  filter: blur(1px);
  opacity: 0.48;
}

.language-tabs {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 24px;
}

/* Compact profile: account data stays visible without competing with the games. */
.profile-view .language-tabs {
  display: none;
}

.profile-view .language-pill {
  min-height: 38px;
  padding: 0 8px;
  gap: 6px;
  font-size: 12px;
}

.profile-view .profile-hero {
  margin-bottom: 16px;
}

.profile-view .profile-avatar-large {
  width: 92px;
  height: 92px;
  border-width: 2px;
  box-shadow: 0 0 0 4px rgba(255, 55, 49, 0.08), 0 0 18px rgba(255, 50, 43, 0.28), inset 0 0 0 2px rgba(0, 0, 0, 0.56);
}

.profile-view .profile-hero h1 {
  margin: 13px 0 4px;
  font-size: 22px;
  text-shadow: none;
}

.profile-view .profile-hero p {
  font-size: 14px;
  font-weight: 700;
}

.profile-view .profile-balance-card {
  min-height: 122px;
  padding: 17px 18px;
  background: radial-gradient(circle at 52% 0%, rgba(255, 72, 62, 0.12), transparent 42%), linear-gradient(145deg, rgba(23, 19, 20, 0.96), rgba(12, 14, 18, 0.96));
  box-shadow: 0 0 20px rgba(255, 49, 43, 0.14), 0 16px 42px rgba(0, 0, 0, 0.36), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.profile-view .profile-card-arc,
.profile-view .profile-balance-value > span:last-child,
.profile-view .profile-divider,
.profile-view .profile-actions {
  display: none;
}

.profile-view .profile-balance-label {
  font-size: 13px;
  letter-spacing: 1.6px;
}

.profile-view .profile-balance-value {
  margin: 10px 0 0;
  gap: 11px;
}

.profile-view .profile-chip {
  width: 42px;
  height: 42px;
}

.profile-view .profile-balance-value strong {
  font-size: clamp(38px, 11vw, 48px);
  line-height: 0.94;
}

.language-pill {
  min-height: 40px;
  padding: 0 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(17, 20, 25, 0.72);
  color: var(--text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 800;
  font-size: 13px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.language-pill.active {
  border-color: rgba(255, 50, 45, 0.95);
  background:
    radial-gradient(circle at 22% 54%, rgba(255, 50, 45, 0.24), transparent 54%),
    rgba(30, 16, 18, 0.88);
  box-shadow:
    0 0 22px rgba(255, 44, 40, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.09);
}

.flag {
  width: 22px;
  height: 15px;
  border-radius: 2px;
  flex: 0 0 auto;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.flag-ru {
  background: linear-gradient(#fff 0 33%, #3265d9 33% 66%, #e43b3b 66%);
}

.flag-ua {
  background: linear-gradient(#2d79e8 0 50%, #ffd84d 50%);
}

.flag-gb {
  background:
    linear-gradient(33deg, transparent 0 39%, #fff 40% 45%, #d92131 46% 54%, #fff 55% 60%, transparent 61%),
    linear-gradient(-33deg, transparent 0 39%, #fff 40% 45%, #d92131 46% 54%, #fff 55% 60%, transparent 61%),
    linear-gradient(90deg, transparent 0 42%, #fff 43% 57%, transparent 58%),
    linear-gradient(0deg, transparent 0 38%, #fff 39% 61%, transparent 62%),
    linear-gradient(90deg, transparent 0 46%, #d92131 47% 53%, transparent 54%),
    linear-gradient(0deg, transparent 0 43%, #d92131 44% 56%, transparent 57%),
    #244f9e;
}

.profile-hero {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  text-align: center;
  margin-bottom: 24px;
}

.profile-orbit {
  z-index: 0;
  position: absolute;
  top: -15px;
  width: 224px;
  height: 224px;
  border: 2px solid rgba(255, 55, 49, 0.34);
  border-radius: 50%;
  box-shadow:
    inset 0 0 0 28px rgba(255, 55, 49, 0.03),
    0 0 34px rgba(255, 44, 40, 0.18);
  animation: profileOrbit 15s linear infinite;
}

.profile-orbit::before,
.profile-orbit::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 18px rgba(255, 55, 49, 0.95);
}

.profile-orbit::before {
  left: 27px;
  top: 39px;
  width: 9px;
  height: 9px;
}

.profile-orbit::after {
  right: 34px;
  bottom: 38px;
  width: 7px;
  height: 7px;
}

@keyframes profileOrbit {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

.profile-avatar-large {
  position: relative;
  z-index: 1;
  width: 150px;
  height: 150px;
  border-width: 3px;
  box-shadow:
    0 0 0 8px rgba(255, 55, 49, 0.08),
    0 0 32px rgba(255, 50, 43, 0.44),
    inset 0 0 0 2px rgba(0, 0, 0, 0.56);
}

.profile-hero h1 {
  position: relative;
  z-index: 2;
  margin: 24px 0 6px;
  font-size: 31px;
  line-height: 1;
  font-weight: 950;
  background: linear-gradient(180deg, #fff, #dfe3ea);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 18px rgba(255, 255, 255, 0.2);
}

.profile-hero p {
  position: relative;
  z-index: 2;
  margin: 0;
  color: #8d929c;
  font-size: 20px;
  font-weight: 650;
}

.profile-balance-card {
  position: relative;
  z-index: 1;
  min-height: 226px;
  padding: 25px 24px 18px;
  border: 1px solid rgba(255, 69, 62, 0.88);
  border-radius: 22px;
  overflow: hidden;
  background:
    radial-gradient(circle at 52% 0%, rgba(255, 72, 62, 0.16), transparent 34%),
    linear-gradient(145deg, rgba(23, 19, 20, 0.96), rgba(12, 14, 18, 0.96));
  box-shadow:
    0 0 28px rgba(255, 49, 43, 0.2),
    0 22px 56px rgba(0, 0, 0, 0.46),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.profile-card-arc {
  position: absolute;
  right: -80px;
  bottom: 8px;
  width: 230px;
  height: 134px;
  border-top: 1px solid rgba(255, 55, 49, 0.26);
  border-radius: 50%;
  transform: rotate(-24deg);
}

.profile-balance-label {
  position: relative;
  z-index: 2;
  display: block;
  color: rgba(255, 255, 255, 0.58);
  font-weight: 850;
  font-size: 16px;
  letter-spacing: 2px;
}

.profile-balance-value {
  position: relative;
  z-index: 2;
  margin: 17px 0 19px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.profile-chip {
  width: 56px;
  height: 56px;
  background-size: 100% 100%;
  transform: none;
}

.profile-balance-value strong {
  font-size: clamp(52px, 15vw, 64px);
  line-height: 0.86;
  font-weight: 950;
  color: #fff;
  text-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
}

.profile-balance-value > span:last-child {
  align-self: flex-end;
  padding-bottom: 8px;
  color: rgba(255, 255, 255, 0.48);
  font-size: 22px;
  font-weight: 850;
}

.profile-divider {
  position: relative;
  z-index: 2;
  height: 1px;
  margin-bottom: 20px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.2), transparent 43%, transparent 57%, rgba(255, 255, 255, 0.2));
}

.profile-divider span {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 16px;
  height: 16px;
  border-radius: 4px;
  background: #f04444;
  transform: translate(-50%, -50%) rotate(45deg);
  box-shadow: 0 0 18px rgba(240, 68, 68, 0.7);
}

.profile-actions {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.profile-action {
  min-height: 58px;
  border-radius: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  font-weight: 900;
  font-size: 16px;
}

.profile-action.primary {
  background: linear-gradient(145deg, #ff5f55, #c50811);
  color: #fff;
  box-shadow:
    0 0 24px rgba(255, 46, 42, 0.52),
    inset 0 1px 0 rgba(255, 255, 255, 0.26);
}

.profile-action.secondary {
  border: 1px solid rgba(255, 73, 65, 0.32);
  background: rgba(10, 11, 15, 0.48);
  color: rgba(255, 255, 255, 0.92);
}

.action-plus {
  width: 30px;
  height: 30px;
  border: 3px solid currentColor;
  border-radius: 50%;
  position: relative;
}

.action-plus::before,
.action-plus::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 16px;
  height: 3px;
  border-radius: 999px;
  background: currentColor;
  transform: translate(-50%, -50%);
}

.action-plus::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.action-wallet {
  width: 32px;
  height: 24px;
  border: 3px solid currentColor;
  border-radius: 6px;
  position: relative;
  opacity: 0.78;
}

.action-wallet::before {
  content: "";
  position: absolute;
  left: 8px;
  top: -10px;
  width: 18px;
  height: 13px;
  border: 3px solid currentColor;
  border-bottom: 0;
  border-radius: 8px 8px 0 0;
}

.action-wallet::after {
  content: "";
  position: absolute;
  right: -4px;
  top: 8px;
  width: 11px;
  height: 8px;
  border: 3px solid currentColor;
  border-radius: 999px;
  background: var(--panel);
}

.game-card,
.wins-panel,
.bottom-nav {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.game-card,
.wins-panel {
  width: 100%;
  text-align: left;
  position: relative;
  overflow: hidden;
}

.star-field {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
  mix-blend-mode: screen;
}

.star {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: var(--s);
  height: var(--s);
  border-radius: 50%;
  background: var(--star-color);
  opacity: 0;
  box-shadow: 0 0 calc(var(--s) * 3) var(--star-glow);
  animation:
    starTwinkle var(--twinkle) ease-in-out var(--delay) infinite,
    starDrift var(--drift-time) ease-in-out var(--delay) infinite alternate;
}

.star.tiny {
  opacity: 0.12;
  filter: blur(0.2px);
}

.star.spark {
  border-radius: 1px;
  transform: rotate(45deg);
}

.star.spark::before,
.star.spark::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: calc(var(--s) * 3.2);
  height: 1px;
  border-radius: 999px;
  background: currentColor;
  opacity: 0.7;
  transform: translate(-50%, -50%);
}

.star.spark::after {
  width: 1px;
  height: calc(var(--s) * 3.2);
}

@keyframes starTwinkle {
  0%,
  100% {
    opacity: 0.08;
    scale: 0.45;
  }

  38% {
    opacity: var(--peak);
    scale: 1;
  }

  62% {
    opacity: calc(var(--peak) * 0.42);
    scale: 0.72;
  }
}

@keyframes starDrift {
  from {
    translate: 0 0;
  }

  to {
    translate: var(--dx) var(--dy);
  }
}

.game-copy {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 5px;
}

.game-title-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.game-title {
  color: var(--text);
  background: linear-gradient(180deg, #ffffff 0%, #f4f5f7 58%, #cfd5df 100%);
  background-clip: text;
  font-weight: 900;
  font-size: clamp(25px, 7vw, 36px);
  line-height: 1;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  -webkit-text-stroke: 0.35px rgba(255, 255, 255, 0.28);
  text-shadow:
    0 0 8px rgba(255, 255, 255, 0.2),
    0 0 16px rgba(240, 68, 68, 0.22);
}

.game-subtitle {
  color: var(--muted);
  font-size: clamp(14px, 4.2vw, 18px);
  line-height: 1.2;
  text-shadow: 0 0 12px rgba(255, 255, 255, 0.08);
}

.game-icon {
  width: 38px;
  height: 38px;
  display: inline-block;
  color: var(--accent);
  flex: 0 0 auto;
}

.crash-icon {
  width: 40px;
  height: 40px;
  object-fit: contain;
  filter: invert(36%) sepia(93%) saturate(2035%) hue-rotate(336deg) brightness(101%) contrast(92%);
}

.swords-icon,
.bonus-icon {
  object-fit: contain;
  filter: invert(36%) sepia(93%) saturate(2035%) hue-rotate(336deg) brightness(101%) contrast(92%);
}

.bonus-icon {
  width: 23px;
  height: 23px;
}

.blackjack-icon {
  width: 24px;
  height: 24px;
  object-fit: contain;
  filter: invert(36%) sepia(93%) saturate(2035%) hue-rotate(336deg) brightness(101%) contrast(92%);
}

.crash-card {
  min-height: 126px;
  padding: 17px 18px 18px;
  background: var(--crash-bg);
}

.hot-badge {
  position: absolute;
  z-index: 4;
  left: 14px;
  top: 14px;
  height: 32px;
  padding: 0 13px;
  border: 1px solid var(--soft-border);
  border-radius: 8px;
  background: color-mix(in srgb, var(--panel) 74%, transparent);
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--accent);
  font-weight: 800;
  font-size: 13px;
}

.crash-copy {
  position: absolute;
  left: 18px;
  top: 22px;
  width: 40%;
}

.crash-visual {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.crash-rocket-image {
  position: absolute;
  z-index: 2;
  right: -8px;
  top: -28px;
  width: 300px;
  max-width: 70%;
  height: auto;
  filter: drop-shadow(0 15px 26px rgba(242, 44, 32, 0.26));
  transform-origin: 58% 45%;
  animation: rocketFloat 8s ease-in-out infinite;
  will-change: transform;
}

@keyframes rocketFloat {
  0%,
  100% {
    transform: translate3d(0, 0, 0) rotate(0deg) scale(1);
  }

  35% {
    transform: translate3d(3px, -4px, 0) rotate(0.35deg) scale(1.004);
  }

  62% {
    transform: translate3d(5px, -7px, 0) rotate(0.55deg) scale(1.006);
  }

  82% {
    transform: translate3d(2px, -2px, 0) rotate(0.18deg) scale(1.002);
  }
}

@keyframes pvpFightersFloat {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }

  42% {
    transform: translate3d(2px, -4px, 0) scale(1.01);
  }

  70% {
    transform: translate3d(-1px, -2px, 0) scale(1.004);
  }
}

.pvp-card {
  min-height: 126px;
  padding: 42px 18px 18px;
  background: var(--pvp-bg);
}

.pvp-card .game-copy {
  width: 43%;
  transform: translateY(-6px);
}

.pvp-visual {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.pvp-fighters {
  position: absolute;
  right: 4px;
  bottom: -12px;
  width: 66%;
  max-height: 112%;
  object-fit: contain;
  object-position: right bottom;
  filter: drop-shadow(0 0 18px rgba(242, 65, 49, 0.28));
  transform-origin: 58% 78%;
  animation: pvpFightersFloat 7.5s ease-in-out infinite;
  will-change: transform;
}

.mini-grid {
  display: grid;
  grid-template-columns: 1.28fr 0.9fr;
  gap: 8px;
}

.small-card {
  min-height: 151px;
  height: 151px;
  padding: 12px 16px;
}

.blackjack-card {
  background: var(--blackjack-bg);
}

.blackjack-art {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.blackjack-art::before {
  content: "";
  position: absolute;
  right: -42px;
  bottom: -34px;
  width: 160px;
  height: 124px;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(255, 65, 53, 0.34), transparent 62%),
    radial-gradient(circle, rgba(255, 255, 255, 0.18), transparent 45%);
  filter: blur(10px);
  opacity: 0.95;
}

.blackjack-aces {
  position: absolute;
  z-index: 2;
  right: -36px;
  bottom: -34px;
  width: 144px;
  height: auto;
  object-fit: contain;
  filter:
    drop-shadow(0 0 12px rgba(255, 255, 255, 0.28))
    drop-shadow(0 0 20px rgba(255, 56, 48, 0.34))
    drop-shadow(0 12px 16px rgba(0, 0, 0, 0.34));
  transform: rotate(-12deg);
  transform-origin: 62% 80%;
  animation: blackjackCardsFloat 6.5s ease-in-out infinite;
  will-change: transform;
}

@keyframes blackjackCardsFloat {
  0%,
  100% {
    transform: translate3d(0, 0, 0) rotate(-12deg) scale(1);
  }

  44% {
    transform: translate3d(-3px, -4px, 0) rotate(-13deg) scale(1.012);
  }

  72% {
    transform: translate3d(1px, -2px, 0) rotate(-11.4deg) scale(1.004);
  }
}

.mini-copy {
  position: absolute;
  left: 16px;
  right: 74px;
  top: 16px;
  margin: 0;
}

.blackjack-card .mini-copy .game-title {
  font-size: clamp(15px, 3.4vw, 18px);
}

.blackjack-card .game-title-row {
  gap: 6px;
}

.mini-copy .game-title,
.bonus-copy .game-title {
  font-size: clamp(20px, 5vw, 24px);
}

.bonus-card {
  display: block;
  text-align: center;
  background: var(--bonus-bg);
}

.gift {
  position: absolute;
  z-index: 1;
  left: 50%;
  top: 0;
  width: 112px;
  height: auto;
  margin-top: 0;
  object-fit: contain;
  transform: translateX(-50%);
  filter:
    drop-shadow(0 0 12px rgba(255, 64, 56, 0.42))
    drop-shadow(0 13px 20px rgba(0, 0, 0, 0.32));
  transform-origin: 50% 78%;
  animation: giftFloat 5.8s ease-in-out infinite;
  will-change: transform, filter;
}

@keyframes giftFloat {
  0%,
  100% {
    transform: translateX(-50%) translate3d(0, 0, 0) rotate(0deg) scale(1);
    filter:
      drop-shadow(0 0 12px rgba(255, 64, 56, 0.42))
      drop-shadow(0 13px 20px rgba(0, 0, 0, 0.32));
  }

  42% {
    transform: translateX(-50%) translate3d(0, -5px, 0) rotate(-1deg) scale(1.018);
    filter:
      drop-shadow(0 0 18px rgba(255, 64, 56, 0.58))
      drop-shadow(0 16px 24px rgba(0, 0, 0, 0.34));
  }

  72% {
    transform: translateX(-50%) translate3d(1px, -2px, 0) rotate(0.7deg) scale(1.006);
  }
}

.bonus-copy {
  position: absolute;
  z-index: 2;
  left: 8px;
  right: 8px;
  bottom: 6px;
  justify-items: center;
  max-width: none;
  gap: 2px;
}

.bonus-card .game-title-row {
  justify-content: center;
  gap: 5px;
}

.bonus-card .game-title {
  font-size: clamp(19px, 4.8vw, 23px);
}

.bonus-copy .game-subtitle {
  max-width: 136px;
  font-size: 12px;
  line-height: 1.16;
}

.wins-panel {
  padding: 13px 13px 12px;
  background: color-mix(in srgb, var(--panel) 94%, transparent);
  border-color: var(--soft-border);
}

.wins-panel h2,
.wins-list {
  position: relative;
  z-index: 2;
}

.wins-panel h2 {
  margin: 0 0 9px;
  padding-left: 5px;
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 14px;
  letter-spacing: 0;
  color: var(--text);
  text-shadow:
    0 1px 0 rgba(255, 255, 255, 0.08),
    0 0 14px rgba(240, 68, 68, 0.2);
}

.live-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 14px rgba(240, 68, 68, 0.5);
}

.wins-list {
  display: grid;
  gap: 2px;
}

.wins-empty {
  margin: 0;
  min-height: 44px;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.win-row {
  min-height: 44px;
  padding: 5px 10px;
  border: 1px solid var(--soft-border);
  border-radius: 10px;
  background: color-mix(in srgb, var(--panel-soft) 78%, transparent);
  display: grid;
  grid-template-columns: 30px minmax(92px, 1fr) auto minmax(72px, auto);
  align-items: center;
  gap: 10px;
}

.win-row .avatar {
  width: 28px;
  height: 28px;
}

.avatar.homer {
  border-color: #f2c94c;
  background:
    radial-gradient(circle at 51% 40%, #f6d74e 0 28%, transparent 29%),
    radial-gradient(circle at 40% 35%, #fff 0 5%, transparent 6%),
    radial-gradient(circle at 62% 35%, #fff 0 5%, transparent 6%),
    linear-gradient(145deg, #444, #222);
}

.avatar.crypto {
  border-color: #d99132;
  background:
    radial-gradient(circle at 51% 44%, #d5913c 0 34%, transparent 35%),
    linear-gradient(145deg, #ffd47b, #51300c);
}

.avatar.mim {
  border-color: #586a70;
  background:
    linear-gradient(90deg, transparent 46%, #f2f2f2 47% 53%, transparent 54%),
    radial-gradient(circle at 50% 31%, #e7c7ae 0 16%, transparent 17%),
    linear-gradient(145deg, #0a1519, #111);
}

.win-name {
  font-size: 13px;
  font-weight: 750;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.08);
}

.win-amount {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 850;
  white-space: nowrap;
}

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

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

.win-amount .coin {
  width: 18px;
  height: 18px;
  font-size: 12px;
}

.win-time {
  color: var(--muted);
  font-size: 12px;
  text-align: right;
  white-space: nowrap;
}

.crash-view {
  padding-bottom: 74px;
}

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

.crash-game-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.crash-game-wallet,
.crash-online {
  min-height: 45px;
  border: 1px solid var(--soft-border);
  border-radius: 13px;
  background: rgba(17, 21, 26, 0.88);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
  display: inline-flex;
  align-items: center;
}

.crash-game-wallet {
  gap: 10px;
  padding: 5px 8px 5px 10px;
}

.crash-game-wallet .coin {
  width: 30px;
  height: 30px;
  font-size: 0;
}

.crash-game-wallet strong {
  font-size: 20px;
  line-height: 1;
}

.crash-plus {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: transparent;
  position: relative;
}

.crash-plus::before,
.crash-plus::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 15px;
  height: 2px;
  border-radius: 999px;
  background: var(--accent);
  transform: translate(-50%, -50%);
}

.crash-plus::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.crash-online {
  gap: 8px;
  padding: 0 14px;
  color: rgba(231, 235, 244, 0.84);
  font-size: 13px;
  font-weight: 800;
}

.history-icon {
  width: 16px;
  height: 16px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  position: relative;
}

.history-icon::before {
  content: "";
  position: absolute;
  left: -4px;
  top: -2px;
  width: 7px;
  height: 7px;
  border-left: 2px solid currentColor;
  border-top: 2px solid currentColor;
  transform: rotate(-48deg);
}

.history-icon::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 3px;
  width: 2px;
  height: 6px;
  border-radius: 999px;
  background: currentColor;
  transform-origin: bottom;
  transform: rotate(-42deg);
}

.crash-arena,
.crash-bet-card,
.crash-options-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 58, 54, 0.34);
  border-radius: 14px;
  background:
    radial-gradient(circle at 69% 41%, rgba(255, 46, 36, 0.2), transparent 33%),
    radial-gradient(circle at 34% 78%, rgba(255, 255, 255, 0.08), transparent 26%),
    linear-gradient(145deg, rgba(14, 17, 22, 0.98), rgba(8, 11, 16, 0.98));
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.34);
}

.crash-arena {
  height: 312px;
  padding: 16px 16px 0;
  border-bottom-color: transparent;
}

.crash-signal,
.crash-multiplier,
.crash-lottie-wrap,
.crash-lottie-explosion,
.crash-result-history {
  position: relative;
  z-index: 3;
}

.round-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #35d662;
  box-shadow: 0 0 12px rgba(53, 214, 98, 0.7);
}

.crash-signal {
  position: absolute;
  right: 16px;
  top: 17px;
  display: inline-flex;
  align-items: flex-end;
  gap: 3px;
}

.crash-signal span {
  width: 3px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 10px rgba(240, 68, 68, 0.4);
  transform-origin: center bottom;
  animation: crashSignalLive 1.15s ease-in-out infinite alternate;
}

.crash-signal span:nth-child(1) {
  height: 6px;
}

.crash-signal span:nth-child(2) {
  height: 10px;
  animation-delay: -0.28s;
}

.crash-signal span:nth-child(3) {
  height: 14px;
  animation-delay: -0.56s;
}

.crash-signal span:nth-child(4) {
  height: 19px;
  animation-delay: -0.84s;
}

@keyframes crashSignalLive {
  from {
    opacity: 0.42;
    transform: scaleY(0.58);
  }
  to {
    opacity: 1;
    transform: scaleY(1);
  }
}

.crash-multiplier {
  position: absolute;
  left: 36px;
  top: 78px;
  display: none;
  gap: 5px;
}

.crash-multiplier strong {
  color: #fff;
  font-size: clamp(48px, 16vw, 66px);
  font-weight: 900;
  line-height: 0.9;
  letter-spacing: 0;
  text-shadow:
    0 0 14px rgba(255, 255, 255, 0.18),
    0 0 28px rgba(255, 54, 48, 0.16);
}

.crash-arena.running .crash-multiplier {
  opacity: 0;
  pointer-events: none;
}

.crash-live-rate {
  position: absolute;
  left: 17px;
  top: 128px;
  z-index: 6;
  min-width: 92px;
  height: 43px;
  padding: 0 16px;
  border: 2px solid rgba(255, 68, 68, 0.72);
  border-radius: 14px;
  background: rgba(25, 33, 48, 0.86);
  box-shadow:
    0 0 16px rgba(255, 58, 58, 0.32),
    inset 0 0 18px rgba(255, 70, 70, 0.16);
  display: none;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 19px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(8px);
}

.crash-live-rate[data-tier="mid"] {
  border-color: rgba(71, 142, 224, 0.9);
  background: rgba(20, 56, 96, 0.76);
  box-shadow:
    0 0 16px rgba(66, 147, 232, 0.32),
    inset 0 0 18px rgba(68, 141, 224, 0.16);
}

.crash-live-rate[data-tier="high"] {
  border-color: rgba(98, 137, 230, 0.94);
  background: rgba(31, 50, 104, 0.82);
  box-shadow:
    0 0 18px rgba(90, 148, 246, 0.38),
    inset 0 0 20px rgba(90, 148, 246, 0.18);
}

.crash-live-rate[data-tier="mega"] {
  border-color: rgba(143, 76, 231, 0.96);
  background: rgba(59, 28, 88, 0.86);
  box-shadow:
    0 0 20px rgba(157, 87, 255, 0.48),
    inset 0 0 22px rgba(157, 87, 255, 0.2);
}

.crash-multiplier span {
  color: rgba(210, 213, 220, 0.76);
  font-size: 15px;
  font-weight: 750;
}

.crash-lottie-wrap {
  position: absolute;
  left: 50%;
  top: 48%;
  width: 214px;
  height: 214px;
  z-index: 4;
  transform: translate(-50%, -50%);
  transform-origin: 50% 56%;
  transition: opacity 0.28s ease;
  will-change: transform, opacity;
  overflow: visible;
  opacity: 1;
  animation: rocketStaticFlight 4.8s ease-in-out infinite;
}

.crash-lottie-rocket {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  display: block;
  filter:
    drop-shadow(0 0 12px rgba(255, 255, 255, 0.16))
    drop-shadow(0 14px 22px rgba(242, 44, 32, 0.32));
}

.crash-lottie-rocket svg {
  width: 100% !important;
  height: 100% !important;
  display: block;
  overflow: visible;
}

.crash-lottie-explosion {
  position: absolute;
  left: 50%;
  top: 48%;
  z-index: 5;
  width: 138px;
  height: 138px;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -50%) scale(0.55);
}

.crash-arena.exploding .crash-lottie-explosion {
  opacity: 1;
  animation: crashExplosionPop 3s ease-out;
}

.crash-arena.running .crash-lottie-wrap {
  opacity: 1;
}

.crash-arena.exploding .crash-lottie-wrap,
.crash-arena.waiting .crash-lottie-wrap,
.crash-arena.result .crash-lottie-wrap {
  opacity: 0;
}

.crash-wait-overlay {
  position: absolute;
  inset: 0;
  z-index: 6;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  opacity: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 44%, rgba(255, 35, 42, 0.16), transparent 34%),
    rgba(5, 7, 11, 0.42);
  transition: opacity 0.3s ease;
}

.crash-wait-overlay span {
  color: rgba(228, 231, 238, 0.78);
  font-size: 13px;
  font-weight: 850;
  letter-spacing: 0;
}

.crash-wait-overlay strong {
  color: #fff;
  font-size: 78px;
  line-height: 0.9;
  font-weight: 950;
  text-shadow:
    0 0 16px rgba(255, 255, 255, 0.32),
    0 0 34px rgba(255, 35, 42, 0.62);
  animation: crashCountdownPulse 1s ease-in-out infinite;
}

.crash-arena.waiting .crash-wait-overlay,
.crash-arena.result .crash-wait-overlay {
  opacity: 1;
}

.crash-arena.result .crash-wait-overlay {
  background:
    radial-gradient(circle at 50% 44%, rgba(255, 35, 42, 0.22), transparent 36%),
    rgba(5, 7, 11, 0.5);
}

.crash-result-history {
  position: absolute;
  left: 50%;
  bottom: 10px;
  width: min(382px, calc(100% - 22px));
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 4;
  justify-content: flex-start;
  overflow-x: hidden;
  overflow-y: hidden;
  padding: 0 0 3px;
  scrollbar-width: none;
}

.crash-result-history::-webkit-scrollbar {
  display: none;
}

.crash-result-history span {
  flex: 1 1 0;
  min-width: 0;
  height: 38px;
  border: 2px solid rgba(61, 137, 217, 0.86);
  border-radius: 13px;
  background: rgba(21, 55, 93, 0.76);
  box-shadow:
    0 0 14px rgba(66, 147, 232, 0.3),
    inset 0 0 18px rgba(68, 141, 224, 0.16);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #edf6ff;
  font-size: 16px;
  font-weight: 950;
  line-height: 1;
  white-space: nowrap;
  position: relative;
}

.crash-result-history .active {
  transform: translateY(-1px);
  box-shadow:
    0 0 14px rgba(255, 255, 255, 0.2),
    0 0 20px rgba(86, 151, 255, 0.46),
    inset 0 0 18px rgba(255, 255, 255, 0.12);
}

.crash-result-history span::before {
  content: none;
}

.crash-result-history .low {
  border-color: rgba(231, 77, 86, 0.9);
  background: rgba(91, 33, 37, 0.78);
  box-shadow:
    0 0 14px rgba(255, 73, 82, 0.34),
    inset 0 0 18px rgba(255, 73, 82, 0.16);
}

.crash-result-history .mid {
  border-color: rgba(71, 142, 224, 0.9);
  background: rgba(20, 56, 96, 0.8);
}

.crash-result-history .high {
  border-color: rgba(98, 137, 230, 0.94);
  background: rgba(31, 50, 104, 0.82);
  box-shadow:
    0 0 16px rgba(90, 148, 246, 0.38),
    inset 0 0 20px rgba(90, 148, 246, 0.18);
}

.crash-result-history .mega {
  border-color: rgba(143, 76, 231, 0.96);
  background: rgba(59, 28, 88, 0.86);
  box-shadow:
    0 0 18px rgba(157, 87, 255, 0.46),
    inset 0 0 22px rgba(157, 87, 255, 0.2);
}

.crash-bet-card {
  padding: 14px 12px 13px;
}

.bet-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 13px;
}

.bet-head > div:first-child {
  display: grid;
  gap: 4px;
}

.bet-head span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
}

.bet-head strong {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #fff;
  font-size: 20px;
  line-height: 1;
}

.bet-amount-control {
  width: min(178px, 100%);
  max-width: none;
}

.bet-input {
  width: 145px;
  max-width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  padding: 0;
  background: transparent;
  color: #fff;
  font: inherit;
  font-weight: 900;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0;
}

.bet-input:focus {
  text-shadow: 0 0 12px rgba(255, 255, 255, 0.18);
}

.bet-head .coin,
.cashout-btn .coin {
  width: 21px;
  height: 21px;
  font-size: 0;
}

.bet-presets {
  display: flex;
  gap: 8px;
}

.bet-presets button {
  min-width: 48px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 10px;
  background: rgba(24, 28, 36, 0.86);
  color: rgba(213, 216, 224, 0.74);
  font-size: 13px;
  font-weight: 800;
}

.cashout-btn {
  width: 100%;
  min-height: 72px;
  border-radius: 11px;
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.22), transparent 36%),
    linear-gradient(135deg, #ff1f2d, #b90d1c);
  box-shadow:
    0 0 24px rgba(255, 34, 43, 0.36),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
  display: grid;
  place-items: center;
  gap: 4px;
  color: #fff;
  font-weight: 900;
}

.cashout-btn span {
  font-size: 21px;
  line-height: 1;
}

.cashout-btn strong {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 18px;
  line-height: 1;
}

.cashout-btn:disabled {
  cursor: default;
  opacity: 0.72;
  filter: saturate(0.78);
  box-shadow:
    0 0 14px rgba(255, 34, 43, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.cashout-btn.waiting-bet:disabled {
  opacity: 0.58;
  filter: saturate(0.62) brightness(0.86);
  transform: translateY(1px);
  box-shadow:
    inset 0 4px 16px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.crash-options-card {
  padding: 11px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.auto-cashout,
.auto-bet {
  min-height: 57px;
  border: 1px solid rgba(255, 58, 54, 0.24);
  border-radius: 12px;
  background: rgba(11, 14, 20, 0.72);
  display: grid;
  place-items: center;
  gap: 4px;
}

.auto-cashout {
  grid-template-columns: 1fr auto;
  padding: 9px 10px;
  cursor: pointer;
}

.auto-cashout:not(.active):not(:focus-within) {
  grid-template-columns: 1fr 0;
}

.auto-cashout:not(.active):not(:focus-within) .auto-cashout-field {
  min-width: 0;
  width: 0;
  padding: 0;
  opacity: 0;
  overflow: hidden;
  pointer-events: none;
}

.auto-cashout.active,
.auto-bet.active {
  border-color: rgba(255, 58, 54, 0.72);
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 55, 55, 0.22), transparent 45%),
    rgba(26, 15, 20, 0.88);
  box-shadow:
    0 0 18px rgba(240, 68, 68, 0.28),
    inset 0 0 16px rgba(255, 58, 54, 0.08);
}

.auto-cashout span,
.auto-bet span:last-child {
  color: var(--muted);
  font-size: 10px;
  font-weight: 750;
}

.auto-cashout-field {
  min-width: 58px;
  height: 34px;
  padding: 0 8px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  color: var(--accent);
  font-size: 16px;
  font-weight: 900;
  line-height: 1;
  transition: width 0.18s ease, min-width 0.18s ease, padding 0.18s ease, opacity 0.18s ease;
}

.auto-cashout-input {
  width: 42px;
  border: 0;
  outline: 0;
  padding: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-weight: inherit;
  line-height: 1;
}

.auto-cashout-input::-webkit-outer-spin-button,
.auto-cashout-input::-webkit-inner-spin-button {
  margin: 0;
  appearance: none;
}

.auto-cashout.active .auto-cashout-field,
.auto-bet.active span:last-child {
  color: #fff;
  text-shadow: 0 0 12px rgba(255, 60, 60, 0.5);
}

.auto-bet {
  grid-template-columns: auto;
  justify-content: center;
}

.auto-dot {
  display: none;
}

.auto-bet.active .auto-dot {
  display: none;
}

.pvp-view {
  padding-bottom: 74px;
}

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

.pvp-toolbar,
.pvp-arena-head,
.pvp-players-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.pvp-wallet,
.pvp-online,
.pvp-arena-card,
.pvp-players-card,
.pvp-bet-card {
  border: 1px solid rgba(255, 58, 54, 0.28);
  border-radius: 14px;
  background:
    radial-gradient(circle at 72% 20%, rgba(255, 40, 48, 0.15), transparent 34%),
    linear-gradient(145deg, rgba(14, 17, 22, 0.98), rgba(7, 10, 15, 0.98));
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.34);
}

.pvp-wallet,
.pvp-online {
  min-height: 45px;
  padding: 5px 12px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.pvp-wallet .coin {
  width: 30px;
  height: 30px;
  font-size: 0;
}

.pvp-wallet strong {
  font-size: 20px;
  line-height: 1;
}

.pvp-online {
  color: rgba(230, 234, 242, 0.84);
  font-size: 13px;
}

.pvp-arena-card {
  order: 2;
  padding: 13px;
  border-color: transparent;
  background:
    radial-gradient(circle at 72% 20%, rgba(255, 40, 48, 0.1), transparent 34%),
    linear-gradient(145deg, rgba(14, 17, 22, 0.98), rgba(7, 10, 15, 0.98));
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.3);
}

.pvp-bet-card {
  order: 3;
}

.pvp-players-card {
  order: 4;
}

.pvp-arena-head {
  margin-bottom: 11px;
  color: rgba(231, 235, 244, 0.7);
}

.pvp-arena-head strong {
  color: #fff;
  font-size: 17px;
}

.pvp-total {
  color: #ff4147 !important;
}

.pvp-pool-value {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.pvp-pool-value .coin {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  font-size: 0;
}

.pvp-status {
  font-size: 13px;
  font-weight: 850;
  transition: color 180ms ease, font-size 180ms ease, text-shadow 180ms ease;
}

.pvp-status.final-countdown {
  color: #ff3038;
  font-size: 20px;
  line-height: 1;
  text-shadow: 0 0 14px rgba(255, 48, 56, 0.65);
}

.pvp-field {
  position: relative;
  height: 310px;
  overflow: hidden;
  border: 0;
  border-radius: 16px;
  background:
    radial-gradient(circle at 52% 42%, rgba(255, 255, 255, 0.1), transparent 24%),
    linear-gradient(135deg, #422ee8, #e8327e 55%, #ff7a51);
  box-shadow:
    inset 0 -18px 28px rgba(0, 0, 0, 0.28),
    0 10px 26px rgba(0, 0, 0, 0.32);
}

.pvp-field::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 92px;
  height: 92px;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(255, 255, 255, 0.55), rgba(255, 73, 82, 0.34) 34%, transparent 68%);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.32);
  pointer-events: none;
  z-index: 4;
}

.pvp-field.boosting::after {
  animation: pvpImpactBurst 0.7s ease-out both;
}

.pvp-waiting-screen {
  position: absolute;
  inset: 0;
  z-index: 6000;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.56);
  background:
    radial-gradient(circle at 50% 44%, rgba(255, 255, 255, 0.055), transparent 38%),
    linear-gradient(145deg, rgba(48, 48, 50, 0.98), rgba(31, 31, 33, 0.98));
  opacity: 0;
  visibility: hidden;
  transform: scale(1.015);
  transition: opacity 360ms ease, transform 520ms cubic-bezier(0.2, 0.72, 0.24, 1), visibility 0s linear 520ms;
  pointer-events: none;
}

.pvp-waiting-screen::before {
  content: "";
  position: absolute;
  inset: -48px;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.065) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.065) 1px, transparent 1px);
  background-size: 38px 38px;
  -webkit-mask-image: radial-gradient(circle at center, #000 12%, transparent 72%);
  mask-image: radial-gradient(circle at center, #000 12%, transparent 72%);
  opacity: 0.68;
  animation: pvpWaitingGrid 12s linear infinite;
  will-change: transform;
}

.pvp-waiting-screen span {
  position: relative;
  z-index: 1;
  font-size: 21px;
  font-weight: 700;
  letter-spacing: 0;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.55);
  animation: pvpWaitingText 2.4s ease-in-out infinite;
}

.pvp-waiting-screen.visible {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
  transition-delay: 0s;
}

@keyframes pvpWaitingGrid {
  to {
    transform: translate3d(38px, 38px, 0);
  }
}

@keyframes pvpWaitingText {
  0%, 100% {
    opacity: 0.48;
  }
  50% {
    opacity: 0.9;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pvp-waiting-screen::before,
  .pvp-waiting-screen span {
    animation: none;
  }
}

.pvp-segments {
  position: absolute;
  inset: 0;
  display: block;
  z-index: 1;
  transform-origin: var(--pvp-zoom-x, 50%) var(--pvp-zoom-y, 50%);
  transition: transform 1.1s cubic-bezier(0.2, 0.7, 0.22, 1);
}

.pvp-segment {
  position: absolute;
  inset: 0;
  display: block;
  overflow: hidden;
  isolation: isolate;
  filter: saturate(1.06);
  opacity: 1;
  transition:
    clip-path 0.72s cubic-bezier(0.2, 0.75, 0.18, 1),
    opacity 0.34s ease,
    filter 0.34s ease;
  will-change: clip-path;
}

.pvp-segment.entering {
  opacity: 0;
  filter: saturate(0.55) brightness(1.25);
}

.pvp-segment.leaving {
  opacity: 0;
  filter: saturate(0.45) brightness(0.8);
}

.pvp-segment::before {
  content: "";
  position: absolute;
  inset: -1px;
  background:
    radial-gradient(circle at 50% 48%, rgba(255, 255, 255, 0.18), transparent 24%),
    radial-gradient(circle at 18% 82%, rgba(0, 0, 0, 0.16), transparent 34%),
    linear-gradient(135deg, var(--segment-a), var(--segment-b));
  z-index: -1;
}

.pvp-segment::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 0;
  background:
    radial-gradient(circle at 50% 50%, rgba(0, 0, 0, 0.12), transparent 30%),
    linear-gradient(140deg, rgba(255, 255, 255, 0.08), transparent 34%, rgba(0, 0, 0, 0.1));
  mix-blend-mode: screen;
  pointer-events: none;
}

.pvp-avatar {
  position: absolute;
  width: clamp(58px, 18vw, 92px);
  height: clamp(58px, 18vw, 92px);
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.82);
  background: #111 center/cover no-repeat;
  box-shadow:
    0 0 0 6px rgba(255, 255, 255, 0.06),
    0 14px 28px rgba(0, 0, 0, 0.34);
  transform: translate(-50%, -50%);
  transition:
    left 0.72s cubic-bezier(0.2, 0.75, 0.18, 1),
    top 0.72s cubic-bezier(0.2, 0.75, 0.18, 1),
    width 0.72s cubic-bezier(0.2, 0.75, 0.18, 1),
    height 0.72s cubic-bezier(0.2, 0.75, 0.18, 1);
}

.pvp-segment-name {
  position: absolute;
  max-width: 104px;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.52);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  transform: translate(-50%, -50%);
  z-index: 2;
}

.pvp-ball {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(0.86);
  background:
    radial-gradient(circle at 50% 50%, rgba(123, 77, 255, 0.85) 0 18%, transparent 19%),
    radial-gradient(circle at 38% 30%, #ffffff, #f8f1ff 58%, #ffffff 64%, rgba(255, 255, 255, 0.62));
  box-shadow:
    0 0 18px rgba(255, 255, 255, 0.85),
    0 0 38px rgba(145, 91, 255, 0.58);
  opacity: 0;
  z-index: 5000;
  transition: opacity 0.18s ease, transform 0.18s ease;
  will-change: left, top;
}

.pvp-field.rolling .pvp-ball,
.pvp-field.result .pvp-ball {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.pvp-field.boosting .pvp-ball {
  transform: translate(-50%, -50%) scale(1.24);
  box-shadow:
    0 0 26px rgba(255, 255, 255, 1),
    0 0 58px rgba(255, 62, 70, 0.78),
    0 0 96px rgba(145, 91, 255, 0.54);
}

.pvp-field.zooming .pvp-segments {
  transform: scale(1.58);
}

.pvp-field.zooming .pvp-ball {
  transform: translate(-50%, -50%) scale(1.35);
  box-shadow:
    0 0 24px rgba(255, 255, 255, 0.95),
    0 0 54px rgba(145, 91, 255, 0.72);
}

.pvp-field-label {
  display: none;
}

.pvp-field-label strong {
  font-size: 22px;
  line-height: 1;
}

.pvp-field-label span {
  color: rgba(255, 255, 255, 0.68);
  font-size: 12px;
  font-weight: 800;
}

.pvp-win-overlay {
  position: absolute;
  inset: 0;
  z-index: 6500;
  display: grid;
  place-items: center;
  padding: 18px;
  background:
    radial-gradient(circle at 50% 37%, rgba(255, 50, 56, 0.24), transparent 36%),
    radial-gradient(circle at 50% 78%, rgba(255, 32, 40, 0.15), transparent 34%),
    rgba(4, 7, 11, 0.6);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.24s ease;
}

.pvp-win-overlay::before,
.pvp-win-overlay::after {
  content: "";
  position: absolute;
  inset: -12%;
  pointer-events: none;
  opacity: 0;
  will-change: opacity, transform;
}

.pvp-win-overlay::before {
  background:
    radial-gradient(circle at 18% 30%, #ff454d 0 2px, transparent 3px),
    radial-gradient(circle at 30% 22%, #ffd76a 0 2px, transparent 3px),
    radial-gradient(circle at 70% 25%, #55d9ff 0 2px, transparent 3px),
    radial-gradient(circle at 82% 34%, #69ff95 0 2px, transparent 3px),
    radial-gradient(circle at 23% 78%, #9f75ff 0 2px, transparent 3px),
    radial-gradient(circle at 76% 76%, #ffd76a 0 2px, transparent 3px);
  transform: scale(0.8);
}

.pvp-win-overlay::after {
  background:
    radial-gradient(circle at 50% 48%, rgba(255, 68, 76, 0.24) 0 8%, transparent 20%),
    radial-gradient(circle at 50% 48%, rgba(255, 215, 106, 0.18) 0 3%, transparent 14%);
  transform: scale(0.62);
}

.pvp-win-overlay.visible {
  opacity: 1;
}

.pvp-win-overlay.visible::before {
  animation: pvpConfettiPop 1.7s ease-out both;
}

.pvp-win-overlay.visible::after {
  animation: pvpFireworks 1.25s ease-out both;
}

.pvp-win-card {
  width: min(82%, 248px);
  min-height: 178px;
  padding: 23px 18px 18px;
  border: 1px solid rgba(255, 64, 68, 0.72);
  border-radius: 22px;
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 64, 68, 0.36), transparent 42%),
    linear-gradient(160deg, rgba(24, 28, 35, 0.97), rgba(10, 13, 18, 0.98));
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.06) inset,
    0 22px 56px rgba(0, 0, 0, 0.48),
    0 0 44px rgba(255, 45, 49, 0.28);
  display: grid;
  justify-items: center;
  gap: 7px;
  text-align: center;
  transform: translateY(12px) scale(0.94);
  animation: pvpWinPop 0.62s cubic-bezier(0.19, 1.08, 0.32, 1) forwards;
  position: relative;
  overflow: hidden;
}

.pvp-win-card::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  background:
    linear-gradient(115deg, transparent 0 34%, rgba(255, 255, 255, 0.28) 42%, transparent 51% 100%);
  opacity: 0;
  transform: translateX(-70%);
  animation: pvpWinSheen 1.45s 0.2s ease-out both;
  pointer-events: none;
}

.pvp-win-badge {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 47, 54, 0.26), transparent 63%),
    rgba(255, 255, 255, 0.04);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.1) inset,
    0 0 30px rgba(255, 45, 49, 0.34);
  display: grid;
  place-items: center;
}

.pvp-win-badge .coin {
  width: 46px;
  height: 46px;
}

.pvp-win-name {
  max-width: 100%;
  color: #fff;
  font-size: 24px;
  line-height: 1.05;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-shadow:
    0 1px 0 rgba(255, 255, 255, 0.12),
    0 0 24px rgba(255, 55, 60, 0.42);
}

.pvp-win-label {
  color: rgba(235, 239, 247, 0.62);
  font-size: 13px;
  font-weight: 850;
  text-transform: uppercase;
}

.pvp-win-amount {
  min-width: 142px;
  min-height: 44px;
  padding: 7px 15px 7px 10px;
  border-radius: 999px;
  background: linear-gradient(145deg, rgba(255, 43, 51, 0.95), rgba(159, 18, 28, 0.96));
  box-shadow:
    0 12px 28px rgba(255, 43, 51, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.28);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.pvp-win-amount .coin {
  width: 26px;
  height: 26px;
}

.pvp-win-amount strong {
  color: #fff;
  font-size: 22px;
  line-height: 1;
}

@keyframes pvpImpactBurst {
  0% {
    opacity: 0.9;
    transform: translate(-50%, -50%) scale(0.25);
  }

  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(2.2);
  }
}

@keyframes pvpWinPop {
  0% {
    opacity: 0;
    transform: translateY(18px) scale(0.86);
  }

  58% {
    opacity: 1;
    transform: translateY(-3px) scale(1.025);
  }

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

@keyframes pvpWinSheen {
  0% {
    opacity: 0;
    transform: translateX(-72%);
  }

  28% {
    opacity: 1;
  }

  100% {
    opacity: 0;
    transform: translateX(78%);
  }
}

@keyframes pvpFireworks {
  0% {
    opacity: 0;
    transform: scale(0.62);
  }

  22% {
    opacity: 0.9;
  }

  100% {
    opacity: 0;
    transform: scale(1.18);
  }
}

@keyframes pvpConfettiPop {
  0% {
    opacity: 0;
    transform: translateY(-8px) scale(0.8);
  }

  14% {
    opacity: 1;
  }

  100% {
    opacity: 0;
    transform: translateY(18px) scale(1);
  }
}

.pvp-players-card,
.pvp-bet-card {
  padding: 12px;
}

.pvp-players-head {
  margin-bottom: 10px;
}

.pvp-players-head strong {
  color: #fff;
  font-size: 20px;
}

.pvp-pot-note {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.pvp-player-list {
  display: grid;
  gap: 7px;
}

.pvp-player-row {
  min-height: 45px;
  padding: 6px 9px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  background: rgba(16, 20, 27, 0.78);
  display: grid;
  grid-template-columns: 34px 1fr auto;
  align-items: center;
  gap: 9px;
}

.pvp-player-row .pvp-avatar {
  position: static;
  width: 34px;
  height: 34px;
  border-width: 1px;
  box-shadow: none;
  transform: none;
}

.pvp-player-row strong {
  color: #fff;
  font-size: 13px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pvp-player-row span:last-child {
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  font-weight: 900;
}

.pvp-player-metrics {
  display: grid;
  justify-items: end;
  gap: 2px;
  font-variant-numeric: tabular-nums;
}

.pvp-player-metrics b {
  color: rgba(255, 255, 255, 0.78);
  font-size: 12px;
}

.pvp-player-metrics small {
  color: #ff4a54;
  font-size: 10px;
  font-weight: 900;
}

.pvp-bet-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 8px;
}

.pvp-bet-control {
  display: grid;
  gap: 5px;
}

.pvp-bet-control > span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.pvp-bet-control strong {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  font-size: 21px;
}

.pvp-bet-control .coin,
.pvp-join-btn .coin {
  width: 22px;
  height: 22px;
  font-size: 0;
}

.pvp-bet-input {
  width: 130px;
  max-width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  padding: 0;
  background: transparent;
  color: #fff;
  font: inherit;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0;
}

.pvp-bet-presets {
  display: inline-grid;
  grid-template-columns: repeat(3, 42px);
  gap: 5px;
  align-self: end;
}

.pvp-bet-presets button {
  height: 31px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 9px;
  background: rgba(24, 28, 36, 0.86);
  color: rgba(213, 216, 224, 0.74);
  font-size: 11px;
  font-weight: 850;
}

.pvp-join-btn {
  grid-column: 1 / -1;
  min-height: 62px;
  border-radius: 12px;
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.2), transparent 36%),
    linear-gradient(135deg, #ff2734, #ba0e1c);
  box-shadow:
    0 0 24px rgba(255, 34, 43, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.16);
  display: grid;
  place-items: center;
  gap: 4px;
  color: #fff;
  font-weight: 950;
}

.pvp-join-btn:disabled {
  opacity: 0.58;
  filter: saturate(0.68);
}

.pvp-join-btn span {
  font-size: 18px;
}

.pvp-join-btn strong {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 17px;
}

@keyframes pvpBallRun {
  0% {
    left: 12%;
    top: 22%;
  }

  24% {
    left: 74%;
    top: 18%;
  }

  48% {
    left: 34%;
    top: 78%;
  }

  72% {
    left: 86%;
    top: 66%;
  }

  100% {
    left: var(--winner-x, 50%);
    top: var(--winner-y, 50%);
  }
}

@keyframes crashRocketGameFloat {
  0%,
  100% {
    transform: translate3d(0, 0, 0) rotate(0deg) scale(1);
  }

  45% {
    transform: translate3d(7px, -9px, 0) rotate(0.8deg) scale(1.012);
  }

  72% {
    transform: translate3d(3px, -4px, 0) rotate(0.25deg) scale(1.005);
  }
}

@keyframes crashPointPulse {
  0%,
  100% {
    opacity: 0.65;
  }

  50% {
    opacity: 1;
  }
}

@keyframes crashCountdownPulse {
  0%,
  100% {
    transform: scale(0.94);
    opacity: 0.78;
  }

  48% {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes rocketStaticFlight {
  0%,
  100% {
    transform: translate(-50%, -50%) translate3d(0, 0, 0) scale(1);
  }

  42% {
    transform: translate(-50%, -50%) translate3d(4px, -7px, 0) scale(1.015);
  }

  70% {
    transform: translate(-50%, -50%) translate3d(1px, -3px, 0) scale(1.006);
  }
}

@keyframes crashExplosionPop {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.36);
  }

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

  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(1.08);
  }
}

.bottom-nav {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  width: min(calc(100% - 20px), 420px);
  bottom: max(8px, env(safe-area-inset-bottom));
  z-index: 5;
  height: 54px;
  margin-top: 8px;
  border-color: var(--soft-border);
  background: var(--nav-bg);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: center;
  overflow: hidden;
}

.bottom-nav button {
  height: 100%;
  background: transparent;
  display: grid;
  place-items: center;
  color: var(--text);
  opacity: 0.82;
  position: relative;
}

.bottom-nav button.active {
  color: var(--accent);
  opacity: 1;
}

.bottom-nav button.active::after {
  content: "";
  position: absolute;
  bottom: 0;
  width: 28px;
  height: 2px;
  border-radius: 999px;
  background: var(--accent);
}

.nav-icon {
  width: 29px;
  height: 29px;
  display: block;
  object-fit: contain;
  opacity: 0.82;
  filter:
    invert(96%) sepia(5%) saturate(265%) hue-rotate(182deg) brightness(104%) contrast(92%)
    drop-shadow(0 0 10px rgba(255, 255, 255, 0.08));
}

.bottom-nav button.active .nav-icon {
  opacity: 1;
  filter:
    invert(36%) sepia(93%) saturate(2035%) hue-rotate(336deg) brightness(101%) contrast(92%)
    drop-shadow(0 0 12px rgba(240, 68, 68, 0.34));
}

@media (max-width: 390px) {
  .app-shell {
    padding-left: 8px;
    padding-right: 8px;
  }

  .topbar {
    gap: 6px;
  }

  .avatar-hero {
    width: 52px;
    height: 52px;
  }

  .profile {
    gap: 10px;
  }

  .nickname {
    font-size: 18px;
  }

  .profile-copy span {
    font-size: 12px;
  }

  .wallet {
    gap: 6px;
    margin-right: 0;
  }

  .balance-pill {
    min-width: 106px;
    height: 38px;
    gap: 8px;
    padding-right: 13px;
  }

  .coin-lg {
    width: 28px;
    height: 28px;
  }

  .balance-pill strong {
    font-size: 18px;
  }

  .add-btn {
    width: 38px;
    height: 38px;
  }

  .crash-card {
    min-height: 126px;
  }

  .pvp-card {
    min-height: 120px;
  }

  .mini-grid {
    grid-template-columns: 1.17fr 0.9fr;
  }

  .small-card {
    min-height: 141px;
    height: 141px;
    padding: 16px 12px;
  }

  .mini-copy {
    left: 14px;
    right: 8px;
    top: 16px;
  }

  .blackjack-aces {
    right: -34px;
    bottom: -31px;
    width: 136px;
  }

  .blackjack-card .mini-copy {
    right: 70px;
  }

  .blackjack-table {
    height: 322px;
  }

  .blackjack-card-face {
    width: 60px;
    height: 86px;
  }

  .blackjack-cards,
  .blackjack-hand-cards {
    min-height: 88px;
  }

  .blackjack-bet-input {
    width: 98px;
    font-size: 20px;
  }

  .blackjack-bet-presets button {
    width: 42px;
  }

  .blackjack-actions {
    gap: 4px;
  }

  .blackjack-actions strong {
    font-size: 11px;
  }

  .win-row {
    grid-template-columns: 34px minmax(74px, 1fr) auto minmax(62px, auto);
    gap: 8px;
    padding-left: 8px;
    padding-right: 8px;
  }
}

.admin-pools-entry {
  width: 100%;
  min-height: 68px;
  margin-top: 18px;
  padding: 12px 14px;
  display: grid;
  grid-template-columns: 42px 1fr 20px;
  align-items: center;
  gap: 12px;
  color: #f7f8fa;
  text-align: left;
  border: 1px solid rgba(240, 68, 68, 0.45);
  border-radius: 8px;
  background: linear-gradient(110deg, rgba(240, 68, 68, 0.16), rgba(13, 16, 20, 0.96) 55%);
  box-shadow: inset 0 0 24px rgba(240, 68, 68, 0.05);
}

.admin-pools-entry[hidden],
.admin-pools-modal[hidden] {
  display: none;
}

.admin-pools-entry > span:nth-child(2) {
  display: grid;
  gap: 2px;
}

.admin-pools-entry small {
  color: #f04444;
  font-size: 10px;
  font-weight: 800;
}

.admin-pools-entry strong {
  font-size: 17px;
}

.admin-pools-entry b {
  color: #f04444;
  font-size: 28px;
  font-weight: 400;
}

.admin-entry-icon {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 4px;
  padding: 9px;
  border-radius: 8px;
  background: #f04444;
  box-shadow: 0 0 18px rgba(240, 68, 68, 0.28);
}

.admin-entry-icon i {
  width: 5px;
  border-radius: 2px 2px 0 0;
  background: #fff;
}

.admin-entry-icon i:nth-child(1) { height: 10px; }
.admin-entry-icon i:nth-child(2) { height: 18px; }
.admin-entry-icon i:nth-child(3) { height: 25px; }

.admin-pools-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 12px;
}

.admin-pools-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(5px);
}

.admin-pools-dialog {
  position: relative;
  width: min(100%, 540px);
  max-height: min(88vh, 760px);
  overflow: auto;
  border: 1px solid rgba(240, 68, 68, 0.5);
  border-radius: 8px;
  background: #0b0e12;
  box-shadow: 0 -12px 50px rgba(0, 0, 0, 0.6), 0 0 40px rgba(240, 68, 68, 0.12);
  animation: adminPanelIn 220ms ease-out both;
}

@keyframes adminPanelIn {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: translateY(0); }
}

.admin-pools-header {
  position: sticky;
  top: 0;
  z-index: 2;
  min-height: 74px;
  padding: 15px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(11, 14, 18, 0.96);
}

.admin-pools-header span {
  color: #f04444;
  font-size: 10px;
  font-weight: 800;
}

.admin-pools-header h2 {
  margin: 2px 0 0;
  font-size: 24px;
}

.admin-pools-close {
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  color: #fff;
  background: #151920;
  font-size: 28px;
  line-height: 1;
}

.admin-pools-status {
  min-height: 22px;
  padding: 8px 16px 0;
  color: #9ca3ad;
  font-size: 12px;
}

.admin-pools-status[data-kind="success"] { color: #35d662; }
.admin-pools-status[data-kind="error"] { color: #ff5b61; }

.admin-pools-content {
  padding: 10px 14px 20px;
  display: grid;
  gap: 10px;
}

.admin-pool-panel {
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: #11151b;
}

.admin-pool-title,
.admin-pool-total,
.admin-audit-title,
.admin-audit-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.admin-pool-title h3,
.admin-audit-title h3 {
  margin: 0;
  font-size: 16px;
  text-transform: uppercase;
}

.admin-pool-title span {
  color: #8f98a5;
  font-size: 12px;
  font-weight: 700;
}

.admin-pool-total {
  margin: 12px 0;
  padding: 10px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.admin-pool-total span {
  color: #8f98a5;
  font-size: 11px;
  font-weight: 700;
}

.admin-pool-total strong {
  color: #fff;
  font-size: 21px;
}

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

.admin-pool-fields.single {
  grid-template-columns: 1fr;
}

.admin-pool-fields label {
  display: grid;
  gap: 6px;
  color: #8f98a5;
  font-size: 10px;
  font-weight: 800;
}

.admin-pool-fields input {
  width: 100%;
  min-width: 0;
  height: 42px;
  padding: 0 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 7px;
  color: #fff;
  background: #090b0f;
  font: inherit;
  font-size: 15px;
  font-weight: 750;
}

.admin-pool-save {
  width: 100%;
  height: 42px;
  margin-top: 10px;
  border: 0;
  border-radius: 7px;
  color: #fff;
  background: linear-gradient(100deg, #ff313c, #d20d24);
  font-size: 13px;
  font-weight: 850;
}

.admin-pool-save:disabled {
  opacity: 0.5;
}

.admin-crash-risk {
  margin-top: 10px;
  display: flex;
  justify-content: space-between;
  color: #8f98a5;
  font-size: 11px;
}

.admin-crash-risk strong {
  color: #f1f3f5;
}

.admin-audit {
  padding: 14px 2px 0;
}

.admin-audit-title {
  margin-bottom: 8px;
}

.admin-audit-row {
  min-height: 40px;
  padding: 7px 2px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  color: #a8afb8;
  font-size: 11px;
}

.admin-audit-row strong {
  color: #fff;
  font-size: 12px;
  text-transform: uppercase;
}

@media (max-width: 420px) {
  .admin-pools-modal { padding: 0; }
  .admin-pools-dialog { width: 100%; max-height: 92vh; border-radius: 8px 8px 0 0; }
}
