/* PS1 / 5th Gen Console Style */

body {
    background-color: #000;
    color: #fff;
    font-family: 'Share Tech Mono', monospace;
    margin: 0;
    overflow-x: hidden;
    cursor: none;
    /* Hide default cursor for Diamond */
}

/* On Mobile, restore default cursor */
@media (max-width: 768px) {
    body {
        cursor: default;
    }
}

/* Boot Screen Void */
.background-void {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 120%, #ff6a00 0%, #8b0000 30%, #000 70%);
    z-index: -2;
}

/* Scanlines */
.scanlines {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(transparent 0, transparent 2px, rgba(0, 0, 0, 0.3) 3px);
    pointer-events: none;
    z-index: 1000;
}

/* Floating Chaos (Mascots) - Behind Console */
.floating-chaos {
    position: fixed;
    z-index: 0;
    pointer-events: none;
    mix-blend-mode: screen;
    animation: flyAround 20s infinite linear;
}

/* Neon Symbols (Bouncing Background) */
#neon-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    /* Behind console */
    pointer-events: none;
}

.neon-symbol {
    position: absolute;
    width: 60px;
    opacity: 0.8;
    /* Verified Animation: Standard float with rotations */
    animation: floatStandard 10s infinite linear;
}

/* Standard Floating Animation (Reliable) */
@keyframes floatStandard {
    0% {
        transform: translate(0, 0) rotate(0deg);
    }

    25% {
        transform: translate(50px, -50px) rotate(90deg);
    }

    50% {
        transform: translate(0, -100px) rotate(180deg);
    }

    75% {
        transform: translate(-50px, -50px) rotate(270deg);
    }

    100% {
        transform: translate(0, 0) rotate(360deg);
    }
}

/* Previous Animations */
@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

@keyframes flyAround {
    0% {
        transform: translate(0, 0) rotate(0deg) scale(1);
    }

    25% {
        transform: translate(20vw, 10vh) rotate(90deg) scale(1.2);
    }

    50% {
        transform: translate(-10vw, 30vh) rotate(180deg) scale(0.8);
    }

    75% {
        transform: translate(15vw, -20vh) rotate(270deg) scale(1.1);
    }

    100% {
        transform: translate(0, 0) rotate(360deg) scale(1);
    }
}

/* PS ONE CONSOLE STYLING (Machine Look) */
.console-wrapper {
    display: flex;
    justify-content: center;
    padding-top: 50px;
    position: relative;
    z-index: 100;
    /* High Z-Index to block background */
}

.ps1-console {
    width: 380px;
    height: 320px;
    background: #e0e0e0;
    /* Solid Paint */
    border-radius: 40px;
    box-shadow:
        inset 5px 5px 15px rgba(255, 255, 255, 0.9),
        inset -5px -5px 15px rgba(0, 0, 0, 0.3),
        0 30px 60px rgba(0, 0, 0, 0.8),
        /* Drop Shadow */
        0 0 0 2px #d0d0d0;
    /* Hard Edge */
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
}

/* Side Vents (Machine Detail) */
.side-vents {
    position: absolute;
    top: 80px;
    width: 20px;
    height: 150px;
    background: repeating-linear-gradient(0deg,
            #aaa,
            #aaa 2px,
            #e0e0e0 2px,
            #e0e0e0 6px);
    border-radius: 5px;
    box-shadow: inset 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.left-vent {
    left: 15px;
}

.right-vent {
    right: 15px;
}

/* Branding */
.sony-logo {
    font-family: serif;
    font-weight: bold;
    color: #999;
    font-size: 1.2rem;
    letter-spacing: 2px;
    margin-bottom: 10px;
    opacity: 0.8;
    text-shadow: 1px 1px 0 rgba(255, 255, 255, 1);
}

/* The Lid (Mechanical Circle) */
.console-lid {
    width: 260px;
    height: 260px;
    background: #e8e8e8;
    border-radius: 50%;
    /* Mechanical Groove */
    box-shadow:
        inset 0 0 0 2px #fff,
        inset 0 0 0 4px #ccc,
        0 5px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 5;
    cursor: none;
    /* Using custom diamond */
    transition: transform 0.1s;
}

.console-lid:active {
    transform: scale(0.98);
}

.lid-logo {
    font-family: sans-serif;
    font-weight: bold;
    color: #888;
    margin-bottom: 15px;
    font-size: 0.8rem;
    letter-spacing: 1px;
}

/* Disc & Animations */
.disc-area img.spin-disc {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    animation: spin 3s infinite linear;
}

@keyframes spin {
    100% {
        transform: rotate(360deg);
    }
}

.screen-text {
    font-family: 'Orbitron', sans-serif;
    color: #333;
    font-size: 1.2rem;
    margin: 10px 0 5px;
    text-shadow: 1px 1px 0 #fff;
}

.blink-text {
    font-family: 'Press Start 2P', cursive;
    font-size: 0.6rem;
    color: #d0006f;
    animation: blink 1s infinite;
}

@keyframes blink {
    50% {
        opacity: 0;
    }
}

.lid-click-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    border-radius: 50%;
    z-index: 10;
}

/* Power & Open Buttons (Tactile) */
.console-btn {
    position: absolute;
    width: 70px;
    height: 70px;
    background: radial-gradient(circle at 30% 30%, #fff, #ddd);
    border-radius: 50%;
    box-shadow:
        0 5px 10px rgba(0, 0, 0, 0.2),
        inset 0 -2px 5px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    cursor: none;
    border: 1px solid #ccc;
}

.console-btn:active {
    background: #ddd;
    transform: translateY(2px);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.power-btn {
    bottom: 50px;
    left: 30px;
}

.open-btn {
    bottom: 50px;
    right: 30px;
}

.btn-icon {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 2px;
}

.power-btn .btn-icon {
    color: #55dd55;
    text-shadow: 0 0 5px rgba(85, 221, 85, 0.5);
}

.open-btn .btn-icon {
    color: #5555ff;
    text-shadow: 0 0 5px rgba(85, 85, 255, 0.5);
}

.btn-label {
    font-size: 0.5rem;
    color: #999;
    font-family: sans-serif;
    font-weight: bold;
}

/* Front Lip (Detail) */
.console-front-lip {
    position: absolute;
    bottom: -15px;
    width: 80%;
    height: 30px;
    background: #d8d8d8;
    border-bottom-left-radius: 20px;
    border-bottom-right-radius: 20px;
    box-shadow:
        0 10px 20px rgba(0, 0, 0, 0.3),
        inset 0 2px 5px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-between;
    padding: 0 40px;
    align-items: center;
}

.mem-card-slot {
    font-size: 0.4rem;
    color: #888;
    font-family: sans-serif;
    letter-spacing: 1px;
    text-transform: uppercase;
    background: #ccc;
    padding: 2px 5px;
    border-radius: 2px;
    box-shadow: inset 1px 1px 2px rgba(0, 0, 0, 0.2);
}

/* CRATE LINKS */
.crate-section {
    display: flex;
    justify-content: center;
    gap: 50px;
    margin: 60px auto;
    perspective: 1000px;
    position: relative;
    z-index: 100;
}

.crate-box {
    position: relative;
    width: 120px;
    height: 120px;
    transition: transform 0.2s;
    animation: wumpaBounce 2s infinite ease-in-out;
    text-decoration: none;
    cursor: none;
}

.crate-box:hover {
    transform: scale(1.1);
}

.crate-img {
    width: 100%;
    height: 100%;
    image-rendering: pixelated;
    filter: drop-shadow(0 10px 10px rgba(0, 0, 0, 0.5));
}

.crate-label {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-5deg);
    font-family: 'Press Start 2P', cursive;
    font-size: 0.9rem;
    text-align: center;
    color: #fff;
    text-shadow: 2px 2px 0 #000;
    border: 2px solid #fff;
    padding: 5px;
    background: rgba(0, 0, 0, 0.5);
    white-space: nowrap;
}

@keyframes wumpaBounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }
}


