:root{
  color-scheme:dark;
  font-family:Inter,Arial,Helvetica,sans-serif;
  --landing-accent:#ff3155;
  --landing-accent-rgb:255,49,85;
}

*{box-sizing:border-box}

html,
body{
  margin:0;
  width:100%;
  height:100%;
  min-width:0;
  min-height:0;
  overflow:hidden;
  background:#000;
  color:#fff;
}

body{
  position:fixed;
  inset:0;
  overscroll-behavior:none;
  touch-action:none;
}

.overlay-surface{
  position:relative;
  width:1280px;
  height:720px;
  isolation:isolate;
  pointer-events:auto;
  transform-origin:center;
  background:#000;
  box-shadow:0 0 3px rgba(var(--landing-accent-rgb),.92),0 0 30px rgba(var(--landing-accent-rgb),.38),0 0 90px rgba(var(--landing-accent-rgb),.22);
}

.overlay-surface::before{
  content:"";
  position:absolute;
  inset:0;
  z-index:-1;
  pointer-events:none;
  border:1px solid rgba(var(--landing-accent-rgb),.66);
  box-shadow:inset 0 0 36px rgba(var(--landing-accent-rgb),.13),inset 0 0 110px rgba(var(--landing-accent-rgb),.08);
}

#overlay-frame{
  display:block;
  width:1280px;
  height:720px;
  border:0;
  background:#010102;
}

.landing-webgl,
.landing-css3d{
  position:fixed;
  inset:0;
  width:100%;
  height:100%;
}

.landing-webgl{z-index:1;display:block;pointer-events:none}
.landing-css3d{z-index:2;pointer-events:auto;overflow:hidden}
.landing-css3d .overlay-surface{pointer-events:auto}

.landing-hud{
  position:fixed;
  inset:0;
  z-index:12;
  padding:clamp(18px,2.4vw,36px);
  display:flex;
  flex-direction:column;
  justify-content:space-between;
  pointer-events:none;
  opacity:0;
  transition:opacity .8s ease;
}

body.landing-ready .landing-hud{opacity:1}
body.overlay-focus .landing-hud{opacity:.72}

.landing-hud__top,
.landing-hud__bottom{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
}

.landing-hud__brand{
  display:flex;
  flex-direction:column;
  gap:6px;
  text-transform:uppercase;
  text-shadow:0 0 18px rgba(var(--landing-accent-rgb),.45);
}

.landing-hud__eyebrow,
.landing-hud__meta{
  color:rgba(255,255,255,.48);
  font-size:10px;
  font-weight:700;
  letter-spacing:.22em;
}

.landing-hud__title{
  color:#fff;
  font-size:clamp(15px,1.5vw,22px);
  font-weight:850;
  letter-spacing:.08em;
}

.landing-hud__meta{
  display:flex;
  align-items:center;
  gap:10px;
  white-space:nowrap;
}

.landing-hud__guide-target{
  pointer-events:auto;
  cursor:help;
}

.landing-hud__variation{
  align-items:flex-end;
  text-align:right;
}

.landing-hud__variation .landing-hud__title{
  color:var(--landing-accent);
  font-size:clamp(12px,1.05vw,16px);
}

.landing-guide-popover{
  position:fixed;
  z-index:40;
  width:min(330px,calc(100vw - 32px));
  padding:15px 16px 16px;
  border:1px solid rgba(var(--landing-accent-rgb),.58);
  border-radius:14px;
  background:rgba(4,4,7,.94);
  box-shadow:0 18px 60px rgba(0,0,0,.55),0 0 28px rgba(var(--landing-accent-rgb),.16);
  backdrop-filter:blur(18px);
  pointer-events:none;
  opacity:0;
  transform:translateY(7px);
  transition:opacity .16s ease,transform .16s ease;
}

.landing-guide-popover.is-visible{
  opacity:1;
  transform:translateY(0);
}

.landing-guide-popover__label{
  color:var(--landing-accent);
  font-size:9px;
  font-weight:850;
  letter-spacing:.2em;
  text-transform:uppercase;
}

.landing-guide-popover__title{
  margin-top:7px;
  color:#fff;
  font-size:16px;
  font-weight:850;
  letter-spacing:-.01em;
}

.landing-guide-popover__body{
  margin-top:6px;
  color:rgba(255,255,255,.68);
  font-size:12px;
  line-height:1.55;
}

.landing-hud__live{
  width:6px;
  height:6px;
  border-radius:50%;
  background:var(--landing-accent);
  box-shadow:0 0 12px var(--landing-accent);
  animation:landingLivePulse 2.2s ease-in-out infinite;
}

.landing-curtain{
  position:fixed;
  inset:0;
  z-index:20;
  pointer-events:none;
  background:#000;
  opacity:1;
  transition:opacity 2.1s cubic-bezier(.22,.61,.36,1);
}

body.landing-ready .landing-curtain{opacity:0}

body.landing-fallback{
  background:linear-gradient(rgba(0,0,0,.34),rgba(0,0,0,.58)),url("assets/wireframe-room-fallback.png") center / cover no-repeat,#000;
}

body.landing-fallback .overlay-surface{
  position:fixed;
  left:50%;
  top:50%;
  transform:translate(-50%,-50%) scale(var(--landing-fallback-scale,.72));
  z-index:3;
  transition:transform .8s cubic-bezier(.22,.61,.36,1);
}

body.landing-fallback .landing-hud__eyebrow::after{
  content:" · STATIC ROOM";
  color:rgba(255,90,112,.85);
}

@keyframes landingLivePulse{
  0%,100%{opacity:.65;transform:scale(.85)}
  50%{opacity:1;transform:scale(1.12)}
}

@media (max-width:720px){
  .landing-hud__meta{display:none}
  .landing-hud__top{align-items:flex-start}
  .landing-hud__variation{display:none}
}

@media (prefers-reduced-motion:reduce){
  .landing-hud,
  .landing-curtain{transition-duration:.01ms!important}
  .landing-hud__live{animation:none}
}
