.kids-page {
    max-width: 900px;
        min-height: 686px;
}

.kids-pick {
    display: flex;
    flex-direction: column;
    width: 100%;
    text-align: left;
    background: #fff;
    border-radius: 0.375rem;
    padding: 0;
    overflow: hidden;
    cursor: pointer;
    color: inherit;
}

.kids-pick:hover,
.kids-pick:focus-visible {
    box-shadow: 0 0.5rem 1rem rgba(58, 81, 116, 0.18);
    outline: none;
}

.kids-pick .card-header {
    width: 100%;
}

.kids-preview {
    background: #d2dceb;
    border-radius: 8px;
    padding: 0.85rem 1rem;
    text-align: center;
}

.kids-preview-prompt {
    font-size: 2.4rem;
    font-weight: 700;
    color: #3a5174;
    line-height: 1.1;
    margin-bottom: 0.6rem;
}

.kids-preview-choices,
.kids-preview-keys {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
}

.kids-preview-choices span,
.kids-preview-keys span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.4rem;
    min-height: 2.4rem;
    background: #fff;
    border-radius: 0.5rem;
    font-weight: 700;
    color: #334155;
}

.kids-preview .is-match {
    background: #ffe082;
    box-shadow: 0 0 0 2px #7284b7;
}

.kids-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
    justify-content: space-between;
}

.kids-stars {
    display: flex;
    gap: 0.35rem;
    font-size: 1.25rem;
    letter-spacing: 0.05em;
    color: #c5cdd8;
}

.kids-stars span.is-on {
    color: #e6b422;
}

.kids-hint {
    min-height: 1.5em;
    margin-bottom: 0.75rem;
}

.kids-stage {
    position: relative;
    border: 1px solid #7284b7;
    min-height: 22rem;
}

.kids-prompt-wrap {
    display: flex;
    justify-content: center;
    margin-bottom: 1.25rem;
}

.kids-prompt {
    display: flex;
    align-items: center;
    justify-content: center;
    width: min(42vw, 9.5rem);
    height: min(42vw, 9.5rem);
    font-size: clamp(3.5rem, 12vw, 6rem);
    font-weight: 700;
    color: #3a5174;
    background: #f4f7fb;
    border: 4px solid #7284b7;
    border-radius: 1.25rem;
    user-select: none;
    touch-action: none;
}

.kids-drop-on .kids-prompt {
    border-style: dashed;
}

.kids-prompt.is-correct {
    background: #d1f3e4;
    border-color: #1cc88a;
    border-style: solid;
}

.kids-prompt.is-wrong {
    animation: kids-shake 0.4s ease;
    border-color: #e74a3b;
}

.kids-choices {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.kids-tile {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    width: min(28vw, 6.5rem);
    height: min(28vw, 6.5rem);
    font-size: clamp(2rem, 8vw, 3.25rem);
    font-weight: 700;
    color: #3a5174;
    background: #fff;
    border: 3px solid #7284b7;
    border-radius: 1rem;
    cursor: grab;
    user-select: none;
    touch-action: none;
    box-shadow: 0 4px 0 #3a5174;
}

.kids-tile:active {
    cursor: grabbing;
}

.kids-tile.is-dragging {
    opacity: 0.85;
    z-index: 20;
    box-shadow: 0 10px 20px rgba(58, 81, 116, 0.25);
}

.kids-tile.is-wrong {
    animation: kids-shake 0.4s ease;
    border-color: #e74a3b;
}

.kids-tile.is-correct {
    background: #d1f3e4;
    border-color: #1cc88a;
}

.kids-kb {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    align-items: stretch;
}

.kids-kb-row {
    display: flex;
    justify-content: center;
    gap: 0.35rem;
}

.kids-key {
    flex: 1 1 0;
    max-width: 3.4rem;
    min-height: 2.6rem;
    padding: 0;
    border: 2px solid #9aa4b2;
    border-radius: 0.5rem;
    background: #fff;
    color: #334155;
    font-family: inherit;
    font-weight: 700;
    font-size: clamp(0.95rem, 3.4vw, 1.25rem);
    line-height: 1;
    user-select: none;
    cursor: pointer;
}

.kids-key.is-target {
    background: #ffe082;
    border-color: #7284b7;
    box-shadow: 0 0 0 3px rgba(114, 132, 183, 0.35);
    animation: kids-pulse 1.2s ease-in-out infinite;
}

.kids-key.is-wrong {
    background: #f8d7da;
    border-color: #e74a3b;
}

.kids-key.is-correct {
    background: #d1f3e4;
    border-color: #1cc88a;
}

.kids-done[hidden] {
    display: none !important;
}

.kids-done {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(244, 247, 251, 0.94);
    z-index: 5;
}

.kids-done-card {
    padding: 1.5rem;
}

.kids-done-stars {
    font-size: 1.5rem;
    color: #e6b422;
    letter-spacing: 0.15em;
}

@keyframes kids-shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-8px); }
    75% { transform: translateX(8px); }
}

@keyframes kids-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.08); }
}

@media (max-width: 575.98px) {
    .kids-key {
        min-height: 2.35rem;
        max-width: none;
    }
}