/* DIAMOND CURSOR */
#cursor-diamond {
    position: fixed;
    width: 60px;
    /* Increased size to look better */
    pointer-events: none;
    z-index: 9999;
    filter: drop-shadow(0 0 15px #ffd700);
    /* Golden GLOW */
    transition: transform 0.05s linear;
    /* Smoother follow */
    transform: translate(-50%, -50%);
    animation: glimmer 2s infinite alternate ease-in-out;
}

/* Glimmer Animation */
@keyframes glimmer {
    0% {
        filter: drop-shadow(0 0 10px #ffaa00) brightness(1);
        transform: translate(-50%, -50%) scale(1);
    }

    100% {
        filter: drop-shadow(0 0 25px #ffff00) brightness(1.5);
        transform: translate(-50%, -50%) scale(1.1);
    }
}

/* Sparkle Trail Particles */
.sparkle {
    position: fixed;
    width: 10px;
    height: 10px;
    background: #ffff00;
    border-radius: 50%;
    pointer-events: none;
    z-index: 9998;
    animation: sparkleFade 1s linear forwards;
    filter: blur(1px);
}

@keyframes sparkleFade {
    0% {
        opacity: 1;
        transform: translate(0, 0) scale(1);
    }

    100% {
        opacity: 0;
        transform: translate(var(--tx), var(--ty)) scale(0);
    }
}

/* REINFORCE MOBILE HIDING for Cursor */
@media (max-width: 768px) {

    #cursor-diamond,
    .sparkle {
        display: none !important;
    }
}


/* FIGHTERS ROW & REST */
.team-container {
    text-align: center;
    padding-bottom: 100px;
    z-index: 100;
    position: relative;
}

.team-title {
    font-family: 'Orbitron', sans-serif;
    color: #ffd700;
    text-shadow: 0 0 10px #ff0000;
    font-size: 2rem;
    margin-bottom: 30px;
    letter-spacing: 5px;
    animation: blink 0.5s infinite;
}

.fighters-row {
    display: flex;
    justify-content: center;
    gap: 30px;
    align-items: center;
    flex-wrap: wrap;
}

.fighter-card {
    background: rgba(0, 0, 0, 0.8);
    border: 2px solid #555;
    padding: 10px;
    width: 150px;
    position: relative;
    transition: transform 0.2s;
    cursor: none;
}

.fighter-card:hover {
    transform: scale(1.1);
    border-color: #fff;
}

.p1 {
    border-color: #fe0000;
    box-shadow: 0 0 15px rgba(254, 0, 0, 0.3);
}

.p2 {
    border-color: #0200d6;
    box-shadow: 0 0 15px rgba(2, 0, 214, 0.3);
}

.p-indicator {
    position: absolute;
    top: -15px;
    font-weight: bold;
    padding: 2px 5px;
    font-size: 0.8rem;
    animation: bounce 1s infinite;
}

.p1 .p-indicator {
    left: 0;
    background: #fe0000;
    color: white;
}

.p2 .p-indicator {
    right: 0;
    background: #0200d6;
    color: white;
}

.fighter-portrait {
    background: #222;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: #555;
    border: 1px inset #555;
    margin-bottom: 10px;
}

.fighter-name {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.fighter-stats {
    font-size: 0.7rem;
    text-align: left;
    color: #aaa;
}

.stat-bar {
    height: 5px;
    background: #00ff00;
    margin-bottom: 5px;
}

.vs-badge {
    font-family: 'Press Start 2P', cursive;
    font-size: 2rem;
    color: #fff;
    font-style: italic;
    text-shadow: 3px 3px 0 #000;
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-5px);
    }
}

/* Chaos Text */
.chaos-section {
    text-align: center;
    padding: 20px;
    margin-bottom: 20px;
    z-index: 10;
    position: relative;
}

.glitch-text {
    font-family: 'Share Tech Mono', monospace;
    font-size: 1.5rem;
    color: #555;
    margin: 10px;
}

/* Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 2000;
    display: none;
    justify-content: center;
    align-items: center;
    cursor: default;
}

.modal-overlay.active {
    display: flex;
    animation: fadeIn 0.2s;
}

.rpg-window {
    width: 600px;
    max-width: 95%;
    background: linear-gradient(to bottom, #000040 0%, #0000a0 100%);
    border: 4px double #fff;
    border-radius: 4px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.8);
    color: #fff;
    padding: 20px;
    font-family: 'Share Tech Mono', monospace;
    position: relative;
    animation: zoomIn 0.2s;
}

.rpg-close {
    position: absolute;
    top: 5px;
    right: 10px;
    cursor: pointer;
    font-size: 1.2rem;
    color: #aaa;
}

.rpg-header-row {
    display: flex;
    justify-content: space-between;
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 10px;
    margin-bottom: 20px;
    align-items: flex-end;
}

.rpg-name {
    font-size: 2.5rem;
    font-family: 'Orbitron', sans-serif;
    color: #00ff00;
    text-shadow: 2px 2px 0 #000;
}

.rpg-lvl {
    font-size: 1.5rem;
}

.rpg-main-content {
    display: flex;
    gap: 20px;
}

.rpg-portrait-box {
    width: 150px;
    text-align: center;
}

.pixel-face {
    width: 100%;
    height: 150px;
    background: #222;
    border: 2px solid #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: #555;
    margin-bottom: 10px;
}

.rpg-job-class {
    color: #00ffff;
    font-size: 1.1rem;
    text-shadow: 1px 1px 0 #000;
}

.rpg-stats-box {
    flex: 1;
}

.stat-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
    font-size: 1.2rem;
}

.stat-bar-container {
    background: #333;
    height: 8px;
    width: 100%;
    margin-bottom: 10px;
    border: 1px solid #777;
}

.hp-bar {
    background: linear-gradient(to right, #ff0000, #ff8888);
    height: 100%;
}

.mp-bar {
    background: linear-gradient(to right, #00aa00, #00ff00);
    height: 100%;
}

.play-font {
    font-family: 'Press Start 2P', cursive;
    font-size: 0.8rem;
}

.rpg-bottom-box {
    margin-top: 20px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 10px;
}

.limit-label {
    font-size: 0.8rem;
    color: #ffff00;
    margin-bottom: 5px;
}

.limit-description {
    font-size: 0.9rem;
    color: #eee;
}

.marquee-container {
    background: #000;
    color: #00ff00;
    font-family: 'Share Tech Mono', monospace;
    font-size: 1.2rem;
    padding: 10px;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    border-top: 2px solid #333;
    z-index: 999;
}

/* FLOATING JEWEL CASE (3D Object) */
.floating-jewel-case {
    position: absolute;
    top: 30%;
    left: 10%;
    width: 250px;
    height: 250px;
    z-index: 50;
    cursor: pointer;
    perspective: 800px;
    animation: floatCase 12s ease-in-out infinite;
    transform-style: preserve-3d;
}

.floating-jewel-case:hover {
    animation-play-state: paused;
    z-index: 1000;
}

@keyframes floatCase {
    0% {
        transform: translate(0, 0) rotateY(-20deg) rotateZ(5deg);
    }

    50% {
        transform: translate(30px, -40px) rotateY(-10deg) rotateZ(-5deg);
    }

    100% {
        transform: translate(0, 0) rotateY(-20deg) rotateZ(5deg);
    }
}

.jewel-spine {
    position: absolute;
    left: 0;
    top: 0;
    width: 25px;
    height: 250px;
    background: #111;
    color: #fff;
    transform: rotateY(-90deg) translateZ(12.5px);
    transform-origin: left;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    border: 1px solid #444;
    padding: 10px 0;
    box-shadow: inset 2px 0 5px rgba(255, 255, 255, 0.1);
}

.spine-top,
.spine-bottom {
    font-size: 0.5rem;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    font-family: sans-serif;
    font-weight: bold;
}

.spine-mid {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    flex: 1;
    justify-content: center;
}

.spine-logo {
    width: 18px;
    height: auto;
}

.spine-text {
    writing-mode: vertical-rl;
    text-orientation: mixed;
    font-family: 'Impact', sans-serif;
    letter-spacing: 2px;
    font-size: 1.2rem;
}

.jewel-front {
    position: absolute;
    left: 25px;
    top: 0;
    width: 250px;
    height: 250px;
    background: #000;
    transform: translateZ(12px);
    border: 1px solid #333;
    box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.5);
}

