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

:root {
  --header-height: 72px;
  --asphalt-charcoal: #252320;
  --road-tar: #1a1816;
  --crosswalk-cream: #faf6ee;
  --yolk-sun: #f4b942;
  --coop-amber: #e8913a;
  --barn-red: #c0392b;
  --pasture-sage: #6b8f71;
  --lane-chalk: #fffef9;
  --ink-muted: #8a8278;
  --ink-strong: #f5f0e6;
}

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

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 1rem);
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: Raleway, system-ui, sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink-muted);
  background-color: var(--road-tar);
  background-image:
    repeating-linear-gradient(
      135deg,
      rgba(244, 185, 66, 0.04) 0,
      rgba(244, 185, 66, 0.04) 12px,
      transparent 12px,
      transparent 24px
    ),
    repeating-linear-gradient(
      -45deg,
      rgba(107, 143, 113, 0.05) 0,
      rgba(107, 143, 113, 0.05) 8px,
      transparent 8px,
      transparent 20px
    ),
    radial-gradient(ellipse 80% 50% at 50% 0%, rgba(232, 145, 58, 0.12), transparent 55%),
    linear-gradient(180deg, #2e2b27 0%, var(--road-tar) 45%, #121110 100%);
  background-attachment: fixed;
}

body.is-locked {
  overflow: hidden;
}

h1, h2, h3, h4,
.section-title,
.layout-brand,
.layout-foot-brand {
  font-family: Oswald, system-ui, sans-serif;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--ink-strong);
  line-height: 1.15;
}

a {
  color: var(--yolk-sun);
  text-decoration-thickness: 2px;
}

a:hover {
  color: var(--coop-amber);
}

img {
  display: block;
  height: auto;
}

main {
  flex: 1;
}

[id] {
  scroll-margin-top: calc(var(--header-height) + 1rem);
}

.layout-wrap {
  width: min(1140px, 100%);
  margin-inline: auto;
  padding-inline: 1.25rem;
}

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

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

.layout-stack {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.module-panel {
  background: rgba(37, 35, 32, 0.92);
  border: 2px solid rgba(244, 185, 66, 0.25);
  border-radius: 12px;
  box-shadow: 0 6px 0 rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 254, 249, 0.06);
}

.layout-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-height);
  background: rgba(26, 24, 22, 0.96);
  border-bottom: 3px solid var(--yolk-sun);
  box-shadow: 0 4px 0 rgba(0, 0, 0, 0.4);
}

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

.layout-brand {
  font-size: 1.35rem;
  text-decoration: none;
  color: var(--lane-chalk);
}

.layout-brand span {
  color: var(--yolk-sun);
}

.layout-header__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 2px solid var(--coop-amber);
  border-radius: 8px;
  background: var(--asphalt-charcoal);
  cursor: pointer;
  box-shadow: 0 3px 0 #0d0c0b;
}

.layout-header__toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin-inline: auto;
  background: var(--lane-chalk);
  transition: transform 0.25s, opacity 0.25s;
}

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

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

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

.layout-header__nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.layout-header__nav a {
  font-weight: 600;
  font-size: 0.92rem;
  text-decoration: none;
  color: var(--ink-muted);
}

.layout-header__nav a:hover {
  color: var(--lane-chalk);
}

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

.module-hero__title {
  font-size: clamp(2rem, 5vw, 3rem);
  margin: 0 0 1rem;
  max-width: 24ch;
}

.module-hero__lead {
  font-size: 1.08rem;
  max-width: 62ch;
  margin: 0 0 1.75rem;
}

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

.module-games {
  padding: 2rem 0 3.5rem;
}

.module-game-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: transform 0.2s;
}

.module-game-card:hover {
  transform: translateY(-5px);
}

.module-game-card__thumb {
  aspect-ratio: 1;
  overflow: hidden;
  border-bottom: 3px solid var(--yolk-sun);
}

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

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

.module-game-card__title {
  font-size: 1.12rem;
  margin: 0;
}

.module-game-card__desc {
  margin: 0;
  font-size: 0.95rem;
  flex: 1;
}

