/* =====================================================
   GLOBAL RESET + BASE SETTINGS
===================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    height: 100%;
    background: #262842; /* Deep Navy Luxe */
    color: #F2EEE7; /* Cream text */
    font-family: 'Lato', sans-serif;
    overflow: hidden;
}

/* Smooth fade transitions between screens */
.screen {
    width: 100%;
    height: 100%;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    animation: fadeIn 0.4s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}

/* =====================================================
   TYPOGRAPHY
===================================================== */
h1, h2, h3 {
    font-family: 'Playfair Display', serif;
    color: #F2EEE7;
    margin-bottom: 12px;
}

h1 {
    font-size: 2.8rem;
    font-weight: 600;
}

h2 {
    font-size: 2.2rem;
}

p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 18px;
}

/* =====================================================
   BUTTONS (Cream + Gold Luxe)
===================================================== */

.btn {
    padding: 14px 26px;
    border-radius: 8px;
    border: none;
    font-size: 1.1rem;
    cursor: pointer;
    margin-top: 16px;
    transition: 0.25s ease;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.btn.gold {
    background: #C29A52;
    color: #262842;
}

.btn.gold:hover {
    background: #d5b16b;
}

.btn.outline {
    background: transparent;
    color: #F2EEE7;
    border: 2px solid #C29A52;
}

.btn.outline:hover {
    background: rgba(255,255,255,0.08);
}

/* Slim secondary buttons */
.btn.small {
    padding: 8px 16px;
    font-size: 0.95rem;
    border-radius: 6px;
}

/* =====================================================
   HOME SCREEN (Mode Selection)
===================================================== */

.home-screen {
    text-align: center;
    padding: 40px;
}

.home-logo {
    width: 220px;
    margin: 0 auto 30px auto;
    display: block;
}

.mode-buttons {
    display: flex;
    flex-direction: column;
    gap: 18px;
    max-width: 300px;
    margin: 40px auto 0 auto;
}

.mode-btn {
    padding: 18px;
    font-size: 1.2rem;
    background: #F2EEE7;
    color: #262842;
    border-radius: 10px;
    transition: 0.25s ease;
}

.mode-btn:hover {
    background: #ffffff;
}

.mode-description {
    margin-top: 6px;
    font-size: 0.95rem;
    color: #D7D3CC;
}

/* =====================================================
   OPERATOR PANEL
===================================================== */
#operator-hotspot {
    position: absolute;
    top: 0;
    left: 0;
    width: 80px;
    height: 80px;
    z-index: 20;
}

#operator-panel {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 360px;
    transform: translate(-50%, -50%);
    background: #1E2030;
    padding: 22px;
    border-radius: 12px;
    border: 2px solid #C29A52;
    z-index: 999;
    animation: fadeIn 0.3s ease-out;
}

#operator-panel.hidden {
    display: none;
}

#operator-panel label {
    display: block;
    margin-bottom: 12px;
    font-size: 1rem;
}

/* =====================================================
   VIDEO ELEMENTS
===================================================== */
video, img {
    max-width: 100%;
    border-radius: 10px;
}

/* Live camera preview */
.camera-preview {
    width: 100%;
    height: auto;
    border-radius: 12px;
    border: 2px solid #C29A52;
}

/* =====================================================
   UTILITIES
===================================================== */
.center {
    text-align: center;
}

.hidden {
    display: none !important;
}

.flex {
    display: flex;
}

.flex-col {
    flex-direction: column;
}

.flex-center {
    justify-content: center;
    align-items: center;
}

/* =====================================================
   MODAL / MESSAGE WINDOWS
===================================================== */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(8, 8, 12, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.modal-content {
    background: #1f2234;
    padding: 30px;
    border-radius: 10px;
    width: 85%;
    max-width: 420px;
    text-align: center;
    border: 2px solid #C29A52;
}
