:root {
  --bg: #07111f;
  --bg-strong: #0b1728;
  --panel: rgba(13, 24, 39, 0.82);
  --panel-2: rgba(18, 36, 58, 0.94);
  --line: rgba(255, 255, 255, 0.08);
  --text: #eef5ff;
  --muted: #a9bad0;
  --primary: #6b7cff;
  --primary-2: #5ef1cf;
  --gold: #ffcb66;
  --danger: #ff6b7d;
  --shadow: 0 30px 60px rgba(1, 7, 16, 0.45);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Inter", sans-serif;
  background:
    radial-gradient(circle at top, rgba(107, 124, 255, 0.18), transparent 25%),
    linear-gradient(180deg, #030b13, #07111f 28%, #090e19 100%);
  color: var(--text);
}

button,
input {
  font: inherit;
}

.page-shell {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
  padding-bottom: 56px;
}

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

.profile-view {
  display: block;
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 56px;
}

.profile-hero,
.profile-shell {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}

.profile-hero {
  justify-content: space-between;
  margin-bottom: 20px;
}

.profile-shell {
  align-items: stretch;
}

.profile-sidebar {
  flex: 0 0 360px;
}

.profile-panel {
  flex: 1;
  display: grid;
  gap: 20px;
}

.profile-card {
  background: rgba(12, 18, 27, 0.9);
  border: 1px solid rgba(126, 147, 181, 0.18);
  border-radius: 22px;
  padding: 24px;
  box-shadow: 0 18px 30px rgba(3, 6, 12, 0.28);
}

.account-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.account-card h3 {
  font-size: clamp(1.5rem, 2vw, 2.2rem);
  margin: 10px 0 0;
}

.mini-label {
  display: inline-block;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #8ec9ff;
}

.account-stats {
  display: flex;
  gap: 18px;
}

.account-stats div {
  min-width: 120px;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(118, 144, 255, 0.09);
  border: 1px solid rgba(126, 147, 181, 0.18);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.account-stats strong {
  font-size: 1.2rem;
  color: #f5fbff;
}

.account-stats span {
  color: #a6d3ff;
  font-size: 0.82rem;
}

.section-heading.compact {
  margin-bottom: 16px;
}

.bonus-list {
  display: grid;
  gap: 16px;
}

.bonus-item {
  display: flex;
  gap: 16px;
  align-items: center;
  padding: 16px 18px;
  border-radius: 18px;
  background: rgba(27, 39, 57, 0.82);
  border: 1px solid rgba(126, 147, 181, 0.2);
}

.bonus-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 72px;
  min-height: 52px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(77, 106, 255, 0.2), rgba(33, 214, 170, 0.2));
  border: 1px solid rgba(96, 202, 255, 0.45);
  font-weight: 800;
  color: #eaffff;
}

.bonus-item strong {
  display: block;
  font-size: 1.02rem;
  margin-bottom: 6px;
}

.bonus-item p {
  color: #b9cae5;
  margin: 0;
}

@media (max-width: 900px) {
  .profile-shell,
  .profile-hero,
  .account-card {
    flex-direction: column;
  }

  .profile-sidebar {
    flex-basis: auto;
    width: 100%;
  }

  .account-stats {
    width: 100%;
    justify-content: space-between;
  }
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 26px 0 18px;
}

.brand-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-weight: 800;
  color: #06131f;
  background: linear-gradient(135deg, var(--primary-2), var(--gold));
  box-shadow: 0 15px 30px rgba(94, 241, 207, 0.25);
}

.eyebrow {
  margin: 0;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.brand-wrap h1 {
  margin: 4px 0 0;
  font-size: 1.2rem;
}

.home-brand-copy {
  display: grid;
  gap: 3px;
}

.home-brand-name {
  margin: 0;
  color: #f1f6ff;
  font-size: clamp(1.05rem, 2vw, 1.45rem);
  font-style: italic;
  font-weight: 800;
  letter-spacing: 0.025em;
  line-height: 1;
  white-space: nowrap;
}

.home-brand-name span {
  color: #39c5ff;
}

.home-brand-subtitle {
  margin: 0;
  color: var(--muted);
  font-size: 0.75rem;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.main-nav a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.main-nav a:hover,
.main-nav a:focus-visible {
  color: var(--text);
}

.main-nav .home-auth-link {
  padding: 0.62rem 1rem;
  border: 1px solid rgba(106, 133, 177, 0.38);
  border-radius: 999px;
  color: #f2f6ff;
  font-size: 0.88rem;
  font-weight: 700;
}

.main-nav .home-auth-link.register {
  border-color: transparent;
  background: linear-gradient(135deg, #22a9f2, #2476e7);
  color: #fff;
}

.nav-cta {
  padding: 0.7rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(110, 160, 255, 0.4);
  background: linear-gradient(135deg, rgba(107, 124, 255, 0.15), rgba(94, 241, 207, 0.08));
  color: var(--text) !important;
  font-weight: 700;
}

.nav-cta.alt {
  background: linear-gradient(135deg, rgba(255, 203, 102, 0.18), rgba(107, 124, 255, 0.12));
  border-color: rgba(255, 203, 102, 0.35);
}

.source-link {
  color: var(--primary-2);
  font-weight: 700;
  text-decoration: none;
}

.source-link:hover,
.source-link:focus-visible {
  color: var(--text);
}

.cta-btn,
.primary-btn,
.secondary-btn,
.filter-btn,
.play-btn,
.close-btn {
  border: none;
  cursor: pointer;
}

.cta-btn,
.primary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary), #8b74ff);
  color: #fff;
  padding: 12px 22px;
  border-radius: 12px;
  font-weight: 700;
  box-shadow: 0 18px 35px rgba(107, 124, 255, 0.4);
  text-decoration: none;
  transition: transform 0.2s ease, filter 0.2s ease;
}

.cta-btn:hover,
.primary-btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.08);
}

