/* ═══════════════════════════════════════════════════════════════
   clans.css — clans everywhere: the crest, [TAG]s and monograms, the
   room (ui-room.js), the Clans page and season board (ui-clanhq.js),
   the clan chip and nav count, the workspace panel, Trenches and token
   page signals, the clan sheets (ui-clans.js).
   A clan's own colour arrives as --cc; it marks identity (the tag, the
   banner's edge, its activity bars) and nothing else.
   ═══════════════════════════════════════════════════════════════ */

/* ── the crest and the tag ── */
.cbadge{position:relative;display:inline-block;width:var(--cs);height:var(--cs);flex-shrink:0;line-height:0}
.cbadge>svg{display:block;width:100%;height:100%;overflow:visible}
.ctag{display:inline-flex;align-items:center;font:800 11px/1 var(--sans);letter-spacing:.03em;color:var(--cc);white-space:nowrap}
.ctag::before{content:"[";opacity:.5;margin-right:1px}
.ctag::after{content:"]";opacity:.5;margin-left:1px}
.ctag.big{font-size:14px}

/* ── monograms: initials on a colour of their own ── */
.mono-av{--ms:28px;position:relative;display:inline-grid;place-items:center;width:var(--ms);height:var(--ms);flex-shrink:0;border-radius:calc(var(--ms) * .32);
  background:hsl(var(--h) 26% 19%);color:hsl(var(--h) 62% 80%);box-shadow:inset 0 0 0 1px hsl(var(--h) 30% 32% / .8)}
