﻿:root {
  --bg: #050505;
  --panel: rgba(255, 255, 255, 0.038);
  --panel-strong: rgba(255, 255, 255, 0.062);
  --glass: rgba(255, 255, 255, 0.042);
  --glass-hover: rgba(255, 255, 255, 0.066);
  --border: rgba(255, 255, 255, 0.085);
  --border-hover: rgba(255, 255, 255, 0.13);
  --text: rgba(255, 255, 255, 0.92);
  --text-secondary: rgba(226, 232, 240, 0.68);
  --text-muted: rgba(226, 232, 240, 0.46);
  --accent: #d8dde6;
  --accent-rgb: 216, 221, 230;
  --gold: #f2f4f7;
  --gold-rgb: 242, 244, 247;
  --green: #d8dde6;
  --success: #b9e6ff;
  --success-rgb: 185, 230, 255;
  --red: #f87171;
  --blue: #aeb8c6;
  --blue-rgb: 174, 184, 198;
  --radius: 24px;
  --radius-sm: 16px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-premium: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-standard: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-ambient: cubic-bezier(0.45, 0, 0.55, 1);
  --motion-fast: 140ms;
  --motion-med: 220ms;
  --motion-slow: 320ms;
  --motion-page: 280ms;
  --scrollbar-track: #050506;
  --scrollbar-thumb: #24252a;
  --scrollbar-thumb-hover: #363842;
}

* {
  box-sizing: border-box;
  scrollbar-width: thin;
  scrollbar-color: var(--scrollbar-thumb) var(--scrollbar-track);
}

*::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

*::-webkit-scrollbar-track {
  background: var(--scrollbar-track);
}

*::-webkit-scrollbar-thumb {
  min-height: 48px;
  background: var(--scrollbar-thumb);
  border: 2px solid var(--scrollbar-track);
  border-radius: 999px;
}

*::-webkit-scrollbar-thumb:hover {
  background: var(--scrollbar-thumb-hover);
}

*::-webkit-scrollbar-corner {
  background: var(--scrollbar-track);
}

body::-webkit-scrollbar {
  width: 12px;
}

html,
body {
  min-height: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

html {
  background: #050505;
  color-scheme: dark;
}

body {
  margin: 0;
  position: relative;
  isolation: isolate;
  background:
    linear-gradient(180deg, #0b0b0c 0%, #070708 32%, #040404 72%, #020202 100%);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI", sans-serif;
  font-weight: 500;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}

.ambient-background {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  background: #040405 url("/static/img/ambient-caustic-poster.webp?v=2") center / cover no-repeat;
}

.ambient-caustic {
  width: 100%;
  height: 100%;
  display: block;
  opacity: 0.9;
  filter: blur(14px);
  transform: scale(1.06);
  transform-origin: center;
}

.ambient-background::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(5, 5, 6, 0.04), rgba(3, 3, 3, 0.18) 64%, rgba(0, 0, 0, 0.38)),
    linear-gradient(90deg, rgba(0, 0, 0, 0.24), transparent 20%, transparent 80%, rgba(0, 0, 0, 0.28));
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  border: 0;
}

[data-lucide],
.lucide {
  width: 20px;
  height: 20px;
  display: inline-block;
  flex: 0 0 20px;
  vertical-align: middle;
}

.icon-button [data-lucide],
.icon-button .lucide {
  width: 22px;
  height: 22px;
}

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

.app-shell {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  padding: 28px;
}

.auth-layout {
  min-height: calc(100vh - 56px);
  display: grid;
  place-items: center;
}

.auth-stack {
  width: min(440px, 100%);
  display: grid;
  gap: 18px;
}

.brand {
  display: grid;
  justify-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.brand-mark {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  color: white;
  background: rgba(var(--accent-rgb), 0.14);
  border: 1px solid rgba(var(--accent-rgb), 0.3);
  border-radius: 22px;
  box-shadow: 0 18px 70px rgba(var(--accent-rgb), 0.22);
}

.brand h1,
.page-title h1 {
  margin: 0;
  font-size: clamp(2rem, 7vw, 3.2rem);
  font-weight: 650;
  letter-spacing: 0;
}

.brand p,
.page-title p,
.muted {
  margin: 0;
  color: var(--text-secondary);
  font-weight: 500;
  line-height: 1.6;
}

.glass {
  background: var(--glass);
  backdrop-filter: blur(28px) saturate(1.35);
  -webkit-backdrop-filter: blur(28px) saturate(1.35);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    inset 0 -1px 0 rgba(0, 0, 0, 0.16),
    0 24px 72px rgba(0, 0, 0, 0.34),
    0 2px 12px rgba(0, 0, 0, 0.24);
  transition:
    background var(--motion-med) var(--ease-premium),
    border-color var(--motion-med) var(--ease-premium),
    box-shadow var(--motion-med) var(--ease-premium);
}

.glass.interactive:hover {
  background: var(--glass-hover);
  border-color: var(--border-hover);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.11),
    inset 0 -1px 0 rgba(0, 0, 0, 0.16),
    0 28px 86px rgba(0, 0, 0, 0.38),
    0 0 0 1px rgba(255, 255, 255, 0.025);
}

.auth-panel,
.result-card,
.placeholder-card {
  padding: 24px;
}

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

.mode-button,
.nav-item,
.icon-button {
  min-height: 44px;
  display: inline-grid;
  place-items: center;
  gap: 6px;
  color: var(--text-secondary);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 14px;
  cursor: pointer;
  transition:
    color var(--motion-fast) var(--ease-premium),
    background var(--motion-fast) var(--ease-premium),
    border-color var(--motion-fast) var(--ease-premium),
    transform var(--motion-fast) var(--ease-premium);
}

.mode-button {
  grid-template-columns: 20px auto;
  justify-content: center;
  padding: 10px;
}

.mode-button.active,
.nav-item.active,
.mode-button:hover,
.nav-item:hover,
.icon-button:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.065);
  border-color: rgba(255, 255, 255, 0.105);
}

.mode-button:active,
.nav-item:active,
.icon-button:active,
.btn:active,
.package-card:active,
.casino-tab:active,
.tower-row button:not(:disabled):active {
  transform: translateY(1px);
}

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

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

.field span {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.input {
  width: 100%;
  min-height: 48px;
  color: var(--text);
  color-scheme: dark;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  outline: none;
  padding: 0 14px;
  transition:
    border-color var(--motion-fast) var(--ease-premium),
    background var(--motion-fast) var(--ease-premium),
    box-shadow var(--motion-fast) var(--ease-premium);
}

.input:focus {
  border-color: rgba(var(--accent-rgb), 0.55);
  background: rgba(255, 255, 255, 0.07);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.035);
}

select.input {
  background-color: rgba(255, 255, 255, 0.045);
}

select.input option {
  color: rgba(255, 255, 255, 0.92);
  background: #18191d;
}

select.input option:checked,
select.input option:hover,
select.input option:focus {
  color: #ffffff;
  background: #2d3038;
}

.btn {
  min-height: 48px;
  display: inline-grid;
  grid-template-columns: 20px auto;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(var(--accent-rgb), 0.22);
  border-radius: var(--radius-sm);
  padding: 12px 22px;
  font-weight: 650;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition:
    border-color var(--motion-fast) var(--ease-premium),
    background var(--motion-fast) var(--ease-premium),
    box-shadow var(--motion-fast) var(--ease-premium),
    transform var(--motion-fast) var(--ease-premium);
}

.btn-primary {
  background: linear-gradient(135deg, rgba(var(--accent-rgb), 0.24), rgba(var(--blue-rgb), 0.1));
}

.btn-primary::before {
  display: none;
}

.btn-primary:hover::before {
  left: 100%;
}

.btn:hover {
  border-color: rgba(var(--accent-rgb), 0.48);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.16);
}

.btn:disabled {
  cursor: not-allowed;
  opacity: 0.58;
  transform: none;
}

.mode-button:disabled,
.nav-item:disabled,
.icon-button:disabled {
  cursor: not-allowed;
  opacity: 0.52;
  transform: none;
}

.captcha-row {
  display: grid;
  grid-template-columns: 1fr 48px;
  gap: 10px;
  align-items: center;
}

.captcha-image {
  width: 100%;
  height: 82px;
  object-fit: cover;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.04);
}

.credentials {
  display: grid;
  gap: 10px;
  margin: 14px 0 18px;
}

.credential-row {
  display: grid;
  gap: 4px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 14px;
}

.credential-row span {
  color: var(--text-muted);
  font-size: 0.78rem;
}

.credential-row strong {
  overflow-wrap: anywhere;
  font-weight: 500;
}

.layout {
  min-height: calc(100vh - 56px);
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 28px;
}

.nav-bar {
  position: sticky;
  top: 28px;
  align-self: start;
  min-height: calc(100vh - 56px);
  padding: 12px;
  display: grid;
  align-content: start;
  gap: 10px;
}

.nav-item {
  width: 86px;
  height: 62px;
  grid-template-rows: 22px auto;
  align-content: center;
  justify-items: center;
  padding: 8px 6px;
  font-size: 0.72rem;
  line-height: 1;
  text-align: center;
}

.nav-item span {
  max-width: 100%;
  overflow: hidden;
  line-height: 1.12;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.content-topbar {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  margin-bottom: -8px;
}

.language-switch {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: 12px;
}

.language-switch button {
  flex: 1;
  min-width: 42px;
  min-height: 30px;
  padding: 0 12px;
  color: var(--text-muted);
  background: transparent;
  border-radius: 10px;
  cursor: pointer;
  font-size: 0.68rem;
  font-weight: 750;
  letter-spacing: 0;
  transition:
    color var(--motion-fast) var(--ease-premium),
    background var(--motion-fast) var(--ease-premium),
    transform var(--motion-fast) var(--ease-premium);
}

.language-switch button:hover,
.language-switch button.active {
  color: var(--text);
  background: rgba(255, 255, 255, 0.085);
}

.auth-language-switch {
  width: 132px;
  justify-self: center;
  margin: 0;
}

.content {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-content: start;
  gap: 22px;
  min-width: 0;
  padding: 8px 0 40px;
}

.content > *,
.profile-workspace,
.profile-primary,
.profile-secondary,
.social-grid,
.social-wide,
.section-card,
.profile-hero,
.wallet-panel,
.wallet-summary,
.wallet-columns,
.wallet-history-grid,
.stats-grid,
.copy-row,
.table-wrap,
.earning-chart,
.mini-list,
.mini-row {
  min-width: 0;
  max-width: 100%;
}

.page-title {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 22px;
  padding-bottom: 6px;
}

.page-title > div:first-child {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.balance-pill {
  width: max-content;
  max-width: min(260px, 100%);
  min-width: 0;
  display: inline-flex;
  align-items: baseline;
  justify-content: flex-end;
  gap: 9px;
  justify-self: end;
  padding: 9px 12px;
  text-align: right;
  position: relative;
  overflow: hidden;
}

.balance-pill::after {
  display: none;
}

.balance-pill span {
  display: inline;
  flex: 0 0 auto;
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.1;
}

.balance-pill strong {
  display: inline-block;
  min-width: 0;
  max-width: 178px;
  margin-top: 0;
  color: var(--green);
  font-size: clamp(1.12rem, 1.65vw, 1.32rem);
  line-height: 1.05;
  font-weight: 750;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}

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

.placeholder-card {
  min-height: 148px;
  display: grid;
  align-content: space-between;
}

.placeholder-card .icon,
.brand-mark,
.avatar {
  transition:
    border-color var(--motion-med) var(--ease-premium),
    box-shadow var(--motion-med) var(--ease-premium),
    transform var(--motion-med) var(--ease-premium);
}

.placeholder-card:hover .icon,
.glass.interactive:hover .avatar {
  transform: translateY(-1px);
}

.placeholder-card .icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  color: var(--text);
  background: rgba(var(--accent-rgb), 0.13);
  border-radius: 16px;
}

.placeholder-card h2 {
  margin: 14px 0 4px;
  font-size: 1.05rem;
  font-weight: 650;
  letter-spacing: 0;
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  min-width: 0;
}

.profile-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.34fr);
  gap: 16px;
  align-items: start;
  min-width: 0;
}

