/* V18 Neighborhood Social — compact iPad-friendly interaction panels */
#socialHub{width:min(920px,96vw);max-height:94dvh;padding:0;border:1px solid #89b9995f;border-radius:20px;background:linear-gradient(145deg,#10272f,#1c3536);color:#f5f6df;box-shadow:0 20px 70px #000b;overflow:auto}
#socialHub::backdrop{background:#020b11c9}
.socialHead{display:flex;align-items:center;justify-content:space-between;padding:14px 18px;background:#0c2025;gap:14px;border-bottom:1px solid #fff2}
.socialHead small{font-size:10px;letter-spacing:.12em;color:#aadaca}.socialHead h2{font-size:clamp(17px,2.8vw,26px);margin:4px 0}
#socialClose{flex-shrink:0;background:#315150;color:white;border:1px solid #8bb4aa;border-radius:11px;min-height:41px;padding:10px;font-weight:800}
#socialBody{padding:16px;max-height:min(70dvh,650px);overflow:auto}
.socialWelcome{display:flex;gap:20px;align-items:center;background:#ffffff0b;border:1px solid #ffffff18;border-radius:15px;padding:12px}
.socialAvatar{flex:0 0 118px}.socialAvatar svg{width:100%;height:auto;display:block}
.socialWelcome small{letter-spacing:.13em;color:#a3d6cc}.socialWelcome h3{margin:3px 0;font-size:24px}.socialWelcome p{margin:7px 0;line-height:1.5;color:#e4ede1}
.repTag{display:inline-flex;border-radius:999px;padding:5px 10px;background:#ddba6a33;color:#fce5a0;font-weight:850;font-size:11px}
.socialReputation,.socialMini{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;margin:13px 0}
.repMeter{background:#ffffff0d;border:1px solid #ffffff19;border-radius:12px;padding:11px;min-width:0}.repMeter>div{display:flex;justify-content:space-between;gap:6px;flex-wrap:wrap;font-size:12px}.repMeter b{color:#cdebb9}.repMeter progress{width:100%;height:11px;accent-color:#72d4b1;margin-top:8px}
.socialJobs{display:grid;grid-template-columns:1fr 1fr;gap:10px}.socialJobs button{color:#f7f6e5;text-align:left;display:flex;flex-direction:column;gap:6px;min-height:93px;padding:14px;border:1px solid #b2dfb13f;background:linear-gradient(135deg,#23544e,#1b3c46);border-radius:14px;font-size:19px;cursor:pointer}.socialJobs b{font-size:14px}.socialJobs span{font-size:11px;color:#cbded5;font-weight:500}
#socialBody h3{font-size:16px;margin:17px 0 10px}.residentGrid{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.residentGrid button{border:1px solid #d5cb8f33;border-radius:10px;background:#20393f;color:#fff5dd;padding:10px;text-align:left;cursor:pointer;display:flex;flex-direction:column;gap:4px}.residentGrid small{color:#a8d8d4}
.socialStatus{border-left:3px solid #b7eaa7;background:#eef9e913;border-radius:6px;padding:10px;min-height:38px}.socialFine{font-size:11px;opacity:.72}
.socialQuiz{text-align:center;padding:8px 12px 18px}.repQuizTop{display:flex;justify-content:space-between;color:#c5e6d5;font-size:13px}.socialQuiz h2{font-size:clamp(20px,3vw,28px);margin:23px auto;max-width:640px}.socialAnswers{display:grid;gap:9px;max-width:630px;margin:0 auto}.socialAnswers button,.socialQuiz>button,.socialResult button,.socialCleanTitle button{border:1px solid #8ebbae77;border-radius:12px;background:#274f4f;color:white;padding:12px;font-weight:800;cursor:pointer}.socialAnswers button:disabled{opacity:.55}.socialQuiz>button,.socialResult button,.socialCleanTitle button{margin:12px 6px 0}
.socialResult{text-align:center;padding:25px 5px}.socialResult>span{font-size:64px}.socialResult h2{font-size:29px}.socialResult p{line-height:1.5}
.socialCleanTitle h2{font-size:22px;margin:5px 0}.socialCleanTitle p{font-size:13px}.socialCleanStats{display:flex;justify-content:space-between;background:#ffffff19;padding:8px 12px;border-radius:10px}
#socialCanvas{width:calc(100% - 32px);height:min(39dvh,330px);margin:0 16px 16px;border:2px solid #ebd5ae77;border-radius:12px;touch-action:none;display:block}#socialCanvas[hidden]{display:none}
#socialWave{position:fixed;bottom:clamp(15px,15vh,150px);left:50%;transform:translateX(-50%);z-index:11;border:2px solid #f1d185;background:#2f594eee;color:#fffddd;border-radius:99px;padding:11px 15px;box-shadow:0 3px 17px #0006;font-size:12px;font-weight:900;white-space:nowrap}#socialWave[hidden]{display:none}
@media(max-width:660px){#socialBody{padding:10px;max-height:72dvh}.socialWelcome{gap:8px}.socialAvatar{flex-basis:80px}.socialWelcome h3{font-size:18px}.socialWelcome p{font-size:11px}.socialReputation,.socialMini{gap:5px}.repMeter{padding:6px}.repMeter>div{font-size:10px}.socialJobs button{min-height:80px;padding:9px;font-size:16px}.socialJobs b{font-size:10px}.socialJobs span{font-size:9px}.residentGrid{grid-template-columns:repeat(3,1fr)}.residentGrid button{padding:7px;font-size:11px}#socialCanvas{height:230px}#socialWave{bottom:25%;font-size:10px}}
/* Separate social entry point from the existing three storefront buttons. */
#socialHomeButton{bottom:12.1%;right:3.5%;left:auto;width:31%;font-size:clamp(9px,1.1vw,15px);background:#1b6158e9!important;border:1px solid #a3f0d0!important;color:#fff!important}
@media(max-width:690px){#socialHomeButton{bottom:9%;right:3%;width:36%;font-size:9px;padding:5px 4px}}

.socialStoryButton{border:1px solid #e8c988;background:#234e48;color:#fff0ba;border-radius:8px;padding:9px 12px;font-size:11px;font-weight:900;cursor:pointer;margin:6px}

.socialAvatar img{width:100%;height:148px;display:block;object-fit:cover;object-position:50% 12%;border-radius:12px;box-shadow:0 5px 16px #0006;border:1px solid #c9a96755} @media(max-width:660px){.socialAvatar img{height:105px}}
