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

:root {
  --asphalt-night: #141820;
  --lane-stripe: #f5d547;
  --hen-coral: #e85a4f;
  --coop-cream: #f7f1e6;
  --verge-green: #3f7a4e;
  --dawn-peach: #ff9a5a;
  --ink-road: #1a222c;
  --paper-lane: #f4efe6;
  --font-head: "Lexend", "Trebuchet MS", sans-serif;
  --font-body: "Manrope", "Segoe UI", sans-serif;
  --header-h: 72px;
  --max-w: 1100px;
  --radius: 14px;
}

.u-flex { display: flex; }
.u-flex-between { justify-content: space-between; align-items: center; }
.u-grid-footer { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.u-mt-0 { margin-top: 0; }
.u-mb-1 { margin-bottom: 1rem; }
.u-text-center { text-align: center; }

*,
*::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-road);
  background-color: var(--paper-lane);
  background-size: 220% 220%;
  background-image:
    radial-gradient(ellipse 80% 50% at 12% 8%, rgba(232, 90, 79, 0.22), transparent 55%),
    radial-gradient(ellipse 70% 45% at 88% 12%, rgba(245, 213, 71, 0.2), transparent 50%),
    radial-gradient(ellipse 55% 40% at 40% 95%, rgba(63, 122, 78, 0.16), transparent 55%),
    linear-gradient(125deg, #ebe4d6 0%, var(--paper-lane) 42%, #e8f0ea 100%);
  animation: lane-shift 18s ease infinite;
}

@keyframes lane-shift {
  0% { background-position: 0% 40%; }
  50% { background-position: 100% 60%; }
  100% { background-position: 0% 40%; }
}

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

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

a { color: var(--verge-green); }
a:hover { color: var(--hen-coral); }

h1, h2, h3 {
  font-family: var(--font-head);
  letter-spacing: -0.01em;
  line-height: 1.15;
  color: var(--asphalt-night);
  margin: 0 0 0.65rem;
}

h1 { font-size: clamp(2.2rem, 5.5vw, 3.6rem); font-weight: 700; }
h2 { font-size: clamp(1.55rem, 3.2vw, 2.15rem); font-weight: 700; }
h3 { font-size: 1.28rem; font-weight: 600; }

p { margin: 0 0 1rem; }
ul { margin: 0 0 1rem; padding-left: 1.2rem; }

main { flex: 1; }

.u-wrap {
  width: min(100% - 2rem, var(--max-w));
  margin-inline: auto;
  padding: 2.5rem 0;
}

.u-header {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--header-h);
  background: rgba(244, 239, 230, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 2px solid rgba(20, 24, 32, 0.08);
}

.u-header-inner {
  width: min(100% - 2rem, var(--max-w));
  margin: 0 auto;
  height: 100%;
}

.u-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--asphalt-night);
}

.u-brand-mark { width: 36px; height: 36px; display: grid; place-items: center; }
.u-brand-mark svg { width: 36px; height: 36px; }
.u-brand-name {
  font-family: var(--font-head);
  font-size: 1.25rem;
  font-weight: 700;
}

.u-nav {
  display: flex;
  gap: 1.1rem;
  align-items: center;
}

.u-nav a {
  text-decoration: none;
  color: var(--ink-road);
  font-weight: 600;
  font-size: 0.95rem;
}

.u-nav a[aria-current="page"],
.u-nav a:hover { color: var(--hen-coral); }

.u-nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
}

.u-nav-toggle span {
  display: block;
  height: 2px;
  width: 22px;
  background: var(--asphalt-night);
  margin-inline: auto;
}

.u-panel {
  background: rgba(247, 241, 230, 0.92);
  border: 1px solid rgba(20, 24, 32, 0.08);
  border-radius: var(--radius);
  box-shadow: 0 10px 28px rgba(20, 24, 32, 0.08);
}

.u-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.85rem 1.4rem;
  border: 0;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.98rem;
  text-decoration: none;
  cursor: pointer;
  color: #fff;
  position: relative;
  overflow: hidden;
  transition: transform 0.15s ease, filter 0.2s ease;
}

.u-btn-gradient {
  background: linear-gradient(120deg, var(--hen-coral), var(--dawn-peach) 55%, var(--lane-stripe));
  color: var(--asphalt-night);
}

.u-btn-gradient:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
  color: var(--asphalt-night);
}

.u-btn-block { width: 100%; }

.u-btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,0.35) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform 0.45s ease;
}

.u-btn:hover::after { transform: translateX(120%); }

