@import url('https://fonts.googleapis.com/css2?family=Alex+Brush&family=Montserrat:wght@300;400;600&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    position: relative;
    margin: 0;
    padding: 0;
    scroll-behavior: smooth;
    background: url("back.avif") center/cover no-repeat fixed;
    background-color: #1B6EA4;
    font-family: "Poppins", sans-serif;
    overflow-x: hidden;
}

/* dark overlay */
html::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.1);
    z-index: -1;
    pointer-events: none;
}


section {
    position: relative;
    min-height: 100vh;
    width: 100%;
    display: flex;
    justify-content: end;
    align-items: end;
    transition: opacity 1.5s ease, transform 1.5s ease;
}

.visible {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

#start {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    overflow: hidden;
}

#start::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg,
        rgba(0, 0, 0, 0.3) 0%,
        rgba(0, 0, 0, 0.2) 70%,
        rgba(0, 0, 0, 0.1) 90%,
        transparent 100%
    );
    z-index: 0;
}

.overlay {
    position: fixed;
    z-index: 2;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.05);
    pointer-events: none;
}

.title {
    position: absolute;
    top: 30%;
    left: 13%;
    transform: translateY(-50%);
    z-index: 50;
}

.title_1 {
    font-family: 'Alex Brush', cursive;
    font-size: clamp(4rem, 10vw, 16rem);
    color: #f8faff;
    text-shadow: 0 0 40px rgba(160, 220, 255, 0.9);
    opacity: 0;
    animation: fadeIn 2s forwards 0.5s;
    transition: text-shadow 0.8s ease;
    cursor: default;
    margin: 0;
}

.title_1:hover {
    text-shadow: 0 0 60px rgba(180, 240, 255, 1);
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

.splash_base {
    position: absolute;
    top: 0;
    right: 0;
    height: 100%;
    width: 50%;
    z-index: 15;
    pointer-events: none;
}

.hz {
    position: relative;
    height: 100%;
    width: 100%;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.splash_art {
    position: absolute;
    right: -5%;
    bottom: 0;
    height: 100%;
    width: auto;
    object-fit: contain;
    object-position: bottom right;
}

/* Furina card */
.card {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 25;
}

.precard {
    position: absolute;
    top: 15%;
    left: 1%;
    width: 220px;
    height: auto;
    z-index: 26;
    pointer-events: auto;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.4s ease, visibility 0.4s ease, transform 0.3s ease;
    cursor: pointer;
}

.precard.hidden {
    opacity: 0;
    visibility: hidden;
}

.precard:hover {
    transform: scale(1.05);
}

.furina_card {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
    filter: drop-shadow(0 0 25px rgba(100, 180, 255, 0.9));
    transition: transform 0.25s ease;
}

.furina_card:hover {
    transform: scale(1.12);
}

/* Constellation table */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}

.popup-overlay.active {
    opacity: 1;
    visibility: visible;
}

.popup-content {
    background: url("furina constellation.jfif") center/cover no-repeat fixed;
    border: 2px solid rgba(120, 172, 255, 0.5);
    border-radius: 20px;
    padding: 40px;
    max-width: 900px;
    max-height: 85vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    transform: scale(0.8);
    transition: transform 0.4s ease;
}

.popup-overlay.active .popup-content {
    transform: scale(1);
}

.popup-content::-webkit-scrollbar {
    width: 8px;
}

.popup-content::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
}

.popup-content::-webkit-scrollbar-thumb {
    background: rgba(120, 172, 255, 0.6);
    border-radius: 10px;
}

.popup-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    font-size: 2rem;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
}

.popup-close:hover {
    background: rgba(255, 100, 100, 0.8);
    border-color: rgba(255, 100, 100, 1);
    transform: rotate(90deg);
}

.popup-title {
    font-family: 'Alex Brush', cursive;
    font-size: 3rem;
    color: #78acff;
    text-align: center;
    margin-bottom: 10px;
    text-shadow: 0 0 20px rgba(120, 172, 255, 0.8);
}

.popup-subtitle {
    text-align: center;
    color: #b3d9ff;
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.8;
}

.constellation-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.constellation-item {
    display: flex;
    gap: 20px;
    background: rgba(0, 0, 0, 0.4);
    padding: 20px;
    border-radius: 15px;
    border: 1px solid rgba(120, 172, 255, 0.2);
    transition: all 0.3s ease;
}

