/* pages/hub.css: the hub page's own content upgrades (prefix hb-). See assets/README.md.
 * Vault card visibility, status chips on the cards, news ticker, keyboard hint, "Now" card, card entrance.
 * Colours come from the tokens only, so every piece follows the dark and light themes.
 */

/* ---- The hub shows two avenues, AndersCraft and AnyPS. (The owner-only Personal Vault card was removed
        from the hub at the owner's request, so the grid stays two columns for everyone.) ---- */
@media (min-width:901px){
  .avenues{grid-template-columns:repeat(2,minmax(0,1fr))}
  .avenues .avenue .art{height:190px}
}
.avenues .avenue{scroll-margin-top:calc(var(--sx-header-h,0px) + 76px);scroll-margin-bottom:24px}

/* ---- Card entrance. Uses the separate "translate" property and fill-mode backwards, so nothing is left on the
        cards afterwards and the hover transform (hub effects) is never touched. Pure CSS: works without scripts. ---- */
@keyframes hb-rise{from{opacity:0;translate:0 22px}}
:root:not([data-motion="reduce"]) .avenues .avenue{animation:hb-rise .6s var(--sx-ease) .12s backwards}
:root:not([data-motion="reduce"]) .avenues .avenue.anyps{animation-delay:.2s}
:root:not([data-motion="reduce"]) .avenues .avenue.games{animation-delay:.28s}

/* ---- AnyPS card video (poster only until hub.js decides it may play) ---- */
.hb-vid{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;pointer-events:none}

/* ---- Status chips, top right of each card's artwork (the icon sits bottom left) ---- */
.hb-chips{position:absolute;z-index:2;top:12px;right:12px;left:12px;display:flex;flex-wrap:wrap;justify-content:flex-end;gap:6px;pointer-events:none}
.hb-chips:empty{display:none}
.hb-chips .sx-chip{-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);box-shadow:0 6px 18px -10px rgba(0,0,0,.7);color:var(--sx-text)}
.hb-chips .sx-chip.is-wait{color:var(--sx-muted)}
/* status colours mixed towards the text colour so they keep 4.5:1 on the glass in both themes */
.hb-chips .sx-chip.is-on{color:color-mix(in srgb,var(--sx-ok) 72%,var(--sx-text))}
.hb-chips .sx-chip.is-off{color:color-mix(in srgb,var(--sx-err) 72%,var(--sx-text))}
.hb-chips .hb-chip--new{color:var(--sx-on-accent);background:var(--accent,var(--sx-accent));border-color:transparent;font-weight:600}
:root:not([data-motion="reduce"]) .hb-chips .sx-chip{animation:hb-chip-in .35s var(--sx-ease) backwards}
@keyframes hb-chip-in{from{opacity:0;translate:0 -4px}}

/* ---- Latest-update ticker ---- */
.hb-ticker{--hb-tick-h:56px;position:relative;min-height:var(--hb-tick-h);margin:0 0 4px;display:flex;align-items:center;gap:12px;
  padding:7px 8px 7px 16px;border:1px solid transparent;border-radius:16px;text-shadow:none}
.hb-ticker.hb-is-ready{background:var(--sx-glass);border-color:var(--sx-line);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px)}
/* #25 — a soft accent shimmer that sweeps the "Latest" banner's border (masked gradient ring; still under reduced motion) */
.hb-ticker.hb-is-ready::before{content:"";position:absolute;inset:-1px;border-radius:17px;padding:1.5px;pointer-events:none;
  background:linear-gradient(110deg,transparent 18%,color-mix(in srgb,var(--sx-accent) 80%,transparent) 40%,color-mix(in srgb,#fff 70%,var(--sx-accent)) 50%,color-mix(in srgb,var(--sx-accent) 80%,transparent) 60%,transparent 82%);
  background-size:230% 100%;background-repeat:no-repeat;
  -webkit-mask:linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0);-webkit-mask-composite:xor;
  mask:linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0);mask-composite:exclude;
  opacity:.85;animation:hb-tick-shimmer 4.5s linear infinite}
@keyframes hb-tick-shimmer{from{background-position:135% 0}to{background-position:-135% 0}}
@media (prefers-reduced-motion:reduce){.hb-ticker.hb-is-ready::before{animation:none;background-position:50% 0;opacity:.6}}
.hb-tick__label{flex:none;font:500 .74rem/1 var(--sx-mono);letter-spacing:.14em;text-transform:uppercase;color:var(--sx-muted);padding-right:12px;border-right:1px solid var(--sx-line-2);align-self:stretch;display:flex;align-items:center}
.hb-tick__stage{flex:1 1 auto;min-width:0;display:grid;align-items:center}
.hb-tick__item{grid-area:1/1;min-width:0;display:flex;align-items:center;gap:10px;min-height:40px;padding:2px 6px;margin-left:-6px;border-radius:10px;
  color:var(--sx-text);text-decoration:none;opacity:0;visibility:hidden;transition:opacity .5s ease,visibility 0s linear .5s}
.hb-tick__item.hb-is-on{opacity:1;visibility:visible;transition:opacity .5s ease,visibility 0s}
.hb-tick__title{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font:600 .98rem/1.3 var(--sx-display)}
.hb-tick__item:hover .hb-tick__title,.hb-tick__item:focus-visible .hb-tick__title{text-decoration:underline;text-underline-offset:3px}
.hb-tick__date{flex:none;font:500 .76rem/1 var(--sx-mono);color:var(--sx-muted);white-space:nowrap}
.hb-tick__ctl{flex:none;display:flex;align-items:center;gap:6px}
.hb-tick__count{font:500 .74rem/1 var(--sx-mono);color:var(--sx-muted);min-width:3.4em;text-align:center;font-variant-numeric:tabular-nums}
.hb-tick__btn,.hb-tick__all{all:unset;box-sizing:border-box;display:inline-grid;place-items:center;height:40px;border-radius:11px;cursor:pointer;
  color:var(--sx-text);background:var(--sx-surface-2);border:1px solid var(--sx-line-2);transition:border-color .15s,color .15s;-webkit-tap-highlight-color:transparent}
