/* index-custom.css */
body,
html {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: #f4eaf2;
    font-family: 'Inter', sans-serif;
}

#collage-bg-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    z-index: 1;
    overflow: hidden;
    transition: filter 0.4s ease, opacity 0.45s ease;
}

.collage-bg-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    pointer-events: none;
}

.index-game-caption {
    position: absolute;
    bottom: clamp(28px, 9vh, 72px);
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    max-width: min(90vw, 480px);
    text-align: center;
    padding: 14px 22px 12px;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.32);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    pointer-events: auto;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.18);
}

.index-game-caption__text {
    font-family: 'Playfair Display', serif;
    font-size: clamp(0.95rem, 2.2vw, 1.2rem);
    font-weight: 400;
    font-style: italic;
    color: rgba(255, 255, 255, 0.95);
    margin: 0;
    line-height: 1.45;
    letter-spacing: 0.01em;
    text-shadow: 0 1px 12px rgba(0, 0, 0, 0.4);
}

.index-game-caption__link {
    display: inline-block;
    margin-top: 10px;
    font-family: 'Inter', sans-serif;
    font-size: 0.68rem;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.88);
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.4);
    padding-bottom: 2px;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.index-game-caption__link:hover {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.8);
}

@media (max-width: 768px) {
    .index-game-caption,
    .collage-bg-video {
        display: none !important;
    }
}

.collage-item {
    position: absolute;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    background: transparent;
    transform-origin: center;
    transition: transform 0.3s ease;
}

.collage-item img {
    max-width: 100%;
    display: block;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

/* Navbar */
.index-nav-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    z-index: 10;
    pointer-events: none;
}

.index-nav-wrapper.hovered~#collage-bg-container {
    filter: blur(12px);
}

.index-nav-wrapper a {
    position: absolute;
    color: #111;
    text-decoration: none;
    font-size: 2rem;
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 1px;
    pointer-events: auto;
    transition: color 0.2s ease, text-shadow 0.2s ease;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
}

@media (max-width: 768px) {
    .index-nav-wrapper a {
        font-size: 1.5rem;
        letter-spacing: -2px;
    }
}

.index-nav-wrapper a:hover {
    color: #555;
    text-shadow: 0 0 15px rgba(255, 255, 255, 1);
}

.nav-past {
    top: 2vw;
    left: 2vw;
}

.nav-now {
    top: 2vw;
    left: 50%;
    transform: translateX(-50%);
}

.nav-right-stack {
    position: absolute;
    top: 2vw;
    right: 2vw;
    text-align: right;
    pointer-events: auto;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.2rem;
}

.nav-right-stack a {
    position: relative;
}

.nav-right-stack .lang-switcher-global {
    margin-bottom: 20px;
}

.nav-right-stack .lang-switcher-global .lang-btn,
.nav-right-stack .lang-switcher-global span {
    font-size: 1.15rem !important;
    letter-spacing: 0.06em;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
}

.index-nav-wrapper .nav-right-stack .nav-auth-link {
    font-size: 1.15rem;
    letter-spacing: 0.14em;
    margin-bottom: 0.15rem;
}

@media (max-width: 768px) {
    .index-nav-wrapper .nav-right-stack .nav-auth-link {
        font-size: 0.95rem;
    }

    .nav-right-stack .lang-switcher-global .lang-btn,
    .nav-right-stack .lang-switcher-global span {
        font-size: 1rem !important;
    }
}

.nav-about {
    position: absolute;
    bottom: 2vw;
    left: 2vw;
}

.index-new-artwork[hidden] {
    display: none !important;
}

.index-new-artwork {
    position: fixed;
    bottom: clamp(110px, 14vh, 150px);
    left: 50%;
    transform: translateX(-50%);
    z-index: 1999;
    display: inline-flex;
    align-items: stretch;
    gap: 0;
    width: min(92vw, 380px);
    min-width: 280px;
    padding: 0;
    border-radius: 8px;
    border: 1px solid rgba(0, 0, 0, 0.22);
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.8) inset,
        0 10px 32px rgba(0, 0, 0, 0.2);
    color: #111;
    pointer-events: auto;
    opacity: 1;
    overflow: hidden;
    transition:
        bottom 0.5s cubic-bezier(0.4, 0, 0.2, 1),
        opacity 0.3s ease,
        transform 0.3s ease,
        background 0.25s ease,
        border-color 0.25s ease,
        box-shadow 0.25s ease;
}

