﻿:root {
  --app-max-width: 480px;
  --bg-main: #190127;
  --bg-deep: #0f0019;
  --bg-card: #271A41;
  --bg-soft: #271A41;
  --line: rgba(255, 255, 255, 0.1);
  --text-main: #f4f1ff;
  --text-muted: #b8add3;
  --accent: #b848ff;
  --accent-2: #36e39b;
  --topbar-bg: #190127;
  --radius-lg: 20px;
  --radius-md: 14px;
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html {
  overflow: hidden;
  overflow-y: auto;
  height: 100%;
  width: 100%;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  overflow-x: hidden;
}

body {
  font-family: "Manrope", "Segoe UI", sans-serif;
  background: #190127;
  color: var(--text-main);
  line-height: 1.35;
  overflow-x: hidden;
  width: 100%;
  overscroll-behavior-x: none;
}

button,
input {
  font: inherit;
}

.app-shell {
  width: 100%;
  max-width: var(--app-max-width);
  margin: 0 auto;
  min-height: 100dvh;
  position: relative;
  background: #190127;
  overflow-x: hidden;
}

.topbar {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(100%, var(--app-max-width));
  height: 74px;
  padding: 0 16px;
  z-index: 60;
  background: linear-gradient(180deg, #192c42 0%, var(--topbar-bg) 100%);
  border-bottom: 1px solid rgba(73, 123, 194, 0.45);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  font-size: clamp(20px, 5vw, 28px);
  letter-spacing: 0.45px;
  font-weight: 800;
}

.topbar-actions {
  display: flex;
  gap: 8px;
}

.topbar-icon {
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #aeb8c8;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

/* ── Global app topbar ── */
.app-topbar {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(100%, var(--app-max-width));
  height: 64px;
  z-index: 1300;
  background: #190127;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  display: flex;
  align-items: center;
  padding: 0 14px;
  gap: 12px;
}

.app-topbar-logo {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: linear-gradient(135deg, #7b2fff, #b848ff);
  border: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
  padding: 0;
}

.app-topbar-icon-img {
  width: 30px;
  height: 30px;
  object-fit: contain;
  display: block;
  pointer-events: none;
}

.app-topbar-balance {
  flex: 1;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 20px;
  padding: 0 14px;
  height: 40px;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  max-width: 160px;
  margin: 0 auto;
}

.app-topbar-curr {
  color: var(--text-muted);
  font-size: 13px;
}

.app-topbar-balance svg {
  color: var(--text-muted);
  flex-shrink: 0;
}

.app-topbar-bell {
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.10);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  flex-shrink: 0;
}

.app-topbar-bell-dot {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ff3d3d;
  border: 2px solid #190127;
}

.content {
  min-height: 100dvh;
  padding: 78px 14px 110px;
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
}

.page {
  display: none;
  gap: 16px;
  min-width: 0;
  max-width: 100%;
}

.page.active {
  display: grid;
}

.page > * {
  min-width: 0;
  max-width: 100%;
}

.placeholder-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 16px;
}

.placeholder-card h2,
.placeholder-card p {
  margin: 0;
}

.placeholder-card p {
  margin-top: 10px;
  color: var(--text-muted);
  line-height: 1.45;
}

.profile-actions {
  margin-top: 12px;
  display: flex;
  gap: 10px;
}

/* ── Profile page ── */
.profile-page {
  padding: 0 0 100px;
}

.profile-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 16px 12px;
}

.profile-topbar-title {
  font-size: 18px;
  font-weight: 700;
}

.profile-topbar-close {
  background: rgba(255,255,255,0.08);
  border: 0;
  color: var(--text-main);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.profile-user-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 16px 16px;
}

.profile-user-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.profile-big-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #3a2a55;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 700;
  color: var(--text-muted);
  flex-shrink: 0;
}

.profile-user-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.profile-user-name {
  font-size: 16px;
  font-weight: 700;
}

.profile-user-id {
  font-size: 13px;
  color: var(--text-muted);
}

