:root {
  --leaf-deep: #0b1224;
  --leaf-mid: #152042;
  --leaf-soft: #38bdf8;
  --sprout: #22d3ee;
  --cream: #f8fafc;
  --cream-dark: #e2e8f0;
  --earth: #334155;
  --sun: #f472b6;
  --sky: #cffafe;
  --header-height: 72px;
  --radius-lg: 16px;
  --radius-md: 10px;
  --shadow-soft: 0 14px 44px rgba(11, 18, 36, 0.18);
  --font-display: "Outfit", system-ui, sans-serif;
  --font-body: "Source Sans 3", system-ui, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--earth);
  background: radial-gradient(1200px 600px at 10% -10%, rgba(34, 211, 238, 0.22), transparent 55%),
    radial-gradient(900px 500px at 90% 20%, rgba(244, 114, 182, 0.16), transparent 50%),
    linear-gradient(168deg, var(--cream) 0%, var(--sky) 42%, var(--cream-dark) 100%);
  min-height: 100vh;
  overflow-x: hidden !important;
}

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

a {
  color: var(--leaf-mid);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--leaf-deep);
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  color: var(--leaf-deep);
  line-height: 1.2;
  font-weight: 600;
}

.page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.page__main {
  flex: 1;
}

.layout-container {
  width: min(1120px, 92vw);
  margin-inline: auto;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-height);
  background: rgba(11, 18, 36, 0.9);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(34, 211, 238, 0.22);
}

.site-header__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.site-header__brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--cream);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.site-header__brand:hover {
  color: var(--sprout);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-menu a {
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  color: rgba(248, 250, 252, 0.88);
}

.nav-menu a:hover {
  color: var(--sprout);
}

.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: none;
  background: transparent;
  cursor: pointer;
  border-radius: var(--radius-md);
}

.burger span {
  display: block;
  height: 2px;
  background: var(--cream);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.2s;
}

.burger.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.burger.active span:nth-child(2) {
  opacity: 0;
}

.burger.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 880px) {
  .site-header__inner {
    position: relative;
    justify-content: space-between;
  }

  .site-header__inner nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    width: 100%;
    height: 0;
    margin: 0;
    padding: 0;
    overflow: visible;
    pointer-events: none;
  }

  .burger {
    display: flex;
    flex-shrink: 0;
    margin-left: auto;
  }

  .nav-menu {
    position: fixed;
    top: calc(var(--header-height) - 1px);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    padding: 1rem 1.25rem 1.5rem;
    background: rgba(11, 18, 36, 0.97);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(34, 211, 238, 0.2);
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.28s ease, opacity 0.28s ease;
  }

  .nav-menu.active {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-menu a {
    padding: 0.65rem 0;
    border-bottom: 1px solid rgba(148, 163, 184, 0.15);
  }
}

.hero {
  padding-top: calc(var(--header-height) + 3.5rem);
  padding-bottom: 3rem;
  text-align: center;
}

.hero__eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--leaf-soft);
  margin-bottom: 0.75rem;
}

.hero__title {
  font-size: clamp(2rem, 4.5vw, 2.85rem);
  max-width: 18ch;
  margin: 0 auto 1rem;
}

.hero__lead {
  max-width: 52ch;
  margin: 0 auto 2.5rem;
  font-size: 1.1rem;
  color: var(--earth);
}

.games-section {
  margin-bottom: 4rem;
}

.games-section__heading {
  text-align: center;
  margin-bottom: 0.5rem;
}

.games-section__sub {
  text-align: center;
  max-width: 48ch;
  margin: 0 auto 2rem;
  color: var(--earth);
}

.games-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.35rem;
}