.module-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.85rem 1.6rem;
  font-family: Oswald, sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  text-decoration: none;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: transform 0.12s, box-shadow 0.12s;
}

.module-btn--3d {
  color: var(--road-tar);
  background: linear-gradient(180deg, var(--yolk-sun) 0%, var(--coop-amber) 100%);
  border: 2px solid #a86a20;
  box-shadow: 0 5px 0 #7a4a12, 0 8px 16px rgba(0, 0, 0, 0.35);
}

.module-btn--3d:hover {
  transform: translateY(2px);
  box-shadow: 0 3px 0 #7a4a12, 0 5px 12px rgba(0, 0, 0, 0.3);
}

.module-btn--3d:active {
  transform: translateY(4px);
  box-shadow: 0 1px 0 #7a4a12;
}

.module-btn--play {
  width: 100%;
}

.module-btn--small {
  padding: 0.55rem 1.1rem;
  font-size: 0.82rem;
}

.module-btn--hero {
  padding: 1rem 2.2rem;
  font-size: 1.05rem;
}

.module-perks {
  padding: 2rem 0 3.5rem;
}

.module-perk {
  padding: 1.5rem;
}

.module-perk h3 {
  margin: 0 0 0.6rem;
  font-size: 1.05rem;
}

.module-perk p {
  margin: 0;
}

.module-faq {
  padding: 2rem 0 3.5rem;
}

.module-faq__list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  max-width: 760px;
  margin-inline: auto;
}

.module-faq-item {
  overflow: hidden;
}

.module-faq-item__trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.25rem;
  font-family: Oswald, sans-serif;
  font-size: 0.98rem;
  font-weight: 700;
  text-align: left;
  color: var(--lane-chalk);
  background: transparent;
  border: none;
  cursor: pointer;
}

.module-faq-item__trigger::after {
  content: "+";
  font-size: 1.4rem;
  color: var(--yolk-sun);
  flex-shrink: 0;
}

.module-faq-item.is-open .module-faq-item__trigger::after {
  content: "−";
}

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

.module-faq-item.is-open .module-faq-item__answer {
  max-height: 260px;
}

.module-faq-item__answer p {
  margin: 0;
  padding: 0 1.25rem 1.1rem;
}

.module-cta {
  padding: 2rem 0 4rem;
}

.module-cta__box {
  padding: 2.5rem 2rem;
  text-align: center;
}

.module-cta__box h2 {
  margin: 0 0 0.75rem;
}

.module-cta__box p {
  margin: 0 0 1.5rem;
  max-width: 48ch;
  margin-inline: auto;
}

.layout-footer {
  padding: 2.5rem 0 1.5rem;
  background: rgba(18, 17, 16, 0.98);
  border-top: 3px solid var(--pasture-sage);
}

.layout-footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.layout-foot-brand {
  display: inline-block;
  font-size: 1.15rem;
  text-decoration: none;
  color: var(--yolk-sun);
  margin-bottom: 0.75rem;
}

.layout-foot-note {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.6;
}

.layout-foot-heading {
  font-size: 0.95rem;
  margin: 0 0 0.85rem;
  color: var(--lane-chalk);
}

.layout-foot-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

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

.layout-foot-list a:hover {
  color: var(--yolk-sun);
}

.layout-foot-copy {
  font-size: 0.82rem;
  text-align: center;
  opacity: 0.75;
  margin: 0;
}

