*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
  tap-highlight-color: transparent;
}

:root {
  --bg-base: linear-gradient(180deg, #1e0446, #100127);
  --bg-surface: #161616;
  --bg-elevated: #1e1e1e;
  --border: #2a2a2a;
  --text: #ffffff;
  --text-muted: rgba(255, 255, 255, 0.55);
  --gold: #f5c518;
  --gold-light: #ffd966;
  --green-start: #4ade80;
  --green-end: #22c55e;
  --red-start: #f87171;
  --red-end: #ef4444;
  --sidebar-width: 150px;
  --header-height: 58px;
  --announcement-height: 34px;
  --bottom-nav-height: 44px;
  --bottom-nav-float: 8px;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 5px;
  --radius-pill: 999px;
}

html {
  -webkit-text-size-adjust: 100%;
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-tap-highlight-color: transparent;
  tap-highlight-color: transparent;
}

html::-webkit-scrollbar {
  display: none;
}

body {
  font-family: "Inter", "Noto Sans Myanmar", "Padauk", "Myanmar Text", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg-base);
  color: var(--text);
  line-height: 1.4;
  overflow-x: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-tap-highlight-color: transparent;
  tap-highlight-color: transparent;
}

body::-webkit-scrollbar {
  display: none;
}

a {
  color: inherit;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
  tap-highlight-color: transparent;
}

a:focus,
button:focus,
input:focus,
textarea:focus,
select:focus,
label:focus {
  outline: none;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid rgba(245, 197, 24, 0.65);
  outline-offset: 2px;
}

img {
  display: block;
  max-width: 100%;
  -webkit-user-drag: none;
  user-select: none;
}

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

.app {
  min-height: 100vh;
  min-height: 100dvh;
}

/* ── Sidebar ── */
.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 200;
  width: 265px;
  height: 100vh;
  height: 100dvh;
  max-height: 100dvh;
  background: linear-gradient(180deg, #5e0b6b , #1a0033 );
  border-right: 1px solid rgba(255, 43, 214, 0.18);
  background-position: cover;
  background-repeat: no-repeat;
  background-size: cover;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  padding: 0.35rem 0.85rem 0.85rem;
  padding-top: max(0.35rem, env(safe-area-inset-top, 0px));
  transform: translateX(0);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  overscroll-behavior: contain;
  box-shadow: 0 0 20px 10px rgba(0, 0, 0, 0.5);
}

.sidebar-scroll {
  flex: 1;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
  touch-action: pan-y;
}

.sidebar-scroll::-webkit-scrollbar {
  display: none;
}

.sidebar-close {
  display: none;
  position: absolute;
  top: max(0.35rem, env(safe-area-inset-top, 0px));
  right: 0.35rem;
  z-index: 3;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  color: #ffffff;
  background: transparent;
  padding: 0;
}

.sidebar-close svg {
  width: 24px;
  height: 24px;
}

.sidebar-top {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 0.25rem 0.65rem;
  min-height: 88px;
  flex-shrink: 0;
}

.sidebar-brand {
  display: flex;
  justify-content: center;
  width: 100%;
}

.sidebar-logo {
  width: 160px;
  max-width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
  margin-top: 30px;
}

.sidebar-auth {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding: 0 0.15rem 0.85rem;
  flex-shrink: 0;
}

body.is-logged-in .sidebar-auth {
  display: none;
}

.sidebar-user {
  flex-shrink: 0;
  padding: 0 0.15rem 0.85rem;
}

body.is-logged-in .sidebar-user {
  display: block;
}

.sidebar-user__head {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  margin-bottom: 8px;
  margin-top: 10px;
  padding: 0 0.2rem;
}

.sidebar-user__avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: none;
  background: transparent;
  overflow: hidden;
}

.sidebar-user__avatar svg {
  width: 18px;
  height: 18px;
}

.sidebar-user__avatar .profile-icon-img {
  width: 34px;
  height: 34px;
}

.sidebar-user__name {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #ffffff;
  text-transform: lowercase;
}

.sidebar-user__wallets {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin-bottom: 0.55rem;
}

.sidebar-user__wallet {
  width: 200px;
  height: 35px;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  min-width: 0;
  padding: 0.35rem 0.45rem;
  border-radius: var(--radius-pill);
  background: rgba(17, 17, 17, 0.342);
  border: none;
  margin: 0 auto;
}

.sidebar-user__wallet--promotion {
  border-color: rgba(245, 197, 24, 0.45);
}

.sidebar-user__wallet-icon {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.sidebar-user__wallet-value {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 18px;
  font-weight: 800;
  color: #ffffff;
  text-align: center;
}

.sidebar-user__wallet-refresh {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: transparent;
  color: #ffffff;
  background: #af0101;
  cursor: pointer;
  transition: transform 0.2s ease, color 0.2s ease;
}

.sidebar-user__wallet-refresh svg {
  width: 16px;
  height: 16px;
}

.sidebar-user__wallet-refresh:hover {
  color: #f87171;
}

.sidebar-user__wallet-refresh.is-spinning svg {
  animation: header-balance-spin 0.65s linear;
}

.sidebar-user__deposit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  width: 200px;
  margin-bottom: 0.55rem;
  padding: 0.55rem 0.75rem;
  border-radius: var(--radius-pill);
  border: none;
  background: linear-gradient(180deg, #e0ae18 0%, #c58702 100%);
  color: #3b3b3b;
  font-size: 17px;
  font-weight: 600;
  text-transform: uppercase;
  text-decoration: none;
  box-shadow: 0 -2px 5px rgb(139, 67, 0) inset;
  transition: filter 0.18s ease, transform 0.18s ease;
  margin: 0 auto 10px auto;
}

.sidebar-user__deposit-icon {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.sidebar-user__menu {
  display: flex;
  flex-direction: column;
  gap: 0.42rem;
}

.sidebar-user__menu-btn {
  width: 200px;
  height: 42px;
  margin: 0 auto;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0 0.45rem 0 0.35rem;
  border-radius: var(--radius-pill);
  border: 3px solid rgb(255, 255, 255);
  background: transparent;
  color: #ffffff;
  font-size: 18px;
  font-weight: 00;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  min-width: 0;
  transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.sidebar-user__menu-icon {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  color: #ffffff;
}

.sidebar-user__menu-icon svg {
  width: 38px;
  height: 38px;
}

.sidebar-user__menu-label {
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  text-align: left;
  line-height: 1;
  text-transform: uppercase;
  overflow: hidden;
}

.sidebar-user__menu-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: #ffffff;
}

.sidebar-user__logout {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 200px;
  height: 42px;
  margin-top: 0.15rem;
  padding: 0.55rem 0.65rem;
  border: none;
  border-radius: var(--radius-pill);
  background: linear-gradient(180deg, #09ad97 0%,#2fd1bb 50%, #018573 100%);
  color: #ffffff;
  font: inherit;
  font-size: 20px;
  font-weight: 800;
  text-shadow: -1px 1px 2px rgb(2, 2, 2);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  margin: 5px auto;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
  transition: filter 0.18s ease, transform 0.18s ease;
}

.sidebar-user__logout:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

.sidebar-btn {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: none;
  background: transparent;
  line-height: 0;
  transition: transform 0.2s ease, filter 0.2s ease;
}

.sidebar-btn__img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  animation: auth-btn-pulse 1s linear infinite;
  will-change: opacity, filter;
}

@keyframes auth-btn-pulse {
  0%,
  49.999% {
    opacity: 1;
    filter: brightness(1.05);
  }

  50%,
  99.999% {
    opacity: 1;
    filter: brightness(0.90);
  }

  100% {
    opacity: 1;
    filter: brightness(1.05);
  }
}

.sidebar-btn__label {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-bottom: 2px;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #ffffff;
  pointer-events: none;
  line-height: 1;
}

.sidebar-btn:hover {
  transform: translateY(-1px);
}

.sidebar-btn:hover .sidebar-btn__img {
  animation-play-state: paused;
  filter: brightness(1.15);
  opacity: 1;
}

.sidebar-btn:active {
  transform: translateY(0);
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 10px;
}

.sidebar-nav .nav-item[data-page="deposit"],
.sidebar-nav .nav-item[data-page="withdraw"],
.sidebar-nav .nav-item[data-page="dp-wd-history"],
.sidebar-nav .nav-item[data-page="promotion-history"],
.sidebar-nav .nav-item[data-page="about"],
.sidebar-nav .nav-item[data-page="apk-install"] {
  display: none !important;
}

.nav-item {
  --nav-neon: #ff3be0;
  --nav-neon-soft: rgba(255, 59, 224, 0.02);
  --nav-fill-top: #be77ca;
  --nav-fill-mid: #6d247c;
  --nav-fill-bottom: #541a63;
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.72rem;
  height: 45px;
  padding: 0.72rem 1.05rem 0.72rem 0.95rem;
  margin: 2.5px 0;
  border: 2.5px solid var(--nav-neon);
  border-radius: 11px;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.085em;
  text-transform: uppercase;
  color: #ffffff;
  background: #650570;
  border: 2px solid #fd73fd;
  box-shadow:
    0 0 0 2px hsla(313, 86%, 67%, 0.1),
    0 0 5px 2px var(--nav-neon-soft),
    0 0 5px 2px rgba(255, 48, 214, 0.774),
    0 0 5px 2px rgba(252, 43, 220, 0.18),
    inset 0 0 5px rgba(255, 59, 226, 0.925),
    inset 0 0 5px rgba(255, 59, 224, 0.16);
  transform: skewX(-15deg);
  transition:
    box-shadow 0.22s ease,
    background 0.22s ease,
    border-color 0.22s ease,
    filter 0.22s ease;
  overflow: visible;
}

.nav-item .nav-icon,
.nav-item > span {
  position: relative;
  z-index: 1;
  transform: skewX(15deg);
}

.nav-item > span {
  flex: 1;
  min-width: 0;
  line-height: 1.15;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.18);
}

.nav-item.is-active {
  --nav-fill-top: #a03ab0;
  --nav-fill-mid: #7d2d8f;
  --nav-fill-bottom: #642075;
  border-color: none;
  box-shadow: none;
  border: none;
}

.nav-icon {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  object-fit: contain;
}

.sidebar-payments {
  width: 200px;
  margin: 0 auto;
  padding: 10px;
  border-radius: 14px;
  background: rgb(20, 20, 20);
  border: none;
}

.sidebar-payments__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.25rem;
}

.sidebar-payments__grid img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
  border-radius: 8px;
  background: none;
  padding: 0;
}

