/* ===========================================================================
   SUNGAITOTO - luxury navy / gold theme layer (Ainun 11 / Ainun42.html)
   ---------------------------------------------------------------------------
   Colour layer only. No size, spacing, grid, position or breakpoint of the
   original stylesheets is redefined here: only colour, background, border,
   shadow and decorative pseudo elements (white speckles) are added.
     gold    #ffd700   light #fff9d6 / #ffe98a   deep #e0b400 / #b8860b / #8a6608
     navy    #1a2a6c   light #2b3f8f / #3a54b4   deep #131f52 / #0b1236 / #060a20
     neutral #ffffff / #eef2ff / #c9d3f0 / #9aa5cd  (3D light + dark edges)
   =========================================================================== */

:root {
    --sg-gold: #ffd700;
    --sg-gold-1: #fff9d6;
    --sg-gold-2: #ffe98a;
    --sg-gold-3: #e0b400;
    --sg-gold-4: #b8860b;
    --sg-gold-5: #8a6608;
    --sg-navy: #1a2a6c;
    --sg-navy-1: #2b3f8f;
    --sg-navy-2: #131f52;
    --sg-navy-3: #0b1236;
    --sg-navy-4: #060a20;
    --sg-text: #eef2ff;
    --sg-text-dim: #c9d3f0;
    --sg-text-mute: #9aa5cd;
    --sg-gold-grad: linear-gradient(180deg, #fff9d6 0%, #ffe98a 22%, #ffd700 52%, #e0b400 74%, #b8860b 100%);
    --sg-gold-soft: linear-gradient(180deg, #ffe98a 0%, #ffd700 45%, #e0b400 100%);
    --sg-card: linear-gradient(165deg, #1d2d72 0%, #16235f 45%, #0e1740 100%);
}

/* ------------------------------------------------------------------- canvas */
html { background: #060a20; }

body {
    color: var(--sg-text-dim) !important;
    background-color: #0a1233 !important;
    background-image:
        radial-gradient(1200px 640px at 50% -220px, rgba(43, 63, 143, .85) 0%, rgba(10, 18, 51, 0) 70%),
        radial-gradient(900px 520px at 8% 26%, rgba(26, 42, 108, .8) 0%, rgba(10, 18, 51, 0) 72%),
        radial-gradient(1000px 560px at 92% 68%, rgba(26, 42, 108, .6) 0%, rgba(10, 18, 51, 0) 70%),
        linear-gradient(180deg, #0b1236 0%, #101b49 40%, #0a1233 100%);
    background-repeat: no-repeat;
    background-size: cover;
}

/* ------------------------------------------------ white speckles (bling) */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 9;
    background-image:
        radial-gradient(1.7px 1.7px at 26px 38px, rgba(255, 255, 255, .70) 0%, rgba(255, 255, 255, 0) 60%),
        radial-gradient(1.4px 1.4px at 134px 98px, rgba(255, 255, 255, .55) 0%, rgba(255, 255, 255, 0) 60%),
        radial-gradient(1.2px 1.2px at 80px 170px, rgba(255, 249, 214, .50) 0%, rgba(255, 249, 214, 0) 62%),
        radial-gradient(1.3px 1.3px at 190px 46px, rgba(255, 255, 255, .45) 0%, rgba(255, 255, 255, 0) 60%),
        radial-gradient(2px 2px at 210px 150px, rgba(255, 215, 0, .38) 0%, rgba(255, 215, 0, 0) 60%);
    background-size: 210px 210px, 260px 260px, 300px 300px, 240px 240px, 380px 380px;
    opacity: .9;
    animation: sg-speckle-drift 70s linear infinite;
}

body::after {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 340px;
    pointer-events: none;
    z-index: 8;
    background: radial-gradient(70% 100% at 50% 0%, rgba(255, 215, 0, .12) 0%, rgba(255, 215, 0, 0) 70%);
}

@keyframes sg-speckle-drift {
    from { background-position: 0 0, 0 0, 0 0, 0 0, 0 0; }
    to   { background-position: 210px 420px, -260px 260px, 300px -300px, -240px -480px, 380px 380px; }
}

@media (prefers-reduced-motion: reduce) {
    body::before { animation: none; }
}

/* ------------------------------------------------------------------ top bar */
.topbar-container {
    background: linear-gradient(180deg, #16235f 0%, #101a48 60%, #0b1236 100%) !important;
    border-bottom: 1px solid rgba(255, 215, 0, .38);
    box-shadow: 0 2px 0 rgba(0, 0, 0, .45), inset 0 1px 0 rgba(255, 255, 255, .16);
}

.topbar-item,
.topbar-left-section a,
.topbar-right-container a { color: var(--sg-text-dim) !important; }

.topbar-item:hover,
.topbar-left-section a:hover,
.topbar-right-container a:hover { color: var(--sg-gold) !important; }

/* ------------------------------------------------------------------- header */
.site-header {
    background:
        radial-gradient(120% 180% at 50% -40%, rgba(255, 215, 0, .12) 0%, rgba(19, 31, 82, 0) 60%),
        linear-gradient(180deg, #1d2d70 0%, #16235f 55%, #101a48 100%) !important;
    border-top: 1px solid rgba(255, 215, 0, .2);
    border-bottom: 1px solid rgba(255, 215, 0, .45);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14), 0 8px 22px rgba(3, 6, 22, .55);
}

.site-header .logo img {
    max-height: 46px;
    width: auto;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, .55)) drop-shadow(0 0 10px rgba(255, 215, 0, .25));
}

/* navigation --------------------------------------------------------------- */
.top-menu > li > a,
.top-menu li a {
    color: #cfd8f6 !important;
    text-shadow: 0 1px 0 rgba(0, 0, 0, .55);
    transition: color .18s ease, text-shadow .18s ease;
}

.top-menu li a:hover,
.top-menu li.active > a,
.top-menu li:hover > a {
    color: var(--sg-gold) !important;
    text-shadow: 0 0 10px rgba(255, 215, 0, .6);
}

.top-menu li a::after {
    background: linear-gradient(180deg, #fff9d6, #ffd700 45%, #b8860b) !important;
    box-shadow: 0 0 10px rgba(255, 215, 0, .6);
}

/* nav icons are re-tinted gold through filters only - the artwork itself is
   untouched, so the shipped assets stay exactly as downloaded                */
.top-menu img,
.top-menu svg {
    filter: sepia(100%) saturate(430%) hue-rotate(357deg) brightness(115%) contrast(106%)
            drop-shadow(0 1px 2px rgba(0, 0, 0, .65))
            drop-shadow(0 0 5px rgba(255, 215, 0, .32));
    transition: filter .18s ease;
}

.top-menu i {
    filter: brightness(1.65) saturate(1.15) drop-shadow(0 2px 3px rgba(0, 0, 0, .6));
}

.top-menu li a:hover img,
.top-menu li.active img {
    filter: sepia(100%) saturate(520%) hue-rotate(357deg) brightness(125%) contrast(104%)
            drop-shadow(0 0 9px rgba(255, 215, 0, .9));
}

/* ------------------------------------------------------------------ buttons */
.register-button,
.btn-primary,
.standard-button,
.download-apk-btn,
.telegram-btn,
.show_otp_popup_button,
#popup_modal_confirm_button {
    color: #241a00 !important;
    text-shadow: 0 1px 0 rgba(255, 255, 255, .6) !important;
    background: var(--sg-gold-grad) !important;
    border: 1px solid #8a6608 !important;
    border-radius: 10px;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, .85),
        inset 0 -2px 0 rgba(138, 102, 8, .55),
        0 4px 0 #7a5c07,
        0 8px 18px rgba(0, 0, 0, .45) !important;
    transition: transform .12s ease, box-shadow .12s ease, filter .12s ease;
}

.register-button:hover,
.btn-primary:hover,
.standard-button:hover,
.download-apk-btn:hover,
.telegram-btn:hover {
    filter: brightness(1.06);
    transform: translateY(-1px);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, .95),
        inset 0 -2px 0 rgba(138, 102, 8, .5),
        0 5px 0 #7a5c07,
        0 10px 26px rgba(255, 215, 0, .3) !important;
}

.register-button:active,
.btn-primary:active,
.standard-button:active {
    transform: translateY(2px);
    box-shadow: inset 0 2px 6px rgba(90, 66, 0, .55), 0 2px 0 #7a5c07 !important;
}

.login-button,
.btn-secondary {
    color: var(--sg-gold-1) !important;
    background: linear-gradient(180deg, #2b3f8f 0%, #1a2a6c 55%, #101a48 100%) !important;
    border: 1px solid rgba(255, 215, 0, .55) !important;
    border-radius: 10px;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, .3),
        inset 0 -2px 0 rgba(6, 10, 32, .8),
        0 4px 0 #0a1130,
        0 8px 18px rgba(0, 0, 0, .45) !important;
    transition: transform .12s ease, box-shadow .12s ease;
}

.login-button:hover,
.btn-secondary:hover {
    color: #fff !important;
    border-color: var(--sg-gold) !important;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, .35),
        inset 0 -2px 0 rgba(6, 10, 32, .8),
        0 5px 0 #0a1130,
        0 10px 22px rgba(255, 215, 0, .25) !important;
}

