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

body {
    background-color: #000;
    color: #fff;
    overflow-x: hidden;
    font-family: "Courier New", Courier, monospace;
    animation: fadeInPage 1.2s ease-in-out;
}

::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #0a0813;
}
::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #ff5e62, #ff9966);
    border-radius: 4px;
}

.top-banner-link {
    position: relative;
    display: flex;
    justify-content: center;
    width: 100%;
    max-width: 1200px;
    margin: 30px auto;
    padding: 0 20px;
    box-sizing: border-box;
}

.top-banner-img {
    width: 100%;
    max-width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
}

.hero-section,
.main-grid,
.project-container {
    max-width: 1200px;
    margin: 0 auto;
}

.hero-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 60px 20px;
    position: relative; 
    width: 100%;
}

.main-statue {
    width: 300px;
    max-width: 80%;
    margin-bottom: 25px;
    filter: drop-shadow(0 0 25px rgba(255, 94, 98, 0.35));
    animation: floatMain 4s ease-in-out infinite;
    position: relative;
    z-index: 2;
}

.hero-title,
.project-title {
    letter-spacing: 4px;
    text-transform: uppercase;
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 24px;
    margin-bottom: 15px;
    background: linear-gradient(45deg, #ff9966, #ff5e62);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 14px;
    color: #bfaecf;
    max-width: 600px;
    line-height: 1.6;
    position: relative;
    z-index: 2;
}

.hero-mascot {
    position: absolute;
    height: auto;
    z-index: 1;
    filter: drop-shadow(0 0 10px rgba(255, 94, 98, 0.2));
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    opacity: 0;
    will-change: transform, opacity;
}

.hero-mascot:hover {
    transform: scale(1.15) rotate(3deg) !important; 
    z-index: 3;
}

.mascot-insom {
    width: 100px;
    top: 20px;
    left: 15%;
    animation: mascotFadeInUp1 1.2s cubic-bezier(0.25, 1, 0.5, 1) 0.3s forwards, 
               floatMascot1 3.8s ease-in-out infinite 1.5s;
}

.mascot-tanya {
    width: 110px;
    top: 15px;
    right: 15%;
    animation: mascotFadeInUp2 1.2s cubic-bezier(0.25, 1, 0.5, 1) 0.5s forwards, 
               floatMascot2 4.2s ease-in-out infinite 1.7s;
}

.mascot-cat {
    width: 120px;
    top: 50%;
    transform: translateY(-50%);
    left: 4%;
    animation: mascotFadeInUp3 1.2s cubic-bezier(0.25, 1, 0.5, 1) 0.7s forwards, 
               floatMascot3 4.0s ease-in-out infinite 1.9s;
}

.mascot-rosem {
    width: 125px;
    top: 50%;
    transform: translateY(-50%);
    right: 4%;
    animation: mascotFadeInUp4 1.2s cubic-bezier(0.25, 1, 0.5, 1) 0.9s forwards, 
               floatMascot4 4.5s ease-in-out infinite 2.1s;
}

.main-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 25px;
    padding: 40px 20px;
    flex: 1; 
}

.external-card {
    text-decoration: none;
    position: relative;
    overflow: hidden;
    border: 1px solid #222;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    background: #0a0a0a;
}

.external-card::after {
    content: "";
    position: absolute;
    inset: 0; 
    background: linear-gradient(180deg, rgba(0,0,0,0) 50%, rgba(255, 94, 98, 0.15) 100%);
    pointer-events: none;
    transition: opacity 0.3s;
}

.external-card img {
    display: block;
    width: 320px; 
    height: auto;
    transition: filter 0.3s, transform 0.6s;
}

.external-card:hover {
    transform: translateY(-8px);
    border-color: rgba(255, 153, 102, 0.4);
    box-shadow: 0 10px 25px rgba(255, 94, 98, 0.2);
}

.external-card:hover img {
    transform: scale(1.05); 
    filter: brightness(1.1) saturate(1.1);
}

