dialog {
  position: absolute;
  left: 0; right: 0;
  width: -moz-fit-content;
  width: -webkit-fit-content;
  width: fit-content;
  height: -moz-fit-content;
  height: -webkit-fit-content;
  height: fit-content;
  margin: auto;
  border: solid;
  padding: 1em;
  background: white;
  color: black;
  display: block;
}

dialog:not([open]) {
  display: none;
}

dialog + .backdrop {
  position: fixed;
  top: 0; right: 0; bottom: 0; left: 0;
  background: rgba(0,0,0,0.1);
}

._dialog_overlay {
  position: fixed;
  top: 0; right: 0; bottom: 0; left: 0;
}

dialog.fixed {
  position: fixed;
  top: 50%;
  transform: translate(0, -50%);
}
/* Fallbacks for Chrome/WebView 57+, including pre-flex-gap engines. */
.phone{height:calc(100vh - 48px);max-height:846px}
.web-auth{width:440px;max-width:calc(100vw - 24px);max-height:calc(100vh - 28px)}
.web-auth:not([open]){display:none}
.web-auth[open]{position:fixed;top:50%;left:50%;right:auto;bottom:auto;transform:translate(-50%,-50%);margin:0;z-index:200}
.web-auth+.backdrop{position:fixed;top:0;right:0;bottom:0;left:0;background:rgba(11,3,11,.85);z-index:199}
.web-language[open]{z-index:202}.web-language+.backdrop{z-index:201}
.test-ad__card{width:320px;max-width:86vw}
.rd-ban{height:auto;min-height:100px}
.no-flex-gap .web-account-bar>*+*,.no-flex-gap .web-account-who>*+*{margin-left:8px}
.no-flex-gap .web-auth-brand>*+*{margin-left:9px}
.no-flex-gap .web-recovery-check>*+*{margin-left:8px}
.no-flex-gap .top>*+*,.no-flex-gap .chips>*+*{margin-left:6px}
@media(max-width:880px){.phone{height:100%;max-height:none}.stage{height:100%;min-height:0}.app{min-height:0}}
@media(prefers-reduced-motion:reduce){.app-bg .blob,.boot .halo,.orbit-c{animation:none!important}}
.dlg-box{width:340px;max-width:100%}
/* Old Android ignores overflow-wrap:anywhere; long wallet strings must wrap. */
.rev .rr2 b{overflow-wrap:break-word;word-break:break-all}
.web-auth-intro,.web-auth-error{overflow-wrap:break-word;word-break:break-word}
.no-flex-gap .task>*+*{margin-left:12px}
.no-flex-gap .rev .rr2>*+*{margin-left:10px}
/* Keyboard viewport: scroll the form within the visible area, including pan. */
.web-auth{max-height:calc(var(--ce-visible-h,100vh) - 24px);-webkit-overflow-scrolling:touch}
.web-auth[open]{top:var(--ce-visible-center,50%)}
@media(max-width:880px){
 .stage{height:var(--ce-layout-h,100%)}
 .sheet{position:fixed;top:var(--ce-visible-top,0px);bottom:auto;height:var(--ce-visible-h,100%)}
 .sheet .panel{max-height:calc(var(--ce-visible-h,100vh) - 12px);-webkit-overflow-scrolling:touch}
 .ce-input-focused .web-auth-card{padding-top:18px;padding-bottom:18px}
}
/* Short landscape screens must be able to scroll pause/result controls. */
.gm-cover{overflow-y:auto}
.gm-card{max-height:100%;overflow-y:auto;-webkit-overflow-scrolling:touch}

