@font-face{font-family:"UFABET Thai";src:url("https://gooddemon.net/assets/shared/fonts/noto-thai.ttf") format("truetype");font-weight:100 900;font-display:swap;}
/* Purple / black / gold palette. Color-only overrides; source geometry stays. */
:root {
  color-scheme: dark;
  --ufa-black: #08050d;
  --ufa-panel: #140b20;
  --ufa-panel-raised: #211132;
  --ufa-purple: #6e35a3;
  --ufa-purple-light: #b37bdf;
  --ufa-gold: #edca79;
  --ufa-gold-light: #fff0bb;
  --ufa-border: #77552e;
  --ufa-text: #f7efdF;
  --ufa-muted: #d2c0dd;
  --body-theme-bg: #08050d;
  --announcement-cntr-bg: #140b20;
  --announcement-cntr-color: #f7efdf;
  --announcement-cntr-section-announcement-bg: #42205c;
  --announcement-cntr-section-announcement-color: #fff0bb;
  --announcement-cntr-list-li-color: #f7efdf;
  --banner-bg: #08050d;
  --banner-carousel-indicators-li-border: 1px solid #edca79;
  --banner-carousel-indicators-active-bg: #edca79;
  --banner-carousel-indicators-active-border: #edca79;
  --home-info-cntr-bg: #100919;
  --home-info-cntr-border: 2px solid #77552e;
  --home-info-cntr-tickercntr-bg: #211132;
  --home-progressive-jackpot-bg: linear-gradient(110deg,#100919,#321742,#100919);
  --home-progressive-jackpot-color: #fff0bb;
  --home-progressive-jackpot-outer-cntr-bg: #08050d;
  --home-progressive-jackpot-inner-cntr-bg: linear-gradient(#321742,rgba(18,8,28,0));
  --home-progressive-jackpot-border-cntr-bg: #77552e;
  --home-progressive-jackpot-border-cntr-border: 3px solid #77552e;
  --home-progressive-jackpot-jackpot-cntr-bg: linear-gradient(#4e286a,#12081c);
  --home-progressive-jackpot-jackpot-inner-cntr-bg: #08050d;
  --home-progressive-jackpot-jackpot-border-cntr-border: 3px dotted #a27642;
  --home-progressive-jackpot-jackpot-currency-color: #edca79;
  --home-progressive-jackpot-jackpot-play-text-color: #edca79;
  --home-progressive-jackpot-jackpot-play-text-label-color: #d2c0dd;
  --lottery-result-cntr-bg: #140b20;
  --lottery-result-cntr-color: #f7efdf;
  --lottery-result-cntr-title-bg: #42205c;
  --lottery-result-cntr-title-color: #fff0bb;
  --lottery-result-cntr-numbers-bg: #42205c;
  --popular-games-bg: #100919;
  --popular-games-left-section-title-bg: #42205c;
  --popular-games-left-section-title-color: #fff0bb;
  --popular-games-scrtabs-tab-cntr-bg: linear-gradient(#211132,#321742,#211132);
  --popular-games-nav-tabs-li-a-bg: #140b20;
  --popular-games-nav-tabs-li-a-active-bg: #42205c;
  --popular-games-scroll-arrow-color: #edca79;
  --popular-games-tab-pane-bg: #100919;
  --popular-games-tab-content-border: 1px solid #77552e;
  --popular-games-list-game-item-hover-link-cntr-bg: rgba(8,5,13,.85);
  --provider-slide-bg: #100919;
  --provider-slide-i-bg: rgba(179,123,223,.12);
  --provider-slide-i-color: #edca79;
  --provider-slide-i-hover-bg: rgba(179,123,223,.3);
  --provider-slide-main-slide-item-bg: rgba(179,123,223,.12);
  --provider-slide-main-slide-item-a-not-game-info-bg: #08050d;
  --provider-slide-main-slide-item-a-not-game-info-hover-bg: #42205c;
  --provider-slide-main-slide-item-h5-color: #f7efdf;
  --promotion-cntr-bg: #100919;
  --promotion-list-bg: #140b20;
  --jackpot-winners-bg: #140b20;
  --download-apk-content-bg: #140b20;
  --download-apk-color: #f7efdf;
  --download-apk-btn-color: #201009;
  --download-apk-btn-bg: linear-gradient(110deg,#fff0bb,#d3a64d);
  --download-apk-details-title-color: #fff0bb;
  --download-apk-details-desc-color: #d2c0dd;
  --download-apk-details-btn-color: #201009;
  --download-apk-details-btn-bg: linear-gradient(#fff0bb,#d3a64d);
  --download-popup-modal-header-title-color: #fff0bb;
  --download-popup-modal-body-span-color: #f7efdf;
  --popular-game-title-cntr-title-span-color: #fff0bb;
  --popular-game-title-cntr-title-span-bg: #42205c;
  --popular-game-title-cntr-title-span-after-bg: #42205c;
  --popular-game-title-cntr-content-border: 1px solid #77552e;
  --popular-game-title-cntr-content-game-list-game-item-game-name-color: #edca79;
  --popular-game-title-cntr-content-game-list-game-item-provider-name-color: #d2c0dd;
  --home-game-list-cntr-title-span-color: #fff0bb;
  --home-game-list-cntr-title-span-bg: #42205c;
  --home-game-list-cntr-title-span-after-bg: #42205c;
  --home-game-list-cntr-content-border: 1px solid #77552e;
  --home-game-list-cntr-content-game-list-game-item-game-name-color: #edca79;
  --home-game-list-cntr-content-game-list-game-item-provider-name-color: #d2c0dd;
  --banner-nav-button-bg: #42205c;
  --banner-nav-button-bg-hover: #08050dbb;
}

html body {
  color: var(--ufa-text) !important;
  background: radial-gradient(ellipse at 15% 8%,#6e35a326,transparent 45%),
              radial-gradient(ellipse at 88% 45%,#a276421a,transparent 42%),
              linear-gradient(160deg,#08050d,#180c25 50%,#08050d) !important;
}
html body::before {
  background-image: radial-gradient(circle,#edca79 1px,transparent 2px),
                    radial-gradient(circle,#b37bdf 1px,transparent 2px) !important;
  opacity: .14 !important;
}
html body::after { background: radial-gradient(circle at 85% 12%,#6e35a326,transparent 45%) !important; }

html body .topbar-container,
html body .site-header {
  background: linear-gradient(110deg,#08050d,#28133b 55%,#100919) !important;
  color: var(--ufa-text) !important;
  border-color: var(--ufa-border) !important;
  box-shadow: 0 6px 24px #0009 !important;
}
html body .site-header::after { background: linear-gradient(90deg,#6e35a3,#edca79,#6e35a3) !important; }
html body .topbar-item,
html body .top-menu,
html body #menu_slides,
html body #menu_slides .game-list { color: var(--ufa-gold-light) !important; background-color: transparent !important; }
html body #menu_slides a { color: var(--ufa-gold-light) !important; }
html body .dropdown-menu,
html body .language-selector { background: var(--ufa-panel-raised) !important; color: var(--ufa-text) !important; border-color: var(--ufa-border) !important; }
html body .dropdown-menu > li > a:hover,
html body .language-selector > li:hover { background: #42205c !important; color: var(--ufa-gold-light) !important; }

html body .burgundy-ribbon {
  background: linear-gradient(90deg,#160b22,#3a1b51,#160b22) !important;
  color: var(--ufa-gold-light) !important;
  border-color: var(--ufa-border) !important;
}
html body .banner,
html body .banner-carousel { background: #08050d !important; box-shadow: 0 12px 28px #0008 !important; }
html body .home-info-container,
html body .announcement-container,
html body .popular-games,
html body .popular-game-list,
html body .jackpot-winners { background-color: var(--ufa-panel) !important; color: var(--ufa-text) !important; border-color: var(--ufa-border) !important; }
html body .container-title,
html body .section-title,
html body .popular-game-title-container .container-title,
html body .home-game-list-container .container-title {
  background: linear-gradient(110deg,#2b133d,#42205c,#211132) !important;
  color: var(--ufa-gold-light) !important;
  border-color: var(--ufa-border) !important;
  box-shadow: 0 4px 18px #0005 !important;
}
html body .container-title span,
html body .section-title span { color: inherit !important; }
html body .popular-games .nav-tabs > li > a { color: var(--ufa-muted) !important; background-color: var(--ufa-panel) !important; border-color: var(--ufa-border) !important; }
html body .popular-games .nav-tabs > li.active > a,
html body .popular-games .nav-tabs > li > a:hover { color: var(--ufa-gold-light) !important; background-color: #42205c !important; border-color: var(--ufa-gold) !important; }
html body .game-name,
html body .winner-amount,
html body .jackpot-currency { color: var(--ufa-gold) !important; }
html body .game-item:hover,
html body .promotion-item:hover { box-shadow: 0 9px 25px #6e35a355 !important; }

html body .login-button,
html body .btn-secondary,
html body #ufabet-welcome-login {
  color: var(--ufa-gold-light) !important;
  background: linear-gradient(110deg,#251137,#42205c) !important;
  border-color: var(--ufa-gold) !important;
  box-shadow: 0 5px 18px #0007 !important;
}
html body .register-button,
html body .register-btn,
html body .standard-button-group .btn,
html body .btn-primary,
html body #ufabet-welcome-register {
  color: #201009 !important;
  background: linear-gradient(110deg,#fff0bb,#e5bd67 55%,#c78c35) !important;
  border-color: var(--ufa-gold-light) !important;
  box-shadow: 0 5px 20px #edca7922 !important;
}
html body .btn-primary:hover,
html body .register-button:hover,
html body #ufabet-welcome-register:hover { background: linear-gradient(110deg,#fff4d0,#edca79) !important; color: #201009 !important; }
html body .download-apk-container,
html body .download-apk-detail {
  background-color: #100919 !important;
  color: var(--ufa-text) !important;
  border-color: var(--ufa-border) !important;
}
html body .download-apk-info,
html body .download-apk-section { color: var(--ufa-text) !important; }

html body h1,
html body h2,
html body h3,
html body .site-description h1,
html body .site-description h2,
html body .site-description h3 { color: var(--ufa-gold-light) !important; text-shadow: 0 2px 14px #0009 !important; }
html body h4,
html body h5,
html body h6 { color: var(--ufa-gold) !important; }
html body .site-description p,
html body .site-description li,
html body .site-footer p { color: var(--ufa-text) !important; }
html body .site-description a,
html body a:not(.login-button):not(.register-button):not(.btn) { color: var(--ufa-gold) !important; }
html body .site-description a:hover { color: var(--ufa-gold-light) !important; }
html body .site-description strong { color: var(--ufa-gold-light) !important; }
html body .site-description li::marker { color: var(--ufa-purple-light) !important; }
html body .site-footer,
html body .site-footer .container,
html body .site-footer .footer-description-section,
html body .site-footer .site-description {
  background-color: #0c0713 !important;
  background-image: linear-gradient(145deg,#140b20,#0c0713 70%) !important;
  color: var(--ufa-text) !important;
  border-color: var(--ufa-border) !important;
}
html body .site-footer .site-info-description,
html body .footer-section-title,
html body .copyright { color: var(--ufa-muted) !important; border-color: var(--ufa-border) !important; }
html body table,
html body .site-description table { background: #140b20 !important; color: var(--ufa-text) !important; border-color: var(--ufa-border) !important; }
html body th { background: #42205c !important; color: var(--ufa-gold-light) !important; border-color: var(--ufa-border) !important; }
html body td { background: #140b20 !important; color: var(--ufa-text) !important; border-color: var(--ufa-border) !important; }
html body tr:nth-child(even) td { background: #211132 !important; }
html body tr:hover td { background: #321742 !important; }

html body .ufabet-review-section { background: linear-gradient(145deg,#140b20,#0c0713) !important; color: var(--ufa-text) !important; border-color: var(--ufa-border) !important; }
html body .ufabet-review-card { background: linear-gradient(145deg,#211132,#140b20) !important; border-color: var(--ufa-border) !important; box-shadow: 0 8px 24px #0006 !important; }
html body .ufabet-review-card .ufabet-review-avatar { background: linear-gradient(135deg,#edca79,#a27642) !important; color: #201009 !important; }
html body .ufabet-review-card .ufabet-review-stars { color: var(--ufa-gold) !important; }
html body .ufabet-review-card .ufabet-review-stars span,
html body .ufabet-review-note,
html body .ufabet-review-role { color: var(--ufa-muted) !important; border-color: var(--ufa-border) !important; }
html body .ufabet-review-card p { color: var(--ufa-text) !important; }
html body .ufabet-faq-accordion .ufabet-faq-item { background: #140b20 !important; border-color: var(--ufa-border) !important; color: var(--ufa-text) !important; }
html body .ufabet-faq-accordion summary { color: var(--ufa-gold-light) !important; }
html body .ufabet-faq-accordion summary::after { color: var(--ufa-purple-light) !important; }
html body .ufabet-faq-accordion details[open] summary { background: #321742 !important; }
html body .ufabet-faq-accordion .ufabet-faq-answer { border-color: var(--ufa-border) !important; }

html body .modal-content,
html body .popup-modal { background: linear-gradient(145deg,#211132,#100919) !important; color: var(--ufa-text) !important; border-color: var(--ufa-border) !important; }
html body .modal-header,
html body .modal-body,
html body .modal-footer { color: var(--ufa-text) !important; border-color: var(--ufa-border) !important; }
html body .modal-title,
html body .modal-content label,
html body .modal-content .close { color: var(--ufa-gold-light) !important; }
html body .modal-content .form-control { background: #08050d !important; color: var(--ufa-text) !important; border-color: var(--ufa-border) !important; }
html body #ufabet-welcome-overlay { background: rgba(5,2,10,.88) !important; }
html body #ufabet-welcome-card { background: linear-gradient(145deg,#251137,#100919 78%) !important; border-color: var(--ufa-gold) !important; box-shadow: 0 25px 90px #000c,0 0 38px #6e35a344 !important; }
html body #ufabet-welcome-card h2 { color: var(--ufa-gold-light) !important; }
html body #ufabet-welcome-card p { color: var(--ufa-text) !important; }
html body #ufabet-welcome-banner { border-color: var(--ufa-border) !important; }
html body #ufabet-welcome-close { background: #140b20ed !important; color: var(--ufa-gold-light) !important; border-color: var(--ufa-border) !important; }
html body .footer-featured-product-section,
html body .footer-banking-section,
html body .footer-copyright-section { margin-left: 0; margin-right: 0; }

/* Keep the supplied DOM while allowing the desktop summary widgets to fit phones. */
@media (max-width: 767px) {
  html, html body { min-width: 0; max-width: 100%; overflow-x: hidden; }
  html body .home-inner-container { flex-direction: column; align-items: stretch; gap: 16px; }
  html body .home-inner-container > div { width: 100%; min-width: 0; max-width: 100%; }
  html body .lottery-result-container { width: 100%; max-width: 100%; }
  html body .home-info-container { max-width: 100%; overflow-x: hidden; }
}

/* Deep article tables and guide, shared on Canonical/AMP. */
.ufabet-article-depth,.ufabet-guide{min-width:0;max-width:100%;margin:28px 0;color:#e8e1ef;font-size:16px;line-height:1.9;text-align:left}
.ufabet-depth-section{margin:26px 0;min-width:0;scroll-margin-top:95px}
.ufabet-depth-section h2,.ufabet-guide h2{color:#f6dda2;font-size:clamp(19px,3.6vw,25px);line-height:1.55;margin:0 0 14px;font-weight:700;text-align:left;overflow-wrap:anywhere}
.ufabet-depth-section p,.ufabet-guide p{font-size:16px;line-height:1.9;color:#e8e1ef;margin:0 0 16px;text-align:left;overflow-wrap:anywhere}
.ufabet-depth-section ul,.ufabet-guide ol{padding-left:25px;margin:16px 0}
.ufabet-depth-section li,.ufabet-guide li{margin:0 0 14px;padding-left:4px;line-height:1.85}
.ufabet-guide{padding:20px;background:#160d23;border:1px solid #675138;border-radius:12px}
.ufabet-guide h3{font-size:17px;color:#e9c778;line-height:1.6;margin:0 0 8px;font-weight:700}
.ufabet-guide li{scroll-margin-top:95px}
.ufabet-table-wrap{display:block;width:100%;max-width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch;margin:20px 0;background:#100a19;border:1px solid #b79756;border-radius:10px}
.ufabet-table-wrap:focus-visible{outline:3px solid #e9c778;outline-offset:3px}
.ufabet-table-wrap table{border-collapse:collapse;width:100%;min-width:620px;font-size:14px;line-height:1.75;text-align:left;color:#eee7f5;margin:0}
.ufabet-table-wrap caption{caption-side:top;padding:16px;background:#231236;color:#f6dda2;text-align:left;font-size:16px;font-weight:700;white-space:normal}
.ufabet-table-wrap th,.ufabet-table-wrap td{padding:13px 14px;border:1px solid #493655;vertical-align:top;white-space:normal;word-break:normal;overflow-wrap:anywhere;min-width:140px}
.ufabet-table-wrap thead th{background:#312044;color:#f6dda2;font-weight:700}
.ufabet-table-wrap tbody th{background:#21132f;color:#e9c778;font-weight:600}
.ufabet-table-wrap tbody tr:nth-child(even) td{background:#1a1025}
@media(max-width:600px){.ufabet-article-depth,.ufabet-guide{font-size:15px;margin:22px 0}.ufabet-depth-section p,.ufabet-guide p{font-size:15px}.ufabet-guide{padding:15px}.ufabet-table-wrap table{font-size:13px;min-width:590px}.ufabet-table-wrap th,.ufabet-table-wrap td{padding:11px 12px;min-width:130px}.ufabet-table-wrap caption{font-size:15px;padding:13px}}

.ufabet-glossary{margin-top:22px;padding-top:18px;border-top:1px solid #675138}.ufabet-glossary dt{color:#f6dda2;font-weight:700;margin-top:13px}.ufabet-glossary dd{margin:4px 0 14px;line-height:1.85;color:#e8e1ef}

html body{font-family:"UFABET Thai",Arial,sans-serif;}

/* Black and gold: appended inside the existing template style block. */
:root{--primary:#11100d;--secondary:#050505;--accent:#e4bd62;--surface:#15130f;--text:#fff0cc;--red:#977126;--gold:#edc86f;--dark:#050505;color-scheme:dark}
html{background:#050505}
html body{background:radial-gradient(ellipse at 82% 0,#b0832228,transparent 44%),linear-gradient(160deg,#050505,#17140d 52%,#050505)!important;color:#fff0cc!important}
html body:before{opacity:.2;background-image:radial-gradient(2px 2px at 12% 20%,#f1cf83 98%,transparent),radial-gradient(2px 2px at 72% 34%,#b58d3b 98%,transparent);animation:none}
html body a{color:#f4d68e}
html body .site-header,html body .topbar-container,html body .header,html body .main-nav,html body .navigation-container{background:linear-gradient(110deg,#050505,#262014 55%,#090909)!important;color:#ffe5a8!important;border-color:#c79e48!important}
html body .site-header,html body .topbar-container{border-bottom:3px solid #c79e48!important}
html body .header{border:2px solid #c79e48;box-shadow:0 12px 32px #000a}
html body .container-title,html body .section-title{background:linear-gradient(100deg,#13110c,#302512)!important;color:#ffe5a8!important;border-left:5px solid #d1a952!important}
html body .login-button,html body .register-button,html body .btn-primary,html body .cta .btn{background:linear-gradient(130deg,#f4d78b,#b48430)!important;color:#171006!important;border-color:#f1ce75!important;box-shadow:0 5px 0 #533d15,0 8px 22px #0008}
html body .cta .btn:nth-child(2){background:linear-gradient(130deg,#302817,#111)!important;color:#ffe3a0!important;border-color:#d1a952!important;box-shadow:0 5px 0 #050505,0 8px 22px #0008}
html body .card,html body .download-apk-container,html body .popular-games{background-color:#11100d!important;border-color:#c79e48!important}
html body .card{background:linear-gradient(145deg,#15130f,#282013 58%,#0d0d0d)!important;box-shadow:0 20px 48px #000b,inset 0 1px #ffe7a733}
html body .card:before{background:radial-gradient(ellipse,#edbd3e26,transparent 68%)}
html body .marquee-wrapper{background:linear-gradient(90deg,#090909,#3b2d14,#090909)!important;border-color:#d3ab58!important}
html body .marquee-text{color:#ffe2a0!important}
html body .hero-banner amp-img,html body .hero-img{border-color:#d3ab58!important;box-shadow:0 12px 35px #0009}
html body .hero-banner .banner-fallback{background:#191610;color:#ffe4a7}
html body .badge,html body .badge:nth-child(even){background:#242017!important;border-color:#b58b3c!important;color:#ffe8b1!important}
html body .site-footer,html body .footer{background-color:#080808!important;color:#e4c891!important;border-color:#a78037!important}
html body .site-footer,html body .popular-games{background-image:linear-gradient(#080808e8,#080808ed),var(--image-src)!important;background-blend-mode:normal,luminosity}
html body #article.site-description,html body #article.seo-art{background:linear-gradient(155deg,#101010,#1d1910 58%,#080808)!important;border:1px solid #a78037!important;border-top:5px solid #dfb85e!important;color:#fff0d0!important;box-shadow:0 18px 45px #0009}
html body #article h1,html body #article h2,html body #article h3,html body #article h4{color:#f6d68a!important;text-shadow:none}
html body #article h2{border-bottom-color:#8e6d2e!important}
html body #article h2:before{color:#e8bf65!important}
html body #article p,html body #article li,html body #article dd,html body #article td{color:#f3e6c8!important}
html body #article dt,html body #article strong{color:#ffe1a0!important}
html body #article a{color:#edc76c!important;text-decoration-color:#b58b3c!important}
html body #article table{background:#12110e!important;color:#fff0cc!important;border-collapse:collapse}
html body #article th{background:#332918!important;color:#ffe5a6!important}
html body #article td,html body #article th{border-color:#8e6d2e!important}
html body #article tbody tr:nth-child(even){background:#211c13!important}
html body .ufabet-review-section{background:linear-gradient(145deg,#15120d,#2c2415)!important;border-color:#ba9343!important}
html body .ufabet-review-section h2,html body .ufabet-review-section .ufabet-review-note{color:#f4d68d!important}
html body .ufabet-review-card,html body .ufabet-faq-accordion .ufabet-faq-item{background:#14120e!important;border:1px solid #a78037!important;color:#fff0cc!important}
html body .ufabet-review-card *,html body .ufabet-faq-accordion .ufabet-faq-item *{color:#f5e8ca!important}
html body .ufabet-review-card h3,html body .ufabet-review-stars,html body .ufabet-review-stars b{color:#f5cb67!important}
html body .ufabet-review-stars span{color:#efdfba!important}
html body .ufabet-faq-accordion summary{color:#f6d68a!important;background:linear-gradient(90deg,#342916,#191610)!important}
html body .ufabet-faq-answer{background:#0d0d0d!important;border-color:#8e6d2e!important}
html body #ufabet-welcome-overlay{background:rgba(0,0,0,.8)!important}
html body #ufabet-welcome-card{background:linear-gradient(145deg,#17140d,#070707)!important;border:2px solid #d0a64e!important;color:#f3e6c7!important}
html body #ufabet-welcome-card h2{color:#f5ce76!important}
html body #ufabet-welcome-register{background:linear-gradient(110deg,#ebcc83,#ad7c26)!important;color:#171006!important}
html body #ufabet-welcome-login{background:#111!important;border:2px solid #c79e48!important;color:#f5ce76!important}
@media(max-width:767px){html body .ufabet-review-grid{grid-template-columns:1fr!important}html body .ufabet-table-wrap{max-width:100%;overflow-x:auto}html body #article table{display:table;min-width:640px}html body #article{overflow-wrap:anywhere}}


/* SLOT6_BANNER_MOTION */
.banner-img,.hero-img,.hero-banner amp-img{animation:slotBannerPulse 4s ease-in-out infinite alternate}
@keyframes slotBannerPulse{from{opacity:.94}to{opacity:1}}
@media(prefers-reduced-motion:reduce){.banner-img,.hero-img,.hero-banner amp-img{animation:none}}
/* END_SLOT6_BANNER_MOTION */
