:root {
  --ink: #17201c;
  --muted: #52615a;
  --paper: #fbfaf5;
  --line: #d9ded2;
  --green: #207a57;
  --green-dark: #125139;
  --sun: #f0b33f;
  --coral: #d95d4f;
  --blue: #276f8f;
  --white: #fff;
  --shadow: 0 18px 50px rgba(23, 32, 28, .15);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
}

a {
  color: inherit;
}

button,
input,
textarea {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px clamp(18px, 4vw, 56px);
  background: rgba(251, 250, 245, .92);
  border-bottom: 1px solid rgba(23, 32, 28, .09);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 850;
  letter-spacing: 0;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: var(--green);
  color: var(--white);
  box-shadow: inset 0 -4px 0 rgba(0, 0, 0, .12);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  color: var(--muted);
  font-size: 15px;
}

.main-nav a {
  text-decoration: none;
}

.main-nav a:hover {
  color: var(--green-dark);
}

.menu-btn {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.menu-btn span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: var(--ink);
}

.hero {
  position: relative;
  min-height: 680px;
  display: grid;
  align-items: end;
  overflow: hidden;
  color: var(--white);
}

.hero-media {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(14, 24, 19, .92) 0%, rgba(14, 24, 19, .66) 48%, rgba(14, 24, 19, .16) 100%),
    url("assets/images/socialgamepilot-hero.png") center / cover no-repeat;
}

.hero-content {
  position: relative;
  width: min(860px, calc(100% - 36px));
  padding: 120px 0 92px clamp(18px, 6vw, 72px);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--sun);
  font-size: 13px;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 18px;
  font-size: clamp(48px, 9vw, 112px);
  line-height: .92;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(28px, 4vw, 52px);
  line-height: 1.03;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 8px;
  font-size: 22px;
  line-height: 1.15;
}

.lead {
  max-width: 670px;
  color: rgba(255, 255, 255, .86);
  font-size: clamp(18px, 2vw, 22px);
}

.hero-actions,
.age-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 800;
  text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn.primary,
.play-btn {
  background: var(--sun);
  color: #201606;
  box-shadow: 0 10px 28px rgba(240, 179, 63, .27);
}

.btn.secondary {
  border-color: rgba(255, 255, 255, .5);
  color: var(--white);
  background: rgba(255, 255, 255, .09);
}

.btn.ghost {
  background: var(--white);
  border-color: var(--line);
  color: var(--ink);
}

.notice-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--green-dark);
  color: var(--white);
}

.notice-strip span {
  padding: 16px;
  text-align: center;
  border-right: 1px solid rgba(255, 255, 255, .18);
  font-weight: 800;
}

.section {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: 86px 0;
}

.intro {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: clamp(28px, 6vw, 86px);
  align-items: start;
}

.intro p:last-child,
.disclaimer p,
.feature-list p,
.game-card p,
.footer-small {
  color: var(--muted);
}

.section-head {
  max-width: 760px;
  margin-bottom: 28px;
}

.game-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.game-card {
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(23, 32, 28, .08);
}

.game-art {
  min-height: 220px;
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
}

.card-dragon .game-art {
  background-image: url("assets/images/game-dragon-fates-favor.png");
}

.card-vegas .game-art {
  background-image: url("assets/images/game-invading-vegas.png");
}

.card-tower .game-art {
  background-image: url("assets/images/game-tower-quest-legacy.png");
}

.card-sweets .game-art {
  background-image: url("assets/images/game-king-of-sweets.png");
}

.game-body {
  padding: 20px;
}

.game-tag {
  display: inline-block;
  margin-bottom: 12px;
  color: var(--green);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.play-btn {
  width: 100%;
  margin-top: 8px;
}

.feature-band {
  width: 100%;
  max-width: none;
  padding: 86px clamp(18px, 5vw, 72px);
  background: #e9efe5;
  display: grid;
  grid-template-columns: .75fr 1.25fr;
  gap: clamp(28px, 6vw, 78px);
}

.feature-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.feature-list div {
  padding: 24px;
  background: rgba(255, 255, 255, .72);
  border: 1px solid rgba(23, 32, 28, .09);
  border-radius: 8px;
}

.stats-section {
  position: relative;
  overflow: hidden;
  color: var(--white);
  background: #0b0f0d;
}

.stats-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(5, 7, 6, .94), rgba(5, 7, 6, .78)),
    url("assets/images/socialgamepilot-hero.png") center / cover no-repeat;
  filter: grayscale(.6);
  opacity: .78;
}

.stats-inner {
  position: relative;
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: 92px 0;
  text-align: center;
}

.stats-inner h2 {
  width: min(900px, 100%);
  margin: 0 auto 42px;
  color: var(--white);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  margin-bottom: 36px;
}

.stat-item {
  display: grid;
  gap: 14px;
  align-content: start;
  min-height: 176px;
  padding: 24px 18px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 8px;
  background: rgba(255, 255, 255, .08);
  backdrop-filter: blur(8px);
}

.stat-item strong {
  display: block;
  color: var(--white);
  font-size: clamp(52px, 8vw, 90px);
  line-height: 1;
}

.stat-item span {
  color: rgba(255, 255, 255, .82);
  font-weight: 750;
}

.reviews-section {
  border-bottom: 1px solid var(--line);
}

.review-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.review-card {
  display: grid;
  gap: 12px;
  padding: 24px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(23, 32, 28, .07);
}

.review-card p {
  color: var(--muted);
}

