/* ═══════════════════════════════════════════════════════
   PlayEye — CrazyGames-style dark + PlayEye amber
   Full responsive (mobile → desktop). No phone frame.
   One stylesheet drives every page. Markup unchanged.
═══════════════════════════════════════════════════════ */

/* ──────────────────────────────────────
   DESIGN TOKENS
────────────────────────────────────── */
:root {
  /* ===== Accent: PlayEye amber (hybrid) ===== */
  --pe-brand-100: #F5A524;   /* PRIMARY — CTA / accent / links */
  --pe-brand-120: #d98a14;   /* hover (darker) */
  --pe-brand-80:  #ffbe52;   /* lighter variant */
  --pe-brand-30:  #ffe3b0;   /* soft tint */
  --pe-brand-soft: rgba(245,165,36,0.12);
  --pe-brand-ring: rgba(245,165,36,0.30);

  /* ===== Dark canvas (CrazyGames values) ===== */
  --pe-bg:         #212233;
  --pe-bg-deep:    #1a1b28;
  --pe-bg-deepest: #13141e;
  --pe-ink:        #0c0d14;
  --pe-surface:    #28293d;
  --pe-surface-2:  #2f3148;
  --pe-border:     #373952;
  --pe-border-soft:#474967;

  /* ===== Text hierarchy ===== */
  --pe-text:       #f9faff;
  --pe-text-2:     #eff0f7;
  --pe-text-muted: #aaadbe;
  --pe-text-dim:   #878a9e;

  /* ===== Semantic ===== */
  --pe-success:    #4af0a7;
  --pe-warning:    #ffac4a;
  --pe-alert:      #e70d5c;

  /* ===== Typography ===== */
  --pe-font: "Nunito", Arial, "Helvetica Neue", Helvetica, sans-serif;

  /* ===== Spacing (8px base) ===== */
  --sp-1:  4px;  --sp-2:  8px;  --sp-3: 12px;  --sp-4: 16px;
  --sp-5: 20px;  --sp-6: 24px;  --sp-8: 32px;  --sp-10: 40px;
  --sp-12: 48px; --sp-16: 64px; --sp-20: 80px;

  /* ===== Radius ===== */
  --pe-radius-sm:  8px;
  --pe-radius-md:  16px;
  --pe-radius-lg:  30px;
  --pe-radius-pill:999px;

  /* ===== Shadow ===== */
  --pe-shadow-card: 0 10px 30px 0 rgba(0,0,0,.45);
  --pe-shadow-glow: 0 16px 30px 0 rgba(245,165,36,.28);
  --pe-shadow-pop:  0 20px 48px rgba(0,0,0,.55);

  /* ===== Layout ===== */
  --container:  1280px;
  --measure:    760px;   /* readable text column */
  --header-h:   60px;
  --gutter:     clamp(16px, 4vw, 40px);

  /* ===== Easing ===== */
  --ease-out:    cubic-bezier(0.16, 1, 0.30, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ──────────────────────────────────────
   RESET
────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  background: var(--pe-bg);
  color: var(--pe-text-2);
  font-family: var(--pe-font);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button { cursor: pointer; font-family: inherit; border: none; background: none; color: inherit; }
strong, b { font-weight: 800; }
em { font-style: italic; }
:focus-visible {
  outline: 2px solid var(--pe-brand-100);
  outline-offset: 3px;
  border-radius: var(--pe-radius-sm);
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ──────────────────────────────────────
   PAGE WRAPPER (was the phone frame)
   Now a full-width responsive shell.
────────────────────────────────────── */
.app-frame {
  position: relative;
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--pe-bg);
  overflow-x: hidden;
}

/* PC side dressing no longer needed in the full layout */
.pc-dressing { display: none !important; }

/* Shared centered content column.
   Sections set their own background full-bleed; their inner
   content is centered via this pattern using max-width + auto margin. */
.header-inner,
.hero-content,
.section-header,
.game-grid,
.content-section > *,
.pitch-inner,
.footer-inner,
.legal-hero > *,
.page-body > *,
.legal-body > *,
.game-detail,
.game-detail-breadcrumb > a,
.more-games > * {
  margin-inline: auto;
}

/* ──────────────────────────────────────
   LOGO — PlayEye wordmark
────────────────────────────────────── */
.logo {
  font-family: var(--pe-font);
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  display: inline-flex;
  align-items: center;
  line-height: 1;
  color: var(--pe-text);
  flex-shrink: 0;
}
.logo-dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--pe-brand-100);
  margin-left: 5px;
  margin-bottom: 2px;
  box-shadow: 0 0 12px var(--pe-brand-ring);
}

