.game-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 24px;
    text-align: center;
}

.game-header {
    margin-bottom: 2rem;
}

.game-controls-top {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    font-weight: 700;
    color: var(--text-2, var(--color-text-sub));
}

/* --- Paragraph Area --- */
.paragraph-area {
    background: var(--surface-2, var(--color-surface));
    border-radius: 16px;
    padding: 2rem 2.5rem;
    text-align: left;
    line-height: 2.4;
    font-size: 1.15rem;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.06);
    margin-bottom: 2rem;
}

.para-word {
    display: inline;
    position: relative;
    transition: color 0.2s;
}

.para-word.found-left {
    color: var(--color-secondary);
    font-weight: 700;
}

.para-word.found-right {
    color: var(--color-secondary);
    font-weight: 700;
}

/* The clickable gap between words */
.word-gap {
    display: inline-block;
    width: 0.45em;
    height: 1.4em;
    cursor: pointer;
    vertical-align: middle;
    position: relative;
    border-radius: 3px;
    transition: all 0.2s ease;
    margin: 0 0.05em;
}

.word-gap::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 10%;
    bottom: 10%;
    width: 2px;
    background: transparent;
    border-radius: 2px;
    transform: translateX(-50%);
    transition: all 0.25s ease;
}

.word-gap:hover::before {
    background: var(--color-primary);
    box-shadow: 0 0 8px var(--color-primary), 0 0 16px rgba(187, 134, 252, 0.3);
    width: 3px;
}

.word-gap:hover {
    background: rgba(187, 134, 252, 0.08);
}

.word-gap.found::before {
    background: var(--color-secondary);
    box-shadow: 0 0 10px var(--color-secondary);
    width: 3px;
}

.word-gap.found {
    background: rgba(3, 218, 198, 0.1);
    cursor: default;
    pointer-events: none;
}

.word-gap.wrong {
    animation: shake 0.4s ease;
}

.word-gap.wrong::before {
    background: var(--color-accent, #CF6679);
    width: 3px;
}

/* Highlight letters that form the hidden word */
.hidden-letter {
    color: var(--color-secondary);
    font-weight: 700;
    text-decoration: underline;
    text-decoration-color: var(--color-secondary);
    text-underline-offset: 3px;
}

/* --- Hidden Words List (Sidebar) --- */
.bottom-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.hints-area {
    width: 100%;
    max-width: 500px;
}

.hints-area h3 {
    margin-bottom: 0.75rem;
    font-size: 1rem;
    color: var(--text-2, var(--color-text-sub));
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.hidden-words-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 8px;
}

.hint-item {
    background: var(--surface-2, var(--color-surface));
    padding: 12px 16px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 0.9rem;
    color: var(--text-2, var(--color-text-sub));
    transition: all 0.3s ease;
    text-align: left;
    display: flex;
    align-items: center;
    gap: 10px;
}

.hint-item .hint-icon {
    font-size: 1.1rem;
    min-width: 22px;
    text-align: center;
}

.hint-item .hint-text {
    flex: 1;
}

.hint-item .hint-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    opacity: 0.6;
}

.hint-item .hint-word {
    font-weight: 700;
    font-size: 1rem;
    margin-top: 2px;
}

.hint-item.revealed {
    opacity: 0.5;
}

.hint-item.found {
    background: rgba(3, 218, 198, 0.1);
    border-color: var(--color-secondary);
    color: var(--text-1, var(--color-text-main));
    animation: popIn 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.hint-item.found .hint-icon {
    color: var(--color-secondary);
}

/* --- Controls --- */
.controls {
    display: flex;
    gap: 12px;
    justify-content: center;
    align-items: center;
}

.btn-secondary {
    background: var(--surface-2, var(--color-surface));
    color: var(--color-primary);
    border: 1px solid var(--color-primary);
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.9rem;
}

.btn-secondary:hover {
    background: rgba(187, 134, 252, 0.12);
}

.btn-secondary:disabled {
    opacity: 0.4;
    cursor: default;
}

/* --- Feedback --- */
.view-section.hidden { display: none; }
.feedback.hidden { opacity: 0; pointer-events: none; }
.feedback {
    margin-top: 1.5rem;
    font-weight: 600;
    transition: opacity 0.3s;
    font-size: 1.05rem;
}
.feedback.success { color: var(--color-success, #4CAF50); }
.feedback.error { color: var(--color-error, var(--color-accent, #CF6679)); }

/* --- Results --- */
.score-circle {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 1.5rem auto;
    font-size: 2rem;
    font-weight: 800;
    color: white;
    box-shadow: 0 4px 24px rgba(187, 134, 252, 0.3);
}

.topic-reveal {
    color: var(--text-2, var(--color-text-sub));
    font-size: 0.95rem;
    margin-top: 0.5rem;
}

/* --- Animations --- */
@keyframes popIn {
    from { transform: scale(0.85); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

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

@keyframes slideUp {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* --- Responsive --- */
@media (max-width: 600px) {
    .paragraph-area {
        padding: 1.25rem 1rem;
        font-size: 1rem;
        line-height: 2.2;
    }

    .hidden-words-list {
        grid-template-columns: 1fr;
    }

    .word-gap {
        width: 0.5em;
    }
}
