@font-face{font-family:"UFABET Thai";src:url("https://www.rama555.casino/assets/rama555/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: #05080d;
  --ufa-panel: #0b1420;
  --ufa-panel-raised: #111f32;
  --ufa-purple: #3563a3;
  --ufa-purple-light: #7ba5df;
  --ufa-gold: #79bded;
  --ufa-gold-light: #bce2fe;
  --ufa-border: #2b597a;
  --ufa-text: #dfedf7;
  --ufa-muted: #b7cbe6;
  --body-theme-bg: #05080d;
  --announcement-cntr-bg: #0b1420;
  --announcement-cntr-color: #dfedf7;
  --announcement-cntr-section-announcement-bg: #20395c;
  --announcement-cntr-section-announcement-color: #bce2fe;
  --announcement-cntr-list-li-color: #dfedf7;
  --banner-bg: #05080d;
  --banner-carousel-indicators-li-border: 1px solid #79bded;
  --banner-carousel-indicators-active-bg: #79bded;
  --banner-carousel-indicators-active-border: #79bded;
  --home-info-cntr-bg: #091019;
  --home-info-cntr-border: 2px solid #2b597a;
  --home-info-cntr-tickercntr-bg: #111f32;
  --home-progressive-jackpot-bg: linear-gradient(110deg,#091019,#172942,#091019);
  --home-progressive-jackpot-color: #bce2fe;
  --home-progressive-jackpot-outer-cntr-bg: #05080d;
  --home-progressive-jackpot-inner-cntr-bg: linear-gradient(#172942,rgba(8,16,28,0));
  --home-progressive-jackpot-border-cntr-bg: #2b597a;
  --home-progressive-jackpot-border-cntr-border: 3px solid #2b597a;
  --home-progressive-jackpot-jackpot-cntr-bg: linear-gradient(#26436c,#08101c);
  --home-progressive-jackpot-jackpot-inner-cntr-bg: #05080d;
  --home-progressive-jackpot-jackpot-border-cntr-border: 3px dotted #3b7ba9;
  --home-progressive-jackpot-jackpot-currency-color: #79bded;
  --home-progressive-jackpot-jackpot-play-text-color: #79bded;
  --home-progressive-jackpot-jackpot-play-text-label-color: #b7cbe6;
  --lottery-result-cntr-bg: #0b1420;
  --lottery-result-cntr-color: #dfedf7;
  --lottery-result-cntr-title-bg: #20395c;
  --lottery-result-cntr-title-color: #bce2fe;
  --lottery-result-cntr-numbers-bg: #20395c;
  --popular-games-bg: #091019;
  --popular-games-left-section-title-bg: #20395c;
  --popular-games-left-section-title-color: #bce2fe;
  --popular-games-scrtabs-tab-cntr-bg: linear-gradient(#111f32,#172942,#111f32);
  --popular-games-nav-tabs-li-a-bg: #0b1420;
  --popular-games-nav-tabs-li-a-active-bg: #20395c;
  --popular-games-scroll-arrow-color: #79bded;
  --popular-games-tab-pane-bg: #091019;
  --popular-games-tab-content-border: 1px solid #2b597a;
  --popular-games-list-game-item-hover-link-cntr-bg: rgba(5,8,13,.85);
  --provider-slide-bg: #091019;
  --provider-slide-i-bg: rgba(123,165,223,.12);
  --provider-slide-i-color: #79bded;
  --provider-slide-i-hover-bg: rgba(123,165,223,.3);
  --provider-slide-main-slide-item-bg: rgba(123,165,223,.12);
  --provider-slide-main-slide-item-a-not-game-info-bg: #05080d;
  --provider-slide-main-slide-item-a-not-game-info-hover-bg: #20395c;
  --provider-slide-main-slide-item-h5-color: #dfedf7;
  --promotion-cntr-bg: #091019;
  --promotion-list-bg: #0b1420;
  --jackpot-winners-bg: #0b1420;
  --download-apk-content-bg: #0b1420;
  --download-apk-color: #dfedf7;
  --download-apk-btn-color: #091620;
  --download-apk-btn-bg: linear-gradient(110deg,#bce2fe,#4d9bd3);
  --download-apk-details-title-color: #bce2fe;
  --download-apk-details-desc-color: #b7cbe6;
  --download-apk-details-btn-color: #091620;
  --download-apk-details-btn-bg: linear-gradient(#bce2fe,#4d9bd3);
  --download-popup-modal-header-title-color: #bce2fe;
  --download-popup-modal-body-span-color: #dfedf7;
  --popular-game-title-cntr-title-span-color: #bce2fe;
  --popular-game-title-cntr-title-span-bg: #20395c;
  --popular-game-title-cntr-title-span-after-bg: #20395c;
  --popular-game-title-cntr-content-border: 1px solid #2b597a;
  --popular-game-title-cntr-content-game-list-game-item-game-name-color: #79bded;
  --popular-game-title-cntr-content-game-list-game-item-provider-name-color: #b7cbe6;
  --home-game-list-cntr-title-span-color: #bce2fe;
  --home-game-list-cntr-title-span-bg: #20395c;
  --home-game-list-cntr-title-span-after-bg: #20395c;
  --home-game-list-cntr-content-border: 1px solid #2b597a;
  --home-game-list-cntr-content-game-list-game-item-game-name-color: #79bded;
  --home-game-list-cntr-content-game-list-game-item-provider-name-color: #b7cbe6;
  --banner-nav-button-bg: #20395c;
  --banner-nav-button-bg-hover: #05080dbb;
}

html body {
  color: var(--ufa-text) !important;
  background: radial-gradient(ellipse at 15% 8%,#3563a326,transparent 45%),
              radial-gradient(ellipse at 88% 45%,#3b7ba91a,transparent 42%),
              linear-gradient(160deg,#05080d,#0c1625 50%,#05080d) !important;
}
html body::before {
  background-image: radial-gradient(circle,#79bded 1px,transparent 2px),
                    radial-gradient(circle,#7ba5df 1px,transparent 2px) !important;
  opacity: .14 !important;
}
html body::after { background: radial-gradient(circle at 85% 12%,#3563a326,transparent 45%) !important; }

html body .topbar-container,
html body .site-header {
  background: linear-gradient(110deg,#05080d,#13243b 55%,#091019) !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,#3563a3,#79bded,#3563a3) !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: #20395c !important; color: var(--ufa-gold-light) !important; }

html body .burgundy-ribbon {
  background: linear-gradient(90deg,#0b1522,#1b3151,#0b1522) !important;
  color: var(--ufa-gold-light) !important;
  border-color: var(--ufa-border) !important;
}
html body .banner,
html body .banner-carousel { background: #05080d !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,#13243d,#20395c,#111f32) !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: #20395c !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 #3563a355 !important; }

html body .login-button,
html body .btn-secondary,
html body #ufabet-welcome-login {
  color: var(--ufa-gold-light) !important;
  background: linear-gradient(110deg,#112137,#20395c) !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: #091620 !important;
  background: linear-gradient(110deg,#bce2fe,#67b0e5 55%,#358ac7) !important;
  border-color: var(--ufa-gold-light) !important;
  box-shadow: 0 5px 20px #79bded22 !important;
}
html body .btn-primary:hover,
html body .register-button:hover,
html body #ufabet-welcome-register:hover { background: linear-gradient(110deg,#d1ebfe,#79bded) !important; color: #091620 !important; }
html body .download-apk-container,
html body .download-apk-detail {
  background-color: #091019 !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: #070c13 !important;
  background-image: linear-gradient(145deg,#0b1420,#070c13 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: #0b1420 !important; color: var(--ufa-text) !important; border-color: var(--ufa-border) !important; }
html body th { background: #20395c !important; color: var(--ufa-gold-light) !important; border-color: var(--ufa-border) !important; }
html body td { background: #0b1420 !important; color: var(--ufa-text) !important; border-color: var(--ufa-border) !important; }
html body tr:nth-child(even) td { background: #111f32 !important; }
html body tr:hover td { background: #172942 !important; }

html body .ufabet-review-section { background: linear-gradient(145deg,#0b1420,#070c13) !important; color: var(--ufa-text) !important; border-color: var(--ufa-border) !important; }
html body .ufabet-review-card { background: linear-gradient(145deg,#111f32,#0b1420) !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,#79bded,#3b7ba9) !important; color: #091620 !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: #0b1420 !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: #172942 !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,#111f32,#091019) !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: #05080d !important; color: var(--ufa-text) !important; border-color: var(--ufa-border) !important; }
html body #ufabet-welcome-overlay { background: rgba(2,5,10,.88) !important; }
html body #ufabet-welcome-card { background: linear-gradient(145deg,#112137,#091019 78%) !important; border-color: var(--ufa-gold) !important; box-shadow: 0 25px 90px #000c,0 0 38px #3563a344 !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: #0b1420ed !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:#dde6f3;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:#a2d3f6;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:#dde6f3;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:#0c1624;border:1px solid #295676;border-radius:12px}
.ufabet-guide h3{font-size:17px;color:#78bae9;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:#09101a;border:1px solid #4d90c0;border-radius:10px}
.ufabet-table-wrap:focus-visible{outline:3px solid #78bae9;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:#e6edf6;margin:0}
.ufabet-table-wrap caption{caption-side:top;padding:16px;background:#122136;color:#a2d3f6;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 #244067;vertical-align:top;white-space:normal;word-break:normal;overflow-wrap:anywhere;min-width:140px}
.ufabet-table-wrap thead th{background:#1a2e4a;color:#a2d3f6;font-weight:700}
.ufabet-table-wrap tbody th{background:#111e31;color:#78bae9;font-weight:600}
.ufabet-table-wrap tbody tr:nth-child(even) td{background:#0e1827}
@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 #295676}.ufabet-glossary dt{color:#a2d3f6;font-weight:700;margin-top:13px}.ufabet-glossary dd{margin:4px 0 14px;line-height:1.85;color:#dde6f3}

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:#62aee4;--surface:#09131b;--text:#cdeafe;--red:#266897;--gold:#6fb8ed;--dark:#050505;color-scheme:dark}
html{background:#050505}
html body{background:radial-gradient(ellipse at 82% 0,#2275b028,transparent 44%),linear-gradient(160deg,#050505,#09131b 52%,#050505)!important;color:#cdeafe!important}
html body:before{opacity:.2;background-image:radial-gradient(2px 2px at 12% 20%,#83c3f1 98%,transparent),radial-gradient(2px 2px at 72% 34%,#3b82b5 98%,transparent);animation:none}
html body a{color:#8ecaf4}
html body .site-header,html body .topbar-container,html body .header,html body .main-nav,html body .navigation-container{background:linear-gradient(110deg,#050505,#0f1f2b 55%,#090909)!important;color:#aadafd!important;border-color:#4892c7!important}
html body .site-header,html body .topbar-container{border-bottom:3px solid #4892c7!important}
html body .header{border:2px solid #4892c7;box-shadow:0 12px 32px #000a}
html body .container-title,html body .section-title{background:linear-gradient(100deg,#081117,#112431)!important;color:#aadafd!important;border-left:5px solid #529cd1!important}
html body .login-button,html body .register-button,html body .btn-primary,html body .cta .btn{background:linear-gradient(130deg,#8bc8f4,#307db4)!important;color:#061017!important;border-color:#75bdf1!important;box-shadow:0 5px 0 #153953,0 8px 22px #0008}
html body .cta .btn:nth-child(2){background:linear-gradient(130deg,#122635,#111)!important;color:#a2d7fd!important;border-color:#529cd1!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:#4892c7!important}
html body .card{background:linear-gradient(145deg,#09131b,#0f202c 58%,#0d0d0d)!important;box-shadow:0 20px 48px #000b,inset 0 1px #a9dafd33}
html body .card:before{background:radial-gradient(ellipse,#3ea4ed26,transparent 68%)}
html body .marquee-wrapper{background:linear-gradient(90deg,#090909,#142b3b,#090909)!important;border-color:#58a0d3!important}
html body .marquee-text{color:#a2d7fd!important}
html body .hero-banner amp-img,html body .hero-img{border-color:#58a0d3!important;box-shadow:0 12px 35px #0009}
html body .hero-banner .banner-fallback{background:#0b161e;color:#a9dafd}
html body .badge,html body .badge:nth-child(even){background:#0f202c!important;border-color:#3c83b5!important;color:#b3defd!important}
html body .site-footer,html body .footer{background-color:#080808!important;color:#91c1e4!important;border-color:#3778a7!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,#0c1821 58%,#080808)!important;border:1px solid #3778a7!important;border-top:5px solid #5ea9df!important;color:#d1ebfe!important;box-shadow:0 18px 45px #0009}
html body #article h1,html body #article h2,html body #article h3,html body #article h4{color:#8ac9f6!important;text-shadow:none}
html body #article h2{border-bottom-color:#2e668e!important}
html body #article h2:before{color:#65b1e8!important}
html body #article p,html body #article li,html body #article dd,html body #article td{color:#c8e1f3!important}
html body #article dt,html body #article strong{color:#a2d7fd!important}
html body #article a{color:#6cb7ed!important;text-decoration-color:#3c83b5!important}
html body #article table{background:#12110e!important;color:#cdeafe!important;border-collapse:collapse}
html body #article th{background:#142838!important;color:#a8dafd!important}
html body #article td,html body #article th{border-color:#2e668e!important}
html body #article tbody tr:nth-child(even){background:#0e1c26!important}
html body .ufabet-review-section{background:linear-gradient(145deg,#091219,#112330)!important;border-color:#4289bb!important}
html body .ufabet-review-section h2,html body .ufabet-review-section .ufabet-review-note{color:#8dc9f4!important}
html body .ufabet-review-card,html body .ufabet-faq-accordion .ufabet-faq-item{background:#091219!important;border:1px solid #3778a7!important;color:#cdeafe!important}
html body .ufabet-review-card *,html body .ufabet-faq-accordion .ufabet-faq-item *{color:#cae3f5!important}
html body .ufabet-review-card h3,html body .ufabet-review-stars,html body .ufabet-review-stars b{color:#67baf5!important}
html body .ufabet-review-stars span{color:#bad9ef!important}
html body .ufabet-faq-accordion summary{color:#8ac9f6!important;background:linear-gradient(90deg,#132837,#0b161e)!important}
html body .ufabet-faq-answer{background:#0d0d0d!important;border-color:#2e668e!important}
html body #ufabet-welcome-overlay{background:rgba(0,0,0,.8)!important}
html body #ufabet-welcome-card{background:linear-gradient(145deg,#09131b,#070707)!important;border:2px solid #4e9ad0!important;color:#c7e1f3!important}
html body #ufabet-welcome-card h2{color:#76c0f5!important}
html body #ufabet-welcome-register{background:linear-gradient(110deg,#83c0eb,#2675ad)!important;color:#061017!important}
html body #ufabet-welcome-login{background:#111!important;border:2px solid #4892c7!important;color:#76c0f5!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 */
