:root {
    --temp-888-green: #00c265;
    --temp-888-gold: #c9a36a;
    --temp-888-header: #1a2230;
    --temp-888-nav-border: #4a5568;
    --temp-888-text: #1c1c1c;
    --temp-888-muted: #6f6f6f;
    --temp-888-bg: #f4f4f5;
    --temp-888-card: #e8e4dc;
    --temp-888-block: #ffffff;
    --temp-888-game-panel: #ececec;
    --temp-888-arrow: #d9d9d9;
    --temp-888-radius-lg: 16px;
    --temp-888-radius: 8px;
    --temp-888-radius-sm: 6px;
    --temp-888-max: 1420px;
    --temp-888-gap: 20px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: "Montserrat", "Noto Sans Thai", sans-serif;
    background: var(--temp-888-bg);
    color: var(--temp-888-text);
    font-size: 16px;
    line-height: 1.45;
    overflow-x: hidden;
}

img { max-width: 100%; height: auto; vertical-align: middle; }
a { color: var(--temp-888-green); text-decoration: none; transition: .25s ease; }
a:hover { color: #009e50; }

h1, h2, h3, h4, p, ul, ol { margin-top: 0; }
h1, h2, h3, h4 { font-weight: 700; line-height: 1.25; }
h1 { font-size: 34px; margin-bottom: 0; }
h2 { font-size: 28px; margin-bottom: 16px; }
h3 { font-size: 22px; margin-bottom: 12px; }

.temp-888-container {
    max-width: var(--temp-888-max);
    width: 100%;
    margin: 0 auto;
    padding: 0 14px;
}

.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(1px, 1px, 1px, 1px);
}

.temp-888-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 22px;
    font-size: 13px;
    font-weight: 700;
    line-height: 18px;
    text-transform: uppercase;
    border: 0;
    border-radius: var(--temp-888-radius);
    cursor: pointer;
    font-family: inherit;
    white-space: nowrap;
}

