.home-progress {
    width: 100%;
    max-width: 900px;
    margin: 0 auto 22px;
}

.home-progress-card {
    padding: 18px;
    border-radius: 16px;
    border: 1px solid rgba(91, 164, 212, 0.36);
    background: linear-gradient(135deg, rgba(15, 45, 75, 0.94), rgba(20, 60, 100, 0.88));
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.24);
    color: var(--text-primary, #F5F5F0);
}

.home-progress-card.is-complete {
    border-color: rgba(74, 222, 128, 0.5);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.24), 0 0 0 1px rgba(74, 222, 128, 0.08);
}

.home-progress-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.home-progress-head h2 {
    margin: 0 0 4px;
    font-size: 1.15rem;
    color: var(--text-primary, #F5F5F0);
}

.home-progress-head p {
    margin: 0;
    color: var(--text-secondary, rgba(245, 245, 240, 0.8));
    font-size: 0.88rem;
}

.home-progress-count {
    min-width: 62px;
    height: 46px;
    padding: 0 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(91, 164, 212, 0.32);
    font-variant-numeric: tabular-nums;
}

.home-progress-count strong { font-size: 1.35rem; }
.home-progress-count span { color: rgba(245, 245, 240, 0.62); font-size: 0.88rem; }

.home-progress-track {
    width: 100%;
    height: 7px;
    margin: 14px 0;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
}

.home-progress-track span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--color-correct, #4ADE80), #86EFAC);
    transition: width 0.3s ease;
}

.home-progress-modes {
    display: grid;
    /* Web has four daily modes; the native bundle intentionally has two.
       Auto-fit keeps both builds balanced without mobile-only empty columns. */
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 9px;
}

.home-progress-mode {
    min-width: 0;
    padding: 10px 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    border-radius: 11px;
    border: 1px solid rgba(91, 164, 212, 0.24);
    background: rgba(0, 0, 0, 0.14);
    color: var(--text-primary, #F5F5F0);
    text-decoration: none;
    font-size: 0.84rem;
    font-weight: 650;
    transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.home-progress-mode:hover {
    background: rgba(91, 164, 212, 0.18);
    border-color: rgba(91, 164, 212, 0.55);
    transform: translateY(-1px);
}

.home-progress-mode.is-complete {
    background: rgba(74, 222, 128, 0.11);
    border-color: rgba(74, 222, 128, 0.5);
    color: #BBF7D0;
}

.home-progress-mode-icon {
    width: 24px;
    height: 24px;
    flex: 0 0 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
}

.home-progress-mode.is-complete .home-progress-mode-icon {
    background: rgba(74, 222, 128, 0.18);
    color: var(--color-correct, #4ADE80);
    font-weight: 900;
}

.home-progress-mode-name {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.home-progress-discovery {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid rgba(91, 164, 212, 0.2);
}

.home-progress-discovery a {
    min-height: 36px;
    padding: 7px 10px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border-radius: 999px;
    border: 1px solid rgba(91, 164, 212, 0.28);
    background: rgba(91, 164, 212, 0.09);
    color: rgba(245, 245, 240, 0.9);
    text-decoration: none;
    font-size: 0.78rem;
    font-weight: 650;
}

.home-progress-discovery a:hover {
    background: rgba(91, 164, 212, 0.2);
    border-color: rgba(91, 164, 212, 0.55);
}

.home-progress-mode:focus-visible,
.home-progress-discovery a:focus-visible {
    outline: 2px solid var(--accent-sky, #5BA4D4);
    outline-offset: 2px;
}

@media (max-width: 600px) {
    .home-progress-card { padding: 15px; }
    .home-progress-modes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .home-progress-discovery { display: grid; grid-template-columns: 1fr; }
    .home-progress-discovery a { justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
    .home-progress-track span,
    .home-progress-mode { transition: none; }
}
