@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@500;600;700;800&family=Lora:wght@400;500&display=swap');



.title-page,
.title-page * {
    box-sizing: border-box;
}

.title-page {
    margin: 0;
    width: 100%;
    height: 100%;
    min-height: 100vh;
    overflow: hidden;

    font-family: "Lora", Georgia, serif;
    background: #07130d;
    color: white;
}



.title-screen {
    position: relative;

    width: 100%;
    height: 100vh;
    min-height: 520px;

    display: flex;
    justify-content: center;
    align-items: center;

    overflow: hidden;

    isolation: isolate;

    background-image:
        linear-gradient(
            90deg,
            rgba(0, 0, 0, 0.42),
            rgba(0, 0, 0, 0.12),
            rgba(0, 0, 0, 0.34)
        ),
        linear-gradient(
            180deg,
            rgba(0, 0, 0, 0.10),
            rgba(0, 0, 0, 0.18),
            rgba(0, 0, 0, 0.55)
        ),
        url("images/intro-bg.png");

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}




.atmosphere {
    position: absolute;
    inset: 0;

    pointer-events: none;

    background:
        radial-gradient(
            circle at center,
            transparent 25%,
            rgba(0, 0, 0, 0.08) 50%,
            rgba(0, 0, 0, 0.65) 100%
        );

    z-index: -1;
}



.title-content {
    position: relative;
    z-index: 5;

    width: min(900px, 88vw);

    display: flex;
    flex-direction: column;
    align-items: center;

    text-align: center;

    transform: translateY(-2vh);

    animation: titleReveal 1.1s ease-out both;
}



.title-ornament {
    width: min(460px, 68vw);

    display: flex;
    align-items: center;
    justify-content: center;

    gap: 18px;

    margin-bottom: 10px;
}

.title-ornament span {
    flex: 1;

    height: 1px;

    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(255, 220, 130, 0.95),
            transparent
        );

    box-shadow:
        0 0 8px rgba(255, 215, 110, 0.55);
}

.title-ornament i {
    font-style: normal;

    font-family: "Cinzel", serif;

    font-size: 18px;

    color: #ffe6a1;

    text-shadow:
        0 0 10px rgba(255, 225, 130, 0.9);

    animation: sparkle 2.4s ease-in-out infinite;
}


.title-content h1 {
    margin: 0;

    font-family: "Cinzel", Georgia, serif;

    font-weight: 700;

    line-height: 0.95;

    letter-spacing: 0.055em;

    text-transform: uppercase;

    color: #ffe7ab;

    text-shadow:
        0 2px 0 rgba(80, 38, 5, 0.95),
        0 5px 20px rgba(0, 0, 0, 0.8),
        0 0 25px rgba(255, 208, 100, 0.35);
}


/* THE */

.title-content h1 span {
    display: block;

    margin-bottom: 6px;

    font-size: clamp(17px, 2.2vw, 31px);

    letter-spacing: 0.34em;
}


/* CURSED FOREST */

.title-content h1 {
    font-size: clamp(43px, 7vw, 100px);
}



.title-divider {
    width: min(650px, 72vw);

    display: flex;
    align-items: center;
    justify-content: center;

    gap: 12px;

    margin-top: 22px;
    margin-bottom: 42px;
}

.title-divider span {
    flex: 1;

    height: 1px;

    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(255, 225, 150, 0.95)
        );

    box-shadow:
        0 0 8px rgba(255, 212, 110, 0.45);
}

.title-divider span:last-child {
    background:
        linear-gradient(
            90deg,
            rgba(255, 225, 150, 0.95),
            transparent
        );
}

.title-divider b {
    font-size: 10px;

    color: #fff0bd;

    text-shadow:
        0 0 12px rgba(255, 220, 120, 1);
}



