.collection-dialog{position:fixed;inset:0;width:100vw;height:100svh;max-width:none;max-height:none;margin:0;padding:0;border:0;background:transparent;overflow:hidden;color:#142653;outline:none}
.collection-dialog::backdrop{background:transparent}
.collection-dialog[open]{display:grid;place-items:center}
.collection-window{position:relative;width:min(155.5556svh,calc(100vw - 48px),1344px);height:min(88.3333svh,764px);display:flex;flex-direction:column;background:#fff7df;border:3px solid #142653;border-radius:8px;box-shadow:7px 7px 0 #fb8ac1,7px 7px 0 3px #142653;overflow:hidden;isolation:isolate;container-type:inline-size;transform-origin:center;transform:scale(.85)}
.collection-titlebar{flex:0 0 auto;min-height:37px;display:grid;grid-template-columns:22px 1fr 22px;gap:15px;align-items:center;padding:5px 10px;border-bottom:3px solid #142653;background:repeating-linear-gradient(to bottom,#ff9bcc 0 2px,#142653 2px 2.75px,#ff9bcc 2.75px 5px)}
.collection-window-label{padding:3px 5px;font:400 clamp(11px,2.06cqw,16px)/1.25 System,Arial,sans-serif;text-align:center;text-wrap:balance;border:1.5px solid #142653;background:#fff7df}
.collection-close{display:grid;place-items:center;width:21px;height:21px;padding:0;background:#fff7df;border:2px solid #142653;border-radius:0;color:#142653;cursor:pointer;font:400 26px/17px Arial,sans-serif}
.collection-close span{position:relative;top:-1px}
.collection-close:hover{background:#54c9ff}
.collection-close:active{background:#fb8ac1}
.collection-close:focus-visible,.collection-button:focus-visible{outline:2px dashed #142653;outline-offset:4px}
.collection-zoom{width:21px;height:20px;border:2px solid #142653;background:linear-gradient(to bottom,#bbddff 0 4px,#142653 4px 5.5px,#bbddff 5.5px)}
.collection-body{flex:1;min-height:0;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:32px;padding:18px 28px;overflow:auto;overscroll-behavior:contain}
.collection-heading{margin:0 0 26px;font:700 10cqw/1 Prophet,Arial,sans-serif;letter-spacing:-.025em;text-align:right;white-space:nowrap}
.collection-artwork{min-width:0;min-height:0}
.collection-artwork img{display:block;width:100%;height:100%;min-height:0;object-fit:contain;object-position:right center}
.collection-copy{align-self:center;min-width:0;container-type:inline-size}
.collection-copy p{margin:0;font:400 clamp(18px,4.6cqw,26px)/1.45 System,Arial,sans-serif;text-align:right;text-wrap:pretty}
.collection-footer{display:flex;justify-content:flex-end;gap:16px;margin-top:26px;padding:0 3px 3px 0}
.collection-button{display:inline-flex;align-items:center;justify-content:center;height:26px;min-width:72px;padding:1px 12px 0;background:#fff7df;border:2px solid #142653;border-radius:5px;box-shadow:3px 3px 0 #142653,inset 0 3px 0 #fff;color:#142653;cursor:pointer;text-decoration:none;font:700 15px/1 Prophet,Arial,sans-serif;touch-action:manipulation}
.collection-enter{min-width:84px;background:#54c9ff;box-shadow:3px 3px 0 #142653,inset 0 0 0 2px #e9fbff}
.collection-button:hover{background:#ffe45c}
.collection-button:active{transform:translate(2px,2px);box-shadow:1px 1px 0 #142653,inset 0 0 0 2px #e9fbff}
.collection-grip{position:absolute;right:5px;bottom:5px;width:14px;height:12px;background:repeating-linear-gradient(135deg,transparent 0 3px,#142653 3px 4.5px,transparent 4.5px 7px);clip-path:polygon(100% 0,100% 100%,0 100%)}
.collection-dialog[data-transition] .collection-window{will-change:transform,opacity}
body.collection-window-open .room .glow-image{display:none}
body.collection-window-open .room .creature{animation:none}
body.collection-window-open .room .base-image{filter:none}
@media(max-width:800px){.collection-window{width:calc(100vw - 36px);height:calc(100svh - 40px)}.collection-titlebar{gap:8px}.collection-body{display:flex;flex-direction:column;gap:24px;padding:24px 20px}.collection-copy{flex:0 0 auto;width:100%}.collection-heading{margin-bottom:20px}.collection-artwork{flex:0 0 auto;width:100%}.collection-artwork img{height:auto}.collection-footer{gap:14px}}

/* The trailer has a manual play screen, within the original collection window. */
.collection-window [hidden]{display:none!important}
.collection-trailer{background:#ffe600;box-shadow:3px 3px #142653,inset 0 2px #fffbd5,0 0 8px #ff69bc,0 0 18px #ff91ce;white-space:nowrap}
@media(prefers-reduced-motion:no-preference){.collection-trailer{animation:collection-trailer-glow 1.8s ease-in-out infinite}}
@keyframes collection-trailer-glow{50%{box-shadow:3px 3px #142653,inset 0 2px #fffbd5,0 0 4px #ff69bc,0 0 10px #ff91ce}}
.collection-video-stage{flex:1;min-height:0;padding:20px 26px 22px;display:grid;grid-template-rows:minmax(0,1fr) auto;gap:18px;justify-items:center}
.collection-film{position:relative;height:100%;width:auto;aspect-ratio:4/3;max-width:100%;min-height:0;background:#142653;border:3px solid #142653;box-shadow:5px 5px #fb8ac1;isolation:isolate;overflow:hidden}
.collection-film video{display:block;width:100%;height:100%;object-fit:contain}
.collection-video-footer{display:flex;justify-content:flex-end;gap:16px;width:100%}
.collection-film-play{position:absolute;inset:50% auto auto 50%;transform:translate(-50%,-50%);width:70px;height:70px;display:grid;place-items:center;padding:0;border:3px solid #142653;border-radius:50%;background:#ffe600;box-shadow:3px 4px #142653,inset 0 0 0 3px #fffbd5;color:#142653;cursor:pointer}
.collection-film-play svg{width:28px;height:32px;margin-left:4px;fill:currentColor}
.collection-film-play:hover{background:#ff92ce}.collection-film-play:focus-visible{outline:3px solid white;outline-offset:5px}
.collection-film-loading,.collection-film-error{position:absolute;left:10px;right:10px;bottom:10px;margin:0;padding:8px;background:#fff7df;color:#142653;font:14px/1.3 System,Arial,sans-serif;text-align:center}
.collection-film-play[aria-busy=true]{cursor:progress}
@media(max-width:800px){.collection-footer{flex-wrap:wrap;gap:12px}.collection-video-stage{padding:16px;align-content:center;grid-template-rows:minmax(0,1fr) auto}.collection-film{width:100%;height:auto;align-self:center}.collection-film-play{width:55px;height:55px}.collection-video-footer .collection-button{min-height:36px}}
@media(max-width:800px){.collection-window:has(.collection-video-stage:not([hidden])){width:calc(100vw - 28px);height:auto;max-height:calc(100svh - 36px);transform:none}.collection-video-stage{flex:0 1 auto;grid-template-rows:auto auto;overflow:auto}.collection-video-footer{padding-right:3px}}

@font-face{font-family:'Altera Ancient';src:url('/permcollection/theatre/altera/fonts/PPAlteraAncient-Regular.otf') format('opentype');font-weight:400;font-style:normal;font-display:swap}
/* The homepage entrance uses the collection's painted wall and physical foil. */
@font-face{font-family:'Altera Text';src:url('/permcollection/theatre/altera/fonts/PPAlteraText-Regular.otf') format('opentype');font-weight:400;font-style:normal;font-display:swap}
.collection-window{
  width:min(1120px,calc(100vw - 48px));height:min(710px,calc(100svh - 54px));
  transform:none;border:17px solid transparent;border-radius:0;
  border-image:url('/permcollection/theatre/intro-assets/frame-v1.webp') 130 130 115 130 / 17px / 0 stretch;
  background:#5279c5 url('/permcollection/theatre/intro-assets/blue-wall-v7.svg') center/100% auto;
  box-shadow:4px 8px 14px #13264855;color:#fff6db;
}
.collection-titlebar{
  min-height:33px;padding:5px 6px 12px;gap:12px;
  background:transparent;border:0;grid-template-columns:25px 1fr 25px;
}
.collection-window-label{
  padding:0;border:0;background:transparent;color:#fff6db;
  font:400 14px/1.2 'Altera Text',Georgia,serif;
}
.collection-close{width:24px;height:24px;background:#fff6db;border:1px solid #152b51;box-shadow:1px 2px #14265366}
.collection-zoom{visibility:hidden}
.collection-grip{display:none}
.collection-body{
  display:grid;grid-template-columns:minmax(0, .9fr) minmax(0, 1.1fr);
  grid-template-rows:minmax(0,1fr);gap:clamp(22px,3cqw,40px);
  padding:12px clamp(20px,3cqw,38px) 24px;align-items:center;
}
.collection-copy{container-type:normal;align-self:center}
.collection-heading{
  font:400 clamp(36px,5.6cqw,66px)/.98 'Altera Ancient',Georgia,serif;
  margin:0 0 26px;letter-spacing:-.035em;text-align:left;
  white-space:normal;text-wrap:balance;color:#fff4b4;text-shadow:2px 3px 0 #243d7799;
}
.collection-copy p{
  font:400 clamp(17px,1.95cqw,22px)/1.4 'Altera Text',Georgia,serif;
  text-align:left;text-wrap:pretty;color:#fff9e8;text-shadow:0 1px 1px #263a7166;
}
.collection-artwork{align-self:stretch;display:flex;align-items:center;justify-content:center;min-height:0}
.collection-artwork img{width:100%;height:100%;object-position:center;object-fit:contain;filter:drop-shadow(3px 8px 3px #172a5e45)}
.collection-footer{justify-content:flex-start;margin-top:30px;gap:12px;flex-wrap:wrap;padding:0 3px 3px 0}
.collection-button{
  box-sizing:border-box;min-height:40px;height:auto;min-width:65px;padding:8px 14px;
  border-radius:0;border:2px solid #142653;background:#fff6db;
  font:400 18px/1.1 'Altera Text',Georgia,serif;
  box-shadow:3px 3px #142653,inset 0 2px #fff;
}
.collection-enter{background:#efacd0;min-width:72px}
.collection-trailer{background:#ffe600;box-shadow:3px 3px #142653,inset 0 2px #fffbd5,0 0 8px #ffe886,0 0 19px #fff4bf88}
@keyframes collection-trailer-glow{50%{box-shadow:3px 3px #142653,inset 0 2px #fffbd5,0 0 4px #ffe886,0 0 11px #fff4bf66}}
.collection-button:focus-visible,.collection-close:focus-visible{outline:2px dashed #fff9e8;outline-offset:5px}
.collection-video-stage{padding:10px 20px 16px;gap:20px}
.collection-film{border:2px solid #122d5a;box-shadow:0 0 0 1px #e0c37b;max-height:100%}
.collection-video-footer{justify-content:flex-end}
.collection-film-loading,.collection-film-error{font-family:'Altera Text',Georgia,serif;font-size:16px}
@media(max-width:800px){
  .collection-window{width:calc(100vw - 32px);height:calc(100svh - 44px)}
  .collection-heading{margin-bottom:20px}
  .collection-footer{gap:9px;margin-top:24px}
  .collection-button{font-size:16px;padding:8px 10px}
  .collection-artwork{width:100%}
  .collection-artwork img{height:100%}
  .collection-video-stage{grid-template-rows:minmax(0,1fr) auto}
  .collection-film{height:100%;width:auto}
  .collection-window:has(.collection-video-stage:not([hidden])){width:calc(100vw - 32px);height:calc(100svh - 44px)}
}
@media(max-width:620px){
  .collection-window{width:calc(100vw - 24px);height:calc(100svh - 30px);border-width:12px;border-image-width:12px}
  .collection-titlebar{padding:4px 2px 10px;gap:8px}
  .collection-window-label{font-size:12px}
  .collection-body{display:flex;flex-direction:column;gap:22px;padding:8px 15px 20px;align-items:stretch}
  .collection-artwork{order:0;flex:none;height:clamp(220px,68vw,330px);width:100%}
  .collection-copy{order:1;flex:none;width:100%}
  .collection-heading{font-size:38px;line-height:1;max-width:320px;margin:0 auto 20px;text-align:center}
  .collection-copy p{font-size:17px;line-height:1.4}
  .collection-footer{justify-content:center;gap:10px;margin-top:23px}
  .collection-button{min-height:42px;font-size:17px;padding:8px 12px}
  .collection-artwork img{height:100%;width:100%}
  .collection-video-stage{padding:12px 8px 14px;grid-template-rows:auto auto;align-content:center;overflow:auto}
  .collection-film{height:auto;width:100%}
  .collection-window:has(.collection-video-stage:not([hidden])){width:calc(100vw - 24px);height:auto;max-height:calc(100svh - 30px)}
}
