body {
    margin: 0;
    font-family: "Segoe UI", Arial, sans-serif;
    background-image: url("../IMG/Default/bg_1.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-color: #131313;
    color: rgb(255, 255, 255);
}

.navbar {

    position: sticky;
    top: 12px;

    margin: 14px auto;
    width: 90%;
    max-width: 11100px;

    display: flex;
    align-items: center;

    padding: 24px 18px;

    background: rgba(20, 20, 30, 0.75);
    backdrop-filter: blur(14px);

    border-radius: 6px;

    border: 1px solid rgba(255, 255, 255, 0.08);

    box-shadow:
        0 8px 30px rgba(0, 0, 0, 0.35);

    z-index: 2000;

    font-weight: bold;
    font-size: 18px;

}

.nav-title {
    background: linear-gradient(90deg, #8f91ff, #e0aaff, #ffa1b5, #ffbdb4);
    background-clip: text;
    color: transparent;
    font-weight: 700;
    margin-left: 70px;
}

.sub-title {
    color: #1f2937;
    font-weight: 700;
    font-size: 25px;
    margin-bottom: 12px;
}

.footer {
    text-align: center;
    padding: 20px;
    background: rgba(20, 20, 30, 0.55);
    backdrop-filter: blur(14px);
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow:
        0 8px 30px rgba(0, 0, 0, 0.35);
    margin: 40px auto;
    width: 90%;
    max-width: 1100px;
}

#arrow{
text-align: center;
    font-size: 25px;
    display:inline-block;
    transition: transform 0.3s;
    position: relative;
    top: 4.5px;           /* move arrow up/down */
}

#arrow.rotate{
    transform: rotate(180deg);
}

.submenu {
    background: rgba(20, 20, 30, 0.6);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
    display: flex;
    flex-direction: column;
}

.submenu a {
    opacity: 1;
    margin-left: 18px;
    transform: translateX(0);
    padding: 8px 15px;
    text-decoration: none;
    display: block
}


.submenu.open{
    max-height: 300px; /* big enough for all items */
}

.submenu-item {
    padding: 15px 25px;
    color: white;
    cursor: pointer;
}

.submenu-item:hover {
    background: rgba(26, 26, 26, 0.07);

    box-shadow:
        inset 4px 0 0 #f3f5fc;

}

.wrapper {
    max-width: 1300px;
    margin: auto;
    padding: 30px;
}

