/* =========================================
    GLOBAL STYLES
   ========================================= */
html {
    scroll-behavior: smooth;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body,
html {
    width: 100%;
    height: 100%;
}

/* SCROLLBAR */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #0a0a0a;
    border-left: 1px solid #1a1a1a;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, #4a3b24, #8b6b3f, #4a3b24);
    border-radius: 5px;
    border: 2px solid #0a0a0a;
}

::-webkit-scrollbar-thumb:hover {
    background: #e1c578;
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.4);
}

html {
    scrollbar-width: thin;
    scrollbar-color: #8b6b3f #0a0a0a;
}

/* HEADER */
.codex-frame {
    width: 100%;
    display: flow-root;
    background: transparent !important;
}

.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    height: 172px;
    display: flex;
    justify-content: center;
    align-items: center;

    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);

    background-color: rgba(23, 23, 23, 0.7);

    background-image: url('images/Header_Gradient_Gold.png');
    background-size: 100% 100%;
    background-repeat: no-repeat;
    overflow: visible;
}

.gold-line-overlay {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 6px;
    transform: translateY(-100%);
    background-image: url('images/gold-line.png');
    background-repeat: repeat-x;
    background-size: contain;
    z-index: 10;
    -webkit-mask-image: linear-gradient(to right, black 0%, black 20%, transparent 40%, transparent 60%, black 80%, black 100%);
    mask-image: linear-gradient(to right, black 0%, black 20%, transparent 40%, transparent 60%, black 80%, black 100%);
    animation: edgeGlow 5s ease-in-out infinite;
}

/* Navigation */
.title-area {
    font-family: 'Cinzel', serif;
    font-size: clamp(1.2rem, 3vw, 2.5rem);
    color: #8b6b3f;
    letter-spacing: clamp(4px, 1vw, 12px);
    text-transform: uppercase;
    z-index: 5;
    padding: 0 10px;
}

.nav-btn {
    position: absolute;
    top: 0;
    width: clamp(220px, 25vw, 315px);
    aspect-ratio: 315 / 136;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 11;
    text-decoration: none;
}

.nav-btn span {
    position: relative;
    top: -2px;
    z-index: 12;
    font-size: clamp(1.4rem, 2vw, 2.2rem);
    letter-spacing: 4px;
    font-family: 'Cinzel', serif;
    color: #8b6b3f;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.8), 0 0 5px rgba(139, 107, 63, 0.3);
    text-transform: uppercase;
}

.btn-left {
    left: 0;
}

.btn-right {
    right: 0;
}

.btn-right img {
    transform: scaleX(-1);
}

.nav-btn:hover span {
    color: #e1c578;
    text-shadow: 0 0 15px rgba(212, 175, 55, 0.6);
}

.nav-btn:hover {
    filter: brightness(1.3);
}

.nav-btn img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: fill;
}

.btn-bg {
    z-index: -2;
    mix-blend-mode: multiply;
    filter: brightness(0.5) contrast(1.2);
    opacity: 0.9;
}

.btn-frame {
    z-index: -1;
    animation: edgeGlow 5s ease-in-out infinite;
}
/*  MOBILE HEADER */
.mobile-header {
    display: none;
}

.mobile-nav-btn {
    border: 1px solid rgba(201, 168, 106, 0.4);
    padding: 5px 12px;
    background: rgba(0,0,0,0.3);
}
@media (max-width: 768px) {
    .header {
        display: none !important;
    }

    .mobile-header {
        display: flex;
        position: sticky;
        top: 0;
        width: 100%;
        height: 60px; 
        background: rgba(23, 23, 23, 0.9);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        border-bottom: 1px solid rgba(201, 168, 106, 0.3);
        z-index: 2000;
        justify-content: space-between;
        align-items: center;
        padding: 0 15px;
    }

    .mobile-title {
        font-family: 'Cinzel', serif;
        font-size: 1.1rem;
        color: #8b6b3f;
        text-transform: uppercase;
        letter-spacing: 2px;
    }

    .mobile-nav-btn {
        background: none;
        border: none;
        text-decoration: none;
        font-family: 'Cinzel', serif;
        color: #c9a86a;
        font-size: 0.9rem;
        text-transform: uppercase;
        letter-spacing: 1px;
        padding: 10px;
    }

    .mobile-header .gold-line-overlay {
        height: 3px;
        opacity: 0.7;
    }
}

/* MENU WINDOW */
.menu-header {
    position: relative;
    margin-bottom: 5vh;
}

.menu-title {
    font-family: 'Cinzel', serif;
    color: #8b6b3f;
    font-size: clamp(1.2rem, 3vh, 2.2rem);
    margin-bottom: 0.5vh;
    border-bottom: none;
    font-style: italic;
    letter-spacing: 0.20em;
    text-transform: uppercase;
}

.menu-line-wrapper {
    position: absolute;
    top: 100%;
    width: 180%;
    left: -20.3%;
    pointer-events: none;
    z-index: 15;
    animation: edgeGlow 5s ease-in-out infinite;
}

.menu-separator-img {
    width: 100%;
    height: auto;
    display: block;
    overflow: visible;
}

.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 2000;
    visibility: hidden;
    transition: visibility 0.5s;
}

.menu-overlay.active .menu-dimmer {
    opacity: 1;
    pointer-events: auto;
}

.menu-overlay.active .menu-content {
    opacity: 1;
    transform: translateX(0);
}

.menu-overlay.active {
    visibility: visible;
    transition-delay: 0s;
}

.menu-dimmer {
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1;
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.menu-content {
    position: absolute;
    top: 15vh;
    left: -1px;
    height: 75vh;
    aspect-ratio: 450 / 882;
    z-index: 2;
    background: transparent;
    display: flex;
    flex-direction: column;
    opacity: 0;
    transform: translateX(-110%);
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1),
        opacity 0.4s ease-in-out;
    overflow: visible;
}

.menu-overlay.active .menu-content {
    opacity: 1;
    transform: translateX(0);
    opacity: 1;
}

.menu-bg-layer {
    position: absolute;
    top: 1.8%;
    left: 0.1%;
    width: 94.5%;
    height: 96.4%;
    z-index: -1;
    mix-blend-mode: multiply;
    object-fit: fill;
}

.menu-frame-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 10;
    object-fit: contain;
    animation: edgeGlow 5s ease-in-out infinite;
}

