/* Centred house marks; loaded after the shared reference typography. */
/* Keep every name component intact; a compound name may wrap after its hyphen. */
#clubModal.club-space :is(.cs-person-info,.cs-friend-copy){min-width:0}
#clubModal.club-space :is(.cs-person-name,.cs-friend-name){width:100%;min-width:0;max-width:100%;overflow-wrap:normal;word-break:normal;white-space:normal;hyphens:manual}
#clubModal.club-space .cs-name-part{display:inline-block;white-space:nowrap;vertical-align:baseline}
@media(max-width:380px) and (max-height:740px) and (orientation:portrait){
 #clubModal.club-space .cs-friend[data-cs-long-name]{grid-template-columns:64px minmax(0,1fr)}
}
#clubModal.club-space .cs-header{position:relative;display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);align-items:start;gap:12px;isolation:isolate}
#clubModal.club-space .cs-header>.cs-back{grid-column:1;justify-self:start;display:flex;align-items:center;gap:6px;min-height:40px!important;padding:5px 0!important;font-size:17px!important;z-index:2}
#clubModal.club-space .cs-header>.cs-controls{grid-column:3;justify-self:end;position:relative;z-index:2}
#clubModal.club-space .cs-header .cs-centered-brand{position:absolute;top:-10px;left:50%;transform:translateX(-50%);display:flex;flex-direction:column;align-items:center;justify-content:flex-start;width:260px;height:190px;pointer-events:none;z-index:1;line-height:1}
#clubModal.club-space .cs-header .cs-brand-heart img{display:block;width:184px;height:184px;max-width:none;object-fit:contain;filter:drop-shadow(0 4px 15px #8e42232b)}
#clubModal.club-space .cs-header .cs-centered-brand::after{content:'';position:absolute;bottom:-3px;left:50%;transform:translateX(-50%);width:126px;height:12px;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='170' height='20' viewBox='0 0 170 20'%3E%3Cpath d='M2 16Q55 1 117 7L69 17Q119 5 168 14' fill='none' stroke='%23c9a459' stroke-width='1.2'/%3E%3C/svg%3E") center/contain no-repeat}
#clubModal.club-space .cs-header .cs-brand-pearl{top:0;width:320px;height:166px;justify-content:center;gap:10px}
#clubModal.club-space .cs-header .cs-brand-star{width:76px!important;height:76px!important;flex:none;filter:drop-shadow(0 3px 5px #92682c28)}
#clubModal.club-space .cs-header .cs-brand-lettering{font:400 34px/1.2 var(--sovet-display,Georgia,serif);letter-spacing:-.035em;white-space:nowrap;color:var(--cs-ink)}
#clubModal.club-space .cs-heading{align-items:center;flex-direction:row;gap:0}
#clubModal.club-space .cs-heading>div:first-child{display:block!important}
#clubModal.club-space .cs-heading>.cs-identity{display:none!important}
#clubModal.club-space .cs-heading::after{display:none!important}
#clubModal.club-space #clubTitle::after{display:none!important}
#clubModal.club-space .cs-heading #clubTitle{font-size:44px!important;line-height:1.2!important}
#clubModal.club-space .cs-heading .cs-subtitle{margin-top:3px;font-size:19px;line-height:1.25}
html[data-brand=clean] #clubModal.club-space:is([data-cs-section=profile],[data-cs-section=friends]) .club-card{grid-template-rows:52px 112px 48px minmax(0,1fr)!important}
html[data-brand=clean] #clubModal.club-space[data-cs-section=friends] .cs-heading{display:flex;grid-template-columns:none;grid-template-rows:none;align-items:center}
html[data-brand=clean] #clubModal.club-space[data-cs-section=friends] .cs-heading>div:first-child{align-self:auto}
@media(min-width:1101px) and (min-height:900px){
 html[data-brand=clean] #clubModal.club-space:is([data-cs-section=profile],[data-cs-section=friends]) .club-card{grid-template-rows:56px 110px 54px minmax(0,1fr)!important}
}
@media(min-width:701px) and (orientation:landscape) and (max-height:820px){
 #clubModal.club-space .cs-header .cs-centered-brand{top:-6px;width:200px;height:134px}
 #clubModal.club-space .cs-header .cs-brand-heart img{width:132px;height:132px}
 #clubModal.club-space .cs-header .cs-brand-pearl{width:250px;height:128px;gap:5px;top:-4px}
 #clubModal.club-space .cs-header .cs-brand-star{width:58px!important;height:58px!important}
 #clubModal.club-space .cs-header .cs-brand-lettering{font-size:28px}
 #clubModal.club-space .cs-header .cs-centered-brand::after{width:100px;bottom:-6px}
 #clubModal.club-space .cs-heading #clubTitle{font-size:35px!important}
 #clubModal.club-space .cs-heading .cs-subtitle{font-size:16px}
 html[data-brand=clean] #clubModal.club-space:is([data-cs-section=profile],[data-cs-section=friends]) .club-card{grid-template-rows:52px 76px 40px minmax(0,1fr)!important}
}
@media(max-width:1100px) and (orientation:portrait){
 #clubModal.club-space .club-card,html[data-brand=clean] #clubModal.club-space:is([data-cs-section=profile],[data-cs-section=friends]) .club-card{grid-template-rows:126px 50px 44px minmax(0,1fr)!important;gap:10px!important}
 #clubModal.club-space .cs-header{gap:0}
 #clubModal.club-space .cs-header>.cs-back{min-height:40px!important;min-width:36px;padding:5px 0!important;font-size:22px!important}
 #clubModal.club-space .cs-back-label{display:none}
 #clubModal.club-space .cs-header .cs-centered-brand{top:0;width:132px;height:122px}
 #clubModal.club-space .cs-header .cs-brand-heart img{width:122px;height:122px}
 #clubModal.club-space .cs-header .cs-centered-brand::after{width:72px;height:10px;bottom:-7px}
 #clubModal.club-space .cs-header .cs-brand-pearl{top:22px;width:210px;height:96px;gap:4px;justify-content:flex-start}
 #clubModal.club-space .cs-header .cs-brand-star{width:52px!important;height:52px!important}
 #clubModal.club-space .cs-header .cs-brand-lettering{font-size:24px}
 #clubModal.club-space .cs-header .cs-brand-pearl::after{bottom:0}
 #clubModal.club-space .cs-heading #clubTitle{font-size:29px!important;line-height:1.2!important}
 #clubModal.club-space .cs-heading .cs-subtitle{font-size:15px;line-height:1.2;margin-top:2px}
 #clubModal.club-space .cs-heading{display:flex;align-items:center}
}
@media(max-width:360px) and (orientation:portrait){
 #clubModal.club-space .cs-header .cs-centered-brand{top:30px;width:108px;height:110px}
 #clubModal.club-space .cs-header .cs-brand-heart img{width:108px;height:108px}
 #clubModal.club-space .cs-header .cs-brand-pearl{top:35px;width:190px;height:100px}
 #clubModal.club-space .cs-header .cs-brand-star{width:46px!important;height:46px!important}
 #clubModal.club-space .cs-header .cs-brand-lettering{font-size:22px}
 #clubModal.club-space .club-card,html[data-brand=clean] #clubModal.club-space:is([data-cs-section=profile],[data-cs-section=friends]) .club-card{grid-template-rows:146px 44px 40px minmax(0,1fr)!important;gap:7px!important}
 #clubModal.club-space .cs-heading #clubTitle{font-size:26px!important}
 #clubModal.club-space .cs-heading .cs-subtitle{font-size:14px}
}
/* Keep the complete twelve-sign view on one screen even on a small handset. */
@media(max-width:760px) and (max-height:700px) and (orientation:portrait){
 #clubModal.club-space:not([data-cs-section=friends]) .club-card,html[data-brand=clean] #clubModal.club-space:not([data-cs-section=friends]) .club-card{grid-template-rows:78px 40px minmax(0,1fr)!important}
 #clubModal.club-space:not([data-cs-section=friends]) .cs-heading{display:none!important}
 #clubModal.club-space:not([data-cs-section=friends]) .cs-centered-brand{top:0;width:76px;height:76px}
 #clubModal.club-space:not([data-cs-section=friends]) .cs-brand-heart img{width:76px;height:76px}
 #clubModal.club-space:not([data-cs-section=friends]) .cs-centered-brand::after{display:none}
 #clubModal.club-space:not([data-cs-section=friends]) .cs-brand-pearl{top:12px;width:128px;height:66px;gap:2px}
 #clubModal.club-space:not([data-cs-section=friends]) .cs-brand-star{width:34px!important;height:34px!important}
 #clubModal.club-space:not([data-cs-section=friends]) .cs-brand-lettering{font-size:16px}
 #clubModal.club-space .cs-zodiac-head h4{font-size:18px;line-height:1.2}
 #clubModal.club-space .cs-zodiac-head .cs-text-button{font-size:13px;padding-inline:8px}
}
@media(orientation:landscape) and (max-height:540px){
 #clubModal.club-space .cs-header .cs-centered-brand{top:-3px;width:86px;height:78px}
 #clubModal.club-space .cs-header .cs-brand-heart img{width:76px;height:76px}
 #clubModal.club-space .cs-header .cs-brand-pearl{top:0;width:190px;height:72px;gap:2px}
 #clubModal.club-space .cs-header .cs-brand-star{width:36px!important;height:36px!important}
 #clubModal.club-space .cs-header .cs-brand-lettering{font-size:20px}
 #clubModal.club-space .cs-header .cs-centered-brand::after{display:none}
 #clubModal.club-space .cs-header>.cs-back{min-height:32px!important;font-size:16px!important}
 #clubModal.club-space .cs-heading #clubTitle{font-size:27px!important}
 #clubModal.club-space .cs-heading .cs-subtitle{font-size:13px}
 html[data-brand=clean] #clubModal.club-space:is([data-cs-section=profile],[data-cs-section=friends]) .club-card{grid-template-rows:34px 42px 36px minmax(0,1fr)!important}
 #clubModal.club-space:is([data-cs-section=zodiac],[data-cs-section=all-awards]) .club-card{grid-template-rows:76px 36px minmax(0,1fr)!important}
 #clubModal.club-space:is([data-cs-section=zodiac],[data-cs-section=all-awards]) .cs-heading{display:none!important}
}
