:root {
  --bg0: #06080f;
  --bg1: #0b1020;
  --card: #11182a;
  --stroke: rgba(120, 160, 255, 0.14);
  --text: #e9eefc;
  --muted: #9aa7c7;
  --magenta: #d94bff;
  --cyan: #4fe0ff;
  --gold: #f7c948;
  --ok: #5ef2b8;
  --shadow: 0 18px 60px rgba(0, 0, 0, 0.55);
  --radius: 16px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, Ubuntu, sans-serif;
  color: var(--text);
  background:
    radial-gradient(1200px 700px at 10% -10%, rgba(217, 75, 255, 0.18), transparent 55%),
    radial-gradient(900px 500px at 90% 0%, rgba(79, 224, 255, 0.12), transparent 50%),
    linear-gradient(180deg, var(--bg0), var(--bg1) 40%, #070b14);
  min-height: 100vh;
}

a {
  color: inherit;
}

.skip {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.skip:focus {
  left: 16px;
  top: 16px;
  width: auto;
  height: auto;
  padding: 10px 14px;
  background: #1a2238;
  border-radius: 10px;
  z-index: 9999;
  outline: 2px solid var(--magenta);
}

.shell {
  display: grid;
  grid-template-columns: 280px 1fr;
  min-height: 100vh;
}

@media (max-width: 1024px) {
  .shell {
    grid-template-columns: 1fr;
  }
}

.sidebar {
  position: sticky;
  top: 0;
  align-self: start;
  min-height: 100vh;
  padding: 22px 18px;
  border-right: 1px solid var(--stroke);
  background: linear-gradient(180deg, rgba(12, 16, 30, 0.92), rgba(8, 10, 18, 0.75));
  backdrop-filter: blur(10px);
}

@media (max-width: 1024px) {
  .sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: min(86vw, 300px);
    transform: translateX(-105%);
    transition: transform 0.45s var(--ease);
    z-index: 80;
    box-shadow: var(--shadow);
  }

  .sidebar.is-open {
    transform: translateX(0);
  }
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 6px 4px 18px;
}

.brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: radial-gradient(circle at 30% 30%, #7cf6ff, #b84dff 45%, #ff3dcd);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12), 0 16px 40px rgba(217, 75, 255, 0.35);
  position: relative;
  animation: pulse 4.5s ease-in-out infinite;
}

.brand-mark::after {
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: 50%;
  background: rgba(6, 8, 15, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
    filter: saturate(1);
  }
  50% {
    transform: scale(1.04);
    filter: saturate(1.15);
  }
}

.brand h1 {
  margin: 0;
  font-size: 1.15rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.brand span {
  display: block;
  font-size: 0.78rem;
  color: var(--muted);
  font-weight: 500;
  letter-spacing: 0.02em;
}

.mode-toggle {
  display: flex;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--stroke);
  border-radius: 999px;
  padding: 4px;
  gap: 4px;
  margin-bottom: 18px;
}

.mode-toggle button {
  flex: 1;
  border: 0;
  border-radius: 999px;
  padding: 10px 8px;
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  transition: color 0.25s var(--ease), background 0.25s var(--ease), transform 0.2s var(--ease);
}

.mode-toggle button[aria-pressed="true"] {
  color: #0b0f1a;
  background: linear-gradient(120deg, var(--cyan), var(--magenta));
  box-shadow: 0 10px 30px rgba(217, 75, 255, 0.35);
}

.mode-toggle button:active {
  transform: scale(0.98);
}

.nav {
  display: grid;
  gap: 6px;
  margin-top: 8px;
}

.nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 12px;
  border-radius: 12px;
  text-decoration: none;
  color: var(--muted);
  border: 1px solid transparent;
  transition: background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease), transform 0.2s var(--ease);
}

.nav a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.06);
  transform: translateX(2px);
}

.nav a.is-active {
  color: var(--text);
  background: linear-gradient(90deg, rgba(217, 75, 255, 0.18), rgba(79, 224, 255, 0.08));
  border-color: rgba(217, 75, 255, 0.25);
}

.nav small {
  margin-left: auto;
  background: rgba(247, 201, 72, 0.15);
  color: var(--gold);
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
}

.sidebar-foot {
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid var(--stroke);
  display: grid;
  gap: 10px;
  color: var(--muted);
  font-size: 0.85rem;
}

.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s var(--ease);
  z-index: 70;
}

.overlay.is-on {
  opacity: 1;
  pointer-events: auto;
}

main {
  padding: 22px 22px 80px;
  max-width: 1320px;
  width: 100%;
  margin: 0 auto;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}

.mobile-bar {
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

@media (max-width: 1024px) {
  .mobile-bar {
    display: flex;
  }
}

.icon-btn {
  border: 1px solid var(--stroke);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  border-radius: 12px;
  padding: 10px 12px;
  cursor: pointer;
  transition: transform 0.2s var(--ease), border-color 0.2s var(--ease);
}

.icon-btn:hover {
  border-color: rgba(217, 75, 255, 0.35);
}

.icon-btn:active {
  transform: scale(0.98);
}

.cta-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: 12px;
  border: 1px solid var(--stroke);
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: transform 0.2s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s var(--ease), background 0.25s var(--ease);
}