.menu-text-container {
    position: relative;
    z-index: 11;
    padding: 10% 12%;
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: visible !important;
}

.menu-item {
    position: relative;
    width: 100%;
    padding: 0.1vh 0;
    margin-bottom: 5.5vh;
    overflow: visible;
}

.menu-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -60%;
    width: 250%;
    height: 100%;
    background: linear-gradient(90deg,
            rgba(0, 0, 0, 0) 0%,
            rgba(20, 15, 10, 0.85) 15%,
            rgba(20, 15, 10, 0) 100%);
    z-index: 1;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.menu-links a {
    display: block;
    font-family: 'Cinzel', serif;
    color: #8b6b3f;
    text-decoration: none;
    padding: 1.5vh 0;
    font-size: clamp(1.2rem, 3vh, 2.2rem);
    font-weight: 300;
    letter-spacing: 0.04em;
    transition: 0.3s;
    position: relative;
    z-index: 5;
    padding: 0;
}

.link-separator-img {
    position: absolute;
    bottom: -2px;
    width: 130%;
    left: -15%;
    height: auto;
    pointer-events: none;
    opacity: 0.3;
    transition: opacity 0.3s ease, filter 0.3s ease;
}

.menu-links a:hover {
    color: #e1c578;
    padding-left: 10px;
    text-shadow: 0 0 10px rgba(197, 160, 89, 0.5);
}

.menu-item:hover .link-separator-top,
.menu-item:hover .link-separator-img {
    opacity: 0.8;
    filter: brightness(1.2) drop-shadow(0 0 5px rgba(225, 197, 120, 0.5));
}

.link-separator-top,
.link-separator-img {
    position: absolute;
    width: 180%;
    left: -100%;
    height: auto;
    pointer-events: none;
    opacity: 0.4;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    transform-origin: left center;
}

.link-separator-top {
    top: -2px;
}

.menu-item:hover::before {
    opacity: 1;
}


.menu-item:hover .link-separator-img {
    opacity: 1;
    filter: brightness(1.3) drop-shadow(0 0 8px rgba(197, 160, 89, 0.5));
    transform: scaleX(1.5) translateX(5%);
}


.menu-item:hover .link-separator-top {
    opacity: 0.7;
    filter: brightness(1.2);
}

/* FOOTER */
.footer {
    width: 100%;
    height: 100px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    clear: both;
    margin-top: 50px;
    z-index: 20;
}

.footer img {
    max-height: 130px;
    width: auto;
    object-fit: contain;
    margin-bottom: 20px;
    opacity: 0.8;
}

/* ANIMATIONS */
@keyframes edgeGlow {

    0%,
    100% {
        filter: brightness(1) drop-shadow(0 0 2px rgba(212, 175, 55, 0.3));
        opacity: 0.7;
    }

    50% {
        filter: brightness(1.5) drop-shadow(0 0 12px rgba(212, 175, 55, 0.9));
        opacity: 1;
    }
}

/* =========================================
   INDEX
   ========================================= */

/* --- MAINPAGE:INTRO START --- */
/* MAIN CONTENT */
.main-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding-top: 15px;
    width: 100%;

}

/* STAGE CONTAINER */
.stage-container {
    position: relative;
    width: 90%;
    max-width: 1104px;
    aspect-ratio: 1104 / 612;
    margin: 0 auto 40px auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

.gold-frame-main {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('images/main-page-frame.png');
    background-size: 100% 100%;
    z-index: 5;
    pointer-events: none;
    animation: edgeGlow 5s ease-in-out infinite;
}

.live-art-placeholder {
    width: 94.4%;
    height: 94.1%;
    background: #1a1a1a;
    overflow: hidden;
    z-index: 1;
    border: 1px solid rgba(139, 107, 63, 0.2);
}

.live-art-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.plate-anchor {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translate(-50%, 58%);

    width: 58%;
    max-width: 639px;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 100;
    pointer-events: none;
}

.slogan-plate {
    position: relative;
    width: 89.2%;
    aspect-ratio: 570 / 72;
    margin-bottom: -5%;
    z-index: 2;
}

.status-plate {
    position: relative;
    width: 95%;
    aspect-ratio: 639 / 188;
    z-index: 1;
}

.slogan-border {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    object-fit: contain;
    z-index: 2;
    animation: edgeGlow 5s ease-in-out infinite;
}

.slogan-bg {
    width: 78%;
    height: auto;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(calc(-50% + 7%), -50%);
}

.status-bg {
    position: absolute;
    width: 94.6%;
    height: 78%;

    top: 50%;
    left: 50%;

    transform: translate(calc(-50%), -50%);

    object-fit: fill;
    mix-blend-mode: multiply;
    opacity: 0.9;
    z-index: 1;
}

.status-frame {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: fill;
    z-index: 2;
}

.status-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    font-family: 'Cinzel', serif;
    font-weight: 550;
    letter-spacing: 0.15em;
    font-size: clamp(1.1rem, 4vw, 2.8rem);
    color: #d1d1d196;
    text-transform: uppercase;
    white-space: nowrap;
    line-height: 1;
    text-shadow: 0 0 15px rgba(0, 0, 0, 1), 0 0 5px rgba(209, 209, 209, 0.3);
    pointer-events: none;
}

/* THE PLATFORM SECTION CONTAINER ---- LEFT OFF HERE TO FIX*/
.platform-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: clamp(20px, 5vw, 60px);
    margin-top: clamp(40px, 8vh, 100px);
    padding-bottom: 40px;
}

