/* app.css — layout, the two worlds, markers, cards, the house, and moments. */

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

html, body { height: 100%; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(120% 120% at 50% -10%, var(--paper) 0%, var(--paper-2) 55%, var(--paper-3) 100%);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow: hidden;
}

button { font-family: inherit; color: inherit; cursor: pointer; }

:focus-visible {
  outline: 3px solid var(--clay);
  outline-offset: 3px;
  border-radius: 6px;
}

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

/* ------------------------------------------------------------------ worlds */
.world {
  position: fixed;
  inset: 0;
  overflow: hidden;
  transition: opacity var(--dur-slow) var(--ease),
              transform var(--dur-slow) var(--ease);
  will-change: opacity, transform;
}

body.view-globe #house-world,
body.view-house #globe-world { pointer-events: none; }

body.view-globe #globe-world { opacity: 1; transform: none; }
body.view-globe #house-world { opacity: 0; transform: scale(1.06); }

body.view-house #house-world { opacity: 1; transform: none; }
body.view-house #globe-world { opacity: 0; transform: scale(0.9); }

.world[hidden] { display: none; }

/* ------------------------------------------------------------------- globe */
#globe-world {
  display: flex;
  align-items: center;
  justify-content: center;
}

#globe-stage {
  position: relative;
  width: 96vmin;
  height: 96vmin;
  max-width: 1040px;
  max-height: 1040px;
  touch-action: none; /* we handle drag */
}

#globe-stage canvas { width: 100% !important; height: 100% !important; display: block; cursor: grab; }
#globe-stage.dragging canvas { cursor: grabbing; }

/* markers (appended into cobe's wrapper). Anchored by the dot's CENTER. */
.marker {
  position: absolute;
  width: 16px; height: 16px;
  transform: translate(-50%, -50%);
  background: none;
  border: 0;
  padding: 0;
  z-index: 3;
  transition: opacity 260ms var(--ease);
}
.marker.is-back { opacity: 0; pointer-events: none; }

.marker__dot {
  position: absolute; inset: 0;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--clay);
  border: 2px solid var(--paper);
  box-shadow: 0 2px 6px rgba(74, 55, 41, 0.4);
}
.marker__dot::after {
  content: "";
  position: absolute; inset: -4px;
  border-radius: 50%;
  border: 2px solid var(--clay);
  opacity: 0;
  animation: pulse 2600ms var(--ease) infinite;
}
.marker:nth-of-type(2n) .marker__dot::after { animation-delay: 800ms; }
.marker:nth-of-type(3n) .marker__dot::after { animation-delay: 1500ms; }

.marker__thumb {
  position: absolute;
  bottom: calc(100% + 7px);
  left: 50%;
  width: 48px; height: 48px;
  margin-left: -24px;
  border-radius: 10px;
  object-fit: cover;
  border: 3px solid var(--paper);
  box-shadow: var(--shadow-soft);
  background: var(--sand);
  transform-origin: bottom center;
  transition: transform 240ms var(--ease-out);
}
.marker:hover .marker__thumb,
.marker:focus-visible .marker__thumb { transform: scale(1.14) translateY(-2px); }

.marker__label {
  position: absolute;
  top: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.5px;
  color: var(--ink);
  background: rgba(244, 236, 219, 0.86);
  padding: 2px 8px;
  border-radius: 100px;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 200ms;
  box-shadow: 0 2px 8px rgba(74, 55, 41, 0.15);
  pointer-events: none;
}
.marker:hover .marker__label,
.marker:focus-visible .marker__label { opacity: 1; }

/* home pin */
.marker.marker--home { width: 42px; height: 42px; }
.marker.marker--home .marker__icon {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  background: var(--sage);
  color: var(--paper);
  border: 3px solid var(--paper);
  border-radius: 12px;
  box-shadow: var(--shadow-soft);
  transition: transform 240ms var(--ease-out);
}
.marker.marker--home:hover .marker__icon,
.marker.marker--home:focus-visible .marker__icon { transform: scale(1.1); }
.marker.marker--home .marker__label { opacity: 1; background: rgba(147,160,122,0.22); }

