/* Parry Everything — site stylesheet
   Parchment theme, taken from the game's own ParchmentHudKit (quest journal, map, playtime rewards):
   cream paper panels, ink text, leather bands, brass/copper rims with diamond studs, Merriweather display. */
:root {
  /* ParchmentHudKit.C */
  --paper-top: #fceece; --paper-bottom: #eacd9c;
  --card-top: #fff7e4; --card-bottom: #f3deb5;
  --inset: #d6b480;
  --leather-top: #80542e; --leather-bottom: #54341e;
  --rim-light: #e2b268; --rim: #b07c40; --rim-dark: #7a5028;
  --ink: #3d2413; --ink-muted: #7c5a36;
  --on-dark: #ffecc8; --on-dark-muted: #dec29c;
  --accent: #8c3a24; --accent-light: #be5632;
  --gold-bright: #ffcd60; --gold-deep: #ce8626;
  --green: #3e7634; --red: #c4342c;

  /* names the page templates use */
  --night: #ecd3a2;            /* page paper */
  --panel: var(--card-top);
  --line: rgba(122, 80, 40, .28);
  --text: var(--ink);
  --muted: var(--ink-muted);
  --cream: #2e1a0c;            /* heading ink */
  --gold: #9a6424;             /* brass for labels and diamonds on paper */
  --gold-hi: var(--accent);    /* links and highlighted text on paper */

  --rim-grad: linear-gradient(180deg, var(--rim-light), var(--rim) 50%, var(--rim-dark));
  --paper-grad: linear-gradient(180deg, var(--paper-top), var(--paper-bottom));
  --card-grad: linear-gradient(180deg, var(--card-top), var(--card-bottom));
  --leather-grad: linear-gradient(180deg, var(--leather-top), var(--leather-bottom));
  --button-grad: linear-gradient(180deg, #ffeec4, #e4be7e);
  --button-grad-hi: linear-gradient(180deg, #fff8e2, #f0d29a);
  --tex: url(../img/paper-noise.webp);
  --stud: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0' y1='0' x2='1' y2='1'%3E%3Cstop offset='0' stop-color='%23f0c47c'/%3E%3Cstop offset='.5' stop-color='%23b07c40'/%3E%3Cstop offset='1' stop-color='%236e4522'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath d='M10 1.6 18.4 10 10 18.4 1.6 10Z' fill='url(%23g)' stroke='%233d2413' stroke-width='1.6' stroke-linejoin='round'/%3E%3C/svg%3E");

  --font-display: "Merriweather", Georgia, "Times New Roman", serif;
  --font-body: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
  --radius: 12px;
  --wrap: 1240px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; background: var(--night); }
body {
  margin: 0;
  background:
    var(--tex),
    radial-gradient(38% 30% at 12% 28%, rgba(196, 150, 90, .16), transparent 70%),
    radial-gradient(30% 24% at 88% 62%, rgba(196, 150, 90, .14), transparent 70%),
    radial-gradient(ellipse 120% 90% at 50% 20%, #f8e9c8 0%, #efd8aa 55%, #dcb47a 100%);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  overflow-x: hidden;
}
::selection { background: rgba(206, 134, 38, .35); color: var(--ink); }
img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent-light); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3, h4 { font-family: var(--font-display); color: var(--cream); line-height: 1.15; margin: 0; text-wrap: balance; }
p { margin: 0; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 clamp(16px, 4vw, 32px); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--leather-grad); color: var(--on-dark); padding: 10px 14px; border-radius: 6px; font-weight: 700; }
.skip:focus { top: 12px; }
.num { font-variant-numeric: tabular-nums; }
[hidden] { display: none !important; }
* { scrollbar-color: var(--rim) transparent; }

/* ---------- Surfaces (ParchmentHudKit: Panel / Wood / leather band) ---------- */
/* Main panel: paper gradient, thick copper rim, ink outline, faint inner rule, diamond studs. */
.wood, .ibox, .feature {
  position: relative;
  background: var(--tex) padding-box, var(--paper-grad) padding-box, var(--rim-grad) border-box;
  border: 5px solid transparent;
  border-radius: 16px;
  box-shadow: 0 0 0 2px var(--ink), 0 22px 44px rgba(61, 36, 19, .26);
  outline: 1.5px solid rgba(124, 90, 54, .45);
  outline-offset: -14px;
}
.wood::before, .ibox::before, .feature::before {
  content: ""; position: absolute; inset: -13px; pointer-events: none; z-index: 3;
  background:
    var(--stud) left top / 22px no-repeat, var(--stud) right top / 22px no-repeat,
    var(--stud) left bottom / 22px no-repeat, var(--stud) right bottom / 22px no-repeat;
}
.wood::before, .feature::before {
  background:
    var(--stud) left top / 22px no-repeat, var(--stud) right top / 22px no-repeat,
    var(--stud) left bottom / 22px no-repeat, var(--stud) right bottom / 22px no-repeat,
    var(--stud) center top / 16px no-repeat, var(--stud) center bottom / 16px no-repeat,
    var(--stud) left center / 16px no-repeat, var(--stud) right center / 16px no-repeat;
}
.wood > .inset { height: 100%; }
.wood h2, .wood h3 { color: var(--cream); }
.wood p { color: #5a3a1e; }

/* Card: lighter paper, thin copper rim. */
.card, .ecard, .tile, .gcol, .move, .qlist li, .toc, .stat, .pager a, .search-results, .navbox, .table-box,
.boss, .patch, .member, .side-toggle, .wk-side nav, .picker-item {
  background: var(--tex) padding-box, var(--card-grad) padding-box, var(--rim-grad) border-box;
  border: 2px solid transparent;
  border-radius: var(--radius);
  box-shadow: 0 2px 0 rgba(61, 36, 19, .14), 0 10px 22px rgba(61, 36, 19, .10);
}

/* ---------- Ornaments ---------- */
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: .28em; text-transform: uppercase; color: var(--gold); }
.diamond { width: 10px; height: 10px; background: linear-gradient(135deg, var(--rim-light), var(--rim-dark)); box-shadow: 0 0 0 1.5px var(--ink); transform: rotate(45deg); flex: 0 0 auto; display: inline-block; }
.divider { display: flex; align-items: center; width: min(320px, 100%); gap: 6px; }
.divider span:nth-child(even) { flex: 1; height: 2px; background: linear-gradient(90deg, transparent, var(--ink-muted) 18%, var(--ink-muted) 82%, transparent); opacity: .75; transform-origin: center; animation: draw 1.1s var(--ease) both; }
.divider .diamond:nth-child(3) { width: 12px; height: 12px; }
.divider.left { margin-left: 0; }
@keyframes draw { from { transform: scaleX(.15); } to { transform: scaleX(1); } }

.section-head { display: flex; flex-direction: column; gap: 14px; margin-bottom: 44px; }
.section-head.center { align-items: center; text-align: center; }
.section-head h2 { font-size: clamp(30px, 4vw, 46px); font-weight: 900; }
.section-head p { color: var(--muted); max-width: 62ch; }

/* ---------- Buttons (Kit.Button: cream board, copper rim, springy) ---------- */
.btn {
  position: relative; overflow: hidden; isolation: isolate;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 24px; border-radius: 9px;
  font-family: var(--font-display); font-weight: 700; font-size: 16px; letter-spacing: .02em;
  text-decoration: none; border: 2px solid transparent; cursor: pointer;
  transition: transform .22s cubic-bezier(.34, 1.56, .64, 1), box-shadow .25s var(--ease), filter .25s;
}
.btn::after {
  content: ""; position: absolute; inset: -40% auto -40% -60%; width: 40%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .55), transparent);
  transform: skewX(-18deg); z-index: -1; transition: left .7s var(--ease);
}
.btn:hover::after { left: 130%; }
.btn:hover { transform: scale(1.05); }
.btn:active { transform: scale(.95); }
.btn-gold {
  background: var(--button-grad) padding-box, var(--rim-grad) border-box; color: var(--ink);
  box-shadow: 0 0 0 1.5px var(--ink), inset 0 -3px 0 rgba(122, 80, 40, .28), 0 8px 18px rgba(61, 36, 19, .22);
}
.btn-gold:hover { color: var(--ink); background: var(--button-grad-hi) padding-box, var(--rim-grad) border-box; }
.btn-ghost {
  background: linear-gradient(rgba(255, 247, 228, .72), rgba(255, 247, 228, .72)) padding-box, var(--rim-grad) border-box; color: var(--ink);
  font-family: var(--font-body); font-weight: 700; box-shadow: 0 6px 14px rgba(61, 36, 19, .14);
}
.btn-ghost:hover { color: var(--ink); background: linear-gradient(rgba(255, 250, 236, .95), rgba(255, 250, 236, .95)) padding-box, var(--rim-grad) border-box; }
.btn-lg { min-height: 58px; padding: 0 34px; font-size: 19px; letter-spacing: .08em; }
.btn svg { width: 18px; height: 18px; }