.constellation-item:hover {
    background: rgba(120, 172, 255, 0.3);
    border-color: rgba(120, 172, 255, 0.5);
    transform: translateX(5px);
}

.constellation-icon_1,
.constellation-icon_2,
.constellation-icon_3,
.constellation-icon_4,
.constellation-icon_5,
.constellation-icon_6 {
    min-width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    font-weight: bold;
    color: #ffffff;
    box-shadow: 0 5px 15px rgba(66, 135, 245, 0.5);
}

.constellation-icon_1 {
    background: url("с1.webp") center/cover no-repeat;
}

.constellation-icon_2 {
    background: url("c2.webp") center/cover no-repeat;
}

.constellation-icon_3 {
    background: url("с1.webp") center/cover no-repeat;
}

.constellation-icon_4 {
    background: url("c4.webp") center/cover no-repeat;
}

.constellation-icon_5 {
    background: url("с1.webp") center/cover no-repeat;
}

.constellation-icon_6 {
    background: url("c6.webp") center/cover no-repeat;
}

.constellation-number {
    font-family: 'Alex Brush', cursive;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.3rem;
}

.constellation-info h3 {
    color: #78acff;
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.constellation-info p {
    color: #d0e8ff;
    font-size: 0.95rem;
    line-height: 1.6;
}


.info {
    position: absolute;
    bottom: 20%;
    left: 10%;
    transform: translateX(-50%);
    z-index: 60;
}

.button {
    color: #ecf0f1;
    font-size: 4rem;
    font-family: 'Montserrat', 'sans-serif';
    background-color: rgb(8, 44, 105);
    border: 1px solid rgb(3, 29, 74);
    border-radius: 30px;
    cursor: pointer;
    text-decoration: none;
    padding: 20px;
    box-shadow: 0px 6px 0px rgb(3, 29, 74);
    transition: all 0.1s;
}

.button:active {
    box-shadow: 0px 2px 0px rgb(3, 29, 74);
    background-color: #022563;
    position: relative;
    top: 2px;
}


.back-button {
    position: fixed;
    bottom: 40px;
    right: 40px;
    z-index: 1000;
}

.back-to-top {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: none;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    cursor: pointer;
    overflow: hidden;
    width: 180px;
    height: 70px;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.back-to-top:hover {
    background: rgba(255, 255, 255, 0.2);
}

.back-to-top .arrow {
    width: 50px;
    height: 50px;
    transition: all 0.5s ease;
}

.back-to-top .text {
    opacity: 0;
    transform: translateX(-20px);
    transition: all 0.6s ease;
    font-size: 1.3rem;
}

.back-to-top:hover .arrow {
    width: 25px;
    height: 25px;
    transform: translateX(5px) translateY(-1px);
}

.back-to-top:hover .text {
    opacity: 1;
    transform: translateX(0);
}

.back-to-top::before {
    content: "";
    position: absolute;
    height: 1px;
    bottom: 0;
    left: 0;
    width: 100%;
    background: currentColor;
    transform: scaleX(0);
    transform-origin: bottom right;
    transition: transform 0.4s ease;
}

.back-to-top:hover::before {
    transform: scaleX(1);
    transform-origin: bottom left;
}

/* main container*/
.container {
    max-width: 1500px;
    margin: 0 auto;
    background: rgba(0, 22, 66, 0.85);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7),
                0 0 100px rgba(100, 181, 246, 0.1);
    border: 1px solid rgba(100, 181, 246, 0.2);
}

.header {
    text-align: center;
    margin-bottom: 50px;
    position: relative;
}

.header h1 {
    font-size: clamp(4rem, 7vw, 16rem);
    background: #a2cbfa;
    font-family: 'Alex Brush', Tahoma, Geneva, Verdana, sans-serif;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 30px rgba(201, 231, 255, 0.3);
    margin-bottom: 10px;
    font-weight: 700;
}

.header p {
    color: #a2cbfa;
    font-size: 18px;
    opacity: 0.9;
}



.talents-section {
    margin-bottom: 60px;
}

.section-title {
    color: #a2cbfa;
    font-size: 32px;
    margin-bottom: 30px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.section-title::before,
.section-title::after {
    content: '';
    flex: 1;
    height: 2px;
    background: linear-gradient(90deg, transparent, #a2cbfa, transparent);
}

.talents-icons {
    display: flex;
    gap: 25px;
    justify-content: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
    padding: 20px;
}

.talent-icon {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    border: 2px solid rgba(18, 82, 184, 0.9);
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.talent-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 0 8px rgba(100, 181, 246, 0.4));
    transition: all 0.3s ease;
}

.talent-icon:hover {
    transform: translateY(-5px) scale(1.05);
    border-color: #64b5f6;
    box-shadow: 0 10px 30px rgba(162, 203, 250, 0.4);
}

.talent-icon:hover img {
    filter: drop-shadow(0 0 15px rgba(100, 181, 246, 0.8));
}

.talent-icon.active {
    border: 4px solid #a2cbfa;
    box-shadow: 0 0 40px rgba(79, 195, 247, 0.8),
                inset 0 0 30px rgba(79, 195, 247, 0.2);
    background: linear-gradient(135deg, rgba(79, 195, 247, 0.3), rgba(100, 181, 246, 0.2));
    animation: activePulse 2s infinite;
    transform: scale(1.1);
}

.talent-icon.active img {
    filter: drop-shadow(0 0 20px rgba(100, 181, 246, 1));
}

@keyframes activePulse {
    0%, 100% {
        box-shadow: 0 0 40px rgba(162, 203, 250, 0.8),
            inset 0 0 30px rgba(162, 203, 250, 0.2);
    }
    50% {
        box-shadow: 0 0 60px rgba(162, 203, 250, 1),
            inset 0 0 40px rgba(162, 203, 250, 0.4);
    }
}

.talent-icon::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(184, 18, 51, 0.9), transparent);
    transform: rotate(45deg);
    transition: all 0.5s;
}