.module-cookie {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 200;
  max-width: 340px;
  padding: 1.1rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.module-cookie p {
  margin: 0;
  font-size: 0.88rem;
}

.module-player {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(18, 17, 16, 0.88);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s, visibility 0.25s;
}

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

.module-player__shell {
  width: min(960px, 100%);
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.module-player__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1.1rem;
  border-bottom: 2px solid rgba(244, 185, 66, 0.3);
}

.module-player__title {
  margin: 0;
  font-size: 1.1rem;
}

.module-player__close {
  width: 40px;
  height: 40px;
  border: 2px solid var(--coop-amber);
  border-radius: 8px;
  background: var(--asphalt-charcoal);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  color: var(--lane-chalk);
  box-shadow: 0 3px 0 #0d0c0b;
}

.module-player__frame-wrap {
  position: relative;
  aspect-ratio: 16 / 10;
  background: var(--road-tar);
}

.module-player__frame {
  width: 100%;
  height: 100%;
  border: none;
}

.module-player__fallback {
  margin: 0;
  padding: 0.75rem 1.1rem;
  font-size: 0.88rem;
  text-align: center;
}

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

.layout-page__hero {
  padding: 2rem 1.75rem;
  margin-bottom: 2rem;
}

.layout-page__hero h1 {
  margin: 0 0 0.75rem;
}

.layout-page__hero p {
  margin: 0;
  max-width: 65ch;
}

.module-prose {
  padding: 1.75rem;
}

.module-prose h2 {
  margin: 0 0 0.85rem;
  font-size: 1.25rem;
}

.module-prose p,
.module-prose li {
  margin: 0 0 0.85rem;
}

.module-prose ul,
.module-prose ol {
  margin: 0 0 0.85rem;
  padding-left: 1.4rem;
}

.module-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.module-form label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--lane-chalk);
}

.module-form input,
.module-form textarea {
  padding: 0.75rem 0.9rem;
  border: 2px solid rgba(138, 130, 120, 0.45);
  border-radius: 8px;
  font: inherit;
  background: rgba(26, 24, 22, 0.9);
  color: var(--lane-chalk);
}

.module-form-success {
  display: none;
  margin-top: 1rem;
  padding: 0.85rem;
  border-radius: 8px;
  background: rgba(107, 143, 113, 0.2);
  color: var(--pasture-sage);
  font-weight: 600;
}

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

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

.module-blog-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

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

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

.module-blog-card__body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  flex: 1;
}

.module-badge {
  display: inline-block;
  align-self: flex-start;
  padding: 0.2rem 0.65rem;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: 6px;
  background: rgba(244, 185, 66, 0.15);
  color: var(--yolk-sun);
}

.module-blog-meta {
  display: flex;
  gap: 1rem;
  font-size: 0.82rem;
  opacity: 0.85;
}

.module-btn-read {
  margin-top: auto;
  align-self: flex-start;
}

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

.layout-article__header {
  margin-bottom: 2rem;
}

.layout-article__header h1 {
  margin: 0 0 0.85rem;
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  text-transform: none;
}

.layout-article__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.88rem;
  color: var(--ink-muted);
}

.layout-article__content {
  max-width: 720px;
}

.layout-article__content section {
  margin-bottom: 2rem;
}

.layout-article__content h2 {
  font-size: 1.2rem;
  margin: 0 0 0.75rem;
}

.layout-article__content p {
  margin: 0 0 0.85rem;
}

.module-article-cta {
  margin-top: 2.5rem;
  padding: 1.75rem;
  text-align: center;
}

.module-article-cta h3 {
  margin: 0 0 1rem;
}

.layout-article__footer {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 2px solid rgba(138, 130, 120, 0.3);
}

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

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

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

.module-legal p,
.module-legal li {
  margin: 0 0 0.75rem;
}

.layout-error {
  padding: calc(var(--header-height) + 4rem) 0 4rem;
  text-align: center;
}

.layout-error h1 {
  font-size: clamp(3rem, 12vw, 6rem);
  margin: 0 0 0.5rem;
  color: var(--yolk-sun);
}

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

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

  .layout-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.5rem;
    background: rgba(26, 24, 22, 0.98);
    border-bottom: 3px solid var(--yolk-sun);
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.3s, opacity 0.3s;
  }

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

  .layout-header__nav a {
    padding: 0.65rem 0;
    border-bottom: 1px solid rgba(138, 130, 120, 0.25);
  }

  .module-cookie {
    left: 1rem;
    right: 1rem;
    max-width: none;
  }

  .module-player {
    padding: 0.5rem 0.65rem;
  }

  .module-player__shell {
    width: 100%;
    max-height: calc(100dvh - 1rem);
  }

  .module-player__frame-wrap {
    aspect-ratio: 1 / 1;
    width: 100%;
  }
}
