/* „Ostatnia pieczątka”: finał strony głównej (Pages/Shared/Home/_OstatniaPieczatka.cshtml).
   Ciemne pasmo pod stopką, oddzielone perforacją jak kupon. Na starcie to niski pasek z zaproszeniem
   (easter egg); gra rozwija się dopiero po kliknięciu. Zmiana układu tuż po kliknięciu nie liczy się
   do CLS, a logo na dnie pokazujemy dopiero po rozwinięciu, żeby nie jechało razem z dołem sekcji. */

.op {
    --op-ink: #130b21;
    --op-pink: #ff4da6;
    --op-magenta: #e52687;
    --op-cta: #d81f7c;
    --op-blush: #ffd6ea;
    --op-card-w: min(100%, 560px);
    --op-closed: 128px;
    --op-h: max(572px, 392px + 56.27vw);
    position: relative;
    isolation: isolate;
    overflow: hidden;
    box-sizing: border-box;
    height: calc(var(--op-closed) + env(safe-area-inset-bottom, 0px));
    border-top: 2px dashed rgba(255, 255, 255, .13);
    background: var(--op-ink);
    color: #fff;
    font-family: "Poppins", sans-serif;
    -webkit-font-smoothing: antialiased;
    -webkit-tap-highlight-color: transparent;
    transition: height .75s cubic-bezier(.2, .85, .25, 1);
}

.op.is-open {
    height: calc(var(--op-h) + env(safe-area-inset-bottom, 0px));
}

/* Bez JS nie da się rozwinąć gry, więc nie pokazujemy też zaproszenia */
.op:not(.is-js) {
    display: none;
}

