:root {
  --bg: #070b12;
  --bg-2: #0b111b;
  --panel: #101824;
  --panel-2: #162131;
  --text: #f5f7fa;
  --muted: #8290a3;
  --line: #202c3d;
  --accent: #4f8cff;
  --accent-2: #2f6fe4;
  --gold: #f5bd3d;
  --gold-2: #ffd56b;
  --red: #f87171;
  --green: #34d399;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
  --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}
html,
body {
  margin: 0;
}
body {
  font-family:
    "Inter",
    system-ui,
    -apple-system,
    "Segoe UI",
    Roboto,
    sans-serif;
  color: var(--text);
  padding-bottom: 80px;
  background: var(--bg);
  max-width: 430px;
  margin: 0 auto;
  min-height: 100vh;
  min-height: 100dvh;
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
  box-shadow: 0 0 80px rgba(0, 0, 0, 0.6);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img {
  display: block;
}
a {
  color: inherit;
  text-decoration: none;
}
[hidden] {
  display: none !important;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.banner,
.hero-actions,
.search,
.chips,
.section,
.marketing-hero,
.marketing-strip {
  animation: rise 0.45s ease both;
}
.hero-actions {
  animation-delay: 0.04s;
}
.search {
  animation-delay: 0.07s;
}
.chips {
  animation-delay: 0.1s;
}
.section {
  animation-delay: 0.14s;
}

.statusbar {
  background: #000;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 7px 16px;
}
.statusbar .clock {
  background: #1a1a24;
  color: #999;
  font-size: 11px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  padding: 3px 12px;
  border-radius: 999px;
  letter-spacing: 0.3px;
}

.navbar {
  min-height: 56px;
  background: #080d14;
  border-bottom: 1px solid #1d2a3b;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.22);
  padding: 9px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  position: sticky;
  top: 0;
  z-index: 30;
}
.navbar .back {
  background: var(--panel-2);
  color: #fff;
  border: 1px solid var(--line);
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition:
    transform 0.12s,
    background 0.12s;
}
.navbar .back:active {
  transform: scale(0.9);
  background: #252538;
}
.navbar .logo {
  min-width: 0;
  width: 126px;
  height: 32px;
  display: flex;
  align-items: center;
  text-decoration: none;
  cursor: pointer;
}
.navbar .logo img {
  width: 100%;
  height: auto;
  max-height: 32px;
  object-fit: contain;
  object-position: left center;
}
.navbar .logo b {
  color: var(--gold);
}
.navbar .logo-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--green);
  margin-left: 2px;
  animation: pulse-dot 2s ease infinite;
}
@keyframes pulse-dot {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.35;
  }
}
.nav-actions {
  margin-left: auto;
  display: flex;
  gap: 7px;
  align-items: center;
}
.nav-account,
.nav-wallet {
  min-height: 34px;
  border-radius: 999px;
  transition:
    background 0.12s,
    border-color 0.12s,
    color 0.12s;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.nav-account:active,
.nav-wallet:active {
  background: #172233;
}
.nav-wallet {
  padding: 0 9px 0 7px;
  border: 1px solid #2a3b53;
  background: #101824;
  color: #f6d47a;
  font-size: 12px;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  gap: 6px;
  white-space: nowrap;
}
.nav-account {
  width: 34px;
  padding: 0;
  border: 1px solid #26364a;
  background: #101824;
  color: #dbe7f4;
}
.nav-account-login {
  width: auto;
  padding: 0 12px;
  background: #172233;
  border: 1px solid #2d4059;
  color: var(--text);
  font-size: 12px;
  font-weight: 900;
  color: #dbe7f4;
}
.navbar-game {
  position: sticky;
}
.navbar-game .back {
  position: absolute;
  left: 16px;
}
@media (max-width: 370px) {
  .navbar {
    padding-left: 10px;
    padding-right: 10px;
    gap: 7px;
  }
  .navbar .logo {
    width: 112px;
  }
  .nav-wallet {
    max-width: 92px;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .nav-account-login {
    padding: 0 9px;
  }
}

.banner {
  position: relative;
  margin: 12px 16px 0;
  border-radius: var(--radius);
  overflow: hidden;
  background:
    radial-gradient(circle at 86% 15%, rgba(245, 189, 61, 0.16), transparent 30%),
    linear-gradient(135deg, #162619 0%, #10231b 48%, #101824 100%);
  border: 1px solid rgba(52, 211, 153, 0.2);
  padding: 22px 18px;
  color: #fff;
  min-height: 96px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    280px 120px at 20% 0,
    rgba(52, 211, 153, 0.14),
    transparent 70%
  );
}
.banner .banner-tag {
  position: relative;
  display: inline-block;
  background: rgba(52, 211, 153, 0.14);
  color: #76e6b6;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 3px 10px;
  border-radius: 999px;
  margin-bottom: 8px;
  width: fit-content;
}
.banner .banner-title {
  position: relative;
  font-weight: 800;
  font-size: 18px;
  line-height: 1.2;
}
.banner .banner-sub {
  position: relative;
  font-size: 12px;
  opacity: 0.6;
  margin-top: 4px;
}
.banner .banner-icon {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gold);
  opacity: 0.18;
}

.hero-actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  padding: 12px 16px;
}
.hero-btn {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 8px 14px;
  cursor: pointer;
  text-align: center;
  transition:
    transform 0.15s,
    border-color 0.15s,
    box-shadow 0.15s;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  color: #a8b3c4;
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.025);
}
.hero-btn svg {
  transition: color 0.15s;
}
.hero-btn:active {
  transform: scale(0.96);
}
.hero-btn:hover,
.hero-btn:focus-visible {
  border-color: rgba(129, 140, 248, 0.3);
}
.hero-btn:hover svg,
.hero-btn:focus-visible svg {
  color: var(--accent);
}
.hero-btn .hb-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2px;
}
.hero-btn.accent {
  border-color: var(--line);
  background: var(--panel);
  color: #a8b3c4;
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.025);
}
.hero-btn.accent:hover,
.hero-btn.accent:focus-visible {
  border-color: rgba(79, 140, 255, 0.4);
  box-shadow: 0 6px 20px rgba(21, 32, 49, 0.5);
}
.hero-btn.accent .hb-label {
  color: inherit;
}
.hero-btn:nth-child(1) svg {
  color: #35d39a;
}
.hero-btn:nth-child(2) svg {
  color: #d978e8;
}
.hero-btn:nth-child(3) svg {
  color: #62a0ff;
}