@media (min-width: 1000px) {
  .games-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

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

.game-card {
  border: none;
  padding: 0;
  margin: 0;
  text-align: left;
  cursor: pointer;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(12px);
  box-shadow: 0 0 0 1px rgba(34, 211, 238, 0.35), var(--shadow-soft);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
  font: inherit;
  color: inherit;
}

.game-card:hover,
.game-card:focus-visible {
  transform: translateY(-4px);
  box-shadow: 0 0 0 1px rgba(244, 114, 182, 0.55), 0 20px 52px rgba(11, 18, 36, 0.22);
  outline: 2px solid var(--sprout);
  outline-offset: 2px;
}

.game-card__media {
  aspect-ratio: 1;
  overflow: hidden;
}

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

.game-card__body {
  padding: 1rem 1.15rem 1.25rem;
}

.game-card__title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  margin: 0 0 0.35rem;
  color: var(--leaf-deep);
}

.game-card__hint {
  margin: 0;
  font-size: 0.9rem;
  color: var(--earth);
}

.section-block {
  padding: 3rem 0;
}

.section-block__title {
  text-align: center;
  margin: 0 0 4rem;
  font-size: clamp(1.6rem, 3vw, 2rem);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.feature-card {
  padding: 1.75rem;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(34, 211, 238, 0.2);
  box-shadow: var(--shadow-soft);
}

.feature-card__title {
  margin: 0 0 0.65rem;
  font-size: 1.25rem;
}

.feature-card p {
  margin: 0;
}

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

.faq {
  max-width: 720px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid rgba(51, 65, 85, 0.18);
}

.faq-question {
  width: 100%;
  text-align: left;
  padding: 1.1rem 0;
  font: inherit;
  font-weight: 700;
  color: var(--leaf-deep);
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.faq-question::after {
  content: "+";
  font-size: 1.25rem;
  color: var(--leaf-soft);
  flex-shrink: 0;
}

.faq-item.active .faq-question::after {
  content: "−";
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

.faq-item.active .faq-answer {
  max-height: 480px;
}

.faq-answer-inner {
  padding-bottom: 1.1rem;
  color: var(--earth);
}

.cta-band {
  margin: 3rem 0 4rem;
  padding: 2.5rem 1.5rem;
  text-align: center;
  border-radius: var(--radius-lg);
  background: linear-gradient(125deg, var(--leaf-deep), var(--leaf-mid) 45%, #0e7490);
  color: var(--cream);
  box-shadow: var(--shadow-soft);
}

.cta-band h2 {
  color: var(--cream);
  margin: 0 0 0.5rem;
}

.cta-band p {
  margin: 0 0 1.25rem;
  opacity: 0.95;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.75rem;
  font-weight: 700;
  font-size: 1rem;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn:focus-visible {
  outline: 2px solid var(--sun);
  outline-offset: 3px;
}

.btn--primary {
  background: var(--sun);
  color: var(--leaf-deep);
  box-shadow: 0 4px 0 rgba(11, 18, 36, 0.2);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 0 rgba(11, 18, 36, 0.2);
}

.btn--ghost {
  background: rgba(255, 255, 255, 0.2);
  color: var(--cream);
  border: 2px solid rgba(255, 255, 255, 0.5);
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.3);
}

.site-footer {
  background: var(--leaf-deep);
  color: var(--cream);
  padding: 2.5rem 0 2rem;
  margin-top: auto;
}

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

.site-footer__grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 2rem;
}

@media (max-width: 768px) {
  .site-footer__grid {
    grid-template-columns: 1fr;
  }
}

.site-footer__title {
  font-family: var(--font-display);
  color: var(--cream);
  margin: 0 0 0.75rem;
}

.site-footer p {
  margin: 0;
  opacity: 0.9;
  font-size: 0.95rem;
}

.footer-nav {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-nav li {
  margin-bottom: 0.45rem;
}

.footer-nav a {
  text-decoration: none;
}

.site-footer__bottom {
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 0.85rem;
  opacity: 0.85;
}

.cookie-consent {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 200;
  max-width: 360px;
  padding: 1.25rem;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(34, 211, 238, 0.25);
}

.cookie-consent p {
  margin: 0 0 1rem;
  font-size: 0.9rem;
}

.cookie-consent a {
  font-weight: 600;
}

.page-header-block {
  padding-top: calc(var(--header-height) + 2.5rem);
  padding-bottom: 2rem;
}

.page-header-block h1 {
  margin: 0 0 0.5rem;
}

.page-header-block .lead {
  margin: 0;
  max-width: 60ch;
}

.content-narrow {
  max-width: 720px;
}

.content-narrow.wide {
  max-width: 820px;
}

.prose {
  padding-bottom: 3rem;
}

.prose h2 {
  margin-top: 2rem;
}

.prose ul {
  padding-left: 1.25rem;
}

.contact-form {
  display: grid;
  gap: 1rem;
  max-width: 520px;
}

.contact-form label {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--leaf-deep);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(51, 65, 85, 0.28);
  font: inherit;
  background: rgba(255, 255, 255, 0.9);
}

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

.form-status {
  margin-top: 0.5rem;
  font-weight: 600;
  color: var(--leaf-soft);
  min-height: 1.5rem;
}

.blog-grid {
  display: grid;
  gap: 2rem;
  padding-bottom: 3rem;
}

.blog-card {
  display: grid;
  grid-template-columns: minmax(0, 220px) 1fr;
  gap: 1.5rem;
  padding: 1.25rem;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.68);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(34, 211, 238, 0.18);
  box-shadow: var(--shadow-soft);
}

@media (max-width: 640px) {
  .blog-card {
    grid-template-columns: 1fr;
  }
}

.blog-card__thumb {
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--cream-dark);
}

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

.category-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--leaf-soft);
  margin-bottom: 0.35rem;
}

