
        /* =========================================================
           สไตล์พื้นฐานของหน้าเว็บ (เข้าชุดกับหน้า article-simple.html)
           ========================================================= */
        *, *::before, *::after {
            box-sizing: border-box;
        }

        html, body {
            width: 100%;
            min-height: 100vh;
            margin: 0;
            background-color: #FAF7F2;
            color: #1E201E;
            font-family: 'Inter', 'Noto Sans Thai', -apple-system, BlinkMacSystemFont, sans-serif;
            -webkit-font-smoothing: antialiased;
            -moz-osx-font-smoothing: grayscale;
            overflow-x: hidden;
        }

        /* =========================================================
           พื้นหลังแสงเหนือสีเขียวเรืองแสง (#39FF14) + ขอบล่างไล่สีมืดบางๆ
           ========================================================= */
        .aurora-stage {
            position: fixed;
            left: 0;
            right: 0;
            bottom: 0;
            height: 62vh;
            z-index: 0;
            pointer-events: none;
            overflow: hidden;
            user-select: none;
            -webkit-user-select: none;
        }

        /* ขอบล่างไล่สีมืดบางๆ ให้แสงเหนือดูมีมิติ */
        .aurora-dark-rim {
            position: absolute;
            left: 0;
            right: 0;
            bottom: 0;
            height: 22vh;
            background: linear-gradient(
                to top,
                rgba(16, 20, 18, 0.32) 0%,
                rgba(16, 20, 18, 0.14) 38%,
                rgba(16, 20, 18, 0.04) 72%,
                rgba(16, 20, 18, 0) 100%
            );
            z-index: 1;
        }

        /* ไล่ระดับกลืนขึ้นไปกับพื้นหลังสีครีม #FAF7F2 */
        .aurora-fade-mask {
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 24vh;
            background: linear-gradient(
                to bottom,
                #FAF7F2 0%,
                rgba(250, 247, 242, 0.88) 38%,
                rgba(250, 247, 242, 0) 100%
            );
            z-index: 3;
        }

        .aurora-blur-layer {
            position: relative;
            width: 100%;
            height: 100%;
            z-index: 2;
            filter: blur(85px);
            -webkit-filter: blur(85px);
            opacity: 0.82;
            will-change: transform;
        }

        .aurora-orb {
            position: absolute;
            will-change: transform, border-radius;
        }

        .orb-1 {
            bottom: -14vh;
            left: -4vw;
            width: 58vw;
            height: 46vh;
            background: radial-gradient(
                circle at 50% 60%,
                rgba(57, 255, 20, 0.75) 0%,
                rgba(57, 255, 20, 0.34) 52%,
                rgba(250, 247, 242, 0) 82%
            );
            animation: driftA 4.5s ease-in-out infinite;
        }

        .orb-2 {
            bottom: -16vh;
            left: 22vw;
            width: 56vw;
            height: 48vh;
            background: radial-gradient(
                circle at 48% 65%,
                rgba(57, 255, 20, 0.68) 0%,
                rgba(56, 189, 248, 0.38) 52%,
                rgba(250, 247, 242, 0) 82%
            );
            animation: driftB 5.5s ease-in-out infinite;
        }

        .orb-3 {
            bottom: -14vh;
            right: -4vw;
            width: 50vw;
            height: 44vh;
            background: radial-gradient(
                circle at 50% 60%,
                rgba(167, 139, 250, 0.55) 0%,
                rgba(34, 211, 238, 0.30) 54%,
                rgba(250, 247, 242, 0) 82%
            );
            animation: driftC 4.2s ease-in-out infinite;
        }

        .orb-4 {
            bottom: -18vh;
            left: 8vw;
            width: 84vw;
            height: 34vh;
            background: radial-gradient(
                ellipse at 50% 75%,
                rgba(57, 255, 20, 0.72) 0%,
                rgba(192, 132, 252, 0.24) 62%,
                rgba(250, 247, 242, 0) 86%
            );
            animation: driftA 6s ease-in-out infinite reverse;
        }

        @keyframes driftA {
            0%, 100% {
                transform: translate3d(-18%, 10%, 0) scale(1, 0.94) rotate(-3deg);
                border-radius: 45% 55% 62% 38% / 55% 45% 55% 45%;
            }
            33% {
                transform: translate3d(16%, -10%, 0) scale(1.18, 1.1) rotate(8deg);
                border-radius: 65% 35% 44% 56% / 42% 60% 40% 58%;
            }
            66% {
                transform: translate3d(-8%, 6%, 0) scale(0.92, 1.14) rotate(-7deg);
                border-radius: 38% 62% 54% 46% / 60% 40% 56% 44%;
            }
        }

        @keyframes driftB {
            0%, 100% {
                transform: translate3d(18%, 10%, 0) scale(1.08, 0.9) rotate(2deg);
                border-radius: 56% 44% 40% 60% / 48% 54% 46% 52%;
            }
            40% {
                transform: translate3d(-18%, -11%, 0) scale(0.92, 1.16) rotate(-9deg);
                border-radius: 38% 62% 58% 42% / 62% 38% 52% 48%;
            }
            75% {
                transform: translate3d(12%, 4%, 0) scale(1.14, 0.95) rotate(6deg);
                border-radius: 60% 40% 46% 54% / 44% 56% 48% 52%;
            }
        }

        @keyframes driftC {
            0%, 100% {
                transform: translate3d(12%, 12%, 0) scale(0.96, 1.04) rotate(0deg);
                border-radius: 50% 50% 45% 55% / 52% 48% 55% 45%;
            }
            50% {
                transform: translate3d(-18%, -10%, 0) scale(1.2, 0.9) rotate(-6deg);
                border-radius: 64% 36% 60% 40% / 40% 60% 45% 55%;
            }
        }

        @keyframes neonPulse {
            0%, 100% { opacity: 1; transform: scale(1); }
            50% { opacity: 0.65; transform: scale(0.88); }
        }

        .neon-accent-node {
            transform-origin: center;
            animation: neonPulse 2.8s ease-in-out infinite;
        }

        @media (max-width: 640px) {
            .orb-1 { width: 82vw; left: -12vw; }
            .orb-2 { width: 85vw; left: 10vw; }
            .orb-3 { width: 78vw; right: -12vw; }
            .orb-4 { width: 95vw; left: 2vw; }
        }

