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

:root {
  --scaffold-ink: #1a1d24;
  --crane-yellow: #f5c518;
  --steel-blue: #4a6fa5;
  --brick-clay: #c45c26;
  --sky-wash: #e8eef6;
  --concrete: #9aa3b2;
  --paper: #f3f5f8;
  --ink: #22262f;
  --font-head: "Syne", "Trebuchet MS", sans-serif;
  --font-body: "Figtree", "Segoe UI", sans-serif;
  --header-h: 72px;
  --max-w: 1100px;
  --radius: 6px;
}

.flex { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-sm { gap: 0.65rem; }
.gap-md { gap: 1.1rem; }
.text-center { text-align: center; }
.w-full { width: 100%; }
.mt-0 { margin-top: 0; }
.mb-1 { margin-bottom: 1rem; }

*,
*::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-color: var(--paper);
  background-image:
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 23px,
      rgba(26, 29, 36, 0.045) 23px,
      rgba(26, 29, 36, 0.045) 24px
    ),
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 23px,
      rgba(26, 29, 36, 0.045) 23px,
      rgba(26, 29, 36, 0.045) 24px
    ),
    radial-gradient(ellipse 70% 45% at 12% 0%, rgba(245, 197, 24, 0.18), transparent 55%),
    radial-gradient(ellipse 55% 40% at 90% 10%, rgba(74, 111, 165, 0.16), transparent 50%),
    linear-gradient(160deg, var(--sky-wash) 0%, var(--paper) 48%, #e6e9ef 100%);
}

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

img { max-width: 100%; height: auto; display: block; }
a { color: var(--steel-blue); }
a:hover { color: var(--brick-clay); }

h1, h2, h3 {
  font-family: var(--font-head);
  letter-spacing: -0.02em;
  line-height: 1.12;
  color: var(--scaffold-ink);
  margin: 0 0 0.65rem;
}
h1 { font-size: clamp(2.2rem, 5.5vw, 3.55rem); font-weight: 800; }
h2 { font-size: clamp(1.55rem, 3.2vw, 2.1rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 700; }
p { margin: 0 0 1rem; }
ul { margin: 0 0 1rem; padding-left: 1.2rem; }
main { flex: 1; }

.container {
  width: min(100% - 2rem, var(--max-w));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--header-h);
  background: rgba(243, 245, 248, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 3px solid var(--scaffold-ink);
}
.header-row { height: 100%; }

.brand { text-decoration: none; color: var(--scaffold-ink); }
.brand-mark { width: 36px; height: 36px; display: grid; place-items: center; }
.brand-mark svg { width: 36px; height: 36px; }
.brand-name { font-family: var(--font-head); font-size: 1.2rem; font-weight: 800; }

.nav a {
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
  font-size: 0.95rem;
}
.nav a[aria-current="page"],
.nav a:hover { color: var(--brick-clay); }

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  width: 22px;
  background: var(--scaffold-ink);
  margin-inline: auto;
}

.panel {
  background: rgba(255, 255, 255, 0.88);
  border: 3px solid var(--scaffold-ink);
  border-radius: var(--radius);
  box-shadow: 6px 6px 0 rgba(26, 29, 36, 0.12);
}

.btn-glitch {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.85rem 1.35rem;
  border: 3px solid var(--scaffold-ink);
  border-radius: var(--radius);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.98rem;
  text-decoration: none;
  cursor: pointer;
  color: var(--scaffold-ink);
  background: var(--crane-yellow);
  position: relative;
  transition: transform 0.12s ease, background 0.15s ease;
}
.btn-glitch:hover {
  background: var(--steel-blue);
  color: #fff;
  transform: translate(-1px, -1px);
  text-shadow: 1px 0 var(--brick-clay), -1px 0 var(--crane-yellow);
}
.btn-glitch:active {
  transform: translate(2px, 2px);
  box-shadow: none;
}
.btn-block { width: 100%; }

.section { padding: 2.5rem 0; }