/* Regional controls remain scrollable and wrap on older Android browsers. */
.region-bar{padding:8px 12px;margin:6px 0 14px;border:1px solid rgba(255,255,255,.12);border-radius:16px;position:relative}
.region-bar p{font-size:12px;line-height:1.5;margin:8px 0;color:#f4c680}
.region-bar small{font-size:10px}.region-bar a{color:inherit}
.region-select{display:block;width:100%;max-width:100%;padding:14px;margin:10px 0 16px;background:#301323;color:white;border:1px solid #77405c;border-radius:12px;font-size:16px}
.region-check{display:flex;align-items:center;font-size:14px;line-height:1.5;margin:16px 0}.region-check input{width:20px;height:20px;margin-inline-end:10px}
.region-channel{display:flex;flex-wrap:wrap;justify-content:space-between;padding:14px 0;border-bottom:1px solid rgba(255,255,255,.12)}.region-channel small{display:block;width:100%;color:#e0a77d;margin-top:5px}
[data-usd]{unicode-bidi:isolate;direction:ltr;display:inline-block}

.region-reward{display:block;font-size:10px;opacity:.7;line-height:1.4;margin-top:2px}

/* Keep the local value visibly attached to the home cherry balance. */
.home-balance{display:flex;align-items:baseline;flex-wrap:wrap;column-gap:8px;row-gap:2px;max-width:100%;padding-inline-end:8px}
.home-balance .home-balance-unit{font-size:15px;font-weight:650;line-height:1.4}
.home-balance .home-balance-money{display:block;flex-basis:100%;font-size:25px;font-weight:800;line-height:1.35;letter-spacing:0;color:#fff;overflow-wrap:anywhere;margin-bottom:6px}
@media(max-width:380px){.home-balance .home-balance-money{font-size:22px}}

/* Keep scrollable controls out of the fixed navigation hit area. */
#main{margin-bottom:116px;margin-bottom:calc(116px + env(safe-area-inset-bottom));padding-bottom:24px;min-height:0;scroll-padding-bottom:24px}
.nav .tab.center{overflow:hidden;padding-bottom:8px}
.nav .tab.center .orb{top:6px;width:44px;height:44px;margin-left:-22px;pointer-events:none}
.nav .tab.center .orb *{pointer-events:none}
.nav .tab.center .orb .lot{width:48px;height:48px;margin:-24px 0 0 -24px}

/* Promo codes are temporarily unavailable; hide entries before JS loads. */
#homeRedeem[hidden],[data-act="redeem"][hidden]{display:none!important}

/* Lightweight platform shortcuts: no third-party SDK or tracking script. */
.social-share{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));grid-gap:8px;gap:8px;margin-top:14px}
.social-btn{min-height:88px;border:1px solid rgba(255,255,255,.14);border-radius:15px;background:#2b1022;color:#fff;padding:10px 4px;display:flex;flex-direction:column;align-items:center;justify-content:center;font-size:12px;line-height:1.3;overflow-wrap:break-word}
.social-btn i{display:grid;place-items:center;width:30px;height:30px;border-radius:10px;background:var(--social,#704760);font-size:22px;font-weight:800;font-style:normal;margin-bottom:6px}
.social-btn small{font-size:9px;line-height:1.3;margin-top:4px;color:#e6bbd2}
.social-btn.wa{--social:#087c43}.social-btn.ms{--social:#7955df}.social-btn.fb{--social:#1764ce}.social-btn.sx{--social:#080808}.social-btn.tg{--social:#087ea8}
.social-btn:focus-visible{outline:2px solid #ffc94d;outline-offset:2px}
#shareFallbackLink{font-size:14px;width:100%;margin:12px 0}

.manual-payout label{display:block;margin:14px 0;font-size:13px}.manual-payout label>span{display:block;margin-bottom:7px}.manual-payout .inp1{width:100%;font-size:16px;text-align:start}.review-note{display:block;white-space:pre-wrap;overflow-wrap:break-word}#mpQuote{font-size:18px;font-weight:700;overflow-wrap:break-word}

/* Translated labels need real space, including narrow Android screens. */
.btn,.btn.sm,.btn.big{height:auto;min-height:44px;max-width:100%;padding-top:10px;padding-bottom:10px;white-space:normal;line-height:1.35;text-align:center;overflow-wrap:break-word;word-wrap:break-word}
.btn.sm{min-height:36px}.btn.big{min-height:54px}
.btn>span{min-width:0;max-width:100%;overflow-wrap:break-word;word-break:break-word}
.btn .ic,.btn .cherry-ico{flex-shrink:0}
.btn.busy::after{min-width:0;overflow-wrap:break-word}
.task .tbtn{flex:0 0 96px;padding:10px 7px}
.linkbox .btn{min-height:40px;padding:0;flex-shrink:0}
.social-btn{min-width:0;padding:12px 8px;min-height:104px;border-color:rgba(255,255,255,.18);background:linear-gradient(155deg,#3b1730,#25101f);box-shadow:inset 0 1px 0 rgba(255,255,255,.05);text-align:center}
.social-btn>span,.social-btn>small{display:block;width:100%;min-width:0;max-width:100%;white-space:normal;overflow-wrap:break-word;word-wrap:break-word;word-break:break-word}
.social-btn i{flex-shrink:0;width:34px;height:34px;margin-bottom:8px}
.social-btn:active{background:#481b38;transform:translateY(1px)}
@media(max-width:359px){.social-share{grid-template-columns:repeat(2,minmax(0,1fr))}.btn{padding-left:12px;padding-right:12px}.task{grid-gap:8px;gap:8px}.task .tbtn{flex-basis:88px}.no-flex-gap .task>*+*{margin-left:8px}}
.task .tbtn{width:112px;flex-basis:112px;padding-left:7px;padding-right:7px}
#taskCats button .l,#taskCats button .n{white-space:normal;overflow:visible;text-overflow:clip;overflow-wrap:break-word;line-height:1.3}
#taskCats button .tb{width:100%;min-width:0}
.web-auth button,.web-account-bar button{max-width:100%;white-space:normal;overflow-wrap:break-word;line-height:1.4}
@media(max-width:420px){.tk-head{flex-wrap:wrap}.tk-head .tk-t{flex:1;min-width:0}.tk-head #xAdd{flex:0 0 100%;width:100%;margin-top:8px}#taskCats button{padding-left:5px;padding-right:5px}#taskCats button .l{font-size:11.5px}}
@media(max-width:380px){#taskCats{grid-template-columns:repeat(2,minmax(0,1fr));grid-gap:6px!important;gap:6px!important}#taskCats .tc-ind{display:none}#taskCats button{padding:10px;align-items:center}#taskCats button .l,#taskCats button .n{text-align:center}#taskCats button.on{background:rgba(255,201,77,.16);box-shadow:inset 0 0 0 1px rgba(255,201,77,.4)}}
#payoutCountry,#payoutHistory{margin-top:10px}.sheet .sh-sub a{color:#f4bdcf;text-underline-offset:3px}

.promotion-visit{z-index:400}.promotion-visit .test-ad__card{max-height:calc(100vh - 32px);overflow:auto}.promotion-visit .promotion-info{line-height:1.5;margin:12px 0 20px}.promotion-visit .btn{text-decoration:none}.promotion-visit .test-ad__count{font-size:15px;line-height:1.5;overflow-wrap:break-word;margin:18px 0}.promotion-visit .test-ad__skip{margin-top:16px}#mpConfirmation{padding:14px;margin-bottom:12px;line-height:1.6}#mpConfirmedAmount{display:block;overflow-wrap:break-word}
.promotion-visit .promotion-open{color:#fff}

#xAdd{display:none!important}.region-bar{display:flex;flex-wrap:wrap;gap:8px;align-items:center}.region-bar #regionNotice[hidden]{display:none}

/* A solid lightweight bar avoids a dark masked notch and clipped mascot. */
.nav .barbg{-webkit-mask:none;mask:none;backdrop-filter:none;-webkit-backdrop-filter:none;background:linear-gradient(180deg,#301322,#200d19)}
.nav .shadow{box-shadow:0 5px 14px -8px rgba(0,0,0,.45);pointer-events:none}
.nav .tab.center .orb{animation:none;box-shadow:0 3px 10px rgba(255,45,111,.25),inset 0 1px 0 rgba(255,255,255,.3)}
#taskCats [data-cat="Exclusive"],#taskCats [data-cat="Partners"]{display:none!important}

/* Make payout selection visibly interactive without duplicating its options. */
#mpMethod{appearance:none;-webkit-appearance:none;min-height:54px;padding:15px 48px 15px 16px;border:2px solid #ff80b0;background-color:#4a2037;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20'%3E%3Cpath d='m5 7 5 5 5-5' fill='none' stroke='white' stroke-width='2.5' stroke-linecap='round'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 16px center;font-weight:700;cursor:pointer;box-shadow:0 0 0 3px rgba(255,80,150,.1)}
#mpMethod:focus{outline:3px solid #ffd275;outline-offset:2px}
#mpMethod option,#mpMethod optgroup{background:#301323;color:#fff}
[dir=rtl] #mpMethod{padding-left:48px;padding-right:16px;background-position:left 16px center}

.web-auth-tabs button{white-space:normal;line-height:1.5;min-height:56px;font-size:14px}.web-auth-tabs .selected{background:#9b2856;border:1px solid #ff94b9;font-weight:800}.web-auth #webLoginRegister{margin-top:16px;background:#fff;color:#9b1749;border:2px solid #ff8bb2}.web-auth #webLoginRegister[hidden]{display:none}

#earnBtn[hidden]{display:none!important}

.web-auth .web-show-password{display:flex;align-items:center;gap:10px;min-height:44px;font-size:14px;cursor:pointer}.web-show-password input{width:20px;height:20px;accent-color:#ff6097}.web-auth .web-show-password span{flex:1}

.home-play{font-weight:800!important;min-height:48px;white-space:normal}.balance .acts{align-items:stretch}.gx-label{scroll-margin-top:12px}.gd-acts{margin-top:14px}

/* Ethiopia identity; cash amounts use ETB, cherries are decorative. */
.telegram-entry{position:fixed;inset:0;z-index:9999;background:#071a15;color:#fff;padding:25vh 24px 24px;text-align:center;font:16px system-ui;overflow:auto}
.telegram-entry .btn{display:block;max-width:320px;margin:24px auto;padding:18px;background:#20b984;color:#071a15;border-radius:16px;text-decoration:none}
html[lang="am"]{--display:system-ui,sans-serif;--body:system-ui,sans-serif}
.home-balance .home-balance-money{display:none}
#mpProvider,#mpDetails{max-width:100%}
.preview{font-size:10px;max-width:95%;white-space:nowrap}
