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

body {
    font-family: 'Courier New', monospace;
    background-color: #000;
    color: #eee;
    margin: 0;
    padding: 0;
    overflow: hidden;
}

.shop-container {
    width: 100vw;
    height: 100vh;
    background: #000;
    display: flex;
    flex-direction: column;
}

.shop-header, .shop-footer {
    display: none;
}

.smoke-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 100;
}

.hotspot {
    position: fixed;
    z-index: 150;
    cursor: pointer;
    pointer-events: all;
}

.back-button {
    position: fixed;
    top: 24px;
    left: 24px;
    z-index: 200;
    padding: 10px 16px;
    border: 1px solid rgba(230, 230, 210, 0.7);
    background: rgba(0, 0, 0, 0.65);
    color: #f1f1df;
    font: 700 16px/1 'Courier New', monospace;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
    pointer-events: all;
    text-shadow: 0 0 6px rgba(255, 255, 210, 0.45);
}

.back-button:hover,
.back-button:focus-visible {
    background: rgba(40, 36, 24, 0.8);
    outline: none;
}

.character-stage {
    width: 100vw;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.character-wrapper {
    position: relative;
    width: 100vw;
    height: 100vh;
    background: #000;
    overflow: hidden;
}

.scene-media {
    width: auto;
    height: 100%;
    object-fit: contain;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.tv-video {
    width: 0;
    height: 0;
    object-fit: fill;
    transform: none;
    z-index: 1;
    opacity: 0;
    -webkit-clip-path: polygon(2.24% 0, 98.88% 6.58%, 100% 98.68%, 0 100%);
    clip-path: polygon(2.24% 0, 98.88% 6.58%, 100% 98.68%, 0 100%);
}

.game-cabinet-video {
    width: 0;
    height: 0;
    object-fit: fill;
    transform: none;
    z-index: 1;
    opacity: 0;
    -webkit-clip-path: polygon(0% 0%, 93.6% 0.88%, 100% 92.92%, 4% 100%);
    clip-path: polygon(0% 0%, 93.6% 0.88%, 100% 92.92%, 4% 100%);

}

.character-img {
    z-index: 2;
}

.base-video {
    z-index: 3;
    opacity: 0;
}

.character-video {
    z-index: 4;
    opacity: 0;
}

.arcade-canvas {
    position: absolute;
    z-index: 3;
    width: 0;
    height: 0;
    background: #030502;
    opacity: 0;
    image-rendering: pixelated;
    pointer-events: none;
    transition: opacity 0.18s ease;
    filter: saturate(1.18) brightness(1.08) drop-shadow(0 0 8px rgba(112, 255, 75, 0.32));
    transform: perspective(520px) rotateX(1.5deg) rotateY(-5deg) skew(-1.5deg, 0.8deg);
    transform-origin: center center;
}

.arcade-canvas.is-active {
    opacity: 1;
    pointer-events: all;
}

.tv-vhs-menu {
    position: absolute;
    z-index: 3;
    width: 0;
    height: 0;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 18px;
    padding: 34px;
    background:
        repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.055) 0 1px, transparent 1px 5px),
        radial-gradient(ellipse at center, rgba(105, 140, 255, 0.18), transparent 55%),
        linear-gradient(135deg, #090417 0%, #13091f 46%, #050509 100%);
    color: #f5f0ff;
    font-family: 'Courier New', monospace;
    text-align: center;
    text-shadow: 0 0 8px rgba(180, 190, 255, 0.85), 2px 2px 0 rgba(255, 0, 120, 0.45);
    image-rendering: pixelated;
    filter: saturate(1.15) contrast(1.08) drop-shadow(0 0 12px rgba(120, 150, 255, 0.32));
    transform: perspective(680px) rotateX(1.2deg) rotateY(0.8deg) skew(-0.7deg, 0.2deg);
    transform-origin: center center;
    transition: opacity 0.22s ease;
}

.tv-vhs-menu.is-active {
    opacity: 1;
    pointer-events: all;
}

.tv-vhs-menu::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(90deg, rgba(255, 0, 120, 0.08), transparent 18%, transparent 82%, rgba(0, 255, 255, 0.08)),
        repeating-linear-gradient(0deg, transparent 0 13px, rgba(255, 255, 255, 0.06) 13px 14px);
    mix-blend-mode: screen;
}

.vhs-tracking,
.vhs-footer {
    position: relative;
    color: #a8f7ff;
    font-size: clamp(11px, 1.7vw, 20px);
    letter-spacing: 0.18em;
}