.hero {
  min-height: calc(100vh - var(--header-h));
  display: grid;
  align-content: center;
  padding-top: 1rem;
  padding-bottom: 3rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  right: -6%;
  top: 18%;
  width: min(48vw, 460px);
  height: min(48vw, 460px);
  border-radius: 42% 58% 48% 52%;
  background:
    radial-gradient(circle at 35% 35%, rgba(245, 213, 71, 0.55), transparent 58%),
    radial-gradient(circle at 70% 65%, rgba(232, 90, 79, 0.35), transparent 60%);
  pointer-events: none;
  animation: coop-bob 11s ease-in-out infinite;
}

@keyframes coop-bob {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-16px) rotate(4deg); }
}

.hero-brand {
  font-family: var(--font-head);
  font-size: clamp(2.8rem, 8vw, 4.8rem);
  font-weight: 700;
  color: var(--asphalt-night);
  margin: 0 0 0.75rem;
  position: relative;
  animation: rise-in 0.75s ease both;
}

.hero-lead {
  max-width: 36rem;
  font-size: 1.15rem;
  color: rgba(26, 34, 44, 0.84);
  margin-bottom: 1.5rem;
  position: relative;
  animation: rise-in 0.85s ease 0.06s both;
}

.hero .u-btn {
  position: relative;
  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(26, 34, 44, 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(--asphalt-night); }
.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.35rem; }
.game-card-desc { margin: 0; flex: 1; font-size: 0.95rem; color: rgba(26, 34, 44, 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: 1px solid rgba(20, 24, 32, 0.1);
  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(--hen-coral); }
.faq details p { margin: 0.65rem 0 0; color: rgba(26, 34, 44, 0.78); }

.cta-band {
  padding: 2rem 1.5rem;
  text-align: center;
  background: linear-gradient(135deg, rgba(232, 90, 79, 0.14), rgba(245, 213, 71, 0.2));
  border-radius: var(--radius);
  border: 1px solid rgba(20, 24, 32, 0.08);
}
.cta-band p { max-width: 36rem; margin: 0 auto 1.25rem; }

.page-head { margin-bottom: 1.5rem; }
.lead { font-size: 1.12rem; color: rgba(26, 34, 44, 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(26, 34, 44, 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(--verge-green);
  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: 1px solid rgba(20, 24, 32, 0.14);
  border-radius: 10px;
  background: #fffdf8;
  font: inherit;
  color: inherit;
}
.form-stack textarea { min-height: 140px; resize: vertical; }
.form-status { display: none; color: var(--verge-green); font-weight: 600; }
.form-status.is-visible { display: block; }

.article-header { margin-bottom: 1.5rem; }
.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.1rem;
  color: rgba(26, 34, 44, 0.6);
  font-size: 0.9rem;
}
.article-content img {
  width: min(100%, 420px);
  border-radius: var(--radius);
  margin: 0 0 1.25rem;
  box-shadow: 0 10px 28px rgba(20, 24, 32, 0.1);
}
.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;
}

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

.u-footer {
  margin-top: 2rem;
  padding: 2.5rem 0 1.25rem;
  background: var(--asphalt-night);
  color: rgba(255, 255, 255, 0.82);
}
.u-footer a { color: #f5d547; }
.u-footer a:hover { color: #ff9a5a; }
.u-footer h3 { color: #fff; font-size: 1.15rem; }
.u-footer ul { list-style: none; padding: 0; margin: 0; }
.u-footer li { margin-bottom: 0.4rem; }
.u-footer-inner {
  width: min(100% - 2rem, var(--max-w));
  margin: 0 auto 1.5rem;
}
.u-footer-base {
  width: min(100% - 2rem, var(--max-w));
  margin: 0 auto;
  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: var(--coop-cream);
  border-radius: 14px;
  border: 1px solid rgba(20, 24, 32, 0.1);
  box-shadow: 0 12px 30px rgba(20, 24, 32, 0.18);
}
.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: var(--coop-cream);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}
.player-modal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid rgba(20, 24, 32, 0.1);
  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(--asphalt-night);
  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) {
  .u-nav-toggle { display: flex; }
  .u-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(244, 239, 230, 0.98);
    border-bottom: 1px solid rgba(20, 24, 32, 0.08);
  }
  .u-nav.is-open { display: flex; }
  .u-nav a { padding: 0.75rem 0.25rem; border-bottom: 1px solid rgba(20, 24, 32, 0.06); }
  .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);
  }
}
