/* =========================================
   OLD GAME TO THAI
   SYNTHWAVE / RETRO 90s THEME
========================================= */

:root {
    --bg-top: #120b2e;
    --bg-mid: #3a145a;
    --bg-bottom: #ff2f92;

    --panel: rgba(22, 14, 46, 0.82);
    --panel-2: rgba(37, 18, 68, 0.9);

    --text-main: #ffe8f5;
    --text-soft: #d9b9e7;

    --pink: #ff3ea5;
    --hotpink: #ff4fd8;
    --purple: #8c52ff;
    --blue: #29d3ff;
    --cyan: #6df7ff;
    --orange: #ff9b54;
    --yellow: #ffd86b;
}


/* RESET */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


/* BODY */

body {
    font-family:
        "Trebuchet MS",
        Tahoma,
        Arial,
        sans-serif;

    color: var(--text-main);

    min-height: 100vh;

    background:
        linear-gradient(
            to bottom,
            #0e0820 0%,
            #1a0f38 18%,
            #361357 40%,
            #7f1f75 65%,
            #ff2d8f 100%
        );

    position: relative;
    overflow-x: hidden;
}


/* ฉากหลังแนวพระอาทิตย์ย้อนยุค */

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: -2;

    background:
        radial-gradient(
            circle at 50% 33%,
            rgba(255, 210, 120, 0.95) 0 90px,
            rgba(255, 147, 103, 0.9) 90px 150px,
            rgba(255, 78, 154, 0.75) 150px 220px,
            transparent 220px
        ),
        linear-gradient(
            to bottom,
            transparent 0%,
            transparent 57%,
            rgba(12, 4, 28, 0.35) 57%,
            rgba(12, 4, 28, 0.35) 60%,
            transparent 60%,
            transparent 100%
        );
}


/* กริดพื้นล่างแบบ synthwave */

body::after {
    content: "";
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    height: 40vh;
    pointer-events: none;
    z-index: -1;

    background:
        linear-gradient(
            to top,
            rgba(8, 0, 22, 0.95),
            rgba(8, 0, 22, 0.45) 55%,
            transparent 100%
        );

    clip-path: polygon(0 100%, 100% 100%, 100% 35%, 0 35%);
}

html {
    background: #0e0820;
}


/* สร้างเส้นกริดด้วย overlay */

main::before {
    content: "";
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    height: 35vh;
    pointer-events: none;
    z-index: -1;

    background:
        linear-gradient(
            rgba(255, 72, 171, 0.75) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(70, 226, 255, 0.7) 1px,
            transparent 1px
        );

    background-size: 100% 34px, 34px 100%;
    transform: perspective(420px) rotateX(72deg);
    transform-origin: bottom;
    opacity: 0.35;
}


/* HEADER */

.site-header {
    padding: 40px 20px 25px;
    text-align: center;
    position: relative;
}

.site-header,
main,
footer {
    position: relative;
    z-index: 2;
}

.header-inner {
    max-width: 1100px;
    margin: auto;
}


/* LOGO */

.main-logo {
    display: block;
    width: min(760px, 100%);
    max-height: 320px;
    object-fit: contain;
    margin: 0 auto;
    border: none;
    box-shadow: none;
    cursor: pointer;

    filter:
        drop-shadow(0 0 8px rgba(255, 62, 165, 0.55))
        drop-shadow(0 0 18px rgba(41, 211, 255, 0.25));

    transition:
        transform 0.25s ease,
        filter 0.25s ease;

    animation: logoFloat 3.2s ease-in-out infinite;
}

.main-logo:hover {
    transform: scale(1.05) translateY(-2px);
    filter:
        drop-shadow(0 0 12px rgba(255, 62, 165, 0.8))
        drop-shadow(0 0 28px rgba(41, 211, 255, 0.45))
        brightness(1.05) saturate(1.08);
}

.main-logo:active {
    transform: scale(0.98);
}

.tagline {
    margin-top: 22px;
    font-size: 24px;
    font-weight: bold;
    letter-spacing: 1px;
    color: #fff1b8;
    text-shadow:
        0 0 6px rgba(255, 216, 107, 0.55),
        0 0 12px rgba(255, 62, 165, 0.35),
        2px 2px 0 rgba(35, 10, 58, 0.9);
}


/* MAIN */

main {
    max-width: 1100px;
    margin: auto;
    padding: 30px 20px 60px;
    position: relative;
    z-index: 1;
}

