:root {
    --hiroshima-ink: #f3eee5;
    --hiroshima-muted: #c8bfb1;
    --hiroshima-accent: #d79a52;
    --hiroshima-panel: rgba(21, 19, 17, 0.96);
}

.hiroshima-intro {
    position: fixed;
    inset: 0;
    display: none;
    place-items: center;
    padding: 24px;
    color: var(--hiroshima-ink);
    font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
    z-index: 1100;
}

.hiroshima-intro.is-open {
    display: grid;
}

.hiroshima-intro__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(5, 5, 5, 0.82);
    backdrop-filter: blur(8px);
}

.hiroshima-intro__panel {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
    width: min(1120px, 95vw);
    max-height: calc(100vh - 24px);
    overflow: hidden;
    border: 1px solid rgba(215, 154, 82, 0.45);
    border-radius: 20px;
    background: var(--hiroshima-panel);
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.66);
}

.hiroshima-intro__image {
    width: 100%;
    height: 100%;
    min-height: 520px;
    object-fit: cover;
    filter: saturate(0.72) contrast(1.04);
}

.hiroshima-intro__content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(28px, 3.5vw, 48px);
}

.hiroshima-intro__title {
    margin: 0 0 22px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(34px, 4vw, 50px);
    font-weight: 500;
    line-height: 1.05;
}

.hiroshima-intro__body {
    margin: 0;
    color: var(--hiroshima-muted);
    font-size: clamp(16px, 1.7vw, 19px);
    line-height: 1.7;
}

.hiroshima-intro__start {
    align-self: flex-start;
    min-height: 48px;
    margin-top: 28px;
    padding: 12px 22px;
    border: 1px solid var(--hiroshima-accent);
    border-radius: 999px;
    color: #18130e;
    background: var(--hiroshima-accent);
    font: 700 15px/1.2 system-ui, -apple-system, "Segoe UI", sans-serif;
    cursor: pointer;
}

.hiroshima-intro__start:hover,
.hiroshima-intro__start:focus-visible {
    background: #edb36e;
    outline: 3px solid rgba(215, 154, 82, 0.32);
    outline-offset: 3px;
}

.hiroshima-intro__help {
    margin: 18px 0 0;
    color: #968c80;
    font-size: 12px;
    line-height: 1.5;
}

.hiroshima-crosshair {
    position: fixed;
    left: 50%;
    top: 50%;
    width: 7px;
    height: 7px;
    margin: -3.5px 0 0 -3.5px;
    border: 1px solid rgba(255, 255, 255, 0.85);
    border-radius: 50%;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.75);
    opacity: 0;
    pointer-events: none;
    z-index: 20;
}

.hiroshima-pointer-locked .hiroshima-crosshair {
    opacity: 1;
}

.hiroshima-hotspot-hint {
    position: fixed;
    left: 50%;
    bottom: 8vh;
    transform: translate(-50%, 12px);
    padding: 10px 16px;
    border: 1px solid rgba(215, 154, 82, 0.62);
    border-radius: 999px;
    color: var(--hiroshima-ink);
    background: rgba(18, 16, 14, 0.86);
    font: 600 14px/1.2 system-ui, -apple-system, "Segoe UI", sans-serif;
    letter-spacing: 0.02em;
    opacity: 0;
    pointer-events: none;
    transition: opacity 160ms ease, transform 160ms ease;
    z-index: 30;
}

.hiroshima-hotspot-hint.is-visible {
    opacity: 1;
    transform: translate(-50%, 0);
}

.hiroshima-modal {
    position: fixed;
    inset: 0;
    display: none;
    place-items: center;
    padding: 22px;
    color: var(--hiroshima-ink);
    font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
    z-index: 1000;
}

.hiroshima-modal.is-open {
    display: grid;
}

.hiroshima-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(5, 5, 5, 0.76);
    backdrop-filter: blur(7px);
}

.hiroshima-modal__panel {
    position: relative;
    width: min(780px, 94vw);
    max-height: min(calc(100dvh - 44px), 820px);
    overflow: auto;
    overscroll-behavior: contain;
    scrollbar-gutter: stable;
    box-sizing: border-box;
    padding: clamp(25px, 4vw, 48px);
    border: 1px solid rgba(215, 154, 82, 0.4);
    border-radius: 18px;
    background: var(--hiroshima-panel);
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.55);
}

