/* Scorpion Arena — final mobile layout contract.
   This file is intentionally loaded last. Older visual layers may style the
   product, but they must not alter viewport geometry or navigation chrome. */
:root {
  --arena-screen-h: var(--arena-vh, 100dvh);
  --arena-top-inset: max(var(--arena-safe-top, 0px), env(safe-area-inset-top));
  --arena-bottom-inset: max(var(--arena-safe-bottom, 0px), env(safe-area-inset-bottom));
  --arena-layout-width: 600px;
  --arena-layout-pad: clamp(10px, 3.2vw, 14px);
  --arena-nav-height: 70px;
}

/* Telegram fullscreen paints Close and the overflow menu over the WebView.
   Current clients publish contentSafeAreaInset; 96px is the conservative
   fallback for clients that briefly report zero while entering fullscreen. */
@media (max-width: 700px) {
  html.tg-is-fullscreen {
    --arena-top-inset: max(
      var(--arena-safe-top, 0px),
      env(safe-area-inset-top),
      96px
    );
  }
}

html,
body {
  width: 100%;
  max-width: 100%;
  min-height: var(--arena-screen-h);
  margin: 0;
  overflow-x: clip !important;
}

body {
  padding-bottom: calc(104px + var(--arena-bottom-inset)) !important;
}

.app {
  width: min(100%, var(--arena-layout-width)) !important;
  max-width: 100% !important;
  margin-inline: auto !important;
  padding: calc(8px + var(--arena-top-inset)) var(--arena-layout-pad)
    calc(112px + var(--arena-bottom-inset)) !important;
}

.topbar {
  box-sizing: border-box !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  top: var(--arena-top-inset) !important;
  margin: 0 0 12px !important;
}

.topbar > *,
.topbar-actions,
.brand,
.hero,
.section,
.games-grid,
.games-pro-grid,
.wallet,
.wp-wrap,
.pp-wrap,
.gift-shell,
.ag2-panel,
.wwg-root {
  min-width: 0 !important;
  max-width: 100% !important;
}

/* Keep balance, deposit and profile in one bounded header row. */
.topbar-actions .stars-ton-launcher,
html[data-lux-scene="home"] .topbar-actions .stars-ton-launcher {
  position: static !important;
  inset: auto !important;
  z-index: auto !important;
  flex: 0 0 43px !important;
  width: 43px !important;
  min-width: 43px !important;
  height: 43px !important;
  margin: 0 !important;
  border-radius: 14px !important;
}

.topbar-actions .mobile-header-balance {
  flex: 1 1 auto !important;
  min-width: 72px !important;
  max-width: 112px !important;
}

/* The Telegram phone header only has room for the identity, balance,
   deposit and profile controls. Motion and notifications remain available
   from their full-screen panels; keeping them here caused the brand and TON
   amount to overlap on 390–430px devices. */
@media (max-width: 700px) {
  .topbar {
    overflow: hidden !important;
  }

  .topbar .brand {
    flex: 1 1 92px !important;
    overflow: hidden !important;
  }

  .topbar-actions {
    flex: 0 1 auto !important;
    overflow: hidden !important;
  }

  .topbar-actions .motion-toggle,
  .topbar-actions .launch-notification-button {
    display: none !important;
  }

  .topbar-actions .mobile-header-balance {
    flex: 0 1 100px !important;
    width: auto !important;
    min-width: 72px !important;
    max-width: 100px !important;
    padding-inline: 7px !important;
  }

  .topbar-actions .mobile-header-balance > b {
    max-width: 50px !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }
}

@media (max-width: 430px) {
  .topbar {
    gap: 6px !important;
  }

  .topbar .brand-logo {
    width: 38px !important;
    height: 38px !important;
    flex-basis: 38px !important;
  }

  .topbar .brand-title {
    display: block !important;
    max-width: 100px !important;
    font-size: 11px !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }

  .topbar .brand-title-suffix {
    display: none !important;
  }

  .topbar .brand-subtitle,
  .topbar-actions .motion-toggle,
  .topbar-actions .launch-notification-button {
    display: none !important;
  }
}

