/* KING999 • Crimson Shinobi • original design layer inspired by supplied red anime art */
:root{color-scheme:dark;--king-red:#e10b0c;--king-deep:#08090e;--king-red-bright:#ff3329;--king-gold:#ff3545;--king-text:#ffffff;--king-line:rgba(255,72,57,.32);--color-content-primary:#ffffff;--color-content-secondary:#aeb8ca;--color-background-primary:#151014;--color-background-secondary:#290b13;--color-border-primary:rgba(255,72,57,.3)}
html{scroll-behavior:smooth;background:#100608}
body.king999-theme{background:#100608!important;color:var(--king-text)!important;min-height:100vh;isolation:isolate}
/* Fixed image layer; dark scrim preserves readability without hiding the artwork */
body.king999-theme::before{content:"";position:fixed;inset:0;pointer-events:none;z-index:-1;background:linear-gradient(90deg,rgba(7,3,8,.90) 0%,rgba(17,3,9,.73) 52%,rgba(15,1,4,.75) 100%),linear-gradient(180deg,rgba(5,2,5,.16),rgba(7,2,4,.86)),url('king999-crimson-bg.webp') center 40% / cover no-repeat;opacity:1}
body.king999-theme::after{content:"";position:fixed;inset:0;pointer-events:none;z-index:-1;opacity:.25;background:repeating-linear-gradient(167deg,transparent 0 160px,rgba(254,37,26,.1) 161px,transparent 164px),radial-gradient(ellipse at 80% 10%,rgba(255,31,20,.48),transparent 36%);}
body.king999-theme #root,body.king999-theme #__next,body.king999-theme main,body.king999-theme header,body.king999-theme footer{position:relative}
body.king999-theme header[data-testid="standard-header"],body.king999-theme nav[data-testid="bottom-navigation"]{background:linear-gradient(112deg,rgba(9,7,12,.98),rgba(101,8,14,.97),rgba(13,6,10,.98))!important;border-bottom:1px solid var(--king-line)!important;box-shadow:0 12px 35px rgba(0,0,0,.45),0 1px 14px rgba(240,20,18,.15)!important}
body.king999-theme main#content{background:transparent!important;color:var(--king-text)!important}
body.king999-theme .color-scheme-light,body.king999-theme .color-scheme-dark{--color-content-primary:#ffffff;--color-content-secondary:#b9c3d5;--color-background-primary:#16090f;--color-background-secondary:#290b12;--color-border-primary:rgba(250,63,44,.28);color:var(--king-text)}
body.king999-theme main#content section,body.king999-theme main#content article{border-color:var(--king-line)!important}
body.king999-theme h1,body.king999-theme h2,body.king999-theme h3,body.king999-theme h4{color:#ffffff!important;text-shadow:0 2px 12px rgba(205,12,45,.32);text-wrap:balance}
body.king999-theme h1 strong,body.king999-theme h2 strong{color:#ff5360!important}
body.king999-theme p,body.king999-theme li{line-height:1.65}
body.king999-theme a{transition:color .22s ease,background-color .22s ease,border-color .22s ease,box-shadow .25s ease,transform .25s ease}
body.king999-theme a:hover{color:#ff717b}
body.king999-theme a:focus-visible,body.king999-theme button:focus-visible{outline:2px solid #ff5969!important;outline-offset:3px}
body.king999-theme button,body.king999-theme [role=button]{transition:background-color .23s ease,box-shadow .23s ease,transform .23s ease,border-color .23s ease}
body.king999-theme button:hover,body.king999-theme [role=button]:hover{transform:translateY(-2px)}
body.king999-theme main#content img{border-radius:10px}
body.king999-theme img[alt="KING999"]{object-fit:contain;max-width:100%}
body.king999-theme main#content a:has(>img[alt="KING999"]){display:inline-block;filter:drop-shadow(0 0 10px rgba(246,27,26,.35));transition:filter .3s ease,transform .3s ease}
body.king999-theme main#content a:has(>img[alt="KING999"]):hover{filter:drop-shadow(0 0 16px rgba(255,58,34,.6));transform:translateY(-2px)}
/* Darkened content islands override pale original panels */
body.king999-theme main#content [style*="background-color: rgb(255"],body.king999-theme main#content [style*="background: rgb(255"]{background-color:#1a0b11!important}
body.king999-theme .popup-overlay{background:rgba(3,0,3,.8)!important;backdrop-filter:blur(5px)!important}
body.king999-theme .popup-container{position:relative;overflow:hidden;background:linear-gradient(145deg,#7b090c 0%,#21080c 43%,#0a080b 100%)!important;border:1px solid rgba(255,75,51,.77)!important;box-shadow:0 20px 75px rgba(0,0,0,.75),0 0 42px rgba(255,23,20,.24),inset 0 1px rgba(255,85,100,.14)!important;animation:king-reveal .6s cubic-bezier(.2,.8,.2,1) both!important}
body.king999-theme .popup-container::before{content:"";position:absolute;inset:0;pointer-events:none;border-radius:inherit;background:linear-gradient(115deg,transparent 30%,rgba(255,83,63,.13) 44%,transparent 54%);background-size:230% 100%;animation:king-sheen 10s ease-in-out infinite}
body.king999-theme .popup-buttons a{position:relative;overflow:hidden;background:linear-gradient(110deg,#b80911,#f5221d,#9a0710)!important;color:#ffffff!important;border:1px solid #ff6750!important;font-weight:800!important;box-shadow:0 7px 21px rgba(0,0,0,.38),0 0 18px rgba(242,14,20,.15);transition:transform .25s ease,filter .25s ease,box-shadow .25s ease!important}
body.king999-theme .popup-buttons a:nth-child(2){background:linear-gradient(110deg,#6f0d1e,#b6112c,#610d1e)!important;color:#ffffff!important;border-color:#fd4968!important}
body.king999-theme .popup-buttons a:hover{transform:translateY(-3px);filter:brightness(1.12);box-shadow:0 9px 30px rgba(255,60,34,.27)}
body.king999-theme .popup-footer{color:#bbc4d4!important}
body.king999-theme .slot-gacor-effect{background:#f82c1c!important;box-shadow:0 0 12px rgba(255,65,39,.7)!important;animation-duration:8s!important}
body.king999-theme .snow-wrap,body.king999-theme .snowflakes{display:none!important}
body.king999-theme footer{background:linear-gradient(to top,rgba(9,5,8,.94),rgba(33,5,9,.54))!important;border-top:1px solid var(--king-line)}
body.king999-theme nav[data-testid="bottom-navigation"]{border-top:1px solid var(--king-line)!important;border-bottom:0!important}
body.king999-theme ::selection{background:#e3211b;color:#fff}
@keyframes king-reveal{from{opacity:0;transform:translateY(18px) scale(.97)}to{opacity:1;transform:translateY(0) scale(1)}}
@keyframes king-sheen{0%,32%{background-position:140% 0}58%,100%{background-position:-120% 0}}
@media(max-width:720px){body.king999-theme::before{background:linear-gradient(90deg,rgba(7,3,8,.88),rgba(13,2,7,.79)),url('king999-crimson-bg.webp') center top / cover no-repeat}body.king999-theme .popup-container{width:min(92vw,420px)!important}body.king999-theme h1{font-size:clamp(1.4rem,5vw,2.2rem)!important}body.king999-theme main#content{overflow-x:clip}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}body.king999-theme *,body.king999-theme *::before,body.king999-theme *::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}

/* Pure crimson / silver overrides — no cream or gold UI panels */
body.king999-theme{--king-text:#ffffff!important;--king-gold:#ff3545!important;--color-content-primary:#ffffff!important;--color-content-secondary:#b9c3d5!important;}
body.king999-theme .popup-buttons a:nth-child(2){background:linear-gradient(115deg,#470714,#920b24,#d51e3c)!important;color:#fff!important;border-color:#ff4163!important;}
body.king999-theme .popup-buttons a:nth-child(2):hover{box-shadow:0 8px 28px rgba(240,12,57,.35)!important;}
body.king999-theme .popup-container{color:#eef2fb!important;}
body.king999-theme a:hover{color:#ff7b86!important;}
body.king999-theme :is(input,textarea,select){accent-color:#e71531;}


/* KING999 dark-body finish: remove legacy white page surfaces. */
:root,html,body.king999-theme{
  background-color:#080508!important;
  color-scheme:dark;
}
body.king999-theme{
  background-image:radial-gradient(ellipse at 75% 0%,rgba(139,8,24,.28),transparent 56%),linear-gradient(160deg,#0b0508 0%,#210810 48%,#080508 100%)!important;
  background-attachment:fixed!important;
}
body.king999-theme :is(#root,#__next,#app,main#content,main#content>div,main#content>section){
  background-color:transparent!important;
}
body.king999-theme :is(header,footer,nav){color:#fff}
/* Preserve readable cards and avoid forcing inputs to transparent. */
body.king999-theme main#content :is(article,.card,[class*="Card"],[class*="Panel"],[class*="panel"]){
  --color-background-primary:#170910;
  --color-background-secondary:#280b15;
}
body.king999-theme main#content [style*="background-color: rgb(255, 255, 255)"],
body.king999-theme main#content [style*="background-color:#fff"],
body.king999-theme main#content [style*="background-color: #fff"],
body.king999-theme main#content [style*="background: white"],
body.king999-theme main#content [style*="background: #fff"]{
  background:#1a0b11!important;
  color:#fff;
}

/* KING999: dark surfaces for requested UBgzrYuy FKVlyqqM sections */
body.king999-theme .UBgzrYuy.FKVlyqqM {
  background:linear-gradient(145deg,#10070c 0%,#200810 55%,#10070c 100%)!important;
  background-color:#10070c!important;
  color:#fff!important;
}
body.king999-theme .UBgzrYuy.FKVlyqqM > .FKVlyqqM {
  background:transparent!important;
  color:inherit!important;
}
/* Keep header containers dark without concealing inner content. */
body.king999-theme .UBgzrYuy.FKVlyqqM :is(h1,h2,h3,h4,p,span){
  --color-content-primary:#fff;
}

/* KING999 image-gallery banner: supplied image fills previous empty hero. */
body.king999-theme [data-testid="default-image-preview-container"]{background:#13050a!important;overflow:hidden;}
body.king999-theme [data-testid="default-image-preview-container"] > a {position:absolute;inset:0;display:block;z-index:1;}
body.king999-theme [data-testid="default-image-preview-container"] > a > img.ChQPRw21.UTPiqHpf{width:100%!important;height:100%!important;object-fit:cover!important;object-position:center!important;max-width:none!important;border-radius:0!important;display:block;}
body.king999-theme [data-testid="default-image-preview-container"]::after{content:"";position:absolute;inset:0;pointer-events:none;background:linear-gradient(0deg,rgba(15,2,7,.3),transparent 38%);z-index:2;}
body.king999-theme [data-testid="page-item-main-content-container"] [data-testid="previous-image-button"],body.king999-theme [data-testid="page-item-main-content-container"] [data-testid="next-image-button"]{position:relative;z-index:4;}
