@property --turn-x {
    syntax: "<length>";
    inherits: false;
    initial-value: 0px;
}

@property --turn-y {
    syntax: "<length>";
    inherits: false;
    initial-value: 0px;
}

@property --turn-z {
    syntax: "<length>";
    inherits: false;
    initial-value: 0px;
}

@property --turn-ry {
    syntax: "<angle>";
    inherits: false;
    initial-value: 0deg;
}

:root {
    --ink: #060606;
    --gold: #c4922a;
    --gold-2: #a0522d;
    --gold-hover: #d4a535;
    --lingwo-navy: #0a0e18;
    --hub-gap: clamp(12px, 2.4vw, 32px);
    --hub-pad: clamp(14px, 3vw, 32px);
    --hub-label: clamp(1.45rem, 3.2vw, 2rem);
}

* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    background: var(--ink);
    color: #e0e0e0;
    font-family: 'Poppins', sans-serif;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

/* ── Stage: ambient backdrop the portal sits on ─────────────────────── */
.stage {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 16px;
    position: relative;
    overflow-x: hidden;
    overflow-y: auto;
    background: linear-gradient(135deg, #000000 0%, #1a1a1a 50%, #2d2d2d 100%);
}

.stage-stack {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    gap: var(--hub-gap);
    width: 100%;
    max-width: 840px;
    margin: 0 auto;
}

/* ── Portal: the rounded frame everything lives inside ──────────────── */
.portal {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 840px;
    border-radius: 22px;
    overflow: visible;
    background: rgba(10, 10, 10, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
    padding: 1.4rem 1.6rem 1.5rem;
}

/* ── Header ──────────────────────────────────────────────────────────── */
.rozdroze-header {
    text-align: center;
    padding: 0.85rem 0 0;
}

.rozdroze-header h1 {
    font-weight: 300;
    /* Slightly below codillin' / card titles (--hub-label), one line on narrow phones. */
    font-size: clamp(0.78rem, 3.55vw, calc(var(--hub-label) * 0.88));
    letter-spacing: clamp(0.15px, 0.32vw, 1px);
    white-space: nowrap;
    margin: 0;
    color: var(--gold);
    max-width: 100%;
}

.rozdroze-header .underline {
    width: 48px;
    height: 3px;
    margin: 8px auto 0;
    border-radius: 2px;
    background: linear-gradient(45deg, var(--gold), var(--gold-2));
}

/* ── Compact codillin' strip, then 3D card carousel ─────────────── */
.panel-code {
    margin: 0;
    min-height: 4.4rem;
    background: #0d0d0d;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.carousel {
    --peek: clamp(108px, 18vw, 190px);
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.15rem;
    padding: 0.15rem 0 0;
}

.carousel-stage {
    position: relative;
    height: min(46vh, 400px);
    min-height: 220px;
    perspective: 1200px;
    perspective-origin: 50% 50%;
    transform-style: preserve-3d;
    outline: none;
    touch-action: pan-y;
}

.carousel-stage .panel {
    position: absolute;
    top: 6%;
    left: 50%;
    width: min(54%, 340px);
    height: 88%;
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    transform: none;
    filter: none;
    touch-action: pan-y;
    -webkit-user-drag: none;
    transform-style: preserve-3d;
    --turn-x: 0px;
    --turn-y: 0px;
    --turn-z: 0px;
    --turn-ry: 0deg;
}

.carousel-stage .panel,
.carousel-stage .panel:hover,
.carousel-stage .panel:focus-visible,
.carousel-stage .panel:active {
    transition: none;
}

.panel-turn {
    position: absolute;
    inset: 0;
    transform-origin: center center;
    transform: translate3d(calc(-50% + var(--turn-x)), var(--turn-y), var(--turn-z)) rotateY(var(--turn-ry));
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

.panel-face {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 16px;
    background: #0d0d0d;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-sizing: border-box;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    transform: translateZ(0.01px);
    transition: border-color 0.68s ease, box-shadow 0.68s ease, transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.carousel-stage .panel-face::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    border-radius: inherit;
    background: rgba(0, 0, 0, 0.4);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.68s ease;
}

.carousel-stage .panel-bg {
    -webkit-mask-image: none;
    mask-image: none;
    /* Shared mid read — same ballpark as wiciędze (was 0.62, crushed art). */
    filter: brightness(0.88) saturate(0.95) blur(0);
    border-radius: inherit;
}

/* wiciedzy-bg: sun flare top-right — crop via position; mid brightness vs old crush / overbright. */
.carousel-stage .panel-wiciedzy .panel-bg {
    background-position: 38% 44%;
    filter: brightness(0.88) saturate(0.95) blur(5px);
}

.carousel-stage .panel-wiciedzy .panel-veil {
    background:
        linear-gradient(to bottom left, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.28) 34%, transparent 52%),
        linear-gradient(to top, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.38) 45%, rgba(0, 0, 0, 0.62));
}

.carousel-stage .panel[data-slot="active"] {
    z-index: 3;
    --turn-x: 0px;
    --turn-y: 0px;
    --turn-z: 40px;
    --turn-ry: 0deg;
}

.carousel-stage .panel[data-slot="active"] .panel-face {
    /* One border only. Inset/outer box-shadow fills square corners on iOS (gold wedge top-right). */
    border: 1px solid rgba(196, 146, 42, 0.65);
    box-shadow: none;
}

.carousel-stage .panel-sheen {
    display: none;
}

.carousel-stage .panel:hover .panel-bg,
.carousel-stage .panel:focus-visible .panel-bg {
    transform: none;
}

.carousel-stage .panel:focus-visible {
    outline: none;
}

.carousel-stage .panel:focus-visible .panel-face {
    outline: none;
    border-color: rgba(196, 146, 42, 0.65);
}

.carousel-stage .panel[data-slot="active"] .panel-face::after {
    opacity: 0;
}

.carousel-stage .panel[data-slot="active"]:hover .panel-face,
.carousel-stage .panel[data-slot="active"]:focus-visible .panel-face {
    transform: translateY(-4px);
}

.carousel-stage .panel[data-slot="prev"] {
    z-index: 1;
    --turn-x: calc(var(--peek) * -1);
    --turn-z: -72px;
    --turn-ry: 28deg;
}

.carousel-stage .panel[data-slot="next"] {
    z-index: 2;
    --turn-x: var(--peek);
    --turn-z: -72px;
    --turn-ry: -28deg;
}

.carousel-stage .panel[data-slot="prev"] .panel-face::after,
.carousel-stage .panel[data-slot="next"] .panel-face::after {
    opacity: 1;
}

.carousel-stage .panel[data-slot="hidden"] {
    z-index: 0;
    visibility: hidden;
    pointer-events: none;
    opacity: 0;
}

/* All carousel links share one layout box; only the active tile may receive taps. */
.carousel-stage .panel[data-slot="prev"],
.carousel-stage .panel[data-slot="next"] {
    pointer-events: none;
}

.carousel-stage .panel[data-slot="active"] {
    pointer-events: auto;
}

.carousel-nav {
    font-family: inherit;
    width: 2.1rem;
    height: 2.1rem;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: transparent;
    color: #c4c4c4;
    font-size: 1.45rem;
    line-height: 1;
    cursor: pointer;
    z-index: 4;
}

.carousel-nav:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 2px;
}