.hb-tick__btn{width:40px}
.hb-tick__btn svg{width:18px;height:18px}
.hb-tick__all{padding:0 14px;margin-left:4px;font:600 .88rem/1 var(--sx-display);white-space:nowrap}
.hb-tick__btn:hover,.hb-tick__all:hover{border-color:var(--sx-accent);color:var(--sx-accent)}
.hb-tick__btn:focus-visible,.hb-tick__all:focus-visible{outline:2px solid var(--sx-accent);outline-offset:2px}
:root[data-motion="reduce"] .hb-tick__item,:root[data-motion="reduce"] .hb-tick__item.hb-is-on{transition:none}

/* tag pill (ticker and the "All updates" list): text stays in the text colour, the dot carries the avenue colour */
.hb-pill{flex:none;display:inline-flex;align-items:center;gap:6px;font:500 .7rem/1 var(--sx-mono);letter-spacing:.06em;text-transform:uppercase;white-space:nowrap;
  color:var(--sx-text);border:1px solid color-mix(in srgb,var(--hb-c,var(--sx-accent)) 55%,transparent);background:color-mix(in srgb,var(--hb-c,var(--sx-accent)) 12%,transparent);border-radius:999px;padding:5px 9px}
.hb-pill > i{width:7px;height:7px;border-radius:50%;background:var(--hb-c,var(--sx-accent));flex:none}
.hb-pill--anderscraft{--hb-c:var(--craft)} .hb-pill--anyps{--hb-c:var(--anyps)} .hb-pill--vault,.hb-pill--games{--hb-c:var(--games)}

@media (max-width:700px){
  .hb-ticker{--hb-tick-h:122px;flex-wrap:wrap;gap:6px 10px;padding:10px 10px 10px 14px;align-content:center}
  .hb-tick__label{display:none}
  .hb-tick__stage{flex:1 0 100%}
  .hb-tick__item{flex-wrap:wrap;gap:4px 10px;min-height:52px;align-content:center}
  .hb-tick__title{flex:1 0 100%;order:3}
  .hb-tick__ctl{flex:1 0 100%}
  .hb-tick__all{margin-left:auto}
}

/* ---- "All updates" dialog ---- */
.hb-news__day{margin:18px 0 0}
.hb-news__day:first-child{margin-top:2px}
.hb-news .hb-news__date{margin:0 0 8px;font:500 .78rem/1.2 var(--sx-mono);letter-spacing:.12em;text-transform:uppercase;color:var(--sx-muted)}
.hb-news__list{list-style:none;margin:0;padding:0;display:grid;gap:8px}
.hb-news__row{display:grid;grid-template-columns:7.4rem minmax(0,1fr);gap:4px 12px;align-items:start;padding:11px 14px;border:1px solid var(--sx-line);border-radius:12px;background:var(--sx-surface-2)}
.hb-news__row .hb-pill{margin-top:2px;justify-self:start}
.hb-news__title{font:600 1rem/1.35 var(--sx-display);color:var(--sx-text)}
.hb-news .hb-news__title[href]{color:var(--sx-text);text-decoration:none;border-radius:6px}
.hb-news .hb-news__title[href]:hover{text-decoration:underline;text-underline-offset:3px}
.hb-news__body{grid-column:2;margin:0;font-size:.94rem;line-height:1.5;color:var(--sx-muted)}
@media (max-width:520px){
  .hb-news__row{grid-template-columns:minmax(0,1fr)}
  .hb-news__row .hb-pill{justify-self:start}
  .hb-news__body{grid-column:1}
  .hb-news .hb-news__title[href]{display:block;padding:8px 0;margin:-4px 0}   /* 40px tap target */
}

/* ---- Keyboard hint under the cards (hub.js adds hb-keys once the arrow keys really work) ---- */
.hb-hint{display:none;margin:18px 0 0;text-align:center;font-size:.9rem;color:var(--sx-text);text-shadow:none}
.hb-hint .sx-kbd{margin:0 2px;color:var(--sx-text)}
@media (hover:hover) and (pointer:fine){
  :root.hb-keys .hb-hint{display:block}
}

