:root {
  --ink: #f3ead6;
  --mute: #9a8f7a;
  --ember: #d9783a;
  --blood: #8a2a22;
  --moss: #4a6a3a;
  --paper: #d8c9a4;
  --paper-dark: #1a140e;
  --void: #050304;
  --stamp: #7a1f18;
}

* { box-sizing: border-box; }
html, body {
  margin: 0;
  min-height: 100%;
  background: var(--void);
  color: var(--ink);
  font-family: "Iowan Old Style", Palatino, Georgia, serif;
}
body { overflow-x: hidden; }
html.modal-open, body.modal-open {
  overflow: hidden;
  overscroll-behavior: none;
}
body.exhibit-open .inhabitant { visibility: hidden; pointer-events: none; }

.void {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.void-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.22;
  filter: grayscale(0.35) contrast(1.15);
}
.void-grain {
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(0deg, transparent 0 2px, rgba(0,0,0,0.08) 2px 3px),
    radial-gradient(circle at 50% 40%, transparent 10%, #050304 78%);
}
#filaments {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.45;
}

.top-stamp {
  position: relative;
  z-index: 4;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  padding: max(0.7rem, env(safe-area-inset-top, 0px)) 1rem 0.7rem;
  mix-blend-mode: normal;
}
.mark {
  background: none;
  border: 0;
  color: var(--paper);
  font: 800 0.95rem/1 "Avenir Next", "Helvetica Neue", sans-serif;
  letter-spacing: 0.28em;
  cursor: pointer;
}
.top-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
}
.top-tools button,
.quiet-link {
  border: 1px dashed color-mix(in srgb, var(--paper) 40%, transparent);
  background: rgba(8, 6, 4, 0.55);
  color: var(--paper);
  font: 650 0.68rem/1 "Avenir Next", sans-serif;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.38rem 0.55rem;
  text-decoration: none;
  cursor: pointer;
}
.quiet-link { border-style: solid; opacity: 0.7; }

.stage {
  position: relative;
  z-index: 2;
  min-height: calc(100vh - 4rem);
}

.ring-wrap {
  position: relative;
  width: min(72vw, 620px);
  height: min(72vw, 620px);
  margin: 4vh auto 0;
}
.ring {
  position: absolute;
  inset: 8%;
  border-radius: 50%;
  border: 14px solid #1c1610;
  box-shadow:
    inset 0 0 0 2px #3a2c20,
    0 0 0 1px #6a4a30,
    0 0 80px rgba(217, 120, 58, 0.08);
  background:
    radial-gradient(circle at 50% 50%, rgba(10,8,6,0.15), rgba(5,3,4,0.92) 62%);
}
.ring.hot {
  box-shadow:
    inset 0 0 0 2px #6a3a20,
    0 0 0 1px var(--ember),
    0 0 90px rgba(217, 120, 58, 0.22);
}
.ring-core {
  position: absolute;
  inset: 28%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  pointer-events: none;
}
.ring-core p {
  margin: 0;
  max-width: 16ch;
  font: 600 0.92rem/1.35 Georgia, serif;
  color: var(--mute);
  font-style: italic;
}

.slip {
  position: absolute;
  width: min(230px, 42vw);
  padding: 0.7rem 0.75rem 0.8rem;
  background: color-mix(in srgb, var(--paper) 88%, #fff);
  color: #1b130c;
  box-shadow: 4px 8px 0 rgba(0,0,0,0.35);
  cursor: pointer;
  text-align: left;
  border: 0;
  transform-origin: 50% 50%;
}
.slip::after {
  content: "";
  position: absolute;
  inset: 6px;
  border: 1px solid rgba(80, 40, 20, 0.18);
  pointer-events: none;
}
.slip .stamp {
  font: 800 0.72rem/1.1 "Avenir Next", sans-serif;
  letter-spacing: 0.08em;
  color: var(--stamp);
}
.slip .sub {
  margin: 0.2rem 0 0.35rem;
  font: 650 0.62rem/1.2 "Avenir Next", sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #6a4a30;
}
.slip .line {
  margin: 0;
  font: 600 0.98rem/1.25 Georgia, serif;
}
.slip:hover { filter: contrast(1.05); }

.table-hint {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--mute);
  font-size: 0.85rem;
  margin: 1.4rem 0 2rem;
}

