/* Option 1: Character Stage. Loaded after profile-refresh.css so old profile rules cannot reclaim the layout. */
body[data-page="ultimate-profile"] #page-ultimate-profile{
  padding:18px clamp(14px,2vw,34px) 48px;
  background:radial-gradient(ellipse at 12% 0%,#66335038,transparent 38%),
             radial-gradient(ellipse at 92% 75%,#4d2d5b2c,transparent 45%),#100b17;
  color:#f9e9dc;
}
body[data-page="ultimate-profile"] #page-ultimate-profile::before,
body[data-page="ultimate-profile"] #page-ultimate-profile::after{display:none}
body #page-ultimate-profile #ultimateProfileContent{
  box-sizing:border-box;width:100%;max-width:1580px;margin-inline:auto;color:#f9e9dc;
}
body #page-ultimate-profile #ultimateProfileContent .up-profile-grid.up-character-stage{
  position:relative;isolation:isolate;display:grid;
  grid-template-columns:minmax(0,44%) minmax(0,56%);
  align-items:stretch;gap:0;padding:0;min-height:720px;
  overflow:hidden;border:1px solid #ad7d66;border-radius:20px;
  background:#170d1d;box-shadow:0 24px 60px #06030caa;
  backdrop-filter:none;-webkit-backdrop-filter:none;color:#f9e9dc;
}
body #page-ultimate-profile #ultimateProfileContent .up-character-stage::before{display:none}
body #page-ultimate-profile #ultimateProfileContent .up-character-stage .up-profile-portrait{
  position:relative;grid-column:1;grid-row:1;align-self:stretch;display:block;
  box-sizing:border-box;width:100%;max-width:none;height:100%;min-height:720px;
  margin:0;overflow:hidden;border:0;border-right:1px solid #c08d7859;border-radius:0;
  box-shadow:none;background:#140c1b;
}
body #page-ultimate-profile #ultimateProfileContent .up-character-stage .up-portrait-art{
  position:absolute;inset:0;display:block;box-sizing:border-box;width:100%;height:100%;
  min-height:0;aspect-ratio:auto;border:0;border-radius:0;overflow:hidden;
}
body #page-ultimate-profile #ultimateProfileContent .up-character-stage .up-portrait-art>img{
  position:absolute;inset:0;display:block;width:100%;height:100%;max-width:none;max-height:none;
  aspect-ratio:auto;object-fit:cover;object-position:center top;
  transform:scale(1.06);transform-origin:center top;
}
body #page-ultimate-profile #ultimateProfileContent .up-character-stage .up-profile-portrait::after{
  content:"";position:absolute;inset:0;z-index:1;pointer-events:none;
  background:linear-gradient(0deg,#100916cc 0,transparent 23%),
             linear-gradient(90deg,transparent 76%,#190f22aa);
}
body #page-ultimate-profile #ultimateProfileContent .up-character-stage .up-stage-kicker{
  position:absolute;z-index:3;top:22px;left:22px;max-width:calc(100% - 44px);
  box-sizing:border-box;padding:9px 13px;background:#1b0e1bc9;border:1px solid #dfb69899;
  border-radius:100px;color:#f3d2b2;font:600 10px/1.4 system-ui,sans-serif;letter-spacing:.15em;
}
body #page-ultimate-profile #ultimateProfileContent .up-character-stage .up-profile-caption{
  position:absolute;z-index:3;left:0;right:0;bottom:0;display:flex;
  box-sizing:border-box;max-width:none;min-height:84px;padding:24px 27px;
  border:0;border-radius:0;background:linear-gradient(0deg,#130b1bf0,#130b1b00);
  background-image:linear-gradient(0deg,#130b1bf0,#130b1b00);box-shadow:none;
}
body #page-ultimate-profile #ultimateProfileContent .up-character-stage .up-profile-caption strong{
  font:500 28px/1.1 Georgia,serif;color:#ffe6d1;
}
body #page-ultimate-profile #ultimateProfileContent .up-character-stage .up-profile-caption .up-avi-tier{
  color:#edc8a1;font-weight:700;letter-spacing:.15em;
}
body #page-ultimate-profile #ultimateProfileContent .up-character-stage .up-profile-main{
  position:relative;grid-column:2;grid-row:1;display:flex;flex-direction:column;
  min-width:0;padding:clamp(28px,3vw,48px);margin:0;gap:0;
  background:radial-gradient(ellipse at 90% 0,#6637533d,transparent 42%),
             linear-gradient(115deg,#201223,#140d1b 75%);
  color:#f8e8dc;
}
body #page-ultimate-profile #ultimateProfileContent .up-character-stage .up-profile-main::before{
  content:'';position:absolute;top:0;right:0;width:min(52%,430px);height:330px;
  pointer-events:none;background:url('../images/profile/sakura-corner-v1.svg') right top/contain no-repeat;opacity:.15;
}
body #page-ultimate-profile #ultimateProfileContent .up-character-stage .up-stage-eyebrow{
  margin:0 0 17px;color:#e3b78f;font:600 10px/1.3 system-ui,sans-serif;letter-spacing:.25em;
}
body #page-ultimate-profile #ultimateProfileContent .up-character-stage .up-profile-identity{
  position:relative;display:block;min-height:0;margin:0;padding:0 58px 0 0;
}
body #page-ultimate-profile #ultimateProfileContent .up-character-stage .up-profile-identity h1{
  max-width:100%;margin:0;color:#fff0df;text-shadow:0 3px 22px #b64e8a33;
  font:500 clamp(38px,4vw,66px)/1.05 Georgia,serif;overflow-wrap:anywhere;
}
body #page-ultimate-profile #ultimateProfileContent .up-character-stage .up-profile-options>summary{
  color:#efd6c1;border:1px solid #ba8c9a80;width:43px;height:43px;background:#2b192d;
}
body #page-ultimate-profile #ultimateProfileContent .up-character-stage .up-profile-bio{
  display:block;min-height:0;margin:14px 0 6px;padding:0 36px 18px 0;
  border:0;border-bottom:1px solid #b986a94d;border-radius:0;background:none;
}
body #page-ultimate-profile #ultimateProfileContent .up-character-stage .up-bio-copy{
  color:#e6cbd9;font-size:15px;line-height:1.5;
}
body #page-ultimate-profile #ultimateProfileContent .up-character-stage .up-profile-details{
  display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 25px;
  margin:0;padding:0;border:0;background:none;
}
body #page-ultimate-profile #ultimateProfileContent .up-character-stage .up-profile-details>.up-relationship-row,
body #page-ultimate-profile #ultimateProfileContent .up-character-stage .up-profile-details>.up-clan-row{
  display:flex;flex-direction:column;align-items:flex-start;justify-content:center;
  box-sizing:border-box;min-width:0;min-height:78px;margin:0;padding:13px 0;
  border:0;border-bottom:1px solid #b986a946;border-radius:0;
  background:none;color:#f7e4d8;box-shadow:none;
}
body #page-ultimate-profile #ultimateProfileContent .up-character-stage .up-profile-details>.up-clan-row{padding-right:40px}
body #page-ultimate-profile #ultimateProfileContent .up-character-stage .up-profile-details .up-profile-eyebrow{
  color:#d6a8b8;font-size:10px;letter-spacing:.15em;
}
body #page-ultimate-profile #ultimateProfileContent .up-character-stage .up-profile-details strong,
body #page-ultimate-profile #ultimateProfileContent .up-character-stage .up-profile-details .up-clan-link,
body #page-ultimate-profile #ultimateProfileContent .up-character-stage .up-profile-details .up-connection-state{
  color:#fae8dc;
}
body #page-ultimate-profile #ultimateProfileContent .up-character-stage .up-profile-details .up-clan-link{
  font-size:17px;line-height:1.3;
}
body #page-ultimate-profile #ultimateProfileContent .up-character-stage .up-profile-details .up-profile-clan-emblem{
  right:0;top:20px;width:34px;height:34px;
}
body #page-ultimate-profile #ultimateProfileContent .up-character-stage .up-core-stats{
  display:block;min-width:0;margin:0;padding:24px 0 0;border:0;background:none;
}
body #page-ultimate-profile #ultimateProfileContent .up-character-stage .up-core-stats h2{
  margin:0 0 14px;color:#d5a6bd;font:600 11px/1.3 system-ui,sans-serif;letter-spacing:.18em;
}
body #page-ultimate-profile #ultimateProfileContent .up-character-stage .up-profile-stats{
  display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;
}
body #page-ultimate-profile #ultimateProfileContent .up-character-stage .up-profile-stats>div{
  gap:7px;min-width:0;margin:0;padding:4px 0 12px;border:0;border-bottom:3px solid #cb77a0;
  border-radius:0;background:none;background-image:none;box-shadow:none;
}
body #page-ultimate-profile #ultimateProfileContent .up-character-stage .up-profile-stats>div+div{
  border-color:#a78bdd;background:none;background-image:none;
}
body #page-ultimate-profile #ultimateProfileContent .up-character-stage .up-profile-stats span{
  color:#d6b5cb;font-size:13px;
}
body #page-ultimate-profile #ultimateProfileContent .up-character-stage .up-profile-stats strong{
  color:#ffe9e9;font:700 clamp(27px,3vw,43px)/1.1 system-ui,sans-serif;
}
body #page-ultimate-profile #ultimateProfileContent .up-character-stage .up-profile-stats>div+div strong{color:#dfceff}
body #page-ultimate-profile #ultimateProfileContent .up-character-stage .up-profile-actions{
  display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;
  margin:0;padding:22px 0 0;
}
body #page-ultimate-profile #ultimateProfileContent .up-character-stage .up-profile-actions .up-player-action{
  display:grid;grid-template-columns:50px minmax(0,1fr);gap:10px;
  min-width:0;min-height:84px;padding:10px 12px 10px 7px;
  border:1px solid #ac7199;border-radius:14px 5px 14px 5px;
  background:linear-gradient(115deg,#4e2343,#29182f);box-shadow:inset 0 1px #ffdbed33,0 8px 18px #0006;
}
body #page-ultimate-profile #ultimateProfileContent .up-character-stage .up-profile-actions .up-action-battle{
  border-color:#bd9a59;background:linear-gradient(115deg,#584028,#271b2a);
}
body #page-ultimate-profile #ultimateProfileContent .up-character-stage .up-profile-actions .up-action-hire:not(:disabled){
  border-color:#a987ca;background:linear-gradient(115deg,#4a3064,#281b39);
}
body #page-ultimate-profile #ultimateProfileContent .up-character-stage .up-profile-actions .up-action-gift{background:linear-gradient(115deg,#512b55,#2d1a38)}
body #page-ultimate-profile #ultimateProfileContent .up-character-stage .up-profile-actions .up-action-rs{background:linear-gradient(115deg,#68314d,#321d38)}
body #page-ultimate-profile #ultimateProfileContent .up-character-stage .up-profile-actions .up-player-action .up-action-icon,
body #page-ultimate-profile #ultimateProfileContent .up-character-stage .up-profile-actions .up-player-action .up-action-icon img{
  width:50px;height:50px;filter:drop-shadow(0 3px 6px #0006);
}
body #page-ultimate-profile #ultimateProfileContent .up-character-stage .up-profile-actions .up-player-action .up-action-copy strong{
  color:#fff0df;font:700 18px/1.2 system-ui,sans-serif;
}
body #page-ultimate-profile #ultimateProfileContent .up-character-stage .up-profile-actions .up-player-action .up-action-copy small{
  color:#e3c8d8;font-size:11px;
}
body #page-ultimate-profile #ultimateProfileContent .up-character-stage .up-profile-actions .up-action-rs .up-rs-emblem{
  width:50px;height:50px;
}
body #page-ultimate-profile #ultimateProfileContent .up-character-stage .up-profile-owner-actions{
  display:flex;gap:12px;margin-top:20px;
}
body #page-ultimate-profile #ultimateProfileContent .up-character-stage .up-profile-owner-actions button{
  flex:1;min-height:48px;border:1px solid #b0829c;border-radius:10px;
  background:#43243f;color:#fff1dc;
}
body #page-ultimate-profile #ultimateProfileContent .up-profile-spotlight{
  display:grid;grid-template-columns:minmax(260px,39%) minmax(0,1fr);
  min-height:245px;margin:18px 0 0;overflow:hidden;
  border:1px solid #ad7d66;border-radius:18px;
  background:linear-gradient(115deg,#25122a,#140d1d);
  box-shadow:0 14px 36px #0007;color:#f9e9dc;
}
body #page-ultimate-profile #ultimateProfileContent .up-spotlight-visual{
  min-height:245px;background:linear-gradient(90deg,#160c1d66,#160c1d90),
             url('../images/profile/sakura-garden-panorama-v1.png') center/cover;
}
body #page-ultimate-profile #ultimateProfileContent .up-spotlight-visual img{
  width:100%;height:245px;object-fit:contain;
}
body #page-ultimate-profile #ultimateProfileContent .up-spotlight-visual.is-preview{
  display:flex;justify-content:center;align-items:end;gap:0;padding:10px;box-sizing:border-box;
}
body #page-ultimate-profile #ultimateProfileContent .up-spotlight-visual.is-preview img{
  width:34%;height:205px;object-fit:contain;margin-inline:-3%;
  filter:drop-shadow(0 8px 12px #0009);opacity:.86;
}
body #page-ultimate-profile #ultimateProfileContent .up-spotlight-visual.is-preview img:nth-child(2){height:225px;z-index:2;opacity:1}
body #page-ultimate-profile #ultimateProfileContent .up-spotlight-copy{
  gap:10px;padding:24px clamp(22px,3vw,45px);
}
body #page-ultimate-profile #ultimateProfileContent .up-spotlight-copy h2{
  color:#ffe8da;font:500 clamp(27px,3vw,42px)/1.08 Georgia,serif;
}
body #page-ultimate-profile #ultimateProfileContent .up-spotlight-copy .up-profile-eyebrow{
  color:#d9aaad;letter-spacing:.19em;
}
body #page-ultimate-profile #ultimateProfileContent .up-spotlight-bonuses span{
  color:#f5e3e7;border-color:#bb8b9a;
}
body #page-ultimate-profile #ultimateProfileContent .up-spotlight-copy button{
  border:1px solid #c197a9;border-radius:10px;background:#633455;color:#fff1e8;
  font-size:13px;font-weight:700;
}
body #page-ultimate-profile #ultimateProfileContent .up-profile-tabbar{
  display:flex;gap:8px;margin:22px 0 0;padding:6px;
  border:1px solid #ac8073;border-radius:14px 14px 0 0;
  background:#1e1324;
}
body #page-ultimate-profile #ultimateProfileContent button.up-profile-tab{
  flex:1;display:flex;justify-content:center;align-items:center;
  min-height:54px;min-width:0;border:0;border-radius:9px;
  background:transparent;box-shadow:none;color:#d9bfd0;
  font:600 15px system-ui,sans-serif;
}
body #page-ultimate-profile #ultimateProfileContent button.up-profile-tab[aria-selected="true"]{
  background:linear-gradient(110deg,#673552,#48305d);color:#fff0e4;
  box-shadow:inset 0 0 0 1px #d6aa9d77;
}
body #page-ultimate-profile #ultimateProfileContent .up-profile-collections{
  display:block;grid-template-columns:none;gap:0;min-height:170px;
  margin:0;padding:25px;border:1px solid #ac8073;border-top:0;
  border-radius:0 0 17px 17px;background:#1a1121;
}
body #page-ultimate-profile #ultimateProfileContent .up-profile-collections>[hidden]{display:none!important}
body #page-ultimate-profile #ultimateProfileContent .up-profile-collections>.up-profile-panel,
body #page-ultimate-profile #ultimateProfileContent .up-profile-collections>.up-allies{
  display:block;grid-column:auto;grid-row:auto;margin:0;padding:0;
  border:0;border-radius:0;background:transparent;box-shadow:none;color:#f7e8dc;
}
body #page-ultimate-profile #ultimateProfileContent .up-profile-collections>.up-profile-panel h2{color:#f7e8dc}
body #page-ultimate-profile #ultimateProfileContent .up-profile-collections>.up-accepted-section{
  margin-top:22px;background:#2c1e32;border-color:#ac8073;
}
body #page-ultimate-profile #ultimateProfileContent .up-profile-collections>.up-companions .up-companion-grid{
  grid-template-columns:repeat(4,minmax(0,1fr));
}
@media(max-width:1050px){
 body #page-ultimate-profile #ultimateProfileContent .up-profile-grid.up-character-stage{grid-template-columns:minmax(0,43%) minmax(0,57%)}
 body #page-ultimate-profile #ultimateProfileContent .up-character-stage .up-profile-main{padding:25px}
 body #page-ultimate-profile #ultimateProfileContent .up-character-stage .up-profile-details{gap:0 14px}
}
@media(max-width:700px){
 body[data-page="ultimate-profile"] #page-ultimate-profile{padding:10px 10px 32px}
 body #page-ultimate-profile #ultimateProfileContent .up-profile-grid.up-character-stage{
  display:flex;flex-direction:column;gap:0;min-height:0;padding:0;border-radius:16px;
 }
 body #page-ultimate-profile #ultimateProfileContent .up-character-stage .up-profile-portrait{
  position:relative;display:block;width:100%;max-width:none;
  height:clamp(420px,110vw,590px);min-height:0;flex:0 0 auto;margin:0;border:0;border-bottom:1px solid #ad7d66;border-radius:0;
 }
 body #page-ultimate-profile #ultimateProfileContent .up-character-stage .up-portrait-art{height:100%}
 body #page-ultimate-profile #ultimateProfileContent .up-character-stage .up-portrait-art>img{
  height:100%;object-fit:cover;object-position:center top;transform:none;
 }
 body #page-ultimate-profile #ultimateProfileContent .up-character-stage .up-profile-main{
  display:flex;width:auto;min-width:0;padding:24px 20px;
 }
 body #page-ultimate-profile #ultimateProfileContent .up-character-stage .up-profile-identity,
 body #page-ultimate-profile #ultimateProfileContent .up-character-stage .up-profile-bio,
 body #page-ultimate-profile #ultimateProfileContent .up-character-stage .up-profile-details,
 body #page-ultimate-profile #ultimateProfileContent .up-character-stage .up-core-stats{
  grid-column:auto;grid-row:auto;min-width:0;margin:0;
 }
 body #page-ultimate-profile #ultimateProfileContent .up-character-stage .up-profile-identity h1{font-size:36px}
 body #page-ultimate-profile #ultimateProfileContent .up-character-stage .up-profile-bio{margin-top:12px;padding-bottom:16px}
 body #page-ultimate-profile #ultimateProfileContent .up-character-stage .up-profile-details{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}
 body #page-ultimate-profile #ultimateProfileContent .up-character-stage .up-core-stats{padding-top:20px}
 body #page-ultimate-profile #ultimateProfileContent .up-character-stage .up-profile-stats{grid-template-columns:repeat(2,minmax(0,1fr))}
 body #page-ultimate-profile #ultimateProfileContent .up-character-stage .up-profile-actions{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
 body #page-ultimate-profile #ultimateProfileContent .up-character-stage .up-profile-actions .up-player-action{min-height:78px;padding:8px;grid-template-columns:40px minmax(0,1fr)}
 body #page-ultimate-profile #ultimateProfileContent .up-character-stage .up-profile-actions .up-player-action .up-action-icon,
 body #page-ultimate-profile #ultimateProfileContent .up-character-stage .up-profile-actions .up-player-action .up-action-icon img{width:40px;height:42px}
 body #page-ultimate-profile #ultimateProfileContent .up-character-stage .up-profile-actions .up-player-action .up-action-copy strong{font-size:15px}
 body #page-ultimate-profile #ultimateProfileContent .up-profile-spotlight{grid-template-columns:minmax(130px,36%) minmax(0,1fr);min-height:185px}
 body #page-ultimate-profile #ultimateProfileContent .up-spotlight-visual{min-height:185px}
 body #page-ultimate-profile #ultimateProfileContent .up-spotlight-visual img{height:185px}
 body #page-ultimate-profile #ultimateProfileContent .up-spotlight-visual.is-preview img{height:145px}
 body #page-ultimate-profile #ultimateProfileContent .up-spotlight-visual.is-preview img:nth-child(2){height:165px}
 body #page-ultimate-profile #ultimateProfileContent .up-spotlight-copy{padding:16px}
 body #page-ultimate-profile #ultimateProfileContent .up-spotlight-copy h2{font-size:23px}
 body #page-ultimate-profile #ultimateProfileContent .up-profile-tabbar{overflow-x:auto}
 body #page-ultimate-profile #ultimateProfileContent button.up-profile-tab{flex:0 0 auto;min-width:105px;min-height:46px;font-size:13px}
 body #page-ultimate-profile #ultimateProfileContent .up-profile-collections{padding:16px}
 body #page-ultimate-profile #ultimateProfileContent .up-profile-collections>.up-companions .up-companion-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:420px){
 body #page-ultimate-profile #ultimateProfileContent .up-character-stage .up-profile-details{grid-template-columns:1fr}
 body #page-ultimate-profile #ultimateProfileContent .up-character-stage .up-profile-main{padding:21px 16px}
 body #page-ultimate-profile #ultimateProfileContent .up-profile-spotlight{grid-template-columns:34% 66%;min-height:165px}
 body #page-ultimate-profile #ultimateProfileContent .up-spotlight-visual{min-height:165px}
 body #page-ultimate-profile #ultimateProfileContent .up-spotlight-visual.is-preview img{height:130px}
 body #page-ultimate-profile #ultimateProfileContent .up-spotlight-visual.is-preview img:nth-child(2){height:145px}
 body #page-ultimate-profile #ultimateProfileContent .up-spotlight-copy{padding:10px;gap:6px}
 body #page-ultimate-profile #ultimateProfileContent .up-spotlight-copy h2{font-size:19px}
 body #page-ultimate-profile #ultimateProfileContent .up-spotlight-bonuses span{padding:5px 7px;font-size:10px}
}