.search {
  margin: 10px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: #0d1420;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  color: var(--muted);
  transition: border-color 0.15s;
}
.search:focus-within {
  border-color: var(--accent);
}
.search input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text);
  font-size: 14px;
}
.search input::placeholder {
  color: var(--muted);
}

.chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 0 16px 6px;
  scrollbar-width: none;
}
.chips::-webkit-scrollbar {
  display: none;
}
.chip-btn {
  white-space: nowrap;
  background: #111824;
  color: #a8b3c4;
  border: 1px solid #26364a;
  font-size: 12px;
  font-weight: 600;
  padding: 8px 15px;
  border-radius: 999px;
  cursor: pointer;
  transition:
    color 0.15s,
    background 0.15s,
    border-color 0.15s;
  display: flex;
  align-items: center;
  gap: 5px;
}
.chip-btn:hover {
  color: var(--text);
  background: #162131;
}
.chip-btn.active {
  color: #06110d;
  background: #45dca6;
  border-color: #65e0b3;
  box-shadow: none;
}
.chip-btn.active svg {
  color: #06110d;
}

.section {
  padding: 14px 16px;
}
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.section-head h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 7px;
}
.section-head h3 svg {
  width: 18px;
  height: 18px;
}
.sec-title svg {
  padding: 3px;
  border-radius: 6px;
  box-sizing: content-box;
}
.sec-trending svg {
  color: var(--gold);
  background: rgba(245, 189, 61, 0.12);
}
.sec-hyper svg {
  color: #72a7ff;
  background: rgba(79, 140, 255, 0.13);
}
.sec-crash svg {
  color: #ff6b7a;
  background: rgba(255, 82, 105, 0.12);
}
.see-all {
  appearance: none;
  border: 1px solid var(--line);
  background: #0f1723;
  color: #a8b3c4;
  min-height: 30px;
  padding: 5px 11px;
  border-radius: 999px;
  font: inherit;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}
.see-all:hover,
.see-all:focus-visible {
  color: #fff;
  border-color: #3a4b62;
  background: #162131;
}
.section-head .all {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.04);
  padding: 5px 12px;
  border-radius: 999px;
  cursor: pointer;
  transition:
    background 0.12s,
    color 0.12s;
}
.section-head .all:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text);
}

.tile-row {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
}
.tile-row::-webkit-scrollbar {
  display: none;
}
.tile-row .tile {
  width: 105px;
  flex: 0 0 auto;
}
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.tile {
  cursor: pointer;
  transition: transform 0.16s;
}
.tile:active {
  transform: scale(0.94);
}
.tile .art {
  aspect-ratio: 1/1;
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  background: var(--panel-2);
  box-shadow: var(--shadow-sm);
}
.tile .art .overlay {
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
  background: linear-gradient(
    180deg,
    transparent 55%,
    rgba(0, 0, 0, 0.65) 100%
  );
  z-index: 1;
  pointer-events: none;
}
.tile .art::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03);
  pointer-events: none;
  z-index: 2;
}
.tile .art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}
.tile:hover .art img {
  transform: scale(1.06);
}
.tile .badge {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 3;
  background: var(--accent-2);
  color: #fff;
  border-radius: 5px;
  padding: 2px 7px;
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}
.tile .label {
  font-size: 12px;
  margin-top: 7px;
  line-height: 1.3;
  font-weight: 600;
}
.tile .plays {
  font-size: 10px;
  color: var(--muted);
  margin-top: 2px;
  display: flex;
  align-items: center;
  gap: 3px;
}
.tile-locked .art img {
  filter: saturate(0.85) brightness(0.82);
}
.tile-locked:hover .art img {
  transform: none;
}

body[data-page="marketing"] {
  padding-bottom: 30px;
  background: #080d14;
}
.marketing-page {
  padding: 0 0 18px;
}
.marketing-intro {
  padding: 18px 16px 10px;
}
.marketing-intro span {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 5px 9px;
  color: #9df0cc;
  background: rgba(52, 211, 153, 0.09);
  border: 1px solid rgba(52, 211, 153, 0.18);
  border-radius: 999px;
  font-size: 10px;
  font-weight: 850;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}