.secondary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  border: 1px solid var(--line);
  padding: 12px 22px;
  border-radius: 12px;
  font-weight: 600;
  text-decoration: none;
}

.account-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.wallet-chip {
  display: flex;
  flex-direction: column;
  gap: 3px;
  border: 1px solid rgba(94, 241, 207, 0.2);
  border-radius: 12px;
  background: rgba(94, 241, 207, 0.07);
  padding: 8px 12px;
}

.wallet-chip span {
  color: var(--muted);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.wallet-chip strong {
  color: var(--primary-2);
}

.hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 32px;
  align-items: center;
  padding: 32px 0 26px;
}

.hero-title-row {
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 16px 0 12px;
}

.hero-copy h2 {
  margin: 0;
  font-size: clamp(2.3rem, 5vw, 4.2rem);
  line-height: 1.04;
  letter-spacing: -0.06em;
}

.hero-copy p {
  margin: 0;
  max-width: 620px;
  color: var(--muted);
  font-size: 1.06rem;
  line-height: 1.7;
}

.pill,
.tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
  padding: 8px 12px;
}

.pill {
  color: #d6f9ff;
  background: rgba(94, 241, 207, 0.12);
  border: 1px solid rgba(94, 241, 207, 0.28);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 22px;
}

.stats {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 28px;
}

.stats div {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stats strong {
  font-size: 1.7rem;
  letter-spacing: -0.05em;
}

.stats span {
  color: var(--muted);
  font-size: 0.87rem;
}

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

.signup-promo {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 22px;
  margin: 26px 0 34px;
  padding: 28px 24px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: linear-gradient(120deg, rgba(17, 32, 48, 0.96), rgba(26, 27, 59, 0.96));
  box-shadow: var(--shadow);
}

.signup-copy h2 {
  margin: 8px 0 12px;
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -0.06em;
  line-height: 1.08;
}

.signup-copy p:not(.eyebrow) {
  margin: 0;
  max-width: 620px;
  color: var(--muted);
  line-height: 1.7;
}

.signup-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 22px;
}

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

.bonus-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
  min-height: 160px;
  padding: 18px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
}

.bonus-label {
  display: inline-flex;
  width: fit-content;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 203, 102, 0.12);
  color: var(--gold);
  font-weight: 800;
  letter-spacing: 0.04em;
}

.bonus-card h3 {
  margin: 0;
  font-size: 1.1rem;
  letter-spacing: -0.04em;
}

.bonus-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.auth-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 28px;
  background:
    radial-gradient(ellipse at 8% 12%, rgba(94, 241, 207, 0.1), transparent 34%),
    radial-gradient(ellipse at 92% 88%, rgba(107, 124, 255, 0.13), transparent 36%),
    rgba(2, 6, 12, 0.88);
}

.auth-dialog {
  display: grid;
  grid-template-columns: minmax(260px, 0.42fr) minmax(0, 0.78fr);
  width: min(1120px, 100%);
  min-height: 610px;
  overflow: hidden;
  border: 1px solid rgba(142, 164, 204, 0.25);
  border-radius: 18px;
  background: #1b2945;
  box-shadow: 0 35px 100px rgba(0, 0, 0, 0.58);
}

.auth-brand-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 36px;
  background:
    radial-gradient(circle at 50% 42%, rgba(83, 120, 190, 0.16), transparent 46%),
    #18243e;
  border-right: 1px solid rgba(160, 180, 217, 0.12);
}

.auth-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  color: #f1f6ff;
  font-size: clamp(1.15rem, 2vw, 1.7rem);
  font-style: italic;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-decoration: none;
}

.auth-brand > span:last-child span {
  color: #39c5ff;
}

.auth-brand-mark {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 17px;
  background: linear-gradient(145deg, #4ad8ff, #2873ec 70%);
  color: #071529;
  font-size: 1.2rem;
  font-style: normal;
  letter-spacing: -0.08em;
  box-shadow: 0 10px 30px rgba(32, 133, 255, 0.32);
}

.auth-brand-caption {
  margin: 0;
  color: #8798b8;
  font-size: 0.92rem;
  text-align: center;
}

.auth-content {
  min-width: 0;
  padding: 0 0 32px;
}

.auth-dialog-header {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 112px;
  padding: 22px 28px;
  border-bottom: 1px solid rgba(160, 180, 217, 0.15);
}

.auth-heading-icon,
.auth-input-icon {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  background: #168de9;
  color: white;
}

.auth-heading-icon {
  width: 38px;
  height: 38px;
}

.auth-heading-icon svg {
  width: 21px;
  height: 21px;
  fill: currentColor;
}

.auth-heading-copy {
  min-width: 0;
}

.auth-heading-copy h1 {
  margin: 0 0 5px;
  color: #f5f7fc;
  font-size: 1.15rem;
}

.auth-heading-copy p {
  margin: 0;
  color: #8292b0;
  font-size: 0.9rem;
}

.auth-close {
  margin-left: auto;
  padding: 0 4px;
  color: #dce7f5;
  font-size: 2rem;
  font-weight: 300;
  line-height: 1;
  text-decoration: none;
}

.auth-panel {
  padding: 14px 26px 0;
}

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

.auth-form {
  display: grid;
  gap: 25px;
  margin: 0;
}

.auth-field {
  display: grid;
  gap: 9px;
  color: #8496b8;
  font-size: 0.84rem;
  font-weight: 700;
}

.auth-field > span:first-child b {
  color: #ff6271;
}

.auth-input-wrap {
  display: flex;
  align-items: center;
  min-height: 58px;
  gap: 12px;
  padding: 0 15px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: #17233d;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.auth-input-wrap:focus-within {
  border-color: rgba(46, 163, 255, 0.68);
  box-shadow: 0 0 0 3px rgba(38, 143, 243, 0.13);
}

.auth-input-icon {
  width: 32px;
  height: 32px;
  font-size: 0.85rem;
}

.auth-lock-icon {
  font-size: 1rem;
}

.auth-input-wrap input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: #eef4ff;
  font: inherit;
  font-size: 0.95rem;
}