/* next (Japan) pin — outlined, glowing, dotted */
.marker.marker--next { width: 24px; height: 24px; }
.marker.marker--next .marker__ring {
  position: absolute; inset: 0;
  border-radius: 50%;
  border: 2px dashed var(--clay);
  background: radial-gradient(circle, rgba(231,210,168,0.55), transparent 70%);
  box-shadow: 0 0 14px 3px rgba(231, 210, 168, 0.6);
  animation: glow 2800ms var(--ease) infinite;
}
.marker.marker--next .marker__label {
  opacity: 1;
  font-style: italic;
  background: rgba(202, 175, 130, 0.22);
  color: var(--ink-soft);
}

@keyframes pulse {
  0%   { opacity: 0.6; transform: scale(0.6); }
  70%  { opacity: 0; transform: scale(2.1); }
  100% { opacity: 0; transform: scale(2.1); }
}
@keyframes glow {
  0%, 100% { box-shadow: 0 0 10px 2px rgba(231,210,168,0.45); }
  50%      { box-shadow: 0 0 18px 5px rgba(231,210,168,0.75); }
}

/* intro overlay */
.intro {
  position: absolute;
  top: clamp(18px, 5vh, 54px);
  left: 0; right: 0;
  text-align: center;
  pointer-events: none;
  padding: 0 20px;
  z-index: 4;
  transition: opacity var(--dur) var(--ease);
}
.intro h1 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(28px, 6vw, 50px);
  margin: 0 0 6px;
  color: var(--ink);
  letter-spacing: 0.5px;
}
.intro p { margin: 0; color: var(--ink-soft); font-size: clamp(13px, 2.6vw, 17px); }
.intro .hint {
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.5px;
  color: var(--ink-faint);
}
body.card-open .intro { opacity: 0; }

/* place card */
.card {
  position: absolute;
  z-index: 6;
  background: var(--paper);
  box-shadow: var(--shadow-lift);
  border: 1px solid var(--line);
  overflow: hidden;
  transition: transform var(--dur) var(--ease-out), opacity var(--dur) var(--ease);
}
.card[hidden] { display: none; }

@media (min-width: 721px) {
  .card {
    top: 50%; right: 28px;
    width: min(380px, 40vw);
    transform: translate(0, -50%);
    border-radius: var(--radius-lg);
  }
  .card.enter-start { transform: translate(40px, -50%); opacity: 0; }
}
@media (max-width: 720px) {
  .card {
    left: 0; right: 0; bottom: 0;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    max-height: 78vh;
  }
  .card.enter-start { transform: translateY(100%); opacity: 0.6; }
}

.card__media { position: relative; background: var(--sand); aspect-ratio: 4 / 3; }
.card__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card__media video { width: 100%; height: 100%; object-fit: contain; display: block; background: #0c0a08; }
.card__close {
  position: absolute; top: 10px; right: 10px;
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(244, 236, 219, 0.92); border: 0;
  font-size: 18px; line-height: 1; color: var(--ink);
  display: grid; place-items: center;
  box-shadow: 0 2px 8px rgba(74,55,41,0.2);
}
.card__body { padding: 16px 18px 20px; }
.card__name {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 1.5px;
  text-transform: uppercase; color: var(--clay-deep); margin: 0 0 6px;
}
.card__caption {
  font-family: var(--font-display); font-size: clamp(17px, 2.4vw, 21px);
  line-height: 1.4; margin: 0; color: var(--ink);
}
.card__gallery {
  display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap;
}
.card__gallery button {
  position: relative;
  width: 52px; height: 52px; border-radius: 8px; overflow: hidden;
  border: 2px solid transparent; background: var(--sand); padding: 0;
}
.card__gallery button[aria-current="true"] { border-color: var(--clay); }
.card__gallery img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumb-play {
  position: absolute; inset: 0; display: grid; place-items: center;
  font-size: 13px; color: #fff; pointer-events: none;
  text-shadow: 0 1px 4px rgba(0,0,0,0.7);
}

/* ------------------------------------------------------------------- house */
#house-world {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  /* full-bleed paper that matches the drawing, so the plan reads edge-to-edge */
  background: #f3ecda;
}