.header-container {
    width: 100%;
    height: 80px; 
    background: url('img/topgradient.png') repeat-x;
    background-size: contain;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    z-index: 10;
}

.brand-zone {
    display: flex;
    align-items: center;
    height: 100%;
    padding-left: 10px;
}

.brand-zone img {
    height: 90%; 
    display: block;
}

.nav-zone {
    display: flex;
    height: 100%;
    padding-right: 40px;
}

.nav-button {
    display: block;
    height: 100%;
    position: relative;
    width: 110px;
    cursor: pointer;
}

.nav-button img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
    transition: opacity 0.4s ease-in-out;
}

.nav-button img.static { opacity: 1; z-index: 2; }
.nav-button img.active { opacity: 0; z-index: 1; }

.nav-button:hover img.static { opacity: 0; }
.nav-button:hover img.active { opacity: 1; }

.project-container {
    display: flex;
    margin: 60px auto;
    padding: 0 40px;
    gap: 50px;
    align-items: flex-start;
}

.project-image-side,
.project-info-side {
    flex: 1;
}

.project-image-side {
    position: relative;
}

.project-image-side img {
    width: 100%;
    border: 1px solid #333;
    filter: drop-shadow(0 0 15px rgba(255,255,255,0.05));
}

.project-info-side {
    display: flex;
    flex-direction: column;
}

.project-title {
    font-size: 28px;
    margin-bottom: 20px;
    border-bottom: 1px solid #222;
    padding-bottom: 10px;
}

.project-description {
    font-size: 15px;
    color: #aaa;
    line-height: 1.8;
    margin-bottom: 30px;
}

.links-grid {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.external-link {
    display: inline-block;
    padding: 12px 20px;
    border: 1px solid #444;
    color: #fff;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 13px;
    transition: all 0.3s;
    text-align: center;
    background: rgba(255,255,255,0.02);
}

.external-link:hover {
    background: #fff;
    color: #000;
    transform: translateX(10px);
}

.copyright {
    font-size: 10px;
    color: #444;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.about-section {
    max-width: 900px;
    margin: 60px auto;
    padding: 0 20px;
    line-height: 1.6;
    flex: 1; 
}

.about-title {
    font-size: 32px;
    letter-spacing: 5px;
    text-transform: uppercase;
    border-bottom: 1px solid #333;
    padding-bottom: 15px;
    margin-bottom: 40px;
}

.about-text {
    font-size: 18px;
    color: #efefef;
    margin-bottom: 25px;
    text-align: left;
}

.info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 50px;
    border-top: 1px solid #222;
    padding-top: 30px;
}

.info-item h4 {
    color: #666;
    font-size: 14px;
    text-transform: uppercase;
    margin-bottom: 5px;
}

.info-item p {
    font-size: 16px;
}

footer {
    padding: 40px 20px;
    border-top: 1px solid #111;
    text-align: center;
    background-color: #000;
}

.footer-socials {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 20px;
}

.social-link {
    color: #fff;
    text-decoration: none;
    font-size: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: color 0.3s;
}

.social-link:hover {
    color: #ff9966;
    text-shadow: 0 0 10px rgba(255, 153, 102, 0.4);
}

.tv-frame {
    position: relative;
    width: 95vmin; 
    height: 95vmin;
    max-width: 750px;
    max-height: 750px;
    background: url('img/rosask/tv.png') no-repeat center center;
    background-size: contain;
    display: flex;
    justify-content: center;
    align-items: center;
}

.crt-screen {
    position: absolute;
    top: 11%;
    left: 11%;
    width: 78%;
    height: 61%;
    background: url('img/rosask/back.png') no-repeat center bottom;
    background-size: cover;
    border-radius: 12px; 
    cursor: pointer;
    box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.9);
    animation: crt-flicker 0.15s infinite;
}

.crt-screen::after {
    content: " ";
    display: block;
    position: absolute;
    inset: 0;
    background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.3) 50%);
    z-index: 5;
    background-size: 100% 4px;
    pointer-events: none;
}

.start-overlay {
    position: absolute;
    inset: 0;
    background: #050505;
    z-index: 10;
    display: flex;
    justify-content: center;
    align-items: center;
}

