/* FindHue storytelling layer — website primitives, not app UI. */
:root {
  --story-blue: #428ae4; /* demo target: Royal Blue — keep in sync with demo-score.v1.js */
  --story-blue-picked: #4b89df; /* closest pixel the step 03 spot finds for Royal Blue */
  --story-coral: #e65e4f;
  --story-turquoise: #17aeb9;
  --story-card: #fffdf8;
  --story-radius: 5px;
  /* Where steps 02 and 03 mark the photo (fraction of its width/height), centered on the marker. Scored by scripts/test-demo-score.mjs. */
  --demo-spot-x: 72%;
  --demo-spot-y: 39%;
}

.target-blue { background: var(--story-blue); }
.picked-blue { background: var(--story-blue-picked); }
.target-coral { background: var(--story-coral); }
.target-turquoise { background: var(--story-turquoise); }

.target-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 13px;
  border: 1px solid rgba(25, 24, 21, .09);
  border-radius: 14px;
  background: rgba(255, 253, 248, .94);
  box-shadow: 0 10px 30px rgba(39, 33, 27, .10);
}
.target-dot { width: 30px; height: 30px; flex: 0 0 auto; border-radius: 50%; }
.target-chip small,
.find-card figcaption small,
.reveal-clock small,
.party-timer small,
.closing-score small {
  display: block;
  color: var(--ink-3);
  font: 650 .55rem/1.15 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: .12em;
}
.target-chip strong { display: block; margin-top: 2px; font-size: .88rem; line-height: 1; }

.find-card {
  position: relative;
  margin: 0;
  padding: 10px 10px 14px;
  border-radius: var(--story-radius);
  background: var(--story-card);
  color: var(--ink);
  box-shadow: var(--shadow);
}
.find-card-photo { position: relative; aspect-ratio: 1; overflow: hidden; background: var(--surface-2); }
.find-card-photo img { width: 100%; height: 100%; object-fit: cover; }
.find-card figcaption {
  min-height: 50px;
  padding: 11px 2px 0;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 8px;
}
.find-card figcaption .target-dot { width: 17px; height: 17px; }
.find-card figcaption strong { display: block; margin-top: 2px; font-size: .84rem; line-height: 1.05; }
.find-card figcaption b { align-self: center; font-size: 1.22rem; line-height: 1; }
.avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--ink);
  color: #fff;
  font-size: .65rem;
  font-weight: 800;
}

