/* Knights of Lordaeron — night sky, steel and gold; parchment for the words that matter. */
:root {
  --night: #0b101d;
  --night2: #111a2e;
  --night3: #18233d;
  --line: #2a3756;
  --steel: #9aa7bf;
  --ivory: #efe6d2;
  --ivory2: #cdc4ae;
  --gold: #c9a24a;
  --gold-hi: #ecd182;
  --gold-lo: #8a6a26;
  --royal: #2b4c8c;
  --ink: #2a2118;
  --ink2: #5a4a37;
  --parch: #efe5cf;
  --parch2: #e3d4b3;
  --blood: #9b2f2f;
  --ok: #5f9e6e;
  --display: "Cinzel", "Trajan Pro", Georgia, serif;          /* decorates: titles, eyebrows, buttons */
  --serif: "EB Garamond", Garamond, Georgia, serif;            /* tells: prose, tales, quips */
  --sans: "Inter", "Segoe UI", system-ui, sans-serif;           /* counts: names, numbers, labels, UI */
  --text: #efe6d2; --text-2: #cdc4ae; --text-3: #9aa7bf;       /* primary / secondary / muted (all ≥ 4.5:1) */
  --surface: #111a2e;
  --fs-xs: .75rem; --fs-sm: .875rem; --fs-md: 1rem; --fs-body: 1.1875rem; --fs-lg: 1.25rem; --fs-xl: 1.625rem; --fs-2xl: 2.25rem;
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px; --s8: 64px;
  --radius: 6px;
  --c-druid: #ff7c0a; --c-hunter: #aad372; --c-mage: #3fc7eb; --c-paladin: #f48cba; --c-priest: #ffffff;
  --c-rogue: #fff468; --c-shaman: #2b8cff; --c-warlock: #8788ee; --c-warrior: #c69b6d;
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 64px; }
body {
  margin: 0; background: var(--night); color: var(--ivory);
  font: 400 var(--fs-body)/1.6 var(--serif); -webkit-font-smoothing: antialiased; overflow-x: clip; text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--gold-hi); }
h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.15; margin: 0; letter-spacing: .02em; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--gold); color: var(--night); padding: 8px 14px; z-index: 99; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--gold-hi); outline-offset: 3px; }

/* ---- buttons ---------------------------------------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em; padding: .8em 1.5em;
  font: 700 .95rem/1 var(--display); letter-spacing: .12em; text-transform: uppercase; text-decoration: none;
  border-radius: var(--radius); border: 1px solid transparent; cursor: pointer; transition: transform .15s, box-shadow .15s, background .15s;
}
.btn-gold {
  color: #1d1406; background: linear-gradient(180deg, var(--gold-hi), var(--gold) 55%, #a88334);
  border-color: #6b5220; box-shadow: inset 0 1px 0 #fff6d0, 0 6px 18px rgba(201, 162, 74, .25);
}
.btn-gold:hover { transform: translateY(-1px); box-shadow: inset 0 1px 0 #fff6d0, 0 10px 26px rgba(201, 162, 74, .38); }
.btn-ghost { color: var(--ivory); background: rgba(11, 16, 29, .35); border-color: rgba(239, 230, 210, .45); backdrop-filter: blur(2px); }
.btn-ghost:hover { border-color: var(--gold-hi); color: var(--gold-hi); }
.btn-ghost[aria-disabled="true"] { opacity: .6; cursor: default; }
.btn-sm { padding: .55em 1em; font-size: .78rem; }
.btn.wide { width: 100%; padding: 1em; }
.btn:disabled { opacity: .6; cursor: progress; }

/* ---- nav -------------------------------------------------------------------------------------------------------- */
.bar {
  position: fixed; inset: 0 0 auto 0; z-index: 20; display: flex; align-items: center; gap: 1.5rem;
  padding: .7rem clamp(16px, 4vw, 40px); transition: background .25s, box-shadow .25s, padding .25s;
}
.bar.solid { background: rgba(11, 16, 29, .92); backdrop-filter: blur(8px); box-shadow: 0 1px 0 var(--line); padding-block: .5rem; }
.brand { display: flex; align-items: center; gap: .6rem; color: var(--ivory); text-decoration: none; font: 700 .95rem var(--display); letter-spacing: .08em; }
.brand img { width: 26px; height: auto; }
.bar .links { display: flex; gap: 1.4rem; margin-left: auto; }
.bar .links a { color: var(--ivory2); text-decoration: none; font: 600 0.84rem var(--sans); letter-spacing: .06em; text-transform: uppercase; }
.bar .links a:hover { color: var(--gold-hi); }
.bar:not(.solid) .brand span { opacity: 0; transition: opacity .25s; }
.bar.solid .brand span { opacity: 1; }