.carousel-nav:hover {
    color: #fff;
    border-color: var(--gold);
    background: rgba(196, 146, 42, 0.18);
}

.panel {
    --rx: 0deg;
    --ry: 0deg;
    --ty: 0px;
    --tilt-scale: 1;
    --mx: 50%;
    --my: 50%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    cursor: pointer;
    border-radius: 16px;
    background: #0d0d0d;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: none;
    transition: transform 0.35s ease, box-shadow 0.35s ease, filter 0.35s ease, border-color 0.35s ease;
}

.panel-code {
    transform: rotateX(var(--rx)) rotateY(var(--ry)) translateY(var(--ty)) scale(var(--tilt-scale));
}

.panel-code:hover,
.panel-code:focus-visible {
    --ty: -4px;
    border-color: rgba(196, 146, 42, 0.45);
    box-shadow:
        0 0 0 1px rgba(196, 146, 42, 0.35),
        0 12px 28px rgba(0, 0, 0, 0.45);
}

.panel:active {
    --tilt-scale: 0.97;
    transition: transform 0.15s ease;
}

.panel:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: -4px;
}

.panel-code .panel-content {
    padding: 0.55rem 1.15rem;
}

.panel-code .panel-title {
    font-size: var(--hub-label);
    font-weight: 300;
    letter-spacing: 3px;
    text-transform: none;
}

.panel-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
    -webkit-mask-image: radial-gradient(ellipse farthest-corner at 50% 50%, black 55%, transparent 92%);
    mask-image: radial-gradient(ellipse farthest-corner at 50% 50%, black 55%, transparent 92%);
    transition: transform 0.6s ease, filter 0.6s ease;
    filter: blur(2px) brightness(0.92) saturate(0.95);
}

.panel:hover .panel-bg,
.panel:focus-visible .panel-bg {
    transform: scale(1.08);
    filter: blur(0) brightness(1.02) saturate(1);
}

