/* =========================================================
   NO HOPE WEBSITE
   ========================================================= */

/* ---------- Reset ---------- */

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    width: 100%;
    min-height: 100%;
    background: #000;
    color-scheme: dark;
}

body {
    width: 100%;
    min-height: 100vh;

    background: #000;
    color: #b7b7b7;

    font-family: "Courier New", Courier, monospace;
    line-height: 1.6;

    overflow-x: hidden;
}

/*
   Do not use width: 100% globally on images.
   That caused the badge and footer logo to become enormous.
*/
img {
    display: block;
    max-width: 100%;
    height: auto;
}


/* ---------- Overall page ---------- */

.page {
    width: 100%;
    min-height: 100vh;

    display: flex;
    flex-direction: column;

    background: #000;
}

main {
    width: 100%;

    margin: 0;
    padding: 0;

    background: #000;
    border-radius: 0;
    box-shadow: none;
}


/* =========================================================
   HERO IMAGE
   ========================================================= */

.hero {
    width: 100%;

    margin: 0;
    padding: 24px 24px 0;

    background: #000;
}

.hero picture {
    display: block;
    width: 100%;
}

.hero-image {
    display: block;

    width: min(100%, 1400px);
    height: auto;

    margin: 0 auto;
}


/* =========================================================
   STORY / ORIGIN FILE
   ========================================================= */

.story {
    width: 100%;

    margin: 0;
    padding: 64px 24px 70px;

    background: #000;
}

.story-panel {
    position: relative;

    width: min(100%, 900px);
    margin: 0 auto;
    padding: clamp(28px, 5vw, 56px);

    background:
        linear-gradient(
            180deg,
            rgba(0, 255, 102, 0.025),
            rgba(0, 255, 102, 0.008)
        ),
        #020503;

    border: 1px solid rgba(0, 255, 102, 0.35);

    box-shadow:
        0 0 28px rgba(0, 255, 102, 0.055),
        inset 0 0 24px rgba(0, 255, 102, 0.02);
}

.story-kicker {
    margin: 0 0 12px;

    color: #00ff66;

    font-size: 0.78rem;
    font-weight: normal;
    letter-spacing: 0.18em;
    line-height: 1.4;
}

.story h2 {
    margin: 0 0 30px;

    color: #00ff66;

    font-size: clamp(1.35rem, 3vw, 2rem);
    font-weight: normal;
    letter-spacing: 0.08em;
    line-height: 1.35;
}

.story-copy {
    width: 100%;
    max-width: 72ch;

    color: #bdbdbd;

    font-size: clamp(0.95rem, 1.4vw, 1.08rem);
    line-height: 1.85;
    text-align: left;
}

.story-copy p {
    margin: 0 0 1.4em;
}

.story-copy p:last-child {
    margin-bottom: 0;
}

.terminal-word {
    color: #00ff66;
}


/* =========================================================
   GOOGLE PLAY / COMING SOON BADGE
   ========================================================= */

.store-badge-container {
    width: 100%;

    margin: 0;
    padding: 10px 20px 64px;

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

    background: #000;
}

.store-badge {
    display: block;

    /*
       Responsive, but never huge:
       minimum 220px
       preferred 28vw
       maximum 360px
    */
    width: clamp(220px, 28vw, 360px);
    max-width: 85vw;
    height: auto;

    margin: 0 auto;
}


/* =========================================================
   FOOTER
   ========================================================= */

.site-footer {
    width: 100%;

    margin-top: auto;
    padding: 42px 20px 24px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;

    background: #000;
    color: #555;

    text-align: center;
}

.footer-logo {
    display: block;

    width: clamp(76px, 8vw, 120px);
    max-width: 30vw;
    height: auto;

    margin: 0 auto;
}

.site-footer p {
    width: 100%;

    margin: 0;
    padding: 0;

    color: #555;

    font-size: 0.72rem;
    line-height: 1.4;
    text-align: center;
}


/* =========================================================
   TABLETS
   ========================================================= */