/* Character Stage right panel: identity, story, power, then actions. */
body #page-ultimate-profile #ultimateProfileContent .up-character-stage .up-profile-main{
  justify-content:center;gap:0;padding:clamp(30px,3.2vw,58px) clamp(32px,3.5vw,68px);
  background:radial-gradient(ellipse at 105% -10%,#744c7154,transparent 42%),linear-gradient(140deg,#28182c,#160d1c 78%);
}
body #page-ultimate-profile #ultimateProfileContent .up-character-stage .up-profile-main::before{opacity:.11}
body #page-ultimate-profile #ultimateProfileContent .up-character-stage .up-stage-eyebrow{
  margin-bottom:12px;color:#dcb99b;letter-spacing:.27em;
}
body #page-ultimate-profile #ultimateProfileContent .up-character-stage .up-profile-identity{
  padding:0 55px 0 0;margin:0 0 19px;border:0;
}
body #page-ultimate-profile #ultimateProfileContent .up-character-stage .up-profile-identity h1{
  font-size:clamp(49px,4.6vw,82px);line-height:1.04;letter-spacing:-.035em;color:#fff0db;
}
body #page-ultimate-profile #ultimateProfileContent .up-character-stage .up-profile-identity h1::before{
  content:"♛";display:inline-block;margin-right:13px;vertical-align:.12em;
  font:400 .37em Georgia,serif;color:#d9ae73;text-shadow:0 2px 14px #b46a7566;
}
body #page-ultimate-profile #ultimateProfileContent .up-character-stage .up-stage-story{
  position:relative;display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;
  gap:12px 22px;margin:0 0 19px;padding:18px 22px;
  border:1px solid #bd8b9d66;border-radius:15px;
  background:linear-gradient(110deg,#50304a72,#28182980);
  box-shadow:inset 0 1px #ffffff18;
}
body #page-ultimate-profile #ultimateProfileContent .up-character-stage .up-stage-story .up-clan-row{
  grid-column:1 / -1;display:flex;align-items:center;gap:13px;min-height:44px;
  width:auto;margin:0;padding:0;border:0;background:none;box-shadow:none;
}
body #page-ultimate-profile #ultimateProfileContent .up-character-stage .up-stage-story .up-profile-clan-emblem{
  position:static;flex:none;width:44px;height:44px;object-fit:contain;
}
body #page-ultimate-profile #ultimateProfileContent .up-character-stage .up-stage-story .up-clan-identity{
  display:flex;flex-direction:column;gap:2px;min-width:0;
}
body #page-ultimate-profile #ultimateProfileContent .up-character-stage .up-stage-story .up-clan-identity .up-profile-eyebrow,
body #page-ultimate-profile #ultimateProfileContent .up-character-stage .up-stage-story .up-relationship-row .up-profile-eyebrow{
  color:#dbaeb9;font:700 10px/1.25 system-ui,sans-serif;letter-spacing:.17em;
}
body #page-ultimate-profile #ultimateProfileContent .up-character-stage .up-stage-story .up-clan-link,
body #page-ultimate-profile #ultimateProfileContent .up-character-stage .up-stage-story .up-clan-name{
  color:#fff0dc;font:600 20px/1.2 Georgia,serif;text-align:left;
}
body #page-ultimate-profile #ultimateProfileContent .up-character-stage .up-stage-story .up-clan-message{
  margin:2px 0 0;color:#e4c9cf;font-size:12px;
}
body #page-ultimate-profile #ultimateProfileContent .up-character-stage .up-stage-story .up-profile-bio{
  grid-column:1 / -1;min-height:0;margin:0;padding:13px 0 4px;
  border:0;border-top:1px solid #e0b5bf35;background:none;
}
body #page-ultimate-profile #ultimateProfileContent .up-character-stage .up-stage-story .up-bio-copy{
  margin:0;color:#f2dfe3;font:400 clamp(15px,1.1vw,18px)/1.5 Georgia,serif;
}
body #page-ultimate-profile #ultimateProfileContent .up-character-stage .up-stage-story .up-relationship-row{
  grid-column:1 / -1;display:flex;flex-flow:row wrap;align-items:center;gap:8px;
  min-height:0;margin:0;padding:12px 0 0;border:0;border-top:1px solid #e0b5bf35;
  background:none;box-shadow:none;
}
body #page-ultimate-profile #ultimateProfileContent .up-character-stage .up-stage-story .up-relationship-row .up-profile-eyebrow{margin-right:5px}
body #page-ultimate-profile #ultimateProfileContent .up-character-stage .up-stage-story .up-relationship-row .up-connection-state{
  color:#fff0dc;font-size:14px;
}
body #page-ultimate-profile #ultimateProfileContent .up-character-stage .up-stage-story .up-relationship-row button{
  margin-left:auto;padding:5px 10px;border:1px solid #ca9daf66;border-radius:8px;
  background:#432640;color:#f7ddeb;font-size:12px;
}
body #page-ultimate-profile #ultimateProfileContent .up-character-stage .up-profile-details{
  order:5;display:flex;flex-wrap:wrap;gap:8px 22px;margin:14px 0 0;padding:10px 0 0;
  border:0;border-top:1px solid #d9aeb34d;background:none;
}
body #page-ultimate-profile #ultimateProfileContent .up-character-stage .up-profile-details>.up-relationship-row{
  display:inline-flex;flex-flow:row wrap;align-items:baseline;gap:7px;min-width:0;min-height:0;
  margin:0;padding:0;border:0;background:none;
}
body #page-ultimate-profile #ultimateProfileContent .up-character-stage .up-profile-details .up-profile-eyebrow{
  color:#bfa2af;font-size:10px;
}
body #page-ultimate-profile #ultimateProfileContent .up-character-stage .up-profile-details strong,
body #page-ultimate-profile #ultimateProfileContent .up-character-stage .up-profile-details .up-clan-link{
  color:#ead8d7;font-size:12px;font-weight:600;
}
body #page-ultimate-profile #ultimateProfileContent .up-character-stage .up-core-stats{
  order:3;margin:0;padding:4px 0 0;border:0;background:none;
}
body #page-ultimate-profile #ultimateProfileContent .up-character-stage .up-core-stats h2{
  margin:0 0 11px;color:#e5baa1;font-size:11px;letter-spacing:.22em;
}
body #page-ultimate-profile #ultimateProfileContent .up-character-stage .up-profile-stats{gap:13px}
body #page-ultimate-profile #ultimateProfileContent .up-character-stage .up-profile-stats>div{
  position:relative;display:flex;flex-direction:column;justify-content:center;gap:7px;
  min-height:116px;margin:0;padding:17px 20px;border:1px solid #ac737d91;border-radius:13px;
  background:linear-gradient(115deg,#603241b0,#34202eba);box-shadow:inset 0 1px #ffffff18;
}
body #page-ultimate-profile #ultimateProfileContent .up-character-stage .up-profile-stats>div+div{
  border-color:#9476b7a6;background:linear-gradient(115deg,#50375eae,#2b233dbb);
}
body #page-ultimate-profile #ultimateProfileContent .up-character-stage .up-profile-stats span{
  color:#ebc7d2;font:700 11px/1.3 system-ui,sans-serif;letter-spacing:.16em;text-transform:uppercase;
}
body #page-ultimate-profile #ultimateProfileContent .up-character-stage .up-profile-stats strong{
  color:#ffecdf;font-size:clamp(31px,3vw,48px);letter-spacing:-.035em;
}
body #page-ultimate-profile #ultimateProfileContent .up-character-stage .up-profile-stats>div+div strong{color:#e3d0ff}
body #page-ultimate-profile #ultimateProfileContent .up-character-stage .up-profile-stats>div::after{
  content:"✦";position:absolute;right:18px;top:14px;color:#eab39c;font:28px Georgia,serif;opacity:.58;
}
body #page-ultimate-profile #ultimateProfileContent .up-character-stage .up-profile-stats>div+div::after{color:#c8a7ee}
body #page-ultimate-profile #ultimateProfileContent .up-character-stage .up-profile-owner-actions,
body #page-ultimate-profile #ultimateProfileContent .up-character-stage .up-profile-actions{
  order:4;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:18px 0 0;padding:0;
}
body #page-ultimate-profile #ultimateProfileContent .up-character-stage .up-profile-owner-actions button{
  min-width:0;min-height:62px;padding:11px 14px;border:1px solid #c4a075;border-radius:11px;
  background:linear-gradient(115deg,#795231,#49304f);box-shadow:inset 0 1px #ffebc249,0 9px 20px #0005;
  color:#fff1e5;font:700 16px/1.25 system-ui,sans-serif;text-align:center;
}
body #page-ultimate-profile #ultimateProfileContent .up-character-stage .up-profile-owner-actions button+button{
  border-color:#a981c1;background:linear-gradient(115deg,#684072,#403052);
}
body #page-ultimate-profile #ultimateProfileContent .up-character-stage .up-profile-utilities{
  order:6;display:flex;flex-wrap:wrap;gap:7px;margin:13px 0 0;
}
body #page-ultimate-profile #ultimateProfileContent .up-character-stage .up-profile-utilities button{
  padding:4px 0;border:0;background:none;color:#e5c2d9;font:600 12px system-ui,sans-serif;
  text-decoration:underline;text-decoration-color:#d99eb877;text-underline-offset:4px;
}
body #page-ultimate-profile #ultimateProfileContent .up-character-stage .up-profile-actions .up-player-action{
  min-height:72px;
}
body #page-ultimate-profile #ultimateProfileContent .up-character-stage .up-profile-actions .up-action-gift,
body #page-ultimate-profile #ultimateProfileContent .up-character-stage .up-profile-actions .up-action-rs{
  min-height:55px;opacity:.88;
}
body #page-ultimate-profile #ultimateProfileContent .up-character-stage .up-profile-main>.up-profile-muted{order:6}
@media(max-width:1050px){
 body #page-ultimate-profile #ultimateProfileContent .up-character-stage .up-profile-main{padding:26px}
 body #page-ultimate-profile #ultimateProfileContent .up-character-stage .up-profile-stats>div{min-height:96px;padding:13px}
}
@media(max-width:700px){
 body #page-ultimate-profile #ultimateProfileContent .up-character-stage .up-profile-main{padding:26px 20px}
 body #page-ultimate-profile #ultimateProfileContent .up-character-stage .up-profile-identity h1{font-size:45px}
 body #page-ultimate-profile #ultimateProfileContent .up-character-stage .up-stage-story{padding:16px}
 body #page-ultimate-profile #ultimateProfileContent .up-character-stage .up-profile-stats>div{min-height:105px}
}
@media(max-width:430px){
 body #page-ultimate-profile #ultimateProfileContent .up-character-stage .up-profile-identity h1{font-size:38px}
 body #page-ultimate-profile #ultimateProfileContent .up-character-stage .up-profile-stats{gap:8px}
 body #page-ultimate-profile #ultimateProfileContent .up-character-stage .up-profile-stats>div{padding:10px;min-height:95px}
 body #page-ultimate-profile #ultimateProfileContent .up-character-stage .up-profile-stats strong{font-size:27px}
 body #page-ultimate-profile #ultimateProfileContent .up-character-stage .up-profile-owner-actions button{font-size:13px}
}

