@import url("https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,400;0,600;0,700;1,400&family=Quicksand:wght@500;600;700&display=swap");

:root {
  --header-height: 72px;
  --bubble-blue: #4da3f0;
  --candy-pink: #ff6eb6;
  --sunshine-yellow: #ffd54a;
  --grass-green: #4ecf7a;
  --berry-purple: #9b7af0;
  --ink: #1a1530;
  --ink-soft: #2d2648;
  --text-body: #e8e4f5;
  --text-muted: #a89cc8;
  --white: #ffffff;
  --shadow-deep: rgba(26, 21, 48, 0.45);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  max-width: 100%;
}

html,
body {
  overflow-x: hidden !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: "Open Sans", system-ui, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-body);
  background-color: var(--ink);
  background-image:
    radial-gradient(ellipse 100% 80% at 10% 0%, rgba(77, 163, 240, 0.35), transparent 55%),
    radial-gradient(ellipse 80% 60% at 90% 20%, rgba(255, 110, 182, 0.3), transparent 50%),
    radial-gradient(ellipse 70% 50% at 50% 100%, rgba(155, 122, 240, 0.25), transparent 45%),
    linear-gradient(165deg, var(--ink) 0%, #120e24 50%, var(--ink-soft) 100%);
  background-size: 200% 200%;
  animation: mesh-shift 18s ease-in-out infinite;
}

@keyframes mesh-shift {
  0%,
  100% {
    background-position: 0% 40%, 100% 60%, 50% 100%, 0 0;
  }
  50% {
    background-position: 100% 0%, 0% 80%, 50% 0%, 0 0;
  }
}

body.is-modal-open {
  overflow: hidden;
}

h1,
h2,
h3,
.module-section-title {
  font-family: "Quicksand", system-ui, sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
}

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

a:hover {
  text-decoration: underline;
}

.layout-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  width: 100%;
  height: var(--header-height);
  padding: 0;
  margin: 0;
  background: linear-gradient(180deg, rgba(18, 14, 32, 0.97) 0%, rgba(26, 21, 48, 0.92) 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(16px);
}

.layout-header-inner {
  width: 100%;
  max-width: none;
  height: 100%;
  margin: 0;
  padding: 0 clamp(1rem, 4vw, 2.75rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.layout-brand {
  font-family: "Quicksand", system-ui, sans-serif;
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--white);
}

.layout-brand:hover {
  color: var(--sunshine-yellow);
  text-decoration: none;
}

.module-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  cursor: pointer;
}

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

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

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

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

.module-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 1.25rem;
}

.module-nav a {
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 600;
}

.module-nav a:hover {
  color: var(--white);
}

.layout-main {
  flex: 1;
  width: 100%;
  padding-top: calc(var(--header-height) + 2rem);
  padding-bottom: 3rem;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
  max-width: 1120px;
  margin: 0 auto;
}

.module-hero {
  text-align: center;
  padding: 2rem 0 3rem;
}

.module-hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(1.85rem, 4.5vw, 2.65rem);
  color: var(--white);
  text-shadow: 0 2px 24px var(--shadow-deep);
}

.module-hero .lead {
  margin: 0 auto 1.75rem;
  max-width: 32rem;
  color: var(--text-muted);
  font-size: 1.08rem;
}

.module-btn-play {
  display: inline-block;
  padding: 1rem 2.75rem;
  font-family: "Quicksand", system-ui, sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--ink);
  background: linear-gradient(180deg, var(--sunshine-yellow) 0%, #f0b429 45%, #d99a1c 100%);
  border: none;
  border-radius: 999px;
  cursor: pointer;
  text-decoration: none;
  box-shadow:
    0 4px 0 #a67a0f,
    0 8px 24px rgba(0, 0, 0, 0.35);
  transition: transform 0.15s, box-shadow 0.15s;
}

.module-btn-play:hover {
  transform: translateY(-2px);
  box-shadow:
    0 5px 0 #a67a0f,
    0 12px 28px rgba(0, 0, 0, 0.4);
  text-decoration: none;
  color: var(--ink);
}

.module-btn-play:active {
  transform: translateY(2px);
  box-shadow: 0 2px 0 #a67a0f;
}

.module-section-title {
  margin: 0 0 4rem;
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: var(--white);
  text-align: center;
}

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

.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.module-game-card {
  display: flex;
  flex-direction: column;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.module-game-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 213, 74, 0.45);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}

.module-game-card__media {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--ink-soft);
}

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

