:root {
  --bg: #040b14;
  --panel: rgba(6, 22, 38, 0.72);
  --panel-2: rgba(8, 31, 54, 0.84);
  --line: rgba(0, 212, 255, 0.24);
  --text: #e0f7ff;
  --muted: rgba(224, 247, 255, 0.68);
  --primary: #00d4ff;
  --primary-2: #00a8ff;
  --accent: #e0f7ff;
  --danger: #ff5d8f;
  --glass: rgba(5, 20, 35, 0.68);
  --glow: 0 0 18px rgba(0, 212, 255, 0.38), 0 0 42px rgba(0, 168, 255, 0.22);
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 18% 8%, rgba(0, 212, 255, 0.18), transparent 28vw),
    radial-gradient(circle at 88% 22%, rgba(0, 168, 255, 0.14), transparent 34vw),
    linear-gradient(180deg, #061326 0%, var(--bg) 42%, #02060d 100%);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body::before,
body::after {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
}

body::before {
  opacity: 0.74;
  background-image:
    radial-gradient(circle, rgba(224, 247, 255, 0.8) 0 1px, transparent 1.7px),
    radial-gradient(circle, rgba(0, 212, 255, 0.48) 0 1px, transparent 1.9px);
  background-position: 0 0, 36px 52px;
  background-size: 130px 130px, 178px 178px;
  animation: particle-drift 18s linear infinite;
}

body::after {
  opacity: 0.55;
  background:
    linear-gradient(115deg, transparent 0 35%, rgba(0, 212, 255, 0.12) 42%, transparent 49% 100%),
    repeating-linear-gradient(90deg, transparent 0 118px, rgba(0, 168, 255, 0.08) 119px 120px);
  filter: blur(0.5px);
  animation: energy-flow 9s linear infinite;
}

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

button,
input {
  font: inherit;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
  padding: 0 40px;
  border-bottom: 1px solid rgba(0, 212, 255, 0.22);
  background: rgba(4, 11, 20, 0.82);
  box-shadow: 0 12px 40px rgba(0, 168, 255, 0.12);
  backdrop-filter: blur(18px) saturate(140%);
}

.brand,
.nav,
.account,
.balance {
  display: flex;
  align-items: center;
}

.brand {
  gap: 12px;
  font-weight: 800;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 8px;
  background:
    radial-gradient(circle at 32% 22%, var(--accent), var(--primary) 42%, var(--primary-2));
  color: #03101d;
  font-size: 13px;
  letter-spacing: 0;
  box-shadow: var(--glow);
}

.nav {
  gap: 26px;
  color: var(--muted);
  font-size: 14px;
}

.nav a.active,
.nav a:hover {
  color: var(--accent);
  text-shadow: 0 0 18px rgba(0, 212, 255, 0.72);
}

.account {
  gap: 12px;
  min-width: 0;
}

.account .btn.small {
  flex: 0 1 auto;
}

.balance {
  gap: 8px;
  min-width: 92px;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 9px 12px;
  color: var(--primary-2);
  background: rgba(6, 22, 38, 0.74);
  box-shadow: inset 0 1px 0 rgba(224, 247, 255, 0.1), 0 0 22px rgba(0, 212, 255, 0.12);
  backdrop-filter: blur(14px);
}

.coin-dot {
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: radial-gradient(circle at 35% 30%, #ffffff, var(--primary) 52%, #0078b8);
  box-shadow: 0 0 14px rgba(0, 212, 255, 0.8);
}

.hero {
  position: relative;
  min-height: 520px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(4, 11, 20, 0.97), rgba(4, 11, 20, 0.58) 44%, rgba(4, 11, 20, 0.84)),
    radial-gradient(circle at 72% 36%, rgba(0, 212, 255, 0.22), transparent 34%),
    url("./assets/hero-esports-arena.png") center/cover;
}

.hero-bg::before,
.hero-bg::after {
  position: absolute;
  inset: 0;
  content: "";
}

.hero-bg::before {
  background:
    repeating-linear-gradient(90deg, rgba(224, 247, 255, 0.08) 0 1px, transparent 1px 108px),
    linear-gradient(120deg, transparent 0 28%, rgba(0, 212, 255, 0.16) 32%, transparent 42% 100%);
  mix-blend-mode: screen;
  animation: energy-flow 8s linear infinite;
}

.hero-bg::after {
  background:
    radial-gradient(circle at 78% 42%, rgba(224, 247, 255, 0.34), transparent 5%),
    radial-gradient(circle at 62% 36%, rgba(0, 212, 255, 0.18), transparent 22%);
  filter: blur(18px);
  animation: frost-pulse 4.8s ease-in-out infinite;
}

.hero-content {
  position: relative;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 118px 0 90px;
}

.kicker,
.eyebrow {
  margin: 0 0 10px;
  color: var(--primary-2);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 680px;
  margin-bottom: 18px;
  font-size: clamp(42px, 7vw, 72px);
  line-height: 0.96;
  letter-spacing: 0;
  text-shadow: 0 0 28px rgba(0, 212, 255, 0.22);
}

h2 {
  margin-bottom: 0;
  font-size: 28px;
}

h3 {
  margin-bottom: 8px;
}

.hero-copy {
  max-width: 560px;
  color: rgba(224, 247, 255, 0.86);
  font-size: 18px;
  line-height: 1.6;
}

.section {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 42px 0;
}

.view {
  display: none;
}

.view.active {
  display: block;
}

.view.section {
  min-height: calc(100vh - 238px);
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}

.pill {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 13px;
  color: var(--muted);
  background: rgba(6, 22, 38, 0.68);
  box-shadow: inset 0 1px 0 rgba(224, 247, 255, 0.08);
  backdrop-filter: blur(14px);
  font-size: 13px;
}

.game-card,
.tier-card,
.package-card,
.custom-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow:
    inset 0 1px 0 rgba(224, 247, 255, 0.1),
    0 18px 50px rgba(0, 0, 0, 0.28),
    0 0 34px rgba(0, 168, 255, 0.08);
  backdrop-filter: blur(18px) saturate(150%);
}

