.wall.attic {
  position:relative;
  isolation:isolate;
  overflow:hidden;
  display:block;
  padding:0;
  background:#c4a889;
  --attic-daylight:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='daylight' color-interpolation-filters='sRGB'%3E%3CfeComponentTransfer%3E%3CfeFuncR type='linear' slope='.96'/%3E%3CfeFuncG type='linear' slope='1.004'/%3E%3CfeFuncB type='linear' slope='1.029' intercept='.014'/%3E%3C/feComponentTransfer%3E%3C/filter%3E%3C/svg%3E#daylight");
}
.wall.attic::before {
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  background:url('/poddasze.webp') center / 100% 100% no-repeat;
  filter:var(--attic-daylight);
}
.wall.attic::after {
  content:"";position:absolute;pointer-events:none;
  left:58.724%;top:63.281%;width:13.802%;height:21.875%;
  background:url('/poddasze-drzwiczki.webp') center / 100% 100% no-repeat;
  filter:var(--attic-daylight);
  mask-image:linear-gradient(90deg,transparent,#000 10%,#000 87%,transparent),
    linear-gradient(transparent,#000 7%,#000 87%,transparent);
  mask-composite:intersect;
}
.attic-shadows,.attic-swallows {display:none}
.wall.attic :is(.attic-shadows,.attic-swallows) {
  display:block;
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  pointer-events:none;
  z-index:2;
}
.wall.attic .attic-shadows {mix-blend-mode:multiply}
.wall.attic .attic-swallows {z-index:1}
.wall.attic .frame {
  --cm:calc(100cqw / 530);
  --attic-light:.86;
  --attic-top-border:color-mix(in srgb,var(--frame) 89%,#c8ad89);
  --attic-frame-white:color-mix(in srgb,#d8d0ba calc(100% * var(--attic-light)),#a89885);
  --attic-mat-white:color-mix(in srgb,#d0bea8 calc(100% * var(--attic-light)),#a28e74);
  position:absolute;
  z-index:1;
  left:calc(49% + var(--slot) * (var(--width) + 9) * var(--cm));
  top:42%;
  translate:-50% -50%;
  border-color:
    var(--attic-top-border)
    color-mix(in srgb,var(--frame) 81%,#dcc395)
    color-mix(in srgb,var(--frame) 68%,#51463b)
    color-mix(in srgb,var(--frame) 72%,#554c42);
  box-shadow:-.16cqw .14cqw .20cqw #4733238c,-.39cqw .36cqw .56cqw #6e50254f;
}
.wall.attic .frame:first-child {--attic-light:.79}
.wall.attic .frame:nth-child(3) {--attic-light:.94}
.wall.attic .frame:not(.is-zoomed) {
  --profile-top:.95;
  --attic-top-border:color-mix(in srgb,var(--frame) 84%,#8b7b62);
}

/* Diffuse mat and painted moulding respond differently under the attic daylight. */
.wall.attic.with-mat .frame:not(.is-zoomed) .print-area {
  --mat-surface:var(--attic-mat-white);
}
.wall.attic[data-frame-color="#d1d0cb"]:not(.is-taped) .frame:not(.is-zoomed) {
  --frame:var(--attic-frame-white);
  --profile-finish:var(--attic-frame-white);
  --attic-top-border:color-mix(in srgb,var(--frame) 82%,#afa08f);
  --profile-right:1.04;
  --profile-bottom:.87;
  --profile-left:.91;
  border-color:
    var(--attic-top-border)
    color-mix(in srgb,var(--frame) 81%,#f7e9d7)
    color-mix(in srgb,var(--frame) 83%,#86796b)
    color-mix(in srgb,var(--frame) 87%,#a6947e);
}

.wall.attic.has-profile:not(.is-wood)[data-frame-color="#d1d0cb"] .frame:not(.is-zoomed) {
  --profile-finish:color-mix(in srgb,var(--attic-frame-white) 69%,#edecdd);
}

.wall.attic .frame:not(.is-zoomed) img {
  filter:saturate(.69) sepia(.10) contrast(.89) brightness(var(--attic-light));
}
.wall.attic .frame:not(.is-zoomed)::after {
  content:"";
  position:absolute;
  pointer-events:none;
  inset:0;
  background:url('/hotel-patyna.webp') center / 100% 100% no-repeat;
  opacity:.31;
}
.wall.attic .frame.is-zoomed {z-index:calc(4 + var(--zoom-order,0))}

.hotel-key{display:none}
.wall.attic .hotel-key:not([hidden]){
  display:block;position:absolute;inset:0;z-index:1;
  pointer-events:none;clip-path:inset(80.5% 0 0 0);
}
.hotel-key-pose{
  display:block;position:absolute;z-index:1;
  left:61.9%;top:80.9%;width:5.3%;
  transform:translate(2.25cqw,2.35cqw) rotate(-12deg);
  transform-origin:52% 50%;
}
.hotel-key-pose img{
  display:block;width:100%;height:auto;
  filter:saturate(.75) brightness(.86) drop-shadow(-.13cqw .15cqw .12cqw #4a3026ba);
}

.hotel-key-grab{display:none}
.wall.attic .hotel-key-grab:not([hidden]){
  display:block;position:absolute;z-index:3;
  left:66.8%;top:85.5%;translate:-50% -50%;
  width:max(44px,5.9cqw);height:max(44px,3.7cqw);
  padding:0;border:0;background:transparent;cursor:pointer;
}
.wall.attic .hotel-key-grab:focus-visible{outline-offset:-2px}
