/* VibeBorn: the site as the game's toy shop.
   Every frame is the game's own clay art, 9-sliced with the same cap insets
   the app uses (VibeBorn iOS, GameHUD.swift HUDArtSkin / ClayPlankPopup /
   VibeBornTabBar). Art is exported at @2x, so CSS slice values are pixels
   in the file and border widths are the game's points.
     panel        hud_panel        caps 30pt          -> slice 60
     plank        hud_plank        caps 27/36/28/36pt -> slice 54 72 56 72
     gold button  hud_gold_button  caps 14/22/15/22pt -> slice 28 44 30 44
     gem pill     hud_gem_pill     caps 17/21pt       -> slice 34 42
     wood shelf   tab_tray_wood    caps 41.5/37/20/37 -> slice 83 74 40 74
   Colors come from HUDTheme / SimTheme; text pairs are measured against the
   sampled art (body plum on cream 11.5:1, gold label brown on gold 6.8:1,
   cream on the dark plank 6.7:1). */

:root {
  --ink: #3e2546;            /* clay text, HUDTheme plum family */
  --ink-soft: #5b4565;       /* secondary text, 7.2:1 on the panel */
  --cream: #fff3e2;          /* panel face */
  --cream-hi: #fffaf2;
  --clay-edge: #c9a27a;      /* SimTheme.clayEdge, the lip under cream */
  --clay-stroke: #e3cdb4;    /* SimTheme.clayStroke */
  --gold-label: #5e3410;     /* label on the gold button, 6.8:1 */
  --gold-brown: #7a4a1f;     /* HUDTheme.brownText */
  --plank-text: #ffe9c9;     /* plank title, as in ClayPlankPopup */
  --plank-shadow: #3a2112;
  --wood-dark: #5e3f28;
  --green: #4fb875;          /* accent, decoration only (2.1:1 on cream) */
  --green-text: #2f6e4e;     /* HUDTheme.boostCheckText, 5.2:1 on cream */
  --orange: #e8742e;         /* final-24h amber, decoration only */
  --amber-text: #a8461a;     /* HUDTheme.boostAmberText, 5.0:1 on cream */
  --night: #22152c;          /* backdrop fallback under the mall art */
  --lilac: #b99af0;          /* AERENE palette (StoreCatalog paletteHex) */
  --blush: #f7b6d2;

  --font: "Nunito", ui-rounded, "SF Pro Rounded", system-ui, -apple-system, sans-serif;

  --gutter: 16px;
  --max-w: 1120px;
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px; --s8: 64px;
  --r-chip: 14px;
  --r-tile: 22px;

  --press: 120ms;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-pop: cubic-bezier(0.34, 1.56, 0.64, 1);

  --panel-w: 24px;           /* rendered panel cap; 30 on wide screens */
}

@media (min-width: 760px) {
  :root { --gutter: 32px; --panel-w: 30px; }
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  background-color: var(--night);
  color: var(--ink);
  font-family: var(--font);
  font-weight: 600;
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* The night-market plaza from the Mall tab, behind everything. A fixed
   layer (not background-attachment: fixed, which iOS Safari ignores). */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(120% 70% at 50% 8%, rgba(255, 196, 120, 0.22), transparent 60%),
    linear-gradient(180deg, rgba(34, 18, 44, 0.42) 0%, rgba(46, 24, 38, 0.58) 55%, rgba(40, 20, 22, 0.78) 100%),
    url("/assets/img/game/mall-bg.jpg") center 30% / cover no-repeat,
    var(--night);
  background:
    radial-gradient(120% 70% at 50% 8%, rgba(255, 196, 120, 0.22), transparent 60%),
    linear-gradient(180deg, rgba(34, 18, 44, 0.42) 0%, rgba(46, 24, 38, 0.58) 55%, rgba(40, 20, 22, 0.78) 100%),
    image-set(url("/assets/img/game/mall-bg.webp") type("image/webp"), url("/assets/img/game/mall-bg.jpg") type("image/jpeg")) center 30% / cover no-repeat,
    var(--night);
}

