/* Clubhouse sheets (js/screens/clubhouse.js). Only what app.css has no class for: the peanut jar, the floor-plan cards, the face
   row, the chat list and the invite picks. Everything else in those sheets is app.css (.hero, .card.rank, .opt, .tabs, .chips, .btn). */

/* a long club name floats a size smaller so two lines stay clear of the HUD */
.ftitle.chlong{font-size:1.9rem}

/* ---------- the peanut jar ---------- */
.chjarsvg{display:block;width:100%;height:100%;overflow:visible}
.chjarsvg .glass{fill:#eef7f7;stroke:var(--ink);stroke-width:2.6}
.chjarsvg .rim{fill:none;stroke:var(--ink);stroke-width:2.6}
.chjarsvg .nut{fill:#e9b779;stroke:var(--ink);stroke-width:1}
.chjarsvg .shine{stroke:#fff;stroke-width:3.4;stroke-linecap:round;opacity:.8}
.chjarsvg .lid{fill:var(--wood,#e8b98a);stroke:var(--ink);stroke-width:2.4}
.chjarsvg .lidl{stroke:var(--wood-dark,#c98f60);stroke-width:1.6;stroke-linecap:round}
.chjarsvg .tag{fill:var(--cream);stroke:var(--ink);stroke-width:1.4}
.chjarsvg .hrt{fill:var(--rose)}
/* the jar card: a .hero whose window is the jar on a little shelf of light */
.hero.chjar{position:relative;align-items:center}
.hero.chjar .jarw{position:relative;flex:0 0 4.4rem;height:5.4rem;display:grid;place-items:center}
.hero.chjar .jarw::after{content:"";position:absolute;left:8%;right:8%;bottom:.02rem;height:.5rem;border-radius:50%;background:rgba(138,93,85,.16);z-index:0}
.hero.chjar .jarw svg{position:relative;z-index:1;width:4.2rem;height:5.25rem}
.hero.chjar .hb{font-size:1.65rem}
.hero.chjar .bar{margin:.35rem 0 .1rem}
.hero.chjar small{margin:.3rem 0 .35rem}
.hero.chjar[role=button]{cursor:pointer;padding-right:2rem;transition:transform .12s var(--pop)}
.hero.chjar[role=button]:active{transform:scale(.985)}
.hero.chjar .chev{position:absolute;right:.55rem;top:50%;width:1.2rem;height:1.2rem;margin-top:-.6rem;opacity:.55;transform:rotate(-90deg)}
.hero.chjar .chev svg{display:block;width:100%;height:100%}
/* a full jar glows once and stays warm */
.hero.chjar .glow{position:absolute;inset:-25%;border-radius:50%;background:radial-gradient(closest-side,rgba(255,232,160,.95),rgba(255,232,160,0));animation:chGlow 2.6s ease-out both;z-index:0}
.hero.chjar.full{background:#fbefd0}
@keyframes chGlow{0%{opacity:0}35%{opacity:1}100%{opacity:.6}}
@media (prefers-reduced-motion:reduce){.hero.chjar .glow{animation:none;opacity:.6}}

/* ---------- faces in a row ---------- */
.chfaces{display:inline-flex;align-items:center;flex:none}
.chfaces i{width:1.75rem;height:1.75rem;border-radius:50%;overflow:hidden;border:.13rem solid var(--ink);display:grid;place-items:center;flex:none}
.chfaces i+i{margin-left:-.5rem}
.chfaces .face{width:125%;height:125%;object-fit:cover;object-position:50% 20%}
.chfaces em{font-style:normal;font-size:.78rem;color:#8a5d55;margin-left:.3rem}

/* ---------- names that never run off a row ---------- */
.chname{font-weight:400;display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.chline{overflow-wrap:break-word;line-height:1.2}
/* the 3rem animal tile of the Friends list */
.chav{width:3rem;height:3rem;border-radius:.7rem;border:.13rem solid var(--ink);flex:none;overflow:hidden;display:grid;place-items:center}
.chav.big{width:4.4rem;height:4.4rem;border-radius:1rem;border-width:var(--lw);box-shadow:var(--shadow)}
.chpop{display:flex;justify-content:center;margin-top:.2rem}

/* ---------- floor plans (a fixed floor colour: --ground follows the place you are in) ---------- */
.chlays{margin-top:.1rem}
.opt.chlay{position:relative;display:flex;flex-direction:column;align-items:center;gap:.25rem;padding:.55rem .35rem .5rem;text-align:center;font-size:.95rem;line-height:1.15}
.opt.chlay b{font-weight:400}
/* picked like the name chips above it: a soft border until chosen, then butter with the ink border */
.opt.chlay{border-width:.13rem;border-color:rgba(138,93,85,.45);box-shadow:none}.opt.chlay:active{box-shadow:none;transform:scale(.97)}.opt.chlay[aria-pressed=true]{background:var(--butter);border-color:var(--ink)}
.opt.chlay .ptag{position:absolute;top:-.62rem;left:50%;transform:translateX(-50%);z-index:1}
.chplan{display:block;width:100%;max-width:6rem;height:auto;aspect-ratio:10/9}
.chplan .fl{fill:#f3dcae}
.chplan .zone.a{fill:rgba(179,217,234,.45)}
.chplan .zone.b{fill:rgba(181,220,192,.5)}
.chplan .tb{fill:var(--wood,#e8b98a);stroke:var(--ink);stroke-width:1}
.chplan .ch{fill:var(--paper);stroke:var(--ink);stroke-width:.9}
.chplan .rug{fill:#f9e4ea;stroke:var(--ink);stroke-width:.9}
.chplan .sofa{fill:var(--leaf);stroke:var(--ink);stroke-width:.9}
.chplan .pool{fill:var(--leaf-dark);stroke:var(--ink);stroke-width:.9}
.chplan .board{fill:var(--butter);stroke:var(--ink);stroke-width:.9}
.chplan .board.b{fill:#8fc29f}
.chplan .jig{fill:var(--sky);stroke:var(--ink);stroke-width:.9}
.chplan .stair{fill:#efe3cc;stroke:var(--ink);stroke-width:.9}
.chplan .st{stroke:var(--ink);stroke-width:.6}
.chplan .win{stroke:#8fc0db;stroke-width:4}
.chplan .wall{fill:none;stroke:var(--ink);stroke-width:2.6;stroke-linejoin:round}
.chplan .door{stroke:#f3dcae;stroke-width:3.4}
.chplan .arch{stroke:#f3dcae;stroke-width:3.4}
.chplan .rail{stroke:var(--ink);stroke-width:1.4;stroke-dasharray:2 3}

/* ---------- Make a Clubhouse ---------- */
.perks.chperks{margin:.1rem .1rem .2rem}
.perks.chperks .pb{width:2.5rem;height:2.5rem}
.chbad{color:#b0463b;margin-top:.35rem}
.field[aria-invalid=true]{border-color:#c0645a}
.card.chcost .grow small{display:block;color:#8a5d55;font-size:.8rem}
.card.chcost .amt{font-size:1.15rem}

/* ---------- chooser ---------- */
.card.chpickc{cursor:pointer;gap:.65rem;transition:transform .12s var(--pop)}
.card.chpickc:active{transform:scale(.98)}
:where(.layer.framed .sheet) .card.chpickc.me{background:#fdebc3}
.chpickc .chmini{flex:none;width:2.6rem;height:3.25rem}
.chpickc .chprog{gap:.4rem;margin-top:.3rem}
.chpickc .chprog .bar{flex:1;height:.6rem;border-width:.1rem}
.chpickc .chprog small{flex:none;font-size:.8rem;color:#8a5d55}
/* a closed Clubhouse: not tappable as a whole (only its Reopen button), its empty jar a little faded */
.card.chpickc.chold{cursor:default}.card.chpickc.chold:active{transform:none}.chpickc.chold .chmini{opacity:.6}

/* ---------- the club sheet ---------- */
.chacts{gap:.5rem;margin:-.1rem 0 .1rem}
.chacts .btn{flex:1 1 0;min-width:0}
.card.chmem .chmore{flex:none;width:2.1rem;height:2.1rem;min-height:0;padding:0;border-color:transparent;background:transparent;box-shadow:none;color:var(--ink)}
.card.chmem .chmore::before{display:none}
.card.chmem .chmore:active{background:rgba(138,93,85,.1)}
.card.chmem .chmore svg{width:1.2rem;height:1.2rem}
.card.chmem .sub{overflow-wrap:break-word;line-height:1.2}
/* the book icon stays beside its word when a long status wraps */
.card.chmem .hst{display:inline-flex;align-items:flex-start;max-width:100%}.card.chmem .hst>span:last-child{min-width:0;overflow-wrap:anywhere;hyphens:auto}
.card.chmem .hic,.card.rank .sub .hic{display:inline-block;width:.95rem;height:.95rem;vertical-align:-.15rem;margin-right:.2rem}
.card.rank .left.chrole.host{background:var(--butter)}
.card.rank .left.chrole.cohost{background:#e1f1e6}
.chtv{font-weight:400;font-size:1.1rem;flex:none}
.card input[data-target]{display:block;margin:.1rem 0 .2rem}
.sheet>.foot.col.chmenu .btn{flex:none}

/* ---------- the Club board ---------- */
:where(.layer.framed .sheet) .card.chbest{background:#fdebc3;margin-top:.7rem}
.card.chbest .chbi{flex:none;width:2.2rem;height:2.2rem}
.card.chbest .chbi svg{width:100%;height:100%;display:block}
.card.chbest b{font-weight:400}

/* ---------- chat ---------- */
.layer.framed .sheet.chchat{flex:1 1 auto}
.sheet.chchat>.body{flex:1 1 auto;padding-top:.7rem}
.chhead{position:sticky;top:-.7rem;z-index:2;background:var(--cream);gap:.5rem;padding:.3rem .1rem .55rem;margin:-.3rem 0 .4rem;border-bottom:.12rem dashed rgba(138,93,85,.18)}
.chhead .chname{flex:0 1 auto;min-width:0;font-size:1.15rem}
.chhead .chfaces{margin-left:auto}
.chhead .sub{flex:none;white-space:nowrap}
.chday{display:flex;justify-content:center;margin:.7rem 0 .45rem}
.chday span{font-size:.75rem;color:#8a5d55;padding:.08rem .6rem;border-radius:99rem;background:rgba(138,93,85,.08)}
.chsys{text-align:center;font-size:.8rem;color:#8a5d55;margin:.45rem 1rem}
.chmsg{display:flex;align-items:flex-end;gap:.4rem;max-width:86%;margin-top:.45rem}
.chmsg.chct{margin-top:.18rem}
.chmsg.chme{margin-left:auto;flex-direction:row-reverse}
.chfv{flex:none;width:2rem;height:2rem;border-radius:50%;overflow:hidden;border:.13rem solid var(--ink);display:grid;place-items:center}
.chfv .face{width:125%;height:125%;object-fit:cover;object-position:50% 20%}
.chfv.sp{border-color:transparent;background:none}
.chb{appearance:none;display:block;min-width:0;text-align:left;font:inherit;color:var(--ink);padding:.38rem .65rem .4rem;border-radius:1rem 1rem 1rem .3rem;background:var(--paper);border:.12rem solid rgba(138,93,85,.3);cursor:pointer;-webkit-touch-callout:none;user-select:none;-webkit-user-select:none;transition:transform .12s var(--pop)}
.chb:active{transform:scale(.97)}
.chmsg.chct:not(.chme) .chb{border-top-left-radius:.45rem}
.chmsg.chme .chb{background:#fdebc3;border-color:rgba(138,93,85,.35);border-radius:1rem 1rem .3rem 1rem;cursor:default}
.chmsg.chme.cont .chb{border-top-right-radius:.45rem}
.chmsg.chme .chb:active{transform:none}
.chwho{display:block;font-size:.74rem;color:#8a5d55;line-height:1.2;margin-bottom:.05rem}
.chtx{display:block;font-size:.98rem;line-height:1.3;overflow-wrap:anywhere}
.chtm{display:block;font-size:.68rem;color:#7d5a50;line-height:1.1;margin-top:.1rem;text-align:right}
.chmsg.chsk .chtx{display:flex;align-items:center;gap:.35rem}
.chst{flex:none;width:1.5rem;height:1.5rem}
.chst svg{width:100%;height:100%;display:block}
.chmsg.chsk:not(.chme) .chb{background:#e8f3ea}
.sheet>.foot.chfoot{gap:.45rem;padding-top:.5rem;border-top:.12rem dashed rgba(138,93,85,.18)}
.chquiet{display:flex;align-items:center;justify-content:center;gap:.35rem;font-size:.85rem}
.chquiet .ic{width:1.1rem;height:1.1rem;flex:none}
.chips.sayc.chstk{margin:0 -.85rem;padding:.1rem .85rem .35rem}
.chips.sayc.chstk .chip{font-size:.9rem}
.chips.sayc.chstk .chip svg{width:1.1rem;height:1.1rem;flex:none}
.chin{gap:.45rem}
.chin .field{padding:.55rem .8rem;font-size:1rem}
.btn.sm.chsend{width:2.9rem;min-height:2.65rem;padding:0 .6rem;flex:none}
.btn.sm.chsend svg{width:1.3rem;height:1.3rem}
.chquote{margin:.1rem .6rem .2rem;padding:.5rem .7rem;border-radius:1rem 1rem 1rem .3rem;background:var(--paper);border:.12rem solid rgba(138,93,85,.3);text-align:left;overflow-wrap:anywhere;line-height:1.3}

/* ---------- invite friends ---------- */
.card.chinv{gap:.6rem;transition:background .2s,transform .12s var(--pop)}
.card.chinv[role=button]{cursor:pointer}
.card.chinv[role=button]:active{transform:scale(.98)}
:where(.layer.framed .sheet) .card.chinv.sel{background:#fdebc3}
.card.chinv.dis{opacity:.6}
.chfr{width:2.7rem;height:2.7rem;border-radius:.7rem;border:.13rem solid var(--ink);flex:none;overflow:hidden;display:grid;place-items:center}
.chtick{flex:none;width:1.8rem;height:1.8rem;border-radius:50%;border:.14rem solid var(--ink);background:var(--paper);padding:.2rem;display:grid;place-items:center}
.card.chinv.sel .chtick{background:var(--leaf)}
.chtick svg{width:100%;height:100%;display:block}

/* ---------- an invite arrived ---------- */
.chinvite .chdoor{position:relative;width:7.6rem;height:6.2rem;margin:.5rem auto .2rem}
.chinvite .chdoor .jarw{position:absolute;left:.2rem;bottom:0;width:4.4rem;height:5.5rem}
.chinvite .chdoor .jarw svg{width:100%;height:100%}
.chinvite .chdav{position:absolute;right:0;bottom:.1rem;width:3.7rem;height:3.7rem;border-radius:50%;overflow:hidden;border:var(--lw) solid var(--ink);box-shadow:var(--shadow);display:grid;place-items:center}
.chinvite .chdav .face{width:125%;height:125%;object-fit:cover;object-position:50% 20%}
.chinvite h2{font-size:1.35rem}
.chinvite .chq{white-space:nowrap}
.chwho2{display:flex;align-items:center;justify-content:center;gap:.5rem;margin:.2rem 0 .5rem}