/* ------------------------------------------------------------------ banners */
.banner { background: linear-gradient(180deg, #0a1233 0%, #060a20 100%) !important; }

.banner-carousel img,
.banner img {
    max-width: 100% !important;
    height: auto !important;
    display: block;
    margin: 0 auto;
    border-bottom: 2px solid rgba(255, 215, 0, .55);
    box-shadow: 0 12px 30px rgba(0, 0, 0, .55);
}

.banner-carousel .slick-arrow {
    background: rgba(11, 18, 54, .72) !important;
    border: 1px solid rgba(255, 215, 0, .45);
    border-radius: 50%;
    box-shadow: 0 6px 16px rgba(0, 0, 0, .5);
}

.banner-carousel .slick-arrow:hover { background: rgba(255, 215, 0, .22) !important; }
.banner-carousel .slick-dots li button { background: rgba(255, 255, 255, .45) !important; }

.banner-carousel .slick-dots li.slick-active button {
    background: var(--sg-gold) !important;
    box-shadow: 0 0 12px rgba(255, 215, 0, .8);
}

/* ------------------------------------------------------------ announcement */
.announcement-list li,
.announcement-container,
.pemberitahuan { color: var(--sg-text-mute) !important; }

.home-info-container,
.home-inner-container { background: transparent !important; }

/* ------------------------------------------------------------------ jackpot */
.home-progressive-jackpot .outer-container {
    background-color: #0d1740 !important;
    background-image:
        radial-gradient(120% 180% at 50% -30%, rgba(43, 63, 143, .55) 0%, rgba(13, 23, 64, 0) 70%) !important;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, .16),
        inset 0 -2px 0 rgba(0, 0, 0, .55),
        0 12px 30px rgba(0, 0, 0, .55) !important;
}

.home-progressive-jackpot .inner-container {
    background-color: #101c4e !important;
    background-image:
        radial-gradient(100% 140% at 50% 0%, rgba(255, 215, 0, .10) 0%, rgba(16, 28, 78, 0) 65%) !important;
}

.home-progressive-jackpot .jackpot-border-container,
.home-progressive-jackpot .jackpot-inner-container {
    border: 1px solid rgba(255, 215, 0, .45) !important;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, .2),
        0 0 24px rgba(255, 215, 0, .14) !important;
}