.auth-input-wrap input::placeholder {
  color: #7586a6;
  opacity: 1;
}

.password-toggle {
  flex: 0 0 auto;
  border: 0;
  background: transparent;
  color: #8fa2c3;
  cursor: pointer;
  font: inherit;
  font-size: 0.78rem;
}

.auth-options {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: -3px;
}

.auth-remember {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #e0e8f6;
  font-size: 0.88rem;
}

.auth-remember input {
  width: 20px;
  height: 20px;
  margin: 0;
  accent-color: #168de9;
}

.auth-forgot {
  color: #d6e1f1;
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
}

.auth-forgot:hover {
  color: #52c8ff;
}

.auth-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 30px;
}

.auth-join-button,
.auth-login-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 58px;
  padding: 0 22px;
  border-radius: 999px;
  cursor: pointer;
  font: inherit;
  font-size: 0.98rem;
  transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.auth-join-button {
  border: 1px solid rgba(183, 202, 235, 0.15);
  background: transparent;
  color: #f2f6ff;
}

.auth-login-button {
  border: 1px solid transparent;
  background: linear-gradient(135deg, #3caeff, #2076e4);
  color: white;
  font-weight: 800;
}

.auth-join-button:hover,
.auth-login-button:hover {
  transform: translateY(-1px);
}

.auth-feedback {
  margin: 0;
  color: #ffd278;
  font-size: 0.86rem;
  line-height: 1.45;
}

.auth-register-terms {
  align-items: flex-start;
  line-height: 1.45;
}

@media (max-width: 760px) {
  .auth-page {
    display: block;
    padding: 14px;
  }

  .auth-dialog {
    grid-template-columns: 1fr;
    min-height: 0;
    margin: 0 auto;
    border-radius: 16px;
  }

  .auth-brand-panel {
    min-height: 116px;
    flex-direction: row;
    justify-content: flex-start;
    gap: 14px;
    padding: 18px 20px;
    border-right: 0;
    border-bottom: 1px solid rgba(160, 180, 217, 0.12);
  }

  .auth-brand {
    font-size: 1rem;
  }

  .auth-brand-mark {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    font-size: 1rem;
  }

  .auth-brand-caption {
    margin-left: auto;
    max-width: 120px;
    font-size: 0.75rem;
    text-align: right;
  }

  .auth-dialog-header {
    min-height: 92px;
    gap: 12px;
    padding: 18px 16px;
  }

  .auth-heading-copy h1 {
    font-size: 1.02rem;
  }

  .auth-heading-copy p {
    font-size: 0.79rem;
  }

  .auth-panel {
    padding: 14px 16px 24px;
  }

  .auth-form {
    gap: 20px;
  }

  .auth-input-wrap {
    min-height: 54px;
  }

  .auth-actions {
    gap: 9px;
    margin-top: 22px;
  }

  .auth-join-button,
  .auth-login-button {
    min-height: 54px;
    padding: 0 15px;
    font-size: 0.86rem;
  }

  .auth-options {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }
}

.payment-methods {
  margin: 28px 0 42px;
}

.section-heading {
  margin-bottom: 18px;
}

.section-heading h2 {
  margin: 8px 0 0;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  letter-spacing: -0.05em;
}

.payment-grid,
.profile-menu-grid {
  display: grid;
  gap: 18px;
}

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

.payment-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 20px 18px;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, rgba(13, 24, 39, 0.96), rgba(12, 18, 30, 0.9));
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.payment-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-2), var(--primary), var(--gold));
}

.payment-card:hover {
  transform: translateY(-3px);
  border-color: rgba(107, 124, 255, 0.4);
  box-shadow: 0 18px 42px rgba(1, 7, 16, 0.48);
}

.payment-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.payment-type {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: rgba(94, 241, 207, 0.12);
  border: 1px solid rgba(94, 241, 207, 0.25);
  color: #d7fff7;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 6px 8px;
}

.payment-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary), #8b74ff);
  color: #fff;
  font-weight: 800;
  box-shadow: 0 12px 25px rgba(107, 124, 255, 0.28);
}

.payment-card h3 {
  margin: 0;
  font-size: 1.35rem;
  letter-spacing: -0.04em;
}

.payment-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.payment-meta {
  display: grid;
  gap: 6px;
  margin-top: auto;
  color: var(--muted);
  font-size: 0.8rem;
}

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

.profile-menu-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.02));
  color: var(--text);
  text-decoration: none;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.profile-menu-item:hover,
.profile-menu-item:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(94, 241, 207, 0.45);
  background: linear-gradient(180deg, rgba(94, 241, 207, 0.08), rgba(255,255,255,0.03));
}

.profile-menu-item strong {
  color: var(--primary-2);
  font-size: 1.4rem;
  line-height: 1;
}

.pricing {
  margin: 28px 0 42px;
}

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

.pricing-card {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 24px 20px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(13, 24, 39, 0.8);
  box-shadow: var(--shadow);
}

.pricing-card.featured {
  background: linear-gradient(180deg, rgba(107, 124, 255, 0.22), rgba(13, 24, 39, 0.9));
  border-color: rgba(107, 124, 255, 0.5);
  transform: translateY(-4px);
}

.pricing-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(94, 241, 207, 0.12);
  border: 1px solid rgba(94, 241, 207, 0.25);
  color: #d7fff7;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.pricing-card h3 {
  margin: 0;
  font-size: 1.8rem;
  letter-spacing: -0.04em;
}

.price-line {
  display: flex;
  align-items: end;
  gap: 10px;
}

.price-line strong {
  font-size: clamp(2rem, 3vw, 2.7rem);
  letter-spacing: -0.06em;
}