.module-game-card__body {
  padding: 1.1rem 1.2rem 1.25rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.module-game-card__title {
  margin: 0 0 0.45rem;
  font-size: 1.1rem;
  color: var(--white);
}

.module-game-card__desc {
  margin: 0 0 1rem;
  flex: 1;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.module-game-card .module-btn-play {
  align-self: flex-start;
  padding: 0.55rem 1.35rem;
  font-size: 0.95rem;
  box-shadow:
    0 3px 0 #7a5a0c,
    0 6px 16px rgba(0, 0, 0, 0.3);
}

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

.module-feature-card {
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.07);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.module-feature-card h3 {
  margin: 0 0 0.65rem;
  font-size: 1.1rem;
  color: var(--sunshine-yellow);
}

.module-feature-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

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

.module-faq-item {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  margin-bottom: 0.65rem;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.2);
}

.module-faq-question {
  width: 100%;
  padding: 1rem 1.15rem;
  text-align: left;
  font-family: "Quicksand", system-ui, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--white);
  background: transparent;
  border: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

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

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

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

.module-faq-item.is-active .module-faq-answer {
  max-height: 1200px;
}

.module-faq-answer-inner {
  padding: 0 1.15rem 1.1rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.module-cta-band {
  text-align: center;
  padding: 2.5rem 1.5rem;
  background: linear-gradient(135deg, rgba(77, 163, 240, 0.2), rgba(155, 122, 240, 0.2));
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.module-cta-band h2 {
  margin: 0 0 1rem;
  color: var(--white);
}

.layout-footer {
  margin-top: auto;
  padding: 0;
  width: 100%;
  background: linear-gradient(180deg, rgba(12, 10, 22, 0.6) 0%, rgba(8, 6, 16, 0.92) 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-muted);
  font-size: 0.9rem;
}

.layout-footer-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 2.75rem clamp(1rem, 4vw, 1.5rem) 1.25rem;
}

.layout-footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 2rem 2.5rem;
  margin-bottom: 2.25rem;
}

.layout-footer-logo {
  font-family: "Quicksand", system-ui, sans-serif;
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--white);
  display: inline-block;
  margin-bottom: 0.75rem;
}

.layout-footer-logo:hover {
  color: var(--sunshine-yellow);
  text-decoration: none;
}

.layout-footer-tagline {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--text-muted);
  max-width: 28rem;
}

.layout-footer-heading {
  margin: 0 0 1rem;
  font-family: "Quicksand", system-ui, sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--sunshine-yellow);
}

.layout-footer-heading--spaced {
  margin-top: 1.5rem;
}

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

.layout-footer-list li {
  margin-bottom: 0.5rem;
}

.layout-footer-list a {
  color: var(--text-body);
  font-size: 0.92rem;
  text-decoration: none;
}

.layout-footer-list a:hover {
  color: var(--sunshine-yellow);
  text-decoration: underline;
}

.layout-footer-note {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.55;
  color: var(--text-muted);
}

.layout-footer-bottom {
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
}

.layout-footer-bottom p {
  margin: 0;
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.module-cookie {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 150;
  max-width: 320px;
  padding: 1rem 1.15rem;
  background: rgba(26, 21, 48, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 14px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.module-cookie p {
  margin: 0 0 0.75rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.module-cookie button {
  padding: 0.45rem 1rem;
  font-weight: 600;
  font-family: inherit;
  color: var(--ink);
  background: var(--grass-green);
  border: none;
  border-radius: 8px;
  cursor: pointer;
}

.module-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(10, 8, 20, 0.9);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s, visibility 0.25s;
}

.module-modal.is-open {
  opacity: 1;
  visibility: visible;
}

.module-modal__dialog {
  width: min(960px, 100%);
  height: min(85vh, 720px);
  display: flex;
  flex-direction: column;
  background: var(--ink-soft);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 16px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5);
  transform: scale(0.96);
  transition: transform 0.25s;
}

.module-modal.is-open .module-modal__dialog {
  transform: scale(1);
}

.module-modal__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.65rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.module-modal__title {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  color: var(--white);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.module-modal__close {
  flex-shrink: 0;
  width: 2.35rem;
  height: 2.35rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  line-height: 1;
  color: var(--text-muted);
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  cursor: pointer;
}

.module-modal__close:hover {
  color: var(--white);
  border-color: var(--candy-pink);
}

.module-modal__frame-wrap {
  flex: 1;
  min-height: 0;
  position: relative;
  background: #000;
  border-radius: 0 0 16px 16px;
  overflow: hidden;
}

.module-modal__frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.module-modal__fallback {
  padding: 0.65rem 1rem;
  font-size: 0.82rem;
  text-align: center;
  color: var(--text-muted);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.module-modal__fallback a {
  font-weight: 600;
}

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

.page-article h1 {
  color: var(--white);
}

.page-article .article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  margin-bottom: 2rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

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

.page-article .article-content h2 {
  color: var(--sunshine-yellow);
  font-size: 1.25rem;
}

.page-article .article-content p,
.page-article .article-content li {
  color: var(--text-muted);
}

.article-cta {
  margin-top: 2.5rem;
  padding: 1.5rem;
  text-align: center;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.article-cta h3 {
  margin: 0 0 1rem;
  color: var(--white);
}

.article-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.9rem;
}

.module-blog-page-head {
  margin-bottom: 2.75rem;
  text-align: center;
}

.module-blog-page-title {
  margin: 0 0 0.85rem;
  font-size: clamp(1.85rem, 4.5vw, 2.4rem);
  color: var(--white);
}

.module-blog-page-lead {
  margin: 0 auto;
  max-width: 34rem;
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--text-muted);
}

.module-blog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.75rem;
}

.module-blog-card {
  display: flex;
  flex-direction: column;
  border-radius: 20px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.module-blog-card:hover {
  transform: translateY(-6px);
  box-shadow:
    0 20px 48px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(255, 213, 74, 0.15);
  border-color: rgba(255, 213, 74, 0.35);
}

.module-blog-card__media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--ink-soft);
}

.module-blog-card__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(10, 8, 20, 0.75) 100%);
  pointer-events: none;
}