.marketing-intro h1 {
  max-width: 360px;
  margin: 12px 0 0;
  color: #fff;
  font-size: 28px;
  line-height: 1.08;
  font-weight: 900;
  letter-spacing: 0;
}
.marketing-intro p {
  max-width: 345px;
  margin: 8px 0 0;
  color: #95a3b6;
  font-size: 13px;
  line-height: 1.45;
  font-weight: 650;
}
.marketing-hero {
  position: relative;
  min-height: 286px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
  margin: 12px 16px 0;
  padding: 18px;
  overflow: hidden;
  isolation: isolate;
  border: 1px solid rgba(79, 140, 255, 0.34);
  border-radius: var(--radius);
  background: #101824;
  box-shadow:
    0 18px 46px rgba(0, 0, 0, 0.32),
    inset 0 1px rgba(255, 255, 255, 0.04);
}
.marketing-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image:
    linear-gradient(180deg, rgba(5, 8, 13, 0.08) 0%, rgba(5, 8, 13, 0.92) 70%),
    var(--campaign-image);
  background-position: center;
  background-size: cover;
}
.marketing-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(120deg, rgba(79, 140, 255, 0.28), transparent 50%);
}
.marketing-hero-copy {
  width: min(100%, 305px);
  display: grid;
  gap: 9px;
  margin-top: auto;
}
.marketing-kicker {
  width: fit-content;
  max-width: 100%;
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  padding: 5px 9px;
  border: 1px solid rgba(52, 211, 153, 0.28);
  border-radius: 999px;
  color: #9df0cc;
  background: rgba(7, 11, 18, 0.68);
  font-size: 10px;
  font-weight: 850;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}
.marketing-hero-copy strong {
  color: #fff;
  font-size: 31px;
  line-height: 1.03;
  font-weight: 900;
  letter-spacing: 0;
}
.marketing-hero-copy > span:not(.marketing-kicker):not(.marketing-hero-action) {
  color: #cbd5e2;
  font-size: 13px;
  line-height: 1.35;
  font-weight: 650;
}
.marketing-hero-action {
  width: fit-content;
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  margin-top: 4px;
  padding: 9px 13px;
  color: #06110d;
  background: #45dca6;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
}
.marketing-hero-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-sm);
  background: rgba(7, 11, 18, 0.62);
}
.marketing-hero-meta span {
  min-width: 0;
  display: grid;
  gap: 4px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.035);
}
.marketing-hero-meta small {
  color: #8f9caf;
  font-size: 9px;
  font-weight: 850;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}
.marketing-hero-meta b {
  color: #fff;
  font-size: 16px;
  line-height: 1;
  font-weight: 900;
}
.marketing-strip {
  display: grid;
  gap: 10px;
  padding: 12px 16px 0;
}
.marketing-banner {
  min-height: 132px;
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  grid-template-rows: 1fr auto;
  gap: 11px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #101824;
  box-shadow: var(--shadow-sm);
  transition:
    transform 0.12s,
    border-color 0.15s;
}
.marketing-banner:hover,
.marketing-banner:focus-visible {
  border-color: rgba(79, 140, 255, 0.42);
}
.marketing-banner:active {
  transform: scale(0.985);
}
.marketing-banner-accent {
  border-color: rgba(245, 189, 61, 0.3);
}
.marketing-banner-media {
  grid-row: 1 / span 2;
  position: relative;
  min-height: 112px;
  overflow: hidden;
  border-radius: 7px;
  background: var(--panel-2);
}
.marketing-banner-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.marketing-banner-media::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: inherit;
}
.marketing-banner-copy {
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 6px;
}
.marketing-banner-copy strong {
  color: #fff;
  font-size: 17px;
  line-height: 1.14;
  font-weight: 900;
}
.marketing-banner-copy > span:not(.marketing-kicker) {
  color: #95a3b6;
  font-size: 11px;
  line-height: 1.35;
  font-weight: 650;
}
.marketing-banner-footer {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 9px;
}
.marketing-banner-footer span {
  color: var(--gold-2);
  font-size: 15px;
  font-weight: 900;
  line-height: 1;
}
.marketing-banner-footer b {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  padding: 7px 9px;
  color: #dbe7f4;
  border: 1px solid #2b3a4f;
  border-radius: var(--radius-sm);
  background: #0c131d;
  font-size: 10px;
  font-weight: 850;
  line-height: 1;
}
.marketing-section {
  padding-top: 16px;
}
.marketing-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.marketing-tile {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #0d1420;
  box-shadow: var(--shadow-sm);
  transition:
    transform 0.12s,
    border-color 0.15s;
}
.marketing-tile:hover,
.marketing-tile:focus-visible {
  border-color: rgba(79, 140, 255, 0.38);
}
.marketing-tile:active {
  transform: scale(0.97);
}
.marketing-tile-art {
  position: relative;
  aspect-ratio: 1/1;
  overflow: hidden;
  border-radius: 7px;
  background: var(--panel-2);
}
.marketing-tile-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.marketing-tile-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(0, 0, 0, 0.76));
}
.marketing-tile-art span {
  position: absolute;
  right: 7px;
  bottom: 7px;
  z-index: 1;
  max-width: calc(100% - 14px);
  padding: 4px 7px;
  border-radius: 999px;
  color: #fff;
  background: rgba(7, 11, 18, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 9px;
  font-weight: 850;
  line-height: 1;
  text-transform: uppercase;
}
.marketing-tile-body {
  min-width: 0;
  display: grid;
  gap: 4px;
  padding: 0 1px 2px;
}
.marketing-tile-body strong {
  min-height: 30px;
  color: #fff;
  font-size: 13px;
  font-weight: 850;
  line-height: 1.22;
}
.marketing-tile-body span {
  color: var(--gold-2);
  font-size: 11px;
  font-weight: 800;
}
.marketing-tile-body small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 750;
  text-transform: capitalize;
}
@media (max-width: 360px) {
  .marketing-intro h1 {
    font-size: 25px;
  }
  .marketing-hero {
    min-height: 266px;
    padding: 16px;
  }
  .marketing-hero-copy strong {
    font-size: 27px;
  }
  .marketing-banner {
    grid-template-columns: 86px minmax(0, 1fr);
  }
  .marketing-grid {
    gap: 10px;
  }
  .marketing-tile {
    padding: 8px;
  }
}