/* ──────────────────────────────────────
   HEADER — sticky, dark, full-width
────────────────────────────────────── */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(19,20,30,0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--pe-border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--container);
  height: var(--header-h);
  padding-inline: var(--gutter);
}
.header-right {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
}

/* hamburger */
.hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  border-radius: var(--pe-radius-sm);
  flex-shrink: 0;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--pe-text-2);
  border-radius: 2px;
  transition: transform 0.25s var(--ease-out), opacity 0.2s;
  transform-origin: center;
}
.hamburger.is-active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.is-active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.is-active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* desktop nav */
.nav-desktop {
  display: none;
  align-items: center;
  gap: var(--sp-1);
}
.nav-desktop-link {
  display: inline-flex;
  align-items: center;
  padding: 9px 16px;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--pe-text-muted);
  border-radius: var(--pe-radius-pill);
  transition: color 0.15s, background 0.15s;
}
.nav-desktop-link:hover { color: var(--pe-text); background: var(--pe-surface); }
.nav-desktop-link[aria-current="page"] { color: var(--pe-brand-100); }

@media (min-width: 768px) {
  .nav-desktop { display: flex; }
  .hamburger { display: none; }
}

/* mobile nav drawer */
.mobile-nav {
  display: none;
  flex-direction: column;
  background: var(--pe-bg-deep);
  border-top: 1px solid var(--pe-border);
  padding: var(--sp-2) var(--gutter) var(--sp-4);
  box-shadow: var(--pe-shadow-pop);
}
.mobile-nav.is-open { display: flex; }
.mobile-nav-link {
  display: flex;
  align-items: center;
  padding: var(--sp-3) var(--sp-2);
  font-size: 1rem;
  font-weight: 700;
  color: var(--pe-text-muted);
  min-height: 48px;
  border-radius: var(--pe-radius-sm);
  transition: color 0.15s, background 0.15s;
}
.mobile-nav-link:hover { color: var(--pe-text); background: var(--pe-surface); }

/* ──────────────────────────────────────
   BUTTONS
────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  padding: 12px 26px;
  border-radius: var(--pe-radius-lg);
  font-family: var(--pe-font);
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: -0.01em;
  transition: background 0.16s var(--ease-out), transform 0.16s var(--ease-out), box-shadow 0.16s;
  white-space: nowrap;
  min-height: 48px;
}
.btn-primary {
  background: var(--pe-brand-100);
  color: var(--pe-ink);
  box-shadow: 0 8px 20px rgba(245,165,36,0.22);
}
.btn-primary:hover {
  background: var(--pe-brand-120);
  transform: translateY(-2px);
  box-shadow: var(--pe-shadow-glow);
}
.btn-primary:active { transform: translateY(0); }

.btn-ghost {
  background: var(--pe-surface);
  color: var(--pe-text-2);
  border: 1px solid var(--pe-border);
  font-size: 0.9rem;
  padding: 10px 18px;
  min-height: 40px;
}
.btn-ghost:hover:not(:disabled) {
  background: var(--pe-surface-2);
  color: var(--pe-text);
  border-color: var(--pe-border-soft);
}
.btn-placeholder { opacity: 0.6; cursor: default; }

.play-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  line-height: 1;
}

.badge-soon {
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  background: var(--pe-brand-soft);
  color: var(--pe-brand-80);
  padding: 2px 6px;
  border-radius: var(--pe-radius-pill);
  border: 1px solid var(--pe-brand-ring);
}

/* ──────────────────────────────────────
   HERO
────────────────────────────────────── */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(120% 140% at 12% 0%, rgba(245,165,36,0.16) 0%, rgba(245,165,36,0) 46%),
    linear-gradient(180deg, var(--pe-bg-deep) 0%, var(--pe-bg) 100%);
  border-bottom: 1px solid var(--pe-border);
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: var(--container);
  padding: clamp(48px, 9vw, 96px) var(--gutter) clamp(56px, 10vw, 104px);
  width: 100%;
}

