
.exp-wrap {
    min-height: 70vh;
    padding: 10px 0 50px;
    position: relative;
}


.archive-boot {
    font-family: Muli, sans-serif;
    color: #0f0;
    background: #000;
    border: 2px solid #0f0;
    border-radius: 8px;
    padding: 20px;
    max-width: 640px;
    margin: 0 auto 30px;
    text-align: left;
    box-shadow: 0 0 30px rgba(0, 255, 0, 0.15);
    min-height: 180px;
}

.archive-boot .boot-line {
    opacity: 0;
    animation: bootFade 0.4s forwards;
    margin: 4px 0;
    font-size: 14px;
}

.archive-boot .boot-cursor {
    display: inline-block;
    width: 8px;
    height: 14px;
    background: #0f0;
    animation: blink 0.8s infinite;
    vertical-align: middle;
}

@keyframes bootFade {
    to { opacity: 1; }
}

@keyframes blink {
    50% { opacity: 0; }
}

.archive-scene {
    position: relative;
    max-width: 720px;
    margin: 0 auto;
}

.archive-scene::before {
    content: '';
    position: absolute;
    inset: -20px;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(0, 0, 0, 0.03) 2px,
        rgba(0, 0, 0, 0.03) 4px
    );
    pointer-events: none;
    z-index: 2;
    border-radius: 4px;
}

.archive-header {
    text-align: center;
    margin-bottom: 28px;
}

.archive-stamp {
    display: inline-block;
    border: 3px double #c0392b;
    color: #c0392b;
    font-family: Muli, sans-serif;
    font-weight: bold;
    font-size: 22px;
    padding: 8px 24px;
    transform: rotate(-4deg);
    letter-spacing: 4px;
    text-transform: uppercase;
    animation: stampIn 0.6s ease-out;
}

@keyframes stampIn {
    from { transform: rotate(-4deg) scale(2); opacity: 0; }
    to { transform: rotate(-4deg) scale(1); opacity: 1; }
}

.archive-meta {
    color: rgba(var(--t-glow-rgb), 0.5);
    font-family: Muli, sans-serif;
    font-size: 13px;
    margin-top: 10px;
}

.archive-progress {
    height: 4px;
    background: rgba(var(--t-panel-rgb), 0.5);
    border-radius: 2px;
    margin: 20px auto;
    max-width: 400px;
    overflow: hidden;
}

.archive-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #c0392b, var(--t-accent));
    transition: width 0.8s ease;
    border-radius: 2px;
}

.archive-card {
    background: #f4e4bc;
    color: #1a1a2e;
    border-radius: 2px;
    padding: 24px 28px;
    margin-bottom: 20px;
    text-align: left;
    position: relative;
    box-shadow: 4px 4px 0 rgba(0,0,0,0.3), inset 0 0 60px rgba(139,69,19,0.05);
    font-family: Muli, sans-serif;
    transition: transform 0.3s, box-shadow 0.3s;
}

.archive-card.unlocked {
    animation: fileReveal 0.8s ease-out;
}

@keyframes fileReveal {
    0% { filter: brightness(2) blur(4px); }
    100% { filter: none; }
}

.archive-card.locked {
    background: #2c2c2c;
    color: #666;
}

.archive-card-label {
    font-size: 11px;
    letter-spacing: 3px;
    color: #c0392b;
    font-weight: bold;
    margin-bottom: 12px;
    border-bottom: 1px dashed #c0392b;
    padding-bottom: 6px;
}

.archive-card.locked .archive-card-label {
    color: #888;
}

.archive-redacted {
    font-size: 16px;
    letter-spacing: 2px;
    line-height: 1.8;
    color: #555;
}

.archive-revealed {
    font-size: 15px;
    line-height: 1.7;
    color: #1a1a2e;
}

.archive-unlock-row {
    margin-top: 16px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
}

.archive-challenge {
    font-size: 12px;
    color: var(--t-accent);
    margin-top: 10px;
    font-style: italic;
}

.archive-input {
    flex: 1;
    min-width: 140px;
    background: rgba(var(--t-panel-rgb), 0.9);
    border: 1px solid var(--t-accent);
    color: var(--t-accent);
    padding: 8px 12px;
    font-family: Muli, sans-serif;
    font-size: 14px;
    border-radius: 4px;
    outline: none;
}

.archive-card.locked .archive-input {
    background: #1a1a1a;
    border-color: #555;
    color: #aaa;
}