.vhs-title {
    position: relative;
    color: #fff7b8;
    font-size: clamp(28px, 5vw, 74px);
    font-weight: 900;
    line-height: 0.92;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.vhs-copy {
    position: relative;
    max-width: 72%;
    margin: 0;
    color: #d7e2ff;
    font-size: clamp(12px, 1.7vw, 22px);
    line-height: 1.25;
}

.vhs-action {
    position: relative;
    display: inline-block;
    padding: 13px 18px;
    border: 2px solid rgba(255, 247, 184, 0.82);
    background: rgba(255, 247, 184, 0.12);
    color: #fff7b8;
    font-size: clamp(13px, 2vw, 26px);
    font-weight: 900;
    letter-spacing: 0.08em;
    text-decoration: none;
    text-transform: uppercase;
    box-shadow: 0 0 18px rgba(255, 247, 184, 0.28), inset 0 0 14px rgba(255, 247, 184, 0.1);
}

.vhs-action:hover,
.vhs-action:focus-visible {
    background: rgba(255, 247, 184, 0.24);
    outline: none;
}

.arcade-controls {
    position: fixed;
    top: 50%;
    right: 26px;
    z-index: 210;
    width: min(260px, calc(100vw - 32px));
    padding: 14px 16px;
    transform: translateY(-50%);
    border: 2px solid rgba(128, 255, 94, 0.72);
    background:
        radial-gradient(circle at 18% 12%, rgba(128, 255, 94, 0.16), transparent 28%),
        linear-gradient(180deg, rgba(4, 16, 6, 0.94), rgba(0, 5, 2, 0.96));
    color: #b8ff7b;
    font: 700 13px/1.45 'Courier New', monospace;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    text-shadow: 0 0 7px rgba(128, 255, 94, 0.72);
    box-shadow:
        inset 0 0 18px rgba(128, 255, 94, 0.08),
        0 0 22px rgba(62, 255, 76, 0.14),
        0 8px 26px rgba(0, 0, 0, 0.72);
}

.arcade-controls::before {
    content: 'CABINET INPUT';
    display: block;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(128, 255, 94, 0.45);
    color: #f5ffd0;
    font-size: 15px;
}

.arcade-controls p {
    margin: 0 0 8px;
}

.arcade-controls kbd {
    display: inline-block;
    min-width: 22px;
    margin: 0 3px 3px 0;
    padding: 2px 5px;
    border: 1px solid rgba(245, 255, 208, 0.55);
    background: rgba(245, 255, 208, 0.09);
    color: #f5ffd0;
    font: inherit;
    text-align: center;
}

@media (max-width: 760px) {
    .arcade-controls {
        top: auto;
        right: 12px;
        bottom: 74px;
        left: 12px;
        width: auto;
        transform: none;
        font-size: 11px;
    }
}

.shop-footer {
    text-align: center;
    padding: 20px 0;
    border-top: 2px solid #4a4a6a;
    color: #888;
}

/* Audio controls — dumpster-find aesthetic */
.audio-controls {
    position: fixed;
    bottom: 18px;
    right: 18px;
    z-index: 200;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    background:
        linear-gradient(135deg,
            rgba(87, 62, 38, 0.85) 0%,
            rgba(61, 43, 27, 0.9) 30%,
            rgba(94, 68, 40, 0.85) 50%,
            rgba(52, 38, 22, 0.9) 70%,
            rgba(78, 55, 32, 0.85) 100%);
    border: 1px solid rgba(120, 85, 50, 0.6);
    border-radius: 3px;
    box-shadow:
        inset 0 1px 0 rgba(160, 120, 70, 0.2),
        inset 0 -1px 0 rgba(20, 12, 5, 0.4),
        0 2px 8px rgba(0, 0, 0, 0.6),
        0 0 1px rgba(0, 0, 0, 0.8);
    /* Rust spots via radial gradients */
    background-image:
        radial-gradient(ellipse 8px 6px at 15% 70%, rgba(140, 65, 25, 0.5) 0%, transparent 100%),
        radial-gradient(ellipse 12px 4px at 75% 30%, rgba(120, 55, 20, 0.4) 0%, transparent 100%),
        radial-gradient(ellipse 5px 8px at 50% 80%, rgba(100, 50, 18, 0.35) 0%, transparent 100%),
        radial-gradient(ellipse 6px 3px at 90% 65%, rgba(130, 60, 22, 0.45) 0%, transparent 100%),
        linear-gradient(135deg,
            rgba(87, 62, 38, 0.85) 0%,
            rgba(61, 43, 27, 0.9) 30%,
            rgba(94, 68, 40, 0.85) 50%,
            rgba(52, 38, 22, 0.9) 70%,
            rgba(78, 55, 32, 0.85) 100%);
}

.mute-button {
    background: none;
    border: 1px solid rgba(100, 75, 45, 0.5);
    border-radius: 2px;
    padding: 4px 5px;
    cursor: pointer;
    color: rgba(200, 175, 130, 0.8);
    line-height: 0;
    background:
        linear-gradient(180deg,
            rgba(75, 55, 32, 0.6) 0%,
            rgba(50, 35, 20, 0.8) 100%);
    box-shadow:
        inset 0 1px 0 rgba(140, 110, 65, 0.15),
        0 1px 2px rgba(0, 0, 0, 0.4);
    transition: color 0.2s;
}

.mute-button:hover {
    color: rgba(230, 200, 150, 0.95);
    border-color: rgba(140, 100, 55, 0.7);
}

.mute-button:active {
    box-shadow:
        inset 0 1px 3px rgba(0, 0, 0, 0.5);
}

.mute-button.is-muted .sound-waves {
    display: none;
}

.mute-button.is-muted .mute-x {
    display: inline !important;
    stroke: rgba(180, 90, 60, 0.9);
}

.volume-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 80px;
    height: 6px;
    border-radius: 1px;
    outline: none;
    cursor: pointer;
    background:
        linear-gradient(180deg,
            rgba(55, 40, 22, 0.9) 0%,
            rgba(70, 50, 28, 0.9) 50%,
            rgba(45, 32, 18, 0.9) 100%);
    border: 1px solid rgba(90, 65, 35, 0.5);
    box-shadow:
        inset 0 1px 2px rgba(0, 0, 0, 0.5);
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 14px;
    height: 14px;
    border-radius: 2px;
    cursor: pointer;
    background:
        radial-gradient(ellipse at 35% 35%,
            rgba(160, 120, 70, 0.9) 0%,
            rgba(110, 78, 42, 0.95) 40%,
            rgba(80, 55, 30, 0.95) 100%);
    border: 1px solid rgba(60, 42, 22, 0.8);
    box-shadow:
        inset 0 1px 0 rgba(180, 140, 85, 0.3),
        0 1px 3px rgba(0, 0, 0, 0.5);
}

