/* Saved adventures: calm picture cards, large targets and readable progress. */
.profile-picker{margin:10px 0;text-align:left;color:#38513a}
.profile-picker .profile-help{margin:0 0 13px;font-size:15px;line-height:1.45;color:#657458}
.profile-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.profile-slot{position:relative;min-width:0;padding-bottom:48px;border:2px solid #d3ddc5;border-radius:15px;background:#f1f4e8;overflow:hidden}
.profile-slot.is-selected{border-color:#66874e;background:#eaf0dd}
.profile-avatar{display:flex;flex-direction:column;align-items:stretch;gap:13px;width:100%;min-height:200px;padding:15px 13px 12px;border:0;border-radius:12px;background:transparent;color:#344d35;font-family:inherit;text-align:left;cursor:pointer;touch-action:manipulation}
.profile-avatar:hover{background:#e5edda}
.profile-avatar:focus-visible,.profile-read:focus-visible,.profile-add:focus-visible,.profile-welcome-actions button:focus-visible{outline:3px solid #a87c35;outline-offset:-3px}
.profile-identity{display:flex;align-items:center;gap:10px;min-width:0}
.profile-portrait{display:block;flex:0 0 64px;height:64px}
.profile-portrait>.official-profile-avatar{display:block;width:64px;height:64px;margin:0}
.profile-name{display:flex;flex-direction:column;gap:5px;min-width:0}
.profile-name>strong{font-size:19px;line-height:1.15;overflow-wrap:anywhere}
.profile-current{font-size:12px;line-height:1.3;color:#627455}
.profile-slot.is-selected .profile-current{color:#496b3e;font-weight:700}
.profile-world{display:flex;align-items:center;gap:7px;font-size:14px;line-height:1.3}
.profile-world>svg{width:22px;height:22px;flex:0 0 22px;color:#6c825d;margin:0}
.profile-world>span{margin-left:auto;padding:3px 7px;border-radius:6px;background:#e5e8d9;color:#697450;font-size:12px}
.profile-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px}
.profile-stat{display:grid;grid-template-columns:auto auto;justify-content:center;align-items:center;column-gap:4px;row-gap:2px;padding:7px 3px;border-radius:8px;background:#faf9ed;font-size:13px}
.profile-stat svg{width:24px;height:24px;margin:0}
.profile-stat>strong{font-size:17px;line-height:1.2}
.profile-stat>span{grid-column:1/-1;text-align:center;font-size:11px;color:#687459}
.profile-choose{display:flex;align-items:center;justify-content:space-between;gap:5px;margin-top:auto;color:#4d6c42;font-size:13px;font-weight:700;line-height:1.35}
.profile-read{display:grid;place-items:center;min-width:44px;min-height:44px;width:44px;height:44px;padding:10px;border:1px solid #d6ddc7;border-radius:50%;background:#f6f4e8;color:#637653;cursor:pointer;touch-action:manipulation}
.profile-read:hover{background:#e6ecd8;color:#3f6035}
.profile-read svg{display:block;width:23px;height:23px;margin:0}
.profile-slot>.profile-read{position:absolute;right:8px;bottom:7px}
.profile-add{display:flex;align-items:center;justify-content:center;gap:8px;width:100%;min-height:48px;margin:16px 0 9px;padding:11px 14px;border:1.5px dashed #aebb97;border-radius:10px;background:#edf2df;color:#4a6142;font-size:15px;font-weight:700;cursor:pointer;touch-action:manipulation}
.profile-add:hover{background:#e4edcf;border-color:#8ca470}
.profile-add svg{width:21px;height:21px;margin:0;flex:0 0 21px}
.profile-save-note{display:flex;align-items:center;gap:10px}
.profile-save-note p{flex:1;margin:0;font-size:13px;line-height:1.4;color:#68755d}
.profile-save-note>.profile-read{flex:0 0 44px}
.profile-welcome{margin:15px 0 12px;text-align:left}
.profile-welcome-current{display:flex;align-items:center;gap:10px;padding:9px 11px;border-radius:11px;background:#f0f2e5}
.profile-welcome-portrait{display:block;flex:0 0 45px;height:45px}
.profile-welcome-portrait>.official-profile-avatar{display:block;width:45px;height:45px;margin:0}
.profile-welcome-current>div{display:flex;flex:1;min-width:0;flex-direction:column;gap:3px}
.profile-welcome-current strong{font-size:16px;line-height:1.15;color:#405c3c;overflow-wrap:anywhere}
.profile-welcome-current>div>span{font-size:12px;line-height:1.3;color:#68755b}
.profile-welcome-current>.profile-read{flex:0 0 44px}
.profile-welcome-actions{display:grid;grid-template-columns:1fr 1.3fr;gap:7px;margin-top:8px}
.profile-welcome-actions button{display:flex;justify-content:center;align-items:center;gap:6px;min-width:0;min-height:44px;padding:9px 7px;border:1px solid #d1dcc0;border-radius:9px;color:#526b43;background:#f5f5e8;font-family:inherit;font-size:12px;font-weight:600;line-height:1.3;cursor:pointer;touch-action:manipulation}
.profile-welcome-actions button:hover{background:#e6eed6}
.profile-welcome-actions svg{width:19px;height:19px;flex:0 0 19px;margin:0}
@media(max-width:520px){
  .profile-grid{grid-template-columns:1fr;gap:10px}
  .profile-slot{padding-bottom:0;padding-right:47px}
  .profile-avatar{min-height:0;padding:12px;gap:10px}
  .profile-portrait{flex-basis:52px;height:52px}
  .profile-portrait>.official-profile-avatar{width:52px;height:52px}
  .profile-name>strong{font-size:18px}
  .profile-slot>.profile-read{right:4px;bottom:8px}
  .profile-stats{gap:6px}
  .profile-stat{padding:6px 3px}
  .profile-choose{font-size:13px}
}
@media(max-width:360px){
  .profile-welcome-actions{grid-template-columns:1fr}
  .profile-welcome-current{gap:7px;padding-inline:8px}
  .profile-avatar{padding:10px;gap:9px}
  .profile-world{font-size:13px;gap:4px}
  .profile-world>span{font-size:11px;padding-inline:4px}
  .profile-stat svg{width:21px;height:21px}
  .profile-name>strong{font-size:17px}
}
.new-adventure-picture{display:flex;align-items:center;justify-content:center;gap:18px;margin:10px 0 20px;padding:14px;border-radius:18px;background:#eff2df;color:#3f593a}
.new-adventure-picture>span{font-size:26px;font-weight:700;line-height:1.3}
.new-adventure-picture small{font-size:14px;font-weight:500;color:#617353}
#adventure-status:empty{display:none}
#adventure-status:not(:empty){padding:12px;border-radius:10px;background:#fff0d0;color:#775326}

.official-profile-avatar{position:relative;display:block;width:100%;height:100%;border:2px solid var(--profile-color,#4f7a4a);border-radius:50%;background:#f7f2df;overflow:hidden;isolation:isolate}
.official-profile-avatar>.character-portrait{display:block;width:100%;height:100%;pointer-events:none}
.new-adventure-picture>.official-profile-avatar{width:82px;height:82px;flex:0 0 82px}
