:root {
  --parchment: #f1e7d3;
  --parchment-deep: #e8dac0;
  --parchment-light: #fbf6ea;
  --ink: #221a16;
  --ink-soft: #4d3f36;
  --blood: #8b2e24;
  --blood-deep: #6e2119;
  --frame: #7a4a3a;
  --rune-blue: #2d3a6b;
  --display: "Pirata One", "UnifrakturCook", "Old English Text MT", Georgia, serif;
  --body: "EB Garamond", Garamond, Georgia, serif;
  --runic: "Noto Sans Runic", "Segoe UI Historic", "Segoe UI Symbol", sans-serif;

  /* Quill cursors (hotspot = nib, bottom-left) */
  --quill: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32'%3E%3Cpath d='M29 3C22 3.5 14 8 10.3 17.2L12.6 19.4Z' fill='%23fbf5e8' stroke='%23221a16' stroke-width='1.1' stroke-linejoin='round'/%3E%3Cpath d='M29 3C28.5 10 24.5 18 14.8 21.6L12.6 19.4Z' fill='%23e3d3b6' stroke='%23221a16' stroke-width='1.1' stroke-linejoin='round'/%3E%3Cpath d='M22 6.5L18.5 11M25.5 8.5L21 13.5M18 9.5L15.5 13' stroke='%23b9a78a' stroke-width='.8'/%3E%3Cpath d='M29 3L7.5 24.5' stroke='%23221a16' stroke-width='1.3' stroke-linecap='round'/%3E%3Cpath d='M8.6 23.4L3 29L6.8 26.6L9.4 24.2Z' fill='%23221a16' stroke='%23221a16' stroke-width='1' stroke-linejoin='round'/%3E%3C/svg%3E") 3 29, auto;
  --quill-ink: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32'%3E%3Cpath d='M29 3C22 3.5 14 8 10.3 17.2L12.6 19.4Z' fill='%23fbf5e8' stroke='%23221a16' stroke-width='1.1' stroke-linejoin='round'/%3E%3Cpath d='M29 3C28.5 10 24.5 18 14.8 21.6L12.6 19.4Z' fill='%23e9c9bf' stroke='%23221a16' stroke-width='1.1' stroke-linejoin='round'/%3E%3Cpath d='M22 6.5L18.5 11M25.5 8.5L21 13.5M18 9.5L15.5 13' stroke='%23c78a7c' stroke-width='.8'/%3E%3Cpath d='M29 3L7.5 24.5' stroke='%23221a16' stroke-width='1.3' stroke-linecap='round'/%3E%3Cpath d='M8.6 23.4L3 29L6.8 26.6L9.4 24.2Z' fill='%238b2e24' stroke='%23221a16' stroke-width='1' stroke-linejoin='round'/%3E%3Ccircle cx='3.2' cy='29.2' r='1.9' fill='%238b2e24'/%3E%3C/svg%3E") 3 29, pointer;
}

* { box-sizing: border-box; }
html, body { margin: 0; }

body {
  min-height: 100dvh;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(255, 250, 238, .85), transparent 60%),
    radial-gradient(ellipse at 50% 120%, rgba(122, 74, 58, .18), transparent 60%),
    var(--parchment-deep);
  color: var(--ink);
  font-family: var(--body);
  font-size: 18px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  overflow-x: hidden;
}

@media (pointer: fine) {
  html, body, input, textarea { cursor: var(--quill); }
  a, button, label, select, summary,
  input[type="radio"], input[type="checkbox"], input[type="date"],
  .preview-frame { cursor: var(--quill-ink); }
  button:disabled { cursor: var(--quill); }
}

::selection { background: rgba(139, 46, 36, .22); }

a { color: var(--blood); text-underline-offset: 3px; }

/* ---------- Top navigation (shared) ---------- */

.topnav {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  max-width: 1320px;
  margin: 0 auto;
  padding: 14px 16px 0;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  font-family: var(--display);
  font-size: 20px;
  line-height: 1.1;
  color: var(--ink);
  text-decoration: none;
}
.brand img { flex: none; display: block; }
.topnav-link { font-style: italic; font-size: 16px; color: var(--ink-soft); white-space: nowrap; }
.topnav-link:hover { color: var(--blood); }
@media (max-width: 440px) {
  .brand { font-size: 16px; }
  .topnav-link { font-size: 15px; }
}

