:root {
  --paper: #fff8ef;
  --paper-strong: #fff0d5;
  --ink: #30221f;
  --muted: #76645f;
  --tomato: #e94d36;
  --tomato-dark: #ad3526;
  --butter: #ffe39a;
  --mint: #d8efe4;
  --sky: #bcdcff;
  --rose: #ffd0da;
  --card: rgba(255, 255, 255, 0.82);
  --line: rgba(36, 21, 18, 0.16);
  --shadow: 0 24px 80px rgba(95, 44, 28, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 8%, rgba(255, 216, 107, 0.55), transparent 28rem),
    radial-gradient(circle at 92% 16%, rgba(188, 220, 255, 0.7), transparent 24rem),
    linear-gradient(135deg, #fffdf6 0%, var(--paper) 54%, #ffe6d8 100%);
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

img {
  display: block;
  width: 100%;
}

button,
input,
textarea {
  font: inherit;
}

.site-shell {
  width: min(1180px, calc(100% - 32px));
  max-width: 100%;
  margin: 0 auto;
}

.section {
  max-width: 100%;
  padding: 72px 0;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--tomato-dark);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.08;
}

h1 {
  max-width: 680px;
  font-size: clamp(48px, 8vw, 108px);
  font-weight: 850;
  letter-spacing: 0;
}

h2 {
  font-size: clamp(32px, 5vw, 62px);
}

p {
  margin: 0;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--ink);
  border-radius: 999px;
  padding: 0 22px;
  color: var(--ink);
  background: #fff;
  box-shadow: 6px 6px 0 var(--ink);
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.button:hover {
  transform: translate(2px, 2px);
  box-shadow: 3px 3px 0 var(--ink);
}

.button.primary {
  background: var(--tomato);
  color: #fff;
}

.button.ghost {
  background: var(--butter);
}

.button.danger {
  background: #ffe2e2;
}

.hero {
  min-height: 94vh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 440px);
  gap: 46px;
  align-items: center;
}

.hero-subtitle {
  max-width: 520px;
  margin-top: 24px;
  color: var(--muted);
  font-size: clamp(20px, 3vw, 30px);
  font-weight: 800;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 34px;
}

.hero-photo-card {
  position: relative;
  rotate: 2deg;
  border: 3px solid var(--ink);
  border-radius: 28px;
  padding: 12px;
  background: #fff;
  box-shadow: var(--shadow), 10px 10px 0 var(--ink);
}

.hero-photo-card img {
  height: min(70vh, 680px);
  border-radius: 20px;
  object-fit: cover;
  object-position: 50% 28%;
}

.photo-sticker {
  position: absolute;
  right: -18px;
  bottom: 42px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  padding: 10px 16px;
  background: var(--butter);
  box-shadow: 5px 5px 0 var(--ink);
  font-weight: 900;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

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

.tag-grid span {
  min-height: 74px;
  display: flex;
  align-items: center;
  border: 2px solid var(--ink);
  border-radius: 22px;
  padding: 14px 16px;
  background: var(--card);
  box-shadow: 5px 5px 0 rgba(36, 21, 18, 0.9);
  font-weight: 900;
}

.tag-grid span:nth-child(2n) {
  background: var(--mint);
}

.tag-grid span:nth-child(3n) {
  background: var(--paper-strong);
}

.tag-grid span:nth-child(5n) {
  background: var(--rose);
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
  max-width: 100%;
}

.photo-tile {
  grid-column: span 2;
  margin: 0;
  overflow: hidden;
  border: 3px solid var(--ink);
  border-radius: 26px;
  background: #fff;
  box-shadow: 7px 7px 0 var(--ink);
}

.photo-tile.tall {
  grid-row: span 2;
}

.photo-tile img {
  height: 340px;
  object-fit: cover;
}

.photo-tile.tall img {
  height: 696px;
}

.photo-tile figcaption {
  min-height: 78px;
  padding: 16px;
  border-top: 2px solid var(--ink);
  background: var(--paper);
  font-weight: 900;
}

.split-section,
.notes-section,
.relationship-section,
.game-launch {
  display: grid;
  grid-template-columns: 0.78fr 1.22fr;
  gap: 32px;
  align-items: start;
}

.copy-card,
.relationship-card {
  border: 3px solid var(--ink);
  border-radius: 28px;
  padding: clamp(24px, 5vw, 46px);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 10px 10px 0 var(--ink);
}

.copy-card p + p,
.relationship-card p + p {
  margin-top: 18px;
}

.copy-card {
  font-size: 19px;
  font-weight: 650;
}

.note-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.note-grid article {
  min-height: 104px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--ink);
  border-radius: 20px;
  padding: 18px 20px;
  background: #fff7c6;
  box-shadow: 4px 4px 0 var(--ink);
  font-size: 20px;
  font-weight: 900;
  text-align: center;
}

