:root {
  --ink: #13201b;
  --ink-soft: #33453d;
  --paper: #f8f4e8;
  --paper-deep: #efe4cc;
  --reef: #007e78;
  --reef-dark: #005d58;
  --sun: #f4b43f;
  --coral: #d95f4b;
  --leaf: #6f8f42;
  --line: rgba(19, 32, 27, 0.18);
  --white: #fffdf8;
  --shadow: 0 18px 50px rgba(19, 32, 27, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
  line-height: 1.55;
  overflow-x: hidden;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px clamp(18px, 4vw, 48px);
  background: rgba(248, 244, 232, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 800;
}

.brand-mark img {
  width: 34px;
  height: 34px;
  border-radius: 7px;
}

.brand-mark span {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 22px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.site-nav a {
  padding: 8px 10px;
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  border-radius: 7px;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  background: var(--paper-deep);
  color: var(--ink);
  outline: none;
}

.site-nav a.nav-cta {
  background: var(--ink);
  color: var(--paper);
  padding: 9px 14px;
}

.site-nav a.nav-cta:hover,
.site-nav a.nav-cta:focus-visible {
  background: var(--reef-dark);
  color: var(--white);
}

.hero {
  min-height: min(82vh, 760px);
  display: grid;
  align-items: end;
  position: relative;
  padding: 96px clamp(22px, 6vw, 84px) 76px;
  color: var(--white);
  overflow: hidden;
  background:
    linear-gradient(rgba(8, 24, 21, 0.25), rgba(8, 24, 21, 0.74)),
    url("assets/coconut-tree.jpg") center/cover;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 8px;
  background: linear-gradient(
    90deg,
    var(--reef) 0 28%,
    var(--sun) 28% 46%,
    var(--coral) 46% 62%,
    var(--leaf) 62% 100%
  );
}

.hero-content {
  width: min(780px, 100%);
  position: relative;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  color: #f8e7b6;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 34px;
  height: 3px;
  background: var(--sun);
}

h1,
h2,
h3 {
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.05;
  letter-spacing: 0;
}

h1 {
  margin: 0;
  font-size: clamp(48px, 8vw, 92px);
  max-width: 11ch;
}

.hero-copy {
  margin: 18px 0 0;
  max-width: 660px;
  font-size: 19px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border-radius: 7px;
  text-decoration: none;
  font-weight: 800;
  border: 1px solid transparent;
}

.button.primary {
  background: var(--sun);
  color: #1e1708;
}

.button.secondary {
  color: var(--white);
  border-color: rgba(255, 253, 248, 0.75);
}

.button.ghost {
  color: var(--reef-dark);
  border-color: rgba(0, 126, 120, 0.35);
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
  box-shadow: var(--shadow);
  outline: none;
}

.section {
  padding: 72px clamp(22px, 6vw, 84px);
}

.section.alt {
  background: var(--white);
}

.section-title {
  max-width: 780px;
}

.section-title h2 {
  margin: 0 0 12px;
  font-size: clamp(34px, 5vw, 58px);
}

.section-title p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 18px;
}

.release-panel {
  margin-top: 34px;
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 28px;
  align-items: stretch;
}

.app-shot {
  min-height: 360px;
  border-radius: 8px;
  overflow: hidden;
  background: url("assets/earth.jpg") center/cover;
  position: relative;
}

.app-shot::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 93, 88, 0.28);
}

.app-summary {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: clamp(22px, 4vw, 38px);
}

.app-heading {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}

.app-heading img {
  width: 58px;
  height: 58px;
  border-radius: 8px;
}

.app-heading h3 {
  margin: 0;
  font-size: 30px;
}

.app-summary p {
  color: var(--ink-soft);
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 24px 0;
  padding: 0;
  list-style: none;
}

.tag-list li {
  padding: 7px 10px;
  border-radius: 7px;
  background: var(--white);
  border: 1px solid var(--line);
  font-weight: 800;
  font-size: 13px;
}