/* ---------- Header (leather band, brass rule) ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--tex), var(--leather-grad);
  border-bottom: 3px solid transparent;
  border-image: linear-gradient(90deg, var(--rim-dark), var(--rim-light) 30%, var(--rim) 70%, var(--rim-dark)) 1;
  box-shadow: 0 6px 18px rgba(61, 36, 19, .35);
}
.nav { display: flex; align-items: center; gap: 24px; min-height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--on-dark); text-decoration: none; font-family: var(--font-display); font-weight: 900; font-size: 18px; letter-spacing: .1em; white-space: nowrap; }
.brand:hover { color: #fff6e0; }
.brand .diamond { width: 13px; height: 13px; transition: transform .5s var(--ease); }
.brand:hover .diamond { transform: rotate(225deg); }
.nav-links { display: flex; gap: 2px; flex: 1; }
.nav-links a { position: relative; padding: 10px 14px; color: var(--on-dark-muted); text-decoration: none; font-weight: 600; font-size: 16px; border-radius: 6px; }

.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--on-dark); }

.nav-toggle { display: none; margin-left: auto; width: 46px; height: 46px; border-radius: 8px; border: 2px solid var(--rim); background: rgba(0, 0, 0, .15); color: var(--on-dark); cursor: pointer; }
.nav-toggle svg { width: 22px; height: 22px; }
@media (max-width: 900px) {
  .nav { flex-wrap: wrap; gap: 12px; padding-top: 10px; padding-bottom: 10px; }
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .nav-links { order: 3; flex-basis: 100%; flex-direction: column; display: none; padding-bottom: 8px; }
  .nav-links.open { display: flex; }
  .nav .btn-play { display: none; }
}

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 660px; display: flex; align-items: center; overflow: hidden; }
.hero-bg { position: absolute; inset: -6% 0 0 0; background-size: cover; background-position: center; transform-origin: center; animation: hero-zoom 18s ease-out both; will-change: transform; filter: sepia(.18) saturate(1.05); }
.hero-bg.village { background-image: url(../img/village.jpg); background-image: image-set(url(../img/village.webp) type("image/webp"), url(../img/village.jpg) type("image/jpeg")); }
.hero::before { content: ""; position: absolute; inset: 0; z-index: 1; background:
  linear-gradient(90deg, rgba(61, 36, 19, .45) 0%, rgba(61, 36, 19, .12) 45%, rgba(61, 36, 19, 0) 70%),
  linear-gradient(180deg, rgba(61, 36, 19, .25) 0%, rgba(61, 36, 19, 0) 20%, rgba(236, 211, 162, 0) 74%, var(--night) 100%); }
.hero canvas { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.hero-inner { position: relative; z-index: 3; width: 100%; padding-top: 80px; padding-bottom: 110px; }
.hero-copy {
  max-width: 600px; display: flex; flex-direction: column; gap: 20px; padding: clamp(26px, 4vw, 42px);
  position: relative;
  background: var(--tex) padding-box, var(--paper-grad) padding-box, var(--rim-grad) border-box;
  border: 5px solid transparent; border-radius: 16px;
  box-shadow: 0 0 0 2px var(--ink), 0 26px 50px rgba(30, 16, 6, .4);
  outline: 1.5px solid rgba(124, 90, 54, .45); outline-offset: -14px;
}
.hero-copy::before {
  content: ""; position: absolute; inset: -13px; pointer-events: none;
  background: var(--stud) left top / 22px no-repeat, var(--stud) right top / 22px no-repeat, var(--stud) left bottom / 22px no-repeat, var(--stud) right bottom / 22px no-repeat, var(--stud) center top / 16px no-repeat, var(--stud) center bottom / 16px no-repeat;
}
.hero h1 { font-size: clamp(44px, 6.6vw, 70px); font-weight: 900; line-height: 1.02; color: var(--cream); }
.hero .lede { font-size: 19px; line-height: 1.6; color: #4d2f17; max-width: 52ch; }
.hero .tip { font-size: 15px; font-style: italic; color: var(--muted); }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; }
@keyframes hero-zoom { from { transform: scale(1.12); } to { transform: scale(1.02); } }
.rise { animation: rise .9s var(--ease) both; }
.rise.d1 { animation-delay: .08s; } .rise.d2 { animation-delay: .18s; } .rise.d3 { animation-delay: .28s; } .rise.d4 { animation-delay: .4s; }
@keyframes rise { from { transform: translateY(18px); opacity: .35; } to { transform: none; opacity: 1; } }

.page-hero { position: relative; overflow: hidden; }
.page-hero .hero-bg { opacity: .5; filter: sepia(.5) saturate(.9); -webkit-mask-image: linear-gradient(180deg, #000 35%, transparent 98%); mask-image: linear-gradient(180deg, #000 35%, transparent 98%); }
.page-hero::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(248, 233, 200, .3), rgba(248, 233, 200, 0)); }
.page-hero .wrap { position: relative; z-index: 2; padding-top: 72px; padding-bottom: 56px; display: flex; flex-direction: column; gap: 16px; }
.page-hero h1 { font-size: clamp(38px, 5.4vw, 60px); font-weight: 900; }
.page-hero p { color: #4d2f17; max-width: 64ch; font-size: 18px; }
.hero-bg.valley { background-image: url(../img/valley.jpg); background-image: image-set(url(../img/valley.webp) type("image/webp"), url(../img/valley.jpg) type("image/jpeg")); }
.hero-bg.enchant { background-image: url(../img/enchant.jpg); background-image: image-set(url(../img/enchant.webp) type("image/webp"), url(../img/enchant.jpg) type("image/jpeg")); }

/* ---------- News band (leather strip) ---------- */
.band { background: var(--tex), var(--leather-grad); border-top: 3px solid var(--rim); border-bottom: 3px solid var(--rim-dark); box-shadow: 0 0 0 1.5px var(--ink); }
.band .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; padding-top: 16px; padding-bottom: 16px; }
.pill { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; padding: 5px 10px; border: 1.5px solid var(--rim-light); color: var(--gold-bright); border-radius: 4px; }
.band strong { font-family: var(--font-display); color: var(--on-dark); font-size: 18px; }
.band .date { color: var(--on-dark-muted); font-size: 15px; }
.band a { margin-left: auto; font-weight: 700; text-decoration: none; color: var(--gold-bright); }
.band a:hover { color: #ffe3a0; }

/* ---------- Generic sections & cards ---------- */
.section { padding: clamp(72px, 9vw, 112px) 0; }
.section.tight { padding: 56px 0; }
.grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.card { padding: 24px; display: flex; flex-direction: column; gap: 10px; transition: transform .35s var(--ease), box-shadow .35s; }
a.card { text-decoration: none; color: inherit; }
a.card:hover, .card.hoverable:hover { transform: translateY(-4px); box-shadow: 0 2px 0 rgba(61, 36, 19, .14), 0 18px 34px rgba(61, 36, 19, .2); }
.card h3 { font-size: 21px; }
.card p { color: var(--muted); font-size: 16px; }
.card .meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 6px; }
.chip { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: rgba(255, 250, 238, .7); color: var(--ink); border: 1px solid rgba(122, 80, 40, .45); white-space: nowrap; }
.chip i { width: 8px; height: 8px; border-radius: 2px; transform: rotate(45deg); display: inline-block; box-shadow: 0 0 0 1px rgba(61, 36, 19, .55); }