/* Reference alignment: reserve real content for the dossier, not utility metadata. */
body #page-ultimate-profile #ultimateProfileContent .up-profile-grid.up-character-stage{
  grid-template-columns:minmax(0,55%) minmax(0,45%);
  min-height:750px;
  background:linear-gradient(90deg,#1c0d17 31%,transparent 60%),
    url('../images/profile/sakura-garden-panorama-v1.png') right center/cover no-repeat;
}
body #page-ultimate-profile #ultimateProfileContent .up-character-stage .up-profile-portrait{
  min-height:750px;
}
body #page-ultimate-profile #ultimateProfileContent .up-character-stage .up-profile-main{
  min-height:0;margin:48px 38px 48px -24px;
  padding:31px clamp(24px,2.3vw,43px);
  background:linear-gradient(115deg,#1a0f20e9,#100a1adf);
  border-color:#cca993aa;box-shadow:0 20px 42px #07030bb5,inset 0 0 45px #743d4e17;
}
body #page-ultimate-profile #ultimateProfileContent .up-character-stage .up-profile-main::before{
  opacity:.05;
}
body #page-ultimate-profile #ultimateProfileContent .up-character-stage .up-stage-eyebrow{
  color:#f0c89e;
}
body #page-ultimate-profile #ultimateProfileContent .up-character-stage .up-profile-identity h1{
  color:#fff1e1;font-size:clamp(48px,4.2vw,82px);
}
body #page-ultimate-profile #ultimateProfileContent .up-character-stage .up-stage-story .up-profile-bio{
  min-height:48px;
}
body #page-ultimate-profile #ultimateProfileContent .up-character-stage .up-stage-story .up-bio-copy{
  color:#ffe3e9;
}
body #page-ultimate-profile #ultimateProfileContent .up-character-stage .up-profile-stats strong,
body #page-ultimate-profile #ultimateProfileContent .up-character-stage .up-profile-stats>div+div strong{
  font-size:clamp(30px,2.6vw,47px);
}
body #page-ultimate-profile #ultimateProfileContent .up-character-stage .up-profile-owner-actions{
  margin-top:23px;
}
body #page-ultimate-profile #ultimateProfileContent .up-profile-collections .up-profile-details{
  display:flex;flex-wrap:wrap;gap:16px;margin-top:14px;
}
body #page-ultimate-profile #ultimateProfileContent .up-profile-collections .up-profile-details .up-relationship-row{
  display:flex;align-items:center;gap:8px;
}
@media(max-width:1100px){
 body #page-ultimate-profile #ultimateProfileContent .up-profile-grid.up-character-stage{grid-template-columns:minmax(0,48%) minmax(0,52%)}
 body #page-ultimate-profile #ultimateProfileContent .up-character-stage .up-profile-main{margin:22px 17px 22px -8px}
}
@media(max-width:700px){
 body #page-ultimate-profile #ultimateProfileContent .up-profile-grid.up-character-stage{display:flex;flex-direction:column;min-height:0}
 body #page-ultimate-profile #ultimateProfileContent .up-character-stage .up-profile-portrait{min-height:0}
 body #page-ultimate-profile #ultimateProfileContent .up-character-stage .up-profile-main{margin:0 10px 12px;padding:23px 18px}
}

