/* Home v9 dashboard (2026-11-05 redesign, Track B). Tokens only - every colour comes from the site palette
   (--ink-2, --surface, --rule, --brass, --parchment, --text, --haze, --ember-text) or the section accent
   (--sec-accent, falls back to brass), so light, dark and the Stars themes restyle it with no edits here. */
.home,html.hh-in .signed-only.home{display:block;padding-block:clamp(1rem,4vw,1.6rem) 1rem;border-top:0}
.home[hidden]{display:none!important}
.home .heye{font-family:var(--mono);font-size:.66rem;letter-spacing:.24em;text-transform:uppercase;color:var(--sec-accent,var(--brass));margin:0}
.home .hhello{font-family:var(--display);font-weight:600;font-size:clamp(1.5rem,6.2vw,2rem);line-height:1.12;color:var(--parchment);margin:.25rem 0 1.1rem}
#hcards{display:flex;flex-direction:column;gap:.85rem}
.hc{position:relative;border:1px solid var(--rule);border-radius:1rem;padding:1rem 1.05rem 1.05rem;background:var(--surface);overflow:hidden}
.hc.big{padding:1.1rem 1.15rem 1.15rem}
.hc.live{border-color:var(--sec-accent,var(--brass))}
.hh{display:flex;align-items:center;gap:.5rem;margin:0 0 .55rem;min-height:1.5rem}
.hi{width:1.15rem;height:1.15rem;flex:none;fill:none;stroke:var(--sec-accent,var(--brass));stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.hl{flex:1;min-width:0;font-family:var(--mono);font-size:.68rem;letter-spacing:.16em;text-transform:uppercase;color:var(--haze)}
.hl b{color:var(--parchment);font-weight:500}
.hm{display:inline-flex;align-items:center;min-height:2.75rem;margin:-.6rem -.3rem -.6rem 0;padding:0 .3rem;font-family:var(--mono);font-size:.7rem;letter-spacing:.06em;color:var(--brass);text-decoration:none}
.hv{font-family:var(--display);font-weight:600;font-size:1.28rem;line-height:1.22;color:var(--parchment);margin:0 0 .25rem}
.hc.big .hv{font-size:1.5rem}
.hv.sm{font-size:1.05rem}
.hv a{color:inherit;text-decoration:none}
.hs{font-size:.9rem;line-height:1.45;color:var(--haze);margin:.1rem 0 0}
.hv .hs{font-family:var(--body);font-weight:400;font-size:.85rem}
.ha{display:flex;flex-wrap:wrap;gap:.5rem;margin-top:.8rem}
.hb{display:inline-flex;align-items:center;justify-content:center;gap:.3rem;min-height:2.75rem;padding:0 1.05rem;border-radius:99px;border:1px solid var(--rule);
  background:transparent;color:var(--parchment);font:500 .8rem/1 var(--mono);letter-spacing:.04em;text-decoration:none;cursor:pointer;-webkit-tap-highlight-color:transparent}
.hb.solid{background:var(--sec-accent,var(--brass));border-color:var(--sec-accent,var(--brass));color:var(--ink)}
.hb.ghost{color:var(--text)}
.hb:disabled{opacity:.6}
.hb:active{transform:scale(.97)}
.hok{display:inline-flex;align-items:center;min-height:2.75rem;font:500 .8rem/1 var(--mono);color:var(--sec-accent,var(--brass))}
.hph{display:block;width:calc(100% + 2.3rem);max-width:none;height:9.5rem;object-fit:cover;margin:-.3rem -1.15rem .8rem;border-block:1px solid var(--rule)}
.hlist{list-style:none;margin:.2rem 0 0;padding:0}
.hlist li{display:flex;justify-content:space-between;align-items:center;gap:.8rem;min-height:2.6rem;padding:.3rem 0;border-top:1px solid var(--rule);color:var(--text);font-size:.98rem}
.hlist li:first-child{border-top:0}
.hlist li.done span{text-decoration:line-through;opacity:.6}
.hlist a{color:inherit;text-decoration:none;min-width:0}
.hlist li>a{display:flex;flex-direction:column;flex:1}
.hlist li>a .hs{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.hlist .w{flex:none;font-family:var(--mono);font-size:.7rem;letter-spacing:.04em;color:var(--haze)}
.hlist .w.now{color:var(--sec-accent,var(--brass))}
.hdot{display:inline-block;width:.55rem;height:.55rem;border-radius:50%;margin-right:.5rem;background:var(--c,var(--brass));vertical-align:.08em}
.hchk{display:flex;align-items:center;gap:.6rem;min-height:2.75rem;cursor:pointer}
.hchk input{width:1.25rem;height:1.25rem;accent-color:var(--brass);flex:none}
.hn{flex:none;min-width:1.5rem;height:1.5rem;padding:0 .4rem;border-radius:99px;display:inline-flex;align-items:center;justify-content:center;background:var(--sec-accent,var(--brass));color:var(--ink);font:600 .7rem/1 var(--mono)}
.thaw{color:var(--ember-text)}
/* pets */
.hpet{display:flex;gap:.9rem;align-items:center}
.hpv{flex:none;width:5.2rem;height:4.8rem;display:block}
.hpsvg{width:100%;height:100%;animation:hbob 3.2s ease-in-out infinite;transform-origin:50% 90%}
.hpsvg.zz{animation:none;opacity:.85}
@keyframes hbob{50%{transform:translateY(-3px) scaleY(.98)}}
@media (prefers-reduced-motion:reduce){.hpsvg{animation:none}}
.hpt{flex:1;min-width:0}
.hmood{margin:0 0 .4rem}
.hmood.m-low,.hmood.m-sick{color:var(--ember-text)}
.hbars{display:grid;grid-template-columns:1fr 1fr;gap:.35rem .7rem}
.hbar{position:relative;display:block;height:.42rem;border-radius:99px;background:var(--rule);overflow:visible}
.hbars .hbar{margin-top:.95rem}
.hbar i{position:absolute;inset:0 auto 0 0;border-radius:99px;background:var(--sec-accent,var(--brass))}
.hbar.low i{background:var(--ember-text)}
.hbar em{position:absolute;left:0;bottom:.55rem;font:500 .6rem/1 var(--mono);font-style:normal;letter-spacing:.08em;text-transform:uppercase;color:var(--haze)}
.hstar{display:inline-flex;align-items:center;gap:.4rem;margin-top:.85rem;min-height:2.5rem;padding:0 .9rem;border:1px solid var(--rule);border-radius:99px;color:var(--parchment);text-decoration:none;font:500 .8rem/1 var(--mono)}
.hstar .hi{width:1rem;height:1rem}
.hstar span{color:var(--haze);font-size:.7rem}
/* for you strip */
.hfy{display:flex;gap:.55rem;overflow-x:auto;scrollbar-width:none;margin:0 calc(-1*var(--pad));padding:.1rem var(--pad);-webkit-overflow-scrolling:touch;scroll-snap-type:x proximity}
.hfy::-webkit-scrollbar{display:none}
.hfy a{flex:none;scroll-snap-align:start;display:grid;grid-template-columns:auto 1fr;grid-template-rows:auto auto;column-gap:.5rem;align-items:center;min-width:8.5rem;max-width:12rem;min-height:3.6rem;padding:.6rem .85rem;border:1px solid var(--rule);border-radius:.9rem;background:var(--surface);text-decoration:none}
.hfy .hi{grid-row:1/3}
.hfy b{font:600 .9rem/1.2 var(--display);color:var(--parchment);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.hfy span{font-size:.75rem;line-height:1.25;color:var(--haze);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
/* game night */
.hlive{color:var(--sec-accent,var(--brass))}
.hgl{display:flex;justify-content:space-between;align-items:center;gap:.8rem;flex-wrap:wrap;padding:.3rem 0}
.hgl .ha{margin-top:0}
.hstand{list-style:none;margin:.3rem 0 0;padding:0;counter-reset:r}
.hstand li{counter-increment:r;display:flex;align-items:center;gap:.6rem;min-height:2.2rem;border-top:1px solid var(--rule);color:var(--text)}
.hstand li:first-child{border-top:0}
.hstand li::before{content:counter(r);width:1.4rem;font:600 .75rem/1 var(--mono);color:var(--haze)}
.hstand li span{flex:1}
.hstand li b{font:500 .8rem/1 var(--mono);color:var(--parchment)}
.hstand li.me span{color:var(--sec-accent,var(--brass))}
/* feed */
.hgrid{display:grid;grid-template-columns:repeat(3,1fr);gap:.3rem;margin-top:.1rem}
.hgrid a{display:block;aspect-ratio:1;overflow:hidden;border-radius:.45rem;background:var(--rule)}
.hgrid img{width:100%;height:100%;object-fit:cover;display:block}
.hread{display:flex;flex-direction:column;gap:.35rem;padding:.4rem 0;color:var(--text);text-decoration:none;font-size:.95rem}
.hmov{display:flex;gap:.9rem;align-items:center;color:inherit;text-decoration:none}
.hmov img{width:3.6rem;height:5.4rem;object-fit:cover;border-radius:.4rem;flex:none}
.hmov>span{flex:1;min-width:0}
.hwx{display:flex;gap:.85rem;align-items:flex-start}
.hwx .hi{width:2rem;height:2rem;margin-top:.15rem}
.htemp{font-size:1.5rem}
/* skeleton: same boxes the real cards use, so the swap does not move the page */
#hcards.sk .hsk{height:8.5rem;border:1px solid var(--rule);border-radius:1rem;background:linear-gradient(90deg,var(--surface) 0,var(--rule) 50%,var(--surface) 100%);background-size:200% 100%;animation:hsk 1.4s linear infinite}
#hcards.sk .hsk.t{height:12rem}
#hcards.sk .hsk.s{height:4rem}
@keyframes hsk{to{background-position:-200% 0}}
@media (prefers-reduced-motion:reduce){#hcards.sk .hsk{animation:none}}
.home.stale #hcards{opacity:.96}
.htoast{position:fixed;left:50%;bottom:calc(5.5rem + env(safe-area-inset-bottom));transform:translate(-50%,1rem);opacity:0;z-index:60;padding:.7rem 1.1rem;border-radius:99px;
  background:var(--ink-2);border:1px solid var(--sec-accent,var(--brass));color:var(--parchment);font:500 .82rem/1.2 var(--mono);transition:opacity .3s,transform .3s;pointer-events:none}
.htoast.on{opacity:1;transform:translate(-50%,0)}
/* v9 (2026-11-05 round 2, Track HP): pet art slots, treats, For-you pet chip + photo nudge, Who's-in poll, GN tile art */
.hpv .pa-slot{width:100%;height:100%;display:block;line-height:0}.hpv .pa-slot svg{width:100%;height:100%}
.hpv{width:5.6rem;height:5.6rem}
.htreat{list-style:none;margin:.55rem 0 0;padding:0}.htreat li{font-size:.82rem;line-height:1.35;color:var(--hh-text,var(--text));padding:.12rem 0}
.htreat .w{color:var(--hh-muted,var(--haze));font-size:.72rem;margin-left:.2rem}
.hfy-pet{grid-template-columns:2.6rem 1fr!important}.hfy-pet .pa-slot{grid-row:1/3;width:2.6rem;height:2.6rem}
.hfy-n{flex:none;position:relative;display:flex}.hfy-n a{padding-right:2.1rem!important;border-color:var(--sec-accent,var(--brass))!important}
.hfy-x{position:absolute;top:.2rem;right:.2rem;width:2rem;height:2rem;border:0;border-radius:50%;background:transparent;color:var(--hh-muted,var(--haze));font-size:1.2rem;line-height:1;cursor:pointer}
.hfy-x:focus-visible{outline:2px solid var(--sec-accent,var(--brass))}
.hpoll{margin:.2rem 0 .7rem;padding:.7rem .8rem;border:1px solid var(--rule);border-radius:.9rem;background:var(--hh-surface-2,var(--surface));position:relative}
.hpoll .hgart{float:right;margin:0 0 .3rem .5rem;border-radius:.6rem}
.hpl{display:flex;flex-direction:column;gap:.1rem;margin:.3rem 0 0}.hpl-n b{font-weight:600;color:var(--hh-text,var(--text));margin-right:.15rem}
.hpl-b .hb{min-width:4.6rem;justify-content:center}
.hgl .hgart,.hgart{border-radius:.6rem;flex:none;object-fit:cover}
.hfy-n a{max-width:15rem!important}
