@import url("https://fonts.googleapis.com/css2?family=Inter:wght@500;600;700&family=Roboto:wght@400;500;700&display=swap");

:root {
  --barn-red: #8b3a2a;
  --barn-deep: #6b2a1e;
  --yolk-gold: #e8a317;
  --feather-cream: #f5e6c8;
  --nest-brown: #5c3d2e;
  --meadow-green: #4a9b5c;
  --coop-sand: #ebe4d6;
  --ink: #2d1b0e;
  --muted: #6b5b4f;
  --neuro-light: #f0ebe0;
  --neuro-dark: #c8bfb0;
  --font-body: "Roboto", system-ui, sans-serif;
  --font-head: "Inter", system-ui, sans-serif;
  --radius: 14px;
  --radius-lg: 22px;
  --header-h: 76px;
  --max: 1180px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--coop-sand);
}

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

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

a {
  color: var(--barn-red);
}

a:hover {
  color: var(--meadow-green);
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.2;
  color: var(--nest-brown);
}

.neuro-card {
  background: var(--coop-sand);
  border-radius: var(--radius-lg);
  box-shadow:
    12px 12px 24px var(--neuro-dark),
    -12px -12px 24px var(--neuro-light);
}

.neuro-card:hover {
  box-shadow:
    14px 14px 28px var(--neuro-dark),
    -14px -14px 28px var(--neuro-light);
  transform: translateY(-3px);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.neuro-panel {
  background: var(--feather-cream);
  border-radius: var(--radius-lg);
  box-shadow:
    16px 16px 32px rgba(92, 61, 46, 0.25),
    -8px -8px 20px rgba(255, 255, 255, 0.7);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 70;
  min-height: var(--header-h);
  background: var(--coop-sand);
  box-shadow:
    0 4px 12px var(--neuro-dark),
    0 -2px 8px var(--neuro-light);
}

.site-header-inner {
  position: relative;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.95rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
  flex: 1 1 auto;
  text-decoration: none;
  color: var(--nest-brown);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.05rem;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  flex-shrink: 0;
  box-shadow:
    4px 4px 8px var(--neuro-dark),
    -4px -4px 8px var(--neuro-light);
}

.brand-mark svg {
  width: 100%;
  height: 100%;
  display: block;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: none;
  background: var(--coop-sand);
  cursor: pointer;
  border-radius: 10px;
  flex-shrink: 0;
  color: var(--nest-brown);
  box-shadow:
    4px 4px 8px var(--neuro-dark),
    -4px -4px 8px var(--neuro-light);
}

.nav-toggle-bar {
  display: block;
  width: 22px;
  height: 3px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle.is-open .nav-toggle-bar:nth-of-type(1) {
  transform: translateY(8px) rotate(45deg);
}

.nav-toggle.is-open .nav-toggle-bar:nth-of-type(2) {
  opacity: 0;
}

.nav-toggle.is-open .nav-toggle-bar:nth-of-type(3) {
  transform: translateY(-8px) rotate(-45deg);
}

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

.site-nav a {
  text-decoration: none;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.93rem;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--barn-red);
}

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

  .site-nav {
    display: none;
    position: fixed;
    left: 0;
    right: 0;
    top: var(--header-h);
    z-index: 65;
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem 1.25rem 1.25rem;
    background: var(--coop-sand);
    box-shadow: 0 16px 32px rgba(92, 61, 46, 0.15);
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    padding: 0.85rem 0;
    border-bottom: 1px solid rgba(92, 61, 46, 0.1);
  }

  .site-nav a:last-child {
    border-bottom: none;
  }

  .brand > span:last-child {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

main {
  flex: 1 0 auto;
}

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 2.5rem 1.25rem 4rem;
}

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

.hero-eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--meadow-green);
  margin-bottom: 0.75rem;
}

.hero h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  max-width: 22ch;
  margin: 0 auto 1rem;
}

.hero-lead {
  max-width: 58ch;
  margin: 0 auto 2rem;
  color: var(--muted);
  font-size: 1.08rem;
}

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

.games-sub {
  text-align: center;
  color: var(--muted);
  max-width: 54ch;
  margin: 0 auto 2.5rem;
}

.grid {
  display: grid;
  gap: 1.5rem;
}

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

@media (max-width: 900px) {
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

.game-card {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-align: left;
  transition: transform 0.2s ease;
}

.game-card-img {
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--feather-cream);
}

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

