﻿/* Global resets and typography */
:root {
    --bg-dark: #212121;
    --bg-sidebar: #212121;
    --accent: #ffffff;
    --text-muted: #888888;
    --transition-speed: 0.6s;
}

body, html {
    margin: 0;
    padding: 0;
    height: 100%;
    background: var(--bg-dark);
    color: var(--accent);
    font-family: 'Inter', sans-serif;
    -webkit-font-smoothing: antialiased;
}

/* Smooth image rendering for anti-aliasing */
img {
    image-rendering: auto;
}

/* Page and section headers — Darumadrop One + Snow Lab blue */
.page-header {
    font-family: 'Darumadrop One', sans-serif;
    color: #4E7493;
}

/* Home Page - Split Layout (based on Design 3) */
.home-page {
    overflow: hidden;
}

.split-container {
    display: flex;
    height: 100vh;
    width: 100vw;
}

.left-panel {
    flex: 35;
    background: var(--bg-dark);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 5%;
    position: relative;
    z-index: 10;
}

.brand-icon {
    width: 100px;
    margin-bottom: 30px;
}

.brand-title {
    font-family: 'Darumadrop One', sans-serif;
    font-size: 7rem;
    font-weight: 900;
    line-height: 0.85;
    margin: 0 0 20px 0;
    letter-spacing: -2px;
    color: #4E7493;
}

.brand-tagline {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin: 0 0 50px 0;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 15px;
}

.nav-link {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 700;
    transition: color 0.3s ease;
}

.nav-link:hover, .nav-link.active {
    color: var(--accent);
}

.discord-btn {
    display: inline-flex;
    align-items: center;
    background: #5865F2;
    color: white;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 0.9rem;
    transition: background 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.discord-btn:hover {
    background: #4752C4;
}

.nav-link.discord-nav-btn {
    background: #5865F2;
    color: white;
    padding: 5px 12px;
    border-radius: 3px;
    font-size: 0.9rem;
}

.nav-link.discord-nav-btn:hover {
    background: #4752C4;
}

.nav-separator {
    color: var(--text-muted);
    opacity: 0.5;
}

.home-footer {
    position: absolute;
    bottom: 40px;
    left: 5%;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.right-panel {
    flex: 65;
    background: #f0f0f0;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.photo-stage {
    position: relative;
    width: 90%;
    height: 90%;
}

.photo-card {
    position: absolute;
    width: 45%;
    background: white;
    padding: 10px 10px 40px 10px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.5);
    transition: z-index 0s, opacity var(--transition-speed);
    cursor: grab;
    touch-action: none;
    user-select: none;
    -webkit-user-select: none;
}

.photo-card:active {
    cursor: grabbing;
}

.photo-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: grayscale(0%);
    transition: filter 0.3s;
}

.p1 { top: 5%; left: 5%; z-index: 1; transform: rotate(-4deg); }
.p2 { top: 20%; left: 35%; z-index: 2; transform: rotate(6deg); }
.p3 { top: 50%; left: 10%; z-index: 3; transform: rotate(-5deg); }
.p4 { top: 10%; left: 55%; z-index: 4; transform: rotate(3deg); }
.p5 { top: 40%; left: 50%; z-index: 5; transform: rotate(-2deg); }
.p6 { top: 60%; left: 35%; z-index: 6; transform: rotate(5deg); }
.p7 { top: 15%; left: 20%; z-index: 7; transform: rotate(-6deg); }
.p8 { top: 45%; left: 45%; z-index: 8; transform: rotate(2deg); }

/* Slide animation for photos on homepage */
@keyframes photoSlide {
    0% { transform: translateX(100%) rotate(10deg); opacity: 0; }
    100% { opacity: 1; }
}

.photo-card {
    animation: photoSlide 2.5s cubic-bezier(0.23, 1, 0.32, 1) both;
}

.p1 { animation-delay: 0.2s; }
.p2 { animation-delay: 0.5s; }
.p3 { animation-delay: 0.8s; }
/* Subsequent cards will have their animation triggered by JS or long delays */
.spawn-later {
    display: none;
}

/* ==============================
   Photo Stack Component
   Worlds, Films pages only
   ============================== */

.photo-stack {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 85%;
    gap: 0;
}

.stack-cards-wrapper {
    position: relative;
    width: 80%;
    max-width: 800px;
    aspect-ratio: 16 / 11;
    display: flex;
    align-items: center;
    justify-content: center;
}

