/* Styles for game modals */

.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 5000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    font-family: 'Rajdhani', sans-serif;
    backdrop-filter: blur(5px);
}

.modal-overlay.briefing {
    z-index: 1500;
    background: rgba(0,0,5,0.98);
    flex-direction: column;
}

.modal-overlay.game-over {
    background: rgba(20,0,0,0.9);
    flex-direction: column;
    overflow-y: auto;
}

.modal-overlay.ambiguity {
    background: rgba(0,0,5,0.9);
}

/* Modal content container */
.modal-content {
    max-width: 500px;
    width: 100%;
    background: rgba(20,20,40,0.9);
    border: 1px solid #00f2ff;
    padding: 30px;
    border-radius: 12px;
    border-bottom: 4px solid #00f2ff;
    box-shadow: 0 0 30px rgba(0,242,255,0.13);
    text-align: left;
}

.modal-content.game-over {
    background: #0a0a0a;
    text-align: center;
}

.modal-content.ambiguity {
    background: #0a0a1a;
    border: 2px solid #00f2ff;
    text-align: center;
}

/* Common Modal Elements */
.modal-title-small {
    color: #00f2ff;
    font-family: 'Press Start 2P', monospace;
    font-size: 0.7rem;
    margin-bottom: 20px;
    opacity: 0.8;
}

.modal-title-large {
    color: white;
    font-size: 1.8rem;
    margin: 0 0 15px 0;
}

.briefing-box {
    background: rgba(0,242,255,0.05);
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 25px;
    border-left: 4px solid #ffd166;
}

.briefing-box-item {
    margin-bottom: 12px;
}

.briefing-box-item:last-child {
    margin-bottom: 0;
}

.briefing-box-label {
    color: #aaa;
    font-size: 0.8rem;
    text-transform: uppercase;
    display: block;
}

.briefing-box-val {
    color: white;
    font-size: 1.1rem;
    font-weight: 700;
}

.briefing-box-complaint {
    color: #ffd166;
    font-size: 1.1rem;
    font-weight: 700;
    font-style: italic;
}

.modal-desc {
    color: #888;
    font-size: 0.85rem;
    margin-bottom: 30px;
    line-height: 1.5;
}

/* Game Over specific */
.game-over-title {
    font-family: 'Press Start 2P', monospace;
    font-size: 1.5rem;
    margin-bottom: 25px;
    animation: pulse 1s infinite alternate;
}

.game-over-reason {
    font-size: 1.2rem;
    color: white;
    margin-bottom: 15px;
    line-height: 1.4;
}

.game-over-rank {
    background: rgba(0,242,255,0.1);
    border: 1px solid #00f2ff;
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 20px;
    color: #00f2ff;
    font-weight: 800;
}

.game-over-record {
    background: rgba(255,209,102,0.1);
    border: 1px solid #ffd166;
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 20px;
    color: #ffd166;
    font-weight: 800;
    animation: scaleIn 0.5s ease-out;
}

.chart-section {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.1);
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 30px;
    text-align: left;
}

.chart-section-title {
    font-size: 0.6rem;
    color: #888;
    letter-spacing: 2px;
    margin-bottom: 12px;
    text-transform: uppercase;
}

.chart-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.chart-label {
    font-size: 0.65rem;
    width: 100px;
    color: #ccc;
}

.chart-bar-bg {
    flex: 1;
    height: 4px;
    background: rgba(255,255,255,0.1);
    border-radius: 2px;
    overflow: hidden;
}

.chart-bar-fill {
    height: 100%;
    background: #00f2ff;
}

.study-plan-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.1);
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    text-align: left;
}

.study-plan-title {
    font-size: 0.6rem;
    color: #888;
    letter-spacing: 2px;
    margin-bottom: 12px;
    text-transform: uppercase;
}

.study-plan-weak-header {
    color: #ff0055;
    font-size: 0.7rem;
    font-weight: 800;
    margin-bottom: 8px;
}

@keyframes pulse {
    from { opacity: 0.6; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes scaleIn {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* Pause overlay and Settings overlay styles */
#pause-overlay {
    position: fixed;
    inset: 0;
    z-index: 4000;
    background: rgba(0, 0, 5, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
}

.pause-card {
    max-width: 400px;
    width: 100%;
    background: #070714;
    border: 2px solid #00f2ff;
    padding: 35px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 0 40px rgba(0, 242, 255, 0.2);
}

.pause-card h2 {
    font-family: 'Press Start 2P', monospace;
    font-size: 1.4rem;
    color: #00f2ff;
    margin-bottom: 25px;
}

.pause-card p {
    font-size: 0.95rem;
    color: #ccc;
    margin-bottom: 30px;
    line-height: 1.5;
}

.pause-btn-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Settings panel styling */
.settings-modal {
    max-width: 420px;
    width: 100%;
    background: #0a0a1a;
    border: 2px solid #ff00ff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 0 40px rgba(255, 0, 255, 0.2);
    font-family: 'Rajdhani', sans-serif;
    color: white;
}

.settings-title {
    font-family: 'Press Start 2P', monospace;
    font-size: 1rem;
    color: #ff00ff;
    margin-bottom: 25px;
    text-align: center;
}

.settings-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.settings-label {
    font-weight: 600;
    font-size: 1rem;
    color: #eee;
}

.settings-input {
    background: #000;
    border: 1px solid #ff00ff;
    color: white;
    padding: 8px;
    border-radius: 4px;
    outline: none;
    font-family: monospace;
    cursor: pointer;
}

.settings-slider {
    width: 120px;
    accent-color: #ff00ff;
    cursor: pointer;
}