.home-progressive-jackpot .jackpot-play-text,
.home-progressive-jackpot .jackpot-currency {
    color: var(--sg-gold-2) !important;
    text-shadow: 0 2px 0 rgba(0, 0, 0, .55);
}

/* the remote jackpot service is gone and the bundle keeps printing
   "UPDATING", so a friendly amount is shown instead                        */
#progressive_jackpot {
    font-size: 0 !important;
    color: transparent !important;
    letter-spacing: 0 !important;
}

#progressive_jackpot::after {
    content: "13.781.822.354";
    font-family: 'Open24DisplaySt', 'digital_sans_ef_medium', monospace;
    font-size: 34px;
    line-height: 1.1;
    letter-spacing: 2px;
    color: #fff8d6;
    text-shadow:
        0 0 16px rgba(255, 215, 0, .6),
        0 2px 0 #6b4d06,
        0 4px 8px rgba(0, 0, 0, .85);
}

/* ---------------------------------------------------------- section titles */
.section-title,
.container-title,
.container-title span,
.popular-game-title-container .container-title {
    color: var(--sg-gold) !important;
    background: var(--sg-gold-grad);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .75));
}

/* -------------------------------------------------------------------- games */
.game-item,
.game-wrapper {
    background: var(--sg-card) !important;
    border: 1px solid rgba(255, 215, 0, .45) !important;
    border-radius: 12px;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, .12),
        inset 0 -1px 0 rgba(0, 0, 0, .55),
        0 6px 16px rgba(0, 0, 0, .45);
    transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}

