/* ============================================================
   CROSSOVER X — selection.css
   Splash Screen + Character Selection
   ============================================================ */

/* ---- 0. RESET & BASE ---- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #000;
    color: #fff;
    width: 100%;
    height: 100vh;
    overflow: hidden; /* Kein Scroll auf dieser Seite */
}

img {
    display: block;
    max-width: 100%;
}

/* ============================================================
   1. SPLASH SCREEN
   ============================================================ */
#vault-splash-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #000;
    z-index: 10000000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 50px;
    transition: opacity 0.3s ease;
}

/* Logo */
.splash-logo {
    width: 50%;
    height: auto;
    object-fit: contain;
    padding-left: 20px;
}

/* Access Button */
.btn-initialize {
    display: inline-block;
    background-color: #ff0000;
    color: #fff;
    font-family: 'Arial Narrow', 'Arial', sans-serif;
    font-size: 24px;
    font-weight: 900;
    letter-spacing: 0.05em;
    padding: 25px 50px;
    border: none;
    cursor: pointer;
    transition: transform 0.2s ease, filter 0.2s ease;
    text-transform: uppercase;
}

.btn-initialize:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 0 12px rgba(0, 255, 255, 0.7));
}

.btn-initialize:active {
    transform: scale(0.98);
}

/* Glitch-Exit Animation */
.splash-screen-hidden {
    pointer-events: none;
    animation: glitch-exit 0.5s forwards;
}

@keyframes glitch-exit {
    0%   { transform: scale(1);           opacity: 1;   filter: brightness(1); }
    20%  { transform: scale(1.1) translateX(-10px); filter: hue-rotate(90deg) brightness(2); }
    40%  { transform: translateX(15px) skewX(20deg); opacity: 0.8; }
    60%  { transform: scale(0.9) translateY(5px); filter: blur(2px); }
    100% { transform: scale(1.5);         opacity: 0;   visibility: hidden; }
}

/* ============================================================
   2. CHARACTER SELECTION WRAPPER
   ============================================================ */
.selection-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: #000;
    overflow: hidden;
    z-index: 0; /* Hinter dem Splash */
}

/* Static Noise Overlay */
.static-noise {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.5;
    pointer-events: none;
    z-index: 1;
}

/* ============================================================
   3. CHARACTER CARDS CONTAINER
   ============================================================ */
.der-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    align-items: center;
    width: 100%;
    height: 100%;
    padding: 0 20px;
    overflow: visible;
    pointer-events: auto;
}

/* ============================================================
   4. SINGLE CHARACTER CARD
   ============================================================ */
.char-cards {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 23%;
    height: 80vh;
    cursor: pointer;
    position: relative;
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                filter 0.3s ease;
}

.char-cards:hover {
    transform: translateY(-15px) scale(1.02);
    filter: brightness(1.5) drop-shadow(0 0 15px rgba(255, 255, 255, 0.2));
}

/* Select Button Wrapper */
.btn-select-wrapper {
    order: 1;
    width: 100%;
    display: flex;
    justify-content: center;
    margin-bottom: 10px;
    z-index: 10;
    pointer-events: auto;
}

.btn-select-img {
    width: 180px;
    height: auto;
    flex-shrink: 0;
    cursor: pointer;
    transition: transform 0.15s ease;
}

.btn-select-img:hover {
    transform: scale(1.05);
}

/* Character Image */
.char-img {
    order: 2;
    flex-grow: 1;
    max-height: 65vh;
    width: auto;
    object-fit: contain;
    pointer-events: none; /* Klick geht durch aufs Label/Button */
}