/* ---------- Site header ---------- */

.site-head {
  max-width: 760px;
  margin: 0 auto;
  padding: 34px 16px 8px;
  text-align: center;
}

.runes-top {
  margin: 0 0 6px;
  color: var(--blood);
  font-family: var(--runic);
  font-size: 13px;
  letter-spacing: .25em;
}

.society {
  margin: 0;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(34px, 8.6vw, 60px);
  line-height: 1.02;
  color: var(--ink);
}

.subtitle {
  margin: 10px 0 0;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--frame);
}

.divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  max-width: 520px;
  margin: 14px auto 10px;
  color: var(--frame);
}
.divider span { flex: 1; height: 1px; background: currentColor; }
.divider i, .divider b {
  display: block;
  width: 7px; height: 7px;
  border: 1px solid currentColor;
  transform: rotate(45deg);
}
.divider b { width: 10px; height: 10px; background: var(--blood); border-color: var(--blood); }

.tagline {
  max-width: 620px;
  margin: 0 auto;
  font-style: italic;
  color: var(--ink-soft);
}

/* ---------- Layout ---------- */

.workbench {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 22px;
  max-width: 1320px;
  margin: 0 auto;
  padding: 20px 16px 30px;
}

@media (min-width: 1000px) {
  .workbench {
    grid-template-columns: 400px minmax(0, 1fr);
    align-items: start;
    gap: 28px;
    padding: 24px 24px 40px;
  }
  .preview-panel { position: sticky; top: 18px; }
}

.panel-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  font-family: var(--display);
  font-weight: 400;
  font-size: 26px;
  line-height: 1.1;
  color: var(--blood);
}
.panel-rune {
  flex: none;
  display: grid;
  place-items: center;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--blood);
  color: var(--parchment);
  font-family: var(--runic);
  font-size: 16px;
  box-shadow: 0 0 0 2px var(--parchment), 0 0 0 3px var(--blood);
}
.live-dot {
  margin-left: auto;
  font-family: var(--body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink-soft);
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.live-dot::before {
  content: "";
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--blood);
  animation: pulse 1.8s ease-in-out infinite;
}
@keyframes pulse { 50% { opacity: .25; } }

/* ---------- Form panel ---------- */

.panel {
  position: relative;
  background: var(--parchment);
  border: 2px solid var(--frame);
  box-shadow:
    inset 0 0 0 5px var(--parchment),
    inset 0 0 0 6px rgba(122, 74, 58, .55),
    0 18px 40px -22px rgba(60, 30, 20, .45);
  padding: 22px 20px 20px;
}

form { display: grid; gap: 16px; }

.field { display: grid; gap: 6px; min-width: 0; margin: 0; padding: 0; border: 0; }
.field-row { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 560px) and (max-width: 999px) {
  .field-row { grid-template-columns: 1fr 1fr; }
}

label, legend {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  padding: 0;
}
legend { margin-bottom: 6px; }
.hint { text-transform: none; letter-spacing: 0; font-weight: 400; font-style: italic; font-size: 14px; }

input[type="text"], input[type="number"], input[type="date"], textarea {
  width: 100%;
  min-width: 0;
  font: inherit;
  font-size: 18px;
  line-height: 1.3;
  color: var(--ink);
  background: rgba(255, 252, 244, .75);
  border: 1.5px solid rgba(122, 74, 58, .45);
  border-radius: 4px;
  padding: 10px 12px;
  transition: border-color .15s, background .15s, box-shadow .15s;
  -webkit-appearance: none;
  appearance: none;
}
input[type="date"] { min-height: 46px; }
textarea { resize: vertical; min-height: 64px; }
input::placeholder, textarea::placeholder { color: rgba(77, 63, 54, .5); font-style: italic; }
input:hover, textarea:hover { border-color: var(--frame); }
input:focus, textarea:focus {
  outline: none;
  border-color: var(--rune-blue);
  background: var(--parchment-light);
  box-shadow: 0 0 0 3px rgba(45, 58, 107, .15);
}
input:disabled { opacity: .45; }
.field.invalid input { border-color: var(--blood); animation: shake .4s; }
.field-error { margin: 0; font-size: 15px; font-style: italic; color: var(--blood); }

