/* ============================================================
   ROOT VARIABLES & GLOBALS
============================================================ */
:root {
    --blue: #2C497F;
    --navy: #262842;
    --gold: #C29A52;
    --paper: #F7F5F1;
    --accent-color: #2C497F;
}

body {
    background: var(--paper);
    margin: 0;
    padding: 0;
    overflow: hidden;
    font-family: 'Inter', sans-serif;
}


/* ============================================================
   SCREEN SYSTEM
============================================================ */
.screen {
    position: relative;
    width: 100%;
    height: 100vh;
    text-align: center;
    overflow: hidden;
    display: none;
}

.active-screen {
    display: block;
}

/* Title + Subtitle */
.title-hero {
    font-family: 'Playfair Display', serif;
    font-size: 2.4rem;
    color: var(--gold);
    z-index: 20;
    position: relative;
}

.event-name {
    color: var(--blue);
    font-family: 'Playfair Display', serif;
    margin-bottom: 20px;
    z-index: 20;
    position: relative;
}


/* ============================================================
   CAMERA FEED — BOTTOM LAYER
============================================================ */
#camera {
    position: relative;
    width: 90%;
    max-height: 60vh;
    margin-top: 20px;
    border-radius: 20px;
    background: black;
    z-index: 1;
}


/* ============================================================
   OVERLAYS — MIDDLE LAYER
============================================================ */
.overlay-frame,
.overlay-full {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 10;
}

.overlay-frame {
    object-fit: contain;
}

.overlay-full {
    object-fit: cover;
}


/* ============================================================
   UI ELEMENTS — TOP LAYER
============================================================ */
.btn,
.prompt-wrapper,
.cam-prompts,
.bw-btn {
    position: relative;
    z-index: 20;
}

/* Buttons */
.btn {
    border: 2px solid var(--blue);
    padding: 12px 28px;
    border-radius: 12px;
    background: none;
    color: var(--blue);
    cursor: pointer;
    margin: 10px auto;
}

.btn:hover {
    background: var(--blue);
    color: white;
}

.btn.small {
    padding: 8px 16px;
}

.btn.red {
    border-color: #b3261e;
    color: #b3261e;
}

.btn.red:hover {
    background: #b3261e;
    color: white;
}

/* Prompts */
.prompt {
    font-size: 1.4rem;
    color: var(--blue);
}

.prompt-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
}

/* Prompt arrows */
.prompt-arrow {
    padding: 8px 12px;
    border-radius: 50%;
    border: 2px solid var(--blue);
    cursor: pointer;
    z-index: 20;
}


/* ============================================================
   B&W TOGGLE BUTTON — TOP ABOVE UI
============================================================ */
.bw-btn {
    position: absolute;
    bottom: 130px;
    right: 30px;
    padding: 12px;
    font-size: 1.3rem;
    background: white;
    border-radius: 50%;
    border: 2px solid var(--blue);
    cursor: pointer;
    z-index: 25;
}


/* ============================================================
   PREVIEW MEDIA
============================================================ */
.preview-media {
    max-width: 90%;
    max-height: 70vh;
    margin-top: 20px;
    border-radius: 20px;
    display: none;
    z-index: 20;
    position: relative;
}


/* ============================================================
   VIDEO PROGRESS RING — VERY TOP
============================================================ */
#record-progress-container {
    position: absolute;
    bottom: 240px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 30;
}

#record-ring-bg {
    stroke: rgba(255,255,255,0.3);
    fill: none;
}

#record-ring-progress {
    stroke: var(--gold);
    fill: none;
    stroke-linecap: round;
}


/* ============================================================
   OPERATOR HOTSPOT
============================================================ */
#operator-hotspot {
    position: fixed;
    top: 0;
    right: 0;
    width: 80px;
    height: 80px;
    z-index: 100;
}


/* ============================================================
   RESPONSIVE
============================================================ */
@media (max-width: 800px) {
    .title-hero { font-size: 2rem; }
    .prompt { font-size: 1.1rem; }
    #camera { width: 94%; max-height: 55vh; }
}