@media (max-width: 360px) {
  .topbar .brand {
    flex: 0 0 38px !important;
  }

  .topbar .brand > :last-child {
    display: none !important;
  }

  .topbar-actions .mobile-header-balance {
    max-width: 92px !important;
  }
}

/* Full-screen routes always use the real Telegram viewport. */
#akMainSections,
.gift-center,
#arenaGamesV2Root {
  position: fixed !important;
  inset: 0 !important;
  box-sizing: border-box !important;
  width: 100% !important;
  max-width: 100vw !important;
  height: var(--arena-screen-h) !important;
  min-height: var(--arena-screen-h) !important;
  max-height: var(--arena-screen-h) !important;
  margin: 0 !important;
  overflow-x: clip !important;
}

#akMainSections {
  padding: calc(10px + var(--arena-top-inset)) var(--arena-layout-pad)
    calc(108px + var(--arena-bottom-inset)) !important;
  overflow-y: auto !important;
  overscroll-behavior: contain;
  scroll-padding-top: calc(74px + var(--arena-top-inset));
  scroll-padding-bottom: calc(108px + var(--arena-bottom-inset));
}

#akMainSections > * {
  width: min(100%, var(--arena-layout-width)) !important;
  margin-inline: auto !important;
}

.ak2-head {
  top: 0 !important;
  min-height: 54px !important;
}

.ak2-tabs {
  top: 66px !important;
}

.gift-shell {
  box-sizing: border-box !important;
  width: min(100%, var(--arena-layout-width)) !important;
  height: var(--arena-screen-h) !important;
  margin-inline: auto !important;
  padding: calc(10px + var(--arena-top-inset)) var(--arena-layout-pad)
    calc(108px + var(--arena-bottom-inset)) !important;
  overflow-x: clip !important;
  overflow-y: auto !important;
  overscroll-behavior: contain;
}

/* The native Telegram controls remain taller while a group-call banner is
   visible. Keep the Gift heading fully below them, even when the client emits
   a transient zero contentSafeAreaInset during fullscreen restoration. */