/* Slow idle drift so the art doesn't sit frozen while waiting for a hover
   it may never get on touch devices — pure background-position, so it
   never fights the hover/tilt transform above. */
@media (prefers-reduced-motion: no-preference) {
    .panel-bg {
        animation: slow-pan 20s ease-in-out infinite alternate;
    }

    .panel-wyraj .panel-bg {
        animation-duration: 25s;
        animation-delay: 1s;
    }

    .panel-lingwo .panel-bg {
        animation-duration: 22s;
        animation-delay: 0.5s;
    }

    .panel-bazgr .panel-bg {
        animation-duration: 24s;
        animation-delay: 0.75s;
    }

    .panel-wiciedzy .panel-bg {
        animation-duration: 23s;
        animation-delay: 0.6s;
    }

    .panel-iaio .panel-bg {
        animation-duration: 24s;
        animation-delay: 0.9s;
    }

    /* Code hero: typing supplies motion — skip background pan. */
    .panel-code .panel-bg {
        animation: none;
    }
}

@keyframes slow-pan {
    from { background-position: 50% 42%; }
    to   { background-position: 54% 52%; }
}

/* Soft gold sheen that follows the cursor — pure lighting, no motifs */
.panel-sheen {
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0;
    mix-blend-mode: soft-light;
    background: radial-gradient(circle at var(--mx) var(--my), rgba(212, 165, 53, 0.55), transparent 55%);
    transition: opacity 0.4s ease;
}

.panel:hover .panel-sheen,
.panel:focus-visible .panel-sheen {
    opacity: 1;
}

.panel-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.panel-wyraj .panel-bg {
    background: #0a0805 url("../img/wyraj-bg.b1698fbde790.png") center / cover no-repeat;
    /* Slightly above hub mid — source art is darker; keep in same family as wiciędze. */
    filter: blur(2px) brightness(1.02) saturate(1) contrast(1.02);
}

.panel-wyraj:hover .panel-bg,
.panel-wyraj:focus-visible .panel-bg {
    filter: blur(0) brightness(1.1) saturate(1.05) contrast(1.02);
}

/* LingwoŁamek's own art hasn't been dropped in yet — this navy is just
   a placeholder base color so the panel doesn't look broken while
   lingwolamek-bg.png is missing. Swap the fallback color once you have
   real art; keep it dark so the veil/title still read the same way. */
.panel-lingwo .panel-bg {
    background: #0a0e18 url("../img/lingwolamek-bg.f6cf3d3156e8.png") center / cover no-repeat;
    filter: blur(2px) brightness(0.92) saturate(0.95);
}

.panel-lingwo:hover .panel-bg,
.panel-lingwo:focus-visible .panel-bg {
    filter: blur(0) brightness(1.02) saturate(1);
}

.panel-bazgr .panel-bg {
    background: #080808 url("../img/bazgrollin-bg.c82440a9e0d0.png") center / cover no-repeat;
    filter: blur(2px) brightness(0.92) saturate(0.95);
}

.panel-bazgr:hover .panel-bg,
.panel-bazgr:focus-visible .panel-bg {
    filter: blur(0) brightness(1.02) saturate(1);
}

/* codillin': flat black, same as the card — no navy slab behind the prompt */
.panel-code .panel-bg {
    background-color: #000;
    filter: none;
    -webkit-mask-image: none;
    mask-image: none;
}

.panel-code:hover .panel-bg,
.panel-code:focus-visible .panel-bg {
    filter: brightness(1) saturate(1) blur(0);
}

.panel-code .panel-veil {
    background: transparent;
}