.jewel-cover-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.jewel-reflection {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(120deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.2) 40%, rgba(255, 255, 255, 0) 60%);
    pointer-events: none;
}


/* MEGA MAN STYLE JEWEL CASE OVERRIDE */
.floating-jewel-case {
    width: 260px;
    height: 260px;
    animation: floatCase 15s ease-in-out infinite;
    /* Adjust initial rotation to show spine clearly */
    transform: rotateY(-30deg) rotateX(10deg);
}

@keyframes floatCase {
    0% {
        transform: translate(0, 0) rotateY(-30deg) rotateX(10deg);
    }

    50% {
        transform: translate(50px, -30px) rotateY(-20deg) rotateX(5deg);
    }

    100% {
        transform: translate(0, 0) rotateY(-30deg) rotateX(10deg);
    }
}

/* SPINE REBUILD */
.jewel-spine {
    background: #000;
    /* Solid Black Spine */
    width: 30px;
    /* Thicker */
    padding: 5px 0;
    box-shadow: inset 3px 0 5px rgba(255, 255, 255, 0.2);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #444;
    border-bottom: 1px solid #444;
}

.spine-region {
    background: #fff;
    color: #000;
    font-size: 0.4rem;
    font-weight: bold;
    padding: 2px 4px;
    width: 80%;
    text-align: center;
    border-radius: 2px;
}

.spine-serial {
    color: #fff;
    font-family: monospace;
    font-size: 0.5rem;
    letter-spacing: 1px;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    margin-top: 5px;
}

.spine-title {
    color: #fff;
    font-family: 'Impact', sans-serif;
    font-size: 1.4rem;
    letter-spacing: 3px;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    flex: 1;
    /* Take up center space */
    text-align: center;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
    margin: 10px 0;
}

.spine-branding {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    margin-bottom: 5px;
}

