:root {
  --bg: #101923;
  --bg-soft: #1a2531;
  --bg-rail: #1d2834;
  --panel: #1c2733;
  --panel-2: #23303d;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.14);
  --text: #f5f8ff;
  --muted: #b8c4d4;
  --primary: #ff1c96;
  --primary-2: #ff5db2;
  --shadow: 0 18px 36px rgba(0, 0, 0, 0.28);
  --radius-lg: 14px;
  --radius-md: 10px;
  --radius-sm: 8px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background: linear-gradient(180deg, #121b25 0%, #131d27 100%);
}

body {
  font-family: Barlow, system-ui, sans-serif;
  color: var(--text);
  min-width: 320px;
}

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

button {
  font: inherit;
}

input,
select,
textarea {
  font: inherit;
}

.app-shell {
  display: grid;
  grid-template-columns: 232px minmax(0, 1fr);
  height: 100vh;
  overflow: hidden;
  min-width: 0;
}

.mobile-nav-backdrop,
.mobile-header,
.sidebar__mobile-top {
  display: none;
}

.mobile-nav-backdrop {
  position: fixed;
  inset: 0;
  z-index: 85;
  background: rgba(3, 8, 14, 0.7);
  backdrop-filter: blur(4px);
}

.mobile-header {
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 14px 10px;
  background: #18232e;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.mobile-header__brand {
  display: inline-flex;
  align-items: center;
  min-width: 0;
}

.mobile-menu-button,
.sidebar__mobile-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
  cursor: pointer;
}

.mobile-menu-button {
  width: 46px;
  height: 46px;
  padding: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  flex-direction: column;
  gap: 5px;
}

.mobile-menu-button span {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
}