.section {
    margin-bottom: 55px;
}


/* SECTION TITLE */

.section-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 22px;

    padding: 14px 16px;

    background:
        linear-gradient(
            90deg,
            rgba(255, 62, 165, 0.2),
            rgba(140, 82, 255, 0.16),
            rgba(41, 211, 255, 0.18)
        );

    border: 1px solid rgba(255, 115, 194, 0.5);

    box-shadow:
        0 0 0 1px rgba(41, 211, 255, 0.14) inset,
        0 0 20px rgba(255, 62, 165, 0.14);
}

.section-title h2 {
    font-family:
        "Courier New",
        monospace;
    font-size: 24px;
    color: #fff0fb;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 0 0 8px rgba(255, 79, 216, 0.3);
}

.view-all {
    color: var(--cyan);
    text-decoration: none;
    font-size: 14px;
    font-weight: bold;
}

.view-all:hover {
    color: #ffffff;
    text-decoration: underline;
}


/* GAME GRID */

.game-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 24px;
}


/* GAME CARD */

.game-card {
    background: var(--panel);
    border: 1px solid rgba(120, 102, 255, 0.35);

    box-shadow:
        0 0 18px rgba(255, 62, 165, 0.12),
        0 0 0 1px rgba(41, 211, 255, 0.08) inset;

    backdrop-filter: blur(4px);
    overflow: hidden;

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        border-color 0.2s ease;
}

.game-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 216, 107, 0.65);

    box-shadow:
        0 0 24px rgba(255, 62, 165, 0.22),
        0 0 36px rgba(41, 211, 255, 0.14),
        0 0 0 1px rgba(255, 216, 107, 0.15) inset;
}

.game-card a {
    color: inherit;
    text-decoration: none;
}


/* GAME IMAGE */

.game-image {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #140a2f;
    border-bottom: 1px solid rgba(255, 79, 216, 0.28);
}

.game-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;

    filter:
        saturate(1.02)
        contrast(1.04);

    transition:
        transform 0.3s ease,
        filter 0.3s ease;
}

.game-card:hover .game-image img {
    transform: scale(1.04);
    filter:
        saturate(1.08)
        contrast(1.08)
        brightness(1.03);
}


/* BADGE */

.game-status {
    position: absolute;
    left: 10px;
    bottom: 10px;

    padding: 7px 10px;

    background:
        linear-gradient(
            90deg,
            rgba(255, 62, 165, 0.92),
            rgba(255, 155, 84, 0.92)
        );

    color: #fffafc;

    font-family:
        "Courier New",
        monospace;
    font-size: 12px;
    font-weight: bold;
    letter-spacing: 0.5px;

    box-shadow:
        0 0 10px rgba(255, 62, 165, 0.35);
}


/* GAME INFO */

.game-info {
    padding: 18px;
}

.game-info h3 {
    margin-bottom: 8px;

    color: #fff2fb;

    font-family:
        "Courier New",
        monospace;
    font-size: 21px;

    text-shadow: 0 0 8px rgba(140, 82, 255, 0.18);
}

.game-info p {
    color: var(--text-soft);
    font-size: 14px;
    line-height: 1.7;
}

.game-meta {
    display: flex;
    gap: 8px;
    margin-top: 15px;
    flex-wrap: wrap;
}

.game-meta span {
    padding: 5px 9px;

    background:
        linear-gradient(
            90deg,
            rgba(50, 29, 88, 0.95),
            rgba(34, 24, 72, 0.95)
        );

    border: 1px solid rgba(41, 211, 255, 0.24);

    color: #d5fbff;

    font-family:
        "Courier New",
        monospace;
    font-size: 11px;
}


/* PLACEHOLDER */

.placeholder-image {
    display: flex;
    align-items: center;
    justify-content: center;

    background:
        linear-gradient(
            135deg,
            rgba(255, 62, 165, 0.25),
            rgba(140, 82, 255, 0.25),
            rgba(41, 211, 255, 0.2)
        );

    color: #ffe694;

    font-family:
        "Courier New",
        monospace;
    font-size: 14px;
    letter-spacing: 2px;
}


/* INFO SECTION */

.info-section {
    margin-top: 45px;
    padding: 26px;

    background: var(--panel-2);

    border: 1px solid rgba(255, 79, 216, 0.28);

    box-shadow:
        0 0 20px rgba(140, 82, 255, 0.12),
        0 0 0 1px rgba(41, 211, 255, 0.08) inset;

    backdrop-filter: blur(5px);
}