.note-grid article:nth-child(2) {
  background: #dff8ef;
}

.note-grid article:nth-child(3) {
  background: #ffd9df;
}

.note-grid article:nth-child(4) {
  background: #e2efff;
}

.family-moment {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 18px;
  align-items: center;
  margin: 18px 0 0;
  overflow: hidden;
  border: 2px solid var(--ink);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 5px 5px 0 var(--ink);
}

.family-moment img {
  height: 230px;
  object-fit: cover;
  object-position: 55% 60%;
}

.family-moment figcaption {
  margin: 0;
  padding: 18px 20px;
  color: var(--muted);
  font-size: 19px;
  font-weight: 850;
}

.relationship-section {
  grid-template-columns: 1fr;
}

.relationship-card {
  max-width: 920px;
  margin: 0 auto;
  text-align: center;
}

.relationship-card p {
  color: var(--muted);
  font-size: clamp(18px, 2.5vw, 24px);
  font-weight: 750;
}

.game-launch {
  grid-template-columns: 1fr;
  align-items: center;
  justify-items: center;
  border: 3px solid var(--ink);
  border-radius: 34px;
  padding: clamp(28px, 6vw, 58px);
  background:
    linear-gradient(135deg, rgba(239, 62, 47, 0.9), rgba(255, 134, 94, 0.84)),
    var(--tomato);
  box-shadow: 12px 12px 0 var(--ink);
  color: #fff;
  text-align: center;
}

.game-launch .eyebrow {
  color: #ffe9a8;
}

.game-launch p {
  max-width: 620px;
  margin-right: auto;
  margin-left: auto;
  margin-top: 18px;
  font-size: 22px;
  font-weight: 850;
}

.game-launch .button {
  margin-top: 28px;
}

.game-start-button {
  min-height: 62px;
  padding: 0 34px;
  font-size: 22px;
}

.grandma-photo {
  object-position: 82% 74%;
}

.game-preview {
  position: relative;
  min-height: 380px;
  pointer-events: none;
}

.preview-label {
  position: absolute;
  left: 22px;
  top: 18px;
  z-index: 2;
  border: 2px solid var(--ink);
  border-radius: 999px;
  padding: 7px 12px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.86);
  font-size: 13px;
  font-weight: 900;
}

.planet {
  position: absolute;
  inset: 46px;
  border: 3px solid var(--ink);
  border-radius: 50%;
  background:
    radial-gradient(circle at 38% 34%, #fff 0 5%, transparent 6%),
    radial-gradient(circle at 60% 56%, var(--butter) 0 18%, transparent 19%),
    var(--mint);
  box-shadow: 9px 9px 0 var(--ink);
  animation: floaty 3s ease-in-out infinite;
}

.orbit-item {
  position: absolute;
  border: 2px solid var(--ink);
  border-radius: 999px;
  padding: 10px 14px;
  color: var(--ink);
  background: #fff;
  box-shadow: 5px 5px 0 var(--ink);
  font-weight: 900;
}

.coffee {
  top: 24px;
  left: 50px;
}

.ai {
  right: 42px;
  top: 144px;
  background: var(--butter);
}

.hotpot {
  bottom: 36px;
  left: 100px;
  background: var(--rose);
}

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

.admin-entry {
  padding-top: 28px;
  text-align: center;
}

.admin-entry a {
  color: var(--muted);
  font-weight: 800;
}

.game-modal,
.admin-modal {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(36, 21, 18, 0.42);
  backdrop-filter: blur(12px);
}

.game-modal[hidden],
.admin-modal[hidden] {
  display: none;
}

.game-panel,
.admin-panel {
  position: relative;
  width: min(960px, 100%);
  max-height: min(860px, 92vh);
  overflow: auto;
  border: 3px solid var(--ink);
  border-radius: 30px;
  padding: clamp(20px, 4vw, 42px);
  background: var(--paper);
  box-shadow: 14px 14px 0 var(--ink);
}

.admin-panel {
  width: min(1120px, 100%);
}

.icon-button {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 42px;
  height: 42px;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: #fff;
  box-shadow: 4px 4px 0 var(--ink);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.progress-wrap {
  margin-bottom: 28px;
}

.progress-label {
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 900;
}

.progress-track {
  height: 14px;
  overflow: hidden;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: #fff;
}

.progress-track div {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, var(--tomato), var(--butter), var(--mint));
  transition: width 280ms ease;
}

.game-step h3 {
  max-width: 760px;
  margin-bottom: 10px;
  font-size: clamp(30px, 5vw, 58px);
}

.game-step > p {
  max-width: 680px;
  color: var(--muted);
  font-size: 18px;
  font-weight: 800;
}

.choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 28px;
}