.game-card-body {
  padding: 1.25rem 1.35rem 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.game-card-body h3 {
  margin: 0 0 0.5rem;
  font-size: 1.12rem;
}

.game-card-body p {
  margin: 0 0 1rem;
  font-size: 0.94rem;
  color: var(--muted);
  flex: 1;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.78rem 1.45rem;
  border-radius: 10px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.92rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.12s ease, filter 0.15s ease;
}

.btn-split {
  background: linear-gradient(90deg, var(--barn-red) 50%, var(--yolk-gold) 50%);
  background-size: 200% 100%;
  background-position: 0 0;
  color: #fff;
  box-shadow:
    4px 4px 10px var(--neuro-dark),
    -2px -2px 6px var(--neuro-light);
}

.btn-split:hover {
  background-position: 100% 0;
  filter: brightness(1.05);
}

.btn-split:active {
  transform: translateY(2px);
}

.btn-block {
  width: 100%;
}

.features-section {
  margin-top: 4rem;
}

.features-heading {
  text-align: center;
  margin-bottom: 2.5rem;
}

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

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

.feature-card {
  padding: 1.75rem;
  border-radius: var(--radius-lg);
}

.faq-section {
  margin-top: 4rem;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.faq-section h2 {
  text-align: center;
  margin-bottom: 2rem;
}

.faq-section details {
  border-radius: var(--radius);
  margin-bottom: 0.75rem;
  padding: 0.25rem 1.25rem;
}

.faq-section summary {
  font-weight: 600;
  cursor: pointer;
  padding: 1rem 0;
  font-family: var(--font-head);
  color: var(--nest-brown);
  font-size: 0.95rem;
}

.faq-section details[open] summary {
  border-bottom: 1px solid rgba(92, 61, 46, 0.12);
  margin-bottom: 0.75rem;
}

.faq-section details p {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 0.98rem;
}

.cta-section {
  margin-top: 4rem;
  padding: 2.5rem 2rem;
  border-radius: var(--radius-lg);
  text-align: center;
  background: linear-gradient(145deg, var(--barn-red) 0%, var(--nest-brown) 100%);
  color: var(--feather-cream);
  box-shadow:
    12px 12px 28px rgba(92, 61, 46, 0.35),
    -6px -6px 16px rgba(255, 255, 255, 0.15);
}

.cta-section h2 {
  color: var(--feather-cream);
  margin-top: 0;
}

.cta-section p {
  max-width: 44ch;
  margin: 0 auto 1.5rem;
}

.cta-section .btn-split {
  background: var(--yolk-gold);
  color: var(--ink);
}

.site-footer {
  margin-top: auto;
  flex-shrink: 0;
  padding: 2.5rem 1.25rem;
  background: var(--nest-brown);
  color: rgba(245, 230, 200, 0.88);
}

.site-footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

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

.site-footer h3 {
  color: var(--feather-cream);
  font-size: 1rem;
  margin: 0 0 0.75rem;
}

.site-footer a {
  color: var(--yolk-gold);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--feather-cream);
}

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

.site-footer li {
  margin-bottom: 0.4rem;
}

.site-footer-base {
  max-width: var(--max);
  margin: 2rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(245, 230, 200, 0.15);
  font-size: 0.88rem;
  color: rgba(245, 230, 200, 0.65);
  text-align: center;
}

.cookie-banner {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 90;
  max-width: 340px;
  padding: 1.1rem 1.25rem;
  border-radius: var(--radius);
  display: none;
}

.cookie-banner.is-visible {
  display: block;
}

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

.cookie-actions {
  display: flex;
  gap: 0.5rem;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.modal.is-open {
  display: flex;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(45, 27, 14, 0.72);
}

.modal-panel {
  position: relative;
  z-index: 1;
  width: min(960px, 100%);
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.modal-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid rgba(92, 61, 46, 0.12);
}

.modal-title {
  margin: 0;
  font-size: 1.1rem;
}

.modal-close {
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 10px;
  background: var(--coop-sand);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  color: var(--nest-brown);
  box-shadow:
    3px 3px 6px var(--neuro-dark),
    -3px -3px 6px var(--neuro-light);
}

.modal-frame {
  position: relative;
  padding-bottom: 62.5%;
  background: #1a1028;
}

.modal-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.page-head {
  text-align: center;
  margin-bottom: 2.5rem;
}

.page-head .lead {
  max-width: 58ch;
  margin: 0.75rem auto 0;
  color: var(--muted);
}

.content-block {
  padding: 1.75rem 2rem;
  border-radius: var(--radius-lg);
  margin-bottom: 1.5rem;
}

.content-block h2 {
  margin-top: 0;
}

.tip-list {
  padding-left: 1.25rem;
}

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

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

.contact-form label {
  display: grid;
  gap: 0.35rem;
  font-weight: 600;
  font-size: 0.92rem;
}

.contact-form input,
.contact-form textarea {
  padding: 0.75rem 1rem;
  border: none;
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 1rem;
  background: var(--coop-sand);
  box-shadow:
    inset 4px 4px 8px var(--neuro-dark),
    inset -4px -4px 8px var(--neuro-light);
}

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

.form-status {
  display: none;
  padding: 0.85rem 1rem;
  border-radius: var(--radius);
  background: rgba(74, 155, 92, 0.15);
  color: var(--meadow-green);
  font-weight: 600;
}

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

.blog-grid {
  display: grid;
  gap: 1.75rem;
}

.blog-card {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 1.5rem;
  padding: 1.25rem;
  border-radius: var(--radius-lg);
  align-items: start;
}

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

.blog-card-img {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--feather-cream);
}

.blog-card-img 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.08em;
  color: var(--meadow-green);
  margin-bottom: 0.35rem;
}

.blog-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.88rem;
  color: var(--muted);
  margin: 0.5rem 0 1rem;
}

.btn-read {
  display: inline-flex;
  padding: 0.65rem 1.2rem;
  background: var(--barn-red);
  color: #fff;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
}

.btn-read:hover {
  color: #fff;
  filter: brightness(1.08);
}

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

.article-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  font-size: 0.9rem;
  color: var(--muted);
  margin-top: 0.75rem;
}

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

.article-content h2 {
  margin-top: 0;
}

.article-cta {
  margin-top: 2.5rem;
  padding: 2rem;
  border-radius: var(--radius-lg);
  text-align: center;
}

.article-footer {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(92, 61, 46, 0.12);
}

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

.legal-content h2 {
  margin-top: 2rem;
}

.legal-content h2:first-child {
  margin-top: 0;
}

.error-page {
  text-align: center;
  padding: 4rem 1.25rem;
}

.error-page h1 {
  font-size: clamp(4rem, 12vw, 7rem);
  color: var(--barn-red);
  margin: 0;
}
