/* ── Return — standalone page ── */

body {
    height: auto;
    min-height: 100vh;
    background: rgb(20, 14, 10);
}

/* ── Hero / Parallax section ── */

.return-hero {
    position: relative;
    height: 100vh;
    min-height: 500px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.return-parallax-bg {
    position: absolute;
    top: -80px;
    left: 0;
    width: 100%;
    height: calc(100% + 160px);
    background-image: url('/public/return/return_bg.jpg');
    background-size: cover;
    background-position: center top;
    will-change: transform;
    z-index: 0;
}

/*
 * Gradient only darkens the very bottom of the hero so it never creates
 * a visible dark band above the bridge — the bridge itself handles the
 * transition into the content section below.
 */
.return-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(20, 14, 10, 0.45) 0%,
        rgba(20, 14, 10, 0.00) 18%,
        rgba(20, 14, 10, 0.00) 88%,
        rgba(20, 14, 10, 0.90) 97%,
        rgba(20, 14, 10, 1.00) 100%
    );
    z-index: 1;
    pointer-events: none;
}

/* ── Hero content (logo + buttons) ── */

.return-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
    /* push content up slightly so it sits above the bridge area */
    margin-bottom: 8vh;
}

/* Logo — scales by both viewport width and height so it never overwhelms small screens */
.return-logo {
    width: clamp(200px, min(46vw, 52vh), 660px);
    height: auto;
    will-change: transform;
}

.return-hero-buttons {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
}