.hiroshima-modal__panel.is-gallery {
    width: min(1040px, 96vw);
    padding: clamp(20px, 2.5vw, 32px);
}

.hiroshima-modal__panel.is-gallery .hiroshima-modal__title {
    margin-bottom: 12px;
    font-size: clamp(28px, 4vw, 40px);
}

.hiroshima-modal__panel.is-gallery .hiroshima-modal__body {
    font-size: clamp(15px, 1.7vw, 17px);
    line-height: 1.5;
}

.hiroshima-modal__panel.is-gallery .hiroshima-modal__media {
    margin-top: 14px;
}

.hiroshima-modal__panel.is-gallery .hiroshima-modal__actions {
    margin-top: 14px;
}

.hiroshima-modal__panel.is-gallery .hiroshima-modal__resume {
    margin-top: 16px;
}

.hiroshima-modal__panel.is-story {
    width: min(900px, 96vw);
    padding: clamp(22px, 3vw, 34px);
}

.hiroshima-modal__panel.is-story .hiroshima-modal__title {
    margin-bottom: 14px;
    font-size: clamp(28px, 4vw, 38px);
}

.hiroshima-modal__panel.is-story .hiroshima-modal__body {
    font-size: clamp(15px, 1.7vw, 17px);
    line-height: 1.58;
}

.hiroshima-modal__panel.is-story .hiroshima-modal__body p {
    margin-bottom: 10px;
}

.hiroshima-modal__close {
    position: sticky;
    top: 0;
    z-index: 3;
    float: right;
    margin: -12px -14px 0 12px;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 50%;
    color: var(--hiroshima-ink);
    background: rgba(255, 255, 255, 0.08);
    font: 300 30px/1 system-ui, sans-serif;
    cursor: pointer;
}

.hiroshima-modal__close:hover,
.hiroshima-modal__close:focus-visible {
    background: rgba(215, 154, 82, 0.24);
    outline: 2px solid var(--hiroshima-accent);
}

.hiroshima-modal__eyebrow {
    margin-bottom: 8px;
    color: var(--hiroshima-accent);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.hiroshima-modal__title {
    margin: 0 50px 20px 0;
    color: var(--hiroshima-ink);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(28px, 5vw, 46px);
    font-weight: 500;
    line-height: 1.08;
}

.hiroshima-modal__body {
    color: var(--hiroshima-muted);
    font-size: clamp(16px, 2vw, 18px);
    line-height: 1.7;
}

.hiroshima-modal__body p {
    margin: 0 0 14px;
}

.hiroshima-modal__media {
    margin-top: 24px;
}

.hiroshima-story-audio {
    display: grid;
    gap: 8px;
    padding: 10px 14px;
    border: 1px solid rgba(181, 139, 76, 0.42);
    border-radius: 12px;
    background: rgba(35, 24, 16, 0.68);
}

.hiroshima-story-audio__label {
    color: #e7cfaa;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hiroshima-story-audio__player {
    display: block;
    width: 100%;
    min-height: 38px;
}

.hiroshima-video {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    max-height: 60dvh;
    object-fit: contain;
    border: 0;
    border-radius: 12px;
    background: #000;
}

.hiroshima-captions-toggle {
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    margin-top: 12px;
    padding: 9px 16px;
    border: 1px solid rgba(215, 154, 82, 0.7);
    border-radius: 999px;
    color: var(--hiroshima-ink);
    background: rgba(35, 24, 16, 0.85);
    font: 600 14px/1.2 system-ui, -apple-system, "Segoe UI", sans-serif;
    cursor: pointer;
}

.hiroshima-captions-toggle:hover,
.hiroshima-captions-toggle:focus-visible {
    color: #18130e;
    background: var(--hiroshima-accent);
}

.hiroshima-gallery__figure {
    margin: 0;
}

.hiroshima-gallery__image {
    display: block;
    width: 100%;
    height: min(44dvh, 470px);
    object-fit: contain;
    border-radius: 12px;
    background: #090807;
}

.hiroshima-gallery__caption {
    padding: 10px 4px 0;
    color: var(--hiroshima-muted);
    font-size: 14px;
    line-height: 1.45;
}

.hiroshima-gallery__thumbnails {
    display: flex;
    gap: 8px;
    margin-top: 12px;
    padding: 2px 0 8px;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scrollbar-width: thin;
}

.hiroshima-gallery__thumb {
    flex: 0 0 88px;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    padding: 0;
    border: 2px solid transparent;
    border-radius: 7px;
    background: #090807;
    cursor: pointer;
    opacity: 0.62;
}

.hiroshima-gallery__thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hiroshima-gallery__thumb:hover,
.hiroshima-gallery__thumb:focus-visible,
.hiroshima-gallery__thumb.is-active {
    border-color: var(--hiroshima-accent);
    opacity: 1;
    outline: none;
}

.hiroshima-modal__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 24px;
}

