@font-face {
  font-family: "SHARKBOY & lavagirl";
  src: url("../fonts/sharkboy.woff2") format("woff2"),
       url("../fonts/sharkboy.woff") format("woff");
  font-display: swap;
}

@font-face {
  font-family: Circe;
  src: url("../fonts/Circe-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: Circe;
  src: url("../fonts/Circe-Light.woff2") format("woff2");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: Circe;
  src: url("../fonts/Circe-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Circe Extra";
  src: url("../fonts/Circe-ExtraBold.woff2") format("woff2");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #f6f7fb;
  --surface: #ffffff;
  --text: #2b2b2b;
  --muted: #767a8f;
  --line: #dde3e9;
  --blue: #1f6aed;
  --blue-soft: #218cf9;
  --blue-accent: #6582fb;
  --purple: #8e6cf0;
  --purple-deep: #8522c1;
  --orange: #ed8e1f;
  --gold: #ffab03;
  --shadow: 0 8px 28px rgba(31, 106, 237, 0.08);
  --radius: 22px;
  --radius-sm: 14px;
  --container: 1100px;
  --header-h: 72px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Circe, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(1200px 500px at 10% -10%, rgba(33, 140, 249, 0.12), transparent 55%),
    radial-gradient(900px 420px at 90% 0%, rgba(142, 108, 240, 0.1), transparent 50%),
    var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

a:hover {
  text-decoration: underline;
}

.container {
  width: min(100% - 28px, var(--container));
  margin-inline: auto;
}

/* Header */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(246, 247, 251, 0.82);
  border-bottom: 1px solid rgba(221, 227, 233, 0.7);
}

.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
  gap: 16px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.logo img {
  width: 42px;
  height: 42px;
}

.logo__text {
  font-family: "SHARKBOY & lavagirl", Circe, sans-serif;
  font-size: 28px;
  letter-spacing: 0.02em;
  color: var(--blue-soft);
  text-transform: uppercase;
  line-height: 1;
}

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

.icon-btn {
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 12px;
  background: var(--surface);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  display: grid;
  place-items: center;
  cursor: pointer;
  color: var(--muted);
}

.icon-btn:hover {
  color: var(--blue);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 14px;
  border: 0;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.03);
}

.btn:active {
  transform: translateY(0);
}

.btn--blue {
  background: linear-gradient(135deg, var(--blue-soft), var(--blue));
  color: #fff;
  box-shadow: 0 10px 24px rgba(31, 106, 237, 0.28);
}

.btn--purple {
  background: linear-gradient(135deg, #9b7cf5, var(--purple-deep));
  color: #fff;
  box-shadow: 0 10px 24px rgba(133, 34, 193, 0.25);
}

.btn--ghost {
  background: #eef1f7;
  color: #303030;
}

.btn--wide {
  width: 100%;
}

.auth-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 18px 0 8px;
}

/* Modes */
.modes {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px 12px 14px;
  margin-bottom: 16px;
}

.modes__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px 6px;
}

.mode {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-decoration: none !important;
  color: inherit;
  padding: 6px 2px;
  border-radius: 12px;
  transition: background 0.2s ease, transform 0.2s ease;
}

.mode:hover {
  background: #f3f6ff;
  transform: translateY(-2px);
}

.mode__icon {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
}

.mode__icon svg {
  width: 26px;
  height: 26px;
}