.photo-stack-card {
    position: absolute;
    width: 100%;
    background: white;
    padding: 10px 10px 40px 10px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
    cursor: pointer;
    transition: all 0.45s cubic-bezier(0.23, 1, 0.32, 1);
    transform-origin: center center;
    user-select: none;
}

.photo-stack-card img {
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    background: #f0f0f0;
}

.photo-stack-card:hover {
    box-shadow: 0 24px 56px rgba(0, 0, 0, 0.55);
}

.photo-stack-card.current {
    z-index: 10;
    transform: rotate(0deg) scale(0.93);
    opacity: 1;
    pointer-events: auto;
}

.photo-stack-card.prev {
    z-index: 5;
    transform: rotate(-5deg) translateX(-65px) scale(0.88);
    opacity: 0.7;
    pointer-events: none;
}

.photo-stack-card.prev-2 {
    z-index: 4;
    transform: rotate(-10deg) translateX(-120px) scale(0.78);
    opacity: 0.35;
    pointer-events: none;
}

.photo-stack-card.next {
    z-index: 5;
    transform: rotate(5deg) translateX(65px) scale(0.88);
    opacity: 0.7;
    pointer-events: none;
}

.photo-stack-card.next-2 {
    z-index: 4;
    transform: rotate(10deg) translateX(120px) scale(0.78);
    opacity: 0.35;
    pointer-events: none;
}

.photo-stack-card.hidden-away {
    z-index: 1;
    transform: rotate(0deg) scale(0.5);
    opacity: 0;
    pointer-events: none;
}

.stack-nav {
    background: rgba(0, 0, 0, 0.45);
    border: 2px solid rgba(255, 255, 255, 0.5);
    color: white;
    font-size: 3.2rem;
    font-weight: 700;
    line-height: 0.6;
    cursor: pointer;
    padding: 0.5rem 1rem;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
    user-select: none;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    z-index: 20;
}

.stack-nav:hover {
    background: rgba(78, 116, 147, 0.85);
    color: white;
    border-color: rgba(255, 255, 255, 0.9);
    transform: scale(1.1);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

.stack-prev {
    margin-right: 0.75rem;
}

.stack-next {
    margin-left: 0.75rem;
}

.stack-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
    padding-bottom: 0.5rem;
}

.stack-indicator .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease;
}

.stack-indicator .dot.active {
    background: #4E7493;
    transform: scale(1.3);
}

.stack-indicator .dot:hover {
    background: rgba(78, 116, 147, 0.6);
    transform: scale(1.2);
}

/* Compact variant for sidebar content pages */
.photo-stack.compact {
    gap: 0.5rem;
    max-width: 100%;
    margin: 0;
}

.photo-stack.compact .stack-cards-wrapper {
    width: 88%;
    max-width: 640px;
}

.photo-stack.compact .photo-stack-card {
    padding: 8px 8px 32px 8px;
}

.photo-stack.compact .stack-nav {
    font-size: 2.4rem;
    width: 50px;
    height: 50px;
    padding: 0.4rem 0.8rem;
    line-height: 0.6;
}

.photo-stack.compact .stack-prev {
    margin-right: 0.4rem;
}

.photo-stack.compact .stack-next {
    margin-left: 0.4rem;
}

.photo-stack.compact + .stack-indicator {
    margin-top: 0.25rem;
    gap: 0.4rem;
}

.photo-stack.compact + .stack-indicator .dot {
    width: 8px;
    height: 8px;
}

/* Sub-Page Layout - Sidebar (based on Design 6) */
.sub-page {
    display: flex;
    overflow-x: hidden;
}

.sidebar {
    width: 280px;
    height: 100vh;
    background: var(--bg-sidebar);
    position: fixed;
    left: 0;
    top: 0;
    display: flex;
    flex-direction: column;
    padding: 60px 40px;
    box-sizing: border-box;
    border-right: 1px solid #222;
    z-index: 100;
}

.sidebar-icon {
    width: 70px;
    margin-bottom: 60px;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 25px;
    flex-grow: 1;
}

