/* Pile Pop — site styles.
   Colours, fonts and the solid offset "candy" shadow come from the game's
   DesignSystem (games/pile-pop in katapultmedia/mobile-games). Fredoka for
   all text; Lilita One only for the wordmark, as in the app. */

@font-face {
  font-family: 'Fredoka';
  src: url('../fonts/Fredoka.ttf') format('truetype');
  font-weight: 300 700;
  font-display: swap;
}
@font-face {
  font-family: 'Lilita One';
  src: url('../fonts/LilitaOne-Regular.ttf') format('truetype');
  font-weight: 400;
  font-display: swap;
}

:root {
  --sun: #ffc93c;
  --sun-shadow: #d99a12;
  --grape: #6c3bef;
  --grape-shadow: #3e1694;
  --board: #4e22c9;
  --pink: #ff5fa2;
  --pink-shadow: #c93578;
  --mint: #22c77a;
  --mint-shadow: #13965a;
  --leaf: #1f8f5f;
  --ink: #2a1458;
  --ink-soft: #5c4a85;
  --ink-muted: #4a3378;
  --rose: #c2417e;
  --lavender: #e6dcff;
  --tile: #fff8ec;
  --tile-wrong: #ff9aa8;
  --butter: #fff1c9;
  --lilac: #efe8ff;
  --lilac-pale: #e4dafb;
  --ink-wash: rgba(42, 20, 88, 0.12);
  --shade: rgba(0, 0, 0, 0.2);

  --body: 'Fredoka', ui-rounded, 'SF Pro Rounded', system-ui, sans-serif;
  --mark: 'Lilita One', 'Fredoka', system-ui, sans-serif;
  --emoji: 'Apple Color Emoji', 'Segoe UI Emoji', 'Noto Color Emoji', sans-serif;

  --wrap: 1120px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--body);
  font-size: 1.125rem;
  line-height: 1.5;
  color: var(--ink);
  background: var(--sun);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
p { margin: 0 0 1em; }

:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
  border-radius: 8px;
}
.on-grape :focus-visible { outline-color: #fff; }

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 50;
  padding: 0.6rem 1rem;
  background: var(--ink);
  color: #fff;
  border-radius: 12px;
  font-weight: 600;
  text-decoration: none;
}
.skip:focus { top: 1rem; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.wrap {
  width: min(100% - 2.5rem, var(--wrap));
  margin-inline: auto;
}

/* ---------- Wordmark: PILE on tumbled tiles, POP beside ---------- */

.wordmark {
  --h: 34px;
  display: inline-flex;
  align-items: center;
  gap: calc(var(--h) * 0.22);
  text-decoration: none;
  line-height: 1;
}
.wordmark .tiles { display: inline-flex; gap: calc(var(--h) * 0.09); }
.wordmark .t {
  display: grid;
  place-items: center;
  width: calc(var(--h) * 0.88);
  height: var(--h);
  font-family: var(--mark);
  font-size: calc(var(--h) * 0.76);
  background: var(--tile);
  border-radius: calc(var(--h) * 0.22);
  box-shadow: 0 calc(var(--h) * 0.09) 0 var(--sun-shadow);
  transform: rotate(var(--tilt)) translateY(var(--drop, 0));
}
.wordmark .t:nth-child(1) { color: var(--grape); --tilt: -6deg; }
.wordmark .t:nth-child(2) { color: var(--pink); --tilt: 4deg; --drop: calc(var(--h) * 0.09); }
.wordmark .t:nth-child(3) { color: var(--grape); --tilt: -3deg; }
.wordmark .t:nth-child(4) { color: var(--leaf); --tilt: 7deg; --drop: calc(var(--h) * 0.06); }
.wordmark .pop {
  font-family: var(--mark);
  font-size: calc(var(--h) / 0.9);
  letter-spacing: 0.02em;
  color: var(--pink);
  text-shadow: 0 calc(var(--h) * 0.095) 0 var(--pink-shadow);
}

/* ---------- Header ---------- */

.site-header { padding: 1.1rem 0; }
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.site-nav { display: flex; gap: 0.35rem; align-items: center; }
.site-nav a {
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
}
.site-nav a:hover { background: var(--ink-wash); }
@media (max-width: 640px) {
  .site-nav a:not(.keep) { display: none; }
  .wordmark { --h: 28px; }
}

/* ---------- Candy pieces (solid offset shadow, never a blur) ---------- */

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  background: var(--ink-wash);
  font-weight: 600;
  font-size: 0.95rem;
  white-space: nowrap;
}
.on-grape .pill { background: var(--shade); color: #fff; }

.candy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font: 700 1.15rem/1 var(--body);
  padding: 1rem 1.5rem;
  border: 0;
  border-radius: 20px;
  background: var(--grape);
  color: #fff;
  box-shadow: 0 6px 0 var(--grape-shadow);
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.12s, box-shadow 0.12s;
}
.candy:active { transform: translateY(4px); box-shadow: 0 2px 0 var(--grape-shadow); }
.candy.pink { background: var(--pink); box-shadow: 0 6px 0 var(--pink-shadow); }
.candy.pink:active { box-shadow: 0 2px 0 var(--pink-shadow); }

