/* ==========================================================================
   1. VARIABLES & RESETS
   ========================================================================== */
:root {
    --text-brown: #4A3B32;
    --matte-warm: #f6e7d4;
    --matte-warm-dark: #BFA890;
    --wood-primary: #A98467;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ==========================================================================
   2. FONTS & TYPOGRAPHY
   ========================================================================== */
@font-face {
    font-family: 'Engine';
    src: url('../assets/Engine-Regular.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Quicksand';
    src: url('../assets/quicksand.woff2') format('woff2');
    font-weight: 300 700;
    font-style: normal;
    font-display: swap;
}

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    background-color: var(--matte-warm);
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Engine', sans-serif;
    font-weight: normal;
}

p {
    font-family: 'Quicksand', sans-serif;
    font-weight: 400;
    line-height: 1.6;
}

/* ==========================================================================
   3. LAYOUT & STRUCTURE
   ========================================================================== */
.split-layout {
    display: flex;
    height: 100dvh;
    width: 100%;
    overflow: hidden;
}

.left-col {
    width: 57%;
    height: 100dvh;
    position: relative;
    overflow: hidden;
}

.bg-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    display: block;
}

.right-col {
    width: 43%;
    min-width: 520px;
    height: 100dvh;
    background-color: var(--matte-warm);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    position: relative;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--wood-primary) transparent;
}

.content-wrapper {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    max-width: 80%;
    width: 100%;
    z-index: 2;
}

.main-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    text-align: center;
    padding: 20px;
}

/* ==========================================================================
   4. DECORATIVE BACKGROUND SKETCHES
   ========================================================================== */
.sketch-bg {
    display: none;
    position: absolute;
    pointer-events: none;
    z-index: 1;
    opacity: .8;
    height: auto;
    user-select: none;
    filter: drop-shadow(0 2px 4px rgba(74,59,50,.1));
}

.sketch-1 { top: 12%; left: 6%; width: 90px; transform: rotate(-14deg); }
.sketch-2 { top: 35%; right: 8%; width: 110px; transform: rotate(18deg); }
.sketch-3 { top: 48%; left: 4%; width: 95px; transform: rotate(-8deg); }
.sketch-4 { bottom: 22%; right: 6%; width: 105px; transform: rotate(12deg); }
.sketch-5 { bottom: 18%; left: 8%; width: 85px; transform: rotate(-16deg); }

/* ==========================================================================
   5. CONTENT COMPONENTS
   ========================================================================== */
.game-logo {
    max-width: 360px;
    width: 100%;
    height: auto;
    margin-bottom: 20px;
}

.description {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text-brown);
    margin-bottom: 25px;
    line-height: 1.5;
}

/* Trailer Buttons & Embed Defaults */
.trailer-btn {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background-color: var(--text-brown);
    color: var(--matte-warm);
    border: none;
    padding: 12px 24px;
    border-radius: 30px;
    font-family: 'Quicksand', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    margin-bottom: 30px;
    transition: transform .2s ease, background-color .2s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,.12);
}

.trailer-btn:hover {
    transform: translateY(-2px);
    background-color: var(--wood-primary);
}

.trailer-btn.desktop-trailer-btn {
    display: none;
}

.play-icon {
    font-size: .8rem;
}

.mobile-trailer-embed {
    display: none;
}

/* Platform Bar */
.platform-title {
    font-size: 2rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 700;
    color: rgba(74,59,50,.7);
    margin-bottom: 15px;
}

.platform-bar {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.platform-link {
    display: block;
}

.platform-link img {
    height: 32px;
    width: auto;
}

.platform-link:hover img {
    transform: scale(1.05);
}

.platform-link.coming-soon {
    position: relative;
    display: inline-block;
    cursor: not-allowed;
    pointer-events: none;
}

.platform-link.coming-soon::after {
    content: 'Coming Soon';
    position: absolute;
    top: -10px;
    right: -10px;
    z-index: 10;
    font-family: 'Quicksand', sans-serif;
    font-size: .7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
    white-space: nowrap;
    color: #fff;
    background-color: #e60012;
    padding: 4px 8px;
    border-radius: 4px;
    box-shadow: 0 2px 6px rgba(0,0,0,.3);
}

.platform-link.coming-soon picture {
    opacity: .6;
    filter: grayscale(30%);
    transition: opacity .3s ease;
}

.platform-link.wishlist {
    position: relative;
    display: inline-block;
}

.platform-link.wishlist::after {
    content: 'Wishlist';
    position: absolute;
    top: -10px;
    right: -10px;
    z-index: 10;
    font-family: 'Quicksand', sans-serif;
    font-size: .7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
    white-space: nowrap;
    color: #fff;
    background-color: #0063d4;
    padding: 4px 8px;
    border-radius: 4px;
    box-shadow: 0 2px 6px rgba(0,0,0,.3);
}

.muted-note {
    font-size: .75rem;
    color: rgba(74,59,50,.6);
    font-weight: 600;
}

/* Info Section */
.info-section {
    margin-top: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.info-title {
    font-size: .95rem;
    font-weight: 600;
    color: rgba(74,59,50,.7);
}

.info-link {
    display: inline-block;
    padding: 10px 24px;
    font-family: 'Quicksand', sans-serif;
    font-size: .8rem;
    font-weight: 700;
    color: var(--text-brown);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 2px solid rgba(74,59,50,.2);
    border-radius: 30px;
    transition: all .3s ease;
}

.info-link:hover {
    background-color: var(--text-brown);
    color: var(--matte-warm);
    border-color: var(--text-brown);
    box-shadow: 0 4px 10px rgba(0,0,0,.08);
}

/* Footer */
.footer {
    text-align: center;
}

.company-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 60px;
    margin-bottom: 15px;
}

.footer-logo {
    height: 50px;
    width: auto;
    opacity: .6;
    transition: opacity .2s ease, transform .2s ease;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,.2));
}

