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


html,
body {

    width: 100%;
    height: 100%;

    overflow: hidden;

    background: black;

    font-family:
        Arial,
        Helvetica,
        sans-serif;

    color: white;

}


.screen {

    position: fixed;

    inset: 0;

    display: none;

    overflow: hidden;

}


.screen.active {

    display: block;

}


/* =====================================
   INTRO
===================================== */

#intro {

    background:

        radial-gradient(
            circle,
            rgba(70,255,0,0.18),
            transparent 35%
        ),

        #000;

}


.intro-background {

    position: absolute;

    inset: 0;

    background:

        radial-gradient(
            circle,
            rgba(70,255,0,0.12),
            transparent 40%
        );

}


/* OMNITRIX */

.omnitrix {

    position: absolute;

    left: 50%;
    top: 50%;

    width: 330px;
    height: 330px;

    transform:
        translate(-50%, -50%);

    cursor: pointer;

    animation:
        omnitrixPulse 4s infinite;

    filter:
        drop-shadow(
            0 0 30px
            rgba(80,255,0,0.8)
        );

}


.outer-ring {

    position: absolute;

    inset: 0;

    border-radius: 50%;

    border:
        12px solid #171b17;

    box-shadow:

        0 0 0 3px #59ff00,

        0 0 35px #59ff00,

        inset 0 0 20px #59ff00;

}


.middle-ring {

    position: absolute;

    inset: 30px;

    border-radius: 50%;

    border:
        5px solid #63ff00;

}


.omnitrix-core {

    position: absolute;

    inset: 80px;

    border-radius: 50%;

    background:

        radial-gradient(
            circle,
            #dffff0,
            #63ff00 25%,
            #102810 60%,
            #000
        );

    border: 8px solid #222;

    box-shadow:
        0 0 35px #65ff00;

}


.omnitrix-symbol {

    position: absolute;

    left: 50%;
    top: 50%;

    transform:
        translate(-50%, -50%);

    font-size: 90px;

    color: white;

    text-shadow:
        0 0 15px white,
        0 0 30px #63ff00;

}


.omnitrix-text {

    position: absolute;

    bottom: 35px;

    left: 50%;

    transform:
        translateX(-50%);

    font-size: 13px;

    font-weight: bold;

    letter-spacing: 5px;

    color: #9cff6a;

}


@keyframes omnitrixPulse {

    0% {

        opacity: 0.2;

        transform:
            translate(-50%, -50%)
            scale(0.9);

    }

    50% {

        opacity: 1;

        transform:
            translate(-50%, -50%)
            scale(1);

    }

    100% {

        opacity: 0.2;

        transform:
            translate(-50%, -50%)
            scale(0.9);

    }

}


.click-text {

    position: absolute;

    bottom: 9%;

    width: 100%;

    text-align: center;

    color: #72ff40;

    letter-spacing: 4px;

    font-size: 12px;

}


/* =====================================
   DATABASE
===================================== */

#database {

    background: black;

}


/* TOP BAR */

.top-bar {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;

    height: 110px;

    display: flex;
    align-items: flex-start;
    justify-content: space-between;

    padding: 15px 25px;

    box-sizing: border-box;

    z-index: 2000;

    pointer-events: none;
}


.ben-logo {
    position: relative;

    width: 105px;
    height: 70px;

    flex-shrink: 0;
}

.ben-logo img {
    width: 100%;
    height: 100%;

    object-fit: contain;
    display: block;

    filter: drop-shadow(0 0 8px rgba(0, 255, 80, 0.7));
}


.alien-counter {
    position: relative;

    margin-top: 20px;
    right: 150px;
    font-size: 20px;
    font-weight: bold;

    color: #9cff00;

    z-index: 2100;

    flex-shrink: 0;
}


/* PLANET */

.planet-background {

    position: absolute;

    inset: -5%;

    background-size: cover;

    background-position: center;

    transition:

        background-image 0.6s,

        transform 0.8s;

}


.planet-background::after {

    content: "";

    position: absolute;

    inset: 0;

    background:

        linear-gradient(
            90deg,
            rgba(0,0,0,0.9),
            rgba(0,0,0,0.2),
            rgba(0,0,0,0.5)
        );

}


/* =====================================
   ALIEN
===================================== */

.alien-container {

    position: absolute;

    z-index: 5;

    left: 45%;

    top: 50%;

    width: 50vw;

    height: 80vh;

    transform:
        translate(-50%, -50%);

    display: flex;

    justify-content: center;

    align-items: center;

}


.alien-container img {

    max-width: 85%;

    max-height: 85%;

    object-fit: contain;

    position: relative;

    z-index: 2;

    filter:
        drop-shadow(
            0 0 25px
            rgba(100,255,0,0.8)
        );

    transition:

        transform 0.5s,

        opacity 0.4s;

}


.alien-glow {

    position: absolute;

    width: 55%;

    height: 65%;

    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            rgba(80,255,0,0.35),
            transparent 65%
        );

    filter:
        blur(25px);

}


.alien-visual-name {

    position: absolute;

    bottom: 5%;

    font-size: 55px;

    font-weight: 1000;

    text-shadow:

        0 0 20px black,

        0 0 20px #65ff00;

}


/* =====================================
   INFORMATION
===================================== */

.information-panel {

    position: absolute;

    z-index: 10;

    right: 4%;

    top: 15%;

    width: 38%;

    padding: 30px;

    background:
        rgba(0,10,3,0.78);

    border:

        1px solid
        rgba(100,255,0,0.5);

    backdrop-filter:
        blur(12px);

    box-shadow:

        0 0 30px
        rgba(70,255,0,0.15);

}


.database-title {

    color: #6cff35;

    font-size: 11px;

    letter-spacing: 4px;

    margin-bottom: 12px;

}


.information-panel h1 {

    font-size: 55px;

    line-height: 0.9;

    margin-bottom: 15px;

}


#description {

    color: #d5e6d1;

    font-size: 14px;

    line-height: 1.5;

    margin-bottom: 20px;

}


.information {

    display: grid;

    gap: 10px;

}


.info-box {

    border-left:
        3px solid #65ff00;

    padding:
        10px 12px;

    background:
        rgba(100,255,0,0.05);

}


.info-box small {

    display: block;

    color: #6cff35;

    font-size: 9px;

    letter-spacing: 3px;

    margin-bottom: 4px;

}


.info-box strong {

    font-size: 13px;

}


/* =====================================
   NAVIGATION
===================================== */

.navigation {

    position: absolute;

    z-index: 20;

    bottom: 20px;

    left: 50%;

    transform:
        translateX(-50%);

    display: flex;

    align-items: center;

    gap: 20px;

}



.swipe-text {

    color: #a2bf99;

    font-size: 9px;

    letter-spacing: 3px;

}


/* =====================================
   ENDING
===================================== */

.ending {

    background: black;

    display: none;

    align-items: center;

    justify-content: center;

}


.ending.active {

    display: flex;

}


#redFlash {

    position: absolute;

    inset: 0;

    background: red;

    opacity: 0;

}


.red-animation #redFlash {

    animation:
        redFlash 3s forwards;

}


@keyframes redFlash {

    0% {
        opacity: 0;
    }

    15% {
        opacity: 0.8;
    }

    25% {
        opacity: 0.1;
    }

    45% {
        opacity: 0.7;
    }

    50% {
        opacity: 0.6;
    }

    60% {
        opacity: 0.1;
    }

    85% {
        opacity: 0.5;
    }

    100% {
        opacity: 0;
    }

}


.ben-ending {

    text-align: center;

    opacity: 0;

}


.ben-ending.show {

    animation:
        benAppear 3s forwards;

}


.ben-ending img {

    max-width: 600px;

    max-height: 60vh;

    object-fit: contain;

    filter:
        drop-shadow(
            0 0 40px rgb(0, 206, 10)
        );

}


.ben-ending h1 {

    font-size: 80px;

    text-shadow:

        0 0 20px rgb(0, 206, 10),

        0 0 50px rgb(0, 206, 10);

}


@keyframes benAppear {

    0% {

        opacity: 0;

        transform:
            scale(0.7);

    }

    30% {

        opacity: 1;

        transform:
            scale(1.05);

    }

    100% {

        opacity: 1;

        transform:
            scale(1);

    }

}


/* =====================================
   MOBILE
===================================== */

@media(max-width:800px) {

    .omnitrix {

        width: 260px;
        height: 260px;

    }


    .information-panel {

        left: 5%;

        right: 5%;

        bottom: 75px;

        top: auto;

        width: 90%;

        padding: 15px;

        max-height: 35vh;

        overflow-y: auto;

    }


    .information-panel h1 {

        font-size: 30px;

    }


    #description {

        font-size: 11px;

    }


    .alien-container {

        left: 50%;

        top: 35%;

        width: 90vw;

        height: 50vh;

    }


    .alien-visual-name {

        font-size: 35px;

    }


}

/* CENTER START LOGO */

.logo-button {
    position: absolute !important;

    top: 50% !important;
    left: 50% !important;

    width: 280px;
    height: 280px;

    transform: translate(-50%, -50%);

    display: flex;
    align-items: center;
    justify-content: center;

    cursor: pointer;

    z-index: 1000;

    animation: logoPulse 2s ease-in-out infinite;
}

.logo-button img {
    width: 100%;
    height: 100%;

    object-fit: contain;

    display: block;

    filter:
        drop-shadow(0 0 10px #39ff14)
        drop-shadow(0 0 25px #39ff14)
        drop-shadow(0 0 50px #39ff14);
}


/* PULSE EFFECT */

@keyframes logoPulse {

    0% {
        transform: scale(1);
        filter:
            drop-shadow(0 0 8px #39ff14)
            drop-shadow(0 0 20px #39ff14);
    }

    50% {
        transform: scale(1.08);
        filter:
            drop-shadow(0 0 15px #39ff14)
            drop-shadow(0 0 35px #39ff14)
            drop-shadow(0 0 65px rgba(57, 255, 20, 0.9));
    }

    100% {
        transform: scale(1);
        filter:
            drop-shadow(0 0 8px #39ff14)
            drop-shadow(0 0 20px #39ff14);
    }
}

@media (max-width: 768px) {

    .logo-button {
        width: 200px;
        height: 200px;
    }

}

@keyframes logoPulse {

    0% {
        transform: translate(-50%, -50%) scale(1);
        filter:
            drop-shadow(0 0 8px #39ff14)
            drop-shadow(0 0 20px #39ff14);
    }

    50% {
        transform: translate(-50%, -50%) scale(1.08);
        filter:
            drop-shadow(0 0 15px #39ff14)
            drop-shadow(0 0 35px #39ff14)
            drop-shadow(0 0 60px #39ff14);
    }

    100% {
        transform: translate(-50%, -50%) scale(1);
        filter:
            drop-shadow(0 0 8px #39ff14)
            drop-shadow(0 0 20px #39ff14);
    }
}


/* =================================
   NAVIGATION
================================= */

.navigation {
    position: absolute;

    left: 50%;
    bottom: 30px;

    transform: translateX(-50%);

    width: 390px;
    height: 10px;

    display: flex;
    flex-direction: row;

    align-items: center;
    justify-content: space-between;

    gap: 10px;

    z-index: 3000;

    box-sizing: border-box;
}


/* =================================
   LOGO BUTTON
================================= */

.logo-nav {
    flex: 0 0 65px;

    width: 65px;
    height: 65px;

    padding: 0;
    margin: 0;

    border: none;
    outline: none;

    background: transparent;

    display: flex;
    align-items: center;
    justify-content: center;

    cursor: pointer;

    z-index: 3000;
}


/* LOGO IMAGE */

.logo-nav img {
    width: 100%;
    height: 100%;

    object-fit: contain;

    display: block;

    filter:
        drop-shadow(0 0 5px #39ff14)
        drop-shadow(0 0 15px #39ff14);

    transition: transform 0.15s ease;
}


/* PREVIOUS = FLIP LOGO */

.previous-logo img {
    transform: rotate(180deg);
}


/* HOVER */

.next-logo:hover img {
    transform: scale(1.12);
}

.previous-logo:hover img {
    transform: rotate(180deg) scale(1.12);
}


/* PRESS */

.next-logo:active img {
    transform: scale(0.85);
}

.previous-logo:active img {
    transform: rotate(180deg) scale(0.85);
}


/* =================================
   SWIPE TEXT
================================= */

.swipe-text {
    flex: 1;

    min-width: 0;

    margin: 0;

    text-align: center;

    white-space: nowrap;

    font-size: 12px;
    letter-spacing: 4px;
    font-weight: 700;

    color: rgb(20, 245, 12);

    line-height: 1;

    z-index: 3000;
}

@media (max-width: 768px) {

    .navigation {
        width: 330px;
        height: 60px;

        bottom: 20px;

        gap: 8px;
    }

    .logo-nav {
        flex-basis: 50px;

        width: 50px;
        height: 50px;
    }

    .swipe-text {
        font-size: 8px;
        letter-spacing: 2px;

        white-space: nowrap;
    }
}

/* =========================================
   FEATURE 1 — OMNITRIX INTRO ANIMATION
   ========================================= */

#intro {
    background: #000;
    overflow: hidden;
}

/* Green energy glow behind the logo */
#intro::before {
    content: "";
    position: absolute;
    width: 500px;
    height: 500px;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: radial-gradient(
        circle,
        rgba(80, 255, 80, 0.35) 0%,
        rgba(0, 255, 0, 0.12) 35%,
        transparent 70%
    );
    animation: introGlow 2.5s ease-in-out infinite;
    pointer-events: none;
}

/* Logo entrance */
.logo-button {
    animation:
        logoEntrance 1.5s ease-out forwards,
        logoPulse 2.2s ease-in-out 1.5s infinite;
}

/* Green background energy */
@keyframes introGlow {
    0%, 100% {
        opacity: 0.45;
        transform: translate(-50%, -50%) scale(0.85);
    }

    50% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.15);
    }
}

/* Logo appears from darkness */
@keyframes logoEntrance {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.45);
        filter: brightness(0.3) drop-shadow(0 0 0 transparent);
    }

    60% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.08);
        filter: brightness(1.5)
                drop-shadow(0 0 25px rgba(0, 255, 0, 0.9));
    }

    100% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
        filter: brightness(1)
                drop-shadow(0 0 18px rgba(0, 255, 0, 0.8));
    }
}

/* Continuous Omnitrix pulse */
@keyframes logoPulse {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
        filter: brightness(1)
                drop-shadow(0 0 15px rgba(0, 255, 0, 0.7));
    }

    50% {
        transform: translate(-50%, -50%) scale(1.07);
        filter: brightness(1.25)
                drop-shadow(0 0 35px rgba(0, 255, 0, 1));
    }
}

/* Start text animation */
.click-text {
    animation: startTextPulse 1.5s ease-in-out infinite;
}

@keyframes startTextPulse {
    0%, 100% {
        opacity: 0.55;
    }

    50% {
        opacity: 1;
    }
}


/* =========================================
   FEATURE 2 — TRANSFORMATION EFFECT
   ========================================= */

.alien-container {
    transition: transform 0.3s ease;
}

/* Green transformation flash */
#database.transforming::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(
        circle,
        rgba(120, 255, 120, 0.9),
        rgba(0, 255, 0, 0.45),
        transparent 70%
    );
    z-index: 5000;
    pointer-events: none;
    animation: transformFlash 0.65s ease-out forwards;
}


/* Flash */
@keyframes transformFlash {
    0% {
        opacity: 0;
        transform: scale(0.4);
    }

    25% {
        opacity: 1;
        transform: scale(1.1);
    }

    100% {
        opacity: 0;
        transform: scale(1.6);
    }
}

/* Alien transformation - keeps original position */
.alien-container img {
    transition: none;
}

.alien-container img.transform-in {
    animation: alienAppear 0.55s ease-out forwards;
}

@keyframes alienAppear {
    0% {
        opacity: 0;
        transform: scale(0.75);
        filter: brightness(2.5) blur(8px);
    }

    55% {
        opacity: 1;
        transform: scale(1.08);
        filter: brightness(1.5) blur(1px);
    }

    100% {
        opacity: 1;
        transform: scale(1);
        filter: brightness(1) blur(0);
    }
}


/* =========================================
   FEATURE 3 — ANIMATED PLANET BACKGROUND
   ========================================= */

.planet-background {
    animation: planetMovement 12s ease-in-out infinite alternate;
    transform-origin: center center;
}

/* Slow cinematic movement */
@keyframes planetMovement {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.06);
    }

    100% {
        transform: scale(1.02);
    }
}


/* Atmospheric glow over the planet */
#database::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 2;

    background:
        radial-gradient(
            circle at 50% 50%,
            transparent 25%,
            rgba(0, 255, 80, 0.08) 60%,
            rgba(0, 0, 0, 0.55) 100%
        );
}


.alien-container {
    z-index: 10;
}

.information-panel {
    z-index: 20;
}

.navigation {
    z-index: 3000;
}


/* =========================================
   FEATURE 4 — ALIEN VISUAL EFFECTS
   ========================================= */

.alien-container.effect-fire img {
    filter:
        drop-shadow(0 0 15px rgba(255, 80, 0, 0.9))
        drop-shadow(0 0 35px rgba(255, 180, 0, 0.7));
}

.alien-container.effect-crystal img {
    filter:
        drop-shadow(0 0 15px rgba(100, 220, 255, 0.9))
        drop-shadow(0 0 35px rgba(0, 150, 255, 0.7));
}

.alien-container.effect-speed img {
    filter:
        drop-shadow(0 0 15px rgba(0, 255, 255, 0.9))
        drop-shadow(0 0 35px rgba(0, 200, 255, 0.7));
}

.alien-container.effect-ghost img {
    filter:
        drop-shadow(0 0 15px rgba(180, 100, 255, 0.9))
        drop-shadow(0 0 40px rgba(120, 0, 255, 0.7));
}

.alien-container.effect-electric img {
    filter:
        drop-shadow(0 0 15px rgba(0, 255, 255, 1))
        drop-shadow(0 0 40px rgba(0, 150, 255, 0.8));
}

.alien-container.effect-nature img {
    filter:
        drop-shadow(0 0 15px rgba(50, 255, 80, 0.9))
        drop-shadow(0 0 35px rgba(0, 200, 50, 0.7));
}

.alien-container.effect-strength img {
    filter:
        drop-shadow(0 0 18px rgba(255, 200, 50, 0.9))
        drop-shadow(0 0 40px rgba(255, 120, 0, 0.6));
}

.alien-container.effect-water img {
    filter:
        drop-shadow(0 0 15px rgba(0, 180, 255, 0.9))
        drop-shadow(0 0 40px rgba(0, 80, 255, 0.7));
}

.alien-container.effect-cosmic img {
    filter:
        drop-shadow(0 0 20px rgba(255, 255, 255, 1))
        drop-shadow(0 0 50px rgba(150, 100, 255, 0.8));
}


/* ============================= */
/* ALIEN STATISTICS */
/* ============================= */

.stats-panel {
    width: 90%;
    max-width: 600px;
    margin: 20px auto 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 20px;
}

.stat {
    width: 100%;
}

.stat span {
    display: block;
    font-size: 11px;
    font-weight: bold;
    letter-spacing: 1px;
    margin-bottom: 4px;
}

.stat-bar {
    width: 100%;
    height: 8px;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(0, 255, 80, 0.5);
    border-radius: 5px;
    overflow: hidden;
}

.stat-bar div {
    width: 0%;
    height: 100%;
    background: #00ff55;
    box-shadow: 0 0 10px #00ff55;
    border-radius: 5px;
    transition: width 0.8s ease;
}

/* FIX: Make statistics visible */
.stats-panel {
    position: relative;
    z-index: 100;
    display: grid !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.stat {
    display: block !important;
    visibility: visible !important;
}

.stat span {
    color: #00ff55 !important;
    visibility: visible !important;
}

.stat-bar {
    display: block !important;
    visibility: visible !important;
}

.stat-bar div {
    display: block !important;
    visibility: visible !important;
}


/* ============================= */
/* OMNITRIX ALIEN SELECTOR */
/* ============================= */

.omnitrix-selector {
    position: absolute;
    left: 100px;
    top: 50%;
    transform: translateY(-50%);
    width: 200px;
    height: 200px;
    z-index: 2000;
}

.omnitrix-button {
    width: 100%;
    height: 100%;
    padding: 0;
    border: none;
    background: transparent;
    cursor: pointer;
    position: relative;
    z-index:2100;
    transition: transform 0.2s ease;
}

.omnitrix-button:hover {
    transform: scale(1.08);
}

.omnitrix-button img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}


/* ============================= */
/* ALIEN SELECTOR WHEEL */
/* ============================= */

.alien-wheel {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 500px;
    height: 500px;
    transform: translate(-50%, -50%);
    z-index: 2050;
    display: none;
    pointer-events: none;
}

.alien-wheel.open {
    display: block;
    pointer-events: auto;
}

.selector-alien {
    position: absolute;
    width: 55px;
    height: 55px;
    padding: 5px;
    border: 2px solid #000000;
    border-radius: 50%;
    background: #00ff55;
    box-shadow: 0 0 12px rgba(0, 255, 80, 0.9);

    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 2060;
    transition: transform 0.2s ease;
}

.selector-alien:hover{
    transform: scale(1.12);
}

.selector-alien img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;

    /* Turn colorful alien into black silhouette */
    filter: grayscale(100%) brightness(0);
}

/* =================================
   OMNITRIX ENERGY CORE
================================= */

.omnitrix-energy {
    position: absolute;
    right: 30px;
    bottom: 15px;
    width: 125px;
    height: 125px;
    z-index: 3000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.energy-core {
    position: relative;
    width: 85px;
    height: 85px;
    border: 3px solid #00ff55;
    border-radius: 50%;
    background: radial-gradient(
        circle,
        rgba(0, 255, 85, 0.18),
        rgba(0, 20, 10, 0.95) 65%
    );
    box-shadow:
        0 0 10px #00ff55,
        0 0 25px rgba(0, 255, 85, 0.7),
        inset 0 0 20px rgba(0, 255, 85, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.energy-fill {
    position: absolute;
    left: 6px;
    right: 6px;
    bottom: 6px;
    height: 100%;
    background: #00ff55;
    border-radius: 50%;
    opacity: 0.75;
    box-shadow: 0 0 20px #00ff55;
    clip-path: inset(0% 0 0 0);
}

.energy-ring {
    position: absolute;
    inset: 7px;
    border: 2px solid rgba(0, 255, 85, 0.5);
    border-radius: 50%;
    pointer-events: none;
}

#batteryPercent {
    position: relative;
    z-index: 5;
    color: #ffffff;
    font-size: 17px;
    font-weight: 900;
    letter-spacing: 1px;
    text-shadow:
        0 0 5px #00ff55,
        0 0 12px #00ff55;
}

.energy-label {
    margin-top: 8px;
    color: #00ff55;
    font-size: 10px;
    font-weight: bold;
    letter-spacing: 2px;
    text-shadow: 0 0 8px #00ff55;
}

/* ============================= */
/* FEATURE 11 - ALIEN EFFECTS    */
/* ============================= */

.alien-container::after {
    content: "";
    position: absolute;
    width: 180px;
    height: 180px;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    pointer-events: none;
    opacity: 0;
    z-index: -1;
}

.alien-container.effect-fire::after {
    background: radial-gradient(circle, rgba(255,80,0,.8), transparent 70%);
    box-shadow: 0 0 40px rgba(255,80,0,.8);
    animation: alienEffectPulse .8s ease-out;
}

.alien-container.effect-speed::after {
    background: radial-gradient(circle, rgba(0,255,255,.7), transparent 70%);
    box-shadow: 0 0 40px rgba(0,255,255,.8);
    animation: alienEffectPulse .5s ease-out;
}

.alien-container.effect-electric::after {
    background: radial-gradient(circle, rgba(80,160,255,.8), transparent 70%);
    box-shadow: 0 0 45px rgba(80,160,255,.9);
    animation: alienEffectPulse .7s ease-out;
}

.alien-container.effect-crystal::after {
    background: radial-gradient(circle, rgba(100,220,255,.7), transparent 70%);
    box-shadow: 0 0 45px rgba(100,220,255,.8);
    animation: alienEffectPulse .8s ease-out;
}

.alien-container.effect-ghost::after {
    background: radial-gradient(circle, rgba(180,80,255,.7), transparent 70%);
    box-shadow: 0 0 45px rgba(180,80,255,.8);
    animation: alienEffectPulse 1s ease-out;
}

.alien-container.effect-nature::after {
    background: radial-gradient(circle, rgba(80,255,100,.7), transparent 70%);
    box-shadow: 0 0 45px rgba(80,255,100,.8);
    animation: alienEffectPulse .8s ease-out;
}

.alien-container.effect-cosmic::after {
    background: radial-gradient(circle, rgba(255,255,255,.9), rgba(100,100,255,.4), transparent 70%);
    box-shadow: 0 0 60px rgba(150,150,255,.9);
    animation: alienEffectPulse 1.2s ease-out;
}

@keyframes alienEffectPulse {

    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(.3);
    }

    30% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }

    100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(1.5);
    }
}

.alien-container.effect-active::after {
    animation-name: alienEffectPulse;
}

.compare-image-button {
    position: absolute;
    left: 30px;
    bottom: 25px;

    width: 140px;
    height: 70px;

    padding: 0;
    border: none;
    background: transparent;

    cursor: pointer;
    z-index: 4000;

    transition: transform 0.2s ease;
}

.compare-image-button img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.compare-image-button:hover {
    transform: scale(1.1);
}

/* ============================= */
/* ALIEN COMPARISON SCREEN       */
/* ============================= */

.comparison-screen {
    position: absolute;
    inset: 0;

    background: #000000;

    z-index: 6000;

    display: none;
    flex-direction: column;
    align-items: center;

    padding: 30px;
    box-sizing: border-box;
}

.comparison-header {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;

    position: relative;
}

.comparison-header h2 {
    color: #00ff55;
    font-size: 28px;
    letter-spacing: 4px;

    text-shadow:
        0 0 10px #00ff55,
        0 0 25px #00ff55;
}

#closeComparison {
    position: absolute;
    right: 10px;
    top: 0;

    width: 45px;
    height: 45px;

    background: rgba(0, 20, 10, 0.9);
    border: 2px solid #00ff55;
    border-radius: 50%;

    color: #00ff55;
    font-size: 22px;
    font-weight: bold;

    cursor: pointer;

    box-shadow: 0 0 15px rgba(0, 255, 85, 0.7);
}

.comparison-container {
    width: 100%;
    max-width: 1000px;

    display: flex;
    align-items: center;
    justify-content: center;

    gap: 50px;

    margin-top: 30px;
}

.comparison-card {
    width: 300px;
    min-height: 400px;

    padding: 20px;

    text-align: center;

    background: rgba(0, 20, 10, 0.75);

    border: 2px solid #00ff55;
    border-radius: 15px;

    box-shadow:
        0 0 20px rgba(0, 255, 85, 0.5),
        inset 0 0 20px rgba(0, 255, 85, 0.1);
}

.comparison-card h3 {
    color: #00ff55;
    font-size: 24px;
    letter-spacing: 2px;

    margin-bottom: 15px;

    text-shadow: 0 0 10px #00ff55;
}

.comparison-card img {
    width: 220px;
    height: 220px;

    object-fit: contain;

    filter:
        drop-shadow(0 0 15px rgba(0, 255, 85, 0.8));
}

.comparison-info {
    margin-top: 15px;

    color: white;
    font-size: 13px;
    letter-spacing: 1px;
}

.comparison-info span {
    color: #00ff55;
    font-weight: bold;
}

.comparison-vs {
    color: #00ff55;
    font-size: 32px;
    font-weight: 900;

    text-shadow:
        0 0 10px #00ff55,
        0 0 25px #00ff55;
}

.comparison-stats {
    margin-top: 15px;
    text-align: left;
}

.comparison-stat {
    margin-bottom: 8px;
    position: relative;
}

.comparison-stat > span {
    display: block;
    color: #00ff55;
    font-size: 9px;
    font-weight: bold;
    letter-spacing: 1px;
    margin-bottom: 3px;
}

.comparison-stat-bar {
    width: calc(100% - 35px);
    height: 6px;
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid rgba(0, 255, 85, 0.5);
    border-radius: 4px;
    overflow: hidden;
}

.comparison-stat-bar div {
    width: 0%;
    height: 100%;
    background: #00ff55;
    box-shadow: 0 0 8px #00ff55;
    border-radius: 4px;
    transition: width 0.6s ease;
}

.comparison-stat strong {
    position: absolute;
    right: 0;
    bottom: 0;

    color: white;
    font-size: 10px;
}

.alien-select {
    width: 90%;
    padding: 10px;

    background: #000000;
    color: #00ff55;

    border: 2px solid #00ff55;
    border-radius: 6px;

    font-size: 12px;
    font-weight: bold;
    letter-spacing: 1px;

    outline: none;
    cursor: pointer;

    box-shadow: 0 0 10px rgba(0, 255, 85, 0.5);
}

.alien-select option {
    background: #000000;
    color: #00ff55;
}

/* ============================= */
/* IMAGE FIGHT BUTTON             */
/* ============================= */

.fight-image-button {
    margin-top: 25px;

    width: 150px;
    height: 70px;

    padding: 0;
    border: none;
    background: transparent;

    cursor: pointer;

    transition: transform 0.2s ease;

    z-index: 7000;
}

.fight-image-button img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.fight-image-button:hover {
    transform: scale(1.1);
}

.fight-image-button:active {
    transform: scale(0.95);
}/* ============================= */
/* IMAGE FIGHT BUTTON             */
/* ============================= */

.fight-image-button {
    margin-top: 25px;

    width: 150px;
    height: 70px;

    padding: 0;
    border: none;
    background: transparent;

    cursor: pointer;

    transition: transform 0.2s ease;

    z-index: 7000;
}

.fight-image-button img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.fight-image-button:hover {
    transform: scale(1.1);
}

.fight-image-button:active {
    transform: scale(0.95);
}


.battle-result {
    margin-top: 15px;

    min-height: 30px;

    color: #00ff55;
    font-size: 22px;
    font-weight: 900;
    letter-spacing: 3px;

    text-align: center;

    text-shadow:
        0 0 10px #00ff55,
        0 0 25px #00ff55;
}

.reset-battle-button {
    margin-top: 15px;

    padding: 10px 25px;

    background: #000000;
    color: #00ff55;

    border: 2px solid #00ff55;
    border-radius: 8px;

    font-size: 14px;
    font-weight: 900;
    letter-spacing: 2px;

    cursor: pointer;

    box-shadow: 0 0 12px rgba(0, 255, 85, 0.6);

    transition: transform 0.2s ease,
                background 0.2s ease,
                box-shadow 0.2s ease;
}

.reset-battle-button:hover {
    transform: scale(1.08);

    background: rgba(0, 255, 85, 0.15);

    box-shadow:
        0 0 15px #00ff55,
        0 0 30px rgba(0, 255, 85, 0.6);
}

.reset-battle-button:active {
    transform: scale(0.95);
}

/* =================================
   BATTLE ANIMATION SCREEN
================================= */

.battle-animation-screen {
    position: absolute;
    inset: 0;

    width: 100%;
    height: 100%;

    background: #000000;

    z-index: 8000;

    display: none;

    align-items: center;
    justify-content: center;

    overflow: hidden;
}

#battleAnimationVideo {
    width: 100%;
    height: 100%;

    object-fit: contain;

    display: block;
}

/* =================================
   WINNER SCREEN
================================= */

.winner-screen {
    position: absolute;
    inset: 0;

    width: 100%;
    height: 100%;

    background: #000000;

    z-index: 9000;

    display: none;

    flex-direction: column;
    align-items: center;
    justify-content: center;

    text-align: center;
}

.winner-screen h1 {
    margin: 0 0 20px;

    color: #00ff55;

    font-size: 48px;
    font-weight: 900;

    letter-spacing: 8px;

    text-shadow:
        0 0 10px #00ff55,
        0 0 25px #00ff55,
        0 0 50px #00ff55;
}

#winnerAlienImage {
    width: 320px;
    height: 320px;

    object-fit: contain;

    filter:
        drop-shadow(0 0 15px #00ff55)
        drop-shadow(0 0 35px rgba(0, 255, 85, 0.8));
}

#winnerAlienName {
    margin: 15px 0 30px;

    color: #ffffff;

    font-size: 32px;
    font-weight: 900;

    letter-spacing: 4px;

    text-shadow:
        0 0 10px #00ff55,
        0 0 25px #00ff55;
}

#winnerResetButton {
    margin-top: 10px;
}


/* =========================
   HOME SCREEN
========================= */

.home-screen {
    display: none;
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100vh;
    background: #000;
    z-index: 1000;

    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.home-screen.active {
    display: flex;
}


/* =========================
   HOME SCREEN TITLE
========================= */

.home-screen h1 {
    margin: 0 0 30px 0;

    text-align: center;

    color: #00ff00;
}


/* =========================
   OMNITRIX OPTIONS
========================= */

.omnitrix-options {
    display: grid;

    grid-template-columns: repeat(4, 1fr);

    gap: 30px;

    width: 90%;
    max-width: 1200px;

    max-height: 70vh;

    overflow-y: auto;

    padding: 20px;

    box-sizing: border-box;
}


/* =========================
   GREEN SCROLLBAR
========================= */

.omnitrix-options::-webkit-scrollbar {
    width: 12px;
}

.omnitrix-options::-webkit-scrollbar-track {
    background: #001a00;

    border-radius: 10px;
}

.omnitrix-options::-webkit-scrollbar-thumb {
    background: #00ff00;

    border-radius: 10px;

    border: 2px solid #001a00;
}

.omnitrix-options::-webkit-scrollbar-thumb:hover {
    background: #39ff14;
}


/* =========================
   INDIVIDUAL OMNITRIX
========================= */

.omnitrix-option {
    cursor: pointer;

    text-align: center;

    display: flex;
    flex-direction: column;
    align-items: center;

    padding: 10px;

    box-sizing: border-box;
}


/* =========================
   OMNITRIX IMAGE
========================= */

.omnitrix-option img {
    width: 180px;
    height: 180px;

    object-fit: contain;

    display: block;
}


/* =========================
   OMNITRIX NAME
========================= */

.omnitrix-option h2 {
    margin: 12px 0 0 0;

    text-align: center;

    color: #00ff00;
}

/* =========================
   EXIT DATABASE BUTTON
========================= */

.exit-database-button {
    position: fixed;

    top: 25px;
    right: 25px;

    padding: 10px 20px;

    background: #000;

    color: #00ff00;

    border: 2px solid #00ff00;

    border-radius: 6px;

    font-size: 16px;
    font-weight: bold;

    cursor: pointer;

    z-index: 1000;
}

.exit-database-button:hover {
    background: #00ff00;
    color: #000;
}

/* =========================
   NEMETRIX DATABASE
========================= */

.nemetrix-database {
    display: none;
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100vh;
    overflow: hidden;

    background: #000;
    z-index: 2000;

    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.nemetrix-database.active {
    display: flex;
}


/* =========================
   NEMETRIX PLANET BACKGROUND
========================= */

.nemetrix-planet-background {
    position: absolute;
    inset: 0;

    background-image: url("nemi/background.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    z-index: 0;
}


/* =========================
   NEMETRIX DARK OVERLAY
========================= */

.nemetrix-database::after {
    content: "";

    position: absolute;
    inset: 0;

    background: rgba(0, 0, 0, 0.35);

    z-index: 1;

    pointer-events: none;
}


/* =========================
   NEMETRIX LOGO / BUTTON
========================= */

.nemetrix-logo {
    position: absolute;

    left: 130px;
    top: 63%;

    transform: translateY(-50%);

    width: 120px;
    height: 120px;

    object-fit: contain;

    z-index: 10;

    cursor: pointer;

    filter:
        drop-shadow(0 0 10px #ff0000)
        drop-shadow(0 0 25px #ff0000);

    transition: transform 0.2s ease;
}

.nemetrix-logo:hover {
    transform: translateY(-50%) scale(1.1);
}


/* =========================
   NEMETRIX CREATURE IMAGE
========================= */

.nemetrix-alien-image {
    position: relative;

    right: 5%;
    width: 520px;
    height: 620px;

    object-fit: contain;

    z-index: 4;
}

.nemetrix-alien-image {
    position: relative;

    width: 520px;
    height: 620px;

    object-fit: contain;

    z-index: 4;

    /* RED PREDATOR GLOW */
    filter:
        drop-shadow(0 0 3px #ff0000)
        drop-shadow(0 0 10px #ff0000)
        drop-shadow(0 0 20px rgba(255, 0, 0, 0.9))
        drop-shadow(0 0 40px rgba(255, 0, 0, 0.6));
}


/* =========================
   NEMETRIX NAVIGATION
========================= */

.nemetrix-navigation {
    position: absolute;

    left: 50%;
    bottom: 25px;

    transform: translateX(-50%);

    width: 390px;

    display: flex;
    justify-content: space-between;
    align-items: center;

    z-index: 20;
}

.nemetrix-navigation button {
    background: transparent;
    border: none;
    padding: 0;

    cursor: pointer;
}

.nemetrix-navigation button img {
    width: 120px;
    height: 80px;

    object-fit: contain;
    display: block;
}

.nemetrix-navigation button:hover {
    transform: scale(1.08);
}

/* =========================
   NEMETRIX INFORMATION PANEL
========================= */

.nemetrix-information-panel {

    position: absolute;

    right: 4%;
    top: 15%;

    width: 38%;

    padding: 30px;

    background: rgba(10, 0, 0, 0.78);

    border: 1px solid rgba(255, 0, 0, 0);

    backdrop-filter: blur(12px);

    box-shadow:
        0 0 30px rgba(255, 0, 0, 0.15);

    z-index: 10;
}


.nemetrix-database-title {

    color: #ff0000;

    font-size: 11px;

    letter-spacing: 4px;

    margin-bottom: 12px;
}


.nemetrix-information-panel h1 {

    color: white;

    font-size: 48px;

    line-height: 0.9;

    margin-bottom: 20px;

    text-shadow:
        0 0 20px #ff0000;
}


/* PREDATOR INFO */

.nemetrix-info-box {

    border-left: 3px solid #ff0000;

    padding: 10px 12px;

    margin-bottom: 20px;

    background: rgba(255, 0, 0, 0.05);
}


.nemetrix-info-box small {

    display: block;

    color: #ff0000;

    font-size: 9px;

    letter-spacing: 3px;

    margin-bottom: 5px;
}


.nemetrix-info-box strong {

    font-size: 15px;

    color: white;
}


/* STATS */

.nemetrix-stats {

    display: grid;

    gap: 10px;
}


.nemetrix-stat {

    position: relative;

    margin-bottom: 5px;
}


.nemetrix-stat > span {

    display: block;

    color: #ff0000;

    font-size: 9px;

    font-weight: bold;

    letter-spacing: 1px;

    margin-bottom: 3px;
}


.nemetrix-stat-bar {

    width: calc(100% - 35px);

    height: 6px;

    background: rgba(0, 0, 0, 0.7);

    border: 1px solid rgba(255, 0, 0, 0.5);

    border-radius: 4px;

    overflow: hidden;
}


.nemetrix-stat-bar div {

    width: 0%;

    height: 100%;

    background: #ff0000;

    box-shadow: 0 0 8px #ff0000;

    border-radius: 4px;

    transition: width 0.6s ease;
}


.nemetrix-stat > strong {

    position: absolute;

    right: 0;

    bottom: 0;

    color: white;

    font-size: 10px;
}

 /* =========================
    BEN 10 LOGO - NEMETRIX
 ========================= */

.nemetrix-ben10-logo {

    position: absolute;

    top: 25px;
    left: 30px;

    width: 120px;
    height: 80px;

    object-fit: contain;

    z-index: 10;

    filter:
        drop-shadow(0 0 5px rgba(0, 255, 0, 0.7))
        drop-shadow(0 0 15px rgba(0, 255, 0, 0.5));
}


.nemetrix-hologram {
    position: absolute;
    left: 65px;
    top: 40%;
    transform: translateY(-50%);

    width: 200px;
    height: 300px;

    object-fit: contain;

    z-index: 8;

    opacity: 0;
    pointer-events: none;

    filter:
        brightness(1.5)
        drop-shadow(0 0 5px #ff0000)
        drop-shadow(0 0 15px #ff0000)
        drop-shadow(0 0 30px #ff0000);

    mix-blend-mode: screen;

    transition:
        opacity 0.3s ease,
        transform 0.3s ease;
}

.exit-nemetrix-button {
    position: fixed;
    top: 25px;
    right: 25px;

    padding: 10px 20px;

    background: #000;
    color: #ff0000;

    border: 2px solid #ff0000;
    border-radius: 6px;

    font-size: 16px;
    font-weight: bold;

    cursor: pointer;

    z-index: 1000;
}

.exit-nemetrix-button:hover {
    background: #ff0000;
    color: #000;
}

/* NEMETRIX ENERGY POSITION */
.nemetrix-energy {
    right: 50px;
}

/* KEEP NEMETRIX ENERGY ON ONE LINE */
.nemetrix-energy .energy-label {
    white-space: nowrap;
    width: max-content;
}


/* =========================================
   ANTI-TRIX DATABASE
   ========================================= */

.antitrix-database {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    background: #050505;
    overflow: hidden;
    display: none;
    z-index: 7000;
    color: white;
}

.antitrix-database.active {
    display: block;
}


/* =========================================
   ANTI-TRIX BACKGROUND
   ========================================= */

.antitrix-background {
    position: absolute;
    inset: 0;

    background:
        radial-gradient(
            circle at center,
            rgba(255, 0, 0, 0.18),
            transparent 45%
        ),
        radial-gradient(
            circle at 20% 80%,
            rgba(255, 0, 0, 0.12),
            transparent 35%
        ),
        #050505;

    z-index: 1;
}


/* =========================================
   ANTI-TRIX TITLE
   ========================================= */

.antitrix-database h1 {
    position: absolute;

    top: 40px;
    left: 50%;

    transform: translateX(-50%);

    z-index: 10;

    font-size: 42px;
    font-weight: 900;

    letter-spacing: 8px;

    color: #ff2020;

    text-shadow:
        0 0 10px #ff0000,
        0 0 25px rgba(255, 0, 0, 0.8);
}


/* =========================================
   ANTI-TRIX PLACEHOLDER
   ========================================= */

.antitrix-placeholder {
    position: absolute;

    left: 50%;
    top: 50%;

    transform: translate(-50%, -50%);

    width: 420px;

    padding: 40px;

    text-align: center;

    background:
        rgba(20, 0, 0, 0.75);

    border: 2px solid rgba(255, 0, 0, 0.7);

    box-shadow:
        0 0 20px rgba(255, 0, 0, 0.4),
        inset 0 0 30px rgba(255, 0, 0, 0.08);

    z-index: 10;
}

.antitrix-placeholder h2 {
    font-size: 55px;

    margin-bottom: 15px;

    color: #ff3030;

    text-shadow:
        0 0 10px #ff0000,
        0 0 25px #ff0000;
}

.antitrix-placeholder p {
    color: #ff8a8a;

    font-size: 14px;

    letter-spacing: 4px;
}


/* =========================================
   ANTI-TRIX EXIT BUTTON
   ========================================= */

.exit-antitrix-button {
    position: absolute;

    top: 25px;
    right: 25px;

    z-index: 100;

    padding: 10px 18px;

    background: rgba(30, 0, 0, 0.8);

    border: 1px solid #ff3030;
    border-radius: 8px;

    color: #ff3030;

    font-size: 12px;
    font-weight: bold;

    letter-spacing: 2px;

    cursor: pointer;

    box-shadow:
        0 0 10px rgba(255, 0, 0, 0.4);

    transition: 0.2s ease;
}

.exit-antitrix-button:hover {
    background: #ff2020;

    color: white;

    box-shadow:
        0 0 20px #ff0000;

    transform: scale(1.05);
}


/* =========================================
   MOBILE
   ========================================= */

@media (max-width: 800px) {

    .antitrix-database h1 {
        top: 30px;

        font-size: 25px;

        letter-spacing: 4px;
    }

    .antitrix-placeholder {
        width: 85%;

        padding: 30px 20px;
    }

    .antitrix-placeholder h2 {
        font-size: 38px;
    }

}

/* =========================================
   ANTI-TRIX ALIEN DISPLAY
   SAME LAYOUT AS CLASSIC / NEMETRIX
========================================= */

.antitrix-alien-display {
    position: absolute;
    inset: 0;

    width: 100%;
    height: 100%;

    z-index: 5;

    pointer-events: none;
}


/* =========================================
   ALIEN IMAGE
========================================= */

.antitrix-alien-image-container {

    position: absolute;

    left: 45%;
    top: 50%;

    width: 50vw;
    height: 80vh;

    transform:
        translate(-50%, -50%);

    display: flex;

    justify-content: center;
    align-items: center;

    z-index: 10;
}

.antitrix-alien-image-container img {

    max-width: 85%;
    max-height: 85%;

    object-fit: contain;

    position: relative;

    z-index: 2;

    filter:
        drop-shadow(0 0 3px #ff0000)
        drop-shadow(0 0 10px #ff0000)
        drop-shadow(0 0 25px rgba(255, 0, 0, 0.9))
        drop-shadow(0 0 40px rgba(255, 0, 0, 0.6));

    transition:
        transform 0.5s,
        opacity 0.4s;
}




/* =========================================
   ANTI-TRIX NAVIGATION
   SAME AS NEMETRIX
========================================= */

.antitrix-navigation {
    position: absolute;

    bottom: 25px;
    left: 50%;

    width: 300px;

    transform: translateX(-50%);

    display: flex;

    justify-content: space-between;
    align-items: center;

    z-index: 20;

    pointer-events: none;
}


.antitrix-navigation button {

    position: static;

    background: transparent;

    border: none;

    padding: 0;

    cursor: pointer;

    pointer-events: auto;
}


.antitrix-navigation button img {

    width: 120px;

    height: 80px;

    object-fit: contain;

    display: block;
}


.antitrix-navigation button:hover {

    transform: scale(1.08);
}


/* =========================================
   MOBILE
========================================= */

@media (max-width: 900px) {

    .antitrix-alien-image-container {

        left: 42%;

        width: 55vw;
        height: 75vh;
    }

    .antitrix-alien-info {

        right: 3%;

        width: 42%;

        padding: 20px;
    }

    .antitrix-alien-info h2 {

        font-size: 38px;
    }

    .antitrix-navigation {

        width: 300px;
    }
}


@media (max-width: 700px) {

    .antitrix-alien-display {

        overflow-y: auto;
    }

    .antitrix-alien-image-container {

        left: 50%;

        top: 35%;

        width: 80vw;
        height: 50vh;
    }

    .antitrix-alien-info {

        left: 5%;
        right: 5%;

        top: 58%;

        width: 90%;

        padding: 20px;
    }

    .antitrix-alien-info h2 {

        font-size: 32px;
    }

    .antitrix-stats {

        width: 100%;
    }

    .antitrix-navigation {

        width: 260px;

        bottom: 15px;
    }

    .antitrix-alien-counter {

        bottom: 90px;
    }
}

/* =========================================
   ANTI-TRIX FULL DATABASE
   ========================================= */

.antitrix-database {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    display: none;
    z-index: 7000;
    color: white;
    background: #050000;
}

.antitrix-database.active {
    display: block;
}


/* =========================================
   BACKGROUND
   ========================================= */

.antitrix-background {
    position: absolute;
    inset: 0;

    background-image:
        linear-gradient(
            rgba(0, 0, 0, 0.30),
            rgba(0, 0, 0, 0.30)
        ),
        url("anti/background.png");

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    z-index: 1;
}


/* =========================================
   BEN 10 LOGO
   ========================================= */

.antitrix-ben10-logo {
    position: absolute;
    top: 25px;
    left: 30px;
    width: 65px;
    height: auto;
    object-fit: contain;
    z-index: 20;
    filter: drop-shadow(0 0 8px rgba(0, 255, 70, 0.8));
}


/* =========================================
   ANTI-TRIX LOGO - LEFT CENTER
   ========================================= */

.antitrix-logo {
    position: absolute;
    top: 60%;
    left: 40px;
    transform: translateY(-50%);
    width: 250px;
    height: 180px;
    object-fit: contain;
    z-index: 20;

    filter:
        drop-shadow(0 0 10px #ff0000)
        drop-shadow(0 0 25px rgba(255, 0, 0, 0.8));

    cursor: pointer;
    transition: 0.2s ease;
}

.antitrix-logo:hover {
    transform: translateY(-50%) scale(1.05);
}


/* =========================================
   HOLOGRAM
   ========================================= */

.antitrix-hologram {
    position: absolute;
    top: 100px;
    left: 0px;
    width: 350px;
    height: 290px;
    object-fit: contain;
    z-index: 15;

    opacity: 0;
    mix-blend-mode: add;

    transition: opacity 0.3s ease;

    filter:
        drop-shadow(0 0 10px #ff2020)
        drop-shadow(0 0 25px rgba(255, 0, 0, 0.7));
}


/* =========================================
   ALIEN IMAGE
   ========================================= */

.antitrix-alien-image-container {
    position: absolute;

    left: 50%;
    top: 50%;

    transform:
        translate(-50%, -50%);

    width: 440px;
    height: 540px;

    display: flex;

    justify-content: center;
    align-items: center;

    z-index: 5;
}

.antitrix-alien-image-container img {
    width: 420px;
    height: 520px;

    object-fit: contain;

    display: block;

    filter:
        drop-shadow(0 0 8px rgba(255, 0, 0, 0.7))
        drop-shadow(0 0 25px rgba(255, 0, 0, 0.35));
}


.antitrix-alien-info {
    position: absolute;
    right: 35px;
    top: 110px;
    width: 390px;
    padding: 25px;

    background: rgba(20, 0, 0, 0.78);

    border: 1px solid rgba(255, 40, 40, 0.55);

    box-shadow:
        0 0 20px rgba(255, 0, 0, 0.20),
        inset 0 0 25px rgba(255, 0, 0, 0.05);

    z-index: 10;
}

.antitrix-database-title {
    font-size: 13px;
    letter-spacing: 4px;
    color: #ff5050;
    margin-bottom: 10px;

    text-shadow: 0 0 8px #ff0000;
}

.antitrix-alien-info h1 {
    margin: 0 0 12px;
    font-size: 38px;
    font-weight: 900;
    letter-spacing: 2px;

    color: #ff3030;

    text-shadow:
        0 0 10px #ff0000,
        0 0 25px rgba(255, 0, 0, 0.8);
}

.antitrix-alien-info > p {
    margin-bottom: 20px;
    color: #dddddd;
    line-height: 1.5;
    font-size: 13px;
}

.antitrix-stats {
    width: 100%;
    margin-bottom: 20px;
}

.antitrix-stat {
    margin-bottom: 12px;
    font-size: 11px;
    letter-spacing: 2px;
    color: #ffaaaa;
}

.antitrix-stat-bar {
    width: 100%;
    height: 7px;
    margin-top: 5px;

    background: rgba(255, 255, 255, 0.08);

    overflow: hidden;
    border-radius: 3px;
}

.antitrix-stat-bar div {
    width: 0;
    height: 100%;

    background: #ff2020;

    box-shadow:
        0 0 10px #ff0000,
        0 0 20px rgba(255, 0, 0, 0.7);

    transition: width 0.5s ease;
}

.antitrix-details {
    margin-top: 18px;
}

.antitrix-details h3 {
    margin-bottom: 8px;
    font-size: 12px;
    letter-spacing: 3px;

    color: #ff4040;

    text-shadow: 0 0 8px #ff0000;
}

.antitrix-details ul {
    margin: 0;
    padding-left: 18px;
}

.antitrix-details li {
    margin-bottom: 5px;
    font-size: 12px;
    color: #dddddd;
}


/* =========================================
   BATTERY
   ========================================= */

.antitrix-energy {
    position: absolute;
    right: 40px;
    left: auto;
    bottom: 20px;
    z-index: 30;
}

.antitrix-energy .energy-core {
    position: relative;

    width: 85px;
    height: 120px;

    border-radius: 12px;

    overflow: hidden;

    background:
        rgba(30, 0, 0, 0.8);

    border:
        2px solid rgba(255, 40, 40, 0.6);

    box-shadow:
        0 0 15px rgba(255, 0, 0, 0.3);
}

.antitrix-energy .energy-fill {
    position: absolute;

    left: 0;
    bottom: 0;

    width: 100%;
    height: 100%;

    background: #ff2020;

    box-shadow:
        0 0 20px #ff0000;

    transition:
        height 0.35s ease;
}

.antitrix-energy .energy-ring {
    position: absolute;

    inset: 0;

    border:
        2px solid rgba(255, 100, 100, 0.5);

    border-radius: 12px;

    pointer-events: none;
}

.antitrix-energy span {
    position: absolute;

    inset: 0;

    display: flex;

    align-items: center;
    justify-content: center;

    font-size: 16px;

    font-weight: bold;

    color: white;

    text-shadow:
        0 0 8px #ff0000;

    z-index: 2;
}

.antitrix-energy .energy-label {
    margin-top: 8px;

    text-align: center;

    font-size: 9px;

    letter-spacing: 2px;

    color: #ff5050;
}


/* =========================================
   NAVIGATION
   ========================================= */

.antitrix-navigation {
    position: absolute;

    bottom: 25px;
    left: 50%;

    width: 300px;

    transform:
        translateX(-50%);

    display: flex;

    justify-content: space-between;
    align-items: center;

    z-index: 20;

    pointer-events: none;
}

.antitrix-navigation button {
    position: static;

    background: transparent;

    border: none;

    padding: 0;

    cursor: pointer;

    pointer-events: auto;
}

.antitrix-navigation button img {
    width: 120px;
    height: 80px;

    object-fit: contain;

    display: block;
}

.antitrix-navigation button:hover {
    transform: scale(1.08);
}


/* =========================================
   EXIT
   ========================================= */

.exit-antitrix-button {
    position: absolute;

    top: 25px;
    right: 25px;

    z-index: 100;

    padding: 10px 18px;

    background:
        rgba(30, 0, 0, 0.8);

    border:
        1px solid #ff3030;

    color: #ff3030;

    font-size: 12px;

    font-weight: bold;

    letter-spacing: 2px;

    cursor: pointer;

    box-shadow:
        0 0 10px rgba(255, 0, 0, 0.4);

    transition: 0.2s ease;
}

.exit-antitrix-button:hover {
    background: #ff2020;

    color: white;

    box-shadow:
        0 0 20px #ff0000;

    transform: scale(1.05);
}


/* =========================================
   MOBILE
   ========================================= */

@media (max-width: 800px) {

    .antitrix-ben10-logo {
        top: 15px;
        left: 15px;

        width: 70px;
    }

    .antitrix-logo {
        top: 15px;

        width: 110px;
        height: 60px;
    }

    .antitrix-hologram {
        top: 75px;
        left: 5px;

        width: 90px;
        height: 120px;
    }

    .antitrix-alien-image-container {
        left: 35%;
        top: 43%;

        width: 280px;
        height: 380px;
    }

    .antitrix-alien-image-container img {
        width: 280px;
        height: 360px;
    }

    .antitrix-alien-info {
        right: 10px;
        top: 100px;

        width: 45%;

        padding: 15px;
    }

    .antitrix-alien-info h1 {
        font-size: 24px;
    }

    .antitrix-alien-info > p {
        font-size: 10px;
    }

    .antitrix-details li {
        font-size: 9px;
    }

    .antitrix-energy {
        left: 15px;
        bottom: 95px;
    }

    .antitrix-energy .energy-core {
        width: 60px;
        height: 90px;
    }

    .antitrix-navigation {
        width: 240px;
        bottom: 15px;
    }

    .antitrix-navigation button img {
        width: 95px;
        height: 65px;
    }

    .exit-antitrix-button {
        top: 15px;
        right: 15px;
    }
}

/* =========================================
   ANTI-TRIX BATTERY - OMNITRIX GREEN STYLE
   ========================================= */

.antitrix-energy .energy-fill {
    background: #00ff55;
    box-shadow:
        0 0 10px #00ff55,
        0 0 20px #00ff55;
}

.antitrix-energy .energy-ring {
    border-color: rgba(0, 255, 80, 0.6);
}

.antitrix-energy .energy-core {
    border-color: rgba(0, 255, 80, 0.6);
    box-shadow:
        0 0 15px rgba(0, 255, 80, 0.3);
}

.antitrix-energy span {
    color: #00ff55;
    text-shadow:
        0 0 8px #00ff55;
}

.antitrix-energy .energy-label {
    color: #00ff55;
}

/* =========================================
   ANTI-TRIX ERROR FLASH
   ========================================= */

#antitrixFlashScreen {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;

    background: #ff0000;

    display: flex;
    justify-content: center;
    align-items: center;

    z-index: 99999;

    animation:
        antitrixErrorFlash 0.18s infinite alternate;
}

#antitrixFlashScreen img {
    width: 180px;
    height: auto;

    object-fit: contain;

    filter:
        drop-shadow(0 0 10px white)
        drop-shadow(0 0 30px white)
        brightness(2);

    animation:
        antitrixLogoFlash 0.3s infinite alternate;
}


@keyframes antitrixErrorFlash {

    from {
        background: #ff0000;
    }

    to {
        background: #700000;
    }
}


@keyframes antitrixLogoFlash {

    from {
        opacity: 1;
        transform: scale(1);
    }

    to {
        opacity: 0.25;
        transform: scale(1.08);
    }
}

/* =========================================================
   INFORMATION PANEL
   ========================================================= */

.antitrix-info-panel {

    position: absolute;

    top: 90px;
    right: 35px;

    width: 650px;

    height: 500px;

    box-sizing: border-box;

    padding: 28px 32px;

    overflow-y: auto;

    background:
        linear-gradient(
            145deg,
            rgba(25, 0, 0, 0.94),
            rgba(5, 5, 5, 0.94)
        );

    border:
        2px solid
        rgba(255, 40, 40, 0.65);

    border-radius: 5px;

    box-shadow:

        0 0 20px
        rgba(255,0,0,0.25),

        0 0 45px
        rgba(255,0,0,0.12),

        inset 0 0 25px
        rgba(255,0,0,0.06);

    z-index: 80;
}


/* =========================================================
   PANEL TITLE
   ========================================================= */

.antitrix-panel-title {

    display: block;

    width: 100%;

    margin-bottom: 18px;

    padding-bottom: 12px;

    border-bottom:
        1px solid
        rgba(255,60,60,0.35);

    font-size: 13px;

    font-weight: bold;

    letter-spacing: 4px;

    color: #ff5050;

    text-shadow:
        0 0 8px #ff0000;
}


/* =========================================================
   ALIEN NAME
   ========================================================= */

.antitrix-info-panel h1#antitrixAlienName {

    position: static !important;

    top: auto !important;
    left: auto !important;

    transform: none !important;

    display: block;

    width: 100%;

    margin: 0 0 18px 0;

    padding: 0;

    font-size: 42px;

    line-height: 1.1;

    font-weight: 900;

    letter-spacing: 2px;

    color: #ffffff;

    white-space: normal;

    overflow-wrap: break-word;

    text-shadow:

        0 0 8px #ff0000,

        0 0 20px
        rgba(255,0,0,0.8);
}


/* =========================================================
   DESCRIPTION
   ========================================================= */

.antitrix-info-panel
#antitrixAlienDescription {

    display: block;

    width: 100%;

    margin: 0 0 25px 0;

    padding: 0;

    font-size: 14px;

    line-height: 1.65;

    color: #dddddd;
}


/* =========================================================
   STATS
   ========================================================= */

.antitrix-panel-stats {

    width: 100%;

    display: grid;

    grid-template-columns:
        1fr 1fr;

    column-gap: 25px;

    row-gap: 18px;

    margin-bottom: 25px;
}


.antitrix-panel-stat {

    width: 100%;

    margin: 0;
}


.antitrix-panel-stat span {

    display: block;

    margin-bottom: 7px;

    font-size: 11px;

    font-weight: bold;

    letter-spacing: 2px;

    color: #ff6666;
}


/* =========================================================
   STAT BARS
   ========================================================= */

.antitrix-panel-stat-bar {

    width: 100%;

    height: 8px;

    background:
        rgba(255,255,255,0.10);

    border:
        1px solid
        rgba(255,60,60,0.4);

    border-radius: 5px;

    overflow: hidden;
}


.antitrix-panel-stat-bar div {

    width: 0%;

    height: 100%;

    background: #ff2020;

    border-radius: 5px;

    box-shadow:
        0 0 8px #ff0000,
        0 0 18px rgba(255,0,0,0.6);

    transition:
        width 0.5s ease;
}


/* =========================================================
   POWERS / WEAKNESSES
   ========================================================= */

.antitrix-panel-section {

    width: 100%;

    margin-top: 22px;
}


.antitrix-panel-section h3 {

    margin: 0 0 11px 0;

    padding: 0;

    font-size: 13px;

    font-weight: bold;

    letter-spacing: 3px;

    color: #ff4040;

    text-shadow:
        0 0 8px #ff0000;
}


.antitrix-panel-section ul {

    margin: 0;

    padding-left: 22px;
}


.antitrix-panel-section li {

    margin-bottom: 7px;

    font-size: 13px;

    line-height: 1.5;

    color: #dddddd;
}


/* =========================================================
   PANEL SCROLLBAR
   ========================================================= */

.antitrix-info-panel::-webkit-scrollbar {

    width: 6px;
}


.antitrix-info-panel::-webkit-scrollbar-track {

    background:
        rgba(0,0,0,0.4);
}


.antitrix-info-panel::-webkit-scrollbar-thumb {

    background:
        rgba(255,0,0,0.65);

    border-radius: 5px;
}

/* =========================================
   ANTI-TRIX ENERGY - SMALLER SIZE
   ========================================= */

.antitrix-energy .energy-core {
    width: 60px;
    height: 85px;
}

.antitrix-energy span {
    font-size: 12px;
}

.antitrix-energy .energy-label {
    font-size: 7px;
    letter-spacing: 1.5px;
}

/* =========================================
   ANTI-TRIX PANEL - SMALLER VERSION
   ========================================= */

.antitrix-info-panel {
    top: 120px;
    right: 35px;

    width: 620px;
    height: 450px;

    padding: 25px 28px;

    overflow-y: auto;
}


/* PANEL HEADER */

.antitrix-panel-header {
    padding-bottom: 10px;
    margin-bottom: 14px;
}

.antitrix-panel-header span {
    font-size: 10px;
    letter-spacing: 3px;
}


/* ALIEN NAME */

.antitrix-info-panel h1#antitrixAlienName {
    font-size: 30px;
    line-height: 1.1;

    margin-bottom: 12px;
}


/* DESCRIPTION */

.antitrix-info-panel #antitrixAlienDescription {
    font-size: 11px;
    line-height: 1.5;

    margin-bottom: 18px;
}


/* STATS */

.antitrix-panel-stats {
    gap: 12px 18px;
    margin-bottom: 18px;
}

.antitrix-panel-stat span {
    font-size: 9px;
    letter-spacing: 1.5px;

    margin-bottom: 5px;
}

.antitrix-panel-bar {
    height: 6px;
}


/* POWERS / WEAKNESSES */

.antitrix-panel-section {
    margin-top: 15px;
}

.antitrix-panel-section h3 {
    font-size: 10px;
    letter-spacing: 2px;

    margin-bottom: 7px;
}

.antitrix-panel-section li {
    font-size: 10px;
    line-height: 1.35;

    margin-bottom: 5px;
}

/* ANTI-TRIX STAT BARS FIX */

.antitrix-panel-bar {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 0, 0, 0.5);
    border-radius: 5px;
    overflow: hidden;
}

.antitrix-panel-bar div {
    display: block;
    height: 100%;
    width: 50%;
    min-width: 2px;
    background: #ff2020;
    border-radius: 5px;

    box-shadow:
        0 0 8px #ff0000,
        0 0 15px rgba(255, 0, 0, 0.7);

    transition: width 0.5s ease;
}

/* =========================================
   POWER WATCH / NEHA TRICKS / ZOMBIE TRICKS
   NEW DATABASE DESIGN
   ========================================= */

.special-watch-database {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;

    background:
        radial-gradient(
            circle at center,
            rgba(20, 20, 20, 0.9),
            rgba(0, 0, 0, 1)
        );

    z-index: 100;
}


/* =========================================
   BEN 10 LOGO
   ========================================= */

.special-ben10-logo {
    position: absolute;

    top: 25px;
    left: 25px;

    width: 75px;
    height: auto;

    object-fit: contain;

    z-index: 20;
}


/* =========================================
   WATCH LOGO
   LEFT / MIDDLE
   ========================================= */

.special-watch-logo-container {
    position: absolute;

    left: 60px;
    top: 50%;

    transform: translateY(-50%);

    width: 260px;
    height: 260px;

    display: flex;
    justify-content: center;
    align-items: center;

    border: 2px solid rgba(255, 255, 255, 0.25);
    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            rgba(255, 255, 255, 0.08),
            rgba(0, 0, 0, 0.5)
        );

    box-shadow:
        0 0 25px rgba(255, 255, 255, 0.08),
        inset 0 0 30px rgba(255, 255, 255, 0.05);

    z-index: 10;
}


.special-watch-logo {
    width: 190px;
    height:190px;

    object-fit: contain;

    filter:
        drop-shadow(0 0 10px rgba(255, 255, 255, 0.5))
        drop-shadow(0 0 25px rgba(255, 255, 255, 0.2));

    transition: transform 0.3s ease;
}


.special-watch-logo:hover {
    transform: scale(1.08);
}


/* =========================================
   MAIN INFORMATION AREA
   ========================================= */

.special-watch-information {
    position: absolute;

    top: 50%;
    left: 370px;

    transform: translateY(-50%);

    width: 480px;

    z-index: 15;
}


/* =========================================
   WATCH HEADER
   ========================================= */

.special-watch-header {
    margin-bottom: 30px;

    padding-bottom: 18px;

    border-bottom:
        1px solid rgba(255, 255, 255, 0.25);
}


.special-watch-header span {
    display: block;

    margin-bottom: 8px;

    font-size: 11px;
    font-weight: bold;

    letter-spacing: 4px;

    color: rgba(255, 255, 255, 0.55);
}


.special-watch-header h1 {
    margin: 0;

    font-size: 42px;
    font-weight: 900;

    letter-spacing: 3px;

    color: #ffffff;

    text-shadow:
        0 0 10px rgba(255, 255, 255, 0.35);
}


/* =========================================
   INFORMATION SECTION
   ========================================= */

.special-info-section {
    margin-bottom: 28px;

    padding: 20px;

    background:
        rgba(255, 255, 255, 0.035);

    border-left:
        3px solid rgba(255, 255, 255, 0.5);

    border-top:
        1px solid rgba(255, 255, 255, 0.08);

    border-right:
        1px solid rgba(255, 255, 255, 0.08);

    border-bottom:
        1px solid rgba(255, 255, 255, 0.08);

    box-shadow:
        inset 0 0 25px rgba(255, 255, 255, 0.02);
}


.special-info-section h2 {
    margin: 0 0 18px 0;

    font-size: 12px;

    letter-spacing: 3px;

    color: rgba(255, 255, 255, 0.65);
}


/* =========================================
   INFORMATION ROW
   ========================================= */

.special-info-line {
    display: flex;

    justify-content: space-between;
    align-items: flex-start;

    gap: 20px;

    margin-bottom: 12px;
}


.special-info-line:last-child {
    margin-bottom: 0;
}


.special-info-line span {
    min-width: 120px;

    font-size: 10px;
    font-weight: bold;

    letter-spacing: 1.5px;

    color: rgba(255, 255, 255, 0.4);
}


.special-info-line strong {
    flex: 1;

    font-size: 12px;
    font-weight: 600;

    line-height: 1.4;

    text-align: right;

    color: #ffffff;
}


/* =========================================
   USER IMAGE
   RIGHT SIDE
   ========================================= */

.special-user-container {
    position: absolute;

    right: 80px;
    top: 50%;

    transform: translateY(-50%);

    width: 300px;
    height: 500px;

    display: flex;
    justify-content: center;
    align-items: flex-end;

    z-index: 10;
}


.special-user-image {
    width: 100%;
    height: 100%;

    object-fit: contain;

    filter:
        drop-shadow(0 0 12px rgba(255, 255, 255, 0.25));

    transition: transform 0.3s ease;
}


.special-user-image:hover {
    transform: scale(1.03);
}
.special-watch-database {
    display: none;
}

.special-watch-database.active {
    display: block;
}

/* =========================================
   SPECIAL DATABASE COLOR THEMES
   POWER WATCH / NEGATRIX / ZOMBITRIX
   ========================================= */


/* =========================================
   POWER WATCH - ORANGE THEME
   ========================================= */

.special-watch-database.power-watch-theme {
    background:
        radial-gradient(
            circle at center,
            rgba(255, 120, 0, 0.18),
            rgba(35, 12, 0, 0.95) 45%,
            rgba(0, 0, 0, 1) 85%
        );
}

.power-watch-theme .special-watch-logo-container {
    border-color: rgba(255, 140, 0, 0.65);

    background:
        radial-gradient(
            circle,
            rgba(255, 140, 0, 0.25),
            rgba(40, 15, 0, 0.75)
        );

    box-shadow:
        0 0 25px rgba(255, 120, 0, 0.45),
        0 0 60px rgba(255, 100, 0, 0.18),
        inset 0 0 35px rgba(255, 140, 0, 0.18);
}

.power-watch-theme .special-watch-logo {
    filter:
        drop-shadow(0 0 10px rgba(255, 140, 0, 0.8))
        drop-shadow(0 0 30px rgba(255, 90, 0, 0.45));
}

.power-watch-theme .special-watch-header {
    border-bottom-color: rgba(255, 140, 0, 0.45);
}

.power-watch-theme .special-watch-header span {
    color: rgba(255, 170, 80, 0.75);
}

.power-watch-theme .special-watch-header h1 {
    color: #ffffff;

    text-shadow:
        0 0 10px rgba(255, 140, 0, 0.7),
        0 0 25px rgba(255, 100, 0, 0.35);
}

.power-watch-theme .special-info-section {
    background:
        rgba(255, 120, 0, 0.07);

    border-left-color: rgba(255, 140, 0, 0.8);

    border-top-color:
        rgba(255, 140, 0, 0.18);

    border-right-color:
        rgba(255, 140, 0, 0.18);

    border-bottom-color:
        rgba(255, 140, 0, 0.18);

    box-shadow:
        inset 0 0 30px rgba(255, 100, 0, 0.05);
}

.power-watch-theme .special-info-section h2 {
    color: rgba(255, 170, 80, 0.8);
}

.power-watch-theme .special-info-line span {
    color: rgba(255, 170, 80, 0.55);
}

.power-watch-theme .special-info-line strong {
    color: #ffffff;

    text-shadow:
        0 0 8px rgba(255, 120, 0, 0.25);
}

.power-watch-theme .special-user-image {
    filter:
        drop-shadow(0 0 12px rgba(255, 140, 0, 0.55))
        drop-shadow(0 0 30px rgba(255, 90, 0, 0.25));
}


/* =========================================
   NEGATRIX - GRAY / BLACK THEME
   ========================================= */

.special-watch-database.negatrix-theme {
    background:
        radial-gradient(
            circle at center,
            rgba(100, 100, 100, 0.18),
            rgba(20, 20, 20, 0.95) 45%,
            rgba(0, 0, 0, 1) 85%
        );
}

.negatrix-theme .special-watch-logo-container {
    border-color: rgba(180, 180, 180, 0.55);

    background:
        radial-gradient(
            circle,
            rgba(150, 150, 150, 0.18),
            rgba(5, 5, 5, 0.9)
        );

    box-shadow:
        0 0 25px rgba(180, 180, 180, 0.25),
        0 0 60px rgba(120, 120, 120, 0.12),
        inset 0 0 35px rgba(200, 200, 200, 0.08);
}

.negatrix-theme .special-watch-logo {
    filter:
        drop-shadow(0 0 10px rgba(200, 200, 200, 0.65))
        drop-shadow(0 0 30px rgba(120, 120, 120, 0.35));
}

.negatrix-theme .special-watch-header {
    border-bottom-color: rgba(180, 180, 180, 0.35);
}

.negatrix-theme .special-watch-header span {
    color: rgba(200, 200, 200, 0.65);
}

.negatrix-theme .special-watch-header h1 {
    color: #ffffff;

    text-shadow:
        0 0 10px rgba(200, 200, 200, 0.35),
        0 0 25px rgba(100, 100, 100, 0.25);
}

.negatrix-theme .special-info-section {
    background:
        rgba(150, 150, 150, 0.055);

    border-left-color: rgba(180, 180, 180, 0.65);

    border-top-color:
        rgba(180, 180, 180, 0.13);

    border-right-color:
        rgba(180, 180, 180, 0.13);

    border-bottom-color:
        rgba(180, 180, 180, 0.13);

    box-shadow:
        inset 0 0 30px rgba(180, 180, 180, 0.025);
}

.negatrix-theme .special-info-section h2 {
    color: rgba(210, 210, 210, 0.7);
}

.negatrix-theme .special-info-line span {
    color: rgba(190, 190, 190, 0.5);
}

.negatrix-theme .special-info-line strong {
    color: #ffffff;

    text-shadow:
        0 0 8px rgba(200, 200, 200, 0.15);
}

.negatrix-theme .special-user-image {
    filter:
        drop-shadow(0 0 12px rgba(200, 200, 200, 0.4))
        drop-shadow(0 0 30px rgba(100, 100, 100, 0.25));
}


/* =========================================
   ZOMBITRIX - PURPLE / VIOLET THEME
   ========================================= */

.special-watch-database.zombitrix-theme {
    background:
        radial-gradient(
            circle at center,
            rgba(140, 40, 220, 0.22),
            rgba(35, 5, 55, 0.95) 45%,
            rgba(0, 0, 0, 1) 85%
        );
}

.zombitrix-theme .special-watch-logo-container {
    border-color: rgba(180, 80, 255, 0.7);

    background:
        radial-gradient(
            circle,
            rgba(150, 50, 230, 0.28),
            rgba(25, 0, 40, 0.8)
        );

    box-shadow:
        0 0 25px rgba(170, 60, 255, 0.5),
        0 0 60px rgba(120, 30, 220, 0.22),
        inset 0 0 35px rgba(180, 70, 255, 0.2);
}

.zombitrix-theme .special-watch-logo {
    filter:
        drop-shadow(0 0 10px rgba(190, 90, 255, 0.9))
        drop-shadow(0 0 30px rgba(130, 40, 230, 0.5));
}

.zombitrix-theme .special-watch-header {
    border-bottom-color: rgba(180, 80, 255, 0.5);
}

.zombitrix-theme .special-watch-header span {
    color: rgba(205, 140, 255, 0.8);
}

.zombitrix-theme .special-watch-header h1 {
    color: #ffffff;

    text-shadow:
        0 0 10px rgba(190, 80, 255, 0.8),
        0 0 25px rgba(130, 40, 230, 0.4);
}

.zombitrix-theme .special-info-section {
    background:
        rgba(150, 50, 220, 0.08);

    border-left-color: rgba(190, 80, 255, 0.85);

    border-top-color:
        rgba(180, 80, 255, 0.2);

    border-right-color:
        rgba(180, 80, 255, 0.2);

    border-bottom-color:
        rgba(180, 80, 255, 0.2);

    box-shadow:
        inset 0 0 30px rgba(160, 50, 230, 0.07);
}

.zombitrix-theme .special-info-section h2 {
    color: rgba(210, 150, 255, 0.85);
}

.zombitrix-theme .special-info-line span {
    color: rgba(200, 140, 255, 0.55);
}

.zombitrix-theme .special-info-line strong {
    color: #ffffff;

    text-shadow:
        0 0 8px rgba(180, 80, 255, 0.3);
}

.zombitrix-theme .special-user-image {
    filter:
        drop-shadow(0 0 12px rgba(190, 80, 255, 0.65))
        drop-shadow(0 0 30px rgba(130, 40, 230, 0.3));
}

/* =========================================
   SPECIAL DATABASE EXIT BUTTON
   ========================================= */

.special-watch-exit {
    position: absolute;

    top: 30px;
    right: 30px;

    width: 130px;
    height: 48px;

    border: 2px solid rgba(255, 255, 255, 0.35);

    background: rgba(0, 0, 0, 0.65);

    color: #ffffff;

    font-size: 13px;
    font-weight: 900;

    letter-spacing: 3px;

    cursor: pointer;

    border-radius: 8px;

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        background 0.25s ease;

    z-index: 50;
}


/* =========================================
   POWER WATCH EXIT
   ========================================= */

.power-watch-theme .special-watch-exit {
    border-color: rgba(255, 140, 0, 0.8);

    color: #ffb45c;

    box-shadow:
        0 0 12px rgba(255, 120, 0, 0.35),
        inset 0 0 12px rgba(255, 120, 0, 0.08);
}

.power-watch-theme .special-watch-exit:hover {
    background: rgba(255, 100, 0, 0.18);

    color: #ffffff;

    transform: scale(1.08);

    box-shadow:
        0 0 20px rgba(255, 120, 0, 0.65),
        0 0 40px rgba(255, 100, 0, 0.25);
}


/* =========================================
   NEGATRIX EXIT
   ========================================= */

.negatrix-theme .special-watch-exit {
    border-color: rgba(190, 190, 190, 0.65);

    color: #d0d0d0;

    box-shadow:
        0 0 12px rgba(180, 180, 180, 0.25),
        inset 0 0 12px rgba(180, 180, 180, 0.05);
}

.negatrix-theme .special-watch-exit:hover {
    background: rgba(180, 180, 180, 0.12);

    color: #ffffff;

    transform: scale(1.08);

    box-shadow:
        0 0 20px rgba(200, 200, 200, 0.45),
        0 0 40px rgba(150, 150, 150, 0.2);
}


/* =========================================
   ZOMBITRIX EXIT
   ========================================= */

.zombitrix-theme .special-watch-exit {
    border-color: rgba(190, 80, 255, 0.8);

    color: #d9a0ff;

    box-shadow:
        0 0 12px rgba(180, 70, 255, 0.35),
        inset 0 0 12px rgba(180, 70, 255, 0.08);
}

.zombitrix-theme .special-watch-exit:hover {
    background: rgba(160, 50, 230, 0.18);

    color: #ffffff;

    transform: scale(1.08);

    box-shadow:
        0 0 20px rgba(190, 80, 255, 0.65),
        0 0 40px rgba(140, 40, 230, 0.3);
}

/* POWER WATCH BACKGROUND */
.special-watch-database.power-watch-theme {
    background:
        linear-gradient(rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.35)),
        url("mad/background.png") center center / cover no-repeat;
}


/* NEGATRIX BACKGROUND */
.special-watch-database.negatrix-theme {
    background:
        linear-gradient(rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.35)),
        url("nega/background.png") center center / cover no-repeat;
}


/* ZOMBITRIX BACKGROUND */
.special-watch-database.zombitrix-theme {
    background:
        linear-gradient(rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.35)),
        url("benz/background.png") center center / cover no-repeat;
}

/* =========================================
   SPECIAL WATCH TIMER BATTERY
   ========================================= */

.special-watch-energy {
    position: absolute;
    right: 35px;
    bottom: 30px;

    width: 110px;
    height: 145px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    z-index: 50;
}

.special-energy-core {
    position: relative;

    width: 78px;
    height: 105px;

    border: 2px solid rgba(255,255,255,.35);
    border-radius: 38px;

    background: rgba(0,0,0,.65);

    overflow: hidden;

    display: flex;
    align-items: center;
    justify-content: center;

    box-shadow:
        0 0 15px rgba(255,255,255,.15),
        inset 0 0 20px rgba(255,255,255,.05);
}

.special-energy-fill {
    position: absolute;

    left: 0;
    bottom: 0;

    width: 100%;
    height: 100%;

    background: #00ff55;

    box-shadow:
        0 0 10px #00ff55,
        0 0 20px #00ff55;

    transition:
        height .15s linear,
        background .3s ease,
        box-shadow .3s ease;
}

.special-energy-ring {
    position: absolute;
    inset: 5px;

    border: 2px solid rgba(255,255,255,.25);
    border-radius: 32px;

    pointer-events: none;
}

.special-energy-core span {
    position: relative;
    z-index: 5;

    font-size: 14px;
    font-weight: 900;
    letter-spacing: 1px;

    color: #00ff55;

    text-shadow:
        0 0 8px #00ff55,
        0 0 15px #00ff55;
}

.special-energy-label {
    margin-top: 10px;

    font-size: 9px;
    font-weight: 900;

    letter-spacing: 2px;

    color: #00ff55;

    text-align: center;

    text-shadow:
        0 0 8px #00ff55;
}


/* =========================================
   POWER WATCH BATTERY
   ========================================= */

.power-watch-theme .special-energy-core {
    border-color: rgba(255,140,0,.7);

    box-shadow:
        0 0 18px rgba(255,120,0,.35),
        inset 0 0 20px rgba(255,120,0,.08);
}

.power-watch-theme .special-energy-ring {
    border-color: rgba(255,140,0,.45);
}

.power-watch-theme .special-energy-label {
    color: #ff9d2e;
    text-shadow: 0 0 8px #ff7800;
}


/* =========================================
   NEGATRIX BATTERY
   ========================================= */

.negatrix-theme .special-energy-core {
    border-color: rgba(200,200,200,.65);

    box-shadow:
        0 0 18px rgba(180,180,180,.25),
        inset 0 0 20px rgba(180,180,180,.06);
}

.negatrix-theme .special-energy-ring {
    border-color: rgba(200,200,200,.4);
}

.negatrix-theme .special-energy-label {
    color: #d0d0d0;
    text-shadow: 0 0 8px rgba(220,220,220,.7);
}


/* =========================================
   ZOMBITRIX BATTERY
   ========================================= */

.zombitrix-theme .special-energy-core {
    border-color: rgba(190,80,255,.75);

    box-shadow:
        0 0 18px rgba(180,70,255,.35),
        inset 0 0 20px rgba(180,70,255,.08);
}

.zombitrix-theme .special-energy-ring {
    border-color: rgba(190,80,255,.45);
}

.zombitrix-theme .special-energy-label {
    color: #d9a0ff;
    text-shadow: 0 0 8px rgba(190,80,255,.8);
}


/* ========================================
   HERO WATCH DATABASE
   BLUE THEME
   ======================================== */

#heroWatchDatabase {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    background: #02070d;
    color: #ffffff;
}

/* ========================================
   FIXED BACKGROUND
   ======================================== */

#heroWatchDatabase #heroBackground {
    position: absolute;
    inset: 0;
    z-index: 0;

    background-image: url("ben23/background.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Dark blue overlay */
#heroWatchDatabase #heroBackground::after {
    content: "";
    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            rgba(0, 20, 45, 0.35),
            rgba(0, 5, 15, 0.65)
        );

    pointer-events: none;
}

/* ========================================
   TOP BAR
   ======================================== */

#heroWatchDatabase .top-bar {
    position: absolute;
    top: 0;
    left: 0;

    width: 100%;
    height: 110px;

    z-index: 20;
}

/* Ben 10 Logo */

#heroWatchDatabase .ben-logo {
    position: absolute;
    top: 20px;
    left: 25px;
}

#heroWatchDatabase .ben-logo img {
    width: 150px;
    height: auto;

    filter:
        drop-shadow(0 0 8px rgba(0, 255, 80, 0.7));
}


/* ========================================
   ALIEN IMAGE
   ======================================== */

#heroWatchDatabase .alien-container {
    z-index: 5;
}

#heroWatchDatabase .alien-glow {
    background: #008cff;

    box-shadow:
        0 0 25px #008cff,
        0 0 50px #006eff,
        0 0 90px rgba(0, 140, 255, 0.7);
}

#heroWatchDatabase #heroAlienImage {
    filter:
        drop-shadow(0 0 10px #008cff)
        drop-shadow(0 0 25px rgba(0, 140, 255, 0.8));
}

/* Alien visual name */

#heroWatchDatabase #heroAlienVisualName {
    color: #38aaff;

    text-shadow:
        0 0 8px #008cff,
        0 0 20px #006eff;
}

/* ========================================
   INFORMATION PANEL
   ======================================== */

#heroWatchDatabase .information-panel {
    z-index: 10;
}

#heroWatchDatabase .database-title {
    color: #38aaff;

    text-shadow:
        0 0 8px #008cff,
        0 0 18px #006eff;
}

#heroWatchDatabase #heroAlienName {
    color: #ffffff;

    text-shadow:
        0 0 10px #008cff,
        0 0 25px rgba(0, 140, 255, 0.8);
}

/* Information boxes */

#heroWatchDatabase .info-box {
    border-color: #008cff;

    background:
        linear-gradient(
            135deg,
            rgba(0, 90, 160, 0.25),
            rgba(0, 10, 25, 0.75)
        );

    box-shadow:
        0 0 8px rgba(0, 140, 255, 0.35),
        inset 0 0 10px rgba(0, 100, 200, 0.15);
}

#heroWatchDatabase .info-box small {
    color: #38aaff;
}

#heroWatchDatabase .info-box strong {
    color: #ffffff;
}

/* ========================================
   STATS
   ======================================== */

#heroWatchDatabase .stats-panel {
    z-index: 10;
}

#heroWatchDatabase .stat span {
    color: #38aaff;

    text-shadow:
        0 0 6px #008cff;
}

#heroWatchDatabase .stat-bar {
    border-color: #008cff;

    background: rgba(0, 20, 45, 0.8);
}

#heroWatchDatabase .stat-fill {
    background:
        linear-gradient(
            90deg,
            #006eff,
            #00aaff
        );

    box-shadow:
        0 0 8px #008cff,
        0 0 15px rgba(0, 140, 255, 0.8);
}

/* ========================================
   HERO OMNITRIX
   ======================================== */

#heroWatchDatabase #heroOmnitrixSelector {
    z-index: 30;
}

#heroWatchDatabase #heroOmnitrixButton {
    transition:
        transform 0.25s ease,
        filter 0.25s ease;
}

#heroWatchDatabase #heroOmnitrixButton:hover {
    transform: scale(1.08);

    filter:
        drop-shadow(0 0 10px #008cff)
        drop-shadow(0 0 25px #006eff);
}

/* ========================================
   HERO ALIEN WHEEL
   ======================================== */

#heroWatchDatabase #heroAlienWheel {
    z-index: 25;
}

#heroWatchDatabase #heroAlienWheel .alien-wheel-item {
    border-color: #008cff;

    background: rgba(0, 20, 45, 0.9);

    box-shadow:
        0 0 8px rgba(0, 140, 255, 0.7);
}

#heroWatchDatabase #heroAlienWheel .alien-wheel-item:hover {
    transform: scale(1.15);

    border-color: #38aaff;

    box-shadow:
        0 0 12px #008cff,
        0 0 25px rgba(0, 140, 255, 0.8);
}

/* ========================================
   ENERGY / BATTERY
   ======================================== */

#heroWatchDatabase .omnitrix-energy {
    z-index: 30;
}

#heroWatchDatabase .energy-core {
    border-color: #008cff;

    box-shadow:
        0 0 10px #008cff,
        0 0 25px rgba(0, 140, 255, 0.6);
}

#heroWatchDatabase #heroBatteryLevel {
    background:
        linear-gradient(
            90deg,
            #006eff,
            #00aaff
        );

    box-shadow:
        0 0 8px #008cff;
}

#heroWatchDatabase #heroBatteryPercent {
    color: #ffffff;

    text-shadow:
        0 0 8px #008cff;
}

/* ========================================
   NAVIGATION BUTTONS
   ======================================== */

#heroWatchDatabase .navigation-buttons {
    z-index: 30;
}

#heroWatchDatabase .nav-button {
    transition:
        transform 0.25s ease,
        filter 0.25s ease;
}

#heroWatchDatabase .nav-button:hover {
    transform: scale(1.08);

    filter:
        drop-shadow(0 0 10px #008cff)
        drop-shadow(0 0 20px #006eff);
}

/* ========================================
   BLUE GLOW EFFECT
   ======================================== */

#heroWatchDatabase .information-panel,
#heroWatchDatabase .stats-panel {
    text-shadow: 0 0 3px rgba(0, 140, 255, 0.3);
}

/* =========================================
   HERO WATCH DATABASE
   ========================================= */

#heroWatchDatabase {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100vh;
    overflow: hidden;

    background: #000;
    color: #ffffff;
}


/* =========================================
   HERO BACKGROUND
   ========================================= */

#heroWatchDatabase #heroBackground {
    position: absolute;

    inset: 0;

    width: 100%;
    height: 100%;

    background-image:
        url("ben23/background.png");

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    z-index: 0;
}


/* =========================================
   DARK OVERLAY
   ========================================= */

#heroWatchDatabase::before {

    content: "";

    position: absolute;

    inset: 0;

    background:
        rgba(0, 0, 0, 0.35);

    z-index: 1;

    pointer-events: none;

}


/* =========================================
   TOP BAR
   ========================================= */

#heroWatchDatabase .top-bar {

    position: absolute;

    top: 0;
    left: 0;

    width: 100%;

    height: 100px;

    z-index: 50;

    pointer-events: none;

}


/* Ben 10 logo */

#heroWatchDatabase .ben-logo {

    position: absolute;

    top: 20px;
    left: 25px;

    pointer-events: none;

}


#heroWatchDatabase .ben-logo img {

    width: 75px;
    height: auto;
}


/* Alien */

#heroWatchDatabase
#heroAlienImage {

    position: relative;

    max-width: 70%;
    max-height: 70%;

    object-fit: contain;

    z-index: 12;

    filter:
        drop-shadow(
            0 0 20px
            rgba(0, 160, 255, 0.8)
        );

}


/* Glow */

#heroWatchDatabase
.alien-glow {

    position: absolute;

    width: 330px;
    height: 330px;

    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            rgba(0, 150, 255, 0.35),
            transparent 70%
        );

    filter:
        blur(20px);

    z-index: 5;

}


/* Visual alien name */

#heroWatchDatabase
.alien-visual-name {

    position: absolute;

    bottom: 0;

    font-size: 28px;

    font-weight: bold;

    color: #00aaff;

    text-shadow:
        0 0 10px #0088ff,
        0 0 20px #0088ff;

    z-index: 20;

}


/* =========================================
   INFORMATION PANEL
   ========================================= */

#heroWatchDatabase
.information-panel {

    position: absolute;

    top: 17%;

    right: 5%;

    width: 35%;

    z-index: 20;

}


/* Title */

#heroWatchDatabase
.database-title {

    color: #00aaff;

    font-size: 20px;

    font-weight: bold;

    letter-spacing: 3px;

    margin-bottom: 10px;

}


/* Alien name */

#heroWatchDatabase
#heroAlienName {

    font-size: 58px;

    margin: 0 0 15px 0;

    color: #ffffff;

    text-shadow:
        0 0 10px #0088ff,
        0 0 20px #0088ff;

}


/* Description */

#heroWatchDatabase
#heroDescription {

    font-size: 17px;

    line-height: 1.6;

    max-width: 600px;

    color: #dddddd;

}


/* Information */

#heroWatchDatabase
.information {

    display: grid;

    grid-template-columns:
        repeat(2, 1fr);

    gap: 12px;

    margin-top: 25px;

}


#heroWatchDatabase
.info-box {

    padding: 14px;

    border:
        1px solid
        rgba(0, 150, 255, 0.6);

    background:
        rgba(0, 20, 40, 0.6);

    border-radius: 10px;

    backdrop-filter:
        blur(5px);

}


#heroWatchDatabase
.info-box small {

    display: block;

    color: #00aaff;

    font-size: 11px;

    margin-bottom: 6px;

}


#heroWatchDatabase
.info-box strong {

    display: block;

    color: #ffffff;

    font-size: 14px;

}


/* =========================================
   STATS
   ========================================= */

#heroWatchDatabase
.stats-panel {

    position: absolute;

    left: 35%;

    top: 1%;

    width: 30%;

    z-index: 20;

}


#heroWatchDatabase
.stat {

    margin-bottom: 8px;

}


#heroWatchDatabase
.stat span {

    display: block;

    color: #00aaff;

    font-size: 11px;

    margin-bottom: 4px;

}


#heroWatchDatabase
.stat-bar {

    width: 100%;

    height: 8px;

    background:
        rgba(255,255,255,0.15);

    border-radius: 10px;

    overflow: hidden;

}


#heroWatchDatabase
.stat-fill {

    width: 0%;

    height: 100%;

    background:
        linear-gradient(
            90deg,
            #0066ff,
            #00c8ff
        );

    border-radius: 10px;

    box-shadow:
        0 0 10px
        rgba(0, 150, 255, 0.9);

    transition:
        width 0.4s ease;

}


/* =========================================
   HERO OMNITRIX
   ========================================= */

#heroWatchDatabase
#heroOmnitrixSelector {

    position: absolute;

    left: 200px;

    bottom: 80px;

    width: 200px;
    height: 200px;

    z-index: 40;

}


/* Watch button */

#heroWatchDatabase
#heroOmnitrixButton {

    position: absolute;

    left: 0;
    top: 0;

    width: 200px;
    height: 200px;

    border: none;

    background: transparent;

    padding: 0;

    cursor: pointer;

    z-index: 100;

}


#heroWatchDatabase
#heroOmnitrixButton img {

    width: 200px;
    height: 200px;

    object-fit: contain;

    transition:
        transform 0.25s ease;

}


#heroWatchDatabase
#heroOmnitrixButton:hover img {

    transform:
        scale(1.08);

}


/* =========================================
   ALIEN WHEEL
   ========================================= */

#heroWatchDatabase
#heroAlienWheel {

    position: absolute;

    left: 100px;
    top: 100px;

    width: 0;
    height: 0;

    z-index: 80;

    opacity: 0;

    pointer-events: none;

    transition:
        opacity 0.3s ease;

}


#heroWatchDatabase
#heroAlienWheel.open {

    opacity: 1;

    pointer-events: auto;

}


/* =========================================
   HERO SILHOUETTES
   ========================================= */

#heroWatchDatabase
.hero-alien-silhouette {

    position: absolute;

    left: 0;
    top: 0;

    width: 58px;
    height: 58px;

    padding: 5px;

    border-radius: 50%;

    border:
        2px solid
        #000000;

    background:
        #00aaff;

    cursor: pointer;

    transform-origin:
        center;

    transition:
        scale 0.15s ease,
        box-shadow 0.15s ease;

    display: flex;

    align-items: center;
    justify-content: center;

}


/* Alien image */

#heroWatchDatabase
.hero-alien-silhouette img {

    width: 100%;
    height: 100%;

    object-fit: contain;

    filter:
        brightness(0);

}

/* Hover */

#heroWatchDatabase .hero-alien-silhouette:hover {

    scale: 1.12;

    box-shadow:
        0 0 15px
        #00aaff;
}


/* Selected */

#heroWatchDatabase
.hero-alien-silhouette.selected {

    box-shadow:
        0 0 15px
        #00aaff,
        0 0 30px
        #0088ff;

    border-color:
        #ffffff;

}


/* =========================================
   BATTERY
   ========================================= */

#heroWatchDatabase
.omnitrix-energy {

    position: absolute;

    right: 30px;
    bottom: 20px;

    z-index: 50;

    text-align: center;

}


#heroWatchDatabase
.energy-core {

    position: relative;

    width: 70px;
    height: 70px;

    border-radius: 50%;

    display: flex;

    align-items: center;
    justify-content: center;

}


#heroWatchDatabase
#heroBatteryLevel {

    position: absolute;

    left: 50%;
    bottom: 50%;

    width: 100%;
    height: 100%;

    transform:
        translate(-50%, 50%);

    border-radius: 50%;

    background:
        #00ff44;

    opacity: 0.35;

    transition:
        width 0.3s ease,
        background 0.3s ease;

}


#heroWatchDatabase
.energy-ring {

    position: absolute;

    inset: 0;

    border:
        5px solid
        rgba(255,255,255,0.25);

    border-radius: 50%;

}


#heroWatchDatabase
#heroBatteryPercent {

    position: relative;

    z-index: 5;

    font-size: 18px;

    font-weight: bold;

}


#heroWatchDatabase
.energy-label {

    margin-top: 8px;

    color: #00aaff;

    font-size: 10px;

    letter-spacing: 1px;

}


/* =========================================
   NEXT / PREVIOUS
   ========================================= */

#heroWatchDatabase
.navigation-buttons {

    position: absolute;

    left: 50%;

    bottom: 25px;

    transform:
        translateX(-50%);

    display: flex;

    gap: 25px;

    z-index: 50;

}


#heroWatchDatabase
.nav-button {

    width: 70px;
    height: 70px;

    border: none;

    background: transparent;

    padding: 0;

    cursor: pointer;

}


#heroWatchDatabase
.nav-button img {

    width: 100%;
    height: 100%;

    object-fit: contain;

    transition:
        transform 0.2s ease;

}


#heroWatchDatabase
.nav-button:hover img {

    transform:
        scale(1.1);

}


/* =========================================
   EXIT
   ========================================= */

#heroWatchDatabase
.hero-exit-button {

    position: absolute;

    top: 40px;
    right: 35px;

    padding:
        12px 28px;

    border:
        1.5px solid
        #00aaff;
        border-radius: 8px;

    background:
        rgba(0, 30, 60, 0.8);

    color: #ffffff;

    font-size: 14px;

    cursor: pointer;

    z-index: 60;

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;

}


#heroWatchDatabase
.hero-exit-button:hover {

    transform:
        scale(1.08);

    box-shadow:
        0 0 15px
        #0088ff;

}


/* =========================================
   MOBILE
   ========================================= */

@media (max-width: 900px) {

    #heroWatchDatabase
    .information-panel {

        left: 4%;

        top: 15%;

        width: 50%;

    }


    #heroWatchDatabase
    .alien-container {

        left: 72%;

        width: 400px;

        height: 500px;

    }


    #heroWatchDatabase
    #heroAlienName {

        font-size: 40px;

    }


    #heroWatchDatabase
    #heroOmnitrixSelector {

        left: 40px;

        bottom: 60px;

        transform:
            scale(0.8);

        transform-origin:
            bottom left;

    }

}

/* HERO WATCH - FIXED BACKGROUND */
#heroWatchDatabase #heroBackground {
    animation: none !important;
    transform: none !important;
    background-attachment: fixed !important;
}

/* =========================================
   GWEN WATCH - PINK THEME
   ========================================= */

#gwenWatchDatabase {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    background: #000;
    color: #fff;
    transform: none !important;
    animation: none !important;
}

/* =========================================
   GWEN FIXED BACKGROUND
   ========================================= */

#gwenWatchDatabase #gwenBackground {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;

    background-image: url("gwen/background.png") !important;
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;

    transform: none !important;
    animation: none !important;
    transition: none !important;

    z-index: 0 !important;
}

/* =========================================
   GWEN TOP BAR
   ========================================= */

#gwenWatchDatabase .top-bar {
    z-index: 50;
}

#gwenWatchDatabase .ben-logo img {
    filter:
        drop-shadow(0 0 8px rgba(0, 255, 80, 0.7));
}

/* =========================================
   GWEN ALIEN
   ========================================= */

#gwenWatchDatabase .alien-container {
    z-index: 10;
}

#gwenWatchDatabase .alien-glow {
    background: radial-gradient(
        circle,
        rgba(255, 79, 216, 0.45),
        transparent 70%
    );

    box-shadow:
        0 0 25px #ff4fd8,
        0 0 50px #ff1493,
        0 0 90px rgba(255, 20, 147, 0.6);
}

#gwenWatchDatabase #gwenAlienImage {
    filter:
        drop-shadow(0 0 10px #ff4fd8)
        drop-shadow(0 0 25px rgba(255, 20, 147, 0.8));
}

#gwenWatchDatabase #gwenAlienVisualName {
    color: #ff4fd8;
    text-shadow:
        0 0 8px #ff1493,
        0 0 20px #ff4fd8;
}

/* =========================================
   GWEN INFORMATION
   ========================================= */

#gwenWatchDatabase .database-title {
    color: #ff4fd8;
    text-shadow:
        0 0 8px #ff4fd8,
        0 0 18px #ff1493;
}

#gwenWatchDatabase #gwenAlienName {
    color: #fff;
    text-shadow:
        0 0 10px #ff1493,
        0 0 25px #ff4fd8;
}

#gwenWatchDatabase #gwenDescription {
    color: #ffd6f5;
}

#gwenWatchDatabase .info-box {
    border-color: rgba(255, 79, 216, 0.8);

    background:
        linear-gradient(
            135deg,
            rgba(255, 20, 147, 0.22),
            rgba(30, 0, 20, 0.75)
        );

    box-shadow:
        0 0 8px rgba(255, 20, 147, 0.4),
        inset 0 0 10px rgba(255, 79, 216, 0.15);
}

#gwenWatchDatabase .info-box small {
    color: #ff4fd8;
}

#gwenWatchDatabase .info-box strong {
    color: #fff;
}

/* =========================================
   GWEN STATS
   ========================================= */

#gwenWatchDatabase .stat span {
    color: #ff4fd8;
    text-shadow: 0 0 6px #ff1493;
}

#gwenWatchDatabase .stat-bar {
    border-color: #ff4fd8;
    background: rgba(40, 0, 25, 0.8);
}

#gwenWatchDatabase .stat-fill {
    background:
        linear-gradient(
            90deg,
            #ff1493,
            #ff4fd8,
            #ff9bea
        ) !important;

    box-shadow:
        0 0 8px #ff1493,
        0 0 18px #ff4fd8;

    transition: width 0.4s ease;
}

/* =========================================
   GWEN OMNITRIX
   ========================================= */

#gwenWatchDatabase #gwenOmnitrixSelector {
    position: absolute;
    left: 100px;
    bottom: 80px;
    width: 200px;
    height: 200px;
    z-index: 100;
}

#gwenWatchDatabase #gwenOmnitrixButton {
    position: absolute;
    left: 0;
    top: 0;

    width: 200px;
    height: 200px;

    padding: 0;
    border: none;
    background: transparent;

    cursor: pointer;
    z-index: 200;

    transition: transform 0.25s ease;
}

#gwenWatchDatabase #gwenOmnitrixButton img {
    width: 200px;
    height: 200px;
    object-fit: contain;
    display: block;
}

#gwenWatchDatabase #gwenOmnitrixButton:hover {
    transform: scale(1.08);
}

/* =========================================
   GWEN ALIEN WHEEL
   ONE CIRCLE ONLY
   ========================================= */

#gwenWatchDatabase #gwenAlienWheel {
    position: absolute;

    left: 100px;
    top: 100px;

    width: 0;
    height: 0;

    z-index: 150;

    opacity: 0;
    pointer-events: none;

    transform: none !important;

    transition: opacity 0.3s ease;
}

#gwenWatchDatabase #gwenAlienWheel.open {
    opacity: 1;
    pointer-events: auto;
    transform: none !important;
}

/* =========================================
   GWEN SILHOUETTES
   IMPORTANT:
   JS CREATES .gwen-alien-silhouette
   ========================================= */

#gwenWatchDatabase #gwenAlienWheel .gwen-alien-silhouette {
    position: absolute;

    left: 0;
    top: 0;

    width: 58px;
    height: 58px;

    margin-left: -29px;
    margin-top: -29px;

    padding: 5px;

    border-radius: 50%;
    border: 2px solid #000;

    background: #ff4fd8;

    display: flex;
    align-items: center;
    justify-content: center;

    cursor: pointer;

    z-index: 160;

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

/* SILHOUETTE IMAGE */

#gwenWatchDatabase #gwenAlienWheel .gwen-alien-silhouette img {
    width: 100%;
    height: 100%;

    object-fit: contain;

    filter: brightness(0);
}

/* HOVER */

#gwenWatchDatabase #gwenAlienWheel .gwen-alien-silhouette:hover {
    scale: 1.15;

    box-shadow:
        0 0 12px #ff1493,
        0 0 25px #ff4fd8;

    z-index: 300;
}

/* SELECTED */

#gwenWatchDatabase #gwenAlienWheel .gwen-alien-silhouette.active {
    box-shadow:
        0 0 12px #ff1493,
        0 0 25px #ff4fd8;

    border-color: #fff;
}

/* =========================================
   GWEN ENERGY — COLOUR CHANGING BATTERY
========================================= */

#gwenWatchDatabase .energy-core {
    border-color: #ff4fd8;

    box-shadow:
        0 0 10px #ff1493,
        0 0 25px rgba(255, 79, 216, 0.7);
}

/* IMPORTANT:
   Do NOT force a background color here.
   JavaScript will control green/orange/red.
*/

#gwenWatchDatabase #gwenBatteryLevel {
    box-shadow:
        0 0 8px rgba(255, 20, 147, 0.8),
        0 0 18px rgba(255, 79, 216, 0.6);

    transition:
        width 0.4s ease,
        background 0.3s ease,
        box-shadow 0.3s ease;
}

#gwenWatchDatabase .energy-ring {
    border-color: #ff4fd8;

    box-shadow:
        0 0 8px #ff1493,
        0 0 18px #ff4fd8;
}

#gwenWatchDatabase #gwenBatteryPercent {
    color: #ffffff;

    text-shadow:
        0 0 8px #ff4fd8,
        0 0 15px #ff1493;
}

#gwenWatchDatabase .energy-label {
    color: #ff4fd8;

    text-shadow:
        0 0 8px #ff1493,
        0 0 15px #ff4fd8;
}

/* =========================================
   GWEN EXIT
   ========================================= */

#gwenWatchDatabase #gwenExitButton {
    position: absolute;

    top: 30px;
    right: 30px;

    z-index: 500;

    padding: 12px 22px;

    color: #ff4fd8;

    background: rgba(0, 0, 0, 0.75);

    border: 2px solid #ff4fd8;
    border-radius: 8px;

    font-size: 16px;
    font-weight: bold;

    cursor: pointer;

    box-shadow:
        0 0 8px #ff1493,
        0 0 18px #ff4fd8;

    transition: 0.25s ease;
}

#gwenWatchDatabase #gwenExitButton:hover {
    transform: scale(1.08);

    color: #fff;
    background: #ff1493;

    box-shadow:
        0 0 12px #ff1493,
        0 0 30px #ff4fd8;
}

/* =========================================
   GWEN NEXT / PREVIOUS
   ========================================= */

#gwenWatchDatabase .navigation-buttons {
    position: absolute;

    left: 50%;
    bottom: 25px;

    transform: translateX(-50%);

    z-index: 500;

    display: flex;
    align-items: center;
    justify-content: center;

    gap: 25px;
}

#gwenWatchDatabase .navigation-buttons .nav-button {
    width: 70px;
    height: 70px;

    padding: 0;

    border: none;
    background: transparent;

    cursor: pointer;

    transition: transform 0.25s ease;
}

#gwenWatchDatabase .navigation-buttons .nav-button img {
    width: 100%;
    height: 100%;

    object-fit: contain;

    display: block;

    filter:
        drop-shadow(0 0 5px #ff1493)
        drop-shadow(0 0 12px #ff4fd8);
}

#gwenWatchDatabase .navigation-buttons .nav-button:hover {
    transform: scale(1.12);
}

/* =========================================
   BEN 10,000 OMNITRIX
========================================= */

#ben10000Database {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    background: #000;
}

#ben10000Background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;

    background-image: url("Ben10k/background.png");
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;

    /* IMPORTANT */
    background-attachment: scroll;

    transform: none;
    animation: none;
    transition: none;

    z-index: 0;
}


/* =========================================
   BEN 10 LOGO
========================================= */

#ben10000Database .top-bar {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 20;
}


/* =========================================
   TITLE
========================================= */

.ben10000-title {
    position: absolute;

    top: 50px;
    left: 50%;

    transform: translateX(-50%);

    z-index: 10;

    color: #39ff14;

    font-size: 28px;
    font-weight: bold;

    text-shadow:
        0 0 10px #000000,
        0 0 20px #000000;
}


/* =========================================
   FUSION SELECTION
========================================= */

.fusion-selection {
    position: absolute;

    top: 50%;
    left: 50%;

    transform: translate(-50%, -50%);

    display: flex;
    gap: 80px;

    z-index: 10;
}


/* =========================================
   SELECTOR
========================================= */

.fusion-selector {
    display: flex;
    flex-direction: column;
    align-items: center;

    gap: 15px;
}


.fusion-selector h2 {
    margin: 0;

    color: #39ff14;

    font-size: 24px;

    text-shadow:
        0 0 8px #000000;
}


.fusion-selector select {

    width: 280px;
    height: 55px;

    padding: 0 15px;

    border: 2px solid #39ff14;
    border-radius: 10px;

    background: rgba(0, 0, 0, 0.85);

    color: white;

    font-size: 17px;

    outline: none;

    cursor: pointer;

    box-shadow:
        0 0 10px rgba(57, 255, 20, 0.5);
}


.fusion-selector select:hover {

    box-shadow:
        0 0 20px rgba(57, 255, 20, 0.8);

}


/* =========================================
   FUSE BUTTON
========================================= */

/* =========================================
   BEN 10,000 FUSE IMAGE BUTTON
========================================= */

#ben10000Database .fusion-button {
    position: absolute;
    left: 50%;
    top: calc(50% + 120px);
    transform: translateX(-50%);

    width: 280px;
    height: 170px;

    padding: 0;
    border: none;
    background: transparent;

    cursor: pointer;
    z-index: 15;

    transition: 0.2s ease;
}

#ben10000Database .fusion-button img {
    width: 100%;
    height: 100%;

    object-fit: contain;
    display: block;

    transition: 0.2s ease;

    filter:
        drop-shadow(0 0 8px rgba(57, 255, 20, 0.6));
}

#ben10000Database .fusion-button:hover {
    transform: translateX(-50%) scale(1.08);
}

#ben10000Database .fusion-button:hover img {
    filter:
        drop-shadow(0 0 18px rgba(57, 255, 20, 0.95));
}


/* =========================================
   FUSION RESULT
========================================= */

.fusion-result {

    position: absolute;

    inset: 0;

    display: none;

    z-index: 30;

    background: rgba(0, 0, 0, 0.96);

    padding: 120px 60px 80px;

    overflow-y: auto;
}


.fusion-name {

    text-align: center;

    margin-bottom: 50px;
}


.fusion-name span {

    color: #39ff14;

    font-size: 48px;
    font-weight: bold;

    text-shadow:
        0 0 10px #39ff14,
        0 0 25px #39ff14;
}


/* =========================================
   FUSION INFORMATION
========================================= */

.fusion-info {

    display: flex;

    justify-content: center;

    gap: 80px;

    max-width: 1100px;

    margin: auto;
}


.fusion-alien-info {

    width: 420px;

    padding: 30px;

    border: 2px solid #39ff14;
    border-radius: 15px;

    background: rgba(0, 0, 0, 0.75);

    box-shadow:
        0 0 15px rgba(57, 255, 20, 0.4);
}


.fusion-alien-info h2 {

    color: #39ff14;

    text-align: center;

    margin-top: 0;
    margin-bottom: 25px;
}


.fusion-alien-info p {

    color: white;

    font-size: 17px;

    line-height: 1.6;
}


.fusion-alien-info strong {

    color: #39ff14;
}


/* =========================================
   EXIT BUTTON
========================================= */

#ben10000Database .hero-exit-button {

    z-index: 50;
}


/* =========================================
   MOBILE
========================================= */

@media (max-width: 900px) {

    .fusion-selection {

        flex-direction: column;

        gap: 25px;

        top: 48%;
    }


    .fusion-selector select {

        width: 240px;
    }


    .fusion-button {

        top: auto;
        bottom: 80px;
    }


    .fusion-info {

        flex-direction: column;

        align-items: center;

        gap: 30px;
    }


    .fusion-alien-info {

        width: 80%;
    }

}
/* STOP BEN 10,000 BACKGROUND MOVEMENT */

#ben10000Database,
#ben10000Background {
    animation: none !important;
    transform: none !important;
    transition: none !important;
}

#ben10000Background {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;

    background-position: center center !important;
    background-repeat: no-repeat !important;
    background-size: cover !important;
}

/* BEN 10,000 EXIT BUTTON */

#ben10000ExitButton {
    position: absolute;
    top: 25px;
    right: 25px;

    z-index: 100;

    padding: 12px 22px;

    background: #000;
    color: #39ff14;

    border: 2px solid #39ff14;
    border-radius: 10px;

    font-size: 16px;
    font-weight: bold;

    cursor: pointer;

    box-shadow: 0 0 10px rgba(57, 255, 20, 0.6);

    transition: 0.2s ease;
}

#ben10000ExitButton:hover {
    transform: scale(1.08);

    box-shadow:
        0 0 15px rgba(57, 255, 20, 0.8),
        0 0 30px rgba(57, 255, 20, 0.5);
}

/* =========================================
   BEN 10,000 ALIEN SELECTORS
========================================= */

#ben10000Database .fusion-selector select {
    background: #050505;
    color: #39ff14;
    border: 2px solid #39ff14;
    box-shadow:
        0 0 8px rgba(57, 255, 20, 0.5),
        inset 0 0 8px rgba(57, 255, 20, 0.15);

    font-weight: bold;
}

/* Dropdown options */
#ben10000Database .fusion-selector select option {
    background: #050505;
    color: #39ff14;
}

/* Hover */
#ben10000Database .fusion-selector select:hover {
    border-color: #7cff5b;
    box-shadow:
        0 0 15px rgba(57, 255, 20, 0.8),
        inset 0 0 10px rgba(57, 255, 20, 0.2);
}

/* Selected value */
#ben10000Database .fusion-selector select:focus {
    outline: none;
    border-color: #39ff14;
    box-shadow:
        0 0 20px rgba(57, 255, 20, 0.9),
        inset 0 0 12px rgba(57, 255, 20, 0.2);
}

/* Selector headings */
#ben10000Database .fusion-selector h2 {
    color: #39ff14;
    text-shadow:
        0 0 8px #39ff14,
        0 0 18px rgba(57, 255, 20, 0.7);
}
/* =========================================
   BEN 10,000 FUSION RESULT FIX
========================================= */

#ben10000Database .fusion-result {
    display: none;
}

#ben10000Database .fusion-result.show {
    display: block;
}

/* =========================================
   BEN 10,000 FUSION MESSAGE
========================================= */

#ben10000Database .fusion-message {
    position: absolute;
    left: 50%;
    top: calc(50% + 100px);
    transform: translateX(-50%);
    z-index: 20;

    color: #ff3333;
    font-size: 20px;
    font-weight: bold;
    text-align: center;

    text-shadow:
        0 0 8px #000000,
        0 0 15px #000000;

    min-height: 25px;
}

/* =========================================
   BEN 10,000 FUSION STATS
========================================= */

#ben10000Database .fusion-stats {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    margin-top: 30px;
    flex-wrap: wrap;
}

#ben10000Database .fusion-stat {
    width: 180px;
    min-height: 120px;
    padding: 20px;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    border: 2px solid #39ff14;
    border-radius: 15px;

    background: rgba(0, 0, 0, 0.8);

    box-shadow:
        0 0 12px rgba(57, 255, 20, 0.5);

    transition: 0.2s ease;
}

#ben10000Database .fusion-stat:hover {
    transform: scale(1.06);

    box-shadow:
        0 0 25px rgba(57, 255, 20, 0.9);
}

#ben10000Database .fusion-stat-label {
    color: #39ff14;
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 12px;
}

#ben10000Database .fusion-stat-value {
    color: white;
    font-size: 38px;
    font-weight: bold;

    text-shadow:
        0 0 8px #39ff14,
        0 0 15px #39ff14;
}

@media (max-width: 900px) {

    #ben10000Database .fusion-stats {
        gap: 15px;
    }

    #ben10000Database .fusion-stat {
        width: 140px;
        min-height: 100px;
    }

    #ben10000Database .fusion-stat-value {
        font-size: 30px;
    }
}


/* =========================================
   BEN 10,000 FUSION RESULT EXIT
========================================= */

#ben10000Database .fusion-result-exit {
    position: absolute;
    top: 30px;
    right: 0%;
    transform: translateX(-50%);

    width: 150px;
    height: 50px;

    border: 2px solid #39ff14;
    border-radius: 100px;

    background: #000;
    color: #39ff14;

    font-size: 18px;
    font-weight: bold;

    cursor: pointer;

    box-shadow:
        0 0 10px rgba(57, 255, 20, 0.6);

    transition: 0.2s ease;
}

#ben10000Database .fusion-result-exit:hover {
    transform: translateX(-50%) scale(1.08);

    box-shadow:
        0 0 25px rgba(57, 255, 20, 0.9);
}

/* =========================================
   BEN 10,000 EXIT BUTTON VISIBILITY
========================================= */

/* Old exit button is visible on selector page */
#ben10000Database .hero-exit-button {
    display: block;
}

/* Hide old exit button whenever fusion result is open */
#ben10000Database:has(.fusion-result.show) .hero-exit-button {
    display: none;
}

/* =========================================
   BEN 10,000 BIOMNITRIX BATTERY
========================================= */

#ben10000Database .ben10000-battery {
    position: absolute;
    right: 30px;
    bottom: 30px;

    width: 220px;

    padding: 15px;

    background: rgba(0, 0, 0, 0.8);

    border: 2px solid #39ff14;
    border-radius: 15px;

    z-index: 25;

    box-shadow:
        0 0 12px rgba(57, 255, 20, 0.5);
}

#ben10000Database .ben10000-battery-label {
    color: #39ff14;

    font-size: 13px;
    font-weight: bold;

    text-align: center;

    margin-bottom: 8px;
}

#ben10000Database .ben10000-battery-bar {
    width: 100%;
    height: 18px;

    background: #111;

    border: 1px solid #39ff14;
    border-radius: 10px;

    overflow: hidden;
}

#ben10000Database .ben10000-battery-fill {
    width: 100%;
    height: 100%;

    background: #39ff14;

    border-radius: 8px;

    transition:
        width 0.5s linear,
        background 0.3s ease;

    box-shadow:
        0 0 10px rgba(57, 255, 20, 0.8);
}

#ben10000Database .ben10000-battery-percent {
    margin-top: 8px;

    color: white;

    font-size: 18px;
    font-weight: bold;

    text-align: center;
}

/* ========================================
   ALIEN FORCE OMNITRIX
======================================== */

#alienForceSelector {
    position: fixed;

    left: 30px;
    bottom: 100px;

    width: 220px;
    height: 220px;

    z-index: 9999;

    display: flex;
    align-items: center;
    justify-content: center;

    visibility: visible;
    opacity: 1;
}


/* ========================================
   OMNITRIX BUTTON
======================================== */

#alienForceOmnitrixButton {
    position: relative;

    width: 200px;
    height: 200px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 0;
    margin: 0;

    border: none;
    outline: none;

    background: transparent;

    cursor: pointer;

    visibility: visible;
    opacity: 1;

    z-index: 10000;
}


/* ========================================
   ALIEN FORCE OMNITRIX
======================================== */

#alienForceSelector {
    position: fixed;

    left: 100px;
    bottom: 170px;

    width: 220px;
    height: 220px;

    z-index: 9999;

    display: flex;
    align-items: center;
    justify-content: center;

    visibility: visible;
    opacity: 1;
}


/* ========================================
   OMNITRIX BUTTON
======================================== */

#alienForceOmnitrixButton {
    position: relative;

    width: 200px;
    height: 200px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 0;
    margin: 0;

    border: none;
    outline: none;

    background: transparent;

    cursor: pointer;

    visibility: visible;
    opacity: 1;

    z-index: 10000;
}


/* ========================================
   OMNITRIX IMAGE
======================================== */

#alienForceOmnitrixButton img {
    width: 200px;
    height: 200px;

    display: block;

    object-fit: contain;

    visibility: visible;
    opacity: 1;

    z-index: 10001;

    filter:
        drop-shadow(0 0 10px rgba(0, 255, 100, 0.8))
        drop-shadow(0 0 25px rgba(0, 255, 100, 0.6));

    transition: transform 0.25s ease;
}


/* ========================================
   HOVER
======================================== */

#alienForceOmnitrixButton:hover img {
    transform: scale(1.08);
}


/* ========================================
   CLICK
======================================== */

#alienForceOmnitrixButton:active img {
    transform: scale(0.95);
}/* ========================================
   HOVER
======================================== */

#alienForceOmnitrixButton:hover img {
    transform: scale(1.08);
}


/* ========================================
   CLICK
======================================== */

#alienForceOmnitrixButton:active img {
    transform: scale(0.95);
}

/* ========================================
   ALIEN FORCE NAVIGATION GRID
   UPPER SIDE OF OMNITRIX
======================================== */

#alienForceNavigationGrid {

    position: absolute;

    left: -60px;
    bottom: 230px;

    width: 520px;
    height: 220px;

    display: grid;

    grid-template-columns: repeat(8, 1fr);
    grid-template-rows: repeat(4, 1fr);

    gap: 8px;

    padding: 8px;

    box-sizing: border-box;

    overflow: hidden;

    z-index: 9998;
}


/* ========================================
   ALIEN FORCE GRID BOX
======================================== */

.alien-force-navigation-item {

    width: 100%;
    height: 45px;

    min-width: 0;

    padding: 3px;
    margin: 0;

    display: flex;

    align-items: center;
    justify-content: center;

    border: 2px solid rgba(0, 255, 100, 0.55);

    border-radius: 8px;

    background: rgba(0, 0, 0, 0.78);

    box-shadow:
        inset 0 0 8px rgba(0, 255, 100, 0.08);

    box-sizing: border-box;

    cursor: pointer;

    overflow: hidden;

    transition:
        transform 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

/* ========================================
   ALIEN FORCE SELECTOR ALIEN IMAGE
   BRIGHT GREEN
======================================== */

.alien-force-navigation-item img {

    width: 34px;
    height: 34px;

    max-width: 100%;
    max-height: 100%;

    object-fit: contain;

    display: block;

    /* Bright green appearance */
    filter:
        brightness(0)
        saturate(100%)
        invert(72%)
        sepia(98%)
        saturate(1800%)
        hue-rotate(75deg)
        brightness(125%)
        contrast(115%);

    opacity: 1;

    transition:
        transform 0.2s ease,
        filter 0.2s ease;
}


/* ========================================
   HOVER
======================================== */

.alien-force-navigation-item:hover img {

    transform: scale(1.12);

    filter:
        brightness(0)
        saturate(100%)
        invert(72%)
        sepia(98%)
        saturate(2200%)
        hue-rotate(75deg)
        brightness(145%)
        contrast(120%);

}

/* ========================================
   REMOVE ALIEN NAMES
======================================== */

.alien-force-navigation-item span {

    display: none;
}


/* ========================================
   HOVER
======================================== */

.alien-force-navigation-item:hover {

    transform: scale(1.08);

    border-color:
        rgba(0, 255, 100, 1);

    box-shadow:
        0 0 10px rgba(0, 255, 100, 0.5),
        inset 0 0 10px rgba(0, 255, 100, 0.12);
}



/* ========================================
   HOVER
======================================== */

.alien-force-navigation-item:hover {

    transform: scale(1.08);

    border-color: rgba(0, 255, 100, 1);

    box-shadow:
        0 0 8px rgba(0, 255, 100, 0.65);

}


.alien-force-navigation-item:hover img {

    transform: scale(1.08);

}

#alienForceAlienName {
    color: white;
    -webkit-text-stroke: 1.5px #00ff66;
    text-shadow:
        0 0 4px #00ff66,
        0 0 8px #00ff66,
        0 0 15px rgba(0, 255, 100, 0.9);
}

/* ========================================
   ALIEN FORCE NAVIGATION OPEN / CLOSE
======================================== */

#alienForceNavigationGrid {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(15px);
    transition:
        opacity 0.25s ease,
        transform 0.25s ease,
        visibility 0.25s ease;
}

#alienForceNavigationGrid.open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}



/* ========================================
   ALBEDO HOLOGRAM CONTROL
======================================== */

.albedo-hologram-control {
    position: fixed;

    left: 100px;
    bottom: 170px;

    width: 200px;
    height: 200px;

    display: flex;
    align-items: center;
    justify-content: center;

    z-index: 10000;

    pointer-events: none;
}


/* ========================================
   ALBEDO OMNITRIX BUTTON
======================================== */

.albedo-omnitrix-button {
    position: absolute;

    left: 0;
    bottom: 0;

    width: 200px;
    height: 200px;

    padding: 0;
    margin: 0;

    border: none;
    outline: none;

    background: transparent;

    cursor: pointer;

    pointer-events: auto;

    z-index: 10002;
}


/* ========================================
   ALBEDO OMNITRIX IMAGE
======================================== */

.albedo-omnitrix-button img {
    width: 200px;
    height: 200px;

    display: block;

    object-fit: contain;

    pointer-events: none;

    filter:
        drop-shadow(0 0 10px rgba(255, 0, 0, 0.8))
        drop-shadow(0 0 25px rgba(255, 0, 0, 0.6));

    transition: transform 0.25s ease;
}


/* ========================================
   OMNITRIX HOVER
======================================== */

.albedo-omnitrix-button:hover img {
    transform: scale(1.08);
}


/* ========================================
   OMNITRIX CLICK
======================================== */

.albedo-omnitrix-button:active img {
    transform: scale(0.95);
}


/* ========================================
   ALBEDO COLOUR HOLOGRAM
======================================== */

.albedo-hologram-image {
    position: absolute;

    width: 220px;
    height: 240px;

    left: 5px;
    bottom: 185px;

    object-fit: contain;

    opacity: 0;

    pointer-events: none;

    z-index: 10001;

    filter:
        saturate(1.35)
        brightness(1.15)
        contrast(1.05)
        drop-shadow(0 0 6px rgba(255, 0, 80, 0.8))
        drop-shadow(0 0 12px rgba(255, 0, 0, 0.7))
        drop-shadow(0 0 22px rgba(255, 0, 0, 0.55));

    mix-blend-mode: screen;

    transform:
        translateY(15px)
        scale(0.9);

    transition:
        opacity 0.3s ease,
        transform 0.3s ease;
}


/* ========================================
   ACTIVE HOLOGRAM
======================================== */

.albedo-hologram-image.active {
    opacity: 0.72;

    transform:
        translateY(0)
        scale(1);

    animation:
        albedoColourHologram 0.18s infinite alternate;
}


/* ========================================
   ALBEDO STAT BARS
======================================== */

#albedoDatabase .stats-panel .stat-bar > div {
    background: linear-gradient(
        90deg,
        #ff0000,
        #ff1a1a,
        #ff4d4d
    );

    box-shadow:
        0 0 6px rgba(255, 0, 0, 0.9),
        0 0 14px rgba(255, 0, 0, 0.7),
        0 0 22px rgba(255, 0, 0, 0.4);

    transition: width 0.6s ease-in-out;
}


/* ========================================
   ALBEDO ALIEN IMAGE TRANSITION
======================================== */

#albedoDatabase #albedoAlienImage {
    transition:
        opacity 0.25s ease,
        transform 0.35s ease,
        filter 0.35s ease;
}

#albedoDatabase #albedoAlienImage.albedo-alien-transition {
    opacity: 0;

    transform:
        scale(0.85)
        translateY(15px);

    filter:
        brightness(1.8)
        drop-shadow(0 0 20px rgba(255, 0, 0, 0.9));
}


#albedoDatabase .albedo-background {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    pointer-events: none;
    z-index: 0;
}
#albedoDatabase .database-title {
    color: #ffffff;
    text-shadow:
        0 0 5px #ff0000,
        0 0 10px #ff0000,
        0 0 20px rgba(255, 0, 0, 0.8);
}

/* =========================================================
   ALBEDO OMNITRIX — RED THEME ONLY
   Scoped ONLY to #albedoDatabase
========================================================= */

/* ---------- DATABASE TITLE ---------- */

#albedoDatabase .database-title {
    color: #ffffff;
    text-shadow:
        0 0 5px #ff0000,
        0 0 10px #ff0000,
        0 0 20px rgba(255, 0, 0, 0.8);
}

/* ---------- ALIEN NAME ---------- */

#albedoDatabase #albedoAlienName {
    color: #ffffff;
    -webkit-text-stroke: 1.5px #ff0000;
    text-shadow:
        0 0 4px #ff0000,
        0 0 8px #ff0000,
        0 0 15px rgba(255, 0, 0, 0.9);
}

/* ---------- DESCRIPTION ---------- */

#albedoDatabase #albedoDescription {
    color: #ffffff;
    text-shadow:
        0 0 4px rgba(255, 0, 0, 0.45);
}

/* ---------- INFORMATION TEXT ---------- */

#albedoDatabase #albedoSpecies,
#albedoDatabase #albedoPlanet,
#albedoDatabase #albedoPowers,
#albedoDatabase #albedoWeakness {
    color: #ffffff;
}

/* ---------- INFORMATION LABELS ---------- */

#albedoDatabase .information-panel small {
    color: #ff3333;
    text-shadow:
        0 0 5px rgba(255, 0, 0, 0.8);
}

/* ---------- INFORMATION BOXES ---------- */

#albedoDatabase .information-panel .info-box {
    border-color: rgba(255, 0, 0, 0.65);

    box-shadow:
        0 0 8px rgba(255, 0, 0, 0.35),
        inset 0 0 8px rgba(255, 0, 0, 0.08);
}

/* ---------- STAT LABELS ---------- */

#albedoDatabase .stats-panel .stat span {
    color: #ffffff;

    text-shadow:
        0 0 5px #ff0000,
        0 0 10px rgba(255, 0, 0, 0.7);
}

/* ---------- STAT BAR CONTAINERS ---------- */

#albedoDatabase .stats-panel .stat-bar {
    border-color: rgba(255, 0, 0, 0.7);

    box-shadow:
        0 0 6px rgba(255, 0, 0, 0.35),
        inset 0 0 6px rgba(255, 0, 0, 0.12);
}

/* ---------- STAT BARS ---------- */

#albedoDatabase #albedoPowerBar,
#albedoDatabase #albedoSpeedBar,
#albedoDatabase #albedoStrengthBar,
#albedoDatabase #albedoDurabilityBar,
#albedoDatabase #albedoIntelligenceBar {
    background: linear-gradient(
        90deg,
        #ff0000,
        #ff1a1a,
        #ff4d4d
    );

    box-shadow:
        0 0 6px rgba(255, 0, 0, 0.9),
        0 0 14px rgba(255, 0, 0, 0.7),
        0 0 22px rgba(255, 0, 0, 0.4);
}

/* ---------- ALIEN IMAGE RED GLOW ---------- */

#albedoDatabase #albedoAlienImage {
    filter:
        drop-shadow(0 0 8px rgba(255, 0, 0, 0.45))
        drop-shadow(0 0 18px rgba(255, 0, 0, 0.25));
}

/* ---------- ALIEN IMAGE TRANSITION ---------- */

#albedoDatabase #albedoAlienImage.albedo-alien-transition {
    filter:
        brightness(1.8)
        drop-shadow(0 0 20px rgba(255, 0, 0, 0.9));
}

/* ---------- ALIEN NAME TRANSITION ---------- */

#albedoDatabase #albedoAlienName.albedo-name-transition {
    text-shadow:
        0 0 20px rgba(255, 0, 0, 1);
}

/* ---------- ALBEDO OMNITRIX BUTTON ---------- */

#albedoDatabase #albedoOmnitrixButton img {
    filter:
        drop-shadow(0 0 10px rgba(255, 0, 0, 0.9))
        drop-shadow(0 0 25px rgba(255, 0, 0, 0.7))
        drop-shadow(0 0 45px rgba(255, 0, 0, 0.35));
}

#albedoDatabase #albedoOmnitrixButton:hover img {
    filter:
        drop-shadow(0 0 12px rgba(255, 0, 0, 1))
        drop-shadow(0 0 30px rgba(255, 0, 0, 0.85))
        drop-shadow(0 0 50px rgba(255, 0, 0, 0.45));
}

/* ---------- HOLOGRAM ---------- */

#albedoDatabase #albedoHologramImage {
    filter:
        saturate(1.35)
        brightness(1.15)
        contrast(1.05)
        drop-shadow(0 0 6px rgba(255, 0, 80, 0.8))
        drop-shadow(0 0 12px rgba(255, 0, 0, 0.7))
        drop-shadow(0 0 22px rgba(255, 0, 0, 0.55));
}

/* ---------- BATTERY ---------- */

#albedoDatabase #albedoBatteryLevel {
    background: linear-gradient(
        90deg,
        #ff0000,
        #ff3333,
        #ff6666
    );

    box-shadow:
        0 0 8px rgba(255, 0, 0, 0.9),
        0 0 16px rgba(255, 0, 0, 0.6);
}

#albedoDatabase #albedoBatteryPercent {
    color: #ffffff;

    text-shadow:
        0 0 5px #ff0000,
        0 0 10px rgba(255, 0, 0, 0.8);
}

/* ---------- ENERGY LABEL ---------- */

#albedoDatabase .albedo-energy .energy-label {
    color: #ff3333;

    text-shadow:
        0 0 5px rgba(255, 0, 0, 0.8),
        0 0 10px rgba(255, 0, 0, 0.5);
}

/* ---------- ENERGY CORE ---------- */

#albedoDatabase .albedo-energy .energy-core {
    border-color: rgba(255, 0, 0, 0.8);

    box-shadow:
        0 0 8px rgba(255, 0, 0, 0.5),
        inset 0 0 8px rgba(255, 0, 0, 0.2);
}

/* ---------- ENERGY RING ---------- */

#albedoDatabase .albedo-energy .energy-ring {
    border-color: rgba(255, 0, 0, 0.65);

    box-shadow:
        0 0 10px rgba(255, 0, 0, 0.35);
}

/* ---------- PREVIOUS / NEXT ---------- */

#albedoDatabase #albedoPrevious,
#albedoDatabase #albedoNext {
    filter:
        drop-shadow(0 0 5px rgba(255, 0, 0, 0.7));
}

#albedoDatabase #albedoPrevious:hover,
#albedoDatabase #albedoNext:hover {
    filter:
        drop-shadow(0 0 10px rgba(255, 0, 0, 1))
        drop-shadow(0 0 20px rgba(255, 0, 0, 0.6));

    transform: scale(1.08);
}

/* ---------- EXIT BUTTON ---------- */

#albedoDatabase #exitAlbedoButton {
    color: #ffffff;

    border-color: #ff0000;

    background: rgba(80, 0, 0, 0.65);

    box-shadow:
        0 0 8px rgba(255, 0, 0, 0.45),
        inset 0 0 8px rgba(255, 0, 0, 0.12);
}

#albedoDatabase #exitAlbedoButton:hover {
    background: rgba(150, 0, 0, 0.75);

    border-color: #ff3333;

    box-shadow:
        0 0 14px rgba(255, 0, 0, 0.8),
        0 0 28px rgba(255, 0, 0, 0.35);

    transform: scale(1.06);
}

/* =========================================================
   ALBEDO — REMOVE REMAINING GREEN GLOW
========================================================= */

/* ---------- INFORMATION PANEL ---------- */

#albedoDatabase .information-panel {
    border-color: rgba(255, 0, 0, 0.65) !important;

    box-shadow:
        0 0 10px rgba(255, 0, 0, 0.35),
        0 0 25px rgba(255, 0, 0, 0.18),
        inset 0 0 12px rgba(255, 0, 0, 0.08) !important;
}

/* ---------- INFORMATION PANEL TITLE ---------- */

#albedoDatabase .database-title {
    color: #ffffff !important;

    text-shadow:
        0 0 5px #ff0000,
        0 0 10px #ff0000,
        0 0 20px rgba(255, 0, 0, 0.9) !important;
}

/* ---------- INFORMATION PANEL MAIN TEXT ---------- */

#albedoDatabase .information-panel h1,
#albedoDatabase .information-panel p {
    color: #ffffff !important;

    text-shadow:
        0 0 4px rgba(255, 0, 0, 0.55),
        0 0 10px rgba(255, 0, 0, 0.25) !important;
}

/* ---------- INFO BOXES ---------- */

#albedoDatabase .information-panel .info-box {
    border-color: rgba(255, 0, 0, 0.7) !important;

    box-shadow:
        0 0 8px rgba(255, 0, 0, 0.4),
        inset 0 0 10px rgba(255, 0, 0, 0.1) !important;
}

#albedoDatabase .information-panel .info-box small {
    color: #ff3333 !important;

    text-shadow:
        0 0 6px rgba(255, 0, 0, 0.9) !important;
}

#albedoDatabase .information-panel .info-box strong {
    color: #ffffff !important;

    text-shadow:
        0 0 5px rgba(255, 0, 0, 0.65) !important;
}

/* =========================================================
   ALIEN IMAGE — REMOVE GREEN GLOW
========================================================= */

#albedoDatabase #albedoAlienImage {
    filter:
        drop-shadow(0 0 8px rgba(255, 0, 0, 0.9))
        drop-shadow(0 0 18px rgba(255, 0, 0, 0.7))
        drop-shadow(0 0 32px rgba(255, 0, 0, 0.45)) !important;
}

/* ---------- ALIEN TRANSITION ---------- */

#albedoDatabase #albedoAlienImage.albedo-alien-transition {
    filter:
        brightness(1.8)
        drop-shadow(0 0 12px rgba(255, 0, 0, 1))
        drop-shadow(0 0 25px rgba(255, 0, 0, 0.8)) !important;
}

/* ---------- ALIEN GLOW ELEMENT ---------- */

#albedoDatabase .alien-glow {
    background:
        radial-gradient(
            circle,
            rgba(255, 0, 0, 0.65) 0%,
            rgba(255, 0, 0, 0.35) 30%,
            rgba(255, 0, 0, 0.12) 55%,
            transparent 75%
        ) !important;

    box-shadow:
        0 0 20px rgba(255, 0, 0, 0.65),
        0 0 45px rgba(255, 0, 0, 0.4),
        0 0 80px rgba(255, 0, 0, 0.2) !important;
}

/* ---------- ALIEN VISUAL NAME ---------- */

#albedoDatabase #albedoVisualName {
    color: #ffffff !important;

    text-shadow:
        0 0 5px #ff0000,
        0 0 10px #ff0000,
        0 0 20px rgba(255, 0, 0, 0.9) !important;
}
/* =========================================================
   ALBEDO — SPECIES / PLANET / POWERS / WEAKNESS RED BOXES
========================================================= */

#albedoDatabase .information-panel .info-box {
    background: rgba(20, 0, 0, 0.75) !important;

    border: 2px solid rgba(255, 0, 0, 0.75) !important;

    box-shadow:
        0 0 8px rgba(255, 0, 0, 0.45),
        0 0 18px rgba(255, 0, 0, 0.2),
        inset 0 0 12px rgba(255, 0, 0, 0.12) !important;
}

/* Remove any green glow from pseudo-elements */

#albedoDatabase .information-panel .info-box::before,
#albedoDatabase .information-panel .info-box::after {
    background: transparent !important;
    border-color: rgba(255, 0, 0, 0.7) !important;
    box-shadow: none !important;
}

/* Labels: SPECIES / HOME PLANET / POWERS / WEAKNESS */

#albedoDatabase .information-panel .info-box small {
    color: #ff3333 !important;

    text-shadow:
        0 0 5px #ff0000,
        0 0 10px rgba(255, 0, 0, 0.7) !important;
}

/* Actual information text */

#albedoDatabase .information-panel .info-box strong {
    color: #ffffff !important;

    text-shadow:
        0 0 4px rgba(255, 0, 0, 0.7),
        0 0 8px rgba(255, 0, 0, 0.35) !important;
}

/* Remove green text-shadow/filter inherited from generic info-box */

#albedoDatabase #albedoSpecies,
#albedoDatabase #albedoPlanet,
#albedoDatabase #albedoPowers,
#albedoDatabase #albedoWeakness {
    color: #ffffff !important;

    text-shadow:
        0 0 4px rgba(255, 0, 0, 0.65),
        0 0 8px rgba(255, 0, 0, 0.3) !important;

    filter: none !important;
}



/* =========================================================
ULTIMATE ALIEN DATABASE — FINAL LAYOUT
========================================================= */

#ultimateDatabase {
position: relative;
width: 100%;
height: 100vh;
min-height: 700px;
overflow: hidden;
background: #000;
color: #fff;
}

/* =========================================================
PLANET BACKGROUND
========================================================= */

#ultimateDatabase #ultimatePlanetBackground {
position: fixed;
inset: 0;
width: 100%;
height: 100%;

z-index: 0;

background-position: center center;
background-repeat: no-repeat;
background-size: cover;

pointer-events: none;


}

#ultimateDatabase #ultimatePlanetBackground::after {
content: "";

position: absolute;
inset: 0;

background:
    linear-gradient(
        90deg,
        rgba(0,0,0,0.78),
        rgba(0,0,0,0.18) 50%,
        rgba(0,0,0,0.72)
    );

}

/* =========================================================
BEN 10 LOGO
========================================================= */

#ultimateDatabase .top-bar {
position: fixed;

top: 20px;
left: 25px;

width: auto;
height: auto;

padding: 0;

z-index: 6000;

}

#ultimateDatabase .ben-logo {
width: 115px;
height: auto;
}

#ultimateDatabase .ben-logo img {
width: 120px;
height: 80px;


display: block;
object-fit: contain;

filter:
    drop-shadow(0 0 8px rgba(0,255,80,0.7));

}

/* =========================================================
EXIT BUTTON
========================================================= */

#ultimateDatabase #exitUltimateButton {
position: fixed;

top: 25px;
right: 30px;

z-index: 7000;

padding: 10px 18px;

background: rgba(0,0,0,0.85);

color: #00ff66;

border: 2px solid #00ff66;
border-radius: 8px;

font-size: 14px;
font-weight: 800;

letter-spacing: 1px;

cursor: pointer;

box-shadow:
    0 0 10px rgba(0,255,102,0.5),
    inset 0 0 8px rgba(0,255,102,0.08);

transition:
    transform 0.2s ease,
    background 0.2s ease,
    box-shadow 0.2s ease;

}

#ultimateDatabase #exitUltimateButton:hover {
transform: scale(1.08);

background:
    rgba(0,255,102,0.12);

box-shadow:
    0 0 15px rgba(0,255,102,0.7);

}

/* =========================================================
ALIEN DISPLAY
========================================================= */

#ultimateDatabase #ultimateAlienContainer {
position: fixed;

left: 36%;
top: 52%;

width: 58vw;
height: 76vh;

transform:
    translate(-50%, -50%);

display: flex;

align-items: center;
justify-content: center;

z-index: 100;

pointer-events: none;

}

/* =========================================================
ALIEN GLOW
========================================================= */

#ultimateDatabase
#ultimateAlienContainer
.alien-glow {

position: absolute;

width: 58%;
height: 65%;

border-radius: 50%;

background:
    radial-gradient(
        circle,
        rgba(0,255,102,0.34),
        rgba(0,255,102,0.12) 42%,
        transparent 72%
    );

filter: blur(28px);

animation:
    ultimateGlow 3s ease-in-out infinite;

z-index: 1;

}

@keyframes ultimateGlow {

0%,
100% {
    transform: scale(0.92);
    opacity: 0.55;
}

50% {
    transform: scale(1.08);
    opacity: 0.9;
}

}

/* =========================================================
ALIEN IMAGE
========================================================= */

#ultimateDatabase #ultimateAlienImage {

    position: absolute;

    left: 65%;
    top: 50%;

    width: 50vw;
    height: 80vh;

    transform:
        translate(-50%, -50%);

    display: flex;

    justify-content: center;
    align-items: center;

    z-index: 10;

    pointer-events: auto;
    cursor: pointer;

    max-width: 85%;
    max-height: 85%;

    object-fit: contain;

    filter:
        drop-shadow(0 0 10px rgba(0,255,102,0.8))
        drop-shadow(0 0 25px rgba(0,255,102,0.45));

    transition:
        transform 0.3s ease,
        opacity 0.3s ease;

}


/* =========================================================
   ULTIMATE TRANSFORMATION — HIGH INTENSITY ENERGY BLAST
   ========================================================= */

#ultimateDatabase #ultimateTransformEffect {
    position: fixed;
    left: 60%;
    top: 40%;

    width: 50vw;
    height: 80vh;

    transform: translate(-50%, -50%);

    pointer-events: none;
    z-index: 120;

    opacity: 0;
    overflow: visible;
}


/* =========================================================
   MAIN ENERGY CORE
   ========================================================= */

#ultimateDatabase #ultimateTransformEffect::before {

    content: "";

    position: absolute;

    left: 50%;
    top: 50%;

    width: 80px;
    height: 80px;

    transform:
        translate(-50%, -50%)
        scale(0.15);

    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            #ffffff 0%,
            #d8ffea 8%,
            #00ff66 25%,
            #00c853 45%,
            rgba(0,255,102,0.45) 65%,
            rgba(0,255,102,0) 100%
        );

    box-shadow:
        0 0 20px #ffffff,
        0 0 45px #00ff66,
        0 0 90px #00ff66,
        0 0 160px rgba(0,255,102,0.9);

    opacity: 0;
}


/* =========================================================
   ENERGY SHOCKWAVE
   ========================================================= */

#ultimateDatabase #ultimateTransformEffect .energy-shockwave {
    position: absolute;

    left: 50%;
    top: 50%;

    width: 70px;
    height: 70px;

    transform:
        translate(-50%, -50%)
        scale(0.2);

    border-radius: 50%;

    border:
        5px solid rgba(0,255,102,0.95);

    box-shadow:
        0 0 20px #00ff66,
        0 0 45px #00ff66,
        inset 0 0 25px rgba(0,255,102,0.8);

    opacity: 0;
}


/* =========================================================
   SECOND SHOCKWAVE
   ========================================================= */

#ultimateDatabase #ultimateTransformEffect .energy-shockwave-2 {
    position: absolute;

    left: 50%;
    top: 50%;

    width: 120px;
    height: 120px;

    transform:
        translate(-50%, -50%)
        scale(0.15);

    border-radius: 50%;

    border:
        2px solid rgba(210,255,230,0.9);

    box-shadow:
        0 0 25px rgba(0,255,102,0.8),
        inset 0 0 30px rgba(0,255,102,0.6);

    opacity: 0;
}


/* =========================================================
   ROTATING ENERGY RING
   ========================================================= */

#ultimateDatabase #ultimateTransformEffect .energy-ring-blast {
    position: absolute;

    left: 50%;
    top: 50%;

    width: 180px;
    height: 180px;

    transform:
        translate(-50%, -50%)
        scale(0.2)
        rotate(0deg);

    border-radius: 50%;

    border:
        5px solid transparent;

    border-top-color: #00ff66;
    border-right-color: #d8ffea;
    border-bottom-color: #00c853;

    box-shadow:
        0 0 18px #00ff66,
        0 0 45px rgba(0,255,102,0.7);

    opacity: 0;
}


/* =========================================================
   ENERGY PARTICLES
   ========================================================= */

#ultimateDatabase #ultimateTransformEffect .energy-particles {

    position: absolute;

    left: 50%;
    top: 50%;

    width: 20px;
    height: 20px;

    transform: translate(-50%, -50%);

    opacity: 0;
}


/* Individual particles */

#ultimateDatabase #ultimateTransformEffect .energy-particles span {

    position: absolute;

    left: 50%;
    top: 50%;

    width: 6px;
    height: 16px;

    border-radius: 50%;

    background:
        linear-gradient(
            to bottom,
            #ffffff,
            #8affbd,
            #00ff66
        );

    box-shadow:
        0 0 8px #00ff66,
        0 0 18px #00ff66;

    transform-origin: 50% 120px;

    opacity: 0;
}


/* =========================================================
   PARTICLE POSITIONS
   ========================================================= */

#ultimateDatabase #ultimateTransformEffect .energy-particles span:nth-child(1) {
    transform: rotate(0deg) translateY(-20px);
}

#ultimateDatabase #ultimateTransformEffect .energy-particles span:nth-child(2) {
    transform: rotate(45deg) translateY(-20px);
}

#ultimateDatabase #ultimateTransformEffect .energy-particles span:nth-child(3) {
    transform: rotate(90deg) translateY(-20px);
}

#ultimateDatabase #ultimateTransformEffect .energy-particles span:nth-child(4) {
    transform: rotate(135deg) translateY(-20px);
}

#ultimateDatabase #ultimateTransformEffect .energy-particles span:nth-child(5) {
    transform: rotate(180deg) translateY(-20px);
}

#ultimateDatabase #ultimateTransformEffect .energy-particles span:nth-child(6) {
    transform: rotate(225deg) translateY(-20px);
}

#ultimateDatabase #ultimateTransformEffect .energy-particles span:nth-child(7) {
    transform: rotate(270deg) translateY(-20px);
}

#ultimateDatabase #ultimateTransformEffect .energy-particles span:nth-child(8) {
    transform: rotate(315deg) translateY(-20px);
}


/* =========================================================
   TRANSFORMATION ACTIVE
   ========================================================= */

#ultimateDatabase #ultimateTransformEffect.active {
    animation: ultimateEffectContainer 0.95s ease-out forwards;
}


/* CORE */

#ultimateDatabase #ultimateTransformEffect.active::before {
    animation: ultimateEnergyCore 0.72s cubic-bezier(.15,.85,.2,1) forwards;
}


/* SHOCKWAVES */

#ultimateDatabase #ultimateTransformEffect.active .energy-shockwave {
    animation: ultimateShockwave 0.8s cubic-bezier(.15,.85,.2,1) forwards;
}

#ultimateDatabase #ultimateTransformEffect.active .energy-shockwave-2 {
    animation: ultimateShockwave2 0.95s ease-out forwards;
}


/* RING */

#ultimateDatabase #ultimateTransformEffect.active .energy-ring-blast {
    animation: ultimateEnergyRing 0.85s cubic-bezier(.15,.85,.2,1) forwards;
}


/* PARTICLES */

#ultimateDatabase #ultimateTransformEffect.active .energy-particles span:nth-child(1) {
    animation: ultimateParticle1 0.75s ease-out forwards;
}

#ultimateDatabase #ultimateTransformEffect.active .energy-particles span:nth-child(2) {
    animation: ultimateParticle2 0.75s ease-out forwards;
}

#ultimateDatabase #ultimateTransformEffect.active .energy-particles span:nth-child(3) {
    animation: ultimateParticle3 0.75s ease-out forwards;
}

#ultimateDatabase #ultimateTransformEffect.active .energy-particles span:nth-child(4) {
    animation: ultimateParticle4 0.75s ease-out forwards;
}

#ultimateDatabase #ultimateTransformEffect.active .energy-particles span:nth-child(5) {
    animation: ultimateParticle5 0.75s ease-out forwards;
}

#ultimateDatabase #ultimateTransformEffect.active .energy-particles span:nth-child(6) {
    animation: ultimateParticle6 0.75s ease-out forwards;
}

#ultimateDatabase #ultimateTransformEffect.active .energy-particles span:nth-child(7) {
    animation: ultimateParticle7 0.75s ease-out forwards;
}

#ultimateDatabase #ultimateTransformEffect.active .energy-particles span:nth-child(8) {
    animation: ultimateParticle8 0.75s ease-out forwards;
}


/* =========================================================
   CORE ANIMATION
   ========================================================= */

@keyframes ultimateEnergyCore {

    0% {
        opacity: 0;
        transform:
            translate(-50%, -50%)
            scale(0.1);
    }

    18% {
        opacity: 1;
        transform:
            translate(-50%, -50%)
            scale(1.5);
    }

    35% {
        transform:
            translate(-50%, -50%)
            scale(0.8);
    }

    55% {
        transform:
            translate(-50%, -50%)
            scale(3.5);
    }

    75% {
        opacity: 1;
        transform:
            translate(-50%, -50%)
            scale(7);
    }

    100% {
        opacity: 0;
        transform:
            translate(-50%, -50%)
            scale(12);
    }
}


/* =========================================================
   SHOCKWAVE
   ========================================================= */

@keyframes ultimateShockwave {

    0% {
        opacity: 0;
        transform:
            translate(-50%, -50%)
            scale(0.2);
    }

    20% {
        opacity: 1;
    }

    65% {
        opacity: 0.85;
    }

    100% {
        opacity: 0;
        transform:
            translate(-50%, -50%)
            scale(7);
    }
}


@keyframes ultimateShockwave2 {

    0% {
        opacity: 0;
        transform:
            translate(-50%, -50%)
            scale(0.15);
    }

    25% {
        opacity: 0.9;
    }

    100% {
        opacity: 0;
        transform:
            translate(-50%, -50%)
            scale(9);
    }
}


/* =========================================================
   ROTATING RING
   ========================================================= */

@keyframes ultimateEnergyRing {

    0% {
        opacity: 0;
        transform:
            translate(-50%, -50%)
            scale(0.2)
            rotate(0deg);
    }

    15% {
        opacity: 1;
    }

    55% {
        opacity: 1;
        transform:
            translate(-50%, -50%)
            scale(2.8)
            rotate(240deg);
    }

    100% {
        opacity: 0;
        transform:
            translate(-50%, -50%)
            scale(5.5)
            rotate(520deg);
    }
}


/* =========================================================
   PARTICLE BURST
   ========================================================= */

@keyframes ultimateParticle1 {
    0% { opacity: 0; transform: rotate(0deg) translateY(-20px); }
    20% { opacity: 1; }
    100% { opacity: 0; transform: rotate(0deg) translateY(-260px) scale(0.25); }
}

@keyframes ultimateParticle2 {
    0% { opacity: 0; transform: rotate(45deg) translateY(-20px); }
    20% { opacity: 1; }
    100% { opacity: 0; transform: rotate(45deg) translateY(-300px) scale(0.2); }
}

@keyframes ultimateParticle3 {
    0% { opacity: 0; transform: rotate(90deg) translateY(-20px); }
    20% { opacity: 1; }
    100% { opacity: 0; transform: rotate(90deg) translateY(-270px) scale(0.25); }
}

@keyframes ultimateParticle4 {
    0% { opacity: 0; transform: rotate(135deg) translateY(-20px); }
    20% { opacity: 1; }
    100% { opacity: 0; transform: rotate(135deg) translateY(-320px) scale(0.2); }
}

@keyframes ultimateParticle5 {
    0% { opacity: 0; transform: rotate(180deg) translateY(-20px); }
    20% { opacity: 1; }
    100% { opacity: 0; transform: rotate(180deg) translateY(-280px) scale(0.25); }
}

@keyframes ultimateParticle6 {
    0% { opacity: 0; transform: rotate(225deg) translateY(-20px); }
    20% { opacity: 1; }
    100% { opacity: 0; transform: rotate(225deg) translateY(-310px) scale(0.2); }
}

@keyframes ultimateParticle7 {
    0% { opacity: 0; transform: rotate(270deg) translateY(-20px); }
    20% { opacity: 1; }
    100% { opacity: 0; transform: rotate(270deg) translateY(-250px) scale(0.25); }
}

@keyframes ultimateParticle8 {
    0% { opacity: 0; transform: rotate(315deg) translateY(-20px); }
    20% { opacity: 1; }
    100% { opacity: 0; transform: rotate(315deg) translateY(-290px) scale(0.2); }
}


/* =========================================================
   CONTAINER FADE
   ========================================================= */

@keyframes ultimateEffectContainer {

    0% {
        opacity: 1;
    }

    78% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

/* =========================================================
INFORMATION PANEL
========================================================= */

#ultimateDatabase .ultimate-information-panel {

position: fixed;

top: 17%;
right: 5%;

width: 35%;
max-width: 520px;

max-height: 62vh;

padding: 24px 26px;

box-sizing: border-box;

overflow-y: auto;

z-index: 3000;

background:
    linear-gradient(
        145deg,
        rgba(0,0,0,0.90),
        rgba(0,20,10,0.78)
    );

border:
    1px solid rgba(0,255,102,0.6);

border-radius: 12px;

box-shadow:
    0 0 18px rgba(0,255,102,0.28),
    0 0 40px rgba(0,255,102,0.08),
    inset 0 0 20px rgba(0,255,102,0.04);

backdrop-filter: blur(8px);

}

#ultimateDatabase
.ultimate-information-panel::-webkit-scrollbar {
width: 5px;
}

#ultimateDatabase
.ultimate-information-panel::-webkit-scrollbar-track {
background: rgba(0,0,0,0.35);
}

#ultimateDatabase
.ultimate-information-panel::-webkit-scrollbar-thumb {
background: #00ff66;
border-radius: 10px;
}

/* =========================================================
DATABASE TITLE
========================================================= */

#ultimateDatabase
.ultimate-information-panel
.database-title {

color: #00ff66;

font-size: 12px;

font-weight: 900;

letter-spacing: 2px;

margin-bottom: 8px;

text-shadow:
    0 0 5px #00ff66,
    0 0 12px rgba(0,255,102,0.6);

}

/* =========================================================
ALIEN NAME
========================================================= */

#ultimateDatabase #ultimateAlienName {

margin:
    0 0 15px;

color: #fff;

font-size: 38px;

line-height: 1.05;

font-weight: 900;

text-transform: uppercase;

-webkit-text-stroke:
    1.5px #00ff66;

text-shadow:
    0 0 5px #00ff66,
    0 0 10px #00ff66,
    0 0 20px rgba(0,255,102,0.75);

}

/* =========================================================
DESCRIPTION
========================================================= */

#ultimateDatabase #ultimateDescription {

margin: 0 0 18px;

color: #d9e8dd;

font-size: 14px;

line-height: 1.55;

}

/* =========================================================
INFORMATION
========================================================= */

#ultimateDatabase
.ultimate-information-panel
.information {

display: grid;

grid-template-columns:
    repeat(2, 1fr);

gap: 10px;

}

/* =========================================================
INFORMATION BOX
========================================================= */

#ultimateDatabase
.ultimate-information-panel
.info-box {

min-width: 0;

padding: 12px 14px;

border:
    1px solid
    rgba(0,255,102,0.42);

border-left:
    3px solid #00ff66;

border-radius: 7px;

background:
    rgba(0,255,102,0.035);

box-sizing: border-box;

}

#ultimateDatabase
.ultimate-information-panel
.info-box h3 {

margin:
    0 0 5px;

color: #00ff66;

font-size: 10px;

font-weight: 900;

letter-spacing: 1.5px;

}

#ultimateDatabase
.ultimate-information-panel
.info-box small {

display: block;

margin-bottom: 5px;

color: #00ff66;

font-size: 9px;

font-weight: 900;

letter-spacing: 1.5px;

}

#ultimateDatabase
.ultimate-information-panel
.info-box p,
#ultimateDatabase
.ultimate-information-panel
.info-box strong {

display: block;

margin: 0;

color: rgba(255,255,255,0.94);

font-size: 13px;

line-height: 1.45;

}


/* =========================================================
ULTIMATE OMNITRIX SELECTOR
========================================================= */

#ultimateDatabase #ultimateSelector {
position: fixed;

left: 100px;
bottom: 50px;

width: 220px;
height: 220px;

z-index: 9999;

display: flex;

align-items: center;
justify-content: center;

}

/* =========================================================
ULTIMATE OMNITRIX BUTTON
========================================================= */

#ultimateDatabase
#ultimateOmnitrixNavigationButton {

position: relative;

width: 200px;
height: 200px;

display: flex;

align-items: center;
justify-content: center;

padding: 0;
margin: 0;

border: none;
outline: none;

background: transparent;

cursor: pointer;

z-index: 10000;

}

#ultimateDatabase
#ultimateOmnitrixNavigationButton img {

width: 200px;
height: 200px;

display: block;

object-fit: contain;

filter:
    drop-shadow(
        0 0 10px
        rgba(0,255,102,0.85)
    )
    drop-shadow(
        0 0 25px
        rgba(0,255,102,0.55)
    );

transition:
    transform 0.25s ease;

}

#ultimateDatabase
#ultimateOmnitrixNavigationButton:hover img {
transform: scale(1.08);
}

#ultimateDatabase
#ultimateOmnitrixNavigationButton:active img {
transform: scale(0.95);
}

/* =========================================================
ULTIMATE NAVIGATION GRID
========================================================= */

#ultimateDatabase #ultimateNavigationGrid {

position: absolute;

left: -60px;
bottom: 230px;

width: 520px;
height: 300px;

display: grid;

grid-template-columns:
    repeat(8, 1fr);

grid-template-rows:
    repeat(6, 1fr);

gap: 7px;

padding: 8px;

box-sizing: border-box;

overflow: hidden;

z-index: 9998;

opacity: 0;
visibility: hidden;

pointer-events: none;

transform:
    translateY(15px);

transition:
    opacity 0.25s ease,
    transform 0.25s ease,
    visibility 0.25s ease;

}

#ultimateDatabase
#ultimateNavigationGrid.open {

opacity: 1;

visibility: visible;

pointer-events: auto;

transform:
    translateY(0);

}

/* =========================================================
ULTIMATE NAVIGATION ITEMS
========================================================= */

#ultimateDatabase
.ultimate-alien-silhouette {

width: 100%;
height: 43px;

min-width: 0;

padding: 3px;
margin: 0;

display: flex;

align-items: center;
justify-content: center;

border:
    2px solid
    rgba(0,255,102,0.55);

border-radius: 8px;

background:
    rgba(0,0,0,0.82);

box-sizing: border-box;

cursor: pointer;

overflow: hidden;

transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;

}

#ultimateDatabase
.ultimate-alien-silhouette img {

width: 34px;
height: 34px;

object-fit: contain;

display: block;

filter:
    brightness(0)
    saturate(100%)
    invert(72%)
    sepia(98%)
    saturate(1800%)
    hue-rotate(75deg)
    brightness(125%)
    contrast(115%);

}

#ultimateDatabase
.ultimate-alien-silhouette:hover {

transform:
    scale(1.08);

border-color:
    #00ff66;

box-shadow:
    0 0 8px
    rgba(0,255,102,0.75);

}

#ultimateDatabase
.ultimate-alien-silhouette:hover img {

transform:
    scale(1.08);

}

#ultimateDatabase
.ultimate-alien-silhouette.selected {


border-color:
    #ffffff;

box-shadow:
    0 0 8px
    rgba(0,255,102,0.8),
    0 0 16px
    rgba(0,255,102,0.45);


}

#ultimateDatabase
.ultimate-alien-silhouette span {
display: none;
}

/* =========================================================
ULTIMATRIX ENERGY
========================================================= */

#ultimateDatabase .ultimate-energy {


position: fixed;

right: 35px;
bottom: 30px;

z-index: 5000;

text-align: center;

}

#ultimateDatabase
.ultimate-energy .energy-core {

width: 95px;
height: 95px;

position: relative;

display: flex;

align-items: center;
justify-content: center;

border-radius: 50%;

background:
    rgba(0,0,0,0.9);

border:
    3px solid
    rgba(0,255,102,0.75);

box-shadow:
    0 0 12px rgba(0,255,102,0.55),
    inset 0 0 18px rgba(0,255,102,0.08);

}

#ultimateDatabase
.ultimate-energy .energy-ring {
position: absolute;

inset: 7px;

border-radius: 50%;

border:
    2px solid
    rgba(0,255,102,0.25);

}

#ultimateDatabase #ultimateBatteryLevel {

position: absolute;

left: 10px;
right: 10px;

bottom: 10px;

height: calc(100% - 20px);

border-radius: 50%;

background:
    #00ff66;

opacity: 0.75;

transition:
    height 0.3s ease,
    background 0.3s ease;

}

#ultimateDatabase #ultimateBatteryPercent {

position: relative;

z-index: 10;

color: #fff;

font-size: 18px;

font-weight: 900;

text-shadow:
    0 0 5px #000,
    0 0 10px #00ff66;

}

#ultimateDatabase
.ultimate-energy .energy-label {

margin-top: 7px;

color: #00ff66;

font-size: 9px;

font-weight: 900;

letter-spacing: 1px;

text-align: center;

}

/* =========================================================
PREVIOUS / NEXT
========================================================= */

#ultimateDatabase .navigation {

position: fixed;

left: 50%;
bottom: 35px;

transform:
    translateX(-50%);

display: flex;

align-items: center;

gap: 25px;

z-index: 5000;

}

#ultimateDatabase
.navigation .logo-nav {

width: 60px;
height: 60px;

padding: 0;

border: none;
outline: none;

background: transparent;

cursor: pointer;

transition:
    transform 0.2s ease;

}

#ultimateDatabase
.navigation .logo-nav img {

width: 100%;
height: 100%;

object-fit: contain;

filter:
    drop-shadow(
        0 0 7px
        rgba(0,255,102,0.75)
    )
    drop-shadow(
        0 0 15px
        rgba(0,255,102,0.35)
    );

}

#ultimateDatabase
.navigation .logo-nav:hover {

transform:
    scale(1.12);

}

#ultimateDatabase
#ultimatePrevious img {

transform:
    rotate(180deg);


}

/* =========================================================
MOBILE
========================================================= */

@media (max-width: 900px) {

#ultimateDatabase .ben-logo,
#ultimateDatabase .ben-logo img {
    width: 100px;
}


#ultimateDatabase
#ultimateAlienContainer {

    left: 50%;
    top: 42%;

    width: 82vw;
    height: 50vh;
}


#ultimateDatabase
#ultimateAlienImage {

    width: 76vw;
    height: 48vh;
}


#ultimateDatabase
.ultimate-information-panel {

    top: auto;

    left: 15px;
    right: 15px;

    bottom: 145px;

    width: auto;

    max-width: none;

    max-height: 30vh;
}


#ultimateDatabase
#ultimateSelector {

    left: 10px;
    bottom: 20px;
}


#ultimateDatabase
.ultimate-energy {

    right: 10px;
    bottom: 20px;
}


#ultimateDatabase
.navigation {

    bottom: 20px;
}


}


/* ========================================
   OMNIVERSE OMNITRIX DATABASE
======================================== */


/* ========================================
   FIXED OMNIVERSE BACKGROUND
======================================== */

#omniverseDatabase .omniverse-background {

    position: absolute;

    inset: 0;

    background-image:
        url("Omniverse/background.png");

    background-size: cover;

    background-position: center;

    background-repeat: no-repeat;

    z-index: 0;

}


/* DARK GREEN OVERLAY */

#omniverseDatabase .omniverse-background::after {

    content: "";

    position: absolute;

    inset: 0;

    background:
        linear-gradient(
            90deg,
            rgba(0,0,0,0.88),
            rgba(0,20,5,0.25),
            rgba(0,0,0,0.65)
        );

}


/* ========================================
   OMNIVERSE ALIEN DISPLAY
======================================== */

#omniverseDatabase .alien-container {

    z-index: 5;

}


#omniverseDatabase .alien-container img {

    filter:
        drop-shadow(
            0 0 25px
            rgba(0,255,80,0.85)
        )
        drop-shadow(
            0 0 45px
            rgba(0,255,80,0.35)
        );

    transition:
        transform 0.5s ease,
        opacity 0.4s ease;

}


/* ========================================
   OMNIVERSE ALIEN GLOW
======================================== */

#omniverseDatabase .alien-glow {

    background:
        radial-gradient(
            circle,
            rgba(0,255,70,0.35),
            transparent 65%
        );

}



/* ========================================
   OMNIVERSE INFORMATION PANEL
======================================== */

#omniverseDatabase .information-panel {

    background:
        rgba(0,10,3,0.78);

    border:
        1px solid
        rgba(0,255,100,0.5);

    box-shadow:

        0 0 30px
        rgba(0,255,70,0.15);

}


/* DATABASE TITLE */

#omniverseDatabase .database-title {

    color: #6cff35;

}


/* ALIEN NAME */

#omniverseDatabase #omniverseAlienName {

    color: white;

    -webkit-text-stroke:
        1.5px #00ff66;

    text-shadow:

        0 0 4px #00ff66,

        0 0 8px #00ff66,

        0 0 15px
        rgba(0,255,100,0.9);

}


/* ========================================
   OMNIVERSE INFO BOXES
======================================== */

#omniverseDatabase .info-box {

    border-left:
        3px solid #65ff00;

    background:
        rgba(0,255,80,0.05);

}


#omniverseDatabase .info-box small {

    color: #6cff35;

}


/* ========================================
   OMNIVERSE STATS
======================================== */

#omniverseDatabase .stats-panel {

    z-index: 15;

}


/* OMNIVERSE STAT BARS */

#omniverseDatabase .stats-panel .stat-bar > div {

    background:
        linear-gradient(
            90deg,
            #00ff55,
            #39ff14,
            #8cff66
        );

    box-shadow:

        0 0 6px
        rgba(0,255,80,0.9),

        0 0 14px
        rgba(0,255,80,0.7),

        0 0 22px
        rgba(0,255,80,0.4);

}


/* ========================================
   OMNIVERSE OMNITRIX SELECTOR
======================================== */

#omniverseSelector {

    position: fixed;

    left: 150px;

    bottom: 80px;

    width: 220px;

    height: 220px;

    z-index: 9999;

    display: flex;

    align-items: center;

    justify-content: center;

    visibility: visible;

    opacity: 1;

}


/* ========================================
   OMNIVERSE OMNITRIX BUTTON
======================================== */

#omniverseOmnitrixButton {

    position: relative;

    width: 200px;

    height: 200px;

    display: flex;

    align-items: center;

    justify-content: center;

    padding: 0;

    margin: 0;

    border: none;

    outline: none;

    background: transparent;

    cursor: pointer;

    z-index: 10000;

}


/* ========================================
   OMNIVERSE OMNITRIX IMAGE
======================================== */

#omniverseOmnitrixButton img {

    width: 200px;

    height: 200px;

    display: block;

    object-fit: contain;

    filter:

        drop-shadow(
            0 0 10px
            rgba(0,255,100,0.85)
        )

        drop-shadow(
            0 0 25px
            rgba(0,255,100,0.65)
        );

    transition:
        transform 0.25s ease;

}


/* ========================================
   OMNITRIX HOVER
======================================== */

#omniverseOmnitrixButton:hover img {

    transform:
        scale(1.08);

}


/* ========================================
   OMNITRIX CLICK
======================================== */

#omniverseOmnitrixButton:active img {

    transform:
        scale(0.95);

}


/* ========================================
   OMNIVERSE NAVIGATION GRID
======================================== */

#omniverseNavigationGrid {

    position: absolute;

    left: -120px;

    bottom: 230px;

    width: 700px;

    height: 390px;

    display: grid;

    grid-template-columns:
        repeat(9, 1fr);

    grid-template-rows:
        repeat(7, 1fr);

    gap: 7px;

    padding: 8px;

    box-sizing: border-box;

    overflow: visible;

    z-index: 9998;

}


/* ========================================
   OMNIVERSE GRID ITEM
======================================== */

.omniverse-navigation-item {

    width: 100%;

    height: 45px;

    min-width: 0;

    padding: 3px;

    margin: 0;

    display: flex;

    align-items: center;

    justify-content: center;

    border:
        2px solid
        rgba(0,255,100,0.55);

    border-radius: 8px;

    background:
        rgba(0,0,0,0.78);

    box-shadow:

        inset 0 0 8px
        rgba(0,255,100,0.08);

    box-sizing: border-box;

    cursor: pointer;

    overflow: hidden;

    transition:

        transform 0.2s ease,

        border-color 0.2s ease,

        box-shadow 0.2s ease;

}


/* ========================================
   OMNIVERSE GRID ALIEN IMAGE
======================================== */

.omniverse-navigation-item img {

    width: 34px;

    height: 34px;

    max-width: 100%;

    max-height: 100%;

    object-fit: contain;

    display: block;

    filter:

        brightness(0)

        saturate(100%)

        invert(72%)

        sepia(98%)

        saturate(1800%)

        hue-rotate(75deg)

        brightness(125%)

        contrast(115%);

    opacity: 1;

    transition:

        transform 0.2s ease,

        filter 0.2s ease;

}


/* ========================================
   GRID HOVER IMAGE
======================================== */

.omniverse-navigation-item:hover img {

    transform:
        scale(1.12);

    filter:

        brightness(0)

        saturate(100%)

        invert(72%)

        sepia(98%)

        saturate(2200%)

        hue-rotate(75deg)

        brightness(145%)

        contrast(120%);

}


/* ========================================
   GRID HOVER
======================================== */

.omniverse-navigation-item:hover {

    transform:
        scale(1.08);

    border-color:
        rgba(0,255,100,1);

    box-shadow:

        0 0 10px
        rgba(0,255,100,0.5),

        inset 0 0 10px
        rgba(0,255,100,0.12);

}


/* ========================================
   HIDE ALIEN NAMES
======================================== */

.omniverse-navigation-item span {

    display: none;

}


/* ========================================
   GRID OPEN / CLOSE
======================================== */

#omniverseNavigationGrid {

    opacity: 0;

    visibility: hidden;

    pointer-events: none;

    transform:
        translateY(15px);

    transition:

        opacity 0.25s ease,

        transform 0.25s ease,

        visibility 0.25s ease;

}


#omniverseNavigationGrid.open {

    opacity: 1;

    visibility: visible;

    pointer-events: auto;

    transform:
        translateY(0);

}


/* ========================================
   OMNIVERSE GRID ALIEN IMAGE
======================================== */

.omniverse-navigation-item img {

    width: 34px;

    height: 34px;

    max-width: 100%;

    max-height: 100%;

    object-fit: contain;

    display: block;

    filter:

        brightness(0)

        saturate(100%)

        invert(72%)

        sepia(98%)

        saturate(1800%)

        hue-rotate(75deg)

        brightness(125%)

        contrast(115%);

    opacity: 1;

    transition:

        transform 0.2s ease,

        filter 0.2s ease;

}


/* ========================================
   OMNIVERSE GRID HOVER IMAGE
======================================== */

.omniverse-navigation-item:hover img {

    transform:
        scale(1.12);

    filter:

        brightness(0)

        saturate(100%)

        invert(72%)

        sepia(98%)

        saturate(2200%)

        hue-rotate(75deg)

        brightness(145%)

        contrast(120%);

}


/* ========================================
   OMNIVERSE GRID HOVER
======================================== */

.omniverse-navigation-item:hover {

    transform:
        scale(1.08);

    border-color:
        rgba(0,255,100,1);

    box-shadow:

        0 0 10px
        rgba(0,255,100,0.5),

        inset 0 0 10px
        rgba(0,255,100,0.12);

}


/* ========================================
   HIDE ALIEN NAMES IN GRID
======================================== */

.omniverse-navigation-item span {

    display: none;

}


/* ========================================
   OMNIVERSE GRID OPEN / CLOSE
======================================== */

#omniverseNavigationGrid {

    opacity: 0;

    visibility: hidden;

    pointer-events: none;

    transform:
        translateY(15px);

    transition:

        opacity 0.25s ease,

        transform 0.25s ease,

        visibility 0.25s ease;

}


#omniverseNavigationGrid.open {

    opacity: 1;

    visibility: visible;

    pointer-events: auto;

    transform:
        translateY(0);

}


/* ========================================
   OMNIVERSE BATTERY
======================================== */

#omniverseDatabase .omniverse-energy {

    z-index: 25;

}


/* GREEN BATTERY */

#omniverseDatabase
.energy-fill {

    background:
        #39ff14;

    box-shadow:

        0 0 10px
        rgba(57,255,20,0.8);

}


/* ========================================
   OMNIVERSE MOBILE
======================================== */

@media(max-width:800px) {

    #omniverseSelector {

        left: 30px;

        bottom: 100px;

        width: 220px;

        height: 220px;

    }


    #omniverseOmnitrixButton {

        width: 200px;

        height: 200px;

    }


    #omniverseOmnitrixButton img {

        width: 200px;

        height: 200px;

    }


    #omniverseNavigationGrid {

        left: -60px;

        bottom: 230px;

        width: 520px;

        height: 220px;

    }

}


/* ========================================
   BEN 10 REBOOT OMNITRIX DATABASE
======================================== */


/* ========================================
   REBOOT PLANET BACKGROUND
======================================== */

#rebootDatabase .reboot-planet-background {

    position: absolute;

    inset: 0;

    background-size: cover;

    background-position: center;

    background-repeat: no-repeat;

    z-index: 0;

}


/* DARK GREEN OVERLAY */

#rebootDatabase .reboot-planet-background::after {

    content: "";

    position: absolute;

    inset: 0;

    background:
        linear-gradient(
            90deg,
            rgba(0,0,0,0.88),
            rgba(0,20,5,0.25),
            rgba(0,0,0,0.65)
        );

}


/* ========================================
   REBOOT ALIEN DISPLAY
   SAME LAYOUT AS OMNIVERSE
======================================== */

#rebootDatabase .alien-container {

    z-index: 5;

}


#rebootDatabase .alien-container img {

    filter:
        drop-shadow(
            0 0 25px
            rgba(0,255,80,0.85)
        )
        drop-shadow(
            0 0 45px
            rgba(0,255,80,0.35)
        );

    transition:
        transform 0.5s ease,
        opacity 0.4s ease;

}


/* ========================================
   REBOOT ALIEN GLOW
======================================== */

#rebootDatabase .alien-glow {

    background:
        radial-gradient(
            circle,
            rgba(0,255,70,0.35),
            transparent 65%
        );

}


/* ========================================
   REBOOT INFORMATION PANEL
   SAME LAYOUT AS OMNIVERSE
======================================== */

#rebootDatabase .information-panel {

    background:
        rgba(0,10,3,0.78);

    border:
        1px solid
        rgba(0,255,100,0.5);

    box-shadow:

        0 0 30px
        rgba(0,255,70,0.15);

}


/* DATABASE TITLE */

#rebootDatabase .database-title {

    color: #6cff35;

}


/* ========================================
   REBOOT ALIEN NAME
======================================== */

#rebootDatabase #rebootAlienName {

    color: white;

    -webkit-text-stroke:
        1.5px #00ff66;

    text-shadow:

        0 0 4px #00ff66,

        0 0 8px #00ff66,

        0 0 15px
        rgba(0,255,100,0.9);

}


/* ========================================
   REBOOT INFO BOXES
======================================== */

#rebootDatabase .info-box {

    border-left:
        3px solid #65ff00;

    background:
        rgba(0,255,80,0.05);

}


#rebootDatabase .info-box small {

    color: #6cff35;

}


/* ========================================
   REBOOT STATS
   SAME LAYOUT AS OMNIVERSE
======================================== */

#rebootDatabase .stats-panel {

    z-index: 15;

}


#rebootDatabase .stats-panel .stat-bar > div {

    background:
        linear-gradient(
            90deg,
            #00ff55,
            #39ff14,
            #8cff66
        );

    box-shadow:

        0 0 6px
        rgba(0,255,80,0.9),

        0 0 14px
        rgba(0,255,80,0.7),

        0 0 22px
        rgba(0,255,80,0.4);

}


/* ========================================
   REBOOT OMNITRIX SELECTOR
   SAME POSITION/SIZE AS OMNIVERSE
======================================== */

#rebootSelector {

    position: fixed;

    left: 100px;

    bottom: 200px;

    width: 220px;

    height: 220px;

    z-index: 9999;

    display: flex;

    align-items: center;

    justify-content: center;

    visibility: visible;

    opacity: 1;

}


/* ========================================
   REBOOT OMNITRIX BUTTON
======================================== */

#rebootOmnitrixButton {

    position: relative;

    width: 200px;

    height: 200px;

    display: flex;

    align-items: center;

    justify-content: center;

    padding: 0;

    margin: 0;

    border: none;

    outline: none;

    background: transparent;

    cursor: pointer;

    z-index: 10000;

}


/* ========================================
   REBOOT OMNITRIX IMAGE
======================================== */

#rebootOmnitrixButton img {

    width: 200px;

    height: 200px;

    display: block;

    object-fit: contain;

    filter:

        drop-shadow(
            0 0 10px
            rgba(0,255,100,0.85)
        )

        drop-shadow(
            0 0 25px
            rgba(0,255,100,0.65)
        );

    transition:
        transform 0.25s ease;

}


/* ========================================
   OMNITRIX HOVER
======================================== */

#rebootOmnitrixButton:hover img {

    transform:
        scale(1.08);

}


/* ========================================
   OMNITRIX CLICK
======================================== */

#rebootOmnitrixButton:active img {

    transform:
        scale(0.95);

}


/* ========================================
   REBOOT RADIAL WHEEL
======================================== */

#rebootAlienWheel {

    position: absolute;

    left: 110px;

    top: 110px;

    width: 0;

    height: 0;

    z-index: 9998;

    overflow: visible;

    opacity: 0;

    visibility: hidden;

    pointer-events: none;

    transform:
        scale(0.85);

    transition:

        opacity 0.25s ease,

        transform 0.25s ease,

        visibility 0.25s ease;

}


/* ========================================
   RADIAL WHEEL OPEN
======================================== */

#rebootAlienWheel.open {

    opacity: 1;

    visibility: visible;

    pointer-events: auto;

    transform:
        scale(1);

}


/* ========================================
   REBOOT RADIAL ALIEN ITEM
======================================== */

.reboot-alien-wheel-item {

    position: absolute;

    width: 60px;

    height: 60px;

    padding: 4px;

    margin: 0;

    display: flex;

    align-items: center;

    justify-content: center;

    border:
        3px solid #000;

    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            #5cff80 0%,
            #00c83f 60%,
            #006d24 100%
        );

    box-shadow:

        0 0 8px
        rgba(0,255,100,0.65);

    box-sizing: border-box;

    cursor: pointer;

    opacity: 0;

    transform:
        scale(0.2);

    pointer-events: none;

    transition:

        opacity 0.25s ease,

        transform 0.25s ease,

        box-shadow 0.2s ease;

}


/* ========================================
   RADIAL ITEMS WHEN OPEN
======================================== */

#rebootAlienWheel.open
.reboot-alien-wheel-item {

    opacity: 1;

    transform:
        scale(1);

    pointer-events: auto;

}


/* ========================================
   REBOOT RADIAL ALIEN IMAGE
======================================== */

.reboot-alien-wheel-item img {

    width: 46px;

    height: 46px;

    max-width: 100%;

    max-height: 100%;

    object-fit: contain;

    display: block;

    filter:
        brightness(0);

}


/* ========================================
   RADIAL ITEM HOVER
======================================== */

.reboot-alien-wheel-item:hover {

    transform:
        scale(1.15);

    border-color:
        #00ff66;

    box-shadow:

        0 0 10px
        rgba(0,255,100,0.9),

        0 0 20px
        rgba(0,255,100,0.45);

}


/* ========================================
   RADIAL ITEM ACTIVE
======================================== */

.reboot-alien-wheel-item:active {

    transform:
        scale(0.95);

}


/* ========================================
   REBOOT BATTERY
   SAME POSITION AS OMNIVERSE
======================================== */

#rebootDatabase .reboot-energy {

    z-index: 25;

}


/* GREEN BATTERY */

#rebootDatabase .reboot-energy .energy-fill {

    background:
        #39ff14;

    box-shadow:

        0 0 10px
        rgba(57,255,20,0.8);

}


/* ========================================
   REBOOT BATTERY RING
======================================== */

#rebootDatabase .reboot-energy .energy-ring {

    border-color:
        rgba(0,255,100,0.8);

    box-shadow:

        inset 0 0 12px
        rgba(0,255,100,0.6),

        0 0 12px
        rgba(0,255,100,0.45);

}


/* ========================================
   REBOOT BATTERY TEXT
======================================== */

#rebootDatabase #rebootBatteryPercent {

    color:
        #000;

}


/* ========================================
   REBOOT BATTERY LABEL
======================================== */

#rebootDatabase .reboot-energy .energy-label {

    color:
        #6cff35;

}


/* ========================================
   REBOOT PREVIOUS / NEXT
   SAME LAYOUT AS OMNIVERSE
======================================== */

#rebootDatabase .navigation {

    z-index: 25;

}


/* GREEN NAVIGATION GLOW */

#rebootDatabase .navigation button img {

    filter:

        drop-shadow(
            0 0 7px
            rgba(0,255,80,0.65)
        );

    transition:
        transform 0.2s ease,
        filter 0.2s ease;

}


#rebootDatabase .navigation button:hover img {

    filter:

        drop-shadow(
            0 0 15px
            rgba(0,255,80,1)
        );

}


/* ========================================
   REBOOT EXIT BUTTON
======================================== */

#rebootDatabase #exitRebootButton {

    z-index: 30;

}


/* ========================================
   REBOOT BEN 10 LOGO
======================================== */

#rebootDatabase .ben-logo img {

    filter:

        drop-shadow(
            0 0 8px
            rgba(0,255,70,0.8)
        );

    transition:
        transform 0.25s ease,
        filter 0.25s ease;

}


#rebootDatabase .ben-logo img:hover {

    transform:
        scale(1.08);

    filter:

        drop-shadow(
            0 0 15px
            rgba(0,255,70,1)
        );

}


/* ========================================
   REBOOT MOBILE
======================================== */

@media(max-width:800px) {

    #rebootSelector {

        left: 30px;

        bottom: 100px;

        width: 220px;

        height: 220px;

    }


    #rebootOmnitrixButton {

        width: 200px;

        height: 200px;

    }


    #rebootOmnitrixButton img {

        width: 200px;

        height: 200px;

    }


    #rebootAlienWheel {

        left: 110px;

        top: 110px;

    }

}

/* ========================================
   REBOOT RADIAL HOVER FIX
======================================== */

#rebootAlienWheel .reboot-alien-wheel-item:hover {
    transform: scale(1.15) !important;
    border-color: #00ff66 !important;

    box-shadow:
        0 0 10px rgba(0,255,100,0.9),
        0 0 20px rgba(0,255,100,0.45) !important;
}

#rebootAlienWheel .reboot-alien-wheel-item:hover img {
    transform: scale(1.12);
}



/* ========================================
   MAIN HUB
======================================== */

.main-hub {
    min-height: 100vh;
    width: 100%;
    display: none;
    align-items: center;
    justify-content: center;
    background:
        radial-gradient(circle at center,
            rgba(0, 255, 80, 0.12) 0%,
            rgba(0, 0, 0, 0.95) 45%,
            #000000 100%);
    color: #ffffff;
}

.main-hub.active {
    display: flex;
}

.main-hub-container {
    width: 90%;
    max-width: 1100px;
    text-align: center;
}

.main-hub-container h1 {
    margin-bottom: 50px;
    font-size: 42px;
    color: #00ff66;
    text-shadow:
        0 0 10px rgba(0, 255, 100, 0.8),
        0 0 25px rgba(0, 255, 100, 0.4);
}

/* ========================================
   MAIN HUB RADIAL AREA
======================================== */

.main-hub-options {

    position: relative;

    width: 600px;
    height: 600px;

    margin: 0 auto;

}


/* ========================================
   CENTER OMNITRIX IMAGE
======================================== */

.main-hub-center-omnitrix {

    position: absolute;

    width: 250px;
    height: 250px;

    top: 48%;
    left: 50%;

    transform: translate(-50%, -50%);

    object-fit: contain;

    z-index: 5;

    pointer-events: none;

    filter:
        drop-shadow(0 0 10px rgba(0, 255, 100, 0.8))
        drop-shadow(0 0 30px rgba(0, 255, 100, 0.5));
}


/* ========================================
   RADIAL BUTTONS
======================================== */

.main-hub-option {

    position: absolute;

    width: 145px;
    height: 145px;

    padding: 0;

    border: none;
    outline: none;

    background: transparent;

    cursor: pointer;

    display: flex;
    align-items: center;
    justify-content: center;

    z-index: 10;

    transition:
        transform 0.3s ease,
        filter 0.3s ease;
}


/* ========================================
   BUTTON IMAGES
======================================== */

.main-hub-option img {

    width: 100%;
    height: 100%;

    object-fit: contain;

    display: block;

    transition:
        transform 0.3s ease,
        filter 0.3s ease;
}


/* ========================================
   1 — OMNITRIX DATABASE
   TOP
======================================== */

#mainHubOmnitrixButton {

    top: 0;
    left: 50%;

    transform: translateX(-50%);
}

#mainHubOmnitrixButton:hover {

    transform:
        translateX(-50%)
        scale(1.12);

    filter:
        drop-shadow(0 0 15px rgba(0, 255, 100, 1));
}


/* ========================================
   2 — CHARACTERS DATABASE
   TOP RIGHT
======================================== */

#mainHubCharactersButton {

    top: 55px;
    right: 80px;
}

#mainHubCharactersButton:hover {

    transform: scale(1.12);

    filter:
        drop-shadow(0 0 15px rgba(0, 255, 100, 1));
}


/* ========================================
   3 — LOCATION DATABASE
   RIGHT
======================================== */

#mainHubLocationButton {

    top: 50%;
    right: 0;

    transform: translateY(-50%);
}

#mainHubLocationButton:hover {

    transform:
        translateY(-50%)
        scale(1.12);

    filter:
        drop-shadow(0 0 15px rgba(0, 255, 100, 1));
}


/* ========================================
   4 — THINGS DATABASE
   BOTTOM RIGHT
======================================== */

#mainHubThingsButton {

    bottom: 55px;
    right: 80px;
}

#mainHubThingsButton:hover {

    transform: scale(1.12);

    filter:
        drop-shadow(0 0 15px rgba(0, 255, 100, 1));
}


/* ========================================
   5 — GAMES
   BOTTOM
======================================== */

#mainHubGamesButton {

    bottom: 0;
    left: 50%;

    transform: translateX(-50%);
}

#mainHubGamesButton:hover {

    transform:
        translateX(-50%)
        scale(1.12);

    filter:
        drop-shadow(0 0 15px rgba(0, 255, 100, 1));
}


/* ========================================
   6 — TUTORIALS
   BOTTOM LEFT
======================================== */

#mainHubTutorialsButton {

    bottom: 55px;
    left: 80px;
}

#mainHubTutorialsButton:hover {

    transform: scale(1.12);

    filter:
        drop-shadow(0 0 15px rgba(0, 255, 100, 1));
}


/* ========================================
   VIDEOS
   LEFT
======================================== */

#mainHubVideosButton {

    top: 50%;
    left: 0;

    transform: translateY(-50%);
}

#mainHubVideosButton:hover {

    transform:
        translateY(-50%)
        scale(1.12);

    filter:
        drop-shadow(0 0 15px rgba(0, 255, 100, 1));
}


/* ========================================
SETTINGS
   TOP LEFT
======================================== */

#mainHubSettingsButton {

    top: 55px;
    left: 80px;
}

#mainHubSettingsButton:hover {

    transform: scale(1.12);

    filter:
        drop-shadow(0 0 15px rgba(0, 255, 100, 1));
}


/* ========================================
   CLICK EFFECT
======================================== */

.main-hub-option:active {

    filter:
        brightness(1.3)
        drop-shadow(0 0 20px rgba(0, 255, 100, 1));
}

/* ========================================
   MAIN HUB ANIMATION SEQUENCE
======================================== */

/* ----------------------------------------
   CENTER OMNITRIX
   Animates first
---------------------------------------- */

.main-hub.active .main-hub-center-omnitrix {

    animation:
        centerOmnitrixAppear 1.2s ease-out both,
        centerOmnitrixGlow 2.5s ease-in-out 1.2s infinite;
}


/* ========================================
   CENTER OMNITRIX APPEAR
======================================== */

@keyframes centerOmnitrixAppear {

    0% {

        opacity: 0;

        transform:
            translate(-50%, -50%)
            scale(0.2);

        filter:
            brightness(3)
            drop-shadow(0 0 45px rgba(0, 255, 100, 1));
    }

    60% {

        opacity: 1;

        transform:
            translate(-50%, -50%)
            scale(1.1);

        filter:
            brightness(1.5)
            drop-shadow(0 0 30px rgba(0, 255, 100, 1));
    }

    100% {

        opacity: 1;

        transform:
            translate(-50%, -50%)
            scale(1);

    }
}


/* ========================================
   CENTER OMNITRIX CONTINUOUS GLOW
======================================== */

@keyframes centerOmnitrixGlow {

    0% {

        filter:
            drop-shadow(0 0 10px rgba(0, 255, 100, 0.5))
            drop-shadow(0 0 25px rgba(0, 255, 100, 0.3));
    }

    50% {

        filter:
            drop-shadow(0 0 22px rgba(0, 255, 100, 1))
            drop-shadow(0 0 45px rgba(0, 255, 100, 0.7));
    }

    100% {

        filter:
            drop-shadow(0 0 10px rgba(0, 255, 100, 0.5))
            drop-shadow(0 0 25px rgba(0, 255, 100, 0.3));
    }
}


/* ========================================
   RADIAL BUTTONS
   WAIT FOR CENTER IMAGE
======================================== */

.main-hub.active .main-hub-option {

    opacity: 0;

    animation:
        mainHubButtonAppear 0.7s ease-out forwards;
}


/* ========================================
   BUTTON TIMING
   ========================================

   Center animation:
   0.0s → 1.2s

   Buttons start:
   1.8s

   Then appear one by one
======================================== */


/* OMNITRIX DATABASE */

.main-hub.active #mainHubOmnitrixButton {
    animation-delay: 1.8s;
}


/* CHARACTERS */

.main-hub.active #mainHubCharactersButton {
    animation-delay: 1.95s;
}


/* LOCATION */

.main-hub.active #mainHubLocationButton {
    animation-delay: 2.10s;
}


/* THINGS */

.main-hub.active #mainHubThingsButton {
    animation-delay: 2.25s;
}


/* GAMES */

.main-hub.active #mainHubGamesButton {
    animation-delay: 2.40s;
}


/* TUTORIALS */

.main-hub.active #mainHubTutorialsButton {
    animation-delay: 2.55s;
}


/* VIDEOS */

.main-hub.active #mainHubVideosButton {
    animation-delay: 2.70s;
}


/* SETTINGS */

.main-hub.active #mainHubSettingsButton {
    animation-delay: 2.85s;
}


/* ========================================
   BUTTON APPEAR
======================================== */

@keyframes mainHubButtonAppear {

    0% {

        opacity: 0;

        filter:
            brightness(2.5)
            drop-shadow(0 0 30px rgba(0, 255, 100, 1));
    }

    60% {

        opacity: 1;

        filter:
            brightness(1.4)
            drop-shadow(0 0 20px rgba(0, 255, 100, 0.9));
    }

    100% {

        opacity: 1;

        filter:
            brightness(1)
            drop-shadow(0 0 0 rgba(0, 255, 100, 0));
    }
}

/* ========================================
   CHARACTERS DATABASE
======================================== */

.characters-database {
    position: relative;
    width: 100%;
    min-height: 100vh;
    overflow: hidden;

    /* CHARACTER DATABASE BACKGROUND */

    background-image:
        linear-gradient(
            rgba(0, 0, 0, 0.35),
            rgba(0, 0, 0, 0.35)
        ),
        url("characters/background.png");

    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: fixed;

    color: #ffffff;
}


/* ========================================
   TOP LEFT BEN 10 LOGO
======================================== */

.characters-banner-logo {
    position: absolute;
    top: 25px;
    left: 30px;

    z-index: 20;
}

.characters-banner-logo img {
    width: 80px;
    height: auto;

    display: block;

    filter:
        drop-shadow(0 0 8px rgba(0, 255, 80, 0.65))
        drop-shadow(0 0 20px rgba(0, 255, 80, 0.25));

    transition: transform 0.25s ease;
}

.characters-banner-logo img:hover {
    transform: scale(1.06);
}


/* ========================================
   MAIN CHARACTER CONTENT
======================================== */

.character-database-content {
    position: relative;

    width: 90%;
    max-width: 1250px;

    min-height: 75vh;

    margin: 0 auto;
    padding-top: 105px;
    padding-bottom: 110px;

    display: flex;
    align-items: center;
    justify-content: center;

    gap: 80px;
}


/* ========================================
   CHARACTER IMAGE
======================================== */

.character-image-container {
    width: 48%;

    display: flex;
    justify-content: center;
    align-items: center;
}

.character-image-container img {
    width: 100%;
    max-width: 500px;
    max-height: 550px;

    object-fit: contain;

    filter:
        drop-shadow(0 0 12px rgba(0, 255, 80, 0.45))
        drop-shadow(0 0 30px rgba(0, 255, 80, 0.18));

    transition:
        transform 0.3s ease,
        opacity 0.3s ease,
        filter 0.3s ease;
}

.character-image-container img:hover {
    transform: scale(1.03);

    filter:
        drop-shadow(0 0 18px rgba(0, 255, 80, 0.65))
        drop-shadow(0 0 40px rgba(0, 255, 80, 0.25));
}


/* ========================================
   CHARACTER INFORMATION
======================================== */

.character-information {
    width: 48%;

    text-align: left;

    padding: 25px 30px;

    border-left: 3px solid rgba(0, 255, 80, 0.7);

    background:
        linear-gradient(
            90deg,
            rgba(0, 255, 80, 0.08),
            rgba(0, 0, 0, 0)
        );
}


/* CHARACTER NAME */

.character-information h1 {
    margin: 0 0 25px 0;

    font-size: 46px;
    font-weight: 800;

    color: #00ff66;

    text-shadow:
        0 0 10px rgba(0, 255, 100, 0.85),
        0 0 25px rgba(0, 255, 100, 0.45);
}


/* CHARACTER DESCRIPTION */

.character-information p {
    margin: 0;

    font-size: 20px;
    line-height: 1.75;

    color: #ffffff;

    max-width: 600px;
}

/* ========================================
   CHARACTER INFORMATION SLIDE ANIMATION
======================================== */

.character-information {
    animation: characterInfoSlide 0.5s ease;
}


/* SLIDE IN FROM RIGHT */

@keyframes characterInfoSlide {

    from {
        opacity: 0;
        transform: translateX(80px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }

}


/* ========================================
   CHARACTER NAVIGATION
======================================== */

.character-database-navigation {
    position: fixed;

    left: 0;
    right: 0;
    bottom: 25px;

    width: 100%;
    height: 80px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 0 45px;

    box-sizing: border-box;

    z-index: 100;

    pointer-events: none;
}


/* ========================================
   IMAGE NAVIGATION BUTTONS
======================================== */

.character-navigation-button {
    width: 110px;
    height: 70px;

    padding: 0;

    border: none;
    outline: none;

    background: transparent;

    cursor: pointer;

    display: flex;
    align-items: center;
    justify-content: center;

    pointer-events: auto;

    transition:
        transform 0.25s ease,
        filter 0.25s ease;
}


/* NAVIGATION IMAGE */

.character-navigation-button img {
    width: 100%;
    height: 100%;

    object-fit: contain;

    display: block;

    filter:
        drop-shadow(0 0 7px rgba(0, 255, 80, 0.55));

    transition:
        transform 0.25s ease,
        filter 0.25s ease;
}


/* HOVER */

.character-navigation-button:hover {
    transform: scale(1.12);
}

.character-navigation-button:hover img {
    filter:
        drop-shadow(0 0 12px rgba(0, 255, 80, 0.9))
        drop-shadow(0 0 25px rgba(0, 255, 80, 0.4));
}


/* CLICK */

.character-navigation-button:active {
    transform: scale(0.94);
}


/* ========================================
   MOBILE
======================================== */

@media (max-width: 750px) {

    .characters-banner-logo {
        top: 15px;
        left: 15px;
    }

    .characters-banner-logo img {
        width: 110px;
    }


    /* MAIN CONTENT */

    .character-database-content {
        width: 92%;

        min-height: auto;

        padding-top: 100px;
        padding-bottom: 120px;

        flex-direction: column;

        gap: 30px;
    }


    /* CHARACTER IMAGE */

    .character-image-container {
        width: 90%;
    }

    .character-image-container img {
        max-width: 320px;
        max-height: 360px;
    }


    /* INFORMATION */

    .character-information {
        width: 90%;

        padding: 20px;

        border-left: none;
        border-top: 3px solid rgba(0, 255, 80, 0.7);

        text-align: center;

        background:
            linear-gradient(
                180deg,
                rgba(0, 255, 80, 0.08),
                rgba(0, 0, 0, 0)
            );
    }

    .character-information h1 {
        font-size: 32px;

        margin-bottom: 18px;
    }

    .character-information p {
        font-size: 16px;
        line-height: 1.6;
    }


    /* NAVIGATION */

    .character-database-navigation {
        width: 90%;

        bottom: 15px;
    }

    .character-navigation-button {
        width: 85px;
        height: 55px;
    }
}

/* ========================================
   OBJECTS DATABASE
======================================== */

.objects-database {
    position: relative;
    width: 100%;
    min-height: 100vh;
    overflow: hidden;

    background-image:
        linear-gradient(
            rgba(0, 0, 0, 0.35),
            rgba(0, 0, 0, 0.35)
        ),
        url("objects/background.png");

    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: fixed;

    color: #ffffff;

    transition:
        background-image 0.5s ease,
        background-position 0.5s ease;
}


/* ========================================
   TOP LEFT BEN 10 LOGO
======================================== */

.objects-banner-logo {
    position: absolute;

    top: 25px;
    left: 30px;

    z-index: 20;
}

.objects-banner-logo img {
    width: 80px;
    height: auto;

    display: block;

    filter:
        drop-shadow(0 0 8px rgba(0, 255, 80, 0.65))
        drop-shadow(0 0 20px rgba(0, 255, 80, 0.25));

    transition: transform 0.25s ease;
}

.objects-banner-logo img:hover {
    transform: scale(1.06);
}


/* ========================================
   MAIN OBJECT CONTENT
======================================== */

.object-database-content {

    position: relative;

    width: 90%;
    max-width: 1250px;

    min-height: 75vh;

    margin: 0 auto;

    padding-top: 105px;
    padding-bottom: 110px;

    display: flex;

    align-items: center;

    justify-content: flex-end;
}


/* ========================================
   OBJECT INFORMATION
======================================== */

.object-information {

    width: 48%;
    max-width: 650px;

    position: relative;

    /* ====================================
       POSITION CONTROLS
       Change these values to move the panel
    ==================================== */

    right: 700px;   /* + = right | - = left */
    top: 100px;    /* + = down  | - = up */

    text-align: left;

    padding: 25px 30px;

    border-left: 3px solid rgba(0, 255, 80, 0.7);

    background:
        linear-gradient(
            90deg,
            rgba(0, 255, 80, 0.08),
            rgba(0, 0, 0, 0)
        );

    animation: objectInfoSlide 0.5s ease;
}


/* ========================================
   OBJECT NAME
======================================== */

.object-information h1 {

    margin: 0 0 25px 0;

    font-size: 46px;
    font-weight: 800;

    color: #00ff66;

    text-shadow:
        0 0 10px rgba(0, 255, 100, 0.85),
        0 0 25px rgba(0, 255, 100, 0.45);
}


/* ========================================
   OBJECT DESCRIPTION
======================================== */

.object-information p {

    margin: 0;

    font-size: 20px;
    line-height: 1.75;

    color: #ffffff;

    max-width: 800px;

    margin-left: auto;
    margin-right: auto;
}


/* ========================================
   OBJECT INFORMATION ANIMATION
======================================== */

@keyframes objectInfoSlide {

    from {
        opacity: 0;
        transform: translateX(80px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }

}


/* ========================================
   OBJECT NAVIGATION
======================================== */

.object-database-navigation {

    position: fixed;

    left: 0;
    right: 0;

    bottom: 25px;

    width: 100%;
    height: 80px;

    display: flex;

    align-items: center;
    justify-content: space-between;

    padding: 0 45px;

    box-sizing: border-box;

    z-index: 100;

    pointer-events: none;
}


/* ========================================
   OBJECT NAVIGATION BUTTONS
======================================== */

.object-navigation-button {

    width: 110px;
    height: 70px;

    padding: 0;

    border: none;
    outline: none;

    background: transparent;

    cursor: pointer;

    display: flex;

    align-items: center;
    justify-content: center;

    pointer-events: auto;

    transition:
        transform 0.25s ease,
        filter 0.25s ease;
}


/* ========================================
   NAVIGATION IMAGE
======================================== */

.object-navigation-button img {

    width: 100%;
    height: 100%;

    object-fit: contain;

    display: block;

    filter:
        drop-shadow(0 0 7px rgba(0, 255, 80, 0.55));

    transition:
        transform 0.25s ease,
        filter 0.25s ease;
}


/* ========================================
   HOVER
======================================== */

.object-navigation-button:hover {

    transform: scale(1.12);
}


.object-navigation-button:hover img {

    filter:
        drop-shadow(0 0 12px rgba(0, 255, 80, 0.9))
        drop-shadow(0 0 25px rgba(0, 255, 80, 0.4));
}


/* ========================================
   CLICK
======================================== */

.object-navigation-button:active {

    transform: scale(0.94);
}


/* ========================================
   MOBILE
======================================== */

@media (max-width: 750px) {

    .objects-banner-logo {

        top: 15px;
        left: 15px;
    }


    .objects-banner-logo img {

        width: 110px;
    }


    /* MAIN CONTENT */

    .object-database-content {

        width: 92%;

        min-height: auto;

        padding-top: 100px;
        padding-bottom: 120px;

        flex-direction: column;

        gap: 30px;
    }


    /* INFORMATION */

    .object-information {

        width: 90%;

        padding: 25px 20px;

        border-left: none;
        border-right: none;

        border-top: 3px solid rgba(0, 255, 80, 0.7);
        border-bottom: 3px solid rgba(0, 255, 80, 0.7);

        text-align: center;

        background:
            linear-gradient(
                180deg,
                rgba(0, 255, 80, 0.08),
                rgba(0, 0, 0, 0),
                rgba(0, 255, 80, 0.08)
            );
    }


    .object-information h1 {

        font-size: 32px;

        margin-bottom: 18px;
    }


    .object-information p {

        font-size: 16px;
        line-height: 1.6;
    }


    /* NAVIGATION */

    .object-database-navigation {

        width: 90%;

        bottom: 15px;
    }


    .object-navigation-button {

        width: 85px;
        height: 55px;
    }

}

/* ========================================
   LOCATIONS DATABASE
======================================== */

.locations-database {

    position: relative;

    width: 100%;

    min-height: 100vh;

    overflow: hidden;

    background-image:
        linear-gradient(
            rgba(0, 0, 0, 0.35),
            rgba(0, 0, 0, 0.35)
        ),
        url("locations/background.jpg");

    background-size: cover;

    background-position: center center;

    background-repeat: no-repeat;

    background-attachment: fixed;

    color: #ffffff;
}


/* ========================================
   TOP LEFT BEN 10 LOGO
======================================== */

.locations-banner-logo {

    position: absolute;

    top: 25px;

    left: 30px;

    z-index: 20;
}


.locations-banner-logo img {

    width: 80px;

    height: auto;

    display: block;

    filter:
        drop-shadow(
            0 0 8px
            rgba(0, 255, 80, 0.65)
        )
        drop-shadow(
            0 0 20px
            rgba(0, 255, 80, 0.25)
        );

    transition:
        transform 0.25s ease;
}


.locations-banner-logo img:hover {

    transform: scale(1.06);
}


/* ========================================
   LOCATION CONTENT
======================================== */

.location-database-content {

    position: relative;

    width: 90%;

    max-width: 1250px;

    min-height: 75vh;

    margin: 0 auto;

    padding-top: 105px;

    padding-bottom: 110px;

    display: flex;

    align-items: center;

    justify-content: flex-end;
}


/* ========================================
   LOCATION INFORMATION
======================================== */

.location-information {

    width: 48%;

    max-width: 650px;

    position: relative;


    /* ====================================
       POSITION CONTROLS
       
       + left = RIGHT
       - left = LEFT
       
       + top = DOWN
       - top = UP
    ==================================== */

    left: 0px;

    top: 100px;


    text-align: left;

    padding: 25px 30px;

    border-left:
        3px solid
        rgba(0, 255, 80, 0.7);

    background:
        linear-gradient(
            90deg,
            rgba(0, 255, 80, 0.08),
            rgba(0, 0, 0, 0)
        );

    animation:
        locationInfoSlide
        0.5s ease;
}


/* ========================================
   LOCATION NAME
======================================== */

.location-information h1 {

    margin:
        0 0 25px 0;

    font-size: 46px;

    font-weight: 800;

    color: #00ff66;

    text-shadow:
        0 0 10px
        rgba(0, 255, 100, 0.85),

        0 0 25px
        rgba(0, 255, 100, 0.45);
}


/* ========================================
   LOCATION DESCRIPTION
======================================== */

.location-information p {

    margin: 0;

    font-size: 20px;

    line-height: 1.75;

    color: #ffffff;

    max-width: 600px;
}


/* ========================================
   LOCATION INFORMATION ANIMATION
======================================== */

@keyframes locationInfoSlide {

    from {

        opacity: 0;

        transform:
            translateX(80px);

    }

    to {

        opacity: 1;

        transform:
            translateX(0);

    }

}


/* ========================================
   LOCATION NAVIGATION
======================================== */

.location-database-navigation {

    position: fixed;

    left: 0;

    right: 0;

    bottom: 25px;

    width: 100%;

    height: 80px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    padding: 0 45px;

    box-sizing: border-box;

    z-index: 100;

    pointer-events: none;
}


/* ========================================
   LOCATION NAVIGATION BUTTON
======================================== */

.location-navigation-button {

    width: 110px;

    height: 70px;

    padding: 0;

    border: none;

    outline: none;

    background: transparent;

    cursor: pointer;

    display: flex;

    align-items: center;

    justify-content: center;

    pointer-events: auto;

    transition:
        transform 0.25s ease,
        filter 0.25s ease;
}


.location-navigation-button img {

    width: 100%;

    height: 100%;

    object-fit: contain;

    display: block;

    filter:
        drop-shadow(
            0 0 7px
            rgba(0, 255, 80, 0.55)
        );

    transition:
        transform 0.25s ease,
        filter 0.25s ease;
}


.location-navigation-button:hover {

    transform:
        scale(1.12);
}


.location-navigation-button:hover img {

    filter:
        drop-shadow(
            0 0 12px
            rgba(0, 255, 80, 0.9)
        )
        drop-shadow(
            0 0 25px
            rgba(0, 255, 80, 0.4)
        );
}


.location-navigation-button:active {

    transform:
        scale(0.94);
}


/* ========================================
   MOBILE
======================================== */

@media (max-width: 750px) {

    .locations-banner-logo {

        top: 15px;

        left: 15px;
    }


    .locations-banner-logo img {

        width: 110px;
    }


    .location-database-content {

        width: 92%;

        min-height: auto;

        padding-top: 100px;

        padding-bottom: 120px;

        flex-direction: column;

        gap: 30px;
    }


    .location-information {

        width: 90%;

        padding: 20px;

        left: 0;

        top: 0;

        border-left: none;

        border-top:
            3px solid
            rgba(0, 255, 80, 0.7);

        text-align: center;

        background:
            linear-gradient(
                180deg,
                rgba(0, 255, 80, 0.08),
                rgba(0, 0, 0, 0)
            );
    }


    .location-information h1 {

        font-size: 32px;

        margin-bottom: 18px;
    }


    .location-information p {

        font-size: 16px;

        line-height: 1.6;
    }


    .location-database-navigation {

        width: 90%;

        bottom: 15px;
    }


    .location-navigation-button {

        width: 85px;

        height: 55px;
    }

}

/* =========================================
   BEN 10 CHESS GAME - FULL SCREEN
   ========================================= */

#games {
    width: 100vw;
    height: 100vh;
    min-height: 100vh;
    padding: 0;
    margin: 0;
    overflow: hidden;
}

#chess-game {
    width: 100vw;
    height: 100vh;
    min-height: 100vh;

    display: flex;
    justify-content: center;
    align-items: center;

    padding: 0;
    margin: 0;

    box-sizing: border-box;
    overflow: hidden;
}


/* =========================================
   FULL SCREEN CHESS SCENE
   ========================================= */

.chess-board-wrapper {

    position: relative;

    width: 100vw;
    height: 100vh;

    margin: 0;
    padding: 0;

    overflow: hidden;
}


/* =========================================
   FULL SCREEN BACKGROUND IMAGE
   ========================================= */

.chess-board-image {

    position: absolute;

    left: 0;
    top: 0;

    width: 100%;
    height: 100%;

    object-fit: cover;

    display: block;

    user-select: none;
    pointer-events: none;
}


/* =========================================
   ACTUAL 8x8 CHESS BOARD AREA
   ========================================= */

/*
   These values control where the actual
   chessboard is located inside your
   full-screen background image.

   We will adjust these if necessary.
*/

/* =========================================
   ACTUAL 8x8 CHESS BOARD AREA
   ========================================= */

.chess-piece-layer {
    position: absolute;

    left: 27.9%;
    top: 4.5%;

    width: 43%;
    height: 90%;

    z-index: 5;
}


/* =========================================
   CLICKABLE CHESS SQUARES
   ========================================= */

.chess-click-square {

    position: absolute;

    display: flex;

    justify-content: center;
    align-items: center;

    box-sizing: border-box;

    cursor: pointer;

    transition:
        background 0.15s ease,
        transform 0.15s ease;
}


/* =========================================
   CHESS PIECES
   ========================================= */

.chess-piece {
    width: 100%;
    height: 100%;

    object-fit: contain;

    pointer-events: none;
    user-select: none;
}


/* =========================================
   HOVER
   ========================================= */

.chess-click-square:hover {

    background: rgba(255, 255, 255, 0.10);
}


/* =========================================
   CHESS PIECE SELECTION
   ========================================= */

.chess-click-square.chess-selected {
    background: rgba(0, 255, 100, 0.30);

    outline: 3px solid #00ff66;

    outline-offset: -3px;
}


/* =========================================
   POSSIBLE CHESS MOVES
   ========================================= */

.chess-click-square.chess-possible-move {
    background: rgba(255, 255, 255, 0.25);

    box-shadow:
        inset 0 0 0 3px rgba(255, 255, 255, 0.55);
}


/* Hover on a possible move */

.chess-click-square.chess-possible-move:hover {
    background: rgba(0, 255, 100, 0.35);
}

/* =========================================
   KING IN CHECK
   ========================================= */

.chess-click-square.chess-in-check {

    background: rgba(255, 0, 0, 0.45);

    box-shadow:
        inset 0 0 0 4px rgba(255, 0, 0, 0.90),
        0 0 18px rgba(255, 0, 0, 0.85);

    animation: chessCheckPulse 0.8s infinite alternate;
}


/* Red pulsing check indicator */

@keyframes chessCheckPulse {

    from {
        background: rgba(255, 0, 0, 0.25);

        box-shadow:
            inset 0 0 0 3px rgba(255, 0, 0, 0.65),
            0 0 8px rgba(255, 0, 0, 0.55);
    }

    to {
        background: rgba(255, 0, 0, 0.55);

        box-shadow:
            inset 0 0 0 4px rgba(255, 0, 0, 1),
            0 0 22px rgba(255, 0, 0, 1);
    }
}

/* =========================================
   MOBILE
   ========================================= */

@media (max-width: 600px) {

    .chess-piece-layer {

        left: 30.3%;
        top: 27.7%;

        width: 26.3%;
        height: 35.2%;
    }

    .chess-piece {

        width: 105%;
        height: 105%;
    }
}

/* =========================================
   CHESS RESULT
   ========================================= */

.chess-result {

    position: fixed;

    left: 50%;
    top: 50%;

    transform: translate(-50%, -50%);

    z-index: 100;

    padding: 25px 40px;

    background: rgba(0, 0, 0, 0.90);

    border: 3px solid #00ff66;

    border-radius: 12px;

    color: white;

    font-size: clamp(20px, 3vw, 40px);

    font-weight: bold;

    text-align: center;

    white-space: nowrap;

    box-shadow:
        0 0 25px rgba(0, 255, 100, 0.5);
}

/* =========================================================
   CHESS PAWN PROMOTION MENU
   ========================================================= */

.chess-promotion-menu {
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 1000;

    background: rgba(0, 0, 0, 0.95);

    border: 3px solid #00ff66;
    border-radius: 15px;

    padding: 25px;

    text-align: center;

    box-shadow:
        0 0 30px rgba(0, 255, 100, 0.7);
}

.chess-promotion-title {
    color: white;

    font-size: clamp(18px, 2.5vw, 32px);

    font-weight: bold;

    margin-bottom: 20px;
}

.chess-promotion-choices {
    display: flex;

    justify-content: center;

    align-items: center;

    gap: 15px;

    flex-wrap: wrap;
}

.chess-promotion-choice {
    width: 120px;
    min-height: 145px;

    background: rgba(30, 30, 30, 0.95);

    border: 2px solid #00ff66;
    border-radius: 10px;

    color: white;

    cursor: pointer;

    display: flex;

    flex-direction: column;

    justify-content: center;

    align-items: center;

    gap: 5px;

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease;
}

.chess-promotion-choice:hover {
    transform: scale(1.08);

    background: rgba(0, 255, 100, 0.20);

    box-shadow:
        0 0 20px rgba(0, 255, 100, 0.8);
}

.chess-promotion-choice img {
    width: 85px;

    height: 85px;

    object-fit: contain;

    pointer-events: none;
}

.chess-promotion-choice span {
    font-size: 15px;

    font-weight: bold;

    white-space: nowrap;
}

@media (max-width: 600px) {

    .chess-promotion-menu {
        width: 90vw;

        padding: 15px;
    }

    .chess-promotion-choice {
        width: 90px;

        min-height: 115px;
    }

    .chess-promotion-choice img {
        width: 65px;

        height: 65px;
    }

    .chess-promotion-choice span {
        font-size: 12px;
    }
}

/* =========================================================
   BEN 10 GAMES MENU SYSTEM
   ========================================================= */


/* =========================================================
   GAMES MENU
   ========================================================= */

.games-menu {

    width: 100vw;
    height: 100vh;

    display: flex;

    flex-direction: column;

    justify-content: center;
    align-items: center;

    gap: 20px;

    position: relative;

    background:
        radial-gradient(
            circle at center,
            rgba(0, 255, 100, 0.12),
            rgba(0, 0, 0, 0.98) 65%
        );

    box-sizing: border-box;

    padding: 30px;
}


/* =========================================================
   GAMES MENU BUTTONS
   ========================================================= */

.games-menu-button {

    width: min(400px, 80vw);

    min-height: 75px;

    padding: 15px 30px;

    background:
        rgba(0, 0, 0, 0.85);

    border: 3px solid #00ff66;

    border-radius: 12px;

    color: white;

    font-size:
        clamp(20px, 3vw, 34px);

    font-weight: bold;

    letter-spacing: 2px;

    cursor: pointer;

    box-shadow:
        0 0 15px rgba(0, 255, 100, 0.35);

    transition:
        transform 0.2s ease,
        background 0.2s ease,
        box-shadow 0.2s ease;
}


.games-menu-button:hover {

    transform: scale(1.06);

    background:
        rgba(0, 255, 100, 0.18);

    box-shadow:
        0 0 30px rgba(0, 255, 100, 0.8);
}


.games-menu-button:active {

    transform: scale(0.98);
}


/* =========================================================
   CHESS MODE MENU
   ========================================================= */

/* =========================================================
   CHESS MODE MENU
   (matches the Ludo mode-select screen design)
   ========================================================= */

.chess-mode-menu {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 22px;
    background:
        radial-gradient(circle at center, rgba(30, 100, 30, 0.35), transparent 55%),
        linear-gradient(135deg, #050505, #101010 50%, #020202);
    color: white;
    text-align: center;
    box-sizing: border-box;
    padding: 30px;
}


/* =========================================================
   CHESS TITLE
   ========================================================= */

.chess-mode-title {
    margin: 0 0 20px 0;
    font-size: 64px;
    font-weight: 900;
    letter-spacing: 6px;
    color: #39ff14;
    text-shadow:
        0 0 8px #39ff14,
        0 0 18px #39ff14,
        0 0 35px rgba(57, 255, 20, 0.7);
}


/* =========================================================
   CHESS MODE BUTTONS
   ========================================================= */

.chess-mode-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: min(360px, 88vw);
    min-height: 65px;
    padding: 14px 25px;
    border: 3px solid #39ff14;
    border-radius: 14px;
    background: linear-gradient(
        135deg,
        #111111,
        #202020
    );
    color: #ffffff;
    font-size: 21px;
    font-weight: 800;
    letter-spacing: 2px;
    cursor: pointer;
    box-shadow:
        0 0 8px rgba(57, 255, 20, 0.5),
        inset 0 0 10px rgba(57, 255, 20, 0.08);
    transition:
        transform 0.2s ease,
        background 0.2s ease,
        color 0.2s ease,
        box-shadow 0.2s ease;
}

.chess-mode-button span {
    margin-left: 8px;
}

.chess-mode-button:hover {
    transform: scale(1.06);
    background: #39ff14;
    color: #000000;
    box-shadow:
        0 0 15px #39ff14,
        0 0 30px rgba(57, 255, 20, 0.7);
}

.chess-mode-button:active {
    transform: scale(0.98);
}


/* =========================================================
   CHESS MODE MENU EXIT BUTTON
   ========================================================= */

.chess-mode-menu .games-exit-button {
    position: absolute;
    top: 25px;
    right: 30px;
    z-index: 1100;
    min-width: 120px;
    min-height: 45px;
    border: 2px solid #39ff14;
    border-radius: 10px;
    background: #111111;
    color: white;
    font-size: 16px;
    font-weight: 800;
    cursor: pointer;
    transition:
        background 0.2s ease,
        color 0.2s ease,
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.chess-mode-menu .games-exit-button:hover {
    background: #39ff14;
    color: #000000;
    transform: scale(1.05);
    box-shadow: 0 0 15px #39ff14;
}



/* =========================================================
   EXIT BUTTONS
   ========================================================= */

.games-exit-button {

    position: absolute;

    top: 25px;
    right: 25px;

    min-width: 120px;

    min-height: 50px;

    padding: 10px 20px;

    background:
        rgba(0, 0, 0, 0.9);

    border: 3px solid #00c853;

    border-radius: 10px;

    color: white;

    font-size: 18px;

    font-weight: bold;

    cursor: pointer;

    box-shadow:
        0 0 12px rgba(0, 255, 0, 0.35);

    transition:
        transform 0.2s ease,
        background 0.2s ease,
        box-shadow 0.2s ease;
}


.games-exit-button:hover {

    transform: scale(1.08);

    background:
        rgba(0, 255, 0, 0.20);

    box-shadow:
        0 0 25px rgba(0, 255, 0, 0.8);
}


/* =========================================================
   CHESS RESULT MESSAGE
   ========================================================= */

.chess-result-message {

    margin-bottom: 25px;
}


/* =========================================================
   RESTART GAME BUTTON
   ========================================================= */

.chess-restart-button {

    display: block;

    margin:
        0 auto 12px auto;

    min-width: 220px;

    min-height: 55px;

    padding: 10px 25px;

    background:
        rgba(0, 255, 100, 0.15);

    border: 2px solid #00ff66;

    border-radius: 10px;

    color: white;

    font-size: 18px;

    font-weight: bold;

    cursor: pointer;

    transition:
        transform 0.2s ease,
        background 0.2s ease,
        box-shadow 0.2s ease;
}


.chess-restart-button:hover {

    transform: scale(1.06);

    background:
        rgba(0, 255, 100, 0.30);

    box-shadow:
        0 0 20px rgba(0, 255, 100, 0.8);
}


/* =========================================================
   RESULT EXIT BUTTON
   ========================================================= */

.chess-result-exit-button {

    display: block;

    margin: 0 auto;

    min-width: 150px;

    min-height: 45px;

    padding: 8px 20px;

    background:
        rgba(255, 0, 0, 0.10);

    border: 2px solid #ff3333;

    border-radius: 10px;

    color: white;

    font-size: 16px;

    font-weight: bold;

    cursor: pointer;

    transition:
        transform 0.2s ease,
        background 0.2s ease,
        box-shadow 0.2s ease;
}


.chess-result-exit-button:hover {

    transform: scale(1.06);

    background:
        rgba(255, 0, 0, 0.25);

    box-shadow:
        0 0 20px rgba(255, 0, 0, 0.7);
}


/* =========================================================
   COMING SOON MESSAGE
   ========================================================= */

.chess-coming-soon {

    margin-top: 10px;

    padding: 12px 20px;

    color: #00ff66;

    font-size:
        clamp(14px, 2vw, 20px);

    font-weight: bold;

    text-align: center;

    animation:
        chessComingSoonPulse 0.8s infinite alternate;
}


@keyframes chessComingSoonPulse {

    from {

        opacity: 0.5;
    }

    to {

        opacity: 1;
    }
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 600px) {

    .games-menu {

        gap: 14px;

        padding: 20px;
    }


    .games-menu-button {

        min-height: 60px;

        font-size: 18px;
    }


.chess-mode-menu {

    gap: 13px;

    padding: 20px;
}


.chess-mode-title {

    margin-bottom: 15px;

    font-size: 38px;
}


.chess-mode-button {

    width: min(320px, 88vw);

    min-height: 60px;

    font-size: 17px;
}


    .games-exit-button {

        top: 15px;
        right: 15px;

        min-width: 90px;

        min-height: 42px;

        font-size: 15px;
    }


.chess-mode-menu .games-exit-button {

    top: 15px;
    right: 15px;

    min-width: 90px;

    min-height: 42px;

    font-size: 15px;
}
}

/* =========================================================
   CHESS GAME EXIT BUTTON
   ========================================================= */

.chess-game-exit-button {

    position: fixed;

    top: 20px;
    right: 20px;

    z-index: 9999;

    min-width: 120px;
    min-height: 50px;

    padding: 10px 20px;

    background: rgba(0, 0, 0, 0.95);

    border: 3px solid #00c83f;

    border-radius: 10px;

    color: white;

    font-size: 18px;

    font-weight: bold;

    cursor: pointer;

    box-shadow:
        0 0 15px rgba(0, 255, 0, 0.50);

    transition:
        transform 0.2s ease,
        background 0.2s ease,
        box-shadow 0.2s ease;
}


.chess-game-exit-button:hover {

    transform: scale(1.08);

    background: rgba(0, 255, 0, 0.20);

    box-shadow:
        0 0 30px rgba(0, 255, 0, 0.90);
}


.chess-game-exit-button:active {

    transform: scale(0.98);
}


@media (max-width: 600px) {

    .chess-game-exit-button {

        top: 12px;
        right: 12px;

        min-width: 90px;
        min-height: 42px;

        font-size: 15px;
    }
}

/* =========================================
   CHESS AI DIFFICULTY MENU
   ========================================= */

.chess-difficulty-menu {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 22px;
    background:
        radial-gradient(circle at center, rgba(30, 100, 30, 0.35), transparent 55%),
        linear-gradient(135deg, #050505, #101010 50%, #020202);
    color: white;
    text-align: center;
    box-sizing: border-box;
    padding: 30px;
}


.chess-difficulty-title {
    margin: 0 0 20px 0;
    font-size: 58px;
    font-weight: 900;
    letter-spacing: 5px;
    color: #39ff14;
    text-shadow:
        0 0 8px #39ff14,
        0 0 18px #39ff14,
        0 0 35px rgba(57, 255, 20, 0.7);
}


.chess-difficulty-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: min(360px, 88vw);
    min-height: 65px;
    padding: 14px 25px;
    border: 3px solid #39ff14;
    border-radius: 14px;
    background: linear-gradient(
        135deg,
        #111111,
        #202020
    );
    color: #ffffff;
    font-size: 21px;
    font-weight: 800;
    letter-spacing: 2px;
    cursor: pointer;
    box-shadow:
        0 0 8px rgba(57, 255, 20, 0.5),
        inset 0 0 10px rgba(57, 255, 20, 0.08);
    transition:
        transform 0.2s ease,
        background 0.2s ease,
        color 0.2s ease,
        box-shadow 0.2s ease;
}

.chess-difficulty-button:hover {
    transform: scale(1.06);
    background: #39ff14;
    color: #000000;
    box-shadow:
        0 0 15px #39ff14,
        0 0 30px rgba(57, 255, 20, 0.7);
}

.chess-difficulty-button:active {
    transform: scale(0.98);
}


/* =========================================================
   CHESS DIFFICULTY MENU EXIT BUTTON
   ========================================================= */

.chess-difficulty-menu .games-exit-button {
    position: absolute;
    top: 25px;
    right: 30px;
    z-index: 1100;
    min-width: 120px;
    min-height: 45px;
    border: 2px solid #39ff14;
    border-radius: 10px;
    background: #111111;
    color: white;
    font-size: 16px;
    font-weight: 800;
    cursor: pointer;
    transition:
        background 0.2s ease,
        color 0.2s ease,
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.chess-difficulty-menu .games-exit-button:hover {
    background: #39ff14;
    color: #000000;
    transform: scale(1.05);
    box-shadow: 0 0 15px #39ff14;
}


/* =========================================
   MOBILE
   ========================================= */

@media (max-width: 600px) {

.chess-difficulty-menu {

    gap: 13px;

    padding: 20px;
}


.chess-difficulty-title {

    margin-bottom: 15px;

    font-size: 36px;
}


.chess-difficulty-button {

    width: min(320px, 88vw);

    min-height: 60px;

    font-size: 17px;
}


.chess-difficulty-menu .games-exit-button {

    top: 15px;
    right: 15px;

    min-width: 90px;

    min-height: 42px;

    font-size: 15px;
}

}


/* =========================================================
   LUDO MODE MENU
   ========================================================= */

.ludo-mode-menu {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 22px;
    background:
        radial-gradient(circle at center, rgba(30, 100, 30, 0.35), transparent 55%),
        linear-gradient(135deg, #050505, #101010 50%, #020202);
    color: white;
    text-align: center;
}

.ludo-mode-title {
    margin: 0 0 20px 0;
    font-size: 64px;
    font-weight: 900;
    letter-spacing: 6px;
    color: #39ff14;
    text-shadow:
        0 0 8px #39ff14,
        0 0 18px #39ff14,
        0 0 35px rgba(57, 255, 20, 0.7);
}


/* =========================================================
   LUDO MODE BUTTONS
   ========================================================= */

.ludo-mode-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 360px;
    min-height: 65px;
    padding: 14px 25px;
    border: 3px solid #39ff14;
    border-radius: 14px;
    background: linear-gradient(
        135deg,
        #111111,
        #202020
    );
    color: #ffffff;
    font-size: 21px;
    font-weight: 800;
    letter-spacing: 2px;
    cursor: pointer;
    box-shadow:
        0 0 8px rgba(57, 255, 20, 0.5),
        inset 0 0 10px rgba(57, 255, 20, 0.08);
    transition:
        transform 0.2s ease,
        background 0.2s ease,
        color 0.2s ease,
        box-shadow 0.2s ease;
}

.ludo-mode-button span {
    margin-left: 8px;
}

.ludo-mode-button:hover {
    transform: scale(1.06);
    background: #39ff14;
    color: #000000;
    box-shadow:
        0 0 15px #39ff14,
        0 0 30px rgba(57, 255, 20, 0.7);
}

.ludo-mode-button:active {
    transform: scale(0.98);
}


/* =========================================================
   LUDO PLAYER COUNT MENU
   ========================================================= */

.ludo-player-count-menu {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    background:
        radial-gradient(circle at center, rgba(30, 100, 30, 0.35), transparent 55%),
        linear-gradient(135deg, #050505, #101010 50%, #020202);
    color: white;
    text-align: center;
}

.ludo-player-count-title {
    margin: 0 0 18px 0;
    font-size: 52px;
    font-weight: 900;
    letter-spacing: 5px;
    color: #39ff14;
    text-shadow:
        0 0 8px #39ff14,
        0 0 18px #39ff14,
        0 0 30px rgba(57, 255, 20, 0.6);
}

.ludo-player-count-button {
    width: 300px;
    min-height: 55px;
    border: 2px solid #39ff14;
    border-radius: 12px;
    background: #111111;
    color: white;
    font-size: 19px;
    font-weight: 800;
    letter-spacing: 2px;
    cursor: pointer;
    transition:
        transform 0.2s ease,
        background 0.2s ease,
        color 0.2s ease,
        box-shadow 0.2s ease;
}

.ludo-player-count-button:hover {
    transform: scale(1.06);
    background: #39ff14;
    color: #000000;
    box-shadow:
        0 0 12px #39ff14,
        0 0 25px rgba(57, 255, 20, 0.6);
}

.ludo-player-count-button:active {
    transform: scale(0.98);
}


/* =========================================================
   LUDO COMING SOON
   ========================================================= */

.ludo-coming-soon {
    position: absolute;
    left: 50%;
    bottom: 80px;
    transform: translateX(-50%);
    z-index: 1200;
    padding: 12px 24px;
    border: 2px solid #39ff14;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.9);
    color: #39ff14;
    font-size: 18px;
    font-weight: 800;
    letter-spacing: 2px;
    box-shadow:
        0 0 10px rgba(57, 255, 20, 0.5);
}


/* =========================================================
   LUDO MENU EXIT BUTTON
   ========================================================= */

.ludo-mode-menu .games-exit-button,
.ludo-player-count-menu .games-exit-button,
.ludo-player-name-menu .games-exit-button {
    position: absolute;
    top: 25px;
    right: 30px;
    z-index: 1100;
    min-width: 120px;
    min-height: 45px;
    border: 2px solid #39ff14;
    border-radius: 10px;
    background: #111111;
    color: white;
    font-size: 16px;
    font-weight: 800;
    cursor: pointer;
    transition:
        background 0.2s ease,
        color 0.2s ease,
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.ludo-mode-menu .games-exit-button:hover,
.ludo-player-count-menu .games-exit-button:hover,
.ludo-player-name-menu .games-exit-button:hover {
    background: #39ff14;
    color: #000000;
    transform: scale(1.05);
    box-shadow: 0 0 15px #39ff14;
}


/* =========================================================
   LUDO PLAYER NAME MENU
   ========================================================= */

.ludo-player-name-menu {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: center;
    background:
        radial-gradient(
            circle at center,
            rgba(30, 100, 30, 0.35),
            transparent 55%
        ),
        linear-gradient(
            135deg,
            #050505,
            #101010 50%,
            #020202
        );
    color: white;
    text-align: center;
    overflow-y: auto;
    padding: 40px 20px 50px;
    box-sizing: border-box;
}

.ludo-player-name-title {
    margin: 0 0 30px;
    font-size: 48px;
    font-weight: 900;
    letter-spacing: 4px;
    color: #39ff14;
    text-shadow:
        0 0 8px #39ff14,
        0 0 18px #39ff14,
        0 0 30px rgba(57, 255, 20, 0.7);
}

.ludo-player-name-list {
    width: min(700px, 90vw);
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.ludo-player-name-row {
    display: flex;
    align-items: center;
    gap: 15px;
    width: 100%;
}

.ludo-player-color {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    border-radius: 50%;
    border: 3px solid white;
    box-shadow:
        0 0 10px rgba(255, 255, 255, 0.25);
}

.ludo-player-number {
    width: 105px;
    text-align: left;
    font-size: 18px;
    font-weight: 800;
    color: white;
}

.ludo-player-name-input {
    flex: 1;
    height: 52px;
    padding: 0 16px;
    box-sizing: border-box;
    border: 2px solid #39ff14;
    border-radius: 10px;
    outline: none;
    background: #111111;
    color: white;
    font-size: 18px;
    font-weight: 700;
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.2s ease;
}

.ludo-player-name-input::placeholder {
    color: #888;
}

.ludo-player-name-input:focus {
    border-color: #ffffff;
    box-shadow:
        0 0 10px #39ff14,
        0 0 20px rgba(57, 255, 20, 0.35);
    transform: scale(1.01);
}


/* =========================================================
   PLAYER NAME BUTTONS
   ========================================================= */

.ludo-player-name-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 35px;
}

.ludo-player-name-back,
.ludo-player-name-continue {
    min-width: 180px;
    min-height: 55px;
    padding: 12px 25px;
    border-radius: 12px;
    font-size: 17px;
    font-weight: 800;
    letter-spacing: 1px;
    cursor: pointer;
    transition:
        transform 0.2s ease,
        background 0.2s ease,
        color 0.2s ease,
        box-shadow 0.2s ease;
}

.ludo-player-name-back {
    border: 2px solid #888;
    background: #111111;
    color: white;
}

.ludo-player-name-back:hover {
    transform: scale(1.05);
    background: #333333;
    box-shadow:
        0 0 10px rgba(255, 255, 255, 0.3);
}

.ludo-player-name-continue {
    border: 2px solid #39ff14;
    background: #111111;
    color: #39ff14;
}

.ludo-player-name-continue:hover {
    transform: scale(1.05);
    background: #39ff14;
    color: #000000;
    box-shadow:
        0 0 12px #39ff14,
        0 0 25px rgba(57, 255, 20, 0.6);
}


/* =========================================================
   MAIN LUDO GAME
   ========================================================= */

#ludo-game {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    display: none;
    overflow: hidden;
    box-sizing: border-box;
}


/* =========================================================
   GAME WRAPPER
   ========================================================= */

.ludo-game-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-sizing: border-box;
    padding: 20px;
    overflow: hidden;
    background:
        radial-gradient(
            circle at center,
            rgba(30, 255, 80, 0.08),
            transparent 45%
        ),
        #050805;
}


/* =========================================================
   GAME HEADER
   ========================================================= */

.ludo-game-header {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 20;
    margin-bottom: 5px;
}

.ludo-game-title {
    margin: 0;
    font-size: clamp(28px, 4vw, 52px);
    font-weight: 900;
    letter-spacing: 5px;
    color: #39ff14;
    text-shadow:
        0 0 8px rgba(57, 255, 20, 0.9),
        0 0 20px rgba(57, 255, 20, 0.6);
}

.ludo-game-subtitle {
    margin-top: 3px;
    font-size: clamp(9px, 1vw, 13px);
    font-weight: 700;
    letter-spacing: 2px;
    color: rgba(255, 255, 255, 0.75);
}


/* =========================================================
   BOARD STAGE
   ========================================================= */

.ludo-board-stage {
    position: relative;
    width: min(78vh, 78vw);
    height: min(78vh, 78vw);
    min-width: 420px;
    min-height: 420px;
    max-width: 850px;
    max-height: 850px;
    margin: 5px auto 0;
    flex-shrink: 0;
    box-sizing: border-box;
}


/* =========================================================
   MAIN BOARD
   ========================================================= */

.ludo-board {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 64%;
    height: 64%;
    display: grid;
    grid-template-columns: repeat(14, 1fr);
    grid-template-rows: repeat(14, 1fr);
    box-sizing: border-box;
    overflow: hidden;
    border: 4px solid #111;
    border-radius: 18px;
    background:
        linear-gradient(
            135deg,
            #151515,
            #050505
        );
    box-shadow:
        0 0 0 2px rgba(57, 255, 20, 0.25),
        0 0 25px rgba(57, 255, 20, 0.25),
        inset 0 0 30px rgba(0, 0, 0, 0.9);
    z-index: 5;
}


/* =========================================================
   MAIN TRACK
   ========================================================= */

.ludo-track {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: repeat(14, 1fr);
    grid-template-rows: repeat(14, 1fr);
    box-sizing: border-box;
    padding: 4px;
    gap: 2px;
    z-index: 3;
}

.ludo-track-space {
    position: relative;
    min-width: 0;
    min-height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 4px;
    background:
        linear-gradient(
            145deg,
            #202020,
            #0d0d0d
        );
    box-shadow:
        inset 0 0 4px rgba(0, 0, 0, 0.8);
}


/* =========================================================
   SAFE SPACES
   ========================================================= */

.ludo-track-space.safe-space {
    border-color: rgba(57, 255, 20, 0.8);
    background:
        radial-gradient(
            circle,
            rgba(57, 255, 20, 0.25),
            #111
        );
    box-shadow:
        inset 0 0 7px rgba(57, 255, 20, 0.4),
        0 0 5px rgba(57, 255, 20, 0.2);
}


/* =========================================================
   START SPACES
   ========================================================= */

.ludo-track-space.start-space {
    border-width: 2px;
    border-color: var(--player-color, #39ff14);
    background:
        radial-gradient(
            circle,
            var(--player-color, #39ff14),
            #111 75%
        );
    box-shadow:
        0 0 8px var(--player-color, #39ff14);
}


/* =========================================================
   PLAYER HOME LANES
   ========================================================= */

.ludo-home-lanes {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 6;
}

.ludo-home-lane {
    position: absolute;
    width: 7%;
    height: 32%;
    left: 46.5%;
    top: 34%;
    display: grid;
    grid-template-rows: repeat(6, 1fr);
    gap: 2px;
    transform-origin: 50% 50%;
    transform:
        rotate(var(--lane-angle))
        translateY(-38%);
    box-sizing: border-box;
}

.ludo-home-lane-cell {
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    border: 1px solid
        var(--lane-color, #39ff14);
    border-radius: 3px;
    background:
        color-mix(
            in srgb,
            var(--lane-color, #39ff14) 18%,
            #101010
        );
    box-shadow:
        inset 0 0 5px rgba(0, 0, 0, 0.7);
}


/* =========================================================
   CENTER HOME
   ========================================================= */

.ludo-center-home {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 20%;
    height: 20%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid #111;
    border-radius: 50%;
    background:
        var(
            --home-gradient,
            conic-gradient(
                #39ff14 0deg 90deg,
                #ff3030 90deg 180deg,
                #2196ff 180deg 270deg,
                #ffd400 270deg 360deg
            )
        );
    box-shadow:
        0 0 15px rgba(0, 0, 0, 0.8),
        inset 0 0 15px rgba(0, 0, 0, 0.5);
    z-index: 10;
}

.ludo-center-home::after {
    content: "";
    position: absolute;
    inset: 16%;
    border-radius: 50%;
    background: #050505;
    opacity: 0.82;
}

.ludo-center-home-label {
    position: relative;
    z-index: 2;
    font-size: clamp(8px, 1vw, 14px);
    font-weight: 900;
    letter-spacing: 1px;
    color: #fff;
    text-shadow:
        0 0 6px #000;
}


/* =========================================================
   TOKEN LAYER
   ========================================================= */

.ludo-token-layer {
    position: absolute;
    inset: 0;
    z-index: 25;
    pointer-events: none;
}


/* =========================================================
   ALIEN IMAGE TOKEN
   ========================================================= */

.ludo-token {
    position: absolute;
    width: clamp(25px, 4.3%, 48px);
    height: clamp(25px, 4.3%, 48px);
    padding: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;

    border: 3px solid var(--token-color, #39ff14);
    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            #222 0%,
            #090909 70%
        );

    box-shadow:
        0 0 7px var(--token-color, #39ff14),
        0 0 15px color-mix(
            in srgb,
            var(--token-color, #39ff14) 55%,
            transparent
        );

    transform:
        translate(-50%, -50%)
        scale(1);

    transition:
        left 0.28s ease,
        top 0.28s ease,
        transform 0.18s ease,
        box-shadow 0.18s ease,
        border-color 0.18s ease;

    pointer-events: auto;
    cursor: default;
    overflow: visible;
}

.ludo-token img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 50%;
    pointer-events: none;
    user-select: none;
    -webkit-user-drag: none;
    filter:
        drop-shadow(
            0 0 4px
            var(--token-color, #39ff14)
        );
}


/* =========================================================
   SELECTABLE TOKEN
   ========================================================= */

.ludo-token.movable-token {
    cursor: pointer;
    animation: ludoTokenPulse 0.9s infinite alternate;
    border-color: #ffffff;
    box-shadow:
        0 0 8px #ffffff,
        0 0 16px var(--token-color, #39ff14),
        0 0 28px var(--token-color, #39ff14);
}

.ludo-token.movable-token:hover {
    transform:
        translate(-50%, -50%)
        scale(1.22);
    z-index: 100;
}

.ludo-token.selected-token {
    transform:
        translate(-50%, -50%)
        scale(1.28);
    border-color: #ffffff;
    box-shadow:
        0 0 10px #ffffff,
        0 0 25px var(--token-color, #39ff14),
        0 0 40px var(--token-color, #39ff14);
    z-index: 110;
}

@keyframes ludoTokenPulse {
    from {
        filter: brightness(1);
    }

    to {
        filter: brightness(1.35);
    }
}


/* =========================================================
   BASE TOKEN STATUS SLOTS
   ========================================================= */

.ludo-player-tokens {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
    margin-top: 7px;
}

.ludo-token-slot {
    width: 25px;
    height: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    border: 2px solid var(--player-color, #39ff14);
    border-radius: 50%;
    background:
        rgba(0, 0, 0, 0.75);
    box-shadow:
        inset 0 0 5px rgba(0, 0, 0, 0.8);
}

.ludo-token-slot img {
    width: 17px;
    height: 17px;
    object-fit: contain;
    border-radius: 50%;
}


/* =========================================================
   PLAYER PANELS
   ========================================================= */

.ludo-player-panels {
    position: absolute;
    inset: 0;
    z-index: 15;
    pointer-events: none;
}

.ludo-player-panel {
    position: absolute;
    transform: translate(-50%, -50%);
    width: 145px;
    min-height: 82px;
    padding: 9px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    border: 2px solid var(--player-color, #39ff14);
    border-radius: 12px;
    background:
        rgba(5, 5, 5, 0.95);
    box-shadow:
        0 0 10px
        color-mix(
            in srgb,
            var(--player-color, #39ff14) 30%,
            transparent
        );
    backdrop-filter: blur(4px);
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
    pointer-events: auto;
}

.ludo-player-panel.active-player {
    transform:
        translate(-50%, -50%)
        scale(1.06);
    box-shadow:
        0 0 12px var(--player-color, #39ff14),
        0 0 28px
        color-mix(
            in srgb,
            var(--player-color, #39ff14) 55%,
            transparent
        );
}

.ludo-player-panel-name {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 13px;
    font-weight: 900;
    color:
        var(--player-color, #39ff14);
    text-shadow:
        0 0 5px
        color-mix(
            in srgb,
            var(--player-color, #39ff14) 60%,
            transparent
        );
}

.ludo-player-panel-number {
    margin-top: 2px;
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 0.8px;
    color: rgba(255, 255, 255, 0.6);
    text-align: center;
}


/* =========================================================
   TOKEN HOME COUNTER
   ========================================================= */

.ludo-player-home-count {
    margin-top: 4px;
    font-size: 8px;
    font-weight: 800;
    letter-spacing: 0.8px;
    color: rgba(255, 255, 255, 0.75);
}


/* =========================================================
   GAME INFORMATION BAR
   ========================================================= */

.ludo-game-info {
    position: absolute;
    left: 50%;
    bottom: 12px;
    transform: translateX(-50%);
    z-index: 30;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    padding: 8px 12px;
    box-sizing: border-box;
    border: 2px solid var(--turn-color, #39ff14);
    border-radius: 12px;
    background:
        rgba(5, 5, 5, 0.96);
    box-shadow:
        0 0 15px
        color-mix(
            in srgb,
            var(--turn-color, #39ff14) 30%,
            transparent
        );
}


/* =========================================================
   TURN DISPLAY
   ========================================================= */

.ludo-turn-display {
    min-width: 105px;
    text-align: center;
}

.ludo-turn-label {
    font-size: 8px;
    font-weight: 800;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.55);
}

.ludo-turn-player {
    margin-top: 2px;
    max-width: 130px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 13px;
    font-weight: 900;
    color:
        var(--turn-color, #39ff14);
}


/* =========================================================
   DICE AREA
   ========================================================= */

.ludo-dice-area {
    display: flex;
    align-items: center;
    gap: 8px;
}


/* =========================================================
   DICE
   ========================================================= */

.ludo-dice {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    border: 2px solid #39ff14;
    border-radius: 8px;
    background: #080808;
    color: #fff;
    font-size: 21px;
    font-weight: 900;
    box-shadow:
        0 0 8px rgba(57, 255, 20, 0.4);
    transition:
        transform 0.15s ease,
        box-shadow 0.15s ease;
}

.ludo-dice.rolling {
    animation: ludoDiceRoll 0.45s ease;
}

@keyframes ludoDiceRoll {
    0% {
        transform: rotate(0deg) scale(1);
    }

    25% {
        transform: rotate(90deg) scale(1.08);
    }

    50% {
        transform: rotate(180deg) scale(0.92);
    }

    75% {
        transform: rotate(270deg) scale(1.08);
    }

    100% {
        transform: rotate(360deg) scale(1);
    }
}


/* =========================================================
   ROLL BUTTON
   ========================================================= */

.ludo-roll-dice-button {
    min-width: 105px;
    height: 40px;
    padding: 0 12px;
    border: 2px solid #39ff14;
    border-radius: 8px;
    background: #0b0b0b;
    color: #39ff14;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 1px;
    cursor: pointer;
    transition:
        transform 0.15s ease,
        background 0.15s ease,
        box-shadow 0.15s ease,
        opacity 0.15s ease;
}

.ludo-roll-dice-button:hover:not(:disabled) {
    transform: scale(1.05);
    background: #142014;
    box-shadow:
        0 0 10px rgba(57, 255, 20, 0.5);
}

.ludo-roll-dice-button:active:not(:disabled) {
    transform: scale(0.96);
}

.ludo-roll-dice-button:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    transform: none;
}


/* =========================================================
   LUDO EXTRA ROLL MESSAGE
   ========================================================= */

.ludo-extra-roll {
    position: absolute;
    left: 50%;
    top: 48%;
    transform: translate(-50%, -50%);
    z-index: 40;
    padding: 9px 18px;
    border: 2px solid #39ff14;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.9);
    color: #39ff14;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 1.5px;
    text-align: center;
    pointer-events: none;
    animation: ludoExtraRollMessage 1.2s ease forwards;
}

@keyframes ludoExtraRollMessage {
    0% {
        opacity: 0;
        transform:
            translate(-50%, -35%)
            scale(0.8);
    }

    20% {
        opacity: 1;
        transform:
            translate(-50%, -50%)
            scale(1);
    }

    75% {
        opacity: 1;
    }

    100% {
        opacity: 0;
        transform:
            translate(-50%, -65%)
            scale(1.05);
    }
}


/* =========================================================
   LUDO WINNER / RESULT SCREEN
   ========================================================= */

.ludo-result-overlay {
    position: absolute;
    inset: 0;
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        radial-gradient(
            circle at center,
            rgba(57, 255, 20, 0.18),
            rgba(0, 0, 0, 0.94) 65%
        );
    backdrop-filter: blur(5px);
    animation: ludoResultFadeIn 0.35s ease;
}

@keyframes ludoResultFadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.ludo-result-box {
    width: min(500px, 85vw);
    padding: 35px 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    border: 3px solid var(--winner-color, #39ff14);
    border-radius: 20px;
    background:
        linear-gradient(
            145deg,
            rgba(20, 20, 20, 0.98),
            rgba(3, 3, 3, 0.98)
        );
    box-shadow:
        0 0 20px var(--winner-color, #39ff14),
        0 0 50px
        color-mix(
            in srgb,
            var(--winner-color, #39ff14) 40%,
            transparent
        );
    text-align: center;
    animation: ludoWinnerBoxIn 0.45s ease;
}

@keyframes ludoWinnerBoxIn {
    from {
        transform: scale(0.75);
    }

    to {
        transform: scale(1);
    }
}

.ludo-result-title {
    margin: 0;
    font-size: clamp(28px, 5vw, 50px);
    font-weight: 900;
    letter-spacing: 4px;
    color: var(--winner-color, #39ff14);
    text-shadow:
        0 0 10px var(--winner-color, #39ff14),
        0 0 25px
        color-mix(
            in srgb,
            var(--winner-color, #39ff14) 60%,
            transparent
        );
}

.ludo-result-player {
    margin-top: 12px;
    font-size: clamp(20px, 3vw, 30px);
    font-weight: 900;
    color: #ffffff;
}

.ludo-result-message {
    margin-top: 8px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.65);
}

.ludo-result-buttons {
    display: flex;
    gap: 15px;
    margin-top: 28px;
}

.ludo-result-restart,
.ludo-result-exit {
    min-width: 145px;
    min-height: 45px;
    padding: 10px 18px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 1px;
    cursor: pointer;
    transition:
        transform 0.18s ease,
        background 0.18s ease,
        color 0.18s ease,
        box-shadow 0.18s ease;
}

.ludo-result-restart {
    border: 2px solid #39ff14;
    background: #0a0a0a;
    color: #39ff14;
}

.ludo-result-restart:hover {
    transform: scale(1.06);
    background: #39ff14;
    color: #000;
    box-shadow:
        0 0 15px #39ff14;
}

.ludo-result-exit {
    border: 2px solid #ff3030;
    background: #0a0a0a;
    color: #ff3030;
}

.ludo-result-exit:hover {
    transform: scale(1.06);
    background: #ff3030;
    color: #000;
    box-shadow:
        0 0 15px #ff3030;
}


/* =========================================================
   EXIT BUTTON
   ========================================================= */

.ludo-game-exit {
    min-width: 75px;
    height: 40px;
    padding: 0 10px;
    border: 2px solid #ff3030;
    border-radius: 8px;
    background: #090909;
    color: #ff3030;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 1px;
    cursor: pointer;
    transition:
        transform 0.15s ease,
        background 0.15s ease,
        box-shadow 0.15s ease;
}

.ludo-game-exit:hover {
    transform: scale(1.05);
    background: rgba(255, 48, 48, 0.12);
    box-shadow:
        0 0 10px rgba(255, 48, 48, 0.45);
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 900px) {

    .ludo-board-stage {
        width: 76vw;
        height: 76vw;
        min-width: 360px;
        min-height: 360px;
    }

    .ludo-board {
        width: 66%;
        height: 66%;
    }

    .ludo-player-panel {
        width: 120px;
        min-height: 72px;
    }

    .ludo-token-slot {
        width: 21px;
        height: 21px;
    }

    .ludo-token-slot img {
        width: 14px;
        height: 14px;
    }

    .ludo-token {
        width: clamp(22px, 4.8%, 38px);
        height: clamp(22px, 4.8%, 38px);
        border-width: 2px;
    }

    .ludo-game-info {
        gap: 8px;
        padding: 7px;
    }
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 600px) {

    .ludo-game-wrapper {
        padding: 10px;
    }

    .ludo-game-title {
        font-size: 30px;
    }

    .ludo-game-subtitle {
        font-size: 8px;
    }

    .ludo-board-stage {
        width: 90vw;
        height: 90vw;
        min-width: 300px;
        min-height: 300px;
        margin-top: 10px;
    }

    .ludo-board {
        width: 68%;
        height: 68%;
        border-width: 3px;
    }

    .ludo-player-panel {
        width: 92px;
        min-height: 60px;
        padding: 5px;
    }

    .ludo-player-panel-name {
        font-size: 9px;
    }

    .ludo-player-panel-number {
        font-size: 6px;
    }

    .ludo-player-home-count {
        font-size: 6px;
    }

    .ludo-player-tokens {
        gap: 3px;
        margin-top: 4px;
    }

    .ludo-token-slot {
        width: 15px;
        height: 15px;
        border-width: 1px;
    }

    .ludo-token-slot img {
        width: 10px;
        height: 10px;
    }

    .ludo-token {
        width: clamp(18px, 6vw, 30px);
        height: clamp(18px, 6vw, 30px);
        border-width: 2px;
        padding: 1px;
    }

    .ludo-game-info {
        bottom: 5px;
        gap: 5px;
        padding: 5px;
        transform:
            translateX(-50%)
            scale(0.85);
    }

    .ludo-turn-display {
        min-width: 70px;
    }

    .ludo-turn-label {
        font-size: 6px;
    }

    .ludo-turn-player {
        font-size: 9px;
    }

    .ludo-dice {
        width: 32px;
        height: 32px;
        font-size: 16px;
    }

    .ludo-roll-dice-button {
        min-width: 72px;
        height: 32px;
        font-size: 8px;
    }

    .ludo-game-exit {
        min-width: 55px;
        height: 32px;
        font-size: 8px;
    }

    .ludo-result-box {
        padding: 25px 18px;
    }

    .ludo-result-buttons {
        flex-direction: column;
        width: 100%;
    }

    .ludo-result-restart,
    .ludo-result-exit {
        width: 100%;
    }
}


/* =========================================================
   VERY SMALL MOBILE
   ========================================================= */

@media (max-width: 400px) {

    .ludo-board-stage {
        width: 94vw;
        height: 94vw;
        min-width: 270px;
        min-height: 270px;
    }

    .ludo-board {
        width: 67%;
        height: 67%;
    }

    .ludo-player-panel {
        width: 72px;
        min-height: 52px;
    }

    .ludo-player-panel-name {
        font-size: 8px;
    }

    .ludo-player-panel-number {
        font-size: 5px;
    }

    .ludo-player-home-count {
        font-size: 5px;
    }

    .ludo-player-tokens {
        gap: 2px;
    }

    .ludo-token-slot {
        width: 12px;
        height: 12px;
    }

    .ludo-token-slot img {
        width: 8px;
        height: 8px;
    }

    .ludo-token {
        width: 18px;
        height: 18px;
        border-width: 1px;
    }

    .ludo-result-title {
        font-size: 28px;
    }

    .ludo-result-player {
        font-size: 20px;
    }
}
/* =========================================================
   LUDO V2 — CLEAN 2/3/4 PLAYER BOARD
   ========================================================= */

#ludo-game {
    position: fixed;
    inset: 0;
    z-index: 999;
    width: 100vw;
    height: 100vh;
    overflow: auto;
    background: #050805;
}

.ludo-v2-wrapper {
    position: relative;
    width: 100%;
    min-height: 100vh;
    padding: 8px 16px 18px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    overflow: auto;
}

.ludo-v2-header {
    flex: 0 0 auto;
    text-align: center;
    line-height: 1;
    z-index: 20;
}

.ludo-v2-title {
    font-size: clamp(28px, 4vw, 54px);
    font-weight: 1000;
    letter-spacing: 5px;
    color: #39ff14;
    text-shadow: 0 0 12px rgba(57,255,20,.7);
}

.ludo-v2-subtitle {
    margin-top: 5px;
    font-size: clamp(10px, 1.2vw, 15px);
    font-weight: 900;
    letter-spacing: 2px;
    color: rgba(255,255,255,.72);
}

.ludo-v2-play-area {
    width: min(1160px, 96vw);
    display: grid;
    grid-template-columns: minmax(520px, 820px) 260px;
    align-items: center;
    justify-content: center;
    gap: 22px;
}

.ludo-v2-board-stage {
    position: relative;
    width: min(78vh, 68vw);
    height: min(78vh, 68vw);
    max-width: 820px;
    max-height: 820px;
    min-width: 520px;
    min-height: 520px;
}

.ludo-v2-board {
    position: absolute;
    inset: 0;
    overflow: hidden;
    background: #101510;
    border: 4px solid rgba(255,255,255,.2);
    box-shadow:
        0 0 0 2px rgba(57,255,20,.08),
        0 0 35px rgba(0,0,0,.8),
        inset 0 0 25px rgba(57,255,20,.06);
}

.ludo-v2-square-board {
    display: grid;
    grid-template-columns: repeat(15, 1fr);
    grid-template-rows: repeat(15, 1fr);
    border-radius: 14px;
}

/* -------------------------
   FOUR CLASSIC BASES
   ------------------------- */

.ludo-v2-base {
    position: absolute;
    z-index: 2;
    left: calc((var(--base-col) - 1) / 15 * 100%);
    top: calc((var(--base-row) - 1) / 15 * 100%);
    width: 40%;
    height: 40%;
    padding: 4%;
    box-sizing: border-box;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #050505;
    border: 3px solid rgba(0,0,0,.5);
    box-shadow: inset 0 0 20px rgba(255,255,255,.12);
}

.ludo-v2-base-green { background: #39ff14; }
.ludo-v2-base-red { background: #ff3030; }
.ludo-v2-base-blue { background: #2196ff; }
.ludo-v2-base-yellow { background: #ffd400; }

.ludo-v2-base-title {
    max-width: 95%;
    margin-bottom: 5%;
    font-size: clamp(8px, 1.25vw, 16px);
    font-weight: 1000;
    text-align: center;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ludo-v2-base-inner {
    width: 72%;
    aspect-ratio: 1;
    padding: 8%;
    box-sizing: border-box;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10%;
    border-radius: 14px;
    background: rgba(255,255,255,.78);
    border: 2px solid rgba(0,0,0,.35);
}

.ludo-v2-base-inner div {
    border-radius: 50%;
    background: rgba(255,255,255,.8);
    border: 2px solid rgba(0,0,0,.28);
}

/* -------------------------
   TRACK + HOME LANES
   ------------------------- */

.ludo-v2-track-cell,
.ludo-v2-home-cell {
    position: absolute;
    left: calc((var(--grid-col) - 1) / 15 * 100%);
    top: calc((var(--grid-row) - 1) / 15 * 100%);
    width: calc(100% / 15);
    height: calc(100% / 15);
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(0,0,0,.3);
    background: rgba(245,245,245,.96);
    color: #111;
    font-size: clamp(7px, 1vw, 13px);
    font-weight: 1000;
    z-index: 5;
}

.ludo-v2-track-cell.safe {
    background: #d7ffd0;
    box-shadow: inset 0 0 0 2px rgba(57,255,20,.55);
}

.ludo-v2-track-cell.ludo-v2-start-0 { background: #39ff14; }
.ludo-v2-track-cell.ludo-v2-start-1 { background: #ff3030; }
.ludo-v2-track-cell.ludo-v2-start-2 { background: #2196ff; }
.ludo-v2-track-cell.ludo-v2-start-3 { background: #ffd400; }

.ludo-v2-star {
    font-size: clamp(10px, 1.35vw, 18px);
    line-height: 1;
    color: #111;
}

.ludo-v2-home-cell {
    z-index: 6;
    background: var(--lane-color);
    color: #111;
    font-size: clamp(7px, 1vw, 13px);
}

/* =========================================================
   LUDO CENTER — FOUR REAL HOME TRIANGLES
   ========================================================= */

.ludo-v2-center {
    position: absolute;
    left: 40%;
    top: 40%;
    width: 20%;
    height: 20%;
    z-index: 9;
    background: transparent;
    display: block;

    /* CENTER HOME ROTATION */
    transform: rotate(-90deg);
    transform-origin: center center;
}

/* Remove old center-circle styling if present. */
.ludo-v2-center-inner {
    display: none !important;
}

/* All four triangles */
.ludo-v2-center-triangle {
    position: absolute;

    width: 50%;
    height: 50%;

    margin: 0;
    padding: 0;

    border: 0;

    display: block;
}

/* =========================================
   GREEN — TOP
   Large side toward outside.
   Point toward center.
   ========================================= */

.ludo-center-green {
    left: 25%;
    top: 0;

    background: #39ff14;

    clip-path:
        polygon(
            0 0,
            100% 0,
            50% 100%
        );
}

/* =========================================
   RED — RIGHT
   ========================================= */

.ludo-center-red {
    left: 50%;
    top: 25%;

    background: #ff3030;

    clip-path:
        polygon(
            0 0,
            100% 50%,
            0 100%
        );
}

/* =========================================
   BLUE — BOTTOM
   ========================================= */

.ludo-center-blue {
    left: 25%;
    top: 50%;

    background: #2196ff;

    clip-path:
        polygon(
            0 0,
            100% 0,
            50% 100%
        );
}

/* =========================================
   YELLOW — LEFT
   ========================================= */

.ludo-center-yellow {
    left: 0;
    top: 25%;

    background: #ffd400;

    clip-path:
        polygon(
            0 50%,
            100% 0,
            100% 100%
        );
}


/* =========================================================
   ALL FOUR TRIANGLES
   ========================================================= */

.ludo-v2-center-triangle {

    position: absolute;

    width: 100%;
    height: 100%;

    inset: 0;

    pointer-events: none;
}


/* =========================================================
   GREEN — TOP
   Wide side OUTSIDE
   Point toward CENTER
   ========================================================= */

.ludo-center-green {

    background: #39ff14;

    clip-path: polygon(
        0% 0%,
        100% 0%,
        50% 50%
    );
}


/* =========================================================
   RED — RIGHT
   Wide side OUTSIDE
   Point toward CENTER
   ========================================================= */

.ludo-center-red {

    background: #ff3030;

    clip-path: polygon(
        100% 0%,
        100% 100%,
        50% 50%
    );
}


/* =========================================================
   BLUE — BOTTOM
   Wide side OUTSIDE
   Point toward CENTER
   ========================================================= */

.ludo-center-blue {

    background: #2196ff;

    clip-path: polygon(
        0% 100%,
        100% 100%,
        50% 50%
    );
}


/* =========================================================
   YELLOW — LEFT
   Wide side OUTSIDE
   Point toward CENTER
   ========================================================= */

.ludo-center-yellow {

    background: #ffd400;

    clip-path: polygon(
        0% 0%,
        50% 50%,
        0% 100%
    );
}

/* -------------------------
   ALIEN TOKENS
   ------------------------- */

.ludo-v2-token-layer {
    position: absolute;
    inset: 0;
    z-index: 30;
    pointer-events: none;
}

.ludo-v2-token {
    position: absolute;
    width: clamp(40px, 5.8%, 54px);
height: clamp(40px, 5.8%, 54px);
    padding: 3px;
    box-sizing: border-box;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    border: 3px solid var(--token-color);
    background: #070707;
    box-shadow:
        0 0 8px var(--token-color),
        inset 0 0 6px rgba(255,255,255,.18);
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: auto;
    cursor: pointer;
    transition: left .08s linear, top .08s linear, filter .15s, transform .15s;
}

.ludo-v2-token img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    pointer-events: none;
}

.ludo-v2-token.legal {
    animation: ludoV2TokenPulse .8s infinite alternate;
    filter: brightness(1.35);
}

.ludo-v2-token.finished {
    box-shadow: 0 0 12px var(--token-color), 0 0 24px var(--token-color);
}

.ludo-v2-home-mark {
    position: absolute;
    right: -4px;
    bottom: -4px;
    width: 13px;
    height: 13px;
    border-radius: 50%;
    background: #fff;
    color: #000;
    font-size: 9px;
    font-weight: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

@keyframes ludoV2TokenPulse {
    from { transform: translate(-50%, -50%) scale(1); }
    to   { transform: translate(-50%, -50%) scale(1.16); }
}

/* -------------------------
   TURN / DICE / EXIT — BESIDE BOARD
   ------------------------- */

.ludo-v2-info {
    position: relative;
    z-index: 100;
    width: 260px;
    min-width: 260px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    padding: 14px;
    box-sizing: border-box;
    border: 2px solid rgba(255,255,255,.14);
    border-radius: 14px;
    background: rgba(5,8,5,.96);
    box-shadow: 0 0 18px rgba(0,0,0,.65);
}

.ludo-v2-turn {
    min-width: 0;
    padding: 10px 10px 10px 12px;
    border-left: 4px solid var(--turn-color);
    background: rgba(255,255,255,.025);
    border-radius: 5px;
}

.ludo-v2-turn-label {
    display: block;
    font-size: clamp(8px, 1vw, 12px);
    font-weight: 900;
    letter-spacing: 1px;
    color: rgba(255,255,255,.55);
}

.ludo-v2-turn-name {
    display: block;
    margin-top: 3px;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: clamp(12px, 1.6vw, 20px);
    font-weight: 1000;
}

.ludo-v2-dice-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.ludo-v2-dice {
    width: 58px;
    height: 58px;
    border-radius: 10px;
    border: 3px solid #39ff14;
    background: #050505;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 1000;
    box-shadow: 0 0 12px rgba(57,255,20,.25);
}

.ludo-v2-dice.roll {
    animation: ludoV2DiceRoll .25s ease-out;
}

@keyframes ludoV2DiceRoll {
    0% { transform: rotate(0deg) scale(.8); }
    50% { transform: rotate(12deg) scale(1.12); }
    100% { transform: rotate(0deg) scale(1); }
}

.ludo-v2-roll,
.ludo-v2-exit,
.ludo-v2-result-buttons button {
    border: 2px solid #39ff14;
    border-radius: 9px;
    background: #080c08;
    color: #fff;
    padding: 10px 14px;
    font-size: clamp(9px, 1vw, 13px);
    font-weight: 1000;
    letter-spacing: .8px;
    cursor: pointer;
}

.ludo-v2-roll {
    width: 100%;
}

.ludo-v2-roll:hover:not(:disabled),
.ludo-v2-exit:hover,
.ludo-v2-result-buttons button:hover {
    transform: scale(1.04);
    box-shadow: 0 0 14px rgba(57,255,20,.35);
}

.ludo-v2-roll:disabled {
    opacity: .4;
    cursor: not-allowed;
}

.ludo-v2-exit {
    width: 100%;
    border-color: #ff3030;
}

/* -------------------------
   RESULT
   ------------------------- */

.ludo-v2-result {
    position: fixed;
    inset: 0;
    z-index: 5000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(0,0,0,.78);
}

.ludo-v2-result-panel {
    width: min(90vw, 480px);
    padding: 28px;
    box-sizing: border-box;
    text-align: center;
    border: 3px solid var(--winner-color);
    border-radius: 18px;
    background: #080b08;
    box-shadow: 0 0 30px var(--winner-color);
}

.ludo-v2-result-title {
    color: #fff;
    font-size: 18px;
    font-weight: 1000;
    letter-spacing: 3px;
}

.ludo-v2-result-name {
    margin-top: 12px;
    color: var(--winner-color);
    font-size: clamp(25px, 5vw, 42px);
    font-weight: 1000;
}

.ludo-v2-result-subtitle {
    margin-top: 8px;
    color: rgba(255,255,255,.65);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 1px;
}

.ludo-v2-result-buttons {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 22px;
}

.ludo-v2-result-buttons button:last-child {
    border-color: #ff3030;
}

/* -------------------------
   NAME MENU
   ------------------------- */

.ludo-v2-name-row {
    display: flex;
    align-items: center;
    gap: 10px;
    width: min(90vw, 520px);
    margin: 7px auto;
}

.ludo-v2-name-color {
    width: 92px;
    flex: 0 0 92px;
    padding: 8px 6px;
    box-sizing: border-box;
    border-radius: 7px;
    background: var(--player-color);
    color: #050505;
    font-size: 10px;
    font-weight: 1000;
    text-align: center;
}

.ludo-v2-name-input {
    min-width: 0;
    flex: 1;
    padding: 9px 11px;
    border: 2px solid rgba(255,255,255,.18);
    border-radius: 8px;
    outline: none;
    background: #080c08;
    color: #fff;
    font-weight: 800;
}

.ludo-v2-name-input:focus {
    border-color: #39ff14;
}



/* -------------------------
   RESPONSIVE
   ------------------------- */

@media (max-width: 1050px) {
    .ludo-v2-play-area {
        grid-template-columns: 1fr;
        justify-items: center;
    }

    .ludo-v2-info {
        width: min(92vw, 760px);
        min-width: 0;
        display: grid;
        grid-template-columns: 1fr auto auto;
        align-items: center;
    }

    .ludo-v2-dice-area {
        flex-direction: row;
    }

    .ludo-v2-roll {
        width: auto;
    }

    .ludo-v2-exit {
        width: auto;
    }
}

@media (max-width: 700px) {
    .ludo-v2-wrapper {
        padding: 10px 8px 16px;
    }

    .ludo-v2-board-stage {
        width: 94vw;
        height: 94vw;
        min-width: 300px;
        min-height: 300px;
    }

    .ludo-v2-info {
        width: 94vw;
        min-width: 0;
        display: flex;
        flex-direction: column;
    }

    .ludo-v2-dice-area {
        flex-direction: row;
    }

    .ludo-v2-roll,
    .ludo-v2-exit {
        width: auto;
    }

    .ludo-v2-token {
        width: 24px;
        height: 24px;
        padding: 2px;
        border-width: 2px;
    }

    .ludo-v2-base-title {
        font-size: 8px;
    }

    .ludo-v2-base-inner {
        width: 78%;
    }
}

/* =========================================================
   LUDO 3D-STYLE DICE
   ========================================================= */

.ludo-v2-dice {
    --dice-size: 68px;

    position: relative;

    width: var(--dice-size);
    height: var(--dice-size);

    flex: 0 0 var(--dice-size);

    box-sizing: border-box;

    border-radius: 14px;

    background:
        linear-gradient(
            145deg,
            #ffffff 0%,
            #eeeeee 55%,
            #cfcfcf 100%
        );

    border: 3px solid #111;

    box-shadow:
        0 5px 0 #777,
        0 8px 16px rgba(0,0,0,.55);

    display: block;

    transform-style: preserve-3d;
}

/* Dice dots */

.ludo-v2-dice .dice-dot {
    position: absolute;

    width: 10px;
    height: 10px;

    border-radius: 50%;

    background: #111;

    transform:
        translate(-50%, -50%);

    opacity: 0;
}

/* 3 × 3 dot grid */

.ludo-v2-dice .dot-1 {
    left: 25%;
    top: 25%;
}

.ludo-v2-dice .dot-2 {
    left: 50%;
    top: 25%;
}

.ludo-v2-dice .dot-3 {
    left: 75%;
    top: 25%;
}

.ludo-v2-dice .dot-4 {
    left: 25%;
    top: 50%;
}

.ludo-v2-dice .dot-5 {
    left: 50%;
    top: 50%;
}

.ludo-v2-dice .dot-6 {
    left: 75%;
    top: 50%;
}

.ludo-v2-dice .dot-7 {
    left: 25%;
    top: 75%;
}

.ludo-v2-dice .dot-8 {
    left: 50%;
    top: 75%;
}

.ludo-v2-dice .dot-9 {
    left: 75%;
    top: 75%;
}

/* =========================================
   DICE FACE 1
   ========================================= */

.ludo-v2-dice[data-value="1"] .dot-5,

/* =========================================
   DICE FACE 2
   ========================================= */

.ludo-v2-dice[data-value="2"] .dot-1,
.ludo-v2-dice[data-value="2"] .dot-9,

/* =========================================
   DICE FACE 3
   ========================================= */

.ludo-v2-dice[data-value="3"] .dot-1,
.ludo-v2-dice[data-value="3"] .dot-5,
.ludo-v2-dice[data-value="3"] .dot-9,

/* =========================================
   DICE FACE 4
   ========================================= */

.ludo-v2-dice[data-value="4"] .dot-1,
.ludo-v2-dice[data-value="4"] .dot-3,
.ludo-v2-dice[data-value="4"] .dot-7,
.ludo-v2-dice[data-value="4"] .dot-9,

/* =========================================
   DICE FACE 5
   ========================================= */

.ludo-v2-dice[data-value="5"] .dot-1,
.ludo-v2-dice[data-value="5"] .dot-3,
.ludo-v2-dice[data-value="5"] .dot-5,
.ludo-v2-dice[data-value="5"] .dot-7,
.ludo-v2-dice[data-value="5"] .dot-9,

/* =========================================
   DICE FACE 6
   ========================================= */

.ludo-v2-dice[data-value="6"] .dot-1,
.ludo-v2-dice[data-value="6"] .dot-3,
.ludo-v2-dice[data-value="6"] .dot-4,
.ludo-v2-dice[data-value="6"] .dot-6,
.ludo-v2-dice[data-value="6"] .dot-7,
.ludo-v2-dice[data-value="6"] .dot-9 {

    opacity: 1;
}

/* =========================================
   DICE ROLL ANIMATION
   ========================================= */

.ludo-v2-dice.roll {
    animation:
        ludoDiceRoll
        .55s
        cubic-bezier(.25,.8,.25,1);
}

@keyframes ludoDiceRoll {

    0% {
        transform:
            rotateX(0deg)
            rotateY(0deg)
            rotateZ(0deg)
            scale(1);
    }

    30% {
        transform:
            rotateX(120deg)
            rotateY(90deg)
            rotateZ(45deg)
            scale(1.12);
    }

    65% {
        transform:
            rotateX(250deg)
            rotateY(220deg)
            rotateZ(120deg)
            scale(1.08);
    }

    100% {
        transform:
            rotateX(360deg)
            rotateY(360deg)
            rotateZ(0deg)
            scale(1);
    }
}


/* =========================================================
   UNIVERSAL CAPSULE BATTERY
   One design for every watch (Negatrix / Zombitrix style).
   Each watch only changes the theme color below.
   ========================================================= */

.cap-battery {
    --cap-rgb: 0, 255, 85;
    --cap-color: #00ff55;
    --cap-soft: #7dffa6;

    width: 125px !important;
    height: 145px !important;

    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;

    text-align: center;
}

/* ---------- WATCH THEMES ---------- */

.cap-green  { --cap-rgb: 0, 255, 85;    --cap-color: #00ff55; --cap-soft: #7dffa6; }
.cap-red    { --cap-rgb: 255, 40, 40;   --cap-color: #ff3030; --cap-soft: #ff8a8a; }
.cap-blue   { --cap-rgb: 0, 170, 255;   --cap-color: #00aaff; --cap-soft: #7fd4ff; }
.cap-pink   { --cap-rgb: 255, 79, 216;  --cap-color: #ff4fd8; --cap-soft: #ffa3ec; }

/* Power Watch / Negatrix / Zombitrix take their theme
   from the Special Watch database */
.power-watch-theme .cap-battery { --cap-rgb: 255, 140, 0;   --cap-color: #ff9d2e; --cap-soft: #ffc985; }
.negatrix-theme    .cap-battery { --cap-rgb: 200, 200, 200; --cap-color: #d0d0d0; --cap-soft: #ffffff; }
.zombitrix-theme   .cap-battery { --cap-rgb: 190, 80, 255;  --cap-color: #d9a0ff; --cap-soft: #ecd0ff; }

/* ---------- CAPSULE BODY ---------- */

.cap-battery .cap-core {
    position: relative;
    width: 78px;
    height: 105px;
    flex: 0 0 auto;

    border: 2px solid rgba(var(--cap-rgb), 0.75);
    border-radius: 38px;
    background: rgba(0, 0, 0, 0.65);
    overflow: hidden;

    display: flex;
    align-items: center;
    justify-content: center;

    box-shadow:
        0 0 18px rgba(var(--cap-rgb), 0.35),
        inset 0 0 20px rgba(var(--cap-rgb), 0.08);
}

/* ---------- FILL (height is set by each watch's timer) ---------- */

.cap-battery .cap-fill {
    position: absolute !important;
    left: 0 !important;
    right: auto !important;
    top: auto !important;
    bottom: 0 !important;
    width: 100% !important;
    height: 100%;
    margin: 0 !important;
    transform: none !important;
    border-radius: 0 !important;
    opacity: 1 !important;
    clip-path: none !important;
    animation: none !important;

    background: #00ff55;
    box-shadow: 0 0 10px #00ff55, 0 0 20px #00ff55;

    transition:
        height 0.15s linear,
        background 0.3s ease,
        box-shadow 0.3s ease;
}

/* Ultimatrix colors its fill with classes instead of inline styles */
.cap-battery .cap-fill.energy-green  { background: #00ff55 !important; box-shadow: 0 0 10px #00ff55, 0 0 20px #00ff55 !important; }
.cap-battery .cap-fill.energy-orange { background: #ff9900 !important; box-shadow: 0 0 10px #ff9900, 0 0 20px #ff9900 !important; }
.cap-battery .cap-fill.energy-red    { background: #ff2222 !important; box-shadow: 0 0 10px #ff2222, 0 0 20px #ff2222 !important; }

/* ---------- INNER RING ---------- */

.cap-battery .cap-ring {
    position: absolute !important;
    inset: 5px !important;
    border: 2px solid rgba(var(--cap-rgb), 0.4) !important;
    border-radius: 32px !important;
    pointer-events: none;
    background: none !important;
    box-shadow: none !important;
}

/* ---------- PERCENT ---------- */

.cap-battery .cap-percent {
    position: relative !important;
    z-index: 5 !important;
    color: #ffffff !important;
    font-size: 15px !important;
    font-weight: 900 !important;
    letter-spacing: 1px !important;
    text-shadow:
        0 0 3px #000,
        0 0 6px #000,
        0 0 10px rgba(var(--cap-rgb), 0.9) !important;
}

/* ---------- LABEL ---------- */

.cap-battery .cap-label {
    margin-top: 10px !important;
    font-size: 9px !important;
    font-weight: 900 !important;
    letter-spacing: 2px !important;
    text-transform: uppercase;
    white-space: nowrap;
    color: var(--cap-color) !important;
    text-shadow: 0 0 8px rgba(var(--cap-rgb), 0.8) !important;
}


/* ========================================
   SETTINGS PAGE
======================================== */

.settings-page {

    width: 100%;
    min-height: 100vh;

    box-sizing: border-box;

    align-items: center;
    justify-content: center;

    padding: 30px 20px;

    background:
        radial-gradient(
            circle at center,
            rgba(0, 255, 80, 0.12),
            rgba(0, 0, 0, 0.96) 70%
        );

    color: white;

    overflow-y: auto;
}


/* ========================================
   SETTINGS CONTAINER
======================================== */

.settings-container {

    width: min(850px, 94%);

    margin: auto;

    display: flex;
    flex-direction: column;
    align-items: center;

    gap: 14px;
}


/* ========================================
   TITLE
======================================== */

.settings-container > h1 {

    margin: 0 0 8px 0;

    color: #00ff66;

    font-size: clamp(32px, 5vw, 52px);

    font-weight: bold;

    letter-spacing: 3px;

    text-align: center;

    text-shadow:
        0 0 10px #00ff66,
        0 0 25px rgba(0, 255, 102, 0.6);
}


/* ========================================
   SETTING ROW
======================================== */

.settings-item {

    width: 100%;

    min-height: 76px;

    box-sizing: border-box;

    padding: 14px 20px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 20px;

    background:
        rgba(0, 0, 0, 0.65);

    border: 2px solid rgba(0, 255, 102, 0.45);

    border-radius: 12px;

    box-shadow:
        0 0 12px rgba(0, 255, 102, 0.12);

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}


.settings-item:hover {

    border-color: #00ff66;

    box-shadow:
        0 0 18px rgba(0, 255, 102, 0.25);
}


/* ========================================
   TEXT AREA
======================================== */

.settings-item-info {

    display: flex;

    align-items: center;

    gap: 15px;

    min-width: 0;
}


.settings-icon {

    width: 40px;

    flex-shrink: 0;

    font-size: 30px;

    text-align: center;
}


.settings-item h2,
.settings-feedback h2 {

    margin: 0 0 3px 0;

    color: #00ff66;

    font-size: 17px;

    letter-spacing: 1px;
}


.settings-item p,
.settings-feedback p {

    margin: 0;

    color: rgba(255, 255, 255, 0.65);

    font-size: 13px;
}


/* ========================================
   TOGGLE
======================================== */

.settings-toggle {

    position: relative;

    width: 58px;
    height: 30px;

    flex-shrink: 0;
}


.settings-toggle input {

    opacity: 0;

    width: 0;
    height: 0;
}


.settings-slider {

    position: absolute;

    inset: 0;

    cursor: pointer;

    background: #222;

    border: 2px solid #555;

    border-radius: 30px;

    transition: 0.25s;
}


.settings-slider::before {

    content: "";

    position: absolute;

    width: 22px;
    height: 22px;

    left: 3px;
    top: 2px;

    background: white;

    border-radius: 50%;

    transition: 0.25s;
}


.settings-toggle input:checked + .settings-slider {

    background: #00ff66;

    border-color: #00ff66;

    box-shadow:
        0 0 10px rgba(0, 255, 102, 0.6);
}


.settings-toggle input:checked + .settings-slider::before {

    transform: translateX(27px);

    background: black;
}


/* ========================================
   RATING
======================================== */

.rating-stars {

    display: flex;

    align-items: center;

    gap: 2px;

    flex-shrink: 0;
}


.rating-star {

    border: none;

    outline: none;

    background: transparent;

    color: #444;

    font-size: 32px;

    line-height: 1;

    padding: 2px;

    cursor: pointer;

    transition:
        transform 0.15s ease,
        color 0.15s ease,
        text-shadow 0.15s ease;
}


.rating-star:hover {

    color: #00ff66;

    transform: scale(1.15);
}


.rating-star.active {

    color: #00ff66;

    text-shadow:
        0 0 8px #00ff66,
        0 0 18px rgba(0, 255, 102, 0.6);
}


/* ========================================
   FEEDBACK
======================================== */

.settings-feedback {

    width: 100%;

    box-sizing: border-box;

    padding: 16px 20px;

    display: flex;

    flex-direction: column;

    gap: 12px;

    background:
        rgba(0, 0, 0, 0.65);

    border: 2px solid rgba(0, 255, 102, 0.45);

    border-radius: 12px;

    box-shadow:
        0 0 12px rgba(0, 255, 102, 0.12);
}


.settings-feedback-title {

    display: flex;

    align-items: center;

    gap: 15px;
}


/* ========================================
   TEXTAREA
======================================== */

#settingsFeedback {

    width: 100%;

    min-height: 90px;

    box-sizing: border-box;

    padding: 12px;

    resize: vertical;

    background: rgba(0, 0, 0, 0.8);

    color: white;

    border: 1px solid rgba(0, 255, 102, 0.45);

    border-radius: 8px;

    outline: none;

    font-family: inherit;

    font-size: 14px;
}


#settingsFeedback:focus {

    border-color: #00ff66;

    box-shadow:
        0 0 10px rgba(0, 255, 102, 0.25);
}


#settingsFeedback::placeholder {

    color: rgba(255, 255, 255, 0.4);
}


/* ========================================
   SUBMIT
======================================== */

.settings-submit-button {

    align-self: center;

    min-width: 130px;

    padding: 9px 24px;

    background: #001a0a;

    color: #00ff66;

    border: 2px solid #00ff66;

    border-radius: 8px;

    font-size: 14px;

    font-weight: bold;

    letter-spacing: 1px;

    cursor: pointer;

    transition: 0.2s ease;
}


.settings-submit-button:hover {

    background: #00ff66;

    color: black;

    transform: scale(1.05);

    box-shadow:
        0 0 15px rgba(0, 255, 102, 0.5);
}


/* ========================================
   EXIT
======================================== */

.settings-exit-button {

    margin-top: 2px;

    min-width: 130px;

    padding: 9px 24px;

    background: transparent;

    color: #00ff66;

    border: 2px solid #00ff66;

    border-radius: 8px;

    font-size: 14px;

    font-weight: bold;

    letter-spacing: 1px;

    cursor: pointer;

    transition: 0.2s ease;
}


.settings-exit-button:hover {

    background: #00ff66;

    color: black;

    transform: scale(1.05);

    box-shadow:
        0 0 15px rgba(0, 255, 102, 0.5);
}


/* ========================================
   MOBILE
======================================== */

@media (max-width: 600px) {

    .settings-page {

        padding: 20px 12px;
    }


    .settings-container {

        width: 96%;

        gap: 10px;
    }


    .settings-item {

        padding: 12px 14px;
    }


    .settings-item h2,
    .settings-feedback h2 {

        font-size: 14px;
    }


    .settings-item p,
    .settings-feedback p {

        font-size: 11px;
    }


    .settings-icon {

        width: 32px;

        font-size: 25px;
    }


    .rating-star {

        font-size: 26px;
    }

}

/* ===================================== */
/* VIDEOS PAGE                           */
/* ===================================== */

.videos-page {
    background:
        radial-gradient(circle at center, rgba(0, 255, 80, 0.12), transparent 60%),
        #000;
}

.videos-page .videos-exit-button {
    z-index: 3000;
}

/* Grid covers the full page: 5 columns x 2 rows for 10 videos */
.videos-grid {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;

    display: grid;
    grid-template-columns: repeat(5, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 12px;
    padding: 12px;
    box-sizing: border-box;
}

.video-item {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    margin: 0;
    border: 2px solid rgba(0, 255, 85, 0.45);
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.75);
    box-sizing: border-box;
    overflow: hidden;
    cursor: pointer;
    min-width: 0;
    min-height: 0;
}

.video-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    display: block;
    transition: transform 0.3s ease, filter 0.3s ease;
    filter: brightness(0.85);
}

.video-item:hover img,
.video-item:focus-visible img {
    transform: scale(1.03);
    filter: brightness(1.1);
}

.video-item:hover,
.video-item:focus-visible {
    outline: 3px solid #00ff55;
    outline-offset: -3px;
    box-shadow: inset 0 0 25px rgba(0, 255, 85, 0.8);
    z-index: 1;
}

/* Fullscreen player */
.video-player-overlay {
    position: absolute;
    inset: 0;
    display: none;
    background: #000;
    z-index: 2500;
}

.video-player-overlay.show {
    display: block;
}

.video-player {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #000;
}

/* Tablet / phone: fewer columns, still fills the page */
@media (max-width: 900px) {
    .videos-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(5, 1fr);
    }
}

/* =========================================================
   FIGHTING GAME
   ========================================================= */

.fg-root {
    position: fixed;
    inset: 0;
    z-index: 1000;
    background:
        radial-gradient(circle at center, rgba(30, 100, 30, 0.35), transparent 55%),
        linear-gradient(135deg, #050505, #101010 50%, #020202);
    color: #e8ffe8;
    overflow-y: auto;
}

.fg-root *,
.fg-root *::before,
.fg-root *::after { box-sizing: border-box; }

.fg-screen {
    min-height: 100%;
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px 16px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    display: flex;
}

.fg-title {
    margin: 0 0 14px 0;
    font-size: clamp(30px, 7vw, 60px);
    font-weight: 900;
    letter-spacing: 5px;
    text-align: center;
    color: #39ff14;
    text-shadow: 0 0 8px #39ff14, 0 0 18px #39ff14, 0 0 35px rgba(57, 255, 20, 0.7);
}

.fg-heading {
    margin: 0;
    color: #39ff14;
    text-align: center;
    text-shadow: 0 0 10px #39ff14;
}

.fg-btn {
    background: #0d1a0d;
    color: #e8ffe8;
    border: 2px solid #39ff14;
    border-radius: 10px;
    padding: 10px 18px;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 1px;
    cursor: pointer;
    transition: 0.15s;
}

.fg-btn:hover:not(:disabled) { background: #39ff14; color: #000; box-shadow: 0 0 14px #39ff14; }
.fg-btn:disabled { opacity: 0.35; cursor: not-allowed; }
.fg-btn small { display: block; font-size: 11px; opacity: 0.7; font-weight: 400; }
.fg-go { background: #39ff14; color: #000; }

#fg-online-button { opacity: 0.45; cursor: not-allowed; }

.fg-row { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }

.fg-slots { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; }

.fg-slot {
    width: 150px;
    height: 170px;
    border: 2px dashed #39ff14;
    border-radius: 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    background: #0d1a0d;
    text-align: center;
    padding: 6px;
    gap: 4px;
}

.fg-slot.fg-filled { border-style: solid; }
.fg-slot.fg-current { box-shadow: 0 0 18px #39ff14; }
.fg-slot img { max-width: 100%; height: 105px; object-fit: contain; }
.fg-slot em { font-style: normal; font-size: 13px; }
.fg-slot small { opacity: 0.7; font-size: 11px; }

.fg-pick-area { display: flex; gap: 12px; width: 100%; align-items: flex-start; }
.fg-watch-list { display: flex; flex-direction: column; gap: 6px; min-width: 150px; }
.fg-watch-list .fg-btn { text-align: left; padding: 8px 10px; font-size: 14px; }
.fg-watch-list .fg-btn.fg-on { background: #39ff14; color: #000; }

.fg-alien-grid {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(98px, 1fr));
    gap: 8px;
    max-height: 48vh;
    overflow: auto;
    padding: 4px;
}

.fg-card {
    background: #0d1a0d;
    border: 2px solid #1d4d1d;
    border-radius: 10px;
    padding: 6px;
    text-align: center;
    cursor: pointer;
    font-size: 11px;
}

.fg-card:hover { border-color: #39ff14; }
.fg-card.fg-dim { opacity: 0.4; cursor: not-allowed; }
.fg-card img { width: 100%; height: 80px; object-fit: contain; }
.fg-hint { opacity: 0.6; padding: 20px; }
.fg-noimg { height: 80px; display: flex; align-items: center; justify-content: center; opacity: 0.5; }

.fg-turn { font-size: 20px; font-weight: 700; color: #39ff14; text-align: center; min-height: 1.5em; margin-top: 50px; }

.fg-arena {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 8px;
    background: linear-gradient(#0b1e0b, #061006);
    border: 2px solid #1d4d1d;
    border-radius: 16px;
    padding: 16px;
}

.fg-fighter { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.fg-fighter img { height: min(32vh, 250px); max-width: 100%; object-fit: contain; }
.fg-fighter.fg-right img { transform: scaleX(-1); }
.fg-fighter.fg-active .fg-tag { color: #39ff14; }
.fg-tag { font-weight: 700; letter-spacing: 1px; text-align: center; }

.fg-hp { position: relative; width: 90%; height: 20px; background: #222; border-radius: 10px; overflow: hidden; border: 1px solid #555; }
.fg-hp i { position: absolute; inset: 0 auto 0 0; width: 100%; background: linear-gradient(90deg, #1fbf1f, #39ff14); transition: width 0.5s; }
.fg-hp b { position: absolute; inset: 0; text-align: center; font-size: 12px; line-height: 20px; text-shadow: 0 0 3px #000; }

.fg-vs { font-weight: 900; font-size: 26px; color: #ff3b3b; }
.fg-bench { font-size: 13px; opacity: 0.85; text-align: center; }

.fg-fighter.fg-hit img { animation: fgHit 0.4s; }
@keyframes fgHit {
    25% { filter: brightness(3) drop-shadow(0 0 12px red); margin-left: -10px; }
    75% { margin-left: 10px; }
}

.fg-log {
    width: 100%;
    height: 92px;
    overflow: auto;
    background: rgba(0, 0, 0, 0.65);
    border: 1px solid #1d4d1d;
    border-radius: 10px;
    padding: 8px;
    font-size: 14px;
    display: flex;
    flex-direction: column-reverse;
}

.fg-actions { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; width: 100%; }
.fg-actions .fg-btn { padding: 14px 6px; }
.fg-actions.fg-locked .fg-btn { pointer-events: none; opacity: 0.4; }

@media (max-width: 640px) {
    .fg-pick-area { flex-direction: column; }
    .fg-watch-list { flex-direction: row; flex-wrap: wrap; }
    .fg-actions { grid-template-columns: repeat(2, 1fr); }
    .fg-actions .fg-special { grid-column: 1 / -1; }
    .fg-slot { width: 130px; }
}

.fg-input {
    width: min(340px, 88vw);
    padding: 14px 16px;
    background: #0d1a0d;
    color: #e8ffe8;
    border: 2px solid #39ff14;
    border-radius: 10px;
    font-size: 18px;
    font-weight: 700;
    text-align: center;
    letter-spacing: 1px;
    outline: none;
}

.fg-input:focus { box-shadow: 0 0 14px #39ff14; }
.fg-input::placeholder { color: rgba(232, 255, 232, 0.4); font-weight: 400; }


/* =========================================================
   WATCH COMPARISON (shared screen, themed per watch)
   Same layout as the Classic comparison screen.
   Theme variables are set by games.js for each watch.
   ========================================================= */

.wcmp-screen {
    --wc: #00ff55;
    --wc-rgb: 0, 255, 85;
    --wc-dark: 0, 20, 10;
    --wc-bg: #000000;

    position: fixed;
    inset: 0;
    z-index: 90000;
    background: var(--wc-bg);
    display: none;
    flex-direction: column;
    align-items: center;
    padding: 30px;
    box-sizing: border-box;
    overflow-y: auto;
}

.wcmp-screen *, .wcmp-screen *::before, .wcmp-screen *::after { box-sizing: border-box; }

.wcmp-header { width: 100%; display: flex; justify-content: center; align-items: center; position: relative; }

.wcmp-header h2 {
    margin: 0;
    color: var(--wc);
    font-size: 28px;
    letter-spacing: 4px;
    text-shadow: 0 0 10px var(--wc), 0 0 25px var(--wc);
}

.wcmp-close {
    position: absolute;
    right: 10px;
    top: 0;
    width: 45px;
    height: 45px;
    background: rgba(var(--wc-dark), 0.9);
    border: 2px solid var(--wc);
    border-radius: 50%;
    color: var(--wc);
    font-size: 22px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 0 15px rgba(var(--wc-rgb), 0.7);
}

.wcmp-container {
    width: 100%;
    max-width: 1100px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 50px;
    margin-top: 30px;
}

.wcmp-cards {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 50px;
}

.wcmp-container .fight-image-button {
    flex: none;
    margin-top: 0;
    width: 150px;
    height: 70px;
}

.wcmp-card.wcmp-noimg { min-height: 0; }
.wcmp-card.wcmp-noimg img { display: none; }

.wcmp-card {
    width: 300px;
    min-height: 400px;
    padding: 20px;
    text-align: center;
    background: rgba(var(--wc-dark), 0.75);
    border: 2px solid var(--wc);
    border-radius: 15px;
    box-shadow: 0 0 20px rgba(var(--wc-rgb), 0.5), inset 0 0 20px rgba(var(--wc-rgb), 0.1);
}

.wcmp-card h3 {
    color: var(--wc);
    font-size: 24px;
    letter-spacing: 2px;
    margin: 15px 0;
    text-shadow: 0 0 10px var(--wc);
}

.wcmp-card img {
    width: 220px;
    height: 220px;
    object-fit: contain;
    filter: drop-shadow(0 0 15px rgba(var(--wc-rgb), 0.8));
}

.wcmp-info { margin-top: 15px; color: #ffffff; font-size: 13px; letter-spacing: 1px; }
.wcmp-info p { margin: 6px 0; }
.wcmp-info .wcmp-value { color: var(--wc); font-weight: bold; }

.wcmp-vs { color: var(--wc); font-size: 32px; font-weight: 900; text-shadow: 0 0 10px var(--wc), 0 0 25px var(--wc); }

.wcmp-stats { margin-top: 15px; text-align: left; }
.wcmp-stat { margin-bottom: 8px; position: relative; }
.wcmp-stat > span { display: block; color: var(--wc); font-size: 9px; font-weight: bold; letter-spacing: 1px; margin-bottom: 3px; }

.wcmp-stat-bar {
    width: calc(100% - 35px);
    height: 6px;
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid rgba(var(--wc-rgb), 0.5);
    border-radius: 4px;
    overflow: hidden;
}

.wcmp-stat-bar div {
    width: 0%;
    height: 100%;
    background: var(--wc);
    box-shadow: 0 0 8px var(--wc);
    border-radius: 4px;
    transition: width 0.6s ease;
}

.wcmp-stat strong { position: absolute; right: 0; bottom: 0; color: white; font-size: 10px; }

.wcmp-select {
    width: 90%;
    padding: 10px;
    background: #000000;
    color: var(--wc);
    border: 2px solid var(--wc);
    border-radius: 6px;
    font-size: 12px;
    font-weight: bold;
    letter-spacing: 1px;
    outline: none;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(var(--wc-rgb), 0.5);
}

.wcmp-select option { background: #000000; color: var(--wc); }

.wcmp-result {
    margin-top: 15px;
    min-height: 30px;
    color: var(--wc);
    font-size: 22px;
    font-weight: 900;
    letter-spacing: 3px;
    text-align: center;
    text-shadow: 0 0 10px var(--wc), 0 0 25px var(--wc);
}

.wcmp-battle {
    position: fixed;
    inset: 0;
    background: #000000;
    z-index: 8000;
    display: none;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.wcmp-battle video { width: 100%; height: 100%; object-fit: contain; display: block; }

.wcmp-winner {
    position: fixed;
    inset: 0;
    background: #000000;
    z-index: 9000;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.wcmp-winner h1 {
    margin: 0 0 20px;
    color: var(--wc);
    font-size: 48px;
    font-weight: 900;
    letter-spacing: 8px;
    text-shadow: 0 0 10px var(--wc), 0 0 25px var(--wc), 0 0 50px var(--wc);
}

.wcmp-winner img {
    width: 320px;
    height: 320px;
    max-width: 80vw;
    object-fit: contain;
    filter: drop-shadow(0 0 15px var(--wc)) drop-shadow(0 0 35px rgba(var(--wc-rgb), 0.8));
}

.wcmp-winner h2 {
    margin: 15px 0 30px;
    color: #ffffff;
    font-size: 32px;
    font-weight: 900;
    letter-spacing: 4px;
    text-shadow: 0 0 10px var(--wc), 0 0 25px var(--wc);
}

.wcmp-reset {
    margin-top: 10px;
    padding: 10px 25px;
    background: #000000;
    color: var(--wc);
    border: 2px solid var(--wc);
    border-radius: 8px;
    font-size: 14px;
    font-weight: 900;
    letter-spacing: 2px;
    cursor: pointer;
    box-shadow: 0 0 12px rgba(var(--wc-rgb), 0.6);
    transition: transform 0.2s ease, background 0.2s ease;
}

.wcmp-reset:hover { transform: scale(1.08); background: rgba(var(--wc-rgb), 0.15); }
.wcmp-reset:active { transform: scale(0.95); }

@media (max-width: 700px) {
    .wcmp-container { gap: 20px; }
    .wcmp-vs { font-size: 24px; }
}


/* Compare button: small, bottom-left corner, clear of the Omnitrix selector
   (Ultimate selector starts at x=100, Omniverse at x=150). */
.wcmp-open[data-wcmp="ult"] { left: 25px; bottom: 25px; width: 70px; height: 35px; }
.wcmp-open[data-wcmp="omni"] { left: 30px; bottom: 25px; width: 100px; height: 50px; }

.wcmp-result:empty { min-height: 0; margin-top: 0; }
.wcmp-result { max-width: 90vw; font-size: 18px; }

/* =========================================================
   PLUMBER GAMES PACK + HUB REWARD POINTS
   ========================================================= */
.hub-cash{position:fixed;top:14px;left:14px;z-index:60;display:flex;align-items:center;gap:10px;padding:8px 16px;border:2px solid #39ff14;border-radius:12px;background:rgba(0,0,0,.78);color:#39ff14;font:700 22px/1.1 sans-serif;box-shadow:0 0 14px rgba(57,255,20,.5)}
.hub-cash small{display:block;font-size:9px;letter-spacing:2px;opacity:.75}
.games-menu{overflow-y:auto;justify-content:safe center}
#bx-root .fg-input{max-width:340px}
.bx-msg{text-align:center;opacity:.9;max-width:560px;margin:0}
.bx-reward{font-size:clamp(20px,5vw,32px);font-weight:900;color:#ffd400;text-shadow:0 0 12px #ffd400;text-align:center}
.bx-brief{max-width:560px;text-align:center;border:2px solid #39ff14;border-radius:14px;padding:18px;background:rgba(0,40,0,.5)}
.bx-brief small{color:#ff3b3b;font-weight:900;letter-spacing:3px}
.bx-brief p{font-size:clamp(17px,4vw,24px);margin:10px 0}
.bx-brief em{color:#ffd400}
.bx-pc{width:min(240px,44vw);display:flex;flex-direction:column;align-items:center;gap:4px;padding:12px;border:2px solid #39ff14;border-radius:12px;background:rgba(0,0,0,.55);text-align:center;font-size:14px}
.bx-pc img{height:110px;max-width:100%;object-fit:contain}
.bx-pc strong{color:#ffd400}
.bx-dna{position:relative;width:min(560px,92vw);height:230px;border:2px solid #39ff14;border-radius:14px;background:rgba(0,30,0,.6);overflow:hidden;box-shadow:inset 0 0 30px rgba(57,255,20,.3)}
.bx-bars{position:absolute;inset:0;display:flex;align-items:flex-end;gap:3px;padding:10px;opacity:.55}
.bx-bars i{flex:1;background:#39ff14;animation:bxPulse .8s ease-in-out infinite alternate}
@keyframes bxPulse{from{transform:scaleY(.3)}to{transform:scaleY(1)}}
.bx-bars i{transform-origin:bottom}
.bx-dna::after{content:"";position:absolute;left:0;right:0;height:3px;background:#fff;box-shadow:0 0 14px #39ff14;animation:bxScan 1.4s linear infinite}
@keyframes bxScan{from{top:0}to{top:100%}}
.bx-sil{position:relative;display:flex;justify-content:center;height:100%}
.bx-sil img{height:100%;max-width:100%;object-fit:contain}
.bx-small{height:120px;width:auto;border:0}
.bx-small::after{display:none}
.bx-scan{color:#39ff14;letter-spacing:3px;font-weight:700;animation:bxBlink 1s infinite}
@keyframes bxBlink{50%{opacity:.3}}
.bx-opt{width:min(560px,92vw)}
.bx-ok{background:#39ff14!important;color:#000!important}
.bx-bad{background:#ff3b3b!important;color:#fff!important}
#bx-cv{width:min(900px,96vw);border:2px solid #39ff14;border-radius:10px;background:#000}
.bx-bar{width:100%;height:12px;background:#222;border-radius:6px;overflow:hidden;border:1px solid #555}
.bx-bar i{display:block;height:100%;background:linear-gradient(90deg,#ff3b3b,#39ff14);transition:width .3s}
.bx-en,.bx-hero{width:min(150px,28vw);display:flex;flex-direction:column;align-items:center;gap:4px;padding:8px;border:2px solid #444;border-radius:10px;text-align:center;font-size:13px}
.bx-en span{font-size:44px}
.bx-hero img{height:90px;max-width:100%;object-fit:contain}
.bx-on{border-color:#39ff14;box-shadow:0 0 14px #39ff14}
.bx-dead{opacity:.3;filter:grayscale(1)}
.bx-log{width:100%;max-width:560px;min-height:62px;background:rgba(0,0,0,.5);border-radius:8px;padding:8px;font-size:14px}
.bx-log div:first-child{color:#ffd400}

/* =========================================================
   ADDED: GREEN SCROLLBARS (everywhere)
   ========================================================= */
* { scrollbar-width: thin; scrollbar-color: #00ff00 #001a00; }
*::-webkit-scrollbar { width: 12px; height: 12px; }
*::-webkit-scrollbar-track { background: #001a00 !important; border-radius: 10px; }
*::-webkit-scrollbar-thumb { background: #00ff00 !important; border-radius: 10px; border: 2px solid #001a00; }
*::-webkit-scrollbar-thumb:hover { background: #39ff14 !important; }
*::-webkit-scrollbar-corner { background: #001a00; }

/* =========================================================
   ADDED: ONE EXIT BUTTON STYLE FOR EVERY SCREEN
   ========================================================= */
:is(.exit-database-button, .exit-nemetrix-button, .exit-antitrix-button, .special-watch-exit, .hero-exit-button,
    .fusion-result-exit, .games-exit-button, .chess-game-exit-button, .ludo-v2-exit, #ludo-result-exit-button,
    .settings-exit-button, .videos-exit-button):not(#_) {
    position: fixed !important; top: 25px !important; right: 25px !important; left: auto !important; bottom: auto !important;
    transform: none !important; width: auto !important; height: auto !important; min-width: 0 !important; min-height: 0 !important; margin: 0 !important;
    padding: 10px 20px !important; background: #000 !important; color: #00ff00 !important;
    border: 2px solid #00ff00 !important; border-radius: 6px !important; box-shadow: none !important;
    font: 700 16px/1.2 Arial, Helvetica, sans-serif !important; letter-spacing: 0 !important; text-shadow: none !important;
    cursor: pointer; z-index: 10000 !important; transition: background .2s, color .2s;
}
:is(.exit-database-button, .exit-nemetrix-button, .exit-antitrix-button, .special-watch-exit, .hero-exit-button,
    .fusion-result-exit, .games-exit-button, .chess-game-exit-button, .ludo-v2-exit, #ludo-result-exit-button,
    .settings-exit-button, .videos-exit-button):not(#_):hover {
    background: #00ff00 !important; color: #000 !important; transform: none !important; box-shadow: 0 0 14px #00ff00 !important;
}

/* =========================================================
   ADDED: GAMES MENU LAYOUT
   ========================================================= */
.gm-title { margin: 0; font-size: 44px; letter-spacing: 8px; color: #39ff14; text-shadow: 0 0 18px #39ff14; }
.gm-sub { margin: -8px 0 10px; color: #8fffa0; letter-spacing: 2px; font-size: 14px; }
.gm-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 22px; max-width: 980px; max-height: 62vh; overflow-y: auto; padding: 10px; }
.games-menu-button.gm-card {
    width: 280px !important; height: 150px !important; margin: 0 !important; padding: 14px !important;
    display: flex !important; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
    background: linear-gradient(160deg, #06210b, #000) !important; border: 2px solid #39ff14 !important; border-radius: 16px !important;
    color: #fff !important; font-weight: 800; cursor: pointer; transition: transform .2s, box-shadow .2s;
}
.games-menu-button.gm-card:hover { transform: translateY(-6px) scale(1.04) !important; background: linear-gradient(160deg, #0d4a18, #021a06) !important; color: #fff !important; box-shadow: 0 0 24px #39ff14; }
.gm-ico { font-size: 44px; line-height: 1; }
.gm-name { font-size: 20px; letter-spacing: 2px; color: #39ff14; }
.gm-desc { font-size: 12px; font-weight: 400; color: #bbb; }

/* =========================================================
   ADDED: LOGIN PAGE
   ========================================================= */
.login-page.active { display: flex; align-items: center; justify-content: center; overflow-y: auto;
    background: radial-gradient(circle at center, rgba(57,255,20,.18), #000 65%); }
.login-box { width: min(440px, 92vw); padding: 28px; border: 2px solid #39ff14; border-radius: 18px; background: rgba(0,0,0,.85);
    box-shadow: 0 0 30px rgba(57,255,20,.45); text-align: center; }
.login-box h1 { margin: 0; color: #39ff14; letter-spacing: 5px; font-size: 30px; text-shadow: 0 0 14px #39ff14; }
.login-sub { color: #8fffa0; font-size: 13px; margin: 6px 0 18px; letter-spacing: 1px; }
.login-input { width: 100%; margin-bottom: 12px; padding: 13px 14px; background: #000; color: #39ff14; border: 2px solid #1d8a0c; border-radius: 8px; font-size: 16px; outline: none; }
.login-input:focus { border-color: #39ff14; box-shadow: 0 0 10px #39ff14; }
.login-label { margin: 10px 0 8px; color: #8fffa0; font-size: 12px; letter-spacing: 3px; }
.login-avatars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.login-avatar { aspect-ratio: 1; padding: 4px; background: #04140a; border: 2px solid #1d8a0c; border-radius: 50%; cursor: pointer; overflow: hidden;
    display: flex; align-items: center; justify-content: center; font-size: 38px; transition: transform .2s, box-shadow .2s; }
.login-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.login-avatar:hover { transform: scale(1.07); }
.login-avatar.selected { border-color: #39ff14; box-shadow: 0 0 16px #39ff14; }
.login-error { min-height: 20px; margin: 10px 0 4px; color: #ff5555; font-size: 13px; }
.login-go { width: 100%; padding: 13px; background: #39ff14; color: #000; border: 0; border-radius: 8px; font-size: 18px; font-weight: 800; letter-spacing: 4px; cursor: pointer; }
.login-go:hover { box-shadow: 0 0 20px #39ff14; }

/* ADDED: HUB USER BADGE (top right) */
.hub-user { position: fixed; top: 14px; right: 14px; z-index: 60; display: flex; align-items: center; gap: 10px; padding: 6px 8px 6px 16px;
    border: 2px solid #39ff14; border-radius: 40px; background: rgba(0,0,0,.78); color: #39ff14; font: 700 18px/1 sans-serif; letter-spacing: 1px;
    box-shadow: 0 0 14px rgba(57,255,20,.5); }
.hub-user img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; border: 2px solid #39ff14; }

/* ADDED: PLUMBER T-REX WELCOME TAB */
.trax-tab { position: fixed; inset: 0; z-index: 9000; display: none; align-items: center; justify-content: center; background: rgba(0,0,0,.55); }
.trax-tab.open { display: flex; }
.trax-window { position: relative; display: flex; align-items: center; gap: 18px; width: min(640px, 92vw); padding: 22px; border: 2px solid #39ff14; border-radius: 18px;
    background: linear-gradient(160deg, #04200a, #000); box-shadow: 0 0 34px rgba(57,255,20,.6); animation: traxIn .45s ease-out; }
@keyframes traxIn { from { transform: scale(.6); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.trax-img { width: 170px; max-height: 260px; object-fit: contain; filter: drop-shadow(0 0 12px #39ff14); }
.trax-body { flex: 1; min-width: 0; }
.trax-name { color: #39ff14; font-weight: 800; letter-spacing: 3px; margin-bottom: 8px; }
.trax-text { margin: 0; min-height: 120px; color: #e8ffe8; font-size: 15px; line-height: 1.5; }
.trax-close { position: absolute; top: -14px; right: -14px; width: 36px; height: 36px; padding: 0; border-radius: 50%; background: #000; color: #39ff14;
    border: 2px solid #39ff14; font-size: 16px; font-weight: 800; cursor: pointer; }
.trax-close:hover { background: #39ff14; color: #000; }
@media (max-width: 560px) { .trax-window { flex-direction: column; } .trax-img { width: 120px; } }

/* ADDED: REWARD TOAST */
.reward-toast { position: fixed; top: 80px; left: 50%; transform: translateX(-50%); z-index: 20000; padding: 12px 26px; border: 2px solid #39ff14; border-radius: 14px;
    background: rgba(0,0,0,.92); color: #fff; text-align: center; font-weight: 800; letter-spacing: 2px; box-shadow: 0 0 24px #39ff14; animation: toastIn .4s ease-out; }
.reward-toast b { display: block; color: #39ff14; font-size: 20px; margin-top: 4px; }
@keyframes toastIn { from { opacity: 0; transform: translate(-50%, -20px); } to { opacity: 1; transform: translate(-50%, 0); } }

/* =========================================================
   ADDED: AVATAR PICKER (images only) + HUB AVATAR
   ========================================================= */
.login-avatar { font-size: 22px; font-weight: 800; color: #39ff14; }
.login-avatar-num { color: #39ff14; font-size: 24px; font-weight: 800; }
.hub-user img { flex: 0 0 auto; display: block; }
.hub-avatar-fallback { width: 44px; height: 44px; border-radius: 50%; border: 2px solid #39ff14; background: #04140a;
    display: flex; align-items: center; justify-content: center; color: #39ff14; font-size: 20px; font-weight: 800; }

/* =========================================================
   ADDED: EXIT BUTTON COLOR = EACH WATCH DATABASE THEME
   (green stays the default; these override per watch)
   ========================================================= */
:is(#exitNemetrixButton, #exitAntitrixButton, #exitAlbedoButton):not(#_) { --exit-c: #ff2020; }  /* red watches   */
#heroExitButton:not(#_)       { --exit-c: #008cff; }                                              /* Ben hero watch */
#gwenExitButton:not(#_)       { --exit-c: #ff4fd8; }                                              /* Gwen watch     */
:is(#ben10000ExitButton, #fusionResultExitButton):not(#_) { --exit-c: #39ff14; }                  /* Ben 10,000     */
#specialWatchExit:not(#_)     { --exit-c: #ff8c00; }                                              /* Power watch    */

:is(#exitNemetrixButton, #exitAntitrixButton, #exitAlbedoButton, #heroExitButton, #gwenExitButton,
    #ben10000ExitButton, #fusionResultExitButton, #specialWatchExit):not(#_) {
    border-color: var(--exit-c) !important; color: var(--exit-c) !important;
}
:is(#exitNemetrixButton, #exitAntitrixButton, #exitAlbedoButton, #heroExitButton, #gwenExitButton,
    #ben10000ExitButton, #fusionResultExitButton, #specialWatchExit):not(#_):hover {
    background: var(--exit-c) !important; color: #000 !important; box-shadow: 0 0 14px var(--exit-c) !important;
}

/* ADDED: Zombitrix = purple, Negatrix = grey (same exit button, themed by class) */
#specialWatchDatabase.zombitrix-theme #specialWatchExit:not(#_) { --exit-c: #b44cff; }
#specialWatchDatabase.negatrix-theme  #specialWatchExit:not(#_) { --exit-c: #9a9a9a; }

/* =========================================================
   SCRIBBLE GAME  (menu, setup and play screens)
   ========================================================= */
#sk-body{max-width:1200px}
#sk-root .fg-input{max-width:340px}
.sk-step{display:flex;align-items:center;gap:12px;flex-wrap:wrap;justify-content:center;padding:10px 16px;border:2px solid #39ff14;border-radius:12px;background:rgba(0,30,0,.55);font-weight:900;letter-spacing:2px}
.sk-step b{min-width:34px;text-align:center;font-size:28px;color:#ffd400;text-shadow:0 0 10px #ffd400}
.sk-step small{opacity:.6;font-weight:400;letter-spacing:0}
.sk-top{display:flex;justify-content:space-between;align-items:center;gap:10px;width:100%;padding:8px 14px;border:2px solid #39ff14;border-radius:12px;background:rgba(0,0,0,.6);font-weight:900;color:#39ff14}
.sk-hint{flex:1;text-align:center;font-size:clamp(18px,4vw,32px);letter-spacing:5px;color:#ffd400;text-shadow:0 0 10px #ffd400}
.sk-time{min-width:80px;text-align:right;font-size:24px}
.sk-main{display:flex;gap:12px;width:100%;align-items:flex-start;justify-content:center;flex-wrap:wrap}
.sk-score,.sk-side{width:210px;display:flex;flex-direction:column;gap:8px;padding:10px;border:2px solid #39ff14;border-radius:12px;background:rgba(0,0,0,.55)}
.sk-score h4{margin:0 0 4px;color:#39ff14;letter-spacing:3px;text-align:center}
.sk-pl{display:flex;justify-content:space-between;gap:10px;padding:6px 8px;border-radius:8px;background:rgba(57,255,20,.08);font-size:14px}
.sk-pl.sk-dr{background:rgba(255,212,0,.18)}
.sk-pl b{color:#ffd400}.sk-pl em{color:#39ff14;font-style:normal;font-size:12px}
.sk-center{flex:1 1 440px;min-width:0;max-width:760px;display:flex;flex-direction:column;gap:8px}
#sk-cv{width:100%;aspect-ratio:8/5;background:#fff;border:3px solid #39ff14;border-radius:12px;touch-action:none;cursor:crosshair;box-shadow:0 0 18px rgba(57,255,20,.5)}
.sk-tools{display:flex;flex-wrap:wrap;gap:6px;align-items:center;justify-content:center}
.sk-tools .fg-btn{padding:6px 10px;font-size:13px}
.sk-sw{width:30px;height:30px;border-radius:50%;border:3px solid #444;cursor:pointer;padding:0}
.sk-sw.sel{border-color:#39ff14;transform:scale(1.18);box-shadow:0 0 10px #39ff14}
.sk-sz{width:34px;height:34px;border-radius:8px;border:2px solid #444;background:#111;display:flex;align-items:center;justify-content:center;cursor:pointer;padding:0}
.sk-sz i{display:block;border-radius:50%;background:#e8ffe8}
.sk-sz.sel{border-color:#39ff14}
.sk-chat{height:260px;overflow-y:auto;display:flex;flex-direction:column;gap:4px;font-size:14px}
.sk-msg{padding:4px 8px;border-radius:6px;background:rgba(255,255,255,.06);word-break:break-word}
.sk-msg.sk-good{background:rgba(57,255,20,.2);color:#9dff8a}
.sk-msg.sk-close{background:rgba(255,212,0,.18);color:#ffd400}
.sk-msg.sk-sys{background:rgba(0,200,255,.15);color:#8fe4ff}
.sk-who{display:flex;flex-wrap:wrap;gap:6px}
.sk-chip{padding:5px 9px;border:2px solid #39ff14;border-radius:999px;background:transparent;color:#e8ffe8;font-weight:700;font-size:12px;cursor:pointer}
.sk-chip.sel{background:#39ff14;color:#000}
.sk-chip:disabled{opacity:.4;cursor:default}
.sk-gbox{display:flex;flex-direction:column;gap:6px}
.sk-gbox .fg-input{max-width:100%!important}
.sk-big{font-size:clamp(70px,16vw,140px);line-height:1}
.sk-results{width:min(420px,92vw);display:flex;flex-direction:column;gap:6px}
.sk-results .sk-pl{font-size:17px;padding:9px 12px}
@media (max-width:700px){.sk-score,.sk-side{width:100%}.sk-chat{height:150px}}

/* ADDED: Scribble brush / fill tool buttons */
.sk-tool{display:flex;flex-direction:column;align-items:center;gap:1px;min-width:56px;padding:4px 8px;border:2px solid #444;border-radius:10px;background:#111;color:#e8ffe8;cursor:pointer;font-weight:800}
.sk-tool span{font-size:22px;line-height:1}.sk-tool small{font-size:10px;letter-spacing:1px}
.sk-tool.sel{border-color:#39ff14;box-shadow:0 0 10px #39ff14;background:rgba(57,255,20,.15)}
.sk-tool:hover{border-color:#39ff14}

/* =========================================================
   ADDED: TUTORIALS TAB (big tab with tutorial images + Plumber T-Rax outside it)
   ========================================================= */
.tut-tab{position:fixed;inset:0;z-index:9000;display:none;align-items:center;justify-content:center;padding:70px 16px 16px;background:rgba(0,0,0,.72);box-sizing:border-box}
.tut-tab.open{display:flex}
.tut-layout{display:flex;align-items:flex-end;gap:20px;width:min(1280px,100%);height:100%;max-height:820px}
.tut-guide{flex:0 0 270px;display:flex;flex-direction:column;align-items:center;gap:10px;align-self:stretch;justify-content:flex-end}
.tut-bubble{position:relative;width:100%;padding:12px 14px;border:2px solid #39ff14;border-radius:16px;background:linear-gradient(160deg,#04200a,#000);box-shadow:0 0 22px rgba(57,255,20,.55)}
.tut-bubble::after{content:"";position:absolute;bottom:-12px;left:50%;margin-left:-10px;border:10px solid transparent;border-top-color:#39ff14;border-bottom:0}
.tut-text{margin:0;min-height:110px;max-height:34vh;overflow-y:auto;color:#e8ffe8;font-size:15px;line-height:1.5}
.tut-trax{width:200px;max-height:34vh;object-fit:contain;filter:drop-shadow(0 0 14px #39ff14);animation:tutBob 3s ease-in-out infinite}
@keyframes tutBob{0%,100%{transform:translateY(0)}50%{transform:translateY(-6px)}}
.tut-main{flex:1;min-width:0;height:100%;display:flex;flex-direction:column;gap:12px}
.tut-window{position:relative;flex:1;min-height:0;display:flex;align-items:center;justify-content:center;border:3px solid #39ff14;border-radius:18px;background:rgba(0,12,0,.92);box-shadow:0 0 34px rgba(57,255,20,.6);overflow:hidden;animation:traxIn .45s ease-out}
.tut-img{max-width:100%;max-height:100%;object-fit:contain}
.tut-missing{position:absolute;inset:0;display:none;align-items:center;justify-content:center;padding:20px;text-align:center;color:#ffd400;font-weight:800;letter-spacing:1px}
.tut-nav{display:flex;align-items:center;justify-content:center;gap:18px}
.tut-btn{min-width:150px;padding:11px 20px;border:2px solid #39ff14;border-radius:12px;background:rgba(0,0,0,.75);color:#39ff14;font-weight:900;letter-spacing:2px;cursor:pointer}
.tut-btn:hover:not(:disabled){background:#39ff14;color:#000;box-shadow:0 0 16px #39ff14}
.tut-btn:disabled{opacity:.35;cursor:default}
.tut-count{min-width:90px;text-align:center;color:#ffd400;font-weight:900;font-size:20px;letter-spacing:2px;text-shadow:0 0 8px #ffd400}
@media (max-width:820px){
  .tut-layout{flex-direction:column-reverse;align-items:stretch;gap:10px}
  .tut-guide{flex:0 0 auto;flex-direction:row-reverse;align-items:flex-end}
  .tut-bubble{flex:1}.tut-bubble::after{display:none}
  .tut-trax{width:90px}.tut-text{min-height:70px;font-size:13px}
  .tut-btn{min-width:110px;padding:9px 12px}
}
/* Scribble word selection */
.sk-opt{transition:transform .12s,box-shadow .12s,background .12s;border:3px solid transparent}
.sk-opt:hover{transform:translateY(-2px)}
.sk-opt.sel{background:#39ff14 !important;color:#000 !important;border-color:#fff;box-shadow:0 0 0 3px #39ff14,0 0 22px #39ff14;transform:scale(1.07);font-weight:900}
.sk-opt.sel::before{content:"\2714  "}
.sk-confirm:disabled{opacity:.45;cursor:not-allowed;filter:grayscale(.6)}

/* DNA scanner online feedback */
.bx-opt.sel{outline:3px solid #fff;box-shadow:0 0 16px #fff}
.bx-opt.bx-locked{pointer-events:none}
.bx-opt.bx-watch{cursor:default;opacity:.85}

/* Scribble toolbar highlighting */
.sk-sz{border:2px solid #444;border-radius:10px;background:#111;min-width:38px;height:38px;display:inline-flex;align-items:center;justify-content:center;cursor:pointer}
.sk-sz i{background:#e8ffe8;border-radius:50%;display:block}
.sk-sz.sel{border-color:#39ff14;box-shadow:0 0 10px #39ff14;background:rgba(57,255,20,.15)}
.sk-tool,.sk-sw,.sk-sz{transition:transform .12s,box-shadow .12s,border-color .12s}
.sk-tools .fg-btn.flash{background:#39ff14 !important;color:#000 !important;box-shadow:0 0 14px #39ff14;transform:scale(1.08)}

/* =========================================================
   FIGHTING GAME: SPECIAL POWER
   ========================================================= */
.fg-actions .fg-special {
    border-color: #ffd34a;
    background: linear-gradient(135deg, #2a1d00, #4a3200);
    box-shadow: 0 0 10px rgba(255, 211, 74, 0.55);
}
.fg-actions .fg-special small { color: #ffd34a; font-weight: 800; }
.fg-actions .fg-special:hover { background: #ffd34a; color: #000; }
.fg-actions .fg-special:hover small { color: #000; }

.fg-fx { position: fixed; inset: 0; pointer-events: none; z-index: 100000; overflow: hidden; }
.fg-fx-p { position: absolute; line-height: 1; transform: translate(-50%, -50%); will-change: transform, opacity; user-select: none; }
.fg-fx-clone { width: auto; max-width: none; object-fit: contain; }
.fg-fx-ring { position: absolute; width: 70px; height: 70px; border: 6px solid #fff; border-radius: 50%; transform: translate(-50%, -50%); will-change: transform, opacity; }
.fg-fx-beam { position: absolute; height: 22px; border-radius: 12px; transform-origin: 0 50%; transform: translateY(-50%); will-change: transform, opacity; }
.fg-fx-slash { position: absolute; width: 190px; height: 9px; border-radius: 6px; transform: translate(-50%, -50%); will-change: transform, opacity; }
.fg-fx-flash { position: absolute; inset: 0; opacity: 0; }
.fg-fx-txt {
    position: absolute; font-weight: 900; font-size: 22px; letter-spacing: 1px; white-space: nowrap;
    text-shadow: 0 0 6px #000, 0 0 12px #000, 2px 2px 0 #000; transform: translate(-50%, 0);
}