.inhabitant {
  position: fixed;
  right: 0.4rem;
  bottom: max(0.4rem, env(safe-area-inset-bottom, 0px));
  width: 92px;
  height: 122px;
  padding: 0;
  border: 2px solid #2a2016;
  background: #110d09;
  z-index: 5;
  cursor: pointer;
  opacity: 0.88;
}
.inhabitant img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: contrast(1.05);
}
.inhabitant.speak::after {
  content: "I live here now.";
  position: absolute;
  right: 100%;
  bottom: 12px;
  margin-right: 8px;
  width: 11rem;
  padding: 0.4rem 0.5rem;
  background: var(--paper);
  color: #1b130c;
  font: 600 0.78rem/1.25 Georgia, serif;
}
.inhabitant.speak.yo-talk::after {
  content: attr(data-line);
}

.inspect {
  position: fixed;
  z-index: 6;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: min(720px, 100%);
  max-height: min(78vh, 100dvh);
  overflow: auto;
  overscroll-behavior: contain;
  background: #efe2c4;
  color: #1b130c;
  padding: 0 1.15rem calc(1.6rem + env(safe-area-inset-bottom, 0px));
  box-shadow: 0 -16px 40px rgba(0,0,0,0.5);
}
.inspect-escape {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  justify-content: flex-end;
  padding: 0.55rem 0 0.35rem;
  background: #efe2c4;
}
.inspect-escape button {
  min-height: 44px;
  min-width: 44px;
  padding: 0.4rem 0.75rem;
  border: 2px solid #7a1f18;
  background: #7a1f18;
  color: #efe2c4;
  font: 800 0.68rem/1 "Avenir Next", sans-serif;
  letter-spacing: 0.1em;
  cursor: pointer;
}
.inspect[hidden] { display: none; }
.inspect-top {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
}
.inspect h1 {
  margin: 0.15rem 0 0.2rem;
  font-size: 1.55rem;
}
.inspect .kicker {
  margin: 0;
  font: 700 0.72rem/1 "Avenir Next", sans-serif;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--stamp);
}
.close-x {
  border: 0;
  background: none;
  font: 700 1.1rem/1 sans-serif;
  cursor: pointer;
  min-height: 44px;
  min-width: 44px;
}
.receipt {
  margin: 0.85rem 0;
  padding-top: 0.7rem;
  border-top: 1px dashed #8a6a40;
}
.receipt h3 {
  margin: 0 0 0.2rem;
  font-size: 0.86rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.receipt p { margin: 0.15rem 0; }
.receipt .src {
  color: #6a5340;
  font-size: 0.78rem;
}
.nearby-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.8rem;
}
.nearby-row button {
  border: 1px solid #6a4a30;
  background: #f6ead0;
  padding: 0.35rem 0.5rem;
  font: 700 0.68rem/1 "Avenir Next", sans-serif;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
}
.caption-banner {
  margin: 0.8rem 0 0;
  padding: 0.55rem 0.6rem;
  background: #1b130c;
  color: var(--paper);
  font: 800 0.78rem/1.3 "Avenir Next", sans-serif;
  letter-spacing: 0.08em;
}
.react-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 1rem;
}
.react-row button {
  border: 2px solid #7a1f18;
  background: transparent;
  color: #7a1f18;
  font: 800 0.68rem/1 "Avenir Next", sans-serif;
  letter-spacing: 0.1em;
  padding: 0.35rem 0.45rem;
  cursor: pointer;
}
.react-row button.on {
  background: #7a1f18;
  color: #efe2c4;
}