.series-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--pe-brand-80);
  background: var(--pe-brand-soft);
  border: 1px solid var(--pe-brand-ring);
  padding: 6px 14px;
  border-radius: var(--pe-radius-pill);
  margin-bottom: var(--sp-6);
}
.eyebrow-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--pe-brand-100);
  animation: pulse-dot 2s infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.35; transform: scale(0.6); }
}

.hero-title {
  font-family: var(--pe-font);
  font-size: clamp(2.5rem, 7vw, 4rem);
  font-weight: 900;
  line-height: 1.02;
  letter-spacing: -0.03em;
  color: var(--pe-text);
  max-width: 14ch;
}
.hero-title-accent { color: var(--pe-brand-100); }
.hero-sub {
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  color: var(--pe-text-muted);
  line-height: 1.65;
  margin-top: var(--sp-5);
  max-width: 52ch;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-4);
  margin-top: var(--sp-8);
}
.hero-meta { font-size: 0.9rem; font-weight: 700; color: var(--pe-text-dim); }

/* ──────────────────────────────────────
   GAME GRID — responsive poster cards
────────────────────────────────────── */
.games-section {
  padding: clamp(40px, 6vw, 72px) var(--gutter) clamp(48px, 8vw, 88px);
  background: var(--pe-bg);
}
.section-header {
  max-width: var(--container);
  margin-bottom: var(--sp-6);
}
.section-title {
  font-family: var(--pe-font);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--pe-text);
}
.section-sub {
  font-size: 1rem;
  font-weight: 600;
  color: var(--pe-text-dim);
  margin-top: var(--sp-1);
}
.game-grid {
  max-width: var(--container);
  display: grid;
  gap: var(--sp-4);
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 600px)  { .game-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 900px)  { .game-grid { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1200px) { .game-grid { grid-template-columns: repeat(5, 1fr); } }

/* ──────────────────────────────────────
   GAME CARD — vertical poster
────────────────────────────────────── */
.game-card {
  display: flex;
  flex-direction: column;
  background: var(--pe-surface);
  border-radius: var(--pe-radius-md);
  overflow: hidden;
  box-shadow: var(--pe-shadow-card);
  transition: transform 0.18s var(--ease-out), box-shadow 0.18s var(--ease-out);
  border: 1px solid var(--pe-border);
}
.game-card:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: var(--pe-shadow-glow);
  border-color: var(--pe-brand-ring);
}
.game-card:active { transform: scale(0.99); }

