/* ==========================================================================
   GG Free — dark gaming theme
   Zero zewnętrznych zależności: systemowe fonty, czysty CSS3.
   ========================================================================== */

@font-face {
    font-family: "Orbitron";
    font-style: normal;
    font-weight: 800;
    font-display: swap;
    src: url("../fonts/orbitron-latin-800.woff2") format("woff2");
}

:root {
    --bg: #070a0f;
    --bg-soft: #0a0f16;
    --panel: #0d141d;
    --panel-2: #111a24;
    --line: rgba(148, 163, 184, 0.12);
    --line-strong: rgba(148, 163, 184, 0.24);
    --text: #e9eef6;
    --muted: #92a1b5;
    --accent: #8b5cf6;
    --accent-2: #22d3ee;
    --green: #34d399;
    --danger: #fb7185;
    --radius: 16px;
    --radius-sm: 10px;
    --shadow: 0 22px 60px rgba(0, 0, 0, 0.5);
    --wrap: 1220px;
    --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

[hidden] {
    display: none !important;
}

html {
    color-scheme: dark;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    min-height: 100vh;
    overflow-x: clip;
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.55;
    color: var(--text);
    background-color: var(--bg);
    background-image:
        radial-gradient(70rem 40rem at 12% -12%, rgba(139, 92, 246, 0.16), transparent 60%),
        radial-gradient(60rem 35rem at 96% -8%, rgba(34, 211, 238, 0.10), transparent 55%);
    background-repeat: no-repeat;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

img {
    max-width: 100%;
    display: block;
}

button,
input {
    font: inherit;
}

a {
    color: var(--accent-2);
}

::selection {
    background: rgba(139, 92, 246, 0.45);
    color: #fff;
}

:focus-visible {
    outline: 2px solid var(--accent-2);
    outline-offset: 3px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: fixed;
    top: 0.75rem;
    left: 0.75rem;
    z-index: 100;
    padding: 0.65rem 1rem;
    border-radius: 999px;
    background: var(--accent);
    color: #fff;
    font-weight: 700;
    text-decoration: none;
    transform: translateY(-150%);
    transition: transform 0.2s ease;
}

.skip-link:focus-visible {
    transform: translateY(0);
}

.wrap {
    width: min(100% - 2.5rem, var(--wrap));
    margin-inline: auto;
}

/* Nagłówek ---------------------------------------------------------------- */

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(7, 10, 15, 0.84);
    border-bottom: 1px solid var(--line);
    -webkit-backdrop-filter: blur(16px) saturate(140%);
    backdrop-filter: blur(16px) saturate(140%);
}

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding-block: 0.9rem;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    color: var(--text);
    text-decoration: none;
    flex: none;
}

.brand-mark {
    display: grid;
    place-items: center;
    width: 2.25rem;
    height: 2.25rem;
}

.brand-mark svg {
    filter: drop-shadow(0 0 14px rgba(139, 92, 246, 0.45));
}