.profile-primary,
.profile-secondary {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.profile-secondary {
  position: sticky;
  top: 18px;
}

.profile-hero-clean {
  grid-template-columns: auto minmax(0, 1fr) minmax(150px, max-content);
  padding: 18px;
}

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

.profile-kicker {
  display: block;
  margin-bottom: 5px;
  color: var(--text-muted);
  font-size: 0.74rem;
  font-weight: 750;
}

.profile-balance-clean {
  padding: 0;
  border: 0;
}

.section-heading-split {
  justify-content: space-between;
  gap: 14px;
}

.section-heading-split > div {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.section-heading-split > span {
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 650;
  text-align: right;
}

.profile-card-note {
  margin: -4px 0 12px;
  line-height: 1.5;
}

.profile-promo-form,
.profile-password-form {
  display: grid;
  gap: 10px;
}

.profile-promo-form {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: end;
}

.profile-promo-form .btn {
  width: 100%;
  min-height: 48px;
  grid-template-columns: 18px auto;
  gap: 8px;
  padding: 9px 12px;
  font-size: 0.82rem;
}

.profile-promo-form .btn svg {
  width: 18px;
  height: 18px;
}

.profile-promo-form .btn,
.profile-password-form .btn {
  width: 100%;
}

.profile-session-block h3 {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.92rem;
  font-weight: 750;
}

.profile-purchase-row {
  grid-template-columns: minmax(0, 1fr) auto auto;
}

.profile-purchase-actions {
  display: flex;
  gap: 6px;
  align-items: center;
}

.purchase-content-box {
  max-height: min(46vh, 360px);
  overflow: auto;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  padding: 14px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-weight: 650;
  line-height: 1.5;
}

.profile-hero {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) minmax(112px, max-content);
  gap: 14px;
  align-items: center;
  padding: 16px;
}

.avatar {
  width: 60px;
  height: 60px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 20px;
  color: white;
  font-weight: 750;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), 0 18px 45px rgba(0, 0, 0, 0.28);
}

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

.profile-login h2 {
  margin: 0;
  overflow-wrap: anywhere;
  font-size: 1.16rem;
  font-weight: 700;
  letter-spacing: 0;
}

.profile-balance {
  width: clamp(112px, 16vw, 156px);
  min-width: 0;
  text-align: right;
}

.profile-balance span,
.stat-card span {
  display: block;
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 600;
}

.profile-balance strong,
.stat-card strong {
  display: block;
  margin-top: 5px;
  color: var(--green);
  font-size: clamp(1.08rem, 1.8vw, 1.38rem);
  line-height: 1.08;
  font-weight: 750;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}

@media (min-width: 761px) {
  .profile-hero {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 18px;
  }

  .profile-hero .avatar {
    width: 72px;
    height: 72px;
    border-radius: 22px;
  }

  .profile-balance {
    width: 100%;
    text-align: left;
    padding-top: 14px;
    border-top: 1px solid var(--border);
  }

  .profile-balance strong {
    font-size: clamp(1.28rem, 2vw, 1.58rem);
  }

  .profile-hero-clean {
    grid-template-columns: auto minmax(0, 1fr) minmax(150px, max-content);
    gap: 16px;
  }

  .profile-hero-clean .avatar {
    width: 62px;
    height: 62px;
    border-radius: 19px;
  }

  .profile-hero-clean .profile-balance {
    width: auto;
    text-align: right;
    padding-top: 0;
    border-top: 0;
  }
}

.section-card {
  padding: 16px;
}

.section-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.section-heading h2 {
  margin: 0;
  font-size: 1.08rem;
  font-weight: 700;
  letter-spacing: 0;
}

.section-heading svg {
  color: var(--text-secondary);
}

.empty-table {
  display: grid;
  place-items: center;
  min-height: 78px;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.compact-form {
  grid-template-columns: repeat(2, minmax(0, 1fr)) auto;
  align-items: end;
}

.session-block {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
  margin-top: 16px;
  min-width: 0;
  max-width: 100%;
}

.session-block h3 {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.95rem;
  font-weight: 650;
}

.session-list {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
  min-width: 0;
  max-width: 100%;
}

.session-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.session-row > div {
  min-width: 0;
  max-width: 100%;
}

.session-row strong,
.session-row span,
.session-row small {
  display: block;
}

.session-row strong {
  font-size: 0.94rem;
  font-weight: 700;
}

.session-row span,
.session-row small {
  overflow: hidden;
  color: var(--text-muted);
  font-size: 0.78rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.session-kill {
  min-height: 40px;
  padding: 8px 12px;
}

.danger-btn {
  width: max-content;
  border-color: rgba(239, 68, 68, 0.28);
  background: rgba(239, 68, 68, 0.08);
}

.copy-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

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

.stat-card {
  min-height: 74px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.table-wrap {
  width: 100%;
  overflow: auto;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.table-wrap::-webkit-scrollbar,
.admin-sidebar::-webkit-scrollbar,
.modal::-webkit-scrollbar,
.admin-modal::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

.table-wrap::-webkit-scrollbar-track,
.admin-sidebar::-webkit-scrollbar-track,
.modal::-webkit-scrollbar-track,
.admin-modal::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.42);
  border-radius: 999px;
}

.table-wrap::-webkit-scrollbar-thumb,
.admin-sidebar::-webkit-scrollbar-thumb,
.modal::-webkit-scrollbar-thumb,
.admin-modal::-webkit-scrollbar-thumb {
  background: #272932;
  border: 2px solid rgba(0, 0, 0, 0.42);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 420px;
}

.data-table th,
.data-table td {
  padding: 13px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.055);
  text-align: left;
  overflow-wrap: anywhere;
}

.data-table th {
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 700;
}

.data-table td {
  color: var(--text-secondary);
}

.data-table tbody tr:nth-child(even) {
  background: rgba(255, 255, 255, 0.025);
}

.data-table tbody tr:hover {
  background: rgba(var(--accent-rgb), 0.07);
}

.text-block {
  margin: 0;
  color: var(--text-secondary);
  line-height: 1.7;
}

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

.faq-item {
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.faq-item summary {
  cursor: pointer;
  padding: 15px 16px;
  font-weight: 500;
}

.faq-item p {
  margin: 0;
  padding: 0 16px 16px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.catalog-toolbar {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  padding: 16px;
}

#vip-offer:empty {
  display: none;
}

.home-vip-slot {
  margin-top: 16px;
}

.vip-offer {
  display: grid;
  grid-template-columns: minmax(220px, 0.85fr) minmax(250px, 1fr) minmax(300px, 1.15fr);
  align-items: center;
  gap: 22px;
  margin-bottom: 16px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.045);
  border-color: rgba(255, 255, 255, 0.13);
}

.vip-offer.is-active {
  border-color: rgba(216, 221, 230, 0.24);
}

.vip-offer-summary {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 13px;
}

.vip-mark {
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  display: grid;
  place-items: center;
  color: var(--text);
  background: rgba(255, 255, 255, 0.075);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 15px;
}

.vip-mark svg {
  width: 22px;
  height: 22px;
}

.vip-title-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.vip-title-row h2 {
  margin: 0;
  font-size: 1.16rem;
  font-weight: 780;
}

.vip-status {
  padding: 4px 7px;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.055);
  border-radius: 7px;
  font-size: 0.7rem;
  font-weight: 700;
}

.vip-offer-summary p {
  margin: 5px 0 0;
  color: var(--text-muted);
  font-size: 0.78rem;
  line-height: 1.4;
}

.vip-benefits {
  min-width: 0;
  display: grid;
  gap: 9px;
}

.vip-benefits span {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  color: var(--text-secondary);
  font-size: 0.78rem;
  line-height: 1.35;
}

.vip-benefits svg {
  width: 16px;
  height: 16px;
  color: var(--text-muted);
}

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

.vip-plan {
  min-width: 0;
  min-height: 72px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 3px;
  padding: 9px 7px;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--border);
  border-radius: 12px;
  cursor: pointer;
  transition: color var(--motion-fast) var(--ease-standard), background var(--motion-fast) var(--ease-standard), border-color var(--motion-fast) var(--ease-standard);
}

.vip-plan:hover,
.vip-plan:focus-visible,
.vip-plan.is-featured {
  color: var(--text);
  background: rgba(255, 255, 255, 0.075);
  border-color: rgba(255, 255, 255, 0.18);
}

.vip-plan span,
.vip-plan small {
  font-size: 0.7rem;
  font-weight: 650;
}

.vip-plan strong {
  color: inherit;
  font-size: 0.96rem;
  font-weight: 780;
  font-variant-numeric: tabular-nums;
}

.vip-plan small {
  color: var(--text-muted);
}

.vip-modal-plan {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.vip-modal-plan span {
  color: var(--text-secondary);
}

.vip-modal-plan strong {
  color: var(--text);
  font-size: 1.25rem;
  font-variant-numeric: tabular-nums;
}

.vip-buy-modal {
  background: rgba(12, 12, 14, 0.94);
  backdrop-filter: blur(28px);
}

.vip-free-price {
  color: var(--text) !important;
}

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

.content-gallery-grid {
  grid-template-columns: repeat(2, minmax(320px, 460px));
  justify-content: center;
  gap: 20px;
}

.catalog-card,
.media-card,
.collection-card {
  padding: 18px;
}

.catalog-card {
  display: grid;
  gap: 14px;
}

.catalog-card-top,
.catalog-meta,
.price-row,
.card-actions,
.collection-actions,
.modal-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.catalog-card h2,
.media-card h2,
.collection-card h2 {
  margin: 0;
  overflow-wrap: anywhere;
  font-size: 1.08rem;
  font-weight: 700;
  letter-spacing: 0;
}

.catalog-card p,
.media-card p,
.collection-card p {
  margin: 0;
  color: var(--text-secondary);
  line-height: 1.55;
}

.catalog-meta {
  color: var(--text-muted);
  font-size: 0.82rem;
}

.badge {
  display: inline-grid;
  place-items: center;
  min-height: 28px;
  padding: 0 10px;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.78rem;
}

.badge-gold {
  color: #ffe8bb;
  border-color: rgba(var(--gold-rgb), 0.28);
  background: rgba(var(--gold-rgb), 0.075);
}

.price-row strong {
  color: var(--green);
  font-size: 1.35rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.price-row small {
  color: var(--text-muted);
}

.media-card {
  overflow: hidden;
  padding: 0;
}

.gallery-choice-card {
  min-height: 100%;
}

.gallery-choice-preview {
  aspect-ratio: 16 / 9;
}

.gallery-choice-body {
  padding: 18px;
}

.gallery-choice-body .btn {
  width: 100%;
  justify-content: center;
}

.media-preview {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid var(--border);
}

.media-preview img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.media-preview .badge {
  position: absolute;
  top: 12px;
  left: 12px;
  color: var(--text);
  background: rgba(5, 5, 8, 0.48);
  backdrop-filter: blur(20px);
}

.media-body {
  display: grid;
  gap: 10px;
  padding: 14px;
}

.collection-strip {
  display: grid;
  gap: 12px;
}

.collection-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
}

.collection-actions {
  flex-direction: column;
  align-items: end;
}

.collection-actions > span {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 900;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(0, 0, 0, 0.48);
  backdrop-filter: blur(18px);
  animation: backdrop-enter 180ms var(--ease-standard) both;
}

.modal {
  width: min(480px, 100%);
  padding: 22px;
  transform-origin: center;
  animation: dialog-enter var(--motion-slow) var(--ease-premium) both;
}

.modal-backdrop.is-closing {
  animation: backdrop-exit var(--motion-fast) var(--ease-standard) both;
  pointer-events: none;
}

.modal-backdrop.is-closing .modal,
.modal-backdrop.is-closing .admin-modal {
  animation: dialog-exit var(--motion-fast) var(--ease-standard) both;
}

.content-player-modal {
  width: min(980px, 100%);
  max-height: calc(100vh - 36px);
  overflow: auto;
}

.content-player-frame {
  display: grid;
  place-items: center;
  overflow: auto;
  background: rgba(5, 5, 5, 0.78);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  max-height: min(72vh, 760px);
}

.content-player-media {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: min(72vh, 760px);
  display: block;
  object-fit: contain;
  background: #050505;
}

video.content-player-media {
  width: 100%;
  height: auto;
}

.content-player-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  align-items: center;
}