.card {
    background: rgba(20, 20, 30, 0.80);
    backdrop-filter: blur(14px);

    border-radius: 6px;

    border: 1px solid rgba(255, 255, 255, 0.08);

    box-shadow:
        0 8px 30px rgba(0, 0, 0, 0.35);

    z-index: 2000;
    padding: 22px;
    border-radius: 10px;
    margin-bottom: 25px;
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.card.show {
    opacity: 1;
    transform: translateY(0);
}

.card-2{
    background: rgba(20, 20, 30, 0.50);

    border-radius: 6px;

    border: 1px solid rgba(255, 255, 255, 0.08);

    box-shadow:
        0 8px 30px rgba(0, 0, 0, 0.35);

    z-index: 2000;
    padding: 22px;
    border-radius: 10px;
    margin-bottom: 25px;
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.card-2.show {
    opacity: 1;
    transform: translateY(0);
}


.card-theme {
    background: linear-gradient(90deg, #26262e, #3b3b5f, #8d8de4, #d4a5ff, #ffaac6, #ffccc0);

    box-shadow:
        0 8px 30px rgba(0, 0, 0, 0.6);
    padding: 16px;
    border-radius: 10px;
    margin-bottom: 25px;
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.card-theme.show {
    opacity: 1;
    transform: translateY(0);
}


.character-header {
    display: flex;
    gap: 20px;
    align-items: center;
}

.character-header img {
    width: 120px;
    border-radius: 10px;
}

.badges span {
    background: rgba(20, 20, 30, 0.50);
    padding: 4px 8px;
    border-radius: 6px;
    margin-right: 6px;
    font-size: 12px;
}

.banner {
    width:100%;
    height:420px;
    overflow:hidden;
    position:relative;
}

.banner-track{
    display:flex;
    width:100%;
    height:100%;
    transition: transform 0.8s ease;
}

.banner-track img{
    width:100%;
    height:100%;
    object-fit:cover;
    flex-shrink:0;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 15px;
    margin-top: 15px;
    z-index: 2000;
    padding: 22px;
    border-radius: 10px;
    margin-bottom: 25px;
}

.grid2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 12px;
    margin-top: 15px;
}



.stat {
    background: rgba(20, 20, 30, 0.50);
    color: #e6ebf5;
    padding: 10px;
    border-radius: 8px;
    text-align: center;
    font-weight: 600;
}

.skill-tabs {
    position: relative;
    display: flex;
    margin-bottom: 15px;
    background: #1f2937;
    border-radius: 10px;
    overflow: hidden;
}

.skill-tabs button {
    flex: 1;
    padding: 12px;
    border: none;
    background: transparent;
    color: white;
    font-family: "Segoe UI", Arial, sans-serif;
    font-weight: 600;
    cursor: pointer;
    z-index: 2;
}

/* sliding gradient bar */
.tab-indicator {
    position: absolute;
    bottom: -2px;
    height: 6px;
    width: 25%; /* 4 tabs */
    background: linear-gradient(90deg, #abb1ff, #d4a5ff, #ffaac6, #ffccc0);
    transition: transform 0.35s ease;
}


/* left tab corner */
.skill-tabs button:first-child {
    border-top-left-radius: 10px;
    border-bottom-left-radius: 10px;
}

/* right tab corner */
.skill-tabs button:last-child {
    border-top-right-radius: 10px;
    border-bottom-right-radius: 10px;
}

.skill-tabs button.active {
    color: white;
}

.skill-panel {
    display: none;
}

.skill-panel.active {
    display: block;
}

.skill-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.stat-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    margin: center;
}

.skill-icon-img{
    width:36px;
    height:36px;
    display:flex;
    align-items:center;
    justify-content:center;
}

.skill-icon-img img{
    width:100%;
    height:100%;
}

.stat{
    display: flex;
    flex-direction: column;
    align-items: center;   /* center horizontally */
    justify-content: center; /* center vertically */
    text-align: center;
    text-align: center;
}

.stat-info{
    display:flex;
    align-items:center;
    justify-content:center;
    gap:6px;
}

.stat-info img{
    width:22px;
    height:22px;
}

.stat-value{
    margin-top:4px;
}

.stat-icon{
    width:20px;
    height:20px;
    display:flex;
    align-items:center;
    justify-content:center;
}

.stat-icon img{
    width:100%;
    height:100%;
}

.icon-text{
    display: flex;
    align-items: center; /* vertically align */
    gap: 8px; /* space between icon and text */
}

.icon{
    width: 24px;
    height: 24px;
}

.slider-row {
    display: flex;
    gap: 12px;
    align-items: center;
    margin: 10px 0;
}

.slider-row input {
    flex: 1;
}

.trace-title {
    color: #60a5fa;
    font-weight: bold;
}

.technique-title {
    color: #fa8bb9;
    font-weight: bold;
}

.eidolon-title {
    color: #c084fc;
    font-weight: bold;
}


.scale {
    color: #ffd970;
    font-weight: bold;
}

.eidolon {
    width: 200px;
    height: 200px;
    margin: auto;
    position: relative;
    bottom:10px;
}

.eidolon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
}

/*attribute colors*/

.imaginary {
    color: #f3e137;
    font-weight: 600;
}

.quantum {
    color: #8880ff;
    font-weight: 600;
}

.ice {
    color: #47c7fd;
    font-weight: 600;
}

.fire {
    color: #f84e36;
    font-weight: 600;
}

.aether {
    background: linear-gradient(90deg, #abb1ff, #d4a5ff, #ffaac6, #ffccc0);
    background-clip: text;
    color: transparent;
    font-weight: 700;
}

.lunar {
    background: linear-gradient(90deg, #abfffb, #feffc6, #ffe0b8);
    background-clip: text;
    color: transparent;
    font-weight: 700;
}

.overdrive {
    background: linear-gradient(90deg, #c78aff, #9992fd, #95ccff, #a9f2ff);
    background-clip: text;
    color: transparent;
    font-weight: 700;
}

/*character colors*/

.kaito {
    background: linear-gradient(90deg, #abb1ff, #d4a5ff, #ffaac6, #ffccc0);
    background-clip: text;
    color: transparent;
    font-weight: 650;
    font-size: 20px;
}

.akane {
    background: linear-gradient(90deg, #ffabb9, #ffb2a5, #ffd7aa);
    background-clip: text;
    color: transparent;
    font-weight: 650;
    font-size: 20px;
}

.mizuki {
    background: linear-gradient(90deg, #97ffff, #fdffa4, #ffd3aa);
    background-clip: text;
    color: transparent;
    font-weight: 650;
    font-size: 20px;
}

.mushiro {
    background: linear-gradient(90deg, #86a3ff, #d18dff, #f8aaff);
    background-clip: text;
    color: transparent;
    font-weight: 650;
    font-size: 20px;
}

/*sub-text colors*/

.skill-info {
    color: #9ca3af;
    font-size: 14px;
    margin-top: 4px;
}

.memosprite-header {
    display: flex;
    gap: 20px;
    align-items: center;
}

.memosprite-header img {
    width: 100px;
    border-radius: 10px;
}

/* Gradient Slider Style */
input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    height: 6px;
    border-radius: 6px;
    background: linear-gradient(90deg, #abb1ff, #d4a5ff, #ffaac6, #ffccc0);
    outline: none;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: white;
    border: 2px solid white;
    cursor: pointer;
}

input[type="range"]::-moz-range-thumb {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: white;
    border: 2px solid white;
    cursor: pointer;
}

/* gradient slider with grey remaining */

input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    height: 6px;
    border-radius: 6px;
    outline: none;
    background: #444;
}

/* ===== Hamburger Button ===== */

.menu-btn {
    position: fixed;
    margin: auto;
    top: 18px;
    left: 30px;
    width: 32px;
    height: 22px;
    cursor: pointer;
    z-index: 2000;
}

.menu-btn span {
    display: block;
    height: 3px;
    width: 100%;
    background: white;
    margin: 6px 0;
    transition: 0.4s;
}

/* hamburger -> X */

.menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(6.25px, 6.25px);
}

.menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6.25px, -6.25px);
}

/* ===== Sidebar ===== */

.sidebar {
    position: fixed;
    top: 0;
    left: -260px;
    width: 260px;
    height: 100%;
    padding-top: 90px;

    background:
        linear-gradient(rgba(15,15,25,0.85),rgba(15,15,25,0.9)),
        url("../IMG/Default/slider.png");
    backdrop-filter: blur(12px);

    transition: 0.45s cubic-bezier(.77, 0, .18, 1);
    z-index: 1500;
}

/* menu links */

.sidebar a {
    display: block;
    padding: 16px 30px;
    color: white;
    font-size: 17px;
    text-decoration: none;
    opacity: 0;
    transform: translateX(-20px);
    transition: 0.4s;
}

/* slide-in animation */

.sidebar.open a {
    opacity: 1;
    transform: translateX(0);
}

.sidebar.open a:nth-child(1){transition-delay:.05s;}
.sidebar.open a:nth-child(2){transition-delay:.10s;}
.sidebar.open a:nth-child(3){transition-delay:.15s;}
.sidebar.open a:nth-child(4){transition-delay:.20s;}
.sidebar.open a:nth-child(5){transition-delay:.25s;}
.sidebar.open a:nth-child(6){transition-delay:.30s;}
.sidebar.open a:nth-child(7){transition-delay:.35s;}
.sidebar.open a:nth-child(8){transition-delay:.40s;}

.sidebar a:hover {
    background: rgba(255, 255, 255, 0.05);
    box-shadow:
        inset 4px 0 0 #f3f5fc;

}

/* ===== Blur overlay ===== */

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;

    backdrop-filter: blur(8px);
    background: rgba(0, 0, 0, 0.2);

    opacity: 0;
    visibility: hidden;
    transition: 0.35s;

    z-index: 1400;
}

.overlay.active {
    opacity: 1;
    visibility: visible;
}

/* =========================
   MOBILE RESPONSIVE
   ========================= */

@media (max-width: 768px) {

    /* wrapper padding smaller */
    .wrapper{
        padding:16px;
    }

    /* navbar smaller */
    .navbar{
        width:95%;
        padding:14px 14px;
        font-size:16px;
    }

    .nav-title{
        margin-left:55px;
        font-size:16px;
    }

    /* banner smaller height */
    .banner{
        height:220px;
    }

    /* character header stack */
    .character-header{
        flex-direction:column;
        align-items:flex-start;
        gap:12px;
    }

    .character-header img{
        width:90px;
    }

    /* cards tighter */
    .card,
    .card-theme{
        padding:16px;
    }

    /* grid better for mobile */
    .grid{
        grid-template-columns:repeat(2,1fr);
    }

    .grid2{
        grid-template-columns:repeat(2,1fr);
    }

    /* skill tabs wrap */
    .skill-tabs {
    position: relative;
    display: flex;
    margin-bottom: 15px;
    border-bottom: 2px solid #1f2937;
}

.skill-tabs button {
    flex: 1;
    padding: 12px;
    border: none;
    background: transparent;
    color: #cbd5e1;
    font-family: "Segoe UI", Arial, sans-serif;
    font-weight: 600;
    cursor: pointer;
    transition: color 0.25s ease;
}

.skill-tabs button.active {
    color: white;
}

/* sliding bottom bar */
.tab-indicator {
    position: absolute;
    bottom: -2px;
    height: 6px;
    width: 25%; /* 4 tabs */
    background: linear-gradient(90deg,#abb1ff,#d4a5ff,#ffaac6,#ffccc0);
    transition: transform 0.35s ease;
}

    /* slider row vertical */
    .slider-row{
        flex-direction:column;
        align-items:stretch;
        gap:6px;
    }

    .slider-row span{
        font-size:14px;
    }

    /* sidebar width smaller */
    .sidebar{
        width:220px;
        left:-220px;
    }

    .sidebar-image{
        width:220px;
        left:-220px;
    }

/* menu-btn width smaller */
.menu-btn {
    top: 9px;
    left: 22px;
    width: 22px;
}

    .menu-btn span {
    display: block;
    height: 2px;
    width: 100%;
    background: white;
    margin: 6px 0;
    transition: 0.4s;
    }

    .menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(5.5px, 5.5px);
}

.menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5.5px, -5.5px);
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: white;
    border: 5px solid white;
    cursor: pointer;
}

input[type="range"]::-moz-range-thumb {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: white;
    border: 5px solid white;
    cursor: pointer;
}
}

/* =========================
   SMALL PHONES
   ========================= */

@media (max-width:480px){

    .banner{
        height:180px;
    }

    .grid{
        grid-template-columns:1fr;
    }

    .grid2{
        grid-template-columns:1fr;
    }

    .navbar{
        font-size:15px;
    }

    .nav-title{
        font-size:15px;
    }

}