.brand-name {
    font-family: "Orbitron", var(--font);
    font-size: 1.12rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.brand-free {
    background: linear-gradient(90deg, var(--accent-2), var(--green));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.search {
    position: relative;
    flex: 0 1 350px;
}

.search-icon {
    position: absolute;
    top: 50%;
    left: 0.9rem;
    translate: 0 -50%;
    color: var(--muted);
    pointer-events: none;
}

.search input {
    width: 100%;
    padding: 0.62rem 2.4rem 0.62rem 2.5rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(13, 20, 29, 0.9);
    color: var(--text);
    font-size: 0.9rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.search input::placeholder {
    color: #64748b;
}

.search input:hover {
    border-color: var(--line-strong);
}

.search input:focus {
    outline: none;
    border-color: rgba(139, 92, 246, 0.7);
    background: var(--panel);
    box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.14);
}

.search input::-webkit-search-cancel-button,
.search input::-webkit-search-decoration {
    -webkit-appearance: none;
    appearance: none;
}

.search-clear {
    position: absolute;
    top: 50%;
    right: 0.45rem;
    translate: 0 -50%;
    display: grid;
    place-items: center;
    width: 1.7rem;
    height: 1.7rem;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(148, 163, 184, 0.14);
    color: var(--muted);
    font-size: 1rem;
    line-height: 1;
    cursor: pointer;
    transition: background 0.18s ease, color 0.18s ease;
}

.search-clear:hover {
    background: rgba(148, 163, 184, 0.24);
    color: var(--text);
}

.genre-list {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.genre-option {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    min-height: 44px;
    padding: 0.3rem 0.4rem;
    border-radius: 8px;
    color: var(--muted);
    font-size: 0.8rem;
    cursor: pointer;
    transition: color 0.16s ease, background 0.16s ease;
}

.genre-option:hover {
    color: var(--text);
    background: rgba(255, 255, 255, 0.045);
}

.genre-option input {
    display: grid;
    place-content: center;
    flex: none;
    width: 18px;
    height: 18px;
    margin: 0;
    border: 1px solid var(--line-strong);
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.03);
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
    transition: background 0.16s ease, border-color 0.16s ease;
}

.genre-option input::before {
    content: "";
    width: 9px;
    height: 5px;
    margin-top: -2px;
    border-bottom: 2px solid #fff;
    border-left: 2px solid #fff;
    transform: rotate(-45deg) scale(0);
    transition: transform 0.12s ease;
}

.genre-option input:checked {
    border-color: transparent;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
}

.genre-option input:checked::before {
    transform: rotate(-45deg) scale(1);
}

.genre-option input:focus-visible {
    outline: 2px solid var(--accent-2);
    outline-offset: 2px;
}

.genre-name {
    flex: 1 1 auto;
    min-width: 0;
}

.genre-count {
    flex: none;
    color: #6b7a8f;
    font-size: 0.68rem;
    font-variant-numeric: tabular-nums;
}

.genre-option.is-checked {
    color: var(--text);
    background: rgba(34, 211, 238, 0.08);
}

.genre-option.is-disabled {
    opacity: 0.35;
    cursor: default;
}

.genre-option.is-disabled:hover {
    color: var(--muted);
    background: none;
}

.filter-clear {
    padding: 0;
    border: 0;
    background: none;
    color: var(--accent-2);
    font-size: 0.68rem;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.filter-hint {
    margin: 0 0 0.55rem;
    color: var(--muted);
    font-size: 0.68rem;
    line-height: 1.45;
}

.review-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
}

.review-filter--rating {
    margin-top: 0.4rem;
}

.review-btn {
    padding: 0.3rem 0.55rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.025);
    color: var(--muted);
    font: inherit;
    font-size: 0.7rem;
    font-weight: 650;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
    cursor: pointer;
    transition: color 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.review-btn:hover {
    color: var(--text);
    background: rgba(255, 255, 255, 0.055);
}

.review-btn[aria-pressed="true"] {
    border-color: rgba(34, 211, 238, 0.38);
    background: rgba(34, 211, 238, 0.13);
    color: #a5f3fc;
}

/* Główna treść ------------------------------------------------------------ */

.main {
    padding-bottom: 5rem;
}

.notice {
    margin: 1.25rem 0 0;
    padding: 0.9rem 1.1rem;
    border: 1px solid rgba(251, 113, 133, 0.35);
    border-radius: var(--radius-sm);
    background: rgba(251, 113, 133, 0.08);
    color: #fecdd3;
    font-size: 0.9rem;
}

.notice code {
    padding: 0.1rem 0.35rem;
    border-radius: 5px;
    background: rgba(0, 0, 0, 0.3);
    font-family: var(--mono);
    font-size: 0.82em;
    color: #ffe4e6;
}

.hero {
    --hero-gutter: max(1.25rem, calc((100vw - var(--wrap)) / 2));
    position: relative;
    isolation: isolate;
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 100vw;
    max-width: none;
    min-height: calc(100vh - var(--header-height, 4.6rem));
    min-height: calc(100svh - var(--header-height, 4.6rem));
    margin-inline: calc(50% - 50vw);
    padding: clamp(3rem, 7vh, 5.5rem) var(--hero-gutter) clamp(4.5rem, 9vh, 6rem);
    overflow: clip;
}

.hero-media {
    position: absolute;
    inset: 0;
    z-index: -2;
    overflow: hidden;
    background: var(--bg-soft);
    filter: blur(9px) saturate(1.18) brightness(0.9);
    animation: hero-drift 36s ease-in-out infinite alternate;
}

.hero-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    animation: hero-slide-cycle 28s ease-in-out infinite both;
}

.hero-slide:nth-child(2) {
    animation-delay: 7s;
}

.hero-slide:nth-child(3) {
    animation-delay: 14s;
}

.hero-slide:nth-child(4) {
    animation-delay: 21s;
}

.hero-shade {
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
        radial-gradient(58rem 38rem at 17% 18%, rgba(139, 92, 246, 0.2), transparent 64%),
        radial-gradient(52rem 34rem at 86% 84%, rgba(34, 211, 238, 0.14), transparent 66%),
        linear-gradient(100deg, rgba(7, 10, 15, 0.92) 0%, rgba(7, 10, 15, 0.72) 38%, rgba(7, 10, 15, 0.22) 72%, rgba(7, 10, 15, 0.55) 100%),
        linear-gradient(180deg, rgba(7, 10, 15, 0.62) 0%, rgba(7, 10, 15, 0.08) 34%, rgba(7, 10, 15, 0.78) 78%, var(--bg) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    width: min(100%, 860px);
}

.hero-scroll {
    position: absolute;
    z-index: 2;
    left: 50%;
    bottom: 1.25rem;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    color: rgba(226, 232, 240, 0.65);
    font-family: var(--mono);
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    text-decoration: none;
    transform: translateX(-50%);
    animation: hero-in 0.72s 0.5s cubic-bezier(0.2, 0.7, 0.2, 1) both;
    transition: color 0.2s ease;
}

.hero-scroll svg {
    animation: hero-bounce 2.4s ease-in-out infinite;
}

.hero-scroll:hover {
    color: #a5f3fc;
}

@keyframes hero-slide-cycle {
    0% {
        opacity: 0;
    }

    2% {
        opacity: 1;
    }

    25% {
        opacity: 1;
    }

    29% {
        opacity: 0;
    }

    100% {
        opacity: 0;
    }
}

@keyframes hero-drift {
    from {
        transform: scale(1.08) translate3d(-1.2%, 0.6%, 0);
    }

    to {
        transform: scale(1.13) translate3d(1.2%, -0.8%, 0);
    }
}

@keyframes hero-bounce {
    0%,
    100% {
        opacity: 0.55;
        transform: translateY(0);
    }

    50% {
        opacity: 1;
        transform: translateY(5px);
    }
}

@keyframes hero-in {
    from {
        opacity: 0;
        translate: 0 18px;
    }

    to {
        opacity: 1;
        translate: 0 0;
    }
}

@keyframes grad-shift {
    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

@keyframes showcase-glow {
    from {
        opacity: 0.45;
        scale: 0.92;
    }

    to {
        opacity: 0.8;
        scale: 1.08;
    }
}

@keyframes card-in {
    from {
        opacity: 0;
        translate: 0 18px;
    }

    to {
        opacity: 1;
        translate: 0 0;
    }
}

.hero .eyebrow,
.hero h1,
.hero-copy,
.hero-actions,
.stats,
.hero-install {
    animation: hero-in 0.72s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.hero h1 {
    animation-delay: 0.07s;
}

.hero-copy {
    animation-delay: 0.14s;
}

.hero-actions {
    animation-delay: 0.21s;
}

.stats {
    animation-delay: 0.28s;
}

.hero-install {
    animation-delay: 0.35s;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.7rem;
    margin-top: 1.7rem;
}

.hero-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 50px;
    padding: 0.78rem 1.35rem;
    border: 1px solid transparent;
    border-radius: 999px;
    background: linear-gradient(120deg, #8b5cf6 0%, #22d3ee 100%);
    color: #05080c;
    font-size: 0.92rem;
    font-weight: 800;
    letter-spacing: -0.01em;
    text-decoration: none;
    box-shadow: 0 18px 45px rgba(34, 211, 238, 0.22);
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
    -webkit-tap-highlight-color: transparent;
}

.hero-cta:hover {
    transform: translateY(-2px);
    filter: brightness(1.08);
    box-shadow: 0 24px 58px rgba(34, 211, 238, 0.3);
}

.hero-cta:active {
    transform: translateY(0);
}

.hero-cta svg {
    transition: transform 0.2s ease;
}

.hero-cta:hover svg {
    transform: translateX(3px);
}

.hero-cta--ghost {
    border-color: rgba(148, 163, 184, 0.3);
    background: rgba(10, 15, 22, 0.55);
    color: var(--text);
    box-shadow: none;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.hero-cta--ghost:hover {
    border-color: rgba(34, 211, 238, 0.55);
    background: rgba(34, 211, 238, 0.1);
    color: #cffafe;
    box-shadow: none;
}

.hero-cta--ghost:hover svg {
    transform: none;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    margin: 0;
    color: var(--accent-2);
    font-family: var(--mono);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.eyebrow-dot {
    width: 0.45rem;
    height: 0.45rem;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.5);
    animation: pulse 2.4s ease-out infinite;
}

.hero h1 {
    margin: 0.85rem 0 1rem;
    font-size: clamp(2.4rem, 6vw, 4.75rem);
    font-weight: 850;
    line-height: 1;
    letter-spacing: -0.055em;
    text-wrap: balance;
}

.grad {
    background: linear-gradient(95deg, #a78bfa 0%, #22d3ee 55%, #34d399 100%);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: grad-shift 9s ease-in-out infinite;
}

.hero-copy {
    max-width: 62ch;
    margin: 0;
    color: #aab8ca;
    font-size: clamp(1rem, 1.2vw, 1.12rem);
}

.stats {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem 2rem;
    width: fit-content;
    max-width: 100%;
    margin-top: 2.1rem;
    padding: 1rem 1.35rem;
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 18px;
    background: rgba(9, 14, 21, 0.52);
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.32);
    -webkit-backdrop-filter: blur(16px) saturate(130%);
    backdrop-filter: blur(16px) saturate(130%);
}

.stat {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.stat strong {
    font-size: 1.55rem;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
    font-variant-numeric: tabular-nums;
}

.stat span {
    color: var(--muted);
    font-size: 0.76rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.stat + .stat {
    padding-left: 2rem;
    border-left: 1px solid var(--line);
}

.hero-install {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.55rem 0.8rem;
    margin-top: 1.3rem;
}

.install-pwa-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    min-height: 44px;
    padding: 0.55rem 0.95rem;
    border: 1px solid rgba(34, 211, 238, 0.38);
    border-radius: 999px;
    background: rgba(34, 211, 238, 0.09);
    color: #a5f3fc;
    font-size: 0.8rem;
    font-weight: 750;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: background 0.18s ease, border-color 0.18s ease;
}

.install-pwa-button:hover {
    background: rgba(34, 211, 238, 0.16);
    border-color: rgba(34, 211, 238, 0.55);
}

.install-pwa-help {
    flex: 1 1 100%;
    margin: 0;
    color: var(--muted);
    font-size: 0.76rem;
    line-height: 1.45;
}

@media (min-width: 961px) {
    .hero-install {
        display: none !important;
    }
}

.featured {
    position: relative;
    isolation: isolate;
    margin-top: clamp(2rem, 4vw, 3rem);
    padding: clamp(1rem, 2.2vw, 1.5rem);
    border: 1px solid var(--line);
    border-radius: calc(var(--radius) + 6px);
    background:
        linear-gradient(135deg, rgba(139, 92, 246, 0.09), rgba(34, 211, 238, 0.045) 48%, rgba(52, 211, 153, 0.06));
    overflow: hidden;
    animation: hero-in 0.8s 0.24s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.featured::before {
    content: "";
    position: absolute;
    z-index: -1;
    top: -10rem;
    right: -6rem;
    width: 24rem;
    height: 24rem;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(34, 211, 238, 0.42), transparent 70%);
    filter: blur(50px);
    opacity: 0.65;
    animation: showcase-glow 9s ease-in-out infinite alternate;
}

.featured > * {
    position: relative;
    z-index: 1;
}

.featured-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 0.5rem 1.5rem;
    margin-bottom: 0.85rem;
}

.featured-head h2 {
    margin: 0;
    font-size: clamp(1.3rem, 2.2vw, 1.7rem);
    font-weight: 850;
    letter-spacing: -0.03em;
}

.featured-note {
    margin: 0;
    color: var(--muted);
    font-size: 0.75rem;
}

.featured-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    perspective: 1000px;
}

.featured-card {
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: linear-gradient(180deg, var(--panel-2), var(--panel));
    color: inherit;
    text-decoration: none;
    transform-style: preserve-3d;
    animation: card-in 0.65s cubic-bezier(0.2, 0.7, 0.2, 1) both;
    transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.featured-card:nth-child(2) {
    animation-delay: 0.08s;
}

.featured-card:nth-child(3) {
    animation-delay: 0.16s;
}

.featured-card::after {
    content: "";
    position: absolute;
    inset: -20%;
    z-index: 2;
    background: linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, 0.16) 50%, transparent 65%);
    opacity: 0;
    pointer-events: none;
    translate: -130% 0;
    transition: translate 0.65s ease, opacity 0.3s ease;
}

@media (hover: hover) {
    .featured-card:hover {
        transform: translateY(-6px) rotateX(1.4deg) rotateY(-1.6deg);
        border-color: rgba(34, 211, 238, 0.48);
        box-shadow: 0 24px 55px rgba(0, 0, 0, 0.45);
    }

    .featured-card:hover::after {
        opacity: 1;
        translate: 130% 0;
    }
}

.featured-thumb {
    position: relative;
    display: block;
    aspect-ratio: 460 / 215;
    overflow: hidden;
    background: linear-gradient(135deg, #17212d, #0c121a);
}

.featured-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.featured-card:hover .featured-thumb img {
    transform: scale(1.035);
}

.featured-badge {
    position: absolute;
    top: 0.6rem;
    right: 0.6rem;
    padding: 0.22rem 0.45rem;
    border: 1px solid rgba(52, 211, 153, 0.3);
    border-radius: 999px;
    background: rgba(5, 10, 14, 0.8);
    color: #a7f3d0;
    font-size: 0.68rem;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
}

.featured-badge--empty {
    border-color: rgba(148, 163, 184, 0.3);
    color: var(--muted);
    font-weight: 650;
}

.featured-body {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 0.8rem 0.9rem 0.9rem;
}

.featured-name {
    display: -webkit-box;
    overflow: hidden;
    color: var(--text);
    font-size: 1rem;
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: -0.015em;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.featured-desc {
    display: -webkit-box;
    overflow: hidden;
    color: var(--muted);
    font-size: 0.8rem;
    line-height: 1.4;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.featured-cta {
    margin-top: 0.35rem;
    color: var(--accent-2);
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

@media (max-width: 960px) {
    .featured-grid {
        display: flex;
        gap: 0.8rem;
        padding-bottom: 0.35rem;
        overflow-x: auto;
        overscroll-behavior-x: contain;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
    }

    .featured-grid::-webkit-scrollbar {
        display: none;
    }

    .featured-card {
        flex: 0 0 min(82vw, 340px);
        scroll-snap-align: start;
    }
}

@media (max-width: 600px) {
    .featured-name {
        font-size: 0.9rem;
    }

    .featured-desc {
        display: none;
    }
}

/* Ostatnio dodane ---------------------------------------------------------- */

.recent {
    padding-bottom: clamp(1.75rem, 3.5vw, 2.75rem);
    scroll-margin-top: var(--header-offset, 6rem);
}

.recent-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.85rem;
}

.recent-eyebrow {
    margin: 0 0 0.2rem;
    margin-top:20px;
    color: var(--accent-2);
    font-family: var(--mono);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.recent-head h2 {
    margin: 0;
    font-size: clamp(1.25rem, 2vw, 1.5rem);
    font-weight: 800;
    letter-spacing: -0.025em;
}

.recent-controls {
    display: inline-flex;
    flex: none;
    gap: 0.4rem;
}

.recent-btn {
    display: grid;
    place-items: center;
    width: 2.35rem;
    height: 2.35rem;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: rgba(13, 20, 29, 0.9);
    color: var(--muted);
    cursor: pointer;
    transition: color 0.18s ease, border-color 0.18s ease, background 0.18s ease, opacity 0.18s ease;
}

.recent-btn:hover:not(:disabled) {
    color: var(--text);
    border-color: rgba(139, 92, 246, 0.55);
    background: rgba(139, 92, 246, 0.14);
}

.recent-btn:disabled {
    opacity: 0.3;
    cursor: default;
}

.recent-track {
    display: flex;
    gap: 1rem;
    padding: 0.35rem 0 0.9rem;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
}

.recent-track::-webkit-scrollbar {
    display: none;
}

.recent-track:focus-visible {
    border-radius: var(--radius);
    outline: 2px solid var(--accent-2);
    outline-offset: 4px;
}

.recent-track > .card {
    flex: 0 0 clamp(220px, 24vw, 282px);
    scroll-snap-align: start;
}

/* Osobne widoki „Ostatnio” i „Sklepy” ------------------------------------- */

.view-hero {
    padding: clamp(1.5rem, 4vw, 2.6rem) 0 0.5rem;
}

.view-hero h1 {
    margin: 0;
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    font-weight: 850;
    letter-spacing: -0.04em;
    line-height: 1.1;
    text-wrap: balance;
}

.view-hero p:not(.recent-eyebrow) {
    max-width: 62ch;
    margin: 0.55rem 0 0;
    color: var(--muted);
    font-size: 0.92rem;
}

.view-back {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-top: 0.75rem;
    color: var(--accent-2);
    font-size: 0.8rem;
    font-weight: 650;
    text-decoration: none;
}

.view-back:hover {
    color: #a5f3fc;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.view-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem 2rem;
    margin-top: 1.2rem;
}

.view-stat {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.view-stat strong {
    color: var(--text);
    font-size: 1.3rem;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
    font-variant-numeric: tabular-nums;
}

.view-stat span {
    color: var(--muted);
    font-size: 0.66rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.store-guide {
    margin-top: 1.5rem;
    padding: clamp(1rem, 2.5vw, 1.5rem);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.06), rgba(34, 211, 238, 0.035));
}

.section-head h2 {
    margin: 0;
    font-size: clamp(1.2rem, 2vw, 1.45rem);
    font-weight: 850;
    letter-spacing: -0.025em;
}

.store-steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    margin: 1rem 0 0;
    padding: 0;
    list-style: none;
}

.store-step {
    display: flex;
    gap: 0.65rem;
}

.step-number {
    display: grid;
    place-items: center;
    flex: none;
    width: 1.8rem;
    height: 1.8rem;
    border-radius: 50%;
    background: rgba(34, 211, 238, 0.12);
    color: #a5f3fc;
    font-size: 0.8rem;
    font-weight: 800;
}

.store-step strong {
    display: block;
    color: var(--text);
    font-size: 0.86rem;
}

.store-step p {
    margin: 0.25rem 0 0;
    color: var(--muted);
    font-size: 0.78rem;
    line-height: 1.5;
}

.store-differences {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 1.2rem;
    padding-top: 1.1rem;
    border-top: 1px solid var(--line);
}

.store-differences h3 {
    margin: 0 0 0.25rem;
    color: var(--text);
    font-size: 0.82rem;
    font-weight: 800;
}

.store-differences p {
    margin: 0;
    color: var(--muted);
    font-size: 0.78rem;
    line-height: 1.5;
}

.view-cta {
    margin-top: 1.5rem;
    text-align: center;
}

.view-cta .btn-load {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

@media (max-width: 960px) {
    .store-steps,
    .store-differences {
        grid-template-columns: 1fr;
    }
}

body.view-recent .hero,
body.view-recent .featured,
body.view-recent .catalog-layout,
body.view-recent .stores,
body.view-stores .hero,
body.view-stores .featured,
body.view-stores .recent,
body.view-stores .catalog-layout {
    display: none;
}

body.view-recent .recent-head,
body.view-stores .stores-head {
    display: none;
}

body.view-recent .view-hero {
    padding-top: clamp(2.25rem, 5.5vw, 3.5rem);
}

body.view-recent .recent {
    padding-top: 0.5rem;
}

body.view-recent .recent-track {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr));
    gap: 1rem;
    padding-bottom: 0;
    overflow: visible;
    scroll-snap-type: none;
}

body.view-recent .recent-track > .card {
    flex: none;
}

body.view-recent .recent-controls {
    display: none !important;
}

body.view-stores .stores {
    margin-top: 0;
    padding-top: 0.5rem;
    border-top: 0;
}

@media (max-width: 960px) {
    body.view-catalog .recent,
    body.view-catalog .stores {
        display: none;
    }
}

@media (max-width: 600px) {
    body.view-recent .recent-track {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.7rem;
    }
}

/* Katalog z bocznym panelem filtrów --------------------------------------- */

.catalog-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 250px;
    grid-template-areas: "catalog filters";
    gap: 1.5rem;
    align-items: start;
}

.catalog-layout > .catalog {
    grid-area: catalog;
    min-width: 0;
}

.filter-panel {
    grid-area: filters;
    position: sticky;
    top: calc(var(--header-offset, 6rem) + 0.5rem);
    max-height: calc(100vh - var(--header-offset, 6rem) - 2rem);
    padding: 0.9rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: linear-gradient(180deg, rgba(17, 26, 36, 0.96), rgba(10, 15, 22, 0.96));
    box-shadow: var(--shadow);
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(148, 163, 184, 0.32) transparent;
}

.filter-panel::-webkit-scrollbar {
    width: 6px;
}

.filter-panel::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.32);
}

.filter-group + .filter-group {
    margin-top: 0.9rem;
    padding-top: 0.85rem;
    border-top: 1px solid var(--line);
}

.filter-group-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.55rem;
}

.filter-title {
    margin: 0;
    color: #6b7a8f;
    font-family: var(--mono);
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.filter-sheet-head,
.filter-sheet-actions {
    display: none;
}

.filter-sheet-close,
.filter-sheet-clear,
.filter-sheet-apply {
    font: inherit;
    cursor: pointer;
}

.catalog {
    scroll-margin-top: var(--header-offset, 6rem);
}

.catalog:focus {
    outline: none;
}

.list-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.15rem;
}

.mode-switch {
    display: flex;
    gap: 0.15rem;
    max-width: 100%;
}

.mode-switch--sidebar {
    flex-direction: column;
    gap: 0.3rem;
    width: 100%;
    max-width: none;
}

.mode-btn {
    flex: none;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.38rem 0.72rem;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 650;
    white-space: nowrap;
    cursor: pointer;
    transition: color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.mode-switch--sidebar .mode-btn {
    width: 100%;
    justify-content: space-between;
    padding: 0.45rem 0.6rem;
    border-radius: 8px;
    font-size: 0.78rem;
    text-align: left;
}

.mode-btn:hover {
    color: var(--text);
    background: rgba(255, 255, 255, 0.055);
}

.mode-btn[aria-pressed="true"] {
    color: #a5f3fc;
    background: rgba(34, 211, 238, 0.13);
    box-shadow: inset 0 0 0 1px rgba(34, 211, 238, 0.28);
}

.mode-switch--sidebar .mode-btn[aria-pressed="true"] {
    color: #a5f3fc;
    background: rgba(34, 211, 238, 0.12);
    box-shadow: inset 0 0 0 1px rgba(34, 211, 238, 0.28);
}

.mode-count {
    padding: 0.06rem 0.38rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.07);
    font-size: 0.66rem;
    font-variant-numeric: tabular-nums;
}

.mode-switch--sidebar .mode-btn[aria-pressed="true"] .mode-count {
    background: rgba(0, 0, 0, 0.2);
}

.list-head h2 {
    margin: 0;
    font-size: clamp(1.25rem, 2vw, 1.5rem);
    font-weight: 800;
    letter-spacing: -0.025em;
    text-wrap: balance;
}

.result-count {
    margin: 0.2rem 0 0;
    color: var(--muted);
    font-size: 0.84rem;
    font-variant-numeric: tabular-nums;
}

.sort-control {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--muted);
    font-size: 0.78rem;
    white-space: nowrap;
}

