
:root {
  --bg0: #070a12;
  --bg1: #0b1020;
  --card: rgba(255, 255, 255, 0.06);
  --card2: rgba(255, 255, 255, 0.09);
  --border: rgba(255, 255, 255, 0.12);
  --text: rgba(255, 255, 255, 0.92);
  --muted: rgba(255, 255, 255, 0.68);
  --muted2: rgba(255, 255, 255, 0.52);
  --shadow: 0 18px 55px rgba(0, 0, 0, 0.55);
  --glow: 0 0 0 1px rgba(255, 255, 255, 0.08), 0 12px 48px rgba(0, 0, 0, 0.55);
  --primary: #66d4ff;
  --primary2: #8b5cf6;
  --primary3: #22c55e;
  --danger: #ff4d6d;
  --gold: #ffd166;
  --gold2: #f59e0b;
  --radius: 18px;
  --radius2: 24px;

  --redGlow: rgba(255, 40, 70, 0.12);
  --redDeep0: #050106;
  --redDeep1: #0a0208;
  --redPanel: #12060b;
  --redPanel2: #1a0a12;
}

.wheelWin {
  position: absolute;
  inset: 0;
  display: none;
  place-items: center;
  background: radial-gradient(360px 260px at 50% 45%, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0));
}

.wheelWinOpen {
  display: grid;
}

.wheelWinCard {
  width: min(320px, 78%);
  border-radius: 22px;
  padding: 14px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.06));
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.75);
  text-align: center;
  animation: winPop 520ms cubic-bezier(0.2, 1.3, 0.2, 1);
}

.wheelWinTitle {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.72);
  letter-spacing: 0.2px;
  text-transform: uppercase;
}

.wheelWinAmount {
  margin-top: 8px;
  font-weight: 950;
  letter-spacing: -0.4px;
  font-size: 30px;
}

.wheelWinImg {
  width: 100%;
  margin-top: 10px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.14);
}

@keyframes winPop {
  0% {
    opacity: 0;
    transform: translateY(10px) scale(0.92);
  }
  60% {
    opacity: 1;
    transform: translateY(0) scale(1.03);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  color: var(--text);
  background: radial-gradient(900px 600px at 18% 10%, var(--redGlow), transparent 60%),
    radial-gradient(900px 650px at 82% 22%, rgba(255, 70, 90, 0.08), transparent 62%),
    linear-gradient(180deg, var(--redDeep0), var(--redDeep1));
  overflow-x: hidden;
}

 body.isFalling {
  overflow: hidden;
 }

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

 a:hover,
 a:focus {
  text-decoration: none;
 }

.bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  background: transparent;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: none;
  background: var(--redDeep0);
  border-bottom: 0;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.topbarRight {
  display: flex;
  align-items: center;
  gap: 10px;
  position: relative;
}

@media (min-width: 721px) {
  .topbarRight .btn {
    height: 42px;
    padding: 10px 14px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.92);
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.10);
  }

  .topbarRight .btn:hover {
    background: rgba(255, 80, 105, 0.18);
    box-shadow: 0 18px 55px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 80, 105, 0.18);
  }

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

  .topbarRight .btnIcon {
    width: 30px;
    height: 30px;
    border-radius: 12px;
    display: inline-grid;
    place-items: center;
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.10);
  }
}

 .mobileMenu {
  position: absolute;
  right: 18px;
  top: calc(100% + 10px);
  width: min(240px, calc(100vw - 36px));
  padding: 10px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 70, 90, 0.10), rgba(0, 0, 0, 0) 50%), var(--redPanel);
  box-shadow: 0 22px 80px rgba(0, 0, 0, 0.72);
  display: none;
  z-index: 30;
 }

 .mobileMenuOpen {
  display: grid;
  gap: 8px;
 }

 .mobileMenuItem {
  width: 100%;
  border: 0;
  cursor: pointer;
  padding: 12px 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.92);
  font-weight: 900;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 10px;
 }

 .mobileMenuIcon {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.08);
 }

 .btnIcon {
  display: inline-grid;
  place-items: center;
 }

 .btnIcon svg,
 .mobileMenuIcon svg {
  display: block;
 }

 .topbarRight .btn,
 .mobileMenuItem {
  line-height: 1;
 }

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

 @media (max-width: 720px) {
  #btnMobileMenu {
    display: inline-flex;
  }

  #btnDeposit,
  #btnWithdrawOpen,
  #btnAccount,
  #btnHome {
    display: none;
  }
 }

 .topbarBalance {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--redPanel);
  color: rgba(255, 255, 255, 0.92);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 60, 90, 0.08);
 }

 .topbarBalanceLabel {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.62);
 }

 .topbarBalanceValue {
  font-weight: 900;
  letter-spacing: -0.2px;
 }

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brandMark {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  background: transparent;
  box-shadow: none;
  overflow: hidden;
  display: grid;
  place-items: center;
}

 .brandLogo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
 }