/* ---- "Now" card ---- */
.hb-now{margin:26px 0 0;padding:18px 22px 20px;border:1px solid var(--sx-line);border-radius:20px;background:var(--sx-glass);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);text-shadow:none}
.hb-now__head{display:flex;align-items:baseline;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:12px}
.hb-now .hb-now__h{margin:0;font:500 .8rem/1.2 var(--sx-mono);letter-spacing:.14em;text-transform:uppercase;color:var(--sx-muted)}
.hb-now__upd{font:500 .76rem/1.2 var(--sx-mono);color:var(--sx-muted)}
.hb-now__grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,300px),1fr));gap:18px 28px}
.hb-now__item{display:grid;grid-template-columns:44px minmax(0,1fr);gap:14px;align-items:start}
.hb-now__ico{display:grid;place-items:center;width:44px;height:44px;border-radius:13px;color:var(--hb-c,var(--sx-accent));border:1px solid color-mix(in srgb,var(--hb-c,var(--sx-accent)) 40%,transparent);background:color-mix(in srgb,var(--hb-c,var(--sx-accent)) 12%,transparent)}
.hb-now__ico svg{width:22px;height:22px}
.hb-now__item--building{--hb-c:var(--anyps)} .hb-now__item--playing{--hb-c:var(--games)}
.hb-now__kind{font:500 .72rem/1.2 var(--sx-mono);letter-spacing:.1em;text-transform:uppercase;color:var(--sx-muted);margin-bottom:3px}
.hb-now .hb-now__title{margin:0;font:700 1.15rem/1.3 var(--sx-display);letter-spacing:-.01em;color:var(--sx-text)}
.hb-now__link{color:inherit;text-decoration:none;border-radius:6px;display:inline-block}
.hb-now__link:hover{text-decoration:underline;text-underline-offset:3px}
.hb-now__arrow{display:inline-block;margin-left:.35em;color:var(--hb-c,var(--sx-accent));transition:translate .15s}
.hb-now__link:hover .hb-now__arrow{translate:3px 0}
:root[data-motion="reduce"] .hb-now__arrow{transition:none}
.hb-now__note{margin:4px 0 0;font-size:.95rem;line-height:1.5;color:var(--sx-muted)}
@media (max-width:520px){
  .hb-now{padding:16px 16px 18px}
  .hb-now__link{padding:8px 0;margin:-8px 0}   /* 40px tap target */
}

/* ---- Hidden door: a faint mark at the very bottom; five quick clicks open a code box ---- */
.hb-door-row{position:relative;z-index:2;margin:0;padding:6px 14px 14px;text-align:left;line-height:0}
.hb-door{all:unset;box-sizing:border-box;display:inline-grid;place-items:center;width:84px;height:44px;cursor:pointer;color:var(--sx-muted);opacity:.6;transition:opacity .2s;-webkit-tap-highlight-color:transparent}
.hb-door svg{width:64px;height:16px;display:block}
.hb-door:hover{opacity:.95}
.hb-door:focus-visible{opacity:.9;outline:2px solid var(--sx-accent);outline-offset:2px;border-radius:8px}
.hb-code{display:grid;gap:12px}
.hb-code label{font:600 .9rem var(--sx-display);color:var(--sx-text)}
.hb-code input{font:500 1.05rem var(--sx-mono);color:var(--sx-text);background:var(--sx-surface-2);border:1px solid var(--sx-line-2);border-radius:10px;padding:11px 12px;width:100%;box-sizing:border-box}
.hb-code input:focus-visible{outline:2px solid var(--sx-accent);outline-offset:2px}
.hb-code__msg{min-height:1.3em;margin:0;font-size:.9rem;color:var(--sx-err)}
:root:not([data-motion="reduce"]) .hb-code--no input{animation:hb-shake .3s}
@keyframes hb-shake{25%{transform:translateX(-6px)}75%{transform:translateX(6px)}}

/* ---- Wiki-Chip Dex showcase banner under the avenues (links to /games/) — the site's headline feature ---- */
.hb-rate{--hr:var(--games,#36d39a);--hr2:var(--anyps,#3d8bff);position:relative;isolation:isolate;overflow:hidden;display:grid;grid-template-columns:1fr;gap:22px;align-items:center;margin-top:26px;padding:32px 34px 30px;text-decoration:none;color:var(--sx-text);border-radius:26px;
  background:radial-gradient(130% 120% at 0% 0%,color-mix(in srgb,var(--hr) 26%,transparent),transparent 58%),radial-gradient(130% 120% at 100% 100%,color-mix(in srgb,var(--hr2) 24%,transparent),transparent 60%),rgba(13,16,21,.9);
  -webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);
  border:1.5px solid color-mix(in srgb,var(--hr) 58%,var(--sx-line));
  box-shadow:0 26px 60px -30px var(--hr),0 0 0 1px color-mix(in srgb,var(--hr) 22%,transparent),inset 0 0 44px -22px color-mix(in srgb,var(--hr) 80%,transparent);
  transition:transform .2s,box-shadow .2s,border-color .2s}