.content-player-actions .btn {
  width: 100%;
  justify-content: center;
}

.modal-actions {
  margin-top: 18px;
}

.rating-row {
  display: flex;
  gap: 6px;
  margin-top: 14px;
}

.rating-row button {
  width: 42px;
  height: 42px;
  color: var(--gold);
  background: rgba(var(--gold-rgb), 0.075);
  border: 1px solid rgba(var(--gold-rgb), 0.18);
  border-radius: 12px;
  cursor: pointer;
}

.mini-list {
  display: grid;
  gap: 8px;
}

.mini-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  color: inherit;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.mini-row strong,
.mini-row span {
  display: block;
}

.mini-row strong {
  font-size: 0.9rem;
  font-weight: 700;
}

.mini-row span {
  color: var(--text-muted);
  font-size: 0.76rem;
}

.mini-row b {
  color: var(--text-secondary);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.mini-row b.negative {
  color: var(--red);
}

.mini-row b.positive {
  color: var(--green);
}

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

.casino-layout {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr) minmax(240px, 0.34fr);
  gap: 16px;
}

.casino-layout-clean {
  grid-template-columns: 190px minmax(0, 1fr);
}

.casino-tabs {
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 10px;
}

.casino-tab {
  min-height: 48px;
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 0 12px;
  color: var(--text-secondary);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 14px;
  cursor: pointer;
  text-align: left;
  transition:
    color var(--motion-fast) var(--ease-premium),
    background var(--motion-fast) var(--ease-premium),
    border-color var(--motion-fast) var(--ease-premium),
    transform var(--motion-fast) var(--ease-premium);
}

.casino-tab span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.casino-tab.active,
.casino-tab:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.065);
  border-color: rgba(255, 255, 255, 0.105);
}

.casino-board {
  min-height: 430px;
  padding: 20px;
}

.casino-live {
  min-height: 430px;
  padding: 18px;
  align-self: start;
}

.live-row.major {
  border-color: rgba(var(--gold-rgb), 0.24);
  background: rgba(var(--gold-rgb), 0.065);
}

.game-form {
  display: grid;
  grid-template-columns: minmax(160px, 220px) auto auto;
  gap: 12px;
  align-items: end;
}

.game-form.three {
  grid-template-columns: minmax(140px, 200px) minmax(120px, 160px) minmax(140px, 180px) auto;
}

.simple-visual,
.choice-visual,
.coin-visual,
.dice-visual {
  min-height: 150px;
  display: grid;
  place-items: center;
  margin-top: 18px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 2.6rem;
  font-weight: 300;
  font-variant-numeric: tabular-nums;
}

.choice-visual {
  min-height: 210px;
  display: grid;
  grid-template-columns: minmax(220px, 0.85fr) minmax(260px, 1.15fr);
  gap: 14px;
  align-items: stretch;
  margin-top: 18px;
  padding: 14px;
  color: var(--text);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.022)),
    rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: var(--radius);
}

.choice-hero {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 18px;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.choice-hero svg {
  width: 48px;
  height: 48px;
  padding: 11px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.075);
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 16px;
}

.choice-hero span,
.choice-visual > span {
  display: block;
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 720;
  text-transform: uppercase;
}

.choice-hero strong,
.choice-visual > strong {
  display: block;
  margin-top: 6px;
  font-size: clamp(2.15rem, 5.2vw, 4rem);
  line-height: 0.95;
  font-weight: 780;
  font-variant-numeric: tabular-nums;
}

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

.choice-stats > div {
  display: grid;
  align-content: center;
  gap: 7px;
  min-height: 96px;
  padding: 13px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.choice-stats span {
  color: var(--text-muted);
  font-size: 0.7rem;
  font-weight: 720;
  text-transform: uppercase;
}

.choice-stats b {
  color: var(--text);
  font-size: 1.08rem;
  font-weight: 760;
  font-variant-numeric: tabular-nums;
}

.simple-visual {
  gap: 8px;
}

.simple-visual span,
.crash-panel span,
.tower-panel span,
.mines-panel span {
  color: var(--text-muted);
  font-size: 0.76rem;
  font-weight: 650;
  text-transform: uppercase;
}

.simple-visual strong {
  font-size: clamp(2.5rem, 7vw, 4.8rem);
  font-weight: 760;
}

.simple-visual.hit {
  border-color: rgba(var(--success-rgb), 0.32);
  background: rgba(var(--success-rgb), 0.08);
  animation: vault-unlock var(--motion-slow) var(--ease-premium);
}

.coin-visual {
  width: 150px;
  height: 150px;
  min-height: 150px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 25%, rgba(255,255,255,0.22), rgba(var(--gold-rgb),0.16), rgba(var(--accent-rgb),0.1));
  transform-style: preserve-3d;
}

.coin-visual.flipping {
  animation: coin-flip 0.5s ease-in-out;
}

.simple-visual.spinning {
  animation: slot-spin 0.45s ease-in-out infinite;
}

.crash-canvas {
  width: 100%;
  height: 260px;
  display: block;
  margin-top: 18px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: inset 0 0 52px rgba(255, 255, 255, 0.025);
}

.crash-panel,
.tower-panel,
.mines-panel,
.vault-panel,
.hilo-panel {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 16px;
}

.tower-panel,
.mines-panel,
.vault-panel,
.hilo-panel {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.crash-panel > div,
.tower-panel > div,
.mines-panel > div,
.vault-panel > div,
.hilo-panel > div {
  display: grid;
  gap: 4px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.crash-panel span,
.tower-panel span,
.mines-panel span,
.vault-panel span,
.hilo-panel span {
  color: var(--text-muted);
  font-size: 0.76rem;
  font-weight: 650;
  text-transform: uppercase;
}

.crash-panel strong,
.tower-panel strong,
.mines-panel strong,
.vault-panel strong,
.hilo-panel strong {
  color: var(--text);
  font-size: 1.2rem;
  font-weight: 760;
  font-variant-numeric: tabular-nums;
}

/* Сцены результата для Сейфа и Больше/Меньше */
.game-scene {
  min-height: 180px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 14px;
  margin-top: 16px;
  padding: 22px;
  text-align: center;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition:
    border-color var(--motion-med) var(--ease-premium),
    background var(--motion-med) var(--ease-premium);
}

.game-scene.win {
  border-color: rgba(var(--success-rgb), 0.32);
  background: rgba(var(--success-rgb), 0.08);
  animation: vault-unlock var(--motion-slow) var(--ease-premium);
}

.game-scene.lose {
  border-color: rgba(239, 68, 68, 0.3);
  background: rgba(239, 68, 68, 0.07);
}

.game-state {
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 680;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.vault-door {
  width: 96px;
  height: 96px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border);
  transition:
    border-color var(--motion-med) var(--ease-premium),
    background var(--motion-med) var(--ease-premium);
}

.vault-door svg {
  width: 42px;
  height: 42px;
  color: var(--text);
}

.vault-scene.win .vault-door {
  border-color: rgba(var(--success-rgb), 0.4);
}

.vault-scene.win .vault-door svg {
  color: var(--success);
}

.vault-scene.lose .vault-door svg {
  color: var(--red);
}

.hilo-number {
  font-size: clamp(3rem, 9vw, 5.4rem);
  line-height: 1;
  font-weight: 760;
  font-variant-numeric: tabular-nums;
  color: var(--text);
}

.hilo-scene.win .hilo-number {
  color: var(--success);
}

.hilo-scene.lose .hilo-number {
  color: var(--red);
}

.tower-grid {
  display: grid;
  gap: 8px;
  margin-top: 18px;
}

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

.tower-row button {
  min-height: 48px;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 14px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 760;
  transition:
    color var(--motion-fast) var(--ease-premium),
    background var(--motion-fast) var(--ease-premium),
    border-color var(--motion-fast) var(--ease-premium),
    transform var(--motion-fast) var(--ease-premium);
}

.tower-row button:disabled {
  cursor: default;
  opacity: 0.72;
}

.tower-row button:not(:disabled):hover {
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.075);
  transform: translateY(-1px);
}

.tower-row button.opened {
  color: var(--success);
  border-color: rgba(var(--success-rgb), 0.35);
  background: rgba(var(--success-rgb), 0.1);
  animation: tower-unlock var(--motion-med) var(--ease-premium);
}

.tower-row button.mine {
  color: var(--red);
  border-color: rgba(239, 68, 68, 0.35);
  background: rgba(239, 68, 68, 0.1);
  animation: mine-hit var(--motion-med) var(--ease-premium);
}

.mines-board {
  display: grid;
  width: min(100%, 480px);
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  margin: 18px auto 0;
}

.mines-wrap {
  display: block;
}

.mines-board button {
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 14px;
  cursor: pointer;
  font-size: 1.08rem;
  font-weight: 760;
  transition:
    color var(--motion-fast) var(--ease-premium),
    background var(--motion-fast) var(--ease-premium),
    border-color var(--motion-fast) var(--ease-premium),
    transform var(--motion-fast) var(--ease-premium);
}

.mines-board button:disabled {
  cursor: default;
}

.mines-board button:not(:disabled):hover {
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.075);
  transform: translateY(-1px);
}

.mines-board button.opened {
  color: var(--success);
  border-color: rgba(var(--success-rgb), 0.36);
  background: rgba(var(--success-rgb), 0.1);
  animation: mine-open var(--motion-med) var(--ease-premium) both;
}

.mines-board button.opened::after {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--success);
}

.mines-board button.mine {
  color: var(--red);
  border-color: rgba(239, 68, 68, 0.36);
  background: rgba(239, 68, 68, 0.12);
  animation: mine-hit var(--motion-med) var(--ease-premium) both;
}

.mines-board button.mine::after {
  content: "x";
  color: var(--red);
  font-size: 1.2rem;
  font-weight: 800;
}

.mines-board button:nth-child(5n + 2) {
  animation-delay: 24ms;
}

.mines-board button:nth-child(5n + 3) {
  animation-delay: 48ms;
}

.mines-board button:nth-child(5n + 4) {
  animation-delay: 72ms;
}

.mines-board button:nth-child(5n) {
  animation-delay: 96ms;
}
.casino-result {
  margin-top: 18px;
}

.mines-board span:nth-child(5n + 2) {
  animation-delay: 24ms;
}

.mines-board span:nth-child(5n + 3) {
  animation-delay: 48ms;
}

.mines-board span:nth-child(5n + 4) {
  animation-delay: 72ms;
}

.mines-board span:nth-child(5n) {
  animation-delay: 96ms;
}

.result-card-mini {
  display: grid;
  gap: 6px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  position: relative;
  overflow: hidden;
  animation: result-enter var(--motion-page) var(--ease-premium) both;
}

.result-card-mini::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 -45%;
  width: 36%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.055), transparent);
  transform: skewX(-18deg);
  animation: result-sheen 0.78s var(--ease-premium) 0.08s both;
}

.result-card-mini.win {
  border-color: rgba(var(--success-rgb), 0.28);
  box-shadow: 0 0 0 1px rgba(var(--success-rgb), 0.04), 0 18px 58px rgba(0, 0, 0, 0.22);
}

.result-card-mini.lose {
  border-color: rgba(239, 68, 68, 0.22);
}

.result-card-mini span,
.result-card-mini small,
.seed-text {
  overflow-wrap: anywhere;
}

.result-card-mini span,
.result-card-mini small {
  color: var(--text-muted);
  font-size: 0.82rem;
}

.task-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
}

.task-column,
.task-list {
  display: grid;
  gap: 14px;
}

.task-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 14px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.task-card.done {
  border-color: rgba(var(--success-rgb), 0.28);
}

.task-card strong,
.task-card span,
.task-card small {
  display: block;
}