.talent-icon:hover::before {
    left: 100%;
}

.talent-content {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 35px;
    align-items: start;
}

.talent-media {
    background: linear-gradient(135deg, rgba(20, 124, 204, 0.6), rgba(19, 57, 171, 0.6));
    border-radius: 15px;
    overflow: hidden;
    border: 2px solid rgba(204, 140, 2, 0.5);
    position: relative;
    aspect-ratio: 16/9;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.talent-media::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(79, 195, 247, 0.1), transparent);
    pointer-events: none;
    z-index: 1;
}

.talent-media video,
.talent-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* pasive talent style*/
.passive-talent-display {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    width: 100%;

}

.passive-talent-icon {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid rgba(100, 181, 246, 0.5);
    box-shadow: 0 0 40px rgba(79, 195, 247, 0.6);
}

.passive-talent-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.talent-description {
    background: linear-gradient(135deg, rgba(19, 25, 87, 0.6), rgba(0, 11, 128, 0.6));
    padding: 30px;
    border-radius: 15px;
    border: 2px solid rgba(204, 140, 2, 0.6);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.talent-description h3 {
    color: #a2cbfa;
    margin-bottom: 20px;
    font-size: 28px;
    text-shadow: 0 0 10px rgba(79, 195, 247, 0.5);
}

.talent-type {
    color: #a2cbfa;
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 15px;
    display: inline-block;
    padding: 5px 15px;
    background: rgba(79, 195, 247, 0.15);
    border-radius: 20px;
    border: 1px solid rgba(79, 195, 247, 0.3);
}

.talent-description p {
    line-height: 1.8;
    margin-bottom: 15px;
    color: #b8d4e8;
    font-size: 15px;
}

.talent-description strong {
    color: #185acc;
}


.gallery-section {
    margin-top: 60px;
}

.gallery-nav {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    padding: 25px 10px;
    margin-bottom: 35px;
    scrollbar-width: thin;
    scrollbar-color: rgba(100, 181, 246, 0.5) rgba(26, 47, 77, 0.3);
    justify-content: center;
}

.gallery-nav::-webkit-scrollbar {
    height: 10px;
}

.gallery-nav::-webkit-scrollbar-track {
    background: rgba(246, 100, 100, 0.3);
    border-radius: 5px;
}

.gallery-nav::-webkit-scrollbar-thumb {
    background: rgba(100, 181, 246, 0.5);
    border-radius: 5px;
}

.gallery-nav::-webkit-scrollbar-thumb:hover {
    background: rgba(100, 181, 246, 0.8);
}

.gallery-btn {
    padding: 14px 28px;
    background: linear-gradient(135deg, rgba(8, 29, 120, 0.7), rgba(0, 33, 176, 0.7)); /* button */
    border: 2px solid rgba(204, 140, 2, 0.5); /* border about button */
    border-radius: 30px;
    color: #a2cbfa;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    font-size: 15px;
    font-weight: 500;
    backdrop-filter: blur(5px);
}

.gallery-btn:hover {
    background: linear-gradient(135deg, rgba(10, 14, 143, 0.2), rgba(27, 32, 191, 0.2));
    border-color: #cc8c02;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(204, 140, 2, 0.3);
}

.gallery-btn.active {
    background: linear-gradient(135deg, #a2cbfa 0%, #a2cbfa 100%);
    border-color: #a2cbfa;
    color: #0a1628;
    font-weight: 600;
    box-shadow: 0 0 30px rgba(184, 212, 232, 0.6);
}


.gallery-content-wrapper {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    align-items: start;
}

.gallery-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.gallery-media {
     background: linear-gradient(135deg, rgba(19, 25, 87, 0.6), rgba(0, 11, 128, 0.6));
    border-radius: 15px;
    overflow: hidden;
    border: 2px solid rgba(204, 140, 2, 0.3);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 300px;
}

.gallery-media video,
.gallery-media img {
    width: 100%;
    height: auto;
    max-height: 600px;
    object-fit: contain;
    display: block;
}




.slider-container {
    background: rgba(11, 27, 60, 0.9);
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7);
    overflow: hidden;
    border: 1px solid rgba(100, 181, 246, 0.2);
    max-height: fit-content;
}

.slider-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: #000;
    min-height: 200px;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slide.active {
    opacity: 1;
    position: relative;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.slider-controls {
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(100, 181, 246, 0.2);
}

.dots {
    display: flex;
    gap: 10px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #4a5d8a;
    cursor: pointer;
    transition: all 0.3s;
}

.dot.active {
    background: #4fc3f7;
    transform: scale(1.3);
    box-shadow: 0 0 10px rgba(79, 195, 247, 0.8);
}

.nav-buttons {
    display: flex;
    gap: 10px;
}

button {
    padding: 10px 20px;
    background-color: #4a5d8a;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s;
}

button:hover {
    background: #5568d3;
    transform: scale(1.05);
}

button:active {
    transform: scale(0.95);
}

.slider-title {
    padding: 20px;
    text-align: center;
    font-size: 24px;
    font-weight: bold;
    color: #a2cbfa;
    border-bottom: 1px solid rgba(100, 181, 246, 0.2);
}

.slider-subtitle {
    padding: 15px 20px;
    text-align: center;
    font-size: 18px;
    color: #667eea;
    font-weight: 500;
    min-height: 50px;
    transition: opacity 0.5s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
}




@media (max-width: 1200px) {
    .gallery-content-wrapper {
        grid-template-columns: 1fr;
    }

    .slider-container {
        max-width: 600px;
        margin: 0 auto;
    }
}

@media (max-width: 1024px) {
    .talent-content {
        grid-template-columns: 1fr;
    }

    .header h1 {
        font-size: 36px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 25px;
    }

    .talents-icons {
        gap: 15px;
    }

    .talent-icon {
        width: 75px;
        height: 75px;
    }

    .header h1 {
        font-size: 28px;
    }

    .section-title {
        font-size: 24px;
    }

    .title {
        left: 50%;
        transform: translate(-50%, -50%);
    }





@media (max-width: 768px) {
    .container {
        padding: 25px;
    }

    .talents-icons {
        gap: 15px;
    }

    .talent-icon {
        width: 75px;
        height: 75px;
    }

    .header h1 {
        font-size: 28px;
    }

    .section-title {
        font-size: 24px;
    }

    /* First page mobile - правильна структура */
    #start {
        display: flex;
        flex-direction: column;
        position: relative;
        min-height: 100vh;
        padding: 0;
    }

    /* 1. Splash art зверху на всю ширину */
    .splash_base {
        position: relative;
        width: 100vw;
        height: 60vh;
        top: 0;
        left: 50%;
        right: auto;
        transform: translateX(-50%);
        margin: 0;
        order: 1;
    }

    .hz {
        width: 100%;
        height: 100%;
        justify-content: center;
        align-items: center;
    }

    .splash_art {
        position: relative;
        right: auto;
        bottom: auto;
        transform: none;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    /* 2. Напис "Furina" зліва + іконка справа (на одній лінії) - ПІСЛЯ splash art */
    .title {
        position: relative;
        top: auto;
        left: auto;
        transform: none;
        width: auto;
        display: inline-block;
        margin: 30px 0 0 5%;
        z-index: 50;
        order: 2;
    }

    .title_1 {
        font-size: clamp(3rem, 10vw, 5rem);
        text-align: left;
        margin: 0;
    }

    .card {
        position: relative;
        top: auto;
        right: 5%;
        left: auto;
        width: auto;
        height: auto;
        pointer-events: auto;
        order: 2;
        display: flex;
        justify-content: flex-end;
        margin-top: -180px;
        padding-right: 5%;
    }

    .precard {
        position: relative;
        top: auto;
        left: auto;
        transform: none;
        width: 150px;
        margin: 0;
    }

    .precard.hidden {
        opacity: 0;
        visibility: hidden;
    }

    /* 3. Кнопка Info внизу */
    .info {
        position: relative;
        bottom: auto;
        left: 0;
        transform: none;
        width: 100%;
        text-align: center;
        margin-top: 40px;
        padding-bottom: 40px;
        z-index: 60;
        order: 3;
    }

    .button {
        font-size: 2rem;
        padding: 15px 50px;
        display: inline-block;
    }

    /* Constellation popup mobile */
    .popup-content {
        padding: 20px;
        max-width: 95%;
        max-height: 90vh;
        margin: 10px;
    }

    .popup-title {
        font-size: 2rem;
    }

    .popup-subtitle {
        font-size: 1rem;
    }

    .constellation-item {
        flex-direction: row;
        gap: 15px;
        padding: 15px;
        align-items: flex-start;
        text-align: left;
        position: relative;
    }

    .constellation-number {
        position: relative;
        min-width: 40px;
        font-size: 1.5rem;
        flex-shrink: 0;
    }

    .constellation-icon_1,
    .constellation-icon_2,
    .constellation-icon_3,
    .constellation-icon_4,
    .constellation-icon_5,
    .constellation-icon_6 {
        min-width: 70px;
        height: 70px;
        flex-shrink: 0;
    }

    .constellation-info {
        flex: 1;
    }

    .constellation-info h3 {
        font-size: 0.95rem;
        margin-bottom: 8px;
    }

    .constellation-info p {
        font-size: 0.85rem;
        line-height: 1.5;
    }

    .popup-close {
        width: 35px;
        height: 35px;
        font-size: 1.5rem;
    }

    .back-button {
        bottom: 20px;
        right: 20px;
    }

    .back-to-top {
        width: 60px;
        height: 60px;
    }

    .back-to-top .text {
        display: none;
    }

    .back-to-top .arrow {
        width: 30px;
        height: 30px;
    }

    .back-to-top:hover .arrow {
        width: 30px;
        height: 30px;
        transform: translateY(-3px);
    }
}

@media (max-width: 480px) {
    .splash_base {
        height: 55vh;
    }

    .title {
        margin: 25px 0 0 3%;
    }

    .title_1 {
        font-size: clamp(2.5rem, 9vw, 4rem);
    }

    .card {
        top: calc(55vh + 25px);
        right: 3%;
    }

    .precard {
        width: 130px;
    }

    .info {
        margin-top: 30px;
        padding-bottom: 30px;
    }

    .button {
        font-size: 1.8rem;
        padding: 12px 40px;
    }

    .popup-content {
        padding: 15px;
    }

    .popup-title {
        font-size: 1.5rem;
    }

    .constellation-number {
        min-width: 35px;
        font-size: 1.2rem;
    }

    .constellation-icon_1,
    .constellation-icon_2,
    .constellation-icon_3,
    .constellation-icon_4,
    .constellation-icon_5,
    .constellation-icon_6 {
        min-width: 60px;
        height: 60px;
    }

    .constellation-info h3 {
        font-size: 0.85rem;
    }

    .constellation-info p {
        font-size: 0.8rem;
    }
}
