
/* V75: the selected "interlude transcript" direction keeps one reading stage
   and a deliberate, tap-controlled voice drawer. V76 restores the private
   room as a readable spatial layer beneath the left-weighted transcript veil. */
#fallingDaylightView.falling-daylight-v53 .falling-daylight-voice-archive {
  background:
    linear-gradient(90deg,rgba(6,9,18,.9) 0%,rgba(7,10,19,.78) 52%,rgba(8,12,22,.4) 76%,rgba(9,13,23,.24) 100%),
    linear-gradient(180deg,rgba(6,9,18,.38),rgba(8,10,18,.2) 56%,rgba(15,12,20,.62)),
    #090d17;
}

#fallingDaylightView.falling-daylight-v53 .falling-daylight-voice-archive::before {
  inset:-10px;
  background:url("./assets/falling-daylight/v72/room-memory.webp") 62% center / cover no-repeat;
  filter:blur(1px) saturate(.72) brightness(.68);
  opacity:.42;
}

.falling-daylight-voice-shell {
  display:flex;
  flex-direction:column;
  gap:0;
  padding:max(12px,env(safe-area-inset-top)) 18px max(12px,env(safe-area-inset-bottom));
}

.falling-daylight-voice-header {
  flex:0 0 64px;
  min-height:64px;
  border-bottom:1px solid rgba(222,194,210,.23);
}

.falling-daylight-voice-header h2 {
  margin:0;
  color:#f2e6ec;
  font-size:24px;
  letter-spacing:.18em;
}

.falling-daylight-voice-header > p {
  color:rgba(236,203,173,.8);
  font-family:Georgia,"Noto Serif SC","Songti SC",serif;
  font-size:12px;
  font-variant-numeric:tabular-nums;
  letter-spacing:.12em;
}

.falling-daylight-voice-stage {
  flex:1 1 auto;
  min-height:0;
  display:flex;
  flex-direction:column;
  gap:0;
  padding:24px 20px 14px;
  overflow:hidden;
  border:0;
  border-radius:0;
  background:linear-gradient(90deg,rgba(7,10,19,.84) 0%,rgba(8,11,20,.68) 58%,rgba(8,11,20,.16) 100%);
  box-shadow:none;
  backdrop-filter:none;
}

.falling-daylight-voice-stage::after {
  display:none;
}

.falling-daylight-voice-now {
  flex:1 1 auto;
  min-height:0;
  overflow:hidden;
}

.falling-daylight-voice-now > span {
  color:rgba(208,191,224,.76);
  font-size:11px;
  letter-spacing:.1em;
}

.falling-daylight-voice-now h3 {
  margin:9px 0 14px;
  color:#fbf2ed;
  font-size:clamp(26px,7.2vw,32px);
  line-height:1.18;
  letter-spacing:.04em;
}

.falling-daylight-voice-now small {
  display:block;
  color:#d7b58e;
  font-size:13px;
  letter-spacing:.12em;
}

.falling-daylight-voice-now p {
  min-height:0;
  margin:18px 0 0;
  padding:0 2px 12px 0;
  overflow-y:auto;
  color:rgba(248,242,240,.9);
  font-size:16px;
  line-height:1.82;
  letter-spacing:.015em;
  scrollbar-width:none;
  -webkit-overflow-scrolling:touch;
}

.falling-daylight-voice-now p::-webkit-scrollbar,
.falling-daylight-voice-list::-webkit-scrollbar {
  width:0;
  height:0;
}

.falling-daylight-voice-shell.is-drawer-expanded .falling-daylight-voice-now p {
  overflow:hidden;
  touch-action:none;
}

.falling-daylight-voice-transport {
  flex:0 0 78px;
  display:grid;
  grid-template-columns:68px minmax(0,1fr);
  align-items:center;
  gap:18px;
  padding-top:10px;
}