.choice-card {
  min-height: 104px;
  border: 2px solid var(--ink);
  border-radius: 22px;
  padding: 18px;
  background: #fff;
  box-shadow: 6px 6px 0 var(--ink);
  font-weight: 900;
  text-align: left;
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.choice-card:hover,
.choice-card.is-selected {
  transform: translate(2px, 2px);
  background: var(--butter);
  box-shadow: 3px 3px 0 var(--ink);
}

.choice-card small {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-weight: 800;
}

.multi-actions,
.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.field-grid {
  display: grid;
  gap: 14px;
  margin-top: 28px;
}

.field-grid label {
  display: grid;
  gap: 8px;
  font-weight: 900;
}

.field-grid input,
.field-grid textarea,
.field-grid select {
  width: 100%;
  border: 2px solid var(--ink);
  border-radius: 18px;
  padding: 14px 16px;
  background: #fff;
  color: var(--ink);
  outline: none;
}

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

.form-hint {
  margin-top: 12px;
  color: var(--tomato-dark);
  font-weight: 900;
}

.result-card {
  border: 2px solid var(--ink);
  border-radius: 24px;
  padding: 24px;
  background: #fff;
  box-shadow: 7px 7px 0 var(--ink);
}

.result-card ul {
  display: grid;
  gap: 10px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.result-card li {
  border-bottom: 1px solid var(--line);
  padding-bottom: 10px;
  font-weight: 850;
}

.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 20px 0 28px;
}

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

.stat-card,
.entry-card {
  border: 2px solid var(--ink);
  border-radius: 20px;
  padding: 16px;
  background: #fff;
  box-shadow: 5px 5px 0 var(--ink);
}

.stat-card strong {
  display: block;
  font-size: 30px;
  line-height: 1;
}

.entry-list {
  display: grid;
  gap: 16px;
}

.entry-card h3 {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-size: 24px;
}

.risk {
  display: inline-flex;
  border: 2px solid var(--ink);
  border-radius: 999px;
  padding: 2px 10px;
  background: var(--mint);
  font-size: 13px;
  font-weight: 900;
}

.risk.high {
  background: #ff6b61;
  color: #fff;
}

.risk.medium {
  background: var(--butter);
}

.score-list,
.choice-list,
.flag-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 14px 0;
  padding: 0;
  list-style: none;
}

.score-list li,
.choice-list li,
.flag-list li {
  border-radius: 14px;
  padding: 10px 12px;
  background: var(--paper);
  font-weight: 800;
}

.flag-list li {
  background: #ffe6d8;
}

@media (max-width: 900px) {
  .site-shell {
    width: min(100% - 22px, 680px);
  }

  .section {
    padding: 48px 0;
  }

  .hero,
  .split-section,
  .notes-section,
  .game-launch {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 38px;
  }

  .hero-photo-card {
    rotate: 0deg;
    box-shadow: 6px 6px 0 var(--ink);
  }

  .hero-photo-card img {
    height: 560px;
  }

  .tag-grid,
  .note-grid,
  .family-moment,
  .choice-grid,
  .stats-grid,
  .score-list,
  .choice-list,
  .flag-list {
    grid-template-columns: 1fr;
  }

  .photo-grid {
    grid-template-columns: 1fr;
  }

  .photo-tile,
  .photo-tile.tall {
    grid-column: span 1;
  }

  .photo-tile img,
  .photo-tile.tall img {
    height: 460px;
  }

  .section-heading {
    display: block;
  }

  h1 {
    max-width: 100%;
    font-size: clamp(42px, 12vw, 64px);
    word-break: keep-all;
  }

  .photo-sticker {
    right: auto;
    left: 16px;
    bottom: 18px;
  }

  .game-preview {
    min-height: 280px;
  }

  .family-moment img {
    height: 320px;
  }
}