.task-card strong {
  font-weight: 700;
}

.task-card span,
.task-card small {
  color: var(--text-muted);
  line-height: 1.5;
}

.task-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(120px, 1fr));
  gap: 8px;
  align-items: center;
}

.task-code {
  width: 100%;
}

.progress-bar {
  height: 8px;
  margin-top: 8px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.07);
  border-radius: 999px;
}

.progress-bar i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--blue));
  border-radius: inherit;
}

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

.bonus-panel strong {
  color: var(--green);
  font-size: 1.55rem;
  font-weight: 600;
}

.bonus-panel span {
  color: var(--text-muted);
}

.wheel-panel {
  display: grid;
  gap: 14px;
  justify-items: start;
}

.daily-wheel-visual {
  width: 132px;
  height: 132px;
  display: grid;
  place-items: center;
  color: var(--text);
  background:
    conic-gradient(from 20deg, rgba(var(--accent-rgb),0.36), rgba(var(--blue-rgb),0.28), rgba(var(--gold-rgb),0.32), rgba(var(--success-rgb),0.24), rgba(var(--accent-rgb),0.36));
  border: 1px solid var(--border-hover);
  border-radius: 50%;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.28);
  font-size: 2rem;
  font-weight: 600;
}

.daily-wheel-visual.spinning {
  animation: wheel-spin 0.7s var(--ease);
}

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

.achievement-card {
  display: grid;
  gap: 6px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  opacity: 0.62;
}

.achievement-card.unlocked {
  opacity: 1;
  border-color: rgba(var(--gold-rgb), 0.26);
  background: rgba(var(--gold-rgb), 0.055);
}

.achievement-card strong {
  font-size: 0.92rem;
  font-weight: 700;
}

.achievement-card span,
.achievement-card small {
  color: var(--text-muted);
  font-size: 0.78rem;
  line-height: 1.45;
}

.wallet-panel {
  display: grid;
  gap: 12px;
}

.wallet-section {
  display: grid;
  gap: 10px;
}

.wallet-deposit-panel,
.wallet-withdraw-panel {
  padding: 14px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.wallet-deposit-panel {
  margin-top: 2px;
}

.wallet-withdraw-panel {
  margin-top: 4px;
}

.wallet-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.wallet-section-head h3 {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.92rem;
  font-weight: 750;
}

.wallet-summary,
.wallet-columns,
.wallet-history-grid,
.withdraw-form {
  display: grid;
  gap: 10px;
}

.wallet-summary,
.wallet-columns,
.withdraw-form {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.wallet-deposit-panel .wallet-columns {
  position: relative;
  gap: 28px;
}

.wallet-deposit-panel .wallet-columns::before {
  content: "";
  position: absolute;
  top: 2px;
  bottom: 2px;
  left: 50%;
  width: 1px;
  background: linear-gradient(
    180deg,
    transparent,
    rgba(255, 255, 255, 0.16),
    transparent
  );
  transform: translateX(-50%);
  pointer-events: none;
}

.wallet-history-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.telegram-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 12px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.wallet-summary .telegram-card {
  grid-column: 1 / -1;
}

.telegram-card strong,
.telegram-card span,
.wallet-block h3,
.wallet-notice strong,
.wallet-notice span {
  display: block;
}

.telegram-card strong,
.wallet-block h3 {
  font-size: 0.95rem;
  font-weight: 700;
}

.telegram-card span,
.wallet-notice span {
  color: var(--text-muted);
  font-size: 0.82rem;
}

.wallet-block {
  display: grid;
  gap: 8px;
  align-content: start;
}

.wallet-block h3 {
  margin: 0;
  color: var(--text-secondary);
}

.wallet-payment-row {
  grid-template-columns: minmax(0, 1fr) auto auto;
}

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

.package-card {
  min-height: 66px;
  display: grid;
  gap: 4px;
  align-content: center;
  justify-items: start;
  padding: 10px 12px;
  color: var(--text);
  text-align: left;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition:
    color var(--motion-fast) var(--ease-premium),
    background var(--motion-fast) var(--ease-premium),
    border-color var(--motion-fast) var(--ease-premium),
    box-shadow var(--motion-fast) var(--ease-premium),
    transform var(--motion-fast) var(--ease-premium);
}

.package-card:hover {
  border-color: rgba(var(--accent-rgb), 0.42);
  background: rgba(var(--accent-rgb), 0.09);
}

.package-card:disabled {
  cursor: not-allowed;
  opacity: 0.44;
  transform: none;
}

.package-card strong {
  color: var(--green);
  font-size: 1.08rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.package-card span {
  color: var(--text-muted);
  font-size: 0.76rem;
}

.withdraw-form {
  grid-template-columns: minmax(120px, 0.55fr) minmax(150px, 0.7fr) minmax(0, 1fr) auto;
  align-items: end;
  padding-top: 2px;
}

.deposit-custom-form {
  display: grid;
  grid-template-columns: minmax(120px, 1fr) minmax(92px, 0.6fr) auto;
  gap: 8px;
  align-items: end;
}

#custom-stars-form {
  grid-template-columns: minmax(120px, 1fr) auto;
}

.wallet-withdraw-section {
  padding-top: 2px;
}

.wallet-notice {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px 14px;
  align-items: center;
  padding: 12px;
  background: rgba(var(--success-rgb), 0.07);
  border: 1px solid rgba(var(--success-rgb), 0.2);
  border-radius: var(--radius-sm);
}

.wallet-notice .btn {
  grid-row: span 2;
}

.wallet-payment-notice {
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px 22px;
  margin-top: 18px;
  padding: 16px 2px;
  background: transparent;
  border: 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  border-radius: 0;
}

.wallet-notice-copy {
  display: grid;
  align-content: center;
  gap: 4px;
  min-width: 0;
}

.wallet-notice-copy strong {
  color: var(--text);
  font-size: 1rem;
  font-weight: 750;
  overflow-wrap: anywhere;
}

.wallet-notice-copy span {
  color: var(--text-muted);
  font-size: 0.78rem;
}

.wallet-notice-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.wallet-payment-notice .btn {
  min-width: 126px;
  grid-row: auto;
}

.wallet-payment-notice .wallet-notice-cancel {
  color: var(--red);
  background: rgba(239, 68, 68, 0.055);
  border-color: rgba(239, 68, 68, 0.2);
}

.wallet-payment-notice .wallet-notice-cancel:hover {
  background: rgba(239, 68, 68, 0.1);
  border-color: rgba(239, 68, 68, 0.3);
}

.expandable-list {
  display: grid;
  gap: 8px;
}

.expandable-list:not(.expanded) .expandable-extra {
  display: none;
}

.expandable-list.expanded .expandable-extra,
.admin-audit-list.expanded .admin-audit-extra {
  animation: panel-enter var(--motion-med) var(--ease-premium) both;
}

.list-toggle {
  width: 100%;
  min-height: 38px;
  margin-top: 8px;
  justify-content: center;
}

.wallet-history-list.expanded {
  max-height: 280px;
  overflow-y: auto;
  padding-right: 4px;
}

.wallet-history-toggle {
  width: auto;
  min-height: 28px;
  justify-self: center;
  grid-template-columns: 1fr;
  gap: 0;
  margin-top: 4px;
  padding: 5px 12px;
  border-radius: 999px;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.035);
  border-color: rgba(255, 255, 255, 0.08);
  font-size: 0.78rem;
  line-height: 1;
  white-space: nowrap;
}

.wallet-history-toggle:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.14);
}

.social-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  width: 100%;
  gap: 16px;
}

.social-wide {
  grid-column: 1 / -1;
}

.social-form {
  grid-template-columns: minmax(0, 1fr) minmax(120px, 160px) auto;
  align-items: end;
}

.social-note {
  margin-top: 12px;
}

.referral-summary {
  display: grid;
  grid-template-columns: minmax(220px, 0.38fr) minmax(0, 1fr);
  gap: 16px;
  align-items: stretch;
}

.referral-reward {
  display: grid;
  align-content: center;
  min-height: 152px;
  padding: 12px 20px 12px 2px;
  background: transparent;
  border: 0;
  border-right: 1px solid var(--border);
  border-radius: 0;
}

.referral-reward span,
.referral-reward small {
  color: var(--text-secondary);
  font-weight: 650;
}

.referral-reward strong {
  margin-top: 6px;
  color: var(--success);
  font-size: clamp(2.1rem, 6vw, 3.4rem);
  line-height: 0.95;
}

.referral-copy {
  display: grid;
  align-content: center;
  gap: 10px;
  min-width: 0;
}

.referral-copy .field {
  gap: 8px;
}

.referral-stats {
  margin-top: 16px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.referral-card .referral-stats .stat-card {
  min-height: 70px;
  padding: 10px 2px;
  background: transparent;
  border: 0;
  border-radius: 0;
}

.referral-card .referral-stats .stat-card:first-child {
  padding-right: 16px;
  border-right: 1px solid var(--border);
}

.referral-card .referral-stats .stat-card:last-child {
  padding-left: 16px;
}

.social-grid > .section-card .table-wrap {
  border: 0;
  border-radius: 0;
}

.promo-form {
  grid-template-columns: minmax(0, 1fr) auto;
}

.compact-box-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.earning-chart {
  height: 150px;
  display: grid;
  grid-template-columns: repeat(14, minmax(18px, 1fr));
  gap: 8px;
  align-items: end;
  margin-top: 16px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.chart-bar {
  height: 100%;
  min-width: 0;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 6px;
  align-items: end;
}

.chart-bar i {
  width: 100%;
  display: block;
  align-self: end;
  background: linear-gradient(180deg, rgba(var(--blue-rgb), 0.78), rgba(var(--gold-rgb), 0.42));
  border-radius: 999px 999px 4px 4px;
}

.chart-bar span {
  overflow: hidden;
  color: var(--text-muted);
  font-size: 0.72rem;
  text-align: center;
  text-overflow: ellipsis;
}

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

.box-card {
  min-height: 132px;
  display: grid;
  gap: 8px;
  align-content: start;
  padding: 16px;
  color: var(--text);
  text-align: left;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition:
    color var(--motion-fast) var(--ease-premium),
    background var(--motion-fast) var(--ease-premium),
    border-color var(--motion-fast) var(--ease-premium),
    box-shadow var(--motion-fast) var(--ease-premium),
    transform var(--motion-fast) var(--ease-premium);
}

.box-card:hover {
  border-color: rgba(var(--gold-rgb), 0.26);
  background: rgba(var(--gold-rgb), 0.055);
}

.box-card span,
.box-card strong,
.box-card small {
  display: block;
}

.box-card span {
  font-weight: 700;
}

.box-card strong {
  color: var(--gold);
  font-size: 1.32rem;
  font-weight: 600;
}

.box-card small {
  color: var(--text-muted);
  line-height: 1.45;
}

.box-result {
  display: grid;
  gap: 4px;
  margin-top: 12px;
  padding: 14px;
  background: rgba(var(--gold-rgb), 0.065);
  border: 1px solid rgba(var(--gold-rgb), 0.2);
  border-radius: var(--radius-sm);
  animation: box-pop var(--motion-page) var(--ease-premium);
}

.box-result strong,
.box-result span {
  display: block;
}

.box-result span {
  color: var(--text-secondary);
}

.leader-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  margin-bottom: 12px;
}

.leader-tab {
  min-height: 40px;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--border);
  border-radius: 12px;
  cursor: pointer;
  transition:
    color var(--motion-fast) var(--ease-premium),
    background var(--motion-fast) var(--ease-premium),
    border-color var(--motion-fast) var(--ease-premium);
}

.leader-tab.active,
.leader-tab:hover {
  color: var(--text);
  border-color: rgba(var(--accent-rgb), 0.38);
  background: rgba(var(--accent-rgb), 0.11);
}

.leader-row:nth-child(-n + 3) {
  border-color: rgba(var(--gold-rgb), 0.2);
  background: rgba(var(--gold-rgb), 0.05);
}

@keyframes wheel-spin {
  from { transform: rotate(0); }
  to { transform: rotate(1080deg); }
}

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