.volume-slider::-moz-range-thumb {
    width: 14px;
    height: 14px;
    border-radius: 2px;
    cursor: pointer;
    background:
        radial-gradient(ellipse at 35% 35%,
            rgba(160, 120, 70, 0.9) 0%,
            rgba(110, 78, 42, 0.95) 40%,
            rgba(80, 55, 30, 0.95) 100%);
    border: 1px solid rgba(60, 42, 22, 0.8);
    box-shadow:
        inset 0 1px 0 rgba(180, 140, 85, 0.3),
        0 1px 3px rgba(0, 0, 0, 0.5);
}

/* Eye-opening reveal — two black halves wipe vertically */
.eye-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 9999;
    pointer-events: none;
}

.eye-overlay.done {
    display: none;
}

.eye-overlay.closing {
    display: block;
}

.eyelid {
    position: absolute;
    left: -2%;
    width: 104%;
    height: 70%;
    background: #000;
    filter: blur(10px);
}

.eyelid-top {
    top: -15%;
    animation: lidUp 2s ease-in-out 0.3s forwards;
}

.eyelid-bottom {
    bottom: -15%;
    animation: lidDown 2s ease-in-out 0.3s forwards;
}

.eye-overlay.closing .eyelid-top {
    animation: lidCloseTop 1.25s ease-in-out forwards;
}

.eye-overlay.closing .eyelid-bottom {
    animation: lidCloseBottom 1.25s ease-in-out forwards;
}

@keyframes lidUp {
    0% { transform: translateY(0); }
    100% { transform: translateY(-100%); }
}

@keyframes lidDown {
    0% { transform: translateY(0); }
    100% { transform: translateY(100%); }
}

@keyframes lidCloseTop {
    0% { transform: translateY(-100%); }
    100% { transform: translateY(0); }
}

@keyframes lidCloseBottom {
    0% { transform: translateY(100%); }
    100% { transform: translateY(0); }
}
