/* Saturday matinee: flat spot colors, ink outlines, and offset print shadows. */
:root {
  --sea:#164b73; --dark:#122740; --paper:#fff7e5; --cream:#fffaf0;
  --red:#a72232; --gold:#ffc94f; --ink:#132b46; --line:#d6bbaa;
  --sky:#a9dcea; --print-red:#c22d38; --header-height:76px;
}
html { scroll-padding-top:.65rem; }
header {
  position:relative; z-index:20;
  background:var(--cream); color:var(--ink);
  border-bottom:3px solid var(--ink); box-shadow:0 3px 0 #ffbd38;
}
.top { min-height:69px; }
.brand { color:var(--red); }
.star { color:var(--red); }
.top div a { display:inline-block; padding:.28rem .15rem; font-weight:750; }
.top div a:hover { color:var(--red); }
.skip { position:fixed; z-index:25; }
a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible,summary:focus-visible {
  outline:3px solid var(--sea); outline-offset:4px;
}
.studio-hero {
  background:var(--sky); color:var(--ink); border-bottom:3px solid var(--ink);
}
.studio-hero:after {
  background:radial-gradient(circle,#164b731d 1px,transparent 1.4px) 0 0/8px 8px;
  opacity:1;
}
.studio-grid h1 {
  color:var(--red); letter-spacing:-.068em; line-height:.94; margin-bottom:1.85rem;
  text-shadow:2px 2px 0 var(--cream),4px 4px 0 var(--cream),6px 6px 0 var(--ink);
}
.studio-grid h1 em { color:var(--ink); text-shadow:none; }
.studio-grid h1 span { color:var(--red); }
.eyebrow { color:var(--ink); }
.eyebrow span { background:var(--red); }
.studio-grid .sub { color:var(--ink); }
.cta {
  color:var(--ink); background:var(--gold); border:2px solid var(--ink);
  border-radius:6px; box-shadow:4px 4px 0 var(--ink);
}
.cta:hover { background:#ffdf85; }
.studio-link { color:var(--ink); }
.mascot,.character-art {
  background:#ffd280; border:3px solid var(--ink); outline:0;
}
.mascot {
  isolation:isolate;
  background:radial-gradient(circle at center,#ffd995 0 53%,#ec6260 53.5% 65%,#ffe29f 65.5% 100%);
  box-shadow:6px 7px 0 var(--ink);
}
.mascot-portrait { box-shadow:0 0 0 2px #fff5d8; }
.mascot:before,.mascot:after { color:var(--red); text-shadow:1px 1px 0 var(--cream); }
.mascot-name { color:var(--ink); }
.mascot-name b { color:var(--red); }
.label,.tag,.production-body span,.creator-name span { color:var(--red); }
.production,.workshop-grid article,.entries article {
  border:2px solid var(--ink); background:var(--cream); box-shadow:4px 5px 0 var(--ink);
}
.production:hover {
  border-color:var(--ink); box-shadow:4px 5px 0 var(--red);
}
.production-art,.pic { border-bottom:2px solid var(--ink); }
.game-art { background:#d5eff4; }
.character { border:2px solid var(--ink); background:#ffe099; }
.character h2 i { color:var(--sea); }
.turntable { background:radial-gradient(ellipse at 50% 68%,#e7f7fa,#b1e2ed 55%,#9ccfdf); }
.box-grid a:first-child { background:#ffdf9a; }
.box-grid a:last-child { background:#f9d3da; }
.controls { background:#e6f3fa; }
.toy-controls button { border-color:var(--sea); background:#fff6e5; }
.toy-controls button[aria-pressed=true] { color:#fff; }
footer { background:var(--ink); border-top:4px solid var(--print-red); }
@media(max-width:580px) {
  :root { --header-height:108px; }
  .top { min-height:0; padding-block:10px; gap:4px; }
  .top div { gap:2px 13px; }
  .top div a { padding:.35rem 0; }
  .studio-grid h1 { font-size:clamp(3.15rem,14vw,5.3rem); }
}

/* The five destinations share one marquee and a consistent shelf layout. */
.top div { flex-wrap:wrap; }
.shelf-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
.shelf-grid .production { height:100%; }
.shelf-grid .production-body h3 {
  margin:0; font-size:clamp(1.26rem,2.7vw,1.88rem); line-height:1.3;
}
.shelf-grid .production-body .pending { text-decoration:none; color:#45556a; }
.games,.threads,.diary { border-top:2px solid var(--ink); }
.shelf-illustration { position:relative; height:clamp(230px,34vw,360px); overflow:hidden; border-bottom:2px solid var(--ink); }
.walk-art { background:#ade4f0; isolation:isolate; }
.walk-art svg { width:100%; height:100%; position:absolute; inset:0; }
.walk-sun { position:absolute; width:19%; aspect-ratio:1; border-radius:50%; background:var(--gold); top:13%; right:15%; border:2px solid var(--ink); }
.walk-art .mascot-portrait { position:absolute; width:20%; min-width:66px; max-width:104px; left:43%; bottom:13%; border:2px solid var(--ink); transform:rotate(-8deg); }
.detective-art { background:#20334e; }
.detective-art img { object-fit:contain; image-rendering:pixelated; }
.print-preview { display:block; height:240px; background:#d4eafa; border:2px solid var(--ink); overflow:hidden; }
.print-preview img { width:100%; height:100%; object-fit:contain; display:block; }
.poster-print { background:#f8cf85; }
.print-shelf p,.studio-news p { margin:.7rem 0 0; }
.studio-news { padding:1rem 1.2rem; border:2px solid var(--ink); background:#ffe399; margin-bottom:1.9rem; }
.studio-news h3,.diary-subhead { margin:.2rem 0 .55rem; font-size:1.28rem; }
@media(max-width:580px) {
  .top div { gap:2px 12px; }
  .shelf-grid { grid-template-columns:1fr; }
  .shelf-illustration { height:250px; }
}
.movie-links { display:flex; flex-wrap:wrap; gap:.4rem 1rem; }
.movie-links a { font-weight:800; font-size:.875rem; text-underline-offset:.17em; }
.movie-links a:first-child { color:var(--red); }

/* Inside the screening room: artwork never overlaps the external player's controls. */
.screening-room { margin:1.25rem 0 2.35rem; border:3px solid var(--ink); background:#17172a; box-shadow:5px 6px 0 var(--ink); }
.theater-stage {
  position:relative; isolation:isolate; display:flex; flex-direction:column; align-items:center;
  background:#211d32 url("media/screening-room.svg") 50% 50% / 100% 100% no-repeat;
  padding:clamp(25px,6vw,82px) 0 clamp(89px,15vw,183px);
}
.show-marquee {
  position:relative; color:#ffe3a7; font:800 clamp(.7rem,1.4vw,1rem)/1.4 Georgia,serif; letter-spacing:.16em; text-align:center;
  padding:.45rem clamp(.4rem,2vw,1.3rem); background:#47192e; border:1px solid #e0a657; border-radius:3px;
  margin:0 0 clamp(7px,1.6vw,18px); box-shadow:0 2px 0 #1a1023; max-width:90%;
}
.show-marquee span { color:#ffb952; margin:0 .2em; }
.screen-proscenium {
  width:min(65%,786px); padding:clamp(3px,1vw,10px);
  background:#271b2b; border:2px solid #e3ae67; border-radius:4px; box-shadow:0 0 0 3px #291525,0 0 35px #ffc66c49;
}
.screen-player { aspect-ratio:16/9; min-height:200px; background:#11101a; }
.screen-player iframe { display:block; width:100%; height:100%; min-height:200px; border:0; }
.theater-seats {
  position:absolute; bottom:0; left:0; width:100%; height:clamp(76px,14vw,168px);
  background:url("media/theater-seats.svg") 50% 100% / 100% 100% no-repeat; pointer-events:none;
}
.show-caption { border-top:2px solid #e0a657; background:#fff3d8; color:#192c46; padding:.7rem clamp(.65rem,2.6vw,1.65rem); display:flex; flex-wrap:wrap; gap:.25rem .9rem; justify-content:space-between; align-items:center; }
.show-caption>div { display:flex; flex-wrap:wrap; gap:0 .9rem; align-items:center; }
.show-label { color:#a72232; font-size:.85rem; font-weight:850; }
.film-title { font-size:clamp(.92rem,2.15vw,1.2rem); font-weight:850; }
.show-caption a { font-weight:780; font-size:.875rem; text-underline-offset:.19em; }
@media(max-width:640px) {
  .theater-stage { background-size:132% 100%; padding-top:36px; }
  .screen-proscenium { width:calc(100% - 22px); }
  .theater-seats { background-size:160% 100%; }
  .show-marquee { letter-spacing:.07em; }
}

/* Phone preview: size the screen before painting the scenery. */
.screening-room,.theater-stage,.screen-proscenium,.screen-player { min-width:0; max-width:100%; }
.screen-player { position:relative; overflow:hidden; }
.screen-player iframe { position:absolute; inset:0; width:100%; height:100%; min-height:0; }
.show-caption>div,.film-title { min-width:0; overflow-wrap:anywhere; }
.top>div { min-width:0; max-width:100%; }
.top a { white-space:nowrap; }
.intro,.entries>* { min-width:0; }
.studio-grid h1 { font-size:clamp(4rem,10vw,9rem); }
@media(max-width:640px) {
  .theater-stage { padding-bottom:clamp(64px,16vw,100px); }
  .theater-seats { height:clamp(59px,15vw,94px); }
  .screen-proscenium { width:calc(100% - 16px); }
  .show-caption>div { gap:0 .42rem; }
  .show-caption { padding:.55rem .6rem; }
}
@media(max-width:580px) {
  .studio-grid h1 { font-size:clamp(2.75rem,13.2vw,5.3rem); }
  .top { max-width:calc(100vw - 32px); }
  .top div { gap:2px 11px; }
  .top div a { font-size:.8rem; }
  .intro .studio-link { margin-left:.85rem; }
}
@media (orientation:landscape) and (max-height:540px) {
  :root { --header-height:45px; }
  .top { min-height:42px; flex-direction:row; align-items:center; gap:7px 12px; padding-block:2px; }
  .top div { gap:4px 12px; }
  .top .brand { font-size:.93rem; }
  .top div a { font-size:.78rem; padding:.2rem 0; }
  .screening-room { border-width:2px; }
  .theater-stage { padding:6px 0 28px; background-size:100% 100%; }
  .show-marquee { font-size:.62rem; padding:1px .45rem; margin:0 0 3px; }
  .screen-proscenium {
    width:min(calc(100% - 18px), max(366px, calc((100vh - var(--header-height) - 102px) * 1.7778 + 10px)));
    width:min(calc(100% - 18px), max(366px, calc((100svh - var(--header-height) - 102px) * 1.7778 + 10px)));
    padding:3px;
  }
  .theater-seats { height:28px; background-size:100% 100%; }
  .show-caption { padding:.27rem .6rem; line-height:1.25; }
  .show-caption .film-title,.show-caption a,.show-label { font-size:.8rem; }
}
@media (orientation:landscape) and (max-height:540px) {
  .screen-proscenium {
    width:min(calc(100% - 18px), max(366px, calc((100vh - var(--header-height) - 120px) * 1.7778 + 10px)));
    width:min(calc(100% - 18px), max(366px, calc((100svh - var(--header-height) - 120px) * 1.7778 + 10px)));
  }
}
@media (orientation:landscape) and (max-height:350px) {
  .theater-stage { padding-top:4px; padding-bottom:20px; }
  .show-marquee { display:none; }
  .theater-seats { height:20px; }
}

/* The street-facing Art Deco cinema and its two opening doors. */
.cinema { margin:1.25rem 0 2.35rem; }
.cinema [hidden] { display:none !important; }
.cinema .screening-room { margin:0; }
.cinema-front {
  position:relative; isolation:isolate; overflow:hidden; min-height:0; aspect-ratio:1100/560;
  background:#16203b; border:3px solid var(--ink); box-shadow:5px 6px 0 var(--ink);
}
.facade { position:absolute; inset:0; background:url("media/cinema-facade.svg") center/100% 100% no-repeat; }
.facade-title {
  position:absolute; inset:32% 17.5% auto; text-align:center; color:#8b223a;
  font:900 clamp(1.1rem,4.1vw,3.5rem)/1.06 Georgia,serif; letter-spacing:.055em;
  text-shadow:1px 1px 0 #fff0bd; white-space:nowrap;
}
.facade-title>span { font-size:.53em; vertical-align:14%; color:#8f3047; }
.facade-title small { display:block; margin:.55em auto 0; font:800 clamp(.55rem,1.2vw,.95rem)/1.3 system-ui,sans-serif; letter-spacing:.07em; color:#422339; }
.entrance {
  position:absolute; inset:53% 35.7% 16.1%; display:flex; perspective:440px;
  border:clamp(2px,.4vw,5px) solid #edb474; background:#281b2d; box-shadow:0 0 0 2px #351e30;
}
.lobby-glow {
  position:absolute; inset:0;
  background:radial-gradient(ellipse at 50% 90%,#efaa62,#5b2f4c 52%,#2b223b 86%);
}
.door {
  width:50%; position:relative; height:100%; border:2px solid #4a2438;
  background:repeating-linear-gradient(90deg,#773b42 0 5px,#945045 6px 16px,#ad6852 17px 25px);
  box-shadow:inset 0 0 0 3px #b47452;
  transition:transform .48s cubic-bezier(.3,.08,.27,1);
}
.door-left { transform-origin:left center; }
.door-right { transform-origin:right center; }
.door:before {
  content:""; position:absolute; inset:8% 18% 34%; border:2px solid #d4ad79;
  background:repeating-linear-gradient(140deg,#3d6877 0 19px,#5e8d98 20px 26px,#3d6877 27px 43px);
}
.door:after { content:""; position:absolute; top:61%; height:18%; width:4px; border-radius:9px; background:#ffc675; }
.door-left:after { right:12%; }.door-right:after { left:12%; }
.cinema-ticket {
  position:absolute; z-index:2; left:50%; bottom:6%; transform:translateX(-50%);
  cursor:pointer; white-space:nowrap; min-height:43px; color:var(--ink); background:#ffcf60;
  font:800 clamp(.82rem,1.7vw,1.03rem)/1.2 system-ui,sans-serif;
  border:2px solid var(--ink); box-shadow:3px 4px 0 #1b182e; border-radius:5px; padding:.52rem 1.05rem;
}
.cinema-ticket:hover { background:#ffe2a0; }
.cinema-ticket:focus-visible { outline-color:#fff2d4; }
.cinema-front.is-opening .door-left { transform:rotateY(-87deg); }
.cinema-front.is-opening .door-right { transform:rotateY(87deg); }
.cinema-front.is-opening .facade { animation:push-in .7s ease-in both; }
.cinema-front.is-opening .cinema-ticket { opacity:0; transition:opacity .18s; }
@keyframes push-in { 0%,32% {transform:scale(1);opacity:1} 100%{transform:scale(1.14);opacity:.12} }
.cinema-actions { flex-wrap:wrap; gap:.3rem .85rem !important; }
.cinema-actions button {
  text-decoration:underline; text-underline-offset:.19em; border:0; padding:0;
  background:none; color:var(--ink); font:inherit; font-size:.875rem; font-weight:780; cursor:pointer;
}
@media(max-width:640px) {
 .cinema-front { aspect-ratio:4/3; }
 .facade-title { font-size:clamp(.95rem,4.6vw,2rem); inset:34% 10% auto; }
 .facade-title small { margin-top:.4em; }
 .cinema-ticket { padding:.43rem .75rem; bottom:4%; }
}
@media (orientation:landscape) and (max-height:540px) {
 .cinema-front { width:min(100%,calc((100svh - var(--header-height) - 22px) * 1.9)); margin:auto; aspect-ratio:1100/560; }
 .facade-title { font-size:clamp(1rem,4.2vh,2.5rem); inset:34% 14% auto; }
}
@media (prefers-reduced-motion:reduce) {
 .cinema-front.is-opening .facade,.cinema-front.is-opening .cinema-ticket,.door { animation:none; transition:none; }
}

/* Approved photographic artwork. The player fits the real projection opening. */
.cinema-photo .cinema-front {
  aspect-ratio:3/2;
  width:min(100%,960px);
  margin-inline:auto;
}
.cinema-photo .facade {
  background-image:url("media/cinema-vegas.webp");
  transform-origin:54% 77%;
}
.cinema-photo .cinema-ticket { bottom:6%; }
.cinema-photo .cinema-front.is-opening .facade { animation:cinema-walk-in .68s ease-in both; }
@keyframes cinema-walk-in {
  0% { transform:scale(1); opacity:1; }
  65% { opacity:1; }
  100% { transform:scale(1.29); opacity:.08; }
}
.cinema-photo .theater-stage {
  display:block;
  width:100%;
  aspect-ratio:1672/941;
  min-height:278px;
  padding:0;
  background:#1e120e url("media/cinema-luxury.webp") 50% 50% / 100% 100% no-repeat;
}
.cinema-photo .screen-proscenium {
  position:absolute; left:11.67%; top:8.61%;
  width:76.6%; height:72%; padding:0; border:0; border-radius:0; box-shadow:none; background:#130e0b;
}
.cinema-photo .screen-player { width:100%; height:100%; min-height:0; aspect-ratio:auto; }
.cinema-photo-seats { display:none; }
@media(max-width:640px) {
  .cinema-photo .facade { background-image:url("media/cinema-vegas-small.webp"); }
  .cinema-photo .theater-stage { background-image:url("media/cinema-luxury-small.webp"); }
  .cinema-photo .cinema-ticket { bottom:3%; }
}
@media(orientation:portrait) and (max-width:520px) {
  .cinema-photo .cinema-photo-seats {
    display:block; position:absolute; inset:83.5% 0 0; pointer-events:none;
    background:#20110a url("media/cinema-luxury-small.webp") 50% 100% / 100% auto no-repeat;
  }
}
@media(orientation:landscape) and (max-height:540px) {
  .cinema-photo .cinema-front {
    width:min(100%,calc((100svh - var(--header-height) - 16px) * 1.5));
  }
  .cinema-photo .screening-room {
    width:min(100%,max(441px,calc((100svh - var(--header-height) - 42px) * 1.7768)));
    margin-inline:auto;
  }
  .cinema-photo .theater-stage { min-height:0; }
  .cinema-photo .cinema-ticket { bottom:4%; }
}
@media(orientation:landscape) and (max-height:350px) {
  .cinema-photo .theater-stage { aspect-ratio:auto; height:calc(100svh - var(--header-height) - 34px); min-height:205px; }
  .cinema-photo .screen-proscenium { top:5%; height:83%; }
}
@media(prefers-reduced-motion:reduce) {
  .cinema-photo .cinema-front.is-opening .facade { animation:none; }
}
@media(orientation:landscape) and (max-height:350px) {
  .cinema-photo .show-caption { padding-block:.12rem; }
}

/* The ticket links to a dedicated auditorium page. */
a.cinema-ticket { display:inline-flex; align-items:center; justify-content:center; text-decoration:none; }
.cinema-page { background:#1b1420; }
.cinema-page .cinema-page-main { margin:clamp(8px,2vh,1.55rem) auto 1rem; }
.cinema-page .top a[aria-current="page"] { text-decoration:underline; text-underline-offset:.25em; }
@media (orientation:landscape) and (max-height:540px) {
  .cinema-page .cinema-page-main { margin-block:3px; }
}

/* The homepage wordmark, scaled for the common masthead. */
.top .brand { display:inline-flex; align-items:center; flex-shrink:0; }
.brand-wordmark { display:block; color:var(--ink); font:900 clamp(1.62rem,3.1vw,2.05rem)/.91 system-ui,-apple-system,"Hiragino Sans","Yu Gothic",sans-serif; letter-spacing:-.075em; }
.brand-wordmark>span,.brand-wordmark>strong { display:block; }
.brand-wordmark>span { font-size:.58em; letter-spacing:-.05em; margin-bottom:.16em; }
.brand-wordmark>strong { color:var(--red); font-weight:900; }
@media(orientation:landscape) and (max-height:540px) {
  .brand-wordmark { font-size:1.55rem; }
}

/* Separate studio rooms with a shared, fixed navigation. */
.studio-subpage #main-content { min-height:65svh; margin-top:clamp(1.35rem,5vw,3.6rem); }
.studio-subpage .studio-page-title,.studio-doorways h2,.jipa-section-heading {
  margin:.2rem 0 .5rem; font:900 clamp(2rem,5vw,3.05rem)/1.12 system-ui,sans-serif;
  color:var(--ink);
}
.studio-subpage .top a[aria-current="page"] {text-decoration:underline; text-underline-offset:.25em;}
.studio-doorways {padding-block:clamp(1.4rem,4vw,3rem);}
.studio-doorway-grid {display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:.76rem;margin-top:1rem;}
.studio-doorway-grid a {
  display:grid; position:relative; row-gap:.27rem; min-height:8.5rem; padding:.75rem 1rem 1.25rem;
  border:2px solid var(--ink); box-shadow:3px 3px 0 var(--ink); border-radius:.33rem;
  color:var(--ink); background:#ffedb8; text-decoration:none; line-height:1.35;
}
.studio-doorway-grid a:nth-child(2n) {background:#fbe2d2;}
.studio-doorway-grid a:hover {background:#ffe092;}
.studio-doorway-grid strong {font-size:1.19rem;}
.studio-doorway-grid span {font-size:.84rem;}
.studio-doorway-grid .doorway-kicker {font-size:.67rem;letter-spacing:.08em;font-weight:800;}
.studio-doorway-grid .doorway-arrow {position:absolute; right:.62rem; bottom:.35rem;font-size:1rem;}

/* Keep the seven section tabs together on a phone without shrinking the logo. */
@media (max-width:580px) and (orientation:portrait) {
  .top { max-width:calc(100vw - 24px); }
  .top>div { flex-wrap:nowrap; column-gap:clamp(4px,1.45vw,10px); }
  .top>div a { font-size:clamp(.7rem,3.25vw,.8rem); }
}

@media (max-width:1100px) {
  .studio-doorway-grid {grid-template-columns:repeat(3,minmax(0,1fr));}
}
@media (max-width:600px) {
  .studio-doorway-grid {grid-template-columns:repeat(2,minmax(0,1fr));}
}

.studio-category-grid {grid-template-columns:repeat(2,minmax(0,1fr));}
.studio-category-heading {margin:2rem 0 .7rem;}
.top a[aria-current="location"] {text-decoration:underline; text-underline-offset:.25em;}

.studio-home .top a[aria-current="page"]{text-decoration:underline;text-underline-offset:.25em}

/* Keep the brand out of the iOS status-bar fade in the installed phone app.
   navigator.standalone covers iOS sessions that do not match the display-mode query. */
@media (orientation: portrait) and (max-width: 600px) {
  .ios-home-app body > header:has(> nav.top .brand-wordmark) {
    padding-block-start: 32px;
  }
}
@supports (-webkit-touch-callout: none) {
  @media (display-mode: standalone) and (orientation: portrait) and (max-width: 600px) {
    body > header:has(> nav.top .brand-wordmark) {
      padding-block-start: 32px;
    }
  }
}
