/* AVADAQ polish layer: soft depth, light sweeps and live pulses.
   Only adds finish on top of each page's own styles; remove this file to go back. */

/* 1. Ambient glow behind every page */
body:has(header.top)::before{content:"";position:fixed;inset:0;z-index:-1;pointer-events:none;
  background:radial-gradient(900px 460px at 8% -8%,color-mix(in srgb,var(--red) 22%,transparent),transparent 70%),
             radial-gradient(760px 380px at 96% -4%,color-mix(in srgb,#f5c542 11%,transparent),transparent 70%),
             radial-gradient(900px 500px at 50% 115%,color-mix(in srgb,var(--red) 7%,transparent),transparent 70%)}
html:has(header.top){background:var(--bg)}body:has(header.top){background:transparent!important}
html[data-theme="light"] body:has(header.top)::before{opacity:.55}

::selection{background:color-mix(in srgb,var(--red) 40%,transparent);color:#fff}
*{scrollbar-color:color-mix(in srgb,var(--red) 35%,var(--line)) transparent}
:focus-visible{outline:2px solid color-mix(in srgb,var(--red) 80%,#fff);outline-offset:2px}

/* 2. Cards: a fine top highlight and a softer, deeper shadow */
.fstat,.thc,.tok,.stat,.pacct,.card,.potbar,.koth,#kothd.withpot{
  box-shadow:inset 0 1px 0 rgba(255,255,255,.055),0 1px 0 rgba(0,0,0,.25),0 14px 34px -18px rgba(0,0,0,.65)}
html[data-theme="light"] :is(.fstat,.thc,.tok,.stat,.pacct,.card,.potbar){box-shadow:inset 0 1px 0 rgba(255,255,255,.8),0 12px 28px -18px rgba(60,10,10,.25)}
.fstat,.thc,.tok,.stat{transition:transform .2s cubic-bezier(.2,.8,.2,1),border-color .2s,box-shadow .25s}
.fstat:hover{transform:translateY(-2px);border-color:color-mix(in srgb,var(--red) 45%,var(--line));
  box-shadow:inset 0 1px 0 rgba(255,255,255,.07),0 18px 40px -18px color-mix(in srgb,var(--red) 45%,transparent)}
.fstat.pstat:hover{border-color:color-mix(in srgb,#5aa2ff 55%,var(--line));box-shadow:inset 0 1px 0 rgba(255,255,255,.07),0 18px 40px -18px color-mix(in srgb,#5aa2ff 50%,transparent)}
.thc:hover{box-shadow:inset 0 1px 0 rgba(255,255,255,.07),0 16px 36px -18px color-mix(in srgb,var(--tc) 55%,transparent)}
.tok:hover{transform:translateY(-3px);border-color:color-mix(in srgb,var(--red) 45%,var(--line));box-shadow:inset 0 1px 0 rgba(255,255,255,.07),0 20px 40px -20px color-mix(in srgb,var(--red) 45%,transparent)}

/* 3. King card: a slow gold light sweep and a soft breathing glow */
#koth .koth,#kothd.withpot,#kothd>.koth:only-child{position:relative;isolation:isolate}
#koth .koth::before,#kothd.withpot::before,#kothd>.koth:only-child::before{content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;border-radius:inherit;
  background:linear-gradient(105deg,transparent 35%,rgba(255,226,140,.13) 47%,rgba(255,255,255,.08) 50%,transparent 62%);
  background-size:250% 100%;background-position:120% 0;animation:adqSweep 7s ease-in-out infinite}
#koth .koth,#kothd.withpot{animation:adqGlow 4.5s ease-in-out infinite}
@keyframes adqSweep{0%,55%{background-position:120% 0}85%,100%{background-position:-60% 0}}
@keyframes adqGlow{0%,100%{box-shadow:inset 0 1px 0 rgba(255,255,255,.07),0 10px 30px -8px rgba(245,197,66,.16)}50%{box-shadow:inset 0 1px 0 rgba(255,255,255,.07),0 14px 42px -6px rgba(245,197,66,.32)}}
.kcr{background:linear-gradient(135deg,#ffe8a3,#f5c542 45%,#e0a92b)!important;box-shadow:0 2px 10px rgba(245,197,66,.35),inset 0 1px 0 rgba(255,255,255,.6)}
.kbar i,.kbar>i{background:linear-gradient(90deg,#ffe08a,#f5c542 30%,var(--red))!important;box-shadow:0 0 12px rgba(245,197,66,.45)}

/* 4. Live: pulsing dots */
.live,.thl,.pbk .live{animation:adqBlink 2.2s ease-in-out infinite}
@keyframes adqBlink{0%,100%{opacity:1}50%{opacity:.55}}
.lsh{position:relative;animation:adqRing 2.4s ease-out infinite}
@keyframes adqRing{0%{box-shadow:0 0 0 0 color-mix(in srgb,var(--red) 55%,transparent)}70%,100%{box-shadow:0 0 0 10px transparent}}

/* 5. Big numbers: a fine gradient on the headline figures */
#fVol,#pHeroV,.pbv b,#pot{background:linear-gradient(180deg,#fff 30%,color-mix(in srgb,#fff 72%,var(--red)));-webkit-background-clip:text;background-clip:text;color:transparent!important}
.pbv b,#pot{background-image:linear-gradient(180deg,#ffe9a8 20%,#f5c542 70%,#d99a1e)}
html[data-theme="light"] :is(.pbv b,#pot){background:none!important;-webkit-background-clip:border-box;background-clip:border-box;color:#a06a00!important}
html[data-theme="light"] #kothd.withpot>.potbar{background:linear-gradient(180deg,#fff8e6,#fff3d6)!important;border-top-color:#f0d58a!important}
html[data-theme="light"] #kothd.withpot>.potbar>*+*{border-left-color:#f0d58a}html[data-theme="light"] #kothd.withpot .pbmain{border-bottom-color:#f0d58a}
html[data-theme="light"] .kcr{color:#3a2600!important}
html[data-theme="light"] #fVol,html[data-theme="light"] #pHeroV{background-image:linear-gradient(180deg,var(--ink),color-mix(in srgb,var(--ink) 70%,var(--red)))}

/* 6. Token list: smooth rows with an accent bar on hover */
#list a.tr{transition:background .18s,box-shadow .18s}
#list a.tr:hover{background:linear-gradient(90deg,color-mix(in srgb,var(--red) 10%,transparent),transparent 60%);box-shadow:inset 3px 0 0 var(--red)}
#list .tr .lg,.tok .th img,.tok .th .logo{box-shadow:0 0 0 1px rgba(255,255,255,.08),0 4px 12px -4px rgba(0,0,0,.6)}

/* 7. Buttons: a bit of lift and a light sweep on hover */
:is(.thgo,.phgo,.pgo,#wal,.refcta,.tabs button[aria-selected="true"],.seg.red button.on,#vtabs .vmain>button.on){transition:transform .15s,box-shadow .2s,filter .2s}
:is(.thc,.fstat):hover :is(.thgo,.phgo){transform:translateX(2px)}
:is(.pgo,#wal,.refcta):hover{filter:brightness(1.08);box-shadow:0 8px 22px -8px color-mix(in srgb,var(--red) 70%,transparent)}
:is(.seg.red button.on,.tabs button[aria-selected="true"],#vtabs .vmain>button.vspot.on){box-shadow:0 4px 14px -4px color-mix(in srgb,var(--red) 70%,transparent),inset 0 1px 0 rgba(255,255,255,.2)}
#vtabs .vmain>button.vperp.on{box-shadow:0 4px 14px -4px rgba(90,162,255,.7),inset 0 1px 0 rgba(255,255,255,.25)}
#vtabs .vmain>button.votc.on{box-shadow:0 4px 14px -4px rgba(245,197,66,.6),inset 0 1px 0 rgba(255,255,255,.3)}

/* 8. Header: a thin glowing line under the bar */
header.top,body>header{box-shadow:0 1px 0 color-mix(in srgb,var(--red) 22%,transparent),0 10px 30px -20px rgba(0,0,0,.8)}

/* 9. Gentle fade-in of the page blocks on load */
.fhero>*,.hero>*,.lstrip,#vtabs{animation:adqIn .55s cubic-bezier(.2,.8,.2,1) both}
.fhero>*:nth-child(2),.hero>*:nth-child(2){animation-delay:.07s}.fhero>*:nth-child(3){animation-delay:.14s}
.lstrip,#vtabs{animation-delay:.12s}
@keyframes adqIn{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}

@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{animation:none!important;transition:none!important}
}
