/* Gate — Access Control Overlay */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
    background: #0a0a0a;
    color: #fff;
    min-height: 100vh;
}

/* Overlay */
#gate-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: #0a0a0a;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease;
}

#gate-overlay.passed {
    opacity: 0;
    pointer-events: none;
}

/* Screens */
.gate-screen {
    display: none;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 2rem;
    max-width: 420px;
    width: 100%;
}

.gate-screen.active {
    display: flex;
}

/* Logo */
.gate-logo {
    width: 80px;
    height: auto;
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.gate-wordmark {
    width: 220px;
    height: auto;
    margin-bottom: 2.5rem;
    opacity: 0.9;
}

/* Headings */
.gate-title {
    font-size: 1.1rem;
    font-weight: 400;
    color: #999;
    margin-bottom: 2rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* PIN Input */
.gate-pin-wrapper {
    width: 100%;
    margin-bottom: 1.5rem;
}

.gate-pin-wrapper input {
    width: 100%;
    padding: 14px 18px;
    font-size: 1.2rem;
    font-family: inherit;
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 8px;
    color: #fff;
    text-align: center;
    letter-spacing: 0.3em;
    outline: none;
    transition: border-color 0.2s;
}

.gate-pin-wrapper input:focus {
    border-color: #c9a96e;
}

.gate-pin-wrapper input::placeholder {
    color: #555;
    letter-spacing: 0.1em;
}

/* DOB Selects */
.gate-dob-row {
    display: flex;
    gap: 10px;
    width: 100%;
    margin-bottom: 1.5rem;
}

.gate-dob-row select {
    flex: 1;
    padding: 14px 12px;
    font-size: 0.95rem;
    font-family: inherit;
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 8px;
    color: #fff;
    outline: none;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23666' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 32px;
    transition: border-color 0.2s;
}

.gate-dob-row select:focus {
    border-color: #c9a96e;
}

.gate-dob-row select option {
    background: #1a1a1a;
    color: #fff;
}

/* Buttons */
.gate-btn {
    width: 100%;
    padding: 14px 24px;
    font-size: 1rem;
    font-family: inherit;
    font-weight: 600;
    background: #c9a96e;
    color: #0a0a0a;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    transition: background 0.2s, transform 0.1s;
}

.gate-btn:hover {
    background: #d4b87a;
}

.gate-btn:active {
    transform: scale(0.98);
}

/* Error Message */
.gate-error {
    margin-top: 1rem;
    padding: 10px 16px;
    font-size: 0.9rem;
    color: #ff6b6b;
    background: rgba(255, 107, 107, 0.1);
    border-radius: 6px;
    opacity: 0;
    transition: opacity 0.3s;
    min-height: 1em;
}

.gate-error.visible {
    opacity: 1;
}

/* Input Groups (player registration) */
.gate-input-group {
    width: 100%;
    margin-bottom: 1rem;
}

.gate-input-group input {
    width: 100%;
    padding: 14px 18px;
    font-size: 1rem;
    font-family: inherit;
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 8px;
    color: #fff;
    outline: none;
    transition: border-color 0.2s;
}

.gate-input-group input:focus {
    border-color: #c9a96e;
}

.gate-input-group input::placeholder {
    color: #555;
}

.gate-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Age gate disclaimer */
.gate-disclaimer {
    margin-top: 2rem;
    font-size: 0.75rem;
    color: #555;
    line-height: 1.5;
    max-width: 320px;
}

/* Responsive */
@media (max-width: 480px) {
    .gate-screen {
        padding: 1.5rem;
    }

    .gate-wordmark {
        width: 180px;
    }

    .gate-dob-row {
        flex-direction: column;
    }

    .gate-dob-row select {
        width: 100%;
    }
}