.sidebar-download {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: calc(100% - 0.4rem);
  margin: 0 auto 0.65rem;
  min-height: 38px;
  border: 1.5px solid rgba(255, 255, 255, 0.82);
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #ffffff;
  background: transparent;
  text-decoration: none;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.sidebar-download__icon,
.sidebar-download__label-mobile,
.sidebar-menu,
.sidebar-langs {
  display: none;
}

.sidebar-download:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: #ffffff;
}

.sidebar-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  padding: 0.55rem 0.25rem 0.15rem;
  flex-shrink: 0;
}

.sidebar-footer-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.42rem;
  width: 100%;
}

.sidebar-footer-links a,
.sidebar-footer-link {
  font-size: 0.76rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.92);
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  transition: color 0.2s ease;
}

.sidebar-footer-links a:hover,
.sidebar-footer-link:hover {
  color: #ffd95a;
}

.sidebar-logout {
  display: none;
}

body.is-logged-in .sidebar-logout {
  display: none;
}

.auth-guest {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.auth-guest .btn {
  width: auto;
  flex-shrink: 0;
}

.auth-guest .btn-img__src {
  height: 32px;
}

body.is-logged-in .auth-guest {
  display: none;
}

.auth-user {
  display: none;
  align-items: center;
  gap: 0.4rem;
  flex: 1;
  min-width: 0;
}

body.is-logged-in .auth-user {
  display: flex;
}

body.is-logged-in .site-header {
  grid-template-columns: 44px auto 1fr;
}

body.is-logged-in .header-logo {
  justify-self: start;
}

body.is-logged-in .header-actions {
  width: 100%;
  min-width: 0;
}

.header-balance {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex: 1;
  min-width: 0;
  padding: 0.3rem 0.45rem 0.3rem 0.35rem;
  border-radius: var(--radius-pill);
  background: rgba(17, 17, 17, 0.55);
  border: 1px solid rgb(73, 73, 73);
}

.header-balance__coin {
  display: block;
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.header-balance__value {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-align: right;
}

.header-balance__refresh {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: transparent;
  color: rgb(255, 255, 255);
  cursor: pointer;
  transition: color 0.2s ease;
}

.header-balance__refresh:hover {
  color: #fff;
}

.header-balance__refresh svg {
  width: 14px;
  height: 14px;
}

.header-balance__refresh.is-spinning svg {
  animation: header-balance-spin 0.65s linear;
}

.header-wallet-group {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex: 1;
  min-width: 0;
}

.header-wallet-group .header-balance {
  flex: 1 1 0;
  min-width: 0;
  max-width: none;
}

.header-balance--promotion {
  border-color: rgba(245, 197, 24, 0.55);
  box-shadow: 0 0 8px rgba(245, 197, 24, 0.12);
}

.header-promotion-balance--mobile {
  flex-shrink: 0;
  min-width: 118px;
  max-width: 168px;
}

@media (min-width: 901px) {
  .header-promotion-balance--mobile {
    display: none !important;
  }

  .header-wallet-group .header-balance {
    flex: 0 1 auto;
    min-width: 128px;
    max-width: 168px;
  }
}

@media (max-width: 900px) {
  .header-promotion-balance--desktop {
    display: none !important;
  }
}

@media (min-width: 901px) {
  .header-wallet-group .header-balance__value {
    font-size: 0.82rem;
  }
}

@keyframes header-balance-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.header-profile {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border: none;
  background: transparent;
  overflow: hidden;
}

.profile-icon-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  mix-blend-mode: screen;
}

.header-profile:hover {
  opacity: 0.9;
}

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

.header-deposit,
.header-username {
  display: none;
}

.header-user-stack {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.4rem;
  min-width: 0;
}

.header-user-id {
  display: flex;
  align-items: center;
  order: 2;
  color: inherit;
  text-decoration: none;
}

.header-wallet-group {
  order: 1;
}

.profile-page {
  padding: 1rem 0.75rem 2rem;
  max-width: 480px;
  margin: 0 auto;
}

.profile-card {
  padding: 1.35rem 1rem 1.15rem;
  border-radius: 1rem;
  background: #141414;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.profile-card__logo {
  display: flex;
  justify-content: center;
  margin-bottom: 0.85rem;
}

.profile-card__logo img {
  height: 38px;
  width: auto;
}

.profile-card__title {
  margin: 0 0 1.15rem;
  padding-bottom: 0.75rem;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-align: center;
  color: #ffffff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.profile-info {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.profile-info__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.72rem 0.35rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.profile-info__row:last-child {
  border-bottom: none;
}

.profile-info__row dt {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.88);
  flex-shrink: 0;
}

.profile-info__row--bank dt {
  color: #8b9cff;
}

.profile-info__row dd {
  margin: 0;
  font-size: 0.84rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.92);
  text-align: right;
  word-break: break-word;
}

.profile-info__value--username {
  color: #67e8f9;
}

.profile-info__value--balance {
  color: var(--gold);
  font-weight: 800;
}

.profile-actions {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-top: 1.35rem;
}

.profile-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 48px;
  padding: 0.75rem 1rem;
  border: none;
  border-radius: var(--radius-pill);
  font: inherit;
  font-size: 0.92rem;
  font-weight: 700;
  color: #ffffff;
  cursor: pointer;
  transition: filter 0.2s ease, transform 0.15s ease;
}

.profile-btn:active {
  transform: scale(0.98);
}

.profile-btn--bank {
  background: linear-gradient(180deg, #7b8fd6 0%, #5a6bb8 100%);
}

.profile-btn--bank:hover {
  filter: brightness(1.06);
}

.profile-btn--password {
  background: linear-gradient(180deg, #9b2c2c 0%, #740101 100%);
}

.profile-btn--password:hover {
  filter: brightness(1.08);
}

.profile-btn--logout {
  background: linear-gradient(180deg, #09ad97 0%, #2fd1bb 50%, #018573 100%);
}

.profile-btn--ghost {
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.85);
}

.profile-btn--ghost:hover {
  background: rgba(255, 255, 255, 0.12);
}

.profile-btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.profile-btn[hidden] {
  display: none !important;
}

.profile-modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.profile-modal[hidden] {
  display: none;
}

.profile-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(2px);
}

.profile-modal__card {
  position: relative;
  z-index: 1;
  width: min(100%, 400px);
  padding: 1.35rem 1.15rem 1.15rem;
  border-radius: 1rem;
  background: #111111;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.profile-modal__title {
  margin: 0 0 1rem;
  font-size: 1rem;
  font-weight: 800;
  text-align: center;
  color: #ffffff;
}

.profile-form {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.profile-modal__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
  margin-top: 0.35rem;
}

.profile-message {
  margin: 0 0 0.85rem;
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius-md);
  font-size: 0.8rem;
  font-weight: 600;
  text-align: center;
}

.profile-message[hidden] {
  display: none;
}

.profile-message--error {
  background: rgba(239, 68, 68, 0.12);
  color: #fca5a5;
}

.profile-message--success {
  background: rgba(74, 222, 128, 0.12);
  color: #86efac;
}

.auth-input--select {
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, rgba(255, 255, 255, 0.55) 50%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.55) 50%, transparent 50%);
  background-position:
    calc(100% - 18px) calc(50% + 2px),
    calc(100% - 12px) calc(50% + 2px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 2rem;
  cursor: pointer;
}

.auth-input--select option {
  background: #1a1a1a;
  color: #ffffff;
}

body.profile-modal-open {
  overflow: hidden;
}

.game-alert-modal {
  z-index: 420;
}

.game-alert-modal__card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
  width: min(100%, 340px);
  padding: 1.5rem 1.35rem 1.25rem;
  text-align: center;
  border: 1px solid rgba(245, 197, 24, 0.22);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.55);
}

.game-alert-modal__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  color: var(--gold);
  background: rgba(245, 197, 24, 0.1);
  border: 2px solid rgba(245, 197, 24, 0.42);
  box-shadow: 0 0 18px rgba(245, 197, 24, 0.12);
}

.game-alert-modal__icon svg {
  display: block;
  width: 28px;
  height: 28px;
}

.game-alert-modal__message {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
  margin: 0;
  padding: 0 0.15rem;
  font-size: 0.92rem;
  line-height: 1.55;
  font-weight: 600;
  text-align: center;
  color: rgba(255, 255, 255, 0.95);
}

.game-alert-modal__message-line {
  display: block;
}

.game-alert-modal__message-line--warn {
  color: #fca5a5;
}

.game-alert-modal__actions {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin-top: 0.15rem;
}

.game-alert-modal__ok {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 128px;
  min-height: 44px;
  padding: 0.62rem 2.25rem;
  border: none;
  border-radius: var(--radius-pill);
  background: linear-gradient(180deg, var(--gold-light) 0%, var(--gold) 100%);
  color: #1a1400;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: filter 0.2s ease, transform 0.15s ease;
}

.game-alert-modal__ok:hover {
  filter: brightness(1.05);
}

/* ── Login success modal ── */
.auth-login-success-modal {
  position: fixed;
  inset: 0;
  z-index: 400;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  transition: opacity 0.22s ease;
}

.auth-login-success-modal.is-visible {
  opacity: 1;
}

.auth-login-success-modal[hidden] {
  display: none;
}

.auth-login-success-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(8, 0, 20, 0.55);
  backdrop-filter: blur(4px);
}

.auth-login-success-modal__dialog {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  width: min(100%, 480px);
  padding: 1.5rem 1.25rem 1.2rem;
  border-radius: 1rem;
  text-align: center;
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.08), transparent 55%),
    linear-gradient(180deg, #5e0b6b 0%, #3a0550 52%, #2a0440 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  transform: translateY(8px) scale(0.98);
  transition: transform 0.22s ease;
}

.auth-login-success-modal.is-visible .auth-login-success-modal__dialog {
  transform: translateY(0) scale(1);
}

.auth-login-success-modal__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100px;
  height: 100px;
  margin-bottom: 0.15rem;
}

.auth-login-success-modal__logo {
  display: block;
  width: 100px;
  height: 100px;
  object-fit: contain;
}

.auth-login-success-modal__logo--mobile {
  display: none;
}

.auth-login-success-modal__title {
  margin: 0;
  font-size: 25px;
  font-weight: 700;
  line-height: 1.45;
  color: #ffffff;
}

.auth-login-success-modal__username {
  margin: 0;
  font-size: 25px;
  font-weight: 700;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.95);
}