/* ---------- Hero ---------- */

.hero { padding: 2.5rem 0 5rem; overflow: hidden; }
.hero .wrap > * { min-width: 0; }
.hero .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 3rem;
  align-items: center;
}
/* The mark is ~6.8 tile-heights wide; size it to the column so POP never clips. */
.hero .wordmark { --h: clamp(48px, 6.6vw, 96px); margin-bottom: 2.25rem; }
@media (max-width: 880px) {
  .hero .wordmark { --h: min(96px, calc((100vw - 2.5rem) / 6.9)); }
}
.hero h1 {
  font-size: clamp(2.1rem, 4.2vw, 3.25rem);
  line-height: 1.08;
  font-weight: 700;
  margin: 0 0 1rem;
  max-width: 15ch;
  letter-spacing: -0.01em;
}
.hero .lede {
  font-size: 1.25rem;
  color: var(--ink-muted);
  max-width: 34ch;
  margin-bottom: 2rem;
}

.soon {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}
.soon-tag {
  font-weight: 700;
  font-size: 1.05rem;
  background: var(--pink);
  color: #fff;
  padding: 0.55rem 1.1rem;
  border-radius: 14px;
  box-shadow: 0 4px 0 var(--pink-shadow);
  transform: rotate(-3deg);
}
.store {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.55rem 1rem;
  border-radius: 14px;
  background: var(--ink);
  color: #fff;
  font-size: 0.95rem;
  line-height: 1.15;
}
.store svg { width: 22px; height: 22px; flex: none; }
.store small { display: block; font-size: 0.72rem; opacity: 0.75; }
.store b { font-weight: 600; }

@media (max-width: 880px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 3rem; }
  .hero { padding-bottom: 4rem; }
}

/* ---------- Phone frame ---------- */

.phone {
  --w: 320px;
  width: var(--w);
  max-width: 100%;
  aspect-ratio: 9 / 19.2;
  border-radius: 46px;
  padding: 10px;
  background: var(--ink);
  box-shadow: 0 14px 0 rgba(42, 20, 88, 0.35);
  position: relative;
  flex: none;
}
.phone::before {
  content: '';
  position: absolute;
  top: 18px;
  left: 50%;
  width: 84px;
  height: 22px;
  margin-left: -42px;
  border-radius: 999px;
  background: var(--ink);
  z-index: 3;
}
.screen {
  position: relative;
  height: 100%;
  border-radius: 37px;
  overflow: hidden;
  padding: 46px 14px 14px;
  display: flex;
  flex-direction: column;
  font-size: 14px;
  line-height: 1.25;
}
.screen.sun { background: var(--sun); color: var(--ink); }
.screen.grape { background: var(--grape); color: #fff; }
.screen .emoji, .emoji { font-family: var(--emoji); line-height: 1; }

.hero .phone { --w: 360px; justify-self: center; transform: rotate(2deg); }
@media (max-width: 420px) { .hero .phone { transform: none; } }

/* ---------- Gameplay screen (playable in the hero) ---------- */

.g-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-bottom: 8px;
}
.g-title { font-weight: 700; font-size: 16px; }
.g-pills { display: flex; gap: 4px; }
.g-pills .pill { font-size: 12px; padding: 3px 8px; gap: 4px; }