.sidebar-link {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.sidebar-link:hover, .sidebar-link.active {
    color: var(--accent);
}

.sidebar-link.discord-sidebar-btn {
    color: #5865F2;
}

.sidebar-link.discord-sidebar-btn:hover {
    color: #7289da;
}

.sidebar-sub-nav {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-left: 20px;
    margin-bottom: 10px;
    border-left: 1px solid #333;
    padding-left: 20px;
}

.sidebar-sub-link {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.sidebar-sub-link:hover, .sidebar-sub-link.active {
    color: var(--accent);
}

.sidebar-link.disabled {
    opacity: 0.3;
    pointer-events: none;
}

.sidebar-footer {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.content-area {
    margin-left: 280px;
    flex: 1;
    padding: 80px 10%;
    box-sizing: border-box;
    background: #f0f0f0;
    color: #333;
    min-height: 100vh;
}

.content-area.dark {
    background: var(--bg-dark);
    color: var(--accent);
    padding: 2rem;
}

.name-banner {
    height: 80px;
    margin-bottom: 80px;
    opacity: 0.9;
}

.info-section {
    max-width: 800px;
    margin-bottom: 80px;
}

.info-section h2 {
    font-family: 'Darumadrop One', sans-serif;
    font-size: 3rem;
    font-weight: 900;
    margin: 0 0 20px 0;
    text-transform: uppercase;
    color: #4E7493;
}

.info-section h3 {
    font-family: 'Darumadrop One', sans-serif;
    color: #4E7493;
}

.info-section p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #555;
}

/* Timeline */
.timeline {
    position: relative;
    margin: 40px 0 20px;
    padding-left: 60px;
}

/* Faded line that eases in at the top and eases out at the bottom */
.timeline::before {
    content: '';
    position: absolute;
    left: 19px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(
        to bottom,
        transparent 0%,
        #4E7493 6%,
        #3a5a73 50%,
        #4E7493 94%,
        transparent 100%
    );
    border-radius: 2px;
}

.timeline-item {
    position: relative;
    margin-bottom: 40px;
    padding-left: 20px;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-marker {
    position: absolute;
    left: -49px;
    top: 24px;
}

.timeline-marker::before {
    content: '';
    width: 20px;
    height: 20px;
    background: #4E7493;
    border: 3px solid #f0f0f0;
    border-radius: 50%;
    box-shadow: 0 2px 6px rgba(78, 116, 147, 0.3);
    z-index: 1;
    display: block;
}

.timeline-year-badge {
    display: inline-block;
    font-family: 'Darumadrop One', sans-serif;
    font-size: 0.8rem;
    font-weight: 700;
    color: #fff;
    background: #4E7493;
    padding: 3px 12px 4px;
    border-radius: 20px;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
}

.timeline-card {
    background: #ffffff;
    border: 1px solid rgba(78, 116, 147, 0.12);
    border-radius: 10px;
    padding: 20px 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: box-shadow 0.25s ease;
}

.timeline-item:hover .timeline-card {
    box-shadow: 0 6px 20px rgba(78, 116, 147, 0.12);
}

.timeline-card-title {
    font-family: 'Inter', sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
    color: #2c3e50;
    margin: 0 0 8px 0;
}

.timeline-card-desc {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #666;
    margin: 0;
}

/* Dark mode timeline overrides */
.content-area.dark .timeline::before {
    background: linear-gradient(
        to bottom,
        transparent 0%,
        #6a9fc7 6%,
        #4E7493 50%,
        #6a9fc7 94%,
        transparent 100%
    );
}

.content-area.dark .timeline-marker::before {
    background: #6a9fc7;
    border-color: #2a2a2a;
    box-shadow: 0 2px 6px rgba(106, 159, 199, 0.3);
}

.content-area.dark .timeline-year-badge {
    background: #6a9fc7;
}

.content-area.dark .timeline-card {
    background: #2a2a2a;
    border-color: rgba(106, 159, 199, 0.15);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.content-area.dark .timeline-card-title {
    color: #e0e0e0;
}

.content-area.dark .timeline-card-desc {
    color: #aaa;
}

.content-area.dark .timeline-item:hover .timeline-card {
    box-shadow: 0 6px 20px rgba(106, 159, 199, 0.2);
}

/* Mobile timeline */
@media (max-width: 768px) {
    .timeline {
        padding-left: 50px;
    }

    .timeline::before {
        left: 15px;
    }

    .timeline-marker {
        left: -42px;
    }

    .timeline-marker::before {
        width: 16px;
        height: 16px;
    }
    
    .timeline-item {
        margin-bottom: 32px;
        padding-left: 16px;
    }

    .timeline-card {
        padding: 14px 16px;
    }

    .timeline-card-title {
        font-size: 1.05rem;
    }

    .timeline-card-desc {
        font-size: 0.9rem;
    }
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.gallery-item {
    background: #111;
    overflow: hidden;
    position: relative;
    border-radius: 2px;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.8s cubic-bezier(0.23, 1, 0.32, 1), opacity 0.5s;
    filter: saturate(0.8);
}

.gallery-item:hover img {
    transform: scale(1.1);
    filter: saturate(1.2);
}

/* Item Frame — Polaroid-style frame for gallery images */
.gallery-framed {
    background: white;
    padding: 8px 8px 32px 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    border-radius: 1px;
}

.gallery-framed img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    aspect-ratio: 16 / 9;
}

.gallery-framed:hover {
    transform: scale(1.03) rotate(-0.5deg);
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.25);
}

/* Alternate rotation for a natural scattered look */
.gallery-framed:nth-child(odd) {
    transform: rotate(-1deg);
}

.gallery-framed:nth-child(even) {
    transform: rotate(1.5deg);
}

.gallery-framed:nth-child(odd):hover {
    transform: scale(1.03) rotate(-0.5deg);
}

.gallery-framed:nth-child(even):hover {
    transform: scale(1.03) rotate(0.5deg);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
    background: #333;
}

::-webkit-scrollbar-thumb:hover {
    background: #444;
}

/* Countdown Clock */
.countdown-clock {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    padding: 1rem 0;
}

.countdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 80px;
}

.countdown-value {
    font-family: 'Inter', sans-serif;
    font-size: 3.5rem;
    font-weight: 700;
    color: #1a1a1a;
    background: rgba(0, 0, 0, 0.12);
    border-radius: 14px;
    padding: 0.6rem 1.2rem;
    line-height: 1;
    min-width: 120px;
    width: 130px;
    text-align: center;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.content-area:not(.dark) .countdown-value {
    background: rgba(0, 0, 0, 0.06);
}

.content-area.dark .countdown-value {
    color: #f0f0f0;
}

.countdown-label {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-muted);
    margin-top: 0.6rem;
}

.countdown-sep {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-muted);
    opacity: 0.35;
    padding-bottom: 2rem;
}

/* ==============================
   Asset Store Page
   ============================== */

.asset-grid {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    max-width: 1100px;
    margin: 0 auto;
    padding-bottom: 4rem;
}

.asset-card {
    padding: 2.5rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.asset-card:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.asset-title {
    font-family: 'Darumadrop One', sans-serif;
    font-size: 2rem;
    font-weight: 900;
    color: #4E7493;
    margin: 0 0 0.75rem 0;
    letter-spacing: 0.5px;
}

.asset-description {
    font-size: 1rem;
    line-height: 1.7;
    color: #555;
    margin: 0 0 1rem 0;
    max-width: 800px;
}

/* ==============================
   Buy Links
   ============================== */

.asset-links {
    display: flex;
    gap: 0.6rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.buy-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    background: #f5f5f5;
    border: 1px solid #e0e0e0;
    color: #555;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.2s ease;
}

.buy-link:hover {
    background: #4E7493;
    border-color: #4E7493;
    color: white;
}

.buy-link-icon {
    font-size: 0.8rem;
    line-height: 1;
}

.asset-images {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}

.asset-thumb {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 16 / 9;
    background: #111;
    transition: transform 0.3s ease;
}

.asset-thumb:hover {
    transform: scale(1.02);
}

.asset-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: filter 0.4s ease;
}

.asset-thumb:hover img {
    filter: brightness(0.6);
}

.asset-thumb-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.asset-thumb:hover .asset-thumb-overlay {
    opacity: 1;
}

.asset-zoom-icon {
    font-size: 4.5rem;
    color: white;
    text-shadow: 0 2px 16px rgba(0, 0, 0, 0.7);
    transform: scale(0.7);
    transition: transform 0.3s ease;
    line-height: 1;
}

.asset-thumb:hover .asset-zoom-icon {
    transform: scale(1);
}

/* ==============================
   Full-screen Modal / Lightbox
   ============================== */

.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: modalFadeIn 0.2s ease;
    outline: none;
}

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