.records {
  position: relative;
  z-index: 2;
  max-width: 42rem;
  margin: 1rem auto 4rem;
  padding: 1rem;
  background: rgba(8,6,4,0.72);
  border: 1px solid #3a2c20;
}
.records h1 { margin-top: 0; }
.records a { color: #e0b070; }
.search-box {
  width: 100%;
  padding: 0.65rem;
  margin: 0.4rem 0;
  background: #120e0a;
  color: var(--ink);
  border: 1px solid #3a2c20;
  font-size: 1rem;
}
.doc-card {
  padding: 0.7rem 0;
  border-top: 1px solid #3a2c20;
}
.empty-state { color: var(--mute); }

.meta { color: #6a5340; font-size: 0.85rem; }

@media (max-width: 720px) {
  .top-stamp {
    flex-direction: column;
    align-items: stretch;
    gap: 0.45rem;
    padding: max(0.45rem, env(safe-area-inset-top, 0px)) 0.6rem 0.4rem;
  }
  .mark {
    letter-spacing: 0.2em;
    text-align: left;
  }
  .top-tools {
    width: 100%;
  }
  .top-tools button,
  .quiet-link {
    font-size: 0.62rem;
    letter-spacing: 0.06em;
    padding: 0.42rem 0.45rem;
    min-height: 36px;
  }
  .quiet-link { flex: 1 1 100%; text-align: center; }
  .stage {
    min-height: 0;
    padding: 0 0.4rem calc(5.5rem + env(safe-area-inset-bottom, 0px));
  }
  .ring-wrap {
    width: min(calc(100vw - 0.8rem), 360px);
    height: min(calc(100vw - 0.8rem), 58svh, 360px);
    margin: 0.2rem auto 0;
  }
  .ring { border-width: 10px; }
  .slip {
    width: min(118px, 34vw);
    padding: 0.5rem 0.5rem 0.55rem;
    font-size: 0.86em;
  }
  .slip .line { font-size: 0.9rem; }
  .inhabitant {
    width: 48px;
    height: 64px;
    right: 0.3rem;
    z-index: 3;
  }
  .table-hint {
    margin: 0.7rem 0.4rem 0;
    font-size: 0.78rem;
  }
  .inspect {
    width: 100%;
    max-height: 100svh;
    left: 0;
    transform: none;
  }
}

.exhibit {
  position: fixed;
  z-index: 8;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0.6rem;
  padding-bottom: max(0.6rem, env(safe-area-inset-bottom, 0px));
  background: rgba(5, 3, 4, 0.42);
  overscroll-behavior: contain;
}
.exhibit[hidden] { display: none; }
.yo-sheet {
  position: relative;
  display: flex;
  flex-direction: column;
  width: min(920px, 100%);
  max-height: min(92vh, 100dvh);
  overflow: hidden;
  background:
    repeating-linear-gradient(0deg, transparent 0 3px, rgba(80,40,10,0.03) 3px 4px),
    #efe2c4;
  color: #1b130c;
  box-shadow: 0 -18px 50px rgba(0,0,0,0.55);
  border: 2px solid #3a2416;
}
.yo-escape {
  position: sticky;
  top: 0;
  z-index: 3;
  flex: 0 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.55rem;
  background: #efe2c4;
  border-bottom: 1px solid #6a4a30;
}
.yo-back {
  min-height: 44px;
  padding: 0.4rem 0.7rem;
  border: 2px solid #7a1f18;
  background: #7a1f18;
  color: #efe2c4;
  font: 800 0.68rem/1 "Avenir Next", sans-serif;
  letter-spacing: 0.08em;
  cursor: pointer;
}
.yo-escape .close-x {
  position: static;
  color: #1b130c;
}
.yo-body {
  flex: 1 1 auto;
  overflow: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding: 0.75rem 1.1rem 1.4rem;
}
.yo-header {
  margin: 0 2rem 0.85rem 0;
  font: 800 0.72rem/1.3 "Avenir Next", sans-serif;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  overflow-wrap: anywhere;
  max-width: 100%;
}
.yo-header.lie { color: var(--stamp); }
.yo-header.true { color: #3a2416; }
.yo-stage {
  display: grid;
  grid-template-columns: minmax(180px, 240px) 1fr;
  gap: 0.9rem;
  align-items: start;
}
.yo-wheel-wrap {
  position: relative;
  width: min(220px, 56vw);
  height: min(220px, 56vw);
  margin: 0 auto;
}
.yo-pointer {
  position: absolute;
  top: -0.15rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  color: var(--stamp);
  font-size: 0.9rem;
}
.yo-wheel {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 10px solid #1c1610;
  box-shadow: inset 0 0 0 2px #6a4a30, 0 0 0 1px #3a2416;
  background:
    repeating-conic-gradient(
      from 0deg,
      #8a2a22 0 16.36deg,
      #d8c9a4 16.36deg 32.72deg,
      #4a6a3a 32.72deg 49.09deg,
      #d9783a 49.09deg 65.45deg
    );
  transform: rotate(var(--yo-turn, 0deg));
  transition: transform 0.65s cubic-bezier(0.16, 0.84, 0.32, 1);
}
.yo-wheel.spinning { transition-duration: 0.65s; }
.yo-hub {
  position: absolute;
  inset: 28%;
  border-radius: 50%;
  background: #efe2c4;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 3px #1c1610;
  z-index: 2;
}
.yo-hub button {
  border: 0;
  background: none;
  color: var(--stamp);
  font: 800 0.62rem/1.15 "Avenir Next", sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  max-width: 9ch;
}
.yo-ticks {
  display: flex;
  flex-wrap: wrap;
  gap: 0.28rem;
  justify-content: center;
  margin-top: 0.55rem;
}
.yo-tick {
  border: 1px dashed #6a4a30;
  background: #f6ead0;
  color: #3a2416;
  font: 800 0.58rem/1 "Avenir Next", sans-serif;
  letter-spacing: 0.06em;
  padding: 0.28rem 0.34rem;
  cursor: pointer;
}
.yo-tick.now {
  background: #7a1f18;
  color: #efe2c4;
  border-style: solid;
}
.yo-placard {
  position: relative;
  min-height: 16rem;
  padding: 0.7rem 0.75rem 0.9rem;
  background: color-mix(in srgb, var(--paper) 82%, #fff);
  border: 1px solid #6a4a30;
  box-shadow: 5px 7px 0 rgba(0,0,0,0.28);
}
.yo-placard.has-villain::before,
.yo-placard.kills-villain::before {
  content: "95% COMPLETE";
  position: absolute;
  right: 0.4rem;
  top: 2.4rem;
  font: 800 1.6rem/1 "Avenir Next", sans-serif;
  letter-spacing: 0.06em;
  color: rgba(138, 42, 34, 0.18);
  transform: rotate(-18deg);
  pointer-events: none;
}
.yo-placard.kills-villain::before {
  color: rgba(138, 42, 34, 0.28);
  text-decoration: line-through 4px #1b130c;
}
.yo-placard.is-hole {
  background:
    linear-gradient(#efe2c4, #efe2c4) padding-box,
    url("./media/year-one-missing.jpg") center/cover;
}
.yo-art {
  width: 100%;
  max-height: 11rem;
  object-fit: cover;
  object-position: center;
  display: block;
  margin-bottom: 0.55rem;
  filter: contrast(1.05) saturate(0.92);
  border: 1px solid #3a2416;
}
.yo-placard.is-hole .yo-art {
  opacity: 0.88;
  filter: grayscale(0.15) contrast(1.08);
}
.yo-stamp {
  margin: 0;
  font: 800 0.7rem/1 "Avenir Next", sans-serif;
  letter-spacing: 0.12em;
  color: var(--stamp);
}
.yo-official {
  margin: 0.35rem 0 0.2rem;
  font: 800 1.35rem/1.15 "Avenir Next", sans-serif;
  letter-spacing: 0.02em;
  overflow-wrap: anywhere;
}
.yo-official.villain {
  color: var(--stamp);
  text-decoration: underline wavy rgba(138, 42, 34, 0.45);
}
.yo-official.retired {
  color: #6a5340;
  text-decoration: line-through 3px var(--stamp);
}
.yo-official.hole {
  min-height: 4.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: transparent;
  background:
    radial-gradient(ellipse 70% 55% at 50% 50%, transparent 42%, #efe2c4 43%);
  text-shadow: none;
}
.yo-official.hole::after {
  content: "FILE NOT FOUND";
  color: var(--stamp);
  font: 800 0.95rem/1 "Avenir Next", sans-serif;
  letter-spacing: 0.16em;
  border: 3px solid var(--stamp);
  padding: 0.35rem 0.45rem;
  transform: rotate(-6deg);
}
.yo-actual {
  margin: 0.45rem 0 0;
  padding: 0.4rem 0.5rem;
  background: #1b130c;
  color: var(--paper);
  font: 800 0.95rem/1.25 "Avenir Next", sans-serif;
  letter-spacing: 0.04em;
  opacity: 0;
  transform: translateY(8px) rotate(-1deg);
}
.yo-actual.in {
  opacity: 1;
  transform: translateY(0) rotate(-1deg);
  transition: opacity 0.2s ease, transform 0.25s cubic-bezier(0.2, 1.4, 0.4, 1);
}
.yo-note {
  margin: 0.55rem 0 0;
  font: 500 0.92rem/1.4 Georgia, serif;
  opacity: 0;
}
.yo-note.in { opacity: 1; transition: opacity 0.35s ease 0.12s; }
.yo-ad {
  margin-top: 0.9rem;
  padding: 0.55rem 0.65rem;
  border: 2px dashed #7a1f18;
  background: repeating-linear-gradient(135deg, #f6ead0 0 8px, #efe2c4 8px 16px);
}
.yo-ad .kicker {
  margin: 0;
  font: 700 0.62rem/1 "Avenir Next", sans-serif;
  letter-spacing: 0.14em;
  color: var(--stamp);
}
.yo-ad-title {
  margin: 0.2rem 0 0.15rem;
  font: 800 0.95rem/1.1 "Avenir Next", sans-serif;
}
.yo-ad .fine {
  margin: 0.25rem 0 0;
  font-size: 0.72rem;
  color: #6a5340;
}

@media (max-width: 720px) {
  .exhibit {
    align-items: stretch;
    justify-content: stretch;
    padding: 0;
    height: 100%;
    max-height: 100svh;
  }
  .yo-sheet {
    width: 100%;
    height: 100%;
    max-height: none;
    border-left: 0;
    border-right: 0;
    border-bottom: 0;
  }
  .yo-escape {
    padding-top: max(0.4rem, env(safe-area-inset-top, 0px));
  }
  .yo-body {
    padding: 0.65rem 0.75rem calc(1.2rem + env(safe-area-inset-bottom, 0px));
  }
  .yo-stage { grid-template-columns: 1fr; }
  .yo-wheel-wrap { width: 132px; height: 132px; }
  .yo-official { font-size: 1.05rem; letter-spacing: 0; }
  .yo-art { max-height: 7.2rem; }
  .yo-placard { min-height: 0; }
  .yo-header {
    margin-right: 0;
    letter-spacing: 0.05em;
    font-size: 0.62rem;
  }
  .yo-ticks {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.3rem;
    width: 100%;
    max-width: 100%;
  }
  .yo-body,
  .yo-stage,
  .yo-placard {
    max-width: 100%;
    overflow-x: hidden;
  }
  .yo-tick {
    min-height: 36px;
    min-width: 0;
    width: 100%;
    padding: 0.4rem 0.2rem;
    white-space: nowrap;
  }
  .yo-official {
    overflow-wrap: break-word;
    word-break: normal;
  }
  .yo-official.hole::after {
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    max-width: calc(100% - 0.4rem);
  }
  .yo-escape .close-x {
    border: 1px solid #6a4a30;
    font-size: 1.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .slip { transition: none; }
  .yo-wheel { transition: none; }
  .yo-actual, .yo-note { opacity: 1; transform: none; }
}

.mode-look .void,
.mode-look .inhabitant,
.mode-look .table-tools,
.mode-year-one .void,
.mode-year-one .inhabitant,
.mode-year-one .table-tools {
  display: none !important;
}
.mode-look .top-stamp {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to bottom, rgba(5,3,4,0.72), transparent);
  z-index: 6;
}
.mode-look .stage {
  min-height: 100svh;
  min-height: 100dvh;
  padding: 0;
}
.mode-year-one {
  overflow-x: hidden;
}
.mode-year-one .stage {
  min-height: 100svh;
  padding: 0 0 calc(0.6rem + env(safe-area-inset-bottom, 0px));
  overflow-x: hidden;
}
.mode-year-one .top-stamp {
  background: #efe2c4;
  color: #1b130c;
}
.mode-year-one .mark { color: #3a2416; }
.mode-year-one .quiet-link {
  color: #3a2416;
  background: rgba(255,255,255,0.45);
  border-color: #6a4a30;
}

.look {
  position: relative;
  min-height: 100svh;
  min-height: 100dvh;
  overflow: hidden;
  max-width: 100%;
}
.look-hit {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  text-align: left;
}
.look-frame {
  position: relative;
  height: 100svh;
  height: 100dvh;
  overflow: hidden;
}
.look-photo {
  position: absolute;
  inset: 0;
  margin: 0;
}
.look-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% 48%;
}
.look-dead {
  opacity: 0;
  transition: opacity 0.7s ease;
}
.look[data-beat="2"] .look-dead { opacity: 1; }

.look-stamp,
.look-fnf {
  position: absolute;
  margin: 0;
  pointer-events: none;
  font-family: "Avenir Next", "Helvetica Neue", sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0;
  transform: scale(1.45) rotate(-8deg);
  transition: opacity 0.12s linear, transform 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}
.look-stamp {
  top: 16%;
  left: 6%;
  max-width: calc(100vw - 12%);
  color: #8a1c14;
  font-size: clamp(2.1rem, 7vw, 5.2rem);
  font-weight: 900;
  line-height: 0.92;
  overflow-wrap: anywhere;
  text-shadow:
    2px 2px 0 #2a0806,
    0 0 0 1px #f3ead6;
  mix-blend-mode: multiply;
}
.look-fnf {
  right: 6%;
  bottom: 28%;
  color: #f3ead6;
  font-size: clamp(1.4rem, 4.4vw, 3rem);
  font-weight: 800;
  transform: scale(1.2) rotate(4deg);
}
.look[data-beat="1"] .look-stamp,
.look[data-beat="2"] .look-stamp {
  opacity: 1;
  transform: scale(1) rotate(-8deg);
}
.look[data-beat="2"] .look-fnf {
  opacity: 1;
  transform: scale(1) rotate(4deg);
}

.look-floor {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 5;
  display: grid;
  grid-template-columns: minmax(0, 280px) 1fr;
  gap: 0.7rem;
  align-items: end;
  padding: 0.7rem max(0.8rem, env(safe-area-inset-right, 0px)) max(0.85rem, env(safe-area-inset-bottom, 0px)) max(0.8rem, env(safe-area-inset-left, 0px));
  background: linear-gradient(to top, rgba(5,3,4,0.88) 20%, transparent);
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.look[data-beat="2"] .look-floor {
  opacity: 1;
  pointer-events: auto;
  transform: none;
}
.look-orch {
  margin: 0;
  display: grid;
  gap: 0.35rem;
}
.look-orch img {
  width: 100%;
  height: 92px;
  object-fit: cover;
  border: 1px solid rgba(243,234,214,0.28);
}
.look-orch figcaption {
  display: grid;
  gap: 0.12rem;
}
.look-orch .lie {
  color: var(--paper);
  font: 800 0.62rem/1.2 "Avenir Next", sans-serif;
  letter-spacing: 0.12em;
}
.look-orch .true {
  color: var(--ember);
  font: italic 600 0.86rem/1.2 Georgia, serif;
}
.look-doors {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  justify-content: flex-end;
}
.door {
  min-height: 44px;
  min-width: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.45rem 0.55rem;
  border: 1px solid color-mix(in srgb, var(--paper) 55%, transparent);
  background: rgba(8, 6, 4, 0.72);
  color: var(--paper);
  text-decoration: none;
  font: 750 0.72rem/1 "Avenir Next", sans-serif;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
}
.door.ghost { opacity: 0.72; font-weight: 600; letter-spacing: 0.08em; }
.door.again {
  background: transparent;
  border-style: dashed;
}

.yo-place {
  width: min(920px, 100%);
  max-width: 100%;
  max-height: none;
  min-height: calc(100svh - 3.2rem);
  margin: 0 auto;
  overflow-x: hidden;
  box-shadow: none;
}
.yo-place .yo-header {
  overflow-wrap: anywhere;
  max-width: 100%;
}
.yo-place .yo-escape {
  position: sticky;
  top: 0;
}

@media (max-width: 720px) {
  .mode-look .stage { padding: 0; }
  .look-photo img { object-position: 50% 42%; }
  .look-stamp {
    top: max(4.6rem, calc(env(safe-area-inset-top, 0px) + 3.4rem));
    left: 0.7rem;
    right: 0.7rem;
    max-width: calc(100vw - 1.4rem);
    font-size: clamp(1.45rem, 8.4vw, 2.15rem);
  }
  .look-fnf {
    right: auto;
    left: 0.7rem;
    bottom: 38%;
    font-size: clamp(1.15rem, 7vw, 1.7rem);
  }
  .look-floor {
    grid-template-columns: 1fr;
    gap: 0.45rem;
  }
  .look-orch img { height: 72px; }
  .look-doors {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    justify-content: stretch;
  }
  .look-doors .door {
    flex: none;
    width: 100%;
    letter-spacing: 0.06em;
    overflow: hidden;
    text-overflow: clip;
  }
  .yo-place {
    min-height: auto;
    max-height: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .look-dead, .look-stamp, .look-fnf, .look-floor { transition: none; }
  .look .look-stamp, .look .look-fnf, .look .look-floor { opacity: 1; transform: none; }
  .look .look-dead { opacity: 1; }
}
