.harbor-store {
  min-height:100dvh;
  background:linear-gradient(180deg,#081521c4,#0d202ded 520px,#0a1825f5);
}
.store-content {
  width:min(900px,calc(100% - max(28px,8vw)));
  margin-inline:auto;
  padding:8px 0 28px;
}
.has-run-hud .store-content { padding-bottom:calc(var(--run-hud-height) + var(--safe-bottom) + 28px); }
.store-greeting {
  position:relative;
  isolation:isolate;
  display:grid;
  align-items:end;
  min-height:clamp(172px,32vw,272px);
  margin-bottom:22px;
  padding:clamp(14px,4vw,30px);
  overflow:hidden;
  background:#111f2b;
  border:1px solid #7396a78a;
}
.store-greeting>img { position:absolute; inset:0; z-index:-2; width:100%; height:100%; object-fit:cover; object-position:27% 7%; }
.store-greeting::after {
  content:""; position:absolute; inset:0; z-index:-1;
  background:linear-gradient(0deg,#06121df2,transparent 72%);
}
.store-greeting h2 { margin:0 0 4px; color:#e8f2f4; font:600 clamp(19px,3.5vw,27px)/1.1 var(--font-ui); }
.store-greeting p { margin:0; max-width:29ch; color:#c9e0e8; font:400 clamp(14px,2.2vw,17px)/1.25 var(--font-body); }
.store-offers.full-card-collection {
  grid-template-columns:repeat(2,minmax(0,1fr)); gap:18px 12px;
  padding:clamp(9px,2vw,20px);
  border:1px solid #789eb273;
  background:radial-gradient(circle at 1px 1px,#8cb4cc28 .55px,transparent .8px) 0 0/10px 10px,
    linear-gradient(145deg,#263e4ee0,#132938e8 70%);
  box-shadow:inset 0 1px #d0e7f42a,inset 0 0 0 3px #050e164d;
  animation:collection-panel-in .27s .04s cubic-bezier(.2,.78,.3,1) backwards;
}
.store-offers>.store-offer {
  display:grid; align-content:start; gap:7px; min-width:0;
  animation:store-offer-in .26s calc(55ms + 26ms * var(--offer-index)) ease-out backwards;
}
.store-inspect { display:block; position:relative; isolation:isolate; width:100%; padding:0; border-radius:11px; }
.store-inspect::after {
  content:""; position:absolute; inset:0; z-index:5; pointer-events:none; border-radius:inherit;
  background:linear-gradient(transparent,#9adeff3d 45%,transparent 55%) 0 -100%/100% 200% no-repeat;
  animation:store-scan-in .48s calc(90ms + 26ms * var(--offer-index)) ease-out backwards;
}
.store-inspect:focus-visible,.store-inspect:hover {
  outline:1px solid #9ddafa;
  outline-offset:3px;
}
.store-offer>.store-price {
  width:100%; min-height:44px; padding:0 8px;
  color:#cce6f2; font:600 16px/1 var(--font-ui); font-variant-numeric:tabular-nums;
}
.store-price .icon { width:17px; height:17px; }
@keyframes store-offer-in {
  from { opacity:0; transform:translateY(5px); filter:brightness(1.25); }
}
@keyframes store-scan-in {
  from { opacity:1; background-position:0 -100%; }
  to { opacity:0; background-position:0 100%; }
}

.cinematic-dialogue.merchant-contact .story-scene {
  inset:0; background-position:16% center; filter:none;
  animation:merchant-signal-in .48s ease-out both;
}
.cinematic-dialogue.merchant-contact .story-depth-shade {
  background:linear-gradient(0deg,#04101cec,transparent 58%),linear-gradient(#06172350,transparent 38%);
}
@keyframes merchant-signal-in {
  from { opacity:.55; filter:brightness(1.23) saturate(.72); }
}
.run-favor.is-revealing::after {
  content:""; position:absolute; inset:50% -5px auto; height:1px; pointer-events:none;
  background:#b4ecff; box-shadow:0 0 10px #6ed3ff;
  animation:favor-line-in .58s ease-out both;
}
.run-favor.is-revealing>* { animation:favor-count-in .43s .15s ease-out both; }
@keyframes favor-line-in {
  0% { opacity:0; transform:scaleX(.02); }
  35% { opacity:1; transform:scaleX(1); }
  65% { opacity:.75; transform:translateY(-13px) scaleX(1); }
  100% { opacity:0; transform:translateY(-13px) scaleX(.9); }
}
@keyframes favor-count-in {
  0% { opacity:0; clip-path:inset(50% 0); }
  35% { opacity:.9; clip-path:inset(0); }
  49% { opacity:.35; }
  65%,100% { opacity:1; clip-path:inset(0); }
}
@media (min-width:700px) {
  .store-greeting { align-items:center; justify-items:end; }
  .store-greeting>div { width:44%; }
  .store-greeting::after { background:linear-gradient(90deg,transparent 25%,#06121db5 55%,#06121def 100%); }
  .store-offers.full-card-collection { grid-template-columns:repeat(3,minmax(0,1fr)); gap:24px 18px; }
  .cinematic-dialogue.merchant-contact .story-scene { background-position:center; }
  .cinematic-dialogue.merchant-contact .dialogue-box { margin-left:auto; }
}
@media (prefers-reduced-motion:reduce) {
  .store-offers.full-card-collection,.store-offers>.store-offer,.store-inspect::after,
  .cinematic-dialogue.merchant-contact .story-scene,.run-favor.is-revealing::after,.run-favor.is-revealing>* { animation:none; }
}
.reduce-motion .store-offers.full-card-collection,.reduce-motion .store-offer,.reduce-motion .store-inspect::after,
.reduce-motion .cinematic-dialogue.merchant-contact .story-scene,.reduce-motion .run-favor.is-revealing::after,
.reduce-motion .run-favor.is-revealing>* { animation:none; }

.cinematic-dialogue.merchant-contact [data-actor-key="exact-change"] .story-actor {
  left:5%; width:90%; top:max(16px, 3dvh); bottom:auto;
  height:calc(var(--dialogue-clear-height, 64dvh) - max(16px, 3dvh) + 20px);
}
.cinematic-dialogue.merchant-contact [data-actor-key="exact-change"] .story-actor img {
  object-fit:contain; object-position:center bottom;
}
.cinematic-dialogue.merchant-contact [data-projection] .story-actor img {
  opacity:.84;
  filter:grayscale(.72) sepia(.62) hue-rotate(149deg) saturate(1.62) brightness(1.2)
    drop-shadow(0 0 2px #6ddfffbb) drop-shadow(0 0 15px #4abbec42);
  mask-image:repeating-linear-gradient(to bottom,#000 0 2px,#000b 2px 3px);
}

.store-greeting-layered { background:var(--store-scene) 38% 45% / cover no-repeat; }
.store-greeting-layered>img {
  inset:auto 0 0 auto; width:49%; height:94%; object-fit:cover; object-position:center 10%;
}
.store-greeting-layered>div { max-width:61%; }
.store-greeting-layered::after {
  background:linear-gradient(90deg,#06121dec 9%,#06121db3 40%,transparent 72%),
    linear-gradient(0deg,#06121dbb,transparent 50%);
}
@media (min-width:700px) {
  .cinematic-dialogue.merchant-contact [data-actor-key="exact-change"] .story-actor {
    left:4%; top:auto; bottom:6dvh; width:49%; height:84%;
  }
  .store-greeting-layered>img { right:auto; left:4%; width:38%; height:96%; object-position:center top; }
  .store-greeting-layered::after {
    background:linear-gradient(90deg,transparent 25%,#06121db5 55%,#06121def 100%);
  }
}
@media (min-width:700px) and (max-width:899px) {
  .cinematic-dialogue.merchant-contact .dialogue-box { width:49%; }
}