.providers {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.provider {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  min-height: 90px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 700;
  font-size: 13px;
  text-align: center;
  padding: 16px 12px;
  cursor: pointer;
  transition:
    transform 0.12s,
    border-color 0.12s;
}
.provider .pv-icon {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  background: rgba(129, 140, 248, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
}
.provider .pv-icon svg {
  width: 22px;
  height: 22px;
  color: var(--accent);
}
.provider:hover {
  border-color: rgba(129, 140, 248, 0.3);
}
.provider:active {
  transform: scale(0.96);
}

.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  background: rgba(8, 8, 13, 0.95);
  backdrop-filter: blur(12px);
  display: flex;
  justify-content: space-around;
  padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  z-index: 20;
}
.bottom-nav button {
  background: none;
  border: none;
  color: var(--muted);
  font-size: 10px;
  font-weight: 600;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  transition: color 0.15s;
  padding: 4px 6px;
  position: relative;
  white-space: nowrap;
}
.bottom-nav button:active {
  transform: scale(0.94);
}
.bottom-nav button.active {
  color: var(--accent);
}
.bottom-nav button.active::after {
  content: "";
  position: absolute;
  top: -7px;
  width: 18px;
  height: 2px;
  background: var(--accent);
  border-radius: 0 0 3px 3px;
}
.bottom-nav .ic {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  line-height: 0;
  border: 1px solid transparent;
  border-radius: 50%;
  background: #111824;
  transition:
    background 0.15s,
    border-color 0.15s;
}
.bottom-nav .ic svg {
  width: 18px;
  height: 18px;
}
.bottom-nav button.active .ic {
  border-color: rgba(79, 140, 255, 0.24);
  background: rgba(79, 140, 255, 0.12);
}

body[data-page="game"] {
  padding-bottom: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--bg);
}
.game-stage {
  position: relative;
  flex: 1 1 auto;
  display: flex;
  min-height: 0;
  background: var(--bg);
}
.game-stage iframe {
  flex: 1 1 auto;
  width: 100%;
  border: 0;
  background: var(--bg);
  opacity: 0;
  transition: opacity 0.35s ease;
}
.game-stage.loaded iframe {
  opacity: 1;
}
.game-stage.loaded .game-loader {
  opacity: 0;
  pointer-events: none;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 100px;
  transform: translate(-50%, 12px);
  background: rgba(20, 20, 30, 0.96);
  border: 1px solid var(--line);
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  padding: 11px 20px;
  border-radius: 999px;
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.2s,
    transform 0.2s;
  z-index: 50;
}
.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

body[data-page="login"],
body[data-page="signup"] {
  max-width: none;
  border: 0;
  box-shadow: none;
  padding-bottom: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
  background:
    radial-gradient(circle at 50% -10%, rgba(52, 211, 153, 0.18), transparent 38%),
    radial-gradient(circle at 100% 100%, rgba(245, 189, 61, 0.1), transparent 34%),
    var(--bg);
}

.auth-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 20px;
  background: rgba(8, 8, 13, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 20;
}
.auth-back {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  background: var(--panel-2);
  border: 1px solid var(--line);
  color: var(--text);
  font-size: 22px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition:
    transform 0.12s,
    background 0.12s;
  flex-shrink: 0;
}
.auth-back:active {
  transform: scale(0.9);
  background: #252538;
}
.auth-logo {
  font-weight: 800;
  font-size: 18px;
  font-style: italic;
  letter-spacing: 0.2px;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 5px;
}
.auth-logo b {
  color: var(--gold);
}

