/* Shared account and clan surfaces; authentication and actions remain page-owned. */
.clan-register-adventure #content .change-avatar-form{margin-bottom:16px}
.clan-register-adventure #content .change-avatar-form label{color:var(--site-ink-f0d2a1,#f0d2a1);font-weight:600;font-size:11px}
.clan-register-adventure #content .ba-clan-field-hint{max-width:65ch;font-weight:400;line-height:1.6}
.clan-register-adventure #content .ba-clan-field-hint b{color:var(--site-ink-f2cd90,#f2cd90);font-weight:600}
.clan-register-adventure #content .change-avatar-message{background:var(--site-surface-493124,#493124);border:1px solid #ac7951;border-left:3px solid #bd8055;padding:10px;text-align:left!important}
.clan-register-adventure #content .change-avatar-message b{color:var(--site-ink-ffbea7,#ffbea7)!important;font-weight:500}
.clan-register-adventure #content .change-avatar-submit{min-height:36px;height:36px;padding:0 16px;line-height:1;font-size:14px}
.invitations-page-adventure #content .change-avatar-form{background:var(--site-surface-514231,#514231);table-layout:fixed}
.invitations-page-adventure #content .change-avatar-form td{padding:10px 8px;font-size:11px;vertical-align:middle}
.invitations-page-adventure #content .change-avatar-form tr.color2{background:var(--site-surface-30281f,#30281f);color:var(--site-ink-e3c698,#e3c698)}
.invitations-page-adventure #content .ba-clan-invite-name{color:var(--site-ink-edc57e,#edc57e);font-family:var(--home-title-font);font-size:14px;font-weight:700}
.invitations-page-adventure #content .ba-clan-invite-status{display:inline-block;padding:3px 6px;background:var(--site-surface-29231e,#29231e);color:var(--site-ink-edc57e,#edc57e);border:1px solid #89704e;font-size:10px;font-style:normal}
.invitations-page-adventure #content td:last-child>div{gap:5px!important;flex-wrap:wrap}
.invitations-page-adventure #content .ba-clan-invite-action{
 display:inline-flex;justify-content:center;align-items:center;width:30px;height:30px;flex:0 0 30px;
 background:var(--site-surface-29231e,#29231e);border:1px solid #89704e;border-radius:1px;color:var(--site-ink-edc57e,#edc57e);cursor:pointer;padding:6px;
}
.invitations-page-adventure #content .ba-clan-invite-action svg{width:16px;height:16px}
.invitations-page-adventure #content .ba-clan-invite-action.is-decline{color:var(--site-ink-e6a287,#e6a287)}
.invitations-page-adventure #content .ba-clan-invite-action:hover:not(:disabled){background:var(--site-surface-433526,#433526);border-color:var(--site-ink-c19a60,#c19a60)}
.invitations-page-adventure #content td[colspan="5"]:not(.title){color:var(--site-ink-dbc8ae,#dbc8ae);font-weight:400;padding:18px!important}
@media(max-width:640px){.invitations-page-adventure #content .change-avatar-form{min-width:540px}}
.clan-info-adventure #content .ba-clan-field-hint{font-size:11px;line-height:1.5;color:var(--site-ink-dbc8ae,#dbc8ae);margin-top:7px}
.clan-info-adventure #content .ba-clan-tag{
 display:inline-flex;align-items:center;gap:7px;box-sizing:border-box;min-height:32px;padding:6px 10px;
 background:var(--site-surface-29231e,#29231e);border:1px solid #89704e;color:var(--site-ink-dbc8ae,#dbc8ae);font-size:11px;line-height:1.4;
 cursor:pointer;clip-path:polygon(0 0,100% 0,100% calc(100% - 4px),calc(100% - 4px) 100%,0 100%);
}
.clan-info-adventure #content .ba-clan-tag span{color:inherit;font-family:var(--home-title-font);font-size:13px;font-weight:600}
.clan-info-adventure #content .ba-clan-tag:hover{border-color:var(--site-ink-e9bd76,#e9bd76);background:var(--site-surface-433526,#433526)}
.clan-info-adventure #content .ba-clan-tag:focus-within{box-shadow:inset 0 0 0 1px #f4c77b}
.clan-info-adventure #content .ba-clan-tag input{
 appearance:none;-webkit-appearance:none;position:relative;box-sizing:border-box;
 width:12px;height:12px;flex:0 0 12px;margin:0;background:transparent;border:1px solid #b69b71;border-radius:1px;cursor:pointer;
}
.clan-info-adventure #content .ba-clan-tag input:checked{background:var(--site-surface-302319,#302319);border-color:#302319}
.clan-info-adventure #content .ba-clan-tag input:checked::after{
 content:'';position:absolute;left:3px;top:1px;width:3px;height:6px;border-right:1.5px solid #f7d592;border-bottom:1.5px solid #f7d592;transform:rotate(45deg);
}
.clan-info-adventure #content .ba-clan-tag.is-selected{background:#e9ad54!important;border-color:var(--site-ink-e9bd76,#e9bd76)!important;color:#302319}
.clan-info-adventure #content .tiptap-toolbar{padding:8px!important;gap:5px!important}
.clan-info-adventure #content .tiptap-toolbar button{border-radius:0;min-height:30px;font-family:var(--home-title-font);font-size:12px!important;box-shadow:none!important}
.clan-info-adventure #content .tiptap-toolbar>div{background:#89704e!important}
.clan-info-adventure #content .tiptap-inner .ProseMirror{padding:12px;color:var(--site-ink-f3eadb,#f3eadb);background:var(--site-surface-29231e,#29231e);font-family:var(--home-body-font);font-size:12px;line-height:1.7;min-height:150px;overflow-wrap:anywhere}
.clan-info-adventure #content .tiptap-inner :is(h1,h2,h3){background:none;color:var(--site-ink-f2cd90,#f2cd90);font-family:var(--home-title-font);border:0;padding:0}
.clan-info-adventure #content .tiptap-inner img{max-width:100%;height:auto}
.clan-info-adventure #content .change-avatar-input{min-height:34px;text-align:left;padding:5px 9px}
.clan-info-adventure #content .change-avatar-actions{display:flex;justify-content:flex-end;margin-top:12px!important}
.clan-info-adventure #content .change-avatar-submit{background:#e9ad54;color:#302319;border-color:#b88a4d!important;min-height:34px;box-shadow:none}
@media(max-width:480px){
 .clan-info-adventure #content .change-avatar-form,
 .clan-info-adventure #content .change-avatar-form tbody,
 .clan-info-adventure #content .change-avatar-form tr,
 .clan-info-adventure #content .change-avatar-form td{display:block;width:100%;box-sizing:border-box}
}
.clan-avatar-adventure #content .changeavatar{
 display:flex;justify-content:center;align-items:center;padding:14px;margin:0 0 14px;
 background:var(--site-surface-29231e,#29231e) var(--site-overlay-home-character-dossier,url('/ui/home-character-dossier.svg?v=clean-3')) right center/200px 180px no-repeat;
 border:1px solid #89704e;
}
.clan-avatar-adventure #content .change-avatar-current{width:75px;height:75px;object-fit:cover;border:1px solid #ead4a8!important;box-shadow:none!important;background:var(--site-surface-201c18,#201c18)}
.clan-avatar-adventure #content .change-avatar-input:not([type=button]){
 width:100%;height:34px;text-align:left;font-style:normal;padding:0 10px;
}
.clan-avatar-adventure #content .change-avatar-actions{flex-wrap:wrap;justify-content:flex-end!important;margin-top:12px!important}
.clan-avatar-adventure #content .change-avatar-actions input[type=button]{
 height:34px;min-height:34px;min-width:90px;padding:0 12px;line-height:1;
 background:#e9ad54;color:#302319;border:1px solid #b88a4d!important;border-radius:0;box-shadow:none;
 font-family:var(--home-title-font);font-size:13px;
 clip-path:polygon(0 0,100% 0,100% calc(100% - 4px),calc(100% - 4px) 100%,0 100%);
}
.clan-avatar-adventure #content .change-avatar-actions input[type=button]:nth-of-type(2){background:var(--site-surface-433526,#433526);color:var(--site-ink-f0d2a1,#f0d2a1)}
.clan-avatar-adventure #content .change-avatar-actions input[type=button]:hover:not(:disabled){background:#f4c77b;color:#302319}
.clan-avatar-adventure #content .change-avatar-message{background:var(--site-surface-30392a,#30392a);border:1px solid #72855a;padding:9px}
.clan-avatar-adventure #content .change-avatar-message b{color:var(--site-ink-d5e3b5,#d5e3b5)!important;font-weight:600!important}
@media(max-width:480px){
 .clan-avatar-adventure #content .change-avatar-form,
 .clan-avatar-adventure #content .change-avatar-form tbody,
 .clan-avatar-adventure #content .change-avatar-form tr,
 .clan-avatar-adventure #content .change-avatar-form td{display:block;width:100%;box-sizing:border-box}
}
.management-page-adventure #content .change-avatar-form{table-layout:fixed;background:var(--site-surface-514231,#514231)}
.management-page-adventure #content .change-avatar-form td{padding:10px 8px;font-size:11px;vertical-align:middle}
.management-page-adventure #content .change-avatar-form tr.color2{background:var(--site-surface-30281f,#30281f);color:var(--site-ink-e3c698,#e3c698)}
.management-page-adventure #content .ba-clan-joined-date{font-style:normal;white-space:nowrap;color:var(--site-ink-dbc8ae,#dbc8ae);font-size:10px;font-variant-numeric:tabular-nums}
.management-page-adventure #content .ba-clan-member-name{color:var(--site-ink-edc57e,#edc57e);font-family:var(--home-title-font);font-size:14px;font-weight:700;line-height:1.3}
.management-page-adventure #content .change-avatar-form :is(select,input){height:32px!important;max-width:100%!important;padding:4px 7px!important;text-align:left!important}
.management-page-adventure #content .change-avatar-form td:last-child>div{gap:5px!important;flex-wrap:wrap}
.management-page-adventure #content .change-avatar-form svg.cursor-pointer{
 width:30px;height:30px;box-sizing:border-box;padding:6px;background:var(--site-surface-29231e,#29231e);border:1px solid #89704e;border-radius:1px;
}
.management-page-adventure #content .change-avatar-form svg.cursor-pointer:hover{background:var(--site-surface-433526,#433526);border-color:var(--site-ink-c19a60,#c19a60)}
@media(max-width:640px){
 .management-page-adventure #content .change-avatar-form{min-width:620px}
}
:is(.recruitment-page-adventure,.management-page-adventure,.clan-avatar-adventure,.clan-info-adventure,.invitations-page-adventure) #content .change-avatar-page>.brspacer,
:is(.recruitment-page-adventure,.management-page-adventure,.clan-avatar-adventure,.clan-info-adventure,.invitations-page-adventure) #content .change-avatar-page>br,
:is(.recruitment-page-adventure,.management-page-adventure,.clan-avatar-adventure,.clan-info-adventure,.invitations-page-adventure) #content .change-avatar-panel>br{display:none}
:is(.recruitment-page-adventure,.management-page-adventure,.clan-avatar-adventure,.clan-info-adventure,.invitations-page-adventure) #content .change-avatar-page>.change-avatar-heading{display:flex}
:is(.recruitment-page-adventure,.management-page-adventure,.clan-avatar-adventure,.clan-info-adventure,.invitations-page-adventure) #content .change-avatar-help{margin:0 0 14px;padding:9px 12px;text-align:left;font-size:11px;line-height:1.6}
:is(.recruitment-page-adventure,.management-page-adventure,.clan-avatar-adventure,.clan-info-adventure,.invitations-page-adventure) #content .change-avatar-help b{font-weight:400}
:is(.recruitment-page-adventure,.management-page-adventure,.clan-avatar-adventure,.clan-info-adventure,.invitations-page-adventure) #content .change-avatar-form{width:100%;border:1px solid #89704e;margin:0 0 16px}
:is(.recruitment-page-adventure,.management-page-adventure,.clan-avatar-adventure,.clan-info-adventure,.invitations-page-adventure) #content td.title{
 padding:7px 10px;background:var(--site-surface-433526,#433526);color:var(--site-ink-f2cd90,#f2cd90);border-bottom:1px solid #b88a4d;
 font-size:15px;line-height:1.3;
}
:is(.recruitment-page-adventure,.management-page-adventure,.clan-avatar-adventure,.clan-info-adventure,.invitations-page-adventure) #content td.title .pre{display:none}
:is(.recruitment-page-adventure,.management-page-adventure,.clan-avatar-adventure,.clan-info-adventure,.invitations-page-adventure) #content td.title::before{content:'';display:inline-block;width:3px;height:12px;background:#e99843;margin-right:8px;vertical-align:middle}
:is(.recruitment-page-adventure,.management-page-adventure,.clan-avatar-adventure,.clan-info-adventure,.invitations-page-adventure) #content .ba-recruit-form td{padding:10px}
:is(.recruitment-page-adventure,.management-page-adventure,.clan-avatar-adventure,.clan-info-adventure,.invitations-page-adventure) #content .ba-recruit-input-row{min-width:0}
:is(.recruitment-page-adventure,.management-page-adventure,.clan-avatar-adventure,.clan-info-adventure,.invitations-page-adventure) #content .ba-recruit-input-row input{flex:1;width:auto;height:34px;text-align:left;padding:0 10px}
:is(.recruitment-page-adventure,.management-page-adventure,.clan-avatar-adventure,.clan-info-adventure,.invitations-page-adventure) #content .change-avatar-submit{
 display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;
 flex:0 0 auto;width:auto;min-width:86px;height:34px;min-height:34px;padding:0 13px;background:#e9ad54;color:#302319;
 border:1px solid #b88a4d!important;border-radius:0;box-shadow:none;font-family:var(--home-title-font);font-size:13px;line-height:1;
 clip-path:polygon(0 0,100% 0,100% calc(100% - 4px),calc(100% - 4px) 100%,0 100%);
}
:is(.recruitment-page-adventure,.management-page-adventure,.clan-avatar-adventure,.clan-info-adventure,.invitations-page-adventure) #content .change-avatar-submit:hover{background:#f4c77b}
:is(.recruitment-page-adventure,.management-page-adventure,.clan-avatar-adventure,.clan-info-adventure,.invitations-page-adventure) #content .ba-recruit-invitations tr.color2{background:var(--site-surface-30281f,#30281f);color:var(--site-ink-e3c698,#e3c698);font-size:11px}
:is(.recruitment-page-adventure,.management-page-adventure,.clan-avatar-adventure,.clan-info-adventure,.invitations-page-adventure) #content .ba-recruit-invitations td{padding:10px 8px;font-size:11px}
:is(.recruitment-page-adventure,.management-page-adventure,.clan-avatar-adventure,.clan-info-adventure,.invitations-page-adventure) #content .ba-recruit-invitations td[colspan="5"]:not(.title){color:var(--site-ink-dbc8ae,#dbc8ae);font-weight:400;padding:18px!important}
@media(max-width:480px){
 :is(.recruitment-page-adventure,.management-page-adventure,.clan-avatar-adventure,.clan-info-adventure,.invitations-page-adventure) #content .ba-recruit-form,
 :is(.recruitment-page-adventure,.management-page-adventure,.clan-avatar-adventure,.clan-info-adventure,.invitations-page-adventure) #content .ba-recruit-form tbody,
 :is(.recruitment-page-adventure,.management-page-adventure,.clan-avatar-adventure,.clan-info-adventure,.invitations-page-adventure) #content .ba-recruit-form tr,
 :is(.recruitment-page-adventure,.management-page-adventure,.clan-avatar-adventure,.clan-info-adventure,.invitations-page-adventure) #content .ba-recruit-form td{display:block;width:100%;box-sizing:border-box}
 :is(.recruitment-page-adventure,.management-page-adventure,.clan-avatar-adventure,.clan-info-adventure,.invitations-page-adventure) #content .ba-recruit-form tr.color2 td:first-child{padding-bottom:0}
 :is(.recruitment-page-adventure,.management-page-adventure,.clan-avatar-adventure,.clan-info-adventure,.invitations-page-adventure) #content .ba-recruit-input-row{flex-wrap:wrap}
 :is(.recruitment-page-adventure,.management-page-adventure,.clan-avatar-adventure,.clan-info-adventure,.invitations-page-adventure) #content .ba-recruit-input-row input{flex-basis:100%}
 :is(.recruitment-page-adventure,.management-page-adventure,.clan-avatar-adventure,.clan-info-adventure,.invitations-page-adventure) #content .ba-recruit-invitations{min-width:480px}
}
.reset-page-adventure #content .ba-reset-warning{
 border-radius:0;border-left:3px solid #bd8055;padding:11px 12px;margin-bottom:14px;
 background:var(--site-surface-392a21,#392a21);color:var(--site-ink-edd1b9,#edd1b9);font-weight:400;line-height:1.65;
 clip-path:polygon(0 0,100% 0,100% calc(100% - 6px),calc(100% - 6px) 100%,0 100%);
}
.reset-page-adventure #content .ba-reset-warning b{color:var(--site-ink-f4c39b,#f4c39b);font-weight:700}
.reset-page-adventure #content .ba-buddy-card{display:flex;flex-direction:column;padding:14px}
.reset-page-adventure #content .ba-reset-field{margin:2px 0 16px;gap:7px}
.reset-page-adventure #content .ba-reset-field span{color:var(--site-ink-f0d2a1,#f0d2a1);font-weight:600;font-size:12px}
.reset-page-adventure #content .ba-reset-field input{height:36px}
.reset-page-adventure #content .ba-playercard-check{
 display:flex;align-items:flex-start;gap:8px;color:var(--site-ink-e7dbc9,#e7dbc9);font-size:11px;font-weight:400;line-height:1.6;margin:0;
}
.reset-page-adventure #content .ba-playercard-check input{margin:3px 0 0;flex-shrink:0}
.reset-page-adventure #content .ba-reset-submit{
 align-self:flex-end;margin-top:16px;min-height:32px;background:#9f4f32;color:var(--site-ink-fff1df,#fff1df);border-color:var(--site-ink-cc8965,#cc8965);
}
.reset-page-adventure #content .ba-playercard-note{margin-top:12px}
.player-card-adventure #content .ba-playercard-tabs{background:none;gap:6px;border:0;flex-wrap:wrap}
.player-card-adventure #content .ba-playercard-tabs button{
 background:var(--site-surface-433526,#433526);color:var(--site-ink-dbc8ae,#dbc8ae);border:1px solid #89704e;border-radius:0;box-shadow:none;
 min-height:32px;padding:6px 12px;font-family:var(--home-title-font);font-size:12px;
}
.player-card-adventure #content .ba-playercard-tabs button.is-current{background:#e9ad54;color:#302319;border-color:var(--site-ink-e9bd76,#e9bd76)}
.player-card-adventure #content .ba-playercard-tabs button.is-locked{background:var(--site-surface-383027,#383027);color:var(--site-ink-b8a78d,#b8a78d);opacity:1}
.player-card-adventure #content .ba-playercard-box{
 background:var(--site-surface-514231,#514231) var(--site-overlay-home-balance-overlay,url('/ui/home-balance-overlay.svg')) right top/220px 150px no-repeat;
 border:1px solid #89704e;border-radius:0;box-shadow:none;padding:12px;color:var(--site-ink-f3eadb,#f3eadb);
}
.player-card-adventure #content .ba-playercard-actions{gap:8px;flex-wrap:wrap}
.player-card-adventure #content .ba-playercard-actions button{
 background:#e9ad54;color:#302319;border:1px solid #b88a4d;border-radius:0;box-shadow:none;
 min-height:32px;padding:6px 12px;font-family:var(--home-title-font);font-size:12px;font-weight:700;
}
.player-card-adventure #content .ba-playercard-actions button:hover:not(:disabled){background:#f4c77b}
.player-card-adventure #content .ba-playercard-preview{background:none;border:0;box-shadow:none;max-width:100%;overflow:auto}
.player-card-adventure #content .ba-playercard-preview canvas{max-width:100%;height:auto}
.player-card-adventure #content .ba-playercard-check{color:var(--site-ink-dbc8ae,#dbc8ae)}
.account-pages-adventure #content .ba-buddy-list{margin:0;padding:0;list-style:none;display:flex;flex-direction:column;gap:8px}
.account-pages-adventure #content .ba-buddy-row{
 display:grid;grid-template-columns:minmax(0,1fr) minmax(0,180px) auto;align-items:center;gap:12px;
 padding:10px 12px;background:var(--site-surface-29231e,#29231e);border:1px solid #89704e66;border-left:2px solid #b88a4d;
 border-radius:0;box-shadow:none;min-width:0;
}
.account-pages-adventure #content .ba-buddy-who{min-width:0;gap:4px}
.account-pages-adventure #content .ba-buddy-who a{
 color:var(--site-ink-ffedca,#ffedca);font-family:var(--home-title-font);font-size:15px;font-weight:700;line-height:1.3;overflow-wrap:anywhere;
}
.account-pages-adventure #content .ba-buddy-who a:hover{color:var(--site-ink-f4c77b,#f4c77b);text-decoration:underline;text-underline-offset:3px}
.account-pages-adventure #content .ba-buddy-hearts{color:var(--site-ink-e6b5a5,#e6b5a5);font-size:10px;font-weight:500;font-variant-numeric:tabular-nums}
.account-pages-adventure #content .ba-buddy-status{min-width:0;max-width:100%;gap:6px}
.account-pages-adventure #content .ba-buddy-status span{color:var(--site-ink-cbb99c,#cbb99c);font-size:10px;font-weight:400;line-height:1.4;overflow-wrap:anywhere}
.account-pages-adventure #content .ba-buddy-status-dot{
 display:inline-block;width:8px;height:8px;flex:0 0 8px;border-radius:50%;background:#dd6157;
}
.account-pages-adventure #content .ba-buddy-status-dot.is-online{background:#80bd65}
.account-pages-adventure #content .ba-buddy-actions{gap:6px}
.account-pages-adventure #content .ba-buddy-actions button{min-height:30px;line-height:1.2}
.account-pages-adventure #content .ba-buddy-form{gap:10px;align-items:center}
@media(max-width:640px){
 .account-pages-adventure #content .ba-buddy-row{grid-template-columns:minmax(0,1fr) auto;gap:8px}
 .account-pages-adventure #content .ba-buddy-status{grid-column:1;grid-row:2}
 .account-pages-adventure #content .ba-buddy-actions{grid-column:2;grid-row:1 / span 2}
}
@media(max-width:380px){
 .account-pages-adventure #content .ba-buddy-row{grid-template-columns:minmax(0,1fr)}
 .account-pages-adventure #content .ba-buddy-actions{grid-column:1;grid-row:3;justify-content:flex-start}
}
.background-page-adventure #content .ba-bg-modes{gap:6px;background:none;border:0;padding:0;margin-bottom:14px;flex-wrap:wrap}
.background-page-adventure #content .ba-bg-modes button{
 min-height:32px;padding:6px 12px;border:1px solid #89704e;background:var(--site-surface-433526,#433526);color:var(--site-ink-dbc8ae,#dbc8ae);
 border-radius:0;box-shadow:none;font-family:var(--home-title-font);font-size:12px;
}
.background-page-adventure #content .ba-bg-modes button.is-active{background:#e9ad54;color:#302319;border-color:var(--site-ink-e9bd76,#e9bd76)}
.background-page-adventure #content .ba-bg-preview{
 box-sizing:border-box;background:var(--site-surface-29231e,#29231e);border-color:#a28354;color:var(--site-ink-dbc8ae,#dbc8ae);border-radius:0;
}
.background-page-adventure #content .ba-bg-preview.is-empty{
 background:var(--site-surface-29231e,#29231e) var(--site-overlay-home-character-dossier,url('/ui/home-character-dossier.svg?v=clean-3')) right center/200px 180px no-repeat;
}
:is(.avatar-page-adventure,.background-page-adventure) #content :is(.ba-bg-studio,.ba-av-library){
 background:var(--site-surface-514231,#514231) var(--site-overlay-home-balance-overlay,url('/ui/home-balance-overlay.svg')) right top/220px 150px no-repeat;
 border:1px solid #89704e;padding:12px;border-radius:0;box-shadow:none;
}
:is(.avatar-page-adventure,.background-page-adventure) #content .ba-bg-hero{gap:9px;margin-bottom:14px}
:is(.avatar-page-adventure,.background-page-adventure) #content .ba-bg-hero>i{background:var(--site-surface-29231e,#29231e);color:var(--site-ink-edbe79,#edbe79);border-bottom:1px solid #b88a4d}
:is(.avatar-page-adventure,.background-page-adventure) #content .ba-bg-sources{gap:4px;border-bottom:1px solid #89704e;margin-bottom:12px}
:is(.avatar-page-adventure,.background-page-adventure) #content .ba-bg-sources button{
 background:var(--site-surface-433526,#433526);border:0;border-bottom:2px solid transparent;border-radius:0;
 color:var(--site-ink-dbc8ae,#dbc8ae);font-family:var(--home-title-font);font-size:12px;min-height:32px;
}
:is(.avatar-page-adventure,.background-page-adventure) #content .ba-bg-sources button.is-active{background:var(--site-surface-29231e,#29231e);color:var(--site-ink-f2cd90,#f2cd90);border-bottom-color:var(--site-ink-e9ad54,#e9ad54)}
:is(.avatar-page-adventure,.background-page-adventure) #content .ba-bg-sources button:disabled{opacity:1;color:var(--site-ink-b9a68b,#b9a68b);background:var(--site-surface-433526,#433526);cursor:not-allowed}
:is(.avatar-page-adventure,.background-page-adventure) #content .ba-bg-savebar{
 padding:9px 10px;background:var(--site-surface-29231e,#29231e);border:1px solid #89704e;box-shadow:none;
}
:is(.avatar-page-adventure,.background-page-adventure) #content .ba-bg-savebar p{color:var(--site-ink-dbc8ae,#dbc8ae);line-height:1.5}
:is(.avatar-page-adventure,.background-page-adventure) #content .ba-bg-section-head{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
:is(.avatar-page-adventure,.background-page-adventure) #content .ba-bg-section-head .ba-register-title{flex:1;min-width:120px}
:is(.avatar-page-adventure,.background-page-adventure) #content .ba-bg-section-head .ba-register-btn{background:var(--site-surface-433526,#433526);color:var(--site-ink-f0d2a1,#f0d2a1)}
:is(.avatar-page-adventure,.background-page-adventure) #content .ba-av-preview{margin:16px auto;background:none}
:is(.avatar-page-adventure,.background-page-adventure) #content .ba-av-preview{width:75px}
:is(.avatar-page-adventure,.background-page-adventure) #content .ba-av-preview.has-border{width:87px}
:is(.avatar-page-adventure,.background-page-adventure) #content .ba-av-preview-frame,
:is(.avatar-page-adventure,.background-page-adventure) #content .ba-av-preview img{width:75px;height:75px}
:is(.avatar-page-adventure,.background-page-adventure) #content .ba-av-preview img{background:var(--site-surface-29231e,#29231e);border-color:var(--site-ink-c19a60,#c19a60)}
:is(.avatar-page-adventure,.background-page-adventure) #content .ba-bg-preview-tag{background:var(--site-surface-29231e,#29231e);color:var(--site-ink-f2cd90,#f2cd90);border:1px solid #89704e;font-size:9px;padding:3px 6px}
:is(.avatar-page-adventure,.background-page-adventure) #content .ba-register-note{
 background:var(--site-surface-29231e,#29231e);border:1px solid #89704e;border-left:2px solid #b88a4d;
 border-radius:0;padding:8px 10px;color:var(--site-ink-dbc8ae,#dbc8ae);box-shadow:none;
}
:is(.avatar-page-adventure,.background-page-adventure) #content .ba-register-note i{color:var(--site-ink-edbe79,#edbe79)}
:is(.avatar-page-adventure,.background-page-adventure) #content .choose-avatar-grid{justify-content:start;grid-template-columns:repeat(auto-fit,60px);gap:10px;padding:6px 0 14px}
:is(.avatar-page-adventure,.background-page-adventure) #content .choose-avatar-preview{border-color:#a28354;background-color:var(--site-surface-29231e,#29231e)}
:is(.avatar-page-adventure,.background-page-adventure) #content .choose-avatar-avatars.is-selected .choose-avatar-preview{border:2px solid #f2c36d;box-shadow:0 0 0 2px #29231e}
:is(.avatar-page-adventure,.background-page-adventure) #content .choose-avatar-avatars:hover .choose-avatar-preview{border-color:var(--site-ink-f2c36d,#f2c36d);box-shadow:none}
:is(.avatar-page-adventure,.background-page-adventure) #content .ba-av-pager{border-top:1px solid #89704e55;padding-top:10px;flex-wrap:wrap}
:is(.avatar-page-adventure,.background-page-adventure) #content .ba-av-pager span{color:var(--site-ink-dbc8ae,#dbc8ae);font-variant-numeric:tabular-nums}
@media(max-width:480px){
 :is(.avatar-page-adventure,.background-page-adventure) #content :is(.ba-bg-studio,.ba-av-library){padding:10px}
 :is(.avatar-page-adventure,.background-page-adventure) #content .ba-bg-savebar{flex-direction:column;align-items:stretch}
 :is(.avatar-page-adventure,.background-page-adventure) #content .choose-avatar-grid{grid-template-columns:repeat(auto-fit,52px);gap:8px}
 :is(.avatar-page-adventure,.background-page-adventure) #content :is(.choose-avatar-avatars,.choose-avatar-preview){width:52px;height:52px}
 :is(.avatar-page-adventure,.background-page-adventure) #content .ba-av-pager .ba-register-btn{min-width:64px;flex:0 1 auto;width:auto}
}
.clan-dashboard-adventure #content .ba-clan-tool{min-height:82px;padding-top:12px;padding-bottom:12px}
.clan-dashboard-adventure #content .ba-clan-tool.is-locked{
 opacity:1;background-color:var(--site-surface-383027,#383027);border-color:#68583f;cursor:default;
}
.clan-dashboard-adventure #content .ba-clan-tool.is-locked strong{color:var(--site-ink-c4b194,#c4b194)}
.clan-dashboard-adventure #content .ba-clan-tool.is-locked em{color:var(--site-ink-b8a78d,#b8a78d)}
.clan-dashboard-adventure #content .ba-clan-tool.is-locked i{color:var(--site-ink-b8a78d,#b8a78d);background:var(--site-surface-2b241e,#2b241e)}
.account-pages-adventure #content{min-width:0}
.account-pages-adventure #content :is(.ba-buddy-card,.ba-register-card,.ba-register-panel,.ba-clan-leave){
 background:var(--site-surface-514231,#514231) var(--site-overlay-home-balance-overlay,url('/ui/home-balance-overlay.svg')) right top/220px 150px no-repeat;
 border:1px solid #89704e;border-radius:0;box-shadow:none;color:var(--site-ink-f3eadb,#f3eadb);padding:12px;margin-bottom:12px;
}
.account-pages-adventure #content .change-avatar-panel{overflow-x:auto}
.account-pages-adventure #content :is(.ba-buddy-card h2,.ba-register-head h2,.ba-register-head h3){
 margin:0 0 12px;padding:4px 8px;border-left:3px solid #e99843;border-bottom:1px solid #b88a4d66;
 background:var(--site-surface-433526,#433526);color:var(--site-ink-f2cd90,#f2cd90);font-family:var(--home-title-font);font-size:15px;line-height:1.3;
}
.account-pages-adventure #content :is(.ba-manual-lead,.ba-buddy-empty,.ba-register-note,.ba-register-field em,.ba-clan-leave p){color:var(--site-ink-dbc8ae,#dbc8ae);font-size:11px;line-height:1.65}
.account-pages-adventure #content .change-avatar-help{background:var(--site-surface-29231e,#29231e);border-color:#89704e;color:var(--site-ink-e6d3b5,#e6d3b5);border-radius:0;box-shadow:none}
.account-pages-adventure #content .change-avatar-help a{color:var(--site-ink-f2cd90,#f2cd90)}
.account-pages-adventure #content :is(input:not([type=checkbox]):not([type=radio]):not([type=submit]):not([type=button]):not([type=file]),select,textarea){
 box-sizing:border-box;max-width:100%;min-width:0;background:var(--site-surface-29231e,#29231e);border:1px solid #a28354;color:var(--site-ink-f3eadb,#f3eadb);
 border-radius:1px;box-shadow:none;font-family:var(--home-body-font);font-size:12px;line-height:1.5;
}
.account-pages-adventure #content :is(input,textarea)::placeholder{color:var(--site-ink-c4b194,#c4b194);opacity:1}
.account-pages-adventure #content :is(input[type=checkbox],input[type=radio]){accent-color:var(--site-ink-e9ad54,#e9ad54)}
.account-pages-adventure #content :is(.ba-register-field span,.ba-reset-field,.change-avatar-form label){color:var(--site-ink-f0d2a1,#f0d2a1)}
.account-pages-adventure #content :is(.ba-buddy-form button,.ba-buddy-actions button,.ba-reset-submit,.home-button,input[type=submit],input[type=button]){
 background:var(--site-surface-433526,#433526);border:1px solid #a28354;color:var(--site-ink-f0d2a1,#f0d2a1);border-radius:0;box-shadow:none;
 min-height:30px;padding:5px 10px;font-family:var(--home-title-font);font-size:12px;font-weight:700;
}
.account-pages-adventure #content :is(.ba-buddy-form button,.ba-buddy-actions .is-primary,.home-button,input[type=submit]){background:#e9ad54;color:#302319}
.account-pages-adventure #content :is(.ba-buddy-form button,.ba-buddy-actions button,.home-button):hover:not(:disabled){background:#f4c77b;color:#302319}
.account-pages-adventure #content :is(button,input[type=submit]):disabled{opacity:.5;cursor:not-allowed}
.account-pages-adventure #content .ba-reset-warning{background:var(--site-surface-493124,#493124);border:1px solid #ac7951;color:var(--site-ink-f5d2b5,#f5d2b5);padding:10px 12px;font-size:12px;line-height:1.65}
.account-pages-adventure #content .ba-reset-submit{background:#9f4f32;color:var(--site-ink-fff1df,#fff1df);border-color:var(--site-ink-cc8965,#cc8965)}
.account-pages-adventure #content .ba-reset-submit:hover:not(:disabled){background:#b7613f}
.account-pages-adventure #content :is(.ba-buddy-row,.ba-playercard-check){color:var(--site-ink-f3eadb,#f3eadb);border-color:#89704e55}
.account-pages-adventure #content .ba-buddy-who strong{color:var(--site-ink-ffedca,#ffedca);font-family:var(--home-title-font);font-size:14px}
.account-pages-adventure #content .ba-buddy-hearts{color:var(--site-ink-e6b5a5,#e6b5a5)}
.account-pages-adventure #content :is(.ba-buddy-note,.ba-playercard-note){background:var(--site-surface-29231e,#29231e);border-color:#89704e;color:var(--site-ink-f0d2a1,#f0d2a1)}
.account-pages-adventure #content .is-error{color:var(--site-ink-ffbea7,#ffbea7);background:var(--site-surface-493124,#493124);border-color:#ac7951}
.account-pages-adventure #content .is-ok{color:var(--site-ink-d5e3b5,#d5e3b5);background:var(--site-surface-30392a,#30392a);border-color:#72855a}
.account-pages-adventure #content table{max-width:100%;color:var(--site-ink-f3eadb,#f3eadb);border-color:#89704e;border-collapse:collapse}
.account-pages-adventure #content :is(tr.color1,tr.color2){background:var(--site-surface-514231,#514231);color:var(--site-ink-f3eadb,#f3eadb)}
.account-pages-adventure #content tr.color2{background:var(--site-surface-433526,#433526)}
.account-pages-adventure #content td.title{background:var(--home-title-orange);color:#302319;font-family:var(--home-title-font);font-size:14px;text-shadow:none}
.account-pages-adventure #content td{border-color:#89704e55;padding:7px;overflow-wrap:anywhere}
.account-pages-adventure #content :is(.graydout,.ba-register-field em){color:var(--site-ink-dbc8ae,#dbc8ae)}
.account-pages-adventure #content .tiptap-wrapper{background:var(--site-surface-29231e,#29231e);border-color:#a28354!important;border-radius:1px!important;color:var(--site-ink-f3eadb,#f3eadb)}
.account-pages-adventure #content .tiptap-toolbar{background:var(--site-surface-433526,#433526)!important;border-color:#89704e!important}
.account-pages-adventure #content .tiptap-inner{color:var(--site-ink-f3eadb,#f3eadb)}
/* Register uses its own editor classes, separate from the profile editor. */
.account-pages-adventure #content .ba-register-editor{
 width:100%;min-width:0;box-sizing:border-box;background:var(--site-surface-29231e,#29231e);
 border:1px solid #a28354;border-radius:1px;color:var(--site-ink-f3eadb,#f3eadb);
}
.account-pages-adventure #content .ba-register-editor:focus-within{border-color:var(--site-ink-e9ad54,#e9ad54);box-shadow:0 0 0 1px var(--site-ink-e9ad54,#e9ad54)}
.account-pages-adventure #content .ba-register-toolbar{
 gap:5px;padding:8px;background:var(--site-surface-433526,#433526);border-bottom:1px solid #89704e;
}
.account-pages-adventure #content .ba-register-toolbar button{
 min-width:32px;min-height:32px;height:auto;padding:5px 9px;box-sizing:border-box;
 background:var(--site-surface-29231e,#29231e);border:1px solid #89704e;border-radius:1px;
 color:var(--site-ink-f2cd90,#f2cd90);font-family:var(--home-title-font);font-size:12px;line-height:1.2;
}
.account-pages-adventure #content .ba-register-toolbar button:is(:hover,.is-active){
 background:#e9ad54;border-color:#e9ad54;color:#302319;
}
.account-pages-adventure #content .ba-register-toolbar button:focus-visible{outline:2px solid var(--site-ink-f2cd90,#f2cd90);outline-offset:2px}
.account-pages-adventure #content .ba-register-toolbar-sep{background:#89704e}
.account-pages-adventure #content .ba-register-editor-scroll{scrollbar-color:#b88a4d var(--site-surface-29231e,#29231e)}
.account-pages-adventure #content .ba-register-editor-inner .ProseMirror{
 min-height:140px;box-sizing:border-box;padding:12px;background:var(--site-surface-29231e,#29231e);
 color:var(--site-ink-f3eadb,#f3eadb);font-family:var(--home-body-font);font-size:12px;line-height:1.7;overflow-wrap:anywhere;
}
.account-pages-adventure #content .ba-register-editor-inner .ProseMirror :is(h1,h2){
 margin:0 0 8px;padding:0;border:0;background:none;color:var(--site-ink-f2cd90,#f2cd90);
 font-family:var(--home-title-font);font-weight:700;line-height:1.3;
}
.account-pages-adventure #content .ba-register-editor-inner .ProseMirror h1{font-size:22px}
.account-pages-adventure #content .ba-register-editor-inner .ProseMirror h2{font-size:18px}
.account-pages-adventure #content .ba-register-editor-inner .ProseMirror :is(ul,ol){margin:8px 0;padding-left:24px}
.account-pages-adventure #content .ba-register-editor-inner .ProseMirror ul{list-style:disc}
.account-pages-adventure #content .ba-register-editor-inner .ProseMirror ol{list-style:decimal}
.account-pages-adventure #content .ba-register-privacy{color:var(--site-ink-dbc8ae,#dbc8ae)}
@media(pointer:coarse){
 .account-pages-adventure #content .ba-register-toolbar button{min-width:44px;min-height:44px}
}
@media(max-width:480px){
 .account-pages-adventure #content :is(.ba-buddy-form,.ba-buddy-row,.ba-buddy-actions){flex-wrap:wrap;gap:8px}
 .account-pages-adventure #content .ba-buddy-form input{width:100%;flex-basis:100%}
 .account-pages-adventure #content .ba-register-field{min-width:0}
}

/* Clan departure stays visually separate from everyday management. */
.clan-dashboard-adventure #content .ba-clan-leave{
 margin:18px 0 0;padding:12px;gap:12px;flex-wrap:wrap;
 background:var(--site-surface-30261f,#30261f);border:1px solid #8f6449;border-left:3px solid #b77a54;
}
.clan-dashboard-adventure #content .ba-clan-leave>div{min-width:0;flex:1 1 180px}
.clan-dashboard-adventure #content .ba-clan-leave strong{
 color:var(--site-ink-edc5a4,#edc5a4);font-family:var(--home-title-font);font-size:15px;font-weight:700;
}
.clan-dashboard-adventure #content .ba-clan-leave p{margin:4px 0 0;color:var(--site-ink-dbc8ae,#dbc8ae);line-height:1.5}
.clan-dashboard-adventure #content .ba-clan-leave .ba-register-btn{
 background:#69432f;border-color:#b77a54;color:var(--site-ink-fff0de,#fff0de);min-height:32px;
}
.clan-dashboard-adventure #content .ba-clan-leave .ba-register-btn:hover:not(:disabled){background:#885437}
@media(max-width:480px){.clan-dashboard-adventure #content .ba-clan-tool{min-height:0}}

/* Character grants and balance tools */
.staff-unlock-page #content .ba-staff-lead,
.winrate-page .winrate-results { color:var(--site-ink-dbc8ae,#dbc8ae); }
.staff-unlock-page #content .selection-summary { overflow-wrap:anywhere; }
.staff-unlock-page #content .ba-staff-field span { color:var(--site-ink-f0d2a1,#f0d2a1); }
.staff-unlock-page #content .ba-staff-grid,
.winrate-page .winrate-grid {
 display:grid; grid-template-columns:repeat(auto-fill,minmax(min(100%,90px),1fr)); gap:8px;
}
.staff-unlock-page #content .ba-staff-card,
.winrate-page .winrate-card {
 box-sizing:border-box; min-width:0; width:auto; padding:8px;
 border:1px solid #796347; border-radius:2px; background:var(--site-surface-372d24,#372d24);
 color:var(--site-ink-f3eadb,#f3eadb); box-shadow:none; text-align:center;
}
.staff-unlock-page #content .ba-staff-card { position:relative; gap:4px; }
.staff-unlock-page #content .ba-staff-card img {
 width:64px; height:64px; max-width:100%; object-fit:cover; background:#29231e; border:1px solid #80694b;
}
.staff-unlock-page #content .ba-staff-card b { white-space:normal; overflow-wrap:anywhere; color:inherit; line-height:1.3; }
.staff-unlock-page #content .ba-staff-card:hover { border-color:#c39658; }
.staff-unlock-page #content .ba-staff-card.is-on { border-color:#e9ad54; background:#51402c; }
.staff-unlock-page #content .ba-staff-card.is-on::after {
 content:"✓"; position:absolute; top:3px; right:3px; padding:1px 4px;
 background:#e9ad54; color:#302319; font-weight:700;
}
.staff-unlock-page #content .ba-playercard-actions .unlock-submit,
.account-pages-adventure #content .winrate-page .playercard-menu-tab.active {
 background:#e9ad54; border-color:#e9bd76; color:#302319;
}
.winrate-page .winrate-grid { grid-template-columns:repeat(auto-fill,minmax(min(100%,156px),1fr)); padding:8px 0; }
.winrate-page .winrate-card { font-variant-numeric:tabular-nums; overflow-wrap:anywhere; }
.winrate-page .winrate-card .choose-avatar-preview { width:64px; height:64px; background-size:cover; border:1px solid #95764e; }
.winrate-page .winrate-card .home-input.button { box-shadow:none; text-shadow:none; }
.account-pages-adventure #content .winrate-page td.title,
.staff-unlock-page #content td.title {
 padding:8px 12px; height:auto; text-align:left;
 background:var(--site-surface-372d24,#372d24); border-bottom:1px solid #967540;
 color:var(--site-ink-f2cd90,#f2cd90); font-weight:700; line-height:1.35; overflow-wrap:anywhere;
}
:is(.winrate-page,.staff-unlock-page) td.title img.pre {
 position:static; float:none; width:14px; height:14px; margin:0 6px 0 0;
 object-fit:contain; vertical-align:-2px;
}
.account-pages-adventure #content .winrate-page .playercard-menu-tab {
 border:1px solid #80694b; border-radius:2px; background:#403429; color:#efdbbd; box-shadow:none;
}
:is(.staff-unlock-page,.winrate-page) :is(button,a,input,textarea,select):focus-visible { outline:2px solid #e9ad54; outline-offset:2px; }
