body{padding:20px 18px;min-height:100svh;display:grid;align-content:safe center;justify-items:center}
#exit{position:fixed;z-index:4;right:8px;top:5px;width:44px;height:44px;border-radius:50%;display:grid;place-items:center;text-decoration:none;background:#36281ebf;color:#fff2cf;font:25px Georgia}
main{width:min(92vw,75svh,880px);container-type:inline-size;box-shadow:2px 4px 1px #c4ab83,4px 6px 2px #8c7659,0 12px 32px #20150970}
#station{aspect-ratio:1122/1402;padding:0;background:radial-gradient(ellipse at 65% 40%,transparent 55%,#bca07444)}
#station:before{width:6.5%}header,.monitor,.equipment,.tracks,footer{position:absolute}
header{left:8%;top:.4%;width:91%;height:10%;background:url(arte/bordado-solto.webp) top right/46% auto no-repeat;padding-left:7%}
h1{font-size:5.8cqw;line-height:1.15}header p{font-size:2.7cqw}
.monitor{left:8%;top:8%;width:88.7%;height:17.8%;display:block;padding:0;margin:0;background:none;border:0;border-radius:0;outline:0;box-shadow:none}
.monitor:after{content:'';position:absolute;inset:0;background:url(arte/visor.webp) center/100% 100%;pointer-events:none}
.monitor small{display:none}.monitor canvas{position:absolute;left:13%;top:19%;width:62.5%;height:66%;background-color:#251810;background-image:repeating-linear-gradient(0deg,transparent 0 6px,#bc805316 7px),repeating-linear-gradient(90deg,transparent 0 7px,#bb8c6322 8px)}
.needle{position:absolute;z-index:1;left:87.1%;top:32%;height:25%;width:.27%;background:#642f15;transform-origin:50% 100%;rotate:-35deg;pointer-events:none}
.equipment{display:contents}.deck,#open-sleeve{position:absolute;margin:0;padding:0;border:0;box-shadow:none}
.deck{left:8.1%;top:25.75%;width:52.15%;height:32.96%;background:url(arte/deck.webp) center/100% 100%}
.deck h2{position:absolute;left:18%;top:6.3%;width:64%;height:10%;background:none;font: bold 3.45cqw/1.1 Gaegu,cursive}
.cassete{display:none}.timeline{position:absolute;left:10%;top:62.4%;width:74%;height:9%;margin:0;font:1.7cqw Georgia;color:#ffddae}.timeline input{width:0}
.transport{position:absolute;inset:0;pointer-events:none}.transport button,.dial{position:absolute;pointer-events:auto}
.transport button{background:none;border:0;box-shadow:none!important;top:73%;width:16.5%;height:19%;min-height:0;color:#42260e;font-size:2.3cqw}
#prev{left:18%}#play{left:36%;width:23%;font-size:3.2cqw}#next{left:59.5%}
.transport .dial{top:72%;left:83.6%;width:13%;aspect-ratio:1;--angle:135deg;border-radius:50%;background:repeating-conic-gradient(from 40deg,#ac814b 0deg,#f6d398 48deg,#906532 112deg);border:2px ridge #a58452;box-shadow:1px 2px 3px #1b110b}
.dial:before{content:'';position:absolute;inset:6%;border-radius:50%;background:linear-gradient(#462d16,#462d16) center top/3px 24% no-repeat;transform:rotate(var(--angle))}.dial input{position:absolute;inset:0;opacity:0;width:100%;height:100%;margin:0;cursor:ew-resize}.dial:focus-within{outline:3px solid #d5a9df}
#open-sleeve{left:60.6%;top:24.6%;width:37.6%;height:29.25%;max-width:none;display:block;transform:none;background:url(arte/livreto.webp) center/100% 100%}
#open-sleeve:before,#open-sleeve img{display:none}#open-sleeve .inner-list{position:absolute;left:68%;top:24%;width:28%;font:1.65cqw/2.15 Gaegu;text-align:left;transform:rotate(-6deg)}
#open-sleeve span:last-child{position:absolute;top:100%;left:20%;width:60%;background:#f5e1c0;transform:rotate(-2deg);font:2.7cqw Gaegu;text-decoration:underline}
.tracks{left:13.8%;top:59.1%;width:82.8%;height:30%;padding:1.9% 2.5% 1.8% 7%;margin:0;box-shadow:none;border:0;background:url(arte/lista.webp) center/100% 100%}
.track{height:20%}.track button{height:100%;position:relative;isolation:isolate;gap:1.7cqw;padding:0 1.5cqw;min-height:0}.track img{width:7cqw;height:4.9cqw}.track strong{font-size:3.2cqw}.track small{font-size:2.35cqw}.track small:last-child{max-width:15cqw}
.is-current button{background:transparent}.is-current button:before{content:'';position:absolute;z-index:-1;inset:9% -1%;background:#ecac3e66;clip-path:polygon(1% 7%,27% 2%,54% 8%,99% 1%,100% 62%,98% 93%,76% 98%,51% 92%,1% 100%,0 53%)}
footer{inset:88.6% 2% 1.4% 5%;background:url(arte/renda.webp) right center/83% 100% no-repeat}
footer img{position:absolute;left:0;bottom:6%;width:22%;max-height:none;pointer-events:none}
footer button{position:absolute;left:42%;top:8%;width:40%;height:66%;background:url(arte/bilhete.webp) center/100% 100%;border:0;color:#733427;font:bold 3.3cqw Gaegu;text-decoration:underline}
@media(max-width:600px){body{padding:42px 10px 15px}main{width:min(100%,460px)}#station{aspect-ratio:auto;padding:3% 4% 2% 10%}header,.monitor,.deck,#open-sleeve,.tracks,footer{position:relative;left:auto;top:auto;width:100%;height:auto}header{padding:0;height:20cqw}h1{font-size:8cqw}header p{font-size:4.5cqw}.monitor{aspect-ratio:995/249}.deck{aspect-ratio:585/462}.deck h2{font-size:5.8cqw}.timeline{font-size:3.3cqw}.transport button,#play{font-size:4cqw}#open-sleeve{display:block;width:61%;aspect-ratio:422/410;margin:8px auto 26px}#open-sleeve .inner-list{font-size:2.4cqw}#open-sleeve span:last-child{font-size:4cqw}.tracks{padding:7px 3% 9px}.track{height:auto}.track button{min-height:48px}.track strong{font-size:4.5cqw}.track small{font-size:3.5cqw}.track small:last-child{max-width:19cqw}.track img{height:7cqw;width:8cqw}footer{inset:auto;height:23cqw}footer img{width:24%}footer button{width:54%;font-size:5cqw}.artwork figure:first-child img{height:35vh}}
html.embedded{color-scheme:light;background:transparent}
@media(min-width:601px){header{padding-left:8.3%}footer img{width:24%;bottom:8%}.tracks{padding-left:7.8%}}

/* A folha precisa de largura explícita dentro do contêiner de unidades cqw. */
main:has(#journal:not([hidden])){width:min(100%,calc((100svh - 110px)*.75))}
#leaf{width:100%;height:auto;max-height:none}

/* Janelas circulares da própria arte, centradas nos eixos do deck de 585 × 462. */
.carretel {
  position: absolute;
  top: 36.3636%;
  width: 10.9402%;
  height: 13.8528%;
  border-radius: 50%;
  background-image: url(arte/deck.webp);
  background-size: 914.0625% 721.875%;
  background-position-y: 42.2111%;
  pointer-events: none;
  animation: girar-carretel 2.6s linear infinite paused;
}
.carretel.esquerdo { left: 30.4274%; background-position-x: 34.1651%; }
.carretel.direito { left: 58.4615%; background-position-x: 65.643%; }
.fita-em-movimento .carretel { animation-play-state: running; }
@keyframes girar-carretel { to { transform: rotate(1turn); } }
@media (prefers-reduced-motion: reduce) {
  .carretel { animation: none; }
}

/* As duas folhas ocupam a mesma janela durante a virada. */
#paper { position: relative; aspect-ratio: 3 / 4; perspective: 1500px; perspective-origin: left center; }
#paper > img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; transform-origin: left center; backface-visibility: hidden; pointer-events: none; }

/* Páginas completas, inclusive as novas artes 1122 × 1402. */
#paper > img{object-fit:contain}
#journal nav{flex-wrap:wrap}#enlarge{font-size:18px}
#page-zoom{width:96vw;max-width:1180px;max-height:94svh;padding:12px;overflow:auto;overscroll-behavior:contain}
#zoom-image{display:block;width:1122px;max-width:none;height:auto}
#zoom-close{position:sticky;top:0;left:0;z-index:2;background:#ead1cb;border:1px solid #b59785;border-radius:4px;padding:8px 12px}