.auth-page {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 22px 20px 28px;
  align-items: center;
  justify-content: center;
}
.auth-card {
  position: relative;
  width: 100%;
  max-width: 380px;
  overflow: hidden;
  isolation: isolate;
  background: linear-gradient(155deg, rgba(22, 33, 49, 0.98), rgba(12, 19, 30, 0.98));
  border: 1px solid #26364a;
  border-radius: 20px;
  padding: 28px;
  box-shadow:
    0 24px 70px rgba(0, 0, 0, 0.5),
    inset 0 1px rgba(255, 255, 255, 0.04);
}
.auth-card::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: 180px;
  height: 180px;
  top: -100px;
  right: -70px;
  border-radius: 50%;
  background: rgba(52, 211, 153, 0.12);
  filter: blur(8px);
}
.auth-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  line-height: 1;
  color: #92a0b4;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid #2a394c;
  text-decoration: none;
  border-radius: 50%;
  transition:
    color 0.15s ease,
    background 0.15s ease;
}
.auth-close:hover {
  color: var(--text);
  background: #1b293a;
  border-color: #3a4b62;
}
.auth-card-wide {
  max-width: 540px;
}
.auth-brand {
  width: fit-content;
  display: flex;
  align-items: center;
  gap: 5px;
  color: #fff;
  font-size: 17px;
  font-weight: 900;
  font-style: italic;
  letter-spacing: 0.2px;
}
.auth-brand b {
  color: var(--gold);
}
.auth-brand .logo-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--green);
  margin-left: 2px;
}
.auth-heading {
  margin-top: 28px;
}
.auth-kicker {
  display: block;
  margin-bottom: 7px;
  color: #56dbaa;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.3px;
}
.auth-card h2 {
  margin: 0;
  font-size: 27px;
  line-height: 1.15;
  font-weight: 850;
  letter-spacing: -0.5px;
}
.auth-heading p {
  margin: 7px 0 0;
  color: #8f9caf;
  font-size: 13px;
  line-height: 1.45;
}
.auth-card form {
  margin: 22px 0 0;
}
.field-group {
  margin-top: 14px;
}
.auth-card-wide .field-group {
  margin-top: 12px;
}
.auth-card form > .field-group:first-child,
.auth-card form > .row:first-child {
  margin-top: 0;
}
.auth-card label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: #a8b3c4;
  margin: 0 0 7px;
  letter-spacing: 0.2px;
}
.auth-card label:first-of-type {
  margin-top: 0;
}
.auth-card input,
.auth-card select {
  width: 100%;
  background: rgba(7, 11, 18, 0.72);
  border: 1px solid #28374a;
  border-radius: 10px;
  padding: 14px 14px;
  color: var(--text);
  font-size: 14px;
  outline: none;
  min-height: 48px;
  transition:
    border-color 0.2s,
    background 0.2s,
    box-shadow 0.2s;
  font-family: inherit;
  color-scheme: dark;
}
.auth-card select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236b6b80' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 38px;
  cursor: pointer;
}
.auth-card input[readonly] {
  opacity: 0.6;
  cursor: default;
  font-family: "SF Mono", "Fira Code", "Cascadia Code", monospace;
  font-size: 12px;
  letter-spacing: 0.1px;
}
.auth-card input:focus,
.auth-card select:focus {
  border-color: #35d39a;
  background: #0b121d;
  box-shadow: 0 0 0 3px rgba(52, 211, 153, 0.1);
}
.auth-card .row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 14px;
}
.auth-card-wide .row {
  margin-top: 12px;
}

.auth-btn {
  width: 100%;
  margin-top: 24px;
  background: linear-gradient(135deg, #1fbd7b, #45dca6);
  color: #06110d;
  border: none;
  border-radius: 10px;
  padding: 16px;
  font-size: 15px;
  font-weight: 850;
  cursor: pointer;
  transition:
    transform 0.12s,
    opacity 0.2s,
    box-shadow 0.2s;
  box-shadow: 0 8px 24px rgba(31, 189, 123, 0.2);
}
.auth-btn:hover,
.auth-btn:focus-visible {
  box-shadow: 0 10px 30px rgba(31, 189, 123, 0.32);
}
.auth-btn:active {
  transform: scale(0.97);
}
.auth-btn:disabled {
  opacity: 0.45;
  pointer-events: none;
}
.auth-switch {
  margin-top: 24px;
  text-align: center;
  font-size: 13px;
  color: var(--muted);
}
.auth-switch a {
  color: var(--gold);
  font-weight: 800;
}
.auth-error {
  display: none;
  background: rgba(248, 113, 113, 0.08);
  border: 1px solid rgba(248, 113, 113, 0.25);
  color: var(--red);
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 500;
  margin-top: 16px;
}
.auth-error.show {
  display: block;
}
@media (max-width: 380px) {
  .auth-page {
    padding: 18px 14px 22px;
  }
  .auth-card {
    padding: 26px 20px;
  }
  .auth-card-wide {
    padding: 18px 16px;
  }
  .auth-card form {
    margin-top: 14px;
  }
  .auth-card .row {
    grid-template-columns: 1fr;
    gap: 0;
    margin-top: 8px;
  }
  .auth-card-wide .field-group {
    margin-top: 8px;
  }
  .auth-card label {
    margin-bottom: 5px;
  }
  .auth-card input,
  .auth-card select {
    min-height: 40px;
    padding: 9px 12px;
  }
  .auth-btn {
    margin-top: 16px;
    padding: 12px;
  }
  .auth-switch {
    margin-top: 14px;
  }
  .auth-error {
    min-height: 36px;
    margin-top: 12px;
    padding: 8px 12px;
  }
}
@media (max-width: 560px) {
  .auth-card-wide {
    padding: 22px 18px;
  }
  .auth-card-wide .auth-heading {
    margin-top: 20px;
  }
  .auth-card-wide form {
    margin-top: 16px;
  }
  .auth-card-wide .row {
    gap: 8px;
  }
  .auth-card-wide input,
  .auth-card-wide select {
    min-height: 44px;
    padding: 11px 10px;
  }
}
@media (max-width: 380px) {
  .auth-card-wide {
    padding: 18px 16px;
  }
  .auth-card-wide input,
  .auth-card-wide select {
    min-height: 40px;
    padding: 9px 12px;
  }
}

body[data-page="profile"] {
  background: var(--bg);
}
body[data-page="wallet"] {
  background: var(--bg);
}
.profile-page {
  padding: 18px 16px 100px;
}
.wallet-page {
  padding: 18px 16px 100px;
}
.profile-hero {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 18px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.profile-avatar {
  width: 58px;
  height: 58px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--gold), var(--accent));
  color: #fff;
  font-weight: 900;
  font-size: 20px;
}
.profile-kicker {
  margin-bottom: 4px;
  color: var(--gold-2);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}