.btn-ghost {
  color: var(--text);
  background: rgba(255, 255, 255, 0.03);
}

.btn-ghost:hover {
  border-color: rgba(79, 224, 255, 0.35);
  box-shadow: 0 12px 40px rgba(79, 224, 255, 0.12);
}

.btn-primary {
  color: #0b0f1a;
  border-color: transparent;
  background: linear-gradient(120deg, #7cf6ff, #d94bff 55%, #ff5ad1);
  box-shadow: 0 16px 50px rgba(217, 75, 255, 0.45);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 22px 60px rgba(217, 75, 255, 0.55);
}

.hero {
  margin-bottom: 26px;
}

.hero-card {
  position: relative;
  overflow: hidden;
  border-radius: calc(var(--radius) + 4px);
  padding: 28px 26px;
  border: 1px solid var(--stroke);
  background: linear-gradient(135deg, rgba(20, 28, 48, 0.95), rgba(10, 14, 26, 0.85));
  box-shadow: var(--shadow);
  min-height: 220px;
}

.hero-card--promo {
  text-align: center;
  padding: clamp(28px, 4vw, 44px) clamp(22px, 4vw, 48px);
  min-height: clamp(260px, 36vh, 340px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.hero-eyebrow {
  margin: 0 0 12px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cyan);
}

.hero-card--promo h2 {
  margin: 0 0 14px;
  font-size: clamp(1.65rem, 4vw, 2.75rem);
  line-height: 1.12;
  max-width: 22ch;
}

.hero-sum {
  display: inline-block;
  background: linear-gradient(120deg, #9fffea, #d94bff 45%, #ff7ad6);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.hero-lead {
  margin: 0 0 26px;
  color: var(--muted);
  max-width: 52ch;
  line-height: 1.6;
  font-size: clamp(0.95rem, 1.5vw, 1.05rem);
}

.btn-hero-cta {
  width: 100%;
  max-width: min(100%, 440px);
  padding: 18px 28px;
  font-size: clamp(1.05rem, 2.2vw, 1.35rem);
  font-weight: 900;
  letter-spacing: 0.02em;
  text-decoration: none;
  border-radius: 16px;
  border: none;
  color: #0b0f1a;
  background: linear-gradient(120deg, #7cf6ff, #d94bff 52%, #ff5ad1);
  box-shadow: 0 18px 55px rgba(217, 75, 255, 0.5);
  transition: transform 0.2s var(--ease), box-shadow 0.25s var(--ease);
}

.btn-hero-cta:hover {
  transform: translateY(-2px) scale(1.01);
  box-shadow: 0 24px 70px rgba(217, 75, 255, 0.58);
}

.btn-hero-cta:active {
  transform: translateY(0) scale(0.99);
}

.hero-note {
  margin: 18px 0 0;
  font-size: 0.8rem;
  color: rgba(154, 167, 199, 0.85);
  max-width: 48ch;
  line-height: 1.45;
}

.hero-card::before {
  content: "";
  position: absolute;
  inset: -40% -20%;
  background: conic-gradient(from 180deg at 50% 50%, rgba(217, 75, 255, 0.22), transparent, rgba(79, 224, 255, 0.18), transparent);
  animation: spin 18s linear infinite;
  opacity: 0.65;
}

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

.hero-card > * {
  position: relative;
  z-index: 1;
}

.hero-card h2 {
  margin: 0 0 10px;
  font-size: clamp(1.6rem, 2.4vw, 2.2rem);
  line-height: 1.15;
}

.hero-card p {
  margin: 0 0 18px;
  color: var(--muted);
  max-width: 46ch;
  line-height: 1.55;
}

.search {
  display: flex;
  gap: 10px;
  margin-bottom: 22px;
  flex-wrap: wrap;
}

.search input {
  flex: 1 1 240px;
  border-radius: 14px;
  border: 1px solid var(--stroke);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  padding: 14px 16px;
  outline: none;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.search input:focus {
  border-color: rgba(79, 224, 255, 0.45);
  box-shadow: 0 0 0 3px rgba(79, 224, 255, 0.12);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 22px;
}

.chip {
  border-radius: 999px;
  padding: 10px 14px;
  border: 1px solid var(--stroke);
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease), transform 0.2s var(--ease), background 0.2s var(--ease);
}

.chip[aria-selected="true"] {
  color: #0b0f1a;
  border-color: transparent;
  background: linear-gradient(120deg, var(--cyan), var(--magenta));
}

.chip:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.12);
}

.section {
  margin-top: 30px;
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.section-head h2 {
  margin: 0;
  font-size: 1.15rem;
}

.section-head .controls {
  display: flex;
  gap: 8px;
  align-items: center;
}

.section-head a {
  color: var(--cyan);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9rem;
}

.arrow {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  border: 1px solid var(--stroke);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  cursor: pointer;
  transition: border-color 0.2s var(--ease), transform 0.15s var(--ease);
}

.arrow:hover {
  border-color: rgba(217, 75, 255, 0.35);
}

.arrow:active {
  transform: scale(0.96);
}

.track-wrap {
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--stroke);
  background: rgba(255, 255, 255, 0.02);
}

.track {
  display: flex;
  gap: 14px;
  padding: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
}

.track::-webkit-scrollbar {
  height: 8px;
}

.track::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.12);
  border-radius: 999px;
}

