/* LABS module — picker grid (mirrors modules/game/css/game.css patterns) */

.lab-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 260px));
    justify-content: center;
    gap: 20px;
    padding: 24px 40px 40px;
    max-width: 1100px;
    margin: 0 auto;
}

.lab-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1rem;
    background: white;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    color: inherit;
    text-decoration: none;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    max-width: 260px;
}

.lab-tile:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.lab-intro {
    color: var(--text-secondary);
    font-size: 1rem;
    margin: 0 0 1.5rem;
}

.lab-tile-icon {
    width: 128px;
    height: 128px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    margin-bottom: 0.75rem;
    background: linear-gradient(135deg, var(--color-primary-soft), var(--bg-surface));
    color: var(--color-primary);
    box-shadow: inset 0 0 0 1px var(--border-soft);
    transition: transform 0.15s ease, color 0.15s ease;
}

.lab-tile:hover .lab-tile-icon {
    transform: rotate(-3deg) scale(1.04);
    color: var(--color-primary-hover);
}

.lab-tile-icon svg {
    width: 88px;
    height: 88px;
    display: block;
}

.lab-tile-icon-fallback {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--color-primary);
    user-select: none;
}

.lab-tile h3 {
    margin: 0.25rem 0;
}

.lab-tile p {
    font-size: 0.9rem;
    opacity: 0.85;
    margin: 0;
}

/* ── Watcher status pill (poke_watch + coinbase_watcher tiles) ── */

.lab-watcher-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: 0.5rem;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    border: 1px solid transparent;
}

.lab-watcher-pill::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
    flex-shrink: 0;
}

.lab-watcher-pill.is-fresh {
    color: var(--status-fresh-text);
    background: var(--status-fresh-bg);
    border-color: var(--status-fresh-border);
}

.lab-watcher-pill.is-slow {
    color: var(--status-slow-text);
    background: var(--status-slow-bg);
    border-color: var(--status-slow-border);
}

.lab-watcher-pill.is-delayed {
    color: var(--status-delayed-text);
    background: var(--status-delayed-bg);
    border-color: var(--status-delayed-border);
}

.lab-watcher-pill.is-offline {
    color: var(--status-offline-text);
    background: var(--status-offline-bg);
    border-color: var(--status-offline-border);
}

@media (max-width: 720px) {
    .lab-list {
        grid-template-columns: 1fr;
        padding: 16px;
        gap: 12px;
    }

    .lab-tile {
        max-width: 100%;
    }
}