.game-card {
  display: grid;
  grid-template-columns: 180px 1fr auto;
  gap: 22px;
  align-items: center;
  padding: 16px;
}

.game-card img {
  width: 180px;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 8px;
}

.muted {
  color: var(--muted);
}

.tiers {
  display: grid;
  gap: 26px;
}

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

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

.mini-game {
  position: relative;
  min-height: 156px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(8, 31, 54, 0.8), rgba(4, 11, 20, 0.9));
  box-shadow: inset 0 1px 0 rgba(224, 247, 255, 0.08);
  cursor: pointer;
}

.mini-game:hover,
.package-card:hover,
.game-card:hover {
  border-color: rgba(0, 212, 255, 0.62);
  box-shadow: var(--glow), inset 0 1px 0 rgba(224, 247, 255, 0.16);
}

.mini-game img {
  width: 100%;
  aspect-ratio: 1.22;
  object-fit: cover;
  transition: transform 0.2s ease;
}

.mini-game:hover img {
  transform: scale(1.04);
}

.mini-game footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 48px;
  padding: 9px 10px;
}

.mini-game footer strong {
  min-width: 0;
  overflow: hidden;
  font-size: 13px;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lock-tag,
.open-tag {
  color: var(--primary-2);
  font-size: 11px;
  white-space: nowrap;
}

.currency-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.currency-tabs button {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 9px 15px;
  color: var(--muted);
  background: rgba(6, 22, 38, 0.58);
  box-shadow: inset 0 1px 0 rgba(224, 247, 255, 0.06);
  cursor: pointer;
}

.currency-tabs button.active {
  border-color: var(--primary);
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: #03101d;
  box-shadow: var(--glow);
  font-weight: 800;
}

.package-card {
  padding: 18px;
}

.package-card .price {
  font-size: 24px;
  font-weight: 800;
}

.package-card .coins {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 14px 0;
  font-size: 20px;
  color: var(--primary-2);
  font-weight: 800;
}

.custom-card {
  display: grid;
  grid-template-columns: 1fr 220px 1fr 160px;
  gap: 16px;
  align-items: center;
  margin-top: 20px;
  padding: 20px;
}

.checkout-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 22px;
  align-items: start;
}

