/* =========================================
   HERO / HEADER
========================================= */

.hero {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    isolation: isolate;
        min-height: 470px;
        padding: 120px 16px 60px;
    border-bottom: 2px solid rgba(196, 154, 82, 0.75);
    background:
        linear-gradient(90deg, rgba(4, 7, 14, 0.95), rgba(10, 18, 34, 0.6), rgba(3, 7, 15, 0.95)),
        linear-gradient(to bottom, rgba(35, 22, 8, 0.35), rgba(0, 0, 0, 0.75)),
        url("https://images.unsplash.com/photo-1514539079130-25950c84af65?auto=format&fit=crop&w=1800&q=90") center / cover;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 24px;
    border: 1px solid rgba(130, 210, 255, 0.5);
    box-shadow:
        inset 0 0 35px rgba(80, 180, 255, 0.22),
        0 0 30px rgba(196, 154, 82, 0.25);
    clip-path: polygon(4% 0, 96% 0, 100% 12%, 100% 88%, 96% 100%, 4% 100%, 0 88%, 0 12%);
    z-index: -1;
}

.hero::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 360px;
    height: 360px;
    transform: translate(-50%, -45%);
    border-radius: 50%;
    background: radial-gradient(circle, rgba(96, 190, 255, 0.28), transparent 60%);
    box-shadow: 0 0 90px rgba(80, 180, 255, 0.45);
    z-index: -1;
}

.hero-glass {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 3;
    overflow: hidden;
}

.hero-glass::before {
    content: "";
    position: absolute;
    top: -20%;
    left: -35%;
    width: 38%;
    height: 165%;
    transform: rotate(18deg);
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(120, 210, 255, 0.03) 18%,
        rgba(110, 205, 255, 0.22) 38%,
        rgba(175, 65, 90, 0.18) 58%,
        rgba(205, 28, 38, 0.24) 74%,
        rgba(255, 255, 255, 0.04) 84%,
        rgba(255, 255, 255, 0) 100%
    );
    filter: blur(2px);
    animation: glassSweep 9s ease-in-out infinite;
}

.hero-glass::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        rgba(72, 170, 255, 0.18) 0%,
        rgba(88, 190, 255, 0.10) 18%,
        rgba(130, 70, 120, 0.08) 48%,
        rgba(170, 30, 45, 0.12) 72%,
        rgba(210, 20, 30, 0.20) 100%
    );
    mix-blend-mode: screen;
    opacity: 0.95;
}

.blood-layer {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 4;
    overflow: hidden;
}

