/* kazinoleon.cfd — Leon / Леон. Парадигма: гербовый реестр / ledger-таблица гербов. Палитра «ledger cyan-coral». */

:root {
  --bg: #0d0f14;
  --bg-2: #14171f;
  --bg-3: #1c212b;
  --line: #2a303b;
  --line-2: #3a4250;
  --txt: #e6ebef;
  --txt-d: #93a0a8;
  --txt-dd: #6c7680;
  --cyan: #28c8d8;
  --cyan-d: #1f9faa;
  --coral: #ff6b57;
  --coral-d: #d8503e;
  --good: #6fd6a0;
  --r: 4px;
  --r-s: 3px;
}

* { box-sizing: border-box }
html { scroll-behavior: smooth }
body {
  margin: 0;
  font: 16px/1.66 "Commissioner", ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, Arial, sans-serif;
  color: var(--txt);
  background:
    radial-gradient(1000px 560px at 90% -12%, rgba(40, 200, 216, .12) 0%, transparent 60%),
    radial-gradient(820px 560px at -8% 54%, rgba(255, 107, 87, .1) 0%, transparent 58%),
    var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; height: auto }
a { color: var(--cyan); text-decoration: none }
a:hover { text-decoration: underline }

/* heading-override: все заголовки — Nova Mono */
h1, h2, h3, h4, .font-head, .folio__rh, .quill, .mark,
.tally__num, .ensign__num, .entry__pct, .rite__seal, .rite__head,
.ranks__name, .proclaim__grid span, .timings em, .engrave__name {
  font-family: "Nova Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-weight: 400;
}

.skip {
  position: absolute; top: -42px; left: 8px;
  padding: 8px 12px; background: var(--coral); color: #12060a;
  border-radius: var(--r-s); z-index: 100; font-weight: 700;
}
.skip:focus { top: 8px }

/* ===== MASTHEAD ===== */
.masthead {
  display: flex; align-items: center; gap: 16px;
  padding: 13px 22px;
  border-bottom: 1px solid var(--line);
  background: rgba(13, 15, 20, .86);
  backdrop-filter: blur(10px);
  position: sticky; top: 0; z-index: 50;
}
.sigil { display: flex; align-items: center; gap: 11px; color: var(--txt) }
.sigil:hover { text-decoration: none }
.sigil__svg {
  width: 32px; height: 32px; flex: none;
  filter: drop-shadow(0 0 9px rgba(40, 200, 216, .45));
}
.sigil__wm {
  font-family: "Nova Mono", monospace;
  font-size: 20px; line-height: 1; letter-spacing: 1px;
}
.sigil__sub {
  display: block; font-size: 10px; color: var(--txt-d);
  letter-spacing: 2.4px; font-weight: 600; margin-top: 5px;
  text-transform: uppercase; font-family: "Commissioner", sans-serif;
}
.ways { display: flex; gap: 22px; margin-left: auto; flex-wrap: wrap }
.ways a {
  color: var(--txt-d); font-size: 14px; padding: 4px 0;
  border-bottom: 1px solid transparent; transition: color .15s, border-color .15s;
}
.ways a:hover { color: var(--cyan); border-bottom-color: var(--cyan); text-decoration: none }

/* ===== CREST (CTA) ===== */
.crest {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 22px; border-radius: var(--r);
  font-family: "Commissioner", system-ui, sans-serif;
  font-weight: 700; font-size: 14px;
  border: 1px solid transparent; white-space: nowrap;
  transition: transform .15s, box-shadow .2s, background .2s, border-color .2s;
  cursor: pointer; letter-spacing: .3px;
}
.crest:hover { text-decoration: none; transform: translateY(-1px) }
.crest--enter { background: var(--bg-3); color: var(--txt); border-color: var(--line) }
.crest--enter:hover { background: var(--bg-2); border-color: var(--cyan) }
.crest--gold {
  padding: 15px 30px; font-size: 15px;
  background: linear-gradient(120deg, var(--coral) 0%, var(--cyan) 100%);
  color: #08131a; border: 0;
  box-shadow: 0 12px 30px -10px rgba(255, 107, 87, .55);
  font-weight: 700;
}
.crest--gold:hover { box-shadow: 0 16px 38px -8px rgba(40, 200, 216, .8) }
.crest--line {
  padding: 15px 30px; font-size: 15px;
  background: transparent; color: var(--txt); border-color: var(--line-2);
}
.crest--line:hover { border-color: var(--cyan); color: var(--cyan) }