/* thumbnail panel — square-ish, icon centered on tinted panel */
.card-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  flex-shrink: 0;
  overflow: hidden;
}
.thumb-bg {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  padding: 14%;
}
/* per-genre tinted backdrops */
.thumb-bg--commute { background: radial-gradient(120% 120% at 50% 0%, #2f3a57 0%, #232a40 100%); }
.thumb-bg--defense { background: radial-gradient(120% 120% at 50% 0%, #2e4a37 0%, #233427 100%); }
.thumb-bg--harvest { background: radial-gradient(120% 120% at 50% 0%, #4a432a 0%, #332f20 100%); }
.thumb-bg--planet  { background: radial-gradient(120% 120% at 50% 0%, #3a2e57 0%, #2a2340 100%); }
.thumb-bg--archer,
.thumb-bg--match   { background: radial-gradient(120% 120% at 50% 0%, var(--pe-surface-2) 0%, var(--pe-surface) 100%); }

.thumb-icon {
  width: auto;
  height: 100%;
  max-width: 100%;
  object-fit: contain;
  filter: drop-shadow(0 6px 14px rgba(0,0,0,0.45));
  transition: transform 0.25s var(--ease-spring);
}
.game-card:hover .thumb-icon { transform: scale(1.07) translateY(-2px); }

.card-genre-tag {
  position: absolute;
  top: var(--sp-2); left: var(--sp-2);
  font-size: 0.62rem; font-weight: 800; letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 4px 9px;
  border-radius: var(--pe-radius-pill);
  background: rgba(12,13,20,0.78);
  backdrop-filter: blur(6px);
  color: var(--pe-brand-80);
  border: 1px solid var(--pe-brand-ring);
  white-space: nowrap;
}

/* body */
.card-body {
  flex: 1;
  padding: var(--sp-4);
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.card-title {
  font-family: var(--pe-font);
  font-size: 1.05rem; font-weight: 800; letter-spacing: -0.01em;
  color: var(--pe-text);
  line-height: 1.2;
}
.card-desc {
  font-size: 0.85rem; color: var(--pe-text-muted); line-height: 1.5;
  margin-top: var(--sp-2);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-cta {
  display: flex; align-items: center; gap: 4px;
  margin-top: var(--sp-3);
  font-size: 0.85rem; font-weight: 800;
  color: var(--pe-text-dim);
  transition: color 0.15s;
}
.card-cta .chevron { font-size: 1.05rem; line-height: 1; transition: transform 0.2s var(--ease-out); }
.game-card:hover .card-cta { color: var(--pe-brand-100); }
.game-card:hover .card-cta .chevron { transform: translateX(3px); }

/* legacy wrapper, kept harmless */
.game-card-wrap { display: flex; flex-direction: column; }
.learn-more-link {
  align-self: flex-end;
  display: inline-flex; align-items: center; gap: 4px;
  margin-top: 6px; padding: 6px 10px;
  font-size: 0.8rem; font-weight: 700;
  color: var(--pe-text-dim);
  border-radius: var(--pe-radius-pill);
  transition: color 0.15s, background 0.15s;
}
.learn-more-link:hover { color: var(--pe-brand-100); background: var(--pe-brand-soft); }
.learn-more-link .chevron { transition: transform 0.2s var(--ease-out); }
.learn-more-link:hover .chevron { transform: translateX(2px); }

/* ──────────────────────────────────────
   CONTENT SECTIONS (About / Why / Genres / FAQ)
────────────────────────────────────── */
.content-section {
  padding: clamp(44px, 7vw, 80px) var(--gutter);
  background: var(--pe-bg);
  border-top: 1px solid var(--pe-border);
}
.content-section--alt { background: var(--pe-bg-deep); }

/* center + constrain inner content to a readable measure */
.content-section > .content-eyebrow,
.content-section > .content-heading,
.content-section > p { max-width: var(--measure); }
.content-section > .feature-list,
.content-section > .genre-list,
.content-section > .faq-list { max-width: var(--measure); }

.content-eyebrow {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--pe-brand-100);
  margin-bottom: var(--sp-3);
}
.content-heading {
  font-family: var(--pe-font);
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--pe-text);
  margin-bottom: var(--sp-5);
}
.content-section p {
  font-size: 1rem;
  color: var(--pe-text-muted);
  line-height: 1.75;
  margin-bottom: var(--sp-4);
}
.content-section p:last-child { margin-bottom: 0; }
.content-section p strong { color: var(--pe-text); }

/* Why — feature points */
.feature-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-5);
  margin-top: var(--sp-8);
}
@media (min-width: 700px) { .feature-list { grid-template-columns: 1fr 1fr; gap: var(--sp-6); } }
.feature-item {
  display: flex;
  gap: var(--sp-4);
  align-items: flex-start;
  background: var(--pe-surface);
  border: 1px solid var(--pe-border);
  border-radius: var(--pe-radius-md);
  padding: var(--sp-5);
  transition: border-color 0.15s, transform 0.15s var(--ease-out);
}
.feature-item:hover { border-color: var(--pe-border-soft); transform: translateY(-2px); }
.feature-icon {
  width: 46px; height: 46px; min-width: 46px;
  border-radius: var(--pe-radius-sm);
  background: var(--pe-brand-soft);
  border: 1px solid var(--pe-brand-ring);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.25rem;
}
.feature-text h3 {
  font-family: var(--pe-font);
  font-size: 1.1rem; font-weight: 800; letter-spacing: -0.01em;
  color: var(--pe-text);
  margin-bottom: 6px;
}
.feature-text p {
  font-size: 0.92rem;
  color: var(--pe-text-muted);
  line-height: 1.6;
  margin-bottom: 0;
}

/* Genres */
.genre-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-4);
  margin-top: var(--sp-6);
}
@media (min-width: 700px) { .genre-list { grid-template-columns: 1fr 1fr; } }
.genre-card {
  padding: var(--sp-5);
  background: var(--pe-surface);
  border: 1px solid var(--pe-border);
  border-radius: var(--pe-radius-md);
  transition: border-color 0.15s, transform 0.15s var(--ease-out);
}
.genre-card:hover { border-color: var(--pe-brand-ring); transform: translateY(-2px); }
.content-section--alt .genre-card { background: var(--pe-bg); }
.genre-card h3 {
  font-family: var(--pe-font);
  font-size: 1.05rem; font-weight: 800; letter-spacing: -0.01em;
  color: var(--pe-text);
  margin-bottom: 6px;
}
.genre-card p {
  font-size: 0.92rem;
  color: var(--pe-text-muted);
  line-height: 1.55;
  margin-bottom: 0;
}
.genre-card em { color: var(--pe-brand-80); font-style: normal; font-weight: 700; }

/* FAQ accordion */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  margin-top: var(--sp-6);
}
.faq-item {
  background: var(--pe-surface);
  border: 1px solid var(--pe-border);
  border-radius: var(--pe-radius-md);
  overflow: hidden;
  transition: border-color 0.15s;
}
.faq-item[open] { border-color: var(--pe-brand-ring); }
.content-section--alt .faq-item { background: var(--pe-bg); }
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: var(--sp-4) var(--sp-5);
  font-family: var(--pe-font);
  font-size: 1.02rem;
  font-weight: 800;
  color: var(--pe-text);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  min-height: 56px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--pe-brand-100);
  line-height: 1;
  transition: transform 0.2s var(--ease-out);
  flex-shrink: 0;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item .faq-answer { padding: 0 var(--sp-5) var(--sp-5); }
.faq-item .faq-answer p {
  font-size: 0.95rem;
  color: var(--pe-text-muted);
  line-height: 1.7;
  margin-bottom: var(--sp-2);
}
.faq-item .faq-answer p:last-child { margin-bottom: 0; }
.faq-item .faq-answer a {
  color: var(--pe-brand-100);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ──────────────────────────────────────
   PITCH STRIP
────────────────────────────────────── */
.pitch-strip {
  border-top: 1px solid var(--pe-border);
  border-bottom: 1px solid var(--pe-border);
  padding: var(--sp-5) var(--gutter);
  background: var(--pe-bg-deep);
}
.pitch-inner {
  max-width: var(--container);
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}
@media (min-width: 700px) {
  .pitch-inner { flex-direction: row; justify-content: center; gap: var(--sp-12); }
}
.pitch-item {
  display: flex; align-items: center; gap: var(--sp-3);
  font-size: 0.98rem; font-weight: 700; color: var(--pe-text-2);
}
.pitch-icon { font-size: 1.2rem; flex-shrink: 0; }

/* ──────────────────────────────────────
   FOOTER — multicolumn on desktop
────────────────────────────────────── */
.footer {
  padding: clamp(40px, 6vw, 64px) var(--gutter) clamp(32px, 5vw, 48px);
  border-top: 1px solid var(--pe-border);
  background: var(--pe-bg-deepest);
}
.footer-inner {
  max-width: var(--container);
  display: flex;
  flex-direction: column;
  gap: var(--sp-6);
}
@media (min-width: 700px) {
  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
  }
}
.footer .logo { font-size: 1.3rem; }
.footer-tagline { font-size: 0.9rem; color: var(--pe-text-muted); margin-top: var(--sp-2); }
.footer-parent {
  font-size: 0.75rem;
  color: var(--pe-text-dim);
  margin-top: var(--sp-2);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.footer-parent strong { color: var(--pe-text-muted); }
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-1) var(--sp-5);
}
.footer-link {
  font-size: 0.95rem; font-weight: 700; color: var(--pe-text-muted);
  transition: color 0.15s;
  min-height: 44px; display: inline-flex; align-items: center;
}
.footer-link:hover { color: var(--pe-brand-100); }
.footer-copy {
  font-size: 0.8rem; color: var(--pe-text-dim);
  width: 100%;
  padding-top: var(--sp-5);
  margin-top: var(--sp-2);
  border-top: 1px solid var(--pe-border);
}

/* ──────────────────────────────────────
   GAME DETAIL — bundled section + standalone page
────────────────────────────────────── */
.game-detail-breadcrumb {
  padding: var(--sp-5) var(--gutter) 0;
  background: var(--pe-bg);
}
.game-detail-breadcrumb > a {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-1);
  max-width: var(--container);
  width: 100%;
  padding: var(--sp-2) 0;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--pe-text-muted);
  transition: color 0.15s;
  min-height: 40px;
}
.game-detail-breadcrumb > a:hover { color: var(--pe-brand-100); }

