body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: #0d0d0d;
    color: #f4f4f4;
}

a {
    text-decoration: none;
}

.story-shell {
    max-width: 1180px;
    margin: 0 auto;
    padding: 24px;
}

.story-header {
    margin-bottom: 24px;
    text-align: center;
}

.story-header-top {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
    flex-wrap: wrap;
}

.story-home-link,
.story-restart-link,
.story-primary-link,
.story-secondary-link {
    display: inline-block;
    padding: 10px 14px;
    border-radius: 8px;
    color: #fff;
}

.story-home-link,
.story-secondary-link {
    background: #1d1d1d;
    border: 1px solid #2f2f2f;
}

.story-restart-link,
.story-primary-link {
    background: #b50f0f;
    border: 1px solid #b50f0f;
}

.story-logo {
    max-width: 100%;
    max-height: 180px;
    height: auto;
}

.story-title {
    margin: 0;
    font-size: 40px;
}

.story-label {
    margin-top: 10px;
    font-size: 15px;
    color: #cfcfcf;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.story-intro-box {
    margin-top: 18px;
    padding: 18px;
    background: #181818;
    border: 1px solid #2c2c2c;
    border-radius: 14px;
    text-align: center;
}

.story-content-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 20px;
    align-items: start;
}

.story-content-card,
.story-sidebar-card {
    background: #171717;
    border: 1px solid #2b2b2b;
    border-radius: 16px;
    padding: 22px;
}

.story-scene-image-wrap {
    margin-bottom: 18px;
}

.story-scene-image {
    width: 100%;
    height: auto;
    border-radius: 12px;
    display: block;
}

.story-scene-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.story-scene-key,
.story-scene-type,
.story-ending-badge {
    display: inline-block;
    padding: 6px 10px;
    border-radius: 999px;
    background: #222;
    border: 1px solid #333;
    font-size: 13px;
}

.story-ending-badge {
    margin-bottom: 12px;
}

.story-section-title {
    margin: 0 0 18px;
    font-size: 30px;
}

.story-body {
    line-height: 1.7;
    font-size: 17px;
}

.story-body p:first-child {
    margin-top: 0;
}

.story-choices {
    display: grid;
    gap: 14px;
    margin-top: 24px;
}

.story-choice-button {
    width: 100%;
    border: 1px solid #343434;
    background: #202020;
    color: #fff;
    padding: 16px;
    border-radius: 12px;
    text-align: left;
    cursor: pointer;
    transition: transform 0.12s ease, background 0.12s ease;
}

.story-choice-button:hover {
    transform: translateY(-1px);
    background: #252525;
}

.story-choice-label {
    display: block;
    font-size: 17px;
    font-weight: bold;
}

.story-choice-description {
    display: block;
    margin-top: 6px;
    color: #c8c8c8;
    font-size: 14px;
}

.story-end-note {
    margin-top: 20px;
    padding: 14px;
    border-radius: 12px;
    background: #211818;
    border: 1px solid #3a2727;
}

.story-ending-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}

.story-sidebar-card h3 {
    margin-top: 0;
    margin-bottom: 16px;
}

.story-run-list {
    margin: 0;
    padding-left: 20px;
}

.story-run-list li + li {
    margin-top: 14px;
}

.story-run-choice {
    font-weight: bold;
}

.story-run-meta {
    margin-top: 4px;
    color: #bbb;
    font-size: 13px;
}

.story-run-empty {
    margin: 0;
    color: #bbb;
}

.story-footer {
    text-align: center;
    padding-top: 24px;
    color: #bdbdbd;
}

@media (max-width: 900px) {
    .story-content-grid {
        grid-template-columns: 1fr;
    }
}

.story-stats-box {
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px solid #2f2f2f;
}

.story-stats-box h4 {
    margin: 0 0 12px;
    font-size: 15px;
}

.story-stat-line {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 4px 0;
    font-size: 14px;
}