:root {
  color-scheme: dark;
  --bg: #03070c;
  --panel: #0e151f;
  --panel-2: #121b26;
  --panel-3: #172230;
  --line: rgba(75, 98, 119, 0.24);
  --line-strong: rgba(107, 138, 163, 0.34);
  --text: #eef6ff;
  --muted: #738292;
  --dim: #344454;
  --cyan: #62f6ff;
  --cyan-2: #55b9ff;
  --nav: rgba(24, 31, 40, 0.86);
  --glass-border: rgba(255, 255, 255, 0.26);
  --ease-spring: cubic-bezier(0.2, 0.8, 0.2, 1);
  font-family: Manrope, Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

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

body {
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 50% 41%, rgba(70, 218, 255, 0.06), transparent 17rem),
    linear-gradient(180deg, #02060b 0%, #03070c 100%);
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.2;
  background:
    linear-gradient(104deg, transparent 0 24%, rgba(49, 67, 82, 0.24) 24.2% 24.5%, transparent 24.8%),
    linear-gradient(165deg, transparent 0 56%, rgba(49, 67, 82, 0.18) 56.2% 56.5%, transparent 56.8%);
}

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

.game-rules-button {
  width: 38px;
  height: 38px;
  padding: 0;
  border-radius: 13px;
  display: grid;
  place-items: center;
  line-height: 0;
  color: rgba(238, 246, 255, 0.58);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.025)),
    rgba(27, 34, 43, 0.76);
  border: 1px solid rgba(255, 255, 255, 0.07);
  box-shadow:
    inset 1px 1px 3px rgba(255, 255, 255, 0.08),
    0 8px 18px rgba(0, 0, 0, 0.12);
  transition: transform 160ms var(--ease-spring), background 160ms ease;
}

.game-rules-button svg {
  width: 20px;
  height: 20px;
  display: block;
  margin: auto;
  fill: currentColor;
  transform: translateY(1.5px);
}

.game-rules-button:active {
  transform: scale(0.93);
  background: rgba(255, 255, 255, 0.1);
}

.rules-open {
  overflow: hidden;
}

.game-rules-overlay {
  position: fixed;
  inset: 0;
  z-index: 80;
  padding: max(16px, env(safe-area-inset-top)) 12px 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background: rgba(1, 5, 9, 0.68);
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 220ms ease, visibility 220ms ease;
}

.game-rules-overlay.open {
  opacity: 1;
  visibility: visible;
}

.game-rules-sheet {
  width: min(100%, 430px);
  max-height: calc(100vh - max(16px, env(safe-area-inset-top)));
  padding: 17px 14px calc(20px + env(safe-area-inset-bottom));
  border-radius: 28px 28px 0 0;
  color: var(--text);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.012)),
    rgba(8, 15, 23, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 0;
  box-shadow:
    0 -20px 50px rgba(0, 0, 0, 0.42),
    inset 1px 1px 4px rgba(255, 255, 255, 0.07);
  transform: translateY(105%);
  transition: transform 420ms var(--ease-spring);
}

.game-rules-overlay.open .game-rules-sheet {
  transform: translateY(0);
}

.game-rules-head {
  min-height: 50px;
  padding: 0 3px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.game-rules-head > div {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.game-rules-head span {
  color: rgba(238, 246, 255, 0.42);
  font-size: 10px;
  font-weight: 700;
}

.game-rules-head h2 {
  margin: 0;
  font: 900 20px/1 Inter, sans-serif;
  letter-spacing: -0.035em;
}

.game-rules-close {
  width: 38px;
  height: 38px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  color: rgba(238, 246, 255, 0.62);
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.game-rules-close svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.game-rules-content {
  max-height: calc(100vh - 100px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
  padding: 2px 2px 14px;
  display: grid;
  gap: 8px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: none;
}

.game-rules-content::-webkit-scrollbar {
  display: none;
}

.game-rule-card {
  padding: 13px;
  border-radius: 17px;
  color: rgba(238, 246, 255, 0.65);
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.055);
  font-size: 11px;
  line-height: 1.48;
}

.game-rule-card.accent {
  background: rgba(98, 246, 255, 0.055);
  border-color: rgba(98, 246, 255, 0.13);
}

.game-rule-card > b {
  display: block;
  margin-bottom: 5px;
  color: var(--text);
  font-size: 12px;
}

.game-rule-card p {
  margin: 0;
}

.game-rule-card ul {
  margin: 0;
  padding-left: 17px;
}

.game-rule-card li + li {
  margin-top: 4px;
}

.game-rule-card strong {
  color: var(--cyan);
}

.game-rule-card.payouts div {
  min-height: 31px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.045);
}

.game-rule-card.payouts div strong {
  font-size: 13px;
}

.game-rule-card.payouts small {
  display: block;
  margin-top: 8px;
  color: rgba(238, 246, 255, 0.38);
  font-size: 9px;
}

/* Daily roulette */

.daily-page {
  background:
    radial-gradient(circle at 50% 32%, rgba(98, 246, 255, 0.09), transparent 19rem),
    linear-gradient(180deg, #02060b, #03070c);
}

.daily-app {
  width: min(100%, 430px);
  min-height: 100vh;
  margin: 0 auto;
  padding: max(14px, env(safe-area-inset-top)) 16px calc(28px + env(safe-area-inset-bottom));
  border-inline: 1px solid rgba(22, 52, 74, 0.38);
}

.daily-topbar {
  min-height: 42px;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  margin-bottom: 15px;
}

.daily-back {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: rgba(238, 246, 255, 0.76);
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.07);
  text-decoration: none;
}

.daily-back .app-icon {
  width: 23px;
  height: 23px;
}

.daily-brand {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  color: inherit;
  text-decoration: none;
}

.daily-brand img {
  width: 84px;
}

.daily-brand span {
  color: rgba(238, 246, 255, 0.58);
  font-size: 11px;
  font-weight: 800;
}

.daily-balance {
  height: 38px;
  padding: 0 10px;
  border-radius: 13px;
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.daily-balance img {
  width: 18px;
  height: 18px;
}

.daily-balance b {
  font: 800 13px/1 Manrope, sans-serif;
}

.daily-status {
  min-height: 42px;
  margin-bottom: 11px;
  padding: 0 13px;
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: rgba(238, 246, 255, 0.5);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 10px;
}

.daily-status strong {
  color: rgba(238, 246, 255, 0.72);
  font-size: 10px;
}

.daily-status strong.available {
  color: var(--cyan);
}

.daily-wheel-stage {
  height: 378px;
  border-radius: 29px;
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 49%, rgba(98, 246, 255, 0.13), transparent 11rem),
    linear-gradient(160deg, rgba(14, 25, 37, 0.8), rgba(5, 10, 16, 0.95));
  border: 1px solid rgba(98, 246, 255, 0.11);
  box-shadow:
    0 20px 45px rgba(0, 0, 0, 0.3),
    inset 1px 1px 0 rgba(255, 255, 255, 0.04);
}

.daily-wheel-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.28;
  background-image:
    linear-gradient(rgba(98, 246, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(98, 246, 255, 0.04) 1px, transparent 1px);
  background-size: 38px 38px;
  mask-image: radial-gradient(circle, black, transparent 72%);
}

.daily-aura {
  width: 310px;
  height: 310px;
  border-radius: 50%;
  position: absolute;
  background: conic-gradient(from 0deg, transparent, rgba(98, 246, 255, 0.11), transparent, rgba(85, 185, 255, 0.08), transparent);
  filter: blur(18px);
  animation: rouletteAura 10s linear infinite;
}

.daily-wheel {
  width: min(77vw, 300px);
  height: min(77vw, 300px);
  border-radius: 50%;
  position: relative;
  z-index: 3;
  border: 8px solid #152431;
  box-shadow:
    0 0 0 2px rgba(98, 246, 255, 0.24),
    0 0 0 12px rgba(98, 246, 255, 0.035),
    0 20px 38px rgba(0, 0, 0, 0.4),
    0 0 38px rgba(98, 246, 255, 0.14),
    inset 0 0 24px rgba(0, 0, 0, 0.3);
  transition: transform 5.5s cubic-bezier(0.1, 0.68, 0.08, 1);
  will-change: transform;
}

.daily-wheel::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: repeating-conic-gradient(from -22.5deg, rgba(255, 255, 255, 0.24) 0 1deg, transparent 1deg 45deg);
  pointer-events: none;
}

.daily-pointer {
  width: 34px;
  height: 46px;
  position: absolute;
  top: 22px;
  left: 50%;
  z-index: 8;
  transform: translateX(-50%);
  background: linear-gradient(180deg, #f7ffff, var(--cyan));
  clip-path: polygon(50% 100%, 0 0, 100% 0);
  filter: drop-shadow(0 5px 8px rgba(98, 246, 255, 0.42));
}

.daily-wheel-labels {
  position: absolute;
  inset: 0;
}

.daily-wheel-labels > span {
  position: absolute;
  inset: 0;
  transform: rotate(var(--prize-angle));
}

.daily-wheel-labels i {
  width: 58px;
  height: 31px;
  position: absolute;
  top: 19px;
  left: 50%;
  transform: translateX(-50%) rotate(calc(-1 * var(--prize-angle)));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: #f5fcff;
  background: rgba(3, 10, 16, 0.34);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-style: normal;
  backdrop-filter: blur(3px);
}

.daily-wheel-labels img {
  width: 15px;
  height: 15px;
}

.daily-wheel-labels b {
  font-size: 11px;
}

.daily-wheel-center {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 4;
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.18), transparent 35%),
    linear-gradient(145deg, #142938, #07121c);
  border: 2px solid rgba(98, 246, 255, 0.3);
  box-shadow:
    0 8px 22px rgba(0, 0, 0, 0.42),
    0 0 24px rgba(98, 246, 255, 0.14);
}

.daily-wheel-center img {
  width: 69px;
}

.daily-result {
  position: absolute;
  z-index: 10;
  min-width: 190px;
  padding: 13px 16px;
  border-radius: 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  opacity: 0;
  visibility: hidden;
  transform: scale(0.78);
  color: #f5fcff;
  background: rgba(7, 16, 24, 0.86);
  border: 1px solid rgba(98, 246, 255, 0.18);
  box-shadow:
    0 18px 42px rgba(0, 0, 0, 0.42),
    0 0 34px rgba(98, 246, 255, 0.18);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: opacity 220ms ease, visibility 220ms ease, transform 380ms var(--ease-spring);
}

.daily-result.visible {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
}

.daily-result > span {
  color: rgba(238, 246, 255, 0.54);
  font-size: 10px;
  font-weight: 700;
}

.daily-result strong {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--cyan);
  font-size: 27px;
}

.daily-result img {
  width: 28px;
  height: 28px;
  filter: drop-shadow(0 0 8px rgba(255, 219, 104, 0.42));
}

.daily-spin {
  width: 100%;
  min-height: 57px;
  margin: 10px 0;
  border-radius: 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  color: #06141c;
  background: linear-gradient(135deg, var(--cyan), var(--cyan-2));
  box-shadow: 0 13px 30px rgba(48, 190, 255, 0.22);
  font-weight: 900;
}

.daily-spin span {
  font-size: 14px;
}

.daily-spin small {
  opacity: 0.62;
  font-size: 9px;
}

.daily-spin:disabled {
  color: rgba(238, 246, 255, 0.4);
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.07);
  box-shadow: none;
}

.daily-prizes {
  padding: 14px;
  border-radius: 23px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.015)),
    rgba(12, 19, 28, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.07);
  box-shadow: 0 15px 34px rgba(0, 0, 0, 0.2);
}

.daily-prizes-head {
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.daily-prizes-head > div {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.daily-prizes-head span {
  color: rgba(238, 246, 255, 0.4);
  font-size: 9px;
}

.daily-prizes-head h2 {
  margin: 0;
  font-size: 14px;
}

.daily-prizes-head > b {
  height: 25px;
  padding: 0 8px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  color: var(--cyan);
  background: rgba(98, 246, 255, 0.08);
  font-size: 9px;
}

.daily-prize-grid {
  margin-top: 9px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 7px;
}

.daily-prize-item {
  min-height: 78px;
  padding: 7px 4px;
  border-radius: 14px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 10%, color-mix(in srgb, var(--prize-color) 55%, transparent), transparent 70%),
    rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.055);
}

.daily-prize-item > span {
  position: absolute;
  top: 5px;
  left: 6px;
  color: rgba(238, 246, 255, 0.25);
  font-size: 8px;
  font-weight: 800;
}

.daily-prize-item img {
  width: 23px;
  height: 23px;
}

.daily-prize-item b {
  color: var(--text);
  font-size: 13px;
}

.daily-prize-item small {
  color: rgba(238, 246, 255, 0.38);
  font-size: 8px;
}

.daily-info {
  min-height: 48px;
  margin-top: 9px;
  padding: 9px 11px;
  border-radius: 15px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(238, 246, 255, 0.38);
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.045);
}

.daily-info svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  fill: rgba(238, 246, 255, 0.38);
}

.daily-info p {
  margin: 0;
  font-size: 9px;
  line-height: 1.4;
}

@media (max-width: 360px) {
  .daily-wheel-stage {
    height: 345px;
  }

  .daily-wheel {
    width: 270px;
    height: 270px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .daily-wheel,
  .daily-result {
    transition-duration: 1ms;
  }

  .daily-aura {
    animation: none;
  }
}

/* Chicken Road game */

.road-page {
  background:
    radial-gradient(circle at 50% 27%, rgba(98, 246, 255, 0.07), transparent 19rem),
    linear-gradient(180deg, #02060b, #03070c);
}

.road-app {
  width: min(100%, 430px);
  min-height: 100vh;
  margin: 0 auto;
  padding: max(14px, env(safe-area-inset-top)) 16px calc(28px + env(safe-area-inset-bottom));
  border-inline: 1px solid rgba(22, 52, 74, 0.38);
}

.road-topbar {
  min-height: 42px;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 38px auto;
  align-items: center;
  gap: 8px;
  margin-bottom: 13px;
}

.road-back {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: rgba(238, 246, 255, 0.76);
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.07);
  text-decoration: none;
}

.road-back .app-icon {
  width: 23px;
  height: 23px;
}

.road-brand {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  color: inherit;
  text-decoration: none;
}

.road-brand img {
  width: 78px;
}

.road-brand span {
  color: rgba(238, 246, 255, 0.58);
  font-size: 10px;
  font-weight: 800;
}

.road-balance {
  height: 38px;
  padding: 0 10px;
  border-radius: 13px;
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.road-balance img {
  width: 18px;
  height: 18px;
}

.road-balance b {
  font: 800 13px/1 Manrope, sans-serif;
}

.road-stage {
  --road-lane-count: 5;
  --road-view-start: 0;
  --road-shift: 0%;
  height: 332px;
  border-radius: 27px;
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) 0;
  transition: grid-template-columns 520ms ease;
  background: #17222d;
  border: 1px solid rgba(98, 246, 255, 0.1);
  box-shadow:
    0 20px 45px rgba(0, 0, 0, 0.3),
    inset 1px 1px 0 rgba(255, 255, 255, 0.04);
}

.road-sidewalk {
  position: relative;
  z-index: 2;
  background:
    linear-gradient(90deg, rgba(98, 246, 255, 0.07), transparent),
    repeating-linear-gradient(0deg, #283946 0 31px, #304552 32px 33px);
  border-right: 3px solid rgba(255, 205, 73, 0.8);
}

.road-sidewalk i {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  position: absolute;
  background: rgba(98, 246, 255, 0.12);
  border: 1px solid rgba(98, 246, 255, 0.12);
}

.road-sidewalk i:nth-child(1) { top: 32px; left: 12px; }
.road-sidewalk i:nth-child(2) { top: 145px; left: 27px; }
.road-sidewalk i:nth-child(3) { bottom: 31px; left: 9px; }

.road-track {
  position: relative;
  min-width: 0;
  overflow: visible;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.025), transparent 20% 80%, rgba(0, 0, 0, 0.14)),
    #293946;
}

.road-track::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.24;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 28px 28px;
}

.road-lanes {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: calc(var(--road-lane-count) * 25%);
  display: flex;
  transform: translateX(calc(-1 * var(--road-shift)));
  transition: transform 1000ms cubic-bezier(0.22, 0.62, 0.18, 1);
}

.road-lane {
  min-width: 0;
  flex: 0 0 calc(100% / var(--road-lane-count));
  position: relative;
  border-right: 1px dashed rgba(238, 246, 255, 0.46);
}

.road-lane span {
  min-width: 48px;
  height: 40px;
  padding: 0 7px;
  border-radius: 11px;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  color: rgba(238, 246, 255, 0.62);
  background: rgba(4, 11, 17, 0.34);
  border: 1px solid rgba(255, 255, 255, 0.07);
  font-size: 11px;
  font-weight: 900;
  transition: opacity 180ms ease, transform 220ms var(--ease-spring);
}

.road-lane.passed span {
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.72);
}

