html,
body {
    margin: 0;
    padding: 0;

    width: 100%;
    min-height: 100dvh;

    overflow-x: hidden;
    overflow-y: auto;

    background: black;

    font-family: "Noto Sans Thai", sans-serif;

    -webkit-user-select: none;
    user-select: none;

    -webkit-touch-callout: none;
}

/* Stop dragging mah shit */
img {
    -webkit-user-drag: none;

    -webkit-user-select: none;
    user-select: none;

    -webkit-touch-callout: none;
}

/* Video */
#background-video {
    position: fixed;
    inset: 0;

    width: 100vw;
    height: 100dvh;

    object-fit: cover;
    object-position: center;

    background: black;

    z-index: 0;
    pointer-events: none;
}

/* Main */
.content {
    position: relative;
    z-index: 2;

    min-height: 100dvh;

    padding: 60px 20px 65px;

    box-sizing: border-box;
}

/* Language */
.language-switch {
    position: fixed;

    top: 15px;
    left: 15px;

    z-index: 10;

    display: flex;
    gap: 8px;
}

.language-switch button {
    padding: 8px 14px;

    border: 1px solid rgba(255, 160, 155, 0.72);
    border-radius: 999px;

    background: rgba(70, 18, 18, 0.52);
    color: #ffe7e1;

    font-family: "Noto Sans Thai", sans-serif;

    font-size: 0.9rem;
    font-weight: 600;

    cursor: pointer;

    backdrop-filter: blur(6px);

    -webkit-user-select: none;
    user-select: none;

    transition:
        background 0.2s ease,
        transform 0.2s ease;
}

.language-switch button:hover {
    background: rgba(255, 125, 120, 0.28);
    transform: translateY(-1px);
}

/* Home */
.home-button {
    position: fixed;

    top: 15px;
    right: 15px;

    z-index: 10;

    padding: 8px 14px;

    text-decoration: none;

    color: #ffe7e1;
    background: rgba(70, 18, 18, 0.52);

    border: 1px solid rgba(255, 160, 155, 0.72);
    border-radius: 999px;

    font-family: "Noto Sans Thai", sans-serif;

    font-size: 0.9rem;
    font-weight: 600;

    backdrop-filter: blur(6px);

    -webkit-user-drag: none;

    -webkit-user-select: none;
    user-select: none;

    transition:
        background 0.2s ease,
        transform 0.2s ease;
}

.home-button:hover {
    background: rgba(255, 125, 120, 0.28);
    transform: translateY(-1px);
}

/* Headers */
h1 {
    position: relative;
    z-index: 2;

    margin: 1vh 20px 8px;

    text-align: center;

    color: #ffc1c1;

    font-family: "Mali", cursive;

    font-size: clamp(1.9rem, 6vw, 2.8rem);
    font-weight: 700;

    line-height: 1.2;
    letter-spacing: 0.02em;

    text-shadow:
        0 2px 5px rgba(0, 0, 0, 0.95),
        0 0 10px rgba(110, 15, 15, 0.65);
}

h2 {
    position: relative;
    z-index: 2;

    margin-top: 10px;
    margin-bottom: 6px;

    text-align: center;

    color: #ffd0bd;

    font-family: "Mali", cursive;

    font-size: clamp(1.1rem, 3vw, 1.5rem);
    font-weight: 600;

    line-height: 1.35;

    text-shadow:
        0 2px 5px rgba(0, 0, 0, 0.9);
}

/* ASCII */
.ascii-wrapper {
    position: relative;
    z-index: 2;

    display: flex;
    justify-content: center;

    width: 100%;

    margin: 10px auto;
}

.story-ascii {
    margin: 0;

    color: rgba(255, 245, 240, 0.92);

    font-family: monospace;

    font-size: clamp(0.18rem, 0.62vw, 0.46rem);
    line-height: 0.95;

    white-space: pre;

    text-shadow:
        0 2px 5px rgba(0, 0, 0, 0.9);
}

/* ASCII Heart */
.ascii-heart {
    color: #ff8fb1;

    text-shadow:
        0 2px 5px rgba(0, 0, 0, 0.9),
        0 0 7px rgba(255, 143, 177, 0.35);
}

/* Story & Ending */
.story-text {
    position: relative;
    z-index: 2;

    width: 90%;
    max-width: 950px;

    margin: 18px auto;

    color: #fff0eb;

    font-family: "Noto Sans Thai", sans-serif;

    font-size: clamp(1rem, 1.9vw, 1.15rem);
    font-weight: 500;

    line-height: 1.7;

    text-align: center;

    text-shadow:
        0 2px 5px rgba(0, 0, 0, 1),
        0 0 8px rgba(0, 0, 0, 0.75);
}

.story-text p {
    margin: 0 0 17px;
}

.ending {
    color: #ffafad;

    font-family: "Mali", cursive;

    font-size: 1.04em;
    font-weight: 600;

    line-height: 1.5;
}

.signature {
    color: #ff9696;

    font-family: "Mali", cursive;

    font-size: 1.12em;
    font-weight: 600;

    font-style: normal;

    margin-top: 4px;
}

/* Phone Debug */
@media (max-width: 600px) {

    .content {
        padding:
            55px
            10px
            45px;
    }

    .language-switch {
        top: 10px;
        left: 10px;

        gap: 5px;
    }

    .language-switch button {
        padding: 6px 10px;

        font-size: 0.8rem;
    }

    .home-button {
        top: 10px;
        right: 10px;

        padding: 6px 10px;

        font-size: 0.8rem;
    }

    h1 {
        font-size: clamp(1.7rem, 8vw, 2.3rem);

        margin-top: 6px;
        margin-bottom: 6px;
    }

    h2 {
        font-size: clamp(1rem, 4.5vw, 1.3rem);

        margin-top: 8px;
        margin-bottom: 4px;
    }

    .ascii-wrapper {
        margin: 8px auto;
    }

    .story-ascii {
        font-size: clamp(0.12rem, 0.70vw, 0.29rem);
        line-height: 0.95;
    }

    .story-text {
        width: 96%;

        margin: 10px auto;

        font-family: "Noto Sans Thai", sans-serif;

        font-size: 0.92rem;
        font-weight: 500;

        line-height: 1.55;
    }

    .story-text p {
        margin-bottom: 12px;
    }

    .ending {
        font-size: 1em;
        line-height: 1.45;
    }

    .signature {
        font-size: 1.08em;
        margin-top: 2px;
    }
}