.hiroshima-video-tab,
.hiroshima-story-tab,
.hiroshima-gallery-nav,
.hiroshima-source-link {
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    box-sizing: border-box;
    padding: 10px 16px;
    border: 1px solid rgba(215, 154, 82, 0.55);
    border-radius: 999px;
    color: var(--hiroshima-ink);
    background: transparent;
    font: 600 14px/1.2 system-ui, -apple-system, "Segoe UI", sans-serif;
    text-decoration: none;
    cursor: pointer;
}

.hiroshima-source-note {
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    color: #a89e91;
    font-size: 13px;
    font-style: italic;
}

.hiroshima-video-tab:hover,
.hiroshima-video-tab.is-active,
.hiroshima-story-tab:hover,
.hiroshima-story-tab.is-active,
.hiroshima-gallery-nav:hover,
.hiroshima-source-link:hover {
    color: #18130e;
    background: var(--hiroshima-accent);
}

.hiroshima-modal__resume {
    margin: 28px 0 0;
    color: #968c80;
    font-size: 12px;
}

@media (max-width: 600px) {
    .hiroshima-intro {
        padding: 10px;
    }

    .hiroshima-intro__panel {
        display: block;
        max-height: 94vh;
        overflow: auto;
        border-radius: 12px;
    }

    .hiroshima-intro__image {
        height: 31vh;
        min-height: 220px;
    }

    .hiroshima-intro__content {
        padding: 26px 22px 30px;
    }

    .hiroshima-intro__title {
        font-size: clamp(30px, 10vw, 42px);
    }

    .hiroshima-modal {
        padding: 10px;
    }

    .hiroshima-modal__panel {
        max-height: calc(100dvh - 20px);
        padding: 28px 20px;
        border-radius: 12px;
    }

    .hiroshima-modal__panel.is-story {
        width: 100%;
        padding: 20px 16px;
    }

    .hiroshima-modal__title {
        margin-right: 34px;
    }

    .hiroshima-gallery__image {
        height: min(38dvh, 360px);
    }

    .hiroshima-gallery__thumbnails {
        margin-top: 10px;
    }

    .hiroshima-gallery__thumb {
        flex-basis: 72px;
    }
}

@media (max-height: 800px) and (min-width: 601px) {
    .hiroshima-modal {
        padding: 10px;
    }

    .hiroshima-modal__panel {
        max-height: calc(100dvh - 20px);
    }

    .hiroshima-modal__panel.is-story {
        padding: 20px 28px;
    }

    .hiroshima-modal__panel.is-story .hiroshima-modal__title {
        font-size: 30px;
    }

    .hiroshima-modal__panel.is-gallery {
        padding: 18px 24px;
    }

    .hiroshima-modal__panel.is-gallery .hiroshima-modal__title {
        font-size: 32px;
    }

    .hiroshima-gallery__image {
        height: min(40dvh, 390px);
    }
}

@media (min-width: 601px) and (max-width: 900px) {
    .hiroshima-intro__panel {
        grid-template-columns: 1fr 1fr;
    }

    .hiroshima-intro__image {
        min-height: 460px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hiroshima-hotspot-hint {
        transition: none;
    }
}
