html body.bag-adventure #watchScreen .adv-watch-copy {
  align-items: center;
  gap: 4px !important;
  padding: 0 0 4px !important;
}

.bag-adventure #watchScreen .adv-watch-copy h1 {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
}

.bag-adventure #watchScreen #localFilm {
  position: absolute;
  inset: 0;
}

body.bag-adventure .magic-hunt {
  container-type: size;
  grid-template-rows: 0 minmax(0, auto) auto;
  align-content: center;
  gap: 6px;
}

body.bag-adventure .magic-room-viewport {
  grid-area: 2 / 1;
  height: max(0px, min(calc(100cqh - 64px), 56.25cqw));
  align-items: center;
}

.bag-adventure .magic-hunt > .magic-sound-trail {
  grid-area: 3 / 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  width: min(100%, 530px);
  gap: 6px;
  justify-self: center;
  padding-bottom: 5px;
}

.bag-adventure .magic-sound-trail .magic-sound-gem {
  min-width: 0;
  min-height: 44px !important;
  flex-direction: row;
  justify-content: center;
  gap: 4px;
  padding: 3px 4px !important;
}

.bag-adventure .magic-sound-gem .gem-symbol {
  flex: none;
  width: 27px;
  height: 27px;
  font-size: 24px;
}

.bag-adventure .magic-sound-gem small {
  font-size: clamp(10px, 2.8vw, 14px);
  white-space: normal;
}

body.bag-adventure .magic-hunt .magic-controls {
  bottom: 55px;
}

.bag-adventure .bc-game {
  grid-template-rows: auto auto auto;
  align-content: center;
}

.bag-adventure .bc-world {
  background: #e7c696 url('art/bc-overhead-room-222932.webp') center / cover no-repeat;
}

.bag-adventure .bc-title {
  top: 2%;
  left: 12%;
  right: 12%;
  font-size: clamp(19px, 3.2cqw, 35px);
}