.game-detail {
  padding: clamp(28px, 5vw, 56px) var(--gutter) clamp(40px, 6vw, 72px);
  scroll-margin-top: 76px;
}
.game-detail--page {
  background: var(--pe-bg);
  max-width: var(--measure);
}

/* header row */
.game-detail-header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--sp-4);
  margin-bottom: var(--sp-6);
}
@media (min-width: 560px) {
  .game-detail-header {
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
  }
}
.game-detail-thumb {
  width: 96px;
  height: 96px;
  border-radius: var(--pe-radius-md);
  overflow: hidden;
  border: 1px solid var(--pe-border);
  flex-shrink: 0;
}
.game-detail-thumb .thumb-bg {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  padding: 12%;
}
.game-detail-thumb .thumb-icon {
  width: auto; height: 100%; max-width: 100%;
  object-fit: contain;
  filter: drop-shadow(0 4px 10px rgba(0,0,0,0.4));
}
.game-detail-meta { display: flex; flex-direction: column; gap: 6px; min-width: 0; flex: 1; }
.game-detail-title {
  font-family: var(--pe-font);
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  color: var(--pe-text);
  line-height: 1.1;
}
.game-detail-tagline {
  font-size: 1rem;
  font-weight: 600;
  color: var(--pe-text-muted);
  line-height: 1.45;
}
.game-detail-cta {
  align-self: stretch;
}
@media (min-width: 560px) {
  .game-detail-cta { align-self: auto; margin-left: auto; }
}