.index-new-artwork.is-closing {
    opacity: 0;
    transform: translateX(-50%) translateY(8px);
    pointer-events: none;
}

.index-new-artwork__link {
    position: relative;
    flex: 1;
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
    padding: 12px 14px;
    color: #111;
    text-decoration: none;
    font-family: 'Inter', sans-serif;
    text-shadow: none;
    transition: color 0.25s ease;
}

.index-new-artwork__copy {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.index-new-artwork__close {
    flex-shrink: 0;
    align-self: stretch;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    padding: 0;
    border: none;
    border-left: 1px solid rgba(0, 0, 0, 0.12);
    background: rgba(0, 0, 0, 0.04);
    color: #444;
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.index-new-artwork__close:hover {
    background: rgba(0, 0, 0, 0.06);
    color: #111;
}

body.index-shop-modal-open .index-new-artwork {
    bottom: clamp(260px, 34vh, 320px);
}

.index-new-artwork:hover {
    background: #fff;
    border-color: rgba(0, 0, 0, 0.28);
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.9) inset,
        0 10px 32px rgba(0, 0, 0, 0.22);
}

.index-new-artwork:hover .index-new-artwork__link {
    color: #444;
}

.index-new-artwork__thumb {
    width: 72px;
    height: 72px;
    border-radius: 6px;
    object-fit: cover;
    display: block;
    flex-shrink: 0;
    border: 1px solid rgba(0, 0, 0, 0.14);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
    background: #ececec;
    transition: opacity 0.2s ease;
}

.index-new-artwork__thumb.is-loading {
    opacity: 0.35;
}

.index-new-artwork--no-thumb .index-new-artwork__thumb {
    display: none;
}

.index-new-artwork__label {
    flex-shrink: 0;
    align-self: flex-start;
    font-weight: 600;
    padding: 4px 9px;
    border-radius: 4px;
    background: #111;
    color: #fff;
    font-size: 0.7rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.index-new-artwork__title {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: 1.05rem;
    font-weight: 500;
    line-height: 1.25;
    letter-spacing: 0;
    text-transform: none;
    color: #111;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-width: 0;
    opacity: 1;
}

.index-new-artwork__title:empty {
    display: none;
}

.nav-contact {
    position: absolute;
    bottom: 2vw;
    right: 2vw;
}

@media (max-width: 768px) {
    .nav-past {
        top: 20px;
        left: 20px;
    }

    .nav-now {
        top: 20px;
    }

    .nav-right-stack {
        top: 20px;
        right: 20px;
    }

    .nav-about {
        bottom: 30px;
        left: 20px;
    }

    .index-new-artwork {
        bottom: clamp(120px, 16vh, 160px);
        width: min(94vw, 360px);
        min-width: 0;
    }

    .index-new-artwork__link {
        gap: 12px;
        padding: 10px 12px;
    }

    .index-new-artwork__close {
        width: 40px;
        font-size: 1.3rem;
    }

    body.index-shop-modal-open .index-new-artwork {
        bottom: clamp(290px, 40vh, 340px);
    }

    .index-new-artwork__thumb {
        width: 60px;
        height: 60px;
    }

    .index-new-artwork__title {
        font-size: 0.95rem;
    }

    .nav-contact {
        bottom: 30px;
        right: 20px;
    }
}

/* Nav Dropdown for MORE */
.nav-dropdown {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.nav-dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: transparent;
    padding-top: 5px;
    text-align: right;
    flex-direction: column;
    gap: 0.2rem;
    z-index: 20;
}

.nav-dropdown:hover .nav-dropdown-content {
    display: flex;
}

.index-nav-wrapper .nav-dropdown-content a {
    position: relative;
    font-size: 1.5rem;
    color: #111;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
}

@media (max-width: 768px) {
    .index-nav-wrapper .nav-dropdown-content a {
        font-size: 1.2rem;
    }
}

/* Welcome Shop Modal Mobile Positioning */
@media (max-width: 768px) {
    #welcomeShopModal {
        top: auto !important;
        bottom: 80px !important;
        left: 50% !important;
        right: auto !important;
        transform: translateX(-50%) !important;
        width: 90% !important;
        max-width: 350px !important;
    }
}