@media (prefers-reduced-motion: reduce) {
  .ambient-caustic {
    display: none;
  }
}

@media (max-width: 760px) {
  .ambient-caustic {
    opacity: 0.86;
    transform: scale(1.1);
  }
}

@keyframes page-enter {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes panel-enter {
  from {
    opacity: 0;
    transform: translateY(5px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes backdrop-enter {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes dialog-enter {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.985);
  }

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

@keyframes backdrop-exit {
  from { opacity: 1; }
  to { opacity: 0; }
}

@keyframes dialog-exit {
  from {
    opacity: 1;
    transform: translateY(0) scale(1);
  }

  to {
    opacity: 0;
    transform: translateY(5px) scale(0.99);
  }
}

@keyframes pill-shine {
  0% {
    left: -60%;
    opacity: 0;
  }

  18% {
    opacity: 1;
  }

  100% {
    left: 120%;
    opacity: 0;
  }
}

@keyframes result-enter {
  from {
    opacity: 0;
    transform: translateY(6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes result-sheen {
  from {
    left: -45%;
  }

  to {
    left: 120%;
  }
}

@keyframes tower-unlock {
  from {
    opacity: 0.55;
    transform: translateY(3px);
    box-shadow: inset 0 0 0 0 rgba(255, 255, 255, 0);
  }
  to {
    opacity: 1;
    transform: translateY(0);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14), 0 0 18px rgba(var(--success-rgb), 0.08);
  }
}

@keyframes mine-open {
  from {
    opacity: 0.5;
    transform: scale(0.97);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes mine-hit {
  from {
    opacity: 0.64;
    transform: scale(0.98);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes vault-unlock {
  from {
    opacity: 0.68;
    transform: translateY(5px);
    box-shadow: inset 0 0 0 0 rgba(255, 255, 255, 0);
  }
  to {
    opacity: 1;
    transform: translateY(0);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1), 0 0 24px rgba(255, 255, 255, 0.035);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

@keyframes coin-flip {
  from { transform: rotateY(0); }
  to { transform: rotateY(1080deg); }
}

@keyframes slot-spin {
  0% { transform: translateY(0); filter: blur(0); }
  50% { transform: translateY(-8px); filter: blur(2px); }
  100% { transform: translateY(0); filter: blur(0); }
}

.toast-root {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1000;
  display: grid;
  gap: 10px;
  width: min(360px, calc(100vw - 32px));
}

.toast {
  padding: 16px 18px;
  background: var(--glass);
  backdrop-filter: blur(40px);
  border: 1px solid var(--border);
  border-left: 3px solid var(--blue);
  border-radius: var(--radius-sm);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.28);
  animation: toast-enter var(--motion-page) var(--ease-premium) both;
}

.toast.is-leaving {
  animation: toast-exit var(--motion-fast) var(--ease-standard) both;
  pointer-events: none;
}

.toast-success {
  border-left-color: var(--green);
}

.toast-error {
  border-left-color: var(--red);
}

.toast-reward {
  border-left-color: var(--gold);
}

@keyframes toast-enter {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes toast-exit {
  from {
    opacity: 1;
    transform: translateY(0);
  }

  to {
    opacity: 0;
    transform: translateY(-5px);
  }
}

.balance-pulse {
  animation: balance-update 360ms var(--ease-premium) both;
}

@keyframes balance-update {
  0% {
    opacity: 0.72;
    text-shadow: none;
  }

  50% {
    opacity: 1;
    color: var(--green);
    text-shadow: 0 0 12px rgba(255, 255, 255, 0.14);
  }

  100% {
    opacity: 1;
    text-shadow: none;
  }
}

.admin-frame {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  align-items: start;
  gap: 18px;
  min-width: 0;
}

.admin-sidebar {
  position: sticky;
  top: 28px;
  align-self: start;
  display: grid;
  gap: 18px;
  padding: 16px;
  animation: none;
}

.admin-sidebar-head {
  display: grid;
  gap: 4px;
  padding: 8px;
}

.admin-sidebar-head strong,
.admin-jackpot strong {
  display: block;
  font-size: 1.35rem;
  font-weight: 750;
}

.admin-sidebar-head span,
.breadcrumbs,
.admin-jackpot span {
  color: var(--text-muted);
  font-size: 0.82rem;
}

.admin-nav,
.admin-main,
.admin-content {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.admin-main,
.admin-content {
  align-content: start;
}

.admin-nav-item {
  min-height: 46px;
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 0 12px;
  color: var(--text-secondary);
  border: 1px solid transparent;
  border-radius: 14px;
  transition:
    color var(--motion-fast) var(--ease-premium),
    background var(--motion-fast) var(--ease-premium),
    border-color var(--motion-fast) var(--ease-premium);
}

.admin-nav-item:hover,
.admin-nav-item.active {
  color: var(--text);
  background: rgba(var(--accent-rgb), 0.13);
  border-color: rgba(var(--accent-rgb), 0.28);
}

.admin-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  min-width: 0;
}

.admin-header h1 {
  margin: 6px 0 0;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  letter-spacing: 0;
}

.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 6px;
}

.breadcrumbs svg {
  width: 14px;
  height: 14px;
}

.admin-actions,
.admin-row-actions,
.admin-quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.admin-metrics,
.admin-grid-two,
.admin-filter-panel,
.admin-form {
  display: grid;
  gap: 12px;
}

.admin-metrics {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.admin-metric {
  display: grid;
  gap: 8px;
  align-content: start;
  padding: 16px;
}

.admin-metric > svg {
  color: var(--cyan);
}

.admin-metric span,
.admin-metric small {
  color: var(--text-muted);
  font-size: 0.82rem;
}

.admin-metric strong {
  font-size: clamp(1.2rem, 3vw, 1.8rem);
  font-weight: 750;
  font-variant-numeric: tabular-nums;
}

.admin-grid-two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  align-items: start;
}

.admin-card-footer {
  display: flex;
  justify-content: flex-end;
  margin-top: 12px;
}

.admin-chart {
  height: 170px;
  display: grid;
  grid-template-columns: repeat(30, minmax(10px, 1fr));
  gap: 5px;
  align-items: end;
  overflow-x: auto;
}

.admin-bar {
  min-width: 10px;
  height: 100%;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 6px;
  align-items: end;
}

.admin-bar i {
  width: 100%;
  min-height: 6px;
  display: block;
  border-radius: 999px 999px 4px 4px;
  background: linear-gradient(180deg, var(--cyan), var(--accent));
}

.admin-bar span {
  color: var(--text-muted);
  font-size: 0.62rem;
  writing-mode: vertical-rl;
}

.admin-jackpot {
  display: grid;
  gap: 8px;
  min-height: 150px;
  align-content: center;
  padding: 16px;
  background: rgba(var(--gold-rgb), 0.06);
  border: 1px solid rgba(var(--gold-rgb), 0.16);
  border-radius: var(--radius-sm);
}

.admin-jackpot strong {
  color: var(--gold);
  font-size: clamp(2rem, 6vw, 3.5rem);
  font-variant-numeric: tabular-nums;
}

.admin-action-panel,
.admin-help-card {
  display: grid;
  gap: 14px;
  align-content: start;
}

.admin-action-panel p,
.admin-help-card p {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.55;
}

.admin-filter-panel,
.admin-form {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: end;
}

.admin-settings-form {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.admin-pool-card {
  display: grid;
  gap: 12px;
}

.admin-pool-form {
  grid-template-columns: minmax(0, 1fr) minmax(120px, 0.3fr);
}

.admin-pool-mini {
  margin-top: 2px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.admin-upload-card {
  display: grid;
  gap: 14px;
}

.admin-upload-heading,
.admin-media-folder .section-heading {
  justify-content: space-between;
  margin-bottom: 0;
}

.admin-upload-heading > div,
.admin-media-folder .section-heading > div:first-child {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.admin-upload-heading > span {
  font-size: 0.8rem;
  text-align: right;
}

.admin-upload-layout {
  display: grid;
  grid-template-columns: minmax(240px, 0.42fr) minmax(320px, 1fr);
  gap: 14px;
  align-items: stretch;
}

.admin-upload-controls {
  display: grid;
  gap: 10px;
  align-content: start;
}

.admin-create-folder {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 48px;
  gap: 8px;
  align-items: end;
}

.admin-upload-dropzone {
  min-height: 138px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 6px;
  padding: 20px;
  color: var(--text-secondary);
  text-align: center;
  border: 1px dashed rgba(255, 255, 255, 0.22);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.025);
  cursor: pointer;
  transition: border-color var(--motion-med) var(--ease-premium), background var(--motion-med) var(--ease-premium), color var(--motion-med) var(--ease-premium);
}

.admin-upload-dropzone:hover,
.admin-upload-dropzone.is-dragging {
  color: var(--text);
  border-color: rgba(var(--accent-rgb), 0.62);
  background: rgba(var(--accent-rgb), 0.09);
}

.admin-upload-dropzone svg {
  width: 26px;
  height: 26px;
}

.admin-upload-dropzone strong {
  font-size: 0.94rem;
}

.admin-upload-dropzone span,
.admin-upload-summary,
.admin-upload-note {
  color: var(--text-muted);
  font-size: 0.78rem;
}

.admin-upload-actions {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 12px;
  align-items: center;
}

.admin-upload-summary {
  white-space: nowrap;
}

.admin-upload-note {
  margin: -2px 0 0;
  line-height: 1.45;
}

.admin-upload-queue {
  display: grid;
  gap: 7px;
  max-height: 360px;
  overflow-y: auto;
  padding-right: 4px;
}

.admin-upload-queue[hidden] {
  display: none;
}

.admin-upload-row {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(72px, auto);
  gap: 4px 12px;
  min-width: 0;
  padding: 10px 12px 13px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.025);
  overflow: hidden;
}

.admin-upload-row > div:first-child {
  min-width: 0;
  display: flex;
  gap: 8px;
  align-items: baseline;
}

.admin-upload-row strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.84rem;
}

.admin-upload-row span,
.admin-upload-row b {
  color: var(--text-muted);
  font-size: 0.72rem;
}

.admin-upload-row b {
  max-width: 260px;
  justify-self: end;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-upload-row.is-complete b {
  color: var(--success);
}

.admin-upload-row.is-error b {
  color: #fca5a5;
}

.admin-upload-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: rgba(255, 255, 255, 0.04);
}

.admin-upload-progress i {
  width: 0;
  height: 100%;
  display: block;
  background: var(--text-secondary);
  transition: width 0.16s linear;
}

.admin-upload-row.is-complete .admin-upload-progress i {
  background: var(--success);
}

.admin-media-folder-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  align-items: start;
}

.admin-media-folder {
  min-width: 0;
  display: grid;
  gap: 12px;
}

.admin-media-files {
  display: grid;
  gap: 6px;
  max-height: 370px;
  overflow-y: auto;
  padding-right: 4px;
}

.admin-media-file {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 40px;
  gap: 8px;
  align-items: center;
  padding: 8px 8px 8px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.075);
}

.admin-media-file:last-child {
  border-bottom: 0;
}

.admin-media-file > div {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.admin-media-file strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.84rem;
}

.admin-media-file span {
  color: var(--text-muted);
  font-size: 0.72rem;
}

.admin-media-file .icon-button {
  width: 36px;
  height: 36px;
  min-height: 36px;
}

.admin-media-empty {
  min-height: 72px;
}

.admin-form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  grid-column: 1 / -1;
  align-items: center;
}

.admin-inline-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 86px 48px;
  gap: 8px;
  margin-bottom: 12px;
}

.admin-wide {
  grid-column: 1 / -1;
}

.admin-link {
  color: var(--cyan);
  font-weight: 650;
}

.admin-copy-code {
  color: var(--cyan);
  font: inherit;
  font-weight: 700;
  background: transparent;
  border: 0;
  padding: 0;
  cursor: pointer;
}

.status-badge {
  display: inline-grid;
  place-items: center;
  min-height: 24px;
  margin: 2px 4px 2px 0;
  padding: 0 8px;
  color: var(--text-secondary);
  font-size: 0.72rem;
  font-weight: 700;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
}

.status-ok {
  color: var(--success);
  border-color: rgba(var(--success-rgb), 0.3);
  background: rgba(var(--success-rgb), 0.08);
}

.status-danger {
  color: #fca5a5;
  border-color: rgba(239, 68, 68, 0.3);
  background: rgba(239, 68, 68, 0.08);
}

.admin-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 14px;
}

.admin-table-toggle {
  width: 100%;
  min-height: 40px;
  margin-top: 10px;
}

.admin-pagination span {
  color: var(--text-muted);
  font-weight: 650;
}

.admin-table-wrap {
  max-width: 100%;
}

.admin-table {
  min-width: 760px;
}

.admin-table th,
.admin-table td {
  white-space: nowrap;
  overflow-wrap: normal;
}

.admin-user-hero {
  grid-template-columns: auto minmax(0, 1fr) auto;
}

.toggle-line {
  min-height: 48px;
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--text-secondary);
  font-weight: 650;
}

.toggle-line input {
  width: 18px;
  height: 18px;
  accent-color: rgb(var(--accent-rgb));
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(3, 3, 8, 0.68);
  backdrop-filter: blur(16px);
}

.admin-modal {
  width: min(520px, 100%);
  display: grid;
  gap: 16px;
  padding: 18px;
  transform-origin: center;
  animation: dialog-enter var(--motion-slow) var(--ease-premium) both;
}

.admin-modal-head,
.admin-modal-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.admin-modal-head h2 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
}

.admin-modal-body {
  display: grid;
  gap: 12px;
}

.admin-menu-toggle {
  display: none;
}

@media (max-width: 760px) {
  .app-shell {
    padding: 14px 12px 92px;
  }

  .auth-layout {
    min-height: calc(100vh - 116px);
  }

  .mode-button {
    grid-template-columns: 1fr;
    font-size: 0.78rem;
  }

  .layout {
    min-height: calc(100vh - 116px);
    display: block;
  }

  .nav-bar {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: 12px;
    top: auto;
    min-height: 0;
    grid-template-columns: repeat(auto-fit, minmax(54px, 1fr));
    gap: 4px;
    padding: 8px;
    border-radius: 20px;
    z-index: 100;
  }

  .nav-item {
    width: auto;
    height: 54px;
    min-height: 54px;
    grid-template-rows: 20px auto;
    padding: 7px 4px;
    border-radius: 14px;
    font-size: clamp(0.58rem, 2.4vw, 0.68rem);
  }

  .content {
    gap: 14px;
    padding-top: 0;
  }

  .content-topbar {
    margin-bottom: -12px;
  }

  .content-topbar + .page-title > div:first-child {
    padding-right: 96px;
  }

  .language-switch button {
    min-height: 30px;
    padding: 0 14px;
    font-size: 0.76rem;
  }

  .admin-frame {
    display: block;
  }

  .admin-menu-toggle {
    position: fixed;
    top: 14px;
    right: 14px;
    z-index: 121;
    display: grid;
  }

  .admin-sidebar {
    position: fixed;
    top: 12px;
    left: 12px;
    bottom: 92px;
    z-index: 120;
    width: min(280px, calc(100vw - 24px));
    overflow-y: auto;
    transform: translateX(calc(-100% - 18px));
    transition: transform var(--motion-page) var(--ease-premium);
  }

  .admin-sidebar.open {
    transform: translateX(0);
  }

  .admin-main {
    gap: 14px;
  }

  .admin-header {
    display: grid;
    align-items: start;
    padding-right: 56px;
  }

  .admin-header h1 {
    font-size: 2.1rem;
    line-height: 1.05;
  }

  .admin-actions {
    width: 100%;
  }

  .admin-actions .btn {
    width: 100%;
  }

  .admin-metrics,
  .admin-grid-two,
  .admin-media-folder-grid,
  .admin-filter-panel,
  .admin-form {
    grid-template-columns: 1fr;
  }

  .admin-upload-heading {
    align-items: flex-start;
    display: grid;
  }

  .admin-upload-heading > span {
    text-align: left;
  }

  .admin-upload-layout {
    grid-template-columns: 1fr;
  }

  .admin-upload-actions {
    grid-column: auto;
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .admin-upload-actions .btn {
    width: 100%;
  }

  .admin-upload-summary {
    white-space: normal;
  }

  .admin-upload-dropzone {
    min-height: 118px;
  }

  .admin-media-folder .section-heading {
    align-items: flex-start;
  }

  .admin-quick-actions .btn,
  .admin-form .btn {
    width: 100%;
  }

  .admin-chart {
    grid-template-columns: repeat(30, minmax(12px, 1fr));
  }

  .admin-table {
    min-width: 620px;
  }

  .admin-user-hero {
    grid-template-columns: 58px minmax(0, 1fr);
  }

  .admin-user-hero .profile-balance {
    grid-column: 1 / -1;
  }

  .admin-inline-form {
    grid-template-columns: minmax(0, 1fr) 72px 44px;
  }

  .admin-modal-actions {
    display: grid;
  }

  .page-title {
    display: grid;
    align-items: start;
    gap: 10px;
    padding-bottom: 2px;
  }

  .page-title > div:first-child {
    gap: 5px;
  }

  .page-title h1 {
    font-size: clamp(1.6rem, 7vw, 2rem);
    line-height: 1.08;
    letter-spacing: -0.01em;
  }

  .page-title p {
    font-size: 0.875rem;
    line-height: 1.45;
    max-width: 42ch;
  }

  .balance-pill {
    width: max-content;
    max-width: 100%;
    gap: 8px;
    padding: 9px 12px;
    text-align: left;
    justify-self: start;
  }

  .balance-pill span {
    font-size: 0.72rem;
  }

  .balance-pill strong {
    max-width: min(68vw, 220px);
    font-size: clamp(1.18rem, 6vw, 1.5rem);
    line-height: 1.04;
  }

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

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

  .referral-reward {
    min-height: 120px;
    padding: 4px 2px 16px;
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }

  .referral-card .referral-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .section-card,
  .profile-hero,
  .catalog-card,
  .media-body,
  .collection-card {
    padding: 16px;
    border-radius: 20px;
  }

  .profile-workspace,
  .profile-primary,
  .profile-secondary,
  .social-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .content,
  .profile-workspace,
  .profile-primary,
  .profile-secondary,
  .social-grid,
  .section-card,
  .profile-hero,
  .copy-row,
  .compact-form,
  .social-form,
  .mini-row {
    width: 100%;
    max-width: 100%;
  }

  .profile-hero,
  .compact-form,
  .copy-row,
  .session-row,
  .stats-grid,
  .wallet-summary,
  .wallet-columns,
  .wallet-history-grid,
  .withdraw-form,
  .deposit-custom-form,
  .telegram-card,
  .package-grid,
  .wallet-notice,
  .referral-summary,
  .social-grid,
  .social-form,
  .box-grid,
  .leader-tabs,
  .catalog-toolbar,
  .catalog-grid,
  .content-gallery-grid,
  .collection-card,
  .mini-row,
  .casino-topline,
  .casino-layout,
  .casino-layout-clean,
  .game-form,
  .game-form.three,
  .task-layout,
  .task-card,
  .achievement-grid {
    grid-template-columns: 1fr;
  }

  .profile-secondary {
    position: static;
  }

  .content-player-actions {
    grid-template-columns: 1fr;
  }

  .profile-hero {
    position: static;
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 12px;
  }

  .avatar {
    width: 58px;
    height: 58px;
    border-radius: 18px;
  }

  .profile-login h2 {
    font-size: 1.08rem;
  }

  .profile-balance {
    grid-column: 1 / -1;
    width: 100%;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 6px;
    gap: 10px;
  }

  .stats-grid,
  .wallet-summary,
  .package-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .wallet-deposit-panel .wallet-columns {
    gap: 18px;
  }

  .wallet-deposit-panel .wallet-columns::before {
    top: 50%;
    bottom: auto;
    left: 0;
    right: 0;
    width: auto;
    height: 1px;
    background: linear-gradient(
      90deg,
      transparent,
      rgba(255, 255, 255, 0.16),
      transparent
    );
    transform: translateY(-50%);
  }

  .stat-card,
  .package-card,
  .telegram-card,
  .mini-row {
    padding: 12px;
  }

  .stat-card {
    display: grid;
    align-content: center;
    min-height: 68px;
  }

  .casino-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .casino-tab {
    min-height: 46px;
    padding: 0 10px;
    font-size: 0.82rem;
  }

  .casino-board,
  .casino-live {
    min-height: 0;
    padding: 16px;
  }

  .choice-visual {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .choice-stats {
    grid-template-columns: 1fr;
  }

  .choice-stats > div {
    min-height: 74px;
  }

  .crash-panel,
  .tower-panel {
    grid-template-columns: 1fr;
  }

  .mines-panel,
  .vault-panel,
  .hilo-panel {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  .mines-panel > div,
  .vault-panel > div,
  .hilo-panel > div {
    padding: 10px;
  }

  .mines-panel strong,
  .vault-panel strong,
  .hilo-panel strong {
    font-size: clamp(0.92rem, 4vw, 1.08rem);
    overflow-wrap: anywhere;
  }

  .crash-canvas {
    height: 220px;
  }

  .game-scene {
    min-height: 150px;
    padding: 18px;
  }

  .vault-door {
    width: 80px;
    height: 80px;
  }

  .vault-door svg {
    width: 36px;
    height: 36px;
  }

  .mines-board {
    width: 100%;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
  }

  .playing-card {
    width: 46px;
    height: 64px;
  }

  .profile-balance strong,
  .stat-card strong {
    font-size: clamp(1.02rem, 5vw, 1.28rem);
    line-height: 1.1;
    overflow-wrap: anywhere;
  }

  .wallet-columns,
  .wallet-history-grid,
  .withdraw-form,
  .deposit-custom-form,
  .social-grid,
  .social-form,
  .box-grid {
    grid-template-columns: 1fr;
  }

  .leader-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .social-wide {
    grid-column: auto;
  }

  .earning-chart {
    max-width: 100%;
    grid-template-columns: repeat(14, minmax(22px, 1fr));
    overflow-x: auto;
    padding: 12px;
  }

  .table-wrap {
    max-width: 100%;
  }

  .data-table {
    min-width: 360px;
  }

  .data-table th,
  .data-table td {
    padding: 11px 10px;
    font-size: 0.78rem;
  }

  .social-form .btn,
  .withdraw-form .btn,
  .compact-form .btn {
    width: 100%;
  }

  .task-actions {
    grid-template-columns: 1fr;
  }

  .task-code {
    width: 100%;
  }

  .collection-actions {
    align-items: stretch;
  }

  .wallet-notice .btn {
    grid-row: auto;
  }

  .wallet-payment-notice {
    grid-template-columns: 1fr;
  }

  .wallet-notice-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .wallet-payment-notice .btn {
    width: 100%;
    min-width: 0;
  }

  .profile-hero,
  .profile-balance {
    text-align: left;
  }

  .profile-hero-clean,
  .profile-wallet-card,
  .profile-purchases-card,
  .profile-security-card,
  .profile-promo-card,
  .profile-password-form,
  .profile-promo-form {
    grid-column: auto;
    grid-template-columns: 1fr;
  }

  .profile-hero-clean {
    grid-template-columns: 58px minmax(0, 1fr);
  }

  .profile-promo-form .btn {
    width: 100%;
  }

  .danger-btn {
    width: 100%;
  }

  .toast-root {
    top: 14px;
    right: 16px;
    left: 16px;
    width: auto;
  }
}

/* Layout polish: shared topbar, consistent density and mobile-safe navigation. */
.content-topbar {
  min-height: 40px;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: -4px;
}

.topbar-balance {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 12px;
  font-size: 0.76rem;
  font-weight: 650;
}

.topbar-balance svg {
  width: 16px;
  height: 16px;
}

.topbar-balance strong {
  color: var(--text);
  font-size: 1rem;
  font-weight: 760;
  font-variant-numeric: tabular-nums;
}

.profile-mobile-tabs {
  display: none;
}

.admin-sidebar-backdrop {
  display: none;
}

.admin-users-mobile {
  display: none;
}

.admin-audit-list:not(.expanded) .admin-audit-extra {
  display: none;
}

.admin-audit-toggle {
  width: auto;
  min-height: 34px;
  margin: 12px auto 0;
  padding: 7px 14px;
}

.profile-hero-clean {
  grid-template-columns: auto minmax(0, 1fr);
}

.placeholder-card {
  min-height: 132px;
}

.empty-table {
  min-height: 64px;
}

@media (max-width: 760px) {
  .app-shell {
    padding-bottom: calc(112px + env(safe-area-inset-bottom));
  }

  .content {
    padding-bottom: 28px;
  }

  .nav-bar {
    bottom: calc(10px + env(safe-area-inset-bottom));
    background: rgba(16, 16, 18, 0.94);
    backdrop-filter: blur(24px) saturate(115%);
    box-shadow: 0 16px 44px rgba(0, 0, 0, 0.58);
    transition: transform var(--motion-med) var(--ease-premium), opacity var(--motion-fast) var(--ease-standard);
  }

  .nav-bar.nav-bar-hidden {
    opacity: 0;
    transform: translateY(calc(100% + 24px + env(safe-area-inset-bottom)));
    pointer-events: none;
  }

  .content-topbar {
    min-height: 40px;
    margin-bottom: -4px;
  }

  .topbar-balance {
    min-height: 36px;
    max-width: calc(100vw - 126px);
    padding: 0 10px;
  }

  .topbar-balance span {
    display: none;
  }

  .topbar-balance strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .content-topbar + .page-title > div:first-child {
    padding-right: 0;
  }

  .profile-mobile-tabs {
    position: sticky;
    top: 8px;
    z-index: 40;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 4px;
    padding: 5px;
    background: rgba(18, 18, 20, 0.94);
    backdrop-filter: blur(22px);
  }

  .profile-mobile-tabs button {
    min-width: 0;
    min-height: 44px;
    display: grid;
    grid-template-columns: 18px minmax(0, auto);
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 0 8px;
    color: var(--text-muted);
    background: transparent;
    border: 1px solid transparent;
    border-radius: 12px;
    font-size: 0.72rem;
    font-weight: 700;
  }

  .profile-mobile-tabs button.active {
    color: var(--text);
    background: rgba(255, 255, 255, 0.075);
    border-color: rgba(255, 255, 255, 0.11);
  }

  .profile-mobile-tabs svg {
    width: 18px;
    height: 18px;
  }

  .profile-mobile-hidden {
    display: none !important;
  }

  .profile-workspace:has(.profile-wallet-card:not(.profile-mobile-hidden)),
  .profile-workspace:has(.profile-purchases-card:not(.profile-mobile-hidden)) {
    display: block;
  }

  .profile-wallet-card,
  .profile-purchases-card {
    margin-top: 0;
  }

  .admin-menu-toggle {
    top: 62px;
    right: 12px;
  }

  .admin-header {
    padding-right: 0;
  }

  .admin-sidebar {
    left: 0;
    transform: translateX(calc(-100% - 2px));
  }

  .admin-sidebar-backdrop {
    position: fixed;
    inset: 0;
    z-index: 119;
    display: block;
    visibility: hidden;
    opacity: 0;
    background: rgba(0, 0, 0, 0.56);
    border: 0;
    transition: opacity var(--motion-med) var(--ease-standard), visibility var(--motion-med) var(--ease-standard);
  }

  .admin-sidebar-backdrop.open {
    visibility: visible;
    opacity: 1;
  }

  .admin-sidebar.open {
    left: 12px;
  }

  .empty-table {
    min-height: 58px;
  }
}

/* Gallery and game surfaces. */
.content-gallery-grid {
  grid-template-columns: repeat(2, minmax(320px, 520px));
  justify-content: center;
}

.gallery-choice-preview {
  isolation: isolate;
  background: #141518;
}

.gallery-choice-preview img {
  filter: grayscale(1) brightness(0.62) contrast(1.08);
  transform: scale(1.01);
}

.gallery-choice-preview::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.04), rgba(0, 0, 0, 0.34));
  pointer-events: none;
}

.gallery-preview-symbol {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  pointer-events: none;
}

.gallery-preview-symbol svg {
  width: 46px;
  height: 46px;
  padding: 12px;
  color: rgba(255, 255, 255, 0.92);
  background: rgba(8, 8, 10, 0.54);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  backdrop-filter: blur(14px);
}

.gallery-choice-preview .badge {
  z-index: 3;
}

.game-intro {
  max-width: 72ch;
  margin: -4px 0 16px;
  color: var(--text-muted);
  font-size: 0.82rem;
  line-height: 1.5;
}

.tower-row button:disabled,
.mines-board button:disabled {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.035), transparent),
    rgba(255, 255, 255, 0.018);
}

.tower-grid,
.mines-wrap {
  padding-top: 2px;
}

/* Admin charts and scrollable data. */
.admin-chart {
  position: relative;
  grid-template-columns: repeat(auto-fit, minmax(34px, 1fr));
  gap: 7px;
  padding: 12px 10px 8px;
  background: rgba(255, 255, 255, 0.018);
  border: 1px solid rgba(255, 255, 255, 0.055);
  border-radius: var(--radius-sm);
}

.admin-chart::before {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 29px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.admin-chart .empty-table {
  grid-column: 1 / -1;
  width: 100%;
  align-self: stretch;
}

.admin-bar {
  min-width: 0;
  grid-template-rows: minmax(8px, 1fr) 18px;
  gap: 5px;
  position: relative;
  z-index: 1;
}

.admin-bar i {
  width: min(56%, 48px);
  min-height: 8px;
  max-height: 100%;
  justify-self: center;
  border-radius: 10px 10px 3px 3px;
  background: linear-gradient(180deg, rgba(230, 236, 245, 0.9), rgba(137, 151, 170, 0.42));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.admin-bar span {
  overflow: hidden;
  writing-mode: horizontal-tb;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 760px) {
  .content-gallery-grid {
    grid-template-columns: 1fr;
  }

  .admin-menu-toggle {
    top: 72px;
  }

  .admin-header {
    padding-right: 54px;
  }

  .admin-chart {
    height: 184px;
    grid-template-columns: repeat(auto-fit, minmax(28px, 1fr));
    overflow: hidden;
  }

  .admin-table-wrap::before {
    content: "Проведите в сторону";
    position: sticky;
    left: 0;
    display: block;
    width: max-content;
    margin: 0 0 8px;
    color: var(--text-muted);
    font-size: 0.68rem;
    font-weight: 650;
  }

  .admin-users-desktop {
    display: none;
  }

  .admin-users-mobile {
    display: grid;
  }

  .admin-user-mobile-row {
    display: grid;
    gap: 10px;
    padding: 13px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
  }

  .admin-user-mobile-head,
  .admin-user-mobile-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
  }

  .admin-user-mobile-head > span,
  .admin-user-mobile-meta {
    color: var(--text-muted);
    font-size: 0.74rem;
  }

  .admin-user-mobile-meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
  }

  .admin-user-mobile-meta span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .admin-user-mobile-meta strong {
    color: var(--text-secondary);
  }

  html[lang="en"] .admin-table-wrap::before {
    content: "Swipe sideways";
  }

  .admin-table {
    min-width: 620px;
  }
}

/* Profile workspace: one task at a time. */
.profile-tabs {
  width: min(760px, 100%);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  padding: 0;
  margin: 0 auto;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--border);
  border-radius: 0;
  box-shadow: none;
  backdrop-filter: none;
}

