/* TILT: keep the artwork expressive; give navigation and controls a quiet frame. */
:root {
  --tilt-surface: #111114;
  --tilt-line: #ffffff1a;
  --tilt-ink-secondary: #b4b4bd;
  --tilt-ease-out: cubic-bezier(.22, 1, .36, 1);
}
html { -webkit-tap-highlight-color: transparent; scroll-padding-bottom: 112px; }
.app-shell { font-family: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif; }
.app-shell button, .app-shell input, .app-shell select { font-family: inherit; }
button, a, [role="button"] { touch-action: manipulation; }
button, [role="button"] { -webkit-user-select: none; user-select: none; }
button:focus-visible, a:focus-visible, [role="button"]:focus-visible {
  outline: 2px solid #f5f5f7;
  outline-offset: 4px;
}
.app-header__deposit {
  min-height: 44px;
  box-shadow: none;
  transition: background-color 160ms var(--tilt-ease-out), transform 160ms var(--tilt-ease-out);
}
.app-header__user { min-height: 44px; }
.app-header__balance-label { font-size: 11px; color: var(--tilt-ink-secondary); }
.app-header__amount { font-variant-numeric: tabular-nums; }
.bottom-nav__label { color: var(--tilt-ink-secondary); font-family: 'Manrope', system-ui, sans-serif; font-weight: 600; }
.bottom-nav__tab.is-active .bottom-nav__label { color: #fff; }
.home-banners { gap: 12px; }
.home-banner { box-shadow: none; }
.game-bet-panel__field-label { font-size: 12px; color: var(--tilt-ink-secondary); }
.game-bet-panel__play, .upgrade22-play { min-height: 52px; }
.game-bet-panel__amount-input { font-variant-numeric: tabular-nums; }
.app-header__deposit:active { transform: scale(.97); transition-duration: 100ms; }
.deposit-sheet__preset, .deposit-sheet__tab, .deposit-sheet__pay {
  transition: background-color 160ms var(--tilt-ease-out), border-color 160ms var(--tilt-ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .app-header__deposit:hover { background-color: #dc0039; transform: translateY(-1px); }
  .home-banner:hover { filter: brightness(1.06); }
}
@media (pointer: coarse) {
  input, select, textarea { font-size: max(16px, 1em); }
  .deposit-sheet__preset { min-height: 44px; }
  .home-banner:hover { transform: none; filter: none; }
}
@media (max-width: 767px) {
  .bottom-nav__label { font-size: 10px; }
  .app-main { padding-bottom: calc(112px + env(safe-area-inset-bottom, 0px)); }
  .app-header { padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
  .bottom-nav { bottom: calc(12px + env(safe-area-inset-bottom, 0px)); }
}
/* A desktop shell, rather than scaling a phone canvas. Game fields retain their own proportions. */
@media (min-width: 1024px) {
  .app-shell { max-width: 1240px; padding: 0 32px 0 216px; box-sizing: border-box; }
  .app-header {
    max-width: none;
    width: min(calc(100% - 296px), 992px);
    left: calc(50% + 92px);
    padding: 24px 0 16px;
    background: #000;
  }
  .app-main { padding-top: 96px; padding-bottom: 48px; overflow-x: visible; }
  .app-main > .page { width: 100%; max-width: 820px; margin-inline: auto; box-sizing: border-box; }
  .app-main > .tilt31-brand { margin-bottom: 24px; }
  .home-page { width: 100%; padding-inline: 0; }
  .home-banners { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 20px; align-items: stretch; }
  .home-banner { grid-column: span 3; }
  .home-banner--tiltplay { grid-column: span 4; }
  .home-banner--ice { grid-column: span 2; height: 100% !important; aspect-ratio: auto !important; }
  .home-banner--ice .home-banner__img { object-fit: cover !important; transform: scale(1.045) !important; }
  .bottom-nav {
    left: max(24px, calc((100vw - 1240px) / 2 + 24px));
    top: 96px;
    bottom: auto;
    width: 168px;
    transform: none;
  }
  .bottom-nav__pill {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 12px 8px;
    border: 1px solid var(--tilt-line);
    border-radius: 20px;
    background: var(--tilt-surface) !important;
  }
  .bottom-nav__tab { width: 100%; min-height: 56px; border-radius: 12px; }
  .bottom-nav__tab-body { display: flex; flex-direction: row; justify-content: flex-start; gap: 12px; padding: 0 12px; }
  .bottom-nav__label { display: block; font-size: 13px; }
  .bottom-nav__tab.is-active { background: #ffffff0d; }
  .bottom-nav__tab--center { order: -1; }
  .bottom-nav__tab--center .bottom-nav__tab-body::after { content: 'Главная'; font-size: 13px; color: #fff; }
  .bottom-nav__indicator { display: none; }
  .bottom-nav__tab--center .bottom-nav__tab-body { margin-top: 0; }
  .bottom-nav__tab--center .bottom-nav__icon { width: 36px; height: 36px; box-shadow: none; }
  .rocket-page { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 16px 20px; align-items: start; }
  .rocket-page > * { grid-column: 1; min-width: 0; }
  .rocket-page > .rocket-bet-dock { grid-column: 2; grid-row: 1 / 6; margin: 0; }
  .rocket-page > .rocket-actions:empty { display: none; }
  .rocket-page .rocket-field { margin: 0; }
  .rocket-page .game-bet-panel__presets { gap: 4px; }
}
@media (min-width: 1280px) {
  .upgrade22 { display: grid; grid-template-columns: minmax(0, 1.7fr) repeat(2, minmax(0, 1fr)); gap: 16px; align-items: center; }
  .upgrade22-stage { display: contents; }
  .upgrade22-ring { grid-column: 1; grid-row: 1 / 5; max-width: 100%; align-self: center; margin: 0; }
  .upgrade22-slot.upgrade24-from { grid-column: 2; grid-row: 1; }
  .upgrade22-slot.upgrade24-target { grid-column: 3; grid-row: 1; }
  .upgrade22-multipliers, .upgrade22-play, .upgrade22-shop-open { grid-column: 2 / 4; margin: 0; }
  .upgrade22-multipliers { grid-row: 2; }
  .upgrade22-play { grid-row: 3; }
  .upgrade22-shop-open { grid-row: 4; }
  .upgrade24-between { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .home-banner, .app-header__deposit, .bottom-nav__icon, .bottom-nav__tab, .bottom-nav__tab-body, .deposit-sheet__preset,
  .deposit-sheet__tab, .deposit-sheet__pay { animation: none !important; transition: none !important; }
  .app-header__deposit:active, .app-header__deposit:hover, .home-banner:hover { transform: none; }
  .bottom-nav__tab:active { transform: none; }
}
