.pss .pss-visual {
  container-type: inline-size;
}
.pss .pss-muji-scene {
  border-color: #b9aa95;
  background: #eee9e0;
  isolation: isolate;
}
.pss .pss-muji-viewport,
.pss .pss-muji-toolbar {
  position: absolute;
  inset: 0;
}
.pss .pss-muji-viewport {
  overflow: hidden;
}
.pss .pss-muji-viewport canvas {
  position: absolute;
  inset: 0;
}
.pss .pss-muji-toolbar {
  z-index: 3;
  pointer-events: none;
}
.pss .pss-muji-toolbar button {
  pointer-events: auto;
}
.pss .pss-muji-screen {
  position: absolute;
  inset: 0 auto auto 0;
  width: 640px;
  height: 360px;
  transform-origin: 0 0;
  z-index: 1;
  overflow: hidden;
  background: #1b2327;
}
.pss .pss-muji-screen iframe,
.pss .pss-muji-scene .pss-muji-play {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}
.pss .pss-muji-scene .pss-muji-play {
  position: relative;
  padding: 0;
  border-radius: 0;
  background: #1b2327;
  cursor: pointer;
}
.pss .pss-muji-play img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: filter .18s ease;
}
.pss .pss-muji-play span {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  width: 102px;
  height: 68px;
  border-radius: 16px;
  padding-left: 5px;
  color: white;
  background: #b61b1b;
  box-shadow: 0 4px 16px #17110f70;
  font-size: 38px;
  line-height: 1;
  transition: background .18s ease, scale .18s ease;
}
.pss .pss-muji-play:is(:hover, :focus-visible) img { filter: brightness(.82); }
.pss .pss-muji-play:is(:hover, :focus-visible) span { background: #d01d1d; scale: 1.12; }
.pss .pss-muji-play:focus-visible { outline: 8px solid #ffdf64; outline-offset: -8px; }

.pss .pss-muji-labels {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}
.pss .pss-muji-scene .pss-muji-tag {
  display: grid;
  gap: 2px;
  position: absolute;
  max-width: min(44%, 205px);
  padding: 6px 9px 7px;
  border: 1px solid #bbae9a;
  border-left: 3px solid #967450;
  border-radius: 8px;
  background: #fffcf4f5;
  color: #30291e;
  box-shadow: 0 2px 9px #44302127;
  text-decoration: none;
  font-size: 12px;
  line-height: 1.2;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease;
}
.pss .pss-muji-scene a.pss-muji-tag { pointer-events: auto; }
.pss .pss-muji-tag small {
  color: #6a533d;
  font-size: 9px;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.pss .pss-muji-tag strong { overflow-wrap: anywhere; }
.pss .pss-muji-tag b { color: #60422b; white-space: nowrap; }
.pss .pss-muji-scene a.pss-muji-tag:is(:hover, :focus-visible) {
  transform: translateY(-3px);
  background: #fff0d0;
  color: #30291e;
  border-color: #8a562c;
  box-shadow: 0 5px 12px #44302145;
}
.pss .pss-muji-scene a.pss-muji-tag:active { transform: translateY(1px) scale(.97); }
.pss .pss-muji-scene .pss-muji-tag-tv { top: 12px; right: 12px; }
.pss .pss-muji-scene .pss-muji-tag-box { left: 12px; bottom: 59px; }
.pss .pss-muji-scene .pss-muji-tag-audio { right: 12px; bottom: 59px; }

.pss .pss-muji-scene :is(.pss-controls, .pss-scene-mode, .pss-scene-label) { z-index: 3; }
section.pss[data-punyoo-studio] .pss-muji-scene :is(.pss-controls button, .pss-scene-mode button, .pss-scene-label) {
  background: #fffcf3f5 !important;
  color: #3d3227 !important;
  border-color: #ad9b82 !important;
}
section.pss[data-punyoo-studio] .pss-muji-scene :is(.pss-controls button, .pss-scene-mode button):is(:hover, :focus-visible) {
  background: #f4e1c6 !important;
  border-color: #795d43 !important;
}
.pss .pss-muji-scene .pss-scene-label strong { color: #715230; }
.pss .pss-muji-scene .pss-scene-label span { background: #9c7143; }
@container (max-width: 579px) {
  .pss .pss-muji-scene {
    aspect-ratio: auto;
    min-height: 0;
    border-radius: 13px;
  }
  .pss .pss-muji-viewport {
    position: relative;
    aspect-ratio: 6 / 5;
  }
  .pss .pss-muji-labels {
    position: relative;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    padding: 8px 8px 6px;
    background: #eee6d7;
  }
  .pss .pss-muji-scene .pss-muji-tag {
    position: static;
    max-width: none;
    min-width: 0;
    padding: 7px;
    box-shadow: none;
    font-size: 11px;
    align-content: start;
  }
  .pss .pss-muji-scene .pss-muji-tag-tv {
    grid-column: 1 / -1;
    grid-template-columns: auto minmax(0, 1fr) auto;
    column-gap: 7px;
    align-items: baseline;
  }
  .pss .pss-muji-scene .pss-muji-tag:is(:hover, :focus-visible) {
    transform: none;
  }
  .pss .pss-muji-toolbar {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 6px;
    padding: 4px 8px 9px;
    background: #eee6d7;
  }
  .pss .pss-muji-toolbar :is(.pss-controls, .pss-scene-mode) {
    position: static;
    display: grid;
    gap: 5px;
  }
  .pss .pss-muji-toolbar .pss-controls {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    flex: 1 0 190px;
  }
  .pss .pss-muji-toolbar .pss-scene-mode {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    flex: 1 0 180px;
  }
  .pss .pss-muji-toolbar button {
    width: 100%;
    min-width: 0;
    min-height: 44px;
    padding-inline: 4px;
  }
  .pss .pss-muji-scene .pss-scene-label {
    top: 8px;
    left: 8px;
  }
}
@media (max-width: 510px) {
  .pss .pss-room-info {
    display: grid;
    gap: 3px;
    overflow-wrap: anywhere;
  }
  .pss .pss-product strong,
  .pss .pss-product small,
  .pss .pss-product span {
    overflow-wrap: anywhere;
  }
  .pss .pss-tabs button {
    min-height: 44px;
    font-size: clamp(.75rem, 3.9vw, .95rem);
  }
  .pss .pss-filters label {
    min-width: 0;
  }
  .pss .pss-filters select {
    min-width: 0;
    min-height: 44px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .pss .pss-muji-scene :is(.pss-muji-tag, .pss-muji-play img, .pss-muji-play span) { transition: none; }
}
