:root {
  --bg-0: #06071a;
  --bg-1: #0c0e2e;
  --card: #0e1130;
  --text: #f0f9ff;
  --muted: #9fb0d4;
  --blue: #60a5fa;
  --blue-2: #2563eb;
  --yellow: #fde047;
  --danger: #f43f5e;
  --radius: 8px;
  --shadow: 0 0 26px rgba(96, 165, 250, 0.28);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Roboto Condensed", sans-serif;
  color: var(--text);
  background:
    radial-gradient(1200px 480px at 15% -10%, rgba(96, 165, 250, 0.22), transparent),
    radial-gradient(1000px 420px at 85% -20%, rgba(253, 224, 71, 0.15), transparent),
    linear-gradient(160deg, var(--bg-0), var(--bg-1));
  min-height: 100vh;
}

a {
  color: var(--text);
  text-decoration: none;
}

img {
  max-width: 100%;
  object-fit: contain;
}

.container {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1500;
  backdrop-filter: blur(10px);
  background: rgba(4, 8, 28, 0.82);
  border-bottom: 1px solid rgba(96, 165, 250, 0.3);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.38);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.brand img {
  width: 36px;
  height: 36px;
}

.brand strong {
  font-family: "Audiowide", cursive;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text);
  text-shadow: 0 0 12px rgba(96, 165, 250, 0.6);
}

.main-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.main-nav a {
  font-family: "Audiowide", cursive;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 8px 10px;
  border-radius: 6px;
  border: 1px solid transparent;
}

.main-nav a:hover,
.main-nav a.active {
  border-color: rgba(96, 165, 250, 0.6);
  box-shadow: 0 0 14px rgba(96, 165, 250, 0.45);
}

