/* Player account only: a tactile, legible adventure desk built from the world art. */
body[data-page="account"] {
  --ink: #213841;
  --muted: #697c7a;
  --line: #d9dfd7;
  --teal: #176b69;
  --teal-dark: #154f50;
  --surface: #fffdf8;
  --surface-solid: #fffdf8;
  --shadow-card: 0 10px 25px rgba(27, 54, 50, .06);
  background: #f2f1e9;
  color: var(--ink);
}
body[data-page="account"]::before,
body[data-page="account"]::after { display: none; }
body[data-page="account"] .topbar {
  top: 0;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 13px max(24px, calc((100vw - 1536px) / 2));
  border: 0;
  border-bottom: 1px solid #d7ded6;
  border-radius: 0;
  background: #fbfaf5;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
body[data-page="account"] .brand-mark {
  border-radius: 9px;
  background: #173f45;
  color: #e8ca83;
  box-shadow: inset 0 0 0 1px #ffffff36;
}
body[data-page="account"] .topbar nav a { border: 1px solid #d9e1d8; background: #fffef9; }
body[data-page="account"] .topbar nav a:hover { color: #144d4c; background: #e9f2e8; }
body[data-page="account"] main {
  width: min(1536px, 100%);
  max-width: none;
  margin: 0 auto;
  padding: 22px 24px 70px;
}
body[data-page="account"] footer { max-width: 1488px; }
.account-icon-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.account-shell { display: grid; grid-template-columns: 246px minmax(0, 1fr); gap: 20px; align-items: start; }
.account-sidebar {
  position: sticky;
  top: 93px;
  display: flex;
  flex-direction: column;
  min-height: min(760px, calc(100vh - 118px));
  padding: 22px 12px 13px;
  border: 1px solid #123e40;
  border-radius: 16px;
  color: #f2f3e9;
  background:
    linear-gradient(135deg, #ffffff08 25%, transparent 25%) 0 0/26px 26px,
    linear-gradient(315deg, #ffffff06 25%, transparent 25%) 0 0/26px 26px,
    linear-gradient(165deg, #173e43 0%, #14383d 58%, #102f38 100%);
  box-shadow: 0 16px 35px #183a381c, inset 0 1px #ffffff2a;
}
.account-sidebar-head { display: flex; align-items: center; gap: 12px; padding: 2px 13px 23px; border-bottom: 1px solid #e8f1db20; }
.account-sigil { display: grid; place-items: center; flex: 0 0 42px; height: 42px; border: 1px solid #e4d19872; border-radius: 10px; background: #d3ad6030; color: #f1d697; font-size: 24px; }
.account-sidebar-head strong, .account-sidebar-head small { display: block; }
.account-sidebar-head strong { font-size: 15px; letter-spacing: .04em; }
.account-sidebar-head small { margin-top: 2px; color: #b9c9be; font-size: 11px; }
.account-sidebar .tabs { display: block; overflow: visible; padding: 7px 0 0; }
.account-nav-group { margin: 14px 0 18px; }
.account-nav-caption { display: block; margin: 0 12px 8px; color: #aabfb3; font-size: 10px; font-weight: 800; letter-spacing: .18em; }
.account-sidebar .tabs button {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 43px;
  margin: 2px 0;
  padding: 9px 13px;
  border: 1px solid transparent;
  border-radius: 9px;
  background: transparent;
  box-shadow: none;
  color: #d7e5d9;
  text-align: left;
  font-size: 13px;
  font-weight: 650;
  white-space: nowrap;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.account-sidebar .tabs button svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.7; opacity: .82; }
.account-sidebar .tabs button:hover { transform: none; border-color: #f6e5b344; background: #ffffff14; color: #fff9e8; }
.account-sidebar .tabs button.active { border-color: #d4b7748c; background: #f2e9d4; color: #254d4c; box-shadow: 0 4px 12px #071f262d; font-weight: 850; }
.account-sidebar .tabs button.active svg { color: #976d2f; opacity: 1; }
.account-sidebar-guide { display: flex; align-items: center; gap: 11px; margin-top: auto; padding: 14px 11px 3px; border-top: 1px solid #e8f1db20; color: #ead7aa; }
.account-sidebar-guide > span:first-child { display: grid; place-items: center; width: 32px; height: 32px; border: 1px solid #e4d19855; border-radius: 7px; font-size: 21px; }
.account-sidebar-guide > span:nth-child(2) { flex: 1; }
.account-sidebar-guide strong, .account-sidebar-guide small { display: block; }
.account-sidebar-guide strong { font-size: 12px; }
.account-sidebar-guide small { color: #b6c9bd; font-size: 10px; }
.account-sidebar-guide:hover { color: #fff5d8; }
.account-workspace { min-width: 0; }
.account-heading {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  min-height: 310px;
  margin: 0 0 7px;
  padding: 31px 35px;
  overflow: hidden;
  border: 1px solid #194750;
  border-radius: 16px;
  color: #fff9ed;
  background:
    linear-gradient(90deg, #102e3df2 0%, #143743e0 34%, #1744548f 58%, #143b4950 100%),
    url('/player-guide/assets/voxel-world.png') center 54%/cover no-repeat;
  box-shadow: 0 15px 32px #173b3e20;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.account-heading::after { display: none; }
.account-heading::before { content: ''; position: absolute; z-index: -1; inset: 12px; border: 1px solid #eaf4e53d; border-radius: 8px; pointer-events: none; }
.account-heading-copy { display: flex; flex-direction: column; align-items: flex-start; position: relative; z-index: 1; max-width: 590px; }
.account-kicker { display: inline-flex; align-items: center; gap: 9px; color: #d4ebdb; font-size: 11px; font-weight: 850; letter-spacing: .14em; }
.account-kicker i, .account-live-indicator i { display: inline-block; width: 7px; height: 7px; background: #d9bb76; transform: rotate(45deg); }
.account-heading h1 { margin: 19px 0 12px; color: #fffef7; font-size: clamp(34px, 4vw, 51px); line-height: 1.15; letter-spacing: -.045em; }
.account-heading h1 em { color: #ead299; font-style: normal; }
.account-heading p { max-width: 100%; margin: 0; color: #e1e9df; font-size: 13px; font-weight: 600; overflow-wrap: anywhere; }
.account-hero-chapter { margin-top: auto; padding-top: 29px; color: #cad9d0b8; font-size: 10px; letter-spacing: .17em; }
.account-heading-actions { display: flex; flex-direction: column; justify-content: space-between; align-items: flex-end; position: relative; z-index: 1; gap: 20px; }
.account-live-indicator { display: inline-flex; align-items: center; gap: 9px; padding: 8px 10px; border: 1px solid #f6f0d163; border-radius: 5px; background: #0b2739a8; color: #f5ead3; font-size: 11px; font-weight: 800; white-space: nowrap; }
.account-live-indicator i { width: 6px; height: 6px; background: #8fdb9b; box-shadow: 0 0 8px #8fdb9b; }
body[data-page="account"] #logout { display: inline-flex; align-items: center; gap: 11px; padding: 10px 13px; border: 1px solid #e8f2e385; border-radius: 7px; background: #113948b8; color: #fff9e8; font-size: 12px; font-weight: 750; white-space: nowrap; }
body[data-page="account"] #logout:hover { border-color: #f1d697; background: #153e4b; color: #fff; box-shadow: none; }
.account-section-heading { display: flex; align-items: end; justify-content: space-between; margin: 17px 2px 16px; padding-bottom: 12px; border-bottom: 1px solid #d6dfd5; }
.account-section-overline { color: #4c7772; font-size: 10px; font-weight: 900; letter-spacing: .2em; }
.account-section-heading h2 { margin: 2px 0 0; color: #1c3a40; font-size: 23px; letter-spacing: -.04em; }
.account-section-mark { color: #9d925f; font-size: 11px; font-weight: 800; letter-spacing: .14em; }
.account-content { display: grid; gap: 17px; min-height: 240px; }
.account-content .metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.account-content .tile-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 235px), 1fr)); gap: 12px; }
.account-content .metric, .account-content .tile, .account-content .account-panel {
  border: 1px solid #d8e0d6;
  border-radius: 12px;
  background: #fffef9;
  box-shadow: 0 7px 18px #24473b0c;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.account-content .metric { min-height: 126px; padding: 19px; overflow: hidden; }
.account-content .metric::after { width: 80px; height: 80px; right: -17px; bottom: -27px; border: 1px solid #d5e3d5; border-radius: 0; background: linear-gradient(135deg, #d5e5d240 25%, transparent 25%) 0 0/16px 16px; transform: rotate(18deg); }
.account-content .metric:nth-child(1) { border-color: #c1d4c7; background: #e6f2e8; }
.account-content .metric:nth-child(2) { border-color: #d8cda7; background: #f4efda; }
.account-content .metric small, .account-content .tile small { color: #647c75; font-size: 11px; font-weight: 800; }
.account-content .metric b { color: #204a48; font-size: clamp(20px, 2.4vw, 27px); font-variant-numeric: tabular-nums; }
.account-content .metric:nth-child(2) b { color: #8a642b; }
.account-content .metric:hover, .account-content .tile:hover { transform: none; box-shadow: 0 9px 21px #24473b13; }
.account-content .tile { padding: 18px; }
.account-content .tile b { color: #23454a; font-size: 15px; }
.account-content .tile p { color: #687c77; font-size: 12px; }
.account-content .account-panel { padding: 22px; }
.account-content .account-panel h2 { position: relative; display: flex; align-items: center; gap: 10px; margin: 0 0 17px; color: #234449; font-size: 18px; }
.account-content .account-panel h2::before { content: ''; width: 5px; height: 19px; border-radius: 2px; background: #c7a968; }
.account-content .table-scroll { overflow: auto; border: 1px solid #e0e6dc; border-radius: 8px; background: #fff; }
.account-content .account-panel th { color: #55716a; background: #f2f5ed; white-space: nowrap; }
.account-content .account-panel th, .account-content .account-panel td { border-bottom-color: #e4e8df; padding: 12px 13px; }
.account-content .account-panel tbody tr:hover { background: #f6f8f1; }
.account-content .empty-state { border: 1px dashed #cad8c8; border-radius: 8px; background: #f7f9f2; color: #718078; }
.account-content button, .account-content input, .account-content select { font: inherit; }
.account-content button { border-radius: 8px; }
.account-content button:not(:disabled):hover { transform: none; }
.account-content .primary { justify-content: center; border-radius: 8px; background: #1d6966; box-shadow: none; }
.account-content .primary:hover { background: #155450; box-shadow: 0 5px 12px #215f5422; }
.account-content :is(input, select, textarea) { border-color: #cddbd0; border-radius: 8px; background: #fffefa; }
.account-content :is(input, select, textarea):focus-visible { outline: 2px solid #70ae9d; outline-offset: 2px; }
.account-content .task-card code, .account-content code { display: inline-block; width: fit-content; max-width: 100%; overflow-wrap: anywhere; border: 1px solid #c9dfd1; border-radius: 5px; background: #eaf4e9; color: #185f57; padding: 5px 8px; font-size: 12px; }
.account-content .task-card { gap: 8px; }
.account-content .checkin-action .empty-state { border: 0; background: transparent; }
.account-content .reveal-on-scroll { opacity: 1; transform: none; transition: none; }
@media (max-width: 1120px) {
  .account-shell { grid-template-columns: 215px minmax(0, 1fr); gap: 14px; }
  .account-content .metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .account-heading { min-height: 290px; }
}
@media (max-width: 850px) {
  body[data-page="account"] main { padding: 15px 16px 55px; }
  .account-shell { display: flex; flex-direction: column; gap: 13px; }
  .account-sidebar { position: static; display: block; min-height: 0; width: 100%; padding: 8px; border-radius: 11px; }
  .account-sidebar-head, .account-sidebar-guide, .account-nav-caption { display: none; }
  .account-sidebar .tabs { display: flex; overflow-x: auto; gap: 5px; padding: 0 1px 2px; scrollbar-width: none; }
  .account-sidebar .tabs::-webkit-scrollbar { display: none; }
  .account-nav-group { display: contents; }
  .account-sidebar .tabs button { flex: 0 0 auto; width: auto; min-height: 40px; margin: 0; padding: 8px 11px; font-size: 12px; }
  .account-sidebar .tabs button svg { width: 16px; height: 16px; }
  .account-workspace { width: 100%; }
  .account-heading { min-height: 270px; }
}
@media (max-width: 560px) {
  body[data-page="account"] .topbar { padding: 9px 12px; }
  body[data-page="account"] .topbar nav { gap: 3px; }
  body[data-page="account"] .topbar nav a { padding: 7px 8px; font-size: 11px; }
  body[data-page="account"] main { padding: 10px 10px 40px; }
  .account-heading { min-height: 240px; padding: 22px; border-radius: 11px; background-position: 58% center; }
  .account-heading::before { inset: 8px; }
  .account-heading h1 { margin-top: 14px; font-size: 34px; }
  .account-heading p { max-width: 245px; font-size: 11px; }
  .account-hero-chapter { display: none; }
  .account-heading-actions { justify-content: flex-end; }
  .account-live-indicator { display: none; }
  body[data-page="account"] #logout { padding: 7px 9px; font-size: 11px; }
  .account-section-heading { margin-top: 19px; }
  .account-section-heading h2 { font-size: 20px; }
  .account-content .metric-grid { gap: 8px; }
  .account-content .metric { min-height: 103px; padding: 13px; }
  .account-content .metric b { font-size: 20px; }
  .account-content .tile { padding: 15px; }
  .account-content .account-panel { padding: 15px; }
}
@media (max-width: 370px) {
  .account-content .metric-grid { grid-template-columns: 1fr; }
  .account-heading-actions { position: absolute; top: 16px; right: 17px; }
  .account-heading h1 { margin-top: 45px; }
}
