:root {
  --void: #020204;
  --black: #050506;
  --panel: rgba(9, 10, 12, 0.72);
  --panel-strong: rgba(18, 18, 21, 0.82);
  --white: #f2f2f3;
  --ash: #a7adb5;
  --gray: #5d646e;
  --pink: #df6fa8;
  --pink-deep: #9f416d;
  --line: rgba(223, 111, 168, 0.34);
  --room: url("https://arcraiders.wiki/wiki/Special:Redirect/file/Andrei_Popescu_Raider_Den_Level_10.webp");
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  min-height: 100vh;
  background: var(--void);
  color: var(--white);
  font-family: "Cormorant Garamond", Georgia, serif;
  line-height: 1.7;
  overflow-x: hidden;
}
a { color: inherit; }
.skip-link { position: absolute; left: -999px; top: 0; z-index: 100; background: var(--pink); color: #000; padding: 0.8rem; }
.skip-link:focus { left: 0; }

body::before,
body::after,
.room-scan,
.room-dust {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
}

body::before,
.room-dust {
  z-index: 29;
  opacity: 0.3;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.45'/%3E%3C/svg%3E");
  animation: grain 7s steps(9) infinite;
}

body::after,
.room-scan {
  z-index: 30;
  background: repeating-linear-gradient(0deg, rgba(255,255,255,0.03) 0 1px, transparent 1px 5px);
  mix-blend-mode: screen;
}

.photo-room {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  background: #000;
}

.room-photo {
  position: absolute;
  inset: 0;
  background: var(--room) center / cover no-repeat;
  filter: contrast(1.05) brightness(0.78) saturate(0.9);
  transform: scale(1.03);
  animation: slowDrift 22s ease-in-out infinite alternate;
}

.room-shadow {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(circle at 45% 48%, transparent 0 36%, rgba(0,0,0,0.48) 63%, rgba(0,0,0,0.88) 100%),
    linear-gradient(90deg, rgba(0,0,0,0.8), transparent 32%, rgba(0,0,0,0.62));
}

.room-nav,
.topbar {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1rem 5vw;
  background: linear-gradient(180deg, rgba(0,0,0,0.86), rgba(0,0,0,0.32));
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.brand {
  text-decoration: none;
  font-family: "Space Mono", monospace;
  letter-spacing: 0.34em;
  font-size: 0.82rem;
  color: var(--white);
  text-shadow: 0 0 18px rgba(223,111,168,0.45);
}

.nav-links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-links a {
  text-decoration: none;
  font-family: "Space Mono", monospace;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.66rem;
  color: var(--ash);
  padding: 0.5rem 0.2rem;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--pink);
  text-shadow: 0 0 14px rgba(223,111,168,0.7);
}

.room-title-card {
  position: relative;
  z-index: 5;
  width: min(760px, 86vw);
  padding: 18vh 0 0 5vw;
}

.kicker,
.card-label,
.panel-label {
  font-family: "Space Mono", monospace;
  color: var(--pink);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  font-size: 0.72rem;
}

.hero-title,
.page-hero h1 {
  font-family: "Cinzel", serif;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  line-height: 1.05;
  font-size: clamp(3rem, 9vw, 8rem);
  text-shadow: 0 0 30px rgba(223,111,168,0.22);
  animation: titleGlitch 7s infinite;
}

.hero-copy,
.page-hero p,
.object-card p,
.wide-card p,
.room-info-panel p {
  max-width: 680px;
  color: #d9dce0;
  font-size: clamp(1.05rem, 2vw, 1.32rem);
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.8rem 1rem;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.04);
  font-family: "Space Mono", monospace;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.72rem;
  text-decoration: none;
}
.button.primary { background: rgba(223,111,168,0.18); }
.button:hover { box-shadow: 0 0 22px rgba(223,111,168,0.24); transform: translateY(-1px); }

