/* ==========================================================================================
   CAPE CLASH - hqv3.css - W163: HEADQUARTERS v3 (owner decision D34 item 13; markup by public/js/hqv3.js, wired from index.html / hqchat.js).
   Member cards on MEMBERS, the "?" buttons, the RANKS table, the reactions row + SHARE above the chat box, the pinned strip, the
   reaction sticker and the share bubble in the chat, the SHARE A CARD picker.
   Laid out for 360x640 and 390x844: one column, every tappable thing 44px or taller, nothing wider than the screen.
   Tokens come from index.html's :root (--ink --paper --pow).
   ========================================================================================== */

@import url('./hq-command.css');

/* ---------------------------------------------------------------- MEMBERS: one CARD per member */
#hqScr>.scrTitle{box-sizing:border-box;margin-left:88px;font-size:clamp(23px,6.8vw,32px);}
.hvProfileDoor{border:0;background:rgba(18,13,40,.7);color:inherit;font:inherit;text-align:left;border-radius:5px;min-height:44px;width:100%;cursor:pointer;}
.hvMemberIntel{min-width:0;box-sizing:border-box;margin:12px 0 8px;padding:12px;border-radius:14px;border:1px solid #709fc2;border-top:3px solid #ffc851;background:radial-gradient(ellipse at 10% 0%,#315c83 0%,transparent 65%),linear-gradient(145deg,#163854,#121f39);color:#fff7d8;text-align:left;}
.hvMemberIntelHead{display:grid;grid-template-columns:44px minmax(0,1fr);align-items:center;gap:10px}
.hvMemberIntelMark{width:42px;height:42px;display:grid;place-items:center;border:1px solid #ffda72;border-radius:12px 12px 17px 17px;background:#ffcc58;color:#15283d;font:bold 23px 'Bangers',sans-serif;box-shadow:inset 0 -5px #dfa335}
.hvMemberIntelWords{min-width:0;overflow-wrap:anywhere}
.hvMemberIntelWords h3{margin:0;font:400 clamp(21px,6vw,28px)/1.05 'Bangers',sans-serif;letter-spacing:.04em}
.hvMemberIntelWords p{margin:4px 0 0;color:#d0eaff;font-size:.88rem;font-weight:750}
.hvMemberIntelFacts{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,120px),1fr));gap:6px;margin:10px 0 0}
.hvMemberIntelFact{min-width:0;padding:7px 8px;border:1px solid #456683;border-radius:8px;background:#132b46;overflow-wrap:anywhere}
.hvMemberIntelFact dt{font-size:.8rem;line-height:1.15;color:#c1e5fc}
.hvMemberIntelFact dd{margin:3px 0 0;font-size:.96rem;line-height:1.2;font-weight:850}
.hvMemberIntelNote{margin:8px 0 0;font-size:.8rem;line-height:1.3;color:#c6def0}
.hvMemberKnown .clProfile [data-public-stat-missing],
.hvMemberKnown .clProfile>.clProfileMissing:not(.clPublicUnavailable){display:none}
.hvHqIdentity{position:relative;isolation:isolate;overflow:hidden;color:#fff;text-shadow:0 1px 3px #000;}
.hvHqCity{position:absolute;inset:0;width:100%;height:100%;z-index:-2;pointer-events:none;user-select:none;}
.hvHqIdentity::before{content:'';position:absolute;inset:0;z-index:-1;pointer-events:none;background:linear-gradient(100deg,rgba(9,26,49,.28),rgba(9,26,49,.08));}
.hvHqIdentity>.hqName,.hvHqIdentity>.hqTag,.hvHqIdentity>.hqLine,.hvHqIdentity>.hqNote{
  position:relative;width:fit-content;max-width:100%;box-sizing:border-box;margin-left:auto;margin-right:auto;padding:4px 9px;border-radius:6px;background:rgba(8,24,47,.94);color:#fff8e7;}
.hvHqIdentity .netTitle,.hvHqIdentity .netBody{background:rgba(18,13,40,.85);border-radius:6px;padding:7px;}
.hvHqHeading{display:flex;align-items:center;gap:8px;flex-wrap:wrap;padding:6px;}
.hqCard.hvHasHelp>.hvHqHeading{padding-right:50px;}
.hvHqHeading button{flex:1 1 100px;min-height:44px;}
.hvHqLogo{flex-shrink:0;filter:drop-shadow(0 2px 2px #120d28);}
.hvHqPreview{display:flex;justify-content:center;padding:12px;border-radius:12px;margin:8px 0;}
.hcHead.hvChatHeading{display:flex;align-items:center;gap:6px;flex-wrap:wrap;padding:5px 7px;border:2px solid #4a3f72;border-radius:12px;white-space:normal;text-align:left;}
.hvChatProfile{display:flex;align-items:center;gap:8px;flex:1 1 140px;min-width:0;min-height:48px;padding:2px 4px;border:0;border-radius:8px;background:rgba(8,24,47,.94);color:#fff8e7;text-align:left;cursor:pointer;}
.hvChatWords{display:flex;flex-direction:column;gap:3px;min-width:0;overflow-wrap:anywhere;}
.hvChatWords strong{font-family:'Bangers',cursive;font-size:21px;line-height:1.05;letter-spacing:.6px;}
.hvChatWords span{font-size:9px;line-height:1.3;letter-spacing:.4px;}
.hvChatHeading .hvHqEditDoor{flex:0 1 118px;min-height:44px;padding:5px 8px;margin:0;font-size:13px;line-height:1.15;background:#ffd23f;color:#1b1430;text-shadow:none;white-space:normal;}
.hvChatDefault{font-size:9px;color:#bdb3d8;}
.hcRoot{min-width:0;}
.hvTools{min-width:0;max-width:100%;overflow-x:auto;}
.hcHead.hvChatHeading~.hcListWrap .hcList{height:clamp(150px,calc(100vh - 496px),476px);height:clamp(150px,calc(100dvh - 496px),476px);}
.hvHqEditor{box-sizing:border-box;padding:12px;border-radius:14px;background:linear-gradient(145deg,#eef9ff,#dcecff);color:#173b60;}
.hvHqEditor .hvEditTitle{margin:4px 0 12px;font-family:'Bangers',cursive;font-size:30px;letter-spacing:1px;color:#173b60;}
.hvHqEditor .hvEditIntro{font-size:12px;font-weight:800;line-height:1.5;text-align:left;color:#3c6081;}
.hvHqEditor .hvEditPreview{margin-bottom:12px;}
.hvHqEditor .hvEditStatus{min-height:0;margin:5px 0;font-size:12px;font-weight:900;line-height:1.5;color:#154d7c;text-align:left;overflow-wrap:anywhere;}
.hvHqEditor .hqNote{color:#3c6081;}
.hvHqEditor .hvBylineLabel,.hvHqEditor .hvColorLabel{color:#173b60;text-align:left;}
.hvHqNameSection{margin:12px 0 18px;padding:0 12px 12px;border:2px solid #a3cce4;border-radius:12px;background:#fff;}
.hvHqNameSection .hqNote{text-align:left;font-size:11px;line-height:1.5;}
.hvHqNameSection>.netBtn,.hvNameIdeas>.netBtn{min-height:44px;width:100%;box-sizing:border-box;white-space:normal;background:#175887;color:#fff5cc;border-color:#9bcde8;}
.hvHqNameSection input[readonly]{background:#e4eef5;color:#49667d;}
.hvAnnouncementCount{text-align:right;margin:5px 0 9px;font-size:11px;font-weight:900;color:#3c6081;}
.hvAnnouncement .hvHqDetailHero{grid-template-columns:88px minmax(0,1fr);padding:12px;gap:10px;margin-bottom:12px;}
.hvAnnouncement .hvHqDetailEmblem{width:88px;height:102px;}
.hvAnnouncement .hvHqDetailName{font-size:clamp(25px,7vw,34px);}
/* Do not inherit the 12px label font into an editable mobile field. Readable
   input text avoids the browser's tiny-caret focus zoom without changing zoom
   settings or shrinking the rest of the game. rem preserves larger root text. */
.hvAnnouncement .hvBylineLabel textarea.netField{min-height:112px;font-size:max(16px,1rem);line-height:1.5;}
#netOv.netProfilePage #netCard.netProfileSheet.hvAnnouncementViewport{max-height:var(--hv-announcement-height,100%);}
.hvAnnouncement textarea[readonly]{background:#e4eef5;}
.hvAnnouncementReceipt{margin:12px 0;padding:12px;border:2px solid #a3cce4;border-left:5px solid #175887;border-radius:10px;background:#fff;color:#173b60;font-size:14px;line-height:1.5;overflow-wrap:anywhere;}
.hvAnnouncement .netBtn{min-height:44px;box-sizing:border-box;white-space:normal;overflow-wrap:anywhere;}
.hvAnnouncement .netBtn[hidden],.hvAnnouncementReceipt[hidden]{display:none;}
.hvAnnouncement :focus-visible{outline:3px solid #175887;outline-offset:2px;}
.hvTools.hvHasAnnounce{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));overflow:visible;}
.hvHasAnnounce .hvReact{min-width:44px;max-width:none;width:100%;}
.hvHasAnnounce .hvShareBtn,.hvHasAnnounce .hvAnnounceDoor{grid-column:span 3;min-height:44px;max-width:none;min-width:0;margin:0;padding:6px;font-size:14px;line-height:1.2;white-space:normal;background:#175887;color:#fff5cc;border:2px solid #9bcde8;border-radius:10px;}
.hvHasAnnounce:not(.hvHasShare) .hvAnnounceDoor{grid-column:1/-1;}
.hcRoot.hvStaffAnnounce .hcList{height:clamp(150px,calc(100vh - 496px),476px);height:clamp(150px,calc(100dvh - 496px),476px);}
.hcRoot.hvStaffAnnounce .hcHead.hvChatHeading~.hcListWrap .hcList{height:clamp(106px,calc(100vh - 540px),432px);height:clamp(106px,calc(100dvh - 540px),432px);}
.hvRecruitBody{display:flex;flex-direction:column;gap:12px;min-width:0;}
.hvRecruitment .hvHqDetailHero{margin-bottom:3px;}
.hvRecruitSettings,.hvRecruitList{box-sizing:border-box;min-width:0;padding:12px;border:2px solid #a3cce4;border-radius:12px;background:#fff;}
.hvRecruitField{display:flex;flex-direction:column;gap:6px;margin:12px 0;font-size:12px;font-weight:900;line-height:1.4;color:#173b60;}
.hvRecruitField>.netField{box-sizing:border-box;width:100%;min-width:0;min-height:44px;margin:0;font:inherit;}
.hvRecruitment .hqNote{margin:7px 0;text-align:left;font-size:11px;line-height:1.5;overflow-wrap:anywhere;}
.hvRecruitment .netBtn{box-sizing:border-box;min-width:0;min-height:44px;white-space:normal;overflow-wrap:anywhere;background:#175887;color:#fff5cc;border-color:#9bcde8;}
.hvRecruitment .netBtn:disabled,.hvRecruitment .netField:disabled{opacity:.62;cursor:default;}
.hvRecruitList>summary{min-height:44px;display:flex;align-items:center;gap:8px;cursor:pointer;font-size:13px;font-weight:900;line-height:1.35;}
.hvRecruitList>summary::before{content:'+';font-size:23px;}
.hvRecruitList[open]>summary::before{content:'−';}
.hvRecruitRow{display:flex;flex-direction:column;gap:6px;min-width:0;margin:10px 0 0;padding:12px 0 0;border-top:1px solid #a3cce4;}
.hvRecruitName{font-size:14px;line-height:1.35;overflow-wrap:anywhere;}
.hvRecruitActions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;}
.hvRecruitActions>.netBtn{width:100%;margin:0;}
.hvRecruitActions>.netBtn:last-child{background:#e4eef5;color:#173b60;}
.hvRecruitFacts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:0;}
.hvRecruitFacts>div{min-width:0;padding:12px;border:2px solid #a3cce4;border-radius:12px;background:#fff;}
.hvRecruitFacts>div:last-child{grid-column:1/-1;}
.hvRecruitFacts dt{font-size:10px;font-weight:900;letter-spacing:.5px;}
.hvRecruitFacts dd{margin:5px 0 0;font-family:'Bangers',cursive;font-size:25px;line-height:1.1;overflow-wrap:anywhere;}
.hvNameIdeas{margin:8px 0;border-top:1px solid #a3cce4;}
.hvNameIdeas summary{min-height:44px;display:flex;align-items:center;font-weight:900;font-size:12px;cursor:pointer;}
.hvNameIdeas summary::before{content:'+';font-size:22px;margin-right:8px;}
.hvNameIdeas[open] summary::before{content:'−';}
.hvNamePicks{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;}
.hvNamePick{min-width:0;min-height:44px;margin:0;padding:7px 5px;font-size:13px;line-height:1.25;white-space:normal;overflow-wrap:anywhere;}
.hvLogoChooser{margin:15px 0 10px;padding:8px;border:2px solid #a3cce4;border-radius:12px;background:#fff;}
.hvLogoChooser summary{min-height:44px;display:flex;align-items:center;font-weight:900;font-size:12px;color:#173b60;cursor:pointer;list-style:disclosure-closed;}
.hvLogoChooser summary::before{content:'+';font-size:24px;margin-right:9px;}
.hvLogoChooser[open] summary::before{content:'−';}
.hvHqEditor .netField{background:#fff;color:#173b60;border-color:#8bbbd7;}
.hvHqEditor>.tinyBtn.netBtn{background:#175887;color:#fff5cc;border-color:#9bcde8;font-size:16px;}
.hvLogoGrid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:5px;margin:8px 0;}
.hvLogoPick{display:flex;align-items:center;justify-content:center;min-width:0;min-height:48px;padding:2px;}
.hvLogoPick[aria-pressed="true"]{outline:3px solid var(--pow);outline-offset:-3px;background:#4a3f72;}
.hvColorLabel{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:48px;margin:5px 0;}
.hvColorLabel input,.hvColorLabel select{min-height:44px;max-width:60%;}
.hvBylineLabel{display:block;margin:12px 0 6px;font-size:12px;font-weight:900;letter-spacing:.4px;}
.hvBylineLabel .netField{display:block;width:100%;min-height:44px;box-sizing:border-box;margin-top:6px;}
.hvByline{min-height:86px;resize:vertical;font:inherit;line-height:1.4;}
#netOv.netProfilePage #netCard[data-headquarters-profile]{background:linear-gradient(145deg,#eef9ff,#dcecff);color:#173b60;}
#netCard[data-headquarters-profile] .netProfileHead{background:#175887;border-bottom-color:#9bcde8;}
#netCard[data-headquarters-profile] .netProfileTitle{color:#fff5cc;}
#netCard[data-headquarters-profile] .netProfileBack{background:#eef9ff;color:#173b60;border-color:#9bcde8;}
.hvHqDetail{width:100%;min-width:0;box-sizing:border-box;display:flex;flex-direction:column;gap:12px;text-align:left;}
.hvHqDetailHero{position:relative;isolation:isolate;display:grid;grid-template-columns:112px minmax(0,1fr);gap:12px 15px;align-items:center;
  padding:18px;border:3px solid #1b1430;border-radius:20px;background:#30264d;color:#fff8e7;overflow:hidden;box-shadow:0 6px 0 #120d28;}
.hvHqDetailHero::before{content:'';position:absolute;inset:0;z-index:-1;background:linear-gradient(100deg,rgba(18,13,40,.3),rgba(18,13,40,.88));pointer-events:none;}
.hvHqIdentity.hvHqDetailHero::before{background:linear-gradient(100deg,rgba(9,26,49,.12),rgba(9,26,49,.04));}
.hvHqIdentity .hvHqDetailKicker{width:fit-content;max-width:100%;box-sizing:border-box;padding:5px 8px;border-radius:5px;background:#08182f;line-height:1.4;}
.hvHqIdentity .hvHqDetailEmblem{box-sizing:border-box;border:1px solid rgba(255,243,207,.38);border-bottom:3px solid var(--hv-hq-accent,#ffd23f);border-radius:18px;background:rgba(8,24,47,.76);}
.hvHqIdentity .hvHqDetailWords{box-sizing:border-box;padding:10px 11px;border-radius:10px;background:rgba(8,24,47,.94);box-shadow:inset 3px 0 0 var(--hv-hq-accent,#ffd23f);}
.hvHqDetailKicker{grid-column:1/-1;font-size:10px;font-weight:900;letter-spacing:2px;color:#fff8e7;}
.hvHqDetailEmblem{display:flex;align-items:center;justify-content:center;width:112px;height:122px;filter:drop-shadow(0 5px 0 rgba(0,0,0,.3));}
.hvHqDetailWords{min-width:0;display:flex;flex-wrap:wrap;align-items:center;gap:7px;}
.hvHqDetailName{flex:0 0 100%;min-width:0;margin:0;color:#fff8e7;font-family:'Bangers',cursive;font-size:clamp(28px,7vw,44px);letter-spacing:1px;line-height:1.05;overflow-wrap:anywhere;text-shadow:0 3px 0 #120d28;}
.hvHqDetailTag,.hvHqDetailJoin{display:inline-block;padding:5px 8px;border:1px solid rgba(255,248,231,.35);border-radius:6px;background:rgba(18,13,40,.72);font-size:10px;font-weight:900;letter-spacing:.8px;}
.hvHqDetailByline{flex:0 0 100%;margin:1px 0;font-size:12px;font-weight:800;line-height:1.5;overflow-wrap:anywhere;}
.hvHqDetailHero.hvHqDetailNeutral{background:linear-gradient(125deg,#3d4660,#20283c);}
.hvHqDetailUnknown{display:flex;align-items:center;justify-content:center;box-sizing:border-box;width:96px;height:108px;border:3px solid #9aa8bd;border-radius:26px 26px 42px 42px;background:#273146;color:#c3cfdf;font-family:'Bangers',cursive;font-size:60px;line-height:1;}
.hvHqDetailArtNote,.hvHqDetailNotice{margin:0;padding:3px 8px;color:#3c6081;font-size:11px;font-weight:800;letter-spacing:.3px;line-height:1.5;text-align:left;}
.hvHqDetailArtNote{color:#c7d7e8;}
.hvHqDetailNotice{margin:12px 0 0;padding:9px 12px;border-left:3px solid #5d9fc5;background:#d3e8f5;border-radius:0 8px 8px 0;}
.hvHqDetailNotice[hidden]{display:none;}
.hvHqDetailStats{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;margin:0;}
.hvHqDetailStat{display:flex;flex-direction:column;align-items:flex-start;justify-content:center;min-width:0;min-height:88px;box-sizing:border-box;padding:12px 14px;border:2px solid #a3cce4;border-radius:13px;background:linear-gradient(145deg,#fff,#e4f2fc);}
.hvHqDetailStat dt{margin:0 0 4px;font-size:10px;font-weight:900;letter-spacing:1.1px;line-height:1.35;color:#3c6081;overflow-wrap:anywhere;}
.hvHqDetailStat dd{max-width:100%;margin:0;color:#154d7c;font-family:'Bangers',cursive;font-size:29px;letter-spacing:.6px;line-height:1.1;overflow-wrap:anywhere;}
.hvHqDetailStatNote{margin-top:3px;color:#476f8e;font-size:10px;font-weight:900;letter-spacing:.5px;line-height:1.35;}
.hvHqDetailActions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;}
.hvHqDetailActions .hvHqDetailAction{min-width:0;min-height:46px;margin:0;padding:8px 10px;font-size:13px;white-space:normal;overflow-wrap:anywhere;}
.hvHqDetailActions .hvHqDetailAction:first-child{grid-column:1/-1;background:#ffd23f;color:#1b1430;border-color:#1b1430;font-size:18px;}
@media (max-width:359px){.hvHqDetailHero{grid-template-columns:88px minmax(0,1fr);gap:9px;padding:12px;}.hvHqDetailEmblem{width:88px;height:102px;}.hvHqDetailEmblem .hvHqLogo{width:88px;height:88px;}.hvHqDetailName{font-size:27px;}.hvHqDetailStat{padding:10px;}.hvHqDetailStat dd{font-size:25px;}}
#hqBody .hqList.hvList{max-height:none;overflow:visible;border:0;padding:0;margin:0 0 9px;}
.hqRow.hvCard{--hv-col:#6a5aa8;position:relative;display:flex;align-items:center;gap:9px;box-sizing:border-box;width:100%;
  min-height:68px;padding:7px 4px 7px 8px;margin:0 0 7px;border:2px solid #4a3f72;border-radius:13px;background:#1d1736;
  overflow:hidden;text-align:left;}
.hqRow.hvCard:last-child{border-bottom:2px solid #4a3f72;margin-bottom:0;}
.hqRow.hvCard::before{content:'';position:absolute;inset:0;pointer-events:none;
  background:linear-gradient(100deg,var(--hv-col) 0%,rgba(29,23,54,0) 92%);opacity:.5;}
.hqRow.hvCard.hvPlain::before{opacity:.2;}
.hqRow.hvCard>*{position:relative;}
/* the default tint of a card with no banner chosen (a banner's own colour is set inline and wins) */
.hvCard.hvRank-owner{--hv-col:#ffd23f;border-color:#8a6d1c;}
.hvCard.hvRank-second{--hv-col:#cfd8e3;border-color:#6f7b8b;}
.hvCard.hvRank-officer{--hv-col:#38d9a9;border-color:#2a7a66;}
.hvCard.hvMe{box-shadow:0 0 0 2px var(--pow);}

/* the avatar in its frame, the online dot on its corner */
.hvAv{position:relative;flex:0 0 auto;width:54px;height:54px;}
.hvFrame{position:relative;box-sizing:border-box;width:54px;height:54px;border-radius:50%;border:2px solid #4a3f72;
  background:radial-gradient(circle at 50% 38%,#2c2150,#120d28);overflow:hidden;display:flex;align-items:center;justify-content:center;}
.hvFrame[data-frame="zigzag"]{border:4px solid transparent;}
.hvFrame[data-frame="orbit"]{border:5px solid transparent;}
.hvFrame .hvArt,.hvFrame canvas{display:block;width:100%;height:100%;}
.hvInitial{font-family:'Bangers',cursive;font-size:26px;line-height:1;letter-spacing:1px;color:var(--pow);}
.hvDot{position:absolute;right:-2px;bottom:-2px;width:15px;height:15px;box-sizing:border-box;border-radius:50%;border:2px solid #120d28;z-index:2;}
.hvDot.on{background:#5ad2a0;}
.hvDot.off{background:#7d739f;}

/* the middle: the name and the rank badge on one line, the small facts under them */
.hvMain{flex:1 1 auto;min-width:0;}
.hvMain .hqWho{font-size:14px;line-height:1.25;text-shadow:0 1px 2px rgba(0,0,0,.75);}
.hvMain .hvSmall{display:block;margin-top:2px;}
.hvSmall .hvL1{display:inline;}
.hvSmall .hvL2{display:block;}
.hvSmall .hvPower{display:inline-block;white-space:nowrap;}
.hqRole.hvRankTag{display:inline-block;margin:0 6px 0 0;padding:1px 6px;border-radius:6px;font-size:9.5px;line-height:1.35;letter-spacing:.5px;white-space:nowrap;vertical-align:1px;}
.hvR-owner{background:#ffd23f;color:#1b1430;}
.hvR-second{background:#d5dbe4;color:#1b1430;}
.hvR-officer{background:#38d9a9;color:#0d3a2f;}
.hvR-member{background:#3a3162;color:#bdb3d8;}
.hvMain .hqSmall{line-height:1.6;color:#d4ccf0;text-shadow:0 1px 2px rgba(0,0,0,.75);}

/* the right edge: the crest sits in the corner, the three dots in the middle */
.hvSide{flex:0 0 auto;align-self:stretch;display:flex;align-items:center;justify-content:center;min-width:44px;}
.hvCrest{position:absolute;top:1px;right:3px;width:18px;height:18px;display:block;filter:drop-shadow(0 1px 1px rgba(0,0,0,.6));}
.hvCard .tinyBtn.frMore{min-width:44px;min-height:44px;margin-top:6px;background:rgba(18,13,40,.55);}

/* ---------------------------------------------------------------- the round "?" buttons (RANKS on the identity card, LEVELS on the level card) */
.hqCard.hvHasHelp{position:relative;}
/* the "?" sits in the top right corner: only the two title lines next to it keep clear of it */
.hqCard.hvHasHelp>.hqTag,.hqCard.hvHasHelp>.hqName{padding-left:40px;padding-right:40px;}
.hvHelp{position:absolute;top:3px;right:3px;width:44px;height:44px;box-sizing:border-box;border-radius:50%;
  border:2px solid var(--ink);background:var(--pow);color:var(--ink);font-family:'Bangers',cursive;font-size:25px;line-height:1;
  padding:0;cursor:pointer;box-shadow:0 3px 0 #b8901a;}
.hvHelp:active{transform:translateY(2px);box-shadow:0 1px 0 #b8901a;}

/* ---------------------------------------------------------------- the RANKS table, the LEVELS explainer (both live in #netCard) */
.hvTable{width:100%;border-collapse:collapse;table-layout:fixed;margin:6px 0 4px;}
.hvTable th{padding:3px 1px 4px;font-size:9px;font-weight:900;letter-spacing:.2px;line-height:1.1;color:#bdb3d8;text-align:center;vertical-align:bottom;}
.hvTable th.hvCorner{width:35%;}
/* D35: keep the full second-in-command title readable in a narrow permission column. */
.hvTable th.hvSecond{font-size:8px;letter-spacing:0;}
.hvRowName{padding:6px 4px 6px 0;border-top:1px solid #2a2050;text-align:left;font-size:10px;font-weight:900;line-height:1.2;color:#e7e1f7;}
.hvCell{padding:2px 0;border-top:1px solid #2a2050;text-align:center;font-size:16px;font-weight:900;line-height:1.1;}
.hvCell.yes{color:#5ad2a0;}
.hvCell.no{color:#6d6491;}
.hvCell.hvOnly{font-size:8px;line-height:1.15;letter-spacing:.1px;color:#bdb3d8;}
.hvTable tr.hvLater{opacity:.5;}
.hvYourRank{margin-top:6px;text-align:center;}
.hvSec{text-align:left;}
.hvSec .netBody{margin:2px 0 8px;}
.hvLimits{color:var(--pow);}

/* W409: the existing Levels explainer, drawn from the loaded HQ facts, not a second ladder. */
.hvLevels{width:100%;max-width:560px;min-width:0;box-sizing:border-box;margin:0 auto;color:#173b60;font:800 14px/1.5 Nunito,system-ui,sans-serif;overflow-wrap:anywhere;}
.hvLevelsHero{margin-bottom:16px;}
.hvLevels .hvHqDetailKicker{font-size:.72em;letter-spacing:1.3px;}
.hvLevelBadge{display:block;flex:0 0 100%;box-sizing:border-box;margin-top:2px;color:#fff1b2;font:1.45em/1.15 Bangers,system-ui,sans-serif;letter-spacing:.7px;}
.hvLevelsHeading{margin:0 0 10px;font:1.35em/1.15 Bangers,system-ui,sans-serif;letter-spacing:.8px;color:#154d7c;}
.hvLevelsProgress,.hvLevelsCurrent,.hvLevelsNext{box-sizing:border-box;min-width:0;margin:14px 0;padding:16px;border:2px solid #a3cce4;border-radius:15px;background:#f5fbff;}
.hvLevelsProgress{border-color:#36779f;background:linear-gradient(140deg,#fff9dd,#e8f4ff);}
.hvLevelsTally,.hvLevelsFacts{margin:0;}
.hvLevelsTally dt,.hvLevelsFact dt{font-size:.78em;line-height:1.5;letter-spacing:.5px;font-weight:900;color:#315976;}
.hvLevelsTally dd{margin:5px 0 12px;font:2em/1.15 Bangers,system-ui,sans-serif;letter-spacing:.6px;color:#154d7c;}
.hvLevelsBar{display:block;width:100%;height:22px;box-sizing:border-box;accent-color:#175887;border:2px solid #175887;border-radius:12px;overflow:hidden;background:#d4e5f0;}
.hvLevelsBar::-webkit-progress-bar{background:#d4e5f0;}
.hvLevelsBar::-webkit-progress-value{background:linear-gradient(90deg,#175887,#3d97ba);}
.hvLevelsBar::-moz-progress-bar{background:#175887;}
.hvLevelsNote{display:block;margin:8px 0 0;font-size:.82em;line-height:1.5;color:#355e7c;}
.hvLevels>.hvLevelsNote{padding:8px 12px;border-radius:8px;background:#173b60;color:#eaf6ff;}
.hvLevelsFact dd>.hvLevelsNote{font:800 .48em/1.5 Nunito,system-ui,sans-serif;letter-spacing:0;}
.hvLevelsNotice{margin:10px 0 0;padding:9px 12px;border-left:4px solid #175887;border-radius:0 8px 8px 0;background:#d8eafa;color:#173b60;font-weight:900;}
.hvLevelsFacts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;}
.hvLevelsFact{min-width:0;}
.hvLevelsFacts .hvLevelsFact{padding:10px;border-radius:10px;background:#e4f1fa;}
.hvLevelsFacts dd{margin:6px 0 0;font:1.7em/1.15 Bangers,system-ui,sans-serif;letter-spacing:.5px;color:#154d7c;}
.hvLevelsNext{border-left:6px solid #36779f;}
.hvLevelsHelp{margin:16px 0 0;padding:0 14px;border:2px solid #a3cce4;border-radius:12px;background:#fff;}
.hvLevelsHelp>summary{min-height:48px;display:flex;align-items:center;gap:8px;cursor:pointer;list-style:none;font-weight:900;font-size:.9em;line-height:1.4;}
.hvLevelsHelp>summary::before{content:'+';flex-shrink:0;font-size:1.8em;color:#175887;}
.hvLevelsHelp[open]>summary::before{content:'−';}
.hvLevelsHelp .hvSec{padding:14px 0 4px;border-top:1px solid #a3cce4;}
.hvLevelsHelp p{margin:0 0 12px;}
.hvLevelsLimits{padding:10px;border-radius:8px;background:#e4f1fa;color:#173b60;}
.hvLevelsHelp>summary:focus-visible{outline:3px solid #175887;outline-offset:2px;border-radius:5px;}
html[data-text="large"] .hvLevels{font-size:16px;}
html[data-text="large"] .hvLevels .hvHqDetailName{font-size:2em;}
@media(max-width:340px){.hvLevelsProgress,.hvLevelsCurrent,.hvLevelsNext{padding:12px;}.hvLevelsFacts{grid-template-columns:1fr;}.hvLevelsHero .hvHqDetailWords{padding:8px;}.hvLevelsHelp{padding:0 11px;}}

/* Daily participation stays inside the existing DONATE / weekly-goals flow. */
.hqDailyOps{box-sizing:border-box;min-width:0;margin:10px 0 4px;padding:10px;border:2px solid #7bb7d3;border-radius:12px;background:linear-gradient(145deg,#f4fbff,#e3f2fb);color:#173b60;}
.hqDailyOpsTitle{position:relative;isolation:isolate;overflow:hidden;margin:-10px -10px 9px;padding:12px 10px;border-radius:9px 9px 0 0;background:linear-gradient(110deg,#0c385d,#176b91);font:900 20px/1.15 Bangers,system-ui,sans-serif;letter-spacing:.8px;color:#fff0b2;}
.hqDailyOpsTitle::after{content:'';position:absolute;z-index:-1;inset:0 0 0 55%;background:repeating-linear-gradient(120deg,transparent 0 18px,#8ee5f71a 19px 27px);pointer-events:none;}
.hqDailyOpsIntro,.hqDailyReset{margin:5px 0 8px;font-size:11px;font-weight:800;line-height:1.4;color:#355e7c;}
.hqDailyGrid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;}
.hqDailyGroup{--hq-meter:#239bb7;display:flex;flex-direction:column;align-self:start;gap:7px;box-sizing:border-box;min-width:0;padding:8px;border:1px solid #a3cce4;border-top:3px solid #239bb7;border-radius:9px;background:linear-gradient(155deg,#fff,#edf9ff);box-shadow:0 2px 0 #b5d6e8;}
.hqDailyGroup + .hqDailyGroup{--hq-meter:#bd8220;border-top-color:#d49b32;background:linear-gradient(155deg,#fffdf5,#fff5d7);}
.hqDailyGroupTitle{font-size:11px;font-weight:1000;letter-spacing:.35px;color:#154d7c;}
.hqDailyFact{display:flex;flex-direction:column;gap:4px;min-width:0;padding:7px;border:1px solid #b9d7e6;border-radius:8px;background:#ffffffd9;overflow-wrap:anywhere;}
.hqDailyFact strong{display:flex;align-items:center;gap:5px;min-width:0;font-size:11px;letter-spacing:.3px;color:#42637b;}
.hqDailyFact strong .ci{width:23px;height:23px;flex:0 0 23px;}
.hqDailyFact span{font-size:12px;font-weight:900;line-height:1.25;color:#173b60;}
.hqDailyMeter{height:7px;overflow:hidden;border:1px solid #aac5d8;border-radius:4px;background:#dce8f0;}
.hqDailyMeter i{display:block;height:100%;background:linear-gradient(90deg,var(--hq-meter),#7ee8fa);box-shadow:inset 0 1px 0 #fff7;}
.hqDailyGroup + .hqDailyGroup .hqDailyMeter i{background:linear-gradient(90deg,#bd8220,#ffe28a);}
.hqDailyFact[data-hq-fact-state="unknown"]{border-style:dashed;background:#fbf7ed;}
.hqDailyFact[data-hq-fact-state="used"] .hqDailyMeter{background:repeating-linear-gradient(125deg,#dce8f0 0 4px,#c7d5df 4px 7px);}
.hqDailyFact[data-hq-fact-state="unknown"] span{color:#72592f;}
.hqDailyFact[data-hq-fact-state="used"] span{color:#5a5263;}
.hqDailyAction{display:flex;align-items:center;justify-content:center;gap:6px;box-sizing:border-box;width:100%;min-height:44px;padding:6px 8px;white-space:normal;overflow-wrap:anywhere;background:#175887;color:#fff5cc;border-color:#9bcde8;}
.hqDailyAction .ci{width:22px;height:22px;flex:0 0 22px;}
.hqDailyAction:focus-visible{outline:3px solid #d18e16;outline-offset:2px;}
.hqDailyStatus{min-height:0;margin-top:4px;font-size:11px;font-weight:900;line-height:1.4;color:#154d7c;overflow-wrap:anywhere;}
.hqDailyUnknown{border-left:3px solid #9b7d37;color:#594d30;}
html[data-text="large"] .hqDailyOpsIntro,html[data-text="large"] .hqDailyReset,html[data-text="large"] .hqDailyStatus{font-size:14px;}
html[data-text="large"] .hqDailyGroupTitle,html[data-text="large"] .hqDailyFact strong{font-size:12px;}
html[data-text="large"] .hqDailyFact span{font-size:16px;}
@media(max-width:360px){.hqDailyOps{padding:8px;}.hqDailyOpsTitle{margin:-8px -8px 9px;}.hqDailyGrid{grid-template-columns:1fr;}.hqDailyGroup{padding:8px;}}

/* ---------------------------------------------------------------- CHAT: the dock (reactions + SHARE + the box), the pinned strip */
.hvDock{position:sticky;bottom:0;z-index:4;background:var(--ink);padding-top:2px;}
.hvDock .hcRow{position:static;z-index:auto;}
.hvTools{display:flex;align-items:stretch;gap:2px;padding:2px 0 0;}
.hvReacts{display:contents;}
.hvReact,.hvShareBtn{flex:1 1 44px;min-width:44px;max-width:64px;min-height:44px;box-sizing:border-box;padding:0;margin:0;cursor:pointer;
  border:2px solid #4a3f72;border-radius:10px;background:#1d1736;color:var(--paper);}
.hvReact{font-size:22px;line-height:1;}
.hvReact:active{background:#352a66;}
.hvShareBtn{font-size:13px;letter-spacing:.3px;}
/* 1.0m RC2 repair (Q8): on a narrow phone the six reactions and SHARE never run off the side. Under 380 px: six reactions in a row,
   SHARE under them across the width; under 320 px: four a row, SHARE beside the last two. */
@media(max-width:379px){
  .hvTools:not(.hvHasAnnounce){display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:3px;overflow:visible;}
  .hvTools:not(.hvHasAnnounce) .hvReact{min-width:0;max-width:none;width:100%;}
  .hvTools:not(.hvHasAnnounce) .hvShareBtn{grid-column:1/-1;min-width:0;max-width:none;width:100%;}
}
@media(max-width:319px){
  .hvTools:not(.hvHasAnnounce){grid-template-columns:repeat(4,minmax(0,1fr));}
  .hvTools:not(.hvHasAnnounce) .hvShareBtn{grid-column:span 2;}
}
.hvShareBtn[hidden]{display:none;}
/* the extra row eats room: the list gives it back (the box row must stay on the screen) */
.hcList{height:clamp(150px,calc(100vh - 452px),520px);height:clamp(150px,calc(100dvh - 452px),520px);}
.hvPinBox{display:flex;align-items:stretch;gap:6px;margin:0;}
.hvPinBox[hidden]{display:none;}
.hvPinTxt{flex:1 1 auto;min-width:0;box-sizing:border-box;min-height:36px;margin:0;padding:5px 10px;text-align:left;font-family:inherit;
  font-size:11px;font-weight:800;line-height:1.3;color:var(--paper);background:#2a2050;border:2px solid #8a6d1c;border-radius:10px;
  display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;overflow-wrap:anywhere;}
button.hvPinTxt{min-height:44px;cursor:pointer;}
.hvPinTag{color:var(--pow);letter-spacing:.5px;font-weight:900;}
.hvUnpin{flex:0 0 auto;min-width:64px;min-height:44px;font-size:14px;}

/* a reaction is a sticker: a big picture, no words */
.hcBubble.hvReactBubble{display:flex;align-items:center;justify-content:center;gap:8px;min-height:60px;padding:6px 16px;}
button.hcBubble.hvReactBubble{min-height:60px;}
.hvGlyph{font-size:38px;line-height:1.1;}

/* a share is a small card in the chat: who shared what, the picture and the name, then CLAIM */
.hcBubble.hvShare{display:block;width:min(262px,100%);padding:7px 10px 9px;}
.hvShHead{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:20px;font-size:10px;font-weight:900;letter-spacing:.6px;color:#bdb3d8;}
.hcLine.mine .hvShHead{color:#4a3500;}
.hvShDots{flex:0 0 auto;min-width:44px;min-height:44px;margin:-12px -10px -10px 0;border:0;background:none;color:#9d93c4;font-size:13px;letter-spacing:1px;cursor:pointer;}
.hvShBody{display:flex;align-items:flex-start;gap:10px;margin:2px 0 0;}
.hvShSide{flex:1 1 auto;min-width:0;display:flex;flex-direction:column;gap:5px;}
.hvShArt{flex:0 0 auto;width:48px;height:48px;border-radius:10px;background:#120d28;display:flex;align-items:center;justify-content:center;overflow:hidden;}
.hvShArt .hvArt,.hvShArt canvas{display:block;width:100%;height:100%;}
.hvShArt .lcMedal{width:44px;height:44px;flex:0 0 44px;}
.hvShName{min-width:0;font-family:'Bangers',cursive;font-size:21px;letter-spacing:1px;line-height:1.05;color:var(--pow);overflow-wrap:anywhere;}
.hcLine.mine .hvShName{color:var(--ink);}
.hvShFoot{display:flex;flex-direction:column;gap:5px;}
.hvShNote,.hvShGot{font-size:11px;font-weight:900;letter-spacing:.4px;line-height:1.35;color:#d8d2ea;}
.hvShGot{color:#5ad2a0;}
.hcLine.mine .hvShNote{color:#4a3500;}
.hvClaim,.hvOpenIt{width:100%;min-height:44px;font-size:16px;}
.hvOwnPin{cursor:pointer;}

/* ---------------------------------------------------------------- SHARE A CARD (the picker, in #netCard) */
.hvShareLeft{white-space:pre-wrap;margin:0 0 6px;font-size:11px;font-weight:900;letter-spacing:.4px;color:var(--pow);text-align:center;}
.hvPickGrid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;margin:6px 0 10px;}
.hvPickGrid>.hqNote{grid-column:1 / -1;text-align:center;}
.hvPick{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;box-sizing:border-box;min-width:0;min-height:84px;
  padding:5px 3px;border:2px solid #4a3f72;border-radius:10px;background:#1d1736;color:var(--paper);font-family:inherit;cursor:pointer;}
.hvPick:disabled{opacity:.5;cursor:default;}
.hvPick .hvShArt{width:40px;height:40px;background:transparent;}
.hvPick .hvShArt .lcMedal{width:38px;height:38px;flex:0 0 38px;}
.hvPickName{max-width:100%;font-size:9px;font-weight:900;line-height:1.15;text-align:center;overflow-wrap:anywhere;}