.principles {
  margin-top: 34px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.principle {
  border-left: 6px solid var(--reef);
  background: var(--paper);
  padding: 22px;
  border-radius: 8px;
}

.principle:nth-child(2) {
  border-left-color: var(--coral);
}

.principle:nth-child(3) {
  border-left-color: var(--sun);
}

.principle h3 {
  margin: 0 0 10px;
  font-size: 23px;
}

.principle p {
  margin: 0;
  color: var(--ink-soft);
}

.policy-shell {
  width: min(920px, calc(100% - 44px));
  margin: 0 auto;
  padding: 56px 0 80px;
}

.policy-hero {
  padding: 46px;
  border-radius: 8px;
  background: var(--white);
  border: 1px solid var(--line);
}

.policy-hero h1 {
  color: var(--ink);
  font-size: clamp(38px, 6vw, 64px);
}

.policy-hero p {
  margin: 16px 0 0;
  color: var(--ink-soft);
}

.policy-content {
  margin-top: 26px;
  padding: 42px;
  border-radius: 8px;
  background: var(--white);
  border: 1px solid var(--line);
}

.policy-content h2 {
  margin-top: 38px;
  font-size: 29px;
}

.policy-content h2:first-child {
  margin-top: 0;
}

.policy-content h3 {
  margin-top: 26px;
  font-size: 22px;
}

.policy-content p,
.policy-content li {
  color: var(--ink-soft);
}

.policy-content a {
  color: var(--reef-dark);
  font-weight: 800;
  overflow-wrap: anywhere;
}

.policy-content ul,
.policy-content ol {
  padding-left: 22px;
}

.policy-content li + li {
  margin-top: 6px;
}

.policy-content .table-wrap {
  width: 100%;
  margin-top: 18px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.policy-content .table-wrap:focus-visible {
  outline: 3px solid rgba(0, 126, 120, 0.28);
  outline-offset: 3px;
}

.policy-content table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  min-width: 660px;
}

.policy-content th,
.policy-content td {
  text-align: left;
  vertical-align: top;
  border: 1px solid var(--line);
  padding: 10px;
}

.policy-content th:first-child,
.policy-content td:first-child {
  border-left: 0;
}

.policy-content th:last-child,
.policy-content td:last-child {
  border-right: 0;
}

.policy-content tr:first-child th {
  border-top: 0;
}

.policy-content tbody tr:last-child td {
  border-bottom: 0;
}

.policy-content th {
  background: var(--paper);
  color: var(--ink);
}

.site-footer {
  padding: 28px clamp(22px, 6vw, 84px);
  color: var(--paper);
  background: var(--ink);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.site-footer a {
  color: var(--paper);
  font-weight: 800;
}

@media (max-width: 820px) {
  .site-header {
    position: static;
    align-items: flex-start;
    flex-direction: column;
  }

  .site-nav {
    justify-content: flex-start;
  }

  .hero {
    min-height: 76vh;
    padding-top: 56px;
  }

  .release-panel,
  .principles {
    grid-template-columns: 1fr;
  }

  .policy-hero,
  .policy-content {
    padding: 24px;
  }
}

@media (max-width: 520px) {
  .policy-shell {
    width: min(920px, calc(100% - 28px));
    padding: 34px 0 56px;
  }

  .policy-hero,
  .policy-content {
    padding: 20px;
  }
}

/* ---------------------------------------------------------------------------
   Game-themed landing (Yapese Pictionary)
   --------------------------------------------------------------------------- */

.hero-game {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: center;
  gap: clamp(28px, 5vw, 64px);
  padding: clamp(72px, 9vw, 120px) clamp(22px, 6vw, 84px) clamp(72px, 9vw, 108px);
}

.hero-game .hero-content {
  width: 100%;
}

.hero-game h1 {
  font-size: clamp(44px, 6.8vw, 80px);
  max-width: 14ch;
}

.eyebrow.eyebrow--ink {
  color: var(--reef-dark);
}

.eyebrow.eyebrow--ink::before {
  background: var(--reef);
}

/* Puzzle preview (phone frame) */
.puzzle-preview {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.phone-frame {
  width: min(340px, 100%);
  background: var(--white);
  border: 1px solid rgba(255, 253, 248, 0.35);
  border-radius: 28px;
  padding: 18px 18px 22px;
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.35),
    inset 0 0 0 6px rgba(19, 32, 27, 0.06);
  color: var(--ink);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.phone-hud {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.hud-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--paper);
  border: 1px solid var(--line);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.hud-chip--score {
  background: var(--ink);
  color: var(--sun);
  border-color: var(--ink);
  text-transform: none;
  letter-spacing: 0;
}

.puzzle-image {
  height: 168px;
  border-radius: 14px;
  background-position: center;
  background-size: cover;
  background-color: var(--paper-deep);
  border: 1px solid var(--line);
}

.puzzle-prompt {
  margin: 0;
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-soft);
}

.answer-slots {
  display: flex;
  justify-content: center;
  gap: 6px;
}

.slot {
  width: 38px;
  height: 44px;
  border-radius: 8px;
  background: var(--paper);
  border: 1px solid var(--line);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 800;
  font-size: 20px;
  color: transparent;
}

.slot.filled {
  background: var(--reef);
  border-color: var(--reef-dark);
  color: var(--white);
}

.letter-bank {
  display: flex;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
}

.tile {
  width: 44px;
  height: 48px;
  border-radius: 10px;
  background: var(--white);
  border: 1px solid var(--line);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 800;
  font-size: 22px;
  color: var(--ink);
  box-shadow: 0 2px 0 var(--line);
}

.tile--used {
  background: var(--paper-deep);
  color: rgba(19, 32, 27, 0.35);
  box-shadow: none;
}

.phone-foot {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-top: 2px;
}

.foot-pill {
  flex: 1;
  text-align: center;
  padding: 8px 10px;
  border-radius: 10px;
  background: var(--paper);
  border: 1px solid var(--line);
  font-size: 12px;
  font-weight: 800;
  color: var(--ink-soft);
}

/* Section variants */
.section--play {
  background: var(--paper);
}

.section--alt {
  background: var(--white);
}

.section--community {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(19, 32, 27, 0.98), rgba(0, 93, 88, 0.9)),
    url("assets/water.jpg") center/cover;
  color: var(--paper);
}

.section--cta {
  background: var(--ink);
  color: var(--paper);
}

/* How it plays — steps */
.play-steps {
  list-style: none;
  margin: 34px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  counter-reset: step;
}

.play-step {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 26px 24px 24px;
  position: relative;
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--reef);
  color: var(--white);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 800;
  font-size: 18px;
  margin-bottom: 14px;
}

