.quotes-body {
    background-color: #F8C8DC;
    min-height: 100vh;
}

.quotes-wrap {
    max-width: 720px;
    margin: 0 auto;
    padding: 0 16px 40px;
}

.quotes-title {
    text-align: center;
    color: white;
    font-family: 'Playfair Display', serif;
    font-size: 40px;
    font-weight: 700;
    margin: 8px 0 4px;
}

.quotes-instructions {
    text-align: center;
    color: white;
    font-family: 'Playfair Display', serif;
    font-size: 22px;
    margin: 0 0 20px;
}

.scoreboard {
    display: flex;
    justify-content: center;
    gap: 32px;
    margin-bottom: 24px;
}

.score {
    background-color: rgba(255, 255, 255, 0.25);
    border-radius: 12px;
    padding: 10px 24px;
    text-align: center;
    min-width: 100px;
    color: white;
    font-family: 'Playfair Display', serif;
}

.score-label {
    display: block;
    font-size: 16px;
    letter-spacing: 1px;
    text-transform: uppercase;
    opacity: 0.9;
}

.score-value {
    display: block;
    font-size: 32px;
    font-weight: 700;
    line-height: 1.1;
}

.quote-card {
    position: relative;
    background-color: white;
    border-radius: 12px;
    padding: 36px 44px;
    margin-bottom: 24px;
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.quote-mark {
    position: absolute;
    font-family: 'Playfair Display', serif;
    font-size: 72px;
    line-height: 1;
    color: #5a3b4a;
    opacity: 0.35;
}

.quote-mark {
    top: 4px;
    left: 12px;
}

.quote-mark-close {
    top: auto;
    left: auto;
    bottom: -20px;
    right: 12px;
}

.quote-text {
    font-family: 'Playfair Display', serif;
    font-size: 22px;
    line-height: 1.5;
    color: #2b1a22;
    text-align: center;
    font-style: italic;
    margin: 0;
}

.guess-form {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.input-wrap {
    position: relative;
    flex: 1 1 320px;
}

.guess-input {
    width: 100%;
    box-sizing: border-box;
    font-family: 'Playfair Display', serif;
    font-size: 20px;
    padding: 12px 18px;
    border: 2px solid #2b1a22;
    border-radius: 24px;
    background-color: white;
    color: #2b1a22;
    outline: none;
}

.suggestions {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    width: 100%;
    box-sizing: border-box;
    margin: 0;
    padding: 6px 0;
    list-style: none;
    background-color: white;
    border: 2px solid #2b1a22;
    border-radius: 16px;
    max-height: 240px;
    overflow-y: auto;
    z-index: 20;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

.suggestion {
    padding: 8px 18px;
    font-family: 'Playfair Display', serif;
    font-size: 18px;
    color: #2b1a22;
    cursor: pointer;
}

.suggestion:hover,
.suggestion.active {
    background-color: #f8c8dc;
}

.guess-input:focus {
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.6);
}

.guess-input:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.ctrl-btn {
    font-family: 'Playfair Display', serif;
    font-size: 20px;
    padding: 12px 28px;
    background-color: white;
    border: 2px solid #2b1a22;
    border-radius: 24px;
    cursor: pointer;
    color: #2b1a22;
    transition: background-color 0.2s, color 0.2s, transform 0.15s;
}

.ctrl-btn:hover:not(:disabled) {
    background-color: #2b1a22;
    color: white;
}

.ctrl-btn.submit {
    background-color: #2b1a22;
    color: white;
}

.ctrl-btn.submit:hover:not(:disabled) {
    background-color: #5a3b4a;
}

.ctrl-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.next-btn {
    display: block;
    margin: 0 auto;
}

.end-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 12px;
}

.feedback {
    text-align: center;
    font-family: 'Playfair Display', serif;
    font-size: 22px;
    color: white;
    min-height: 56px;
    margin: 8px 0 16px;
    line-height: 1.3;
}

.feedback.correct {
    color: #2a5d2a;
}

.feedback.wrong {
    color: #7a1f1f;
}

.feedback .novel {
    display: block;
    font-size: 16px;
    opacity: 0.85;
    font-style: italic;
    margin-top: 2px;
}

.quote-card.correct {
    animation: flash-correct 0.6s;
}

.quote-card.wrong {
    animation: shake 0.4s;
}

@keyframes flash-correct {
    0%, 100% { background-color: white; }
    40% { background-color: #d4f3d4; }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    20% { transform: translateX(-8px); }
    40% { transform: translateX(8px); }
    60% { transform: translateX(-5px); }
    80% { transform: translateX(5px); }
}

@media (max-width: 600px) {
    .quotes-title { font-size: 30px; }
    .quotes-instructions { font-size: 18px; }
    .quote-text { font-size: 18px; }
    .quote-card { padding: 28px 32px; }
    .quote-mark { font-size: 56px; }
    .score { padding: 8px 18px; min-width: 80px; }
    .score-value { font-size: 26px; }
    .guess-input { font-size: 18px; }
    .ctrl-btn { font-size: 18px; padding: 10px 22px; }
}
