.demo-mode{margin:0;padding:6px 12px;text-align:center;font:11px/1.4 "Dynasty Nunito","Segoe UI",sans-serif;letter-spacing:.2px;color:#b9a6c9;background:#181020;border-bottom:1px solid #b58ad51c}
#info-dialog.topup-dialog{width:min(432px,calc(100% - 24px));max-height:90dvh;padding:26px;border:1px solid #78588e66;border-radius:30px;background:#181120;color:#f4ecfc;font-family:"Dynasty Nunito","Segoe UI",sans-serif;box-shadow:0 24px 90px #06020bc4;scrollbar-width:none}
#info-dialog.topup-dialog::-webkit-scrollbar{display:none;width:0;height:0}
#info-dialog.topup-dialog::backdrop{background:#08040cc9;backdrop-filter:blur(10px)}
#info-dialog.topup-dialog .dialog-x{z-index:2;right:16px;top:16px;width:32px;height:32px;border-radius:50%;background:#ffffff06;border-color:#ffffff10;color:#bba9c8}
.topup-heading{position:relative;padding-right:30px}
.topup-symbol{display:grid;place-items:center;width:49px;height:49px;margin-bottom:16px;border:1px solid #dab2ee29;background:#352342;border-radius:17px;transform:rotate(-8deg)}
.topup-symbol .stars-icon{width:29px;height:29px;transform:rotate(8deg)}
#info-dialog.topup-dialog .topup-kicker{margin:0 0 5px;color:#b79acb;font-size:10px;font-weight:900;line-height:1.4;letter-spacing:1.7px}
#info-dialog.topup-dialog h2{margin:0;padding:0;font-size:29px;font-weight:900;line-height:1.15;letter-spacing:-.9px}
#info-dialog.topup-dialog .topup-subtitle{margin:8px 0 20px;font-size:13px;line-height:1.4;color:#b6a5c4;font-weight:600}
.topup-balance{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 15px;border-radius:16px;background:#22192c;border:1px solid #cba6df15;font-size:12px;font-weight:700;color:#bcaacb}
#info-dialog.topup-dialog .wallet-number{margin:0;font-size:18px;font-weight:900;letter-spacing:0;line-height:1.3}
.topup-balance .stars-icon{width:19px;height:19px}
.wallet-wager{margin-top:12px;padding:13px 15px;border:1px solid #cba6df20;border-radius:16px;background:#201729;font-size:12px}
.wallet-wager-heading,.wallet-wager-values{display:flex;justify-content:space-between;align-items:center;gap:10px}
.wallet-wager-heading strong{font-size:12px;color:#ecdcf8;font-weight:800}
.wallet-wager-heading>span{border-radius:8px;padding:2px 7px;background:#b985df20;color:#d7b6ef;font-weight:900}
.wallet-wager-values{margin-top:9px;flex-wrap:wrap;font-size:11px;color:#bcaacb;font-variant-numeric:tabular-nums}
.wallet-wager-values b{color:#ddc2f0;font-weight:800}
.wallet-wager progress{display:block;width:100%;height:5px;margin:9px 0 11px;border:0;border-radius:8px;overflow:hidden;background:#3b2c47;accent-color:#bc86e6}
.wallet-wager progress::-webkit-progress-bar{background:#3b2c47;border-radius:8px}
.wallet-wager progress::-webkit-progress-value{background:#bc86e6;border-radius:8px}
.wallet-wager progress::-moz-progress-bar{background:#bc86e6;border-radius:8px}
.wallet-wager summary{width:fit-content;cursor:pointer;font-size:11px;color:#c7acd9;line-height:1.5}
.wallet-wager summary:focus-visible{outline:2px solid #d0a5ef;outline-offset:3px}
#info-dialog.topup-dialog .wallet-wager p{margin:8px 0 0;color:#ac96bd;font-size:11px;line-height:1.5}
#info-dialog.topup-dialog .wallet-wager .wallet-wager-availability{font-size:10px;color:#9e88ae}
.topup-section-label{display:flex;justify-content:space-between;align-items:center;margin:20px 0 10px;font-size:13px;font-weight:800;color:#eadbf5}
.topup-section-label span:last-child{color:#b8a1c7;font-size:11px;font-weight:700}
.topup-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-bottom:18px}
.topup-option{position:relative;display:flex;flex-direction:column;align-items:flex-start;gap:3px;min-height:85px;padding:14px 16px;background:#241a2e;border:1px solid #ab82c129;border-radius:19px;text-align:left;transition:background .16s,border-color .16s,transform .16s;color:#f7f0ff}
.topup-option-value{display:flex;align-items:center;gap:7px;font-size:25px;font-weight:900;line-height:1.25;letter-spacing:-.5px;font-variant-numeric:tabular-nums}
.topup-option-value .stars-icon{width:21px;height:21px}
.topup-option-label{font-size:11px;color:#bba8ca;font-weight:600}
.topup-check{position:absolute;right:10px;top:10px;display:grid;place-items:center;width:17px;height:17px;border-radius:50%;background:#d9b8f5;color:#3f1e56;font-size:12px;font-weight:900;opacity:0}
.topup-option[aria-pressed=true]{border-color:#c38ceb;background:#472c60;box-shadow:inset 0 0 0 1px #c38ceb33}
.topup-option[aria-pressed=true] .topup-option-label{color:#dfc7ef}
.topup-option[aria-pressed=true] .topup-check{opacity:1}
.topup-label{display:grid;gap:9px;font-size:12px;font-weight:800}
.topup-label>span:first-child{display:flex;justify-content:space-between;gap:12px}
.topup-label small{font-size:11px;color:#aa95ba;font-weight:600}
.topup-input-wrap{display:flex;align-items:center;gap:10px;padding:0 15px;border:1px solid #775c894f;border-radius:16px;background:#100c17;min-height:55px;transition:border-color .16s}
.topup-input-wrap:focus-within{border-color:#d0a5ef;box-shadow:0 0 0 3px #bb7beb16}
.topup-input-wrap .stars-icon{width:22px;height:22px}
.topup-input-wrap>span{font-size:12px;font-weight:700;color:#9e88ad}
.topup-input-wrap input{width:100%;min-width:0;padding:10px 0;border:0;background:transparent;color:#f4ecfc;font:900 23px/1.4 "Dynasty Nunito","Segoe UI",sans-serif;outline:0;font-variant-numeric:tabular-nums;appearance:textfield;-moz-appearance:textfield}
.topup-input-wrap input::-webkit-inner-spin-button,.topup-input-wrap input::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}
.topup-consent{display:flex;align-items:flex-start;gap:10px;margin:17px 0;color:#b5a1c4;font-size:11px;line-height:1.5;font-weight:600;cursor:pointer}
.topup-consent input{flex:none;width:17px;height:17px;margin:0;accent-color:#ba82e0;cursor:pointer}
#info-dialog.topup-dialog .topup-pay{display:flex;gap:10px;width:100%;min-height:54px;border-radius:17px;background:#dbb7f5;color:#301742;font-size:15px;font-weight:900;padding:12px 17px;box-shadow:0 3px 0 #88609f}
.topup-pay>svg{width:20px;height:20px;flex:none}
.topup-pay-arrow{margin-left:auto;font-size:22px;font-weight:700;line-height:1}
#info-dialog.topup-dialog #topup-status{margin:13px 0 0;font-size:12px;line-height:1.5;color:#e2c3f6;font-weight:700}
#topup-status:empty{display:none}
#info-dialog.topup-dialog .topup-footer{margin:17px 0 0;text-align:center;font-size:10px;line-height:1.5;color:#9984a9;font-weight:600}
.topup-footer b{color:#c0a8d0;font-weight:800;white-space:nowrap}
#info-dialog.topup-dialog .topup-debt{padding:12px;margin:12px 0 0;border:1px solid #bb8d4e40;border-radius:14px;color:#e6c695;font-size:12px;line-height:1.5}
@media(max-width:360px){#info-dialog.topup-dialog{padding:22px 18px;border-radius:25px}.topup-option{padding:13px}.topup-option-value{font-size:23px}#info-dialog.topup-dialog h2{font-size:26px}.topup-option-label{font-size:10px}}
@media(prefers-reduced-motion:reduce){.topup-option,.topup-input-wrap{transition:none}}
/* System cutouts and Telegram controls occupy separate parts of fullscreen. */
html[data-telegram]{
  --app-inset-top:calc(max(env(safe-area-inset-top,0px),var(--telegram-system-top,0px)) + var(--telegram-content-top,0px));
  --app-inset-right:calc(max(env(safe-area-inset-right,0px),var(--telegram-system-right,0px)) + var(--telegram-content-right,0px));
  --app-inset-bottom:calc(max(env(safe-area-inset-bottom,0px),var(--telegram-system-bottom,0px)) + var(--telegram-content-bottom,0px));
  --app-inset-left:calc(max(env(safe-area-inset-left,0px),var(--telegram-system-left,0px)) + var(--telegram-content-left,0px));
  --app-viewport-height:calc(var(--telegram-window-height,100dvh) - var(--app-inset-top) - var(--app-inset-bottom));
}
/* Reserve the native top controls even while Telegram reports a zero inset. */
html[data-telegram-fullscreen=true]{
  --app-inset-top:calc(max(env(safe-area-inset-top,0px),var(--telegram-system-top,0px)) + max(40px,var(--telegram-content-top,0px)));
}
html[data-telegram] body{padding:var(--app-inset-top) var(--app-inset-right) 0 var(--app-inset-left)}
html[data-telegram][data-access-gateway] body{min-height:var(--telegram-window-height,100dvh);padding-bottom:var(--app-inset-bottom)}
html[data-telegram] body #app{min-height:calc(var(--app-viewport-height) - 91px)}
html[data-telegram] body #dynasty-startup{padding:calc(16px + var(--app-inset-top)) calc(14px + var(--app-inset-right)) calc(24px + var(--app-inset-bottom)) calc(14px + var(--app-inset-left))}
html[data-telegram] body .startup-content{width:min(430px,100%,calc(var(--app-viewport-height) - 140px))}
html[data-telegram] body[data-route=wheel] #app{min-height:var(--app-viewport-height);padding:0 12px calc(12px + var(--app-inset-bottom))}
/* Keep the balance inside the safe content area, below native Telegram controls. */
html[data-telegram-fullscreen=true] body[data-route=wheel] .wheel-screen:has(.world-show) .wheel-top{position:relative;z-index:40;height:0;min-height:0;margin-block:0;pointer-events:none}
html[data-telegram-fullscreen=true] body[data-route=wheel] .wheel-top>.wallet-button{position:fixed;top:calc(var(--app-inset-top) + 4px);left:auto;right:calc(var(--app-inset-right) + 12px);z-index:40;margin:0;min-height:36px;height:36px;max-width:calc(100vw - var(--app-inset-left) - var(--app-inset-right) - 24px)}
html[data-telegram-fullscreen=true] body[data-route=wheel] .world-heading:has(.world-close){margin-top:40px}
html[data-telegram] body :is(#info-dialog,#award-dialog){inset:var(--app-inset-top) var(--app-inset-right) var(--app-inset-bottom) var(--app-inset-left);max-width:calc(100% - var(--app-inset-left) - var(--app-inset-right) - 24px);max-height:calc(var(--app-viewport-height) - 24px)}
html[data-telegram] body #info-dialog.wheel-history-dialog{top:auto;max-height:min(60dvh,calc(var(--app-viewport-height) - 24px));padding-bottom:10px}
html[data-telegram] body #award-dialog.pepe-award:is(.reveal-complete,.pepe-result-award){width:auto;height:var(--app-viewport-height);max-width:none;max-height:none;padding:20px 18px}
html[data-telegram] body .pepe-entry{padding:var(--app-inset-top) var(--app-inset-right) var(--app-inset-bottom) var(--app-inset-left)}
html[data-telegram] body #storage-warning{padding-bottom:calc(5px + var(--app-inset-bottom))}
html[data-telegram] body #toast{bottom:calc(18px + var(--app-inset-bottom))}
@media(max-width:900px){
  html[data-telegram] body .mobile-nav{bottom:max(12px,var(--app-inset-bottom));left:calc(12px + var(--app-inset-left));right:calc(12px + var(--app-inset-right))}
  html[data-telegram] body #app:not(:has(.wheel-layout)){padding-bottom:calc(110px + var(--app-inset-bottom))}
  html[data-telegram] body[data-route=wheel] #app{padding-inline:6px}
  html[data-telegram] body:not([data-route=wheel]) #toast{bottom:calc(92px + var(--app-inset-bottom))}
}
@media(max-width:700px),(max-width:950px) and (max-height:500px){
  html[data-telegram] body[data-route=wheel] #app:has(.shared-show-stage){padding-block:0}
  html[data-telegram] body[data-route=wheel] .wheel-screen:has(.shared-show-stage){height:calc(var(--app-viewport-height) + var(--app-inset-bottom));padding-bottom:calc(4px + var(--app-inset-bottom))}
}
@media(max-width:540px){
  html[data-telegram] body #info-dialog.motion-sheet{top:auto;width:auto;max-width:none;padding-bottom:22px}
}