.auth-login-success-modal__ok {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 200px;
  min-height: 40px;
  margin-top: 0.45rem;
  padding: 0.58rem 1rem;
  border: none;
  border-radius: 0.55rem;
  background: linear-gradient(180deg, #f0c84a 0%, #d4a017 100%);
  color: #ffffff;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: filter 0.2s ease, transform 0.15s ease;
}

.auth-login-success-modal__ok:hover {
  filter: brightness(1.05);
}

.auth-login-success-modal__ok:active {
  transform: scale(0.98);
}

body.auth-login-success-open {
  overflow: hidden;
}

@media (max-width: 900px) {
  .auth-login-success-modal {
    z-index: 1700;
    padding: 1.25rem;
  }

  .auth-login-success-modal__overlay {
    background: rgba(0, 0, 0, 0.72);
    backdrop-filter: none;
  }

  .auth-login-success-modal__dialog {
    width: min(100%, 268px);
    gap: 0.7rem;
    padding: 1.55rem 1.15rem 1.2rem;
    border-radius: 18px;
    background: #160820;
    border: none;
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.55);
  }

  .auth-login-success-modal__icon {
    width: 86px;
    height: 86px;
    margin-bottom: 0.15rem;
    border-radius: 50%;
    overflow: hidden;
    background: #2a1238;
  }

  .auth-login-success-modal__logo--desktop {
    display: none;
  }

  .auth-login-success-modal__logo--mobile {
    display: block;
    width: 86px;
    height: 86px;
    object-fit: cover;
  }

  .auth-login-success-modal__title {
    font-size: 1.28rem;
    font-weight: 800;
    letter-spacing: 0.01em;
    color: #f6d15a;
  }

  .auth-login-success-modal__username {
    font-size: 0.95rem;
    font-weight: 500;
    color: #ffffff;
  }

  .auth-login-success-modal__ok {
    width: 78%;
    min-height: 42px;
    margin-top: 0.55rem;
    border-radius: 10px;
    background: linear-gradient(180deg, #f3c14a 0%, #d89012 100%);
    font-size: 0.95rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    box-shadow: 0 3px 0 #9a6408;
  }
}

/* ── Logout confirm modal ── */
.auth-logout-modal {
  position: fixed;
  inset: 0;
  z-index: 410;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  transition: opacity 0.22s ease;
}

.auth-logout-modal.is-visible {
  opacity: 1;
}

.auth-logout-modal[hidden] {
  display: none;
}

.auth-logout-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(8, 0, 20, 0.55);
  backdrop-filter: blur(4px);
}

.auth-logout-modal__dialog {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  width: min(100%, 480px);
  padding: 1.5rem 1.25rem 1.2rem;
  border-radius: 1rem;
  text-align: center;
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.08), transparent 55%),
    linear-gradient(180deg, #5e0b6b 0%, #3a0550 52%, #2a0440 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  transform: translateY(8px) scale(0.98);
  transition: transform 0.22s ease;
}

.auth-logout-modal.is-visible .auth-logout-modal__dialog {
  transform: translateY(0) scale(1);
}

.auth-logout-modal__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100px;
  height: 100px;
  margin-bottom: 0.15rem;
}

.auth-logout-modal__logo {
  display: block;
  width: 100px;
  height: 100px;
  object-fit: contain;
}

.auth-logout-modal__title {
  margin: 0;
  font-size: 25px;
  font-weight: 700;
  line-height: 1.45;
  color: #ffffff;
}

.auth-logout-modal__actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.65rem;
  width: 100%;
  margin-top: 0.45rem;
}

.auth-logout-modal__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 150px;
  min-height: 55px;
  padding: 0.58rem 1rem;
  border-radius: 0.55rem;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: filter 0.2s ease, transform 0.15s ease, border-color 0.2s ease;
}

.auth-logout-modal__btn--cancel {
  border: 1px solid rgba(255, 255, 255, 0.85);
  background: rgba(0, 0, 0, 0.12);
  color: #ffffff;
}

.auth-logout-modal__btn--cancel:hover {
  border-color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

.auth-logout-modal__btn--ok {
  border: none;
  background: linear-gradient(180deg, #f0c84a 0%, #d4a017 100%);
  color: #ffffff;
}

.auth-logout-modal__btn--ok:hover {
  filter: brightness(1.05);
}

.auth-logout-modal__btn:active {
  transform: scale(0.98);
}

body.auth-logout-modal-open {
  overflow: hidden;
}

.game-alert-modal__ok:active {
  transform: scale(0.98);
}

body.profile-bank-picker-open {
  overflow: hidden;
}

.bank-select {
  position: relative;
  width: 100%;
}

.bank-select-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  min-height: 46px;
  padding: 0 1rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-pill);
  background: #1a1a1a;
  color: #ffffff;
  font: inherit;
  font-size: 0.88rem;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.bank-select-trigger:hover:not(:disabled) {
  border-color: rgba(245, 197, 24, 0.45);
}

.bank-select.is-open .bank-select-trigger,
.bank-select-trigger:focus-visible {
  border-color: rgba(245, 197, 24, 0.55);
  box-shadow: 0 0 0 3px rgba(245, 197, 24, 0.12);
  outline: none;
}

.bank-select-value {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
  flex: 1;
}

.bank-select-chevron {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: rgba(255, 255, 255, 0.65);
  transition: transform 0.2s ease;
}

.bank-select.is-open .bank-select-chevron {
  transform: rotate(180deg);
}

.bank-select-label {
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: rgba(255, 255, 255, 0.92);
}

.bank-select-icon {
  width: 28px;
  height: 28px;
  object-fit: contain;
  border-radius: 50%;
  flex-shrink: 0;
}

.bank-select-icon--empty {
  display: inline-block;
  background: rgba(255, 255, 255, 0.06);
}

.bank-picker-modal {
  position: fixed;
  inset: 0;
  z-index: 1300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.bank-picker-modal[hidden] {
  display: none !important;
}

.bank-picker-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(2px);
}

.bank-picker-modal__card {
  position: relative;
  z-index: 1;
  width: min(100%, 420px);
  max-height: min(80vh, 560px);
  display: flex;
  flex-direction: column;
  padding: 1.25rem 1.1rem 1rem;
  border-radius: 1rem;
  background: #111111;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.bank-picker-modal__title {
  margin: 0 0 0.25rem;
  font-size: 1rem;
  font-weight: 800;
  text-align: center;
  color: #ffffff;
}

.bank-picker-modal__subtitle {
  margin: 0 0 0.85rem;
  font-size: 0.78rem;
  text-align: center;
  color: rgba(255, 255, 255, 0.55);
}

.bank-picker-modal__list {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin-bottom: 0.85rem;
  scrollbar-width: none;
}

.bank-picker-modal__list::-webkit-scrollbar {
  display: none;
}

.bank-picker-item {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.72rem 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0.75rem;
  background: #1a1a1a;
  color: #ffffff;
  font: inherit;
  font-size: 0.88rem;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.bank-picker-item:hover:not(:disabled),
.bank-picker-item.is-selected {
  border-color: rgba(245, 197, 24, 0.45);
  background: rgba(245, 197, 24, 0.08);
}

.bank-picker-item:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.bank-picker-item__main {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
}

.bank-picker-item__check {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  flex-shrink: 0;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.bank-picker-item.is-selected .bank-picker-item__check {
  border-color: var(--gold);
  background: var(--gold);
  box-shadow: inset 0 0 0 4px #1a1a1a;
}

.bank-picker-modal__actions {
  display: flex;
  justify-content: center;
}

.nav-item--auth {
  display: none;
}

body.is-logged-in .nav-item--auth {
  display: flex;
}

.age-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.82);
  color: #ffffff;
  font-size: 0.68rem;
  font-weight: 800;
  flex-shrink: 0;
}

.sidebar-overlay {
  position: fixed;
  inset: 0;
  z-index: 150;
  background: rgba(0, 0, 0, 0.45);
}

body.sidebar-open {
  overflow: hidden;
  overscroll-behavior: none;
  background: #1e0446;
}

/* ── Main wrapper ── */
.main-wrapper {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

/* ── Top bar ── */
.top-bar {
  position: sticky;
  top: 0;
  z-index: 100;
}

/* ── Header ── */
.site-header {
  display: grid;
  grid-template-columns: 44px auto 1fr;
  align-items: center;
  gap: 0.5rem;
  padding: 0 0.75rem;
  background: transparent;
}

.menu-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  color: var(--text);
  grid-column: 1;
}

.menu-btn svg {
  width: 24px;
  height: 24px;
}

.header-logo {
  grid-column: 2;
  justify-self: start;
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  max-width: 100%;
  min-width: 0;
}

.header-logo img {
  display: block;
  height: 35px;
  width: auto;
  max-width: none;
  object-fit: contain;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  grid-column: 3;
  justify-self: end;
  flex-shrink: 0;
  min-width: 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.38rem 0.85rem;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 700;
  white-space: nowrap;
  transition: filter 0.2s, transform 0.15s;
  width: 100px;
}

.btn:active {
  transform: scale(0.97);
}

.btn-register {
  background: #ffffff;
  color: #111;
}

.btn-register:hover {
  filter: brightness(0.95);
}

.btn-login {
  background: var(--gold);
  color: #1a1400;
}

.btn-login:hover {
  background: var(--gold-light);
}

.btn.btn-img {
  position: relative;
  width: auto;
  min-width: 0;
  padding: 0;
  background: transparent;
  border: none;
  line-height: 0;
}

.btn-img__src {
  display: block;
  width: auto;
  height: 34px;
  object-fit: contain;
  animation: auth-btn-pulse 1s linear infinite;
  will-change: opacity, filter;
}

.btn-img__label {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #ffffff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.55);
  pointer-events: none;
  line-height: 1;
}

.btn-img:hover {
  filter: none;
}

.btn-img:hover .btn-img__src {
  animation-play-state: paused;
  filter: brightness(1.15);
  opacity: 1;
}

.btn-img:active {
  transform: scale(0.97);
}

.lang-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  flex-shrink: 0;
  padding: 0;
  cursor: pointer;
  background: transparent;
}

.lang-switcher {
  position: relative;
  flex-shrink: 0;
}

.lang-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 150px;
  padding: 6px;
  border-radius: 10px;
  background: #1a1a1a;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
  z-index: 1200;
}

.lang-dropdown__item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 8px 10px;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: #fff;
  font: inherit;
  cursor: pointer;
  text-align: left;
}

.lang-dropdown__item:hover,
.lang-dropdown__item.is-active {
  background: rgba(255, 255, 255, 0.08);
}

.lang-dropdown__item img {
  border-radius: 50%;
  object-fit: cover;
}

.lang-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.lang-cluster,
.lang-modal {
  display: none;
}

/* ── Announcement ── */
.announcement-bar[hidden] {
  display: none !important;
}

.announcement-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
  overflow: hidden;
  min-height: 75px;
  padding: 0 17px !important;
}

.announcement-bar__content {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex: 1;
  min-width: 0;
  min-height: 35px;
  padding: 0.35rem 0.85rem 0.35rem 0.55rem;
  isolation: isolate;
}

