:root {
  --barn-wood: #2c1810;
  --hay-straw: #8b6914;
  --ember-orange: #ff9500;
  --yolk-gold: #ffd23f;
  --field-green: #78b159;
  --egg-white: #faf3e8;
  --dust-brown: #a08060;
  --road-slate: #4a4a52;
  --header-height: 72px;
  --font-heading: "Oswald", system-ui, sans-serif;
  --font-body: "Raleway", 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(--egg-white);
  min-height: 100vh;
  overflow-x: hidden !important;
  background-color: var(--barn-wood);
  background-image:
    repeating-linear-gradient(
      45deg,
      rgba(139, 105, 20, 0.08) 0,
      rgba(139, 105, 20, 0.08) 2px,
      transparent 2px,
      transparent 12px
    ),
    repeating-linear-gradient(
      -45deg,
      rgba(255, 149, 0, 0.04) 0,
      rgba(255, 149, 0, 0.04) 1px,
      transparent 1px,
      transparent 10px
    ),
    radial-gradient(ellipse at 20% 0%, rgba(255, 149, 0, 0.18), transparent 55%),
    radial-gradient(ellipse at 80% 100%, rgba(120, 177, 89, 0.12), transparent 50%),
    linear-gradient(180deg, #3d2418 0%, var(--barn-wood) 40%, #1f120c 100%);
}

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

a {
  color: var(--yolk-gold);
  text-underline-offset: 3px;
}

a:hover {
  color: #ffe566;
}

h1,
h2,
h3 {
  font-family: var(--font-heading);
  line-height: 1.15;
  font-weight: 600;
  color: var(--egg-white);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

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

.page__main {
  flex: 1;
}

.wrap {
  width: min(1140px, 92vw);
  margin-inline: auto;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-height);
  background: rgba(44, 24, 16, 0.96);
  border-bottom: 3px solid var(--ember-orange);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
  gap: 1rem;
}

.site-header__logo {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.25rem;
  text-decoration: none;
  color: var(--egg-white);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.site-header__logo span {
  color: var(--yolk-gold);
}

.site-nav__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 2px solid var(--ember-orange);
  border-radius: 8px;
  background: var(--road-slate);
  cursor: pointer;
}

.site-nav__toggle span {
  display: block;
  width: 22px;
  height: 2px;
  margin-inline: auto;
  background: var(--egg-white);
  transition: transform 0.25s, opacity 0.25s;
}

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

.site-nav__toggle.is-open span:nth-child(2) {
  opacity: 0;
}

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

.site-nav__list {
  display: flex;
  gap: 0.2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav__link {
  display: block;
  padding: 0.5rem 0.85rem;
  text-decoration: none;
  color: var(--dust-brown);
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: 6px;
  transition: color 0.2s, background 0.2s;
}

.site-nav__link:hover,
.site-nav__link--active {
  color: var(--egg-white);
  background: rgba(255, 149, 0, 0.18);
}

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

.hero__tag {
  display: inline-block;
  margin: 0 0 1rem;
  padding: 0.35rem 1rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--yolk-gold);
  background: rgba(255, 149, 0, 0.2);
  border: 1px solid rgba(255, 210, 63, 0.35);
  border-radius: 999px;
}

.hero__title {
  font-size: clamp(2rem, 5vw, 3.2rem);
  margin: 0 0 1rem;
  max-width: 22ch;
  margin-inline: auto;
}

.hero__lead {
  margin: 0 auto;
  max-width: 56ch;
  color: var(--dust-brown);
  font-size: 1.1rem;
}

.section {
  padding: 2.5rem 0;
}

.section__title {
  font-size: clamp(1.45rem, 3.5vw, 2rem);
  margin: 0 0 0.75rem;
}

.section__title--center {
  text-align: center;
}

.section__title--spaced {
  margin-bottom: 4rem;
  text-align: center;
}

.section__sub {
  margin: 0 0 2rem;
  color: var(--dust-brown);
  max-width: 58ch;
}

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

.game-card {
  border: none;
  padding: 0;
  text-align: left;
  cursor: pointer;
  font: inherit;
  color: inherit;
  width: 100%;
  border-radius: 14px;
  overflow: hidden;
  background: rgba(74, 74, 82, 0.35);
  border: 2px solid rgba(255, 210, 63, 0.18);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s;
}

.game-card:hover {
  transform: translateY(-4px);
  border-color: var(--yolk-gold);
  box-shadow: 0 14px 36px rgba(255, 149, 0, 0.25);
}

.game-card__thumb {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--road-slate);
}

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

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

.game-card__name {
  margin: 0 0 0.45rem;
  font-size: 1.1rem;
}