.hero {
  min-height: calc(100vh - var(--header-h));
  display: grid;
  align-content: center;
  padding: 2rem 0 3rem;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  right: 4%;
  bottom: 12%;
  width: min(42vw, 280px);
  height: min(55vw, 360px);
  background:
    linear-gradient(var(--crane-yellow), var(--crane-yellow)) center top / 40% 12% no-repeat,
    linear-gradient(var(--steel-blue), var(--steel-blue)) center 18% / 55% 14% no-repeat,
    linear-gradient(var(--brick-clay), var(--brick-clay)) center 38% / 70% 16% no-repeat,
    linear-gradient(var(--concrete), var(--concrete)) center 62% / 85% 18% no-repeat,
    linear-gradient(var(--scaffold-ink), var(--scaffold-ink)) center bottom / 100% 22% no-repeat;
  opacity: 0.35;
  pointer-events: none;
  animation: stack-bob 9s ease-in-out infinite;
}
@keyframes stack-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}
.hero-brand {
  font-family: var(--font-head);
  font-size: clamp(2.7rem, 8vw, 4.6rem);
  font-weight: 800;
  color: var(--scaffold-ink);
  margin: 0 0 0.75rem;
  animation: rise-in 0.7s ease both;
}
.hero-lead {
  max-width: 36rem;
  font-size: 1.15rem;
  color: rgba(34, 38, 47, 0.84);
  margin-bottom: 1.5rem;
  animation: rise-in 0.85s ease 0.06s both;
}
.hero .btn-glitch { animation: rise-in 0.95s ease 0.12s both; }
@keyframes rise-in {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

.games-title { margin-bottom: 0.4rem; }
.games-sub { color: rgba(34, 38, 47, 0.72); margin-bottom: 1.75rem; }
.game-grid {
  display: grid;
  gap: 1.35rem;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}
.game-card { overflow: hidden; display: flex; flex-direction: column; }
.game-card-media { aspect-ratio: 1; overflow: hidden; background: var(--scaffold-ink); }
.game-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}
.game-card:hover .game-card-media img { transform: scale(1.04); }
.game-card-body {
  padding: 1.1rem 1.15rem 1.25rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.game-card-title { margin: 0; font-size: 1.3rem; }
.game-card-desc { margin: 0; flex: 1; font-size: 0.95rem; color: rgba(34, 38, 47, 0.75); }

.features-title { margin-bottom: 1.5rem; }
.features-grid {
  display: grid;
  gap: 1.2rem;
  grid-template-columns: repeat(3, 1fr);
}
.feature-tile { padding: 1.35rem 1.25rem; }
.feature-tile h3 { margin-bottom: 0.45rem; }
.feature-tile p { margin: 0; font-size: 0.98rem; }

.faq { padding: 1.5rem 1.4rem; }
.faq h2 { margin-bottom: 1rem; }
.faq details {
  border-top: 2px solid rgba(26, 29, 36, 0.12);
  padding: 0.85rem 0;
}
.faq summary {
  cursor: pointer;
  font-weight: 700;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq details[open] summary { color: var(--brick-clay); }
.faq details p { margin: 0.65rem 0 0; color: rgba(34, 38, 47, 0.78); }

.cta-band {
  padding: 2rem 1.5rem;
  text-align: center;
  background:
    repeating-linear-gradient(
      -45deg,
      rgba(245, 197, 24, 0.12),
      rgba(245, 197, 24, 0.12) 8px,
      rgba(74, 111, 165, 0.1) 8px,
      rgba(74, 111, 165, 0.1) 16px
    );
  border: 3px solid var(--scaffold-ink);
  border-radius: var(--radius);
  box-shadow: 6px 6px 0 rgba(26, 29, 36, 0.12);
}
.cta-band p { max-width: 36rem; margin: 0 auto 1.25rem; }

.page-head { margin-bottom: 1.5rem; padding-top: 2rem; }
.lead { font-size: 1.12rem; color: rgba(34, 38, 47, 0.8); max-width: 42rem; }
.content-panel { padding: 1.4rem 1.35rem; margin-bottom: 1.2rem; }
.tip-list { padding-left: 1.15rem; }
.tip-list li { margin-bottom: 0.45rem; }

.blog-list { display: grid; gap: 1.25rem; }
.blog-card { display: grid; grid-template-columns: 180px 1fr; gap: 0; overflow: hidden; }
.blog-card-thumb img { width: 100%; height: 100%; object-fit: cover; min-height: 160px; }
.blog-card-body { padding: 1.2rem 1.25rem; }
.blog-card-meta {
  display: flex;
  gap: 1rem;
  font-size: 0.88rem;
  color: rgba(34, 38, 47, 0.6);
  margin-bottom: 0.85rem;
}
.category-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--steel-blue);
  margin-bottom: 0.45rem;
}

