/* SuperLuckyDucky client refinements: keep the original player theme. */
html[data-ak888] #root#root .bk-footer :is(span,p){color:#c9b2d8!important;line-height:1.6}
html[data-ak888] :is(.bk-main,.bg-account,.bg-profile,.bg-withdraw,.bg-referral,.bg-support){min-width:0;max-width:100%}
html[data-ak888] :is(.bg-account,.bg-profile,.bg-withdraw,.bg-referral,.bg-support) :is(input,select,textarea){min-width:0;max-width:100%;box-sizing:border-box}
html[data-ak888] :is(.fen-modal,.bg-modal,[role=dialog]){max-width:calc(100vw - 24px);max-height:calc(100dvh - 24px);overflow:auto;overscroll-behavior:contain}
@media(max-width:600px){html[data-ak888] :is(.bg-account,.bg-profile,.bg-withdraw,.bg-referral,.bg-support) :is(p,label,h1,h2,h3){overflow-wrap:anywhere}html[data-ak888] :is(.bg-account,.bg-profile,.bg-withdraw,.bg-referral,.bg-support) form{min-width:0;max-width:100%}}

/* Borderless platform artwork; preserve keyboard focus independently. */
html[data-ak888] :is(.fen-platform,.fen-platform-picture,.fen-platform-picture img){border:0!important;outline:0;box-shadow:none!important;background:transparent!important}
html[data-ak888] .fen-platform-picture{padding:0!important;overflow:hidden}
html[data-ak888] .fen-platform:focus-visible{outline:2px solid #e3baff!important;outline-offset:4px}

html[data-ak888] :is(.gv-available-top>img,.gv-owned-card img,.gv-platform-detail img){border:0!important;box-shadow:none!important;background:transparent!important}

html[data-ak888] #root#root .sms-phone-prefix{color:#d7bfdc!important}

/* The public hostname promotes this homepage-specific platform rail. */
html[data-ak888] #fen-ui#fen-ui #ak888-home :is(.ak888-platform-card,.ak888-platform-image,.ak888-platform-image img){border:0!important;outline:0;box-shadow:none!important;background:transparent!important}
html[data-ak888] #fen-ui#fen-ui #ak888-home .ak888-platform-card::before,html[data-ak888] #fen-ui#fen-ui #ak888-home .ak888-platform-card::after{display:none!important}
html[data-ak888] #fen-ui#fen-ui #ak888-home .ak888-platform-card:focus-visible{outline:2px solid #e3baff!important;outline-offset:4px}

html[data-ak888] #root#root :is(.gv-available-top>img,.gv-owned-card img,.gv-platform-detail img){border:0!important;box-shadow:none!important;background:transparent!important}

/* Original reference composition: full desktop banner and compact right-hand feeds. */
@media(min-width:1100px){
 html[data-ak888] #fen-ui#fen-ui #ak888-home>.ak888-hero {aspect-ratio:4.4/1}
 html[data-ak888] #fen-ui#fen-ui #ak888-home>.ak888-hero picture>img {object-fit:cover!important;object-position:center!important;background:transparent!important}
 html[data-ak888] #fen-ui #ak888-desktop-rail>.ak888-rail-features {display:none!important}
 html[data-ak888] #fen-ui #ak888-desktop-rail .ak888-rail-shortcuts {grid-template-columns:repeat(2,minmax(0,1fr))!important}
 html[data-ak888] #fen-ui #ak888-desktop-rail .ak888-rail-shortcuts :is(.ak888-support-entry,button[data-ak888-action="notifications"]) {min-height:82px!important;height:82px;padding:9px 5px!important;gap:7px}
 html[data-ak888] #fen-ui #ak888-desktop-rail .ak888-support-entry :is(small,strong) {display:none}
 html[data-ak888] #fen-ui #ak888-desktop-rail .ak888-support-entry>span {font-size:12px!important}
 html[data-ak888] #fen-ui #ak888-desktop-rail .ak888-account-copy::before {content:"Personal Center";color:#fff4ff;font-size:14px;font-weight:700;line-height:1.3}
 html[data-ak888] #fen-ui#fen-ui #ak888-home .ak888-platform-row {display:flex;gap:7px;overflow-x:auto;overflow-y:hidden;scroll-snap-type:x proximity;padding:0 0 2px;scrollbar-width:none}
 html[data-ak888] #fen-ui#fen-ui #ak888-home .ak888-platform-card {flex:0 0 calc((100% - 56px)/9);scroll-snap-align:start}
 html[data-ak888] #fen-ui #ak888-home>.ak888-cash-shortcuts {grid-template-columns:repeat(3,minmax(0,1fr))}
 html[data-ak888] #fen-ui #ak888-home .ak888-cash-desktop-only {display:flex!important}
 html[data-ak888] #fen-ui #ak888-home>.ak888-categories {grid-template-columns:none;grid-auto-flow:column;grid-auto-columns:calc((100% - 21px)/4);overflow-x:auto;scrollbar-width:none;padding:1px 0 3px}
 html[data-ak888] #fen-ui #ak888-home>.ak888-categories .ak888-category {min-width:0;scroll-snap-align:start}
 html[data-ak888] #fen-ui #ak888-header .ak888-brand {display:flex;align-items:center;gap:8px}
 html[data-ak888] #fen-ui #ak888-header .ak888-brand img {width:54px!important;max-width:54px!important;flex:0 0 54px}
 html[data-ak888] #fen-ui #ak888-header .ak888-brand::after {content:"SuperLuckyDucky";font-size:15px;font-weight:800;color:#ffdf6f;text-shadow:0 1px 1px #21002d;white-space:nowrap}
}

@media(min-width:1100px){html[data-ak888] #fen-ui#fen-ui #ak888-home .ak888-cash-shortcuts>button.ak888-cash-desktop-only{display:flex!important}html[data-ak888] #fen-ui #ak888-desktop-rail .ak888-community-links:not(:has(a)){display:none!important}}

@media(min-width:1100px){html[data-ak888] #fen-ui #ak888-home .ak888-banner,html[data-ak888] #fen-ui #ak888-promotions .ak888-banner{aspect-ratio:10.4/1}html[data-ak888] #fen-ui #ak888-home .ak888-rewards{aspect-ratio:8/1}}

/* Real illustrated wordmark; left-side search is a native sibling of the brand. */
html[data-ak888] #ak888-header .sld-header-wordmark{display:none}
@media(min-width:1100px){
 html[data-ak888] #fen-ui #ak888-header .ak888-brand::after{content:none!important;display:none!important}
 html[data-ak888] #fen-ui #ak888-header .ak888-brand.sld-art-brand{width:254px;max-width:254px;flex:0 0 254px;gap:10px}
 html[data-ak888] #fen-ui #ak888-header .sld-header-wordmark{display:block;width:190px;height:34px;flex:0 0 190px;background:url("/acekirin-static/sld-wordmark-eeb8807b5719.webp") center/contain no-repeat;pointer-events:none}
 html[data-ak888] #fen-ui #ak888-header>.ak888-search-button{flex:0 1 308px;margin-left:0}
 html[data-ak888] #fen-ui #ak888-header>.ak888-header-actions{margin-left:auto}
}

/* Keep all four native shortcuts visible; compact phones use an even two-by-two grid. */
html[data-ak888] #fen-ui#fen-ui #ak888-home>.ak888-cash-shortcuts{grid-template-columns:repeat(4,minmax(0,1fr))}
html[data-ak888] #fen-ui#fen-ui #ak888-home .ak888-cash-shortcuts>button.ak888-cash-desktop-only{display:flex!important}
@media(max-width:600px){html[data-ak888] #fen-ui#fen-ui #ak888-home>.ak888-cash-shortcuts{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* Center the complete brand group while search and account actions anchor the edges. */
@media(min-width:1100px){
 html[data-ak888] #fen-ui #ak888-header{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);column-gap:18px;align-items:center}
 html[data-ak888] #fen-ui #ak888-header>.ak888-brand{grid-column:2;grid-row:1;justify-self:center}
 html[data-ak888] #fen-ui #ak888-header>.ak888-search-button{grid-column:1;grid-row:1;justify-self:start;max-width:100%;margin:0}
 html[data-ak888] #fen-ui #ak888-header>.ak888-header-actions{grid-column:3;grid-row:1;justify-self:end;margin:0}
}