.module-blog-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.module-blog-card:hover .module-blog-card__media img {
  transform: scale(1.06);
}

.module-blog-card__body {
  padding: 1.2rem 1.35rem 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 0.35rem;
}

.category-badge {
  display: inline-block;
  padding: 0.2rem 0.55rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ink);
  background: var(--candy-pink);
  border-radius: 6px;
}

.module-blog-card .category-badge {
  align-self: flex-start;
}

.module-blog-card h3 {
  margin: 0.35rem 0 0.5rem;
  color: var(--white);
  font-size: 1.15rem;
  line-height: 1.3;
}

.module-blog-card__body > p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--text-muted);
  flex: 1;
}

.module-blog-card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.35rem;
  padding-top: 0.65rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.module-blog-card-meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.btn-read {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  margin-top: 0.85rem;
  padding: 0.55rem 1.25rem;
  font-weight: 700;
  font-family: "Quicksand", system-ui, sans-serif;
  color: var(--ink);
  background: linear-gradient(180deg, #6bb8ff 0%, var(--bubble-blue) 55%, #2d8bdb 100%);
  border-radius: 999px;
  text-decoration: none;
  font-size: 0.88rem;
  box-shadow: 0 3px 0 #1a5f8f, 0 6px 16px rgba(0, 0, 0, 0.25);
  transition: transform 0.15s, filter 0.15s;
}

.btn-read:hover {
  transform: translateY(-1px);
  filter: brightness(1.06);
  text-decoration: none;
  color: var(--ink);
}

.module-form {
  max-width: 520px;
}

.module-form label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-body);
}

.module-form input,
.module-form textarea {
  width: 100%;
  margin-bottom: 1rem;
  padding: 0.65rem 0.85rem;
  font-family: inherit;
  font-size: 1rem;
  color: var(--white);
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 10px;
}

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

.module-form button[type="submit"] {
  padding: 0.65rem 1.5rem;
  font-weight: 700;
  font-family: "Quicksand", system-ui, sans-serif;
  color: var(--ink);
  background: linear-gradient(180deg, var(--grass-green), #3daf64);
  border: none;
  border-radius: 10px;
  cursor: pointer;
}

.form-success {
  display: none;
  padding: 1rem;
  margin-top: 1rem;
  background: rgba(78, 207, 122, 0.15);
  border: 1px solid var(--grass-green);
  border-radius: 10px;
  color: var(--grass-green);
  font-weight: 600;
}

.form-success.is-visible {
  display: block;
}

@media (max-width: 1024px) and (min-width: 769px) {
  .module-blog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .module-burger {
    display: flex;
  }

  .module-nav {
    position: fixed;
    top: calc(var(--header-height) - 1px);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    padding: 1rem 1.25rem 1.25rem;
    background: rgba(26, 21, 48, 0.98);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.3s, opacity 0.3s;
  }

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

  .module-nav a {
    padding: 0.5rem 0;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .module-blog-grid {
    grid-template-columns: 1fr;
  }

  .layout-footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .layout-footer-tagline {
    max-width: none;
  }

  .module-modal__dialog {
    height: min(88vh, 100%);
  }
}