.modal-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    padding: 2rem 5rem;
    box-sizing: border-box;
}

.modal-image-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 90vw;
    max-height: 85vh;
}

.modal-image-wrapper img {
    max-width: 100%;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 4px 40px rgba(0, 0, 0, 0.5);
    animation: modalImageIn 0.25s ease;
}

@keyframes modalImageIn {
    from { opacity: 0; transform: scale(0.95); }
    to   { opacity: 1; transform: scale(1); }
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: 3rem;
    line-height: 1;
    cursor: pointer;
    z-index: 10;
    padding: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: color 0.2s ease, background 0.2s ease;
}

.modal-close:hover {
    color: white;
    background: rgba(255, 255, 255, 0.1);
}

.modal-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.8);
    font-size: 3.5rem;
    line-height: 1;
    cursor: pointer;
    z-index: 10;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    user-select: none;
}

.modal-nav:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    border-color: rgba(255, 255, 255, 0.25);
}

.modal-nav:disabled {
    opacity: 0.2;
    cursor: default;
}

.modal-prev {
    left: 1rem;
}

.modal-next {
    right: 1rem;
}

.modal-footer-bar {
    position: absolute;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 1rem;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
    font-family: 'Inter', sans-serif;
    background: rgba(0, 0, 0, 0.5);
    padding: 0.5rem 1.25rem;
    border-radius: 20px;
    backdrop-filter: blur(8px);
}