/* back-to-map button — fixed top-left, takes her back out to the globe */
.house-back {
  position: absolute; top: max(16px, env(safe-area-inset-top)); left: 16px; z-index: 5;
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--font-mono); font-size: 12.5px; letter-spacing: 0.5px;
  color: var(--ink); background: rgba(244, 236, 219, 0.92);
  border: 1px solid var(--line); border-radius: 100px;
  padding: 8px 15px; box-shadow: var(--shadow-soft); cursor: pointer;
  transition: background 180ms var(--ease), transform 180ms var(--ease);
}
.house-back:hover { background: var(--paper); transform: translateY(-1px); }
.house-back span { font-size: 14px; line-height: 1; }

#house-stage {
  position: relative;
  /* fill the screen: largest box that keeps the sheet's aspect ratio */
  width: min(100vw, calc(100dvh * 660 / 470));
  max-width: 100vw;
  aspect-ratio: 660 / 470;
}
#house-stage .floorplan {
  width: 100%; height: 100%; object-fit: contain; display: block;
}
#house-stage.duotone .floorplan {
  filter: drop-shadow(0 16px 40px rgba(74, 55, 41, 0.22)) sepia(0.18) saturate(0.9) hue-rotate(-8deg);
}

/* hotspots — drafted registration marks (ringed dot + crosshair pulse) */
.hotspot {
  position: absolute;
  transform: translate(-50%, -50%);
  background: none; border: 0; padding: 0;
  z-index: 3;
  display: grid; place-items: center;
}
.hotspot__dot {
  --mk: var(--clay);              /* per-marker hue, set by .hotspot--* below */
  width: 17px; height: 17px; border-radius: 50%;
  background:
    radial-gradient(circle at 33% 28%, rgba(255,255,255,0.7), rgba(255,255,255,0) 58%),
    var(--mk);
  border: 2px solid var(--paper);
  box-shadow:
    0 2px 8px rgba(74,55,41,0.32),
    0 0 11px 1px color-mix(in srgb, var(--mk) 60%, transparent),
    0 0 0 1px rgba(74,55,41,0.10);
  position: relative;
  transition: transform 180ms var(--ease), box-shadow 180ms var(--ease);
}
.hotspot__dot::before {
  /* steady glow halo in the marker's hue */
  content: ""; position: absolute; inset: -4px; border-radius: 50%;
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--mk) 38%, transparent);
}
.hotspot__dot::after {
  /* expanding ripple, same hue */
  content: ""; position: absolute; inset: -4px; border-radius: 50%;
  border: 2px solid var(--mk); opacity: 0;
  animation: pulse 2600ms var(--ease) infinite;
}
.hotspot:nth-of-type(2n) .hotspot__dot::after { animation-delay: 700ms; }
.hotspot:nth-of-type(3n) .hotspot__dot::after { animation-delay: 1400ms; }
.hotspot:hover .hotspot__dot,
.hotspot:focus-visible .hotspot__dot {
  transform: scale(1.22);
  box-shadow: 0 3px 11px rgba(74,55,41,0.36), 0 0 0 1px rgba(74,55,41,0.12);
}

