.language-picker{display:inline-flex;align-items:center;justify-content:center;min-width:56px;height:38px;padding:0 10px;border:1px solid #405449;border-radius:10px;background:#172820;color:#d4f6b4;font-size:11px;font-weight:700;cursor:pointer}.language-picker:hover{background:#294032}.language-dialog{width:min(520px,calc(100vw - 28px));max-height:85dvh;padding:24px;border:1px solid #3e5449;border-radius:20px;color:#eef6f0;background:linear-gradient(140deg,#1b2c24,#101b22);box-shadow:0 24px 100px #0009}.language-dialog::backdrop{background:#030a12bb;backdrop-filter:blur(8px)}.language-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:20px}.language-heading h2{margin:0;font-size:23px}.language-close{border:0;background:#ffffff0c;color:#d7e5db;border-radius:50%;width:36px;height:36px;font-size:25px}.language-options{display:grid;grid-template-columns:1fr 1fr;gap:9px}.language-options button{display:flex;justify-content:space-between;align-items:center;gap:8px;min-height:48px;padding:12px;border:1px solid #ffffff12;border-radius:10px;background:#ffffff04;color:#dce9e1;text-align:left;font-size:13px}.language-options button:hover,.language-options button.selected{background:#b2ee7517;border-color:#b2ee7577;color:#d9ffb6}.language-options small{font-size:9px;color:#8caa99}@media(max-width:760px){.header-actions{gap:6px}.language-picker{min-width:42px;height:34px;padding:0 6px;font-size:10px}.language-dialog{padding:18px}.language-options{gap:7px}.language-options button{font-size:12px}.header-left .header-mode,.header-left .header-divider{display:none}}

/* Language control lives with navigation on desktop. */
.language-mobile{display:none}
.language-sidebar{margin:26px 7px 0;padding-top:20px;border-top:1px solid #ffffff0d}
.language-desktop{display:flex;width:100%;min-height:62px;height:auto;gap:11px;justify-content:flex-start;padding:12px;background:linear-gradient(130deg,#22352c80,#14231e80);border:1px solid #c2d6c71c;border-radius:12px;color:#e9f0eb;text-align:left;box-shadow:inset 0 1px 0 #ffffff05}
.language-flag{font-family:'Apple Color Emoji','Segoe UI Emoji',sans-serif;font-size:23px;line-height:1;flex-shrink:0}
.language-current{display:flex;flex-direction:column;gap:3px;min-width:0}
.language-current small{font-size:9px;line-height:1.2;font-weight:500;color:#93a79c;letter-spacing:.5px}
.language-current strong{font-size:12px;line-height:1.4;font-weight:600}
.language-chevron{margin-left:auto;color:#93a79c;font-size:16px}
.language-desktop:hover{border-color:#a8d48255;background:#243b2d}
.language-dialog{width:min(560px,calc(100vw - 28px));padding:26px;background:radial-gradient(ellipse at 0 0,#2c453235,transparent 70%),#121f1b;border-color:#a2c2ae30;border-radius:22px}
.language-heading{padding-bottom:20px;border-bottom:1px solid #ffffff0c}.language-heading h2{font-size:22px;letter-spacing:-.5px}
.language-options{gap:8px}.language-options button{min-height:58px;justify-content:flex-start;padding:14px;gap:12px;border-radius:12px;background:#ffffff03;border-color:transparent}
.language-options button:hover{background:#ffffff09;border-color:#ffffff14}.language-options button.selected{background:#b2ee7510;border-color:#b2ee7545}
.language-option-name{font-size:13px;font-weight:500}.language-check{margin-left:auto;color:#b2ee75;visibility:hidden}.language-options button.selected .language-check{visibility:visible}
@media(max-width:760px){.language-mobile{display:flex;gap:4px;padding:0 7px;background:#ffffff05;border-color:#ffffff18;min-width:45px}.language-mobile .language-flag{font-size:20px}.language-mobile .language-current{display:none}.language-mobile .language-chevron{font-size:12px}.language-dialog{padding:20px;max-height:85dvh}.language-options button{padding:12px 10px;gap:9px}.language-options .language-flag{font-size:21px}.language-option-name{font-size:12px}}

.language-standalone{display:flex!important;position:fixed;right:18px;bottom:24px;z-index:100;box-shadow:0 8px 24px #0005}.language-standalone .language-current{display:none}
/* Compact language palette with a fixed header and its own scroll region. */
.language-dialog{box-sizing:border-box;width:min(660px,calc(100vw - 32px));max-width:660px;max-height:min(640px,calc(100dvh - 48px));padding:0;margin:auto;overflow:hidden;background:radial-gradient(ellipse at 0 0,#28403933,transparent 60%),#131e28;color-scheme:dark;border:1px solid #718c9f33;border-radius:22px;box-shadow:0 32px 100px #0008}
.language-dialog[open]{display:flex;flex-direction:column}
.language-heading{flex-shrink:0;margin:0;padding:25px 26px 18px;border-bottom:0}.language-heading h2{font-size:24px;font-weight:600}.language-close{background:#ffffff07;border:1px solid #ffffff0a;width:34px;height:34px;font-size:22px}.language-close:hover{background:#ffffff14}
.language-search{display:flex;align-items:center;gap:10px;flex-shrink:0;margin:0 26px 20px;padding:12px 14px;border:1px solid #40566980;background:#0b141d99;border-radius:11px;color:#8da5b5}.language-search:focus-within{border-color:#b2ee7570;box-shadow:0 0 0 3px #b2ee7508}.language-search input{background:none;border:0;color:#edf5f8;width:100%;min-width:0;outline:none;font-size:13px;padding:0}.language-search input::placeholder{color:#8c9eac}
.language-options{min-height:0;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#47586c transparent;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;margin:0;padding:0 20px 24px;scroll-padding:12px}
.language-options::-webkit-scrollbar{width:5px}.language-options::-webkit-scrollbar-thumb{background:#47586c;border-radius:12px}.language-options::-webkit-scrollbar-track{background:transparent}
.language-options button{min-height:58px;padding:12px 10px;border-radius:11px;border:1px solid #ffffff08;background:#ffffff02;gap:10px}.language-options button:hover{background:#ffffff07;border-color:#ffffff20}.language-options button.selected{background:#b2ee750b;border-color:#b2ee7550}.language-options .language-flag{font-size:22px}.language-option-name{font-size:12px}.language-check{font-size:12px}
.language-options button[hidden]{display:none!important}.language-options:has(button:not([hidden])){align-content:start}
html:has(dialog[open]){overflow:hidden}
@media(max-width:600px){.language-dialog{width:calc(100vw - 24px);max-height:calc(100dvh - 32px);border-radius:18px}.language-heading{padding:22px 20px 16px}.language-search{margin:0 20px 16px}.language-options{grid-template-columns:repeat(2,minmax(0,1fr));padding:0 14px 20px;gap:6px}.language-options button{min-height:54px;padding:11px 9px}.language-heading h2{font-size:22px}}
/* Draw close and disclosure icons independently of font baselines. */
.language-close{display:grid;place-items:center;padding:0;line-height:1;flex-shrink:0;box-sizing:border-box}
.language-close svg{display:block;width:18px;height:18px;margin:0;flex-shrink:0}
.language-chevron{display:block;width:16px;height:16px;flex-shrink:0;align-self:center}
.language-mobile .language-chevron{width:13px;height:13px}
/* Arabic layout; keep addresses, ticker symbols and game boards in their source order. */
html[dir=rtl] #sidebar{left:auto;right:0;border-right:0;border-left:1px solid #263546}
html[dir=rtl] .shell{margin-left:0;margin-right:222px}
html[dir=rtl] .language-chevron{margin-left:0;margin-right:auto}
html[dir=rtl] .language-check{margin-left:0;margin-right:auto}
html[dir=rtl] .search-result>.icon{margin-left:0;margin-right:auto}
html[dir=rtl] :is(code,kbd,input[type=number],#currency-open,.nr-board,.bs-reels,.av-reels,.roulette-wrap,.playing-hand){direction:ltr;unicode-bidi:isolate}
html[dir=rtl] .search-result strong{direction:ltr;unicode-bidi:isolate;display:block}
html[dir=rtl] :is(.language-desktop,.language-options button){text-align:start}
html[dir=rtl] .language-flag{direction:ltr;unicode-bidi:isolate}
@media(max-width:1200px){html[dir=rtl] .shell{margin-right:195px}}
@media(max-width:980px){html[dir=rtl] .shell{margin-right:175px}}
html[dir=rtl] body.nav-collapsed .shell{margin-right:0}
@media(max-width:760px){html[dir=rtl] .shell{margin-right:0}html[dir=rtl] #sidebar{transform:translateX(100%)}html[dir=rtl] #sidebar.open{transform:translateX(0)}}
html[dir=rtl] body.nav-collapsed #sidebar{transform:translateX(100%)}
html[lang=ar] body,html[lang=ar] :is(h1,h2,h3,button,input,select){font-family:Tahoma,Arial,sans-serif}
html[dir=rtl] .hero-art-scene{right:auto;left:0}
html[dir=rtl] .daily-coin{right:auto;left:0}
html[dir=rtl] .hero-daily::after{background:linear-gradient(270deg,#202f43,transparent)}
html[dir=rtl] .wallet-hero::before,html[dir=rtl] .wallet-hero::after{transform:scaleX(-1)}
html[dir=rtl] .reward-grid .reward-card{--rtl-reward-image:url('assets/rewards/daily-drop-v2.webp');--rtl-reward-base:#06120e;background-image:none}
html[dir=rtl] .reward-grid .welcome-card{--rtl-reward-image:url('assets/rewards/welcome-gift-v2.webp');--rtl-reward-base:#0e0b1d}
html[dir=rtl] .reward-grid .reward-card::before{content:"";position:absolute;inset:0;z-index:-1;background:linear-gradient(90deg,var(--rtl-reward-base) 0%,transparent 78%),linear-gradient(0deg,var(--rtl-reward-base),transparent 70%),var(--rtl-reward-image) center/cover;transform:scaleX(-1);pointer-events:none}
html[dir=rtl] .deposit-address-box :is(code,strong){direction:ltr;unicode-bidi:isolate}
@media(max-width:760px){html[dir=rtl] .hero-art-scene{left:-6%;right:auto}}