/* ===== AGGREGATE LEDGER STRIP ===== */
.tally {
  display: grid; grid-template-columns: repeat(5, 1fr);
  gap: 0; padding: 10px 22px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(90deg, rgba(40, 200, 216, .05), rgba(255, 107, 87, .04));
  font-size: 13px;
}
.tally__cell {
  display: flex; flex-direction: column; gap: 3px;
  padding: 6px 16px;
  border-right: 1px dashed var(--line-2);
  align-items: flex-start;
}
.tally__cell:last-child { border-right: 0 }
.tally__num { font-size: 17px; color: var(--cyan); letter-spacing: .5px }
.tally__lbl { font-size: 11px; color: var(--txt-d); letter-spacing: .5px; text-transform: uppercase }

/* ===== FOLIO RUNNING HEAD ===== */
.folio__rh {
  font-size: 10.5px; letter-spacing: 3px; text-transform: uppercase;
  color: var(--txt-dd); margin: 0 0 20px;
  padding-bottom: 10px; border-bottom: 1px solid var(--line);
  display: flex; justify-content: space-between; gap: 12px;
}
.quill {
  display: inline-block;
  font-size: 12px; letter-spacing: 3px; text-transform: uppercase;
  color: var(--cyan); margin: 0 0 12px;
}
.mark {
  display: inline-block;
  font-size: 11px; letter-spacing: 2px; color: var(--coral);
  background: rgba(255, 107, 87, .08);
  border: 1px solid rgba(255, 107, 87, .3);
  padding: 6px 13px; border-radius: var(--r-s);
  margin: 0 0 18px; text-transform: uppercase;
}

