/* Shared desktop, phone and Telegram WebView layout. */
.mobile-shortcuts{display:none}html{scroll-padding-bottom:100px}body{overflow-x:clip}.app-shell,main,.page-section{min-width:0}dialog{max-height:calc(min(var(--app-visible-height,100dvh),var(--brainlab-viewport-height,100dvh)) - var(--brainlab-safe-top,0px) - var(--brainlab-safe-bottom,0px) - 24px);overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button,a{touch-action:manipulation}input,textarea,select{scroll-margin-block:24px}.telegram-miniapp{background-attachment:scroll}.telegram-miniapp main{padding-top:20px}.telegram-miniapp .sidebar{background:#100b19}.telegram-miniapp .main-footer{padding-bottom:12px}
@media(min-width:701px) and (max-width:1000px){main{padding-inline:22px}.inventory-columns{gap:18px}.market-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.home-case-art{height:250px}.collection-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:700px){
 body{background-attachment:scroll}.sidebar{position:relative;inset:auto;width:100%;height:56px;min-height:56px;flex-wrap:nowrap;padding:8px 14px;gap:12px;border-bottom:1px solid #33213f;z-index:30}.sidebar .brand{display:flex;min-width:0;gap:9px}.sidebar .brand>span:not(.brand-mark){display:block;font-size:16px}.sidebar .brand .brand-mark{width:30px;height:32px;font-size:23px}.sidebar .sidebar-bottom{display:block;margin-left:auto}.sidebar .help-button{display:flex;font-size:0;padding:8px;min-height:40px;min-width:40px}.sidebar .help-button>span:last-child{display:none}.sidebar .help-button svg{width:19px;height:19px}
 .sidebar nav{position:fixed;inset:auto 0 0;width:100%;max-width:none;min-height:70px;height:calc(70px + max(env(safe-area-inset-bottom,0px),var(--brainlab-safe-bottom,0px)));padding:6px 8px calc(6px + max(env(safe-area-inset-bottom,0px),var(--brainlab-safe-bottom,0px)));display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:3px;align-items:center;background:#130d20f5;border-top:1px solid #533369;box-shadow:0 -8px 24px #06030d66;backdrop-filter:blur(18px);overflow:visible;z-index:60;box-sizing:border-box}
 .sidebar nav .nav-button{display:flex;flex-direction:column;justify-content:center;gap:5px;min-width:0;width:100%;height:54px;margin:0;padding:6px 2px;border-radius:10px;box-shadow:none}.sidebar nav .nav-button>span:nth-child(2){display:block;font-size:9px;line-height:1.25;letter-spacing:0}.sidebar nav .nav-button>span:first-child{display:grid;place-items:center;height:21px;font-size:21px}.sidebar nav .nav-button svg{width:21px;height:21px}.sidebar nav .nav-button small,.sidebar nav .nav-arrow,.sidebar nav .new-dot{display:none!important}.sidebar nav [data-page="collection"]{display:none}.sidebar nav .nav-button.active{background:#67359a55;color:#e4c6ff}.app-shell{margin:0;padding-bottom:calc(86px + max(env(safe-area-inset-bottom,0px),var(--brainlab-safe-bottom,0px)))}
 .topbar{height:auto;min-height:64px;padding:10px 14px;gap:8px;flex-wrap:nowrap}.breadcrumb{font-size:9px;min-width:0;max-width:25%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.breadcrumb>span,.breadcrumb>strong{display:none}.header-actions,body:has(#page-rocket:not([hidden])) .header-actions{width:auto;flex:1;min-width:0;gap:7px;flex-wrap:nowrap;justify-content:flex-end}.header-actions #sound-toggle{font-size:0;min-width:38px;min-height:42px;padding:8px}.header-actions #sound-toggle:before{content:'♫';font-size:19px}.header-actions .stream-toggle{min-height:42px;padding:8px 4px;gap:6px;margin:0}.stream-label{display:none}.stream-toggle svg{width:17px;height:17px}.switch-track{width:27px;height:16px}.switch-track>span{width:10px;height:10px}.balance{padding:8px;gap:4px;min-width:0;font-size:12px}.coin-label{display:none}#account-button.profile-trigger{width:42px;height:42px;min-width:42px;min-height:42px}.profile-trigger img{width:100%;height:100%}.mobile-shortcuts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;padding:12px 14px 0}.mobile-shortcuts button{display:flex;align-items:center;justify-content:center;gap:7px;min-height:44px;padding:10px 5px;border:1px solid #442857;background:#21132e;border-radius:10px;color:#d6b6ef;font-size:11px}.mobile-shortcuts svg{width:15px;height:15px}
 main,.telegram-miniapp main{padding:20px 14px 0;max-width:100%}.home-heading{margin-bottom:16px}.home-heading h1{font-size:25px}.home-heading>span{font-size:10px}.home-cases{grid-template-columns:1fr 1fr;gap:10px}.home-case{border-radius:13px}.home-case-art{height:165px}.home-case-art img{height:150px;width:95%}.home-case-info{padding:14px 12px 10px;flex-direction:column;align-items:flex-start;gap:10px}.home-case h2{font-size:16px;line-height:1.3;min-height:42px}.home-case p{font-size:10px;margin-top:4px}.case-price{padding:7px 10px;font-size:13px}.home-case-action{margin:0 12px;padding:12px 0;font-size:11px}.home-modes{grid-template-columns:1fr;gap:9px;margin-top:14px}.home-modes button{min-height:70px;padding:15px}.stream-banner{padding:10px 14px;font-size:10px;gap:8px;flex-wrap:wrap}.stream-banner button{min-height:36px;font-size:10px}
 .item-grid,.collection-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.item-card img{height:110px}.card-name{font-size:11px}.item-card{padding:12px 10px}.inventory-columns{grid-template-columns:1fr;gap:22px}.inventory-toolbar,.market-filters{flex-wrap:wrap}.inventory-toolbar input{min-width:0}.item-pagination{flex-wrap:wrap;gap:10px;justify-content:center}.item-pagination button{min-width:38px;height:40px}.market-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.market-card-bottom button{min-height:42px;font-size:12px}.wallet-summary>div{padding:13px 10px}.wallet-summary strong{font-size:20px}.market-heading{gap:12px}.market-heading p{max-width:240px}.market-balance strong{font-size:19px}
 #case-detail-header{padding:22px 16px;grid-template-columns:1fr;text-align:center;gap:12px}#case-detail-header .case-hero-art>img{height:190px;max-width:100%;margin:auto}#case-detail-header h1{font-size:28px}.case-detail-actions{justify-content:center;flex-wrap:nowrap}.case-detail-actions .primary-button{min-width:0;flex:1;min-height:48px}.case-speed-button{min-width:64px;min-height:48px}.odds-table-panel{padding:16px}.drop-grid,.case-odds{grid-template-columns:repeat(2,minmax(0,1fr))}.reel-window{touch-action:pan-y}.case-reel .item-card{min-height:190px}
 #page-upgrader .upgrade-arena{padding:16px 10px 0}#page-upgrader .upgrade-stage{gap:10px}#page-upgrader .character-slot{padding:12px 8px;height:260px;grid-template-rows:12px minmax(0,1fr) 34px 22px}#page-upgrader .character-image-wrap>img{height:125px;width:100%}#page-upgrader .character-slot>strong{font-size:12px}#page-upgrader .slot-caption{font-size:8px;letter-spacing:.4px}#page-upgrader .upgrade-controls{padding-top:10px;margin-top:0;width:100%;max-width:300px}#page-upgrader .odds-ring{width:210px;height:210px}#page-upgrader .multipliers{height:40px;margin-top:14px}#page-upgrader .multipliers button{min-height:34px}#page-upgrader .upgrade-action-row{margin-top:12px}#page-upgrader .primary-button{min-height:48px}
 .dice-layout{grid-template-columns:1fr}.dice-stake-row{flex-wrap:wrap}.dice-stake-picker{min-width:0;flex:1}.dice-machine{padding:18px 12px}.dice-color-button{min-height:44px}.dice-visual{gap:12px}.dice-payout-panel,.dice-log-panel{padding:16px}.primary-button{min-height:48px}.outline-button{min-height:42px}
 dialog,#account-dialog,#topup-dialog{width:calc(100% - 16px);max-width:540px;padding:25px 18px 20px;border-radius:19px;max-height:calc(min(var(--app-visible-height,100dvh),var(--brainlab-viewport-height,100dvh)) - var(--brainlab-safe-top,0px) - var(--brainlab-safe-bottom,0px) - 24px);scroll-padding-block:18px}dialog h2{font-size:24px}.close-dialog{min-width:44px;min-height:44px;top:8px;right:8px}input,select,textarea{font-size:16px!important;min-height:44px}#stream-words{min-height:120px}#purchase-dialog .purchase-preview{margin:18px 0}.profile-paging button{min-height:44px}.topup-choice{min-height:130px}.toast{bottom:calc(90px + max(env(safe-area-inset-bottom,0px),var(--brainlab-safe-bottom,0px)));left:50%;max-width:calc(100% - 28px);font-size:12px}.main-footer{padding-bottom:20px}.keyboard-open .sidebar nav{visibility:hidden;pointer-events:none}.keyboard-open .app-shell{padding-bottom:16px}
}
@media(max-width:360px){.breadcrumb{display:none}.header-actions{justify-content:space-between}.home-case-art{height:140px}.home-case-art img{height:130px}.home-case h2{font-size:14px}.market-heading{flex-wrap:wrap}.sidebar nav .nav-button>span:nth-child(2){font-size:8px}.mobile-shortcuts button{font-size:10px}.wallet-summary strong{font-size:17px}.wallet-summary span{font-size:8px}}
@media(prefers-reduced-motion:reduce){.sidebar nav,.mobile-shortcuts button{scroll-behavior:auto}}

/* Wallet sits immediately to the right of the profile. */
.profile-balance-card{display:flex;flex-direction:column;justify-content:center;align-items:center;gap:4px;min-width:85px;max-width:150px;min-height:52px;padding:8px 12px;border:1px solid #3a294b;border-radius:10px;background:#201529;flex:0 1 auto}.wallet-caption{font-size:10px;line-height:1.1;color:#a18aaf}.wallet-amount{display:flex;gap:6px;align-items:center;justify-content:center;font-size:15px;font-weight:700;line-height:1.2;max-width:100%}#balance{font-variant-numeric:tabular-nums;overflow-wrap:anywhere}.wallet-coin{color:#c995f4;font-size:15px;flex-shrink:0}#profile-new-request{white-space:normal;line-height:1.4;min-height:48px}.dice-demo-note:empty,.rocket-demo:empty,.case-hero-note:empty,.arena-footer>span:empty,.main-footer>span:empty{display:none}
@media(max-width:700px){.header-actions .profile-balance-card{min-width:66px;max-width:115px;min-height:46px;padding:6px 8px;gap:3px}.wallet-caption{font-size:9px}.wallet-amount{font-size:13px}.wallet-coin{font-size:13px}.header-actions{gap:6px}.breadcrumb{display:none}}

.sidebar .brand .brand-mark{padding:0;background:transparent;overflow:hidden;border-radius:0}.sidebar .brand .brand-mark img{display:block;width:100%;height:100%;object-fit:contain}.sidebar .brand .brand-name{text-transform:none;letter-spacing:-.5px;font-weight:800}

.market-card-bottom:has(.inventory-sell){flex-wrap:wrap}.market-card-bottom .inventory-sell{background:#291a38;border-color:#684583;color:#dfb8fc}.result-sell-button{border:1px solid #8052a0;background:#2c1b3e;color:#e4c4ff;border-radius:9px;padding:11px 15px;min-height:44px;font-size:12px;font-weight:600;cursor:pointer}.result-sell-button:hover:not(:disabled){background:#47265e}.result-sell-button:disabled{opacity:.4;cursor:default}.result-sell-button[hidden]{display:none!important}#upgrade-sell{width:100%;margin-top:11px}#dice-sell{margin:12px 0}.reel-title{flex-wrap:wrap;gap:10px}#case-sell{margin-left:auto}@media(max-width:700px){.market-card-bottom .inventory-sell{width:100%}.reel-title{align-items:flex-start}#case-sell{margin-left:0}}
.sidebar .brand .brand-name{display:block!important}
.mobile-brand{display:none}.header-tools{display:contents}.withdraw-history{margin-top:30px;padding-top:22px;border-top:1px solid #493054}.withdraw-history h2{font-size:19px;margin:0}.withdraw-history .market-heading{margin-bottom:15px}#withdraw-list{display:grid;gap:12px}#withdraw-dialog .primary-button{width:100%}#withdraw-item-name{color:#d6b3ef;font-size:14px;line-height:1.5}.market-card-bottom .inventory-withdraw{background:#24192e;border-color:#76508c;color:#e6c8fa}.profile-field small{font-size:11px;color:#a68ab8;line-height:1.5}.profile-field input{width:100%;box-sizing:border-box}.withdraw-history .profile-paging{margin-top:14px}
@media(max-width:700px){
 .sidebar{height:0;min-height:0;padding:0;border:0;gap:0;overflow:visible}.sidebar>.brand,.sidebar>.sidebar-bottom{display:none!important}.topbar{display:grid!important;grid-template-columns:minmax(0,1fr) auto minmax(72px,auto);grid-template-rows:auto auto;gap:10px 9px;padding:12px 14px;min-height:0;align-items:center}.topbar>.breadcrumb{display:none!important}.mobile-brand{display:flex;align-items:center;gap:8px;grid-column:1;grid-row:1;color:#f1e6fc;text-decoration:none;font-size:16px;font-weight:800;letter-spacing:-.4px;min-width:0}.mobile-brand img{width:29px;height:29px;flex-shrink:0}.topbar .header-actions,body:has(#page-rocket:not([hidden])) .topbar .header-actions{display:contents!important}.topbar .profile-header-controls{grid-column:2;grid-row:1;justify-self:center}.topbar .profile-balance-card{grid-column:3;grid-row:1;justify-self:end;min-width:72px;max-width:120px;min-height:44px;padding:6px 9px;box-sizing:border-box}.topbar .header-tools{display:flex;grid-column:1/-1;grid-row:2;gap:8px;min-width:0}.topbar .header-tools>button{flex:1;min-width:0;min-height:38px;height:38px;border:1px solid #3d294d;border-radius:9px;background:#1b1226;margin:0;padding:7px 12px;justify-content:center;color:#c7aed9}.topbar .header-tools #sound-toggle{font-size:11px}.topbar .header-tools #sound-toggle:before{content:none}.topbar .header-tools .stream-label{display:inline;font-size:0}.topbar .header-tools .stream-label:after{content:'Стример-мод';font-size:11px}.topbar .header-tools .stream-toggle>[data-icon]{display:none}.topbar .header-tools .switch-track{flex-shrink:0}.market-card-bottom .inventory-withdraw{width:100%;min-height:42px;font-size:12px}.withdraw-history{margin-top:24px}.withdraw-history h2{font-size:18px}.telegram-miniapp .topbar{background:#100b19}
}

#case-opening #case-sell{display:block;margin:16px auto 0;min-width:220px;max-width:100%;box-shadow:0 4px 18px #aa5ce31a}

.crash-simple-heading{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:18px}.crash-simple-heading h1{margin:0!important;font-size:23px!important}.crash-simple-heading>span{font-size:11px;color:#a98dbf;text-align:right}
#page-rocket .crash-simple .rocket-stake{min-height:90px;background:linear-gradient(135deg,#582879,#352044);border-color:#8c55b1;margin:0 0 14px}
#page-rocket .crash-simple .rocket-stake strong{margin:5px 0}.crash-simple .rocket-auto-row{margin:0}.crash-simple .rocket-auto-row:has(input:not(:checked)) input[type=number]{opacity:.45}.crash-simple #rocket-auto{appearance:none;width:34px!important;height:20px!important;border-radius:14px;background:#3a2d48;position:relative;border:1px solid #635071;cursor:pointer}.crash-simple #rocket-auto:before{content:'';position:absolute;left:3px;top:3px;width:12px;height:12px;border-radius:50%;background:#eee5f6;transition:transform .2s}.crash-simple #rocket-auto:checked{background:#8e42c9}.crash-simple #rocket-auto:checked:before{transform:translateX(14px)}
.upgrade-arena.upgrade-flash-win{animation:upgrade-success-flash .85s ease-out}.upgrade-arena.upgrade-flash-lose{animation:upgrade-loss-flash .65s ease-out}
@keyframes upgrade-success-flash{15%{border-color:#9effc4;box-shadow:inset 0 0 60px #49df7d24,0 0 28px #80ffb433}100%{box-shadow:inset 0 0 0 transparent}}
@keyframes upgrade-loss-flash{15%,45%{border-color:#ed779e;box-shadow:inset 0 0 55px #e8486d24}100%{box-shadow:inset 0 0 0 transparent}}
@media(prefers-reduced-motion:reduce){.upgrade-arena.upgrade-flash-win,.upgrade-arena.upgrade-flash-lose{animation-duration:.15s}}
#upgrade-shop-panel .filter-bar{display:flex;min-width:0;margin-bottom:14px}
#upgrade-shop-search{appearance:none;display:block;box-sizing:border-box;width:100%;min-width:0;min-height:46px;padding:12px 14px;border:1px solid #503461;border-radius:10px;background:#1b1226;color:#eee1fb;font:inherit;font-size:16px;outline:none;box-shadow:inset 0 1px 0 #ffffff04}
#upgrade-shop-search::placeholder{color:#a58bb9;opacity:1}#upgrade-shop-search:focus{border-color:#b071e1;box-shadow:0 0 0 3px #a354d61a}
#upgrade-shop-grid .card-name{display:block;min-height:32px;line-height:1.4;margin:8px 0}#upgrade-shop-grid .outline-button{width:100%;min-height:42px;padding:9px 5px;font-size:11px;white-space:normal}#upgrade-shop-grid .item-card[hidden]{display:none!important}
#upgrade-shop-panel .item-pagination{margin-top:16px;max-width:100%;gap:10px;flex-wrap:wrap;justify-content:center}#upgrade-shop-panel .item-pagination>div{display:flex;gap:4px;flex-wrap:wrap;justify-content:center}#upgrade-shop-panel .item-pagination button{min-width:32px;min-height:40px;padding:6px}
#page-rocket .crash-simple #rocket-auto{display:inline-block;box-sizing:border-box;flex:0 0 34px;width:34px!important;min-width:34px!important;max-width:34px;height:20px!important;min-height:20px!important;max-height:20px!important;padding:0!important;margin:0 3px 0 0;align-self:center;vertical-align:middle}
#page-rocket .crash-simple .rocket-auto-row>span:first-child{display:flex;align-items:center;gap:8px}
/* Purple purchase buttons in the upgrader shop. */
#upgrade-shop-grid [data-market-buy]{display:flex;align-items:center;justify-content:center;gap:6px;background:linear-gradient(135deg,#9849e6,#7533c9);border:1px solid #ad6bf1;color:#fff3ff;border-radius:9px;font-weight:700;box-shadow:0 4px 14px #9140dc35,inset 0 1px 0 #ffffff1a;transition:background .18s,box-shadow .18s,transform .18s;cursor:pointer}
#upgrade-shop-grid [data-market-buy]:hover:not(:disabled){background:linear-gradient(135deg,#ab5cf1,#8842db);box-shadow:0 5px 19px #a855ed50,inset 0 1px 0 #ffffff24}
#upgrade-shop-grid [data-market-buy]:active:not(:disabled){transform:translateY(1px);box-shadow:0 2px 9px #9140dc30}
#upgrade-shop-grid [data-market-buy]:focus-visible{outline:2px solid #e1bcff;outline-offset:3px}
#upgrade-shop-grid [data-market-buy]:disabled{opacity:.45;box-shadow:none;cursor:default}
@media(prefers-reduced-motion:reduce){#upgrade-shop-grid [data-market-buy]{transition:none}}

#withdraw-dialog .muted,#withdraw-form>.profile-muted{display:block;margin:14px 0 18px;line-height:1.65}

/* Equal rows keep both case cards aligned on narrow screens. */
#cases-grid{align-items:stretch;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
#cases-grid .case-card{display:grid;grid-template-rows:clamp(120px,25vw,190px) 54px 24px 44px 30px;align-content:start;gap:10px;min-width:0;padding:16px 12px;box-sizing:border-box}
#cases-grid .case-art{width:100%;height:100%;min-width:0;margin:0;padding:0;display:grid;place-items:center}
#cases-grid .case-art img{width:100%;max-width:100%;height:100%;max-height:100%;object-fit:contain}
#cases-grid .case-card h3{display:flex;align-items:center;justify-content:center;min-width:0;height:54px;margin:0;font-size:18px;line-height:1.35}
#cases-grid .case-card h3 button{font:inherit;color:inherit;max-width:100%;padding:0;margin:0;overflow-wrap:anywhere}
#cases-grid .case-card>p{margin:0;align-self:center;font-size:10px;line-height:1.4}
#cases-grid .case-open{margin:0;min-width:0;width:100%;height:44px;padding:8px;gap:4px;box-sizing:border-box;font-size:12px;white-space:nowrap}
#cases-grid .case-odds-button{margin:0;min-width:0;width:100%;min-height:30px;padding:4px 0;align-self:center}
@media(max-width:380px){#cases-grid{gap:10px}#cases-grid .case-card{padding:12px 8px}#cases-grid .case-card h3{font-size:16px}#cases-grid .case-open{font-size:11px;padding:7px 5px}}
/* Bound artwork to its own grid row, independent of intrinsic PNG size. */
#cases-grid .case-card{grid-template-rows:180px 54px 24px 44px 30px;overflow:hidden}
#cases-grid .case-art{position:relative;display:block;box-sizing:border-box;height:180px;min-height:0;max-height:180px;width:100%;min-width:0;overflow:hidden;filter:none;background:transparent;border:0;padding:0}
#cases-grid .case-art img{position:absolute;inset:0;display:block;width:100%;height:100%;max-width:100%;max-height:100%;object-fit:contain;margin:0;padding:5px;box-sizing:border-box;filter:none}
#cases-grid .case-card h3,#cases-grid .case-card>p,#cases-grid .case-open,#cases-grid .case-odds-button{position:relative;z-index:1}
@media(min-width:1100px){#cases-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:18px}}
@media(min-width:851px) and (max-width:1099px){#cases-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:600px){#cases-grid .case-card{grid-template-rows:140px 54px 24px 44px 30px}#cases-grid .case-art{height:140px;max-height:140px}}
img:is([src$="/opt-easter-case.png.webp"],[src$="/opt-halloween-case.png.webp"],[src$="/opt-summer-case.png.webp"],[src$="/opt-meowl-all-in-case.png.webp"],[src$="/opt-skibidi-all-in-case.png.webp"],[src$="/opt-elephant-all-in-case.png.webp"]){mix-blend-mode:screen!important}
/* Let the new case illustrations blend against the hero's purple background. */

/* Larger bounded case artwork; soft ground glow on Home. */
#cases-grid .case-card{grid-template-rows:220px 54px 24px 44px 30px}
#cases-grid .case-art{height:220px;max-height:220px}
#page-home .home-case-art{background:radial-gradient(ellipse at 50% 68%,#6c30912e,transparent 67%)}
#page-home .home-case-art:after{left:20%;right:20%;bottom:8px;height:28px;border:0;border-radius:50%;background:radial-gradient(ellipse,#a65cdb4d,transparent 72%);filter:blur(11px);pointer-events:none;z-index:0}
#page-home .home-case-art img{position:relative;z-index:1}
@media(max-width:600px){#cases-grid .case-card{grid-template-rows:160px 54px 24px 44px 30px}#cases-grid .case-art{height:160px;max-height:160px}#page-home .home-case-art:after{height:18px;bottom:5px;filter:blur(8px)}}

/* Decorative full-width rarity light; no probability is encoded in its length. */
#case-odds .drop-meter{height:3px;overflow:visible;background:transparent;border-radius:4px;margin-top:12px}
#case-odds .drop-meter>i{display:block;width:100%;height:100%;border-radius:inherit;background:var(--rarity,#ad6bf1);box-shadow:0 0 7px var(--rarity,#ad6bf1),0 0 15px color-mix(in srgb,var(--rarity,#ad6bf1) 40%,transparent)}
/* Consistent purple lighting beneath cases and possible drops. */
#cases-grid .case-art:after{content:'';position:absolute;left:18%;right:18%;bottom:5px;height:22px;border-radius:50%;background:radial-gradient(ellipse,#ad62f15c,transparent 72%);filter:blur(9px);pointer-events:none;z-index:0}
#cases-grid .case-art img{z-index:1}
#case-odds .drop-meter>i{width:100%;background:#ac6fe5;box-shadow:0 0 8px #af6ce7,0 0 16px #a562e34d}
#page-home .home-case-art:before{content:'';position:absolute;left:20%;right:20%;bottom:8px;height:26px;border-radius:50%;background:radial-gradient(ellipse,#a95de14d,transparent 72%);filter:blur(10px);pointer-events:none;z-index:0}
#page-home .home-case-art:after{left:20%;right:20%;bottom:13px;height:2px;border-radius:50%;background:linear-gradient(90deg,transparent,#b975f0bb,transparent);filter:blur(.6px);box-shadow:0 0 10px #a75de63d;opacity:.85}
@media(max-width:600px){#cases-grid .case-art:after{height:18px;filter:blur(7px)}#page-home .home-case-art:before{height:18px;bottom:4px;filter:blur(8px)}#page-home .home-case-art:after{bottom:9px;height:2px;filter:blur(.6px)}}
/* Soft ground shadow and purple light under reel brainrots. */
#case-reel .item-card img{background:radial-gradient(ellipse 48% 10% at 50% 92%,#ae6be848,transparent 90%),radial-gradient(ellipse 36% 5% at 50% 94%,#000a,transparent 90%);filter:drop-shadow(0 9px 5px #0009) drop-shadow(0 3px 7px #a560df22)}
#case-reel .item-card.reel-winner img{filter:drop-shadow(0 9px 5px #0009) drop-shadow(0 0 12px #c688ec77)}

#case-opening .case-result-actions{display:none;max-width:520px;margin:18px auto 0;gap:12px;align-items:stretch;justify-content:center;flex-wrap:wrap}
#case-opening.has-winner .case-result-actions:has(button:not([hidden])){display:flex}
#case-opening .case-result-actions #case-sell{flex:1 1 180px;min-width:0;max-width:100%;min-height:46px;margin:0;padding:12px 14px;box-sizing:border-box;font-size:12px;line-height:1.4;text-align:center;border-radius:9px;cursor:pointer}
@media(max-width:420px){#case-opening .case-result-actions{gap:8px}#case-opening .case-result-actions #case-sell{flex-basis:120px;padding:10px 8px;font-size:11px}}
@media(min-width:901px){
 .app-shell #owned-grid .market-card-bottom{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;align-items:stretch}
 .app-shell #owned-grid .market-card-bottom>strong{grid-column:1/-1;display:block;margin:0 0 3px;min-width:0}
 .app-shell #owned-grid .market-card-bottom>button{width:100%;min-width:0;min-height:42px;padding:9px 5px;font-size:11px;line-height:1.3;white-space:normal;text-align:center;box-sizing:border-box}
 .app-shell #owned-grid .market-card-bottom>button:is([data-sell-item],[data-withdraw-item]){
  min-height:34px;
  padding:5px 2px;
  font-size:10px;
  line-height:1.2;
 }
}
@media(max-width:900px){
 #owned-grid .market-card-bottom>button:is([data-sell-item],[data-withdraw-item]){
  min-height:38px;
  padding-block:5px;
 }
}
/* Home is a mode launcher; cases are a secondary horizontal shelf. */
.home-play-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;margin-top:8px}
.home-play-card{position:relative;overflow:hidden;min-width:0;min-height:252px;padding:28px;border:1px solid #54316a;border-radius:17px;text-align:left;color:#f0e5fa;background:radial-gradient(ellipse at 95% 10%,#9143d52b,transparent 65%),linear-gradient(145deg,#271734,#150e20);box-shadow:inset 0 1px 0 #ffffff06;cursor:pointer;transition:border-color .2s,transform .2s,box-shadow .2s}
.home-play-card:hover{border-color:#ae70e0;box-shadow:0 12px 28px #0003}.home-play-card:focus-visible,.home-quick-grid button:focus-visible{outline:2px solid #cc9bf5;outline-offset:3px}
.home-mode-copy{position:relative;z-index:1;margin-top:105px}.home-mode-copy h2{margin:0 0 8px;font-size:24px;letter-spacing:-.5px;color:#f1e6fb}.home-mode-copy p{margin:0;color:#ac91bf;font-size:12px;line-height:1.5}.home-mode-copy>span{display:inline-block;margin-top:19px;font-size:12px;font-weight:650;color:#d2a5fa}
.home-mode-art{position:absolute;right:27px;top:24px;width:94px;height:94px;pointer-events:none}
.home-mode-ring{border:12px solid #4b2c62;border-top-color:#bb7af6;border-right-color:#9551d6;border-radius:50%;transform:rotate(-30deg);box-shadow:0 0 30px #9854df1f;display:grid;place-items:center}.home-mode-ring [data-icon]{transform:rotate(30deg);display:block;width:29px;height:29px;color:#c698ef}.home-mode-ring svg{width:100%;height:100%}
.home-mode-dice{display:grid;grid-template-columns:1fr 1fr;gap:8px;transform:rotate(-12deg)}.home-mode-dice i{position:relative;border:1px solid #bd8be47a;border-radius:10px;background:linear-gradient(145deg,#8e55bf,#4f2a71);box-shadow:inset 0 -4px 0 #0002,0 8px 15px #0003}.home-mode-dice i:after{content:'';position:absolute;width:6px;height:6px;left:calc(50% - 3px);top:calc(50% - 3px);border-radius:50%;background:#efdfff;box-shadow:-9px -9px #efdfff,9px 9px #efdfff}.home-mode-dice i:nth-child(2){background:linear-gradient(145deg,#8459a9,#383151)}.home-mode-dice i:nth-child(3){background:linear-gradient(145deg,#bb6bb8,#653164)}
.home-mode-orbit{border:1px solid #8c54b6;border-radius:50%;box-shadow:inset 0 0 25px #a955dd15;display:grid;place-items:center;transform:rotate(-15deg)}.home-mode-orbit:before{content:'';position:absolute;inset:15px -12px;border:1px solid #c688ef88;border-radius:50%;transform:rotate(-35deg)}.home-mode-orbit:after{content:'';position:absolute;right:0;top:13px;width:9px;height:9px;background:#d2a0fb;border-radius:50%;box-shadow:0 0 15px #b36bea}.home-mode-orbit>span{font-size:49px;color:#d6aff7;transform:rotate(15deg);text-shadow:0 0 20px #b365df55}
.home-quick-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:20px 0 32px}.home-quick-grid>button{display:flex;align-items:center;gap:13px;min-width:0;min-height:90px;padding:17px;border:1px solid #3d284e;border-radius:12px;background:#1b1226;color:#d6b8ec;text-align:left;cursor:pointer}.home-quick-grid>button:hover{background:#281735;border-color:#8051a0}.home-quick-grid [data-icon]{width:23px;height:23px;flex-shrink:0;color:#b986e6}.home-quick-grid svg{width:100%;height:100%}.home-quick-grid strong{display:block;color:#ead9f7;font-size:13px}.home-quick-grid small{display:block;color:#a48ab7;font-size:10px;line-height:1.5;margin-top:5px}.home-quick-grid b{margin-left:auto;font-size:15px;font-weight:400;color:#9875af}
.home-case-section{border-top:1px solid #33223e;padding-top:22px}.home-case-section-title{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:14px}.home-case-section-title h2{margin:0;color:#d3bbdf;font-size:18px}.home-case-section-title small{font-size:11px;color:#9778aa;margin-left:7px}.home-case-section-title button{min-height:40px;padding:8px 0 8px 12px;border:0;background:transparent;color:#bc8de0;font-size:12px;cursor:pointer}
#page-home .home-cases{display:grid;grid-template-columns:none;grid-auto-flow:column;grid-auto-columns:170px;gap:12px;overflow-x:auto;overscroll-behavior-x:contain;scroll-snap-type:x proximity;padding:2px 2px 14px;scrollbar-width:thin;scrollbar-color:#58316e transparent}
#page-home .home-case{min-width:0;border-radius:12px;scroll-snap-align:start}#page-home .home-case-art{height:124px}#page-home .home-case-art img{height:114px;width:90%;object-fit:contain}#page-home .home-case-info{display:grid;grid-template-columns:1fr;gap:7px;padding:10px 12px 13px;min-width:0}#page-home .home-case h2{margin:0;min-height:36px;font-size:13px;line-height:1.4;color:#dfcaee}#page-home .home-case p,#page-home .home-case-action{display:none}#page-home .case-price{padding:0;border:0;background:transparent;font-size:12px;color:#b88bd8;justify-self:start}
body:has(#page-home:not([hidden])) .mobile-shortcuts{display:none}
@media(max-width:1000px){.home-quick-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.home-play-card{padding:22px;min-height:236px}.home-mode-copy h2{font-size:21px}.home-mode-art{right:20px;top:22px;width:80px;height:80px}}
@media(max-width:650px){.home-play-grid{grid-template-columns:1fr;gap:12px}.home-play-card{min-height:148px;padding:22px}.home-mode-copy{margin-top:0;padding-right:90px}.home-mode-copy h2{font-size:22px}.home-mode-copy p{font-size:11px;max-width:190px}.home-mode-copy>span{margin-top:14px;font-size:11px}.home-mode-art{right:21px;top:30px;width:75px;height:75px}.home-mode-ring{border-width:10px}.home-mode-dice{gap:6px}.home-quick-grid{gap:9px;margin:14px 0 24px}.home-quick-grid>button{min-height:83px;gap:9px;padding:12px}.home-quick-grid strong{font-size:12px}.home-quick-grid small{font-size:10px}.home-quick-grid [data-icon]{width:20px;height:20px}.home-quick-grid b{display:none}#page-home .home-cases{grid-auto-columns:156px}.home-case-section{padding-top:16px}}
@media(prefers-reduced-motion:reduce){.home-play-card{transition:none}}
.case-count-selector{display:flex;gap:8px;margin:0 0 16px;flex-wrap:wrap}.case-count-selector button{flex:1;min-width:36px;min-height:40px;padding:8px;border:1px solid #543168;border-radius:8px;background:#1d1229;color:#bb98d3;font-weight:700;cursor:pointer}.case-count-selector button[aria-pressed=true]{background:#7f38ca;border-color:#b26df1;color:#fff;box-shadow:0 0 14px #9e4ce52b}.case-count-selector button:disabled{opacity:.45;cursor:default}.case-count-selector button:focus-visible{outline:2px solid #d3a9f4;outline-offset:2px}
.case-reels{display:grid;gap:16px;min-width:0}.case-spin{min-width:0}.case-spin-result{display:grid;gap:9px;padding:12px 4px 3px;text-align:center}.case-spin-result[hidden]{display:none}.case-spin-result>strong{font-size:12px;line-height:1.4;color:#e4cff5}.case-spin-result .result-sell-button{max-width:100%;width:100%;white-space:normal}
#case-opening:not([data-count="1"]) .case-reels{grid-template-columns:repeat(2,minmax(0,1fr))}
#case-opening:not([data-count="1"]) .case-reel .item-card{width:140px;height:210px;padding:12px 10px}
#case-opening:not([data-count="1"]) .case-reel .item-card img{height:98px}
#case-opening:not([data-count="1"]) .case-reel .card-name{font-size:11px;min-height:30px}
#case-opening .case-reel .item-card img{background:radial-gradient(ellipse 48% 10% at 50% 92%,#ae6be848,transparent 90%),radial-gradient(ellipse 36% 5% at 50% 94%,#000a,transparent 90%);filter:drop-shadow(0 9px 5px #0009) drop-shadow(0 3px 7px #a560df22)}
#case-opening .case-reel .item-card.reel-winner img{filter:drop-shadow(0 9px 5px #0009) drop-shadow(0 0 12px #c688ec77)}
@media(max-width:500px){.case-reels{gap:12px 8px}#case-opening:not([data-count="1"]) .reel-window{padding:12px 0}#case-opening:not([data-count="1"]) .case-reel .item-card{width:126px;height:205px}.case-spin-result .result-sell-button{font-size:10px;padding:10px 5px}.case-count-selector{gap:6px}.case-count-selector button{min-width:30px;padding:8px 5px}}
#case-opening .case-result-actions #case-sell-all{flex:1 1 180px;min-width:0;max-width:100%;min-height:46px;margin:0;padding:12px 14px;box-sizing:border-box;font-size:12px;line-height:1.4;text-align:center;border-radius:9px;cursor:pointer}
#case-sell-all[hidden]{display:none!important}
@media(max-width:420px){#case-opening .case-result-actions #case-sell-all{flex-basis:120px;padding:10px 8px;font-size:11px}}
#page-upgrader .upgrade-owned-actions{display:flex;align-items:center;gap:8px}
#deposit-clear{min-height:32px;padding:5px 9px;border:1px solid #75508e;border-radius:7px;background:#34203f;color:#dfc8f0;font-size:11px;cursor:pointer}
#deposit-clear:disabled{opacity:.4;cursor:default}
.deposit-art-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));grid-auto-rows:minmax(0,1fr);gap:6px;align-items:center;justify-items:center;width:100%;height:100%;min-width:0;min-height:0;padding:3px;box-sizing:border-box}
#source-slot .deposit-art-grid img{display:block;width:100%;height:100%;max-height:94px;min-height:0;object-fit:contain;margin:0;filter:drop-shadow(0 7px 5px #0008) drop-shadow(0 0 7px #a76be41f)}
.deposit-art-grid span{color:#d5a4f7;font-size:18px;font-weight:700}#inventory-grid [data-source].selected{border-color:#bf83f1;box-shadow:inset 0 0 0 1px #a65cdb55,0 0 13px #9345c522;background:#30183f}
/* Compact multi-opening; an odd last reel fills its row. */
#case-opening[data-count="3"] .case-spin:last-child,#case-opening[data-count="5"] .case-spin:last-child{grid-column:1/-1}
#case-opening:not([data-count="1"]) .case-reels{gap:10px}
#case-opening:not([data-count="1"]) .reel-window{padding:10px 0}
#case-opening:not([data-count="1"]) .case-reel .item-card{display:grid;grid-template-rows:82px 26px 22px;gap:4px;align-content:start;box-sizing:border-box;width:126px;height:172px;padding:10px}
#case-opening:not([data-count="1"]) .case-reel .card-rarity{font-size:6.5px;line-height:10px;align-self:center}
#case-opening:not([data-count="1"]) .case-reel .item-card img{display:block;box-sizing:border-box;width:100%;height:82px;margin:0;object-fit:contain}
#case-opening:not([data-count="1"]) .case-reel .card-name{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;white-space:normal;font-size:10px;line-height:13px;height:26px;min-height:0;margin:0}
#case-opening:not([data-count="1"]) .case-reel .card-bottom{min-width:0;margin:0;padding-top:5px;font-size:9px;line-height:15px}
#case-opening:not([data-count="1"]) .case-reel .card-bottom>span:first-child{font-size:10px}
#case-opening:not([data-count="1"]) .case-spin-result{gap:0;padding:8px 0 0;max-width:100%}
#case-opening:not([data-count="1"]) .case-spin-result>strong{display:none}
#case-opening:not([data-count="1"]) .case-spin-result .result-sell-button{width:100%;min-height:34px;padding:7px 9px;font-size:11px;line-height:1.4}
@media(min-width:1100px){#case-opening[data-count="6"] .case-reels{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:500px){#case-opening:not([data-count="1"]) .case-reels{gap:10px 8px}#case-opening:not([data-count="1"]) .reel-window{padding:8px 0}#case-opening:not([data-count="1"]) .case-reel .item-card{width:118px;height:158px;grid-template-rows:68px 26px 22px}#case-opening:not([data-count="1"]) .case-reel .item-card img{height:68px}#case-opening:not([data-count="1"]) .case-spin-result .result-sell-button{font-size:10px;padding:7px 4px}}

@media(max-width:700px){
 #case-opening:not([data-count="1"]) .case-reels{grid-template-columns:minmax(0,1fr)}
 #case-opening .reel-window{container-type:inline-size;padding:8px 0}
 #case-opening .case-reel{gap:6px}
 #case-opening[data-count] .case-reel .item-card{
  box-sizing:border-box;
  width:calc((100cqw - 16px) / 3);
  height:144px;
  min-height:0;
  padding:7px 5px;
  grid-template-rows:62px 26px 22px;
 }
 #case-opening[data-count] .case-reel .item-card img{height:62px}
 #case-opening[data-count] .case-reel .card-name{
  display:-webkit-box;
  -webkit-box-orient:vertical;
  -webkit-line-clamp:2;
  overflow:hidden;
  overflow-wrap:anywhere;
  white-space:normal;
  font-size:10px;
  line-height:13px;
  height:26px;
  min-height:26px;
  margin:0;
 }
 #case-opening[data-count] .case-reel .card-bottom{
  margin:0;
  padding-top:4px;
  white-space:nowrap;
 }
}

.topbar .profile-balance-card{max-width:none;gap:2px;padding:5px 9px}.topbar .wallet-amount{display:flex;align-items:center;gap:5px;min-width:0}
.topbar .wallet-topup{display:inline-flex;align-items:center;justify-content:center;flex:0 0 26px;width:26px;height:26px;min-height:26px;margin:0 0 0 3px;padding:0;border:1px solid #a662e2;border-radius:7px;background:linear-gradient(135deg,#9447d9,#6d2eb0);box-shadow:0 0 9px #9d4cdf25;color:#fff;font:600 21px/1 Arial,sans-serif;cursor:pointer}
.topbar .wallet-topup:hover{background:#a556e6;box-shadow:0 0 12px #a75dea3b}.topbar .wallet-topup:focus-visible{outline:2px solid #e4c4ff;outline-offset:2px}
@media(max-width:700px){.topbar .profile-balance-card{max-width:150px;min-width:96px;padding:5px 7px}.topbar .wallet-amount{gap:4px}.topbar #balance{overflow:hidden;text-overflow:ellipsis;max-width:76px;white-space:nowrap}.topbar .wallet-topup{flex-basis:26px;width:26px;height:26px;margin-left:2px}}

.mobile-menu-open{display:none}
#mobile-menu{position:fixed;inset:0 auto 0 0;margin:0;width:min(310px,88vw);height:100dvh;max-width:88vw;max-height:100dvh;padding:24px 18px;box-sizing:border-box;border:0;border-right:1px solid #5e3778;border-radius:0 18px 18px 0;background:linear-gradient(160deg,#1d1129,#100b18 65%);color:#e8d9f4;overflow-y:auto;overscroll-behavior:contain;box-shadow:14px 0 55px #0009}
#mobile-menu::backdrop{background:#06020bb8;backdrop-filter:blur(5px)}
.drawer-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:27px}.drawer-heading strong{display:flex;align-items:center;gap:9px;font-size:20px;letter-spacing:-.5px}.drawer-heading img{display:block}.drawer-heading>button{display:grid;place-items:center;width:38px;height:38px;border:1px solid #8954b3;border-radius:10px;background:#2b173e;color:#d9b3f3;font-size:25px;cursor:pointer}.drawer-label{font-size:11px;color:#9c7daf;margin:0 0 10px 10px}
#mobile-menu nav{position:static;display:flex;flex-direction:column;align-items:stretch;gap:6px;min-height:0;height:auto;max-height:none;width:100%;padding:0;margin:0;border:0;background:none;box-shadow:none;overflow:visible;backdrop-filter:none}
#mobile-menu .nav-button{display:flex;flex-direction:row;align-items:center;justify-content:flex-start;width:100%;min-height:49px;height:auto;padding:13px 12px;gap:13px;margin:0;border:1px solid transparent;border-radius:10px;color:#bba1ce;text-align:left;font-size:14px;box-sizing:border-box;cursor:pointer}
#mobile-menu .nav-button>span:first-child{display:grid;place-items:center;flex:0 0 21px;height:21px;font-size:21px}#mobile-menu .nav-button>span:nth-child(2){display:block;font-size:14px;line-height:1.4;font-weight:650}#mobile-menu .nav-button svg{width:21px;height:21px}#mobile-menu .nav-button .nav-arrow,#mobile-menu .new-dot{display:none}#mobile-menu .nav-button small{margin-left:auto;background:#7840aa;color:#e9d2fa;font-size:10px;padding:2px 6px;border-radius:5px}
#mobile-menu .nav-button.active{color:#fff;border-color:#a365e3;background:linear-gradient(100deg,#7734c2,#5e239e);box-shadow:inset 3px 0 #d1a0ff}#mobile-menu .nav-button:hover{background:#34203f}#mobile-menu .nav-button.active:hover{background:linear-gradient(100deg,#8847d0,#7130b7);color:#fff}
.drawer-footer{display:grid;gap:7px;border-top:1px solid #3b264b;margin-top:24px;padding-top:17px}.drawer-footer button{min-height:43px;padding:10px 12px;text-align:left;border:0;border-radius:8px;background:transparent;color:#bba1ce;font-size:12px;cursor:pointer}.drawer-footer button:hover{background:#2d1b3b}
#mobile-menu button:focus-visible{outline:2px solid #ca94f4;outline-offset:2px}
@media(max-width:1479px){.sidebar{display:none!important}.app-shell{padding-bottom:max(16px,env(safe-area-inset-bottom,0px))}.topbar{display:grid!important;grid-template-columns:40px minmax(0,1fr) auto minmax(96px,auto);grid-template-rows:auto auto;gap:9px 8px;padding:10px 12px;height:auto;min-height:0;align-items:center}.topbar>.breadcrumb{display:none!important}.topbar .mobile-menu-open{display:flex;flex-direction:column;justify-content:center;align-items:center;gap:5px;grid-column:1;grid-row:1;width:40px;height:40px;min-height:40px;padding:8px;border:1px solid #58366f;border-radius:9px;background:#261535;color:#e6c7fc;cursor:pointer}.mobile-menu-open>span{display:block;width:19px;height:2px;border-radius:2px;background:currentColor}.topbar .mobile-brand{display:flex;align-items:center;gap:6px;grid-column:2;grid-row:1;min-width:0;color:#f1e6fc;font-size:15px;font-weight:800;white-space:nowrap;text-decoration:none}.topbar .mobile-brand img{width:36px;height:36px;flex-shrink:0}.topbar .header-actions{display:contents!important}.topbar .profile-header-controls{grid-column:3;grid-row:1}.topbar .profile-balance-card{grid-column:4;grid-row:1;max-width:150px;justify-self:end}.topbar .header-tools{display:flex;grid-column:1/-1;grid-row:2;gap:8px;min-width:0}.topbar .header-tools>button{flex:1;min-width:0;min-height:38px;height:38px;padding:7px 10px;border:1px solid #3d294d;border-radius:9px;background:#1b1226;color:#c7aed9;justify-content:center;font-size:11px;margin:0}}
@media(max-width:410px){
 .topbar{gap:8px 5px;padding-inline:8px}
 .topbar .mobile-brand{gap:4px;font-size:12px}
 .topbar .mobile-brand img{width:28px;height:28px}
}
@media(max-width:360px){
 .topbar{grid-template-columns:36px minmax(0,1fr) auto max-content}
 .topbar .mobile-menu-open{width:36px}
 .topbar .profile-balance-card{padding-inline:4px}
 .topbar .mobile-brand{flex-direction:column;align-items:center;gap:2px;font-size:11px;line-height:1}
 .topbar .mobile-brand img{align-self:center}
}
#mobile-menu{padding-top:calc(20px + max(env(safe-area-inset-top,0px),var(--brainlab-safe-top,0px)));padding-bottom:calc(20px + max(env(safe-area-inset-bottom,0px),var(--brainlab-safe-bottom,0px)))}
#mobile-menu[open]{animation:drawer-enter .2s ease-out}
@keyframes drawer-enter{from{opacity:0;transform:translateX(-18px)}to{opacity:1;transform:translateX(0)}}
@media(prefers-reduced-motion:reduce){#mobile-menu[open]{animation:none}}
#page-home .home-case:hover,#page-home .home-case:focus-visible{border-color:#aa69e3;box-shadow:inset 0 0 18px #9c4dd51a}

#page-home .home-cases{padding-top:6px;padding-inline:4px}
#page-home .home-case:focus-visible{outline:2px solid #c58aef;outline-offset:-3px}


img[src$="opt-telegram-case.png.webp"]{mix-blend-mode:screen!important}.telegram-subscribe{display:inline-flex;padding:11px 17px;margin:0 0 14px;border:1px solid #519be580;border-radius:10px;color:#a8daff;background:#2773a322;text-decoration:none;font-weight:600}.telegram-subscribe:hover{background:#2773a344}

img[src$="opt-basic-case.png.webp"],img[src$="opt-noobini-case.png.webp"]{mix-blend-mode:screen!important}
#page-home .home-cases{display:block;overflow:visible;padding:0;scroll-snap-type:none}
.home-case-group{margin:0 0 28px}.home-case-group>h3{font-size:20px;font-weight:750;margin:0 0 14px;letter-spacing:-.35px;color:#eee3fa}.home-case-group>h3:before{content:'';display:inline-block;width:4px;height:18px;margin-right:9px;vertical-align:-2px;background:#a565ec;border-radius:4px;box-shadow:0 0 12px #ad69ef55}.home-case-group-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}
#page-home .home-case-group .home-case{width:100%;text-align:left;overflow:hidden}#page-home .home-case-group .home-case-art{height:160px}#page-home .home-case-group .home-case-art img{height:150px;max-width:94%}#page-home .home-case-group .home-case-info{padding:13px 15px 17px;gap:8px}#page-home .home-case-group .home-case h2{font-size:15px;min-height:40px}#page-home .home-case-group .home-case p{display:block;font-size:11px;line-height:1.4;color:#9a87ab;margin:4px 0 0}#page-home .home-case-group .case-price{font-size:13px}
@media(max-width:1000px){.home-case-group-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:650px){.home-case-group-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:11px}.home-case-group{margin-bottom:24px}.home-case-group>h3{font-size:20px}#page-home .home-case-group .home-case-art{height:130px}#page-home .home-case-group .home-case-art img{height:122px}#page-home .home-case-group .home-case-info{padding:10px 11px 14px}#page-home .home-case-group .home-case h2{font-size:14px;min-height:38px}}

#cases-grid{display:block!important}.case-category{margin-bottom:30px}.case-category>h2{font-size:22px;margin:0 0 17px;color:#eee3fa}.case-category-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px}.case-category-grid>.case-card{min-width:0}
@media(max-width:1000px){.case-category-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}}
@media(max-width:650px){.case-category-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:11px}.case-category>h2{font-size:20px}.case-category{margin-bottom:25px}}
.topbar .wallet-coin{display:inline-flex;align-items:center;justify-content:center;width:18px;height:18px;line-height:0}.topbar .wallet-topup{box-sizing:border-box;display:grid;place-items:center;align-self:center;line-height:0;aspect-ratio:1;padding:0;transform:none}.wallet-topup svg{display:block;width:16px;height:16px;stroke:currentColor;stroke-width:2;stroke-linecap:round;fill:none}

.header-settings{display:grid;place-items:center;width:36px;height:36px;flex:0 0 36px;border:1px solid #49305e;border-radius:10px;color:#c9acdF;background:#20152b}.header-settings:hover{background:#362047}.header-settings svg{width:19px;height:19px}.settings-controls{display:grid;gap:12px;margin:22px 0}.settings-controls>button{display:flex;align-items:center;justify-content:center;gap:10px;width:100%;min-height:46px;padding:12px 15px;border:1px solid #573572;border-radius:11px;background:#261633;font-size:14px;color:#e3caF5}.settings-controls .stream-toggle{justify-content:space-between}.settings-controls .stream-label{font-size:14px}.settings-blur-title{font-size:16px;margin:22px 0 8px}
.settings-controls .music-volume{display:grid;grid-template-columns:1fr auto;gap:9px 12px;color:#e3caf5;font-size:13px}.settings-controls .music-volume span{color:#c894f4}.settings-controls .music-volume input{grid-column:1/-1;width:100%;accent-color:#a764e6}
#stream-dialog .settings-controls #music-toggle:hover,#stream-dialog .settings-controls #music-toggle:focus-visible,#stream-dialog .settings-controls #sound-toggle:hover,#stream-dialog .settings-controls #sound-toggle:focus-visible{background:#38214d;border-color:#a764e6;color:#f3e4ff}
#case-opening #skip-case:hover,#case-opening #skip-case:focus-visible{background:#38214d;border-color:#a764e6;color:#f3e4ff}
#stream-banner{display:none!important}
@media(max-width:700px){.topbar{grid-template-rows:auto}.topbar #header-settings{display:none}}

/* Home: real drop activity on the left, daily promotion and cases on the right. */
.home-layout{display:grid;grid-template-columns:218px minmax(0,1fr);gap:25px;align-items:start}.home-main{min-width:0}.home-live{position:sticky;top:20px;min-width:0}.live-heading{display:flex;align-items:center;gap:7px;color:#dfb7ff;font-size:11px;font-weight:800;letter-spacing:1px;margin:0 0 12px}.live-heading small{font-size:10px;color:#8f7a9e;letter-spacing:0;font-weight:500;margin-left:auto}.live-dot{width:6px;height:6px;background:#c287ff;border-radius:50%;box-shadow:0 0 9px #b461ef88}.live-top{position:relative;overflow:hidden;border:1px solid #8a4cba;border-radius:16px;padding:14px;background:radial-gradient(ellipse at 50% 45%,#7c3aab30,transparent 75%),linear-gradient(140deg,#251632,#140e20);box-shadow:inset 0 0 20px #9b56c70d}.live-top-label{display:block;text-align:center;color:#d1a3f0;font-size:11px;font-weight:700}.live-top-art{height:132px;display:grid;place-items:center;position:relative}.live-top-art:after{content:'';position:absolute;width:90px;height:12px;bottom:7px;background:#9c52d442;border-radius:50%;filter:blur(10px)}.live-top-art img{max-height:120px;max-width:95%;object-fit:contain;position:relative;z-index:1;filter:drop-shadow(0 7px 9px #0008)}.live-top-info{display:flex;flex-direction:column;align-items:center;gap:9px;text-align:center;margin-top:8px}.live-top-info strong{font-size:14px;line-height:1.35}.live-top-info>span{font-size:12px;font-weight:700;color:#dfbef7;background:#4c286855;border:1px solid #764392;padding:4px 12px;border-radius:20px}.live-recent{display:flex;flex-direction:column;gap:9px;margin-top:11px;max-height:585px;overflow-y:auto;scrollbar-width:thin;scrollbar-color:#55316c transparent;padding-right:3px}.live-drop{display:flex;align-items:center;gap:10px;min-width:0;padding:10px;border:1px solid #3f2a50;border-radius:12px;background:linear-gradient(110deg,#251831,#17101f);border-left:2px solid #9253c3}.live-drop>img{width:47px;height:49px;object-fit:contain;flex-shrink:0;filter:drop-shadow(0 5px 5px #0006)}.live-drop>div{min-width:0}.live-drop>.live-drop-info strong{display:block;font-size:11px;line-height:1.35;overflow-wrap:anywhere;color:#d9c8e5}.live-drop>.live-drop-info>span{display:block;font-size:11px;color:#bd8ddd;margin-top:4px}.live-empty{font-size:11px;line-height:1.6;color:#a08aaa;padding:10px 0;margin:8px 0;text-align:center}.live-drop[data-latest]{animation:drop-arrive .35s ease-out}@keyframes drop-arrive{from{opacity:.35;transform:translateY(-5px)}to{opacity:1;transform:none}}
.home-promo{position:relative;display:grid;grid-template-columns:112px minmax(0,1fr);gap:12px 20px;align-items:center;margin-bottom:28px;padding:22px;border:1px solid #613b7c;border-radius:18px;background:radial-gradient(ellipse at 5% 90%,#8945be2b,transparent 55%),linear-gradient(115deg,#241531,#170f23);overflow:hidden}.home-promo:before{content:'';position:absolute;right:-30px;top:-65px;width:220px;height:220px;border:1px solid #a05ec625;border-radius:50%;pointer-events:none}.promo-art{position:relative;display:grid;place-items:center;grid-row:1/3;align-self:stretch;min-height:130px}.promo-art>span{position:absolute;bottom:0;right:0;padding:3px 10px;border-radius:8px;background:#b079e9;color:#160d22;font-size:22px;font-weight:900;transform:rotate(6deg);box-shadow:0 3px 15px #0003}.promo-content{min-width:0;position:relative}.promo-eyebrow{font-size:9px;letter-spacing:1.6px;color:#b486d3;font-weight:700}.promo-content h2{font-size:21px;margin:5px 0 13px;letter-spacing:-.4px}.promo-code-row{display:flex;align-items:center;flex-wrap:wrap;gap:9px 15px}.promo-code-row>button{display:flex;align-items:center;gap:15px;padding:9px 13px;border:1px dashed #9563b7;border-radius:9px;background:#120b1b;color:#e3c5fb}.promo-code-row strong{font-family:ui-monospace,monospace;font-size:18px;letter-spacing:1px}.promo-code-row>button>span{color:#ad7fd0;font-size:18px}.promo-code-row>small{color:#9d86ad;font-size:10px;line-height:1.5}.promo-code-row b{display:block;color:#c7a0e7;font-size:16px;font-variant-numeric:tabular-nums;letter-spacing:.5px}.promo-content p{margin:8px 0 0;color:#aa92ba;font-size:11px}.home-promo>.primary-button{grid-column:2;min-width:0;width:100%;justify-content:center;gap:10px;font-size:12px}.promo-feedback{position:absolute;right:14px;bottom:4px;font-size:9px;color:#d9b7f4;pointer-events:none}.home-main .home-case-section{padding-top:0;margin-top:0}.home-main .home-case-group-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.home-main .home-case-group .home-case-art{height:145px}.home-main .home-case-group .home-case-art img{height:135px}
@media(min-width:1400px){.home-layout{grid-template-columns:230px minmax(0,1fr)}.home-promo{grid-template-columns:110px minmax(0,1fr) 210px}.promo-art{grid-row:1}.home-promo>.primary-button{grid-column:3;grid-row:1}.home-main .home-case-group-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:1000px){.home-layout{grid-template-columns:185px minmax(0,1fr);gap:16px}.home-main .home-case-group-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.home-promo{padding:18px;grid-template-columns:82px minmax(0,1fr);gap:12px}.promo-code-row strong{font-size:15px}.promo-content h2{font-size:18px}.live-top-art{height:115px}.live-top-art img{max-height:105px}}
@media(max-width:700px){.home-layout{display:block}.home-live{position:static;margin-bottom:17px;padding:12px;border:1px solid #4d2e65;border-radius:16px;background:linear-gradient(130deg,#21132d,#140d1f)}.live-heading{margin-bottom:9px;font-size:10px}.live-top{display:grid;grid-template-columns:66px minmax(0,1fr);gap:4px 13px;padding:11px;background:radial-gradient(ellipse at 10% 50%,#8245b02b,transparent 60%);border-radius:12px}.live-top-label{grid-column:2;text-align:left;font-size:10px}.live-top-art{grid-column:1;grid-row:1/3;height:70px}.live-top-art img{max-height:68px;max-width:66px}.live-top-info{grid-column:2;flex-direction:row;justify-content:space-between;gap:8px;text-align:left;margin:0;min-width:0}.live-top-info strong{font-size:12px;min-width:0;overflow-wrap:anywhere}.live-top-info>span{flex-shrink:0;padding:4px 7px;font-size:11px}.live-top .live-empty{grid-column:1/-1;text-align:left;margin:0;padding:0}.live-recent{flex-direction:row;gap:7px;max-height:none;overflow-x:auto;overflow-y:hidden;margin-top:10px;padding:0 0 3px;scroll-snap-type:x proximity}.live-drop{flex:0 0 61px;min-width:61px;min-height:59px;height:59px;padding:5px;display:grid;place-items:center;border-left:1px solid #3f2a50;border-bottom:2px solid #8d4db9;scroll-snap-align:start}.live-drop>img{width:48px;height:45px}.live-drop>div{display:none}.live-recent>.live-empty{text-align:left}.home-promo{margin-bottom:23px;grid-template-columns:80px minmax(0,1fr);padding:18px 15px;gap:13px}.promo-art{grid-row:1;min-height:115px}.promo-art>span{font-size:21px;bottom:-2px;right:-4px}.promo-content h2{font-size:18px;margin-bottom:11px}.promo-code-row{gap:8px}.promo-code-row>button{gap:10px;padding:7px 10px}.promo-code-row strong{font-size:16px}.promo-code-row>small{font-size:9px}.promo-code-row b{display:inline;margin-left:4px;font-size:13px}.promo-content p{font-size:10px}.home-promo>.primary-button{grid-column:1/-1;min-height:44px;font-size:12px}.home-main .home-case-group .home-case-art{height:130px}.home-main .home-case-group .home-case-art img{height:122px}}
@media(prefers-reduced-motion:reduce){.live-drop[data-latest]{animation:none}}

/* Compact activity rail and source preview. */
@media(min-width:701px){.home-layout{grid-template-columns:164px minmax(0,1fr);gap:20px}.live-heading{font-size:10px;letter-spacing:.7px;gap:5px}.live-heading small{font-size:8px}.live-top{padding:11px 9px;border-radius:13px}.live-top-label{font-size:9px}.live-top-art{height:91px}.live-top-art img{max-height:84px;max-width:90%}.live-top-art:after{width:65px;height:9px;bottom:5px}.live-top-info{gap:6px;margin-top:5px}.live-top-info strong{font-size:12px}.live-top-info>span{font-size:11px;padding:3px 9px}.live-recent{gap:7px;margin-top:8px;padding-right:2px;max-height:max(230px,calc(100dvh - 300px))}.live-drop{min-height:55px;padding:7px;gap:7px;border-radius:10px}.live-drop>img{width:37px;height:39px}.live-drop>.live-drop-info strong{font-size:10px}.live-drop>.live-drop-info>span{font-size:10px;margin-top:2px}}
@media(min-width:701px) and (max-width:1000px){.home-layout{grid-template-columns:148px minmax(0,1fr);gap:15px}.live-heading small{display:none}.live-top-info strong{font-size:11px}.live-drop{gap:5px}.live-drop>img{width:33px;height:36px}}

@media(min-width:701px){
 body:has(#page-home:not([hidden])) main{max-width:none;width:100%;margin:0;padding:0}
 #page-home .home-layout{grid-template-columns:172px minmax(0,1fr);gap:0;align-items:start}
 #page-home .home-live{top:0;padding:14px 8px 10px 6px;min-height:calc(100dvh - 170px);border-right:1px solid #3f285155;background:linear-gradient(180deg,#160e2080,#100a1780)}
 #page-home .home-main{width:100%;max-width:1480px;justify-self:center;padding:24px 30px 0;box-sizing:border-box}
 #page-home .live-recent{max-height:max(230px,calc(100dvh - 235px))}
 #page-home .home-heading{margin-bottom:20px}
}
@media(min-width:701px) and (max-width:1000px){#page-home .home-layout{grid-template-columns:156px minmax(0,1fr)}#page-home .home-main{padding:22px 18px 0}}
@media(max-width:700px){#page-home .home-main>.home-heading{margin-bottom:16px}}

/* Spacious desktop catalogue proportions; compact layouts stay unchanged. */
@media(min-width:1100px){
 #page-home .home-layout{grid-template-columns:230px minmax(0,1fr)}
 #page-home .home-main{max-width:none;padding:25px clamp(32px,5.4vw,104px) 0}
 #page-home .home-main>.home-heading,#page-home .home-case-section-title{display:none}
 #page-home .home-live{padding:12px 12px 12px 10px}
 #home-live .live-heading{font-size:10px;margin-bottom:12px}
 #home-live .live-heading small{font-size:9px}
 #home-live .live-top{padding:14px 11px;border-radius:15px}
 #home-live .live-top-label{font-size:10px}
 #home-live .live-top-art{height:112px}
 #home-live .live-top-art img{max-height:104px}
 #home-live .live-top-info strong{font-size:14px}
 #home-live .live-top-info>span{font-size:12px;padding:4px 11px}
 #home-live .live-drop{min-height:64px;padding:9px;gap:9px}
 #home-live .live-drop>img{width:42px;height:44px}
 #home-live .live-drop>div:not(.live-source)>strong{font-size:11px}
 #home-live .live-drop>div:not(.live-source)>span{font-size:11px}
 #page-home .live-recent{max-height:max(230px,calc(100dvh - 270px))}
 #page-home .home-promo{grid-template-columns:100px minmax(0,1fr) 240px;gap:20px;min-height:150px;padding:18px 25px;margin-bottom:32px}
 #page-home .promo-art{grid-row:1;min-height:106px}
 #page-home .promo-art>span{font-size:22px;bottom:0}
 #page-home .promo-content h2{font-size:18px;margin:3px 0 9px}
 #page-home .promo-code-row{gap:10px 18px}
 #page-home .promo-content p{margin-top:5px;font-size:10px}
 #page-home .home-promo>.primary-button{grid-column:3;grid-row:1;min-height:51px;font-size:13px;white-space:nowrap;padding:12px}
 #page-home .home-main .home-case-group-grid{grid-template-columns:repeat(auto-fill,230px);gap:16px}
 #page-home .home-case-group{margin-bottom:32px}
 #page-home .home-case-group>h3{font-size:21px;margin-bottom:16px}
 #page-home .home-main .home-case-group .home-case-art{height:155px}
 #page-home .home-main .home-case-group .home-case-art img{height:146px;width:91%;max-width:91%}
 #page-home .home-case-group .home-case-info{grid-template-columns:minmax(0,1fr) auto;align-items:end;gap:8px;padding:12px 14px 15px}
 #page-home .home-case-group .home-case h2{font-size:15px;min-height:0;line-height:1.35}
 #page-home .home-case-group .home-case p{font-size:10px;margin-top:7px}
 #page-home .home-case-group .case-price{font-size:12px;white-space:nowrap;justify-self:end;padding:3px 6px;border-radius:7px;background:#48246655;align-self:end}
}
@media(min-width:1100px) and (max-width:1399px){
 #page-home .home-layout{grid-template-columns:200px minmax(0,1fr)}
 #page-home .home-main{padding-inline:30px}
 #page-home .home-promo{grid-template-columns:80px minmax(0,1fr) 190px;padding:17px;gap:14px}
 #page-home .home-promo>.primary-button{font-size:11px;white-space:normal}
 #page-home .home-main .home-case-group-grid{grid-template-columns:repeat(auto-fill,minmax(205px,1fr));gap:14px}
 #page-home .home-case-group-grid>.home-case{max-width:230px}
}
@media(max-width:700px){
 #page-home .live-top-info strong{font-size:18px;font-weight:800;line-height:1.15;letter-spacing:-.3px;flex:1}
 #page-home .live-top-info{align-items:center;gap:10px}
 #page-home .live-top-label{font-size:10px}
}

@media(max-width:700px){.mobile-shortcuts{display:none!important}}

/* One desktop grid keeps the banner, category headings and card edges aligned. */
@media(min-width:1100px){
 #page-home .home-main{max-width:1500px;padding:26px clamp(28px,3.3vw,64px) 0}
 #page-home .home-promo{min-height:150px;grid-template-columns:100px minmax(0,1fr) 240px;margin-bottom:28px}
 #page-home #home-cases{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-auto-flow:row;grid-auto-columns:auto;gap:28px 16px}
 #page-home .home-case-group{grid-column:1/-1;margin:0;min-width:0}
 #page-home .home-case-group:nth-child(1),#page-home .home-case-group:nth-child(2){grid-column:1/-1}
 #page-home .home-case-group>h3{height:29px;display:flex;align-items:center;margin:0 0 16px;font-size:20px}
 #page-home .home-case-group>h3:before{flex-shrink:0}
 #page-home .home-main .home-case-group-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}
 #page-home .home-case-group:nth-child(-n+2) .home-case-group-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
 #page-home .home-case-group-grid>.home-case{display:flex;flex-direction:column;max-width:none;min-width:0;height:270px;width:100%;border-radius:14px}
 #page-home .home-main .home-case-group .home-case-art{height:170px;min-height:170px;margin:0;flex:0 0 170px}
 #page-home .home-main .home-case-group .home-case-art img{height:156px;max-height:156px;width:92%;max-width:92%;object-fit:contain}
 #page-home .home-case-group .home-case-info{display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-rows:40px 22px;align-items:center;gap:5px 10px;width:100%;padding:12px 14px 13px;flex:1}
 #page-home .home-case-info>div{display:contents}
 #page-home .home-case-group .home-case h2{grid-column:1/-1;margin:0;min-height:0;height:40px;display:flex;align-items:center;font-size:15px;line-height:1.3;overflow-wrap:anywhere}
 #page-home .home-case-group .home-case p{grid-column:1;grid-row:2;margin:0;min-width:0;font-size:10px;line-height:1.4}
 #page-home .home-case-group .case-price{grid-column:2;grid-row:2;align-self:center;justify-self:end;line-height:1.4;padding:3px 7px;font-size:12px}
 #page-home .home-case-section{border-top:0}
}
@media(min-width:1100px) and (max-width:1399px){
 #page-home .home-main{padding:24px 28px 0}
 #page-home .home-promo{grid-template-columns:75px minmax(0,1fr) 190px;gap:14px}
 #page-home #home-cases{gap:25px 12px}
 #page-home .home-case-group>h3{font-size:18px}
 #page-home .home-main .home-case-group-grid{gap:12px}
 #page-home .home-case-group-grid>.home-case{height:245px}
 #page-home .home-main .home-case-group .home-case-art{height:148px;min-height:148px;flex-basis:148px}
 #page-home .home-main .home-case-group .home-case-art img{height:136px;max-height:136px}
 #page-home .home-case-group .home-case-info{padding:10px 11px 12px}
 #page-home .home-case-group .home-case h2{font-size:14px}
}

img[src$="opt-gears-case.png.webp"]{mix-blend-mode:screen!important}

/* Compact top-up: pick an item, then confirm its quote and account details. */
#topup-dialog{width:min(480px,calc(100% - 24px));max-width:480px;padding:22px;border-radius:17px;background:linear-gradient(145deg,#20142d,#140e1e);scrollbar-width:thin}
#topup-dialog h2{font-size:21px;margin:0 42px 6px 0;letter-spacing:-.45px}
#topup-dialog .topup-step-note{font-size:11px;line-height:1.5;color:#9d87ad;margin:0 40px 16px 0}
#topup-dialog .profile-field{font-size:11px;gap:6px;position:relative;line-height:1.4;margin:0 0 13px}
#topup-dialog .profile-field input{width:100%;min-height:44px;font-size:14px;border-radius:10px;padding:10px 12px;background:#100b17;border-color:#453051}
#topup-dialog .profile-field small{font-size:10px;color:#8e789e;line-height:1.45}
#topup-dialog .optional-label{position:absolute;right:0;top:0;font-size:10px;color:#7e678f}
#topup-dialog .topup-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:0}
#topup-dialog .topup-choice{min-height:117px;padding:8px 5px;gap:4px;border-radius:10px;background:#24162f}
#topup-dialog .topup-choice img{height:56px;filter:drop-shadow(0 5px 6px #0005)}
#topup-dialog .topup-choice strong{font-size:10px;line-height:1.3;min-height:26px;display:flex;align-items:center;justify-content:center}
#topup-dialog .topup-choice>span{display:none}
#topup-dialog .topup-choice .topup-item-price{font-size:11px;margin:0}
#topup-dialog .item-pagination{margin-top:12px;gap:7px;flex-wrap:wrap;justify-content:center}
#topup-dialog .item-pagination small{font-size:10px}
#topup-dialog .item-pagination button{min-width:30px;min-height:32px;height:32px;font-size:11px;padding:5px 8px}
#topup-dialog .topup-back{display:inline-flex;align-items:center;min-height:30px;margin:0 0 10px;padding:2px 0;color:#ae90c5;font-size:11px}
#topup-dialog .topup-back:hover{color:#e8c8ff}
#topup-dialog .topup-selected-row{display:flex;gap:10px;align-items:center;min-width:0;padding:0 0 15px;margin-bottom:14px;border-bottom:1px solid #382343}
#topup-dialog .topup-selected-row>img{width:48px;height:52px;object-fit:contain;flex-shrink:0;filter:drop-shadow(0 5px 6px #0005)}
#topup-dialog .topup-selected-row>div{min-width:0;flex:1}
#topup-dialog #topup-selected{display:block;font-size:12px;line-height:1.4;color:#e9d9f5;overflow-wrap:anywhere}
#topup-dialog #topup-unit-price{display:block;font-size:10px;color:#a384b9;margin-top:4px}
#topup-dialog .topup-quantity-field{flex:0 0 78px;display:flex;flex-direction:column;gap:5px;color:#9478a6;font-size:9px;text-align:center}
#topup-dialog #topup-quantity{width:100%;min-height:38px;height:38px;padding:7px;text-align:center;border:1px solid #513262;border-radius:9px;background:#1a1026;color:#ead9f7;font-size:14px!important}
#topup-dialog .topup-total{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:13px 14px;border:1px solid #7d48a3;background:linear-gradient(100deg,#432358,#2b193d);border-radius:11px;margin-bottom:16px}
#topup-dialog .topup-total>span{font-size:12px;font-weight:650;color:#d3b9e4}
#topup-dialog #topup-quote{margin:0;padding:0;border:0;background:none;font-size:22px;font-weight:800;line-height:1.2;color:#e7c2ff;white-space:nowrap}
#topup-dialog #topup-submit{min-height:46px;font-size:13px;justify-content:center;border-radius:10px;margin-top:3px}
#topup-dialog .profile-fineprint{font-size:9px;line-height:1.5;text-align:center;margin-top:10px;color:#826b92}
#topup-dialog .profile-error{font-size:11px;margin:4px 0 11px}
.topup-success{text-align:center;padding:22px 5px 6px}.topup-success>span{display:grid;place-items:center;margin:0 auto 16px;width:54px;height:54px;border-radius:50%;background:#68389444;border:1px solid #9c64ce;color:#d9aaff;font-size:28px}.topup-success h3{font-size:20px;margin:0 0 10px}.topup-success p{font-size:12px;color:#ad94bc;line-height:1.65;margin:0 0 21px}.topup-success .primary-button{width:100%;justify-content:center}
/* Signed-in profile shares the same compact panel language. */
#account-dialog:has(#account-signed:not([hidden])){width:min(480px,calc(100% - 24px));max-width:480px;padding:20px;border-radius:17px}
#account-dialog:has(#account-signed:not([hidden]))>.login-brand{display:none}
#account-dialog:has(#account-signed:not([hidden]))>h2{font-size:18px;margin:0 42px 15px 0}
#account-dialog .profile-card{padding:16px;border:1px solid #453052;border-radius:14px;background:linear-gradient(135deg,#251731,#1a1224)}
#account-dialog .profile-heading{gap:12px;margin:0 0 14px}
#account-dialog .profile-heading .profile-avatar{width:53px;height:53px;font-size:23px}
#account-dialog #account-name{font-size:17px;line-height:1.3}
#account-dialog #profile-username{font-size:11px;margin-top:3px}
#profile-public-id{display:block;color:#8b749a;font-size:10px;margin-top:4px;letter-spacing:.3px}
#account-dialog .profile-wallet{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 14px;padding:13px 0 0;border:0;border-top:1px solid #442b51;border-radius:0;background:none}
#account-dialog .profile-wallet>div{min-width:0}
#account-dialog .profile-wallet>div>span{display:block;font-size:10px;color:#a084b1;margin-bottom:3px}
#account-dialog #profile-balance{font-size:24px;font-weight:800;color:#eddaff;line-height:1.2;overflow-wrap:anywhere}
#account-dialog #profile-new-request{width:auto;min-height:39px;padding:9px 14px;font-size:12px;border-radius:9px;flex-shrink:0}
.profile-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}
.profile-stats>div{padding:10px;border-radius:9px;background:#34203f70;min-width:0}
.profile-stats strong{display:block;font-size:18px;line-height:1.2;color:#dfc4f1;overflow-wrap:anywhere}.profile-stats span{display:block;font-size:10px;margin-top:4px;color:#937aa3}
.profile-request-details{margin-top:13px;padding:0 13px;border:1px solid #442d54;border-radius:12px;background:#1c1325}
.profile-request-details>summary{display:flex;align-items:center;justify-content:space-between;list-style:none;min-height:47px;font-size:13px;font-weight:650;color:#d9c2e9;cursor:pointer;gap:10px}.profile-request-details>summary::-webkit-details-marker{display:none}.profile-request-details>summary>span{font-size:10px;color:#9175a3;font-weight:400}.profile-request-details>summary:after{content:'⌄';font-size:16px;color:#a071bf}.profile-request-details[open]>summary:after{transform:rotate(180deg)}
#account-dialog .profile-section-title{margin:5px 0 10px;gap:8px}.profile-section-title h3{font-size:11px}#account-dialog .profile-section-title button{min-height:31px;padding:5px 9px;font-size:10px}
#account-dialog #profile-requests-list{max-height:245px;gap:7px}.profile-request-details .profile-request{padding:10px;border-radius:9px}.profile-request-details .profile-request>small{font-size:10px}.profile-request-details .profile-paging{padding-bottom:12px;gap:8px}.profile-request-details .profile-paging button{min-height:33px;font-size:10px;padding:5px 9px}#account-dialog .profile-logout{margin-top:12px;min-height:36px;padding:7px;font-size:11px;border-top:0;color:#9d82af}#account-dialog .profile-feedback{font-size:11px;margin:10px 2px}
@media(max-width:480px){#topup-dialog,#account-dialog:has(#account-signed:not([hidden])){padding:20px 15px 16px;width:calc(100% - 20px)}#account-dialog .profile-card{padding:13px}.profile-stats>div{padding:9px 8px}#topup-dialog .profile-field input{font-size:16px}#topup-dialog .topup-selected-row{gap:8px}#topup-dialog .topup-quantity-field{flex-basis:68px}}
@media(max-width:350px){#topup-dialog .topup-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.profile-stats span{font-size:9px}}

#topup-dialog .sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}

/* Scroll inside each item catalogue; no page controls. */
.brainrot-scroll{max-height:520px;max-height:clamp(260px,58dvh,600px);overflow-y:auto;overflow-x:hidden;overscroll-behavior-y:contain;scrollbar-width:thin;scrollbar-color:#8552ac #140c20;scrollbar-gutter:stable;align-content:start;padding-right:7px;padding-bottom:4px;-webkit-overflow-scrolling:touch;scroll-padding-block:8px}
.brainrot-scroll::-webkit-scrollbar{width:5px}.brainrot-scroll::-webkit-scrollbar-track{background:#140c20;border-radius:5px}.brainrot-scroll::-webkit-scrollbar-thumb{background:#754599;border-radius:5px}.brainrot-scroll::-webkit-scrollbar-thumb:hover{background:#a069cd}.brainrot-scroll:focus-visible{outline:1px solid #a068c9;outline-offset:4px}
.card-upgrade-chance{display:block;width:100%;text-align:center;color:#ca9bf1;font-size:11px;font-weight:750;line-height:1.3;margin-top:6px;font-variant-numeric:tabular-nums}.card-upgrade-chance small{color:#8f729f;font-size:9px;font-weight:500}
#topup-dialog #topup-grid.brainrot-scroll{max-height:min(330px,46dvh);padding-right:5px;margin-bottom:3px}
#dice-picker-grid.brainrot-scroll,#rocket-picker-grid.brainrot-scroll{max-height:min(480px,58dvh)}
@media(min-width:1100px){
 #page-upgrader #inventory-grid.brainrot-scroll,#page-upgrader #target-grid.brainrot-scroll,#page-upgrader #upgrade-shop-grid.brainrot-scroll{grid-template-columns:repeat(auto-fill,minmax(105px,1fr));gap:9px;max-height:445px;padding-right:6px}
 #page-upgrader .brainrot-scroll .item-card{padding:10px 8px;min-width:0;min-height:0;border-radius:10px}
 #page-upgrader .brainrot-scroll .item-card img{height:78px;min-height:78px;margin:5px 0;object-fit:contain}
 #page-upgrader .brainrot-scroll .card-name{font-size:10px;line-height:1.35;min-height:28px}
 #page-upgrader .brainrot-scroll .card-rarity{font-size:7px}
 #page-upgrader .brainrot-scroll .catalog-number{font-size:7px}
 #page-upgrader .brainrot-scroll .card-bottom{font-size:10px;padding-top:8px;margin-top:7px}
 #page-upgrader .brainrot-scroll .card-upgrade-chance{font-size:10px;margin-top:5px}
 #page-upgrader .brainrot-scroll .card-upgrade-chance small{font-size:8px}
 #page-upgrader #upgrade-shop-grid .outline-button{padding:8px 5px;min-height:34px;font-size:10px}
}
@media(max-width:700px){.brainrot-scroll{max-height:min(520px,61dvh);padding-right:5px}.card-upgrade-chance{font-size:12px}.card-upgrade-chance small{font-size:10px}#topup-dialog #topup-grid.brainrot-scroll{max-height:min(320px,44dvh)}}

/* Owner-supplied BrainLab case artwork. */
img:is([src*="/brainlab-"][src$="-case.png"],[src*="/opt-brainlab-"][src$="-case.png.webp"]){mix-blend-mode:screen!important;object-fit:contain}

/* Larger artwork, with motion contained inside each card. */
#page-home .home-case{position:relative;overflow:hidden;transition:transform .28s cubic-bezier(.2,.7,.3,1),border-color .25s ease,box-shadow .25s ease;background-clip:padding-box}
#page-home .home-case-art{overflow:hidden;background:none}
#page-home .home-case-art:before{content:'';position:absolute;left:18%;right:18%;bottom:3px;height:24px;border:0;border-radius:50%;background:radial-gradient(ellipse 46% 39% at 50% 57%,#07040bb8,transparent),radial-gradient(ellipse at center,#a65de538 0%,#8951c31c 35%,transparent 72%);filter:none;box-shadow:none;pointer-events:none;z-index:0}
#page-home .home-case-art:after{content:none}
#page-home .home-case:is([data-case-view="pixel"],[data-case-view="depths"],[data-case-view="dragon-rift"]){--case-art-scale:1.11}
#page-home .home-case[data-case-view="twins"]{--case-art-scale:1.17}
#page-home .home-case:is([data-case-view="school"],[data-case-view="metro"]){--case-art-scale:1.17}
#page-home .home-main .home-case-group .home-case-art img{transform:scale(var(--case-art-scale,1.04));transform-origin:50% 50%;filter:none;transition:transform .32s cubic-bezier(.2,.7,.3,1)}
@media(hover:hover) and (pointer:fine){
 #page-home .home-case:hover{border-color:#a46ade;box-shadow:0 8px 16px #07030b55;z-index:1}
 
}
#page-home .home-case:focus-visible{outline:2px solid #c18cf2;outline-offset:2px}
@media(prefers-reduced-motion:reduce){#page-home .home-case,#page-home .home-main .home-case-group .home-case-art img{transition:none}}

/* Compact case catalogue: consistent art, title and bottom metadata rows. */
#page-home .home-main .home-case-group-grid{gap:12px}
#page-home .home-case-group-grid>.home-case{display:flex;flex-direction:column;width:100%;min-width:0;height:226px;padding:0;border-radius:12px}
#page-home .home-main .home-case-group .home-case-art{height:150px;min-height:150px;flex:0 0 150px;margin:0}
#page-home .home-main .home-case-group .home-case-art img{height:130px;max-height:130px;width:88%;max-width:88%;object-fit:contain}
#page-home .home-case-group .home-case-info{display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-rows:34px 18px;align-items:center;gap:4px 8px;width:100%;min-width:0;padding:7px 12px 12px;box-sizing:border-box;flex:1}
#page-home .home-case-info>div{display:contents}
#page-home .home-case-group .home-case h2{grid-column:1/-1;height:34px;min-height:0;display:flex;align-items:center;margin:0;font-size:14px;line-height:1.2;overflow-wrap:anywhere}
#page-home .home-case-group .home-case p{grid-column:1;grid-row:2;display:block;margin:0;font-size:10px;line-height:1.3;min-width:0}
#page-home .home-case-group .case-price{grid-column:2;grid-row:2;align-self:center;justify-self:end;margin:0;padding:2px 5px;white-space:nowrap;font-size:12px;line-height:1.3}
@media(min-width:701px){
 #page-home .home-main .home-case-group-grid,#page-home .home-case-group:nth-child(-n+2) .home-case-group-grid{grid-template-columns:repeat(auto-fill,minmax(190px,1fr))}
 #page-home .home-case-group-grid>.home-case{max-width:240px}
 #page-home #home-cases{row-gap:24px}
 #page-home .home-case-group>h3{margin-bottom:12px}
}
@media(max-width:700px){
 #page-home .home-main .home-case-group-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
 #page-home .home-case-group-grid>.home-case{height:204px}
 #page-home .home-main .home-case-group .home-case-art{height:128px;min-height:128px;flex-basis:128px}
 #page-home .home-main .home-case-group .home-case-art img{height:108px;max-height:108px}
 #page-home .home-case-group .home-case-info{padding:6px 9px 10px;gap:4px 5px}
 #page-home .home-case-group .home-case h2{font-size:13px}
 #page-home .home-case-group .home-case p{font-size:9px}
 #page-home .home-case-group .case-price{font-size:11px;padding-inline:4px}
}

/* The live rail and Telegram can change the available width independently of the viewport. */
#case-odds.case-odds{grid-template-columns:repeat(auto-fill,minmax(min(100%,118px),1fr));gap:12px}
#case-odds.case-odds .drop-entry{min-width:0;padding:10px 10px 0;border-radius:10px;align-items:stretch}
#case-odds .drop-art{height:112px;min-width:0;grid-template-columns:minmax(0,1fr)}
#case-odds.case-odds .drop-art img{width:100%;max-width:116px;height:100px;object-fit:contain}
#case-odds.case-odds .drop-name{font-size:12px;min-height:34px;overflow-wrap:anywhere}
#case-odds .drop-bottom{margin-top:auto;padding-block:9px;white-space:nowrap}
#case-odds .drop-bottom>span{display:block;color:#d7b5fa;font-size:13px;letter-spacing:normal}
#case-odds .drop-meter{margin-top:0}

@media(min-width:1100px){#page-home .home-main{position:relative;isolation:isolate}#page-home .home-main:before{content:'';position:absolute;z-index:-1;pointer-events:none;top:160px;right:-3%;width:min(60%,720px);height:900px;background:url('assets/lab-constellation.svg') center top/contain no-repeat;opacity:.85}#page-home .home-main:after{content:'';position:absolute;z-index:-2;pointer-events:none;inset:210px -3% 0 35%;background:radial-gradient(ellipse at 65% 35%,#6f389512,transparent 65%);border-radius:50%}}

@media(min-width:1100px){#page-home .home-main:before{position:fixed;top:15vh;right:2vw;width:min(55vw,720px);height:85vh;animation:lab-orbit-drift 18s ease-in-out infinite alternate;transform-origin:center;will-change:transform}#page-home .home-main:after{position:fixed;inset:20vh 0 0 45vw}}
@keyframes lab-orbit-drift{from{transform:translate3d(0,0,0) rotate(-1deg)}to{transform:translate3d(-10px,-14px,0) rotate(1deg)}}
@media(prefers-reduced-motion:reduce){#page-home .home-main:before{animation:none;will-change:auto}}
#resume-case{margin:0 0 22px;width:100%;border-color:#74459b;background:#281633;color:#dcc1ed;padding:14px 18px;text-align:left}

.lab-backdrop{display:none}
@media(min-width:1100px){#page-home .home-main:before{content:none;animation:none;will-change:auto}.lab-backdrop{display:block;position:fixed;z-index:-1;top:15vh;right:2vw;width:min(55vw,720px);height:85vh;pointer-events:none;transform-origin:center;will-change:transform}.lab-backdrop-art{width:100%;height:100%;background:url('assets/lab-constellation.svg') center top/contain no-repeat;opacity:.9;animation:lab-flask-float 10s ease-in-out infinite alternate;will-change:transform}}
@keyframes lab-flask-float{0%{transform:translate3d(8px,10px,0) rotate(-2.2deg) scale(1)}100%{transform:translate3d(-18px,-24px,0) rotate(2.2deg) scale(1.025)}}
@media(prefers-reduced-motion:reduce){.lab-backdrop,.lab-backdrop-art{animation:none;transform:none!important;will-change:auto}}

/* Brief page reveal without moving fixed decorations or interrupting controls. */
.page-section:not(#page-cases):not([hidden]){animation:brainlab-page-in .18s ease-out}
@keyframes brainlab-page-in{from{opacity:.35}to{opacity:1}}
.stream-word-list{margin-top:16px;border:1px solid #553367;border-radius:11px;background:#1c1228;overflow:hidden}
.stream-word-list>summary{cursor:pointer;padding:13px 15px;font-size:12px;color:#d8b6f0;list-style:none}
.stream-word-list>summary:after{content:'＋';float:right;color:#c291e4}
.stream-word-list[open]>summary:after{content:'−'}
.stream-word-list>summary::-webkit-details-marker{display:none}
.stream-word-editor{padding:0 13px 4px;border-top:1px solid #493056}
.stream-word-editor .blur-words-label{margin-top:12px;font-size:11px}
#stream-word-list #stream-words{min-height:100px;max-height:180px;font-size:13px;line-height:1.6;padding:10px}
.stream-word-editor .blur-help{font-size:10px;margin:9px 0;line-height:1.5}
@media(prefers-reduced-motion:reduce){.page-section:not([hidden]){animation:none}}

:is(#owned-grid,#shop-grid){padding-block:8px 10px}
#page-upgrader,#page-tower,#page-fuse{padding-block-end:36px}
:is(#page-upgrader,#page-tower,#page-fuse) :is(.brainrot-scroll,#tower-items,#fuse-inventory){padding-block-end:24px}
#purchase-presets[hidden],#withdraw-exchange[hidden]{display:none}
#purchase-presets{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;margin:8px 0 14px}
#purchase-presets button{min-height:44px;padding:4px;border:1px solid #68428b;border-radius:8px;background:#271a37;color:#ead7f8}
@media(max-width:380px){#purchase-presets{grid-template-columns:repeat(2,minmax(0,1fr))}}
#purchase-presets button:hover{background:#39244e}
#purchase-presets button:focus-visible{outline:2px solid #e1bcff;outline-offset:2px}
:is(.item-card,.market-card-top,.withdraw-source-toggle,.purchase-preview,.drop-art){position:relative}
.mutation-badge{
 position:absolute;z-index:1;top:5px;right:5px;width:26px;height:26px;
 background:var(--mutation-icon) center/contain no-repeat;filter:drop-shadow(0 2px 2px #08050ccc);
}
.mutation-badge.mutation-badge-inline{
 display:inline-block;position:static;width:1.45em;height:1.45em;margin-inline-start:.3em;
 vertical-align:-.33em;
}
:is(.item-card,.drop-art,.withdraw-source-toggle):has(>.mutation-badge)>img{
 box-sizing:border-box;
 padding-block-start:28px;
}
.market-card-top:has(.mutation-badge){justify-content:flex-start;padding-right:36px}
.market-card-top .mutation-badge{top:-5px}
.item-card:has(.mutation-badge) .catalog-number{display:none}
.item-card.selected:has(>.mutation-badge)::after{top:8px;left:20px;right:auto}
.app-shell:not(:has(#page-home:not([hidden]))) .site-footer{display:none}
.inventory-actions{display:flex;flex-wrap:wrap;justify-content:flex-end;align-items:center;gap:10px}
.inventory-actions .primary-button{width:auto;margin:0}
@media(max-width:540px){
 .inventory-actions{justify-content:flex-start}
}
.daily-share-card{display:flex;align-items:center;gap:14px;padding:14px;margin:20px 0;border:1px solid #67408a;border-radius:14px;background:linear-gradient(125deg,#291638aa,#160e22);max-width:570px}
#case-controls .daily-share-card>img{width:142px;height:auto;max-width:100%;margin:0;border-radius:8px;flex-shrink:0;object-fit:contain;aspect-ratio:1280/622}
.daily-share-card>div{min-width:0}.daily-share-card strong{font-size:14px;color:#eddbff}
.daily-share-card #daily-share-status{display:block;margin:8px 0;font-size:12px;line-height:1.6;color:#baa9ca}
.daily-share-card .telegram-subscribe{margin:6px 6px 0 0;padding:9px 12px;font-size:12px;white-space:normal}
.daily-share-card [hidden]{display:none!important}
@media(max-width:520px){.daily-share-card{align-items:flex-start;flex-direction:column}#case-controls .daily-share-card>img{width:100%;max-width:360px}.daily-share-card .telegram-subscribe{width:100%}}

/* Blend the supplied black-backed neon cover into the case panels. */
img[src$="opt-brainlab-referral-case.webp"]{mix-blend-mode:screen}

.telegram-case-requirements{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:18px 0 14px}.telegram-case-requirements .telegram-subscribe{margin:0}
#page-home .home-case-group [data-case-view="telegram"] .home-case-info{grid-template-rows:34px auto}
#page-home .home-case-group [data-case-view="telegram"] .home-case-info p{white-space:normal;overflow:visible;text-overflow:clip;line-height:1.4}

img[src$="opt-brainlab-rich-case.webp"]{mix-blend-mode:screen}

img[src$="opt-brainlab-og-case.webp"]{mix-blend-mode:screen}

@media(min-width:1480px){
 .app-shell>.topbar{height:90px;align-items:center}
 .topbar>.sidebar{
  flex:1 1 auto;
  width:auto;
  height:auto;
  min-height:0;
  padding:0;
  flex-wrap:nowrap;
  justify-content:flex-start;
  background:none;
  border:0;
 }
 .topbar>.sidebar nav{order:0;flex:1 1 0;width:auto;padding-block:6px 8px;overflow:hidden}
 .topbar>.sidebar nav .nav-button{min-height:50px;padding-inline:12px;font-size:14px}
 .topbar>.header-actions{flex:0 0 auto;width:auto;gap:12px}
}

@media(min-width:701px) and (max-width:1479px){.topbar{grid-template-columns:40px minmax(0,1fr) 36px auto max-content;grid-template-rows:auto}.topbar #header-settings{grid-column:3;grid-row:1}.topbar .profile-header-controls{grid-column:4}.topbar .profile-balance-card{grid-column:5}}

.app-shell>main:has(>#page-cases:not([hidden])){padding-top:8px}
#case-detail>#back-to-cases{
 position:absolute;
 inset:6px auto auto 12px;
 z-index:3;
 display:inline-flex;
 align-items:center;
 min-height:40px;
 padding-inline:6px;
 color:#c6addb;
 font-size:12px;
 text-decoration:none;
}
#case-detail>#back-to-cases:hover,#case-detail>#back-to-cases:focus-visible{color:#f2e4ff;text-decoration:underline}
#case-opening #skip-case{display:inline-flex;align-items:center;justify-content:center;min-height:40px;padding:0 6px;border:0;background:transparent;color:#c6addb;font-size:12px;box-shadow:none}
#case-opening #skip-case:hover,#case-opening #skip-case:focus-visible{background:transparent;border:0;color:#f2e4ff;text-decoration:underline;box-shadow:none}
.withdraw-history{display:none}
#case-detail>#case-opening:not([hidden]){margin-top:0}
#case-detail-header .case-hero-art{
 --case-cover-visible-height:calc(clamp(210px,21vw,260px) * .8073);
 height:clamp(210px,21vw,260px);
}
#case-detail-header .case-hero-art>img{
 position:absolute;left:50%;top:50%;
 transform:translate(-50%,-50%);
 width:auto;height:calc(var(--case-cover-visible-height) * var(--case-cover-height-factor,1.239));
 max-width:calc(100vw - 26px);max-height:none;
 object-fit:contain;image-rendering:auto;filter:none;mix-blend-mode:normal;
}
.case-prize-preview{
 position:absolute;inset-inline:0;top:calc(var(--case-stage-top,24px) + clamp(105px,10.5vw,130px));
 display:block;overflow:hidden;
 height:clamp(64px,15vw,84px);transform:translateY(-50%);
 opacity:.36;pointer-events:none;mask-image:linear-gradient(90deg,transparent,#000 15%,#000 85%,transparent);
}
.case-prize-track{
 display:grid;grid-template-columns:repeat(var(--preview-columns),minmax(0,1fr));grid-template-rows:minmax(0,1fr);
 width:calc(100% * var(--preview-columns) / 5);height:100%;animation:case-prize-scroll 32s linear infinite;
}
.case-prize-preview picture{
 display:grid;place-items:center;min-width:0;min-height:0;
 margin:0 3px;
 border:1px solid #b97de039;border-radius:9px;background:#281836;
}
.case-prize-preview img{
 display:block;width:80%;height:80%;min-height:0;object-fit:contain;
 transform:scale(var(--preview-scale));
 animation:case-prize-scale 32s linear var(--preview-delay) infinite;
}
@media(prefers-reduced-motion:reduce){
 .case-prize-track,.case-prize-preview img{animation:none}
}
#case-detail-header .case-hero-art{z-index:1}
@media(min-width:901px){
 #case-detail-header{
  --case-stage-top:clamp(48px,7vh,78px);
  padding-top:var(--case-stage-top);padding-bottom:24px;
  background:radial-gradient(ellipse 42% 72% at 50% 53%,#8b45bf32,transparent 78%),radial-gradient(ellipse 34% 58% at 15% 66%,#8043ad1c,transparent 80%),radial-gradient(ellipse 34% 58% at 85% 34%,#6b41a01a,transparent 80%),linear-gradient(120deg,#171021,#100c18);
 }
 .case-prize-preview{inset-inline:12px;top:calc(var(--case-stage-top) + 152px);height:clamp(68px,8vw,120px)}
 .case-prize-track{width:200%}
 .case-prize-preview picture{margin-inline:4px}
 #case-opening{padding-top:9px}
 #case-detail>#back-to-cases,#case-opening #skip-case{min-height:44px;padding-inline:9px;font-size:14px}
 #case-opening .reel-title{min-height:38px;padding-inline:112px}

 #case-detail-header .case-hero-art{--case-cover-visible-height:246px;width:305px;height:305px}
}
@keyframes case-prize-scroll{to{transform:translateX(-50%)}}
@keyframes case-prize-scale{
 0%,100%{transform:scale(.68)}
 50%{transform:scale(1.18)}
}
@media(max-width:600px){
 .case-prize-preview{opacity:.56;mask-image:linear-gradient(90deg,transparent,#000 9%,#000 91%,transparent)}
 #case-detail-header{--case-stage-top:38px;padding-block-start:var(--case-stage-top)}
 #case-detail-header .case-hero-art{--case-cover-visible-height:176px;justify-self:center}
 #case-detail-header .case-hero-art>img{
  inset:0;margin:0;width:100%;height:100%;max-width:100%;max-height:100%;transform:none;
 }
}
#case-detail-header .case-art-floor{background:radial-gradient(ellipse,#ffe6a077,transparent 70%)}

#case-count-options{
 display:grid;
 grid-template-columns:repeat(6,minmax(0,1fr));
 gap:6px;
 margin:0 0 10px;
}
#case-count-options[hidden]{display:none}
#case-count-options button{min-width:0;min-height:42px;padding:4px}
#case-count-options button[aria-pressed="true"]{background:linear-gradient(150deg,#a453eb,#7632c5)}
#case-controls .case-hero-actions>[data-case]{flex:1;min-width:0}

/* Keep the top-up form centered with room for the docked buff list. */
#topup-dialog{width:min(820px,calc(100% - 24px));max-width:none;inset:0;margin:auto}
.telegram-miniapp #topup-dialog{
 top:var(--brainlab-safe-top,0px);
 bottom:var(--brainlab-safe-bottom,0px);
 margin:auto;
}
@media(min-width:820px){
 #topup-dialog.has-buffs{width:min(1180px,calc(100% - 32px))}
}

.topup-buffs-panel details{margin:0;border-bottom:1px solid #453055}
.topup-buffs-panel summary{display:flex;align-items:center;gap:7px;padding:9px 0;font-size:12px;list-style:none}
.topup-buffs-panel summary::-webkit-details-marker{display:none}
.topup-buffs-panel summary strong{text-transform:uppercase}
.topup-buffs-panel summary span,.topup-buffs-panel summary small{color:#aa91bd;font-size:10px}
.topup-buffs-panel summary small{margin-left:auto}
.topup-buffs-panel summary::after{content:'▾';color:#aa91bd}
.topup-buffs-panel details[open] summary::after{content:'▴'}
.topup-buffs-panel .topup-buff-grid{padding-bottom:8px}
#topup-dialog #topup-grid.topup-gears-row{
 display:grid;grid-template-columns:repeat(6,minmax(105px,1fr));gap:8px;
 overflow-x:auto;padding-bottom:6px;scrollbar-color:#724b8d transparent;
}
#topup-dialog #topup-grid.topup-gears-row .topup-choice img{height:60px}
#topup-dialog .topup-count-choice{min-height:146px}
#topup-dialog .topup-count-choice .topup-gear-count{display:grid;grid-template-columns:34px minmax(0,1fr) 34px;gap:2px;width:100%;margin-top:auto;border:1px solid #5c3c71;border-radius:7px;overflow:hidden}
#topup-dialog .topup-count-choice .topup-gear-count button{min-height:30px;padding:2px;border:0;border-radius:0;background:#2c1a3e;color:#f2e4ff;font-size:16px;font-weight:700;cursor:pointer}
#topup-dialog .topup-count-choice .topup-gear-count button:hover:not(:disabled){background:#603285}
#topup-dialog .topup-count-choice .topup-gear-count button:disabled{opacity:.35;cursor:default}
#topup-dialog .topup-count-choice .topup-gear-count output{display:grid;place-items:center;min-width:0;background:#1b1027;color:#f4eaff;font-size:12px;font-weight:700;font-variant-numeric:tabular-nums}
#topup-dialog #topup-grid{user-select:none;-webkit-user-select:none}
#topup-dialog #topup-grid img{-webkit-user-drag:none}
@media(min-width:701px){
 #topup-dialog:not(.has-buffs) #topup-grid:not(.topup-gears-row){grid-template-columns:repeat(4,minmax(0,1fr))}
}
@media(min-width:850px){
 #topup-dialog:not(.has-buffs) #topup-grid:not(.topup-gears-row){grid-template-columns:repeat(5,minmax(0,1fr))}
}
@media(min-width:1100px){
 #topup-dialog.has-buffs #topup-grid:not(.topup-gears-row){grid-template-columns:repeat(4,minmax(0,1fr))}
}
@media(min-width:1200px){
 #topup-dialog.has-buffs #topup-grid:not(.topup-gears-row){grid-template-columns:repeat(5,minmax(0,1fr))}
}
@media(max-width:480px){
 #topup-dialog #topup-grid:not(.topup-gears-row){grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(prefers-reduced-motion:no-preference){
 #topup-dialog{transition:width .32s cubic-bezier(.2,.75,.25,1)}
}

@media(min-width:820px){
 /* The form sizes the grid row. Buff cards scroll within that row. */
 #topup-dialog.has-buffs .topup-buffs-panel{contain:size;min-height:0}
}

/* Shared pixel icons keep navigation and mode headings consistent. */
.mode-pixel-icon{display:block;width:1em;height:1em;object-fit:contain;image-rendering:pixelated;flex-shrink:0}
.nav-button [data-icon] .mode-pixel-icon,.mobile-shortcuts .mode-pixel-icon{width:20px;height:20px}
.dice-heading-icon .mode-pixel-icon{width:100%;height:100%}
/* Active tabs use solid white labels/icons over a violet pill on desktop and mobile. */
.topbar>.sidebar nav .nav-button.active,#mobile-menu .nav-button.active{background:linear-gradient(160deg,#9b51de,#7130b7);color:#fff;border-color:#a365e3;box-shadow:inset 0 1px #dfb4ff99,0 3px 0 #4c2279,0 6px 12px #5e278b40}
.topbar>.sidebar nav .nav-button.active:hover,#mobile-menu .nav-button.active:hover{background:linear-gradient(160deg,#aa62e9,#7d3ac6);color:#fff}
.topbar>.sidebar nav .nav-button.active:active,#mobile-menu .nav-button.active:active{transform:translateY(2px);box-shadow:inset 0 1px #dfb4ff99,0 1px 0 #4c2279}
.topbar>.sidebar nav .nav-button.active .mode-pixel-icon{filter:brightness(0) invert(1)}

@media(min-width:851px) and (hover:hover) and (pointer:fine){
 html{
  --brainlab-sticky-rail-top:calc(var(--brainlab-header-offset,0px) + var(--topbar-height,90px));
  scroll-padding-top:var(--brainlab-sticky-rail-top);
 }
 .app-shell>.topbar{position:sticky;top:var(--brainlab-header-offset,0px);z-index:35}
 .app-shell:has(>#home-live){display:grid;grid-template-columns:172px minmax(0,1fr)}
 .app-shell:has(>#home-live)>:where(:not(main,#home-live)){grid-column:1/-1}
 .app-shell:has(>#home-live)>main{width:100%;margin:0 auto}
 .app-shell:has(>#home-live) #page-home .home-layout{grid-template-columns:minmax(0,1fr)}
 .app-shell>#home-live{
  position:sticky;
  top:var(--brainlab-sticky-rail-top);
  align-self:start;
  display:flex;
  flex-direction:column;
  max-height:calc(var(--brainlab-viewport-height,100dvh) - var(--brainlab-sticky-rail-top) - max(env(safe-area-inset-bottom,0px),var(--brainlab-safe-bottom,0px)));
  padding:12px 12px 12px 10px;
  overflow:auto;
  border-right:1px solid #3f285155;
  background:linear-gradient(180deg,#160e2080,#100a1780);
 }
 .app-shell>#home-live>:not(.live-recent){flex-shrink:0}
 .app-shell>#home-live>.live-recent{min-height:64px;max-height:none;overscroll-behavior:contain}
}
@media(min-width:1100px){
 .app-shell:has(>#home-live){grid-template-columns:200px minmax(0,1fr)}
}
@media(min-width:1400px){
 .app-shell:has(>#home-live){grid-template-columns:230px minmax(0,1fr)}
}

#page-upgrader .chance-number{font-size:clamp(46px,5vw,52px)}
#page-upgrader .chance-label{font-size:9.5px;line-height:1.3}

/* The login action shares the gold styling of a winning drop. */
#toast.toast-result,
#account-dialog.site-signin #telegram-login{color:#2b1a28;background:linear-gradient(135deg,#f7d878,#efbd4f);border:1px solid #ffe9a7;box-shadow:inset 0 1px #fff9,0 4px 0 #a66a31,0 10px 28px #0008}

/* Add a restrained raised edge to solid violet actions. */
:is(.primary-button,.case-open):not(:disabled){box-shadow:inset 0 1px #ffffff38,0 3px 0 #542783,0 6px 14px #5f25902b}
:is(.primary-button,.case-open):hover:not(:disabled){box-shadow:inset 0 1px #ffffff55,0 4px 0 #542783,0 8px 18px #6d309244}
:is(.primary-button,.case-open):active:not(:disabled){transform:translateY(2px);box-shadow:inset 0 1px #ffffff2b,0 1px 0 #542783,0 3px 8px #5f259022}

#case-count-options button,#case-controls .case-hero-actions>[data-case]{
 --case-button-edge:#362346;
 box-shadow:inset 0 1px #ffffff25,0 3px 0 var(--case-button-edge);
}
#case-count-options button[aria-pressed="true"],#case-controls .case-hero-actions>[data-case]{--case-button-edge:#592896}
#case-count-options button:active:not(:disabled),#case-controls .case-hero-actions>[data-case]:active:not(:disabled){
 transform:translateY(2px);
 box-shadow:inset 0 1px #ffffff25,0 1px 0 var(--case-button-edge);
}

#page-home .promo-eyebrow{
 display:inline-block;
 padding:3px 8px;
 border:1px solid #a86ed052;
 border-radius:999px;
 color:#d7b1ef;
 background:#a46ade19;
}
#page-home .home-promo{isolation:isolate}
.telegram-case-profile-help{flex-basis:100%;line-height:1.5;color:#c8b4d9}
.telegram-case-profile-help:empty{display:none}
#page-home .home-promo::before{
 display:none;
}
#page-home .promo-pegasus{display:none}
#page-home .home-promo>:is(.promo-content,.promo-pegasus,.primary-button,.promo-feedback){z-index:1}
#page-home #promo-copy{border-style:solid;border-color:#8054a0}
#page-home #promo-code{overflow-wrap:anywhere}
#page-home .home-promo{
 grid-template-columns:minmax(0,1fr);
 grid-template-areas:"copy" "action";
}
#page-home .promo-content{grid-area:copy;text-align:left}
#page-home .home-promo>.primary-button{grid-area:action}
#page-home #promo-copy{min-width:0;max-width:100%}
@media(max-width:700px){
 #page-home #promo-code{min-width:0;font-size:clamp(12px,4vw,16px)}
}

/* Use the full area beside the live rail for the case and Home layouts. */
@media(min-width:851px) and (hover:hover) and (pointer:fine){
 .app-shell:has(>#home-live)>main:has(#page-cases:not([hidden]),#page-home:not([hidden])){
  max-width:1920px;
  padding-inline:clamp(18px,2vw,32px);
 }
 .app-shell:has(>#home-live) #page-home .home-main{max-width:none;padding-inline:0}

 #page-home .home-promo{
  grid-template-columns:minmax(0,1fr) minmax(120px,37%);
  grid-template-areas:"copy art" "action art";
  gap:14px 24px;
  min-height:clamp(220px,19vw,280px);
  padding:clamp(20px,2.7vw,34px);
  background:radial-gradient(ellipse at 82% 54%,#843fb756,transparent 51%),linear-gradient(115deg,#29193d,#160d24);
 }
 #page-home .home-promo::before{
  display:block;
  inset:0 0 0 25%;
  width:auto;
  height:auto;
  border:0;
  border-radius:0;
  background:url("assets/brainlab-promo-lab-platform.webp") right 62%/cover no-repeat;
  mask-image:linear-gradient(90deg,transparent,#000 48%);
  pointer-events:none;
 }
 #page-home .promo-pegasus{
  position:absolute;
  /* Match the center of the platform in the background image. */
  left:76.3%;
  inset-block:clamp(20px,2.7vw,34px);
  width:37%;
  translate:-50% 0;
  display:grid;
  place-items:center;
  pointer-events:none;
 }
 #page-home .promo-pegasus img{
  position:absolute;
  width:min(100%,360px);
  height:124%;
  top:-13%;
  object-fit:contain;
  filter:drop-shadow(0 8px 14px #190925);
 }
 #page-home .promo-pegasus strong{
  position:absolute;
  left:50%;
  bottom:7%;
  transform:translateX(-50%);
  padding:5px 18px 7px;
  border:2px solid #c381f4;
  border-radius:7px;
  background:linear-gradient(165deg,#66339b,#3a1a5d);
  box-shadow:0 4px 0 #26123e,0 7px 16px #1007199c,0 0 22px #a445dc40;
  color:#fbecff;
  font-size:clamp(34px,4vw,62px);
  font-weight:900;
  line-height:1;
 }
 #page-home .promo-content{grid-area:copy;z-index:1;align-self:end}
 #page-home .promo-content h2{font-size:clamp(24px,3vw,42px);line-height:1.1;margin:8px 0 14px}
 #page-home .home-promo>.primary-button{
  grid-area:action;
  z-index:1;
  align-self:start;
  justify-self:start;
  width:min(100%,288px);
  max-width:none;
  padding-inline:16px;
 }
 #page-home .home-case-section{padding-top:0;border-top:0}
 #page-home .home-main .home-case-group:has([data-case-view="daily"],[data-case-view="telegram"],[data-case-view="referral"]) .home-case-group-grid{
  grid-template-columns:repeat(3,minmax(0,1fr));
 }
 #page-home .home-case-group-grid>.home-case:is([data-case-view="daily"],[data-case-view="telegram"],[data-case-view="referral"]){
  display:grid;
  grid-template-columns:clamp(54px,6vw,96px) minmax(0,1fr);
  align-items:center;
  height:auto;
  min-height:96px;
  max-width:none;
  background:linear-gradient(125deg,#281936,#191222);
 }
 #page-home .home-main .home-case-group .home-case:is([data-case-view="daily"],[data-case-view="telegram"],[data-case-view="referral"]) .home-case-art{
  height:76px;
  min-height:0;
  border:0;
 }
 #page-home .home-main .home-case-group .home-case:is([data-case-view="daily"],[data-case-view="telegram"],[data-case-view="referral"]) img{height:100%}
 #page-home .home-case-group .home-case:is([data-case-view="daily"],[data-case-view="telegram"],[data-case-view="referral"]) .home-case-info{
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  gap:4px;
  padding:10px 8px 10px 0;
 }
 #page-home .home-case-group .home-case:is([data-case-view="daily"],[data-case-view="telegram"],[data-case-view="referral"]) :is(h2,p,.case-price){
  height:auto;
  min-height:0;
  align-self:flex-start;
 }
}

@media(min-width:701px){
 #page-home .home-case-group-paid{
  --paid-case-columns:3;
  --paid-case-art-height:clamp(158px,11vw,166px);
 }
 #page-home .home-main .home-case-group.home-case-group-paid .home-case-group-grid{
  grid-template-columns:repeat(var(--paid-case-columns),minmax(0,1fr));
 }
 #page-home .home-case-group-paid .home-case-group-grid>.home-case{
  height:calc(var(--paid-case-art-height) + 82px);
  max-width:none;
 }
 #page-home .home-main .home-case-group-paid.home-case-group .home-case-art{
  flex:0 0 var(--paid-case-art-height);
  height:var(--paid-case-art-height);
  grid-template-rows:minmax(0,1fr);
 }
 #page-home .home-main .home-case-group-paid.home-case-group .home-case-art img{
  height:var(--paid-case-image-height,86%);
  max-height:none;
  width:var(--paid-case-image-width,88%);
  max-width:var(--paid-case-image-width,88%);
 }
 #page-home .home-case-group-paid .home-case:is([data-case-view="los"],[data-case-view="og"],[data-case-view="rich"]){
  --paid-case-image-height:94%;
  --paid-case-image-width:94%;
 }
}
@media(min-width:1050px){#page-home .home-case-group-paid{--paid-case-columns:4}}
@media(min-width:1350px){#page-home .home-case-group-paid{--paid-case-columns:5}}

#page-home .home-case-group-paid .home-case-group-grid>.home-case{
 border:1px solid #4d3265;
 border-bottom:3px solid #9662ca;
 border-radius:8px;
 background:#130d20;
}
#page-home .home-case-group-paid .home-case-art{
 background:radial-gradient(ellipse at 50% 68%,#6c30912e,transparent 67%);
}
#page-home .home-case-group-paid .home-case .home-case-info{
 grid-template-rows:32px minmax(0,1fr);
 column-gap:5px;
 row-gap:0;
 padding:0 clamp(8px,1vw,17px) 8px;
}
#page-home .home-case-group-paid .home-case h2{
 justify-content:center;
 height:100%;
 padding:0 2px 5px;
 border-bottom:1px solid #332433;
 color:#fff;
 font-size:clamp(12px,1.15vw,17px);
 text-align:center;
 text-transform:uppercase;
}
#page-home .home-case-group-paid .home-case p{color:#b99bcf;font-size:10px}
#page-home .home-case-group-paid .home-case .case-price{
 display:inline-flex;
 align-items:center;
 gap:6px;
 padding:0;
 border:0;
 background:none;
 color:#ddb6ff;
 font-size:clamp(12px,1.1vw,17px);
 font-weight:800;
}
#page-home .home-case-group-paid .case-price .wallet-coin{
 font-size:1.22em;
 line-height:1;
}
@media(hover:hover) and (pointer:fine){
 #page-home .home-case-group-paid .home-case-group-grid>.home-case:hover{border-color:#ad76e6}
}

#page-upgrader .upgrade-stake{
 display:grid;
 gap:8px;
 min-width:0;
}
#page-upgrader .target-slot{align-self:start}
.app-shell #page-upgrader .character-slot .character-image-wrap{
 display:grid;
 grid-template:minmax(0,1fr)/minmax(0,1fr);
 height:100%;
 min-height:0;
 overflow:hidden;
}
.app-shell #page-upgrader .character-slot .character-image-wrap>img,
.app-shell #page-upgrader .character-slot .deposit-art-grid{grid-area:1/1}
.app-shell #page-upgrader .character-slot .character-image-wrap>img{
 width:100%;
 height:100%;
 min-height:0;
 max-height:100%;
 object-fit:contain;
}
#withdraw-dialog{
 width:min(1120px,calc(100% - 28px));
 max-width:none;
 max-height:calc(100dvh - 24px);
 padding:clamp(16px,3vw,32px);
 overflow:auto;
 overscroll-behavior:contain;
}
#withdraw-dialog h2{margin:0 32px 24px 0;font-size:clamp(22px,3vw,30px)}
#withdraw-window-panel{grid-column:1/-1;margin:0;min-width:0;border:1px solid #513760;border-radius:12px;padding:10px 12px 12px;background:#1d1428}
#withdraw-window-panel[hidden]{display:none}
#withdraw-window-panel legend{padding:0 5px;color:#ebd5fc;font-weight:750}
#withdraw-window-note{margin:0 0 8px}
#withdraw-window-options,#withdraw-reschedule-options{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
#withdraw-reschedule-dialog{width:min(580px,calc(100% - 24px))}
#withdraw-reschedule-options{grid-template-columns:repeat(auto-fit,minmax(min(100%,145px),1fr));margin-block:12px}
.withdraw-window-option{position:relative;display:grid;gap:5px;min-width:0;padding:11px;border:1px solid #513760;border-radius:10px;background:#251834;color:#f2e4fb;cursor:pointer}
.withdraw-window-option:has(input:checked){border-color:#bd84ef;background:#38214e}
.withdraw-window-option:focus-within{outline:2px solid #d6a5ff;outline-offset:1px}
.withdraw-window-option input{position:absolute;width:1px;height:1px;opacity:0}
.withdraw-window-date,.withdraw-window-option small{font-size:11px;color:#d1b3e4}
.withdraw-window-option strong{font-size:16px}
.withdraw-window-action{display:block;align-self:end;margin-top:4px;padding:6px;text-align:center;border:1px solid #765394;border-radius:7px;background:#302045;font-size:12px;font-weight:750}
.withdraw-window-action span+span,.withdraw-window-option:has(input:checked) .withdraw-window-action span:first-child{display:none}
.withdraw-window-option:has(input:checked) .withdraw-window-action span+span{display:inline}
@media(max-width:600px){#withdraw-window-options{grid-template-columns:repeat(auto-fit,minmax(min(100%,145px),1fr))}}
.withdraw-layout{display:grid;grid-template-columns:minmax(0,1.8fr) minmax(260px,1fr);gap:clamp(16px,3vw,32px);align-items:start}
.withdraw-source-panel,.withdraw-result-panel{min-width:0}
.withdraw-source-panel .profile-field{margin:0}
.withdraw-result-panel{padding:18px;border-radius:14px;background:#20152b}
.withdraw-source-heading{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:baseline;gap:6px 10px;margin:20px 0 10px}
.withdraw-source-heading h3{margin:0;font-size:15px}
#withdraw-source-total{font-size:12px;color:#dab4f6;white-space:nowrap}
#withdraw-source-items{
 display:grid;
 grid-template-columns:repeat(auto-fill,minmax(min(100%,96px),1fr));
 align-items:start;
 gap:8px;
 max-height:min(440px,47dvh);
 overflow:auto;
 overscroll-behavior:contain;
 padding:2px 4px 2px 2px;
}
#withdraw-source-items>p{grid-column:1/-1}
.withdraw-source-card{min-width:0;border:1px solid transparent;border-radius:10px;background:#21162d}
.withdraw-source-card:has(button:hover){background:#2b1b3a}
.withdraw-source-card:has(button[aria-pressed=true]){border-color:#a369d3;background:#342046}
.withdraw-source-toggle{display:grid;justify-items:center;gap:4px;width:100%;padding:10px 5px;background:none;border:0;color:#eee5f7;text-align:center;cursor:pointer}
.withdraw-source-toggle img{width:100%;height:66px;object-fit:contain}
.withdraw-source-toggle strong{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;min-width:0;height:2.3em;font-size:11px;line-height:1.15;overflow-wrap:anywhere}
.withdraw-source-toggle small{font-size:10px;color:#d4afd8}
.withdraw-source-card input{display:block;width:calc(100% - 12px);margin:0 6px 6px;padding:3px 5px;border:1px solid #76508c;border-radius:5px;background:#140e1d;color:inherit}
.withdraw-source-card input[hidden]{display:none}
.withdraw-source-toggle:focus-visible,.withdraw-exchange-option:focus-within{outline:2px solid #d6a5ff;outline-offset:1px}
.withdraw-result-panel>.profile-muted{margin:10px 0 0;font-size:11px}
.withdraw-result-panel .primary-button{margin-top:16px}
.withdraw-result-panel #withdraw-error:empty{display:none}
#withdraw-exchange{
 min-width:0;
 margin:0;
 padding:0;
 border:0;
 color:#eee5f7;
}
#withdraw-exchange legend{padding:0;margin-bottom:10px;font-size:15px;font-weight:800}
#withdraw-exchange-options{display:grid;gap:7px}
.withdraw-exchange-option{
 position:relative;
 display:grid;
 grid-template-columns:46px minmax(0,1fr) 16px;
 align-items:center;
 gap:8px;
 padding:8px 10px;
 border:1px solid #4b345d;
 border-radius:9px;
 cursor:pointer;
}
.withdraw-exchange-option:has(input:checked){border-color:#aa71df;background:#342046}
.withdraw-exchange-option:has(input:disabled){opacity:.65;cursor:default}
.withdraw-exchange-option input{position:absolute;inline-size:1px;block-size:1px;opacity:0;pointer-events:none}
.withdraw-exchange-option::after{content:'';width:14px;height:14px;border:1px solid #9876ac;border-radius:50%}
.withdraw-exchange-option:has(input:checked)::after{border:4px solid #bc8df0;background:#21152d}
.withdraw-exchange-option img{width:100%;height:42px;object-fit:contain}
.withdraw-exchange-option>span{overflow-wrap:anywhere;line-height:1.25;font-size:13px}
.withdraw-exchange-option small{display:block;margin-top:3px;color:#c6a7db}
#withdraw-exchange-change{margin:8px 0 0}
.transfer-gate{position:relative}
.transfer-gate-overlay{
 position:absolute;
 inset:0;
 z-index:2;
 display:grid;
 place-content:center;
 justify-items:center;
 gap:12px;
 padding:16px;
 border-radius:12px;
 background:#09060ee8;
 backdrop-filter:blur(3px);
 text-align:center;
 color:#f1e3fb;
 font-size:clamp(16px,3vw,22px);
}
.transfer-gate-overlay[hidden],.transfer-gate-overlay [hidden]{display:none!important}
@media(max-width:700px){
 .withdraw-layout{grid-template-columns:minmax(0,1fr);gap:10px}
 #withdraw-source-items{max-height:32dvh}
 .withdraw-source-card input,#withdraw-roblox{font-size:16px}
}


/* Let the cover glow fade into the title area without a hard edge. */
#page-home .home-case-group-paid .home-case-group-grid>.home-case{
 background:radial-gradient(ellipse at 50% 43%,#6c30912e,transparent 60%) #130d20;
}
#page-home .home-case-group-paid .home-case-art{
 overflow:visible;
 background:none;
}
