body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #e8edf5, #d8e2f0);
    margin: 0;
    padding: 35px;
    text-align: center;
    color: #1d1d1d;
}

h1 {
    color: #2f4d82;
    font-size: 3.5rem;
    margin: 10px 0;
}

.subtitle {
    font-size: 1.2rem;
    margin-bottom: 25px;
}

.home-card,
.game-card {
    background: white;
    max-width: 950px;
    margin: 30px auto;
    padding: 35px;
    border-radius: 22px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

.info-box {
    background: #f4f6fa;
    border-radius: 15px;
    padding: 20px;
    margin: 25px auto;
    max-width: 650px;
    text-align: left;
}

label {
    font-size: 1.1rem;
}

input {
    width: 320px;
    padding: 14px;
    font-size: 18px;
    border: 2px solid #2f4d82;
    border-radius: 12px;
    margin: 10px;
}

button {
    width: 100%;
    padding: 18px;
    margin: 13px 0;
    border: none;
    border-radius: 12px;
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
    background: #2f4d82;
    color: white;
    transition: all 0.25s ease;
}

button:hover {
    background: #1f365e;
    transform: scale(1.02);
}

button:disabled {
    cursor: not-allowed;
    opacity: 0.9;
}

.correct {
    background: #28a745 !important;
}

.wrong {
    background: #dc3545 !important;
}

.top-panel {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.score-box {
    background: #2f4d82;
    color: white;
    padding: 15px 30px;
    border-radius: 14px;
    font-size: 22px;
    font-weight: bold;
    min-width: 180px;
}

.progress-box,
.meter-box {
    margin: 20px auto;
    max-width: 650px;
    font-size: 18px;
    color: #444;
}

.progress-bar,
.quality-bar {
    background: #c8d2e2;
    border-radius: 20px;
    height: 18px;
    margin-top: 10px;
    overflow: hidden;
}

#progressFill,
#qualityFill {
    height: 100%;
    width: 0%;
    background: #2f4d82;
    border-radius: 20px;
    transition: width 0.4s ease;
}

#feedbackBox {
    max-width: 850px;
    margin: 20px auto;
    padding: 18px;
    border-radius: 14px;
    font-size: 18px;
    font-weight: bold;
    min-height: 25px;
}

.feedback-correct {
    background: #d4edda;
    color: #155724;
}

.feedback-wrong {
    background: #f8d7da;
    color: #721c24;
}

#questionTitle {
    color: #2f4d82;
    font-size: 1.8rem;
}

#questionText {
    font-size: 1.35rem;
    margin: 30px;
}

#finalScore {
    font-size: 30px;
    font-weight: bold;
    color: #2f4d82;
}

#finalTime {
    font-size: 22px;
}

.main-link,
.secondary-link {
    display: inline-block;
    margin: 12px;
    padding: 14px 25px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: bold;
}

.main-link {
    background: #2f4d82;
    color: white;
}

.secondary-link {
    background: white;
    color: #2f4d82;
    border: 2px solid #2f4d82;
}

.main-link:hover,
.secondary-link:hover {
    transform: scale(1.03);
}

table {
    margin: 25px auto;
    border-collapse: collapse;
    background: white;
    min-width: 700px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.12);
}

th {
    background: #2f4d82;
    color: white;
}

th,
td {
    padding: 14px 20px;
    border: 1px solid #ddd;
}