.pw-scene, .pw-scene * { box-sizing: border-box; }
.pw-scene { position: relative; width: 100%; height: 100%; overflow: hidden; isolation: isolate; background: radial-gradient(ellipse at 81% 17%, #1e2755 0, transparent 57%), radial-gradient(ellipse at 63% 83%, #4b123e 0, transparent 52%), #080714; }
.pw-atmosphere { position: absolute; pointer-events: none; border-radius: 50%; filter: blur(70px); opacity: .28; }
.pw-atmosphere--blue { left: 57%; top: 15%; width: 47%; height: 48%; background: #173ef5; }
.pw-atmosphere--pink { left: 43%; top: 57%; width: 40%; height: 28%; background: #be1863; opacity: .22; }
.pw-ground-light { position: absolute; left: 47%; top: 82%; width: 52%; height: 4%; border-radius: 50%; background: #b871e9; filter: blur(35px); opacity: .2; transform: rotate(-6deg); }
.pw-destination { position: absolute; left: 56%; top: 19%; width: 42%; aspect-ratio: 1410 / 810; transform: perspective(1400px) rotateX(7deg) rotateY(-17deg) rotateZ(-4deg); z-index: 2; }
.pw-display-face { position: absolute; inset: 0; padding: 7px; border-radius: 16px; background: linear-gradient(120deg, #7d7990, #15131e 16%, #07070d 70%, #666575); box-shadow: 0 38px 80px #000b, 0 0 1px 1px #ffffff3b; overflow: hidden; }
.pw-display-face img { position: relative; z-index: 1; display: block; width: 100%; height: 100%; object-fit: fill; border-radius: 10px; }
.pw-display-back { position: absolute; inset: -2px 0 1px 6px; transform: translate(7px, 3px); background: #06060c; border-radius: 17px; box-shadow: 8px 3px 0 #34303e; }
.pw-display-edge { position: absolute; bottom: -3px; left: 3%; width: 94%; height: 5px; background: linear-gradient(90deg, transparent, #c1bdc98c, #fff4, transparent); filter: blur(1px); }
.pw-screen-reflection { position: absolute; z-index: 2; inset: 6px; border-radius: 10px; background: linear-gradient(125deg, #c6dcff1a, transparent 36%, transparent 65%, #9b76fc0c); pointer-events: none; }
.pw-tile { position: absolute; height: auto; z-index: 4; transform-style: preserve-3d; }
.pw-tile img { position: relative; display: block; width: 100%; height: auto; border-radius: 4px; box-shadow: 2px 4px 0 #17151e, 0 1px 0 1px #ffffff47, 4px 23px 32px #0009, 0 0 26px color-mix(in srgb, var(--accent) 17%, transparent); }
.pw-trail, .pw-trail::after { position: absolute; inset: 2% 0; background-image: var(--ui); background-size: 100% 100%; transform: translate(var(--ghost-x, -42%), var(--ghost-y, -5%)); filter: blur(11px) saturate(180%); opacity: var(--trail-alpha, .32); -webkit-mask-image: radial-gradient(ellipse at center, #000 14%, transparent 69%); mask-image: radial-gradient(ellipse at center, #000 14%, transparent 69%); }
.pw-trail::after { content: ""; transform: translate(var(--ghost-x, -42%), var(--ghost-y, -5%)); opacity: .55; }
.pw-tile--soothe { --ghost-x: -40%; --ghost-y: -40%; left: 38.5%; top: 11%; width: 18%; transform: perspective(1000px) rotateX(7deg) rotateY(-18deg) rotateZ(-12deg); z-index: 3; }
.pw-tile--decapitator { --ghost-x: 35%; --ghost-y: -35%; left: 79%; top: 12%; width: 16%; transform: perspective(1000px) rotateX(12deg) rotateY(-24deg) rotateZ(12deg); z-index: 3; }
.pw-tile--proq { --ghost-x: -45%; --ghost-y: 35%; --trail-alpha: .4; left: 43%; top: 43%; width: 29%; transform: perspective(1100px) rotateX(9deg) rotateY(-20deg) rotateZ(-10deg); }
.pw-tile--maag { --ghost-x: -42%; --ghost-y: 35%; left: 40%; top: 73%; width: 31%; transform: perspective(1000px) rotateX(11deg) rotateY(-14deg) rotateZ(-10deg); z-index: 7; }
.pw-tile--echoboy { --ghost-x: 32%; --ghost-y: 35%; --trail-alpha: .4; left: 73%; top: 68%; width: 21%; transform: perspective(1000px) rotateX(-7deg) rotateY(-24deg) rotateZ(9deg); z-index: 6; }
.pw-copy-shade { position: absolute; z-index: 9; inset: 0; background: linear-gradient(90deg, #08071475, transparent 39%); pointer-events: none; }


@media (min-aspect-ratio: 19/10) {
  .pw-destination { left: 59%; top: 17%; width: 38%; }
  .pw-tile--soothe { left: 40%; top: 10%; width: 15%; }
  .pw-tile--proq { left: 46%; top: 42%; width: 25%; }
  .pw-tile--maag { left: 42%; top: 71%; width: 26%; }
  .pw-tile--echoboy { left: 75%; top: 52%; width: 18%; }
}

@media (max-aspect-ratio: 1/1) {
  .pw-scene { background: radial-gradient(ellipse at 79% 24%, #23346e 0, transparent 48%), radial-gradient(ellipse at 20% 53%, #4c1545 0, transparent 52%), #080714; }
  .pw-atmosphere--blue { left: 23%; top: 9%; width: 86%; height: 38%; }
  .pw-atmosphere--pink { left: -14%; top: 38%; width: 89%; height: 28%; }
  .pw-ground-light { left: 12%; top: 63%; width: 79%; height: 3%; }
  .pw-destination { left: 29%; top: 15%; width: 66%; transform: perspective(1200px) rotateX(8deg) rotateY(-15deg) rotateZ(-6deg); }
  .pw-tile--soothe { left: 2%; top: 6%; width: 27%; }
  .pw-tile--decapitator { left: 66%; top: 8%; width: 28%; }
  .pw-tile--proq { left: 6%; top: 31%; width: 46%; }
  .pw-tile--maag { left: 9%; top: 50%; width: 53%; }
  .pw-tile--echoboy { left: 66%; top: 52%; width: 26%; }
  .pw-copy-shade { background: linear-gradient(0deg, #08071466, transparent 48%); }
}
@media (max-aspect-ratio: 2/3) {
  .pw-destination { left: 25%; top: 18%; width: 72%; }
  .pw-tile--soothe { left: 3%; top: 8%; width: 25%; }
  .pw-tile--decapitator { left: 67%; top: 9%; width: 28%; }
  .pw-tile--proq { left: 5%; top: 28%; width: 49%; }
  .pw-tile--maag { left: 8%; top: 43%; width: 58%; }
  .pw-tile--echoboy { left: 66%; top: 44%; width: 29%; }
  .pw-ground-light { top: 54%; }
}

/* Each clear solid shell follows its own interface's width and height. */
.pw-capsule { --shell-pad: clamp(4px, .55vw, 9px); --shell-radius: clamp(11px, 1.25vw, 23px); position: relative; width: 100%; padding: var(--shell-pad); border-radius: var(--shell-radius); background: linear-gradient(145deg, #f1f6ff19, #c7d7ff04 40%, #a0b4df16); box-shadow: 3px 5px 0 #c3d7ff18, 6px 10px 0 #6c6f9025, 9px 18px 29px #0008, 0 0 20px color-mix(in srgb, var(--accent) 13%, transparent); }
.pw-capsule > img { position: relative; z-index: 1; width: 100%; border-radius: 4px; box-shadow: none; }
.pw-capsule-depth { position: absolute; z-index: 0; inset: 0; border-radius: inherit; transform: translate(7px, 7px); background: linear-gradient(135deg, #e4f3ff33, #15172914 34%, #b8cfff25 74%, #fff5); box-shadow: inset -3px -3px 5px #c9e8ff63, 4px 6px 12px #0004; }
.pw-capsule-film { position: absolute; z-index: 2; inset: var(--shell-pad); border-radius: 4px; background: linear-gradient(128deg, #fff1, transparent 27% 77%, #d6e6ff0a); pointer-events: none; }
.pw-capsule-rim { position: absolute; z-index: 3; inset: 0; border-radius: inherit; border: 1px solid #e4edff75; box-shadow: inset 3px 3px 5px #f2faff8a, inset -4px -3px 6px #c0dcff57, inset 7px 6px 4px #13173159, inset -8px -7px 5px #090d2170; pointer-events: none; }
.pw-capsule-rim::before { content: ""; position: absolute; inset: 4px; border-radius: calc(var(--shell-radius) - 4px); border: 1px solid #d6e5ff3b; box-shadow: -1px -1px 2px #05091190, 1px 1px 2px #fff2; }
.pw-capsule-glint { position: absolute; z-index: 4; left: 10%; top: 1px; width: 37%; height: 2px; background: linear-gradient(90deg, transparent, #fff, transparent); filter: blur(.5px); opacity: .8; }
.pw-basic-material .pw-capsule-film { background: linear-gradient(128deg, #fff1, transparent 30% 75%, #d6e6ff10); }