@keyframes shake {
  0%, 100% { transform: none; }
  20% { transform: translateX(-7px); }
  40% { transform: translateX(6px); }
  60% { transform: translateX(-4px); }
  80% { transform: translateX(2px); }
}

.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill { position: relative; text-transform: none; letter-spacing: 0; font-weight: 400; }
.pill input { position: absolute; opacity: 0; inset: 0; margin: 0; }
.pill span {
  display: inline-block;
  padding: 7px 14px;
  font-size: 17px;
  color: var(--ink);
  background: rgba(255, 252, 244, .7);
  border: 1.5px solid rgba(122, 74, 58, .45);
  border-radius: 999px;
  transition: background .15s, color .15s, border-color .15s, transform .1s;
}
.pill:hover span { border-color: var(--frame); }
.pill input:checked + span {
  background: var(--blood);
  border-color: var(--blood);
  color: var(--parchment);
  box-shadow: 0 2px 0 var(--blood-deep);
}
.pill input:focus-visible + span { outline: 2px solid var(--rune-blue); outline-offset: 2px; }
.pill:active span { transform: scale(.96); }

.custom-rank { margin-top: 8px; }
.custom-rank[hidden] { display: none; }

.with-dice { display: flex; gap: 8px; align-items: stretch; }
.with-dice > input, .with-dice > textarea { flex: 1; }

.dice-btn {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  justify-self: start;
  margin-top: 8px;
  padding: 7px 14px 7px 10px;
  font: inherit;
  font-size: 16px;
  font-style: italic;
  color: var(--rune-blue);
  background: transparent;
  border: 1.5px dashed rgba(45, 58, 107, .55);
  border-radius: 4px;
  transition: background .15s, border-color .15s;
}
.dice-btn svg { width: 22px; height: 22px; flex: none; }
.dice-btn:hover { background: rgba(45, 58, 107, .07); border-color: var(--rune-blue); }
.dice-btn:focus-visible { outline: 2px solid var(--rune-blue); outline-offset: 2px; }
.dice-btn.icon { margin-top: 0; padding: 0; width: 46px; flex: none; }
.dice-btn.rolling svg { animation: roll .5s cubic-bezier(.3, 1.4, .5, 1); }
@keyframes roll {
  from { transform: rotate(-200deg) scale(.6); }
  to { transform: none; }
}

.check {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 4px;
  text-transform: none;
  letter-spacing: 0;
  font-weight: 400;
  font-size: 17px;
  color: var(--ink);
}
.check input {
  appearance: none;
  -webkit-appearance: none;
  flex: none;
  width: 22px; height: 22px;
  margin: 0;
  border: 1.5px solid var(--frame);
  border-radius: 3px;
  background: rgba(255, 252, 244, .75);
  display: grid;
  place-items: center;
}
.check input::after {
  content: "ᛉ";
  font-family: var(--runic);
  font-size: 15px;
  line-height: 1;
  color: var(--parchment);
  transform: scale(0);
  transition: transform .15s cubic-bezier(.3, 1.6, .5, 1);
}
.check input:checked { background: var(--blood); border-color: var(--blood); }
.check input:checked::after { transform: none; }
.check input:focus-visible { outline: 2px solid var(--rune-blue); outline-offset: 2px; }
.check em { color: var(--ink-soft); }

.stepper { display: flex; gap: 8px; }
.stepper input { text-align: center; width: 90px; flex: none; -moz-appearance: textfield; }
.stepper input::-webkit-outer-spin-button,
.stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.step {
  appearance: none;
  width: 46px;
  font: inherit;
  font-size: 24px;
  line-height: 1;
  color: var(--frame);
  background: rgba(255, 252, 244, .6);
  border: 1.5px solid rgba(122, 74, 58, .45);
  border-radius: 4px;
}
.step:hover { border-color: var(--frame); background: var(--parchment-light); }
.step:active { transform: scale(.95); }

/* ---------- Preview ---------- */

.preview-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 297 / 210;
  overflow: hidden;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .6) inset, 0 22px 50px -24px rgba(60, 30, 20, .55), 0 2px 6px rgba(60, 30, 20, .12);
  transform-origin: 50% 60%;
}
.preview-frame.thump { animation: thump .45s cubic-bezier(.2, .8, .3, 1); }
@keyframes thump {
  0% { transform: none; }
  25% { transform: scale(.985) translateY(3px); }
  100% { transform: none; }
}

