@import url("./pour-art.css");

.pour-open { overflow:hidden; }
dialog.pour-scene {
  color-scheme:light;
  --scene-ink:#1b3c32;
  --scene-cream:#fff3cb;
  position:fixed;
  inset:0;
  width:100%;
  max-width:none;
  height:100%;
  height:100dvh;
  max-height:none;
  padding:0;
  margin:0;
  border:0;
  border-radius:0;
  overflow:auto;
  overscroll-behavior:contain;
  background:transparent;
  color:var(--scene-ink);
  box-shadow:none;
}
.pour-scene::backdrop { background:transparent; }
.scene-window { position:absolute; z-index:1; inset:0; overflow:hidden; }
.scene-landscape { position:absolute; inset:0; background:#ffd780 url("./assets/coastal-bar.webp") center bottom / cover no-repeat; transform-origin:50% 72%; }
.travel-sheet { position:absolute; z-index:0; top:0; left:0; pointer-events:none; transform-origin:0 0; }
.postcard-away { visibility:hidden; }
.travel-sheet .postcard { position:absolute; visibility:visible; }

.scene-frame {
  position:relative;
  isolation:isolate;
  width:100%;
  height:100%;
  min-height:22rem;
  overflow:hidden;
}
.scene-bar {
  position:absolute;
  z-index:3;
  inset: max(1.4rem,env(safe-area-inset-top)) max(3.5vw,env(safe-area-inset-right)) auto max(3.5vw,env(safe-area-inset-left));
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:1rem;
}
.scene-brand,.scene-controls,.scene-controls button,.scene-place,.scene-mode { display:flex; align-items:center; }
.scene-brand { gap:.5rem; font:800 clamp(1.1rem,1.8vw,1.55rem)/1 var(--display); letter-spacing:-.05em; }
.scene-brand img { flex:none; }
.scene-brand .domain-ending { color:#77381c; }
.scene-brand span,.scene-sound { white-space:nowrap; }
.scene-controls { gap:.55rem; }
.scene-controls button {
  gap:.45rem;
  min-height:2.7rem;
  justify-content:center;
  background:var(--scene-cream);
  color:var(--scene-ink);
  border:1.5px solid var(--scene-ink);
  border-radius:3rem;
  font-weight:700;
  font-size:.9rem;
  box-shadow:1px 2px 0 #17382f;
}
.scene-controls button:hover { background:#ffdf8e; }
.scene-controls button:focus-visible { outline:3px solid #fff7dd; box-shadow:0 0 0 6px var(--scene-ink); outline-offset:1px; }
.scene-sound { padding:.45rem .85rem; }
.scene-close { width:2.7rem; padding:0; }
.scene-copy {
  position:absolute;
  z-index:2;
  top:44%;
  left:max(6.7vw,calc((100vw - 91rem) / 2));
  width:43%;
  transform:translateY(-50%);
}
.scene-mode { display:inline-flex; width:max-content; margin-bottom:1.25rem; padding:.38rem .75rem; gap:.47rem; border:1px solid #314836; border-radius:3rem; background:#ffecad; color:#243f30; font-weight:700; font-size:.78rem; line-height:1.2; letter-spacing:.06em; text-transform:uppercase; }
.scene-mode i { width:.46rem; height:.46rem; background:#a84320; border-radius:50%; }
#scene-title { margin:0; font-family:var(--display); font-weight:800; letter-spacing:-.067em; }
#scene-title:focus { outline:0; }
.scene-intro { display:block; font-size:clamp(1.55rem,3.8vw,4.3rem); line-height:1.1; letter-spacing:-.06em; }
.scene-city { display:block; margin-top:.16em; font-size:clamp(3.4rem,min(8vw,12vh),9rem); line-height:.89; letter-spacing:-.06em; overflow-wrap:anywhere; text-wrap:balance; }
.scene-place { gap:.45rem; margin:1.3rem 0 0; font-size:clamp(1rem,1.6vw,1.45rem); font-weight:700; }
.scene-place .icon { width:1.1em; height:1.1em; }
.scene-artwork {
  position:absolute;
  z-index:1;
  right:1.5%;
  bottom:3%;
  width:53%;
  height:86%;
  pointer-events:none;
}
.scene-audio-notice { position:absolute; z-index:4; top:4.6rem; right:4%; background:var(--scene-cream); color:var(--scene-ink); padding:.5rem .8rem; }


@media (max-aspect-ratio: 9/10) {
  .scene-frame { min-height:30rem; }
  .scene-bar { inset: max(1rem,env(safe-area-inset-top)) 5% auto; }
  .scene-brand { gap:.35rem; }
  .scene-brand img { width:2.1rem; height:2.1rem; }
  .scene-copy { top:13%; left:7%; width:86%; transform:none; }
  .scene-mode { margin-bottom:.8rem; padding:.3rem .65rem; font-size:.73rem; }
  .scene-intro { font-size:clamp(1.5rem,5.3vw,2.5rem); }
  .scene-city { font-size:clamp(2.7rem,min(11.2vw,7.4vh),5.05rem); margin-top:.1em; }
  .scene-place { margin:.65rem 0 0; font-size:1rem; }
  .scene-artwork { right:0; bottom:4%; width:100%; height:58%; }
}
@media (max-height:33rem) and (min-aspect-ratio: 1/1) {
  .scene-bar { top:.65rem; }
  .scene-brand img { width:1.9rem; height:1.9rem; }
  .scene-mode { margin-bottom:.6rem; }
  .scene-copy { top:48%; }
  .scene-artwork { height:84%; right:0; }
}
@media (max-width:23rem) {
  .scene-sound { width:2.7rem; padding:0; }
  .scene-sound span { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); }
}
@media (min-width:23.01rem) and (max-width:28rem) {
  .scene-bar { gap:.4rem; }
  .scene-brand { font-size:1.05rem; }
  .scene-brand img { width:1.9rem; height:1.9rem; }
  .scene-sound { padding:.45rem .65rem; font-size:.82rem; }
}
.pour-scene[data-phase="arrival"] .pa-level { transform:translateY(381px); }
.pour-scene[data-phase="arrival"] .pa-crown { opacity:0; }
.pour-scene[data-phase="arrival"] .pa-can { transform:translate(153px,77px) rotate(-10deg); }
.pour-scene[data-phase="arrival"] .pa-can-shadow { opacity:.025; }
@media (prefers-reduced-motion:reduce) {
  .pour-scene[data-phase="arrival"] .pa-can { transform:translate(137px,351px) rotate(-2deg); }
}