/* ===== FRONTISPIECE (HERO) ===== */
.frontis {
  display: grid; grid-template-columns: 1.16fr 1fr; gap: 40px;
  padding: 44px 22px 34px;
  max-width: 1220px; margin: 0 auto;
  align-items: center;
}
h1 {
  font-size: clamp(28px, 4.1vw, 46px); line-height: 1.12;
  margin: 0 0 18px; letter-spacing: -.3px;
}
.acc { color: var(--coral) }
.frontis__sub { color: var(--txt-d); font-size: 16px; margin: 0 0 14px; line-height: 1.7 }
.frontis__acts { display: flex; gap: 12px; flex-wrap: wrap; margin: 24px 0 28px }
.frontis__arms { margin: 0 }
.frontis__arms-svg {
  display: block; width: 100%; height: auto;
  border-radius: var(--r); border: 1px solid var(--line);
  background:
    radial-gradient(420px 320px at 72% 28%, rgba(40, 200, 216, .18), transparent 60%),
    radial-gradient(360px 280px at 28% 82%, rgba(255, 107, 87, .16), transparent 65%),
    repeating-linear-gradient(0deg, rgba(255,255,255,.018) 0 1px, transparent 1px 26px),
    linear-gradient(135deg, #11141b 0%, #191d26 100%);
  aspect-ratio: 16 / 12;
  box-shadow: 0 24px 64px -22px rgba(40, 200, 216, .35);
}
.frontis__arms figcaption {
  margin-top: 12px; font-size: 12px; color: var(--txt-dd);
  font-style: italic; text-align: right;
}
.ensign {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px;
  padding: 18px 0 0; border-top: 1px solid var(--line);
}
.ensign__item { display: flex; flex-direction: column; gap: 2px }
.ensign__num { font-size: 27px; color: var(--coral) }
.ensign__lbl { font-size: 11px; color: var(--txt-d); text-transform: uppercase; letter-spacing: 1.1px }

/* ===== SECTIONS ===== */
section {
  max-width: 1220px; margin: 0 auto;
  padding: 56px 22px;
}
h2 {
  font-size: clamp(23px, 3vw, 33px); line-height: 1.22;
  margin: 0 0 16px; letter-spacing: -.2px;
}
h3 {
  font-size: clamp(16px, 1.9vw, 21px); line-height: 1.34;
  margin: 26px 0 10px; color: var(--cyan);
}
p { margin: 0 0 14px; color: var(--txt) }
.lede { color: var(--txt-d); font-size: 16px; margin-bottom: 24px; max-width: 820px; line-height: 1.72 }

/* chapter = folio page (ledger sheet) */
.chapter { border-top: 1px solid transparent }

/* ===== ENTRIES / REGISTER ROWS ===== */
.entries { display: grid; gap: 14px; margin: 22px 0 24px }
.entries--triad { grid-template-columns: repeat(3, 1fr) }
.entries--quad { grid-template-columns: repeat(2, 1fr) }

.entry, .rite, .record {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-left: 3px solid var(--cyan-d);
  border-radius: var(--r);
  padding: 22px 22px;
  position: relative; overflow: hidden;
  transition: border-color .2s, transform .15s;
}
.entry:hover, .record:hover { border-color: var(--coral); transform: translateY(-2px) }
.entry::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(40, 200, 216, .06), transparent 60%);
  pointer-events: none;
}
.entry__idx {
  font-size: 11px; color: var(--cyan); font-weight: 700;
  letter-spacing: 2px; margin-bottom: 8px; text-transform: uppercase;
  font-family: "Commissioner", sans-serif;
}
.entry__pct { font-size: 31px; line-height: 1; color: var(--coral); margin-bottom: 8px }
.entry__title { font-weight: 600; font-size: 15px; margin-bottom: 6px }
.entry__note { font-size: 13px; color: var(--txt-d); line-height: 1.55 }

/* ===== RITES (3 steps) ===== */
.rite { border-left: 3px solid var(--coral-d) }
.rite__seal {
  position: absolute; top: 14px; right: 20px;
  width: 46px; height: 46px; border-radius: 50%;
  border: 2px dashed var(--line-2);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; color: var(--bg-3);
}
.rite__head { font-size: 18px; color: var(--coral); margin-bottom: 12px }
.rite p { color: var(--txt-d); font-size: 14px; margin: 0 }

