.profile-page .sub-head,.profile-page .profile-empty,.profile-page .profile-local-note{max-width:760px}
.profile-page .sub-title p{color:#53647f;font-size:var(--font-14);line-height:var(--line-22)}
.profile-empty{padding:36px 24px;border:1px solid #edf2f7;box-shadow:0 6px 24px #366b9c08}
.profile-illustration{display:flex;align-items:center;justify-content:center;gap:12px;width:180px;height:104px;margin:0 auto 20px;object-fit:contain;border:1px dashed #b8cce0;border-radius:20px;background:#f4f8fd;color:#7189a3}
.profile-illustration>span{font-size:var(--font-32);line-height:var(--line-40);color:#a4bcd5}
.profile-illustration>small{font-size:var(--font-14);line-height:var(--line-22)}
img.profile-illustration{border:0;background:none}
.profile-status{display:inline-block;padding:3px 10px;border-radius:8px;background:#eef4fb;color:#53647f;font-size:var(--font-12);line-height:var(--line-18)}
.profile-empty h2{margin:14px 0 10px;font-size:var(--font-24);line-height:var(--line-32)}
.profile-page .profile-empty p{color:#4c5f7c;font-size:var(--font-16);line-height:var(--line-24)}
.profile-actions{display:flex;flex-direction:column;align-items:center;gap:12px;margin-top:24px}
.profile-primary{display:inline-flex;align-items:center;justify-content:center;gap:20px;min-height:48px;padding:10px 26px;border-radius:26px;background:#1769ff;color:#fff;font-size:var(--font-16);line-height:var(--line-24)}
.profile-primary>span{font-size:var(--font-24);line-height:var(--line-32)}
.profile-secondary{display:inline-flex;align-items:center;min-height:44px;padding:4px 12px;color:#145fce;font-size:var(--font-14);line-height:var(--line-22)}
.profile-local-note{display:flex;align-items:flex-start;gap:12px;margin:16px auto 0;padding:18px 20px;border:1px solid #e3edf7;border-radius:18px;background:#f0f6fc}
.local-note-icon{display:grid;place-items:center;flex:none;width:24px;height:24px;border:1px solid #8daaca;border-radius:50%;color:#547899;font-size:var(--font-16);line-height:var(--line-24)}
.profile-local-note h2{margin:0 0 4px;font-size:var(--font-16);line-height:var(--line-24);color:#344f6e}
.profile-local-note p{margin:0;color:#53647f;font-size:var(--font-14);line-height:var(--line-22)}
.profile-page a:focus-visible{outline:3px solid #1769ff;outline-offset:4px}
@media(max-width:600px){.profile-empty{padding:28px 20px}.profile-empty h2{font-size:var(--font-20);line-height:var(--line-28)}.profile-illustration{width:160px;height:88px}.profile-local-note{padding:16px}.profile-primary{width:100%;max-width:280px}}

/* The personal center reads existing saves; empty and populated states share one layout. */
body.profile-page.app-layout .profile-center{max-width:880px;margin:0 auto;display:grid;gap:20px}
body.profile-page.app-layout .profile-center [hidden]{display:none!important}
body.profile-page.app-layout .profile-section{padding:24px;border:1px solid var(--qp-line);border-radius:20px;background:var(--site-panel,var(--qp-surface));min-width:0}
body.profile-page.app-layout .profile-section h2{margin:0 0 16px;font-size:var(--font-20);line-height:var(--line-28);font-weight:600}
body.profile-page.app-layout .profile-section h3{margin:0 0 8px;font-size:var(--font-18);line-height:var(--line-26);font-weight:600}
body.profile-page.app-layout .profile-section p{margin:0 0 16px;color:var(--text-secondary);font-size:var(--font-14);line-height:var(--line-22)}
.profile-section-heading{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:8px;margin-bottom:16px}
body.profile-page.app-layout .profile-section-heading h2{margin:0}
.profile-section-heading a,.profile-game-action{display:inline-flex;align-items:center;justify-content:center;min-height:44px;color:var(--text-primary);font-size:var(--font-14);line-height:var(--line-22);font-weight:600}
.profile-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.profile-stat{display:flex;flex-direction:column;gap:8px;min-width:0}
.profile-stat strong{font-size:var(--font-28);line-height:var(--line-36);font-weight:700;overflow-wrap:anywhere}
.profile-stat span{font-size:var(--font-14);line-height:var(--line-22);color:var(--text-secondary)}
.profile-history{list-style:none;margin:0;padding:0;display:grid;gap:16px}
.profile-game{display:grid;grid-template-columns:56px minmax(0,1fr) auto;align-items:center;gap:16px;padding-top:16px;border-top:1px solid var(--qp-line)}
.profile-game img{width:56px;height:56px;object-fit:contain}
.profile-game-copy{min-width:0;overflow-wrap:anywhere}
body.profile-page.app-layout .profile-game p{margin:0}
.profile-game-action{padding:8px 12px;border:2px solid var(--category-border);border-radius:12px;background:var(--category-surface);color:var(--category-ink);text-align:center}
.profile-preferences{display:flex;flex-wrap:wrap;gap:12px;margin-bottom:16px}
.profile-preferences button{min-height:48px;padding:10px 16px;border:2px solid var(--qp-line);border-radius:14px;background:var(--site-raised,var(--qp-surface));color:var(--text-primary);font:inherit;font-size:var(--font-16);line-height:var(--line-24);cursor:pointer}
body.profile-page.app-layout .profile-center .profile-local-note{max-width:none;width:100%;margin:0}
body.profile-page.app-layout .profile-center :is(a,button):focus-visible{outline:3px solid var(--category-accent);outline-offset:4px}
@media(max-width:600px){body.profile-page.app-layout .profile-section{padding:20px 16px}.profile-summary{gap:8px}.profile-game{grid-template-columns:44px minmax(0,1fr);gap:12px}.profile-game img{width:44px;height:44px}.profile-game-action{grid-column:2;justify-self:start}}

body.profile-page.app-layout .profile-center .profile-local-note{padding:16px;border:0;border-radius:12px;background:var(--site-raised,var(--qp-surface));box-shadow:none}