.company-logos a:hover .footer-logo {
    opacity: 1;
    transform: scale(1.05);
}

.legals-text {
    font-size: .8rem;
    color: rgba(74,59,50,.6);
    font-weight: 600;
}

.legals-text a {
    color: inherit;
    text-decoration: none;
    transition: color .2s;
}

.legals-text a:hover {
    color: var(--text-brown);
}

/* ==========================================================================
   6. WIDGETS & MODALS
   ========================================================================== */
/* Language Character Widget */
.lang-character-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    font-family: sans-serif;
}

#lang-character {
    width: 80px;
    height: auto;
    cursor: pointer;
    transition: transform .2s ease;
    filter: drop-shadow(0 2px 6px rgba(0,0,0,.4));
}

#lang-character:hover {
    transform: scale(1.05);
}

.speech-bubble {
    position: relative;
    background: #fff;
    border: 2px solid #333;
    border-radius: 12px;
    padding: 12px;
    margin-bottom: 15px;
    box-shadow: 0 4px 10px rgba(0,0,0,.1);
    display: none;
    text-align: center;
    width: 180px;
}

.speech-bubble::after {
    content: '';
    position: absolute;
    bottom: -10px;
    right: 30px;
    border-width: 10px 10px 0;
    border-style: solid;
    border-color: #fff transparent;
    display: block;
    width: 0;
}

.speech-bubble::before {
    content: '';
    position: absolute;
    bottom: -13px;
    right: 29px;
    border-width: 11px 11px 0;
    border-style: solid;
    border-color: #333 transparent;
    display: block;
    width: 0;
}

.bubble-title {
    margin: 0 0 10px;
    font-size: 14px;
    font-weight: 700;
    color: #555;
}

.lang-options {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.lang-btn {
    background: #f0f0f0;
    border: 1px solid #ccc;
    padding: 6px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    transition: background .2s;
}

.lang-btn:hover {
    background: #e0e0e0;
}

.lang-btn.active {
    background: #333;
    color: #fff;
    border-color: #333;
}

.subtle-bounce {
    animation: gentle-bounce 2s ease-in-out infinite;
}

@keyframes gentle-bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

.globe-icon {
    font-size: 28px;
    margin-bottom: 4px;
    animation: spin-pulse 4s ease-in-out infinite;
}

.globe-hint {
    font-size: 11px;
    color: #666;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
}

@keyframes spin-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* Trailer Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,.85);
    backdrop-filter: blur(5px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity .3s ease;
    padding: 20px;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    position: relative;
    width: 100%;
    max-width: 1000px;
    background: #000;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,.5);
}

.modal-close {
    position: absolute;
    top: 10px;
    right: 15px;
    background: rgba(0,0,0,.6);
    color: #fff;
    border: none;
    font-size: 1.8rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
}

.video-container iframe,
.video-container video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* ==========================================================================
   7. MEDIA QUERIES
   ========================================================================== */
/* Tablet & Mobile Base Responsive Adjustments */
@media (max-width: 1000px) {
    .sketch-bg {
        display: block;
    }

    .split-layout {
        flex-direction: column-reverse;
        height: auto;
        min-height: 100dvh;
    }

    .left-col {
        display: none;
    }

    .right-col {
        width: 100%;
        min-width: auto;
        height: auto;
        padding: 0 20px 10px;
    }

    .platform-bar a img {
        height: 40px;
    }

    #lang-character {
        width: 50px;
    }

    .description {
        font-size: 1rem;
        line-height: 1.5;
        margin-bottom: 0;
    }
}

/* Mobile Devices (Under 768px Width) */
@media screen and (max-width: 767px) {
    .mobile-trailer-embed {
        display: block !important;
        width: 90dvw;
        aspect-ratio: 16 / 9;
        margin: 20px 0;
        border-radius: 12px;
        overflow: hidden;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    }

    .mobile-trailer-embed iframe {
        width: 100%;
        height: 100%;
        border: 0;
    }
}

/* Standard Desktop Displays (768px Width and Above) */
@media screen and (min-width: 768px) {
    .trailer-btn.desktop-trailer-btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        margin: 25px 0;
    }
}

/* High-Vertical-Resolution Desktop Displays (1440p & 4K) */
@media screen and (min-width: 768px) and (min-height: 1100px) {
    .mobile-trailer-embed {
        display: block !important;
        width: 90dvw;
        aspect-ratio: 16 / 9;
        margin: 24px 0;
        border-radius: 12px;
        overflow: hidden;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    }

    .mobile-trailer-embed iframe {
        width: 100%;
        height: 100%;
        border: 0;
    }

    .trailer-btn.desktop-trailer-btn {
        display: none !important;
    }
}