.blog-card-content h2 {
  margin: 0 0 0.5rem;
  font-size: 1.35rem;
}

.blog-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.9rem;
  color: var(--earth);
  margin: 0.75rem 0 1rem;
}

.btn-read {
  display: inline-block;
  font-weight: 700;
  text-decoration: none;
  color: var(--leaf-deep);
  border-bottom: 2px solid var(--sprout);
  padding-bottom: 2px;
}

.btn-read:hover {
  color: var(--leaf-mid);
}

.article-page {
  padding-bottom: 3rem;
}

.article-header {
  padding-top: calc(var(--header-height) + 2.5rem);
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(51, 65, 85, 0.15);
  margin-bottom: 2rem;
}

.article-header h1 {
  margin: 0 0 0.75rem;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.95rem;
  color: var(--earth);
}

.article-content section {
  margin-bottom: 1.75rem;
}

.article-cta {
  margin-top: 2.5rem;
  padding: 1.75rem;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(34, 211, 238, 0.2);
  text-align: center;
}

.article-footer {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(51, 65, 85, 0.15);
}

.article-navigation {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
}

.article-nav-muted {
  color: rgba(51, 65, 85, 0.42);
  font-weight: 600;
}

.game-modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.game-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.game-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 12, 24, 0.78);
  cursor: pointer;
}

.game-modal__panel {
  position: relative;
  z-index: 1;
  width: min(960px, 100%);
  max-height: min(90vh, 820px);
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-lg);
  background: var(--cream);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
  overflow: hidden;
}

.game-modal__toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 1rem;
  background: var(--leaf-deep);
  color: var(--cream);
}

.game-modal__title {
  margin: 0;
  font-size: 1rem;
  font-family: var(--font-body);
  font-weight: 700;
  color: var(--cream);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.game-modal__close {
  flex-shrink: 0;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  border: none;
  font-weight: 700;
  cursor: pointer;
  background: var(--sun);
  color: var(--leaf-deep);
}

.game-modal__iframe-wrap {
  flex: 1;
  min-height: 0;
  background: #0b1020;
}

.game-modal__frame {
  width: 100%;
  height: min(72vh, 640px);
  border: none;
  display: block;
}

@media (max-width: 640px) {
  .game-modal__frame {
    height: min(65vh, 520px);
  }
}