.announcement-bar__content::before {
  content: "";
  position: absolute;
  inset: 0;
  background: #5e0b6b;
  transform: skewX(-14deg);
  border-radius: 4px;
  box-shadow:
    inset 0 0 12px rgba(255, 59, 224, 0.12),
    0 0 10px rgba(255, 59, 224, 0.08);
  z-index: 0;
  pointer-events: none;
}

.announcement-icon,
.announcement-track {
  position: relative;
  z-index: 1;
}

.announcement-icon {
  width: 20px !important;
  height: 20px !important;
  flex-shrink: 0;
  object-fit: contain;
  filter: brightness(0) invert(1);
  margin-left: 15px;
  margin-right: 10px;
}

.announcement-track {
  flex: 1 1 0;
  width: 0;
  min-width: 0;
  overflow: hidden;
}

.announcement-text {
  display: inline-flex;
  align-items: center;
  width: max-content;
  min-height: 1.1em;
  line-height: 1.3;
  animation: marquee 24s linear infinite;
  will-change: transform;
}

.announcement-text span {
  display: inline-block;
  white-space: nowrap;
  padding-right: 3rem;
  font-size: 0.72rem;
  font-weight: 600;
  color: #ffffff;
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.header-promotion-balance--mobile {
  flex-shrink: 0;
  min-width: 118px;
  max-width: 168px;
}

.header-promotion-balance--mobile[hidden],
.header-promotion-balance--desktop[hidden] {
  display: none !important;
}

@media (max-width: 900px) {
  body:not(.page-home):not(.has-active-promotion) .announcement-bar {
    display: none;
  }

  body.is-logged-in.has-active-promotion .announcement-bar {
    display: flex;
  }

  body.is-logged-in .top-bar {
    background: #2a0850;
  }

  body.is-logged-in .site-header {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.3rem;
    min-height: 52px;
    height: auto;
    padding: 0.2rem 0.45rem;
    background: linear-gradient(0deg, #1b063a, #5e0b6b);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.452);
  }

  body.is-logged-in .menu-btn {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.28);
    color: #ffffff;
  }

  body.is-logged-in .header-logo {
    justify-self: center;
    max-width: min(170px, 46vw);
  }

  body.is-logged-in .header-logo img {
    height: 36px;
    max-width: 100%;
    object-fit: contain;
  }

  body.is-logged-in .header-actions {
    width: auto;
    min-width: 0;
    gap: 0.35rem;
    justify-content: flex-end;
  }

  body.is-logged-in .auth-user {
    flex: 0 0 auto;
    min-width: 0;
    align-items: center;
    gap: 0.4rem;
    justify-content: flex-end;
  }

  body.is-logged-in .header-deposit {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: auto;
    height: 35px;
    flex-shrink: 0;
    padding: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  body.is-logged-in .header-deposit__img {
    display: block;
    height: 28px;
    width: auto;
  }

  body.is-logged-in .header-user-stack {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    min-width: 118px;
  }

  body.is-logged-in .header-user-id {
    order: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.28rem;
    width: 100%;
    max-width: none;
    color: #ffffff;
    text-decoration: none;
  }

  body.is-logged-in .header-username {
    display: block;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 0.78rem;
    font-weight: 600;
    line-height: 1.1;
    color: #ffffff;
  }

  body.is-logged-in .header-user-id .header-profile {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    border: none;
    background: transparent;
  }

  body.is-logged-in .header-user-id .header-profile svg,
  body.is-logged-in .header-user-id .header-profile .profile-icon-img {
    width: 18px;
    height: 18px;
  }

  body.is-logged-in .header-wallet-group {
    order: 0;
    flex: 0 0 auto;
    width: auto;
    min-width: 0;
    max-width: 100%;
  }

  body.is-logged-in .header-wallet-group .header-balance {
    flex: 0 0 auto;
  }

  body.is-logged-in .header-wallet-group > .header-balance:first-child {
    position: relative;
    min-height: 24px;
    min-width: 100px;
    width: 100%;
    padding: 0.1rem 0.28rem;
    justify-content: flex-end;
    background: rgba(8, 4, 18, 0.521);
    border: none;
    border-radius: 999px;
    box-shadow: none;
  }

  body.is-logged-in .header-wallet-group > .header-balance:first-child .header-balance__coin {
    display: none;
  }

  body.is-logged-in .header-wallet-group > .header-balance:first-child .header-balance__value {
    position: absolute;
    left: 0;
    right: 0;
    flex: none;
    color: #ffffff;
    font-size: 0.78rem;
    font-weight: 700;
    text-align: center;
    pointer-events: none;
  }

  body.is-logged-in .header-wallet-group > .header-balance:first-child .header-balance__refresh {
    position: relative;
    z-index: 1;
    width: 16px;
    height: 16px;
    border: none;
    color: #ffffff;
    background: #e1061b;
  }

  body.is-logged-in .header-wallet-group > .header-balance:first-child .header-balance__refresh svg {
    width: 10px;
    height: 10px;
  }

  body.is-logged-in .bottom-nav {
    background: linear-gradient(180deg, #4a0a58 0%, #1a0630 100%);
  }

  body.is-logged-in .bottom-nav-item.is-active,
  body.is-logged-in .bottom-nav-item:active {
    border-radius: 8px 8px 0 0;
    background: linear-gradient(180deg, #f7c43a 0%, #e08f10 100%);
  }

  body.is-logged-in .lang-btn {
    width: 34px;
    height: 34px;
  }

  body.is-logged-in .announcement-bar,
  body.is-logged-in.has-active-promotion .announcement-bar {
    display: flex;
    width: 100%;
    height: auto;
    min-height: 10px;
    max-height: 35px;
    padding: 0 !important;
    background: #6b1a9a;
    overflow: hidden;
    border-top: none;
    gap: 0;
    align-items: center;
  }

  body.is-logged-in .announcement-bar__content,
  body.is-logged-in.has-active-promotion .announcement-bar__content {
    width: 100%;
    min-width: 0;
    min-height: 38px;
    padding: 0.35rem 0.7rem 0.35rem 0.65rem;
    gap: 0.5rem;
    align-self: auto;
  }

  body.is-logged-in .announcement-bar__content::before {
    display: none;
  }

  body.is-logged-in .announcement-icon {
    width: 18px !important;
    height: 18px !important;
    margin: 0;
  }

  body.is-logged-in .announcement-track {
    flex: 1 1 0;
    width: 0;
  }

  body.is-logged-in .announcement-text span {
    font-size: 0.84rem;
    font-weight: 700;
    color: #ffffff;
  }

  body.is-logged-in .header-promotion-balance--mobile {
    display: none !important;
  }

  body.is-logged-in .header-promotion-balance--mobile.header-balance--promotion {
    align-self: stretch;
    flex: 0 0 auto;
    width: auto;
    min-width: 120px;
    max-width: 42%;
    min-height: 34px;
    margin: 0;
    padding: 0.22rem 0.45rem 0.22rem 0.55rem;
    border-radius: 14px 0 0 14px;
    border: none;
    border-top: 2px solid #4d4d4d;
    border-bottom: 2px solid #4d4d4d;
    border-left: 2px solid #4d4d4d;
    background: rgba(26, 26, 26, 0.98);
    box-shadow: none;
    margin-bottom: 5px;
  }

  body.is-logged-in .header-promotion-balance--mobile .header-balance__coin {
    width: 20px;
    height: 20px;
  }

  body.is-logged-in .header-promotion-balance--mobile .header-balance__value {
    font-size: 12px;
    color: #ffffff;
  }

  body.is-logged-in .header-promotion-balance--mobile .header-balance__refresh {
    width: 20px;
    height: 20px;
  }

  body.is-logged-in .header-promotion-balance--mobile .header-balance__refresh svg {
    width: 13px;
    height: 13px;
  }

  body:not(.page-home) .main-content.main-content--auth {
    min-height: calc(100vh - var(--header-height) - var(--bottom-nav-height) - var(--bottom-nav-float));
    min-height: calc(100dvh - var(--header-height) - var(--bottom-nav-height) - var(--bottom-nav-float));
  }

  body:not(.is-logged-in) .site-header {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) 44px;
    align-items: center;
    gap: 0.35rem;
    min-height: 52px;
    padding: 0.25rem 0.55rem;
    background: linear-gradient(0deg, #1b063a, #5e0b6b);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.452);
  }

  body:not(.is-logged-in) .top-bar {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    padding: 0;
    background: #2a0850;
  }

  body:not(.is-logged-in) .menu-btn {
    grid-column: 1;
    grid-row: 1;
    justify-self: start;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: rgba(29, 29, 29, 0.911);
  }

  body:not(.is-logged-in) .header-logo {
    display: inline-flex;
    grid-column: 2;
    grid-row: 1;
    justify-self: center;
    max-width: min(220px, 62vw);
  }

  body:not(.is-logged-in) .header-logo img,
  body:not(.is-logged-in) .header-logo__img {
    height: 38px;
    max-width: 100%;
    object-fit: contain;
  }

  body:not(.is-logged-in) .header-actions {
    grid-column: 3;
    grid-row: 1;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    width: auto;
    min-width: 0;
  }

  body:not(.is-logged-in) .announcement-bar {
    display: flex;
    width: 100%;
    min-height: 10px;
    max-height: 35px;
    padding: 0 !important;
    background: #6b1a9a;
    overflow: hidden;
  }

  body:not(.is-logged-in) .announcement-bar__content {
    width: 100%;
    min-width: 0;
    min-height: 38px;
    padding: 0.35rem 0.7rem 0.35rem 0.65rem;
    gap: 0.5rem;
  }

  body:not(.is-logged-in) .announcement-bar__content::before {
    display: none;
  }

  body:not(.is-logged-in) .announcement-icon {
    width: 18px !important;
    height: 18px !important;
    margin: 0;
  }

  body:not(.is-logged-in) .announcement-text span {
    font-size: 0.84rem;
    font-weight: 700;
    color: #ffffff;
  }

  body:not(.is-logged-in) .lang-btn {
    width: 34px;
    height: 34px;
    border: 1px solid rgba(255, 255, 255, 0.18);
  }
}

/* ── Main content ── */
.main-content {
  flex: 1;
  padding: 5px 5px 5px 5px;
  padding-bottom: calc(var(--bottom-nav-height) + var(--bottom-nav-float) + 1rem + env(safe-area-inset-bottom, 0px));
}

/* ── Page panels ── */
.page-panel {
  width: 100%;
}

.page-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  min-height: 360px;
  padding: 2rem 1rem;
  border-radius: var(--radius-lg);
  background: var(--bg-surface);
  border: 1px solid var(--border);
  text-align: center;
}

.page-placeholder__title {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--gold);
}

.page-placeholder__text {
  font-size: 0.9rem;
  color: var(--text-muted);
  max-width: 320px;
}

/* ── Hero banners ── */
.hero-banners {
  display: grid;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.banner {
  position: relative;
  display: block;
  width: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 5 / 2;
}

.banner-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.4s ease;
}

.banner-media {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: fill;
  object-position: center;
}

.banner:hover .banner-bg {
  transform: scale(1.03);
}

.banner:hover .banner-media {
  transform: scale(1.02);
  transition: transform 0.4s ease;
}

.banner-bg--olympus {
  background-image: linear-gradient(135deg, #1a0533 0%, #4c1d95 35%, #7c3aed 60%, #f59e0b 100%);
}

.banner-bg--casino {
  background-image: linear-gradient(135deg, #1c1917 0%, #7f1d1d 50%, #fbbf24 100%);
}

.banner-bg--slot {
  background-image: linear-gradient(135deg, #831843 0%, #db2777 45%, #fbcfe8 100%);
}

.banner-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  height: 100%;
  padding: 1rem 1.25rem;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.75) 0%, rgba(0, 0, 0, 0.1) 60%, transparent 100%);
}

.banner-main h2 {
  font-size: 1rem;
  font-weight: 700;
  max-width: 220px;
  line-height: 1.35;
}

.banner-badge,
.banner-tag {
  display: inline-block;
  align-self: flex-start;
  padding: 0.2rem 0.65rem;
  margin-bottom: 0.35rem;
  border-radius: var(--radius-pill);
  background: var(--gold);
  color: #1a1400;
  font-size: 0.85rem;
  font-weight: 800;
}

.banner-sub p {
  font-size: 0.85rem;
  font-weight: 700;
}

.banner-stack {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.banner-carousel {
  position: relative;
  display: block;
  padding: 0;
  overflow: hidden;
}

.banner-carousel__track {
  display: flex;
  width: 100%;
  height: 100%;
  aspect-ratio: inherit;
  transition: transform 0.45s ease;
  will-change: transform;
}

.banner-carousel__slide {
  position: relative;
  flex: 0 0 100%;
  width: 100%;
  min-width: 100%;
  height: 100%;
  opacity: 1;
  pointer-events: auto;
}

.banner-carousel__slide.is-active {
  opacity: 1;
  pointer-events: auto;
}

.banner-carousel__link {
  display: block;
  width: 100%;
  height: 100%;
  text-decoration: none;
}

.banner-carousel__dots {
  position: absolute;
  left: 50%;
  bottom: 0.65rem;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  transform: translateX(-50%);
}

.banner-carousel__dot {
  width: 7px;
  height: 7px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}

.banner-carousel__dot.is-active {
  background: var(--gold);
  transform: scale(1.15);
}

/* ── Game sections ── */
.game-section {
  margin-bottom: 1.75rem;
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.85rem;
  gap: 0.75rem;
}

.section-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.section-title h2 {
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.section-icon {
  font-size: 1.1rem;
  line-height: 1;
}

.section-icon-img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.view-all {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-pill);
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid var(--border);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
  transition: background 0.2s, color 0.2s;
}

.view-all:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
}

.game-row {
  overflow: hidden;
  padding-bottom: 0.35rem;
  width: 100%;
}

.game-row-track {
  display: flex;
  gap: 0.75rem;
  width: max-content;
  will-change: transform;
}

.game-row--scroll-rtl .game-row-track {
  animation: game-scroll-rtl 45s linear infinite;
}

.game-row--scroll-ltr .game-row-track {
  animation: game-scroll-ltr 45s linear infinite;
}

.game-row--scroll-rtl:hover .game-row-track,
.game-row--scroll-ltr:hover .game-row-track {
  animation-play-state: paused;
}

@keyframes game-scroll-rtl {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@keyframes game-scroll-ltr {
  0% { transform: translateX(-50%); }
  100% { transform: translateX(0); }
}

@media (prefers-reduced-motion: reduce) {
  .game-row--scroll-rtl .game-row-track,
  .game-row--scroll-ltr .game-row-track {
    animation: none;
  }

  .sidebar-btn__img,
  .btn-img__src {
    animation: none;
    filter: none;
    opacity: 1;
  }

  .game-row {
    overflow-x: auto;
    mask-image: none;
    scrollbar-width: none;
  }

  .game-row::-webkit-scrollbar {
    display: none;
  }
}

.game-card {
  flex: 0 0 auto;
  width: 120px;
  transition: transform 0.2s;
}

.game-card:hover {
  transform: translateY(-3px);
}

.game-thumb {
  width: 120px;
  height: 160px;
  border-radius: var(--radius-md);
  background-size: cover;
  background-position: center;
  margin-bottom: 0.45rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
  overflow: hidden;
}

.game-thumb--photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

button.game-card {
  border: none;
  background: transparent;
  padding: 0;
  font: inherit;
  color: inherit;
  cursor: pointer;
  text-align: inherit;
}

.game-card--maintenance {
  position: relative;
  opacity: 0.72;
  cursor: not-allowed;
}

.game-card--maintenance .catalog-maintenance {
  position: absolute;
  top: 0;
  left: 0;
  width: 120px;
  height: 160px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  background: rgba(8, 12, 20, 0.62);
  border-radius: var(--radius-md);
}

.game-row__placeholder {
  margin: 0;
  padding: 1rem 0.25rem;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.9rem;
}

.game-card--skeleton {
  pointer-events: none;
}

.game-thumb--skeleton {
  position: relative;
  background: rgba(255, 255, 255, 0.07);
  overflow: hidden;
}

.game-thumb--skeleton::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.08) 35%,
    rgba(255, 255, 255, 0.18) 50%,
    rgba(255, 255, 255, 0.08) 65%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: translateX(-100%);
  animation: game-skeleton-shimmer 1.35s ease-in-out infinite;
}

.game-name--skeleton {
  display: block;
  width: 72px;
  height: 10px;
  margin: 0 auto;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  position: relative;
  overflow: hidden;
}

.game-name--skeleton::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.16) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: translateX(-100%);
  animation: game-skeleton-shimmer 1.35s ease-in-out infinite;
  animation-delay: 0.15s;
}

