/* Liwa page room · 2026-12-02 · v1.6. Tokens only. */
/* a portrait film in the player fits the screen height (kit request) */
.player .stage video{max-height:calc(100dvh - 160px)}
/* the map: live labels on the 3D model, the key under it */
.map{position:relative;container-type:inline-size}
.map .lead{position:absolute;inset:0;width:100%;height:100%;pointer-events:none}
.map .lead line{stroke:var(--ink);stroke-width:1px;vector-effect:non-scaling-stroke}
.map .pin{position:absolute;display:grid;place-items:center;width:4.4cqw;height:4.4cqw;margin:-2.2cqw 0 0 -2.2cqw;border-radius:50%;color:#fff;text-decoration:none;font:600 2.2cqw/1 var(--display)}
.map .pin:hover,.map .pin:focus-visible{box-shadow:0 0 0 2px #fff}
.map .lab{position:absolute;transform:translateY(-50%);font:500 clamp(13px,1.15cqw,18px)/1 var(--display);color:var(--ink);white-space:nowrap}
.map .lab.two{width:min-content;white-space:normal}
.map .lab.l{transform:translate(-100%,-50%)}
.key{margin-top:var(--s3);row-gap:var(--s2)}
.key p{margin:0}
.key-h{font:600 var(--t-body)/1.35 var(--display)}
.key .t-small{margin-top:var(--s1);color:var(--quiet)}
.key-l{display:flex;flex-wrap:wrap;gap:var(--s1) var(--s4);align-items:center}
.key-l a{display:inline-flex;align-items:center;gap:var(--s1);min-height:44px;color:inherit;text-decoration:none;font:600 var(--t-body)/1.3 var(--display)}
.key-l a:hover{text-decoration:underline;text-underline-offset:4px}
.key-l i{display:grid;place-items:center;width:28px;height:28px;border-radius:50%;background:#D91C28;color:#fff;font:600 15px/1 var(--display)}
@media (max-width:1024px){.map .lab,.map .lead{display:none}}
@media (max-width:760px){.map .pin{pointer-events:none}.key-l{flex-direction:column;align-items:flex-start;gap:var(--s1)}}


.t-head+.t-body{margin-top:var(--s2)}
.note{margin:var(--s2) 0 0;color:var(--quiet)}
@media (max-width:760px){.pw .gal{margin-top:var(--s3)}.pw .gal .pic{margin-top:0}}
/* the village: the upright film beside its six photographs */
.filmgals>.stack{grid-column:5/-1;align-content:start}
@media (max-width:760px){.filmgals>.stack{grid-column:1/-1;margin-top:var(--s4)}}
.map .lab.l.two{text-align:right}
@media (max-width:760px){.pw .film-thumb+.words{margin-top:var(--s3)}}
.stack.hl{margin-top:var(--s5)}

/* v1.6 · the same opening as every page (WM4, 2 Dec): the film whole on both lines, the name on one line under it, 72 px at 1440 */
.open-t .t-section{margin:var(--s1) 0 0}
.open-t .t-section+.t-body{margin-top:var(--s3)}
.open-t .t-title{max-width:none}
@media (min-width:761px){
.film--open{aspect-ratio:auto;max-height:none;height:calc((min(100vw,var(--max)) - 2 * var(--m)) * .425)}
.film--open>video{left:var(--m);width:calc(100% - 2 * var(--m))}
.film--open .ctl{margin-left:var(--s2)}
.film--open+.opened .open-t{padding-top:var(--s2)}
.open-t .t-title{white-space:nowrap;font-size:clamp(40px,5vw,72px)}
.open-t .t-section{font-size:clamp(24px,2.5vw,36px)}}
@media (max-width:760px){.open-t .t-section{font-size:26px}}

/* v1.7 · no picture larger than its file, also on a 2x screen: the commercial's poster (1920 px) takes eight columns with the facts beside it;
   the two posts stand 591 px wide (BEGIN is a 1182 px file), each on its own outer line; on a phone the two lamp-post panels (860 px) share a row */
.lead .c8{grid-column:span 8}
.lead .facts{grid-column:9/-1;margin:0;display:grid;grid-template-columns:minmax(0,1fr);align-content:start;row-gap:var(--s4)}
.lead .facts>*{grid-column:1/-1}
@media (min-width:761px){.posts>.pic img{max-width:591px}.posts>.pic:last-child img{margin-left:auto}}
@media (max-width:760px){
.lead .c8,.lead .facts{grid-column:1/-1}.lead .facts{order:-1;grid-template-columns:repeat(2,minmax(0,1fr));column-gap:var(--g);row-gap:var(--s3);margin-bottom:var(--s4)}.lead .facts>*{grid-column:auto}
.road{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:var(--g)}.road>.pic{width:auto;margin:0}.road>.pic:nth-child(2){grid-column:1/-1;order:-1}}

/* v1.8 · live 3D: the still stays until the canvas draws; buttons and one line under it */
.live3d{margin:0}
.l3-w{position:relative;overflow:hidden}
.l3-w>img{display:block;width:100%;height:100%;object-fit:contain}
.l3-w>canvas{position:absolute;inset:0;width:100%;height:100%;visibility:hidden;cursor:grab;touch-action:pan-y}
.l3-w>canvas:active{cursor:grabbing}
.live3d.is-live canvas{visibility:visible}.live3d.is-live .l3-w>img{visibility:hidden}
.l3-w>.l3-pic{position:absolute;inset:0;margin:auto;width:100%;height:100%;object-fit:contain;background:var(--ink);visibility:visible!important}
.l3-bar:not(:has(button:not([hidden]):not(.l3-turn))){margin:0}
.l3-bar{margin-top:var(--s3);flex-wrap:wrap}
.l3-bar .btn[aria-pressed=true]{--bg:#D91C28;color:#fff}
.l3-bar .btn:focus-visible{outline:2px solid var(--focus);outline-offset:4px}
.live3d .note{max-width:76ch}
/* the key visual in depth */
.kvd{margin:0;align-items:center}
.kvd .from8{grid-column:8/-1}
.kvd-w{position:relative;aspect-ratio:1/1;perspective:1500px;display:grid;place-items:center;container-type:inline-size;touch-action:pan-y}
.kvd-st{position:relative;width:66%;aspect-ratio:1600/2240;transform-style:preserve-3d;--yaw:0deg}
.kvd-l{position:absolute;display:block;visibility:hidden;max-width:none}
.kvd-l.on{visibility:visible}
.kvd.deep .kvd-st{transform:rotateX(-9deg) rotateY(calc(-40deg + var(--yaw))) scale(.98)}
.kvd.deep .kvd-l{transform:translateZ(calc((var(--i) - 4.5)*7cqw))}
.kvd.deep .kvd-w{cursor:grab}
@media (prefers-reduced-motion:no-preference){.kvd-st,.kvd-l{transition:transform .9s var(--ease-out)}.kvd-st.held{transition:none}}
.kvd-t>:not(.l3-bar){margin:0}.kvd-t .t-body{margin-top:var(--s2)}.kvd-t .t-label{margin-top:var(--s4)}
@media (max-width:760px){.kvd .from8{grid-column:1/-1;margin-top:var(--s3)}}
/* the numbers, in the festival's red and sand */
.nums{--r:#D91C28;--sand:#C4AB88}
.nrow{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:var(--s5) var(--g)}
.nrow+.nrow{margin-top:var(--s5)}
.nrow>*{border-top:4px solid var(--sand);padding-top:var(--s3)}
.nrow p{margin:0}.nums .num{font:600 56px/1 var(--display);letter-spacing:-.02em}
.nums .t-body{margin-top:var(--s2);max-width:34ch}.nums .src{margin-top:var(--s1);color:var(--quiet);max-width:44ch}
.n-big{grid-template-columns:repeat(12,minmax(0,1fr))}.n-big>*{grid-column:8/-1}
.n-big .n1:first-child{grid-column:1/8;grid-row:1/3;border-color:var(--r)}.n-big .n1:first-child .num{font-size:clamp(84px,12.9vw,186px);line-height:.88;letter-spacing:-.045em;margin-left:-.03em}
.n-big .n1+.n1 .num{font-size:clamp(44px,4.6vw,66px)}
@media (max-width:1024px){.nrow{grid-template-columns:repeat(2,minmax(0,1fr))}.n-big{grid-template-columns:minmax(0,1fr)}.n-big>*,.n-big .n1:first-child{grid-column:1/-1;grid-row:auto}.n-big .n1:first-child .num{font-size:clamp(72px,21vw,206px)}}
@media (max-width:520px){.nums .num{font-size:44px}}
.signs>.words{grid-column:1/5}.signs>.pic{grid-column:5/-1}
.drawn{display:flex;gap:var(--g);align-items:flex-start}.drawn>div{flex:var(--r) 1 0;min-width:0}.drawn .note{margin-top:var(--s2)}
.l3-turn{display:none}@media (max-width:760px){.l3-turn{display:inline-flex}.drawn{flex-direction:column;gap:var(--s3)}.drawn>div{flex:none;width:100%}}
.nightpair{align-items:end}.nightpair .from7{grid-column:7/-1}
@media (max-width:760px){.signs>.words,.signs>.pic,.nightpair .from7{grid-column:1/-1}.nightpair>.c3{grid-column:span 6}.nightpair{grid-template-columns:repeat(12,minmax(0,1fr))}}
.l3-n{display:block}
@media (max-width:760px){.nightpair .from7{margin-top:var(--s3)}.drawn .note,.live3d .note{margin-top:var(--s1)}}
@media (max-width:760px){.kit3{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:var(--g)}.kit3>.pic{width:auto;margin:0}.kit3>.pic:first-child{grid-column:1/-1}}

/* v1.8 pass · rhythm: words stay close to what they introduce, and a new place starts with more air */
.stack>.grid:has(>.c7:only-child)+*{margin-top:calc(var(--s3) * -1)}
.stack>*+[id]:not(:first-child){margin-top:var(--s4)}
.nightpair{align-items:start}

/* v1.9 · the bus is a 1221 px picture: up to its own size on a normal screen, smaller on a dense one; the two upright posters stand at 361 px (706 px file) */
.busheet{--bus:1216px}
@media (min-resolution:1.5dppx) and (min-width:1000px){.busheet{--bus:814px}}
/* kit 2.9.3, known fault 1: the sheet keeps its height before its picture arrives */
.busheet>.pic[data-sheet]>:is(.zoom,img){width:min(100%,var(--bus),calc(min(640px,72svh)*1.9228));max-width:100%}
.busheet>.pic[data-sheet]>.zoom>img{width:100%;max-width:100%}
.duo>.words{grid-column:1/6}.duo>.gal{grid-column:6/-1}
@media (max-width:760px){.duo>.words,.duo>.gal{grid-column:1/-1}.duo>.gal{flex-direction:row;margin-top:var(--s3)}.duo>.gal>.pic{flex:var(--r,1) 1 0;width:auto;margin:0}}
@media (max-width:420px){.nrow:not(.n-big) .num{font-size:clamp(28px,9.6vw,40px)}}

/* v1.9.1 · the bus on the page's ground, eight columns; its file is 1142 px, so it stands smaller on a dense screen */
.bus{align-items:end}.bus>.pic{grid-column:span 8}.bus>p{grid-column:9/-1;margin:0}
@media (min-resolution:1.5dppx) and (min-width:1000px){.bus>.pic{max-width:762px}}
@media (max-width:760px){.bus>.pic,.bus>p{grid-column:1/-1}.bus>p{margin-top:var(--s3)}}