.brandTitle {
  font-weight: 750;
  letter-spacing: 0.2px;
}

.brandSub {
  font-size: 12px;
  color: var(--muted2);
  margin-top: 2px;
}

.app {
  max-width: 1120px;
  margin: 0 auto;
  --appPadTop: 26px;
  padding: var(--appPadTop) 18px 0;
}

 .homeActions {
  margin-top: 16px;
  display: flex;
  justify-content: center;
 }

 .homeActions .btn {
  width: min(520px, 100%);
 }

 .fab {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 20;
  border: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 90, 110, 0.22), rgba(0, 0, 0, 0) 52%), var(--redPanel2);
  color: rgba(255, 255, 255, 0.92);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(255, 60, 90, 0.14);
 }

 .fabIcon {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.10);
 }

 .fabText {
  font-weight: 900;
  letter-spacing: -0.2px;
 }

 body.isFalling .fab {
  display: none;
 }

 body[data-screen="shop"] .fab,
 body[data-screen="withdraw"] .fab {
  display: none;
 }

 .withdrawPanel {
  display: grid;
  gap: 14px;
 }

 .withdrawForm {
  padding: 14px;
  border-radius: var(--radius2);
  background: var(--redPanel);
  box-shadow: var(--shadow);
 }

 .field {
  display: grid;
  gap: 8px;
  margin-bottom: 12px;
 }

 .fieldLabel {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.72);
 }

 .input {
  width: 100%;
  border: 0;
  outline: none;
  border-radius: 14px;
  padding: 12px 12px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.92);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.10);
 }

 .input::placeholder {
  color: rgba(255, 255, 255, 0.45);
 }

 body.isFalling .app {
  height: calc(100svh - 72px);
  padding: 0;
  padding-bottom: 0;
  overflow: hidden;
 }

 @supports (height: 100dvh) {
  body.isFalling .app {
    height: calc(100dvh - 72px);
  }
 }

 body.isFalling footer.footer {
  display: none;
 }

 @media (max-width: 980px) {
  #screenFalling.screenActive {
    min-height: 100svh;
  }

  @supports (height: 100dvh) {
    #screenFalling.screenActive {
      min-height: 100dvh;
    }
  }
 }

.screen {
  display: none;
  animation: screenIn 240ms ease-out;
}

.screenActive {
  display: block;
  padding-bottom: 22px;
}

 .screenActive {
  min-height: calc(100svh - 72px + 260px);
 }

 @supports (height: 100dvh) {
  .screenActive {
    min-height: calc(100dvh - 72px + 260px);
  }
 }

 #screenFalling.screenActive {
  min-height: calc(100svh - 72px);
  display: flex;
  flex-direction: column;
  gap: 14px;
  overflow: hidden;
 }

 @supports (height: 100dvh) {
  #screenFalling.screenActive {
    min-height: calc(100dvh - 72px);
  }
 }

 #screenFalling .screenHeader {
  margin-bottom: 0;
  padding: 14px 14px 0;
 }

 #screenFalling .gamePanel {
  flex: 1;
  min-height: 0;
 }

 #screenFalling .fallCanvasWrap {
  height: 100%;
  min-height: 0;
 }

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

.hero {
  padding: 18px 4px 10px;
}

.heroBanner {
  position: relative;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  margin-top: calc(-1 * var(--appPadTop));
  border-bottom: 1px solid rgba(255, 255, 255, 0.10);
  overflow: hidden;
}

.heroBannerImg {
  width: 100%;
  height: min(420px, 52vh);
  max-height: 520px;
  object-fit: cover;
  display: block;
  filter: saturate(1.08) contrast(1.06);
}

.heroBannerOverlay {
  position: absolute;
  inset: 0;
  display: grid;
  align-content: center;
  gap: 10px;
  padding: 22px 18px;
  background: radial-gradient(900px 420px at 18% 30%, rgba(7, 10, 18, 0.80), rgba(7, 10, 18, 0.25) 55%, rgba(7, 10, 18, 0.0) 70%),
    linear-gradient(180deg, rgba(7, 10, 18, 0.55), rgba(7, 10, 18, 0.15));
}