/* ---------- Tło: poświata i kropki jak na reszcie strony ---------- */
.op-glow {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background:
        radial-gradient(75% 48% at 50% 100%, rgba(229, 38, 135, .34), transparent 72%),
        radial-gradient(rgba(255, 255, 255, .06) 1.25px, transparent 1.25px) 0 0 / 9.5px 9.5px;
    -webkit-mask-image: linear-gradient(to top, #000 35%, rgba(0, 0, 0, .35));
    mask-image: linear-gradient(to top, #000 35%, rgba(0, 0, 0, .35));
    opacity: .6;
    transform-origin: 50% 100%;
    transition: opacity .9s ease-out, transform .9s ease-out;
}

.op.is-won .op-glow {
    opacity: 1;
    transform: scaleY(1.18);
}

/* ---------- Logo na dnie: litery (duchy do wygranej) i strzałka ---------- */
.op-word {
    position: absolute;
    z-index: 4;
    left: 50%;
    bottom: calc(-14px + env(safe-area-inset-bottom, 0px));
    width: min(calc(100% - 24px), 560px);
    max-width: 1100px;
    aspect-ratio: 1174.95 / 424.57;
    pointer-events: none;
    transform: translateX(-50%);
}

.op.is-js:not(.is-grown) .op-word {
    visibility: hidden;
}

.op-word svg {
    display: block;
    width: 100%;
    height: 100%;
    overflow: visible;
}

/* Duchy liter: jedna wspólna przezroczystość dla całej grupy, bez konturów. Litery pisane
   zachodzą na siebie, a tak styki nie ciemnieją i nie widać krzyżujących się linii. */
.op-ghost {
    opacity: .12;
}

.op-ghost path,
.op-lit path {
    fill: #fff;
    transform-box: fill-box;
    transform-origin: 50% 90%;
}

.op.is-js:not(.is-grown) .op-ghost path {
    opacity: 0;
    transform: translateY(18%);
}

.op.is-grown .op-ghost path {
    transition: opacity .3s ease-out, transform .52s cubic-bezier(.34, 1.56, .64, 1);
    transition-delay: calc(var(--i, 0) * 40ms);
}

.op.is-landed .op-ghost path {
    transition-delay: 0s;
}

/* Zapalone litery (po wygranej) */
.op-lit path {
    opacity: 0;
}

.op-lit path.is-lit {
    opacity: 1;
}

/* Strzałka zawsze w pełnym kolorze; po rozwinięciu wlatuje zza „do” */
.op-arrow {
    transform-box: fill-box;
}

.op-arrow path {
    fill: var(--op-magenta);
    filter: drop-shadow(0 0 10px rgba(255, 77, 166, .55));
}

.op.is-js:not(.is-grown) .op-arrow {
    opacity: 0;
    transform: translateX(-10%);
}

.op.is-grown .op-arrow {
    transition: transform .8s cubic-bezier(.2, 1.3, .4, 1) .45s, opacity .25s .45s;
}

/* ---------- Treść ---------- */
/* Bez z-index: inaczej CTA zamyka się pod płótnem i stosem (warstwa kontekstu .op-inner) */
.op-inner {
    position: relative;
    display: grid;
    transition: opacity .45s ease .15s;
    grid-template-columns: 1fr;
    grid-template-areas: "eyebrow" "title" "card" "status" "cta";
    justify-items: center;
    max-width: 1180px;
    margin: 0 auto;
    padding: 28px 16px 0;
    text-align: center;
}

.op-eyebrow {
    grid-area: eyebrow;
    margin: 0 0 8px;
    color: var(--op-pink);
    font: 700 13px/1 "Poppins", sans-serif;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.op-title {
    grid-area: title;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 2.3em;
    max-width: 24ch;
    margin: 0;
    color: #fff;
    font: 700 clamp(23px, 6.4vw, 27px)/1.15 "Poppins", sans-serif;
    text-wrap: balance;
}

.op-eyebrow span,
.op-title span,
.op-sub span {
    display: block;
    transition: opacity .26s ease, transform .32s cubic-bezier(.2, .9, .3, 1);
}

.op-eyebrow.swap span,
.op-title.swap span,
.op-sub.swap span {
    opacity: 0;
    transform: translateY(10px);
}

.op-sub {
    display: none;
}

/* ---------- Karta ---------- */
.op-card {
    grid-area: card;
    position: relative;
    z-index: 2;
    width: var(--op-card-w);
    aspect-ratio: 750 / 422;
    margin-top: 22px;
    perspective: 1100px;
}

.op-tilt {
    position: absolute;
    inset: 0;
    transform-style: preserve-3d;
}

.op-card3d {
    position: absolute;
    inset: 0;
    transform-style: preserve-3d;
    transition: transform .72s cubic-bezier(.25, 1.35, .5, 1);
}

.op-card.is-flipped .op-card3d {
    transform: rotateY(180deg);
}

.op-face {
    position: absolute;
    inset: 0;
    box-sizing: border-box;
    overflow: hidden;
    border: 3px solid #fff;
    border-radius: 18px;
    background: #241a36;
    box-shadow: 8px 8px 0 var(--op-magenta);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    /* Wciśnięcie idzie przez właściwość translate, nie transform (transform zabiłby obrót karty) */
    transition: box-shadow .38s cubic-bezier(.2, 1.6, .4, 1), translate .38s cubic-bezier(.2, 1.6, .4, 1);
}

.op-card.press .op-face {
    translate: 5px 5px;
    box-shadow: 3px 3px 0 var(--op-magenta);
    transition-duration: .07s;
}

.op-art {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    -webkit-user-drag: none;
    user-select: none;
}

.op-slot {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 19%;
    aspect-ratio: 1;
}

.op-slot img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    -webkit-user-drag: none;
    user-select: none;
    transform: rotate(var(--r));
}

.op-slot img.is-empty,
.op-slot img.gone {
    visibility: hidden;
}

.op.is-armed .op-slot img.is-on {
    opacity: 0;
    transform: scale(0) rotate(var(--r));
}

/* Rozdanie pierwszej karty: pieczątki czekają ukryte na swoje wskoczenie */
.op.is-dealing .op-slot img.is-on:not(.pop) {
    opacity: 0;
    transform: scale(0) rotate(var(--r));
}

.op-slot img.pop {
    animation: opStampIn .26s cubic-bezier(.34, 1.56, .64, 1) both;
}

@keyframes opStampIn {
    from { opacity: 0; transform: scale(0) rotate(calc(var(--r) - 20deg)); }
    to { opacity: 1; transform: scale(1) rotate(var(--r)); }
}

.op-slot img.slam {
    animation: opStampSlam .26s cubic-bezier(.34, 1.56, .64, 1) both;
}

@keyframes opStampSlam {
    from { opacity: 0; transform: scale(1.35) rotate(var(--r)); }
    to { opacity: 1; transform: scale(1) rotate(var(--r)); }
}

.op-slot img.glow {
    animation: opGlow .34s ease-out;
}

@keyframes opGlow {
    50% { filter: brightness(1.5) drop-shadow(0 0 8px #fff); transform: scale(1.1) rotate(var(--r)); }
}

.op-slot.is-next::after {
    content: "";
    position: absolute;
    inset: -6%;
    border: 3px solid var(--op-pink);
    border-radius: 50%;
    opacity: 0;
}

.op.is-ready.is-inview .op-slot.is-next::after {
    animation: opRing 1.6s ease-out infinite;
}

@keyframes opRing {
    0% { opacity: .9; transform: scale(.9); }
    100% { opacity: 0; transform: scale(1.28); }
}

/* Rewers: nagroda */
.op-back {
    display: grid;
    grid-template-columns: 38% 1fr;
    align-items: center;
    background:
        radial-gradient(rgba(255, 255, 255, .2) 1.25px, transparent 1.25px) 0 0 / 9.5px 9.5px,
        linear-gradient(135deg, #c41a6f, #d81f7c);
    text-align: left;
    transform: rotateY(180deg);
    container-type: inline-size;
}

.op-back-stamp {
    display: flex;
    align-items: center;
    justify-content: center;
    justify-self: center;
    width: 68%;
    aspect-ratio: 1;
    border: 3px solid var(--op-ink);
    border-radius: 50%;
    background: #fff;
    box-shadow: 4px 4px 0 var(--op-ink);
    transform: rotate(-10deg);
}

.op-back-stamp img {
    width: 78%;
    height: 78%;
    object-fit: contain;
}

.op-back-text p {
    margin: 0;
}

.op-back-eyebrow {
    color: #fff;
    font: 700 max(10px, 3.1cqw)/1 "Poppins", sans-serif;
    letter-spacing: .14em;
    text-transform: uppercase;
    opacity: .92;
}

.op-back-reward {
    margin: .22em 0 .2em !important;
    padding-right: 6%;
    color: #fff;
    font: 700 clamp(20px, 8.4cqw, 46px)/1.02 "Poppins", sans-serif;
    text-wrap: balance;
}

.op-back-note {
    margin-bottom: .8em !important;
    color: rgba(255, 255, 255, .88);
    font: 400 max(10px, 2.8cqw)/1.3 "Poppins", sans-serif;
}

.op-back-chip {
    display: inline-flex;
    align-items: center;
    gap: .4em;
    padding: .55em .9em;
    border-radius: 9999px;
    background: #fff;
    box-shadow: 3px 3px 0 var(--op-ink);
    color: var(--op-ink);
    font: 700 max(11px, 3.1cqw)/1 "Poppins", sans-serif;
}

.op-back-chip svg {
    width: 1em;
    height: 1em;
}

.op-back::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .45) 45%, transparent 60%);
    pointer-events: none;
    transform: translateX(-100%);
}

.op-card.is-flipped .op-back::after {
    animation: opGlare .9s .35s ease-out both;
}

@keyframes opGlare {
    to { transform: translateX(100%); }
}

/* Wejście/wyjście karty i trzęsienie po uderzeniu (na zewnętrznym .op-card) */
.op.is-armed .op-card {
    opacity: 0;
    transform: translateY(40px) rotate(-4deg) scale(.94);
}

.op.is-arrived .op-card:not(.out):not(.in-start) {
    opacity: 1;
    transform: none;
    transition: transform .62s cubic-bezier(.2, 1.25, .35, 1), opacity .3s;
}

.op-card.out {
    opacity: 0;
    transform: translateX(-118%) rotate(-10deg);
    transition: transform .42s cubic-bezier(.55, 0, .75, .2), opacity .42s;
}

.op-card.in-start {
    opacity: 0;
    transform: translateX(118%) rotate(8deg);
    transition: none;
}

.op-card.in {
    opacity: 1;
    transform: none;
    transition: transform .56s cubic-bezier(.2, 1.3, .4, 1), opacity .2s;
}

.op-card.shake {
    animation: opShake .24s linear;
}

@keyframes opShake {
    20% { translate: calc(var(--sh) * -1) 0; }
    40% { translate: var(--sh) 0; }
    60% { translate: calc(var(--sh) * -.6) 0; }
    80% { translate: calc(var(--sh) * .3) 0; }
}

/* Pieczątka-narzędzie nad następnym polem */
.op-stamper {
    position: absolute;
    z-index: 3;
    top: 0;
    left: 0;
    width: 16.5%;
    aspect-ratio: 72 / 96;
    pointer-events: none;
    will-change: transform;
}

.op-stamper-bob {
    position: absolute;
    inset: 0;
}

.op.is-ready.is-inview .op-stamper-bob {
    animation: opBob 2.4s ease-in-out infinite;
}

.op-stamper-bob.tease {
    animation: opTease .42s ease-in-out !important;
}

@keyframes opBob {
    50% { transform: translateY(4px); }
}

@keyframes opTease {
    40% { transform: translateY(8px) rotate(3deg); }
    70% { transform: translateY(2px) rotate(-2deg); }
}

.op-stamper svg {
    display: block;
    width: 100%;
    height: 100%;
    overflow: visible;
}

.op-stamper-face {
    position: absolute;
    top: 49%;
    left: 34%;
    width: 32%;
    aspect-ratio: 1;
    object-fit: contain;
}

.op-shadow {
    position: absolute;
    z-index: 2;
    top: 0;
    left: 0;
    width: 15%;
    aspect-ratio: 2.6;
    border-radius: 50%;
    background: rgba(0, 0, 0, .5);
    filter: blur(4px);
    pointer-events: none;
    will-change: transform, opacity;
}

.op-plus {
    position: absolute;
    z-index: 6;
    color: #fff;
    font: 700 18px/1 "Poppins", sans-serif;
    text-shadow: 0 2px 0 var(--op-magenta);
    pointer-events: none;
    animation: opPlus .7s ease-out forwards;
}

@keyframes opPlus {
    from { opacity: 0; transform: translate(-50%, 0) scale(.6); }
    25% { opacity: 1; transform: translate(-50%, -10px) scale(1.1); }
    to { opacity: 0; transform: translate(-50%, -34px) scale(1); }
}

/* Cała karta to przycisk (z 10 px zapasu na palec) */
.op-hit {
    position: absolute;
    inset: -10px;
    z-index: 5;
    padding: 0;
    border: 0;
    border-radius: 22px;
    background: transparent;
    cursor: pointer;
    touch-action: manipulation;
    -webkit-touch-callout: none;
    user-select: none;
}

.op-hit:focus {
    outline: none;
}

.op-hit:focus-visible {
    outline: 3px solid var(--op-blush);
    outline-offset: 4px;
}

/* ---------- Licznik, podpowiedź, CTA ---------- */
.op-status {
    grid-area: status;
    display: flex;
    align-items: center;
    gap: 10px;
    height: 30px;
    margin-top: 18px;
    color: rgba(255, 255, 255, .86);
    font: 700 15px/1 "Poppins", sans-serif;
}

.op-count {
    display: inline-flex;
    align-items: center;
    height: 28px;
    padding: 0 11px;
    border: 1.5px solid rgba(255, 255, 255, .24);
    border-radius: 9999px;
    background: rgba(255, 255, 255, .08);
    font: 700 13px/1 "Poppins", sans-serif;
    font-variant-numeric: tabular-nums;
    transition: background-color .3s, border-color .3s;
}

.op.is-won .op-count {
    border-color: var(--op-cta);
    background: var(--op-cta);
}

.op-count.bump {
    animation: opBump .32s cubic-bezier(.34, 1.56, .64, 1);
}

@keyframes opBump {
    40% { transform: scale(1.22); }
}

.op-hint {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    opacity: 0;
    transform: translateY(6px);
    transition: opacity .3s, transform .3s;
}

.op.is-hint .op-hint,
.op:not(.is-js) .op-hint {
    opacity: 1;
    transform: none;
}

.op-finger {
    width: 18px;
    height: 18px;
}

.op.is-inview .op-finger {
    animation: opTap 1.1s ease-in-out infinite;
}

@keyframes opTap {
    50% { transform: translateY(3px) scale(.88); }
}

.op-cta {
    grid-area: cta;
    position: relative;
    z-index: 6;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-sizing: border-box;
    width: min(100%, 420px);
    min-height: 56px;
    margin-top: 16px;
    padding: 12px 26px;
    overflow: hidden;
    border-radius: 9999px;
    background: var(--op-cta);
    box-shadow: 4px 4px 0 #fff;
    color: #fff !important;
    font: 700 clamp(15px, 4.3vw, 18px)/1.2 "Poppins", sans-serif;
    text-align: center;
    text-decoration: none !important;
    transition: transform .15s ease, box-shadow .15s ease;
}

.op-cta:hover {
    box-shadow: 2px 2px 0 #fff;
    transform: translate(2px, 2px);
}

.op-cta:active {
    box-shadow: 0 0 0 #fff;
    transform: translate(4px, 4px);
}

.op-cta:focus-visible {
    outline: 3px solid var(--op-blush);
    outline-offset: 4px;
}

.op-cta svg {
    flex: none;
    width: 20px;
    height: 20px;
}

/* Z JS: przed nagrodą przycisk jest konturem (dalej klikalny), wypełnienie to nagroda */
.op.is-js .op-cta {
    background: transparent;
    box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .9), 4px 4px 0 rgba(255, 255, 255, .16);
}

.op.is-js .op-cta::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: var(--op-cta);
    clip-path: inset(0 100% 0 0 round 9999px);
    transition: clip-path .52s cubic-bezier(.2, .8, .2, 1);
}