.profile-tabs button {
  position: relative;
  min-width: 0;
  min-height: 62px;
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: 20px 16px;
  place-items: center;
  align-content: center;
  gap: 5px;
  padding: 8px 6px;
  color: var(--text-muted);
  background: transparent;
  border: 0;
  border-radius: 0;
  font-size: 0.74rem;
  line-height: 1;
  font-weight: 700;
  cursor: pointer;
  transition: color var(--motion-fast) var(--ease-standard), background var(--motion-fast) var(--ease-standard);
}

.profile-tabs button::after {
  content: "";
  position: absolute;
  left: 28%;
  right: 28%;
  bottom: -1px;
  height: 2px;
  border-radius: 999px;
  background: var(--text);
  opacity: 0;
  transform: scaleX(0.55);
  transition: opacity var(--motion-fast) var(--ease-standard), transform var(--motion-fast) var(--ease-premium);
}

.profile-tabs button:hover,
.profile-tabs button.active {
  color: var(--text);
  background: transparent;
}

.profile-tabs button.active::after {
  opacity: 1;
  transform: scaleX(1);
}

.profile-tabs svg {
  width: 18px;
  height: 18px;
  display: block;
}

.profile-workspace {
  width: min(1000px, 100%);
  display: block;
  margin: 0 auto;
}