.game-card__hint {
  margin: 0;
  font-size: 0.92rem;
  color: var(--dust-brown);
  line-height: 1.5;
  text-transform: none;
  font-family: var(--font-body);
  font-weight: 400;
  letter-spacing: 0;
}

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

.feature-card {
  border-radius: 14px;
  padding: 1.5rem;
  background: rgba(44, 24, 16, 0.75);
  border: 2px solid rgba(120, 177, 89, 0.35);
  border-left: 5px solid var(--ember-orange);
}

.feature-card__title {
  margin: 0 0 0.65rem;
  font-size: 1rem;
  color: var(--yolk-gold);
}

.feature-card__text {
  margin: 0;
  color: var(--dust-brown);
  font-size: 0.95rem;
  text-transform: none;
  font-family: var(--font-body);
  font-weight: 400;
  letter-spacing: 0;
}

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

.faq__item {
  border-bottom: 1px solid rgba(255, 210, 63, 0.12);
}

.faq__question {
  width: 100%;
  padding: 1.1rem 0;
  border: none;
  background: none;
  color: var(--egg-white);
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.faq__question::after {
  content: "+";
  font-size: 1.4rem;
  color: var(--ember-orange);
  transition: transform 0.25s;
}

.faq__item.is-open .faq__question::after {
  transform: rotate(45deg);
}

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

.faq__item.is-open .faq__answer {
  max-height: 300px;
}

.faq__answer p {
  margin: 0 0 1.1rem;
  color: var(--dust-brown);
  font-size: 0.95rem;
}

.cta {
  text-align: center;
  padding: 2.5rem 2rem;
  margin: 2rem 0 3rem;
  border-radius: 16px;
  background: rgba(255, 149, 0, 0.14);
  border: 2px dashed rgba(255, 210, 63, 0.35);
}

.cta h2 {
  margin: 0 0 0.65rem;
}

.cta p {
  margin: 0 0 1.25rem;
  color: var(--dust-brown);
  text-transform: none;
  font-family: var(--font-body);
  font-weight: 400;
}

.btn {
  display: inline-block;
  padding: 0.85rem 2rem;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--barn-wood);
  border: none;
  border-radius: 10px;
  cursor: pointer;
  background: linear-gradient(135deg, var(--yolk-gold) 0%, var(--ember-orange) 100%);
  box-shadow: 0 4px 16px rgba(255, 149, 0, 0.35);
  transition: transform 0.15s, box-shadow 0.15s, filter 0.15s;
}

.btn:hover {
  color: var(--barn-wood);
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(255, 149, 0, 0.45);
  filter: brightness(1.05);
}

.btn:active {
  transform: translateY(1px);
}

.btn--outline {
  background: transparent;
  color: var(--yolk-gold);
  border: 2px solid var(--yolk-gold);
  box-shadow: none;
}

.btn--outline:hover {
  background: linear-gradient(135deg, var(--yolk-gold) 0%, var(--ember-orange) 100%);
  color: var(--barn-wood);
  border-color: transparent;
}

.site-footer {
  margin-top: auto;
  padding: 3rem 0 1.5rem;
  background: rgba(20, 12, 8, 0.96);
  border-top: 3px solid var(--field-green);
}

.site-footer__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.site-footer__heading {
  font-size: 0.9rem;
  margin: 0 0 0.75rem;
  color: var(--yolk-gold);
}

.site-footer p {
  margin: 0 0 0.5rem;
  font-size: 0.9rem;
  color: var(--dust-brown);
  text-transform: none;
  font-family: var(--font-body);
  font-weight: 400;
}

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

.site-footer__links a {
  display: block;
  padding: 0.25rem 0;
  text-decoration: none;
  color: var(--dust-brown);
  font-size: 0.9rem;
}

.site-footer__links a:hover {
  color: var(--yolk-gold);
}

.site-footer__bottom {
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 210, 63, 0.1);
  text-align: center;
}

.site-footer__bottom p {
  margin: 0;
  font-size: 0.85rem;
}

.cookie-bar {
  position: fixed;
  bottom: 1rem;
  right: 1rem;
  z-index: 200;
  max-width: min(360px, calc(100vw - 2rem));
  padding: 1rem 1.15rem;
  background: var(--road-slate);
  border: 2px solid var(--ember-orange);
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
}

.cookie-bar p {
  margin: 0 0 0.85rem;
  font-size: 0.88rem;
  color: var(--dust-brown);
}

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

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

.game-modal__panel {
  width: min(960px, 100%);
  height: min(88vh, 720px);
  display: flex;
  flex-direction: column;
  border-radius: 14px;
  overflow: hidden;
  background: var(--barn-wood);
  border: 3px solid var(--ember-orange);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
}

.game-modal__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 1rem;
  background: rgba(44, 24, 16, 0.95);
  border-bottom: 2px solid rgba(255, 149, 0, 0.35);
}