.blood-drop {
    position: absolute;
    top: -40px;
    opacity: 0;
    border-radius: 55% 55% 65% 65% / 38% 38% 72% 72%;
    background:
        radial-gradient(circle at 38% 30%, rgba(255, 255, 255, 0.28) 0%, rgba(255, 255, 255, 0.08) 14%, rgba(255, 255, 255, 0) 28%),
        radial-gradient(circle at 50% 38%, rgba(175, 16, 24, 0.98) 0%, rgba(130, 5, 12, 0.98) 56%, rgba(65, 0, 0, 0.98) 100%);
    box-shadow:
        inset -2px -4px 6px rgba(40, 0, 0, 0.35),
        inset 2px 2px 4px rgba(255, 150, 150, 0.08),
        0 2px 8px rgba(90, 0, 0, 0.25);
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.blood-drop.drop-1 {
    left: 10%;
    width: 18px;
    height: 24px;
    animation: dropFall1 7.6s ease-in infinite 0.4s;
}

.blood-drop.drop-2 {
    left: 26%;
    width: 14px;
    height: 19px;
    animation: dropFall2 9.1s ease-in infinite 2.2s;
}

.blood-drop.drop-3 {
    left: 49%;
    width: 22px;
    height: 30px;
    animation: dropFall3 6.8s ease-in infinite 1.1s;
}

.blood-drop.drop-4 {
    left: 71%;
    width: 16px;
    height: 22px;
    animation: dropFall4 10.4s ease-in infinite 4.8s;
}

.blood-drop.drop-5 {
    left: 87%;
    width: 12px;
    height: 17px;
    animation: dropFall5 8.7s ease-in infinite 6.3s;
}

/* .ship {
    position: absolute;
    right: 8%;
    top: 90px;
    font-size: 105px;
    transform: rotate(-18deg);
    opacity: 0.9;
    filter: drop-shadow(0 0 16px #62cfff);
    z-index: 1;
} */

.wolf {
    position: absolute;
    left: 8%;
    bottom: 55px;
    font-size: 115px;
    filter: drop-shadow(0 0 16px #c49a52);
    z-index: 1;
}

.crest {
    position: relative;
    z-index: 4;
    display: grid;
    place-items: center;
    width: 110px;
    height: 130px;
    margin: 0 auto 18px;
    font-size: 54px;
    background: linear-gradient(145deg, rgba(88, 62, 28, 0.8), rgba(8, 18, 32, 0.9));
    border: 2px solid rgba(214, 170, 91, 0.85);
    box-shadow:
        inset 0 0 22px rgba(100, 200, 255, 0.25),
        0 0 25px rgba(214, 170, 91, 0.3);
    clip-path: polygon(50% 0, 94% 18%, 86% 82%, 50% 100%, 14% 82%, 6% 18%);
}

.hero h1 {
    position: relative;
    z-index: 4;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    font-size: clamp(48px, 7vw, 86px);
    letter-spacing: 5px;
    text-transform: uppercase;
    color: #f7efe0;
    text-shadow:
        0 0 12px #4ecbff,
        0 4px 0 #1a0f08,
        0 8px 20px #000;
}

.tagline {
    position: relative;
    z-index: 4;
    max-width: 640px;
    margin: 16px auto 0;
    padding: 10px 22px;
    text-align: center;
    font-size: 21px;
    letter-spacing: 2px;
    color: #d9ecff;
    background: linear-gradient(90deg, transparent, rgba(9, 24, 42, 0.78), transparent);
    border-top: 1px solid rgba(214, 170, 91, 0.7);
    border-bottom: 1px solid rgba(95, 200, 255, 0.65);
}

/* =========================================
   HERO / HEADER - TOP 10 RANKING
========================================= */

.hero-wrap-with-top10 {
    position: relative;
    z-index: 4;
    display: block;
    width: 100%;
    max-width: 1500px;
    margin: 0 auto;
}

.hero-main {
    position: relative;
    z-index: 5;
    display: grid;
    place-items: center;
    max-width: 760px;
    min-width: 0;
    margin: 0 auto;
    text-align: center;
}

.hero-top10-box {
    position: absolute;
    top: 0;
    left: 24px;
    z-index: 6;
    width: 380px;
    max-width: calc(100vw - 48px);
    padding: 16px;
    border: 1px solid #78ceff63;
    background:
        linear-gradient(180deg, #080e1838, #060a1229),
        linear-gradient(135deg, #d6aa5b0f, #5fc8ff0a);
    backdrop-filter: blur(8px);
    clip-path: polygon(
        18px 0,
        calc(100% - 18px) 0,
        100% 18px,
        100% calc(100% - 18px),
        calc(100% - 18px) 100%,
        18px 100%,
        0 calc(100% - 18px),
        0 18px
    );
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.03) inset,
        0 0 0 2px rgba(25, 40, 60, 0.55),
        0 16px 30px rgba(0, 0, 0, 0.28),
        inset 0 1px 0 rgba(170, 220, 255, 0.08),
        inset 0 -1px 0 rgba(214, 170, 91, 0.08),
        0 0 18px rgba(74, 194, 255, 0.08);
}

.hero-top10-header {
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid #8fd3ff29;
}

.hero-top10-kicker {
    margin-bottom: 6px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #d7b16c;
    font-family: "Roboto Mono", monospace;
}

.hero-top10-title {
    margin: 0;
    font-size: 22px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #f7efe0;
    font-family: "Roboto Mono", monospace;
    text-shadow: 0 0 10px rgba(78, 203, 255, 0.14);
}

.hero-top10-list {
    display: grid;
    gap: 8px;
}

.hero-top10-item {
    display: grid;
    grid-template-columns: 50px 52px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    padding: 9px 11px;
    border: 1px solid rgba(120, 205, 255, 0.16);
    background: linear-gradient(180deg, #121c2c3a, #080e1825);
    clip-path: polygon(
        10px 0,
        100% 0,
        100% calc(100% - 10px),
        calc(100% - 10px) 100%,
        0 100%,
        0 10px
    );
    box-shadow:
        inset 0 1px 0 rgba(180, 230, 255, 0.04),
        inset 0 -1px 0 rgba(214, 170, 91, 0.04),
        0 0 10px rgba(74, 194, 255, 0.05);
}

.hero-top10-rank {
    font-size: 14px;
    font-weight: 800;
    color: #ffe9a8;
    font-family: "Roboto Mono", monospace;
    text-align: center;
}

.hero-top10-avatar {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    overflow: hidden;
    border: 1px solid rgba(143, 211, 255, 0.25);
    background:
        linear-gradient(135deg, rgba(95, 200, 255, 0.32), rgba(214, 170, 91, 0.22)),
        linear-gradient(180deg, rgba(20, 28, 42, 0.96), rgba(9, 14, 24, 0.96));
    box-shadow: 0 0 12px rgba(74, 194, 255, 0.12);
    color: #f7efe0;
    font-size: 18px;
    font-weight: 800;
    text-transform: uppercase;
}

.hero-top10-avatar img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-top10-user {
    min-width: 0;
    display: grid;
    gap: 4px;
}

.hero-top10-login {
    font-size: 14px;
    font-weight: 800;
    color: #f7efe0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-shadow: none;
}

.hero-top10-score {
    font-size: 13px;
    color: #9fdcff;
    font-family: "Roboto Mono", monospace;
    text-shadow: none;
}

.hero-top10-empty {
    font-size: 14px;
    line-height: 1.6;
    color: #d8e9f8;
    text-shadow: none;
}

/* =========================================
   ANIMACJE HEADERA
========================================= */

@keyframes glassSweep {
    0%, 12% {
        left: -38%;
        opacity: 0;
    }
    18% {
        opacity: 0.95;
    }
    34% {
        left: 115%;
        opacity: 0.55;
    }
    40%, 100% {
        left: 120%;
        opacity: 0;
    }
}

@keyframes dropFall1 {
    0%, 10% {
        opacity: 0;
        transform: translateY(-24px) scale(0.65);
    }
    16% {
        opacity: 0.95;
        transform: translateY(0) scale(1);
    }
    34% {
        opacity: 0.98;
        transform: translateY(150px) scale(0.96, 1.08);
    }
    40%, 100% {
        opacity: 0;
        transform: translateY(230px) scale(0.82, 1.18);
    }
}

@keyframes dropFall2 {
    0%, 16% {
        opacity: 0;
        transform: translateY(-22px) scale(0.65);
    }
    21% {
        opacity: 0.9;
        transform: translateY(0) scale(1);
    }
    37% {
        opacity: 0.95;
        transform: translateY(118px) scale(0.95, 1.06);
    }
    43%, 100% {
        opacity: 0;
        transform: translateY(182px) scale(0.82, 1.14);
    }
}

@keyframes dropFall3 {
    0%, 8% {
        opacity: 0;
        transform: translateY(-26px) scale(0.65);
    }
    14% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
    31% {
        opacity: 1;
        transform: translateY(176px) scale(0.96, 1.08);
    }
    37%, 100% {
        opacity: 0;
        transform: translateY(260px) scale(0.84, 1.18);
    }
}

@keyframes dropFall4 {
    0%, 18% {
        opacity: 0;
        transform: translateY(-24px) scale(0.65);
    }
    24% {
        opacity: 0.94;
        transform: translateY(0) scale(1);
    }
    42% {
        opacity: 0.96;
        transform: translateY(140px) scale(0.95, 1.08);
    }
    48%, 100% {
        opacity: 0;
        transform: translateY(212px) scale(0.82, 1.16);
    }
}

@keyframes dropFall5 {
    0%, 14% {
        opacity: 0;
        transform: translateY(-20px) scale(0.65);
    }
    20% {
        opacity: 0.88;
        transform: translateY(0) scale(1);
    }
    36% {
        opacity: 0.92;
        transform: translateY(102px) scale(0.95, 1.06);
    }
    42%, 100% {
        opacity: 0;
        transform: translateY(165px) scale(0.82, 1.12);
    }
}

/* =========================================
   RESPONSYWNOŚĆ HEADER <= 900PX
========================================= */

@media (max-width: 900px) {
    .hero {
        min-height: 470px;
        padding: 120px 16px 60px;
        align-items: center;
        background-attachment: scroll;
    }

    .hero::before {
        inset: 13px;
        opacity: 0.55;
    }

    .hero::after {
        width: 250px;
        height: 250px;
    }

    .hero-wrap-with-top10 {
        width: 100%;
    }

    .hero-main {
        max-width: 620px;
        padding-top: 40px;
    }

    .crest {
        width: 82px;
        height: 96px;
        font-size: 38px;
        margin-bottom: 14px;
    }

    .hero h1 {
        font-size: clamp(36px, 12vw, 58px);
        letter-spacing: 2px;
        line-height: 1.05;
    }

    .tagline {
        padding: 9px 14px;
        font-size: 16px;
        letter-spacing: 1px;
    }

    .ship {
        right: 4%;
        top: 74px;
        font-size: 58px;
        opacity: 0.42;
    }

    .wolf {
        left: 4%;
        bottom: 36px;
        font-size: 70px;
        opacity: 0.42;
    }

    .hero-top10-box {
        position: absolute;
        top: 0;
        left: 12px;
        width: 260px;
        max-width: calc(100vw - 24px);
        padding: 10px;
        clip-path: polygon(
            10px 0,
            calc(100% - 10px) 0,
            100% 10px,
            100% calc(100% - 10px),
            calc(100% - 10px) 100%,
            10px 100%,
            0 calc(100% - 10px),
            0 10px
        );
        box-shadow:
            0 0 0 1px rgba(255, 255, 255, 0.03) inset,
            0 8px 18px rgba(0, 0, 0, 0.22),
            inset 0 1px 0 rgba(170, 220, 255, 0.06),
            inset 0 -1px 0 rgba(214, 170, 91, 0.06),
            0 0 12px rgba(74, 194, 255, 0.06);
    }

    .hero-top10-header {
        margin-bottom: 8px;
        padding-bottom: 8px;
    }

    .hero-top10-kicker {
        margin-bottom: 4px;
        font-size: 9px;
        letter-spacing: 1px;
    }

    .hero-top10-title {
        font-size: 15px;
        letter-spacing: 0.7px;
    }

    .hero-top10-list {
        gap: 6px;
    }

    .hero-top10-item {
        grid-template-columns: 32px 34px minmax(0, 1fr);
        gap: 8px;
        padding: 7px 8px;
        clip-path: polygon(
            7px 0,
            100% 0,
            100% calc(100% - 7px),
            calc(100% - 7px) 100%,
            0 100%,
            0 7px
        );
    }

    .hero-top10-rank {
        font-size: 10px;
    }

    .hero-top10-avatar {
        width: 34px;
        height: 34px;
        font-size: 12px;
    }

    .hero-top10-login {
        font-size: 11px;
    }

    .hero-top10-score {
        font-size: 10px;
    }
}

/* =========================================
   RESPONSYWNOŚĆ HEADER <= 520PX
========================================= */

@media (max-width: 520px) {
    .hero {
        min-height: 430px;
        padding: 115px 14px 50px;
    }

    .hero-main {
        padding-top: 70px;
    }

    .hero-top10-box {
        left: 10px;
        width: 220px;
        padding: 8px;
    }

    .hero-top10-title {
        font-size: 13px;
    }

    .hero-top10-kicker {
        font-size: 8px;
    }

    .hero-top10-item {
        grid-template-columns: 26px 30px minmax(0, 1fr);
        gap: 6px;
        padding: 6px 7px;
    }

    .hero-top10-rank {
        font-size: 9px;
    }

    .hero-top10-avatar {
        width: 30px;
        height: 30px;
        font-size: 11px;
    }

    .hero-top10-login {
        font-size: 10px;
    }

    .hero-top10-score {
        font-size: 9px;
    }
}

/* =========================================
   RESPONSYWNOŚĆ HEADER <= 420PX
========================================= */

@media (max-width: 420px) {
    .hero {
        min-height: 410px;
    }

    .hero-main {
        padding-top: 80px;
    }

    .ship,
    .wolf {
        display: none;
    }

    .hero-top10-box {
        left: 8px;
        width: 200px;
        padding: 7px;
    }

    .hero-top10-header {
        margin-bottom: 6px;
        padding-bottom: 6px;
    }

    .hero-top10-title {
        font-size: 12px;
    }

    .hero-top10-item {
        grid-template-columns: 24px 28px minmax(0, 1fr);
        padding: 5px 6px;
    }

    .hero-top10-avatar {
        width: 28px;
        height: 28px;
    }
}