/* Character Stage reference composition: one framed dossier over a moonlit scene. */
body #page-ultimate-profile #ultimateProfileContent .up-profile-grid.up-character-stage{
  grid-template-columns:minmax(0,51%) minmax(0,49%);
  min-height:690px;
  background:linear-gradient(90deg,#180c1a 43%,#180c1aaa 68%,#100a17d9),
    url('../images/profile/sakura-garden-panorama-v1.png') center right/cover no-repeat;
  border-color:#a98a75;
}
body #page-ultimate-profile #ultimateProfileContent .up-character-stage .up-profile-portrait{
  min-height:690px;border-right:0;
}
body #page-ultimate-profile #ultimateProfileContent .up-character-stage .up-profile-main{
  grid-column:2;align-self:center;justify-content:center;box-sizing:border-box;
  min-height:calc(100% - 48px);margin:24px 26px 24px 0;
  padding:clamp(27px,2.7vw,48px) clamp(26px,2.9vw,50px) 25px;
  border:1px solid #c59f87ab;border-radius:13px;
  background:linear-gradient(125deg,#1b1020ee,#1b1023e8 66%,#110b18f0);
  box-shadow:0 20px 36px #06030b94,inset 0 1px #f7cbad25;
}
body #page-ultimate-profile #ultimateProfileContent .up-character-stage .up-profile-main::before{
  width:45%;height:240px;opacity:.10;
}
body #page-ultimate-profile #ultimateProfileContent .up-character-stage .up-stage-eyebrow{
  margin:0 0 12px;color:#d7ae91;font-size:10px;letter-spacing:.19em;
}
body #page-ultimate-profile #ultimateProfileContent .up-character-stage .up-profile-identity{
  margin:0 0 11px;padding-right:45px;
}
body #page-ultimate-profile #ultimateProfileContent .up-character-stage .up-profile-identity h1{
  font:400 clamp(44px,4vw,76px)/1.03 Georgia,serif;letter-spacing:-.035em;color:#fff0e6;
}
body #page-ultimate-profile #ultimateProfileContent .up-character-stage .up-profile-identity h1::before{content:none}
body #page-ultimate-profile #ultimateProfileContent .up-character-stage .up-profile-identity h1::after{
  content:"♛";display:inline-block;margin-left:13px;vertical-align:.18em;
  color:#dfb979;font:400 .38em Georgia,serif;letter-spacing:0;
}
body #page-ultimate-profile #ultimateProfileContent .up-character-stage .up-stage-story{
  display:block;margin:0;padding:0;border:0;border-radius:0;
  background:transparent;box-shadow:none;
}
body #page-ultimate-profile #ultimateProfileContent .up-character-stage .up-stage-story .up-clan-row{
  display:flex;align-items:center;gap:12px;margin:0 0 13px;padding:0;
}
body #page-ultimate-profile #ultimateProfileContent .up-character-stage .up-stage-story .up-profile-clan-emblem{
  width:56px;height:56px;padding:5px;border:1px solid #d7ac967d;border-radius:8px;
  background:#140c1b;
}
body #page-ultimate-profile #ultimateProfileContent .up-character-stage .up-stage-story .up-clan-link,
body #page-ultimate-profile #ultimateProfileContent .up-character-stage .up-stage-story .up-clan-name{
  font:500 clamp(20px,1.75vw,27px)/1.13 Georgia,serif;color:#fff1e7;
}
body #page-ultimate-profile #ultimateProfileContent .up-character-stage .up-stage-story .up-clan-identity .up-profile-eyebrow{
  order:2;margin-top:4px;color:#d8ad81;letter-spacing:.22em;
}
body #page-ultimate-profile #ultimateProfileContent .up-character-stage .up-stage-story .up-clan-message{
  order:3;color:#d4b1c9;
}
body #page-ultimate-profile #ultimateProfileContent .up-character-stage .up-stage-story .up-profile-bio{
  margin:0;padding:8px 0 16px;border:0;background:transparent;
}
body #page-ultimate-profile #ultimateProfileContent .up-character-stage .up-stage-story .up-bio-copy{
  margin:0;color:#f3dbe5;font:400 clamp(15px,1.18vw,18px)/1.4 Georgia,serif;
}
body #page-ultimate-profile #ultimateProfileContent .up-character-stage .up-stage-story .up-relationship-row{
  display:flex;align-items:center;gap:8px;margin:0;padding:13px 0 11px;
  border:0;border-top:1px solid #d5aa9d6b;border-bottom:1px solid #d5aa9d6b;
}
body #page-ultimate-profile #ultimateProfileContent .up-character-stage .up-stage-story .up-relationship-row .up-profile-eyebrow{
  width:100%;margin:0 0 2px;color:#dda0c1;font-size:10px;
}
body #page-ultimate-profile #ultimateProfileContent .up-character-stage .up-stage-story .up-relationship-row .up-connection-state{
  color:#eac4e3;font:500 17px Georgia,serif;
}
body #page-ultimate-profile #ultimateProfileContent .up-character-stage .up-stage-story .up-relationship-row button{
  margin-left:auto;padding:4px 7px;border:0;background:transparent;
  color:#d5a6cf;font:600 11px system-ui,sans-serif;text-decoration:underline;text-underline-offset:3px;
}
body #page-ultimate-profile #ultimateProfileContent .up-character-stage .up-core-stats{
  display:block;margin:18px 0 0;padding:0;border:0;background:transparent;
}
body #page-ultimate-profile #ultimateProfileContent .up-character-stage .up-core-stats h2{
  position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;
}
body #page-ultimate-profile #ultimateProfileContent .up-character-stage .up-profile-stats{
  display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0;
}
body #page-ultimate-profile #ultimateProfileContent .up-character-stage .up-profile-stats>div,
body #page-ultimate-profile #ultimateProfileContent .up-character-stage .up-profile-stats>div+div{
  position:relative;display:grid;grid-template-columns:40px minmax(0,1fr);
  grid-template-rows:auto auto;column-gap:9px;align-items:center;min-height:82px;
  margin:0;padding:4px 15px 4px 0;border:0;border-radius:0;
  background:transparent;box-shadow:none;
}
body #page-ultimate-profile #ultimateProfileContent .up-character-stage .up-profile-stats>div+div{
  padding-left:19px;border-left:1px solid #d9acc177;
}
body #page-ultimate-profile #ultimateProfileContent .up-character-stage .up-profile-stats>div::before{
  content:"💪";grid-column:1;grid-row:1 / 3;align-self:center;
  color:#eda7bd;font:31px/1 system-ui,sans-serif;filter:sepia(.55) saturate(1.5) hue-rotate(275deg);
}
body #page-ultimate-profile #ultimateProfileContent .up-character-stage .up-profile-stats>div+div::before{
  content:"🧠";filter:sepia(.6) saturate(2) hue-rotate(215deg);
}
body #page-ultimate-profile #ultimateProfileContent .up-character-stage .up-profile-stats>div::after{content:none}
body #page-ultimate-profile #ultimateProfileContent .up-character-stage .up-profile-stats strong,
body #page-ultimate-profile #ultimateProfileContent .up-character-stage .up-profile-stats>div+div strong{
  grid-column:2;grid-row:1;min-width:0;color:#f6d7b9;
  font:500 clamp(27px,2.55vw,44px)/1.02 Georgia,serif;letter-spacing:-.045em;
}
body #page-ultimate-profile #ultimateProfileContent .up-character-stage .up-profile-stats>div+div strong{color:#e8d0f5}
body #page-ultimate-profile #ultimateProfileContent .up-character-stage .up-profile-stats span{
  grid-column:2;grid-row:2;color:#f3dbe5;
  font:700 11px/1.4 system-ui,sans-serif;letter-spacing:.15em;text-transform:uppercase;
}
body #page-ultimate-profile #ultimateProfileContent .up-character-stage .up-profile-owner-actions,
body #page-ultimate-profile #ultimateProfileContent .up-character-stage .up-profile-actions{
  display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;
  margin:20px 0 0;padding:0;
}
body #page-ultimate-profile #ultimateProfileContent .up-character-stage .up-profile-owner-actions button,
body #page-ultimate-profile #ultimateProfileContent .up-character-stage .up-profile-actions .up-player-action{
  min-height:68px;border:1px solid #d7ad77;border-radius:8px 8px 12px 12px;
  background:linear-gradient(125deg,#77533e,#332332 80%);
  box-shadow:inset 0 1px #ffe8c67a,0 0 0 3px #1e1325,0 9px 16px #0008;
  color:#fff1df;font:500 clamp(14px,1.2vw,19px)/1.2 Georgia,serif;
}
body #page-ultimate-profile #ultimateProfileContent .up-character-stage .up-profile-owner-actions button+button,
body #page-ultimate-profile #ultimateProfileContent .up-character-stage .up-profile-actions .up-action-hire{
  border-color:#b884d7;background:linear-gradient(125deg,#6d378a,#291b39 80%);
}
body #page-ultimate-profile #ultimateProfileContent .up-character-stage .up-profile-actions .up-action-battle,
body #page-ultimate-profile #ultimateProfileContent .up-character-stage .up-profile-actions .up-action-hire{
  min-height:76px;
}
body #page-ultimate-profile #ultimateProfileContent .up-character-stage .up-profile-actions .up-action-gift,
body #page-ultimate-profile #ultimateProfileContent .up-character-stage .up-profile-actions .up-action-rs{
  min-height:42px;margin-top:5px;border-color:#a17c96;background:#2b1b31;box-shadow:none;
}
body #page-ultimate-profile #ultimateProfileContent .up-character-stage .up-profile-details{
  gap:7px 19px;margin:17px 0 0;padding:10px 0 0;border-color:#ac839460;
}
body #page-ultimate-profile #ultimateProfileContent .up-character-stage .up-profile-utilities{
  gap:16px;margin:9px 0 0;
}
body #page-ultimate-profile #ultimateProfileContent .up-character-stage .up-profile-utilities button{
  color:#d8b9d0;font-size:11px;
}
@media(max-width:1100px){
 body #page-ultimate-profile #ultimateProfileContent .up-profile-grid.up-character-stage{grid-template-columns:minmax(0,48%) minmax(0,52%)}
 body #page-ultimate-profile #ultimateProfileContent .up-character-stage .up-profile-main{margin-right:16px;padding:23px}
 body #page-ultimate-profile #ultimateProfileContent .up-character-stage .up-profile-stats>div,
 body #page-ultimate-profile #ultimateProfileContent .up-character-stage .up-profile-stats>div+div{grid-template-columns:28px minmax(0,1fr);column-gap:5px}
 body #page-ultimate-profile #ultimateProfileContent .up-character-stage .up-profile-stats>div::before{font-size:24px}
}
@media(max-width:700px){
 body #page-ultimate-profile #ultimateProfileContent .up-profile-grid.up-character-stage{
  display:flex;flex-direction:column;min-height:0;
 }
 body #page-ultimate-profile #ultimateProfileContent .up-character-stage .up-profile-portrait{
  min-height:0;border-bottom:0;
 }
 body #page-ultimate-profile #ultimateProfileContent .up-character-stage .up-profile-main{
  width:auto;min-height:0;margin:0 10px 12px;padding:22px 18px;
 }
 body #page-ultimate-profile #ultimateProfileContent .up-character-stage .up-profile-identity h1{font-size:44px}
 body #page-ultimate-profile #ultimateProfileContent .up-character-stage .up-profile-stats>div strong,
 body #page-ultimate-profile #ultimateProfileContent .up-character-stage .up-profile-stats>div+div strong{font-size:clamp(23px,5vw,36px)}
}
@media(max-width:420px){
 body #page-ultimate-profile #ultimateProfileContent .up-character-stage .up-profile-main{margin-inline:7px;padding:18px 13px}
 body #page-ultimate-profile #ultimateProfileContent .up-character-stage .up-profile-identity h1{font-size:37px}
 body #page-ultimate-profile #ultimateProfileContent .up-character-stage .up-profile-stats>div+div{padding-left:9px}
 body #page-ultimate-profile #ultimateProfileContent .up-character-stage .up-profile-stats>div::before{font-size:19px}
 body #page-ultimate-profile #ultimateProfileContent .up-character-stage .up-profile-stats>div,
 body #page-ultimate-profile #ultimateProfileContent .up-character-stage .up-profile-stats>div+div{grid-template-columns:22px minmax(0,1fr)}
}