.mono-av b{font:700 calc(var(--ms) * .38)/1 var(--sans);letter-spacing:-.01em}
.mono-av.you{box-shadow:inset 0 0 0 1.5px var(--brand)}
.mono-av.photo{background:var(--card-2)}                      /* you, with your own photo (Edit profile) */
.mono-av.photo img{display:block;width:100%;height:100%;object-fit:cover;border-radius:inherit}
.mono-av.on::after{content:"";position:absolute;right:-2px;bottom:-2px;width:9px;height:9px;border-radius:50%;background:var(--up);box-shadow:0 0 0 2px var(--card)}
.mono-crown{position:absolute;top:calc(var(--ms) * -.34);left:50%;transform:translateX(-50%);color:#f3c04f;line-height:0;filter:drop-shadow(0 1px 1px rgba(0,0,0,.6))}
.mono-stack{display:inline-flex;align-items:center;vertical-align:middle}
.mono-stack>*{box-shadow:0 0 0 2px var(--card)!important}
.mono-stack>*+*{margin-left:calc(var(--ms,28px) * -.08)}     /* reads as a group; the ring keeps them apart without covering initials */
.mono-more{--ms:16px;display:inline-grid;place-items:center;min-width:var(--ms);height:var(--ms);padding:0 3px;border-radius:calc(var(--ms) * .32);font-size:calc(var(--ms) * .55);font-weight:700;color:var(--text-2);background:var(--card-2)}

/* ═════════════════════════ the room ═════════════════════════ */
.room{position:relative;display:flex;flex-direction:column;min-height:0;height:100%}
.rm-list{flex:1;min-height:0;overflow-y:auto;padding:6px 4px 10px;overscroll-behavior:contain}
.rm-day{display:flex;align-items:center;gap:10px;padding:8px 10px 4px;pointer-events:none}
.rm-day::before,.rm-day::after{content:"";flex:1;height:1px;background:var(--line)}
.rm-day span{font-size:11px;font-weight:600;color:var(--mute)}
.rm-m{display:grid;grid-template-columns:30px minmax(0,1fr) auto;gap:0 10px;padding:7px 10px;border-radius:9px}
.rm-m:hover{background:rgba(255,255,255,.022)}
.rm-m.same{padding-top:1px}
.rm-av{padding-top:1px;min-height:1px}
.rm-b{min-width:0}
.rm-h{display:flex;align-items:baseline;gap:8px;min-width:0}
.rm-n{font-size:13px;font-weight:650;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.rm-m.me .rm-n{color:var(--brand-text)}
.rm-h time{font-size:11px;color:var(--faint);flex-shrink:0}
.rm-txt{margin:2px 0 0;font-size:13px;line-height:1.5;overflow-wrap:anywhere}
.rm-txt.sm{font-size:12.5px;color:var(--text-2)}
.rm-txt a{color:var(--brand-text)}
.rm-tr{display:flex;align-items:center;flex-wrap:wrap;gap:3px 6px;margin-top:3px;font-size:13px;line-height:1.5}
.rm-tr::before{content:"";align-self:stretch;width:2px;border-radius:2px;background:var(--line-2);margin-right:2px}
.rm-tr.up::before{background:var(--up)}
.rm-tr.down::before{background:var(--down)}
.rm-v{color:var(--text-2)}
.rm-amt{font-weight:650;font-variant-numeric:proportional-nums}
.rm-tok{display:inline-flex;align-items:center;gap:5px;min-width:0;font-weight:700;color:var(--text)}
.rm-tok .av{width:18px;height:18px;font-size:9px;border-radius:50%}
.rm-tok .av img{border-radius:50%}
.rm-tok:hover b{text-decoration:underline;text-underline-offset:2px}
.rm-pp{font-size:10px;font-weight:600;color:var(--mute);border:1px solid var(--line-2);border-radius:4px;padding:0 4px;line-height:15px}
.rm-k{font-size:10.5px;font-weight:700;color:var(--brand-text);background:var(--brand-soft);border-radius:4px;padding:0 5px;line-height:17px}
.rm-paper{font-size:10.5px;color:var(--mute);border:1px dashed var(--line-2);border-radius:4px;padding:0 4px;line-height:15px}
.rm-ok{display:inline-flex;align-items:center;gap:3px;font-size:10.5px;font-weight:600;color:var(--up);opacity:.85}
.rm-ok.wait{color:var(--mute)}
.rm-ok .rp-dot{width:5px;height:5px}
.rm-ref{display:flex;align-items:center;gap:3px;margin-top:2px;font-size:11.5px;color:var(--mute)}
.rm-x{display:flex;align-items:flex-start;gap:4px;padding-top:1px}
.rm-ape{display:inline-flex;align-items:center;gap:4px;height:26px;padding:0 9px;border-radius:7px;font-size:12px;font-weight:650;white-space:nowrap;
  color:var(--brand-text);background:var(--brand-soft);border:1px solid var(--brand-line);transition:background .15s,color .15s,border-color .15s}
.rm-ape:hover:not(:disabled){background:var(--brand);color:var(--brand-ink);border-color:var(--brand)}
.rm-ape.sm{height:24px;padding:0 8px;font-size:11.5px}
.rm-del{display:grid;place-items:center;width:22px;height:22px;border-radius:6px;color:var(--mute);opacity:0;transition:opacity .15s}
.rm-m:hover .rm-del,.rm-del:focus-visible{opacity:.8}
.rm-del:hover{color:var(--text);background:var(--card-2)}
.rm-del.sure{opacity:1;color:var(--down);background:var(--down-soft)}
/* a call: the token, the price it was called at, now, and how it's done since */
.rm-call{margin-top:5px;padding:10px 12px;border-radius:10px;background:var(--bg-2);border:1px solid var(--line);max-width:460px}
.rc-top{display:flex;align-items:center;gap:8px}
.rm-tok.big .av{width:24px;height:24px;font-size:11px}
.rm-tok.big b{font-size:15px}
.rc-k{font-size:11.5px;color:var(--mute)}
.rc-nums{display:flex;align-items:flex-end;gap:18px;margin-top:8px}
.rc-nums>span{display:flex;flex-direction:column;gap:2px}
.rc-nums i{font-style:normal;font-size:10.5px;color:var(--mute)}
.rc-nums b{font-size:13px;font-weight:650}
.rc-pf{margin-left:auto}
.rc-pf b{font-size:19px;font-weight:750;letter-spacing:-.02em;font-variant-numeric:proportional-nums}
.rm-call.up .rc-pf b{color:var(--up)}
.rm-call.down .rc-pf b{color:var(--down)}
.rc-why{margin:8px 0 0;font-size:12.5px;line-height:1.5;color:var(--text-2)}
.rc-why::before{content:"“"}.rc-why::after{content:"”"}
.rc-fol{display:flex;align-items:center;gap:7px;margin-top:8px;font-size:11.5px;color:var(--mute)}
.rc-fol .mono-stack>*{box-shadow:0 0 0 2px var(--bg-2)!important}
.rm-sys{display:flex;justify-content:center;align-items:baseline;gap:8px;padding:5px 10px;font-size:11.5px;color:var(--mute);text-align:center}
.rm-sys i{font-style:normal;color:var(--faint)}
.rm-empty{display:flex;flex-direction:column;align-items:center;gap:6px;margin:auto;padding:40px 18px;text-align:center;color:var(--mute);font-size:12.5px;line-height:1.5;max-width:340px}
.rm-empty b{color:var(--text);font-size:14px}
.rm-new[hidden]{display:none}
.rm-new{position:absolute;left:50%;bottom:64px;transform:translateX(-50%);z-index:2;display:inline-flex;align-items:center;gap:5px;height:28px;padding:0 12px;border-radius:99px;
  font-size:12px;font-weight:650;color:var(--brand-ink);background:var(--brand);box-shadow:0 8px 20px -8px rgba(0,0,0,.8)}
.rm-comp{display:flex;align-items:flex-end;gap:6px;padding:8px;border-top:1px solid var(--line);background:var(--card)}
.rm-in{flex:1;min-width:0;resize:none;height:36px;min-height:36px;max-height:96px;padding:8px 10px;border-radius:9px;background:var(--bg-2);border:1px solid var(--line-2);
  font:13px/1.4 var(--sans);color:var(--text)}
.rm-in::placeholder{color:var(--faint)}
.rm-in:focus{outline:0;border-color:var(--brand-line);box-shadow:0 0 0 3px var(--brand-soft)}
.rm-cbtn{display:inline-flex;align-items:center;gap:5px;height:36px;padding:0 11px;border-radius:9px;font-size:12.5px;font-weight:600;color:var(--text-2);border:1px solid var(--line-2);background:var(--card-2)}
.rm-cbtn:hover{color:var(--text);border-color:var(--brand-line)}
.rm-send{display:grid;place-items:center;width:38px;height:36px;border-radius:9px;color:var(--brand-ink);background:var(--brand)}
.rm-send:hover:not(:disabled){background:var(--brand-hi)}
.room.compact .rm-m{grid-template-columns:24px minmax(0,1fr) auto;gap:0 8px;padding:6px 8px}
.room.compact .rm-n{font-size:12.5px}
.room.compact .rm-txt,.room.compact .rm-tr{font-size:12.5px}
.room.compact .rm-call{padding:8px 10px}
.room.compact .rc-pf b{font-size:16px}
.room.compact .rm-cbtn span{display:none}
.room.compact .rm-cbtn{padding:0 9px}
.room.compact .rm-tr{gap:2px 5px}
/* reactions, pins, mentions, the picker, the composer's name list */
.rm-tool{display:grid;place-items:center;width:22px;height:22px;border-radius:6px;color:var(--mute);opacity:0;transition:opacity .15s,color .15s,background .15s}
.rm-m:hover .rm-tool,.rm-tool:focus-visible,.rm-tool.on{opacity:.8}
.rm-tool:hover{color:var(--text);background:var(--card-2);opacity:1}
.rm-tool.on{color:var(--brand-text)}
@media (hover:none){.rm-tool,.rm-del{opacity:.6}}
.rm-rx{display:flex;flex-wrap:wrap;gap:4px;margin-top:5px}
.rx-c{display:inline-flex;align-items:center;gap:4px;height:22px;padding:0 7px;border-radius:99px;font-size:12px;line-height:1;color:var(--text-2);background:var(--bg-2);border:1px solid var(--line-2);transition:border-color .15s,background .15s}
.rx-c b{font-size:11px;font-weight:650;font-variant-numeric:tabular-nums}
.rx-c:hover:not(:disabled){border-color:var(--brand-line)}
.rx-c.on{color:var(--brand-text);background:var(--brand-soft);border-color:var(--brand-line)}
.rx-c.add{padding:0 6px;color:var(--mute);opacity:0;transition:opacity .15s}
.rm-m:hover .rx-c.add,.rx-c.add:focus-visible{opacity:1}
@media (hover:none){.rx-c.add{opacity:.7}}
.rm-pick[hidden]{display:none}
.rm-pick{position:absolute;z-index:6;display:flex;gap:2px;padding:4px;border-radius:12px;background:var(--card);border:1px solid var(--line-2);box-shadow:0 14px 34px -12px rgba(0,0,0,.85)}
.rm-pick button{display:grid;place-items:center;width:34px;height:32px;border-radius:8px;font-size:18px;line-height:1;transition:background .12s,transform .12s}
.rm-pick button:hover,.rm-pick button:focus-visible{background:var(--card-2);transform:translateY(-1px)}
.rm-pinned{display:inline-flex;align-items:center;gap:3px;font-size:10.5px;font-weight:600;color:var(--brand-text);flex-shrink:0}
.rm-m.pinned{box-shadow:inset 2px 0 0 var(--brand-line)}
.rm-m.mention{background:rgba(255,196,0,.06);box-shadow:inset 2px 0 0 rgba(255,196,0,.6)}
.rm-m.mention:hover{background:rgba(255,196,0,.09)}
.rm-at{font-weight:650;color:var(--brand-text)}
.rm-at.me{color:#ffd24a;background:rgba(255,196,0,.12);border-radius:4px;padding:0 3px}
.rm-m.flash{animation:rmflash 1.5s ease-out}
@keyframes rmflash{0%,30%{background:var(--brand-soft)}100%{background:transparent}}
.rm-top[hidden]{display:none}
.rm-top{display:flex;align-items:flex-start;gap:6px;padding:6px 8px;border-bottom:1px solid var(--line);background:var(--card)}
.rm-pins{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}
.rp-pin{display:flex;align-items:center;gap:2px;min-width:0}
.rp-go{flex:1;min-width:0;display:flex;align-items:center;gap:6px;height:24px;padding:0 6px;border-radius:6px;font-size:12px;color:var(--text-2);text-align:left}
.rp-go:hover{background:var(--card-2);color:var(--text)}
.rp-go .ic{color:var(--brand-text);flex-shrink:0}
.rp-go b{font-weight:650;color:var(--text);flex-shrink:0}
.rp-go span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.rp-x{display:grid;place-items:center;width:20px;height:20px;border-radius:5px;color:var(--mute)}
.rp-x:hover{color:var(--text);background:var(--card-2)}
.rm-reps[hidden]{display:none}
.rm-reps{display:inline-flex;align-items:center;gap:5px;height:24px;padding:0 9px;margin-left:auto;border-radius:99px;font-size:11.5px;font-weight:650;color:var(--down);background:var(--down-soft);border:1px solid transparent;flex-shrink:0}
.rm-reps:hover{border-color:var(--down)}
.rm-comp{position:relative}
.rm-comp.muted .rm-in{opacity:.6;cursor:not-allowed}
.rm-ac[hidden]{display:none}
.rm-ac{position:absolute;left:8px;right:8px;bottom:calc(100% + 4px);z-index:6;display:flex;flex-direction:column;gap:1px;padding:4px;border-radius:10px;background:var(--card);border:1px solid var(--line-2);box-shadow:0 14px 34px -12px rgba(0,0,0,.85);max-width:320px}
.ac-o{display:flex;align-items:center;gap:8px;height:30px;padding:0 8px;border-radius:7px;font-size:12.5px;text-align:left;color:var(--text)}
.ac-o span{margin-left:auto;font-size:11px;color:var(--mute)}
.ac-o.on,.ac-o:hover{background:var(--card-2)}
/* report a message, mute someone, the leader's reports */
.rr-q{display:flex;gap:10px;padding:10px 12px;border-radius:10px;background:var(--bg-2);border:1px solid var(--line)}
.rr-q b{font-size:12.5px}
.rr-q p{margin:2px 0 0;font-size:12.5px;line-height:1.45;color:var(--text-2);overflow-wrap:anywhere}
.rr-why{display:flex;flex-direction:column;gap:4px;margin-top:12px}
.rr-o{display:flex;align-items:center;gap:9px;padding:8px 10px;border-radius:8px;border:1px solid var(--line);font-size:13px;cursor:pointer}
.rr-o:hover{border-color:var(--line-2)}
.rr-o:has(input:checked){border-color:var(--brand-line);background:var(--brand-soft)}
.rr-o input{accent-color:var(--brand)}
.rr-p{margin:0;font-size:12.5px;line-height:1.55;color:var(--text-2)}
.rr-mute{display:flex;flex-wrap:wrap;gap:6px;margin-top:14px}
.rr-list{display:flex;flex-direction:column;gap:8px;max-height:min(60vh,520px);overflow-y:auto}
.rr-r{display:flex;gap:10px;padding:10px 12px;border-radius:10px;border:1px solid var(--line);background:var(--bg-2)}
.rr-m{flex:1;min-width:0}
.rr-h{display:flex;align-items:baseline;gap:8px}
.rr-h b{font-size:12.5px}
.rr-h span{font-size:11.5px;color:var(--down)}
.rr-m p{margin:3px 0 0;font-size:12.5px;line-height:1.45;overflow-wrap:anywhere}
.rr-m ul{margin:6px 0 0;padding-left:16px;font-size:11.5px;color:var(--mute);line-height:1.5}
.rr-a{display:flex;gap:6px;margin-top:8px}
.rr-del{color:var(--down)}
/* instead of a room */
.rm-state{display:flex;flex-direction:column;align-items:center;gap:8px;margin:auto;padding:26px 18px;text-align:center;max-width:360px}
.rm-state b{font-size:14px;font-weight:650}
.rm-state p{margin:0;font-size:12.5px;line-height:1.5;color:var(--text-2)}
.rm-sa{display:flex;gap:6px;flex-wrap:wrap;justify-content:center}

/* ═════════════════════════ the Clans page ═════════════════════════ */
.hq-page,.rw-page{max-width:1440px}
.hq-page [hidden],.rw-page [hidden]{display:none!important}
.hq-head{display:flex;align-items:flex-end;justify-content:space-between;gap:10px 24px;flex-wrap:wrap}
.hq-t h1{margin:0;font:700 26px/1.1 var(--display);letter-spacing:-.03em}
.hq-t p{margin:6px 0 0;color:var(--mute);max-width:620px;line-height:1.5}
.hq-hr{display:flex;align-items:center;gap:10px 16px;flex-wrap:wrap}            /* Start a clan, then the season */
.hq-season{display:flex;flex-direction:column;align-items:flex-end;gap:3px;text-align:right}
.hq-season span{font-size:11.5px;color:var(--mute)}
.hq-season b{font-size:13px;font-weight:650}
.hq-tabs{display:flex;gap:2px;margin:14px 0 16px;border-bottom:1px solid var(--line);overflow-x:auto;scrollbar-width:none}
.hq-tabs a{position:relative;display:inline-flex;align-items:center;gap:6px;padding:9px 12px 11px;font-size:13.5px;font-weight:600;color:var(--mute);white-space:nowrap;transition:color .15s}
.hq-tabs a:hover{color:var(--text-2)}
.hq-tabs a[aria-current=page]{color:var(--text)}
.hq-tabs a[aria-current=page]::after{content:"";position:absolute;left:12px;right:12px;bottom:-1px;height:2px;border-radius:2px;background:var(--brand)}
.hq-tabs .n{min-width:18px;height:18px;padding:0 5px;border-radius:99px;font-size:10.5px;font-weight:700;line-height:18px;text-align:center;color:var(--brand-ink);background:var(--brand)}
/* preview ribbon (your own computer, before rewards are on) */
.hq-prev{display:flex;align-items:center;gap:8px 14px;flex-wrap:wrap;padding:9px 12px;margin-bottom:14px;border-radius:10px;border:1px dashed var(--warn-line);background:var(--warn-soft);font-size:12.5px}
.hp-k{font-weight:750;color:var(--warn)}
.hp-t{flex:1;min-width:240px;color:var(--text-2);line-height:1.45}
.hp-seg button{height:26px;font-size:12px}
/* your own clan, waiting on this computer for the ledger: the brand colour, not the sample's warning */
.hq-prev.own{border-color:var(--brand-line);background:var(--brand-soft)}
.hq-prev.own .hp-k{color:var(--brand-text)}

/* the banner */
.hq-ban{position:relative;display:grid;grid-template-columns:minmax(0,auto) minmax(0,1fr) auto;grid-template-areas:"id stats act" "pulse pulse pulse";gap:16px 28px;align-items:center;
  padding:18px 20px 14px;border-radius:var(--r-lg);background:var(--card);border:1px solid var(--line);box-shadow:inset 0 3px 0 var(--cc)}
.hb-id{grid-area:id;display:flex;align-items:center;gap:14px;min-width:0}
.hb-tx{min-width:0}
.hb-tag{display:block;font:800 30px/1 var(--display);letter-spacing:-.01em;color:var(--cc)}
.hb-tag::before{content:"[";opacity:.5}.hb-tag::after{content:"]";opacity:.5}
.hb-name{display:block;margin-top:5px;font-size:15px;font-weight:650;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.hb-sub{display:block;margin-top:2px;font-size:12px;color:var(--mute)}
.hb-sample{color:var(--warn)}
.hb-local{color:var(--brand-text)}
.hb-stats{grid-area:stats;display:flex;justify-content:flex-end;gap:28px;margin:0}
.hb-stats>div{display:flex;flex-direction:column;gap:4px;min-width:0}
.hb-stats dt{font-size:11.5px;color:var(--mute);white-space:nowrap}
.hb-stats dd{margin:0;font:700 21px/1 var(--display);letter-spacing:-.02em;font-variant-numeric:proportional-nums;white-space:nowrap}
.hb-stats small{font-size:12px;font-weight:500;color:var(--mute)}
.hb-dot{display:inline-block;width:8px;height:8px;margin-right:7px;border-radius:50%;background:var(--up);vertical-align:3px;box-shadow:0 0 0 3px rgba(var(--up-rgb),.16)}
.hb-act{grid-area:act;display:flex;gap:6px}
/* an hour of the room, a bar a minute */
.hb-pulse{grid-area:pulse;display:grid;grid-template-columns:auto minmax(0,1fr);gap:16px;align-items:end;padding-top:12px;border-top:1px solid var(--line)}
.hb-pl{font-size:11px;line-height:1.35;color:var(--mute);white-space:nowrap}
.hb-pl b{color:var(--text);font-weight:650}
.hb-bars{display:grid;grid-template-columns:repeat(60,minmax(0,1fr));gap:2px;align-items:end;height:28px}
.hb-bars i{display:block;height:calc(var(--v) * 100%);min-height:2px;border-radius:2px 2px 0 0;background:var(--cc);opacity:.45}
.hb-bars i.now{opacity:1}
.hb-bars i:hover{opacity:.9}

.hq-grid{display:grid;grid-template-columns:minmax(0,1fr) 360px;gap:14px;margin-top:14px;align-items:start}
.hq-room{display:flex;flex-direction:column;height:clamp(460px,calc(100vh - 330px),920px);border-radius:var(--r-lg);background:var(--card);border:1px solid var(--line);overflow:hidden}
.hq-room>.hq-sh{padding:12px 14px 10px;margin:0;border-bottom:1px solid var(--line)}
.hq-rm{flex:1;min-height:0;display:flex;flex-direction:column}
.hq-live{display:inline-flex;align-items:center;gap:6px;font-size:11.5px;color:var(--mute)}
.hq-live i{width:7px;height:7px;border-radius:50%;background:var(--up);animation:ping 2s infinite}
.hq-side{display:flex;flex-direction:column;gap:14px;min-width:0}
.hq-box{padding:14px;border-radius:var(--r-lg);background:var(--card);border:1px solid var(--line);min-width:0}
.hq-sh{display:flex;align-items:baseline;justify-content:space-between;gap:10px;margin-bottom:8px}
.hq-sh h2{margin:0;font:650 14px/1.2 var(--display);letter-spacing:-.01em}
.hq-sh>span,.hq-sh>a{font-size:11.5px;color:var(--mute)}
.hq-none-t{margin:2px 0;font-size:12.5px;color:var(--mute);line-height:1.5}
/* calls */
.hc-row{display:grid;grid-template-columns:minmax(0,1fr) auto auto auto;grid-template-areas:"tok n f ape" "by by by by";gap:3px 10px;align-items:center;padding:8px 0;border-top:1px solid var(--line)}
.hc-row:first-child{border-top:0;padding-top:2px}
.hc-row>.rm-tok{grid-area:tok}
.hc-by{grid-area:by;display:flex;align-items:center;gap:6px;font-size:11.5px;color:var(--mute);min-width:0}
.hc-by span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.hc-n{grid-area:n;display:flex;flex-direction:column;align-items:flex-end;gap:1px}
.hc-n span{font-size:11px;color:var(--mute)}
.hc-n b{font-size:14px;font-weight:700;font-variant-numeric:proportional-nums}
.hc-f{grid-area:f;min-width:0}
.hc-row>button,.hc-row>span:last-child{grid-area:ape}
/* what the clan is buying */
/* fixed columns after the name, so every row's bar starts and ends in the same place */
.hh-row{display:grid;grid-template-columns:minmax(0,1fr) 36px 52px 46px 50px;gap:6px;align-items:center;padding:7px 0;border-top:1px solid var(--line)}
.hh-row>.rm-tok{overflow:hidden}
.hh-row>.rm-tok b{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.hh-row .rm-pp{display:none}                                  /* Long vs Buy already says it's a perp */
.hh-row>button{justify-self:end}
.hh-row:first-child{border-top:0;padding-top:2px}
.hh-bar{height:6px;border-radius:3px;background:var(--line)}
.hh-bar i{display:block;height:100%;border-radius:3px;background:var(--brand)}
.hh-who{display:inline-flex;align-items:center;gap:5px}
.hh-who>b{font-size:12.5px;font-weight:700}
.hh-v{font-size:12px;color:var(--text-2);min-width:46px;text-align:right}
/* members */
.hm-row{display:grid;grid-template-columns:28px minmax(0,1fr);grid-auto-flow:column;grid-auto-columns:auto;gap:10px;align-items:center;padding:7px 0;border-top:1px solid var(--line)}
.hm-row:first-child{border-top:0;padding-top:2px}
.hm-who{min-width:0}
.hm-who b{display:block;font-size:12.5px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.hm-row.you .hm-who b{color:var(--brand-text)}
.hm-r{font-size:10.5px;font-weight:600;color:#f3c04f}
.hm-who span{font-size:11px;color:var(--mute)}
.hm-who > span{display:flex;align-items:center;gap:0;min-width:0;white-space:nowrap}
.hm-on{display:inline-block;width:6px;height:6px;margin-right:5px;border-radius:50%;background:var(--up);vertical-align:1px}
.hm-v{font-size:12.5px;font-weight:650}
.hm-rm{opacity:.4}
.hm-row:hover .hm-rm,.hm-rm:focus-visible{opacity:1}
.hq-menu{min-width:220px}
.hq-menu .hq-mh{padding:8px 12px 4px;font-size:11px;color:var(--mute)}
.hq-menu button{display:flex;align-items:center;gap:9px;width:100%;padding:8px 12px;font-size:13px;text-align:left;border-radius:7px}
.hq-menu button:hover{background:var(--hover)}
.hq-menu .hq-mi{display:inline-block;width:14px}
.hq-menu .danger{color:var(--down)}

/* not in a clan yet */
.hq-none{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);gap:14px;align-items:stretch}
.hn-pitch{padding:22px;border-radius:var(--r-lg);background:var(--card);border:1px solid var(--line)}
.hn-pitch h2{margin:0;font:700 22px/1.15 var(--display);letter-spacing:-.025em}
.hn-p{margin:8px 0 0;color:var(--text-2);line-height:1.5}
.hn-list{list-style:none;margin:16px 0 0;padding:0;display:flex;flex-direction:column;gap:12px}
.hn-list li{display:grid;grid-template-columns:30px minmax(0,1fr);gap:12px;align-items:start}
.hn-list li>.ic{width:30px;height:30px;padding:7px;border-radius:8px;color:var(--brand-text);background:var(--brand-soft)}
.hn-list b{display:block;font-size:13.5px;font-weight:650}
.hn-list span{display:block;margin-top:2px;font-size:12.5px;color:var(--text-2);line-height:1.5}
.hn-act{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-top:20px}
.hn-join{display:flex;gap:6px}
.hn-join .inp{width:96px;height:34px;text-align:center;text-transform:uppercase;font-weight:700;letter-spacing:.1em}
.hn-soon{display:flex;align-items:center;gap:7px;margin:18px 0 0;font-size:12.5px;color:var(--mute)}
.hn-local{display:flex;align-items:flex-start;gap:7px;margin:12px 0 0;font-size:12px;color:var(--mute);line-height:1.5}
.hn-local .ic{flex-shrink:0;margin-top:2px;color:var(--brand-text)}
.hq-none+.hq-top,.hq-inv+.hq-none~.hq-top{margin-top:14px}
.hq-top{margin-top:14px}
/* the example room: a picture of one, marked as such */
.hx{position:relative;display:flex;flex-direction:column;justify-content:center;gap:4px;padding:34px 18px 18px;border-radius:var(--r-lg);background:var(--bg-2);border:1px solid var(--line)}
.hx-k{position:absolute;left:14px;top:12px;font-size:11px;font-weight:650;color:var(--mute)}
.hx-r{display:grid;grid-template-columns:26px minmax(0,1fr);gap:10px;padding:7px 8px;border-radius:9px;font-size:12.5px}
.hx-r:nth-child(2){background:rgba(255,255,255,.02)}
.hx-r>div>b{display:block;font-size:12.5px}
.hx-r .up{color:var(--text-2)}
.hx-ok{display:inline-flex;align-items:center;gap:3px;margin-left:6px;font-size:10.5px;color:var(--up)}

/* the season board */
.bd-lede{margin:0 0 10px;font-size:12.5px;color:var(--mute);line-height:1.5;max-width:720px}
.bd-h,.bd-r{display:grid;grid-template-columns:30px minmax(0,1fr) 76px 120px 110px 64px;gap:10px;align-items:center;padding:0 10px}
.bd-h{height:30px;font-size:11.5px;color:var(--mute);border-bottom:1px solid var(--line)}
.bd-r{min-height:46px;border-bottom:1px solid var(--line);font-size:12.5px}
.bd-r:last-child{border-bottom:0}
.bd-r.me{background:color-mix(in srgb,var(--cc) 8%,transparent);box-shadow:inset 3px 0 0 var(--cc)}
.bd-h .r,.bd-r .r{text-align:right;justify-self:end}
.bd-n{font-size:13px;font-weight:750;color:var(--faint)}
.bd-r.top .bd-n{color:var(--text)}
.bd-c{display:flex;align-items:center;gap:8px;min-width:0;text-align:left}
.bd-c>span:last-child{font-size:12.5px;color:var(--text-2);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
button.bd-c:hover>span:last-child{color:var(--text)}
.bd-v{font-size:13px;font-weight:700}
.bd-you{font-size:11px;font-weight:700;color:var(--cc)}
.bd-local{font-style:normal;font-size:10.5px;font-weight:600;color:var(--brand-text)}
.bd-gap{text-align:center;color:var(--faint);font-size:12px;padding:3px 0}
/* without the 30-day column (the top five, narrower views) */
.hq-top .bd-h,.hq-top .bd-r{grid-template-columns:28px minmax(0,1fr) 70px 110px 64px}
.hq-top .hide-s{display:none}

/* ═════════════════════════ in the frame ═════════════════════════ */
.nav-clans{position:relative}
.nav-un{display:inline-block;min-width:16px;height:16px;margin-left:5px;padding:0 4px;border-radius:99px;font-size:10px;font-weight:750;line-height:16px;text-align:center;
  color:var(--brand-ink);background:var(--brand);vertical-align:2px}
.nav-un[hidden],.nav-clans .nb[hidden]{display:none}
.clan-chip{flex-shrink:0;margin-left:auto;padding:0 2px 0 10px;display:flex;align-items:center}
.clan-chip[hidden]{display:none}
.cc-in,.cc-cta{display:inline-flex;align-items:center;gap:7px;height:26px;padding:0 9px 0 6px;border-radius:7px;font-size:12px;white-space:nowrap;transition:background .15s,border-color .15s}
.cc-in{border:1px solid color-mix(in srgb,var(--cc) 35%,var(--line));background:color-mix(in srgb,var(--cc) 8%,transparent)}
.cc-in:hover{background:color-mix(in srgb,var(--cc) 15%,transparent)}
.cc-on{display:inline-flex;align-items:center;gap:5px;color:var(--text-2)}
.cc-on i{width:6px;height:6px;border-radius:50%;background:var(--up)}
.cc-s{color:var(--warn);font-weight:600}
.cc-n{min-width:16px;height:16px;padding:0 4px;border-radius:99px;font-size:10px;font-weight:750;line-height:16px;text-align:center;color:var(--brand-ink);background:var(--brand)}
.cc-cta{padding:0 10px;color:var(--text-2);border:1px solid var(--brand-line);background:var(--brand-soft)}
.cc-cta b{color:var(--brand-text);font-weight:650}
.cc-cta:hover{background:rgba(var(--brand-rgb),.18);color:var(--text)}
.f-clan .n[hidden]{display:none}
.f-clan .n{color:var(--brand-text)}
/* the workspace panel holds a compact room */
.wp[data-p="clan"] .wp-b{padding:0;display:flex;flex-direction:column;overflow:hidden}
.wp[data-p="clan"] .wp-b>.room{flex:1;min-height:0}
.wp[data-p="clan"] .wp-b>.rm-state{margin:auto}
.wp[data-p="clan"] .wp-sub{display:flex;align-items:center;gap:10px}
/* folded (collapsed, or another panel fills the column): just the header, like every other panel */
.wp[data-p="clan"].min .wp-sub,.wp[data-p="clan"].min .wp-b{display:none}
.dk-clan{display:inline-flex;align-items:center;gap:6px;min-width:0}
.dk-clan>span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:var(--text-2)}
.dk-on{display:inline-flex;align-items:center;gap:5px;margin-left:auto;white-space:nowrap;color:var(--mute)}
.dk-on i{width:6px;height:6px;border-radius:50%;background:var(--up)}
/* Trenches: clanmates on a row */
.cl-mates{display:inline-flex;align-items:center;gap:3px;margin-right:6px;padding:1px 4px 1px 2px;border-radius:6px;background:color-mix(in srgb,var(--cc) 12%,transparent);
  box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--cc) 30%,transparent);vertical-align:middle}
.cl-mates .mono-stack>*{box-shadow:0 0 0 1.5px var(--bg)!important}
.cl-call{display:inline-flex;color:var(--cc);line-height:0}
/* a token page: your clan on it */
.tk-clan{display:flex;flex-direction:column;gap:9px}
.tk-clan[hidden]{display:none}
.tcl-h{display:flex;align-items:center;gap:8px;font-size:13px}
.tcl-h b{display:inline-flex;align-items:center;gap:6px;font-weight:650}
.tcl-h>span{font-size:11.5px;color:var(--mute)}
.tcl-ic{display:grid;place-items:center;width:22px;height:22px;border-radius:6px;color:var(--brand-text);background:var(--brand-soft)}
.tcl-sample{margin-left:auto;font-size:10.5px!important;color:var(--warn)!important}
.tcl-p{margin:0;font-size:12.5px;color:var(--text-2);line-height:1.5}
.tcl-ppl{display:flex;flex-direction:column;gap:6px}
.tcl-r{display:grid;grid-template-columns:22px minmax(0,1fr) auto auto;gap:8px;align-items:center;font-size:12.5px}
.tcl-r>b{font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tcl-r i{font-style:normal;font-size:11px;color:var(--faint)}
.tcl-calls{display:flex;flex-direction:column;gap:5px;padding-top:8px;border-top:1px solid var(--line)}
.tcl-c{display:flex;align-items:center;gap:6px;font-size:12px;color:var(--text-2)}
.tcl-c b{margin-left:auto;font-weight:700}
.tcl-a{display:flex;gap:6px;flex-wrap:wrap}
.tcl-a .n{margin-left:4px;font-size:10.5px;font-weight:750;color:var(--brand-text)}
/* toasts that carry a clanmate's trade */
.t-acts{margin-top:5px}
.toast .lnk.t-ape,.toast .lnk.t-share{font-weight:650}

/* ═════════════════════════ the sheets ═════════════════════════ */
.nw-sheet .sheet-b{padding-bottom:6px}
.ns-prev{display:flex;align-items:center;gap:16px;padding:16px;border-radius:var(--r-lg);min-width:0;background:var(--bg-2);border:1px solid var(--line);box-shadow:inset 3px 0 0 var(--cc)}
.ns-pt{display:flex;flex-direction:column;align-items:flex-start;gap:5px;min-width:0}
.ns-pt b{font:700 18px/1.2 var(--display);letter-spacing:-.02em;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ns-pt>span:last-child{font-size:12px;color:var(--mute)}
.ns-row{display:grid;grid-template-columns:132px minmax(0,1fr);gap:10px;margin-top:14px}
.ns-f{display:flex;flex-direction:column;gap:6px;margin-top:14px;min-width:0}
.ns-row .ns-f{margin-top:0}
.ns-f>span:first-child{font-size:12px;font-weight:600;color:var(--mute)}
.ns-in{display:flex;flex-direction:column;gap:4px}
.ns-in .inp{width:100%;text-transform:uppercase;font-weight:700;letter-spacing:.1em}
.ns-in .inp:disabled{opacity:.6}
.ns-av{display:inline-flex;align-items:center;gap:4px;min-height:14px;font-size:11px;font-weight:600}
.ns-av.ok{color:var(--up)}.ns-av.bad{color:var(--down)}.ns-av.wait{color:var(--mute)}
.ns-hint{margin:2px 0 0;font-size:11.5px;color:var(--faint);line-height:1.45}
.ns-embs{display:grid;grid-template-columns:repeat(8,minmax(0,1fr));gap:6px}
.ns-emb{display:flex;flex-direction:column;align-items:center;gap:4px;padding:9px 2px 7px;border-radius:10px;border:1px solid var(--line-2);background:var(--card-2);font-size:10.5px;color:var(--text-2);
  transition:border-color .15s,background .15s,color .15s}
.ns-emb:hover{background:var(--hover);color:var(--text)}
.ns-emb[aria-checked=true]{border-color:var(--text-2);background:var(--hover);color:#fff}
.ns-cols{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:6px}
.ns-col{display:flex;flex-direction:column;align-items:center;gap:5px;padding:9px 2px 7px;border-radius:10px;border:1px solid var(--line-2);background:var(--card-2);font-size:11px;color:var(--text-2);
  transition:border-color .15s,box-shadow .2s,color .15s}
.ns-col i{width:20px;height:20px;border-radius:50%;background:var(--c)}
.ns-col:hover{color:var(--text)}
.ns-col[aria-checked=true]{border-color:var(--c);color:#fff;box-shadow:0 0 0 3px color-mix(in srgb,var(--c) 18%,transparent)}
.ns-fine{display:flex;gap:7px;align-items:flex-start;margin:14px 0 0;font-size:11.5px;color:var(--mute);line-height:1.5}
.ns-fine .ic{flex-shrink:0;margin-top:2px}
.ns-fine.sample{color:var(--warn)}
.ns-fine.local{color:var(--text-2)}
.ns-fine.local .ic{color:var(--brand-text)}
.ns-mem{margin-top:12px;max-height:300px;overflow:auto;padding:0 2px}
.ns-mh{display:flex;justify-content:space-between;padding:0 0 4px;font-size:11px;color:var(--mute)}
.nc-row{display:grid;grid-template-columns:26px minmax(0,1fr) auto;gap:10px;align-items:center;padding:7px 0;border-top:1px solid var(--line)}
.nc-who{min-width:0}
.nc-who b{display:block;font-size:12.5px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.nc-who span{font-size:11px;color:var(--mute)}
.nc-v{font-size:12.5px;font-weight:600}
/* calling a token */
.cs-sheet .sheet-b{min-height:300px}
.cs-q{width:100%;height:38px}
.cs-list{display:flex;flex-direction:column;gap:2px;margin-top:10px;max-height:320px;overflow:auto}
.cs-row{display:grid;grid-template-columns:28px minmax(0,1fr) auto;gap:10px;align-items:center;padding:7px 8px;border-radius:9px;text-align:left}
.cs-row:hover,.cs-row:focus-visible{background:var(--hover)}
.cs-row .av{width:28px;height:28px}
.cs-row b{font-size:13px}
.cs-row span{font-size:12px;color:var(--text-2)}
.cs-none{margin:10px 2px;font-size:12.5px;color:var(--mute)}
.cs-pick{display:flex;align-items:center;gap:12px;padding:12px;border-radius:var(--r-lg);background:var(--bg-2);border:1px solid var(--line)}
.cs-pick b{display:block;font-size:16px}
.cs-pick span{font-size:12.5px;color:var(--text-2)}
.cs-pick .btn{margin-left:auto}
.cs-why{display:flex;flex-direction:column;gap:6px;margin-top:14px;font-size:12px;font-weight:600;color:var(--mute)}
.cs-why textarea{resize:vertical;min-height:58px;font:13px/1.45 var(--sans);padding:8px 10px}
.cs-fine{display:flex;gap:7px;margin:12px 0 0;font-size:11.5px;color:var(--mute);line-height:1.5}
/* moving a clan from this browser to the server (round 8): why the tag must change */
.ns-move{display:flex;gap:7px;margin:12px 0 0;padding:9px 11px;border-radius:var(--r);background:var(--brand-soft);color:var(--text-2);font-size:12.5px;line-height:1.45}
.ns-move .ic{flex-shrink:0;margin-top:2px;color:var(--brand-text)}
.cs-fine .ic{flex-shrink:0;margin-top:2px}

/* ═════════════════════════ narrower ═════════════════════════ */
@container view (max-width:1240px){
  .hq-ban{grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"id act" "stats stats" "pulse pulse"}
  .hb-stats{justify-content:flex-start}
  .hq-grid{grid-template-columns:minmax(0,1fr) 320px}
}
@container view (max-width:980px){
  .hq-grid{grid-template-columns:1fr}
  .hq-side{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));align-items:start}
  .hq-none{grid-template-columns:1fr}
  .bd-h,.bd-r{grid-template-columns:28px minmax(0,1fr) 64px 104px 60px}
  .bd-t .hide-s{display:none}
}
@container view (max-width:640px){
  .hq-t h1{font-size:22px}
  .hq-season{align-items:flex-start;text-align:left}
  .hq-hr{width:100%;justify-content:space-between}
  .hq-ban{grid-template-columns:1fr;grid-template-areas:"id" "stats" "act" "pulse";padding:16px 14px 12px;gap:14px}
  .hb-tag{font-size:24px}
  .hb-stats{display:grid;grid-template-columns:1fr 1fr;gap:12px}
  .hb-act{flex-wrap:wrap}
  .hb-act .btn-brand{flex:1}
  .hb-pulse{grid-template-columns:1fr}
  .hb-bars{gap:1px}
  .hq-room{height:72vh;min-height:420px}
  .hq-side{grid-template-columns:1fr}
  .hn-pitch{padding:16px}
  .bd-h,.bd-r,.hq-top .bd-h,.hq-top .bd-r{grid-template-columns:24px minmax(0,1fr) 96px;padding:0 6px}
  .bd-h>:nth-child(3),.bd-r>:nth-child(3),.bd-h>:last-child,.bd-r>:last-child{display:none}
  .bd-c>span:last-child{display:none}
  .rm-m{grid-template-columns:26px minmax(0,1fr) auto;padding:6px 6px;gap:0 8px}
  .rm-ape{padding:0 7px}
  .rm-call{max-width:none}
}
/* the clan editor is a sheet outside #view, so the view's container rules never reach it: eight marks in two rows on a phone */
/* the clan editor and clan sheets live outside #view: their narrow-screen rules go by the window */
@media (max-width:640px){ .ns-embs{grid-template-columns:repeat(4,minmax(0,1fr))} .ns-prev{gap:12px;padding:12px} }
@media (max-width:1100px){ .clan-chip .cc-t{display:none} }
@media (max-width:760px){ .clan-chip{display:none} }
@media (prefers-reduced-motion:reduce){ .hq-live i{animation:none} }
body.motion-reduced .hq-live i{animation:none}

/* ═══════════════ roles: a chess piece per kind of trader, handed out by the leader ═══════════════ */
.role-g{display:inline-block;flex-shrink:0;vertical-align:-2px}
.role-t{display:inline-flex;align-items:center;gap:4px;height:18px;margin-right:7px;padding:0 7px 0 4px;border-radius:999px;
  background:color-mix(in srgb,var(--rc) 14%,transparent);color:var(--rc);font-size:11px;font-weight:600;white-space:nowrap;flex-shrink:0}
.role-t.s{height:auto;margin:0;padding:0;background:none}
.rm-h .role-t.s{margin:0 2px 0 -2px}
.hm-role{display:inline-flex;align-items:center;justify-content:center;width:26px;height:26px;border-radius:6px;border:1px solid var(--line-2);color:var(--mute);transition:border-color .15s,color .15s}
.hm-role.none{border-style:dashed;opacity:.7}
.hm-row:hover .hm-role.none,.hm-role:focus-visible{opacity:1}
.hm-role:hover{border-color:var(--brand-line);color:var(--text)}
.hr-list{display:flex;flex-direction:column}
.hr-r{display:grid;grid-template-columns:30px minmax(0,1fr) auto;gap:10px;align-items:center;padding:8px 0;border-top:1px solid var(--line)}
.hr-r:first-child{border-top:0;padding-top:2px}
.hr-g{display:flex;align-items:center;justify-content:center;width:30px;height:30px;border-radius:7px;background:color-mix(in srgb,var(--rc) 13%,transparent)}
.hr-t b{display:flex;align-items:baseline;gap:7px;font-size:13px;font-weight:600}
.hr-t b span{color:var(--mute);font-size:11.5px;font-weight:500}
.hr-t p{margin:2px 0 0;color:var(--mute);font-size:12px;line-height:1.4}
.hr-n{min-width:16px;color:var(--text-2);font:500 12px var(--mono);text-align:right}
.hr-note{margin:10px 0 0;color:var(--mute);font-size:12px;line-height:1.5}
.hr-note .ic{vertical-align:-1px}
.hr-menu{min-width:230px}
.hr-menu .hq-mh{padding:8px 12px 4px;font-size:11px;color:var(--mute)}
.hr-menu button{display:flex;align-items:center;gap:10px;width:100%;padding:7px 12px;border-radius:7px;font-size:13px;text-align:left}
.hr-menu button:hover{background:var(--hover)}
.hr-menu button span{display:flex;flex-direction:column;flex:1;min-width:0}
.hr-menu button b{font-weight:600}
.hr-menu button small{color:var(--mute);font-size:11px}
.hr-menu .hr-clear{color:var(--mute)}

/* ═══════════════════════════════════════════════════════════════
   Clan Wars (#/clans/wars): coming soon. Two clans square up
   across the line; every couple of seconds they lunge and clash.
   ═══════════════════════════════════════════════════════════════ */
.hq-tabs .hq-soon{height:18px;padding:0 7px;border-radius:99px;font-size:10.5px;font-weight:600;line-height:18px;color:var(--brand-text);background:var(--brand-soft)}
.cw{position:relative;display:flex;flex-direction:column;align-items:center;gap:14px;padding:52px 20px 60px;border:1px solid var(--line);border-radius:var(--r-lg);
  background:var(--card);overflow:hidden;isolation:isolate}
/* each side of the line in its clan's colour */
.cw::before,.cw::after{content:"";position:absolute;inset:0;z-index:-1}
.cw::before{background:rgba(var(--brand-rgb),.07);clip-path:polygon(0 0,54% 0,46% 100%,0 100%)}
.cw::after{background:rgba(255,138,91,.07);clip-path:polygon(54% 0,100% 0,100% 100%,46% 100%)}
.cw-stage{display:flex;align-items:center;justify-content:center;gap:clamp(10px,4vw,52px)}
.cw-side{display:block}
.cw-side .logo-mark{width:clamp(92px,15vw,148px);height:auto}
.cw-side.l{animation:cw-in-l .8s var(--spring-bouncy,cubic-bezier(.34,1.56,.64,1)) both,cw-lunge-l 2.6s 1s ease-in-out infinite}
.cw-side.r{animation:cw-in-r .8s var(--spring-bouncy,cubic-bezier(.34,1.56,.64,1)) both,cw-lunge-r 2.6s 1s ease-in-out infinite}
.cw-side.l .logo-mark{transform:rotate(7deg)}
.cw-side.r .logo-mark{transform:scaleX(-1) rotate(7deg)}
.cw-side.r .lm-b{fill:#ff8a5b}
.cw-side.r .lm-w{fill:#dc5f37}
.cw-side:hover .lm-f{animation:lm-hop .62s var(--spring-bouncy,cubic-bezier(.34,1.56,.64,1)) both}
.cw-side:hover .lm-f2{animation-delay:.07s}
.cw-side:hover .lm-f3{animation-delay:.14s}
.cw-vs{position:relative;display:grid;place-items:center;width:76px;height:76px;flex-shrink:0}
.cw-vs b{position:relative;font:800 32px/1 var(--sans);font-style:italic;letter-spacing:-.05em;color:var(--text);
  text-shadow:0 2px 0 #0b0c10,0 0 26px rgba(var(--brand-rgb),.55);animation:cw-vs 2.6s 1s ease-in-out infinite}
.cw-bolt{position:absolute;display:grid;place-items:center;color:#f6c445;opacity:.85;transform:rotate(14deg);animation:cw-bolt 2.6s 1s ease-in-out infinite}
.cw-sp{position:absolute;left:50%;top:50%;width:3px;height:11px;margin:-5.5px 0 0 -1.5px;border-radius:2px;background:#f6c445;opacity:0;
  transform:rotate(var(--a)) translateY(-16px);animation:cw-spark 2.6s 1s ease-out infinite}
.cw h2{margin:10px 0 0;font:700 30px/1.1 var(--sans);letter-spacing:-.03em}
.cw-soon{display:inline-flex;align-items:center;gap:8px;height:30px;padding:0 14px;border-radius:99px;border:1px solid var(--brand-line);
  background:var(--brand-soft);color:var(--brand-text);font-weight:600;font-size:13px}
.cw-soon i{position:relative;width:7px;height:7px;border-radius:50%;background:var(--brand)}
.cw-soon i::after{content:"";position:absolute;inset:0;border-radius:50%;background:inherit;animation:fx-ping 1.8s cubic-bezier(0,0,.2,1) infinite}
@keyframes cw-in-l{from{opacity:0;transform:translateX(-70px) rotate(-16deg)}}
@keyframes cw-in-r{from{opacity:0;transform:translateX(70px) rotate(16deg)}}
@keyframes cw-lunge-l{0%,62%,100%{transform:none}74%{transform:translateX(14px) rotate(3deg)}84%{transform:translateX(-3px)}}
@keyframes cw-lunge-r{0%,62%,100%{transform:none}74%{transform:translateX(-14px) rotate(-3deg)}84%{transform:translateX(3px)}}
@keyframes cw-vs{0%,66%,100%{transform:scale(1)}74%{transform:scale(1.28) rotate(-6deg)}86%{transform:scale(.96)}}
@keyframes cw-bolt{0%,66%,100%{opacity:.35;transform:rotate(14deg) scale(.9)}74%{opacity:1;transform:rotate(-8deg) scale(1.5)}}
@keyframes cw-spark{0%,70%{opacity:0;transform:rotate(var(--a)) translateY(-16px) scaleY(.4)}74%{opacity:1}92%,100%{opacity:0;transform:rotate(var(--a)) translateY(-40px) scaleY(1)}}
@media (max-width:520px){
  .cw{padding:36px 12px 44px}
  .cw h2{font-size:24px}
  .cw-vs{width:54px;height:54px}
  .cw-vs b{font-size:24px}
}
@media (prefers-reduced-motion:reduce){
  .cw-side,.cw-vs b,.cw-bolt,.cw-sp,.cw-soon i::after{animation:none!important}
}
