:root {
    --theme-bg: #101725;
    --theme-bg-soft: #151e30;
    --theme-surface: #1c2940;
    --theme-surface-strong: #263652;
    --theme-border: rgba(255, 255, 255, 0.13);
    --theme-accent: #ff5c3a;
    --theme-accent-soft: #ff8a6a;
    --theme-cyan: #3af5e4;
    --theme-text: #e8eaf0;
    --theme-muted: #a7b1c5;
    --theme-glow: 0 0 40px rgba(255, 92, 58, 0.12);
}

.game-body {
    --theme-bg: #0a0d14;
    --theme-bg-soft: #0f1420;
    --theme-surface: #161c2d;
    --theme-surface-strong: #1a2236;
    --theme-border: rgba(255, 255, 255, 0.09);
    --theme-muted: #8891a8;
}

body {
    background-color: var(--theme-bg);
    background-image:
        radial-gradient(circle at 88% 2%, rgba(255, 92, 58, 0.09), transparent 30rem),
        radial-gradient(circle at 8% 68%, rgba(58, 245, 228, 0.035), transparent 28rem);
    color: var(--theme-text);
}

a,
button {
    transition: border-color 180ms ease, background 180ms ease, color 180ms ease, transform 180ms ease;
}
.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  white-space: nowrap !important;
}

.public-header {
  position: relative;
  z-index: 20;
  width: 100%;
  border-bottom: 1px solid rgba(148, 163, 184, 0.2);
  background: rgba(8, 14, 24, 0.94);
  backdrop-filter: blur(18px);
}

.public-header-inner {
  display: flex;
  align-items: center;
  gap: 18px;
  width: min(1280px, calc(100% - 32px));
  min-height: 72px;
  margin: 0 auto;
}

.public-brand,
.public-header-actions,
.public-main-nav {
  display: flex;
  align-items: center;
}

.public-brand {
  gap: 10px;
  color: #f8fafc;
  font-weight: 800;
  text-decoration: none;
}

.public-brand img {
  width: 38px;
  height: 38px;
  object-fit: contain;
}

.public-main-nav {
  gap: 16px;
  margin-left: auto;
}

.public-header-actions {
  gap: 9px;
  margin-left: auto;
}

.public-main-nav + .public-header-actions {
  margin-left: 14px;
}

.public-nav-link,
.public-icon-link,
.public-primary-link,
.public-main-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  border-radius: 11px;
  color: #cbd5e1;
  font-size: 0.88rem;
  font-weight: 750;
  text-decoration: none;
  transition: 160ms ease;
}

.public-nav-link:hover,
.public-icon-link:hover,
.public-main-nav a:hover {
  color: #ffffff;
  background: rgba(148, 163, 184, 0.12);
}

.public-icon-link {
  min-width: 40px;
  padding: 0 11px;
  border: 1px solid rgba(148, 163, 184, 0.22);
}

.public-primary-link {
  gap: 8px;
  padding: 0 15px;
  color: #172033;
  background: #facc4b;
}

.public-primary-link:hover {
  background: #ffe078;
}

.public-footer,
.legal-footer.public-footer {
  width: min(1280px, calc(100% - 32px));
  margin: 24px auto 0;
  padding: 28px 0 34px;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.public-footer-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px 28px;
  flex-wrap: wrap;
  color: #94a3b8;
  text-align: center;
}

.public-footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #e2e8f0;
  font-weight: 800;
}

.public-footer-brand img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

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

.public-footer-nav a,
.public-footer button {
  border: 0;
  color: #a9b7ce;
  background: transparent;
  font: inherit;
  font-size: 0.84rem;
  text-decoration: none;
  cursor: pointer;
}

.public-footer-nav a:hover,
.public-footer button:hover {
  color: #ffffff;
}

.ad-test-request-note {
  display: block;
  padding: 7px 9px;
  color: #facc4b;
  font-size: 0.68rem;
  font-weight: 850;
  letter-spacing: 0.04em;
  text-align: center;
  text-transform: uppercase;
}

@media (max-width: 820px) {
  .public-header-inner {
    gap: 9px;
    width: min(100% - 20px, 1280px);
    min-height: 66px;
  }

  .public-main-nav {
    display: none;
  }

  .public-header-actions {
    margin-left: auto;
  }

  .public-header-actions .public-primary-link {
    padding: 0 11px;
    font-size: 0.8rem;
  }

  .public-nav-link {
    display: none;
  }

  .public-footer,
  .legal-footer.public-footer {
    width: min(100% - 28px, 1280px);
    padding-top: 20px;
  }

  .public-footer-inner {
    display: grid;
    gap: 12px;
  }
}