@media (max-width: 700px) {
  html.tg-is-fullscreen .gift-shell {
    padding-top: calc(18px + var(--arena-top-inset)) !important;
  }

  .gift-head {
    scroll-margin-top: var(--arena-top-inset) !important;
  }

  .gift-grid.gift-grid-single {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .gift-grid-single .gift-card {
    display: grid !important;
    grid-template-columns: minmax(118px, 42%) minmax(0, 1fr) !important;
    grid-template-rows: auto auto 1fr !important;
    column-gap: 14px !important;
    align-items: start !important;
    padding: 12px !important;
  }

  .gift-grid-single .gift-art {
    grid-column: 1 !important;
    grid-row: 1 / 4 !important;
    height: 176px !important;
  }

  .gift-grid-single .gift-card-title-row,
  .gift-grid-single .gift-card-meta,
  .gift-grid-single .gift-details {
    grid-column: 2 !important;
    min-width: 0 !important;
  }

  .gift-grid-single .gift-card-title-row {
    margin-top: 4px !important;
  }

  .gift-media-placeholder {
    color: rgba(255,255,255,.58) !important;
    font-size: 30px !important;
    text-shadow: 0 0 24px rgba(255,255,255,.24) !important;
  }
}

@media (max-width: 350px) {
  .gift-grid-single .gift-card {
    grid-template-columns: 1fr !important;
  }

  .gift-grid-single .gift-art,
  .gift-grid-single .gift-card-title-row,
  .gift-grid-single .gift-card-meta,
  .gift-grid-single .gift-details {
    grid-column: 1 !important;
    grid-row: auto !important;
  }
}

/* Gift details live below Telegram's native Back/menu row. The collectible is
   intentionally compact so the ownership and value table remains visible on
   a 667px phone without making the user hunt for the primary action. */
.gift-detail {
  box-sizing: border-box !important;
  padding: calc(8px + var(--arena-top-inset)) var(--arena-layout-pad)
    calc(8px + var(--arena-bottom-inset)) !important;
}

.gift-detail-sheet {
  max-height: calc(
    var(--arena-screen-h) - var(--arena-top-inset) -
    var(--arena-bottom-inset) - 16px
  ) !important;
}

.gift-detail-hero {
  padding: 20px 18px 18px !important;
}

.gift-detail-art {
  width: clamp(126px, 38vw, 154px) !important;
  height: clamp(126px, 38vw, 154px) !important;
}

.gift-detail-hero.has-symbol-backdrop::before {
  opacity: .22 !important;
  background-size: 38px 38px !important;
  filter: saturate(.45) brightness(1.45) !important;
}

.gift-telegram-link {
  position: relative !important;
  inset: auto !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  min-height: 42px !important;
  margin: 14px auto 0 !important;
  padding: 0 18px !important;
  background: rgba(10,12,17,.68) !important;
}

.gift-detail-close {
  top: 12px !important;
  left: 12px !important;
  width: 42px !important;
  height: 42px !important;
}

/* Text follows the selected locale, while identifiers, TON amounts and game
   geometry keep their stable left-to-right representation. */
html[dir="rtl"] body,
html[dir="rtl"] button,
html[dir="rtl"] input {
  font-family: system-ui, -apple-system, "Segoe UI", Tahoma, sans-serif !important;
}

html[dir="rtl"] .gift-detail-table,
html[dir="rtl"] .gift-card,
html[dir="rtl"] .wp-wrap,
html[dir="rtl"] .pp-wrap,
html[dir="rtl"] .ak2-panel {
  text-align: right !important;
}

html[dir="rtl"] .gift-number,
html[dir="rtl"] [data-gift-value],
html[dir="rtl"] .wwg-value,
html[dir="rtl"] input[type="number"],
html[dir="rtl"] code,
html[dir="rtl"] pre {
  direction: ltr !important;
  unicode-bidi: isolate !important;
}

/* Balanced is the default mobile performance profile. Gameplay motion stays
   intact; only decorative infinite work and expensive glass blur are reduced. */
html[data-performance="balanced"] body::before,
html[data-performance="balanced"] .arena-embers,
html[data-performance="balanced"] .lux-atmosphere,
html[data-performance="balanced"] .lux-atmosphere::before,
html[data-performance="balanced"] .lux-atmosphere::after,
html[data-performance="balanced"] .lux-particle,
html[data-performance="balanced"] .motion-scene,
html[data-performance="balanced"] .hero::after,
html[data-performance="balanced"] .gp-hero::after,
html[data-performance="balanced"] .gift-art::before,
html[data-performance="balanced"] .gift-art::after,
html[data-performance="balanced"] .gift-detail-hero::before {
  animation: none !important;
}

html[data-performance="balanced"] .bottom-nav,
html[data-performance="balanced"] .topbar,
html[data-performance="balanced"] .gift-head,
html[data-performance="balanced"] .ak2-head,
html[data-performance="balanced"] .ak2-tabs {
  backdrop-filter: blur(10px) !important;
}

html[data-performance="balanced"] :where(
  .glass-card,
  .stat-card,
  .ak2-card,
  .wp-card,
  .pp-card,
  .gp-stat,
  .wp-action,
  .gp-card .game-icon
) {
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
}

/* These two images belong to cards below the opening viewport. Their CSS
   backgrounds are enabled shortly after the first frame by arena-luxury-v4. */
html:not([data-home-game-art="ready"]) :where(
  .game-card-dice-duel .game-card-art,
  .game-card[data-game="dice-duel"],
  .game-card[data-gp-game="dice-duel"],
  .game-card-pvp-duel .game-card-art,
  .game-card[data-game="pvp-duel"],
  .game-card[data-gp-game="pvp-duel"]
) {
  background-image: none !important;
}

html[data-performance="lite"] .arena-atmosphere,
html[data-performance="lite"] .lux-atmosphere,
html[data-performance="lite"] .motion-scene {
  display: none !important;
}

html[data-performance="lite"] *,
html[data-performance="lite"] *::before,
html[data-performance="lite"] *::after {
  scroll-behavior: auto !important;
}

html[data-performance="lite"] .bottom-nav,
html[data-performance="lite"] .topbar,
html[data-performance="lite"] .gift-head,
html[data-performance="lite"] .ak2-head,
html[data-performance="lite"] .ak2-tabs {
  backdrop-filter: none !important;
}

/* Dice and Wheel each own exactly one vertical scroll container. */
#arenaGamesV2Root {
  align-items: stretch !important;
  justify-content: center !important;
  padding: 0 !important;
  overflow: hidden !important;
}