.price-line span {
  color: var(--muted);
  margin-bottom: 5px;
}

.pricing-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
  color: var(--muted);
  display: grid;
  gap: 10px;
}

.pricing-card li {
  position: relative;
  padding-left: 18px;
}

.pricing-card li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--primary-2);
}

.pricing-card .primary-btn,
.pricing-card .secondary-btn {
  width: 100%;
  margin-top: auto;
}

.jackpot-card {
  background:
    radial-gradient(circle at 85% 15%, rgba(255, 203, 102, 0.2), transparent 28%),
    linear-gradient(120deg, rgba(41, 31, 66, 0.95), rgba(17, 27, 43, 0.95));
}

.promo-card h2,
.promo-card h3 {
  margin: 8px 0;
  letter-spacing: -0.04em;
}

.promo-card h2 {
  font-size: clamp(1.35rem, 2.5vw, 2rem);
}

.promo-card p:not(.eyebrow) {
  max-width: 560px;
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.jackpot-value {
  min-width: 175px;
  text-align: right;
}

.jackpot-value span {
  display: block;
  color: var(--muted);
  font-size: 0.8rem;
}

.jackpot-value strong {
  display: block;
  margin-top: 8px;
  color: var(--gold);
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  letter-spacing: -0.05em;
}

.balance-card {
  align-items: flex-start;
  flex-direction: column;
  justify-content: center;
  background: linear-gradient(145deg, rgba(20, 45, 55, 0.92), rgba(14, 25, 39, 0.98));
}

.site-disclaimer {
  margin: 36px 0 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.6;
  text-align: center;
}

.showcase-card {
  display: block;
  color: var(--text);
  text-decoration: none;
  border-radius: 24px;
  padding: 18px 18px 16px;
  min-height: 180px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(82, 120, 255, 0.18), rgba(18, 33, 55, 0.96));
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.showcase-art-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  filter: brightness(0.68);
  object-fit: cover;
}

.showcase-card > .tag,
.showcase-card > h3,
.showcase-card > p {
  position: relative;
  z-index: 1;
}