.game-item:hover,
.game-wrapper:hover {
    transform: translateY(-3px);
    border-color: var(--sg-gold) !important;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, .18),
        0 10px 26px rgba(0, 0, 0, .55),
        0 0 24px rgba(255, 215, 0, .3);
}

.game-item { position: relative; overflow: hidden; }
.game-item img { border-radius: 9px 9px 0 0; }

.game-name {
    color: var(--sg-gold-2) !important;
    text-shadow: 0 1px 0 rgba(0, 0, 0, .7);
}

/* discreet "bling": a light streak that sweeps a tile on hover */
.game-item::after {
    content: "";
    position: absolute;
    top: -60%;
    left: -120%;
    width: 60%;
    height: 220%;
    pointer-events: none;
    background: linear-gradient(100deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, .26) 45%, rgba(255, 255, 255, 0) 100%);
    transform: rotate(12deg);
    opacity: 0;
    transition: opacity .2s ease;
}

.game-item:hover::after { opacity: 1; animation: sg-shine 1.05s ease-out; }

@keyframes sg-shine {
    from { left: -120%; }
    to   { left: 140%; }
}

@media (prefers-reduced-motion: reduce) {
    .game-item:hover::after { animation: none; opacity: 0; }
}

/* ------------------------------------------------------------ winners board */
.jackpot-winners {
    background:
        radial-gradient(120% 140% at 50% 0%, rgba(43, 63, 143, .45) 0%, rgba(11, 18, 54, 0) 70%),
        linear-gradient(180deg, #16235f 0%, #0c1640 100%) !important;
    border: 1px solid rgba(255, 215, 0, .3);
    border-radius: 12px;
    box-shadow: 0 8px 22px rgba(0, 0, 0, .45);
}

.jackpot-winner-title { color: var(--sg-gold) !important; text-shadow: 0 2px 0 rgba(0, 0, 0, .6); }
.winner-info, .winner-info > div { color: var(--sg-text-dim) !important; }
.winner-info .winner-amount, .winner-amount { color: var(--sg-gold-2) !important; }

/* ------------------------------------------------------------ provider tabs */
.nav-tabs { border-bottom-color: rgba(255, 215, 0, .32) !important; }

.nav-tabs > li > a {
    color: var(--sg-text-mute) !important;
    border-color: transparent !important;
    background: transparent !important;
}

.nav-tabs > li.active > a,
.nav-tabs > li > a:hover {
    color: #241a00 !important;
    background: var(--sg-gold-soft) !important;
    border-color: rgba(255, 215, 0, .6) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .6);
}