.preview-scaler {
  position: absolute;
  left: 0; top: 0;
  width: 1123px;
  height: 794px;
  transform-origin: 0 0;
}

.export-host {
  position: fixed;
  left: -4000px;
  top: 0;
  width: 1123px;
  height: 794px;
  pointer-events: none;
}

.c-name .sample { opacity: .38; }

.zoom {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: rgba(34, 26, 22, .86);
  animation: fade .2s ease-out;
}
.zoom-stage {
  position: relative;
  overflow: hidden;
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .7);
}
.zoom-hint { margin: 0; font-size: 14px; font-style: italic; color: var(--parchment-deep); opacity: .8; }
@keyframes fade { from { opacity: 0; } }

.enlarge-hint { display: none; margin: 8px 0 0; text-align: center; font-size: 14px; font-style: italic; color: var(--ink-soft); }

.peek {
  position: fixed;
  left: 50%;
  bottom: calc(16px + env(safe-area-inset-bottom));
  z-index: 30;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px 10px 12px;
  border-radius: 999px;
  background: var(--rune-blue);
  color: var(--parchment);
  font-family: var(--display);
  font-size: 19px;
  text-decoration: none;
  box-shadow: 0 8px 24px -8px rgba(20, 20, 50, .6);
  transform: translateX(-50%);
  animation: rise-in .3s cubic-bezier(.2, .8, .3, 1.2);
}
.peek span {
  display: grid;
  place-items: center;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--parchment);
  color: var(--rune-blue);
  font-family: var(--runic);
  font-size: 13px;
}
.peek[hidden] { display: none; }
@keyframes rise-in { from { transform: translate(-50%, 20px); opacity: 0; } }

@media (max-width: 999px) {
  .enlarge-hint { display: block; }
}

/* ---------- Actions ---------- */

.actions { margin-top: 18px; display: grid; gap: 12px; }