.road-lane.passed::before {
  content: "";
  width: min(54px, 82%);
  height: 38px;
  border-radius: 6px;
  position: absolute;
  left: 50%;
  top: 31%;
  z-index: 5;
  transform: translate(-50%, -50%);
  background:
    repeating-linear-gradient(135deg, #f4cf22 0 10px, #2c2734 10px 20px);
  border: 3px solid #42384d;
  box-shadow:
    0 6px 0 rgba(27, 21, 34, 0.5),
    inset 0 -2px 0 rgba(0, 0, 0, 0.18);
  animation: roadBarrierIn 360ms var(--ease-spring);
}

.road-lane.passed::after {
  content: "";
  width: min(43px, 66%);
  height: 9px;
  position: absolute;
  left: 50%;
  top: calc(31% - 27px);
  z-index: 6;
  transform: translateX(-50%);
  background:
    radial-gradient(circle at 0 50%, #ff5a33 0 4px, #742a27 4.5px 7px, transparent 7.5px),
    radial-gradient(circle at 100% 50%, #ff5a33 0 4px, #742a27 4.5px 7px, transparent 7.5px);
  filter: drop-shadow(0 0 5px rgba(255, 75, 43, 0.7));
  animation: roadBarrierLights 850ms ease-in-out infinite alternate;
}

.road-traffic {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: calc(var(--road-lane-count) * 25%);
  z-index: 4;
  pointer-events: none;
  transform: translateX(calc(-1 * var(--road-shift)));
  transition: transform 1000ms cubic-bezier(0.22, 0.62, 0.18, 1);
}

.road-traffic i {
  --lane: 0;
  --lane-count: 10;
  width: 24px;
  height: 54px;
  border-radius: 10px 10px 7px 7px;
  position: absolute;
  left: calc((var(--lane) + 0.5) * (100% / var(--lane-count)));
  margin-left: -12px;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.2), transparent 16% 84%, rgba(0, 0, 0, 0.22)),
    linear-gradient(180deg,
      color-mix(in srgb, var(--car-color) 76%, white) 0 10%,
      var(--car-color) 11% 74%,
      color-mix(in srgb, var(--car-color) 66%, black) 75% 100%);
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow:
    0 9px 14px rgba(0, 0, 0, 0.42),
    inset 2px 0 3px rgba(255, 255, 255, 0.17),
    inset -2px 0 3px rgba(0, 0, 0, 0.18);
}

.road-traffic i::before {
  content: "";
  position: absolute;
  top: 9px;
  left: 3px;
  right: 3px;
  height: 24px;
  border-radius: 5px 5px 3px 3px;
  background:
    linear-gradient(180deg,
      #d8f8ff 0 36%,
      #5587a2 37% 48%,
      color-mix(in srgb, var(--car-color) 82%, black) 49% 57%,
      #77a9be 58% 72%,
      #c9f2ff 73% 100%);
  border: 1px solid rgba(230, 253, 255, 0.4);
  box-shadow:
    inset 0 2px 3px rgba(255, 255, 255, 0.4),
    inset 0 -2px 4px rgba(0, 31, 50, 0.36);
}

.road-traffic i::after {
  content: "";
  position: absolute;
  inset: -2px -3px;
  background:
    radial-gradient(ellipse at 0 22%, #070a0d 0 3px, transparent 3.4px),
    radial-gradient(ellipse at 100% 22%, #070a0d 0 3px, transparent 3.4px),
    radial-gradient(ellipse at 0 78%, #070a0d 0 3px, transparent 3.4px),
    radial-gradient(ellipse at 100% 78%, #070a0d 0 3px, transparent 3.4px),
    radial-gradient(circle at 27% 4%, #fff6b5 0 2px, transparent 2.4px),
    radial-gradient(circle at 73% 4%, #fff6b5 0 2px, transparent 2.4px),
    radial-gradient(circle at 27% 96%, #ff554e 0 2px, transparent 2.4px),
    radial-gradient(circle at 73% 96%, #ff554e 0 2px, transparent 2.4px);
  filter:
    drop-shadow(0 -1px 3px rgba(255, 238, 135, 0.28))
    drop-shadow(0 2px 3px rgba(255, 65, 60, 0.2));
  pointer-events: none;
}

.road-traffic i.down {
  top: -58px;
  animation: roadCarDown 1.35s linear forwards;
  transform: rotate(180deg);
}

.road-traffic i.up {
  bottom: -58px;
  transform: rotate(180deg);
  animation: roadCarUp 1.35s linear forwards;
}

.road-traffic i.collision {
  z-index: 8;
  animation-duration: 1.35s;
  animation-timing-function: linear;
  filter: brightness(1.08);
}

.road-character {
  --road-position: -8%;
  --road-next-position: -8%;
  --road-mid-position: -8%;
  width: 57px;
  height: 57px;
  position: absolute;
  left: var(--road-position);
  top: 45%;
  z-index: 7;
  transform: translate(-50%, -50%);
  transition: opacity 150ms ease, filter 150ms ease;
}

.road-stage.panning .road-character,
.road-stage.panning .road-crash-mark {
  transition:
    left 1000ms cubic-bezier(0.22, 0.62, 0.18, 1),
    opacity 150ms ease,
    filter 150ms ease;
}

.road-character img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 8px 9px rgba(0, 0, 0, 0.38));
}

.road-character.jumping {
  animation: roadChickenJump 1050ms cubic-bezier(0.22, 0.62, 0.18, 1) forwards;
}

.road-stage.crashed .road-character {
  opacity: 0.35;
  filter: grayscale(1) brightness(0.65);
  transform: translate(-50%, -50%) rotate(76deg) scale(0.9);
}

.road-stage.won .road-character {
  filter: drop-shadow(0 0 22px rgba(98, 246, 255, 0.75));
}

.road-crash-mark {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  position: absolute;
  top: 45%;
  left: var(--road-position, 50%);
  z-index: 6;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.4);
  background: radial-gradient(circle, rgba(255, 255, 255, 0.9) 0 5%, #ffdf68 10%, #ff6b4b 30%, rgba(255, 64, 94, 0.25) 55%, transparent 70%);
}

.road-crash-mark.visible {
  animation: roadCrashFlash 620ms ease-out forwards;
}

.road-finish {
  display: grid;
  place-items: center;
  color: rgba(238, 246, 255, 0.24);
  background: repeating-linear-gradient(0deg, #eaf5ff 0 8px, #17222d 8px 16px);
  writing-mode: vertical-rl;
  font-size: 8px;
  font-weight: 900;
  opacity: 0;
  overflow: hidden;
  transition: opacity 300ms ease 240ms;
}

.road-stage.final-view {
  grid-template-columns: 52px minmax(0, 1fr) 18px;
}

.road-stage.final-view .road-finish {
  opacity: 1;
}

.road-progress {
  min-height: 45px;
  margin: 8px 0 10px;
  padding: 0 13px;
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: rgba(238, 246, 255, 0.48);
  background: rgba(255, 255, 255, 0.028);
  border: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 10px;
}

.road-progress i {
  font-style: normal;
}

.road-progress strong {
  color: var(--cyan);
  font: 900 17px/1 Inter, sans-serif;
}

.road-risk-inline {
  color: #ffb861;
  font-size: 9px;
  font-weight: 800;
}

.road-controls,
.road-coefficients {
  padding: 14px;
  border-radius: 23px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.015)),
    rgba(12, 19, 28, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.07);
  box-shadow: 0 15px 34px rgba(0, 0, 0, 0.2);
}

.road-difficulty {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
  margin-bottom: 11px;
}

.road-difficulty button {
  min-height: 48px;
  padding: 7px 3px;
  border-radius: 13px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  color: rgba(238, 246, 255, 0.54);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.055);
}

.road-difficulty span {
  font-size: 13px;
  font-weight: 700;
}

.road-difficulty small {
  opacity: 0.55;
  font-size: 7px;
}

.road-difficulty button.active {
  color: #06141c;
  background: linear-gradient(135deg, var(--cyan), var(--cyan-2));
}

.road-field-head {
  min-height: 23px;
  color: rgba(238, 246, 255, 0.52);
  font-size: 10px;
  font-weight: 700;
}

.road-bet-panel.hidden {
  display: none;
}

.road-bet-row {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 48px;
  gap: 7px;
}

.road-bet-row > button {
  height: 48px;
  border-radius: 14px;
  color: rgba(238, 246, 255, 0.72);
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 22px;
}

.road-bet-row label {
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.road-bet-row img {
  width: 21px;
  height: 21px;
}

.road-bet-row input {
  width: 96px;
  border: 0;
  outline: 0;
  color: var(--text);
  background: transparent;
  text-align: center;
  font: 800 19px/1 Manrope, sans-serif;
  appearance: textfield;
}

.road-bet-row input::-webkit-inner-spin-button,
.road-bet-row input::-webkit-outer-spin-button {
  appearance: none;
  margin: 0;
}

.road-shortcuts {
  margin: 7px 0 10px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
}

.road-shortcuts button {
  height: 31px;
  border-radius: 11px;
  color: rgba(238, 246, 255, 0.56);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 11px;
  font-weight: 700;
}

.road-start,
.road-next,
.road-cashout {
  height: 51px;
  border-radius: 16px;
  font-weight: 900;
}

.road-start {
  width: 100%;
  padding: 0 12px 0 17px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #06141c;
  background: linear-gradient(135deg, var(--cyan), var(--cyan-2));
  box-shadow: 0 12px 28px rgba(48, 190, 255, 0.2);
}

.road-start > span:last-child,
.road-cashout > span:last-child {
  height: 31px;
  padding: 0 9px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  gap: 5px;
  background: rgba(255, 255, 255, 0.35);
}

.road-start img,
.road-cashout img {
  width: 17px;
  height: 17px;
}

.road-actions {
  display: none;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 8px;
}

.road-actions.visible {
  display: grid;
}

.road-next {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  color: #06141c;
  background: linear-gradient(135deg, var(--cyan), var(--cyan-2));
}

.road-next small {
  opacity: 0.6;
  font-size: 8px;
}

.road-cashout {
  padding: 0 9px 0 13px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #06141c;
  background: linear-gradient(135deg, #ffdb68, #ff9f43);
}

.road-actions button:disabled {
  filter: saturate(0.45) brightness(0.7);
}

.road-coefficients {
  margin-top: 11px;
}

.road-coefficients-head {
  min-height: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.road-coefficients-head h2 {
  margin: 0;
  font-size: 13px;
}

.road-coefficients-head span {
  color: #ffb861;
  font-size: 9px;
  font-weight: 800;
}

.road-coefficient-list {
  margin-top: 9px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
}

.road-coefficient-list span {
  min-height: 48px;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  color: rgba(238, 246, 255, 0.42);
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.road-coefficient-list b {
  font-size: 9px;
}

.road-coefficient-list small {
  font-size: 9px;
  font-weight: 800;
}

.road-coefficient-list span.active {
  color: var(--cyan);
  border-color: rgba(98, 246, 255, 0.18);
  background: rgba(98, 246, 255, 0.07);
}

.road-coefficient-list span.passed {
  color: #06141c;
  background: linear-gradient(135deg, var(--cyan), var(--cyan-2));
}

.road-result-toast {
  position: fixed;
  top: max(74px, calc(env(safe-area-inset-top) + 62px));
  left: 50%;
  width: min(300px, calc(100% - 36px));
  min-height: 62px;
  padding: 9px 11px;
  border-radius: 21px;
  display: flex;
  align-items: center;
  gap: 9px;
  color: #f5fcff;
  background: rgba(16, 24, 32, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.34), 0 0 34px rgba(73, 186, 255, 0.2);
  backdrop-filter: blur(12px);
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, -18px) scale(0.94);
  transition: opacity 220ms ease, visibility 220ms ease, transform 380ms var(--ease-spring);
  z-index: 50;
}

.road-result-toast.visible {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0) scale(1);
}

.road-result-toast img {
  width: 35px;
  height: 35px;
}

.road-result-toast span {
  flex: 1;
  color: rgba(238, 246, 255, 0.62);
  font-size: 11px;
}

.road-result-toast strong {
  color: var(--cyan);
  font-size: 19px;
}

@keyframes roadChickenJump {
  0% {
    left: var(--road-position);
    transform: translate(-50%, -50%) rotate(-3deg);
  }
  48% {
    left: var(--road-mid-position);
    transform: translate(-50%, -78%) rotate(6deg) scale(1.06);
  }
  100% {
    left: var(--road-next-position);
    transform: translate(-50%, -50%) rotate(1deg);
  }
}

@keyframes roadCarDown {
  from { transform: translateY(0) rotate(180deg); }
  to { transform: translateY(410px) rotate(180deg); }
}

@keyframes roadCarUp {
  to { transform: translateY(-410px) rotate(180deg); }
}

@keyframes roadCrashFlash {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(0.3); }
  35% { opacity: 1; transform: translate(-50%, -50%) scale(1.15); }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(1.7); }
}

@keyframes roadBarrierIn {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.55) translateY(12px);
  }
  100% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1) translateY(0);
  }
}

@keyframes roadBarrierLights {
  from {
    opacity: 0.55;
  }
  to {
    opacity: 1;
  }
}

@media (max-width: 360px) {
  .road-stage {
    height: 305px;
    grid-template-columns: 46px minmax(0, 1fr) 16px;
  }

  .road-character {
    width: 51px;
    height: 51px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .road-character.jumping,
  .road-traffic i,
  .road-crash-mark.visible {
    animation-duration: 1ms;
  }
}

/* Cases catalog */

.cases-page {
  background:
    radial-gradient(circle at 50% 24%, rgba(98, 246, 255, 0.08), transparent 19rem),
    linear-gradient(180deg, #02060b, #03070c);
}

.cases-app {
  width: min(100%, 430px);
  min-height: 100vh;
  margin: 0 auto;
  padding: max(14px, env(safe-area-inset-top)) 16px calc(28px + env(safe-area-inset-bottom));
  border-inline: 1px solid rgba(22, 52, 74, 0.38);
}

.cases-topbar {
  min-height: 42px;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
}

.cases-back {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: rgba(238, 246, 255, 0.76);
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.07);
  text-decoration: none;
}

.cases-back .app-icon {
  width: 23px;
  height: 23px;
}

.cases-brand {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  color: inherit;
  text-decoration: none;
}

.cases-brand img {
  width: 84px;
}

.cases-brand span {
  color: rgba(238, 246, 255, 0.58);
  font-size: 11px;
  font-weight: 800;
}

.cases-balance {
  height: 38px;
  padding: 0 10px;
  border-radius: 13px;
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.cases-balance img {
  width: 18px;
  height: 18px;
}

.cases-balance b {
  font: 800 13px/1 Manrope, sans-serif;
}

.cases-page-head {
  margin: 0 3px 15px;
}

.cases-page-head > span {
  color: var(--cyan);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.cases-page-head h1 {
  margin: 5px 0 6px;
  font: 900 27px/1 Inter, sans-serif;
  letter-spacing: -0.045em;
}

.cases-page-head p {
  max-width: 330px;
  margin: 0;
  color: rgba(238, 246, 255, 0.42);
  font-size: 10px;
  line-height: 1.45;
}

.cases-catalog {
  display: grid;
  gap: 15px;
}

.cases-catalog.hidden {
  display: none;
}

.case-category {
  width: 100%;
  padding: 0;
  border-radius: 23px;
  overflow: hidden;
  text-align: left;
  color: var(--text);
  background: #15191f;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.28);
  transition: transform 220ms var(--ease-spring), border-color 180ms ease;
}

.case-category:active,
.case-category.pressed {
  transform: scale(0.985);
  border-color: rgba(98, 246, 255, 0.2);
}

.case-category-art {
  height: 170px;
  padding: 13px;
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 9px;
  overflow: hidden;
}

.brawl-category .case-category-art {
  display: block;
}

.clash-category .case-category-art {
  display: block;
}

.case-category-cover {
  width: 88%;
  height: 88%;
  position: absolute;
  inset: 6%;
  z-index: 2;
  object-fit: contain;
  object-position: center;
  filter: drop-shadow(0 14px 14px rgba(0, 0, 0, 0.3));
  animation: caseCatalogFloat 3.2s ease-in-out infinite;
}

.brawl-category .case-category-art {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.06), transparent),
    linear-gradient(145deg, #315fa0, #514bb4 55%, #403793);
}

.clash-category .case-category-art {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.06), transparent),
    linear-gradient(145deg, #59449b, #674bb0 55%, #38347f);
}

.case-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.16;
  background-image:
    radial-gradient(circle, rgba(255, 255, 255, 0.5) 0 2px, transparent 2.5px),
    linear-gradient(45deg, transparent 46%, rgba(255, 255, 255, 0.16) 47% 53%, transparent 54%);
  background-size: 38px 38px, 52px 52px;
  transform: rotate(-6deg) scale(1.1);
}

.case-art-slot {
  min-width: 0;
  border-radius: 17px;
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.025));
  border: 1px solid rgba(255, 255, 255, 0.09);
  box-shadow:
    inset 1px 1px 3px rgba(255, 255, 255, 0.09),
    0 9px 18px rgba(0, 0, 0, 0.18);
}

.case-art-slot::after {
  content: "";
  width: 70%;
  height: 20%;
  border-radius: 50%;
  position: absolute;
  left: 50%;
  bottom: 8px;
  transform: translateX(-50%);
  background: rgba(98, 246, 255, 0.2);
  filter: blur(11px);
}

.case-art-slot img {
  width: 86%;
  height: 86%;
  position: relative;
  z-index: 2;
  object-fit: contain;
  filter: drop-shadow(0 10px 10px rgba(0, 0, 0, 0.3));
  animation: caseCatalogFloat 3.2s ease-in-out infinite;
}

.case-art-slot:nth-child(2) img {
  animation-delay: 180ms;
}

.case-art-slot:nth-child(3) img {
  animation-delay: 360ms;
}

.case-art-slot.featured {
  transform: translateY(-3px);
  border-color: rgba(98, 246, 255, 0.18);
  box-shadow:
    inset 1px 1px 3px rgba(255, 255, 255, 0.1),
    0 10px 22px rgba(0, 0, 0, 0.22),
    0 0 20px rgba(98, 246, 255, 0.08);
}

.case-category-info {
  min-height: 78px;
  padding: 14px 15px 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.04), transparent),
    rgba(10, 17, 25, 0.94);
}

.case-category-info > div {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.case-category-info > div > span {
  color: rgba(238, 246, 255, 0.38);
  font-size: 9px;
  font-weight: 700;
}

.case-category-info h2 {
  margin: 0;
  font: 900 20px/1 Inter, sans-serif;
  letter-spacing: -0.035em;
}

.case-category-open {
  height: 42px;
  padding: 0 13px 0 16px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
  color: #06141c !important;
  background: linear-gradient(135deg, var(--cyan), var(--cyan-2));
  box-shadow: 0 8px 19px rgba(48, 190, 255, 0.19);
  font-size: 11px !important;
  font-weight: 900 !important;
}

.case-category-open svg {
  width: 17px;
  height: 17px;
  fill: currentColor;
}

@keyframes caseCatalogFloat {
  0%,
  100% {
    transform: translateY(3px) rotate(-1deg);
  }
  50% {
    transform: translateY(-8px) rotate(1deg);
  }
}

@media (max-width: 360px) {
  .case-category-art {
    height: 155px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .case-category-art img {
    animation: none;
  }
}

.case-collection {
  display: none;
}

.case-collection.visible {
  display: block;
  animation: gameTileIn 420ms var(--ease-spring);
}

.case-collection-head {
  min-height: 58px;
  margin-bottom: 13px;
  display: flex;
  align-items: center;
  gap: 11px;
}

.case-collection-back {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  color: rgba(238, 246, 255, 0.7);
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.case-collection-back svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.case-collection-head > div {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.case-collection-head span {
  color: rgba(238, 246, 255, 0.4);
  font-size: 9px;
  font-weight: 700;
}

.case-collection-head h1 {
  margin: 0;
  font: 900 21px/1 Inter, sans-serif;
  letter-spacing: -0.04em;
}

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

.case-item {
  min-width: 0;
  padding: 0;
  border-radius: 20px;
  overflow: hidden;
  color: var(--text);
  text-align: left;
  background: rgba(14, 21, 30, 0.86);
  border: 1px solid rgba(255, 255, 255, 0.07);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.22);
  transition: transform 180ms var(--ease-spring), border-color 180ms ease;
}

.case-item:active {
  transform: scale(0.975);
  border-color: rgba(98, 246, 255, 0.2);
}

.case-item-art {
  height: 150px;
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 48%, rgba(98, 246, 255, 0.22), transparent 5rem),
    linear-gradient(145deg, #315fa0, #514bb4 55%, #403793);
}

.case-item-art::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.16;
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.6) 0 2px, transparent 2.5px);
  background-size: 28px 28px;
}

.case-item-art img {
  width: 82%;
  height: 82%;
  position: relative;
  z-index: 2;
  object-fit: contain;
  filter: drop-shadow(0 13px 12px rgba(0, 0, 0, 0.3));
}

