body.reborn .social-hub{grid-column:1/-1;padding:20px;background:var(--rb-surface);border:1px solid var(--rb-line);border-radius:var(--rb-radius);margin:20px 0}
.social-hub h2{margin:0 0 10px}.social-hub p{color:var(--rb-muted)}.social-hub span{display:flex;align-items:center;gap:8px;flex-wrap:wrap;color:var(--rb-accent)}.social-hub details{margin-top:12px}.social-hub summary{cursor:pointer;color:var(--rb-accent)}
body.reborn .social-dialog{position:fixed;inset:0;width:min(940px,calc(100vw - 32px));max-height:calc(100dvh - 32px);padding:28px;background:var(--rb-surface);border:1px solid var(--rb-line);border-radius:var(--rb-radius);color:var(--rb-ink);box-shadow:var(--rb-shadow);overflow:auto;font:inherit}
.social-dialog::backdrop{background:#06100ee8;backdrop-filter:blur(6px)}
.social-header{display:flex;align-items:center;justify-content:space-between;gap:16px}.social-header h2{margin:0}.social-header button{font-size:24px;min-width:44px}.social-dialog button{font:inherit;border:1px solid var(--rb-line);border-radius:10px;padding:12px 16px;background:var(--rb-raised);color:var(--rb-ink);cursor:pointer;text-align:left}.social-dialog button:hover{border-color:var(--rb-accent)}.social-dialog button:focus-visible,.social-dialog select:focus-visible{outline:3px solid var(--rb-accent);outline-offset:3px}.social-dialog button:disabled{opacity:.45;cursor:default}
.social-notice{color:var(--rb-accent);white-space:pre-line}.social-notice:empty{display:none}.social-visit-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.5fr);gap:24px;margin:20px 0}.social-portrait{background:linear-gradient(#142b2b30,#11201c90),url('Kameraden/pausenhof.webp') center/cover;background-size:100% 100%,auto 190%;background-position:center,52% 65%;border-radius:14px;height:340px;display:flex;justify-content:center;align-items:flex-end}.social-portrait img{max-width:90%;width:240px;height:290px;object-fit:contain;filter:drop-shadow(0 8px 12px #0006)}
#socialInteraction{min-width:0;max-height:min(52dvh,520px);overflow-y:auto;padding:0 8px 4px 0;scrollbar-gutter:stable}#socialInteraction h3:first-child{margin-top:0}.social-friendship{padding:16px 0;border-block:1px solid var(--rb-line)}.social-friendship h3{margin:0 0 10px}.social-friendship progress{display:block;width:100%;accent-color:var(--rb-accent);height:14px;margin:10px 0}.social-gift-controls{display:flex;gap:8px;margin-top:8px}.social-gift-controls select{min-width:0;flex:1;padding:10px;background:var(--rb-bg);color:var(--rb-ink);border:1px solid var(--rb-line);border-radius:8px;font:inherit}.social-supports{padding-top:12px}.social-supports button{display:block;margin:8px 0;width:100%}.social-profile-details details{margin:12px 0;padding:10px;border:1px solid var(--rb-line);border-radius:12px}.social-profile-details summary{cursor:pointer;color:var(--rb-accent)}.social-profile-details button{display:block;margin-top:10px}.social-gift-list{list-style:none;padding:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.social-gift-list li{display:flex;gap:10px;align-items:center}.social-gift-list b{margin-left:auto}.social-gift-list svg{flex-shrink:0;color:var(--rb-accent)}.social-scene{line-height:1.7}.social-intro{color:var(--rb-muted)}.social-choices{display:grid;gap:10px;margin:16px 0}.social-reaction{padding:12px;border-left:3px solid var(--rb-accent);background:var(--rb-raised)}
body.reborn .social-new-support{display:inline-flex;margin:6px 0 0;padding:2px 7px;font-size:11px;border:1px solid var(--rb-accent);border-radius:20px;color:var(--rb-accent)}
@media(max-width:700px){body.reborn .social-hub{padding:18px}.social-visit-grid{grid-template-columns:1fr;gap:14px}.social-portrait{height:160px;background-size:100% 100%,auto 250%}.social-portrait img{height:155px;width:150px}.social-gift-controls{flex-direction:column}.social-gift-list{grid-template-columns:1fr}body.reborn .social-dialog{padding:18px}.social-header h2{font-size:22px}#socialInteraction{max-height:38dvh}.social-friendship{padding:12px 0}.social-friendship h3{font-size:16px}.social-friendship small{font-size:12px}}
@media(max-width:700px){#socialInteraction{max-height:none;overflow:visible;padding-right:0;scrollbar-gutter:auto}}
.social-keepsakes{padding:16px 0;border-bottom:1px solid var(--rb-line)}.social-keepsakes>p{color:var(--rb-muted);line-height:1.5}.social-keepsake-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.social-keepsake-list button{display:grid;gap:6px;min-width:0}.social-keepsake-list button small{font-size:11px;color:var(--rb-accent)}.social-keepsake-list button span{overflow-wrap:anywhere}.social-keepsake-list button:last-child{grid-column:1/-1}.social-rank-scene>small{display:block;color:var(--rb-accent);margin-bottom:10px}
.social-visit-grid.is-photo{grid-template-columns:minmax(0,1fr)}.social-visit-grid.is-photo>.social-portrait{display:none}.social-visit-grid.is-photo #socialInteraction{max-height:none;overflow:visible;padding:0;scrollbar-gutter:auto}.social-photo{margin:16px 0;padding:12px 12px 16px;background:#f2e9d5;color:#263d29;border-radius:3px;box-shadow:0 8px 24px #0004}.social-photo img{display:block;width:100%;height:auto;border-radius:2px}.social-photo figcaption{text-align:center;font-weight:700;padding-top:14px}.social-photo figcaption small{display:block;font-weight:400;font-size:12px;margin-top:5px;color:#53604f}.social-photo-actions{display:flex;gap:12px;align-items:center;flex-wrap:wrap}.social-dialog .social-photo-save{display:inline-block;background:var(--rb-raised);color:var(--rb-ink);border:1px solid var(--rb-line);border-radius:10px;padding:12px 16px;text-decoration:none}.social-photo-save:focus-visible{outline:3px solid var(--rb-accent);outline-offset:3px}
@media(max-width:450px){.social-keepsake-list{grid-template-columns:minmax(0,1fr)}.social-photo{padding:7px 7px 13px}.social-photo figcaption{font-size:14px}}
/* Individual keepsakes: shared art in the bag, selection and discovered preferences. */
.social-gift-art{display:block;flex:0 0 64px;width:64px;height:64px;object-fit:contain;border-radius:14px;background:radial-gradient(circle at 45% 35%,#e7c77c18,transparent 75%)}
.social-gift-list li{min-width:0;padding:10px 12px 10px 6px;border:1px solid var(--rb-line);border-radius:14px;background:var(--rb-raised)}
.social-hub .social-gift-list span{color:var(--rb-ink);font-weight:600;line-height:1.35;overflow-wrap:anywhere}
.social-gift-list b{font-size:12px;white-space:nowrap;color:var(--rb-accent);padding:3px 7px;border-radius:20px;background:#e7c77c0d}
.social-gift-preview{display:flex;align-items:center;gap:14px;min-height:104px;padding:10px 14px;margin:14px 0;border:1px solid var(--rb-line);border-radius:14px;background:linear-gradient(120deg,#e7c77c0a,transparent)}
.social-gift-preview>.social-gift-art{width:88px;height:88px;flex-basis:88px}
.social-gift-preview>svg{width:48px;height:48px;flex:0 0 48px;margin:0 20px;color:var(--rb-accent);opacity:.65}
.social-gift-preview strong{display:block;font-size:17px;line-height:1.3}
.social-gift-preview small{display:block;margin-top:5px;color:var(--rb-muted)}
.social-gift-preview>span{color:var(--rb-muted);font-size:13px}
.social-gift-preference{display:flex;align-items:center;gap:10px;margin:8px 0}
.social-gift-preference .social-gift-art{width:40px;height:40px;flex-basis:40px}
.social-gift-reaction{display:inline-flex;align-items:center;gap:7px;font-size:12px;line-height:1.5;color:var(--rb-muted);}
.social-gift-reaction svg{width:20px;height:20px;flex:0 0 20px;}
.social-gift-reaction[data-reaction="favorite"]{color:#edaaa9;}
.social-gift-reaction[data-reaction="favorite"] svg{fill:currentColor;stroke-width:1;}
.social-gift-reaction[data-reaction="disliked"]{color:#dba28d;}
.social-gift-reaction[data-reaction="disliked"] svg>path:first-child{fill:#dba28d20;}
.social-gift-reaction .social-heart-crack{stroke-width:2.2;}
.social-gift-reaction[data-reaction="unknown"]{color:var(--rb-accent);}
.social-gift-preview .social-gift-reaction{margin-top:9px;}
.social-gift-preference{flex-wrap:wrap;}
@media(max-width:450px){.social-gift-preview{gap:10px;padding:8px}.social-gift-preview>.social-gift-art{width:72px;height:72px;flex-basis:72px}}
.social-gift-list{grid-template-columns:repeat(auto-fit,minmax(min(100%,220px),1fr))}
.social-hub .social-gift-list span{flex:1;min-width:0;overflow-wrap:break-word;hyphens:auto}
/* Persistent friendship, with daily gift and conversation indicators. */
body.reborn #slotLayer .social-card-badges{position:absolute;top:7px;left:7px;display:flex;gap:4px;align-items:center;pointer-events:none}
body.reborn #slotLayer :is(.social-rank-badge,.social-gift-badge){display:inline-flex;align-items:center;justify-content:center;gap:4px;min-height:25px;padding:3px 6px;border:1px solid #9db99570;border-radius:9px;background:#142b24ed;color:#e7c77c;font-size:11px;font-weight:700;line-height:1}
body.reborn #slotLayer .social-card-badges svg{width:14px;height:14px;flex-shrink:0}
body.reborn #slotLayer .social-rank-badge svg{fill:#d9a2a0;stroke:#d9a2a0;stroke-width:1.5}
body.reborn #slotLayer .social-gift-badge svg{fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.social-card-sr{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}
/* A visit has three destinations; scenes scroll with the dialog, not inside it. */
.social-dialog [hidden]{display:none!important}
.social-tabs{display:flex;gap:8px;margin:20px 0;flex-wrap:wrap;border-bottom:1px solid var(--rb-line);padding-bottom:12px}
.social-dialog .social-tabs button{flex:1;min-width:0;text-align:center;line-height:1.35}
.social-dialog .social-tabs button{overflow-wrap:anywhere}
.social-dialog .social-tabs button[aria-selected=true]{border-color:var(--rb-accent);color:var(--rb-accent);background:linear-gradient(120deg,#e7c77c18,var(--rb-raised))}
.social-dialog [role=tabpanel]:focus-visible{outline:2px solid var(--rb-accent);outline-offset:4px;border-radius:10px}
.social-dialog #socialInteraction{max-height:none;overflow:visible;padding:0;scrollbar-gutter:auto}
.social-language-note,.social-undiscovered{color:var(--rb-muted);font-size:13px;line-height:1.6}
.social-compass>h3{color:var(--rb-accent);font-size:22px;margin:12px 0}
.social-profile-origin,.social-voice{color:var(--rb-muted);line-height:1.65}
.social-compass-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:20px 0}
.social-compass-fields>div{padding:15px;border:1px solid var(--rb-line);border-radius:12px;background:var(--rb-raised);min-width:0}
.social-compass-fields dt{color:var(--rb-accent);font-weight:700;margin-bottom:7px}
.social-compass-fields dd{margin:0;line-height:1.6;overflow-wrap:break-word}
.social-connections{margin:24px 0}
.social-connection{display:flex;align-items:flex-start;gap:16px;padding:16px;margin:12px 0;border:1px solid var(--rb-line);border-radius:12px;background:var(--rb-raised)}
.social-connection>img{width:76px;height:90px;object-fit:contain;flex-shrink:0}
.social-connection h4{margin:0 0 8px;color:var(--rb-accent)}
.social-connection p{margin:0 0 8px;line-height:1.6}
.social-connection small{color:var(--rb-muted)}
.social-conversation-memories{margin-top:20px;border:1px solid var(--rb-line);border-radius:12px;padding:14px}
.social-conversation-memories summary{cursor:pointer;color:var(--rb-accent)}
.social-conversation-memories button{display:block;margin-top:10px;width:100%}
@media(max-width:600px){.social-compass-fields{grid-template-columns:minmax(0,1fr)}.social-dialog .social-tabs{gap:6px}.social-dialog .social-tabs button{padding:10px 6px;font-size:12px}.social-connection{gap:10px;padding:12px}.social-connection>img{width:48px;height:65px}.social-compass>h3{font-size:20px}}
@media(max-width:350px){.social-dialog .social-tabs button{font-size:11px;padding:10px 4px}}
