.wall.planetarium {
  position:relative;isolation:isolate;overflow:hidden;display:block;padding:0;
  background:#0e131a url('/planetarium.webp') center / 100% 100% no-repeat;
}
.planetarium-ambience,.planetarium-door,.planetarium-sign,.planetarium-reader,
.planetarium-reader-indicator,.planetarium-threshold-light,.planetarium-status {display:none}
.wall.planetarium :is(.planetarium-ambience,.planetarium-sign,.planetarium-door,
  .planetarium-reader-indicator,.planetarium-threshold-light) {
  display:block;position:absolute;pointer-events:none;
}
.wall.planetarium .planetarium-ambience {inset:0;width:100%;height:100%;z-index:2}
.wall.planetarium .planetarium-sign {
  left:77.3%;top:23.76%;translate:-50% -50%;
  color:#abc6d0;
  font:500 1.11cqw/1.1 system-ui,sans-serif;
  letter-spacing:.19em;text-transform:uppercase;
  text-shadow:0 0 .3cqw #85c2e765;
}
.wall.planetarium .planetarium-door {
  left:67.512%;top:29.397%;width:19.142%;height:34.832%;
  overflow:hidden;visibility:hidden;z-index:1;background:#080d14;
  box-shadow:inset 0 0 .42cqw #0b0d13;
}
.wall.planetarium.planetarium-open .planetarium-door {visibility:visible}
.planetarium-doorway {
  position:absolute;inset:0;
  background:
    linear-gradient(180deg,#0a10172d,transparent 25%,transparent 84%,#4c5b6825),
    #0c121a url('/planetarium-przejscie.webp') center / cover no-repeat;
}
.planetarium-leaf {
  position:absolute;top:0;bottom:0;width:51%;overflow:hidden;
  background-size:100cqw calc(100cqw * 2 / 3);
  background-image:url('/planetarium.webp');
  background-repeat:no-repeat;
}
.planetarium-leaf-left {
  left:0;width:49%;background-position:-67.512cqw -19.598cqw;
  box-shadow:inset -.10cqw 0 .07cqw #bdc9de30,.21cqw 0 .42cqw #01060abc;
}
.planetarium-leaf-right {
  left:49%;background-position:-76.89158cqw -19.598cqw;
  box-shadow:inset .1cqw 0 .07cqw #bdc9de23,-.21cqw 0 .42cqw #01060abc;
}
.wall.planetarium.planetarium-open .planetarium-leaf-left {transform:translateX(-102%)}
.wall.planetarium.planetarium-open .planetarium-leaf-right {transform:translateX(102%)}
.wall.planetarium.planetarium-unlocking .planetarium-leaf {
  transition:transform 1.78s cubic-bezier(.24,.70,.25,1) .19s;
}
.wall.planetarium .planetarium-threshold-light {
  left:65.1%;top:63.65%;width:23.8%;height:16.7%;
  opacity:0;z-index:2;
  background:radial-gradient(ellipse 49% 63% at 50% 0%,#8caec44d,transparent 99%);
  clip-path:polygon(12% 0,88% 0,100% 100%,0 100%);
  mix-blend-mode:screen;
}
.wall.planetarium.planetarium-open .planetarium-threshold-light {opacity:1}
.wall.planetarium.planetarium-unlocking .planetarium-threshold-light {transition:opacity 1.65s ease .30s}
.wall.planetarium .planetarium-reader:not([hidden]) {
  display:block;position:absolute;left:89.90%;top:46.92%;translate:-50% -50%;
  width:max(43px,3.45cqw);height:max(38px,4.2cqw);z-index:5;
  padding:0;border:0;background:transparent;cursor:pointer;
}
.wall.planetarium .planetarium-reader:disabled {cursor:default}
.wall.planetarium .planetarium-reader-indicator {
  left:89.90%;top:46.4%;translate:-50% -50%;
  width:.32cqw;height:.28cqw;min-width:2px;min-height:2px;
  border-radius:50%;z-index:3;
  background:#ed7564;
  box-shadow:0 0 .38cqw .08cqw #e35b3db0;
}
.wall.planetarium.is-card-ready .planetarium-reader-indicator {
  background:#ffd29a;box-shadow:0 0 .47cqw .12cqw #e5a65bbe;
}
.wall.planetarium.planetarium-open .planetarium-reader-indicator {
  background:#a2f5be;box-shadow:0 0 .58cqw .12cqw #4dde889e;
}
.wall.planetarium.planetarium-denied .planetarium-reader-indicator {
  animation:planetarium-reader-denied .49s ease-out;
}
@keyframes planetarium-reader-denied {
  25%,70% {background:#ffe2d3;box-shadow:0 0 .67cqw .19cqw #ef5c4cca}
  48% {background:#7b2823;box-shadow:0 0 .18cqw #99271f70}
}
.wall.planetarium .planetarium-status {
  display:block;position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);
}

/* Place each pool of light under its fixture as the print size changes. */
.wall.planetarium .frame {
  --cm:calc(100cqw / 895);
  --rim:calc(var(--border) * var(--cm));
  --planet-frame-width:calc((var(--width) + 2 * var(--border)) * var(--cm));
  --planet-frame-pitch:calc(var(--planet-frame-width) + 2.35cqw);
  --planet-lamp-x:45cqw;
  --planet-lamp-local:calc(var(--planet-lamp-x) - 45.3cqw - var(--slot) * var(--planet-frame-pitch) + var(--planet-frame-width) / 2);
  --planet-highlight:#fff4e5;
  --planet-shadow-x:.04cqw;
  position:absolute;
  z-index:1;
  translate:-50% -50%;
  left:calc(45.3% + var(--slot) * var(--planet-frame-pitch));
  top:37.3%;
  padding:var(--rim);
  border:0;
}
.wall.planetarium .frame:first-child {
  --planet-lamp-x:32.6cqw;
  --planet-highlight:#fff2e0;
  --planet-shadow-x:.13cqw;
}
.wall.planetarium .frame:nth-child(3) {
  --planet-lamp-x:57.3cqw;
  --planet-highlight:#fff5e9;
  --planet-shadow-x:-.12cqw;
}

.wall.planetarium:not(.is-taped) .frame:not(.is-zoomed) {
  --planet-finish:rgb(from var(--frame) calc(r * .77 + 5) calc(g * .65 + 3) calc(b * .55 + 2));
  background:var(--planet-finish);
  box-shadow:
    0 .09cqw .16cqw #100c0ab5,
    var(--planet-shadow-x) .24cqw .36cqw #120e0c9c,
    calc(2.4 * var(--planet-shadow-x)) .47cqw .66cqw #0b111655;
}
.wall.planetarium:not(.is-taped):not(.has-profile) .frame:not(.is-zoomed)::before {
  content:"";
  position:absolute;
  inset:0;
  border:var(--rim) solid;
  pointer-events:none;
  border-color:
    color-mix(in srgb,var(--planet-finish) 89%,#ab8d73)
    color-mix(in srgb,var(--planet-finish) 91%,#272621)
    color-mix(in srgb,var(--planet-finish) 69%,#1d1b1a)
    color-mix(in srgb,var(--planet-finish) 93%,#4b3e36);
}
.wall.planetarium.has-profile .frame:not(.is-zoomed) {
  --profile-finish:var(--planet-finish);
  --profile-exposure:.92;
  --profile-top:1.09;
  --profile-bottom:.73;
  --profile-right:.90;
  --profile-left:.96;
}

.wall.planetarium .frame:not(.is-zoomed) img {
  filter:url(#planetarium-print-light);
}
.wall.planetarium.with-mat .frame:not(.is-zoomed) .print-area {
  --mat-surface:#7b756f;
  --mat-bevel:clamp(.55px,.09cqw,1.4px);
  background-image:none;
}
.wall.planetarium.with-mat .frame:not(.is-zoomed) .print-area::after {
  box-shadow:
    inset var(--mat-bevel) var(--mat-bevel) 0 #1c140f84,
    inset calc(-1 * var(--mat-bevel)) calc(-1 * var(--mat-bevel)) 0 #a395843d;
}

/* Warm overhead light gives way to the cooler ambient light near the lower rail. */
.wall.planetarium .frame:not(.is-zoomed)::after {
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  background:
    radial-gradient(ellipse 9.2cqw 13.6cqw at var(--planet-lamp-local) -2.1cqw,
      var(--planet-highlight) 3%,transparent 98%),
    linear-gradient(180deg,#d5c2ae,#cbc0b8 47%,#a8a9ac 100%);
  mix-blend-mode:multiply;
}
.wall.planetarium .frame.is-zoomed {z-index:calc(6 + var(--zoom-order,0))}
@media(prefers-reduced-motion:reduce) {
  .wall.planetarium.planetarium-unlocking :is(.planetarium-leaf,.planetarium-threshold-light) {transition:none}
  .wall.planetarium.planetarium-denied .planetarium-reader-indicator {animation:none}
}