.archive-decrypt-btn {
    background: #c0392b;
    color: #fff;
    border: none;
    padding: 8px 18px;
    font-family: Muli, sans-serif;
    font-size: 13px;
    font-weight: bold;
    cursor: pointer;
    letter-spacing: 1px;
    border-radius: 4px;
    transition: background 0.2s;
}

.archive-decrypt-btn:hover {
    background: #e74c3c;
}

.archive-decrypt-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.archive-shake {
    animation: shake 0.4s;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-8px); }
    75% { transform: translateX(8px); }
}

.archive-complete {
    text-align: center;
    padding: 30px;
    border: 2px solid var(--t-accent);
    border-radius: 12px;
    background: rgba(var(--t-panel-rgb), 0.9);
    color: var(--t-accent);
    font-family: Muli, sans-serif;
    animation: glowPulse 2s infinite alternate;
    margin-top: 10px;
}

@keyframes glowPulse {
    from { box-shadow: 0 0 10px rgba(var(--t-accent-rgb), 0.3); }
    to { box-shadow: 0 0 30px rgba(var(--t-accent-rgb), 0.6); }
}

.archive-error {
    color: #e74c3c;
    font-size: 12px;
    margin-top: 6px;
}


.stars-scene {
    position: relative;
    width: 100%;
    max-width: 1260px;
    margin: 0 auto;
}

.stars-header {
    text-align: center;
    margin-bottom: 16px;
}

.stars-title {
    font-family: Muli, sans-serif;
    color: var(--t-accent);
    font-size: 26px;
    margin: 0;
}

.stars-sub {
    color: rgba(var(--t-glow-rgb), 0.5);
    font-size: 14px;
    margin-top: 6px;
}

.stars-canvas-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(var(--t-accent-rgb), 0.3);
    box-shadow: 0 0 40px rgba(var(--t-panel-rgb), 0.8), inset 0 0 80px rgba(0, 20, 60, 0.5);
}

#starCanvas {
    width: 100%;
    height: 100%;
    display: block;
    cursor: crosshair;
}

.stars-panel {
    position: absolute;
    bottom: 16px;
    left: 16px;
    right: 16px;
    background: rgba(0, 20, 60, 0.92);
    border: 1px solid var(--t-accent);
    border-radius: 12px;
    padding: 16px 20px;
    text-align: left;
    color: var(--t-accent);
    font-family: Muli, sans-serif;
    transform: translateY(120%);
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    pointer-events: none;
    z-index: 5;
}

.stars-panel.visible {
    transform: translateY(0);
    pointer-events: auto;
}

.stars-panel h3 {
    margin: 0 0 6px;
    font-size: 18px;
    color: #fff;
}

.stars-panel .star-label {
    font-size: 11px;
    letter-spacing: 3px;
    color: rgba(var(--t-glow-rgb), 0.5);
    text-transform: uppercase;
}

.stars-panel p {
    margin: 10px 0 0;
    font-size: 14px;
    line-height: 1.6;
    color: rgba(var(--t-glow-rgb), 0.85);
}

.stars-hint {
    text-align: center;
    color: rgba(var(--t-glow-rgb), 0.4);
    font-size: 13px;
    margin-top: 12px;
    font-family: Muli, sans-serif;
}

.stars-constellation-badge {
    display: inline-block;
    margin-top: 8px;
    padding: 4px 14px;
    border: 1px solid rgba(var(--t-accent-rgb), 0.4);
    border-radius: 20px;
    font-size: 12px;
    color: rgba(var(--t-glow-rgb), 0.6);
}


.cassette-scene {
    max-width: 820px;
    margin: 0 auto;
    padding-bottom: 40px;
}

.cassette-header {
    text-align: center;
    margin-bottom: 20px;
}

.cassette-title {
    font-family: Muli, sans-serif;
    color: var(--t-accent);
    font-size: 26px;
    margin: 0;
}

.cassette-sub {
    color: rgba(var(--t-glow-rgb), 0.5);
    font-size: 14px;
    margin-top: 6px;
}

.cassette-stage {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 16px;
    align-items: end;
    margin-bottom: 28px;
    background: rgba(0, 20, 50, 0.6);
    border: 1px solid rgba(var(--t-accent-rgb), 0.25);
    border-radius: 16px;
    padding: 20px;
}

.crt-screen {
    position: relative;
    background: #0a1a0a;
    border: 3px solid #333;
    border-radius: 8px;
    min-height: 160px;
    overflow: hidden;
    box-shadow: inset 0 0 40px rgba(0,0,0,0.8), 0 0 20px rgba(0,255,0,0.05);
}

