/* =====================================================================
   THE ONE WINDOW (7 Nov 2026, user: "make it more professional"). Loaded last. Every menu window looks the same:
   - full screen: the dark cloth reaches every edge, no borders or wooden frames;
   - one top bar: the back arrow always in the same place at the top left, the title in the middle, coins at the right;
   - the page starts on the same line under the bar and scrolls under it; everything stays inside the safe box.
   The same arrow is the way out of a game, of popups and of the story map.
   ===================================================================== */
:root{--barH:50px; --barEnd:calc(var(--safeT) + var(--barH)); --barLine:rgba(214,158,98,.42); --shellBg:#150e0a;
  --arrow:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 12H5M11 5l-7 7 7 7'/%3E%3C/svg%3E")}

/* ---- the back arrow: one place, one look, everywhere ---- */
html body button.xback.xback.xback,html body #hubOv button.xback.hubback,html body .tools>button#newBtn.xback.xback.xback,
html body :is(.lgbar,.stbar,#albumOv .atop,.tools)>button.xback.xback.xback,html body .rulesov .xback.xback,html body .ivbox>.ivcard .ivx{
  position:fixed !important; top:calc(var(--safeT) + 7px) !important; left:var(--safeL) !important; right:auto !important; bottom:auto !important; z-index:90 !important;
  width:36px !important; height:36px !important; margin:0 !important; padding:0 !important; display:grid !important; place-items:center;
  border-radius:50% !important; border:1.5px solid rgba(214,158,98,.75) !important; color:#f0c691 !important; font-size:0 !important; box-shadow:none !important;
  background:rgba(14,9,7,.82) !important}
html body .xback::before,html body .ivbox>.ivcard .ivx::before{content:""; width:18px !important; height:18px !important; background:currentColor !important;
  -webkit-mask:var(--arrow) center/contain no-repeat; mask:var(--arrow) center/contain no-repeat}
html body .xback:not(:disabled):active,html body .ivbox>.ivcard .ivx:active{transform:scale(.92) !important; filter:brightness(1.15) !important}

/* ---- full-screen windows ---- */
html body .gov:not(#roundOv):not(#quickOv):not([hidden]){padding:0 !important; display:block !important; background:var(--shellBg) url(../art/ui/cloth-green.webp) center/cover !important}
html body .gov:not(#roundOv):not(#albumOv):not(#quickOv):has(>.gpanel:not(.home))::before{content:""; position:fixed; left:0; right:0; top:0; width:auto; height:var(--barEnd); transform:none; z-index:80;
  background:#1c130e; border-bottom:1px solid var(--barLine); box-shadow:0 4px 14px rgba(0,0,0,.45); pointer-events:none}
html body .gov:has(>.gpanel:not(.home))::after{content:none !important}
html body .gov:not(#roundOv):not(#quickOv)>.gpanel:not(.home):not(#_):not(#_){position:absolute !important; inset:0 !important; width:auto !important; height:auto !important; max-width:none !important; max-height:none !important; margin:0 !important;
  border:0 !important; border-image:none !important; border-radius:0 !important; box-shadow:none !important; filter:none !important; background:none !important;
  padding:calc(var(--barEnd) + 10px) var(--safeR) calc(var(--safeB) + 10px) var(--safeL) !important; overflow-x:hidden !important; overflow-y:auto !important; overscroll-behavior:contain}

/* ---- the title sits in the bar ---- */
html body .gov:not(#roundOv):not(#quickOv)>.gpanel:not(.home)>h2,html body .gov .gpanel .lgbar>h2,html body .gov .phead h2{position:fixed !important; z-index:85; top:var(--safeT) !important; left:0 !important; right:0 !important; width:auto !important; max-width:none !important; height:var(--barH);
  margin:0 !important; padding:0 calc(var(--safeR) + 8px) 0 calc(var(--safeL) + 48px) !important; display:block !important; text-align:left !important; justify-self:auto !important; font-size:20px !important; line-height:var(--barH) !important; color:#eebd83 !important; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; pointer-events:none; grid-column:auto !important; grid-row:auto !important}
html body .gov .gpanel .lgbar{margin:0; min-height:0}

/* ---- coins and small actions sit at the right of the bar ---- */
html body :is(#shopOv,#chOv) .gpanel>.wallet,html body #collOv #collCount,html body #achOv #achCount,html body .gov .gpanel .lgbar>:not(h2):not(.xback):not(nav){position:fixed !important; z-index:85; top:calc(var(--safeT) + 9px); right:var(--safeR); margin:0 !important; display:flex; gap:6px; flex-wrap:nowrap; align-items:center}
html body :is(#shopOv,#chOv) .gpanel>.wallet span{padding:3px 9px !important; font-size:12px !important; height:32px; box-sizing:border-box; display:inline-flex; align-items:center; gap:4px}

/* ---- bars of tabs and filters move sideways only ---- */
html body :is(.ctabs,.afilters,.lgtabs,.playtabs){overflow-y:hidden !important; touch-action:pan-x; overscroll-behavior:contain}
html body :is(.ctabs,.afilters,.lgtabs) button::after{inset:0 !important}
html body :is(.ctabs,.afilters,.lgtabs) button{min-height:40px}

/* ---- the game table: the arrow is the way out; the game's name moves over for it ---- */
html body .bar .logo{margin-left:46px}
html body .bar .tools{position:static}

/* ---- the home screens under the top chips ---- */
html body #hubOv:not([data-view="main"]) #meChip{margin-left:46px}

/* ---- window by window ---- */
html body :is(#collOv,#achOv) .gpanel>p.lead{font-size:12px !important; color:#d9c2a3 !important; height:32px; line-height:32px}
html body .gov .gpanel>*{max-width:none}
html body :is(#inboxOv,#histOv,#helpOv,#profOv,#friendsOv,#onlineOv,#rankOv) .gpanel{max-width:none !important}
html body :is(#inboxOv,#histOv) .gpanel{display:block !important}
html body :is(#inboxOv,#histOv) .gpanel>:not(.xback):not(h2){width:100% !important; max-width:none !important; margin-left:0 !important; margin-right:0 !important}
html body #setOv .gpanel.mprof #setProfile,html body #setOv .gpanel.mprof #setAccount{grid-row:1 !important}
html body #friendsOv .gpanel{height:auto !important}

/* the album keeps its own deep blue, full screen, no outer frame */

/* results, finding players: the same full screen */
html body #roundOv:not([hidden]),html body #quickOv:not([hidden]){padding:0 !important; display:block !important}
html body #roundOv>.gpanel:not(#_):not(#_),html body #quickOv>.gpanel:not(#_):not(#_){position:absolute !important; inset:0 !important; width:auto !important; height:auto !important; max-width:none !important; max-height:none !important; margin:0 !important;
  border:0 !important; border-image:none !important; border-radius:0 !important; box-shadow:none !important; background:var(--shellBg) url(../art/ui/cloth-green.webp) center/cover !important;
  padding:calc(var(--safeT) + 12px) var(--safeR) calc(var(--safeB) + 12px) var(--safeL) !important; overflow-y:auto !important; overflow-x:hidden !important}
html body #roundOv::before,html body #roundOv::after,html body #quickOv::before,html body #quickOv::after{content:none !important}

/* item preview and the story book: full screen as well */
html body .ivbox:not([hidden]){padding:0 !important; display:block !important}
html body .ivbox>.ivcard:not(#_):not(#_){position:absolute !important; inset:0 !important; width:auto !important; height:auto !important; max-width:none !important; max-height:none !important; margin:0 !important; border:0 !important; border-image:none !important; border-radius:0 !important; box-shadow:none !important;
  background:var(--shellBg) url(../art/ui/cloth-green.webp) center/cover !important; padding:calc(var(--safeT) + 12px) var(--safeR) calc(var(--safeB) + 12px) var(--safeL) !important; align-content:center !important}
html body .ivbox::before,html body .ivbox::after{content:none !important}
html body .sbbox{position:fixed !important; inset:0 !important; width:auto !important; max-width:none !important; height:auto !important; max-height:none !important; margin:0 !important; border:0 !important; border-radius:0 !important; box-shadow:none !important;
  background:var(--shellBg) url(../art/ui/cloth-green.webp) center/cover !important; padding:calc(var(--safeT) + 12px) var(--safeR) calc(var(--safeB) + 12px) var(--safeL) !important; overflow-y:auto !important; box-sizing:border-box}
html body .sbbox>h2{margin:0 0 0 46px !important; text-align:left !important; font-size:20px !important; color:#eebd83 !important}
html body .sbbox>.note{margin-left:46px !important; text-align:left !important}

/* =====================================================================
   SECOND PASS (8 Nov 2026, the user's list)
   ===================================================================== */
/* ---- scrolling: the bar never moves, nothing passes under it, nothing stretches ---- */
html,body{overscroll-behavior:none}
html body .gov:not(#roundOv):not(#quickOv):not(#albumOv)>.gpanel:not(.home):not(#_):not(#_):not(#_){top:var(--barEnd) !important; padding-top:12px !important; overscroll-behavior:none; scrollbar-width:none}
html body .gpanel::-webkit-scrollbar,html body .lgscroll::-webkit-scrollbar{display:none}
html body #leagueOv .lgscroll{overscroll-behavior:none; scrollbar-width:none}
html body #leagueOv .lgtabs{top:0}
html body .lgbar{padding:0; height:0}

/* ---- one quiet card style ---- */
html body .gpanel :is(.mrow,.pcard,.arow,.chrow,.codebox,.qseat,.opt),html body .gpanel .flist>*,html body #setOv :is(.tog,.rng),html body .gpanel .empty,html body #helpOv .faq{
  background:rgba(255,235,205,.045) !important; border:1px solid rgba(214,158,98,.22) !important; border-image:none !important; border-radius:12px !important; box-shadow:none !important}
html body .gpanel :is(.opt.on,.mrow:active){background:rgba(214,158,98,.16) !important; border-color:#d69e62 !important}
html body .gpanel h3{font-size:11px !important; letter-spacing:.12em !important; margin:0 0 6px !important}
html body .gpanel h3::after{display:none !important}

/* ---- settings: all rows one size, three columns, nothing scrolls ---- */
html body #setOv .gpanel:not(.mprof) #setGame{display:grid !important; columns:auto !important; grid-template-columns:repeat(3,minmax(0,1fr)); grid-auto-rows:60px; gap:8px; width:100%; max-width:none}
html body #setOv #setGame>h3{display:none}
html body #setOv #setGame>:is(.tog,.rng,.field){box-sizing:border-box; height:60px; min-height:0; margin:0 !important; padding:6px 10px !important; display:flex !important; align-items:center; gap:8px; width:100%; break-inside:auto}
html body #setOv #setGame>.tog>span:first-of-type:not(.rowico),html body #setOv #setGame>.tog>span:not(.rowico){flex:1 1 0; min-width:0}
html body #setOv #setGame>.tog b{display:block; font-size:13px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis}
html body #setOv #setGame>.tog small{display:block; font-size:10.5px; line-height:1.25; white-space:nowrap; overflow:hidden; text-overflow:ellipsis}
html body #setOv #setGame>.rng{flex-direction:column; align-items:stretch; justify-content:center; gap:2px}
html body #setOv #setGame>.rng .rowico{display:none}
html body #setOv #setGame>.rng>span{display:flex; justify-content:space-between; align-items:center}
html body #setOv #setGame>.rng b{font-size:13px}
html body #setOv #setGame>.field{flex-direction:row; font-size:13px; font-weight:700; color:#f6e6da; background:rgba(255,235,205,.045); border:1px solid rgba(214,158,98,.22); border-radius:12px; white-space:nowrap}
html body #setOv #setGame>.field select{flex:1 1 0; min-width:0; min-height:36px !important; height:36px; padding:0 6px !important; font-size:12.5px !important}
html body #setOv .ver{grid-column:1 / -1; margin:0; text-align:center; font-size:11px}
@media (max-width:760px){ html body #setOv .gpanel:not(.mprof) #setGame{grid-template-columns:repeat(2,minmax(0,1fr)); grid-auto-rows:46px; gap:5px}
  html body #setOv #setGame>:is(.tog,.rng,.field){height:46px; padding:3px 8px !important}
  html body #setOv #setGame>.tog small{display:none} html body #setOv #setGame .rowico{width:28px; height:28px} }

/* ---- profile: who you are on the left, where to go on the right ---- */
html body #profOv .gpanel{display:grid !important; grid-template-columns:minmax(0,1.1fr) minmax(0,1fr); gap:12px; align-items:start !important}
html body #profOv .pcard{grid-column:1; grid-row:1; display:grid !important; grid-template-columns:64px minmax(0,1fr); column-gap:12px; row-gap:2px; padding:12px !important; align-content:start}
html body #profOv .bigav{grid-column:1; grid-row:1 / span 3; width:64px; height:64px; margin:0}
html body #profOv :is(.pname,.ptitle,.pmeta,.pmail,.streak){grid-column:2; text-align:left; margin:0; justify-self:start}
html body #profOv .pname{font-size:18px}
html body #profOv :is(.lvl,.nextrw,.stats,#prestigeBtn){grid-column:1 / -1; margin-top:6px}
html body #profOv .nextrw{white-space:nowrap; overflow:hidden; text-overflow:ellipsis; font-size:11px}
html body #profOv .wallet{display:none !important}
html body #profOv .stats{display:grid !important; grid-template-columns:1fr 1fr; gap:8px}
html body #profOv .stats>div{background:rgba(255,235,205,.04); border-radius:10px; padding:6px 10px; text-align:center}
html body #profOv .mlist{grid-column:2; grid-row:1; display:grid; gap:8px; margin:0}
html body #profOv .mrow{min-height:56px; margin:0; padding:6px 12px !important}

/* ---- edit profile: three even columns ---- */
html body #setOv .gpanel.mprof{display:block !important}
html body #setOv .gpanel.mprof #setProfile{display:grid !important; columns:auto !important; grid-template-columns:minmax(0,1fr) minmax(0,1fr) minmax(0,.8fr); gap:8px 14px; align-items:start; width:100%}
html body #setOv .gpanel.mprof #setProfile>*{grid-column:auto !important; margin:0 !important; min-width:0}
html body #setOv .gpanel.mprof #setProfile>h3{grid-column:1 / -1 !important}
html body #setOv .gpanel.mprof #setProfile #saveProfile{grid-column:1 / -1 !important; max-width:260px; justify-self:start}
html body #setOv .gpanel.mprof #setAccount{margin-top:12px; display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:8px; align-items:center}
html body #setOv .gpanel.mprof #setAccount>h3{grid-column:1 / -1}
html body #setOv .gpanel.mprof #setAccount .ghost{margin:0 !important}

/* ---- friends: fixed left column, the list scrolls by itself ---- */
html body #friendsOv .gpanel:not(#_):not(#_):not(#_):not(#_){display:grid !important; grid-template-columns:minmax(0,1fr) minmax(0,1.25fr) !important; grid-template-rows:minmax(0,1fr) !important; gap:14px; overflow:hidden !important; align-items:stretch !important}
html body #friendsOv .fcol{min-height:0; display:flex; flex-direction:column; gap:8px; grid-row:1 !important}
html body #friendsOv #friendList{flex:1 1 0; min-height:0; overflow-y:auto; overscroll-behavior:none; border:0 !important; background:none !important; padding:0}
html body #friendsOv .codebox{padding:10px 12px !important; display:grid; grid-template-columns:1fr auto; align-items:center; gap:2px 10px}
html body #friendsOv .codebox #shareBtn{grid-row:1 / span 2; grid-column:2; width:auto; padding-inline:14px}
html body #friendsOv .joinrow{display:grid; grid-template-columns:minmax(0,1fr) auto; gap:8px}

/* ---- inbox and history: rows, full width ---- */
html body :is(#inboxOv,#histOv) .gpanel .empty{padding:10px 14px !important; margin:0 0 12px !important; text-align:left; font-size:13px}

/* ---- help: questions as a clean list, contact beside them ---- */
html body #helpOv .gpanel:not(#_):not(#_):not(#_):not(#_){display:grid !important; grid-template-columns:minmax(0,2fr) minmax(0,1fr) !important; gap:0 16px; align-content:start !important}
html body #helpOv .gpanel>h3:first-of-type{grid-column:1 !important; grid-row:1 !important}
html body #helpOv .faq{grid-column:1 !important; grid-row:2 !important; padding:10px 14px !important; margin:0}
html body #helpOv .gpanel>h3:nth-of-type(2){grid-column:2 !important; grid-row:1 !important}
html body #helpOv .gpanel>.note{grid-column:2 !important; grid-row:2 !important; margin:0; line-height:2.1}

/* ---- how to play: an even reading column ---- */
html body .rulesov .gpanel:not(#_):not(#_):not(#_):not(#_){display:block !important; columns:auto !important; column-count:auto !important}

/* ---- collection: small tiles in one sideways strip, nothing moves up and down ---- */
html body #collOv .gpanel:not(#_):not(#_):not(#_):not(#_){overflow:hidden !important}
html body #styleBox{overflow:hidden !important}
html body #styleBox :is(.sgrid,.emogrid){overflow-y:hidden !important; touch-action:pan-x; overscroll-behavior:contain}
html body #styleBox .sgrid{grid-auto-columns:140px !important; gap:10px !important}
html body #styleBox .sopt{padding:8px 6px !important; gap:4px; border:1px solid rgba(214,158,98,.3) !important; border-radius:12px !important; background:rgba(255,235,205,.04) !important; box-shadow:none !important}
html body #styleBox .sopt.on{border-color:#d69e62 !important; background:rgba(214,158,98,.14) !important}
html body #styleBox .sopt b{font-size:13px; line-height:1.2; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; max-width:100%}
html body #styleBox .sopt small{font-size:10.5px !important; padding:2px 10px !important; margin:2px 0 0 !important; letter-spacing:0; max-width:100%; white-space:nowrap; overflow:hidden; text-overflow:ellipsis}
html body #styleBox .sopt.locked small,html body #styleBox .sopt:disabled small{display:none}
html body #styleBox .sopt small::before{content:none !important}
/* only the Frames page is compact */
html body #styleBox section[data-cp="frames"] .sgrid{grid-auto-columns:112px !important}
html body #styleBox section[data-cp="frames"] .sopt>:first-child{max-height:84px}
html body #styleBox section[data-cp="frames"] .sopt b{font-size:12px}
html body #styleBox section[data-cp="frames"] .sopt small{font-size:9.5px !important; padding:1px 8px !important}

/* ---- the home screens show only the Store's icon; coins are in the Store ---- */
html body #hubOv .hstore:not(#_){background:none !important; border:0 !important; border-image:none !important; box-shadow:none !important; padding:0 !important; width:44px; height:44px; min-width:0; display:block}
html body #hubOv .hstore .hsw{display:none !important}
html body #hubOv .hstore .hsi{display:block; width:44px; height:44px; margin:0; border:0 !important; border-radius:12px; background:url(../art/ui/menu-store.webp) center/contain no-repeat !important; box-shadow:none !important}
html body #chOv .gpanel>.wallet{display:none !important}

/* ---- screens with no title: the back button sits at the top right ---- */
html body button#ivClose.ivx.ivx{left:auto !important; right:var(--safeR) !important}   /* (Fix Round 3 item 6) the back buttons of the table, the game page and the hub moved to the left like every other window; only the invite card's own X stays right */
html body #hubOv:not([data-view="main"]) .hubr{margin-right:0}
html body #hubOv:not([data-view="main"]) #meChip{margin-left:46px}
html body .bar .logo{margin-left:46px}
html body .bar .tools{margin-right:0}

/* ---- finding players and waiting: the words start below the back button ---- */
html body #quickOv>.gpanel:not(#_):not(#_){padding-top:calc(var(--barEnd) + 8px) !important}

/* ---- corrections ---- */
html body #setOv #setGame>.rng{flex-direction:row !important; align-items:center; gap:10px}
html body #setOv #setGame>.rng>span{flex:none; gap:6px}
html body #setOv #setGame>.rng input{flex:1 1 0; min-width:0; width:auto !important; margin:0}
html body .gov>.gpanel:not(.home),html body #roundOv>.gpanel,html body #quickOv>.gpanel,html body .ivbox>.ivcard{justify-self:stretch !important; align-self:stretch !important}
html body #profOv .gpanel:not(#_):not(#_):not(#_):not(#_){grid-template-columns:minmax(0,1.1fr) minmax(0,1fr) !important}
html body #profOv .pcard{grid-column:1 !important; grid-row:1 !important}
html body #profOv .mlist{grid-column:2 !important; grid-row:1 !important}

/* ---- home: just your picture, name and level, no pill or ring around them ---- */
html body #hubOv #meChip:not(#_){background:none !important; border:0 !important; border-image:none !important; box-shadow:none !important; padding:0 !important; gap:9px}
html body #hubOv #meChip .av:not([class*="fr-"]){width:44px; height:44px; min-width:44px; border:0 !important; box-shadow:none !important; outline:0}
html body #hubOv #meChip b{font-size:15px; text-shadow:0 1px 4px rgba(0,0,0,.85)}
html body #hubOv #meChip small{font-size:11.5px; color:#f3dfc0; text-shadow:0 1px 3px rgba(0,0,0,.85)}
html body #hubOv #meChip .lvbar{display:none}
html body #profOv .bigav:not([class*="fr-"]){box-shadow:none !important; border:0 !important}

/* ---- profile, in the same plain style as Edit profile ---- */
html body #profOv .gpanel:not(#_):not(#_):not(#_):not(#_){gap:0 28px; align-content:start !important}
html body #profOv .pcard:not(#_),html body #profOv .mlist:not(#_){background:none !important; border:0 !important; border-radius:0 !important; box-shadow:none !important; padding:0 !important; margin:0 !important; align-content:start}
html body #profOv .pcard::before,html body #profOv .mlist::before{display:block; grid-column:1 / -1; font-size:11px; font-weight:800; letter-spacing:.12em; color:#dca36a; margin-bottom:8px}
html body #profOv .pcard::before{content:"PLAYER"}
html body #profOv .mlist::before{content:"ACCOUNT"}
html body #profOv .mlist{gap:0 !important}
html body #profOv .bigav:not(#_){width:60px !important; height:60px !important; min-width:60px; margin:0 !important}
html body #profOv .pcard{grid-template-columns:60px minmax(0,1fr) !important; column-gap:12px; row-gap:1px}
html body #profOv .pname:not(#_){font-family:var(--f-body); font-weight:800; font-size:17px !important; color:#f6e6da}
html body #profOv .pmeta:not(#_),html body #profOv .streak:not(#_){font-size:12px; font-weight:600; color:#d9c2a3}
html body #profOv .lvl:not(#_){margin-top:12px !important; display:grid; grid-template-columns:auto 1fr; gap:3px 10px; align-items:center; font-size:12px}
html body #profOv .lvl .xpbar{height:5px; border-radius:999px; background:rgba(255,235,205,.1); overflow:hidden; border:0; box-shadow:none}
html body #profOv .lvl .xpbar i{background:#d69e62 !important}
html body #profOv .lvl small{grid-column:1 / -1; font-size:11px; color:#c9b296; white-space:normal}
html body #profOv .nextrw:not(#_){margin-top:2px; font-size:11px; color:#c9b296; white-space:normal}
html body #profOv .stats:not(#_){margin-top:12px; gap:0; border-top:1px solid rgba(214,158,98,.22); border-bottom:1px solid rgba(214,158,98,.22)}
html body #profOv .stats>div:not(#_){display:flex !important; align-items:baseline; justify-content:center; gap:6px; background:none !important; border:0 !important; border-radius:0; box-shadow:none !important; padding:8px 4px !important}
html body #profOv .stats>div+div{border-left:1px solid rgba(214,158,98,.22) !important}
html body #profOv .stats .mico{display:none}
html body #profOv .stats b:not(#_){font-size:17px !important; font-family:var(--f-body); font-weight:800; color:#f6e6da}
html body #profOv .stats b.win:not(#_){color:#f6e6da}
html body #profOv .stats span:not(#_){font-size:11px; letter-spacing:.02em; text-transform:none; color:#c9b296}
html body #profOv .mrow:not(#_){grid-template-columns:30px 1fr auto !important; gap:10px; min-height:52px; padding:6px 2px !important; margin:0 !important; background:none !important; border:0 !important; border-bottom:1px solid rgba(214,158,98,.22) !important; border-radius:0 !important; box-shadow:none !important; filter:none !important}
html body #profOv .mrow:last-child:not(#_){border-bottom:0 !important}
html body #profOv .mrow .ico:not(#_){width:30px !important; height:30px !important}
html body #profOv .mrow b:not(#_){font-family:var(--f-body); font-weight:700; font-size:14px !important; color:#f6e6da}
html body #profOv .mrow.danger b:not(#_){color:#f0a08f}
html body #profOv .mrow small:not(#_){font-size:11.5px !important; color:#c9b296}
html body #profOv .mrow em{font-size:18px; color:#c9b296}
/* a player with no photo: a plain round with their first letter */
html body #hubOv #meChip .av:not(.pic):not([class*="fr-"]):not([style*="url("]),html body #profOv .bigav:not(.pic):not([class*="fr-"]):not([style*="url("]){background:#3a281e !important; color:#f0c691}   /* (user) never paint over a player's photo: only the plain initials circle gets this colour */
html body #profOv .pcard::before{grid-row:1}
html body #profOv .bigav:not(#_):not(#_){grid-column:1 !important; grid-row:2 / span 3 !important}
html body #profOv .pname:not(#_){grid-row:2} html body #profOv .pmeta:not(#_){grid-row:3} html body #profOv .streak:not(#_){grid-row:4}
html body #profOv .nextrw:not(#_){text-align:left}

/* ---- the Store is a button in the home bar, beside Friends; no picture in the corner ---- */
html body #hubOv .hubr{display:none !important}
html body #profOv .mlist:not(#_):not(#_){align-self:start !important; padding-top:0 !important; margin-top:0 !important}
html body #profOv .gpanel>*{align-self:start}

/* ---- the user's medals on buttons, in place of emoji ---- */
html body .btnic{width:24px; height:24px; margin-right:6px; vertical-align:-7px; display:inline-block; pointer-events:none}
html body #albumOv .atrade:not(#_){background:none !important; border:0 !important; box-shadow:none !important; animation:none !important; padding:0 !important; width:36px; height:36px; min-height:0 !important; font-size:0 !important}
html body #albumOv .atrade .btnic{width:36px; height:36px; margin:0; vertical-align:top}
html body #storyBookBtn .btnic{width:20px; height:20px; vertical-align:-5px; margin-right:5px}

/* ---- home: your picture and name sit in from the edge, with room for a frame ---- */
html body #hubOv .hubl{padding:10px 0 0 12px}
html body #hubOv #meChip:has(.av[class*="fr-"]){gap:18px}

/* ---- sign in: the back button is in the bar like every other window ---- */
html body #acctOv .gpanel>button.xback.xback.xback.xback{position:fixed !important}

/* ---- profile with a frame: the frame reaches past the picture, so it gets its own space ---- */
html body #profOv .pcard:not(#_):not(#_){grid-template-columns:92px minmax(0,1fr) !important; column-gap:14px}
html body #profOv .bigav:not(#_):not(#_):not(#_){justify-self:center; align-self:center; margin:12px 0 !important}
html body #profOv .pcard::before{margin-bottom:6px}
html body #profOv :is(.pname,.ptitle,.pmeta,.pmail,.streak):not(#_):not(#_){margin:1px 0 !important; align-self:center}
html body #profOv .pname:not(#_):not(#_){margin-top:6px !important}
html body #profOv .lvl:not(#_):not(#_){margin-top:16px !important}

/* ---- the home bar: the icons stand on their own, no pill around them ---- */
html body #hubOv .hubnav:not(#_){background:none !important; border:0 !important; border-image:none !important; box-shadow:none !important; backdrop-filter:none !important; -webkit-backdrop-filter:none !important; padding:0 !important}
html body #hubOv .hubnav span{text-shadow:0 1px 4px rgba(0,0,0,.9)}

/* ---- collection tiles and pictures the same size as the Store's; only Frames stays compact ---- */
html body #styleBox .sgrid{grid-auto-columns:136px !important}
html body #styleBox .sopt{min-height:168px; align-content:center}
html body #styleBox .sopt .dthumb{width:58px !important; height:81px !important}
html body #styleBox .sopt .tthumb{width:112px !important; height:62px !important}
html body #styleBox .sopt.locked{opacity:.8 !important}
html body #styleBox section[data-cp="frames"] .sgrid{grid-auto-columns:112px !important}
html body #styleBox section[data-cp="frames"] .sopt{min-height:0}
html body #styleBox .sopt.locked:not(#_){opacity:1 !important; filter:none !important}
html body #styleBox .sopt.locked:not(#_)>*{filter:none !important; opacity:1 !important}

/* ---- Magic table: nothing moves; spells and the button on the left, a chosen spell's words scroll by themselves on the right ---- */
html body #setupOv.mgsetup .gpanel:not(#_):not(#_):not(#_):not(#_){display:grid !important; grid-template-columns:minmax(0,1fr) minmax(0,1.2fr) !important; grid-template-rows:auto auto auto minmax(0,1fr) !important; column-gap:14px; overflow:hidden !important; align-content:stretch !important}
html body #setupOv.mgsetup :is(#magicWrap,#spellPick:not([hidden])){display:contents !important}
html body #setupOv.mgsetup #magicWrap>h3{grid-column:1; grid-row:1; margin-top:0 !important}
html body #setupOv.mgsetup .sppick{grid-column:1; grid-row:2; min-width:0}
html body #setupOv.mgsetup #dealBtn:not(#_){grid-column:1 !important; grid-row:3; position:static; width:100% !important; justify-self:stretch; margin:10px 0 0 !important; box-shadow:none}
html body #setupOv.mgsetup #setupErr{grid-column:1; grid-row:4}
html body #setupOv.mgsetup #spellInfo{grid-column:2; grid-row:1 / -1; min-height:0; height:100%; box-sizing:border-box; overflow-y:auto; overscroll-behavior:none; scrollbar-width:none; margin:0}
html body #setupOv.mgsetup #spellInfo::-webkit-scrollbar{display:none}

/* ---- Album: the chosen card and its name stay still, only the words under them scroll ---- */

/* ---- the pack opening (js/album.js packOpen): all moved by the graphics chip ---- */
html body .arev{--lt:rgba(220,210,180,.5)}
html body .arev.r-U{--lt:rgba(111,207,124,.6)} html body .arev.r-R{--lt:rgba(74,163,255,.65)} html body .arev.r-E{--lt:rgba(180,108,255,.7)}
html body .arev.r-L{--lt:rgba(255,205,100,.75)} html body .arev.r-M{--lt:rgba(150,120,255,.8)}
/* (15 Nov 2026) the 3D pack opening (js/album.js packOpen): the stage is 512 x 768; the pack is 75.7% wide; the card back stands where the card will be */
.arev-stage.pk3on{perspective:1000px; perspective-origin:50% 40%}
.pk3,.pk3-card,.pk3-burst,.pk3-burstw,.pk3-sp{position:absolute; pointer-events:none}
.pk3{left:12.15%; top:8%; width:75.7%; height:84%; z-index:4; transform-style:preserve-3d; will-change:transform,opacity; opacity:0}
.pk3 img{position:absolute; display:block; -webkit-user-drag:none; user-select:none}
.pk3-closed{left:0; top:0; width:100%; height:100%}
.pk3-open{left:9.6%; top:0; width:80.8%; height:100%; visibility:hidden}
.pk3-strip{left:-1%; top:-4%; width:102%; visibility:hidden; will-change:transform,opacity}
.pk3-card{left:21.9%; top:20.7%; width:56.3%; height:57.8%; z-index:3; visibility:hidden; will-change:transform,opacity; filter:drop-shadow(0 8px 14px rgba(0,0,0,.5))}
.pk3-burst{left:-30%; top:-12%; width:160%; aspect-ratio:1; z-index:1; opacity:0; background:var(--bc,#ffd77a); -webkit-mask:var(--bm) center/contain no-repeat; mask:var(--bm) center/contain no-repeat; will-change:transform,opacity}
.pk3-burstw{left:-30%; top:-12%; width:160%; aspect-ratio:1; z-index:2; opacity:0; will-change:transform,opacity}
.pk3-sp{inset:0; z-index:6; overflow:visible}
.pk3-p{position:absolute; display:block; background-repeat:no-repeat; will-change:transform,opacity; pointer-events:none}
.arev{--bc:#ffe9a8} .arev.r-U{--bc:#7fe08f} .arev.r-R{--bc:#5aaeff} .arev.r-E{--bc:#c27dff} .arev.r-L{--bc:#ffd06a} .arev.r-M{--bc:#ff9a7a}
@media (prefers-reduced-motion:reduce){ .pk3-burst,.pk3-burstw,.pk3-sp{display:none} }

/* ---- the shortest screens (iPhone Display Zoom): the setup window fits without scrolling ---- */
@media (max-height:335px){
  html body #setupOv .opt span{display:none}
  html body #setupOv .opt{min-height:32px !important; padding-top:3px !important; padding-bottom:3px !important}
  html body #setupOv .gpanel h3{margin:4px 0 3px !important}
  html body #setupOv select{min-height:34px !important}
  html body #setupOv #dealBtn{min-height:38px; margin-top:6px !important}
  html body #setupOv #slots{gap:4px}
}
/* ---- an upright tablet: the turn-sideways message is big enough to read ---- */
@media (orientation:portrait) and (min-width:600px){
  html body .rotate b{font-size:30px} html body .rotate span{font-size:18px} html body .rotate .phone-ico{transform:scale(1.8); margin-bottom:28px}
}
/* ---- battery and heat: the home cards and the story map move for a while after they appear, then rest ---- */
html body #hubOv .gcard{animation-iteration-count:4}
html body #hubOv .gcard .gback::after{animation-iteration-count:3}
html body .stglint{animation-iteration-count:6}
html body .stgod{animation-iteration-count:6}
html body .stsail{animation-iteration-count:1}
html body .stsail img,html body .stsail>*{animation-iteration-count:8}
html body .stcloud{animation-iteration-count:1}
html body :is(.stdhoni img,.svpin,.svboat img){animation-iteration-count:12}
html body #setupOv :is(#slotsWrap,#slots,.slot){min-width:0; max-width:100%; box-sizing:border-box}
html body #setupOv .slot select{min-width:0; max-width:100%; flex:1 1 0}
@media (max-height:335px){ html body #setupOv select{min-height:38px !important} }
html body :is(.stpin.here img,.stsail img,.stsail>*,.stdeco){animation-iteration-count:12 !important}
/* ---- the story map on a squarer screen (tablets): map and island panel share the width ---- */
html body .stbody{grid-template-columns:minmax(0,auto) minmax(220px,1fr) !important}
@media (max-aspect-ratio:3/2){ html body .stmap{max-width:56vw !important} }

/* ---- results: the round's title sits on the user's gold ribbon (a finished match keeps its own You win / You lose pictures) ---- */
html body #roundPanel h2:first-of-type:not(.endtop ~ h2){display:grid; place-items:center; box-sizing:border-box; width:min(440px,100%); aspect-ratio:1100/363; margin:0 auto 6px !important;
  padding:0 21% 2% !important; background:url(../art/ui/results-ribbon.webp) center/100% 100% no-repeat; color:#f6dca8 !important; font-size:clamp(14px,2.4vw,19px) !important; line-height:1.15 !important;
  text-align:center !important; text-shadow:0 2px 4px rgba(0,0,0,.8) !important; -webkit-text-fill-color:#f6dca8; white-space:normal}
html body #roundPanel .rleft h2:first-of-type:not(.endtop ~ h2){margin-left:0 !important}
html body #roundPanel>h2:first-of-type:not(.endtop ~ h2),html body #roundPanel .rleft>h2:first-of-type:not(.endtop ~ h2){background:url(../art/ui/results-ribbon.webp) center/100% 100% no-repeat !important; border:0 !important; box-shadow:none !important; border-image:none !important; display:grid !important; width:min(440px,100%) !important; margin-left:auto !important; margin-right:auto !important}
html body #roundPanel .rleft>h2:first-of-type:not(.endtop ~ h2){margin-left:0 !important}

/* ===== Collection preview (8 Nov 2026, user approved the mock-up): big preview left, your items listed right ===== */
html body #collOv .gpanel:not(#_):not(#_){grid-template-rows:auto auto minmax(0,1fr) auto auto; align-content:stretch}
html body #collOv #collTabs{grid-row:2}
html body #collWrap{grid-row:3; display:grid; grid-template-columns:minmax(0,1.1fr) minmax(0,1fr); gap:12px; min-height:0; height:100%}
html body #collOv #collErr{grid-row:4} html body #collOv #collToShop{grid-row:5}
/* (14 Nov 2026, user) the space between the tab bar and what is under each tab = the Store's (tab bar -> first box 9px, was 5px) */
html body #collOv #collWrap{margin-top:4px; height:calc(100% - 4px)}
html body #collWrap.noprev{grid-template-columns:minmax(0,1fr)}
html body #collWrap.noprev #collPrev{display:none}
html body #collPrev{display:grid; grid-template-rows:auto minmax(0,1fr) auto auto auto; gap:4px; min-height:0; padding:8px 12px 10px; border-radius:14px;
  background:rgba(0,0,0,.32); border:1px solid rgba(176,122,72,.45); text-align:center; overflow:hidden}
html body #collPrev .cplab{justify-self:start; letter-spacing:.14em; text-transform:uppercase; font-size:10px; color:#d9a46a}
html body #collPrev .cpstage{display:grid; place-items:center; min-height:0; overflow:hidden}
html body #collPrev .cpstage .ivtable{width:auto !important; height:100% !important; max-width:100%; max-height:100%; aspect-ratio:2.16/1; border-radius:14px; box-shadow:0 10px 24px rgba(0,0,0,.6)}
html body #collPrev .cpstage>*{transform-origin:center; flex:none}
html body #collPrev .cpname{display:flex; gap:8px; justify-content:center; align-items:center; min-width:0}
html body #collPrev .cpname b{font-size:17px; color:#f3e6d4; white-space:nowrap; overflow:hidden; text-overflow:ellipsis}
html body #collPrev .cpname .ivtag{position:static; margin:0; font-size:10px}
html body #collPrev .cphow{margin:0; font-size:12px; color:#cdb79a; line-height:1.3}
html body #collPrev .cpacts{display:flex; gap:8px; justify-content:center; flex-wrap:wrap}
html body #collPrev .cpacts .gbtn{padding:6px 18px !important; font-size:13px !important; min-height:0 !important}
/* the list: one item per row, scrolls up and down */
html body #collWrap:not(.noprev) #styleBox{min-height:0; height:100%; overflow:hidden !important}
html body #collWrap:not(.noprev) #styleBox section:not([hidden]){height:100%}
html body #collWrap:not(.noprev) #styleBox .sgrid:not(#_){display:grid; grid-auto-flow:row !important; grid-template-columns:minmax(0,1fr) !important; grid-auto-columns:auto !important;
  gap:6px !important; grid-auto-rows:calc((100% - 12px) / 3) !important;   /* (16 Nov 2026, user) exactly THREE entries fill the height of the preview rectangle on the left: same top line, same bottom line */ grid-template-rows:none !important; height:100%; box-sizing:border-box;   /* (16 Nov 2026, user) the list was 10px taller than its box (padding), so the last entry's bottom line was cut off */ overflow-x:hidden !important; overflow-y:auto !important; touch-action:pan-y; padding:0 !important; -webkit-mask:none; mask:none; scroll-snap-type:none; align-content:start}
html body #collWrap:not(.noprev) #styleBox .sopt:not(#_){display:grid !important; grid-template-columns:72px minmax(0,1fr); grid-template-rows:auto auto; align-items:center; justify-items:start; column-gap:10px !important; row-gap:3px !important;
  min-height:0 !important; padding:6px 10px !important; text-align:left; border-width:1px !important}
html body #collWrap:not(.noprev) #styleBox .sopt::after{content:none !important}
html body #collWrap:not(.noprev) #styleBox .sopt>:first-child{grid-row:1 / span 2; width:72px !important; height:44px !important; max-height:none !important; margin:0 !important; justify-self:center; object-fit:contain}
html body #collWrap:not(.noprev) #styleBox .sopt .tthumb{width:72px !important; height:44px !important; border-radius:6px}
html body #collWrap:not(.noprev) #styleBox .sopt .dthumb{width:31px !important; height:44px !important}
html body #collWrap:not(.noprev) #styleBox .sopt .fthumb{width:44px !important; height:44px !important; display:grid; place-items:center}
html body #collWrap:not(.noprev) #styleBox .sopt .fthumb .av{width:34px !important; height:34px !important; font-size:13px}
html body #collWrap:not(.noprev) #styleBox .sopt .cthumb{font-size:28px; width:44px !important; display:grid; place-items:center}
html body #collWrap:not(.noprev) #styleBox .sopt .slthumb img{width:44px; height:44px; object-fit:contain}
html body #collWrap:not(.noprev) #styleBox .sopt em{display:none}
html body #collWrap:not(.noprev) #styleBox .sopt b{font-size:14px; max-width:100%; align-self:end}
html body #collWrap:not(.noprev) #styleBox .sopt small{align-self:start}
html body #collWrap:not(.noprev) #styleBox .sopt small{display:inline-block !important; margin:0 !important; padding:2px 9px !important; border-radius:999px; font-size:10.5px !important;
  background:rgba(79,214,156,.16); color:#4fd69c; max-width:100% !important; overflow:hidden; text-overflow:ellipsis; white-space:nowrap}
html body #collWrap:not(.noprev) #styleBox .sopt.on small{background:rgba(214,158,98,.22); color:#f0c08a}
html body #collWrap:not(.noprev) #styleBox .sopt.locked small{background:rgba(255,255,255,.07); color:#cdb79a}
html body #collWrap:not(.noprev) #styleBox .sopt.locked>:first-child{opacity:.6}
html body #collWrap:not(.noprev) #styleBox .sopt.sel{border-color:#ecc48f !important; box-shadow:0 0 0 1px #ecc48f inset !important}
@media (max-height:340px){ html body #collPrev{padding:5px 10px 6px} html body #collPrev .cphow:not(#_){display:none} }
/* short screens (phones held sideways): picture on the left of the preview, name and button beside it */
@media (max-height:520px){
  html body #collPrev{grid-template-columns:minmax(0,1.25fr) minmax(0,1fr); grid-template-rows:auto minmax(0,1fr) auto auto minmax(0,1fr); column-gap:10px; text-align:left}
  html body #collPrev .cplab{grid-column:1 / -1}
  html body #collPrev .cpstage{grid-column:1; grid-row:2 / span 4}
  html body #collPrev .cpname{grid-column:2; grid-row:2; align-self:end; flex-direction:column; align-items:flex-start; gap:4px}
  html body #collPrev .cphow{grid-column:2; grid-row:3; display:block}
  html body #collPrev .cpacts{grid-column:2; grid-row:4; justify-content:flex-start; align-self:start}
  html body #collPrev .cpname b{font-size:15px; white-space:normal}
}

/* ===== Game menu (8 Nov 2026, user: improve the screen you get when you open a game) =====
   Thaas's own take: the deck fan + name + one short line on the left; big tiles in a 2x2 grid on the right (medallion icon on top,
   title, one line), the random-table tile stays caramel; with 3 choices it spans the full width. Rows under the tiles: rejoin / leave /
   back / end, then How to play. */
html body #homeOv .hhero h2{position:relative; padding-bottom:8px}
html body #homeOv .hhero h2::after{content:""; position:absolute; left:50%; bottom:0; translate:-50% 0; width:170px; height:1.5px;
  background:linear-gradient(90deg,transparent,#c08850,transparent)}
html body #homeOv .hactions:not(#_){display:grid !important; grid-template-columns:repeat(2,minmax(0,1fr)) !important; gap:10px !important; align-content:center}
html body #homeOv .hactions:not(#_)>*{grid-column:1 / -1}
html body #homeOv .hactions:not(#_)>.hbtn{grid-column:auto; display:grid !important; grid-template-columns:minmax(0,1fr) !important; grid-template-rows:auto auto;
  align-content:start; justify-items:start; gap:8px !important; min-height:112px !important; padding:14px 34px 14px 16px !important; text-align:left; border-radius:18px !important}
html body #homeOv .hactions:not(#_)>[hidden]{display:none !important}
/* the smaller rows sit two to a line (Back | End, Rejoin | How to play); a lone one at the end takes the full width */
html body #homeOv .hactions:not(#_)>:is(.ghost,.hlink){grid-column:auto; width:auto !important; margin:0 !important; min-height:40px; justify-content:center; justify-self:stretch}
html body #homeOv .hactions:not(#_)>:is(.ghost,.hlink):last-child:nth-child(odd of :is(.ghost,.hlink):not([hidden])){grid-column:1 / -1}
html body #homeOv .hactions:not(#_):not(:has(#homeMagic:not([hidden]))) #homeQuick{grid-column:1 / -1; min-height:96px !important}
html body #homeOv .hactions:not(#_)>.hbtn i{width:46px !important; height:46px !important}
html body #homeOv .hactions:not(#_)>.hbtn span{display:grid; gap:3px; min-width:0}
html body #homeOv .hactions:not(#_)>.hbtn b{font-size:17px; line-height:1.15; white-space:normal}
html body #homeOv .hactions:not(#_)>.hbtn small{display:block !important; font-size:12px; line-height:1.25}
html body #homeOv .hactions:not(#_)>.hbtn::after{top:16px !important; bottom:auto !important; right:12px !important; translate:none !important}
@media (max-height:430px){
  html body #homeOv .hactions:not(#_){gap:8px !important}
  html body #homeOv .hactions:not(#_)>.hbtn{min-height:0 !important; padding:10px 30px 10px 12px !important; gap:5px !important}
  html body #homeOv .hactions:not(#_)>.hbtn i{width:36px !important; height:36px !important}
  html body #homeOv .hactions:not(#_)>.hbtn b{font-size:15px}
  html body #homeOv .hactions:not(#_)>.hbtn small{font-size:11px}
}
@media (max-height:330px){
  html body #homeOv .hactions:not(#_)>.hbtn{grid-template-columns:auto minmax(0,1fr) !important; grid-template-rows:auto; align-items:center; padding:8px 28px 8px 10px !important}
  html body #homeOv .hactions:not(#_)>.hbtn small{display:none !important}
  html body #homeOv .hactions:not(#_):not(:has(#homeMagic:not([hidden]))) #homeQuick,html body #homeOv .hactions:not(#_)>.hbtn{min-height:52px !important; padding-right:10px !important}
  html body #homeOv .hactions:not(#_)>.hbtn::after{display:none !important}
  html body #homeOv .hactions:not(#_)>.hbtn b{font-size:14px}
}

/* (8 Nov 2026, user: "professional and neat") game menu tiles: icon left, title + one line, small arrow right; equal heights */
html body #homeOv .panel.home:not(#_){align-items:center; grid-template-columns:minmax(0,.8fr) minmax(0,1.3fr) !important; column-gap:22px !important}
html body #homeOv .hactions:not(#_){grid-auto-rows:auto; padding-top:8px}
html body #homeOv .hactions:not(#_)>.hbtn{grid-template-columns:auto minmax(0,1fr) !important; grid-template-rows:auto !important; align-items:center !important; align-content:center !important;
  column-gap:12px !important; min-height:92px !important; padding:12px 30px 12px 14px !important}
html body #homeOv .hactions:not(#_):not(:has(#homeMagic:not([hidden]))) #homeQuick{min-height:84px !important}
html body #homeOv .hactions:not(#_)>.hbtn i{width:42px !important; height:42px !important}
html body #homeOv .hactions:not(#_)>.hbtn b{font-size:17px; white-space:normal; line-height:1.15}
html body #homeOv .hactions:not(#_)>.hbtn small{white-space:normal; display:-webkit-box !important; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; opacity:.85}
html body #homeOv .hactions:not(#_)>.hbtn::after{top:50% !important; translate:0 -50% !important; right:10px !important; width:auto !important; height:auto !important;
  border:0 !important; background:none !important; box-shadow:none !important; font-size:22px !important; line-height:1 !important; opacity:.75}
html body #homeOv .hactions:not(#_)>:is(.ghost,.hlink){min-height:40px !important; padding-top:6px !important; padding-bottom:6px !important; font-size:14px !important}
html body #homeOv .hhero .hfan{margin-bottom:4px}
@media (max-height:430px){
  html body #homeOv .hactions:not(#_)>.hbtn,html body #homeOv .hactions:not(#_):not(:has(#homeMagic:not([hidden]))) #homeQuick{min-height:66px !important; padding:8px 26px 8px 10px !important}
  html body #homeOv .hactions:not(#_)>.hbtn i{width:34px !important; height:34px !important}
  html body #homeOv .hactions:not(#_)>.hbtn b{font-size:15px}
}
@media (max-height:330px){
  html body #homeOv .hactions:not(#_)>.hbtn,html body #homeOv .hactions:not(#_):not(:has(#homeMagic:not([hidden]))) #homeQuick{min-height:50px !important}
  html body #homeOv .hactions:not(#_)>:is(.ghost,.hlink){min-height:34px !important}
}

/* (8 Nov 2026) Sort: a small pill on the top edge of the hand, in a row with the Groups / Dead counters (placeSortBtn) */
@media (orientation:landscape) and (max-height:540px){
  html body #groupBtn{position:absolute; z-index:61; width:auto !important; height:28px; min-height:0 !important; padding:0 12px !important;
    font-size:12px; line-height:1; border-radius:999px; white-space:nowrap; grid-column:auto !important} }
/* laptops: Sort stays in the button row; the counters go to the right end of the hand, clear of your picture */
@media not ((orientation:landscape) and (max-height:540px)){ html body .deadpill{left:auto; right:6px} }

/* (8 Nov 2026, user: "make it more lively, flip the card") the game menu's three cards fan out when it opens, then take turns turning over */
html body #homeOv .hfan span{background:none; box-shadow:none; animation:hfIn .7s cubic-bezier(.2,.8,.3,1) both}
html body #homeOv .hfan span:nth-child(2){animation-delay:.08s}
html body #homeOv .hfan span:nth-child(3){animation-delay:.16s}
.hfcard{position:absolute; inset:0; display:block; transform-style:preserve-3d; animation:hfFlip 12s ease-in-out 1.4s infinite}
.hfan span:nth-child(2) .hfcard{animation-delay:5.4s}
.hfan span:nth-child(3) .hfcard{animation-delay:9.4s}
.hfback,.hfface{position:absolute; inset:0; display:block; -webkit-backface-visibility:hidden; backface-visibility:hidden; border-radius:9px; background:#123 center/100% 100% no-repeat; box-shadow:0 10px 24px rgba(0,0,0,.5), 0 0 0 1px rgba(0,0,0,.4)}
.hfface{transform:rotateY(180deg)}
.hfface .card{--w:var(--hfw); position:absolute; left:0; top:0; margin:0; box-shadow:none}
@keyframes hfIn{from{transform:translateY(12px) scale(.92); opacity:0}}
@keyframes hfFlip{
  0%{transform:perspective(520px) translateY(0) rotateY(0deg)}
  3.5%{transform:perspective(520px) translateY(-7px) rotateY(90deg)}
  7%{transform:perspective(520px) translateY(0) rotateY(180deg)}
  27%{transform:perspective(520px) translateY(0) rotateY(180deg)}
  30.5%{transform:perspective(520px) translateY(-7px) rotateY(270deg)}
  34%,100%{transform:perspective(520px) translateY(0) rotateY(360deg)}
}
@media (prefers-reduced-motion:reduce){ html body #homeOv .hfan span,.hfcard{animation:none} }

/* (8 Nov 2026, user: "too crowded") the mode buttons: icon and name only, room between them, one plain edge */
html body #homeOv .hactions.hactions:not(#_){gap:14px !important}
html body #homeOv .hactions.hactions:not(#_)>.hbtn,
html body #homeOv .hactions.hactions:not(#_):not(:has(#homeMagic:not([hidden]))) #homeQuick{min-height:74px !important; padding:10px 16px !important; column-gap:14px !important; border-width:1.5px !important; box-shadow:0 3px 0 rgba(0,0,0,.35) !important}
html body #homeOv .hactions.hactions:not(#_)>.hbtn::after{display:none !important}
html body #homeOv .hactions.hactions:not(#_)>.hbtn b{font-size:17px; white-space:nowrap}
html body #homeOv .hactions.hactions:not(#_)>.hlink{min-height:34px !important; background:none !important; border:0 !important; border-image:none !important; box-shadow:none !important}
@media (max-height:370px){
  html body #homeOv .hactions.hactions:not(#_){gap:10px !important}
  html body #homeOv .hactions.hactions:not(#_)>.hbtn,
  html body #homeOv .hactions.hactions:not(#_):not(:has(#homeMagic:not([hidden]))) #homeQuick{min-height:60px !important; padding:8px 12px !important; column-gap:10px !important}
  html body #homeOv .hactions.hactions:not(#_)>.hbtn b{font-size:15px}
}
@media (max-width:720px){
  html body #homeOv .hactions.hactions:not(#_)>.hbtn,
  html body #homeOv .hactions.hactions:not(#_):not(:has(#homeMagic:not([hidden]))) #homeQuick{padding:8px 10px !important; column-gap:8px !important}
  html body #homeOv .hactions.hactions:not(#_)>.hbtn i{width:32px !important; height:32px !important}
  html body #homeOv .hactions.hactions:not(#_)>.hbtn b{font-size:14.5px; white-space:normal; line-height:1.15}
}

/* (8 Nov 2026, user) the "finding a table" window: the same velvet as the other windows, keeping its own layout */
html body #quickOv.gov:not(#_):not([hidden]){background:var(--shellBg) url(../art/ui/cloth-green.webp) center/cover !important}

/* (9 Nov 2026, user) the rich pale edge of the home and game cards, on the Achievements and League choices and on the game menu's buttons */
html body #hubOv .hubopts .hoset button:not(#_){border:1.5px solid rgba(243,234,214,.6) !important; border-image:none !important; border-radius:14px !important; 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,.55) !important}
html body #homeOv .hactions.hactions:not(#_)>.hbtn,
html body #homeOv .hactions.hactions:not(#_):not(:has(#homeMagic:not([hidden]))) #homeQuick{border:1.5px solid rgba(243,234,214,.6) !important; border-image:none !important; border-radius:14px !important; box-shadow:inset 0 0 0 1px rgba(0,0,0,.35), 0 0 0 1px rgba(0,0,0,.4), 0 8px 18px rgba(0,0,0,.5) !important}

/* (9 Nov 2026, user) the three animated cards on each game's menu: the same pale edge as the home cards, no glow (user: the glow looked worse) */
.hfback,.hfface{box-sizing:border-box; border:3px solid #f3ead6; overflow:hidden; box-shadow:0 10px 24px rgba(0,0,0,.5), 0 0 0 1px rgba(0,0,0,.4)}
.hfface{background:#fffdf7}   /* (user) no dark gap between the card and its white edge */
html body .hfface .card{width:100%; height:100%; border:0; border-radius:0; box-shadow:none}

/* (9 Nov 2026, user) the spell description: a bit wider, and set compactly on phones so every spell's text fits without scrolling */
html body #setupOv.mgsetup #dealBtn:not(#_){width:calc(45% - 8px)}
@media (max-height:440px){
  html body #setupOv.mgsetup #spellInfo{padding:6px 10px; font-size:11px; line-height:1.25}
  #spellInfo .spi-head .spic{width:24px; height:24px} #spellInfo .spi-head b{font-size:13px}
  #spellInfo .spi-demo{margin:3px 0; padding:3px 4px; zoom:.78}
  #spellInfo p{margin:2px 0} #spellInfo ul{margin:2px 0; padding-left:13px; font-size:10.5px}
}
/* (9 Nov 2026, user) Story: the same soft pale edge as Collection and League */
html body .stpanel:not(#_){border:1.5px solid rgba(243,234,214,.6)}
@media (max-height:440px) and (max-width:600px){ #spellInfo .spi-demo{zoom:.6} html body #setupOv.mgsetup #spellInfo{font-size:10.5px} #spellInfo ul{font-size:10px; margin:0} #spellInfo li{margin:0} #spellInfo .spi-demo{zoom:.5; margin:1px 0} }

/* (9 Nov 2026, user) the painted titles: the Thaas logo on the loading and home screens, and each game's name on its menu */
html body #homeOv .hhero h2 .htitleimg{display:block; height:clamp(44px, 15vh, 72px); width:auto; max-width:min(210px, 26vw); object-fit:contain; margin:0 auto}
html body .hubbar .brand .brandimg{display:block; height:clamp(30px, 10vh, 44px); width:auto; margin:0 auto}
.blogoart{position:relative; display:block; line-height:0}
.blogoart img{display:block; height:min(120px, 24vh); width:auto}
.blogoart i{position:absolute; inset:0; -webkit-mask:url(../art/ui/title-thaas.webp) center/100% 100% no-repeat; mask:url(../art/ui/title-thaas.webp) center/100% 100% no-repeat;
  background:linear-gradient(112deg, rgba(255,255,255,0) 40%, rgba(255,246,220,.6) 50%, rgba(255,255,255,0) 60%) 130% 0/260% 100% no-repeat; animation:blogoShine 3.4s ease-in-out .9s infinite}
@keyframes blogoShine{0%{background-position:130% 0} 55%,100%{background-position:-40% 0}}
@media (prefers-reduced-motion:reduce){ .blogoart i{animation:none; display:none} }
/* (9 Nov 2026, user) the loading fan keeps its card fronts, with one card showing its back */
html body .boot .blogo .lfan.l3d i:nth-child(7){background:#123 url(../art/decks/turtle.webp) center/cover !important}

/* Step 5 (14 Nov 2026): Collection - checkmark on the item in use (same corner as the lock), no empty description pill */
html body #styleBox .sopt{position:relative}
html body #styleBox .sopt .eqchk{position:absolute; top:6px; right:8px; width:20px; height:20px; border-radius:50%; background:#4fd69c; color:#06281c; font:700 13px/20px system-ui,sans-serif; font-style:normal; text-align:center; z-index:2; pointer-events:none; box-shadow:0 1px 4px rgba(0,0,0,.4)}
html body #styleBox .sopt small:empty,html body #collWrap:not(.noprev) #styleBox .sopt small:empty{display:none !important}
html body #collPrev{cursor:pointer}
html body #collPrev .cpacts,html body #collPrev .cpacts *{cursor:auto}
html body #collWrap:not(.noprev) #styleBox .sopt:not(.locked):not(#_) small{background:none !important; border:0 !important; box-shadow:none !important; text-decoration:none !important; color:#d9c3a3 !important; padding:0 2px !important; border-radius:0; font-size:11px !important}