.start-prompt {
    font-family: 'Courier New', Courier, monospace;
    color: #33ff33; 
    font-size: 14px;
    letter-spacing: 2px;
    text-shadow: 0 0 8px rgba(51, 255, 51, 0.8);
    animation: pulse 1s infinite alternate;
    text-align: center;
    padding: 10px;
}

.stage {
    position: absolute;
    inset: 0;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    z-index: 1;
}

.sprite {
    height: 85%;
    object-fit: contain;
    filter: drop-shadow(0 0 10px rgba(0, 0, 0, 0.7));
    transition: transform 0.1s ease-in-out;
    animation: floatSprite 3s ease-in-out infinite;
}

.vn-ui-container {
    position: absolute;
    bottom: 18%; 
    left: 6%;
    right: 6%;
    z-index: 3;
}

.name-box {
    display: inline-block;
    background: #0c0c0c;
    color: #ffffff;
    border: 2px solid #3a3a3a;
    border-bottom: none;
    padding: 3px 10px; 
    font-size: 11px;
    font-weight: bold;
    letter-spacing: 1px;
    border-radius: 4px 4px 0 0;
    box-shadow: 0 -2px 5px rgba(0,0,0,0.5);
}

.textbox {
    background: rgba(13, 13, 13, 0.85); 
    border: 2px solid #3a3a3a;
    border-radius: 0 5px 5px 5px;
    padding: 8px 12px; 
    min-height: 54px;
    box-sizing: border-box;
    box-shadow: 0 4px 10px rgba(0,0,0,0.7);
    position: relative;
}

.text-content {
    font-size: 11px;
    line-height: 1.4; 
    color: #e5e5e5;
    padding-right: 15px;
    word-wrap: break-word;
}

.next-arrow {
    position: absolute;
    bottom: 6px; 
    right: 10px;
    font-size: 9px;
    color: #888;
    animation: arrow-blink 0.6s infinite alternate;
}

.crt-screen:active .sprite {
    transform: scale(0.98);
}

.staff-header {
    text-align: center;
    margin: 60px 0 40px;
}

.staff-header h1 {
    font-size: 32px;
    letter-spacing: 6px;
    text-transform: uppercase;
    border-bottom: 1px solid #222;
    display: inline-block;
    padding-bottom: 10px;
}

.staff-container {
    max-width: 1000px;
    margin: 0 auto 100px;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.staff-card {
    display: flex;
    align-items: center;
    gap: 30px;
    background: rgba(255,255,255,0.02);
    border: 1px solid #222;
    padding: 20px;
    transition: transform 0.3s, border-color 0.3s;
    cursor: pointer;
    user-select: none;
    pointer-events: auto;
}

.staff-card:hover {
    transform: translateX(10px);
    border-color: #444;
    background: rgba(255,255,255,0.05);
}

.staff-photo {
    width: 150px;
    height: 150px;
    flex-shrink: 0;
    border: 1px solid #333;
    overflow: hidden;
    pointer-events: none;
}

.staff-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(0.5);
    transition: filter 0.3s;
}

.staff-card:hover .staff-photo img {
    filter: grayscale(0);
}

.staff-info {
    flex: 1;
    pointer-events: none; 
}

.staff-name {
    font-size: 20px;
    color: #fff;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.staff-role {
    font-size: 14px;
    color: #888;
    margin-bottom: 10px;
    font-style: italic;
}

.staff-desc {
    font-size: 14px;
    color: #aaa;
    line-height: 1.6;
}

.staff-year {
    display: inline-block;
    margin-top: 10px;
    font-size: 11px;
    color: #555;
    letter-spacing: 1px;
}

@keyframes floatMain {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
}

