/* New Flesh: the screening room on /undead-forever/ (2026-11-13). One phone plays one reel; the channel guide beside
   it switches reels through a burst of static, and the room takes on the colour of the reel that is playing. */
@property --nf-glow {
  syntax: "<color>";
  inherits: true;
  initial-value: rgba(226, 58, 47, 0.32);
}
.nf {
  --nf-glow: rgba(226, 58, 47, 0.32);
  --nf-rgb: 226, 58, 47;
  position: relative;
  isolation: isolate;
  transition: --nf-glow 1.2s ease;
}
.nf::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 4% -14vw -4%;
  pointer-events: none;
  background:
    radial-gradient(ellipse 34% 46% at 27% 60%, var(--nf-glow), transparent 70%),
    radial-gradient(ellipse 50% 30% at 70% 70%, rgba(20, 4, 4, 0.5), transparent 75%);
}
.nf-room {
  display: grid;
  grid-template-columns: minmax(270px, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(28px, 5vw, 76px);
  align-items: center;
}
.nf-screen { display: flex; flex-direction: column; align-items: center; }
.nf-phone {
  position: relative;
  width: min(332px, 100%);
  padding: 8px;
  border-radius: 44px;
  background: linear-gradient(160deg, #3d1b12, #120707 62%);
  border: 1px solid rgba(255, 150, 110, 0.3);
  box-shadow:
    0 50px 90px rgba(0, 0, 0, 0.72),
    0 0 0 1px rgba(0, 0, 0, 0.6),
    inset 0 1px 0 rgba(255, 210, 180, 0.16),
    0 0 150px -24px var(--nf-glow);
}
.nf-glass {
  position: relative;
  overflow: hidden;
  border-radius: 36px;
  aspect-ratio: 600 / 1304;
  background: #060202;
  isolation: isolate;
}
.nf-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #060202;
}
.nf-glass.is-film .nf-video { object-fit: contain; }
.nf-glass::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(122deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0) 26%, rgba(255, 255, 255, 0) 72%, rgba(255, 255, 255, 0.04));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05), inset 0 0 40px rgba(0, 0, 0, 0.35);
}
.nf-static {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.34s ease;
}
.nf-glass.is-static .nf-static { opacity: 0.94; transition: none; }
.nf-slate {
  position: absolute;
  z-index: 4;
  left: 12px;
  right: 12px;
  top: 7.5%;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 11px;
  border-radius: 9px;
  background: rgba(8, 2, 2, 0.66);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(var(--nf-rgb), 0.35);
  color: #f6eadb;
  font: 600 0.7rem/1.1 ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0;
  pointer-events: none;
}
.nf-slate i { flex: 0 0 auto; width: 7px; height: 7px; border-radius: 50%; background: #ff3b30; box-shadow: 0 0 8px #ff3b30; }
.nf-slate b { flex: 0 0 auto; color: rgb(var(--nf-rgb)); font-weight: 700; }
.nf-slate span { min-width: 0; overflow-wrap: anywhere; }
.nf-slate.is-on { animation: nf-slate 2.6s ease both; }
@keyframes nf-slate {
  0% { opacity: 0; transform: translateY(-6px); }
  9%, 74% { opacity: 1; transform: none; }
  100% { opacity: 0; transform: none; }
}
.nf-play {
  position: absolute;
  z-index: 5;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 20px 0 16px;
  border-radius: 999px;
  border: 1px solid rgba(243, 210, 122, 0.6);
  background: rgba(14, 4, 4, 0.82);
  color: var(--uf-gold, #f3d27a);
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
}
.nf-play span, .nf-toggle[data-state="paused"] span {
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 7px 0 7px 12px;
  border-color: transparent transparent transparent currentColor;
}
.nf-play[hidden] { display: none; }
.nf-controls { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 18px; }
.nf-controls button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-width: 44px;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid rgba(243, 210, 122, 0.4);
  background: rgba(20, 6, 6, 0.72);
  color: var(--uf-gold, #f3d27a);
  font-family: inherit;
  font-size: 0.84rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.nf-controls button:hover { border-color: var(--uf-gold, #f3d27a); background: rgba(40, 10, 8, 0.8); }
.nf-controls button:focus-visible, .nf-play:focus-visible, .nf-tab:focus-visible, .nf-note:focus-visible { outline: 3px solid var(--uf-gold, #f3d27a); outline-offset: 3px; }
.nf-controls em { font-style: normal; }
.nf-toggle[data-state="playing"] span { width: 10px; height: 12px; border-left: 3px solid currentColor; border-right: 3px solid currentColor; }
.nf-next span {
  width: 7px;
  height: 7px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: rotate(45deg);
  margin-left: -2px;
}
.nf-count {
  min-width: 88px;
  text-align: center;
  color: var(--uf-dim, #9a8774);
  font: 600 0.74rem/1 ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  letter-spacing: 0.16em;
}
.nf-guide { min-width: 0; }
.nf-tabs { position: relative; list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.nf-tabs li { margin: 0; }
.nf-tab {
  position: relative;
  display: grid;
  grid-template-columns: 2.4em minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 52px;
  padding: 10px 14px;
  border: 1px solid transparent;
  border-radius: 14px;
  background: transparent;
  color: var(--uf-muted, #c4b19c);
  font: inherit;
  text-align: left;
  cursor: pointer;
  overflow: hidden;
  transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}
.nf-tab:hover { background: rgba(255, 150, 110, 0.06); color: var(--uf-ink, #eadccb); }
.nf-tab[aria-selected="true"] {
  color: var(--uf-heading, #fbf1e3);
  border-color: rgba(var(--tab-rgb), 0.46);
  background: linear-gradient(90deg, rgba(var(--tab-rgb), 0.17), rgba(20, 6, 6, 0.55) 72%);
}
.nf-num {
  color: rgba(var(--tab-rgb), 0.92);
  font: 600 0.74rem/1 ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  letter-spacing: 0.14em;
}
.nf-name { font: 700 1.1rem/1.2 var(--uf-serif, Georgia, serif); min-width: 0; }
.nf-tag {
  padding: 5px 9px;
  border: 1px solid rgba(255, 160, 120, 0.22);
  border-radius: 999px;
  color: var(--uf-dim, #9a8774);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  white-space: nowrap;
}
.nf-tab[aria-selected="true"] .nf-tag { color: rgb(var(--tab-rgb)); border-color: rgba(var(--tab-rgb), 0.5); }
.nf-bar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: rgb(var(--tab-rgb));
  box-shadow: 0 0 10px rgb(var(--tab-rgb));
  transform: scaleX(0);
  transform-origin: left center;
  opacity: 0;
}
.nf-tab[aria-selected="true"] .nf-bar { opacity: 1; }
.nf-notes {
  position: relative;
  margin-top: 22px;
  padding: 22px 24px 20px;
  border-radius: var(--uf-radius, 18px);
  background: var(--uf-glass, rgba(20, 6, 6, 0.85));
  border: 1px solid var(--uf-line, rgba(255, 150, 110, 0.16));
  min-height: 210px;
}
.nf-notes::before {
  content: "";
  position: absolute;
  left: 24px;
  right: 24px;
  top: -1px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, rgba(var(--nf-rgb), 0), rgb(var(--nf-rgb)) 30%, rgba(var(--nf-rgb), 0));
  opacity: 0.8;
}
.nf-note h3 { margin: 0 0 10px; color: var(--uf-heading, #fbf1e3); font-size: clamp(1.45rem, 2.4vw, 1.95rem); line-height: 1.12; }
.nf-note p { margin: 0 0 14px; color: var(--uf-muted, #c4b19c); line-height: 1.66; }
.nf-note p.nf-state { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 0; color: var(--uf-dim, #9a8774); font-size: 0.88rem; line-height: 1.5; }
.nf-note:not([hidden]) { animation: nf-note-in 0.45s ease both; }
@keyframes nf-note-in { from { opacity: 0; transform: translateY(6px); } }
.nf-still-row .uf-phone img { object-fit: cover; }

@media (max-width: 900px) {
  .nf::before { inset: 0 -16px; background: radial-gradient(ellipse 70% 30% at 50% 36%, var(--nf-glow), transparent 72%); }
  .nf-room { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .nf-guide { display: contents; }
  .nf-tabs { order: 0; }
  .nf-screen { order: 1; }
  .nf-notes { order: 2; }
  .nf-phone { width: min(300px, 76vw); border-radius: 40px; }
  .nf-glass { border-radius: 33px; }
  .nf-tabs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    padding: 4px 2px 12px;
    scrollbar-width: none;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 14px, #000 calc(100% - 22px), transparent);
    mask-image: linear-gradient(90deg, transparent, #000 14px, #000 calc(100% - 22px), transparent);
  }
  .nf-tabs::-webkit-scrollbar { display: none; }
  .nf-tabs li { flex: 0 0 auto; scroll-snap-align: center; }
  .nf-tabs li:first-child { margin-left: 10px; }
  .nf-tabs li:last-child { margin-right: 18px; }
  .nf-tab { grid-template-columns: auto auto; gap: 8px; min-height: 44px; padding: 8px 15px; border-color: rgba(255, 160, 120, 0.2); border-radius: 999px; }
  .nf-tag { display: none; }
  .nf-name { font-size: 0.98rem; white-space: nowrap; }
  .nf-notes { margin-top: 6px; padding: 18px 18px 16px; min-height: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .nf, .nf-tab, .nf-static { transition: none; }
  .nf-slate.is-on { animation: none; opacity: 1; }
  .nf-note:not([hidden]) { animation: none; }
}
