/* Zasady gier: lista gier z filtrami, karta gry i podobne gry. Kolory dziedziczone z motywu (currentColor). */
.tp-game-page {
    box-sizing: border-box;
    margin-left: auto;
    margin-right: auto;
    max-width: var(--container-max, 1100px);
    padding: 0 var(--space-4, 1.25rem) var(--space-6, 2rem);
    width: 100%;
}

.tp-game-breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    font-size: 14px;
    gap: 0.4rem;
    line-height: 1.5;
    padding: 20px 0 32px;
}

.tp-game-breadcrumbs a {
    color: inherit;
    text-decoration: none;
}

.tp-game-breadcrumbs [aria-current] {
    opacity: 0.7;
}

.tp-game-page .entry-content > p:first-child {
    max-width: 46rem;
}

.tp-game-groups {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 1.25rem 0;
}

.tp-game-groups a {
    border: 1px solid currentColor;
    border-radius: 999px;
    font-size: 0.9rem;
    padding: 0.3rem 0.8rem;
    text-decoration: none;
}

.tp-game-filters {
    align-items: end;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1rem;
    margin: 1.25rem 0;
}

.tp-game-filters label {
    display: flex;
    flex: 1 1 160px;
    flex-direction: column;
    font-size: 0.85rem;
    font-weight: 600;
    gap: 0.25rem;
}

.tp-game-filters input,
.tp-game-filters select {
    box-sizing: border-box;
    font: inherit;
    font-weight: 400;
    min-height: 2.5rem;
    padding: 0.4rem 0.6rem;
    width: 100%;
}

.tp-game-count {
    flex-basis: 100%;
    font-size: 0.85rem;
    opacity: 0.75;
}

.tp-game-grid {
    display: grid;
    gap: 0.75rem;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    list-style: none;
    margin: 1rem 0;
    padding: 0;
}

.tp-game-item[hidden] {
    display: none;
}

.tp-game-item a {
    border: 1px solid rgba(127, 127, 127, 0.3);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    height: 100%;
    padding: 0.85rem 1rem;
    text-decoration: none;
    box-sizing: border-box;
}

.tp-game-item a:hover,
.tp-game-item a:focus-visible {
    border-color: currentColor;
}

.tp-game-name {
    font-size: 1.05rem;
    font-weight: 700;
}

.tp-game-meta,
.tp-game-group {
    font-size: 0.85rem;
    opacity: 0.75;
}

.tp-game-card {
    border: 1px solid rgba(127, 127, 127, 0.3);
    border-radius: 8px;
    margin: 1.5rem 0;
    max-width: 46rem;
    padding: 1rem 1.25rem;
}

.tp-game-card dl {
    display: grid;
    gap: 0.6rem 1.5rem;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    margin: 0;
}

.tp-game-card dt {
    font-size: 0.8rem;
    opacity: 0.7;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.tp-game-card dd {
    font-weight: 600;
    margin: 0.1rem 0 0;
}

.tp-game-card-more {
    font-size: 0.9rem;
    margin: 0.85rem 0 0;
}

.tp-game-similar {
    margin-top: 2.5rem;
}