.profile-hero h1 {
  margin: 0;
  color: var(--text);
  font-size: 22px;
  line-height: 1.1;
  letter-spacing: 0;
}
.profile-hero p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
  overflow-wrap: anywhere;
}
.profile-panel {
  margin-top: 14px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.profile-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 15px 16px;
  border-bottom: 1px solid var(--line);
}
.profile-row:last-child {
  border-bottom: 0;
}
.profile-row span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}
.profile-row strong {
  color: var(--text);
  font-size: 13px;
  text-align: right;
}
.profile-action-panel {
  display: grid;
  gap: 10px;
  margin-top: 14px;
  padding: 16px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.profile-action-panel label {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}
.profile-control-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}
.profile-control-row select {
  width: 100%;
  min-height: 44px;
  color: var(--text);
  background: #0d1420;
  border: 1px solid #28374a;
  border-radius: var(--radius-sm);
  padding: 10px 38px 10px 12px;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  color-scheme: dark;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238290a3' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
}
.profile-control-row select:focus {
  outline: none;
  border-color: #35d39a;
  box-shadow: 0 0 0 3px rgba(52, 211, 153, 0.1);
}
.profile-inline-btn {
  min-height: 44px;
  padding: 0 14px;
  color: #06110d;
  background: #45dca6;
  border: 0;
  border-radius: var(--radius-sm);
  font: inherit;
  font-size: 13px;
  font-weight: 850;
  cursor: pointer;
}
.profile-inline-btn:disabled {
  opacity: 0.45;
  pointer-events: none;
}
.profile-logout {
  margin-top: 18px;
  color: #ff9a9a;
  background: rgba(248, 113, 113, 0.08);
  border: 1px solid rgba(248, 113, 113, 0.28);
  box-shadow: none;
}
.profile-logout:hover,
.profile-logout:focus-visible {
  color: #ffc0c0;
  background: rgba(248, 113, 113, 0.13);
  border-color: rgba(248, 113, 113, 0.4);
  box-shadow: none;
}
.profile-error {
  display: none;
}
.wallet-balance-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 18px;
  box-shadow: var(--shadow-sm);
}
.wallet-kicker {
  color: var(--gold-2);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}
.wallet-balance-card h1 {
  margin: 10px 0 4px;
  color: var(--text);
  font-size: 34px;
  line-height: 1;
  letter-spacing: 0;
  font-variant-numeric: tabular-nums;
}
.wallet-balance-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}
.transaction-panel {
  margin-top: 14px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.transaction-panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 15px 16px;
  border-bottom: 1px solid var(--line);
}
.transaction-panel-head div {
  display: grid;
  gap: 3px;
}
.transaction-panel-head span {
  color: var(--gold-2);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}
.transaction-panel-head strong {
  color: var(--text);
  font-size: 15px;
  line-height: 1.1;
}
.transaction-panel-head small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
  white-space: nowrap;
}
.transaction-list {
  display: grid;
}
.transaction-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  min-height: 62px;
  padding: 13px 16px;
  border-bottom: 1px solid var(--line);
}
.transaction-item:last-child {
  border-bottom: 0;
}
.transaction-main {
  min-width: 0;
  display: grid;
  gap: 4px;
}
.transaction-main strong {
  color: var(--text);
  font-size: 13px;
  font-weight: 850;
}
.transaction-main span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 650;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.transaction-amount {
  font-size: 13px;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  text-align: right;
  white-space: nowrap;
}
.transaction-credit .transaction-amount {
  color: var(--green);
}
.transaction-debit .transaction-amount {
  color: var(--red);
}
.transaction-empty {
  padding: 18px 16px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  text-align: center;
}
.wallet-error {
  display: none;
}

body[data-page="hyper"] {
  max-width: none;
  padding: 0;
  border: 0;
  box-shadow: none;
  background: #101010;
}
.hyper-loading-page {
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  background: #101010;
}
.hyper-loading-shell {
  display: grid;
  gap: 18px;
  justify-items: center;
  color: #fff;
}
.hyper-loading-spinner {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.18);
  border-top-color: #fff;
  animation: hyper-spin 0.8s linear infinite;
}
.hyper-loading-shell p {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
  min-height: 18px;
}
@keyframes hyper-spin {
  to {
    transform: rotate(360deg);
  }
}

