/* Common styles for all revision games */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    min-height: 100vh;
    color: #fff;
    padding: 20px;
}

.header {
    text-align: center;
    margin-bottom: 20px;
}

.header h1 {
    font-size: 1.8rem;
    color: #00d4ff;
    margin-bottom: 5px;
}

.header p { color: #a0a0a0; }

.stats {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.stat {
    background: rgba(255,255,255,0.1);
    padding: 10px 25px;
    border-radius: 10px;
    text-align: center;
}

.stat-value { font-size: 1.5rem; font-weight: bold; color: #00d4ff; }
.stat-label { font-size: 0.8rem; color: #a0a0a0; }

.controls {
    text-align: center;
    margin-top: 20px;
}

.btn {
    padding: 12px 30px;
    font-size: 1rem;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    margin: 5px;
    transition: all 0.2s;
}

.btn-primary {
    background: linear-gradient(90deg, #00d4ff, #7b2cbf);
    color: #fff;
}

.btn-secondary {
    background: rgba(255,255,255,0.1);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.3);
}

.btn:hover { transform: scale(1.05); }

.back-link {
    display: inline-block;
    margin-bottom: 20px;
    color: #00d4ff;
    text-decoration: none;
}

.back-link:hover { text-decoration: underline; }

.win-message, .modal {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0,0,0,0.95);
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    z-index: 100;
    border: 2px solid #00d4ff;
}

.win-message h2, .modal h2 { color: #00d4ff; font-size: 2rem; margin-bottom: 20px; }
.win-message p, .modal p { margin-bottom: 10px; }

/* Responsive */
@media (max-width: 600px) {
    .header h1 { font-size: 1.5rem; }
    .stats { gap: 15px; }
    .stat { padding: 8px 15px; }
}
