
:root {
  --ink: #eee5cf;
  --ink-dark: #241c14;
  --muted: #b9ad94;
  --night: #12100d;
  --stone: #1c1915;
  --stone-2: #25211b;
  --wood: #3b2818;
  --wood-dark: #21160f;
  --parchment: #d9c69b;
  --parchment-light: #eee1bf;
  --parchment-dark: #a99062;
  --crimson: #6d2024;
  --crimson-dark: #3b1216;
  --brass: #b7832f;
  --brass-light: #e3c473;
  --iron: #756e63;
  --success: #6e9d67;
  --warning: #d6a447;
  --danger: #b65d58;
  --border: rgba(190, 145, 62, .36);
  --border-soft: rgba(205, 179, 119, .17);
  --shadow: 0 18px 42px rgba(0,0,0,.38);
  --max: 1180px;
  --serif: "Palatino Linotype", "Book Antiqua", Palatino, Georgia, serif;
  --sans: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.62;
  background:
    radial-gradient(circle at 16% -10%, rgba(109,32,36,.22), transparent 30rem),
    radial-gradient(circle at 90% 18%, rgba(183,131,47,.11), transparent 27rem),
    linear-gradient(180deg, #181510, #0f0d0b 70%, #0b0908);
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: url('/assets/grain.svg');
  opacity: .14;
  mix-blend-mode: soft-light;
  z-index: 0;
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.012) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.012) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.5), transparent 80%);
  z-index: 0;
}

a { color: inherit; }
img { max-width: 100%; display: block; }
button, input, textarea, select { font: inherit; }

.skip-link {
  position: fixed; top: 8px; left: 8px; transform: translateY(-140%);
  z-index: 1000; padding: .65rem 1rem; background: var(--parchment-light);
  color: var(--ink-dark); border: 2px solid var(--brass); text-decoration: none;
}
.skip-link:focus { transform: translateY(0); }
.site-shell { position: relative; z-index: 1; }
.container { width: min(calc(100% - 2rem), var(--max)); margin-inline: auto; }

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: linear-gradient(180deg, rgba(31,22,15,.98), rgba(18,14,11,.96));
  border-bottom: 3px ridge rgba(183,131,47,.58);
  box-shadow: 0 8px 24px rgba(0,0,0,.38);
}
.site-header::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 4px;
  background: repeating-linear-gradient(90deg, transparent 0 20px, rgba(227,196,115,.33) 20px 22px, transparent 22px 42px);
}
.nav-wrap { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { display: inline-flex; align-items: center; gap: .75rem; text-decoration: none; min-width: max-content; }
.brand img { width: 58px; height: 58px; object-fit: contain; filter: drop-shadow(0 4px 5px rgba(0,0,0,.45)); }
.brand-copy { display: grid; line-height: 1.05; }
.brand-copy strong { font-family: var(--serif); font-size: 1.28rem; letter-spacing: .07em; text-transform: uppercase; }
.brand-copy span { color: var(--brass-light); font-size: .69rem; letter-spacing: .17em; text-transform: uppercase; }
.nav-links { display: flex; align-items: center; gap: .15rem; }
.nav-links a { position: relative; color: var(--muted); text-decoration: none; padding: .72rem .78rem; font-size: .88rem; font-weight: 750; }
.nav-links a:not(.btn)::after { content: ""; position: absolute; left: .75rem; right: .75rem; bottom: .38rem; height: 1px; background: var(--brass-light); transform: scaleX(0); transform-origin: center; transition: transform .18s ease; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--ink); }
.nav-links a:hover::after, .nav-links a[aria-current="page"]::after { transform: scaleX(1); }
.nav-toggle { display: none; color: var(--ink); background: var(--wood-dark); border: 1px solid var(--border); padding: .64rem .82rem; cursor: pointer; }