/* at-a-glance grid */
.game-detail-glance {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-4);
  margin-bottom: var(--sp-8);
  padding: var(--sp-5);
  background: var(--pe-surface);
  border: 1px solid var(--pe-border);
  border-radius: var(--pe-radius-md);
}
@media (min-width: 560px) { .game-detail-glance { grid-template-columns: repeat(4, 1fr); } }
.glance-item { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.glance-item dt {
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--pe-brand-100);
}
.glance-item dd {
  font-size: 0.92rem;
  color: var(--pe-text);
  line-height: 1.4;
  font-weight: 700;
}

/* detail body — readable article */
.game-detail-body h2,
.game-detail-body h4 {
  font-family: var(--pe-font);
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--pe-text);
  margin-top: var(--sp-8);
  margin-bottom: var(--sp-4);
}
.game-detail-body h2:first-child,
.game-detail-body h4:first-child { margin-top: 0; }
.game-detail-body p {
  font-size: 1rem;
  color: var(--pe-text-muted);
  line-height: 1.78;
  margin-bottom: var(--sp-4);
}
.game-detail-body p:last-of-type { margin-bottom: 0; }
.game-detail-body ul {
  list-style: none;
  margin: var(--sp-3) 0 0;
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}
.game-detail-body ul li {
  font-size: 0.98rem;
  color: var(--pe-text-muted);
  line-height: 1.7;
  padding-left: var(--sp-5);
  position: relative;
}
.game-detail-body ul li::before {
  content: '';
  position: absolute;
  left: 0; top: 0.6em;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--pe-brand-100);
}
.game-detail-body ul li strong { color: var(--pe-text); }

/* ──────────────────────────────────────
   MORE GAMES — bottom of detail pages
────────────────────────────────────── */
.more-games {
  padding: clamp(40px, 6vw, 72px) var(--gutter);
  background: var(--pe-bg-deep);
  border-top: 1px solid var(--pe-border);
}
.more-games-title {
  max-width: var(--container);
  font-family: var(--pe-font);
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--pe-text);
  margin-bottom: var(--sp-6);
}
.more-games-grid {
  max-width: var(--container);
  display: grid;
  gap: var(--sp-4);
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 600px)  { .more-games-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 900px)  { .more-games-grid { grid-template-columns: repeat(4, 1fr); } }
/* more-games cards reuse the standard poster card — no overrides needed,
   but hide the CTA row since these are quieter (no .card-cta present in markup) */