.play-step:nth-child(2) .step-num { background: var(--sun); color: #1e1708; }
.play-step:nth-child(3) .step-num { background: var(--coral); }

.play-step h3 {
  margin: 0 0 8px;
  font-size: 22px;
}

.play-step p {
  margin: 0;
  color: var(--ink-soft);
}

/* Stages grid */
.stages-grid {
  margin-top: 34px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.stage-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-top: 6px solid var(--reef);
  border-radius: 12px;
  padding: 24px;
}

.stage-card--reef { border-top-color: var(--reef); }
.stage-card--leaf { border-top-color: var(--leaf); }
.stage-card--sun  { border-top-color: var(--sun); }
.stage-card--coral { border-top-color: var(--coral); }

.stage-num {
  display: inline-block;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 8px;
}

.stage-card h3 {
  margin: 0 0 10px;
  font-size: 26px;
}

.stage-card p {
  margin: 0;
  color: var(--ink-soft);
}

.stage-sample {
  margin-top: 12px !important;
  padding-top: 12px;
  border-top: 1px dashed var(--line);
  font-size: 14px;
}

.stage-sample strong {
  color: var(--reef-dark);
  font-family: Georgia, "Times New Roman", serif;
}

/* Community section */
.community-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 1.05fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}

.community-copy h2 {
  margin: 0 0 16px;
  max-width: 760px;
  color: var(--white);
  font-size: clamp(34px, 5vw, 58px);
}

.community-copy p {
  margin: 0 0 14px;
  max-width: 700px;
  color: rgba(255, 253, 248, 0.82);
  font-size: 18px;
}

.community-copy em {
  font-style: italic;
  color: var(--sun);
}

.community-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 28px 0 0;
}

.community-stats div {
  padding: 14px 12px;
  border: 1px solid rgba(255, 253, 248, 0.18);
  border-radius: 10px;
  background: rgba(255, 253, 248, 0.08);
}

.community-stats dt {
  color: var(--sun);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  line-height: 1;
}

.community-stats dd {
  margin: 6px 0 0;
  color: rgba(255, 253, 248, 0.75);
  font-size: 13px;
  font-weight: 800;
}

.community-visual {
  margin: 0;
}

.community-scene {
  min-height: 470px;
  position: relative;
}

.community-scene img {
  display: block;
  object-fit: cover;
  border: 1px solid rgba(255, 253, 248, 0.18);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.26);
}