.heroBannerOverlay .h1 {
  max-width: 16ch;
}

 @media (max-width: 560px) {
  .heroBannerOverlay .h1 {
    padding-top: 12px;
  }
 }

.heroBannerOverlay .subtitle {
  max-width: 60ch;
}

.subtitle2 {
  margin-top: 10px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 13px;
}

.heroCtas {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.btnCommunity {
  padding: 10px 14px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06), 0 22px 70px rgba(0, 0, 0, 0.55);
}

 .btnIcon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
 }

.heroKicker {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.66);
  letter-spacing: 0.2px;
}

.heroBadges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.86);
  font-size: 12px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.heroPreview {
  position: relative;
  border-radius: 26px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06), 0 26px 110px rgba(0, 0, 0, 0.72);
}

.heroPreviewGlow {
  position: absolute;
  inset: -30%;
  background: radial-gradient(500px 320px at 30% 30%, rgba(255, 209, 102, 0.22), transparent 55%),
    radial-gradient(520px 340px at 70% 35%, rgba(102, 212, 255, 0.22), transparent 60%),
    radial-gradient(520px 360px at 55% 80%, rgba(139, 92, 246, 0.18), transparent 62%);
  pointer-events: none;
}

.heroPreviewImg {
  width: 100%;
  height: 270px;
  object-fit: cover;
  display: block;
  filter: saturate(1.08) contrast(1.06);
}

.h1 {
  margin: 0;
  font-size: clamp(26px, 3.4vw, 44px);
  letter-spacing: -0.6px;
}

.subtitle {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 15px;
  max-width: 66ch;
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 12px;
  color: rgba(255, 255, 255, 0.9);
}

.cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 16px;
  margin-bottom: 22px;
  justify-items: center;
}

.card {
  text-align: left;
  padding: 0;
  border-radius: var(--radius2);
  background: var(--redPanel);
  border: 0;
  box-shadow: 0 16px 60px rgba(0, 0, 0, 0.65);
  color: var(--text);
  cursor: pointer;
  transition: transform 140ms ease, border-color 140ms ease, background 140ms ease;
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-rows: auto 1fr;
  aspect-ratio: 1 / 1;
  width: min(360px, 100%);
}

.card::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(520px 240px at 20% 0%, rgba(255, 209, 102, 0.14), transparent 55%),
    radial-gradient(520px 260px at 80% 15%, rgba(102, 212, 255, 0.14), transparent 58%);
  opacity: 0.75;
}

.card:hover {
  transform: translateY(-2px);
  background: var(--redPanel2);
}

.gameCardContent {
  position: relative;
  z-index: 1;
  display: grid;
  align-content: start;
  gap: 10px;
  margin-top: 0;
  padding: 14px 16px 16px;
  border-radius: 0;
  background: var(--redPanel2);
}

.gameCardTitle {
  font-weight: 900;
  letter-spacing: -0.3px;
  font-size: 18px;
}

.gameCardDesc {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.gameCardCta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  width: 100%;
  border-radius: 16px;
  border: 1px solid rgba(255, 209, 102, 0.7);
  background: linear-gradient(135deg, rgba(255, 209, 102, 0.92), rgba(102, 212, 255, 0.62));
  color: rgba(7, 10, 18, 0.92);
  font-weight: 860;
  letter-spacing: 0.15px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06), 0 18px 60px rgba(0, 0, 0, 0.55);
  margin-top: auto;
}

.card:hover .gameCardCta {
  filter: brightness(1.03) saturate(1.05);
}

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

.gameCardImg {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
  filter: saturate(1.06) contrast(1.06);
  border-radius: 0;
  overflow: hidden;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.wheelWrap {
  display: grid;
  place-items: center;
  width: 100%;
  max-width: 620px;
  margin: 0 auto;
}

.wheelWrap::before {
  content: '';
  position: absolute;
  inset: 10px;
  border-radius: 999px;
  border: 2px solid rgba(255, 209, 102, 0.22);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08), 0 0 34px rgba(245, 158, 11, 0.14);
  pointer-events: none;
}

.wheelPointer {
  border-top-color: rgba(255, 209, 102, 0.95);
}