.info-section h2 {
    margin-bottom: 16px;

    color: #fff1fb;

    font-family:
        "Courier New",
        monospace;
    font-size: 21px;

    border-bottom: 1px solid rgba(255, 216, 107, 0.25);
    padding-bottom: 10px;

    text-shadow: 0 0 8px rgba(255, 79, 216, 0.24);
}

.info-section p {
    color: #ead0f4;
    line-height: 1.9;
    margin-bottom: 8px;
}


/* FOOTER */

footer {
    margin-top: 20px;
    padding: 30px 20px;
    text-align: center;

    background:
        linear-gradient(
            to top,
            rgba(8, 4, 22, 0.95),
            rgba(18, 9, 41, 0.92)
        );

    border-top: 1px solid rgba(255, 79, 216, 0.25);

    color: #d7b8e7;

    font-family:
        "Courier New",
        monospace;
}

footer p {
    margin: 5px;
}

.copyright {
    font-size: 12px;
    color: #9b78b0;
}


/* LOGO ANIMATION */

@keyframes logoFloat {
    0%   { transform: translateY(0px); }
    50%  { transform: translateY(-5px); }
    100% { transform: translateY(0px); }
}


/* MOBILE */

@media (max-width: 650px) {
    .site-header {
        padding: 28px 15px 20px;
    }

    .main-logo {
        max-height: 220px;
    }

    .tagline {
        font-size: 18px;
        line-height: 1.5;
    }

    main {
        padding: 25px 14px 50px;
    }

    .section-title {
        align-items: flex-start;
        flex-direction: column;
    }

    .section-title h2 {
        font-size: 20px;
    }

    .game-grid {
        grid-template-columns: 1fr;
    }

    .info-section {
        padding: 20px;
    }
}

/* =========================================
   EXTRA BACKGROUND FX
========================================= */

.bg-stars,
.bg-glow,
.bg-scanlines {
    position: fixed;
    inset: 0;
    pointer-events: none;
}


/* ดาวชั้นแรก */

.bg-stars {
    z-index: 0;
    opacity: 0.8;
    background-image:
        radial-gradient(circle at 8% 12%, rgba(255,255,255,0.95) 0 1px, transparent 2px),
        radial-gradient(circle at 18% 32%, rgba(255,230,160,0.95) 0 1.5px, transparent 3px),
        radial-gradient(circle at 28% 18%, rgba(120,220,255,0.95) 0 1.5px, transparent 3px),
        radial-gradient(circle at 35% 42%, rgba(255,255,255,0.9) 0 1px, transparent 2px),
        radial-gradient(circle at 48% 10%, rgba(255,120,210,0.9) 0 1.5px, transparent 3px),
        radial-gradient(circle at 58% 28%, rgba(255,255,255,0.95) 0 1px, transparent 2px),
        radial-gradient(circle at 68% 16%, rgba(255,226,130,0.95) 0 2px, transparent 4px),
        radial-gradient(circle at 76% 36%, rgba(255,255,255,0.9) 0 1px, transparent 2px),
        radial-gradient(circle at 88% 14%, rgba(255,120,210,0.9) 0 2px, transparent 4px),
        radial-gradient(circle at 92% 30%, rgba(120,220,255,0.95) 0 1px, transparent 2px),
        radial-gradient(circle at 12% 58%, rgba(255,255,255,0.9) 0 1px, transparent 2px),
        radial-gradient(circle at 24% 64%, rgba(255,120,210,0.9) 0 1.5px, transparent 3px),
        radial-gradient(circle at 42% 56%, rgba(255,255,255,0.95) 0 1px, transparent 2px),
        radial-gradient(circle at 63% 62%, rgba(255,226,130,0.95) 0 1.5px, transparent 3px),
        radial-gradient(circle at 82% 54%, rgba(255,255,255,0.9) 0 1px, transparent 2px);
    animation: starsTwinkle 4s ease-in-out infinite alternate;
}


/* ดาวชั้นสอง ขยับช้ากว่า */