#arenaGamesV2Root:not([data-active-game="pvp-duel"]) .ag2-panel {
  box-sizing: border-box !important;
  width: min(100%, var(--arena-layout-width)) !important;
  height: var(--arena-screen-h) !important;
  min-height: var(--arena-screen-h) !important;
  max-height: var(--arena-screen-h) !important;
  margin: 0 auto !important;
  padding: calc(10px + var(--arena-top-inset)) var(--arena-layout-pad)
    calc(28px + var(--arena-bottom-inset)) !important;
  overflow-x: clip !important;
  overflow-y: auto !important;
  overscroll-behavior: contain;
  animation: none !important;
  transform: none !important;
}

#arenaGamesV2Root:not([data-active-game="pvp-duel"]) .ag2-header {
  position: sticky !important;
  top: 0 !important;
  z-index: 40 !important;
  width: 100% !important;
  margin: 0 0 12px !important;
}

#arenaGamesV2Root[data-active-game="pvp-duel"] .ag2-panel,
#arenaGamesV2Root[data-active-game="pvp-duel"] #ag2PvpView,
#arenaGamesV2Root[data-active-game="pvp-duel"] #ag2WheelView,
#arenaGamesV2Root[data-active-game="pvp-duel"] .wwg-root {
  box-sizing: border-box !important;
  width: min(100%, var(--arena-layout-width)) !important;
  height: var(--arena-screen-h) !important;
  min-height: var(--arena-screen-h) !important;
  max-height: var(--arena-screen-h) !important;
  margin: 0 auto !important;
}

#arenaGamesV2Root[data-active-game="pvp-duel"] .ag2-panel {
  overflow: hidden !important;
}

#arenaGamesV2Root[data-active-game="pvp-duel"] #ag2PvpView {
  overflow-x: clip !important;
  overflow-y: auto !important;
  overscroll-behavior: contain;
}

#arenaGamesV2Root[data-active-game="pvp-duel"] .wwg-root {
  height: auto !important;
  max-height: none !important;
  overflow: visible !important;
}

/* Weighted Circle has one persistent chrome stack. Telegram's native header
   occupies the content-safe inset; the room switcher paints that inset and the
   game toolbar sticks immediately below it. This keeps Standard/VIP and the
   game identity visible together instead of letting a restored inner scroll
   hide one of them. */
#arenaGamesV2Root[data-active-game="pvp-duel"] {
  --wheel-chrome-height: calc(var(--arena-top-inset) + 76px);
}

#arenaGamesV2Root[data-active-game="pvp-duel"] .launch-wheel-chrome {
  position: sticky !important;
  top: 0 !important;
  z-index: 70 !important;
  box-sizing: border-box !important;
  min-height: var(--wheel-chrome-height) !important;
  padding: calc(var(--arena-top-inset) + 6px) 10px 8px !important;
  background: linear-gradient(180deg, #08080a 0%, rgba(8,8,10,.96) 78%, rgba(8,8,10,.9) 100%) !important;
  border-bottom: 1px solid rgba(216,178,101,.14);
  backdrop-filter: blur(22px) saturate(1.15);
}

#arenaGamesV2Root[data-active-game="pvp-duel"] .launch-wheel-rooms {
  box-sizing: border-box !important;
  min-height: 62px !important;
  margin: 0 !important;
  padding: 6px !important;
}

#arenaGamesV2Root[data-active-game="pvp-duel"] #ag2WheelView .wwg-topbar {
  top: var(--wheel-chrome-height) !important;
  z-index: 60 !important;
  min-height: 62px !important;
  padding-top: 9px !important;
  padding-bottom: 9px !important;
}