/* ──────────────────────────────────────
   LEGAL / CONTENT PAGES (about, contact, privacy, terms)
────────────────────────────────────── */
.legal-hero {
  padding: clamp(40px, 7vw, 72px) var(--gutter) clamp(28px, 4vw, 40px);
  border-bottom: 1px solid var(--pe-border);
  background:
    radial-gradient(120% 160% at 0% 0%, rgba(245,165,36,0.12) 0%, rgba(245,165,36,0) 50%),
    var(--pe-bg-deep);
}
.legal-hero > * { max-width: var(--measure); width: 100%; }
.legal-hero-eyebrow {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--pe-brand-100);
  margin-bottom: var(--sp-3);
}
.legal-hero h1 {
  font-family: var(--pe-font);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  color: var(--pe-text);
  line-height: 1.1;
}
.legal-hero-meta {
  font-size: 1rem;
  font-weight: 600;
  color: var(--pe-text-muted);
  margin-top: var(--sp-3);
}

.legal-body,
.page-body {
  padding: clamp(40px, 6vw, 64px) var(--gutter) clamp(56px, 8vw, 88px);
  background: var(--pe-bg);
  flex: 1;
}
.legal-body > *,
.page-body > * { max-width: var(--measure); width: 100%; }

.legal-section {
  margin-bottom: var(--sp-10);
  padding-bottom: var(--sp-10);
  border-bottom: 1px solid var(--pe-border);
}
.legal-section:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.legal-section h2,
.page-body h2 {
  font-family: var(--pe-font);
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--pe-text);
  margin-bottom: var(--sp-4);
}
.legal-section p,
.page-body p {
  font-size: 1rem;
  color: var(--pe-text-muted);
  line-height: 1.78;
  margin-bottom: var(--sp-4);
}
.legal-section p:last-child,
.page-body p:last-child { margin-bottom: 0; }
.page-body p strong,
.legal-section p strong { color: var(--pe-text); }
.legal-section ul,
.page-body ul {
  list-style: none;
  margin: var(--sp-3) 0 var(--sp-4);
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}
.legal-section ul li,
.page-body ul li {
  font-size: 0.98rem;
  color: var(--pe-text-muted);
  line-height: 1.7;
  padding-left: var(--sp-5);
  position: relative;
}
.legal-section ul li::before,
.page-body ul li::before {
  content: '';
  position: absolute;
  left: 0; top: 0.6em;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--pe-brand-100);
}
.page-body ul li strong,
.legal-section ul li strong { color: var(--pe-text); }
.legal-section a,
.page-body a.inline-link,
.content-section a.inline-link {
  color: var(--pe-brand-100);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.legal-section a:hover,
.page-body a.inline-link:hover,
.content-section a.inline-link:hover { color: var(--pe-brand-80); }

.page-body .content-block { margin-bottom: var(--sp-10); }
.page-body .content-block:last-child { margin-bottom: 0; }

.legal-highlight,
.info-box {
  background: var(--pe-surface);
  border: 1px solid var(--pe-border);
  border-left: 3px solid var(--pe-brand-100);
  border-radius: var(--pe-radius-sm);
  padding: var(--sp-5) var(--sp-6);
  margin: var(--sp-5) 0;
}
.legal-highlight p,
.info-box p {
  font-size: 0.95rem;
  color: var(--pe-text-muted);
  margin-bottom: 0;
  line-height: 1.7;
}
.legal-highlight strong,
.info-box strong { color: var(--pe-text); }

/* Contact method cards */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-4);
  margin: var(--sp-5) 0 var(--sp-6);
}
@media (min-width: 560px) { .contact-grid { grid-template-columns: 1fr 1fr; } }
.contact-card {
  padding: var(--sp-5);
  background: var(--pe-surface);
  border: 1px solid var(--pe-border);
  border-radius: var(--pe-radius-md);
  transition: border-color 0.15s, transform 0.15s var(--ease-out);
}
.contact-card:hover { border-color: var(--pe-brand-ring); transform: translateY(-2px); }
.contact-card h3 {
  font-family: var(--pe-font);
  font-size: 1.05rem; font-weight: 800; letter-spacing: -0.01em;
  color: var(--pe-text);
  margin-bottom: 6px;
}
.contact-card p {
  font-size: 0.92rem;
  color: var(--pe-text-muted);
  line-height: 1.55;
  margin-bottom: 0;
}
.contact-cta { margin-top: var(--sp-5); }

/* ──────────────────────────────────────
   RESPONSIVE — small phones
────────────────────────────────────── */
@media (max-width: 380px) {
  .game-grid,
  .more-games-grid { gap: var(--sp-3); }
  .card-body { padding: var(--sp-3); }
  .card-title { font-size: 0.98rem; }
  .card-desc { font-size: 0.8rem; }
}