.op.is-js .op-cta:hover::before {
    clip-path: inset(0 0 0 0 round 9999px);
    transition-duration: .3s;
}

.op.has-won .op-cta {
    box-shadow: 4px 4px 0 #fff;
}

.op.has-won .op-cta::before {
    clip-path: inset(0 0 0 0 round 9999px);
}

.op-cta.pop {
    animation: opPop .3s cubic-bezier(.34, 1.56, .64, 1);
}

@keyframes opPop {
    50% { transform: scale(1.06); }
}

.op-cta::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 38%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .42), transparent);
    pointer-events: none;
    transform: translateX(-160%) skewX(-18deg);
}

.op-cta.shine::after {
    animation: opShine .85s ease-out;
}

@keyframes opShine {
    to { transform: translateX(330%) skewX(-18deg); }
}

/* ---------- Płótno (cząsteczki, stos) i strefa stosu ---------- */
.op-canvas {
    position: absolute;
    inset: 0;
    z-index: 3;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

/* Pas stosu: tylko miara dla skryptu, zdarzenia łapie sekcja (warstwa nie może zasłaniać CTA) */
.op-pile {
    position: absolute;
    z-index: 3;
    right: 0;
    bottom: 0;
    left: 0;
    height: 170px;
    pointer-events: none;
}

.op-pilehint {
    position: absolute;
    z-index: 5;
    bottom: 14px;
    left: 16px;
    margin: 0;
    padding: 8px 13px;
    border-radius: 9999px;
    background: rgba(19, 11, 33, .88);
    color: #fff;
    font: 700 13px/1 "Poppins", sans-serif;
    pointer-events: none;
    opacity: 0;
    transition: opacity .4s;
}

.op-pilehint.show {
    opacity: 1;
}

.op-live {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

/* ---------- Zaproszenie: zamknięty pasek (easter egg) ---------- */
.op.is-js:not(.is-open) .op-inner,
.op.is-js:not(.is-open) .op-canvas {
    visibility: hidden;
    opacity: 0;
}

.op-open {
    position: absolute;
    z-index: 7;
    top: 0;
    right: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    box-sizing: border-box;
    height: var(--op-closed);
    margin: 0;
    padding: 0 20px;
    border: 0;
    background: transparent;
    color: #fff;
    text-align: left;
    cursor: pointer;
    touch-action: manipulation;
    transition: opacity .22s ease, transform .3s ease, visibility 0s;
}

.op-open:focus {
    outline: none;
}

.op-open:focus-visible .op-open-text {
    outline: 3px solid var(--op-blush);
    outline-offset: 6px;
    border-radius: 8px;
}

.op-open-icon {
    position: relative;
    flex: none;
    width: 48px;
    height: 62px;
}

/* Puste pole na karcie, w które pieczątka co chwilę stuka */
.op-open-slot {
    position: absolute;
    bottom: 1px;
    left: 50%;
    width: 42px;
    height: 15px;
    box-sizing: border-box;
    border: 2px dashed rgba(255, 255, 255, .45);
    border-radius: 50%;
    transform: translateX(-50%);
}

.op-open-stamper {
    position: absolute;
    bottom: 7px;
    left: 50%;
    width: 34px;
    height: auto;
    margin-left: -17px;
    overflow: visible;
    transform-origin: 50% 100%;
}

.op.is-inview:not(.is-open) .op-open-stamper {
    animation: opOpenTap 3.4s cubic-bezier(.45, 0, .55, 1) infinite;
}

.op.is-inview:not(.is-open) .op-open-slot {
    animation: opOpenMark 3.4s ease-out infinite;
}

@keyframes opOpenTap {
    0%, 58%, 100% { transform: translateY(0) rotate(-8deg); }
    68% { transform: translateY(-7px) rotate(-4deg); }
    74% { transform: translateY(6px) rotate(0) scale(1.06, .9); }
    84% { transform: translateY(0) rotate(-8deg); }
}

@keyframes opOpenMark {
    0%, 73% { border-color: rgba(255, 255, 255, .45); background: transparent; transform: translateX(-50%) scale(1); }
    75% { border-color: var(--op-pink); background: var(--op-pink); transform: translateX(-50%) scale(1.18); }
    92% { border-color: rgba(255, 77, 166, .5); background: rgba(255, 77, 166, .25); transform: translateX(-50%) scale(1); }
}

.op-open-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.op-open-q {
    color: #fff;
    font: 700 16px/1.25 "Poppins", sans-serif;
}

.op-open-a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--op-blush);
    font: 400 14px/1.35 "Poppins", sans-serif;
    transition: color .2s ease;
}

