/*
 * Homepage preview of SnapSmartz Together (views/_together-preview.html).
 * Static pictures only; the activities themselves live on /together/.
 */

.tgp-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr));
    gap: clamp(1rem, 2vw, 1.5rem);
    margin: 0;
    padding: 0;
    list-style: none;
}

.tgp-card {
    display: flex;
    flex-direction: column;
    gap: .55rem;
    height: 100%;
    padding: 1.25rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-card);
    background: var(--white);
    color: var(--navy);
    text-decoration: none;
    transition: border-color 180ms var(--ease-out), box-shadow 180ms var(--ease-out);
}

.tgp-card:hover {
    border-color: var(--navy);
    box-shadow: 0 10px 28px rgba(20, 33, 61, .08);
}

.tgp-art {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .6rem;
    min-height: 8.5rem;
    margin-bottom: .4rem;
    padding: .75rem;
    border-radius: 6px;
    background: var(--alice);
}

.tgp-tile {
    display: grid;
    place-items: center;
    width: 3.75rem;
    aspect-ratio: 4 / 5;
    padding: .35rem;
    border: 2px solid var(--navy);
    border-radius: 8px;
    background: var(--navy) radial-gradient(circle at 50% 50%, transparent 0 21%, rgba(219, 228, 238, .38) 22% 24.5%, transparent 25.5% 39%, rgba(219, 228, 238, .2) 40% 41.5%, transparent 42.5%);
}

.tgp-tile.is-up {
    border-color: var(--line-strong);
    background: var(--white);
}

.tgp-tile svg, .tgp-choices svg {
    width: 100%;
    height: auto;
}

.tgp-group {
    display: grid;
    justify-items: center;
    gap: .2rem;
    min-width: 5.5rem;
    padding: .5rem .7rem;
    border: 2px solid var(--navy);
    border-radius: 8px;
    background: var(--white);
    font-size: .875rem;
    font-weight: 600;
}

.tgp-pic svg {
    width: 2.75rem;
    height: 2.75rem;
}

.tgp-art-cards {
    flex-direction: column;
}

.tgp-prompt {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
}

.tgp-choices {
    display: flex;
    gap: .4rem;
}

.tgp-choices span {
    display: grid;
    place-items: center;
    width: 2.75rem;
    height: 2.75rem;
    padding: .25rem;
    border-radius: 8px;
    background: var(--white);
}

.tgp-title {
    font-family: var(--font-display);
    font-size: 1.375rem;
    font-weight: 600;
    letter-spacing: -.02em;
}

.tgp-text {
    color: var(--muted);
}

.tgp-go {
    margin-top: auto;
    padding-top: .4rem;
    font-weight: 600;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: .3em;
}

.tgp-card:hover .tgp-go {
    text-decoration-color: var(--coral);
    text-decoration-thickness: 2px;
}

.tgp-free {
    display: flex;
    align-items: center;
    gap: .5rem;
    margin-top: 1.5rem;
    font-weight: 600;
}

.tgp-glyph {
    flex: none;
    width: 1.4rem;
    height: 1.4rem;
    color: var(--teal);
}

@media (prefers-reduced-motion: reduce) {
    .tgp-card {
        transition: none;
    }
}
