:root {
    --width: clamp(180px, 15vw, 250px);
    --height: clamp(200px, 40vh, 300px);
    --gap: 1.5vw;
    --quantity: 6;
    --speed: 20s;
    --header-height: 120px;
    --footer-height: 60px;
}

/* ===== GLOBAL PRESET ===== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'League Spartan', sans-serif;
    background-image: url("Images/Pictures/mikubg.png");
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center center;
    background-attachment: fixed;
    color: #222;
    min-height: 100vh;
    padding-top: var(--header-height);
    padding-bottom: var(--footer-height);
    line-height: 1.6;
    
}

/* ===== HEADER ===== */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 1rem 2rem;
    background: #fce4ec;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    min-height: var(--header-height);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border-bottom: 3px solid salmon;
}

.left-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex: 1;
}

#MitoProfile {
    width: 70px;
    height: 70px;
    border-radius: 10px;
    object-fit: cover;
    border: 3px solid salmon;
    transition: transform 0.3s ease;
}

#MitoProfile:hover {
    transform: scale(1.05);
}

.left-header h1 {
    font-size: 1.8rem;
    color: #333;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

#Contacts {
    display: flex;
    flex-direction: column;
    align-items: center; 
    gap: 0.8rem;
    flex-shrink: 0;
}

#Contacts h2 {
    font-size: 1.1rem;
    margin: 0;
    color: #333;
}

#Contacts nav {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

#Contacts a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: salmon(255, 255, 255, 0.7);
    border-radius: 8px;
    text-decoration: none;
    color: #333;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

#Contacts a:hover {
    background: white;
    transform: translateY(-2px);
    border-color: salmon;
    box-shadow: 0 4px 12px rgba(250, 128, 114, 0.3);
}

.icon {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

/* ===== MAIN CONTENT ===== */
main {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.section-title {
    margin: 4rem auto;
    text-align: center;
    width: 100%;
}

.section-title h1,
.section-title h2 {
    color: white;
    font-size: 2.5rem;
    margin-bottom: 2rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

/* ===== WAIFU WHEEL ===== */
.slider {
    position: relative;
    width: 100%;
    height: var(--height);
    overflow: hidden;
    border-radius: 16px;
    margin: 0 auto;
    border: 4px solid rgba(250, 128, 114, 0.8);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.list {
    display: flex;
    gap: var(--gap);
    width: calc((var(--width) + var(--gap)) * var(--quantity) * 2);
    height: 100%;
    animation: scroll var(--speed) linear infinite;
}

.slider:hover .list {
    animation-play-state: paused;
}

.item {
    flex: 0 0 var(--width);
    height: 100%;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.slider:hover .item:hover {
    transform: scale(1.05);
    z-index: 2;
}

.slider:hover .item:not(:hover) img {
    filter: brightness(0.6);
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc((var(--width) + var(--gap)) * var(--quantity) * -1));
    }
}/* ===== ABOUT CONTAINER ===== */
.about-container {
    display: flex;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 3rem;
    margin: 4rem auto;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    width: 100%;
    max-width: 1000px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.title-section {
    text-align: center;
    margin-bottom: 3rem;
    padding: 2.5rem;
    background: rgba(250, 128, 114, 0.1);
    border-radius: 16px;
    border: 2px solid rgba(250, 128, 114, 0.3);
    width: 100%;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.scramble-text {
    font-size: 2.8rem;
    color: white;
    line-height: 1.4;
    letter-spacing: 0.70em;
    text-transform: uppercase;
    margin: 0;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.4);
    word-break: break-word;
    width: 100%;
    text-align: center;
}

.scramble-text br {
    display: block;
    content: "";
    margin-bottom: 0.5rem;
}

.cards-stack {
    display: flex;
    flex-direction: column;
    gap: 2.5rem; 
    width: 100%;
}

.card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 2.5rem; 
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    width: 100%;
    min-height: 180px;
}


.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    background: rgba(255, 255, 255, 0.2);
}

.card h2 {
    font-size: 1.6rem;
    color: white;
    margin-bottom: 1rem;
    font-weight: 600;
    text-align: left;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.card p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    line-height: 1.6;
    text-align: left;
    margin-bottom: 0;
    flex-grow: 1;
}

.card + .card {
    margin-top: 2rem;
}

.card-content {
    padding: 1rem 0;
}

@media (max-width: 1024px) {
    .about-container {
        padding: 2.5rem;
    }
    
    .title-section {
        padding: 2rem;
        min-height: 180px;
    }
    
    .scramble-text {
        font-size: 2.2rem;
        letter-spacing: 0.1em;
    }
    
    .card {
        padding: 1.8rem;
    }
}

@media (max-width: 768px) {
    .about-container {
        padding: 2rem;
        margin: 3rem auto;
    }
    
    .title-section {
        padding: 1.5rem;
        min-height: 160px;
        margin-bottom: 2rem;
    }
    
    .scramble-text {
        font-size: 1.8rem;
        letter-spacing: 0.08em;
        line-height: 1.3;
    }
    
    .scramble-text br {
        margin-bottom: 0.3rem;
    }
    
    .cards-stack {
        gap: 5px;
    }
    
    .card {
        padding: 1.5rem;
        min-height: 160px;
    }
    
    .card h2 {
        font-size: 1.4rem;
    }
    
    .card p {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .about-container {
        padding: 1.5rem;
        margin: 2rem auto;
    }
    
    .title-section {
        padding: 1.2rem;
        min-height: 140px;
    }
    
    .scramble-text {
        font-size: 1.5rem;
        letter-spacing: 0.05em;
    }
    
    .card {
        padding: 1.2rem;
        min-height: 140px;
    }
    
    .card h2 {
        font-size: 1.3rem;
    }
    
    .card h2:before {
        font-size: 1.2rem;
    }
}

@media (max-width: 1024px) {
    .cards-container {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .title-center {
        padding: 1.5rem;
        min-height: 160px;
    }
    
    #main-title {
        font-size: 2.2rem;
        letter-spacing: 0.1em;
    }
}

@media (max-width: 768px) {
    .cards-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .about-container {
        padding: 2rem;
        margin: 3rem auto;
    }
    
    .title-center {
        padding: 1.5rem;
        min-height: 140px;
        margin-bottom: 2rem;
    }
    
    #main-title {
        font-size: 1.8rem;
        letter-spacing: 0.08em;
        line-height: 1.3;
    }
    
    #main-title br {
        margin-bottom: 0.3rem;
    }
    
    .card {
        padding: 1.5rem;
    }
    
    .card h2 {
        font-size: 1.4rem;
    }
}

@media (max-width: 480px) {
    .about-container {
        padding: 1.5rem;
        margin: 2rem auto;
    }
    
    .title-center {
        padding: 1rem;
        min-height: 120px;
    }
    
    #main-title {
        font-size: 1.5rem;
        letter-spacing: 0.05em;
    }
    
    .card {
        padding: 1.2rem;
    }
}