.crt-scanlines {
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(0,0,0,0.15) 2px,
        rgba(0,0,0,0.15) 4px
    );
    pointer-events: none;
    z-index: 2;
}

.crt-content {
    position: relative;
    z-index: 1;
    padding: 16px;
    text-align: left;
    font-family: Muli, sans-serif;
    color: #3f3;
    font-size: 14px;
    line-height: 1.6;
    min-height: 130px;
}

.crt-idle {
    opacity: 0.5;
    animation: crtBlink 1.2s infinite;
}

@keyframes crtBlink {
    50% { opacity: 0.2; }
}

.crt-heading {
    display: block;
    color: #5f5;
    font-size: 16px;
    margin-bottom: 10px;
}

.crt-story {
    color: #2a2;
    margin: 0;
}

.crt-noise {
    color: #484;
    letter-spacing: 2px;
}

.crt-static {
    position: absolute;
    inset: 0;
    z-index: 3;
    opacity: 0;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
    transition: opacity 0.1s;
}

.crt-static.active {
    opacity: 0.85;
    animation: staticFlicker 0.15s infinite;
}

@keyframes staticFlicker {
    0%, 100% { opacity: 0.7; }
    50% { opacity: 0.95; }
}

.vu-meters {
    display: flex;
    gap: 6px;
    align-items: flex-end;
    height: 100px;
    padding-bottom: 4px;
}

.vu-bar {
    width: 14px;
    height: 8%;
    background: linear-gradient(to top, #1a5c1a, #3f3, #ff0);
    border-radius: 2px 2px 0 0;
    transition: height 0.08s ease;
    box-shadow: 0 0 8px rgba(0,255,0,0.3);
}

.boombox-deck {
    min-width: 100px;
}

.deck-slot {
    background: #1a1a1a;
    border: 2px inset #444;
    border-radius: 6px;
    min-height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
}

.deck-empty {
    font-family: Muli, sans-serif;
    font-size: 11px;
    color: #555;
    text-transform: uppercase;
}

.tape-in-deck {
    background: var(--tape-color, #333);
    border: 1px solid var(--tape-accent, #888);
    border-radius: 4px;
    padding: 8px 10px;
    font-family: Muli, sans-serif;
    font-size: 10px;
    color: var(--tape-accent, #fff);
    animation: tapeInsert 0.4s ease-out;
}

@keyframes tapeInsert {
    from { transform: translateY(-20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.cassette-rack {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    justify-content: center;
}

.cassette-tape {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    animation: tapeAppear 0.5s ease-out backwards;
    transition: transform 0.2s;
}

.cassette-tape:hover {
    transform: translateY(-6px) scale(1.04);
}

.cassette-tape.active .tape-body {
    box-shadow: 0 0 20px var(--tape-accent, var(--t-accent));
}

@keyframes tapeAppear {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

.tape-body {
    width: 130px;
    background: var(--tape-color, #444);
    border: 2px solid var(--tape-accent, #888);
    border-radius: 6px;
    padding: 10px 8px 8px;
    box-shadow: 3px 3px 0 rgba(0,0,0,0.4);
}

.tape-window {
    background: #111;
    border-radius: 3px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding: 0 12px;
    margin-bottom: 8px;
}

.tape-reel {
    width: 22px;
    height: 22px;
    border: 2px solid #666;
    border-radius: 50%;
    position: relative;
}

.cassette-tape.active .tape-reel {
    animation: reelSpin 1s linear infinite;
}

.tape-reel::after {
    content: '';
    position: absolute;
    inset: 4px;
    background: #333;
    border-radius: 50%;
}

@keyframes reelSpin {
    to { transform: rotate(360deg); }
}

.tape-label {
    display: block;
    font-family: Muli, sans-serif;
    font-size: 9px;
    color: var(--tape-accent, #ccc);
    text-align: center;
    letter-spacing: 0.5px;
    line-height: 1.3;
}

.cassette-hint {
    text-align: center;
    color: rgba(var(--t-glow-rgb), 0.4);
    font-size: 13px;
    margin-top: 16px;
    font-family: Muli, sans-serif;
}

@media (max-width: 700px) {
    .cassette-stage {
        grid-template-columns: 1fr;
    }
    .vu-meters, .boombox-deck {
        justify-content: center;
    }
    .stars-panel { left: 8px; right: 8px; bottom: 8px; padding: 12px; }
    .tape-body { width: 110px; }
}