.op-open-a svg {
    flex: none;
    width: 16px;
    height: 16px;
    transition: transform .2s ease;
}

.op-open:hover .op-open-a {
    color: #fff;
}

.op-open:hover .op-open-a svg {
    transform: translateX(4px);
}

/* Po kliknięciu pieczątka stuka ostatni raz, a zaproszenie ustępuje grze */
.op.is-open .op-open {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-14px);
    transition: opacity .22s ease .12s, transform .3s ease .12s, visibility 0s .45s;
}

.op.is-open .op-open-stamper {
    animation: opOpenSlam .2s ease-in both;
}

@keyframes opOpenSlam {
    to { transform: translateY(6px) rotate(0) scale(1.06, .9); }
}

/* Poza ekranem nic się nie rusza */
.op:not(.is-inview) *,
.op:not(.is-inview) *::before,
.op:not(.is-inview) *::after {
    animation-play-state: paused !important;
}

/* Gdy finał jest na ekranie, stałe przyciski strony ustępują miejsca. visibility z opóźnieniem:
   schowany przycisk znika też z kolejki Tab, a animacja wyjścia zdąży się pokazać. */
#languageToggleContainer,
#scrollToTopButton,
#homeLoginButton,
#googleReviewPopupContainer {
    transition: transform .25s ease, opacity .25s ease, visibility 0s;
}

