/* Only hero/reset surfaces. Other buttons, content, wallet and transaction code are untouched. */
/* Pools owns its header even while its asynchronous app is not mounted yet. The inherited Exchange shell remains inert and hidden, never promoted to a second banner. */
html[data-khs-page="pools"] body #kxnHead{display:none!important}
html[data-khs-page="pools"] body #sp-root>header .kp-hero-mark .kp-emblem-flow{visibility:hidden!important}
html[data-khs-page="pools"] body #sp-root>header .kp-hero-mark .kp-king-emblem::after{content:"";position:absolute;inset:4px;box-sizing:border-box;border:1.5px solid #d6ba69;border-radius:50%;pointer-events:none;background:none}
html body :is(#kxnHead,#sp-root>header,.khs-standard-hero).khs-standard-hero{box-sizing:border-box!important;position:relative;isolation:isolate;display:block!important;width:var(--khs-viewport,100%)!important;max-width:none!important;min-height:0!important;height:auto!important;margin-inline:calc((100% - var(--khs-viewport,100%))/2)!important;margin-block:0 12px!important;padding:12px 12px 18px!important;border:0!important;border-radius:0 0 18px 18px!important;text-align:center!important;background-image:linear-gradient(180deg,rgba(5,7,11,.08) 0%,rgba(5,7,11,.12) 64%,rgba(7,9,13,.94) 100%),url('/images/wallet-bg.jpg')!important;background-size:cover!important;background-position:center 55%!important;background-repeat:no-repeat!important;color:#fff!important}
html body :is(#kxnHead,#sp-root>header,.khs-standard-hero).khs-standard-hero .khs-logo{display:grid!important;place-items:center!important;position:relative!important;inset:auto!important;float:none!important;box-sizing:border-box!important;width:190px!important;height:190px!important;max-width:none!important;min-height:0!important;margin:0 auto 5px!important;padding:0!important;background:none!important;border:0!important;border-radius:0!important;box-shadow:none!important;flex:none!important}
html body .khs-standard-hero .khs-logo>img,html body .khs-standard-hero .khs-logo .kp-emblem-core{display:block!important;position:relative!important;inset:auto!important;width:82%!important;height:82%!important;max-width:none!important;object-fit:contain!important;border-radius:50%!important;margin:auto!important;filter:none!important}
html body #sp-root>header.khs-standard-hero .kp-hero-mark>.kp-king-emblem{width:100%!important;height:100%!important}
html body .khs-standard-hero .khs-title,html body .khs-standard-hero .khs-title :is(span,em){font-family:Georgia,serif!important;font-size:21px!important;font-weight:600!important;line-height:1.2!important;letter-spacing:normal!important;text-transform:none!important;color:white!important;-webkit-text-fill-color:white!important;background:none!important;text-shadow:0 1px 5px #000!important;font-style:normal!important;text-align:center!important;overflow-wrap:anywhere}
html body .khs-standard-hero .khs-subtitle{display:block!important;font:11px/1.4 -apple-system,BlinkMacSystemFont,system-ui,sans-serif!important;letter-spacing:normal!important;text-transform:none!important;color:white!important;-webkit-text-fill-color:white!important;text-shadow:0 1px 4px #000!important;margin:0 auto!important;max-width:640px!important;text-align:center!important;overflow-wrap:anywhere}
html body #kxnHead.khs-standard-hero .kxn-ttl{display:block!important;width:100%!important;padding:0!important;margin:0!important;text-align:center!important}
html body #sp-root>header.khs-standard-hero .kp-hero-networks{display:flex!important;justify-content:center!important;align-items:center!important;gap:9px!important;flex-wrap:wrap!important;width:100%!important;margin:9px auto 4px!important}
html body #sp-root>header.khs-standard-hero .kp-hero-networks img{width:22px!important;height:22px!important}
html body #sp-root>header.khs-standard-hero :is(.kp-info-button,#kp-hero-notes){margin-inline:auto!important}
html body #sp-root>header.khs-standard-hero{display:flex!important;flex-direction:column!important;align-items:center!important}
html body #sp-root>header.khs-standard-hero{gap:0!important}
html body .khs-standard-hero .khs-logo>.km-l{display:block!important;width:82%!important;height:82%!important;margin:auto!important;overflow:visible!important}
html body .khs-standard-hero .khs-logo>.km-l>img{display:block!important;width:100%!important;height:100%!important;object-fit:contain!important;margin:0!important}
html body #sp-root>header.khs-standard-hero>.kp-hero-mark{order:0}
html body #sp-root>header.khs-standard-hero>h1{order:1}
html body #sp-root>header.khs-standard-hero>p{order:2}
html body #sp-root>header.khs-standard-hero>.kp-hero-networks{order:3}
html body #sp-root>header.khs-standard-hero>.khs-hero-info{order:4;margin:8px auto 0!important}
html body #sp-root:has(>header.khs-standard-hero){margin-block-start:0!important}
html body .khs-reset-row{display:block!important;box-sizing:border-box!important;text-align:center!important;width:100%!important;height:auto!important;min-height:0!important;margin:8px auto 12px!important;padding:0!important;font-size:0!important;line-height:0!important;letter-spacing:normal!important}
html body .khs-reset-row .khs-reset-control{display:inline-flex!important;align-items:center!important;justify-content:center!important;gap:8px!important;box-sizing:border-box!important;min-height:44px!important;height:44px!important;padding:11px 14px!important;font:14px/20px system-ui!important;letter-spacing:normal!important;text-decoration:none!important;text-transform:none!important;color:#fff!important;-webkit-text-fill-color:#fff!important;background:linear-gradient(150deg,#d4a84312,#0f0b04db)!important;border:1px solid #d4a84366!important;border-radius:12px!important;cursor:pointer!important;box-shadow:none!important;white-space:nowrap!important;vertical-align:top!important}
html body .khs-reset-row .khs-reset-control:focus-visible{outline:2px solid #d4a843!important;outline-offset:3px!important}
html body .khs-reset-row .khs-reset-control::before,html body .khs-reset-row .khs-reset-control::after{display:none!important}
html body .khs-reset-row .khs-reset-control:active{box-shadow:0 0 0 2px #d4a84388!important;transform:scale(.985)}
/* Keep the current carousel/photos and all non-heading sections in place. */
html body .khs-brand-host>.khs-brand-only{z-index:1}
html body .khs-brand-host,html body :is(.hero,.sg-hero,.kau-hero):has(.khs-brand-only){padding-block-start:0!important;overflow:visible!important}
html body:has(.khs-reset-row) :is(.hero,.sg-hero,.kau-hero,.gang-hero):has(.khs-brand-only),html body:has(.khs-reset-row) .page:has(>.hero .khs-brand-only),html body:has(.khs-reset-row) #kauMain:has(.khs-brand-only){padding-block-start:0!important;margin-block-start:0!important}
html body :is(.klp-hero,.ktf-hero).khs-standard-hero .khs-logo{z-index:2}
html body .klp-hero.khs-standard-hero>.khs-logo{position:relative!important}
@media(max-width:360px){html body :is(#kxnHead,#sp-root>header,.khs-standard-hero).khs-standard-hero .khs-logo{width:168px!important;height:168px!important}}
@media(prefers-reduced-motion:reduce){html body .khs-reset-control{transition:none!important}}
/* One roomy, content-safe mobile picture box; extra page-specific controls may extend it. */
html body :is(#kxnHead,#sp-root>header,.khs-standard-hero).khs-standard-hero{min-height:360px!important}
@media(max-width:360px){html body :is(#kxnHead,#sp-root>header,.khs-standard-hero).khs-standard-hero{min-height:338px!important}}
html body .khs-heading-section{padding-block-start:0!important;margin-block-start:0!important}
html body .khs-reset-row{position:relative!important;z-index:10001!important}
html body:has(.khs-reset-row) .page:has(.khs-heading-section),html body:has(.khs-reset-row) #ks:has(.ks-hero.khs-standard-hero){padding-block-start:0!important}
html body .hero:has(.khs-brand-only){align-items:flex-start!important;min-height:0!important}

/* Step 2: photo reaches up behind the Reset button (set by script on Swap/Exchange/Pools/Bridge only); Reset stays on top in dark glass. */
html body .khs-standard-hero[data-khs-lift]{background-position:center 62%!important}
html body .khs-reset-row .khs-reset-control{-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px)}
/* Gentle logo shine + gold tap glow. Glow only: no size or position change. */
@keyframes khsShine{0%,100%{opacity:.35}50%{opacity:.85}}
html body .khs-standard-hero .khs-logo{-webkit-tap-highlight-color:transparent}
html body .khs-standard-hero .khs-logo::before{content:"";position:absolute;inset:9%;border-radius:50%;pointer-events:none;z-index:-1;box-shadow:0 0 22px 4px rgba(212,168,67,.38);opacity:0;transition:box-shadow .2s,opacity .2s}
html body .khs-standard-hero .khs-logo:not(.hero-crown)::before{animation:khsShine 4.5s ease-in-out infinite}
html body .khs-standard-hero .khs-logo:active::before{animation:none;opacity:1;box-shadow:0 0 34px 10px rgba(240,200,90,.7)}
@media(prefers-reduced-motion:reduce){html body .khs-standard-hero .khs-logo::before{animation:none!important;opacity:.5}}
/* Step 2b: let the lifted photo show above its wrapper (Swap's .page clipped it, leaving a seam). Sideways clipping is kept. */
@supports (overflow:clip){html body .page:has(.khs-standard-hero[data-khs-lift]){overflow-x:clip!important;overflow-y:visible!important}}
