/* ============================================================
   LAST CHANSE — Shadow Edition
   styles.css
   ============================================================ */

/* ── Reset ────────────────────────────────────────────────── */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ── Design Tokens ────────────────────────────────────────── */
:root {
  --panel-grey:     rgba(102,102,102,0.92);   /* EDIT: bottom panel color */
  --panel-red:      rgba(90,20,20,0.95);       /* EDIT: top tagline panel color */
  --gold:           #c9a84c;
  --gold-light:     #e8cb7a;
  --text-primary:   #ffffff;
  --text-secondary: rgba(255,255,255,0.65);
  --font-display:   'Cinzel', 'Trajan Pro', Georgia, serif;
  --font-body:      'IM Fell English', Georgia, serif;
}

/* ── Base ─────────────────────────────────────────────────── */
html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #000;
  font-family: var(--font-display);
  cursor: crosshair;
}


/* ============================================================
   ENTRY GATE
   ============================================================ */
#gate {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 1.4s ease, visibility 1.4s ease;
}

#gate.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

#gate-inner {
  text-align: center;
  padding: 2rem;
}

.gate-warning {
  font-size: 0.7rem;
  letter-spacing: 0.35em;
  color: #555;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.gate-title {
  font-size: clamp(2.5rem, 8vw, 6rem);
  font-weight: 900;
  letter-spacing: 0.15em;
  color: var(--gold);
  text-shadow: 0 0 60px rgba(201,168,76,0.35);
  margin-bottom: 0.4rem;
}

.gate-sub {
  font-family: var(--font-body);
  font-style: italic;
  color: #555;
  font-size: 1rem;
  letter-spacing: 0.2em;
  margin-bottom: 3rem;
}

#gate-btn {
  background: transparent;
  border: 1px solid var(--gold);
  color: var(--gold);
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 0.4em;
  padding: 1rem 2.5rem;
  cursor: pointer;
  text-transform: uppercase;
  transition: background 0.3s, color 0.3s, box-shadow 0.3s;
}

#gate-btn:hover {
  background: var(--gold);
  color: #000;
  box-shadow: 0 0 40px rgba(201,168,76,0.4);
}


/* ============================================================
   SCENE
   ============================================================ */
#scene {
  position: fixed;
  inset: 0;
  background: #000;
  overflow: hidden;  /* add this */
}

/* ── Generic layer rules ──────────────────────────────────── */
#layer-bg,
#layer-screen,
#layer-multiply,
#layer-alphafg,
#layer-action {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* Mobile fix — bg image fills screen properly */
#layer-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
  position: absolute;
  inset: 0;
}

/* ADD THIS RIGHT HERE */
#layer-bg picture {
  display: block;
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
}

#layer-screen video,
#layer-multiply video,
#layer-alphafg video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
}

/* ── Blend modes ──────────────────────────────────────────── */
#layer-screen video {
  mix-blend-mode: screen;
}

#layer-multiply video {
  mix-blend-mode: multiply;
}

#layer-alphafg video {
  mix-blend-mode: normal;
}


/* ============================================================
   ACTION LAYER
   ============================================================ */
#layer-action {
  display: flex;
  flex-direction: column;
  justify-content: space-between;  /* was flex-end */
  align-items: center;             /* was flex-end */
}

/* ── Tagline panel (top, dark red) ───────────────────────── */
#cta-tagline {
  position: absolute;

  /* ── POSITION ─────────────────────────────────────────────
     EDIT these values to reposition:
     right  = distance from right edge of screen
     bottom = distance from bottom edge of screen
     width  = panel width
  ── ───────────────────────────────────────────────────── */
  right:  8%;         /* EDIT */
  bottom: 75%;        /* EDIT — sits above grey panel */
  width:  clamp(300px, 42%, 640px);  /* EDIT */

  background: var(--panel-red);
  padding: 1.4rem 2rem 1.2rem;
  pointer-events: none;
}

#tagline-line1 {
  font-family: var(--font-display);
  font-size: clamp(0.55rem, 1vw, 0.8rem);
  font-weight: 400;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--text-primary);
  text-align: center;
  margin-bottom: 0.6rem;
}

#tagline-line2 {
  font-family: var(--font-display);
  font-size: clamp(0.5rem, 0.85vw, 0.65rem);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-secondary);
  text-align: center;
  margin-bottom: 0.2rem;
}

#tagline-line3 {
  font-family: var(--font-display);
  font-size: clamp(1rem, 2.2vw, 1.8rem);
  font-weight: 900;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-primary);
  text-align: center;
  line-height: 1.1;
  margin-bottom: 0.2rem;
}

#tagline-line4 {
  font-family: var(--font-display);
  font-size: clamp(0.6rem, 1.1vw, 0.85rem);
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--text-primary);
  text-align: center;
}


/* ── CTA panel (bottom, grey) ────────────────────────────── */
#cta-panel {
  position: absolute;

  /* ── POSITION ─────────────────────────────────────────────
     EDIT these values to reposition:
  ── ───────────────────────────────────────────────────── */
  right:  8%;         /* EDIT */
  bottom: 15%;         /* EDIT — flush to bottom */
  width:  clamp(300px, 42%, 640px);  /* EDIT — match tagline width */

  background: var(--panel-grey);
  padding: 1.6rem 2rem 1.4rem;
  pointer-events: auto;
}

#cta-header {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(1rem, 2vw, 1.5rem);
  letter-spacing: 0.2em;
  color: var(--text-primary);
  text-transform: uppercase;
  text-align: center;
  margin-bottom: 0.3rem;
}

#cta-subheader {
  font-family: var(--font-body);
  font-style: italic;
  font-size: clamp(0.6rem, 1vw, 0.8rem);
  color: var(--text-secondary);
  text-align: center;
  letter-spacing: 0.1em;
  margin-bottom: 1.2rem;
}

#cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 1rem;
}

#cta-buttons a {
  flex: 1;
  display: block;
  text-align: center;
  text-decoration: none;
  font-family: var(--font-display);
  font-size: clamp(0.5rem, 0.9vw, 0.7rem);
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid var(--gold);
  padding: 0.75rem 0.5rem;
  transition: background 0.25s, color 0.25s, box-shadow 0.25s;
  cursor: pointer;
}

#cta-buttons a:hover {
  background: var(--gold);
  color: #000;
  box-shadow: 0 0 20px rgba(201,168,76,0.35);
}

#cta-disclaimer {
  font-family: var(--font-body);
  font-style: italic;
  font-size: clamp(0.45rem, 0.75vw, 0.6rem);
  color: var(--text-secondary);
  text-align: center;
  line-height: 1.6;
  opacity: 0.6;
}


/* ============================================================
   MOBILE
   ============================================================ */
@media (max-width: 768px) {

  #cta-tagline {
    right: 0;
    bottom: auto;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1rem 1.2rem;
  }
  /* ... rest stays the same */

  #cta-panel {
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 1.2rem 1.2rem 1rem;
  }

  #cta-buttons a {
    padding: 0.9rem 0.25rem;
  }

  #gate-btn {
    font-size: 0.65rem;
    padding: 0.85rem 1.5rem;
  }
}

@media (max-width: 480px) {
  .gate-title { font-size: 2.2rem; }
}
