/* Account surfaces share the site's theme tokens, including the fire theme. */
html body .hdr-wrap.big .nav .header-actions-toggle{
  min-width:88px;min-height:34px;padding:7px 11px;border-radius:8px;
  border:1px solid var(--border);background:var(--surface-1);color:var(--ink);
  font:600 12px/1.3 var(--site-ui,system-ui,sans-serif);box-shadow:none;transform:none;
}
html body .hdr-wrap.big .nav .header-actions-toggle:hover,
html body .hdr-wrap.big .nav .header-actions-toggle[aria-expanded="true"]{
  background:var(--surface-2);border-color:var(--accent);
}
html body .header-actions-panel{
  width:304px;min-width:0;max-width:calc(100vw - 32px);max-height:calc(100dvh - 110px);
  overflow-y:auto;overscroll-behavior:contain;gap:3px;padding:12px;
  border:1px solid var(--border);border-radius:12px;background:var(--surface-1);
  box-shadow:0 14px 40px #0002;font:13px/1.5 var(--site-ui,system-ui,sans-serif);
}
html body .header-actions-panel .header-actions-heading{
  padding:7px 9px 4px;font:700 10px/1.5 var(--site-ui,system-ui,sans-serif);
  letter-spacing:.1em;color:var(--muted);
}
html body .header-actions-panel .header-actions-sep{margin:8px 0;background:var(--border);opacity:.65;flex-shrink:0;}
html body .header-actions-panel .header-actions-item{
  min-height:38px;padding:9px 10px;border:1px solid transparent;border-radius:7px;
  background:transparent;color:var(--ink);font:500 13px/1.4 var(--site-ui,system-ui,sans-serif);
  box-shadow:none;transform:none;text-decoration:none;
}
html body .header-actions-panel .header-actions-item:hover{
  background:var(--surface-2);border-color:var(--border);box-shadow:none;transform:none;
}
html body .header-actions-panel .header-actions-note{font-size:11px;font-weight:400;}
html body .header-actions-panel .site-language{padding:6px 8px;gap:9px;}
html body .header-actions-panel .site-language-label{margin:0 0 7px;font:700 10px/1.5 var(--site-ui,system-ui,sans-serif);letter-spacing:.1em;text-transform:uppercase;}
html body .header-actions-panel .site-language-options{grid-template-columns:repeat(2,minmax(0,1fr));gap:4px;}
html body .header-actions-panel .site-language-choice{min-height:34px;gap:6px;padding:6px;border:1px solid transparent;font-size:12px;}
html body .header-actions-panel .site-language-choice:has(input:checked){border-color:var(--border);background:var(--surface-2);}
html body .header-actions-panel .site-language-choice input{width:12px;height:12px;flex:none;}
html body .header-actions-panel .site-language .site-language-apply{
  min-width:0;width:100%;min-height:36px;padding:8px 14px;border:1px solid var(--accent);border-radius:8px;
  background:var(--accent);color:#fff;font:600 12px/1.4 var(--site-ui,system-ui,sans-serif);box-shadow:none;transform:none;
}
html body .header-actions-panel .site-language .site-language-apply:hover{background:var(--accent);border-color:var(--accent);filter:brightness(1.02);}
html body :is(.header-actions-panel,.mobileSideSection) .lft-game-switch{
  margin:3px 8px 7px;padding:3px;gap:3px;border-radius:8px;background:var(--surface-2);
}
html body :is(.header-actions-panel,.mobileSideSection) .lft-game-switch .lft-game-option{
  min-height:32px;border-radius:6px;font:600 12px/1.3 var(--site-ui,system-ui,sans-serif);
}
html body :is(.header-actions-panel,.mobileSideSection) .lft-game-switch a.lft-game-option:is(:hover,.is-active){
  color:var(--accent);background:var(--surface-1);border-color:var(--border);box-shadow:none;
}
html body.page-profile .profile-tabs{gap:6px;padding:0 0 16px;background:transparent;border:0;border-bottom:1px solid var(--border);border-radius:0;box-shadow:none;}
html body.page-profile .profile-tabs a.tab{
  min-height:40px;padding:9px 13px;border:1px solid transparent;border-radius:8px;
  background:transparent;color:var(--muted);font:500 13px/1.4 var(--site-ui,system-ui,sans-serif);box-shadow:none;transform:none;
}
html body.page-profile .profile-tabs a.tab:hover{background:var(--surface-2);color:var(--ink);border-color:var(--border);box-shadow:none;transform:none;}
html body.page-profile .profile-tabs a.tab.active{background:var(--surface-2);color:var(--accent);border-color:var(--border);font-weight:600;box-shadow:inset 0 -2px 0 var(--accent);}
html body.page-profile .profile-tabs .tab-badge{min-width:19px;height:19px;padding:0 5px;background:var(--surface-1);color:var(--ink);border:1px solid var(--border);font:600 10px/1 var(--site-ui,system-ui,sans-serif);box-shadow:none;}
html body.page-profile .profile-hero{background:transparent;border:0;border-bottom:1px solid var(--border);border-radius:0;box-shadow:none;padding:12px 0 24px;}
html body.page-profile .profile-hero .title .name{font-family:var(--site-ui,system-ui,sans-serif);font-size:25px;letter-spacing:-.025em;}
html body #account-wrap .account-card{border:1px solid var(--border);border-radius:12px;background:var(--surface-1);box-shadow:none;}
html body #account-wrap .account-card .body{padding:24px;}
html body #account-wrap .info-grid{gap:18px 24px;}
html body #account-wrap .field{padding:0 0 14px;border:0;border-bottom:1px solid var(--border);border-radius:0;background:transparent;}
html body #account-wrap .field .label{margin-bottom:5px;font:500 12px/1.5 var(--site-ui,system-ui,sans-serif);color:var(--muted);}
html body #account-wrap .field .value{font:600 15px/1.6 var(--site-ui,system-ui,sans-serif);overflow-wrap:anywhere;}
html body #account-wrap .hint{grid-column:1/-1;padding:14px 16px;border:1px solid var(--border);border-radius:8px;background:var(--surface-2);font-size:13px;line-height:1.7;}
html body #account-wrap .account-guide-title{margin:28px 0 12px;font:600 17px/1.4 var(--site-ui,system-ui,sans-serif);letter-spacing:-.02em;}
html body #account-wrap .account-guide{gap:14px;}
html body #account-wrap .account-guide .callout{padding:18px 18px 18px 58px;border:1px solid var(--border);border-radius:10px;background:var(--panel);box-shadow:none;}
html body #account-wrap .account-guide .callout.is-wide{padding:18px;}
html body #account-wrap .account-guide .callout .icon{top:18px;left:18px;width:26px;height:26px;border:0;border-radius:6px;background:var(--surface-2);color:var(--accent);}
html body #account-wrap .account-guide .callout h3{margin:0 0 8px;font:600 15px/1.5 var(--site-ui,system-ui,sans-serif);letter-spacing:-.015em;}
html body #account-wrap .account-guide .callout p{font-size:13px;line-height:1.8;}
html body :is(.header-actions-panel,.profile-tabs,#account-wrap) :is(a,button,input):focus-visible{outline:2px solid var(--accent);outline-offset:3px;}
html[data-theme="fire"] body :is(.profile-tabs,#account-wrap){--accent:#d6b879;--accent-ink:#241a10;}
html body .mobileAccountPreferences .site-language-options{grid-template-columns:repeat(2,minmax(0,1fr));gap:4px;}
html body .mobileAccountPreferences .site-language-choice{gap:6px;padding:7px 4px;font-size:12px;}
html body .mobileAccountPreferences .site-language .site-language-apply{width:100%;padding:8px 14px;border:1px solid var(--accent);border-radius:8px;background:var(--accent);color:#fff;font-size:12px;box-shadow:none;}
html body .mobileAccountPreferences .mobileSideItem,
html body .mobileAccountPreferences .mobileSideThemeBtn{min-height:40px;padding:10px 12px;border:1px solid transparent;border-radius:8px;background:transparent;color:var(--ink);font:500 13px/1.5 var(--site-ui,system-ui,sans-serif);box-shadow:none;}
html body .mobileAccountPreferences .mobileSideItem:hover,
html body .mobileAccountPreferences .mobileSideThemeBtn:hover{background:var(--surface-2);border-color:var(--border);}
@media(max-width:600px){
  html body #account-wrap .account-card .body{padding:16px;}
  html body.page-profile .profile-tabs{flex-wrap:nowrap;overflow-x:auto;padding-bottom:12px;scrollbar-width:thin;}
  html body.page-profile .profile-tabs a.tab{flex:none;white-space:nowrap;}
  html body .header-actions-panel{max-height:calc(100dvh - 90px);}
}