.spine-logo-img {
    width: 20px;
    height: auto;
    filter: drop-shadow(0 0 2px #ff00ff);
}

.spine-brand-text {
    font-family: sans-serif;
    font-weight: bold;
    font-size: 0.4rem;
    color: #fff;
    text-align: center;
    writing-mode: horizontal-tb;
    /* Horizontal text at bottom */
    width: 100%;
}

/* FRONT COVER UPDATES */
.jewel-front {
    left: 30px;
    /* Offset by spine width */
    background: #000;
    border-left: 2px solid #222;
    /* Hinge line */
}

/* Black Strip on Left Side of Cover (Standard PS1) */
.jewel-side-strip {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 25px;
    background: #111;
    z-index: 10;
    border-right: 1px solid #333;
}

.jewel-cover-img {
    padding-left: 25px;
    /* Push image past strip */
}

/* BACK OF CASE (For 3D depth) */
.jewel-back {
    position: absolute;
    left: 30px;
    top: 0;
    width: 260px;
    height: 260px;
    background: #111;
    transform: translateZ(-15px);
    box-shadow: 10px 10px 30px rgba(0, 0, 0, 0.8);
}


/* V2 JEWEL CASE ADJUSTMENTS */
.floating-jewel-case {
    top: 25%;
    left: 8%;
    /* Adjust position higher and left */
    width: 280px;
    height: 280px;
    animation: floatCaseV2 10s ease-in-out infinite;
}

@keyframes floatCaseV2 {
    0% {
        transform: translate(0, 0) rotateY(-25deg) rotateX(5deg) rotateZ(2deg);
    }

    50% {
        transform: translate(20px, -20px) rotateY(-15deg) rotateX(0deg) rotateZ(-2deg);
    }

    100% {
        transform: translate(0, 0) rotateY(-25deg) rotateX(5deg) rotateZ(2deg);
    }
}

/* SPINE V2 (Specific White/Black Layout) */
.jewel-spine {
    background: #000;
    width: 34px;
    /* Slightly thicker */
    padding: 0;
    /* Clear padding for blocks */
    border: none;
    border-right: 1px solid #333;
}

.spine-top-block {
    background: #fff;
    color: #000;
    width: 100%;
    height: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 0.5rem;
    font-weight: bold;
    border-bottom: 2px solid #000;
    line-height: 1;
}

.spine-center-text {
    flex: 1;
    color: #fff;
    font-family: 'Impact', 'Arial Black', sans-serif;
    letter-spacing: 4px;
    /* Wider spacing */
    font-size: 1.6rem;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 10px 0;
}

.spine-bottom-block {
    background: #fff;
    /* Bottom is often black with logo, but user ref had weird white/black mix. Let's make it Black but distinct. */
    background: #000;
    width: 100%;
    padding: 10px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    border-top: 1px solid #444;
}

.spine-logo-v2 {
    width: 25px;
    height: auto;
}

.spine-code {
    color: #fff;
    font-size: 0.4rem;
    writing-mode: vertical-rl;
    margin: 4px 0;
}

.spine-publisher {
    color: #fff;
    font-size: 0.4rem;
    font-weight: bold;
    text-align: center;
    width: 80%;
}


/* FINAL POLISH: JEWEL CASE ANIMATION */
.floating-jewel-case {
    /* Adjusted to be 'neater' - float gently */
    top: 22%;
    left: 8%;
    animation: floatCaseFinal 18s ease-in-out infinite;
}

@keyframes floatCaseFinal {
    0% {
        transform: translate(0, 0) rotateY(-25deg) rotateX(5deg);
    }

    50% {
        transform: translate(10px, -15px) rotateY(-20deg) rotateX(2deg);
    }

    /* Less movement */
    100% {
        transform: translate(0, 0) rotateY(-25deg) rotateX(5deg);
    }
}

/* Ensure Spine Top is White as per ref */
.spine-top-block {
    background: #fff;
    color: #000;
}



/* SINGLE ASSET JEWEL CASE (PS1 CRATE STYLE) */
.floating-jewel-case {
    position: absolute;
    top: 40%;
    left: 15%;
    /* Neatly next to console */
    width: 250px;
    height: auto;
    cursor: pointer;
    z-index: 50;
    /* Match Crate Bounce Animation */
    animation: wumpaBounce 3s ease-in-out infinite;
}

.floating-jewel-case:hover {
    transform: scale(1.05);
    /* Simple scale on hover like crates */
}

.jewel-render-img {
    width: 100%;
    height: auto;
    /* EXACT PS1 STYLE RENDERING */
    image-rendering: pixelated;
    filter: drop-shadow(0 10px 10px rgba(0, 0, 0, 0.5));
    /* Match crate shadow */
    transition: transform 0.2s;
}

/* Remove old floatImage keyframes if unused */


/* PROJECT SPECS MODAL (Memory Card Style) */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 4000;
    display: none;
    justify-content: center;
    align-items: center;
}

.modal-overlay.active {
    display: flex;
    animation: fadeIn 0.2s;
}

.mem-card-modal {
    background: #222;
    border: 2px solid #555;
    width: 90%;
    max-width: 400px;
    padding: 2px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.8);
    font-family: 'Share Tech Mono', monospace;
    color: #fff;
}

.mem-header {
    background: #0000aa;
    /* PS1 Memory Card Blue */
    color: #fff;
    padding: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #555;
    font-weight: bold;
    letter-spacing: 1px;
    text-shadow: 2px 2px 0 #000;
}

.mem-close {
    background: transparent;
    border: 1px solid #fff;
    color: #fff;
    cursor: pointer;
    padding: 2px 6px;
    font-family: inherit;
}

.mem-body {
    padding: 20px;
    background: linear-gradient(180deg, #333 0%, #222 100%);
}

.specs-list {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
    line-height: 1.6;
    font-size: 0.9rem;
}

.mem-hr {
    border: 0;
    border-top: 1px dashed #777;
    margin: 15px 0;
}

.mem-desc {
    font-size: 0.85rem;
    line-height: 1.4;
    color: #ccc;
    margin-bottom: 20px;
    text-align: justify;
}

.mem-footer {
    display: flex;
    justify-content: space-between;
    font-size: 0.7rem;
    color: #999;
}

/* PS1 BOOT SEQUENCE */
.boot-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2147483647;
    /* MAX SAFE INTEGER */
    background: #000;
    display: none;
    /* Hidden by default, JS enables if needed */
}