@media (max-width: 520px) {
  .site-shell {
    width: calc(100% - 24px);
  }

  h1 {
    font-size: 42px;
    line-height: 1.14;
  }

  .hero-subtitle {
    font-size: 20px;
  }

  .hero-photo-card img,
  .photo-tile img,
  .photo-tile.tall img {
    height: 430px;
  }

  .game-panel,
  .admin-panel {
    padding-top: 62px;
    border-radius: 22px;
    box-shadow: none;
  }

  .choice-card {
    min-height: 88px;
  }
}

/* Playful sticker direction overrides */
:root {
  --paper: #fffaf0;
  --paper-strong: #fff4cc;
  --ink: #17151f;
  --muted: #5f5868;
  --tomato: #ff7048;
  --tomato-dark: #17151f;
  --butter: #fff16a;
  --mint: #8bf1da;
  --sky: #b9d8ff;
  --rose: #ffb7d8;
  --card: rgba(255, 255, 255, 0.72);
  --line: rgba(23, 21, 31, 0.12);
  --shadow: 0 22px 58px rgba(25, 18, 32, 0.18);
}

body {
  background:
    radial-gradient(circle at 12% 16%, rgba(255, 255, 255, 0.48), transparent 22rem),
    radial-gradient(circle at 88% 12%, rgba(255, 183, 216, 0.55), transparent 20rem),
    radial-gradient(circle at 78% 82%, rgba(255, 145, 77, 0.52), transparent 22rem),
    linear-gradient(135deg, #b4d6ff 0%, #dac6ff 34%, #fff06d 68%, #ff9a4d 100%);
}

.site-shell {
  width: min(1120px, calc(100% - 32px));
}

.hero {
  min-height: min(760px, 88vh);
  grid-template-columns: minmax(0, 0.88fr) minmax(330px, 430px);
  gap: 38px;
  padding-top: 42px;
  padding-bottom: 46px;
}

.top-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 18px;
}

.eyebrow,
.top-pills .eyebrow {
  width: fit-content;
  max-width: 100%;
  border-radius: 999px;
  padding: 8px 12px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.08);
  font-size: 13px;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: none;
}

.music-toggle {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  border: 0;
  border-radius: 999px;
  padding: 8px 12px;
  color: #fff;
  background: var(--ink);
  font-weight: 950;
}

.headline-stack {
  display: grid;
  justify-items: start;
  gap: 8px;
}

.headline-stack span,
.section-heading .eyebrow,
.relationship-card .eyebrow,
.game-launch .eyebrow {
  width: fit-content;
  max-width: 100%;
  border-radius: 999px;
  padding: 9px 13px;
  color: var(--ink);
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.9), rgba(232, 255, 95, 0.78));
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
  font-size: 15px;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: none;
}

h1,
.headline-stack h1 {
  width: fit-content;
  max-width: 100%;
  border-radius: 26px;
  padding: 14px 18px 16px;
  color: #fff;
  background: rgba(23, 21, 31, 0.94);
  font-size: clamp(42px, 6.4vw, 76px);
  line-height: 1.04;
  font-weight: 950;
}

h2 {
  font-size: clamp(28px, 4.4vw, 52px);
}

.hero-subtitle {
  width: fit-content;
  max-width: 560px;
  border-radius: 24px;
  margin-top: 18px;
  padding: 14px 16px;
  color: #342d39;
  background: rgba(255, 255, 255, 0.58);
  backdrop-filter: blur(12px);
  font-size: clamp(18px, 2.3vw, 24px);
  font-weight: 850;
}

.button {
  min-height: 52px;
  border: 0;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.16);
}

.button.primary {
  color: var(--ink);
  background: linear-gradient(90deg, #fff16a, #ff8f50, #ff8bc1);
}

.button.ghost {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.78);
}

.hero-photo-card {
  rotate: 0deg;
  overflow: visible;
  border: 0;
  border-radius: 32px;
  padding: 0;
  background: #fff;
  box-shadow: var(--shadow);
}

