/* Owner-facing pages */
.sales-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.15fr);
  border: 1px solid #d5d8c6;
  background: #f4edda;
  border-radius: 30px;
  overflow: hidden;
}
.sales-copy {
  padding: clamp(26px, 4vw, 62px);
  align-self: center;
}
.sales-copy h1,
.pack-intro h1 {
  font-size: clamp(2.8rem, 4.9vw, 4.8rem);
  letter-spacing: -0.065em;
  line-height: 1.01;
}
.sales-copy > p:not(.eyebrow),
.pack-intro > p:not(.eyebrow) {
  max-width: 43ch;
  margin: 20px 0 27px;
  font-size: 1.15rem;
  color: #415853;
  line-height: 1.5;
}
.sales-copy .primary,
.sales-copy .secondary {
  padding: 13px 16px;
}
.sales-hero figure {
  margin: 0;
  overflow: hidden;
  min-height: 330px;
  position: relative;
}
.sales-hero figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
}
.location-showcase,
.owner-steps {
  margin: clamp(32px, 5vw, 70px) 0 24px;
}
.location-showcase h2,
.owner-steps h2 {
  font-size: clamp(1.9rem, 3.5vw, 3rem);
}
.location-grid,
.sample-kit {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 21px;
  margin-top: 20px;
}
.sample-tile {
  background: #fffdf5;
  border: 1px solid var(--edge);
  border-radius: 22px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  align-items: center;
}
.tile-scene {
  position: relative;
  height: 100%;
  min-height: 160px;
}
.tile-scene > img:first-child {
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
  object-fit: cover;
}
.tile-guide {
  height: 66%;
  max-width: 75%;
  object-fit: contain;
  position: absolute;
  bottom: 0;
  left: 8%;
}
.sample-tile > div:last-child {
  padding: 20px;
}
.sample-tile h3 {
  font-size: clamp(1.6rem, 2.3vw, 2.4rem);
}
.sample-tile .eyebrow {
  margin-bottom: 5px;
}
.owner-steps {
  padding: clamp(24px, 3.5vw, 44px);
  border-radius: 24px;
  background: #e9eee2;
}
.owner-steps ol {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin: 24px 0 14px;
  padding-left: 23px;
}
.owner-steps li::marker {
  font-weight: 900;
  color: #a35428;
}
.owner-steps li b {
  display: block;
  font-size: 1.09rem;
}
.owner-steps li span {
  display: block;
  margin-top: 5px;
  color: #4d625e;
}
.pack-intro {
  max-width: 800px;
  margin: 18px 0 24px;
}
.sample-kit article {
  border: 1px solid var(--edge);
  border-radius: 20px;
  overflow: hidden;
  background: var(--paper);
}
.sample-kit article > img {
  width: 100%;
  aspect-ratio: 2.3;
  object-fit: cover;
  display: block;
}
.sample-kit article > div {
  padding: 23px;
}
.sample-kit .actions {
  margin: 18px 0;
}
.sample-kit h3 {
  margin-top: 20px;
  font-size: 1rem;
}
.sample-kit .textlink {
  display: flex;
  justify-content: flex-start;
  min-height: 38px;
  font-size: 0.92rem;
}
.credit {
  display: block;
  color: #52615b;
  margin: 15px 0 5px;
  max-width: 85ch;
}
.pack-label,
.updated-demo {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-weight: 800;
  font-size: 0.88rem;
}
.updated-demo {
  padding: 12px 18px;
  background: #dcebd9;
  border-radius: 12px;
  margin-bottom: 9px;
  color: #244c39;
}
.pack-label span {
  color: var(--tone);
}
/* Child-facing pages */
.playing main {
  max-width: 1120px;
}
.playing footer {
  font-size: 0.7rem;
}
.playing .game-meta {
  margin: 0 4px 10px;
}
.game-meta > span:first-child {
  display: flex;
  align-items: center;
  gap: 10px;
}
.game-meta .bag-count {
  display: flex;
  gap: 4px;
  font-size: 0.95rem;
  font-weight: 950;
  color: #714526;
}
.bag-count .bag {
  width: 29px;
  height: 29px;
}
.map-back,
.sound-btn {
  display: inline-flex;
  border: 1px solid #cbd3c5;
  border-radius: 12px;
  align-items: center;
  justify-content: center;
  background: var(--paper);
  color: var(--ink);
  font-weight: 900;
  min-height: 44px;
  gap: 6px;
  padding: 4px 10px;
}
.map-back .ico {
  order: -1;
}
.playing .game-shell {
  border: 2px solid #ded9c4;
  border-radius: 25px;
  background: #fffdf4;
  box-shadow: 0 6px 0 #dfd8c3;
}
.playing .game-panel {
  padding: clamp(20px, 2.7vw, 39px);
  background: transparent;
}
.playing .game-panel h1 {
  font-size: clamp(1.85rem, 3.1vw, 3.2rem);
  margin: 0 0 18px;
}
.playing .scene-frame {
  border-radius: 0;
  align-self: center;
}
.playing .choose .guide {
  height: 48%;
  width: 33%;
  left: 3%;
}
.playing .hunt .guide {
  width: 27%;
  height: 40%;
  bottom: 0;
}
.playing .station-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
}
.playing .station {
  display: block;
  padding: 0;
  border-radius: 13px;
  overflow: hidden;
  background: #fff7dd;
  border: 1.5px solid #dbcdac;
  box-shadow: 0 3px 0 #ded3b9;
  position: relative;
  transition: transform 0.16s ease;
}
.playing .station:active {
  transform: translateY(2px);
}
.station-pic {
  display: block;
  aspect-ratio: 1.1;
  position: relative;
  overflow: hidden;
}
.station-pic > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.station-check {
  position: absolute;
  bottom: 4px;
  right: 4px;
  border-radius: 100%;
  display: grid;
  place-items: center;
  background: #154e42;
  color: white;
  width: 24px;
  height: 24px;
}
.station-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2px;
  padding: 9px 7px;
  font-size: 0.92rem;
  line-height: 1.15;
}
.station-label .ico {
  width: 13px;
}
.playing .station:only-child {
  grid-column: span 2;
}
.inline-clue {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 6px 14px;
  background: #f9ecd3;
  border: 1px solid #dfc59a;
  border-radius: 17px;
  font-weight: 900;
  font-size: 1.05rem;
}
.inline-clue .stamp {
  width: 52px;
  height: 52px;
}
.inline-clue .bag {
  width: 44px;
  height: 44px;
  margin-left: auto;
}
.hunt-tools {
  display: flex;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 13px;
}
.sound-btn {
  width: 47px;
}
.sound-btn .ico {
  width: 1.3rem;
  height: 1.3rem;
}
.more-help {
  margin-left: auto;
}
.more-help > summary {
  cursor: pointer;
  font-weight: 850;
  font-size: 0.9rem;
  color: var(--muted);
  min-height: 44px;
  align-content: center;
  padding: 7px 0;
}
.more-help[open] {
  width: 100%;
  margin-left: 0;
}
.more-help[open] summary {
  width: fit-content;
}
.more-help[open] > div {
  display: flex;
  gap: 16px;
  align-items: center;
}
.picture-choices {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.picture-choices button {
  display: grid;
  place-items: center;
  gap: 3px;
  min-width: 62px;
  min-height: 48px;
  padding: 7px;
  border-radius: 14px;
  border: 1px solid #cecdb9;
  background: var(--paper);
  color: var(--ink);
  font-weight: 850;
}
.picture-choices .stamp {
  width: 48px;
  height: 48px;
}
.picture-choices.match button {
  background: #fff2ce;
  border: 2px solid #dbbc84;
  padding: 7px 18px;
}
.picture-choices.match .stamp {
  width: 54px;
  height: 54px;
}
.tinyhint {
  font-weight: 750;
  color: var(--muted);
  margin: -7px 0 12px;
  line-height: 1.35;
}
.wave-hand {
  font-size: 1.75rem;
}
.bag-action {
  justify-content: flex-start;
  gap: 15px;
}
.bag-action .ico {
  margin-left: auto;
}
.memory-board {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding: 25px;
  background: #e7edd9;
}
.memory-card {
  border-radius: 15px;
  border: 3px solid #fff8d7;
  background: repeating-linear-gradient(45deg, #276465 0 8px, #245d60 8px 16px);
  aspect-ratio: 1.15;
  display: grid;
  place-items: center;
  box-shadow: 0 3px 0 #aeb8a2;
}
.memory-card.up {
  background: #fff8e5;
}
.memory-card.paired {
  opacity: 1;
  border-color: #a7c69d;
}
.memory-card .bag,
.memory-card .stamp {
  width: 55%;
  height: 65%;
  object-fit: contain;
}
@media (prefers-reduced-motion: no-preference) {
  .memory-card.up:not(.paired) .stamp,
  .hunt .inline-clue .stamp {
    animation: lift 0.28s ease-out;
  }
  .found .guide {
    animation: perk 0.45s ease-out;
  }
  .match button:active .stamp {
    transform: scale(0.88);
  }
}
@media (max-width: 850px) {
  .sales-copy {
    padding: 25px;
  }
  .sales-hero {
    grid-template-columns: 1fr 1fr;
  }
  .sample-tile {
    grid-template-columns: 1fr;
  }
  .tile-scene {
    min-height: 140px;
  }
  .sample-tile > div:last-child {
    padding: 14px;
  }
  .playing .choose {
    grid-template-columns: 1fr 1fr;
  }
  .station-label {
    font-size: 0.82rem;
  }
  .owner-steps ol {
    gap: 18px;
  }
}
@media (max-width: 620px) {
  .sales-hero {
    display: flex;
    flex-direction: column-reverse;
    border-radius: 19px;
  }
  .sales-hero figure {
    min-height: 0;
    aspect-ratio: 1.95;
  }
  .sales-copy h1,
  .pack-intro h1 {
    font-size: 2.85rem;
  }
  .sales-copy {
    padding: 21px;
  }
  .sales-copy > p:not(.eyebrow) {
    font-size: 1rem;
    margin: 12px 0 18px;
  }
  .sales-copy .actions {
    gap: 8px;
  }
  .sales-copy .primary,
  .sales-copy .secondary {
    font-size: 0.92rem;
    padding: 11px;
  }
  .location-grid {
    gap: 9px;
  }
  .tile-scene {
    min-height: 100px;
  }
  .location-showcase .eyebrow {
    font-size: 0.61rem;
  }
  .sample-tile h3 {
    font-size: 1.3rem;
  }
  .sample-tile .textlink {
    font-size: 0.86rem;
  }
  .owner-steps ol {
    display: flex;
    flex-direction: column;
    gap: 16px;
  }
  .sample-kit {
    grid-template-columns: 1fr;
  }
  .pack-intro > p:not(.eyebrow) {
    font-size: 1rem;
  }
  .playing .game-shell {
    border-radius: 18px;
  }
  .playing .game-meta {
    margin: 0 2px 7px;
  }
  .playing .game-panel {
    padding: 15px 14px;
  }
  .playing .game-panel h1 {
    font-size: clamp(1.65rem, 7vw, 2.2rem);
    margin-bottom: 12px;
  }
  .playing .scene-frame {
    aspect-ratio: var(--frame-ratio, 1.5);
  }
  .playing .station-list {
    gap: 5px;
  }
  .station-pic {
    aspect-ratio: 1.3;
  }
  .station-label {
    font-size: 0.84rem;
    padding: 8px 5px;
  }
  .station-label .ico {
    width: 11px;
  }
  .hunt-tools {
    margin-top: 9px;
  }
  .game-meta .bag-count {
    font-size: 0.8rem;
  }
  .game-meta .bag {
    width: 25px;
    height: 25px;
  }
  .tinyhint {
    font-size: 0.96rem;
  }
  .memory-board {
    width: 100%;
  }
  .pack-label span {
    font-size: 0.75rem;
  }
}
@media (max-width: 620px) {
  .playing .scene-frame.celebrate {
    aspect-ratio: var(--frame-ratio, 1.5);
  }
  .playing .choose .scene-frame {
    aspect-ratio: 1.25;
  }
  .playing .choose .world {
    left: -6%;
    right: -6%;
  }
  .playing .choose .scene {
    object-fit: cover;
  }
}
#preview-request {
  display: grid;
  gap: 1rem;
  max-width: 32rem;
}
#preview-request label:not(.checkbox):not([hidden]) {
  display: grid;
  gap: 0.4rem;
  font-weight: 650;
}
#preview-request [hidden] {
  display: none;
}
#preview-request input:not([type="checkbox"]) {
  border: 1px solid #9baba2;
  border-radius: 8px;
  padding: 0.7rem;
  font: inherit;
  background: white;
}
#preview-request .primary {
  justify-self: start;
}
#request-status:empty {
  display: none;
}
.playing .game-shell.atlas {
  display: flex;
  flex-direction: column-reverse;
  max-width: 930px;
  margin: auto;
}
.playing .atlas .game-panel {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 15px 24px;
}
.playing .atlas .game-panel h1 {
  margin: 0;
  font-size: clamp(1.65rem, 3.7vw, 2.8rem);
}
.room-atlas {
  position: relative;
  width: 100%;
  line-height: 0;
  background: #eadbc0;
  overflow: hidden;
}
.room-atlas > img {
  width: 100%;
  display: block;
  aspect-ratio: 1.5;
  object-fit: cover;
}
.map-stop {
  position: absolute;
  transform: translate(-50%, -50%);
  min-width: 23%;
  height: 37%;
  padding: 0;
  border: 0;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-direction: column;
  filter: drop-shadow(0 3px 3px #52371750);
  line-height: 1.05;
}
.map-stop:hover .map-caption,
.map-stop:focus-visible .map-caption {
  background: #fff6be;
  transform: translateY(-3px);
}
.map-stop:focus-visible {
  outline: 3px solid #fff4ac;
  border-radius: 1rem;
}
.map-dot {
  border: 3px solid #fff8df;
  background: #006660;
  color: white;
  display: grid;
  place-items: center;
  border-radius: 50%;
  height: clamp(24px, 3vw, 36px);
  width: clamp(24px, 3vw, 36px);
  margin-bottom: -3px;
  z-index: 1;
}
.map-dot .ico {
  width: 64%;
  height: 64%;
  stroke-width: 3;
}
.map-caption {
  padding: 0.42em 0.67em;
  background: #fffbea;
  color: #183f43;
  border: 2px solid #82633d;
  border-radius: 1em;
  box-shadow: 0 2px 0 #805f3a;
  font:
    900 clamp(0.78rem, 2.1vw, 1.22rem) / 1 Nunito,
    sans-serif;
}
.playing .atlas .textlink {
  font-size: 0.9rem;
}
.hello-wave {
  position: absolute;
  left: 15%;
  bottom: 32%;
  z-index: 3;
  font-size: clamp(2.2rem, 7vw, 4rem);
  transform-origin: bottom center;
  pointer-events: none;
  animation: wave-at-child 1s both;
}
@keyframes wave-at-child {
  0% {
    opacity: 0;
    transform: scale(0.5) rotate(-18deg);
  }
  18% {
    opacity: 1;
    transform: scale(1.05) rotate(14deg);
  }
  40%,
  66% {
    transform: rotate(-16deg);
  }
  52%,
  78% {
    transform: rotate(15deg);
  }
  100% {
    opacity: 0;
    transform: translateY(-12px);
  }
}
@media (max-width: 620px) {
  .playing .atlas .game-panel {
    padding: 15px 13px;
    flex-wrap: wrap;
  }
  .playing .atlas .game-panel h1 {
    font-size: clamp(1.5rem, 6vw, 1.85rem);
  }
  .map-caption {
    white-space: nowrap;
  }
}
.tray button {
  touch-action: none;
  user-select: none;
  cursor: grab;
}
.tray img {
  pointer-events: none;
}
.sticker-in-hand {
  position: fixed;
  width: 75px;
  height: 75px;
  object-fit: contain;
  z-index: 100;
  pointer-events: none;
  transform: translate(-50%, -65%) rotate(-7deg);
  filter: drop-shadow(0 5px 5px #352e4055);
}
.postcard.drop-ready {
  outline: 3px dashed #ac6324;
  outline-offset: -5px;
}
.game-credit {
  font-size: 0.8rem;
  margin: 12px 0;
}
.game-credit summary {
  cursor: pointer;
}
.sticker-pocket {
  max-width: 930px;
  margin: 17px auto 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 11px 22px;
  border: 2px solid #d4ccb0;
  border-radius: 20px;
  background: #f5e9cb;
  box-shadow: inset 0 0 0 4px #fbf4dd;
  position: relative;
}
.pocket-title {
  display: flex;
  align-items: center;
  gap: 12px;
}
.pocket-title img {
  width: 65px;
  height: 68px;
  object-fit: contain;
}
.pocket-title h2 {
  font-size: clamp(1.15rem, 2.8vw, 1.7rem);
  margin: 0;
}
.pocket-slots {
  display: flex;
  gap: 10px;
}
.pocket-slot {
  background: #fff9e9;
  border: 2px dashed #b6a784;
  border-radius: 15px;
  width: clamp(47px, 7vw, 70px);
  height: clamp(47px, 7vw, 70px);
  display: grid;
  place-items: center;
  padding: 4px;
  cursor: pointer;
}
.pocket-slot .stamp {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: grayscale(1);
  opacity: 0.48;
}
.pocket-slot.filled {
  background: #fdfcf3;
  border-style: solid;
  border-color: #9ca988;
}
.pocket-slot.filled .stamp {
  filter: none;
  opacity: 1;
}
@media (max-width: 620px) {
  .sticker-pocket {
    margin: 13px 0;
    padding: 12px;
    gap: 5px;
  }
  .pocket-title {
    gap: 4px;
    flex: 1;
  }
  .pocket-title img {
    width: 44px;
    height: 56px;
  }
  .pocket-title h2 {
    font-size: 1.06rem;
    line-height: 1.03;
    max-width: 5.5ch;
  }
  .pocket-slots {
    gap: 5px;
  }
  .pocket-slot {
    width: clamp(36px, 12vw, 52px);
    height: clamp(39px, 12vw, 52px);
    border-radius: 10px;
  }
}
