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

:root {
  --header-height: 74px;
  --egg-cream: #fff8e7;
  --yolk-bright: #f5c518;
  --yolk-deep: #e6a800;
  --asphalt-dark: #1a1a1e;
  --asphalt-mid: #2d2d34;
  --lane-stripe: #fefefe;
  --coop-red: #c94c4c;
  --pasture-mint: #7bc47f;
  --berlin-slate: #3d4f5f;
  --ink-body: #f4efe4;
  --ink-muted: rgba(244, 239, 228, 0.82);
  --brutal-border: 4px solid #0d0d0f;
  --brutal-shadow: 8px 8px 0 #0d0d0f;
  --brutal-shadow-sm: 5px 5px 0 #0d0d0f;
}

*,
*::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: Poppins, system-ui, sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink-body);
  background-color: var(--asphalt-dark);
  background-image:
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 48px,
      rgba(255, 255, 255, 0.04) 48px,
      rgba(255, 255, 255, 0.04) 52px
    ),
    linear-gradient(180deg, var(--berlin-slate) 0%, var(--asphalt-dark) 45%, #141418 100%);
}

body.is-locked {
  overflow: hidden;
}

h1, h2, h3, h4,
.section-title,
.layout-header__brand,
.layout-footer__brand {
  font-family: Montserrat, system-ui, sans-serif;
  font-weight: 800;
  color: var(--egg-cream);
  line-height: 1.2;
}

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

a:hover {
  color: var(--pasture-mint);
}

img {
  display: block;
  height: auto;
}

main {
  flex: 1;
}

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

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

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

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

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

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

.brutal-card {
  background: var(--asphalt-mid);
  border: var(--brutal-border);
  box-shadow: var(--brutal-shadow);
  border-radius: 0;
}

.layout-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-height);
  background: var(--egg-cream);
  border-bottom: var(--brutal-border);
  box-shadow: 0 4px 0 #0d0d0f;
}

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

.layout-header__brand {
  font-size: 1.35rem;
  color: var(--asphalt-dark);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.layout-header__brand:hover {
  color: var(--coop-red);
}

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

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

.layout-header__nav a:hover {
  color: var(--coop-red);
}

.layout-header__burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: var(--brutal-border);
  background: var(--yolk-bright);
  box-shadow: var(--brutal-shadow-sm);
  cursor: pointer;
}

.layout-header__burger span {
  display: block;
  width: 22px;
  height: 3px;
  margin-inline: auto;
  background: var(--asphalt-dark);
  transition: transform 0.2s, opacity 0.2s;
}

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

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

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

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

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

.hero__lead {
  max-width: 62ch;
  margin: 0 0 1.75rem;
  color: var(--ink-muted);
  font-size: 1.05rem;
}

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

.games-section {
  padding: 3rem 0;
}

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

.module-game-card:hover {
  transform: translate(-2px, -2px);
}

.module-game-card__thumb img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-bottom: var(--brutal-border);
}

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

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

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

.perks-section {
  padding: 3rem 0;
}

.module-perk {
  padding: 1.5rem;
}

.module-perk__title {
  margin: 0 0 0.65rem;
  font-size: 1.15rem;
  color: var(--yolk-bright);
}

.module-perk__text {
  margin: 0;
  color: var(--ink-muted);
}

.faq-section {
  padding: 3rem 0;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.module-faq {
  overflow: hidden;
}

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

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

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

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

.module-faq.is-open .module-faq__answer {
  max-height: 280px;
}

.module-faq__answer p {
  margin: 0;
  padding: 0 1.25rem 1.25rem;
  color: var(--ink-muted);
}

.cta-section {
  padding: 3rem 0 4rem;
}

.cta-box {
  padding: 2.5rem 2rem;
  text-align: center;
}

.cta-box h2 {
  margin: 0 0 0.75rem;
}

.cta-box p {
  margin: 0 0 1.5rem;
  color: var(--ink-muted);
}

.skin-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.85rem 1.75rem;
  font-family: Montserrat, sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  cursor: pointer;
  border: var(--brutal-border);
  transition: background 0.15s, color 0.15s, box-shadow 0.15s, transform 0.15s;
}

.skin-btn--outline {
  background: transparent;
  color: var(--egg-cream);
  box-shadow: var(--brutal-shadow-sm);
}

.skin-btn--outline:hover {
  background: var(--yolk-bright);
  color: var(--asphalt-dark);
  transform: translate(-2px, -2px);
  box-shadow: 8px 8px 0 #0d0d0f;
}

.skin-btn--fill {
  background: var(--yolk-bright);
  color: var(--asphalt-dark);
  box-shadow: var(--brutal-shadow-sm);
}

.skin-btn--fill:hover {
  background: var(--pasture-mint);
  transform: translate(-2px, -2px);
  box-shadow: 8px 8px 0 #0d0d0f;
}

.skin-btn--hero {
  padding: 1rem 2.25rem;
  font-size: 1.05rem;
}

.skin-btn--small {
  padding: 0.55rem 1.1rem;
  font-size: 0.85rem;
}

.skin-btn--play {
  width: 100%;
  margin-top: auto;
}

.layout-footer {
  margin-top: auto;
  padding: 2.5rem 0 1.5rem;
  background: var(--egg-cream);
  border-top: var(--brutal-border);
  color: var(--asphalt-dark);
}

.layout-footer a {
  color: var(--asphalt-dark);
  text-decoration: none;
}