.temp-888-btn-green { background: var(--temp-888-green); color: #fff; }
.temp-888-btn-green:hover { color: #fff; filter: brightness(1.05); }
.temp-888-btn-gold { background: var(--temp-888-gold); color: #1a1a1a; }
.temp-888-btn-gold:hover { color: #1a1a1a; filter: brightness(1.06); }
.temp-888-btn-blue { background: var(--temp-888-gold); color: #1a1a1a; }
.temp-888-btn-white {
    background: #fff;
    color: #111;
    text-transform: none;
    font-weight: 400;
    font-size: 12px;
    padding: 6px 18px;
    text-align: left;
}
.temp-888-btn-white strong { display: block; font-weight: 700; }

.temp-888-site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--temp-888-header);
    color: #fff;
    padding: 14px 14px 40px;
    border-bottom: 0;
}

.temp-888-site-header.temp-888-shadow { box-shadow: 0 8px 20px rgba(0,0,0,.18); }
.temp-888-head-container {
    max-width: 1300px;
    width: 100%;
    margin: 0 auto;
}

.temp-888-line-1 {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    position: relative;
}

.temp-888-line-1::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -14px;
    height: 2px;
    background: var(--temp-888-green);
    pointer-events: none;
}

.temp-888-first-block {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex: 1;
    min-width: 0;
}

.temp-888-nav-block {
    display: flex;
    align-items: center;
    gap: 20px;
    width: 100%;
}

.temp-888-logo {
    flex: 0 0 auto;
}

.temp-888-logo img,
.custom-logo {
    max-height: 50px;
    max-width: 175px;
    width: auto;
}

.temp-888-desktop-nav {
    width: 100%;
    max-width: 70%;
}

.temp-888-nav .menu,
.temp-888-desktop-nav .menu {
    display: flex;
    flex-direction: row;
    gap: 10px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.temp-888-nav .menu a,
.temp-888-desktop-nav .menu a,
.temp-888-mobile-menu .menu a {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 12px;
    font-size: 14px;
    font-weight: 600;
    line-height: 18px;
    text-transform: uppercase;
    color: #fff;
    border: 2px solid var(--temp-888-nav-border);
    border-radius: 8px;
}

.temp-888-nav .menu a:hover,
.temp-888-desktop-nav .menu a:hover,
.temp-888-mobile-menu .menu a:hover {
    border-color: var(--temp-888-green);
    color: #fff;
}

.temp-888-header-buttons { display: flex; gap: 10px; }
.temp-888-header-buttons .temp-888-btn {
    min-width: 160px;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 600;
}

.temp-888-menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: var(--temp-888-radius);
    background: #3a4458;
    color: #fff;
    cursor: pointer;
}

.temp-888-mobile-menu {
    display: none;
    flex-direction: column;
    gap: var(--temp-888-gap);
    padding-top: 16px;
}

.temp-888-mobile-menu .menu {
    display: flex;
    flex-direction: column;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.temp-888-hero {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 48px 14px 56px;
    background: var(--temp-888-header);
    color: #fff;
}

.temp-888-hero .temp-888-background {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 15% 10%, rgba(201,163,106,.12), transparent 36%),
        radial-gradient(circle at 85% 0, rgba(0,194,101,.08), transparent 32%);
}

.temp-888-text-block {
    position: relative;
    z-index: 1;
    max-width: 1140px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
}

.temp-888-top { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.temp-888-hero h1 { color: #fff; font-size: 30px; }
.temp-888-hero p {
    margin: 0;
    max-width: 1100px;
    font-size: 14px;
    line-height: 1.7;
    color: #d8dde8;
    font-weight: 400;
}

.temp-888-top .temp-888-divider {
    width: 88px;
    height: 3px;
    border-radius: 8px;
    background: var(--temp-888-green);
}

.temp-888-hero-banner { width: min(1040px, 100%); }
.temp-888-hero-banner img { width: 100%; border-radius: var(--temp-888-radius-lg); display: block; }

.temp-888-page-content { background: var(--temp-888-bg); padding: 28px 0 60px; }

.temp-888-categories ul {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    list-style: none;
    margin: 0 0 28px;
    padding: 0;
}

.temp-888-cat-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    min-height: 148px;
    padding: 22px 16px;
    text-align: center;
    background: var(--temp-888-card);
    border: 2px solid var(--temp-888-gold);
    border-radius: var(--temp-888-radius-lg);
    color: var(--temp-888-text);
}

.temp-888-cat-card:hover { color: var(--temp-888-text); background: #f3eee4; }
.temp-888-cat-card img { height: 42px; width: auto; }
.temp-888-cat-card .temp-888-name { font-weight: 800; font-size: 16px; text-transform: uppercase; }
.temp-888-cat-card .temp-888-text { font-size: 13px; color: var(--temp-888-muted); }

.temp-888-games-section { margin-bottom: 28px; }
.temp-888-game-block {
    position: relative;
    background: var(--temp-888-game-panel);
    border-radius: var(--temp-888-radius-lg);
    padding: 20px;
}

.temp-888-game-block .temp-888-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.temp-888-game-block .temp-888-head .temp-888-line {
    position: absolute;
    top: 0;
    left: 36px;
    width: 90px;
    height: 4px;
    background: var(--temp-888-gold);
    border-radius: 8px;
}

.temp-888-game-block .temp-888-head .temp-888-title {
    margin: 0;
    border: 0;
    padding: 8px 0 0;
    font-size: 24px;
    color: #111;
}

.temp-888-arrows { display: flex; gap: 8px; }
.temp-888-arrows button {
    width: 32px;
    height: 32px;
    border: 0;
    border-radius: 6px;
    background: var(--temp-888-arrow);
    color: #333;
    cursor: pointer;
}

.temp-888-game-track {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    list-style: none;
    margin: 0;
    padding: 0;
    scrollbar-width: none;
}
.temp-888-game-track::-webkit-scrollbar { display: none; }
.temp-888-game-track li { flex: 0 0 200px; }

.temp-888-game-card {
    position: relative;
    display: block;
    width: 200px;
    height: auto;
    aspect-ratio: 1 / 1;
    border-radius: var(--temp-888-radius);
    overflow: hidden;
    background: #ececec;
}

.temp-888-game-card img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    display: block;
}

.temp-888-hover-bg {
    position: absolute;
    inset: 0;
    display: none;
    place-items: center;
    background: rgba(0,0,0,.55);
}
.temp-888-game-card:hover .temp-888-hover-bg { display: grid; }
.temp-888-circle {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--temp-888-green);
    color: #fff;
}

.temp-888-toc { margin: 0 0 40px; }
.temp-888-toc-box {
    padding: 20px;
    border: 2px solid var(--temp-888-gold);
    border-radius: var(--temp-888-radius-lg);
    background: #fff;
}
.temp-888-toc-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.temp-888-toc-toggle {
    width: 30px;
    height: 30px;
    border: 0;
    border-radius: 6px;
    background: #e5e5e5;
    cursor: pointer;
}
.temp-888-toc-items {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    list-style: none;
    margin: 0;
    padding: 0;
}
.temp-888-toc-items a { display: flex; align-items: flex-start; gap: 8px; color: #222; line-height: 1.4; font-weight: 400; }
.temp-888-toc-items .temp-888-num { color: var(--temp-888-green); font-weight: 700; min-width: 1.4em; }
.temp-888-toc-h1 { grid-column: 1 / -1; }
.temp-888-toc-h3 a { padding-left: 10px; font-size: 14px; }

.temp-888-content-section { margin-bottom: 48px; }
.temp-888-split-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    align-items: center;
    margin-bottom: 24px;
}
.temp-888-split.temp-888-reverse .temp-888-split-grid { direction: rtl; }
.temp-888-split.temp-888-reverse .temp-888-split-grid > * { direction: ltr; }

.temp-888-split-media {
    min-height: 260px;
    border-radius: var(--temp-888-radius-lg);
    display: grid;
    place-items: center;
    color: #fff;
    font-weight: 700;
    text-transform: uppercase;
    overflow: hidden;
}
.temp-888-split-media-photo {
    min-height: 0;
    overflow: visible;
    background: none;
    color: inherit;
    text-transform: none;
}
.temp-888-split-media-photo img {
    width: 100%;
    height: auto;
    max-width: 100%;
    object-fit: contain;
    display: block;
    border-radius: var(--temp-888-radius-lg);
}
#register .temp-888-split-grid {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.2fr);
    align-items: center;
}

.temp-888-check-list,
.temp-888-step-list { list-style: none; padding: 0; }
.temp-888-check-list li,
.temp-888-step-list li { position: relative; padding-left: 34px; margin-bottom: 10px; }
.temp-888-check-list li::before,
.temp-888-step-list li::before {
    position: absolute;
    left: 0;
    top: 0;
    width: 24px;
    height: 24px;
    display: grid;
    place-items: center;
    color: var(--temp-888-green);
    font-weight: 700;
}
.temp-888-check-list li::before { content: "✓"; }
.temp-888-step-list { counter-reset: step; }
.temp-888-step-list li { counter-increment: step; }
.temp-888-step-list li::before { content: counter(step); }

.wp-block-table { overflow: auto; margin-bottom: 20px; }
.wp-block-table table,
.entry-content table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 6px;
}
.wp-block-table th,
.wp-block-table td,
.entry-content th,
.entry-content td {
    padding: 10px 12px;
    text-align: left;
    font-weight: 400;
}
.wp-block-table thead th,
.entry-content thead th { background: var(--temp-888-gold); color: #1a1a1a; }
.wp-block-table thead th:first-child,
.entry-content thead th:first-child { border-radius: 8px 0 0 8px; }
.wp-block-table thead th:last-child,
.entry-content thead th:last-child { border-radius: 0 8px 8px 0; }
.wp-block-table tbody td,
.entry-content tbody td { background: #fff; }
.wp-block-table tbody td:first-child,
.entry-content tbody td:first-child { border-radius: 8px 0 0 8px; }
.wp-block-table tbody td:last-child,
.entry-content tbody td:last-child { border-radius: 0 8px 8px 0; }

.temp-888-two-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }

.temp-888-faq ul { list-style: none; margin: 0; padding: 0; }
.temp-888-faq li { background: #fff; border-radius: 8px; margin-bottom: 8px; overflow: hidden; }
.temp-888-faq-q {
    width: 100%;
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 16px;
    background: transparent;
    border: 0;
    color: #111;
    font: inherit;
    font-weight: 700;
    text-align: left;
    cursor: pointer;
}
.temp-888-faq-a { display: none; padding: 0 16px 16px; color: #555; }
.temp-888-faq li.temp-888-active .temp-888-faq-a { display: block; }
.temp-888-faq li.temp-888-active .temp-888-faq-q i { transform: rotate(180deg); }

.temp-888-download-buttons { display: flex; flex-wrap: wrap; gap: 10px; }
.temp-888-download-buttons .temp-888-btn { flex: 1; min-width: 140px; }
.temp-888-footer-col .temp-888-download-buttons { flex-direction: column; }
.temp-888-footer-col .temp-888-download-buttons .temp-888-btn {
    flex: none;
    width: 100%;
    justify-content: flex-start;
    border-radius: 12px;
}

.temp-888-site-footer {
    position: relative;
    background: linear-gradient(180deg, #151c28 0%, var(--temp-888-header) 40%);
    color: #fff;
    padding: 48px 0 0;
    margin-top: 24px;
}
.temp-888-site-footer::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--temp-888-gold), var(--temp-888-green), var(--temp-888-gold), transparent);
}
.temp-888-footer-grid {
    display: grid;
    grid-template-columns: 1.3fr 0.9fr 0.9fr 1.1fr;
    gap: 32px 28px;
    padding-bottom: 36px;
}
.temp-888-footer-heading {
    margin: 0 0 14px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--temp-888-gold);
}
.temp-888-footer-tagline {
    margin: 14px 0 18px;
    max-width: 280px;
    font-size: 13px;
    line-height: 1.55;
    color: #9aa3b8;
}
.temp-888-footer-brand .custom-logo { height: 42px; width: auto; }
.temp-888-footer-nav .menu,
.temp-888-socials,
.temp-888-payment {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    list-style: none;
    margin: 0;
    padding: 0;
}
.temp-888-footer-nav .menu {
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
}
.temp-888-footer-nav a { color: #d5dbe8; font-size: 14px; }
.temp-888-footer-nav a:hover { color: var(--temp-888-gold); }
.temp-888-socials { gap: 8px; }
.temp-888-socials li a {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid #3a4458;
    border-radius: 50%;
    color: #fff;
}
.temp-888-socials li a:hover { background: var(--temp-888-gold); border-color: var(--temp-888-gold); color: #111; }
.temp-888-payment { gap: 8px; }
.temp-888-pay-chip, .temp-888-badge {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 4px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid #3d4860;
    font-size: 12px;
    font-weight: 700;
    color: #e8ecf4;
}
.temp-888-badge { border-color: #4a5568; }
.temp-888-footer-bottom-bar {
    border-top: 1px solid #2c3548;
    padding: 18px 0 28px;
}
.temp-888-footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 10px;
}
.temp-888-footer-bottom .temp-888-text { max-width: 860px; font-size: 12px; line-height: 1.55; color: #8b93a7; }
.temp-888-footer-bottom .temp-888-text p { margin: 0; }
.temp-888-copyright { font-size: 12px; color: #6e778c; }
.temp-888-icons { display: flex; gap: 8px; flex-shrink: 0; }

.temp-888-arrow-up {
    position: fixed;
    right: 5%;
    bottom: -20%;
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    background: #3a4458;
    color: #fff;
    border-radius: 8px;
    cursor: pointer;
    z-index: 100;
    transition: bottom .3s ease;
}
.temp-888-arrow-up.temp-888-active { bottom: 5%; }

.temp-888-mobile-panel {
    display: none;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 90;
    background: var(--temp-888-header);
    border-top: 2px solid var(--temp-888-gold);
    padding: 14px;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    color: #fff;
}
.temp-888-mobile-panel .temp-888-main-text { display: flex; gap: 10px; align-items: center; }
.temp-888-mobile-panel .temp-888-icon {
    width: 50px;
    height: 50px;
    display: grid;
    place-items: center;
    background: var(--temp-888-green);
    border-radius: 8px;
}
.temp-888-bonus-title { font-weight: 700; text-transform: uppercase; }
.temp-888-bonus-text { font-size: 10px; }

.temp-888-breadcrumbs { font-size: 14px; color: #b7c0d3; }
.temp-888-breadcrumbs a { color: var(--temp-888-gold); }
.temp-888-inner-page, .entry-content { padding-bottom: 40px; }
.entry-content p, .entry-content ul, .entry-content ol { margin-bottom: 18px; }

.temp-888-contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 40px;
}
.temp-888-contact-card, .temp-888-contact-form {
    background: #fff;
    border-radius: 16px;
    padding: 24px;
}
.temp-888-contact-form { display: flex; flex-direction: column; gap: 14px; }
.temp-888-contact-form label, .search-form label { display: flex; flex-direction: column; gap: 6px; }
.temp-888-contact-form input,
.temp-888-contact-form textarea,
.search-form input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #fff;
    color: #111;
    font: inherit;
}
.search-form { display: flex; gap: 10px; width: min(520px, 100%); }
.search-form label { flex: 1; }
.temp-888-form-ok { color: var(--temp-888-green); }
.temp-888-form-error { color: #c62828; }

.temp-888-error-page {
    min-height: 60vh;
    display: grid;
    place-items: center;
    padding: 60px 14px;
    text-align: center;
}
.temp-888-error-type { font-size: 160px; font-weight: 700; line-height: 1; color: var(--temp-888-gold); }
.temp-888-error-container { display: flex; flex-direction: column; align-items: center; gap: 20px; }

::-webkit-scrollbar { width: 4px; height: 5px; }
::-webkit-scrollbar-thumb { background: var(--temp-888-gold); }

@media (max-width: 1199px) {
    h1 { font-size: 24px; }
    h2 { font-size: 22px; }
    .temp-888-hero h1 { font-size: 22px; }
    .temp-888-desktop-nav { display: none; }
    .temp-888-menu-toggle { display: grid; place-items: center; }
    .temp-888-line-1 { flex-direction: column; align-items: stretch; }
    .temp-888-first-block { justify-content: space-between; }
    .temp-888-mobile-menu.temp-888-is-open { display: flex; }
    .temp-888-categories ul,
    .temp-888-toc-items,
    .temp-888-split-grid,
    #register .temp-888-split-grid,
    .temp-888-two-cols,
    .temp-888-contact-grid {
        grid-template-columns: 1fr;
    }
    .temp-888-footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    .temp-888-footer-bottom {
        flex-direction: column;
        align-items: flex-start;
    }
    .temp-888-mobile-panel { display: flex; }
    .temp-888-header-buttons { width: 100%; }
    .temp-888-header-buttons .temp-888-btn { flex: 1; }
    .temp-888-container { padding: 0 14px; }
    .temp-888-error-type { font-size: 100px; }
    body { padding-bottom: 84px; }
    .temp-888-categories ul { display: flex; overflow: auto; }
    .temp-888-cat-card { min-width: 180px; }
}

@media (max-width: 700px) {
    .temp-888-footer-grid { grid-template-columns: 1fr; }
}
