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

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

:root {
    --cyan: #00f5d4;
    --pink: #f72585;
    --dark: #0b0710;
    --darker: #06040a;
    --pixel: 'Press Start 2P', monospace;
}

html, body {
    height: 100%;
    background: var(--dark);
    color: var(--cyan);
    font-family: var(--pixel);
}

body {
    background-image: url('../../Justin_Hintergrund.gif');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    display: flex;
    justify-content: center;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    background: rgba(6, 4, 10, 0.82);
    z-index: 0;
}

#scanlines {
    position: fixed;
    inset: 0;
    z-index: 998;
    pointer-events: none;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(0, 245, 212, 0.012) 2px,
        rgba(0, 245, 212, 0.012) 4px
    );
}

/* ── START SCREEN ── */
#start-screen {
    position: fixed;
    inset: 0;
    z-index: 999;
    background: var(--darker);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    transition: opacity 0.2s ease;
}

#start-screen.hidden {
    opacity: 0;
    pointer-events: none;
}

.press-start {
    font-size: 18px;
    letter-spacing: 4px;
    color: var(--cyan);
    animation: pulseText 1.2s steps(2) infinite;
    text-shadow: 0 0 20px rgba(0, 245, 212, 0.2);
}

@keyframes pulseText {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.2; }
}

.blink-cursor {
    font-size: 24px;
    color: var(--pink);
    opacity: 0.6;
    animation: blink 0.6s step-end infinite;
}

@keyframes blink {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 0; }
}

.hidden { display: none !important; }

/* ── CABINET ── */
#cabinet {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 460px;
    display: flex;
    flex-direction: column;
    padding: 20px;
    gap: 8px;
    animation: bootIn 0.3s ease;
}

@keyframes bootIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.crt-top {
    height: 4px;
    background: var(--cyan);
    opacity: 0.08;
    margin-bottom: 8px;
}

/* ── PORTRAIT ── */
.portrait-zone {
    display: flex;
    gap: 16px;
    padding: 20px;
    border: 2px solid rgba(0, 245, 212, 0.06);
    background: rgba(0, 245, 212, 0.01);
    position: relative;
}

.portrait-zone::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 20px;
    right: 20px;
    height: 2px;
    background: var(--cyan);
    opacity: 0.15;
}

.portrait-bg {
    width: 90px;
    height: 110px;
    border: 2px solid var(--cyan);
    flex-shrink: 0;
    position: relative;
    image-rendering: pixelated;
}

.portrait-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    image-rendering: pixelated;
}

.portrait-data {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
}

.title-tag {
    display: block;
    font-size: 7px;
    letter-spacing: 3px;
    color: var(--pink);
    opacity: 0.5;
}

.fighter-name {
    font-size: 24px;
    letter-spacing: 2px;
    color: #fff;
    text-shadow: 3px 3px 0 rgba(247, 37, 133, 0.15);
    line-height: 1;
}

.sub-labels {
    display: flex;
    gap: 8px;
    font-size: 6px;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.2);
}

.fighter-bio {
    font-size: 7px;
    letter-spacing: 1px;
    color: var(--cyan);
    opacity: 0.3;
}

/* ── STATS GRID ── */
.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
}

.stat-block {
    border: 2px solid rgba(0, 245, 212, 0.04);
    background: rgba(0, 245, 212, 0.01);
    padding: 16px 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    position: relative;
}

.stat-block:first-child {
    border-right: none;
}

.stat-icon {
    font-size: 18px;
    line-height: 1;
    filter: saturate(0.8);
}

.stat-val {
    font-size: 28px;
    font-weight: 400;
    color: #fff;
    letter-spacing: 0;
    text-shadow: 2px 2px 0 rgba(247, 37, 133, 0.1);
}

.stat-lbl {
    font-size: 6px;
    letter-spacing: 2px;
    color: var(--cyan);
    opacity: 0.25;
}