.photo-hotspot {
  position: absolute;
  z-index: 8;
  border: 1px solid rgba(223,111,168,0.26);
  background: rgba(0,0,0,0.08);
  text-decoration: none;
  opacity: 0.25;
  transition: 0.25s;
}
.photo-hotspot::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--pink);
  box-shadow: 0 0 18px var(--pink);
}
.photo-hotspot span,
.photo-hotspot b {
  position: absolute;
  left: 50%;
  top: calc(50% + 18px);
  transform: translateX(-50%);
  white-space: nowrap;
  opacity: 0;
  background: rgba(0,0,0,0.72);
  color: #fff;
  padding: 0.35rem 0.55rem;
  font-family: "Space Mono", monospace;
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.photo-hotspot b { top: calc(50% + 48px); color: var(--pink); }
.photo-hotspot:hover,
.photo-hotspot:focus { opacity: 1; background: rgba(223,111,168,0.08); }
.photo-hotspot:hover span,
.photo-hotspot:hover b,
.photo-hotspot:focus span,
.photo-hotspot:focus b { opacity: 1; }
.hot-door { left: 10%; top: 18%; width: 17%; height: 50%; }
.hot-bed { left: 31%; top: 44%; width: 34%; height: 29%; }
.hot-shelf { left: 31%; top: 12%; width: 31%; height: 30%; }
.hot-monitor { right: 11%; top: 29%; width: 19%; height: 15%; }
.hot-bench { right: 9%; top: 46%; width: 24%; height: 28%; }

.room-info-panel {
  position: absolute;
  right: 5vw;
  bottom: 7.5rem;
  z-index: 8;
  width: min(380px, 84vw);
  padding: 1.2rem;
  border: 1px solid var(--line);
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(12px);
}

.room-dock {
  position: absolute;
  left: 5vw;
  right: 5vw;
  bottom: 1rem;
  z-index: 9;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(12px);
}
.room-dock a {
  text-decoration: none;
  padding: 0.9rem;
  border-right: 1px solid rgba(255,255,255,0.1);
  color: var(--ash);
  font-family: "Space Mono", monospace;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.72rem;
}
.room-dock span { display: block; color: var(--pink); }
.room-dock a:hover { background: rgba(223,111,168,0.12); color: #fff; }

.den-page {
  background:
    linear-gradient(180deg, rgba(0,0,0,0.55), rgba(0,0,0,0.9)),
    var(--room) var(--focus, center) / cover fixed;
}
.page-monitor { --focus: 70% center; }
.page-bed { --focus: 42% center; }
.page-door { --focus: 22% center; }
.den-page main {
  position: relative;
  z-index: 2;
  padding: 8rem 5vw 4rem;
}
.den-page main::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 43% 20%, rgba(255,208,148,0.14), transparent 18rem),
    radial-gradient(circle at 80% 35%, rgba(223,111,168,0.12), transparent 16rem),
    rgba(0,0,0,0.38);
  backdrop-filter: blur(8px);
  animation: warmFlicker 4s infinite;
}

.page-hero { max-width: 960px; padding: 7rem 0 4rem; }
.page-hero h1 { font-size: clamp(2.4rem, 6vw, 5.8rem); margin: 0.4rem 0 1rem; }
.section { padding: 2rem 0 5rem; }
.object-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1rem; }
.object-card,
.wide-card {
  background: linear-gradient(135deg, rgba(10,10,12,0.76), rgba(0,0,0,0.82));
  border: 1px solid rgba(223,111,168,0.22);
  border-left: 3px solid var(--pink);
  padding: 1.5rem;
  box-shadow: 0 22px 70px rgba(0,0,0,0.45);
}
.object-card h2,
.wide-card h2,
.object-card h3 {
  font-family: "Cinzel", serif;
  letter-spacing: 0.08em;
  font-size: clamp(1.4rem, 3vw, 2.4rem);
  line-height: 1.1;
  margin: 0.5rem 0 1rem;
}
.feature-card { grid-column: span 2; }
.stack { display: grid; gap: 1rem; }
.wide-card { max-width: 980px; }
.text-link {
  display: inline-block;
  margin-top: 1rem;
  color: var(--pink);
  font-family: "Space Mono", monospace;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.72rem;
}
.video-shell {
  aspect-ratio: 9 / 16;
  overflow: hidden;
  background: #000;
  border: 1px solid rgba(255,255,255,0.12);
}
.video-shell iframe { width: 100%; height: 100%; border: 0; }

.footage-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 360px);
  gap: 2rem;
  align-items: end;
}

.signal-card {
  border: 1px solid var(--line);
  background: linear-gradient(135deg, rgba(0,0,0,0.76), rgba(223,111,168,0.08));
  padding: 1.2rem;
  box-shadow: 0 24px 70px rgba(0,0,0,0.45), inset 0 0 34px rgba(223,111,168,0.05);
}

.signal-card span {
  display: block;
  margin-top: 0.55rem;
  color: var(--ash);
  font-family: "Space Mono", monospace;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.66rem;
}

.monitor-wall { padding-top: 0; }

.monitor-frame {
  position: relative;
  display: grid;
  grid-template-columns: minmax(260px, 460px) minmax(280px, 1fr);
  gap: 1rem;
  align-items: stretch;
  padding: 1rem;
  overflow: hidden;
  border: 1px solid rgba(223,111,168,0.28);
  background:
    linear-gradient(135deg, rgba(0,0,0,0.78), rgba(18,18,21,0.86)),
    radial-gradient(circle at 12% 16%, rgba(223,111,168,0.12), transparent 30%);
  box-shadow: 0 32px 90px rgba(0,0,0,0.58), 0 0 40px rgba(223,111,168,0.08);
}

.monitor-frame::before {
  content: "RECOVERED HELMET CAM";
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 2;
  color: rgba(223,111,168,0.55);
  font-family: "Space Mono", monospace;
  font-size: 0.62rem;
  letter-spacing: 0.2em;
}

