:root {
    --gold: #FFD700;
    --dark-bg: #1a1a1a;
    --text-color: #ffffff;
}

body, html {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: black;
}

#container {
    width: 100vw;
    height: 100vh;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

/* Hidden Utility Class */
.hidden {
    display: none !important;
}

/* Start Screen */
#start-screen {
    position: absolute;
    z-index: 999;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, #2a2a2a 0%, #000000 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: var(--text-color);
    text-align: center;
}

#start-screen h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 2px;
}

#start-button {
    margin-top: 2rem;
    padding: 15px 40px;
    font-size: 1.2rem;
    background: transparent;
    border: 2px solid var(--gold);
    color: var(--gold);
    cursor: pointer;
    text-transform: uppercase;
    font-weight: bold;
    transition: all 0.3s ease;
    border-radius: 4px;
}

#start-button:hover {
    background: var(--gold);
    color: black;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.5);
}

.branding {
    position: absolute;
    bottom: 20px;
    font-size: 0.8rem;
    opacity: 0.5;
}

/* Loading Screen */
#loading {
    position: absolute;
    z-index: 10;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--gold);
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid rgba(255, 215, 0, 0.3);
    border-radius: 50%;
    border-top: 5px solid var(--gold);
    animation: spin 1s linear infinite;
    margin-bottom: 1rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loader-content {
    text-align: center;
}

/* Scanning Overlay */
#scanning {
    position: absolute;
    z-index: 5;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    pointer-events: none;
}

#scanning .inner {
    position: relative;
    width: 70vw;
    height: 70vw;
    max-width: 400px;
    max-height: 400px;
}

/* Scan Frame Corners */
.scan-frame .corner {
    position: absolute;
    width: 30px;
    height: 30px;
    border: 4px solid var(--gold);
    box-shadow: 0 0 5px rgba(0,0,0,0.5);
}

.top-left { top: 0; left: 0; border-right: none; border-bottom: none; }
.top-right { top: 0; right: 0; border-left: none; border-bottom: none; }
.bottom-left { bottom: 0; left: 0; border-right: none; border-top: none; }
.bottom-right { bottom: 0; right: 0; border-left: none; border-top: none; }

/* Scan Line Animation */
.scan-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--gold);
    box-shadow: 0 0 10px var(--gold);
    animation: scan 2s ease-in-out infinite;
    opacity: 0.8;
}

@keyframes scan {
    0% { top: 0%; opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { top: 100%; opacity: 0; }
}

.instruction {
    position: absolute;
    bottom: -40px;
    width: 100%;
    text-align: center;
    color: white;
    font-weight: bold;
    text-shadow: 0 2px 4px black;
    background: rgba(0,0,0,0.5);
    padding: 5px;
    border-radius: 4px;
}

/* Footer Logos */
.footer-logos {
    position: absolute;
    bottom: 20px;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    padding: 10px;
    pointer-events: none; /* Let clicks pass through if needed, though on start screen it's fine */
}

.footer-logos img {
    height: 40px; /* Adjust scale as needed */
    object-fit: contain;
    width: auto;
}

.divider {
    width: 1px;
    height: 30px;
    background: rgba(255, 255, 255, 0.5);
}