.return-btn-primary {
    font-family: "Capriola", serif;
    font-size: 16px;
    color: #f6ffa8;
    background-image: linear-gradient(90deg, rgba(128,150,48,1) 0%, rgba(147,176,40,1) 50%, rgba(128,150,48,1) 100%);
    border: solid 1px rgba(200,224,112,0.5);
    padding: 12px 32px;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.return-btn-primary:hover {
    opacity: 0.82;
}

.return-btn-secondary {
    font-family: "Capriola", serif;
    font-size: 16px;
    color: #ffe9c4;
    background-image: linear-gradient(90deg, rgba(153,95,41,1) 0%, rgba(219,124,35,1) 50%, rgba(153,95,41,1) 100%);
    border: solid 1px rgba(245,183,125,0.5);
    padding: 12px 32px;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.return-btn-secondary:hover {
    opacity: 0.82;
}

/* ── Scroll hint arrow ── */

.return-scroll-hint {
    position: absolute;
    bottom: 130px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 4;
    color: rgba(255, 230, 160, 0.7);
    animation: rp-arrow-bounce 2s ease-in-out infinite;
    pointer-events: none;
}

.return-scroll-hint svg {
    width: 38px;
    height: 38px;
    display: block;
    filter: drop-shadow(0 2px 6px rgba(0,0,0,0.5));
}

@keyframes rp-arrow-bounce {
    0%, 100% { transform: translateX(-50%) translateY(0);   opacity: 0.7; }
    50%       { transform: translateX(-50%) translateY(8px); opacity: 1;   }
}

/* ── Bridge divider ── */

.return-bridge {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 3;
    pointer-events: none;
    line-height: 0;
}

.return-bridge-img {
    width: 100%;
    display: block;
}

/* ── Content below the bridge ── */

.return-content {
    position: relative;
    z-index: 2;
    background: rgb(20, 14, 10);
    padding: 60px 0 80px 0;
    color: var(--font-color, #acbfca);
}

/* Golden gradient for all .title-text inside the return page */
.return-content .title-text,
.return-card .title-text {
    background: -webkit-linear-gradient(#ffe07a 20%, #d46000 120%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Warm gold divider lines inside the return page */
.return-content .gradient-line,
.return-card .gradient-line {
    background: linear-gradient(to right, transparent, #c8852a, transparent);
}

/* ── Shared gradient-line override (warm gold) ── */
.rp-gradient-line {
    background: linear-gradient(to right, transparent, #c8852a, transparent);
    max-width: 420px;
}

/* ── ① Intro block ── */

.rp-intro {
    text-align: center;
    padding: 70px 24px 60px;
    max-width: 760px;
    margin: 0 auto;
}

.rp-eyebrow {
    font-family: "Capriola", serif;
    font-size: 0.85rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #c8852a;
    margin-bottom: 10px;
}

.rp-eyebrow--light {
    color: #e8b060;
}

.rp-intro-heading {
    font-size: clamp(1.8rem, 4vw, 3rem);
    margin-bottom: 6px;
}

.rp-intro-body {
    font-size: 1rem;
    line-height: 1.8;
    color: #b09070;
    margin-top: 18px;
}

/* ── Left-aligned banner variant (HARD section) ── */

.rp-banner--left .rp-event-overlay {
    align-items: flex-start;
    text-align: left;
    background: linear-gradient(
        to right,
        rgba(20, 14, 10, 0.92) 0%,
        rgba(20, 14, 10, 0.65) 45%,
        rgba(20, 14, 10, 0.00) 100%
    );
    padding-left: clamp(28px, 8vw, 120px);
    padding-right: 40%;
}

.rp-banner--left .rp-gradient-line {
    margin-left: 0;
    margin-right: 0;
}

/* ── Right-aligned banner variant (ANKIETY section) ── */

.rp-banner--right .rp-event-overlay {
    align-items: flex-end;
    text-align: right;
    background: linear-gradient(
        to left,
        rgba(20, 14, 10, 0.92) 0%,
        rgba(20, 14, 10, 0.65) 45%,
        rgba(20, 14, 10, 0.00) 100%
    );
    padding-right: clamp(28px, 8vw, 120px);
    padding-left: 40%;
}

.rp-banner--right .rp-gradient-line {
    margin-left: auto;
    margin-right: 0;
}

/* ── Split image (TŁUM section) ── */

.rp-event-img-split {
    display: flex;
    width: 100%;
    height: 100%;
    line-height: 0;
}

.rp-event-img-half {
    width: 50%;
    display: block;
    object-fit: cover;
    max-height: 520px;
    filter: brightness(0.55);
    transition: filter 0.4s ease;
}

.rp-event-banner:hover .rp-event-img-half {
    filter: brightness(0.65);
}

/* ── 14-months stat pill ── */

.rp-stat-pill {
    display: inline-flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 6px 10px;
    margin-top: 28px;
    padding: 14px 22px;
    border: 1px solid rgba(200, 133, 42, 0.4);
    border-radius: 6px;
    background: rgba(200, 133, 42, 0.07);
}

.rp-stat-value {
    font-family: "Capriola", serif;
    font-size: 2.8rem;
    line-height: 1;
    background: -webkit-linear-gradient(#ffe07a 20%, #d46000 120%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.rp-stat-unit {
    font-family: "Capriola", serif;
    font-size: 1.1rem;
    color: #e8a840;
}

.rp-stat-desc {
    width: 100%;
    font-size: 0.82rem;
    color: #907050;
    line-height: 1.4;
}

/* ── Version pills row ── */

.rp-version-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 28px;
}

.rp-version-pills .rp-stat-pill {
    margin-top: 0;
}

/* ── ④ Full-width event banner ── */

.rp-event-banner {
    position: relative;
    overflow: hidden;
    margin-top: 6px;
    line-height: 0;
}

.rp-event-img {
    width: 100%;
    display: block;
    object-fit: cover;
    max-height: 520px;
    filter: brightness(0.55);
    transition: filter 0.4s ease;
}

.rp-event-banner:hover .rp-event-img {
    filter: brightness(0.65);
}

.rp-event-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 24px;
    text-align: center;
    background: linear-gradient(
        to bottom,
        rgba(20, 14, 10, 0.55) 0%,
        rgba(20, 14, 10, 0.15) 40%,
        rgba(20, 14, 10, 0.15) 60%,
        rgba(20, 14, 10, 0.75) 100%
    );
    line-height: normal;
}

.rp-event-heading {
    font-size: clamp(1.8rem, 4.5vw, 3.2rem);
    line-height: 1.15;
    margin-bottom: 8px;
}

.rp-event-body {
    max-width: 620px;
    font-size: 1rem;
    line-height: 1.75;
    color: #d0a878;
    margin-top: 16px;
    margin-bottom: 0;
}

/* ── World showcase marquee ── */

.rp-world-section {
    padding: 48px 0 56px;
    overflow: hidden;
}

.rp-world-label {
    font-family: "Capriola", serif;
    font-size: 0.82rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #c8852a;
    text-align: center;
    margin-bottom: 22px;
}

.rp-world-marquee {
    overflow: hidden;
    width: 100%;
    /* fade edges */
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
    mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
}

.rp-world-track {
    display: flex;
    gap: 10px;
    width: max-content;
    animation: rp-world-scroll 45s linear infinite;
}

.rp-world-marquee:hover .rp-world-track {
    animation-play-state: paused;
}

.rp-world-img {
    height: 240px;
    width: auto;
    display: block;
    object-fit: cover;
    border-radius: 4px;
    filter: brightness(0.75) saturate(0.9);
    transition: filter 0.35s ease, transform 0.35s ease;
    flex-shrink: 0;
    cursor: default;
}

.rp-world-img:hover {
    filter: brightness(1) saturate(1.1);
    transform: scale(1.03);
}

@keyframes rp-world-scroll {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

/* ── Guild slider section ── */

.rp-guild-section {
    margin-top: 6px;
}

.rp-guild-slider {
    position: relative;
    overflow: hidden;
    line-height: 0;
}

.rp-guild-slides {
    position: relative;
    width: 100%;
    height: clamp(320px, 50vw, 560px);
}

.rp-guild-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    opacity: 0;
    transition: opacity 0.9s ease;
    display: block;
}

.rp-guild-slide.active {
    opacity: 1;
}

.rp-guild-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    text-align: right;
    padding: 48px clamp(28px, 8vw, 120px);
    padding-left: 40%;
    background: linear-gradient(
        to left,
        rgba(20, 14, 10, 0.92) 0%,
        rgba(20, 14, 10, 0.65) 45%,
        rgba(20, 14, 10, 0.00) 100%
    );
    line-height: normal;
}

.rp-guild-overlay .rp-gradient-line {
    margin-left: auto;
    margin-right: 0;
}

.rp-discord-link {
    margin-top: 24px;
}

.rp-discord-btn {
    font-family: "Capriola", serif;
    font-size: 15px;
    color: #e8e0ff;
    background-image: linear-gradient(90deg, rgba(60,50,130,1) 0%, rgba(88,75,180,1) 50%, rgba(60,50,130,1) 100%);
    border: solid 1px rgba(150,130,255,0.45);
    padding: 12px 28px;
    cursor: pointer;
    transition: opacity 0.2s ease;
    white-space: nowrap;
}

.rp-discord-btn:hover {
    opacity: 0.82;
}

.rp-guild-dots {
    position: absolute;
    bottom: 16px;
    right: clamp(28px, 8vw, 120px);
    display: flex;
    gap: 8px;
    z-index: 4;
    line-height: normal;
}

.rp-guild-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.35);
    cursor: pointer;
    transition: background 0.3s;
}

.rp-guild-dot.active {
    background: #c8852a;
}

@media (max-width: 768px) {
    .rp-guild-overlay {
        align-items: center;
        text-align: center;
        padding: 28px 20px;
        padding-left: 20px;
        background: linear-gradient(
            to bottom,
            rgba(20, 14, 10, 0.75) 0%,
            rgba(20, 14, 10, 0.20) 40%,
            rgba(20, 14, 10, 0.80) 100%
        );
    }

    .rp-guild-overlay .rp-gradient-line {
        margin-left: auto;
        margin-right: auto;
    }

    .rp-guild-dots {
        right: 50%;
        transform: translateX(50%);
    }
}

/* ── CTA wrapper with fading map background ── */

.rp-cta-wrapper {
    position: relative;
    overflow: hidden;
    margin-top: 6px;
}

.rp-cta-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.rp-cta-bg-img {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    animation: rp-cta-fade 25s linear infinite;
}

@keyframes rp-cta-fade {
    0%   { opacity: 0; }
    6%   { opacity: 1; }
    20%  { opacity: 1; }
    26%  { opacity: 0; }
    100% { opacity: 0; }
}

.rp-cta-overlay-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(20, 14, 10, 0.82) 0%,
        rgba(20, 14, 10, 0.72) 50%,
        rgba(20, 14, 10, 0.88) 100%
    );
    z-index: 1;
}

/* ── CTA bottom section ── */

.rp-cta-section {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: stretch;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0;
    margin: 0 auto;
    max-width: 1100px;
    padding: 60px 24px 80px;
}

.rp-cta-card {
    flex: 1 1 340px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 48px 40px;
    border: 1px solid rgba(180, 110, 40, 0.22);
    border-radius: 8px;
    background: rgba(20, 12, 7, 0.75);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.rp-cta-returning {
    border-color: rgba(200, 133, 42, 0.38);
}

.rp-cta-new {
    border-color: rgba(180, 100, 30, 0.28);
}

.rp-cta-divider {
    width: 1px;
    align-self: stretch;
    background: linear-gradient(to bottom, transparent, rgba(200, 133, 42, 0.3), transparent);
    margin: 0 -1px;
    flex-shrink: 0;
}

.rp-cta-heading {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    line-height: 1.15;
    margin-bottom: 0;
}

.rp-cta-body {
    font-size: 0.95rem;
    line-height: 1.8;
    color: #a07850;
    margin: 18px 0 28px;
    flex-grow: 1;
}

.rp-cta-body strong {
    color: #d4a060;
}

.rp-cta-card > a {
    margin-top: auto;
}

.rp-cta-btn {
    white-space: nowrap;
}

.rp-cta-code {
    margin-top: 14px;
    margin-bottom: 0;
    font-size: 0.82rem;
    color: #705030;
    letter-spacing: 0.03em;
}

.rp-cta-code span {
    font-family: "Capriola", serif;
    color: #c8852a;
    letter-spacing: 0.06em;
}

/* ── Wiki banner ── */

.rp-wiki-banner {
    display: block;
    text-decoration: none;
    margin: 0 auto 0;
    background: rgb(26, 17, 11);
    border-top: 1px solid rgba(180, 110, 40, 0.22);
    border-bottom: 1px solid rgba(180, 110, 40, 0.22);
    transition: background 0.25s;
}

.rp-wiki-banner:hover {
    background: rgb(32, 22, 14);
}

.rp-wiki-inner {
    display: flex;
    align-items: center;
    gap: 28px;
    max-width: 900px;
    margin: 0 auto;
    padding: 36px 32px;
}

.rp-wiki-icon {
    font-size: 2.8rem;
    flex-shrink: 0;
    line-height: 1;
}

.rp-wiki-text {
    flex: 1;
}

.rp-wiki-heading {
    font-size: clamp(1.3rem, 2.5vw, 2rem);
    margin-bottom: 6px;
}

.rp-wiki-body {
    font-size: 0.95rem;
    line-height: 1.7;
    color: #a07850;
    margin: 0;
}

.rp-wiki-arrow {
    font-size: 2rem;
    color: #c8852a;
    flex-shrink: 0;
    transition: transform 0.25s;
}

.rp-wiki-banner:hover .rp-wiki-arrow {
    transform: translateX(6px);
}

/* ── Responsive ── */

/* Tablet / small desktop */
@media (max-width: 768px) {
    /* Left/right banners collapse to centred overlay */
    .rp-banner--left .rp-event-overlay,
    .rp-banner--right .rp-event-overlay {
        padding-left: 20px;
        padding-right: 20px;
        background: linear-gradient(
            to bottom,
            rgba(20, 14, 10, 0.75) 0%,
            rgba(20, 14, 10, 0.20) 40%,
            rgba(20, 14, 10, 0.75) 100%
        );
        align-items: center;
        text-align: center;
    }

    .rp-banner--left .rp-gradient-line,
    .rp-banner--right .rp-gradient-line {
        margin-left: auto;
        margin-right: auto;
    }

    /* On mobile: stack image above text instead of overlaying */
    .rp-event-banner {
        display: flex;
        flex-direction: column;
        min-height: unset;
    }

    .rp-event-img {
        position: relative;
        width: 100%;
        height: 220px;
        min-height: unset;
        max-height: unset;
        object-fit: cover;
        flex-shrink: 0;
    }

    .rp-event-img-split {
        height: 180px;
        flex-shrink: 0;
    }

    .rp-event-img-half {
        height: 180px;
        min-height: unset;
        max-height: unset;
    }

    .rp-event-overlay {
        position: relative;
        inset: auto;
        background: rgb(20, 14, 10) !important;
        padding: 28px 20px;
        min-height: unset;
    }

    .rp-event-body {
        font-size: 0.88rem;
        max-width: 100%;
    }

    .rp-event-heading {
        font-size: clamp(1.4rem, 5vw, 2rem);
    }

    /* Version pills stack */
    .rp-version-pills {
        flex-direction: column;
        align-items: flex-start;
    }

    /* Wiki banner goes vertical */
    .rp-wiki-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        padding: 28px 20px;
        text-align: left;
    }

    .rp-wiki-arrow {
        display: none;
    }
}

/* CTA cards stack */
@media (max-width: 720px) {
    .rp-cta-section {
        flex-direction: column;
        align-items: stretch;
        gap: 20px;
        padding: 0 16px 60px;
    }

    .rp-cta-card {
        padding: 36px 24px;
    }

    .rp-cta-divider {
        display: none;
    }
}

/* Bridge — na mobilce stała szerokość + wycentrowanie, hero tnie nadmiar */
@media (max-width: 768px) {
    .return-bridge-img {
        width: 640px;
        max-width: none;
        margin-left: calc(50% - 320px);
    }
}

/* Mobile phones */
@media (max-width: 480px) {
    .return-hero-buttons {
        flex-direction: column;
        align-items: center;
        width: 100%;
    }

    .return-btn-primary,
    .return-btn-secondary {
        width: 240px;
        white-space: normal;
    }

    .rp-intro {
        padding: 48px 16px 40px;
    }

    .rp-stat-value {
        font-size: 2.2rem;
    }

    .rp-stat-pill {
        width: 100%;
    }

    .rp-cta-card {
        padding: 28px 18px;
    }

    .rp-cta-btn {
        white-space: normal;
        width: 100%;
    }
}
