#room.poem-room{background:#000;min-height:100svh;padding:0;display:grid;place-items:center;overflow:hidden;}
#room.poem-room[hidden]{display:none;}
#room.poem-room .nav{position:fixed;top:22px;left:22px;z-index:5;}
#room.poem-room .controls{display:none;}
#room.poem-room .demo{width:min(100vw,100svh);max-width:none;height:auto;max-height:none;display:block;aspect-ratio:auto;border:0;border-radius:0;box-shadow:none;background:none;overflow:visible;transform:none;filter:none;position:relative;}
.poem-scene{position:relative;width:100%;aspect-ratio:1;overflow:hidden;background:#000;isolation:isolate;}
.poem-canvas{position:absolute;inset:0;}
.poem-background,.poem-screen img{position:absolute;inset:0;display:block;width:100%;height:100%;max-width:none;user-select:none;pointer-events:none;}
.poem-background{filter:brightness(.75);transition:filter .6s ease;}
.poem-screen{position:absolute;inset:0;width:100%;height:100%;border:0;border-radius:0;padding:0;margin:0;min-width:0;background:transparent;cursor:pointer;box-shadow:none;filter:brightness(.75);transition:filter .6s ease;}
.poem-screen:focus-visible{outline:none;filter:brightness(.9);}
.poem-scene.has-selection .poem-background,.poem-scene.has-selection .poem-screen{filter:brightness(.2);}
.poem-scene.has-selection .poem-screen.is-selected{filter:brightness(1.1);}
.poem-instruction{position:absolute;bottom:16px;left:0;right:0;margin:0;text-align:center;pointer-events:none;font:300 12px/1.4 'Segoe UI',sans-serif;color:rgba(232,232,225,.7);text-shadow:0 1px 5px #000;}
.poem-status{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);}
@media(prefers-reduced-motion:reduce){.poem-background,.poem-screen{transition:none;}}

.poem-static{position:absolute;left:72.568%;top:24.083%;width:15.152%;height:14.354%;pointer-events:none;mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 190 180'%3E%3Cpath fill='white' d='M7 22 L170 0 Q177 0 178 7 L185 143 Q186 149 180 152 C130 171 62 181 14 176 Q5 176 4 169 L0 33 Q0 25 7 22 Z'/%3E%3C/svg%3E");mask-size:100% 100%;mask-repeat:no-repeat;filter:brightness(.75);transition:filter .6s ease;}
.poem-scene.has-selection .poem-static{filter:brightness(.2);}
@media(prefers-reduced-motion:reduce){.poem-static{transition:none;}}



/* Paragraph numbers follow the Notion copy, independently of screen positions. */
.poem-copy{position:absolute;left:10%;top:32%;width:80%;margin:0;color:#fff;text-align:right;font:400 clamp(24px,3.04vw,38px)/1.3 'Bookman Old Style','Bookman',Georgia,serif;letter-spacing:0;text-wrap:pretty;word-break:normal;overflow-wrap:normal;hyphens:none;text-shadow:0 1px 5px rgba(0,0,0,.4);pointer-events:none;}
.poem-copy[hidden]{display:none;}
.poem-copy[data-state="1"]{left:35%;top:20%;width:61%;}
.poem-copy[data-state="2"]{left:5%;top:10%;width:71%;text-align:left;}
.poem-copy[data-state="3"]{left:24%;top:41%;width:72%;}
.poem-copy[data-state="4"]{left:5%;top:30%;width:80%;text-align:left;}
.poem-copy[data-state="5"]{left:8%;top:12%;width:80%;text-align:left;}
.poem-scene.has-selection~.poem-instruction{display:none;}
@media(min-width:701px) and (max-height:1050px){.poem-copy[data-state="0"]{left:5%;top:22%;width:90%}.poem-copy[data-state="3"]{left:4%;top:40%;width:92%}}
@media(max-width:700px){.poem-copy{font-size:clamp(12px,3.04vw,24px);line-height:1.25}}

@media(min-width:701px) and (max-height:1050px){.poem-copy{line-height:1.22}}

.poem-static-trigger{position:absolute;left:72.568%;top:24.083%;width:15.152%;height:14.354%;border:0;border-radius:0;padding:0;background:transparent;cursor:pointer;clip-path:polygon(4% 12%,90% 0%,94% 4%,98% 80%,95% 85%,65% 95%,8% 99%,2% 94%,0% 18%);}
.poem-static-trigger:focus-visible{background:rgba(255,255,255,.12);outline:none;}
.poem-scene.has-selection .poem-static.is-selected{filter:brightness(1.1);}
.poem-watch{position:absolute;left:50%;top:54%;transform:translateX(-50%);width:max-content;max-width:90%;padding:0 0 18px;border:0;border-bottom:1px solid rgba(255,255,255,.85);border-radius:0;background:transparent;color:#fff;font:400 clamp(26px,3.5vw,44px)/1.3 'Bookman Old Style','Bookman',Georgia,serif;cursor:pointer;letter-spacing:.02em;}
.poem-watch[hidden]{display:none;}.poem-watch:focus-visible{outline:1px solid white;outline-offset:10px;}
.poem-cinema{position:fixed;inset:0;width:100vw;height:100dvh;max-width:none;max-height:none;margin:0;padding:0;border:0;background:#000;color:white;overflow:hidden;}
.poem-cinema[open]{display:grid;place-items:center;}.poem-cinema::backdrop{background:#000;}
.poem-player{width:min(1120px,90vw,calc(82dvh * 16 / 9));aspect-ratio:16/9;background:#000;}
.poem-player iframe{display:block;width:100%;height:100%;border:0;}
.poem-cinema-close{position:absolute;top:22px;left:22px;z-index:2;width:44px;height:44px;padding:0;border:1px solid #777;background:#000;color:#fff;font:28px/1 Georgia,serif;cursor:pointer;}
