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

:root {
  --header-height: 72px;
  --cream: #fff8f2;
  --cream-deep: #ffefe4;
  --ink: #2a1f3d;
  --ink-muted: #5c4d6e;
  --coral: #ff6b6b;
  --coral-dark: #e85555;
  --mint: #2dd4bf;
  --mint-dark: #14b8a6;
  --lilac: #a78bfa;
  --sun: #fcd34d;
  --white: #ffffff;
  --shadow: rgba(42, 31, 61, 0.12);
  --shadow-strong: rgba(42, 31, 61, 0.2);
}

*,
*::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: "Source Sans 3", system-ui, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink-muted);
  background-color: var(--cream);
  background-image:
    radial-gradient(circle at 12% 18%, rgba(255, 107, 107, 0.12) 0, transparent 42%),
    radial-gradient(circle at 88% 8%, rgba(167, 139, 250, 0.14) 0, transparent 40%),
    radial-gradient(circle at 70% 92%, rgba(45, 212, 191, 0.1) 0, transparent 45%),
    radial-gradient(var(--ink) 0.8px, transparent 0.8px);
  background-size:
    100% 100%,
    100% 100%,
    100% 100%,
    18px 18px;
  background-position: 0 0, 0 0, 0 0, 0 0;
}

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

h1,
h2,
h3,
.section-head__title,
.blog-head__title {
  font-family: "Fredoka", system-ui, sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
}

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

a:hover {
  text-decoration: underline;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  width: 100%;
  height: var(--header-height);
  padding: 0;
  margin: 0;
  background: rgba(255, 248, 242, 0.92);
  border-bottom: 1px solid rgba(42, 31, 61, 0.08);
  box-shadow: 0 4px 20px var(--shadow);
  backdrop-filter: blur(14px);
}

.site-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;
}

.site-header__brand {
  font-family: "Fredoka", system-ui, sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--ink);
}

.site-header__brand:hover {
  color: var(--coral);
  text-decoration: none;
}

.site-header__menu-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: var(--white);
  border: 1px solid rgba(42, 31, 61, 0.12);
  border-radius: 12px;
  cursor: pointer;
}

.site-header__menu-btn span {
  display: block;
  height: 2px;
  background: var(--ink);
  border-radius: 1px;
  transition: transform 0.25s, opacity 0.25s;
}

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

.site-header__menu-btn.is-active span:nth-child(2) {
  opacity: 0;
}

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

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

.site-header__nav a {
  color: var(--ink-muted);
  font-size: 0.95rem;
  font-weight: 600;
}

.site-header__nav a:hover {
  color: var(--ink);
}

.site-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;
}

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

.hero__title {
  margin: 0 0 1rem;
  font-size: clamp(1.85rem, 4.5vw, 2.65rem);
  color: var(--ink);
}

.hero__lead {
  margin: 0 auto 1.75rem;
  max-width: 34rem;
  color: var(--ink-muted);
  font-size: 1.08rem;
}

.btn {
  display: inline-block;
  font-family: "Fredoka", system-ui, sans-serif;
  font-weight: 700;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.15s, filter 0.15s;
}

.btn--primary {
  padding: 1rem 2.5rem;
  font-size: 1.15rem;
  color: var(--white);
  background: linear-gradient(180deg, var(--coral) 0%, var(--coral-dark) 100%);
  box-shadow: 0 4px 0 #b84444, 0 10px 24px var(--shadow-strong);
}

.btn--primary:hover {
  transform: translateY(-2px);
  filter: brightness(1.03);
  text-decoration: none;
  color: var(--white);
}

.btn--primary:active {
  transform: translateY(1px);
  box-shadow: 0 2px 0 #b84444;
}

.btn--play {
  padding: 0.55rem 1.35rem;
  font-size: 0.95rem;
  color: var(--white);
  background: linear-gradient(180deg, var(--mint) 0%, var(--mint-dark) 100%);
  box-shadow: 0 3px 0 #0d9488, 0 6px 16px var(--shadow);
}

.btn--play:hover {
  transform: translateY(-1px);
  filter: brightness(1.04);
  text-decoration: none;
  color: var(--white);
}

.section {
  margin-bottom: 4rem;
}

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

.games-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.5rem;
}

.game-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid rgba(42, 31, 61, 0.08);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 8px 28px var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
}

.game-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px var(--shadow-strong);
}

