/* The word sits on a fixed dark panel so every ink colour stays readable in light and dark themes. */
.cc-stage {
    display: grid;
    place-items: center;
    min-height: 140px;
    padding: 16px;
    background: #24262c;
    border-radius: var(--radius);
}

.cc-word {
    margin: 0;
    color: #f2f2f2;
    font-size: clamp(2.25rem, 11vw, 3.75rem);
    font-weight: 800;
    letter-spacing: 0.04em;
    transition: transform 0.15s;
}

.cc-word strong { color: #8fb3ff; }

.cc-word.is-correct { transform: scale(1.08); }
.cc-word.is-wrong { animation: cc-shake 0.25s; }

@keyframes cc-shake {
    25% { transform: translateX(-6px); }
    75% { transform: translateX(6px); }
}

.cc-ink--red { color: #ff5a4f; }
.cc-ink--blue { color: #5b9dff; }
.cc-ink--green { color: #4cc77f; }
.cc-ink--yellow { color: #ffd23f; }

.cc-question { margin: 12px 0 8px; text-align: center; color: var(--muted); }

.cc-choices {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

.cc-choice {
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: center;
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    color: var(--text);
    font: inherit;
    font-weight: 600;
    cursor: pointer;
}

.cc-choice:disabled { cursor: default; opacity: 0.6; }
.cc-choice:not(:disabled):hover { border-color: var(--accent); }
.cc-choice:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

.cc-swatch { width: 18px; height: 18px; border-radius: 50%; }
.cc-swatch--red { background: #ff5a4f; }
.cc-swatch--blue { background: #5b9dff; }
.cc-swatch--green { background: #4cc77f; }
.cc-swatch--yellow { background: #ffd23f; }

@media (min-width: 560px) {
    .cc-choices { grid-template-columns: repeat(4, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
    .cc-word { transition: none; }
    .cc-word.is-wrong { animation: none; }
}