.timer { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; position: relative; }
.timer-track { flex: 1; height: 12px; border-radius: 999px; background: rgba(0, 0, 0, 0.25); overflow: hidden; }
.timer-fill { height: 100%; width: 100%; border-radius: inherit; background: var(--sun); transition: width 0.1s linear; }
.timer.hot .timer-fill { background: var(--pink); }
.timer-label { font-weight: 700; font-size: 15px; width: 36px; text-align: right; font-variant-numeric: tabular-nums; }
.penalty {
  position: absolute;
  right: 46px;
  top: -3px;
  background: var(--pink);
  color: #fff;
  font-weight: 700;
  font-size: 12px;
  padding: 2px 7px;
  border-radius: 999px;
  opacity: 0;
  transform: translateX(8px);
  transition: opacity 0.2s, transform 0.2s;
  pointer-events: none;
}
.penalty.show { opacity: 1; transform: none; }

.target {
  display: flex;
  gap: 10px;
  align-items: center;
  background: #fff;
  color: var(--ink);
  border-radius: 18px;
  padding: 10px;
  box-shadow: 0 5px 0 var(--grape-shadow);
  margin-bottom: 14px;
}
.target-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  flex: none;
  border-radius: 14px;
  background: var(--butter);
  font-size: 26px;
}
.target-body { flex: 1; min-width: 0; }
.target-step { font-size: 11px; font-weight: 600; color: var(--rose); }
.target-step.cleared { color: var(--mint-shadow); font-weight: 700; }
.target-name { font-size: 16px; font-weight: 700; margin: 1px 0 2px; }
.target-members { font-size: 14px; letter-spacing: 1px; }
.dots { display: flex; gap: 4px; margin-top: 5px; }
.dots i { width: 15px; height: 7px; border-radius: 999px; background: var(--lilac-pale); transition: background 0.2s; }
.dots i.on { background: var(--pink); }
.next {
  border-left: 2px dashed var(--lilac-pale);
  padding-left: 8px;
  text-align: center;
  flex: none;
}
.next-label { font-size: 10px; font-weight: 600; color: var(--rose); margin-bottom: 3px; }
.next-items { display: flex; gap: 3px; }
.next-items span {
  display: grid;
  place-items: center;
  width: 30px;
  height: 34px;
  border-radius: 9px;
  background: var(--lilac);
  font-size: 14px;
}
.next-items b { display: block; font-size: 10px; color: var(--grape); font-family: var(--body); }

.board {
  --cols: 5;
  --rows: 7;
  position: relative;
  flex: 1;
  border-radius: 20px;
  background: var(--board);
  padding: 6px;
  min-height: 0;
}
.board-inner { position: relative; width: 100%; height: 100%; }
.tile {
  position: absolute;
  width: calc(100% / var(--cols));
  height: calc(100% / var(--rows));
  left: calc(var(--c) * 100% / var(--cols));
  top: calc(var(--r) * 100% / var(--rows));
  padding: 3px;
  border: 0;
  background: none;
  cursor: pointer;
  transition: top 0.35s cubic-bezier(0.34, 1.4, 0.64, 1);
}
.tile span {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  border-radius: 12px;
  background: var(--tile);
  box-shadow: 0 3px 0 rgba(0, 0, 0, 0.18);
  font-family: var(--emoji);
  font-size: clamp(18px, 6.2cqh, 30px);
  transition: transform 0.12s, background 0.15s;
}
.board { container-type: size; }
.tile:hover span { transform: translateY(-2px); }
.tile:focus-visible { outline: none; }
.tile:focus-visible span { outline: 3px solid #fff; outline-offset: 1px; }
.tile.wrong span { background: var(--tile-wrong); animation: shake 0.35s; }
.tile.hint span { box-shadow: 0 0 0 3px var(--sun), 0 3px 0 rgba(0, 0, 0, 0.18); }
.tile.popping { pointer-events: none; }
.tile.popping span { animation: pop 0.28s forwards; }

@keyframes shake {
  20%, 60% { transform: translateX(-4px); }
  40%, 80% { transform: translateX(4px); }
}
@keyframes pop {
  40% { transform: scale(1.25); }
  100% { transform: scale(0); opacity: 0; }
}

.start-hint {
  position: absolute;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);
  background: var(--ink);
  color: #fff;
  font-weight: 600;
  font-size: 13px;
  padding: 6px 12px;
  border-radius: 999px;
  white-space: nowrap;
  pointer-events: none;
  transition: opacity 0.2s;
}
.start-hint[hidden] { display: block; opacity: 0; }