.sort-label {
    color: #6b7a8f;
    font-size: 0.76rem;
}

.sort-control select {
    padding: 0.4rem 0.6rem;
    border: 1px solid var(--line-strong);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text);
    font: inherit;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    color-scheme: dark;
}

.sort-control select option {
    color: #e9eef6;
    background-color: #0d141d;
}

.sort-control select:hover {
    border-color: rgba(34, 211, 238, 0.4);
}

.sort-control select:focus-visible {
    outline-offset: 2px;
}

/* Siatka i karty ---------------------------------------------------------- */

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 252px), 1fr));
    gap: 1.1rem;
}

.card {
    position: relative;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: linear-gradient(180deg, var(--panel-2), var(--panel));
    overflow: hidden;
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.card:focus-within {
    border-color: rgba(34, 211, 238, 0.55);
    box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.16);
}

.card-link {
    display: flex;
    flex-direction: column;
    height: 100%;
    color: inherit;
    text-decoration: none;
}

.card-link:focus-visible {
    outline: none;
}

.thumb {
    position: relative;
    aspect-ratio: 460 / 215;
    overflow: hidden;
    background: linear-gradient(135deg, #17212d, #0c121a);
}

.thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.35s ease, transform 0.45s ease;
}

.thumb img.is-loaded {
    opacity: 1;
}