.case-item-info {
  min-height: 74px;
  padding: 11px 10px 11px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.case-item-info > div {
  min-width: 0;
}

.case-item-info h2 {
  margin: 0 0 4px;
  white-space: nowrap;
  font-size: 13px;
}

.case-item-info span {
  display: block;
  overflow: hidden;
  color: rgba(238, 246, 255, 0.37);
  font-size: 8px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.case-item-info strong {
  height: 31px;
  padding: 0 8px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 0 0 auto;
  color: #06141c;
  background: linear-gradient(135deg, var(--cyan), var(--cyan-2));
  font-size: 10px;
}

.case-item-info strong img {
  width: 15px;
  height: 15px;
}

.case-opening-overlay {
  position: fixed;
  top: 50%;
  left: 50%;
  width: min(100vw, 56.25vh);
  height: min(100vh, 177.7778vw);
  aspect-ratio: 9 / 16;
  z-index: 100;
  display: grid;
  place-items: center;
  overflow: hidden;
  transform: translate(-50%, -50%);
  background:
    radial-gradient(circle at 50% 46%, #16cfff 0, #078ee6 24%, #064ba8 49%, transparent 70%),
    linear-gradient(180deg, #06146a, #07145e 58%, #040b45);
  box-shadow: 0 0 0 100vmax #02070d;
  opacity: 0;
  visibility: hidden;
  transition: opacity 240ms ease, visibility 240ms ease;
}

.case-opening-overlay::before {
  content: "";
  position: absolute;
  inset: -45px;
  opacity: 0.17;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='112' height='96' viewBox='0 0 112 96'%3E%3Cpath fill='%23000a52' d='M56 9c-24 0-40 14-40 35 0 14 7 23 17 29v10c0 3 3 5 6 3l8-5c3 1 6 1 9 1s6 0 9-1l8 5c3 2 6 0 6-3V73c10-6 17-15 17-29C96 23 80 9 56 9Zm-17 45c-6 0-11-5-11-11s5-11 11-11 11 5 11 11-5 11-11 11Zm34 0c-6 0-11-5-11-11s5-11 11-11 11 5 11 11-5 11-11 11ZM50 63l6-7 6 7-6 8-6-8Z'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 142px 122px;
  background-position: 8px 2px;
  transform: rotate(-7deg) scale(1.1);
}

.case-opening-overlay.visible {
  opacity: 1;
  visibility: visible;
}

.case-opening-close {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  position: absolute;
  top: max(15px, env(safe-area-inset-top));
  right: 15px;
  z-index: 15;
  display: grid;
  place-items: center;
  color: rgba(238, 246, 255, 0.62);
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.case-opening-close svg {
  width: 21px;
  height: 21px;
  fill: currentColor;
}

.case-opening-rays {
  width: 720px;
  height: 720px;
  border-radius: 50%;
  position: absolute;
  top: 50%;
  left: 50%;
  opacity: 0.13;
  transform: translate(-50%, -50%);
  background: repeating-conic-gradient(from 0deg, rgba(98, 246, 255, 0.28) 0 6deg, transparent 6deg 15deg);
  mask-image: radial-gradient(circle, black, transparent 66%);
  animation: caseOpeningRays 14s linear infinite;
}

.case-opening-scene.purchased ~ .case-opening-rays,
.case-opening-overlay:has(.case-opening-scene.purchased) .case-opening-rays {
  display: none;
}

.case-opening-flash {
  position: absolute;
  inset: 0;
  z-index: 12;
  opacity: 0;
  pointer-events: none;
  background: #eaffff;
}

.case-opening-flash.visible {
  animation: caseOpeningFlash 540ms ease-out forwards;
}

.case-opening-scene {
  width: min(100%, 390px);
  max-height: 100%;
  padding: 54px 16px 18px;
  position: relative;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow-y: auto;
  scrollbar-width: none;
  transition: opacity 220ms ease, transform 300ms ease;
}

.case-opening-scene::-webkit-scrollbar {
  display: none;
}

.case-opening-scene.purchased {
  min-height: 100%;
  padding: 20px;
  justify-content: center;
  overflow: hidden;
}

.case-opening-scene.purchased .case-opening-label {
  margin: 0 0 42px;
  color: #fff;
  font-size: 27px;
  letter-spacing: 0.02em;
  text-shadow:
    -2px -2px 0 #07132e,
    2px -2px 0 #07132e,
    -2px 2px 0 #07132e,
    2px 2px 0 #07132e,
    0 5px 0 rgba(0, 0, 0, 0.22);
}

.case-opening-scene.purchased .mini-box-model {
  width: 180px;
  height: 175px;
  cursor: pointer;
}

.case-opening-scene.purchased .mini-box-model img {
  width: 150px;
  height: 150px;
}

.case-opening-scene.purchased .mini-box-glow {
  width: 165px;
  height: 95px;
  bottom: 30px;
  background: rgba(0, 218, 255, 0.52);
  filter: blur(38px);
}

.case-opening-scene.purchased .mini-box-shadow {
  width: 105px;
}

.case-opening-scene.purchased .case-opening-hint {
  margin-top: 24px;
  color: rgba(255, 255, 255, 0.55);
  font-size: 10px;
}

.case-opening-scene.hidden {
  opacity: 0;
  transform: scale(1.2);
  pointer-events: none;
}

.case-opening-label {
  margin-bottom: 23px;
  color: rgba(238, 246, 255, 0.74);
  font: 900 18px/1 Inter, sans-serif;
  letter-spacing: 0.12em;
}

.mini-box-model {
  width: 220px;
  height: 210px;
  position: relative;
  display: grid;
  place-items: center;
  animation: miniBoxIdle 2.2s ease-in-out infinite;
}

.mini-box-model img {
  width: 190px;
  height: 190px;
  position: absolute;
  z-index: 4;
  object-fit: contain;
  filter: drop-shadow(0 22px 18px rgba(0, 0, 0, 0.38));
}

.mini-box-lid,
.mini-box-body {
  opacity: 0;
}

.mini-box-lid {
  clip-path: inset(0 0 46% 0);
}

.mini-box-body {
  clip-path: inset(42% 0 0 0);
}

.mini-box-glow {
  width: 170px;
  height: 85px;
  border-radius: 50%;
  position: absolute;
  left: 50%;
  bottom: 25px;
  transform: translateX(-50%);
  background: rgba(98, 246, 255, 0.25);
  filter: blur(26px);
}

.mini-box-shadow {
  width: 130px;
  height: 18px;
  border-radius: 50%;
  position: absolute;
  left: 50%;
  bottom: 12px;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.42);
  filter: blur(6px);
}

.mini-box-model.opening {
  animation: miniBoxCharge 1.2s cubic-bezier(0.22, 0.72, 0.18, 1) forwards;
}

.mini-box-model.opening .mini-box-full {
  animation: miniBoxDisappear 1ms linear forwards 1.08s;
}

.mini-box-model.opening .mini-box-lid,
.mini-box-model.opening .mini-box-body {
  opacity: 1;
}

.mini-box-model.opening .mini-box-lid {
  animation: miniBoxLidFly 620ms cubic-bezier(0.16, 0.82, 0.22, 1) forwards 1.06s;
}

.mini-box-model.opening .mini-box-body {
  animation: miniBoxBodyBurst 620ms cubic-bezier(0.16, 0.82, 0.22, 1) forwards 1.06s;
}

.case-opening-button {
  min-width: 190px;
  height: 55px;
  margin-top: 15px;
  padding: 0 13px 0 20px;
  border-radius: 17px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  color: #06141c;
  background: linear-gradient(135deg, var(--cyan), var(--cyan-2));
  box-shadow: 0 13px 29px rgba(48, 190, 255, 0.24);
  font-size: 14px;
  font-weight: 900;
}

.case-opening-button[hidden] {
  display: none !important;
}

.case-opening-button small {
  height: 33px;
  padding: 0 9px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  gap: 5px;
  background: rgba(255, 255, 255, 0.32);
  font-size: 11px;
}

.case-opening-button small img {
  width: 17px;
  height: 17px;
}

.case-opening-button.error {
  color: #fff;
  background: linear-gradient(135deg, #ff6681, #d93d61);
}

.case-opening-hint {
  margin: 10px 0 0;
  color: rgba(238, 246, 255, 0.38);
  font-size: 9px;
}

.case-opening-prizes {
  width: 100%;
  margin-top: 18px;
  padding: 13px;
  border-radius: 21px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.065), rgba(255, 255, 255, 0.018)),
    rgba(5, 16, 46, 0.68);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow:
    0 16px 34px rgba(0, 0, 0, 0.22),
    inset 1px 1px 3px rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(8px);
}

.case-opening-prizes[hidden] {
  display: none;
}

.case-opening-prizes-head {
  min-height: 39px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.case-opening-prizes-head > div {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.case-opening-prizes-head span {
  color: rgba(238, 246, 255, 0.42);
  font-size: 8px;
}

.case-opening-prizes-head h3 {
  margin: 0;
  font-size: 13px;
}

.case-opening-prizes-head > b {
  height: 24px;
  padding: 0 8px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  color: #071344;
  background: rgba(98, 246, 255, 0.82);
  font-size: 8px;
}

.case-opening-prize-grid {
  margin-top: 9px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}

.case-opening-prize-grid > div {
  min-height: 67px;
  border-radius: 13px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  background:
    radial-gradient(circle at 50% 13%, rgba(98, 246, 255, 0.16), transparent 68%),
    rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.case-opening-prize-grid > div.rare {
  grid-column: span 2;
  background:
    radial-gradient(circle at 50% 13%, rgba(255, 216, 96, 0.2), transparent 68%),
    rgba(255, 255, 255, 0.045);
  border-color: rgba(255, 216, 96, 0.16);
}

.case-opening-prize-grid img {
  width: 22px;
  height: 22px;
}

.case-opening-prize-grid b {
  color: #f5fcff;
  font-size: 12px;
}

.case-opening-prize-grid small {
  color: rgba(238, 246, 255, 0.38);
  font-size: 7px;
}

.case-opening-scene.opening .case-opening-button,
.case-opening-scene.opening .case-opening-hint,
.case-opening-scene.opening .case-opening-label {
  opacity: 0;
  pointer-events: none;
}

.case-reward {
  position: absolute;
  z-index: 13;
  display: flex;
  flex-direction: column;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transform: scale(0.72);
}

.case-reward.visible {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
  animation: caseRewardIn 620ms var(--ease-spring);
}

.case-reward > span {
  color: rgba(238, 246, 255, 0.66);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.18em;
}

.case-reward-icon {
  width: 125px;
  height: 125px;
  margin: 20px 0 12px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle, rgba(255, 243, 150, 0.34), rgba(98, 246, 255, 0.12) 55%, transparent 70%);
  box-shadow: 0 0 50px rgba(98, 246, 255, 0.22);
}

.case-reward-icon img {
  width: 82px;
  height: 82px;
  filter: drop-shadow(0 0 18px rgba(255, 219, 104, 0.55));
}

.case-reward > strong {
  color: var(--cyan);
  font: 900 42px/1 Inter, sans-serif;
}

.case-reward p {
  margin: 8px 0 22px;
  color: rgba(238, 246, 255, 0.42);
  font-size: 10px;
}

.case-reward button {
  min-width: 180px;
  height: 50px;
  border-radius: 16px;
  color: #06141c;
  background: linear-gradient(135deg, var(--cyan), var(--cyan-2));
  font-weight: 900;
}

@keyframes miniBoxIdle {
  0%,
  100% {
    transform: translateY(3px) rotate(-1deg);
  }
  50% {
    transform: translateY(-8px) rotate(1deg);
  }
}

@keyframes miniBoxCharge {
  0% { transform: translateY(0) scale(1); }
  18% { transform: translateY(5px) scale(1.05, 0.94) rotate(-2deg); }
  34% { transform: translateY(-8px) scale(0.98, 1.04) rotate(3deg); }
  48% { transform: translateY(4px) scale(1.06, 0.94) rotate(-4deg); }
  62% { transform: translateY(-10px) scale(0.97, 1.05) rotate(4deg); }
  78% { transform: translateY(3px) scale(1.08, 0.92) rotate(-3deg); }
  100% { transform: translateY(-16px) scale(1.12); filter: brightness(1.8); }
}

@keyframes miniBoxDisappear {
  to { opacity: 0; }
}

@keyframes miniBoxLidFly {
  0% { transform: translateY(0) rotate(0) scale(1.12); }
  100% { transform: translate(-24px, -120px) rotate(-26deg) scale(1.24); opacity: 0; }
}

@keyframes miniBoxBodyBurst {
  0% { transform: translateY(0) scale(1.12); }
  100% { transform: translateY(32px) scale(1.32); opacity: 0; }
}

@keyframes caseOpeningFlash {
  0% { opacity: 0; }
  18% { opacity: 1; }
  100% { opacity: 0; }
}

@keyframes caseOpeningRays {
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes caseRewardIn {
  0% { opacity: 0; transform: scale(0.5) rotate(-5deg); }
  65% { opacity: 1; transform: scale(1.08) rotate(1deg); }
  100% { opacity: 1; transform: scale(1) rotate(0); }
}

@media (prefers-reduced-motion: reduce) {
  .case-opening-rays,
  .mini-box-model,
  .mini-box-model.opening,
  .mini-box-model.opening .mini-box-lid,
  .mini-box-model.opening .mini-box-body,
  .case-reward.visible {
    animation-duration: 1ms;
  }
}



.app-icon {
  display: block;
  flex: 0 0 auto;
  fill: currentColor;
  color: currentColor;
}

.app {
  width: min(100%, 390px);
  min-height: 100vh;
  margin: 0 auto;
  padding: max(14px, env(safe-area-inset-top)) 22px 112px;
  position: relative;
  border-inline: 1px solid rgba(22, 52, 74, 0.48);
  box-shadow: inset 0 0 0 1px rgba(9, 29, 43, 0.7);
}

.screen {
  display: none;
}

.screen.active {
  display: block;
}

.balance-pill {
  background: rgba(30, 34, 42, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.04);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.app-logo {
  display: block;
  width: auto;
  height: auto;
  object-fit: contain;
  user-select: none;
  pointer-events: none;
}

.app-logo-header {
  width: min(54vw, 188px);
  filter: drop-shadow(0 8px 14px rgba(0, 129, 255, 0.32));
}

.brand-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 4px 0 18px;
}

.brand-row.centered-logo {
  justify-content: center;
}

.games-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 20px;
  perspective: 700px;
}

.game-tile {
  min-height: 132px;
  border-radius: 24px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  text-align: left;
  background:
    radial-gradient(circle at 78% 12%, rgba(98, 246, 255, 0.16), transparent 5rem),
    rgba(14, 20, 31, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.09);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  position: relative;
  transform: translateY(10px) scale(0.98);
  animation: gameTileIn 560ms var(--ease-spring) forwards;
  transition:
    transform 260ms var(--ease-spring),
    border-color 220ms ease,
    box-shadow 260ms ease,
    background 260ms ease;
  will-change: transform;
}

.game-tile.crash {
  background:
    linear-gradient(180deg, rgba(5, 12, 20, 0.08), rgba(3, 7, 12, 0.38)),
    radial-gradient(circle at 78% 12%, rgba(98, 246, 255, 0.22), transparent 5rem),
    radial-gradient(circle at 100% 0%, rgba(85, 185, 255, 0.18), transparent 7rem),
    rgba(14, 20, 31, 0.72);
}

.game-tile:nth-child(2) {
  animation-delay: 90ms;
}

.game-tile:nth-child(3) {
  animation-delay: 150ms;
}

.game-tile:nth-child(4) {
  animation-delay: 210ms;
}

.game-tile:nth-child(5) {
  animation-delay: 270ms;
}

.game-tile:nth-child(6) {
  animation-delay: 330ms;
}

.game-tile:nth-child(7) {
  animation-delay: 390ms;
}

.game-tile.free-roulette {
  grid-column: 1 / -1;
  min-height: 126px;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 16px;
  border-color: rgba(98, 246, 255, 0.28);
  background:
    linear-gradient(135deg, rgba(98, 246, 255, 0.13), rgba(255, 80, 112, 0.08) 42%, rgba(14, 20, 31, 0.72)),
    radial-gradient(circle at 86% 22%, rgba(255, 78, 124, 0.26), transparent 5.4rem),
    radial-gradient(circle at 64% 18%, rgba(98, 246, 255, 0.26), transparent 6.4rem),
    rgba(14, 20, 31, 0.72);
  box-shadow:
    0 18px 44px rgba(0, 0, 0, 0.28),
    0 0 34px rgba(98, 246, 255, 0.12);
  animation: gameTileIn 560ms var(--ease-spring) forwards, freePulse 3.8s ease-in-out infinite 900ms;
}

.game-tile.free-roulette .game-label {
  gap: 7px;
}

.game-tile.free-roulette .game-label b {
  font-size: 21px;
  text-shadow: 0 0 20px rgba(98, 246, 255, 0.24);
}

.roulette-wheel-wrap {
  width: 78px;
  height: 78px;
  flex: 0 0 auto;
  position: relative;
  display: grid;
  place-items: center;
  z-index: 2;
}

.roulette-wheel {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  position: relative;
  background:
    repeating-conic-gradient(
      from -10deg,
      #f52e55 0 20deg,
      #eef8ff 20deg 22deg,
      #173247 22deg 42deg,
      #eef8ff 42deg 44deg
    );
  border: 5px solid #dff7ff;
  box-shadow:
    inset 0 0 0 4px rgba(5, 16, 25, 0.66),
    inset 0 0 0 8px rgba(255, 255, 255, 0.15),
    0 10px 24px rgba(0, 0, 0, 0.28),
    0 0 24px rgba(98, 246, 255, 0.18);
  animation: rouletteWheelSpin 6s cubic-bezier(0.45, 0, 0.25, 1) infinite;
}

.roulette-wheel::before {
  content: "";
  position: absolute;
  inset: 14px;
  border-radius: 50%;
  background: rgba(5, 17, 27, 0.92);
  border: 2px solid rgba(255, 255, 255, 0.7);
  box-shadow: inset 0 0 12px rgba(98, 246, 255, 0.18);
}

.roulette-hub {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  position: relative;
  z-index: 1;
  background: linear-gradient(145deg, #ffffff, #62f6ff);
  border: 2px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 0 12px rgba(98, 246, 255, 0.48);
}

.roulette-pointer {
  position: absolute;
  top: -1px;
  left: 50%;
  width: 18px;
  height: 18px;
  z-index: 4;
  transform: translateX(-50%);
  background: linear-gradient(180deg, #ffffff, #62f6ff);
  clip-path: polygon(50% 100%, 0 0, 100% 0);
  filter: drop-shadow(0 3px 4px rgba(0, 0, 0, 0.35));
}

.roulette-aura {
  position: absolute;
  right: -8px;
  top: -30px;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(98, 246, 255, 0.2), transparent 58%),
    conic-gradient(from 0deg, rgba(98, 246, 255, 0), rgba(255, 80, 112, 0.22), rgba(98, 246, 255, 0.2), rgba(98, 246, 255, 0));
  filter: blur(1px);
  opacity: 0.72;
  animation: rouletteAura 6s linear infinite;
  pointer-events: none;
}

.game-tile::before {
  content: "";
  position: absolute;
  inset: -40%;
  opacity: 0.45;
  background:
    linear-gradient(115deg, transparent 34%, rgba(255, 255, 255, 0.18) 48%, transparent 62%),
    radial-gradient(circle at 50% 50%, rgba(98, 246, 255, 0.16), transparent 42%);
  transform: translateX(-34%) rotate(8deg);
  animation: gameSheen 5.8s ease-in-out infinite;
  pointer-events: none;
}

.game-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow:
    inset 1px 1px 5px rgba(255, 255, 255, 0.12),
    inset -1px -1px 5px rgba(255, 255, 255, 0.05);
  pointer-events: none;
}

.game-tile:hover {
  border-color: rgba(98, 246, 255, 0.2);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.28), 0 0 30px rgba(98, 246, 255, 0.08);
}

.game-tile:active {
  filter: brightness(1.06);
}

.game-icon {
  width: 46px;
  height: 46px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  color: var(--cyan);
  background: rgba(98, 246, 255, 0.1);
  box-shadow: 0 10px 24px rgba(98, 246, 255, 0.08);
  position: relative;
  z-index: 1;
}

.game-icon .app-icon {
  width: 27px;
  height: 27px;
}

.game-label {
  display: grid;
  gap: 5px;
  position: relative;
  z-index: 2;
  align-self: flex-start;
}

.game-label b {
  color: #eef6ff;
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
  text-shadow: 0 0 16px rgba(98, 246, 255, 0.12);
}

.game-label small {
  width: fit-content;
  padding: 4px 8px;
  border-radius: 999px;
  color: var(--cyan);
  background: rgba(98, 246, 255, 0.1);
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  transition: color 160ms ease, background 160ms ease, transform 160ms var(--ease-spring);
}

.game-label small.crashed {
  color: #ff6f91;
  background: rgba(255, 80, 112, 0.14);
  transform: scale(1.08);
}

.game-label small.boosted {
  color: #ffffff;
  background: rgba(98, 246, 255, 0.22);
  box-shadow: 0 0 16px rgba(98, 246, 255, 0.22);
  transform: scale(1.08);
}

.game-tile.mines {
  background:
    radial-gradient(circle at 78% 12%, rgba(85, 185, 255, 0.18), transparent 5rem),
    rgba(14, 20, 31, 0.72);
}

.game-tile.ball {
  background:
    radial-gradient(circle at 78% 12%, rgba(255, 255, 255, 0.13), transparent 5rem),
    radial-gradient(circle at 92% 6%, rgba(98, 246, 255, 0.13), transparent 6rem),
    rgba(14, 20, 31, 0.72);
}

.balloon-scene {
  position: absolute;
  right: 13px;
  bottom: 12px;
  width: 72px;
  height: 82px;
  display: grid;
  place-items: center;
  pointer-events: none;
  z-index: 1;
}

.balloon {
  width: 40px;
  height: 48px;
  border-radius: 50% 50% 46% 46%;
  background:
    radial-gradient(circle at 34% 25%, rgba(255, 255, 255, 0.85) 0 10%, transparent 11%),
    linear-gradient(145deg, #f7fdff, #62f6ff 44%, #55b9ff);
  box-shadow:
    inset -6px -8px 12px rgba(0, 70, 120, 0.18),
    0 0 22px rgba(98, 246, 255, 0.22);
  transform: scale(0.62);
  transition: transform 120ms linear, opacity 120ms ease;
  position: relative;
  z-index: 2;
}

.balloon::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -6px;
  width: 9px;
  height: 8px;
  border-radius: 0 0 8px 8px;
  background: #55b9ff;
  transform: translateX(-50%);
}

.balloon-string {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 1px;
  height: 25px;
  background: linear-gradient(180deg, rgba(238, 246, 255, 0.55), rgba(238, 246, 255, 0));
  transform: translateX(-50%);
  z-index: 1;
}

.balloon-fragments {
  position: absolute;
  width: 54px;
  height: 54px;
  z-index: 5;
  pointer-events: none;
}

.balloon-fragments i {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 13px;
  height: 10px;
  border-radius: 70% 30% 65% 35%;
  opacity: 0;
  background:
    radial-gradient(circle at 30% 24%, rgba(255, 255, 255, 0.78) 0 24%, transparent 25%),
    linear-gradient(145deg, #f7fdff, #62f6ff 52%, #55b9ff);
  box-shadow: 0 0 12px rgba(98, 246, 255, 0.22);
}

.balloon-fragments i:nth-child(2n) {
  background:
    radial-gradient(circle at 30% 24%, rgba(255, 255, 255, 0.74) 0 24%, transparent 25%),
    linear-gradient(145deg, #f9ffff, #8ffbff 42%, #ff6f91);
}

.balloon-fragments i:nth-child(1) { --tx: -28px; --ty: -24px; --rot: -70deg; }
.balloon-fragments i:nth-child(2) { --tx: 25px; --ty: -26px; --rot: 52deg; }
.balloon-fragments i:nth-child(3) { --tx: -34px; --ty: 2px; --rot: -130deg; }
.balloon-fragments i:nth-child(4) { --tx: 34px; --ty: 4px; --rot: 120deg; }
.balloon-fragments i:nth-child(5) { --tx: -16px; --ty: 28px; --rot: -20deg; }
.balloon-fragments i:nth-child(6) { --tx: 18px; --ty: 30px; --rot: 160deg; }

.balloon-scene.popped .balloon-fragments i {
  animation: balloonFragment 520ms ease-out forwards;
}

.balloon-scene.popped .balloon-fragments i:nth-child(2) { animation-delay: 20ms; }
.balloon-scene.popped .balloon-fragments i:nth-child(3) { animation-delay: 35ms; }
.balloon-scene.popped .balloon-fragments i:nth-child(4) { animation-delay: 15ms; }
.balloon-scene.popped .balloon-fragments i:nth-child(5) { animation-delay: 45ms; }
.balloon-scene.popped .balloon-fragments i:nth-child(6) { animation-delay: 30ms; }
}

.balloon-scene.popped .balloon {
  opacity: 0;
  transform: scale(1.45);
  transition: opacity 40ms linear, transform 80ms ease-out;
}

.balloon-blast {
  position: absolute;
  width: 72px;
  height: 72px;
  opacity: 0;
  z-index: 6;
  transform: scale(0.2);
  background:
    conic-gradient(
      from 8deg,
      transparent 0 5%,
      #ffffff 5% 9%,
      transparent 9% 16%,
      #62f6ff 16% 22%,
      transparent 22% 31%,
      #ff6f91 31% 37%,
      transparent 37% 48%,
      #ffffff 48% 53%,
      transparent 53% 63%,
      #62f6ff 63% 69%,
      transparent 69% 82%,
      #ffb84d 82% 88%,
      transparent 88% 100%
    );
  clip-path: polygon(50% 0, 58% 34%, 92% 14%, 67% 44%, 100% 52%, 65% 58%, 86% 91%, 56% 68%, 49% 100%, 42% 66%, 10% 88%, 34% 58%, 0 49%, 35% 43%, 14% 10%, 43% 33%);
  filter: drop-shadow(0 0 16px rgba(98, 246, 255, 0.75));
}

.balloon-scene.popped .balloon-blast {
  animation: balloonBlast 420ms ease-out forwards;
}

.balloon-fragments {
  width: 76px;
  height: 76px;
}

.balloon-fragments i {
  width: 19px;
  height: 15px;
}

.balloon-fragments i:nth-child(1) { --tx: -52px; --ty: -42px; --rot: -120deg; }
.balloon-fragments i:nth-child(2) { --tx: 48px; --ty: -46px; --rot: 92deg; }
.balloon-fragments i:nth-child(3) { --tx: -60px; --ty: -2px; --rot: -170deg; }
.balloon-fragments i:nth-child(4) { --tx: 62px; --ty: 4px; --rot: 165deg; }
.balloon-fragments i:nth-child(5) { --tx: -40px; --ty: 48px; --rot: -42deg; }
.balloon-fragments i:nth-child(6) { --tx: 42px; --ty: 52px; --rot: 210deg; }
.balloon-fragments i:nth-child(7) { --tx: 4px; --ty: -62px; --rot: 45deg; }
.balloon-fragments i:nth-child(8) { --tx: 0px; --ty: 62px; --rot: -210deg; }

.balloon-scene.popped .balloon-fragments i {
  animation: balloonFragment 680ms cubic-bezier(0.08, 0.8, 0.2, 1) forwards;
}

.game-tile.blackjack {
  background:
    radial-gradient(circle at 78% 12%, rgba(255, 80, 112, 0.13), transparent 5rem),
    radial-gradient(circle at 92% 6%, rgba(98, 246, 255, 0.1), transparent 6rem),
    rgba(14, 20, 31, 0.72);
}

.game-tile.chicken-cross {
  background:
    radial-gradient(circle at 80% 18%, rgba(98, 246, 255, 0.13), transparent 5rem),
    rgba(14, 20, 31, 0.76);
}

.game-tile.cases {
  background:
    radial-gradient(circle at 77% 28%, rgba(98, 246, 255, 0.2), transparent 5rem),
    radial-gradient(circle at 96% 0%, rgba(83, 92, 255, 0.15), transparent 6rem),
    rgba(14, 20, 31, 0.76);
}

.cases-card-scene {
  width: 128px;
  height: 85px;
  position: absolute;
  right: 1px;
  bottom: 4px;
  z-index: 2;
  display: grid;
  place-items: center;
  pointer-events: none;
}

.cases-card-scene img {
  position: relative;
  z-index: 3;
  object-fit: contain;
  filter: drop-shadow(0 12px 13px rgba(0, 0, 0, 0.32));
}

.cases-brawl-box {
  width: 43px;
  height: 43px;
  position: absolute !important;
  right: 9px;
  bottom: 12px;
  animation: casesBoxJump 2.1s cubic-bezier(0.22, 0.72, 0.18, 1) infinite;
}

.cases-clash-box {
  width: 72px;
  height: 72px;
  position: absolute !important;
  left: 0;
  bottom: 6px;
  z-index: 2 !important;
  animation: casesClashJump 2.1s cubic-bezier(0.22, 0.72, 0.18, 1) infinite 240ms;
}

.cases-card-glow {
  width: 70px;
  height: 28px;
  border-radius: 50%;
  position: absolute;
  left: 50%;
  bottom: 6px;
  transform: translateX(-50%);
  background: rgba(98, 246, 255, 0.18);
  filter: blur(11px);
  animation: casesGlowPulse 2.1s ease-in-out infinite;
}

.cases-card-scene i {
  width: 55px;
  height: 8px;
  border-radius: 50%;
  position: absolute;
  left: 50%;
  bottom: 5px;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.34);
  filter: blur(3px);
  animation: casesShadow 2.1s ease-in-out infinite;
}

@keyframes casesBoxJump {
  0%,
  100% {
    transform: translateY(2px) scale(1);
  }
  15% {
    transform: translateY(4px) scale(1.04, 0.96);
  }
  48% {
    transform: translateY(-15px) scale(0.98, 1.03) rotate(-2deg);
  }
  72% {
    transform: translateY(-4px) scale(1.01) rotate(1deg);
  }
}

@keyframes casesClashJump {
  0%,
  100% {
    transform: translateY(2px) scale(0.96) rotate(-3deg);
  }
  17% {
    transform: translateY(4px) scale(1, 0.92) rotate(-4deg);
  }
  50% {
    transform: translateY(-12px) scale(0.95, 1.01) rotate(2deg);
  }
  73% {
    transform: translateY(-3px) scale(0.98) rotate(-1deg);
  }
}

@keyframes casesShadow {
  0%,
  100% {
    opacity: 0.65;
    transform: translateX(-50%) scaleX(1);
  }
  48% {
    opacity: 0.25;
    transform: translateX(-50%) scaleX(0.62);
  }
}

@keyframes casesGlowPulse {
  0%,
  100% {
    opacity: 0.65;
    transform: translateX(-50%) scale(1);
  }
  48% {
    opacity: 0.32;
    transform: translateX(-50%) scale(0.72);
  }
}

.chicken-card-scene {
  width: 94px;
  height: 62px;
  position: absolute;
  right: 9px;
  bottom: 8px;
  overflow: hidden;
  pointer-events: none;
}

.chicken-card-road {
  position: absolute;
  inset: 10px 0 0;
  border-radius: 13px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.07), transparent 16% 84%, rgba(0, 0, 0, 0.18)),
    repeating-linear-gradient(180deg, transparent 0 8px, rgba(238, 246, 255, 0.62) 9px 15px, transparent 16px 23px) 20px 0 / 1px 100% no-repeat,
    repeating-linear-gradient(180deg, transparent 0 8px, rgba(238, 246, 255, 0.62) 9px 15px, transparent 16px 23px) 40px 0 / 1px 100% no-repeat,
    repeating-linear-gradient(180deg, transparent 0 8px, rgba(238, 246, 255, 0.62) 9px 15px, transparent 16px 23px) 60px 0 / 1px 100% no-repeat,
    repeating-linear-gradient(180deg, transparent 0 8px, rgba(238, 246, 255, 0.62) 9px 15px, transparent 16px 23px) 80px 0 / 1px 100% no-repeat,
    linear-gradient(180deg, #344654, #202e39);
  border: 1px solid rgba(255, 255, 255, 0.07);
  box-shadow:
    inset 0 6px 0 rgba(98, 246, 255, 0.05),
    inset 0 -6px 0 rgba(98, 246, 255, 0.04);
}

.chicken-card-road::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  left: 4px;
  right: 4px;
  width: auto;
  border-left: 1px solid rgba(238, 246, 255, 0.2);
  border-right: 1px solid rgba(238, 246, 255, 0.18);
  background: transparent;
}

.chicken-card-traffic {
  position: absolute;
  inset: 10px 0 0;
  z-index: 3;
  overflow: hidden;
  border-radius: 15px;
}

.chicken-card-traffic i {
  width: 14px;
  height: 25px;
  border-radius: 6px 6px 5px 5px;
  position: absolute;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.16), transparent 22% 78%, rgba(0, 0, 0, 0.18)),
    linear-gradient(180deg, color-mix(in srgb, var(--car-color) 88%, white) 0 16%, var(--car-color) 17% 78%, color-mix(in srgb, var(--car-color) 78%, black) 79%);
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow:
    0 5px 8px rgba(0, 0, 0, 0.36),
    inset 1px 0 2px rgba(255, 255, 255, 0.2),
    inset -1px 0 2px rgba(0, 0, 0, 0.18);
}