.game-card__media {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--cream-deep);
}

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

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

.game-card__title {
  margin: 0 0 0.45rem;
  font-size: 1.1rem;
  color: var(--ink);
  font-family: "Fredoka", system-ui, sans-serif;
  font-weight: 600;
}

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

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

.feature-card {
  padding: 1.5rem;
  background: var(--white);
  border-radius: 16px;
  border: 1px solid rgba(42, 31, 61, 0.08);
  box-shadow: 0 6px 20px var(--shadow);
}

.feature-card__title {
  margin: 0 0 0.65rem;
  font-size: 1.1rem;
  color: var(--coral);
  font-family: "Fredoka", system-ui, sans-serif;
  font-weight: 600;
}

.feature-card__text {
  margin: 0;
  color: var(--ink-muted);
  font-size: 0.95rem;
}

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

.faq__item {
  border: 1px solid rgba(42, 31, 61, 0.1);
  border-radius: 12px;
  margin-bottom: 0.65rem;
  overflow: hidden;
  background: var(--white);
  box-shadow: 0 4px 14px var(--shadow);
}

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

.faq__trigger::after {
  content: "+";
  font-size: 1.25rem;
  color: var(--lilac);
  flex-shrink: 0;
}

.faq__item.is-open .faq__trigger::after {
  content: "−";
}

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

.faq__item.is-open .faq__panel {
  max-height: 1200px;
}

.faq__panel-inner {
  padding: 0 1.15rem 1.1rem;
  color: var(--ink-muted);
  font-size: 0.95rem;
}

.cta-band {
  text-align: center;
  padding: 2.5rem 1.5rem;
  background: linear-gradient(135deg, rgba(252, 211, 77, 0.35), rgba(167, 139, 250, 0.25));
  border-radius: 20px;
  border: 1px solid rgba(42, 31, 61, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.cta-band__title {
  margin: 0 0 1rem;
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  color: var(--ink);
}

.site-footer {
  margin-top: auto;
  padding: 0;
  width: 100%;
  background: linear-gradient(180deg, var(--cream-deep) 0%, #ffe8dc 100%);
  border-top: 1px solid rgba(42, 31, 61, 0.08);
  color: var(--ink-muted);
  font-size: 0.9rem;
}

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

.site-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;
}

.site-footer__logo {
  font-family: "Fredoka", system-ui, sans-serif;
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--ink);
  display: inline-block;
  margin-bottom: 0.75rem;
}

.site-footer__logo:hover {
  color: var(--coral);
  text-decoration: none;
}

.site-footer__tagline {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--ink-muted);
  max-width: 28rem;
}

.site-footer__heading {
  margin: 0 0 1rem;
  font-family: "Fredoka", system-ui, sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--coral);
}

.site-footer__heading--spaced {
  margin-top: 1.5rem;
}

.site-footer__list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer__list li {
  margin-bottom: 0.5rem;
}

.site-footer__list a {
  color: var(--ink-muted);
  font-size: 0.92rem;
  text-decoration: none;
}

.site-footer__list a:hover {
  color: var(--ink);
  text-decoration: underline;
}

.site-footer__note {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.55;
  color: var(--ink-muted);
}

.site-footer__bottom {
  padding-top: 1.5rem;
  border-top: 1px solid rgba(42, 31, 61, 0.08);
  text-align: center;
}

.site-footer__bottom p {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.5;
}

.cookie-banner {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 150;
  max-width: 320px;
  padding: 1rem 1.15rem;
  background: var(--white);
  border: 1px solid rgba(42, 31, 61, 0.1);
  border-radius: 14px;
  box-shadow: 0 12px 40px var(--shadow-strong);
}

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

.cookie-banner button {
  padding: 0.45rem 1rem;
  font-weight: 600;
  font-family: inherit;
  color: var(--white);
  background: var(--mint-dark);
  border: none;
  border-radius: 8px;
  cursor: pointer;
}

.game-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(42, 31, 61, 0.55);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s, visibility 0.25s;
}

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

.game-modal__dialog {
  width: min(960px, 100%);
  height: min(85vh, 720px);
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid rgba(42, 31, 61, 0.12);
  border-radius: 16px;
  box-shadow: 0 24px 64px var(--shadow-strong);
  transform: scale(0.96);
  transition: transform 0.25s;
}

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