.thumb::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 58%, rgba(7, 10, 15, 0.55));
    pointer-events: none;
}

.thumb-fallback::before {
    content: "GG";
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: rgba(148, 163, 184, 0.22);
    font-size: 2rem;
    font-weight: 850;
    letter-spacing: -0.06em;
    background:
        radial-gradient(circle at 30% 30%, rgba(139, 92, 246, 0.2), transparent 60%),
        radial-gradient(circle at 75% 75%, rgba(34, 211, 238, 0.14), transparent 55%),
        #0e151e;
}

.badge {
    position: absolute;
    top: 0.65rem;
    right: 0.65rem;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.28rem 0.55rem;
    border: 1px solid rgba(52, 211, 153, 0.3);
    border-radius: 999px;
    background: rgba(5, 10, 14, 0.78);
    color: #a7f3d0;
    font-size: 0.72rem;
    font-weight: 750;
    font-variant-numeric: tabular-nums;
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
}

.badge-icon {
    font-size: 0.68rem;
    line-height: 1;
    translate: 0 -0.5px;
}

.badge-percent {
    margin-left: 0.02rem;
    padding-left: 0.38rem;
    border-left: 1px solid rgba(167, 243, 208, 0.28);
    color: #6ee7b7;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
}

.badge--empty {
    border-color: rgba(148, 163, 184, 0.3);
    color: var(--muted);
    font-weight: 650;
}