.checkout-summary,
.checkout-form {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow:
    inset 0 1px 0 rgba(224, 247, 255, 0.1),
    0 18px 50px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(18px) saturate(150%);
}

.checkout-summary {
  display: grid;
  gap: 14px;
  padding: 22px;
}

.summary-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 13px;
  color: var(--muted);
}

.summary-line strong {
  color: var(--text);
  text-align: right;
}

.checkout-form {
  display: grid;
  gap: 20px;
  padding: 28px;
}

.payment-section {
  display: grid;
  gap: 18px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 22px;
}

.card-preview {
  display: grid;
  gap: 34px;
  min-height: 172px;
  border: 1px solid rgba(0, 212, 255, 0.42);
  border-radius: 8px;
  padding: 22px;
  background:
    linear-gradient(135deg, rgba(0, 212, 255, 0.24), rgba(4, 11, 20, 0.64)),
    radial-gradient(circle at 80% 14%, rgba(224, 247, 255, 0.2), transparent 28%),
    #061326;
  color: var(--text);
  box-shadow: inset 0 1px 0 rgba(224, 247, 255, 0.12), var(--glow);
}

.card-preview span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.card-preview strong {
  display: block;
  margin-top: 10px;
  overflow-wrap: anywhere;
  color: var(--accent);
  font-size: 22px;
  letter-spacing: 0;
}

.card-preview-row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
}

.checkout-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.payment-grid {
  grid-template-columns: 1.4fr 0.8fr 0.6fr;
}

.checkout-form label {
  display: grid;
  gap: 10px;
  color: var(--text);
  font-size: 14px;
  font-weight: 800;
}

.checkout-form input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 13px 14px;
  background: rgba(2, 9, 17, 0.82);
  color: var(--text);
  outline: none;
  box-shadow: inset 0 1px 0 rgba(224, 247, 255, 0.05);
}

.checkout-form input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.14), inset 0 1px 0 rgba(224, 247, 255, 0.08);
}

.checkout-wide {
  grid-column: 1 / -1;
}

.amount-field {
  position: relative;
}

.amount-field span {
  position: absolute;
  top: 50%;
  left: 14px;
  color: var(--muted);
  transform: translateY(-50%);
}

.amount-field input,
.modal label input:not([type="checkbox"]) {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 13px 14px;
  background: rgba(2, 9, 17, 0.82);
  color: var(--text);
  outline: none;
  box-shadow: inset 0 1px 0 rgba(224, 247, 255, 0.05);
}

.amount-field input {
  padding-left: 34px;
}

.amount-field input:focus,
.modal label input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.14), inset 0 1px 0 rgba(224, 247, 255, 0.08);
}

