/* ==========================================
   Weekly story count — the gentle reminder (js/story-weekly-progress.js)
   Separate from style.css so /test keeps its own copy: test/sync-from-prod.sh
   overwrites test/style.css from production.

   Calm on purpose: the app's own purple, no red, no warning icons, nothing
   that moves except a short fade in. English only.
   ========================================== */

/* History page card, above "Start New Story" */
.wp-card {
    background: var(--surface);
    border-radius: var(--radius-md);
    padding: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
    box-shadow: var(--shadow-sm);
    color: var(--text-primary);
    animation: wp-fade-in 0.3s ease-out;
}

.wp-card[hidden] {
    display: none;
}

.wp-top {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.wp-stamps {
    display: flex;
    gap: 6px;
    flex-shrink: 0;
}

.wp-stamp {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px dashed var(--outline-variant);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 700;
    line-height: 1;
}

.wp-stamp.is-done {
    border: 2px solid var(--primary-color);
    background: var(--primary-container);
    color: var(--primary-color);
}

.wp-card p {
    margin: 0;
}

.wp-head {
    min-width: 0;
    font-weight: 600;
    line-height: 1.35;
}

.wp-card.is-met .wp-head {
    color: var(--primary-color);
}

.wp-card .wp-msg {
    margin-top: var(--spacing-sm);
    font-size: 0.9rem;
    line-height: 1.45;
    color: var(--text-secondary);
}

.wp-continue {
    display: block;
    width: 100%;
    margin-top: var(--spacing-md);
    padding: 10px 14px;
    border: none;
    border-radius: var(--radius-sm);
    background: var(--primary-container);
    color: var(--on-primary-container);
    font-size: 0.9rem;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
}

.wp-continue:active {
    transform: translateY(1px);
}

/* Story Complete page: one line above "Start New Adventure" */
.wp-note {
    margin: 0;
    padding: 12px 16px;
    border-radius: var(--radius-md);
    background: var(--primary-container);
    color: var(--on-primary-container);
    font-weight: 600;
    text-align: center;
    animation: wp-fade-in 0.3s ease-out;
}

.wp-note[hidden] {
    display: none;
}

@keyframes wp-fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
    .wp-card,
    .wp-note {
        animation: none;
    }
}
