.mistrz-title-hero {
    --mistrz-ink: #f7ead5;
    --mistrz-ink-muted: rgba(247, 234, 213, 0.78);
    --mistrz-gold: #dca23e;
    --mistrz-terracotta: #c96f50;
    --mistrz-line: rgba(247, 234, 213, 0.18);
    --mistrz-sky-texture: url("playground/texture-sky.png");
    --mistrz-cloud-mask: url("playground/cloud-mask.png");
    position: relative;
    isolation: isolate;
    min-height: clamp(680px, calc(100vh - 73px), 880px);
    overflow: hidden;
    padding: clamp(72px, 8vw, 112px) 0 clamp(132px, 16vw, 190px);
    color: var(--mistrz-ink);
    background:
        radial-gradient(circle at 66% 12%, rgba(102, 174, 229, .3), transparent 24%),
        radial-gradient(circle at 14% 74%, rgba(31, 91, 165, .72), transparent 34%),
        linear-gradient(180deg, #081326 0%, #0d2754 48%, #081932 100%);
}
.mistrz-hero-layer {
    position: absolute;
    pointer-events: none;
    user-select: none;
}
.mistrz-hero-texture {
    inset: -6%;
    z-index: 1;
    opacity: .66;
    background-image:
        linear-gradient(180deg, rgba(5, 12, 26, .1), rgba(5, 12, 26, .5)),
        var(--mistrz-sky-texture);
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    mix-blend-mode: screen;
    filter: saturate(1.45) hue-rotate(8deg) brightness(1.08) contrast(1.08);
    transform: scale(1.05);
    animation: mistrz-texture-breathe 42s ease-in-out infinite alternate;
}
.mistrz-hero-grain {
    inset: 0;
    z-index: 2;
    opacity: .22;
    mix-blend-mode: soft-light;
    background-image:
        repeating-linear-gradient(42deg, rgba(255, 255, 255, .07) 0 1px, transparent 1px 12px),
        repeating-linear-gradient(104deg, rgba(0, 0, 0, .08) 0 1px, transparent 1px 18px),
        radial-gradient(circle at 26% 38%, rgba(255, 255, 255, .16), transparent 28%),
        radial-gradient(circle at 72% 68%, rgba(0, 0, 0, .22), transparent 30%);
}
.mistrz-hero-stars {
    inset: -10%;
    z-index: 3;
    opacity: .68;
    background-image:
        radial-gradient(circle, rgba(255, 250, 219, .95) 0 1px, transparent 1.8px),
        radial-gradient(circle, rgba(255, 255, 255, .82) 0 1px, transparent 2px),
        radial-gradient(circle, rgba(220, 162, 62, .75) 0 2px, transparent 3.2px),
        radial-gradient(circle at 18% 22%, rgba(255, 255, 255, .9) 0 2px, transparent 3px),
        radial-gradient(circle at 82% 24%, rgba(220, 162, 62, .85) 0 4px, transparent 5px);
    background-size: 150px 150px, 230px 230px, 360px 360px, 100% 100%, 100% 100%;
    background-position: 0 0, 54px 34px, 92px 140px, 0 0, 0 0;
    animation: mistrz-star-drift 120s linear infinite;
}
.mistrz-hero-constellation {
    z-index: 4;
    top: clamp(56px, 7vh, 104px);
    left: 60%;
    width: min(54vw, 760px);
    min-width: 360px;
    transform: translateX(-50%) rotate(-4deg);
    opacity: .74;
    filter: drop-shadow(0 0 16px rgba(150, 200, 255, .28));
    animation: mistrz-constellation-glow 9s ease-in-out infinite;
}
.mistrz-hero-planet,
.mistrz-hero-star {
    z-index: 8;
    filter: drop-shadow(0 12px 16px rgba(0, 0, 0, .22));
}
.mistrz-hero-planet::before,
.mistrz-hero-planet::after {
    content: "";
    position: absolute;
    display: block;
}
.mistrz-hero-planet--blue {
    left: 12%;
    bottom: 13%;
    width: clamp(52px, 7vw, 116px);
    aspect-ratio: 1;
    border-radius: 50%;
    background:
        radial-gradient(circle at 26% 24%, rgba(160, 202, 238, .55), transparent 42%),
        linear-gradient(150deg, #2b78b5, #102f65 58%, #061734);
    animation: mistrz-planet-float 18s ease-in-out infinite alternate;
}
.mistrz-hero-planet--blue::before {
    inset: 0;
    border-radius: inherit;
    background-image: var(--mistrz-sky-texture);
    background-size: 280px 280px;
    opacity: .34;
    mix-blend-mode: soft-light;
    filter: saturate(1.35) hue-rotate(8deg) brightness(1.12);
}
.mistrz-hero-planet--gold {
    right: 8%;
    bottom: 12%;
    width: clamp(52px, 6vw, 104px);
    aspect-ratio: 1;
    border-radius: 50%;
    background:
        radial-gradient(circle at 31% 24%, rgba(255, 220, 143, .65), transparent 46%),
        linear-gradient(150deg, #d89b3e, #8b5826);
    animation: mistrz-planet-float 22s ease-in-out infinite alternate-reverse;
}
.mistrz-hero-planet--gold::after {
    inset: 40% -36%;
    border: 5px solid rgba(220, 174, 90, .8);
    border-radius: 50%;
    transform: rotate(-12deg);
}
.mistrz-hero-star {
    width: clamp(22px, 3vw, 44px);
    aspect-ratio: 1;
    background: var(--mistrz-gold);
    clip-path: polygon(50% 0, 62% 34%, 98% 35%, 69% 56%, 80% 91%, 50% 70%, 20% 91%, 31% 56%, 2% 35%, 38% 34%);
    animation: mistrz-star-pulse 5s ease-in-out infinite;
}
.mistrz-hero-star--one { top: 28%; right: 20%; }
.mistrz-hero-star--two { bottom: 22%; left: 32%; animation-delay: -1.8s; }
.mistrz-hero-cloud {
    z-index: 7;
    opacity: .34;
    aspect-ratio: 1.333;
    background:
        linear-gradient(155deg, rgba(116, 163, 221, .86), rgba(9, 29, 65, .7)),
        var(--mistrz-sky-texture);
    background-position: center;
    background-size: cover;
    filter: saturate(1.35) hue-rotate(8deg) brightness(1.12) drop-shadow(0 28px 44px rgba(0, 0, 0, .26));
    mix-blend-mode: screen;
    mask-image: var(--mistrz-cloud-mask);
    mask-position: center;
    mask-repeat: no-repeat;
    mask-size: contain;
    -webkit-mask-image: var(--mistrz-cloud-mask);
    -webkit-mask-position: center;
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-size: contain;
    animation: mistrz-cloud-drift 38s ease-in-out infinite alternate;
}
.mistrz-hero-cloud--main {
    right: max(-220px, -12vw);
    bottom: clamp(-28px, -1.2vw, -10px);
    width: clamp(560px, 46vw, 960px);
}
.mistrz-hero-cloud--secondary {
    z-index: 6;
    right: clamp(120px, 14vw, 320px);
    bottom: clamp(-46px, -1.8vw, -16px);
    width: clamp(520px, 42vw, 900px);
    opacity: .24;
    background:
        linear-gradient(150deg, rgba(42, 90, 165, .58), rgba(3, 15, 39, .88)),
        var(--mistrz-sky-texture);
    filter: saturate(1.05) brightness(.78) contrast(1.12) drop-shadow(0 22px 38px rgba(0, 0, 0, .22));
    mix-blend-mode: normal;
    animation-name: mistrz-cloud-drift-mirrored;
    animation-delay: -11s;
}
.mistrz-title-hero-inner {
    position: relative;
    z-index: 14;
    display: grid;
    grid-template-columns: minmax(0, .92fr) minmax(330px, 500px);
    align-items: center;
    gap: clamp(38px, 6vw, 82px);
    min-height: clamp(500px, 60vh, 650px);
}
.mistrz-title-copy {
    max-width: 620px;
    text-shadow: 0 2px 18px rgba(2, 7, 18, .42);
}
.mistrz-title-kicker {
    margin: 0 0 18px;
    color: rgba(247, 223, 184, .76);
    font-size: .78rem;
    font-weight: 650;
    letter-spacing: .18em;
    text-transform: uppercase;
}
.mistrz-title-copy h1 {
    margin: 0 0 22px;
    color: #fff2da;
    font-family: var(--font-serif);
    font-size: clamp(3.2rem, 6vw, 6.2rem);
    line-height: 1;
    font-weight: 700;
    letter-spacing: 0;
}
.mistrz-title-subtitle {
    max-width: 540px;
    margin: 0;
    color: var(--mistrz-ink-muted);
    font-size: clamp(1.08rem, 1.6vw, 1.28rem);
    line-height: 1.72;
}
.mistrz-title-fit {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    max-width: 580px;
    margin: 24px 0 0;
}
.mistrz-title-fit span {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 0 11px;
    border: 1px solid rgba(247, 234, 213, .18);
    border-radius: 999px;
    background: rgba(255, 255, 255, .07);
    color: rgba(255, 248, 236, .88);
    font-size: .82rem;
    font-weight: 650;
}
.mistrz-title-meta {
    display: inline-flex;
    align-items: center;
    max-width: 100%;
    margin: 22px 0 0;
    padding: 8px 13px;
    border: 1px solid rgba(247, 234, 213, .2);
    border-radius: 999px;
    background: rgba(7, 28, 64, .36);
    color: rgba(255, 248, 236, .9);
    font-size: .92rem;
    font-weight: 650;
}
.mistrz-title-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 34px;
}
.mistrz-title-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 22px;
    border-radius: 999px;
    font-weight: 650;
    transition: transform .18s ease, background .18s ease, border-color .18s ease;
}
.mistrz-title-button:hover { transform: translateY(-1px); }
.mistrz-title-button--primary {
    background: var(--mistrz-terracotta);
    color: #fff8ec;
    box-shadow: 0 16px 34px rgba(0, 0, 0, .22);
}
.mistrz-title-button--ghost {
    border: 1px solid var(--mistrz-line);
    color: var(--mistrz-ink);
    background: rgba(255, 255, 255, .04);
}
.mistrz-title-button--ghost:hover { background: rgba(255, 255, 255, .09); }
.mistrz-cover-duet {
    position: relative;
    z-index: 16;
    justify-self: end;
    width: min(500px, 100%);
    height: clamp(480px, 50vw, 620px);
}
.mistrz-cover-duet::before {
    content: "";
    position: absolute;
    inset: 8% 2% 3%;
    z-index: -1;
    border-radius: 36px;
    background:
        radial-gradient(circle at 62% 48%, rgba(237, 187, 101, .28), transparent 54%),
        radial-gradient(circle at 28% 56%, rgba(130, 178, 226, .22), transparent 48%);
    filter: blur(9px);
}
.mistrz-cover-card {
    appearance: none;
    position: absolute;
    width: min(315px, 64%);
    margin: 0;
    padding: clamp(10px, 1.2vw, 15px);
    border: 1px solid rgba(247, 234, 213, .18);
    border-radius: 20px;
    background: rgba(247, 234, 213, .08);
    color: inherit;
    cursor: pointer;
    font: inherit;
    text-align: left;
    box-shadow: 0 30px 70px rgba(0, 0, 0, .34);
    transform-origin: center bottom;
    transition:
        border-color .22s ease,
        box-shadow .28s ease,
        opacity .28s ease,
        transform .38s cubic-bezier(.2, .8, .2, 1);
    will-change: transform, opacity;
}
.mistrz-cover-card--primary {
    right: 2%;
    bottom: 0;
    z-index: 2;
    transform: rotate(1.4deg);
}
.mistrz-cover-card--secondary {
    left: 0;
    top: 5%;
    z-index: 1;
    opacity: .92;
    transform: rotate(-6.8deg) scale(.88);
}
.mistrz-cover-card:hover,
.mistrz-cover-card:focus-visible {
    border-color: rgba(247, 234, 213, .42);
    box-shadow: 0 34px 78px rgba(0, 0, 0, .4);
}
.mistrz-cover-card:focus-visible {
    outline: 3px solid rgba(255, 242, 218, .72);
    outline-offset: 5px;
}
.mistrz-cover-card--secondary:hover,
.mistrz-cover-card--secondary:focus-visible {
    opacity: 1;
    transform: rotate(-5.4deg) scale(.91) translateY(-8px);
}
.mistrz-cover-card img {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    border-radius: 14px;
    box-shadow: 0 16px 32px rgba(0, 0, 0, .26);
}
.mistrz-cover-caption {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 7px;
    margin-top: 10px;
    color: rgba(255, 248, 236, .9);
    font-size: .82rem;
    font-weight: 650;
}
.mistrz-cover-status {
    padding: 3px 8px;
    border: 1px solid rgba(247, 234, 213, .22);
    border-radius: 999px;
    background: rgba(255, 255, 255, .08);
    color: rgba(255, 248, 236, .78);
    font-size: .72rem;
    text-transform: uppercase;
}
.mistrz-hero-waves {
    z-index: 11;
    left: 0;
    right: 0;
    bottom: -1px;
    width: 100%;
    height: clamp(150px, 22vw, 330px);
    opacity: .92;
    filter: drop-shadow(0 -16px 38px rgba(0, 0, 0, .22));
    animation: mistrz-wave-sway 28s ease-in-out infinite alternate;
}
.mistrz-hero-waves-texture {
    z-index: 11;
    left: -3%;
    right: -3%;
    bottom: -1px;
    height: clamp(150px, 22vw, 330px);
    opacity: .42;
    background-image:
        linear-gradient(180deg, transparent, rgba(5, 12, 26, .38)),
        var(--mistrz-sky-texture);
    background-position: center bottom;
    background-size: cover;
    mix-blend-mode: soft-light;
    filter: saturate(1.35) hue-rotate(8deg) brightness(1.12);
    mask-image: linear-gradient(to top, #000 74%, transparent 100%);
    animation: mistrz-wave-sway 28s ease-in-out infinite alternate;
}
@keyframes mistrz-texture-breathe {
    from { transform: translate3d(-1.5%, -1%, 0) scale(1.05); }
    to { transform: translate3d(1.5%, 1%, 0) scale(1.08); }
}
@keyframes mistrz-star-drift {
    from { transform: translate3d(0, 0, 0); }
    to { transform: translate3d(-150px, 80px, 0); }
}
@keyframes mistrz-constellation-glow {
    0%, 100% { opacity: .64; filter: drop-shadow(0 0 10px rgba(150, 200, 255, .18)); }
    50% { opacity: .88; filter: drop-shadow(0 0 24px rgba(150, 200, 255, .38)); }
}
@keyframes mistrz-planet-float {
    from { transform: translate3d(0, 0, 0) rotate(-2deg); }
    to { transform: translate3d(0, -18px, 0) rotate(5deg); }
}
@keyframes mistrz-cloud-drift {
    from { transform: translate3d(10px, 0, 0) rotate(-1deg); }
    to { transform: translate3d(-18px, -12px, 0) rotate(1deg); }
}
@keyframes mistrz-cloud-drift-mirrored {
    from { transform: translate3d(-14px, 0, 0) scaleX(-1) rotate(.8deg); }
    to { transform: translate3d(12px, -10px, 0) scaleX(-1) rotate(-1deg); }
}
@keyframes mistrz-star-pulse {
    0%, 100% { transform: scale(.9) rotate(-5deg); opacity: .72; }
    50% { transform: scale(1.08) rotate(4deg); opacity: 1; }
}
@keyframes mistrz-wave-sway {
    from { transform: translate3d(-18px, 0, 0) scaleX(1.025); }
    to { transform: translate3d(18px, 0, 0) scaleX(1.025); }
}
@media (max-width: 980px) {
    .mistrz-title-hero {
        min-height: 0;
        padding: 82px 0 176px;
    }
    .mistrz-title-hero-inner {
        grid-template-columns: 1fr;
        min-height: 0;
        gap: 42px;
    }
    .mistrz-title-copy {
        max-width: 700px;
    }
    .mistrz-title-copy h1 {
        font-size: clamp(2.8rem, 10vw, 4.5rem);
    }
    .mistrz-cover-duet {
        justify-self: center;
        width: min(440px, 88vw);
        height: clamp(410px, 86vw, 540px);
    }
    .mistrz-cover-card {
        width: min(285px, 64%);
    }
    .mistrz-hero-constellation {
        top: 74px;
        left: 72%;
        width: 560px;
        opacity: .42;
    }
    .mistrz-hero-cloud--main {
        right: -260px;
        bottom: -28px;
        width: 560px;
        opacity: .24;
    }
    .mistrz-hero-cloud--secondary {
        right: 18px;
        bottom: -44px;
        width: 520px;
        opacity: .18;
    }
}
@media (max-width: 560px) {
    .mistrz-title-hero {
        padding: 68px 0 156px;
    }
    .mistrz-title-copy h1 {
        font-size: clamp(2.5rem, 14vw, 3.4rem);
    }
    .mistrz-title-actions {
        flex-direction: column;
        align-items: stretch;
    }
    .mistrz-title-button {
        width: 100%;
    }
    .mistrz-cover-duet {
        width: min(360px, 88vw);
        height: 430px;
    }
    .mistrz-cover-card {
        width: min(245px, 66%);
        padding: 9px;
    }
    .mistrz-cover-card--secondary {
        left: 0;
        top: 8%;
        transform: rotate(-6deg) scale(.84);
    }
    .mistrz-cover-card--primary {
        right: 0;
    }
    .mistrz-cover-card--secondary .mistrz-cover-caption {
        opacity: 0;
    }
    .mistrz-hero-planet--blue { left: 8%; bottom: 12%; }
    .mistrz-hero-planet--gold { right: 0; bottom: 15%; }
    .mistrz-hero-star--one { right: 18%; top: 42%; }
    .mistrz-hero-star--two { left: 18%; bottom: 30%; }
    .mistrz-hero-waves { height: 176px; }
    .mistrz-hero-waves-texture { height: 176px; }
}
@media (prefers-reduced-motion: reduce) {
    .mistrz-title-hero *,
    .mistrz-title-hero *::before,
    .mistrz-title-hero *::after {
        animation-duration: 1ms !important;
        animation-iteration-count: 1 !important;
    }
}
