:root {
  --jungle-900: #103b35;
  --jungle-800: #155449;
  --jungle-700: #19705d;
  --jungle-500: #36a36f;
  --leaf: #8bcf62;
  --sun: #ffc857;
  --coral: #ef806b;
  --sky: #dff5ed;
  --sand: #fff8e8;
  --ink: #153c3a;
}

html { scroll-padding-top: 82px; }
body {
  background: #cce7d4;
  color: var(--ink);
}

.desktop-site,
.game-site {
  background: var(--sand);
}

.site-header,
.game-header {
  position: sticky;
  top: 0;
  z-index: 20;
  min-height: 78px;
  height: auto;
  padding: 12px clamp(18px, 4vw, 58px);
  border-bottom: 1px solid rgba(20, 84, 73, .14);
  background: rgba(255, 252, 240, .94);
  box-shadow: 0 8px 22px rgba(16, 59, 53, .10);
  backdrop-filter: blur(12px);
}

.header-logo-link,
.game-header > a:first-child {
  display: inline-flex;
  min-width: 195px;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.logo-image,
.header-logo,
.game-header-logo,
.footer-logo,
.construction-card img { display: none !important; }
.header-logo-link::before,
.game-header > a:first-child::before {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  place-items: center;
  border: 3px solid var(--jungle-700);
  border-radius: 14px 14px 14px 4px;
  background: linear-gradient(145deg, var(--leaf), var(--jungle-700));
  color: #fff7d6;
  content: "✦";
  font-size: 25px;
  line-height: 1;
  transform: rotate(-8deg);
}
.header-logo-link::after,
.game-header > a:first-child::after {
  color: var(--jungle-900);
  content: "Amazon Adventure";
  font-size: 19px;
  font-weight: 900;
  letter-spacing: -.04em;
  line-height: 1.05;
}
.top-nav { gap: clamp(14px, 2.5vw, 34px); }
.top-nav-link { color: #35645d; }
.top-nav-link:hover,
.top-nav-link:focus-visible,
.top-nav-link.is-active { color: var(--jungle-700); }
.top-nav-link::after { background: var(--coral); }
.login-button,
.game-login {
  background: linear-gradient(180deg, var(--jungle-500), var(--jungle-700));
  box-shadow: 0 5px 12px rgba(25, 112, 93, .24);
}

.hero {
  min-height: clamp(540px, 56vw, 730px);
  background-image: url("images/amazon-hero.webp");
  background-position: center;
}
.hero::after {
  background: linear-gradient(90deg, rgba(8, 44, 40, .82) 0%, rgba(8, 44, 40, .44) 45%, rgba(8, 44, 40, .08) 80%);
}
.hero-content {
  width: min(640px, 88%);
  margin-left: clamp(28px, 9vw, 124px);
  padding: clamp(52px, 8vw, 100px) 0;
  text-align: left;
}
.hero-eyebrow {
  display: inline-block;
  margin-bottom: 15px;
  padding: 7px 14px;
  border: 1px solid rgba(255, 224, 125, .75);
  border-radius: 999px;
  background: rgba(10, 54, 48, .40);
  color: #ffe28a;
  font-size: clamp(15px, 1.45vw, 21px);
  text-shadow: none;
}
.hero-title {
  color: #fff9df;
  font-size: clamp(46px, 6vw, 84px);
  line-height: 1.04;
  text-shadow: 0 4px 18px rgba(1, 23, 21, .36);
}
.hero-title-line {
  display: block;
  white-space: nowrap;
}
.hero-title-accent { color: #a9e76e; }
.hero-description {
  max-width: 520px;
  margin-top: 22px;
  color: rgba(255, 251, 232, .93);
  font-size: clamp(17px, 1.55vw, 22px);
  line-height: 1.75;
  text-shadow: 0 2px 7px rgba(0, 24, 22, .42);
}
.start-button {
  min-width: 220px;
  margin-top: 27px;
  border-radius: 999px;
  background: linear-gradient(180deg, #ffd86d, #f19a54);
  color: #4d3b16;
  box-shadow: 0 6px 0 rgba(71, 50, 14, .22), 0 12px 20px rgba(5, 44, 36, .24);
}

.about-section {
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: clamp(24px, 5vw, 70px);
  align-items: center;
  padding: clamp(54px, 7vw, 92px) clamp(24px, 8vw, 115px);
  background: var(--sand);
}
.about-copy {
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}
.about-kicker,
.section-kicker { color: var(--coral); letter-spacing: .06em; }
.about-title {
  border-bottom-color: var(--leaf);
  color: var(--jungle-900);
  font-size: clamp(30px, 3.2vw, 46px);
}
.about-copy > p:not(.about-kicker) { color: #456761; line-height: 1.82; }
.about-feature {
  position: relative;
  border: 10px solid #fffdf4;
  border-radius: 30px 30px 30px 5px;
  box-shadow: 0 18px 38px rgba(21, 84, 73, .16);
  transform: rotate(2deg);
}
.about-feature::after {
  position: absolute;
  inset: 12px;
  border: 2px dashed rgba(255, 255, 255, .64);
  border-radius: 18px 18px 18px 2px;
  content: "";
  pointer-events: none;
}
.about-feature-image { aspect-ratio: 1.35; object-fit: cover; }

.banner-section { padding: 0 clamp(18px, 6vw, 86px) clamp(48px, 6vw, 80px); background: var(--sand); }
.adventure-banner {
  min-height: clamp(260px, 31vw, 420px);
  border: 0;
  border-radius: 30px;
  background-image: url("images/amazon-banner.webp");
  box-shadow: 0 18px 36px rgba(21, 84, 73, .18);
}
.adventure-banner::after { background: linear-gradient(90deg, rgba(10, 60, 51, .62), rgba(10, 60, 51, .12) 70%); }
.banner-content { width: min(620px, 88%); margin-left: 7%; text-align: left; }
.banner-content h2 { white-space: normal; font-size: clamp(26px, 3.8vw, 52px); line-height: 1.12; }
.banner-content p { margin-top: 12px; font-size: clamp(16px, 1.55vw, 23px); }
.banner-button {
  border: 0;
  border-radius: 999px;
  background: #fff8e5;
  color: var(--jungle-800);
}

.benefits-section {
  padding: clamp(54px, 7vw, 88px) clamp(22px, 8vw, 115px);
  background: var(--sky);
}
.benefits-heading,
.games-heading,
.trust-heading { color: var(--jungle-900); }
.benefits-heading::before,
.benefits-heading::after,
.games-heading::before,
.games-heading::after,
.trust-heading::before,
.trust-heading::after { background: var(--leaf); }
.benefits-card {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  max-width: 1210px;
  margin: 26px auto 0;
  padding: 0;
  background: transparent;
}
.benefit-item {
  min-height: 190px;
  padding: 24px 20px;
  border: 1px solid rgba(25, 112, 93, .13);
  border-radius: 22px;
  background: rgba(255, 255, 250, .74);
  box-shadow: 0 10px 24px rgba(21, 84, 73, .08);
}
.benefit-icon {
  width: 55px;
  height: 55px;
  margin-bottom: 9px;
  border-radius: 18px;
  object-fit: cover;
}
.benefit-copy h3 { color: var(--jungle-800); }
.benefit-copy p { color: #55736b; }

.games-section {
  padding: clamp(54px, 7vw, 88px) clamp(18px, 6vw, 86px) clamp(62px, 8vw, 110px);
  background: var(--sand);
}
.games-heading { margin-bottom: 26px; }
.games-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  max-width: 1210px;
  margin: 0 auto;
}
.game-card {
  align-items: stretch;
  padding: 10px 10px 14px;
  border: 1px solid rgba(25, 112, 93, .14);
  border-radius: 24px;
  background: #fffdf5;
  box-shadow: 0 10px 23px rgba(21, 84, 73, .08);
}
.game-card:nth-child(3n + 2) { transform: translateY(16px); }
.game-card:hover { box-shadow: 0 18px 30px rgba(21, 84, 73, .15); transform: translateY(-4px); }
.game-card:nth-child(3n + 2):hover { transform: translateY(12px); }
.game-image { aspect-ratio: 1.55; border-radius: 17px; }
.game-card h3 { color: var(--jungle-800); font-size: clamp(17px, 1.5vw, 22px); }
.game-button {
  align-self: center;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--jungle-500), var(--jungle-700));
}

.trust-section {
  min-height: 0;
  padding: clamp(54px, 7vw, 88px) clamp(22px, 8vw, 115px);
  background: linear-gradient(145deg, #1a715f, #0f443d);
  background-image: linear-gradient(145deg, rgba(16, 59, 53, .78), rgba(16, 59, 53, .94)), url("images/amazon-story.webp");
  background-size: cover;
}
.trust-heading { color: #fff7d9; text-shadow: none; }
.trust-heading::before,
.trust-heading::after { background: rgba(169, 231, 110, .7); }
.trust-grid { max-width: 1100px; margin: 24px auto 0; gap: 16px; }
.trust-card {
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 22px;
  background: rgba(255, 255, 255, .10);
  box-shadow: none;
}
.trust-image { border-radius: 16px; }
.trust-card h3 { color: #ffe28a; }
.trust-card p { color: rgba(255, 248, 222, .82); }

.disclaimer-section { background: #fff4d8; }
.disclaimer-title { color: var(--jungle-900); }
.disclaimer-body { color: #55736b; }
.site-footer {
  background: linear-gradient(135deg, #0d342f, #155449 60%, #0d342f);
}
.footer-brand::before {
  display: block;
  color: #fff2c2;
  content: "Amazon Adventure";
  font-size: clamp(25px, 2.4vw, 36px);
  font-weight: 900;
  letter-spacing: -.05em;
}
.footer-tagline { color: #a9e76e; }

/* Shared game detail pages */
.game-site { --cream: var(--sand); }
.game-hero {
  min-height: clamp(500px, 56vw, 720px);
  background-position: center;
}
.game-hero::after { background: linear-gradient(90deg, rgba(8, 44, 40, .84), rgba(8, 44, 40, .48) 46%, rgba(8, 44, 40, .15)); }
.game-hero-content { margin-left: clamp(28px, 9vw, 124px); }
.game-kicker { border-color: rgba(169, 231, 110, .75); color: #b8ee84; }
.game-hero h1 { color: #fff8db; }
.game-hero h1 span { color: #a9e76e; }
.game-hero-cta { border-radius: 999px; background: linear-gradient(180deg, #ffd86d, #f19a54); }
.game-content { background: var(--sand); }
.story-card,
.feature-card { border-color: rgba(25, 112, 93, .14); border-radius: 24px; }
.story-card h2,
.feature-card h2 { color: var(--jungle-900); }
.story-card h2 { border-bottom-color: var(--leaf); }
.section-kicker { color: var(--coral); }
.feature-list strong { color: var(--jungle-700); }
.feature-icon { background: #e0f4d1; color: var(--jungle-700); }
.player-section { background: linear-gradient(145deg, #0d342f, #155449); }
.game-frame { border-color: rgba(169, 231, 110, .42); }

@media (max-width: 900px) {
  .benefits-card { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .games-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .game-card:nth-child(3n + 2) { transform: none; }
}
@media (max-width: 650px) {
  .site-header,
  .game-header { padding: 10px 16px; }
  .header-logo-link,
  .game-header > a:first-child { min-width: 0; }
  .header-logo-link::after,
  .game-header > a:first-child::after { max-width: 140px; font-size: 16px; }
  .hero { min-height: 630px; background-position: 64% center; }
  .hero::after { background: linear-gradient(90deg, rgba(8, 44, 40, .88), rgba(8, 44, 40, .50)); }
  .hero-content { width: calc(100% - 48px); margin-left: 24px; padding-top: 64px; }
  .hero-title { font-size: clamp(42px, 13vw, 68px); }
  .about-section { grid-template-columns: 1fr; padding: 52px 24px 68px; }
  .about-feature { order: -1; transform: rotate(-1deg); }
  .banner-content { margin-left: 0; text-align: center; }
  .benefits-card,
  .games-grid { grid-template-columns: 1fr; }
  .game-card:nth-child(3n + 2),
  .game-card:nth-child(3n + 2):hover { transform: none; }
  .games-section { padding-right: 18px; padding-left: 18px; }
}