.card-body {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    flex: 1;
    padding: 0.9rem 1rem 1rem;
}

.card-title {
    display: -webkit-box;
    margin: 0;
    overflow: hidden;
    font-size: 1rem;
    font-weight: 750;
    line-height: 1.25;
    letter-spacing: -0.015em;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.card-desc {
    display: -webkit-box;
    margin: 0;
    overflow: hidden;
    color: var(--muted);
    font-size: 0.815rem;
    line-height: 1.45;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.32rem;
    margin-top: auto;
    padding-top: 0.45rem;
}

.tag {
    padding: 0.18rem 0.42rem;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.035);
    color: #a9b6c9;
    font-size: 0.65rem;
    font-weight: 650;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.tag-mode {
    font-weight: 800;
    letter-spacing: 0.07em;
}

.tag-mode[data-mode="single"] {
    color: #86efac;
    border-color: rgba(52, 211, 153, 0.28);
    background: rgba(52, 211, 153, 0.08);
}

.tag-mode[data-mode="online"] {
    color: #67e8f9;
    border-color: rgba(34, 211, 238, 0.28);
    background: rgba(34, 211, 238, 0.08);
}

.tag-mode[data-mode="coop"] {
    color: #c4b5fd;
    border-color: rgba(139, 92, 246, 0.3);
    background: rgba(139, 92, 246, 0.1);
}

.tag-mode[data-mode="local"] {
    color: #fcd34d;
    border-color: rgba(251, 191, 36, 0.28);
    background: rgba(251, 191, 36, 0.08);
}

@media (hover: hover) {
    .card:hover {
        transform: translateY(-4px);
        border-color: rgba(139, 92, 246, 0.45);
        box-shadow: var(--shadow), 0 0 0 1px rgba(139, 92, 246, 0.1) inset;
    }

    .card:hover .thumb img {
        transform: scale(1.045);
    }
}

/* Szkielety ładowania ------------------------------------------------------ */

.skeleton {
    pointer-events: none;
}

.skeleton .thumb {
    background: linear-gradient(90deg, #101822 25%, #182330 37%, #101822 63%);
    background-size: 400% 100%;
    animation: shimmer 1.4s ease infinite;
}

.skeleton .thumb::after {
    display: none;
}

.skeleton .card-body {
    gap: 0.6rem;
}

.line {
    height: 0.72rem;
    border-radius: 6px;
    background: linear-gradient(90deg, #101822 25%, #182330 37%, #101822 63%);
    background-size: 400% 100%;
    animation: shimmer 1.4s ease infinite;
}

.line + .line {
    margin-top: 0.1rem;
}

.w-45 { width: 45%; }
.w-70 { width: 70%; }
.w-90 { width: 90%; }

/* Stany i paginacja -------------------------------------------------------- */

.state {
    display: grid;
    place-items: center;
    gap: 0.25rem;
    margin-top: 0.5rem;
    padding: 4rem 1.25rem;
    border: 1px dashed var(--line-strong);
    border-radius: var(--radius);
    text-align: center;
}

.state-icon {
    font-size: 2.2rem;
    line-height: 1;
}

.state h3 {
    margin: 0.55rem 0 0;
    font-size: 1.1rem;
}

.state p {
    max-width: 42ch;
    margin: 0;
    color: var(--muted);
    font-size: 0.88rem;
}

.load-more-wrap {
    display: flex;
    justify-content: center;
    margin-top: 2.25rem;
}

.btn-load {
    padding: 0.72rem 1.5rem;
    border: 1px solid rgba(139, 92, 246, 0.5);
    border-radius: 999px;
    background: rgba(139, 92, 246, 0.13);
    color: #ddd3ff;
    font-size: 0.88rem;
    font-weight: 750;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.btn-load:hover:not(:disabled) {
    border-color: rgba(139, 92, 246, 0.8);
    background: rgba(139, 92, 246, 0.24);
}

.btn-load:active:not(:disabled) {
    transform: translateY(1px);
}

.btn-load:disabled {
    opacity: 0.55;
    cursor: wait;
}

/* Inne sklepy (Epic / GOG / Prime) ---------------------------------------- */

.stores {
    margin-top: clamp(2.5rem, 5vw, 4rem);
    padding-top: clamp(2rem, 4vw, 3rem);
    border-top: 1px solid var(--line);
    scroll-margin-top: var(--header-offset, 6rem);
}

.stores-head {
    max-width: 720px;
    margin-bottom: 1.35rem;
}

.stores-head h2 {
    margin: 0;
    font-size: clamp(1.35rem, 2.4vw, 1.8rem);
    font-weight: 850;
    letter-spacing: -0.03em;
    text-wrap: balance;
}

.stores-copy {
    margin: 0.45rem 0 0;
    color: var(--muted);
    font-size: 0.9rem;
}

.stores-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.store-panel {
    --store-accent: var(--accent-2);
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    padding: 1rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: linear-gradient(180deg, var(--panel-2), var(--panel));
    background:
        radial-gradient(30rem 14rem at 100% 0%, color-mix(in srgb, var(--store-accent) 10%, transparent), transparent 65%),
        linear-gradient(180deg, var(--panel-2), var(--panel));
}

.store-panel--epic {
    --store-accent: #22d3ee;
}

.store-panel--gog {
    --store-accent: #c084fc;
}

.store-panel--prime {
    --store-accent: #ff9900;
}

.store-panel--wide {
    grid-column: 1 / -1;
}

.store-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.store-panel-title {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    min-width: 0;
}

.store-badge {
    display: inline-grid;
    place-items: center;
    padding: 0.22rem 0.42rem;
    border-radius: 6px;
    background: var(--store-accent);
    color: #05080c;
    font-family: var(--mono);
    font-size: 0.58rem;
    font-weight: 850;
    letter-spacing: 0.08em;
}

.store-panel h3 {
    margin: 0;
    font-size: 1.02rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.store-all {
    flex: none;
    color: var(--muted);
    font-size: 0.74rem;
    font-weight: 650;
    text-decoration: none;
    transition: color 0.18s ease;
}

.store-all:hover {
    color: var(--accent-2);
}

.store-subscription {
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
    margin: 0;
    padding: 0.65rem 0.75rem;
    border: 1px solid color-mix(in srgb, var(--store-accent) 35%, transparent);
    border-radius: 10px;
    background: color-mix(in srgb, var(--store-accent) 10%, transparent);
    color: #f3d3a3;
    font-size: 0.76rem;
    line-height: 1.45;
}

.store-subscription strong {
    color: #ffc46b;
}

.store-subscription-mark {
    flex: none;
    color: var(--store-accent);
    font-size: 0.9rem;
    line-height: 1.35;
}

.offer-list {
    display: flex;
    flex-direction: column;
    gap: 0.28rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.offer {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.38rem;
    border: 1px solid transparent;
    border-radius: 10px;
    color: inherit;
    text-decoration: none;
    transition: background 0.18s ease, border-color 0.18s ease;
}

.offer:hover {
    border-color: var(--line);
    background: rgba(255, 255, 255, 0.035);
}

.offer-thumb {
    position: relative;
    flex: none;
    width: 78px;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 7px;
    background: #0e151e;
    background:
        radial-gradient(circle at 30% 30%, color-mix(in srgb, var(--store-accent) 22%, transparent), transparent 65%),
        #0e151e;
}

.offer-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.offer-thumb--empty::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(148, 163, 184, 0.16), transparent);
}

.offer-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 0.16rem;
    min-width: 0;
}

.offer-title {
    display: -webkit-box;
    overflow: hidden;
    font-size: 0.84rem;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -0.01em;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.offer-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem 0.55rem;
    color: var(--muted);
    font-size: 0.68rem;
}

.offer-time {
    color: var(--green);
    font-weight: 700;
}

.offer-time--upcoming {
    color: var(--accent-2);
}

.offer-value {
    color: #6b7a8f;
}

.offer-arrow {
    flex: none;
    color: var(--muted);
    font-size: 0.85rem;
    transition: color 0.18s ease, translate 0.18s ease;
}

.offer:hover .offer-arrow {
    color: var(--accent-2);
    translate: 0 -1px;
}

.offer-value--subscription {
    color: #ffc46b;
    font-weight: 700;
}

.store-panel--prime .offer-list {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.65rem;
}

.store-panel--prime .offer {
    flex-direction: column;
    align-items: stretch;
    gap: 0.55rem;
    padding: 0.45rem;
    border-color: var(--line);
    background: rgba(255, 255, 255, 0.02);
}

.store-panel--prime .offer-thumb {
    width: 100%;
    border-radius: 8px;
}

.store-panel--prime .offer-arrow {
    display: none;
}

.store-panel--prime .offer-title {
    font-size: 0.82rem;
}

.store-panel--prime .offer-meta {
    font-size: 0.64rem;
}

.store-empty {
    margin: 0;
    padding: 0.9rem;
    border: 1px dashed var(--line-strong);
    border-radius: var(--radius-sm);
    color: var(--muted);
    font-size: 0.8rem;
}

.stores-note {
    margin: 0.85rem 0 0;
    color: #6b7a8f;
    font-size: 0.7rem;
}

/* Stopka ------------------------------------------------------------------- */

.site-footer {
    border-top: 1px solid var(--line);
    background: rgba(9, 13, 19, 0.65);
}

.footer-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem 2rem;
    padding-block: 1.6rem;
}

.footer-inner p {
    margin: 0;
    color: #7c8ba0;
    font-size: 0.78rem;
}

.footer-meta {
    font-family: var(--mono);
    font-size: 0.7rem !important;
    letter-spacing: 0.02em;
}

.footer-legal-wrap {
    padding-bottom: 1.15rem;
}

.footer-legal {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem 1.25rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--line);
}

.footer-legal a {
    color: #7c8ba0;
    font-size: 0.74rem;
    text-decoration: none;
}

.footer-legal a:hover {
    color: var(--text);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.footer-install {
    padding: 0;
    border: 0;
    background: none;
    color: var(--accent-2);
    font-size: 0.74rem;
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
}

.footer-install:hover {
    color: #a5f3fc;
}

.footer-install-help {
    flex: 1 1 100%;
    margin: 0;
    color: var(--muted);
    font-size: 0.72rem;
    line-height: 1.45;
}

/* Pasek cookies ------------------------------------------------------------ */

.cookie-bar {
    position: fixed;
    left: 50%;
    bottom: 1rem;
    z-index: 60;
    width: min(980px, calc(100vw - 2rem));
    transform: translateX(-50%);
    padding: 0.85rem 1rem;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius);
    background: rgba(13, 20, 29, 0.98);
    color: var(--text);
    box-shadow: var(--shadow);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
}

.cookie-bar-body {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.85rem 1.25rem;
}

.cookie-bar-text {
    flex: 1 1 460px;
    min-width: 0;
}

.cookie-bar p {
    margin: 0;
    color: var(--muted);
    font-size: 0.8rem;
    line-height: 1.55;
}

.cookie-bar-title {
    margin: 0 0 0.15rem !important;
    color: var(--text) !important;
    font-size: 0.9rem !important;
    font-weight: 800;
    letter-spacing: -0.015em;
}

.cookie-bar .cookie-bar-status {
    margin-top: 0.2rem;
    color: var(--green);
    font-size: 0.76rem;
}

.cookie-bar-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.6rem 0.9rem;
}