.showcase-card.large {
  grid-column: 1 / -1;
  min-height: 220px;
  background:
    linear-gradient(160deg, rgba(12, 18, 36, 0.55), rgba(107, 124, 255, 0.18)),
    radial-gradient(circle at top right, rgba(94, 241, 207, 0.38), transparent 35%),
    linear-gradient(135deg, #191d35, #3a4f84 55%, #6f7cff);
}

.showcase-card.small {
  min-height: 160px;
}

.accent-one {
  background:
    linear-gradient(180deg, rgba(5, 14, 23, 0.2), rgba(5, 14, 23, 0.8)),
    radial-gradient(circle at top, rgba(255, 203, 102, 0.5), transparent 35%),
    linear-gradient(135deg, #2b294d, #1e7a7a);
}

.accent-two {
  background:
    linear-gradient(180deg, rgba(5, 14, 23, 0.2), rgba(5, 14, 23, 0.8)),
    radial-gradient(circle at top, rgba(255, 107, 125, 0.5), transparent 35%),
    linear-gradient(135deg, #311f3d, #5d4dad);
}

.showcase-card h3 {
  margin: 18px 0 6px;
  font-size: clamp(1.2rem, 2vw, 2rem);
}

.showcase-card p {
  margin: 0;
  color: rgba(238, 245, 255, 0.8);
}

.tag {
  background: rgba(10, 18, 30, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #f9fbff;
}

.home-promo-banner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 300px;
  margin: 18px 0 22px;
  padding: 34px clamp(24px, 5vw, 58px);
  overflow: hidden;
  border: 1px solid rgba(112, 152, 227, 0.2);
  border-radius: 26px;
  background:
    radial-gradient(ellipse at 78% 50%, rgba(30, 124, 255, 0.3), transparent 42%),
    linear-gradient(112deg, #101d3a 0%, #142a57 56%, #10203e 100%);
  box-shadow: 0 24px 54px rgba(1, 6, 15, 0.35);
}

.home-promo-banner::before,
.home-promo-banner::after {
  position: absolute;
  content: "";
  pointer-events: none;
}

.home-promo-banner::before {
  inset: 0;
  opacity: 0.18;
  background-image: linear-gradient(rgba(255,255,255,.08) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.08) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: linear-gradient(90deg, transparent, #000);
}

.home-promo-banner::after {
  width: 400px;
  height: 400px;
  right: 8%;
  top: 50%;
  border: 1px solid rgba(89, 185, 255, 0.2);
  border-radius: 50%;
  transform: translateY(-50%);
  box-shadow: 0 0 0 28px rgba(72, 157, 255, 0.035), 0 0 0 58px rgba(72, 157, 255, 0.025);
}

.home-promo-copy {
  position: relative;
  z-index: 2;
  max-width: 580px;
}

.home-promo-kicker {
  display: inline-flex;
  color: #65d4ff;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.home-promo-copy h2 {
  margin: 14px 0 10px;
  color: #fff;
  font-size: clamp(2.15rem, 5vw, 3.8rem);
  letter-spacing: -0.065em;
  line-height: 0.98;
}

.home-promo-copy h2 span {
  color: #50bfff;
}

.home-promo-copy p {
  margin: 0;
  color: #b1c0da;
  font-size: 0.98rem;
  line-height: 1.6;
}

.home-promo-button {
  display: inline-flex;
  align-items: center;
  gap: 22px;
  margin-top: 22px;
  padding: 12px 18px;
  border-radius: 999px;
  background: linear-gradient(135deg, #22a9f2, #2476e7);
  box-shadow: 0 12px 30px rgba(22, 121, 229, 0.3);
  color: #fff;
  font-weight: 800;
  text-decoration: none;
}

.home-promo-button span {
  font-size: 1.35rem;
  line-height: 0.8;
}

.home-promo-art {
  position: absolute;
  z-index: 1;
  top: 0;
  right: 7%;
  display: grid;
  width: 330px;
  height: 100%;
  place-items: center;
}

.home-promo-art img {
  position: relative;
  z-index: 1;
  width: 176px;
  height: 208px;
  object-fit: cover;
  border: 2px solid rgba(177, 222, 255, 0.35);
  border-radius: 34px;
  box-shadow: 0 22px 56px rgba(0, 0, 0, 0.45);
  transform: rotate(5deg);
}

.promo-orbit {
  position: absolute;
  width: 250px;
  height: 250px;
  border: 1px solid rgba(100, 191, 255, 0.45);
  border-radius: 50%;
}

.promo-orbit-two {
  width: 205px;
  height: 205px;
  border-style: dashed;
  border-color: rgba(106, 152, 255, 0.48);
}

.promo-art-mark {
  position: absolute;
  z-index: 2;
  right: 22px;
  bottom: 35px;
  display: grid;
  width: 55px;
  height: 55px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 18px;
  background: linear-gradient(135deg, #54dcff, #5476ff);
  color: #071324;
  font-weight: 900;
  transform: rotate(-9deg);
}

.home-category-nav {
  display: flex;
  gap: 8px;
  margin: 0 0 14px;
  padding: 10px;
  overflow-x: auto;
  border: 1px solid rgba(109, 134, 177, 0.14);
  background: rgba(11, 21, 39, 0.82);
  scrollbar-width: none;
}

.home-category-nav::-webkit-scrollbar {
  display: none;
}

.home-category-nav a {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 9px;
  padding: 10px 16px;
  border-radius: 999px;
  color: #c4d0e5;
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
}

.home-category-nav a.is-active,
.home-category-nav a:hover {
  background: linear-gradient(135deg, #199ff1, #176fe0);
  color: #fff;
}

.home-category-chips {
  margin: 0 0 24px;
  padding: 0 2px 6px;
}

.home-stories,
.home-game-shelf,
.home-provider-shelf {
  margin: 26px 0 34px;
}

.home-section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
}

.home-section-heading h2 {
  margin: 6px 0 0;
  color: #f4f7ff;
  font-size: clamp(1.35rem, 2.5vw, 1.8rem);
  letter-spacing: -0.045em;
}

.home-see-all {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #63c6ff;
  font-size: 0.87rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.home-see-all-button {
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  font: inherit;
}

.home-see-all span {
  font-size: 1.3rem;
}

.story-list {
  display: flex;
  gap: clamp(20px, 4vw, 50px);
  overflow-x: auto;
  padding: 5px 4px 12px;
  scrollbar-width: none;
}

.story-list::-webkit-scrollbar {
  display: none;
}

.story-item {
  display: flex;
  flex: 0 0 100px;
  flex-direction: column;
  align-items: center;
  gap: 9px;
  color: #dfe8fa;
  font-size: 0.77rem;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
}

.story-ring {
  display: grid;
  width: 82px;
  height: 82px;
  padding: 5px;
  place-items: center;
  border: 2px solid #139ef6;
  border-radius: 50%;
  background: linear-gradient(145deg, rgba(27, 156, 255, 0.18), rgba(76, 90, 255, 0.12));
  box-shadow: 0 0 0 4px rgba(25, 152, 249, 0.1), 0 8px 22px rgba(0, 0, 0, 0.25);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.story-ring span {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  border: 1px solid rgba(134, 197, 255, 0.35);
  border-radius: 50%;
  background: radial-gradient(circle at 35% 25%, #244b87, #111e3d 72%);
  color: #77d8ff;
  font-size: 1.8rem;
}

.story-item:hover .story-ring {
  transform: translateY(-3px);
  box-shadow: 0 0 0 6px rgba(25, 152, 249, 0.13), 0 12px 26px rgba(0, 0, 0, 0.3);
}

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

.provider-showcase-list {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 2px 2px 12px;
  scrollbar-width: thin;
}

.provider-showcase-chip {
  display: flex;
  flex: 0 0 220px;
  align-items: center;
  gap: 12px;
  padding: 13px;
  border: 1px solid rgba(119, 147, 192, 0.18);
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(23, 38, 65, 0.95), rgba(14, 24, 42, 0.92));
  color: #eff5ff;
  cursor: pointer;
  font: inherit;
  text-align: left;
}

.provider-showcase-chip:hover {
  border-color: rgba(51, 169, 248, 0.55);
  background: linear-gradient(135deg, rgba(29, 67, 112, 0.95), rgba(14, 24, 42, 0.92));
}

.provider-showcase-mark {
  display: grid;
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 13px;
  background: linear-gradient(145deg, #27b7f4, #515cff);
  color: #fff;
  font-size: 1.15rem;
  font-weight: 900;
}

.provider-showcase-chip > span:nth-child(2) {
  min-width: 0;
  overflow: hidden;
  font-size: 0.88rem;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.provider-showcase-chip small {
  margin-left: auto;
  color: #8fa2c3;
  font-size: 0.7rem;
  white-space: nowrap;
}

.mobile-home-dock {
  display: none;
}

.catalog {
  margin-top: 24px;
}

.catalog-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 26px;
}

.catalog-header h2 {
  margin: 8px 0 0;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  letter-spacing: -0.04em;
}

.eyebrow.alt {
  color: var(--primary-2);
}

.toolbar {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.category-chips {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 4px 2px 14px;
  margin: 16px 0 4px;
  scrollbar-width: thin;
}

.category-chip {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
}

.category-chip span {
  color: var(--text);
  font-size: 0.76rem;
  opacity: 0.72;
}

.category-chip:hover,
.category-chip.active {
  border-color: rgba(94, 241, 207, 0.48);
  background: rgba(94, 241, 207, 0.1);
  color: var(--text);
}

#searchInput,
#providerFilter,
#labelFilter {
  min-width: min(300px, 100%);
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  padding: 12px 16px;
  outline: none;
}

#providerFilter option,
#labelFilter option {
  color: var(--text);
  background: var(--bg-strong);
}

#searchInput::placeholder {
  color: var(--muted);
}

.filter-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-btn {
  background: rgba(255, 255, 255, 0.02);
  color: var(--muted);
  padding: 9px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  transition: all 0.2s ease;
}

.filter-btn.active {
  background: rgba(107, 124, 255, 0.12);
  color: var(--text);
  border-color: rgba(107, 124, 255, 0.44);
}

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

.game-card {
  background: linear-gradient(180deg, rgba(17, 27, 43, 0.95), rgba(13, 21, 35, 0.96));
  border: 1px solid var(--line);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.game-card:hover {
  transform: translateY(-4px);
  border-color: rgba(107, 124, 255, 0.4);
}

.game-card-art {
  position: relative;
  min-height: 190px;
  padding: 16px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  background: linear-gradient(135deg, rgba(107, 124, 255, 0.24), rgba(6, 14, 24, 0.2));
  background-size: cover;
  background-position: center;
}

.game-art-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.game-card-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(4, 10, 18, 0.08), rgba(4, 10, 18, 0.55));
}

.game-card-art::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(255, 255, 255, 0.22), transparent 26%);
}

.game-card-art > .tag,
.game-card-art > .score {
  position: relative;
  z-index: 1;
}

.api-status {
  min-height: 24px;
  margin: -8px 0 18px;
  color: var(--muted);
  font-size: 0.88rem;
}

.api-error {
  grid-column: 1 / -1;
  margin: 0;
  padding: 24px;
  border: 1px solid rgba(255, 107, 125, 0.3);
  border-radius: 16px;
  background: rgba(255, 107, 125, 0.06);
  color: #ffb1bb;
  line-height: 1.6;
}

.load-more {
  display: flex;
  width: fit-content;
  margin: 28px auto 0;
}

#loadMoreGames[hidden] {
  display: none;
}

.game-card .meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
}

.game-card .badge {
  font-size: 11px;
  border-radius: 999px;
  padding: 7px 9px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  border: 1px solid var(--line);
}

.game-card .score {
  color: var(--gold);
  font-weight: 700;
}

.game-card-content {
  padding: 18px 16px 16px;
}

.game-card h3 {
  margin: 0 0 8px;
  font-size: 1.15rem;
  letter-spacing: -0.04em;
}

.game-card p {
  margin: 0 0 16px;
  color: var(--muted);
  line-height: 1.5;
}

.game-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.price {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.price span {
  color: var(--muted);
  font-size: 0.75rem;
}

.price strong {
  font-size: 1.15rem;
}

.price strong {
  font-size: 0.95rem;
  color: var(--primary-2);
}

.source-game-id {
  overflow: hidden;
  color: var(--muted);
  font-size: 0.68rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.empty-state {
  grid-column: 1 / -1;
  color: var(--muted);
  text-align: center;
}

.play-btn {
  background: rgba(94, 241, 207, 0.1);
  color: var(--text);
  border: 1px solid rgba(94, 241, 207, 0.26);
  border-radius: 12px;
  padding: 10px 14px;
  font-weight: 700;
}

.live-game-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  white-space: nowrap;
}

.live-casino-toolbar {
  justify-content: flex-start;
  margin: 0 0 18px;
}

.live-casino-toolbar input {
  width: min(360px, 100%);
}

.live-casino-notice {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.6;
}

.modal {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  z-index: 20;
}

.modal.hidden {
  display: none;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 7, 14, 0.7);
  backdrop-filter: blur(8px);
}

.modal-panel {
  position: relative;
  width: min(760px, calc(100% - 28px));
  background: linear-gradient(180deg, rgba(12, 19, 32, 0.98), rgba(15, 24, 39, 0.98));
  border: 1px solid var(--line);
  border-radius: 26px;
  box-shadow: var(--shadow);
  overflow: hidden;
  max-height: min(90vh, 850px);
  overflow-y: auto;
}

.modal.is-playing {
  padding: 12px;
}

.modal.is-playing .modal-panel {
  width: min(1400px, 100%);
  height: min(900px, 100%);
  max-height: none;
  display: flex;
  flex-direction: column;
  border-radius: 18px;
}

.modal.is-playing .close-btn {
  top: 14px;
  right: 14px;
}

.game-player-toolbar {
  min-height: 88px;
  padding: 16px 62px 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border-bottom: 1px solid var(--line);
}

.game-player-toolbar h3 {
  margin: 0 0 5px;
}

.game-player-toolbar p {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.modal.is-playing #modalContent {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-height: 0;
}

.game-player-frame {
  display: block;
  width: 100%;
  flex: 1;
  min-height: 0;
  border: 0;
  background: #05080e;
}

.close-btn {
  position: absolute;
  right: 18px;
  top: 16px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  font-size: 1.7rem;
  line-height: 1;
  z-index: 2;
}

.modal-hero {
  min-height: 210px;
  padding: 24px 24px 20px;
  display: flex;
  align-items: flex-end;
  background: linear-gradient(135deg, rgba(107, 124, 255, 0.35), rgba(12, 22, 35, 0.65));
}

.game-detail-hero {
  position: relative;
  align-items: flex-end;
  overflow: hidden;
}

.game-detail-hero > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.game-detail-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(4, 10, 18, 0.08), rgba(4, 10, 18, 0.88));
}

.game-detail-hero .modal-hero-inner {
  position: relative;
  z-index: 1;
}

.modal-hero-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
}