.mode__icon--slots { background: #9da3b1; }
.mode__icon--live { background: #ffab03; }
.mode__icon--classic { background: #8e6cf0; }
.mode__icon--fast { background: #5eb5ff; }
.mode__icon--roulette { background: #c060d4; }
.mode__icon--aviatrix { background: #ed8e1f; }
.mode__icon--dice { background: #9da3b1; }
.mode__icon--more { background: var(--blue-soft); }

.mode__name {
  font-weight: 700;
  font-size: 14px;
  line-height: 1.1;
}

.mode__sub {
  font-size: 12px;
  color: var(--muted);
}

.mode__sub--hot {
  color: var(--orange);
  font-weight: 700;
}

/* Banner */
.banner {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background:
    linear-gradient(120deg, rgba(10, 18, 40, 0.72), rgba(20, 28, 55, 0.55)),
    url("../pics/BannerImage.webp") center/cover no-repeat;
  color: #fff;
  padding: 22px 20px 18px;
  box-shadow: var(--shadow);
  margin-bottom: 22px;
  animation: rise 0.65s ease-out 0.05s both;
}

.banner__value {
  width: min(280px, 70%);
  margin: 0 auto 12px;
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.35));
  animation: pulse-soft 2.8s ease-in-out infinite;
}

.banner__title {
  margin: 0 0 8px;
  font-family: "Circe Extra", Circe, sans-serif;
  font-size: clamp(22px, 4vw, 32px);
  line-height: 1.15;
  font-weight: 800;
}

.banner__desc {
  margin: 0 0 16px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 15px;
}

.banner__timer {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  padding: 12px 10px;
  margin-bottom: 14px;
  backdrop-filter: blur(6px);
}

.timer-unit {
  text-align: center;
}

.timer-unit strong {
  display: block;
  font-size: 22px;
  font-weight: 800;
  line-height: 1.1;
}

.timer-unit span {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.72);
}

/* TOC */
.toc {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px 20px;
  margin-bottom: 22px;
}

.toc h2 {
  margin: 0 0 12px;
  font-size: 18px;
}

.toc ol {
  margin: 0;
  padding-left: 22px;
  display: grid;
  gap: 8px;
}

.toc a {
  color: var(--text);
  font-weight: 600;
}

.toc a:hover {
  color: var(--blue);
}

/* Content */
.content {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: clamp(20px, 3vw, 36px);
  margin-bottom: 28px;
}

.content h1,
.content h2,
.content h3 {
  scroll-margin-top: 90px;
  line-height: 1.2;
}

.content h1 {
  margin: 0 0 14px;
  font-size: clamp(28px, 4vw, 40px);
  font-family: "Circe Extra", Circe, sans-serif;
}

.content h2 {
  margin: 36px 0 12px;
  font-size: clamp(24px, 3vw, 32px);
  font-family: "Circe Extra", Circe, sans-serif;
}

.content h3 {
  margin: 24px 0 10px;
  font-size: 20px;
}

.content p {
  margin: 0 0 14px;
  color: #3a3d4a;
}

.content ul {
  margin: 0 0 14px;
  padding-left: 20px;
}

.content li {
  margin-bottom: 6px;
}

.content figure {
  margin: 18px 0;
  border-radius: 18px;
  overflow: hidden;
}

.content figure img {
  width: 100%;
}

.facts {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin: 18px 0 8px;
}

.fact {
  background: linear-gradient(180deg, #f8f9fd, #eef2ff);
  border: 1px solid #e4e9f5;
  border-radius: 14px;
  padding: 12px 14px;
}

.fact__label {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 4px;
}

.fact__value {
  font-weight: 700;
  font-size: 15px;
}

.table-wrap {
  overflow-x: auto;
  margin: 16px 0 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 480px;
  font-size: 14px;
}

th,
td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

th {
  background: #f3f6ff;
  font-weight: 700;
}

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

.mirrors {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 8px;
  margin: 14px 0 18px;
}

.mirror {
  display: grid;
  place-items: center;
  min-height: 42px;
  padding: 8px 10px;
  border-radius: 12px;
  background: #eef3ff;
  color: var(--blue);
  font-weight: 700;
  font-size: 13px;
  text-decoration: none !important;
  transition: background 0.2s ease, transform 0.2s ease;
}

.mirror:hover {
  background: #dde8ff;
  transform: translateY(-1px);
}

.games {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 18px 0;
}

.game {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  aspect-ratio: 1;
  background: #e8ecf5;
  text-decoration: none !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.game:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 12px 24px rgba(31, 106, 237, 0.18);
}

.game img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.game span {
  position: absolute;
  inset: auto 0 0;
  padding: 8px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.72));
  color: #fff;
  font-size: 11px;
  font-weight: 700;
}

.promos {
  display: grid;
  gap: 10px;
  margin: 14px 0 18px;
}

.promo {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 14px;
  background: linear-gradient(135deg, #f4f7ff, #f7f1ff);
  border: 1px solid #e5e9f8;
}

.promo code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-weight: 700;
  font-size: 15px;
  color: var(--purple-deep);
}

.promo__meta {
  font-size: 13px;
  color: var(--muted);
}

.promo button {
  flex-shrink: 0;
  min-height: 38px;
  padding: 0 14px;
  border: 0;
  border-radius: 10px;
  background: var(--blue);
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.faq details {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0 16px;
  margin-bottom: 10px;
  background: #fbfcff;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.faq details[open] {
  border-color: #c9d6ff;
  background: #f5f8ff;
}

.faq summary {
  cursor: pointer;
  list-style: none;
  min-height: 52px;
  display: flex;
  align-items: center;
  font-weight: 700;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq details p {
  margin: 0 0 14px;
  color: var(--muted);
}

.reviews {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.review {
  padding: 16px;
  border-radius: 14px;
  background: #f7f8fc;
  border: 1px solid #e8ecf5;
}

.review strong {
  display: block;
  margin-bottom: 6px;
}

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

/* Footer */
.footer {
  padding: 28px 0 110px;
  color: var(--muted);
  font-size: 13px;
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  margin: 14px 0 18px;
}

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

.footer__license {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.footer__license img {
  width: 54px;
  flex-shrink: 0;
}

/* Sticky CTA */
.sticky-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  padding: 12px 14px calc(12px + env(safe-area-inset-bottom));
  background: rgba(246, 247, 251, 0.92);
  backdrop-filter: blur(12px);
  border-top: 1px solid rgba(221, 227, 233, 0.85);
  transform: translateY(110%);
  transition: transform 0.35s ease;
}

.sticky-cta.is-visible {
  transform: translateY(0);
}

.sticky-cta__inner {
  width: min(100%, var(--container));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.age {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #2b2b2b;
  color: #fff;
  font-weight: 800;
  font-size: 12px;
}

.desktop-auth {
  display: none;
}

.nav-drawer {
  position: fixed;
  inset: 0;
  z-index: 80;
  pointer-events: none;
}

.nav-drawer.is-open {
  pointer-events: auto;
}

.nav-drawer__overlay {
  position: absolute;
  inset: 0;
  background: rgba(20, 24, 40, 0.45);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.nav-drawer.is-open .nav-drawer__overlay {
  opacity: 1;
}

.nav-drawer__panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(320px, 88vw);
  height: 100%;
  background: #fff;
  padding: 24px 20px;
  transform: translateX(105%);
  transition: transform 0.3s ease;
  box-shadow: -12px 0 30px rgba(0, 0, 0, 0.12);
}

.nav-drawer.is-open .nav-drawer__panel {
  transform: translateX(0);
}

.nav-drawer__panel nav {
  display: grid;
  gap: 12px;
  margin-top: 24px;
}

.nav-drawer__panel a {
  color: var(--text);
  font-weight: 700;
  text-decoration: none;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@media (min-width: 768px) {
  .auth-row {
    max-width: 420px;
  }

  .desktop-auth {
    display: flex;
    gap: 10px;
  }

  .desktop-auth .btn {
    min-height: 42px;
    padding: 0 16px;
    font-size: 14px;
  }

  .mobile-only {
    display: none !important;
  }

  .banner {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 20px;
    align-items: center;
    padding: 28px 32px;
  }

  .banner__value {
    grid-column: 1 / -1;
    width: min(360px, 40%);
    margin: 0 auto;
  }

  .banner__timer {
    margin-bottom: 0;
  }

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

  .games {
    grid-template-columns: repeat(6, 1fr);
  }

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

  .promo {
    flex-direction: column;
    align-items: flex-start;
  }

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

  .sticky-cta {
    display: none;
  }

  .footer {
    padding-bottom: 40px;
  }
}

@media (min-width: 1024px) {
  .modes__grid {
    grid-template-columns: repeat(8, 1fr);
  }

  .banner {
    grid-template-columns: 1fr 320px;
    grid-template-areas:
      "value value"
      "copy timer"
      "cta timer";
  }

  .banner__value { grid-area: value; }
  .banner__copy { grid-area: copy; }
  .banner__timer { grid-area: timer; align-self: stretch; align-content: center; }
  .banner .btn { grid-area: cta; max-width: 280px; }
}