.sidebar__mobile-top {
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.sidebar__mobile-title {
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.sidebar__mobile-close {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  font-size: 1.5rem;
  line-height: 1;
}

.sidebar {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 8px 8px 14px;
  background: var(--bg-rail);
  border-right: 1px solid rgba(255, 255, 255, 0.05);
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  min-width: 0;
}

.sidebar__brand {
  display: block;
  padding: 8px 14px 4px;
}

.site-logo {
  display: block;
  width: 138px;
  height: auto;
}

.sidebar__auth {
  display: grid;
  gap: 10px;
  padding: 0 0 2px;
}

.auth-only,
.member-view {
  display: none;
}

body[data-auth-state="member"] .guest-only,
body[data-auth-state="guest"] .auth-only {
  display: none !important;
}

body[data-auth-state="member"] .sidebar__auth.auth-only {
  display: grid;
}

body[data-auth-state="member"] .topbar__right.auth-only {
  display: flex;
}

body[data-auth-state="member"] .public-view {
  display: none;
}

body[data-auth-state="member"] .member-view {
  display: block;
}

body[data-auth-state="member"] .member-nav-hide {
  display: none;
}

.sidebar-nav {
  display: grid;
  gap: 6px;
}

.sidebar-spacer {
  height: 1px;
  margin: 8px 14px 4px;
  background: rgba(255, 255, 255, 0.08);
}

.sidebar-nav a,
.sidebar-select {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 40px;
  padding: 0 12px;
  border-radius: 8px;
  background: #31404d;
  border: 1px solid rgba(255, 255, 255, 0.035);
  color: var(--text);
  font-size: 0.93rem;
  font-weight: 700;
}

.sidebar-nav--minor a,
.sidebar-select {
  color: var(--muted);
}

.sidebar-nav a:hover {
  background: #394957;
}

body[data-auth-state="member"] .sidebar-nav a[data-member-filter-link] {
  background: linear-gradient(180deg, #2a3948 0%, #22303d 100%);
}

body[data-auth-state="member"] .sidebar-nav a[data-member-filter-link]:hover {
  background: linear-gradient(180deg, #314353 0%, #293746 100%);
}

.nav-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  background-image: url("./assets/nav-icons-sprite.png");
  background-repeat: no-repeat;
  background-size: 230px 1015px;
  border-radius: 2px;
}

.nav-icon::before {
  display: none;
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.02em;
}

.nav-label {
  flex: 1 1 auto;
}

.nav-caret {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  margin-left: auto;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.82rem;
  line-height: 1;
}

.nav-icon--casino {
  background-position: -18px -229px;
}

.nav-icon--live {
  background-position: -18px -275px;
}

.nav-icon--originals {
  background-position: -18px -321px;
}

.nav-icon--challenges {
  background-position: -18px -556px;
}

.nav-icon--sports {
  background-position: -18px -413px;
}

.nav-icon--racing {
  background-position: -18px -459px;
}

.nav-icon--races {
  background-position: -18px -505px;
}

.nav-icon--news {
  background-position: -18px -367px;
}

.nav-icon--promotions {
  background-position: -18px -638px;
}

.nav-icon--faq {
  background-position: -18px -694px;
}

.nav-icon--terms {
  background-position: -18px -749px;
}

.nav-icon--about {
  background-position: -18px -805px;
}

.nav-icon--challenges,
.nav-icon--sports,
.nav-icon--racing,
.nav-icon--races,
.nav-icon--news,
.nav-icon--promotions,
.nav-icon--faq,
.nav-icon--terms,
.nav-icon--about {
  background-image: none;
  background-size: auto;
  border-radius: 6px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.nav-icon--challenges::before,
.nav-icon--sports::before,
.nav-icon--racing::before,
.nav-icon--races::before,
.nav-icon--news::before,
.nav-icon--promotions::before,
.nav-icon--faq::before,
.nav-icon--terms::before,
.nav-icon--about::before {
  display: block;
}

.nav-icon--challenges {
  background: linear-gradient(135deg, #ff2aa1 0%, #ff5db7 100%);
}

.nav-icon--challenges::before {
  content: "5R";
}

.nav-icon--sports {
  background: linear-gradient(135deg, #3fb8ff 0%, #1588ff 100%);
}

.nav-icon--sports::before {
  content: "3R";
}

.nav-icon--racing {
  background: linear-gradient(135deg, #ffb240 0%, #ff7a00 100%);
}

.nav-icon--racing::before {
  content: "CL";
}

.nav-icon--races {
  background: linear-gradient(135deg, #a86dff 0%, #6d49ff 100%);
}

.nav-icon--races::before {
  content: "VD";
}

.nav-icon--news {
  background: linear-gradient(135deg, #33d17a 0%, #12a150 100%);
}

.nav-icon--news::before {
  content: "TM";
}

.nav-icon--promotions {
  background: linear-gradient(135deg, #ff5c8a 0%, #ff2d55 100%);
}

.nav-icon--promotions::before {
  content: "%";
}

.nav-icon--faq {
  background: linear-gradient(135deg, #22c7d6 0%, #0b97b8 100%);
}

.nav-icon--faq::before {
  content: "?";
}

.nav-icon--terms {
  background: linear-gradient(135deg, #8f9cff 0%, #5e6cff 100%);
}

.nav-icon--terms::before {
  content: "§";
}

.nav-icon--about {
  background: linear-gradient(135deg, #a6b2c0 0%, #6f7d8d 100%);
}

.nav-icon--about::before {
  content: "i";
}

.sidebar-select {
  width: 100%;
  background: rgba(255, 255, 255, 0.03);
  cursor: pointer;
}

.sidebar-select--ghost {
  justify-content: center;
}

.main-stage {
  padding: 0 0 26px;
  height: 100vh;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  min-width: 0;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 58px;
  padding: 0 14px;
  background: #202b37;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  position: sticky;
  top: 0;
  z-index: 20;
}

.topbar__left,
.topbar__right,
.top-tabs,
.cta-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.mobile-brand {
  display: none;
  margin-right: 6px;
}

.top-tabs {
  flex-wrap: wrap;
  min-width: 0;
}

.member-chip {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #eef4fc;
  font-size: 0.92rem;
  font-weight: 600;
}

.member-chip strong {
  margin-left: 6px;
  color: #fff;
}

.top-tabs a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 18px;
  border-radius: var(--radius-sm);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: #dbe5f2;
  font-size: 0.92rem;
  font-weight: 600;
  white-space: nowrap;
}

.icon-pill {
  min-width: 42px;
  min-height: 34px;
  padding: 0 10px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  color: white;
  font-size: 1rem;
  font-weight: 700;
  transition: transform 0.18s ease, opacity 0.18s ease;
}

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

.btn-primary {
  background: linear-gradient(180deg, var(--primary-2), var(--primary));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 8px 18px rgba(255, 28, 150, 0.28);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.02);
  border-color: rgba(255, 255, 255, 0.16);
  color: var(--text);
}

.btn-small,
.btn-compact {
  min-height: 36px;
  padding: 0 14px;
  font-size: 0.95rem;
}

.hero-card,
.ticker-bar,
.product-section,
.strip-section,
.faq-section,
.final-cta-card,
.site-footer {
  margin: 14px;
}

.hero-card,
.ticker-bar,
.product-section,
.strip-section,
.faq-section,
.final-cta-card,
.site-footer,
.product-card,
.footer-column,
.footer-download,
.footer-note {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.hero-card {
  position: relative;
  overflow: hidden;
  background: #0b1420;
  min-height: 312px;
}

.hero-image {
  display: block;
  width: 100%;
  height: 312px;
  object-fit: cover;
}

.hero-copy {
  position: absolute;
  inset: 0 auto auto 0;
  max-width: 500px;
  padding: 36px 22px 22px;
  z-index: 1;
}

.eyebrow {
  margin: 0 0 8px;
  color: #f8d7ec;
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-copy h1 {
  margin: 0 0 10px;
  font-size: clamp(2.1rem, 5vw, 3.3rem);
  line-height: 0.95;
}

.hero-subtitle {
  margin: 0 0 18px;
  max-width: 430px;
  color: #eef4fc;
  font-size: 1.08rem;
  font-weight: 500;
}

.ticker-bar {
  overflow: hidden;
  background: linear-gradient(180deg, #151f2a 0%, #111922 100%);
}

.ticker-track {
  display: flex;
  gap: 12px;
  width: max-content;
  padding: 12px 14px;
  white-space: nowrap;
  animation: ticker-scroll 48s linear infinite;
}

.ticker-track--wins {
  align-items: stretch;
}

.ticker-win-card {
  display: grid;
  gap: 4px;
  min-width: 204px;
  padding: 12px 14px;
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(37, 49, 63, 0.95), rgba(25, 35, 46, 0.95));
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.ticker-win-card strong {
  color: #f3f7ff;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.ticker-win-card span {
  color: #bcc8d8;
  font-size: 0.88rem;
}

@keyframes ticker-scroll {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

.product-card h3,
.slot-card h3,
.footer-column h4,
.footer-download h3,
.faq-list summary {
  margin: 0 0 6px;
}

.product-card p,
.slot-card p,
.footer-column a,
.footer-column p,
.faq-list p,
.final-cta-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.4;
}

.product-section,
.strip-section,
.faq-section,
.site-footer {
  padding: 18px;
  background: var(--panel);
}

.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.section-heading h2 {
  margin: 0;
  font-size: 1.7rem;
}

.section-link {
  color: #d8e2ef;
  font-weight: 600;
}

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

.product-card {
  display: grid;
  grid-template-rows: auto auto minmax(96px, 1fr) auto;
  align-items: start;
  gap: 12px;
  padding: 12px;
  background: linear-gradient(180deg, #21303d 0%, #1b2632 100%);
}

.product-card p {
  display: grid;
  align-content: start;
  gap: 2px;
}

.product-card p strong {
  display: block;
  margin-top: 8px;
  color: var(--text);
  font-size: 0.86rem;
  letter-spacing: 0.04em;
}

.product-card .btn {
  margin-top: auto;
}

.product-image {
  width: 100%;
  height: 165px;
  object-fit: cover;
  border-radius: var(--radius-sm);
}

.wins-strip {
  display: grid;
  grid-template-columns: repeat(10, minmax(100px, 1fr));
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.win-tile {
  display: grid;
  gap: 6px;
  min-height: 82px;
  padding: 10px;
  border-radius: var(--radius-sm);
  background:
    radial-gradient(circle at 18% 20%, rgba(255, 214, 74, 0.26), transparent 26%),
    linear-gradient(135deg, #3654d1 0%, #1e2f7e 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.win-tile span {
  align-self: end;
  font-size: 1.02rem;
  font-weight: 800;
  text-transform: uppercase;
}

.win-tile strong {
  color: #b7ff62;
  font-size: 0.92rem;
}

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

.slot-card {
  display: grid;
  gap: 10px;
}

.slot-card-link {
  color: inherit;
  text-decoration: none;
}

.slot-card-link:hover h3,
.slot-card-link:focus-visible h3 {
  color: #b7ff62;
}

.slot-card__art {
  overflow: hidden;
  min-height: 150px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.slot-card-link:hover .slot-card__art,
.slot-card-link:focus-visible .slot-card__art {
  border-color: rgba(183, 255, 98, 0.52);
  box-shadow: 0 0 0 1px rgba(183, 255, 98, 0.18);
}

.slot-card__image {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 150px;
  object-fit: cover;
}

.slot-card--orange .slot-card__art {
  background: linear-gradient(135deg, #ff9e2c 0%, #b31f26 100%);
}

.slot-card--violet .slot-card__art {
  background: linear-gradient(135deg, #744cff 0%, #1f2c7b 100%);
}

.slot-card--blue .slot-card__art {
  background: linear-gradient(135deg, #5bd8ff 0%, #2440a7 100%);
}

.slot-card--gold .slot-card__art {
  background: linear-gradient(135deg, #ffd873 0%, #ff8e2a 100%);
}

.slot-card--fire .slot-card__art {
  background: linear-gradient(135deg, #ffcb4f 0%, #f4542d 100%);
}

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

.faq-list details {
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.faq-list p {
  margin-top: 10px;
}

.final-cta-card {
  padding: 26px 20px;
  text-align: center;
  background:
    radial-gradient(circle at top, rgba(255, 28, 150, 0.18), transparent 42%),
    #1c2733;
}

.final-cta-card h2 {
  margin: 0 0 10px;
  font-size: clamp(1.9rem, 4vw, 2.5rem);
  line-height: 1.05;
}

.cta-actions {
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 18px;
}

.site-footer {
  display: grid;
  gap: 18px;
}

.member-hero .hero-copy {
  max-width: 560px;
}

.member-hero .hero-image {
  object-position: right top;
}

.member-empty-card {
  margin: 14px;
  padding: 22px 20px 80px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  background:
    radial-gradient(circle at top right, rgba(255, 28, 150, 0.15), transparent 24%),
    linear-gradient(180deg, #1c2733 0%, #17222d 100%);
}

.member-empty-card p {
  max-width: 760px;
  margin: 0 0 10px;
  color: var(--muted);
  line-height: 1.55;
  font-size: 1rem;
}

.member-filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 16px 0 20px;
}

.member-filter-status {
  margin: -6px 0 18px;
  color: #dce6f3;
  font-size: 0.92rem;
  font-weight: 700;
}

.member-filter-pill {
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: #eef4fc;
  cursor: pointer;
  font-weight: 700;
}

.member-filter-pill.is-active {
  background: linear-gradient(180deg, var(--primary-2), var(--primary));
  border-color: transparent;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 8px 18px rgba(255, 28, 150, 0.24);
}

.member-games-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.member-game-card {
  display: grid;
  gap: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  background:
    radial-gradient(circle at top right, rgba(255, 28, 150, 0.13), transparent 30%),
    linear-gradient(180deg, #22303d 0%, #19232e 100%);
  box-shadow: var(--shadow);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.member-game-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 93, 178, 0.35);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.34);
}

.member-game-card__image {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: #101923;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.member-game-card__body {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 14px;
  min-height: 190px;
}

.member-game-card__tag {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: #f2f6ff;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.member-game-card h3 {
  margin: 0;
  font-size: 1.08rem;
}

.member-game-card p {
  margin: 0;
  max-width: none;
  color: var(--muted);
  font-size: 0.92rem;
}

.member-game-card .btn {
  width: 100%;
}

.member-portal-actions {
  display: flex;
  justify-content: flex-start;
  margin: 16px 0 18px;
}

.member-portal-shell {
  overflow: hidden;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: #0d141d;
}

.member-portal-frame {
  display: block;
  width: 100%;
  min-height: 1280px;
  border: 0;
  background: #050507;
}

.game-modal {
  position: fixed;
  inset: 22px;
  z-index: 95;
  display: none;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  overflow: hidden;
  background: #0b1017;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.55);
}

.game-modal.is-open {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
}

.game-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, #1d2834 0%, #16202b 100%);
}

.game-modal__header h2 {
  margin: 0;
}

.game-modal__close {
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  cursor: pointer;
  font-size: 1.6rem;
  line-height: 1;
}

.game-modal__body {
  min-height: 0;
  overflow: hidden;
}

.game-modal__frame {
  display: block;
  width: 100%;
  height: 100%;
  min-height: calc(100vh - 140px);
  border: 0;
  background: #050507;
}

.member-anchor {
  height: 1px;
}

.auth-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(6, 10, 16, 0.74);
  backdrop-filter: blur(6px);
}

.auth-modal {
  position: fixed;
  inset: 50% auto auto 50%;
  width: min(92vw, 460px);
  transform: translate(-50%, -46%);
  z-index: 90;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  background:
    radial-gradient(circle at top right, rgba(255, 28, 150, 0.16), transparent 28%),
    linear-gradient(180deg, #1d2834 0%, #121b25 100%);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.42);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.auth-modal.is-open {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, -50%);
}

.auth-modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  cursor: pointer;
  font-size: 1.5rem;
  line-height: 1;
}

.auth-modal__body {
  display: grid;
  gap: 14px;
}

.auth-modal__body h2 {
  margin: 0;
  font-size: 1.85rem;
}

.auth-modal__intro {
  margin: -4px 0 0;
  color: var(--muted);
  line-height: 1.5;
}

.auth-form {
  display: grid;
  gap: 12px;
}

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

.auth-field span {
  color: #f3f7ff;
  font-size: 0.95rem;
  font-weight: 700;
}

.auth-field input {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
}

.auth-field input:focus {
  outline: 2px solid rgba(255, 93, 178, 0.55);
  outline-offset: 1px;
}

.auth-error {
  min-height: 20px;
  margin: 0;
  color: #ff94c8;
  font-size: 0.92rem;
  font-weight: 600;
}

.auth-submit {
  width: 100%;
}

.auth-switch {
  margin: 0;
  color: var(--muted);
}

.auth-switch__button {
  padding: 0;
  border: 0;
  background: none;
  color: #fff;
  cursor: pointer;
  font-weight: 700;
}

body.modal-open {
  overflow: hidden;
}

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

.footer-download {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px;
  background: linear-gradient(180deg, #23303d 0%, #1c2733 100%);
}

.download-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 148px;
  min-height: 38px;
  padding: 0 16px;
  border-radius: var(--radius-sm);
  background: linear-gradient(180deg, var(--primary-2), var(--primary));
  color: #fff;
  font-weight: 700;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.45fr 0.9fr 1fr 1fr;
  gap: 14px;
}

.footer-column {
  display: grid;
  gap: 8px;
  align-content: start;
  padding: 16px;
  background: rgba(255, 255, 255, 0.03);
}

.payment-grid,
.trusted-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.payment-grid span,
.trusted-pills span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text);
  font-size: 0.82rem;
}

.footer-trusted {
  display: grid;
  gap: 10px;
}

.trusted-row {
  display: grid;
  gap: 10px;
}

.footer-note {
  padding: 18px;
  text-align: center;
  background: rgba(255, 255, 255, 0.02);
}

.footer-symbols {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.coin-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 54px;
  min-height: 38px;
  padding: 4px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.coin-badge__mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 46px;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  color: #fff;
  font-size: 0.86rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.coin-badge--bnb {
  background: rgba(243, 186, 47, 0.16);
}

.coin-badge--bnb .coin-badge__mark {
  background: linear-gradient(135deg, #f3ba2f 0%, #c78800 100%);
  color: #1b1200;
}

.coin-badge--btc {
  background: rgba(247, 147, 26, 0.16);
}

.coin-badge--btc .coin-badge__mark {
  background: linear-gradient(135deg, #f7931a 0%, #d86d00 100%);
}

.coin-badge--doge {
  background: rgba(201, 162, 39, 0.16);
}

.coin-badge--doge .coin-badge__mark {
  background: linear-gradient(135deg, #c9a227 0%, #8f6d0d 100%);
}

.coin-badge--eth {
  background: rgba(98, 126, 234, 0.16);
}

.coin-badge--eth .coin-badge__mark {
  background: linear-gradient(135deg, #627eea 0%, #3d56ba 100%);
}

.coin-badge--ltc {
  background: rgba(52, 93, 157, 0.16);
}

.coin-badge--ltc .coin-badge__mark {
  background: linear-gradient(135deg, #345d9d 0%, #1c3965 100%);
}

.coin-badge--xrp {
  background: rgba(35, 41, 47, 0.2);
}

.coin-badge--xrp .coin-badge__mark {
  background: linear-gradient(135deg, #23292f 0%, #49535e 100%);
}

.coin-badge--shib {
  background: rgba(245, 116, 48, 0.16);
}

.coin-badge--shib .coin-badge__mark {
  background: linear-gradient(135deg, #f57430 0%, #d94b16 100%);
}

.coin-badge--ton {
  background: rgba(0, 170, 255, 0.16);
}

.coin-badge--ton .coin-badge__mark {
  background: linear-gradient(135deg, #0098ea 0%, #00c2ff 100%);
}

.coin-badge--trx {
  background: rgba(255, 6, 58, 0.16);
}

.coin-badge--trx .coin-badge__mark {
  background: linear-gradient(135deg, #ff063a 0%, #b40028 100%);
}

.coin-badge--usd {
  background: rgba(108, 192, 97, 0.16);
}

.coin-badge--usd .coin-badge__mark {
  background: linear-gradient(135deg, #6cc061 0%, #2f8f40 100%);
}

.coin-badge--usdt {
  background: rgba(38, 161, 123, 0.16);
}

.coin-badge--usdt .coin-badge__mark {
  background: linear-gradient(135deg, #26a17b 0%, #12795a 100%);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
  color: #eef4fc;
  font-weight: 600;
}

.footer-disclaimer {
  display: grid;
  gap: 10px;
  padding-top: 4px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
}

.footer-disclaimer p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
  font-size: 0.84rem;
}

@media (max-width: 1180px) {
  .app-shell {
    grid-template-columns: 196px minmax(0, 1fr);
  }

  .topbar {
    padding-inline: 12px;
  }

  .hero-copy {
    max-width: 430px;
    padding: 28px 18px 18px;
  }

  .product-image {
    height: 150px;
  }

  .product-grid,
  .slots-grid,
  .member-games-grid,
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .app-shell {
    grid-template-columns: 180px minmax(0, 1fr);
  }

  .sidebar-nav a,
  .sidebar-select {
    min-height: 38px;
    padding: 0 10px;
    font-size: 0.88rem;
  }

  .topbar {
    align-items: flex-start;
  }

  .topbar__left,
  .topbar__right {
    width: 100%;
  }

  .topbar__right {
    justify-content: flex-start;
  }

  .top-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: thin;
  }

  .top-tabs a {
    flex: 0 0 auto;
  }

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

  .slots-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

@media (max-width: 820px) {
  .app-shell {
    grid-template-columns: 1fr;
    height: auto;
    overflow: visible;
    width: 100%;
  }

  .mobile-header,
  .sidebar__mobile-top {
    display: flex;
  }

  .sidebar {
    gap: 10px;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 90;
    width: min(84vw, 340px);
    max-width: 340px;
    height: 100vh;
    padding: 16px 14px 22px;
    border-right: 1px solid rgba(255, 255, 255, 0.07);
    border-bottom: 0;
    overflow-y: auto;
    transform: translateX(-100%);
    transition: transform 0.22s ease;
    box-shadow: 18px 0 40px rgba(0, 0, 0, 0.36);
  }

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

  .sidebar__brand {
    display: block;
    padding: 0 0 2px;
  }

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

  .sidebar-nav,
  .sidebar-nav--minor {
    display: grid;
    width: 100%;
    gap: 8px;
    overflow: visible;
    padding-bottom: 0;
  }

  .sidebar-nav a,
  .sidebar-nav--minor a {
    flex: none;
    width: 100%;
  }

  .sidebar-spacer {
    display: none;
  }

  .mobile-brand {
    display: none;
  }

  .main-stage {
    height: auto;
    overflow: visible;
    width: 100%;
  }

  .topbar {
    display: none;
  }

  .member-chip {
    width: 100%;
    justify-content: center;
  }

  .product-grid,
  .slots-grid,
  .member-games-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-download {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-copy {
    position: static;
    padding: 18px;
    background: linear-gradient(180deg, rgba(13, 20, 32, 0), rgba(13, 20, 32, 0.88) 20%, rgba(13, 20, 32, 1) 100%);
  }

  .hero-card {
    min-height: 0;
  }

  .hero-image {
    height: 210px;
  }

  .section-heading h2 {
    font-size: 1.45rem;
  }

  .product-section,
  .strip-section,
  .site-footer,
  .member-empty-card {
    padding: 16px;
  }

  .member-empty-card {
    padding-bottom: 36px;
  }

  .product-card,
  .member-game-card__body {
    padding: 14px;
  }

  .auth-modal {
    width: min(94vw, 460px);
    padding: 16px;
  }

  .game-modal {
    inset: 10px;
  }

  .game-modal__header {
    padding: 14px;
  }

  .game-modal__frame {
    min-height: calc(100vh - 120px);
  }
}

@media (max-width: 640px) {
  .sidebar {
    padding: 10px;
  }

  .site-logo {
    width: 124px;
  }

  .sidebar-nav a,
  .sidebar-select {
    min-height: 42px;
    font-size: 0.86rem;
  }

  .hero-card,
  .ticker-bar,
  .product-section,
  .strip-section,
  .site-footer,
  .member-empty-card {
    margin: 10px;
  }

  .hero-copy {
    padding: 16px;
  }

  .hero-copy h1 {
    font-size: clamp(1.85rem, 9vw, 2.6rem);
  }

  .hero-subtitle {
    font-size: 0.98rem;
  }

  .hero-image {
    height: 190px;
  }

  .ticker-track {
    gap: 10px;
    padding: 10px;
  }

  .ticker-win-card {
    min-width: 182px;
    padding: 10px 12px;
  }

  .product-grid,
  .slots-grid,
  .member-games-grid {
    grid-template-columns: 1fr;
  }

  .product-card {
    grid-template-rows: auto auto auto auto;
  }

  .product-image {
    height: 180px;
  }

  .slot-card__art,
  .slot-card__image {
    min-height: 180px;
  }

  .member-filter-row {
    gap: 8px;
  }

  .member-filter-pill {
    flex: 1 1 calc(50% - 8px);
    justify-content: center;
    text-align: center;
  }

  .member-game-card__body {
    min-height: 0;
    padding: 12px;
  }

  .member-game-card h3 {
    font-size: 1rem;
  }

  .member-game-card p {
    font-size: 0.9rem;
  }

  .footer-links {
    gap: 8px;
  }

  .footer-links a {
    flex: 1 1 calc(50% - 8px);
    min-height: 40px;
  }

  .auth-modal {
    width: calc(100vw - 20px);
    padding: 14px;
  }

  .auth-modal__body h2 {
    font-size: 1.55rem;
  }

  .auth-field input {
    min-height: 46px;
  }

  .game-modal {
    inset: 0;
    border-radius: 0;
    border-inline: 0;
    border-bottom: 0;
  }

  .game-modal__header {
    gap: 10px;
    padding: 12px;
  }

  .game-modal__header h2 {
    font-size: 1.1rem;
  }

  .game-modal__close {
    width: 40px;
    height: 40px;
  }

  .game-modal__frame {
    min-height: calc(100vh - 96px);
  }
}

@media (max-width: 420px) {
  .mobile-header {
    padding: 12px 10px 8px;
  }

  .mobile-menu-button {
    width: 42px;
    height: 42px;
    border-radius: 10px;
  }

  .sidebar {
    width: calc(100vw - 42px);
    max-width: none;
    padding: 14px 12px 20px;
  }

  .sidebar__auth .btn {
    min-height: 40px;
  }

  .section-heading h2 {
    font-size: 1.28rem;
  }

  .member-filter-pill,
  .footer-links a {
    flex-basis: 100%;
  }

  .hero-image {
    height: 170px;
  }
}