.scene-main {
  width: min(78%, 460px);
  height: 350px;
  border-radius: 14px;
}

.scene-small {
  position: absolute;
  right: 0;
  width: min(44%, 210px);
  border-radius: 12px;
}

.scene-small--top {
  top: 32px;
  height: 170px;
}

.scene-small--bottom {
  bottom: 24px;
  height: 190px;
}

.word-chip {
  position: absolute;
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 253, 248, 0.28);
  border-radius: 10px;
  color: var(--ink);
  background: var(--paper);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.22);
}

.word-chip strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 24px;
}

.word-chip span {
  color: var(--reef-dark);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.word-chip--canoe {
  left: 22px;
  bottom: 84px;
}

.word-chip--coconut {
  right: 76px;
  top: 178px;
}

.community-note {
  width: min(460px, 92%);
  margin: -34px 0 0 auto;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 253, 248, 0.18);
  border-radius: 12px;
  background: rgba(255, 253, 248, 0.08);
  backdrop-filter: blur(10px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.24);
  padding: 20px;
}

.community-note span {
  display: block;
  margin-bottom: 8px;
  color: var(--sun);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.community-note strong {
  display: block;
  color: var(--white);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(20px, 2.4vw, 27px);
  line-height: 1.12;
}

/* ---------- About Yap section ---------- */
.section--yap {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 12% 20%, rgba(244, 180, 63, 0.18), transparent 55%),
    radial-gradient(circle at 88% 80%, rgba(0, 126, 120, 0.16), transparent 55%),
    var(--paper);
}

.section--yap .eyebrow {
  color: var(--reef-dark);
}

.section--landing-yap {
  min-height: calc(100vh - 64px);
  display: grid;
  align-content: center;
  padding-top: clamp(56px, 7vw, 92px);
}

.section--landing-yap .yap-grid {
  min-height: min(64vh, 680px);
}

.section--landing-yap .yap-copy h1 {
  margin: 10px 0 20px;
  max-width: 13ch;
  font-size: clamp(38px, 5.8vw, 76px);
  color: var(--ink);
}

.section--landing-yap .yap-copy .actions {
  margin-top: 26px;
}

.section--landing-yap .button.secondary {
  color: var(--reef-dark);
  background: rgba(255, 253, 248, 0.72);
  border-color: rgba(0, 126, 120, 0.34);
  box-shadow: 0 5px 0 rgba(0, 93, 88, 0.18), 0 10px 20px rgba(19, 32, 27, 0.1);
}

.section--landing-yap .button.secondary:hover,
.section--landing-yap .button.secondary:focus-visible {
  background: var(--white);
  color: var(--reef-dark);
  box-shadow: 0 7px 0 rgba(0, 93, 88, 0.22), 0 14px 26px rgba(19, 32, 27, 0.14);
}

.section--landing-yap .button.ghost {
  color: var(--ink-soft);
  background: transparent;
  border-color: var(--line);
}

.section--landing-yap .button.ghost:hover,
.section--landing-yap .button.ghost:focus-visible {
  background: rgba(255, 253, 248, 0.65);
  color: var(--ink);
}

.yap-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
  margin-bottom: clamp(36px, 6vw, 64px);
}

.yap-hero {
  margin: 0;
  position: relative;
  padding: clamp(20px, 4vw, 40px);
  background: linear-gradient(160deg, #fffdf8 0%, var(--paper-deep) 100%);
  border-radius: 28px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  text-align: center;
}

.yap-hero img {
  display: block;
  width: 100%;
  max-width: 340px;
  height: auto;
  margin: 0 auto 16px;
  filter: drop-shadow(0 14px 24px rgba(19, 32, 27, 0.18));
}

.yap-hero figcaption {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 15px;
  color: var(--ink-soft);
  letter-spacing: 0.02em;
}

.yap-hero figcaption strong {
  color: var(--reef-dark);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-family: inherit;
  margin-right: 4px;
}

.yap-copy h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(28px, 3.4vw, 40px);
  line-height: 1.15;
  margin: 12px 0 18px;
  color: var(--ink);
}

.yap-copy p {
  font-size: 17px;
  color: var(--ink-soft);
  margin: 0 0 14px;
}

.yap-facts {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: clamp(18px, 2.4vw, 28px);
}