/* article paper */
.article-paper{background:rgba(255,255,255,.78);backdrop-filter:blur(22px);-webkit-backdrop-filter:blur(22px);border:1px solid #E5DFD5;box-shadow:0 10px 36px rgba(30,32,30,.04)}

.main {
    display: flex;
    flex-direction: column;
}

.main > .content {
    flex: 1 0 auto;
}

.auth-wrap {
    grid-template-rows: minmax(0, 1fr) auto;
}

.auth-wrap .site-footer {
    align-self: end;
}

.site-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 7px 18px;
    width: 100%;
    margin: 24px auto 0;
    padding: 13px 12px 18px;
    border-top: 1px solid rgba(92, 112, 96, .13);
    color: #89938a;
    font-size: 11px;
    font-weight: 300;
    line-height: 1.5;
    text-align: center;
}

.site-footer-label {
    color: #9aa39b;
}

.site-footer a,
.site-footer-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    text-decoration: none;
    cursor: pointer;
    transition: color .16s ease;
}

.site-footer a:hover,
.site-footer a:focus-visible,
.site-footer-btn:hover,
.site-footer-btn:focus-visible {
    color: #14301f;
}

.site-footer a:focus-visible,
.site-footer-btn:focus-visible {
    outline: 2px solid #477c58;
    outline-offset: 3px;
    border-radius: 3px;
}

.site-footer-icon {
    width: 13px;
    height: 13px;
    flex: 0 0 13px;
}