.wheelCenterBtn {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 128px;
  height: 128px;
  border-radius: 999px;
  border: 1px solid rgba(255, 209, 102, 0.42);
  background: radial-gradient(50% 50% at 30% 30%, rgba(255, 255, 255, 0.18), rgba(0, 0, 0, 0)),
    linear-gradient(180deg, rgba(255, 209, 102, 0.26), rgba(139, 92, 246, 0.14));
  color: rgba(255, 255, 255, 0.95);
  font-weight: 950;
  letter-spacing: 1.6px;
  cursor: pointer;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08), 0 20px 60px rgba(0, 0, 0, 0.7), 0 0 38px rgba(245, 158, 11, 0.18);
  backdrop-filter: blur(10px);
  animation: spinPulse 1.8s ease-in-out infinite;
}

.wheelCenterBtn:hover {
  border-color: rgba(255, 209, 102, 0.65);
}

.wheelCenterBtn:active {
  transform: translate(-50%, -50%) scale(0.98);
}

.wheelCenterBtn:disabled {
  opacity: 0.8;
  cursor: default;
  animation: none;
}

@keyframes spinPulse {
  0% {
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08), 0 20px 60px rgba(0, 0, 0, 0.7), 0 0 26px rgba(245, 158, 11, 0.18);
  }
  50% {
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1), 0 22px 70px rgba(0, 0, 0, 0.72), 0 0 42px rgba(245, 158, 11, 0.26);
  }
  100% {
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08), 0 20px 60px rgba(0, 0, 0, 0.7), 0 0 26px rgba(245, 158, 11, 0.18);
  }
}

.card:active {
  transform: translateY(0);
}

.cardTop {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
}

.cardIcon {
  width: 38px;
  height: 38px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-size: 18px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.cardTitle {
  font-weight: 760;
  letter-spacing: 0.1px;
  font-size: 16px;
}

.cardBody {
  margin-top: 10px;
  color: var(--muted);
  line-height: 1.45;
  font-size: 14px;
}

.cardCta {
  margin-top: 14px;
  font-weight: 740;
  color: rgba(102, 212, 255, 0.95);
}

.footerHint {
  margin-top: 16px;
  color: var(--muted2);
  font-size: 12px;
}

.btn {
  border: 0;
  border-radius: 14px;
  padding: 10px 14px;
  font-weight: 720;
  letter-spacing: 0.1px;
  cursor: pointer;
  background: var(--redPanel2);
  color: rgba(255, 255, 255, 0.92);
  transition: transform 120ms ease, background 120ms ease, border-color 120ms ease;
  user-select: none;
  text-decoration: none;
}

.btn:focus-visible,
.card:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(102, 212, 255, 0.18), 0 0 0 1px rgba(102, 212, 255, 0.35);
}

.btn:hover {
  background: rgba(255, 80, 105, 0.16);
}

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

.btnPrimary {
  background: #ffd166;
  color: rgba(7, 10, 18, 0.95);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.55);
}

.btnPrimary:hover {
  background: #ffdf88;
}

.btnGhost {
  background: rgba(255, 255, 255, 0.08);
}

.btnSoft {
  background: #22c55e;
  color: rgba(7, 10, 18, 0.95);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.55);
}

.btnSoft:hover {
  background: #3be477;
}

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

.screenTitle {
  font-size: 18px;
  font-weight: 780;
  letter-spacing: 0.1px;
}

.hud {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.hudItem {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 14px;
  background: var(--redPanel);
  border: 0;
}

.hudLabel {
  font-size: 12px;
  color: var(--muted2);
}

.hudValue {
  font-size: 16px;
  font-weight: 800;
  white-space: nowrap;
}

.gamePanel {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 14px;
  align-items: start;
}

 #screenFalling .gamePanel {
  grid-template-columns: 1fr;
 }

 #screenFalling .fallCanvasWrap {
  width: 100%;
 }