.layout-footer a:hover {
  color: var(--coop-red);
}

.layout-footer__brand {
  display: inline-block;
  margin-bottom: 0.75rem;
  font-size: 1.2rem;
  color: var(--asphalt-dark);
  text-decoration: none;
}

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

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

.layout-footer__heading {
  margin: 0 0 0.75rem;
  font-size: 0.95rem;
  font-family: Montserrat, sans-serif;
  color: var(--asphalt-dark);
}

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

.layout-footer__copy {
  margin: 0;
  padding-top: 1rem;
  border-top: 3px solid var(--asphalt-dark);
  font-size: 0.85rem;
}

.cookie-banner {
  position: fixed;
  bottom: 1rem;
  right: 1rem;
  left: 1rem;
  max-width: 420px;
  margin-left: auto;
  z-index: 200;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

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

.game-player {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(13, 13, 15, 0.88);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s, visibility 0.2s;
}

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

.game-player__shell {
  width: min(960px, 100%);
  max-height: calc(100vh - 2rem);
  display: flex;
  flex-direction: column;
  background: var(--asphalt-mid);
}

.game-player__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1.1rem;
  border-bottom: var(--brutal-border);
  background: var(--egg-cream);
}

.game-player__title {
  margin: 0;
  font-size: 1.1rem;
  color: var(--asphalt-dark);
}

.game-player__close {
  width: 40px;
  height: 40px;
  border: var(--brutal-border);
  background: var(--coop-red);
  color: var(--egg-cream);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 3px 3px 0 #0d0d0f;
}

.game-player__frame-wrap {
  position: relative;
  aspect-ratio: 16 / 10;
  min-height: 320px;
  background: #000;
}

.game-player__frame {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

.game-player__fallback {
  margin: 0;
  padding: 0.75rem 1rem;
  font-size: 0.88rem;
  color: var(--ink-muted);
  text-align: center;
}

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

.page-hero {
  padding: 2rem;
  margin-bottom: 2rem;
}

.page-hero h1 {
  margin: 0 0 0.75rem;
}

.page-hero p {
  margin: 0;
  color: var(--ink-muted);
  max-width: 65ch;
}

.prose-block {
  padding: 1.75rem;
}

.prose-block h2 {
  margin: 0 0 0.85rem;
  font-size: 1.35rem;
  color: var(--yolk-bright);
}

.prose-block p,
.prose-block li {
  color: var(--ink-muted);
}

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

.prose-block ul li {
  margin-bottom: 0.4rem;
}

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

.form-field label {
  display: block;
  margin-bottom: 0.35rem;
  font-weight: 600;
  font-size: 0.9rem;
}

.form-field input,
.form-field textarea {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border: var(--brutal-border);
  background: var(--asphalt-dark);
  color: var(--egg-cream);
  font-family: inherit;
  font-size: 1rem;
}

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

.form-success {
  display: none;
  margin-top: 1rem;
  padding: 0.85rem;
  background: rgba(123, 196, 127, 0.15);
  border: 3px solid var(--pasture-mint);
  color: var(--pasture-mint);
}

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

.module-blog-card {
  display: grid;
  grid-template-columns: 220px 1fr;
  overflow: hidden;
}

.module-blog-card__img {
  width: 100%;
  height: 100%;
  min-height: 180px;
  object-fit: cover;
  border-right: var(--brutal-border);
}

.module-blog-card__body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.category-badge {
  display: inline-block;
  padding: 0.2rem 0.55rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: var(--yolk-bright);
  color: var(--asphalt-dark);
  border: 2px solid #0d0d0f;
  width: fit-content;
}

.module-blog-card__title {
  margin: 0;
  font-size: 1.25rem;
}

.module-blog-card__desc {
  margin: 0;
  color: var(--ink-muted);
  flex: 1;
}

.blog-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.85rem;
  color: var(--ink-muted);
}

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

.article-header {
  margin-bottom: 2rem;
}

.article-header h1 {
  margin: 0 0 1rem;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.9rem;
  color: var(--ink-muted);
}

.article-content {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.article-content section h2 {
  margin: 0 0 0.75rem;
  font-size: 1.35rem;
  color: var(--yolk-bright);
}

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

.article-content ul {
  padding-left: 1.25rem;
}

.article-cta {
  padding: 2rem;
  text-align: center;
  margin-top: 1rem;
}

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

.article-footer {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: var(--brutal-border);
}

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

.error-page {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
}

.error-page h1 {
  font-size: clamp(4rem, 12vw, 8rem);
  margin: 0;
  color: var(--yolk-bright);
}

.error-page p {
  color: var(--ink-muted);
  max-width: 40ch;
  margin: 1rem auto 1.5rem;
}

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

  .layout-footer__grid {
    grid-template-columns: 1fr;
  }

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

  .module-blog-card__img {
    min-height: 200px;
    border-right: none;
    border-bottom: var(--brutal-border);
  }
}

@media (max-width: 768px) {
  .layout-header__burger {
    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: var(--egg-cream);
    border-bottom: var(--brutal-border);
    box-shadow: 0 8px 0 #0d0d0f;
    transform: translateY(-120%);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.2s, opacity 0.2s, visibility 0.2s;
  }

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

  .layout-header__nav a {
    padding: 0.65rem 0;
    border-bottom: 2px solid rgba(26, 26, 30, 0.12);
  }

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