.hero { position: relative; overflow: hidden; padding: clamp(4.6rem, 8vw, 7rem) 0 clamp(3.6rem, 6vw, 5rem); }
.hero::before { content: ""; position: absolute; inset: 0 0 auto 45%; height: 640px; background: url('/assets/map-lines.svg') center/cover no-repeat; opacity: .26; filter: sepia(.6); pointer-events: none; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.hero-copy { position: relative; }
.eyebrow, .kicker { display: inline-flex; align-items: center; gap: .55rem; color: var(--brass-light); font-size: .74rem; font-weight: 900; letter-spacing: .18em; text-transform: uppercase; }
.eyebrow::before, .kicker::before { content: "✦"; font-size: .8rem; color: var(--brass); }
h1, h2, h3 { font-family: var(--serif); line-height: 1.08; margin: 0 0 1rem; text-wrap: balance; }
h1 { max-width: 12ch; font-size: clamp(3.15rem, 7.4vw, 6.15rem); letter-spacing: -.045em; text-shadow: 0 3px 0 rgba(0,0,0,.26); }
h2 { font-size: clamp(2rem, 4vw, 3.35rem); letter-spacing: -.025em; }
h3 { font-size: 1.35rem; }
.lede { max-width: 61ch; color: var(--muted); font-size: clamp(1.03rem, 2vw, 1.17rem); }
.gold-text { color: var(--brass-light); text-shadow: 0 2px 0 #4a2a0e; }
.actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.8rem; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 47px; padding: .76rem 1.05rem; border: 1px solid transparent; text-decoration: none; font-weight: 850; cursor: pointer; transition: transform .16s ease, filter .16s ease; }
.btn-primary { color: #241709; background: linear-gradient(#e5cc80, #af7627); border-color: #f1dc95 #714515 #714515 #f1dc95; box-shadow: 0 5px 0 #4f2d0e, 0 10px 22px rgba(0,0,0,.28); }
.btn-primary:hover { transform: translateY(-1px); filter: brightness(1.04); }
.btn-secondary { color: var(--ink); background: linear-gradient(#34271c, #21170f); border-color: #6d5535 #1a100a #1a100a #6d5535; box-shadow: 0 4px 0 #0f0b08; }
.btn-secondary:hover { transform: translateY(-1px); }

.noticeboard {
  position: relative; color: #2a2116; padding: clamp(1.8rem, 4vw, 2.8rem); margin-bottom: 1.7rem;
  background:
    linear-gradient(rgba(255,255,255,.12), rgba(84,55,24,.05)),
    var(--parchment);
  border: 12px solid #3b2817; outline: 3px ridge #76502a;
  box-shadow: var(--shadow), inset 0 0 45px rgba(94,61,22,.18);
  transform: rotate(.35deg);
}
.noticeboard::before, .noticeboard::after { content: ""; position: absolute; width: 13px; height: 13px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #e0ba66, #72501e 70%); box-shadow: 0 2px 3px rgba(0,0,0,.4); }
.noticeboard::before { top: 14px; left: 16px; }
.noticeboard::after { top: 14px; right: 16px; }
.noticeboard h2 { font-size: clamp(1.7rem, 3vw, 2.6rem); max-width: 13ch; color: #2b2014; }
.noticeboard p { color: #54442d; }
.noticeboard-label { display: inline-block; margin-bottom: .85rem; color: #6d2024; font-size: .73rem; font-weight: 900; letter-spacing: .17em; text-transform: uppercase; border-bottom: 1px solid rgba(109,32,36,.35); }
.noticeboard dl { margin: 1.4rem 0 0; display: grid; gap: .6rem; }
.noticeboard dl div { display: flex; justify-content: space-between; gap: 1rem; padding-bottom: .45rem; border-bottom: 1px dashed rgba(64,46,23,.35); }
.noticeboard dt { font-weight: 800; }
.noticeboard dd { margin: 0; color: #6b5534; }
.wax-seal { position: absolute; right: 20px; bottom: -26px; width: 58px; height: 58px; display: grid; place-items: center; color: #d8b662; font-family: var(--serif); font-size: 1.7rem; font-weight: 900; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #9e3737, #61191e 70%); border: 4px double #4c1115; box-shadow: 0 4px 8px rgba(0,0,0,.28); transform: rotate(-8deg); z-index: 2; }

.clan-oath { display: flex; flex-wrap: wrap; gap: .55rem .9rem; padding: 0; margin: 1.35rem 0 0; list-style: none; color: #c6b89f; font-size: .89rem; }
.clan-oath li::before { content: "◆"; color: var(--brass); margin-right: .42rem; font-size: .72rem; }

.section { padding: clamp(3.7rem, 7vw, 6.3rem) 0; }
.section-tight { padding: 1.9rem 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 2rem; margin-bottom: 2rem; }
.section-head p { max-width: 57ch; color: var(--muted); margin: 0; }
.section-head::after { content: ""; display: block; flex: 1; height: 1px; min-width: 80px; background: linear-gradient(90deg, rgba(183,131,47,.55), transparent); margin-bottom: .65rem; }
.grid { display: grid; gap: 1rem; }
.grid-2 { grid-template-columns: repeat(2,minmax(0,1fr)); }
.grid-3 { grid-template-columns: repeat(3,minmax(0,1fr)); }
.grid-4 { grid-template-columns: repeat(4,minmax(0,1fr)); }

.stat-strip { display: grid; grid-template-columns: repeat(4,1fr); background: linear-gradient(180deg,#302419,#1e1711); border: 5px ridge rgba(126,87,43,.7); box-shadow: var(--shadow); }
.stat { padding: 1rem 1.15rem; border-right: 1px solid rgba(205,179,119,.18); }
.stat:last-child { border-right: 0; }
.stat strong { display: block; font-family: var(--serif); color: var(--brass-light); font-size: 1.05rem; }
.stat span { color: var(--muted); font-size: .84rem; }

.card { position: relative; padding: 1.35rem; overflow: hidden; background: linear-gradient(180deg, rgba(255,255,255,.025), transparent), #211b15; border: 1px solid var(--border); border-radius: 3px; box-shadow: 0 12px 32px rgba(0,0,0,.22); }
.card::before { content: ""; position: absolute; inset: 6px; border: 1px solid rgba(218,190,126,.08); pointer-events: none; }
.card p { color: var(--muted); }
.card-link { text-decoration: none; transition: transform .16s ease, border-color .16s ease; }
.card-link:hover { transform: translateY(-2px); border-color: rgba(227,196,115,.58); }
.card .icon, .empty-state .icon { width: 46px; height: 46px; display: grid; place-items: center; margin-bottom: 1rem; background: #17120e; border: 1px solid rgba(183,131,47,.42); transform: rotate(-1deg); }
.card .icon img, .empty-state .icon img { width: 30px; height: 30px; }

.route-grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: 1rem; }
.route-card { position: relative; min-height: 245px; display: flex; flex-direction: column; justify-content: end; padding: 1.7rem; color: var(--ink); text-decoration: none; overflow: hidden; border: 1px solid var(--border); background: linear-gradient(145deg, rgba(109,32,36,.48), rgba(28,22,16,.98)); box-shadow: var(--shadow); }
.route-card:nth-child(2) { background: linear-gradient(145deg, rgba(95,70,31,.48), rgba(28,22,16,.98)); }
.route-card::before { content: ""; position: absolute; inset: 0; opacity: .2; background: url('/assets/map-lines.svg') center/cover; }
.route-card > * { position: relative; }
.route-card h3 { font-size: clamp(1.8rem,3vw,2.6rem); margin-bottom: .5rem; }
.route-card p { max-width: 53ch; color: #cfc2aa; }
.route-card .route-mark { position: absolute; top: 20px; right: 24px; width: 68px; height: 68px; opacity: .85; }
.route-card:hover { border-color: rgba(227,196,115,.68); }

.ledger-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 1rem; }
.ledger-item { position: relative; padding: 1.3rem 1.3rem 1.3rem 4.7rem; min-height: 155px; border-top: 1px solid rgba(227,196,115,.45); border-bottom: 1px solid rgba(227,196,115,.18); }
.ledger-item .icon { position: absolute; left: .2rem; top: 1.3rem; width: 52px; height: 52px; display: grid; place-items: center; border: 1px solid var(--border); background: #17120e; }
.ledger-item .icon img { width: 32px; height: 32px; }
.ledger-item h3 { margin-bottom: .5rem; }
.ledger-item p { color: var(--muted); margin-bottom: 0; }

.callout { position: relative; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 2rem; padding: clamp(1.5rem,4vw,2.4rem); border: 6px ridge rgba(118,80,42,.76); background: linear-gradient(120deg, #3a2417, #21160f); box-shadow: var(--shadow); }
.callout::before { content: ""; position: absolute; inset: 8px; border: 1px solid rgba(227,196,115,.13); pointer-events: none; }
.callout p { color: var(--muted); margin-bottom: 0; }

.page-hero { position: relative; padding: clamp(3.8rem,7vw,5.8rem) 0 3rem; overflow: hidden; border-bottom: 1px solid rgba(183,131,47,.18); }
.page-hero::before { content: ""; position: absolute; right: -120px; top: -130px; width: 650px; height: 520px; background: url('/assets/map-lines.svg') center/contain no-repeat; opacity: .16; }
.page-hero .container { position: relative; }
.page-hero h1 { max-width: 15ch; font-size: clamp(2.8rem,6vw,5rem); }
.breadcrumbs { color: #8f8370; font-size: .83rem; margin-bottom: 1rem; }
.breadcrumbs a { color: var(--brass-light); text-decoration: none; }

.notice { border-left: 4px solid var(--brass); padding: 1rem 1.1rem; color: var(--muted); background: #211a13; border-top: 1px solid rgba(183,131,47,.18); border-bottom: 1px solid rgba(183,131,47,.18); }
.notice strong { color: var(--ink); }
.notice-danger { border-left-color: var(--danger); background: rgba(90,31,31,.22); }
.steps { counter-reset: steps; display: grid; gap: 1rem; }
.step { counter-increment: steps; display: grid; grid-template-columns: 50px 1fr; gap: 1rem; align-items: start; padding-bottom: 1rem; border-bottom: 1px dashed rgba(205,179,119,.16); }
.step::before { content: counter(steps, upper-roman); width: 43px; height: 43px; display: grid; place-items: center; color: #251709; font-family: var(--serif); font-weight: 900; background: var(--parchment); border: 3px double #705024; transform: rotate(-1deg); }
.step h3 { margin-top: .3rem; margin-bottom: .35rem; }
.step p { margin: 0; color: var(--muted); }

.command-list { display: grid; gap: .7rem; }
.command { display: grid; grid-template-columns: minmax(190px,.75fr) 1.25fr; gap: 1rem; align-items: start; padding: 1rem 0; border-bottom: 1px dashed rgba(205,179,119,.16); }
.command:last-child { border-bottom: 0; }
.command p { margin: 0; color: var(--muted); }
code { color: #f0d78f; background: #15110d; border: 1px solid rgba(183,131,47,.22); padding: .18rem .42rem; overflow-wrap: anywhere; }
.tabs { display: flex; gap: .45rem; flex-wrap: wrap; margin: 1.4rem 0; }
.tab-btn { cursor: pointer; color: var(--muted); background: #1b1611; border: 1px solid var(--border-soft); padding: .55rem .85rem; font-weight: 800; }
.tab-btn[aria-selected="true"] { color: #251709; background: var(--parchment); border-color: #6f4d22; }
.tab-panel[hidden] { display: none; }
.badge { display: inline-flex; align-items: center; gap: .35rem; padding: .28rem .55rem; color: var(--brass-light); font-size: .72rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; border: 1px solid var(--border); background: rgba(183,131,47,.08); }
.badge-success { color: #b7d7ad; border-color: rgba(110,157,103,.45); background: rgba(110,157,103,.11); }
.badge-muted { color: var(--muted); }
.table-wrap { overflow-x: auto; border: 1px solid var(--border); }
table { width: 100%; min-width: 650px; border-collapse: collapse; background: #1f1914; }
th, td { text-align: left; padding: 1rem; border-bottom: 1px solid rgba(205,179,119,.13); vertical-align: top; }
th { color: var(--brass-light); font-family: var(--serif); font-size: .77rem; text-transform: uppercase; letter-spacing: .12em; }
td { color: var(--muted); }
.filter-row { display: flex; gap: .75rem; flex-wrap: wrap; margin-bottom: 1.25rem; }
.search-input { flex: 1; min-width: 220px; padding: .78rem .9rem; color: var(--ink); background: #16120e; border: 1px solid var(--border); }
.search-input:focus { outline: 2px solid rgba(227,196,115,.28); border-color: var(--brass-light); }
.empty-state { text-align: center; padding: 2.4rem 1.5rem; color: var(--muted); border: 1px dashed rgba(227,196,115,.34); background: rgba(31,25,20,.55); }
.empty-state .icon { margin-inline: auto; }
.status-list { display: grid; gap: .65rem; }
.status-row { display: flex; justify-content: space-between; gap: 1rem; padding: .82rem 0; border-bottom: 1px dashed rgba(205,179,119,.15); }
.status-row:last-child { border-bottom: 0; }
.status-row span { color: var(--muted); }
.status-dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; margin-right: .45rem; background: var(--iron); box-shadow: 0 0 0 4px rgba(117,110,99,.12); }
.status-dot.online { background: var(--success); box-shadow: 0 0 0 4px rgba(110,157,103,.12); }
.status-dot.degraded { background: var(--warning); box-shadow: 0 0 0 4px rgba(214,164,71,.12); }
.prose { max-width: 78ch; }
.prose h2 { margin-top: 2.5rem; font-size: 2rem; padding-bottom: .45rem; border-bottom: 1px solid rgba(183,131,47,.24); }
.prose h3 { margin-top: 1.8rem; }
.prose p, .prose li { color: var(--muted); }
.prose strong { color: var(--ink); }
.prose a { color: var(--brass-light); }
.quote { margin: 2rem 0; padding: 1.4rem 1.55rem; color: #2f2518; font-family: var(--serif); font-size: 1.25rem; background: var(--parchment); border: 8px solid #3c2817; box-shadow: var(--shadow); transform: rotate(-.2deg); }
.small { font-size: .85rem; color: var(--muted); }
.muted { color: var(--muted); }
.hidden { display: none !important; }

.footer { position: relative; margin-top: 4rem; background: #0b0908; border-top: 5px ridge rgba(111,75,35,.72); }
.footer::before { content: ""; position: absolute; top: -11px; left: 0; right: 0; height: 4px; background: repeating-linear-gradient(90deg, transparent 0 18px, rgba(227,196,115,.28) 18px 20px, transparent 20px 40px); }
.footer-grid { padding: 3rem 0; display: grid; grid-template-columns: 1.35fr repeat(3,.7fr); gap: 2rem; }
.footer h3 { font-size: 1rem; color: var(--brass-light); }
.footer p, .footer a { color: #9f947f; }
.footer a { display: block; text-decoration: none; margin: .36rem 0; }
.footer a:hover { color: var(--ink); }
.footer-bottom { padding: 1rem 0 1.5rem; color: #756e62; font-size: .78rem; display: flex; justify-content: space-between; gap: 1rem; border-top: 1px solid rgba(205,179,119,.10); }

@media (max-width: 980px) {
  .nav-toggle { display: inline-flex; }
  .nav-links { position: absolute; inset: 76px 1rem auto; display: none; flex-direction: column; align-items: stretch; padding: .65rem; background: #17120e; border: 3px ridge rgba(111,75,35,.72); box-shadow: var(--shadow); }
  .nav-links.open { display: flex; }
  .nav-links a { padding: .82rem 1rem; }
  .hero-grid, .route-grid { grid-template-columns: 1fr; }
  .hero::before { left: 15%; }
  .noticeboard { transform: none; }
  .ledger-grid { grid-template-columns: 1fr 1fr; }
  .grid-4 { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .footer-grid { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 720px) {
  .grid-2, .grid-3, .grid-4, .ledger-grid { grid-template-columns: 1fr; }
  .stat-strip { grid-template-columns: repeat(2,1fr); }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid rgba(205,179,119,.18); }
  .section-head { align-items: start; flex-direction: column; }
  .section-head::after { display: none; }
  .callout { grid-template-columns: 1fr; }
  .command { grid-template-columns: 1fr; gap: .45rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; }
  h1 { font-size: clamp(2.85rem,14vw,4.4rem); }
  .noticeboard dl div { display: grid; gap: .1rem; }
  .wax-seal { width: 48px; height: 48px; }
}
@media (prefers-reduced-motion: reduce) {
  *,*::before,*::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}


/* Adventurer's toolkit */
.resource-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 1rem; }
.resource-card { position: relative; min-height: 292px; display: flex; flex-direction: column; padding: 1.35rem; color: var(--ink); text-decoration: none; background: linear-gradient(180deg, rgba(255,255,255,.025), transparent), #211b15; border: 1px solid var(--border); box-shadow: 0 12px 32px rgba(0,0,0,.22); transition: transform .16s ease, border-color .16s ease; }
.resource-card::before { content: ""; position: absolute; inset: 6px; border: 1px solid rgba(218,190,126,.08); pointer-events: none; }
.resource-card:hover { transform: translateY(-2px); border-color: rgba(227,196,115,.62); }
.resource-card .icon { width: 48px; height: 48px; display: grid; place-items: center; margin-bottom: 1rem; border: 1px solid var(--border); background: #17120e; }
.resource-card .icon img { width: 31px; height: 31px; }
.resource-card .badge { align-self: start; }
.resource-card h3 { margin-top: .9rem; margin-bottom: .5rem; font-size: 1.55rem; }
.resource-card p { color: var(--muted); margin: 0 0 1rem; }
.external-label { margin-top: auto; color: var(--brass-light); font-size: .84rem; font-weight: 850; letter-spacing: .04em; }
.install-layout { display: grid; grid-template-columns: .85fr 1.15fr; gap: 1rem; align-items: start; }
.compact-steps .step { grid-template-columns: 44px 1fr; gap: .8rem; padding-bottom: .78rem; }
.compact-steps .step::before { width: 37px; height: 37px; font-size: .82rem; }
.plugin-category { margin-top: 2.4rem; border-top: 5px ridge rgba(126,87,43,.62); background: rgba(24,19,15,.55); box-shadow: 0 12px 32px rgba(0,0,0,.18); }
.plugin-category:first-of-type { margin-top: 0; }
.plugin-category-head { display: grid; grid-template-columns: 1fr minmax(240px,.72fr); gap: 2rem; align-items: end; padding: 1.35rem 1.4rem; background: linear-gradient(90deg, rgba(59,40,24,.85), rgba(27,21,16,.62)); border-bottom: 1px solid rgba(205,179,119,.16); }
.plugin-category-head h2 { margin: .65rem 0 0; font-size: clamp(1.7rem,3vw,2.4rem); }
.plugin-category-head p { margin: 0; color: var(--muted); }
.plugin-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 0 2rem; padding: .2rem 1.4rem .7rem; }
.plugin-entry { padding: 1.25rem 0; border-bottom: 1px dashed rgba(205,179,119,.17); }
.plugin-title { display: flex; align-items: center; justify-content: space-between; gap: .75rem; }
.plugin-title h3 { margin: 0; font-size: 1.28rem; }
.plugin-entry p { margin: .5rem 0 0; color: var(--muted); }
.source-pill { flex: 0 0 auto; padding: .2rem .45rem; color: var(--brass-light); font-size: .67rem; font-weight: 900; letter-spacing: .07em; text-transform: uppercase; background: rgba(183,131,47,.08); border: 1px solid rgba(183,131,47,.32); }
.source-pill-built-in { color: #b7d7ad; background: rgba(110,157,103,.09); border-color: rgba(110,157,103,.38); }

@media (max-width: 1100px) {
  .resource-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 860px) {
  .install-layout, .plugin-category-head { grid-template-columns: 1fr; }
  .plugin-category-head { gap: .55rem; }
}
@media (max-width: 720px) {
  .resource-grid, .plugin-grid { grid-template-columns: 1fr; }
  .resource-card { min-height: 0; }
  .plugin-title { align-items: start; }
}

@media (max-width: 560px) { .brand img { width: 52px; height: 52px; } }

/* Hall of Yon: Mightyon founder monument */
.hall-page-hero {
  padding-bottom: clamp(2.4rem, 5vw, 4rem);
}
.hall-page-hero h1 {
  max-width: 15ch;
}
.hall-founder-section {
  padding-top: 1rem;
}
.mightyon-monument {
  position: relative;
  display: grid;
  grid-template-columns: minmax(250px, .88fr) minmax(0, 1.22fr) minmax(230px, .62fr);
  gap: clamp(1rem, 1.8vw, 1.5rem);
  padding: clamp(1rem, 2vw, 1.45rem);
  overflow: hidden;
  background:
    radial-gradient(circle at 24% 35%, rgba(183,131,47,.14), transparent 27rem),
    linear-gradient(135deg, rgba(59,40,24,.52), rgba(18,15,12,.86) 45%, rgba(10,9,8,.96));
  border: 6px ridge rgba(126,87,43,.78);
  box-shadow: var(--shadow), inset 0 0 0 1px rgba(227,196,115,.13);
}
.mightyon-monument::before {
  content: "";
  position: absolute;
  inset: 10px;
  pointer-events: none;
  border: 1px solid rgba(227,196,115,.16);
}
.mightyon-monument::after {
  content: "Y";
  position: absolute;
  right: 1.2rem;
  bottom: -4.3rem;
  color: rgba(183,131,47,.035);
  font-family: var(--serif);
  font-size: 18rem;
  font-weight: 900;
  line-height: 1;
  pointer-events: none;
}
.mightyon-portrait-panel,
.mightyon-biography,
.mightyon-stats,
.mightyon-quote {
  position: relative;
  z-index: 1;
}
.mightyon-portrait-frame {
  height: 100%;
  min-height: 620px;
  overflow: hidden;
  background: #0e0c09;
  border: 5px ridge rgba(126,87,43,.8);
  box-shadow: 0 18px 34px rgba(0,0,0,.42), inset 0 0 34px rgba(0,0,0,.3);
}
.mightyon-portrait-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  filter: saturate(.86) contrast(1.04) brightness(.93);
}
.mightyon-biography {
  min-width: 0;
  align-self: center;
  padding: clamp(.4rem, 1vw, .9rem) 0;
}
.mightyon-title-row {
  position: relative;
  display: flex;
  justify-content: space-between;
  gap: .6rem;
  align-items: start;
  margin: .8rem 0 1.3rem;
  padding: 0 3rem 1rem 0;
  border-bottom: 1px solid rgba(183,131,47,.42);
}
.mightyon-title-row > div {
  min-width: 0;
  max-width: 100%;
}
.mightyon-title-row h2 {
  margin: 0;
  color: var(--brass-light);
  max-width: 100%;
  font-size: clamp(3rem, 4.25vw, 4.45rem);
  line-height: .92;
  letter-spacing: -.015em;
  text-transform: uppercase;
  text-shadow: 0 3px 0 #4a2a0e, 0 8px 20px rgba(0,0,0,.42);
}
.mightyon-rank {
  margin: .15rem 0 0;
  color: var(--parchment);
  font-family: var(--serif);
  font-size: clamp(1rem, 1.8vw, 1.35rem);
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.mightyon-crown {
  position: absolute;
  top: .2rem;
  right: 0;
  color: var(--brass-light);
  font-size: clamp(2.2rem, 3vw, 3rem);
  line-height: 1;
  text-shadow: 0 4px 0 #4a2a0e;
  transform: rotate(4deg);
}
.mightyon-biography p {
  margin: 0 0 1.05rem;
  color: #c9bea8;
}
.mightyon-biography strong {
  color: #f0d78f;
}
.mightyon-declaration {
  margin-top: 1.35rem !important;
  color: var(--brass-light) !important;
  font-family: var(--serif);
  font-size: clamp(1.35rem, 2.2vw, 1.8rem);
  font-weight: 900;
  line-height: 1.2;
}
.mightyon-stats {
  align-self: stretch;
  padding: 1.15rem;
  background: linear-gradient(180deg, rgba(42,33,24,.93), rgba(17,14,11,.96));
  border: 3px double rgba(183,131,47,.58);
  box-shadow: inset 0 0 28px rgba(0,0,0,.35);
}
.mightyon-stats-header {
  display: flex;
  gap: .8rem;
  align-items: center;
  padding-bottom: .9rem;
  border-bottom: 1px solid rgba(183,131,47,.3);
}
.mightyon-stats-header .icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  background: #17120e;
  border: 1px solid var(--border);
}
.mightyon-stats-header .icon img {
  width: 28px;
  height: 28px;
}
.mightyon-stats-header span {
  display: block;
  color: var(--muted);
  font-size: .68rem;
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.mightyon-stats-header h3 {
  margin: .2rem 0 0;
  color: var(--brass-light);
  font-size: 1.35rem;
}
.legend-stat-list {
  margin: .75rem 0 1rem;
}
.legend-stat-list > div {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: .7rem;
  align-items: center;
  padding: .72rem 0;
  border-bottom: 1px dashed rgba(205,179,119,.18);
}
.legend-stat-list dt {
  color: #d8cdb8;
  font-family: var(--serif);
  font-size: .88rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.legend-stat-list dd {
  margin: 0;
  color: var(--brass-light);
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 900;
  line-height: .95;
  text-align: right;
}
.legend-stat-list dd small {
  display: block;
  margin-top: .28rem;
  color: #a99c85;
  font-family: var(--sans);
  font-size: .56rem;
  font-weight: 900;
  letter-spacing: .1em;
}
.mightyon-titles {
  padding: .9rem;
  background: rgba(183,131,47,.06);
  border: 1px solid rgba(183,131,47,.27);
}
.mightyon-titles h3 {
  margin: 0 0 .6rem;
  color: var(--brass-light);
  font-size: 1rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.mightyon-titles ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.mightyon-titles li {
  padding: .22rem 0;
  color: #c9bea8;
  font-family: var(--serif);
  font-size: .87rem;
}
.mightyon-titles li::before {
  content: "♛";
  margin-right: .45rem;
  color: var(--brass);
}
.mightyon-quote {
  grid-column: 1 / -1;
  margin: 0;
  padding: 1.35rem clamp(1.2rem, 3vw, 2.4rem);
  text-align: center;
  background: linear-gradient(180deg, rgba(52,39,28,.93), rgba(28,21,16,.98));
  border: 3px double rgba(183,131,47,.5);
}
.mightyon-quote p {
  margin: 0;
  color: var(--brass-light);
  font-family: var(--serif);
  font-size: clamp(1.35rem, 2.6vw, 2rem);
  font-weight: 800;
  line-height: 1.28;
}
.mightyon-quote cite {
  display: block;
  margin-top: .6rem;
  color: var(--muted);
  font-family: var(--serif);
  font-style: normal;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.hall-records-heading {
  padding-top: clamp(3.4rem, 6vw, 5rem);
}

@media (min-width: 1081px) and (max-width: 1280px) {
  .mightyon-title-row h2 {
    font-size: clamp(3.15rem, 4.7vw, 3.85rem);
  }
  .mightyon-rank {
    font-size: 1rem;
    letter-spacing: .13em;
  }
}

@media (max-width: 1080px) {
  .mightyon-monument {
    grid-template-columns: minmax(270px, .8fr) minmax(340px, 1.2fr);
  }
  .mightyon-stats {
    grid-column: 1 / -1;
  }
  .legend-stat-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 1.5rem;
  }
}
@media (max-width: 760px) {
  .mightyon-monument {
    grid-template-columns: 1fr;
    padding: .8rem;
  }
  .mightyon-portrait-frame {
    min-height: 0;
    aspect-ratio: 561 / 669;
  }
  .mightyon-biography {
    padding: .8rem .35rem .2rem;
  }
  .mightyon-title-row h2 {
    font-size: clamp(2.75rem, 15vw, 4.3rem);
  }
  .mightyon-stats,
  .mightyon-quote {
    grid-column: auto;
  }
  .legend-stat-list {
    grid-template-columns: 1fr;
  }
  .mightyon-quote p {
    font-size: 1.35rem;
  }
}

/* Hall of Yon mobile presentation overhaul — v15 */
.mightyon-portrait-frame picture {
  display: block;
  width: 100%;
  height: 100%;
}
.mightyon-portrait-panel,
.mightyon-biography,
.mightyon-stats,
.mightyon-quote,
.mightyon-title-row > div {
  min-width: 0;
}

@media (max-width: 760px) {
  html,
  body,
  .site-shell {
    max-width: 100%;
    overflow-x: clip;
  }

  .container {
    width: min(calc(100% - 1.25rem), var(--max));
  }

  .site-header {
    box-shadow: 0 5px 18px rgba(0,0,0,.34);
  }
  .nav-wrap {
    min-height: 68px;
    gap: .65rem;
  }
  .brand {
    gap: .5rem;
    min-width: 0;
  }
  .brand img {
    width: 46px;
    height: 46px;
    flex: 0 0 46px;
  }
  .brand-copy {
    min-width: 0;
  }
  .brand-copy strong {
    font-size: 1.05rem;
    letter-spacing: .075em;
  }
  .brand-copy span {
    font-size: .56rem;
    letter-spacing: .14em;
    white-space: nowrap;
  }
  .nav-toggle {
    min-height: 44px;
    padding: .55rem .72rem;
    flex: 0 0 auto;
  }
  .nav-links {
    inset: 68px .625rem auto;
  }

  .hall-page-hero {
    padding: 1.55rem 0 1.8rem;
  }
  .hall-page-hero .breadcrumbs {
    margin-bottom: .65rem;
    font-size: .82rem;
  }
  .hall-page-hero .eyebrow {
    font-size: .63rem;
    line-height: 1.35;
    letter-spacing: .115em;
  }
  .hall-page-hero h1 {
    max-width: 11ch;
    margin-top: .55rem;
    font-size: clamp(2.3rem, 11vw, 3.15rem);
    line-height: .96;
  }
  .hall-page-hero .lede {
    max-width: 31rem;
    margin: .8rem 0 0;
    font-size: .96rem;
    line-height: 1.48;
  }

  .hall-founder-section {
    padding: .75rem 0 2rem;
  }
  .hall-founder-section > .container {
    width: min(calc(100% - 1rem), var(--max));
  }
  .mightyon-monument {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 0;
    overflow: hidden;
    background:
      radial-gradient(circle at 50% 4%, rgba(183,131,47,.18), transparent 18rem),
      linear-gradient(180deg, #211a14 0%, #100d0b 48%, #0c0a08 100%);
    border: 2px solid rgba(183,131,47,.5);
    border-radius: 4px;
    box-shadow: 0 16px 38px rgba(0,0,0,.42), inset 0 0 0 1px rgba(227,196,115,.08);
  }
  .mightyon-monument::before {
    inset: 6px;
    border-color: rgba(227,196,115,.1);
  }
  .mightyon-monument::after {
    display: none;
  }

  .mightyon-portrait-panel {
    order: 1;
    width: 100%;
    padding: .5rem .5rem 0;
  }
  .mightyon-portrait-frame {
    width: 100%;
    min-height: 0;
    aspect-ratio: 4 / 3;
    border: 1px solid rgba(183,131,47,.58);
    border-radius: 2px;
    box-shadow: 0 12px 24px rgba(0,0,0,.38);
  }
  .mightyon-portrait-frame img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 40%;
    filter: saturate(.9) contrast(1.05) brightness(.94);
  }

  .mightyon-biography {
    order: 2;
    width: 100%;
    align-self: stretch;
    padding: 1rem 1rem 1.1rem;
    background: linear-gradient(180deg, rgba(32,25,19,.9), rgba(16,13,10,.98));
    border-top: 1px solid rgba(183,131,47,.25);
  }
  .mightyon-biography .kicker {
    display: flex;
    width: fit-content;
    max-width: 100%;
    padding: .32rem .48rem;
    background: rgba(183,131,47,.08);
    border: 1px solid rgba(183,131,47,.24);
    font-size: .6rem;
    line-height: 1.35;
    letter-spacing: .095em;
    overflow-wrap: anywhere;
  }
  .mightyon-title-row {
    align-items: center;
    gap: .65rem;
    margin: .78rem 0 1rem;
    padding: 0 2.75rem .8rem 0;
  }
  .mightyon-title-row h2 {
    max-width: 100%;
    margin: 0;
    font-size: clamp(2.55rem, 13vw, 3.35rem);
    line-height: .88;
    letter-spacing: -.025em;
    overflow-wrap: normal;
    word-break: normal;
  }
  .mightyon-rank {
    margin-top: .42rem;
    font-size: .78rem;
    line-height: 1.35;
    letter-spacing: .115em;
  }
  .mightyon-crown {
    top: -.05rem;
    right: .1rem;
    display: grid;
    width: 2.2rem;
    height: 2.2rem;
    place-items: center;
    font-size: 1.55rem;
    background: rgba(183,131,47,.1);
    border: 1px solid rgba(183,131,47,.35);
    border-radius: 50%;
    text-shadow: 0 2px 0 #4a2a0e;
  }
  .mightyon-biography p {
    margin: 0 0 .95rem;
    color: #d2c7b2;
    font-size: .98rem;
    line-height: 1.58;
    overflow-wrap: break-word;
  }
  .mightyon-biography p:last-child {
    margin-bottom: 0;
  }
  .mightyon-declaration {
    margin: 1.2rem 0 0 !important;
    padding: .9rem 1rem;
    color: var(--brass-light) !important;
    background: linear-gradient(90deg, rgba(183,131,47,.14), rgba(183,131,47,.025));
    border-left: 3px solid var(--brass);
    font-size: 1.27rem !important;
    line-height: 1.25 !important;
  }

  .mightyon-stats {
    order: 3;
    width: calc(100% - 1rem);
    align-self: auto;
    margin: .5rem;
    padding: .9rem;
    overflow: hidden;
    background: linear-gradient(180deg, rgba(41,32,23,.96), rgba(19,15,12,.98));
    border: 1px solid rgba(183,131,47,.48);
    border-radius: 3px;
    box-shadow: inset 0 0 22px rgba(0,0,0,.3);
  }
  .mightyon-stats-header {
    display: flex;
    align-items: center;
    gap: .68rem;
    padding: 0 0 .78rem;
  }
  .mightyon-stats-header .icon {
    display: grid;
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    place-items: center;
    overflow: hidden;
    background: #15110d;
    border: 1px solid rgba(183,131,47,.34);
  }
  .mightyon-stats-header .icon img {
    width: 24px !important;
    height: 24px !important;
    max-width: 24px !important;
    object-fit: contain;
  }
  .mightyon-stats-header span {
    font-size: .61rem;
    line-height: 1.2;
  }
  .mightyon-stats-header h3 {
    margin-top: .18rem;
    font-size: 1.2rem;
  }
  .legend-stat-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .55rem;
    margin: .75rem 0 .8rem;
  }
  .legend-stat-list > div {
    display: grid;
    grid-template-columns: 1fr;
    align-content: space-between;
    min-width: 0;
    min-height: 92px;
    gap: .5rem;
    padding: .72rem;
    background: rgba(183,131,47,.05);
    border: 1px solid rgba(205,179,119,.16);
  }
  .legend-stat-list > div:last-child {
    grid-column: 1 / -1;
    min-height: 76px;
  }
  .legend-stat-list dt {
    min-width: 0;
    color: #cfc4ae;
    font-size: .67rem;
    line-height: 1.3;
    letter-spacing: .06em;
    overflow-wrap: anywhere;
  }
  .legend-stat-list dd {
    width: 100%;
    margin: 0;
    color: var(--brass-light);
    font-size: 1.5rem;
    line-height: 1;
    text-align: left;
    overflow-wrap: anywhere;
  }
  .legend-stat-list dd small {
    display: block;
    margin-top: .32rem;
    color: #a99c85;
    font-size: .5rem;
    line-height: 1.25;
    letter-spacing: .075em;
    overflow-wrap: anywhere;
  }
  .mightyon-titles {
    padding: .8rem;
    background: rgba(183,131,47,.055);
  }
  .mightyon-titles h3 {
    margin-bottom: .55rem;
    font-size: .95rem;
  }
  .mightyon-titles li {
    padding: .3rem 0;
    font-size: .84rem;
    line-height: 1.35;
  }

  .mightyon-quote {
    order: 4;
    width: calc(100% - 1rem);
    margin: 0 .5rem .5rem;
    padding: 1rem .9rem;
    background: linear-gradient(180deg, rgba(52,39,28,.92), rgba(25,19,15,.98));
    border: 1px solid rgba(183,131,47,.46);
    border-radius: 3px;
  }
  .mightyon-quote p {
    font-size: 1.12rem;
    line-height: 1.35;
  }
  .mightyon-quote cite {
    margin-top: .5rem;
    font-size: .64rem;
  }

  .hall-records-heading {
    padding: 2.3rem 0 1.3rem;
  }
  .hall-records-heading .section-head {
    gap: .65rem;
    margin-bottom: 0;
  }
  .hall-records-heading .kicker {
    font-size: .63rem;
    letter-spacing: .11em;
  }
  .hall-records-heading h2 {
    margin-top: .35rem;
    font-size: 2rem;
  }
  .hall-records-heading .section-head p {
    font-size: .94rem;
    line-height: 1.55;
  }
}

@media (max-width: 380px) {
  .brand-copy strong {
    font-size: .98rem;
  }
  .brand-copy span {
    font-size: .51rem;
    letter-spacing: .11em;
  }
  .mightyon-title-row h2 {
    font-size: 2.38rem;
  }
  .mightyon-biography {
    padding-inline: .85rem;
  }
  .mightyon-stats {
    padding: .78rem;
  }
  .legend-stat-list {
    grid-template-columns: 1fr;
  }
  .legend-stat-list > div:last-child {
    grid-column: auto;
  }
}

@media (min-width: 761px) {
  .mightyon-crown {
    display: none;
  }
}


/* Hall achievement ledger — v16 */
.hall-latest-section {
  padding-top: .8rem;
}
.hall-latest-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 1.25rem;
}
.hall-latest-head h2,
.hall-category-heading h2 {
  margin: .4rem 0 0;
}
.hall-latest-head p {
  max-width: 47ch;
  margin: 0;
  color: var(--muted);
}
.hall-record-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}
.hall-record-card {
  position: relative;
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 1.1rem;
  min-width: 0;
  padding: 1.35rem;
  overflow: hidden;
  background:
    radial-gradient(circle at 0 0, rgba(183,131,47,.12), transparent 16rem),
    linear-gradient(145deg, rgba(52,39,28,.93), rgba(23,18,14,.98));
  border: 1px solid rgba(183,131,47,.42);
  box-shadow: 0 14px 34px rgba(0,0,0,.24);
}
.hall-record-card::after {
  content: "";
  position: absolute;
  inset: 6px;
  pointer-events: none;
  border: 1px solid rgba(227,196,115,.08);
}
.hall-record-card-featured {
  grid-column: 1 / -1;
  grid-template-columns: 94px minmax(0, 1fr);
  padding: clamp(1.35rem, 3vw, 2rem);
  background:
    radial-gradient(circle at 8% 25%, rgba(214,164,71,.2), transparent 18rem),
    linear-gradient(125deg, rgba(69,45,24,.96), rgba(24,18,14,.98) 55%, rgba(16,13,10,.99));
  border: 3px double rgba(227,196,115,.55);
}
.hall-record-icon {
  position: relative;
  z-index: 1;
  width: 76px;
  height: 76px;
  display: grid;
  place-items: center;
  color: var(--brass-light);
  font-size: 2.8rem;
  line-height: 1;
  background: linear-gradient(145deg, #241a12, #110d0a);
  border: 1px solid rgba(227,196,115,.45);
  box-shadow: inset 0 0 20px rgba(0,0,0,.32), 0 8px 18px rgba(0,0,0,.28);
}
.hall-record-card-featured .hall-record-icon {
  width: 94px;
  height: 94px;
  font-size: 3.5rem;
}
.hall-record-icon img {
  width: 52%;
  height: 52%;
  object-fit: contain;
}
.hall-record-copy {
  position: relative;
  z-index: 1;
  min-width: 0;
}
.hall-record-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .55rem .75rem;
  margin-bottom: .6rem;
}
.hall-record-meta time {
  color: #a99c85;
  font-size: .76rem;
  font-weight: 750;
  letter-spacing: .04em;
}
.hall-record-card h3 {
  margin: 0;
  color: var(--brass-light);
  font-size: clamp(1.65rem, 3vw, 2.35rem);
}
.hall-record-card p {
  margin: .55rem 0 0;
  color: var(--muted);
}
.hall-record-card .hall-record-achievement {
  margin-top: .22rem;
  color: var(--parchment-light);
  font-family: var(--serif);
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  font-weight: 800;
}
.hall-category-heading {
  margin-bottom: 1.2rem;
}
.hall-categories-section {
  padding-top: 2.5rem;
  padding-bottom: clamp(3.7rem, 7vw, 6.3rem);
}

@media (max-width: 760px) {
  .hall-latest-section {
    padding-top: .4rem;
  }
  .hall-latest-head {
    display: grid;
    gap: .55rem;
    margin-bottom: 1rem;
  }
  .hall-latest-head h2,
  .hall-category-heading h2 {
    font-size: 1.9rem;
  }
  .hall-latest-head p {
    font-size: .92rem;
    line-height: 1.5;
  }
  .hall-record-grid {
    grid-template-columns: 1fr;
  }
  .hall-record-card,
  .hall-record-card-featured {
    grid-column: auto;
    grid-template-columns: 62px minmax(0, 1fr);
    gap: .85rem;
    padding: 1rem;
    border-width: 1px;
  }
  .hall-record-icon,
  .hall-record-card-featured .hall-record-icon {
    width: 62px;
    height: 62px;
    font-size: 2.25rem;
  }
  .hall-record-meta {
    gap: .45rem;
    margin-bottom: .42rem;
  }
  .hall-record-meta .badge {
    font-size: .62rem;
  }
  .hall-record-meta time {
    width: 100%;
    font-size: .7rem;
  }
  .hall-record-card h3 {
    font-size: 1.6rem;
  }
  .hall-record-card .hall-record-achievement {
    font-size: 1.02rem;
  }
  .hall-record-card p {
    font-size: .9rem;
    line-height: 1.48;
  }
  .hall-categories-section {
    padding-top: 2rem;
  }
}

@media (max-width: 390px) {
  .hall-record-card,
  .hall-record-card-featured {
    grid-template-columns: 50px minmax(0, 1fr);
    gap: .7rem;
    padding: .85rem;
  }
  .hall-record-icon,
  .hall-record-card-featured .hall-record-icon {
    width: 50px;
    height: 50px;
    font-size: 1.8rem;
  }
}

/* Hall achievement ledger — illustrated champion records */
.hall-record-card-with-art {
  display: grid;
  grid-template-columns: minmax(320px, 46%) minmax(0, 1fr);
  gap: 0;
  padding: 0;
  align-items: stretch;
}
.hall-record-card-with-art::after {
  z-index: 3;
}
.hall-record-art {
  position: relative;
  z-index: 1;
  min-width: 0;
  min-height: 340px;
  margin: 0;
  overflow: hidden;
  border-right: 1px solid rgba(227,196,115,.34);
  background: #0f0c0a;
}
.hall-record-art::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, transparent 70%, rgba(18,13,9,.7) 100%),
    linear-gradient(0deg, rgba(12,9,7,.62), transparent 28%);
}
.hall-record-art img {
  width: 100%;
  height: 100%;
  min-height: 340px;
  display: block;
  object-fit: cover;
  object-position: center;
  transition: transform .45s ease;
}
.hall-record-card-with-art:hover .hall-record-art img {
  transform: scale(1.015);
}
.hall-record-card-with-art .hall-record-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(1.35rem, 3.2vw, 2.4rem);
}
.hall-record-identity {
  display: grid;
  grid-template-columns: 66px minmax(0, 1fr);
  gap: .9rem;
  align-items: center;
  margin-top: .15rem;
}
.hall-record-identity .hall-record-icon {
  width: 66px;
  height: 66px;
  font-size: 2.25rem;
}
.hall-record-titles {
  min-width: 0;
}
.hall-record-titles h3,
.hall-record-titles .hall-record-achievement {
  overflow-wrap: anywhere;
}
.hall-record-detail {
  max-width: 68ch;
  font-size: 1rem;
  line-height: 1.68;
}
.hall-record-quote {
  position: relative;
  margin: 1.25rem 0 0;
  padding: 1rem 1.1rem 1rem 1.25rem;
  border-left: 3px solid var(--brass-light);
  background: rgba(0,0,0,.22);
}
.hall-record-quote p {
  margin: 0;
  color: var(--parchment-light);
  font-family: var(--serif);
  font-size: clamp(1rem, 1.8vw, 1.18rem);
  font-weight: 700;
  line-height: 1.55;
}
.hall-record-quote cite {
  display: block;
  margin-top: .55rem;
  color: var(--brass-light);
  font-size: .72rem;
  font-style: normal;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}

@media (max-width: 900px) {
  .hall-record-card-with-art {
    grid-template-columns: 1fr;
  }
  .hall-record-art {
    min-height: 0;
    aspect-ratio: 1 / 1;
    border-right: 0;
    border-bottom: 1px solid rgba(227,196,115,.34);
  }
  .hall-record-art::after {
    background: linear-gradient(0deg, rgba(14,10,8,.7), transparent 32%);
  }
  .hall-record-art img {
    min-height: 0;
    object-position: center 38%;
  }
}

@media (max-width: 760px) {
  .hall-record-card-with-art,
  .hall-record-card-featured.hall-record-card-with-art {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    padding: 0;
    border: 1px solid rgba(227,196,115,.45);
  }
  .hall-record-card-with-art .hall-record-copy {
    padding: 1.05rem;
  }
  .hall-record-art {
    aspect-ratio: 1 / 1;
  }
  .hall-record-identity {
    grid-template-columns: 54px minmax(0, 1fr);
    gap: .75rem;
  }
  .hall-record-identity .hall-record-icon {
    width: 54px;
    height: 54px;
  }
  .hall-record-card-with-art .hall-record-meta time {
    width: auto;
  }
  .hall-record-detail {
    font-size: .93rem;
    line-height: 1.58;
  }
  .hall-record-quote {
    margin-top: 1rem;
    padding: .85rem .9rem .85rem 1rem;
  }
  .hall-record-quote p {
    font-size: .98rem;
  }
}

@media (max-width: 430px) {
  .hall-record-art {
    aspect-ratio: 1 / 1;
  }
  .hall-record-card-with-art .hall-record-copy {
    padding: .9rem;
  }
  .hall-record-meta {
    align-items: flex-start;
  }
  .hall-record-card-with-art .hall-record-meta time {
    width: 100%;
  }
  .hall-record-identity {
    grid-template-columns: 48px minmax(0, 1fr);
  }
  .hall-record-identity .hall-record-icon {
    width: 48px;
    height: 48px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hall-record-art img {
    transition: none;
  }
  .hall-record-card-with-art:hover .hall-record-art img {
    transform: none;
  }
}

/* Open recruitment and live competition tracker — v18 */
.btn-join-discord {
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(255, 225, 139, .18), 0 12px 28px rgba(0, 0, 0, .32);
}
.btn-join-discord::after {
  content: "";
  position: absolute;
  inset: -60% auto -60% -30%;
  width: 24%;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .42), transparent);
  transform: rotate(18deg);
  animation: yon-invite-shine 4.8s ease-in-out infinite;
}
@keyframes yon-invite-shine {
  0%, 62% { left: -32%; }
  82%, 100% { left: 128%; }
}

.join-hero {
  position: relative;
  padding: clamp(4.2rem, 8vw, 7.6rem) 0 clamp(3rem, 6vw, 5rem);
  overflow: hidden;
  border-bottom: 1px solid rgba(183, 131, 47, .28);
  background:
    radial-gradient(circle at 74% 35%, rgba(183, 131, 47, .2), transparent 23rem),
    radial-gradient(circle at 12% 5%, rgba(109, 32, 36, .24), transparent 30rem),
    linear-gradient(135deg, rgba(19, 15, 11, .98), rgba(11, 9, 7, .99));
}
.join-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, transparent 0 49.8%, rgba(227, 196, 115, .035) 50%, transparent 50.2%),
    url('/assets/map-lines.svg') 108% 10% / min(760px, 74vw) auto no-repeat;
  opacity: .55;
}
.join-hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 8px;
  background: repeating-linear-gradient(90deg, transparent 0 30px, rgba(227, 196, 115, .34) 30px 34px, transparent 34px 66px);
}
.join-hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, .85fr);
  gap: clamp(2rem, 6vw, 5.5rem);
  align-items: center;
}
.join-hero-copy h1 {
  max-width: 10ch;
  margin-bottom: 1rem;
  font-size: clamp(3.5rem, 7vw, 6.7rem);
  line-height: .94;
}
.join-hero-copy .lede {
  max-width: 62ch;
}
.invite-address {
  display: inline-grid;
  gap: .1rem;
  margin-top: 1.35rem;
  padding: .72rem 1rem .76rem;
  border-left: 3px solid var(--brass-light);
  background: rgba(0, 0, 0, .26);
}
.invite-address span {
  color: var(--muted);
  font-size: .7rem;
  font-weight: 850;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.invite-address strong {
  color: var(--parchment-light);
  font-family: var(--serif);
  font-size: clamp(1.2rem, 3vw, 1.65rem);
  letter-spacing: .025em;
}
.join-decree {
  position: relative;
  padding: 11px;
  background: linear-gradient(145deg, #754f25, #c19745 38%, #513417 72%, #9d7132);
  box-shadow: 0 28px 60px rgba(0, 0, 0, .48);
  transform: rotate(.75deg);
}
.join-decree::before,
.join-decree::after {
  content: "";
  position: absolute;
  pointer-events: none;
  border: 1px solid rgba(255, 225, 139, .32);
}
.join-decree::before { inset: 4px; }
.join-decree::after { inset: 16px; border-color: rgba(65, 39, 15, .75); }
.join-decree-frame {
  min-height: 480px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: clamp(2rem, 5vw, 3.4rem);
  text-align: center;
  background:
    radial-gradient(circle at 50% 20%, rgba(199, 155, 74, .16), transparent 18rem),
    linear-gradient(165deg, #241b13, #110d0a 68%);
  border: 5px double rgba(227, 196, 115, .43);
}
.join-decree-crest {
  width: min(180px, 44vw);
  height: auto;
  margin-bottom: 1.2rem;
  filter: drop-shadow(0 14px 22px rgba(0, 0, 0, .45));
}
.join-decree h2 {
  max-width: 12ch;
  margin: .65rem auto .85rem;
  color: var(--brass-light);
  font-size: clamp(2.25rem, 4vw, 3.45rem);
  line-height: 1.03;
}
.join-decree p {
  max-width: 30ch;
  margin: 0;
  color: var(--muted);
}
.join-decree-seal {
  width: 68px;
  height: 68px;
  display: grid;
  place-items: center;
  margin-top: 1.6rem;
  color: #e4bdbd;
  font-family: var(--serif);
  font-size: 2rem;
  font-weight: 900;
  background: radial-gradient(circle at 35% 30%, #98363d, #5b151c 72%);
  border: 3px double #c8797d;
  border-radius: 50%;
  box-shadow: 0 8px 18px rgba(0, 0, 0, .35);
  transform: rotate(-7deg);
}
.join-proof-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  background: linear-gradient(90deg, rgba(61, 43, 27, .72), rgba(27, 21, 16, .92));
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.join-proof-strip > div {
  min-width: 0;
  padding: 1.15rem 1.2rem;
  border-right: 1px solid rgba(205, 179, 119, .16);
}
.join-proof-strip > div:last-child { border-right: 0; }
.join-proof-strip strong,
.join-proof-strip span { display: block; }
.join-proof-strip strong { color: var(--parchment-light); }
.join-proof-strip span { margin-top: .1rem; color: var(--muted); font-size: .78rem; }
.join-steps-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}
.join-step-card {
  position: relative;
  min-height: 260px;
  padding: 1.35rem;
  overflow: hidden;
  background:
    linear-gradient(145deg, rgba(52, 39, 28, .94), rgba(20, 16, 12, .98));
  border: 1px solid rgba(183, 131, 47, .35);
}
.join-step-card::after {
  content: "";
  position: absolute;
  inset: 7px;
  pointer-events: none;
  border: 1px solid rgba(227, 196, 115, .06);
}
.join-step-number {
  display: block;
  margin-bottom: 2.6rem;
  color: var(--brass-light);
  font-family: var(--serif);
  font-size: 2.2rem;
  font-weight: 900;
}
.join-step-card h3 { font-size: 1.35rem; }
.join-step-card p { color: var(--muted); }
.join-fit-section { padding-top: 1rem; }
.join-fit-card h3 { margin-top: .8rem; }
.join-final-callout {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2rem;
  align-items: center;
  padding: clamp(1.8rem, 5vw, 3rem);
  overflow: hidden;
  background:
    radial-gradient(circle at 85% 50%, rgba(214, 164, 71, .18), transparent 20rem),
    linear-gradient(120deg, #2f2014, #14100d 66%);
  border: 4px double rgba(227, 196, 115, .42);
  box-shadow: var(--shadow);
}
.join-final-callout::after {
  content: "Y";
  position: absolute;
  right: 12%;
  top: 50%;
  color: rgba(227, 196, 115, .04);
  font-family: var(--serif);
  font-size: 13rem;
  font-weight: 900;
  line-height: 1;
  transform: translateY(-50%);
}
.join-final-callout > * { position: relative; z-index: 1; }
.join-final-callout h2 { margin: .35rem 0 .3rem; }
.join-final-callout p { margin: 0; color: var(--muted); }
.home-open-callout .actions { justify-content: flex-end; }

.events-hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 5px;
  background: linear-gradient(90deg, transparent, var(--brass), transparent);
  opacity: .55;
}
.live-competitions-section { padding-bottom: 2.4rem; }
.competition-section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2rem;
  align-items: end;
  margin-bottom: 1.35rem;
}
.competition-section-head h2 { margin: .35rem 0 .4rem; }
.competition-section-head p { max-width: 66ch; margin: 0; color: var(--muted); }
.competition-toolbar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: .75rem;
  flex-wrap: wrap;
}
.competition-live-status {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .48rem .72rem;
  color: var(--muted);
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .07em;
  text-transform: uppercase;
  border: 1px solid rgba(205, 179, 119, .22);
  background: rgba(0, 0, 0, .2);
}
.competition-live-status::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--iron);
  box-shadow: 0 0 0 4px rgba(117, 110, 99, .12);
}
.competition-live-status-loading::before { background: var(--warning); animation: yon-live-pulse 1.25s ease-in-out infinite; }
.competition-live-status-live::before { background: var(--success); box-shadow: 0 0 0 4px rgba(110, 157, 103, .12); }
.competition-live-status-ready::before,
.competition-live-status-cached::before { background: var(--brass-light); }
.competition-live-status-error::before { background: var(--danger); }
@keyframes yon-live-pulse { 50% { opacity: .34; transform: scale(.72); } }
.competition-refresh:disabled { cursor: wait; opacity: .58; }
.competition-board {
  display: grid;
  gap: 1.25rem;
  min-height: 240px;
}
.competition-loading-state,
.competition-empty-state {
  display: grid;
  justify-items: center;
  gap: .45rem;
  padding: clamp(2.6rem, 8vw, 5.4rem) 1.5rem;
  text-align: center;
  color: var(--muted);
  background:
    radial-gradient(circle at 50% 35%, rgba(183, 131, 47, .12), transparent 18rem),
    rgba(24, 19, 15, .68);
  border: 1px dashed rgba(227, 196, 115, .32);
}
.competition-loading-state h3,
.competition-empty-state h3 { margin: .5rem 0 0; color: var(--parchment-light); }
.competition-loading-state p,
.competition-empty-state p { max-width: 58ch; margin: 0 0 .7rem; }
.competition-loading-rune,
.competition-empty-icon {
  width: 74px;
  height: 74px;
  display: grid;
  place-items: center;
  color: var(--brass-light);
  font-family: var(--serif);
  font-size: 2.5rem;
  font-weight: 900;
  border: 3px double rgba(227, 196, 115, .44);
  background: #17110d;
  box-shadow: inset 0 0 24px rgba(0, 0, 0, .42);
}
.competition-loading-rune { animation: yon-rune-turn 2.6s ease-in-out infinite; }
@keyframes yon-rune-turn { 50% { transform: rotate(8deg) scale(1.04); } }
.competition-error-state { border-color: rgba(182, 93, 88, .5); }
.competition-error-state .competition-empty-icon { color: #e3a29d; border-color: rgba(182, 93, 88, .55); }
.competition-round-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .8rem 1rem;
  color: var(--muted);
  background: rgba(183, 131, 47, .07);
  border: 1px solid rgba(183, 131, 47, .24);
}
.competition-round-summary p { margin: 0; }
.competition-round-state {
  flex: 0 0 auto;
  color: var(--parchment-light);
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.competition-round-state-ongoing { color: #b7d7ad; }
.competition-event-card {
  position: relative;
  padding: clamp(1rem, 3vw, 1.6rem);
  overflow: hidden;
  background:
    radial-gradient(circle at 0 0, rgba(183, 131, 47, .1), transparent 22rem),
    linear-gradient(145deg, rgba(45, 34, 25, .95), rgba(18, 14, 11, .99));
  border: 3px double rgba(183, 131, 47, .42);
  box-shadow: var(--shadow);
}
.competition-event-card::after {
  content: "";
  position: absolute;
  inset: 8px;
  pointer-events: none;
  border: 1px solid rgba(227, 196, 115, .06);
}
.competition-event-header {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}
.competition-event-header h2 { margin: .15rem 0 0; font-size: clamp(1.9rem, 4vw, 2.8rem); }
.competition-event-icon {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  background: #15100c;
  border: 1px solid rgba(227, 196, 115, .38);
  box-shadow: inset 0 0 20px rgba(0, 0, 0, .35);
}
.competition-event-icon img { width: 36px; height: 36px; }
.competition-division-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}
.competition-division-card {
  min-width: 0;
  padding: 1.15rem;
  background: rgba(9, 8, 7, .42);
  border: 1px solid rgba(205, 179, 119, .2);
}
.competition-division-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .65rem;
}
.competition-phase {
  color: var(--muted);
  font-size: .68rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.competition-phase-ongoing { color: #b7d7ad; }
.competition-phase-upcoming { color: #e7c575; }
.competition-metric {
  margin: .8rem 0 .35rem;
  color: var(--parchment-light);
  font-size: clamp(1.55rem, 3vw, 2.15rem);
  overflow-wrap: anywhere;
}
.competition-timing {
  display: grid;
  gap: .15rem;
  margin-bottom: .85rem;
  color: var(--muted);
  font-size: .76rem;
}
.competition-countdown { color: var(--brass-light); font-size: .78rem; }
.competition-standings {
  list-style: none;
  margin: .85rem 0 0;
  padding: 0;
  border-top: 1px solid rgba(205, 179, 119, .16);
}
.competition-standing-row {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) auto;
  gap: .7rem;
  align-items: center;
  min-width: 0;
  padding: .72rem .15rem;
  border-bottom: 1px dashed rgba(205, 179, 119, .13);
}
.competition-standing-row:last-child { border-bottom: 0; }
.competition-rank {
  width: 27px;
  height: 27px;
  display: grid;
  place-items: center;
  color: #281b0e;
  font-family: var(--serif);
  font-weight: 900;
  background: var(--parchment);
  border: 1px solid #6b4921;
}
.competition-player {
  min-width: 0;
  overflow: hidden;
  color: var(--ink);
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.competition-gain {
  color: var(--brass-light);
  font-size: .88rem;
  white-space: nowrap;
}
.competition-no-gains { color: var(--muted); }
.competition-card-footer {
  display: flex;
  justify-content: space-between;
  gap: .8rem;
  align-items: center;
  margin-top: .85rem;
  padding-top: .8rem;
  font-size: .76rem;
  border-top: 1px solid rgba(205, 179, 119, .15);
}
.competition-participants { color: var(--muted); }
.competition-wom-link { color: var(--brass-light); font-weight: 850; }
.competition-division-missing {
  display: grid;
  align-content: center;
  min-height: 250px;
  color: var(--muted);
  border-style: dashed;
}
.competition-division-missing h3 { margin: .8rem 0 .25rem; }
.competition-source-line {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: .8rem;
  color: #817665;
  font-size: .73rem;
}
.event-explainer-section { padding-top: 2rem; }
.event-explainer-section .card h3 { margin-top: .75rem; }
.event-discord-callout { border-color: rgba(227, 196, 115, .5); }

@media (max-width: 980px) {
  .join-hero-grid { grid-template-columns: 1fr; }
  .join-decree { max-width: 620px; width: 100%; justify-self: center; transform: none; }
  .join-decree-frame { min-height: 410px; }
  .join-steps-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .join-proof-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .join-proof-strip > div:nth-child(2) { border-right: 0; }
  .join-proof-strip > div:nth-child(-n+2) { border-bottom: 1px solid rgba(205, 179, 119, .16); }
  .competition-section-head { grid-template-columns: 1fr; align-items: start; }
  .competition-toolbar { justify-content: flex-start; }
}

@media (max-width: 720px) {
  .join-hero { padding-top: 3.2rem; }
  .join-hero-grid { gap: 2rem; }
  .join-hero-copy h1 { font-size: clamp(3.2rem, 15vw, 4.8rem); }
  .join-decree-frame { min-height: 350px; padding: 1.7rem 1.2rem; }
  .join-decree-crest { width: 132px; }
  .join-decree h2 { font-size: 2.35rem; }
  .join-proof-strip { grid-template-columns: 1fr; }
  .join-proof-strip > div,
  .join-proof-strip > div:nth-child(2) { border-right: 0; border-bottom: 1px solid rgba(205, 179, 119, .16); }
  .join-proof-strip > div:last-child { border-bottom: 0; }
  .join-steps-grid { grid-template-columns: 1fr; }
  .join-step-card { min-height: 0; }
  .join-step-number { margin-bottom: 1.2rem; }
  .join-final-callout { grid-template-columns: 1fr; }
  .home-open-callout .actions { justify-content: flex-start; }
  .competition-toolbar { display: grid; width: 100%; }
  .competition-live-status { justify-content: center; }
  .competition-refresh { width: 100%; justify-content: center; }
  .competition-round-summary { align-items: flex-start; flex-direction: column; }
  .competition-division-grid { grid-template-columns: 1fr; }
  .competition-event-card { padding: .85rem; border-width: 1px; }
  .competition-event-header { padding: .2rem; }
  .competition-event-icon { width: 52px; height: 52px; }
  .competition-event-icon img { width: 30px; height: 30px; }
  .competition-division-card { padding: .9rem; }
  .competition-standing-row { grid-template-columns: 28px minmax(0, 1fr); }
  .competition-gain { grid-column: 2; justify-self: start; font-size: .82rem; }
  .competition-card-footer { align-items: flex-start; flex-direction: column; }
  .competition-source-line { flex-direction: column; gap: .15rem; }
}

@media (max-width: 390px) {
  .join-hero-copy .actions .btn { width: 100%; justify-content: center; }
  .invite-address { display: grid; width: 100%; }
  .join-decree { padding: 7px; }
  .join-decree-frame { border-width: 3px; }
  .competition-division-top { align-items: flex-start; flex-direction: column; }
  .competition-player { white-space: normal; overflow-wrap: anywhere; }
}

@media (prefers-reduced-motion: reduce) {
  .btn-join-discord::after,
  .competition-live-status-loading::before,
  .competition-loading-rune { animation: none; }
}

/* Hall screenshot records — v20 */
.hall-record-art-screenshot {
  background: #070605;
}
.hall-record-art-screenshot img {
  object-fit: contain;
  object-position: center;
  background: #070605;
}
@media (max-width: 900px) {
  .hall-record-art-screenshot {
    aspect-ratio: 1246 / 1088;
  }
}
@media (max-width: 760px) {
  .hall-record-art-screenshot {
    aspect-ratio: 1246 / 1088;
  }
}


/* Hall wide screenshot records — v20 */
.hall-record-card-wide {
  grid-template-columns: 1fr;
}
.hall-record-card-wide .hall-record-art {
  min-height: 0;
  border-right: 0;
  border-bottom: 1px solid rgba(227,196,115,.34);
  background: #070605;
}
.hall-record-card-wide .hall-record-art::after {
  background: linear-gradient(0deg, rgba(12,9,7,.5), transparent 22%);
}
.hall-record-card-wide .hall-record-art img {
  width: 100%;
  height: auto;
  min-height: 0;
  object-fit: contain;
  object-position: center;
  background: #070605;
}
.hall-record-card-wide .hall-record-copy {
  justify-content: flex-start;
}
@media (max-width: 760px) {
  .hall-record-card-wide .hall-record-art {
    aspect-ratio: auto;
  }
  .hall-record-card-wide .hall-record-art img {
    height: auto;
  }
}


/* Hall mobile rebuild — v21. Explicit final overrides for iOS/WebKit safety. */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body.page-hall,
body.page-hall .site-shell,
body.page-hall main,
body.page-hall .hall-latest-section,
body.page-hall .hall-record-grid,
body.page-hall .hall-record-card { min-width: 0; max-width: 100%; }
body.page-hall .hall-record-grid { align-items: start; }
body.page-hall .hall-record-card-with-art {
  display: grid;
  grid-template-columns: minmax(300px, 43%) minmax(0, 1fr);
  width: 100%;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(227,196,115,.46);
  border-radius: 2px;
}
body.page-hall .hall-record-card-with-art::after { display: none; }
body.page-hall .hall-record-art {
  width: 100%;
  min-width: 0;
  min-height: 0;
  margin: 0;
  overflow: hidden;
  background: #070605;
  border-right: 1px solid rgba(227,196,115,.28);
  border-bottom: 0;
}
body.page-hall .hall-record-art::after { display: none; }
body.page-hall .hall-record-art-link {
  position: relative;
  display: grid;
  width: 100%;
  height: 100%;
  min-width: 0;
  place-items: center;
  overflow: hidden;
  background: #070605;
  text-decoration: none;
}
body.page-hall .hall-record-art img {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  height: 100% !important;
  min-width: 0 !important;
  min-height: 0 !important;
  object-fit: contain !important;
  object-position: center !important;
  transform: none !important;
  background: #070605;
}
body.page-hall .hall-record-art-proof { aspect-ratio: 16 / 9; }
body.page-hall .hall-record-art-screenshot { aspect-ratio: 4 / 3; }
body.page-hall .hall-record-card-with-art:not(.hall-record-card-proof) .hall-record-art:not(.hall-record-art-screenshot) { aspect-ratio: 1 / 1; }
body.page-hall .hall-record-view {
  position: absolute;
  right: .7rem;
  bottom: .65rem;
  z-index: 2;
  padding: .38rem .58rem;
  color: var(--parchment-light);
  background: rgba(12,9,7,.9);
  border: 1px solid rgba(227,196,115,.45);
  font-size: .67rem;
  font-weight: 850;
  letter-spacing: .06em;
  text-transform: uppercase;
  box-shadow: 0 4px 15px rgba(0,0,0,.35);
}
body.page-hall .hall-record-card-with-art .hall-record-copy {
  min-width: 0;
  justify-content: center;
  padding: clamp(1.1rem,2.5vw,1.75rem);
}
body.page-hall .hall-record-meta { margin-bottom: .75rem; }
body.page-hall .hall-record-identity { grid-template-columns: 58px minmax(0,1fr); gap: .85rem; }
body.page-hall .hall-record-identity .hall-record-icon { width: 58px; height: 58px; font-size: 2rem; }
body.page-hall .hall-record-titles h3 { font-size: clamp(1.65rem,3vw,2.2rem); overflow-wrap: normal; word-break: normal; }
body.page-hall .hall-record-detail { margin-top: .9rem; font-size: .98rem; line-height: 1.58; }
body.page-hall .hall-record-quote { margin-top: 1rem; }

@media (max-width: 760px) {
  body.page-hall { overflow-x: hidden; }
  body.page-hall .site-header {
    position: relative;
    top: auto;
    background: #130e0b;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  body.page-hall .container { width: calc(100% - 1rem); }
  body.page-hall .hall-latest-section { padding-top: .3rem; }
  body.page-hall .hall-latest-head { margin-bottom: 1rem; }
  body.page-hall .hall-latest-head h2 { font-size: clamp(1.95rem,9vw,2.45rem); }
  body.page-hall .hall-latest-head p { max-width: 36rem; font-size: .94rem; line-height: 1.48; }
  body.page-hall .hall-record-grid { display: grid; grid-template-columns: minmax(0,1fr); gap: 1rem; }
  body.page-hall .hall-record-card,
  body.page-hall .hall-record-card-featured,
  body.page-hall .hall-record-card-with-art,
  body.page-hall .hall-record-card-proof,
  body.page-hall .hall-record-card-wide {
    display: grid !important;
    grid-template-columns: minmax(0,1fr) !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    gap: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    border-width: 1px !important;
  }
  body.page-hall .hall-record-art,
  body.page-hall .hall-record-art-wide,
  body.page-hall .hall-record-art-proof,
  body.page-hall .hall-record-art-screenshot {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    min-height: 0 !important;
    height: auto !important;
    margin: 0 !important;
    border-right: 0 !important;
    border-bottom: 1px solid rgba(227,196,115,.3) !important;
  }
  body.page-hall .hall-record-art-proof { aspect-ratio: 16 / 9 !important; }
  body.page-hall .hall-record-art-screenshot { aspect-ratio: 4 / 3 !important; }
  body.page-hall .hall-record-card-with-art:not(.hall-record-card-proof) .hall-record-art:not(.hall-record-art-screenshot) { aspect-ratio: 1 / 1 !important; }
  body.page-hall .hall-record-art-link { width: 100% !important; height: 100% !important; min-width: 0 !important; }
  body.page-hall .hall-record-art img {
    width: 100% !important;
    max-width: 100% !important;
    height: 100% !important;
    max-height: none !important;
    min-width: 0 !important;
    min-height: 0 !important;
    object-fit: contain !important;
    object-position: 50% 50% !important;
  }
  body.page-hall .hall-record-card-with-art .hall-record-copy { padding: 1rem !important; }
  body.page-hall .hall-record-meta { display: flex; align-items: center; gap: .5rem; margin-bottom: .72rem; }
  body.page-hall .hall-record-card-with-art .hall-record-meta time { width: auto; font-size: .71rem; }
  body.page-hall .hall-record-identity { grid-template-columns: 46px minmax(0,1fr); gap: .7rem; align-items: center; }
  body.page-hall .hall-record-identity .hall-record-icon { width: 46px; height: 46px; font-size: 1.7rem; }
  body.page-hall .hall-record-titles h3 { font-size: clamp(1.55rem,7.3vw,1.9rem); line-height: 1.02; }
  body.page-hall .hall-record-card .hall-record-achievement { margin-top: .18rem; font-size: 1rem; line-height: 1.25; }
  body.page-hall .hall-record-detail { margin-top: .8rem; font-size: .93rem; line-height: 1.52; }
  body.page-hall .hall-record-quote { margin-top: .85rem; padding: .78rem .8rem .78rem .9rem; }
  body.page-hall .hall-record-quote p { font-size: .96rem; line-height: 1.45; }
  body.page-hall .hall-record-view { right: .5rem; bottom: .5rem; padding: .3rem .45rem; font-size: .58rem; }
}

@media (max-width: 360px) {
  body.page-hall .brand-copy span { letter-spacing: .1em; }
  body.page-hall .hall-record-card-with-art .hall-record-copy { padding: .85rem !important; }
  body.page-hall .hall-record-meta { align-items: flex-start; flex-direction: column; }
  body.page-hall .hall-record-identity { grid-template-columns: 42px minmax(0,1fr); }
  body.page-hall .hall-record-identity .hall-record-icon { width: 42px; height: 42px; }
}