/* Carry the equipped AVI's scene into the dossier instead of using unrelated garden art. */
body #page-ultimate-profile #ultimateProfileContent .up-profile-grid.up-character-stage{
  background-color:#140a19;
  background-image:linear-gradient(90deg,transparent 42%,#200e2470 59%,#2a123867 100%),
    var(--up-profile-scene,url('../images/profile/sakura-garden-panorama-v1.png'));
  background-size:cover,cover;background-position:center,center;
}
body #page-ultimate-profile #ultimateProfileContent .up-character-stage .up-profile-main{
  background:linear-gradient(125deg,#1b1021ec 3%,#170d20d5 60%,#1b1026dd);
  border-color:#dab59eab;backdrop-filter:blur(7px);-webkit-backdrop-filter:blur(7px);
  box-shadow:0 17px 40px #08030bb3,inset 0 0 0 1px #f0b9d01f;
}
body #page-ultimate-profile #ultimateProfileContent .up-character-stage .up-stage-meta{
  display:block;margin-top:9px;color:#dcaac5;
  font:600 12px/1.35 system-ui,sans-serif;letter-spacing:.12em;text-transform:uppercase;
}
body #page-ultimate-profile #ultimateProfileContent .up-character-stage .up-profile-identity{margin-bottom:18px}
body #page-ultimate-profile #ultimateProfileContent .up-character-stage .up-stage-story .up-clan-row{margin-bottom:16px}
body #page-ultimate-profile #ultimateProfileContent .up-character-stage .up-stage-story .up-bio-copy{font-size:17px}
body #page-ultimate-profile #ultimateProfileContent .up-character-stage .up-stage-story .up-relationship-row{margin-top:7px}
body #page-ultimate-profile #ultimateProfileContent .up-character-stage .up-profile-owner-actions button,
body #page-ultimate-profile #ultimateProfileContent .up-character-stage .up-profile-actions .up-player-action{
  box-shadow:inset 0 1px #ffe9cd85,0 0 0 2px #2e1938,0 6px 18px #0009;
}
@media(max-width:700px){
 body #page-ultimate-profile #ultimateProfileContent .up-profile-grid.up-character-stage{
  background-image:linear-gradient(180deg,transparent 35%,#220e26a8 65%,#220e26a8),var(--up-profile-scene,url('../images/profile/sakura-garden-panorama-v1.png'));
 }
}