/* ── JUKEBOX ── */
.jukebox {
    border: 2px solid rgba(0, 245, 212, 0.06);
    background: rgba(0, 245, 212, 0.01);
    padding: 18px 20px;
}

.jb-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.jb-dot {
    width: 6px;
    height: 6px;
    background: var(--pink);
    display: block;
    animation: blink 0.8s step-end infinite;
}

.jb-lbl {
    font-size: 7px;
    letter-spacing: 3px;
    color: var(--cyan);
    opacity: 0.3;
}

.jb-track-id {
    margin-left: auto;
    font-size: 7px;
    letter-spacing: 2px;
    color: rgba(255, 255, 255, 0.08);
}

.jb-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-bottom: 12px;
}

.jb-title {
    font-size: 11px;
    letter-spacing: 1px;
    color: #fff;
}

.jb-artist {
    font-size: 7px;
    letter-spacing: 1px;
    color: var(--pink);
    opacity: 0.3;
}

.jb-progress {
    height: 4px;
    background: rgba(0, 245, 212, 0.04);
    margin-bottom: 12px;
    position: relative;
}

.jb-progress-fill {
    height: 100%;
    width: 0%;
    background: var(--cyan);
    transition: width 0.3s linear;
    box-shadow: 0 0 8px rgba(0, 245, 212, 0.2);
}

.jb-controls {
    display: flex;
    align-items: center;
    gap: 12px;
}

.jb-btn {
    width: 40px;
    height: 40px;
    border: 2px solid var(--cyan);
    background: transparent;
    color: var(--cyan);
    font-family: var(--pixel);
    font-size: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.1s ease;
    flex-shrink: 0;
}

.jb-btn:hover {
    background: var(--cyan);
    color: var(--dark);
}

.jb-volume {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(0, 245, 212, 0.15);
    font-size: 9px;
}

#vol-slider {
    flex: 1;
    height: 4px;
    -webkit-appearance: none;
    appearance: none;
    background: rgba(0, 245, 212, 0.04);
    outline: none;
}

#vol-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 12px;
    height: 12px;
    background: var(--cyan);
    border: none;
    cursor: pointer;
    clip-path: polygon(0 0, 100% 50%, 0 100%);
}

#vol-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

#vol-slider::-moz-range-thumb {
    width: 12px;
    height: 12px;
    background: var(--cyan);
    border: none;
    cursor: pointer;
    clip-path: polygon(0 0, 100% 50%, 0 100%);
}

/* ── VS LINK ── */
.vs-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    border: 2px solid rgba(247, 37, 133, 0.06);
    background: rgba(247, 37, 133, 0.02);
    text-decoration: none;
    color: #fff;
    transition: background 0.1s ease;
}

.vs-link:hover {
    background: rgba(247, 37, 133, 0.04);
}

.vs-icon {
    width: 36px;
    height: 36px;
    border: 2px solid rgba(88, 101, 242, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #5865f2;
    font-size: 16px;
    flex-shrink: 0;
}

.vs-text {
    flex: 1;
    font-size: 8px;
    letter-spacing: 3px;
    color: rgba(255, 255, 255, 0.15);
}

.vs-arrow {
    font-size: 10px;
    color: var(--pink);
    opacity: 0.2;
    transition: transform 0.15s ease;
}

.vs-link:hover .vs-arrow {
    transform: translateX(4px);
}

/* ── FOOTER ── */
.footer-data {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 20px 0 8px;
    font-size: 7px;
    letter-spacing: 3px;
    color: rgba(0, 245, 212, 0.08);
}

.footer-dot {
    font-size: 6px;
    color: var(--pink);
    opacity: 0.2;
}

@media (max-width: 480px) {
    #cabinet { padding: 14px; }
    .portrait-zone { padding: 14px; gap: 12px; }
    .portrait-bg { width: 72px; height: 88px; }
    .fighter-name { font-size: 18px; letter-spacing: 1px; }
    .stat-val { font-size: 22px; }
    .stat-block { padding: 12px 6px; }
    .jb-title { font-size: 9px; }
}