.modal-counter {
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
}

.modal-title {
    color: #4E7493;
    font-weight: 500;
}

/* Lightbox transitions for image swap */
.modal-image-wrapper img {
    transition: opacity 0.2s ease;
}

/* ==============================
   Mobile: Asset Store
   ============================== */

@media (max-width: 768px) {
    .asset-card {
        padding: 1.5rem 0;
    }

    .asset-images {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .asset-title {
        font-size: 1.5rem;
    }

    .asset-links {
        gap: 0.4rem;
    }

    .buy-link {
        font-size: 0.8rem;
        padding: 0.3rem 0.8rem;
    }

    .modal-container {
        padding: 1rem 3.5rem;
    }

    .modal-nav {
        font-size: 2.5rem;
        padding: 0.3rem 0.5rem;
    }

    .modal-close {
        font-size: 2.5rem;
        top: 0.5rem;
        right: 0.75rem;
    }

    .modal-footer-bar {
        flex-direction: column;
        gap: 0.25rem;
        padding: 0.4rem 1rem;
        font-size: 0.8rem;
        bottom: 1rem;
    }
}

/* ==============================
   Driver Badge (used in Map History)
   ============================== */

.driver-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.5rem 1rem 0.5rem 0.5rem;
    border-radius: 100px;
    background: rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.06);
    color: #444;
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.4;
    transition: background 0.2s ease;
}

.driver-badge:hover {
    background: rgba(0, 0, 0, 0.07);
    text-decoration: none;
}

.driver-badge img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.driver-badge .driver-name {
    flex-shrink: 0;
}

.driver-badge .driver-time {
    font-family: 'Inter', monospace;
    font-size: 0.8rem;
    font-weight: 500;
    color: #555;
}

/* ==============================
   Medal Time — neutral display for
   threshold values next to badge
   ============================== */

.medal-time {
    font-family: 'Inter', monospace;
    font-size: 0.9rem;
    font-weight: 500;
    color: #444;
    background: none;
    padding: 0;
}

