#fc-account-root {
  --archive-gold: #d3b477;
  --archive-paper: #f3ead8;
  --archive-muted: #b6a895;
  --archive-rule: #b9985a35;
  color: var(--archive-paper);
  max-width: 1330px;
  min-height: calc(100vh - 130px);
  margin: 0 auto;
  padding: clamp(28px, 4.4vw, 68px) clamp(18px, 4vw, 64px) 70px;
}

.fc-account-layout {
  display: grid;
  align-items: start;
  grid-template-columns: 236px minmax(0, 1fr);
  gap: clamp(24px, 5vw, 78px);
}

#fc-account-root [hidden] { display: none !important; }
.fc-archive-main, .fc-account-body { min-width: 0; }
#fc-account-root :is(h1, h2, h3, .fc-archive-name, .fc-archive-stat dd, .fc-rating-score) {
  font-family: var(--display, Georgia, serif);
  color: var(--archive-paper);
  line-height: 1.04;
  overflow-wrap: anywhere;
}
#fc-account-root h1 { margin: .1em 0 0; font-size: clamp(3rem, 5.8vw, 5.4rem); letter-spacing: -.047em; font-weight: 700; }
#fc-account-root h2 { margin: 0 0 .45em; font-size: clamp(1.8rem, 3vw, 2.45rem); font-weight: 700; }
#fc-account-root h3 { margin: 0 0 .4em; font-size: 1.6rem; }
#fc-account-root :is(p, dd, dl) { margin: 0; }
#fc-account-root :is(a, button, input, select, textarea, summary):focus-visible { outline: 2px solid var(--archive-gold); outline-offset: 3px; }
#fc-account-root .fc-archive-icon { width: 19px; height: 19px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }

