/* Bibliothèque Manga : l'hebdo japonais et le tankôbon. Noir et blanc, trames, traits de vitesse, cases découpées et une
   seule couleur, le rouge du tampon. Le site est sur papier blanc ; le lecteur passe au noir, pour ne voir que les pages.
   Tout passe par les variables d'app.css, sauf le bandeau de manga.js. */
@font-face { font-family: "Dela Gothic One"; src: url("fonts/dela-gothic-one-latin-400.woff2") format("woff2"); font-display: swap; }

body[data-library="manga"], .library-card[href="#/manga"] {
  --ink: #0e0e10;
  --bg: #f5f3ee;
  --surface: #fff;
  --surface-2: #e9e6df;
  --border: #0e0e10;
  --text: #0e0e10;
  --text-2: #56565e;
  --accent: #d7201f;
  --accent-text: #fff;
  --danger: #b3131a;
  --logo: #0e0e10;
  --shadow: 0 0 0 2px #0e0e10;
  --shadow-cover: 0 0 0 1.5px #0e0e10;
  --radius: 0px;
  --title: "Dela Gothic One", "Arial Black", var(--sans);
  --speech: "Comic Neue", "Comic Sans MS", var(--sans); /* déclarée dans comics.css */
  --jp: "Hiragino Mincho ProN", "Yu Mincho", "Noto Serif CJK JP", "IPAexMincho", serif;
  --tone: radial-gradient(circle, #0e0e10 1px, transparent 1.2px) 0 0 / 6px 6px;
  color: var(--text);
  color-scheme: light;
}
html:has(body[data-library="manga"]) { background: #f5f3ee; color-scheme: light; }

body[data-library="manga"] {
  background: none;

  /* Une trame qui monte du bas de la page */
  &::before { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; background: var(--tone); opacity: 0.32; mask-image: linear-gradient(to top left, #000, transparent 30%); }
  #theme-toggle { display: none; }

  :is(h1, h2, h3, .tabs button, .choice strong, .dice-verdict, .grimoire-label, .hero-side h2) { font-family: var(--title); font-weight: 400; letter-spacing: 0; }
  h1 { line-height: 1.15; }

  /* Boutons et champs : un trait net, qui s'inverse */
  :is(button, .button, input, select) { border-radius: 0; }
  input, select { border: 1.5px solid var(--ink); background: #fff; }
  :is(.primary, .pill, .ghost, .danger) { border: 2px solid var(--ink); font: 400 0.84rem/1.4 var(--title); transition: none; }
  .primary { background: var(--ink); color: #fff; }
  .primary:hover:not(:disabled) { background: var(--accent); border-color: var(--accent); color: #fff; }
  :is(.ghost, .pill) { background: #fff; color: var(--ink); }
  :is(.ghost, .pill):hover:not(:disabled) { background: var(--ink); color: #fff; }
  .danger { color: var(--danger); }
  .iconbtn { border-radius: 0; color: var(--ink); }
  .iconbtn:hover { background: var(--ink); color: #fff; }

  /* Barre du haut : un bandeau noir */
  .topbar { background: var(--ink); backdrop-filter: none; border-bottom: 3px solid var(--accent); color: #fff; }
  .topbar .logo { background: #fff; }
  .brand-name { font: 400 1.02rem/1 var(--title); }
  .brand b { color: #fff; }
  .mainnav a { color: #b9b9c0; border-radius: 0; }
  .mainnav a:hover { color: #fff; }
  .mainnav a[aria-current] { background: #fff; color: var(--ink); }
  .libbtn { background: none; color: #fff; border: 1.5px solid #fff; border-radius: 0; font: 400 0.98rem/1 var(--title); }
  .libbtn:hover { background: #fff; color: var(--ink); }
  .libbtn:hover .logo { background: var(--ink); }

  /* Menu des bibliothèques : le même bandeau noir, debout */
  .shelf { background: var(--ink); color: #fff; border-right: 3px solid var(--accent); }
  .shelf .logo { background: #fff; }
  .shelf-brand b { color: #fff; }
  .shelf-brand { font: 400 1.02rem/1 var(--title); }
  .shelf-title { color: #8d8d96; }
  .shelf .iconbtn { color: #fff; }
  .shelf .iconbtn:hover { background: #fff; color: var(--ink); }
  :is(.shelf-lib, .shelf-item) { color: #b9b9c0; border-radius: 0; }
  :is(.shelf-lib, .shelf-item):hover { background: #fff; color: var(--ink); }
  .shelf-lib[aria-current] { background: var(--accent); color: #fff; }
  .shelf-lib[aria-current] .icon { color: #fff; }
  .shelf-sub { border-left: 1.5px solid #4a4a52; }
  .shelf-sub .shelf-item[aria-current] { color: #fff; box-shadow: inset 3px 0 var(--accent); }
  .shelf-count { color: inherit; opacity: 0.75; }
  .shelf-foot { border-top-color: #3a3a42; }
  .searchbox input { background: #fff; border-color: #fff; border-radius: 0; color: var(--ink); }
  .searchbox .icon { color: var(--ink); }
  .topbar .iconbtn { color: #fff; }
  .topbar .iconbtn:hover { background: #fff; color: var(--ink); }
  .avatar { background: var(--accent); color: #fff; border-radius: 0; }
  .menu { color: var(--ink); border: 2px solid var(--ink); border-radius: 0; }
  .menu :is(a, button) { border-radius: 0; }
  .topbar .chip { color: #d6d6db; border-radius: 0; }
  .topbar .chip .icon { color: #fff; }
  .topbar .chip:hover { background: #fff; color: var(--ink); }
  .topbar .chip:hover .icon { color: var(--ink); }
  .topbar .chip:is([aria-current="true"], [aria-pressed="true"]) { background: var(--accent); border-color: var(--accent); color: #fff; }
  .filter-chips .chip { border: 1.5px solid var(--ink); border-radius: 0; background: #fff; color: var(--ink); }
  .filter-chips .chip .icon { color: var(--ink); }
  .filter-chips .chip:hover { background: var(--ink); color: #fff; }
  .filter-chips .chip:hover .icon { color: #fff; }
  .filter-chips .chip:is([aria-current="true"], [aria-pressed="true"]) { background: var(--accent); border-color: var(--accent); color: #fff; }
  .filter-chips .chip:is([aria-current="true"], [aria-pressed="true"]) .icon { color: #fff; }

  /* Têtes de section : une languette noire, coupée en biais */
  .section-head h2, .tabs button[aria-selected="true"] { display: inline-block; padding: 0.2rem 1.5rem 0.25rem 0.7rem; background: var(--ink); color: #fff; font-size: 1.08rem; clip-path: polygon(0 0, 100% 0, calc(100% - 12px) 100%, 0 100%); }
  .tabs { align-items: center; gap: 0.5rem; }
  .tabs button { padding: 0.2rem 0.6rem 0.25rem; font-size: 1.08rem; color: var(--text-2); }
  .tabs button[aria-selected="true"]::after { display: none; }
  .tabs button:hover:not([aria-selected="true"]) { color: var(--accent); }
  .see-all { color: var(--ink); font-weight: 700; }
  .see-all:hover { color: var(--accent); }

  /* Couvertures : des cases nettes */
  .cover { border-radius: 0; outline: 2px solid var(--ink); outline-offset: -1px; box-shadow: none; }
  .card:hover .cover { transform: translateY(-4px); box-shadow: 0 0 0 2px var(--accent); outline-color: var(--accent); }
  .eyebrow { font-weight: 600; }
  .eyebrow::before { border-radius: 0; }
  .card-title { font-weight: 700; }
  .badge { border-radius: 0; background: var(--accent); color: #fff; font-weight: 700; backdrop-filter: none; }
  :is(.bar, .cover-progress) { height: 6px; border-radius: 0; background: #fff; outline: 1.5px solid var(--ink); }
  :is(.bar, .cover-progress) > i { background: var(--accent); border-radius: 0; }
  .rail-arrow { border: 2px solid var(--ink); border-radius: 0; background: #fff; box-shadow: none; }
  .rail-arrow:hover { background: var(--ink); color: #fff; }

  /* Accueil : la case de reprise, sur traits de vitesse */
  .hero { border: 3px solid var(--ink); border-radius: 0; background: #fff; }
  .hero-art { display: none; }
  .hero::before { content: ""; position: absolute; inset: 0; background: repeating-conic-gradient(from 0deg at 13% 50%, var(--ink) 0 0.7deg, transparent 0.7deg 4.2deg); mask-image: radial-gradient(ellipse 34% 95% at 13% 50%, transparent 72%, #000 100%), linear-gradient(90deg, #000, transparent 56%); mask-composite: intersect; opacity: 0.85; }
  .hero-body h1 { font-size: clamp(1.5rem, 3vw, 2.3rem); line-height: 1.12; }
  .hero-cover .cover { outline-width: 3px; transform: rotate(-1.5deg); }
  .hero-side { background: #fff; }
  .hero-side h2 { font-size: 0.82rem; text-transform: none; letter-spacing: 0; color: var(--ink); }
  .hero-body > :not(h1) { color: var(--ink); }
  .welcome-die { color: var(--accent); }
  .welcome-die svg { stroke-width: 2.6; }

  /* Le tome du jour : la case noire */
  .grimoire { padding: 2rem; border: 0; background: var(--ink); color: #fff; clip-path: polygon(0 0, 100% 0, 100% calc(100% - 26px), calc(100% - 44px) 100%, 0 100%); }
  .grimoire h2 { font: 400 clamp(1.6rem, 3.6vw, 2.7rem)/1.14 var(--title); letter-spacing: 0; }
  .grimoire h2 a:hover { color: #ff5a55; }
  .grimoire-label { color: #ff5a55; font-size: 0.82rem; text-transform: none; letter-spacing: 0; }
  .grimoire .hero-sub, .grimoire-desc { font-family: var(--sans); color: #d6d6db; }
  .grimoire .primary { background: var(--accent); border-color: var(--accent); }
  .grimoire .primary:hover:not(:disabled) { background: #fff; border-color: #fff; color: var(--ink); }
  .grimoire .ghost { background: none; border-color: #fff; color: #fff; }
  .grimoire .ghost:hover:not(:disabled) { background: #fff; color: var(--ink); }
  .grimoire-cover .cover { outline: 3px solid #fff; transform: rotate(2deg); }

  /* Ce soir, on lit quoi ? */
  .choice { border: 2px solid var(--ink); border-radius: 0; background: #fff; }
  .choice strong { font-size: 0.86rem; }
  .choice:hover { background: var(--surface-2); }
  .choice[aria-selected="true"] { background: var(--ink); color: #fff; }
  .feature { border: 2px solid var(--ink); }
  .feature h3 { font-size: 0.92rem; line-height: 1.3; }
  .feature h3 a:hover, .game:hover strong { color: var(--accent); }

  /* L'omikuji : un tampon qu'on tire */
  .dice { position: relative; overflow: hidden; border: 3px solid var(--ink); border-radius: 0; background: #fff; }
  .dice::before { content: ""; position: absolute; inset: 0; background: var(--tone); opacity: 0.5; mask-image: linear-gradient(90deg, #000 6%, transparent 15%); }
  .dice > * { position: relative; }
  .d20 { width: 86px; height: 118px; background: var(--accent); color: #fff; box-shadow: 4px 4px 0 var(--ink); transform: rotate(-3deg); }
  .d20 .icon { display: none; }
  .d20-face { left: 50%; right: auto; top: 50%; width: 2.4rem; margin-left: -1.2rem; color: #fff; font: 700 2.1rem/1.15 var(--jp); text-align: center; white-space: normal; transform: translateY(-50%); }
  .d20:hover { transform: rotate(2deg) scale(1.05); }
  .d20.rolling { animation: mg-draw 0.75s ease-in-out; }
  .dice-verdict { color: var(--accent); font-size: 1.02rem; }

  /* Vide, ou rien trouvé */
  .empty { padding: 2.2rem 1rem; }
  .empty h1 { font-size: 1.5rem; }
  .empty-icon { width: 84px; height: 84px; color: var(--accent); }
  .empty-icon svg { stroke-width: 2.6; }
  .loading-die { color: var(--accent); }

  /* Explorateur */
  .explore-head h1 { font-size: 1.9rem; }
  .segmented { border: 2px solid var(--ink); border-radius: 0; }
  .segmented button { border-radius: 0; }
  .segmented button[aria-pressed="true"] { background: var(--ink); color: #fff; }
  .grid-heading { border-top: 2px solid var(--ink); }
  .table-wrap { border: 2px solid var(--ink); border-radius: 0; }
  .list th { font-weight: 700; color: var(--ink); }
  .list td, .list th { border-color: rgb(14 14 16 / 0.22); }
  .list .group-row th { background: var(--ink); color: #fff; }
  .dot { border-radius: 0; }

  /* Fiche et fenêtres */
  dialog { border: 3px solid var(--ink); border-radius: 0; }
  .sheet { border-width: 0 0 0 3px; border-radius: 0; }
  .sheet-hero { background: var(--tone), #fff; }
  .sheet-art { display: none; }
  .sheet-hero .cover { outline-width: 3px; }
  .sheet-main h2 { font-size: 1.25rem; line-height: 1.25; }
  .sheet-close { border: 2px solid var(--ink); background: #fff; }
  .facts { border-top: 2px solid var(--ink); }
  .sheet-keywords span { border-radius: 0; background: var(--surface-2); color: var(--ink); }
  .file:is(:hover, [aria-current="true"]) { border-color: var(--ink); border-radius: 0; }
  .upload { border: 2px solid var(--ink); border-radius: 0; }
  .drop-hint { border: 4px dashed var(--ink); border-radius: 0; font: 400 1.6rem var(--title); }
}
@keyframes mg-draw {
  0%, 100% { transform: rotate(-3deg); }
  25% { transform: rotate(-16deg) translateY(-6px); }
  50% { transform: rotate(13deg) translateY(4px); }
  75% { transform: rotate(-9deg) translateY(-3px); }
}

/* Bandeau de l'hebdo : titre massif sur traits de vitesse, tranche verticale et tampon */
.mg-mast { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 1.4rem; align-items: stretch; overflow: hidden; min-height: 190px; background: #fff; border: 3px solid var(--ink); clip-path: polygon(0 0, 100% 0, 100% 100%, 30px 100%, 0 calc(100% - 22px)); }
.mg-mast::before { content: ""; position: absolute; inset: 0; background: repeating-conic-gradient(from 0deg at 31% 50%, var(--ink) 0 0.8deg, transparent 0.8deg 3.6deg); mask-image: radial-gradient(ellipse 33% 90% at 31% 50%, transparent 80%, #000 100%); }
.mg-mast > * { position: relative; }
/* Du texte vertical sans writing-mode : un signe par ligne, pareil partout, quelle que soit la police du système. */
.mg-side { display: grid; align-content: center; width: 2.9rem; margin: 0; padding: 0.7rem 0.6rem; background: var(--ink); color: #fff; font: 700 1.55rem/1.2 var(--jp); text-align: center; }
.mg-head { display: grid; align-content: center; justify-items: start; gap: 0.35rem; padding: 0.9rem 0; min-width: 0; }
.mg-logo { display: flex; align-items: baseline; gap: 0.6rem; margin: 0; padding: 0 0.5rem; background: #fff; font: 400 clamp(2.5rem, 6.4vw, 4.6rem)/1.05 var(--title); color: var(--ink); }
.mg-logo small { font-size: 0.34em; color: var(--accent); }
.mg-teaser { margin: 0; padding: 0.1rem 0.6rem; background: var(--accent); color: #fff; font-weight: 700; font-size: 0.92rem; transform: skewX(-8deg); }
.mg-tally { margin: 0; padding: 0.1rem 0.6rem; background: var(--ink); color: #fff; font-weight: 600; font-size: 0.84rem; }
.mg-issue { display: grid; align-content: center; justify-items: center; gap: 0.5rem; padding: 0.8rem 1.2rem 0.8rem 0; color: var(--ink); font: 700 1rem/1 var(--jp); }
.mg-issue > span:last-child { padding: 0.2rem 0.5rem; background: #fff; }
.mg-hanko { display: grid; align-content: center; width: 72px; height: 78px; padding: 0 1.05rem; border: 3px solid var(--accent); border-radius: 6px; background: #fff; color: var(--accent); font: 700 1.7rem/1.08 var(--jp); text-align: center; transform: rotate(4deg); }

/* Carte sur la page de choix */
.library-card[href="#/manga"] { position: relative; overflow: hidden; border: 3px solid var(--ink); border-radius: 0; background: #fff; }
.library-card[href="#/manga"]::before { content: ""; position: absolute; inset: 0; background: repeating-conic-gradient(from 0deg at 34% 30%, var(--ink) 0 0.8deg, transparent 0.8deg 4.5deg); mask-image: radial-gradient(ellipse 52% 46% at 34% 30%, transparent 78%, #000 100%), linear-gradient(to bottom, #000 40%, transparent 62%); mask-composite: intersect; opacity: 0.85; }
.library-card[href="#/manga"] > * { position: relative; }
.library-card[href="#/manga"]:hover { transform: translateY(-3px); box-shadow: 0 0 0 3px var(--accent); }
.library-card[href="#/manga"] strong { font: 400 1.35rem/1.15 var(--title); }
.library-card[href="#/manga"] .library-count { color: var(--accent); font-weight: 700; }
.library-card[href="#/manga"] .library-empty { color: var(--accent); }
.library-card[href="#/manga"] .library-empty svg { stroke-width: 2.6; }
.library-card[href="#/manga"] .cover { border-radius: 0; outline: 2px solid var(--ink); outline-offset: -1px; box-shadow: none; }

@media (max-width: 760px) {
  body[data-library="manga"] {
    .grimoire { padding: 1.2rem; }
    .tabs button, .section-head h2, .tabs button[aria-selected="true"] { font-size: 0.92rem; }
    .hero::before { display: none; }
  }
  .mg-mast { grid-template-columns: auto minmax(0, 1fr); gap: 0.8rem; min-height: 0; }
  .mg-mast::before { background: repeating-conic-gradient(from 0deg at 54% 46%, var(--ink) 0 0.8deg, transparent 0.8deg 4.4deg); mask-image: radial-gradient(ellipse 56% 70% at 54% 46%, transparent 80%, #000 100%); }
  .mg-side { width: 2.1rem; padding: 0.5rem 0.45rem; font-size: 1.1rem; }
  .mg-head { padding: 0.7rem 0.7rem 0.9rem 0; }
  .mg-logo { flex-wrap: wrap; gap: 0 0.4rem; font-size: 2.3rem; }
  .mg-teaser { font-size: 0.82rem; }
  .mg-issue { display: none; }
}

/* Lecteur : du noir autour des pages, les notes sont des bulles tamponnées */
body[data-library="manga"].reading {
  --surface: #141416;
  --surface-2: #26262b;
  --border: #36363d;
  --text: #f5f3ee;
  --text-2: #a7a7ae;
  --logo: #fff;
  --shadow: 0 0 0 1.5px #36363d;
  --tone: radial-gradient(circle, #fff 1px, transparent 1.2px) 0 0 / 6px 6px;
  background: #000;
  color-scheme: dark;

  &::before { display: none; }
  input, select { background: var(--surface-2); border-color: var(--border); color: var(--text); }
  .iconbtn { color: var(--text-2); }
  .iconbtn:hover { background: #fff; color: var(--ink); }
  :is(.primary, .pill, .ghost, .danger) { background: var(--surface-2); border-color: var(--text-2); color: var(--text); }
  :is(.rd-stage, .rd-opening) { background: #000; }
  .rd-opening img { outline: 2px solid #fff; }
  .rd-opening p { font: 400 1rem var(--title); color: #fff; }
  .rd-top { border-bottom: 3px solid var(--accent); }
  .rd-title strong { font: 400 0.92rem/1.2 var(--title); }
  .rd-home:hover { color: #fff; }
  .rd-meter span { background: var(--accent); }
  .rd-tabs button[aria-pressed="true"] { background: #fff; color: var(--ink); }
  .thumb { border-radius: 0; }
  .thumb.current { border-color: var(--accent); }
  .pdfViewer .canvasWrapper { box-shadow: none; }
  :is(.rd-dock, .rd-tools, .rd-menu, .rd-bubble, .rd-editor) { border: 1.5px solid #fff; border-radius: 0; box-shadow: none; }
  .rd-dock .iconbtn[aria-pressed="true"] { background: var(--accent); color: #fff; }
  .rd-page { border-radius: 0; }
  .rd-zoom, .rd-tool { border-radius: 0; }
  .rd-tool[aria-pressed="true"] { background: var(--accent); color: #fff; }
  .rd-menu-row button { border-radius: 0; }
  .rd-menu-row button[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: #fff; }
  .rd-toast { background: #fff; color: var(--ink); border-radius: 0; font-weight: 700; }
  .rd-tip { border-radius: 0; }
  .mark-chip { border-radius: 0; }

  /* Le point : un petit tampon carré */
  .note-note { --seal: #d7201f; }
  .note-perso { --seal: #1c5fa8; }
  .note-arc { --seal: #2f7d5b; }
  .note-technique { --seal: #d9630b; }
  .note-replique { --seal: #7a4bb0; }
  .note-trad { --seal: #0f7f8c; }
  .note-secret { --seal: #17171a; }
  .pin { width: 13px; height: 13px; margin: -6.5px 0 0 -6.5px; border-radius: 2px; background: var(--seal); box-shadow: 0 0 0 2px #fff, 0 0 0 3px #0e0e10; transform: rotate(-6deg); }
  .pin:is(:hover, .lit) { transform: rotate(-6deg) scale(1.3); }
  .pin.small { width: 9px; height: 9px; margin: -4.5px 0 0 -2px; }

  /* La bulle : un ovale fin, avec le tampon du type dans le coin */
  .slip-threads path { fill: #fff; stroke: #0e0e10; stroke-width: 1.2; stroke-dasharray: none; stroke-linejoin: round; opacity: 0.85; }
  .slip-threads path.lit { opacity: 1; }
  .slip { --ink: #0e0e10; padding: 0.7rem 1.05rem 0.85rem; font: 700 0.88rem/1.3 var(--speech); transform: none; filter: drop-shadow(0 0 0 transparent); }
  .slip::before { background: #fff; border: 1.5px solid #0e0e10; border-radius: 30px 26px 32px 24px / 28px 32px 26px 30px; clip-path: none; }
  .slip[data-side="left"]::after, .slip[data-side="right"]::after { content: ""; position: absolute; top: 16px; width: 3px; height: 12px; background: #fff; }
  .slip[data-side="right"]::after { left: 0; }
  .slip[data-side="left"]::after { right: 0; }
  .slip:is(.lit, .writing) { filter: drop-shadow(0 0 0 transparent); }
  .slip:is(.lit, .writing)::before { border-color: var(--seal); box-shadow: 0 0 0 1.5px var(--seal); }
  .slip-seal { width: 27px; height: 27px; margin: -1.1rem 0 0 -1.35rem; border: 0; border-radius: 3px; background: var(--seal); color: #fff; box-shadow: 0 0 0 2px #fff; transform: rotate(-5deg); }
  .slip-name { color: var(--seal); font: 400 0.68rem/1.2 var(--title); letter-spacing: 0; text-transform: none; }
  .slip-quote { font: 700 0.74rem/1.3 var(--speech); }
  .slip-trash:hover { color: var(--accent); }
  .seal-glyph { font: 700 0.92rem/1 var(--jp); }
  .rd-seal { border-radius: 3px; background: var(--seal); box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.35); }
  .rd-seal[aria-pressed="true"] { outline: 2px solid #fff; outline-offset: 1px; }
  .slip .rd-seal[aria-pressed="true"] { outline-color: #0e0e10; }
  .pdfViewer[data-tool="note"] .page { cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28' viewBox='0 0 24 24'%3E%3Crect x='4' y='4' width='16' height='16' rx='2' fill='%23d7201f' stroke='%23fff' stroke-width='2'/%3E%3C/svg%3E") 14 14, crosshair; }
}
@media (prefers-reduced-motion: reduce) {
  body[data-library="manga"] .d20.rolling { animation: none; }
}

/* Lecture en ligne (online.js) : le tampon 連 dans la barre noire, les numéros de chapitre en cases d'encre, les cartes
   en cases de planche, le tampon 読 sur un chapitre lu. Toujours du rouge sur des carrés, jamais de disque. */
body[data-library="manga"] {
  .online-link { color: #fff; font-family: var(--title); font-weight: 400; }
  .online-link:hover, .online-link[aria-current] { background: #fff; color: var(--ink); }
  .online-seal { border-color: var(--accent); background: var(--ink); color: #fff; }
  .online-link:hover .online-seal, .online-link[aria-current] .online-seal { background: var(--accent); color: #fff; }
  :is(.ol-card-title, .ol-hero-body h1, .ol-num, .ol-resume-body strong, .ol-result-body strong) { font-family: var(--title); font-weight: 400; letter-spacing: 0; }
  .ol-num { clip-path: polygon(0 0, 100% 0, calc(100% - 7px) 100%, 0 100%); background: var(--ink); color: #fff; }
  .ol-ch { border-bottom: 1.5px solid var(--ink); }
  .ol-ch:hover { background: #fff; }
  :is(.ol-resume-card, .ol-result) { border: 2px solid var(--ink); box-shadow: 4px 4px 0 var(--ink); }
  :is(.ol-resume-card, .ol-result):hover { box-shadow: 4px 4px 0 var(--accent); }
  .ol-progress { height: 6px; outline: 1.5px solid var(--ink); background: #fff; }
  .ol-lang { border: 2px solid var(--ink); font-family: var(--title); font-weight: 400; }
  .ol-new { border: 2px solid var(--ink); font-family: var(--title); font-weight: 400; transform: rotate(3deg); }
  .ol-state { border-width: 2px; font-family: var(--title); font-weight: 400; }
  .ol-state.is-read span { font: 700 0.95rem/1 var(--jp); }
  .ol-hero { padding: 1.3rem; background: #fff; border: 3px solid var(--ink); clip-path: polygon(0 0, 100% 0, 100% 100%, 26px 100%, 0 calc(100% - 20px)); }
  .ol-hero-body h1 { text-transform: none; }
  .ol-seal { background: #fff; }
  .ol-card-new .ol-cover-empty { border: 2px dashed var(--ink); color: var(--ink); }
}