.hero-photo-card img {
  height: min(72vh, 650px);
  border-radius: 32px 32px 0 0;
  object-fit: cover;
  object-position: 50% 32%;
}

.photo-caption-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px;
}

.photo-caption-row span {
  width: fit-content;
  max-width: 100%;
  border-radius: 999px;
  padding: 8px 11px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.92);
  font-size: 13px;
  font-weight: 950;
  line-height: 1.1;
}

.photo-caption-row span:nth-child(2) {
  background: linear-gradient(90deg, #ff7048, #ffd36b);
}

.photo-caption-row span:nth-child(3) {
  background: linear-gradient(90deg, #86f2dc, #b6d4ff);
}

.photo-sticker {
  display: none;
}

.sticker {
  position: absolute;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.16);
  font-size: 32px;
  pointer-events: none;
}

.sticker-hotpot {
  right: 16px;
  top: 28%;
  transform: rotate(-8deg);
}

.sticker-coffee {
  left: -18px;
  top: 52%;
  transform: rotate(7deg);
}

.sticker-spark {
  right: 16px;
  top: 62%;
  transform: rotate(8deg);
}

.tag-grid {
  grid-template-columns: repeat(4, minmax(0, max-content));
  align-items: start;
}

.tag-grid span {
  min-height: auto;
  border: 0;
  border-radius: 999px;
  padding: 10px 13px;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
  font-size: 15px;
}

.tag-grid span:nth-child(2n) {
  background: rgba(232, 255, 95, 0.75);
}

.tag-grid span:nth-child(3n) {
  background: rgba(139, 241, 218, 0.75);
}

.tag-grid span:nth-child(5n) {
  background: rgba(255, 183, 216, 0.78);
}

.photo-tile,
.copy-card,
.relationship-card,
.note-grid article,
.family-moment,
.game-launch,
.choice-card,
.result-card,
.stat-card,
.entry-card {
  border: 0;
  box-shadow: var(--shadow);
}

.photo-tile {
  border-radius: 30px;
}

.photo-tile img,
.photo-tile.tall img {
  object-position: 50% 34%;
}

.photo-tile figcaption {
  border-top: 0;
  background: rgba(255, 255, 255, 0.84);
  text-align: center;
}

.copy-card,
.relationship-card {
  background: rgba(255, 255, 255, 0.68);
  backdrop-filter: blur(14px);
}

.note-grid article {
  min-height: 86px;
  background: rgba(255, 255, 255, 0.72);
}

.note-grid article:nth-child(2) {
  background: rgba(139, 241, 218, 0.55);
}

.note-grid article:nth-child(3) {
  background: rgba(255, 183, 216, 0.58);
}

.note-grid article:nth-child(4) {
  background: rgba(185, 216, 255, 0.6);
}

.game-launch {
  color: #fff;
  background: rgba(23, 21, 31, 0.94);
}

.game-launch p {
  width: fit-content;
  max-width: 620px;
  border-radius: 999px;
  padding: 9px 12px;
  color: var(--ink);
  background: linear-gradient(90deg, #b8a9ff, #45e0a7);
  font-size: 16px;
  line-height: 1.35;
}

.game-preview {
  min-height: 330px;
}

.planet {
  border: 0;
  background:
    radial-gradient(circle at 35% 32%, #fff 0 5%, transparent 6%),
    radial-gradient(circle at 60% 56%, #fff16a 0 18%, transparent 19%),
    linear-gradient(135deg, #8bf1da, #b9d8ff);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.22);
}

.orbit-item,
.preview-label {
  border: 0;
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.14);
}

.game-panel,
.admin-panel {
  border: 0;
  background:
    radial-gradient(circle at 10% 8%, rgba(255, 241, 106, 0.54), transparent 14rem),
    linear-gradient(135deg, #eee8ff, #fff8e5 52%, #ffe1c8);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.26);
}

.choice-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  border-radius: 24px;
  min-height: 60px;
  text-align: left;
  background: rgba(255, 255, 255, 0.78);
}

.choice-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.1);
}

.choice-card:hover,
.choice-card.is-selected {
  background: linear-gradient(90deg, #fff16a, #8bf1da);
}

.field-grid input,
.field-grid textarea,
.field-grid select {
  border: 0;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

@media (max-width: 900px) {
  .hero {
    gap: 26px;
  }

  .hero-photo-card img {
    height: 520px;
  }

  .tag-grid {
    display: flex;
    flex-wrap: wrap;
  }
}

@media (max-width: 520px) {
  .site-shell {
    width: calc(100% - 24px);
  }

  .section {
    padding: 44px 0;
  }

  h1,
  .headline-stack h1 {
    font-size: 36px;
    border-radius: 22px;
    padding: 12px 14px 14px;
  }

  .hero-photo-card img {
    height: 430px;
  }

  .sticker {
    width: 56px;
    height: 56px;
    font-size: 28px;
  }

  .sticker-coffee {
    left: -8px;
  }

  .game-launch {
    border-radius: 30px;
  }

  .choice-grid {
    grid-template-columns: 1fr;
  }
}

/* Mobile repair pass: keep the playful direction, but prevent old grid rules from squeezing copy. */
@media (max-width: 760px) {
  body {
    background:
      radial-gradient(circle at 8% 4%, rgba(255, 241, 106, 0.82), transparent 14rem),
      radial-gradient(circle at 92% 8%, rgba(255, 183, 216, 0.78), transparent 13rem),
      radial-gradient(circle at 76% 36%, rgba(139, 241, 218, 0.58), transparent 16rem),
      linear-gradient(135deg, #fffaf0 0%, #eee8ff 52%, #ffebd7 100%);
  }

  .hero {
    min-height: auto;
    display: flex !important;
    flex-direction: column;
    align-items: stretch;
    gap: 22px;
    padding-top: 26px;
  }

  .hero-copy {
    width: 100%;
  }

  .top-pills {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    max-width: 100%;
  }

  .top-pills .eyebrow {
    margin: 0;
    width: fit-content;
  }

  .music-toggle {
    flex: 0 0 auto;
    width: fit-content;
    min-height: 38px;
    padding: 0 13px;
    white-space: nowrap;
    line-height: 1;
  }

  .headline-stack {
    margin-top: 16px;
  }

  .headline-stack span {
    display: inline-flex;
    width: fit-content;
    max-width: 100%;
  }

  h1,
  .headline-stack h1 {
    width: fit-content;
    max-width: 100%;
    font-size: 38px;
    line-height: 1.08;
  }

  .hero-subtitle {
    display: block;
    width: 100%;
    max-width: 100%;
    margin: 14px 0 0;
    writing-mode: horizontal-tb;
    white-space: normal;
    word-break: break-word;
    color: #463842;
    font-size: 18px;
    line-height: 1.55;
    overflow-wrap: anywhere;
  }

  .hero-actions {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    margin-top: 18px;
  }

  .hero-actions .button {
    flex: 0 0 auto;
    min-height: 46px;
    padding: 0 17px;
    white-space: nowrap;
    font-size: 15px;
  }

  .hero-photo-card {
    width: 100%;
    max-width: 100%;
    margin: 0;
    rotate: 0deg;
    overflow: visible;
  }

  .hero-photo-card img {
    width: 100%;
    height: 440px;
    object-position: 50% 32%;
  }

  .photo-caption-row {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 10px 2px 0;
  }

  .photo-caption-row span {
    width: fit-content;
    max-width: 100%;
    border-radius: 999px;
    padding: 7px 10px;
    background: linear-gradient(90deg, #b8a9ff, #8bf1da);
    color: #17151f;
    font-size: 12px;
    font-weight: 900;
  }

  .sticker {
    pointer-events: none;
  }

  .sticker-hotpot {
    right: 10px;
    top: 24%;
  }

  .sticker-coffee {
    left: 8px;
    top: 58%;
  }

  .sticker-spark {
    right: 10px;
    top: 70%;
  }

  .section-heading {
    display: block;
  }

  .tag-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
  }

  .tag-grid span {
    width: fit-content;
    max-width: 100%;
    min-height: 0;
    padding: 9px 12px;
    line-height: 1.35;
  }

  .photo-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    overflow: visible;
    padding-bottom: 0;
  }

  .photo-tile,
  .photo-tile.tall {
    grid-column: auto;
    grid-row: auto;
  }

  .photo-tile img,
  .photo-tile.tall img {
    height: 420px;
    object-position: 50% 34%;
  }

  .photo-tile figcaption {
    min-height: 0;
    padding: 13px 14px;
    font-size: 14px;
  }

  .split-section,
  .notes-section,
  .game-launch {
    display: flex;
    flex-direction: column;
  }

  .note-grid {
    grid-template-columns: 1fr;
  }

  .note-grid article {
    min-height: 76px;
    padding: 16px 18px;
    font-size: 17px;
  }

  .family-moment {
    grid-template-columns: 1fr;
  }

  .family-moment img {
    height: 300px;
  }

  .game-launch {
    padding: 26px 18px;
  }

  .game-launch p {
    width: fit-content;
    max-width: 100%;
    font-size: 15px;
  }

  .game-start-button {
    min-height: 56px;
    margin-top: 20px;
    padding: 0 26px;
    font-size: 18px;
  }

  .game-preview {
    width: 100%;
    min-height: 270px;
  }

  .planet {
    inset: 42px 54px 28px;
  }

  .preview-label {
    left: 0;
    top: 0;
  }

  .coffee {
    left: 22px;
  }

  .ai {
    right: 18px;
  }

  .hotpot {
    left: 54px;
    bottom: 22px;
  }
}

/* Content expansion: sticker-board + tiny quests */
.sticker-board {
  position: relative;
}

.sticker-board::before {
  content: "";
  position: absolute;
  inset: 44px 0 auto auto;
  width: 180px;
  height: 180px;
  border-radius: 48% 52% 44% 56%;
  background: rgba(255, 241, 106, 0.72);
  filter: blur(1px);
  z-index: -1;
}

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

.patch-card {
  min-height: 214px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-radius: 28px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: var(--shadow);
  transform: rotate(-1deg);
}

.patch-card:nth-child(2n) {
  transform: rotate(1.2deg);
}

.patch-card > span {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
  font-size: 32px;
}

.patch-card h3 {
  margin-top: 26px;
  font-size: 28px;
  font-weight: 950;
}

.patch-card p {
  margin-top: 10px;
  color: #332d39;
  font-size: 16px;
  font-weight: 820;
  line-height: 1.55;
}

.hotpot-card {
  background: linear-gradient(155deg, rgba(255, 112, 72, 0.9), rgba(255, 241, 106, 0.75));
}

.coffee-card {
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.82), rgba(185, 216, 255, 0.82));
}

.travel-card {
  background: linear-gradient(155deg, rgba(139, 241, 218, 0.9), rgba(184, 169, 255, 0.78));
}

.ai-card {
  background: linear-gradient(155deg, rgba(255, 183, 216, 0.86), rgba(255, 255, 255, 0.8));
}

.mini-map {
  position: relative;
}

.quest-list {
  display: grid;
  gap: 12px;
}

.quest-list article {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  width: fit-content;
  max-width: 840px;
  border-radius: 999px;
  padding: 10px 18px 10px 10px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.1);
}

.quest-list article:nth-child(2) {
  margin-left: 9vw;
  background: rgba(232, 255, 95, 0.72);
}

.quest-list article:nth-child(3) {
  margin-left: 4vw;
  background: rgba(139, 241, 218, 0.72);
}

.quest-list article:nth-child(4) {
  margin-left: 13vw;
  background: rgba(255, 183, 216, 0.72);
}

.quest-list span {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--ink);
  font-size: 15px;
  font-weight: 950;
}

.quest-list p {
  font-size: 18px;
  font-weight: 880;
  line-height: 1.45;
}

.photo-tile img,
.photo-tile.tall img,
.family-moment img {
  object-fit: contain;
  background: linear-gradient(135deg, rgba(255, 241, 106, 0.22), rgba(139, 241, 218, 0.22));
}

@media (max-width: 900px) {
  .patch-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .quest-list article,
  .quest-list article:nth-child(n) {
    margin-left: 0;
    width: 100%;
    border-radius: 28px;
  }
}

@media (max-width: 520px) {
  .patch-grid {
    grid-template-columns: 1fr;
  }

  .patch-card {
    min-height: 172px;
    transform: none !important;
  }

  .patch-card h3 {
    margin-top: 18px;
    font-size: 24px;
  }

  .quest-list article {
    align-items: start;
    border-radius: 24px;
    padding: 12px;
  }

  .quest-list span {
    width: 40px;
    height: 40px;
  }

  .quest-list p {
    font-size: 16px;
  }
}

.photo-tile img.grandma-photo,
.photo-tile.tall img.grandma-photo {
  object-fit: cover;
  object-position: 82% 74%;
}