img { max-width: 100%; height: auto; display: block; }
picture { display: contents; }
source { display: none; }
a { color: inherit; }

h1, h2, h3 {
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin: 0;
  text-wrap: balance;
}

p { margin: 0; text-wrap: pretty; }

.wrap {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.skip {
  position: absolute;
  left: -9999px;
}
.skip:focus {
  left: var(--gutter);
  top: 8px;
  z-index: 10;
  background: var(--cream);
  padding: 8px 14px;
  border-radius: 12px;
}

:focus-visible {
  outline: 3px solid #ffd27a;
  outline-offset: 3px;
  border-radius: 10px;
}

/* ------------------------------------------------------------------ */
/* Clay primitives                                                     */
/* ------------------------------------------------------------------ */

/* Cream clay panel (hud_panel). */
.panel {
  position: relative;
  border-style: solid;
  border-width: var(--panel-w);
  border-image-source: url("/assets/img/game/panel.png");
  border-image-source: image-set(url("/assets/img/game/panel.webp") type("image/webp"), url("/assets/img/game/panel.png") type("image/png"));
  border-image-slice: 60 fill;
  border-image-repeat: stretch;
  filter: drop-shadow(0 14px 22px rgba(20, 8, 24, 0.45));
}

/* Wooden plank title sign (hud_plank). The art is a fixed 56pt-tall sign
   that stretches only sideways; the label sits over the whole sign. */
.plank {
  --k: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  height: calc(56px * var(--k));
  border-style: solid;
  border-width: calc(27px * var(--k)) calc(36px * var(--k)) calc(28px * var(--k));
  border-image-source: url("/assets/img/game/plank.png");
  border-image-source: image-set(url("/assets/img/game/plank.webp") type("image/webp"), url("/assets/img/game/plank.png") type("image/png"));
  border-image-slice: 54 72 56 72 fill;
  filter: drop-shadow(0 4px 5px rgba(20, 8, 10, 0.4));
  color: var(--plank-text);
  text-shadow: 0 1.5px 1px rgba(58, 33, 18, 0.75);
}
.plank > span {
  display: block;
  margin: calc(-27px * var(--k)) calc(4px * var(--k)) calc(-28px * var(--k));
  line-height: calc(54px * var(--k));
  font-size: calc(var(--plank-fs, 16px) * var(--k));
  font-weight: 900;
  letter-spacing: 0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Gold tag that hangs under a plank (BoostGoldTag). */
.tag {
  display: inline-block;
  padding: 3px 12px 4px;
  border-radius: 999px;
  background: linear-gradient(#ffe29a, #f2b04e);
  box-shadow: 0 2px 0 #b97a28, 0 4px 8px rgba(40, 16, 8, 0.3);
  color: #3a2408;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

/* Gold clay CTA (hud_gold_button), brown label, pressable lip. */
.btn {
  --k: 1;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: calc(44px * var(--k));
  font: inherit;
  font-weight: 900;
  font-size: calc(16px * var(--k));
  line-height: 1.15;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: transform var(--press) var(--ease-out), filter var(--press) var(--ease-out);
  -webkit-tap-highlight-color: transparent;
}
.btn-gold {
  color: var(--gold-label);
  border-style: solid;
  border-width: calc(14px * var(--k)) calc(22px * var(--k)) calc(15px * var(--k));
  border-image-source: url("/assets/img/game/gold-button.png");
  border-image-source: image-set(url("/assets/img/game/gold-button.webp") type("image/webp"), url("/assets/img/game/gold-button.png") type("image/png"));
  border-image-slice: 28 44 30 44 fill;
  filter: drop-shadow(0 5px 6px rgba(60, 24, 6, 0.35));
  text-shadow: 0 1px 0 rgba(255, 240, 200, 0.6);
}
/* The label centres on the gold face, above the lip (goldLabelLift = 3pt). */
.btn-gold > span { position: relative; top: calc(-3px * var(--k)); margin: calc(-6px * var(--k)) 0; }
.btn-lg { --k: 1.15; }
.btn-lg .cta-sub { display: block; font-size: 13px; font-weight: 800; letter-spacing: 0.01em; margin-top: 1px; }
.btn-lg .cta-dash { display: none; }
@media (min-width: 760px) {
  .btn-lg .cta-sub { display: inline; font-size: inherit; font-weight: inherit; margin: 0; }
  .btn-lg .cta-dash { display: inline; }
}
@media (min-width: 760px) { .btn-lg { --k: 1.3; } }

/* Cream clay button (SimButton .clay): cream face over a tan lip. */
.btn-clay {
  padding: 10px 22px 12px;
  border-radius: var(--r-chip);
  color: var(--ink);
  background: linear-gradient(#ffffff, #fff1e4);
  box-shadow: inset 0 0 0 1.5px var(--clay-stroke), 0 4px 0 var(--clay-edge), 0 8px 12px rgba(40, 16, 24, 0.28);
}

@media (hover: hover) {
  .btn:hover { transform: translateY(-2px); filter: drop-shadow(0 7px 8px rgba(60, 24, 6, 0.38)) brightness(1.04); }
  .btn-clay:hover { filter: brightness(1.03); }
}
.btn:active { transform: translateY(3px) scale(0.98, 0.96); }
.btn-clay:active { box-shadow: inset 0 0 0 1.5px var(--clay-stroke), 0 1px 0 var(--clay-edge), 0 3px 6px rgba(40, 16, 24, 0.25); }

/* Gem reward pill (hud_gem_pill) with the in-game gem. */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 36px;
  border-style: solid;
  border-width: 17px 21px;
  border-image-source: url("/assets/img/game/gem-pill.png");
  border-image-source: image-set(url("/assets/img/game/gem-pill.webp") type("image/webp"), url("/assets/img/game/gem-pill.png") type("image/png"));
  border-image-slice: 34 42 fill;
  color: var(--ink);
  font-weight: 900;
  font-size: 15px;
  white-space: nowrap;
}
.pill > * { margin: -17px 0; }
.pill img { width: 22px; height: 22px; margin-left: -10px; }
.pill b { margin-right: -6px; font-weight: 900; }

/* ------------------------------------------------------------------ */
/* Header: the wooden toy shelf (tab_tray_wood) with cream clay tiles   */
/* ------------------------------------------------------------------ */

.shelf-bar {
  padding-top: 12px;
}
.shelf-bar .wrap { padding: 0 calc(var(--gutter) - 6px); }
.shelf-tray {
  border-style: solid;
  border-width: 28px 26px 14px;
  border-image-source: url("/assets/img/game/tray-wood.png");
  border-image-source: image-set(url("/assets/img/game/tray-wood.webp") type("image/webp"), url("/assets/img/game/tray-wood.png") type("image/png"));
  border-image-slice: 83 74 40 74 fill;
  filter: drop-shadow(0 8px 10px rgba(20, 8, 10, 0.45));
}
.shelf-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 10px;
  margin: -16px 0 -2px;     /* tiles stand on the shelf's top face */
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px 4px 4px;
  border-radius: var(--r-chip);
  background: linear-gradient(#ffffff, #fff1e4);
  box-shadow: inset 0 0 0 1.5px var(--clay-stroke), 0 3px 0 var(--clay-edge);
  text-decoration: none;
  color: var(--ink);
  font-weight: 900;
  font-size: 18px;
  letter-spacing: 0.01em;
}
.brand img { width: 34px; height: 34px; border-radius: 10px; }

.shelf-row > nav { order: 3; flex-basis: 100%; }
.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin: 0;
  padding: 0;
  list-style: none;
}
.nav a {
  display: inline-block;
  padding: 5px 11px 6px;
  border-radius: 12px;
  background: linear-gradient(#ffffff, #fff1e4);
  box-shadow: inset 0 0 0 1.5px var(--clay-stroke), 0 3px 0 var(--clay-edge);
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
  transition: transform var(--press) var(--ease-out);
}
.nav a:active { transform: translateY(2px); box-shadow: inset 0 0 0 1.5px var(--clay-stroke), 0 1px 0 var(--clay-edge); }
.nav a[aria-current="page"] {
  background: linear-gradient(#ffe29a, #f2b04e);
  box-shadow: inset 0 0 0 1.5px #e6a548, 0 3px 0 #b97a28;
  color: var(--gold-label);
}
.shelf-tray .btn-gold { --k: 0.9; }

@media (max-width: 599px) {
  /* Phones: the shelf holds the three play links; Support and Privacy
     live in the footer shelf (and stay when they are the current page). */
  .shelf-bar .nav li.sec:not(:has([aria-current])) { display: none; }
  .nav { gap: 6px; }
  .nav a { font-size: 13.5px; padding: 5px 9px 6px; }
}
@media (min-width: 900px) {
  .shelf-row > nav { order: 0; flex-basis: auto; }
  .shelf-row { flex-wrap: nowrap; }
}

/* ------------------------------------------------------------------ */
/* Sections                                                            */
/* ------------------------------------------------------------------ */

main { display: block; }

.section { padding-top: 64px; }
.section:last-child { padding-bottom: 32px; }

/* A board: a cream panel with its plank sign hanging over the top edge. */
.board { padding: 46px 6px 6px; text-align: left; }
.board-head {
  position: absolute;
  left: 50%;
  top: calc(-1 * var(--panel-w) - 28px);
  transform: translateX(-50%);
  width: max-content;
  max-width: calc(100% + 2 * var(--panel-w));
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 2;
}
.board-head .tag { margin-top: -6px; position: relative; }
.board-head.has-tag + * { margin-top: 10px; }
.board-lede {
  max-width: 62ch;
  margin: 0 auto;
  text-align: center;
  color: var(--ink-soft);
}

@media (min-width: 760px) {
  .plank { --plank-fs: 18px; }
  .plank.plank-lg { --k: 1.2; }
  .board { padding: 56px 18px 18px; }
  .board-head { top: calc(-1 * var(--panel-w) - 34px); }
}

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

.hero { padding-top: 24px; }
.hero-grid {
  display: grid;
  gap: 0;
  align-items: end;
}

/* The display shelf: figures standing on the collection plank. */
.stage {
  position: relative;
  z-index: 2;
  padding: 8px 0 0;
  margin-bottom: -26px;     /* the shelf rests on the panel's top edge */
}
.stage::before {           /* lantern pool behind the shelf */
  content: "";
  position: absolute;
  inset: 4% 6% 12%;
  background: radial-gradient(closest-side, rgba(255, 214, 140, 0.55), rgba(255, 170, 90, 0.18) 60%, transparent);
  filter: blur(6px);
  z-index: -1;
}
.figures {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 0;
  padding: 0 4%;
  position: relative;
  z-index: 1;
}
.fig {
  width: 21%;
  margin: 0 -1.5%;
  transform-origin: 50% 100%;
  filter: drop-shadow(0 6px 4px rgba(40, 18, 10, 0.35));
  animation: pop-in 520ms var(--ease-pop) both, bob 3.6s ease-in-out infinite;
  animation-delay: calc(var(--i) * 90ms), calc(600ms + var(--i) * 280ms);
}
.fig img { width: 100%; height: auto; }
.fig.small { width: 18%; }
.fig.box {
  width: 30%;
  margin: 0 0 -2%;
  z-index: 2;
  animation: pop-in 560ms var(--ease-pop) both, shake 4.2s ease-in-out 1.4s infinite;
}
.shelf-plank {
  position: relative;
  width: 100%;
  margin-top: -5%;
  filter: drop-shadow(0 10px 10px rgba(30, 12, 8, 0.45));
}
.shelf-plank img { width: 100%; height: auto; }

@media (hover: hover) {
  .fig:not(.box):hover { animation: hop 520ms var(--ease-out); }
}

.hero-card {
  position: relative;
  z-index: 1;
  padding: 26px 4px 4px;
  text-align: center;
}
.hero-card .tag { margin-bottom: 14px; }
.hero h1 {
  font-size: clamp(36px, 10vw, 60px);
  color: var(--ink);
  letter-spacing: -0.02em;
}
.hero h1 em {
  display: block;
  font-style: normal;
  color: var(--amber-text);
}
.subhead {
  margin: 14px auto 0;
  max-width: 34ch;
  font-size: 18px;
  color: var(--ink-soft);
}
.hero-cta { margin-top: 22px; }
.hero-cta .btn { width: 100%; max-width: 420px; }
.fineprint {
  margin: 12px auto 0;
  max-width: 40ch;
  font-size: 14px;
  color: var(--ink-soft);
}
.promises {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}
.promises li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px 6px 8px;
  border-radius: 12px;
  background: #fbe3c6;
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.7), inset 0 -2px 0 rgba(201, 162, 122, 0.55);
  font-size: 14px;
  font-weight: 800;
  color: var(--ink);
}
.promises img { width: 20px; height: 20px; }

@media (min-width: 900px) {
  .hero { padding-top: 40px; }
  .hero-grid {
    grid-template-columns: 1fr 1.08fr;
    gap: 4px;
    align-items: center;
  }
  .stage { order: 2; margin: 0 -12px 0 0; padding-top: 0; }
  .fig { width: 23%; }
  .fig.small { width: 20%; }
  .fig.box { width: 32%; }
  .hero-card { padding: 30px 22px 22px; text-align: left; }
  .hero h1 { font-size: 54px; }
  .subhead, .fineprint { margin-left: 0; }
  .promises { justify-content: flex-start; }
  .hero-cta .btn { width: auto; }
}

/* Store buttons: one per platform, cream clay so the gold CTA stays the hero. */
.store-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 14px;
}
.store-btn { gap: 10px; min-width: 168px; padding: 8px 18px 10px; text-align: left; }
.store-btn > span { display: flex; flex-direction: column; font-size: 17px; line-height: 1.1; }
.store-btn small { font-size: 11px; font-weight: 800; letter-spacing: 0.02em; color: var(--ink-soft); }
.store-ico { width: 24px; height: 24px; flex: none; }
.hero-cta .store-btn { width: auto; max-width: none; }
@media (min-width: 900px) { .hero-card .store-row { justify-content: flex-start; } }

/* ------------------------------------------------------------------ */
/* Starter Path board                                                  */
/* ------------------------------------------------------------------ */

.path {
  --node: 50px;
  position: relative;
  list-style: none;
  margin: 22px 0 0;
  padding: 0;
  counter-reset: none;
}
/* The dashed trail the nodes sit on. */
.path::before {
  content: "";
  position: absolute;
  left: calc(var(--node) / 2 - 3px);
  top: 20px;
  bottom: 60px;
  border-left: 6px dashed #d9b48a;
}
.step {
  position: relative;
  display: grid;
  grid-template-columns: var(--node) 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 7px 0;
}
.node {
  position: relative;
  width: var(--node);
  height: var(--node);
  display: grid;
  place-items: center;
  background: url("/assets/img/game/node-coin.png") center / contain no-repeat;
  background: image-set(url("/assets/img/game/node-coin.webp") type("image/webp"), url("/assets/img/game/node-coin.png") type("image/png")) center / contain no-repeat;
  filter: drop-shadow(0 3px 2px rgba(122, 74, 31, 0.35));
  color: var(--gold-label);
  font-size: 21px;
  font-weight: 900;
  line-height: 1;
}
.node span { position: relative; top: -2px; }
.step-title {
  font-weight: 800;
  font-size: 16px;
  line-height: 1.25;
  color: var(--ink);
}
.step .pill { justify-self: end; }

.finale {
  position: relative;
  display: grid;
  grid-template-columns: 96px 1fr;
  align-items: center;
  gap: 12px;
  margin-top: 10px;
  padding: 12px 14px 12px 6px;
  border-radius: var(--r-tile);
  background: linear-gradient(#fff7e0, #ffe6b3);
  box-shadow: inset 0 0 0 2px #f2c46a, 0 4px 0 #d79a3e, 0 10px 16px rgba(122, 74, 31, 0.22);
}
.finale img {
  width: 96px;
  height: auto;
  margin: -24px 0 -8px;
  filter: drop-shadow(0 6px 6px rgba(122, 74, 31, 0.35));
  animation: shake 4.2s ease-in-out 2s infinite;
  transform-origin: 50% 90%;
}
.finale strong {
  display: block;
  font-size: 19px;
  font-weight: 900;
  line-height: 1.2;
}
.finale .x2 {
  display: inline-block;
  padding: 0 8px 1px;
  margin-right: 2px;
  border-radius: 8px;
  background: var(--orange);
  color: #2a1204;
  box-shadow: 0 2px 0 #a8461a;
}
.finale p { font-size: 15px; color: var(--ink-soft); margin-top: 3px; }

@media (min-width: 900px) {
  /* Sideways board: seven coins on one trail, the chest at the end. */
  .path {
    --node: 60px;
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 0 6px;
    margin-top: 30px;
  }
  .path::before {
    left: 6%;
    right: 6%;
    top: calc(var(--node) / 2 + 4px);
    bottom: auto;
    border-left: 0;
    border-top: 6px dashed #d9b48a;
  }
  .step {
    grid-template-columns: 1fr;
    grid-template-rows: var(--node) auto 1fr auto;
    justify-items: center;
    text-align: center;
    gap: 8px;
    padding: 4px 0 0;
  }
  .step:nth-child(even) .node { transform: translateY(0); }
  .step-title { font-size: 15px; padding: 0 2px; }
  .step .pill { justify-self: center; grid-row: 4; }
  .node { font-size: 24px; }
  .finale {
    grid-template-columns: 120px 1fr auto;
    margin: 26px auto 0;
    max-width: 720px;
    padding: 14px 24px 14px 10px;
  }
  .finale img { width: 120px; margin: -34px 0 -12px; }
  .finale strong { font-size: 22px; }
}

/* ------------------------------------------------------------------ */
/* Clay tiles (new-in-update cards and features)                       */
/* ------------------------------------------------------------------ */

.tiles {
  display: grid;
  gap: 16px;
  margin-top: 26px;
}
.tile {
  position: relative;
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 4px 14px;
  align-items: start;
  padding: 16px 16px 18px;
  border-radius: var(--r-tile);
  background: linear-gradient(#ffffff, #fff4e6);
  box-shadow:
    inset 0 0 0 2px var(--clay-stroke),
    inset 0 -3px 0 rgba(201, 162, 122, 0.25),
    0 5px 0 var(--clay-edge),
    0 12px 18px rgba(80, 40, 30, 0.18);
  transition: transform 160ms var(--ease-out), box-shadow 160ms var(--ease-out);
}
.tile-art {
  grid-row: span 2;
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: radial-gradient(circle at 50% 40%, #fff, #fde8cd);
  box-shadow: inset 0 0 0 1.5px var(--clay-stroke), inset 0 -3px 0 rgba(201, 162, 122, 0.35);
}
.tile-art img { width: 56px; height: 56px; object-fit: contain; filter: drop-shadow(0 3px 2px rgba(80, 40, 20, 0.25)); }
.tile h3 { font-size: 19px; align-self: center; padding-top: 2px; }
.tile p { font-size: 15.5px; color: var(--ink-soft); }
.text-link { color: var(--amber-text); font-weight: 900; text-decoration-thickness: 2px; text-underline-offset: 2px; }

@media (hover: hover) {
  .tile:hover {
    transform: translateY(-3px);
    box-shadow:
      inset 0 0 0 2px var(--clay-stroke),
      inset 0 -3px 0 rgba(201, 162, 122, 0.25),
      0 8px 0 var(--clay-edge),
      0 16px 22px rgba(80, 40, 30, 0.2);
  }
}
.tile:active {
  transform: translateY(3px) scale(0.99, 0.98);
  box-shadow: inset 0 0 0 2px var(--clay-stroke), 0 2px 0 var(--clay-edge), 0 6px 10px rgba(80, 40, 30, 0.16);
}

/* The What's New board icon: a tiny version of the game's own plank sign. */
.mini-plank {
  --k: 0.62;
  font-size: 0;
}
.mini-plank > span { font-size: 12px !important; letter-spacing: 0.06em; }

@media (min-width: 700px) {
  .tiles { grid-template-columns: 1fr 1fr; gap: 20px; }
}
@media (min-width: 1000px) {
  .tiles.four { grid-template-columns: repeat(4, 1fr); }
  .tiles.four { margin-top: 56px; }
  .tiles.four .tile { grid-template-columns: 1fr; grid-template-rows: auto 1fr; padding-top: 48px; }
  .tiles.four .tile-art { position: absolute; top: -34px; left: 16px; width: 72px; height: 72px; }
  .tiles.four .tile h3 { align-self: start; padding-top: 0; }
  .tiles.four .tile-art img { width: 62px; height: 62px; }
}

/* ------------------------------------------------------------------ */
/* AERENE showcase                                                     */
/* ------------------------------------------------------------------ */

.aerene .panel { padding: 0; }
.aerene-inner {
  display: grid;
  gap: 18px;
  padding: 46px 4px 6px;
}
.aerene-stall {
  width: 78%;
  max-width: 340px;
  margin: 0 auto;
  filter: drop-shadow(0 12px 14px rgba(80, 40, 90, 0.3));
}
.aerene-copy { text-align: center; }
.aerene-copy p { color: var(--ink-soft); max-width: 44ch; margin: 0 auto; }
.aerene-copy .btn { margin-top: 18px; }

/* The 12 butterflies on a lilac display case. */
.case {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px 4px;
  margin: 18px 0 0;
  padding: 14px 8px 10px;
  list-style: none;
  border-radius: var(--r-tile);
  background:
    radial-gradient(120% 90% at 50% 0%, rgba(255, 255, 255, 0.75), transparent 60%),
    linear-gradient(#f6e6fb, #ead6f6);
  box-shadow: inset 0 0 0 2px #dcc3ee, inset 0 -4px 0 rgba(185, 154, 240, 0.35), 0 4px 0 #c6a8e4;
}
.case li { text-align: center; }
.case img {
  width: 100%;
  max-width: 96px;
  aspect-ratio: 5 / 6;
  object-fit: contain;
  object-position: 50% 100%;
  margin: 0 auto;
  transform-origin: 50% 100%;
  transition: transform 220ms var(--ease-pop);
  filter: drop-shadow(0 4px 3px rgba(80, 40, 90, 0.28));
}
.case span {
  display: block;
  font-size: 12px;
  font-weight: 800;
  color: #4e2f63;
  line-height: 1.2;
  margin-top: 2px;
}
@media (hover: hover) {
  .case li:hover img { transform: translateY(-6px) rotate(-3deg) scale(1.06); }
}

@media (min-width: 900px) {
  .aerene-inner {
    grid-template-columns: 0.8fr 1.2fr;
    align-items: center;
    gap: 28px;
    padding: 58px 22px 22px;
  }
  .aerene-stall { width: 100%; max-width: 380px; }
  .aerene-copy { text-align: left; }
  .aerene-copy p { margin: 0; }
  .case { grid-template-columns: repeat(6, 1fr); }
}

/* ------------------------------------------------------------------ */
/* Community                                                           */
/* ------------------------------------------------------------------ */

.community .board { text-align: center; }
.community .actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 14px 16px;
  margin-top: 20px;
}
.peek {
  position: absolute;
  bottom: calc(-1 * var(--panel-w) + 2px);
  width: 76px;
  filter: drop-shadow(0 6px 5px rgba(40, 18, 10, 0.35));
  pointer-events: none;
}
.peek.left { left: calc(-1 * var(--panel-w) + 6px); transform: rotate(-6deg); }
.peek.right { right: calc(-1 * var(--panel-w) + 6px); transform: rotate(5deg); }
.community .board { padding-bottom: 54px; }
@media (min-width: 760px) {
  .peek { width: 110px; }
  .community .board { padding-bottom: 26px; padding-left: 100px; padding-right: 100px; }
}

/* ------------------------------------------------------------------ */
/* Footer: the shelf again, with cream tiles                           */
/* ------------------------------------------------------------------ */

.site-footer { padding: 56px 0 28px; }
.site-footer .shelf-row { justify-content: center; }
.site-footer .nav { flex-basis: 100%; }
.copy {
  margin-top: 16px;
  text-align: center;
  font-size: 14px;
  color: #f3e2cf;
  text-shadow: 0 1px 2px rgba(20, 8, 10, 0.8);
}

/* ------------------------------------------------------------------ */
/* Subpages (privacy, support)                                         */
/* ------------------------------------------------------------------ */

.doc { padding-top: 64px; }
.doc .board { padding-top: 40px; }
.page-hero { text-align: center; }
.page-hero .meta {
  color: var(--ink-soft);
  font-size: 15px;
  font-weight: 800;
}
.content {
  max-width: 70ch;
  margin: 0 auto;
  padding: 8px 4px 8px;
  font-size: 16.5px;
}
.content h2 {
  font-size: 22px;
  margin: 30px 0 10px;
  padding-bottom: 6px;
  border-bottom: 3px dashed #e3c7a2;
}
.content h3 { font-size: 18px; margin: 0 0 6px; }
.content p, .content ul { margin: 0 0 12px; color: var(--ink); }
.content ul { padding-left: 22px; }
.content li { margin-bottom: 8px; }
.content a { color: var(--amber-text); font-weight: 800; text-decoration-thickness: 2px; text-underline-offset: 2px; word-break: break-word; }
.content strong { font-weight: 900; }
.callout {
  margin: 14px 0 18px;
  padding: 14px 16px;
  border-radius: 18px;
  background: #fde6c6;
  box-shadow: inset 0 0 0 2px #f0cf9f, 0 3px 0 #d9ad73;
}
.contact-card {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 10px 0 8px;
  padding: 14px 16px;
  border-radius: var(--r-tile);
  background: linear-gradient(#fff, #fff4e6);
  box-shadow: inset 0 0 0 2px var(--clay-stroke), 0 5px 0 var(--clay-edge);
}
.contact-card img { width: 56px; height: 56px; flex: none; }
.contact-card a { font-size: 17px; }
.contact-card .sub { margin: 2px 0 0; font-size: 14px; color: var(--ink-soft); }
.faq-item {
  margin: 0 0 14px;
  padding: 14px 16px 4px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.55);
  box-shadow: inset 0 0 0 2px #f1dcc0;
}

/* ------------------------------------------------------------------ */
/* Motion                                                              */
/* ------------------------------------------------------------------ */

@keyframes pop-in {
  from { opacity: 0; transform: translateY(18px) scale(0.7); }
  to { opacity: 1; transform: none; }
}
@keyframes bob {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -4px; }
}
@keyframes hop {
  0% { transform: none; }
  35% { transform: translateY(-14px) scale(0.96, 1.05); }
  70% { transform: translateY(0) scale(1.06, 0.94); }
  100% { transform: none; }
}
/* The blind-box shake from the unboxing: a quick rattle, then rest. */
@keyframes shake {
  0%, 72%, 100% { rotate: 0deg; }
  76% { rotate: -7deg; }
  80% { rotate: 6deg; }
  84% { rotate: -5deg; }
  88% { rotate: 4deg; }
  92% { rotate: -2deg; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  html { scroll-behavior: auto; }
}

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

/* Home FAQ */
.faq-list { max-width: 760px; margin: 0 auto; text-align: left; }
.faq-list .faq-item h3 { margin: 0 0 6px; font-size: 18px; }
.faq-list .faq-item p { margin: 0 0 10px; color: var(--ink-soft); }