.world-photo { position: relative; overflow: hidden; background: #dbe8eb; }
.world-photo > img { width: 100%; height: 100%; object-fit: cover; }
.camera-corners {
  position: absolute;
  inset: 15px;
  opacity: .92;
  background:
    linear-gradient(#fff, #fff) left top / 28px 2px no-repeat,
    linear-gradient(#fff, #fff) left top / 2px 28px no-repeat,
    linear-gradient(#fff, #fff) right top / 28px 2px no-repeat,
    linear-gradient(#fff, #fff) right top / 2px 28px no-repeat,
    linear-gradient(#fff, #fff) left bottom / 28px 2px no-repeat,
    linear-gradient(#fff, #fff) left bottom / 2px 28px no-repeat,
    linear-gradient(#fff, #fff) right bottom / 28px 2px no-repeat,
    linear-gradient(#fff, #fff) right bottom / 2px 28px no-repeat;
}
.find-reticle,
.selected-point {
  position: absolute;
  width: 42px;
  height: 42px;
  border: 3px solid #fff;
  border-radius: 50%;
  background: rgba(12, 28, 37, .22);
  box-shadow: 0 2px 12px rgba(0, 0, 0, .25), inset 0 0 0 7px rgba(255, 255, 255, .18);
}
.find-reticle::before,
.find-reticle::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  background: rgba(255, 255, 255, .9);
  transform: translate(-50%, -50%);
}
.find-reticle::before { width: 8px; height: 2px; }
.find-reticle::after { width: 2px; height: 8px; }

/* Hero mini-game: one photo, one movable selection, one result. */
.hero { padding-top: 48px; }
.hero-game {
  width: min(100%, 500px);
  margin: 38px auto 0;
  position: relative;
  isolation: isolate;
}
.hero-game::before {
  content: "";
  position: absolute;
  inset: 12% 4% 11%;
  z-index: -1;
  border-radius: 45%;
  background: rgba(23, 138, 203, .13);
  filter: blur(36px);
}
.hero-game-target {
  position: relative;
  z-index: 3;
  margin: 0 0 -8px 18px;
  transform: translateY(8px);
}
.hero-game-card {
  width: 100%;
  margin: 10px 0 0;
  padding: 10px 10px 6px;
  position: relative;
  display: grid;
  grid-template-areas: "photo" "caption";
  grid-template-rows: auto 60px;
  border-radius: var(--story-radius);
  background: transparent;
  box-shadow: none;
  transition: background-color .34s ease, box-shadow .34s ease;
}
.hero-game-photo {
  grid-area: photo;
  min-height: 0;
  aspect-ratio: 1;
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  background: #dceaf0;
  box-shadow: var(--shadow-soft);
  transition: border-radius .34s ease, box-shadow .34s ease;
  touch-action: pan-y;
  cursor: crosshair;
  user-select: none;
  -webkit-user-select: none;
}
.hero-game-photo img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}
.hero-game-reticle {
  position: absolute;
  z-index: 2;
  left: var(--reticle-x);
  top: var(--reticle-y);
  width: 50px;
  height: 50px;
  padding: 0;
  border: 3px solid #fff;
  border-radius: 50%;
  background: rgba(12, 28, 37, .2);
  box-shadow: 0 3px 14px rgba(0, 0, 0, .28), inset 0 0 0 8px rgba(255, 255, 255, .17);
  transform: translate(-50%, -50%);
  cursor: grab;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  transition: box-shadow .16s ease, background-color .16s ease, transform .16s ease;
}
.hero-game-reticle span::before,
.hero-game-reticle span::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  background: rgba(255, 255, 255, .96);
  transform: translate(-50%, -50%);
}
.hero-game-reticle span::before { width: 9px; height: 2px; }
.hero-game-reticle span::after { width: 2px; height: 9px; }
.hero-game-reticle:hover { background: rgba(12, 28, 37, .28); box-shadow: 0 4px 18px rgba(0, 0, 0, .32), inset 0 0 0 8px rgba(255, 255, 255, .21); }
.hero-game-reticle.is-dragging { cursor: grabbing; transform: translate(-50%, -50%) scale(1.07); transition: box-shadow .12s ease, background-color .12s ease; }
.hero-game-reticle.is-repositioning { transition: left .22s cubic-bezier(.2, .8, .2, 1), top .22s cubic-bezier(.2, .8, .2, 1), box-shadow .16s ease, background-color .16s ease, transform .16s ease; }
.hero-game-reticle:disabled { cursor: default; }
.hero-game-caption { grid-area: caption; min-height: 54px; position: relative; display: grid; align-items: center; }
.hero-game-instruction {
  margin: 0;
  padding: 9px 14px;
  position: absolute;
  z-index: 4;
  top: 66.667%;
  left: 33.333%;
  max-width: calc(100% - 36px);
  border: 1px solid rgba(25, 24, 21, .11);
  border-radius: 12px;
  background: rgba(255, 253, 248, .97);
  box-shadow: 0 8px 24px rgba(39, 33, 27, .14);
  color: var(--ink-2);
  font-size: .88rem;
  line-height: 1.25;
  text-align: center;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transform: translate(-33.333%, calc(-100% - 33px));
  transition: opacity .22s ease, transform .22s ease, visibility 0s linear .22s;
}
.hero-game-instruction::before,
.hero-game-instruction::after {
  content: "";
  position: absolute;
  left: 33.333%;
  width: 0;
  height: 0;
  transform: translateX(-50%);
}
.hero-game-instruction::before {
  bottom: -10px;
  border-width: 9px 8px 0;
  border-style: solid;
  border-color: rgba(25, 24, 21, .11) transparent transparent;
}
.hero-game-instruction::after {
  bottom: -8px;
  border-width: 8px 7px 0;
  border-style: solid;
  border-color: rgba(255, 253, 248, .97) transparent transparent;
}
.hero-game.show-instruction .hero-game-instruction {
  opacity: 1;
  visibility: visible;
  transition-delay: 0s;
}
.hero-game-result {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(7px);
  transition: opacity .26s ease, transform .26s ease, visibility 0s linear .26s;
}
.result-swatch { min-width: 0; display: flex; align-items: center; gap: 7px; }
.result-swatch > i { width: 26px; height: 26px; flex: 0 0 auto; border-radius: 50%; }
.result-swatch small { display: block; color: var(--ink-3); font: 650 .48rem/1 ui-monospace, monospace; letter-spacing: .1em; }
.result-swatch strong { display: block; max-width: 88px; margin-top: 3px; overflow: hidden; font: 750 .72rem/1 ui-monospace, monospace; text-overflow: ellipsis; }
.result-swatch-picked { justify-content: flex-end; text-align: right; }
.hero-result-score { text-align: center; }
.hero-result-score b { display: block; font-size: 2.1rem; line-height: .86; letter-spacing: -.06em; }
.hero-result-score small { display: block; margin-top: 7px; color: var(--ink-2); font-size: .7rem; white-space: nowrap; }
.hero-game-actions {
  height: 104px;
  padding-top: 12px;
  display: grid;
  grid-template-rows: 54px 30px;
  justify-items: center;
  align-content: start;
  gap: 8px;
}
.hero-game-action {
  width: min(100%, 250px);
  height: 54px;
  margin: 0 auto;
  position: relative;
  display: grid;
  place-items: center;
  cursor: pointer;
  overflow: hidden;
}
.hero-game-action-label {
  grid-area: 1 / 1;
  opacity: 0;
  transform: translateY(5px);
  transition: opacity .2s ease, transform .24s cubic-bezier(.2, .8, .2, 1);
  pointer-events: none;
}
.hero-game[data-game-state="initial"] [data-action-state="initial"],
.hero-game[data-game-state="selected"] [data-action-state="selected"],
.hero-game[data-game-state="scoring"] [data-action-state="scoring"],
.hero-game[data-game-state="result-non-perfect"] [data-action-state="result-non-perfect"],
.hero-game[data-game-state="result-perfect"] [data-action-state="result-perfect"],
.hero-game[data-game-state="resetting"] [data-action-state="resetting"] {
  opacity: 1;
  transform: translateY(0);
}
.hero-game-action.is-subdued { border-color: var(--line); background: rgba(255, 255, 255, .48); color: var(--ink-2); box-shadow: none; }
.hero-game-action:disabled { cursor: default; }
.hero-game-action.is-ready { animation: action-ready .4s cubic-bezier(.2, .8, .2, 1); }
.hero-game-secondary {
  width: min(100%, 250px);
  min-height: 30px;
  padding: 2px 8px;
  border: 0;
  background: transparent;
  color: var(--ink-2);
  font: inherit;
  font-size: .76rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: underline;
  text-decoration-color: var(--line);
  text-underline-offset: 4px;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(5px);
  transition: opacity .2s ease, transform .24s cubic-bezier(.2, .8, .2, 1), visibility 0s linear .24s;
}
.hero-game-secondary.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition-delay: .08s, .08s, 0s;
}
.hero-game.is-checking .hero-game-reticle { animation: hero-lock .32s ease; }
.hero-game.has-result .hero-game-card { background: var(--story-card); box-shadow: var(--shadow); }
.hero-game.has-result .hero-game-photo { border-radius: 1px; box-shadow: none; }
.hero-game.has-result .hero-game-instruction { opacity: 0; transform: translate(-33.333%, calc(-100% - 38px)); }
.hero-game.has-result .hero-game-result { opacity: 1; visibility: visible; transform: translateY(0); transition-delay: .08s; }
.hero-game.is-resetting .hero-game-result { opacity: 0; transform: translateY(5px); }
.hero-game.show-onboarding .hero-game-reticle { animation: reticle-invite 2s cubic-bezier(.45, 0, .2, 1); }
.hero-game.is-confirming .hero-game-reticle { animation: selection-settle .32s ease; }
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}
@keyframes hero-lock { 50% { transform: translate(-50%, -50%) scale(.9); box-shadow: 0 0 0 11px rgba(255, 255, 255, .2), 0 3px 14px rgba(0, 0, 0, .25); } }
@keyframes reticle-invite {
  0%, 100% { transform: translate(-50%, -50%); }
  32% { transform: translate(calc(-50% + 145px), calc(-50% - 90px)); }
  68% { transform: translate(calc(-50% - 28px), calc(-50% + 96px)); }
}
.hero-game-reticle.is-attention { animation: reticle-attention 1.1s cubic-bezier(.4, 0, .2, 1) 2; }
@keyframes reticle-attention {
  0%, 100% { transform: translate(-50%, -50%) scale(1); box-shadow: 0 3px 14px rgba(0, 0, 0, .28), inset 0 0 0 8px rgba(255, 255, 255, .17), 0 0 0 0 rgba(255, 255, 255, .75); }
  45% { transform: translate(-50%, -50%) scale(1.14); box-shadow: 0 3px 14px rgba(0, 0, 0, .28), inset 0 0 0 8px rgba(255, 255, 255, .17), 0 0 0 14px rgba(255, 255, 255, 0); }
}
@keyframes selection-settle { 50% { transform: translate(-50%, -50%) scale(.9); box-shadow: 0 0 0 9px rgba(255, 255, 255, .18), 0 3px 14px rgba(0, 0, 0, .25); } }
@keyframes action-ready { 0% { opacity: .58; transform: translateY(2px) scale(.985); } 65% { transform: translateY(-1px) scale(1.01); } 100% { opacity: 1; transform: none; } }

.world-label,
.tap-label {
  position: absolute;
  left: 16px;
  bottom: 15px;
  padding: 7px 9px;
  border-radius: 999px;
  background: rgba(21, 26, 28, .72);
  color: #fff;
  font: 650 .52rem/1 ui-monospace, monospace;
  letter-spacing: .11em;
  backdrop-filter: blur(5px);
}

/* How it works: the same blue-door find moves through all three states. */
.how-section { padding-block: 92px; }
.how-intro { max-width: 760px; margin-bottom: 46px; }
.how-intro h2 { margin-bottom: 0; }
.story-steps { margin: 0; padding: 0; display: grid; gap: 18px; list-style: none; }
.story-steps > li {
  min-width: 0;
  padding: 16px;
  display: grid;
  gap: 20px;
  border: 1px solid rgba(25, 24, 21, .09);
  border-radius: 22px;
  background: rgba(255, 253, 248, .56);
}
.step-copy { display: grid; grid-template-columns: 28px 1fr; gap: 10px; }
.step-copy > span { color: var(--ink-3); font: 650 .65rem/1.4 ui-monospace, monospace; }
.step-copy h3 { font-size: 1.08rem; }
.step-copy p { margin: 0; color: var(--ink-2); font-size: .88rem; }
.step-visual { min-height: 245px; border-radius: 16px; overflow: hidden; }
.step-target {
  display: grid;
  place-items: center;
  align-content: center;
  background: #e2edf2;
}
.target-orbit { width: 136px; height: 136px; margin-bottom: 18px; border: 1px solid rgba(25, 24, 21, .12); border-radius: 50%; display: grid; place-items: center; }
.target-orbit::before { content: ""; position: absolute; width: 174px; height: 174px; border: 1px dashed rgba(25, 24, 21, .1); border-radius: 50%; }
.target-orbit i { width: 96px; height: 96px; border-radius: 50%; box-shadow: 0 14px 32px rgba(66, 138, 228, .22); }
.step-target small { color: var(--ink-3); font: 650 .56rem/1 ui-monospace, monospace; letter-spacing: .12em; }
.step-target strong { margin-top: 6px; font-size: 1.2rem; }
.step-photo { aspect-ratio: 1; }
.how-cta { margin-top: 40px; display: grid; justify-items: center; gap: 14px; text-align: center; }
.how-cta-title { margin: 0; font-size: clamp(1.25rem, 3.6vw, 1.6rem); font-weight: 800; line-height: 1.15; letter-spacing: -.035em; }
.how-cta-button { min-width: 220px; touch-action: manipulation; }
.step-photo .find-reticle { left: calc(var(--demo-spot-x) - 21px); top: calc(var(--demo-spot-y) - 21px); }
.score-reveal { min-height: 245px; display: grid; grid-template-columns: minmax(0, 1fr) 72px; gap: 10px; align-items: end; }
.find-card-small { width: min(100%, 220px); justify-self: center; transform: rotate(-2deg); }
.find-card-small .find-card-photo img { object-position: 78% center; }
.find-card-small .selected-point { left: calc(var(--demo-spot-x) - 14.5px); top: calc(var(--demo-spot-y) - 14.5px); width: 29px; height: 29px; }
.colour-compare { display: grid; gap: 6px; align-self: stretch; }
.colour-compare > span { min-height: 100px; padding: 8px; border-radius: 12px; display: flex; align-items: end; }
.colour-compare small { color: #fff; font: 700 .49rem/1 ui-monospace, monospace; letter-spacing: .1em; writing-mode: vertical-rl; transform: rotate(180deg); text-shadow: 0 1px 3px rgba(0, 0, 0, .18); }

/* Friends: one target, three genuinely different Finds, then reveal. */
.friends-section { padding-block: 100px; }
.friends-story { min-height: 530px; position: relative; }
.reveal-header { display: flex; justify-content: space-between; gap: 10px; align-items: center; }
.reveal-clock { display: flex; align-items: center; gap: 8px; text-align: right; }
.reveal-clock i { width: 9px; height: 9px; border-radius: 50%; background: var(--story-coral); box-shadow: 0 0 0 5px rgba(230, 94, 79, .13); }
.reveal-clock strong { display: block; font-size: .86rem; }
.find-stack { position: relative; height: 400px; margin-top: 16px; }
.friend-find { position: absolute; width: 175px; }
.friend-one { z-index: 2; left: 2%; top: 46px; transform: rotate(-6deg); }
.friend-two { z-index: 4; left: 31%; top: 7px; transform: rotate(1.5deg); }
.friend-three { z-index: 3; right: 1%; top: 60px; transform: rotate(6deg); }
.winner-badge {
  position: absolute;
  left: 50%;
  top: -13px;
  transform: translateX(-50%);
  white-space: nowrap;
  padding: 7px 9px;
  border-radius: 999px;
  background: #fff0bd;
  color: #7b5520;
  box-shadow: var(--shadow-soft);
  font: 700 .48rem/1 ui-monospace, monospace;
  letter-spacing: .1em;
}
.heart-pop { position: absolute; top: -18px; right: -14px; color: var(--story-coral); font-size: 2.1rem; filter: drop-shadow(0 5px 8px rgba(105, 42, 37, .2)); }
.reveal-note { margin: 0; display: flex; justify-content: space-between; gap: 14px; color: var(--ink-3); font: 650 .58rem/1.25 ui-monospace, monospace; letter-spacing: .09em; }
.reveal-note span:last-child { color: var(--story-coral); text-align: right; }

/* Party: shared target and countdown feed into participant Finds. */
.party-section { padding-block: 98px; }
.party-story { min-height: 500px; padding: 22px; border: 1px solid rgba(255, 255, 255, .13); border-radius: 28px; background: rgba(255, 255, 255, .045); }
.party-hud { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.target-chip-dark { border-color: rgba(255, 255, 255, .12); background: rgba(255, 255, 255, .08); color: #fff; box-shadow: none; }
.target-chip-dark small, .party-timer small { color: rgba(255, 255, 255, .5); }
.party-timer { min-width: 72px; text-align: right; }
.party-timer b { display: block; margin-top: 4px; font: 750 1.28rem/1 ui-monospace, monospace; letter-spacing: -.05em; }
.party-path { margin: 20px 12px 10px; display: grid; grid-template-columns: 8px 1fr 8px 1fr 8px; align-items: center; }
.party-path span { width: 8px; height: 8px; border-radius: 50%; background: var(--story-turquoise); box-shadow: 0 0 0 5px rgba(23, 174, 185, .14); }
.party-path i { height: 1px; background: linear-gradient(90deg, var(--story-turquoise), rgba(255, 255, 255, .18)); }
.party-finds { height: 330px; position: relative; }
.party-find { position: absolute; width: 165px; }
.party-find-one { --party-angle: -5deg; z-index: 2; left: 0; top: 50px; transform: rotate(var(--party-angle)); }
.party-find-two { --party-angle: 1deg; z-index: 4; left: 32%; top: 12px; transform: rotate(var(--party-angle)); }
.party-find-three { --party-angle: 5deg; z-index: 3; right: 0; top: 54px; transform: rotate(var(--party-angle)); }
.party-status { margin: 4px 0 0; display: flex; align-items: center; justify-content: center; gap: 8px; color: rgba(255, 255, 255, .58); font: 650 .58rem/1 ui-monospace, monospace; letter-spacing: .11em; }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--story-turquoise); }

/* Collection progression. */
.collection-story { position: relative; overflow: hidden; }
.progress-key { margin-bottom: 20px; display: flex; align-items: center; justify-content: center; gap: 9px; color: var(--ink-3); font: 650 .47rem/1 ui-monospace, monospace; letter-spacing: .08em; }
.progress-key span { display: inline-flex; align-items: center; gap: 5px; }
.progress-key i { width: 14px; height: 14px; border-radius: 4px; display: block; }
.key-muted { background: var(--line); }
.key-ring { background: transparent; box-shadow: inset 0 0 0 2px var(--story-turquoise); }
.key-full { background: var(--story-turquoise); }
.collection-board-mini .owned { background: #aaa; }
.collection-board-mini .c1 { background: #e7a930; } .collection-board-mini .c2 { background: #448cd0; }
.collection-board-mini .c3 { background: #e4664b; } .collection-board-mini .c4 { background: #8d65c9; }
.collection-board-mini .c5 { background: #48a35a; } .collection-board-mini .c6 { background: #df4f81; }
.collection-board-mini .c7 { background: #f18b32; } .collection-board-mini .c8 { background: #176fb0; }
.collection-board-mini .c9 { background: #a750af; } .collection-board-mini .c10 { background: #69b64f; }
.collection-board-mini .c11 { background: #f0c22d; } .collection-board-mini .c12 { background: #d9493f; }
.collection-board-mini .c13 { background: #35a59e; } .collection-board-mini .c14 { background: #745fca; }
.collection-board-mini .c15 { background: #ec7868; } .collection-board-mini .c16 { background: #258dcc; }
.collection-board-mini .progress-tile { aspect-ratio: 1; border-radius: 8px; background: var(--line); box-shadow: inset 0 0 0 0 var(--story-turquoise); }
.collection-unlock {
  position: absolute;
  right: 22px;
  bottom: 18px;
  margin: 0;
  padding: 9px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  background: var(--story-card);
  box-shadow: var(--shadow-soft);
  font-size: .72rem;
}
.collection-unlock span { width: 16px; height: 16px; border-radius: 5px; background: var(--story-turquoise); }

/* Closing echo of the hero. */
.closing-find { margin-bottom: 28px; display: flex; align-items: center; justify-content: center; gap: 12px; }
.closing-find > .target-dot { width: 42px; height: 42px; box-shadow: 0 10px 24px rgba(230, 94, 79, .2); }
.closing-arrow { color: var(--ink-3); }
.closing-photo { position: relative; width: 86px; height: 86px; overflow: hidden; border-radius: 17px; box-shadow: var(--shadow-soft); }
.closing-photo img { width: 100%; height: 100%; object-fit: cover; }
.closing-photo .find-reticle { width: 28px; height: 28px; left: 45%; top: 43%; border-width: 2px; }
.closing-score { min-width: 62px; padding: 10px 12px; border-radius: 14px; background: var(--story-card); box-shadow: var(--shadow-soft); text-align: left; }
.closing-score strong { display: block; font-size: 1.55rem; line-height: 1; }

/* Purposeful motion begins only after enhancement is available and on screen. */
.motion-ready .story-steps > li { opacity: 0; transform: translateY(18px); }
.motion-ready .story-steps.is-visible > li { animation: simple-reveal .55s ease forwards; }
.motion-ready .story-steps.is-visible > li:nth-child(2) { animation-delay: .16s; }
.motion-ready .story-steps.is-visible > li:nth-child(3) { animation-delay: .32s; }
.motion-ready .friends-story .reveal-score,
.motion-ready .friends-story .winner-badge,
.motion-ready .friends-story .heart-pop { opacity: 0; transform: translateY(5px) scale(.85); }
.motion-ready .friends-story.is-visible .reveal-score,
.motion-ready .friends-story.is-visible .winner-badge,
.motion-ready .friends-story.is-visible .heart-pop { animation: pop-reveal .38s 1.05s ease forwards; }
.motion-ready .friends-story.is-visible .heart-pop { animation-delay: 1.35s; }
.motion-ready .party-find { opacity: 0; transform: translateY(24px) rotate(0); }
.motion-ready .party-story.is-visible .party-find { animation: party-arrive .52s cubic-bezier(.2, .8, .2, 1) forwards; }
.motion-ready .party-story.is-visible .party-find-two { animation-delay: .16s; }
.motion-ready .party-story.is-visible .party-find-three { animation-delay: .32s; }
.motion-ready .collection-story .progress-tile { box-shadow: inset 0 0 0 3px var(--story-turquoise); background: transparent; }
.motion-ready .collection-story .collection-unlock { opacity: 0; transform: translateY(8px); }
.motion-ready .collection-story.is-visible .progress-tile { animation: collect-colour .85s .5s ease forwards; }
.motion-ready .collection-story.is-visible .collection-unlock { animation: simple-reveal .4s 1.15s ease forwards; }
.motion-ready .closing-find .find-reticle { transform: translate(-24px, 10px); opacity: .2; }
.motion-ready .closing-find .closing-score { opacity: 0; transform: translateX(-8px); }
.motion-ready .closing-find.is-visible .find-reticle { animation: reticle-lock .65s .2s ease forwards; }
.motion-ready .closing-find.is-visible .closing-score { animation: simple-reveal .35s .75s ease forwards; }

@keyframes reticle-lock { to { transform: translate(0, 0) scale(1); opacity: 1; } }
@keyframes card-resolve { to { opacity: 1; transform: translateY(0) rotate(3.5deg) scale(1); } }
@keyframes simple-reveal { to { opacity: 1; transform: translate(0) rotate(0) scale(1); } }
@keyframes pop-reveal { 70% { transform: translateY(-2px) scale(1.08); } to { opacity: 1; transform: translate(0) scale(1); } }
@keyframes party-arrive { to { opacity: 1; transform: translateY(0) rotate(var(--party-angle, 0)); } }
@keyframes collect-colour { 0%, 45% { background: transparent; box-shadow: inset 0 0 0 3px var(--story-turquoise); } 100% { background: var(--story-turquoise); box-shadow: inset 0 0 0 0 var(--story-turquoise); } }

@media (min-width: 700px) {
  .story-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .story-steps > li { grid-template-rows: auto 1fr; }
  .friend-find { width: 190px; }
  .party-find { width: 180px; }
}

@media (min-width: 768px) {
  .hero { grid-template-columns: minmax(0, .88fr) minmax(420px, 1.12fr); gap: 54px; }
  .hero-game { margin-top: 0; }
  .friends-section { grid-template-columns: 1.15fr .85fr; }
  .friends-story { order: 1; }
  .friends-section .feature-copy { order: 2; }
  .party-layout { grid-template-columns: .86fr 1.14fr; gap: 64px; }
}

@media (min-width: 1100px) {
  .hero { gap: 80px; }
  .hero-game { width: min(100%, 520px); }
  .friends-story { min-height: 560px; }
  .friend-find { width: 205px; }
  .party-story { padding: 26px; }
  .party-find { width: 190px; }
}

@media (max-width: 767px) {
  .hero-copy-block > .store-actions,
  .hero-copy-block > .store-note { display: none; }
  .hero-game { width: min(100%, 420px); margin-top: 24px; }
}

@media (max-width: 699px) {
  .story-steps > li { grid-template-columns: 1fr; }
  .step-visual, .score-reveal { min-height: 230px; }
  .friends-story { min-height: 500px; }
  .friend-find { width: 43%; }
  .friend-one { left: 0; top: 56px; }
  .friend-two { left: 29%; top: 24px; }
  .friend-three { right: 0; top: 74px; }
  .find-stack { height: 360px; }
  .friend-find figcaption { grid-template-columns: auto 1fr; }
  .friend-find figcaption b { grid-column: 2; }
  .party-story { min-height: 450px; padding: 16px; }
  .party-find { width: 42%; }
  .party-find-one { top: 56px; }
  .party-find-two { left: 29%; top: 24px; }
  .party-find-three { top: 62px; }
  .party-finds { height: 285px; }
  .party-find figcaption { grid-template-columns: auto 1fr; }
  .progress-key { flex-wrap: wrap; }
}

@media (max-width: 420px) {
  .hero { padding-bottom: 68px; }
  .hero-game { margin-top: 22px; }
  .hero-game-target { margin-left: 10px; }
  .hero-game-card { grid-template-rows: auto 56px; }
  .hero-game-instruction { width: 172px; max-width: calc(100% - 24px); padding: 8px 11px; font-size: .8rem; white-space: normal; transform: translate(-33.333%, calc(-100% - 35px)); }
  .hero-game-reticle { width: 54px; height: 54px; }
  .hero-game-result { gap: 6px; }
  .result-swatch > i { width: 22px; height: 22px; }
  .result-swatch strong { max-width: 68px; font-size: .62rem; }
  .hero-result-score b { font-size: 1.85rem; }
  .hero-result-score small { font-size: .62rem; }
  .hero-game-actions { height: 102px; padding-top: 10px; }
  .friends-section { padding-block: 82px; }
  .friends-story { min-height: 460px; }
  .reveal-header { align-items: flex-start; }
  .reveal-header .target-chip { padding: 8px 9px; }
  .reveal-header .target-dot { width: 24px; height: 24px; }
  .reveal-clock small { font-size: .47rem; }
  .friend-find { width: 45%; padding: 7px 7px 10px; }
  .friend-one { top: 58px; }
  .friend-two { left: 28%; }
  .friend-three { top: 92px; }
  .friend-find figcaption { padding-top: 7px; gap: 5px; }
  .friend-find .avatar { width: 20px; height: 20px; }
  .friend-find figcaption small { font-size: .43rem; }
  .friend-find figcaption strong { font-size: .66rem; }
  .winner-badge { font-size: .4rem; }
  .reveal-note { font-size: .5rem; }
  .party-hud .target-chip { padding: 8px; }
  .party-hud .target-dot { width: 23px; height: 23px; }
  .party-hud .target-chip strong { font-size: .72rem; }
  .party-find { width: 44%; padding: 7px 7px 10px; }
  .party-find-two { left: 28%; }
  .party-find figcaption { min-height: 42px; padding-top: 7px; gap: 5px; }
  .party-find .avatar { width: 20px; height: 20px; }
  .party-find figcaption small { font-size: .42rem; }
  .party-find figcaption strong { font-size: .65rem; }
  .collection-demo { padding: 20px 16px 52px; }
  .collection-board-mini { gap: 5px; }
  .collection-board-mini span:not(.owned):not(.discovered), .collection-board-mini span.owned, .collection-board-mini .progress-tile { border-radius: 5px; }
  .collection-unlock { right: 14px; bottom: 13px; font-size: .63rem; }
}

@media (max-width: 767px) {
  @keyframes reticle-invite {
    0%, 100% { transform: translate(-50%, -50%); }
    32% { transform: translate(calc(-50% + 94px), calc(-50% - 64px)); }
    68% { transform: translate(calc(-50% - 36px), calc(-50% + 66px)); }
  }
}

@media (prefers-reduced-motion: reduce) {
  .motion-ready [data-story] *,
  .motion-ready [data-story] *::before,
  .motion-ready [data-story] *::after {
    animation: none !important;
  }
  .motion-ready .story-steps > li,
  .motion-ready .friends-story .reveal-score,
  .motion-ready .friends-story .winner-badge,
  .motion-ready .friends-story .heart-pop,
  .motion-ready .party-find,
  .motion-ready .collection-story .collection-unlock,
  .motion-ready .closing-find .find-reticle,
  .motion-ready .closing-find .closing-score {
    opacity: 1 !important;
    transform: none !important;
  }
  .motion-ready .collection-story .progress-tile { background: var(--story-turquoise); box-shadow: none; }
  .hero-game-card,
  .hero-game-photo,
  .hero-game-reticle,
  .hero-game-instruction,
  .hero-game-result,
  .hero-game-action,
  .hero-game-action-label,
  .hero-game-secondary { transition: none !important; animation: none !important; }
  .hero-game.show-onboarding .hero-game-reticle,
  .hero-game.is-confirming .hero-game-reticle,
  .hero-game-reticle.is-attention { animation: none !important; }
  .hero-game-reticle.is-attention { box-shadow: 0 3px 14px rgba(0, 0, 0, .28), inset 0 0 0 8px rgba(255, 255, 255, .17), 0 0 0 6px rgba(255, 255, 255, .6); }
}

.tap-label { text-decoration: none; }