@supports (animation-timeline: view()) {
  .reveal { animation: reveal linear both; animation-timeline: view(); animation-range: entry 0% entry 55%; }
  @keyframes reveal { from { transform: translateY(26px) scale(.985); opacity: .25; } to { transform: none; opacity: 1; } }
}

/* ---------- Home: wiki picker ---------- */
.picker { display: flex; flex-wrap: wrap; gap: 48px; align-items: stretch; }
.picker-list { flex: 1 1 340px; display: flex; flex-direction: column; gap: 8px; }
.picker-item { display: flex; align-items: center; gap: 18px; width: 100%; padding: 14px 18px; cursor: pointer; text-align: left; font: inherit; color: inherit; transition: transform .25s var(--ease), box-shadow .3s, background .3s; }
.picker-item .dot { width: 12px; height: 12px; transform: rotate(45deg); background: transparent; box-shadow: inset 0 0 0 1.5px var(--rim); transition: background .3s, box-shadow .3s, transform .4s var(--ease); flex: 0 0 auto; }
.picker-item b { display: block; font-family: var(--font-display); font-size: 20px; color: var(--cream); font-weight: 700; }
.picker-item small { display: block; color: var(--muted); font-size: 15px; }
.picker-item:hover { transform: translateX(4px); }
.picker-item[aria-selected="true"] { background: var(--tex) padding-box, var(--leather-grad) padding-box, var(--rim-grad) border-box; }
.picker-item[aria-selected="true"] .dot { background: linear-gradient(135deg, var(--gold-bright), var(--gold-deep)); box-shadow: 0 0 0 1.5px var(--ink); transform: rotate(225deg); }
.picker-item[aria-selected="true"] b { color: var(--on-dark); font-weight: 900; }
.picker-item[aria-selected="true"] small { color: var(--on-dark-muted); }
.picker-view { flex: 1.4 1 480px; min-width: 0; }
.picker-view .inset { display: flex; flex-direction: column; }
.picker-view img { width: 100%; height: 300px; object-fit: cover; border-radius: 10px 10px 0 0; border-bottom: 3px solid var(--rim); filter: sepia(.12); }
.picker-body { padding: 26px 30px 30px; display: flex; flex-direction: column; gap: 14px; flex: 1; }
.picker-body h3 { font-size: 30px; font-weight: 900; }
.picker-body p { font-size: 17px; color: #5a3a1e; }
.links-row { display: flex; flex-wrap: wrap; gap: 8px; }
.links-row a, .tag-links a {
  padding: 8px 14px; border-radius: 999px; text-decoration: none; font-size: 15px; font-weight: 700; color: var(--ink);
  background: var(--button-grad) padding-box, var(--rim-grad) border-box; border: 1.5px solid transparent;
  box-shadow: 0 3px 8px rgba(61, 36, 19, .15); transition: transform .22s cubic-bezier(.34, 1.56, .64, 1), background .2s;
}
.links-row a:hover, .tag-links a:hover { transform: scale(1.06); color: var(--ink); background: var(--button-grad-hi) padding-box, var(--rim-grad) border-box; }
.fade-swap { animation: swap .45s var(--ease); }
@keyframes swap { from { opacity: .2; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---------- Combo meter ---------- */
.combo { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; align-items: end; list-style: none; padding: 0; margin: 0; }
.combo li { border-radius: 8px; text-align: center; padding: 14px 6px; display: flex; flex-direction: column; justify-content: flex-end; gap: 2px; transform-origin: bottom; border: 2px solid var(--rim); box-shadow: 0 0 0 1.5px var(--ink); }
.combo li span { font-size: 13px; color: var(--muted); }
.combo li b { font-family: var(--font-display); font-weight: 900; font-size: clamp(22px, 3vw, 32px); color: var(--ink); }
.combo li:nth-child(1) { height: 92px; background: #f1dfb9; }
.combo li:nth-child(2) { height: 112px; background: #e8cf9d; }
.combo li:nth-child(3) { height: 136px; background: var(--inset); }
.combo li:nth-child(4) { height: 162px; background: #c59660; }
.combo li:nth-child(5) { height: 196px; background: linear-gradient(180deg, var(--gold-bright), var(--gold-deep)); }
.combo li:nth-child(4) span, .combo li:nth-child(5) span { color: #4d2f17; }
.combo.live li { animation: bar 1s var(--ease) both; }
.combo.live li:nth-child(2) { animation-delay: .12s; } .combo.live li:nth-child(3) { animation-delay: .24s; } .combo.live li:nth-child(4) { animation-delay: .36s; } .combo.live li:nth-child(5) { animation-delay: .48s; }
@keyframes bar { from { transform: scaleY(.35); } to { transform: scaleY(1); } }
.combo li:nth-child(5).flash { animation: flash 1.6s ease-in-out infinite; }
@keyframes flash { 0%, 100% { box-shadow: 0 0 0 1.5px var(--ink), 0 0 0 rgba(255, 205, 96, 0); } 50% { box-shadow: 0 0 0 1.5px var(--ink), 0 0 30px rgba(255, 190, 70, .75); } }

/* ---------- Boss strip ---------- */
.boss-strip { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(230px, 1fr); gap: 16px; overflow-x: auto; padding: 4px 4px 14px; scroll-snap-type: x mandatory; }
.boss { scroll-snap-align: start; position: relative; padding: 22px; min-height: 210px; display: flex; flex-direction: column; justify-content: flex-end; gap: 8px; overflow: hidden; text-decoration: none; color: inherit; transition: transform .35s var(--ease), box-shadow .35s;
  background: radial-gradient(110% 70% at 50% 0%, rgba(190, 86, 50, .22), transparent 62%) padding-box, var(--tex) padding-box, var(--card-grad) padding-box, var(--rim-grad) border-box; }
.boss:hover { transform: translateY(-4px); box-shadow: 0 2px 0 rgba(61, 36, 19, .14), 0 18px 34px rgba(140, 58, 36, .25); }
.boss .no { position: absolute; top: 14px; right: 18px; font-family: var(--font-display); font-weight: 900; font-size: 44px; color: rgba(61, 36, 19, .1); }
.boss h3 { font-size: 21px; }
.boss p { font-size: 15px; color: var(--muted); }
.boss { padding-top: 176px; }
.boss .boss-img { position: absolute; top: 14px; left: 50%; width: 150px; height: 150px; object-fit: contain; transform: translateX(-50%); filter: drop-shadow(0 10px 12px rgba(61, 36, 19, .35)); transition: transform .45s var(--ease); }
.boss:hover .boss-img { transform: translateX(-50%) translateY(-6px) scale(1.06); }

/* ---------- World band ---------- */
.world { position: relative; min-height: 540px; display: flex; align-items: flex-end; overflow: hidden; }
.world .hero-bg { animation: none; inset: -10% 0; -webkit-mask-image: linear-gradient(180deg, transparent 6%, #000 24%, #000 50%, transparent 80%); mask-image: linear-gradient(180deg, transparent 6%, #000 24%, #000 50%, transparent 80%); }
.world::before { content: ""; position: absolute; inset: 0; z-index: 1; background: radial-gradient(52% 62% at 22% 52%, rgba(248, 233, 200, .9) 0%, rgba(248, 233, 200, .6) 45%, transparent 80%); }
.world .wrap { position: relative; z-index: 2; padding-top: 80px; padding-bottom: 70px; display: flex; flex-direction: column; gap: 22px; }
.world h2 { max-width: 700px; font-size: clamp(32px, 4.4vw, 46px); font-weight: 900; }
.tag-links { display: flex; flex-wrap: wrap; gap: 10px; }
.tag-links a { padding: 10px 16px; }
@supports (animation-timeline: scroll()) {
  .parallax { animation: drift linear both; animation-timeline: view(); }
  @keyframes drift { from { transform: translateY(-6%); } to { transform: translateY(6%); } }
}

/* ---------- Story timeline ---------- */
.timeline { list-style: none; margin: 0; padding: 0 0 0 28px; border-left: 2px solid var(--rim); display: flex; flex-direction: column; gap: 26px; }
.timeline li { position: relative; }
.timeline li::before { content: ""; position: absolute; left: -38px; top: 4px; width: 18px; height: 18px; background: var(--stud) center / contain no-repeat; }
.timeline .chap { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); font-weight: 700; }
.timeline h3 { font-size: 22px; margin: 4px 0 6px; }
.timeline p { color: var(--muted); }
.quote { margin-top: 10px; padding: 12px 16px; border-left: 3px solid var(--rim); background: rgba(176, 124, 64, .12); border-radius: 0 8px 8px 0; color: #4d2f17; font-family: var(--font-display); font-style: italic; font-size: 16px; }
.quote b { font-style: normal; color: var(--accent); font-weight: 900; margin-right: 6px; }

/* ---------- Tables ---------- */
.table-box { overflow-x: auto; padding: 0; }
table { width: 100%; border-collapse: collapse; font-size: 15.5px; }
th, td { padding: 11px 14px; text-align: left; border-bottom: 1px solid rgba(122, 80, 40, .22); vertical-align: top; }
th { font-size: 12.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--on-dark); font-weight: 700; background: var(--leather-grad); position: sticky; top: 0; border-bottom: 2px solid var(--rim); }
tbody tr:nth-child(even) { background: rgba(176, 124, 64, .06); }
tbody tr:hover { background: rgba(206, 134, 38, .12); }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
tr:last-child td { border-bottom: 0; }

/* ---------- Forms ---------- */
.form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; padding: 30px; }
.form .full { grid-column: 1 / -1; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label, .legend { font-weight: 700; font-size: 14px; color: var(--ink); }
.field .opt { font-weight: 400; color: var(--muted); }
.input { width: 100%; padding: 13px 14px; border-radius: 8px; border: 2px solid var(--rim); background: #fff9ea; color: var(--ink); font: inherit; font-size: 16px; box-shadow: inset 0 2px 4px rgba(61, 36, 19, .12); transition: border-color .2s, box-shadow .2s; }
.input::placeholder { color: #a5835c; }
.input:focus { outline: none; border-color: var(--gold-deep); box-shadow: inset 0 2px 4px rgba(61, 36, 19, .12), 0 0 0 3px rgba(206, 134, 38, .28); }
textarea.input { resize: vertical; min-height: 140px; }
.choice-row { display: flex; flex-wrap: wrap; gap: 10px; border: 0; padding: 0; margin: 0; }
.choice-row label { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 999px; border: 1.5px solid var(--rim); background: rgba(255, 249, 234, .7); color: var(--ink); cursor: pointer; font-weight: 600; transition: background .2s, border-color .2s, color .2s; }
.choice-row input { accent-color: var(--accent); }
.choice-row label:has(input:checked) { background: var(--leather-grad); border-color: var(--rim-light); color: var(--on-dark); }
.form-note { font-size: 14px; color: var(--muted); }
.result { margin: 0 30px 30px; padding: 20px; border-radius: 8px; border: 2px dashed var(--rim); background: rgba(255, 249, 234, .6); display: none; flex-direction: column; gap: 12px; }
.result.show { display: flex; animation: swap .45s var(--ease); }
.result pre { margin: 0; white-space: pre-wrap; font-family: ui-monospace, "Cascadia Code", Consolas, monospace; font-size: 14px; color: var(--ink); }
@media (max-width: 640px) { .form { grid-template-columns: 1fr; padding: 22px; } }

/* ---------- Wiki ---------- */
[id] { scroll-margin-top: 96px; }
.wk-top { position: relative; padding: 50px 0 34px; background: linear-gradient(180deg, rgba(236, 211, 162, .2), rgba(236, 211, 162, .75) 70%, var(--night)), url(../img/village.webp) center 40% / cover; border-bottom: 3px solid transparent; border-image: linear-gradient(90deg, transparent, var(--rim) 20%, var(--rim) 80%, transparent) 1; }
.wk-top .wrap { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px; }
.wk-brand { padding: 18px 24px; border-radius: 14px; background: var(--tex) padding-box, var(--paper-grad) padding-box, var(--rim-grad) border-box; border: 3px solid transparent; box-shadow: 0 0 0 1.5px var(--ink), 0 14px 30px rgba(61, 36, 19, .25); }
.wk-brand h1 { font-size: clamp(28px, 3.6vw, 42px); font-weight: 900; margin: 4px 0 6px; }
.wk-brand h1 a { color: var(--cream); text-decoration: none; }
.wk-brand p { color: var(--muted); max-width: 60ch; font-size: 15.5px; }
.wk-search { position: relative; flex: 0 1 420px; }
.wk-search input { width: 100%; font: inherit; font-size: 17px; padding: 14px 16px 14px 46px; border-radius: 12px; border: 3px solid transparent; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%237a5028' stroke-width='2.4'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-4-4'/%3E%3C/svg%3E") 15px 50% no-repeat padding-box, linear-gradient(#fff9ea, #fff9ea) padding-box, var(--rim-grad) border-box; color: var(--ink); box-shadow: 0 0 0 1.5px var(--ink), 0 12px 26px rgba(61, 36, 19, .25); }
.wk-search input::placeholder { color: #a5835c; }
.wk-search input:focus { outline: none; box-shadow: 0 0 0 1.5px var(--ink), 0 0 0 5px rgba(206, 134, 38, .35), 0 12px 26px rgba(61, 36, 19, .25); }
.search-results { display: none; position: absolute; z-index: 40; left: 0; right: 0; top: calc(100% + 8px); overflow: hidden; box-shadow: 0 0 0 1.5px var(--ink), 0 24px 50px rgba(61, 36, 19, .35); }
.search-results.show { display: block; animation: swap .25s var(--ease); }
.search-results a { display: flex; align-items: center; gap: 12px; padding: 8px 12px; text-decoration: none; color: var(--text); border-bottom: 1px solid rgba(122, 80, 40, .2); }
.search-results a:hover, .search-results a.on { background: rgba(206, 134, 38, .16); }
.search-results .th { width: 40px; height: 40px; flex: 0 0 auto; border-radius: 8px; background: radial-gradient(circle at 50% 40%, #fff7e4, var(--inset)); box-shadow: inset 0 0 0 1px rgba(122, 80, 40, .4); display: grid; place-items: center; font-family: var(--font-display); color: var(--rim-dark); overflow: hidden; }
.search-results .th img { width: 100%; height: 100%; object-fit: contain; }
.search-results b { display: block; color: var(--cream); }
.search-results small { color: var(--muted); font-size: 13px; }
.search-results p { padding: 14px; color: var(--muted); margin: 0; }

.wk { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 40px; padding-top: 34px; padding-bottom: 110px; align-items: start; }
.wk-side { position: sticky; top: 92px; max-height: calc(100vh - 110px); overflow: auto; padding: 2px 4px 4px 2px; scrollbar-width: thin; }
.wk-side nav { padding: 8px; }
.side-toggle { display: none; }
.wk-side a { display: block; padding: 6px 10px; border-radius: 6px; color: #5a3a1e; text-decoration: none; font-size: 15px; border-left: 3px solid transparent; transition: background .2s, color .2s; }
.wk-side a:hover { color: var(--ink); background: rgba(206, 134, 38, .12); }
.wk-side a[aria-current="page"] { color: var(--ink); border-left-color: var(--accent); background: rgba(176, 124, 64, .2); font-weight: 700; }
.wk-side a.home { font-family: var(--font-display); font-weight: 700; color: var(--cream); margin-bottom: 4px; }
.wk-side details { border-top: 1px solid rgba(122, 80, 40, .28); padding: 4px 0; }
.wk-side summary { cursor: pointer; list-style: none; padding: 8px 10px; font-size: 12.5px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); display: flex; justify-content: space-between; align-items: center; }
.wk-side summary:hover { color: var(--accent); }
.wk-side summary::-webkit-details-marker { display: none; }
.wk-side summary::after { content: ""; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg); transition: transform .25s var(--ease); }
.wk-side details[open] summary::after { transform: rotate(45deg); }

.wpage { min-width: 0; }
.wpage.swap { animation: wswap .28s var(--ease); }
@keyframes wswap { from { opacity: .55; transform: translateY(5px); } to { opacity: 1; transform: none; } }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 14px; color: var(--muted); margin-bottom: 10px; }
.crumbs a { color: var(--muted); }
.ptitle { padding-bottom: 14px; margin-bottom: 24px; position: relative; }
.ptitle::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 12px; background: var(--stud) left center / 12px no-repeat, linear-gradient(90deg, var(--ink-muted), rgba(124, 90, 54, .2) 70%, transparent) 14px center / 100% 2px no-repeat; }
.ptitle h1 { font-size: clamp(32px, 4.4vw, 50px); font-weight: 900; }
.ptitle p { color: var(--muted); margin-top: 6px; font-size: 17px; }
.wpage h2 { font-size: 26px; margin: 34px 0 14px; }
.wpage h2 a { color: var(--cream); text-decoration: none; }
.wpage h2 a:hover { color: var(--accent); }
.wpage h2 a::after { content: " ›"; color: var(--gold); }
.wpage h2.sec { font-size: 24px; display: flex; align-items: center; gap: 12px; }
.wpage h2.sec::before { content: ""; width: 16px; height: 16px; background: var(--stud) center / contain no-repeat; }
.wpage p, .wpage li { color: #4d2f17; }
.pbody { display: flow-root; }
.lead { font-family: var(--font-display); font-size: 18px; line-height: 1.7; color: var(--ink) !important; max-width: 64ch; }
.note { font-size: 14px; color: var(--muted) !important; margin-top: 10px; }
.lore { margin: 16px 0 0; padding: 14px 18px; border-left: 3px solid var(--rim); background: rgba(176, 124, 64, .12); border-radius: 0 8px 8px 0; font-family: var(--font-display); font-style: italic; color: #4d2f17; max-width: 64ch; }
.lore cite { display: block; margin-top: 6px; font-family: var(--font-body); font-style: normal; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }

/* infobox */
.ibox { float: right; width: 320px; margin: 6px 6px 24px 32px; border-width: 4px; border-radius: 14px; outline: none; }
.ibox > header { background: var(--tex), var(--leather-grad); padding: 12px 16px; text-align: center; border-radius: 10px 10px 0 0; border-bottom: 2px solid var(--rim); }
.ibox > header b { display: block; font-family: var(--font-display); font-size: 21px; font-weight: 900; color: var(--on-dark); }
.ibox > header span { font-size: 13px; color: var(--on-dark-muted); letter-spacing: .08em; }
.ibox .well { margin: 0; height: 290px; box-shadow: inset 0 -1px 0 rgba(122, 80, 40, .4); }
.ibox h3 { font-family: var(--font-body); font-size: 12.5px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--ink); background: linear-gradient(180deg, #e2c590, var(--inset)); padding: 7px 16px; border-top: 1px solid rgba(122, 80, 40, .5); border-bottom: 1px solid rgba(122, 80, 40, .5); text-align: center; }
.ibox dl { margin: 0; }
.ibox dl div { display: grid; grid-template-columns: 44% 56%; border-bottom: 1px solid rgba(122, 80, 40, .2); }
.ibox dl div:last-child { border-bottom: 0; }
.ibox dl:last-child div:last-child dt { border-radius: 0 0 0 10px; }
.ibox dt { padding: 9px 14px; font-weight: 700; font-size: 14.5px; color: #5a3a1e; background: rgba(176, 124, 64, .1); }
.ibox dd { margin: 0; padding: 9px 14px; font-size: 15px; color: var(--ink); font-variant-numeric: tabular-nums; }
.ibox .chips { display: flex; flex-wrap: wrap; gap: 4px; }
.ibox .chip { font-size: 11.5px; padding: 2px 7px; }

/* image wells: recessed paper with a soft tint per family */
.well { position: relative; display: grid; place-items: center; overflow: hidden; background: var(--tex), radial-gradient(70% 65% at 50% 52%, var(--t1, #fdf3dc) 0%, var(--t2, #dcc08c) 100%); box-shadow: inset 0 0 0 1px rgba(122, 80, 40, .35), inset 0 8px 22px rgba(61, 36, 19, .16); }
.well::after { content: ""; position: absolute; left: 20%; right: 20%; bottom: 9%; height: 8%; border-radius: 50%; background: radial-gradient(closest-side, rgba(61, 36, 19, .28), transparent); }
.well img, .well svg { position: absolute; z-index: 1; left: 7%; top: 7%; width: 86%; height: 86%; object-fit: contain; filter: drop-shadow(0 8px 10px rgba(61, 36, 19, .28)); }
.ibox .well img { animation: bob 5s ease-in-out infinite; will-change: transform; }
.well .mono { position: relative; z-index: 1; font-family: var(--font-display); font-weight: 900; font-size: 64px; color: rgba(122, 80, 40, .55); }
.tone-slime { --t1: #f4f6d8; --t2: #cdbf86; }
.tone-wolf { --t1: #eef0ea; --t2: #c8b48c; }
.tone-goblin { --t1: #f6efcc; --t2: #d1b47a; }
.tone-boss { --t1: #fae2d0; --t2: #cf9c78; }
.tone-stone { --t1: #f1ebdf; --t2: #c9b392; }
.tone-night { --t1: #f0e6ec; --t2: #c6ab92; }
.tone-wild { --t1: #f1f3d6; --t2: #cab680; }
.tone-village { --t1: #fdf0d2; --t2: #dcb983; }
.tone-forge { --t1: #fde8c8; --t2: #d6a56a; }
@keyframes bob { 50% { transform: translateY(-7px); } }

/* entity cards */
.egrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 16px; }
.ecard { display: flex; flex-direction: column; text-decoration: none; color: inherit; overflow: hidden; transition: transform .3s cubic-bezier(.34, 1.56, .64, 1), box-shadow .35s; }
.ecard .well { aspect-ratio: 1 / 1; border-radius: 10px 10px 0 0; border-bottom: 2px solid var(--rim); }
.ecard .well img { transition: transform .45s var(--ease); }
.ecard:hover { transform: translateY(-4px) scale(1.02); box-shadow: 0 2px 0 rgba(61, 36, 19, .14), 0 18px 34px rgba(61, 36, 19, .24); }
.ecard:hover .well img { transform: scale(1.08) translateY(-4px); }
.ecard-body { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px 12px; }
.ecard b { font-family: var(--font-display); color: var(--cream); font-size: 16px; line-height: 1.25; }
.ecard small { color: var(--muted); font-size: 13px; }
.mini { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.mini i { font-style: normal; font-size: 12px; font-weight: 700; padding: 2px 7px; border-radius: 999px; background: rgba(122, 80, 40, .12); color: #4d2f17; }
.mini i.hp { background: rgba(196, 52, 44, .13); color: #8e241d; }
.mini i.dm { background: rgba(206, 134, 38, .2); color: #6e4210; }
.well img.pp { left: 0; top: 0; width: 100%; height: 100%; }
.ibox .well img.pp { left: -6%; top: -4%; width: 112%; height: 112%; }
.egrid.wide { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.egrid.wide .well { aspect-ratio: 16 / 10; }
.well img.cover, .well img.place { left: 0; top: 0; width: 100%; height: 100%; object-fit: cover; filter: sepia(.12); animation: none; }
.well:has(img.cover)::after, .well:has(img.place)::after { display: none; }
.well svg.blade, .well svg { max-width: 86%; }
.ecard.static { cursor: default; }
.ecard.static:hover { transform: none; }

/* home */
.feature { display: grid; grid-template-columns: 1.1fr .9fr; margin: 8px 6px; }
.feature-text { padding: clamp(24px, 4vw, 42px); display: flex; flex-direction: column; gap: 14px; justify-content: center; }
.feature-text h2 { margin: 0; font-size: clamp(30px, 4vw, 44px); }
.feature-text h2 a::after { content: none; }
.feature-text p { color: #5a3a1e !important; font-size: 17px; max-width: 46ch; }
.feature-text .btn { align-self: flex-start; }
.kv { display: flex; flex-wrap: wrap; gap: 22px; }
.kv span { color: var(--muted); font-size: 13px; letter-spacing: .1em; text-transform: uppercase; }
.kv b { display: block; font-family: var(--font-display); font-size: 28px; color: var(--accent); letter-spacing: 0; }
.feature-img { min-height: 320px; border-radius: 0 11px 11px 0; border-left: 2px solid var(--rim); }
.feature-img img { animation: bob 6s ease-in-out infinite; }
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
@media (max-width: 640px) { .tiles { grid-template-columns: repeat(2, 1fr); } }
.tile { display: grid; grid-template-columns: 58px 1fr; grid-template-rows: auto auto; column-gap: 12px; align-items: center; padding: 9px; text-decoration: none; transition: transform .25s cubic-bezier(.34, 1.56, .64, 1), box-shadow .3s; }
.tile:hover { transform: scale(1.03); box-shadow: 0 2px 0 rgba(61, 36, 19, .14), 0 14px 26px rgba(61, 36, 19, .2); }
.tile .well { grid-row: span 2; width: 58px; height: 58px; border-radius: 9px; }
.tile .well::after { display: none; }
.tile .well .mono { font-size: 26px; }
.tile b { font-family: var(--font-display); color: var(--cream); font-size: 16px; align-self: end; }
.tile small { color: var(--muted); font-size: 13px; align-self: start; }
.guides { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
.gcol { padding: 14px; display: flex; flex-direction: column; gap: 2px; }
.gcol h3 { font-family: var(--font-body); font-size: 12.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); margin-bottom: 6px; }
.gcol a { text-decoration: none; padding: 7px 8px; border-radius: 6px; }
.gcol a:hover { background: rgba(206, 134, 38, .14); }
.gcol b { display: block; color: var(--cream); font-weight: 700; }
.gcol small { color: var(--muted); font-size: 13px; }

/* article parts */
.moves { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.move { padding: 14px 16px 14px 18px; position: relative; }
.move::before { content: ""; position: absolute; left: 6px; top: 12px; bottom: 12px; width: 3px; border-radius: 2px; background: linear-gradient(180deg, var(--accent-light), var(--accent)); }
.move b { font-family: var(--font-display); color: var(--cream); font-size: 17px; }
.move p { margin: 6px 0 0; font-size: 15.5px; }
.tips { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.tips li { position: relative; padding-left: 24px; max-width: 70ch; }
.tips li::before { content: ""; position: absolute; left: 0; top: 5px; width: 14px; height: 14px; background: var(--stud) center / contain no-repeat; }
.qlist { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.qlist li { padding: 12px 16px; }
.qlist span { font-size: 12.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); font-weight: 700; }
.qlist b { display: block; font-family: var(--font-display); color: var(--cream); font-size: 18px; margin: 2px 0 4px; }
.qlist p { margin: 0; }
.tl { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; }
.tl img { width: 32px; height: 32px; object-fit: contain; border-radius: 6px; background: radial-gradient(circle, #fff7e4, var(--inset)); box-shadow: inset 0 0 0 1px rgba(122, 80, 40, .4); }
.navbox { clear: both; margin-top: 44px; overflow: hidden; padding: 0; }
.navbox > header { background: var(--tex), var(--leather-grad); color: var(--on-dark); font-family: var(--font-display); font-weight: 700; text-align: center; padding: 10px; border-bottom: 2px solid var(--rim); }
.navbox > div { display: grid; grid-template-columns: 150px 1fr; border-top: 1px solid rgba(122, 80, 40, .25); }
.navbox > div > b { padding: 12px 14px; background: rgba(176, 124, 64, .16); font-size: 14px; }
.navbox > div > b a { color: var(--accent); text-decoration: none; }
.navbox p, .navbox.npcs p { margin: 0; padding: 10px 12px; display: flex; flex-wrap: wrap; gap: 4px 6px; }
.navbox p a { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px 3px 3px; border-radius: 999px; text-decoration: none; font-size: 14px; color: #4d2f17; }
.navbox p a:hover { background: rgba(206, 134, 38, .18); color: var(--ink); }
.navbox p img { width: 26px; height: 26px; object-fit: contain; border-radius: 50%; background: radial-gradient(circle, #fff7e4, var(--inset)); }
.navbox.npcs .mono { width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; background: var(--leather-grad); color: var(--on-dark); font-family: var(--font-display); font-size: 13px; }
.toc { float: right; clear: right; width: 240px; margin: 0 0 18px 26px; padding: 14px 16px; }
.toc b { font-size: 12.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); }
.toc ol { margin: 8px 0 0; padding-left: 20px; display: flex; flex-direction: column; gap: 4px; font-size: 14.5px; }
.prose { display: flex; flex-direction: column; gap: 16px; }
.prose > h2 { margin: 18px 0 0; }
.prose ul:not([class]), .prose ol:not([class]) { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 6px; }
.prose ul:not([class]) li::marker { color: var(--rim); }
.prose p { max-width: 72ch; margin: 0; }
.callout { padding: 16px 18px; border-radius: 10px; background: rgba(255, 249, 234, .7); border: 2px dashed var(--rim); color: #4d2f17; }
.callout b { color: var(--ink); }
.stat-row { display: flex; flex-wrap: wrap; gap: 12px; }
.stat { flex: 1 1 150px; padding: 16px 18px; }
.stat span { display: block; font-size: 13px; color: var(--muted); letter-spacing: .06em; text-transform: uppercase; }
.stat b { font-family: var(--font-display); font-size: 26px; color: var(--cream); font-variant-numeric: tabular-nums; }
.filter-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.filter-row button { padding: 7px 15px; border-radius: 999px; border: 1.5px solid transparent; background: var(--button-grad) padding-box, var(--rim-grad) border-box; color: var(--ink); font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; box-shadow: 0 3px 8px rgba(61, 36, 19, .12); transition: transform .2s cubic-bezier(.34, 1.56, .64, 1), background .2s, color .2s; }
.filter-row button:hover { transform: scale(1.05); }
.filter-row button[aria-pressed="true"] { background: var(--leather-grad) padding-box, var(--rim-grad) border-box; color: var(--on-dark); }
.swatch { width: 100%; height: 6px; border-radius: 3px; }
.kbd { display: inline-block; min-width: 30px; padding: 3px 9px; border-radius: 6px; background: var(--card-grad); border: 1.5px solid var(--rim); border-bottom-width: 3px; border-bottom-color: var(--rim-dark); font-family: ui-monospace, Consolas, monospace; font-size: 13.5px; color: var(--ink); font-weight: 700; text-align: center; white-space: nowrap; }
.bar { height: 9px; border-radius: 5px; background: var(--inset); box-shadow: inset 0 0 0 1px rgba(122, 80, 40, .5); overflow: hidden; min-width: 80px; }
.bar i { display: block; height: 100%; border-radius: 5px; }
.pager { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 30px; padding-top: 20px; border-top: 1px solid rgba(122, 80, 40, .3); clear: both; }
.pager a { text-decoration: none; padding: 12px 16px; color: var(--ink); font-weight: 700; transition: transform .25s cubic-bezier(.34, 1.56, .64, 1); }
.pager a:hover { transform: scale(1.03); color: var(--ink); }
.pager small { display: block; color: var(--muted); font-size: 13px; font-weight: 400; }
.side-h { margin: 14px 10px 2px; font-size: 11.5px; letter-spacing: .24em; text-transform: uppercase; color: var(--muted); }
@media (max-width: 980px) {
  .wk { grid-template-columns: 1fr; gap: 18px; padding-top: 18px; }
  .wk-side { position: relative; top: 0; max-height: none; overflow: visible; }
  .side-toggle { display: flex; width: 100%; justify-content: space-between; align-items: center; padding: 12px 14px; color: var(--ink); font: inherit; font-weight: 700; cursor: pointer; }
  .side-toggle::after { content: "☰"; color: var(--rim-dark); }
  .wk-side nav { display: none; margin-top: 8px; max-height: 60vh; overflow: auto; }
  .wk-side.open nav { display: block; }
  .feature { grid-template-columns: 1fr; }
  .feature-img { min-height: 240px; order: -1; border-radius: 11px 11px 0 0; border-left: 0; border-bottom: 2px solid var(--rim); }
}
@media (max-width: 760px) {
  .ibox, .toc { float: none; width: auto; margin: 6px 6px 22px; }
  .ibox .well { height: 240px; }
  .navbox > div { grid-template-columns: 1fr; }
  .egrid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
}
@media (prefers-reduced-motion: reduce) { .ibox .well img, .feature-img img { animation: none; } }

/* ---------- Patch notes ---------- */
.patches { display: flex; flex-direction: column; gap: 18px; }
.patch { display: grid; grid-template-columns: 96px 1fr; gap: 22px; padding: 18px 22px 18px 18px; }
.patch .plaque { width: 96px; height: 96px; border-radius: 10px; background: var(--tex), var(--leather-grad); border: 2px solid var(--rim); box-shadow: 0 0 0 1.5px var(--ink); display: flex; flex-direction: column; align-items: center; justify-content: center; color: var(--on-dark); }
.patch .plaque b { font-family: var(--font-display); font-weight: 900; font-size: 32px; line-height: 1; }
.patch .plaque span { font-size: 13px; font-weight: 700; letter-spacing: .12em; color: var(--gold-bright); }
.patch h3 { font-size: 23px; }
.patch ul { list-style: none; padding: 0; margin: 10px 0 0; display: flex; flex-direction: column; gap: 6px; }
.patch li { display: flex; gap: 12px; color: #4d2f17; }
.patch li em { font-style: normal; font-weight: 700; min-width: 86px; font-size: 13px; letter-spacing: .1em; padding-top: 2px; }
.patch li em.new { color: var(--green); } .patch li em.change { color: #2f5f86; } .patch li em.fix { color: var(--accent); }
@media (max-width: 560px) { .patch { grid-template-columns: 1fr; } }

/* ---------- Team ---------- */
.member { display: flex; align-items: center; gap: 18px; padding: 10px 18px 10px 10px; }
.member .face { width: 72px; height: 72px; flex: 0 0 auto; border-radius: 8px; background: var(--tex), var(--leather-grad); border: 2px solid var(--rim); display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-weight: 900; font-size: 28px; color: var(--on-dark); }
.member b { display: block; font-family: var(--font-display); font-size: 20px; color: var(--cream); }
.member small { color: var(--muted); font-size: 15px; }

/* ---------- Footer (leather) ---------- */
.site-footer { background: var(--tex), var(--leather-grad); border-top: 3px solid transparent; border-image: linear-gradient(90deg, var(--rim-dark), var(--rim-light) 30%, var(--rim) 70%, var(--rim-dark)) 1; }
.site-footer .wrap { padding-top: 48px; padding-bottom: 40px; display: flex; flex-direction: column; align-items: center; gap: 18px; text-align: center; }
.site-footer .brand { color: var(--gold-bright); }
.site-footer .divider span:nth-child(even) { background: linear-gradient(90deg, transparent, var(--on-dark-muted) 18%, var(--on-dark-muted) 82%, transparent); }
.foot-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 26px; }
.foot-links a { color: var(--on-dark-muted); text-decoration: none; }
.foot-links a:hover { color: var(--on-dark); }
.site-footer small { color: #c7a87f; }

/* ---------- To top ---------- */
.to-top { position: fixed; right: 18px; bottom: 18px; z-index: 40; width: 48px; height: 48px; border-radius: 10px; border: 2px solid transparent; background: var(--leather-grad) padding-box, var(--rim-grad) border-box; box-shadow: 0 0 0 1.5px var(--ink), 0 8px 18px rgba(61, 36, 19, .3); color: var(--on-dark); cursor: pointer; display: flex; align-items: center; justify-content: center; opacity: 0; transform: translateY(12px); pointer-events: none; transition: opacity .3s, transform .3s var(--ease); }
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { transform: scale(1.08); }
.to-top svg { width: 20px; height: 20px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .hero canvas { display: none; }
}
/* home: the hero is the whole page */
.hero.hero-full { min-height: calc(100vh - 75px); min-height: calc(100svh - 75px); }
.hero.hero-full::before { background:
  linear-gradient(90deg, rgba(61, 36, 19, .45) 0%, rgba(61, 36, 19, .12) 45%, rgba(61, 36, 19, 0) 70%),
  linear-gradient(180deg, rgba(61, 36, 19, .25) 0%, rgba(61, 36, 19, 0) 20%, rgba(61, 36, 19, 0) 82%, rgba(61, 36, 19, .35) 100%); }
.hero.hero-full .hero-inner { padding-top: 60px; padding-bottom: 60px; }
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 55% 50%; z-index: 0; background: #9fd0ee url(../img/meadow2.webp) center / cover; }
.hero.hero-full::before { background:
  linear-gradient(90deg, rgba(61, 36, 19, .38) 0%, rgba(61, 36, 19, .08) 42%, rgba(61, 36, 19, 0) 62%),
  linear-gradient(180deg, rgba(61, 36, 19, .22) 0%, rgba(61, 36, 19, 0) 18%, rgba(61, 36, 19, 0) 85%, rgba(61, 36, 19, .3) 100%); }
@media (prefers-reduced-motion: reduce) { .hero-video { display: none; } .hero.hero-full { background: url(../img/meadow2.webp) center / cover; } }

/* ---------- Wordmark logo ---------- */
.logo { display: inline-flex; flex-direction: column; align-items: center; gap: 1px; text-decoration: none; line-height: 1; letter-spacing: 0; padding: 4px 2px; position: relative; isolation: isolate; }
.logo-parry {
  position: relative; font-family: var(--font-display); font-weight: 900; font-size: 27px; letter-spacing: .07em; text-transform: uppercase;
  background: linear-gradient(180deg, #fff0c8 0%, #f6cf7a 45%, #c98a34 100%); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 1.5px 0 #2a170a) drop-shadow(0 0 1px #2a170a);
}
.logo-every { display: flex; align-items: center; justify-content: center; gap: 7px; font-family: var(--font-body); font-weight: 700; font-size: 9.5px; letter-spacing: .46em; text-transform: uppercase; color: var(--on-dark-muted); }
.logo-every > span { padding-left: .46em; }
.logo-every::before, .logo-every::after { content: ""; width: 14px; height: 1px; background: linear-gradient(90deg, transparent, var(--rim-light)); }
.logo-every::after { transform: scaleX(-1); }
.site-footer .logo-parry { font-size: 32px; }
.site-footer .logo-every { font-size: 11px; }

/* ---------- Header refinements ---------- */
.site-header { box-shadow: 0 8px 22px rgba(43, 24, 10, .38); }
.site-header::after { content: ""; position: absolute; left: 0; right: 0; bottom: 5px; border-top: 1.5px dashed rgba(255, 228, 180, .22); pointer-events: none; }
.nav { min-height: 76px; gap: 28px; }
.nav-links { gap: 4px; }
.nav-links a { padding: 9px 15px; border-radius: 8px; font-size: 15.5px; letter-spacing: .01em; transition: color .2s, background .2s; }
.nav-links a:hover { background: rgba(255, 236, 200, .08); }
.nav-links a[aria-current="page"] { background: rgba(0, 0, 0, .2); box-shadow: inset 0 1px 2px rgba(0, 0, 0, .35), inset 0 0 0 1px rgba(226, 178, 104, .25); }
.nav .btn-play { min-height: 42px; padding: 0 20px; font-size: 15px; }
.nav .btn-play svg { width: 14px; height: 14px; }
@media (max-width: 900px) { .nav-links a[aria-current="page"] { background: rgba(0, 0, 0, .2); } }

/* ---------- Home hero: panel in the upper left ---------- */
.hero.hero-full { align-items: flex-start; }
.hero.hero-full .hero-inner { max-width: none; margin: 0; padding: clamp(36px, 9vh, 96px) clamp(20px, 8vw, 150px) 48px; }
.hero.hero-full .hero-copy { max-width: 540px; gap: 16px; padding: clamp(24px, 3.2vw, 36px); }
.hero.hero-full .hero-copy h1 { font-size: clamp(42px, 5.4vw, 62px); }
.hero.hero-full .lede { font-size: 17.5px; }

/* ---------- Roblox ile giriş ---------- */
.auth { position: relative; display: flex; align-items: center; margin-left: 6px; }
.auth-login, .auth-user {
  display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 14px 0 11px; border-radius: 9px; cursor: pointer;
  font: 700 15px/1 var(--font-body); color: var(--on-dark); letter-spacing: .01em;
  background: rgba(0, 0, 0, .18); border: 1.5px solid rgba(226, 178, 104, .45);
  box-shadow: inset 0 1px 0 rgba(255, 236, 200, .08); transition: background .2s, border-color .2s;
}
.auth-login svg { width: 19px; height: 19px; color: var(--rim-light); }
.auth-login:hover, .auth-user:hover, .auth-user[aria-expanded="true"] { background: rgba(255, 236, 200, .1); border-color: var(--rim-light); }
.auth-user { padding: 0 12px 0 5px; max-width: 220px; }
.auth-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.auth-avatar {
  --s: 30px; width: var(--s); height: var(--s); flex: 0 0 auto; border-radius: 50%; overflow: hidden; display: grid; place-items: center;
  background: radial-gradient(circle at 50% 35%, #fff4dc, var(--inset)); box-shadow: 0 0 0 2px var(--rim-light), 0 2px 6px rgba(0, 0, 0, .3);
  font: 900 calc(var(--s) * .45)/1 var(--font-display); color: var(--rim-dark);
}
.auth-avatar img { width: 100%; height: 100%; object-fit: cover; }
.auth-menu {
  position: absolute; top: calc(100% + 10px); right: 0; z-index: 60; width: 240px; padding: 8px; border-radius: 12px; border: 2px solid transparent;
  background: var(--tex) padding-box, var(--paper-grad) padding-box, var(--rim-grad) border-box;
  box-shadow: 0 0 0 1.5px var(--ink), 0 18px 34px rgba(43, 24, 10, .4); animation: swap .18s var(--ease);
}
.auth-menu-head { display: flex; align-items: center; gap: 12px; padding: 8px 8px 12px; margin-bottom: 6px; border-bottom: 1.5px dashed rgba(122, 80, 40, .35); }
.auth-menu-head b { display: block; font-family: var(--font-display); color: var(--ink); font-size: 16px; }
.auth-menu-head small { color: var(--ink-muted); font-size: 13.5px; }
.auth-menu a, .auth-menu .auth-logout {
  display: block; width: 100%; text-align: left; padding: 10px 10px; border-radius: 8px; border: 0; background: none; cursor: pointer;
  font: 600 15px/1.2 var(--font-body); color: var(--ink); text-decoration: none;
}
.auth-menu a:hover, .auth-menu .auth-logout:hover { background: rgba(176, 124, 64, .16); }
.auth-menu .auth-logout { color: var(--accent); }
.auth-notice {
  position: absolute; top: calc(100% + 10px); right: 0; z-index: 60; width: 260px; padding: 12px 14px; border-radius: 10px;
  background: var(--paper-grad); color: var(--ink); font-size: 14px; line-height: 1.4; box-shadow: 0 0 0 1.5px var(--ink), 0 12px 26px rgba(43, 24, 10, .35); animation: swap .18s var(--ease);
}
@media (max-width: 900px) {
  .auth { margin-left: auto; order: 1; }
  .nav-toggle { order: 2; margin-left: 0; }
  .auth-login span, .auth-name { display: none; }
  .auth-login { padding: 0 11px; }
  .auth-user { padding: 0 5px; }
}
.auth-page { min-height: calc(100vh - 260px); display: grid; align-items: center; }
.auth-card { max-width: 560px; margin: 0 auto; }
.auth-card .inset { padding: 40px 36px 34px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 14px; }
.auth-card h1 { font-size: clamp(26px, 3.4vw, 34px); font-weight: 900; }
.auth-card.is-error h1 { color: var(--accent); }
.auth-card.is-error .auth-spin { display: none; }
.auth-spin { width: 34px; height: 34px; border-radius: 50%; border: 3px solid rgba(122, 80, 40, .25); border-top-color: var(--rim-dark); animation: spin .9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.auth-fine { font-size: 13.5px; color: var(--ink-muted); }
.legal { max-width: 820px; padding: 34px 38px; }
.legal h2 { font-size: 22px; }