@media (max-width: 768px) {
    .hero {
        padding: 12px 12px 0;
    }

    .hero-image {
        width: 100%;
        max-width: 100%;
    }

    .story {
        padding: 44px 18px 54px;
    }

    .story-panel {
        padding: 32px 28px;
    }

    .store-badge-container {
        padding: 6px 16px 48px;
    }

    .store-badge {
        width: min(320px, 76vw);
        max-width: 100%;
    }

    .site-footer {
        padding: 34px 16px 22px;
    }
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 600px) {
    .hero {
        padding: 0;
    }

    .hero picture {
        width: 100%;
    }

    .hero-image {
        width: 100%;
        max-width: 100%;
        margin: 0 auto;
    }

   .story-panel {
    padding-top: 70px;
}

.language-toggle {
    top: 17px;
    right: 17px;

    gap: 6px;
    padding: 5px 7px;
}

.language-button,
.language-divider {
    font-size: 0.72rem;
}

.story-copy-japanese {
    line-height: 1.9;
}

    .story-panel {
        width: 100%;
        padding: 25px 20px;
    }

    .story-kicker {
        margin-bottom: 10px;

        font-size: 0.68rem;
        letter-spacing: 0.13em;
    }

    .story h2 {
        margin-bottom: 22px;

        font-size: 1.2rem;
        line-height: 1.4;
    }

    .story-copy {
        font-size: 0.92rem;
        line-height: 1.72;
    }

    .story-copy p {
        margin-bottom: 1.25em;
    }

    .store-badge-container {
        padding: 4px 14px 38px;
    }

    .store-badge {
        width: min(280px, 82vw);
        max-width: 100%;
    }

    .site-footer {
        padding: 28px 16px 20px;
        gap: 12px;
    }

    .footer-logo {
        width: 82px;
        max-width: 28vw;
    }

    .site-footer p {
        font-size: 0.68rem;
    }
}


/* =========================================================
   SMALL MOBILE
   ========================================================= */

@media (max-width: 400px) {
    .story {
        padding-right: 10px;
        padding-left: 10px;
    }

    .story-panel {
        padding: 22px 17px;
    }

    .story-copy {
        font-size: 0.88rem;
        line-height: 1.68;
    }

    .store-badge {
        width: min(250px, 84vw);
    }

    .footer-logo {
        width: 74px;
    }
}

/* =========================================================
   LANGUAGE TOGGLE
   ========================================================= */

.story-panel {
    position: relative;

    /* Extra room so the toggle does not overlap the heading */
    padding-top: clamp(76px, 7vw, 92px);
}

.language-toggle {
    position: absolute;
    top: 24px;
    right: 28px;

    display: flex;
    align-items: center;
    gap: 8px;

    padding: 5px 9px;

    background: rgba(0, 0, 0, 0.7);
    border: 1px solid rgba(0, 255, 102, 0.45);

    font-family: "Courier New", Courier, monospace;
    line-height: 1;
}

.language-button {
    appearance: none;

    padding: 4px 5px;

    background: transparent;
    color: #666;

    border: 0;
    outline: 0;

    font: inherit;
    font-size: 0.78rem;
    letter-spacing: 0.12em;

    cursor: pointer;
}

.language-button:hover,
.language-button:focus-visible {
    color: #b7b7b7;
}

.language-button:focus-visible {
    outline: 1px solid #00ff66;
    outline-offset: 3px;
}

.language-button.is-active {
    color: #00ff66;
    text-shadow: 0 0 8px rgba(0, 255, 102, 0.45);
}

.language-divider {
    color: #555;
    font-size: 0.78rem;
}

.story-language[hidden] {
    display: none;
}

/* Japanese text is generally easier to read with slightly tighter spacing */
.story-copy-japanese {
    font-family:
        "Noto Sans Mono CJK JP",
        "Noto Sans JP",
        "Yu Gothic",
        "Hiragino Kaku Gothic ProN",
        monospace;

    line-height: 2;
}

.privacy-link {
    display: inline-block;
    margin-top: 12px;
    color: #00ff66;
    font-family: monospace;
    font-size: 0.9rem;
    text-decoration: none;
}

.privacy-link:hover,
.privacy-link:focus {
    text-decoration: underline;
}