.wheelWrap,
.fallCanvasWrap {
  padding: 14px;
  border-radius: var(--radius2);
  background: var(--redPanel);
  border: 0;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.wheelWrap {
  display: grid;
  place-items: center;
}

.fallCanvasWrap {
  display: grid;
  place-items: center;
  padding: 0;
  background: linear-gradient(180deg, rgba(255, 70, 90, 0.08), rgba(0, 0, 0, 0) 35%), var(--redPanel);
  box-shadow: 0 18px 70px rgba(0, 0, 0, 0.7);
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  margin: 0;
}

.fallCanvasWrap canvas {
  display: block;
  touch-action: none;
}

.wheelWrap,
.fallCanvasWrap {
  padding: 14px;
  border-radius: var(--radius2);
  background: var(--redPanel);
  border: 0;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.wheelWrap {
  display: grid;
  place-items: center;
}

.wheelPointer {
  position: absolute;
  left: 50%;
  top: 10px;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 12px solid transparent;
  border-right: 12px solid transparent;
  border-top: 18px solid rgba(255, 209, 102, 0.95);
  filter: drop-shadow(0 10px 10px rgba(0, 0, 0, 0.55));
  z-index: 2;
}

.shake {
  animation: shake 420ms cubic-bezier(0.2, 0.9, 0.2, 1);
}

@keyframes shake {
  0% {
    transform: translate3d(0, 0, 0);
  }
  15% {
    transform: translate3d(-6px, 0, 0);
  }
  30% {
    transform: translate3d(6px, 0, 0);
  }
  45% {
    transform: translate3d(-4px, 0, 0);
  }
  60% {
    transform: translate3d(4px, 0, 0);
  }
  100% {
    transform: translate3d(0, 0, 0);
  }
}

canvas {
  width: 100%;
  height: auto;
  display: block;
  image-rendering: auto;
}

.wheelSide {
  display: grid;
  gap: 12px;
}

 @media (min-width: 981px) {
  .wheelSide {
    position: sticky;
    top: 76px;
  }
 }

.wheelSide .actions {
  padding: 12px;
  border-radius: var(--radius2);
  background: var(--redPanel);
  border: 0;
  box-shadow: 0 16px 60px rgba(0, 0, 0, 0.55);
}

.resultCard {
  padding: 14px;
  border-radius: var(--radius2);
  background: var(--redPanel);
  border: 0;
  box-shadow: var(--shadow);
}

.resultTitle {
  font-size: 12px;
  color: var(--muted2);
}

.resultMain {
  margin-top: 8px;
  font-size: 28px;
  font-weight: 900;
  letter-spacing: -0.4px;
}

.resultImg {
  width: 100%;
  margin-top: 10px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: none;
}

.actions {
  display: grid;
  gap: 10px;
}

.actions + .actions {
  margin-top: 10px;
}

.actions .btn {
  justify-content: center;
}

.shopPanel {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 14px;
  align-items: start;
}

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

.shopPack {
  text-align: left;
  padding: 14px;
  border-radius: var(--radius2);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.10), rgba(255, 255, 255, 0.05));
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06), 0 18px 70px rgba(0, 0, 0, 0.62);
  color: var(--text);
  cursor: pointer;
  transition: transform 140ms ease, border-color 140ms ease, background 140ms ease;
}

.shopPack:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 209, 102, 0.38);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.055));
}

.shopPackTop {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.shopPackTitle {
  font-weight: 900;
  letter-spacing: -0.3px;
  font-size: 18px;
}

.shopPackPrice {
  font-weight: 900;
  color: rgba(255, 209, 102, 0.95);
}

.shopPackSub {
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
}

.micro {
  color: var(--muted2);
  font-size: 12px;
  line-height: 1.35;
}

.rules {
  margin-top: 10px;
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.modal {
  position: fixed;
  inset: 0;
  display: none;
  place-items: center;
  background: radial-gradient(900px 500px at 50% 15%, rgba(255, 40, 70, 0.18), transparent 60%),
    rgba(0, 0, 0, 0.78);
  backdrop-filter: none;
  z-index: 50;
  padding: 18px;
}

.modalOpen {
  display: grid;
}

.modalCard {
  width: min(420px, 92vw);
  border-radius: 26px;
  padding: 18px;
  background: linear-gradient(180deg, rgba(255, 70, 90, 0.10), rgba(0, 0, 0, 0) 50%), var(--redPanel);
  border: 0;
  box-shadow: 0 30px 110px rgba(0, 0, 0, 0.8);
  text-align: center;
}

.modalTitle {
  font-size: 22px;
  font-weight: 950;
  letter-spacing: -0.2px;
}

.modalText {
  margin-top: 10px;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.45;
  white-space: pre-line;
}

.modalActions {
  margin-top: 14px;
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

 .modalActions .btn {
  min-width: 140px;
 }

 @media (max-width: 520px) {
  .modalActions {
    display: grid;
  }
  .modalActions .btn {
    width: 100%;
  }
 }

.touchHint {
  position: absolute;
  left: 14px;
  bottom: 14px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.82);
  background: rgba(255, 70, 90, 0.16);
  border: 0;
  border-radius: 999px;
  padding: 8px 12px;
  pointer-events: none;
}

.footer {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  margin-top: 0;
  padding: 26px 18px;
  background: var(--redDeep0);
  border-top: 1px solid rgba(255, 255, 255, 0.10);
  margin-bottom: 0;
  position: relative;
  z-index: 1;
  overflow: hidden;
}

 .footerGrid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 0.8fr;
  gap: 14px;
  padding: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
 }

.footerCol {
  display: grid;
  gap: 10px;
  align-content: start;
}

.footerBrand {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 860;
  letter-spacing: 0.2px;
}

 .footerLogo {
  height: 32px;
  width: auto;
  display: block;
  object-fit: contain;
 }

.footerTitle {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.72);
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

.footerNote {
  color: rgba(255, 255, 255, 0.62);
  line-height: 1.45;
}

.footerLinks {
  display: grid;
  gap: 8px;
}

.footerLink {
  font: inherit;
  color: rgba(255, 255, 255, 0.86);
  padding: 8px 0;
  border-radius: 0;
  background: transparent;
  border: 0;
  text-align: left;
  cursor: pointer;
}

.footerLink:hover {
  color: rgba(255, 209, 102, 0.92);
}

.footerBottom {
  margin-top: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.55);
}