.fc-account-sidebar {
  min-width: 0;
  padding: 24px 15px 14px;
  border: 1px solid var(--archive-rule);
  border-top-color: #b9985a75;
  background: radial-gradient(ellipse at 50% 8%, #60232034, transparent 54%), #151310;
}
.fc-sidebar-identity { display: grid; justify-items: center; text-align: center; margin: 0 8px 18px; padding-bottom: 20px; border-bottom: 1px solid var(--archive-rule); }
.fc-archive-portrait {
  width: 84px; height: 84px; display: grid; place-items: center; overflow: hidden; margin-bottom: .7rem;
  border: 1px solid var(--archive-gold); outline: 1px solid #b9985a35; outline-offset: 4px; border-radius: 50%;
  background: radial-gradient(circle at center, #491e24, #211514 75%); color: var(--archive-gold);
}
.fc-archive-portrait img { display: block; width: 100%; height: 100%; object-fit: cover; }
#fc-account-root .fc-archive-portrait .fc-archive-icon { width: 33px; height: 33px; stroke-width: 1.2; }
#fc-account-root .fc-archive-name { margin: 0 0 7px; font-size: 2rem; font-weight: 700; }
#fc-account-root .fc-archive-member { margin-top: 13px; letter-spacing: .115em; color: var(--archive-gold); font-size: .71rem; font-weight: 600; }
#fc-account-root .fc-archive-date { margin-top: 1px; font-size: .76rem; color: var(--archive-muted); }

.fc-account-nav { display: grid; gap: 3px; }
#fc-account-root .fc-account-nav a, #fc-account-root .fc-account-sidebar > button {
  display: flex; align-items: center; gap: 9px; margin: 0; padding: 9px 8px; border: 1px solid transparent; min-height: 40px;
  color: #d7cab4; background: transparent; font-size: .83rem; text-align: left; transition: background .18s, color .18s;
}
#fc-account-root .fc-account-nav a:hover, #fc-account-root .fc-account-sidebar > button:hover { color: var(--archive-paper); background: #ab834c13; }
#fc-account-root .fc-account-nav [aria-current='page'] { border-left-color: #b94c4e; color: #fff4df; background: linear-gradient(90deg,#76262d53,#76262d19); }
.fc-account-nav .fc-archive-icon { color: var(--archive-gold); }
#fc-account-root .fc-account-sidebar > button { margin-top: 9px; border-top-color: var(--archive-rule); width: 100%; color: var(--archive-muted); }

.fc-archive-heading { margin-bottom: clamp(22px, 3.4vw, 38px); }
.fc-archive-heading h1:focus { outline: none; }
.fc-archive-kicker {
  display: flex; align-items: center; gap: 9px; color: var(--archive-gold);
  font-size: .66rem; letter-spacing: .19em; font-weight: 700; text-transform: uppercase;
}
.fc-archive-kicker::before { content: ''; width: 19px; height: 1px; background: #a94045; }
.fc-account-overview {
  display: grid;
  isolation: isolate;
  grid-template-columns: minmax(0, 1fr) min(42%, 382px);
  grid-template-rows: 118px minmax(97px, auto) auto;
  grid-template-areas: "speech keeper" "title keeper" "book book";
  column-gap: clamp(.55rem, 2vw, 1.5rem);
}
.fc-account-overview > .fc-archive-heading {
  grid-area: title;
  align-self: center;
  min-width: 0;
  margin: 0;
  padding-block: .55rem 1.15rem;
}
#fc-account-root .fc-account-overview h1 { font-size: clamp(2.5rem, 5vw, 5.4rem); }
.fc-account-overview > .fc-archive-book { grid-area: book; z-index: 1; }
#fc-account-root .fc-account-overview button.fc-account-keeper-trigger {
  grid-area: keeper;
  align-self: end;
  inline-size: 100%;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  display: block;
  margin: 0 0 -4px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  outline-offset: -3px;
}
.fc-account-keeper-trigger img {
  display: block;
  height: 100%;
  width: 100%;
  object-fit: contain;
  transform: translate(var(--keeper-x, 6%), var(--keeper-y, 1%));
}
.fc-account-keeper-trigger[data-pose="curious"] { --keeper-x: 10%; --keeper-y: 0%; }
.fc-account-keeper-trigger[data-pose="ticket"] { --keeper-x: 5%; }
.fc-account-keeper-trigger[data-pose="humor"] { --keeper-x: -7%; --keeper-y: 0%; }
.fc-account-keeper-bubble {
  grid-area: speech;
  align-self: end;
  justify-self: start;
  width: fit-content;
  max-width: min(100%, 28rem);
  max-height: 100%;
  overflow: auto;
  padding: .65rem .85rem;
  border: 1px solid var(--archive-rule);
  border-inline-start-color: var(--archive-gold);
  border-radius: .35rem;
  background: linear-gradient(115deg, #2a191e, #201519);
  overflow-wrap: anywhere;
}
.fc-account-keeper-bubble strong { display: block; font-size: .86rem; }
.fc-account-keeper-bubble p { line-height: 1.45; }
@media (max-width: 860px) {
  .fc-account-overview { grid-template-rows: 154px minmax(88px, auto) auto; }
}
@media (max-width: 680px) {
  .fc-account-overview {
    grid-template-columns: minmax(0, 1fr) min(46%, 230px);
    grid-template-rows: 136px auto auto;
    grid-template-areas: "speech speech" "title keeper" "book book";
  }
  #fc-account-root .fc-account-overview h1 { font-size: clamp(2.1rem, 7.8vw, 3.3rem); }
  .fc-account-overview > .fc-archive-heading { padding-block: .5rem .7rem; }
}
@media (max-width: 360px) {
  .fc-account-overview { grid-template-rows: 150px auto auto; }
}
.fc-archive-meta { color: var(--archive-muted); font-size: .86rem; }
.fc-archive-book {
  display: grid;
  grid-template-columns: minmax(86px, 126px) minmax(0,1fr);
  align-items: center;
  gap: clamp(14px, 3vw, 33px);
  padding: clamp(16px, 3vw, 28px);
  border: 1px solid var(--archive-rule);
  border-left: 2px solid #98373d;
  background: radial-gradient(ellipse at 5% 86%, #68252c4f, transparent 57%), linear-gradient(105deg, #1e1715, #151311 70%);
}
.fc-archive-cover { display: block; width: 100%; height: auto; aspect-ratio: 1055 / 1491; object-fit: cover; box-shadow: 6px 6px 15px #06050483; border: 1px solid #cba36c51; }
#fc-account-root .fc-archive-book h2 { margin: 4px 0; font-size: clamp(1.85rem, 4.4vw, 3.5rem); }
#fc-account-root .fc-archive-book-position { margin: 8px 0 2px; font-size: .86rem; }
#fc-account-root .fc-archive-primary {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 40px; margin: 12px 0 0;
  padding: 8px 14px; border: 1px solid #b2494b; background: #832832; color: #fff1df; font-size: .84rem; font-weight: 700;
  transition: background .18s;
}
#fc-account-root .fc-archive-primary:hover { background: #a3343c; }
.fc-archive-progress { display: block; appearance: none; height: 4px; width: min(100%, 260px); margin: 10px 0 2px; border: 0; background: #473529; color: var(--archive-gold); }
.fc-archive-progress::-webkit-progress-bar { background: #473529; }
.fc-archive-progress::-webkit-progress-value { background: var(--archive-gold); }
.fc-archive-progress::-moz-progress-bar { background: var(--archive-gold); }

#fc-account-root .fc-archive-stats { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); margin: 14px 0 33px; border-block: 1px solid var(--archive-rule); }
.fc-archive-stat { display: grid; grid-template-areas: 'icon value' 'label label'; grid-template-columns: auto minmax(0,1fr); align-items: center; justify-content: start; column-gap: .5rem; padding: 13px 11px; }
.fc-archive-stat + .fc-archive-stat { border-left: 1px solid var(--archive-rule); }
.fc-archive-stat .fc-archive-icon { grid-area: icon; color: var(--archive-gold); }
.fc-archive-stat dt { grid-area: label; margin-top: 3px; color: var(--archive-muted); font-size: .77rem; line-height: 1.35; }
.fc-archive-stat dd { grid-area: value; font-size: clamp(1.3rem, 2.5vw, 1.95rem); font-weight: 700; white-space: nowrap; }
.fc-profile-sections { display: grid; grid-template-columns: minmax(0, 1fr) minmax(172px, .42fr); gap: clamp(10px, 3vw, 28px); align-items: start; }
.fc-archive-next { padding: 16px; border-left: 1px solid var(--archive-rule); background: linear-gradient(130deg, #b58e4c0e, transparent); }
#fc-account-root .fc-archive-next h2 { font-size: 1.85rem; }
#fc-account-root .fc-archive-next a { display: inline-block; margin-top: 8px; }
.fc-archive-empty { padding: 15px 0; color: var(--archive-muted); }
.fc-archive-empty > .fc-archive-icon { color: var(--archive-gold); }
#fc-account-root .fc-archive-empty a { display: inline-block; margin-top: 7px; }
.fc-title-seal { --seal: #c7bdad; display: inline-flex; align-items: center; max-width: 100%; gap: 7px; padding: 4px 7px; border: 1px solid #b9985a40; color: var(--seal); font-weight: 600; font-size: .78rem; text-align: left; }
.fc-title-seal[data-threshold='1'] { --seal: #d1b679; }
.fc-title-seal:is([data-threshold='5'], [data-threshold='10']) { --seal: #e1bd79; }
.fc-title-seal:is([data-threshold='20'], [data-threshold='30']) { --seal: #dfaa8b; border-color: #8f483f; }
.fc-title-seal:is([data-threshold='50'], [data-threshold='75'], [data-threshold='100']) { --seal: #efcca1; border-color: #ab614b; }

.fc-award-grid, .fc-title-grid, .fc-account-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(min(100%, 180px),1fr)); gap: 12px; margin: 13px 0; }
.fc-award-grid:empty { display: none; }
.fc-archive-award, .fc-title-item { min-width: 0; padding: 15px; border: 1px solid var(--archive-rule); background: #151310; }
.fc-archive-award[data-state='locked'], .fc-title-item[data-state='locked'] { border-color: #81796a33; }
.fc-archive-award[data-state='earned'] { border-color: #a2834f6b; background: radial-gradient(ellipse at 22px 20px,#9b653128,transparent 70%),#191510; }
.fc-archive-award[data-state='earned'][data-rarity='3'], .fc-archive-award[data-state='earned'][data-rarity='4'] { border-color: #bc8c5ba8; background: radial-gradient(ellipse at 22px 20px,#842d354c,transparent 70%),#191411; }
.fc-award-medallion { width: 38px; height: 38px; display: grid; place-items: center; margin-bottom: 10px; border: 1px solid currentColor; border-radius: 50%; color: var(--archive-muted); }
.fc-archive-award[data-state='earned'] .fc-award-medallion { color: var(--archive-gold); }
.fc-archive-award p { font-size: .83rem; color: var(--archive-muted); }
#fc-account-root .fc-award-caption { display: block; margin-top: 8px; font-size: .69rem; font-weight: 600; color: var(--archive-gold); }
#fc-account-root [data-state='locked'] .fc-award-caption { color: var(--archive-muted); }
#fc-account-root .fc-title-item p { margin-top: 6px; }
#fc-account-root .fc-title-item button { margin-top: 9px; }
.fc-rating-list { border-top: 1px solid var(--archive-rule); }
.fc-archive-row { display: flex; align-items: center; gap: 12px; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--archive-rule); }
.fc-rating-row > div { flex: 1; min-width: 0; }
#fc-account-root .fc-rating-row h2 { font-size: 1.5rem; margin-bottom: 0; }
#fc-account-root .fc-rating-score { color: var(--archive-gold); font-size: 1.6rem; }
#fc-account-root .fc-archive-row a { margin: 0; }

#fc-account-root .fc-account-body :is(form, details) { margin: 16px 0; padding: 14px 0; border-block: 1px solid var(--archive-rule); }
#fc-account-root .fc-account-body form { max-width: 35rem; }
#fc-account-root .fc-account-body .fc-card { min-width: 0; margin: 0; padding: 15px; background: #171411; border: 1px solid var(--archive-rule); }
#fc-account-root .fc-account-body label, #fc-account-root .fc-avatar-controls label { display: grid; gap: 5px; margin: 9px 0; font-size: .84rem; }
#fc-account-root .fc-account-body label:has(input[type='checkbox']) { display: flex; align-items: center; }
#fc-account-root label input[type='checkbox'] { width: auto; margin: 0; accent-color: #a83841; }
#fc-account-root :is(input:not([type='checkbox'],[type='range']),select,textarea) { max-width: 100%; min-width: 0; margin: 0; padding: 8px 10px; color: var(--archive-paper); background: #171411; border: 1px solid #a3834b78; font: inherit; }
#fc-account-root .fc-account-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
#fc-account-root .fc-account-filters :is(input,select) { width: auto; }
#fc-account-root fieldset { border-color: var(--archive-rule); margin: 12px 0; }
#fc-account-root :is(button,summary) { cursor: pointer; }
#fc-account-root :is(.fc-account-body,.fc-avatar-dialog,.fc-archive-main) button:not(.fc-archive-primary,.fc-account-keeper-trigger) { padding: 7px 11px; border: 1px solid var(--archive-rule); border-radius: 0; background: #241b15; color: var(--archive-paper); }
#fc-account-root button:disabled { opacity: .5; cursor: default; }
#fc-account-root :is(.fc-account-body,.fc-account-guest) a:not(.fc-archive-primary) { color: var(--archive-gold); text-underline-offset: .15em; }
#fc-account-root :is(.fc-account-body,.fc-account-guest) a:hover { text-decoration: underline; }
#fc-account-root .fc-account-feedback:not([hidden]) { margin-bottom: 14px; padding: 9px 12px; border-left: 2px solid #a94045; color: #eaca9f; background: #38241b60; font-size: .84rem; }
.fc-account-reconnect { margin-bottom: 14px; }
.fc-account-guest { max-width: 44rem; margin-bottom: 34px; padding: 22px; border-left: 2px solid #a94045; background: #1c1613; }
#fc-account-root .fc-account-guest a + a { margin-left: 12px; }
#fc-account-root table { width: 100%; border-collapse: collapse; }
#fc-account-root :is(th, td) { text-align: left; padding: 6px; border-bottom: 1px solid var(--archive-rule); font-size: .82rem; }

.fc-avatar-dialog { max-height: calc(100dvh - 32px); width: min(420px,calc(100% - 24px)); padding: 20px; overflow: auto; border: 1px solid var(--archive-gold); color: var(--archive-paper); background: #1b1612; }
.fc-avatar-dialog::backdrop { background: #080606bf; }
.fc-avatar-dialog canvas { display: block; width: min(40dvh,215px,90%); height: auto; aspect-ratio: 1; margin: 12px auto; border-radius: 50%; outline: 1px solid var(--archive-gold); outline-offset: 3px; cursor: grab; touch-action: none; }
.fc-avatar-dialog canvas:active { cursor: grabbing; }
#fc-account-root .fc-avatar-dialog input[type='range'] { margin: 0; padding: 0; width: 100%; accent-color: #bd8d58; }
.fc-avatar-footer { display: flex; flex-wrap: wrap; gap: 8px; justify-content: end; }
#fc-account-root .fc-avatar-footer .fc-archive-primary { margin-top: 0; }
.fc-crop-status { color: var(--archive-gold); }

@media (max-width: 860px) {
  .fc-account-layout { grid-template-columns: 194px minmax(0,1fr); gap: 20px; }
  .fc-profile-sections { grid-template-columns: minmax(0,1fr); }
  .fc-archive-next { padding: 13px 0; border-left: 0; border-top: 1px solid var(--archive-rule); }
}
@media (max-width: 680px) {
  .fc-account-layout { display: block; }
  .fc-account-sidebar { display: grid; grid-template-columns: minmax(0,1fr) auto; padding: 13px 10px 8px; margin-bottom: 25px; }
  .fc-sidebar-identity { display: grid; grid-template-columns: 42px minmax(0, 1fr); grid-template-rows: auto auto; justify-items: start; align-content: start; margin: 0 4px 9px; padding: 0; column-gap: 9px; text-align: left; border: 0; }
  .fc-archive-portrait { grid-row: span 2; width: 39px; height: 39px; margin: 3px 0 0; outline-offset: 2px; }
  #fc-account-root .fc-archive-portrait .fc-archive-icon { width: 21px; height: 21px; }
  #fc-account-root .fc-archive-name { margin: 0; font-size: 1.65rem; }
  #fc-account-root .fc-sidebar-identity :is(.fc-archive-member,.fc-archive-date) { margin: 0; grid-column: 2; }
  #fc-account-root .fc-sidebar-identity .fc-title-seal { padding: 0; border: 0; }
  .fc-account-nav { grid-column: 1/-1; grid-row: 2; grid-template-columns: repeat(auto-fit,minmax(132px,1fr)); border-top: 1px solid var(--archive-rule); padding-top: 5px; }
  #fc-account-root .fc-account-nav a { padding: 6px 5px; font-size: .76rem; }
  #fc-account-root .fc-account-sidebar > button { grid-row: 1; grid-column: 2; width: auto; align-self: start; margin: 0; border: 0; min-height: 38px; padding: 4px; font-size: .76rem; }
  #fc-account-root .fc-archive-stats { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .fc-archive-stat:nth-child(3) { border-left: 0; }
  .fc-archive-stat:nth-child(n+3) { border-top: 1px solid var(--archive-rule); }
}
@media (prefers-reduced-motion: reduce) {
  #fc-account-root :is(a,button) { transition: none; }
}