/* TRIGGER SCREEN */
.boot-trigger-screen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2147483647;
    /* MAX INTEGER */
}

.pre-boot-container {
    position: relative;
    width: 600px;
    max-width: 90vw;
}

/* Override for the cloned console to ensure it behaves in overlay */
#pre-boot-console-wrapper .ps1-console {
    position: relative;
    /* Force relative to flow in flex */
    margin: 0 auto;
    transform: scale(0.8);
    /* Slightly smaller pre-boot */
}

#pre-boot-console-wrapper .console-lid {
    cursor: default;
    /* No clicking the lid in pre-boot */
}

.pre-boot-console-img {
    width: 100%;
    height: auto;
    filter: brightness(0.7);
    transition: filter 0.3s;
}

.pre-boot-container:hover .pre-boot-console-img {
    filter: brightness(1);
}

.power-btn-hitbox {
    position: absolute;
    top: 65%;
    /* Moved down */
    left: 17%;
    /* Moved to Left (Reset/Power Button) */
    width: 20%;
    /* Larger hit area */
    height: 20%;
    border-radius: 50%;
    cursor: pointer;
    z-index: 2147483647;
    /* MAX INTEGER */
    animation: pulseGlow 2s infinite;
    /* background: rgba(0, 255, 0, 0.1); /* Debug */
    */
}

@keyframes pulseGlow {
    0% {
        box-shadow: 0 0 5px rgba(0, 255, 0, 0.2);
    }

    50% {
        box-shadow: 0 0 20px rgba(0, 255, 0, 0.8);
    }

    100% {
        box-shadow: 0 0 5px rgba(0, 255, 0, 0.2);
    }
}

.click-hint {
    color: #444;
    font-family: 'Share Tech Mono', monospace;
    text-align: center;
    margin-top: 10px;
    font-size: 0.8rem;
    animation: blink 1s infinite;
}

.retro-btn:hover {
    background: #fff;
    color: #000;
}

/* SCREEN 1: WHITE */
.boot-screen-1 {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    /* Animation handled by JS class toggle now for better audio sync */
}

/* RED SCREEN OF DEATH */
.ps1-error-screen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #ff0000;
    /* RSOD Red */
    display: none;
    /* Hidden by default */
    justify-content: center;
    align-items: center;
    z-index: 900;
    /* On top of lid but below top-level UI if needed */
    overflow: hidden;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.ps1-error-screen.active {
    display: flex;
    opacity: 1;
    /* animation: fadeIn 0.1s steps(2); removed for smooth fade */
}

.error-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(0, 0, 0, 0.3) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 0, 0, 0.3) 1px, transparent 1px);
    background-size: 40px 40px;
    opacity: 0.5;
}

.error-text {
    font-family: serif;
    /* Classic generic Serif */
    color: rgba(0, 0, 0, 0.8);
    font-size: 2rem;
    font-weight: bold;
    text-align: center;
    line-height: 1.5;
    text-shadow: 2px 2px 0 rgba(255, 255, 255, 0.2);
    z-index: 10;
    letter-spacing: 2px;
}

.boot-screen-1.active {
    animation: bootScreen1 5s forwards;
}

.boot-diamond {
    text-align: center;
    color: #ffd700;
    /* Gold */
}

.diamond-shape {
    font-size: 8rem;
    /* BIGGER */
    color: #ffd700;
    text-shadow: 4px 4px 0 #daa520;
    margin-bottom: 30px;
}

.diamond-text {
    font-family: 'Times New Roman', serif;
    font-weight: bold;
    color: #000;
    font-size: 2.5rem;
    /* BIGGER */
    letter-spacing: 4px;
    background: linear-gradient(#ffd700, #daa520);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0px 2px 0px rgba(0, 0, 0, 0.2);
}

/* SCREEN 2: BLACK */
.boot-screen-2 {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
}

.boot-screen-2.active {
    animation: bootScreen2 6s forwards;
}

.boot-logo-container {
    text-align: center;
    width: 90%;
}

.ps-logo-rainbow {
    font-family: 'Press Start 2P', cursive;
    font-size: 6rem;
    /* MASSIVE */
    background: linear-gradient(45deg, red, orange, yellow, green, blue, indigo, violet);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 20px;
    transform: perspective(500px) rotateX(20deg);
}

.ps-wordmark {
    font-family: sans-serif;
    color: #fff;
    font-size: 5rem;
    /* MASSIVE */
    font-weight: bold;
    letter-spacing: 2px;
    margin-bottom: 50px;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.6);
}

.ps-license {
    font-family: sans-serif;
    color: #fff;
    font-size: 1.2rem;
    font-style: italic;
    opacity: 0.8;
}

