/* Reference sheet geometry, shared by the public profile and editor preview.
 * Cosmetic colors, portrait shapes and images remain individual fighter choices. */
@font-face { font-family: 'FAC Cinzel'; font-style: normal; font-weight: 400; font-display: swap; src: url('fonts/cinzel-400.ttf') format('truetype'); }
@font-face { font-family: 'FAC Cinzel'; font-style: normal; font-weight: 700; font-display: swap; src: url('fonts/cinzel-700.ttf') format('truetype'); }
@font-face { font-family: 'FAC Merriweather'; font-style: normal; font-weight: 400; font-display: swap; src: url('fonts/merriweather-400.ttf') format('truetype'); }
@font-face { font-family: 'FAC Merriweather'; font-style: normal; font-weight: 700; font-display: swap; src: url('fonts/merriweather-700.ttf') format('truetype'); }
.fac-fighter-profile--sheet {
  max-width: 1200px;
  margin-inline: auto;
  padding: 30px;
  border: 4px solid var(--fac-sheet-gold);
  border-radius: 15px;
  outline: none;
  background: linear-gradient(rgb(26 22 18 / 90%), rgb(26 22 18 / 90%)), var(--fac-profile-background, none);
  background-size: cover;
  background-position: center;
  box-shadow: 0 0 50px #0009, 0 0 20px color-mix(in srgb, var(--fac-sheet-gold) 20%, transparent);
  font-family: 'FAC Merriweather', Georgia, serif;
  line-height: 1.6;
}
.fac-fighter-profile--sheet .fac-sheet__masthead { margin: 0 0 30px; padding: 0 0 20px; border-bottom: 2px solid var(--fac-sheet-gold); }
.fac-fighter-profile--sheet .fac-sheet__masthead h1 { font-size: clamp(2rem, 4vw, 3.5rem); font-weight: 500; line-height: 1.2; letter-spacing: .02em; text-shadow: 0 0 20px color-mix(in srgb, var(--fac-sheet-gold) 45%, transparent); }
.fac-fighter-profile--sheet .fac-sheet__masthead p { margin-top: 6px; font-family: Georgia, serif; font-size: clamp(1rem, 1.6vw, 1.4rem); font-weight: 400; letter-spacing: 4px; }
.fac-fighter-profile--sheet .fac-sheet__masthead strong { font-weight: inherit; }
.fac-fighter-profile--sheet .fac-sheet__columns { grid-template-columns: minmax(0, 380px) minmax(0, 1fr); gap: 40px; }
.fac-fighter-profile--sheet .fac-sheet__rail { gap: 20px; justify-items: center; }
.fac-fighter-profile--sheet .fac-sheet__portrait { width: min(100%, 320px); aspect-ratio: 320 / 420; padding: 0; border: 5px solid var(--fac-sheet-gold); box-shadow: 0 0 28px color-mix(in srgb, var(--fac-profile-accent) 60%, transparent); }
.fac-fighter-profile--sheet .fac-sheet__portrait--plain-squire { border-radius: 10px; }
.fac-fighter-profile--sheet .fac-sheet__portrait--secondary { aspect-ratio: 1; margin-top: 10px; }
.fac-fighter-profile--sheet .fac-sheet__portrait::after { display: none; }
.fac-fighter-profile--sheet .fac-sheet__box { width: 100%; padding: 15px; border-radius: 8px; background: #0009; }
.fac-fighter-profile--sheet .fac-sheet__box h2 { font-size: 1.1rem; letter-spacing: 0; padding-bottom: 10px; margin-bottom: 10px; }
.fac-fighter-profile--sheet .fac-sheet__box dl > div { grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr); padding: 3px 0; border: 0; }
.fac-fighter-profile--sheet .fac-sheet__box dt { color: var(--fac-sheet-gold); text-transform: none; letter-spacing: 0; font-size: .9rem; }
.fac-fighter-profile--sheet .fac-sheet__story { display: flex; flex-direction: column; gap: 25px; }
.fac-fighter-profile--sheet .fac-sheet__team { margin: 0; font-size: .75rem; }
.fac-fighter-profile--sheet .fac-sheet__intro { margin: 0; padding: 15px; border-radius: 0 8px 8px 0; font-size: 1.1rem; line-height: 1.6; color: var(--fac-profile-copy); }
.fac-fighter-profile--sheet .fac-sheet__declaration { margin: 0; padding: 10px 0; font-size: 1.3rem; font-variant: small-caps; line-height: 1.5; }
.fac-fighter-profile--sheet .fac-sheet__declaration::before, .fac-fighter-profile--sheet .fac-sheet__declaration::after { display: none; }
.fac-fighter-profile--sheet .fac-sheet__identity { margin: 0; grid-template-columns: repeat(auto-fit, minmax(125px, 1fr)); background: transparent; border: 0; gap: 8px; }
.fac-fighter-profile--sheet .fac-sheet__identity > div { padding: 7px 10px; border-left: 1px solid var(--fac-sheet-gold); background: #0003; }
.fac-fighter-profile--sheet .fac-sheet__section { margin-top: 0; }
.fac-fighter-profile--sheet .fac-sheet__section h2 { font-size: 1.6rem; line-height: 1.3; letter-spacing: 0; font-weight: 500; padding-bottom: 10px; margin-bottom: 15px; }
.fac-fighter-profile--sheet .fac-sheet__duo { gap: 20px; }
.fac-fighter-profile--sheet .fac-sheet__duo:empty { display: none; }
.fac-fighter-profile--sheet .fac-sheet__section li { color: var(--fac-profile-copy); font-size: .95rem; padding-left: 25px; }
.fac-fighter-profile--sheet .fac-sheet__section li::before { content: '⚔'; }
.fac-fighter-profile--sheet .fac-sheet__attribute-table { width: 100%; table-layout: fixed; border-collapse: collapse; background: #0006; border: 1px solid color-mix(in srgb, var(--fac-sheet-gold) 30%, transparent); }
.fac-sheet__attribute-table th, .fac-sheet__attribute-table td { padding: 12px; text-align: center; overflow-wrap: anywhere; border: 1px solid color-mix(in srgb, var(--fac-sheet-gold) 15%, transparent); }
.fac-sheet__attribute-table thead { background: color-mix(in srgb, var(--fac-sheet-gold) 20%, transparent); color: var(--fac-sheet-gold); }
.fac-sheet__attribute-table tbody th { color: var(--fac-sheet-gold); text-align: left; }
.fac-sheet__attribute-table td { color: var(--fac-profile-copy); }
.fac-sheet__attribute-table .fac-sheet__attribute-value { font-size: 1.2rem; font-weight: bold; }
.fac-fighter-profile--sheet .fac-sheet__causes li { padding: 14px 16px; border: 1px solid color-mix(in srgb, var(--fac-sheet-gold) 45%, transparent); border-radius: 6px; background: #0004; }
.fac-fighter-profile--sheet .fac-sheet__causes li::before { display: none; }
.fac-fighter-profile--sheet .fac-sheet__social { margin-top: 30px; padding: 20px; background: #0006; font-family: Georgia, serif; }
.fac-fighter-profile--sheet a { overflow-wrap: anywhere; }
.fac-fighter-profile--sheet a:focus-visible { outline: 2px solid var(--fac-sheet-gold); outline-offset: 4px; }
.fac-fighter-profile--sheet .fac-sheet__masthead h1,
.fac-fighter-profile--sheet .fac-sheet__masthead p,
.fac-fighter-profile--sheet .fac-sheet__section h2,
.fac-fighter-profile--sheet .fac-sheet__box h2 { font-family: 'FAC Cinzel', Georgia, serif; font-weight: 400; }
.fac-fighter-profile--sheet .fac-sheet__intro { font-family: 'FAC Merriweather', Georgia, serif; }
.fac-fighter-profile--sheet .fac-sheet__declaration,
.fac-fighter-profile--sheet .fac-sheet__battle-cry { margin: 10px 0 !important; font-family: 'FAC Cinzel', Georgia, serif !important; font-size: 1.3rem !important; letter-spacing: 0; }
.fac-fighter-profile--sheet .fac-sheet__identity { width: 100%; }
.fac-fighter-profile--sheet .fac-sheet__bio-more { margin-top: 12px; }
.fac-fighter-profile--sheet .fac-sheet__bio-more summary { color: var(--fac-sheet-gold); cursor: pointer; font-size: .85rem; font-style: normal; }
.fac-fighter-profile--sheet .fac-sheet__bio-more summary:focus-visible { outline: 2px solid var(--fac-sheet-gold); outline-offset: 4px; }
@media (max-width: 1000px) {
  .fac-fighter-profile--sheet .fac-sheet__columns { grid-template-columns: minmax(0, 32%) minmax(0, 1fr); gap: 24px; }
}
@media (max-width: 860px) {
  .fac-fighter-profile--sheet .fac-sheet__columns { grid-template-columns: minmax(0, 1fr); }
  .fac-fighter-profile--sheet .fac-sheet__rail { width: min(100%, 380px); }
  .fac-fighter-profile--sheet .fac-sheet__duo { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 600px) {
  .fac-fighter-profile--sheet { padding: 18px; border-width: 2px; }
  .fac-fighter-profile--sheet .fac-sheet__masthead p { letter-spacing: 2px; font-size: 1rem; }
  .fac-fighter-profile--sheet .fac-sheet__section h2 { font-size: 1.3rem; }
  .fac-fighter-profile--sheet .fac-sheet__intro { padding: 12px; font-size: 1rem; }
  .fac-sheet__attribute-table th, .fac-sheet__attribute-table td { padding: 8px 5px; font-size: .8rem; }
}
@media (prefers-reduced-motion: reduce) {
  .fac-fighter-profile--sheet *, .fac-fighter-profile--sheet *::before, .fac-fighter-profile--sheet *::after { animation: none !important; transition: none !important; }
}