.provider-container,
.popular-game-list {
    background: linear-gradient(180deg, #131f52 0%, #0b1236 100%) !important;
    border: 1px solid rgba(255, 215, 0, .24);
    border-radius: 12px;
}

/* headings inside the panels */
.provider-container h5,
.site-info-container h3,
.site-footer h3 {
    color: var(--sg-gold) !important;
    text-shadow: 0 2px 0 rgba(0, 0, 0, .6);
}

.site-info-description h4,
.site-info h4,
.site-footer h4 {
    color: var(--sg-gold-2) !important;
    text-shadow: 0 1px 0 rgba(0, 0, 0, .6);
}

.site-info-description li,
.site-info-description span,
.site-info li { color: var(--sg-text-mute) !important; }

/* ------------------------------------------------------------- download apk */
.download-apk-container {
    background-color: #0d1740 !important;
    background-blend-mode: multiply;
    box-shadow:
        inset 0 0 0 4000px rgba(13, 23, 64, .45),
        inset 0 1px 0 rgba(255, 215, 0, .35),
        inset 0 -1px 0 rgba(255, 215, 0, .35);
}

.download-apk-info,
.download-apk-section,
.download-apk-detail,
.download-apk { color: var(--sg-text) !important; }

.download-apk-info h2,
.download-apk-info h3,
.download-apk-section h2,
.download-apk-section h3,
.download-apk-title {
    color: var(--sg-gold) !important;
    text-shadow: 0 2px 0 rgba(0, 0, 0, .6);
}

.download-apk-qr-code {
    background: #fff;
    border: 2px solid var(--sg-gold);
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(255, 215, 0, .35), 0 8px 20px rgba(0, 0, 0, .5);
}

.download-apk-qr-code img {
    object-fit: contain;
    background: #fff;
    padding: 5px;
    border-radius: 8px;
    box-sizing: border-box;
}

/* Telegram banner - artwork kept untouched (explicit requirement), only the
   frame around it is themed                                                */
.telegram-banner-container {
    background: linear-gradient(180deg, #0b1236 0%, #060a20 100%) !important;
}

.telegram-banner-container img {
    border-radius: 12px;
    border: 1px solid rgba(255, 215, 0, .38);
    box-shadow: 0 8px 22px rgba(0, 0, 0, .5);
}

/* ------------------------------------------------------------------- footer */
.site-footer {
    background:
        radial-gradient(120% 150% at 50% 0%, rgba(43, 63, 143, .42) 0%, rgba(6, 10, 32, 0) 65%),
        linear-gradient(180deg, #0d1740 0%, #080e29 60%, #05081c 100%) !important;
    border-top: 1px solid rgba(255, 215, 0, .45);
    color: var(--sg-text-dim) !important;
}

.site-footer::before {
    content: "";
    display: block;
    height: 2px;
    background: linear-gradient(90deg, rgba(255, 215, 0, 0) 0%, #ffd700 20%, #ffffff 50%, #ffd700 80%, rgba(255, 215, 0, 0) 100%);
    box-shadow: 0 0 18px rgba(255, 215, 0, .6);
}

.footer-section-title,
.site-info-title { color: var(--sg-gold) !important; text-shadow: 0 2px 0 rgba(0, 0, 0, .65); }

.site-info-description,
.site-info,
.footer-links a,
.footer-links li,
.site-info li { color: var(--sg-text-dim) !important; }

.footer-links a:hover,
.site-info a:hover { color: var(--sg-gold) !important; }

.footer-separator,
hr.footer-separator {
    border-top-color: rgba(255, 215, 0, .24) !important;
    border-bottom-color: transparent !important;
}

.site-info-container {
    background: linear-gradient(180deg, rgba(29, 45, 112, .58) 0%, rgba(11, 18, 54, .58) 100%);
    border: 1px solid rgba(255, 215, 0, .2);
    border-radius: 12px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1), 0 6px 18px rgba(0, 0, 0, .35);
}

/* quick contact pills */
.site-info a[href],
.site-info-description a[href] {
    color: var(--sg-gold-1) !important;
    background: linear-gradient(180deg, #22347c 0%, #131f52 100%);
    border: 1px solid rgba(255, 215, 0, .35);
    border-radius: 999px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .2), 0 3px 8px rgba(0, 0, 0, .45);
    transition: border-color .15s ease, box-shadow .15s ease, color .15s ease;
}

.site-info a[href]:hover,
.site-info-description a[href]:hover {
    color: #241a00 !important;
    background: var(--sg-gold-soft);
    border-color: #8a6608;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .65), 0 0 16px rgba(255, 215, 0, .5);
}

/* ------------------------------------------------------------ provider wall */
.provider-section {
    background:
        radial-gradient(100% 120% at 50% 0%, rgba(26, 42, 108, .55) 0%, rgba(6, 10, 32, 0) 70%),
        linear-gradient(180deg, #0a1233 0%, #060a20 100%) !important;
    border-top: 1px solid rgba(255, 215, 0, .28);
}

.provider-section img {
    filter: drop-shadow(0 3px 6px rgba(0, 0, 0, .55));
    transition: filter .2s ease, transform .2s ease;
}

.provider-section img:hover {
    filter: drop-shadow(0 0 12px rgba(255, 215, 0, .6));
    transform: translateY(-2px);
}

/* ------------------------------------------------------------------ article */
.site-description h1 {
    background: var(--sg-gold-grad);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .7));
    color: var(--sg-gold) !important;
}

.site-description p {
    color: #d7dffa !important;
    font-size: 13.5px;
    line-height: 1.75;
}

.site-description { color: var(--sg-text-dim) !important; }

.site-description a {
    color: var(--sg-gold-2) !important;
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 215, 0, .5);
}

.site-description a:hover { color: #fff !important; border-bottom-color: #fff; }

/* ------------------------------------------------------------------- modals */
.modal-backdrop {
    background: radial-gradient(60% 60% at 50% 40%, rgba(11, 18, 54, .88) 0%, rgba(3, 6, 20, .96) 100%) !important;
}

.modal-content {
    background:
        radial-gradient(120% 150% at 50% 0%, rgba(43, 63, 143, .55) 0%, rgba(11, 18, 54, 0) 70%),
        linear-gradient(180deg, #16235f 0%, #0b1236 100%) !important;
    border: 1px solid rgba(255, 215, 0, .55) !important;
    border-radius: 14px;
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, .14),
        0 0 40px rgba(255, 215, 0, .2),
        0 24px 60px rgba(0, 0, 0, .7) !important;
    color: var(--sg-text-dim) !important;
}

.modal-title,
.modal-header { color: var(--sg-gold) !important; border-bottom-color: rgba(255, 215, 0, .28) !important; }

.modal .modal-header .close,
.modal .close {
    color: var(--sg-gold) !important;
    opacity: .95 !important;
    text-shadow: 0 0 10px rgba(255, 215, 0, .7);
    font-size: 26px;
    line-height: 1;
}

.modal .modal-header .close:hover,
.modal .close:hover { color: #fff !important; opacity: 1 !important; }

.popup-modal .modal-content { position: relative; }

.popup-modal .modal-header {
    position: absolute !important;
    top: 6px;
    right: 8px;
    left: auto;
    z-index: 30;
    display: block !important;
    padding: 0 !important;
    margin: 0 !important;
    border: 0 !important;
    min-height: 0 !important;
    background: transparent !important;
}

.popup-modal .modal-header .close,
.popup-modal .modal-header .modal-title { float: none !important; }

.popup-modal .modal-header .close {
    width: 34px;
    height: 34px;
    display: flex !important;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(180deg, #2b3f8f 0%, #131f52 100%);
    border: 1px solid var(--sg-gold);
    box-shadow: 0 4px 12px rgba(0, 0, 0, .55), inset 0 1px 0 rgba(255, 255, 255, .3);
}

.popup-modal .modal-body { color: var(--sg-text-dim) !important; }
.modal-footer { border-top-color: rgba(255, 215, 0, .24) !important; }

/* -------------------------------------------------------------- form fields */
input,
select,
textarea,
.form-control {
    background: rgba(6, 10, 32, .78) !important;
    border: 1px solid rgba(255, 215, 0, .35) !important;
    color: var(--sg-text) !important;
    border-radius: 8px;
    box-shadow: inset 0 2px 6px rgba(0, 0, 0, .55);
}

input:focus,
.form-control:focus {
    border-color: var(--sg-gold) !important;
    box-shadow: inset 0 2px 6px rgba(0, 0, 0, .55), 0 0 0 3px rgba(255, 215, 0, .2) !important;
}

/* --------------------------------------------------------------- scrollbar */
::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-track { background: #060a20; }

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #ffe98a, #ffd700 45%, #b8860b);
    border-radius: 8px;
    border: 2px solid #060a20;
}

::-webkit-scrollbar-thumb:hover { background: linear-gradient(180deg, #fff9d6, #ffd700 55%, #e0b400); }

::selection { background: rgba(255, 215, 0, .38); color: #fff; }

/* ======================================================== promo overlay === */
div[style*="z-index: 9999"] {
    background:
        radial-gradient(70% 60% at 50% 30%, rgba(26, 42, 108, .82) 0%, rgba(6, 10, 32, .93) 100%) !important;
    backdrop-filter: blur(2px) !important;
    -webkit-backdrop-filter: blur(2px) !important;
}

div[style*="z-index: 9999"] > div {
    background:
        radial-gradient(120% 130% at 50% 0%, rgba(43, 63, 143, .55) 0%, rgba(11, 18, 54, 0) 65%),
        linear-gradient(180deg, rgba(22, 35, 95, .96) 0%, rgba(9, 15, 45, .97) 100%) !important;
    border: 1px solid rgba(255, 215, 0, .55);
    border-radius: 16px;
    padding: 16px !important;
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, .1),
        0 0 40px rgba(255, 215, 0, .18),
        0 24px 60px rgba(0, 0, 0, .75);
    position: relative;
}

div[style*="z-index: 9999"] img {
    border-radius: 12px !important;
    box-shadow: 0 10px 26px rgba(0, 0, 0, .6), 0 0 0 1px rgba(255, 215, 0, .35);
}

div[style*="z-index: 9999"] a[href] {
    color: #241a00 !important;
    background: linear-gradient(180deg, #fff9d6 0%, #ffe98a 22%, #ffd700 55%, #b8860b 100%) !important;
    border: 1px solid #8a6608 !important;
    border-radius: 10px !important;
    text-shadow: 0 1px 0 rgba(255, 255, 255, .6) !important;
    font-weight: 700 !important;
    letter-spacing: .5px;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, .85),
        inset 0 -2px 0 rgba(138, 102, 8, .5),
        0 4px 0 #7a5c07,
        0 8px 18px rgba(0, 0, 0, .5) !important;
    transition: transform .12s ease, box-shadow .12s ease, filter .12s ease;
}

div[style*="z-index: 9999"] a[href]:hover {
    filter: brightness(1.07);
    transform: translateY(-1px);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, .95),
        inset 0 -2px 0 rgba(138, 102, 8, .45),
        0 5px 0 #7a5c07,
        0 10px 26px rgba(255, 215, 0, .35) !important;
}

div[style*="z-index: 9999"] h2 {
    color: var(--sg-gold-1) !important;
    text-shadow: 0 2px 0 rgba(0, 0, 0, .6), 0 0 14px rgba(255, 215, 0, .25);
}

div[style*="z-index: 9999"] > div > div:last-child { color: var(--sg-text-mute) !important; }

div[style*="z-index: 9999"] span[style*="color"] {
    color: var(--sg-gold) !important;
    text-shadow: 0 0 10px rgba(255, 215, 0, .45);
}

div[style*="z-index: 9999"] a[href] + a[href] {
    background: linear-gradient(180deg, #33499b 0%, #1a2a6c 55%, #131f52 100%) !important;
    color: var(--sg-gold-1) !important;
    border-color: rgba(255, 215, 0, .65) !important;
    text-shadow: 0 1px 0 rgba(0, 0, 0, .5) !important;
}

.sg-overlay-close {
    position: fixed;
    top: 18px;
    right: 22px;
    z-index: 10001;
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    line-height: 1;
    font-weight: 700;
    color: #241a00;
    cursor: pointer;
    border: 1px solid #8a6608;
    border-radius: 50%;
    background: linear-gradient(180deg, #fff9d6 0%, #ffe98a 25%, #ffd700 55%, #e0b400 100%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, .85),
        0 6px 16px rgba(0, 0, 0, .55),
        0 0 20px rgba(255, 215, 0, .5);
    transition: transform .15s ease, box-shadow .15s ease;
}

.sg-overlay-close:hover {
    transform: rotate(90deg) scale(1.06);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, .95),
        0 8px 20px rgba(0, 0, 0, .6),
        0 0 28px rgba(255, 215, 0, .75);
}

/* --------------------------------------------------- narrow screen guards */
/* the export only ships the desktop stylesheets, so the fixed width jackpot
   box would otherwise be cropped on phones - it is scaled to the viewport */
@media (max-width: 767px) {
    .home-progressive-jackpot {
        left: auto !important;
        right: auto !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 auto !important;
    }

    .home-progressive-jackpot .outer-container,
    .home-progressive-jackpot .inner-container,
    .home-progressive-jackpot .jackpot-border-container,
    .home-progressive-jackpot .jackpot-inner-container {
        left: auto !important;
        right: auto !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    #progressive_jackpot::after {
        font-size: 20px;
        letter-spacing: 1px;
    }
}

@media (max-width: 380px) {
    #progressive_jackpot::after { font-size: 17px; }
}

/* sprite icons stay crisp and bright */
i[data-icon] {
    background-repeat: no-repeat;
    background-size: contain;
    filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .55));
}

/* no sideways scrolling on narrow screens */
html,
body {
    overflow-x: hidden;
    max-width: 100%;
}
