:root {
  --bg: #020617;
  --surface: #020F2F;
  --text: #E0F2FE;
  --muted: #7DD3FC;
  --primary: #38BDF8;
  --secondary: #818CF8;
  --accent: #22D3EE;
  --border: rgba(224, 242, 254, 0.12);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  background-image:
    radial-gradient(ellipse 80% 50% at 20% 0%, rgba(56, 189, 248, 0.15) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 80% 100%, rgba(129, 140, 248, 0.12) 0%, transparent 55%),
    linear-gradient(180deg, var(--bg) 0%, #030a1a 50%, var(--surface) 100%);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 15% 25%, rgba(34, 211, 238, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 85% 75%, rgba(129, 140, 248, 0.1) 0%, transparent 45%);
  pointer-events: none;
  z-index: 0;
}

.mesh-gradient {
  background:
    radial-gradient(at 25% 35%, rgba(56, 189, 248, 0.12) 0%, transparent 55%),
    radial-gradient(at 75% 65%, rgba(129, 140, 248, 0.1) 0%, transparent 50%),
    radial-gradient(at 50% 50%, rgba(34, 211, 238, 0.06) 0%, transparent 60%);
}

.neo-gradient-modern {
  position: relative;
}

.colorful-vibrant-overlay {
  box-shadow: 0 0 40px rgba(56, 189, 248, 0.15);
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--accent);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.disclosure {
  position: relative;
  z-index: 10;
  max-width: fit-content;
  margin: 8px auto;
  padding: 6px 24px;
  font-size: 11px;
  line-height: 1.5;
  color: var(--muted);
  text-align: center;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(56, 189, 248, 0.05);
}

.navbar {
  position: static;
  z-index: 100;
  background: var(--surface);
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  border-bottom: 2px solid var(--accent);
}

.navbar__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.navbar__logo img {
  max-height: 36px;
  width: auto;
}

.navbar__links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.navbar__links a {
  color: var(--text);
  font-weight: 600;
  font-size: 14px;
  padding: 6px 16px;
  border-radius: 20px;
  transition: background 0.25s ease, color 0.25s ease;
}

.navbar__links a:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--accent);
}

.navbar__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.navbar__burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.navbar__burger.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.navbar__burger.active span:nth-child(2) {
  opacity: 0;
}

.navbar__burger.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.navbar__drawer {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 300px;
  height: 100vh;
  background: var(--surface);
  z-index: 200;
  padding: 80px 24px 24px;
  transform: translateX(-100%);
  transition: transform 0.3s ease;
  overflow-y: auto;
}

.navbar__drawer.open {
  transform: translateX(0);
}

.navbar__drawer ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.navbar__drawer a {
  display: block;
  color: var(--text);
  font-weight: 600;
  padding: 12px 16px;
  border-radius: 12px;
  transition: background 0.2s ease;
}

.navbar__drawer a:hover {
  background: rgba(56, 189, 248, 0.15);
}

.navbar__overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(2, 6, 23, 0.7);
  z-index: 150;
}

.navbar__overlay.visible {
  display: block;
}

main {
  position: relative;
  z-index: 1;
  flex: 1 0 auto;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.footer {
  position: relative;
  z-index: 1;
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 48px 20px 32px;
  margin-top: auto;
  flex-shrink: 0;
}

.footer__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 32px;
}

.footer__brand img {
  max-height: 36px;
  margin-bottom: 16px;
}

.footer__brand p {
  font-size: 13px;
  color: var(--muted);
}

.footer__links h3,
.footer__legal h3 {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--accent);
}

.footer__links ul,
.footer__legal ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer__links a,
.footer__legal a {
  font-size: 13px;
  color: var(--muted);
}

.footer__links a:hover,
.footer__legal a:hover {
  color: var(--primary);
}

.footer__badges {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-top: 24px;
  flex-wrap: wrap;
}

.footer__badges img {
  max-height: 48px;
  width: auto;
}

.footer__bottom {
  max-width: 1200px;
  margin: 32px auto 0;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  text-align: center;
  font-size: 12px;
  color: var(--muted);
}

.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(2, 6, 23, 0.85);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-overlay.active {
  display: flex;
}