.modal-hero h3 {
  margin: 0 0 6px;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  letter-spacing: -0.05em;
}

.modal-hero p {
  margin: 0;
  color: rgba(238, 245, 255, 0.8);
}

.modal-body {
  padding: 22px 24px 28px;
}

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

.info-box {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px;
}

.info-box label {
  display: block;
  color: var(--muted);
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.info-box strong {
  display: block;
  margin-top: 8px;
  font-size: 1.1rem;
}

.modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.modal-actions .play-btn,
.modal-actions .secondary-btn {
  min-width: 136px;
}

.demo-note {
  color: var(--muted);
  line-height: 1.7;
  margin: 0 0 20px;
}

.notice-error {
  color: #ff9dab;
}

.reels {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding: 16px;
  margin: 22px 0 16px;
  border: 1px solid rgba(255, 203, 102, 0.28);
  border-radius: 20px;
  background:
    radial-gradient(circle at top, rgba(255, 203, 102, 0.14), transparent 55%),
    rgba(3, 9, 17, 0.8);
}

.reels span {
  display: grid;
  place-items: center;
  min-height: 110px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
  font-size: clamp(2.4rem, 8vw, 4rem);
}

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

.memory-card {
  min-height: 74px;
  border: 1px solid rgba(107, 124, 255, 0.28);
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(107, 124, 255, 0.22), rgba(14, 24, 40, 0.95));
  color: var(--text);
  font-size: 1.8rem;
  cursor: pointer;
  transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease;
}