.result {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
  gap: 6px;
  background: var(--sun);
  color: var(--ink);
  animation: slide-up 0.4s cubic-bezier(0.2, 0.9, 0.3, 1.1);
}
.result[hidden] { display: none; }
.result.lost { background: rgba(28, 16, 48, 0.55); justify-content: flex-end; padding: 0; }
.result h3 { margin: 0; font-size: 34px; font-weight: 700; }
.result .stars { font-size: 44px; display: flex; gap: 4px; margin: 6px 0; }
.result .stars .off { filter: grayscale(1) opacity(0.35); }
.result p { margin: 0 0 12px; color: var(--ink-muted); font-size: 15px; }
.result .sheet {
  width: 100%;
  background: #fff;
  border-radius: 28px 28px 0 0;
  padding: 24px 20px 28px;
}
.result .sheet .big { font-size: 48px; display: block; margin-bottom: 4px; }
.result .candy { font-size: 17px; padding: 14px 20px; width: 100%; }

@keyframes slide-up {
  from { transform: translateY(30px); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .tile, .timer-fill, .penalty, .tile span, .candy { transition: none; }
  .tile.wrong span, .tile.popping span, .result { animation: none; }
  .tile.popping span { opacity: 0; }
}

/* ---------- How it plays ---------- */

.plays {
  background: var(--tile);
  padding: 5rem 0;
  border-radius: 48px 48px 0 0;
}
.plays h2, .screens h2, .launch h2 {
  font-size: clamp(1.9rem, 3.4vw, 2.6rem);
  line-height: 1.1;
  font-weight: 700;
  margin: 0 0 0.6rem;
}
.section-sub { color: var(--ink-soft); max-width: 46ch; margin-bottom: 3rem; }

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2.5rem;
  counter-reset: step;
}
.steps li { counter-increment: step; }
.step-art {
  height: 150px;
  display: grid;
  place-items: center;
  margin-bottom: 1.25rem;
  border-radius: 28px;
  background: var(--lilac);
  position: relative;
}
.steps li:nth-child(2) .step-art { background: var(--butter); }
.steps li:nth-child(3) .step-art { background: #ffe0ee; }
.step-art::before {
  content: counter(step);
  position: absolute;
  top: -14px;
  left: 18px;
  width: 40px;
  height: 44px;
  display: grid;
  place-items: center;
  font-family: var(--mark);
  font-size: 26px;
  color: var(--grape);
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 0 var(--lilac-pale);
  transform: rotate(-6deg);
}
.steps h3 { font-size: 1.35rem; margin: 0 0 0.35rem; }
.steps p { color: var(--ink-soft); margin: 0; max-width: 32ch; }

.art-target { display: flex; gap: 10px; align-items: center; background: #fff; padding: 10px 14px; border-radius: 16px; box-shadow: 0 4px 0 var(--lilac-pale); }
.art-target .emoji { font-size: 28px; }
.art-target b { display: block; font-size: 15px; }
.art-target small { color: var(--rose); font-weight: 600; font-size: 12px; }

.art-pile { display: grid; grid-template-columns: repeat(4, 38px); gap: 5px; }
.art-pile span {
  height: 38px;
  display: grid;
  place-items: center;
  font-size: 22px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 3px 0 var(--sun-shadow);
}
.art-pile span.found { background: var(--mint); box-shadow: 0 3px 0 var(--mint-shadow); }

.art-clock { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.art-clock .emoji { font-size: 44px; }
.art-clock .bar { width: 150px; height: 12px; border-radius: 999px; background: var(--lilac-pale); overflow: hidden; }
.art-clock .bar i { display: block; width: 22%; height: 100%; background: var(--pink); }
.art-clock b { font-size: 14px; color: var(--pink-shadow); }

@media (max-width: 820px) {
  .steps { grid-template-columns: 1fr; gap: 3rem; max-width: 420px; }
}

/* ---------- Screens ---------- */

.screens {
  background: var(--grape);
  color: #fff;
  padding: 5rem 0 6rem;
  overflow: hidden;
}
.screens .section-sub { color: var(--lavender); }
.phones {
  display: flex;
  gap: 2rem;
  justify-content: center;
  align-items: flex-start;
  padding: 1rem 0 1.5rem;
}
.phones figure { margin: 0; flex: none; }
.phones .phone { --w: 250px; box-shadow: 0 12px 0 var(--grape-shadow); background: var(--ink); }
.phones figure:nth-child(1) .phone { transform: rotate(-5deg) translateY(18px); }
.phones figure:nth-child(2) .phone { transform: rotate(3deg); }
.phones figure:nth-child(3) .phone { transform: rotate(-2deg) translateY(26px); }
.phones figure:nth-child(4) .phone { transform: rotate(5deg) translateY(6px); }
.phones figcaption {
  text-align: center;
  margin-top: 2.75rem;
  font-weight: 600;
  color: var(--lavender);
  font-size: 1rem;
}
.phones .screen { font-size: 12px; padding: 40px 12px 12px; border-radius: 30px; }
.phones .phone::before { top: 16px; width: 70px; height: 19px; margin-left: -35px; }

@media (max-width: 1100px) {
  .phones {
    justify-content: flex-start;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: 1.5rem 1.25rem 2rem;
    margin-inline: calc(50% - 50vw);
    scrollbar-width: none;
  }
  .phones::-webkit-scrollbar { display: none; }
  .phones figure { scroll-snap-align: center; }
}

/* Level map */
.m-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.m-head .wordmark { --h: 18px; }
.m-head .pill { font-size: 10px; padding: 2px 6px; gap: 3px; }
.m-pills { display: flex; gap: 3px; }
.map { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: space-around; padding: 4px 0; }
.lvl {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 20px;
  position: relative;
  transform: translateX(var(--x, 0));
}
.lvl.done { background: #fff; color: var(--grape); box-shadow: 0 4px 0 var(--sun-shadow); }
.lvl.done::after { content: '⭐⭐⭐'; position: absolute; bottom: -10px; font-size: 9px; font-family: var(--emoji); letter-spacing: -1px; }
.lvl.locked { background: var(--butter); color: var(--butter-ink, #8a5f00); box-shadow: 0 4px 0 var(--sun-shadow); opacity: 0.85; font-size: 16px; }
.lvl.current { width: 66px; height: 66px; background: var(--pink); color: #fff; box-shadow: 0 5px 0 var(--pink-shadow), 0 0 0 8px rgba(255, 95, 162, 0.3); font-size: 26px; }
.play-tag { background: var(--ink); color: #fff; font-weight: 700; font-size: 11px; padding: 2px 10px; border-radius: 999px; margin-top: -2px; transform: translateX(var(--x, 0)); }
.tabbar {
  display: flex;
  justify-content: space-around;
  background: #fff;
  border-radius: 18px;
  padding: 6px 4px;
  box-shadow: 0 4px 0 var(--sun-shadow);
  font-size: 10px;
  font-weight: 600;
  text-align: center;
  color: var(--ink-soft);
}
.tabbar span .emoji { display: block; font-size: 17px; margin-bottom: 2px; }
.tabbar .on { color: var(--grape); }

/* Level complete */
.done-screen { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 6px; }
.done-screen h4 { margin: 0; font-size: 34px; font-weight: 700; }
.done-screen .stars { font-size: 34px; display: flex; align-items: flex-end; gap: 2px; }
.done-screen .stars span:nth-child(2) { font-size: 46px; }
.coins { background: #fff; border-radius: 18px; padding: 10px 16px; display: flex; gap: 10px; align-items: center; box-shadow: 0 4px 0 var(--sun-shadow); margin: 6px 0; }
.coins .emoji { font-size: 26px; }
.coins b { font-size: 22px; display: block; text-align: left; }
.coins small { color: var(--ink-muted); font-size: 10px; }
.speed { background: var(--mint); color: var(--mint-ink, #063d24); border-radius: 14px; padding: 6px 12px; font-weight: 700; font-size: 12px; box-shadow: 0 3px 0 var(--mint-shadow); }
.mini-btn { width: 100%; text-align: center; font-weight: 700; font-size: 15px; padding: 11px; border-radius: 16px; background: var(--grape); color: #fff; box-shadow: 0 5px 0 var(--grape-shadow); margin-top: 8px; }
.mini-link { font-weight: 600; color: var(--ink-muted); font-size: 12px; margin-top: 6px; }

/* Daily rewards */
.daily h4 { margin: 4px 0 2px; font-size: 22px; font-weight: 700; }
.daily > p { color: var(--ink-muted); font-size: 11px; margin: 0 0 10px; }
.days { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; }
.day {
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.6);
  text-align: center;
  padding: 6px 2px 7px;
  font-size: 10px;
  font-weight: 600;
}
.day b { display: block; font-size: 17px; }
.day .emoji { font-size: 18px; display: block; margin: 3px 0; }
.day.claimed { background: var(--mint); color: #063d24; box-shadow: 0 3px 0 var(--mint-shadow); }
.day.today { background: #fff; box-shadow: 0 4px 0 var(--pink-shadow), 0 0 0 3px var(--pink); }
.day.big { grid-column: span 3; display: flex; align-items: center; justify-content: center; gap: 10px; padding: 9px; }
.day.big .emoji { font-size: 26px; margin: 0; }
.daily .mini-btn { background: var(--pink); box-shadow: 0 5px 0 var(--pink-shadow); margin-top: auto; }
.daily { flex: 1; display: flex; flex-direction: column; }

/* Shop */
.shop h4 { margin: 4px 0 8px; font-size: 22px; font-weight: 700; }
.shop-sec { font-size: 11px; font-weight: 700; color: var(--ink-muted); margin: 6px 0 5px; }
.boosts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.boost { background: #fff; border-radius: 14px; text-align: center; padding: 8px 2px; box-shadow: 0 3px 0 var(--sun-shadow); font-weight: 700; font-size: 11px; }
.boost .emoji { font-size: 22px; display: block; margin-bottom: 3px; }
.boost small { display: block; color: var(--grape); font-size: 10px; margin-top: 2px; }
.themes { display: flex; flex-direction: column; gap: 6px; }
.theme-row { display: flex; align-items: center; gap: 8px; background: rgba(255, 255, 255, 0.6); border-radius: 14px; padding: 7px 9px; font-weight: 600; font-size: 12px; }
.theme-row .emoji { font-size: 20px; }
.theme-row span:last-child { margin-left: auto; font-size: 10px; background: var(--ink-wash); border-radius: 999px; padding: 2px 7px; }
.theme-row.owned span:last-child { background: var(--mint); color: #063d24; }

/* ---------- Launch ---------- */

.launch { padding: 5.5rem 0; background: var(--sun); }
.launch .wrap {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 3rem;
  align-items: center;
}
.launch .icon {
  width: 180px;
  border-radius: 40px;
  box-shadow: 0 10px 0 var(--sun-shadow);
  transform: rotate(-4deg);
}
.launch ul { list-style: none; padding: 0; margin: 0 0 2rem; display: grid; gap: 0.55rem; }
.launch li { display: flex; gap: 0.7rem; align-items: baseline; font-size: 1.15rem; }
.launch li .emoji { font-size: 1.2rem; }
@media (max-width: 720px) {
  .launch .wrap { grid-template-columns: 1fr; gap: 2rem; }
  .launch .icon { width: 120px; border-radius: 28px; }
}

/* ---------- Footer ---------- */

.site-footer { background: var(--ink); color: var(--lavender); padding: 2.5rem 0; font-size: 1rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 1rem 2rem; align-items: center; justify-content: space-between; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 1.5rem; }
.site-footer a { color: #fff; font-weight: 600; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer p { margin: 0; }

/* ---------- Legal pages ---------- */

.legal-hero { padding: 2rem 0 3rem; }
.legal-hero h1 { font-size: clamp(2.2rem, 5vw, 3.2rem); margin: 0 0 0.5rem; line-height: 1.05; }
.legal-hero p { color: var(--ink-muted); margin: 0; }
.legal {
  background: #fff;
  border-radius: 40px 40px 0 0;
  padding: 3.5rem 0 5rem;
}
.legal .wrap, .legal-hero .wrap { max-width: 760px; }
.legal h2 { font-size: 1.5rem; margin: 2.75rem 0 0.75rem; line-height: 1.2; }
.legal h2:first-child { margin-top: 0; }
.legal h3 { font-size: 1.15rem; margin: 1.75rem 0 0.5rem; }
.legal p, .legal li { color: var(--ink-soft); line-height: 1.65; }
.legal ul { padding-left: 1.3rem; margin: 0 0 1em; }
.legal li { margin-bottom: 0.4rem; }
.legal strong { color: var(--ink); }
.legal a { color: var(--grape); font-weight: 600; }
.legal .caps { text-transform: uppercase; font-size: 0.95rem; }
.promise {
  background: var(--butter);
  border-radius: 24px;
  padding: 1.5rem 1.75rem;
  margin-bottom: 2.5rem;
  box-shadow: 0 5px 0 var(--sun);
}
.promise h2 { margin-top: 0; }
.promise ul { margin: 0; }
.promise li { color: var(--ink); }
.toc { columns: 2; column-gap: 2rem; padding-left: 1.3rem; margin-bottom: 2.5rem; }
.toc li { break-inside: avoid; }
@media (max-width: 600px) { .toc { columns: 1; } }