.yap-fact {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 24px 22px 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: 0 8px 24px rgba(19, 32, 27, 0.06);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.yap-fact:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 32px rgba(19, 32, 27, 0.12);
}

.yap-fact img {
  width: 84px;
  height: 84px;
  object-fit: contain;
  align-self: flex-start;
  filter: drop-shadow(0 6px 10px rgba(19, 32, 27, 0.12));
}

.yap-fact h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 20px;
  margin: 4px 0 0;
  color: var(--ink);
}

.yap-fact p {
  font-size: 15px;
  color: var(--ink-soft);
  margin: 0;
}

.yap-fact em {
  font-style: italic;
  color: var(--reef-dark);
}

@media (max-width: 860px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .site-nav {
    width: 100%;
    justify-content: flex-start;
  }

  .site-nav a {
    padding: 7px 8px;
    font-size: 13px;
  }

  .site-nav a.nav-cta {
    padding: 9px 13px;
  }

  .yap-grid {
    grid-template-columns: 1fr;
  }
  .section--landing-yap .yap-hero {
    order: -1;
    transform: none;
  }
  .yap-hero img {
    max-width: 240px;
  }

  .section--landing-yap {
    min-height: auto;
    padding-top: 56px;
  }

  .section--landing-yap .yap-grid {
    min-height: auto;
  }

  .section--landing-yap .yap-copy h1 {
    max-width: 100%;
    font-size: clamp(36px, 11vw, 50px);
  }
}

/* Vector overrides — used when illustrated PNGs sit where photos used to */
.puzzle-image--vector {
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  background-color: #e3ecd1;
  padding: 0;
}

.scene-main--vector,
.scene-small--vector {
  object-fit: contain;
  background: linear-gradient(160deg, #fffdf8, var(--paper-deep));
  padding: 16px;
  border: 1px solid rgba(19, 32, 27, 0.06);
  box-shadow: var(--shadow);
}

.scene-small--vector {
  padding: 10px;
}

.review-path {
  list-style: none;
  margin: 34px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  counter-reset: review;
}

.review-path li {
  position: relative;
  background: rgba(255, 253, 248, 0.09);
  border: 1px solid rgba(255, 253, 248, 0.16);
  border-top: 4px solid var(--reef);
  border-radius: 10px;
  padding: 18px 18px 20px;
}

.review-path li:nth-child(2) {
  border-top-color: var(--sun);
}

.review-path li:nth-child(3) {
  border-top-color: var(--coral);
}

.review-path li:nth-child(4) {
  border-top-color: var(--leaf);
}

.review-path span {
  display: inline-flex;
  margin-bottom: 14px;
  color: var(--sun);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 24px;
  font-weight: 800;
}

.review-path h3 {
  margin: 0 0 8px;
  color: var(--white);
  font-size: 19px;
}

.review-path p {
  margin: 0;
  font-size: 14px;
  color: rgba(255, 253, 248, 0.72);
}

/* CTA card */
.cta-card {
  max-width: 980px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) auto;
  gap: 28px;
  align-items: center;
  padding: clamp(28px, 4vw, 44px);
  background: linear-gradient(135deg, var(--reef-dark) 0%, var(--ink) 100%);
  border-radius: 16px;
  border: 1px solid rgba(255, 253, 248, 0.08);
}

.cta-copy h2 {
  margin: 0 0 8px;
  color: var(--paper);
  font-size: clamp(28px, 4vw, 42px);
}

.cta-copy p {
  margin: 0;
  color: rgba(248, 244, 232, 0.78);
  font-size: 17px;
}

.section--cta .actions {
  margin-top: 0;
}

.section--cta .button.ghost {
  color: var(--paper);
  border-color: rgba(255, 253, 248, 0.45);
}