/* ===== ARMORY (slot grid) ===== */
.armory {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(212px, 1fr));
  gap: 14px; margin: 24px 0;
}
.shield {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
  transition: transform .15s, border-color .2s, box-shadow .25s;
  display: flex; flex-direction: column;
}
.shield:hover {
  transform: translateY(-3px);
  border-color: var(--cyan);
  box-shadow: 0 18px 36px -14px rgba(40, 200, 216, .38);
}
.shield__field {
  width: 100%; aspect-ratio: 4 / 3;
  display: flex; align-items: center; justify-content: center;
  font-family: "Nova Mono", monospace;
  font-size: 21px; color: rgba(230, 235, 239, .96);
  text-align: center; padding: 14px; line-height: 1.16;
  position: relative; overflow: hidden;
}
.shield__field::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(160deg, transparent 40%, rgba(0,0,0,.44) 100%);
  pointer-events: none;
}
.fld-1 { background: linear-gradient(135deg, #08302f 0%, #28c8d8 100%); color: #06110f }
.fld-2 { background: linear-gradient(135deg, #3a1e18 0%, #ff6b57 100%) }
.fld-3 { background: linear-gradient(135deg, #3a1c16 0%, #ff8060 100%); color: #12060a }
.fld-4 { background: linear-gradient(135deg, #0a2d31 0%, #34c8d8 100%); color: #06110f }
.fld-5 { background: linear-gradient(135deg, #3a1e18 0%, #ff6b57 100%) }
.fld-6 { background: linear-gradient(135deg, #082f34 0%, #2bbecf 100%); color: #06110f }
.fld-7 { background: linear-gradient(135deg, #3a2418 0%, #ffa15a 100%); color: #12060a }
.fld-8 { background: linear-gradient(135deg, #0a2d31 0%, #28c8d8 100%); color: #06110f }
.fld-9 { background: linear-gradient(135deg, #3a1e18 0%, #ff6b57 100%) }
.fld-10 { background: linear-gradient(135deg, #3a2418 0%, #ff9a52 100%); color: #12060a }
.fld-11 { background: linear-gradient(135deg, #3a1c16 0%, #ff7a58 100%) }
.fld-12 { background: linear-gradient(135deg, #082f34 0%, #28c8d8 100%); color: #06110f }

.shield h3 { font-size: 15px; margin: 12px 14px 4px; color: var(--txt); font-family: "Commissioner", sans-serif; font-weight: 600 }
.shield p { font-size: 12px; color: var(--txt-d); margin: 0 14px 12px; line-height: 1.4 }
.shield__btn {
  display: block; padding: 10px;
  margin: auto 12px 12px;
  background: var(--bg-3); color: var(--txt);
  text-align: center; border-radius: var(--r-s); font-size: 13px; font-weight: 600;
  border: 1px solid var(--line); transition: all .15s;
}
.shield__btn:hover { background: var(--coral); border-color: var(--coral); color: #12060a; text-decoration: none }

/* ===== ROLL (providers / mechanics) ===== */
.roll { margin: 22px 0 0 }
.roll__title { font-size: 12px; color: var(--cyan); margin-bottom: 10px; letter-spacing: 1.4px; text-transform: uppercase; font-weight: 700 }
.roll__list { display: flex; flex-wrap: wrap; gap: 8px }
.roll__list span {
  padding: 6px 13px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--r-s);
  font-size: 12px; color: var(--txt-d);
}

/* ===== RANKS (VIP) ===== */
.ranks {
  display: grid; grid-template-columns: repeat(6, 1fr);
  gap: 6px; margin-top: 14px; align-items: end;
}
.ranks__step {
  background: var(--bg-3);
  border: 1px solid var(--line);
  border-radius: var(--r-s);
  padding: 12px 8px 11px;
  text-align: center; position: relative;
}
.ranks__step::before {
  content: ""; display: block;
  width: 14px; height: 14px; margin: 0 auto 8px;
  border: 1px solid var(--line-2);
  transform: rotate(45deg);
  background: var(--bg-2);
}
.ranks__step:nth-child(1)::before { border-color: var(--cyan) }
.ranks__step:nth-child(2)::before { border-color: var(--cyan) }
.ranks__step:nth-child(3)::before { border-color: var(--cyan) }
.ranks__step:nth-child(4) { border-color: var(--line-2) }
.ranks__step:nth-child(4)::before { border-color: var(--coral); background: rgba(255,107,87,.15) }
.ranks__step:nth-child(5) { border-color: var(--line-2) }
.ranks__step:nth-child(5)::before { border-color: var(--coral); background: rgba(255,107,87,.25) }
.ranks__step:nth-child(6) { border-color: var(--coral); background: linear-gradient(135deg, var(--bg-2), rgba(255,107,87,.14)) }
.ranks__step:nth-child(6)::before { border-color: var(--coral); background: var(--coral) }
.ranks__name { font-size: 14px; color: var(--txt); display: block; line-height: 1; margin-bottom: 5px }
.ranks__step:nth-child(1) .ranks__name { color: var(--cyan) }
.ranks__step:nth-child(6) .ranks__name { color: var(--coral) }
.ranks__cb { font-size: 11px; color: var(--txt-d) }

.record { border-left: 3px solid var(--cyan-d) }
.record__h { font-size: 19px; color: var(--cyan); margin-bottom: 10px; font-family: "Nova Mono", monospace }
.record p { color: var(--txt-d); font-size: 14px; margin: 0; line-height: 1.6 }

/* ===== PROCLAMATION (tournament) ===== */
.proclaim {
  background:
    radial-gradient(640px 360px at 50% 40%, rgba(255, 107, 87, .1) 0%, transparent 70%),
    var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--r);
  margin: 32px 22px; max-width: none;
  text-align: center;
}
.proclaim .folio__rh { justify-content: center; border-color: var(--line-2) }
.proclaim .quill, .proclaim h2, .proclaim .lede { text-align: center }
.proclaim .lede { margin-left: auto; margin-right: auto }
.proclaim__act { margin: 22px 0 28px }
.proclaim__grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px;
  margin-top: 22px;
}
.proclaim__grid > div {
  background: var(--bg-3);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 18px 16px;
  display: flex; flex-direction: column; align-items: center; gap: 4px;
}
.proclaim__grid span { font-size: 24px; color: var(--coral); margin-bottom: 4px }
.proclaim__grid em { font-size: 14px; color: var(--txt); font-style: normal }
.proclaim__grid i { font-size: 12px; color: var(--txt-d); font-style: normal; line-height: 1.4 }

/* ===== BOARD (live tables) ===== */
.board {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(275px, 1fr));
  gap: 14px; margin-top: 22px;
}
.table {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden; position: relative;
  transition: transform .15s, border-color .2s, box-shadow .25s;
}
.table:hover {
  transform: translateY(-3px);
  border-color: var(--coral);
  box-shadow: 0 18px 36px -14px rgba(255, 107, 87, .38);
}
.table__field {
  width: 100%; aspect-ratio: 16 / 9;
  display: flex; align-items: center; justify-content: center;
  font-family: "Nova Mono", monospace;
  font-size: 20px; color: rgba(230, 235, 239, .96);
  padding: 12px; text-align: center; line-height: 1.16;
  position: relative; overflow: hidden;
}
.tb-1 { background: linear-gradient(135deg, #3a1e18 0%, #ff6b57 100%) }
.tb-2 { background: linear-gradient(135deg, #082f34 0%, #28c8d8 100%); color: #06110f }
.tb-3 { background: linear-gradient(135deg, #0a2d31 0%, #34c8d8 100%); color: #06110f }
.tb-4 { background: linear-gradient(135deg, #3a2418 0%, #ff9a52 100%); color: #12060a }
.tb-5 { background: linear-gradient(135deg, #3a1c16 0%, #ff7a58 100%) }
.tb-6 { background: linear-gradient(135deg, #082f34 0%, #2bbecf 100%); color: #06110f }
.table__b { padding: 14px 16px 16px; position: relative }
.table__t { font-weight: 600; font-size: 16px; margin-bottom: 4px }
.table__s { font-size: 12px; color: var(--txt-d); margin-bottom: 10px }
.table__m { font-size: 13px; color: var(--cyan); font-weight: 600; margin-bottom: 4px }
.table__p { font-size: 12px; color: var(--txt-dd) }
.table__live {
  position: absolute; top: 12px; right: 16px;
  background: var(--coral); color: #fff;
  padding: 3px 10px; border-radius: var(--r-s);
  font-size: 10px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase;
}

/* ===== BRAND overview ===== */
#brand h3 {
  border-left: 3px solid var(--coral);
  padding-left: 14px; margin-top: 30px;
}
#brand p { color: var(--txt); line-height: 1.74 }
.marks {
  display: flex; flex-wrap: wrap; gap: 10px;
  margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--line);
}
.mk {
  padding: 7px 14px;
  background: var(--bg-2);
  border: 1px solid var(--cyan);
  border-radius: var(--r-s);
  font-size: 12px; color: var(--txt); letter-spacing: .4px;
}

/* ===== NOTES (reviews) ===== */
.notes {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
  margin-top: 22px;
}
.note {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 22px 24px;
  display: flex; flex-direction: column; gap: 14px;
}
.note__stars { color: var(--coral); font-size: 16px; letter-spacing: 4px }
.note__stars--four .star-off { color: var(--line-2) }
.note__q { font-size: 14px; line-height: 1.62; color: var(--txt); margin: 0; font-style: italic }
.note__meta {
  display: flex; align-items: center; gap: 10px;
  font-size: 12px; color: var(--txt-d);
  border-top: 1px solid var(--line); padding-top: 14px;
}
.note__a {
  display: flex; align-items: center; justify-content: center;
  width: 32px; height: 32px;
  background: linear-gradient(135deg, var(--coral), var(--cyan));
  border-radius: 50%; color: #08131a; font-weight: 700; font-size: 14px;
  flex: none;
}

/* ===== RAILS (payments) ===== */
.rails {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px;
  margin: 22px 0;
}
.rail {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--r-s);
  padding: 18px 14px;
  text-align: center;
  display: flex; flex-direction: column; gap: 4px;
}
.rail__b { font-size: 15px; color: var(--txt); font-weight: 700 }
.rail i { font-size: 11px; color: var(--txt-d); font-style: normal; text-transform: uppercase; letter-spacing: 1px }
.timings {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px;
  margin-top: 8px;
}
.timings > div {
  background: var(--bg-3);
  border: 1px solid var(--line);
  border-radius: var(--r-s);
  padding: 14px 18px;
  display: flex; flex-direction: column; gap: 4px;
}
.timings em { font-size: 18px; color: var(--coral); font-style: normal }
.timings span { font-size: 12px; color: var(--txt-d) }

/* ===== COLOPHON (pre-footer CTA) ===== */
.colophon {
  text-align: center; padding: 52px 22px;
  background:
    radial-gradient(620px 320px at 50% 45%, rgba(40, 200, 216, .13) 0%, transparent 70%),
    var(--bg-2);
  border-radius: var(--r);
  margin: 32px 22px;
  border: 1px solid var(--line);
  max-width: none;
}
.colophon .folio__rh { justify-content: center }
.colophon h2 { margin-bottom: 10px }
.colophon p { color: var(--txt-d); margin-bottom: 24px }

/* ===== SCRIBE (author note) ===== */
.scribe {
  background: rgba(20, 23, 31, .55);
  border: 1px solid var(--line);
  border-left: 3px solid var(--cyan);
  border-radius: var(--r);
  margin: 32px 22px; max-width: none;
  padding: 34px 30px;
}
.scribe h2 { font-size: clamp(20px, 2.4vw, 26px); margin-bottom: 16px }
.scribe p { color: var(--txt-d); font-size: 14px; line-height: 1.74; max-width: 920px }

/* ===== FAQ ===== */
.faq h2 { margin-bottom: 22px }
details {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-left: 3px solid var(--line-2);
  border-radius: var(--r-s);
  padding: 16px 20px;
  margin: 0 0 10px;
  transition: border-color .2s;
}
details[open] { border-left-color: var(--coral); border-color: var(--line-2) }
summary {
  cursor: pointer; font-weight: 600; list-style: none;
  position: relative; padding-right: 32px;
  display: flex; align-items: center; min-height: 24px;
}
summary::-webkit-details-marker { display: none }
summary::after {
  content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  width: 22px; height: 22px;
  border: 1px solid var(--line); border-radius: var(--r-s);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; color: var(--cyan); font-size: 16px;
  transition: transform .25s;
}
details[open] summary::after { content: "\2013"; border-color: var(--coral); color: var(--coral) }
details p { margin: 12px 0 0; color: var(--txt-d); font-size: 15px; line-height: 1.66 }

/* ===== ENGRAVE (footer) ===== */
.engrave {
  margin-top: 24px;
  border-top: 1px solid var(--line);
  background: rgba(13, 15, 20, .62);
}
.engrave__top {
  max-width: 1220px; margin: 0 auto;
  padding: 42px 22px 26px;
  display: grid; grid-template-columns: 1.4fr 2fr; gap: 36px;
}
.engrave__brand { font-size: 14px; color: var(--txt-d); line-height: 1.66 }
.engrave__logo { display: flex; align-items: center; gap: 10px; margin-bottom: 16px }
.engrave__logo span { display: flex; flex-direction: column; line-height: 1.15 }
.engrave__name { color: var(--txt); font-size: 17px; margin-bottom: 2px }
.engrave__legal { font-size: 12px; color: var(--txt-dd); margin: 0; line-height: 1.66 }
.engrave__cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px }
.engrave__col h4 {
  font-size: 14px; color: var(--cyan); text-transform: none; letter-spacing: .4px;
  margin: 0 0 12px;
}
.engrave__col ul { list-style: none; padding: 0; margin: 0 }
.engrave__col li {
  font-size: 13px; color: var(--txt-d);
  padding: 4px 0; cursor: default; transition: color .15s;
}
.engrave__col li:hover { color: var(--txt) }
.engrave__bottom {
  border-top: 1px solid var(--line);
  padding: 16px 22px;
  max-width: 1220px; margin: 0 auto;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 14px;
  font-size: 12px; color: var(--txt-dd);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .entries--triad { grid-template-columns: 1fr }
  .entries--quad { grid-template-columns: 1fr }
  .rails { grid-template-columns: repeat(3, 1fr) }
  .proclaim__grid { grid-template-columns: repeat(2, 1fr) }
  .notes { grid-template-columns: 1fr }
  .engrave__top { grid-template-columns: 1fr }
  .tally { grid-template-columns: repeat(3, 1fr) }
  .tally__cell:nth-child(4), .tally__cell:nth-child(5) { border-top: 1px dashed var(--line-2); padding-top: 8px }
  .ranks { grid-template-columns: repeat(3, 1fr) }
}

@media (max-width: 880px) {
  .frontis { grid-template-columns: 1fr; gap: 24px; padding-top: 30px }
  .frontis__arms { order: -1 }
  .ways { display: none }
  .masthead { padding: 11px 14px }
  section { padding: 38px 16px }
  .proclaim, .colophon, .scribe { padding: 34px 18px; margin: 22px 14px }
  .engrave__top { padding: 30px 16px 22px; gap: 22px }
  .engrave__cols { grid-template-columns: repeat(2, 1fr); gap: 18px }
  .tally { padding: 8px 14px; grid-template-columns: repeat(2, 1fr); font-size: 12px }
  .tally__cell { padding: 4px 10px }
  .timings { grid-template-columns: 1fr }
  .ensign { grid-template-columns: repeat(2, 1fr) }
  .folio__rh { flex-direction: column; gap: 2px }
}

@media (max-width: 480px) {
  .armory { grid-template-columns: repeat(2, 1fr); gap: 10px }
  .board { grid-template-columns: 1fr }
  .shield h3 { font-size: 13px }
  .shield p { font-size: 11px }
  .shield__field { font-size: 16px }
  .frontis__acts { flex-direction: column; align-items: stretch }
  .crest--gold, .crest--line { width: 100% }
  .rails { grid-template-columns: repeat(2, 1fr) }
  .proclaim__grid { grid-template-columns: 1fr }
  .engrave__cols { grid-template-columns: 1fr }
  .ranks { grid-template-columns: repeat(2, 1fr) }
}