.btn {
  appearance: none;
  position: relative;
  display: block;
  width: 100%;
  padding: 15px 18px;
  border: 0;
  border-radius: 4px;
  background: var(--blood);
  color: var(--parchment);
  font-family: var(--display);
  font-size: 25px;
  line-height: 1.1;
  letter-spacing: .02em;
  box-shadow: 0 0 0 1px var(--blood-deep), 0 3px 0 var(--blood-deep);
  transition: transform .1s, box-shadow .1s, background .15s;
}
.btn:hover { background: #9a342a; }
.btn:active { transform: translateY(2px); box-shadow: 0 0 0 1px var(--blood-deep), 0 1px 0 var(--blood-deep); }
.btn:focus-visible { outline: 2px solid var(--rune-blue); outline-offset: 3px; }
.btn:disabled { background: var(--blood-deep); opacity: .85; }
.btn.busy .btn-label::after {
  content: "";
  display: inline-block;
  width: 1.1em;
  text-align: left;
  animation: dots 1.2s steps(4) infinite;
}
@keyframes dots {
  0% { content: ""; } 25% { content: "."; } 50% { content: ".."; } 75% { content: "..."; }
}

.privacy {
  margin: 0;
  text-align: center;
  font-size: 15px;
  font-style: italic;
  color: var(--ink-soft);
}

/* FUTURE: "Order a printed copy" slot */
.print-slot {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border: 1.5px dashed rgba(122, 74, 58, .45);
  border-radius: 4px;
  font-size: 15px;
  color: var(--ink-soft);
}
.print-rune {
  flex: none;
  font-family: var(--runic);
  font-size: 20px;
  color: var(--frame);
}

/* ---------- Footer, toast ---------- */

.site-foot {
  max-width: 760px;
  margin: 0 auto;
  padding: 10px 16px 40px;
  text-align: center;
  font-size: 14px;
  font-style: italic;
  color: var(--ink-soft);
}
.site-foot p { margin: 0 0 4px; }

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(22px + env(safe-area-inset-bottom));
  z-index: 50;
  max-width: calc(100% - 32px);
  padding: 12px 20px;
  background: var(--ink);
  color: var(--parchment);
  border-radius: 4px;
  font-size: 17px;
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, .5);
  transform: translate(-50%, 140%);
  opacity: 0;
  transition: transform .35s cubic-bezier(.2, .8, .3, 1.2), opacity .3s;
  pointer-events: none;
}
.toast.show { transform: translate(-50%, 0); opacity: 1; }
.toast b { font-family: var(--display); font-weight: 400; font-size: 20px; color: #e7a598; }

/* ---------- Ink effects ---------- */

.ink-splat {
  position: fixed;
  z-index: 60;
  pointer-events: none;
  transform: translate(-50%, -50%);
  animation: splat 1.1s ease-out forwards;
}
@keyframes splat {
  0% { transform: translate(-50%, -50%) scale(.2); opacity: .95; }
  14% { transform: translate(-50%, -50%) scale(1.05); opacity: .9; }
  22% { transform: translate(-50%, -50%) scale(1); }
  70% { opacity: .55; }
  100% { transform: translate(-50%, -50%) scale(1); opacity: 0; }
}

.ink-drop {
  position: fixed;
  z-index: 60;
  width: 5px; height: 7px;
  border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
  background: var(--rune-blue);
  pointer-events: none;
  animation: drip .7s cubic-bezier(.5, 0, .9, .6) forwards;
}
@keyframes drip {
  0% { transform: translateY(0) scale(.4); opacity: .9; }
  30% { transform: translateY(2px) scale(1); opacity: .9; }
  100% { transform: translateY(22px) scale(.7, 1.2); opacity: 0; }
}

.wax-bit {
  position: absolute;
  z-index: 5;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #b8453a, #7a2219 70%);
  pointer-events: none;
  animation: wax-fly .6s cubic-bezier(.2, .8, .4, 1) forwards;
}
@keyframes wax-fly {
  from { transform: translate(0, 0) scale(1); opacity: 1; }
  to { transform: translate(var(--dx), var(--dy)) scale(.3); opacity: 0; }
}

.cert .inked { animation: ink-bleed .7s ease-out; }
@keyframes ink-bleed {
  0% { filter: blur(1.6px); opacity: .35; }
  60% { filter: blur(.3px); opacity: .9; }
  100% { filter: none; opacity: 1; }
}

/* =====================================================================
   The certificate itself: A4 landscape at 96dpi = 1123 × 794 px.
   Kept free of CSS that html2canvas can't paint (outline, filters,
   blend modes) so the PDF matches the preview.
   ===================================================================== */

.cert {
  position: relative;
  width: 1123px;
  height: 794px;
  overflow: hidden;
  background-color: var(--parchment);
  background-image:
    radial-gradient(ellipse at 50% 45%, rgba(255, 251, 240, .75) 0%, rgba(255, 251, 240, 0) 62%),
    radial-gradient(ellipse at 50% 50%, rgba(122, 74, 58, 0) 55%, rgba(122, 74, 58, .16) 100%);
  color: var(--ink);
  font-family: var(--body);
  line-height: 1.4;
  text-align: center;
  -webkit-font-smoothing: antialiased;
}

.cert-frame { position: absolute; border-style: solid; border-color: var(--frame); }
.cert-frame.f1 { inset: 19px; border-width: 3px; }
.cert-frame.f2 { inset: 27px; border-width: 1px; }
.cert-frame.f3 { inset: 35px; border-width: 1px; border-color: rgba(122, 74, 58, .4); }

.cert-corner {
  position: absolute;
  width: 34px; height: 34px;
}
.cert-corner.tl { left: 4px; top: 4px; }
.cert-corner.tr { right: 4px; top: 4px; }
.cert-corner.bl { left: 4px; bottom: 4px; }
.cert-corner.br { right: 4px; bottom: 4px; }

.cert-body {
  position: absolute;
  inset: 56px 84px 50px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.cert p, .cert h2, .cert h3, .cert h4 { margin: 0; font-weight: 400; }

.c-runes {
  font-family: var(--runic);
  font-size: 14px;
  letter-spacing: .42em;
  color: var(--blood);
  height: 20px;
  white-space: nowrap;
}
.c-society {
  font-family: var(--display);
  font-size: 64px;
  line-height: 1.05;
  color: var(--ink);
}
.c-sub {
  margin-top: 6px !important;
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--frame);
}
.c-divider {
  display: flex;
  align-items: center;
  gap: 4px;
  width: 620px;
  margin: 12px 0 24px;
}
.c-divider span { flex: 1; height: 1.5px; background: var(--frame); }
.c-divider i, .c-divider b {
  display: block;
  width: 9px; height: 9px;
  border: 1.2px solid var(--frame);
  transform: rotate(45deg);
}
.c-divider b { width: 12px; height: 12px; background: var(--blood); border-color: var(--blood); }

.c-lead { font-size: 20px; font-style: italic; color: var(--ink-soft); }
.c-name {
  width: 100%;
  margin: 6px 0 10px !important;
  font-family: var(--display);
  font-size: 88px;
  line-height: 1.12;
  color: var(--blood);
  white-space: nowrap;
}
.c-name span, .c-title span, .c-sig-name span, .c-sig-role span { display: inline-block; white-space: nowrap; }
.c-text {
  max-width: 880px;
  font-size: 20px;
  line-height: 1.45;
  color: var(--ink);
}
.c-title {
  width: 100%;
  margin: 12px 0 8px !important;
  font-family: var(--display);
  font-size: 44px;
  line-height: 1.15;
  color: var(--ink);
  white-space: nowrap;
}
.c-priv { font-size: 19.5px; font-style: italic; color: var(--ink-soft); }
.c-trials {
  display: flex;
  align-items: center;
  gap: 26px;
  margin-top: 18px !important;
  font-size: 17.5px;
  color: var(--ink-soft);
}
.c-trials b { font-family: var(--runic); font-weight: 400; color: var(--blood); margin-right: 5px; }
.c-trials i {
  display: block;
  width: 7px; height: 7px;
  background: var(--frame);
  transform: rotate(45deg);
}

.c-signs {
  margin-top: auto;
  width: 100%;
  display: grid;
  grid-template-columns: 310px 1fr 310px;
  align-items: end;
}
.c-sig { text-align: center; padding-bottom: 2px; }
.c-sig-runes {
  height: 44px;
  font-family: var(--runic);
  font-size: 30px;
  line-height: 44px;
  letter-spacing: .06em;
  color: var(--rune-blue);
  border-bottom: 2px solid var(--ink);
  white-space: nowrap;
  overflow: hidden;
}
.c-sig-name {
  margin-top: 7px;
  font-family: var(--display);
  font-size: 22px;
  line-height: 1.15;
  white-space: nowrap;
}
.c-sig-role { font-size: 15.5px; font-style: italic; color: var(--ink-soft); line-height: 1.3; }
.c-sig-label {
  margin-top: 3px;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--frame);
}

