.profile-card,.profile-expanded{color:#443b39;background:#f5efea;font:13px/1.6 var(--sans);letter-spacing:0}
.profile-card{padding:0;width:100%;max-width:420px;max-height:100%;display:flex;flex-direction:column;border:1px solid #bfb0a1;border-radius:6px;overflow:hidden;text-align:left;box-shadow:0 12px 35px #0006}
.profile-card:hover:not(:disabled){filter:none}.profile-content{min-height:0;overflow:auto;overscroll-behavior:contain}.profile-content p{margin:0}.profile-photo-heading{text-align:center;font-size:10px;color:#8c7868;line-height:1.4;padding:8px 10px 5px}
.profile-media{display:flex;justify-content:center;gap:10px;padding:0 12px 9px;height:min(360px,calc(var(--scene-height) - var(--dialogue-height) - var(--safe-top) - 180px));min-height:80px}
.profile-figure{margin:0;min-width:0;display:flex;flex-direction:column;align-items:center;height:100%}.profile-figure figcaption{font:12px/1.5 var(--serif);letter-spacing:.16em;flex-shrink:0;padding:4px 0 0}.profile-photo{position:relative;aspect-ratio:3/4;flex:1;min-height:0;overflow:hidden;isolation:isolate;background:#b69881}.profile-shot>img,.profile-face-mask img{display:block;width:100%;height:100%;object-fit:contain}.profile-face-mask{position:absolute;inset:0;display:none;pointer-events:none;mask-image:radial-gradient(ellipse var(--face-rx) var(--face-ry) at var(--face-x) var(--face-y),#000 75%,transparent 100%);-webkit-mask-image:radial-gradient(ellipse var(--face-rx) var(--face-ry) at var(--face-x) var(--face-y),#000 75%,transparent 100%)}.face-blurred .profile-face-mask{display:block}.profile-face-mask img{filter:blur(10px)}
.profile-files,.profile-data,.profile-search{padding:15px}.profile-path{font-size:11px;padding-bottom:12px;border-bottom:1px solid #d9cfc5}.profile-path span{padding:0 9px;color:#a99a8c}.profile-folder-list{display:grid;gap:13px;padding:17px 0}.profile-folder-list>div{display:flex;align-items:center;gap:10px;font-size:12px}.folder-symbol{position:relative;display:inline-block;width:20px;height:14px;background:#c8ad79;border-radius:2px}.folder-symbol:before{content:'';position:absolute;top:-3px;left:0;width:9px;height:5px;background:inherit;border-radius:2px}.profile-note{font-size:10px;color:#9b8b7c;padding-top:10px!important}.profile-time{text-align:center;margin-top:10px!important;padding-top:10px;border-top:1px solid #d9cfc5;font:13px/1.6 var(--serif);letter-spacing:.15em;color:#7e6759}.profile-data-kicker{font-size:10px;letter-spacing:.04em;color:#9b8676;margin:5px 0 13px}.profile-data table{border-collapse:collapse;width:100%;text-align:center;table-layout:fixed;font-size:13px}.profile-data th,.profile-data td{padding:10px 4px;border-bottom:1px solid #dfd4ca;line-height:1.6}.profile-data thead th{font:17px/1.4 var(--serif);font-weight:400;color:#78534e}.profile-data th:first-child{font:10px/1.5 var(--sans);width:35%;color:#9b8676}.profile-data td{font-variant-numeric:tabular-nums}.profile-search p{font-size:13px;line-height:1.9;padding:6px 0 12px}
.profile-expanded{border-radius:5px;overflow:hidden}.profile-expanded .profile-content{overflow:visible}.profile-expanded .profile-media{height:auto;min-height:0;padding:10px;gap:8px}.profile-expanded .profile-figure{flex:1;height:auto;max-width:290px}.profile-expanded .profile-photo{flex:none;width:100%;height:auto}.profile-expanded .profile-figure figcaption{font-size:17px;padding:8px 0 4px}.profile-expanded .profile-note{padding:0 12px 15px!important;font-size:11px}.profile-expanded .profile-data,.profile-expanded .profile-files,.profile-expanded .profile-search{padding:20px}.profile-expanded .profile-data td{font-size:16px}.profile-expanded .profile-search p{font-size:16px}.profile-switch{display:flex;gap:5px;padding:12px 10px 0}.profile-switch button{min-height:44px;flex:1;padding:7px 5px;font:11px/1.4 var(--sans);border:1px solid #cfc1b4;background:transparent;color:#8f7c6f;border-radius:4px}.profile-switch button[aria-pressed=true]{color:#fff7ee;background:#80685e;border-color:#80685e}
[data-chapter="5"] .end-content{top:50%;transform:translateY(-50%)}[data-chapter="5"] .end-content h2{margin:22px 0}[data-chapter="5"] .end-content h2 span{font-size:32px;margin:16px 0 0 .15em}[data-chapter="5"] .end-content p{font-size:14px;letter-spacing:.03em;margin:22px 0 18px}[data-chapter="5"] .end-author{margin-bottom:24px}
@media(max-height:650px) and (orientation:portrait){.profile-files,.profile-data,.profile-search{padding:10px}.profile-data-kicker{margin:1px 0 7px;font-size:9px}.profile-data th,.profile-data td{padding:5px 3px;font-size:12px}.profile-data thead th{font-size:15px}.profile-folder-list{padding:12px 0;gap:10px}.profile-note{font-size:9px}.profile-time{font-size:11px;margin-top:4px!important;padding-top:4px}.profile-path{padding-bottom:7px}.profile-photo-heading{font-size:9px;padding:5px}.profile-search p{font-size:11px;line-height:1.7}}
@media(max-height:520px) and (orientation:landscape){.profile-media{height:calc(100dvh - 180px)}}

.profile-shot{display:block;position:relative;width:100%;height:100%}.profile-zoom{display:block;margin:6px auto 0;padding:0 15px;min-height:44px;font:11px/1.4 var(--sans);color:#80685e;text-decoration:underline;text-underline-offset:4px}.profile-expanded .profile-closeup .profile-photo{aspect-ratio:1}.profile-closeup .profile-shot{position:absolute;width:300%;height:auto;aspect-ratio:3/4;left:var(--zoom-left);top:var(--zoom-top)}.profile-closeup .profile-face-mask img{filter:blur(18px)}

@media(max-height:650px) and (orientation:portrait){.profile-card .profile-media{height:calc(var(--scene-height) - var(--dialogue-height) - var(--safe-top) - 160px)}}

.profile-photo.yuki{--face-x:49%;--face-y:18.5%;--face-rx:12%;--face-ry:8%;--zoom-left:-97%;--zoom-top:-24%}.profile-photo.yuria{--face-x:50%;--face-y:16.5%;--face-rx:10%;--face-ry:7%;--zoom-left:-100%;--zoom-top:-16%}
