/* KING home header — balanced top rows (BNB home only).
   Row 1 (logo, 2 round icons, CONNECT, Menu): 50px -> 46px (a little slimmer).
   Middle vote/news strip: 18px -> 22px (a little bigger, writing/logos a touch larger).
   Row 3 (KING AI, Music, Chat, EN): 41px -> 37px (a little slimmer).
   Every button keeps a 40px-tall invisible tap area via ::after. Colours, icons, gold look and shapes unchanged. */

/* ---------- Row 1 ---------- */
html body :is(.nav-bar,.nav):has(>#king-header-tools):has(>#king-header-tools){height:46px!important}
html body :is(.nav-bar,.nav):has(>#king-header-tools)>.nav-logo.nav-logo{height:42px!important;display:flex!important;align-items:center!important}
html body :is(.nav-bar,.nav):has(>#king-header-tools)>.nav-logo.nav-logo :is(img,.km-h){height:35px!important;width:35px!important}
/* round icon buttons 40 -> 36 (still round) */
html body :is(.nav-bar,.nav):has(>#king-header-tools) :is(#kn-cart,#kn-acct):is(#kn-cart,#kn-acct):is(#kn-cart,#kn-acct){height:36px!important;width:36px!important;min-width:36px!important;min-height:0!important;position:relative!important}
html body :is(.nav-bar,.nav):has(>#king-header-tools) :is(#kn-cart,#kn-acct):is(#kn-cart,#kn-acct) :is(.kn-ico,.kei){width:20px!important;height:20px!important}
/* CONNECT + Menu pills 40 -> 34, writing a touch smaller */
html body :is(.nav-bar,.nav):has(>#king-header-tools) :is(#connectWallet,#btnConnect):is(#connectWallet,#btnConnect):is(#connectWallet,#btnConnect){height:34px!important;min-height:0!important;font-size:clamp(9px,2.5vw,10.5px)!important;position:relative!important;overflow:clip!important;overflow-clip-margin:4px!important}
html body :is(.nav-bar,.nav):has(>#king-header-tools) #btnMenu#btnMenu#btnMenu{height:34px!important;min-height:0!important;font-size:clamp(11px,3.05vw,12.5px)!important;position:relative!important}
/* invisible 40px tap areas, row 1 */
html body :is(.nav-bar,.nav):has(>#king-header-tools) :is(#kn-cart,#kn-acct,#connectWallet,#btnConnect,#btnMenu):is(#kn-cart,#kn-acct,#connectWallet,#btnConnect,#btnMenu)::after{content:""!important;display:block!important;position:absolute!important;left:-2px!important;right:-2px!important;top:50%!important;height:40px!important;transform:translateY(-50%)!important;background:none!important;border:0!important;box-shadow:none!important;pointer-events:auto!important}

/* ---------- Middle: vote/news strip 18 -> 22 ---------- */
html body :is(.nav-bar,.nav)>#king-vote-strip#king-vote-strip{top:46px!important;height:22px!important;min-height:22px!important;font-size:11.5px!important}
html body #king-vote-strip#king-vote-strip :is(img,img.kvs-site){width:16px!important;height:16px!important}
html body #king-vote-strip#king-vote-strip .kvs-urgent{font-size:9px!important}
/* OUR listed tokens (KING BNB, KING Solana, GANG, SOLGANG, KINGAUTO votes + KSCR presale) stand out a little */
html body #king-vote-strip#king-vote-strip a:is(:has(.kvs-urgent),:has(img.kvs-site),[href*="presale/kscr"]) .kvs-lead{font-size:12.5px!important;font-weight:700!important}
html body #king-vote-strip#king-vote-strip a:is(:has(.kvs-urgent),:has(img.kvs-site),[href*="presale/kscr"]) img.kvs-coin{width:18px!important;height:18px!important}

/* ---------- Row 3: 41 -> 37 (row top stays 68px = 46 + 22) ---------- */
html body #king-header-tools#king-header-tools#king-header-tools#king-header-tools{height:33px!important;min-height:33px!important;padding-top:4px!important;padding-bottom:4px!important}
html body #king-header-tools#king-header-tools#king-header-tools#king-header-tools>:is(#king-ai-launch,#king-music-tab,#kn-chat,#kl-lang){height:24px!important;min-height:24px!important;max-height:24px!important;font-size:10.5px!important;position:relative!important;overflow:visible!important}
html body #king-header-tools#king-header-tools#king-header-tools#king-header-tools>#kl-lang{font-size:10px!important}
html body #king-header-tools#king-header-tools#king-header-tools#king-header-tools>:is(#king-ai-launch,#king-music-tab,#kn-chat,#kl-lang) img{max-height:18px!important;width:auto!important}
/* invisible 40px tap areas, row 3 */
html body #king-header-tools#king-header-tools#king-header-tools#king-header-tools>:is(#king-ai-launch,#king-music-tab,#kn-chat,#kl-lang)::after{content:""!important;display:block!important;position:absolute!important;left:0!important;right:0!important;top:50%!important;transform:translateY(-50%)!important;height:40px!important;background:none!important;border:0!important;box-shadow:none!important;pointer-events:auto!important}

/* page content follows the header (header is 4px shorter overall: 109 -> 105) */
html body #king-vote-strip-space#king-vote-strip-space{height:10px!important;min-height:10px!important}

/* Equal-sized pill marks. Keep the 40px invisible touch bands. */
html body #king-header-tools#king-header-tools #king-ai-launch :is(img,svg,.kei){width:14px!important;height:14px!important;max-height:14px!important;object-fit:contain!important}
html body #king-header-tools#king-header-tools#king-header-tools#king-header-tools #kl-lang :is(img,svg,.flag,.kl-flag){width:14px!important;min-width:14px!important;max-width:14px!important;height:11px!important;max-height:11px!important;object-fit:contain!important}
/* Smooth compositor-only loop. Approved sizes are unchanged. */
html body #king-vote-strip{--kvs-duration:300s!important}
html body #king-vote-strip .kvs-track{animation:king-strip-smooth var(--kvs-duration,300s) linear infinite!important;will-change:transform;backface-visibility:hidden}
@keyframes king-strip-smooth{from{transform:translate3d(0,0,0)}to{transform:translate3d(-50%,0,0)}}
html body #king-vote-strip :is(.kvs-track,.kvs-group,a,.kvs-text,.kvs-lead,img){backface-visibility:hidden;filter:none!important}
html body #king-vote-strip img{image-rendering:auto;object-fit:contain!important}
html body #king-vote-strip:hover .kvs-track,html body #king-vote-strip:focus-within .kvs-track,html body #king-vote-strip.kvs-touch .kvs-track{animation-play-state:paused!important}
@media(prefers-reduced-motion:reduce){html body #king-vote-strip .kvs-track{animation:none!important;transform:none!important;will-change:auto}}