.start-button {
    position: relative;

    min-width: min(390px, 80vw);
    min-height: 76px;

    padding: 0 38px;

    display: flex;
    align-items: center;
    justify-content: center;

    gap: 18px;

    border: 2px solid rgba(255, 225, 135, 0.95);

    border-radius: 18px;

    background:
        linear-gradient(
            180deg,
            rgba(26, 92, 52, 0.96),
            rgba(7, 37, 23, 0.98)
        );

    color: #fff4cd;

    text-decoration: none;

    font-family: "Cinzel", Georgia, serif;

    font-size: clamp(15px, 1.6vw, 21px);

    font-weight: 700;

    letter-spacing: 0.08em;

    cursor: pointer;

    overflow: hidden;

    box-shadow:
        0 0 0 1px rgba(116, 78, 20, 0.65) inset,
        0 0 22px rgba(255, 213, 97, 0.35),
        0 14px 34px rgba(0, 0, 0, 0.42);

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        border-color 0.25s ease;

    animation: buttonPulse 2.8s ease-in-out infinite;
}


/* Inner border */

.start-button::before {
    content: "";

    position: absolute;
    inset: 4px;

    border: 1px solid rgba(201, 255, 208, 0.18);

    border-radius: 12px;

    pointer-events: none;
}


/* Shimmer */

.start-button::after {
    content: "";

    position: absolute;

    top: -40%;
    bottom: -40%;

    left: -45%;

    width: 22%;

    transform: skewX(-22deg);

    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(255, 246, 201, 0.62),
            transparent
        );

    animation: buttonShimmer 3.8s ease-in-out infinite;

    pointer-events: none;
}


.start-button:hover {
    transform: translateY(-4px) scale(1.025);

    border-color: #fff2be;

    box-shadow:
        0 0 0 1px rgba(180, 255, 195, 0.25) inset,
        0 0 36px rgba(255, 220, 110, 0.72),
        0 18px 42px rgba(0, 0, 0, 0.5);
}


.start-button:active {
    transform: translateY(0) scale(0.99);
}


/* Play icon */

.start-icon {
    position: relative;
    z-index: 2;

    font-size: 20px;

    color: #fff0b4;

    text-shadow:
        0 0 12px rgba(255, 230, 135, 1);
}



.corner {
    position: absolute;

    width: 80px;
    height: 80px;

    opacity: 0.45;

    pointer-events: none;
}

.corner::before,
.corner::after {
    content: "";

    position: absolute;

    background: rgba(255, 218, 130, 0.65);

    box-shadow:
        0 0 8px rgba(255, 218, 130, 0.25);
}


.corner::before {
    width: 58px;
    height: 1px;
}

.corner::after {
    width: 1px;
    height: 58px;
}


/* top left */

.corner-top-left {
    top: 28px;
    left: 28px;
}

.corner-top-left::before {
    top: 0;
    left: 0;
}

.corner-top-left::after {
    top: 0;
    left: 0;
}


/* top right */

.corner-top-right {
    top: 28px;
    right: 28px;
}

.corner-top-right::before {
    top: 0;
    right: 0;
}

.corner-top-right::after {
    top: 0;
    right: 0;
}


/* bottom left */

.corner-bottom-left {
    bottom: 28px;
    left: 28px;
}

.corner-bottom-left::before {
    bottom: 0;
    left: 0;
}

.corner-bottom-left::after {
    bottom: 0;
    left: 0;
}


/* bottom right */

.corner-bottom-right {
    bottom: 28px;
    right: 28px;
}

.corner-bottom-right::before {
    bottom: 0;
    right: 0;
}

.corner-bottom-right::after {
    bottom: 0;
    right: 0;
}



.particles {
    position: absolute;
    inset: 0;

    overflow: hidden;

    pointer-events: none;

    z-index: 2;
}

.particles span {
    position: absolute;

    width: 4px;
    height: 4px;

    border-radius: 50%;

    background: #ffe3a0;

    box-shadow:
        0 0 12px rgba(255, 225, 155, 0.95);

    opacity: 0;

    animation: floatingParticle linear infinite;
}


/* particle positions */

.particles span:nth-child(1) {
    left: 8%;
    top: 72%;
    animation-duration: 8s;
}

