/* PRE-GAME SCREEN STYLES */
.pre-game-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(145deg, #0a3a2a 0%, #064e3b 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    padding: 20px;
    overflow-y: auto;
}

.pre-game-card {
    max-width: 850px;
    width: 100%;
    background: linear-gradient(135deg, #1a3a2a, #0d2a1c);
    border-radius: 48px;
    border: 3px solid #ffd966;
    box-shadow: 0 25px 50px rgba(0,0,0,0.5), inset 0 1px 2px rgba(255,255,240,0.1);
    overflow: hidden;
    animation: fadeSlideUp 0.4s ease-out;
}

@keyframes fadeSlideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Big Game Title */
.game-title-header {
    text-align: center;
    padding: 40px 20px 30px;
    background: linear-gradient(135deg, #0f2a1f, #0a1f15);
    border-bottom: 2px solid #ffd966;
}

    .game-title-header h1 {
        font-size: 4rem;
        margin: 0;
        letter-spacing: 8px;
        background: linear-gradient(135deg, #ffd966, #ffaa33, #ffd966);
        -webkit-background-clip: text;
        background-clip: text;
        color: transparent;
        font-weight: 800;
    }

    .game-title-header h2 {
        font-size: 1.8rem;
        margin: 5px 0 0;
        letter-spacing: 10px;
        color: #ffefb9;
        font-weight: 500;
    }

.form-container {
    padding: 30px 35px 35px;
}

.info-message {
    background: rgba(0, 0, 0, 0.4);
    border-left: 4px solid #ffd966;
    padding: 15px 20px;
    border-radius: 16px;
    margin-bottom: 25px;
    color: #ffe2a4;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Custom Form Styles */
.custom-form-container {
    background: rgba(0, 0, 0, 0.35);
    border-radius: 28px;
    padding: 25px 30px;
    margin-bottom: 25px;
    border: 1px solid #ffd966;
}

.participant-form {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

    .form-group label {
        color: #ffefb9;
        font-weight: 600;
        font-size: 1rem;
    }

.form-input {
    background: #0f2a20;
    border: 2px solid #c9a34b;
    border-radius: 14px;
    padding: 14px 18px;
    font-size: 1rem;
    color: #ffefcf;
    outline: none;
    transition: all 0.2s;
    font-family: inherit;
}

    .form-input:focus {
        border-color: #ffd966;
        box-shadow: 0 0 10px rgba(255, 217, 0, 0.3);
    }

    .form-input:disabled {
        opacity: 0.6;
        cursor: not-allowed;
    }

.radio-group-custom {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.radio-custom {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #ffe2a4;
    cursor: pointer;
    padding: 8px 18px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 40px;
    transition: all 0.2s;
}

    .radio-custom:hover {
        background: rgba(255, 217, 102, 0.2);
        transform: translateX(3px);
    }

    .radio-custom input {
        width: 18px;
        height: 18px;
        accent-color: #ffd966;
        cursor: pointer;
    }

        .radio-custom input:disabled {
            cursor: not-allowed;
        }

.checkbox-group {
    flex-direction: row;
    align-items: center;
}

.checkbox-custom {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #ffe2a4;
    cursor: pointer;
    padding: 12px 22px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 48px;
    transition: all 0.2s;
}

    .checkbox-custom:hover {
        background: rgba(46, 204, 113, 0.2);
    }

    .checkbox-custom input {
        width: 20px;
        height: 20px;
        accent-color: #2ecc71;
        cursor: pointer;
    }

.submit-form-btn {
    background: linear-gradient(135deg, #2ecc71, #27ae60);
    color: white;
    font-size: 1.1rem;
    font-weight: bold;
    padding: 14px 32px;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    width: 100%;
    max-width: 280px;
    margin: 10px auto 0;
    display: block;
    font-family: inherit;
    box-shadow: 0 4px 0 #1e7a4a;
}

    .submit-form-btn:hover {
        transform: translateY(-2px);
        filter: brightness(1.05);
        box-shadow: 0 6px 0 #1e7a4a;
    }

    .submit-form-btn:active {
        transform: translateY(2px);
        box-shadow: 0 2px 0 #1e7a4a;
    }

    .submit-form-btn:disabled {
        opacity: 0.6;
        cursor: not-allowed;
        transform: none;
    }

.form-status {
    text-align: center;
    padding: 12px;
    border-radius: 14px;
    font-weight: bold;
    margin: 5px 0;
}

    .form-status.success {
        background: rgba(46, 204, 113, 0.25);
        border: 1px solid #2ecc71;
        color: #a8ffcc;
    }

    .form-status.error {
        background: rgba(231, 76, 60, 0.25);
        border: 1px solid #e74c3c;
        color: #ffb8a8;
    }

.form-buttons {
    text-align: center;
    margin-top: 10px;
}

.action-buttons-pregame {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 15px;
    flex-wrap: wrap;
}

.start-game-btn, .how-to-play-btn {
    font-family: 'Segoe UI', 'Poppins', system-ui, sans-serif;
    font-size: 1.2rem;
    font-weight: bold;
    padding: 14px 32px;
    border-radius: 80px;
    border: none;
    cursor: pointer;
    transition: 0.1s linear;
    box-shadow: 0 5px 0 #3a2a1a;
    letter-spacing: 1px;
}

.start-game-btn {
    background: linear-gradient(135deg, #d4af37, #b8860b);
    color: #1e2a1a;
    box-shadow: 0 5px 0 #7a5a1a;
}

    .start-game-btn:hover:not(:disabled) {
        transform: translateY(-2px);
        filter: brightness(1.05);
        box-shadow: 0 7px 0 #7a5a1a;
    }

    .start-game-btn:active:not(:disabled) {
        transform: translateY(3px);
        box-shadow: 0 2px 0 #7a5a1a;
    }

    .start-game-btn:disabled {
        opacity: 0.5;
        cursor: not-allowed;
        transform: none;
    }

.how-to-play-btn {
    background: #2c553f;
    color: #ffefcf;
    box-shadow: 0 5px 0 #1a3a2a;
}

    .how-to-play-btn:hover {
        background: #3e6e55;
        transform: translateY(-2px);
    }

    .how-to-play-btn:active {
        transform: translateY(3px);
    }

.form-note {
    text-align: center;
    font-size: 0.8rem;
    color: #c0dfcf;
    margin-top: 15px;
    padding: 8px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 30px;
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    animation: fadeInModal 0.2s ease;
}

@keyframes fadeInModal {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.modal-content {
    background: linear-gradient(145deg, #1e3a2e, #0f2a1f);
    border-radius: 48px;
    max-width: 600px;
    width: 90%;
    border: 2px solid #ffd966;
    box-shadow: 0 20px 40px rgba(0,0,0,0.6);
    overflow: hidden;
    animation: modalPop 0.25s cubic-bezier(0.34, 1.2, 0.8, 1);
}

@keyframes modalPop {
    from {
        transform: scale(0.92);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 28px;
    background: #2a4a38;
    border-bottom: 2px solid #ffd966;
}

    .modal-header h2 {
        margin: 0;
        color: #ffefb9;
        font-size: 1.6rem;
    }

.close-modal {
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: #ffd58c;
    padding: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    transition: 0.1s;
    box-shadow: none;
}

    .close-modal:hover {
        background: rgba(255,100,100,0.2);
        color: #ffaa77;
        transform: scale(1.1);
    }

.modal-body {
    padding: 24px 30px;
    color: #f0e2bc;
    font-size: 0.95rem;
    line-height: 1.5;
}

    .modal-body ul {
        margin: 10px 0;
        padding-left: 20px;
    }

    .modal-body li {
        margin: 6px 0;
    }

.modal-footer {
    padding: 18px 28px;
    display: flex;
    justify-content: center;
    border-top: 1px solid #c9a34b;
}

.start-game-modal-btn {
    background: linear-gradient(135deg, #d4af37, #b8860b);
    border: none;
    font-size: 1.2rem;
    font-weight: bold;
    padding: 12px 36px;
    border-radius: 60px;
    color: #1e2a1a;
    cursor: pointer;
    box-shadow: 0 4px 0 #7a5a1a;
    transition: 0.1s;
}

    .start-game-modal-btn:hover {
        transform: translateY(-2px);
        filter: brightness(1.05);
    }

/* Responsive */
@media (max-width: 768px) {
    .game-title-header h1 {
        font-size: 2.5rem;
        letter-spacing: 4px;
    }

    .game-title-header h2 {
        font-size: 1.2rem;
        letter-spacing: 6px;
    }

    .custom-form-container {
        padding: 18px;
    }

    .radio-group-custom {
        gap: 10px;
    }

    .radio-custom {
        padding: 5px 12px;
        font-size: 0.85rem;
    }

    .form-container {
        padding: 20px;
    }

    .action-buttons-pregame {
        flex-direction: column;
        align-items: center;
    }

    .start-game-btn, .how-to-play-btn {
        width: 80%;
        max-width: 280px;
    }
}

@media (max-width: 480px) {
    .game-title-header h1 {
        font-size: 1.8rem;
    }

    .game-title-header h2 {
        font-size: 1rem;
    }

    .custom-form-container {
        padding: 15px;
    }

    .submit-form-btn {
        font-size: 1rem;
        padding: 12px 24px;
    }
}
