#game-root {
    --ws-accent: #10B981;
    --ws-accent-dark: #0e9c6f;
    --ws-accent-light: #e3f9ef;
    --ws-accent-border: #a7f3d0;
    border-radius: var(--kw-radius, 16px);
}

.ws-wrap {
    max-width: 520px;
    margin: 0 auto;
    padding: 20px 16px 28px;
}

.ws-loading,
.ws-error {
    text-align: center;
    padding: 48px 16px;
}

.ws-loading-icon,
.ws-error-icon {
    font-size: 40px;
    margin-bottom: 10px;
}

.ws-loading-icon {
    animation: ws-pulse 1.2s ease-in-out infinite;
}

.ws-loading-text {
    font-size: 15px;
    color: #666;
}

.ws-error-text {
    font-size: 15px;
    font-weight: 700;
    color: #EF4444;
}

.ws-progress {
    height: 8px;
    border-radius: 999px;
    background: var(--ws-accent-light);
    overflow: hidden;
    margin-bottom: 12px;
}

.ws-progress-fill {
    height: 100%;
    width: 0;
    background: var(--ws-accent);
    border-radius: 999px;
    transition: width .3s ease;
}

.ws-stat-row {
    justify-content: center;
    margin-bottom: 14px;
}

.ws-stat {
    background: var(--ws-accent-light);
    color: var(--ws-accent-dark);
    border-radius: 999px;
    padding: 6px 14px;
    font-weight: 700;
    font-size: 14px;
}

.ws-card {
    background: #fff;
    border-radius: var(--kw-radius, 16px);
    padding: 24px 18px;
    text-align: center;
    box-shadow: 0 3px 12px rgba(0, 0, 0, .07);
    animation: ws-fade-in .25s ease;
}

.ws-clue {
    font-size: 56px;
    margin-bottom: 18px;
}

.ws-answer {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 22px;
    flex-wrap: wrap;
    border-radius: 12px;
    padding: 6px;
    transition: background .15s ease;
}

.ws-slot {
    width: 40px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 3px solid var(--ws-accent-border);
    border-radius: 8px;
    background: var(--ws-accent-light);
    font-size: 22px;
    font-weight: 800;
    color: var(--ws-accent-dark);
}

.ws-slot.filled {
    border-bottom-color: var(--ws-accent);
    background: #fff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, .08);
    animation: ws-pop .15s ease;
}

.ws-answer.correct .ws-slot {
    background: #DCFCE7;
    border-bottom-color: #10B981;
    color: #0e9c6f;
    animation: ws-pop .3s ease;
}

.ws-answer.incorrect {
    animation: ws-shake .3s ease;
}

.ws-answer.incorrect .ws-slot.filled {
    background: #FEE2E2;
    border-bottom-color: #EF4444;
    color: #EF4444;
}

.ws-bank {
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}

.ws-tile {
    width: 42px;
    height: 42px;
    border: 2px solid var(--ws-accent-border);
    border-radius: 10px;
    background: var(--ws-accent-light);
    color: var(--ws-accent-dark);
    font-size: 18px;
    font-weight: 800;
    cursor: pointer;
    transition: transform .1s ease, opacity .2s ease;
}

.ws-tile:hover:not(:disabled) {
    transform: translateY(-2px);
    border-color: var(--ws-accent);
}

.ws-tile.used {
    opacity: 0;
    transform: scale(.5);
    pointer-events: none;
}

.ws-actions {
    justify-content: center;
}

.ws-action-btn {
    border: 2px solid var(--ws-accent-border);
    background: #fff;
    color: var(--ws-accent-dark);
    padding: 8px 16px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    transition: background .15s ease;
}

.ws-action-btn:hover {
    background: var(--ws-accent-light);
}

.ws-done-card {
    text-align: center;
    background: #fff;
    border-radius: var(--kw-radius, 16px);
    padding: 32px 20px;
    box-shadow: 0 3px 12px rgba(0, 0, 0, .07);
    animation: ws-pop .3s ease;
}

.ws-done-emoji {
    font-size: 56px;
    margin-bottom: 8px;
}

.ws-done-title {
    font-size: 20px;
    font-weight: 800;
    color: var(--ws-accent-dark);
    margin-bottom: 6px;
}

.ws-done-score {
    font-size: 16px;
    font-weight: 600;
    color: #555;
    margin-bottom: 10px;
}

.ws-done-stars {
    font-size: 24px;
    letter-spacing: 4px;
}

.ws-done-share {
    justify-content: center;
    margin-top: 16px;
}

.ws-done-actions {
    justify-content: center;
    margin-top: 20px;
}

.ws-btn-primary {
    border: none;
    padding: 12px 22px;
    border-radius: 999px;
    font-weight: 800;
    font-size: 14px;
    cursor: pointer;
    background: var(--ws-accent);
    color: #fff;
    box-shadow: 0 3px 0 var(--ws-accent-dark);
    transition: transform .1s ease;
}

.ws-btn-primary:hover {
    transform: translateY(-1px);
}

@keyframes ws-fade-in {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes ws-pop {
    0% { transform: scale(.85); }
    100% { transform: scale(1); }
}

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

@keyframes ws-pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.15); opacity: .7; }
}

@media (max-width: 380px) {
    .ws-slot {
        width: 34px;
        height: 40px;
        font-size: 18px;
    }

    .ws-tile {
        width: 38px;
        height: 38px;
    }
}