.monitor-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(223,111,168,0.07), transparent);
  animation: signalSweep 5s linear infinite;
}

.monitor-glass {
  position: relative;
  min-height: 520px;
  aspect-ratio: 9 / 16;
  overflow: hidden;
  background: #000;
  border: 1px solid rgba(255,255,255,0.16);
}

.monitor-glass::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    repeating-linear-gradient(0deg, rgba(255,255,255,0.05) 0 1px, transparent 1px 6px),
    radial-gradient(circle at 50% 12%, rgba(255,255,255,0.08), transparent 25%),
    radial-gradient(ellipse at center, transparent 45%, rgba(0,0,0,0.66));
}

.monitor-glass iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.monitor-readout {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1rem;
  padding: 1rem;
}

.monitor-readout h2,
.evidence-header h2 {
  font-family: "Cinzel", serif;
  font-size: clamp(2rem, 4vw, 4rem);
  letter-spacing: 0.12em;
  line-height: 1.05;
}

.readout-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
  margin: 1rem 0;
}

.readout-grid span {
  border: 1px solid rgba(223,111,168,0.2);
  background: rgba(255,255,255,0.035);
  padding: 0.8rem;
  color: var(--ash);
  font-family: "Space Mono", monospace;
  font-size: 0.66rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.readout-grid b {
  display: block;
  color: var(--pink);
  margin-bottom: 0.25rem;
}

.evidence-header {
  max-width: 860px;
  margin-bottom: 1.4rem;
}

.evidence-header h2 { margin: 0.35rem 0 0.75rem; }
.evidence-header p { color: #d9dce0; font-size: 1.22rem; }

.evidence-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.evidence-card {
  border: 1px solid rgba(223,111,168,0.22);
  background: linear-gradient(180deg, rgba(10,10,12,0.72), rgba(0,0,0,0.82));
  padding: 0.85rem;
  box-shadow: 0 24px 70px rgba(0,0,0,0.42);
}

.evidence-card .video-shell { aspect-ratio: 9 / 16; }

.evidence-meta {
  padding: 1rem 0.25rem 0.25rem;
}

.evidence-meta h3 {
  font-family: "Cinzel", serif;
  letter-spacing: 0.1em;
  margin: 0.35rem 0;
}

.evidence-meta span {
  color: var(--ash);
  font-family: "Space Mono", monospace;
  font-size: 0.64rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.story-bridge .wide-card { max-width: 1100px; }

.footer {
  position: relative;
  z-index: 2;
  padding: 2rem 5vw;
  border-top: 1px solid var(--line);
  background: #020204;
  color: var(--gray);
  font-family: "Space Mono", monospace;
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-align: center;
}

@keyframes grain {
  0%,100% { transform: translate(0,0); }
  20% { transform: translate(-8%,5%); }
  40% { transform: translate(6%,-10%); }
  60% { transform: translate(11%,0); }
  80% { transform: translate(3%,8%); }
}
@keyframes slowDrift {
  from { transform: scale(1.03) translateX(-0.4%); }
  to { transform: scale(1.06) translateX(0.5%); }
}
@keyframes titleGlitch {
  0%,92%,100% { transform: translate(0); }
  93% { transform: translate(-2px,1px); }
  94% { transform: translate(2px,-1px); }
  95% { transform: translate(0); }
}
@keyframes warmFlicker {
  0%,100% { opacity: 0.82; }
  8% { opacity: 0.95; }
  10% { opacity: 0.72; }
  13% { opacity: 0.9; }
  58% { opacity: 1; }
  61% { opacity: 0.78; }
}
@keyframes signalSweep {
  from { transform: translateX(-120%); }
  to { transform: translateX(120%); }
}

@media (max-width: 800px) {
  .room-nav,
  .topbar {
    align-items: flex-start;
    flex-direction: column;
    padding: 0.85rem 4vw;
  }
  .nav-links { justify-content: flex-start; gap: 0.65rem; }
  .nav-links a { font-size: 0.58rem; }
  .room-title-card { width: 100%; padding: 24vh 4vw 0; }
  .hero-title { font-size: clamp(2.4rem, 15vw, 5rem); letter-spacing: 0.12em; }
  .room-info-panel { left: 4vw; right: 4vw; bottom: 7rem; width: auto; }
  .room-dock { left: 4vw; right: 4vw; grid-template-columns: repeat(2, 1fr); }
  .photo-hotspot { display: none; }
  .den-page main { padding: 9rem 4vw 3rem; }
  .page-hero { padding: 5rem 0 2rem; }
  .feature-card { grid-column: auto; }
  .object-grid { grid-template-columns: 1fr; }
  .footage-hero,
  .monitor-frame,
  .evidence-grid { grid-template-columns: 1fr; }
  .monitor-glass { min-height: auto; }
  .readout-grid { grid-template-columns: 1fr; }
  .button { width: 100%; }
}