.review-card strong {
  display: block;
}

.review-card span {
  color: var(--muted);
  font-size: 14px;
}

.stars {
  color: var(--sun);
  letter-spacing: 0;
  font-size: 18px;
}

.feedback-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 24px;
  padding: 24px;
  background: #e9efe5;
  border: 1px solid rgba(23, 32, 28, .08);
  border-radius: 8px;
}

.feedback-cta h3,
.feedback-cta p {
  margin-bottom: 0;
}

.disclaimer {
  border-top: 1px solid var(--line);
}

.site-footer {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 28px;
  padding: 48px clamp(18px, 4vw, 56px);
  background: #101915;
  color: var(--white);
}

.footer-brand {
  margin-bottom: 14px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 22px;
  justify-content: flex-end;
}

.footer-links a,
.footer-small a {
  color: inherit;
}

.footer-small {
  grid-column: 1 / -1;
  margin: 0;
  color: rgba(255, 255, 255, .68);
}

.age-gate,
.access-denied,
.game-modal,
.feedback-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(13, 20, 17, .78);
  backdrop-filter: blur(10px);
}

.age-panel {
  width: min(520px, 100%);
  padding: 34px;
  border-radius: 8px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.age-badge {
  display: inline-grid;
  place-items: center;
  width: 58px;
  height: 58px;
  margin-bottom: 18px;
  border-radius: 50%;
  background: var(--coral);
  color: var(--white);
  font-weight: 900;
}

.access-denied {
  color: var(--white);
  text-align: center;
}

.access-denied div {
  padding: 32px;
  border-radius: 8px;
  background: #151b18;
  box-shadow: var(--shadow);
}

.access-denied strong,
.access-denied span {
  display: block;
}

.game-modal[hidden],
.feedback-modal[hidden],
.age-gate[hidden],
.access-denied[hidden] {
  display: none;
}

.modal-shell {
  width: min(1180px, 100%);
  height: min(760px, 92vh);
  display: grid;
  grid-template-rows: auto 1fr;
  overflow: hidden;
  border-radius: 8px;
  background: #0c1210;
  box-shadow: var(--shadow);
}

.feedback-shell {
  width: min(620px, 100%);
  overflow: hidden;
  border-radius: 8px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.modal-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 18px;
  color: var(--white);
  border-bottom: 1px solid rgba(255, 255, 255, .12);
}

.modal-top h2 {
  margin: 0;
  font-size: 20px;
}

.modal-close {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 8px;
  background: rgba(255, 255, 255, .08);
  color: var(--white);
  cursor: pointer;
  font-size: 28px;
  line-height: 1;
}

.feedback-shell .modal-top {
  background: #101915;
}

.feedback-form {
  padding: 24px;
}

.feedback-note {
  margin: 14px 0 0;
  padding: 12px 14px;
  border-radius: 8px;
  background: #e9efe5;
  color: var(--green-dark);
  font-weight: 700;
}

iframe {
  width: 100%;
  height: 100%;
  border: 0;
  background: #050706;
}

.content-page {
  width: min(920px, calc(100% - 36px));
  margin: 0 auto;
  padding: 72px 0 92px;
}

.content-page h1 {
  color: var(--ink);
  font-size: clamp(40px, 7vw, 72px);
}

.content-panel {
  padding: 30px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.contact-grid {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: 24px;
}

.contact-list {
  padding: 24px;
  background: #e9efe5;
  border-radius: 8px;
}

.field {
  display: grid;
  gap: 6px;
  margin-bottom: 14px;
}

.field input,
.field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 14px;
  background: var(--white);
}

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

.not-found {
  min-height: calc(100vh - 210px);
  display: grid;
  place-items: center;
  text-align: center;
  padding: 60px 18px;
}

.not-found h1 {
  font-size: clamp(72px, 16vw, 160px);
  margin-bottom: 8px;
  color: var(--green);
}

@media (max-width: 980px) {
  .game-grid,
  .feature-list,
  .stats-grid,
  .review-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .intro,
  .feature-band,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .site-footer {
    grid-template-columns: 1fr;
  }

  .footer-links {
    justify-content: flex-start;
  }
}

@media (max-width: 720px) {
  .site-header {
    align-items: flex-start;
  }

  .menu-btn {
    display: block;
  }

  .main-nav {
    position: absolute;
    left: 18px;
    right: 18px;
    top: 72px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
    box-shadow: var(--shadow);
  }

  .main-nav.is-open {
    display: flex;
  }

  .hero {
    min-height: 620px;
  }

  .hero-media {
    background:
      linear-gradient(180deg, rgba(14, 24, 19, .88) 0%, rgba(14, 24, 19, .62) 52%, rgba(14, 24, 19, .82) 100%),
      url("assets/images/socialgamepilot-hero.png") center / cover no-repeat;
  }

  .hero-content {
    width: calc(100% - 36px);
    padding: 90px 0 58px;
    margin: 0 auto;
  }

  .notice-strip,
  .game-grid,
  .feature-list,
  .stats-grid,
  .review-grid {
    grid-template-columns: 1fr;
  }

  .notice-strip span {
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, .18);
  }

  .section,
  .feature-band,
  .stats-inner {
    padding-top: 58px;
    padding-bottom: 58px;
  }

  .feedback-cta {
    align-items: stretch;
    flex-direction: column;
  }

  .feedback-cta .btn {
    width: 100%;
  }

  .age-panel,
  .content-panel,
  .feedback-form {
    padding: 24px;
  }
}