.bg-stars-2 {
    z-index: 0;
    opacity: 0.45;
    transform: scale(1.02);
    background-image:
        radial-gradient(circle at 14% 20%, rgba(255,255,255,0.8) 0 1px, transparent 2px),
        radial-gradient(circle at 30% 8%, rgba(255,210,120,0.8) 0 1.5px, transparent 3px),
        radial-gradient(circle at 52% 24%, rgba(120,220,255,0.8) 0 1px, transparent 2px),
        radial-gradient(circle at 72% 12%, rgba(255,255,255,0.8) 0 1px, transparent 2px),
        radial-gradient(circle at 86% 26%, rgba(255,120,210,0.75) 0 1.5px, transparent 3px),
        radial-gradient(circle at 10% 46%, rgba(255,255,255,0.8) 0 1px, transparent 2px),
        radial-gradient(circle at 37% 40%, rgba(255,226,130,0.8) 0 1.5px, transparent 3px),
        radial-gradient(circle at 61% 44%, rgba(255,255,255,0.75) 0 1px, transparent 2px),
        radial-gradient(circle at 79% 48%, rgba(120,220,255,0.75) 0 1.5px, transparent 3px);
    animation:
        starsTwinkle 6s ease-in-out infinite alternate,
        starsDrift 18s linear infinite;
}


/* Glow ลอย ๆ ด้านหลัง */

.bg-glow {
    z-index: 0;
    background:
        radial-gradient(circle at 20% 18%, rgba(41, 211, 255, 0.14), transparent 22%),
        radial-gradient(circle at 80% 22%, rgba(255, 62, 165, 0.14), transparent 24%),
        radial-gradient(circle at 50% 70%, rgba(140, 82, 255, 0.12), transparent 28%);
    animation: glowPulse 8s ease-in-out infinite;
}


/* scanline ขยับช้า ๆ */

.bg-scanlines {
    z-index: 1;
    opacity: 0.14;
    background:
        repeating-linear-gradient(
            to bottom,
            rgba(255,255,255,0.12) 0px,
            rgba(255,255,255,0.12) 1px,
            transparent 1px,
            transparent 4px
        );
    animation: scanMove 10s linear infinite;
}


/* =========================================
   ANIMATIONS
========================================= */

@keyframes starsTwinkle {
    0% {
        opacity: 0.45;
        filter: brightness(0.9);
    }
    50% {
        opacity: 0.9;
        filter: brightness(1.1);
    }
    100% {
        opacity: 0.6;
        filter: brightness(1);
    }
}

@keyframes starsDrift {
    0% {
        transform: translateY(0px) scale(1.02);
    }
    50% {
        transform: translateY(6px) scale(1.025);
    }
    100% {
        transform: translateY(0px) scale(1.02);
    }
}

@keyframes glowPulse {
    0% {
        opacity: 0.7;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.03);
    }
    100% {
        opacity: 0.75;
        transform: scale(1);
    }
}

@keyframes scanMove {
    0% {
        transform: translateY(0px);
    }
    100% {
        transform: translateY(16px);
    }
}


/* =========================================
   GAME DETAIL PAGE
========================================= */

.game-page {
    max-width: 1100px;
    margin: auto;
    padding: 25px 20px 70px;
}

.back-link {
    display: inline-block;
    margin-bottom: 22px;

    color: var(--cyan);
    text-decoration: none;

    font-family:
        "Courier New",
        monospace;

    font-size: 14px;
}

.back-link:hover {
    color: white;
    text-shadow:
        0 0 8px rgba(109, 247, 255, 0.7);
}


/* HERO */

.game-hero {
    display: grid;
    grid-template-columns: 1.25fr 1fr;

    background:
        linear-gradient(
            135deg,
            rgba(34, 17, 65, 0.96),
            rgba(19, 11, 42, 0.94)
        );

    border:
        1px solid rgba(255, 79, 216, 0.35);

    box-shadow:
        0 0 25px rgba(255, 62, 165, 0.16),
        0 0 0 1px rgba(41, 211, 255, 0.08) inset;

    overflow: hidden;

    margin-bottom: 30px;
}


.game-hero-image {
    position: relative;
    min-height: 360px;

    background: #120922;
}


.game-hero-image img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;

    filter:
        contrast(1.05)
        saturate(1.06);

    transition:
        transform 0.4s ease,
        filter 0.4s ease;
}


.game-hero:hover .game-hero-image img {
    transform: scale(1.025);

    filter:
        contrast(1.08)
        saturate(1.12)
        brightness(1.03);
}


.game-hero-info {
    padding: 38px 32px;

    display: flex;
    flex-direction: column;
    justify-content: center;
}