body.has-cookie-bar {
    padding-bottom: var(--cookie-bar-space, 0px);
}

.consent-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.55rem 1rem;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: #fff;
    font-size: 0.84rem;
    font-weight: 750;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(139, 92, 246, 0.28);
    transition: filter 0.18s ease, transform 0.18s ease;
}

.consent-btn:hover {
    filter: brightness(1.08);
}

.consent-btn:active {
    transform: translateY(1px);
}

.consent-link {
    color: var(--accent-2);
    font-size: 0.8rem;
    text-underline-offset: 3px;
}

.consent-clear {
    padding: 0;
    border: 0;
    background: none;
    color: #7c8ba0;
    font-size: 0.74rem;
    text-decoration: underline;
    text-underline-offset: 3px;
    white-space: nowrap;
    cursor: pointer;
}

.consent-clear:hover {
    color: var(--danger);
}

@media (max-width: 720px) {
    .cookie-bar {
        left: 0;
        bottom: 0;
        width: 100%;
        transform: none;
        padding: 0.85rem 1rem calc(0.85rem + env(safe-area-inset-bottom));
        border-radius: var(--radius) var(--radius) 0 0;
    }

    .cookie-bar-body {
        flex-direction: column;
        align-items: stretch;
        gap: 0.65rem;
    }

    .cookie-bar-text {
        flex: 0 1 auto;
    }

    .cookie-bar-actions {
        justify-content: space-between;
    }

    .consent-btn {
        flex: 0 0 auto;
    }
}

