@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&family=VT323&display=swap');

/* =========================================
   BASE
========================================= */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: #090b18;
    color: #f8edc9;
    font-family: "VT323", monospace;
}

a {
    color: inherit;
}


/* =========================================
   CREEPY COMPUTER ENTRANCE
   This is separate from the museum style.
========================================= */

#computer-page {
    position: fixed;
    inset: 0;
    z-index: 999;
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background:
        radial-gradient(ellipse at center, #171717 0%, #080808 45%, #000 100%);
    color: white;
    transition: opacity 1s ease, visibility 1s ease;
}

#computer-page::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: .1;
    background: repeating-linear-gradient(
        0deg,
        rgba(255,255,255,.06) 0,
        rgba(255,255,255,.06) 1px,
        transparent 1px,
        transparent 4px
    );
}

#computer-page::after {
    content: "";
    position: absolute;
    inset: -20%;
    pointer-events: none;
    background: radial-gradient(
        ellipse,
        transparent 40%,
        rgba(0,0,0,.85) 100%
    );
}

.computer-container {
    position: relative;
    width: min(850px, 95vw);
}

.computer {
    width: 100%;
    display: block;
}

.computer-screen {
    position: absolute;
    left: 29.2%;
    top: 10.5%;
    width: 39.8%;
    height: 31.5%;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.computer-screen::before {
    content: "";
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        0deg,
        rgba(255,255,255,.04) 0,
        rgba(255,255,255,.04) 1px,
        transparent 1px,
        transparent 4px
    );
}

.screen-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #b7d99a;
    font-family: "Courier New", monospace;
    text-shadow: 0 0 5px rgba(170,255,130,.6);
    animation: flicker 4s infinite;
}

.warning {
    font-size: clamp(8px, 1vw, 13px);
    letter-spacing: 3px;
    margin-bottom: 18px;
    opacity: .6;
}

.main-message {
    font-size: clamp(12px, 1.8vw, 22px);
    margin-bottom: 22px;
    letter-spacing: 2px;
}

#enter-button {
    background: transparent;
    color: #c5e8a5;
    border: 1px solid #9fbd88;
    padding: 7px 20px;
    font-family: "Courier New", monospace;
    font-size: clamp(8px, 1vw, 13px);
    letter-spacing: 2px;
    cursor: pointer;
}

#enter-button:hover,
#enter-button:focus-visible {
    background: #c5e8a5;
    color: black;
    outline: none;
}

.creepy-text {
    position: relative;
    z-index: 2;
    margin-top: -15px;
    color: #777;
    font-family: "Courier New", monospace;
    font-size: 11px;
    letter-spacing: 4px;
    opacity: .35;
}


/* =========================================
   RETRO MUSEUM
   Inspired by SNES / PS1 / PS2 / N64:
   chunky pixels, low-poly panels, jewel colors,
   CRT-like framing, and game-menu structure.
========================================= */

#museum {
    display: none;
    min-height: 100vh;
    background:
        linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px),
        #090b18;
    background-size: 24px 24px;
    color: #f8edc9;
}

#museum.visible {
    display: block;
    animation: museumBoot .8s ease both;
}

.museum-shell {
    width: min(1180px, 94vw);
    margin: 0 auto;
    padding: 28px 0 0;
}