.platform-link {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.platform-link img {
    height: clamp(35px, 4.5vw, 65px);
    width: auto;
    opacity: 0.8;
    transition: all 0.3s ease;
}

.platform-link span {
    font-family: 'Cinzel', serif;
    font-size: clamp(0.8rem, 1.2vw, 1.3rem);
    color: #8b6b3f;
    letter-spacing: 2px;
    text-transform: uppercase;
    opacity: 0.7;
    transition: all 0.3s ease;
}


.platform-link:hover img,
.platform-link:hover span {
    opacity: 1;
    filter: brightness(1) drop-shadow(0 0 8px rgba(212, 175, 55, 0.8));
    color: #e1c578;
}

.divider-wrapper {
    width: 100%;
    height: 160px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: -10px 0;
    overflow: visible;
    position: relative;
    z-index: 5;
}

.divider-img {
    height: 117px !important;
    width: 100%;
    object-fit: contain;
    flex-shrink: 0;
    animation: edgeGlow 5s ease-in-out infinite;
    filter: drop-shadow(0 0 15px rgba(139, 107, 63, 0.4));
}

.divider-img.flipped {
    transform: scaleY(-1);
    margin-top: 0px;
}

.socials-grid {
    flex-wrap: wrap;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    gap: clamp(30px, 8vw, 100px);
}

.socials-grid .platform-link {
    flex: 0 1 calc(50% - 50px);
    justify-content: center;
}

/* NEWS GRID */

.news-section {
    width: 90%;
    max-width: 1400px;
    margin: 40px auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.news-header-area {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
}

.news-image {
    width: 100%;
    flex-shrink: 0;
}

.news-section-title {
    font-family: 'Cinzel', serif;
    color: #8b6b3f;
    font-size: clamp(1.2rem, 5vw, 2.5rem);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-style: italic;
    text-align: center;
    width: 90%;
    margin: 0 auto;
    display: block;
}

.news-title-underline {
    width: 100%;
    margin-top: 10px;
    animation: edgeGlow 5s ease-in-out infinite;
}

.news-grid {
    display: flex;
    justify-content: center;
    gap: 30px;
    width: 100%;
    flex-wrap: wrap;
}

.news-card {
    position: relative;
    width: clamp(300px, 28vw, 400px);
    aspect-ratio: 497 / 618;
    transition: transform 0.3s ease;
    overflow: hidden;
}

.news-card:hover {
    transform: translateY(-10px);
}

.card-frame {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 5;
    pointer-events: none;
    animation: edgeGlow 5s ease-in-out infinite;
}

.card-content {
    position: relative;
    padding: 8%;
    height: 100%;
    display: flex;
    flex-direction: column;
    z-index: 2;
}

.image-container {
    position: relative;
    width: 100%;
    aspect-ratio: 433 / 220;
    margin-top: 5%;
    overflow: visible;
    z-index: 2;
}

.news-bg {
    position: absolute;
    width: 185%;
    height: 170%;
    top: 85%;
    left: -42.5%;
    object-fit: contain;
    z-index: 1;
}

.news-thumbnail {
    position: absolute;
    width: 104.5%;
    height: 103%;
    top: -19%;
    left: -2.3%;
    object-fit: contain;
    z-index: 2;
}

.news-text {
    flex-shrink: 0;
    margin-top: 20px;
    font-family: 'Cinzel', serif;
    text-align: center;
    position: relative;
    z-index: 3;
    padding: 0 10px;
}

.news-date {
    color: #8b6b3f;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.news-title {
    color: #e1c578;
    font-size: 1.2rem;
    line-height: 1.3;
    margin-bottom: 15px;
    font-weight: 700;
}

.news-intro {
    color: #d1d1d1;
    font-size: 0.9rem;
    font-family: sans-serif;
    line-height: 1.5;
    opacity: 0.8;
}

.news-link:hover .news-section-title {
    color: #e1c578;
    text-shadow: 0 0 15px rgba(212, 175, 55, 0.6);
    transition: all 0.3s ease;
}

.card-link {
    text-decoration: none;
    display: block;
    height: 100%;
    width: 100%;
    cursor: pointer;
}

.card-link:visited,
.card-link:active {
    color: inherit;
}

/* =========================================
   NEWS
   ========================================= */
/* CAROUSEL */
.carousel-track-container {
    width: 94.4%;
    height: 94.1%;
    overflow: hidden;
    position: relative;
    z-index: 1;
}

.carousel-track {
    display: flex;
    height: 100%;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.carousel-slide {
    min-width: 100%;
    height: 100%;
}

.carousel-slide .live-art-placeholder {
    width: 100%;
    height: 100%;
    border: none;
}

.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: #8b6b3f;
    font-size: 3rem;
    cursor: pointer;
    z-index: 10;
    padding: 20px;
    transition: all 0.3s ease;
    font-family: 'Cinzel', serif;
}

.carousel-nav:hover {
    color: #e1c578;
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.8);
}

.prev {
    left: -60px;
}

.next {
    right: -60px;
}


/* LINKS */
.featured-link {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
    cursor: pointer;
}

.featured-link:active,
.featured-link:visited {
    color: inherit;
}

/* =========================================
   NEWS
   ========================================= */

/* RETURN HOME */
.return-spacer {
    margin-top: 100px;
    margin-bottom: 60px;
    display: block;
    width: 100%;
    text-align: center;
}


.news-link {
    text-decoration: none;
    display: inline-block;
}

/* --- ARTICLE STYLES --- */
.article-wrapper {
    width: 90%;
    max-width: 900px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.blog-title {
    font-family: 'Cinzel', serif;
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    color: #8b6b3f;
    text-transform: uppercase;
    margin-bottom: 40px;
    text-align: center;
    letter-spacing: 4px;
}

.blog-frame-box {
    width: 100%;
    padding: 40px;
    position: relative;

    background: linear-gradient(180deg, #1a1a1a 0%, #111111 100%);

    border: 2px solid;
    border-image: linear-gradient(to bottom, #8b6b3f, #e1c578, #8b6b3f) 1;

    box-shadow: 0 0 20px rgba(139, 107, 63, 0.2),
        inset 0 0 15px rgba(0, 0, 0, 0.5);
}

.blog-meta {
    font-family: 'Cinzel', serif;
    font-size: 0.8rem;
    color: #8b6b3f;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.blog-body {
    font-family: 'Cinzel', serif;
    color: #d1d1d1;
    line-height: 1.8;
}

.css-gold-line {
    width: 100%;
    height: 1px;
    background: linear-gradient(to right, transparent, #8b6b3f, transparent);
    margin: 30px 0 15px 0;
}

.social-share {
    display: flex;
    gap: 20px;
}

.social-share a {
    color: #8b6b3f;
    text-decoration: none;
    font-family: 'Cinzel', serif;
    transition: 0.3s;
}

.social-share a:hover {
    color: #e1c578;
    text-shadow: 0 0 8px rgba(225, 197, 120, 0.5);
}

/* BEE SCRIPT: Allows copy pasting of large articles */
.bee-script {
    white-space: pre-wrap;
    word-wrap: break-word;
    font-family: 'Cinzel', serif;
    font-size: 1.1rem;
    line-height: 1.6;
    color: #d1d1d1;
    text-align: left;
    margin-top: 20px;
}

/* GO BACK BUTTON */
.btn-back {
    top: 250px;
    left: -1px;
    aspect-ratio: 359 / 164;
    width: clamp(160px, 18vw, 220px);
}

.btn-back span {
    font-size: clamp(0.9rem, 1.2vw, 1.3rem);
    letter-spacing: 2px;
    color: #c9a86a;
}

/* INDEX QUOTES:ABOUT */
.lore-container {
    position: relative;
    width: 100%;
    min-height: 900px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 100px 0;
}

.video-focal-point {
    position: relative;
    width: 90%;
    max-width: 872px;
    aspect-ratio: 872 / 510;
    margin: 0 auto 60px auto;
    z-index: 5;
}

.video-frame {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 4;
    pointer-events: none;
    object-fit: contain;
    animation: edgeGlow 5s ease-in-out infinite;

}

.video-content {
    position: absolute;
    top: 10.5%;
    left: 5.5%;
    width: 89%;
    height: 77.5%;
    z-index: 3;
    background: #000;
    overflow: hidden;

}

.video-placeholder {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

.video-focal-point:hover .video-placeholder {
    opacity: 0.9;
}

.play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 3rem;
    color: rgba(201, 168, 106, 0.6);
    text-shadow: 0 0 10px #000;
    pointer-events: none;
    transition: scale 0.2s ease;
}

.play-overlay,
.mute-btn {
    display: none !important;
}

.video-content:hover .play-overlay {
    scale: 1.1;
    color: rgba(201, 168, 106, 0.9);
}

.quote-background {
    position: absolute;
    font-family: 'Cinzel', serif;
    color: rgba(201, 168, 106, 0.3);
    filter: blur(1px);
    white-space: nowrap;
    user-select: none;
    z-index: 1;
}

.wobble-slow {
    animation: drift 12s ease-in-out infinite;
}

.wobble-med {
    animation: drift 9s ease-in-out infinite -2s;
}

.wobble-fast {
    animation: drift 7s ease-in-out infinite -4s;
}

@keyframes drift {

    0%,
    100% {
        transform: translate(0, 0) rotate(0deg);
        opacity: 0.3;
    }

    50% {
        transform: translate(10px, -15px) rotate(0.5deg);
        opacity: 0.5;
    }
}

.quote-main {
    position: relative;
    text-align: center;
    margin-top: 40px;
    z-index: 10;
    color: #c9a86a;
    font-family: 'Cinzel', serif;
    font-size: clamp(1.8rem, 4vw, 3rem);
    text-transform: uppercase;
}

.sub-quote {
    display: block;
    margin-top: 20px;
    font-size: 0.6em;
    opacity: 0.8;
    letter-spacing: 5px;
}

.quote-link {
    text-decoration: none;
    color: inherit;
    display: block;
    transition: all 0.4s ease-in-out;
}

.quote-link:hover {
    text-shadow: 0 0 20px rgba(201, 168, 106, 0.8), 0 0 30px rgba(201, 168, 106, 0.4);
    transform: scale(1.02);
    filter: brightness(1.3);
}

.quote-link:hover .sub-quote {
    opacity: 1;
}


#loreVideo::-webkit-media-controls {
    display: none !important;
}

.video-content:hover #loreVideo::-webkit-media-controls {
    display: flex !important;
}

.video-content:hover #loreVideo {
    cursor: pointer;
}

.mute-btn {
    position: absolute;
    bottom: 20px;
    right: 20px;
    width: 35px;
    height: 35px;
    z-index: 10;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.2s ease;
    filter: drop-shadow(0 0 5px rgba(0, 0, 0, 0.8));
}

.video-content:hover .mute-btn {
    opacity: 1;
}

.mute-btn:hover {
    transform: scale(1.1);
}

.mute-btn.is-muted .volume-waves {
    opacity: 0;
}

.mute-btn.is-muted svg {
    opacity: 0.5;
}

/* ABOUT PAGE */
.about-section {
    width: 100%;
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 50px 0;
    background: transparent;
}

.synopsis-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 95%;
    max-width: 1400px;
    margin: 0 auto;
}

.about-deco {
    height: auto;
    max-height: 845px;
    object-fit: contain;
    filter: drop-shadow(0 0 5px rgba(201, 168, 106, 0.2));
    animation: decoGlow 5s ease-in-out infinite alternate;
}

.deco-left {
    width: 254px;
}

.deco-right {
    width: 335px;
}

.about-text-content {
    flex: 1;
    text-align: center;
    padding: 0 40px;
    font-family: 'Cinzel', serif;
    color: #c9a86a;
    font-size: 1.5rem;
    line-height: 1.8;
}

.about-title {
    font-size: 3rem;
    margin-bottom: 30px;
    text-transform: uppercase;
    letter-spacing: 5px;
    text-shadow: 0 0 15px rgba(201, 168, 106, 0.4);
}


/* CHARACTERS GO TO CODEX BUTTON */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.popup-plate {
    width: 600px;
    max-width: 90vw;
    border: none;
    background: none;
}

.popup-inner {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 20;
    pointer-events: none;
}

.popup-title {
    position: relative !important;
    transform: none !important;
    left: auto !important;
    top: auto !important;
    margin-bottom: 15px;
    pointer-events: none;
}

.codex-btn-popup {
    position: relative;
    z-index: 30;
    pointer-events: auto;
    padding: 12px 30px;
    border: 1px solid #c9a86a;
    color: #c9a86a;
    background: rgba(0, 0, 0, 0.8);
    font-family: 'Cinzel', serif;
    text-decoration: none;
    text-transform: uppercase;
    transition: 0.3s;
}

.codex-btn-popup:hover {
    background: #c9a86a;
    color: #111;
}


/* CHARACTERS INDEX */

.live-art-stack {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: flex-end;
}

.char-link {
    cursor: pointer;
    pointer-events: auto !important;
    z-index: 50;
}

.fg-layer {
    pointer-events: none !important;
    z-index: 100;
}

.stack-layer,
.char-link {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
}

.char-anim {
    height: 90%;
    transition: filter 0.3s ease, transform 0.3s ease;
    cursor: pointer;
}

.char-link:hover .char-anim {
    filter: brightness(1.2) drop-shadow(0 0 20px rgba(201, 168, 106, 0.6));
    transform: scale(1.03) translateY(-10px);
    z-index: 50;
}

.fg-layer {
    pointer-events: none;
    z-index: 100;
}

/* CHARACTER PAGES */

.profile-banner {
    cursor: pointer;
}


.profile-banner,
.profile-icon-group,
.character-name-area {
    transition: all 0.5s ease-in-out;
}

.profile-hero-container {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-block: 80px;
    transition: all 0.5s ease-in-out;
}

.profile-banner {
    position: relative;
    width: 95%;
    max-width: 1135px;
    height: auto;
    aspect-ratio: 1135 / 288;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.5s ease-in-out;
    cursor: pointer;
    z-index: 10;
}

.banner-bg {
    position: absolute;
    mix-blend-mode: screen;
    left: 50px;
    width: 812px;
    height: 283px;
    z-index: 1;
}

.banner-frame {
    position: absolute;
    width: 1135px;
    height: 288px;
    z-index: 2;
    pointer-events: none;
    animation: edgeGlow 5s ease-in-out infinite;

}

.banner-frame,
.banner-bg {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.profile-icon-group {
    position: absolute;
    top: 40px;
    bottom: -10px;
    left: -120px;
    width: 200px;
    height: 200px;
    z-index: 10;
}

.icon-border {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 12;
    pointer-events: none;
    animation: edgeGlow 5s ease-in-out infinite;

}

.icon-img {
    position: absolute;
    top: 10px;
    left: 10px;
    width: 180px;
    height: 180px;
    z-index: 11;
    object-fit: cover;
    display: block;
}

.character-name-area {
    position: absolute;
    left: 220px;
    top: 48%;
    transform: translateY(-50%);
    z-index: 5;
    text-align: left;
    pointer-events: auto;
}

.char-name {
    font-family: 'Cinzel', serif;
    font-size: 1.8rem;
    color: #c9a86a;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 4px;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.8);
}

.char-title {
    font-family: 'Cinzel', serif;
    font-size: 1.6rem;
    color: #c9a86a;
    left: 20px;
    margin-top: -5px;
    opacity: 0.8;
}

.char-descrip {
    font-family: 'Cinzel', serif;
    font-size: 1.1rem;
    color: #fff6dd;
    left: 20px;
    margin-top: -5px;
    opacity: 0.8;
    text-transform: none;

}

.profile-link {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
    position: relative;
    cursor: pointer;
    z-index: 5;
}

.profile-link:hover .banner-bg {
    filter: brightness(1.2) contrast(1.1);
    transition: filter 0.3s ease;
}

.profile-link:hover .char-name {
    color: #e1c578;
    text-shadow: 0 0 15px rgba(201, 168, 106, 0.8);
    transition: all 0.3s ease;
}

/* INDEX:MEDIA */

.media-button-wrapper {
    margin-top: -3.5%;
    width: 45vw;
    max-width: 591px;
    display: flex;
    justify-content: center;
    position: relative;
    z-index: 20;
}

.media-display-area {
    position: relative;
    width: 90%;
    max-width: 1102px;
    aspect-ratio: 1102 / 612;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.media-frame-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('images/mediaplaceholderframe.png');
    background-size: 100% 100%;
    z-index: 5;
    pointer-events: none;
}

.media-art-box {
    width: 94.5%;
    height: 94.1%;
    overflow: hidden;
    z-index: 1;
}

.media-art-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.media-button-wrapper {
    margin-top: -3.5%;
    width: 90%;
    max-width: 591px;
    display: flex;
    justify-content: center;
    position: relative;
    z-index: 20;
}

.go-media-btn {
    position: relative;
    width: 100%;
    aspect-ratio: 591 / 121;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
}

.go-media-btn:hover {
    transform: scale(1.03);
}

.go-media-btn .btn-frame {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    object-fit: contain;
}

.go-media-btn .btnmedia-bg {
    position: absolute;
    z-index: 1;
    width: 78.6%;
    height: 90%;
    top: 5%;
    left: 16.2%;
    object-fit: stretch;
}

.btnmedia-bg {
    z-index: -2;
    filter: brightness(0.5) contrast(1.2);
    opacity: 0.9;
}

.btn-text {
    position: relative;
    z-index: 3;
    width: 70%;
    margin-left: 15%;
    text-align: center;

    font-family: 'Cinzel', serif;
    color: #c9a86a;
    font-size: clamp(0.9rem, 3vw, 1.8rem);

    text-transform: uppercase;
    text-shadow: 2px 2px 4px #000;
    white-space: nowrap;
}

/* MEDIA: TRAILER */

.main-video-display {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.video-nav-wrapper {
    width: 90%;
    max-width: 1102px;
    margin: 20px auto;
    overflow-x: auto;
    padding: 10px 0;
    -ms-overflow-style: none;
    scrollbar-width: none;
    scroll-behavior: smooth;
}

.thumbnail-scroll-container {
    display: flex;
    gap: 12px;
    width: max-content;
    padding: 0 10px;
}

.thumb {
    position: relative;
    width: clamp(120px, 15vw, 180px);
    aspect-ratio: 1 / 1;
    cursor: pointer;
    transition: all 0.3s ease;
}

.thumb-frame {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.thumb.active {
    filter: grayscale(100%) brightness(0.5);
    cursor: default;
    pointer-events: none;
}

.thumb.active .thumb-frame,
.thumb:hover .thumb-frame {
    filter: drop-shadow(0 0 8px #c9a86a);
}

.thumb:not(.active):hover {
    transform: scale(1.08);
    z-index: 10;
}

.thumb:hover {
    transform: scale(1.05);
}

.thumb:not(.active):hover .thumb-frame {
    filter: drop-shadow(0 0 8px #c9a86a);
}

.thumb-img {
    position: absolute;
    top: 5%;
    left: 5%;
    width: 90%;
    height: 90%;
    z-index: 1;
    object-fit: cover;
}

.video-nav-wrapper::-webkit-scrollbar {
    display: none;
}

.video-nav-wrapper::-webkit-scrollbar-thumb {
    background: #c9a86a;
    border-radius: 10px;
}

#mainVideo {
    position: absolute;
    width: 94.8%;
    height: 94.2%;
    border: none;
    z-index: 1;
}

#stagePlayBtn.play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    font-size: 4rem;
    color: rgba(201, 168, 106, 0.8);
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.main-video-display.playing #stagePlayBtn {
    opacity: 0;
}

.main-video-display .mute-btn {
    position: absolute;
    bottom: 25px;
    right: 25px;
    width: 45px;
    height: 45px;
    z-index: 20;
    cursor: pointer;
    pointer-events: auto;
    display: block !important;
}

.main-video-display .mute-btn svg {
    width: 100%;
    height: 100%;
    stroke: #c9a86a;
    filter: drop-shadow(0 0 5px rgba(0, 0, 0, 0.8));
}

.main-video-display .mute-btn {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.main-video-display:hover .mute-btn {
    opacity: 1;
}

.main-video-display.playing .play-overlay {
    opacity: 0;
    pointer-events: none;
}

/*  MEDIA: SCREENSHOTS */

:root {
    --ss-frame-width: 451px;
    --ss-frame-height: 235px;
    --ss-bg-width: 363px;
    --ss-bg-height: 206px;
}

.section-title-wrapper {
    position: relative;
    text-align: right;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto 60px auto;
    padding-right: 7%;
}

.screenshots-container {
    width: 100%;
    max-width: 1400px;
    margin: 40px auto;
    padding: 0 20px;
    box-sizing: border-box;
}

.screenshots-title {
    font-family: 'Cinzel', serif;
    color: #c9a86a;
    font-size: clamp(2rem, 5vw, 3rem);
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-style: italic;
}

.title-divider {
    position: absolute;
    right: 17%;
    top: 80%;
    width: 30%;
    max-width: 600px;
    height: auto;
    pointer-events: none;
    z-index: 1;
}

.title-divider-flipped {
    position: absolute;
    left: 17%;
    top: 80%;
    width: 30%;
    max-width: 600px;
    height: auto;
    pointer-events: none;
    z-index: 1;
}

.screenshots-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    justify-items: center;
    width: 100%;
    align-items: start;
}

.screenshot-item {
    position: relative;
    width: 100%;
    max-width: 451px;
    aspect-ratio: 451 / 235;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.3s ease, opacity 0.4s ease;
    opacity: 1;
}

.screenshot-item:hover {
    transform: scale(1.02);
}

.ss-frame {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.ss-bg {
    width: 80.5%;
    height: 87.6%;
    object-fit: cover;
    z-index: 1;
}

.load-more-wrapper {
    margin-top: 50px;
}

.load-more-btn {
    position: relative;
    width: 100%;
    max-width: 600px;
    aspect-ratio: 400 / 79;
    margin: 40px auto;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.2s ease;
}

.load-more-btn:active {
    transform: scale(0.95);
    filter: brightness(1.2);
}

.btnloadmore-frame {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
    object-fit: contain;
}

.btnloadmore-bg {
    position: absolute;
    width: 83.7%;
    height: 77.2%;
    z-index: 1;
    object-fit: fill;
}

.btnloadmore-text {
    position: absolute;
    z-index: 3;
    font-family: 'Cinzel', serif;
    color: #c9a86a;
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hidden-screenshot {
    display: none !important;
    opacity: 0;
}

.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(8px);
    justify-content: center;
    align-items: center;
    cursor: zoom-out;
}

.modal-content {
    max-width: 90%;
    max-height: 85%;
    object-fit: contain;
    animation: zoomIn 0.3s ease-out;
}

.modal-close {
    position: absolute;
    top: 30px;
    right: 40px;
    color: #c9a86a;
    font-size: 50px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.2s;
}

.modal-close:hover {
    color: #fff;
    transform: scale(1.1);
}

.socials-header-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-top: 80px;
}

.socials-main-title {
    font-family: 'Cinzel', serif;
    font-style: italic;
    color: #8b6b3f;
    text-align: center;
    margin: 0;
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    letter-spacing: 4px;
}

.social-title-underline {
    width: 300px;
    margin: 10px auto 0 auto;
    display: flex;
    justify-content: center;
}

.social-title-underline .news-image {
    width: 100%;
    height: auto;
    filter: brightness(0.8) sepia(1) saturate(3) hue-rotate(10deg);
}

.hidden-screenshot {
    display: none !important;
    opacity: 0;
}


@keyframes zoomIn {
    from {
        transform: scale(0.7);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* MEDIA: SOUNDTRACK */

.soundtrack-container {
    width: 100%;
    max-width: 1200px;
    margin: 80px auto;
    padding: 0 20px;
    box-sizing: border-box;
}

.spotify-wrapper {
    width: 100%;
    position: relative;
    padding: 2px;
    background: linear-gradient(135deg, #c9a86a 0%, #5d4a2a 100%);
    border-radius: 14px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8), 0 0 20px rgba(201, 168, 106, 0.15);
}

.spotify-wrapper iframe {
    width: 100% !important;
    display: block;
}

/* BACKGROUND */
body {
    background: linear-gradient(to bottom, #3a3a3a 0%, #000000 100%) !important;
    background-attachment: fixed !important;
    background-repeat: no-repeat;
    background-size: cover;
    min-height: 100vh;
    margin: 0;
}

.dust-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

/* SPARKLES - Tiny golden particles */
.sparkle {
    position: absolute;
    pointer-events: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Golden sparkle variations - matching site palette */
.sparkle.gold-bright {
    background: radial-gradient(circle at 35% 35%, #e1c578, #c9a86a);
    box-shadow: 0 0 3px #e1c578, 0 0 6px rgba(225, 197, 120, 0.3);
}

.sparkle.gold-warm {
    background: radial-gradient(circle at 35% 35%, #d4b896, #c9a86a);
    box-shadow: 0 0 2px #d4b896, 0 0 4px rgba(212, 184, 150, 0.25);
}

.sparkle.gold-soft {
    background: radial-gradient(circle at 35% 35%, #c9a86a, #b8956a);
    box-shadow: 0 0 2px #c9a86a, 0 0 4px rgba(201, 168, 106, 0.2);
}

.sparkle.gold-pale {
    background: radial-gradient(circle at 35% 35%, #dcc9a3, #c9a86a);
    box-shadow: 0 0 1px #dcc9a3, 0 0 3px rgba(220, 201, 163, 0.15);
}

/* Sparkle size variations - mostly tiny */
.sparkle.size-1 {
    width: 0.5px;
    height: 0.5px;
}

.sparkle.size-2 {
    width: 1px;
    height: 1px;
}

.sparkle.size-3 {
    width: 1.5px;
    height: 1.5px;
}

.sparkle.size-4 {
    width: 2px;
    height: 2px;
}

.sparkle.size-5 {
    width: 2.5px;
    height: 2.5px;
}

.sparkle.size-6 {
    width: 3px;
    height: 3px;
}

/* Larger focal sparkles with more glow */
.sparkle.size-large-1 {
    width: 3px;
    height: 3px;
    filter: blur(4px);
}

.sparkle.size-large-2 {
    width: 4px;
    height: 4px;
    filter: blur(5px);
}

.sparkle.size-large-3 {
    width: 5px;
    height: 5px;
    filter: blur(6px);
}

.sparkle.gold-bright.large-glow {
    box-shadow: 0 0 8px #ffeb3b, 0 0 16px rgba(255, 235, 59, 0.9), 0 0 35px rgba(255, 235, 59, 0.6), 0 0 60px rgba(255, 193, 7, 0.4);
}

.sparkle.gold-warm.large-glow {
    box-shadow: 0 0 8px #ffd54f, 0 0 14px rgba(255, 213, 79, 0.8), 0 0 30px rgba(255, 193, 7, 0.5), 0 0 50px rgba(255, 152, 0, 0.3);
}

.sparkle.gold-soft.large-glow {
    box-shadow: 0 0 6px #ffca28, 0 0 12px rgba(255, 202, 40, 0.75), 0 0 28px rgba(255, 193, 7, 0.4), 0 0 48px rgba(255, 152, 0, 0.25);
}

/* Large sparkle star lines with gradient taper */
.sparkle.size-large-1::before,
.sparkle.size-large-1::after {
    content: '';
    position: absolute;
    display: block;
}

.sparkle.size-large-1::before {
    width: 150%;
    height: 0.6px;
    left: -75%;
    top: 50%;
    transform: translateY(-50%);
    background: linear-gradient(to right, transparent 0%, transparent 18%, rgba(255, 235, 59, 0.6) 38%, rgba(255, 235, 59, 0.8) 50%, rgba(255, 235, 59, 0.6) 62%, transparent 82%, transparent 100%);
    filter: blur(0.8px);
    box-shadow: 0 0 15px rgba(255, 213, 79, 0.5), inset 0 0 10px rgba(255, 245, 157, 0.3);
}

.sparkle.size-large-1::after {
    width: 0.6px;
    height: 150%;
    left: 50%;
    top: -75%;
    transform: translateX(-50%);
    background: linear-gradient(to bottom, transparent 0%, transparent 18%, rgba(255, 235, 59, 0.6) 38%, rgba(255, 235, 59, 0.8) 50%, rgba(255, 235, 59, 0.6) 62%, transparent 82%, transparent 100%);
    filter: blur(0.8px);
    box-shadow: 0 0 15px rgba(255, 213, 79, 0.5), inset 0 0 10px rgba(255, 245, 157, 0.3);
}

.sparkle.size-large-2::before,
.sparkle.size-large-2::after {
    content: '';
    position: absolute;
    display: block;
}

.sparkle.size-large-2::before {
    width: 200%;
    height: 0.87px;
    left: -100%;
    top: 50%;
    transform: translateY(-50%);
    background: linear-gradient(to right, transparent 0%, transparent 15%, rgba(255, 213, 79, 0.65) 36%, rgba(255, 193, 7, 0.85) 50%, rgba(255, 213, 79, 0.65) 64%, transparent 85%, transparent 100%);
    filter: blur(1px);
    box-shadow: 0 0 18px rgba(255, 193, 7, 0.55), inset 0 0 12px rgba(255, 235, 59, 0.3);
}

.sparkle.size-large-2::after {
    width: 0.87px;
    height: 200%;
    left: 50%;
    top: -100%;
    transform: translateX(-50%);
    background: linear-gradient(to bottom, transparent 0%, transparent 15%, rgba(255, 213, 79, 0.65) 36%, rgba(255, 193, 7, 0.85) 50%, rgba(255, 213, 79, 0.65) 64%, transparent 85%, transparent 100%);
    filter: blur(1px);
    box-shadow: 0 0 18px rgba(255, 193, 7, 0.55), inset 0 0 12px rgba(255, 235, 59, 0.3);
}

.sparkle.size-large-3::before,
.sparkle.size-large-3::after {
    content: '';
    position: absolute;
    display: block;
}

.sparkle.size-large-3::before {
    width: 250%;
    height: 1.1px;
    left: -125%;
    top: 50%;
    transform: translateY(-50%);
    background: linear-gradient(to right, transparent 0%, transparent 12%, rgba(255, 202, 40, 0.65) 34%, rgba(255, 193, 7, 0.85) 50%, rgba(255, 202, 40, 0.65) 66%, transparent 88%, transparent 100%);
    filter: blur(1.2px);
    box-shadow: 0 0 22px rgba(255, 193, 7, 0.6), inset 0 0 15px rgba(255, 235, 59, 0.35);
}

.sparkle.size-large-3::after {
    width: 1.1px;
    height: 250%;
    left: 50%;
    top: -125%;
    transform: translateX(-50%);
    background: linear-gradient(to bottom, transparent 0%, transparent 12%, rgba(255, 202, 40, 0.65) 34%, rgba(255, 193, 7, 0.85) 50%, rgba(255, 202, 40, 0.65) 66%, transparent 88%, transparent 100%);
    filter: blur(1.2px);
    box-shadow: 0 0 22px rgba(255, 193, 7, 0.6), inset 0 0 15px rgba(255, 235, 59, 0.35);
}

/* Animate the star lines */
@keyframes star-lines-pulse {

    0%,
    100% {
        opacity: 0;
    }

    25% {
        opacity: 0;
    }

    40% {
        opacity: 0.8;
    }

    60% {
        opacity: 0.8;
    }

    75% {
        opacity: 0;
    }
}

@keyframes circle-glow-pulse {

    0%,
    100% {
        filter: brightness(1) drop-shadow(0 0 8px rgba(255, 255, 0, 0.4));
    }

    25% {
        filter: brightness(1) drop-shadow(0 0 8px rgba(255, 255, 0, 0.4));
    }

    40% {
        filter: brightness(1.4) drop-shadow(0 0 20px rgba(255, 200, 100, 0.7));
    }

    60% {
        filter: brightness(1.4) drop-shadow(0 0 20px rgba(255, 200, 100, 0.7));
    }

    75% {
        filter: brightness(1) drop-shadow(0 0 8px rgba(255, 255, 0, 0.4));
    }
}

.sparkle.size-large-1::before,
.sparkle.size-large-1::after {
    animation: star-lines-pulse 2.5s ease-in-out infinite;
}

.sparkle.size-large-2::before,
.sparkle.size-large-2::after {
    animation: star-lines-pulse 3s ease-in-out infinite;
}

.sparkle.size-large-3::before,
.sparkle.size-large-3::after {
    animation: star-lines-pulse 3.5s ease-in-out infinite;
}

.sparkle.size-large-1.large-glow {
    animation: float-up 6s linear forwards, circle-glow-pulse 2.5s ease-in-out infinite;
}

.sparkle.size-large-2.large-glow {
    animation: float-up 6.5s linear forwards, circle-glow-pulse 3s ease-in-out infinite;
}

.sparkle.size-large-3.large-glow {
    animation: float-up 7s linear forwards, circle-glow-pulse 3.5s ease-in-out infinite;
}

/* Animations */
@keyframes float-up {
    0% {
        transform: translateY(0) translateX(0) scale(1);
        opacity: 0;
    }

    3% {
        opacity: 1;
    }

    97% {
        opacity: 1;
    }

    100% {
        transform: translateY(var(--distance)) translateX(var(--drift)) scale(0.3);
        opacity: 0;
    }
}

@keyframes glint-bright {

    0%,
    100% {
        filter: brightness(1);
    }

    30% {
        filter: brightness(2);
    }

    60% {
        filter: brightness(0.8);
    }
}

@keyframes glint-slow {

    0%,
    100% {
        filter: brightness(0.9);
    }

    50% {
        filter: brightness(1.6);
    }
}

@keyframes pulse-glow {

    0%,
    100% {
        filter: brightness(1) blur(0px);
    }

    50% {
        filter: brightness(1.4) blur(0.2px);
    }
}

@keyframes twinkle {

    0%,
    100% {
        opacity: 0;
    }

    10% {
        opacity: 0.2;
    }

    20% {
        opacity: 1;
    }

    30% {
        opacity: 0.4;
    }

    40% {
        opacity: 1;
    }

    50% {
        opacity: 0.1;
    }

    100% {
        opacity: 0;
    }
}

.sparkle[data-speed="slow"] {
    animation: float-up 8s linear forwards;
}

.sparkle[data-speed="medium"] {
    animation: float-up 5s linear forwards;
}

.sparkle[data-speed="fast"] {
    animation: float-up 3s linear forwards;
}

.sparkle[data-speed="very-fast"] {
    animation: float-up 1.5s linear forwards;
}

.sparkle.glinting { animation-name: float-up, glint-bright; }
.sparkle.pulsing { animation-name: float-up, pulse-glow; }
.sparkle.shimmering { animation-name: float-up, shimmer; }

/* Content area */
.content {
    position: relative;
    z-index: 10;
    text-align: center;
    color: white;
}

h1 {
    font-size: 3.5rem;
    font-weight: 300;
    letter-spacing: 3px;
    margin-bottom: 1rem;
    text-shadow: 0 0 30px rgba(255, 215, 0, 0.4);
}

p {
    font-size: 1.1rem;
    opacity: 0.8;
    letter-spacing: 1px;
}


/* MEDIA FOR NAVIGATION*/

@media (max-width: 1400px) {
    .nav-btn {
        width: 240px;
        height: 104px;
    }

    .title-area {
        font-size: 1.8rem;
        letter-spacing: 6px;
    }

}

/* MEDIA FOR CAROUSEL */

@media (max-width: 1200px) {
    .prev {
        left: 10px;
    }

    .next {
        right: 10px;
    }
}

/* MEDIA FOR ABOUT */


@media (max-width: 1024px) {
    .about-deco {
        display: none;
    }

    .about-text-content {
        padding: 0 20px;
    }

}

/*  MEDIA FOR CHARACTERS */

@media (max-width: 800px) {
    .profile-link {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
        text-decoration: none;
    }

    .profile-hero-container {
        display: flex;
        flex-direction: column;
        align-items: center;
        margin-block: 40px;
    }

    .profile-banner {
        width: 100%;
        height: auto;
        aspect-ratio: auto;
        display: flex;
        flex-direction: column;
        align-items: center;
        background: none;
    }

    .banner-bg,
    .banner-frame {
        display: none;
    }

    .profile-icon-group {
        order: 1 !important;
        position: relative;
        left: 0 !important;
        right: 0 !important;
        top: 0 !important;
        bottom: 0 !important;
        margin: 0 auto 20px auto;
        width: 180px;
        height: 180px;
        z-index: 10;
    }

    .icon-img {
        width: 160px;
        height: 160px;
        top: 10px;
        left: 10px;
        border-radius: 0;
    }

    .character-name-area {
        order: 2;
        position: relative;
        left: 0 !important;
        right: 0 !important;
        top: 0;
        transform: none;
        width: 100%;
        padding: 40px 20px 20px 20px;

        background: linear-gradient(180deg, #1a1a1a 0%, #111111 100%);
        border: 2px solid #c9a86a;
        box-shadow: 0 0 15px rgba(201, 168, 106, 0.2);

        text-align: center;
        pointer-events: auto;
    }

    .char-name {
        font-size: 1.8rem;
    }

    .char-descrip {
        text-transform: none;
        margin-top: 15px;
        display: block;
    }

    /* MEDIA INDEX */
    @media (max-width: 600px) {
        .media-button-wrapper {
            width: 70vw;
        }
    }

    @media (max-width: 600px) {
        .thumb {
            width: calc((100vw - 20px) / 3.2);
        }

        .thumb.active .thumb-frame {
            filter: drop-shadow(0 0 5px #c9a86a);
        }
    }

    /* MEDIA:SCREENSHOTS MOBILE */

    @media (max-width: 768px) {
        .screenshots-grid {
            grid-template-columns: 1fr;
        }

        .title-divider {
            right: 5%;
            width: 60%;
        }

        .section-title-wrapper {
            padding-right: 20px;
        }
    }

/*  BACKGROUND */

@keyframes shimmer {
    0%, 100% { opacity: 0.5; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.2); }
}

}