.game {
  flex: 0 0 clamp(150px, 16vw, 190px);
  scroll-snap-align: start;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: #0d1220;
  text-decoration: none;
  color: var(--text);
  position: relative;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.25s var(--ease);
}

.game img {
  display: block;
  width: 100%;
  height: 220px;
  object-fit: cover;
  filter: saturate(1.05) contrast(1.02);
  transition: transform 0.45s var(--ease), filter 0.35s var(--ease);
}

.game::after {
  content: "Играть";
  position: absolute;
  inset: auto 10px 10px 10px;
  padding: 10px;
  text-align: center;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: 12px;
  color: #0b0f1a;
  background: linear-gradient(120deg, #7cf6ff, #d94bff);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
}

.game:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.55);
  border-color: rgba(217, 75, 255, 0.45);
}

.game:hover img {
  transform: scale(1.06);
}

.game:hover::after {
  opacity: 1;
  transform: translateY(0);
}

.game figcaption {
  padding: 10px 12px 12px;
  display: grid;
  gap: 4px;
}

.game figcaption strong {
  font-size: 0.92rem;
}

.game figcaption span {
  font-size: 0.75rem;
  color: var(--muted);
}

.ticker {
  margin: 22px 0;
  border-radius: var(--radius);
  border: 1px solid var(--stroke);
  background: rgba(255, 255, 255, 0.02);
  overflow: hidden;
}

.ticker-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border-bottom: 1px solid var(--stroke);
}

.marquee {
  display: flex;
  gap: 12px;
  padding: 12px;
  animation: marquee 28s linear infinite;
  width: max-content;
}

@keyframes marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .marquee {
    animation: none;
  }

  .hero-card::before {
    animation: none;
  }

  .jackpot::before {
    animation: none;
  }

  .brand-mark {
    animation: none;
  }
}

.win {
  min-width: 240px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(12, 16, 30, 0.75);
  padding: 12px;
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 10px;
  align-items: center;
}

.win img {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  object-fit: cover;
}

.win b {
  color: var(--ok);
  letter-spacing: 0.02em;
}

.jackpot {
  margin: 22px 0 30px;
  border-radius: calc(var(--radius) + 4px);
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: radial-gradient(900px 240px at 20% 0%, rgba(217, 75, 255, 0.35), transparent 60%), linear-gradient(120deg, rgba(40, 20, 80, 0.9), rgba(10, 14, 26, 0.95));
  position: relative;
  overflow: hidden;
}

.jackpot::before {
  content: "";
  position: absolute;
  inset: -30%;
  background: linear-gradient(110deg, transparent, rgba(255, 255, 255, 0.08), transparent);
  transform: translateX(-40%);
  animation: sheen 5.5s ease-in-out infinite;
}

@keyframes sheen {
  0%,
  100% {
    transform: translateX(-45%);
  }
  50% {
    transform: translateX(45%);
  }
}

.jackpot h3 {
  margin: 0 0 8px;
  font-size: 1rem;
  color: #efe6ff;
}

.jackpot .sum {
  margin: 0;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 900;
  letter-spacing: 0.02em;
}

.jackpot p {
  margin: 10px 0 0;
  color: rgba(255, 255, 255, 0.75);
  max-width: 60ch;
}

article.atom-guide {
  margin-top: 10px;
  padding: 26px;
  border-radius: calc(var(--radius) + 6px);
  border: 1px solid var(--stroke);
  background: rgba(255, 255, 255, 0.02);
  line-height: 1.75;
  color: #dbe3ff;
}

article.atom-guide h2,
article.atom-guide h3 {
  color: var(--text);
  margin-top: 1.6rem;
}

article.atom-guide h2:first-child,
article.atom-guide h3:first-child {
  margin-top: 0;
}

article.atom-guide p {
  margin: 0.85rem 0;
}

article.atom-guide ul {
  margin: 0.6rem 0 0.6rem 1.1rem;
}

.reveal {
  opacity: 1;
  transform: none;
}

footer.site-foot {
  margin-top: 26px;
  padding: 22px;
  border-top: 1px solid var(--stroke);
  color: var(--muted);
  font-size: 0.9rem;
}

footer.site-foot a {
  color: var(--cyan);
}