.chicken-card-traffic i::before {
  content: "";
  position: absolute;
  top: 5px;
  left: 2px;
  right: 2px;
  height: 9px;
  border-radius: 3px 3px 2px 2px;
  background:
    linear-gradient(180deg, rgba(220, 250, 255, 0.92), rgba(86, 151, 184, 0.84));
  border: 1px solid rgba(235, 255, 255, 0.4);
  box-shadow: inset 0 -2px 3px rgba(7, 41, 63, 0.32);
}

.chicken-card-traffic i::after {
  content: "";
  position: absolute;
  left: -2px;
  right: -2px;
  top: 4px;
  bottom: 4px;
  background:
    radial-gradient(ellipse at 0 18%, #070b0f 0 2px, transparent 2.3px),
    radial-gradient(ellipse at 100% 18%, #070b0f 0 2px, transparent 2.3px),
    radial-gradient(ellipse at 0 82%, #070b0f 0 2px, transparent 2.3px),
    radial-gradient(ellipse at 100% 82%, #070b0f 0 2px, transparent 2.3px),
    radial-gradient(circle at 24% 0, #fff1a3 0 1px, transparent 1.4px),
    radial-gradient(circle at 76% 0, #fff1a3 0 1px, transparent 1.4px),
    radial-gradient(circle at 24% 100%, #ff625b 0 1px, transparent 1.4px),
    radial-gradient(circle at 76% 100%, #ff625b 0 1px, transparent 1.4px);
  pointer-events: none;
}

.chicken-card-traffic i.from-top {
  top: -29px;
  left: var(--car-lane);
  animation: chickenCarTop 1s linear forwards;
}

.chicken-card-traffic i.from-bottom {
  bottom: -29px;
  left: var(--car-lane);
  transform: scaleY(-1);
  animation: chickenCarBottom 1s linear forwards;
}

.chicken-card-character {
  --chicken-from: 0px;
  --chicken-mid: 0px;
  --chicken-x: 0px;
  width: 36px;
  height: 36px;
  position: absolute;
  left: 1px;
  bottom: 8px;
  z-index: 4;
  object-fit: contain;
  filter: drop-shadow(0 7px 7px rgba(0, 0, 0, 0.32));
  transform: translateX(var(--chicken-x));
  transition: transform 80ms linear;
}

.chicken-card-character.jumping {
  animation: chickenCardHop 760ms cubic-bezier(0.22, 0.72, 0.18, 1) forwards;
}

.chicken-card-character.resetting {
  transition: none;
}

@keyframes chickenCardHop {
  0% {
    transform: translate(var(--chicken-from), 0) rotate(-3deg);
  }
  48% {
    transform: translate(var(--chicken-mid), -9px) rotate(4deg);
  }
  100% {
    transform: translate(var(--chicken-x), 0) rotate(1deg);
  }
}

@keyframes chickenCarTop {
  to {
    transform: translateY(86px);
  }
}

@keyframes chickenCarBottom {
  to {
    transform: translateY(-86px) scaleY(-1);
  }
}

.blackjack-scene {
  position: absolute;
  right: 12px;
  bottom: 10px;
  width: 88px;
  height: 78px;
  pointer-events: none;
  z-index: 1;
}

.playing-card {
  position: absolute;
  width: 38px;
  height: 54px;
  border-radius: 9px;
  padding: 6px;
  display: grid;
  align-content: space-between;
  color: #08131b;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(218, 238, 250, 0.94));
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow:
    0 12px 22px rgba(0, 0, 0, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  transform-origin: 50% 100%;
}

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

.playing-card i {
  font-style: normal;
  font-size: 16px;
  line-height: 1;
  justify-self: end;
}

.card-a {
  left: 9px;
  top: 12px;
  color: #0a2230;
  transform: rotate(-12deg);
  animation: dealCardA 4.2s ease-in-out infinite;
}

.card-k {
  left: 38px;
  top: 8px;
  color: #d9234e;
  transform: rotate(12deg);
  animation: dealCardK 4.2s ease-in-out infinite;
}

.game-tile.mines .game-icon {
}

.mines-board {
  width: 72px;
  height: 72px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 5px;
  position: relative;
  z-index: 1;
  align-self: flex-end;
}

.mines-board i {
  border-radius: 8px;
  background: rgba(98, 246, 255, 0.08);
  border: 1px solid rgba(98, 246, 255, 0.12);
  box-shadow:
    inset 1px 1px 3px rgba(255, 255, 255, 0.08),
    0 8px 16px rgba(0, 0, 0, 0.12);
  transition:
    transform 160ms var(--ease-spring),
    background 160ms ease,
    border-color 160ms ease,
    box-shadow 180ms ease;
}

.mines-board i.picked {
  background: rgba(98, 246, 255, 0.28);
  border-color: rgba(98, 246, 255, 0.42);
  box-shadow: 0 0 18px rgba(98, 246, 255, 0.22);
}

.mines-board i.boom {
  background:
    radial-gradient(circle, #fff4b0 0 18%, #ff8a3d 19% 42%, rgba(255, 58, 82, 0.95) 43% 100%);
  border-color: rgba(255, 142, 61, 0.8);
  box-shadow: 0 0 24px rgba(255, 79, 89, 0.48);
  animation: mineBoom 460ms ease-out;
}

.rocket-wrap {
  position: absolute;
  left: 34px;
  bottom: 10px;
  width: 70px;
  height: 70px;
  pointer-events: none;
  z-index: 1;
  opacity: 0.98;
  mix-blend-mode: screen;
  animation: rocketLift 4.2s ease-in-out infinite;
}

.rocket-wrap::after {
  content: "";
  position: absolute;
  left: 8px;
  bottom: 6px;
  width: 14px;
  height: 30px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(98, 246, 255, 0.44), rgba(85, 185, 255, 0.1), rgba(98, 246, 255, 0));
  filter: blur(10px);
  transform: rotate(35deg);
  animation: rocketTrail 4.2s ease-in-out infinite;
}

.rocket-gif {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  transform: rotate(10deg);
  filter:
    drop-shadow(0 12px 18px rgba(98, 246, 255, 0.22))
    drop-shadow(0 0 22px rgba(98, 246, 255, 0.18));
}

.game-ripple {
  position: absolute;
  display: block;
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: rgba(98, 246, 255, 0.26);
  transform: translate(-50%, -50%) scale(1);
  animation: gameRipple 520ms ease-out forwards;
  pointer-events: none;
  z-index: 0;
}

.page-head {
  margin: 10px 0 18px;
}

.page-head h1 {
  margin: 0;
  font-size: 26px;
  font-weight: 600;
  letter-spacing: 0;
}

.page-head p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.settings-card {
  min-height: 74px;
  margin-bottom: 10px;
  padding: 14px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: rgba(14, 20, 31, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.settings-card > div {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 12px;
}

.settings-icon {
  width: 38px;
  height: 38px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  color: var(--cyan);
  background: rgba(98, 246, 255, 0.1);
  padding: 8px;
}

.settings-card b {
  display: block;
  font-size: 14px;
  font-weight: 600;
}

.settings-card p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.toggle {
  width: 42px;
  height: 24px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  position: relative;
  transition: background 180ms ease;
}

.toggle::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.72);
  transition: transform 180ms var(--ease-spring), background 180ms ease, box-shadow 180ms ease;
}

.toggle.active {
  background: rgba(98, 246, 255, 0.14);
}

.toggle.active::after {
  transform: translateX(17px);
  background: var(--cyan);
  box-shadow: 0 0 12px rgba(98, 246, 255, 0.36);
}

.settings-select {
  height: 40px;
  min-width: 82px;
  padding: 0 34px 0 14px;
  border: 1px solid rgba(98, 246, 255, 0.2);
  border-radius: 13px;
  outline: 0;
  color: var(--cyan);
  background:
    linear-gradient(45deg, transparent 50%, rgba(238, 246, 255, 0.58) 50%) calc(100% - 17px) 16px / 5px 5px no-repeat,
    linear-gradient(135deg, rgba(238, 246, 255, 0.58) 50%, transparent 50%) calc(100% - 12px) 16px / 5px 5px no-repeat,
    linear-gradient(145deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.025)),
    rgba(20, 31, 42, 0.88);
  box-shadow:
    inset 1px 1px 3px rgba(255, 255, 255, 0.08),
    0 8px 18px rgba(0, 0, 0, 0.16);
  font: 800 13px/1 Manrope, Inter, ui-sans-serif, system-ui, sans-serif;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
}

.settings-select:focus {
  border-color: rgba(98, 246, 255, 0.5);
  box-shadow:
    0 0 0 3px rgba(98, 246, 255, 0.08),
    inset 1px 1px 3px rgba(255, 255, 255, 0.08);
}

.settings-select option {
  color: var(--text);
  background: #111b25;
}

.settings-status {
  color: var(--cyan);
  font-size: 12px;
  font-weight: 600;
}

.profile-hero {
  margin-top: 12px;
  padding: 16px;
  border-radius: 24px;
  display: flex;
  align-items: center;
  gap: 15px;
  background:
    radial-gradient(circle at 16% 0%, rgba(98, 246, 255, 0.18), transparent 9rem),
    rgba(14, 20, 31, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.09);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.22);
}

.profile-avatar {
  width: 78px;
  height: 78px;
  border-radius: 26px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  position: relative;
  overflow: hidden;
  color: #06141c;
  background: linear-gradient(145deg, var(--cyan), #69bdff);
  box-shadow: 0 12px 28px rgba(98, 246, 255, 0.2);
}

.profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: none;
}

.profile-avatar img.show {
  display: block;
}

.profile-avatar span {
  font-size: 28px;
  font-weight: 700;
}

.profile-info {
  min-width: 0;
}

.profile-info p {
  margin: 0 0 5px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
}

.profile-info h1 {
  margin: 0;
  font-size: 24px;
  font-weight: 600;
  line-height: 1.08;
  overflow-wrap: anywhere;
}

.profile-info span {
  display: block;
  margin-top: 6px;
  color: var(--cyan);
  font-size: 14px;
  font-weight: 500;
}

.profile-tabs {
  margin: 14px 0 4px;
  padding: 6px;
  border-radius: 999px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  position: relative;
  isolation: isolate;
  background: rgba(16, 24, 32, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(5px) saturate(150%) contrast(112%);
  -webkit-backdrop-filter: blur(5px) saturate(150%) contrast(112%);
  --tab-index: 0;
}

.profile-tabs::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow:
    inset 1px 1px 5px rgba(255, 255, 255, 0.16),
    inset -1px -1px 5px rgba(255, 255, 255, 0.08),
    inset 0 -2px 0 rgba(255, 255, 255, 0.08);
  pointer-events: none;
  z-index: -1;
}

.profile-tabs::before {
  content: "";
  position: absolute;
  top: 6px;
  left: 6px;
  width: calc((100% - 24px) / 3);
  height: calc(100% - 12px);
  border-radius: 999rem;
  background: rgba(255, 255, 255, 0.08);
  box-shadow:
    inset 1px 1px 4px rgba(255, 255, 255, 0.12),
    inset -1px -1px 4px rgba(255, 255, 255, 0.06);
  transform: translateX(calc(var(--tab-index) * (100% + 6px)));
  transition: transform 420ms var(--ease-spring);
  pointer-events: none;
  z-index: 0;
}

.profile-tabs button {
  min-height: 34px;
  border-radius: 999px;
  color: rgba(238, 246, 255, 0.62);
  background: transparent;
  font-size: 12px;
  font-weight: 600;
  transition: color 180ms ease;
  position: relative;
  z-index: 1;
}

.profile-tabs button.active {
  color: var(--cyan);
}

.profile-panel {
  display: none;
}

.profile-panel.active {
  display: block;
}

.inventory-head {
  margin: 20px 0 12px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
}

.inventory-head h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
}

.inventory-head p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.inventory-head > span {
  min-width: 32px;
  height: 24px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: var(--cyan);
  background: rgba(98, 246, 255, 0.1);
  font-size: 13px;
  font-weight: 600;
}

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

.gift-card {
  position: relative;
  min-height: 132px;
  border-radius: 20px;
  padding: 10px;
  text-align: center;
  background: rgba(14, 20, 31, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.gift-price-badge,
.nft-market-price {
  position: absolute;
  top: 7px;
  right: 7px;
  z-index: 3;
  padding: 4px 7px;
  border-radius: 999px;
  color: #fff;
  background: rgba(17, 24, 35, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(14px);
  font: 800 8px/1 Manrope, sans-serif;
}

.gift-empty {
  grid-column: 1 / -1;
  min-height: 90px;
  display: grid;
  place-content: center;
}

/* Configurable cases */
.cases-section { margin-top: 20px; }
.cases-section-title { margin: 0 2px 10px; display: flex; align-items: end; justify-content: space-between; }
.cases-section-title span { font: 800 17px/1 Inter, sans-serif; }
.cases-section-title b { color: rgba(238,246,255,.38); font-size: 9px; }
.brawl-case-list { display: grid; gap: 12px; }
.brawl-case-card {
  min-height: 145px; padding: 13px; border-radius: 24px; position: relative;
  display: grid; grid-template-columns: 42% 1fr; align-items: center; overflow: hidden;
  color: var(--text); text-align: left; background: linear-gradient(145deg,#315fa0,#514bb4 55%,#342b78);
  border: 1px solid rgba(255,255,255,.1); box-shadow: 0 15px 30px rgba(0,0,0,.25);
}
.brawl-case-card > div { height: 120px; display: grid; place-items: center; }
.brawl-case-card > div img { width: 112px; height: 112px; object-fit: contain; filter: drop-shadow(0 12px 12px rgba(0,0,0,.3)); }
.brawl-case-card h2 { margin: 0 0 6px; font: 900 21px/1 Inter,sans-serif; }
.brawl-case-card section span { color: rgba(255,255,255,.55); font-size: 10px; }
.regular-case-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 9px; }
.regular-case-card {
  min-width: 0; min-height: 142px; padding: 9px; border-radius: 20px; position: relative;
  color: var(--text); background: rgba(14,21,30,.86); border: 1px solid rgba(255,255,255,.08);
}
.regular-case-card > div { height: 92px; display: grid; place-items: center; border-radius: 15px; background: radial-gradient(circle,rgba(98,246,255,.18),transparent 65%); }
.regular-case-card > div img { width: 76px; height: 76px; object-fit: contain; }
.regular-case-card h3 { margin: 7px 0 0; overflow: hidden; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.case-ios-price { position: absolute; top: 8px; right: 8px; z-index: 4; height: 23px; padding: 0 7px; border-radius: 999px; display: flex; align-items: center; gap: 3px; color: #fff; background: rgba(10,15,23,.7); border: 1px solid rgba(255,255,255,.13); backdrop-filter: blur(15px); font: 800 9px/1 Manrope,sans-serif; }
.case-ios-price img { width: 12px !important; height: 12px !important; }
.generic-case-overlay { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 58px 18px 20px; opacity: 0; visibility: hidden; background: rgba(2,7,13,.94); backdrop-filter: blur(18px); transition: .22s; }
.generic-case-overlay.visible { opacity: 1; visibility: visible; }
.generic-case-card { width: min(100%,390px); max-height: 100%; padding: 24px 16px 18px; border-radius: 28px; position: relative; overflow-y: auto; text-align: center; background: linear-gradient(160deg,#10202e,#080e17); border: 1px solid rgba(255,255,255,.1); }
.generic-case-card > img { width: 170px; height: 170px; object-fit: contain; transition: transform 1.5s var(--ease-spring); }
.generic-case-card.opening > img { transform: rotate(720deg) scale(1.15); }
.generic-case-card h2 { margin: 2px 0 5px; }.generic-case-card p { margin: 0; color: var(--muted); font-size: 10px; }
.generic-case-card > button,.generic-case-reward button { width: 190px; height: 50px; margin-top: 16px; border-radius: 16px; color: #06141c; background: linear-gradient(135deg,var(--cyan),var(--cyan-2)); font-weight: 900; }
.generic-prize-list { margin-top: 16px; display: grid; grid-template-columns: repeat(3,1fr); gap: 7px; }
.generic-prize-list > div { min-height: 82px; padding: 7px; border-radius: 14px; position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; background: rgba(255,255,255,.045); border: 1px solid rgba(255,255,255,.07); }
.generic-prize-list img { width: 34px; height: 34px; object-fit: contain; }.generic-prize-list b { max-width: 100%; overflow: hidden; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }.generic-prize-list small { color: var(--muted); font-size: 7px; }
.generic-case-reward { display: none; flex-direction: column; align-items: center; text-align: center; }.generic-case-reward.visible { display: flex; animation: caseRewardIn .6s var(--ease-spring); }
.generic-reward-art { width: 150px; height: 150px; margin: 18px 0; display: grid; place-items: center; border-radius: 50%; background: radial-gradient(circle,rgba(98,246,255,.25),transparent 70%); }.generic-reward-art img { width: 110px; height: 110px; object-fit: contain; }
.generic-case-reward h2 { margin: 0; }.generic-case-reward p { color: var(--muted); font-size: 11px; }

.brawl-opening-card {
  width: min(100%, 390px);
  min-height: 520px;
  padding: 54px 18px 22px;
  border-radius: 28px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  text-align: center;
  background:
    radial-gradient(circle at 50% 45%, rgba(22, 207, 255, .48), transparent 34%),
    linear-gradient(180deg, #06146a, #07145e 58%, #040b45);
  border: 1px solid rgba(255,255,255,.12);
}
.brawl-opening-card[hidden], .case-roulette-card[hidden] { display: none !important; }
.brawl-opening-card h2 { margin: 0 0 28px; font: 900 25px/1 Inter,sans-serif; letter-spacing: .05em; }
.brawl-opening-model {
  width: 220px; height: 220px; position: relative; display: grid; place-items: center;
  cursor: pointer; animation: miniBoxIdle 2.2s ease-in-out infinite;
}
.brawl-opening-model img { width: 190px; height: 190px; position: relative; z-index: 2; object-fit: contain; filter: drop-shadow(0 22px 18px rgba(0,0,0,.38)); }
.brawl-opening-model span { width: 150px; height: 35px; border-radius: 50%; position: absolute; bottom: 13px; background: rgba(0,0,0,.42); filter: blur(7px); }
.brawl-opening-card p { color: rgba(255,255,255,.58); font-size: 10px; }
.brawl-opening-card > button { min-width: 190px; height: 52px; margin-top: 10px; border-radius: 17px; color: #06141c; background: linear-gradient(135deg,var(--cyan),var(--cyan-2)); font-weight: 900; }
.brawl-opening-card.purchased .brawl-opening-model { width: 190px; height: 190px; }
.brawl-opening-card.purchased h2 { opacity: .25; }
.brawl-opening-card.opening .brawl-opening-model { animation: miniBoxCharge 1.2s cubic-bezier(.22,.72,.18,1) forwards; }
.brawl-opening-card.opening::after {
  content:""; position:absolute; inset:0; z-index:5; pointer-events:none;
  background:#eaffff; animation:caseOpeningFlash 650ms ease-out forwards 1.05s; opacity:0;
}

.case-roulette-card {
  width: min(100%, 430px);
  padding: 24px 0 30px;
  border-radius: 28px;
  overflow: hidden;
  text-align: center;
  background: linear-gradient(160deg,#111d2a,#070c14);
  border: 1px solid rgba(255,255,255,.1);
  box-shadow: 0 25px 65px rgba(0,0,0,.45);
}
.case-roulette-card h2 { margin: 0 0 22px; font: 900 22px/1 Inter,sans-serif; }
.case-roulette-window {
  height: 142px;
  position: relative;
  overflow: hidden;
  background: rgba(0,0,0,.28);
  border-block: 1px solid rgba(255,255,255,.08);
  mask-image: linear-gradient(90deg,transparent,#000 16%,#000 84%,transparent);
}
.case-roulette-window > i {
  width: 3px; position: absolute; inset-block: 0; left: 50%; z-index: 5;
  transform: translateX(-50%); background: linear-gradient(#fff,var(--cyan),#fff);
  box-shadow: 0 0 15px var(--cyan);
}
.case-roulette-track { height: 100%; display: flex; align-items: center; will-change: transform; }
.case-roulette-track > div {
  width: 96px; height: 112px; margin: 0 4px; padding: 8px; flex: 0 0 96px;
  border-radius: 16px; display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 5px; background: rgba(255,255,255,.055);
  border: 1px solid rgba(255,255,255,.08);
}
.case-roulette-track > div.nft { background: radial-gradient(circle at 50% 30%,rgba(98,246,255,.2),rgba(255,255,255,.045)); }
.case-roulette-track img { width: 67px; height: 67px; object-fit: contain; }
.case-roulette-track b { width: 100%; overflow: hidden; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }

.gift-card.rare {
  border-color: rgba(98, 246, 255, 0.24);
}

.gift-art {
  height: 68px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  margin-bottom: 9px;
  background:
    radial-gradient(circle at 50% 36%, rgba(98, 246, 255, 0.2), transparent 3rem),
    rgba(255, 255, 255, 0.05);
}

.gift-art img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.gift-art .app-icon {
  width: 34px;
  height: 34px;
  color: var(--cyan);
}

.gift-card b {
  display: block;
  color: #eef6ff;
  font-size: 12px;
  font-weight: 600;
}

.gift-card span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 500;
}

.referral-card {
  margin-top: 16px;
  padding: 16px;
  border-radius: 24px;
  background:
    radial-gradient(circle at 100% 0%, rgba(98, 246, 255, 0.16), transparent 9rem),
    rgba(14, 20, 31, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.09);
}

.referral-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.referral-top h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
}

.referral-top p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.referral-top > span {
  min-width: 48px;
  height: 34px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: var(--cyan);
  background: rgba(98, 246, 255, 0.1);
  font-size: 15px;
  font-weight: 700;
}

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

.referral-stats div {
  min-height: 72px;
  border-radius: 18px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.referral-stats b {
  display: block;
  font-size: 24px;
  font-weight: 700;
}

.referral-stats span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
}

.referral-link {
  display: block;
  margin-bottom: 10px;
}

.referral-link span {
  display: block;
  margin: 0 0 6px 2px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
}

.referral-link input {
  width: 100%;
  height: 38px;
  padding: 0 12px;
  border: 1px solid rgba(98, 246, 255, 0.14);
  border-radius: 14px;
  outline: 0;
  color: #eaf7ff;
  background: rgba(255, 255, 255, 0.05);
  font: 600 12px/1 Manrope, Inter, ui-sans-serif, system-ui, sans-serif;
}

.task-list {
  display: grid;
  gap: 10px;
}

.task-card {
  min-height: 74px;
  padding: 12px;
  border-radius: 20px;
  display: grid;
  grid-template-columns: 38px 1fr auto;
  align-items: center;
  gap: 11px;
  background: rgba(14, 20, 31, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.task-card.empty {
  grid-template-columns: 38px 1fr;
}

.task-card > .app-icon {
  width: 38px;
  height: 38px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  color: var(--cyan);
  background: rgba(98, 246, 255, 0.1);
  padding: 8px;
}

.task-card b {
  display: block;
  font-size: 13px;
  font-weight: 600;
}

.task-card p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
}

.task-card button {
  min-width: 62px;
  height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  color: #07131a;
  background: linear-gradient(180deg, var(--cyan), var(--cyan-2));
  font-size: 12px;
  font-weight: 800;
}

.task-card button:disabled {
  color: rgba(238, 246, 255, 0.48);
  background: rgba(255, 255, 255, 0.08);
}

.balance-pill {
  height: 33px;
  min-width: 98px;
  border-radius: 999px;
  padding: 0 7px 0 8px;
  display: grid;
  grid-template-columns: 21px 1fr 19px;
  align-items: center;
  gap: 7px;
  color: #c4ccd5;
}

.balance-pill b {
  font-size: 14px;
  font-weight: 600;
}

.balance-pill i {
  width: 19px;
  height: 19px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #c9d0d7;
  font-style: normal;
  font-size: 18px;
  line-height: 1;
  background: rgba(255, 255, 255, 0.08);
}

.deposit-overlay {
  position: fixed;
  inset: 0;
  display: grid;
  align-items: end;
  justify-items: center;
  padding: 0 14px calc(98px + env(safe-area-inset-bottom));
  background: rgba(0, 0, 0, 0);
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms ease, background 220ms ease;
  z-index: 40;
}

.deposit-overlay.open {
  opacity: 1;
  pointer-events: auto;
  background: rgba(0, 4, 9, 0.46);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}

.deposit-sheet {
  width: min(326px, calc(100vw - 28px));
  border-radius: 26px;
  padding: 10px 16px 16px;
  color: #e7eef7;
  background:
    radial-gradient(circle at 50% 0%, rgba(98, 246, 255, 0.14), transparent 10rem),
    rgba(10, 17, 27, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow:
    0 24px 70px rgba(0, 0, 0, 0.58),
    0 0 36px rgba(98, 246, 255, 0.07),
    inset 1px 1px 4px rgba(255, 255, 255, 0.1),
    inset -1px -1px 4px rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(14px) saturate(145%);
  -webkit-backdrop-filter: blur(14px) saturate(145%);
  transform: translateY(24px) scale(0.96);
  transition: transform 320ms var(--ease-spring);
  overflow: hidden;
  text-align: center;
}

.deposit-overlay.open .deposit-sheet {
  transform: translateY(0) scale(1);
}

.sheet-handle {
  width: 42px;
  height: 4px;
  margin: 0 auto 15px;
  border-radius: 999px;
  background: rgba(181, 222, 244, 0.34);
  box-shadow: 0 0 12px rgba(98, 246, 255, 0.12);
}

.deposit-sheet h2 {
  margin: 0 0 14px;
  text-align: center;
  color: #edf8ff;
  font-size: 17px;
  font-weight: 600;
}

.deposit-amount-card {
  padding: 14px 12px 11px;
  margin-bottom: 12px;
  border-radius: 20px;
  text-align: center;
  background:
    radial-gradient(circle at 50% 10%, rgba(98, 246, 255, 0.13), transparent 6rem),
    rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(98, 246, 255, 0.12);
  box-shadow:
    inset 1px 1px 4px rgba(255, 255, 255, 0.08),
    0 10px 26px rgba(0, 0, 0, 0.14);
}

.amount-field {
  height: 43px;
  display: grid;
  align-items: center;
  justify-items: center;
  position: relative;
}

.currency-star-icon {
  display: inline-block;
  flex: 0 0 auto;
}

.amount-star {
  width: 28px;
  height: 28px;
  filter: drop-shadow(0 0 12px rgba(255, 192, 38, 0.24));
  position: absolute;
  left: calc(50% - var(--star-offset, 62px));
  transition: left 160ms var(--ease-spring);
}

.balance-star {
  width: 21px;
  height: 21px;
  filter: drop-shadow(0 1px 3px rgba(255, 255, 255, 0.14));
}

.amount-field input {
  width: 100%;
  height: 43px;
  padding: 0;
  border: 0;
  outline: 0;
  color: #ffffff;
  background: transparent;
  font: 650 34px/1 Manrope, Inter, ui-sans-serif, system-ui, sans-serif;
  caret-color: var(--cyan);
  text-align: center;
}

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

.amount-usd {
  margin: 1px 0 5px;
  text-align: center;
  color: rgba(181, 204, 222, 0.62);
  font-size: 12px;
  font-weight: 500;
}

.quick-amounts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 9px;
  margin-bottom: 11px;
}

.quick-amounts button {
  height: 38px;
  border-radius: 14px;
  color: #84eaff;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.07);
  font-size: 15px;
  font-weight: 600;
  text-align: center;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease;
}

.quick-amounts button:hover {
  color: #ffffff;
  background: rgba(98, 246, 255, 0.12);
  border-color: rgba(98, 246, 255, 0.22);
}

.quick-amounts button.active {
  color: #06141c;
  background: linear-gradient(135deg, #67f5ff, #49baff);
  border-color: rgba(255, 255, 255, 0.34);
  box-shadow: 0 8px 18px rgba(48, 190, 255, 0.18);
}

.deposit-submit {
  width: 100%;
  height: 44px;
  border-radius: 16px;
  color: #05131b;
  background: linear-gradient(135deg, #67f5ff, #49baff);
  font-size: 15px;
  font-weight: 700;
  box-shadow:
    0 12px 26px rgba(48, 190, 255, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.52);
  transition: filter 160ms ease, box-shadow 160ms ease;
}

.deposit-submit:hover {
  filter: brightness(1.06);
  box-shadow:
    0 14px 30px rgba(48, 190, 255, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.58);
}

.deposit-submit:disabled {
  cursor: wait;
  opacity: 0.7;
}

.pay-star {
  width: 18px;
  height: 18px;
  filter: drop-shadow(0 1px 2px rgba(131, 79, 0, 0.25));
}

.symbol {
  position: relative;
}

.symbol::before {
  content: "";
  display: block;
  width: 72px;
  height: 72px;
  border-radius: 19px;
  filter: drop-shadow(0 0 10px rgba(103, 247, 255, 0.55));
}

.crystal::before {
  background:
    linear-gradient(135deg, transparent 0 16%, rgba(255, 255, 255, 0.9) 16% 18%, transparent 18%),
    linear-gradient(45deg, transparent 0 33%, rgba(255, 255, 255, 0.8) 34% 36%, transparent 37%),
    linear-gradient(135deg, #e8ffff 0%, #8fffff 30%, #bffff2 48%, #52c6ff 72%, #eaffff 100%);
  clip-path: polygon(48% 0, 88% 20%, 100% 62%, 64% 100%, 18% 92%, 0 48%, 17% 13%);
}

.crown::before {
  background:
    radial-gradient(circle at 18% 58%, #25eaff 0 9px, transparent 10px),
    radial-gradient(circle at 50% 45%, #ffd640 0 11px, transparent 12px),
    radial-gradient(circle at 82% 58%, #ff3aa3 0 9px, transparent 10px),
    linear-gradient(135deg, #ffd236, #ff7a00 48%, #ff2aa2);
  clip-path: polygon(0 46%, 17% 22%, 38% 48%, 52% 8%, 66% 48%, 88% 21%, 100% 46%, 90% 100%, 10% 100%);
}

.roulette::before {
  border-radius: 50%;
  background:
    repeating-conic-gradient(#ed1f2f 0 18deg, #ffffff 18deg 36deg),
    radial-gradient(circle, #ffffff 0 34%, transparent 35%);
  border: 5px solid #f3f6f8;
  box-shadow: inset 0 0 0 14px #e9232e, 0 0 13px rgba(255, 56, 68, 0.65);
}

.heart::before {
  width: 72px;
  height: 58px;
  margin-top: 8px;
  border-radius: 14px 14px 20px 20px;
  background:
    radial-gradient(circle at 50% 38%, #cf0e22 0 15px, transparent 16px),
    linear-gradient(145deg, #f5f8fb, #b8c1ca);
  clip-path: polygon(8% 26%, 72% 0, 100% 38%, 86% 100%, 18% 100%, 0 58%);
  filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.24));
}

.small-symbol::before {
  width: 53px;
  height: 53px;
}

.menu {
  position: fixed;
  left: 50%;
  bottom: calc(12px + env(safe-area-inset-bottom));
  width: min(306px, calc(100% - 42px));
  min-height: 72px;
  transform: translateX(-50%);
  display: none;
  justify-content: center;
  align-items: stretch;
  gap: 6px;
  padding: 7px;
  z-index: 10;
  border-radius: 99rem;
  background: rgba(16, 24, 32, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(5px) saturate(150%) contrast(112%);
  -webkit-backdrop-filter: blur(5px) saturate(150%) contrast(112%);
  --active-index: 1;
}

body.loaded .menu {
  display: flex;
}

.menu::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow:
    inset 1px 1px 5px rgba(255, 255, 255, 0.16),
    inset -1px -1px 5px rgba(255, 255, 255, 0.08),
    inset 0 -2px 0 rgba(255, 255, 255, 0.08);
  pointer-events: none;
  z-index: -1;
}

.menu::before {
  content: "";
  position: absolute;
  top: 7px;
  left: 7px;
  width: calc((100% - 26px) / 3);
  height: calc(100% - 14px);
  border-radius: 999rem;
  background: rgba(255, 255, 255, 0.08);
  box-shadow:
    inset 1px 1px 4px rgba(255, 255, 255, 0.12),
    inset -1px -1px 4px rgba(255, 255, 255, 0.06);
  transform: translateX(calc(var(--active-index) * (100% + 6px)));
  transition: transform 420ms var(--ease-spring);
  pointer-events: none;
  z-index: 0;
}

.menu a {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1 1 0;
  min-width: 0;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  min-height: 58px;
  padding: 9px 6px 8px;
  border-radius: 999rem;
  -webkit-tap-highlight-color: transparent;
  background: transparent;
  transition:
    background 0.18s var(--ease-spring),
    color 0.18s var(--ease-spring),
    box-shadow 0.3s ease-in-out;
  position: relative;
  z-index: 1;
}

.menu a:hover {
  background-color: rgba(98, 246, 255, 0.12);
  box-shadow:
    inset 1px 1px 4px rgba(255, 255, 255, 0.14),
    inset -1px -1px 4px rgba(255, 255, 255, 0.08);
  color: var(--cyan);
}

.menu-icon {
  width: 1.62rem;
  height: 1.62rem;
  opacity: 0.94;
}

.menu a > span:not(.menu-icon) {
  margin-top: 4px;
  font-size: 0.72rem;
  font-weight: 500;
  line-height: 1;
}

.menu a.active {
  background: transparent;
  color: var(--cyan);
  box-shadow: none;
}

.menu a:active {
  filter: brightness(0.96);
}

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

@keyframes gameSheen {
  0%,
  62% {
    transform: translateX(-38%) rotate(8deg);
  }
  100% {
    transform: translateX(38%) rotate(8deg);
  }
}

@keyframes gameIconFloat {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-4px) rotate(2deg);
  }
}

@keyframes rouletteWheelSpin {
  0% {
    transform: rotate(0deg);
  }
  62% {
    transform: rotate(1280deg);
  }
  82%,
  100% {
    transform: rotate(1420deg);
  }
}

@keyframes rouletteAura {
  0% {
    transform: rotate(0deg) scale(1);
  }
  50% {
    transform: rotate(180deg) scale(1.06);
  }
  100% {
    transform: rotate(360deg) scale(1);
  }
}

@keyframes freePulse {
  0%,
  100% {
    box-shadow:
      0 18px 44px rgba(0, 0, 0, 0.28),
      0 0 34px rgba(98, 246, 255, 0.12);
  }
  50% {
    box-shadow:
      0 20px 48px rgba(0, 0, 0, 0.3),
      0 0 46px rgba(98, 246, 255, 0.2);
  }
}

@keyframes rocketLift {
  0%,
  100% {
    transform: translate3d(0, 4px, 0) scale(0.96);
  }
  45% {
    transform: translate3d(12px, -18px, 0) scale(1.03);
  }
  72% {
    transform: translate3d(7px, -10px, 0) scale(1);
  }
}

@keyframes rocketTrail {
  0%,
  100% {
    opacity: 0.28;
    transform: rotate(35deg) scaleY(0.82);
  }
  45% {
    opacity: 0.72;
    transform: rotate(35deg) scaleY(1.18);
  }
}

@keyframes gameRipple {
  0% {
    opacity: 0.8;
    transform: translate(-50%, -50%) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(14);
  }
}

@keyframes mineBoom {
  0% {
    filter: brightness(1);
  }
  45% {
    filter: brightness(1.8);
  }
  100% {
    filter: brightness(1);
  }
}

@keyframes balloonFragment {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.5) rotate(0deg);
  }
  18% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1) rotate(calc(var(--rot) * 0.25));
  }
  100% {
    opacity: 0;
    transform: translate(calc(-50% + var(--tx)), calc(-50% + var(--ty))) scale(0.72) rotate(var(--rot));
  }
}

@keyframes balloonBlast {
  0% {
    opacity: 0;
    transform: scale(0.15) rotate(0deg);
  }
  16% {
    opacity: 1;
    transform: scale(1.18) rotate(16deg);
  }
  100% {
    opacity: 0;
    transform: scale(1.75) rotate(42deg);
  }
}

@keyframes dealCardA {
  0%,
  12% {
    opacity: 0;
    transform: translateX(-18px) translateY(8px) rotate(-24deg);
  }
  24%,
  100% {
    opacity: 1;
    transform: translateX(0) translateY(0) rotate(-12deg);
  }
}

@keyframes dealCardK {
  0%,
  28% {
    opacity: 0;
    transform: translateX(-18px) translateY(8px) rotate(0deg);
  }
  42%,
  100% {
    opacity: 1;
    transform: translateX(0) translateY(0) rotate(12deg);
  }
}

.mines-page {
  background:
    radial-gradient(circle at 50% 18%, rgba(98, 246, 255, 0.07), transparent 18rem),
    #03070c;
}

.mines-app {
  width: min(100%, 430px);
  min-height: 100vh;
  margin: 0 auto;
  padding: max(14px, env(safe-area-inset-top)) 16px calc(24px + env(safe-area-inset-bottom));
  border-inline: 1px solid rgba(22, 52, 74, 0.48);
  box-shadow: inset 0 0 0 1px rgba(9, 29, 43, 0.7);
}

.mines-topbar {
  min-height: 48px;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 38px auto;
  align-items: center;
  gap: 10px;
}

.mines-back {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: #dff8ff;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.09);
}

.mines-back .app-icon {
  width: 24px;
  height: 24px;
}

.mines-brand {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  color: inherit;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

.mines-brand img {
  width: 86px;
  height: auto;
  object-fit: contain;
}

.mines-brand span {
  color: rgba(238, 246, 255, 0.58);
  font-size: 12px;
  font-weight: 800;
}

.mines-balance {
  height: 38px;
  padding: 0 10px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.09);
}

.mines-balance img {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.mines-balance b {
  font-size: 13px;
  font-weight: 700;
}

.mines-status {
  margin: 14px 0;
  padding: 8px;
  border-radius: 20px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.mines-status div {
  min-width: 0;
  min-height: 50px;
  display: grid;
  place-content: center;
  text-align: center;
}

.mines-status div + div {
  border-left: 1px solid rgba(255, 255, 255, 0.07);
}

.mines-status span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 500;
}

.mines-status b {
  margin-top: 3px;
  color: #eefaff;
  font-size: 16px;
  font-weight: 700;
}

.mines-status i {
  color: var(--cyan);
  font-style: normal;
}

.mines-board-large {
  width: 100%;
  aspect-ratio: 1;
  padding: 8px;
  border-radius: 26px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 7px;
  background:
    radial-gradient(circle at 50% 45%, rgba(98, 246, 255, 0.07), transparent 13rem),
    rgba(8, 14, 23, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.09);
  box-shadow:
    0 20px 48px rgba(0, 0, 0, 0.26),
    inset 1px 1px 5px rgba(255, 255, 255, 0.06);
}

.mines-cell {
  min-width: 0;
  aspect-ratio: 1;
  border-radius: 13px;
  display: grid;
  place-items: center;
  color: rgba(98, 246, 255, 0.2);
  background:
    linear-gradient(145deg, rgba(37, 51, 67, 0.88), rgba(18, 27, 39, 0.94));
  border: 1px solid rgba(255, 255, 255, 0.07);
  box-shadow:
    inset 1px 1px 3px rgba(255, 255, 255, 0.07),
    0 7px 14px rgba(0, 0, 0, 0.18);
  transition: background 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.mines-cell::before {
  content: "";
  width: clamp(25px, 8vw, 34px);
  height: clamp(25px, 8vw, 34px);
  opacity: 0.58;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cpath fill='black' d='M28.9 3.4c-7.2.8-13 3.8-17.1 8.6-2.6 3.1-4.1 6.5-4.8 9.7-1.4-.4-3-.5-4.8-.1 1.6.7 2.9 1.6 3.9 2.8-1.2.8-2.3 1.9-3.3 3.2 1.8-.6 3.5-.8 5.1-.5.3.7.8 1.4 1.3 2 1-2.2 2.4-3.9 4.1-5.2 4.3-.4 7.8-2 10.4-4.9-2.7.8-5 .9-7.1.2 4.5-1.1 7.8-3.4 9.8-6.8-2.7 1.1-5.3 1.3-7.8.7 5-1.8 8.4-5 10.3-9.7Z'/%3E%3Cpath fill='black' d='M8.7 26.8c4.3-4.8 8.5-8.5 13.7-11.5-4.3 3.7-7.7 7.8-10.7 12.7l-3-1.2Z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cpath fill='black' d='M28.9 3.4c-7.2.8-13 3.8-17.1 8.6-2.6 3.1-4.1 6.5-4.8 9.7-1.4-.4-3-.5-4.8-.1 1.6.7 2.9 1.6 3.9 2.8-1.2.8-2.3 1.9-3.3 3.2 1.8-.6 3.5-.8 5.1-.5.3.7.8 1.4 1.3 2 1-2.2 2.4-3.9 4.1-5.2 4.3-.4 7.8-2 10.4-4.9-2.7.8-5 .9-7.1.2 4.5-1.1 7.8-3.4 9.8-6.8-2.7 1.1-5.3 1.3-7.8.7 5-1.8 8.4-5 10.3-9.7Z'/%3E%3Cpath fill='black' d='M8.7 26.8c4.3-4.8 8.5-8.5 13.7-11.5-4.3 3.7-7.7 7.8-10.7 12.7l-3-1.2Z'/%3E%3C/svg%3E") center / contain no-repeat;
  filter: drop-shadow(0 0 7px rgba(98, 246, 255, 0.24));
}

.mines-board-large.playing .mines-cell {
  cursor: pointer;
}

.mines-cell.revealed::before {
  display: none;
}

.mines-cell svg {
  width: 58%;
  height: 58%;
  fill: currentColor;
}

.mines-cell .mines-diamond {
  width: 72%;
  height: 72%;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 0 10px rgba(98, 246, 255, 0.3));
}

.mines-cell .mines-boom {
  width: 78%;
  height: 78%;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 0 12px rgba(255, 75, 92, 0.34));
}

.mines-cell.safe {
  color: var(--cyan);
  background:
    radial-gradient(circle, rgba(98, 246, 255, 0.22), transparent 65%),
    rgba(98, 246, 255, 0.08);
  border-color: rgba(98, 246, 255, 0.26);
  box-shadow: 0 0 18px rgba(98, 246, 255, 0.14);
  animation: mineCellReveal 260ms var(--ease-spring);
}

.mines-cell.mine {
  color: #ff5f70;
  background:
    radial-gradient(circle, rgba(255, 94, 111, 0.24), transparent 66%),
    rgba(255, 72, 95, 0.08);
  border-color: rgba(255, 94, 111, 0.28);
}

.mines-cell.mine.muted {
  opacity: 0.52;
}

.mines-cell.safe.muted {
  opacity: 0.44;
  box-shadow: none;
  animation: none;
  filter: none;
}

.mines-cell.exploded {
  box-shadow: 0 0 28px rgba(255, 75, 92, 0.34);
  animation: mineCellExplode 420ms ease-out;
}

.mines-payouts {
  margin: 12px 0;
  display: flex;
  gap: 6px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x;
  padding: 2px 1px 6px;
}

.mines-payouts::-webkit-scrollbar {
  display: none;
}

.mines-payouts b {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
}

.mines-payouts b img {
  width: 12px;
  height: 12px;
  object-fit: contain;
  flex: 0 0 auto;
}

.mines-payouts span {
  min-width: 67px;
  flex: 0 0 67px;
  height: 48px;
  border-radius: 13px;
  display: grid;
  place-content: center;
  text-align: center;
  color: rgba(238, 246, 255, 0.46);
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.06);
  scroll-snap-align: center;
}

.mines-payouts span.active {
  color: var(--cyan);
  border-color: rgba(98, 246, 255, 0.18);
  background: rgba(98, 246, 255, 0.08);
}

.mines-payouts span.passed {
  color: rgba(98, 246, 255, 0.38);
  border-color: rgba(98, 246, 255, 0.08);
}

.mines-payouts b,
.mines-payouts small {
  font-size: 10px;
  line-height: 1.25;
}

.mines-controls {
  padding: 14px;
  border-radius: 24px;
  background: rgba(14, 20, 31, 0.76);
  border: 1px solid rgba(255, 255, 255, 0.09);
  box-shadow: inset 1px 1px 4px rgba(255, 255, 255, 0.05);
}

.mines-field-head {
  margin: 3px 2px 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.mines-field-head span {
  color: #dbe9f5;
  font-size: 12px;
  font-weight: 600;
}

.mines-field-head small {
  color: var(--muted);
  font-size: 9px;
}

.mines-bet-row {
  height: 48px;
  display: grid;
  grid-template-columns: 46px 1fr 46px;
  gap: 7px;
  margin-bottom: 7px;
}

.mines-bet-row > button,
.mines-bet-row label {
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.mines-bet-row > button {
  color: var(--cyan);
  font-size: 24px;
}

.mines-bet-row label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
}

.mines-bet-row img {
  width: 22px;
  height: 22px;
}

.mines-bet-row input {
  width: 88px;
  border: 0;
  outline: 0;
  color: #eefaff;
  background: transparent;
  text-align: center;
  font: 700 20px/1 Manrope, sans-serif;
}

.mines-bet-shortcuts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
  margin-bottom: 15px;
}

.mines-bet-shortcuts button {
  height: 32px;
  border-radius: 12px;
  color: rgba(238, 246, 255, 0.62);
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 11px;
  font-weight: 700;
}

.mine-options {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 7px;
  margin-bottom: 12px;
}

.mine-options button {
  height: 38px;
  border-radius: 13px;
  color: rgba(238, 246, 255, 0.58);
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.07);
  font-size: 13px;
  font-weight: 700;
}

.mine-options button.active {
  color: #06141c;
  background: linear-gradient(135deg, var(--cyan), var(--cyan-2));
  border-color: rgba(255, 255, 255, 0.32);
}

.mines-play {
  width: 100%;
  height: 48px;
  padding: 0 13px 0 17px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #06141c;
  background: linear-gradient(135deg, #67f5ff, #49baff);
  box-shadow: 0 12px 28px rgba(48, 190, 255, 0.22);
  font-size: 14px;
  font-weight: 800;
}

.mines-play.cashout {
  background: linear-gradient(135deg, #ffdb68, #ff9f43);
}

.mines-play-value {
  height: 30px;
  padding: 0 9px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  gap: 5px;
  background: rgba(255, 255, 255, 0.38);
}

.mines-play-value img {
  width: 17px;
  height: 17px;
}

.mines-win-toast {
  position: fixed;
  top: max(74px, calc(env(safe-area-inset-top) + 62px));
  left: 50%;
  width: min(330px, calc(100% - 32px));
  min-height: 76px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 24px;
  display: flex;
  align-items: center;
  gap: 11px;
  color: #f5fcff;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.035)),
    rgba(16, 24, 32, 0.42);
  box-shadow:
    0 18px 42px rgba(0, 0, 0, 0.34),
    0 0 34px rgba(73, 186, 255, 0.2),
    inset 1px 1px 5px rgba(255, 255, 255, 0.18),
    inset -1px -1px 5px rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(12px) saturate(165%) contrast(108%);
  -webkit-backdrop-filter: blur(12px) saturate(165%) contrast(108%);
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, -18px) scale(0.94);
  transition:
    opacity 260ms ease,
    visibility 260ms ease,
    transform 420ms var(--ease-spring);
  z-index: 30;
  cursor: pointer;
  overflow: hidden;
}

.mines-win-toast::before {
  content: "";
  position: absolute;
  inset: 1px 12% auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.7), transparent);
  opacity: 0.65;
}

.mines-win-toast.visible {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0) scale(1);
}

.mines-win-icon {
  width: 52px;
  height: 52px;
  border-radius: 17px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow:
    inset 1px 1px 4px rgba(255, 255, 255, 0.16),
    0 0 20px rgba(98, 246, 255, 0.12);
}

.mines-win-icon img {
  width: 31px;
  height: 31px;
  filter: drop-shadow(0 0 9px rgba(255, 219, 104, 0.42));
}

.mines-win-copy {
  min-width: 0;
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 4px;
}

.mines-win-copy span {
  color: rgba(238, 246, 255, 0.62);
  font-size: 11px;
  font-weight: 600;
}

.mines-win-copy strong {
  font: 800 18px/1 Manrope, sans-serif;
  letter-spacing: -0.02em;
}

.mines-win-copy strong b {
  color: var(--cyan);
  text-shadow: 0 0 14px rgba(98, 246, 255, 0.3);
}

.mines-win-multiplier {
  min-width: 58px;
  height: 32px;
  padding: 0 9px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  color: #06141c;
  background: linear-gradient(135deg, var(--cyan), var(--cyan-2));
  box-shadow:
    0 7px 18px rgba(48, 190, 255, 0.26),
    inset 1px 1px 2px rgba(255, 255, 255, 0.35);
  font-size: 12px;
  font-weight: 900;
}

.mines-hint {
  min-height: 14px;
  margin: 9px 0 0;
  text-align: center;
  color: var(--muted);
  font-size: 10px;
}

@keyframes mineCellReveal {
  from {
    opacity: 0.4;
    filter: brightness(1.8);
  }
  to {
    opacity: 1;
    filter: brightness(1);
  }
}

@keyframes mineCellExplode {
  0% {
    filter: brightness(1);
  }
  35% {
    filter: brightness(2);
  }
  100% {
    filter: brightness(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .game-tile,
  .game-tile.free-roulette,
  .game-icon,
  .roulette-wheel,
  .game-tile::before,
  .roulette-aura,
  .game-ripple,
  .rocket-wrap,
  .rocket-wrap::after,
  .mines-board i.boom,
  .balloon-scene.popped .balloon-fragments i {
    animation: none;
    transition: none;
  }

  .playing-card {
    animation: none;
  }

  .game-tile {
    opacity: 1;
    transform: none;
  }

  .mines-win-toast {
    transition: none;
  }
}

@media (max-width: 360px) {
  .app {
    padding-inline: 14px;
  }

  .app-logo-header {
    width: min(52vw, 158px);
  }

  .symbol::before {
    width: 62px;
    height: 62px;
  }

  .small-symbol::before {
    width: 47px;
    height: 47px;
  }
}

/* Crash game */

.crash-page {
  background:
    radial-gradient(circle at 50% 26%, rgba(50, 194, 255, 0.1), transparent 19rem),
    linear-gradient(180deg, #02060b, #03070c);
}

.crash-app {
  width: min(100%, 430px);
  min-height: 100vh;
  margin: 0 auto;
  padding: max(14px, env(safe-area-inset-top)) 16px calc(28px + env(safe-area-inset-bottom));
  position: relative;
  border-inline: 1px solid rgba(22, 52, 74, 0.38);
}

.crash-topbar {
  min-height: 42px;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 38px auto;
  align-items: center;
  gap: 8px;
  margin-bottom: 15px;
}

.crash-back {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: rgba(238, 246, 255, 0.76);
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.07);
  text-decoration: none;
}

.crash-back .app-icon {
  width: 23px;
  height: 23px;
}

.crash-brand {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  color: inherit;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

.crash-brand img {
  width: 86px;
  height: auto;
  object-fit: contain;
}

.crash-brand span {
  color: rgba(238, 246, 255, 0.58);
  font-size: 12px;
  font-weight: 800;
}

.crash-balance {
  height: 38px;
  padding: 0 10px;
  border-radius: 13px;
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.crash-balance img {
  width: 18px;
  height: 18px;
}

.crash-balance b {
  font: 800 13px/1 Manrope, sans-serif;
}

.crash-history {
  height: 40px;
  margin-bottom: 10px;
  padding: 0 3px;
  display: flex;
  align-items: center;
  gap: 7px;
  overflow-x: auto;
  scrollbar-width: none;
}

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

.crash-history span {
  height: 28px;
  padding: 0 9px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  color: var(--cyan-2);
  background: rgba(85, 185, 255, 0.08);
  border: 1px solid rgba(85, 185, 255, 0.11);
  font-size: 11px;
  font-weight: 800;
}

.crash-history span.high {
  color: #b18cff;
  background: rgba(161, 111, 255, 0.09);
  border-color: rgba(161, 111, 255, 0.12);
}

.crash-history span.hot {
  color: #ffe072;
  background: rgba(255, 211, 81, 0.09);
  border-color: rgba(255, 211, 81, 0.13);
}

.crash-stage {
  height: 292px;
  border-radius: 27px;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 70% 24%, rgba(98, 246, 255, 0.1), transparent 9rem),
    linear-gradient(160deg, rgba(14, 25, 37, 0.78), rgba(5, 10, 16, 0.92));
  border: 1px solid rgba(98, 246, 255, 0.1);
  box-shadow:
    0 20px 45px rgba(0, 0, 0, 0.28),
    inset 1px 1px 0 rgba(255, 255, 255, 0.04);
}

.crash-stage::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(125deg, rgba(255, 255, 255, 0.035), transparent 35%);
}

.crash-stage.crashed {
  border-color: rgba(255, 82, 119, 0.2);
  box-shadow:
    0 20px 45px rgba(0, 0, 0, 0.28),
    0 0 32px rgba(255, 82, 119, 0.08);
}

#crashCanvas {
  width: 100%;
  height: 100%;
  display: block;
}

.crash-center {
  position: absolute;
  top: 28px;
  left: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  pointer-events: none;
  z-index: 3;
}

.crash-center strong {
  font: 900 42px/1 Inter, sans-serif;
  letter-spacing: -0.055em;
  text-shadow: 0 0 24px rgba(98, 246, 255, 0.18);
}

.crash-center strong.crashed {
  color: #ff6484;
  text-shadow: 0 0 24px rgba(255, 82, 119, 0.25);
  animation: crashValuePop 320ms var(--ease-spring);
}

.crash-center span {
  color: rgba(238, 246, 255, 0.48);
  font-size: 11px;
  font-weight: 600;
}

.crash-rocket {
  width: 54px;
  height: 54px;
  position: absolute;
  z-index: 4;
  opacity: 0;
  transform: translate(-47%, -52%) rotate(35deg) scale(0.78);
  transition: opacity 180ms ease;
  pointer-events: none;
}

.crash-rocket.visible {
  opacity: 1;
}

.crash-rocket img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 0 12px rgba(98, 246, 255, 0.44));
}

.crash-countdown {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  opacity: 0;
  visibility: hidden;
  background: radial-gradient(circle, rgba(32, 120, 171, 0.11), rgba(3, 7, 12, 0.42) 54%, transparent 72%);
  transition: opacity 220ms ease, visibility 220ms ease;
}

.crash-countdown.visible {
  opacity: 1;
  visibility: visible;
}

.crash-countdown b {
  width: 104px;
  height: 104px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--cyan);
  background: rgba(9, 21, 31, 0.72);
  border: 3px solid var(--cyan-2);
  box-shadow:
    0 0 0 9px rgba(85, 185, 255, 0.07),
    0 0 34px rgba(85, 185, 255, 0.22),
    inset 0 0 28px rgba(85, 185, 255, 0.08);
  font: 900 38px/1 Inter, sans-serif;
  animation: crashCountdownPulse 1s ease-in-out infinite;
}

.crash-countdown span {
  color: rgba(238, 246, 255, 0.58);
  font-size: 11px;
  font-weight: 700;
}

.crash-controls,
.crash-bets {
  padding: 14px;
  border-radius: 23px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.015)),
    rgba(12, 19, 28, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.07);
  box-shadow: 0 15px 34px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(9px) saturate(145%);
  -webkit-backdrop-filter: blur(9px) saturate(145%);
}

.crash-control-head {
  min-height: 27px;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: rgba(238, 246, 255, 0.55);
  font-size: 11px;
  font-weight: 700;
}

.crash-auto {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 7px;
  cursor: pointer;
}

.crash-auto input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.crash-auto i {
  width: 30px;
  height: 17px;
  padding: 2px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.09);
  transition: background 180ms ease;
}

.crash-auto i::after {
  content: "";
  width: 13px;
  height: 13px;
  border-radius: 50%;
  display: block;
  background: rgba(238, 246, 255, 0.55);
  transition: transform 220ms var(--ease-spring), background 180ms ease;
}

.crash-auto input:checked + i {
  background: rgba(98, 246, 255, 0.22);
}

.crash-auto input:checked + i::after {
  background: var(--cyan);
  transform: translateX(13px);
}

.crash-bet-row {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 48px;
  gap: 7px;
}

.crash-bet-row > button {
  height: 48px;
  border-radius: 14px;
  color: rgba(238, 246, 255, 0.72);
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 22px;
}

.crash-bet-row label {
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.crash-bet-row img {
  width: 21px;
  height: 21px;
}

.crash-bet-row input {
  width: 96px;
  border: 0;
  outline: 0;
  color: var(--text);
  background: transparent;
  text-align: center;
  font: 800 19px/1 Manrope, sans-serif;
  appearance: textfield;
  -moz-appearance: textfield;
}

.crash-bet-row input::-webkit-inner-spin-button,
.crash-bet-row input::-webkit-outer-spin-button {
  margin: 0;
  appearance: none;
  -webkit-appearance: none;
}

.crash-shortcuts {
  margin: 7px 0 10px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
}

.crash-shortcuts button {
  height: 31px;
  border-radius: 11px;
  color: rgba(238, 246, 255, 0.56);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 11px;
  font-weight: 700;
}

.crash-auto-value {
  height: 0;
  margin: 0;
  padding: 0 10px 0 13px;
  border-radius: 15px;
  overflow: hidden;
  opacity: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: rgba(238, 246, 255, 0.62);
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid transparent;
  font-size: 11px;
  font-weight: 600;
  transition: height 220ms ease, margin 220ms ease, opacity 180ms ease;
}

.crash-auto-value.visible {
  height: 52px;
  margin-bottom: 10px;
  opacity: 1;
  border-color: rgba(255, 255, 255, 0.07);
}

.crash-auto-input {
  width: 92px;
  height: 36px;
  padding: 0 9px;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  color: var(--cyan);
  background: rgba(98, 246, 255, 0.07);
  border: 1px solid rgba(98, 246, 255, 0.18);
  box-shadow:
    inset 1px 1px 3px rgba(255, 255, 255, 0.08),
    0 0 16px rgba(98, 246, 255, 0.04);
}

.crash-auto-input i {
  font-style: normal;
  font-weight: 900;
}

.crash-auto-input input {
  width: 58px;
  border: 0;
  outline: 0;
  color: var(--cyan);
  background: transparent;
  text-align: center;
  font: 800 14px/1 Manrope, sans-serif;
  appearance: textfield;
}

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

.crash-action {
  width: 100%;
  height: 51px;
  padding: 0 12px 0 17px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #06141c;
  background: linear-gradient(135deg, var(--cyan), var(--cyan-2));
  box-shadow: 0 12px 28px rgba(48, 190, 255, 0.2);
  font-size: 14px;
  font-weight: 900;
  transition: filter 180ms ease, background 180ms ease, transform 160ms ease;
}

.crash-action:active {
  transform: scale(0.985);
}

.crash-action.cashout {
  color: #06141c;
  background: linear-gradient(135deg, #ffdb68, #ff9f43);
  box-shadow: 0 12px 28px rgba(255, 159, 67, 0.24);
}

.crash-action.queued {
  color: var(--cyan);
  background: rgba(98, 246, 255, 0.09);
  border: 1px solid rgba(98, 246, 255, 0.25);
  box-shadow: inset 0 0 22px rgba(98, 246, 255, 0.05);
}

.crash-action.disabled {
  color: rgba(238, 246, 255, 0.38);
  background: rgba(255, 255, 255, 0.045);
  box-shadow: none;
}

.crash-action-value {
  height: 31px;
  padding: 0 9px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  gap: 5px;
  background: rgba(255, 255, 255, 0.35);
}

.crash-action.queued .crash-action-value,
.crash-action.disabled .crash-action-value {
  background: rgba(255, 255, 255, 0.07);
}

.crash-action-value img {
  width: 17px;
  height: 17px;
}

.crash-bets {
  margin-top: 11px;
}

.crash-bets-title {
  min-height: 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.crash-bets-title h2 {
  margin: 0;
  font-size: 14px;
}

.crash-bets-title span {
  min-width: 25px;
  height: 23px;
  padding: 0 7px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  color: var(--cyan);
  background: rgba(98, 246, 255, 0.08);
  font-size: 10px;
  font-weight: 800;
}

.crash-bets-empty {
  padding: 22px 8px 12px;
  text-align: center;
  color: rgba(238, 246, 255, 0.35);
  font-size: 10px;
}

.crash-bets-list {
  margin-top: 9px;
  display: grid;
  gap: 6px;
}

.crash-bet-item {
  min-height: 42px;
  padding: 0 10px;
  border-radius: 13px;
  display: grid;
  grid-template-columns: 1fr 0.7fr 1fr;
  align-items: center;
  background: rgba(255, 255, 255, 0.035);
  color: rgba(238, 246, 255, 0.56);
  font-size: 10px;
}

.crash-bet-item span {
  display: flex;
  align-items: center;
  gap: 4px;
}

.crash-bet-item img {
  width: 14px;
  height: 14px;
}

.crash-bet-item b {
  text-align: center;
  color: rgba(238, 246, 255, 0.82);
}

.crash-bet-item strong {
  text-align: right;
  color: #ff6484;
}

.crash-bet-item.won strong {
  color: var(--cyan);
}

.crash-win-toast {
  position: fixed;
  top: max(74px, calc(env(safe-area-inset-top) + 62px));
  left: 50%;
  width: min(300px, calc(100% - 36px));
  min-height: 62px;
  padding: 9px 11px;
  border-radius: 21px;
  display: flex;
  align-items: center;
  gap: 9px;
  color: #f5fcff;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.035)),
    rgba(16, 24, 32, 0.48);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow:
    0 18px 42px rgba(0, 0, 0, 0.34),
    0 0 34px rgba(73, 186, 255, 0.2),
    inset 1px 1px 5px rgba(255, 255, 255, 0.17);
  backdrop-filter: blur(12px) saturate(165%);
  -webkit-backdrop-filter: blur(12px) saturate(165%);
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, -18px) scale(0.94);
  transition: opacity 220ms ease, visibility 220ms ease, transform 380ms var(--ease-spring);
  z-index: 40;
}

.crash-win-toast.visible {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0) scale(1);
}

.crash-win-toast img {
  width: 35px;
  height: 35px;
  filter: drop-shadow(0 0 8px rgba(255, 219, 104, 0.42));
}

.crash-win-toast span {
  flex: 1 1 auto;
  font-size: 11px;
}

.crash-win-toast span b {
  display: block;
  margin-top: 2px;
  color: var(--cyan);
  font-size: 16px;
}

.crash-win-toast strong {
  height: 30px;
  padding: 0 9px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: #06141c;
  background: linear-gradient(135deg, var(--cyan), var(--cyan-2));
  font-size: 11px;
}

/* Keep the Crash screen focused on values and actions. */
.crash-center span,
.crash-countdown span,
.crash-control-head > span,
.crash-bets-empty {
  display: none;
}

@keyframes crashCountdownPulse {
  0%,
  100% {
    transform: scale(0.96);
    box-shadow:
      0 0 0 9px rgba(85, 185, 255, 0.07),
      0 0 28px rgba(85, 185, 255, 0.16);
  }
  50% {
    transform: scale(1);
    box-shadow:
      0 0 0 13px rgba(85, 185, 255, 0.04),
      0 0 42px rgba(85, 185, 255, 0.3);
  }
}

@keyframes crashValuePop {
  0% {
    transform: scale(0.88);
  }
  100% {
    transform: scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .crash-countdown b {
    animation: none;
  }

  .crash-win-toast,
  .crash-auto-value {
    transition: none;
  }
}

/* Balloon game */

.pump-page {
  background:
    radial-gradient(circle at 50% 24%, rgba(98, 246, 255, 0.08), transparent 18rem),
    linear-gradient(180deg, #02060b, #03070c);
}

.pump-app {
  width: min(100%, 430px);
  min-height: 100vh;
  margin: 0 auto;
  padding: max(14px, env(safe-area-inset-top)) 16px calc(28px + env(safe-area-inset-bottom));
  border-inline: 1px solid rgba(22, 52, 74, 0.38);
}

.pump-topbar {
  min-height: 42px;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 38px auto;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.pump-back {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: rgba(238, 246, 255, 0.76);
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.07);
  text-decoration: none;
}

.pump-back .app-icon {
  width: 23px;
  height: 23px;
}

.pump-brand {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  color: inherit;
  text-decoration: none;
}

.pump-brand img {
  width: 86px;
}

.pump-brand span {
  color: rgba(238, 246, 255, 0.58);
  font-size: 12px;
  font-weight: 800;
}

.pump-balance {
  height: 38px;
  padding: 0 10px;
  border-radius: 13px;
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.pump-balance img {
  width: 18px;
  height: 18px;
}

.pump-balance b {
  font: 800 13px/1 Manrope, sans-serif;
}

.pump-history {
  height: 38px;
  margin-bottom: 9px;
  padding: 0 3px;
  display: flex;
  align-items: center;
  gap: 7px;
  overflow-x: auto;
  scrollbar-width: none;
}

.pump-history::-webkit-scrollbar {
  display: none;
}

.pump-history span {
  height: 27px;
  padding: 0 9px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  color: var(--cyan-2);
  background: rgba(85, 185, 255, 0.08);
  border: 1px solid rgba(85, 185, 255, 0.11);
  font-size: 11px;
  font-weight: 800;
}

.pump-history span.high {
  color: #b18cff;
  background: rgba(161, 111, 255, 0.09);
}

.pump-history span.hot {
  color: #ffe072;
  background: rgba(255, 211, 81, 0.09);
}

.pump-stage {
  --pump-camera: 1;
  --pump-pop-lift: 0px;
  height: 316px;
  border-radius: 27px;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 45%, rgba(98, 246, 255, 0.07), transparent 10rem),
    linear-gradient(160deg, rgba(14, 25, 37, 0.78), rgba(5, 10, 16, 0.94));
  border: 1px solid rgba(98, 246, 255, 0.1);
  box-shadow:
    0 20px 45px rgba(0, 0, 0, 0.28),
    inset 1px 1px 0 rgba(255, 255, 255, 0.04);
}

.pump-grid {
  position: absolute;
  inset: 0;
  opacity: 0.36;
  background-image:
    linear-gradient(rgba(98, 246, 255, 0.065) 1px, transparent 1px),
    linear-gradient(90deg, rgba(98, 246, 255, 0.065) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, black, transparent 95%);
  transform: scale(calc(1 / var(--pump-camera)));
  transition: transform 480ms var(--ease-spring), opacity 480ms ease;
}

.pump-stage.zoomed-out .pump-grid {
  opacity: 0.22;
}

.pump-multiplier {
  position: absolute;
  top: 20px;
  left: 50%;
  z-index: 6;
  transform: translateX(-50%);
  color: var(--cyan);
  font: 900 27px/1 Inter, sans-serif;
  letter-spacing: -0.04em;
  text-shadow: 0 0 20px rgba(98, 246, 255, 0.25);
}

.pump-balloon-wrap {
  --pump-scale: 0.78;
  --pump-lift: 0px;
  width: 132px;
  height: 191px;
  position: absolute;
  left: 50%;
  top: 53%;
  z-index: 4;
  transform: translate(-50%, calc(-50% - var(--pump-lift))) scale(var(--pump-scale));
  transform-origin: 50% 82%;
  transition: transform 380ms var(--ease-spring), opacity 130ms ease;
  filter: drop-shadow(0 0 24px rgba(98, 246, 255, 0.25));
}

.pump-balloon-wrap.pumping {
  animation: pumpBalloonBounce 390ms var(--ease-spring);
}

.pump-balloon {
  width: 130px;
  height: 148px;
  border-radius: 52% 52% 48% 48% / 46% 46% 56% 56%;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 34% 27%, rgba(255, 255, 255, 0.75) 0 6px, rgba(255, 255, 255, 0.16) 7px 17px, transparent 30px),
    radial-gradient(circle at 50% 34%, #8affff, #35d9ef 35%, #178fc3 72%, #0a4f7d);
  border: 2px solid rgba(143, 255, 255, 0.42);
  box-shadow:
    inset -18px -16px 28px rgba(0, 33, 70, 0.34),
    inset 13px 8px 24px rgba(255, 255, 255, 0.16),
    0 0 0 10px rgba(98, 246, 255, 0.05),
    0 0 32px rgba(98, 246, 255, 0.3);
}

.pump-balloon i {
  position: absolute;
  top: 17px;
  left: 29px;
  width: 17px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.56);
  transform: rotate(-20deg);
}

.pump-knot {
  width: 20px;
  height: 18px;
  margin: -2px auto 0;
  background: #159ac2;
  border: 1px solid rgba(143, 255, 255, 0.42);
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
}

.pump-string {
  width: 26px;
  height: 55px;
  margin: -1px auto 0;
  border-left: 2px solid rgba(238, 246, 255, 0.46);
  border-radius: 50%;
  transform: translateX(9px) rotate(10deg);
}

.pump-stage.popped .pump-balloon-wrap {
  animation: pumpBalloonPop 430ms cubic-bezier(0.22, 0.75, 0.18, 1) forwards;
}

.pump-stage.popped {
  animation: pumpStageShake 440ms ease-out;
}

.pump-pop {
  width: 150px;
  height: 150px;
  position: absolute;
  top: calc(53% - var(--pump-pop-lift));
  left: 50%;
  z-index: 7;
  opacity: 0;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.pump-pop.visible {
  opacity: 1;
}

.pump-pop::before {
  content: "";
  position: absolute;
  inset: 18px;
  background:
    radial-gradient(circle, #fff 0 5%, #caffff 10%, #62f6ff 22%, rgba(85, 185, 255, 0.42) 42%, transparent 70%);
  clip-path: polygon(50% 0, 60% 34%, 85% 15%, 72% 42%, 100% 50%, 70% 59%, 88% 86%, 59% 70%, 50% 100%, 40% 70%, 13% 88%, 29% 59%, 0 50%, 29% 41%, 14% 14%, 40% 33%);
  filter: drop-shadow(0 0 18px rgba(98, 246, 255, 0.95));
  animation: pumpFlash 560ms ease-out forwards;
}

.pump-pop::after {
  content: "";
  position: absolute;
  inset: 39px;
  border: 5px solid rgba(98, 246, 255, 0.85);
  border-radius: 50%;
  box-shadow:
    0 0 18px rgba(98, 246, 255, 0.8),
    inset 0 0 18px rgba(98, 246, 255, 0.45);
  animation: pumpShockwave 720ms ease-out forwards;
}

.pump-pop i {
  --x: -75px;
  --y: -55px;
  width: 20px;
  height: 12px;
  border-radius: 50% 40% 55% 35%;
  position: absolute;
  top: 50%;
  left: 50%;
  background: linear-gradient(135deg, #9cffff, #21b5dc 55%, #0a608f);
  border: 1px solid rgba(210, 255, 255, 0.45);
  box-shadow: 0 0 10px rgba(98, 246, 255, 0.6);
  animation: pumpFragment 820ms cubic-bezier(0.12, 0.72, 0.16, 1) forwards;
}

.pump-pop i:nth-child(2) { --x: 78px; --y: -68px; animation-delay: 15ms; }
.pump-pop i:nth-child(3) { --x: -94px; --y: -8px; animation-delay: 35ms; }
.pump-pop i:nth-child(4) { --x: 92px; --y: 6px; animation-delay: 10ms; }
.pump-pop i:nth-child(5) { --x: -66px; --y: 76px; animation-delay: 45ms; }
.pump-pop i:nth-child(6) { --x: 61px; --y: 82px; animation-delay: 25ms; }
.pump-pop i:nth-child(7) { --x: -8px; --y: -98px; animation-delay: 5ms; }
.pump-pop i:nth-child(8) { --x: 7px; --y: 100px; animation-delay: 55ms; }
.pump-pop i:nth-child(9) { --x: -102px; --y: -48px; animation-delay: 20ms; }
.pump-pop i:nth-child(10) { --x: 105px; --y: -38px; animation-delay: 40ms; }
.pump-pop i:nth-child(11) { --x: -92px; --y: 49px; animation-delay: 60ms; }
.pump-pop i:nth-child(12) { --x: 96px; --y: 54px; animation-delay: 30ms; }

.pump-stage-message {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 8;
  text-align: center;
  color: rgba(238, 246, 255, 0.48);
  font-size: 10px;
  font-weight: 600;
}

.pump-risk {
  min-height: 44px;
  margin: 8px 0 10px;
  padding: 0 12px;
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  color: rgba(238, 246, 255, 0.47);
  background: rgba(255, 255, 255, 0.028);
  border: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 10px;
}

.pump-risk b {
  color: var(--cyan);
}

.pump-risk strong {
  color: #ffbd62;
}

.pump-risk i {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(238, 246, 255, 0.22);
}

.pump-controls,
.pump-rounds {
  padding: 14px;
  border-radius: 23px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.015)),
    rgba(12, 19, 28, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.07);
  box-shadow: 0 15px 34px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(9px) saturate(145%);
  -webkit-backdrop-filter: blur(9px) saturate(145%);
}

.pump-control-head {
  min-height: 26px;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: rgba(238, 246, 255, 0.52);
  font-size: 10px;
  font-weight: 700;
}

.pump-control-head b {
  color: var(--cyan);
  font-weight: 700;
}

.pump-bet-row {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 48px;
  gap: 7px;
}

.pump-bet-row > button {
  height: 48px;
  border-radius: 14px;
  color: rgba(238, 246, 255, 0.72);
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 22px;
}

.pump-bet-row label {
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.pump-bet-row img {
  width: 21px;
  height: 21px;
}

.pump-bet-row input {
  width: 96px;
  border: 0;
  outline: 0;
  color: var(--text);
  background: transparent;
  text-align: center;
  font: 800 19px/1 Manrope, sans-serif;
  appearance: textfield;
  -moz-appearance: textfield;
}

.pump-bet-row input::-webkit-inner-spin-button,
.pump-bet-row input::-webkit-outer-spin-button {
  margin: 0;
  appearance: none;
  -webkit-appearance: none;
}

.pump-shortcuts {
  margin: 7px 0 10px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
}

.pump-shortcuts button {
  height: 31px;
  border-radius: 11px;
  color: rgba(238, 246, 255, 0.56);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 11px;
  font-weight: 700;
}

.pump-start,
.pump-cashout {
  height: 51px;
  border-radius: 16px;
  font-size: 14px;
  font-weight: 900;
}

.pump-start {
  width: 100%;
  padding: 0 12px 0 17px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #06141c;
  background: linear-gradient(135deg, var(--cyan), var(--cyan-2));
  box-shadow: 0 12px 28px rgba(48, 190, 255, 0.2);
}

.pump-start-value,
.pump-cashout > span:last-child {
  height: 31px;
  padding: 0 9px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  gap: 5px;
  background: rgba(255, 255, 255, 0.35);
}

.pump-start img,
.pump-cashout img {
  width: 17px;
  height: 17px;
}

.pump-start.pumping .pump-start-value {
  color: #06141c;
  background: rgba(255, 255, 255, 0.22);
}

.pump-start.pumping .pump-start-value img {
  display: none;
}

.pump-actions {
  margin-top: 8px;
  display: none;
}

.pump-actions.visible {
  display: block;
}

.pump-cashout {
  width: 100%;
  padding: 0 9px 0 13px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #06141c;
  background: linear-gradient(135deg, #ffdb68, #ff9f43);
  box-shadow: 0 12px 28px rgba(255, 159, 67, 0.2);
}

.pump-rounds {
  margin-top: 11px;
}

.pump-rounds-title {
  min-height: 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.pump-rounds-title h2 {
  margin: 0;
  font-size: 14px;
}

.pump-rounds-title span {
  min-width: 25px;
  height: 23px;
  padding: 0 7px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  color: var(--cyan);
  background: rgba(98, 246, 255, 0.08);
  font-size: 10px;
  font-weight: 800;
}

.pump-rounds-empty {
  padding: 22px 8px 12px;
  text-align: center;
  color: rgba(238, 246, 255, 0.35);
  font-size: 10px;
}

.pump-rounds-list {
  margin-top: 9px;
  display: grid;
  gap: 6px;
}

.pump-round-item {
  min-height: 42px;
  padding: 0 10px;
  border-radius: 13px;
  display: grid;
  grid-template-columns: 1fr 0.7fr 1fr;
  align-items: center;
  background: rgba(255, 255, 255, 0.035);
  color: rgba(238, 246, 255, 0.56);
  font-size: 10px;
}

.pump-round-item span {
  display: flex;
  align-items: center;
  gap: 4px;
}

.pump-round-item img {
  width: 14px;
  height: 14px;
}

.pump-round-item b {
  text-align: center;
  color: rgba(238, 246, 255, 0.82);
}

.pump-round-item strong {
  text-align: right;
  color: #ff6484;
}

.pump-round-item.won strong {
  color: var(--cyan);
}

.pump-win-toast {
  position: fixed;
  top: max(74px, calc(env(safe-area-inset-top) + 62px));
  left: 50%;
  width: min(300px, calc(100% - 36px));
  min-height: 62px;
  padding: 9px 11px;
  border-radius: 21px;
  display: flex;
  align-items: center;
  gap: 9px;
  color: #f5fcff;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.035)),
    rgba(16, 24, 32, 0.48);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow:
    0 18px 42px rgba(0, 0, 0, 0.34),
    0 0 34px rgba(73, 186, 255, 0.2);
  backdrop-filter: blur(12px) saturate(165%);
  -webkit-backdrop-filter: blur(12px) saturate(165%);
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, -18px) scale(0.94);
  transition: opacity 220ms ease, visibility 220ms ease, transform 380ms var(--ease-spring);
  z-index: 40;
}

.pump-win-toast.visible {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0) scale(1);
}

.pump-win-toast img {
  width: 35px;
  height: 35px;
  filter: drop-shadow(0 0 8px rgba(255, 219, 104, 0.42));
}

.pump-win-toast span {
  flex: 1;
  font-size: 11px;
}

.pump-win-toast span b {
  display: block;
  margin-top: 2px;
  color: var(--cyan);
  font-size: 16px;
}

.pump-win-toast strong {
  height: 30px;
  padding: 0 9px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: #06141c;
  background: linear-gradient(135deg, var(--cyan), var(--cyan-2));
  font-size: 11px;
}

@keyframes pumpBalloonBounce {
  0%,
  100% {
    transform: translate(-50%, calc(-50% - var(--pump-lift))) scale(var(--pump-scale));
  }
  45% {
    transform: translate(-50%, calc(-50% - var(--pump-lift))) scale(calc(var(--pump-scale) * 1.08), calc(var(--pump-scale) * 0.96));
  }
}

@keyframes pumpBalloonPop {
  0% {
    opacity: 1;
    transform: translate(-50%, calc(-50% - var(--pump-lift))) scale(var(--pump-scale));
  }
  24% {
    opacity: 1;
    transform: translate(-50%, calc(-50% - var(--pump-lift))) scale(calc(var(--pump-scale) * 1.08), calc(var(--pump-scale) * 0.96)) rotate(-2deg);
    filter: brightness(1.18) drop-shadow(0 0 26px rgba(98, 246, 255, 0.56));
  }
  46% {
    opacity: 1;
    transform: translate(-50%, calc(-50% - var(--pump-lift))) scale(calc(var(--pump-scale) * 0.93), calc(var(--pump-scale) * 1.1)) rotate(2deg);
    filter: brightness(1.45) drop-shadow(0 0 34px rgba(98, 246, 255, 0.72));
  }
  62% {
    opacity: 1;
    transform: translate(-50%, calc(-50% - var(--pump-lift))) scale(calc(var(--pump-scale) * 1.2), calc(var(--pump-scale) * 0.9));
    filter: brightness(2.2) drop-shadow(0 0 46px rgba(194, 255, 255, 0.95));
  }
  100% {
    opacity: 0;
    transform: translate(-50%, calc(-50% - var(--pump-lift))) scale(calc(var(--pump-scale) * 1.58));
    filter: brightness(2.5);
  }
}

@keyframes pumpStageShake {
  0%,
  100% {
    transform: translate(0);
  }
  18% {
    transform: translate(-3px, 2px);
  }
  34% {
    transform: translate(4px, -2px);
  }
  50% {
    transform: translate(-3px, -1px);
  }
  68% {
    transform: translate(2px, 2px);
  }
  84% {
    transform: translate(-1px, 0);
  }
}

@keyframes pumpFlash {
  0% {
    opacity: 0;
    transform: scale(0.25) rotate(0);
  }
  28% {
    opacity: 1;
    transform: scale(1.15) rotate(18deg);
  }
  100% {
    opacity: 0;
    transform: scale(1.65) rotate(42deg);
  }
}

@keyframes pumpShockwave {
  0% {
    opacity: 0;
    transform: scale(0.15);
  }
  20% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: scale(2.25);
    border-width: 1px;
  }
}

@keyframes pumpFragment {
  0% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(0.35) rotate(0);
  }
  24% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1) rotate(80deg);
  }
  100% {
    opacity: 0;
    transform: translate(calc(-50% + var(--x)), calc(-50% + var(--y) + 34px)) scale(0.72) rotate(310deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .pump-balloon-wrap.pumping,
  .pump-stage.popped,
  .pump-stage.popped .pump-balloon-wrap,
  .pump-pop::before,
  .pump-pop::after,
  .pump-pop i {
    animation: none;
  }
}

/* Blackjack game */

.bj-page {
  background:
    radial-gradient(circle at 50% 28%, rgba(98, 246, 255, 0.07), transparent 19rem),
    linear-gradient(180deg, #02060b, #03070c);
}

.bj-app {
  width: min(100%, 430px);
  min-height: 100vh;
  margin: 0 auto;
  padding: max(14px, env(safe-area-inset-top)) 16px calc(28px + env(safe-area-inset-bottom));
  border-inline: 1px solid rgba(22, 52, 74, 0.38);
}

.bj-topbar {
  min-height: 42px;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 38px auto;
  align-items: center;
  gap: 8px;
  margin-bottom: 13px;
}

.bj-back {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: rgba(238, 246, 255, 0.76);
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.07);
  text-decoration: none;
}

.bj-back .app-icon {
  width: 23px;
  height: 23px;
}

.bj-brand {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  color: inherit;
  text-decoration: none;
}

.bj-brand img {
  width: 80px;
}

.bj-brand span {
  color: rgba(238, 246, 255, 0.58);
  font-size: 11px;
  font-weight: 800;
}

.bj-balance {
  height: 38px;
  padding: 0 10px;
  border-radius: 13px;
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.bj-balance img {
  width: 18px;
  height: 18px;
}

.bj-balance b {
  font: 800 13px/1 Manrope, sans-serif;
}

.bj-table {
  height: 430px;
  border-radius: 28px;
  padding: 16px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background:
    radial-gradient(ellipse at 50% 48%, rgba(28, 124, 137, 0.2), transparent 58%),
    linear-gradient(160deg, rgba(13, 31, 39, 0.95), rgba(5, 12, 18, 0.98));
  border: 1px solid rgba(98, 246, 255, 0.12);
  box-shadow:
    0 20px 45px rgba(0, 0, 0, 0.3),
    inset 1px 1px 0 rgba(255, 255, 255, 0.04);
}

.bj-table::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.22;
  background-image:
    radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.18) 1px, transparent 0);
  background-size: 12px 12px;
  mask-image: radial-gradient(ellipse at center, black, transparent 78%);
}

.bj-table::after {
  content: "BLACKJACK PAYS 3 TO 2";
  position: absolute;
  top: 48%;
  left: 50%;
  color: rgba(98, 246, 255, 0.055);
  transform: translate(-50%, -50%) rotate(-8deg);
  white-space: nowrap;
  font: 900 25px/1 Inter, sans-serif;
}

.bj-table-glow {
  position: absolute;
  inset: 18% 12%;
  border: 1px solid rgba(98, 246, 255, 0.08);
  border-radius: 50%;
  box-shadow: 0 0 50px rgba(98, 246, 255, 0.04);
}

.bj-hand {
  min-height: 163px;
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.bj-player {
  flex-direction: column-reverse;
}

.bj-hand-head {
  min-height: 29px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  color: rgba(238, 246, 255, 0.5);
  font-size: 10px;
  font-weight: 700;
}

.bj-hand-head b {
  min-width: 31px;
  height: 25px;
  padding: 0 7px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  color: var(--cyan);
  background: rgba(98, 246, 255, 0.09);
  border: 1px solid rgba(98, 246, 255, 0.12);
  font-size: 12px;
}

.bj-cards {
  min-height: 128px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
}

.bj-player-hands {
  display: flex;
}

.bj-player-hand {
  min-width: 0;
  position: relative;
  padding: 18px 2px 2px;
  border-radius: 14px;
  opacity: 0.58;
  transition: opacity 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.bj-player-hand.active {
  opacity: 1;
  background: rgba(98, 246, 255, 0.055);
  box-shadow: 0 0 18px rgba(98, 246, 255, 0.08);
}

.bj-player-hand.done {
  opacity: 0.72;
}

.bj-hand-badge {
  position: absolute;
  top: 2px;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  color: rgba(238, 246, 255, 0.55);
  font-size: 8px;
  font-weight: 700;
}

.bj-hand-cards {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-left: 48px;
}

.bj-card {
  --card-index: 0;
  --card-rotation: 0deg;
  width: 86px;
  height: 122px;
  margin-left: -48px;
  border-radius: 12px;
  padding: 7px;
  position: relative;
  flex: 0 0 auto;
  color: #101923;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.99), rgba(218, 235, 247, 0.97));
  border: 1px solid rgba(255, 255, 255, 0.88);
  box-shadow:
    0 14px 26px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  transform: rotate(var(--card-rotation));
  opacity: 1;
  transform-origin: 50% 100%;
  will-change: transform, opacity;
}

.bj-player .bj-card.deal-player {
  opacity: 0;
  animation: bjDealPlayer 860ms cubic-bezier(0.16, 0.82, 0.22, 1) forwards;
  animation-delay: calc(var(--card-index) * 230ms);
}

.bj-dealer .bj-card.deal-dealer {
  opacity: 0;
  animation: bjDealDealer 860ms cubic-bezier(0.16, 0.82, 0.22, 1) forwards;
  animation-delay: calc(var(--card-index) * 230ms + 115ms);
}

.bj-card.reveal-card {
  animation: bjRevealCard 820ms var(--ease-spring);
}

.bj-card.red {
  color: #df2d50;
}

.bj-card > strong {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font: 900 37px/1 serif;
}

.bj-card-corner {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: absolute;
  top: 7px;
  left: 7px;
  line-height: 0.92;
}

.bj-card-corner b {
  font-size: 17px;
}

.bj-card-corner i {
  font-style: normal;
  font-size: 14px;
}

.bj-card-corner.bottom {
  top: auto;
  left: auto;
  right: 7px;
  bottom: 7px;
  transform: rotate(180deg);
}

.bj-card.hidden {
  padding: 5px;
  background: linear-gradient(145deg, #142837, #08121c);
  border-color: rgba(98, 246, 255, 0.24);
}

.bj-card-back {
  width: 100%;
  height: 100%;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background:
    linear-gradient(45deg, rgba(98, 246, 255, 0.08) 25%, transparent 25% 75%, rgba(98, 246, 255, 0.08) 75%),
    linear-gradient(-45deg, rgba(85, 185, 255, 0.07) 25%, transparent 25% 75%, rgba(85, 185, 255, 0.07) 75%),
    #0b1823;
  background-size: 14px 14px;
  border: 1px solid rgba(98, 246, 255, 0.12);
}

.bj-card-back img {
  width: 63px;
  filter: drop-shadow(0 0 8px rgba(98, 246, 255, 0.28));
}

.bj-result {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 9;
  min-width: 190px;
  padding: 12px 18px;
  border-radius: 17px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, -50%) scale(0.85);
  background: rgba(8, 18, 27, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.36);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: opacity 220ms ease, visibility 220ms ease, transform 320ms var(--ease-spring);
}

.bj-result.visible {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, -50%) scale(1);
}

.bj-result strong {
  font-size: 17px;
}

.bj-result span {
  color: rgba(238, 246, 255, 0.52);
  font-size: 10px;
}

.bj-result.win strong {
  color: var(--cyan);
}

.bj-result.lose strong {
  color: #ff6484;
}

.bj-result.push strong {
  color: #ffe072;
}

.bj-rules {
  min-height: 43px;
  margin: 8px 0 10px;
  padding: 0 11px;
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: rgba(238, 246, 255, 0.44);
  background: rgba(255, 255, 255, 0.028);
  border: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 9px;
}

.bj-rules b {
  color: var(--cyan);
}

.bj-rules i {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(238, 246, 255, 0.2);
}

.bj-controls,
.bj-history-card {
  padding: 14px;
  border-radius: 23px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.015)),
    rgba(12, 19, 28, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.07);
  box-shadow: 0 15px 34px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(9px) saturate(145%);
  -webkit-backdrop-filter: blur(9px) saturate(145%);
}

.bj-bet-controls.hidden {
  display: none;
}

.bj-field-head {
  min-height: 23px;
  color: rgba(238, 246, 255, 0.52);
  font-size: 10px;
  font-weight: 700;
}

.bj-bet-row {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 48px;
  gap: 7px;
}

.bj-bet-row > button {
  height: 48px;
  border-radius: 14px;
  color: rgba(238, 246, 255, 0.72);
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 22px;
}

.bj-bet-row label {
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.bj-bet-row img {
  width: 21px;
  height: 21px;
}

.bj-bet-row input {
  width: 96px;
  border: 0;
  outline: 0;
  color: var(--text);
  background: transparent;
  text-align: center;
  font: 800 19px/1 Manrope, sans-serif;
  appearance: textfield;
  -moz-appearance: textfield;
}

.bj-bet-row input::-webkit-inner-spin-button,
.bj-bet-row input::-webkit-outer-spin-button {
  margin: 0;
  appearance: none;
  -webkit-appearance: none;
}

.bj-shortcuts {
  margin: 7px 0 10px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
}

.bj-shortcuts button {
  height: 31px;
  border-radius: 11px;
  color: rgba(238, 246, 255, 0.56);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 11px;
  font-weight: 700;
}

.bj-deal {
  width: 100%;
  height: 51px;
  padding: 0 12px 0 17px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #06141c;
  background: linear-gradient(135deg, var(--cyan), var(--cyan-2));
  box-shadow: 0 12px 28px rgba(48, 190, 255, 0.2);
  font-size: 14px;
  font-weight: 900;
}

.bj-deal > span:last-child {
  height: 31px;
  padding: 0 9px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  gap: 5px;
  background: rgba(255, 255, 255, 0.35);
}

.bj-deal img {
  width: 17px;
  height: 17px;
}

.bj-actions {
  display: none;
  grid-template-columns: repeat(4, 1fr);
  gap: 7px;
}

.bj-actions.visible {
  display: grid;
}

.bj-actions button {
  min-height: 64px;
  padding: 8px 4px;
  border-radius: 15px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  font-weight: 900;
}

.bj-actions span {
  font-size: 13px;
}

.bj-actions small {
  opacity: 0.55;
  font-size: 8px;
}

.bj-hit {
  color: #06141c;
  background: linear-gradient(135deg, var(--cyan), var(--cyan-2));
}

.bj-stand {
  color: #fff;
  background: linear-gradient(135deg, #ff6c83, #d93b62);
}

.bj-double {
  color: #06141c;
  background: linear-gradient(135deg, #ffdb68, #ff9f43);
}

.bj-split {
  color: #f5fcff;
  background: linear-gradient(135deg, #9b69ff, #536fff);
}

.bj-actions button:disabled {
  color: rgba(238, 246, 255, 0.28);
  background: rgba(255, 255, 255, 0.045);
}

.bj-offer {
  display: none;
  min-height: 146px;
  padding: 16px;
  border-radius: 18px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  text-align: center;
  background:
    linear-gradient(145deg, rgba(98, 246, 255, 0.08), rgba(255, 255, 255, 0.025)),
    rgba(9, 18, 27, 0.78);
  border: 1px solid rgba(98, 246, 255, 0.15);
  box-shadow:
    inset 1px 1px 4px rgba(255, 255, 255, 0.08),
    0 12px 28px rgba(0, 0, 0, 0.2);
}

.bj-offer.visible {
  display: flex;
  animation: gameTileIn 360ms var(--ease-spring);
}

.bj-offer > strong {
  color: var(--cyan);
  font-size: 16px;
}

.bj-offer > span {
  max-width: 290px;
  min-height: 29px;
  color: rgba(238, 246, 255, 0.52);
  font-size: 10px;
  line-height: 1.35;
}

.bj-offer > div {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 4px;
}

.bj-offer button {
  height: 42px;
  border-radius: 13px;
  color: rgba(238, 246, 255, 0.72);
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.07);
  font-size: 11px;
  font-weight: 800;
}

.bj-offer button:last-child {
  color: #06141c;
  background: linear-gradient(135deg, var(--cyan), var(--cyan-2));
}

.bj-offer button:disabled {
  color: rgba(238, 246, 255, 0.28);
  background: rgba(255, 255, 255, 0.045);
}

.bj-history-card {
  margin-top: 11px;
}

.bj-history-title {
  min-height: 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.bj-history-title h2 {
  margin: 0;
  font-size: 14px;
}

.bj-history-title span {
  min-width: 25px;
  height: 23px;
  padding: 0 7px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  color: var(--cyan);
  background: rgba(98, 246, 255, 0.08);
  font-size: 10px;
  font-weight: 800;
}

.bj-history-empty {
  padding: 22px 8px 12px;
  text-align: center;
  color: rgba(238, 246, 255, 0.35);
  font-size: 10px;
}

.bj-history-list {
  margin-top: 9px;
  display: grid;
  gap: 6px;
}

.bj-history-item {
  min-height: 42px;
  padding: 0 10px;
  border-radius: 13px;
  display: grid;
  grid-template-columns: 1fr 0.7fr 1fr;
  align-items: center;
  background: rgba(255, 255, 255, 0.035);
  color: rgba(238, 246, 255, 0.56);
  font-size: 10px;
}

.bj-history-item span {
  display: flex;
  align-items: center;
  gap: 4px;
}

.bj-history-item img {
  width: 14px;
  height: 14px;
}

.bj-history-item b {
  text-align: center;
  color: rgba(238, 246, 255, 0.82);
}

.bj-history-item strong {
  text-align: right;
  color: #ff6484;
}

.bj-history-item.win strong,
.bj-history-item.blackjack strong {
  color: var(--cyan);
}

.bj-history-item.push strong {
  color: #ffe072;
}

.bj-win-toast {
  position: fixed;
  top: max(74px, calc(env(safe-area-inset-top) + 62px));
  left: 50%;
  width: min(300px, calc(100% - 36px));
  min-height: 62px;
  padding: 9px 11px;
  border-radius: 21px;
  display: flex;
  align-items: center;
  gap: 9px;
  color: #f5fcff;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.035)),
    rgba(16, 24, 32, 0.48);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.34), 0 0 34px rgba(73, 186, 255, 0.2);
  backdrop-filter: blur(12px) saturate(165%);
  -webkit-backdrop-filter: blur(12px) saturate(165%);
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, -18px) scale(0.94);
  transition: opacity 220ms ease, visibility 220ms ease, transform 380ms var(--ease-spring);
  z-index: 40;
}

.bj-win-toast.visible {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0) scale(1);
}

.bj-win-toast img {
  width: 35px;
  height: 35px;
  filter: drop-shadow(0 0 8px rgba(255, 219, 104, 0.42));
}

.bj-win-toast span {
  flex: 1;
  font-size: 11px;
}

.bj-win-toast span b {
  display: block;
  margin-top: 2px;
  color: var(--cyan);
  font-size: 16px;
}

.bj-win-toast strong {
  height: 30px;
  padding: 0 9px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: #06141c;
  background: linear-gradient(135deg, var(--cyan), var(--cyan-2));
  font-size: 10px;
}

@keyframes bjDealPlayer {
  0% {
    opacity: 0;
    transform: translate(150px, -210px) rotate(24deg) scale(0.62);
    filter: blur(2px) brightness(1.3);
  }
  68% {
    opacity: 1;
    transform: translate(-4px, 7px) rotate(calc(var(--card-rotation) - 2deg)) scale(1.04);
    filter: blur(0) brightness(1.08);
  }
  100% {
    opacity: 1;
    transform: translate(0) rotate(var(--card-rotation)) scale(1);
    filter: none;
  }
}

@keyframes bjDealDealer {
  0% {
    opacity: 0;
    transform: translate(150px, 170px) rotate(-22deg) scale(0.62);
    filter: blur(2px) brightness(1.3);
  }
  68% {
    opacity: 1;
    transform: translate(-4px, -7px) rotate(calc(var(--card-rotation) + 2deg)) scale(1.04);
    filter: blur(0) brightness(1.08);
  }
  100% {
    opacity: 1;
    transform: translate(0) rotate(var(--card-rotation)) scale(1);
    filter: none;
  }
}

@keyframes bjRevealCard {
  0% {
    transform: rotate(var(--card-rotation)) rotateY(90deg) scale(0.94);
    filter: brightness(1.5);
  }
  55% {
    transform: rotate(var(--card-rotation)) rotateY(-9deg) scale(1.04);
  }
  100% {
    transform: rotate(var(--card-rotation)) rotateY(0) scale(1);
    filter: none;
  }
}

@media (max-width: 360px) {
  .bj-table {
    height: 405px;
  }

  .bj-card {
    width: 78px;
    height: 111px;
    margin-left: -44px;
  }

  .bj-actions {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  .bj-card,
  .bj-player .bj-card.deal-player,
  .bj-dealer .bj-card.deal-dealer,
  .bj-card.reveal-card {
    animation: none;
    opacity: 1;
    transform: none;
  }
}