.profile-view-hidden {
  display: none !important;
}

.panel-enter-active {
  animation: panel-enter var(--motion-med) var(--ease-premium) both;
}

.profile-account-panel {
  padding: 0;
  overflow: hidden;
}

.profile-account-panel .profile-hero-clean {
  padding: 20px;
  border-bottom: 1px solid var(--border);
}

@media (min-width: 761px) {
  .profile-account-panel .profile-hero-clean {
    grid-template-columns: auto minmax(0, 1fr) minmax(160px, max-content);
  }
}

.profile-vip-status {
  min-width: 160px;
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr) 16px;
  align-items: center;
  gap: 9px;
  padding: 10px 11px;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--border);
  border-radius: 12px;
  text-decoration: none;
  transition: color var(--motion-fast) var(--ease-standard), background var(--motion-fast) var(--ease-standard), border-color var(--motion-fast) var(--ease-standard);
}

.profile-vip-status:hover,
.profile-vip-status.is-active {
  color: var(--text);
  background: rgba(255, 255, 255, 0.065);
  border-color: rgba(255, 255, 255, 0.16);
}

.profile-vip-status > svg:first-child {
  width: 19px;
  height: 19px;
}

.profile-vip-status > svg:last-child {
  width: 15px;
  height: 15px;
  color: var(--text-muted);
}

.profile-vip-status span {
  min-width: 0;
}

.profile-vip-status strong,
.profile-vip-status small {
  display: block;
  overflow-wrap: anywhere;
}

.profile-vip-status strong {
  font-size: 0.78rem;
  font-weight: 750;
}

.profile-vip-status small {
  margin-top: 2px;
  color: var(--text-muted);
  font-size: 0.67rem;
  font-weight: 600;
}

.profile-account-telegram {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
}

.profile-account-telegram .telegram-card {
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
}

.profile-account-telegram .telegram-card .btn {
  min-width: 132px;
}

.profile-account-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
}

.profile-account-panel .profile-promo-form {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.profile-subsection {
  min-width: 0;
  padding: 20px;
}

.profile-promo-card {
  border-right: 1px solid var(--border);
}

.profile-security-card .profile-password-form {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.profile-security-card .profile-password-form .btn {
  grid-column: 1 / -1;
}

.profile-logout-button {
  width: 100%;
  margin-top: 12px;
}

.profile-deposit-card,
.profile-withdraw-card,
.profile-purchases-card {
  padding: 20px;
}

.profile-deposit-card > .section-heading,
.profile-withdraw-card > .section-heading,
.profile-purchases-card > .section-heading {
  margin-bottom: 4px;
  padding-bottom: 15px;
  border-bottom: 1px solid var(--border);
}

.profile-deposit-card .wallet-summary {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  border-bottom: 1px solid var(--border);
}

.profile-deposit-card .stat-card {
  min-height: 76px;
  padding: 15px 16px;
  background: transparent;
  border: 0;
  border-radius: 0;
}

.profile-deposit-card .stat-card:first-child {
  border-right: 1px solid var(--border);
}

.profile-deposit-card .wallet-deposit-panel,
.profile-withdraw-card .wallet-withdraw-panel {
  margin-top: 0;
  padding: 18px 0 0;
  background: transparent;
  border: 0;
  border-radius: 0;
}

.profile-deposit-card .wallet-section-head,
.profile-withdraw-card .wallet-section-head {
  display: none;
}

.wallet-deposit-history {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.wallet-withdraw-history {
  grid-template-columns: 1fr;
}

.profile-deposit-card .wallet-history-grid,
.profile-withdraw-card .wallet-history-grid {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}

.profile-deposit-card .wallet-history-block + .wallet-history-block {
  padding-left: 18px;
  border-left: 1px solid var(--border);
}

.profile-deposit-card .mini-row,
.profile-withdraw-card .mini-row,
.profile-purchases-card .mini-row,
.profile-account-panel .session-row {
  padding: 11px 2px;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--border);
  border-radius: 0;
}

.profile-deposit-card .empty-table,
.profile-withdraw-card .empty-table,
.profile-purchases-card .empty-table {
  min-height: 72px;
  background: transparent;
  border: 0;
  border-radius: 0;
}

.withdraw-balance-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 0;
  padding: 15px 2px;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--border);
  border-radius: 0;
}