.bag-adventure .bc-map .bc-road-edge,
.bag-adventure .bc-piece svg path:nth-child(1),
.bag-adventure .bc-slot svg path:nth-child(1) { stroke: #bc9e79; }

.bag-adventure .bc-map .bc-road,
.bag-adventure .bc-piece svg path:nth-child(2),
.bag-adventure .bc-slot svg path:nth-child(2) { stroke: #586574; }

.bag-adventure .bc-map .bc-dashes,
.bag-adventure .bc-piece svg path:nth-child(3),
.bag-adventure .bc-slot svg path:nth-child(3) { stroke: #ffe191; }

.bag-adventure .bc-map .bc-road { filter: drop-shadow(0 2px 1px #2c273540); }

.bag-adventure .bc-world .bc-car {
  width: 8%;
  height: 14%;
  min-width: 32px;
  min-height: 38px !important;
}

.bag-adventure .bc-world .bc-obstacle {
  width: var(--obstacle-size);
  height: auto;
  aspect-ratio: 1;
  padding: 0;
  pointer-events: none;
}

.bag-adventure .bc-world .bc-garage {
  width: 27%;
  height: 39%;
  translate: -50% -50%;
  z-index: 2;
}

.bag-adventure .bc-world .bc-parking-line {
  width: 13%;
  height: 23%;
  translate: -50% -50%;
  display: grid;
  place-items: center;
  border: 2px dashed #fff6cb;
  border-radius: 15%;
  background: #ffe99135;
  pointer-events: none;
}

.bag-adventure .bc-parking-line::after {
  content: '';
  width: 100%;
  height: 8%;
  opacity: .82;
  background: repeating-linear-gradient(135deg, #fff6ca 0 5px, transparent 5px 10px);
}

.bag-adventure .bc-in-bay .bc-parking-line {
  border-color: #f7ffda;
  background: #a9df955e;
}

.bag-adventure .bc-world .bc-gate {
  width: 11%;
  height: auto;
  aspect-ratio: 1;
}

.bag-adventure .bc-controls {
  gap: 12px;
  min-height: 0;
}

.bag-adventure .bc-controls button { min-height: 44px; }

.bag-adventure .ff-zip-closed {
  mask-image: linear-gradient(to right, #000 calc(var(--zip-edge) - .7%), transparent calc(var(--zip-edge) + 1.1%));
}

.bag-adventure .ff-zip-complete .ff-zip-closed { mask-image: none; }

.bag-adventure .ff-zip-bag-shell .ff-zipper::before {
  width: 16px;
  height: 26px;
  border: 3px solid #8c5c2a;
  background: linear-gradient(145deg, #fff5c0 5%, #edbd59 46%, #bc772d 100%);
  border-radius: 6px 6px 10px 10px;
  transform: translateY(7px) rotate(var(--zip-pull-angle, 0deg));
}

.bag-adventure .ff-zip-bag-shell .ff-zipper::after {
  content: '';
  position: absolute;
  left: calc(50% - 3px);
  top: calc(50% - 4px);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  box-shadow: 0 0 0 1px #c89546;
  background: #fff2b0;
}

.ff-zip-complete .ff-zipper {
  animation: bag-zip-click .32s ease-out;
}

@keyframes bag-zip-click { 45% { rotate: 12deg; } }

.bag-adventure .ff-game[data-chapter="5"] .ff-puddle-world .ff-walkers {
  width: min(26cqw, 51cqh);
  transition: none;
}

.bag-adventure .ff-puddle-world .ff-puddle {
  width: clamp(25px, 6cqw, 65px) !important;
}

.bag-adventure .ff-puddle-world .ff-puddle.ff-puddle-ready {
  width: clamp(25px, 6cqw, 65px) !important;
}

.ff-finish {
  position: absolute;
  z-index: 3;
  top: 62%;
  height: 22%;
  width: clamp(4px, .8cqw, 8px);
  translate: -50% 0;
  background: linear-gradient(90deg, #967343, #d6b582, #94713e);
  border-radius: 30px;
  pointer-events: none;
}

.ff-finish span {
  position: absolute;
  right: 0;
  top: 1px;
  padding: 4px 12px 5px 8px;
  border: 1px dashed #fff6d1;
  border-radius: 7px 2px 2px 7px;
  background: #aa6253;
  color: #fffbe6;
  box-shadow: 0 2px 3px #633b2740;
  font: clamp(12px, 2.4cqw, 24px) Froople, sans-serif;
  line-height: 1;
}

.ff-finish.ff-arrived span {
  background: #567c66;
  box-shadow: 0 0 16px #ffeda7;
}

@media (orientation: portrait) {
  .bag-adventure .bc-world .bc-car { width: 9%; }
  .bag-adventure .bc-world .bc-parking-line { height: min(23%, 15cqw); }
  .bag-adventure .ff-puddle-world {
    background-size: cover !important;
    background-position: left center !important;
  }
}

@media (orientation: landscape) and (max-height: 540px) {
  html body.bag-adventure.six-star-edition #memoryScreen .six-finale {
    display: grid !important;
    grid-template-columns: minmax(100px, .62fr) minmax(0, 1fr);
    align-items: center;
    gap: 4px 12px;
    width: min(100%, 700px) !important;
    padding: 6px 12px 9px !important;
    border-width: 10px !important;
  }

  .bag-adventure.six-star-edition #memoryScreen :is(.six-memory-title, .six-memory-heading, .six-feedback) {
    grid-column: 1 / -1;
    margin: 0 !important;
  }

  .bag-adventure.six-star-edition #memoryScreen .six-memory-title img { max-height: 36px !important; }

  .bag-adventure.six-star-edition #memoryScreen .six-memory-presenter {
    width: 52px !important;
    height: 50px !important;
    flex-basis: 52px !important;
  }

  .bag-adventure.six-star-edition #memoryScreen .six-memory-question { font-size: clamp(14px, 2.2vw, 21px) !important; }

  .bag-adventure.six-star-edition #memoryScreen :is(.six-memory-frame, .six-memory-tray .six-memory-photo) {
    width: clamp(67px, 22dvh, 105px) !important;
  }

  .bag-adventure.six-star-edition #memoryScreen .six-memory-frame {
    justify-self: end;
    margin: 0 !important;
    font-size: 11px;
  }

  .bag-adventure.six-star-edition #memoryScreen .six-memory-tray {
    justify-content: flex-start !important;
    gap: 7px !important;
  }

  .bag-adventure.six-star-edition #memoryScreen .six-memory-photo strong { font-size: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .ff-zip-complete .ff-zipper { animation: none; }
}