/* Width still caps the board on narrow phones; viewport height decides the
   second cap. A 568px phone gets a compact 260px board while tall phones can
   grow progressively to the full 380px presentation. */
#arenaGamesV2Root[data-active-game="pvp-duel"] #ag2WheelView .wwg-stage {
  width: min(
    calc(100vw - 24px),
    clamp(260px, calc(var(--arena-screen-h) - 500px), 380px)
  ) !important;
  max-width: 380px !important;
}

/* Navigation never changes width or position between sections. */
.bottom-nav {
  box-sizing: border-box !important;
  left: 50% !important;
  right: auto !important;
  bottom: calc(8px + var(--arena-bottom-inset)) !important;
  width: min(calc(100% - 20px), 560px) !important;
  min-height: var(--arena-nav-height) !important;
  margin: 0 !important;
  transform: translateX(-50%) !important;
}

.bottom-nav .nav-item {
  min-width: 0 !important;
  min-height: 54px !important;
  padding-inline: 4px !important;
  overflow: hidden;
}

/* The resumable-game shortcut belongs only on Home. It must not cover Wallet,
   Profile, Gifts, or any game surface, and it no longer pulses or moves. */
html:not([data-lux-scene="home"]) .lux-resume-strip {
  display: none !important;
}

html[data-lux-scene="home"] .lux-resume-strip {
  position: relative !important;
  inset: auto !important;
  order: 1 !important;
  width: 100% !important;
  max-width: 100% !important;
  min-height: 56px !important;
  margin: 12px auto 0 !important;
  animation: none !important;
  transform: none !important;
}

.lux-resume-strip,
.lux-resume-strip * {
  animation: none !important;
}

.lux-resume-strip i {
  box-shadow: 0 0 8px rgba(66,225,160,.55) !important;
}

/* Do not let entrance effects temporarily shift cards outside their frames. */
.lux-reveal,
#gamesGrid .game-card.gp-card {
  animation: none !important;
  opacity: 1 !important;
  transform: none !important;
}

button,
input,
select,
textarea,
.wp-row,
.pp-activity-row,
.gift-card,
.wwg-player,
.wwg-recent-row {
  min-width: 0;
}

.wp-row-title,
.wp-row-meta,
.pp-activity-title,
.pp-activity-meta,
.wwg-player-name,
.wwg-player-handle {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wp-balance,
.wp-summary-value,
.pp-stat-value,
.wwg-value,
.wwg-player-amount {
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}

.deposit-modal,
.withdraw-modal,
.arena-preview-modal,
.stars-ton-overlay,
.arena-deposit-chooser,
.gift-detail,
.wheel-gift-overlay,
.launch-settings,
.launch-rules,
.launch-notifications {
  box-sizing: border-box !important;
  width: 100% !important;
  max-width: 100vw !important;
  height: var(--arena-screen-h) !important;
  max-height: var(--arena-screen-h) !important;
  padding: 8px !important;
}

.deposit-panel,
.withdraw-clean-panel,
.arena-preview-panel,
.stars-ton-sheet,
.arena-deposit-chooser > section,
.gift-detail-sheet,
.wheel-gift-sheet,
.launch-settings-sheet,
.launch-rules > section,
.launch-notifications > section {
  box-sizing: border-box !important;
  width: min(100%, 560px) !important;
  max-width: 100% !important;
  max-height: calc(var(--arena-screen-h) - 16px) !important;
  overflow-x: clip !important;
  overflow-y: auto !important;
  padding-bottom: calc(18px + var(--arena-bottom-inset)) !important;
}

@media (max-width: 430px) {
  #gamesGrid.games-pro-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 9px !important;
  }

  #gamesGrid .game-card.gp-card {
    min-height: 190px !important;
    padding: 13px !important;
  }

  #gamesGrid .game-card.gp-card .game-description {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
  }

  .pp-user {
    grid-template-columns: auto minmax(0, 1fr) !important;
  }

  .pp-rank {
    grid-column: 1 / -1;
    justify-self: start;
  }
}