.site-footer-facebook {
    fill: currentColor;
}

@media (max-width: 420px) {
    .site-footer {
        gap: 7px 13px;
        font-size: 10px;
    }
}

/* ---------------------------------------------------------------------------
   FAB — โลโก้กลมลอยไปเว็บเกม makhosthai.com
   ลอยมุมขวาล่าง ไม่บัง footer, หลบ safe-area ของ iPhone
   --------------------------------------------------------------------------- */
.mkh-fab {
    position: fixed;
    right: 16px;
    bottom: calc(16px + env(safe-area-inset-bottom, 0px));
    z-index: 40;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: #fffdf7;
    border: 1px solid rgba(36, 91, 69, .12);
    box-shadow:
        0 2px 6px rgba(20, 48, 31, .10),
        0 8px 22px -6px rgba(20, 48, 31, .22);
    -webkit-tap-highlight-color: transparent;
    transition: transform .2s cubic-bezier(.34, 1.56, .64, 1),
                box-shadow .2s ease;
}

.mkh-fab-img {
    width: 38px;
    height: 38px;
    object-fit: contain;
    pointer-events: none;
}

.mkh-fab:hover,
.mkh-fab:focus-visible {
    transform: translateY(-3px) scale(1.06);
    box-shadow:
        0 4px 10px rgba(20, 48, 31, .14),
        0 14px 30px -8px rgba(20, 48, 31, .30);
}

.mkh-fab:active {
    transform: translateY(-1px) scale(.97);
}

.mkh-fab:focus-visible {
    outline: 2px solid #245b45;
    outline-offset: 3px;
}