/* each tap-point gets its own bright earth-tone hue */
.hotspot--sims      .hotspot__dot { --mk: #c79a4e; }   /* warm gold-tan */
.hotspot--wyr       .hotspot__dot { --mk: #b87b42; }   /* bright clay */
.hotspot--video     .hotspot__dot { --mk: #a3bb52; }   /* bright olive */
.hotspot--fruit     .hotspot__dot { --mk: #84c45f; }   /* leaf green */
.hotspot--coffee    .hotspot__dot { --mk: #9a6736; }   /* lifted coffee brown */
.hotspot--chocolate .hotspot__dot { --mk: #cda05c; }   /* light caramel */
.hotspot--us        .hotspot__dot { --mk: #cf9a44; }   /* warm amber-gold */
.hotspot__label {
  position: absolute; top: calc(100% + 6px); left: 50%; transform: translateX(-50%);
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.5px;
  color: var(--ink); background: rgba(244,236,219,0.92);
  padding: 2px 8px; border-radius: 100px; white-space: nowrap;
  opacity: 0; transition: opacity 180ms; box-shadow: 0 2px 6px rgba(74,55,41,0.18);
  pointer-events: none;
}
.hotspot:hover .hotspot__label,
.hotspot:focus-visible .hotspot__label { opacity: 1; }

/* ----------------------------------------------------------------- moments */
.moment {
  position: fixed; inset: 0; z-index: 20;
  display: grid; place-items: center;
  padding: 20px;
  background: rgba(40, 28, 18, 0.42);
  backdrop-filter: blur(3px);
  transition: opacity var(--dur) var(--ease);
}
.moment[hidden] { display: none; }
.moment.enter-start { opacity: 0; }

.moment__panel {
  position: relative;
  width: min(520px, 94vw);
  max-height: 88vh; overflow: auto;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lift);
  padding: 28px 26px 30px;
  transform: translateY(10px) scale(0.98);
  transition: transform var(--dur) var(--ease-out);
}
.moment:not(.enter-start) .moment__panel { transform: none; }
.moment__panel--wide { width: min(760px, 95vw); }
.moment__panel--collage { width: min(1100px, 97vw); max-height: 94vh; padding: 20px 22px 22px; }
.moment__close {
  position: absolute; top: 12px; right: 12px;
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--paper-2); border: 0; font-size: 18px; color: var(--ink);
  display: grid; place-items: center;
}
.moment__kicker {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 1.5px;
  text-transform: uppercase; color: var(--clay-deep); margin: 0 0 8px;
}
.moment__text {
  font-family: var(--font-display); font-size: clamp(19px, 3vw, 25px);
  line-height: 1.4; margin: 0; color: var(--ink);
}

/* fruit moment — you, quoting her refusal */
.fruit-stage { text-align: center; padding: 6px 0 2px; }
.fruit-emoji { font-size: 64px; line-height: 1; display: inline-block; }
.fruit-emoji.is-shove { animation: shove 460ms var(--ease); }
.fruit-quote {
  position: relative; font-family: var(--font-display); font-style: italic;
  font-size: clamp(28px, 6.4vw, 48px); line-height: 1.18;
  color: var(--clay-deep); margin: 18px auto 2px; max-width: 12ch;
  min-height: 1.2em; transition: opacity 180ms var(--ease);
}
.fruit-quote::before, .fruit-quote::after {
  font-family: var(--font-display); font-style: normal;
  color: var(--clay-soft); opacity: 0.5; font-size: 1.1em; line-height: 0;
}
.fruit-quote::before { content: "\201C"; }
.fruit-quote::after  { content: "\201D"; }
.fruit-cite {
  display: block; font-family: var(--font-mono); font-style: normal;
  font-size: 12px; letter-spacing: 1px; color: var(--ink-faint);
  text-transform: lowercase; margin-top: 6px;
}
.fruit-tally {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.5px;
  color: var(--ink-faint); min-height: 1.2em; margin: 12px 0 0;
}
.fruit-again {
  margin-top: 8px; font-family: var(--font-mono); font-size: 12px;
  background: var(--paper-2); border: 1px solid var(--line);
  padding: 8px 16px; border-radius: 100px;
}

/* sims screen — framed as her iPad */
.ipad-device {
  position: relative;
  background: linear-gradient(150deg, #3a342c, #221d17);
  border-radius: 26px; padding: 16px 22px;
  box-shadow: var(--shadow-lift), inset 0 0 0 1px rgba(255,255,255,0.05);
}
.ipad-cam {
  position: absolute; top: 50%; left: 14px; transform: translateY(-50%);
  width: 6px; height: 6px; border-radius: 50%;
  background: #0c0a08; box-shadow: inset 0 0 0 1px rgba(255,255,255,0.08);
}
.ipad-screen {
  border-radius: 14px; overflow: hidden; background: #15303a;
  box-shadow: inset 0 0 0 2px rgba(0,0,0,0.4);
  aspect-ratio: 4 / 3; display: grid; place-items: center;
}
.sims {
  width: 100%; height: 100%; box-sizing: border-box;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: linear-gradient(160deg, #2a6f6a, #1c4e63);
  padding: 22px; color: #eaf6f2; text-align: center;
}
.sims__plumbob {
  width: 0; height: 0; margin: 6px auto 14px;
  border-left: 18px solid transparent; border-right: 18px solid transparent;
  border-bottom: 26px solid #7fd46a;
  filter: drop-shadow(0 0 10px rgba(127,212,106,0.8));
  position: relative; animation: bob 2200ms var(--ease) infinite;
}
.sims__plumbob::after {
  content: ""; position: absolute; top: 26px; left: -18px;
  border-left: 18px solid transparent; border-right: 18px solid transparent;
  border-top: 16px solid #5cb84a;
}
@keyframes bob { 0%,100% { transform: translateY(0) rotate(0deg);} 50% { transform: translateY(-6px) rotate(8deg);} }
.sims__title { font-family: var(--font-display); font-size: 24px; margin: 0 0 4px; }
.sims__bar { height: 8px; background: rgba(255,255,255,0.2); border-radius: 100px; overflow: hidden; margin: 16px 4px 8px; }
.sims__bar > span { display: block; height: 100%; width: 30%; background: #7fd46a; border-radius: 100px; animation: load 2600ms var(--ease-out) infinite; }
@keyframes load { 0% { width: 8%; } 80% { width: 96%; } 100% { width: 96%; } }
@keyframes choc-pop {
  0% { transform: scale(0); opacity: 0; }
  60% { transform: scale(1.15); opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}
@keyframes wiggle {
  0%,100% { transform: rotate(0); }
  25% { transform: rotate(-12deg) translateY(-4px); }
  50% { transform: rotate(10deg); }
  75% { transform: rotate(-5deg); }
}
@keyframes shove {
  0% { transform: translateX(0) rotate(0); }
  35% { transform: translateX(-14px) rotate(-12deg); }
  70% { transform: translateX(7px) rotate(6deg); }
  100% { transform: translateX(0) rotate(0); }
}
.sims__hint {
  font-family: var(--font-mono); font-size: 12px; opacity: 0.85; margin: 4px 0 0;
  min-height: 1.4em; transition: opacity 200ms var(--ease);
}

/* video moment — a little YouTube watch page (the one place red is allowed) */
.yt__player {
  position: relative; aspect-ratio: 16 / 9; background: #0c0a08;
  border-radius: 12px; overflow: hidden; box-shadow: var(--shadow-soft);
}
.yt__poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #0c0a08; }
.yt__video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain;
  background: #0c0a08; opacity: 0; transition: opacity 300ms var(--ease);
}
.yt__player.is-playing .yt__video { opacity: 1; }
.yt__play {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 64px; height: 64px; border-radius: 50%; border: 0; cursor: pointer;
  background: #ff0000; display: grid; place-items: center;
  box-shadow: 0 6px 20px rgba(0,0,0,0.45);
  transition: transform 160ms var(--ease-out), opacity 220ms var(--ease);
}
.yt__play svg { width: 30px; height: 30px; fill: #fff; margin-left: 3px; }
.yt__play:hover { transform: translate(-50%, -50%) scale(1.08); }
.yt__player.is-playing .yt__play { opacity: 0; pointer-events: none; }
.yt__scrub {
  position: absolute; left: 0; right: 0; bottom: 0; height: 4px;
  background: rgba(255,255,255,0.28);
}
.yt__scrub > i { display: block; height: 100%; width: 0; background: #ff0000; }
.yt__meta { display: flex; align-items: flex-start; gap: 11px; margin: 14px 2px 0; }
.yt__avatar {
  flex: none; width: 36px; height: 36px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, var(--clay-soft), var(--clay));
}
.yt__title {
  font-family: var(--font-body); font-weight: 600; font-size: 15px;
  line-height: 1.3; color: var(--ink); margin: 0;
}
.yt__sub {
  font-family: var(--font-mono); font-size: 11.5px; color: var(--ink-faint);
  margin: 3px 0 0;
}
.yt__up-head {
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 1.5px;
  text-transform: uppercase; color: var(--clay-deep); margin: 18px 2px 8px;
}
.yt__up { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.yt__up-item { display: flex; align-items: center; gap: 10px; }
.yt__up-thumb {
  flex: none; width: 64px; height: 38px; border-radius: 7px;
  background: linear-gradient(135deg, var(--paper-3), var(--sand));
  border: 1px solid var(--line);
}
.yt__up-title {
  font-family: var(--font-body); font-size: 13px; color: var(--ink-soft);
  line-height: 1.35;
}

/* "us" → a hand-made photo collage hung in a wooden frame on the wall */
.collage-frame {
  position: relative;
  margin: 16px auto 2px;
  padding: 13px;
  border-radius: 5px;
  /* carved wooden moulding — faint grain over a warm walnut gradient */
  background:
    repeating-linear-gradient(92deg, rgba(0,0,0,0.06) 0 2px, rgba(255,255,255,0.04) 2px 5px),
    linear-gradient(135deg, #8a6442 0%, #6b4a30 46%, #523823 100%);
  box-shadow:
    var(--shadow-lift),
    inset 0 2px 2px rgba(255,255,255,0.22),
    inset 0 -3px 4px rgba(0,0,0,0.4),
    inset 0 0 0 1px rgba(0,0,0,0.25);
}
.collage-nail {
  position: absolute; top: -16px; left: 50%; transform: translateX(-50%);
  width: 9px; height: 9px; border-radius: 50%; z-index: 3;
  background: radial-gradient(circle at 35% 30%, #d8c08a, #6b5230);
  box-shadow: 0 1px 3px rgba(0,0,0,0.4);
}
.collage-wire {
  position: absolute; left: 8%; right: 8%; top: -13px; width: 84%; height: 14px;
  overflow: visible; pointer-events: none; opacity: 0.85;
}
.collage-mat {
  position: relative;
  padding: 16px 16px;
  border-radius: 2px;
  background: linear-gradient(160deg, #f7f1e3, #ece0c8);
  box-shadow:
    inset 0 0 0 1px rgba(74,55,41,0.12),
    inset 0 3px 16px rgba(74,55,41,0.18);
}
.collage {
  position: relative;
  display: flex; flex-wrap: wrap;
  gap: 8px 12px; align-items: flex-start; justify-content: center;
}
.snap {
  --tilt: 0deg; --ar: 1 / 1; --dy: 0px;
  box-sizing: border-box; min-width: 0; flex: 0 0 17.6%;
  position: relative; width: 17.6%; margin: var(--dy) 0 0;
  padding: 6px 6px 7px;
  background: #fdfbf6;
  border-radius: 2px;
  box-shadow: 0 5px 12px rgba(58,42,28,0.30), 0 1px 2px rgba(0,0,0,0.18);
  transform: rotate(var(--tilt));
  transition: transform 240ms var(--ease-out), box-shadow 240ms;
  z-index: 1;
}
.snap img {
  display: block; width: 100%; aspect-ratio: var(--ar); object-fit: cover;
  background: var(--paper-3);
}
/* a strip of washi tape on some prints */
.snap--tape::before {
  content: ""; position: absolute; top: -8px; left: 50%;
  width: 54px; height: 19px; transform: translateX(-50%) rotate(-5deg);
  background: linear-gradient(180deg, rgba(216,198,162,0.62), rgba(199,178,138,0.5));
  box-shadow: 0 1px 2px rgba(0,0,0,0.14);
  border-left: 1px solid rgba(255,255,255,0.3);
  border-right: 1px solid rgba(0,0,0,0.06);
}
.snap:nth-child(even).snap--tape::before { transform: translateX(-50%) rotate(6deg); }
.snap:hover {
  transform: rotate(0deg) scale(1.06);
  box-shadow: var(--shadow-lift);
  z-index: 6;
}
@media (max-width: 560px) {
  .collage-frame { padding: 11px; }
  .collage-mat { padding: 14px 10px; }
  .collage { gap: 8px; }
  .snap { width: 30%; margin-top: 0; }
}

/* chocolate cabinet → doors swing open on the stash */
.stash {
  position: relative; height: 116px; margin: 8px auto 4px; max-width: 280px;
  border-radius: 10px; overflow: hidden;
  background: linear-gradient(160deg, #3a2418, #2a1810);
  box-shadow: inset 0 0 0 3px #4a3122, inset 0 2px 10px rgba(0,0,0,0.5);
}
.stash__inner {
  position: absolute; inset: 0; display: flex; gap: 8px;
  align-items: center; justify-content: center;
}
.choc {
  width: 70px; height: 70px; cursor: pointer;
  transform: scale(0); opacity: 0;
  /* the real mint Aero bar */
  background: url("../../assets/media/aero.png") center / contain no-repeat;
  filter: drop-shadow(0 4px 7px rgba(0,0,0,0.45));
}
.stash.is-open .choc {
  animation: choc-pop 420ms var(--ease-out) forwards;
  animation-delay: calc(220ms + var(--i) * 90ms);
}
.choc.is-wiggle { animation: wiggle 420ms var(--ease); }
.stash__door {
  position: absolute; top: 0; bottom: 0; width: 50%;
  background: linear-gradient(160deg, #6b4429, #4a2f1c);
  box-shadow: inset 0 0 0 2px rgba(255,255,255,0.06);
  transition: transform 620ms var(--ease);
}
.stash__door--l { left: 0; transform-origin: left center; border-right: 1px solid #2a1810; }
.stash__door--r { right: 0; transform-origin: right center; border-left: 1px solid #2a1810; }
.stash__door::after {
  content: ""; position: absolute; top: 50%; width: 8px; height: 8px;
  border-radius: 50%; background: #d9b066; transform: translateY(-50%);
}
.stash__door--l::after { right: 8px; }
.stash__door--r::after { left: 8px; }
.stash.is-open .stash__door--l { transform: perspective(600px) rotateY(-105deg); }
.stash.is-open .stash__door--r { transform: perspective(600px) rotateY(105deg); }
.stash__line { margin-top: 16px; opacity: 0; transition: opacity 400ms var(--ease) 520ms; }
.stash.is-open ~ .stash__line { opacity: 1; }

/* would-you-rather */
.wyr__kicker { /* uses moment__kicker */ }
.wyr__q {
  font-family: var(--font-display); font-size: clamp(20px, 3.4vw, 27px);
  line-height: 1.35; margin: 4px 0 22px; color: var(--ink);
}
.wyr__options { display: grid; gap: 12px; }
.wyr__option {
  text-align: left; background: var(--paper-2); border: 1.5px solid var(--line);
  border-radius: var(--radius); padding: 16px 18px; font-size: 16px;
  font-family: var(--font-body); color: var(--ink);
  transition: transform 160ms var(--ease-out), border-color 160ms, background 160ms;
}
.wyr__option:hover { transform: translateY(-2px); border-color: var(--clay-soft); background: #f0e4cc; }
.wyr__option .num { font-family: var(--font-mono); color: var(--clay); margin-right: 8px; }
.wyr__resolve { text-align: center; }
.wyr__resolve .line {
  font-family: var(--font-display); font-size: clamp(20px, 3.4vw, 26px);
  line-height: 1.4; color: var(--ink); margin: 8px 0 22px;
}
.wyr__next {
  font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.5px;
  background: var(--clay); color: var(--paper); border: 0;
  padding: 11px 22px; border-radius: 100px; box-shadow: var(--shadow-soft);
}
.wyr__progress {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 1px;
  color: var(--ink-faint); text-align: center; margin-top: 18px;
}
.wyr__closing {
  font-family: var(--font-display); font-size: clamp(21px, 3.6vw, 28px);
  line-height: 1.45; text-align: center; color: var(--ink); margin: 6px 0 4px;
}
.wyr__heart { text-align: center; font-size: 30px; margin-top: 10px; }

/* a soft, reusable primary button */
.btn-soft {
  font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.5px;
  background: var(--clay); color: var(--paper); border: 0;
  padding: 11px 22px; border-radius: 100px; box-shadow: var(--shadow-soft);
}

/* ----------------------------------------------------- reduced motion ---- */
@media (prefers-reduced-motion: reduce) {
  .world { transition-duration: 1ms; }
  body.view-globe #house-world { transform: none; }
  body.view-house #globe-world { transform: none; }
  .marker__dot::after, .hotspot__dot::after,
  .marker.marker--next .marker__ring, .sims__plumbob, .sims__bar > span { animation: none; }
  /* new moment animations settle to their end-state, no motion */
  .choc, .stash.is-open .choc, .choc.is-wiggle, .fruit-emoji.is-shove { animation: none; }
  .choc { transform: none; opacity: 1; }              /* keep the stash visible */
  .stash__door, .stash__line, .sims__hint, .yt__video { transition-duration: 1ms; }
  .card, .moment, .moment__panel { transition-duration: 1ms; }
  .card.enter-start { transform: translate(0, -50%); opacity: 1; }
  @media (max-width: 720px) { .card.enter-start { transform: none; } }
}