@media (max-width: 480px) {
    .cookie-bar-actions {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        justify-content: space-between;
    }

    .consent-btn {
        width: auto;
        flex: 0 0 auto;
    }

    .consent-link,
    .consent-clear {
        text-align: left;
    }
}

/* Animacje ----------------------------------------------------------------- */

@keyframes shimmer {
    0% { background-position: 100% 50%; }
    100% { background-position: 0 50%; }
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.55); }
    70% { box-shadow: 0 0 0 7px rgba(52, 211, 153, 0); }
    100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); }
}

/* Responsywność ------------------------------------------------------------ */

.mobile-nav,
.filter-backdrop {
    display: none;
}

@media (max-width: 1100px) {
    .store-panel--prime .offer-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 960px) {
    :root {
        --mobile-nav-height: 64px;
    }

    .catalog-layout {
        grid-template-columns: 1fr;
        grid-template-areas: "catalog";
        gap: 0;
    }

    .filter-panel {
        position: fixed;
        top: auto;
        left: 0;
        right: 0;
        bottom: calc(var(--mobile-nav-height) + env(safe-area-inset-bottom));
        z-index: 70;
        grid-area: auto;
        max-height: min(82dvh, 680px);
        padding: 0;
        border-radius: var(--radius) var(--radius) 0 0;
        transform: translateY(calc(100% + 2rem));
        visibility: hidden;
        pointer-events: none;
        overflow-y: auto;
        overscroll-behavior: contain;
        box-shadow: var(--shadow);
        transition: transform 0.25s ease, visibility 0.25s ease;
    }

    .filter-panel.is-open {
        transform: translateY(0);
        visibility: visible;
        pointer-events: auto;
    }

    .filter-sheet-head {
        position: sticky;
        top: 0;
        z-index: 2;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 0.75rem;
        padding: 0.85rem 1rem 0.55rem;
        border-bottom: 1px solid var(--line);
        background: var(--panel);
    }

    .filter-sheet-head h2 {
        margin: 0;
        font-size: 1.05rem;
        font-weight: 800;
        letter-spacing: -0.02em;
    }

    .filter-sheet-close {
        display: grid;
        place-items: center;
        width: 40px;
        height: 40px;
        padding: 0;
        border: 1px solid var(--line);
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.04);
        color: var(--muted);
        font-size: 1.2rem;
        line-height: 1;
    }

    .filter-sheet-close:hover {
        color: var(--text);
        background: rgba(255, 255, 255, 0.08);
    }

    .filter-group {
        padding: 0.7rem 1rem 0;
    }

    .filter-group + .filter-group {
        margin-top: 0;
        padding-top: 0.7rem;
        border-top: 1px solid var(--line);
    }

    .filter-group-head {
        margin-bottom: 0.5rem;
    }

    .mode-switch--sidebar {
        flex-direction: row;
        gap: 0.5rem;
        padding-bottom: 0.1rem;
        overflow-x: auto;
        overscroll-behavior-x: contain;
        scrollbar-width: none;
    }

    .mode-switch--sidebar::-webkit-scrollbar {
        display: none;
    }

    .mode-switch--sidebar .mode-btn {
        width: auto;
        flex: none;
    }

    .genre-list {
        padding-bottom: 0.4rem;
    }

    .filter-sheet-actions {
        position: sticky;
        bottom: 0;
        z-index: 2;
        display: flex;
        gap: 0.6rem;
        padding: 0.7rem 1rem calc(0.7rem + env(safe-area-inset-bottom));
        border-top: 1px solid var(--line);
        background: var(--panel);
    }

    .filter-sheet-actions button {
        flex: 1 1 0;
        min-height: 44px;
        border-radius: 999px;
        font-size: 0.82rem;
        font-weight: 750;
    }

    .filter-sheet-clear {
        border: 1px solid var(--line-strong);
        background: rgba(255, 255, 255, 0.03);
        color: var(--muted);
    }

    .filter-sheet-clear:hover {
        color: var(--text);
        background: rgba(255, 255, 255, 0.07);
    }

    .filter-sheet-apply {
        border: 0;
        background: linear-gradient(135deg, var(--accent), var(--accent-2));
        color: #fff;
        box-shadow: 0 8px 24px rgba(139, 92, 246, 0.28);
    }

    .filter-backdrop {
        position: fixed;
        inset: 0;
        z-index: 65;
        display: block;
        background: rgba(3, 6, 10, 0.62);
        -webkit-backdrop-filter: blur(3px);
        backdrop-filter: blur(3px);
    }

    body.filters-open {
        overflow: hidden;
    }

    .mobile-nav {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 55;
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        height: calc(var(--mobile-nav-height) + env(safe-area-inset-bottom));
        padding-bottom: env(safe-area-inset-bottom);
        border-top: 1px solid var(--line);
        background: rgba(9, 13, 19, 0.94);
        -webkit-backdrop-filter: blur(16px) saturate(140%);
        backdrop-filter: blur(16px) saturate(140%);
    }

    .mobile-nav-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 0.1rem;
        min-height: 44px;
        padding: 0.3rem 0.2rem;
        border: 0;
        background: none;
        color: var(--muted);
        font-size: 0.64rem;
        font-weight: 650;
        text-decoration: none;
        -webkit-tap-highlight-color: transparent;
        touch-action: manipulation;
        cursor: pointer;
    }

    .mobile-nav-item.is-active {
        color: var(--accent-2);
    }

    .mobile-nav-icon {
        position: relative;
        display: inline-flex;
    }

    .mobile-nav-badge {
        position: absolute;
        top: -0.35rem;
        right: -0.55rem;
        display: grid;
        place-items: center;
        min-width: 1rem;
        height: 1rem;
        padding: 0 0.25rem;
        border-radius: 999px;
        background: var(--accent);
        color: #fff;
        font-size: 0.58rem;
        font-weight: 800;
        line-height: 1;
    }

    body.page-home {
        padding-bottom: calc(var(--mobile-nav-height) + env(safe-area-inset-bottom));
    }

    body.page-home .cookie-bar {
        bottom: calc(var(--mobile-nav-height) + env(safe-area-inset-bottom));
    }

    body.page-home.has-cookie-bar {
        padding-bottom: calc(var(--mobile-nav-height) + env(safe-area-inset-bottom) + var(--cookie-bar-space, 0px));
    }
}