/* Right dossier matched to Character Stage reference. */
body #page-ultimate-profile #ultimateProfileContent .up-character-stage .up-stage-marker{
  position:absolute;z-index:6;top:11px;right:20px;
  padding:6px 15px;border:1px solid #d2ad7b;border-radius:99px;
  background:#190d20ea;color:#e4c29c;
  font:700 10px/1.3 Georgia,serif;letter-spacing:.17em;text-transform:uppercase;
}
body #page-ultimate-profile #ultimateProfileContent .up-character-stage .up-stage-eyebrow{display:none}
body #page-ultimate-profile #ultimateProfileContent .up-character-stage .up-profile-main{
  margin-top:32px;margin-bottom:32px;padding-top:28px;padding-bottom:28px;
  background:linear-gradient(140deg,#180d20db,#120a1bb8 70%,#190d24dc);
}
body #page-ultimate-profile #ultimateProfileContent .up-character-stage .up-profile-main::before{
  content:"";width:50%;height:70%;top:0;right:0;opacity:.2;
  background:linear-gradient(180deg,#b95c8328,transparent 40%),url('../images/profile/sakura-corner-v1.svg') right top/contain no-repeat;
}
body #page-ultimate-profile #ultimateProfileContent .up-character-stage .up-profile-identity{margin-bottom:20px}
body #page-ultimate-profile #ultimateProfileContent .up-character-stage .up-profile-identity h1{
  font-size:clamp(49px,4.2vw,82px);color:#fff1e9;text-shadow:0 3px 20px #efb6d644;
}
body #page-ultimate-profile #ultimateProfileContent .up-character-stage .up-stage-meta{
  margin-top:8px;color:#f4d1df;font:500 13px/1.4 Georgia,serif;letter-spacing:.02em;text-transform:none;
}
body #page-ultimate-profile #ultimateProfileContent .up-character-stage .up-stage-story .up-clan-identity .up-profile-eyebrow{
  order:2;color:#e6b58b;font-size:11px;
}
body #page-ultimate-profile #ultimateProfileContent .up-character-stage .up-stage-story .up-profile-bio{
  min-height:80px;padding:9px 0 18px;
}
body #page-ultimate-profile #ultimateProfileContent .up-character-stage .up-stage-story .up-bio-copy{
  max-width:35ch;color:#ffecf3;font:400 clamp(16px,1.35vw,20px)/1.45 Georgia,serif;
}
body #page-ultimate-profile #ultimateProfileContent .up-character-stage .up-stage-story .up-relationship-row{
  position:relative;display:grid;grid-template-columns:28px minmax(0,1fr) auto;
  grid-template-rows:auto auto;column-gap:10px;min-height:77px;
  align-items:center;margin:0;padding:14px 0 12px;
  border-top:1px solid #dfb7bc7a;border-bottom:0;
}
body #page-ultimate-profile #ultimateProfileContent .up-character-stage .up-stage-story .up-relationship-row .up-rs-heart{
  grid-column:1;grid-row:1 / 3;color:#ff6ba4;font:29px/1 Georgia,serif;
  text-shadow:0 0 14px #f067aa66;
}
body #page-ultimate-profile #ultimateProfileContent .up-character-stage .up-stage-story .up-relationship-row .up-profile-eyebrow{
  position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);
}
body #page-ultimate-profile #ultimateProfileContent .up-character-stage .up-stage-story .up-relationship-row .up-connection-state,
body #page-ultimate-profile #ultimateProfileContent .up-character-stage .up-stage-story .up-relationship-row .up-rs-player{
  grid-column:2;grid-row:1;color:#f2c8ec;font:500 clamp(17px,1.5vw,23px)/1.2 Georgia,serif;
}
body #page-ultimate-profile #ultimateProfileContent .up-character-stage .up-stage-story .up-relationship-row .up-rs-note{
  grid-column:2;grid-row:2;color:#cdb5cc;font:400 12px/1.3 Georgia,serif;
}
body #page-ultimate-profile #ultimateProfileContent .up-character-stage .up-stage-story .up-relationship-row button{
  grid-column:3;grid-row:1 / 3;margin:0;color:#edbfdc;
}
body #page-ultimate-profile #ultimateProfileContent .up-character-stage .up-core-stats{margin-top:14px}
body #page-ultimate-profile #ultimateProfileContent .up-character-stage .up-profile-stats>div,
body #page-ultimate-profile #ultimateProfileContent .up-character-stage .up-profile-stats>div+div{
  grid-template-columns:50px minmax(0,1fr);grid-template-rows:auto auto auto;min-height:104px;
  column-gap:12px;padding:7px 14px 6px 0;
}
body #page-ultimate-profile #ultimateProfileContent .up-character-stage .up-profile-stats>div+div{padding-left:18px}
body #page-ultimate-profile #ultimateProfileContent .up-character-stage .up-profile-stats>div::before{
  content:"";grid-column:1;grid-row:1 / 3;width:48px;height:48px;
  background:url('../images/profile/strength-mark-v1.svg') center/contain no-repeat;filter:drop-shadow(0 3px 8px #bc5c9880);
}
body #page-ultimate-profile #ultimateProfileContent .up-character-stage .up-profile-stats>div+div::before{
  content:"";background-image:url('../images/profile/intelligence-mark-v1.svg');filter:drop-shadow(0 3px 8px #925fce80);
}
body #page-ultimate-profile #ultimateProfileContent .up-character-stage .up-profile-stats strong,
body #page-ultimate-profile #ultimateProfileContent .up-character-stage .up-profile-stats>div+div strong{grid-row:1}
body #page-ultimate-profile #ultimateProfileContent .up-character-stage .up-profile-stats span{grid-row:2}
body #page-ultimate-profile #ultimateProfileContent .up-character-stage .up-profile-stats .up-stat-caption{
  grid-column:1 / -1;grid-row:3;margin:6px 0 0;color:#cfb8c6;
  font:400 12px/1.35 Georgia,serif;text-align:center;
}
body #page-ultimate-profile #ultimateProfileContent .up-character-stage .up-profile-owner-actions,
body #page-ultimate-profile #ultimateProfileContent .up-character-stage .up-profile-actions{margin-top:25px;gap:15px}
body #page-ultimate-profile #ultimateProfileContent .up-character-stage .up-profile-owner-actions button{
  display:grid;grid-template-columns:52px minmax(0,1fr);align-items:center;gap:12px;
  min-height:89px;padding:13px 16px;text-align:left;
  border:1px solid #d7b781;border-radius:7px;
  background:linear-gradient(130deg,#44304c,#211629 70%);
}
body #page-ultimate-profile #ultimateProfileContent .up-character-stage .up-profile-owner-actions button+button{
  border-color:#aa80d0;background:linear-gradient(130deg,#5a2a75,#28143c 75%);
}
body #page-ultimate-profile #ultimateProfileContent .up-character-stage .up-profile-owner-actions .up-owner-icon{
  display:grid;place-items:center;width:50px;height:50px;color:#e9bb75;
  font:42px/1 Georgia,serif;text-shadow:0 2px 13px #eba87488;
}
body #page-ultimate-profile #ultimateProfileContent .up-character-stage .up-profile-owner-actions .up-owner-icon img{
  display:block;width:50px;height:50px;object-fit:contain;
}
body #page-ultimate-profile #ultimateProfileContent .up-character-stage .up-profile-owner-actions .up-owner-copy{
  display:flex;flex-direction:column;gap:3px;min-width:0;
}
body #page-ultimate-profile #ultimateProfileContent .up-character-stage .up-profile-owner-actions .up-owner-copy strong{
  color:#fff1e5;font:500 clamp(16px,1.5vw,24px)/1.05 Georgia,serif;
}
body #page-ultimate-profile #ultimateProfileContent .up-character-stage .up-profile-owner-actions .up-owner-copy small{
  color:#edc1cd;font:700 9px/1.4 system-ui,sans-serif;letter-spacing:.15em;text-transform:uppercase;
}
@media(max-width:700px){
 body #page-ultimate-profile #ultimateProfileContent .up-character-stage .up-stage-marker{top:9px;right:9px;font-size:9px}
 body #page-ultimate-profile #ultimateProfileContent .up-character-stage .up-profile-main{margin:0 10px 12px;padding:24px 18px}
}
@media(max-width:430px){
 body #page-ultimate-profile #ultimateProfileContent .up-character-stage .up-profile-stats>div,
 body #page-ultimate-profile #ultimateProfileContent .up-character-stage .up-profile-stats>div+div{grid-template-columns:28px minmax(0,1fr);gap:4px}
 body #page-ultimate-profile #ultimateProfileContent .up-character-stage .up-profile-stats>div::before{width:26px;height:26px}
 body #page-ultimate-profile #ultimateProfileContent .up-character-stage .up-profile-stats .up-stat-caption{font-size:10px}
 body #page-ultimate-profile #ultimateProfileContent .up-character-stage .up-profile-owner-actions button{grid-template-columns:28px minmax(0,1fr);gap:6px;padding:8px;min-height:72px}
 body #page-ultimate-profile #ultimateProfileContent .up-character-stage .up-profile-owner-actions .up-owner-icon,
 body #page-ultimate-profile #ultimateProfileContent .up-character-stage .up-profile-owner-actions .up-owner-icon img{width:28px;height:28px;font-size:25px}
 body #page-ultimate-profile #ultimateProfileContent .up-character-stage .up-profile-owner-actions .up-owner-copy strong{font-size:14px}
 body #page-ultimate-profile #ultimateProfileContent .up-character-stage .up-profile-owner-actions .up-owner-copy small{font-size:8px}
}

