#playerCharacterDialog{box-sizing:border-box;width:min(640px,calc(100% - 24px));max-height:88dvh;overflow-y:auto;border:1px solid #ffffff80;border-radius:24px;padding:24px;background:#eff6f0;color:#244b3c;font:16px/1.6 system-ui;overscroll-behavior:contain}#playerCharacterDialog::backdrop{background:#102c39bb;backdrop-filter:blur(6px)}#playerCharacterDialog h2{font:700 28px Georgia,serif}.profile-portrait{width:180px;height:220px;object-fit:contain}.collection-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:12px}.collection-grid article{padding:14px;background:#ffffff9c;border-radius:18px}.collection-grid img{width:100%;height:125px;object-fit:contain}.collection-grid summary{cursor:pointer;min-height:44px}.collection-grid small{display:block}.profile-toggle{font:inherit;min-height:44px;border:1px solid #ffffff60;border-radius:16px;padding:9px 14px;background:#284b48;color:#fff8e8;cursor:pointer}@media(max-width:500px){.profile-toggle{font-size:11px;padding:8px}.collection-grid{grid-template-columns:repeat(2,minmax(0,1fr))}#playerCharacterDialog{padding:16px}}
@media(max-width:600px) and (orientation:portrait){#playerCharacterDialog{width:calc(100% - 20px);max-height:min(84svh,calc(var(--winter-ui-viewport-height,100dvh) - 24px));padding:13px;font-size:14px;line-height:1.5}#playerCharacterDialog h2{font-size:24px;line-height:1.2;margin:4px 48px 10px 0}#playerCharacterDialog .profile-portrait{float:left;width:72px;height:88px;margin:0 12px 8px 0}#playerCharacterDialog .collection-grid{clear:both;gap:9px}#playerCharacterDialog .collection-grid article{padding:10px;border-radius:14px}#playerCharacterDialog .collection-grid img{height:88px}#playerCharacterDialog .collection-grid summary{min-height:48px;display:flex;align-items:center}#playerCharacterDialog>button{min-width:48px;min-height:48px}}
.collection-announcement{position:fixed;z-index:150;bottom:calc(92px + env(safe-area-inset-bottom));left:50%;transform:translateX(-50%);width:max-content;max-width:calc(100% - 40px);box-sizing:border-box;padding:15px 20px;border:1px solid #ffffff80;border-radius:18px;background:#f3f7e9;color:#274f3c;font:16px Georgia,serif;box-shadow:0 8px 30px #1235;animation:collection-arrive .25s ease-out}@keyframes collection-arrive{from{opacity:0;translate:0 8px}to{opacity:1;translate:0 0}}@media(prefers-reduced-motion:reduce){.collection-announcement{animation:none}}
.topbar:has(.profile-toggle),.adv-top:has(.profile-toggle){flex-wrap:wrap;gap:8px}.profile-toggle{max-width:100%;white-space:normal;flex:0 1 auto}.scene-actions:has(.profile-toggle){flex-wrap:wrap}
.scene-header:has(.profile-toggle){gap:6px}.scene-header .profile-toggle{flex:0 0 44px;min-width:44px;min-height:44px;width:44px;font-size:20px;padding:0}

@media(max-width:380px){.scene-header:has(.profile-toggle){padding-left:8px;padding-right:8px;gap:4px;letter-spacing:0}.scene-header:has(.profile-toggle) #sceneBack,.scene-header:has(.profile-toggle) #sceneChapters{padding-left:7px;padding-right:7px;font-size:13px;white-space:nowrap}.scene-header:has(.profile-toggle) #sceneCounter{font-size:10px;white-space:nowrap;letter-spacing:0}}
