/* =====================================================================
   THE CARD THEME (9 Nov 2026, user). Loaded last. The loading screen, home cards, game cards and painted titles share one look:
   green cloth, stained-glass art, a light pale edge. The menu windows now follow it, simply.
   ===================================================================== */
:root{--edge:rgba(243,234,214,.6); --edgeSoft:rgba(243,234,214,.2); --barLine:var(--edge); --shellBg:#0a1a16;
  --tile:linear-gradient(180deg,rgba(13,24,20,.84),rgba(6,13,11,.9))}

/* ---- the top bar and window titles: the colours of the painted Thaas logo ---- */
html body .gov:not(#roundOv):not(#albumOv):not(#quickOv):has(>.gpanel:not(.home))::before{background:#0b1c17}
html body .gov:not(#roundOv):not(#quickOv)>.gpanel:not(.home)>h2:not(#_),html body .gov .gpanel .lgbar>h2:not(#_),html body .gov .phead h2:not(#_){
  background:linear-gradient(180deg,#ffdc85 10%,#f6a02c 58%,#d9601a 92%) !important; -webkit-background-clip:text !important; background-clip:text !important; color:transparent !important; -webkit-text-fill-color:transparent;
  text-shadow:none !important; filter:drop-shadow(0 1px 1px rgba(0,0,0,.75))}

/* ---- frames: the light edge of Collection, Medals and Tasks. Big frames take its 1.5px; thin frames stay thin in the same colour.
        Chosen items keep their gold edge so you can still see what is selected. ---- */
html body :is(.sitem:not(.sel):not(.on),.mgcard,.codebox,.chrow,.freeze,.gpanel .wallet span,.closebox,.shoppack:not(.best):not(.offer),.shopentry,.spopt:not(.on),.spinfo,.lobspells,.tpanel,.gpanel input:not([type=range]),.gpanel select,.placebtn):not(#_):not(#_){
  border:1.5px solid var(--edge) !important; border-image:none !important}
html body :is(.ctabs,.lgtabs,.cprev,.tog,.rng,#setGame .field:has(select),.frow,.gpanel .flist>*,.arow,.gpanel .empty,.faq,.gpanel .opt:not(.on),.sopt:not(.on):not(.sel),.lgcard:not(.prizes),.lgfind,.lgtable,.lglive,.lglt,.lgmatch,.shopstep,.shoporder,.toffer,.thist,.pearlrow section):not(#_):not(#_){
  border-width:1px !important; border-style:solid !important; border-color:var(--edge) !important; border-image:none !important}
html body :is(.sitem:not(.sel):not(.on),.mgcard,.chrow,.arow,.frow,.tog,.rng,.sopt:not(.on):not(.sel),.cprev,.faq,.codebox,.gpanel .opt:not(.on),.gpanel .empty,.gpanel .wallet span):not(#_):not(#_){background:var(--tile) !important}
html body :is(.ctabs,.lgtabs):not(#_):not(#_){background:rgba(6,13,11,.62) !important}
html body .mgcard:not(#_):not(#_){border-radius:16px !important}

/* ---- My collection: "Go to the Store" has no outline, just its words ---- */
html body #collOv #collToShop:not(#_):not(#_):not(#_){border:0 !important; background:none !important; box-shadow:none !important; filter:none !important; color:#f6e3c8 !important; min-height:36px; padding-top:2px !important; padding-bottom:2px !important}

/* ---- "Not enough Endheri": one short line under the top bar ---- */
html body .gnote.lack:not(#_){top:calc(var(--barEnd) + 8px); display:flex; align-items:center; gap:10px; width:max-content; padding:8px 22px 8px 12px; border-radius:14px; border:1.5px solid var(--edge);
  background:linear-gradient(180deg,#14251f,#08120f); color:#fbf1dc; font:400 17px/1.1 var(--f-display,serif); letter-spacing:.2px; box-shadow:0 10px 26px rgba(0,0,0,.6)}
.gnote.lack::before{content:""; flex:none; width:30px; height:30px; background:center/contain no-repeat}
.gnote.lack.gems::before{background-image:url(../art/ui/icon-endheri.webp)}
.gnote.lack.amber::before{background-image:url(../art/ui/icon-maavaharu.webp)}
.gnote.lack.coins::before{background-image:url(../art/ui/cowrie-64.webp)}

/* ---- Profile (10 Nov 2026, user: the text became too big and the frames' border is not wanted): calm sizes, no frames, two even columns centred on the screen ---- */
html body #profOv .gpanel:not(#_):not(#_){--u:clamp(12px,3.15vh,15px); font-size:var(--u); display:grid !important; grid-template-columns:minmax(0,1fr) minmax(0,1fr); grid-template-rows:auto; align-content:center; align-items:start !important; column-gap:clamp(20px,5vw,56px); row-gap:0; overflow:hidden !important}
html body #profOv .pcard:not(#_):not(#_),html body #profOv .mlist:not(#_):not(#_){box-sizing:border-box; height:auto; margin:0; padding:0 !important; border:0 !important; border-radius:0 !important; background:none !important; box-shadow:none !important; overflow:visible}
html body #profOv .pcard::before,html body #profOv .mlist::before{font-size:.82em !important; letter-spacing:.14em; margin-bottom:.9em !important; color:#f2c27e}
html body #profOv .pcard:not(#_):not(#_){grid-template-columns:calc(var(--u)*4.4) minmax(0,1fr); column-gap:.95em; row-gap:.12em; align-content:start}
html body #profOv .bigav:not(#_):not(#_){width:calc(var(--u)*4.4) !important; height:calc(var(--u)*4.4) !important; margin:0 !important; grid-row:2 / span 3 !important; align-self:center}
html body #profOv .pname:not(#_):not(#_){font-size:1.6em !important; line-height:1.12; color:#fff6e4}
html body #profOv :is(.pmeta,.streak):not(#_):not(#_){font-size:1em; line-height:1.25; font-weight:600}
html body #profOv .ptitle:empty,html body #profOv .pmail:empty{display:none}
html body #profOv .lvl:not(#_):not(#_){margin-top:1em !important; font-size:1.05em; flex-wrap:wrap; gap:.15em .7em; line-height:1.2}
html body #profOv .lvl .xpbar{flex:1 1 40%; height:.5em}
html body #profOv .lvl small:not(#_){flex:1 0 100%; font-size:.9em; line-height:1.2; white-space:normal; font-weight:500}
html body #profOv .nextrw:not(#_):not(#_):not(#_){margin-top:.2em !important; font-size:.92em; line-height:1.25; white-space:normal; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden}
html body #profOv .stats:not(#_):not(#_){margin-top:.9em !important; padding:.7em 0 0; border:0; border-top:1px solid var(--edgeSoft); gap:.6em}
html body #profOv .stats>div:not(#_):not(#_):not(#_){display:flex !important; align-items:baseline; justify-content:flex-start; gap:.45em; padding:0 !important; background:none !important; border:0 !important; box-shadow:none !important}
html body #profOv .stats b:not(#_):not(#_){font-size:1.7em !important; line-height:1.1}
html body #profOv .stats span:not(#_):not(#_){font-size:.95em !important; letter-spacing:.2px; text-transform:none}
html body #profOv .mlist:not(#_):not(#_){display:grid; grid-auto-rows:auto; grid-template-rows:none; gap:0; grid-column:2; grid-row:1}
html body #profOv .mrow:not(#_):not(#_):not(#_){min-height:0; margin:0 !important; padding:.75em .2em !important; grid-template-columns:calc(var(--u)*2.8) minmax(0,1fr) auto !important; column-gap:.8em; border:0 !important; border-top:1px solid var(--edgeSoft) !important; border-radius:0 !important; background:none !important; box-shadow:none !important}
html body #profOv .mlist .mrow:first-of-type:not(#_):not(#_):not(#_),html body #profOv .mlist .mrow[hidden]+.mrow:not(#_):not(#_):not(#_){border-top:0 !important}
html body #profOv .mrow .ico:not(#_):not(#_):not(#_){width:calc(var(--u)*2.8) !important; height:calc(var(--u)*2.8) !important}
html body #profOv .mrow b:not(#_):not(#_):not(#_){font-size:1.25em !important; line-height:1.15}
html body #profOv .mrow small:not(#_):not(#_):not(#_){font-size:.95em !important; line-height:1.2; white-space:normal; display:block}
html body #profOv .mrow em:not(#_){font-size:1.6em}

/* ---- Stats & history: the bar of tabs stays put; each page is one frame that fits the screen. Only the Matches list scrolls. ---- */
html body #histOv .gpanel:not(#_):not(#_){--u:clamp(11.5px,3.55vh,18px); display:grid !important; grid-template-columns:minmax(0,1fr); grid-template-rows:auto minmax(0,1fr); gap:clamp(5px,1.6vh,10px); overflow:hidden !important; font-size:var(--u)}
html body #histOv #histTabs:not(#_){margin:0 !important}
@media (max-height:400px){ html body #histOv #histTabs:not(#_){padding-top:2px !important; padding-bottom:2px !important} html body #histOv #histTabs button:not(#_){min-height:34px; padding-top:3px; padding-bottom:3px} }
#histOv :is(#histStats,#histMast,#histMerit,#histMatches):not([hidden]){min-height:0; height:100%; display:block}
#histOv #histMatches:not([hidden]){display:grid; grid-template-rows:auto minmax(0,1fr); gap:6px}
#histOv #histMatches .hlist{min-height:0; overflow-y:auto; overscroll-behavior:contain}
.hframe{box-sizing:border-box; height:100%; min-height:0; display:grid; border:1.5px solid var(--edge); border-radius:16px; background:var(--tile); box-shadow:0 8px 20px rgba(0,0,0,.4); overflow:hidden}
.hframe .hhead{margin:0; font-size:max(11px,.86em); letter-spacing:.1em; color:#f2c27e}
.hframe .hhead small{font-size:max(10.5px,.92em); color:#e8d8c4}
.hframe>*{min-width:0; min-height:0; box-sizing:border-box; padding:clamp(6px,2vh,14px) clamp(8px,1.5vw,16px)}
.hframe>*+*{border-left:1px solid var(--edgeSoft)}
.hstatf{grid-template-columns:minmax(0,.8fr) minmax(0,1.15fr) minmax(0,1.35fr)}
.hsumc{display:flex; flex-direction:column; align-items:center; justify-content:center; gap:clamp(4px,1.6vh,10px)}
.hring{--p:0; --c:#f0a93e; width:calc(var(--u)*7.2); aspect-ratio:1; border-radius:50%; display:grid; place-content:center; text-align:center; background:radial-gradient(closest-side,#0b1714 76%,transparent 77%), conic-gradient(var(--c) calc(var(--p)*1%),rgba(243,234,214,.16) 0); flex:none}
.hring b{font:400 2.05em/1 var(--f-display,serif); color:var(--c)}
.hring small{font-size:max(10.5px,.84em); line-height:1.15; color:#e8d8c4}
.hwl{display:flex; justify-content:center; gap:clamp(8px,1.4vw,18px); width:100%}
.hwl span{display:grid; justify-items:center; font-size:max(10.5px,.88em); color:#e8d8c4; line-height:1.15; white-space:nowrap}
.hwl b{font-size:1.5em; color:#fff1d6; line-height:1.1}
.hgc,.hcc{display:grid; grid-template-rows:auto minmax(0,1fr); gap:clamp(2px,.8vh,6px)}
.hgrs{display:grid; grid-auto-rows:minmax(0,1fr); min-height:0}
.hgr{display:grid; grid-template-columns:calc(var(--u)*5) minmax(0,1fr) auto; align-items:center; column-gap:.6em; border-top:1px solid var(--edgeSoft)}
.hgr:first-child{border-top:0}
.hgname{filter:brightness(1.22) drop-shadow(0 1px 1px rgba(0,0,0,.6)); display:block; height:calc(var(--u)*1.9); max-width:100%; width:auto; object-fit:contain; object-position:left center}
.hgr .hgm{display:grid; gap:2px; min-width:0}
.hgr .hbar{height:6px; background:rgba(243,234,214,.14)}
.hgr small{font-size:max(10.5px,.88em); line-height:1.1; color:#e8d8c4; white-space:nowrap; overflow:hidden; text-overflow:ellipsis}
.hgr em{font:400 1.32em/1 var(--f-display,serif); color:#f6c47c; min-width:2.3em; text-align:right}
.hgr.top em{color:#ffe08e}
.hcells{display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); grid-auto-rows:minmax(0,1fr); column-gap:clamp(8px,1.4vw,16px); min-height:0}
.hcell{display:flex; align-items:center; gap:.5em; min-width:0; border-top:1px solid var(--edgeSoft)}
.hcell:nth-child(-n+2){border-top:0}
.hcell b{flex:none; min-width:1.5em; font-size:1.3em; line-height:1; color:#fff1d6}
.hcell span{min-width:0; font-size:max(10.5px,.92em); line-height:1.1; color:#e8d8c4}

/* Pearl Path */
.hpearl{grid-template-rows:auto minmax(0,1fr); padding:clamp(5px,1.6vh,12px) clamp(8px,1.5vw,16px)}
.hpearl>*{padding:0}
.hpearl>*+*{border-left:0}
.hpearl .hmlead:not(#_){margin:0 0 clamp(2px,.8vh,6px); font-size:max(11px,.94em); line-height:1.2; color:#e8d8c4; white-space:nowrap; overflow:hidden; text-overflow:ellipsis}
.hpearl .hmgrid:not(#_){display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); grid-template-rows:repeat(2,minmax(0,1fr)); gap:0; min-height:0; height:100%}
.hpearl .hm:not(#_){display:grid; grid-template-columns:calc(var(--u)*5) minmax(0,1fr); grid-template-rows:none; column-gap:.8em; align-items:center; min-height:0; padding:0 clamp(4px,1vw,12px); border:0; border-radius:0; background:none}
.hpearl .hm:nth-child(even){border-left:1px solid var(--edgeSoft)}
.hpearl .hm:nth-child(n+3){border-top:1px solid var(--edgeSoft)}
.hpearl .hmbadge:not(#_){grid-column:1; width:calc(var(--u)*5); height:auto; max-height:100%; margin:0; object-fit:contain}
.hpearl .hminfo:not(#_){grid-column:2; display:grid; gap:clamp(1px,.5vh,4px); min-width:0}
.hmtop{display:flex; align-items:center; justify-content:space-between; gap:.5em; min-width:0}
.hmtop .hgname{height:calc(var(--u)*1.75); flex:0 1 auto; min-width:0}
.hpearl .hmrow:not(#_){display:flex; gap:2px; margin:0; padding:0; grid-column:auto; flex:none}
.hpearl .hmrow img:not(#_){width:calc(var(--u)*1.5); height:calc(var(--u)*1.5)}
.hpearl .hminfo small:not(#_){font-size:max(10.5px,.97em); line-height:1.15; color:#e8d8c4; white-space:nowrap; overflow:hidden; text-overflow:ellipsis}
.hpearl .hbar:not(#_){height:6px; background:rgba(243,234,214,.14)}

/* Merit */
.hmeritf{grid-template-columns:minmax(0,.72fr) minmax(0,1.5fr)}
.hmeritf .hrules{display:grid; grid-template-rows:auto minmax(0,1fr); gap:clamp(2px,.7vh,6px)}
#histMerit .hmeritf .mrules:not(#_):not(#_){display:grid; grid-template-columns:minmax(0,1fr); grid-auto-rows:minmax(0,1fr); gap:0; min-height:0}
#histMerit .hmeritf .mrules li:not(#_):not(#_){display:grid; grid-template-columns:5em minmax(0,1fr); align-items:center; gap:.5em; padding:0; border:0; border-top:1px solid var(--edgeSoft); border-radius:0; background:none; font-size:max(11px,.98em); line-height:1.1; color:#f3e6d4}
#histMerit .hmeritf .mrules li:first-child:not(#_):not(#_){border-top:0}
#histMerit .hmeritf .mrules b:not(#_){font-size:1.1em; text-align:left; white-space:nowrap}

html body #collOv .gpanel:not(#_):not(#_){overflow:hidden !important}

/* ---- Story: the place details beside the map are written on an old dark scroll, with light ink ---- */
html body .stpanel:not(#_):not(#_){border:0 !important; border-radius:0; box-shadow:none; background:none !important; position:relative; isolation:isolate; filter:drop-shadow(0 8px 12px rgba(0,0,0,.55)); padding:clamp(30px,10.5vh,48px) clamp(26px,9%,40px) clamp(30px,10.5vh,48px) !important; gap:5px; scrollbar-width:none}
html body .stpanel:not(#_):not(#_)::-webkit-scrollbar{display:none}
html body .stpanel .stintro{color:#f1e3c6; text-shadow:0 1px 1px rgba(0,0,0,.6)}
html body .stpanel .sttasks li:not(.got){color:#e0cfae}
html body .stpanel .stgorow:not(#_):not(#_){background:none !important; border:0 !important; box-shadow:none !important; bottom:0 !important; margin:0 !important; padding:2px 0 0 !important; backdrop-filter:none}
@media (max-height:400px){ html body .stpanel:not(#_):not(#_){padding-top:30px !important; padding-bottom:28px !important; gap:2px} html body .stpanel .btn:not(#_){padding-top:4px; padding-bottom:4px; min-height:34px}
  html body .stpanel .sttasks:not(#_){font-size:12px; gap:0; line-height:1.15} html body .stpanel .sttasks li i{width:13px; height:13px}
  html body .stpanel .stwho .av{width:30px; height:30px} html body .stpanel .stwho b{font-size:13px; line-height:1.1} html body .stpanel .stwho small{font-size:11px; line-height:1.1}
  html body .stpanel .stname b:not(#_){font-size:18px; line-height:1.05} html body .stpanel .stname small:not(#_){font-size:10.5px; line-height:1.1} html body .stpanel .stprize:not(#_){font-size:11.5px; line-height:1.1; margin:0} html body .stpanel .stlogo{max-height:30px} }

/* the scroll picture: ends, torn sides and bottle keep their shape, only the plain middle of the paper stretches to fit */
html body .stpanel::before{content:""; position:absolute; inset:0; z-index:-1; --scroll2:url(../art/story/scroll-feydhoo.webp); box-sizing:border-box; border-style:solid; border-color:transparent; border-width:clamp(30px,10vh,42px) clamp(16px,2.6vw,24px) clamp(58px,19vh,78px) clamp(32px,5vw,46px); border-image:var(--scroll,var(--scroll2)) 14% 12% 26% 22% fill / clamp(30px,10vh,42px) clamp(16px,2.6vw,24px) clamp(58px,19vh,78px) clamp(32px,5vw,46px) stretch}

/* Fulunniararai: just the word over the table */
html body .fule:not(#_):not(#_){background:none !important; border:0 !important; box-shadow:none !important; padding:0 !important}
html body .fule b em .wordpic:not(#_){width:min(70vw,520px); max-height:46vh}

/* ---- hold your picture at the table: the spoken lines ---- */
html body #me .who{-webkit-user-select:none; user-select:none; -webkit-touch-callout:none}
.vopop{position:fixed; z-index:95; display:grid; gap:2px; padding:5px; border-radius:14px; border:1.5px solid var(--edge); background:linear-gradient(180deg,#14251f,#08120f); box-shadow:0 10px 24px rgba(0,0,0,.6)}
.vopop[hidden]{display:none}
.vopop button{min-height:38px; padding:4px 16px; border:0; border-radius:10px; background:none; color:#fbf1dc; font-weight:800; font-size:14px; white-space:nowrap; text-align:left}
.vopop button:disabled{opacity:.35}
.vopop button:not(:disabled):active{background:rgba(243,234,214,.16)}

/* ---- (10 Nov 2026, user) the "Not enough" message goes away by itself ---- */
html body .gnote.lack:not(#_){opacity:0; visibility:hidden; transition:translate .3s cubic-bezier(.2,1.3,.4,1), opacity .2s, visibility 0s .3s}
html body .gnote.lack.show:not(#_){opacity:1; visibility:visible; transition:translate .3s cubic-bezier(.2,1.3,.4,1), opacity .2s, visibility 0s}

/* ---- (10 Nov 2026, user) the speaker menu: no box around Music and Game sounds ---- */
html body .sndmenu .tog:not(#_):not(#_):not(#_){border:0 !important; background:none !important; box-shadow:none !important; border-radius:0 !important; padding:6px 0 !important; margin:0 !important}

/* ---- (10 Nov 2026, user) Trade with friends: one fixed size for every friend and both pages; the Album's arrow stays out of it ---- */
html body:has(#tradeBox:not([hidden])) #albumBack:not(#_){visibility:hidden}

/* ---- (10 Nov 2026, user) the same space above and below on every window: 12px under the top bar and 12px above the bottom edge; a window that does not fill the screen
        is centred between the two (the script at the end of game.js sets --bal, half of the free height) ---- */
html body .gov:not(#roundOv):not(#quickOv):not(#albumOv):not(#_):not(#_):not(#_)>.gpanel:not(.home):not(#_):not(#_):not(#_):not(#_){padding-top:calc(12px + var(--bal,0px)) !important; padding-bottom:calc(var(--safeB) + 12px) !important}
html body #collOv .ctabs:not(#_):not(#_){margin-top:0 !important}
html body #profOv .gpanel:not(#_):not(#_):not(#_):not(#_):not(#_){align-content:center !important; column-gap:clamp(20px,5vw,56px)}

/* the painted icons of the game menu (Ranked match, Friends room, Computer table, Magic table) */
html body #homeOv .hbtn i>img.mode:not(#_){width:100%; height:100%; object-fit:contain; filter:drop-shadow(0 2px 3px rgba(0,0,0,.45))}
/* the new task icons are round emblems with their own rim: no second ring behind them */
html body .chico:not(#_):not(#_){border:0 !important; background:none !important; box-shadow:none !important; border-radius:0 !important}
html body .chico img:not(#_):not(#_){width:100% !important; height:100% !important; object-fit:contain; filter:drop-shadow(0 2px 3px rgba(0,0,0,.5)) !important}
/* the smaller new frames do not need a dark pill behind the name on Profile */
html body #profOv .bigav[class*="fr-"]~.pname:not(#_):not(#_){background:none !important; box-shadow:none !important; padding:0 !important; border-radius:0}

/* =====================================================================================================================================
   (10 Nov 2026, user) the Achievement and League cards are tall cards like the home and game cards: the same pale edge and rounded
   corners, a stained-glass picture tinted with the card's own colour, the emblem on top and the words on a dark band at the bottom.
   art/ui/card-glass.webp is a stand-in glass texture (light and dark only); the tint is mixed in by the browser.
   ===================================================================================================================================== */
.gcard2{--tint:#134a52; --cw:calc(var(--ch) * 5 / 7); position:relative; isolation:isolate; overflow:hidden; box-sizing:border-box; flex:none; width:var(--cw); height:var(--ch); border:1.5px solid rgba(243,234,214,.6); border-radius:calc(var(--cw) * .08); box-shadow:inset 0 0 0 1px rgba(0,0,0,.35), 0 0 0 1px rgba(0,0,0,.4), 0 10px 22px rgba(0,0,0,.5); background:#08120f; color:#f6e8cc}
.gcard2::before{content:""; position:absolute; inset:0; z-index:-2; background:url(../art/ui/card-glass.webp) center/100% 100% no-repeat}
.gcard2::after{content:""; position:absolute; inset:0; z-index:-1; background:var(--tint); mix-blend-mode:color}
.gcard2.dim::before{filter:brightness(.55)}
.gcard2.dim{--tint:#6c7d7f}

/* Achievements */
html body #achOv #achList:not(#_):not(#_){--ch:min(380px,calc(100dvh - var(--barEnd) - var(--safeB) - 40px)); display:flex !important; gap:12px; align-items:stretch; margin:0 !important; padding:6px 30px 12px 4px !important; height:auto; overflow-x:auto; overflow-y:hidden}
html body #achOv #achList h3{display:none}
.acard{display:grid; grid-template-rows:minmax(0,1fr) auto; font-size:clamp(10.5px,calc(var(--cw) * .066),15px); text-align:center}
.acard .aemb{display:grid; place-items:center; padding:9% 12% 0}
.acard .aemb img{width:78%; max-height:100%; object-fit:contain; filter:drop-shadow(0 6px 8px rgba(0,0,0,.55))}
.acard.dim .aemb img{filter:grayscale(1) brightness(.7) drop-shadow(0 6px 8px rgba(0,0,0,.55)); opacity:.85}
.acard .aemo{width:62%; aspect-ratio:1; border-radius:50%; display:grid; place-items:center; font-size:3.2em; border:2px solid rgba(243,223,170,.7); background:radial-gradient(circle at 35% 30%,rgba(0,0,0,.25),rgba(0,0,0,.55)); box-shadow:0 6px 8px rgba(0,0,0,.45)}
.acard .aemo .emo-i{width:1em; height:1em}
.acard .atxt{display:grid; gap:.25em; justify-items:center; padding:2.2em .8em .8em; background:linear-gradient(180deg,rgba(8,6,4,0),rgba(8,6,4,.82) 34%,rgba(8,6,4,.92))}
.acard .atxt b{font-family:var(--f-display); font-weight:400; font-size:1.3em; line-height:1.08; color:#ffe9b8; text-shadow:0 2px 0 #2e1c0e, 0 3px 8px rgba(0,0,0,.8)}
.acard .atxt small{font-size:.82em; line-height:1.2; color:#eadcc2; display:-webkit-box; -webkit-line-clamp:3; -webkit-box-orient:vertical; overflow:hidden}
.acard .atier{display:flex; gap:.35em; justify-content:center; margin-top:.15em}
.acard .atier i{width:.9em; height:.9em; border-radius:50%; background:rgba(255,255,255,.12); border:1.5px solid var(--c); box-sizing:border-box}
.acard .atier i.on{background:var(--c); box-shadow:0 0 6px var(--c)}
.acard .abar{width:88%; height:.5em; border-radius:99px; background:rgba(0,0,0,.55); box-shadow:0 0 0 1px rgba(243,234,214,.3); overflow:hidden}
.acard .abar i{display:block; height:100%; background:linear-gradient(90deg,#f3c99a,#d39a5e); border-radius:99px}
.acard .acount{font-size:.88em; font-weight:800; color:#fff1d6}
.acard .acount span{color:var(--tc)}

/* League cards: your leagues and the spotlight are tall cards too, tinted with the league's own colour */
html body #leagueOv .lgbanners:not(#_),html body #leagueOv .lgspot:not(#_){display:flex !important; gap:12px; overflow-x:auto; padding:4px 2px 10px; grid-template-columns:none}
html body #leagueOv :is(.lgbanner,.lgspotc).gcard2:not(#_):not(#_){--ch:clamp(196px,60vh,268px); --tint:var(--ca,#16858c); display:grid; grid-template-rows:minmax(0,1fr) auto; justify-items:center; align-items:stretch; padding:0 !important; gap:0 !important; text-align:center; font-size:clamp(10.5px,calc(var(--cw) * .07),14px); border:1.5px solid rgba(243,234,214,.6) !important; border-radius:calc(var(--cw) * .08) !important; background:#08120f !important; color:#f6e8cc}
html body #leagueOv .lgbanner.gcard2 .lgcrest:not(#_),html body #leagueOv .lgspotc.gcard2 .lgcrest:not(#_){place-self:center; width:calc(var(--cw) * .38); height:calc(var(--cw) * .44); margin-top:8%; filter:drop-shadow(0 6px 8px rgba(0,0,0,.55))}
html body #leagueOv .gcard2 .lgcrest b:not(#_){font-size:calc(var(--cw) * .13)}
html body #leagueOv .lgbanner .lgbinfo:not(#_){display:grid; gap:.3em; justify-items:center; width:100%; padding:2.2em .8em .8em; background:linear-gradient(180deg,rgba(8,6,4,0),rgba(8,6,4,.82) 34%,rgba(8,6,4,.92))}
html body #leagueOv .lgbanner .lgbinfo b:not(#_){font-family:var(--f-display); font-weight:400; font-size:1.3em; line-height:1.08; color:#ffe9b8; text-shadow:0 2px 0 #2e1c0e, 0 3px 8px rgba(0,0,0,.8)}
html body #leagueOv .lgbanner .lgbinfo small:not(#_){font-size:.82em; line-height:1.2; color:#eadcc2}
html body #leagueOv .lgbanner .lgprog:not(#_){width:88%; height:.5em; background:rgba(0,0,0,.55); box-shadow:0 0 0 1px rgba(243,234,214,.3)}
html body #leagueOv .lgspotc.gcard2:not(#_){grid-template-rows:minmax(0,1fr) auto auto auto; align-content:stretch}
html body #leagueOv .lgspotc.gcard2>:is(b,i,small,.btn):not(#_){position:relative; z-index:1; max-width:92%}
html body #leagueOv .lgspotc.gcard2>b:not(#_){font-family:var(--f-display); font-weight:400; font-size:1.3em; line-height:1.08; color:#ffe9b8; text-shadow:0 2px 0 #2e1c0e, 0 3px 8px rgba(0,0,0,.8); padding-top:2em; width:100%; background:linear-gradient(180deg,rgba(8,6,4,0),rgba(8,6,4,.82) 70%); max-width:100%}
html body #leagueOv .lgspotc.gcard2>:is(i,small,.btn):not(#_){background:rgba(8,6,4,.9); width:100%; max-width:100%; border-radius:0; margin:0}
html body #leagueOv .lgspotc.gcard2>small:not(#_){color:#eadcc2; padding:.3em .8em; font-size:.82em}
html body #leagueOv .lgspotc.gcard2>.btn:not(#_){border-radius:0 0 calc(var(--cw)*.07) calc(var(--cw)*.07) !important; padding:.7em .5em !important; width:100% !important}
html body #leagueOv .lgspotc.gcard2{grid-template-rows:minmax(0,1fr); grid-auto-rows:auto}
html body #leagueOv .lgspotc.gcard2>b:not(#_):not(#_){padding-bottom:.4em}
html body #leagueOv .lgspotc.gcard2>i.lgflag:not(#_):not(#_){position:absolute; top:.7em; right:.7em; width:auto; max-width:none; z-index:2; border-radius:999px; margin:0}
html body #leagueOv .lgspotc.gcard2>i.lgflag.f-featured:not(#_){background:#e7b54a; color:#1b1207}
html body #leagueOv .lgspotc.gcard2>i.lgflag.f-event:not(#_){background:#7fd3ff; color:#06202b}

/* (10 Nov 2026, user) the five choice cards open as a fan, like the Games fan: same card shape, edge and name strip as the home cards */
html body #hubOv .gcard[data-opt] .gback:not(#_){border:3px solid #f3ead6 !important; box-sizing:border-box; border-radius:calc(var(--cw) * .09) !important; background-size:100% 100% !important; background-repeat:no-repeat !important; box-shadow:0 0 0 1px rgba(0,0,0,.35), 0 10px 22px rgba(0,0,0,.5) !important}
html body #hubOv .gcard[data-opt="coll"] .gback:not(#_){background-image:url(../art/ui/card-collection.webp) !important}
html body #hubOv .gcard[data-opt="ach"] .gback:not(#_){background-image:url(../art/ui/card-medals.webp) !important}
html body #hubOv .gcard[data-opt="ch"] .gback:not(#_){background-image:url(../art/ui/card-tasks.webp) !important}
html body #hubOv .gcard[data-opt="league"] .gback:not(#_){background-image:url(../art/ui/card-leagues.webp) !important}
html body #hubOv .gcard[data-opt="rank"] .gback:not(#_){background-image:url(../art/ui/card-ranking.webp) !important}
html body #hubOv .gcard[data-opt] .gname b:not(#_){font-size:calc(var(--cw) * .15)}
html body #hubOv .gcard[data-opt] .chbadge:not(#_){position:absolute; top:6px; right:6px; z-index:3}