body.op-on #languageToggleContainer,
body.op-on #scrollToTopButton,
body.op-on #homeLoginButton,
body.op-on #googleReviewPopupContainer {
    visibility: hidden;
    pointer-events: none;
    transition: transform .25s ease, opacity .25s ease, visibility 0s .25s;
}

body.op-on #languageToggleContainer {
    transform: translate(120%, -50%);
}

body.op-on #scrollToTopButton {
    opacity: 0;
    transform: scale(.6);
}

/* Pływające logowanie na desktopie i wyskakujące opinie z Google (popups.js) nie zasłaniają gry */
body.op-on #homeLoginButton,
body.op-on #googleReviewPopupContainer {
    opacity: 0;
}

/* ---------- Telefony ---------- */
@media (max-width: 360px) {
    .op-cta {
        gap: 8px;
        padding-inline: 16px;
        font-size: 15px;
    }

    .op-cta svg {
        width: 16px;
        height: 16px;
    }
}

/* ---------- Tablet ---------- */
@media (min-width: 768px) {
    /* Jedna kolumna: tekst, karta i CTA nad logo, więc sekcja musi być wyższa */
    .op {
        --op-closed: 140px;
        --op-h: 880px;
    }

    .op-open-q {
        font-size: 18px;
    }

    .op-open-a {
        font-size: 16px;
    }

    .op-inner {
        padding-top: 48px;
    }

    .op-title {
        font-size: 34px;
    }

    .op-sub {
        grid-area: sub;
        display: block;
        max-width: 44ch;
        margin: 12px 0 0;
        color: rgba(255, 255, 255, .72);
        font: 400 16px/1.5 "Poppins", sans-serif;
    }

    .op-inner {
        grid-template-areas: "eyebrow" "title" "sub" "card" "status" "cta";
    }

    .op-card {
        --op-card-w: min(100%, 540px);
    }

    .op-word {
        bottom: -12px;
        width: min(720px, calc(100% - 64px));
    }
}

