:root {
      --bg: #100c09;
      --gold: #e2b56a;
      --gold-deep: #a97832;
      --cream: #f4ead6;
      --cream-dim: #d9c7a4;
      --ink: #2a1d12;
      --ink-soft: #5c4a36;
      --line: rgba(226, 181, 106, 0.32);
      --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
      --sans: "Nunito Sans", "Segoe UI", sans-serif;
      --shadow: 0 28px 70px rgba(0, 0, 0, 0.42);
    }

    * { box-sizing: border-box; }

    html { scroll-behavior: smooth; }

    body {
      margin: 0;
      font-family: var(--sans);
      font-size: 1.0625rem;
      line-height: 1.65;
      color: var(--cream);
      background-color: var(--bg);
      background-image:
        radial-gradient(ellipse 90% 48% at 50% -8%, rgba(226, 181, 106, 0.16), transparent 58%),
        radial-gradient(ellipse 42% 36% at 100% 18%, rgba(46, 74, 122, 0.22), transparent 60%),
        linear-gradient(180deg, #1a120d 0%, #100c09 280px);
    }

    ::selection {
      background: var(--gold);
      color: #1a1008;
    }

    :focus-visible {
      outline: 2px solid var(--gold);
      outline-offset: 3px;
    }

    a { color: inherit; }

    .skip {
      position: absolute;
      left: 12px;
      top: -48px;
      z-index: 30;
      background: var(--gold);
      color: var(--ink);
      padding: 8px 12px;
      text-decoration: none;
      font-weight: 700;
    }

    .skip:focus { top: 12px; }

    .wrap {
      width: min(1080px, calc(100% - 40px));
      margin-inline: auto;
    }

    .site-header {
      position: sticky;
      top: 0;
      z-index: 10;
      background: rgba(16, 12, 9, 0.9);
      backdrop-filter: blur(14px);
      border-bottom: 1px solid var(--line);
    }

    .site-header .wrap {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 20px;
      min-height: 72px;
    }

    .brand {
      display: flex;
      align-items: center;
      gap: 12px;
      text-decoration: none;
      color: var(--cream);
    }

    .brand img {
      display: block;
      width: 44px;
      height: 44px;
      flex: 0 0 auto;
      border-radius: 10px;
      object-fit: cover;
      box-shadow: 0 0 0 1px rgba(226, 181, 106, 0.55);
    }

    .brand strong {
      display: block;
      font-family: var(--serif);
      font-size: 1.7rem;
      font-weight: 600;
      line-height: 1;
      letter-spacing: 0.01em;
    }

    .brand em {
      display: block;
      margin-top: 3px;
      font-style: normal;
      font-size: 0.78rem;
      letter-spacing: 0.04em;
      color: var(--cream-dim);
    }

    .nav {
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      gap: 8px 18px;
    }

    .nav a {
      text-decoration: none;
      color: var(--cream-dim);
      font-size: 0.95rem;
    }

    .nav a:hover { color: var(--cream); }

    .nav-cta {
      color: #2a1608 !important;
      background: linear-gradient(180deg, #f0c56e, #c48a2e);
      padding: 8px 14px;
      border-radius: 999px;
      font-weight: 700;
    }

    .hero { padding: 56px 0 28px; }

    .hero-grid {
      display: grid;
      gap: 36px;
      align-items: center;
    }

    .kicker {
      margin: 0 0 8px;
      font-family: var(--serif);
      font-style: italic;
      font-size: clamp(1.35rem, 2.4vw, 1.85rem);
      font-weight: 500;
      color: var(--gold);
    }

    h1, h2, h3 {
      font-family: var(--serif);
      font-weight: 600;
      line-height: 1.12;
      text-wrap: balance;
    }

    h1 {
      margin: 0 0 18px;
      font-size: clamp(2.7rem, 7vw, 4.8rem);
      letter-spacing: -0.015em;
    }

    .lede {
      margin: 0 0 14px;
      max-width: 38rem;
      font-size: 1.12rem;
    }

    .lede + .lede { color: var(--cream-dim); }

    .guild-classes {
      margin: 8px 0 0;
    }

    .guild-classes .kicker {
      margin-bottom: 10px;
      font-size: 1.45rem;
    }

    .guild-classes ul {
      list-style: none;
      width: 100%;
      margin: 0;
      padding: 0;
    }

    .guild-classes li {
      display: flex;
      justify-content: space-between;
      gap: 16px;
      padding: 5px 0;
      border-top: 1px solid rgba(226, 181, 106, 0.28);
      font-size: 1.05rem;
    }

    .guild-classes strong {
      color: var(--gold);
      font-variant-numeric: tabular-nums;
      font-weight: 700;
    }

    .cta {
      display: inline-flex;
      flex-direction: column;
      align-items: center;
      gap: 2px;
      margin-top: 12px;
      padding: 14px 28px 12px;
      border-radius: 999px;
      text-decoration: none;
      color: #2a1608;
      background: linear-gradient(180deg, #f3d08a, #c48a2e);
      box-shadow: 0 10px 28px rgba(196, 138, 46, 0.28);
    }

    .cta:hover { filter: brightness(1.06); }

    .cta span {
      font-weight: 800;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      font-size: 0.98rem;
    }

    .cta small {
      font-size: 0.75rem;
      letter-spacing: 0.04em;
      opacity: 0.75;
    }

    .cta-note {
      margin: 10px 0 0;
      color: var(--cream-dim);
      font-size: 0.92rem;
    }

    .seal {
      position: relative;
      padding: 32px 26px 22px;
      background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 28%),
        #1a140f;
      border: 1px solid rgba(226, 181, 106, 0.45);
    }

    .seal::before {
      content: "";
      position: absolute;
      inset: 8px;
      border: 1px solid rgba(226, 181, 106, 0.22);
      pointer-events: none;
    }

    .seal-mark {
      display: flex;
      justify-content: center;
      margin: 4px 10px 14px;
    }

    .seal-mark img {
      width: min(100%, 240px);
      height: auto;
      border-radius: 12px;
      box-shadow: 0 12px 28px rgba(0, 0, 0, 0.38);
    }

    .seal p {
      margin: 0 0 14px;
      text-align: center;
      font-family: var(--serif);
      font-style: italic;
      font-size: 1.45rem;
      color: var(--gold);
    }

    .seal ul {
      list-style: none;
      margin: 0;
      padding: 0;
    }

    .seal li {
      display: flex;
      justify-content: space-between;
      gap: 16px;
      padding: 9px 0;
      border-top: 1px solid rgba(226, 181, 106, 0.18);
      font-size: 0.95rem;
    }

    .seal li span { color: var(--cream-dim); }

    .paper-section { padding-bottom: 28px; }

    .paper {
      position: relative;
      width: min(760px, calc(100% - 32px));
      margin: 20px auto 64px;
      padding: 84px 8% 52px;
      color: var(--ink);
      background:
        radial-gradient(120% 70% at 0% 0%, rgba(255, 255, 255, 0.55), transparent 40%),
        linear-gradient(180deg, #f7efda 0%, #f1e2c4 52%, #e7d4ae 100%);
      box-shadow: var(--shadow), inset 0 0 0 1px rgba(255, 255, 255, 0.45);
    }

    .paper::after {
      content: "";
      position: absolute;
      inset: 12px;
      border: 1px solid rgba(169, 120, 50, 0.38);
      pointer-events: none;
    }

    .ribbon {
      position: absolute;
      top: 0;
      left: 12%;
      width: 16px;
      height: 72px;
      background: linear-gradient(#8eafd6, #2c4d7a);
      clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 84%, 0 100%);
    }

    .eyebrow {
      margin: 0 0 6px;
      font-size: 0.78rem;
      font-weight: 700;
      letter-spacing: 0.14em;
      text-transform: uppercase;
      color: var(--gold-deep);
    }

    .paper h2 {
      margin: 0 0 14px;
      font-size: clamp(2rem, 4vw, 2.8rem);
    }

    .paper h3 {
      margin: 22px 0 10px;
      font-size: 1.85rem;
    }

    .paper p { margin: 0 0 14px; }

    .paper a { color: #6d3d12; }

    hr.rule {
      border: 0;
      height: 1px;
      margin: 32px 0;
      background: linear-gradient(90deg, transparent, rgba(169, 120, 50, 0.75), transparent);
    }

    .rules, .steps { list-style: none; margin: 0; padding: 0; }

    .rules li {
      position: relative;
      padding: 11px 0 11px 20px;
      border-top: 1px solid rgba(90, 60, 30, 0.14);
      font-family: var(--serif);
      font-size: 1.55rem;
      line-height: 1.25;
    }

    .rules li::before {
      content: "";
      position: absolute;
      left: 0;
      top: 1.05em;
      width: 7px;
      height: 7px;
      background: var(--gold-deep);
      transform: rotate(45deg);
    }

    .steps { counter-reset: step; }

    .steps li {
      counter-increment: step;
      display: grid;
      grid-template-columns: 2rem 1fr;
      gap: 12px;
      margin: 16px 0;
    }

    .steps li::before {
      content: counter(step);
      font-family: var(--serif);
      font-size: 1.9rem;
      line-height: 1;
      color: var(--gold-deep);
    }

    .ledger {
      width: 100%;
      border-collapse: collapse;
      margin: 8px 0 16px;
    }

    .ledger caption {
      caption-side: top;
      text-align: left;
      margin-bottom: 6px;
      font-family: var(--serif);
      font-size: 1.7rem;
      font-weight: 600;
    }

    .ledger th,
    .ledger td {
      padding: 12px 8px 12px 0;
      border-bottom: 1px solid rgba(90, 60, 30, 0.16);
      text-align: left;
      vertical-align: baseline;
    }

    .ledger th {
      font-family: var(--serif);
      font-size: 1.28rem;
      font-weight: 600;
    }

    .ledger td {
      font-weight: 800;
      font-variant-numeric: tabular-nums;
    }

    .welcome {
      margin-top: 8px;
      font-family: var(--serif);
      font-size: 1.65rem;
      line-height: 1.3;
    }

    .paper .cta { margin-top: 8px; }

    .board { padding: 20px 0 36px; }

    .board .eyebrow { color: var(--gold); }

    .board h2 {
      margin: 0 0 10px;
      font-size: clamp(2.1rem, 4vw, 3.1rem);
    }

    .board-lead {
      max-width: 40rem;
      margin: 0 0 28px;
      color: var(--cream-dim);
    }

    .news-list {
      display: grid;
      gap: 18px;
      margin: 0;
      padding: 0;
      list-style: none;
    }

    .news-list article {
      position: relative;
      margin: 0;
      padding: 28px 22px 20px;
      background: linear-gradient(180deg, #f8f1de, #efe1c4);
      color: var(--ink);
      box-shadow: 0 16px 36px rgba(0, 0, 0, 0.28);
    }

    .news-list article::before {
      content: "";
      position: absolute;
      top: 10px;
      left: 50%;
      width: 12px;
      height: 12px;
      margin-left: -6px;
      border-radius: 50%;
      background: radial-gradient(circle at 35% 35%, #f3d08a, #a97832 62%, #6d4a1c);
      box-shadow: 0 1px 0 rgba(255, 255, 255, 0.4) inset;
    }

    .news-list h3 {
      margin: 8px 0 8px;
      font-size: 1.7rem;
    }

    .news-list p { margin: 0 0 12px; }

    .news-list time {
      display: block;
      margin-bottom: 8px;
      font-size: 0.8rem;
      font-weight: 700;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      color: var(--gold-deep);
    }

    .sources {
      margin: 22px 0 0;
      color: var(--cream-dim);
      font-size: 0.92rem;
    }

    .faq { padding: 10px 0 72px; }

    .faq h2 {
      margin: 0 0 8px;
      font-size: clamp(2.1rem, 4vw, 3rem);
    }

    .faq-lead {
      margin: 0 0 18px;
      color: var(--cream-dim);
    }

    details {
      border-top: 1px solid var(--line);
    }

    details:last-of-type { border-bottom: 1px solid var(--line); }

    summary {
      display: flex;
      justify-content: space-between;
      gap: 18px;
      align-items: baseline;
      padding: 16px 4px;
      cursor: pointer;
      font-family: var(--serif);
      font-size: 1.45rem;
      line-height: 1.25;
      list-style: none;
    }

    summary::-webkit-details-marker { display: none; }

    summary::after {
      content: "+";
      flex: 0 0 auto;
      color: var(--gold);
      font-size: 1.7rem;
      line-height: 1;
    }

    details[open] summary::after { content: "–"; }

    details p {
      margin: 0;
      padding: 0 36px 16px 4px;
      color: var(--cream-dim);
    }

    .site-footer {
      border-top: 1px solid var(--line);
      padding: 28px 0 36px;
      color: var(--cream-dim);
      font-size: 0.95rem;
    }

    .site-footer .wrap {
      display: flex;
      flex-wrap: wrap;
      justify-content: space-between;
      gap: 12px 24px;
    }

    .site-footer a { color: var(--gold); }

    .site-footer .char-armory {
      margin: 0 0 8px;
      font-size: 0.72rem;
      letter-spacing: 0.02em;
    }

    .site-footer .char-armory a {
      color: var(--cream-dim);
    }

    .site-footer strong {
      display: block;
      color: var(--cream);
      font-family: var(--serif);
      font-size: 1.4rem;
      font-weight: 600;
    }

    .site-footer .roster-source {
      flex: 1 0 100%;
      margin: 4px 0 0;
      font-size: 0.72rem;
      line-height: 1.4;
    }

    .site-footer .roster-source a {
      color: var(--cream-dim);
    }

    .dock { display: none; }

    [id] { scroll-margin-top: 84px; }

    @media (min-width: 860px) {
      .hero { padding: 72px 0 36px; }

      .hero-grid {
        grid-template-columns: 1.35fr 0.78fr;
        gap: 56px;
      }

      .guild-classes ul {
        max-width: 16rem;
      }

      .news-list { grid-template-columns: repeat(3, 1fr); align-items: stretch; }

      .news-list article:nth-child(1) { transform: rotate(-0.5deg); }
      .news-list article:nth-child(2) { transform: rotate(0.45deg); }
      .news-list article:nth-child(3) { transform: rotate(-0.25deg); }
    }

    @media (max-width: 700px) {
      .site-header .wrap {
        flex-direction: column;
        align-items: flex-start;
        justify-content: center;
        gap: 8px;
        min-height: 0;
        padding: 12px 0;
      }

      .nav {
        width: 100%;
        justify-content: space-between;
        gap: 8px;
      }

      .nav a { padding: 6px 0; }

      .nav-cta { display: none; }

      .dock {
        display: block;
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 20;
        padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
        background: rgba(16, 12, 9, 0.94);
        border-top: 1px solid var(--line);
      }

      .dock .cta {
        width: 100%;
        margin: 0;
        flex-direction: row;
        justify-content: center;
        gap: 8px;
      }

      body { padding-bottom: 76px; }

    }

    [hidden] { display: none !important; }

    button.cta {
      border: 0;
      cursor: pointer;
      font: inherit;
    }

    a.logout { color: var(--gold); }

    @media (max-width: 700px) {
      body.page-books { padding-bottom: 24px; }
    }

    .gate label {
      display: block;
      margin-bottom: 8px;
      font-family: var(--serif);
      font-size: 1.45rem;
    }

    .gate input[type="password"] {
      display: block;
      width: min(100%, 320px);
      margin-bottom: 8px;
      padding: 12px 14px;
      font: inherit;
      color: var(--ink);
      background: rgba(255, 255, 255, 0.55);
      border: 1px solid rgba(169, 120, 50, 0.45);
      border-radius: 10px;
    }

    .gate-error {
      margin: 0 0 14px;
      font-weight: 800;
      color: #7a2e16;
    }

    .book-grid {
      display: grid;
      gap: 18px;
      margin: 0;
      padding: 0 0 28px;
      list-style: none;
    }

    .book-card {
      display: flex;
      flex-direction: column;
      align-items: flex-start;
      gap: 8px;
      margin: 0;
      padding: 22px 22px 18px;
      background: linear-gradient(180deg, #f8f1de, #efe1c4);
      color: var(--ink);
      box-shadow: 0 16px 36px rgba(0, 0, 0, 0.28);
    }

    .book-card h3 {
      margin: 0;
      font-size: 1.7rem;
    }

    .book-meta,
    .book-resume {
      margin: 0;
      color: var(--ink-soft);
    }

    .book-resume { color: var(--gold-deep); font-weight: 800; }

    .book-open {
      margin-top: auto;
      font: inherit;
      font-size: 0.92rem;
      font-weight: 800;
      letter-spacing: 0.06em;
      text-transform: uppercase;
      color: #2a1608;
      background: linear-gradient(180deg, #f0c56e, #c48a2e);
      border: 0;
      border-radius: 999px;
      padding: 10px 16px;
      cursor: pointer;
    }

    .book-open:hover { filter: brightness(1.06); }

    .reader { padding: 8px 0 48px; }

    .reader-bar {
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      gap: 8px;
      position: sticky;
      top: var(--header-offset, 72px);
      z-index: 5;
      margin-bottom: 12px;
      padding: 10px 12px;
      background: rgba(16, 12, 9, 0.94);
      border: 1px solid var(--line);
      backdrop-filter: blur(14px);
    }

    .reader-title {
      flex: 1 1 180px;
      margin: 0;
      font-family: var(--serif);
      font-size: 1.45rem;
      line-height: 1.15;
    }

    .reader-bar button {
      font: inherit;
      font-size: 0.92rem;
      font-weight: 700;
      color: var(--cream);
      background: transparent;
      border: 1px solid var(--line);
      border-radius: 999px;
      padding: 8px 12px;
      cursor: pointer;
    }

    .reader-bar button:hover:not(:disabled) {
      border-color: var(--gold);
      color: var(--gold);
    }

    .reader-bar button:disabled {
      opacity: 0.35;
      cursor: default;
    }

    .reader-bar .is-mark {
      color: #2a1608;
      background: linear-gradient(180deg, #f0c56e, #c48a2e);
      border-color: transparent;
    }

    .page-field {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      color: var(--cream-dim);
      font-size: 0.92rem;
    }

    .page-field input {
      width: 4.2rem;
      padding: 8px;
      font: inherit;
      font-weight: 700;
      text-align: center;
      color: var(--ink);
      background: var(--cream);
      border: 0;
      border-radius: 8px;
    }

    .reader-note,
    .reader-status {
      flex: 1 1 100%;
      margin: 0;
      min-height: 1.2em;
      color: var(--gold);
      font-size: 0.92rem;
    }

    .reader-stage {
      display: flex;
      justify-content: center;
      overflow-x: auto;
      padding-bottom: 12px;
      position: relative;
    }

    .page-turn,
    .full-bar { display: none; }

    .full-bar {
      flex: 0 0 auto;
      align-items: center;
      justify-content: space-between;
      gap: 8px;
      padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
      background: rgba(16, 12, 9, 0.96);
      border-top: 1px solid var(--line);
    }

    .full-bar button {
      font: inherit;
      font-size: 0.95rem;
      font-weight: 700;
      color: var(--cream);
      background: transparent;
      border: 1px solid var(--line);
      border-radius: 999px;
      padding: 10px 14px;
      cursor: pointer;
      touch-action: manipulation;
    }

    .full-bar button:disabled { opacity: 0.35; cursor: default; }

    .full-zoom {
      display: inline-flex;
      gap: 6px;
    }

    .full-zoom button {
      min-width: 44px;
      padding-right: 0;
      padding-left: 0;
      font-size: 1.35rem;
      line-height: 1;
    }

    .full-label {
      color: var(--cream);
      font-weight: 800;
      font-variant-numeric: tabular-nums;
    }

    body.is-fullread { overflow: hidden; }

    body.is-fullread .reader,
    .reader:fullscreen {
      position: fixed;
      inset: 0;
      z-index: 40;
      display: flex !important;
      flex-direction: column;
      width: 100%;
      height: 100%;
      height: 100dvh;
      margin: 0;
      padding: 0;
      background: #100c09;
    }

    body.is-fullread .reader .wrap,
    .reader:fullscreen .wrap {
      width: 100%;
      max-width: none;
      height: 100%;
      margin: 0;
      display: flex;
      flex-direction: column;
      min-height: 0;
    }

    body.is-fullread .reader-bar,
    .reader:fullscreen .reader-bar { display: none !important; }

    body.is-fullread .reader-status:empty,
    .reader:fullscreen .reader-status:empty { display: none !important; }

    body.is-fullread .reader-stage,
    .reader:fullscreen .reader-stage {
      flex: 1 1 auto;
      min-height: 0;
      align-items: center;
      justify-content: center;
      overflow: hidden;
      padding: 8px 0 0;
    }

    body.is-fullread .reader-stage.is-zoomed,
    .reader:fullscreen .reader-stage.is-zoomed {
      align-items: flex-start;
      justify-content: flex-start;
      overflow: auto;
      -webkit-overflow-scrolling: touch;
      touch-action: pan-x pan-y;
    }

    body.is-fullread .full-bar,
    .reader:fullscreen .full-bar { display: flex; }

    body.is-fullread .page-turn,
    .reader:fullscreen .page-turn {
      display: grid;
      place-items: center;
      position: absolute;
      top: 50%;
      z-index: 2;
      width: 46px;
      height: 72px;
      margin-top: -36px;
      border: 1px solid rgba(226, 181, 106, 0.4);
      border-radius: 999px;
      background: rgba(16, 12, 9, 0.72);
      color: var(--cream);
      font: inherit;
      font-size: 1.8rem;
      line-height: 1;
      cursor: pointer;
      touch-action: manipulation;
    }

    body.is-fullread .page-turn:disabled,
    .reader:fullscreen .page-turn:disabled { opacity: 0.3; cursor: default; }

    body.is-fullread .page-turn-prev,
    .reader:fullscreen .page-turn-prev { left: 8px; }

    body.is-fullread .page-turn-next,
    .reader:fullscreen .page-turn-next { right: 8px; }

    @media (max-width: 700px) {
      body.is-fullread .page-turn,
      .reader:fullscreen .page-turn { display: none; }

      body.is-fullread .full-bar,
      .reader:fullscreen .full-bar {
        display: grid;
        grid-template-columns: auto 1fr auto;
        grid-template-areas:
          "exit . zoom"
          "prev label next";
        align-items: center;
        column-gap: 8px;
        row-gap: 8px;
      }

      body.is-fullread #full-exit,
      .reader:fullscreen #full-exit { grid-area: exit; }

      body.is-fullread .full-zoom,
      .reader:fullscreen .full-zoom { grid-area: zoom; justify-self: end; }

      body.is-fullread #full-prev,
      .reader:fullscreen #full-prev { grid-area: prev; }

      body.is-fullread #full-label,
      .reader:fullscreen #full-label {
        grid-area: label;
        text-align: center;
      }

      body.is-fullread #full-next,
      .reader:fullscreen #full-next { grid-area: next; justify-self: end; }
    }

    body.is-fullread .reader-frame,
    .reader:fullscreen .reader-frame {
      width: 100%;
      height: 100%;
    }

    .reader[hidden],
    .reader[hidden]:fullscreen { display: none !important; }

    .reader-stage canvas {
      background: #fff;
      box-shadow: var(--shadow);
    }

    .reader-frame {
      width: min(900px, 100%);
      height: min(80vh, 1100px);
      border: 0;
      background: #fff;
      box-shadow: var(--shadow);
    }

    .fb2-page {
      box-sizing: border-box;
      width: min(100%, 42rem);
      margin: 0 auto;
      padding: 1.15rem 1.25rem 1.4rem;
      overflow: auto;
      color: var(--ink);
      background: #f7f1e4;
      box-shadow: var(--shadow);
      font-family: var(--serif);
      font-size: calc(1.15rem * var(--fb2-zoom, 1));
      line-height: 1.45;
      touch-action: pan-y;
    }

    .fb2-page h1,
    .fb2-page h2 {
      margin: 0.2em 0 0.45em;
      font-weight: 600;
      line-height: 1.15;
    }

    .fb2-page h1 { font-size: 1.7em; }

    .fb2-page h2 { font-size: 1.35em; }

    .fb2-page p { margin: 0 0 0.65em; }

    .fb2-page .verse { margin: 0 0 0.85em; }

    .fb2-page .by {
      margin: 0 0 0.9em;
      color: var(--ink-soft);
      font-style: italic;
    }

    .fb2-page .gap { height: 0.75em; }

    .fb2-page blockquote {
      margin: 0 0 0.85em;
      padding-left: 0.9em;
      border-left: 2px solid rgba(169, 120, 50, 0.45);
    }

    .fb2-page blockquote p:last-child { margin-bottom: 0; }

    .fb2-page img {
      display: block;
      max-width: 100%;
      height: auto;
      margin: 0 auto 0.8em;
    }

    .fb2-probe {
      position: absolute !important;
      height: auto !important;
      max-height: none !important;
      overflow: visible !important;
      visibility: hidden;
      pointer-events: none;
    }

    .fb2-probe img {
      width: 100%;
      height: 220px;
      object-fit: contain;
    }

    body.is-fb2:not(.is-fullread) .reader-stage {
      height: calc(100dvh - var(--header-offset, 72px) - 150px);
      min-height: 280px;
    }

    body.is-fb2 .fb2-page {
      height: 100%;
      max-height: 100%;
    }

    @media (min-width: 860px) {
      .book-grid { grid-template-columns: repeat(auto-fit, minmax(420px, 1fr)); }
    }

    @media (prefers-reduced-motion: reduce) {
      html { scroll-behavior: auto; }
      .news-list article { transform: none !important; }
      .cta { transition: none; }
    }

    .nav a[aria-current="page"] {
      color: var(--cream);
      box-shadow: inset 0 -1px 0 var(--gold);
    }

    .paper.guide-top { margin-bottom: 28px; }

    .paper.sheet { width: min(980px, calc(100% - 32px)); }

    .filters {
      border: 0;
      margin: 0 0 18px;
      padding: 0;
      min-width: 0;
    }

    .filters legend {
      margin-bottom: 8px;
      padding: 0;
      font-size: 0.78rem;
      font-weight: 700;
      letter-spacing: 0.14em;
      text-transform: uppercase;
      color: var(--gold-deep);
    }

    .filter-row {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
    }

    .filter-row button {
      font: inherit;
      font-size: 0.92rem;
      font-weight: 700;
      color: var(--ink);
      background: rgba(255, 255, 255, 0.35);
      border: 1px solid rgba(169, 120, 50, 0.45);
      border-radius: 999px;
      padding: 8px 12px;
      cursor: pointer;
    }

    .filter-row button:hover:not(:disabled):not([aria-pressed="true"]) {
      border-color: var(--gold-deep);
    }

    .filter-row button[aria-pressed="true"] {
      color: #2a1608;
      background: linear-gradient(180deg, #f0c56e, #c48a2e);
      border-color: transparent;
    }

    .filter-row button:disabled {
      opacity: 0.35;
      cursor: default;
    }

    .filter-status {
      margin: 0 0 12px;
      color: var(--ink-soft);
      font-size: 0.92rem;
    }

    .gear-empty { color: var(--gold-deep); }

    .gear th,
    .gear td {
      border-bottom: 0;
      padding-right: 18px;
      vertical-align: top;
    }

    .gear tbody tr { border-bottom: 1px solid rgba(90, 60, 30, 0.16); }

    .gear thead th { border-bottom: 1px solid rgba(90, 60, 30, 0.28); }

    .gear th[scope="row"] {
      font-size: 1.35rem;
      line-height: 1.2;
    }

    .gear .group-row th {
      padding-top: 22px;
      padding-bottom: 4px;
      border-bottom: 0;
      font-size: 1.7rem;
      color: var(--gold-deep);
    }

    .gear .group-row { border-bottom: 0; }

    .gear td {
      font-family: var(--serif);
      font-size: 1.25rem;
      font-weight: 600;
      line-height: 1.35;
    }

    .gear ol {
      margin: 0;
      padding-left: 1.2rem;
    }

    .gear li + li { margin-top: 3px; }

    .gear .fine {
      margin: 8px 0 0;
      font-family: var(--sans);
      font-size: 0.92rem;
      font-weight: 600;
      line-height: 1.45;
      color: var(--ink-soft);
    }

    .table-note {
      margin-top: 16px;
      color: var(--ink-soft);
    }

    .gear tr.is-out { display: none !important; }

    @media (max-width: 700px) {
      .gear thead {
        position: absolute;
        width: 1px;
        height: 1px;
        padding: 0;
        margin: -1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
        border: 0;
      }

      .gear,
      .gear tbody,
      .gear tr,
      .gear th,
      .gear td { display: block; width: auto; }

      .gear th[scope="row"] {
        font-size: 1.55rem;
        padding-bottom: 6px;
      }

      .gear td { padding-top: 0; }

      .gear td::before {
        content: attr(data-label);
        display: block;
        margin-bottom: 2px;
        font-family: var(--serif);
        font-size: 1.05rem;
        font-weight: 600;
        color: var(--gold-deep);
      }
    }

    .route-sub { max-width: 46rem; }

    .route-rules { margin-bottom: 8px; }

    .route-rules article { transform: none; }

    .route-rest {
      display: grid;
      gap: 22px 36px;
      margin-top: 22px;
    }

    .route-rest h3 {
      margin: 0 0 6px;
      color: var(--gold);
      font-size: 1.85rem;
    }

    .route-rest p {
      margin: 0;
      max-width: 40rem;
      color: var(--cream-dim);
    }

    .route-levelbar {
      position: sticky;
      top: var(--header-offset, 72px);
      z-index: 5;
      margin-bottom: 16px;
      padding: 14px 14px 12px;
      background: rgba(16, 12, 9, 0.94);
      border: 1px solid var(--line);
      backdrop-filter: blur(14px);
    }

    .route-readout {
      margin: 0 0 8px;
      font-family: var(--serif);
      font-size: clamp(1.6rem, 3vw, 2.1rem);
      line-height: 1.1;
      color: var(--gold);
    }

    .route-range {
      width: 100%;
      margin: 0 0 12px;
      accent-color: var(--gold);
      cursor: pointer;
    }

    .route-tabs {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
      margin: 0 0 16px;
    }

    .route-tabs button[aria-selected="true"] {
      color: #2a1608;
      background: linear-gradient(180deg, #f0c56e, #c48a2e);
      border-color: transparent;
    }

    .route-pathhead {
      display: flex;
      flex-wrap: wrap;
      align-items: flex-start;
      justify-content: space-between;
      gap: 12px;
      margin-bottom: 16px;
    }

    .route-chips {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
      flex: 1 1 280px;
    }

    .route-chip {
      font: inherit;
      font-size: 0.92rem;
      font-weight: 700;
      color: var(--cream);
      background: transparent;
      border: 1px solid var(--line);
      border-radius: 999px;
      padding: 8px 12px;
      cursor: pointer;
    }

    .route-chip:hover { border-color: var(--gold); color: var(--gold); }

    .route-chip[aria-pressed="true"] {
      color: #2a1608;
      background: linear-gradient(180deg, #f0c56e, #c48a2e);
      border-color: transparent;
    }

    .route-chip.is-done:not([aria-pressed="true"]) { color: var(--gold); }

    .route-stack { display: grid; gap: 16px; }

    .route-card {
      position: relative;
      margin: 0;
      padding: 26px 22px 20px;
      scroll-margin-top: 320px;
      background: linear-gradient(180deg, #f8f1de, #efe1c4);
      color: var(--ink);
      box-shadow: 0 16px 36px rgba(0, 0, 0, 0.28);
    }

    .route-card + .route-card { margin-top: 16px; }

    .route-stack .route-card + .route-card { margin-top: 0; }

    .route-card.is-current { box-shadow: 0 0 0 2px var(--gold-deep), 0 16px 36px rgba(0, 0, 0, 0.28); }

    .route-card.is-done { opacity: 0.72; }

    .route-card h2 {
      margin: 0 0 8px;
      color: var(--ink);
      font-size: clamp(1.8rem, 3vw, 2.4rem);
    }

    .route-kicker {
      margin: 0 0 6px;
      font-size: 0.78rem;
      font-weight: 700;
      letter-spacing: 0.12em;
      text-transform: uppercase;
      color: var(--gold-deep);
    }

    .route-lead { margin: 0 0 8px; }

    .route-label {
      margin: 16px 0 4px;
      font-family: var(--sans);
      font-size: 0.78rem;
      font-weight: 700;
      letter-spacing: 0.14em;
      text-transform: uppercase;
      color: var(--gold-deep);
    }

    .route-card p { margin: 0 0 10px; }

    .route-card .steps li { margin: 10px 0; }

    .route-stat { margin: 0 0 6px; color: var(--ink-soft); }

    .route-stat.is-on { color: var(--ink); font-weight: 800; }

    .route-verify {
      display: inline-block;
      margin-left: 8px;
      padding: 1px 8px;
      border-radius: 999px;
      background: rgba(169, 120, 50, 0.18);
      color: var(--gold-deep);
      font-family: var(--sans);
      font-size: 0.78rem;
      font-weight: 800;
      letter-spacing: 0.04em;
      vertical-align: 2px;
    }

    .route-check {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      margin: 0 0 12px;
      font-weight: 800;
      cursor: pointer;
    }

    .route-check input { width: 1.1rem; height: 1.1rem; accent-color: var(--gold-deep); }

    .route-actions { margin-top: 8px; }

    .route-macro {
      margin: 0 0 16px;
      padding: 12px 14px;
      overflow-x: auto;
      color: var(--cream);
      background: #1a140f;
      border-radius: 10px;
      font-family: ui-monospace, "Cascadia Code", "Segoe UI Mono", monospace;
      font-size: 0.92rem;
      line-height: 1.45;
      white-space: pre;
    }

    .route-talent {
      padding: 12px 0;
      border-top: 1px solid rgba(90, 60, 30, 0.16);
    }

    .route-talent h3 {
      margin: 0 0 4px;
      font-size: 1.45rem;
    }

    .route-talent p { margin: 0; color: var(--ink-soft); }

    .priest-stack { display: grid; gap: 16px; }

    .priest-stack .route-card + .route-card { margin-top: 0; }

    @media (min-width: 860px) {
      .route-rest { grid-template-columns: 1fr 1fr; }
    }

    @media (max-width: 700px) {
      .route-levelbar { padding: 10px; }
      .route-readout { margin-bottom: 4px; font-size: 1.45rem; }
      .route-levelbar .filter-row button,
      .route-tabs button { padding: 6px 10px; }
    }

    .class-back {
      display: inline-block;
      margin: 0 0 8px;
      color: var(--gold);
      font-weight: 700;
    }

    .route-switch {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
      margin: 0 0 16px;
    }

    .route-switch a {
      color: var(--cream);
      text-decoration: none;
      border: 1px solid rgba(201, 162, 74, 0.45);
      border-radius: 999px;
      padding: 4px 10px;
      font-size: 0.92rem;
    }

    .route-switch a[aria-current="page"] {
      color: var(--bg);
      background: var(--gold);
      border-color: var(--gold);
    }

    .class-grid {
      display: grid;
      gap: 18px;
      margin: 0;
      padding: 0 0 36px;
      list-style: none;
    }

    .class-card {
      display: flex;
      flex-direction: column;
      align-items: flex-start;
      gap: 8px;
      min-height: 100%;
      margin: 0;
      padding: 22px 22px 18px;
      color: var(--ink);
      background: linear-gradient(180deg, #f8f1de, #efe1c4);
      box-shadow: 0 16px 36px rgba(0, 0, 0, 0.28);
      text-decoration: none;
    }

    a.class-card:hover { filter: brightness(1.04); }

    .class-card .eyebrow { color: var(--gold-deep); }

    .class-card h2 {
      margin: 0;
      color: var(--ink);
      font-size: clamp(1.8rem, 3vw, 2.3rem);
    }

    .class-card p { margin: 0; }

    .class-card .class-note { color: var(--ink-soft); }

    .class-open {
      margin-top: auto;
      font-size: 0.82rem;
      font-weight: 800;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      color: var(--gold-deep);
    }

    @media (min-width: 700px) {
      .class-grid { grid-template-columns: repeat(2, 1fr); }
    }

    @media (min-width: 1000px) {
      .class-grid { grid-template-columns: repeat(4, 1fr); }
    }

    .media-block p,
    .players-block p {
      color: var(--ink-soft);
    }

    .paper.players-block {
      width: min(1080px, calc(100% - 32px));
      padding-left: 4%;
      padding-right: 4%;
    }

    .paper.media-block {
      overflow: hidden;
      max-width: min(760px, calc(100% - 32px));
    }

    .media-embed {
      position: relative;
      margin: 18px 0 10px;
      width: 100%;
      max-width: 100%;
      aspect-ratio: 16 / 9;
      overflow: hidden;
      background: #1a120d;
      box-shadow: inset 0 0 0 1px rgba(42, 29, 18, 0.18);
    }

    .media-embed iframe {
      position: absolute;
      inset: 0;
      display: block;
      width: 100%;
      height: 100%;
      max-width: 100%;
      border: 0;
    }

    .media-link {
      margin: 0;
      font-size: 0.95rem;
    }

    .media-link a {
      color: var(--gold-deep);
      text-decoration: underline;
      text-underline-offset: 3px;
    }

    .media-gallery {
      list-style: none;
      margin: 18px 0 0;
      padding: 0;
      display: grid;
      gap: 14px;
      grid-template-columns: minmax(0, 1fr);
      width: 100%;
      max-width: 100%;
    }

    .media-gallery > li {
      min-width: 0;
      max-width: 100%;
      overflow: hidden;
    }

    .media-shot {
      display: block;
      width: 100%;
      max-width: 100%;
      margin: 0;
      padding: 0;
      border: 0;
      cursor: zoom-in;
      overflow: hidden;
      background: #1a120d;
      color: inherit;
    }

    .media-shot:focus-visible {
      outline: 2px solid var(--gold-deep);
      outline-offset: 3px;
    }

    .media-shot img {
      display: block;
      width: 100%;
      max-width: 100%;
      height: auto;
      aspect-ratio: 16 / 9;
      object-fit: cover;
      transition: transform 180ms ease, filter 180ms ease;
    }

    .media-shot:hover img {
      transform: scale(1.02);
      filter: brightness(1.05);
    }

    @media (min-width: 700px) {
      .media-gallery {
        grid-template-columns: repeat(2, minmax(0, 1fr));
      }
    }

    .media-lightbox {
      padding: 0;
      border: 0;
      width: min(1100px, calc(100vw - 24px));
      max-width: calc(100vw - 24px);
      max-height: calc(100vh - 24px);
      background: transparent;
      color: var(--cream);
    }

    .media-lightbox::backdrop {
      background: rgba(8, 6, 4, 0.86);
    }

    .media-lightbox[open] {
      display: grid;
      grid-template-columns: auto minmax(0, 1fr) auto;
      grid-template-rows: auto minmax(0, 1fr);
      align-items: center;
      gap: 8px 10px;
    }

    .media-lightbox-bar {
      grid-column: 1 / -1;
      display: flex;
      justify-content: flex-end;
      margin: 0;
    }

    .media-lightbox-close,
    .media-lightbox-nav {
      appearance: none;
      border: 1px solid rgba(226, 181, 106, 0.4);
      background: rgba(16, 12, 9, 0.92);
      color: var(--cream);
      font: inherit;
      cursor: pointer;
    }

    .media-lightbox-close {
      padding: 8px 14px;
      border-radius: 999px;
      font-weight: 700;
    }

    .media-lightbox-nav {
      width: 44px;
      height: 44px;
      border-radius: 999px;
      font-size: 1.6rem;
      line-height: 1;
    }

    .media-lightbox-close:hover,
    .media-lightbox-nav:hover {
      border-color: var(--gold);
      color: var(--gold);
    }

    .media-lightbox img {
      display: block;
      grid-column: 2;
      width: 100%;
      max-width: 100%;
      max-height: calc(100vh - 96px);
      height: auto;
      object-fit: contain;
      background: #100c09;
      box-shadow: 0 18px 48px rgba(0, 0, 0, 0.45);
    }

    @media (max-width: 700px) {
      .media-lightbox-nav { display: none; }
      .media-lightbox[open] {
        grid-template-columns: minmax(0, 1fr);
      }
      .media-lightbox img { grid-column: 1; }
    }

    .players-note {
      margin-top: 12px;
      padding: 10px 12px;
      background: rgba(226, 181, 106, 0.14);
      color: var(--ink);
    }

    .players-note code {
      font-family: ui-monospace, "Cascadia Mono", Consolas, monospace;
      font-size: 0.9em;
    }

    .players-filter {
      margin: 8px 0 4px;
    }

    .players-filter label {
      display: block;
      margin-bottom: 8px;
      font-family: var(--serif);
      font-size: 1.45rem;
      color: var(--ink);
    }

    .players-filter input[type="search"] {
      display: block;
      width: min(100%, 360px);
      padding: 12px 14px;
      font: inherit;
      color: var(--ink);
      background: rgba(255, 255, 255, 0.55);
      border: 1px solid rgba(169, 120, 50, 0.45);
      border-radius: 10px;
    }

    .players-filter-status,
    .players-filter-empty {
      margin: 10px 0 0;
      color: var(--ink-soft);
      font-size: 0.95rem;
    }

    .players-table-wrap {
      margin-top: 16px;
      overflow-x: auto;
      -webkit-overflow-scrolling: touch;
    }

    .players-table th,
    .players-table td {
      padding-right: 14px;
    }

    .players-table th[scope="row"] {
      white-space: nowrap;
      min-width: 12rem;
    }

    .players-table th[scope="row"] a {
      color: #6d3d12;
      text-underline-offset: 3px;
    }

    .players-table th[scope="row"] a:hover {
      color: #3d220c;
    }

    .players-table tbody tr[hidden] {
      display: none !important;
    }

    .hero .kicker a {
      color: inherit;
      text-decoration: none;
    }

    .hero .kicker a:hover {
      color: var(--gold);
    }

    .paper.players-block.char-sheet {
      padding: 84px 36px 48px;
    }

    .char-back {
      margin: 0 0 18px;
    }

    .char-doll {
      display: grid;
      grid-template-columns: minmax(0, 1fr) minmax(260px, 340px) minmax(0, 1fr);
      grid-template-areas:
        "left stage right"
        ". weapons .";
      column-gap: 28px;
      row-gap: 0;
      align-items: stretch;
      margin-top: 4px;
    }

    .char-slots-left { grid-area: left; align-self: start; }
    .char-slots-right { grid-area: right; align-self: start; }

    .char-portrait {
      grid-area: stage;
      position: relative;
      align-self: stretch;
      min-height: 560px;
      background: #24180f center center / cover no-repeat;
      box-shadow: inset 0 0 0 1px rgba(42, 29, 18, 0.25);
      overflow: hidden;
    }

    .char-portrait .char-model {
      position: absolute;
      left: 50%;
      top: 54%;
      width: 1320px;
      height: 990px;
      max-width: none;
      transform: translate(-50%, -56%) scale(0.75);
    }

    .char-portrait img.char-avatar-fallback {
      position: absolute;
      left: 50%;
      top: 42%;
      width: 168px;
      height: 168px;
      transform: translate(-50%, -50%);
      object-fit: cover;
    }

    .char-ilvl {
      position: absolute;
      z-index: 1;
      left: 0;
      right: 0;
      bottom: 0;
      display: flex;
      justify-content: space-between;
      align-items: baseline;
      gap: 8px;
      margin: 0;
      padding: 28px 12px 10px;
      background: linear-gradient(180deg, transparent, rgba(16, 12, 9, 0.88) 58%);
      color: var(--cream);
      font-size: 0.86rem;
    }

    .char-ilvl strong {
      font-family: var(--serif);
      font-size: 1.35rem;
      line-height: 1;
      color: var(--gold);
    }

    .char-slots {
      list-style: none;
      margin: 0;
      padding: 0;
      display: flex;
      flex-direction: column;
    }

    .char-weapons {
      grid-area: weapons;
      margin-top: 12px;
      padding-top: 4px;
    }

    .char-slot {
      display: block;
      min-height: 0;
      padding: 0;
      border-bottom: 1px solid rgba(90, 60, 30, 0.12);
    }

    .char-slot.is-empty,
    a.char-slot-link {
      display: grid;
      grid-template-columns: 44px minmax(0, 1fr);
      gap: 10px;
      align-items: center;
      min-height: 58px;
      padding: 7px 0;
    }

    .paper a.char-slot-link {
      color: inherit;
      text-decoration: none;
    }

    .paper a.char-slot-link:hover strong {
      text-decoration: underline;
      text-underline-offset: 2px;
    }

    .char-slots .char-slot:first-child {
      border-top: 1px solid rgba(90, 60, 30, 0.12);
    }

    .char-slot-icon {
      width: 44px;
      height: 44px;
      background: rgba(42, 29, 18, 0.12);
      box-shadow: inset 0 0 0 1px rgba(42, 29, 18, 0.2);
    }

    .char-slot-icon img {
      display: block;
      width: 44px;
      height: 44px;
    }

    .char-slot-copy {
      display: flex;
      flex-direction: column;
      min-width: 0;
      line-height: 1.25;
    }

    .char-slot-copy em {
      font-style: normal;
      font-size: 0.72rem;
      letter-spacing: 0.06em;
      text-transform: uppercase;
      color: var(--ink-soft);
    }

    .char-slot-copy strong {
      display: -webkit-box;
      -webkit-box-orient: vertical;
      -webkit-line-clamp: 2;
      overflow: hidden;
      font-size: 0.95rem;
      line-height: 1.2;
      overflow-wrap: break-word;
    }

    .char-slot-copy span {
      color: var(--ink-soft);
      font-size: 0.82rem;
      font-weight: 650;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    .char-slot.is-empty .char-slot-copy span {
      font-weight: 600;
    }

    .char-slot.is-head-empty {
      cursor: help;
    }

    .head-joke-tip {
      position: fixed;
      z-index: 40;
      left: 0;
      top: 0;
      max-width: min(320px, calc(100vw - 16px));
      padding: 8px 10px 8px 9px;
      border: 1px solid #5a6578;
      background-color: #070c18;
      background-image: url("https://wow.zamimg.com/images/wow/tooltip.png");
      background-repeat: no-repeat;
      box-shadow: 0 0 0 1px #000, 0 4px 14px rgba(0, 0, 0, 0.55);
      color: #fff;
      font-family: Verdana, "Open Sans", Arial, "Helvetica Neue", Helvetica, sans-serif;
      font-size: 12px;
      line-height: 17px;
      text-align: left;
      pointer-events: none;
    }

    .head-joke-tip b {
      display: block;
      color: #fff;
      font-size: 14px;
      font-weight: normal;
      line-height: 19px;
    }

    .head-joke-tip .head-joke-slot {
      display: block;
      color: #fff;
    }

    .head-joke-tip .q {
      display: block;
      margin-top: 8px;
      color: #ffd100;
    }

    .q-poor .char-slot-copy strong { color: #6b645b; }
    .q-common .char-slot-copy strong { color: var(--ink); }
    .q-uncommon .char-slot-copy strong { color: #1a7f32; }
    .q-rare .char-slot-copy strong { color: #1a56b0; }
    .q-epic .char-slot-copy strong { color: #7a3e9d; }
    .q-legendary .char-slot-copy strong { color: #a15c00; }
    .q-artifact .char-slot-copy strong { color: #a14600; }
    .q-heirloom .char-slot-copy strong { color: #0e7c86; }

    .q-poor .char-slot-icon { box-shadow: inset 0 0 0 2px #9a9288; }
    .q-common .char-slot-icon { box-shadow: inset 0 0 0 2px #5c4a36; }
    .q-uncommon .char-slot-icon { box-shadow: inset 0 0 0 2px #1a7f32; }
    .q-rare .char-slot-icon { box-shadow: inset 0 0 0 2px #1a56b0; }
    .q-epic .char-slot-icon { box-shadow: inset 0 0 0 2px #7a3e9d; }
    .q-legendary .char-slot-icon { box-shadow: inset 0 0 0 2px #a15c00; }
    .q-artifact .char-slot-icon { box-shadow: inset 0 0 0 2px #a14600; }
    .q-heirloom .char-slot-icon { box-shadow: inset 0 0 0 2px #0e7c86; }

    .char-refresh {
      margin: 0 0 16px;
      color: var(--ink-soft);
      font-size: 0.95rem;
    }

    .char-refresh.is-loading::before {
      content: "";
      display: inline-block;
      width: 0.55em;
      height: 0.55em;
      margin-right: 0.5em;
      border-radius: 50%;
      background: var(--gold-deep);
      vertical-align: 0.05em;
      animation: char-refresh-pulse 1s ease-in-out infinite;
    }

    @keyframes char-refresh-pulse {
      0%, 100% { opacity: 0.35; }
      50% { opacity: 1; }
    }

    @media (prefers-reduced-motion: reduce) {
      .char-refresh.is-loading::before { animation: none; opacity: 1; }
    }

    .char-source {
      margin-top: 18px;
      color: var(--ink-soft);
      font-size: 0.95rem;
    }

    .paper.char-sheet h2 {
      margin: 28px 0 12px;
    }

    .char-stat-grid {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 8px 36px;
    }

    .char-stat-grid h3 {
      margin-bottom: 4px;
    }

    .char-stats {
      margin: 0;
    }

    .char-stats div {
      display: flex;
      justify-content: space-between;
      gap: 12px;
      padding: 6px 0;
      border-top: 1px solid rgba(90, 60, 30, 0.14);
    }

    .char-stats dt {
      color: var(--ink-soft);
    }

    .char-stats dd {
      margin: 0;
      font-weight: 800;
      font-variant-numeric: tabular-nums;
    }

    .char-profs,
    .char-talents {
      list-style: none;
      margin: 0;
      padding: 0;
    }

    .char-profs {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 10px 18px;
    }

    .char-profs li,
    .char-talents li,
    .char-tree summary {
      display: flex;
      align-items: center;
      gap: 10px;
    }

    .char-profs img,
    .char-talents img,
    .char-tree summary img {
      width: 36px;
      height: 36px;
      box-shadow: inset 0 0 0 1px rgba(42, 29, 18, 0.25);
    }

    .char-tree summary img,
    .char-talents img {
      width: 28px;
      height: 28px;
    }

    .char-profs span,
    .char-talents span {
      flex: 1;
      min-width: 0;
    }

    .char-tree {
      margin: 0 0 10px;
      border-top: 1px solid rgba(90, 60, 30, 0.14);
      padding-top: 8px;
    }

    .char-tree summary {
      cursor: pointer;
      font-family: var(--serif);
      font-size: 1.45rem;
      font-weight: 600;
    }

    .char-tree summary span,
    .char-talents strong,
    .char-profs strong {
      margin-left: auto;
      font-variant-numeric: tabular-nums;
    }

    .char-talents li {
      padding: 6px 0 6px 8px;
    }

    a.char-talent-link {
      display: flex;
      align-items: center;
      gap: 10px;
      flex: 1;
      min-width: 0;
      color: inherit;
      text-decoration: none;
    }

    .paper a.char-talent-link:hover span {
      text-decoration: underline;
      text-underline-offset: 2px;
    }

    .char-history {
      display: grid;
      grid-template-columns: minmax(220px, 0.8fr) minmax(0, 1.2fr);
      gap: 8px 48px;
    }

    .char-history h3 {
      margin-bottom: 8px;
    }

    .char-history-note {
      margin: 0 0 12px;
      color: var(--ink-soft);
    }

    .char-history-list {
      list-style: none;
      margin: 0;
      padding: 0;
    }

    .char-history-list li {
      display: flex;
      align-items: baseline;
      gap: 14px;
      padding: 7px 0;
      border-top: 1px solid rgba(90, 60, 30, 0.12);
      line-height: 1.35;
    }

    .char-history-list time {
      flex: 0 0 6.5rem;
      color: var(--ink-soft);
      font-variant-numeric: tabular-nums;
    }

    .paper a.char-history-item {
      text-decoration: none;
    }

    .paper a.char-history-item:hover {
      text-decoration: underline;
      text-underline-offset: 2px;
    }

    a.char-history-item.q-poor { color: #6b645b; }
    a.char-history-item.q-common,
    span.char-history-item.q-common { color: var(--ink); }
    a.char-history-item.q-uncommon { color: #1a7f32; }
    a.char-history-item.q-rare { color: #1a56b0; }
    a.char-history-item.q-epic { color: #7a3e9d; }
    a.char-history-item.q-legendary { color: #a15c00; }
    a.char-history-item.q-artifact { color: #a14600; }
    a.char-history-item.q-heirloom { color: #0e7c86; }

    .char-pages {
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      gap: 4px 2px;
      margin-top: 12px;
    }

    .paper .char-pages a,
    .char-pages span {
      min-width: 1.7rem;
      padding: 2px 6px;
      color: var(--ink-soft);
      font-size: 0.82rem;
      line-height: 1.4;
      text-align: center;
      text-decoration: none;
    }

    .paper .char-pages a:hover,
    .paper .char-pages a.is-current {
      color: var(--ink);
      text-decoration: underline;
      text-underline-offset: 2px;
    }

    @media (max-width: 860px) {
      .paper.players-block.char-sheet {
        padding: 84px 22px 40px;
      }

      .char-doll {
        grid-template-columns: 1fr;
        grid-template-areas:
          "stage"
          "weapons"
          "left"
          "right";
        row-gap: 16px;
      }

      .char-portrait {
        min-height: 480px;
        height: 480px;
      }

      .char-portrait .char-model {
        top: 51%;
        width: 1080px;
        height: 810px;
      }

      .char-stat-grid,
      .char-profs,
      .char-history {
        grid-template-columns: 1fr;
      }
    }