@media (max-width: 980px) {
  .gamePanel {
    grid-template-columns: 1fr;
  }

  .wheelWrap {
    max-width: 560px;
  }

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

@media (max-width: 520px) {
  .wheelCenterBtn {
    width: 108px;
    height: 108px;
    letter-spacing: 1.2px;
  }

  .wheelPointer {
    top: 8px;
    border-left-width: 10px;
    border-right-width: 10px;
    border-top-width: 16px;
  }
}

@media (max-width: 720px) {
  .cards {
    grid-template-columns: 1fr;
  }

  .heroBannerImg {
    height: 600px;
  }

  .heroBannerOverlay {
    padding: 60px 18px;
    align-content: start;
  }
  .topbar {
    padding: 12px 14px;
  }
  .app {
    --appPadTop: 18px;
    padding: var(--appPadTop) 14px 0;
  }

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

@media (prefers-reduced-motion: reduce) {
  .screen {
    animation: none;
  }
  .card,
  .btn {
    transition: none;
  }
}

/* Auth Styles */
.authForm {
  margin-top: 16px;
}

.authTabs {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
}

.authTab {
  flex: 1;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.72);
  border-radius: 12px;
  cursor: pointer;
  transition: all 140ms ease;
}

.authTabActive {
  background: var(--gold);
  color: rgba(7, 10, 18, 0.95);
  border-color: var(--gold);
}

.authPanel {
  display: none;
}

.authPanelActive {
  display: grid;
  gap: 12px;
}

.authForm .field {
  margin-bottom: 12px;
}

.profileInfo {
  display: grid;
  gap: 12px;
  margin-top: 10px;
}

.profileLoading {
  color: var(--muted);
  font-style: italic;
}

.profileItem {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.profileLabel {
  color: var(--muted2);
  font-size: 13px;
}

.profileValue {
  color: var(--text);
  font-weight: 600;
}

/* Withdraw Calculation Styles */
.withdrawCalculation {
  margin-top: 12px;
  padding: 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.10);
}

.calculationItem {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
}

.calculationLabel {
  color: var(--muted2);
  font-size: 13px;
}

.calculationValue {
  color: var(--gold);
  font-weight: 700;
  font-size: 14px;
}

.withdrawWarning {
  border-radius: 12px;
  background: rgba(255, 77, 109, 0.08);
  border: 1px solid rgba(255, 77, 109, 0.20);
  padding: 12px;
}

/* Falling Game Bet Dialog Styles */
.fallingBetDialog {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1000;
  display: none;
}

.betDialogOverlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.betDialogContent {
  background: var(--surface);
  border-radius: 20px;
  padding: 32px;
  max-width: 400px;
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.10);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.betDialogTitle {
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 16px;
  text-align: center;
}

.betDialogInfo {
  margin-bottom: 24px;
  text-align: center;
  color: var(--muted1);
  font-size: 14px;
  line-height: 1.5;
}

.betDialogInfo strong {
  color: var(--gold);
  font-weight: 600;
}

.betDialogForm {
  margin-bottom: 24px;
}

.betDialogActions {
  display: flex;
  gap: 12px;
  justify-content: center;
}

.fallingBetDialog.active {
  display: block;
}