.memory-card:hover {
  transform: translateY(-2px);
  border-color: rgba(94, 241, 207, 0.55);
}

.memory-card.is-revealed,
.memory-card.is-matched {
  background: rgba(94, 241, 207, 0.12);
  border-color: rgba(94, 241, 207, 0.4);
}

.memory-card.is-matched {
  cursor: default;
}

.account-panel {
  width: min(460px, calc(100% - 28px));
}

.account-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 34px 28px 30px;
}

.account-form h2 {
  margin: 0;
  letter-spacing: -0.04em;
}

.account-form p:not(.eyebrow) {
  margin: 0 0 6px;
  color: var(--muted);
  line-height: 1.6;
}

.account-form label {
  font-size: 0.85rem;
  font-weight: 600;
}

.account-form input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  padding: 13px 14px;
  outline: none;
}

.account-form input:focus,
#searchInput:focus {
  border-color: rgba(94, 241, 207, 0.6);
  box-shadow: 0 0 0 3px rgba(94, 241, 207, 0.1);
}

.mini-game-panel {
  padding: 22px 24px 20px;
}

.mini-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.mini-header h3 {
  margin: 6px 0 0;
  font-size: clamp(1.5rem, 2vw, 2.2rem);
  letter-spacing: -0.05em;
}

.mini-score-box {
  min-width: 110px;
  background: rgba(107, 124, 255, 0.12);
  border: 1px solid rgba(107, 124, 255, 0.28);
  border-radius: 14px;
  padding: 8px 12px;
  text-align: center;
}

.mini-score-box span,
.mini-stat label {
  display: block;
  color: var(--muted);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.mini-score-box strong,
.mini-stat strong {
  display: block;
  margin-top: 5px;
  font-size: 1.5rem;
}

.mini-hud {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.mini-stat {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 14px;
}

.mini-field {
  position: relative;
  height: 300px;
  border-radius: 22px;
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(13, 21, 35, 0.8), rgba(9, 14, 22, 0.95)),
    radial-gradient(circle at center, rgba(107, 124, 255, 0.18), transparent 45%);
  overflow: hidden;
  margin-bottom: 18px;
}

.mini-target {
  position: absolute;
  width: 52px;
  height: 52px;
  border: none;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #fff, #8ef1d4 35%, #4b7cff 70%, #1c2340 100%);
  box-shadow: 0 10px 32px rgba(94, 241, 207, 0.42);
  color: #07111f;
  font-size: 2rem;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.15s ease;
}

.mini-target:hover {
  transform: scale(1.08);
}

.mini-result {
  display: grid;
  place-items: center;
  height: 100%;
  text-align: center;
  gap: 12px;
  color: var(--text);
}

.mini-result h4 {
  margin: 0;
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  letter-spacing: -0.05em;
}

.mini-result p {
  margin: 0;
  color: var(--muted);
  font-size: 1.1rem;
}

.hidden {
  display: none !important;
}

html:not(.home-password-unlocked) .page-shell,
html:not(.home-password-unlocked) .mobile-home-dock,
html:not(.home-password-unlocked) #gameModal {
  display: none !important;
}

.home-password-gate {
  position: fixed;
  z-index: 10000;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(circle at top, rgba(107, 124, 255, 0.22), transparent 38%),
    linear-gradient(180deg, #030b13, #07111f 55%, #090e19);
}

.home-password-gate[hidden] {
  display: none;
}

.home-password-card {
  width: min(100%, 410px);
  padding: 36px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.home-password-card > .brand-mark {
  margin-bottom: 24px;
}

.home-password-card h1 {
  margin: 0 0 8px;
  font-size: clamp(1.8rem, 8vw, 2.3rem);
}

.home-password-card > p:not(.eyebrow) {
  margin: 0 0 26px;
  color: var(--muted);
}

.home-password-card label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.9rem;
  font-weight: 700;
}

.home-password-card input {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  outline: none;
  background: rgba(3, 11, 19, 0.78);
  color: var(--text);
}

.home-password-card input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(107, 124, 255, 0.2);
}

.home-password-card button {
  width: 100%;
  margin-top: 14px;
}

.home-password-status {
  min-height: 1.25em;
  margin: 12px 0 0;
  color: var(--danger);
  font-size: 0.85rem;
}