.falling-daylight-voice-play {
  width:64px;
  min-width:64px;
  height:64px;
  min-height:64px;
  align-self:center;
  justify-self:center;
  background:conic-gradient(#d8aa78 var(--voice-progress),rgba(229,211,238,.18) 0);
  box-shadow:0 0 0 1px rgba(231,208,222,.34),0 0 24px rgba(190,137,172,.14);
}

.falling-daylight-voice-play > span {
  background:linear-gradient(145deg,rgba(39,35,52,.98),rgba(13,15,24,.98));
}

.falling-daylight-voice-transport-copy {
  min-width:0;
  display:grid;
  gap:9px;
}

.falling-daylight-voice-progress {
  width:100%;
  height:2px;
  overflow:hidden;
  background:rgba(226,215,229,.2);
}

.falling-daylight-voice-progress > span {
  display:block;
  width:0;
  height:100%;
  background:linear-gradient(90deg,#d9a978,#c0a2dc);
  box-shadow:0 0 10px rgba(211,165,205,.42);
  transition:width .18s linear;
}

.falling-daylight-voice-status {
  min-height:18px;
  align-self:auto;
  color:rgba(237,224,219,.64);
  font-size:11px;
  letter-spacing:.08em;
}

.falling-daylight-voice-collection {
  position:relative;
  flex:0 0 clamp(184px,26vh,228px);
  min-height:0;
  display:flex;
  flex-direction:column;
  gap:0;
  overflow:hidden;
  border:0;
  border-top:1px solid rgba(216,165,120,.66);
  border-radius:0;
  background:linear-gradient(180deg,rgba(28,27,40,.94),rgba(12,14,24,.98));
  box-shadow:0 -18px 44px rgba(0,0,0,.3);
  transition:flex-basis .28s ease;
}

.falling-daylight-voice-collection.is-expanded {
  flex-basis:clamp(340px,53vh,486px);
}

.falling-daylight-voice-drawer-toggle {
  flex:0 0 44px;
  width:100%;
  min-height:44px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding:0;
  color:rgba(229,185,151,.9);
  font-size:24px;
  line-height:1;
  border:0;
  border-bottom:1px solid rgba(227,211,225,.08);
  background:transparent;
}

.falling-daylight-voice-drawer-label {
  color:rgba(231,220,226,.5);
  font-size:11px;
  letter-spacing:.2em;
  transition:opacity .18s ease;
}

.falling-daylight-voice-collection.is-expanded .falling-daylight-voice-drawer-label {
  opacity:0;
}

.falling-daylight-voice-drawer-icon {
  width:18px;
  color:rgba(229,185,151,.9);
  font-size:24px;
  text-align:center;
}

.falling-daylight-voice-drawer-toggle:focus-visible {
  outline:1px solid rgba(229,185,151,.82);
  outline-offset:-2px;
}

.falling-daylight-voice-list {
  flex:1 1 auto;
  min-height:0;
  display:block;
  overflow:hidden;
  padding:0 14px max(8px,env(safe-area-inset-bottom));
  scrollbar-width:none;
}

.falling-daylight-voice-collection.is-expanded .falling-daylight-voice-list {
  overflow-y:auto;
  overscroll-behavior:contain;
  -webkit-overflow-scrolling:touch;
}

.falling-daylight-voice-item {
  width:100%;
  min-height:70px;
  display:grid;
  grid-template-columns:42px minmax(0,1fr) 48px;
  align-items:center;
  gap:12px;
  padding:12px 8px;
  color:rgba(244,236,233,.7);
  border:0;
  border-bottom:1px solid rgba(226,210,222,.13);
  border-radius:0;
  background:transparent;
  box-shadow:none;
}

.falling-daylight-voice-item > span:first-child {
  color:rgba(208,186,226,.7);
  font-size:21px;
}

.falling-daylight-voice-item p {
  font-size:13px;
  line-height:1.5;
  -webkit-line-clamp:1;
}

.falling-daylight-voice-item > small {
  min-width:48px;
  color:rgba(220,178,139,.72);
  font-size:11px;
}

.falling-daylight-voice-item[aria-current="true"] {
  color:#fff7f0;
  border-color:rgba(220,177,143,.34);
  background:linear-gradient(90deg,rgba(155,114,162,.16),rgba(139,87,56,.08));
  box-shadow:inset 2px 0 #d1a477;
}

.falling-daylight-voice-empty {
  flex:1 1 auto;
  grid-row:auto;
  align-self:center;
  margin:auto;
  border-radius:28px 28px 10px 10px;
}

@media (max-width:390px) {
  .falling-daylight-voice-shell { padding-inline:14px; }
  .falling-daylight-voice-header { grid-template-columns:44px minmax(0,1fr) 64px; }
  .falling-daylight-voice-header h2 { font-size:22px; }
  .falling-daylight-voice-stage { padding-inline:16px; }
  .falling-daylight-voice-now p { font-size:15px; }
  .falling-daylight-voice-transport { grid-template-columns:66px minmax(0,1fr); gap:14px; }
  .falling-daylight-voice-item { grid-template-columns:38px minmax(0,1fr) 46px; gap:9px; }
}

@media (max-height:820px) {
  .falling-daylight-voice-collection.is-expanded { flex-basis:46vh; }
}

@media (max-height:720px) {
  .falling-daylight-voice-header { flex-basis:54px; min-height:54px; }
  .falling-daylight-voice-stage { padding-block:16px 10px; }
  .falling-daylight-voice-now h3 { margin-block:6px 9px; font-size:24px; }
  .falling-daylight-voice-now p { margin-top:12px; font-size:14px; line-height:1.65; }
  .falling-daylight-voice-transport { flex-basis:70px; }
  .falling-daylight-voice-collection { flex-basis:172px; }
  .falling-daylight-voice-collection.is-expanded { flex-basis:46vh; }
  .falling-daylight-voice-item { min-height:64px; }
}

@media (prefers-reduced-motion:reduce) {
  .falling-daylight-voice-collection,
  .falling-daylight-voice-progress > span {
    transition:none;
  }
}

/* Candidate story cards keep their cover geometry when the runtime is enabled. */
.story-entry-cover-frame {
  position:relative;
  display:grid;
  width:100%;
  aspect-ratio:16 / 9;
  overflow:hidden;
  border-radius:12px;
  background:linear-gradient(145deg,rgba(226,232,240,.94),rgba(246,248,251,.98));
}

.story-entry-cover {
  width:100%;
  height:100%;
  object-fit:cover;
}

.story-entry-cover.image-error { display:none; }

.story-entry-cover-fallback {
  display:none;
  place-items:center;
  min-height:100%;
  color:#687484;
  text-align:center;
}

.story-entry-cover-frame.is-failed .story-entry-cover-fallback { display:grid; }

/* V120: mobile browsers keep native zoom without retaining large live blur surfaces. */
@media (max-width:760px), (pointer:coarse) {
  .view,
  .view *,
  dialog,
  dialog::backdrop {
    -webkit-backdrop-filter:none !important;
    backdrop-filter:none !important;
  }

  #fallingDaylightView img,
  #storyView .story-stage-backdrop img,
  #storyView .story-cg-stage-image,
  .falling-daylight-identity-dialog img,
  .story-cg-viewer img {
    filter:none !important;
  }
}