/* ---------- Desktop ---------- */
@media (min-width: 1024px) {
    .op {
        --op-h: 790px;
    }

    .op-inner {
        grid-template-columns: minmax(0, 1fr) 560px;
        grid-template-rows: auto auto auto auto 1fr;
        grid-template-areas: "eyebrow card" "title card" "sub card" "status card" "cta card";
        align-items: start;
        justify-items: start;
        column-gap: 64px;
        padding: 84px 40px 0;
        text-align: left;
    }

    .op-title {
        justify-content: flex-start;
        align-items: flex-start;
        min-height: 2.2em;
        max-width: none;
        font-size: 40px;
        line-height: 1.1;
    }

    .op-sub {
        max-width: 34ch;
        margin-top: 16px;
        font-size: 18px;
    }

    .op-status {
        margin-top: 26px;
    }

    .op-cta {
        width: auto;
        min-height: 62px;
        margin-top: 22px;
        padding: 14px 34px;
        font-size: 19px;
    }

    .op-card {
        --op-card-w: 560px;
        align-self: start;
        margin-top: 6px;
    }

    .op-pile {
        height: 230px;
    }

    .op-word {
        bottom: -4px;
        width: min(980px, 72%);
    }
}

/* Wąski desktop: mniejsza karta i odstęp, żeby CTA zmieściło się w jednej linii */
@media (min-width: 1024px) and (max-width: 1199px) {
    .op-inner {
        grid-template-columns: minmax(0, 1fr) 500px;
        column-gap: 40px;
    }

    .op-card {
        --op-card-w: 500px;
    }
}