.particles span:nth-child(2) {
    left: 17%;
    top: 55%;
    animation-duration: 10s;
    animation-delay: 2s;
}

.particles span:nth-child(3) {
    left: 29%;
    top: 79%;
    animation-duration: 9s;
    animation-delay: 1s;
}

.particles span:nth-child(4) {
    left: 41%;
    top: 61%;
    animation-duration: 11s;
    animation-delay: 3s;
}

.particles span:nth-child(5) {
    left: 53%;
    top: 78%;
    animation-duration: 8s;
    animation-delay: 4s;
}

.particles span:nth-child(6) {
    left: 64%;
    top: 58%;
    animation-duration: 12s;
    animation-delay: 1s;
}

.particles span:nth-child(7) {
    left: 74%;
    top: 75%;
    animation-duration: 9s;
    animation-delay: 5s;
}

.particles span:nth-child(8) {
    left: 84%;
    top: 61%;
    animation-duration: 8s;
    animation-delay: 2s;
}

.particles span:nth-child(9) {
    left: 93%;
    top: 82%;
    animation-duration: 11s;
    animation-delay: 4s;
}

.particles span:nth-child(10) {
    left: 14%;
    top: 32%;
    animation-duration: 12s;
    animation-delay: 5s;
}

.particles span:nth-child(11) {
    left: 72%;
    top: 30%;
    animation-duration: 10s;
    animation-delay: 6s;
}

.particles span:nth-child(12) {
    left: 88%;
    top: 42%;
    animation-duration: 13s;
    animation-delay: 3s;
}


@keyframes titleReveal {

    from {
        opacity: 0;
        transform: translateY(25px);
    }

    to {
        opacity: 1;
        transform: translateY(-2vh);
    }

}


@keyframes sparkle {

    0%,
    100% {
        opacity: 0.5;
        transform: scale(0.8);
    }

    50% {
        opacity: 1;
        transform: scale(1.2);
    }

}


@keyframes buttonPulse {

    0%,
    100% {
        box-shadow:
            0 0 0 1px rgba(116, 78, 20, 0.65) inset,
            0 0 22px rgba(255, 213, 97, 0.30),
            0 14px 34px rgba(0, 0, 0, 0.42);
    }

    50% {
        box-shadow:
            0 0 0 1px rgba(116, 78, 20, 0.65) inset,
            0 0 34px rgba(255, 213, 97, 0.62),
            0 16px 40px rgba(0, 0, 0, 0.44);
    }

}


@keyframes buttonShimmer {

    0% {
        left: -45%;
    }

    55%,
    100% {
        left: 125%;
    }

}


@keyframes floatingParticle {

    0% {
        opacity: 0;
        transform: translate(0, 20px) scale(0.6);
    }

    20% {
        opacity: 0.85;
    }

    75% {
        opacity: 0.35;
    }

    100% {
        opacity: 0;
        transform: translate(18px, -120px) scale(1.15);
    }

}



@media (max-width: 700px) {

    .title-content {
        width: 92vw;
    }

    .title-content h1 {
        font-size: clamp(36px, 10vw, 68px);
        letter-spacing: 0.035em;
    }

    .title-content h1 span {
        font-size: clamp(13px, 3.8vw, 21px);
        letter-spacing: 0.24em;
    }

    .start-button {
        min-height: 67px;
        padding: 0 24px;

        border-radius: 15px;

        gap: 13px;
    }

    .corner {
        opacity: 0.22;
        transform: scale(0.75);
    }

}


@media (max-height: 650px) {

    .title-content {
        transform: translateY(0);
    }

    .title-divider {
        margin-top: 14px;
        margin-bottom: 24px;
    }

    .start-button {
        min-height: 62px;
    }

}


/* Respect reduced-motion settings */

@media (prefers-reduced-motion: reduce) {

    .title-content,
    .title-ornament i,
    .start-button,
    .start-button::after,
    .particles span {
        animation: none;
    }

}