/* Home and Wallet use equal, compact cards on every phone-sized WebView.
   Older theme layers turned Live pulse into a horizontal strip and Wallet
   summaries into four full-width rows. On real Telegram viewports that made
   the first cards narrow and left the transaction card far below the fold. */
@media (max-width: 700px) {
  .stats-grid {
    display: grid !important;
    grid-auto-flow: row !important;
    grid-auto-columns: auto !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 9px !important;
    width: 100% !important;
    margin-inline: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
  }

  .stats-grid > .stat-card {
    box-sizing: border-box !important;
    width: auto !important;
    min-width: 0 !important;
    min-height: 104px !important;
  }

  .stats-grid .stat-value,
  .stats-grid #prizePool {
    max-width: 100% !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }

  #ak2-wallet .wp-wrap {
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
    align-content: normal !important;
    gap: 12px !important;
    min-height: 0 !important;
    padding-bottom: 20px !important;
  }

  #ak2-wallet .wp-hero,
  #ak2-wallet .wp-summary,
  #ak2-wallet .wp-card {
    position: relative !important;
    inset: auto !important;
    width: 100% !important;
    margin: 0 !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
  }

  #ak2-wallet .wp-summary {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    grid-auto-flow: row !important;
    gap: 9px !important;
  }

  #ak2-wallet .wp-summary-card {
    box-sizing: border-box !important;
    min-width: 0 !important;
    min-height: 94px !important;
    padding: 14px !important;
  }

  #ak2-wallet .wp-summary-label,
  #ak2-wallet .wp-summary-value,
  #ak2-wallet .wp-summary-note {
    max-width: 100% !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  #ak2-wallet .wp-filters {
    max-width: 100% !important;
    scroll-snap-type: x proximity;
  }

  #ak2-wallet .wp-filter {
    flex: 0 0 auto !important;
    min-width: max-content !important;
    scroll-snap-align: start;
  }

  /* A two-by-two profile summary remains readable down to 320px and avoids
     four oversized full-width cards before the useful activity section. */
  #ak2-profile .pp-stats {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 9px !important;
  }

  #ak2-profile .pp-stat {
    box-sizing: border-box !important;
    min-width: 0 !important;
    min-height: 92px !important;
    padding: 13px !important;
  }

  #ak2-profile .pp-stat-value {
    max-width: 100% !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }

  /* The older mobile theme pushed Roll onto a second row. Keep the live turn
     and its action in one compact line whenever the phone is wide enough. */
  .launch-dice-turn {
    grid-template-columns: 48px minmax(0, 1fr) auto !important;
    gap: 9px !important;
    padding: 9px !important;
  }

  .launch-dice-turn > div {
    width: 46px !important;
    height: 46px !important;
  }

  .launch-dice-turn button {
    grid-column: auto !important;
    min-height: 44px !important;
    padding-inline: 11px !important;
  }

  #akMainSections,
  .app {
    padding-bottom: calc(128px + var(--arena-bottom-inset)) !important;
  }
}

/* Short WebViews need less decorative height, not smaller touch targets. */
@media (max-width: 700px) and (max-height: 700px) {
  .hero {
    min-height: 278px !important;
    padding: 18px 16px !important;
  }

  .hero h1 {
    margin-block: 10px 8px !important;
    font-size: clamp(34px, 11vw, 44px) !important;
  }

  .hero-description {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .hero-actions {
    margin-top: 12px !important;
  }

  .section {
    margin-top: 22px !important;
  }

  .launch-dice {
    gap: 10px !important;
  }

  .launch-dice-stage {
    min-height: 142px !important;
    padding: 14px !important;
  }

  .launch-dice-stage strong {
    width: 64px !important;
    height: 64px !important;
    border-radius: 19px !important;
  }
}

@media (max-width: 350px) {
  #gamesGrid.games-pro-grid {
    grid-template-columns: 1fr !important;
  }

  .wp-actions {
    gap: 6px !important;
  }

  .wp-action {
    padding-inline: 4px !important;
    font-size: 9px !important;
  }

  .launch-dice-turn {
    grid-template-columns: 46px minmax(0, 1fr) !important;
  }

  .launch-dice-turn button {
    grid-column: 1 / -1 !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
  }
}