/* Character Stage scene plate: the single visual focus of this pass. */
body #page-ultimate-profile #ultimateProfileContent .up-profile-grid.up-character-stage{
  background-color:#1c0b23;
  background-image:linear-gradient(90deg,#0c061260 0%,#0c061227 48%,#11071a28 100%),
    url('../images/profile/character-stage-city-v1.png');
  background-size:cover,cover;background-position:center,center;
}
body #page-ultimate-profile #ultimateProfileContent .up-character-stage .up-profile-main{
  background:linear-gradient(115deg,#100816d5 0%,#12091bc4 65%,#110919d8 100%);
  backdrop-filter:blur(2px);-webkit-backdrop-filter:blur(2px);
}
body #page-ultimate-profile #ultimateProfileContent .up-character-stage .up-profile-main::before{display:none}
@media(max-width:700px){
 body #page-ultimate-profile #ultimateProfileContent .up-profile-grid.up-character-stage{
  background-image:linear-gradient(180deg,#10071713 0%,#1007178c 55%,#10071752 100%),
    url('../images/profile/character-stage-city-v1.png');
  background-position:center,center;
 }
}

/* Nameplate pass: reference scale, white-gold type, real metadata. */
body #page-ultimate-profile #ultimateProfileContent .up-character-stage .up-profile-identity h1{
  color:#fff8f0;
  font:400 clamp(50px,4.85vw,102px)/.98 Georgia,serif;
  letter-spacing:-.048em;text-shadow:0 3px 16px #09030caa,0 0 22px #e9a2c733;
}
body #page-ultimate-profile #ultimateProfileContent .up-character-stage .up-profile-identity h1::after{
  margin-left:16px;vertical-align:.17em;color:#e8c17d;
  font-size:.42em;text-shadow:0 2px 12px #d89757aa;
}
body #page-ultimate-profile #ultimateProfileContent .up-character-stage .up-stage-meta{
  margin-top:12px;color:#f4d9e6;
  font:500 clamp(13px,1vw,17px)/1.4 Georgia,serif;letter-spacing:.005em;
}
@media(max-width:700px){
 body #page-ultimate-profile #ultimateProfileContent .up-character-stage .up-profile-identity h1{font-size:clamp(42px,9vw,60px)}
}

/* Bio only: an intentional empty state and an edit action in the reading flow. */
body #page-ultimate-profile #ultimateProfileContent .up-character-stage .up-stage-story .up-profile-bio{
  display:flex;flex-direction:column;align-items:flex-start;justify-content:center;
  min-height:112px;padding:13px 0 21px;
}
body #page-ultimate-profile #ultimateProfileContent .up-character-stage .up-stage-story .up-profile-bio .up-bio-copy{
  max-width:42ch;margin:0;color:#f7e5ed;
  font:400 clamp(16px,1.28vw,20px)/1.42 Georgia,serif;
}
body #page-ultimate-profile #ultimateProfileContent .up-character-stage .up-stage-story .up-profile-bio.is-empty .up-bio-copy{
  color:#e9cbd9;font-style:italic;
}
body #page-ultimate-profile #ultimateProfileContent .up-character-stage .up-stage-story .up-profile-bio .up-bio-edit{
  position:static;display:inline-flex;align-items:center;justify-content:flex-start;
  width:auto;height:auto;min-height:0;margin:10px 0 0;padding:0;
  border:0;border-radius:0;background:none;box-shadow:none;
  color:#e2b5ce;font:600 11px/1.3 system-ui,sans-serif;
  letter-spacing:.11em;text-transform:uppercase;text-decoration:underline;text-underline-offset:4px;
}
body #page-ultimate-profile #ultimateProfileContent .up-character-stage .up-stage-story .up-profile-bio .up-bio-edit:hover{
  color:#fff0e9;background:none;
}

/* Clan identity: framed sakura emblem, compact name and a quiet real-data label. */
body #page-ultimate-profile #ultimateProfileContent .up-character-stage .up-stage-story .up-clan-row{
  gap:12px;min-height:62px;margin:0 0 8px;padding:0;
}
body #page-ultimate-profile #ultimateProfileContent .up-character-stage .up-stage-story .up-profile-clan-emblem{
  box-sizing:border-box;width:64px;height:64px;padding:6px;object-fit:contain;
  border:1px solid #b88a9b9c;border-radius:8px;
  background:linear-gradient(145deg,#29172dba,#110b19c9);
  box-shadow:inset 0 1px #f3d2d72b,0 5px 16px #06030b88;
}
body #page-ultimate-profile #ultimateProfileContent .up-character-stage .up-stage-story .up-clan-identity{gap:2px}
body #page-ultimate-profile #ultimateProfileContent .up-character-stage .up-stage-story .up-clan-link,
body #page-ultimate-profile #ultimateProfileContent .up-character-stage .up-stage-story .up-clan-name{
  display:inline-block;width:auto;min-height:0;margin:0;padding:0;border:0;border-radius:0;
  background:none;box-shadow:none;color:#fff4e8;
  font:500 clamp(22px,1.85vw,29px)/1.1 Georgia,serif;text-align:left;
}
body #page-ultimate-profile #ultimateProfileContent .up-character-stage .up-stage-story .up-clan-link:hover{
  color:#ffe1b8;background:none;text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:5px;
}
body #page-ultimate-profile #ultimateProfileContent .up-character-stage .up-stage-story .up-clan-link:focus-visible{
  outline:2px solid #f5c782;outline-offset:5px;
}
body #page-ultimate-profile #ultimateProfileContent .up-character-stage .up-stage-story .up-clan-identity .up-profile-eyebrow{
  order:2;margin:4px 0 0;color:#d9ae7a;
  font:700 10px/1.25 system-ui,sans-serif;letter-spacing:.19em;
}
@media(max-width:430px){
 body #page-ultimate-profile #ultimateProfileContent .up-character-stage .up-stage-story .up-profile-clan-emblem{width:52px;height:52px;padding:5px}
 body #page-ultimate-profile #ultimateProfileContent .up-character-stage .up-stage-story .up-clan-link,
 body #page-ultimate-profile #ultimateProfileContent .up-character-stage .up-stage-story .up-clan-name{font-size:21px}
}

/* Relationship identity: keep the status and its action together. */
body #page-ultimate-profile #ultimateProfileContent .up-character-stage .up-stage-story .up-relationship-row{
  display:grid;grid-template-columns:28px max-content minmax(0,1fr);
  grid-template-rows:auto auto;column-gap:11px;row-gap:2px;
  justify-content:start;align-items:center;min-height:64px;margin:0;padding:12px 0 5px;
  border-top:1px solid #d8abb27a;border-bottom:0;
}
body #page-ultimate-profile #ultimateProfileContent .up-character-stage .up-stage-story .up-relationship-row .up-rs-heart{
  grid-column:1;grid-row:1 / 3;align-self:center;color:#f665a0;font-size:27px;
}
body #page-ultimate-profile #ultimateProfileContent .up-character-stage .up-stage-story .up-relationship-row .up-connection-state,
body #page-ultimate-profile #ultimateProfileContent .up-character-stage .up-stage-story .up-relationship-row .up-rs-player{
  grid-column:2;grid-row:1;color:#f4cae7;
  font:500 clamp(17px,1.45vw,22px)/1.16 Georgia,serif;
}
body #page-ultimate-profile #ultimateProfileContent .up-character-stage .up-stage-story .up-relationship-row .up-rs-note{
  grid-column:2 / -1;grid-row:2;margin:0;color:#d1b9ca;
  font:400 12px/1.35 Georgia,serif;
}
body #page-ultimate-profile #ultimateProfileContent .up-character-stage .up-stage-story .up-relationship-row button{
  grid-column:3;grid-row:1;justify-self:start;align-self:center;
  width:auto;min-height:0;margin:0 0 0 10px;padding:0;border:0;border-radius:0;
  background:none;color:#e8b5d6;box-shadow:none;
  font:600 11px/1.3 system-ui,sans-serif;text-decoration:underline;text-underline-offset:3px;
}
body #page-ultimate-profile #ultimateProfileContent .up-character-stage .up-stage-story .up-relationship-row button:hover{color:#fff1e7;background:none}
body #page-ultimate-profile #ultimateProfileContent .up-character-stage .up-stage-story .up-relationship-row button:focus-visible{
  outline:2px solid #f5c782;outline-offset:4px;
}
@media(max-width:430px){
 body #page-ultimate-profile #ultimateProfileContent .up-character-stage .up-stage-story .up-relationship-row{
  grid-template-columns:24px minmax(0,1fr);grid-template-rows:auto auto auto;
 }
 body #page-ultimate-profile #ultimateProfileContent .up-character-stage .up-stage-story .up-relationship-row .up-rs-heart{grid-row:1 / 3}
 body #page-ultimate-profile #ultimateProfileContent .up-character-stage .up-stage-story .up-relationship-row .up-rs-note{grid-column:2;grid-row:2}
 body #page-ultimate-profile #ultimateProfileContent .up-character-stage .up-stage-story .up-relationship-row button{
  grid-column:2;grid-row:3;margin:5px 0 0;
 }
}

/* Stat identity: a flexed-arm mark and a compact two-stat reading line. */
body #page-ultimate-profile #ultimateProfileContent .up-character-stage .up-profile-stats>div::before{
  width:52px;height:52px;background-image:url('../images/profile/strength-mark-v3.svg');
  filter:drop-shadow(0 3px 9px #dd75a680);
}
body #page-ultimate-profile #ultimateProfileContent .up-character-stage .up-profile-stats>div+div::before{
  background-image:url('../images/profile/intelligence-mark-v1.svg');
  filter:drop-shadow(0 3px 9px #9d68d080);
}
body #page-ultimate-profile #ultimateProfileContent .up-character-stage .up-profile-stats>div,
body #page-ultimate-profile #ultimateProfileContent .up-character-stage .up-profile-stats>div+div{
  grid-template-columns:54px minmax(0,1fr);column-gap:12px;align-content:start;
}
body #page-ultimate-profile #ultimateProfileContent .up-character-stage .up-profile-stats span{
  align-self:start;margin-top:1px;color:#f0dce6;
  font:700 clamp(10px,.78vw,12px)/1.35 system-ui,sans-serif;letter-spacing:.14em;
}
body #page-ultimate-profile #ultimateProfileContent .up-character-stage .up-profile-stats .up-stat-caption{
  margin-top:5px;color:#d6c0d0;font:400 clamp(11px,.86vw,13px)/1.3 Georgia,serif;
}
@media(max-width:430px){
 body #page-ultimate-profile #ultimateProfileContent .up-character-stage .up-profile-stats>div,
 body #page-ultimate-profile #ultimateProfileContent .up-character-stage .up-profile-stats>div+div{
  grid-template-columns:30px minmax(0,1fr);column-gap:4px;
 }
 body #page-ultimate-profile #ultimateProfileContent .up-character-stage .up-profile-stats>div::before{width:28px;height:28px}
}