/* Label
   Das Photoshop-Export ist 760x267px → Ratio ca. 2.85:1
   Wir geben der Box eine feste Breite relativ zur Card
   und errechnen die Höhe daraus automatisch via padding-top trick.
*/
.label-wrapper {
    order: 3;
    margin-top: 8px;
    flex-shrink: 0;
    pointer-events: none;
    transition: filter 0.3s ease, transform 0.3s ease;

    /* Breite: so breit wie die Card (max. 280px) */
    width: 90%;
    max-width: 280px;

    /* Höhe via aspect-ratio — Bildgröße 760x267 → ~2.85:1 */
    aspect-ratio: 760 / 267;

    /* Background-Image Einstellungen */
    background-repeat: no-repeat;
    background-size: 100% 100%; /* Füllt exakt die Box — kein contain-Abschneiden */
    background-position: center;

    /* Text zentrieren */
    display: flex;
    align-items: center;
    justify-content: center;
}

.label-text {
    font-family: 'Arial Narrow', 'Arial', sans-serif;
    font-size: clamp(14px, 1.5vw, 22px); /* Skaliert mit Viewport */
    font-weight: 800;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: nowrap;
    /* Leichter Text-Schatten für Lesbarkeit auf dem Label-Bild */
    text-shadow: 0 1px 4px rgba(0,0,0,0.8);
}

/* ============================================================
   5. NAVIGATION ARROWS (Mobile)
   ============================================================ */
.arrow-left,
.arrow-right {
    display: none; /* Desktop: versteckt */
    position: absolute;
    top: 50%;
    z-index: 100;
    width: 60px;
    height: 60px;
    object-fit: contain;
    cursor: pointer;
    transition: transform 0.2s ease, filter 0.2s ease;
}

.arrow-left {
    left: 10px;
    transform: translateY(-50%) scaleX(-1); /* Gespiegelt = Pfeil links */
}

.arrow-right {
    right: 10px;
    transform: translateY(-50%);
}

.arrow-left:hover  { filter: brightness(2); }
.arrow-right:hover { filter: brightness(2); }

/* ============================================================
   6. HERO TRANSITION OVERLAY
   ============================================================ */
#hero-transition-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 9999999;
    background: #000;
    display: none;
    overflow: hidden;
}

#hero-transition-overlay img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    width: auto;
    height: 80%;
    object-fit: contain;
    opacity: 0;
    transition: opacity 1.2s ease-in-out;
}

/* Zoom-Animation Kino-Style */
@keyframes heroZoomKino {
    0%   { transform: translate(-50%, -50%) scale(0.8); }
    100% { transform: translate(-50%, -50%) scale(1.05); }
}

.zoom-effect-new {
    animation: heroZoomKino 4.5s forwards ease-out !important;
}

/* ============================================================
   7. RESPONSIVE — TABLET & MOBILE
   ============================================================ */

/* Tablet */
@media (max-width: 991px) {
    .splash-logo {
        width: 80%;
    }

    .btn-initialize {
        font-size: 20px;
        padding: 20px 35px;
    }
}

/* Mobile Slider (bis 992px) */
@media (max-width: 992px) {
    .der-content {
        flex-direction: column;
        position: relative;
        padding: 0;
    }

    /* Alle Cards verstecken, nur aktive zeigen */
    .char-cards {
        display: none;
        width: 100%;
        height: 85vh;
    }

    .char-cards.active-slide {
        display: flex;
    }

    .char-img {
        max-height: 60vh;
    }

    /* Pfeile auf Mobile anzeigen */
    .arrow-left,
    .arrow-right {
        display: block;
    }

    /* Label-Text kleiner */
    .label-text {
        font-size: clamp(12px, 4vw, 18px);
    }

    /* Label breiter auf Mobile — nimmt mehr Platz */
    .label-wrapper {
        width: 70%;
        max-width: 260px;
    }

    /* Select Button kleiner */
    .btn-select-img {
        width: 140px;
    }
}

/* Mobile Portrait */
@media (max-width: 480px) {
    .splash-logo {
        width: 85%;
        padding-left: 0;
    }

    .btn-initialize {
        font-size: 18px;
        padding: 18px 25px;
        margin: 0 15px;
        text-align: center;
    }

    #hero-transition-overlay img {
        width: 90%;
        height: auto;
    }
}

/* Desktop Large */
@media (min-width: 1400px) {
    .label-text {
        font-size: 26px;
    }
}