.game-modal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.65rem 1rem;
  border-bottom: 1px solid rgba(42, 31, 61, 0.08);
}

.game-modal__title {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: "Fredoka", system-ui, sans-serif;
}

.game-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(--ink-muted);
  background: var(--cream);
  border: 1px solid rgba(42, 31, 61, 0.12);
  border-radius: 8px;
  cursor: pointer;
}

.game-modal__close:hover {
  color: var(--ink);
  border-color: var(--coral);
}

.game-modal__viewport {
  flex: 1;
  min-height: 0;
  position: relative;
  background: #0f172a;
  border-radius: 0 0 16px 16px;
  overflow: hidden;
}

.game-modal__iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.game-modal__fallback {
  padding: 0.65rem 1rem;
  font-size: 0.82rem;
  text-align: center;
  color: var(--ink-muted);
  border-top: 1px solid rgba(42, 31, 61, 0.08);
  background: var(--cream);
}

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

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

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

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

.page-article .article-content h2 {
  color: var(--coral);
  font-size: 1.25rem;
  font-family: "Fredoka", system-ui, sans-serif;
}

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

.article-cta {
  margin-top: 2.5rem;
  padding: 1.5rem;
  text-align: center;
  background: var(--white);
  border-radius: 14px;
  border: 1px solid rgba(42, 31, 61, 0.08);
  box-shadow: 0 8px 24px var(--shadow);
}

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

.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(42, 31, 61, 0.1);
  font-size: 0.9rem;
}

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

.blog-head__title {
  margin: 0 0 0.85rem;
  font-size: clamp(1.85rem, 4.5vw, 2.4rem);
}

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

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

.blog-card {
  display: flex;
  flex-direction: column;
  border-radius: 20px;
  overflow: hidden;
  background: var(--white);
  border: 1px solid rgba(42, 31, 61, 0.08);
  box-shadow: 0 8px 28px var(--shadow);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.blog-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 48px var(--shadow-strong);
}

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

.blog-card__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(42, 31, 61, 0.35) 100%);
  pointer-events: none;
}

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

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

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

.blog-card__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(--white);
  background: var(--lilac);
  border-radius: 6px;
  align-self: flex-start;
}

.blog-card__body h3 {
  margin: 0.35rem 0 0.5rem;
  color: var(--ink);
  font-size: 1.15rem;
  line-height: 1.3;
  font-family: "Fredoka", system-ui, sans-serif;
  font-weight: 600;
}

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

.blog-card__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1rem;
  font-size: 0.8rem;
  color: var(--ink-muted);
  margin-top: 0.35rem;
  padding-top: 0.65rem;
  border-top: 1px solid rgba(42, 31, 61, 0.08);
}

.blog-card__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: "Fredoka", system-ui, sans-serif;
  color: var(--white);
  background: linear-gradient(180deg, var(--coral) 0%, var(--coral-dark) 100%);
  border-radius: 999px;
  text-decoration: none;
  font-size: 0.88rem;
  box-shadow: 0 3px 0 #b84444, 0 6px 16px var(--shadow);
  transition: transform 0.15s, filter 0.15s;
}

.blog-card__read:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
  text-decoration: none;
  color: var(--white);
}

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

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

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

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

.contact-form button[type="submit"] {
  padding: 0.65rem 1.5rem;
  font-weight: 700;
  font-family: "Fredoka", system-ui, sans-serif;
  color: var(--white);
  background: linear-gradient(180deg, var(--mint) 0%, var(--mint-dark) 100%);
  border: none;
  border-radius: 10px;
  cursor: pointer;
  box-shadow: 0 3px 0 #0d9488;
}

.form-success {
  display: none;
  padding: 1rem;
  margin-top: 1rem;
  background: rgba(45, 212, 191, 0.15);
  border: 1px solid var(--mint-dark);
  border-radius: 10px;
  color: var(--mint-dark);
  font-weight: 600;
}

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

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

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

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

@media (max-width: 768px) {
  .site-header__menu-btn {
    display: flex;
  }

  .site-header__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(255, 248, 242, 0.98);
    border-bottom: 1px solid rgba(42, 31, 61, 0.08);
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.3s, opacity 0.3s;
    box-shadow: 0 12px 32px var(--shadow);
  }

  .site-header__nav.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .site-header__nav a {
    padding: 0.5rem 0;
  }

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

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

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

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

  .site-footer__tagline {
    max-width: none;
  }

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