.c-seal-col { display: flex; flex-direction: column; align-items: center; }
.c-seal-wrap { position: relative; width: 150px; height: 150px; }
.c-seal {
  position: absolute;
  left: 0; top: 0;
  width: 150px; height: 150px;
  transform: rotate(-8deg);
}
.c-seal-ghost {
  position: absolute;
  inset: 16px;
  display: grid;
  place-items: center;
  border: 2px dashed rgba(139, 46, 36, .38);
  border-radius: 50%;
  font-size: 14px;
  font-style: italic;
  line-height: 1.15;
  color: rgba(139, 46, 36, .6);
  transition: opacity .2s;
}
.c-seal-wrap:not(.sealed) .c-seal { opacity: 0; }
.c-seal-wrap.sealed .c-seal-ghost { opacity: 0; }
.c-seal-wrap.stamping .c-seal { animation: stamp .62s cubic-bezier(.5, 0, .5, 1) both; }
@keyframes stamp {
  0% { opacity: 0; transform: translateY(-60px) scale(2.6) rotate(-38deg); }
  50% { opacity: 1; transform: translateY(0) scale(1.06) rotate(-10deg); }
  60% { transform: scale(.95) rotate(-8deg); }
  78% { transform: scale(1.02) rotate(-8deg); }
  100% { opacity: 1; transform: rotate(-8deg); }
}
.c-date { margin-top: 4px !important; font-size: 15.5px; font-style: italic; color: var(--ink-soft); white-space: nowrap; }

@media (max-width: 420px) {
  body { font-size: 17px; }
  .panel { padding: 20px 16px 18px; }
  .btn { font-size: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