@media (max-width: 960px) {
  .hero-game {
    grid-template-columns: 1fr;
    text-align: left;
  }

  .puzzle-preview {
    order: -1;
  }

  .play-steps,
  .stages-grid,
  .community-grid,
  .review-path {
    grid-template-columns: 1fr;
  }

  .cta-card {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .phone-frame {
    width: 100%;
  }

  .tile {
    width: 38px;
    height: 44px;
    font-size: 18px;
  }

  .slot {
    width: 34px;
    height: 40px;
    font-size: 18px;
  }

  .community-stats {
    grid-template-columns: 1fr;
  }

  .community-scene {
    min-height: 560px;
  }

  .scene-main,
  .scene-small {
    position: relative;
    inset: auto;
    width: 100%;
  }

  .scene-main {
    height: 260px;
  }

  .scene-small {
    margin-top: 10px;
    height: 150px;
  }

  .word-chip {
    position: static;
    margin-top: 10px;
    width: 100%;
    justify-content: space-between;
  }

  .community-note {
    width: 100%;
    margin: 12px 0 0;
  }
}

/* ===========================================================================
   GAME-POP OVERLAY — make the landing page feel like a game launch page
   Bolder gradients, chunky 3D buttons, glowing phone frame, animated accents.
   =========================================================================== */

@keyframes float-y {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50%      { transform: translateY(-14px) rotate(-2deg); }
}

@keyframes blob-drift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%      { transform: translate(40px, -30px) scale(1.08); }
  66%      { transform: translate(-30px, 20px) scale(0.95); }
}