.game-small-title {
    margin-bottom: 8px;

    color: var(--hotpink);

    font-family:
        "Courier New",
        monospace;

    font-size: 12px;
    font-weight: bold;

    letter-spacing: 2px;
}


.game-hero-info h1 {
    margin-bottom: 8px;

    color: #fff4fb;

    font-family:
        "Courier New",
        monospace;

    font-size: 48px;

    text-shadow:
        3px 3px 0 rgba(255, 62, 165, 0.28),
        0 0 15px rgba(41, 211, 255, 0.16);
}


.game-subtitle {
    margin-bottom: 27px;

    color: #e7c9ee;

    font-size: 17px;

    line-height: 1.7;
}


/* DETAILS */

.game-details {
    margin-bottom: 28px;

    border-top:
        1px solid rgba(255,255,255,0.08);
}


.detail-row {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 20px;

    padding: 11px 0;

    border-bottom:
        1px solid rgba(255,255,255,0.08);

    color: #d3b8dd;
}


.detail-row span {
    font-size: 14px;
}


.detail-row strong {
    color: #fff2c2;

    font-family:
        "Courier New",
        monospace;

    font-size: 13px;
}


/* DOWNLOAD BUTTON */

.download-button {
    display: inline-block;

    align-self: flex-start;

    padding: 14px 21px;

    background:
        linear-gradient(
            90deg,
            var(--pink),
            #ff765f
        );

    color: white;

    border:
        1px solid rgba(255, 220, 120, 0.75);

    box-shadow:
        0 0 15px rgba(255, 62, 165, 0.3);

    font-family:
        "Courier New",
        monospace;

    font-size: 14px;
    font-weight: bold;

    text-decoration: none;

    transition:
        transform 0.18s ease,
        box-shadow 0.18s ease,
        filter 0.18s ease;
}


.download-button:hover {
    transform: translateY(-2px) scale(1.02);

    filter: brightness(1.08);

    box-shadow:
        0 0 20px rgba(255, 62, 165, 0.5),
        0 0 35px rgba(255, 155, 84, 0.18);
}


.download-button:active {
    transform: scale(0.98);
}


/* CONTENT PANELS */

.content-panel {
    margin-top: 25px;

    padding: 27px;

    background:
        rgba(27, 14, 55, 0.9);

    border:
        1px solid rgba(140, 82, 255, 0.28);

    box-shadow:
        0 0 20px rgba(140, 82, 255, 0.1),
        0 0 0 1px rgba(41, 211, 255, 0.06) inset;

    backdrop-filter: blur(5px);
}


.content-panel h2 {
    margin-bottom: 18px;

    padding-bottom: 11px;

    color: #fff1fb;

    border-bottom:
        1px solid rgba(255, 216, 107, 0.22);

    font-family:
        "Courier New",
        monospace;

    font-size: 21px;

    text-shadow:
        0 0 8px rgba(255, 79, 216, 0.22);
}


.content-panel p {
    margin-bottom: 10px;

    color: #e1c9e9;

    font-size: 15px;

    line-height: 1.9;
}


/* FEATURES */

.feature-list {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 12px;
}


.feature-item {
    display: flex;
    align-items: center;

    gap: 10px;

    padding: 12px 14px;

    background:
        rgba(255, 255, 255, 0.035);

    border:
        1px solid rgba(41, 211, 255, 0.13);

    color: #e6d9ef;
}


.feature-icon {
    color: #7affd7;

    font-family:
        "Courier New",
        monospace;

    font-weight: bold;
}


/* INSTALL */

.install-list {
    padding-left: 25px;

    color: #e1c9e9;
}


.install-list li {
    padding-left: 6px;

    margin-bottom: 12px;

    line-height: 1.7;
}


.install-list li::marker {
    color: var(--hotpink);

    font-family:
        "Courier New",
        monospace;

    font-weight: bold;
}


/* SCREENSHOTS */

.screenshot-grid {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 15px;
}


.screenshot-placeholder {
    aspect-ratio: 16 / 9;

    display: flex;
    align-items: center;
    justify-content: center;

    background:
        linear-gradient(
            135deg,
            rgba(255, 62, 165, 0.16),
            rgba(140, 82, 255, 0.18),
            rgba(41, 211, 255, 0.13)
        );

    border:
        1px solid rgba(255, 79, 216, 0.22);

    color: #ceaad9;

    font-family:
        "Courier New",
        monospace;

    font-size: 12px;

    letter-spacing: 1px;

    transition:
        transform 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}


