:root {
    /* ธีมสีพื้นหลัง Ooblets (Quirky Colorful Pastel Farming & Dance Aesthetic) */
    --bg-dark: #f0fdf4;
    --bg-card: #ffffff;
    --text-main: #27272a;
    --text-muted: #616e7c;
    
    /* สีหลัก Ooblets Pastel Palette */
    --oob-mint: #2dd4bf;    /* Teal Mint Green */
    --oob-pink: #f472b6;    /* Soft Bubblegum Pink */
    --oob-yellow: #facc15;  /* Sunshine Yellow */
    --oob-purple: #c084fc;  /* Lavender Purple */
    --oob-coral: #fb923c;   /* Coral Orange */
    --oob-blue: #38bdf8;    /* Sky Blue */
    --oob-white: #ffffff; 
    
    --oob-gradient: linear-gradient(135deg, #2dd4bf, #f472b6, #facc15); 
    --mint-pink-gradient: linear-gradient(135deg, #2dd4bf, #f472b6); 
    --purple-pink-gradient: linear-gradient(135deg, #c084fc, #f472b6); 
    
    /* ตั้งค่าตัวแปรหลัก */
    --primary-color: var(--oob-mint);
    --primary-gradient: var(--oob-gradient);
}

/* =========================================
   Age Rating Box (กล่องแสดงเรตติ้งอายุ)
========================================= */
.age-rating {
    display: flex;
    align-items: center;
    gap: 20px;
    background: #ffffff;
    padding: 22px;
    border-radius: 20px;
    margin-top: 25px;
    border-left: 6px solid var(--oob-mint);
    box-shadow: 0 10px 30px rgba(45, 212, 191, 0.2);
    border-top: 1px solid rgba(45, 212, 191, 0.25);
    border-right: 1px solid rgba(45, 212, 191, 0.15);
    border-bottom: 1px solid rgba(45, 212, 191, 0.15);
}

.age-rating img {
    width: 60px;
    height: auto;
    border-radius: 8px;
}

.age-desc h4 { 
    color: #1e293b; 
    margin-bottom: 5px; 
    font-size: 1.2rem;
    font-weight: 700;
    font-family: 'Fredoka', 'Quicksand', 'Prompt', sans-serif;
}

.age-desc p { 
    font-size: 0.95rem; 
    color: var(--text-muted); 
    white-space: pre-line;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Prompt', 'Quicksand', sans-serif;
    background: linear-gradient(180deg, #f0fdf4 0%, #fdf2f8 35%, #faf5ff 70%, #fffbebe6 100%);
    color: var(--text-main);
    line-height: 1.7;
    min-height: 100vh;
}

h1, h2, h3, .logo { font-family: 'Fredoka', 'Mali', 'Quicksand', 'Prompt', sans-serif; }

/* 1. Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 5%;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(16px);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 3px solid rgba(45, 212, 191, 0.3);
    box-shadow: 0 6px 24px rgba(45, 212, 191, 0.15);
}

.logo {
    font-family: 'Fredoka', 'Mali', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: #18181b;
}

.main-title { 
    font-family: 'Fredoka', 'Mali', 'Prompt', sans-serif;
    font-weight: 700;
    color: #18181b; 
}

/* =========================================
   คลาสสีเฉพาะของโลโก้ Ooblets
   - OOB -> สีมิ้นต์เขียว (.text-oob-mint)
   - LE  -> สีชมพู (.text-oob-pink)
   - TS  -> สีเหลือง (.text-oob-yellow)
========================================= */
.text-oob-mint {
    background: linear-gradient(180deg, #2dd4bf 0%, #14b8a6 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    display: inline-block;
    filter: drop-shadow(0 2px 8px rgba(45, 212, 191, 0.4));
}

.text-oob-pink {
    background: linear-gradient(180deg, #f472b6 0%, #ec4899 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    display: inline-block;
    filter: drop-shadow(0 2px 8px rgba(244, 114, 182, 0.4));
}

.text-oob-yellow {
    background: linear-gradient(180deg, #facc15 0%, #eab308 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    display: inline-block;
    filter: drop-shadow(0 2px 8px rgba(250, 204, 21, 0.4));
}

/* Fallbacks */
.text-hk-pink, .text-ddv-magic {
    background: linear-gradient(180deg, #f472b6 0%, #ec4899 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    display: inline-block;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 30px;
}
.nav-links {
    list-style: none;
    display: flex;
    gap: 25px;
}
.nav-links a {
    color: #3f3f46;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.05rem;
    transition: all 0.3s ease;
    padding: 6px 12px;
    border-radius: 12px;
}
.nav-links a:hover { 
    color: #ec4899; 
    background: rgba(244, 114, 182, 0.12);
    transform: translateY(-2px);
}

.mobile-menu-btn { display: none; background: none; border: none; color: #3f3f46; font-size: 1.6rem; }

/* 2. VDO Hero */
.hero-vdo {
    position: relative;
    width: 100%;
    height: 70vh;
    margin-top: 70px;
    background: #0d1117;
    overflow: hidden;
}
.vdo-container iframe {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100vw;
    height: 56.25vw;
    min-height: 100vh;
    min-width: 177.77vh;
    transform: translate(-50%, -50%);
    pointer-events: none;
}
.vdo-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(240,253,244,0.15) 0%, var(--bg-dark) 100%);
}

/* Layout หลัก */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}
.section-block { margin-bottom: 60px; }
.section-block h2 {
    font-size: 2.2rem;
    margin-bottom: 25px;
    border-left: 6px solid var(--oob-mint);
    padding-left: 16px;
    position: relative;
    color: #18181b;
    font-family: 'Fredoka', 'Prompt', sans-serif;
}

/* 3. Details */
.main-title { 
    font-family: 'Fredoka', 'Mali', 'Prompt', sans-serif;
    font-size: 3.4rem; 
    margin-bottom: 20px; 
    color: #18181b;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    line-height: 1.25;
}

.game-desc-text { 
    font-size: 1.12rem; 
    color: #4b5563; 
    margin-bottom: 24px; 
    white-space: pre-line;
    line-height: 1.85;
}

/* Game Meta */
.game-meta {
    background: #ffffff;
    padding: 30px;
    border-radius: 20px;
    border-left: 6px solid var(--oob-pink);
    margin-top: 30px;
    box-shadow: 0 12px 35px rgba(244, 114, 182, 0.15);
    border-top: 1px solid rgba(244, 114, 182, 0.2);
    border-right: 1px solid rgba(244, 114, 182, 0.15);
    border-bottom: 1px solid rgba(244, 114, 182, 0.15);
}

.game-meta p {
    margin-bottom: 16px;
    font-size: 1.1rem;
    display: flex;
    align-items: flex-start;
}

.game-meta p strong {
    color: #18181b;
    min-width: 140px;
    flex-shrink: 0;
}

#game-dev, #game-pub {
    color: #0d9488;
    font-weight: 700;
    font-size: 1.15rem;
    letter-spacing: 0.5px;
}

#game-lang {
    color: #4b5563;
    font-size: 0.98rem;
    line-height: 1.6;
}

/* แท็ก (Hashtags) */
.hashtags { 
    display: flex; 
    gap: 10px; 
    margin-top: 25px; 
    flex-wrap: wrap; 
    border-top: 1px solid rgba(244, 114, 182, 0.3);
    padding-top: 20px;
}
.tag { 
    background: #fce7f3; 
    color: #db2777; 
    padding: 7px 18px; 
    border-radius: 20px; 
    font-size: 0.92rem; 
    font-weight: 600;
    border: 1px solid #fbcfe8;
    transition: all 0.3s ease;
}

.tag:hover {
    background: #ec4899;
    color: #ffffff;
    border-color: #ec4899;
    box-shadow: 0 6px 18px rgba(236, 72, 153, 0.35);
    transform: translateY(-2px);
}

/* 4. System Requirements */
.sysreq-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}
.req-card {
    background: #ffffff;
    padding: 32px;
    border-radius: 20px;
    border-top: 5px solid var(--oob-mint);
    box-shadow: 0 12px 35px rgba(45, 212, 191, 0.14);
    border-left: 1px solid rgba(45, 212, 191, 0.18);
    border-right: 1px solid rgba(45, 212, 191, 0.18);
    border-bottom: 1px solid rgba(45, 212, 191, 0.18);
}
.req-card h3 { margin-bottom: 16px; color: #0d9488; font-size: 1.35rem; font-weight: 700; }
.req-card ul { list-style: none; }
.req-card ul li {
    margin-bottom: 14px;
    font-size: 0.98rem;
    color: #4b5563;
}
.req-card ul li strong { color: #18181b; }

/* 5. Controllers */
.controller-list {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}
.controller-item {
    background: #ffffff;
    padding: 16px 28px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    color: #18181b;
    border: 1px solid rgba(45, 212, 191, 0.3);
    box-shadow: 0 6px 20px rgba(45, 212, 191, 0.12);
    transition: all 0.3s ease;
}
.controller-item i {
    color: #0d9488;
    font-size: 1.35rem;
    filter: drop-shadow(0 2px 4px rgba(45, 212, 191, 0.3));
}
.controller-item:hover {
    transform: translateY(-4px);
    border-color: #2dd4bf;
    background: #f0fdf4;
    box-shadow: 0 10px 25px rgba(45, 212, 191, 0.25);
}

/* 6. Download Buttons */
.download-buttons {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 20px;
    width: 100%;
}

.btn-dl {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 18px 30px;
    border-radius: 16px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    flex: 1;
    min-width: 240px;
}

/* Steam */
.btn-steam { 
    background: linear-gradient(135deg, #171d25, #2a475e); 
    color: white; 
    border: 1px solid #66c0f4; 
    box-shadow: 0 6px 20px rgba(42, 71, 94, 0.3);
}
.btn-steam:hover { 
    background: linear-gradient(135deg, #2a475e, #66c0f4); 
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(102, 192, 244, 0.45);
}

/* Xbox Store */
.btn-xbox { 
    background: linear-gradient(135deg, #0e5c0e, #107c10); 
    color: white; 
    border: 1px solid #1f9f1f; 
    box-shadow: 0 6px 20px rgba(16, 124, 16, 0.3);
}
.btn-xbox:hover { 
    background: linear-gradient(135deg, #107c10, #23b323); 
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(16, 124, 16, 0.45);
}

/* Epic Games */
.btn-epic { 
    background: linear-gradient(135deg, #2a2e38, #3f4555); 
    color: white; 
    border: 1px solid #717c96; 
    box-shadow: 0 6px 20px rgba(42, 46, 56, 0.25);
}
.btn-epic:hover { 
    background: linear-gradient(135deg, #3f4555, #5a6378); 
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(63, 69, 85, 0.4);
}

/* Nintendo Switch */
.btn-switch {
    background: linear-gradient(135deg, #e11d48, #ff4757);
    color: white;
    border: 1px solid #ff6b81;
    box-shadow: 0 6px 20px rgba(225, 29, 72, 0.3);
}
.btn-switch:hover {
    background: linear-gradient(135deg, #ff4757, #ff6b81);
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(255, 71, 87, 0.5);
}

/* PlayStation */
.btn-ps {
    background: linear-gradient(135deg, #0043a8, #0070d1);
    color: white;
    border: 1px solid #60a5fa;
    box-shadow: 0 6px 20px rgba(0, 112, 209, 0.3);
}
.btn-ps:hover {
    background: linear-gradient(135deg, #0070d1, #3b82f6);
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(59, 130, 246, 0.5);
}

/* Official Web */
.btn-web {
    background: linear-gradient(135deg, #0d9488, #2dd4bf);
    color: white;
    border: 1px solid #5eead4;
    box-shadow: 0 6px 20px rgba(45, 212, 191, 0.35);
}
.btn-web:hover {
    background: linear-gradient(135deg, #2dd4bf, #99f6e4);
    color: #0f766e;
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(45, 212, 191, 0.5);
}

/* 7. Gallery */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.gallery-grid img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 16px;
    transition: all 0.35s ease;
    cursor: pointer;
    border: 4px solid #ffffff;
    box-shadow: 0 8px 24px rgba(45, 212, 191, 0.2);
}
.gallery-grid img:hover { 
    transform: scale(1.04) translateY(-4px); 
    border-color: var(--oob-mint);
    box-shadow: 0 15px 35px rgba(45, 212, 191, 0.38);
}

footer { 
    text-align: center; 
    padding: 40px 20px; 
    color: #64748b; 
    border-top: 2px solid rgba(45, 212, 191, 0.2); 
    font-weight: 500;
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(240, 253, 244, 0.96);
    backdrop-filter: blur(10px);
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox.active {
    display: flex;
    opacity: 1;
}

.lightbox img {
    max-width: 90%;
    max-height: 85vh;
    border-radius: 20px;
    box-shadow: 0 18px 50px rgba(45, 212, 191, 0.35);
    object-fit: contain;
    animation: zoomIn 0.3s ease;
    border: 5px solid #ffffff;
}

@keyframes zoomIn {
    from { transform: scale(0.9); }
    to { transform: scale(1); }
}

.close-lightbox {
    position: absolute;
    top: 30px;
    right: 40px;
    color: #18181b;
    font-size: 42px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
    z-index: 2001;
}

.close-lightbox:hover { color: var(--oob-pink); }

.prev-lightbox, .next-lightbox {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: #ffffff;
    color: #18181b;
    border: 2px solid rgba(45, 212, 191, 0.4);
    width: 58px;
    height: 58px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
    z-index: 2001;
    box-shadow: 0 8px 24px rgba(45, 212, 191, 0.3);
}

.prev-lightbox:hover, .next-lightbox:hover {
    background: var(--oob-mint);
    color: #ffffff;
    border-color: transparent;
    box-shadow: 0 10px 28px rgba(45, 212, 191, 0.5);
    transform: translateY(-50%) scale(1.1);
}

.prev-lightbox { left: 40px; }
.next-lightbox { right: 40px; }

/* Mobile & Responsive */
@media (max-width: 900px) {
    .sysreq-grid { grid-template-columns: 1fr; }
    .gallery-grid { grid-template-columns: repeat(2, 1fr); }
    .main-title { font-size: 2.5rem; }
}

@media (max-width: 768px) {
    .nav-right {
        display: none; 
        flex-direction: column;
        position: absolute;
        top: 100%; 
        left: 0;
        width: 100%;
        background: rgba(255, 255, 255, 0.98); 
        padding: 20px 0 30px 0;
        border-top: 2px solid rgba(45, 212, 191, 0.3); 
        box-shadow: 0 10px 24px rgba(45, 212, 191, 0.2);
    }

    .nav-right.active {
        display: flex;
    }

    .nav-links {
        flex-direction: column;
        align-items: center;
        width: 100%;
        gap: 20px;
    }

    .mobile-menu-btn { 
        display: block; 
        cursor: pointer;
    }

    .gallery-grid { grid-template-columns: 1fr; }
    .hero-vdo { height: 50vh; }
    .download-buttons { flex-direction: column; }
    .main-title { font-size: 2.2rem; }
}
