:root {
  --bg-main: #07060f;
  --bg-secondary: #111028;
  --accent: #8f5bff;
  --accent-neon: #49f6ff;
  --text-main: #f6f4ff;
  --text-muted: #b5add8;
  --danger: #ff5fa2;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  font-family: "Inter", "Segoe UI", system-ui, sans-serif;
  color: var(--text-main);
  background: var(--bg-main);
}

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

.bg-animated {
  position: fixed;
  inset: 0;
  z-index: -3;
  background: radial-gradient(circle at 20% 20%, #3f1d70 0%, transparent 35%),
    radial-gradient(circle at 80% 0%, #1a4d70 0%, transparent 30%),
    radial-gradient(circle at 50% 100%, #211f55 0%, #07060f 55%);
  filter: saturate(125%);
  animation: pulseBg 12s ease-in-out infinite alternate;
}

.bg-grid {
  position: fixed;
  inset: 0;
  z-index: -2;
  background-image: linear-gradient(
      rgba(255, 255, 255, 0.035) 1px,
      transparent 1px
    ),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: radial-gradient(circle at 50% 30%, black 30%, transparent 90%);
}

.page-shell {
  width: min(1100px, 92%);
  margin: 0 auto;
  padding: 2rem 0 3rem;
}

.glass-card {
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.09),
    rgba(255, 255, 255, 0.035)
  );
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 15px 45px rgba(31, 22, 72, 0.55);
  border-radius: 22px;
  backdrop-filter: blur(14px);
}

.top-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.8rem 1rem;
  margin-bottom: 1.3rem;
}

.brand {
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: 0.12rem;
}

.brand span {
  color: var(--accent-neon);
}

.hero,
.game-panel,
.disclaimer,
.legal-page {
  padding: 1.4rem;
  margin-bottom: 1.3rem;
}

.kicker {
  color: var(--accent-neon);
  font-weight: 700;
  letter-spacing: 0.09rem;
  font-size: 0.76rem;
}

h1 {
  margin: 0.45rem 0;
  font-size: clamp(1.8rem, 6vw, 3.8rem);
  line-height: 1.06;
}

h1 span {
  color: var(--accent);
  text-shadow: 0 0 24px rgba(143, 91, 255, 0.66);
}

.hero-copy,
.game-meta,
.disclaimer p,
.legal-page p,
.legal-page li {
  color: var(--text-muted);
  line-height: 1.7;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 0.75rem;
  padding: 0.72rem 1.18rem;
  border-radius: 12px;
  border: 1px solid rgba(127, 101, 250, 0.85);
  color: var(--text-main);
  background: linear-gradient(120deg, #4f36a8, #7822b8);
  box-shadow: 0 0 24px rgba(123, 75, 255, 0.45);
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
}

.btn:hover {
  transform: translateY(-2px) scale(1.02);
  filter: brightness(1.12);
  box-shadow: 0 0 32px rgba(73, 246, 255, 0.42);
}

.btn-secondary {
  background: transparent;
  border: 1px solid rgba(73, 246, 255, 0.8);
}

.btn-small {
  margin-top: 0;
  padding: 0.45rem 0.8rem;
  font-size: 0.86rem;
}

.panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.panel-head h2 {
  margin: 0;
}

.balance-chip {
  padding: 0.35rem 0.75rem;
  border-radius: 100px;
  border: 1px solid rgba(73, 246, 255, 0.55);
  background: rgba(73, 246, 255, 0.09);
  font-size: 0.92rem;
}

.slot-reels {
  margin: 1rem 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(56px, 88px));
  justify-content: center;
  gap: 0.9rem;
}

.reel {
  aspect-ratio: 1/1;
  display: grid;
  place-items: center;
  border-radius: 14px;
  font-size: clamp(1.8rem, 7vw, 2.6rem);
  font-weight: 800;
  background: linear-gradient(165deg, #1f193e, #0d0b1b);
  border: 1px solid rgba(255, 255, 255, 0.17);
  box-shadow: inset 0 0 16px rgba(73, 246, 255, 0.15);
}

.reel.spinning {
  animation: reelPulse 0.2s linear infinite alternate;
}

.game-actions {
  display: flex;
  gap: 0.7rem;
  flex-wrap: wrap;
}

.game-message {
  margin-top: 0.9rem;
  color: #dfd6ff;
  min-height: 1.5rem;
}

.info-grid {
  display: grid;
  gap: 1rem;
  margin-bottom: 1.3rem;
}

.info-card {
  padding: 1.2rem;
}

.info-card h3,
.faq-section h2,
.faq-item h3 {
  margin: 0.2rem 0 0.55rem;
}

.info-card p,
.faq-item p {
  color: var(--text-muted);
  line-height: 1.7;
}

.faq-section {
  padding: 1.4rem;
  margin-bottom: 1.3rem;
}

.faq-item {
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.faq-item:last-child {
  border-bottom: 0;
}

.disclaimer h3,
.legal-page h1,
.legal-page h2 {
  margin-top: 0.2rem;
}

.site-footer {
  width: min(1100px, 92%);
  margin: 0 auto 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  padding-top: 1.2rem;
  color: var(--text-muted);
}

.footer-links,
.social-links,
.responsible-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem 1rem;
  margin-bottom: 0.7rem;
}

.footer-links a,
.social-links a,
.responsible-links a {
  transition: color 0.22s ease, text-shadow 0.22s ease;
}

.footer-links a:hover,
.social-links a:hover,
.responsible-links a:hover {
  color: var(--accent-neon);
  text-shadow: 0 0 14px rgba(73, 246, 255, 0.65);
}

.footer-note {
  font-size: 0.9rem;
  margin-top: 0.6rem;
}

.legal-page ul {
  margin: 0.6rem 0 0.3rem 1.1rem;
}

.legal-page a {
  color: var(--accent-neon);
}

.legal-shell .legal-page {
  margin-top: 0.8rem;
}

.contact-form {
  display: grid;
  gap: 0.65rem;
  margin: 0.8rem 0 1rem;
}

.contact-form label {
  font-weight: 600;
  color: #d7cff6;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(9, 8, 24, 0.85);
  color: var(--text-main);
  padding: 0.7rem 0.8rem;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: rgba(73, 246, 255, 0.75);
  box-shadow: 0 0 0 3px rgba(73, 246, 255, 0.15);
}

.loader-overlay {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: grid;
  place-items: center;
  background: rgba(7, 6, 15, 0.88);
  transition: opacity 0.45s ease, visibility 0.45s ease;
}

.loader-overlay.hidden {
  opacity: 0;
  visibility: hidden;
}

.loader-core {
  text-align: center;
  color: var(--text-main);
}

.loader-ring {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  border: 4px solid rgba(143, 91, 255, 0.2);
  border-top-color: var(--accent-neon);
  display: inline-block;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes pulseBg {
  from {
    transform: scale(1);
  }
  to {
    transform: scale(1.06);
  }
}

@keyframes reelPulse {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(1px);
  }
}

@media (min-width: 900px) {
  .hero,
  .game-panel,
  .disclaimer,
  .legal-page,
  .faq-section {
    padding: 2rem;
  }

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

  .info-card {
    padding: 1.5rem;
  }
}