@keyframes bootScreen1 {
    0% {
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    80% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

@keyframes bootScreen2 {
    0% {
        opacity: 0;
    }

    20% {
        opacity: 1;
    }

    90% {
        opacity: 1;
    }

    100% {
        opacity: 0;
        pointer-events: none;
    }
}

/* MOBILE RESPONSIVENESS FOR BOOT */
@media (max-width: 768px) {
    .diamond-shape {
        font-size: 5rem;
    }

    .diamond-text {
        font-size: 1.5rem;
    }

    .ps-logo-rainbow {
        font-size: 3rem;
    }

    .ps-wordmark {
        font-size: 2.5rem;
    }

    .ps-license {
        font-size: 0.7rem;
    }

    .retro-btn {
        font-size: 1rem;
        padding: 15px 25px;
    }
}

/* HOTFIX: Remove Console Front Lip on Mobile (White Artifact) */
@media (max-width: 768px) {
    .console-front-lip {
        display: none !important;
    }
}

/* CONSOLE BUTTONS (Reset / Open) */
.console-btn {
    position: absolute;
    top: 80% !important;
    /* Adjust based on console image layout */
    width: 60px;
    height: 60px;
    border-radius: 50%;
    /* Circular buttons */
    background: radial-gradient(circle at 30% 30%, #ddd, #999);
    box-shadow:
        0 4px 6px rgba(0, 0, 0, 0.6),
        inset 0 2px 2px rgba(255, 255, 255, 0.8);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 500 !important;
    /* Above console body */
    transition: transform 0.1s;
}

/* Fix Z-Index Layering for Interaction */
.lid-click-overlay {
    z-index: 10;
    /* Lower than buttons (100+) */
}

.console-btn:active {
    transform: translateY(2px);
    box-shadow:
        0 2px 4px rgba(0, 0, 0, 0.6),
        inset 0 2px 4px rgba(0, 0, 0, 0.4);
}

.power-btn {
    left: 10% !important;
    /* Position Left */
}

.open-btn {
    right: 10% !important;
    /* Position Right */
}

.btn-icon {
    font-size: 1.2rem;
    color: #555;
    font-weight: bold;
    margin-bottom: 2px;
}

.btn-label {
    font-size: 0.5rem;
    color: #444;
    font-family: sans-serif;
    font-weight: bold;
    letter-spacing: 1px;
}

/* Hover Effects */
.console-btn:hover .btn-icon {
    color: #000;
}

/* === SINGLE PAGE FLIP BOOKLET SYSTEM === */
/* === FF7 MENU SYSTEM === */
.ff7-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
}

.ff7-modal.active {
    display: flex;
}

.ff7-root {
    width: 900px;
    height: 600px;
    position: relative;
    /* FF7 Layout Grid */
    display: grid;
    grid-template-columns: 600px 280px;
    grid-template-rows: 480px 100px;
    gap: 20px;
}

/* Base Window Style - Classic Blue Gradient */
.ff7-window {
    background: linear-gradient(135deg, #0040a0 0%, #000040 100%);
    border: 3px solid #e0e0e0;
    border-radius: 6px;
    box-shadow:
        0 0 0 1px #444,
        /* Outer Outline */
        inset 0 0 0 2px #222,
        /* Inner bevel shadow */
        5px 5px 15px rgba(0, 0, 0, 0.8);
    position: relative;
    color: white;
    font-family: 'Share Tech Mono', monospace;
    text-shadow: 2px 2px 0 #000;
    padding: 20px;
    box-sizing: border-box;
}

.ff7-window::before {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    right: 3px;
    bottom: 3px;
    border: 1px solid #777;
    border-radius: 4px;
    pointer-events: none;
}

/* === PARTY WINDOW (Top Left) === */
.party-window {
    grid-column: 1 / 2;
    grid-row: 1 / 2;
    display: flex;
    flex-direction: column;
    gap: 30px;
    padding: 40px;
}

.party-row {
    display: flex;
    gap: 30px;
    align-items: center;
}

.char-face {
    width: 80px;
    height: 80px;
    background: #222;
    border: 2px solid #666;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #555;
    box-shadow: inset 0 0 10px #000;
}

.char-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.char-name-row {
    display: flex;
    justify-content: space-between;
    width: 250px;
    margin-bottom: 5px;
}

.c-name {
    color: #00ff00;
    font-size: 1.5rem;
    letter-spacing: 2px;
}

.c-lvl {
    color: #fff;
    font-size: 1.2rem;
}

.char-stat-row {
    display: flex;
    justify-content: space-between;
    width: 250px;
    font-size: 1.1rem;
}

.c-label {
    color: #00ffff;
}

.c-val {
    text-align: right;
}

/* Limit Bar */
.limit-bar-container {
    margin-top: 5px;
    width: 200px;
}

.c-label-small {
    font-size: 0.8rem;
    color: #aaa;
    text-transform: uppercase;
}

.limit-bar {
    width: 100%;
    height: 8px;
    background: #330000;
    border: 1px solid #555;
    border-radius: 4px;
    margin-top: 2px;
    position: relative;
}

.limit-fill {
    height: 100%;
    background: linear-gradient(to right, #cc0000, #ff6600, #ffff00);
    border-radius: 2px;
}

/* === MENU WINDOW (Top Right) === */
.menu-window {
    grid-column: 2 / 3;
    grid-row: 1 / 3;
    /* Spans full height of grid */
    height: 100%;
}

.ff7-menu-list {
    list-style: none;
    padding: 0;
    margin: 20px 0 0 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.menu-item {
    font-size: 1.5rem;
    cursor: pointer;
    color: #aaa;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: color 0.1s;
}

.menu-item:hover {
    color: #fff;
    text-shadow: 0 0 5px #fff;
}

.hand-cursor {
    opacity: 0;
    font-size: 1.2rem;
    transform: translateX(-10px);
    transition: all 0.1s;
}

.menu-item:hover .hand-cursor {
    opacity: 1;
    transform: translateX(0);
}

/* === INFO WINDOW (Bottom Left) === */
.info-window {
    grid-column: 1 / 2;
    grid-row: 2 / 3;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 10px;
    padding-left: 50px;
}

.info-line {
    display: flex;
    gap: 30px;
    font-size: 1.3rem;
}

.i-label {
    color: #00ffff;
    width: 60px;
}

.i-val {
    color: #fff;
}

/* === LOCATION BANNER (Bottom Right/Overlay) === */
.loc-banner {
    position: absolute;
    bottom: -60px;
    right: 0;
    width: 100%;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    letter-spacing: 3px;
    border: 2px solid white;
}

/* === CONTENT OVERLAY === */
.ff7-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 700px;
    height: 500px;
    z-index: 2000;
    display: none;
}

.ff7-overlay.active {
    display: block;
}

.content-box {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.content-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #666;
    padding-bottom: 15px;
    margin-bottom: 20px;
}

#ff7-title {
    margin: 0;
    color: #00ff00;
    font-size: 2rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.ff7-close {
    cursor: pointer;
    font-size: 1.5rem;
    color: #aaa;
}

.ff7-close:hover {
    color: #fff;
}

.content-body {
    flex: 1;
    overflow-y: auto;
    font-size: 1.2rem;
    line-height: 1.6;
    padding-right: 15px;
}

/* Scrollbar */
.content-body::-webkit-scrollbar {
    width: 8px;
}

.content-body::-webkit-scrollbar-track {
    background: #000020;
}

.content-body::-webkit-scrollbar-thumb {
    background: #0040a0;
    border-radius: 4px;
}

/* Responsive */
@media (max-width: 900px) {
    .ff7-root {
        transform: scale(0.7);
        transform-origin: center center;
        width: 100%;
    }
}

@media (max-width: 600px) {
    .ff7-root {
        /* Full layout fit */
        transform: none;
        width: 100vw;
        height: 100vh;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        padding-top: 15px;
        /* CRITICAL: Push down from top edge */
        padding-bottom: 60px;
        overflow-y: hidden;
        box-sizing: border-box;
        /* Include padding in height */
    }

    /* Stack items tightly */
    .party-window,
    .menu-window,
    .info-window,
    .loc-banner {
        grid-column: auto !important;
        grid-row: auto !important;
        width: 94%;
        margin: 2px auto;
        flex-shrink: 1;
        /* Allow shrinking if needed */
    }

    .party-window {
        order: 1;
        padding: 5px;
        /* Reduced padding */
        flex: 0 0 auto;
    }

    /* Keep text readable as requested (User said text size was fine) */
    .c-name {
        font-size: 1.3rem;
    }

    /* Restore slightly */
    .c-lvl {
        font-size: 1.1rem;
    }

    .item-name {
        font-size: 1.1rem;
    }

    /* Shrink the face */
    .fighter-card-mini img {
        width: 50px;
        /* 60px -> 50px */
        height: 50px;
    }

    /* Shrink text in party window */
    .c-name {
        font-size: 1.2rem;
    }

    .c-lvl {
        font-size: 1rem;
    }

    .char-stat-row {
        font-size: 0.9rem;
        width: 100%;
    }

    .menu-window {
        order: 2;
        padding: 4px 8px;
        /* Reduced */
        flex: 1;
        /* Take available space */
        min-height: 0;
        /* Allow flex shrinking */
        display: flex;
        flex-direction: column;
        justify-content: center;
        /* Center items vertically */
    }

    /* Smaller Menu Text */
    .menu-item {
        font-size: 1.1rem;
        /* Restore to 1.1rem */
        margin-bottom: 4px;
        padding-left: 5px;
    }

    .info-window {
        order: 3;
        flex: 0 0 auto;
        padding: 4px 8px;
    }

    /* Compact Time/Gil */
    .info-row {
        margin-bottom: 1px;
        font-size: 0.9rem;
        /* 1rem -> 0.9rem */
    }

    .loc-banner {
        order: 4;
        position: relative;
        bottom: auto;
        right: auto;
        margin-top: 2px;
        font-size: 1.1rem;
        height: 35px;
        flex: 0 0 auto;
        border: 1px solid white;
    }

    /* Fix Content Overlay Text Wrapping */
    .ff7-overlay {
        width: 96vw;
        height: 70vh;
        max-width: none;
        top: 50%;
    }

    .content-body {
        font-size: 0.9rem;
        /* 0.95 -> 0.9 */
        word-wrap: break-word;
        white-space: normal;
        overflow-y: auto;
        padding-right: 5px;
    }

    #ff7-title {
        font-size: 1.5rem;
        /* Smaller title */
    }
}

/* === PS1 BIOS MUSIC PLAYER (REDESIGN) === */
.ps1-player-bios {
    position: fixed;
    bottom: 50px;
    right: 20px;
    width: 250px;
    /* Much smaller */
    height: 120px;
    /* Compact */
    background: radial-gradient(circle at center, #000066 0%, #000033 100%);
    border: 3px solid #6666cc;
    border-radius: 20px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.9), inset 0 0 20px rgba(0, 0, 100, 0.5);
    z-index: 500;
    padding: 10px;
    font-family: Arial, sans-serif;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    backdrop-filter: blur(5px);
}

@media (max-width: 600px) {
    .ps1-player-bios {
        width: 90vw;
        /* Slightly less wide */
        left: 50%;
        transform: translateX(-50%);
        /* Perfect Center */
        right: auto;
        bottom: 10px;
        height: 60px;
        /* Thinner bar */
        flex-direction: row;
        padding: 5px 15px;
        gap: 15px;
        z-index: 9999;
        background: radial-gradient(circle at center, #000066 0%, #000022 100%);
        border-radius: 30px;
        /* Pill shape */
        justify-content: space-between;
    }

    .bios-controls {
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 10px;
        grid-template-columns: none;
        /* Reset grid */
    }

    /* Force Horizontal Buttons */
    .bios-btn {
        width: 36px;
        height: 36px;
        flex-shrink: 0;
    }

    .bios-center {
        flex: 1;
        display: flex;
        align-items: center;
        justify-content: flex-end;
        /* Push text to right */
    }

    /* Screen styles adjustment if needed */
    .bios-screen {
        background: none;
        box-shadow: none;
        width: auto;
        padding: 0;
        margin: 0;
        text-align: right;
    }
}

/* Left Column: Controls */
/* Left Column: Controls (Grid now) */
.bios-controls {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding-top: 0;
}

.bios-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    box-shadow:
        inset -5px -5px 10px rgba(0, 0, 0, 0.8),
        inset 5px 5px 10px rgba(255, 255, 255, 0.4),
        0 5px 10px rgba(0, 0, 0, 0.5);
    transition: transform 0.1s;
    position: relative;
}

.bios-btn:active {
    transform: scale(0.95);
}

/* Button Colors per Source */
.btn-fwd,
.btn-rev {
    background: radial-gradient(circle at 30% 30%, #00aa00, #004400);
}

/* Green */
.btn-play {
    background: radial-gradient(circle at 30% 30%, #4444ff, #000066);
}

/* Blue */
.btn-stop {
    background: radial-gradient(circle at 30% 30%, #ff4444, #660000);
}

/* Red */
.btn-pause {
    background: radial-gradient(circle at 30% 30%, #aaaa00, #444400);
}

/* Yellowish */
.btn-exit {
    background: radial-gradient(circle at 30% 30%, #880088, #440044);
}

/* Purple */

/* Icons */
.btn-fwd::after {
    content: '>>';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 14px;
    color: #fff;
    font-weight: bold;
    text-shadow: 0 0 2px #000;
}

.btn-rev::after {
    content: '<<';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 14px;
    color: #fff;
    font-weight: bold;
    text-shadow: 0 0 2px #000;
}

.btn-play::after {
    content: '►';
    position: absolute;
    top: 50%;
    left: 55%;
    transform: translate(-50%, -50%);
    font-size: 18px;
    color: #fff;
    text-shadow: 0 0 2px #000;
}

.btn-stop::after {
    content: '■';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 16px;
    color: #fff;
    text-shadow: 0 0 2px #000;
}

.btn-pause::after {
    content: '||';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 14px;
    color: #fff;
    font-weight: bold;
    text-shadow: 0 0 2px #000;
}

/* Center Column: Data */
.bios-center {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.bios-bubbles {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.bubble-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.time-group {
    margin-top: 20px;
}

/* Offset down like source */

.bubble-large {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, #4444ff, #000022);
    box-shadow: inset -3px -3px 8px rgba(0, 0, 0, 0.8), inset 3px 3px 8px rgba(255, 255, 255, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.5rem;
    font-weight: bold;
    text-shadow: 0 0 5px #fff;
}

.bubble-small {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, #4444ff, #000022);
    box-shadow: inset -3px -3px 10px rgba(0, 0, 0, 0.8), inset 3px 3px 10px rgba(255, 255, 255, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.2rem;
    font-weight: bold;
}

.bubble-label {
    color: #fff;
    font-size: 0.7rem;
    font-weight: bold;
    letter-spacing: 1px;
}

.bios-screen {
    flex: 1;
    height: 100%;
    background: rgba(0, 0, 40, 0.7);
    border: 1px solid #5555aa;
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #aaccff;
    padding: 5px;
}

.screen-content {
    font-size: 1.5rem;
    font-weight: bold;
    letter-spacing: 2px;
}

.screen-track-name {
    font-size: 0.8rem;
    margin-top: 5px;
    color: #88aaff;
}

.bios-menu-labels {
    display: flex;
    gap: 15px;
    margin-top: 10px;
}

.menu-opt {
    background: linear-gradient(to bottom, #4444aa, #222288);
    padding: 5px 10px;
    border-radius: 4px;
    color: #fff;
    font-size: 0.7rem;
    font-weight: bold;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
    cursor: pointer;
}

/* Right Column: Grid */
.bios-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.bios-header {
    background: #000044;
    color: #fff;
    padding: 5px 15px;
    border: 1px solid #6666ff;
    font-weight: bold;
    margin-bottom: 20px;
    box-shadow: 0 0 10px #0000ff;
}

.bios-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.grid-row {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.g-dot {
    width: 15px;
    height: 15px;
    border-radius: 50%;
    box-shadow: inset -2px -2px 5px rgba(0, 0, 0, 0.8), inset 2px 2px 5px rgba(255, 255, 255, 0.4);
}

.d-gold {
    background: radial-gradient(circle at 30% 30%, #ffff00, #444400);
}

.d-green {
    background: radial-gradient(circle at 30% 30%, #00ff00, #004400);
}

.d-blue {
    background: radial-gradient(circle at 30% 30%, #0088ff, #002244);
}

.d-purple {
    background: radial-gradient(circle at 30% 30%, #aa00ff, #220044);
}

/* === MOBILE RESPONSIVENESS (Compact Bar) === */
@media (max-width: 768px) {
    .ps1-player-bios {
        transform: translateX(50%) !important;
        right: 50% !important;
        bottom: 120px !important;
        width: auto !important;
        min-width: 280px;
        max-width: 90vw !important;
        height: 70px !important;
        padding: 0 15px !important;
        flex-direction: row !important;
        gap: 15px !important;
        align-items: center !important;
        justify-content: space-between !important;
        border-radius: 35px !important;
        backdrop-filter: blur(10px);
        background: radial-gradient(circle at center, rgba(0, 0, 100, 0.95), rgba(0, 0, 50, 0.95)) !important;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5) !important;
        border: 2px solid #6666cc !important;
    }

    /* Hide Bulky Desktop Elements */
    .bios-right,
    .bios-bubbles,
    .bios-header,
    .bios-menu-labels {
        display: none !important;
    }

    /* Compact Controls */
    .bios-controls {
        flex-direction: row !important;
        padding: 0 !important;
        gap: 10px !important;
        justify-content: flex-start !important;
    }

    .bios-btn {
        width: 36px !important;
        height: 36px !important;
        margin: 0 !important;
    }

    /* Icon Fixes for Compact Buttons */
    .btn-fwd::after {
        content: '>>';
        top: 12px;
        left: 10px;
        font-size: 9px;
    }

    .btn-rev::after {
        content: '<<';
        top: 12px;
        left: 10px;
        font-size: 9px;
    }

    .btn-play::after {
        content: '►';
        top: 11px;
        left: 14px;
        font-size: 11px;
    }

    .btn-stop::after {
        content: '■';
        top: 12px;
        left: 13px;
        font-size: 11px;
    }

    .btn-pause::after {
        content: '||';
        top: 12px;
        left: 10px;
        font-size: 9px;
    }

    /* Hide less important buttons */
    .btn-exit {
        display: none !important;
    }

    /* Compact Screen Info */
    .bios-center {
        flex: 1;
        margin: 0 !important;
        align-items: flex-end !important;
        justify-content: center !important;
    }

    .bios-screen {
        height: auto !important;
        border: none !important;
        background: transparent !important;
        align-items: flex-end !important;
        justify-content: center !important;
        margin: 0 !important;
        width: auto !important;
    }

    .screen-content {
        font-size: 1rem !important;
        color: #fff;
        text-shadow: 0 0 5px #aaf;
        margin: 0 !important;
    }

    .screen-track-name {
        display: none !important;
    }
}

/* Force Close Safety Brace */



/* Typography - Clean & Professional */
.manual-header {
    font-family: 'Share Tech Mono', monospace;
    font-weight: bold;
    font-size: 2rem;
    color: #00ff00;
    text-transform: uppercase;
    text-align: center;
    margin-bottom: 30px;
    letter-spacing: 2px;
    border-bottom: 2px solid #aaa;
    padding-bottom: 10px;
}

.manual-body-content {
    flex: 1;
    color: #fff;
    font-family: 'Share Tech Mono', monospace;
}

.page-number {
    display: none;
}

.nav-hint {
    display: none;
}