@keyframes game-skeleton-shimmer {
  100% {
    transform: translateX(100%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .game-thumb--skeleton::after,
  .game-name--skeleton::after {
    animation: none;
    opacity: 0.35;
    transform: none;
  }
}

.game-name {
  display: block;
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Game thumb gradients */
.game-thumb--santa { background-image: linear-gradient(160deg, #7f1d1d, #dc2626, #fca5a5); }
.game-thumb--olympus { background-image: linear-gradient(160deg, #312e81, #6366f1, #fbbf24); }
.game-thumb--athena { background-image: linear-gradient(160deg, #1e3a5f, #38bdf8, #e0f2fe); }
.game-thumb--book { background-image: linear-gradient(160deg, #422006, #d97706, #fde68a); }
.game-thumb--sugar { background-image: linear-gradient(160deg, #831843, #ec4899, #fbcfe8); }
.game-thumb--buffalo { background-image: linear-gradient(160deg, #451a03, #b45309, #fcd34d); }
.game-thumb--wildwest { background-image: linear-gradient(160deg, #78350f, #ea580c, #fed7aa); }
.game-thumb--aztec { background-image: linear-gradient(160deg, #14532d, #16a34a, #bbf7d0); }
.game-thumb--sugar1000 { background-image: linear-gradient(160deg, #701a75, #e879f9, #fae8ff); }
.game-thumb--starlight { background-image: linear-gradient(160deg, #4c1d95, #a855f7, #f0abfc); }
.game-thumb--live1 { background-image: linear-gradient(160deg, #1c1917, #44403c, #d6d3d1); }
.game-thumb--live2 { background-image: linear-gradient(160deg, #450a0a, #991b1b, #fecaca); }
.game-thumb--live3 { background-image: linear-gradient(160deg, #1e1b4b, #4338ca, #c7d2fe); }
.game-thumb--live4 { background-image: linear-gradient(160deg, #713f12, #ca8a04, #fef08a); }
.game-thumb--live5 { background-image: linear-gradient(160deg, #134e4a, #0d9488, #99f6e4); }

/* ── Bottom nav (mobile) ── */
.bottom-nav {
  position: fixed;
  height: 50px !important;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 120;
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  height: calc(var(--bottom-nav-height) + env(safe-area-inset-bottom, 0px));
  padding: 0;
  background: linear-gradient(180deg, #5e0b6b, #190635);
  border-top: 3px solid #d8a837;
}

.bottom-nav-item {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 0;
  padding-bottom: env(safe-area-inset-bottom, 0);
  min-width: 0;
  color: #ffffff;
  border-radius: 0;
  transition: background 0.2s, color 0.2s;
  -webkit-tap-highlight-color: transparent;
  tap-highlight-color: transparent;
  outline: none;
  -webkit-user-select: none;
  user-select: none;
}

.bottom-nav-item img,
.bottom-nav-item__icon {
  width: 35px;
  height: 35px;
  object-fit: contain;
}

.bottom-nav-item__label,
.bottom-nav-item span {
  display: none !important;
}

.bottom-nav-item__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
}

.bottom-nav-item__icon svg {
  width: 24px;
  height: 24px;
}

.bottom-nav-item:active,
.bottom-nav-item.is-active {
  color: #ffffff;
  background: linear-gradient(180deg, #f7bd20 0%, #e69a0e 100%);
}

.bottom-nav-item.is-active img {
  filter: none;
}

.bottom-nav-item.is-active .bottom-nav-item__icon {
  color: #ffffff;
}

.bottom-nav-item--center.is-active .bottom-nav-logo {
  box-shadow:
    0 4px 14px rgba(255, 255, 255, 0.6);
}

.bottom-nav-item--center {
  position: relative;
  top: -5px;
  justify-content: flex-start;
  gap: 0.2rem;
  padding-bottom: 0;
}

.bottom-nav-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #2a2a2a, #0a0a0a);
  border: 2.5px solid var(--gold);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.6);
  overflow: hidden;
  padding: 10px;
  box-sizing: border-box;
}

.bottom-nav-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.bottom-nav-domain {
  font-size: 0.48rem;
  color: rgba(255, 255, 255, 0.65);
  letter-spacing: 0.01em;
  white-space: nowrap;
}

/* ── Desktop layout ── */
@media (min-width: 901px) {
  .app {
    display: flex;
  }

  .sidebar {
    position: sticky;
    top: 0;
    align-self: flex-start;
    flex-shrink: 0;
    height: 100dvh;
    max-height: 100dvh;
    transform: none !important;
  }

  .sidebar-close {
    display: none !important;
  }

  .sidebar-overlay {
    display: none !important;
  }

  .top-bar {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0 1rem;
    min-height: var(--header-height);
    background: #1e073f;
    box-shadow: 0 0 15px 5px rgba(2, 2, 2, 0.5);
  }

  .site-header {
    display: flex;
    align-items: center;
    order: 2;
    flex-shrink: 0;
    height: auto;
    padding: 0;
    background: transparent;
    grid-template-columns: unset;
  }

  body:not(.is-logged-in) .site-header {
    display: flex;
  }

  body:not(.is-logged-in) .header-actions {
    width: auto;
  }

  .menu-btn,
  .header-logo,
  .sidebar-menu,
  .sidebar-langs {
    display: none;
  }

  .sidebar-nav .nav-item[data-page="home"],
  .sidebar-nav .nav-item[data-page="buffalo"] {
    display: none;
  }

  .header-actions {
    grid-column: unset;
  }

  .announcement-bar {
    order: 1;
    flex: 1;
    min-width: 0;
    height: auto;
    padding: 0;
    background: transparent;
  }

  .announcement-icon {
    width: 24px;
    height: 24px;
  }

  .announcement-text span {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.85);
  }

  .btn {
    padding: 0.45rem 1.1rem;
    font-size: 0.82rem;
  }

  .lang-btn {
    width: 50px;
    height: 50px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    margin-right: 10px;
  }

  body.is-logged-in .auth-user {
    display: none !important;
  }

  .header-profile {
    width: 36px;
    height: 36px;
  }

  .main-wrapper {
    flex: 1;
    min-width: 0;
  }

  .main-content {
    padding-bottom: 2rem;
    background-color: #1e0445;
  }

  .hero-banners {
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
    grid-template-rows: auto auto;
    column-gap: 0.75rem;
    row-gap: 0.75rem;
    align-items: stretch;
  }

  .banner-main,
  .banner-carousel {
    grid-column: 1;
    grid-row: 1 / 3;
    aspect-ratio: auto;
    width: 100%;
    height: 100%;
    min-height: 0;
    align-self: stretch;
  }

  .banner-main .banner-media,
  .banner-carousel .banner-media {
    object-fit: fill;
  }

  .banner-stack {
    display: contents;
  }

  .banner-sub {
    grid-column: 2;
    aspect-ratio: 5 / 2;
    width: 100%;
    min-height: 0;
  }

  .banner-sub:nth-child(1) {
    grid-row: 1;
  }

  .banner-sub:nth-child(2) {
    grid-row: 2;
  }

  .banner-sub .banner-media {
    object-fit: fill;
  }

  .banner-carousel__track {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    aspect-ratio: auto;
  }

  .game-card {
    width: 140px;
  }

  .game-thumb {
    width: 140px;
    height: 186px;
  }

  .bottom-nav {
    display: none;
  }
}

/* ── Mobile sidebar drawer ── */
@media (max-width: 900px) {
  :root {
    --mobile-sidebar-width: min(68vw, 300px);
  }

  .app {
    overflow-x: hidden;
    background: #1e0446;
  }

  html {
    background: #1e0446;
  }

  .main-wrapper,
  .main-content {
    background-color: #1e0446;
  }

  .sidebar {
    width: var(--mobile-sidebar-width);
    max-width: none;
    height: calc(100dvh - var(--bottom-nav-height) - env(safe-area-inset-bottom, 0px));
    max-height: calc(100dvh - var(--bottom-nav-height) - env(safe-area-inset-bottom, 0px));
    transform: translateX(-100%);
    background: linear-gradient(180deg, #1e0446 0%, #11022a 100%);
    border-right: none;
    padding: 0.25rem 0.85rem 0.9rem;
    box-shadow: 8px 0 28px rgba(0, 0, 0, 0.45);
  }

  .bottom-nav {
    z-index: 210;
  }

  .sidebar-overlay {
    background: transparent;
  }

  .main-wrapper,
  .sidebar-overlay,
  .bmp-contact-fab {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  }

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

  body.sidebar-open .main-wrapper,
  body.sidebar-open .sidebar-overlay,
  body.sidebar-open .bmp-contact-fab {
    transform: translateX(var(--mobile-sidebar-width));
  }

  .sidebar-close {
    display: flex;
    top: max(0.2rem, env(safe-area-inset-top, 0px));
    right: 0.2rem;
    width: 36px;
    height: 36px;
  }

  .sidebar-close svg {
    width: 22px;
    height: 22px;
  }

  .sidebar-scroll {
    display: flex;
    flex-direction: column;
    padding-top: 1.6rem;
  }

  .sidebar-top,
  .sidebar-auth,
  .sidebar-nav,
  .sidebar-footer {
    display: none;
  }

  .sidebar-user {
    order: 0;
    display: none !important;
  }

  body.is-logged-in .sidebar-user {
    display: none !important;
  }

  .sidebar-user__wallet,
  .sidebar-user__deposit,
  .sidebar-user__menu-btn,
  .sidebar-user__logout {
    width: 100%;
  }

  .sidebar-menu {
    display: flex;
    flex-direction: column;
    gap: 0.12rem;
    order: 1;
    padding: 0.15rem 0.1rem 0.55rem;
  }

  .sidebar-menu__item {
    display: flex;
    align-items: center;
    gap: 0.50rem;
    min-height: 38px;
    padding: 0px 20px;
    color: #ffffff;
    text-decoration: none;
    font-size: 0.98rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    line-height: 1.15;
  }

  body.is-logged-in .sidebar-menu__item--guest {
    display: none;
  }

  .sidebar-menu__item--auth {
    display: none;
  }

  body.is-logged-in .sidebar-menu__item--auth {
    display: flex;
  }

  .sidebar-menu__icon-img--blend {
    mix-blend-mode: screen;
  }

  .sidebar-menu__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    flex-shrink: 0;
    color: #ffffff;
  }

  .sidebar-menu__icon svg,
  .sidebar-menu__icon img {
    width: 30px;
    height: 30px;
    object-fit: contain;
  }

  .sidebar-download {
    order: 2;
    gap: 0.2rem;
    width: 130px;
    min-height: 30px;
    margin: 20px auto;
    padding: 0.3rem 0.5rem;
    border: none;
    border-radius: 10px;
    background: #ffffff;
    color: #1a1a1a;
    box-shadow: 0 4px 1px rgb(116, 116, 116);
  }

  .sidebar-download__icon {
    display: block;
    width: 26px;
    height: 26px;
    color: #1a1a1a;
  }

  .sidebar-download__label-desktop {
    display: none;
  }

  .sidebar-download__label-mobile {
    display: block;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0;
    line-height: 1.1;
  }

  .sidebar-download:hover {
    background: #ffffff;
    border-color: transparent;
  }

  .sidebar-payments {
    width: 230px;
    order: 3;
    margin: 20px auto;
    padding: 10px;
    border-radius: 14px;
    background: #151515;
    border: none;
  }

  .sidebar-payments__grid {
    gap: 0.3rem;
  }

  .header-actions .lang-switcher {
    display: none;
  }

  .sidebar-langs {
    display: flex;
    align-items: center;
    justify-content: center;
    order: 4;
    width: 100%;
    margin-top: auto;
    padding: 0.45rem 0.15rem 0.2rem;
    border: none;
    background: transparent;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }

  .lang-cluster__flags {
    display: flex;
    align-items: center;
  }

  .lang-cluster__flags img {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    position: relative;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
    filter: brightness(0.42);
    opacity: 0.7;
  }

  .lang-cluster__flags img + img {
    margin-left: -13px;
  }

  .lang-cluster__flags img:nth-child(1) { z-index: 4; }
  .lang-cluster__flags img:nth-child(2) { z-index: 3; }
  .lang-cluster__flags img:nth-child(3) { z-index: 2; }
  .lang-cluster__flags img:nth-child(4) { z-index: 1; }

  .lang-cluster__flags img.is-active {
    z-index: 5;
    filter: none;
    opacity: 1;
    box-shadow: 0 2px 7px rgba(0, 0, 0, 0.5);
  }

  body.lang-modal-open {
    overflow: hidden;
  }

  .lang-modal:not([hidden]) {
    position: fixed;
    inset: 0;
    z-index: 1600;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
  }

  .lang-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.72);
  }

  .lang-modal__dialog {
    position: relative;
    z-index: 1;
    width: min(100%, 300px);
    padding: 1.35rem 1.2rem 1.15rem;
    border-radius: 22px;
    background: #1a0828;
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.55);
  }

  .lang-modal__title {
    margin: 0 0 1.15rem;
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: 0.01em;
    text-align: center;
    color: #f6d15a;
  }

  .lang-modal__flags {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    justify-items: center;
    gap: 0.95rem 0.85rem;
    margin: 0 auto 1.25rem;
    width: min(100%, 220px);
  }

  .lang-modal__flag {
    width: 54px;
    height: 54px;
    padding: 0;
    border: 3px solid #6ec8e6;
    border-radius: 50%;
    background: transparent;
    overflow: hidden;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }

  .lang-modal__flag--zh {
    grid-column: 2;
    border-color: #e56a2a;
  }

  .lang-modal__flag.is-active {
    box-shadow: 0 0 0 3px rgba(246, 209, 90, 0.45);
  }

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

  .lang-modal__cancel {
    display: block;
    width: 82%;
    margin: 0 auto;
    padding: 0.62rem 1rem;
    border: none;
    border-radius: 10px;
    background: linear-gradient(180deg, #f3c14a 0%, #d89012 100%);
    color: #ffffff;
    font: inherit;
    font-size: 0.95rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
    box-shadow: 0 3px 0 #9a6408;
  }

  .lang-modal__cancel:active {
    transform: translateY(1px);
    box-shadow: 0 2px 0 #9a6408;
  }

  .sidebar-lang {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    padding: 0;
    border: 2px solid transparent;
    border-radius: 50%;
    background: transparent;
    overflow: hidden;
    cursor: pointer;
  }

  .sidebar-lang img {
    width: 30px;
    height: 30px;
    object-fit: cover;
    border-radius: 50%;
    display: block;
  }

  .sidebar-lang.is-active {
    border-color: #ffffff;
  }
}

@media (max-width: 380px) {
  body:not(.is-logged-in) .header-logo {
    max-width: min(180px, 58vw);
  }
}

@media (max-width: 360px) {
  body:not(.is-logged-in) .lang-btn {
    width: 30px;
    height: 30px;
  }
}

@media (min-width: 1200px) {
  :root {
    --sidebar-width: 280px;
  }

  .banner-main {
    min-height: 320px;
  }

  .banner-main h2 {
    font-size: 1.15rem;
    max-width: 280px;
  }

  .game-card {
    width: 155px;
  }

  .game-thumb {
    width: 155px;
    height: 206px;
  }
}

/* ── Auth pages (Login / Register) ── */
.main-content.main-content--auth {
  padding: 0;
  padding-bottom: calc(var(--bottom-nav-height) + var(--bottom-nav-float) + env(safe-area-inset-bottom, 0px));
  min-height: calc(100vh - var(--header-height) - var(--announcement-height) - var(--bottom-nav-height) - var(--bottom-nav-float));
  min-height: calc(100dvh - var(--header-height) - var(--announcement-height) - var(--bottom-nav-height) - var(--bottom-nav-float));
}

.auth-page {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: inherit;
  padding: 0;
}

.auth-card {
  display: flex;
  flex-direction: column;
  width: 100%;
  min-height: inherit;
  overflow: hidden;
}

.auth-card__visual {
  position: relative;
  flex-shrink: 0;
  height: clamp(220px, 38vh, 320px);
  overflow: hidden;
}

.auth-card__visual-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(0, 0, 0, 0.15), rgba(0, 0, 0, 0.45)),
    linear-gradient(145deg, #312e81 0%, #7c3aed 35%, #f59e0b 70%, #ef4444 100%);
}

.auth-card__banner {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.auth-card__panel {
  position: relative;
  z-index: 2;
  flex: 1;
  margin-top: -1.35rem;
  padding: 1.75rem 1.25rem 2rem;
  border-radius: 1.75rem 1.75rem 0 0;
  background: #0a0a0a;
}

.auth-card__title {
  margin-bottom: 1.35rem;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-align: center;
  color: #ffffff;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.auth-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.auth-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: #ffffff;
}

.password-input-wrap {
  position: relative;
}

.password-input-wrap .auth-input {
  padding-right: 2.85rem;
}

.password-toggle {
  position: absolute;
  top: 50%;
  right: 0.85rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: transparent;
  color: rgba(255, 255, 255, 0.55);
  transform: translateY(-50%);
  cursor: pointer;
  transition: color 0.2s ease;
}

.password-toggle:hover {
  color: var(--gold);
}

.password-toggle svg {
  width: 18px;
  height: 18px;
}

.password-toggle .icon-eye-off {
  display: none;
}

.password-toggle.is-visible .icon-eye {
  display: none;
}

.password-toggle.is-visible .icon-eye-off {
  display: block;
}

.auth-input {
  width: 100%;
  height: 46px;
  padding: 0 1rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-pill);
  background: #1a1a1a;
  color: #ffffff;
  font: inherit;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.auth-input::placeholder {
  color: rgba(255, 255, 255, 0.35);
}

.auth-input:focus {
  border-color: rgba(245, 197, 24, 0.55);
  box-shadow: 0 0 0 3px rgba(245, 197, 24, 0.12);
}

.auth-remember {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-top: 0.15rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: #4ade80;
  cursor: pointer;
  user-select: none;
}

.auth-remember input {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: #4ade80;
  cursor: pointer;
}

.auth-submit {
  width: 100%;
  height: 48px;
  margin-top: 0.35rem;
  border: none;
  border-radius: var(--radius-pill);
  background: var(--gold);
  color: #1a1400;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 800;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease;
}

.auth-submit:hover {
  background: var(--gold-light);
}

.auth-submit:active {
  transform: scale(0.98);
}

.auth-switch {
  margin-top: 1rem;
  font-size: 0.82rem;
  text-align: center;
  color: rgba(255, 255, 255, 0.72);
}

.auth-switch a {
  color: #2dd4bf;
  font-weight: 700;
}

.auth-switch a:hover {
  color: #5eead4;
}

.auth-message {
  margin-bottom: 0.85rem;
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
  font-weight: 600;
  text-align: center;
}

.auth-message--error {
  background: rgba(239, 68, 68, 0.12);
  color: #fca5a5;
  border: 1px solid rgba(239, 68, 68, 0.25);
}

.auth-message--success {
  background: rgba(74, 222, 128, 0.12);
  color: #86efac;
  border: 1px solid rgba(74, 222, 128, 0.25);
}

@media (min-width: 901px) {
  .main-content.main-content--auth {
    padding: 1.5rem;
    padding-bottom: 2rem;
    min-height: calc(100vh - var(--header-height));
    min-height: calc(100dvh - var(--header-height));
  }

  .auth-page {
    padding: 1rem;
  }

  .auth-card {
    flex-direction: row;
    align-items: stretch;
    width: min(100%, 860px);
    min-height: auto;
    max-height: 520px;
    border-radius: 1.25rem;
    overflow: hidden;
    background: #111111;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  }

  .auth-card__visual {
    flex: 1 1 50%;
    height: auto;
    min-height: 420px;
  }

  .auth-card__panel {
    flex: 1 1 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin-top: 0;
    padding: 2rem 2.25rem;
    border-radius: 0;
    background: #161616;
  }

  .auth-card__title {
    margin-bottom: 1.5rem;
  }
}

/* ── Login modal ── */
.auth-login-modal {
  position: fixed;
  inset: 0;
  z-index: 360;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  transition: opacity 0.22s ease;
}

.auth-login-modal.is-visible {
  opacity: 1;
}

.auth-login-modal[hidden] {
  display: none;
}

.auth-login-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(8, 0, 20, 0.72);
  backdrop-filter: blur(25px);
}

.auth-login-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 760px);
  padding: 1.35rem 1.25rem 1.5rem;
  border-radius: 1.35rem;
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.08), transparent 55%),
    linear-gradient(180deg, #5e0b6b 0%, #3a0550 52%, #1a0033 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  transform: translateY(10px) scale(0.985);
  transition: transform 0.22s ease;
}

.auth-login-modal.is-visible .auth-login-modal__dialog {
  transform: translateY(0) scale(1);
}

.auth-login-modal__close {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: transparent;
  color: var(--gold);
  cursor: pointer;
  transition: filter 0.18s ease, transform 0.18s ease;
}

.auth-login-modal__close:hover {
  filter: brightness(1.12);
  transform: scale(1.05);
}

.auth-login-modal__close svg {
  width: 22px;
  height: 22px;
}

.auth-login-modal__body {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.15rem;
}

.auth-login-modal__brand {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 0.35rem 0.5rem 0;
}

.auth-login-modal__logo {
  width: min(100%, 180px);
  height: auto;
  object-fit: contain;
}

.auth-login-modal__panel {
  width: 100%;
}

.auth-login-modal__title {
  margin: 0 0 0.85rem;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-align: center;
  color: #ffffff;
}

.auth-login-modal__message {
  margin-bottom: 0.75rem;
}

.auth-form--modal {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 30px 0;
}

.auth-modal-field {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 40px;
  border-radius: var(--radius-pill);
  background: #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18) inset;

}

.auth-modal-field__icon {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 55px;
  color: rgba(0, 0, 0, 0.38);
  background-color: #e6e6e6;
  border-radius: 50px 0 0 50px;
  height: 40px;
  border-right: 1px solid #afafaf;
  margin-right: 10px;
}

.auth-modal-field__icon svg {
  width: 20px;
  height: 20px;
}

.auth-modal-field__input-wrap {
  position: relative;
  display: flex;
  flex: 1;
  align-items: center;
  min-width: 0;
}

.auth-modal-field__input {
  width: 100%;
  height: 40px;
  padding: 0 2.6rem 0 0;
  border: none;
  border-radius: 0 var(--radius-pill) var(--radius-pill) 0;
  background: transparent;
  color: #111111;
  font: inherit;
  font-size: 18px;
  font-weight: 400;
  outline: none;
}

.auth-modal-field:not(:has(.auth-modal-field__input-wrap)) .auth-modal-field__input {
  padding-right: 2.4rem;
  border-radius: 0 var(--radius-pill) var(--radius-pill) 0;
}

.auth-modal-field__input::placeholder {
  color: rgba(0, 0, 0, 0.35);
}

.auth-modal-field__input:focus,
.auth-modal-field__input:focus-visible {
  outline: none;
  box-shadow: none;
}

.auth-modal-field__status {
  position: absolute;
  top: 50%;
  right: 0.65rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  color: #14b8a6;
  transform: translateY(-50%);
  pointer-events: none;
}

.auth-modal-field__status svg {
  width: 22px;
  height: 22px;
}

.auth-modal-field.is-valid .auth-modal-field__status--ok {
  display: inline-flex;
}

.auth-modal-field__toggle {
  position: absolute;
  top: 50%;
  right: 2.15rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: transparent;
  color: rgba(0, 0, 0, 0.42);
  transform: translateY(-50%);
  cursor: pointer;
}

.auth-modal-field__toggle svg {
  width: 18px;
  height: 18px;
}

.auth-modal-field__toggle .icon-eye-off {
  display: none;
}

.auth-modal-field__toggle.is-visible .icon-eye {
  display: none;
}

.auth-modal-field__toggle.is-visible .icon-eye-off {
  display: block;
}

.auth-modal-field--captcha {
  display: block;
  padding: 0;
  background: transparent;
  box-shadow: none;
}

.auth-modal-captcha-bar {
  height: 40px;
}

@keyframes auth-field-shake {
  0%,
  100% {
    transform: translateX(0);
  }

  20% {
    transform: translateX(-7px);
  }

  40% {
    transform: translateX(7px);
  }

  60% {
    transform: translateX(-5px);
  }

  80% {
    transform: translateX(5px);
  }
}

.auth-modal-field.is-shaking,
.auth-modal-captcha-bar.is-shaking {
  animation: auth-field-shake 0.42s ease;
}

.auth-modal-field--captcha.is-invalid .register-field__status--bad {
  display: inline-flex;
}

.auth-modal-field--captcha.is-invalid .register-field__status--ok {
  display: none;
}

.auth-modal-captcha-bar .auth-modal-field__icon--captcha {
  flex-shrink: 0;
  margin-right: 0;
}

.auth-modal-captcha-bar__input-wrap {
  position: relative;
  flex: 0 0 72px;
  min-width: 72px;
  max-width: 72px;
}

.auth-modal-captcha-bar__input {
  padding-left: 0.55rem !important;
  padding-right: 0.35rem !important;
  font-size: 18px;
  font-weight: 400;
}

.auth-modal-captcha-bar .register-captcha-bar__code {
  flex: 1 1 0;
  min-width: 132px;
}

.auth-modal-captcha-bar__input-wrap .register-field__status {
  right: 0.45rem;
}

.auth-login-modal__remember {
  margin: 0.1rem 0 0.15rem;
  font-size: 0.84rem;
  color: #ffffff;
}

.auth-login-modal__remember input {
  accent-color: var(--gold);
}

.auth-login-modal__actions {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin-top: 0.35rem;
}

.auth-login-modal__action {
  position: relative;
  display: block;
  width: 300px;
  padding: 0;
  border: none;
  background: transparent;
  line-height: 0;
  cursor: pointer;
  transition: transform 0.18s ease, filter 0.18s ease;
  margin: 0 auto;
}

.auth-login-modal__action-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  animation: auth-btn-pulse 1s linear infinite;
  will-change: opacity, filter;
}

.auth-login-modal__action-label {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #ffffff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
  pointer-events: none;
}

.auth-login-modal__action:hover {
  transform: translateY(-1px);
}

.auth-login-modal__action:hover .auth-login-modal__action-img {
  animation-play-state: paused;
  filter: brightness(1.08);
}

.auth-login-modal__action:active {
  transform: scale(0.985);
}

body.auth-login-modal-open {
  overflow: hidden;
}

@media (min-width: 901px) {
  .auth-login-modal__dialog {
    padding: 1.5rem 1.65rem 1.65rem;
  }

  .auth-login-modal__body {
    flex-direction: row;
    align-items: center;
    gap: 1.35rem;
  }

  .auth-login-modal__brand {
    flex: 0 0 42%;
    padding: 0.5rem 0.35rem;
  }

  .auth-login-modal__logo {
    width: min(100%, 220px);
  }

  .auth-login-modal__panel {
    flex: 1;
    min-width: 0;
  }

  .auth-login-modal__title {
    display: none;
  }
}

/* ── Register page (centered purple form) ── */
.auth-page--register {
  align-items: flex-start;
  justify-content: center;
  min-height: inherit;
  padding: 0.75rem 1rem 2.5rem;
}

.register-card {
  width: min(100%, 700px);
  margin: 0 auto;
}

.auth-page--login {
  position: relative;
  align-items: center;
  justify-content: center;
  min-height: inherit;
  padding: 2.6rem 1.1rem 2.5rem;
}

.login-page {
  width: min(100%, 360px);
  margin: 0 auto;
}

.login-page__close {
  position: absolute;
  top: 0.4rem;
  right: 0.7rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  color: #ffffff;
}

.login-page__close svg {
  width: 22px;
  height: 22px;
}

.login-page__title {
  margin: 0 0 1.35rem;
  font-size: 1.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-align: center;
  color: #ffffff;
}

.login-page__message {
  margin-bottom: 0.85rem;
}

.login-page__form {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.85rem;
}

.login-page__field {
  width: 100%;
}

.login-page__field[data-login-field="username"] {
  overflow: hidden;
}

.login-page__user-icon {
  align-self: stretch;
  width: 48px;
  height: 100%;
  min-height: 40px;
  margin-right: 0;
  border: none;
  border-radius: 999px 0 0 999px;
  background: #5e0b6b;
  color: #ffffff;
}

.login-page__field .auth-modal-field__input,
.login-page__field .auth-modal-captcha-bar__input {
  font-size: 15px;
}

.login-page__field[data-login-field="username"] .auth-modal-field__input {
  padding-left: 1rem;
}

.login-page__field[data-login-field="password"] .auth-modal-field__input {
  padding-left: 1rem;
  border-radius: var(--radius-pill);
}

.login-page__field[data-login-field="password"] .auth-modal-field__toggle {
  right: 0.65rem;
}

.login-page__remember {
  display: none;
}

.login-page__actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.45rem;
}

.login-page__btn {
  position: relative;
  display: block;
  width: min(100%, 300px);
  padding: 0;
  border: none;
  background: transparent;
  line-height: 0;
  cursor: pointer;
  text-decoration: none;
}

.login-page__btn-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  animation: auth-btn-pulse 1s linear infinite;
}

.login-page__btn-label {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-bottom: 2px;
  color: #ffffff;
  font: inherit;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-shadow: 0 2px 1px rgba(0, 0, 0, 0.8);
  pointer-events: none;
}

@media (max-width: 900px) {
  .auth-login-modal {
    display: none !important;
  }
}

.register-card__title {
  margin-top: 25px;
  margin-bottom: 15px;
  font-size: 30px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 0.01em;
  text-align: center;
  color: #ffffff;
}

.register-card__notice {
  width: 100%;
  margin: 0 auto 15px;
  font-size: 14px;
  line-height: 1.4;
  text-align: center;
  color: #f5b236;
}

.register-card__message {
  margin-bottom: 1rem;
}

.register-form {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
}

.register-field {
  width: 350px;
  max-width: 100%;
}

.register-field--id {
  display: block;
  height: auto;
  overflow: visible;
  border-radius: 0;
  background: transparent;
}

.register-field__control--split {
  display: flex;
  align-items: stretch;
  width: 100%;
  height: 40px;
  overflow: hidden;
  border-radius: var(--radius-pill);
  background: #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.6) inset;
}

.register-field__wrap {
  position: relative;
  width: 100%;
}

.register-field__input-wrap {
  position: relative;
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: stretch;
}

.register-field__wrap .register-input,
.register-field__input-wrap .register-input {
  padding-right: 2.6rem;
}

.register-field__status {
  position: absolute;
  top: 50%;
  right: 10px;
  display: none;
  align-items: center;
  justify-content: center;
  width: 35px;
  height: 35px;
  background: transparent;
  border: none;
  transform: translateY(-50%);
  pointer-events: none;
}

.register-field__status svg {
  display: block;
  width: 35px;
  height: 35px;
}

.register-field__status--ok {
  color: #0195b9;
}

.register-field__status--bad {
  color: #ef4444;
}

.register-field.is-valid .register-field__status--ok {
  display: inline-flex;
}

.register-field.is-invalid .register-field__status--bad {
  display: inline-flex;
}

.register-field.is-checking .register-field__status {
  display: none;
}

.register-field__error {
  margin: 6px 0 0;
  padding: 0 0.35rem;
  font-size: 0.78rem;
  line-height: 1.35;
  color: #ff6b6b;
}

.register-id-prefix {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  min-width: 70px;
  padding: 0 0.9rem;
  background: #5e0b6b;
  color: #ffffff;
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.register-input {
  width: 350px;
  max-width: 100%;
  height: 40px;
  padding: 0 1.15rem;
  border: none;
  border-radius: var(--radius-pill);
  background: #ffffff;
  color: #1f1f1f;
  font: inherit;
  font-size: 0.92rem;
  outline: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.6) inset;
}

.register-input:focus,
.register-input:focus-visible {
  outline: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.6) inset;
}

.register-field--id .register-input {
  width: 100%;
  height: 100%;
  min-width: 0;
  background: transparent;
  box-shadow: none;
}

.register-field--id .register-input:focus,
.register-field--id .register-input:focus-visible {
  outline: none;
  box-shadow: none;
}

.register-field--id:focus-within .register-field__control--split {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.6) inset;
}

.register-field--id:focus-within {
  box-shadow: none;
}

.register-field__wrap:focus-within,
.register-field__input-wrap:focus-within {
  box-shadow: none;
}

.register-field--captcha {
  display: block;
}

.register-captcha-bar {
  display: flex;
  align-items: stretch;
  width: 100%;
  height: 40px;
  overflow: hidden;
  border-radius: var(--radius-pill);
  background: #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.6) inset;
}

.register-captcha-bar__input-wrap {
  position: relative;
  flex: 0 0 26%;
  min-width: 108px;
  max-width: 150px;
  display: flex;
  align-items: stretch;
}

.register-captcha-bar__input {
  width: 100%;
  height: 100%;
  padding: 0 2.4rem 0 1rem;
  border: none;
  border-radius: 0;
  background: transparent;
  color: #1f1f1f;
  font: inherit;
  font-size: 0.92rem;
  outline: none;
  box-shadow: none;
}

.register-captcha-bar__input:focus,
.register-captcha-bar__input:focus-visible {
  outline: none;
  box-shadow: none;
}

.register-captcha-bar__input-wrap .register-field__status {
  right: 8px;
}

.register-captcha-bar__code {
  position: relative;
  display: flex;
  flex: 1 1 0;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  min-width: 132px;
  padding: 0 0.35rem;
  background: #ffffff;
  border-left: 1px solid rgba(0, 0, 0, 0.08);
  user-select: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.6) inset;
  overflow: hidden;
}

.register-captcha-bar__strike {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.register-captcha-bar__digit {
  position: relative;
  z-index: 1;
  font-family: var(--captcha-digit-font, "Caveat", "Segoe Script", "Brush Script MT", cursive);
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
  color: var(--digit-color, #e91e63);
  transform: rotate(var(--digit-rotate, 0deg));
}

.register-captcha-bar__refresh {
  position: relative;
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 70px;
  min-width: 70px;
  padding: 0;
  border: none;
  border-radius: 0 var(--radius-pill) var(--radius-pill) 0;
  background: #5e0b6b;
  color: #ffffff;
  cursor: pointer;
  transition: filter 0.18s ease, opacity 0.18s ease;
}

.register-captcha-bar__refresh:hover {
  filter: brightness(1.08);
}

.register-captcha-bar__refresh svg {
  position: relative;
  z-index: 1;
  width: 40px;
  height: 40px;
}

.register-captcha-bar__refresh-count {
  position: absolute;
  z-index: 2;
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  color: #ffffff;
  pointer-events: none;
}

.register-input::placeholder {
  color: rgba(31, 31, 31, 0.42);
}

.register-submit.auth-submit {
  width: min(100%, 280px);
  height: 50px;
  margin: 0.85rem auto 0;
  border: none;
  border-bottom: 5px solid #58333a;
  border-radius: 12px;
  background: linear-gradient(180deg, #825447 0%, #694339 100%);
  color: #1a0f26;
  font: inherit;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: not-allowed;
  box-shadow: none;
  opacity: 1;
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease,
    filter 0.18s ease,
    transform 0.15s ease;
}

.register-submit.auth-submit:disabled {
  cursor: not-allowed;
}

.register-submit.auth-submit:not(:disabled) {
  background: linear-gradient(180deg, #ffc133 0%, #f09f00 100%);
  border-bottom: 5px inset #965d00;
  color: #1a1a1a;
  cursor: pointer;
}

.register-submit.auth-submit:hover:not(:disabled) {
  filter: brightness(1.04);
}

.register-submit.auth-submit:active:not(:disabled) {
  transform: translateY(1px);
}

.register-card__switch {
  margin-top: 1.15rem;
}

@media (min-width: 901px) {
  .auth-page--register {
    align-items: flex-start;
    min-height: calc(100vh - var(--header-height));
    min-height: calc(100dvh - var(--header-height));
    padding: 1rem 1.5rem 2.5rem;
  }

  .register-card {
    width: min(100%, 700px);
  }

  .register-form {
    gap: 15px;
  }
}