body[data-page="topup"] {
  max-width: none;
  border: 0;
  box-shadow: none;
  padding-bottom: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--bg);
}
.topup-page {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}
.topup-method-screen {
  position: relative;
  width: 100%;
  max-width: 430px;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: space-between;
  padding: 34px 18px calc(18px + env(safe-area-inset-bottom));
  background: linear-gradient(180deg, #070b12 0%, #0b111b 100%);
}
.topup-method-content {
  width: 100%;
}
.topup-method-brand {
  margin-bottom: 58px;
  font-size: 16px;
}
.topup-method-heading {
  max-width: 360px;
}
.topup-method-eyebrow {
  width: fit-content;
  margin-bottom: 12px;
  padding: 6px 9px;
  color: #74dfb7;
  background: rgba(52, 211, 153, 0.09);
  border: 1px solid rgba(52, 211, 153, 0.16);
  border-radius: 999px;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}
.topup-method-title {
  margin: 0;
  color: var(--text);
  font-size: 24px;
  line-height: 1.18;
  font-weight: 900;
  letter-spacing: 0;
}
.topup-method-list {
  display: grid;
  gap: 14px;
  margin-top: 34px;
}
.topup-method-option {
  position: relative;
  width: 100%;
  min-height: 78px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  color: var(--text);
  background: rgba(16, 24, 36, 0.92);
  border: 1px solid rgba(32, 44, 61, 0.95);
  border-radius: 14px;
  font: inherit;
  letter-spacing: 0;
  text-align: left;
  cursor: pointer;
  box-shadow:
    0 10px 26px rgba(0, 0, 0, 0.18),
    inset 0 1px rgba(255, 255, 255, 0.03);
  transition:
    border-color 0.18s,
    background 0.18s,
    box-shadow 0.18s,
    transform 0.12s;
}
.topup-method-option:active:not(:disabled) {
  transform: scale(0.98);
}
.topup-method-option:focus-visible {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(52, 211, 153, 0.14);
}
.topup-method-option-selected {
  border-color: rgba(52, 211, 153, 0.72);
  background:
    radial-gradient(circle at 18px 18px, rgba(245, 189, 61, 0.16), transparent 38px),
    linear-gradient(135deg, rgba(52, 211, 153, 0.18), rgba(16, 24, 36, 0.96));
  box-shadow:
    0 16px 36px rgba(0, 0, 0, 0.28),
    0 0 0 1px rgba(52, 211, 153, 0.08),
    inset 0 1px rgba(255, 255, 255, 0.06);
}
.topup-method-option:disabled {
  color: #7d899a;
  background: rgba(16, 24, 36, 0.58);
  border-color: rgba(32, 44, 61, 0.62);
  cursor: not-allowed;
  opacity: 1;
  box-shadow: none;
}
.topup-method-icon {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: #26364a;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03);
}
.topup-method-icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.topup-method-option:disabled .topup-method-icon {
  color: #8d99aa;
  background: rgba(38, 54, 74, 0.56);
}
.topup-method-option-selected .topup-method-icon {
  color: #eafff6;
  background: linear-gradient(135deg, rgba(52, 211, 153, 0.24), rgba(52, 211, 153, 0.1));
  border: 1px solid rgba(52, 211, 153, 0.45);
  box-shadow:
    0 10px 24px rgba(52, 211, 153, 0.16),
    inset 0 1px rgba(255, 255, 255, 0.12);
}
.topup-method-copy {
  min-width: 0;
  display: grid;
  gap: 5px;
  flex: 1;
}
.topup-method-name {
  color: var(--text);
  font-size: 15px;
  font-weight: 900;
  line-height: 1.22;
}
.topup-method-meta {
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
}
.topup-method-option-selected .topup-method-meta {
  color: #9df0cc;
}
.topup-method-badge {
  flex: 0 0 auto;
  align-self: flex-start;
  padding: 5px 8px;
  color: #06110d;
  background: var(--gold);
  border-radius: 999px;
  font-size: 9px;
  font-weight: 900;
  line-height: 1;
}
.topup-method-footer {
  position: sticky;
  bottom: 0;
  width: 100%;
  padding-top: 28px;
  background: linear-gradient(180deg, rgba(11, 17, 27, 0), #0b111b 28%);
}
.topup-method-footer .auth-btn {
  min-height: 54px;
  margin-top: 0;
  border-radius: 14px;
  font-size: 15px;
  box-shadow:
    0 14px 34px rgba(31, 189, 123, 0.22),
    inset 0 1px rgba(255, 255, 255, 0.18);
}
.topup-card {
  position: relative;
  overflow: hidden;
  width: 100%;
  max-width: 380px;
  margin: auto 20px;
  background: linear-gradient(155deg, rgba(22, 33, 49, 0.98), rgba(12, 19, 30, 0.98));
  border: 1px solid #26364a;
  border-radius: 20px;
  padding: 22px 24px 20px;
  box-shadow:
    0 24px 70px rgba(0, 0, 0, 0.5),
    inset 0 1px rgba(255, 255, 255, 0.04);
  text-align: center;
}
.topup-brand-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.topup-brand {
  display: flex;
  align-items: center;
  gap: 4px;
  color: #fff;
  font-size: 16px;
  font-weight: 900;
  font-style: italic;
}
.topup-brand b {
  color: var(--gold);
}
.topup-brand span {
  width: 5px;
  height: 5px;
  margin-left: 2px;
  border-radius: 50%;
  background: var(--green);
}
.topup-secure {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 5px 8px;
  color: #74dfb7;
  border: 1px solid rgba(52, 211, 153, 0.18);
  border-radius: 999px;
  background: rgba(52, 211, 153, 0.08);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}
.topup-secure svg {
  width: 12px;
  height: 12px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}
.topup-mark {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  margin: 24px auto 12px;
  color: #55dbaa;
  border: 1px solid rgba(52, 211, 153, 0.18);
  border-radius: 16px;
  background: rgba(52, 211, 153, 0.1);
  box-shadow: 0 10px 28px rgba(20, 160, 107, 0.12);
}
.topup-mark svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.topup-kicker {
  color: #55dbaa;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0;
}
.topup-amount-label {
  margin-top: 14px;
  color: #8996a9;
  font-size: 11px;
  font-weight: 650;
}
.topup-amount {
  margin: 3px 0 7px;
  font-size: 38px;
  font-weight: 900;
  letter-spacing: 0;
  font-variant-numeric: tabular-nums;
}
.topup-note {
  max-width: 260px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 13px;
}
.topup-balance {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 20px;
  padding: 13px 14px;
  background: rgba(7, 11, 18, 0.58);
  border: 1px solid #28374a;
  border-radius: 11px;
  text-align: left;
}
.topup-balance span {
  display: block;
  color: #b4becb;
  font-size: 12px;
  font-weight: 750;
}
.topup-balance small {
  display: block;
  margin-top: 2px;
  color: #65748a;
  font-size: 9px;
  font-weight: 650;
}
.topup-balance strong {
  color: var(--gold-2);
  font-size: 16px;
  font-variant-numeric: tabular-nums;
}
.topup-card .auth-btn {
  margin-top: 18px;
}
.topup-cancel {
  width: 100%;
  margin-top: 10px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid #223147;
  border-radius: 10px;
  color: #9aa6b7;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  padding: 11px;
}
.topup-cancel:active {
  color: var(--text);
}
.topup-error {
  text-align: left;
}
.topup-footnote {
  margin-top: 14px;
  color: #59677a;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}
@media (max-width: 380px) {
  .topup-method-screen {
    padding: 28px 16px calc(16px + env(safe-area-inset-bottom));
  }
  .topup-method-brand {
    margin-bottom: 46px;
  }
  .topup-method-title {
    font-size: 22px;
  }
  .topup-method-list {
    gap: 12px;
    margin-top: 28px;
  }
  .topup-method-option {
    min-height: 74px;
    gap: 12px;
    padding: 14px;
  }
  .topup-method-icon {
    width: 36px;
    height: 36px;
  }
  .topup-method-name {
    font-size: 14px;
  }
  .topup-method-badge {
    display: none;
  }
}
.faucet-panel {
  margin-top: 14px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
}
.faucet-title {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 12px;
}
.faucet-chips {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.faucet-chip {
  background: var(--panel-2);
  border: 1px solid var(--line);
  color: var(--text);
  border-radius: var(--radius-sm);
  padding: 14px 8px;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  font-variant-numeric: tabular-nums;
  transition:
    transform 0.12s,
    background 0.12s,
    border-color 0.12s;
}
.faucet-chip:hover,
.faucet-chip:focus-visible {
  border-color: var(--accent-2);
}
.faucet-chip:active {
  transform: scale(0.96);
  background: #252538;
}
.faucet-chip:disabled {
  opacity: 0.45;
  pointer-events: none;
}
.faucet-chip.selected {
  border-color: var(--accent-2);
  background: rgba(99, 102, 241, 0.12);
  box-shadow: 0 0 0 1px var(--accent-2) inset;
}
.faucet-screen {
  animation: rise 0.4s ease both;
}
.faucet-custom {
  display: flex;
  align-items: center;
  margin-top: 10px;
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0 14px;
  transition:
    border-color 0.12s,
    box-shadow 0.12s;
}
.faucet-custom:focus-within {
  border-color: var(--accent-2);
  box-shadow: 0 0 0 1px var(--accent-2) inset;
}
.faucet-custom-prefix {
  color: var(--muted);
  font-size: 15px;
  font-weight: 800;
}
.faucet-custom input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  color: var(--text);
  font-size: 15px;
  font-weight: 700;
  padding: 13px 8px;
  font-variant-numeric: tabular-nums;
}
.faucet-custom input::placeholder {
  color: var(--muted);
  font-weight: 600;
}
.faucet-panel .auth-btn {
  margin-top: 14px;
}
.faucet-status {
  text-align: center;
  padding: 8px 0 4px;
}
.faucet-status-title {
  font-size: 17px;
  font-weight: 800;
  margin-top: 4px;
}
.faucet-status-note {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
}
.faucet-spinner {
  width: 46px;
  height: 46px;
  margin: 6px auto 14px;
  border-radius: 50%;
  border: 4px solid var(--line);
  border-top-color: var(--accent);
  animation: hyper-spin 0.8s linear infinite;
}
.faucet-success-icon {
  width: 104px;
  height: 104px;
  margin: 0 auto 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: pop 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}
.faucet-success-amount {
  margin: 8px 0 4px;
  font-size: 28px;
  font-weight: 900;
  letter-spacing: -0.5px;
  font-variant-numeric: tabular-nums;
  color: var(--green);
}
@keyframes pop {
  from {
    opacity: 0;
    transform: scale(0.6);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}