@keyframes fadeInPage {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes mascotFadeInUp1 {
    0% { opacity: 0; transform: translateY(40px) rotate(-10deg); }
    100% { opacity: 1; transform: translateY(0px) rotate(-4deg); }
}
@keyframes mascotFadeInUp2 {
    0% { opacity: 0; transform: translateY(40px) rotate(10deg); }
    100% { opacity: 1; transform: translateY(0px) rotate(4deg); }
}
@keyframes mascotFadeInUp3 {
    0% { opacity: 0; transform: translateX(-40px) translateY(20px) rotate(-5deg); }
    100% { opacity: 1; transform: translateX(0px) translateY(0px) rotate(0deg); }
}
@keyframes mascotFadeInUp4 {
    0% { opacity: 0; transform: translateX(40px) translateY(20px) rotate(5deg); }
    100% { opacity: 1; transform: translateX(0px) translateY(0px) rotate(0deg); }
}

@keyframes floatMascot1 {
    0%, 100% { transform: translateY(0px) rotate(-4deg); }
    50% { transform: translateY(-12px) rotate(0deg); }
}
@keyframes floatMascot2 {
    0%, 100% { transform: translateY(0px) rotate(4deg); }
    50% { transform: translateY(-10px) rotate(0deg); }
}
@keyframes floatMascot3 {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-8px) rotate(3deg); }
}
@keyframes floatMascot4 {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-9px) rotate(-3deg); }
}

@keyframes crt-flicker {
    0% { opacity: 0.993; }
    50% { opacity: 1; }
    100% { opacity: 0.996; }
}

@keyframes arrow-blink {
    0% { opacity: 0.2; transform: translateY(0); }
    100% { opacity: 1; transform: translateY(2px); }
}

@keyframes pulse {
    0% { opacity: 0.3; }
    100% { opacity: 1; }
}

@media (max-width: 1024px) {
    .mascot-insom { left: 8%; }
    .mascot-tanya { right: 8%; }
    .mascot-cat { left: 2%; width: 90px; }
    .mascot-rosem { right: 2%; width: 95px; }
}

@media (max-width: 850px) {
    .project-container {
        flex-direction: column;
        text-align: center;
    }
    .external-link:hover {
        transform: translateY(-5px);
    }
}

@media (max-width: 768px) {
    .header-container { height: 60px; }
    .nav-button { width: 80px; }
    
    .hero-title { font-size: 18px; letter-spacing: 2px; }
    .hero-subtitle { font-size: 12px; }
    .main-statue { width: 190px; }

    .top-banner-link {
        display: flex;
        justify-content: center;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        padding: 0 10px;
        margin: 10px 0;
    }

    .top-banner-img {
        width: 100%;
        max-width: 100%;
        height: auto;
        object-fit: contain;
        display: block;
    }

    .hero-mascot {
        display: block; 
    }

    .mascot-insom {
        width: 65px !important;
        top: 10px !important;
        left: 5% !important;
    }

    .mascot-tanya {
        width: 75px !important;
        top: 5px !important;
        right: 5% !important;
    }

    .mascot-cat {
        width: 75px !important;
        top: 42% !important;
        left: 2% !important;
        transform: translateY(-50%) !important;
    }

    .mascot-rosem {
        width: 80px !important;
        top: 42% !important;
        right: 2% !important;
        transform: translateY(-50%) !important;
    }
    
    .hero-section {
        padding: 40px 10px;
    }

    .external-card img {
        width: 100%; 
        max-width: 400px;
    }

    .footer-socials {
        flex-direction: column;
        gap: 15px;
    }
}


@keyframes pulseStretch {
    0% {
        transform: scale(1, 1);
        box-shadow: 0 0 15px rgba(0, 102, 255, 0.2);
    }
    25% {
        transform: scale(1.15, 0.90);
        box-shadow: 0 0 40px rgba(0, 102, 255, 0.7);
    }
    50% {
        transform: scale(1.05, 1.05);
        box-shadow: 0 0 25px rgba(0, 102, 255, 0.4);
    }
    75% {
        transform: scale(0.90, 1.15);
        box-shadow: 0 0 40px rgba(0, 102, 255, 0.7);
    }
    100% {
        transform: scale(1, 1);
        box-shadow: 0 0 15px rgba(0, 102, 255, 0.2);
    }
}