/* ---- hero ------------------------------------------------------------------------------------------------------- */
.hero {
  position: relative; min-height: max(640px, 100svh); display: grid; place-items: center; text-align: center;
  padding: 84px 16px max(31vh, 200px); overflow: hidden; isolation: isolate;
  background:
    radial-gradient(75% 42% at 50% 100%, #3a4f86 0%, rgba(58, 79, 134, .45) 40%, rgba(58, 79, 134, 0) 75%),
    radial-gradient(120% 80% at 50% 0%, #1d2c52 0%, #131d36 50%, #10182c 100%);
}
.sky { position: absolute; inset: 0; z-index: -3; }
.stars { position: absolute; inset: 0; background-repeat: repeat; opacity: .8; }
.stars.s1 {
  background-image:
    radial-gradient(1px 1px at 23px 41px, #fff, transparent), radial-gradient(1px 1px at 141px 89px, #dfe6ff, transparent),
    radial-gradient(1.5px 1.5px at 77px 163px, #fff, transparent), radial-gradient(1px 1px at 199px 21px, #fff, transparent),
    radial-gradient(1px 1px at 250px 140px, #cfd8f0, transparent), radial-gradient(1.2px 1.2px at 311px 71px, #fff, transparent);
  background-size: 340px 220px; mask-image: linear-gradient(#000 40%, transparent 85%);
}
.stars.s2 {
  background-image:
    radial-gradient(2px 2px at 60px 70px, #fff8e0, transparent), radial-gradient(1.6px 1.6px at 330px 30px, #fff, transparent),
    radial-gradient(1.8px 1.8px at 480px 190px, #e9eeff, transparent);
  background-size: 560px 300px; mask-image: linear-gradient(#000 30%, transparent 75%); animation: twinkle 6s ease-in-out infinite alternate;
}
@keyframes twinkle { from { opacity: .35; } to { opacity: .95; } }
.moon {
  position: absolute; width: 120px; height: 120px; right: 12%; top: 13%; border-radius: 50%;
  background: radial-gradient(circle at 38% 36%, #fffbe9, #e9dfc2 55%, #cbbd98);
  box-shadow: 0 0 60px 18px rgba(255, 244, 210, .18), 0 0 200px 80px rgba(160, 180, 255, .08);
}
.moon::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background:
  radial-gradient(circle at 62% 58%, rgba(150, 130, 90, .25) 0 9%, transparent 10%),
  radial-gradient(circle at 40% 66%, rgba(150, 130, 90, .2) 0 6%, transparent 7%),
  radial-gradient(circle at 55% 30%, rgba(150, 130, 90, .18) 0 5%, transparent 6%); }
.castle { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 27vh; min-height: 180px; z-index: -2; overflow: visible; }
.castle .far { fill: #1e2a49; }
.castle .near { fill: var(--night); }
.castle .lit { fill: #f2c66b; opacity: .85; }
.castle .flag { fill: var(--night); transform-origin: 801px 10px; animation: flag 3.5s ease-in-out infinite alternate; }
@keyframes flag { from { transform: skewY(-3deg) scaleX(.96); } to { transform: skewY(3deg) scaleX(1.04); } }
.mist { position: absolute; inset: auto 0 0 0; height: 10vh; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, transparent, var(--night)); }
.hero-in { max-width: 960px; }
.crest { width: clamp(100px, 12vw, 138px); height: auto; margin: 0 auto 1rem; filter: drop-shadow(0 10px 24px rgba(0, 0, 0, .55)) drop-shadow(0 0 30px rgba(201, 162, 74, .18)); }
.kicker { margin: 0 0 .9rem; font: 600 .82rem var(--display); letter-spacing: .24em; text-transform: uppercase; color: var(--steel); }
.hero h1 {
  font-size: clamp(2.4rem, 7.6vw, 5.8rem); font-weight: 800; letter-spacing: .04em; line-height: 1.02;
  background: linear-gradient(180deg, #fff3c9 0%, var(--gold-hi) 40%, var(--gold) 70%, #9c7a32 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 3px 0 rgba(0, 0, 0, .5)) drop-shadow(0 12px 30px rgba(0, 0, 0, .5));
}
.hero h1 small { display: block; font: italic 500 .34em/1 var(--serif); letter-spacing: .08em; margin: .1em 0 .12em; }
.hero h1 .of { display: inline-block; }
.motto { margin: 1rem 0 1.7rem; font: italic 400 clamp(1.15rem, 2.4vw, 1.5rem) var(--serif); color: var(--ivory2); }
.ctas { display: flex; flex-wrap: wrap; gap: .9rem; justify-content: center; }
.herald {
  display: inline-flex; align-items: center; gap: .6em; margin: 1.6rem 0 0; padding: .45em 1em; border-radius: 99px;
  border: 1px solid rgba(201, 162, 74, .45); background: rgba(11, 16, 29, .55); color: var(--ivory);
  font: 600 0.86rem var(--sans); letter-spacing: .06em; text-transform: uppercase;
}
.herald::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--gold-hi); box-shadow: 0 0 10px var(--gold-hi); }

/* ---- sections --------------------------------------------------------------------------------------------------- */
section { position: relative; padding: clamp(64px, 10vw, 120px) 16px; }
.wrap { max-width: 1120px; margin: 0 auto; }
.eyebrow { margin: 0 0 .6rem; font: 700 .82rem var(--display); letter-spacing: .22em; text-transform: uppercase; color: var(--gold); }
h2 { font-size: clamp(2rem, 4.6vw, 3.1rem); margin-bottom: 1.6rem; }
h2::after {
  content: ""; display: block; width: 180px; height: 12px; margin-top: .9rem;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 180 12'%3E%3Cpath d='M0 6h78M102 6h78' stroke='%23c9a24a' stroke-width='1.2'/%3E%3Cpath d='M90 0l6 6-6 6-6-6z' fill='%23c9a24a'/%3E%3Ccircle cx='76' cy='6' r='1.6' fill='%23c9a24a'/%3E%3Ccircle cx='104' cy='6' r='1.6' fill='%23c9a24a'/%3E%3C/svg%3E") no-repeat;
}
.sub { font-size: 1.2rem; letter-spacing: .03em; text-transform: none; margin: 3.2rem 0 1.2rem; color: var(--ivory2); }
.lede { color: var(--ivory2); margin: -.4rem 0 2rem; max-width: 60ch; }
.night { background: var(--night); }
.night.deep { background: linear-gradient(180deg, var(--night) 0%, var(--night2) 30%, var(--night2) 70%, var(--night) 100%); }
.sample {
  display: inline-block; vertical-align: middle; margin-left: .8rem; padding: .2em .7em; border: 1px dashed currentColor; border-radius: 99px;
  font: 600 .62rem var(--display); letter-spacing: .16em; text-transform: uppercase; color: var(--steel); opacity: .85;
}

/* ---- parchment -------------------------------------------------------------------------------------------------- */
.parchment {
  color: var(--ink);
  background:
    radial-gradient(90% 60% at 50% 0%, rgba(255, 252, 240, .7), transparent 70%),
    radial-gradient(60% 50% at 0% 100%, rgba(150, 110, 60, .14), transparent 70%),
    radial-gradient(60% 50% at 100% 100%, rgba(150, 110, 60, .14), transparent 70%),
    linear-gradient(180deg, var(--parch), var(--parch2));
  box-shadow: inset 0 18px 30px -20px rgba(0, 0, 0, .55), inset 0 -18px 30px -20px rgba(0, 0, 0, .55);
}
.parchment .eyebrow { color: var(--blood); }
.parchment h2 { color: #1f1a2c; }
.parchment .sample { color: var(--ink2); }
.about { columns: 2 340px; column-gap: 3rem; font-size: 1.2rem; }
.about p { margin: 0 0 1rem; break-inside: avoid; }
.about p:first-child::first-letter {
  float: left; font: 800 4.6rem/.8 var(--display); margin: .3rem .6rem 0 0; color: var(--blood);
  text-shadow: 1px 1px 0 var(--gold);
}
.pillars { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.4rem; margin-top: 2.8rem; }
.pillar { padding: 1.6rem 1.5rem 1.4rem; border: 1px solid rgba(90, 74, 55, .35); border-radius: var(--radius); background: rgba(255, 250, 236, .45); position: relative; }
.pillar::before { content: ""; position: absolute; inset: 5px; border: 1px solid rgba(201, 162, 74, .45); border-radius: 3px; pointer-events: none; }
.pillar svg { width: 44px; height: 44px; margin-bottom: .8rem; }
.pillar h3 { font-size: 1.15rem; margin-bottom: .45rem; color: #1f1a2c; }
.pillar p { margin: 0; color: var(--ink2); font-size: 1.05rem; }
.facts { display: flex; flex-wrap: wrap; gap: .6rem 2.6rem; margin: 2.6rem 0 0; padding-top: 1.6rem; border-top: 1px solid rgba(90, 74, 55, .3); }
.facts div { display: flex; flex-direction: column; }
.facts dt { font: 700 0.8125rem var(--sans); letter-spacing: .06em; text-transform: uppercase; color: var(--ink2); }
.facts dd { margin: .1rem 0 0; font: 700 1.15rem var(--sans); color: #1f1a2c; font-variant-numeric: lining-nums tabular-nums; font-feature-settings: "tnum"; }

/* ---- schedule --------------------------------------------------------------------------------------------------- */
.lede strong { color: var(--gold-hi); font-weight: 500; }
.schedule { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1.2rem; }
.muster {
  position: relative; padding: 1.5rem 1.5rem 1.3rem; border-radius: var(--radius); border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--night3), var(--night2));
}
.muster.next { border-color: var(--gold); box-shadow: 0 0 0 1px rgba(201, 162, 74, .3), 0 16px 40px rgba(0, 0, 0, .35); }
.muster.next::after { content: "Next"; position: absolute; top: -10px; right: 14px; padding: .15em .7em; background: var(--gold); color: #1d1406;
  border-radius: 99px; font: 700 .65rem var(--display); letter-spacing: .14em; text-transform: uppercase; }
.muster .day { font: 700 1.5rem var(--display); color: var(--ivory); }
.muster .what { margin: .1rem 0 .9rem; color: var(--gold-hi); font-style: italic; }
.muster .time { font: 700 1.05rem var(--sans); letter-spacing: .05em; font-variant-numeric: lining-nums tabular-nums; font-feature-settings: "tnum"; }
.muster .local { margin-top: .2rem; font-size: .95rem; color: var(--steel); }

/* ---- raids ------------------------------------------------------------------------------------------------------ */
.raids { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.2rem; }
.raid {
  position: relative; overflow: hidden; padding: 1.6rem 1.5rem 1.4rem; border-radius: var(--radius);
  border: 1px solid var(--line); background: linear-gradient(160deg, #1b2747 0%, var(--night2) 60%);
}
.raid::before { content: ""; position: absolute; right: -40px; top: -40px; width: 160px; height: 160px; border-radius: 50%;
  background: radial-gradient(circle, rgba(201, 162, 74, .16), transparent 70%); }
.raid .size { position: absolute; top: 1.2rem; right: 1.2rem; width: 52px; height: 58px; display: grid; place-items: center;
  font: 800 1.15rem var(--display); color: var(--night);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 52 58'%3E%3Cpath d='M26 1 51 7v20c0 15-11 25-25 30C12 52 1 42 1 27V7z' fill='%23c9a24a' stroke='%23ecd182'/%3E%3C/svg%3E") no-repeat center/contain; padding-bottom: 6px; }
.raid .size small { display: block; font-size: .5rem; letter-spacing: .1em; margin-top: -6px; }
.raid h3 { font-size: 1.4rem; padding-right: 64px; }
.raid .zone { margin: .25rem 0 1.2rem; color: var(--steel); font-style: italic; }
.bar-track { height: 8px; border-radius: 99px; background: #0a0f1b; border: 1px solid var(--line); overflow: hidden; }
.bar-fill { height: 100%; background: linear-gradient(90deg, var(--gold-lo), var(--gold-hi)); border-radius: 99px; }
.raid .state { display: flex; justify-content: space-between; margin-top: .6rem; font: 600 0.875rem var(--sans); letter-spacing: .06em; text-transform: uppercase; color: var(--ivory2); }
.raid .state .sealed { color: var(--gold-hi); }
.raid ul { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; gap: .3rem; font-size: 1rem; }
.raid li { display: flex; gap: .5rem; align-items: center; color: var(--steel); }
.raid li.dead { color: var(--ivory); }
.raid li::before { content: ""; width: 10px; height: 10px; transform: rotate(45deg); border: 1px solid var(--steel); flex: none; }
.raid li.dead::before { background: var(--gold); border-color: var(--gold-hi); }
.roadmap { list-style: none; margin: 0; padding: 0 0 0 1.4rem; border-left: 1px solid var(--line); display: grid; gap: 1.2rem; }
.roadmap li { position: relative; }
.roadmap li::before { content: ""; position: absolute; left: calc(-1.4rem - 6px); top: .45rem; width: 11px; height: 11px; transform: rotate(45deg);
  background: var(--night2); border: 1px solid var(--gold); }
.roadmap li:first-child::before { background: var(--gold); }
.roadmap .when { font: 700 0.86rem var(--sans); letter-spacing: .06em; text-transform: uppercase; color: var(--gold-hi); }
.roadmap .what { color: var(--ivory2); }

/* ---- roster ----------------------------------------------------------------------------------------------------- */
.filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.6rem; }
.pill { padding: .45em 1.1em; border-radius: 99px; border: 1px solid var(--line); background: transparent; color: var(--ivory2);
  font: 600 0.84rem var(--sans); letter-spacing: .06em; text-transform: uppercase; cursor: pointer; }
.pill:hover { border-color: var(--steel); color: var(--ivory); }
.pill.on { background: var(--gold); border-color: var(--gold); color: #1d1406; }
.roll { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: .8rem; }
.knight {
  --c: var(--steel); display: grid; grid-template-columns: 40px 1fr; gap: .2rem .9rem; align-items: center;
  padding: .9rem 1rem; border-radius: var(--radius); border: 1px solid var(--line); background: var(--night2);
  border-left: 3px solid var(--c);
}
.knight[hidden] { display: none; }
.knight .role { grid-row: span 2; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  background: color-mix(in srgb, var(--c) 14%, var(--night)); border: 1px solid color-mix(in srgb, var(--c) 45%, transparent); }
.knight .role svg { width: 20px; height: 20px; fill: var(--c); }
.knight .nm { font: 700 1.02rem var(--sans); color: var(--c); line-height: 1.2; }
.knight .cl { font-size: .95rem; color: var(--steel); line-height: 1.3; }
.knight .rk { grid-column: 2; font: 600 0.8125rem var(--sans); letter-spacing: .06em; text-transform: uppercase; color: var(--gold); }
.knight.officer { background: linear-gradient(90deg, color-mix(in srgb, var(--c) 8%, var(--night2)), var(--night2)); }
.c-druid { --c: var(--c-druid); } .c-hunter { --c: var(--c-hunter); } .c-mage { --c: var(--c-mage); } .c-paladin { --c: var(--c-paladin); }
.c-priest { --c: var(--c-priest); } .c-rogue { --c: var(--c-rogue); } .c-shaman { --c: var(--c-shaman); } .c-warlock { --c: var(--c-warlock); }
.c-warrior { --c: var(--c-warrior); }

/* ---- oath ------------------------------------------------------------------------------------------------------- */
.two { display: grid; grid-template-columns: 1fr minmax(0, 1.05fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.call > p { font-size: 1.15rem; margin: 0 0 1.2rem; }
.needs { list-style: none; padding: 0; margin: 0 0 2.4rem; display: grid; gap: .55rem; }
.need { display: flex; align-items: center; gap: .8rem; padding: .6rem .9rem; border-radius: var(--radius);
  background: rgba(255, 250, 236, .55); border: 1px solid rgba(90, 74, 55, .28); }
.need .dot { width: 12px; height: 12px; border-radius: 50%; background: var(--c, var(--ink2)); box-shadow: 0 0 0 2px rgba(42, 33, 24, .55); flex: none; }
.need .who { font: 700 1rem var(--sans); color: #1f1a2c; }
.need .spec { color: var(--ink2); }
.need .pri { margin-left: auto; font: 700 0.8125rem var(--sans); letter-spacing: .06em; text-transform: uppercase; padding: .25em .7em; border-radius: 99px; }
.pri-high { background: var(--blood); color: #fff3e6; }
.pri-medium { background: var(--gold); color: #1d1406; }
.pri-low { background: transparent; color: var(--ink2); border: 1px solid rgba(90, 74, 55, .5); }
.pri-closed { background: transparent; color: rgba(90, 74, 55, .75); border: 1px dashed rgba(90, 74, 55, .5); }
.need.closed .who, .need.closed .spec { opacity: .55; text-decoration: line-through; text-decoration-thickness: 1px; }
.news h3 { font-size: 1rem; letter-spacing: .03em; text-transform: none; color: var(--blood); margin-bottom: .8rem; }
.news article { padding: .9rem 0; border-top: 1px solid rgba(90, 74, 55, .28); }
.news time { font: 600 0.8125rem var(--sans); letter-spacing: .06em; text-transform: uppercase; color: var(--ink2); }
.news h4 { margin: .15rem 0 .2rem; font: 700 1.1rem var(--display); color: #1f1a2c; }
.news p { margin: 0; color: var(--ink2); }

.scroll {
  position: relative; padding: clamp(1.4rem, 3.5vw, 2.4rem); border-radius: var(--radius); color: var(--ivory);
  background: linear-gradient(180deg, var(--night3), var(--night2)); border: 1px solid #3a4870;
  box-shadow: 0 30px 60px -20px rgba(30, 20, 5, .55), inset 0 0 0 4px var(--night2), inset 0 0 0 5px rgba(201, 162, 74, .5);
}
.scroll h3 { font-size: 1.5rem; margin-bottom: 1.2rem; color: var(--gold-hi); }
.scroll label { display: block; margin-bottom: 1rem; font: 600 0.8125rem var(--sans); letter-spacing: .06em; text-transform: uppercase; color: var(--ivory2); }
.scroll label em { text-transform: none; letter-spacing: 0; font: italic 400 0.97rem var(--serif); color: var(--steel); }
.scroll input:not([type=radio]):not([type=checkbox]), .scroll select, .scroll textarea {
  display: block; width: 100%; margin-top: .4rem; padding: .7em .85em; border-radius: 4px; border: 1px solid #3a4870;
  background: #0a0f1b; color: var(--ivory); font: 400 1.12rem var(--serif); letter-spacing: 0; text-transform: none;
}
.scroll input::placeholder, .scroll textarea::placeholder { color: #6f7b93; }
.scroll input:focus, .scroll select:focus, .scroll textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(201, 162, 74, .25); }
.scroll .bad { border-color: #d0605a !important; }
.scroll .row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
.scroll .row .lvl { max-width: 120px; }
.scroll .row:first-of-type { grid-template-columns: 1fr 110px; }
.scroll fieldset { border: 0; padding: 0; margin: 0 0 1rem; }
.scroll legend { padding: 0; margin-bottom: .45rem; font: 600 0.8125rem var(--sans); letter-spacing: .06em; text-transform: uppercase; color: var(--ivory2); }
.scroll fieldset label { display: inline-block; margin: 0 .35rem .4rem 0; }
.scroll fieldset input { position: absolute; opacity: 0; pointer-events: none; }
.scroll fieldset span { display: inline-block; padding: .5em .95em; border-radius: 99px; border: 1px solid #3a4870; color: var(--ivory2); cursor: pointer;
  font: 600 0.82rem var(--sans); letter-spacing: .06em; }
.scroll fieldset input:checked + span { background: var(--gold); border-color: var(--gold); color: #1d1406; }
.scroll fieldset input:focus-visible + span { outline: 2px solid var(--gold-hi); outline-offset: 2px; }
.scroll fieldset.bad span { border-color: #d0605a; }
.hp { position: absolute !important; left: -5000px; width: 1px; height: 1px; overflow: hidden; }
.err { min-height: 1.4em; margin: .2rem 0 .8rem; color: #f09a92; font-size: 1rem; }
.sworn { text-align: center; padding: 2rem .5rem; }
.sworn img { width: 80px; margin: 0 auto 1rem; }
.sworn h3 { margin-bottom: .6rem; }
.sworn p { color: var(--ivory2); margin: 0; }

/* ---- footer ----------------------------------------------------------------------------------------------------- */
.foot { padding: 56px 16px 48px; text-align: center; background: #070a13; border-top: 1px solid var(--line); }
.foot img { margin: 0 auto .6rem; opacity: .9; }
.foot .name { margin: 0; font: 700 1rem var(--display); letter-spacing: .18em; text-transform: uppercase; color: var(--gold); }
.foot .fine { max-width: 560px; margin: .8rem auto 0; font-size: .85rem; color: #6f7b93; }

/* ---- small screens ---------------------------------------------------------------------------------------------- */
@media (max-width: 820px) {
  .bar .links { display: none; }
  .bar .btn { margin-left: auto; }
  .two { grid-template-columns: 1fr; }
  .moon { width: 56px; height: 56px; right: 6%; top: 10%; }
}
@media (max-width: 480px) {
  body { font-size: 1.06rem; }
  .kicker { letter-spacing: .2em; font-size: .72rem; }
  .hero h1 small { font-size: max(.34em, 1.15rem); }
  .herald { font-size: .68rem; letter-spacing: .06em; }
  .ctas .btn { min-width: 250px; }
  .scroll .row { grid-template-columns: 1fr; }
  .scroll .row:first-of-type { grid-template-columns: 1fr 90px; }
  .about p:first-child::first-letter { font-size: 3.8rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .stars.s2, .castle .flag { animation: none; }
  .btn { transition: none; }
}

/* ---- 404 -------------------------------------------------------------------------------------------------------- */
.hero.lost { min-height: 100svh; padding-bottom: 16px; }
.hero.lost h1 { font-size: clamp(2rem, 6vw, 3.6rem); }

/* ---- live roster ------------------------------------------------------------------------------------------------ */
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; margin: 0 0 1.6rem; border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; background: var(--line); }
.stats div { padding: 1rem 1.2rem; background: var(--night2); }
.stats dt { font: 700 0.8125rem var(--sans); letter-spacing: .06em; text-transform: uppercase; color: var(--steel); }
.stats dd { margin: .2rem 0 0; font: 700 clamp(1.5rem, 3.4vw, 2.2rem)/1.1 var(--sans); color: var(--gold-hi); font-variant-numeric: lining-nums tabular-nums; font-feature-settings: "tnum"; }
.comp { margin-bottom: 1rem; }
.comp-bar { display: flex; gap: 2px; height: 14px; padding: 2px; border-radius: 99px; background: var(--night); border: 1px solid var(--line); }
.comp-bar .seg { display: block; position: relative; flex: 1 1 0; min-width: 4px; background: var(--c, var(--steel)); border-radius: 2px; cursor: pointer; transition: opacity .15s; }
.comp-bar .seg:first-child { border-radius: 99px 2px 2px 99px; }
.comp-bar .seg:last-child { border-radius: 2px 99px 99px 2px; }
.comp-bar .seg.dim { opacity: .25; }
.comp-bar .seg:hover::after { content: attr(data-tip); position: absolute; bottom: calc(100% + 10px); left: 50%; transform: translateX(-50%);
  padding: .35em .7em; border-radius: 4px; background: #05070d; border: 1px solid var(--line); color: var(--ivory); white-space: nowrap;
  font: 600 0.84rem var(--sans); letter-spacing: .06em; pointer-events: none; z-index: 2; }
.legend { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: .9rem; }
.chip { text-decoration: none; display: inline-flex; align-items: center; gap: .5em; padding: .4em .85em; border-radius: 99px; cursor: pointer;
  border: 1px solid var(--line); background: transparent; color: var(--ivory2); font: 600 0.82rem var(--sans); letter-spacing: .08em; }
.chip i { width: 9px; height: 9px; border-radius: 50%; background: var(--c, var(--steel)); }
.chip b { color: var(--steel); font-weight: 600; }
.chip:hover { border-color: var(--steel); color: var(--ivory); }
.chip.on { border-color: var(--c, var(--steel)); background: color-mix(in srgb, var(--c, var(--steel)) 16%, transparent); color: var(--ivory); }
.knight .lv, .mem .lv { display: grid; place-items: center; border-radius: 50%; font: 700 0.9375rem var(--sans); color: var(--ivory);
  background: color-mix(in srgb, var(--c, var(--steel)) 14%, var(--night)); border: 1px solid color-mix(in srgb, var(--c, var(--steel)) 55%, transparent); font-variant-numeric: lining-nums tabular-nums; font-feature-settings: "tnum"; }
.knight .lv { grid-row: span 2; width: 40px; height: 40px; }
.knight .nm a, .mem .nm a { color: inherit; text-decoration: none; }
.knight .nm a:hover, .mem .nm a:hover { text-decoration: underline; text-underline-offset: 3px; }
.tools { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem; margin-bottom: 1rem; }
.tools input, .tools select { padding: .55em .85em; border-radius: 4px; border: 1px solid var(--line); background: #0a0f1b; color: var(--ivory); font: 400 1.07rem var(--serif); }
.tools .search { flex: 1 1 240px; max-width: 360px; }
.tools .search input { width: 100%; }
.tools .sort { display: flex; align-items: center; gap: .5rem; font: 600 0.8125rem var(--sans); letter-spacing: .06em; text-transform: uppercase; color: var(--steel); }
.tools input:focus, .tools select:focus { outline: none; border-color: var(--gold); }
.members { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 1px;
  background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.mem { display: grid; grid-template-columns: 32px 1fr auto; grid-template-rows: auto auto; column-gap: .75rem; align-items: center;
  padding: .55rem .8rem; background: var(--night2); }
.mem .lv { grid-row: span 2; width: 32px; height: 32px; font-size: .78rem; }
.mem .nm { font: 700 0.98rem/1.2 var(--sans); color: var(--c, var(--ivory)); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mem .cl { grid-column: 2; font-size: .88rem; color: var(--steel); line-height: 1.25; }
.mem .rk { grid-column: 3; grid-row: 1 / span 2; font: 600 0.8125rem var(--sans); letter-spacing: .06em; text-transform: uppercase; color: var(--gold); }
.members .none { padding: 1rem; background: var(--night2); color: var(--steel); font-style: italic; }
.more { text-align: center; margin: 1.2rem 0 0; }
.src { margin: 1.4rem 0 0; color: var(--steel); font-size: .95rem; }

/* ---- the code (rules) ------------------------------------------------------------------------------------------- */
.code { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 1.6rem 2.6rem; }
.code li { display: grid; grid-template-columns: 54px 1fr; gap: 1rem; align-items: start; }
.code .num { position: relative; display: grid; place-items: center; width: 54px; height: 54px; font: 700 1.05rem/1 var(--display); color: var(--gold-hi); }
.code .num::before { content: ""; position: absolute; inset: 8px; border: 1px solid var(--gold); background: rgba(201, 162, 74, .07); transform: rotate(45deg); }
.code h3 { font-size: 1.12rem; margin: .35rem 0 .3rem; color: var(--ivory); }
.code p { margin: 0; color: var(--ivory2); }
@media (max-width: 720px) {
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---- inner pages: band header + tabs ---------------------------------------------------------------------------- */
body.page { background: var(--night); }
.bar a[aria-current="page"] { color: var(--gold-hi); }
.band { position: relative; padding: 112px 16px 36px; overflow: hidden;
  background: radial-gradient(80% 120% at 50% 0%, #1d2c52 0%, #121b33 55%, var(--night) 100%); border-bottom: 1px solid var(--line); }
.band h1 { font-size: clamp(2rem, 5vw, 3.4rem); margin-bottom: 1.6rem; color: var(--ivory); }
.band .stats { margin-bottom: 0; }
.tabbed { padding: 28px 16px 90px; }
.tabs { display: flex; gap: .3rem; margin: 0 0 2rem; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs [role=tab] { flex: none; padding: .9rem 1.2rem .8rem; border: 0; border-bottom: 2px solid transparent; background: none; cursor: pointer;
  color: var(--steel); font: 700 0.86rem var(--sans); letter-spacing: .06em; text-transform: uppercase; margin-bottom: -1px; }
.tabs [role=tab]:hover { color: var(--ivory); }
.tabs [role=tab].on { color: var(--gold-hi); border-bottom-color: var(--gold); }
.tools .count { margin-left: auto; color: var(--steel); font: 600 0.8125rem var(--sans); letter-spacing: .06em; text-transform: uppercase; }

/* roll rows as links */
.members.rich .mem { display: block; padding: 0; }
[data-panel] { padding: 0; }
.members.rich .mem > a { display: grid; grid-template-columns: 32px 1fr auto; grid-template-rows: auto auto; column-gap: .75rem; align-items: center;
  padding: .55rem .8rem; color: inherit; text-decoration: none; }
.members.rich .mem > a:hover { background: color-mix(in srgb, var(--c, var(--steel)) 7%, var(--night2)); }
.members.rich .mem > a:hover .nm { text-decoration: underline; text-underline-offset: 3px; }
.mem .cl { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mem .rk em { display: block; font-style: normal; color: var(--steel); letter-spacing: .08em; margin-top: .15rem; text-align: right; }

/* ladders */
.ladders { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1.2rem; }
.ladder { padding: 1.3rem 1.3rem 1rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--night2); }
.ladder h3 { font-size: 1rem; letter-spacing: .03em; text-transform: none; color: var(--gold-hi); margin-bottom: .9rem; }
.ladder ol { list-style: none; margin: 0; padding: 0; display: grid; gap: .1rem; }
.ladder li { display: grid; grid-template-columns: 26px 1fr auto; align-items: center; gap: .5rem; padding: .35rem 0; border-top: 1px solid rgba(42, 55, 86, .6); }
.ladder li:first-child { border-top: 0; }
.ladder .pos { font: 700 0.86rem var(--sans); color: var(--steel); font-variant-numeric: lining-nums tabular-nums; font-feature-settings: "tnum"; }
.ladder li:nth-child(-n+3) .pos { color: var(--gold-hi); }
.ladder a { color: var(--c, var(--ivory)); text-decoration: none; font: 700 0.95rem var(--sans); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ladder a:hover { text-decoration: underline; }
.ladder b { font: 700 0.9375rem var(--sans); color: var(--ivory2); font-variant-numeric: lining-nums tabular-nums; font-feature-settings: "tnum"; }
.ladder .none, .craft .none { color: var(--steel); font-style: italic; display: block; }

/* crafters */
.crafts { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.2rem; }
.craft { padding: 1.2rem 1.3rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--night2); }
.craft header { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: .8rem; }
.craft h3 { font-size: 1.15rem; color: var(--ivory); }
.craft header span { color: var(--steel); font-size: .9rem; }
.craft ol { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; }
.craft li { display: grid; grid-template-columns: minmax(0, 1fr) 90px 64px; align-items: center; gap: .7rem; }
.craft a { color: var(--c, var(--ivory)); text-decoration: none; font: 700 0.9375rem var(--sans); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.craft b { font: 700 0.9375rem var(--sans); color: var(--ivory2); text-align: right; font-variant-numeric: lining-nums tabular-nums; font-feature-settings: "tnum"; }
.craft b small, .prof small { color: var(--steel); font-weight: 500; }
.skill { display: block; height: 6px; border-radius: 99px; background: #0a0f1b; border: 1px solid var(--line); overflow: hidden; }
.skill i { display: block; height: 100%; background: linear-gradient(90deg, var(--gold-lo), var(--gold-hi)); border-radius: 99px; }

/* chronicle */
.chronicle { list-style: none; margin: 0; padding: 0 0 0 1.2rem; border-left: 1px solid var(--line); display: grid; gap: .55rem; }
.chronicle .day { margin: 1rem 0 .1rem -1.2rem; padding-left: 1.2rem; font: 700 0.8125rem var(--sans); letter-spacing: .06em; text-transform: uppercase; color: var(--gold); }
.chronicle .day:first-child { margin-top: 0; }
.chronicle .ev { position: relative; color: var(--ivory2); }
.chronicle .ev i { position: absolute; left: calc(-1.2rem - 5px); top: .55rem; width: 9px; height: 9px; transform: rotate(45deg); background: var(--night2); border: 1px solid var(--steel); }
.chronicle .k-first60 i, .chronicle .k-promoted i { background: var(--gold); border-color: var(--gold-hi); }
.chronicle .k-joined i { background: var(--ok); border-color: var(--ok); }
.chronicle .k-left i { border-color: var(--blood); }
.chronicle .ev a { color: inherit; text-decoration: none; }
.chronicle .ev a:hover { color: var(--gold-hi); }
.chronicle .k-first60 { color: var(--gold-hi); font-weight: 500; }
.chronicle time { font: 600 0.8125rem var(--sans); letter-spacing: .06em; text-transform: uppercase; color: var(--steel); margin-right: .4rem; }
.chronicle .none { color: var(--steel); font-style: italic; max-width: 62ch; }

/* ---- character page --------------------------------------------------------------------------------------------- */
.hero-char { padding-bottom: 28px; }
.hero-char::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(50% 90% at 18% 70%, color-mix(in srgb, var(--c, var(--gold)) 14%, transparent), transparent 70%); }
.back { position: relative; z-index: 1; display: inline-block; margin-bottom: 1rem; color: var(--steel); text-decoration: none; font: 600 0.82rem var(--sans); letter-spacing: .06em; text-transform: uppercase; }
.back:hover { color: var(--gold-hi); }
.who { position: relative; z-index: 1; display: grid; grid-template-columns: auto 1fr; gap: 1.6rem; align-items: center; }
.portrait { width: 132px; height: 132px; border-radius: 50%; overflow: hidden; border: 2px solid var(--c, var(--gold)); background: var(--night2);
  box-shadow: 0 0 0 5px rgba(11, 16, 29, .6), 0 0 40px color-mix(in srgb, var(--c, var(--gold)) 25%, transparent); }
.portrait img { width: 100%; height: 100%; object-fit: cover; }
.portrait .crestish { object-fit: contain; padding: 18px; }
.who h1 { margin: 0; color: var(--c, var(--gold)); font-size: clamp(2rem, 5.4vw, 3.6rem); text-shadow: 0 2px 0 rgba(0, 0, 0, .5); }
.who .eyebrow { margin-bottom: .3rem; }
.who .line { margin: .3rem 0 1rem; color: var(--ivory2); font-size: 1.2rem; font-style: italic; }
.chips { display: flex; flex-wrap: wrap; gap: .5rem 1.6rem; margin: 0; }
.chips div { display: flex; flex-direction: column; }
.chips dt { font: 700 0.8125rem var(--sans); letter-spacing: .06em; text-transform: uppercase; color: var(--steel); }
.chips dd { margin: .1rem 0 0; font: 700 1.05rem var(--sans); color: var(--ivory); font-variant-numeric: lining-nums tabular-nums; font-feature-settings: "tnum"; }

.doll { display: grid; grid-template-columns: minmax(0, 1fr) minmax(200px, 300px) minmax(0, 1fr); gap: 1.2rem; align-items: start; }
.doll .col, .doll .weap { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.doll .weap { grid-column: 1 / -1; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.doll .mid { position: relative; align-self: stretch; overflow: hidden; border-radius: var(--radius); min-height: 560px;
  background: radial-gradient(55% 45% at 50% 60%, color-mix(in srgb, var(--c, var(--gold)) 16%, transparent), transparent 70%),
    radial-gradient(40% 8% at 50% 92%, rgba(0, 0, 0, .55), transparent 70%); }
.doll .mid img { position: absolute; left: 50%; top: 50%; width: 1400px; max-width: none; transform: translate(-50%, -57%);
  filter: drop-shadow(0 10px 24px rgba(0, 0, 0, .7)) brightness(1.15); }
.slot { --q: var(--steel); display: grid; grid-template-columns: 44px minmax(0, 1fr); grid-template-rows: auto auto; column-gap: .75rem; align-items: center;
  padding: .45rem .6rem; border-radius: var(--radius); border: 1px solid var(--line); background: var(--night2); cursor: default; }
.slot[data-slot] { cursor: pointer; }
.slot[data-slot]:hover, .slot[data-slot]:focus { border-color: color-mix(in srgb, var(--q) 60%, var(--line)); outline: none; background: color-mix(in srgb, var(--q) 6%, var(--night2)); }
.slot .ic { grid-row: span 2; width: 44px; height: 44px; border-radius: 6px; overflow: hidden; border: 2px solid var(--q); background: #070a13; }
.slot .ic img { width: 100%; height: 100%; }
.slot .sn { font: 600 0.8125rem var(--sans); letter-spacing: .06em; text-transform: uppercase; color: var(--steel); }
.slot .it { font: 600 1.02rem/1.25 var(--serif); color: var(--q); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.slot.empty .it { color: #4a5674; }
.slot.empty .ic { border-color: var(--line); }
.q-poor { --q: #9d9d9d; } .q-common { --q: #ffffff; } .q-uncommon { --q: #1eff00; } .q-rare { --q: #0070dd; }
.q-epic { --q: #a335ee; } .q-legendary { --q: #ff8000; } .q-artifact { --q: #e6cc80; } .q-heirloom { --q: #00ccff; }
.slot.q-rare .it { color: #3d9bff; }
.tip { position: fixed; z-index: 50; width: 300px; max-width: calc(100vw - 16px); padding: .8rem .95rem; border-radius: 6px;
  background: rgba(6, 9, 18, .97); border: 1px solid #39456a; box-shadow: 0 18px 40px rgba(0, 0, 0, .6); font-size: .95rem; line-height: 1.35; pointer-events: none; }
.tip p { margin: 0 0 .2rem; color: var(--ivory); }
.tip .tn { font: 700 1.09rem var(--serif); color: var(--q); margin-bottom: .25rem; }
.tip .tn.q-rare { color: #3d9bff; }
.tip .tl { color: var(--gold-hi); }
.tip .gr { color: #1eff00; }
.tip .set { color: var(--gold-hi); margin-top: .3rem; }

.build { margin-bottom: 2rem; }
.build h3 { font-size: 1.1rem; letter-spacing: .03em; text-transform: none; color: var(--ivory2); margin-bottom: 1rem; }
.build h3 span { color: var(--gold-hi); margin-left: .6rem; letter-spacing: .05em; }
.build:not(.active) { opacity: .8; }
.trees { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1rem; }
.tree { padding: 1.1rem 1.2rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--night2); }
.tree header { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: .7rem; }
.tree header b { font: 700 1.05rem var(--display); color: var(--ivory); }
.tree header span { font: 700 1.6rem var(--sans); color: var(--gold-hi); font-variant-numeric: lining-nums tabular-nums; font-feature-settings: "tnum"; }
.tree ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; }
.tree li { display: grid; grid-template-columns: 1fr auto; gap: .1rem .6rem; }
.tree li span { color: var(--ivory); }
.tree li i { font: 700 0.86rem var(--sans); font-style: normal; color: var(--gold-hi); font-variant-numeric: lining-nums tabular-nums; font-feature-settings: "tnum"; }
.tree li small { grid-column: 1 / -1; color: var(--steel); font-size: .88rem; line-height: 1.3; }
.tree .none { color: var(--steel); font-style: italic; }

.attrs { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; }
.attr { padding: 1.1rem 1.2rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--night2); }
.attr h3 { font-size: .9rem; letter-spacing: .03em; text-transform: none; color: var(--gold-hi); margin-bottom: .7rem; }
.attr dl { margin: 0; display: grid; gap: .35rem; }
.attr dl div { display: flex; justify-content: space-between; border-top: 1px solid rgba(42, 55, 86, .6); padding-top: .35rem; }
.attr dl div:first-child { border-top: 0; padding-top: 0; }
.attr dt { color: var(--steel); }
.attr dd { margin: 0; font: 700 1rem var(--sans); color: var(--ivory); font-variant-numeric: lining-nums tabular-nums; font-feature-settings: "tnum"; }

.profs { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1rem; }
.prof { padding: 1.1rem 1.2rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--night2); }
.prof.primary { border-color: #3a4870; }
.prof header { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: .6rem; }
.prof header b { font: 700 1.05rem var(--display); color: var(--ivory); }
.prof header span { font: 700 1.05rem var(--sans); color: var(--gold-hi); font-variant-numeric: lining-nums tabular-nums; font-feature-settings: "tnum"; }
.prof p { margin: .5rem 0 0; color: var(--steel); font-size: .92rem; }

.tales { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: .8rem; }
.tale { padding: 1rem 1.1rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--night2); }
.tale b { display: block; font: 700 1.5rem/1.1 var(--sans); color: var(--gold-hi); font-variant-numeric: lining-nums tabular-nums; font-feature-settings: "tnum"; }
.tale span { color: var(--steel); font-size: .95rem; }
.tale.wide { grid-column: span 2; }
.journey { width: 100%; height: auto; max-width: 820px; margin-bottom: 1.6rem; }
.journey .axis { stroke: var(--line); stroke-width: 1; }
.journey .ln { fill: none; stroke: var(--gold); stroke-width: 2; }
.journey circle { fill: var(--night); stroke: var(--gold-hi); stroke-width: 2; }
.journey text { fill: var(--steel); font: 600 12px var(--sans); font-variant-numeric: lining-nums tabular-nums; font-feature-settings: "tnum"; }

/* ---- home: ledger + champions ------------------------------------------------------------------------------------ */
.ledger { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); background: var(--night2); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; margin-bottom: 2.6rem; }
.ledger div { padding: 1.3rem 1.3rem 1.1rem; box-shadow: 1px 1px 0 var(--line); }
.ledger b { display: block; font: 700 clamp(1.6rem, 3.4vw, 2.3rem)/1.05 var(--sans); color: var(--gold-hi); font-variant-numeric: lining-nums tabular-nums; font-feature-settings: "tnum"; }
.ledger span { color: var(--ivory2); }
.ledger small { display: block; color: var(--steel); font-size: .88rem; margin-top: .2rem; font-style: italic; }
.champs { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: .9rem; }
.champ { position: relative; display: grid !important; grid-template-columns: auto 1fr; gap: .9rem; align-items: center; padding: 1.1rem 1.2rem 1rem; border: 1px solid var(--line); border-radius: var(--radius);
  background: linear-gradient(160deg, color-mix(in srgb, var(--c, var(--steel)) 9%, var(--night2)), var(--night2) 60%); text-decoration: none; color: inherit; }
.champ:hover { border-color: color-mix(in srgb, var(--c, var(--steel)) 55%, var(--line)); }
.champ .ttl { display: block; line-height: 1.35; font: 700 0.8125rem var(--sans); letter-spacing: .06em; text-transform: uppercase; color: var(--gold); }
.champ .nm { display: block; margin: .25rem 0 .15rem; font: 700 1.1rem var(--sans); color: var(--c, var(--ivory)); }
.champ .val { color: var(--steel); font-size: .95rem; }
.glance-cta { margin-top: 1.6rem; display: flex; flex-wrap: wrap; gap: .8rem; align-items: center; }
.recent { margin-top: 2.6rem; }

@media (max-width: 900px) {
  .doll { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .doll .mid { display: none; }
}
@media (max-width: 600px) {
  .doll { grid-template-columns: minmax(0, 1fr); }
  .who { grid-template-columns: 1fr; gap: 1rem; }
  .portrait { width: 104px; height: 104px; }
  .tale.wide { grid-column: auto; }
  .band { padding-top: 96px; }
}

/* ---- officers' tabs ----------------------------------------------------------------------------------------------- */
.otable { width: 100%; border-collapse: collapse; font-size: .98rem; }
.otable th { text-align: left; font: 700 0.8125rem var(--sans); letter-spacing: .06em; text-transform: uppercase; color: var(--steel);
  padding: .6rem .6rem; border-bottom: 1px solid var(--line); cursor: pointer; white-space: nowrap; }
.otable td { padding: .5rem .6rem; border-bottom: 1px solid rgba(42, 55, 86, .5); white-space: nowrap; }
.otable td a { color: var(--c, var(--ivory)); text-decoration: none; font: 700 0.95rem var(--sans); }
.otable tr.idle td { color: var(--steel); }
.otable .warn { color: #f09a92; font-weight: 600; }
.owrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--night2); }
.strike-form { display: grid; grid-template-columns: 2fr 1fr 3fr 1.2fr auto; gap: .6rem; align-items: end; margin-bottom: 1.4rem; }
.strike-form label { font: 600 0.8125rem var(--sans); letter-spacing: .06em; text-transform: uppercase; color: var(--steel); }
.strike-form input, .strike-form select { display: block; width: 100%; margin-top: .3rem; padding: .55em .7em; border-radius: 4px; border: 1px solid var(--line);
  background: #0a0f1b; color: var(--ivory); font: 400 1.07rem var(--serif); }
.strike { display: grid; grid-template-columns: 90px 1fr auto; gap: .2rem 1rem; padding: .8rem 1rem; border-bottom: 1px solid rgba(42, 55, 86, .5); }
.strike .k { font: 700 0.8125rem var(--sans); letter-spacing: .06em; text-transform: uppercase; padding: .3em .6em; border-radius: 99px; text-align: center; align-self: start; }
.strike .k-warning { background: var(--gold); color: #1d1406; }
.strike .k-strike { background: var(--blood); color: #fff; }
.strike.revoked { opacity: .45; }
.strike .meta { color: var(--steel); font-size: .88rem; }
@media (max-width: 760px) { .strike-form { grid-template-columns: 1fr; } }
.slot .ic:empty { display: grid; place-items: center; background: radial-gradient(circle at 35% 30%, color-mix(in srgb, var(--q) 30%, #0b1020), #070a13); }
.slot[data-slot] .ic:empty::after { content: "?"; font: 800 1.2rem var(--display); color: color-mix(in srgb, var(--q) 70%, #fff); }

/* ---- medals (deeds & feats) ------------------------------------------------------------------------------------- */
.ico { width: 1em; height: 1em; display: inline-block; vertical-align: -.15em; }
.medal { --m1: #4a5674; --m2: #262e44; position: relative; flex: none; width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center;
  background: radial-gradient(circle, #1c2a4f 0 55%, #0a0f1d 56% 59%, transparent 60%),
    conic-gradient(from 210deg, var(--m1), var(--m2) 25%, var(--m1) 50%, var(--m2) 75%, var(--m1));
  box-shadow: 0 6px 16px rgba(0, 0, 0, .45), 0 0 0 1px rgba(0, 0, 0, .5); }
.medal::after { content: ""; position: absolute; inset: 20%; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle at 50% 30%, rgba(120, 150, 220, .22), transparent 70%); }
.medal .ico { width: 54%; height: 54%; color: var(--m1); filter: drop-shadow(0 1px 0 rgba(0, 0, 0, .6)); }
.medal.lg { width: 84px; height: 84px; }
.medal.sm { width: 46px; height: 46px; }
.medal.xs { width: 26px; height: 26px; box-shadow: 0 2px 5px rgba(0, 0, 0, .4); }
.t-bronze { --m1: #f2b27a; --m2: #87501f; }
.t-silver { --m1: #f2f5fa; --m2: #87909f; }
.t-gold { --m1: #ffe39a; --m2: #a9761d; }
.t-gold.medal { box-shadow: 0 6px 16px rgba(0, 0, 0, .45), 0 0 22px rgba(255, 210, 110, .22); }
.t-locked { --m1: #46516e; --m2: #232a3d; }
.t-locked .ico { opacity: .7; }
.kn { color: var(--c, var(--ivory)); text-decoration: none; font-family: var(--sans); font-weight: 700; }
.kn:hover { text-decoration: underline; text-underline-offset: 3px; }

/* hall header + tavern tale */
.band.hall { padding-bottom: 44px; }
.tale-card { position: relative; margin: 0; max-width: 760px; padding: 1.4rem 1.6rem 1.1rem 4.4rem; border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(239, 230, 210, .07), rgba(239, 230, 210, .02)); border: 1px solid rgba(201, 162, 74, .35); }
.tale-card .q { position: absolute; left: 1.2rem; top: 1.3rem; width: 2.2rem; height: 2.2rem; color: var(--gold-hi); }
.tale-card blockquote { margin: 0; font: italic 400 clamp(1.2rem, 2.2vw, 1.5rem)/1.45 var(--serif); color: var(--text); min-height: 2.9em; max-width: 54ch; }
.tale-card blockquote .kn { font-style: normal; font-size: .92em; }
.tale-card figcaption { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: .9rem;
  font: 600 0.8125rem var(--sans); letter-spacing: .06em; text-transform: uppercase; color: var(--steel); }

/* superlatives */
.awards { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: var(--s4); }
.award { display: grid; grid-template-columns: 72px 1fr; gap: var(--s4) 18px; padding: 20px 22px; border-radius: var(--radius);
  border: 1px solid var(--line); background: linear-gradient(165deg, #182443, var(--surface) 55%); }
.award .medal { width: 72px; height: 72px; }
.award h3 { margin: 2px 0 6px; font: 700 1.08rem/1.2 var(--display); letter-spacing: .02em; text-transform: none; color: var(--gold-hi); }
.award .win { margin: 0; font: 700 var(--fs-lg)/1.25 var(--sans); }
.award .win .kn { font-size: inherit; }
.award .val { margin: 6px 0 0; display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; color: var(--text-2); font: 500 var(--fs-sm) var(--sans); }
.award .val b { font: 700 var(--fs-xl)/1 var(--sans); color: var(--text); font-variant-numeric: lining-nums tabular-nums; font-feature-settings: "tnum"; }
.award .val em { font-style: normal; color: var(--text-3); }
.award .quip { grid-column: 1 / -1; margin: 2px 0 0; font: italic 400 1.09rem/1.45 var(--serif); color: var(--text-3); }
.award .runners { grid-column: 1 / -1; list-style: none; margin: 0; padding: 12px 0 0; border-top: 1px solid rgba(42, 55, 86, .8); display: grid; gap: 6px; }
.award .runners li { display: grid; grid-template-columns: 22px 1fr auto; align-items: baseline; gap: 8px; font: 500 var(--fs-sm) var(--sans); color: var(--text-3); }
.award .runners b { font: 700 var(--fs-sm) var(--sans); color: var(--text-2); font-variant-numeric: lining-nums tabular-nums; font-feature-settings: "tnum"; }
.award .runners .kn { font-size: var(--fs-sm); }

/* deeds */
.deedgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: var(--s4); }
.deed { display: flex; flex-direction: column; padding: 20px 22px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); }
.deed header { display: grid; grid-template-columns: 64px 1fr; gap: 16px; align-items: center; margin-bottom: 16px; }
.deed h3 { margin: 0 0 4px; font: 700 1.12rem/1.2 var(--display); letter-spacing: .02em; text-transform: none; color: var(--text); }
.deed .flav { margin: 0; font: italic 400 1.07rem/1.4 var(--serif); color: var(--text-3); }
.label { font: 700 var(--fs-xs)/1.2 var(--sans); letter-spacing: .06em; text-transform: uppercase; color: var(--text-3); }
.deed .counts { margin: 0 0 8px; }
.deed .counts b { color: var(--text-2); font-weight: 700; text-transform: none; letter-spacing: 0; font-size: var(--fs-sm); }
.tiers { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 4px; }
.tiers li { display: grid; grid-template-columns: 14px 64px 1fr auto; gap: 10px; align-items: center; padding: 6px 10px; border-radius: 4px;
  background: rgba(10, 15, 27, .55); font: 500 var(--fs-sm) var(--sans); color: var(--text-2); }
.tiers .pip { width: 10px; height: 10px; transform: rotate(45deg); background: linear-gradient(135deg, var(--m1), var(--m2)); }
.tiers .tn { font: 700 var(--fs-xs) var(--sans); letter-spacing: .06em; text-transform: uppercase; color: var(--m1); }
.tiers .th { font: 700 var(--fs-md) var(--sans); color: var(--text); font-variant-numeric: lining-nums tabular-nums; font-feature-settings: "tnum"; }
.tiers .hc { color: var(--text-3); font-variant-numeric: lining-nums tabular-nums; font-feature-settings: "tnum"; }
.tiers li.zero .hc { color: #7d89a6; }
.deed .leaders { margin-top: auto; padding-top: 12px; border-top: 1px solid rgba(42, 55, 86, .8); }
.deed .leaders ol { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 6px; }
.deed .leaders li { display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: baseline; font: 500 var(--fs-sm) var(--sans); }
.deed .leaders li b { font: 700 var(--fs-sm) var(--sans); color: var(--text-2); font-variant-numeric: lining-nums tabular-nums; font-feature-settings: "tnum"; }
.deed .leaders .kn { font-size: var(--fs-sm); }
.deed .leaders .none { color: var(--text-3); font: italic 400 1.07rem var(--serif); }

/* feats */
.feat-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: var(--s6); align-items: start; }
#featfilter { margin: 0 0 var(--s5); }
#featfilter .chip.on { border-color: var(--gold); background: rgba(201, 162, 74, .14); color: var(--text); }
.fgroup { margin-bottom: var(--s7); padding: 0; }
.fgroup h3 { margin: 0 0 var(--s4); font: 700 1.4rem/1.2 var(--display); letter-spacing: .02em; color: var(--text); }
.fgroup h3 small { display: block; margin-top: 4px; font: italic 400 1.07rem var(--serif); color: var(--text-3); letter-spacing: 0; }
.fsub { grid-column: 1 / -1; margin: var(--s3) 0 0; font: 700 var(--fs-xs) var(--sans); letter-spacing: .06em; text-transform: uppercase; color: var(--gold); }
.feats { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: var(--s2) var(--s3); }
.feat { display: grid; grid-template-columns: 46px 1fr; gap: 12px; align-items: start; padding: 12px 14px; border-radius: var(--radius);
  border: 1px solid var(--line); background: var(--surface); }
.feat.unearned { opacity: .5; }
.feat h5 { margin: 1px 0 2px; font: 700 var(--fs-md)/1.25 var(--sans); color: var(--text); }
.feat .fd { margin: 0 0 6px; font: 400 1.02rem/1.35 var(--serif); color: var(--text-3); }
.feat .fm { margin: 0; font: 500 var(--fs-sm)/1.4 var(--sans); color: var(--text-2); }
.feat .fm b { font-weight: 800; color: var(--text); font-variant-numeric: lining-nums tabular-nums; font-feature-settings: "tnum"; }
.feat .fm .first { display: block; color: var(--text-3); }
.feat .fm .kn { font-size: var(--fs-sm); }
.recentfeats { position: sticky; top: 76px; padding: 18px 18px 12px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); }
.recentfeats h3 { margin: 0 0 12px; font: 700 1.05rem var(--display); letter-spacing: .02em; text-transform: none; color: var(--gold-hi); }
.recentfeats ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; max-height: 70vh; overflow: auto; }
.recentfeats li { display: grid; grid-template-columns: 26px 1fr; gap: 10px; align-items: start; font: 500 var(--fs-sm)/1.35 var(--sans); color: var(--text-2); }
.recentfeats li b { color: var(--text); font-weight: 700; }
.recentfeats time { display: block; color: var(--text-3); font-size: var(--fs-xs); }
.recentfeats .kn { font-size: var(--fs-sm); }

/* rivals */
.rival-form { display: flex; flex-wrap: wrap; gap: .7rem; align-items: center; margin-bottom: 1.6rem; }
.rival-form input { padding: .65em .9em; min-width: 240px; font-family: var(--sans) !important; border-radius: 4px; border: 1px solid var(--line); background: #0a0f1b; color: var(--ivory); font: 400 1.09rem var(--serif); }
.rival-form .vs { font: 800 1rem var(--display); color: var(--gold); }
.arena { max-width: 760px; }
.arena .cards { display: grid; grid-template-columns: 1fr auto 1fr; gap: 1rem; align-items: center; margin-bottom: .6rem; }
.rc { display: grid; justify-items: center; text-align: center; gap: .3rem; }
.rc img, .rc .medal { width: 72px; height: 72px; border-radius: 50%; border: 2px solid var(--c, var(--gold)); }
.rc a { font: 700 1.2rem var(--sans); color: var(--c, var(--ivory)); text-decoration: none; }
.rc span { color: var(--steel); font-size: .9rem; }
.arena .score { display: flex; gap: .5rem; align-items: baseline; font: 700 2.4rem var(--sans); color: var(--gold-hi); font-variant-numeric: lining-nums tabular-nums; font-feature-settings: "tnum"; }
.arena .score span { color: var(--steel); font-size: 1.6rem; }
.verdict { text-align: center; font: italic 400 1.22rem/1.45 var(--serif); color: var(--text-2); margin: 0 auto 1.4rem; max-width: 52ch; }
.rtable { width: 100%; border-collapse: collapse; }
.rtable th { font: 600 0.8125rem var(--sans); letter-spacing: .06em; text-transform: uppercase; color: var(--steel); text-align: center; padding: .5rem; }
.rtable th em { display: block; font: italic 400 0.92rem var(--serif); letter-spacing: 0; text-transform: none; color: var(--text-3); }
.rtable td { width: 34%; padding: .5rem .8rem; font: 700 1.05rem var(--sans); color: var(--ivory2); border-top: 1px solid rgba(42, 55, 86, .6); font-variant-numeric: lining-nums tabular-nums; font-feature-settings: "tnum"; }
.rtable td:first-child { text-align: right; }
.rtable td.won { color: var(--gold-hi); }
.rtable td .ico { color: var(--gold-hi); margin: 0 .4rem; }

/* most decorated */
.decorated { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; max-width: 860px; }
.decorated li { display: grid; grid-template-columns: 36px minmax(0, 1.4fr) 90px 130px 90px 90px; gap: .8rem; align-items: center;
  padding: .7rem 1rem; border-radius: var(--radius); border: 1px solid var(--line); background: var(--night2); }
.decorated .pos { font: 700 1.1rem var(--sans); color: var(--steel); font-variant-numeric: lining-nums tabular-nums; font-feature-settings: "tnum"; }
.decorated li:nth-child(-n+3) .pos { color: var(--gold-hi); }
.decorated .kn { font-size: 1.02rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.decorated .lvl, .decorated .ft { color: var(--steel); font-size: .92rem; }
.decorated .sc b { font: 700 1.2rem var(--sans); color: var(--gold-hi); font-variant-numeric: lining-nums tabular-nums; font-feature-settings: "tnum"; }
.decorated .sc { color: var(--steel); font-size: .85rem; }
.decorated .gd { display: flex; align-items: center; gap: .4rem; color: var(--ivory2); font-size: .9rem; }

/* character: deeds tab */
.titles { display: flex; flex-wrap: wrap; gap: .7rem; margin-bottom: 1.8rem; }
.title-pill { display: inline-flex; align-items: center; gap: .6rem; padding: .45rem 1rem .45rem .5rem; border-radius: 99px;
  border: 1px solid var(--gold); background: rgba(201, 162, 74, .1); color: var(--gold-hi); font: 700 0.875rem var(--sans); letter-spacing: .08em; }
.title-pill small { color: var(--steel); font: 400 0.92rem var(--serif); letter-spacing: 0; }
.mydeeds { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: .8rem; margin-bottom: 2rem; }
.mydeed { display: grid; grid-template-columns: auto 1fr; gap: .8rem; align-items: center; padding: .8rem .9rem; border-radius: var(--radius);
  border: 1px solid var(--line); background: var(--night2); }
.mydeed h4 { margin: 0; font: 700 0.98rem var(--sans); color: var(--ivory); }
.mydeed p { margin: .1rem 0 .35rem; color: var(--steel); font-size: .85rem; }
.mydeed.locked { opacity: .6; }
@media (max-width: 900px) {
  .feat-layout { grid-template-columns: 1fr; }
  .recentfeats { position: static; }
  .decorated li { grid-template-columns: 30px 1fr auto; }
  .decorated .lvl, .decorated .gd, .decorated .ft { display: none; }
}
@media (max-width: 600px) {
  .awards, .deedgrid { grid-template-columns: 1fr; }
  .award { grid-template-columns: 1fr; }
  .tale-card { padding-left: 1.2rem; padding-top: 3.6rem; }
  .arena .cards { grid-template-columns: 1fr 1fr; }
  .arena .score { grid-column: 1 / -1; grid-row: 2; justify-content: center; }
  .rival-form input { min-width: 0; width: 100%; }
}

.sub .cnt { font: 600 0.86rem var(--sans); color: var(--steel); letter-spacing: .06em; margin-left: .4rem; }
.locked-deeds { margin-bottom: 2rem; }
.locked-deeds summary { cursor: pointer; color: var(--steel); font: 600 0.84rem var(--sans); letter-spacing: .06em; text-transform: uppercase; margin-bottom: .8rem; }
.home-tale { margin: 0 0 2.4rem; max-width: none; }
.feats + .fsub, #mydeeds .fsub { margin-top: 1.2rem; margin-bottom: .6rem; }

/* ---- picker (combobox) ------------------------------------------------------------------------------------------ */
.picker { position: relative; display: block; }
.picker input { width: 100%; }
.picker-list { position: absolute; z-index: 30; left: 0; right: 0; top: calc(100% + 4px); margin: 0; padding: 4px; list-style: none;
  max-height: 320px; overflow: auto; border-radius: var(--radius); border: 1px solid #3a4870; background: #0b1120; box-shadow: 0 16px 40px rgba(0, 0, 0, .55); }
.picker-list li { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 9px 12px; border-radius: 4px; cursor: pointer; }
.picker-list li.on, .picker-list li:hover { background: #18233d; }
.picker-list .pn { font: 700 var(--fs-md) var(--sans); color: var(--c, var(--text)); }
.picker-list .pm { font: 500 var(--fs-xs) var(--sans); color: var(--text-3); white-space: nowrap; }
.picker-list .none { color: var(--text-3); cursor: default; font: italic 400 1.07rem var(--serif); }
.rival-form .rf { flex: 1 1 240px; max-width: 320px; }
.strike-form .picker input { margin-top: .3rem; }

/* ---- officers' login ---------------------------------------------------------------------------------------------- */
body.login-page { min-height: 100svh; display: grid; place-items: center; padding: 24px 16px;
  background: radial-gradient(80% 70% at 50% 0%, #1d2c52 0%, #121b33 50%, var(--night) 100%); }
.login { width: min(420px, 100%); text-align: center; }
.login-crest img { margin: 0 auto 16px; filter: drop-shadow(0 10px 24px rgba(0, 0, 0, .55)); }
.login h1 { font-size: clamp(1.8rem, 5vw, 2.4rem); color: var(--gold-hi); margin-bottom: 8px; }
.login .lede { margin: 0 auto 24px; color: var(--text-2); }
.login-form { text-align: left; padding: 24px; border-radius: var(--radius); border: 1px solid #3a4870; background: linear-gradient(180deg, var(--night3), var(--night2)); }
.login-form label { display: block; margin-bottom: 8px; font: 700 var(--fs-xs) var(--sans); letter-spacing: .06em; text-transform: uppercase; color: var(--text-3); }
.login-form input { display: block; width: 100%; padding: .75em .9em; border-radius: 4px; border: 1px solid #3a4870; background: #0a0f1b; color: var(--text); font: 500 1.05rem var(--sans); }
.login-form input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(201, 162, 74, .25); }
.back-home a { color: var(--text-3); text-decoration: none; font: 500 var(--fs-sm) var(--sans); }
.back-home a:hover { color: var(--gold-hi); }
.foot .links { display: flex; justify-content: center; gap: 20px; margin: 14px 0 0; }
.foot .links a { color: var(--text-3); text-decoration: none; font: 600 var(--fs-xs) var(--sans); letter-spacing: .06em; text-transform: uppercase; }
.foot .links a:hover { color: var(--gold-hi); }
.ohead-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; }

/* ---- style book page --------------------------------------------------------------------------------------------- */
.sb { padding: 48px 16px 96px; }
.sb-lede b { color: var(--text); font-weight: 500; }
.sb-sec { padding: 0 0 56px; }
.sb-sec h2 { font-size: 1.6rem; margin-bottom: 20px; }
.sb-sec h2::after { width: 120px; }
.sb-note { margin: 6px 0 0; font: 400 var(--fs-sm)/1.45 var(--sans); color: var(--text-3); max-width: 62ch; }
.sb-faces { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.sb-face { padding: 20px 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.f-display { margin: 10px 0 0; font: 700 1.6rem var(--display); color: var(--gold-hi); }
.f-sans { margin: 10px 0 0; font: 700 1.25rem var(--sans); color: var(--text); }
.f-serif { margin: 10px 0 0; font: 400 1.3rem var(--serif); color: var(--text); }
.sb-scale { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.sb-scale li { display: grid; grid-template-columns: 150px 1fr; align-items: baseline; gap: 16px; padding-bottom: 10px; border-bottom: 1px solid rgba(42, 55, 86, .6); }
.sb-scale li > span:last-child { font: 500 var(--x) var(--sans); color: var(--text); }
.sb-scale .serif { font-family: var(--serif) !important; }
.num { font: 700 var(--x, var(--fs-md))/1.1 var(--sans) !important; font-variant-numeric: lining-nums tabular-nums; font-feature-settings: "tnum"; color: var(--text); margin: 0; }
.num small { font: 500 var(--fs-sm) var(--sans); color: var(--text-2); }
.sb-swatches { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.sb-swatches div { display: grid; grid-template-columns: 36px 1fr; gap: 2px 12px; align-items: center; padding: 10px; border: 1px solid var(--line); border-radius: var(--radius); }
.sb-swatches i { grid-row: span 2; width: 36px; height: 36px; border-radius: 6px; background: var(--sw); border: 1px solid #3a4870; }
.sb-swatches b { font: 700 var(--fs-sm) var(--sans); color: var(--text); }
.sb-swatches span { font: 400 var(--fs-xs) var(--sans); color: var(--text-3); }
.sb-classes { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 14px; font-size: var(--fs-md); }
.sb-lnn { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.sb-lnn > div { padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.sb-lnn p { margin: 0; }
.sb-medals { display: flex; flex-wrap: wrap; gap: 28px; }
.sb-medals figure { margin: 0; display: grid; gap: 10px; justify-items: start; }
.sb-mrow { display: flex; align-items: center; gap: 14px; }
.sb-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 20px; }
.sb-tabs { max-width: 520px; }
.sb-pick { display: block; max-width: 360px; }
.sb-pick input { display: block; width: 100%; margin-top: 8px; padding: .65em .9em; border-radius: 4px; border: 1px solid var(--line); background: #0a0f1b; color: var(--text); font: 500 1rem var(--sans); }
.sb-icons { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 14px; margin-top: 16px; }
.sb-icons figure { margin: 0; display: grid; justify-items: center; gap: 8px; }
.sb-icons figcaption { font: 500 var(--fs-xs) var(--sans); color: var(--text-3); }
.sb-rules { margin: 0; padding-left: 1.2rem; display: grid; gap: 10px; max-width: 70ch; color: var(--text-2); }
.sb-rules b { color: var(--text); font-family: var(--sans); }
.x-xs { --x: var(--fs-xs); } .x-sm { --x: var(--fs-sm); } .x-md { --x: var(--fs-md); } .x-body { --x: var(--fs-body); }
.x-lg { --x: var(--fs-lg); } .x-xl { --x: var(--fs-xl); } .x-2xl { --x: var(--fs-2xl); }
.sw-text { --sw: var(--text); } .sw-text-2 { --sw: var(--text-2); } .sw-text-3 { --sw: var(--text-3); } .sw-gold-hi { --sw: var(--gold-hi); }
.sw-surface { --sw: var(--surface); } .sw-night { --sw: var(--night); }
.picker-list li, .picker-list li * { text-transform: none; letter-spacing: 0; }
.strike-form .btn { height: 44px; }
.attr dl div { align-items: baseline; }
.attr dt { font: 500 var(--fs-sm) var(--sans); color: var(--text-2); }
.attr dd { font-size: var(--fs-md) !important; }
@media (max-width: 600px) {
  .award { grid-template-columns: 56px 1fr; gap: 12px 14px; padding: 16px; }
  .award .medal { width: 56px; height: 56px; }
  .deed header { grid-template-columns: 52px 1fr; }
  .deed header .medal { width: 52px; height: 52px; }
}

/* ---- calendar ---------------------------------------------------------------------------------------------------- */
.band-lede b { color: var(--text); font-weight: 500; }
.cal-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.k-rp { --k: #c79bf2; } .k-raid { --k: #ecd182; } .k-dungeon { --k: #6cc6c0; } .k-pvp { --k: #f0857d; }
.k-social { --k: #f2b27a; } .k-muster { --k: #8fb0ff; } .k-other { --k: #9aa7bf; } .k-realm { --k: #9aa7bf; }
.agenda { display: grid; gap: var(--s6); max-width: 900px; }
.gday { padding: 0; display: grid; gap: 10px; }
.gdate { margin: 0 0 4px; font: 700 1.15rem var(--display); letter-spacing: .02em; color: var(--text-2); }
.gdate span { color: var(--gold-hi); }
.gcard { display: grid; grid-template-columns: 150px 1fr; gap: 18px; padding: 16px 20px; border-radius: var(--radius); cursor: pointer;
  border: 1px solid var(--line); border-left: 3px solid var(--k, var(--steel)); background: var(--surface); transition: border-color .15s, background .15s; }
.gcard:hover, .gcard:focus-visible { background: #16223d; border-color: color-mix(in srgb, var(--k) 45%, var(--line)); border-left-color: var(--k); }
.gcard.cancelled { opacity: .55; }
.gcard.cancelled h3 { text-decoration: line-through; }
.gtime b { font: 700 var(--fs-md) var(--sans); color: var(--text); font-variant-numeric: lining-nums tabular-nums; font-feature-settings: "tnum"; }
.gtime .srv, .gwhen .srv { display: block; font: 500 var(--fs-xs) var(--sans); color: var(--text-3); }
.gkind { margin: 0 0 4px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font: 700 var(--fs-xs) var(--sans); letter-spacing: .06em; text-transform: uppercase; color: var(--k, var(--text-3)); }
.gkind .ico { font-size: 1.1rem; }
.gkind .ic { padding: 2px 8px; border-radius: 99px; border: 1px solid rgba(201, 162, 74, .5); color: var(--gold-hi); letter-spacing: .05em; }
.gkind .cx { padding: 2px 8px; border-radius: 99px; background: var(--blood); color: #fff; }
.gmain h3 { margin: 0 0 4px; font: 700 1.2rem/1.25 var(--display); letter-spacing: .02em; text-transform: none; color: var(--text); }
.gmeta { margin: 0; font: 500 var(--fs-sm) var(--sans); color: var(--text-2); }
.gmeta .ico { color: var(--text-3); }
.gwho { margin: 8px 0 0; font: 500 var(--fs-sm) var(--sans); color: var(--text-3); }
.gwho b { color: var(--gold-hi); font-weight: 800; }
.gwho.none { font: italic 400 1.07rem var(--serif); }
.gwho .kn { font-size: var(--fs-sm); }
.empty-state { display: grid; justify-items: start; gap: 8px; padding: 28px; border-radius: var(--radius); border: 1px dashed #3a4870; color: var(--text-2); max-width: 640px; }
.empty-state .ico { font-size: 2rem; color: var(--gold); }
.empty-state p { margin: 0; }
.month-head { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.month-head h2 { margin: 0; font-size: 1.5rem; min-width: 220px; text-align: center; }
.month-head h2::after { display: none; }
.month { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.mhd { padding: 6px 8px; font: 700 var(--fs-xs) var(--sans); letter-spacing: .06em; text-transform: uppercase; color: var(--text-3); }
.mday { min-height: 108px; padding: 6px; border-radius: 4px; background: var(--surface); border: 1px solid rgba(42, 55, 86, .6); display: flex; flex-direction: column; gap: 4px; }
.mday.out { opacity: .4; }
.mday.today { border-color: var(--gold); }
.mday .dn { font: 700 var(--fs-sm) var(--sans); color: var(--text-2); font-variant-numeric: tabular-nums; }
.mday.today .dn { color: var(--gold-hi); }
.mev { display: block; width: 100%; text-align: left; padding: 3px 6px; border: 0; border-left: 3px solid var(--k); border-radius: 3px; cursor: pointer;
  background: color-mix(in srgb, var(--k) 14%, #0b1120); color: var(--text); font: 500 var(--fs-xs)/1.3 var(--sans); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mev b { font-weight: 800; color: var(--k); }
.mev.cancelled { text-decoration: line-through; opacity: .6; }
.gdlg { width: min(640px, calc(100vw - 24px)); max-height: calc(100vh - 48px); padding: 28px 28px 24px; border: 1px solid #3a4870; border-radius: 10px;
  background: linear-gradient(180deg, var(--night3), var(--night2)); color: var(--text); box-shadow: 0 30px 80px rgba(0, 0, 0, .7); }
.gdlg::backdrop { background: rgba(4, 6, 12, .7); backdrop-filter: blur(3px); }
.gclose { position: absolute; top: 14px; right: 14px; margin: 0; }
.gdlg h2 { margin: 6px 0 6px; font-size: clamp(1.5rem, 4vw, 2rem); }
.gdlg h2::after { display: none; }
.gwhen { margin: 0 0 6px; font: 700 var(--fs-md) var(--sans); color: var(--text); }
.gdesc { margin: 16px 0; padding: 14px 16px; border-radius: var(--radius); background: rgba(10, 15, 27, .6); font: 400 1.12rem/1.55 var(--serif); color: var(--text-2); }
.gpeople { display: grid; gap: 12px; margin: 16px 0; }
.gpeople p { margin: 4px 0 0; font: 500 var(--fs-sm)/1.6 var(--sans); }
.gpeople .none { color: var(--text-3); font: italic 400 1.07rem var(--serif); }
.rsvp { display: grid; gap: 10px; margin: 18px 0 10px; padding: 16px; border-radius: var(--radius); border: 1px solid var(--line); background: rgba(10, 15, 27, .5); }
.rsvp input:not(.hp) { width: 100%; padding: .6em .8em; border-radius: 4px; border: 1px solid var(--line); background: #0a0f1b; color: var(--text); font: 500 1rem var(--sans); }
.rsvp-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.gtools { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.gtools .ico { font-size: 1.1em; }
@media (max-width: 720px) {
  .gcard { grid-template-columns: 1fr; gap: 6px; }
  .month { grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 2px; }
  .mday { min-height: 64px; padding: 3px; }
  .mev { font-size: .66rem; padding: 2px 3px; }
  .mev b { display: none; }
}

/* ---- sign-in control (nav) ---------------------------------------------------------------------------------------- */
.who-am-i { display: flex; align-items: center; gap: 14px; margin-left: 4px; }
.bar .links + .who-am-i { margin-left: 18px; }
.who-am-i a { text-decoration: none; font: 700 var(--fs-sm) var(--sans); }
.who-am-i .signin { color: var(--text); padding: 6px 12px; border: 1px solid rgba(239, 230, 210, .35); border-radius: var(--radius); }
.who-am-i .signin:hover { border-color: var(--gold-hi); color: var(--gold-hi); }
.who-am-i .mine { color: var(--c, var(--gold-hi)); max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.who-am-i .otable-link { color: var(--text-3); font-size: var(--fs-xs); letter-spacing: .06em; text-transform: uppercase; }
.who-am-i .otable-link:hover { color: var(--gold-hi); }
.btn-bnet { color: #fff; background: linear-gradient(180deg, #1f8fff, #0e68d8); border-color: #0a4fa8; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), 0 6px 18px rgba(20, 110, 230, .3); }
.btn-bnet:hover { transform: translateY(-1px); }
.small-note { margin: 10px 0 18px; font: 500 var(--fs-sm) var(--sans); color: var(--text-3); }
.admin-door { margin: 6px 0 0; text-align: left; }
.admin-door summary { cursor: pointer; text-align: center; font: 600 var(--fs-xs) var(--sans); letter-spacing: .06em; text-transform: uppercase; color: var(--text-3); margin-bottom: 12px; }
.err.big { padding: 12px 14px; border-radius: var(--radius); background: rgba(155, 47, 47, .18); border: 1px solid rgba(240, 154, 146, .35); font-family: var(--sans); }
@media (max-width: 820px) {
  .who-am-i .otable-link { display: none; }
  .who-am-i { margin-left: auto; }
  .bar .btn { margin-left: 8px; }
}

/* ---- your hall (personal page) ------------------------------------------------------------------------------------ */
.myhall { background: var(--night); min-height: 60vh; }
.gate { min-height: 70vh; display: grid; place-items: center; padding: 120px 16px 60px; text-align: center;
  background: radial-gradient(70% 60% at 50% 20%, #1d2c52 0%, var(--night) 75%); }
.gate-in { max-width: 560px; display: grid; justify-items: center; gap: 14px; }
.gate-in img { filter: drop-shadow(0 10px 24px rgba(0, 0, 0, .55)); }
.gate-in h1 { font-size: clamp(2rem, 6vw, 3rem); color: var(--gold-hi); margin: 0; }
.gate-in .lede { margin: 0 0 8px; color: var(--text-2); }
.mehead { position: relative; overflow: hidden; padding: 100px 16px 32px; border-bottom: 1px solid var(--line);
  background: radial-gradient(60% 120% at 22% 80%, color-mix(in srgb, var(--c, var(--gold)) 16%, transparent), transparent 70%),
    radial-gradient(90% 120% at 50% 0%, #1d2c52 0%, #121b33 55%, var(--night) 100%); }
.mewrap { display: grid; grid-template-columns: 280px 1fr; gap: 28px; align-items: end; }
.mefig { position: relative; height: 340px; overflow: hidden; }
.mefig.full img { position: absolute; left: 50%; bottom: -8%; width: 900px; max-width: none; transform: translateX(-50%); filter: drop-shadow(0 16px 30px rgba(0, 0, 0, .7)) brightness(1.12); }
.mefig .av, .mefig .crestish { width: 180px; height: 180px; border-radius: 50%; margin: 80px auto 0; border: 3px solid var(--c, var(--gold)); }
.meintro h1 { margin: 0; font-size: clamp(2.2rem, 6vw, 4rem); color: var(--c, var(--gold-hi)); text-shadow: 0 2px 0 rgba(0, 0, 0, .5); }
.meintro .line { margin: 6px 0 18px; font: italic 400 1.25rem var(--serif); color: var(--text-2); }
.mealts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.mealts .alt { padding: 7px 14px; border-radius: 99px; border: 1px solid var(--line); background: rgba(11, 16, 29, .5); color: var(--c, var(--text)); cursor: pointer;
  font: 700 var(--fs-sm) var(--sans); }
.mealts .alt small { color: var(--text-3); font-weight: 500; margin-left: 4px; }
.mealts .alt.on { border-color: var(--c, var(--gold)); background: color-mix(in srgb, var(--c, var(--gold)) 14%, transparent); }
.meboard { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; grid-auto-flow: row dense; padding: 32px 16px 96px; }
.mecard { padding: 22px 24px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); }
.mecard.span2 { grid-column: span 2; }
.mecard.span3 { grid-column: 1 / -1; }
.mh { margin: 0 0 16px; font: 700 1.2rem var(--display); letter-spacing: .02em; color: var(--gold-hi); }
.mh::after { display: none; }
.mhint { margin: -8px 0 16px; font: 400 var(--fs-sm) var(--sans); color: var(--text-3); }
.mlink { margin: 14px 0 0; }
.mlink a { font: 700 var(--fs-sm) var(--sans); color: var(--text-2); text-decoration: none; }
.mlink a:hover { color: var(--gold-hi); }
.mecard .none { margin: 0; color: var(--text-3); font: italic 400 1.09rem/1.45 var(--serif); }
.mecard .none a { color: var(--gold-hi); }
.reach { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.reachrow { display: grid; grid-template-columns: 46px 1fr; gap: 12px; align-items: center; }
.reachrow h3 { margin: 0; font: 700 var(--fs-md) var(--sans); color: var(--text); letter-spacing: 0; text-transform: none; }
.reachrow .tiername { font: 700 var(--fs-xs) var(--sans); letter-spacing: .06em; text-transform: uppercase; color: var(--m1); margin-left: 6px; }
.reachrow p { margin: 2px 0 6px; font: 500 var(--fs-sm) var(--sans); color: var(--text-2); }
.mg { display: grid; grid-template-columns: 90px 1fr auto; gap: 14px; align-items: center; padding: 10px 0; border-top: 1px solid rgba(42, 55, 86, .7); }
.mg:first-child { border-top: 0; padding-top: 0; }
.mgt b { display: block; font: 700 var(--fs-sm) var(--sans); color: var(--text); }
.mgt span { font: 500 var(--fs-xs) var(--sans); color: var(--text-3); }
.mgm a { display: block; font: 700 var(--fs-md) var(--sans); color: var(--text); text-decoration: none; }
.mgm a:hover { color: var(--gold-hi); }
.mgm span { font: 500 var(--fs-xs) var(--sans); color: var(--k, var(--text-3)); }
.mgr { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.mgr .pill { font: 700 var(--fs-xs) var(--sans); letter-spacing: .04em; text-transform: none; }
.rv { margin: 0 0 6px; font: 500 var(--fs-sm) var(--sans); color: var(--text-3); }
.rvn { margin: 0 0 14px; font-size: var(--fs-lg); }
.rvn span { font: 500 var(--fs-sm) var(--sans); color: var(--text-3); }
.storyform { display: grid; gap: 14px; }
.storyform label { display: block; font: 700 var(--fs-xs) var(--sans); letter-spacing: .06em; text-transform: uppercase; color: var(--text-3); }
.storyform label em { text-transform: none; letter-spacing: 0; font: italic 400 0.97rem var(--serif); }
.storyform input:not([type=checkbox]), .storyform textarea { display: block; width: 100%; margin-top: 6px; padding: .65em .85em; border-radius: 4px;
  border: 1px solid var(--line); background: #0a0f1b; color: var(--text); font: 400 1.12rem/1.5 var(--serif); letter-spacing: 0; text-transform: none; }
.storyform input:focus, .storyform textarea:focus { outline: none; border-color: var(--gold); }
.sf-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.storyform .lfrp { display: flex; align-items: center; gap: 10px; text-transform: none; letter-spacing: 0; font: 500 var(--fs-sm) var(--sans); color: var(--text-2); }
.storyform .lfrp input { width: 18px; height: 18px; accent-color: var(--gold); }
.sf-actions { display: flex; align-items: center; gap: 14px; }
.saved { font: 500 var(--fs-sm) var(--sans); color: var(--text-3); }
@media (max-width: 900px) {
  .meboard { grid-template-columns: 1fr; }
  .mecard.span2 { grid-column: auto; }
  .mewrap { grid-template-columns: 1fr; }
  .mefig { height: 240px; }
  .reach { grid-template-columns: 1fr; }
  .mg { grid-template-columns: 70px 1fr; }
  .mgr { grid-column: 1 / -1; justify-content: flex-start; }
  .sf-row { grid-template-columns: 1fr; }
}

/* ---- character story ------------------------------------------------------------------------------------------- */
.story-card { position: relative; margin: 0 0 28px; padding: 26px 28px; border-radius: var(--radius); color: var(--ink);
  background: radial-gradient(90% 60% at 50% 0%, rgba(255, 252, 240, .7), transparent 70%), linear-gradient(180deg, var(--parch), var(--parch2));
  box-shadow: 0 18px 40px rgba(0, 0, 0, .35); }
.story-card .st-title { margin: 0 0 6px; font: 700 1.3rem var(--display); color: #2a1f3a; letter-spacing: .02em; }
.story-card blockquote { margin: 0 0 12px; font: italic 500 1.22rem/1.45 var(--serif); color: var(--blood); }
.story-card .st-bio { margin: 0; font: 400 1.15rem/1.6 var(--serif); color: var(--ink); white-space: pre-line; max-width: 70ch; }
.story-card .lfrp-badge { position: absolute; top: 18px; right: 18px; padding: 4px 10px; border-radius: 99px; background: var(--blood); color: #fff3e6;
  font: 700 var(--fs-xs) var(--sans); letter-spacing: .05em; }
.story-own { margin: -12px 0 24px; font: 500 var(--fs-sm) var(--sans); }
.story-own a { color: var(--gold-hi); }
[hidden] { display: none !important; }
.mefig.full img { top: -200px; bottom: auto; }

/* Inter + EB Garamond tuning */
body { font-feature-settings: "kern", "liga"; }
.kn, .picker-list .pn, .who-am-i a { letter-spacing: -.005em; }
.lede, .about, .quip, .flav, .tale-card blockquote, .gdesc, .story-card .st-bio { font-feature-settings: "kern", "liga", "onum"; }

/* ---- home: gatherings preview, notice board, readiness ------------------------------------------------------------ */
.homegath { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.hg { display: grid; grid-template-columns: 60px 1fr; gap: 14px; align-items: center; padding: 14px 16px; border-radius: var(--radius); text-decoration: none;
  border: 1px solid var(--line); border-left: 3px solid var(--k, var(--steel)); background: var(--surface); color: var(--text); }
.hg:hover { background: #16223d; }
.hgd { display: grid; justify-items: center; font: 600 var(--fs-xs) var(--sans); letter-spacing: .06em; text-transform: uppercase; color: var(--text-3); }
.hgd b { font: 700 1.7rem/1 var(--sans); color: var(--text); }
.hgm { display: grid; gap: 2px; }
.hgm b { font: 700 1.05rem/1.25 var(--display); letter-spacing: .02em; }
.hgm > span:last-child { font: 500 var(--fs-sm) var(--sans); color: var(--text-2); }
.herald a { color: inherit; text-decoration: none; }
.news .notice { padding: 14px 16px; margin-bottom: 10px; border-radius: var(--radius); background: rgba(255, 250, 236, .6); border: 1px solid rgba(90, 74, 55, .28); }
.news .notice.pinned { border-color: var(--blood); }
.news .ntag { display: inline-block; margin-bottom: 4px; padding: 2px 8px; border-radius: 99px; background: var(--blood); color: #fff3e6; font: 700 var(--fs-xs) var(--sans); letter-spacing: .05em; }
.news .notice h4 { margin: 2px 0 4px; }
.news .notice p { margin: 4px 0 0; }
.news .nrec { font: 600 var(--fs-sm) var(--sans); color: var(--ink2); }
.news .nrec .ico { color: var(--blood); }
.news .notice a { color: var(--blood); font: 600 var(--fs-sm) var(--sans); }
.readiness { margin-top: 3rem; }
.rd { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; max-width: 760px; }
.rdc { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto auto; column-gap: 12px; padding: 16px 18px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); }
.rdc .ico { grid-row: span 3; font-size: 2rem; align-self: center; }
.rdc b { font: 700 2rem/1 var(--sans); color: var(--text); font-variant-numeric: tabular-nums; }
.rdc span { font: 500 var(--fs-sm) var(--sans); color: var(--text-2); }
.rdc em { font: 500 var(--fs-xs) var(--sans); color: var(--text-3); font-style: normal; }
.rdraids { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.rdraids span { padding: 4px 12px; border-radius: 99px; font: 600 var(--fs-xs) var(--sans); letter-spacing: .03em; border: 1px solid var(--line); }
.rdraids .ok { color: #7fe0a8; border-color: rgba(127, 224, 168, .4); }
.rdraids .short { color: var(--text-3); }
@media (max-width: 600px) { .rd { grid-template-columns: 1fr; } }

/* ---- watch list ----------------------------------------------------------------------------------------------- */
.quickcheck { position: relative; max-width: 620px; margin-top: 20px; }
.quickcheck input { width: 100%; padding: .85em 1em; border-radius: var(--radius); border: 1px solid #3a4870; background: #0a0f1b; color: var(--text); font: 500 1.05rem var(--sans); }
.quickcheck input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(201, 162, 74, .2); }
.qcres { display: grid; gap: 8px; margin-top: 10px; }
.qchit { padding: 12px 14px; border-radius: var(--radius); border: 1px solid rgba(240, 154, 146, .45); background: rgba(155, 47, 47, .14); }
.qchit.k-wanted { border-color: rgba(236, 209, 130, .45); background: rgba(201, 162, 74, .1); }
.qchit b { font: 700 var(--fs-md) var(--sans); color: var(--text); margin-right: 8px; }
.qchit p { margin: 6px 0 0; font: 400 1.05rem/1.4 var(--serif); color: var(--text-2); }
.qcg { margin-left: 8px; font: 500 var(--fs-xs) var(--sans); color: var(--text-3); }
.qcok { display: flex; gap: 10px; align-items: center; padding: 12px 14px; border-radius: var(--radius); border: 1px solid rgba(127, 224, 168, .35); background: rgba(95, 158, 110, .1); font: 500 var(--fs-sm) var(--sans); color: #a9e8c2; }
.qcok .ico { font-size: 1.3rem; }
.gate.small { min-height: 0; padding: 40px 16px; background: none; }
.gate.small .ico { font-size: 3rem; color: var(--gold); }
.gate.small h2::after { display: none; }
.avoidlist { display: grid; gap: 10px; max-width: 900px; }
.av { display: grid; grid-template-columns: 56px 1fr; gap: 16px; padding: 16px 18px; border-radius: var(--radius); border: 1px solid var(--line); border-left: 3px solid #f09a92; background: var(--surface); }
.avi { width: 56px; height: 56px; border-radius: 50%; overflow: hidden; display: grid; place-items: center; background: #0a0f1b; border: 1px solid var(--line); font-size: 1.6rem; color: var(--text-3); }
.avi img { width: 100%; height: 100%; object-fit: cover; }
.av h3 { margin: 0; font: 700 var(--fs-lg) var(--sans); letter-spacing: 0; text-transform: none; }
.gtag { margin-left: 6px; padding: 1px 8px; border-radius: 99px; border: 1px solid var(--line); font: 600 var(--fs-xs) var(--sans); color: var(--text-3); }
.avm { margin: 2px 0 6px; font: 500 var(--fs-sm) var(--sans); color: var(--text-3); }
.avr { margin: 0; font: 400 1.1rem/1.45 var(--serif); color: var(--text); }
.avb { margin: 6px 0 0; font: 500 var(--fs-xs) var(--sans); color: var(--text-3); }
.posters { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 22px; }
.poster { position: relative; padding: 22px 20px 20px; text-align: center; color: #3a2a18; border-radius: 3px;
  background: radial-gradient(120% 90% at 50% 10%, #f5e8c8 0%, #e8d3a6 60%, #d2b682 100%);
  box-shadow: 0 18px 40px rgba(0, 0, 0, .45), inset 0 0 40px rgba(120, 80, 30, .35); transform: rotate(-.6deg); }
.poster:nth-child(even) { transform: rotate(.7deg); }
.poster::before { content: ""; position: absolute; top: 8px; left: 50%; width: 12px; height: 12px; margin-left: -6px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #c9c9c9, #5a5a5a); box-shadow: 0 2px 3px rgba(0, 0, 0, .5); }
.pw { margin: 6px 0 0; font: 800 2.4rem/1 var(--display); letter-spacing: .12em; color: #5a1e14; }
.pfor { margin: 2px 0 12px; font: italic 500 1rem var(--serif); color: #5c4630; }
.pimg { height: 210px; margin: 0 -6px 10px; overflow: hidden; position: relative; border: 3px double rgba(90, 60, 30, .55); background: rgba(90, 60, 30, .08); display: grid; place-items: center; font-size: 4rem; color: rgba(90, 30, 20, .5); }
.pimg img { position: absolute; left: 50%; top: -126px; width: 560px; max-width: none; transform: translateX(-50%); filter: sepia(.65) contrast(1.05) brightness(.95); }
.pimg .pav { position: static; width: 120px; height: 120px; transform: none; border-radius: 50%; }
.poster h3 { margin: 0; font: 800 1.45rem var(--display); color: #2a1a10; letter-spacing: .03em; }
.pwho { margin: 2px 0 10px; font: 600 var(--fs-xs) var(--sans); letter-spacing: .05em; text-transform: uppercase; color: #6a5238; }
.pcrime { margin: 0 0 12px; font: italic 400 1.08rem/1.4 var(--serif); color: #3a2a18; }
.preward { margin: 0; padding-top: 10px; border-top: 1px dashed rgba(90, 60, 30, .45); font: 700 var(--fs-xs) var(--sans); letter-spacing: .1em; text-transform: uppercase; color: #6a5238; }
.preward b { display: block; margin-top: 2px; font: 800 1.2rem var(--display); letter-spacing: .02em; text-transform: none; color: #5a1e14; }

.wk { display: inline-block; padding: 2px 8px; border-radius: 99px; font: 700 var(--fs-xs) var(--sans); letter-spacing: .05em; text-transform: uppercase; }
.wk-avoid { background: rgba(240, 154, 146, .15); color: #f09a92; border: 1px solid rgba(240, 154, 146, .4); }
.wk-wanted { background: rgba(236, 209, 130, .14); color: var(--gold-hi); border: 1px solid rgba(236, 209, 130, .4); }

.vchk { margin-left: 3px; color: #7fe0a8; font-size: .85em; }
.rsvp-you { margin: -4px 0 0; font: 500 var(--fs-xs) var(--sans); color: var(--text-3); }

/* ---- quick search ---------------------------------------------------------------------------------------------- */
.qs-btn { display: grid; place-items: center; width: 36px; height: 36px; margin-left: 14px; border-radius: var(--radius); border: 1px solid transparent;
  background: none; color: var(--text-2); cursor: pointer; }
.qs-btn:hover { color: var(--gold-hi); border-color: rgba(239, 230, 210, .25); }
.qs-btn .ico { width: 20px; height: 20px; }
.qs { width: min(560px, calc(100vw - 24px)); margin-top: 12vh; padding: 0; border: 1px solid #3a4870; border-radius: 10px; background: #0b1120;
  color: var(--text); box-shadow: 0 30px 80px rgba(0, 0, 0, .7); }
.qs::backdrop { background: rgba(4, 6, 12, .65); backdrop-filter: blur(3px); }
.qs input { width: 100%; padding: 16px 18px; border: 0; border-bottom: 1px solid var(--line); background: transparent; color: var(--text); font: 500 1.1rem var(--sans); }
.qs input:focus { outline: none; }
.qs-list { list-style: none; margin: 0; padding: 6px; max-height: 50vh; overflow: auto; }
.qs-list li { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; padding: 10px 12px; border-radius: 6px; cursor: pointer; }
.qs-list li.on, .qs-list li:hover { background: #18233d; }
.qs-kn { font: 700 var(--fs-md) var(--sans); color: var(--c, var(--text)); }
.qs-page { font: 700 1rem var(--display); letter-spacing: .02em; color: var(--gold-hi); }
.qs-meta { font: 500 var(--fs-xs) var(--sans); color: var(--text-3); }
.qs-list .none { color: var(--text-3); cursor: default; }
.qs-hint { margin: 0; padding: 8px 14px 12px; font: 500 var(--fs-xs) var(--sans); color: var(--text-3); border-top: 1px solid var(--line); }
@media (max-width: 820px) { .qs-btn { margin-left: auto; } .who-am-i { margin-left: 4px; } }

/* ---- order goals --------------------------------------------------------------------------------------------- */
.goals { display: grid; grid-template-columns: repeat(auto-fill, minmax(360px, 1fr)); gap: var(--s4); }
.goal { display: grid; grid-template-columns: 64px 1fr; gap: 16px; align-items: start; padding: 20px 22px; border-radius: var(--radius);
  border: 1px solid var(--line); background: var(--surface); }
.goal.done { border-color: rgba(236, 209, 130, .45); background: linear-gradient(165deg, #1f2a44, var(--surface) 60%); }
.goal h3 { margin: 2px 0 4px; font: 700 1.12rem/1.2 var(--display); letter-spacing: .02em; text-transform: none; color: var(--text); }
.gdone { margin-left: 6px; padding: 2px 8px; border-radius: 99px; background: var(--gold); color: #1d1406; font: 700 var(--fs-xs) var(--sans); letter-spacing: .05em; vertical-align: middle; }
.goal .flav { margin: 0 0 12px; font: italic 400 1.07rem/1.4 var(--serif); color: var(--text-3); }
.gbar { height: 10px; border-radius: 99px; background: #0a0f1b; border: 1px solid var(--line); overflow: hidden; }
.gbar i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--gold-lo), var(--gold-hi)); }
.gnum { margin: 8px 0 0; font: 500 var(--fs-sm) var(--sans); color: var(--text-2); }
.gnum b { font-weight: 700; color: var(--text); font-variant-numeric: tabular-nums; }
.gnum span { color: var(--text-3); }
@media (max-width: 600px) { .goals { grid-template-columns: 1fr; } }

/* ---- roleplay directory ----------------------------------------------------------------------------------------- */
.rp-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 12px; }
.rp-only { display: flex; align-items: center; gap: 8px; font: 500 var(--fs-sm) var(--sans); color: var(--text-2); }
.rp-only input { width: 18px; height: 18px; accent-color: var(--gold); }
.tales-rp { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 18px; }
.rpcard { position: relative; padding: 20px 22px; border-radius: var(--radius); color: var(--ink);
  background: radial-gradient(90% 60% at 50% 0%, rgba(255, 252, 240, .7), transparent 70%), linear-gradient(180deg, var(--parch), var(--parch2));
  box-shadow: 0 14px 30px rgba(0, 0, 0, .35); }
.rpwho { display: flex; gap: 12px; align-items: center; text-decoration: none; margin-bottom: 10px; }
.rpwho img { width: 48px; height: 48px; border-radius: 50%; border: 2px solid var(--c, var(--gold)); }
.rpwho span { display: grid; }
.rpwho .kn { font-size: var(--fs-lg); filter: brightness(.55) saturate(1.4); }
.rpwho small { font: italic 500 1rem var(--serif); color: var(--ink2); }
.rpcard .lfrp-badge { position: absolute; top: 16px; right: 16px; padding: 3px 9px; border-radius: 99px; background: var(--blood); color: #fff3e6;
  font: 700 var(--fs-xs) var(--sans); letter-spacing: .04em; }
.rpcard blockquote { margin: 0 0 8px; font: italic 500 1.12rem/1.4 var(--serif); color: var(--blood); }
.rpcard p { margin: 0 0 8px; font: 400 1.06rem/1.5 var(--serif); color: var(--ink); }
.rpmore { font: 600 var(--fs-sm) var(--sans); color: var(--blood); text-decoration: none; }
.empty-state a { color: var(--gold-hi); }
.btn { white-space: nowrap; }
@media (max-width: 520px) {
  .bar { gap: .6rem; }
  .brand span { display: none; }
  .who-am-i .mine { max-width: 110px; }
}

.chips .cmp { justify-content: center; }
.chronicle .k-gathering i { background: #c79bf2; border-color: #c79bf2; }

/* ---- name forge --------------------------------------------------------------------------------------------------- */
.forge { margin-top: 28px; padding: 22px 24px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); max-width: 760px; }
.forge h3 { margin: 0 0 4px; font: 700 1.2rem var(--display); color: var(--gold-hi); letter-spacing: .02em; text-transform: none; }
.forge .flav { margin: 0 0 14px; font: italic 400 1.07rem/1.4 var(--serif); color: var(--text-3); }
.forge .legend { margin: 0 0 14px; }
.forge .chip.on { border-color: var(--gold); background: rgba(201, 162, 74, .14); color: var(--text); }
.forged { list-style: none; margin: 0 0 16px; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; }
.forged li { display: flex; justify-content: space-between; align-items: center; padding: 10px 12px; border-radius: 4px; background: #0a0f1b; border: 1px solid var(--line); }
.forged span { font: 600 1.2rem var(--serif); color: var(--text); }
.linkish { border: 0; background: none; color: var(--text-3); cursor: pointer; font: 600 var(--fs-xs) var(--sans); padding: 2px 4px; }
.linkish:hover { color: var(--gold-hi); }

.myteam { padding: 10px 0; border-top: 1px solid rgba(42, 55, 86, .7); }
.myteam:first-child { border-top: 0; padding-top: 0; }
.myteam b { display: block; font: 700 var(--fs-md) var(--sans); color: var(--text); }
.myteam span { font: 500 var(--fs-xs) var(--sans); color: var(--text-3); }
.myteam p { margin: 4px 0 0; font: 400 1.02rem/1.4 var(--serif); color: var(--text-2); }
.mem .quill { color: var(--gold-hi); font-size: .9em; vertical-align: -.1em; }

/* ---- tavern board -------------------------------------------------------------------------------------------- */
.tavern-sec { background: linear-gradient(180deg, var(--night) 0%, #10172a 50%, var(--night) 100%); }
.k-lfg { --k: #6cc6c0; } .k-craft { --k: #f2b27a; } .k-offer { --k: #ecd182; }
.tav-actions { margin: -8px 0 18px; }
.tavform { display: grid; gap: 12px; max-width: 900px; margin-bottom: 22px; padding: 18px 20px; border-radius: var(--radius); border: 1px solid #3a4870; background: var(--surface); }
.tavform label { display: block; font: 600 var(--fs-xs) var(--sans); letter-spacing: .06em; text-transform: uppercase; color: var(--text-3); }
.tavform label em { text-transform: none; letter-spacing: 0; font: italic 400 .95rem var(--serif); }
.tavform input, .tavform select, .tavform textarea { display: block; width: 100%; margin-top: 6px; padding: .6em .75em; border-radius: 4px; border: 1px solid var(--line);
  background: #0a0f1b; color: var(--text); font: 400 .95rem var(--sans); letter-spacing: 0; text-transform: none; }
.tavform textarea { font: 400 1.05rem/1.45 var(--serif); }
.tav-kinds { display: flex; flex-wrap: wrap; gap: 8px; }
.tav-kinds .chip.on { border-color: var(--gold); background: rgba(201, 162, 74, .14); color: var(--text); }
.tav-kinds .ico { font-size: 1.05rem; }
.tav-row { display: grid; grid-template-columns: 1fr 180px 140px; gap: 12px; }
.tav-btns { display: flex; align-items: center; gap: 10px; }
.tavposts { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.tav { position: relative; padding: 16px 18px 14px; border-radius: var(--radius); border: 1px solid var(--line); border-top: 3px solid var(--k, var(--steel)); background: var(--surface); }
.tavk { margin: 0 0 4px; font: 700 var(--fs-xs) var(--sans); letter-spacing: .06em; text-transform: uppercase; color: var(--k, var(--text-3)); }
.tavk span { color: var(--text-3); font-weight: 500; text-transform: none; letter-spacing: 0; }
.tav h3 { margin: 0 0 6px; font: 700 var(--fs-md)/1.3 var(--sans); color: var(--text); letter-spacing: 0; text-transform: none; }
.tavb { margin: 0 0 8px; font: 400 1.05rem/1.4 var(--serif); color: var(--text-2); }
.tavby, .tavj { margin: 0 0 6px; font: 500 var(--fs-sm) var(--sans); color: var(--text-3); }
.tavby .kn, .tavj .kn { font-size: var(--fs-sm); }
.tavbtns { display: flex; gap: 8px; align-items: center; }
.tavbtns .pill { font: 700 var(--fs-xs) var(--sans); letter-spacing: .04em; text-transform: none; }
@media (max-width: 700px) { .tav-row { grid-template-columns: 1fr; } }
/* ---- phone menu ---------------------------------------------------------------------------------------------------- */
.menu-btn { display: none; place-items: center; width: 38px; height: 38px; border: 0; background: none; color: var(--text); cursor: pointer; margin-right: -4px; }
.menu-btn .ico { width: 24px; height: 24px; }
@media (max-width: 820px) {
  .menu-btn { display: grid; }
  .bar.open { background: rgba(11, 16, 29, .98); }
  .bar.open .links { display: flex; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; gap: 0; margin: 0; padding: 8px 16px 16px;
    background: rgba(11, 16, 29, .98); border-bottom: 1px solid var(--line); box-shadow: 0 20px 40px rgba(0, 0, 0, .5); }
  .bar.open .links a { padding: 12px 4px; border-top: 1px solid rgba(42, 55, 86, .6); font-size: var(--fs-md); }
  .bar.open .links a:first-child { border-top: 0; }
}
@media (max-width: 820px) {
  .bar.open { backdrop-filter: none; -webkit-backdrop-filter: none; background: #0b101d; }
  .bar.open .links { background: #0b101d; }
}

/* ---- council polls ---------------------------------------------------------------------------------------------- */
.polls { display: grid; gap: 14px; max-width: 760px; margin-bottom: 22px; }
.poll { padding: 18px 20px; border-radius: var(--radius); border: 1px solid rgba(201, 162, 74, .45); background: linear-gradient(165deg, #1b2747, var(--surface) 60%); }
.poll.closed { border-color: var(--line); opacity: .8; }
.poll .eyebrow { margin-bottom: 4px; }
.poll h3 { margin: 0 0 12px; font: 700 1.2rem/1.25 var(--display); letter-spacing: .02em; text-transform: none; color: var(--text); }
.popts { display: grid; gap: 8px; }
.popt { position: relative; display: flex; justify-content: space-between; align-items: center; gap: 12px; width: 100%; padding: 11px 14px; overflow: hidden;
  border-radius: 6px; border: 1px solid var(--line); background: #0a0f1b; color: var(--text); text-align: left; cursor: pointer; font: 600 var(--fs-md) var(--sans); }
.popt:disabled { cursor: default; }
.popt:not(:disabled):hover { border-color: var(--gold); }
.popt i { position: absolute; inset: 0 auto 0 0; background: rgba(201, 162, 74, .16); transition: width .4s ease; }
.popt.mine { border-color: var(--gold); }
.popt.mine i { background: rgba(201, 162, 74, .3); }
.popt span, .popt b { position: relative; }
.popt b { font-weight: 700; color: var(--gold-hi); font-variant-numeric: tabular-nums; }
.pfoot { margin: 10px 0 0; font: 500 var(--fs-sm) var(--sans); color: var(--text-3); }
.pfoot a { color: var(--gold-hi); }

.council .cq { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin: 0 0 8px; }
.council .cq b { font: 700 var(--fs-md) var(--sans); color: var(--text); }
.council .cq span { font: 500 var(--fs-sm) var(--sans); color: var(--text-3); }
.council { border-color: rgba(201, 162, 74, .45); }

/* ---- who can make it? -------------------------------------------------------------------------------------------- */
.whocan { max-width: 900px; margin-bottom: 26px; padding: 20px 22px; border-radius: var(--radius); border: 1px solid rgba(201, 162, 74, .45);
  background: linear-gradient(165deg, #1b2747, var(--surface) 60%); }
.whocan label { display: block; margin-bottom: 8px; font: 700 1.15rem var(--display); color: var(--gold-hi); letter-spacing: .02em; }
.whocan input { width: 100%; padding: .8em 1em; border-radius: var(--radius); border: 1px solid #3a4870; background: #0a0f1b; color: var(--text); font: 500 1rem var(--sans); }
.whocan input:focus { outline: none; border-color: var(--gold); }
.rres { display: grid; gap: 8px; margin-top: 12px; }
.rrow { display: grid; grid-template-columns: minmax(200px, 1fr) 2fr; gap: 14px; align-items: baseline; padding: 10px 12px; border-radius: 4px; background: rgba(10, 15, 27, .6); }
.rname b { display: block; font: 700 var(--fs-md) var(--sans); color: var(--text); }
.rname span { font: 500 var(--fs-xs) var(--sans); color: var(--text-3); }
.rwho { font: 500 var(--fs-sm) var(--sans); color: var(--text-3); }
.rwho .kn { font-size: var(--fs-sm); }
.rwho small { color: var(--text-3); }
.rres .none { margin: 0; color: var(--text-3); font: italic 400 1.05rem var(--serif); }
.rres .none a, .crafts-lede a { color: var(--gold-hi); }
@media (max-width: 700px) { .rrow { grid-template-columns: 1fr; } }

.welcome { margin: 14px 0 0; font: 500 var(--fs-md) var(--sans); color: var(--text-2); }
.welcome a { color: var(--gold-hi); text-decoration: none; }
.welcome a:hover { text-decoration: underline; }
.welcome .kn { color: var(--c, var(--gold-hi)); }

.tavhint { margin: -2px 0 0; padding: 10px 12px; border-radius: 4px; background: rgba(242, 178, 122, .08); border: 1px solid rgba(242, 178, 122, .3);
  font: 500 var(--fs-sm)/1.5 var(--sans); color: var(--text-2); }
.tavhint .ico { color: #f2b27a; }
.tavhint b { color: var(--text); }
.tavhint .kn { font-size: var(--fs-sm); }
.tav-row > *, .ofgrid > *, .sf-row > * { min-width: 0; }
@media (max-width: 700px) { .tav-row { grid-template-columns: minmax(0, 1fr); } }
.tavform, .storyform, .rsvp, .login-form { grid-template-columns: minmax(0, 1fr); }
.tav-btns, .sf-actions, .ofactions, .gtools, .cal-actions { flex-wrap: wrap; }

.nbadge { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; margin-left: 4px; border-radius: 99px;
  background: var(--blood); color: #fff; font: 700 11px var(--sans); letter-spacing: 0; vertical-align: 1px; }
.reclist { margin-top: 10px; }
.reclist summary { cursor: pointer; font: 600 var(--fs-sm) var(--sans); color: var(--text-2); }
.reclist summary:hover { color: var(--gold-hi); }
.recq { width: 100%; margin: 8px 0; padding: .45em .65em; border-radius: 4px; border: 1px solid var(--line); background: #0a0f1b; color: var(--text); font: 500 .9rem var(--sans); }
.reclist ul { list-style: none; margin: 0; padding: 0; max-height: 260px; overflow: auto; display: grid; gap: 2px; }
.reclist li { padding: 3px 6px; border-radius: 3px; font: 500 var(--fs-sm) var(--sans); color: var(--text-2); }
.reclist li:nth-child(odd) { background: rgba(10, 15, 27, .5); }

/* companions / party finder */
.companions { margin-top: 18px; }
.comp-sum { margin: 0 0 16px; font: 500 var(--fs-base) var(--sans); color: var(--text-2); }
.comp-sum b { color: var(--text); }
.comp-sum .ico { width: 16px; height: 16px; margin: 0 2px 0 10px; vertical-align: -3px; color: var(--gold); }
.comp-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; }
@media (max-width: 800px) { .comp-grid { grid-template-columns: minmax(0, 1fr); } }
.party { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 8px; }
.slot { display: flex; gap: 12px; align-items: center; padding: 10px 14px; border-radius: 4px; border: 1px solid var(--line); background: rgba(10, 15, 27, .55); }
.slot .ico { width: 22px; height: 22px; flex: none; color: var(--gold); }
.slot.r-tank .ico { color: #9fc3ff; } .slot.r-healer .ico { color: #a8e6b4; } .slot.r-dps .ico { color: #f0b4ad; }
.slot div { display: grid; min-width: 0; }
.slot span { font: 500 var(--fs-xs) var(--sans); color: var(--text-3); }
.slot.empty { border-style: dashed; opacity: .8; }
.slot.empty b { font: 600 var(--fs-sm) var(--sans); color: var(--text-2); }
.comp-list { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 2px; max-height: 360px; overflow: auto; }
.comp-list li { display: grid; grid-template-columns: 18px minmax(0, 1fr) 28px auto; gap: 10px; align-items: center; padding: 5px 8px; border-radius: 3px; }
.comp-list li:nth-child(odd) { background: rgba(10, 15, 27, .45); }
.comp-list .ico { width: 16px; height: 16px; color: var(--text-3); }
.comp-list .kn { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.comp-list span { font: 600 var(--fs-sm) var(--sans); color: var(--text-2); text-align: right; font-variant-numeric: tabular-nums; }
.comp-list em { font: 500 var(--fs-xs) var(--sans); font-style: normal; color: var(--text-3); white-space: nowrap; }
.companions .hint { margin: 10px 0 0; font: 500 var(--fs-sm)/1.5 var(--sans); color: var(--text-3); }

/* who's that knight? */
.quiz { margin-top: 18px; }
.qcard { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: 32px; align-items: start; }
@media (max-width: 760px) { .qcard { grid-template-columns: minmax(0, 1fr); gap: 16px; } }
.qfig { height: 420px; border-radius: var(--radius); border: 1px solid var(--line); overflow: hidden;
  background: radial-gradient(ellipse at 50% 35%, #26355a, #0d1424 70%); }
@media (max-width: 760px) { .qfig { height: 300px; } }
.qfig img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.qhint { margin: 6px 0 18px; font: 400 1.35rem var(--serif); color: var(--text); }
.qopts { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
@media (max-width: 460px) { .qopts { grid-template-columns: minmax(0, 1fr); } }
.qopt { padding: 14px 16px; border-radius: 4px; border: 1px solid var(--line); background: var(--surface); color: var(--text);
  font: 600 1rem var(--sans); text-align: left; cursor: pointer; transition: border-color .15s, background .15s; }
.qopt:hover:not([disabled]) { border-color: var(--gold); background: #18233d; }
.qopt[disabled] { cursor: default; opacity: .6; }
.qopt.right { opacity: 1; border-color: #78be8c; background: rgba(120, 190, 140, .14); }
.qopt.wrong { opacity: 1; border-color: #f09a92; background: rgba(240, 154, 146, .12); }
.qafter { margin-top: 18px; display: grid; gap: 10px; justify-items: start; font: 500 var(--fs-base) var(--sans); color: var(--text-2); }
.qafter p { margin: 0; }
.qafter .hint, .qdone .hint { font-size: var(--fs-sm); color: var(--text-3); }
.qdone { max-width: 560px; padding: 28px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); text-align: center; display: grid; gap: 8px; justify-items: center; }
.qscore { margin: 0; font: 700 3.6rem/1 var(--display); color: var(--gold-hi); }
.qscore small { font-size: 1.6rem; color: var(--text-3); }
.qverdict { margin: 0; font: 400 1.3rem var(--serif); color: var(--text); }
.qstreak { margin: 0; font: 700 var(--fs-xs) var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--gold); }
.qline { margin: 8px 0 0; padding: 10px 14px; border-radius: 4px; background: #0a0f1b; font: 500 var(--fs-sm) var(--sans); color: var(--text-2); user-select: all; }
.qbtns { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 6px; }
.qfig img { transform: scale(1.75); transform-origin: 50% 46%; }
.qafter .hint { font-family: var(--sans); }
.mgerr { grid-column: 1 / -1; margin: 6px 0 0; font: 500 var(--fs-sm) var(--sans); color: #f0b4ad; }

/* today in the hall */
.today { padding: 0 0 8px; background: var(--night); position: relative; z-index: 2; margin-top: -40px; }
.todaygrid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 980px) { .todaygrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .todaygrid { grid-template-columns: minmax(0, 1fr); } }
.tday { display: grid; grid-template-columns: 28px minmax(0, 1fr); column-gap: 12px; align-items: center; padding: 16px 18px; border-radius: var(--radius);
  border: 1px solid var(--line); background: linear-gradient(165deg, #18233d, var(--surface) 70%); text-decoration: none; color: var(--text);
  transition: border-color .15s, transform .15s; }
.tday:hover { border-color: rgba(236, 209, 130, .55); transform: translateY(-2px); }
.tday .ico { grid-row: 1 / span 3; width: 26px; height: 26px; color: var(--gold); }
.tday .tl { font: 700 var(--fs-xs) var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--text-3); }
.tday b { font: 700 1.08rem/1.3 var(--sans); color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tday .ts { font: 500 var(--fs-sm) var(--sans); color: var(--text-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* bonds */
.bonds { list-style: none; margin: 18px 0 0; padding: 14px 0 0; border-top: 1px solid rgba(90, 74, 55, .25); display: grid; gap: 6px; }
.bonds li { font: 400 1.05rem/1.5 var(--serif); color: var(--ink2, #5a4a37); }
.bonds li span { font-style: italic; }
.bonds li em { display: block; font-size: .95rem; color: var(--ink2, #5a4a37); opacity: .85; }
.bh { margin: 28px 0 4px; font: 700 1.05rem var(--display); color: var(--gold-hi); letter-spacing: .04em; }
.bond { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; padding: 10px 12px; margin: 6px 0; border-radius: 4px; border: 1px solid var(--line);
  background: rgba(10, 15, 27, .5); font: 500 var(--fs-sm)/1.5 var(--sans); color: var(--text-2); }
.bond b { color: var(--text); font-weight: 600; }
.bond.ask { border-color: rgba(236, 209, 130, .5); }
.bond.wait { opacity: .8; }
.bond small { color: var(--text-3); }
.bact { margin-left: auto; display: flex; gap: 8px; }
.linkish { background: none; border: 0; padding: 0; color: var(--text-3); font: 600 var(--fs-sm) var(--sans); text-decoration: underline; cursor: pointer; }
.linkish:hover { color: var(--gold-hi); }
.bondform { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 1.6fr) auto; gap: 10px; align-items: end; margin-top: 12px; }
.bondform > * { min-width: 0; }
.bondform .saved { grid-column: 1 / -1; margin: 0; }
@media (max-width: 800px) { .bondform { grid-template-columns: minmax(0, 1fr); } }
.bondform select { display: block; width: 100%; margin-top: 6px; padding: .65em .85em; border-radius: 4px; border: 1px solid var(--line);
  background: #0a0f1b; color: var(--text); font: 400 1.12rem/1.5 var(--serif); letter-spacing: 0; text-transform: none; }
.bondform select:focus { outline: none; border-color: var(--gold); }
.bondform .btn { margin-bottom: 4px; }
.story-card > .bonds:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.story-card .bonds .kn { color: #2a1f3a; font: 700 1.05rem var(--sans); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px;
  text-decoration-color: color-mix(in srgb, var(--c, #8a6d3b) 70%, #2a1f3a); }
.tabs.more-r { mask-image: linear-gradient(to right, #000 calc(100% - 56px), transparent); }
.tabs.more-l { mask-image: linear-gradient(to left, #000 calc(100% - 56px), transparent); }
.tabs.more-l.more-r { mask-image: linear-gradient(to right, transparent, #000 56px, #000 calc(100% - 56px), transparent); }

/* the annals */
.annals { margin: 40px 0; }
.annals-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 16px; margin-bottom: 16px; }
.annals-head h3 { margin: 0; font: 700 1.4rem var(--display); color: var(--gold-hi); }
.annals-head .flav { flex: 1 1 100%; margin: 0; font: italic 400 1.08rem/1.5 var(--serif); color: var(--text-2); }
.annalform { margin: 0 0 20px; padding: 20px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); display: grid; gap: 14px; }
.annalform select { display: block; width: 100%; margin-top: 6px; padding: .65em .85em; border-radius: 4px; border: 1px solid var(--line);
  background: #0a0f1b; color: var(--text); font: 400 1.05rem/1.5 var(--serif); }
.annal-list { display: grid; gap: 16px; }
.annal { padding: 24px 28px; border-radius: var(--radius); background: linear-gradient(180deg, #f3e9d2, #e7d8b6); color: var(--ink); box-shadow: 0 10px 30px rgba(0, 0, 0, .35); }
.annal h4 { margin: 0; font: 700 1.3rem var(--display); color: #2a1f3a; }
.annal .ameta { margin: 4px 0 14px; font: 500 var(--fs-sm) var(--sans); color: #6b5a44; }
.annal .ameta a { color: #7a2e2e; }
.annal .ameta .kn { color: #2a1f3a; font-weight: 700; text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--c, #8a6d3b) 70%, #2a1f3a); text-decoration-thickness: 2px; }
.abody p { margin: 0 0 .8em; font: 400 1.12rem/1.65 var(--serif); color: #2e2418; }
.abody.clamp { max-height: 11.5em; overflow: hidden; mask-image: linear-gradient(#000 60%, transparent); }
.annal footer { display: flex; gap: 16px; margin-top: 6px; }
.annal .linkish { color: #6b5a44; }
.annal .linkish:hover { color: #7a2e2e; }
.gannals { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); display: grid; gap: 6px; justify-items: start; }
.gannals p { margin: 0; font: 500 var(--fs-sm) var(--sans); color: var(--text-2); }
.gannals p span { color: var(--text-3); }
.gannals a:not(.btn) { color: var(--gold-hi); }
.annals { padding: 0; }
.annal.hid { opacity: .7; outline: 2px dashed #9b2f2f; outline-offset: -6px; }
.hidtag { margin: 0 0 6px; font: 700 var(--fs-xs) var(--sans); letter-spacing: .1em; text-transform: uppercase; color: #9b2f2f; }

/* where the order stands */
.spread { margin: 0 0 28px; padding: 22px 24px 16px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); }
.spread h3 { margin: 0; font: 700 1.2rem var(--display); color: var(--gold-hi); }
.spread .sub { margin: 4px 0 10px; font: 500 var(--fs-sm) var(--sans); color: var(--text-3); }
.spread .sub b { color: var(--text); }
.spread-plot { position: relative; }
.spread-plot svg { display: block; }
.spread .grid { stroke: #24304a; stroke-width: 1; }
.spread .yl, .spread .xl { fill: var(--text-3); font: 500 11px var(--sans); font-variant-numeric: tabular-nums; }
.spread .col path { fill: #815c00; transition: fill .12s; }
.spread .col.you path { fill: #b88c06; }
.spread .col:hover path, .spread .col:focus path { fill: #b88c06; }
.spread .col .hit { fill: transparent; }
.spread .col:focus { outline: none; }
.spread .col:focus .hit { stroke: var(--gold-hi); stroke-width: 1; }
.spread .lab { fill: var(--text); font: 700 12px var(--sans); }
.spread .val { fill: var(--text-2); font: 600 11px var(--sans); }
.spread .tip { position: absolute; width: 150px; padding: 6px 10px; border-radius: 4px; background: #0a0f1b; border: 1px solid var(--line);
  font: 600 var(--fs-xs) var(--sans); color: var(--text); text-align: center; pointer-events: none; }
.spread-table summary { cursor: pointer; font: 600 var(--fs-xs) var(--sans); color: var(--text-3); margin-top: 6px; }
.spread-table table { margin-top: 8px; border-collapse: collapse; font: 500 var(--fs-sm) var(--sans); color: var(--text-2); }
.spread-table td, .spread-table th { padding: 3px 14px 3px 0; text-align: left; }
.st-annals { margin: 14px 0 0; font: 500 var(--fs-sm)/1.6 var(--sans); color: #6b5a44; }
.st-annals a { color: #7a2e2e; font-weight: 600; }
.story-card > .st-annals:first-child { margin-top: 0; }

.qboard { width: 100%; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); text-align: left; display: grid; gap: 6px; }
.qboard ol { list-style: none; margin: 0 0 8px; padding: 0; display: grid; gap: 2px; counter-reset: q; }
.qboard li { display: flex; align-items: baseline; gap: 10px; padding: 4px 8px; border-radius: 3px; counter-increment: q; }
.qboard li::before { content: counter(q); width: 18px; font: 700 var(--fs-xs) var(--sans); color: var(--text-3); }
.qboard li:nth-child(odd) { background: rgba(10, 15, 27, .5); }
.qboard li b { margin-left: auto; font: 700 var(--fs-sm) var(--sans); color: var(--text); }
.qboard li b small { font-weight: 500; color: var(--text-3); }
#qboard { justify-self: stretch; }
.qboard .kn { font-size: var(--fs-base); }
.meweek { margin: 2px 0 10px; font: 600 var(--fs-sm) var(--sans); color: var(--gold-hi); letter-spacing: .02em; }
.doll > *, .doll .col > *, .doll .weap > * { min-width: 0; }
.tavlv { font: 600 var(--fs-xs) var(--sans); color: var(--text-3); }
.tavmix { margin: 4px 0 0; font: 700 var(--fs-xs) var(--sans); letter-spacing: .04em; color: var(--gold-hi); }

/* first-visit welcome */
.welcome-card { border-color: rgba(236, 209, 130, .5); background: linear-gradient(165deg, #1f2a44, var(--surface) 65%); }
.wsteps { margin: 6px 0 12px; padding-left: 22px; display: grid; gap: 10px; }
.wsteps li { font: 600 var(--fs-base) var(--sans); color: var(--text); }
.wsteps li a { color: var(--gold-hi); }
.wsteps li span { display: block; font: 500 var(--fs-sm) var(--sans); color: var(--text-3); }

.cheer { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 99px; border: 1px solid rgba(90, 74, 55, .35);
  background: rgba(255, 255, 255, .25); color: #6b5a44; font: 700 var(--fs-sm) var(--sans); cursor: pointer; }
.cheer .ico { width: 16px; height: 16px; }
.cheer:hover:not([disabled]) { border-color: #7a2e2e; color: #7a2e2e; }
.cheer.on { background: rgba(155, 47, 47, .12); border-color: #9b2f2f; color: #9b2f2f; }
.cheer[disabled] { cursor: default; opacity: .75; }
.annal footer { align-items: center; }

.qopt kbd { display: inline-grid; place-items: center; width: 22px; height: 22px; margin-right: 8px; border-radius: 4px; border: 1px solid var(--line);
  font: 700 12px var(--sans); color: var(--text-3); background: #0a0f1b; }
@media (hover: none) { .qopt kbd { display: none; } }
.cmp { display: flex; gap: 8px; flex-wrap: wrap; }

.raid .conq { margin: 10px 0 0; font: 600 var(--fs-sm) var(--sans); color: var(--text-2); }
.raid.conquered { border-color: rgba(236, 209, 130, .55); }
.qcmate { margin-top: 8px; padding: 10px 14px; border-radius: 4px; border: 1px solid rgba(236, 209, 130, .4); background: rgba(236, 209, 130, .06);
  font: 600 var(--fs-sm) var(--sans); color: var(--text-2); }
.qcmate .ico { color: var(--gold); vertical-align: -3px; }
.qcmate small { color: var(--text-3); font-weight: 500; }
.arena .rbtns { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin: 4px 0 18px; }
.sb-patterns { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; align-items: start; margin-top: 18px; }
.sb-patterns .party { margin: 0; }
.foot .fresh { margin: 6px 0 0; font: 500 var(--fs-xs) var(--sans); color: var(--text-3); }
.pace { margin: 10px 0 18px; font: 600 var(--fs-base) var(--sans); color: var(--text-2); } .pace b { color: var(--gold-hi); }
.gneeds { margin: 6px 0 10px; font: 700 var(--fs-sm) var(--sans); color: var(--gold-hi); }
.tale .trank { display: block; margin-top: 4px; font: 700 var(--fs-xs) var(--sans); font-style: normal; letter-spacing: .04em; color: var(--text-3); }
.tale .trank.gold { color: var(--gold-hi); }
.shine { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 10px; }
.shine li { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 10px; align-items: baseline; }
.shine li b { font: 700 1.3rem var(--sans); color: var(--gold-hi); }
.shine li span { font: 600 var(--fs-base) var(--sans); color: var(--text); }
.shine li small { display: block; font: 500 var(--fs-xs) var(--sans); color: var(--text-3); }
.shine li.more { display: block; font: 700 var(--fs-sm) var(--sans); }
.shine li.more a { color: var(--gold-hi); }

/* the Feast of Winter Veil */
.hero .snow { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 1; }
.hero .snow i { position: absolute; top: -10px; width: 6px; height: 6px; border-radius: 50%; background: #f4f1ea;
  box-shadow: 0 0 6px rgba(255, 255, 255, .6); animation: kol-snow linear infinite; }
@keyframes kol-snow { from { transform: translate3d(0, -10px, 0); } to { transform: translate3d(30px, 105vh, 0); } }
@media (prefers-reduced-motion: reduce) { .hero .snow i { animation: none; top: auto; bottom: 8%; opacity: .5 !important; } }

/* hall extras */
.news { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 8px; }
.news li { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; gap: 10px; align-items: center; font: 600 var(--fs-base) var(--sans); }
.news li .ico { width: 18px; height: 18px; color: var(--gold); }
.news li a { color: var(--text); text-decoration: none; }
.news li a:hover { color: var(--gold-hi); text-decoration: underline; }
.news li time { font: 500 var(--fs-xs) var(--sans); color: var(--text-3); }
.news-card { border-color: rgba(236, 209, 130, .5); }
.goals { list-style: none; margin: 8px 0 12px; padding: 0; display: grid; gap: 12px; }
.goals li { display: grid; grid-template-columns: minmax(0, 1fr) 30% auto; gap: 12px; align-items: center; }
.goals li b { font: 600 var(--fs-base) var(--sans); color: var(--text); }
.goals li small { display: block; font: 500 var(--fs-xs) var(--sans); color: var(--text-3); }
.goals li em { font-style: normal; font-weight: 700; }
.goals li em.ok { color: #9fd9ad; } .goals li em.late { color: #f0b4ad; }
.goals li.done b { color: var(--gold-hi); }
.goalform { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.goalform select, .goalform input { padding: .45em .6em; border-radius: 4px; border: 1px solid var(--line); background: #0a0f1b; color: var(--text); font: 500 .95rem var(--sans); }
.goalform input[name=target] { width: 110px; }
.goalform .by { font: 600 var(--fs-sm) var(--sans); color: var(--text-3); display: flex; gap: 6px; align-items: center; }
.goalform .saved { flex-basis: 100%; }
.fnext { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 12px; }
.fnext li b { display: block; font: 600 var(--fs-base) var(--sans); color: var(--text); }
.fnext li small { font: 500 var(--fs-xs) var(--sans); color: var(--text-3); }
.qrec { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 8px 0; }
.qrec dt { font: 700 var(--fs-xs) var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); }
.qrec dd { margin: 0; font: 700 1.3rem var(--sans); color: var(--text); }
#myquiz .hint a, #myquiz .none a { color: var(--gold-hi); }
.ktable { width: 100%; border-collapse: collapse; font: 500 var(--fs-sm) var(--sans); color: var(--text-2); }
.ktable th { text-align: left; font: 700 var(--fs-xs) var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); padding: 6px 8px; }
.ktable td { padding: 8px; border-top: 1px solid var(--line); }
@media (max-width: 700px) { .ktable th:nth-child(4), .ktable td:nth-child(4) { display: none; } .goals li { grid-template-columns: minmax(0, 1fr) auto; } .goals li .skill { grid-column: 1 / -1; } }

/* hall of fame and infamy */
.fame-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 32px; align-items: start; }
@media (max-width: 900px) { .fame-grid { grid-template-columns: minmax(0, 1fr); } }
.fh { margin: 0 0 4px; font: 700 1.5rem var(--display); color: var(--gold-hi); }
.fh.infamous { color: #f0b4ad; }
.plaques { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 10px; }
.plaque { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 12px; align-items: center; padding: 12px 14px; border-radius: var(--radius);
  border: 1px solid var(--line); background: linear-gradient(165deg, #18233d, var(--surface) 70%); }
.plaque.t-gold { border-color: rgba(236, 209, 130, .55); }
.plaque b { display: block; font: 700 var(--fs-base) var(--sans); color: var(--text); }
.plaque small { display: block; font: 400 var(--fs-sm) var(--serif); color: var(--text-3); }
.plaque span { display: block; margin-top: 2px; font: 600 var(--fs-sm) var(--sans); color: var(--text-2); }
.infamy { display: grid; gap: 10px; margin-top: 12px; }
.wanted-rec { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 12px; align-items: center; padding: 12px 14px; border-radius: var(--radius);
  border: 1px dashed rgba(240, 154, 146, .45); background: rgba(240, 154, 146, .05); }
.wanted-rec b { display: block; font: 700 var(--fs-base) var(--display); color: #f0b4ad; letter-spacing: .02em; }
.wanted-rec p { margin: 2px 0; font: 600 var(--fs-sm) var(--sans); color: var(--text-2); }
.wanted-rec strong { color: var(--text); }
.wanted-rec em { font: italic 400 var(--fs-sm) var(--serif); color: var(--text-3); }
.titles .mlink { align-self: center; font: 600 var(--fs-sm) var(--sans); color: var(--gold-hi); text-decoration: none; }
.titles .mlink:hover { text-decoration: underline; }
.fnote { margin: 14px 0 0; font: 400 var(--fs-sm) var(--serif); color: var(--text-3); font-style: italic; }
.newbar { grid-column: 1 / -1; margin: 0; padding: 10px 14px; border-radius: var(--radius); border: 1px solid rgba(236, 209, 130, .35);
  background: rgba(236, 209, 130, .06); font: 500 var(--fs-sm) var(--sans); color: var(--text-2); display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; }
.newbar b { color: var(--gold-hi); }
.newbar a { color: var(--text); }
.newbar a:hover { color: var(--gold-hi); }
.newbar .linkish { margin-left: auto; }

/* tournaments */
.tnew { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px 16px; margin: 0 0 24px; padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.tnew h3, .tnew .wide { grid-column: 1 / -1; margin: 0; }
.tnew label { display: grid; gap: 6px; font: 600 var(--fs-sm) var(--sans); color: var(--text-2); }
.tnew input, .tnew select, .tnew textarea, .tadd input, .tjoin select { padding: .5em .65em; border-radius: 4px; border: 1px solid var(--line); background: #0a0f1b; color: var(--text); font: 500 .95rem var(--sans); }
@media (max-width: 800px) { .tnew { grid-template-columns: minmax(0, 1fr); } }
.tcards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.tcard { display: grid; gap: 4px; text-align: left; padding: 16px 18px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); color: var(--text); cursor: pointer; }
.tcard:hover { border-color: rgba(236, 209, 130, .55); }
.tcard.s-open { border-left: 3px solid var(--gold-hi); }
.tcard .tk { font: 700 var(--fs-xs) var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); }
.tcard b { font: 700 1.15rem var(--display); }
.tcard .tm { font: 500 var(--fs-sm) var(--sans); color: var(--text-2); }
.tcard .tw { display: flex; gap: 6px; align-items: center; font: 700 var(--fs-sm) var(--sans); color: var(--gold-hi); }
.tcard .tw .ico { width: 16px; height: 16px; }
.tback { margin: 0 0 8px; }
.tmeta { margin: 4px 0; font: 600 var(--fs-sm) var(--sans); color: var(--text-3); }
.tnotes { max-width: 70ch; font: 400 var(--fs-base) var(--serif); color: var(--text-2); white-space: pre-line; }
.tchamp { display: flex; gap: 12px; align-items: center; margin: 12px 0; padding: 12px 16px; border-radius: var(--radius); border: 1px solid rgba(236, 209, 130, .55);
  background: linear-gradient(165deg, rgba(236, 209, 130, .12), transparent 70%); font: 700 var(--fs-xs) var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--gold-hi); }
.tchamp b { display: block; font: 700 1.3rem var(--display); letter-spacing: 0; text-transform: none; }
.tents { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 14px; }
.tent { display: inline-flex; gap: 6px; align-items: center; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font: 600 var(--fs-sm) var(--sans); }
.tent small { color: var(--text-3); }
.tacts { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 0 0 16px; }
.tadd, .tjoin { display: flex; gap: 8px; align-items: center; }
.bracket-wrap { overflow-x: auto; padding-bottom: 8px; }
.bracket { display: flex; gap: 28px; min-width: max-content; }
.bround { display: flex; flex-direction: column; width: 220px; }
.bround h4, .lround h4 { margin: 0 0 10px; font: 700 var(--fs-xs) var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); }
.bmatches { flex: 1; display: flex; flex-direction: column; justify-content: space-around; gap: 14px; }
.bmatch { position: relative; display: grid; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); overflow: hidden; }
.bslot { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 8px 12px; min-height: 38px; border: 0; background: none; text-align: left;
  font: 600 var(--fs-sm) var(--sans); color: var(--text); }
.bslot + .bslot { border-top: 1px solid var(--line); }
.bslot.empty { color: var(--text-3); font-style: italic; font-weight: 500; }
.bslot.won { background: rgba(236, 209, 130, .1); }
.bslot.lost { opacity: .55; }
.bslot .wmark { font: 700 var(--fs-xs) var(--sans); letter-spacing: .06em; text-transform: uppercase; color: var(--gold-hi); }
.bslot.pick { cursor: pointer; }
.bslot.pick:hover { background: rgba(236, 209, 130, .14); }
.bundo { position: absolute; right: 6px; bottom: -1px; transform: translateY(100%); font-size: var(--fs-xs); }
.bmatch:has(.bundo) { overflow: visible; margin-bottom: 14px; }
.ltable { width: 100%; max-width: 640px; border-collapse: collapse; margin: 8px 0 20px; font: 500 var(--fs-sm) var(--sans); color: var(--text-2); }
.ltable th { text-align: left; font: 700 var(--fs-xs) var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); padding: 6px 8px; }
.ltable td { padding: 8px; border-top: 1px solid var(--line); }
.ltable tr:first-child td { color: var(--text); }
.lrounds { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.lround { display: grid; gap: 10px; align-content: start; }
.tpick { font: 600 var(--fs-sm) var(--sans); color: var(--gold-hi); }
.secname { margin: 22px 0 10px; font: 700 1.05rem var(--display); color: var(--gold-hi); }
.tmn { display: grid; } .tmn small { font: 500 var(--fs-xs) var(--sans); color: var(--text-3); }
.tchamp small { display: block; margin-top: 2px; font: 600 var(--fs-sm) var(--sans); letter-spacing: 0; text-transform: none; }
.tteams { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; margin: 8px 0 16px; }
.tteam { padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.tteam.reserve { border-style: dashed; }
.tteam h5 { margin: 0 0 8px; font: 700 1rem var(--display); color: var(--gold-hi); }
.tteam .tname { width: 100%; padding: .3em .5em; border-radius: 4px; border: 1px solid var(--line); background: #0a0f1b; color: var(--gold-hi); font: 700 1rem var(--display); }
.tteam ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.tteam li { display: flex; gap: 6px; align-items: center; font: 600 var(--fs-sm) var(--sans); }
.tteam li small { color: var(--text-3); }
.tmove { margin-left: auto; max-width: 110px; padding: .2em .3em; border-radius: 4px; border: 1px solid var(--line); background: #0a0f1b; color: var(--text-2); font: 500 var(--fs-xs) var(--sans); }
.troster { margin: 0 0 18px; padding: 12px 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.troster summary { cursor: pointer; font: 700 var(--fs-sm) var(--sans); letter-spacing: .06em; text-transform: uppercase; color: var(--gold-hi); }
.trf { display: flex; flex-wrap: wrap; gap: 12px 16px; margin: 12px 0; }
.trf label { display: grid; gap: 4px; font: 600 var(--fs-xs) var(--sans); letter-spacing: .06em; text-transform: uppercase; color: var(--text-3); }
.trf input, .trf select { padding: .4em .5em; border-radius: 4px; border: 1px solid var(--line); background: #0a0f1b; color: var(--text); font: 500 .9rem var(--sans); }
.trf input[type=number] { width: 64px; }
.trf .one { flex: 1 1 220px; }
.trcount { margin: 0 0 8px; font: 500 var(--fs-sm) var(--sans); color: var(--text-2); }
.trpick { list-style: none; margin: 0 0 10px; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 4px 12px; max-height: 280px; overflow-y: auto; }
.trpick label { display: flex; gap: 6px; align-items: center; font: 600 var(--fs-sm) var(--sans); cursor: pointer; }
.trpick small { color: var(--text-3); }
@media (max-width: 900px) { .tnew { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.trcount .warn { color: #f0b4ad; }