/* Owner action cards: a brighter framed finish without changing their destinations. */
body #page-ultimate-profile #ultimateProfileContent .up-character-stage .up-profile-owner-actions button{
  position:relative;isolation:isolate;overflow:hidden;
  border:1px solid #d9b985;border-radius:8px;
  background:radial-gradient(ellipse at 8% 18%,#bd865e38,transparent 52%),
             linear-gradient(125deg,#3e2941,#211629 78%);
  box-shadow:inset 0 1px #fff1d675,0 0 0 2px #1c1025,0 10px 25px #05020a9c;
  transition:background .18s ease,box-shadow .18s ease,transform .18s ease;
}
body #page-ultimate-profile #ultimateProfileContent .up-character-stage .up-profile-owner-actions button+button{
  border-color:#bd8ade;
  background:radial-gradient(ellipse at 10% 20%,#a656be55,transparent 50%),
             linear-gradient(125deg,#542b70,#261337 82%);
}
body #page-ultimate-profile #ultimateProfileContent .up-character-stage .up-profile-owner-actions button::after{
  content:"";position:absolute;inset:4px;z-index:-1;pointer-events:none;
  border:1px solid #d2ae7a55;border-radius:4px;
  background:
    linear-gradient(#f3d39a,#f3d39a) left top/22px 1px no-repeat,
    linear-gradient(#f3d39a,#f3d39a) left top/1px 22px no-repeat,
    linear-gradient(#f3d39a,#f3d39a) right top/22px 1px no-repeat,
    linear-gradient(#f3d39a,#f3d39a) right top/1px 22px no-repeat,
    linear-gradient(#f3d39a,#f3d39a) left bottom/22px 1px no-repeat,
    linear-gradient(#f3d39a,#f3d39a) left bottom/1px 22px no-repeat,
    linear-gradient(#f3d39a,#f3d39a) right bottom/22px 1px no-repeat,
    linear-gradient(#f3d39a,#f3d39a) right bottom/1px 22px no-repeat;
}
body #page-ultimate-profile #ultimateProfileContent .up-character-stage .up-profile-owner-actions button+button::after{
  border-color:#b77cdb69;
  filter:hue-rotate(37deg);
}
body #page-ultimate-profile #ultimateProfileContent .up-character-stage .up-profile-owner-actions button:hover{
  transform:translateY(-2px);box-shadow:inset 0 1px #fff3db9c,0 0 0 2px #24142b,0 12px 30px #07030cbf,0 0 18px #dca36b43;
}
body #page-ultimate-profile #ultimateProfileContent .up-character-stage .up-profile-owner-actions button+button:hover{
  box-shadow:inset 0 1px #fff3db9c,0 0 0 2px #24142b,0 12px 30px #07030cbf,0 0 18px #bd73de55;
}
body #page-ultimate-profile #ultimateProfileContent .up-character-stage .up-profile-owner-actions button:focus-visible{
  outline:2px solid #ffdfae;outline-offset:4px;
}
body #page-ultimate-profile #ultimateProfileContent .up-character-stage .up-profile-owner-actions .up-owner-copy strong{
  color:#fff1df;text-shadow:0 2px 8px #150b1b;
}
body #page-ultimate-profile #ultimateProfileContent .up-character-stage .up-profile-owner-actions .up-owner-copy small{
  color:#edbfd1;letter-spacing:.17em;
}
@media(prefers-reduced-motion:reduce){
 body #page-ultimate-profile #ultimateProfileContent .up-character-stage .up-profile-owner-actions button{transition:none}
 body #page-ultimate-profile #ultimateProfileContent .up-character-stage .up-profile-owner-actions button:hover{transform:none}
}

/* Stable Character Stage sizing: avoid percentage-height feedback in the grid. */
@media(min-width:701px){
 body #page-ultimate-profile #ultimateProfileContent .up-profile-grid.up-character-stage{
  grid-template-rows:minmax(690px,auto);align-items:stretch;
 }
 body #page-ultimate-profile #ultimateProfileContent .up-character-stage .up-profile-portrait{
  height:auto;min-height:0;align-self:stretch;
 }
 body #page-ultimate-profile #ultimateProfileContent .up-character-stage .up-profile-main{
  height:auto;min-height:0;align-self:stretch;
  margin-top:28px;margin-bottom:28px;
 }
}
body #page-ultimate-profile #ultimateProfileContent .up-character-stage .up-profile-owner-actions button:hover{
 transform:none;
}

/* Compact companion empty state; the capsule row below owns the timer and action. */
body #page-ultimate-profile #ultimateProfileContent .up-companions .up-companion-feature.is-empty{
  min-height:70px;gap:12px;padding:14px 18px;
  background:linear-gradient(110deg,#2b1b31,#171321);
}
body #page-ultimate-profile #ultimateProfileContent .up-companions .up-companion-feature.is-empty::before{
  content:"✦";flex:none;display:grid;place-items:center;
  width:38px;height:38px;border:1px solid #c593b377;border-radius:11px;
  background:#6a35583d;color:#ebbad5;font:25px/1 Georgia,serif;
}
body #page-ultimate-profile #ultimateProfileContent .up-companions .up-companion-feature.is-empty>p{
  margin:0;color:#e7d3de;font:500 14px/1.45 system-ui,sans-serif;
}

/* Clan summary: move live Hire Value and Patron cards alongside the clan identity. */
body #page-ultimate-profile #ultimateProfileContent .up-character-stage .up-stage-story .up-clan-summary{
  display:flex;flex-wrap:wrap;align-items:center;gap:12px 20px;margin:0 0 13px;
}
body #page-ultimate-profile #ultimateProfileContent .up-character-stage .up-stage-story .up-clan-summary>.up-clan-row{
  flex:1 1 245px;min-width:0;margin:0;
}
body #page-ultimate-profile #ultimateProfileContent .up-character-stage .up-stage-story .up-clan-summary>.up-profile-details{
  order:0;display:flex;flex:0 1 auto;flex-wrap:wrap;align-items:stretch;gap:9px;
  min-width:0;margin:0;padding:0;border:0;background:none;
}
body #page-ultimate-profile #ultimateProfileContent .up-character-stage .up-stage-story .up-clan-summary .up-profile-details>.up-relationship-row{
  display:flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:5px;
  box-sizing:border-box;min-width:112px;min-height:72px;margin:0;padding:10px 13px;
  border:1px solid #bb8d9b70;border-radius:10px;
  background:linear-gradient(130deg,#3b273b88,#1e1428a8);box-shadow:inset 0 1px #ffffff18;
}
body #page-ultimate-profile #ultimateProfileContent .up-character-stage .up-stage-story .up-clan-summary .up-profile-details .up-profile-eyebrow{
  position:static;display:block;width:auto;height:auto;overflow:visible;clip:auto;clip-path:none;
  margin:0 0 2px;flex:none;color:#edc695;font:700 11px/1.3 system-ui,sans-serif;letter-spacing:.12em;
}
body #page-ultimate-profile #ultimateProfileContent .up-character-stage .up-stage-story .up-clan-summary .up-profile-details strong,
body #page-ultimate-profile #ultimateProfileContent .up-character-stage .up-stage-story .up-clan-summary .up-profile-details .up-clan-link,
body #page-ultimate-profile #ultimateProfileContent .up-character-stage .up-stage-story .up-clan-summary .up-profile-details .up-connection-state{
  max-width:200px;min-width:0;margin:0;padding:0;border:0;background:none;
  color:#fff0e4;font:500 clamp(14px,1.15vw,18px)/1.2 Georgia,serif;text-align:left;
}
body #page-ultimate-profile #ultimateProfileContent .up-character-stage .up-stage-story .up-clan-summary .up-profile-details .up-clan-link:hover{
  color:#ffe0b6;text-decoration:underline;text-underline-offset:3px;
}
@media(max-width:700px){
 body #page-ultimate-profile #ultimateProfileContent .up-character-stage .up-stage-story .up-clan-summary{align-items:flex-start}
 body #page-ultimate-profile #ultimateProfileContent .up-character-stage .up-stage-story .up-clan-summary>.up-profile-details{width:100%}
 body #page-ultimate-profile #ultimateProfileContent .up-character-stage .up-stage-story .up-clan-summary .up-profile-details>.up-relationship-row{flex:1 1 120px}
}

/* Showcase uses collection-sized tiles even when only one item is owned. */
body #page-ultimate-profile #ultimateProfileContent .up-profile-collections>.up-showcase .up-profile-items{
  display:grid;grid-template-columns:repeat(auto-fill,minmax(170px,210px));
  justify-content:start;align-items:start;gap:14px;
}
body #page-ultimate-profile #ultimateProfileContent .up-profile-collections>.up-showcase .up-profile-items article{
  box-sizing:border-box;width:100%;min-width:0;min-height:0;align-self:start;
}
body #page-ultimate-profile #ultimateProfileContent .up-profile-collections>.up-showcase .up-profile-items .up-showcase-open{
  box-sizing:border-box;height:auto;min-height:0;padding:14px 10px;
}
body #page-ultimate-profile #ultimateProfileContent .up-profile-collections>.up-showcase .up-profile-items .up-item-art{
  width:100%;height:112px;object-fit:contain;
}
@media(max-width:500px){
 body #page-ultimate-profile #ultimateProfileContent .up-profile-collections>.up-showcase .up-profile-items{
  grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;
 }
 body #page-ultimate-profile #ultimateProfileContent .up-profile-collections>.up-showcase .up-profile-items .up-item-art{height:88px}
}