/* Table header colors for medal columns */
.gold-header { color: #C9A03C !important; }
.silver-header { color: #9CA3AF !important; }
.bronze-header { color: #B87333 !important; }

/* ==============================
   Style Guide Preview Box
   ============================== */

.sg-preview {
    border: 1px dashed rgba(0, 0, 0, 0.12);
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    background: rgba(0, 0, 0, 0.015);
}

.sg-preview.sg-dark {
    background: #212121;
    border-color: rgba(255, 255, 255, 0.08);
}

.sg-label {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(0, 0, 0, 0.3);
    margin-bottom: 0.75rem;
}

.sg-note {
    font-size: 0.8rem;
    color: #888;
    margin-top: 0.75rem;
    margin-bottom: 0;
}

/* ==============================
   Snow Lab Custom Buttons
   ============================== */

/* --- Primary: Snow Lab Blue --- */
.btn-snow {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: #4E7493;
    color: #fff;
    border: 2px solid #4E7493;
    border-radius: 6px;
    padding: 0.55rem 1.4rem;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.03em;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.1s ease, box-shadow 0.2s ease;
    line-height: 1.4;
    white-space: nowrap;
}

.btn-snow:hover {
    background: #3d5e7a;
    border-color: #3d5e7a;
    color: #fff;
    box-shadow: 0 4px 14px rgba(78, 116, 147, 0.35);
    transform: translateY(-1px);
}

.btn-snow:active {
    transform: translateY(0);
    box-shadow: none;
}

/* --- Outline variant --- */
.btn-snow-outline {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: transparent;
    color: #4E7493;
    border: 2px solid #4E7493;
    border-radius: 6px;
    padding: 0.55rem 1.4rem;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.03em;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, transform 0.1s ease, box-shadow 0.2s ease;
    line-height: 1.4;
    white-space: nowrap;
}

.btn-snow-outline:hover {
    background: #4E7493;
    color: #fff;
    box-shadow: 0 4px 14px rgba(78, 116, 147, 0.25);
    transform: translateY(-1px);
}

.btn-snow-outline:active {
    transform: translateY(0);
    box-shadow: none;
}

/* --- Ghost (very subtle) --- */
.btn-snow-ghost {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(78, 116, 147, 0.08);
    color: #4E7493;
    border: 2px solid transparent;
    border-radius: 6px;
    padding: 0.55rem 1.4rem;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.03em;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, transform 0.1s ease;
    line-height: 1.4;
    white-space: nowrap;
}

.btn-snow-ghost:hover {
    background: rgba(78, 116, 147, 0.18);
    color: #4E7493;
    transform: translateY(-1px);
}

.btn-snow-ghost:active {
    transform: translateY(0);
}

/* --- Pill variant modifier --- */
.btn-snow.btn-pill,
.btn-snow-outline.btn-pill,
.btn-snow-ghost.btn-pill {
    border-radius: 100px;
}

/* --- Size modifiers --- */
.btn-snow.btn-sm,
.btn-snow-outline.btn-sm,
.btn-snow-ghost.btn-sm {
    padding: 0.35rem 1rem;
    font-size: 0.8rem;
}

.btn-snow.btn-lg,
.btn-snow-outline.btn-lg,
.btn-snow-ghost.btn-lg {
    padding: 0.75rem 2rem;
    font-size: 1rem;
    border-radius: 8px;
}

/* --- Icon-only (square) --- */
.btn-snow.btn-icon,
.btn-snow-outline.btn-icon,
.btn-snow-ghost.btn-icon {
    padding: 0.55rem 0.65rem;
    gap: 0;
}

.btn-snow.btn-icon.btn-sm,
.btn-snow-outline.btn-icon.btn-sm,
.btn-snow-ghost.btn-icon.btn-sm {
    padding: 0.35rem 0.45rem;
}

/* --- Danger variant --- */
.btn-snow-danger {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: #c0392b;
    color: #fff;
    border: 2px solid #c0392b;
    border-radius: 6px;
    padding: 0.55rem 1.4rem;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.03em;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.1s ease;
    line-height: 1.4;
    white-space: nowrap;
}

.btn-snow-danger:hover {
    background: #a93226;
    border-color: #a93226;
    color: #fff;
    transform: translateY(-1px);
}

.btn-snow-danger:active {
    transform: translateY(0);
}

/* Disabled state for all snow buttons */
.btn-snow:disabled, .btn-snow[disabled],
.btn-snow-outline:disabled, .btn-snow-outline[disabled],
.btn-snow-ghost:disabled, .btn-snow-ghost[disabled],
.btn-snow-danger:disabled, .btn-snow-danger[disabled] {
    opacity: 0.45;
    pointer-events: none;
    transform: none;
    box-shadow: none;
}

/* --- Asset CTA band (reusable across Films, Worlds, and Assets pages) --- */
.asset-cta {
    margin-top: 2rem;
}

.asset-cta-inner {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.asset-cta-label {
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    color: #555;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin: 0;
    flex-shrink: 0;
}

.asset-cta-buttons {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

/* --- Platform-branded buttons (Asset Store) --- */
.btn-platform {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.55rem 1.25rem;
    border-radius: 100px;
    border: 2px solid transparent;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.02em;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease,
                transform 0.1s ease, box-shadow 0.2s ease;
    color: #fff;
    line-height: 1.4;
    white-space: nowrap;
}

.btn-platform:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
    color: #fff;
}

.btn-platform:active {
    transform: translateY(0);
    box-shadow: none;
}

/* Logo mark — inline SVG sits inside the button */
.btn-platform svg {
    flex-shrink: 0;
    display: block;
}

/* --- Booth: vibrant red --- */
.btn-booth {
    background: #e84646;
    border-color: #e84646;
}
.btn-booth:hover {
    background: #cc2f2f;
    border-color: #cc2f2f;
    box-shadow: 0 4px 14px rgba(232, 70, 70, 0.35);
}

/* --- Payhip: Shopify purple --- */
.btn-payhip {
    background: #5c6ac4;
    border-color: #5c6ac4;
}
.btn-payhip:hover {
    background: #4959bd;
    border-color: #4959bd;
    box-shadow: 0 4px 14px rgba(92, 106, 196, 0.35);
}

/* --- Gumroad: signature pink --- */
.btn-gumroad {
    background: #ff6b9d;
    border-color: #ff6b9d;
}
.btn-gumroad:hover {
    background: #e84d82;
    border-color: #e84d82;
    box-shadow: 0 4px 14px rgba(255, 107, 157, 0.35);
}

/* --- YouTube: brand red --- */
.btn-youtube {
    background: #FF0000;
    border-color: #FF0000;
}
.btn-youtube:hover {
    background: #CC0000;
    border-color: #CC0000;
    box-shadow: 0 4px 14px rgba(255, 0, 0, 0.35);
}

/* --- VRChat: brand purple --- */
.btn-vrchat {
    background: #7048e2;
    border-color: #7048e2;
}
.btn-vrchat:hover {
    background: #5a2fc9;
    border-color: #5a2fc9;
    box-shadow: 0 4px 14px rgba(112, 72, 226, 0.35);
}

/* ==============================
   Colour Palette Swatches
   ============================== */

.sg-palette {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 0;
}

.sg-swatch {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4rem;
    min-width: 110px;
}

.sg-swatch-color {
    width: 100%;
    height: 56px;
    border-radius: 8px;
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.sg-swatch-name {
    font-size: 0.75rem;
    font-weight: 600;
    color: #444;
}

.sg-swatch-hex {
    font-size: 0.7rem;
    color: #888;
    font-family: 'Inter', monospace;
}

/* Mobile Adjustments (Quick polish) */
@media (max-width: 900px) {
    .split-container { flex-direction: column; height: auto; }
    .left-panel { padding: 80px 40px; height: 100vh; }
    .right-panel { height: 60vh; }
    .brand-title { font-size: 4rem; }

.photo-stack {
        width: 100%;
        height: 70%;
    }

    .stack-cards-wrapper {
        width: 82%;
    }

    .stack-nav {
        font-size: 2.2rem;
        width: 48px;
        height: 48px;
        padding: 0.3rem 0.6rem;
        z-index: 20;
        line-height: 0.6;
    }

    .stack-prev {
        margin-right: 0.5rem;
    }

    .stack-next {
        margin-left: 0.5rem;
    }

    .photo-stack-card {
        padding: 6px 6px 28px 6px;
    }

    .stack-indicator {
        gap: 0.4rem;
    }

    .stack-indicator .dot {
        width: 8px;
        height: 8px;
    }

.photo-stack.compact .stack-cards-wrapper {
        width: 90%;
    }

    .photo-stack.compact .stack-nav {
        font-size: 2rem;
        width: 42px;
        height: 42px;
        padding: 0.25rem 0.5rem;
        line-height: 0.6;
    }

    .photo-stack.compact .stack-prev {
        margin-right: 0.3rem;
    }

    .photo-stack.compact .stack-next {
        margin-left: 0.3rem;
    }

    .photo-stack.compact .photo-stack-card {
        padding: 4px 4px 22px 4px;
    }

    .photo-stack.compact + .stack-indicator {
        gap: 0.3rem;
    }

    .photo-stack.compact + .stack-indicator .dot {
        width: 7px;
        height: 7px;
    }
    
    /* Asset CTA mobile — stack vertically */
    .asset-cta-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
    .asset-cta-buttons {
        justify-content: flex-start;
        width: 100%;
    }
    .btn-platform {
        flex: 1;
        justify-content: center;
    }
    
    .sub-page { flex-direction: column; }
    .content-area { margin-left: 0; padding: 56px 16px 40px; }
    
    .countdown-clock { gap: 0.15rem; }
    .countdown-value { font-size: 2rem; min-width: 70px; width: 80px; padding: 0.4rem 0.6rem; }
    .countdown-sep { font-size: 1.5rem; padding-bottom: 1.5rem; }
    .countdown-item { min-width: 50px; }
    .countdown-label { font-size: 0.6rem; }
}