.modal {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px;
  max-width: 440px;
  width: 100%;
  text-align: center;
  box-shadow: 0 0 40px rgba(56, 189, 248, 0.2);
}

.modal h2 {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 12px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.modal p {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 24px;
}

.modal__buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  font-size: 14px;
  font-weight: 700;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.3s ease;
}

.btn--primary {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: var(--bg);
  box-shadow: 0 4px 20px rgba(56, 189, 248, 0.35);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 28px rgba(56, 189, 248, 0.5);
  background: linear-gradient(135deg, var(--accent), var(--primary));
}

.btn--ghost {
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--border);
}

.btn--ghost:hover {
  border-color: var(--primary);
  color: var(--text);
}

.cookie-banner {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 900;
  background: var(--surface);
  border-top: 2px solid var(--accent);
  padding: 20px;
  box-shadow: 0 -8px 32px rgba(2, 6, 23, 0.6);
}

.cookie-banner.active {
  display: block;
}

.cookie-banner__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.cookie-banner p {
  font-size: 13px;
  color: var(--muted);
  flex: 1;
  min-width: 200px;
}

.cookie-banner__actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.legal-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 48px 20px 64px;
}

.legal-content h1 {
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 24px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.legal-content h2 {
  font-size: 20px;
  font-weight: 700;
  margin: 28px 0 12px;
  color: var(--accent);
}

.legal-content h3 {
  font-size: 16px;
  font-weight: 700;
  margin: 20px 0 8px;
  color: var(--primary);
}

.legal-content p {
  margin-bottom: 14px;
  color: var(--text);
  font-size: 15px;
}

.legal-content ul {
  margin: 12px 0 16px 24px;
  color: var(--text);
}

.legal-content li {
  margin-bottom: 6px;
}

.contact-form {
  margin-top: 32px;
  padding: 28px;
  background: rgba(56, 189, 248, 0.05);
  border: 1px solid var(--border);
  border-radius: 16px;
}

.contact-form label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--muted);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px 16px;
  margin-bottom: 16px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  font-size: 15px;
  font-family: inherit;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.15);
}

.contact-form textarea {
  min-height: 140px;
  resize: vertical;
}

.contact-form .error-msg {
  color: #f87171;
  font-size: 13px;
  margin: -12px 0 12px;
  display: none;
}

.contact-form .error-msg.visible {
  display: block;
}

.contact-success {
  display: none;
  padding: 32px;
  text-align: center;
  background: rgba(34, 211, 238, 0.08);
  border: 1px solid var(--accent);
  border-radius: 16px;
  margin-top: 32px;
}

.contact-success.visible {
  display: block;
}

.contact-success h2 {
  font-size: 22px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 12px;
}

.page-hero-strip {
  padding: 40px 20px;
  text-align: center;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.1), rgba(129, 140, 248, 0.08));
  border-bottom: 1px solid var(--border);
}

.page-hero-strip h1 {
  font-size: 36px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary), var(--secondary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.error-page {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 48px 20px;
}

.error-page h1 {
  font-size: 72px;
  font-weight: 900;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.error-page p {
  font-size: 18px;
  color: var(--muted);
  margin: 16px 0 32px;
}

.decorative-img-wrap {
  max-width: 100%;
  overflow: hidden;
}

.decorative-img-wrap img,
.hero__frame img,
.info-1__visual img {
  max-width: 100%;
  height: auto;
}

@media (max-width: 900px) {
  .navbar__links {
    display: none;
  }

  .navbar__burger {
    display: flex;
  }

  .navbar__drawer {
    display: block;
  }

  .footer__inner {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

@media (max-width: 375px) {
  body {
    overflow-x: hidden;
  }

  .hero__frame,
  .info-1__visual,
  .decorative-img-wrap,
  .rtp-sidebar,
  .live-hero__img,
  .tips-aside,
  .bonus-visual {
    max-width: 100%;
    overflow: hidden;
  }

  .hero__frame img,
  .info-1__visual img,
  .decorative-img-wrap img,
  .rtp-sidebar img,
  .live-hero__img img,
  .live-rail img,
  .tips-aside img,
  .bonus-visual img {
    max-width: 100%;
    max-height: 200px;
    width: 100%;
    height: auto;
    object-fit: contain;
  }
}