.screenshot-placeholder:hover {
    transform:
        translateY(-3px);

    border-color:
        rgba(109, 247, 255, 0.45);

    box-shadow:
        0 0 18px rgba(41, 211, 255, 0.12);
}


/* =========================================
   GAME PAGE MOBILE
========================================= */

@media (max-width: 800px) {

    .game-hero {
        grid-template-columns: 1fr;
    }


    .game-hero-image {
        min-height: 250px;
    }


    .game-hero-info {
        padding: 27px 22px;
    }


    .game-hero-info h1 {
        font-size: 36px;
    }


    .feature-list {
        grid-template-columns: 1fr;
    }


    .screenshot-grid {
        grid-template-columns: 1fr;
    }

}

.screenshot-item {
    aspect-ratio: 16 / 9;
    overflow: hidden;

    border:
        1px solid rgba(255, 79, 216, 0.22);

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.screenshot-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.screenshot-item {
    width: 100%;
    overflow: hidden;
}

.screenshot-item img {
    width: 100%;
    max-width: 100%;
    height: auto;
    display: block;
}

@media (max-width: 800px) {
    .screenshot-grid {
        grid-template-columns: 1fr;
    }
}

/* =========================================
   SCREENSHOT LIGHTBOX
========================================= */

.zoomable-image {
    cursor: zoom-in;
}


/* กล่องเต็มหน้าจอ */

.lightbox {
    position: fixed;

    inset: 0;

    z-index: 10000;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 30px;

    background:
        rgba(8, 3, 20, 0.94);

    backdrop-filter:
        blur(8px);

    opacity: 0;

    visibility: hidden;

    transition:
        opacity 0.25s ease,
        visibility 0.25s ease;
}


/* ตอนเปิด */

.lightbox.active {
    opacity: 1;
    visibility: visible;
}


/* ภาพใหญ่ */

.lightbox-image {
    display: block;

    max-width: 92vw;
    max-height: 88vh;

    width: auto;
    height: auto;

    object-fit: contain;

    border:
        1px solid rgba(255, 79, 216, 0.6);

    box-shadow:
        0 0 25px rgba(255, 62, 165, 0.35),
        0 0 50px rgba(41, 211, 255, 0.18);

    transform:
        scale(0.92);

    transition:
        transform 0.25s ease;
}


.lightbox.active .lightbox-image {
    transform:
        scale(1);
}


/* ปุ่ม X */

.lightbox-close {
    position: absolute;

    top: 20px;
    right: 25px;

    width: 48px;
    height: 48px;

    border:
        1px solid rgba(255, 255, 255, 0.4);

    background:
        rgba(20, 8, 40, 0.8);

    color:
        white;

    font-size:
        34px;

    line-height:
        40px;

    cursor:
        pointer;

    transition:
        background 0.2s ease,
        color 0.2s ease,
        transform 0.2s ease;
}


.lightbox-close:hover {
    background:
        #ff3ea5;

    color:
        white;

    transform:
        scale(1.08);
}

/* หน้าแรกแสดงเฉพาะ 6 เกมแรก */
.home-page .game-grid .game-card:nth-child(n+7) {
    display: none;
}

/* =========================================
   FACEBOOK BUTTON
========================================= */

.facebook-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-width: 210px;
    padding: 14px 24px;

    color: #ffffff;
    text-decoration: none;

    font-family: "Courier New", monospace;
    font-size: 15px;
    font-weight: bold;
    letter-spacing: 1px;

    background:
        linear-gradient(
            90deg,
            #2457d6,
            #3478f6
        );

    border: 1px solid rgba(109, 247, 255, 0.55);

    box-shadow:
        0 0 12px rgba(52, 120, 246, 0.35),
        0 0 24px rgba(255, 62, 165, 0.12);

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        filter 0.2s ease;
}

.facebook-button:hover {
    transform:
        translateY(-3px)
        scale(1.03);

    filter:
        brightness(1.1);

    box-shadow:
        0 0 18px rgba(52, 120, 246, 0.55),
        0 0 30px rgba(41, 211, 255, 0.18);
}

.facebook-button:active {
    transform: scale(0.98);
}

.site-header {
    position: relative;
}

.top-facebook {
    position: absolute;

    top: 20px;
    right: 24px;

    z-index: 20;
}

@media (max-width: 650px) {

    .top-facebook {
        position: static;
        margin: 0 auto 20px;
        display: flex;
        width: fit-content;
    }

}
