:root {
    --neon: #22ff55;
    --neon-dim: rgba(34, 255, 85, 0.15);
}

/* 共通設定 */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    cursor: pointer;
}

body {
    background-color: #000;
    color: var(--neon);
    font-family: 'Courier New', Consolas, monospace;
    overflow: hidden;
    height: 100vh;
}

.screen {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    flex-direction: column;
    overflow-y: auto;
    overflow-x: hidden;
}

.screen.active {
    display: flex;
}

/* 1. TOP */
.top-layout {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.start-image {
    width: 80%;
    max-width: 500px;
    margin-bottom: 30px;
}

.reveal-text {
    font-size: 1.2rem;
    letter-spacing: 0.5em;
    animation: pulse 2s infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 0.3;
    }

    50% {
        opacity: 1;
    }
}

/* 2. 説明 */
.content-wrapper {
    width: 100%;
    max-width: 700px;
    margin: 0 auto;
    padding: 10vh 24px;
}

.screen-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
    letter-spacing: 0.2em;
}

.info-panel {
    background: var(--neon-dim);
    border-radius: 10px;
    padding: 30px;
    line-height: 2.2;
    margin-bottom: 40px;
}

/* 3. あらすじ */
.plot-phase {
    width: 100%;
    padding: 15vh 24px;
    display: flex;
    justify-content: center;
}

.inner-text {
    width: 100%;
    max-width: 600px;
}

.white-base {
    background-color: #fff;
    color: #000;
}

.white-base p {
    color: #000 !important;
    font-weight: bold;
}

.black-base {
    background: linear-gradient(to bottom, #fff 0%, #000 15%, #000 100%);
    color: var(--neon);
    padding-bottom: 300px;
}

.dialog {
    border-left: 2px solid var(--neon);
    padding-left: 20px;
    margin: 40px 0;
}

.voice {
    font-weight: bold;
    margin-bottom: 10px;
    color: var(--neon);
}

/* 4. 選択ページ */
.image-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    width: 100%;
}

@media (min-width: 769px) {
    .image-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 25px;
    }
}

.image-grid img {
    width: 100%;
    aspect-ratio: 1/1;
    object-fit: cover;
    border: 1px solid var(--neon-dim);
    transition: 0.3s;
}

.image-grid img:hover {
    border-color: var(--neon);
    transform: scale(1.02);
}

/* 最後の扉セクション */
.final-divider {
    border-top: 1px solid var(--neon-dim);
    margin: 60px 0 40px;
}

.final-title {
    font-size: 1.8rem;
    color: #fff;
    text-shadow: 0 0 10px var(--neon);
}

.final-door-wrapper {
    display: flex;
    justify-content: center;
    padding-bottom: 50px;
}

.final-door-img {
    width: 100%;
    max-width: 320px;
    border: 2px solid var(--neon);
    box-shadow: 0 0 20px var(--neon-dim);
    transition: 0.5s ease;
}

.final-door-img:hover {
    box-shadow: 0 0 40px var(--neon);
    transform: translateY(-5px);
}

/* ボタン */
.next-btn {
    display: block;
    width: 100%;
    max-width: 300px;
    margin: 40px auto;
    padding: 20px;
    background: transparent;
    color: var(--neon);
    border: 1px solid var(--neon);
    cursor: pointer;
    font-size: 1rem;
    letter-spacing: 0.2em;
}