/* dotted grain + a soft rotating aura so the banner feels alive */
.hb-rate::before{content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;opacity:.3;background-image:radial-gradient(circle,rgba(255,255,255,.1) 1px,transparent 1.4px);background-size:16px 16px;-webkit-mask-image:linear-gradient(120deg,transparent,#000 75%);mask-image:linear-gradient(120deg,transparent,#000 75%)}
.hb-rate__glow{position:absolute;z-index:-1;top:-40%;right:-10%;width:60%;height:180%;pointer-events:none;border-radius:50%;filter:blur(60px);opacity:.5;background:radial-gradient(circle,color-mix(in srgb,var(--hr) 70%,transparent),transparent 70%)}
:root:not([data-motion="reduce"]) .hb-rate__glow{animation:hb-rate-drift 9s ease-in-out infinite alternate}
@keyframes hb-rate-drift{from{transform:translate(0,0) scale(1)}to{transform:translate(-18%,10%) scale(1.15)}}
.hb-rate:hover,.hb-rate:focus-visible{transform:translateY(-4px);border-color:var(--hr);box-shadow:0 34px 70px -28px var(--hr),0 0 0 1px var(--hr),inset 0 0 50px -20px color-mix(in srgb,var(--hr) 90%,transparent);outline:none}
.hb-rate:focus-visible{outline:2px solid var(--hr);outline-offset:3px}
.hb-rate__main{display:flex;flex-direction:column;gap:16px;min-width:0}
.hb-rate__top{display:flex;align-items:center;gap:20px;min-width:0}
.hb-rate__icon{flex:none;display:grid;place-items:center;width:88px;height:88px;border-radius:22px;color:var(--hr);background:color-mix(in srgb,var(--hr) 16%,rgba(0,0,0,.4));border:1px solid color-mix(in srgb,var(--hr) 50%,transparent);box-shadow:inset 0 0 26px -8px var(--hr),0 10px 30px -16px var(--hr)}
.hb-rate__icon svg{width:60px;height:60px}
:root:not([data-motion="reduce"]) .hb-rate:hover .hb-rate__icon svg{animation:hb-rate-bob .9s ease-in-out infinite alternate}
@keyframes hb-rate-bob{from{transform:translateY(0) rotate(-4deg)}to{transform:translateY(-3px) rotate(4deg)}}
.hb-rate__head{display:grid;gap:4px;min-width:0}
.hb-rate__eyebrow{font:600 .72rem var(--sx-mono);letter-spacing:.14em;text-transform:uppercase;color:var(--hr)}
.hb-rate__head strong{font:800 clamp(1.7rem,3.4vw,2.5rem)/1.02 var(--sx-display);letter-spacing:-.02em;
  background:linear-gradient(100deg,var(--sx-text),color-mix(in srgb,var(--hr) 75%,var(--sx-text)));-webkit-background-clip:text;background-clip:text;color:transparent}
.hb-rate__lead{color:var(--sx-muted);font-size:1.02rem;line-height:1.5;max-width:68ch}
.hb-rate__tags{display:flex;flex-wrap:wrap;gap:7px}
.hb-rate__tags span{padding:5px 13px;border-radius:999px;font:600 .78rem var(--sx-display);color:var(--sx-text);background:color-mix(in srgb,var(--hr) 10%,rgba(255,255,255,.05));border:1px solid color-mix(in srgb,var(--hr) 32%,var(--sx-line))}
.hb-rate__foot{display:flex;margin-top:4px}
.hb-rate__cta{display:inline-flex;align-items:center;gap:9px;padding:14px 26px;border-radius:999px;font:700 1.05rem var(--sx-display);color:#06140d;background:linear-gradient(135deg,var(--hr),color-mix(in srgb,var(--hr) 55%,var(--hr2)));box-shadow:0 14px 32px -12px var(--hr);transition:transform .2s,box-shadow .2s}
.hb-rate:hover .hb-rate__cta{transform:translateX(3px);box-shadow:0 18px 40px -12px var(--hr)}
/* right-side ratings visual (decorative) — uses Wiki-Chip Dex's own CPU-chip mood icons (0 Awful .. 5 Must play) */
.hb-rate__aside{display:none;flex-direction:column;gap:14px;align-self:center;--chip-bg:#0d1014}
.hb-rate__widget{display:grid;gap:11px;padding:16px 18px;border-radius:18px;background:color-mix(in srgb,var(--hr) 9%,rgba(0,0,0,.34));border:1px solid color-mix(in srgb,var(--hr) 34%,var(--sx-line));box-shadow:inset 0 0 30px -20px var(--hr)}
.hb-rate__wlabel{font:600 .68rem var(--sx-mono);letter-spacing:.14em;text-transform:uppercase;color:var(--sx-muted)}
.hb-rate__chips{display:flex;gap:4px;justify-content:space-between}
.hb-rate__chip{flex:0 0 auto;line-height:0;color:color-mix(in srgb,var(--hr) 55%,var(--sx-muted))}
.hb-rate__chip svg{width:30px;height:30px;display:block}
/* the top mood lit up in the full accent, like a chosen rating */
.hb-rate__chip--5{color:var(--hr);filter:drop-shadow(0 2px 8px color-mix(in srgb,var(--hr) 55%,transparent))}
.hb-rate__wscale{display:flex;justify-content:space-between;font:600 .68rem var(--sx-mono);letter-spacing:.04em;color:var(--sx-muted)}
.hb-rate__wnote{font:600 .82rem var(--sx-display);color:var(--sx-text)}
@media (min-width:780px){
  .hb-rate{grid-template-columns:minmax(0,1fr) 262px}
  .hb-rate__aside{display:flex}
}
:root[data-theme="light"] .hb-rate{background:radial-gradient(130% 120% at 0% 0%,color-mix(in srgb,var(--hr) 18%,transparent),transparent 58%),radial-gradient(130% 120% at 100% 100%,color-mix(in srgb,var(--hr2) 14%,transparent),transparent 60%),var(--sx-surface)}
:root[data-theme="light"] .hb-rate__tags span{background:color-mix(in srgb,var(--hr) 10%,#fff)}
:root[data-theme="light"] .hb-rate__cta{color:#fff}
:root[data-theme="light"] .hb-rate__icon{background:color-mix(in srgb,var(--hr) 12%,#fff)}
@media (max-width:640px){.hb-rate{padding:22px 20px}.hb-rate__top{gap:14px}.hb-rate__icon{width:64px;height:64px;border-radius:18px}.hb-rate__icon svg{width:44px;height:44px}.hb-rate__cta{width:100%;justify-content:center}.hb-rate__foot{margin-top:2px}}

/* ---- "Want to work with me?" footer link (opens the contact gate) ---- */
.hb-hire-row{margin:26px 0 2px;text-align:center}
.hb-hire{display:inline-flex;align-items:center;gap:10px;font:600 1rem var(--sx-display);color:var(--sx-text);text-decoration:none;
  padding:11px 20px;border:1px solid var(--sx-line-2);border-radius:999px;background:var(--sx-glass);backdrop-filter:blur(8px);
  transition:transform .18s,border-color .18s,color .18s,box-shadow .18s}
.hb-hire:hover,.hb-hire:focus-visible{transform:translateY(-2px);color:var(--sx-accent);border-color:var(--sx-accent);box-shadow:0 16px 40px -24px var(--sx-accent);outline:none}
.hb-hire__dot{width:9px;height:9px;border-radius:50%;background:var(--sx-ok);box-shadow:0 0 0 0 var(--sx-ok)}
:root:not([data-motion="reduce"]) .hb-hire__dot{animation:sx-ping 2.4s infinite}

/* ---- Sound-reactive accent (idea #49): assets/audio.js sets --sx-pulse (0..1) while the soundscape plays ---- */
:root[data-au-pulse] .avenues .avenue{box-shadow:0 0 calc(18px + 46px * var(--sx-pulse,0)) calc(-14px + 6px * var(--sx-pulse,0)) var(--accent,var(--sx-accent))}
:root[data-au-pulse] .au-btn{box-shadow:0 0 calc(4px + 16px * var(--sx-pulse,0)) color-mix(in srgb,var(--sx-accent) 70%,transparent)}

/* ===================================================================================================
   DMA: An Enthusiast's Haven — ROP-forward hero + "More from Anders" (landing rework, Nov 2026)
   =================================================================================================== */
.hb-hero{padding-bottom:22px}
/* wordmark: "DMA" is one solid bright accent (hub-fx picks one of 4 per visit) with a clean glow;
   the rest stays crisp white. No gradient fill — a flat colour reads clean, never muddy. */
.hb-h1{margin:0;font:800 clamp(2.4rem,6.4vw,4rem)/1.03 var(--sx-display);letter-spacing:-.02em;color:var(--sx-text);
  --h1a:var(--games,#36d39a)}
.hb-h1.h1c-rop{--h1a:var(--games,#36d39a)}
.hb-h1.h1c-ac{--h1a:var(--craft,#ff7a1f)}
.hb-h1.h1c-anyps{--h1a:var(--anyps,#3d8bff)}
.hb-h1.h1c-arcade{--h1a:#b07dff}
.hb-h1__mark{color:var(--h1a);text-shadow:0 0 22px color-mix(in srgb,var(--h1a) 42%,transparent)}
.hb-h1__colon{color:color-mix(in srgb,var(--h1a) 70%,var(--sx-text))}
.hb-h1__rest{color:var(--sx-text)}
/* byline: tucked under the title, aligned to its right edge */
.hb-byline{margin:6px 0 0;text-align:right;max-width:min(100%,16ch);margin-left:auto}
.hb-byline span{display:inline-flex;align-items:center;gap:8px;font:600 .8rem var(--sx-mono);letter-spacing:.14em;text-transform:uppercase;color:var(--sx-muted)}
.hb-byline span::before{content:"";width:22px;height:1px;background:linear-gradient(90deg,transparent,color-mix(in srgb,var(--games,#36d39a) 70%,transparent))}
.hb-sub{max-width:54ch;margin-top:16px}
.hb-sub strong{color:var(--sx-text);font-weight:700}

/* hero search bar (plain GET form → /games/?q=) */
.hb-search{display:flex;align-items:center;gap:8px;max-width:620px;margin:22px 0 0;position:relative;text-shadow:none;
  background:var(--sx-glass);border:1px solid var(--sx-line-2);border-radius:16px;padding:7px 7px 7px 14px;
  -webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);box-shadow:0 18px 44px -28px rgba(0,0,0,.8);
  transition:border-color .15s,box-shadow .15s}
.hb-search:focus-within{border-color:var(--sx-accent);box-shadow:0 18px 44px -24px var(--sx-accent)}
.hb-search__ico{flex:none;width:20px;height:20px;color:var(--sx-muted)}
.hb-search__in{flex:1 1 auto;min-width:0;border:0;background:none;outline:none;color:var(--sx-text);font:500 1.02rem var(--sx-display);padding:9px 2px}
.hb-search__in::placeholder{color:var(--sx-muted)}
.hb-search__in::-webkit-search-cancel-button{-webkit-appearance:none;appearance:none}
.hb-search__go{flex:none;cursor:pointer;border:0;border-radius:11px;padding:11px 20px;font:700 .98rem var(--sx-display);
  color:var(--sx-on-accent);background:var(--sx-accent);transition:filter .15s}
.hb-search__go:hover{filter:brightness(1.08)}
.hb-search__go:focus-visible{outline:2px solid var(--sx-accent);outline-offset:2px}

/* quick links under the search — pill buttons so they read clearly against the hero */
.hb-quick{display:flex;flex-wrap:wrap;gap:9px;margin:16px 0 0;font:600 .9rem var(--sx-display)}
.hb-quick a{display:inline-flex;align-items:center;color:var(--sx-text);text-decoration:none;padding:7px 15px;border-radius:999px;
  background:var(--sx-glass);border:1px solid var(--sx-line-2);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);
  box-shadow:0 8px 22px -18px rgba(0,0,0,.8);transition:transform .15s,border-color .15s,color .15s,box-shadow .15s}
.hb-quick a:hover,.hb-quick a:focus-visible{transform:translateY(-1px);color:var(--sx-accent);border-color:var(--sx-accent);box-shadow:0 12px 26px -16px var(--sx-accent);outline:none}

/* "More from Anders" — demoted projects */
.hb-more{margin-top:40px;padding-top:26px;border-top:1px solid var(--sx-line-2)}
.hb-more__head{display:flex;align-items:baseline;justify-content:space-between;gap:12px;margin:0 2px 16px}
.hb-more__h{margin:0;font:700 1.25rem var(--sx-display);letter-spacing:-.01em;color:var(--sx-text)}
.hb-more__all{font:600 .9rem var(--sx-display);color:var(--sx-accent);text-decoration:none;white-space:nowrap}
.hb-more__all:hover{text-decoration:underline;text-underline-offset:3px}
.hb-more .avenues .avenue .art{height:150px}
/* glowing coloured border on each project card (uses the card's own --accent) */
.hb-more .avenues .avenue{border-color:color-mix(in srgb,var(--accent) 55%,var(--line));
  box-shadow:0 0 0 1px color-mix(in srgb,var(--accent) 24%,transparent),0 18px 40px -28px color-mix(in srgb,var(--accent) 85%,transparent),inset 0 0 36px -26px color-mix(in srgb,var(--accent) 90%,transparent)}
.hb-more .avenues .avenue:hover,.hb-more .avenues .avenue:focus-visible{box-shadow:0 0 0 1px var(--accent),0 24px 54px -26px var(--accent),inset 0 0 40px -22px color-mix(in srgb,var(--accent) 90%,transparent)}

/* slim tile row (Arcade / Trophies / Discord) — each with a glowing coloured border */
.hb-tiles{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:12px;margin-top:14px}
.hb-tile{display:flex;align-items:center;gap:13px;padding:14px 16px;border-radius:16px;text-decoration:none;color:var(--sx-text);text-shadow:none;
  background:var(--sx-glass);border:1px solid color-mix(in srgb,var(--tile-c,var(--sx-accent)) 50%,var(--sx-line));-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);
  box-shadow:0 0 0 1px color-mix(in srgb,var(--tile-c,var(--sx-accent)) 20%,transparent),0 14px 30px -26px color-mix(in srgb,var(--tile-c,var(--sx-accent)) 85%,transparent);
  transition:transform .15s,border-color .15s,box-shadow .15s}
.hb-tile:hover,.hb-tile:focus-visible{transform:translateY(-2px);border-color:var(--tile-c,var(--sx-accent));box-shadow:0 0 0 1px var(--tile-c,var(--sx-accent)),0 20px 42px -24px var(--tile-c,var(--sx-accent));outline:none}
.hb-tile:focus-visible{outline:2px solid var(--tile-c,var(--sx-accent));outline-offset:2px}
.hb-tile__ico{flex:none;width:42px;height:42px;display:grid;place-items:center;border-radius:12px;color:var(--tile-c,var(--sx-accent));
  background:color-mix(in srgb,var(--tile-c,var(--sx-accent)) 14%,transparent);border:1px solid color-mix(in srgb,var(--tile-c,var(--sx-accent)) 40%,transparent)}
.hb-tile__ico svg{width:22px;height:22px}
.hb-tile__txt{display:grid;gap:1px;min-width:0}
.hb-tile__txt strong{font:700 1rem var(--sx-display);color:var(--sx-text)}
.hb-tile__txt span{font-size:.84rem;color:var(--sx-muted)}
.hb-tile--arcade{--tile-c:#ffbe3d}.hb-tile--trophies{--tile-c:var(--games,#36d39a)}.hb-tile--discord{--tile-c:#5865f2}

@media (max-width:640px){
  .hb-search{max-width:none}
  .hb-search__go{padding:11px 15px}
  .hb-more__head{flex-wrap:wrap}
}

/* ---- ROP banner in Wiki-Chip Dex's palette: light green, accented with black, grey and gold ---- */
.hb-rate{--hr:#36d39a;--hr2:#7ef0c0;--hr-gold:#e3b54a;--hr-gold2:#f6d488;--hr-grey:#8d9691;
  background:radial-gradient(120% 110% at 0% 0%,rgba(54,211,154,.20),transparent 55%),radial-gradient(90% 90% at 100% 100%,rgba(227,181,74,.10),transparent 60%),linear-gradient(135deg,#050807 0%,#0c110f 55%,#161c19 100%);
  border-color:color-mix(in srgb,var(--hr) 62%,#000)}
.hb-rate::before{background-image:radial-gradient(circle,rgba(141,150,145,.22) 1px,transparent 1.4px)}
.hb-rate__glow{background:radial-gradient(circle,rgba(54,211,154,.55),rgba(227,181,74,.14) 55%,transparent 72%)}
.hb-rate__icon{background:linear-gradient(145deg,#0a0f0d,#151b18);border-color:color-mix(in srgb,var(--hr-gold) 55%,transparent);box-shadow:inset 0 0 26px -10px var(--hr),0 10px 30px -16px var(--hr),0 0 0 1px rgba(0,0,0,.6)}
.hb-rate__eyebrow{color:var(--hr-gold);display:inline-flex;align-items:center;gap:9px}
.hb-rate__eyebrow::before{content:"";width:20px;height:2px;border-radius:2px;background:linear-gradient(90deg,var(--hr-gold2),var(--hr-gold))}
.hb-rate__head strong{background:linear-gradient(100deg,#f4f8f5 10%,var(--hr2) 60%,var(--hr) 95%);-webkit-background-clip:text;background-clip:text}
.hb-rate__lead{color:#c9d2cd;padding-top:12px;border-top:1px solid;border-image:linear-gradient(90deg,var(--hr-gold),rgba(141,150,145,.28) 45%,transparent) 1}
.hb-rate__tags span{color:#dfe6e1;background:rgba(141,150,145,.10);border-color:rgba(141,150,145,.30)}
.hb-rate__tags span:first-child{color:var(--hr-gold2);border-color:color-mix(in srgb,var(--hr-gold) 55%,transparent);background:rgba(227,181,74,.08)}
.hb-rate__cta{color:#03110b;background:linear-gradient(135deg,var(--hr),var(--hr2));box-shadow:0 14px 32px -12px var(--hr),0 0 0 1px color-mix(in srgb,var(--hr-gold) 50%,transparent)}
.hb-rate__widget{--chip-bg:#070a09;background:linear-gradient(160deg,#080b0a,#121815);border-color:rgba(141,150,145,.30);box-shadow:inset 0 0 30px -20px var(--hr),0 0 0 1px rgba(0,0,0,.5)}
.hb-rate__wlabel{color:var(--hr-gold)}
.hb-rate__wscale{color:var(--hr-grey)}
/* each mood in Wiki-Chip Dex's own rating colours (same as the chips on /games/) */
.hb-rate__chip--0{color:#ff5d5d}.hb-rate__chip--1{color:#ff8a4c}.hb-rate__chip--2{color:#ffb547}
.hb-rate__chip--3{color:#f0d95c}.hb-rate__chip--4{color:#9be36f}.hb-rate__chip--5{color:#3ee08a;filter:drop-shadow(0 2px 8px rgba(62,224,138,.55))}
.hb-rate__chip{opacity:.9}.hb-rate__chip--5{opacity:1}
.hb-rate:hover,.hb-rate:focus-visible{box-shadow:0 34px 70px -28px var(--hr),0 0 0 1px var(--hr),0 0 0 3px rgba(227,181,74,.18),inset 0 0 50px -20px color-mix(in srgb,var(--hr) 90%,transparent)}
/* the banner stays a dark card in light mode too, like the ROP landing header */
:root[data-theme="light"] .hb-rate{background:radial-gradient(120% 110% at 0% 0%,rgba(54,211,154,.20),transparent 55%),radial-gradient(90% 90% at 100% 100%,rgba(227,181,74,.10),transparent 60%),linear-gradient(135deg,#050807,#0c110f 55%,#161c19);color:#eef3ef}
:root[data-theme="light"] .hb-rate__tags span{background:rgba(141,150,145,.10)}
:root[data-theme="light"] .hb-rate__icon{background:linear-gradient(145deg,#0a0f0d,#151b18)}
:root[data-theme="light"] .hb-rate__cta{color:#03110b}
:root[data-theme="light"] .hb-rate__wnote{color:#eef3ef}

/* ---- "Now" as a rotating banner (now.json slides): AnyPS first, then Wizard of the Sprint; pips to switch ---- */
.hb-ns .hb-now__head{margin-bottom:10px}
.hb-ns__track{display:grid;border-radius:18px;overflow:hidden;isolation:isolate}
.hb-ns__slide{--ns-c:var(--sx-accent);grid-area:1/1;display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);min-height:220px;border-radius:18px;overflow:hidden;
  border:1px solid color-mix(in srgb,var(--ns-c) 50%,transparent);background:linear-gradient(120deg,#07090c,#0d1117);
  box-shadow:inset 0 0 60px -30px var(--ns-c);opacity:0;visibility:hidden;transform:translateX(16px);transition:opacity .5s,transform .5s,visibility 0s .5s}
.hb-ns__slide.is-on{opacity:1;visibility:visible;transform:none;transition:opacity .5s,transform .5s,visibility 0s}
.hb-ns__body{order:1;display:flex;flex-direction:column;justify-content:center;gap:8px;padding:24px 26px;min-width:0;position:relative;z-index:1}
.hb-ns__art{order:2;position:relative;min-height:160px;overflow:hidden}
.hb-ns__art svg{position:absolute;inset:0;width:100%;height:100%;display:block}
.hb-ns__art::after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,#0b0e13 0%,transparent 40%)}
.hb-ns__art--wizard svg{image-rendering:pixelated}
.hb-ns__kind{font:600 .72rem/1.2 var(--sx-mono);letter-spacing:.14em;text-transform:uppercase;color:var(--ns-c)}
.hb-ns .hb-ns__title{margin:0;font:800 clamp(1.4rem,2.6vw,1.9rem)/1.08 var(--sx-display);letter-spacing:-.015em;color:#f3f5f8}
.hb-ns__note{margin:0;color:#c3c9d2;font-size:.98rem;line-height:1.5;max-width:56ch}
.hb-ns__cta{align-self:flex-start;margin-top:6px;display:inline-flex;align-items:center;padding:10px 18px;border-radius:999px;font:700 .95rem var(--sx-display);text-decoration:none;color:#fff;
  background:var(--ns-c);box-shadow:0 10px 26px -12px var(--ns-c);transition:transform .15s,filter .15s}
.hb-ns__cta:hover{transform:translateX(2px);filter:brightness(1.1)}
.hb-ns__cta:focus-visible{outline:2px solid #fff;outline-offset:2px}
.hb-ns__pips{display:flex;justify-content:center;gap:8px;margin-top:12px}
.hb-ns__pip{all:unset;cursor:pointer;position:relative;width:34px;height:6px;border-radius:999px;background:var(--sx-line-2);overflow:hidden;padding:8px 0;background-clip:content-box}
.hb-ns__pip:focus-visible{outline:2px solid var(--sx-accent);outline-offset:2px}
.hb-ns__fill{position:absolute;left:0;top:8px;height:6px;width:0;border-radius:999px;background:var(--sx-text)}
.hb-ns__pip.is-on .hb-ns__fill{width:100%}
.hb-ns.is-cycling .hb-ns__pip.is-on .hb-ns__fill{width:0;animation:hb-ns-fill 8s linear forwards}
.hb-ns.is-paused .hb-ns__pip.is-on .hb-ns__fill{animation-play-state:paused}
@keyframes hb-ns-fill{to{width:100%}}
:root[data-motion="reduce"] .hb-ns__slide{transition:none;transform:none}
@media (max-width:640px){
  .hb-ns__slide{grid-template-columns:1fr;min-height:0}
  .hb-ns__art{order:0;min-height:120px}
  .hb-ns__art::after{background:linear-gradient(0deg,#0b0e13 0%,transparent 55%)}
  .hb-ns__body{padding:16px 18px 20px}
}
.hb-ns__arr{margin-left:.45em;transition:translate .15s}.hb-ns__cta:hover .hb-ns__arr{translate:3px 0}

/* AndersCraft Studio quick-access tile: AndersCraft orange, same size as its neighbours */
.hb-tile--studio{--tile-c:var(--craft,#ff7a1f)}
.hb-tile--andersmod{--tile-c:#f2a93b}
.hb-tile--ramses{--tile-c:#d4af37}

/* ---- The Project Library button: one big way into everything else (replaces the old avenue cards + tiles).
 * Frosted glass, no hard edge: a soft accent glow, a little fan of project icons in their own colours, and an arrow
 * that slides on hover. Links to /projects/. ---- */
.hb-lib{margin-top:40px}
.hb-lib__btn{position:relative;isolation:isolate;overflow:hidden;display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:26px;
  padding:30px 34px;border-radius:28px;text-decoration:none;color:var(--sx-text);text-shadow:none;
  background:linear-gradient(135deg,color-mix(in srgb,var(--sx-accent) 22%,rgba(16,12,16,.78)),rgba(14,12,18,.72) 55%,color-mix(in srgb,var(--sx-accent) 8%,rgba(14,12,18,.78)));
  -webkit-backdrop-filter:blur(14px) saturate(1.2);backdrop-filter:blur(14px) saturate(1.2);
  box-shadow:0 1px 0 rgba(255,255,255,.07) inset,0 30px 70px -34px color-mix(in srgb,var(--sx-accent) 85%,transparent),0 12px 30px -20px rgba(0,0,0,.8);
  transition:transform .22s var(--sx-ease,ease),box-shadow .22s}
.hb-lib__btn:hover,.hb-lib__btn:focus-visible{transform:translateY(-3px);outline:none;
  box-shadow:0 1px 0 rgba(255,255,255,.1) inset,0 0 0 2px color-mix(in srgb,var(--sx-accent) 55%,transparent),0 40px 80px -30px var(--sx-accent),0 12px 30px -20px rgba(0,0,0,.8)}
.hb-lib__btn:focus-visible{outline:2px solid var(--sx-accent);outline-offset:4px}
.hb-lib__glow{position:absolute;z-index:-1;width:420px;height:420px;right:-120px;top:-210px;border-radius:50%;pointer-events:none;
  background:radial-gradient(circle,color-mix(in srgb,var(--sx-accent) 60%,transparent),transparent 65%);opacity:.55;transition:opacity .3s,transform .6s}
.hb-lib__btn:hover .hb-lib__glow{opacity:.85;transform:translateX(-40px)}
.hb-lib__stack{display:flex;padding-left:14px}
.hb-lib__dot{width:56px;height:56px;margin-left:-10px;display:grid;place-items:center;border-radius:18px;color:var(--c);
  background:color-mix(in srgb,var(--c) 18%,rgba(12,10,14,.92));box-shadow:0 0 0 3px rgba(12,10,14,.85),0 10px 24px -12px var(--c);
  transition:transform .25s var(--sx-ease,ease)}
.hb-lib__dot svg{width:26px;height:26px}
.hb-lib__dot--ramses{--c:#d4af37;z-index:5}.hb-lib__dot--craft{--c:var(--craft,#ff7a1f);z-index:4}.hb-lib__dot--anyps{--c:var(--anyps,#3d8bff);z-index:3}
.hb-lib__dot--mod{--c:#f2a93b;z-index:2}.hb-lib__dot--arcade{--c:#b07dff;z-index:1}
.hb-lib__btn:hover .hb-lib__dot{transform:translateY(-4px) rotate(-4deg)}
.hb-lib__btn:hover .hb-lib__dot:nth-child(2){transform:translateY(-6px) rotate(3deg)}
.hb-lib__btn:hover .hb-lib__dot:nth-child(4){transform:translateY(-6px) rotate(5deg)}
.hb-lib__txt{display:grid;gap:6px;min-width:0}
.hb-lib__eyebrow{font:600 .7rem/1 var(--sx-mono);letter-spacing:.16em;text-transform:uppercase;color:var(--sx-accent)}
.hb-lib__title{font:800 clamp(1.5rem,3.4vw,2.3rem)/1.05 var(--sx-display);letter-spacing:-.02em;color:#f6f2f3}
.hb-lib__sub{color:var(--sx-muted);font-size:.98rem;line-height:1.45;max-width:58ch}
.hb-lib__go{width:58px;height:58px;display:grid;place-items:center;border-radius:50%;color:var(--sx-on-accent,#fff);background:var(--sx-accent);
  box-shadow:0 14px 30px -12px var(--sx-accent);transition:transform .22s var(--sx-ease,ease)}
.hb-lib__go svg{width:26px;height:26px}
.hb-lib__btn:hover .hb-lib__go{transform:translateX(5px)}
:root[data-motion="reduce"] .hb-lib__btn,:root[data-motion="reduce"] .hb-lib__dot,:root[data-motion="reduce"] .hb-lib__go,:root[data-motion="reduce"] .hb-lib__glow{transition:none}
:root[data-theme="light"] .hb-lib__title{color:#1b1418}
@media (max-width:720px){
  .hb-lib__btn{grid-template-columns:1fr auto;gap:18px;padding:24px 22px}
  .hb-lib__stack{grid-column:1/-1}
  .hb-lib__dot{width:46px;height:46px;border-radius:15px}
  .hb-lib__go{width:48px;height:48px}
}