.museum-header {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 20px;
    padding: 24px;
    border: 4px solid #3d426c;
    background:
        linear-gradient(135deg, #24294b, #14172f);
    box-shadow:
        8px 8px 0 #05060e,
        inset 0 0 0 3px #7479aa;
}

.logo {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.logo-small,
.eyebrow,
.catalog-number {
    font-family: "Press Start 2P", monospace;
    font-size: 10px;
    letter-spacing: .08em;
    color: #ffcf67;
}

.logo-large {
    font-family: "Press Start 2P", monospace;
    font-size: clamp(20px, 4vw, 42px);
    line-height: 1.3;
    color: #f8edc9;
    text-shadow: 4px 4px 0 #8e3f72;
}

.header-status {
    color: #9cf0b4;
    font-size: 20px;
    white-space: nowrap;
}

.pixel-dot {
    display: inline-block;
    width: 12px;
    height: 12px;
    background: #9cf0b4;
    box-shadow: 0 0 0 3px #244b43;
    margin-right: 8px;
}

.museum-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 18px 0;
}

.museum-nav a,
.pixel-button {
    display: inline-block;
    padding: 13px 18px;
    border: 3px solid #f8edc9;
    background: #8e3f72;
    color: #fff3cf;
    text-decoration: none;
    font-family: "Press Start 2P", monospace;
    font-size: 10px;
    box-shadow: 5px 5px 0 #05060e;
    transition: transform .12s ease, background .12s ease;
}

.museum-nav a:hover,
.pixel-button:hover {
    background: #d95b83;
    transform: translate(2px, 2px);
}

.hero {
    display: grid;
    grid-template-columns: 1.3fr .7fr;
    gap: 30px;
    align-items: stretch;
    padding: 65px 0 85px;
}

.hero-copy {
    padding: 20px 0;
}

.hero h1 {
    margin: 25px 0;
    font-family: "Press Start 2P", monospace;
    font-size: clamp(28px, 5vw, 64px);
    line-height: 1.35;
    color: #f8edc9;
    text-shadow: 6px 6px 0 #24294b;
}

.hero h1 span {
    color: #9cf0b4;
}

.hero-copy > p:not(.eyebrow) {
    max-width: 540px;
    font-size: 25px;
    line-height: 1.2;
    color: #c4c6dc;
    margin-bottom: 35px;
}

.hero-display {
    padding: 18px;
    background: #24294b;
    border: 4px solid #7479aa;
    box-shadow: 8px 8px 0 #05060e;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.display-top,
.display-bottom {
    font-family: "Press Start 2P", monospace;
    font-size: 9px;
    color: #ffcf67;
}

.display-art {
    min-height: 280px;
    flex: 1;
    display: grid;
    place-items: center;
    border: 4px solid #3d426c;
    background:
        linear-gradient(135deg, #8e3f72 25%, transparent 25%) 0 0 / 28px 28px,
        linear-gradient(315deg, #8e3f72 25%, #171a35 25%) 0 0 / 28px 28px;
    color: #f8edc9;
}

.display-art span {
    font-family: "Press Start 2P", monospace;
    font-size: 70px;
    text-shadow: 5px 5px 0 #05060e;
}

.section-block {
    padding: 60px 0;
}

.section-heading {
    margin-bottom: 30px;
}

.section-heading h2,
.archive-panel h2,
.about-panel h2 {
    font-family: "Press Start 2P", monospace;
    font-size: clamp(22px, 4vw, 40px);
    line-height: 1.4;
    margin: 18px 0 0;
    color: #f8edc9;
}

.exhibit-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.exhibit-card {
    background: #171a35;
    border: 4px solid #3d426c;
    box-shadow: 7px 7px 0 #05060e;
}

.exhibit-image {
    aspect-ratio: 1 / 1;
    display: grid;
    place-items: center;
    background:
        linear-gradient(45deg, #3d426c 25%, transparent 25%) 0 0 / 22px 22px,
        linear-gradient(-45deg, #3d426c 25%, transparent 25%) 0 0 / 22px 22px,
        #24294b;
    border-bottom: 4px solid #3d426c;
}

.exhibit-image span {
    font-family: "Press Start 2P", monospace;
    font-size: 18px;
    color: #ffcf67;
}

.exhibit-info {
    padding: 20px;
}

.exhibit-info h3 {
    margin: 15px 0 10px;
    font-size: 28px;
    color: #9cf0b4;
}

.exhibit-info p {
    color: #c4c6dc;
    font-size: 22px;
    margin: 0 0 20px;
}

.exhibit-info a {
    color: #ffcf67;
    font-size: 19px;
    text-decoration: none;
}

.exhibit-info a:hover {
    text-decoration: underline;
}

.archive-panel,
.about-panel {
    border: 4px solid #3d426c;
    background: #24294b;
    padding: 35px;
    margin-top: 25px;
    box-shadow: 7px 7px 0 #05060e;
}

.archive-panel {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: center;
}

.archive-panel p,
.about-panel p {
    color: #c4c6dc;
    font-size: 24px;
    line-height: 1.2;
}

.dark-button {
    background: #244b43;
}

.museum-footer {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
    padding: 35px 0;
    margin-top: 35px;
    border-top: 4px solid #3d426c;
    color: #7479aa;
    font-size: 18px;
}


/* =========================================
   ANIMATION + MOBILE
========================================= */

@keyframes flicker {
    0%, 18%, 20%, 52%, 54%, 100% { opacity: 1; }
    19%, 53% { opacity: .3; }
    72% { opacity: .8; }
    73% { opacity: .4; }
}

@keyframes museumBoot {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 800px) {
    .museum-shell {
        width: min(94vw, 600px);
    }

    .museum-header {
        align-items: start;
        flex-direction: column;
    }

    .header-status {
        font-size: 17px;
    }

    .hero,
    .archive-panel {
        grid-template-columns: 1fr;
    }

    .hero {
        padding-top: 35px;
    }

    .exhibit-grid {
        grid-template-columns: 1fr;
    }

    .museum-nav a,
    .pixel-button {
        font-size: 9px;
    }
}


/* =========================================
   BACKGROUND MUSIC PLAYER
========================================= */

.music-player {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 13px 16px;
    margin: 0 0 20px;
    border: 3px solid #3d426c;
    background: #11142a;
    box-shadow: 5px 5px 0 #05060e;
}

.music-info {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.music-label {
    font-family: "Press Start 2P", monospace;
    font-size: 8px;
    color: #ffcf67;
}

#track-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 20px;
    color: #9cf0b4;
}

.music-controls {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.music-controls button {
    border: 2px solid #f8edc9;
    background: #24294b;
    color: #f8edc9;
    padding: 8px 10px;
    font-family: "Press Start 2P", monospace;
    font-size: 8px;
    cursor: pointer;
}

.music-controls button:hover {
    background: #8e3f72;
}

.volume-control {
    display: flex;
    align-items: center;
    gap: 7px;
    font-family: "Press Start 2P", monospace;
    font-size: 8px;
    color: #ffcf67;
}

#volume {
    width: 90px;
    accent-color: #9cf0b4;
}

@media (max-width: 800px) {
    .music-player {
        align-items: flex-start;
        flex-direction: column;
    }

    #track-name {
        max-width: 75vw;
    }
}