@media (max-width: 900px) {
    .list-head {
        flex-wrap: wrap;
        align-items: flex-start;
    }

    .sort-control {
        width: 100%;
        justify-content: space-between;
    }

    .stores-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .store-panel {
        padding: 0.85rem;
    }

    .offer-thumb {
        width: 68px;
    }

    .topbar {
        flex-wrap: wrap;
        gap: 0.7rem;
        padding-block: 0.75rem;
    }

    .search {
        flex: 1 0 100%;
        order: 2;
    }

    .hero {
        padding-block: 2.8rem 3.8rem;
    }

    .hero-media {
        filter: blur(6px) saturate(1.12) brightness(0.84);
    }

    .hero-shade {
        background:
            radial-gradient(38rem 26rem at 20% 18%, rgba(139, 92, 246, 0.2), transparent 68%),
            linear-gradient(180deg, rgba(7, 10, 15, 0.74) 0%, rgba(7, 10, 15, 0.42) 38%, rgba(7, 10, 15, 0.9) 82%, var(--bg) 100%);
    }

    .hero-scroll {
        display: none;
    }

    .recent-track > .card {
        flex-basis: min(78vw, 282px);
    }

    .stats {
        gap: 1.1rem 1.5rem;
    }

    .stat + .stat {
        padding-left: 1.5rem;
    }

    .stat strong {
        font-size: 1.3rem;
    }
}

@media (max-width: 600px) {
    .store-panel-head {
        flex-wrap: wrap;
        align-items: flex-start;
    }

    .store-panel-title {
        flex: 1 1 auto;
    }

    .store-all {
        margin-left: auto;
    }

    .store-panel--prime .offer-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .wrap {
        width: min(100% - 1.5rem, var(--wrap));
    }

    .hero {
        --hero-gutter: 0.75rem;
    }

    .mode-count {
        display: none;
    }

    .mode-switch--sidebar .mode-btn {
        font-size: 0.74rem;
        padding: 0.42rem 0.5rem;
    }

    .hero h1 {
        letter-spacing: -0.04em;
    }

    .stats {
        gap: 1rem 1.25rem;
    }

    .stat + .stat {
        padding-left: 1.25rem;
    }

    .stat span {
        font-size: 0.68rem;
    }

    .footer-inner {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 360px) {
    .stats {
        gap: 0.8rem 1.5rem;
    }

    .stat + .stat {
        padding-left: 0;
        border-left: 0;
    }
}

@media (max-width: 600px) {
    .grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.7rem;
    }

    .card-body {
        gap: 0.25rem;
        padding: 0.55rem 0.6rem 0.7rem;
    }

    .card-title {
        font-size: 0.82rem;
    }

    .card-desc {
        display: none;
    }

    .card-meta {
        gap: 0.25rem;
        padding-top: 0.25rem;
    }

    .card-meta .tag:not(.tag-mode) {
        display: none;
    }

    .tag {
        padding: 0.12rem 0.3rem;
        font-size: 0.56rem;
    }

    .badge {
        top: 0.4rem;
        right: 0.4rem;
        padding: 0.2rem 0.4rem;
        font-size: 0.6rem;
    }

    .badge-percent {
        padding-left: 0.25rem;
    }

    .hero {
        padding-block: 2rem 3.2rem;
    }

    .hero h1 {
        font-size: clamp(1.9rem, 8vw, 2.45rem);
    }

    .hero-copy {
        font-size: 0.95rem;
    }

    .hero-actions {
        margin-top: 1.35rem;
    }

    .hero-cta {
        min-height: 46px;
        padding: 0.7rem 1.1rem;
        font-size: 0.87rem;
    }

    .stats {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.8rem 1rem;
        width: 100%;
        margin-top: 1.2rem;
        padding: 0.9rem 1rem;
    }

    .stat + .stat {
        padding-left: 0;
        border-left: 0;
    }

    .stat strong {
        font-size: 1.15rem;
    }

    .stat span {
        font-size: 0.62rem;
    }

    .recent-track > .card {
        flex-basis: min(72vw, 250px);
    }

    .filter-panel .mode-count {
        display: inline-block;
    }
}

@media (max-width: 360px) {
    .grid {
        grid-template-columns: 1fr;
    }

    .mobile-nav-item {
        font-size: 0.6rem;
    }
}

@media (display-mode: standalone) {
    .site-header {
        padding-top: env(safe-area-inset-top);
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-delay: 0ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    html {
        scroll-behavior: auto;
    }

    .hero-media {
        animation: none !important;
    }

    .hero-slide {
        animation: none !important;
        opacity: 0;
    }

    .hero-slide:first-child {
        opacity: 1;
    }

    .hero-scroll svg {
        animation: none !important;
    }
}