.profile-chat-btn {
  background: rgba(255,255,255,0.08);
  border: 0;
  color: var(--text-main);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.profile-balance-card {
  margin: 0 16px 12px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 18px;
  padding: 18px;
}

.profile-balance-label {
  margin: 0 0 4px;
  font-size: 13px;
  color: var(--text-muted);
}

.profile-balance-amount {
  margin: 0 0 16px;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.profile-balance-actions {
  display: flex;
  gap: 10px;
}

.profile-deposit-btn {
  flex: 1 1 60%;
  background: #36e39b;
  color: #051a0e;
  border: 0;
  border-radius: 14px;
  padding: 13px 16px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.profile-deposit-btn:active { opacity: 0.85; }

.profile-withdraw-btn {
  flex: 1 1 40%;
  background: rgba(255,255,255,0.1);
  color: var(--text-main);
  border: 0;
  border-radius: 14px;
  padding: 13px 16px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}

.profile-withdraw-btn:active { opacity: 0.75; }

.profile-menu {
  margin: 0 16px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 18px;
  overflow: hidden;
}

.profile-menu-item {
  width: 100%;
  background: none;
  border: 0;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  color: var(--text-main);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  text-align: left;
}

.profile-menu-item:last-child { border-bottom: 0; }
.profile-menu-item:active { background: rgba(255,255,255,0.04); }

.profile-menu-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.profile-menu-icon--green  { background: rgba(54,227,155,0.15); color: #36e39b; }
.profile-menu-icon--purple { background: rgba(184,72,255,0.15); color: #b848ff; }
.profile-menu-icon--blue   { background: rgba(80,160,255,0.15); color: #50a0ff; }
.profile-menu-icon--gray   { background: rgba(180,180,200,0.12); color: #b8add3; }
.profile-menu-icon--orange { background: rgba(255,160,50,0.15); color: #ffa032; }

.profile-menu-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.profile-menu-title {
  font-size: 15px;
  font-weight: 600;
}

.profile-menu-sub {
  font-size: 12px;
  color: var(--text-muted);
}

.profile-menu-arrow {
  color: var(--text-muted);
  font-size: 20px;
  line-height: 1;
}

.primary-btn,
.secondary-btn,
.hero-btn,
.show-more-btn,
.support-cta,
.collapse-btn,
.drawer-login,
.drawer-play,
.lang-pill,
.support-pill {
  border: 0;
  border-radius: 14px;
  font-weight: 700;
  cursor: pointer;
}

.primary-btn {
  background: linear-gradient(120deg, #a33cff, #cd61ff);
  color: #fff;
  padding: 10px 14px;
}

.secondary-btn {
  background: #35e39a;
  color: #082518;
  padding: 10px 14px;
}

.muted {
  color: var(--text-muted);
}

.hidden {
  display: none !important;
}

.casino-page {
  gap: 18px;
}

.casino-auth-row {
  display: grid;
  grid-template-columns: 56px 1fr 1.4fr;
  gap: 10px;
}

.mini-logo {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  border: 1px solid rgba(183, 83, 255, 0.62);
  background-color: #2f114f;
  background-image: url("./assets/mell_icon.webp");
  background-size: 74%;
  background-position: center;
  background-repeat: no-repeat;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.casino-auth-btn {
  border: 0;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 700;
  padding: 0;
  cursor: pointer;
}

.casino-auth-btn.login {
  background: #2f1f49;
  color: #ece8ff;
}

.casino-auth-btn.register {
  background: #3be39c;
  color: #081e17;
}

.casino-hero {
  position: relative;
  border-radius: 24px;
  min-height: 292px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  overflow: hidden;
}

.hero-track {
  display: flex;
  width: 100%;
  max-width: 100%;
  height: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
}

.hero-track::-webkit-scrollbar {
  display: none;
}

.hero-slide {
  position: relative;
  flex: 0 0 100%;
  min-height: 340px;
  scroll-snap-align: start;
  background-image: var(--hero-image);
  background-size: cover;
  background-position: center;
  padding: 20px 16px;
  display: flex;
  align-items: flex-start;
  isolation: isolate;
}

.hero-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(25, 8, 51, 0.7) 0%, rgba(25, 8, 51, 0.2) 38%, rgba(25, 8, 51, 0) 64%);
}

.hero-slide-main .hero-main-character {
  position: absolute;
  right: -10px;
  bottom: 0;
  width: min(58%, 290px);
  max-height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 14px 22px rgba(16, 7, 34, 0.55));
  pointer-events: none;
}

.hero-copy {
  width: min(58%, 236px);
  padding: 8px 4px 10px;
}

.hero-copy h1 {
  margin: 0;
  font-size: clamp(28px, 7.5vw, 46px);
  line-height: 1.08;
  letter-spacing: -0.3px;
  color: #ffffff;
  text-shadow: 0 6px 20px rgba(7, 3, 18, 0.7);
}

.hero-btn {
  margin-top: 16px;
  background: rgba(125, 145, 255, 0.38);
  color: #fff;
  padding: 11px 24px;
  font-size: 15px;
  border-radius: 14px;
  font-weight: 800;
}

.hero-btn.light {
  background: #fff;
  color: #1d1232;
}

.hero-dots {
  position: absolute;
  left: 50%;
  bottom: 10px;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  gap: 6px;
  background: rgba(94, 102, 132, 0.68);
  border-radius: 999px;
  padding: 4px 9px;
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.hero-dot {
  width: 7px;
  height: 8px;
  border: 0;
  padding: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.42);
  cursor: pointer;
}

.hero-dot.is-active {
  background: #ffffff;
  opacity: 1;
}

.casino-tools-row {
  display: grid;
  grid-template-columns: minmax(0, 1.72fr) minmax(0, 1fr);
  gap: 10px;
  min-width: 0;
  max-width: 100%;
}

.casino-tool-btn {
  border: 0;
  border-radius: 14px;
  background: #271A41;
  color: #d8cfee;
  border: 1px solid rgba(255,255,255,0.07);
  padding: 12px 14px;
  min-height: 48px;
  font-size: 13px;
  font-weight: 600;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: flex-start;
  overflow: hidden;
  white-space: nowrap;
}

.tool-icon {
  width: 18px;
  height: 18px;
  display: inline-grid;
  place-items: center;
  color: #b8a8d8;
  flex-shrink: 0;
}

.tool-icon svg {
  width: 100%;
  height: 100%;
}

.tool-icon.right {
  margin-left: auto;
  font-size: 22px;
  width: 24px;
  height: 24px;
  overflow: visible;
  flex-shrink: 0;
}

.casino-filter-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  max-width: 100%;
  position: relative;
}

.casino-filter-row-wrap {
  position: relative;
  flex: 1;
  min-width: 0;
}

.casino-filter-row {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  gap: 8px;
  align-items: center;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x;
  flex: 1;
  min-width: 0;
  padding: 2px 0;
}
.casino-filter-row::-webkit-scrollbar { display: none; }
.casino-filter-row .casino-tab { flex-shrink: 0; }

.casino-filter-fade {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 2;
}

.casino-filter-fade.is-left {
  left: 0;
  background: linear-gradient(90deg, #190127 28%, rgba(25, 1, 39, 0));
}

.casino-filter-fade.is-right {
  right: 0;
  background: linear-gradient(270deg, #190127 28%, rgba(25, 1, 39, 0));
}

.casino-filter-wrap.has-left-fade .casino-filter-fade.is-left {
  opacity: 1;
}

.casino-filter-wrap.has-right-fade .casino-filter-fade.is-right {
  opacity: 1;
}

.casino-tab,
.casino-arrow,
.all-btn,
.lang-inline,
.top-inline,
.info-line,
.provider-chip {
  border: 0;
  border-radius: 16px;
  cursor: pointer;
}

.casino-tab {
  background: #271A41;
  color: #c8bde8;
  padding: 13px 20px;
  min-height: 48px;
  font-size: 15px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 7px;
  justify-content: flex-start;
  border-radius: 24px;
  white-space: nowrap;
  border: 1px solid rgba(255,255,255,0.07);
  transition: transform 0.18s ease, box-shadow 0.22s ease, background 0.22s ease, border-color 0.22s ease, color 0.22s ease;
}

.casino-tab.active {
  background: linear-gradient(120deg, #b848ff 0%, #d46fff 100%);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 4px 18px rgba(184,72,255,0.35);
}

.casino-arrow {
  background: #271A41;
  color: #c0b7d8;
  font-size: 18px;
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 24px;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  flex-shrink: 0;
  transition: transform 0.18s ease, box-shadow 0.22s ease, background 0.22s ease, border-color 0.22s ease, color 0.22s ease;
}

.casino-arrow-left {
  display: none;
}

.casino-arrow-left.is-visible {
  display: flex;
}

.casino-arrow.is-disabled {
  opacity: 0.35;
  pointer-events: none;
  box-shadow: none;
}

.casino-arrow.is-disabled:hover,
.casino-arrow.is-disabled:focus-visible {
  transform: none;
  background: #271A41;
  border-color: rgba(255,255,255,0.07);
}

@media (hover: hover) {
  .casino-tab:hover,
  .casino-tab:focus-visible {
    transform: translateY(-1px);
    border-color: rgba(200, 162, 255, 0.45);
    box-shadow: 0 6px 14px rgba(12, 3, 28, 0.34);
  }

  .casino-tab.active:hover,
  .casino-tab.active:focus-visible {
    box-shadow: 0 8px 18px rgba(184, 72, 255, 0.34);
  }

  .casino-arrow:hover,
  .casino-arrow:focus-visible {
    transform: translateY(-1px);
    background: #30204b;
    border-color: rgba(200, 162, 255, 0.45);
    box-shadow: 0 6px 14px rgba(12, 3, 28, 0.34);
  }
}

.tab-icon {
  width: 15px;
  height: 15px;
  display: inline-grid;
  place-items: center;
  font-size: 14px;
}

.tab-icon svg {
  width: 100%;
  height: 100%;
}

.casino-block {
  display: grid;
  gap: 12px;
}

.casino-page.category-mode [data-category-hide="true"] {
  display: none !important;
}

.casino-category-view[hidden] {
  display: none !important;
}

.casino-page.category-mode .casino-category-view {
  display: grid !important;
}

.casino-block-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.casino-block-head h2 {
  margin: 0;
  font-size: clamp(18px, 4.5vw, 24px);
  font-weight: 800;
  line-height: 1;
  color: #fff;
}

.all-btn {
  background: #271A41;
  color: #c8bde8;
  padding: 9px 14px;
  font-size: 14px;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 50px;
  white-space: nowrap;
  font-weight: 700;
}

.casino-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

@media (min-width: 680px) {
  .casino-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .casino-grid.scroll-row .slot-card {
    flex-basis: 154px;
  }
}

@media (min-width: 860px) {
  .casino-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

.casino-grid.scroll-row {
  display: flex;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x proximity;
  padding-bottom: 6px;
  scrollbar-width: none;
}

.casino-grid.scroll-row::-webkit-scrollbar {
  display: none;
}

.casino-grid.scroll-row .slot-card {
  flex: 0 0 140px;
  scroll-snap-align: start;
}

.slot-card {
  position: relative;
  aspect-ratio: 0.73;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.08);
  overflow: hidden;
  display: grid;
  align-content: end;
  padding: 10px 8px;
  isolation: isolate;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-color: #271A41;
}

.slot-card.dynamic-card {
  cursor: pointer;
}

.slot-card.no-image {
  background-image: linear-gradient(160deg, #5f2c8d, #2f1f53);
}

.slot-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0) 12%, rgba(7, 2, 16, 0.7) 78%);
  z-index: -1;
}

.slot-name {
  display: block;
  color: #fff;
  font-size: clamp(11px, 2.5vw, 14px);
  line-height: 1.05;
  font-weight: 800;
  text-transform: uppercase;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
}

.slot-provider {
  margin-top: 4px;
  display: block;
  color: rgba(255, 255, 255, 0.82);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
}

.weekly-card {
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  gap: 14px;
  border-radius: 22px;
  padding: 18px;
  background: linear-gradient(130deg, #eb291f, #ffbe0c);
}

.weekly-card h3 {
  margin: 0;
  font-size: clamp(24px, 5.5vw, 36px);
  line-height: 1;
}

.weekly-provider {
  margin: 10px 0 12px;
  font-size: 18px;
}

.weekly-play {
  border: 0;
  border-radius: 14px;
  background: #fff;
  color: #1d1232;
  font-size: 18px;
  font-weight: 800;
  padding: 8px 20px;
}

.weekly-preview {
  border: 2px solid rgba(255, 255, 255, 0.56);
}

.wins-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 12px;
}

.wins-head h3 {
  margin: 0;
  font-size: clamp(21px, 4.8vw, 30px);
}

.wins-online {
  display: grid;
  justify-items: end;
  color: #c9bedf;
  font-size: 13px;
}

.online-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #0fdb86;
  display: inline-block;
}

.wins-online strong {
  color: #fff;
  font-size: 24px;
  line-height: 1;
}

.wins-strip {
  display: flex;
  gap: 12px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  padding-bottom: 6px;
  scrollbar-width: none;
}

.wins-strip::-webkit-scrollbar {
  display: none;
}

.win-item {
  min-width: 228px;
  background: #2a1b45;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 10px;
  display: flex;
  gap: 8px;
}

.mini-game {
  width: 58px;
  height: 58px;
  border-radius: 10px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.amount {
  display: inline-block;
  border-radius: 999px;
  padding: 2px 10px;
  background: #0dd58a;
  color: #fff;
  font-size: 13px;
  font-weight: 800;
}

.win-item p,
.win-item small {
  margin: 4px 0 0;
}

.random-game-card {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 12px;
  border-radius: 22px;
  padding: 16px;
  background: linear-gradient(140deg, #5f1594 0%, #ad5bf2 100%);
}

.random-game-card h3 {
  margin: 0;
  font-size: clamp(22px, 5.3vw, 34px);
  line-height: 1.04;
}

.random-game-card p {
  margin: 10px 0;
  color: #f6f0ff;
  font-size: 17px;
}

.random-preview {
  border: 3px solid rgba(255, 255, 255, 0.55);
}

.all-games-grid .extra-game.hidden {
  display: none;
}

.show-more-wrap {
  display: grid;
  justify-items: center;
  gap: 14px;
  margin-top: 6px;
}

.shown-count {
  margin: 0;
  color: #c5b9dd;
  font-size: 16px;
}

.shown-progress {
  width: 54%;
  height: 8px;
  border-radius: 999px;
  background: #2f2051;
  overflow: hidden;
}

.shown-progress span {
  display: block;
  width: 22%;
  height: 100%;
  background: linear-gradient(120deg, #8b37ff, #be6aff);
}

.show-more-btn {
  background: linear-gradient(120deg, #9a3bff, #d566ff);
  color: #fff;
  font-size: 18px;
  padding: 10px 28px;
}

.category-back-btn {
  border: 0;
  border-radius: 14px;
  background: #2e1f49;
  color: #ece7fb;
  padding: 10px 14px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
}

.empty-state {
  grid-column: 1 / -1;
  border-radius: 14px;
  background: #2a1b45;
  border: 1px dashed rgba(255, 255, 255, 0.18);
  color: #d1c5ea;
  padding: 16px;
  text-align: center;
  font-size: 14px;
}

.providers-block {
  margin-top: 4px;
}

.provider-row-scroll {
  display: flex;
  gap: 12px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  padding-bottom: 8px;
  scrollbar-width: none;
}

.provider-row-scroll::-webkit-scrollbar {
  display: none;
}

.provider-chip {
  min-width: 146px;
  background: #2d1f48;
  color: #ddd6eb;
  padding: 12px 14px;
  text-align: left;
  font-weight: 700;
  font-size: 16px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  display: grid;
  gap: 4px;
  align-content: center;
  transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.provider-name {
  font-size: 16px;
  line-height: 1.1;
  color: #f3ecff;
  letter-spacing: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.provider-count {
  font-size: 13px;
  line-height: 1;
  color: #a99fc4;
}

.provider-chip:hover,
.provider-chip:focus-visible {
  border-color: rgba(197, 145, 255, 0.75);
  background: #382658;
  transform: translateY(-1px);
}

.provider-playngo .provider-logo-inline {
  background: #15294a;
}

.part-blue {
  color: #4fa6ff;
}

.part-red {
  color: #ff4a4a;
}

.provider-amusnet .provider-logo-inline {
  background: #25273c;
}

.amusnet-icon {
  color: #b9ef43;
  font-size: 15px;
  margin-right: 2px;
}

.part-green {
  color: #b9ef43;
}

.provider-hacksaw .provider-logo-inline {
  background: #39374a;
}

.part-silver {
  color: #d2d0df;
}

.provider-pragmatic .provider-logo-inline {
  background: #3a2f26;
}

.part-orange {
  color: #ffb551;
}

.part-white {
  color: #ececec;
}

.casino-article {
  display: grid;
  gap: 14px;
}

.casino-article h2 {
  margin: 10px 0 0;
  font-size: clamp(22px, 5.1vw, 32px);
  line-height: 1.12;
}

.casino-article p,
.casino-article li {
  margin: 0;
  color: #beb1d7;
  font-size: 16px;
  line-height: 1.45;
}

.casino-article > p:first-of-type {
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  position: relative;
  padding-bottom: 2px;
}

.casino-article:not(.expanded) > p:first-of-type {
  -webkit-line-clamp: 3;
  max-height: 74px;
}

.casino-article:not(.expanded) > p:first-of-type::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 26px;
  background: linear-gradient(180deg, rgba(23, 0, 34, 0) 0%, rgba(23, 0, 34, 0.94) 100%);
}

.casino-article.expanded > p:first-of-type {
  -webkit-line-clamp: initial;
  max-height: none;
}

.casino-article ul {
  margin: 0;
  padding-left: 22px;
  display: grid;
  gap: 6px;
}

.casino-article strong {
  color: #e7dafc;
}

.collapse-btn {
  margin-top: 8px;
  background: #2a1d42;
  color: #ece8f7;
  padding: 13px;
  font-size: 18px;
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
}

.collapse-btn .chev,
.info-line .chev {
  display: inline-block;
  transition: transform 0.2s ease;
}

.collapse-btn.expanded .chev {
  transform: rotate(180deg);
}

.article-extra {
  display: grid;
  gap: 14px;
  max-height: 2600px;
  opacity: 1;
  overflow: hidden;
  transition: max-height 0.35s ease, opacity 0.22s ease, margin-top 0.22s ease;
}

.article-extra.is-collapsed {
  max-height: 0;
  opacity: 0;
  margin-top: 0;
  pointer-events: none;
}

.casino-info-box {
  margin-top: 8px;
  background: #221636;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 16px;
  display: grid;
  gap: 14px;
}

.info-top-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.info-logo-img {
  height: 20px;
  width: auto;
  display: block;
  flex-shrink: 0;
}

.lang-inline,
.top-inline {
  background: #2f3d61;
  color: #f1f4ff;
  padding: 10px 14px;
  font-size: 16px;
}

.top-inline {
  width: 54px;
  padding: 0;
}

.info-line {
  background: transparent;
  color: #f2edff;
  border-radius: 10px;
  padding: 0;
  font-size: 17px;
  font-weight: 700;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.info-line[aria-expanded="false"] .chev {
  transform: rotate(180deg);
}

.info-panel {
  display: grid;
  gap: 12px;
  max-height: 360px;
  opacity: 1;
  overflow: hidden;
  transition: max-height 0.28s ease, opacity 0.2s ease, margin-bottom 0.2s ease, padding-bottom 0.2s ease;
}

.info-panel.is-collapsed {
  max-height: 0;
  opacity: 0;
  margin-bottom: 0;
  pointer-events: none;
}

.info-link {
  border: 0;
  background: transparent;
  color: #b8accf;
  font-size: 16px;
  text-align: left;
  padding: 0;
  cursor: pointer;
}

.categories-panel {
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.categories-panel.is-collapsed {
  padding-bottom: 0;
  border-bottom-color: transparent;
}

.support-card {
  margin-top: 8px;
  border-radius: 18px;
  padding: 16px;
  background: linear-gradient(120deg, #3d3157, #8730d1);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}

.support-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  padding: 2px 8px;
  font-weight: 700;
  font-size: 13px;
}

.support-card h3 {
  margin: 7px 0;
  font-size: 28px;
}

.support-card p {
  margin: 0;
  font-size: 16px;
  color: #ddd0f8;
}

.support-cta {
  margin-top: 14px;
  background: linear-gradient(120deg, #a33bff, #c95cff);
  color: #fff;
  padding: 10px 16px;
  font-size: 18px;
}

.support-avatar {
  align-self: end;
  width: 120px;
  height: 130px;
  overflow: hidden;
  border-radius: 12px;
}

.support-avatar img {
  width: 175px;
  margin-left: -24px;
  margin-top: -14px;
  display: block;
}

.support-mail-label {
  margin: 2px 0 0;
  color: #bfb4d9;
  font-size: 16px;
}

.support-mail {
  margin: 0;
  font-size: 24px;
  font-weight: 800;
}

.casino-info-box hr {
  width: 100%;
  border: 0;
  border-top: 1px solid var(--line);
  margin: 2px 0;
}

.bonuses-page {
  gap: 18px;
  align-content: start;
}

.bonus-page-title,
.bonus-group-title {
  margin: 0;
  font-size: clamp(18px, 5.6vw, 26px);
  line-height: 1.12;
  letter-spacing: -0.2px;
}

.bonus-page-title {
  margin-top: 2px;
}

.bonus-group-title {
  margin-top: 4px;
}

.bonus-group {
  display: grid;
  gap: 16px;
}

.bonus-card {
  --shade-1: rgba(31, 7, 56, 0.92);
  --shade-2: rgba(31, 7, 56, 0.18);
  position: relative;
  border-radius: 24px;
  min-height: 262px;
  padding: 14px 14px 16px;
  background-image: linear-gradient(102deg, var(--shade-1) 0%, var(--shade-2) 64%), var(--bonus-bg);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: grid;
  align-content: start;
  gap: 10px;
  overflow: hidden;
}

.bonus-card--blue {
  --shade-1: rgba(13, 37, 98, 0.92);
  --shade-2: rgba(13, 37, 98, 0.16);
}

.bonus-card--gold {
  --shade-1: rgba(70, 53, 20, 0.67);
  --shade-2: rgba(70, 53, 20, 0.09);
}

.bonus-card--violet {
  --shade-1: rgba(42, 20, 63, 0.9);
  --shade-2: rgba(42, 20, 63, 0.18);
}

.bonus-card--pink {
  --shade-1: rgba(80, 46, 78, 0.82);
  --shade-2: rgba(80, 46, 78, 0.16);
}

.bonus-meta {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 7px;
  color: #cfc4e7;
  font-size: 12px;
  font-weight: 700;
}

.bonus-timer {
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(46, 50, 88, 0.82);
  color: #e6def7;
  font-size: 12px;
  letter-spacing: 0.3px;
}

.bonus-info-btn {
  width: 20px;
  height: 20px;
  border: 0;
  border-radius: 50%;
  background: rgba(189, 193, 210, 0.7);
  color: #2c2740;
  font-weight: 900;
  font-size: 12px;
  display: inline-grid;
  place-items: center;
  cursor: pointer;
}

.bonus-card h3 {
  margin: 6px 0 0;
  max-width: 56%;
  font-size: clamp(24px, 5.3vw, 33px);
  line-height: 1.1;
}

.bonus-card p {
  margin: 2px 0 0;
  max-width: 57%;
  color: #d8cfeb;
  font-size: clamp(12px, 3.4vw, 18px);
  line-height: 1.32;
}

.bonus-main-btn {
  margin-top: 4px;
  justify-self: start;
  border: 0;
  border-radius: 16px;
  background: #ffffff;
  color: #16112a;
  font-size: 15px;
  font-weight: 800;
  padding: 11px 22px;
  cursor: pointer;
}

.bonus-card--future .bonus-meta {
  grid-template-columns: 1fr auto;
  min-height: 24px;
}

.bonus-card--future h3,
.bonus-card--future p {
  max-width: 56%;
}

.bonus-faq {
  display: grid;
  gap: 10px;
}

.faq-item {
  border-radius: 18px;
  background: #251a3f;
  border: 1px solid rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  border: 0;
  background: transparent;
  color: #f2ecff;
  text-align: left;
  padding: 14px 16px;
  font-size: clamp(16px, 4.1vw, 22px);
  font-weight: 700;
  line-height: 1.3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  cursor: pointer;
}

.faq-arrow {
  flex-shrink: 0;
  font-size: 23px;
  color: #d6caee;
  transition: transform 0.2s ease;
}

.faq-question[aria-expanded="true"] .faq-arrow {
  transform: rotate(180deg);
}

.faq-answer {
  padding: 0 16px 14px;
  max-height: 620px;
  opacity: 1;
  overflow: hidden;
  transition: max-height 0.3s ease, opacity 0.2s ease, padding 0.2s ease;
}

.faq-answer.is-collapsed {
  max-height: 0;
  opacity: 0;
  padding-top: 0;
  padding-bottom: 0;
  pointer-events: none;
}

.faq-answer p {
  margin: 0;
  color: #c7bddd;
  font-size: clamp(13px, 3.7vw, 17px);
  line-height: 1.4;
}

.legal-copy {
  margin: 0;
  color: #b8accf;
  font-size: 12px;
  line-height: 1.42;
}

.legal-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.gcb {
  width: 108px;
  height: 54px;
  border-radius: 6px;
  background: #0a9f5a;
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 900;
}

.legal-bottom span {
  color: #9f93be;
  font-size: 23px;
  font-weight: 700;
}

.art-olympus {
  background-image: url("./assets/games/olympus.webp");
}

.art-sweet {
  background-image: url("./assets/games/sweet.webp");
}

.art-viking {
  background-image: url("./assets/games/viking.webp");
}

.art-battle {
  background-image: url("./assets/games/battle.webp");
}

.art-dead {
  background-image: url("./assets/games/dead.webp");
}

.art-dragon {
  background-image: url("./assets/games/dragon.webp");
}

.art-frank {
  background-image: url("./assets/games/frank.webp");
}

.art-bacon {
  background-image: url("./assets/games/bacon.webp");
}

.art-snake {
  background-image: url("./assets/games/snake.webp");
}

.art-dog {
  background-image: url("./assets/games/dog.webp");
}

.art-cowboy {
  background-image: url("./assets/games/cowboy.webp");
}

.art-zeus {
  background-image: url("./assets/games/zeus.webp");
}

.art-blood {
  background-image: url("./assets/games/blood.webp");
}

.art-aviator {
  background-image: url("./assets/games/aviator.webp");
}

.art-plane {
  background-image: url("./assets/games/plane.webp");
}

.art-yakuza {
  background-image: url("./assets/games/yakuza.webp");
}

.art-zombie {
  background-image: url("./assets/games/zombie.webp");
}

.art-anubis {
  background-image: url("./assets/games/anubis.webp");
}

.art-blackjack {
  background-image: url("./assets/games/blackjack.webp");
}

.art-duel {
  background-image: url("./assets/games/duel.webp");
}

.art-bizarre {
  background-image: url("./assets/games/bizarre.webp");
}

/* ── Drawer ── */
.drawer {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(100%, var(--app-max-width));
  z-index: 70;
  pointer-events: none;
}

.drawer-panel {
  position: absolute;
  inset: 0;
  background: #12112a;
  transform: translateX(-100%);
  transition: transform 0.28s cubic-bezier(.4,0,.2,1);
  pointer-events: auto;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.drawer.open .drawer-panel {
  transform: translateX(0);
}

/* Topbar inside drawer */
.drawer-topbar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: #1a1935;
  flex-shrink: 0;
}

.drawer-brand-bar {
  background: #1a1935;
  padding: 14px 16px 12px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  flex-shrink: 0;
}

.drawer-brand-img {
  height: 22px;
  width: auto;
  display: block;
}

.drawer-logo-btn {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, #7b2fff, #b848ff);
  border: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  overflow: hidden;
  padding: 0;
}

.drawer-icon-img {
  width: 74%;
  height: 74%;
  object-fit: contain;
  display: block;
}

.drawer-balance-pill {
  display: flex;
  align-items: center;
  gap: 5px;
  background: rgba(220, 50, 100, 0.85);
  border: 0;
  border-radius: 20px;
  padding: 6px 12px;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.drawer-balance-curr {
  font-size: 12px;
  opacity: 0.85;
}

.drawer-topbar-right {
  margin-left: auto;
  display: flex;
  gap: 8px;
}

.drawer-wallet-btn,
.drawer-bell-btn {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.drawer-wallet-btn {
  background: #36e39b;
  color: #051a0e;
}

.drawer-bell-btn {
  background: rgba(255,255,255,0.08);
  color: var(--text-main);
  position: relative;
}

.drawer-bell-dot {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 7px;
  height: 7px;
  background: #ff4466;
  border-radius: 50%;
  border: 1px solid #1a1935;
}

/* Online row */
.drawer-online-row {
  padding: 10px 16px;
  font-size: 13px;
  color: var(--text-muted);
  background: #1a1935;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  flex-shrink: 0;
}

/* User card */
.drawer-user-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: #1e1b3a;
  border: 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  color: var(--text-main);
  text-align: left;
  cursor: pointer;
  flex-shrink: 0;
}

.drawer-user-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #2e2550;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 700;
  color: var(--text-muted);
  flex-shrink: 0;
}

.drawer-user-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
}

.drawer-user-name {
  font-size: 15px;
  font-weight: 700;
}

.drawer-user-id {
  font-size: 12px;
  color: var(--text-muted);
}

.drawer-user-arrow {
  color: var(--text-muted);
  flex-shrink: 0;
}

/* Casino CTA button */
.drawer-casino-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: calc(100% - 32px);
  margin: 14px 16px 4px;
  padding: 13px;
  background: linear-gradient(120deg, #7c3aed, #a855f7);
  border: 0;
  border-radius: 14px;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  flex-shrink: 0;
}

.drawer-casino-btn:active { opacity: 0.88; }

/* Nav list */
.drawer-nav {
  flex: 1;
  overflow-y: auto;
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.drawer-link {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: #c8bedf;
  text-align: left;
  padding: 11px 12px;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  width: 100%;
}

.drawer-link:active,
.drawer-link:hover { background: rgba(255,255,255,0.05); }

.drawer-link.active {
  background: rgba(168, 85, 247, 0.15);
  color: #c084fc;
}

.drawer-link svg { flex-shrink: 0; opacity: 0.75; }
.drawer-link.active svg { opacity: 1; color: #c084fc; }

.drawer-nav-divider {
  height: 1px;
  background: rgba(255,255,255,0.07);
  margin: 6px 4px;
}

/* Language button */
.drawer-lang-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  background: #1a1935;
  border: 0;
  border-top: 1px solid rgba(255,255,255,0.06);
  color: var(--text-main);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  flex-shrink: 0;
  margin-top: auto;
}

.online-row { color: var(--text-muted); }

.backdrop {
  position: fixed;
  inset: 0;
  background: rgba(7, 3, 14, 0.66);
  backdrop-filter: blur(2px);
  z-index: 65;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.backdrop.visible {
  opacity: 1;
  pointer-events: auto;
}

.scroll-top-btn {
  position: fixed;
  right: max(calc((100vw - min(100vw, var(--app-max-width))) / 2 + 14px), 14px);
  bottom: calc(180px + env(safe-area-inset-bottom));
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 10px;
  background: rgba(58, 50, 88, 0.94);
  color: #ddd7ef;
  font-size: 20px;
  z-index: 84;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.scroll-top-btn.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.chat-fab {
  position: fixed;
  right: max(calc((100vw - min(100vw, var(--app-max-width))) / 2 + 14px), 14px);
  bottom: calc(92px + env(safe-area-inset-bottom));
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, #7d49f7, #602dc9);
  color: #fff;
  z-index: 85;
  box-shadow: 0 6px 16px rgba(69, 30, 150, 0.45);
  cursor: pointer;
}

.chat-fab::before {
  content: "";
  position: absolute;
  width: 20px;
  height: 16px;
  border-radius: 10px;
  background: #ffffff;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -52%);
}

.chat-fab::after {
  content: "";
  position: absolute;
  width: 6px;
  height: 6px;
  background: #ffffff;
  border-radius: 2px;
  left: calc(50% - 8px);
  top: calc(50% + 6px);
  transform: rotate(40deg);
}

.bottom-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  max-width: var(--app-max-width);
  margin-left: auto;
  margin-right: auto;
  z-index: 1300;
  display: flex;
  height: 84px;
  background: linear-gradient(to bottom, transparent 0%, #190127 18px);
  padding: 8px 14px 12px;
  box-sizing: border-box;
}

.bottom-nav::before {
  content: '';
  position: absolute;
  top: 8px;
  left: 14px;
  right: 14px;
  height: 52px;
  background: #13112b;
  border: 1.5px solid rgba(255,255,255,0.08);
  border-radius: 26px;
  box-shadow: 0 10px 36px rgba(0,0,0,0.65), 0 3px 12px rgba(0,0,0,0.4);
  pointer-events: none;
  z-index: 0;
}

.bottom-item {
  flex: 1;
  border: 0;
  background: transparent;
  color: #4a4468;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 14px 4px 0;
  gap: 14px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  letter-spacing: 0.01em;
  position: relative;
  z-index: 1;
  min-width: 0;
}

.bottom-item .bottom-icon {
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.bottom-item .bottom-icon svg {
  width: 100%;
  height: 100%;
}

.bottom-item.active { color: #a855f7; }
.bottom-item.drawer-open-state { color: #a855f7; }

.handle-footer {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 0;
  width: min(100%, var(--app-max-width));
  height: 40px;
  display: grid;
  place-items: center;
  z-index: 81;
  background: #122336;
  border-top: 1px solid rgba(74, 129, 203, 0.35);
  color: #9fb8d1;
  font-size: 15px;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 16px;
  background: rgba(8, 4, 16, 0.72);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.modal.visible {
  opacity: 1;
  pointer-events: auto;
}

.modal-card {
  width: min(100%, 460px);
  border-radius: 22px;
  background: #f4f4f8;
  color: #211137;
  padding: 18px;
}

.auth-card {
  background: #24133b;
  color: #efe8ff;
}

.modal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.close-btn {
  border: 0;
  background: transparent;
  color: inherit;
  font-size: 24px;
  cursor: pointer;
}

.lang-list {
  display: grid;
  gap: 8px;
}

.lang-item {
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 12px;
  padding: 10px;
  display: flex;
  justify-content: space-between;
  background: #fff;
  cursor: pointer;
}

.lang-item.is-current {
  border-color: #18b171;
}

.auth-switch {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 12px;
}

.auth-switch-item {
  border: 0;
  border-radius: 12px;
  padding: 10px;
  cursor: pointer;
  background: #372055;
  color: #b3a5d5;
}

.auth-switch-item.active {
  background: linear-gradient(130deg, #ab42ff, #cf5eff);
  color: #fff;
}

.auth-form {
  display: grid;
  gap: 10px;
}

.auth-form input {
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: #2f1c4b;
  color: #fff;
  border-radius: 12px;
  padding: 11px 12px;
}

.check-row {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #b8a9da;
}

.mini {
  margin: 10px 0 0;
  font-size: 13px;
}

.toast {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: calc(142px + env(safe-area-inset-bottom));
  background: rgba(8, 7, 25, 0.95);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  padding: 10px 14px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 110;
  text-align: center;
  max-width: min(92vw, 470px);
}

.toast.visible {
  opacity: 1;
}

@media (max-width: 430px) {
  .content {
    padding: 76px 12px 108px;
  }

  .casino-page {
    gap: 16px;
  }

  .casino-auth-row {
    grid-template-columns: 48px 1fr 1.2fr;
    gap: 8px;
  }

  .mini-logo {
    width: 48px;
    height: 48px;
    font-size: 19px;
  }

  .casino-hero {
    min-height: 280px;
  }

  .hero-slide {
    min-height: 280px;
    padding: 16px;
  }

  .hero-copy {
    width: min(58%, 214px);
    padding: 10px 4px 12px;
  }

  .hero-copy h1 {
    font-size: clamp(22px, 8.5vw, 38px);
  }

  .hero-slide-main .hero-main-character {
    display: block;
    right: -16px;
    width: min(58%, 250px);
  }

  .hero-btn {
    margin-top: 12px;
    padding: 10px 20px;
    font-size: 14px;
  }

  .casino-grid.scroll-row .slot-card {
    flex-basis: 126px;
  }

  .provider-chip {
    min-width: 132px;
  }

  .bonus-card {
    min-height: 228px;
    border-radius: 20px;
    padding: 12px 14px 14px;
    gap: 8px;
  }

  .casino-auth-btn {
    font-size: 13px;
  }

  .bonus-meta {
    font-size: 13px;
  }

  .bonus-timer {
    font-size: 12px;
    padding: 2px 8px;
  }

  .bonus-info-btn {
    width: 20px;
    height: 20px;
    font-size: 12px;
  }

  .bonus-card h3 {
    font-size: clamp(19px, 6.7vw, 28px);
  }

  .bonus-card p {
    font-size: clamp(13px, 3.9vw, 16px);
    line-height: 1.3;
  }

  .bonus-main-btn {
    padding: 10px 22px;
    font-size: 15px;
  }

  .faq-question {
    padding: 14px 16px;
  }

  .faq-answer {
    padding: 0 16px 14px;
  }
}

/* ── Welcome bonus modal ── */
.welcome-modal {
  background: rgba(5, 0, 20, 0.82);
  backdrop-filter: blur(6px);
}

.welcome-card {
  position: relative;
  width: min(100%, 360px);
  background: linear-gradient(150deg, #2a0a4e 0%, #1a0535 60%, #0e0025 100%);
  border: 1px solid rgba(184, 72, 255, 0.35);
  border-radius: 28px;
  padding: 32px 24px 28px;
  text-align: center;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(130, 0, 255, 0.35);
}

.confetti-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  border-radius: 28px;
}

.welcome-emoji {
  font-size: 56px;
  line-height: 1;
  margin-bottom: 14px;
  filter: drop-shadow(0 4px 16px rgba(255,200,0,0.4));
}

.welcome-title {
  margin: 0 0 6px;
  font-size: 26px;
  font-weight: 900;
  color: #fff;
  letter-spacing: -0.3px;
}

.welcome-sub {
  margin: 0 0 20px;
  font-size: 15px;
  color: #c9b8e8;
}

.welcome-amount {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  background: linear-gradient(120deg, #a33cff, #36e39b);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 12px;
}

.welcome-plus {
  font-size: 32px;
  font-weight: 900;
}

.welcome-sum {
  font-size: 52px;
  font-weight: 900;
  letter-spacing: -2px;
  line-height: 1;
}

.welcome-curr {
  font-size: 28px;
  font-weight: 800;
}

.welcome-desc {
  margin: 0 0 24px;
  font-size: 14px;
  color: #b8a8d4;
  line-height: 1.4;
}

.welcome-btn {
  width: 100%;
  border: 0;
  border-radius: 16px;
  background: linear-gradient(120deg, #36e39b, #0bc47e);
  color: #051a0e;
  font-size: 17px;
  font-weight: 800;
  padding: 15px;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(54, 227, 155, 0.35);
}

.welcome-btn:active { opacity: 0.88; }

/* ── Deposit bottom sheet ── */
.sheet-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 95;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.sheet-backdrop.visible {
  opacity: 1;
  pointer-events: auto;
}

.bottom-sheet {
  position: fixed;
  left: 50%;
  transform: translateX(-50%) translateY(100%);
  bottom: 0;
  width: min(100%, var(--app-max-width));
  background: #fff;
  border-radius: 22px 22px 0 0;
  z-index: 96;
  padding: 10px 16px 32px;
  transition: transform 0.32s cubic-bezier(.4,0,.2,1);
}

.bottom-sheet.open {
  transform: translateX(-50%) translateY(0);
}

.sheet-handle {
  width: 40px;
  height: 4px;
  background: #e0daea;
  border-radius: 999px;
  margin: 0 auto 16px;
}

.sheet-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.sheet-title {
  margin: 0;
  font-size: 22px;
  font-weight: 800;
  color: #1a1032;
}

.sheet-close {
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  background: #f0ecf8;
  color: #6b5fa0;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.deposit-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.deposit-card {
  background: #f6f4fc;
  border: 1px solid #ede9f7;
  border-radius: 16px;
  padding: 14px 12px 12px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-align: left;
}

.deposit-card:active { background: #ede8f8; }

.deposit-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.deposit-card-count {
  font-size: 12px;
  font-weight: 700;
  color: #8b7eae;
  background: #ede9f7;
  border-radius: 999px;
  padding: 2px 8px;
}

.deposit-card-name {
  font-size: 15px;
  font-weight: 700;
  color: #1a1032;
}

.pay-logo {
  display: flex;
  align-items: center;
  gap: 5px;
}

.sber-text {
  font-size: 11px;
  font-weight: 800;
  color: #21A038;
}

.pay-logos-row {
  display: flex;
  align-items: center;
  gap: 4px;
}

.pay-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 22px;
  min-width: 26px;
  border-radius: 5px;
  font-size: 10px;
  font-weight: 800;
  padding: 0 4px;
}

.pay-tag.visa  { background: #1a1f71; color: #fff; font-style: italic; }
.pay-tag.mc    { background: #eb001b; color: #fff; }
.pay-tag.mir   { background: #00a0e3; color: #fff; }
.pay-tag.btc   { background: #f7931a; color: #fff; font-size: 13px; }
.pay-tag.usdt  { background: #26a17b; color: #fff; font-size: 13px; }
.pay-tag.ton   { background: #0098ea; color: #fff; font-size: 13px; }
.pay-tag.usd   { background: #4caf50; color: #fff; font-size: 13px; }

/* ─── DEMO badge on slot cards ─────────────────────────────────────── */
.slot-card { cursor: pointer; }
.slot-card:active { transform: scale(0.96); transition: transform 0.1s; }

.slot-demo-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: rgba(90, 200, 120, 0.92);
  color: #fff;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 2px 6px;
  border-radius: 5px;
  line-height: 1.4;
  z-index: 2;
  backdrop-filter: blur(4px);
}

/* ─── Game Player Overlay ───────────────────────────────────────────── */
.game-player-overlay {
  position: fixed;
  top: 64px;
  left: 0;
  right: 0;
  bottom: 60px;
  z-index: 1200;
  background: #0d0820;
  display: flex;
  flex-direction: column;
  transform: translateY(110%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

.game-player-overlay.open {
  transform: translateY(0);
}

.game-player-topbar {
  display: none;
}

.game-player-back {
  display: flex;
  align-items: center;
  gap: 5px;
  background: none;
  border: none;
  color: rgba(255,255,255,0.85);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 8px;
  white-space: nowrap;
}

.game-player-back:active { opacity: 0.7; }

.game-player-balance {
  background: rgba(184,72,255,0.25);
  border: 1.5px solid rgba(184,72,255,0.7);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 15px;
  font-weight: 900;
  color: #f0d4ff;
  white-space: nowrap;
  flex-shrink: 0;
  box-shadow: 0 0 12px rgba(184,72,255,0.4);
  letter-spacing: 0.02em;
}

/* ─── Pre-launch balance screen ─────────────────────────────────────── */
.game-prelauncher {
  position: absolute;
  inset: 0;
  z-index: 6;
  background: #0d0820;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s ease;
}
.game-prelauncher.fade-out {
  opacity: 0;
  pointer-events: none;
}
.prelauncher-card {
  text-align: center;
  padding: 32px 24px;
}
.prelauncher-label {
  color: rgba(255,255,255,0.55);
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 14px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.prelauncher-amount {
  font-size: 52px;
  font-weight: 900;
  color: #fff;
  text-shadow: 0 0 40px rgba(184,72,255,0.9), 0 0 80px rgba(184,72,255,0.4);
  margin-bottom: 36px;
  letter-spacing: -0.02em;
}
.prelauncher-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 18px;
}
.prelauncher-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(184,72,255,0.8);
  animation: prelauncher-pulse 1.2s ease-in-out infinite;
}
.prelauncher-dots span:nth-child(2) { animation-delay: 0.2s; }
.prelauncher-dots span:nth-child(3) { animation-delay: 0.4s; }
@keyframes prelauncher-pulse {
  0%, 80%, 100% { opacity: 0.3; transform: scale(0.8); }
  40% { opacity: 1; transform: scale(1.2); }
}
.prelauncher-hint {
  color: rgba(255,255,255,0.4);
  font-size: 13px;
}

.game-player-title {
  flex: 1;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.game-player-badge {
  background: rgba(90,200,120,0.9);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 5px;
  flex-shrink: 0;
}

.game-player-body {
  flex: 1;
  position: relative;
  overflow: hidden;
}

.game-player-frame {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

.game-player-loading {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  color: rgba(255,255,255,0.6);
  font-size: 14px;
  background: #0d0820;
  z-index: 2;
}

.game-player-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(255,255,255,0.1);
  border-top-color: #b848ff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.game-player-error {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 24px;
  background: #0d0820;
  z-index: 3;
}

.game-error-msg {
  color: rgba(255,255,255,0.7);
  font-size: 14px;
  text-align: center;
  line-height: 1.5;
}

.game-player-back-link {
  background: none;
  border: none;
  color: rgba(255,255,255,0.5);
  font-size: 13px;
  cursor: pointer;
  padding: 4px;
}

/* ─── MELLSTROY own game cards ──────────────────────────────────────── */
.art-mell-slots {
  background: linear-gradient(145deg, #1a0840 0%, #4a0d8f 40%, #7a1aff 100%);
}
.art-mell-slots::after {
  content: '🎰';
  position: absolute;
  font-size: 52px;
  right: 6px;
  top: 8px;
  z-index: 0;
  opacity: 0.35;
  filter: drop-shadow(0 0 8px rgba(184,72,255,.6));
}

/* ── Rules Overlay ───────────────────────────────────────── */
.rules-overlay {
  position: fixed;
  top: 64px;
  left: 0;
  right: 0;
  bottom: 60px;
  z-index: 1200;
  background: var(--bg-deep, #0b0918);
  display: flex;
  flex-direction: column;
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(.4,0,.2,1);
  overflow: hidden;
}
.rules-overlay.open {
  transform: translateY(0);
}
/* Rules back button injected into app topbar */
.rules-topbar-back {
  display: none;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  color: rgba(255,255,255,0.85);
  font-size: 15px;
  cursor: pointer;
  padding: 6px 4px;
  font-family: inherit;
  white-space: nowrap;
  flex-shrink: 0;
}
.rules-topbar-back:hover { color: #fff; }
.rules-topbar-title {
  display: none;
  flex: 1;
  font-size: 17px;
  font-weight: 700;
  color: #fff;
  text-align: center;
  pointer-events: none;
}
.rules-content {
  flex: 1;
  overflow-y: auto;
  padding: 20px 16px 48px;
  -webkit-overflow-scrolling: touch;
}
.rules-title {
  font-size: 28px;
  font-weight: 800;
  color: #fff;
  margin: 0 0 18px;
  letter-spacing: -0.5px;
}
.rules-section-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255,255,255,0.06);
  border-radius: 14px;
  padding: 14px 16px;
  margin-bottom: 20px;
}
.rules-section-icon {
  color: #b848ff;
  flex-shrink: 0;
  display: flex;
}
.rules-section-title {
  font-size: 15px;
  font-weight: 600;
  color: #fff;
}
.rules-accordion {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.rules-acc-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  padding: 15px 16px;
  cursor: pointer;
  text-align: left;
  gap: 10px;
  transition: background 0.2s;
  font-family: inherit;
  line-height: 1.4;
}
.rules-acc-toggle:hover,
.rules-acc-toggle[aria-expanded="true"] {
  background: rgba(184,72,255,0.10);
  border-color: rgba(184,72,255,0.25);
}
.rules-acc-toggle[aria-expanded="true"] .rules-chev {
  transform: rotate(180deg);
}
.rules-chev {
  flex-shrink: 0;
  transition: transform 0.25s ease;
  color: rgba(255,255,255,0.5);
}
.rules-acc-panel {
  overflow: hidden;
  max-height: 1000px;
  transition: max-height 0.35s ease;
}
.rules-acc-panel.is-collapsed {
  max-height: 0;
}
.rules-acc-content {
  padding: 12px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: rgba(255,255,255,0.03);
  border-radius: 0 0 12px 12px;
  border: 1px solid rgba(255,255,255,0.06);
  border-top: none;
}
.rules-acc-content p {
  font-size: 13.5px;
  color: rgba(255,255,255,0.75);
  line-height: 1.6;
  margin: 0;
}
.rules-acc-content strong {
  color: #fff;
  font-weight: 600;
}

/* ── Button tap animations ── */
button {
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.12s ease, opacity 0.12s ease;
}
button:active {
  transform: scale(0.94);
  opacity: 0.82;
}
.casino-tab,
.casino-arrow {
  transition: transform 0.14s ease, opacity 0.14s ease, background 0.22s ease, color 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease !important;
}
.casino-tab:active,
.casino-arrow:active {
  transform: scale(0.97);
}
.hero-btn {
  transition: transform 0.13s ease, box-shadow 0.13s ease !important;
}
.hero-btn:active { transform: scale(0.92); box-shadow: 0 2px 12px rgba(184,72,255,0.5); }
.slot-card {
  transition: transform 0.13s ease, box-shadow 0.13s ease;
}
.slot-card:active { transform: scale(0.95); }
.bottom-item {
  transition: transform 0.12s ease, color 0.15s ease !important;
}
.bottom-item:active { transform: scale(0.9); }
.casino-tool-btn {
  transition: transform 0.12s ease, background 0.15s ease !important;
}
.casino-tool-btn:active { transform: scale(0.95); }
.provider-chip {
  transition: transform 0.12s ease, background 0.15s ease !important;
}
.provider-chip:active { transform: scale(0.93); }

/* ── Topbar auth buttons ── */
.topbar-auth-btns {
  display: flex;
  gap: 8px;
  flex: 1;
  justify-content: flex-end;
  align-items: center;
}
.topbar-btn-login {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.15);
  color: #fff;
  border-radius: 12px;
  padding: 9px 20px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}
.topbar-btn-register {
  background: linear-gradient(135deg, #36e39b 0%, #1eca7d 100%);
  border: none;
  color: #0a1a12;
  border-radius: 12px;
  padding: 9px 20px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}
.topbar-btn-login:active { opacity: 0.8; }
.topbar-btn-register:active { opacity: 0.85; }

/* ── Search Overlay ── */
.search-overlay {
  position: fixed;
  inset: 0;
  z-index: 2500;
  background: linear-gradient(180deg, #190127 0%, #0f0019 100%);
  display: flex;
  flex-direction: column;
  transform: translateY(100%);
  transition: transform 0.28s cubic-bezier(0.4,0,0.2,1);
  width: min(100%, var(--app-max-width));
  left: 50%;
  translate: -50% 0;
}
.search-overlay.open {
  transform: translateY(0);
}
.search-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  background: #190127;
  position: sticky;
  top: 0;
}
.search-back-btn {
  background: none;
  border: none;
  color: var(--text-main);
  cursor: pointer;
  padding: 6px;
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.search-input {
  flex: 1;
  background: rgba(255,255,255,0.08);
  border: 1.5px solid rgba(184,72,255,0.3);
  border-radius: 12px;
  padding: 10px 16px;
  color: var(--text-main);
  font-size: 16px;
  outline: none;
}
.search-input:focus {
  border-color: var(--accent);
}
.search-results-wrap {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
}
.search-empty,
.search-hint {
  text-align: center;
  color: var(--text-muted);
  padding: 40px 0;
  font-size: 15px;
}


/* ── Popular rank badges ── */
.slot-card .rank-badge {
  position: absolute;
  top: 6px;
  right: 6px;
  font-size: 18px;
  line-height: 1;
  filter: drop-shadow(0 1px 3px rgba(0,0,0,0.7));
}