/* Live terminal behind codillin' — decorative, mirrors old code-bg.gif */
.code-terminal {
    position: absolute;
    inset: 0;
    z-index: 1;
    margin: 0;
    padding: 0.45rem 1rem;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    overflow: hidden;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Courier New", monospace;
    font-size: calc(0.95rem - 2px);
    line-height: 1.4;
    color: #e2e2d6;
    white-space: pre;
    pointer-events: none;
    user-select: none;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

.code-terminal-lines {
    display: block;
    font: inherit;
    max-width: 100%;
    text-align: left;
}

.code-terminal .t-dim { color: #485662; }
.code-terminal .t-gold { color: var(--gold); }
.code-terminal .t-green { color: #8ec6a8; }
.code-terminal .t-text { color: #dcd8ce; }
.code-terminal .t-cyan { color: #6eafbf; }

.code-terminal-cursor {
    display: inline;
    color: var(--gold-hover, #d4a535);
    font-weight: 700;
    animation: code-cursor-blink 1s steps(1) infinite;
}

@keyframes code-cursor-blink {
    0%, 45% { opacity: 1; }
    46%, 100% { opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
    .code-terminal-cursor {
        animation: none;
        opacity: 1;
    }
}

.panel-wiciedzy .panel-bg {
    background: #080808 url("../img/wiciedzy-bg.421153576b9c.jpg") center / cover no-repeat;
    filter: blur(5px) brightness(0.92) saturate(0.95);
}

.panel-wiciedzy:hover .panel-bg,
.panel-wiciedzy:focus-visible .panel-bg {
    filter: blur(0) brightness(1.02) saturate(1);
}

.panel-iaio .panel-bg {
    background: #0a0805 url("../img/iaio-bg.729c01565cdf.jpg") center / cover no-repeat;
    filter: blur(2px) brightness(0.92) saturate(0.95);
}

.panel-iaio:hover .panel-bg,
.panel-iaio:focus-visible .panel-bg {
    filter: blur(0) brightness(1.02) saturate(1);
}

.panel-veil {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,.8), rgba(0,0,0,.38) 45%, rgba(0,0,0,.62));
    pointer-events: none;
}

.panel-wyraj .panel-veil {
    /* Match hub mid veil; art already gets a small brightness bump. */
    background: linear-gradient(to top, rgba(0,0,0,.8), rgba(0,0,0,.38) 45%, rgba(0,0,0,.62));
}

.panel-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.55rem;
    padding: 2rem;
    text-align: center;
}

.panel-title {
    font-weight: 300;
    text-transform: none;
    letter-spacing: 2px;
    font-size: var(--hub-label);
    margin: 0;
    color: var(--gold);
    transition: letter-spacing 0.35s ease;
}

.carousel-stage .panel-lockup {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 0.38em;
    max-width: 100%;
}

.carousel-stage .panel-import {
    font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: calc(var(--hub-label) * 0.85);
    font-weight: 400;
    line-height: 1;
    letter-spacing: 0;
    color: rgba(210, 198, 170, 0.62);
    flex: 0 0 auto;
}

.panel:hover .panel-title,
.panel:focus-visible .panel-title {
    letter-spacing: 2.5px;
}

.panel-tag {
    font-weight: 300;
    font-size: 0.95rem;
    color: #c4c4c4;
    opacity: 0.85;
    margin: 0;
    max-width: 24ch;
}

.panel-cta {
    position: relative;
    overflow: hidden;
    margin-top: 0.6rem;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #fff;
    background: linear-gradient(45deg, var(--gold), var(--gold-2));
    padding: 8px 18px;
    border-radius: 25px;
    box-shadow: 0 4px 15px rgba(196, 146, 42, 0.3);
    transition: all 0.3s ease;
}

.panel-cta::after {
    content: '';
    position: absolute;
    top: 0;
    left: -60%;
    width: 40%;
    height: 100%;
    background: linear-gradient(115deg, transparent, rgba(255, 255, 255, 0.55), transparent);
    transform: skewX(-20deg);
    transition: left 0.65s ease;
}

.panel:hover .panel-cta::after,
.panel:focus-visible .panel-cta::after {
    left: 130%;
}

.panel:hover .panel-cta,
.panel:focus-visible .panel-cta {
    background: linear-gradient(45deg, #d4a535, #8b4513);
    box-shadow: 0 6px 20px rgba(196, 146, 42, 0.5);
}

.cta-arrow {
    display: inline-block;
    transition: transform 0.3s ease;
}

.panel:hover .cta-arrow,
.panel:focus-visible .cta-arrow {
    animation: none;
    transform: translateX(4px);
}

/* ── Motion (respect prefers-reduced-motion) ────────────────────────── */
@media (prefers-reduced-motion: reduce) {
    .panel-turn,
    .panel-face,
    .carousel-stage .panel-face::after {
        transition: none;
    }
}

@media (prefers-reduced-motion: no-preference) {
    .rozdroze-header,
    .panel-code {
        animation: fade-up 0.7s ease both;
    }

    .panel-wyraj {
        animation-delay: 0.1s;
    }

    .panel-lingwo {
        animation-delay: 0.2s;
    }

    .panel-code {
        animation-delay: 0.05s;
    }

    .panel-wiciedzy {
        animation-delay: 0.3s;
    }

    /* Gentle hint that the arrow — and the card — is clickable */
    .cta-arrow {
        animation: nudge 2.8s ease-in-out infinite;
    }

    .panel-wyraj .cta-arrow {
        animation-delay: 0.4s;
    }

    .panel-lingwo .cta-arrow {
        animation-delay: 0.7s;
    }

    .panel-code .cta-arrow {
        animation-delay: 0.35s;
    }

    .panel-wiciedzy .cta-arrow {
        animation-delay: 1s;
    }
}

@keyframes fade-up {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes nudge {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(3px); }
}

/* ── Mobile: 2 across, 3rd spans full width below ────────────────────
   Three columns at once got too narrow to read on real phone widths
   (titles wrapping, the CTA pill nearly touching the panel edge), so
   below 640px the grid drops to 2 columns and .panel-lingwo — the most
   recently added panel — spans both, sitting as its own row underneath.
   If a 4th panel shows up, this is the spot to revisit (a straight
   2×2 grid is probably cleaner than a 2-up-then-2-more stack). */
/* ── Mobile: keep the 2×2, just tighten spacing ──────────────────── */
@media (max-width: 640px) {
    .stage {
        padding: 16px 10px;
    }

    .portal {
        border-radius: 18px;
    }

    .stage-stack {
        gap: 10px;
    }

    .panel-code .code-terminal {
        align-items: center;
        font-size: 0.62rem;
        line-height: 1.35;
        padding: 0.35rem 0.7rem;
        -webkit-mask-image: linear-gradient(90deg, #000 0%, #000 16%, transparent 34%);
        mask-image: linear-gradient(90deg, #000 0%, #000 16%, transparent 34%);
    }

    .panel-code .panel-title {
        position: relative;
        z-index: 2;
        text-shadow: 0 0 12px #000, 0 1px 3px #000;
    }

    .rozdroze-header {
        padding: var(--hub-gap) 10px 0;
    }

    /* Same turn as desktop. Arrows overlay the stage so the side faces stay readable. */
    .carousel {
        position: relative;
        display: block;
        --peek: clamp(84px, 24vw, 120px);
        padding-inline: 0;
    }

    .carousel-stage {
        height: min(52vh, 360px);
        min-height: 250px;
    }

    .carousel-stage .panel,
    .carousel-stage .panel[data-slot="active"] {
        width: min(56%, 210px);
    }

    .carousel-stage .panel-lockup {
        flex-direction: column;
        gap: 0.12rem;
    }

    .carousel-stage .panel:not([data-slot="active"]) .panel-title,
    .carousel-stage .panel:not([data-slot="active"]) .panel-import,
    .carousel-stage .panel:not([data-slot="active"]) .panel-tag {
        opacity: 0;
    }

    .carousel-nav {
        position: absolute;
        top: 50%;
        z-index: 5;
        width: 2.75rem;
        height: 2.75rem;
        transform: translateY(-50%);
        background: rgba(0, 0, 0, 0.4);
    }

    .carousel-prev {
        left: 0.15rem;
    }

    .carousel-next {
        right: 0.15rem;
    }

    .panel {
        border-radius: 12px;
    }

    .carousel-stage .panel {
        border-radius: 0;
    }

    .panel-face {
        border-radius: 12px;
    }

    .panel-content {
        padding: 1rem 0.5rem;
        gap: 0.35rem;
    }

    :root {
        --hub-label: clamp(1rem, 5.5vw, 1.3rem);
    }

    .panel-title {
        letter-spacing: 1.5px;
    }

    .panel:hover .panel-title,
    .panel:focus-visible .panel-title {
        letter-spacing: 2px;
    }

    .panel-tag {
        display: block;
        font-size: 0.72rem;
        line-height: 1.25;
        max-width: 18ch;
    }
}

@media (hover: none) {
    /* No hover on touch — resting = hub mid reveal (aligned with wiciędze). */
    .panel-bg {
        filter: brightness(0.95) saturate(0.95) blur(0);
    }

    .panel-wyraj .panel-bg {
        filter: brightness(1.05) saturate(1) contrast(1.02) blur(0);
    }

    .panel-code .panel-bg {
        filter: brightness(1) saturate(1) blur(0);
    }

    .panel-wiciedzy .panel-bg,
    .panel-bazgr .panel-bg,
    .panel-iaio .panel-bg,
    .panel-lingwo .panel-bg {
        filter: brightness(0.95) saturate(0.95) blur(0);
    }

    .carousel-stage .panel-bg {
        filter: brightness(0.88) saturate(0.95) blur(0);
    }

    .carousel-stage .panel-wyraj .panel-bg {
        filter: brightness(0.95) saturate(1) contrast(1.02) blur(0);
    }

    .carousel-stage .panel-wiciedzy .panel-bg {
        /* Touch has no hover reveal — keep light blur, not the desktop start amount. */
        filter: brightness(0.88) saturate(0.95) blur(2px);
        background-position: 38% 44%;
    }
}