@keyframes shimmer {
  0%   { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

@keyframes pop-in {
  0%   { transform: scale(0.6); opacity: 0; }
  60%  { transform: scale(1.08); opacity: 1; }
  100% { transform: scale(1); }
}

/* Hero — vibrant gradient sky with drifting blobs */
.hero-game {
  background:
    radial-gradient(circle at 18% 22%, rgba(244, 180, 63, 0.28), transparent 45%),
    radial-gradient(circle at 82% 78%, rgba(217, 95, 75, 0.22), transparent 50%),
    linear-gradient(135deg, rgba(12, 39, 34, 0.78) 0%, rgba(0, 93, 88, 0.72) 55%, rgba(0, 126, 120, 0.68) 100%),
    url("assets/coconut-photo.jpg") center/cover no-repeat;
  position: relative;
  isolation: isolate;
}

.hero-game h1 {
  background: linear-gradient(135deg, #fffdf8 0%, #ffe9b8 60%, #ffc46c 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 3px 0 rgba(0, 0, 0, 0.15));
}

.hero-game .eyebrow {
  padding: 6px 14px;
  background: rgba(255, 253, 248, 0.12);
  border: 1px solid rgba(255, 253, 248, 0.22);
  border-radius: 999px;
  backdrop-filter: blur(8px);
}

.hero-game .eyebrow::before {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--sun);
}

.hero-copy {
  color: rgba(255, 253, 248, 0.92);
  font-size: 20px;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
}

/* Chunky 3D buttons */
.button {
  border-radius: 14px;
  padding: 14px 22px;
  font-size: 15px;
  letter-spacing: 0.01em;
  transition: transform 140ms ease, box-shadow 140ms ease, filter 140ms ease;
  position: relative;
  text-transform: uppercase;
}

.button.primary {
  background: linear-gradient(180deg, #ffd066 0%, var(--sun) 55%, #d99728 100%);
  color: #2a1a04;
  box-shadow: 0 5px 0 #a4711d, 0 8px 16px rgba(0, 0, 0, 0.15);
  border: 1px solid #d99728;
}

.button.primary:hover,
.button.primary:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 7px 0 #a4711d, 0 12px 22px rgba(0, 0, 0, 0.18);
}

.button.primary:active {
  transform: translateY(2px);
  box-shadow:
    0 3px 0 #a4711d,
    0 8px 16px rgba(244, 180, 63, 0.3);
}

.button.secondary {
  background: rgba(255, 253, 248, 0.1);
  backdrop-filter: blur(10px);
  border-color: rgba(255, 253, 248, 0.55);
  box-shadow: 0 6px 0 rgba(0, 0, 0, 0.2);
}

.button.secondary:hover,
.button.secondary:focus-visible {
  background: rgba(255, 253, 248, 0.18);
  transform: translateY(-3px);
  box-shadow: 0 9px 0 rgba(0, 0, 0, 0.25), 0 14px 28px rgba(0, 0, 0, 0.2);
}

/* Phone frame — glowing, tilted, floating */
.puzzle-preview {
  perspective: 1200px;
}

.phone-frame {
  border-radius: 32px;
  padding: 20px 20px 24px;
  border: 2px solid rgba(13, 25, 22, 0.85);
  box-shadow:
    0 24px 50px rgba(0, 0, 0, 0.35),
    inset 0 0 0 2px rgba(255, 253, 248, 0.4);
  animation: float-y 7s ease-in-out infinite;
  transform: rotate(-2deg);
}

.puzzle-image {
  height: 180px;
  border-radius: 18px;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.15);
  border: none;
}

.hud-chip {
  border-radius: 999px;
  font-size: 11px;
  padding: 6px 12px;
  box-shadow: 0 2px 0 var(--line);
}

.hud-chip--score {
  background: linear-gradient(180deg, #2a3a32 0%, var(--ink) 100%);
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.4);
}

.slot.filled {
  background: linear-gradient(180deg, #009b94 0%, var(--reef) 60%, var(--reef-dark) 100%);
  box-shadow: 0 2px 0 var(--reef-dark), inset 0 1px 0 rgba(255, 253, 248, 0.25);
}

.tile {
  border-radius: 12px;
  box-shadow: 0 4px 0 #c9b98f, 0 6px 14px rgba(0, 0, 0, 0.08);
  background: linear-gradient(180deg, #fffdf8 0%, #f8ecd0 100%);
  transition: transform 120ms ease;
}

.tile:hover {
  transform: translateY(-2px);
}

.tile--used {
  background: var(--paper-deep);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
  transform: translateY(2px);
}

.foot-pill {
  background: linear-gradient(180deg, #fffdf8 0%, var(--paper) 100%);
  box-shadow: 0 3px 0 var(--line);
}

/* Section titles — gradient text */
.section-title h2,
.community-copy h2,
.yap-copy h2 {
  background: linear-gradient(135deg, var(--reef-dark) 0%, var(--reef) 45%, var(--coral) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.community-copy h2 {
  background: linear-gradient(135deg, #fffdf8 0%, var(--sun) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Play steps — chunky cards, big numbers */
.play-step {
  border-radius: 22px;
  padding: 32px 26px 28px;
  background: linear-gradient(180deg, #fffdf8 0%, #fbf6e6 100%);
  border: 2px solid var(--line);
  box-shadow: 0 8px 0 rgba(19, 32, 27, 0.08), 0 14px 30px rgba(19, 32, 27, 0.08);
  transition: transform 200ms ease, box-shadow 200ms ease;
}

.play-step:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 0 rgba(19, 32, 27, 0.08), 0 22px 40px rgba(19, 32, 27, 0.14);
}

.step-num {
  width: 50px;
  height: 50px;
  font-size: 22px;
  box-shadow: 0 3px 0 rgba(0, 0, 0, 0.12);
  margin-bottom: 16px;
}

.play-step:nth-child(1) .step-num {
  background: linear-gradient(180deg, #009b94, var(--reef-dark));
}
.play-step:nth-child(2) .step-num {
  background: linear-gradient(180deg, #ffd066, #d99728);
}
.play-step:nth-child(3) .step-num {
  background: linear-gradient(180deg, #ee7864, var(--coral));
}

/* Stage cards — gradient header strip + bigger lift */
.stage-card {
  border-radius: 20px;
  border-width: 2px;
  border-top-width: 8px;
  background: linear-gradient(180deg, #fffdf8 0%, var(--paper) 100%);
  box-shadow: 0 6px 0 rgba(19, 32, 27, 0.06), 0 14px 30px rgba(19, 32, 27, 0.08);
  transition: transform 200ms ease, box-shadow 200ms ease;
  position: relative;
  overflow: hidden;
}

.stage-card::before {
  content: "";
  position: absolute;
  top: -40px;
  right: -40px;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  opacity: 0.12;
}

.stage-card--reef::before  { background: var(--reef); }
.stage-card--leaf::before  { background: var(--leaf); }
.stage-card--sun::before   { background: var(--sun); }
.stage-card--coral::before { background: var(--coral); }

.stage-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 0 rgba(19, 32, 27, 0.06), 0 22px 44px rgba(19, 32, 27, 0.14);
}

.stage-num {
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--sun);
  font-size: 11px;
}

/* Community section — animated underlay */
.section--community::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(244, 180, 63, 0.12), transparent 55%),
    radial-gradient(circle at 80% 70%, rgba(217, 95, 75, 0.1), transparent 55%);
  pointer-events: none;
}

.community-stats div {
  background: rgba(255, 253, 248, 0.12);
  border: 1px solid rgba(255, 253, 248, 0.25);
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
  transition: transform 200ms ease;
}

.community-stats div:hover {
  transform: translateY(-3px);
}

.community-stats dt {
  background: linear-gradient(135deg, var(--sun) 0%, #ffd066 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.word-chip {
  border-radius: 14px;
  background: linear-gradient(180deg, #fffdf8 0%, var(--paper) 100%);
  box-shadow: 0 8px 0 rgba(0, 0, 0, 0.18), 0 18px 40px rgba(0, 0, 0, 0.3);
  border: 2px solid rgba(244, 180, 63, 0.4);
}

.word-chip strong {
  background: linear-gradient(135deg, var(--reef-dark), var(--coral));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Review path */
.review-path li {
  border-radius: 16px;
  border-width: 2px;
  border-top-width: 6px;
  background: rgba(255, 253, 248, 0.12);
  backdrop-filter: blur(10px);
  transition: transform 200ms ease;
}

.review-path li:hover {
  transform: translateY(-4px);
}

.review-path span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(244, 180, 63, 0.15);
  border: 2px solid var(--sun);
  font-size: 16px;
}

/* About Yap — fact cards more game-card-like */
.yap-hero {
  border: 2px solid var(--line);
  box-shadow: 0 10px 0 rgba(19, 32, 27, 0.06), 0 30px 60px rgba(19, 32, 27, 0.18);
  transform: rotate(-1.5deg);
}

.yap-fact {
  border-radius: 22px;
  border-width: 2px;
  box-shadow: 0 6px 0 rgba(19, 32, 27, 0.05), 0 14px 30px rgba(19, 32, 27, 0.08);
  position: relative;
  overflow: hidden;
}

.yap-fact::before {
  content: "";
  position: absolute;
  top: -20px;
  right: -20px;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--sun);
  opacity: 0.12;
}

.yap-fact:nth-child(2)::before { background: var(--reef); }
.yap-fact:nth-child(3)::before { background: var(--coral); }
.yap-fact:nth-child(4)::before { background: var(--leaf); }

.yap-fact:hover {
  transform: translateY(-6px) rotate(0.5deg);
  box-shadow: 0 14px 0 rgba(19, 32, 27, 0.06), 0 24px 44px rgba(19, 32, 27, 0.16);
}

/* CTA — bold gradient */
.cta-card {
  background:
    radial-gradient(circle at 15% 20%, rgba(244, 180, 63, 0.18), transparent 55%),
    linear-gradient(135deg, var(--reef-dark) 0%, var(--ink) 100%);
  border-radius: 22px;
  border: 1px solid rgba(244, 180, 63, 0.18);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.25);
}

.cta-copy h2 {
  background: linear-gradient(135deg, #fffdf8 0%, var(--sun) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Sticky header — slight glow on the CTA */
.site-nav a.nav-cta {
  background: var(--ink);
  border-radius: 10px;
  transition: transform 140ms ease, background 140ms ease;
}

.site-nav a.nav-cta:hover {
  transform: translateY(-1px);
  background: var(--reef-dark);
}

/* Site footer — subtle gradient */
.site-footer {
  background: linear-gradient(180deg, #0a1814 0%, var(--ink) 100%);
  border-top: 4px solid;
  border-image: linear-gradient(90deg, var(--reef) 0%, var(--sun) 33%, var(--coral) 66%, var(--leaf) 100%) 1;
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .phone-frame { animation: none; }
}

@media (max-width: 520px) {
  .site-header {
    padding: 14px 18px;
  }

  .site-nav {
    display: grid;
    grid-template-columns: repeat(3, max-content);
    gap: 8px 16px;
  }

  .site-nav a {
    padding: 4px 0;
  }

  .site-nav a.nav-cta {
    padding: 10px 14px;
  }

  .section--landing-yap .yap-copy h1 {
    max-width: 8.8em;
    font-size: clamp(30px, 8.6vw, 36px);
    line-height: 1.08;
  }

  .section--landing-yap .yap-grid,
  .section--landing-yap .yap-copy,
  .section--landing-yap .yap-hero {
    min-width: 0;
    max-width: 100%;
  }

  .section--landing-yap .yap-grid,
  .section--landing-yap .yap-hero {
    width: calc(100vw - 56px);
  }

  .section--landing-yap .yap-copy {
    width: min(320px, calc(100vw - 96px));
    justify-self: center;
  }

  .section--landing-yap .yap-hero img {
    max-width: min(220px, 100%);
  }
}