.form-stack { display: grid; gap: 0.55rem; max-width: 480px; }
.form-stack input,
.form-stack textarea {
  width: 100%;
  padding: 0.75rem 0.85rem;
  border: 3px solid var(--scaffold-ink);
  border-radius: var(--radius);
  background: #fff;
  font: inherit;
  color: inherit;
}
.form-stack textarea { min-height: 140px; resize: vertical; }
.form-status { display: none; color: var(--steel-blue); font-weight: 600; }
.form-status.is-visible { display: block; }

.article-header { margin-bottom: 1.5rem; padding-top: 2rem; }
.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.1rem;
  color: rgba(34, 38, 47, 0.6);
  font-size: 0.9rem;
}
.article-content img {
  width: min(100%, 420px);
  border: 3px solid var(--scaffold-ink);
  border-radius: var(--radius);
  margin: 0 0 1.25rem;
  box-shadow: 6px 6px 0 rgba(26, 29, 36, 0.12);
}
.article-content section { margin-bottom: 1.5rem; }
.article-cta {
  padding: 1.35rem;
  margin: 2rem 0 1.25rem;
  text-align: center;
}
.article-nav {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  font-weight: 600;
  padding-bottom: 2rem;
}

.not-found { text-align: center; padding-top: 4rem; padding-bottom: 4rem; }
.not-found h1 { font-size: 5rem; color: var(--brick-clay); }

.site-footer {
  margin-top: 2rem;
  padding: 2.5rem 0 1.25rem;
  background: var(--scaffold-ink);
  color: rgba(255, 255, 255, 0.82);
  border-top: 3px solid var(--crane-yellow);
}
.site-footer a { color: var(--crane-yellow); }
.site-footer a:hover { color: #fff; }
.site-footer h3 { color: #fff; font-size: 1.15rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 0.4rem; }
.footer-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  margin-bottom: 1.5rem;
}
.footer-base {
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.55);
}

.cookie-banner {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 60;
  max-width: 320px;
  padding: 1rem 1.1rem;
  display: none;
  gap: 0.75rem;
  flex-direction: column;
  background: #fff;
  border-radius: var(--radius);
  border: 3px solid var(--scaffold-ink);
  box-shadow: 6px 6px 0 rgba(26, 29, 36, 0.2);
}
.cookie-banner.is-visible { display: flex; }
.cookie-banner p { margin: 0; font-size: 0.9rem; }

.player-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.player-modal.is-open { display: flex; }
.player-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(18, 24, 34, 0.72);
}
.player-modal-panel {
  position: relative;
  width: min(960px, 100%);
  max-height: calc(100vh - 2rem);
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 3px solid var(--scaffold-ink);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 8px 8px 0 rgba(26, 29, 36, 0.35);
}
.player-modal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem 1rem;
  border-bottom: 3px solid var(--scaffold-ink);
  flex: 0 0 auto;
}
.player-modal-title { margin: 0; font-size: 1.25rem; }
.player-modal-close {
  border: 0;
  background: transparent;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  color: var(--scaffold-ink);
  width: 44px;
  height: 44px;
}
.player-modal-frame {
  position: relative;
  width: 100%;
  flex: 1 1 auto;
  min-height: min(62vh, 560px);
  aspect-ratio: 16 / 10;
  background: #000;
}
.player-modal-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

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

@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    display: none;
    flex-direction: column;
    gap: 0;
    padding: 0.75rem 1rem 1.25rem;
    background: rgba(243, 245, 248, 0.98);
    border-bottom: 3px solid var(--scaffold-ink);
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 0.75rem 0.25rem; border-bottom: 1px solid rgba(26, 29, 36, 0.08); }
  .hero { min-height: auto; padding-top: 2.5rem; padding-bottom: 2.5rem; }
  .player-modal { padding: 0; align-items: stretch; }
  .player-modal-panel {
    width: 100%;
    height: 100%;
    max-height: 100%;
    border-radius: 0;
  }
  .player-modal-frame {
    flex: 1 1 auto;
    min-height: 0;
    aspect-ratio: auto;
    height: calc(100dvh - 56px);
  }
}
