:root {
  --bg: #060a0f;
  --bg-2: #09111a;
  --panel: #0f1822;
  --panel-2: #15212e;
  --text: #f3f7f9;
  --muted: #91a0af;
  --line: #233240;
  --accent: #4a91ff;
  --accent-2: #2f76e6;
  --gold: #f0bd4b;
  --gold-2: #f6d477;
  --red: #ff8484;
  --green: #35d7a0;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.38);
  --shadow-sm: 0 10px 30px rgba(0, 0, 0, 0.24);
  --content-max: 1440px;
  --header-max: 1280px;
}

html {
  background: var(--bg);
}

body {
  width: 100%;
  max-width: none;
  margin: 0;
  border: 0;
  overflow-x: hidden;
  background:
    radial-gradient(
      circle at 75% -15%,
      rgba(53, 215, 160, 0.07),
      transparent 34rem
    ),
    linear-gradient(180deg, #060a0f 0%, #081019 48%, #060a0f 100%);
  box-shadow: none;
}

button,
input,
select {
  font: inherit;
}

button,
a,
input,
select {
  outline-offset: 3px;
}

:focus-visible {
  outline: 2px solid #7db4ff;
}

.statusbar {
  min-height: 28px;
  padding: 5px 16px;
  background: #030507;
}

.navbar {
  display: block;
  width: 100%;
  min-height: 64px;
  padding: 12px 16px;
  background: rgba(6, 10, 15, 0.94);
  border-bottom-color: rgba(67, 87, 105, 0.42);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(18px);
}

.navbar-inner {
  width: 100%;
  max-width: var(--header-max);
  min-height: 40px;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 auto;
}

.navbar-inner > * {
  min-width: 0;
}

.navbar .logo {
  width: 136px;
  height: 34px;
  flex: 0 0 auto;
}

.desktop-nav {
  display: none;
}

.nav-actions {
  flex: 0 0 auto;
  gap: 9px;
}

.nav-account,
.nav-wallet {
  min-height: 38px;
  border-color: #2c4051;
  background: rgba(17, 28, 39, 0.92);
}

.nav-account {
  width: 38px;
}

.nav-account-login {
  width: auto;
  padding: 0 16px;
}

.nav-wallet {
  padding: 0 13px 0 10px;
  color: var(--gold-2);
}

.app-content,
.marketing-page,
.wallet-page,
.profile-page {
  width: 100%;
  max-width: var(--content-max);
  margin: 0 auto;
}

.app-content {
  padding: 18px 16px 104px;
}

.home-overview {
  display: grid;
  gap: 12px;
}

.home-overview > *,
.catalog-toolbar > *,
.wallet-page > *,
.profile-page > *,
.auth-page > *,
.topup-page > *,
.marketing-page > * {
  min-width: 0;
}

.home-page .banner,
.home-page .integration-mode,
.home-page .search {
  margin-left: 0;
  margin-right: 0;
}

.home-page .banner {
  min-height: 158px;
  margin-top: 0;
  padding: 26px 22px;
  border-color: rgba(53, 215, 160, 0.24);
  background:
    radial-gradient(
      circle at 88% 12%,
      rgba(240, 189, 75, 0.2),
      transparent 28%
    ),
    radial-gradient(circle at 20% 0, rgba(53, 215, 160, 0.16), transparent 54%),
    linear-gradient(135deg, #13271d 0%, #0c1c18 52%, #101a24 100%);
  box-shadow: var(--shadow-sm);
}

.home-page .banner .banner-tag {
  margin-bottom: 12px;
  color: #a9f2d6;
  background: rgba(53, 215, 160, 0.13);
}

.home-page .banner .banner-title {
  max-width: 70%;
  font-size: clamp(22px, 7vw, 34px);
  letter-spacing: -0.03em;
}

.home-page .banner .banner-sub {
  margin-top: 7px;
  color: #b6c4ce;
  opacity: 1;
}

.home-page .banner .banner-icon {
  right: 22px;
  opacity: 0.24;
}

.integration-mode {
  margin-top: 0;
  margin-bottom: 0;
  padding: 16px;
  border-color: var(--line);
  background: linear-gradient(
    145deg,
    rgba(20, 32, 44, 0.96),
    rgba(12, 20, 29, 0.96)
  );
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.035);
}

.integration-mode strong {
  font-size: 14px;
}

.integration-mode-heading {
  display: flex !important;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px !important;
}

.integration-mode-heading > div {
  display: grid;
  gap: 3px;
}

.integration-info-button {
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  padding: 0;
  color: #a9c8f5;
  border: 1px solid #35506a;
  border-radius: 50%;
  background: #122131;
  font-size: 14px;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
}

.integration-info-button:hover,
.integration-info-button:focus-visible {
  color: #fff;
  border-color: #5d8fc5;
  background: #19324a;
}

.integration-mode span {
  line-height: 1.4;
}

.integration-mode-toggle {
  border: 1px solid rgba(72, 94, 114, 0.34);
  background: #09111a;
}

.integration-mode-toggle button {
  min-height: 36px;
  color: #9fadb9;
}

.integration-mode-toggle button[aria-pressed="true"] {
  color: #06110d;
  background: var(--green);
  box-shadow: 0 5px 16px rgba(53, 215, 160, 0.18);
}

.integration-info-modal {
  width: min(760px, calc(100% - 28px));
  max-height: min(760px, calc(100dvh - 40px));
  padding: 0;
  overflow: auto;
  color: var(--text);
  border: 1px solid #31475a;
  border-radius: 22px;
  background: linear-gradient(150deg, #14212d, #09121b 72%);
  box-shadow: 0 36px 110px rgba(0, 0, 0, 0.72);
}

.integration-info-modal::backdrop {
  background: rgba(2, 6, 10, 0.78);
  backdrop-filter: blur(6px);
}

.integration-modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 24px 20px;
  border-bottom: 1px solid var(--line);
}

.integration-modal-header span {
  color: #8fddc1;
  font-size: 9px;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.integration-modal-header h2 {
  margin: 7px 0 0;
  font-size: clamp(22px, 5vw, 30px);
  line-height: 1.1;
  letter-spacing: -0.035em;
}

.integration-modal-close {
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  padding: 0;
  color: #9cabb7;
  border: 1px solid #304354;
  border-radius: 50%;
  background: #101b25;
  cursor: pointer;
}

.integration-modal-close svg {
  width: 16px;
  height: 16px;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}

.integration-mode-comparison {
  display: grid;
  gap: 12px;
  padding: 20px 24px;
}

.integration-mode-comparison section {
  padding: 18px;
  border: 1px solid #2a3d4d;
  border-radius: 15px;
  background: rgba(13, 23, 32, 0.82);
}

.integration-mode-badge {
  display: inline-flex;
  padding: 5px 8px;
  color: #07120e;
  border-radius: 999px;
  background: var(--green);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.integration-mode-badge.operator {
  color: #f2f7ff;
  background: #3f7fdc;
}

.integration-mode-comparison h3 {
  margin: 13px 0 0;
  font-size: 17px;
  line-height: 1.25;
}

.integration-mode-comparison p {
  margin: 9px 0 0;
  color: #a3b1bc;
  font-size: 12px;
  line-height: 1.55;
}

.integration-mode-comparison code {
  padding: 2px 5px;
  color: #d8e8ff;
  border-radius: 5px;
  background: #18283a;
  font-size: 0.92em;
}

.integration-mode-comparison ul {
  display: grid;
  gap: 7px;
  margin: 14px 0 0;
  padding: 0;
  color: #cbd5dc;
  font-size: 11px;
  line-height: 1.4;
  list-style: none;
}

.integration-mode-comparison li::before {
  content: "•";
  margin-right: 8px;
  color: var(--green);
}

.integration-modal-note {
  margin: 0;
  padding: 0 24px 24px;
  color: #81919e;
  font-size: 11px;
  line-height: 1.5;
}

.home-page .hero-actions {
  gap: 10px;
  padding: 0;
}

.hero-btn {
  min-height: 96px;
  padding: 16px 8px 13px;
  border-color: var(--line);
  background: linear-gradient(160deg, #13202c, #0e1721);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.035);
}

.hero-btn:hover,
.hero-btn:focus-visible {
  transform: translateY(-2px);
  border-color: #3b5266;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.25);
}

.hero-btn .hb-label {
  color: #c5d0d8;
  font-size: 12px;
}

.search {
  min-height: 50px;
  border-radius: 12px;
  background: rgba(12, 20, 29, 0.92);
  border-color: #263747;
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.025);
}

.home-page .search {
  margin-top: 16px;
  margin-bottom: 2px;
}

.search:focus-within {
  border-color: #4a91ff;
  box-shadow: 0 0 0 3px rgba(74, 145, 255, 0.1);
}

.section {
  padding-left: 0;
  padding-right: 0;
}

.home-page .section {
  padding-top: 20px;
  padding-bottom: 4px;
}

.section-head {
  margin-bottom: 14px;
}

.section-head h3 {
  font-size: 16px;
  letter-spacing: -0.01em;
}

.see-all,
.section-head .all {
  min-height: 32px;
  border-color: #273847;
  background: rgba(14, 23, 33, 0.9);
}

.tile-row {
  gap: 12px;
  margin-right: -16px;
  padding-right: 16px;
  scroll-snap-type: x proximity;
}

.tile-row .tile {
  width: clamp(112px, 31vw, 148px);
}

.tile {
  appearance: none;
  display: block;
  min-width: 0;
  margin: 0;
  padding: 0;
  color: inherit;
  background: transparent;
  border: 0;
  font: inherit;
  text-align: left;
  scroll-snap-align: start;
}

.tile .art {
  border-radius: 15px;
  border: 1px solid rgba(89, 108, 124, 0.2);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.24);
}

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

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

.tile .label {
  margin-top: 9px;
  color: #edf3f6;
  font-size: 12px;
  font-weight: 750;
}

.tile .plays {
  margin-top: 4px;
  color: #8495a3;
  font-size: 10px;
}

.tile .badge {
  top: 9px;
  right: 9px;
  background: #286fda;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.page-intro {
  max-width: 660px;
  padding: 10px 0 22px;
}

.page-eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 25px;
  padding: 5px 10px;
  color: #9ae9cc;
  background: rgba(53, 215, 160, 0.09);
  border: 1px solid rgba(53, 215, 160, 0.18);
  border-radius: 999px;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.page-intro h1 {
  margin: 13px 0 0;
  font-size: clamp(28px, 7vw, 48px);
  line-height: 1.04;
  letter-spacing: -0.045em;
}

.page-intro p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.catalog-toolbar {
  display: grid;
  gap: 12px;
  margin-bottom: 10px;
}

.catalog-toolbar .search,
.catalog-toolbar .chips {
  margin: 0;
}

.catalog-toolbar .chips {
  padding: 0 0 4px;
}

.chip-btn {
  min-height: 40px;
  padding: 9px 15px;
  border-color: #2a3c4d;
  background: #101a25;
}

.chip-btn.active {
  color: #06110d;
  background: var(--green);
  border-color: #61e2b4;
}

.catalog-results {
  padding-top: 20px;
}

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

.providers-page {
  padding-top: 24px;
}

.providers-section {
  padding-top: 4px;
}

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

.provider {
  appearance: none;
  width: 100%;
  min-height: 112px;
  color: var(--text);
  border-color: var(--line);
  background: linear-gradient(155deg, #13202c, #0d1721);
  font: inherit;
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.03);
}

.provider .pv-icon {
  width: 44px;
  height: 44px;
  background: rgba(74, 145, 255, 0.1);
}

.provider:hover,
.provider:focus-visible {
  transform: translateY(-2px);
  border-color: #3a5369;
}

.bottom-nav {
  width: 100%;
  max-width: none;
  background: rgba(5, 9, 14, 0.96);
  border-top-color: rgba(65, 84, 101, 0.55);
  box-shadow: 0 -12px 30px rgba(0, 0, 0, 0.24);
}

.bottom-nav button {
  min-width: 68px;
  min-height: 54px;
  color: #7f909f;
}

.bottom-nav button.active {
  color: #74aaff;
}

.bottom-nav .ic {
  background: #111c27;
}

.bottom-nav button.active .ic {
  border-color: rgba(74, 145, 255, 0.34);
  background: rgba(74, 145, 255, 0.14);
}

.marketing-page {
  padding: 22px 16px 42px;
}

.marketing-intro {
  padding: 0 0 14px;
}

.marketing-intro h1 {
  max-width: 620px;
  font-size: clamp(30px, 8vw, 54px);
  letter-spacing: -0.045em;
}

.marketing-intro p {
  max-width: 560px;
  font-size: 14px;
}

.marketing-hero {
  min-height: 340px;
  margin: 10px 0 0;
  padding: 24px;
  border-radius: 20px;
  box-shadow: var(--shadow);
}

.marketing-hero-copy strong {
  font-size: clamp(32px, 9vw, 52px);
}

.marketing-strip {
  padding: 14px 0 0;
}

.marketing-section {
  padding-top: 24px;
}

.marketing-grid {
  gap: 14px;
}

.marketing-tile,
.marketing-banner {
  border-color: var(--line);
  background: #0f1924;
}

.wallet-page,
.profile-page {
  padding: 24px 16px 110px;
}

.account-page-heading {
  margin-bottom: 18px;
}

.account-page-heading > span {
  color: #8fddc1;
  font-size: 9px;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.account-page-heading h1 {
  margin: 7px 0 0;
  font-size: clamp(30px, 8vw, 46px);
  line-height: 1;
  letter-spacing: -0.045em;
}

.account-page-heading p {
  margin: 9px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.wallet-balance-card,
.faucet-panel,
.transaction-panel,
.profile-hero,
.profile-panel,
.profile-action-panel {
  border-color: var(--line);
  background: linear-gradient(
    155deg,
    rgba(18, 30, 41, 0.98),
    rgba(11, 19, 28, 0.98)
  );
  box-shadow: var(--shadow-sm);
}

.wallet-balance-card {
  padding: 25px 22px;
  background:
    radial-gradient(
      circle at 86% 12%,
      rgba(240, 189, 75, 0.15),
      transparent 35%
    ),
    linear-gradient(145deg, #15261f, #101a24 65%);
}

.wallet-balance-card h1 {
  font-size: clamp(36px, 10vw, 54px);
  letter-spacing: -0.045em;
}

.profile-avatar {
  background: linear-gradient(135deg, #dcae47, #3e88f2);
  box-shadow: 0 12px 28px rgba(35, 90, 166, 0.22);
}

.faucet-chip.selected {
  border-color: var(--green);
  background: rgba(53, 215, 160, 0.1);
  box-shadow: 0 0 0 1px var(--green) inset;
}

.auth-page {
  width: 100%;
  max-width: 1260px;
  margin: 0 auto;
}

.auth-showcase {
  display: none;
}

.auth-card {
  border-color: #2b3f51;
  background: linear-gradient(
    150deg,
    rgba(19, 31, 43, 0.99),
    rgba(9, 16, 24, 0.99)
  );
  box-shadow: var(--shadow);
}

.auth-card::before {
  background: rgba(53, 215, 160, 0.1);
}

.auth-btn {
  background: linear-gradient(135deg, #29c78f, #48dea9);
  box-shadow: 0 12px 28px rgba(41, 199, 143, 0.2);
}

.auth-btn.profile-logout {
  background: rgba(248, 113, 113, 0.08);
  color: #ff9a9a;
  border: 1px solid rgba(248, 113, 113, 0.28);
  box-shadow: none;
}

.auth-btn.profile-logout:hover,
.auth-btn.profile-logout:focus-visible {
  color: #ffc0c0;
  background: rgba(248, 113, 113, 0.13);
  border-color: rgba(248, 113, 113, 0.4);
  box-shadow: none;
}

.topup-context {
  display: none;
}

.topup-method-screen,
.topup-card {
  border-color: #293d4f;
}

.game-stage {
  background: #05090e;
}

.hyper-loading-page,
body[data-page="hyper"] {
  background:
    radial-gradient(
      circle at 50% 45%,
      rgba(74, 145, 255, 0.12),
      transparent 24rem
    ),
    #080d13;
}

.hosted-by-screen {
  background:
    radial-gradient(
      circle at 50% 46%,
      rgba(74, 145, 255, 0.08),
      transparent 24rem
    ),
    #080d13;
}

@media (max-width: 420px) {
  .app-content {
    padding-left: 14px;
    padding-right: 14px;
  }

  .home-page .banner {
    min-height: 144px;
    padding: 22px 18px;
  }

  .integration-mode {
    align-items: stretch;
    flex-direction: column;
  }

  .integration-mode-toggle button {
    flex: 1;
  }

  .grid {
    gap: 14px 9px;
  }

  .tile .label {
    font-size: 11px;
  }
}

@media (min-width: 768px) {
  body {
    padding-bottom: 92px;
  }

  .statusbar {
    display: none;
  }

  .navbar {
    min-height: 72px;
    padding: 15px 28px;
  }

  .navbar .logo {
    width: 150px;
    height: 38px;
  }

  .app-content {
    padding: 30px 28px 118px;
  }

  .home-page .banner {
    min-height: 210px;
    padding: 34px;
  }

  .home-page .banner .banner-title {
    font-size: 38px;
  }

  .home-page .banner .banner-sub {
    font-size: 14px;
  }

  .home-page .banner .banner-icon svg {
    width: 84px;
    height: 84px;
  }

  .home-page .section {
    padding-top: 28px;
  }

  .tile-row {
    gap: 16px;
    margin-right: -28px;
    padding-right: 28px;
  }

  .tile-row .tile {
    width: 168px;
  }

  .section-head h3 {
    font-size: 18px;
  }

  .catalog-toolbar {
    grid-template-columns: minmax(280px, 0.75fr) minmax(0, 1.25fr);
    align-items: center;
    gap: 18px;
  }

  .catalog-toolbar .chips {
    justify-content: flex-end;
  }

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

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

  .provider {
    min-height: 132px;
  }

  .marketing-page {
    padding: 34px 28px 58px;
  }

  .marketing-hero {
    min-height: 420px;
    padding: 34px;
  }

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

  .wallet-page,
  .profile-page {
    padding: 34px 28px 124px;
  }

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

@media (min-width: 1024px) {
  body[data-page="home"],
  body[data-page="games"],
  body[data-page="providers"],
  body[data-page="wallet"],
  body[data-page="profile"] {
    padding-left: 0;
    padding-bottom: 0;
  }

  .bottom-nav {
    display: none;
  }

  .desktop-nav {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-left: 30px;
  }

  .desktop-nav button {
    min-height: 42px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 12px;
    color: #8fa0ad;
    border: 1px solid transparent;
    border-radius: 10px;
    background: transparent;
    font-size: 12px;
    font-weight: 750;
    white-space: nowrap;
    cursor: pointer;
  }

  .desktop-nav button:hover,
  .desktop-nav button:focus-visible {
    color: #e9f0f4;
    background: rgba(255, 255, 255, 0.04);
  }

  .desktop-nav button.active {
    color: #eef5ff;
    border-color: rgba(74, 145, 255, 0.25);
    background: rgba(74, 145, 255, 0.11);
  }

  .desktop-nav .ic {
    width: 27px;
    height: 27px;
    display: grid;
    place-items: center;
    color: currentColor;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.035);
  }

  .desktop-nav .ic svg {
    width: 16px;
    height: 16px;
  }

  .app-content {
    padding: 38px 36px 70px;
  }

  .home-overview {
    grid-template-columns: minmax(0, 1.65fr) minmax(310px, 0.75fr);
    grid-template-rows: auto 1fr;
    gap: 16px;
  }

  .home-page .banner {
    grid-row: 1 / span 2;
    min-height: 282px;
    margin: 0;
    padding: 42px;
  }

  .home-page .banner .banner-title {
    max-width: 72%;
    font-size: 46px;
  }

  .home-page .banner .banner-icon {
    right: 38px;
  }

  .integration-mode {
    align-items: stretch;
    flex-direction: column;
  }

  .integration-mode-toggle button {
    flex: 1;
  }

  .home-page .hero-actions {
    align-self: stretch;
  }

  .hero-btn {
    min-height: 112px;
  }

  .tile-row {
    margin-right: 0;
    padding-right: 0;
  }

  .tile-row .tile {
    width: calc((100% - 64px) / 5);
    min-width: 146px;
  }

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

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

  .marketing-page {
    display: grid;
    grid-template-columns: minmax(0, 1.8fr) minmax(320px, 0.72fr);
    gap: 18px;
    padding: 42px 38px 70px;
  }

  .marketing-intro,
  .marketing-section {
    grid-column: 1 / -1;
  }

  .marketing-hero {
    min-height: 480px;
    margin: 0;
  }

  .marketing-strip {
    align-content: stretch;
    padding: 0;
  }

  .marketing-banner {
    min-height: 0;
  }

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

  .wallet-page {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-areas:
      "heading heading"
      "balance faucet"
      "transactions transactions"
      "error error";
    gap: 20px;
    align-items: start;
    max-width: 1180px;
    padding: 44px 38px 72px;
  }

  .wallet-page .account-page-heading {
    grid-area: heading;
    margin-bottom: 4px;
  }

  .wallet-balance-card {
    grid-area: balance;
    min-height: 254px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 34px;
  }

  .faucet-panel {
    grid-area: faucet;
    min-height: 254px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin-top: 0;
    padding: 28px;
  }

  .transaction-panel {
    grid-area: transactions;
    margin-top: 0;
  }

  .wallet-error {
    grid-area: error;
  }

  .profile-page {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-areas:
      "heading heading"
      "hero hero"
      "panel action"
      "logout logout"
      "error error";
    gap: 20px;
    align-items: start;
    max-width: 1040px;
    padding: 44px 38px 72px;
  }

  .profile-page .account-page-heading {
    grid-area: heading;
    margin-bottom: 4px;
  }

  .profile-hero {
    grid-area: hero;
    min-height: 190px;
    padding: 34px;
    background:
      radial-gradient(
        circle at 90% 10%,
        rgba(74, 145, 255, 0.14),
        transparent 19rem
      ),
      linear-gradient(145deg, #15261f, #101a24 70%);
  }

  .profile-panel {
    grid-area: panel;
    margin-top: 0;
  }

  .profile-action-panel {
    grid-area: action;
    min-height: 100%;
    align-content: center;
    margin-top: 0;
    padding: 24px;
  }

  .profile-logout {
    grid-area: logout;
    width: 220px;
    justify-self: end;
    margin-top: 0;
  }

  .profile-error {
    grid-area: error;
  }

  body[data-page="login"],
  body[data-page="signup"] {
    background:
      radial-gradient(
        circle at 16% 10%,
        rgba(53, 215, 160, 0.14),
        transparent 32rem
      ),
      radial-gradient(
        circle at 90% 90%,
        rgba(240, 189, 75, 0.08),
        transparent 28rem
      ),
      #070c12;
  }

  .auth-page {
    display: grid;
    grid-template-columns: minmax(330px, 0.9fr) minmax(420px, 1.1fr);
    gap: clamp(48px, 8vw, 112px);
    align-items: center;
    padding: 56px 48px;
  }

  .auth-showcase {
    display: block;
    max-width: 480px;
  }

  .auth-showcase > span {
    display: inline-flex;
    padding: 6px 10px;
    color: #9ae9cc;
    border: 1px solid rgba(53, 215, 160, 0.2);
    border-radius: 999px;
    background: rgba(53, 215, 160, 0.08);
    font-size: 10px;
    font-weight: 850;
    letter-spacing: 0.09em;
    text-transform: uppercase;
  }

  .auth-showcase h1 {
    margin: 20px 0 0;
    font-size: clamp(44px, 5vw, 68px);
    line-height: 0.98;
    letter-spacing: -0.055em;
  }

  .auth-showcase p {
    max-width: 440px;
    margin: 20px 0 0;
    color: #9baab7;
    font-size: 16px;
    line-height: 1.6;
  }

  .auth-showcase-stats {
    display: grid;
    gap: 5px;
    margin-top: 38px;
    padding-left: 18px;
    border-left: 2px solid var(--gold);
  }

  .auth-showcase-stats strong {
    color: var(--gold-2);
    font-size: 24px;
  }

  .auth-showcase-stats span {
    color: #8293a1;
    font-size: 12px;
    font-weight: 750;
  }

  .auth-card {
    max-width: 470px;
    margin-left: auto;
    padding: 34px;
  }

  .auth-card-wide {
    max-width: 690px;
  }

  .topup-page {
    display: grid;
    grid-template-columns: minmax(330px, 0.78fr) minmax(480px, 1.22fr);
    gap: clamp(46px, 7vw, 96px);
    align-items: center;
    max-width: 1220px;
    min-height: 100vh;
    min-height: 100dvh;
    margin: 0 auto;
    padding: 40px;
  }

  .topup-context {
    display: flex;
    align-self: stretch;
    flex-direction: column;
    justify-content: space-between;
    min-height: 600px;
    padding: 42px;
    overflow: hidden;
    border: 1px solid rgba(53, 215, 160, 0.18);
    border-radius: 28px;
    background:
      radial-gradient(
        circle at 10% 90%,
        rgba(240, 189, 75, 0.13),
        transparent 18rem
      ),
      radial-gradient(
        circle at 85% 5%,
        rgba(53, 215, 160, 0.15),
        transparent 20rem
      ),
      linear-gradient(145deg, #10251c, #0d1721 68%);
    box-shadow: var(--shadow);
  }

  .topup-context-brand img {
    width: 162px;
    height: auto;
  }

  .topup-context > div > span {
    color: #91e5c5;
    font-size: 10px;
    font-weight: 850;
    letter-spacing: 0.11em;
    text-transform: uppercase;
  }

  .topup-context h1 {
    max-width: 480px;
    margin: 17px 0 0;
    font-size: clamp(40px, 4vw, 58px);
    line-height: 1;
    letter-spacing: -0.05em;
  }

  .topup-context p {
    max-width: 460px;
    margin: 18px 0 0;
    color: #a0b0bc;
    font-size: 15px;
    line-height: 1.6;
  }

  .topup-context ul {
    display: grid;
    gap: 12px;
    margin: 0;
    padding: 0;
    color: #c7d2d9;
    font-size: 12px;
    font-weight: 750;
    list-style: none;
  }

  .topup-context li::before {
    content: "✓";
    display: inline-grid;
    width: 20px;
    height: 20px;
    margin-right: 10px;
    place-items: center;
    color: #07120e;
    border-radius: 50%;
    background: var(--green);
    font-size: 11px;
    font-weight: 900;
  }

  .topup-method-screen {
    width: 100%;
    max-width: 610px;
    min-height: 0;
    margin: 0;
    padding: 38px;
    border: 1px solid #293d4f;
    border-radius: 28px;
    background: linear-gradient(
      150deg,
      rgba(18, 30, 42, 0.99),
      rgba(9, 16, 24, 0.99)
    );
    box-shadow: var(--shadow);
  }

  .topup-method-brand {
    margin-bottom: 52px;
  }

  .topup-method-footer {
    position: static;
    padding-top: 34px;
    background: transparent;
  }

  .topup-card {
    width: 100%;
    max-width: 520px;
    margin: 0;
    padding: 30px 34px 28px;
    border-radius: 28px;
  }

  body[data-page="game"] .navbar {
    min-height: 70px;
  }
}

@media (min-width: 1024px) and (max-width: 1179px) {
  body[data-page="home"],
  body[data-page="games"],
  body[data-page="providers"],
  body[data-page="wallet"],
  body[data-page="profile"] {
    padding-bottom: 92px;
  }

  .desktop-nav {
    display: none;
  }

  .bottom-nav {
    display: flex;
  }
}

@media (min-width: 1280px) {
  .tile-row .tile {
    width: calc((100% - 80px) / 6);
  }

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

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

/* Marketing experience: campaign-first layouts for mobile and desktop. */
body[data-page="marketing"] {
  padding-bottom: 0;
  background:
    radial-gradient(
      circle at 78% 3%,
      rgba(74, 145, 255, 0.1),
      transparent 30rem
    ),
    radial-gradient(
      circle at 15% 30%,
      rgba(53, 215, 160, 0.06),
      transparent 24rem
    ),
    #060a0f;
}

.marketing-page {
  display: block;
  width: 100%;
  max-width: 1280px;
  padding: 24px 16px 56px;
}

.marketing-masthead {
  display: grid;
  gap: 20px;
  padding: 10px 0 24px;
}

.marketing-intro {
  padding: 0;
}

.marketing-intro > span {
  min-height: 26px;
  padding: 6px 10px;
  color: #9ce8cc;
  border-color: rgba(53, 215, 160, 0.2);
  background: rgba(53, 215, 160, 0.08);
  letter-spacing: 0.1em;
}

.marketing-intro h1 {
  max-width: 720px;
  margin-top: 15px;
  font-size: clamp(34px, 10vw, 58px);
  line-height: 0.99;
  letter-spacing: -0.055em;
}

.marketing-intro p {
  max-width: 620px;
  margin-top: 13px;
  color: #9aaab7;
  font-size: 14px;
  line-height: 1.6;
}

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

.marketing-overview > div {
  min-width: 0;
  display: grid;
  align-content: center;
  gap: 5px;
  min-height: 88px;
  padding: 15px;
  border: 1px solid #273a49;
  border-radius: 14px;
  background: rgba(14, 24, 34, 0.82);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.03);
}

.marketing-overview strong {
  color: #f1d27c;
  font-size: 22px;
  line-height: 1;
}

.marketing-overview span {
  color: #8294a2;
  font-size: 10px;
  font-weight: 750;
  line-height: 1.35;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.marketing-featured {
  display: grid;
  gap: 14px;
}

.marketing-hero {
  min-height: 420px;
  margin: 0;
  padding: 22px;
  border-color: rgba(74, 145, 255, 0.32);
  border-radius: 22px;
  background: #101824;
  box-shadow: 0 26px 66px rgba(0, 0, 0, 0.38);
}

.marketing-hero::before {
  background-image:
    linear-gradient(
      180deg,
      rgba(3, 7, 11, 0.04) 10%,
      rgba(3, 7, 11, 0.35) 42%,
      rgba(3, 7, 11, 0.96) 88%
    ),
    var(--campaign-image);
  background-position: center;
}

.marketing-hero::after {
  background:
    linear-gradient(120deg, rgba(74, 145, 255, 0.24), transparent 46%),
    radial-gradient(
      circle at 90% 10%,
      rgba(240, 189, 75, 0.18),
      transparent 34%
    );
}

.marketing-hero-copy {
  width: min(100%, 430px);
  gap: 10px;
}

.marketing-hero-copy strong {
  font-size: clamp(32px, 9vw, 56px);
  line-height: 0.98;
  letter-spacing: -0.05em;
}

.marketing-hero-copy > span:not(.marketing-kicker):not(.marketing-hero-action) {
  max-width: 390px;
  color: #ced8de;
  font-size: 13px;
  line-height: 1.5;
}

.marketing-hero-action {
  min-height: 40px;
  margin-top: 6px;
  padding: 11px 15px;
  color: #06110d;
  border-radius: 10px;
  background: var(--green);
  box-shadow: 0 10px 24px rgba(53, 215, 160, 0.2);
}

.marketing-hero-meta {
  width: min(100%, 390px);
  margin-top: 8px;
  border-color: rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  background: rgba(5, 10, 15, 0.74);
  backdrop-filter: blur(12px);
}

.marketing-hero-meta span {
  padding: 14px;
}

.marketing-supporting {
  padding: 18px;
  border: 1px solid #263846;
  border-radius: 20px;
  background: linear-gradient(
    150deg,
    rgba(17, 29, 40, 0.96),
    rgba(9, 16, 24, 0.96)
  );
  box-shadow: var(--shadow-sm);
}

.marketing-supporting-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.marketing-supporting-head > div > span,
.marketing-section-head > div > span {
  color: #83d8b8;
  font-size: 9px;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.marketing-supporting-head h2,
.marketing-section-head h2 {
  margin: 6px 0 0;
  font-size: 20px;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.marketing-live-indicator {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 9px;
  color: #91e6c6;
  border: 1px solid rgba(53, 215, 160, 0.2);
  border-radius: 999px;
  background: rgba(53, 215, 160, 0.08);
  font-size: 9px;
  font-weight: 850;
  text-transform: uppercase;
}

.marketing-live-indicator::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(53, 215, 160, 0.1);
}

.marketing-strip {
  display: grid;
  gap: 12px;
  padding: 0;
}

.marketing-banner {
  min-height: 152px;
  grid-template-columns: 106px minmax(0, 1fr);
  grid-template-rows: 1fr auto;
  gap: 12px;
  padding: 11px;
  border-color: #2a3c4c;
  border-radius: 15px;
  background: #0b151f;
  box-shadow: none;
}

.marketing-banner:hover,
.marketing-banner:focus-visible {
  transform: translateY(-2px);
  border-color: #496d8d;
}

.marketing-banner-media {
  min-height: 130px;
  border-radius: 11px;
}

.marketing-banner-copy {
  gap: 7px;
}

.marketing-banner-copy strong {
  font-size: 16px;
}

.marketing-banner-copy > span:not(.marketing-kicker) {
  color: #8fa0ad;
  font-size: 10px;
  line-height: 1.45;
}

.marketing-banner-footer span {
  color: var(--gold-2);
}

.marketing-banner-footer b {
  border-color: #344a5d;
  background: #111e29;
}

.marketing-section {
  padding: 34px 0 0;
}

.marketing-section-head {
  align-items: flex-end;
  margin-bottom: 16px;
}

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

.marketing-tile {
  gap: 10px;
  padding: 9px;
  border-color: #273a49;
  border-radius: 15px;
  background: linear-gradient(155deg, #101c27, #0a131c);
  box-shadow: none;
}

.marketing-tile:hover,
.marketing-tile:focus-visible {
  transform: translateY(-3px);
  border-color: #496d8d;
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.24);
}

.marketing-tile-art {
  border-radius: 11px;
}

.marketing-tile-art::after {
  background: linear-gradient(180deg, transparent 42%, rgba(0, 0, 0, 0.78));
}

.marketing-tile-body {
  gap: 5px;
  padding: 1px 3px 4px;
}

.marketing-tile-body strong {
  min-height: 32px;
  font-size: 13px;
}

.marketing-tile-body small {
  width: fit-content;
  margin-top: 3px;
  padding: 5px 7px;
  color: #c6d5df;
  border-radius: 7px;
  background: #172635;
  text-transform: none;
}

@media (max-width: 380px) {
  .marketing-page {
    padding-left: 14px;
    padding-right: 14px;
  }

  .marketing-intro h1 {
    font-size: 31px;
  }

  .marketing-hero {
    min-height: 390px;
    padding: 18px;
  }

  .marketing-banner {
    grid-template-columns: 92px minmax(0, 1fr);
  }

  .marketing-banner-media {
    min-height: 122px;
  }

  .marketing-grid {
    gap: 10px;
  }
}

@media (min-width: 768px) {
  .marketing-page {
    padding: 42px 28px 72px;
  }

  .marketing-masthead {
    grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.55fr);
    align-items: end;
    gap: 48px;
    padding-bottom: 34px;
  }

  .marketing-intro h1 {
    font-size: clamp(48px, 7vw, 68px);
  }

  .marketing-intro p {
    font-size: 15px;
  }

  .marketing-overview > div {
    min-height: 110px;
    padding: 19px;
  }

  .marketing-hero {
    min-height: 500px;
    padding: 34px;
  }

  .marketing-hero-copy strong {
    font-size: 56px;
  }

  .marketing-supporting {
    padding: 22px;
  }

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

  .marketing-tile {
    padding: 11px;
  }

  .marketing-tile-art {
    aspect-ratio: 16 / 10;
  }

  .marketing-tile-body strong {
    min-height: 0;
    font-size: 15px;
  }
}

@media (min-width: 1024px) {
  .marketing-page {
    display: block;
    padding: 48px 36px 84px;
  }

  .marketing-featured {
    grid-template-columns: minmax(0, 1.6fr) minmax(330px, 0.72fr);
    align-items: stretch;
    gap: 18px;
  }

  .marketing-hero {
    min-height: 560px;
  }

  .marketing-supporting {
    display: flex;
    flex-direction: column;
  }

  .marketing-strip {
    flex: 1;
    grid-template-rows: repeat(2, minmax(0, 1fr));
  }

  .marketing-banner {
    min-height: 0;
  }

  .marketing-section {
    padding-top: 48px;
  }

  .marketing-supporting-head h2,
  .marketing-section-head h2 {
    font-size: 24px;
  }
}