.game-modal__title {
  margin: 0;
  font-size: 1rem;
}

.game-modal__close {
  width: 40px;
  height: 40px;
  border: 2px solid var(--ember-orange);
  border-radius: 8px;
  background: transparent;
  color: var(--egg-white);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

.game-modal__close:hover {
  background: rgba(255, 149, 0, 0.2);
}

.game-modal__frame {
  flex: 1;
  width: 100%;
  border: none;
  background: #000;
}

.page-head {
  padding: calc(var(--header-height) + 2.5rem) 0 1.5rem;
}

.page-head h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
}

.page-head__lead {
  margin: 0;
  max-width: 58ch;
  color: var(--dust-brown);
  font-size: 1.08rem;
}

.prose {
  padding-bottom: 3rem;
}

.prose h2 {
  font-size: 1.25rem;
  margin: 2rem 0 0.75rem;
}

.prose p,
.prose li {
  color: var(--dust-brown);
}

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

.prose strong {
  color: var(--egg-white);
}

.game-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0;
}

.game-list li {
  padding: 0.65rem 0;
  border-bottom: 1px solid rgba(255, 210, 63, 0.1);
  color: var(--dust-brown);
}

.game-list strong {
  color: var(--yolk-gold);
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.75rem;
  padding-bottom: 3rem;
}

.blog-card {
  border-radius: 14px;
  overflow: hidden;
  background: rgba(44, 24, 16, 0.7);
  border: 2px solid rgba(255, 210, 63, 0.15);
  display: flex;
  flex-direction: column;
}

.blog-card__thumb {
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

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

.blog-card__content {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.blog-card__content h3 {
  margin: 0.5rem 0;
  font-size: 1.05rem;
  text-transform: none;
  letter-spacing: 0;
}

.blog-card__content p {
  margin: 0 0 1rem;
  color: var(--dust-brown);
  font-size: 0.92rem;
  flex: 1;
}

.blog-card__meta {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
  font-size: 0.82rem;
  color: var(--dust-brown);
}

.badge {
  display: inline-block;
  padding: 0.25rem 0.65rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--barn-wood);
  background: var(--yolk-gold);
  border-radius: 4px;
}

.article {
  padding: calc(var(--header-height) + 2rem) 0 3rem;
}

.article__header {
  margin-bottom: 2rem;
}

.article__header h1 {
  font-size: clamp(1.6rem, 4vw, 2.35rem);
  text-transform: none;
  letter-spacing: 0;
  margin: 0 0 1rem;
}

.article__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  font-size: 0.88rem;
  color: var(--dust-brown);
}

.article__content section {
  margin-bottom: 1.75rem;
}

.article__content h2 {
  font-size: 1.15rem;
  margin: 0 0 0.65rem;
}

.article__content p,
.article__content li {
  color: var(--dust-brown);
}

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

.article__cta {
  margin-top: 2.5rem;
  padding: 1.75rem;
  text-align: center;
  border-radius: 14px;
  background: rgba(255, 149, 0, 0.12);
  border: 2px solid rgba(255, 210, 63, 0.2);
}

.article__cta h3 {
  margin: 0 0 1rem;
  font-size: 1.1rem;
}

.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, 210, 63, 0.12);
}

.article__nav a {
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
}

.form {
  max-width: 560px;
  padding-bottom: 3rem;
}

.form__group {
  margin-bottom: 1.25rem;
}

.form__label {
  display: block;
  margin-bottom: 0.4rem;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--egg-white);
}

.form__input,
.form__textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--egg-white);
  background: rgba(74, 74, 82, 0.4);
  border: 2px solid rgba(255, 210, 63, 0.2);
  border-radius: 8px;
}

.form__input:focus,
.form__textarea:focus {
  outline: none;
  border-color: var(--ember-orange);
}

.form__textarea {
  min-height: 140px;
  resize: vertical;
}

.form__status {
  margin-top: 1rem;
  font-size: 0.92rem;
  color: var(--field-green);
}

.legal {
  padding-bottom: 3rem;
}

.legal h2 {
  font-size: 1.15rem;
  margin: 2rem 0 0.65rem;
}

.legal p,
.legal li {
  color: var(--dust-brown);
}

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

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

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

  .site-nav {
    position: fixed;
    top: calc(var(--header-height) - 1px);
    left: 0;
    right: 0;
    background: rgba(44, 24, 16, 0.98);
    border-bottom: 2px solid var(--ember-orange);
    padding: 0.75rem 1rem 1rem;
    transform: translateY(-120%);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.3s, opacity 0.3s, visibility 0.3s;
  }

  .site-nav.is-open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .site-nav__list {
    flex-direction: column;
    gap: 0.25rem;
  }

  .site-nav__link {
    padding: 0.75rem 1rem;
  }
}
