/* ======================= THE HOME SCREEN (27 Oct 2026) =======================
   User: "I don't like the home design … do what is best". The picture comes first: the games stand as a fan of real
   cards (each its own deck back), Story is one banner with the Ghoul's graveyard, Achievements / Collection / Challenges
   are three small medallions under it, and the bottom bar is plain icons. No carved frames, no picture buttons. */

html body #hubOv .hubmid{display:grid; grid-template-columns:minmax(0,1fr) auto minmax(0,1fr); align-items:center; gap:14px; min-height:0}
html body #hubOv #hubMsg{grid-column:1/-1; margin:0; min-height:0}

/* left: the Story banner and the three medallions */
.hside{justify-self:center; display:grid; gap:10px; justify-items:center; width:min(250px,100%)}
.hstory{position:relative; width:100%; aspect-ratio:16/10; padding:0; border-radius:14px; overflow:hidden; cursor:pointer; text-align:left; color:#f3ead6;
  border:1.5px solid rgba(240,192,138,.6); background:#08060a; box-shadow:0 10px 24px rgba(0,0,0,.55), inset 0 0 0 1px rgba(0,0,0,.6);
  transition:transform .25s ease, box-shadow .25s ease}
.hsart{position:absolute; inset:0; background:url(../art/story/ghoul-grave.webp) 50% 22%/cover no-repeat; transition:transform 6s ease-out}
.hstory::after{content:""; position:absolute; inset:0; background:linear-gradient(180deg, rgba(0,0,0,0) 30%, rgba(8,4,4,.88) 100%)}
.hstxt{position:absolute; left:12px; right:10px; bottom:8px; z-index:1; display:grid; gap:1px}
.hstxt small{font-size:10px; font-weight:800; letter-spacing:.14em; text-transform:uppercase; color:#f0c08a}
.hstxt b{font-family:var(--f-display); font-weight:400; font-size:22px; line-height:1.1; color:#fff3e8; text-shadow:0 2px 6px rgba(0,0,0,.8)}
.hstxt em{font-style:normal; font-size:11.5px; color:#e3c9a8}
.hstory:hover,.hstory:focus-visible{transform:translateY(-3px); box-shadow:0 14px 28px rgba(0,0,0,.6), 0 0 0 1px rgba(240,192,138,.8)}
.hstory:hover .hsart{transform:scale(1.06)}
.hstory:active{transform:scale(.98)}

.hextra{display:flex; justify-content:center; gap:2px; width:100%}
.hextra .hx{display:grid; justify-items:center; gap:3px; flex:1 1 auto; min-width:0; padding:4px 2px; background:none; border:0; color:#f3ead6; cursor:pointer; border-radius:12px}
.hextra .hx .ficon,.hextra .hx>svg{width:40px; height:40px; filter:drop-shadow(0 3px 5px rgba(0,0,0,.6)); transition:transform .25s cubic-bezier(.2,1.4,.4,1)}
.hextra .hx span{display:block; min-width:0; justify-self:stretch; text-align:center}
.hextra .hx b{display:block; font-size:10.5px; letter-spacing:-.01em; font-weight:800; text-shadow:0 1px 3px #000, 0 0 8px rgba(0,0,0,.8); white-space:nowrap; overflow:hidden; text-overflow:ellipsis}
.hextra .hx small{display:none}
.hextra .hx:hover .ficon,.hextra .hx:focus-visible .ficon{transform:translateY(-3px) scale(1.08)}
.hextra .hx:active .ficon{transform:scale(.94)}

/* middle: the games, a fan of standing cards */
html body #hubOv .games{display:flex; align-items:flex-end; justify-content:center; gap:0; padding:16px 18px 6px; grid-template-columns:none}
.gcard{--cw:clamp(78px, 26vh, 132px); position:relative; flex:none; width:var(--cw); aspect-ratio:5/7; padding:0; margin:0 calc(var(--cw) * -.06); border:0; background:none; cursor:pointer;
  transform-origin:50% 120%; transform:translateY(calc(var(--a) * var(--a) * 7px)) rotate(calc(var(--i) * 7deg));
  transition:transform .3s cubic-bezier(.2,1.3,.4,1), filter .3s; filter:drop-shadow(0 10px 14px rgba(0,0,0,.55))}
.gcard .gback{position:absolute; inset:0; border-radius:calc(var(--cw) * .08); background-position:center; background-size:cover; background-repeat:no-repeat;
  border:3px solid #f3ead6; box-shadow:inset 0 0 0 1px rgba(0,0,0,.35), 0 0 0 1px rgba(0,0,0,.4); transform:none}
.gname{position:absolute; left:3px; right:3px; bottom:3px; z-index:1; display:grid; justify-items:center; padding:14px 4px 6px; border-radius:0 0 calc(var(--cw) * .07) calc(var(--cw) * .07);
  background:linear-gradient(180deg, rgba(12,8,6,0), rgba(12,8,6,.82) 45%, rgba(12,8,6,.92)); pointer-events:none}
.gname b{font-family:var(--f-display); font-weight:400; font-size:calc(var(--cw) * .19); line-height:1; color:#f0c08a; text-shadow:0 2px 0 #2e1c0e, 0 3px 6px rgba(0,0,0,.8)}
.gname i{font-style:normal; font-family:"Noto Sans Thaana",sans-serif; font-weight:800; font-size:calc(var(--cw) * .125); line-height:1.3; color:#f3dcbc; margin-top:1px; text-shadow:0 1px 3px #000}
.gcard.ready:hover,.gcard.ready:focus-visible{z-index:5; transform:translateY(-16px) rotate(0deg) scale(1.05); filter:drop-shadow(0 16px 18px rgba(0,0,0,.6)) brightness(1.06)}
.gcard.ready:active{transform:translateY(-10px) rotate(0deg) scale(1)}
.gcard.soon{filter:grayscale(.7) brightness(.7) drop-shadow(0 10px 14px rgba(0,0,0,.55))}
.gcard .go{position:absolute; top:8px; left:50%; transform:translateX(-50%); z-index:2; font-size:10px; font-weight:900; letter-spacing:.1em; text-transform:uppercase;
  padding:3px 9px; border-radius:999px; color:#2a180a; background:linear-gradient(180deg,#ecc48f,#a8743f)}

/* bottom: plain icons, no frames */
html body #hubOv .hubnav{gap:4px}
html body #hubOv .hubnav button:not(.xback){border:0 !important; border-image:none !important; background:none !important; box-shadow:none !important; filter:none !important;
  min-width:64px; padding:2px 8px !important; gap:1px; color:#f3ead6 !important; font-size:11px; font-weight:800; text-shadow:0 1px 3px #000, 0 0 8px rgba(0,0,0,.8); border-radius:12px !important}
html body #hubOv .hubnav .mico{width:30px; height:30px; filter:drop-shadow(0 2px 4px rgba(0,0,0,.6)); transition:transform .25s cubic-bezier(.2,1.4,.4,1)}
html body #hubOv .hubnav button:hover .mico,html body #hubOv .hubnav button:focus-visible .mico{transform:translateY(-2px) scale(1.08)}
html body #hubOv .hubnav button:active .mico{transform:scale(.92)}
/* (31 Oct) ten buttons with Leagues: on narrow phones they share the width instead of pushing the screen wider */
@media (max-width:860px){ html body #hubOv .hubnav{min-width:0; max-width:100%} html body #hubOv .hubnav button:not(.xback){flex:1 1 0; min-width:0 !important; padding:2px 1px !important} html body #hubOv .hubnav{--navlbl:10px} html body #hubOv .hubnav button span b{font-size:10px !important; letter-spacing:-.02em; white-space:nowrap}
  html body #hubOv .hubnav :is(#featAch,#featCh) span b{font-size:0 !important} html body #hubOv .hubnav :is(#featAch,#featCh) span b::after{font-size:var(--navlbl,11px)}
  html body #hubOv .hubnav #featAch span b::after{content:'Medals'} html body #hubOv .hubnav #featCh span b::after{content:'Tasks'} }

/* short sideways phones */
@media (max-height:430px){
  .hside{width:min(220px,100%); gap:6px}
  .hstxt b{font-size:19px} .hstxt em{font-size:10.5px}
  .hextra .hx .ficon,.hextra .hx>svg{width:34px; height:34px}
  html body #hubOv .games{padding-top:10px}
  html body #hubOv .hubnav .mico{width:26px; height:26px}
}
@media (max-height:360px){ .hstxt em{display:none} .hextra .hx b{font-size:9.5px; letter-spacing:-.02em} .hextra .hx .ficon,.hextra .hx>svg{width:30px; height:30px} }
/* upright or narrow screens: the fan above, Story and the medallions below */
@media (max-width:620px){
  html body #hubOv .hubmid{grid-template-columns:1fr}
  html body #hubOv .games{order:-1}
  .gcard{--cw:clamp(70px, 21vw, 110px)}
}
@media (prefers-reduced-motion:reduce){ .gcard,.hstory,.hsart{transition:none} }

/* ======================= (27 Oct 2026) the user's sunset pictures, and ideas from other card games =======================
   Home = the dhoni at sunset; each game's menu = its own picture (the pavilion picture is not used: user's wish).
   Like the popular card game apps: a level bar on the profile, one big Play button, an event banner (Story),
   a missions card (today's challenges) and a bottom tab bar. */
html body #hubOv.hubov{background:linear-gradient(180deg, rgba(14,8,24,.45) 0%, rgba(14,8,24,0) 22%, rgba(0,0,0,0) 62%, rgba(6,8,14,.6) 100%),
  url(../art/ui/bg-loading-lq-warm.webp) center 55%/cover no-repeat !important}
html body #homeOv[data-game="bondi"]{background:linear-gradient(90deg,rgba(2,10,16,.15),rgba(2,10,16,.5)), url(../art/ui/bg-loading-lq-warm.webp) center/cover no-repeat !important}
html body #homeOv[data-game="ten"]{background:linear-gradient(90deg,rgba(2,10,16,.15),rgba(2,10,16,.5)), url(../art/ui/bg-loading-lq-warm.webp) center/cover no-repeat !important}
html body #homeOv[data-game="laari"]{background:linear-gradient(90deg,rgba(2,10,16,.15),rgba(2,10,16,.5)), url(../art/ui/bg-loading-lq-warm.webp) center/cover no-repeat !important}

/* the missions card under the Story banner */
.hmission{position:relative; width:100%; display:grid; grid-template-columns:auto 1fr; align-items:center; gap:9px; padding:7px 12px 7px 8px; text-align:left; cursor:pointer;
  border-radius:12px; border:1.5px solid rgba(240,192,138,.55); background:linear-gradient(180deg, rgba(28,17,8,.86), rgba(14,9,4,.9)); color:#f3ead6; box-shadow:0 8px 18px rgba(0,0,0,.45);
  transition:transform .25s ease}
.hmission:hover,.hmission:focus-visible{transform:translateY(-2px)}
.hmission .ficon{width:34px; height:34px; filter:drop-shadow(0 2px 4px rgba(0,0,0,.6))}
.hmission b{display:block; font-size:13px; font-weight:800}
.hmission small{display:block; font-size:11px; color:#d9c4a3; margin:1px 0 4px}
.hmission .pbar{display:block; height:5px; border-radius:999px; background:rgba(255,255,255,.12); overflow:hidden}
.hmission .pbar i{display:block; height:100%; width:0; border-radius:inherit; background:linear-gradient(90deg,#d39a5e,#ecc48f); transition:width .6s ease}
.hmnew{position:absolute; top:-8px; right:-6px; font-style:normal; font-size:10px; font-weight:900; letter-spacing:.06em; text-transform:uppercase; padding:3px 8px; border-radius:999px;
  color:#2a180a; background:linear-gradient(180deg,#ffe08a,#e2a33c); box-shadow:0 0 12px rgba(255,200,80,.7); animation:hmpulse 1.6s ease-in-out infinite}
.hmnew[hidden]{display:none}
@keyframes hmpulse{50%{transform:scale(1.08)}}

/* the middle: the fan and the big Play button under it */
.hcenter{display:grid; justify-items:center; gap:4px}
.gcard.last .gback{box-shadow:inset 0 0 0 1px rgba(0,0,0,.35), 0 0 0 2px #ecc48f, 0 0 18px rgba(255,200,110,.55)}
html body #hubOv .hplay:not(.xback){min-width:200px; padding:9px 30px !important; font-family:var(--f-display) !important; font-weight:400 !important; font-size:21px !important; letter-spacing:.02em;
  position:relative; z-index:6; animation:hplay 2.8s ease-in-out infinite}
@keyframes hplay{0%,100%{box-shadow:inset 0 1px 0 rgba(255,235,205,.55), inset 0 -2px 0 rgba(50,30,12,.45), 0 0 0 2px rgba(18,10,8,.85), 0 4px 10px rgba(0,0,0,.5)}
  50%{box-shadow:inset 0 1px 0 rgba(255,235,205,.55), inset 0 -2px 0 rgba(50,30,12,.45), 0 0 0 2px rgba(18,10,8,.85), 0 4px 10px rgba(0,0,0,.5), 0 0 22px rgba(255,200,110,.55)}}
.gcard{--cw:clamp(70px, 23vh, 122px)}
html body #hubOv .games{padding:10px 18px 0}

/* the profile: a thin bar towards the next level, like the card game apps */
#meChip{position:relative}
#meChip .lvbar{position:absolute; left:52px; right:16px; bottom:4px; height:3px; border-radius:999px; background:rgba(255,255,255,.15); overflow:hidden}
#meChip .lvbar i{display:block; height:100%; border-radius:inherit; background:linear-gradient(90deg,#d39a5e,#ffe08a)}

/* the bottom tab bar: Collection and Achievements joined it; their medallions match the others */
html body #hubOv .hubnav .ficon{width:30px; height:30px; filter:drop-shadow(0 2px 4px rgba(0,0,0,.6)); transition:transform .25s cubic-bezier(.2,1.4,.4,1)}
html body #hubOv .hubnav button span{display:block}
html body #hubOv .hubnav button span b{font-weight:800; font-size:11px}
html body #hubOv .hubnav button span small{display:none}
html body #hubOv .hubnav button:hover .ficon{transform:translateY(-2px) scale(1.08)}

/* the picture's own movement: the sun breathes, its path on the water glitters, light moves on the sea */
#homeFx .hfsun{width:9%; aspect-ratio:1; transform:translate(-50%,-50%); border-radius:50%; mix-blend-mode:screen;
  background:radial-gradient(circle, rgba(255,236,170,.75), rgba(255,180,80,.25) 40%, rgba(255,150,60,0) 70%); animation:hfsun 5s ease-in-out infinite alternate}
@keyframes hfsun{from{opacity:.55; transform:translate(-50%,-50%) scale(.9)}to{opacity:1; transform:translate(-50%,-50%) scale(1.1)}}
#homeFx .hfpath{left:82.6%; width:8.5%; top:62%; height:22%; mix-blend-mode:screen; opacity:.55;
  background:repeating-linear-gradient(180deg, rgba(255,200,120,0) 0 6px, rgba(255,210,140,.55) 6px 7px, rgba(255,200,120,0) 7px 12px);
  -webkit-mask:linear-gradient(90deg, transparent, #000 30%, #000 70%, transparent); mask:linear-gradient(90deg, transparent, #000 30%, #000 70%, transparent);
  animation:hfglit 2.6s ease-in-out infinite alternate}
#homeFx .hfwater{top:48%; height:52%; opacity:.55}

@media (max-height:430px){ .hmission{padding:5px 10px 5px 6px; gap:7px} .hmission .ficon{width:28px; height:28px} .hmission b{font-size:12px} .hmission small{font-size:10px; margin-bottom:3px}
  html body #hubOv .hplay:not(.xback){font-size:18px !important; padding:6px 26px !important; min-width:170px} }
@media (max-height:360px){ .hstory{aspect-ratio:16/8} html body #hubOv .hplay:not(.xback){font-size:16px !important; padding:4px 22px !important} }

/* ======================= (27 Oct 2026, later) Story under the fan, Challenges in the bar, a richer bar, living cards ======================= */
html body #hubOv .hubmid{grid-template-columns:1fr}
.hcenter{gap:8px}
/* the fan: touch-friendly (a finger sliding over it lifts the card under it), cards float gently and catch the light now and then */
html body #hubOv .games{touch-action:none; -webkit-user-select:none; user-select:none}
.gcard{animation:gfloat 4.2s ease-in-out infinite; animation-delay:calc(var(--i) * .7s)}
@keyframes gfloat{0%,100%{translate:0 0}50%{translate:0 -5px}}
.gcard .gback{overflow:hidden}
.gcard .gback::after{content:""; position:absolute; inset:0; border-radius:inherit; pointer-events:none;
  background:linear-gradient(110deg, rgba(255,255,255,0) 35%, rgba(255,246,220,.35) 50%, rgba(255,255,255,0) 65%);
  transform:translateX(-100%); animation:gshineX 7s ease-in-out infinite; animation-delay:calc(1.2s + (var(--i) + 2) * .45s)}
/* (2 Nov 2026) the light slides across (transform) instead of moving the background: no repainting of the cards every frame */
@keyframes gshineX{0%,70%{transform:translateX(-100%)}100%{transform:translateX(100%)}}
.gcard.hot{z-index:6; transform:translateY(-20px) rotate(0deg) scale(1.08) !important; filter:drop-shadow(0 18px 20px rgba(0,0,0,.6)) brightness(1.08)}
.gcard.hot .gback{box-shadow:inset 0 0 0 1px rgba(0,0,0,.35), 0 0 0 2px #ecc48f, 0 0 22px rgba(255,210,120,.7)}
.gcard.last .gback{box-shadow:inset 0 0 0 1px rgba(0,0,0,.35), 0 0 0 1px rgba(0,0,0,.4)}

/* Story: the big button under the fan, with the Ghoul's face */
html body #hubOv .hplay:not(.xback){display:inline-flex; align-items:center; gap:10px; padding:5px 26px 5px 6px !important; min-width:0; font-family:var(--f-body) !important; text-align:left}
.hpface{width:38px; height:38px; border-radius:50%; object-fit:cover; border:2px solid #4a2a10; box-shadow:0 0 0 2px #f0c08a, 0 0 12px rgba(255,60,40,.45)}
.hplay span{display:grid; line-height:1.05}
.hplay b{font-family:var(--f-display); font-weight:400; font-size:22px; color:#2a180a}
.hplay small{font-size:11px; font-weight:800; letter-spacing:.06em; color:#5a3a18}

/* the bottom bar: one lacquer plate with a gold edge; medallions bounce when pressed; labels in caramel */
html body #hubOv .hubnav{justify-self:center; gap:2px; padding:4px 10px 3px; border-radius:18px; position:relative;
  background:linear-gradient(180deg, rgba(46,30,18,.88), rgba(16,10,6,.92)); border:1px solid rgba(240,192,138,.55);
  box-shadow:inset 0 1px 0 rgba(255,230,190,.18), 0 0 0 1px rgba(0,0,0,.6), 0 10px 22px rgba(0,0,0,.5); -webkit-backdrop-filter:blur(6px); backdrop-filter:blur(6px)}
html body #hubOv .hubnav::before{content:""; position:absolute; left:18px; right:18px; top:-1px; height:1px; background:linear-gradient(90deg, transparent, #ffe08a, transparent); opacity:.8}
html body #hubOv .hubnav button:not(.xback){min-width:70px; padding:3px 6px 2px !important; color:#f0c08a !important; text-shadow:0 1px 2px #000 !important; position:relative}
html body #hubOv .hubnav button:not(.xback)::after{content:""; position:absolute; left:20%; right:20%; bottom:-1px; height:2px; border-radius:2px; background:#ffe08a; opacity:0; transition:opacity .2s}
html body #hubOv .hubnav button:not(.xback):hover::after,html body #hubOv .hubnav button:not(.xback):focus-visible::after{opacity:.8}
html body #hubOv .hubnav button:not(.xback):active .mico,html body #hubOv .hubnav button:not(.xback):active .ficon{transform:scale(.88)}
html body #hubOv .hubnav .mico,html body #hubOv .hubnav .ficon{width:32px; height:32px; filter:drop-shadow(0 2px 4px rgba(0,0,0,.7)) drop-shadow(0 0 6px rgba(255,200,110,.25))}
.chbadge{position:absolute; top:-2px; right:8px; font-style:normal; font-size:9.5px; font-weight:900; padding:1px 5px; border-radius:999px; color:#2a180a; background:#ecc48f; box-shadow:0 0 0 1px #2a180a}
.chbadge.ready{background:linear-gradient(180deg,#ffe08a,#e2a33c); box-shadow:0 0 10px rgba(255,200,80,.8); animation:hmpulse 1.6s ease-in-out infinite}
@media (max-height:430px){
  html body #hubOv .hubnav .mico,html body #hubOv .hubnav .ficon{width:27px; height:27px}
  html body #hubOv .hubnav button:not(.xback){min-width:62px}
  .hpface{width:32px; height:32px} .hplay b{font-size:19px}
}
@media (max-height:360px){ .hplay small{display:none} .hpface{width:26px; height:26px} }
@media (prefers-reduced-motion:reduce){ .gcard,.gcard .gback::after{animation:none} }

/* (27 Oct, user: "hard to read the game name … the background is too bright") each game's menu: the picture is dimmed and
   warmed to the lacquer theme, darkest on the left behind the title, and the name sits on a soft dark glow */
html body #homeOv{background-color:#120c08 !important}
html body #homeOv:is([data-game="digu"],:not([data-game])){background:radial-gradient(ellipse 45% 70% at 24% 50%, rgba(10,6,3,.72), rgba(10,6,3,0) 75%), linear-gradient(90deg, rgba(14,8,4,.62), rgba(14,8,4,.38) 45%, rgba(14,8,4,.62)), url(../art/ui/bg-loading-lq-warm.webp) center/cover no-repeat !important}
html body #homeOv[data-game="bondi"]{background:radial-gradient(ellipse 45% 70% at 24% 50%, rgba(10,6,3,.72), rgba(10,6,3,0) 75%), linear-gradient(90deg, rgba(14,8,4,.62), rgba(14,8,4,.38) 45%, rgba(14,8,4,.62)), url(../art/ui/bg-loading-lq-warm.webp) center/cover no-repeat !important}
html body #homeOv[data-game="ten"]{background:radial-gradient(ellipse 45% 70% at 24% 50%, rgba(10,6,3,.72), rgba(10,6,3,0) 75%), linear-gradient(90deg, rgba(14,8,4,.62), rgba(14,8,4,.38) 45%, rgba(14,8,4,.62)), url(../art/ui/bg-loading-lq-warm.webp) center/cover no-repeat !important}
html body #homeOv[data-game="laari"]{background:radial-gradient(ellipse 45% 70% at 24% 50%, rgba(10,6,3,.72), rgba(10,6,3,0) 75%), linear-gradient(90deg, rgba(14,8,4,.62), rgba(14,8,4,.38) 45%, rgba(14,8,4,.62)), url(../art/ui/bg-loading-lq-warm.webp) center/cover no-repeat !important}
html body #homeOv #homeTitle{color:#f0c08a !important; -webkit-text-fill-color:#f0c08a !important; background:none !important;
  text-shadow:0 2px 0 #2e1c0e, 0 4px 14px rgba(0,0,0,.95), 0 0 30px rgba(0,0,0,.8) !important; letter-spacing:.02em}
/* (27 Oct, from the user's Gin Rummy video) how many people are playing this game right now */
.gname .gonline{font-size:calc(var(--cw) * .085); font-weight:700; line-height:1.3; color:#cfe9c8; text-shadow:0 1px 3px #000; letter-spacing:.02em}
.gname .gonline:empty{display:none}
.gname .gonline::before{content:""; display:inline-block; width:.55em; height:.55em; margin-right:.3em; border-radius:50%; background:#5fd35f; box-shadow:0 0 4px #5fd35f; vertical-align:.05em}

/* (28 Oct 2026) the bottom buttons grow under a sliding finger (fx.js slideLift), smoothly and a little springy; the
   neighbours grow a touch too. "scale" is its own property, so the press-in on tap (transform) still works with it */
html body #hubOv .hubnav button{transform-origin:50% 90%;
  transition:transform .18s cubic-bezier(.2,1.6,.4,1), filter .18s ease, scale .34s cubic-bezier(.25,1.4,.45,1)}
html body #hubOv .hubnav button.near{scale:1.08}
html body #hubOv .hubnav button.hot{scale:1.24; z-index:2}
html body #hubOv .hubnav button.hot .mico,html body #hubOv .hubnav button.hot .ficon{filter:drop-shadow(0 4px 7px rgba(0,0,0,.65)) brightness(1.1)}
@media (prefers-reduced-motion:reduce){ html body #hubOv .hubnav button{transition:none} }

/* ---------- (28 Oct 2026, user: "change the story button, it looks very dull now, make it nicer") ----------
   Still a lacquer pill like every button (no picture buttons), but the story's own: deep red-black lacquer with a gold rim,
   the two villains side by side (the Ghoul and Miyaru Ras), "Story" in gold lettering, your stars, a small gold arrow, and
   now and then a soft gold shine passes over it. */
html body #hubOv #featStory.hplay:not(.xback){position:relative; overflow:hidden; gap:11px; padding:5px 18px 5px 7px !important;
  border:1.5px solid #e3b56f !important; color:#fff3e8 !important; animation:none;
  background:radial-gradient(ellipse 80% 120% at 22% 50%, #6a1a14 0%, #3a0e0c 45%, #160606 100%) !important;
  box-shadow:inset 0 1px 0 rgba(255,215,160,.35), inset 0 -3px 6px rgba(0,0,0,.5), 0 0 0 2px #1a0a06, 0 0 0 3.5px rgba(227,181,111,.45), 0 8px 18px rgba(0,0,0,.6) !important;
  text-shadow:none !important}
#featStory::before{content:""; position:absolute; top:0; bottom:0; left:-40%; width:30%; pointer-events:none; z-index:2;
  background:linear-gradient(100deg, rgba(255,230,170,0), rgba(255,230,170,.32), rgba(255,230,170,0)); transform:skewX(-18deg); animation:hpshine 5.5s ease-in-out 1.2s infinite}
@keyframes hpshine{0%{left:-40%} 22%,100%{left:130%}}
#featStory .hpfaces{display:flex; flex:none}
#featStory .hpface{width:36px; height:36px; border-radius:50%; object-fit:cover; border:2px solid #2a0c08; box-shadow:0 0 0 1.5px #e3b56f, 0 3px 6px rgba(0,0,0,.55)}
#featStory .hpface.f2{margin-left:-12px}
#featStory .hptxt{display:grid; line-height:1.05; position:relative; z-index:1}
html body #hubOv #featStory b{font-family:var(--f-display); font-weight:400; font-size:23px; letter-spacing:.03em;
  background:linear-gradient(180deg,#fff3c8 0%,#f0c46e 55%,#c98a3c 100%); -webkit-background-clip:text; background-clip:text; color:transparent;
  filter:drop-shadow(0 1px 1px rgba(0,0,0,.7))}
html body #hubOv #featStory small{font-size:10.5px; font-weight:800; letter-spacing:.05em; color:#e9c99a}
#featStory .hparrow{width:9px; height:9px; margin-left:4px; flex:none; border-top:2.5px solid #f0c46e; border-right:2.5px solid #f0c46e; transform:rotate(45deg);
  filter:drop-shadow(0 1px 1px rgba(0,0,0,.6)); animation:hparrow 2.2s ease-in-out infinite}
@keyframes hparrow{0%,100%{translate:0 0} 50%{translate:3px 0}}
@media (max-height:420px){ #featStory .hpface{width:30px; height:30px} html body #hubOv #featStory b{font-size:20px} }
@media (max-height:360px){ #featStory .hpface{width:24px; height:24px} html body #hubOv #featStory small{display:none} }
@media (prefers-reduced-motion:reduce){ #featStory::before,#featStory .hparrow{animation:none} #featStory::before{display:none} }

/* ======================= (1 Nov 2026, the user) four cards on the home: Games, Achievements, Album, League =======================
   The cards are the user's own pictures (art/ui/home-*.webp, corners cut clear), so no name strip and no cream border.
   Achievements and League open their choices in place of the fan; "‹ Home" goes back. The fan sits a little higher, clear of Story. */
.gcard.hsec .gback{border:0; border-radius:calc(var(--cw) * .09); background-size:100% 100% !important; box-shadow:0 0 0 1px rgba(0,0,0,.35)}
.gcard.hsec[data-sec="games"] .gback{background-image:url(../art/ui/home-games.webp) !important}
.gcard.hsec[data-sec="ach"] .gback{background-image:url(../art/ui/home-ach.webp) !important}
.gcard.hsec[data-sec="album"] .gback{background-image:url(../art/ui/home-album.webp) !important}
.gcard.hsec[data-sec="league"] .gback{background-image:url(../art/ui/home-league.webp) !important}
.gcard.hsec.hot .gback{box-shadow:0 0 0 2px #ecc48f, 0 0 22px rgba(255,210,120,.7)}
.gcard.hsec .ndot{position:absolute; top:4%; right:6%; z-index:3; width:12px; height:12px; border-radius:50%; background:linear-gradient(180deg,#ffe08a,#e2a33c); box-shadow:0 0 0 2px #2a180a, 0 0 10px rgba(255,200,80,.9); animation:hmpulse 1.6s ease-in-out infinite}
.gcard.hsec .ndot[hidden]{display:none}
/* a little higher: clear of the Story button under it */
html body #hubOv .games{margin-bottom:26px}
@media (max-height:430px){ html body #hubOv .games{margin-bottom:20px} }
@media (max-height:330px){ html body #hubOv .games{margin-bottom:14px} .gcard{--cw:64px} }
/* "‹" back to the four home cards: a round lacquer button just left of Story, so it never sits on a card or the profile */
.hstoryrow{display:flex; align-items:center; justify-content:center; gap:10px}
html body #hubOv .hubback:not(.xback){width:44px; height:44px; min-height:0; padding:0 !important; border-radius:50% !important; font-size:26px; line-height:1; font-weight:800; flex:none;
  display:grid; place-items:center; color:#f0c08a !important; text-shadow:0 1px 2px #000 !important;
  background:linear-gradient(180deg, rgba(46,30,18,.95), rgba(16,10,6,.96)) !important; border:1.5px solid #e3b56f !important; box-shadow:0 0 0 2px #1a0a06, 0 6px 14px rgba(0,0,0,.55) !important}
.hubback[hidden]{display:none !important}
@media (max-height:430px){ html body #hubOv .hubback:not(.xback){width:38px; height:38px; font-size:22px} }
/* the choices under Achievements (Collection, Medals, Tasks) and League (Leagues, Ranking): big lacquer tiles in a row */
.hubopts{display:flex; justify-content:center; padding:10px 12px 12px}
.hubopts[hidden],.hubopts .hoset[hidden]{display:none !important}
.hubopts .hoset{display:flex; flex-wrap:wrap; justify-content:center; gap:14px}
html body #hubOv .hubopts button:not(.xback){position:relative; display:grid; justify-items:center; align-content:center; gap:6px; width:clamp(84px, 27vh, 150px); aspect-ratio:5/6; padding:10px 8px !important;
  border-radius:18px !important; color:#f0c08a !important; text-shadow:0 1px 2px #000 !important;
  background:linear-gradient(180deg, rgba(46,30,18,.92), rgba(16,10,6,.94)) !important; border:1.5px solid rgba(240,192,138,.7) !important;
  box-shadow:inset 0 1px 0 rgba(255,230,190,.2), 0 0 0 1px rgba(0,0,0,.6), 0 10px 22px rgba(0,0,0,.55) !important; transition:transform .25s cubic-bezier(.2,1.4,.4,1)}
html body #hubOv .hubopts button:not(.xback):hover,html body #hubOv .hubopts button:not(.xback):focus-visible{transform:translateY(-4px)}
html body #hubOv .hubopts button:not(.xback):active{transform:scale(.96)}
html body #hubOv .hubopts :is(.ficon,.mico){width:clamp(40px, 11vh, 58px); height:clamp(40px, 11vh, 58px); filter:drop-shadow(0 3px 6px rgba(0,0,0,.7))}
html body #hubOv .hubopts button span{display:grid; gap:2px; text-align:center}
html body #hubOv .hubopts button span b,html body #hubOv .hubopts button>span:not(:has(b)){font-family:var(--f-display); font-weight:400; font-size:clamp(15px, 4.6vh, 20px); line-height:1.05; color:#f0c08a}
html body #hubOv .hubopts button span small{display:block; font-size:10.5px; font-weight:700; color:#e9dcc0; opacity:.85}
html body #hubOv .hubopts #featAch span b{font-size:0} html body #hubOv .hubopts #featAch span b::after{content:'Medals'; font-size:clamp(15px, 4.6vh, 20px)}
html body #hubOv .hubopts #featCh span b{font-size:0} html body #hubOv .hubopts #featCh span b::after{content:'Tasks'; font-size:clamp(15px, 4.6vh, 20px)}
html body #hubOv .hubopts .chbadge{top:6px; right:8px}
@media (max-height:430px){ html body #hubOv .hubopts button:not(.xback){aspect-ratio:1/1} .hubopts{padding-top:6px} html body #hubOv .hubopts button span small{display:none} html body #hubOv .hubopts .hoset{gap:10px} }
/* the bottom bar has four buttons now: a little roomier */
html body #hubOv .hubnav button:not(.xback){min-width:78px}
@media (max-width:860px){ html body #hubOv .hubnav button:not(.xback){flex:none; min-width:68px !important; padding:3px 6px 2px !important} }

/* ---------- (1 Nov, later, the user) five cards with Story, and the loading screen's green velvet behind the home cards,
   Achievements and League; the Games fan keeps the sunset picture. Story is a card now, so the old Story button is gone. ---------- */
html body #hubOv.hubov{background:#0a1a16 url(../art/ui/bg-loading-lq-warm.webp) center/cover no-repeat !important}   /* (8 Nov 2026, user) the Games window too: no more sunset, one background for every part of the home */
html body #hubOv #homeFx{display:none}
html body #hubOv #featStory{display:none !important}
.gcard.hsec[data-sec="story"] .gback{background-image:url(../art/ui/home-story.webp) !important; border:3px solid #f3ead6; box-sizing:border-box}
.gcard.hsec[data-sec="story"] .gname{left:3px; right:3px; bottom:3px}
.gname .gstars::before{display:none}
.hstoryrow:not(:has(#hubBack:not([hidden]))){display:none}
html body #hubOv[data-view="main"] .games{margin-bottom:6px}
@media (max-height:330px){ html body #hubOv[data-view="main"] .gcard{--cw:60px} html body #hubOv[data-view="main"] .games{margin-bottom:4px} }
/* (1 Nov, later, the user) the bottom bar a little higher off the screen's edge, and the home / Games cards a bit bigger */
html body #hubOv .hubnav{margin-bottom:14px}
@media (max-height:430px){ html body #hubOv .hubnav{margin-bottom:9px} }
@media (max-height:330px){ html body #hubOv .hubnav{margin-bottom:3px} }
html body #hubOv .gcard{--cw:clamp(76px, 26vh, 140px)}
@media (max-height:380px){ html body #hubOv[data-view="main"] .gcard{--cw:24vh} }
@media (max-height:330px){ html body #hubOv .gcard{--cw:66px} html body #hubOv[data-view="main"] .gcard{--cw:58px} }
/* (4 Nov 2026) touch screens: the home cards don't jump on touch (hover lift is for a mouse); a short press gives the feedback */
@media (hover:none){
  html body #hubOv .gcard.ready:hover{transform:translateY(calc(var(--a) * var(--a) * 7px)) rotate(calc(var(--i) * 7deg)) !important; filter:drop-shadow(0 10px 14px rgba(0,0,0,.55))}
  html body #hubOv .gcard.ready:active{filter:drop-shadow(0 10px 14px rgba(0,0,0,.55)) brightness(1.12)}
}

/* (8 Nov 2026) the five home cards are one set now: the same pale edge and name strip on each; the longest name is set smaller so it stays on the card */
.gcard.hsec .gback{border:3px solid #f3ead6; box-sizing:border-box}
.gcard.hsec .gname{left:3px; right:3px; bottom:3px}
.gcard.hsec[data-sec="ach"] .gname b{font-size:calc(var(--cw) * .125)}