@media (max-width: 420px) {
    .mkh-fab {
        right: 12px;
        bottom: calc(12px + env(safe-area-inset-bottom, 0px));
        width: 48px;
        height: 48px;
    }

    .mkh-fab-img {
        width: 33px;
        height: 33px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .mkh-fab {
        transition: none;
    }
}

        /* =========================================================
           ลิงก์ในเนื้อหาบทความ: เขียวเข้ม ตัวหนา / hover เขียวเรืองแสง
           ========================================================= */
        .prose-wiki-wiki a,
        .ql-editor a {
            color: #245B45;
            font-weight: 600;
            text-decoration: underline;
            text-decoration-thickness: 1.5px;
            text-underline-offset: 2.5px;
            text-decoration-color: rgba(36, 91, 69, .35);
            transition: color .15s ease, text-decoration-color .15s ease,
                        background-color .15s ease, box-shadow .15s ease;
        }
        .prose-wiki-wiki a:hover,
        .ql-editor a:hover {
            color: #39FF14;
            text-decoration-color: rgba(57, 255, 20, .55);
            background-color: rgba(57, 255, 20, .10);
            border-radius: 3px;
            box-shadow: 0 0 0 3px rgba(57, 255, 20, .10);
        }
        .prose-wiki-wiki a:focus-visible,
        .ql-editor a:focus-visible {
            outline: 2px solid #39FF14;
            outline-offset: 2px;
        }

        /* =========================================================
           หัวข้อในเนื้อหาบทความ: ให้เห็นชัดทั้งหน้าเขียนและหน้าอ่าน
           ========================================================= */
        .prose-wiki-wiki h1,
        .ql-editor h1 {
            font-size: 2em;
            font-weight: 800;
            line-height: 1.35;
            color: #16382B;
            margin: 1.6em 0 .6em;
            letter-spacing: -0.01em;
        }
        .prose-wiki-wiki h2,
        .ql-editor h2 {
            font-size: 1.55em;
            font-weight: 700;
            line-height: 1.4;
            color: #245B45;
            margin: 1.5em 0 .55em;
            padding-left: 14px;
            border-left: 4px solid #C8F169;
            letter-spacing: -0.005em;
        }
        .prose-wiki-wiki h3,
        .ql-editor h3 {
            font-size: 1.22em;
            font-weight: 700;
            line-height: 1.5;
            color: #245B45;
            margin: 1.3em 0 .45em;
        }
        .prose-wiki-wiki > :first-child,
        .ql-editor > :first-child { margin-top: 0 !important; }
        .prose-wiki-wiki p,
        .ql-editor p { margin: 0 0 1em; }
        .prose-wiki-wiki ul,
        .prose-wiki-wiki ol,
        .ql-editor ul,
        .ql-editor ol { margin: 0 0 1em; padding-left: 1.5em; }
        .prose-wiki-wiki ul,
        .ql-editor ul { list-style: disc; }
        .prose-wiki-wiki ol,
        .ql-editor ol { list-style: decimal; }
        /* Quill เก็บ bullet มาเป็น <ol><li data-list="bullet"> ไม่ใช่ <ul> */
        .prose-wiki-wiki ol:has(> li[data-list="bullet"]),
        .ql-editor ol:has(> li[data-list="bullet"]) { list-style: none; }
        .prose-wiki-wiki li[data-list="bullet"],
        .ql-editor li[data-list="bullet"] { list-style: none; position: relative; padding-left: 1.15em; }
        .prose-wiki-wiki li[data-list="bullet"]::before,
        .ql-editor li[data-list="bullet"]::before {
            content: "•";
            position: absolute;
            left: 0;
            color: #245B45;
            font-weight: 700;
        }
        .prose-wiki-wiki li,
        .ql-editor li { margin: .35em 0; }
        .prose-wiki-wiki blockquote,
        .ql-editor blockquote {
            border-left: 3px solid #C8F169;
            padding: 4px 0 4px 14px;
            margin: 1.2em 0;
            color: #4B4F4B;
            font-style: italic;
        }
        .prose-wiki-wiki strong, .ql-editor strong { font-weight: 700; }
        .prose-wiki-wiki img { border-radius: 12px; max-width: 100%; height: auto;
            display: block; margin: 1.1em auto; box-shadow: 0 2px 14px rgba(24,28,24,.10); }
        .ql-editor img { display: block; max-width: 100%; height: auto; margin: .8em auto; border-radius: 10px; }

        /* ---------- Nav bar: พื้นหลังครีมทึบ (ไม่โปร่งใส) ---------- */
        /* ความสูง nav bar — ใช้ร่วมกันระหว่าง nav / crumb / main */
        :root { --mkh-nav-h: 66px; }
        @media (max-width: 640px) { :root { --mkh-nav-h: 66px; } }

        /* crumb bar: พื้นครีมทึบ 100% (ห้ามโปร่ง จะทับซ้อนเห็นเนื้อหาข้างหลัง) */
        .mkh-crumbbar {
            background: #FAF7F2;
            box-shadow: 0 6px 14px -10px rgba(36, 91, 69, .35);
        }

        .mkh-navbar::before {
            content: "";
            position: absolute;
            inset: 0;
            background: #FAF7F2;
            border-bottom: 1px solid #E5DFD5;
            box-shadow: 0 1px 0 rgba(36, 91, 69, .04);
            z-index: -1;
        }
        /* ---- ระยะจริงของ nav / crumb bar ----
           nav    : 66px (เดสก์ท็อป) / 58px (มือถือ)
           crumb  : 47px
           main ต้องเผื่อ = nav + crumb + 18px หายใจ
           (เดิมใช้ --mkh-nav-h = 78/68 ซึ่งสูงเกินจริง -> เนื้อหาห่าง 88-135px) */
        :root { --mkh-crumb-h: 47px; }
        /* crumb bar อยู่ใน flow (sticky) — main จึงเผื่อแค่ nav bar เท่านั้น
           ห้ามบวก crumb ซ้ำ ไม่งั้นช่องว่างระหว่าง crumb กับการ์ดจะโตเป็น 60-80px */
        main { padding-top: calc(var(--mkh-nav-h) + 8px) !important; }
        