.auth-area {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.btn {
  border: 0;
  cursor: pointer;
  font-family: "Roboto Condensed", sans-serif;
  font-weight: 700;
  letter-spacing: 0.03em;
  border-radius: var(--radius);
  padding: 12px 18px;
  text-transform: uppercase;
}

.btn-primary {
  color: #06142f;
  background: linear-gradient(120deg, #93c5fd, #3b82f6, #60a5fa);
  box-shadow: 0 0 18px rgba(96, 165, 250, 0.55);
  animation: pulseGlow 2.4s infinite;
}

.btn-primary:hover {
  filter: brightness(1.08);
}

.btn-secondary {
  color: var(--text);
  background: transparent;
  border: 1px solid rgba(96, 165, 250, 0.54);
}

.btn-secondary:hover {
  box-shadow: 0 0 14px rgba(96, 165, 250, 0.35);
}

@keyframes pulseGlow {
  0%,
  100% {
    box-shadow: 0 0 14px rgba(96, 165, 250, 0.45);
  }
  50% {
    box-shadow: 0 0 24px rgba(96, 165, 250, 0.82);
  }
}

.hero {
  min-height: calc(100vh - 70px);
  display: grid;
  place-items: center;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero:before,
.hero:after {
  content: "⚡";
  position: absolute;
  font-size: 72px;
  color: rgba(253, 224, 71, 0.45);
  animation: bolt 3.2s infinite;
}

.hero:before {
  top: 18%;
  left: 14%;
}

.hero:after {
  right: 12%;
  top: 12%;
  animation-delay: 1.4s;
}

@keyframes bolt {
  0%,
  100% {
    opacity: 0.2;
    transform: translateY(0) scale(1);
  }
  35% {
    opacity: 1;
    transform: translateY(-16px) scale(1.08);
    text-shadow: 0 0 20px rgba(253, 224, 71, 0.84);
  }
  60% {
    opacity: 0.4;
    transform: translateY(8px) scale(0.96);
  }
}

.hero h1 {
  font-family: "Audiowide", cursive;
  margin: 0;
  font-size: clamp(2rem, 6vw, 4.3rem);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-shadow: 0 0 24px rgba(96, 165, 250, 0.64);
}

.hero p {
  margin: 16px auto 24px;
  max-width: 760px;
  color: var(--muted);
  font-size: clamp(1.03rem, 2vw, 1.35rem);
}

.section {
  padding: 56px 0;
}

.section h2 {
  margin: 0 0 18px;
  font-family: "Audiowide", cursive;
  font-size: clamp(1.5rem, 4vw, 2.3rem);
  letter-spacing: 0.05em;
}

.section-lead {
  margin: 0 0 22px;
  color: var(--muted);
  max-width: 720px;
}

.grid {
  display: grid;
  gap: 16px;
}

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

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

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

.card {
  background: linear-gradient(180deg, rgba(14, 17, 48, 0.9), rgba(9, 12, 34, 0.96));
  border-left: 3px solid var(--blue);
  border-radius: 10px;
  padding: 18px;
  box-shadow: var(--shadow);
}

.card h3 {
  margin: 0 0 8px;
  font-family: "Audiowide", cursive;
  font-size: 1.12rem;
}

.card p {
  margin: 0;
  color: var(--muted);
}

.screenshot {
  background: rgba(10, 13, 39, 0.82);
  border-radius: 10px;
  border: 1px solid rgba(96, 165, 250, 0.35);
  padding: 8px;
  box-shadow: 0 0 20px rgba(37, 99, 235, 0.2);
}

.screenshot img {
  width: 100%;
  height: 320px;
}

.review {
  position: relative;
}

.review:before {
  content: "⚡";
  position: absolute;
  right: 14px;
  top: 10px;
  color: rgba(253, 224, 71, 0.6);
}

.play-badge {
  display: inline-flex;
  align-items: center;
}

.play-badge img {
  height: 56px;
}

.site-footer {
  margin-top: 34px;
  border-top: 1px solid rgba(96, 165, 250, 0.3);
  background: rgba(5, 9, 29, 0.84);
}

.footer-inner {
  padding: 24px 0 34px;
  display: grid;
  gap: 14px;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.footer-note,
.footer-copy {
  color: var(--muted);
}

.page-hero {
  padding: 58px 0 34px;
}

.page-hero h1 {
  margin: 0 0 8px;
  font-family: "Audiowide", cursive;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: clamp(1.9rem, 5vw, 3rem);
}

.content-text p,
.content-text li {
  color: var(--muted);
  line-height: 1.55;
}

.content-text h2 {
  font-family: "Audiowide", cursive;
  margin-top: 22px;
  margin-bottom: 8px;
}

.contact-form {
  display: grid;
  gap: 12px;
}

.input,
textarea {
  width: 100%;
  background: #090d2a;
  border: 1px solid rgba(96, 165, 250, 0.45);
  color: var(--text);
  border-radius: 8px;
  padding: 12px;
  font: inherit;
}

textarea {
  min-height: 140px;
  resize: vertical;
}

.auth-modal {
  position: fixed;
  inset: 0;
  z-index: 3000;
  background: rgba(0, 0, 0, 0.72);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 14px;
}

.auth-modal.open {
  display: flex;
}

.auth-panel {
  width: min(420px, 100%);
  border-radius: 12px;
  border: 1px solid rgba(96, 165, 250, 0.5);
  background: #090d28;
  box-shadow: 0 0 26px rgba(96, 165, 250, 0.4);
  padding: 18px;
}

.auth-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.auth-title {
  font-family: "Audiowide", cursive;
  margin: 0;
  font-size: 1.2rem;
}

.close-x {
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 22px;
  cursor: pointer;
}

.auth-error {
  margin: 8px 0 0;
  color: var(--danger);
  font-weight: 700;
  min-height: 20px;
}

.switch-auth {
  margin-top: 10px;
  color: var(--muted);
}

.switch-auth button {
  background: transparent;
  border: 0;
  color: var(--yellow);
  cursor: pointer;
  font: inherit;
}

.coins-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(253, 224, 71, 0.52);
  color: var(--yellow);
  border-radius: 999px;
  padding: 7px 10px;
  font-weight: 700;
}

iframe {
  width: 100%;
  max-width: 100%;
}

@media (max-width: 960px) {
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
  }
  .auth-area {
    justify-content: flex-start;
  }
  .grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .main-nav {
    width: 100%;
  }
  .main-nav a {
    font-size: 11px;
    padding: 7px 9px;
  }
  .grid-4,
  .grid-3,
  .grid-2 {
    grid-template-columns: 1fr;
  }
  .hero {
    min-height: 78vh;
  }
  .screenshot img {
    height: 240px;
  }
}