.btn {
  border: 0;
  border-radius: 8px;
  padding: 12px 18px;
  cursor: pointer;
  font-weight: 800;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.btn.primary {
  background:
    linear-gradient(135deg, var(--primary), var(--primary-2));
  color: #03101d;
  box-shadow: var(--glow), inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.btn.primary:hover {
  background:
    linear-gradient(135deg, var(--accent), var(--primary));
  box-shadow: 0 0 24px rgba(0, 212, 255, 0.58), 0 0 56px rgba(0, 168, 255, 0.32);
  transform: translateY(-1px);
}

.btn.secondary {
  border: 1px solid var(--line);
  background: rgba(6, 22, 38, 0.72);
  color: var(--text);
  box-shadow: inset 0 1px 0 rgba(224, 247, 255, 0.08);
}

.btn.small {
  max-width: 220px;
  overflow: hidden;
  padding: 9px 15px;
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.btn.wide {
  width: 100%;
}

.btn:disabled {
  cursor: not-allowed;
  background: rgba(18, 33, 48, 0.72);
  color: rgba(224, 247, 255, 0.34);
  box-shadow: none;
}

.legal {
  border-top: 1px solid var(--line);
}

.legal-body {
  max-width: 820px;
  color: rgba(224, 247, 255, 0.82);
  line-height: 1.8;
}

.legal-body p {
  margin-bottom: 16px;
}

.dashboard {
  min-height: calc(100vh - 238px);
}

.dashboard-tabs {
  display: inline-flex;
  gap: 6px;
  margin: 0 0 16px;
  padding: 5px;
  border-radius: 8px;
  background: rgba(2, 9, 17, 0.74);
  box-shadow: inset 0 1px 0 rgba(224, 247, 255, 0.08);
}

.dashboard-tabs button {
  border: 0;
  border-radius: 6px;
  padding: 10px 16px;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  font-weight: 800;
}

.dashboard-tabs button.active {
  color: var(--accent);
  background: rgba(0, 168, 255, 0.18);
  box-shadow: inset 0 0 0 1px rgba(0, 212, 255, 0.22);
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(5, 20, 35, 0.72);
  box-shadow: inset 0 1px 0 rgba(224, 247, 255, 0.08);
  backdrop-filter: blur(16px);
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
}

th,
td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  color: rgba(224, 247, 255, 0.78);
  text-align: left;
  font-size: 14px;
}

th {
  color: var(--text);
  background: rgba(9, 33, 58, 0.74);
  font-weight: 800;
}

tbody tr:last-child td {
  border-bottom: 0;
}

.amount-positive {
  color: #64ffd7;
}

.amount-negative {
  color: #00d4ff;
}

.contact-form {
  display: grid;
  gap: 20px;
  margin-top: 38px;
  border: 1px solid var(--line);
  border-radius: 0;
  padding: 34px 40px 40px;
  background: var(--panel);
  box-shadow:
    inset 0 1px 0 rgba(224, 247, 255, 0.1),
    0 18px 50px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(18px) saturate(150%);
}

.contact-form h3 {
  margin-bottom: 4px;
  font-size: 24px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.contact-form label {
  display: grid;
  gap: 10px;
  color: var(--text);
  font-size: 16px;
  font-weight: 700;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 0;
  padding: 13px 15px;
  background: rgba(2, 9, 17, 0.82);
  color: var(--text);
  outline: none;
}

.contact-form textarea {
  min-height: 172px;
  resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.14);
}

.send-btn {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  border-radius: 0;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: #03101d;
}

.send-btn:hover {
  background: linear-gradient(135deg, var(--accent), var(--primary));
}

.send-icon {
  display: inline-grid;
  width: 20px;
  height: 20px;
  place-items: center;
  border: 1.5px solid currentColor;
  border-radius: 999px;
  transform: rotate(-35deg);
}

.footer {
  display: grid;
  gap: 28px;
  padding: 34px 40px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  background:
    linear-gradient(180deg, rgba(4, 11, 20, 0.78), rgba(2, 6, 13, 0.95)),
    radial-gradient(circle at 74% 30%, rgba(0, 168, 255, 0.13), transparent 28%);
}

.footer-main {
  display: grid;
  grid-template-columns: minmax(230px, 1.1fr) minmax(170px, 0.8fr) minmax(220px, 1fr);
  gap: clamp(24px, 4vw, 52px);
  width: min(1080px, 100%);
  margin: 0 auto;
}

.footer h3 {
  margin: 0 0 20px;
  color: var(--text);
  font-size: 20px;
}

.footer p {
  margin-bottom: 12px;
  color: rgba(224, 247, 255, 0.76);
  font-size: 18px;
}

.footer-email {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 4px;
  color: var(--primary);
  font-size: 18px;
}

.mail-icon {
  display: inline-grid;
  width: 18px;
  height: 14px;
  place-items: center;
  border: 1.5px solid currentColor;
  border-radius: 3px;
  color: transparent;
}

.payment-badges {
  display: grid;
  grid-template-columns: repeat(3, 72px);
  gap: 12px;
  width: min(100%, 240px);
  max-width: 100%;
}

.payment-badges img {
  width: 72px;
  height: 48px;
  object-fit: contain;
  border: 1px solid rgba(0, 212, 255, 0.22);
  border-radius: 8px;
  padding: 8px 10px;
  background: linear-gradient(180deg, rgba(8, 31, 54, 0.92), rgba(4, 11, 20, 0.92));
  box-shadow:
    inset 0 1px 0 rgba(224, 247, 255, 0.08),
    0 10px 24px rgba(0, 0, 0, 0.22);
  transition: border-color 0.18s ease, transform 0.18s ease, background 0.18s ease;
}

.payment-badges img:hover {
  border-color: rgba(0, 212, 255, 0.72);
  background: linear-gradient(180deg, rgba(12, 45, 78, 0.96), rgba(5, 20, 35, 0.96));
  box-shadow: var(--glow);
  transform: translateY(-1px);
}

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

.footer-copy {
  width: min(1080px, 100%);
  margin: 0 auto;
  padding-top: 22px;
  border-top: 1px solid rgba(0, 212, 255, 0.12);
  color: rgba(224, 247, 255, 0.46);
  text-align: center;
  font-size: 14px;
}

.footer-links a:hover {
  color: var(--accent);
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 16px;
  background: rgba(2, 9, 17, 0.74);
  color: var(--text);
}

.modal[hidden] {
  display: none;
}

.modal-panel {
  position: relative;
  display: grid;
  gap: 16px;
  width: min(520px, calc(100vw - 32px));
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow:
    inset 0 1px 0 rgba(224, 247, 255, 0.1),
    0 22px 64px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(18px) saturate(150%);
}

.game-modal {
  padding: clamp(8px, 2vw, 18px);
}

.game-panel {
  width: min(1180px, calc(100vw - 32px));
  max-height: calc(var(--app-vh, 1vh) * 100 - 24px);
  grid-template-rows: auto minmax(0, 1fr);
  gap: 12px;
  padding: 18px;
}

.game-modal-head {
  min-width: 0;
  padding-right: 36px;
}

.game-modal-head h2 {
  overflow: hidden;
  margin-bottom: 0;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  padding: 5px;
  border-radius: 8px;
  background: rgba(2, 9, 17, 0.74);
  box-shadow: inset 0 1px 0 rgba(224, 247, 255, 0.08);
}

.tab {
  border: 0;
  border-radius: 6px;
  padding: 10px;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
}

.tab.active {
  color: var(--accent);
  background: rgba(0, 168, 255, 0.18);
  box-shadow: inset 0 0 0 1px rgba(0, 212, 255, 0.22);
}

.modal label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}

.checkline {
  grid-template-columns: auto 1fr;
  align-items: center;
  text-transform: none;
  font-weight: 500;
}

.form-message {
  min-height: 20px;
  margin: -4px 0 0;
  color: var(--danger);
  font-size: 13px;
  line-height: 1.4;
}

.icon-btn {
  border: 0;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
}

.close {
  position: absolute;
  top: 12px;
  right: 12px;
}

.game-close {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid rgba(0, 212, 255, 0.22);
  border-radius: 999px;
  background: rgba(6, 22, 38, 0.9);
  color: var(--accent);
  box-shadow: var(--glow), 0 12px 32px rgba(0, 0, 0, 0.42);
  transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.game-close span {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 999px;
  background: var(--primary);
  color: #03101d;
  font-size: 20px;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}

.game-close:hover {
  border-color: var(--accent);
  background: rgba(8, 31, 54, 0.98);
  transform: translateY(-1px);
}

.game-close:hover span {
  background: var(--primary-2);
}

.game-frame {
  display: grid;
  width: 100%;
  height: min(680px, calc(var(--app-vh, 1vh) * 100 - 144px));
  min-height: 420px;
  overflow: hidden;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  background:
    radial-gradient(circle at 50% 30%, rgba(0, 212, 255, 0.08), transparent 30%),
    linear-gradient(180deg, rgba(6, 22, 38, 0.94), rgba(2, 9, 17, 0.98));
  box-shadow: inset 0 1px 0 rgba(224, 247, 255, 0.06);
}

.game-frame iframe,
.game-frame canvas,
.game-frame object,
.game-frame embed {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 30;
  max-width: 360px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px 16px;
  background: rgba(5, 20, 35, 0.9);
  color: var(--text);
  box-shadow: var(--glow), 0 18px 40px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(16px);
}

@media (max-width: 860px) {
  .topbar {
    padding: 0 18px;
  }

  .brand {
    min-width: 0;
  }

  .brand [data-site="brandName"] {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .account {
    flex: 1;
    justify-content: flex-end;
  }

  .balance {
    min-width: 74px;
    padding: 8px 10px;
  }

  .btn.small {
    max-width: min(190px, 44vw);
  }

  #logoutBtn {
    max-width: 96px;
  }

  .nav {
    display: none;
  }

  .game-card,
  .custom-card,
  .contact-grid,
  .checkout-layout,
  .checkout-grid,
  .payment-grid {
    grid-template-columns: 1fr;
  }

  .game-card img {
    width: 100%;
  }

  .checkout-form {
    padding: 22px;
  }

  .card-preview {
    min-height: 150px;
  }

  .game-panel {
    width: min(760px, calc(100vw - 20px));
    max-height: calc(var(--app-vh, 1vh) * 100 - 16px);
    padding: 14px;
  }

  .game-frame {
    height: calc(var(--app-vh, 1vh) * 100 - 126px);
    min-height: 360px;
  }

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

  .section-head {
    align-items: flex-start;
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .footer-main {
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 28px;
  }

  .payment-badges {
    grid-template-columns: repeat(auto-fit, minmax(64px, 72px));
    gap: 10px;
  }
}

@media (max-width: 520px) {
  .topbar {
    gap: 10px;
  }

  .brand-mark {
    width: 34px;
    height: 34px;
    flex: 0 0 auto;
  }

  .brand [data-site="brandName"] {
    max-width: 72px;
  }

  .balance {
    min-width: 64px;
    font-size: 13px;
  }

  .btn.small {
    max-width: 112px;
    padding: 8px 10px;
  }

  #logoutBtn {
    max-width: 82px;
  }

  .payment-badges {
    grid-template-columns: repeat(3, 72px);
    gap: 10px;
  }

  .checkout-summary,
  .checkout-form {
    border-radius: 6px;
  }

  .card-preview {
    gap: 28px;
    min-height: 142px;
    padding: 18px;
  }

  .card-preview strong {
    font-size: 18px;
  }

  .game-modal {
    align-items: stretch;
    padding: 0;
  }

  .game-panel {
    width: 100vw;
    max-height: calc(var(--app-vh, 1vh) * 100);
    min-height: calc(var(--app-vh, 1vh) * 100);
    border-width: 0;
    border-radius: 0;
    padding: 12px;
  }

  .game-modal-head {
    padding-right: 50px;
  }

  .game-modal-head h2 {
    font-size: 20px;
  }

  .game-frame {
    height: calc(var(--app-vh, 1vh) * 100 - 92px);
    min-height: 0;
    border-radius: 6px;
  }

  .game-close {
    top: 10px;
    right: 10px;
    width: 48px;
    height: 48px;
  }

  .game-close span {
    width: 30px;
    height: 30px;
    font-size: 21px;
  }

  .tier-games,
  .packages {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: 40px;
  }
}

@keyframes particle-drift {
  from {
    transform: translate3d(0, 0, 0);
  }
  to {
    transform: translate3d(-120px, 70px, 0);
  }
}

@keyframes energy-flow {
  from {
    background-position: 0 0, 0 0;
  }
  to {
    background-position: 240px 0, 180px 0;
  }
}

@keyframes frost-pulse {
  0%, 100% {
    opacity: 0.78;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.03);
  }
}

@media (prefers-reduced-motion: reduce) {
  body::before,
  body::after,
  .hero-bg::before,
  .hero-bg::after {
    animation: none;
  }
}