@media (max-width: 980px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .hero-title-row {
    flex-wrap: wrap;
  }

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

  .bonus-grid,
  .payment-grid,
  .profile-menu-grid,
  .pricing-grid {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 720px) {
  .topbar {
    flex-direction: row;
    align-items: center;
    gap: 8px;
    padding: 14px 0 10px;
  }

  .catalog-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .brand-wrap {
    flex: 0 1 auto;
    gap: 7px;
  }

  .brand-mark {
    width: 34px;
    height: 34px;
    border-radius: 11px;
    font-size: 0.8rem;
  }

  .home-brand-name {
    font-size: clamp(0.85rem, 4vw, 1.1rem);
  }

  .home-brand-subtitle {
    font-size: 0.65rem;
  }

  .main-nav {
    flex: 0 0 auto;
    justify-content: flex-end;
    gap: 5px;
    margin-left: auto;
  }

  .main-nav a:not(.home-auth-link) {
    display: none;
  }

  .main-nav .home-auth-link {
    padding: 7px 9px;
    font-size: 0.68rem;
  }

  .home-promo-banner {
    min-height: 224px;
    margin: 10px 0 14px;
    padding: 22px 18px;
    border-radius: 20px;
  }

  .home-promo-copy {
    max-width: 67%;
  }

  .home-promo-kicker {
    font-size: 0.57rem;
    letter-spacing: 0.1em;
  }

  .home-promo-copy h2 {
    margin: 11px 0 8px;
    font-size: clamp(1.65rem, 7.4vw, 2.4rem);
  }

  .home-promo-copy p {
    font-size: 0.75rem;
  }

  .home-promo-button {
    gap: 10px;
    margin-top: 14px;
    padding: 9px 12px;
    font-size: 0.75rem;
  }

  .home-promo-art {
    right: -20%;
    width: 58%;
  }

  .home-promo-art img {
    width: 112px;
    height: 142px;
    border-radius: 24px;
  }

  .promo-orbit {
    width: 165px;
    height: 165px;
  }

  .promo-orbit-two {
    width: 136px;
    height: 136px;
  }

  .promo-art-mark {
    right: 9px;
    bottom: 26px;
    width: 39px;
    height: 39px;
    border-radius: 13px;
    font-size: 0.8rem;
  }

  .home-category-nav {
    gap: 3px;
    margin-bottom: 8px;
    padding: 6px;
  }

  .home-category-nav a {
    gap: 6px;
    padding: 9px 11px;
    font-size: 0.77rem;
  }

  .home-category-chips {
    gap: 7px;
    margin: 0 0 20px;
    padding-bottom: 8px;
  }

  .home-category-chips .category-chip {
    gap: 5px;
    padding: 7px 10px;
    font-size: 0.72rem;
  }

  .home-stories,
  .home-game-shelf,
  .home-provider-shelf {
    margin: 20px 0 25px;
  }

  .home-section-heading {
    margin-bottom: 12px;
  }

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

  .story-list {
    gap: 14px;
    margin-right: -8px;
    margin-left: -4px;
  }

  .story-item {
    flex-basis: 82px;
    gap: 7px;
    font-size: 0.68rem;
  }

  .story-ring {
    width: 70px;
    height: 70px;
  }

  .story-ring span {
    font-size: 1.55rem;
  }

  .home-highlight-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
  }

  .provider-showcase-chip {
    flex-basis: 190px;
    padding: 10px;
  }

  .mobile-home-dock {
    position: fixed;
    z-index: 20;
    right: 12px;
    bottom: max(10px, env(safe-area-inset-bottom));
    left: 12px;
    display: flex;
    align-items: center;
    justify-content: space-around;
    min-height: 62px;
    padding: 7px 5px;
    border: 1px solid rgba(155, 177, 219, 0.2);
    border-radius: 999px;
    background: rgba(14, 27, 50, 0.96);
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(18px);
  }

  .mobile-home-dock a {
    display: flex;
    flex: 1 1 0;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    color: #b8c7e0;
    font-size: 0.62rem;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
  }

  .mobile-home-dock a span {
    color: #54c4ff;
    font-size: 1.1rem;
    line-height: 1;
  }

  .hero-title-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-copy h2 {
    font-size: clamp(2.2rem, 12vw, 3.4rem);
  }

  .main-nav {
    flex-wrap: wrap;
    gap: 12px 18px;
  }

  .account-actions {
    width: 100%;
    justify-content: space-between;
  }

  .promo-card {
    align-items: flex-start;
    flex-direction: column;
  }

  .jackpot-value {
    text-align: left;
  }

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

  .page-shell {
    width: calc(100% - 16px);
    padding-bottom: 98px;
  }

  .game-card-art {
    min-height: 0;
    aspect-ratio: 2 / 3;
    padding: 6px;
  }

  .game-card-art .tag {
    max-width: 100%;
    padding: 4px 6px;
    overflow: hidden;
    font-size: 0.58rem;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .game-card-content {
    padding: 8px 6px;
  }

  .game-card .meta {
    margin-top: 0;
  }

  .game-card .meta .badge:nth-child(2),
  .source-game-id {
    display: none;
  }

  .game-card .badge {
    max-width: 100%;
    padding: 4px 6px;
    overflow: hidden;
    font-size: 0.58rem;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .game-card h3 {
    display: -webkit-box;
    margin: 6px 0;
    overflow: hidden;
    font-size: 0.72rem;
    line-height: 1.3;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .game-card-footer {
    display: block;
  }

  .game-card .play-btn {
    width: 100%;
    padding: 6px 2px;
    border-radius: 8px;
    font-size: 0.6rem;
    line-height: 1.2;
  }

  .toolbar {
    width: 100%;
  }

  .mini-game-panel {
    padding: 18px 16px;
  }

  .mini-field {
    height: 240px;
  }

  .memory-grid {
    gap: 7px;
  }

  .modal.is-playing {
    padding: 0;
  }

  .modal.is-playing .modal-panel {
    width: 100%;
    height: 100%;
    border-radius: 0;
  }

  .game-player-toolbar {
    align-items: flex-start;
    flex-direction: column;
    padding: 16px 56px 16px 16px;
  }

  .game-player-toolbar .secondary-btn {
    width: 100%;
    text-align: center;
  }

  .memory-card {
    min-height: 58px;
  }

  #searchInput,
  #providerFilter,
  #labelFilter {
    min-width: 100%;
  }
}