/* ===== GACHA SLIDER ===== */
.gacha-wrapper {
    position: relative;
    width: 100%;
    max-width: 900px;
    margin: 2rem auto;
    display: flex;
    align-items: center;
    gap: 1rem;
}

#Slider {
    width: 100%;
    height: 350px;
    overflow: hidden;
    border-radius: 16px;
    border: 4px solid salmon;
    position: relative;
    flex: 1;
}

#Slider figure {
    display: flex;
    width: 400%;
    height: 100%;
    margin: 0;
    animation: slide 20s infinite linear;
}

#Slider figure img {
    width: 25%;
    height: 100%;
    object-fit: cover;
    flex-shrink: 0;
}
/*
@keyframes :disabled {
    0% { transform: translateX(0); }
    100% { transform: translateX(-75%); }
}*/

.nav-btn {
    background: rgba(250, 128, 114, 0.8);
    border: none;
    color: white;
    font-size: 2rem;
    width: 50px;
    height: 200px;
    border-radius: 220px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.nav-btn:hover {
    background: salmon;
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(250, 128, 114, 0.4);
}

/* ===== FOOTER ===== */
footer {
    background: #fce4ec;
    padding: 1rem;
    text-align: center;
    font-weight: bold;
    width: 100%;
    position: fixed;
    bottom: 0;
    left: 0;
    border-top: 3px solid salmon;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    height: var(--footer-height);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

footer p {
    color: #333;
    margin: 0;
    font-size: 1rem;
}

@media (max-width: 1024px) {
    .content-wrapper {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .title-section {
        padding: 1.5rem;
    }
    
    #russian-title {
        font-size: 2rem;
        letter-spacing: 0.1em;
    }
    
    .slider, #Slider {
        height: 250px;
    }
}

@media (max-width: 768px) {
    :root {
        --header-height: 140px;
    }
    
    header {
        flex-direction: column;
        padding: 1rem;
        gap: 1rem;
        min-height: var(--header-height);
    }
    
    .left-header {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
    
    #Contacts {
        align-items: center;
        text-align: center;
    }
    
    #Contacts nav {
        justify-content: center;
    }
    
    #Contacts a {
        padding: 0.4rem 0.8rem;
        font-size: 0.9rem;
    }
    
    .section-title h1,
    .section-title h2 {
        color: white;
        font-size: 2rem;
    }
    
    .about-container {
        padding: 1.5rem;
        margin: 2rem auto;
    }
    
    #russian-title {
        font-size: 1.5rem;
        letter-spacing: 0.05em;
    }
    
    .card {
        padding: 1.5rem;
    }
    
    .card h2 {
        font-size: 1.3rem;
    }
    
    .card p {
        font-size: 1rem;
    }
    
    .slider, #Slider {
        height: 200px;
    }
    
    .gacha-wrapper {
        flex-direction: column;
    }
    
    .nav-btn {
        position: static;
        order: 2;
        margin-top: 1rem;
    }
    
    body {
        padding-top: var(--header-height);
    }
}

@media (max-width: 480px) {
    .slider, #Slider {
        height: 180px;
    }
    
    .section-title h1,
    .section-title h2 {
        font-size: 1.8rem;
    }
    
    #Contacts nav {
        flex-direction: column;
        align-items: center;
    }
    
    footer p {
        font-size: 0.9rem;
    }
    
    #russian-title {
        font-size: 1.2rem;
    }
    
    .stats {
        flex-direction: column;
        gap: 1rem;
    }
}