.withdraw-balance-strip span,
.withdraw-balance-strip small {
  color: var(--text-muted);
  font-size: 0.78rem;
}

.withdraw-balance-strip strong {
  display: block;
  margin-top: 3px;
  color: var(--text);
  font-size: 1.25rem;
  font-variant-numeric: tabular-nums;
}

@media (max-width: 760px) {
  .home-vip-slot {
    margin-top: 12px;
  }

  .vip-offer {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 16px;
  }

  .vip-benefits {
    padding: 14px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
  }

  .vip-plan {
    min-height: 68px;
  }

  .profile-tabs {
    position: sticky;
    top: 8px;
    z-index: 40;
    width: 100%;
    border-radius: 0;
    background: rgba(10, 10, 12, 0.94);
    backdrop-filter: blur(22px);
  }

  .profile-tabs button {
    min-height: 58px;
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: 20px 14px;
    place-items: center;
    align-content: center;
    gap: 5px;
    padding: 7px 2px;
    font-size: clamp(0.55rem, 2.35vw, 0.66rem);
    line-height: 1;
  }

  .page-title {
    gap: 7px;
    padding: 6px 0 4px;
  }

  .page-title h1,
  .admin-header h1 {
    max-width: 100%;
    font-size: 1.72rem;
    line-height: 1.14;
    overflow-wrap: anywhere;
    letter-spacing: 0;
  }

  .page-title p {
    max-width: 100%;
    font-size: 0.82rem;
    line-height: 1.42;
  }

  .profile-promo-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .profile-promo-form .btn {
    width: 100%;
    min-width: 0;
  }

  .profile-account-panel .profile-hero-clean,
  .profile-account-telegram,
  .profile-subsection,
  .profile-deposit-card,
  .profile-withdraw-card,
  .profile-purchases-card {
    padding: 15px;
  }

  .profile-vip-status {
    min-width: 0;
    grid-column: 1 / -1;
    width: 100%;
  }

  .profile-account-grid {
    grid-template-columns: 1fr;
  }

  .profile-deposit-card .wallet-history-block + .wallet-history-block {
    padding-top: 16px;
    padding-left: 0;
    border-top: 1px solid var(--border);
    border-left: 0;
  }

  .profile-promo-card {
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }

  .profile-security-card .profile-password-form,
  .wallet-deposit-history {
    grid-template-columns: 1fr;
  }

  .profile-deposit-card .wallet-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .profile-deposit-card .wallet-payment-row {
    grid-template-columns: minmax(0, 1fr) auto 40px;
  }

  .profile-deposit-card .wallet-payment-row .icon-button {
    width: 40px;
    min-width: 40px;
    min-height: 40px;
    padding: 0;
  }

  .profile-account-telegram .telegram-card {
    grid-template-columns: 1fr;
  }

  .profile-account-telegram .telegram-card .btn {
    width: 100%;
  }

  .withdraw-balance-strip {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 350px) {
  .page-title h1,
  .admin-header h1 {
    font-size: 1.55rem;
  }

  .profile-promo-form {
    grid-template-columns: 1fr;
  }

  .profile-promo-form .btn {
    width: 100%;
  }
}

/* Casino workspace */
.casino-layout-clean {
  grid-template-columns: 176px minmax(0, 1fr);
  align-items: start;
}

.casino-tabs {
  position: sticky;
  top: 28px;
  gap: 4px;
  padding: 8px;
}

.casino-tab {
  position: relative;
  min-height: 46px;
  border-radius: 12px;
}

.casino-tab::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 50%;
  width: 2px;
  height: 18px;
  border-radius: 999px;
  background: var(--text);
  opacity: 0;
  transform: translateY(-50%) scaleY(0.5);
  transition: opacity var(--motion-fast) var(--ease-standard), transform var(--motion-med) var(--ease-premium);
}

.casino-tab.active::before {
  opacity: 0.9;
  transform: translateY(-50%) scaleY(1);
}

.casino-board {
  min-width: 0;
  min-height: 560px;
  padding: 0;
  overflow: hidden;
}

.casino-game-header {
  min-height: 92px;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 18px 20px;
  border-bottom: 1px solid var(--border);
}

.casino-game-header h2 {
  margin: 0;
  font-size: 1.16rem;
  font-weight: 740;
}

.casino-game-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  color: var(--text);
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid var(--border);
  border-radius: 13px;
}

.casino-game-icon svg {
  width: 20px;
  height: 20px;
}

.casino-game-header .game-intro {
  max-width: 68ch;
  margin: 4px 0 0;
  line-height: 1.45;
}

.game-shell {
  display: grid;
  grid-template-columns: minmax(250px, 290px) minmax(0, 1fr);
  min-height: 466px;
}

.game-controls {
  min-width: 0;
  padding: 20px;
  border-right: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.012);
}

.game-controls .game-form,
.game-controls .game-form.three {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.game-controls .field {
  grid-column: 1 / -1;
}

.game-controls .btn {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  padding: 10px 12px;
}

.game-controls [data-play-game] {
  grid-column: 1 / -1;
}

.game-controls .game-panel,
.game-controls .crash-panel,
.game-controls .tower-panel,
.game-controls .mines-panel,
.game-controls .vault-panel,
.game-controls .hilo-panel {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  margin-top: 18px;
  border-top: 1px solid var(--border);
}

.game-controls .game-panel > div {
  min-height: 50px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 10px 0;
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.055);
  border-radius: 0;
}

.game-controls .game-panel strong {
  font-size: 1rem;
  text-align: right;
}

.game-stage {
  min-width: 0;
  min-height: 466px;
  display: grid;
  place-items: center;
  padding: 22px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    rgba(0, 0, 0, 0.12);
  background-size: 52px 52px, 52px 52px, auto;
}

.crash-canvas {
  width: 100%;
  height: 340px;
  margin: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.tower-grid {
  width: min(100%, 560px);
  display: grid;
  gap: 6px;
  margin: 0;
}

.tower-row {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 9px;
  align-items: center;
}

.tower-floor {
  color: var(--text-muted);
  font-size: 0.68rem;
  font-weight: 720;
  font-variant-numeric: tabular-nums;
  text-align: center;
  transition: color var(--motion-fast) var(--ease-standard);
}

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

.tower-row button {
  min-height: 46px;
  border-radius: 12px;
}

.tower-row button::before {
  content: "";
  width: 6px;
  height: 6px;
  display: block;
  margin: auto;
  background: currentColor;
  border-radius: 50%;
  opacity: 0.28;
}

.tower-row.active .tower-floor {
  color: var(--text);
}

.tower-row.active .tower-cells {
  outline: 1px solid rgba(255, 255, 255, 0.08);
  outline-offset: 4px;
  border-radius: 10px;
}

.tower-row.resolved .tower-floor {
  color: var(--success);
}

.tower-row.lost .tower-floor {
  color: var(--red);
}

.tower-row button.opened::before,
.tower-row button.mine::before {
  display: none;
}

.mines-wrap {
  width: 100%;
}

.mines-board {
  width: min(100%, 440px);
  gap: 10px;
  margin: 0 auto;
}

.mines-board button {
  border-radius: 13px;
}

.mines-board button::before {
  content: "";
  width: 7px;
  height: 7px;
  border: 1px solid currentColor;
  transform: rotate(45deg);
  opacity: 0.28;
}

.mines-board button.opened::before,
.mines-board button.mine::before {
  display: none;
}

.game-scene {
  width: 100%;
  min-height: 360px;
  margin: 0;
  padding: 24px;
  background: transparent;
  border: 0;
}

.vault-door {
  width: 136px;
  height: 136px;
  position: relative;
  background: rgba(255, 255, 255, 0.035);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 0 0 14px rgba(0, 0, 0, 0.2), 0 18px 54px rgba(0, 0, 0, 0.24);
}

.vault-door::before {
  content: "";
  position: absolute;
  inset: -18px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 50%;
}

.vault-door svg {
  width: 48px;
  height: 48px;
}

.hilo-scene {
  align-content: center;
}

.hilo-number {
  font-size: clamp(4.8rem, 10vw, 7.4rem);
}

.hilo-scale {
  width: min(420px, 88%);
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  margin-top: 10px;
  color: var(--text-muted);
  font-size: 0.7rem;
  font-variant-numeric: tabular-nums;
}

.hilo-scale i {
  height: 1px;
  position: relative;
  background: rgba(255, 255, 255, 0.14);
}

.hilo-scale i::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 7px;
  height: 7px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 50%;
  background: #0a0a0b;
  transform: translate(-50%, -50%);
}

.game-segmented {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
  padding: 4px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.game-segmented button {
  min-width: 0;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  color: var(--text-muted);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 11px;
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 700;
  transition: color var(--motion-fast) var(--ease-standard), background var(--motion-fast) var(--ease-standard), border-color var(--motion-fast) var(--ease-standard);
}

.game-segmented button svg {
  width: 16px;
  height: 16px;
}

.game-segmented button:hover,
.game-segmented button.active {
  color: var(--text);
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.09);
}

.casino-result {
  margin: 0;
  padding: 0 20px 20px;
}

.casino-result:empty {
  display: none;
}

@media (max-width: 1080px) {
  .game-shell {
    grid-template-columns: minmax(220px, 250px) minmax(0, 1fr);
  }
}

@media (max-width: 760px) {
  .casino-layout-clean {
    grid-template-columns: 1fr;
  }

  .casino-tabs {
    position: static;
    grid-template-columns: repeat(5, minmax(126px, 1fr));
    gap: 5px;
    overflow-x: auto;
    padding: 6px;
    scrollbar-width: none;
  }

  .casino-tabs::-webkit-scrollbar {
    display: none;
  }

  .casino-tab {
    min-height: 42px;
    padding: 0 9px;
    line-height: 1.15;
    white-space: normal;
  }

  .casino-board {
    min-height: 0;
    padding: 0;
  }

  .casino-game-header {
    min-height: 82px;
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 11px;
    padding: 15px 16px;
  }

  .casino-game-icon {
    width: 38px;
    height: 38px;
    border-radius: 12px;
  }

  .casino-game-header h2 {
    font-size: 1.05rem;
  }

  .casino-game-header .game-intro {
    font-size: 0.75rem;
  }

  .game-shell {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .game-controls {
    padding: 16px;
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }

  .game-stage {
    min-height: 0;
    padding: 16px;
  }

  .crash-stage {
    min-height: 260px;
  }

  .crash-canvas {
    height: 240px;
  }

  .tower-stage,
  .mines-stage {
    padding: 16px 12px;
  }

  .tower-row {
    grid-template-columns: 24px minmax(0, 1fr);
    gap: 7px;
  }

  .tower-row button {
    min-height: 42px;
  }

  .mines-board {
    gap: 7px;
  }

  .game-scene {
    min-height: 270px;
    padding: 18px;
  }

  .vault-door {
    width: 112px;
    height: 112px;
  }

  .hilo-number {
    font-size: clamp(4.4rem, 24vw, 6rem);
  }

  .casino-result {
    padding: 0 16px 16px;
  }
}
