/* Tianlu portal.
   Warm black, matte gold, lots of room. Headlines in a high-contrast Caslon, everything operational (tables, numbers,
   forms) in Geist and Geist Mono. One spacing scale (--s-*), one radius scale, hairlines instead of boxes: a surface
   gets a border only when it is a control or a card that is clicked as a whole. Gold is for rank, links and one primary
   action per view; the cinnabar seal appears only where something is earned. Motion is short and only on transform
   and opacity. Dark by design. */
:root {
  --bg: #0c0b09;
  --bg-2: #100e0b;
  --surface: #15130f;
  --surface-2: #1c1914;
  --line: rgba(236, 228, 210, .08);
  --line-strong: rgba(236, 228, 210, .15);
  --text: #efe9dd;
  --muted: #a69d8d;
  --faint: #7a7265;
  --gold: #c9a464;
  --gold-strong: #e4c88f;
  --gold-wash: rgba(201, 164, 100, .1);
  --gold-line: rgba(201, 164, 100, .32);
  --seal: #b4482f;
  --online: #93b77e;
  --danger: #e0907c;
  --silver: #c8ccd3;
  --bronze: #cf9263;

  --display: "Libre Caslon Display", "Libre Caslon Text", Didot, "Bodoni 72", Georgia, serif;
  --ui: "Geist", "Inter", "Segoe UI", system-ui, sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Consolas, monospace;
  --han: "Noto Serif SC", "Songti SC", "SimSun", serif;

  --step--2: .75rem;
  --step--1: .875rem;
  --step-0: 1rem;
  --step-1: 1.125rem;
  --step-2: 1.375rem;
  --step-3: clamp(1.75rem, 3vw, 2.25rem);
  --step-4: clamp(2.25rem, 4.6vw, 3.5rem);

  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 24px; --s-6: 32px; --s-7: 48px; --s-8: 64px; --s-9: 96px;
  --section: clamp(64px, 9vw, 120px);
  --gutter: clamp(16px, 4vw, 48px);
  --header: 72px;
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 18px;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  color-scheme: dark;
}

/* ---------- Base ---------- */
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; scroll-padding-top: calc(var(--header) + 16px); }
button, a, [role="button"], summary, label { touch-action: manipulation; }
button, [role="button"], .btn, .nav a, .tabs a, .rk-group, .rk-pill, .segmented button, .filter-chip, .db-kinds a { user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 var(--step-0)/1.6 var(--ui);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--gold-strong); outline-offset: 2px; border-radius: 4px; }
::selection { background: var(--gold); color: var(--bg); }
.num, td.n, .mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
@media (pointer: coarse) { input, textarea, select, .input { font-size: 16px; } }

.skip { position: absolute; inset-inline-start: 8px; top: 8px; transform: translateY(-200%); z-index: 100; background: var(--gold); color: var(--bg); padding: 8px 12px; border-radius: var(--radius-sm); }
.skip:focus { transform: none; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.shell { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: var(--gutter); }

/* Press feedback on every pointer type: hover is gated to mouse, so touch gets this instead. */
.btn, .rk-group, .rk-pill, .segmented button, .filter-chip, .db-kinds a, .more-btn { transition: transform .14s var(--ease-out), background-color .16s, border-color .16s, color .16s, box-shadow .2s; }
.btn:active, .rk-group:active, .rk-pill:active, .segmented button:active, .filter-chip:active, .db-kinds a:active, .more-btn:active { transform: scale(.97); }

/* ---------- Header ---------- */
.top {
  position: sticky;
  top: 0;
  z-index: 30;
  padding-top: env(safe-area-inset-top, 0px);
  background: rgba(12, 11, 9, .78);
  backdrop-filter: saturate(1.2) blur(14px);
  -webkit-backdrop-filter: saturate(1.2) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, background-color .2s;
}
.top.scrolled { border-bottom-color: var(--line); background: rgba(12, 11, 9, .9); }
.top-row { display: flex; align-items: center; gap: var(--s-6); height: var(--header); }
.brand { flex: none; display: flex; align-items: center; height: 100%; }
.brand img { height: 46px; width: auto; filter: drop-shadow(0 2px 10px rgba(0, 0, 0, .6)); }
.nav { display: flex; align-items: center; gap: 2px; }
.nav > a, .more-btn {
  position: relative;
  display: inline-flex; align-items: center; gap: 6px;
  height: 38px; padding: 0 14px;
  border: 0; border-radius: 999px; background: none; cursor: pointer;
  font: 500 .9375rem/1 var(--ui);
  color: var(--muted);
  white-space: nowrap;
  transition: color .15s, background-color .15s;
}
@media (hover: hover) and (pointer: fine) { .nav > a:hover, .more-btn:hover { color: var(--text); background: rgba(255, 255, 255, .045); } }
.nav > a[aria-current="page"], .more-btn.current { color: var(--gold-strong); }
.nav > a[aria-current="page"]::after, .more-btn.current::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 1.5px; border-radius: 2px; background: var(--gold); opacity: .8; }
.more { position: relative; }
.more-btn svg { transition: transform .18s var(--ease-out); }
.more.open .more-btn svg { transform: rotate(180deg); }
.more-menu {
  position: absolute; top: calc(100% + 10px); left: -8px; z-index: 40;
  width: 300px; padding: 8px;
  display: grid; gap: 2px;
  background: rgba(22, 20, 16, .98); border: 1px solid var(--line-strong); border-radius: var(--radius);
  box-shadow: 0 24px 60px -12px rgba(0, 0, 0, .7);
  transform-origin: top left;
  opacity: 0; transform: scale(.97) translateY(-4px); visibility: hidden; pointer-events: none;
  transition: opacity .16s var(--ease-out), transform .16s var(--ease-out), visibility 0s .16s;
}
.more.open .more-menu { opacity: 1; transform: none; visibility: visible; pointer-events: auto; transition: opacity .16s var(--ease-out), transform .16s var(--ease-out), visibility 0s; }
.more-label { padding: 8px 12px 6px; font: 500 var(--step--2)/1 var(--ui); letter-spacing: .14em; text-transform: uppercase; color: var(--faint); }
.more-menu a { display: grid; gap: 2px; padding: 10px 12px; border-radius: var(--radius-sm); transition: background-color .12s; }
.more-menu a span { font-weight: 500; font-size: .9375rem; color: var(--text); }
.more-menu a small { color: var(--muted); font-size: var(--step--1); }
@media (hover: hover) and (pointer: fine) { .more-menu a:hover { background: rgba(255, 255, 255, .05); } }
.more-menu a[aria-current="page"] span { color: var(--gold-strong); }
.top-actions { margin-left: auto; display: flex; align-items: center; gap: var(--s-2); flex: none; }
.search-trigger {
  display: flex; align-items: center; gap: 8px;
  height: 38px; padding: 0 8px 0 12px;
  background: transparent; border: 1px solid var(--line); border-radius: 999px;
  color: var(--muted); font-size: var(--step--1); cursor: pointer;
  transition: border-color .15s, color .15s;
}
@media (hover: hover) and (pointer: fine) { .search-trigger:hover { border-color: var(--line-strong); color: var(--text); } }
kbd { font: 500 .6875rem/1 var(--mono); color: var(--faint); border: 1px solid var(--line-strong); border-radius: 5px; padding: 3px 5px; }
.session-slot { display: flex; align-items: center; gap: var(--s-2); }
.menu-btn { display: none; }

/* ---------- Buttons & links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 40px; padding: 0 18px;
  font: 500 var(--step--1)/1 var(--ui); letter-spacing: .01em;
  border-radius: 999px; border: 1px solid var(--line-strong);
  background: transparent; color: var(--text); cursor: pointer;
  white-space: nowrap;
}
@media (hover: hover) and (pointer: fine) { .btn:hover { border-color: rgba(236, 228, 210, .3); background: rgba(255, 255, 255, .04); } }
.btn-primary { background: linear-gradient(180deg, #ebd29e, #c9a464); border-color: transparent; color: #17120a; font-weight: 600; box-shadow: 0 10px 28px -14px rgba(201, 164, 100, .8), inset 0 1px 0 rgba(255, 255, 255, .35); }
@media (hover: hover) and (pointer: fine) { .btn-primary:hover { background: linear-gradient(180deg, #f2dcac, #d4b177); border-color: transparent; } }
.btn-glass { background: rgba(12, 11, 9, .45); border-color: rgba(236, 228, 210, .22); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.btn-lg { height: 50px; padding: 0 26px; font-size: var(--step-0); }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.btn-quiet { border-color: transparent; color: var(--muted); }
@media (hover: hover) and (pointer: fine) { .btn-quiet:hover { color: var(--text); border-color: transparent; background: rgba(255, 255, 255, .045); } }
.link { color: var(--gold); transition: color .15s; }
@media (hover: hover) and (pointer: fine) { .link:hover { color: var(--gold-strong); text-decoration: underline; text-underline-offset: 3px; } }
.arrow-link { display: inline-flex; align-items: center; gap: 6px; color: var(--gold); font-size: var(--step--1); font-weight: 500; white-space: nowrap; }
.arrow-link::after { content: "→"; transition: transform .15s var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .arrow-link:hover { color: var(--gold-strong); } .arrow-link:hover::after { transform: translateX(3px); } }

/* ---------- Type ---------- */
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font: 500 var(--step--2)/1 var(--ui); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.eyebrow .han { font-size: .9375rem; letter-spacing: 0; color: var(--gold); }
.eyebrow a { color: var(--gold); }
.han { font-family: var(--han); font-weight: 600; }
h1, h2, h3 { margin: 0; font-weight: 400; text-wrap: balance; }
.h-display { font: 400 var(--step-4)/1.05 var(--display); letter-spacing: -.01em; }
.h-section { font: 400 var(--step-3)/1.15 var(--display); }
.h-card { font: 600 var(--step-1)/1.3 var(--ui); letter-spacing: -.005em; }
.h-sub { font: 400 var(--step-2)/1.2 var(--display); }
.lede { font-size: var(--step-1); line-height: 1.6; color: var(--muted); max-width: 60ch; margin: 0; text-wrap: pretty; }
.muted { color: var(--muted); }

/* ---------- Views & page layout ---------- */
main { flex: 1; outline: none; }
.view { animation: view-in .3s var(--ease-out) both; }
.view > .shell:last-child { padding-bottom: var(--section); }
@keyframes view-in { from { opacity: 0; transform: translateY(6px); } }
@keyframes enter { from { opacity: 0; transform: translateY(10px); } }
@keyframes fade-in { from { opacity: 0; } }
.page-head { padding-block: clamp(48px, 7vw, 88px) clamp(32px, 4vw, 48px); display: grid; gap: var(--s-4); }
.page-head .lede { margin-top: var(--s-1); }
.section { padding-block: var(--section); }
.section-tight { padding-top: 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: var(--s-5); margin-bottom: clamp(32px, 4vw, 48px); flex-wrap: wrap; }
.section-head > div { display: grid; gap: var(--s-3); }
.block h2 { font: 500 var(--step--2)/1 var(--ui); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); padding-bottom: var(--s-4); border-bottom: 1px solid var(--line); margin-bottom: var(--s-5); }

/* ---------- Home: hero ---------- */
.hero { position: relative; isolation: isolate; overflow: hidden; margin-top: calc(-1 * (var(--header) + env(safe-area-inset-top, 0px))); }
.hero-art {
  position: absolute; inset: 0; z-index: -2;
  background: url("/assets/gate.jpg") center 22% / cover no-repeat;
  background-image: image-set(url("/assets/gate.webp") type("image/webp"), url("/assets/gate.jpg") type("image/jpeg"));
  transform: scale(1.03);
  animation: drift 30s ease-in-out infinite alternate;
}
@keyframes drift { to { transform: scale(1.08) translateY(-1%); } }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(12, 11, 9, .7) 0%, rgba(12, 11, 9, .15) 30%, rgba(12, 11, 9, .55) 70%, var(--bg) 100%),
    radial-gradient(ellipse 75% 55% at 50% 38%, transparent, rgba(12, 11, 9, .55));
}
.hero-inner { display: grid; justify-items: center; text-align: center; gap: var(--s-5); padding-block: calc(var(--header) + clamp(72px, 12vw, 150px)) clamp(96px, 12vw, 150px); }
.hero-inner > * { animation: enter .6s var(--ease-out) both; }
.hero-inner > :nth-child(2) { animation-delay: 80ms; }
.hero-inner > :nth-child(3) { animation-delay: 160ms; }
.hero h1 { width: 100%; display: flex; justify-content: center; }
.hero-logo { width: min(540px, 86vw); height: auto; filter: drop-shadow(0 14px 50px rgba(0, 0, 0, .8)); }
.hero-tag { font: italic 400 var(--step-2)/1.35 var(--display); color: var(--text); margin: 0; text-wrap: balance; text-shadow: 0 2px 18px rgba(0, 0, 0, .8); }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--s-3); justify-content: center; margin-top: var(--s-2); }

/* ---------- Home: live strip ---------- */
.live-strip {
  position: relative; z-index: 2;
  margin-top: -44px;
  display: flex; flex-wrap: wrap;
  background: rgba(21, 19, 15, .86); border: 1px solid var(--line-strong); border-radius: var(--radius-lg);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  box-shadow: 0 30px 70px -30px rgba(0, 0, 0, .9);
  overflow: hidden;
  animation: enter .5s var(--ease-out) .2s both;
}
.ls-item { flex: 1 1 220px; min-width: 0; display: grid; gap: 6px; align-content: center; padding: 18px 24px; position: relative; }
.ls-item + .ls-item::before { content: ""; position: absolute; left: 0; top: 18px; bottom: 18px; width: 1px; background: var(--line-strong); }
a.ls-item { transition: background-color .15s; }
@media (hover: hover) and (pointer: fine) { a.ls-item:hover { background: rgba(255, 255, 255, .03); } a.ls-item:hover .ls-value { color: var(--gold-strong); } }
.ls-label { font: 500 var(--step--2)/1 var(--ui); letter-spacing: .14em; text-transform: uppercase; color: var(--faint); }
.ls-value { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; font-weight: 500; color: var(--text); min-width: 0; overflow-wrap: anywhere; transition: color .15s; }
.ls-value small { color: var(--muted); font-weight: 400; font-size: var(--step--1); }
.ls-main .ls-value { align-items: center; font-size: var(--step-1); }
.ls-main b { font-weight: 500; }
.ls-sep { width: 4px; height: 4px; border-radius: 50%; background: var(--faint); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--faint); flex: none; display: inline-block; }
.dot.on { background: var(--online); box-shadow: 0 0 0 4px rgba(147, 183, 126, .15); }
.dot.off { background: var(--danger); }

/* ---------- Home: what Tianlu is ---------- */
.pillars { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(24px, 3vw, 40px); }
.pillar { display: grid; gap: var(--s-3); align-content: start; min-width: 0; padding-top: var(--s-5); border-top: 1px solid var(--line-strong); }
.pillar .han { font-size: 1.625rem; line-height: 1; color: var(--gold); margin-bottom: var(--s-1); }
.pillar p { margin: 0; color: var(--muted); }

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 88px); }
.split > * { min-width: 0; }
.panel-head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s-4); padding-bottom: var(--s-4); border-bottom: 1px solid var(--line); }

/* ---------- Ladder (compact ranking) ---------- */
.ladder { list-style: none; margin: 0; padding: 0; display: grid; }
.ladder li { margin: 0; border-bottom: 1px solid var(--line); }
.ladder a { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; align-items: center; gap: var(--s-4); padding: 14px 8px 14px 4px; border-radius: var(--radius-sm); transition: background-color .15s; }
@media (hover: hover) and (pointer: fine) { .ladder a:hover { background: rgba(255, 255, 255, .03); } .ladder a:hover strong { color: var(--gold-strong); } }
.ladder .pos { font: 500 var(--step--1)/1 var(--mono); color: var(--faint); text-align: center; }
.ladder li:nth-child(1) .pos { color: var(--gold-strong); }
.ladder li:nth-child(2) .pos { color: var(--silver); }
.ladder li:nth-child(3) .pos { color: var(--bronze); }
.ladder .who { display: flex; align-items: center; gap: var(--s-3); min-width: 0; }
.ladder .who strong { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; transition: color .15s; }
.ladder .who small { color: var(--muted); font-size: var(--step--1); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ladder .val { font: 500 var(--step-0)/1 var(--mono); color: var(--text); }
.ladder .val small { color: var(--faint); font-size: .75rem; margin-right: 4px; }
.ladder .empty { padding: var(--s-6) 0; }

.race { display: inline-grid; place-items: center; flex: none; width: 22px; height: 22px; font: 600 .75rem/1 var(--han); border: 1px solid var(--line-strong); border-radius: 6px; color: var(--muted); }
.race.ch { color: var(--gold); }

/* ---------- News, history, events ---------- */
.news-list { list-style: none; margin: 0; padding: 0; }
.news-item { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: var(--s-5); padding: var(--s-5) 0; border-bottom: 1px solid var(--line); }
.news-item time { font: 400 var(--step--1)/1.7 var(--mono); color: var(--faint); }
.news-item h3 { font: 500 var(--step-1)/1.4 var(--ui); margin-bottom: 6px; }
.news-item h3 a { color: var(--gold-strong); }
.news-item p { margin: 0; color: var(--muted); max-width: 66ch; }
.tag { display: inline-block; font: 500 var(--step--2)/1 var(--ui); letter-spacing: .12em; text-transform: uppercase; color: var(--gold); margin-bottom: 10px; }
.news-compact .news-item { grid-template-columns: minmax(0, 1fr); gap: 4px; padding: 18px 0; }
.news-compact .news-item time { order: 2; font-size: .8125rem; }
.news-compact .news-item > div { display: contents; }
.news-compact .news-item .tag { display: none; }
.news-compact .news-item h3 { margin: 0; font-size: var(--step-0); }
.news-compact .news-item p { order: 3; font-size: var(--step--1); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

.history-filter { display: flex; flex-wrap: wrap; gap: var(--s-2); padding-bottom: var(--s-5); border-bottom: 1px solid var(--line); }
.history-filter:empty { display: none; }
.filter-chip { display: inline-flex; align-items: center; height: 34px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); font-size: var(--step--1); font-weight: 500; white-space: nowrap; }
@media (hover: hover) and (pointer: fine) { .filter-chip:hover { color: var(--text); border-color: var(--line-strong); } }
.filter-chip[aria-current="page"] { color: var(--gold-strong); border-color: var(--gold-line); background: var(--gold-wash); }

/* ---------- Tabs & filters ---------- */
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs a, .tabs button { position: relative; padding: 14px 16px; background: none; border: 0; cursor: pointer; font-size: var(--step-0); font-weight: 500; color: var(--muted); white-space: nowrap; }
@media (hover: hover) and (pointer: fine) { .tabs a:hover, .tabs button:hover { color: var(--text); } }
.tabs [aria-selected="true"], .tabs [aria-current="page"] { color: var(--text); }
.tabs [aria-selected="true"]::after, .tabs [aria-current="page"]::after { content: ""; position: absolute; left: 16px; right: 16px; bottom: -1px; height: 2px; background: var(--gold); }
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); padding-block: var(--s-4); flex-wrap: wrap; }
.segmented { display: inline-flex; flex-wrap: wrap; gap: 2px; padding: 3px; border: 1px solid var(--line); border-radius: 999px; background: var(--bg-2); }
.segmented button { border: 0; background: none; padding: 0 14px; min-height: 32px; border-radius: 999px; font-size: var(--step--1); font-weight: 500; color: var(--muted); cursor: pointer; white-space: nowrap; }
@media (hover: hover) and (pointer: fine) { .segmented button:hover { color: var(--text); } }
.segmented button[aria-pressed="true"] { background: var(--surface-2); color: var(--gold-strong); box-shadow: inset 0 0 0 1px var(--gold-line); }
.segmented button:focus-visible { outline-offset: 0; }
.scroller { display: flex; gap: var(--s-2); overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 var(--fl, 0px), #000 calc(100% - var(--fr, 0px)), transparent 100%); mask-image: linear-gradient(90deg, transparent 0, #000 var(--fl, 0px), #000 calc(100% - var(--fr, 0px)), transparent 100%); }
.scroller::-webkit-scrollbar { display: none; }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: var(--step-0); }
th { text-align: left; font-weight: 500; font-size: var(--step--2); letter-spacing: .12em; text-transform: uppercase; color: var(--faint); padding: 12px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; }
td { padding: 14px; border-bottom: 1px solid var(--line); white-space: nowrap; }
th.n, td.n { text-align: right; }
tbody tr { transition: background-color .12s; }
@media (hover: hover) and (pointer: fine) { tbody tr:hover { background: rgba(255, 255, 255, .025); } }
td .who { display: inline-flex; align-items: center; gap: 10px; }
td .who a { font-weight: 500; }
td a.sub { color: var(--muted); }
.pill { display: inline-flex; align-items: center; gap: 6px; font-size: var(--step--1); color: var(--muted); }
.pager { display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); padding-top: var(--s-5); color: var(--faint); font-size: var(--step--1); flex-wrap: wrap; }
.pager:empty { display: none; }
.pager .btns { display: flex; gap: var(--s-2); }
.pager-info b { color: var(--text); font-family: var(--mono); font-weight: 500; }

/* ---------- Profile (character, guild, database entry) ---------- */
.profile-head { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: clamp(20px, 3vw, 36px); align-items: center; padding-block: clamp(48px, 6vw, 80px) var(--s-6); border-bottom: 1px solid var(--line); }
.crest {
  width: clamp(80px, 10vw, 112px); aspect-ratio: 1; max-width: 100%;
  display: grid; place-items: center;
  border-radius: 50%;
  border: 1px solid var(--gold-line);
  background: radial-gradient(circle at 30% 25%, #2b241a, var(--bg-2));
  font: 600 clamp(2.2rem, 4.5vw, 3rem)/1 var(--han); color: var(--gold);
  box-shadow: 0 0 0 6px rgba(201, 164, 100, .05);
}
.crest.skeleton { border-color: transparent; }
.profile-id { display: grid; gap: var(--s-3); min-width: 0; }
.profile-id h1 { font: 400 var(--step-4)/1.02 var(--display); overflow-wrap: anywhere; }
.facts { display: flex; flex-wrap: wrap; gap: 6px 20px; color: var(--muted); font-size: var(--step-0); }
.facts a { color: var(--gold); }
@media (hover: hover) and (pointer: fine) { .facts a:hover { text-decoration: underline; text-underline-offset: 3px; } }
.level-block { text-align: right; display: grid; gap: 4px; }
.level-block .lv { font: 400 clamp(2.5rem, 5vw, 3.5rem)/1 var(--display); color: var(--gold-strong); }
.level-block .lv small { font: 500 .75rem/1 var(--ui); color: var(--faint); letter-spacing: .14em; margin-right: 6px; vertical-align: .9em; }
.level-block span { color: var(--muted); font-size: var(--step--1); }
.profile-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: clamp(40px, 5vw, 72px); padding-top: var(--s-7); }
.profile-grid > * { min-width: 0; display: grid; gap: var(--s-7); align-content: start; }
.equip { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(220px, 100%), 1fr)); gap: var(--s-2); }
.slot { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: var(--s-3); align-items: center; padding: 10px; background: var(--surface); border-radius: var(--radius); min-width: 0; }
.slot .ico { width: 44px; height: 44px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: var(--bg); display: grid; place-items: center; position: relative; }
.slot .ico img { width: 36px; height: 36px; }
.slot .ico .plus { position: absolute; right: -6px; top: -7px; font: 500 .6875rem/1 var(--mono); background: var(--gold); color: #17120a; padding: 2px 4px; border-radius: 4px; }
.slot .meta { display: grid; gap: 2px; min-width: 0; }
/* item history (game idea D13): an equipped item opens its story */
.slot-btn { font: inherit; color: inherit; text-align: start; cursor: pointer; width: 100%; border: 1px solid transparent; }
.slot-btn:hover, .slot-btn:focus-visible { border-color: var(--gold); outline: none; }
.item-history .timeline { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 8px; }
.item-history .timeline li { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 8px; align-items: baseline; border-top: 1px solid var(--line); padding-top: 8px; }
.item-history .timeline time { font: 500 var(--step--1)/1.3 var(--mono); color: var(--faint); }
.item-history .timeline small { grid-column: 2; color: var(--faint); }
.slot .meta small { color: var(--faint); font-size: .6875rem; letter-spacing: .1em; text-transform: uppercase; }
.slot .meta span { font-size: var(--step--1); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.slot.empty .meta span { color: var(--faint); }
.bars { display: grid; gap: var(--s-4); }
.bar-row { display: grid; gap: 8px; }
.bar-row header { display: flex; justify-content: space-between; gap: var(--s-3); font-size: var(--step--1); }
.bar-row header span:last-child { font-family: var(--mono); color: var(--muted); }
.bar { height: 4px; border-radius: 4px; background: var(--surface-2); position: relative; overflow: hidden; }
.bar i { position: absolute; inset: 0 auto 0 0; border-radius: inherit; background: linear-gradient(90deg, #8a6c3a, var(--gold)); }
.kv { display: grid; grid-template-columns: minmax(0, 1fr) auto; margin: 0; }
.kv dt, .kv dd { padding: 12px 0; border-bottom: 1px solid var(--line); margin: 0; }
.kv dt { color: var(--muted); }
.kv dd { min-width: 0; overflow-wrap: anywhere; font-family: var(--mono); font-variant-numeric: tabular-nums; text-align: right; }
.seal-badge { display: inline-flex; align-items: center; gap: 8px; font-size: var(--step--1); color: var(--text); }
.seal-badge::before { content: ""; width: 9px; height: 9px; background: var(--seal); transform: rotate(45deg); }

/* ---------- Forms / auth ---------- */
.auth { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: calc(100svh - var(--header)); }
.auth-art { position: relative; overflow: hidden; }
.auth-art::before { content: ""; position: absolute; inset: 0; background: url("/assets/keyart.jpg") center 35% / cover no-repeat; background-image: image-set(url("/assets/keyart.webp") type("image/webp"), url("/assets/keyart.jpg") type("image/jpeg")); }
.auth-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent 60%, var(--bg)), linear-gradient(0deg, var(--bg) 0%, transparent 35%); }
.auth-main { display: grid; align-content: center; padding: clamp(48px, 6vw, 88px) var(--gutter); }
.auth-card { width: min(420px, 100%); display: grid; gap: var(--s-6); }
.auth-card header { display: grid; gap: var(--s-3); }
.form { display: grid; gap: 20px; }
.field { display: grid; gap: 8px; }
.field label { font-size: var(--step--1); font-weight: 500; color: var(--text); display: flex; justify-content: space-between; gap: 8px; }
.field label span { color: var(--faint); font-weight: 400; }
.input { width: 100%; height: 46px; padding: 0 14px; font: 400 var(--step-0) var(--ui); color: var(--text); background: var(--bg-2); border: 1px solid var(--line-strong); border-radius: var(--radius-sm); transition: border-color .15s, box-shadow .15s; }
select.input { appearance: none; -webkit-appearance: none; padding-right: 38px; cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='m3 4.5 3 3 3-3' fill='none' stroke='%23a69d8d' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 12px; }
select.input option { background: var(--surface); color: var(--text); }
.input::placeholder { color: var(--faint); }
@media (hover: hover) and (pointer: fine) { .input:hover { border-color: rgba(236, 228, 210, .25); } }
.input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold-wash); }
.field[data-invalid] .input { border-color: var(--danger); }
.hint { font-size: var(--step--1); color: var(--faint); margin: 0; }
.field[data-invalid] .hint { color: var(--danger); }
.meter { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; }
.meter i { height: 3px; border-radius: 3px; background: var(--surface-2); transition: background-color .2s var(--ease-out); }
.meter[data-score="1"] i:nth-child(-n+1), .meter[data-score="2"] i:nth-child(-n+2) { background: #a07a45; }
.meter[data-score="3"] i:nth-child(-n+3), .meter[data-score="4"] i:nth-child(-n+4) { background: var(--gold); }
.form-error { margin: 0; padding: 12px 14px; border: 1px solid rgba(224, 144, 124, .32); background: rgba(224, 144, 124, .07); color: var(--danger); font-size: var(--step--1); border-radius: var(--radius-sm); }
.form-error:not([hidden]) { animation: enter .22s var(--ease-out) both; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.alt { font-size: var(--step--1); color: var(--muted); margin: 0; }

/* ---------- Account ---------- */
.char-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(240px, 100%), 1fr)); gap: var(--s-3); }
.char-card { display: grid; gap: var(--s-3); padding: 18px 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); transition: border-color .15s, transform .15s var(--ease-out); min-width: 0; }
@media (hover: hover) and (pointer: fine) { .char-card:hover { border-color: var(--gold-line); } }
.char-card:active { transform: scale(.985); }
.char-card .row { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); }
.char-card .row > * { min-width: 0; }
.char-card .pill, .char-card .lv { flex: none; }
.char-card strong { min-width: 0; font: 400 var(--step-2)/1.1 var(--display); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.char-card .lv { font: 500 var(--step-1)/1 var(--mono); }
.char-card .lv small { color: var(--faint); font-size: .7em; margin-right: 3px; }
.char-card p { overflow-wrap: anywhere; margin: 0; color: var(--muted); font-size: var(--step--1); }
.balances { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0; }
.balances div { padding: 4px 20px 4px 0; display: grid; gap: 6px; min-width: 0; }
.balances div + div { border-left: 1px solid var(--line); padding-left: 20px; }
.balances dt { font-size: var(--step--2); letter-spacing: .14em; text-transform: uppercase; color: var(--faint); }
.balances dd { margin: 0; font: 500 var(--step-2)/1.2 var(--mono); overflow-wrap: anywhere; }
.account-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: clamp(40px, 5vw, 72px); padding-top: var(--s-5); }
.account-grid > * { min-width: 0; display: grid; gap: var(--s-7); align-content: start; }
.rk-optout { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.rk-optout label { display: flex; align-items: center; gap: 10px; min-height: 44px; cursor: pointer; }
.rk-optout input { width: 20px; height: 20px; accent-color: var(--gold); flex: none; }
.rk-optout small { color: var(--muted); }

/* ---------- Steps (getting started, download) ---------- */
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 3vw, 40px); }
.steps li { counter-increment: step; display: grid; gap: var(--s-3); align-content: start; min-width: 0; padding-top: var(--s-5); border-top: 1px solid var(--line-strong); }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--gold-line); font: 500 var(--step--1)/1 var(--mono); color: var(--gold-strong); margin-bottom: var(--s-2); }
.steps p { margin: 0; color: var(--muted); }
.download-cta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-4) var(--s-5); margin-top: var(--s-3); }
.download-note { margin-top: var(--s-8); max-width: 760px; padding: var(--s-5); border-left: 2px solid var(--gold-line); background: linear-gradient(90deg, rgba(201, 164, 100, .06), transparent 70%); border-radius: 0 var(--radius) var(--radius) 0; display: grid; gap: var(--s-2); }
.download-note p { color: var(--muted); margin: 0; }

/* ---------- Empty / loading / errors ---------- */
.empty { padding: var(--s-7) 0; color: var(--muted); display: grid; gap: var(--s-2); justify-items: start; }
.empty strong { color: var(--text); font-weight: 500; }
.skeleton { background: linear-gradient(90deg, var(--surface) 0%, var(--surface-2) 50%, var(--surface) 100%); background-size: 200% 100%; animation: shimmer 1.4s linear infinite; border-radius: var(--radius-sm); }
@keyframes shimmer { to { background-position: -200% 0; } }
.sk-line { height: 14px; margin: 16px 0; }
.notfound { padding-block: clamp(80px, 14vw, 160px); display: grid; gap: 18px; justify-items: start; }
.notfound .han { font-size: clamp(4rem, 12vw, 7rem); line-height: 1; color: var(--surface-2); }

/* ---------- Search overlay ---------- */
.search-layer { position: fixed; inset: 0; z-index: 60; background: rgba(5, 4, 3, .7); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); display: grid; justify-items: center; align-items: start; padding: calc(env(safe-area-inset-top, 0px) + 12vh) 16px 16px; animation: fade-in .15s ease-out both; }
.search-panel { width: min(600px, 100%); background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--radius); box-shadow: 0 30px 80px rgba(0, 0, 0, .6); overflow: hidden; animation: pop-in .18s var(--ease-out) both; }
@keyframes pop-in { from { opacity: 0; transform: scale(.97) translateY(-6px); } }
.search-field { display: flex; align-items: center; gap: var(--s-3); padding: 0 16px; border-bottom: 1px solid var(--line); color: var(--muted); }
.search-field input { flex: 1; min-width: 0; height: 58px; background: none; border: 0; outline: none; color: var(--text); font: 400 var(--step-1) var(--ui); }
.search-field input::-webkit-search-cancel-button { display: none; }
.search-results { max-height: 50vh; overflow-y: auto; padding-bottom: 6px; }
.search-results .grp { padding: 14px 16px 6px; font-size: var(--step--2); letter-spacing: .14em; text-transform: uppercase; color: var(--faint); }
.search-results a { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); padding: 10px 16px; }
.search-results a .who { display: flex; align-items: center; gap: 10px; min-width: 0; }
.search-results a[aria-selected="true"] { background: var(--surface-2); }
@media (hover: hover) and (pointer: fine) { .search-results a:hover { background: var(--surface-2); } }
.search-results .lv { font: 400 var(--step--1) var(--mono); color: var(--faint); }
.search-results .none { padding: 18px 16px; color: var(--faint); margin: 0; }

/* ---------- Toast ---------- */
.toast { position: fixed; left: 50%; bottom: calc(env(safe-area-inset-bottom, 0px) + 24px); transform: translateX(-50%); z-index: 70; background: var(--surface-2); border: 1px solid var(--line-strong); padding: 12px 18px; font-size: var(--step--1); border-radius: var(--radius); box-shadow: 0 16px 40px rgba(0, 0, 0, .5); max-width: calc(100% - 32px); animation: toast-in .25s var(--ease-out) both; }
@keyframes toast-in { from { opacity: 0; transform: translate(-50%, 12px); } }

/* ---------- Footer ---------- */
.foot { border-top: 1px solid var(--line); margin-top: auto; background: var(--bg-2); }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); gap: var(--s-6); padding-block: var(--s-8) var(--s-7); }
.foot-brand { display: grid; gap: var(--s-4); align-content: start; max-width: 340px; }
.foot-brand img { height: 52px; width: auto; }
.foot-brand p { margin: 0; color: var(--muted); font-size: var(--step--1); }
.foot-col { display: grid; gap: 10px; align-content: start; font-size: var(--step--1); }
.foot-col h2 { font: 500 var(--step--2)/1 var(--ui); letter-spacing: .14em; text-transform: uppercase; color: var(--faint); margin-bottom: 6px; }
.foot-col a { color: var(--muted); justify-self: start; transition: color .15s; }
@media (hover: hover) and (pointer: fine) { .foot-col a:hover { color: var(--text); } }
.foot-meta { position: relative; display: flex; justify-content: space-between; align-items: center; gap: var(--s-4); padding-block: var(--s-5) calc(var(--s-5) + env(safe-area-inset-bottom, 0px)); color: var(--faint); font-size: var(--step--1); }
.foot-meta::before { content: ""; position: absolute; top: 0; left: var(--gutter); right: var(--gutter); height: 1px; background: var(--line); }
.foot-meta .han { color: var(--gold); opacity: .7; }

/* ---------- Guild crests (/account/crest) ---------- */
.crest-list { display: grid; gap: var(--s-5); padding-top: var(--s-3); }
.crest-card { min-width: 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); padding: var(--s-5); display: grid; gap: 20px; }
.crest-card header { display: flex; justify-content: space-between; align-items: baseline; gap: var(--s-3); flex-wrap: wrap; }
.crest-card header > * { min-width: 0; overflow-wrap: anywhere; }
.crest-card h2 { margin: 0; font: 500 var(--step-1)/1.2 var(--ui); }
.crest-row { display: flex; gap: 28px; align-items: flex-start; flex-wrap: wrap; }
.crest-frame { display: grid; gap: 8px; justify-items: center; font-size: .75rem; color: var(--muted); }
.crest-img { width: 96px; height: 96px; image-rendering: pixelated; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: #000; display: grid; place-items: center; overflow: hidden; }
.crest-img img { width: 96px; height: 96px; image-rendering: pixelated; display: block; }
.crest-img .none { color: var(--faint); font-size: .75rem; text-align: center; padding: 8px; }
.crest-actions { display: grid; gap: var(--s-3); min-width: 0; flex: 1 1 260px; align-content: start; }
.crest-actions .buttons { display: flex; gap: 10px; flex-wrap: wrap; }
.crest-help { color: var(--muted); margin: 0; max-width: 68ch; }

/* ---------- Community contests ---------- */
.cm-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(340px, 100%), 1fr)); gap: var(--s-4); padding-top: var(--s-3); }
.cm-card { display: grid; gap: 10px; align-content: start; border: 1px solid var(--line); border-radius: var(--radius); padding: var(--s-5); background: var(--surface); transition: border-color .15s, transform .15s var(--ease-out); animation: enter .4s var(--ease-out) both; }
.cm-card strong { font: 400 var(--step-2)/1.2 var(--display); }
@media (hover: hover) and (pointer: fine) { .cm-card:hover { border-color: var(--gold-line); } }
.cm-card:active { transform: scale(.985); }
.cm-kind { font: 500 var(--step--2)/1 var(--ui); color: var(--gold); text-transform: uppercase; letter-spacing: .14em; }
.cm-meta { font-size: var(--step--1); color: var(--muted); display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-top: 4px; }
.cm-badge { display: inline-flex; align-items: center; height: 22px; border: 1px solid var(--gold-line); border-radius: 999px; padding: 0 10px; font-size: .75rem; color: var(--gold-strong); }
.cm-badge[data-status="finished"], .cm-badge[data-status="ended"] { color: var(--muted); border-color: var(--line-strong); }
.cm-section { border-top: 1px solid var(--line); padding-block: var(--s-6); display: grid; gap: var(--s-4); }
.cm-section h2 { margin: 0; font: 400 var(--step-2)/1.2 var(--display); }
.cm-entries, .cm-questions { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-3); }
.cm-entry { display: flex; justify-content: space-between; gap: var(--s-4); flex-wrap: wrap; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; background: var(--surface); }
.cm-entry p { margin: 4px 0 0; }
.cm-vote { display: flex; align-items: center; gap: var(--s-3); }
.cm-question { border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; display: grid; gap: var(--s-3); background: var(--surface); }
.cm-choices { display: flex; gap: var(--s-2); flex-wrap: wrap; }

/* ---------- Rankings ---------- */
.rk-hero { position: relative; isolation: isolate; overflow: hidden; padding-block: clamp(48px, 7vw, 88px) clamp(32px, 4vw, 44px); }
.rk-hero::before { content: ""; position: absolute; inset: 0; z-index: -2; background: radial-gradient(55% 120% at 92% 0%, rgba(201, 164, 100, .12), transparent 65%); }
.rk-hero-art { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.rk-hero-art .han { position: absolute; right: clamp(-40px, 2vw, 60px); top: 50%; transform: translateY(-50%); font-size: clamp(10rem, 26vw, 22rem); line-height: 1; color: transparent; -webkit-text-stroke: 1px rgba(201, 164, 100, .08); user-select: none; }
.rk-hero-inner { display: grid; gap: var(--s-4); position: relative; }
.rk-hero .lede { max-width: 54ch; }
.rk-summary { display: flex; flex-wrap: wrap; gap: var(--s-3) 0; margin: var(--s-4) 0 0; }
.rk-sum { min-width: 0; padding: 2px 32px 2px 0; }
.rk-sum + .rk-sum { padding-left: 32px; border-left: 1px solid var(--line-strong); }
.rk-sum dt { font-size: var(--step--2); letter-spacing: .14em; text-transform: uppercase; color: var(--faint); }
.rk-sum dd { margin: 6px 0 0; font: 500 var(--step-2)/1.2 var(--mono); font-variant-numeric: tabular-nums; white-space: nowrap; }

.rk-nav { position: sticky; top: calc(env(safe-area-inset-top, 0px) + var(--header)); z-index: 20; background: rgba(12, 11, 9, .9); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-block: 1px solid var(--line); }
.rk-nav .shell { display: grid; gap: 6px; padding-block: 10px; min-width: 0; }
.rk-nav .scroller { padding: 2px; min-width: 0; }
.ic { width: 18px; height: 18px; flex: none; }
.rk-group { display: inline-flex; align-items: center; gap: 8px; flex: none; height: 38px; padding: 0 16px 0 13px; border-radius: 999px; border: 1px solid transparent; color: var(--muted); font-size: .9375rem; font-weight: 500; white-space: nowrap; }
@media (hover: hover) and (pointer: fine) { .rk-group:hover { color: var(--text); background: rgba(255, 255, 255, .045); } }
.rk-group[aria-current] { color: var(--gold-strong); background: var(--gold-wash); border-color: var(--gold-line); }
.rk-pill { display: inline-flex; align-items: center; gap: 7px; flex: none; height: 32px; padding: 0 13px 0 10px; border-radius: 999px; border: 1px solid transparent; color: var(--faint); font-size: var(--step--1); font-weight: 500; white-space: nowrap; }
.rk-pill .ic { width: 15px; height: 15px; }
@media (hover: hover) and (pointer: fine) { .rk-pill:hover { color: var(--text); } }
.rk-pill[aria-current] { color: var(--text); border-color: var(--line-strong); background: var(--surface-2); }
.rk-group:focus-visible, .rk-pill:focus-visible { outline-offset: 0; }

.rk { padding-bottom: var(--section); }
.rk-stage { padding-block: var(--s-6) 0; min-height: 70vh; }
.rk-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px 24px; flex-wrap: wrap; margin-bottom: var(--s-3); }
.rk-title { display: flex; align-items: center; gap: var(--s-4); min-width: 0; }
.rk-title > div { display: grid; gap: 8px; min-width: 0; }
.rk-title-ic { flex: none; width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; color: var(--gold-strong); border: 1px solid var(--gold-line); background: var(--gold-wash); }
.rk-title-ic .ic { width: 22px; height: 22px; }
.rk-controls { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.season-pick { display: inline-flex; align-items: center; gap: 8px; font-size: var(--step--1); color: var(--muted); }
.season-pick select.input { height: 38px; border-radius: 999px; max-width: 100%; }
.rk-caption { display: flex; gap: 10px; align-items: flex-start; margin: 0 0 var(--s-5); max-width: 80ch; color: var(--muted); font-size: var(--step--1); line-height: 1.6; }
.rk-caption .ic { width: 16px; height: 16px; margin-top: 3px; color: var(--faint); }
.rk-period { display: grid; gap: 10px; margin: 0 0 var(--s-5); padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.rk-period-top { display: flex; align-items: baseline; justify-content: space-between; gap: 6px 14px; flex-wrap: wrap; }
.rk-period-left b { font-family: var(--mono); color: var(--gold-strong); font-size: var(--step-1); }
.rk-meter { height: 4px; border-radius: 99px; background: var(--surface-2); overflow: hidden; }
.rk-meter i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #8a6c3a, var(--gold-strong)); transform-origin: left; animation: rk-grow .8s var(--ease-out) both; }
.rk-period p { margin: 0; color: var(--muted); font-size: var(--step--1); }
.rk-body { min-height: 320px; }
@keyframes rk-grow { from { transform: scaleX(0); } }
@keyframes rk-in { from { opacity: 0; transform: translateY(8px); } }
@keyframes pod-in { from { opacity: 0; transform: translateY(16px) scale(.98); } }

/* emblems and chips */
.emb { --e1: #2a251d; --e2: #14120f; --e3: #8a8070; --e4: #d6cdbd; position: relative; flex: none; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; background: radial-gradient(circle at 30% 22%, var(--e1), var(--e2)); border: 1px solid color-mix(in srgb, var(--e3) 70%, transparent); color: var(--e4); }
.emb b { font: 400 1.0625rem/1 var(--display); }
.emb i { position: absolute; right: -4px; bottom: -4px; width: 18px; height: 18px; display: grid; place-items: center; font: 600 .5625rem/1 var(--han); font-style: normal; border-radius: 50%; background: var(--bg); border: 1px solid var(--e3); color: var(--e3); }
.emb u { text-decoration: none; }
.emb-ch { --e1: #3e2f19; --e2: #1b140b; --e3: #c9a464; --e4: #f2dcae; }
.emb-eu { --e1: #1f2c36; --e2: #0f151a; --e3: #8fb1c9; --e4: #d6e8f4; }
.emb-guild { --e1: #3d2018; --e2: #1b0e0a; --e3: #c9684f; --e4: #f4cfc4; }
.emb-on { position: absolute; left: -2px; top: -2px; width: 11px; height: 11px; border-radius: 50%; background: var(--online); border: 2px solid var(--bg); }
.emb-sm { width: 28px; height: 28px; }
.emb-sm b { font-size: .8125rem; }
.emb-sm i { display: none; }
.emb-lg { width: 76px; height: 76px; }
.emb-lg b { font-size: 1.875rem; }
.emb-lg i { width: 24px; height: 24px; font-size: .75rem; right: -2px; bottom: -2px; }
.emb-lg .emb-on { width: 15px; height: 15px; }
.chip { display: inline-flex; align-items: center; height: 20px; padding: 0 8px; border-radius: 99px; border: 1px solid var(--line-strong); color: var(--muted); font-size: .6875rem; font-weight: 500; letter-spacing: .02em; white-space: nowrap; }
.chip-ch { color: var(--gold-strong); border-color: var(--gold-line); }
.chip-eu { color: #a9c6da; border-color: rgba(143, 177, 201, .34); }
.chip-tier { color: var(--gold-strong); border-color: var(--gold-line); }
.chip-seal { color: #f0b9aa; border-color: rgba(201, 104, 79, .45); background: rgba(168, 64, 43, .14); }
.chip-on { color: var(--online); border-color: rgba(147, 183, 126, .38); }
.chip-you { color: #17120a; background: var(--gold); border-color: var(--gold); font-weight: 600; }
.rk-guild { display: inline-flex; align-items: center; gap: 6px; font-size: .75rem; color: var(--muted); min-width: 0; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rk-guild::before { content: ""; flex: none; width: 5px; height: 5px; background: var(--seal); transform: rotate(45deg); }
@media (hover: hover) and (pointer: fine) { .rk-guild:hover { color: var(--gold-strong); } }
.rk-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; min-width: 0; }
.rk-meta:empty { display: none; }

/* names: the link stretches over its whole row or card, other links sit above it */
.rk-name { color: var(--text); font-weight: 600; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rk-name::after { content: ""; position: absolute; inset: 0; z-index: 0; border-radius: inherit; }
.rk-name:focus-visible { outline: none; }
.rk-name:focus-visible::after { outline: 2px solid var(--gold-strong); outline-offset: -2px; border-radius: var(--radius); }
.rk-row a:not(.rk-name), .pod a:not(.rk-name), .rk-card a:not(.rk-name) { position: relative; z-index: 1; }

/* podium */
.podium { list-style: none; margin: var(--s-2) 0 var(--s-6); padding: 0; display: flex; align-items: flex-end; justify-content: center; gap: var(--s-4); }
.pod { --tone: var(--gold-strong); position: relative; isolation: isolate; flex: 1 1 0; max-width: 340px; min-width: 0; display: grid; justify-items: center; gap: 10px; padding: 28px 16px 0; text-align: center; overflow: hidden; border: 1px solid color-mix(in srgb, var(--tone) 22%, transparent); border-bottom: 0; border-radius: var(--radius-lg) var(--radius-lg) 0 0; background: radial-gradient(90% 60% at 50% 0%, color-mix(in srgb, var(--tone) 12%, transparent), transparent 70%), var(--surface); transition: border-color .2s; animation: pod-in .5s var(--ease-out) both; animation-delay: calc(var(--i) * 80ms); }
.pod:focus-within { border-color: color-mix(in srgb, var(--tone) 55%, transparent); }
@media (hover: hover) and (pointer: fine) { .pod:hover { border-color: color-mix(in srgb, var(--tone) 55%, transparent); } }
.pod-gold { --tone: #e4c88f; order: 2; }
.pod-silver { --tone: var(--silver); order: 1; }
.pod-bronze { --tone: var(--bronze); order: 3; }
.pod .emb { --e3: var(--tone); }
.pod-gold .emb-lg { width: 88px; height: 88px; }
.pod-gold .emb-lg b { font-size: 2.25rem; }
.pod-crown { position: absolute; top: 8px; left: 50%; transform: translateX(-50%); color: var(--tone); display: none; }
.pod-gold .pod-crown { display: block; }
.pod-crown .ic { width: 20px; height: 20px; }
.pod-name { position: static; font: 400 1.375rem/1.15 var(--display); max-width: 100%; }
.pod .rk-meta { justify-content: center; }
.pod .rk-val { justify-items: center; text-align: center; }
.pod .rk-val b { font-size: var(--step-3); color: var(--tone); }
.pod-step { align-self: end; display: grid; place-items: center; width: calc(100% + 32px); margin-top: 6px; font: 400 2.75rem/1 var(--display); color: color-mix(in srgb, var(--tone) 70%, transparent); background: linear-gradient(180deg, color-mix(in srgb, var(--tone) 12%, transparent), transparent); border-top: 1px solid color-mix(in srgb, var(--tone) 30%, transparent); }
.pod-gold .pod-step { height: 76px; }
.pod-silver .pod-step { height: 56px; }
.pod-bronze .pod-step { height: 40px; font-size: 2.125rem; }
.pod.is-mine { box-shadow: 0 0 0 2px var(--gold); }
.podium-sk { margin: var(--s-2) 0 var(--s-6); display: flex; align-items: flex-end; justify-content: center; gap: var(--s-4); }
.pod-sk { flex: 1 1 0; max-width: 340px; border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
.pod-sk-1 { height: 340px; order: 2; }
.pod-sk-2 { height: 300px; order: 1; }
.pod-sk-3 { height: 284px; order: 3; }

/* list rows: hairlines, no boxes */
.rk-list { list-style: none; margin: 0; padding: 0; display: grid; border-top: 1px solid var(--line); }
.rk-row { position: relative; isolation: isolate; display: grid; grid-template-columns: 40px minmax(0, 1fr) auto minmax(96px, auto); align-items: center; gap: 6px 20px; padding: 14px 16px 14px 8px; border-bottom: 1px solid var(--line); border-radius: var(--radius-sm); transition: background-color .15s; animation: rk-in .4s var(--ease-out) both; animation-delay: calc(var(--i) * 18ms); }
.rk-row::before { content: ""; position: absolute; left: 8px; right: 8px; bottom: -1px; height: 1px; z-index: 0; transform-origin: left; transform: scaleX(var(--r, 0)); background: linear-gradient(90deg, rgba(201, 164, 100, .55), rgba(201, 164, 100, .15)); animation: rk-grow .8s var(--ease-out) both; animation-delay: calc(var(--i) * 18ms + 100ms); }
.rk-row:focus-within { background: rgba(255, 255, 255, .03); }
@media (hover: hover) and (pointer: fine) { .rk-row:hover { background: rgba(255, 255, 255, .03); } .rk-row:hover .rk-name { color: var(--gold-strong); } }
.rk-row.is-mine, .rk-card.is-mine { box-shadow: inset 0 0 0 1px var(--gold); }
.rk-rank { flex: none; display: grid; place-items: center; width: 40px; height: 32px; color: var(--faint); font: 500 var(--step--1)/1 var(--mono); font-variant-numeric: tabular-nums; }
.is-top > .rk-rank, .is-top .rk-card-top > .rk-rank { color: var(--gold-strong); }
.rk-who { display: flex; align-items: center; gap: var(--s-3); min-width: 0; }
.rk-id { display: grid; gap: 4px; min-width: 0; }
.rk-row .rk-stats { grid-column: 3; display: flex; gap: 24px; margin: 0; justify-content: flex-end; }
.rk-stats > div { display: grid; gap: 3px; justify-items: end; min-width: 52px; }
.rk-stats dt { font-size: .625rem; letter-spacing: .12em; text-transform: uppercase; color: var(--faint); white-space: nowrap; }
.rk-stats dd { margin: 0; font: 500 var(--step--1)/1.2 var(--mono); font-variant-numeric: tabular-nums; white-space: nowrap; color: var(--muted); }
.rk-stats dd a { color: var(--gold); }
.rk-val { display: grid; justify-items: end; gap: 3px; text-align: right; min-width: 0; }
.rk-row .rk-val { grid-column: 4; }
.rk-val b { font: 500 var(--step-2)/1.1 var(--mono); font-variant-numeric: tabular-nums; color: var(--gold-strong); }
.rk-val small { font-size: .625rem; letter-spacing: .12em; text-transform: uppercase; color: var(--faint); white-space: nowrap; }
.rk-sk-row { height: 64px; border-radius: var(--radius-sm); margin-top: 6px; }
@media (max-width: 720px) {
  .rk-stats dd { white-space: normal; overflow-wrap: anywhere; }
  .rk-stats > div { max-width: 100%; }
  .rk-row .rk-name, .pod-name { white-space: normal; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
}

/* card boards: fortresses, tournaments, hall of fame, contests, previous winners */
.rk-cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr)); gap: var(--s-4); }
.rk-card { position: relative; display: grid; gap: var(--s-4); align-content: start; min-width: 0; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); transition: border-color .2s; animation: rk-in .4s var(--ease-out) both; animation-delay: calc(var(--i) * 35ms); }
.rk-card:focus-within { border-color: var(--gold-line); }
@media (hover: hover) and (pointer: fine) { .rk-card:hover { border-color: var(--gold-line); } }
.rk-card-top { display: flex; align-items: center; gap: var(--s-3); min-width: 0; }
.rk-card-top .rk-rank { width: 32px; }
.rk-card-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; min-width: 0; }
.rk-card-head .ic { color: var(--gold); }
.rk-card-head time { margin-left: auto; color: var(--muted); font: .8125rem var(--mono); }
.rk-card-foot { font-size: var(--step--1); }
.fort-count { display: flex; align-items: baseline; gap: 10px; }
.fort-count b { font: 400 3rem/1 var(--display); color: var(--gold-strong); font-variant-numeric: tabular-nums; }
.fort-count small { font-size: var(--step--2); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.fort .chip { justify-self: start; }
.rk-facts { display: grid; grid-template-columns: repeat(3, minmax(0, auto)); justify-content: space-between; gap: var(--s-3); margin: 0; padding-top: var(--s-4); border-top: 1px solid var(--line); }
.rk-facts dt { font-size: .625rem; letter-spacing: .12em; text-transform: uppercase; color: var(--faint); }
.rk-facts dd { margin: 4px 0 0; font: 500 var(--step--1)/1.3 var(--mono); overflow-wrap: anywhere; }
.rk-facts dd a { color: var(--gold); }
.who { display: inline-flex; align-items: center; gap: 8px; min-width: 0; }
.who a { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (hover: hover) and (pointer: fine) { .who a:hover { color: var(--gold-strong); } }
.who.locked { color: var(--muted); font-style: italic; }
.who.locked .ic { width: 15px; height: 15px; }
.places { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.place { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 10px; padding: 9px 12px; border-radius: var(--radius-sm); background: rgba(255, 255, 255, .025); min-width: 0; }
.place-tag { min-width: 76px; font: 600 .6875rem/1.2 var(--ui); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.place small, .place time { margin-left: auto; font-size: .75rem; }
.place time { font-family: var(--mono); }
.place-1 { background: linear-gradient(90deg, rgba(228, 200, 143, .1), rgba(255, 255, 255, .02)); }
.place-1 .place-tag { color: var(--gold-strong); }
.place-2 .place-tag { color: var(--silver); }
.place-3 .place-tag { color: var(--bronze); }
.place.is-hidden { background: transparent; border: 1px dashed var(--line-strong); }
.trophy-ic { flex: none; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: var(--gold-wash); border: 1px solid var(--gold-line); color: var(--gold-strong); }
.rk-sk-card { height: 190px; border-radius: var(--radius-lg); }

.rk-winners { margin-top: var(--s-7); }
.rk-winners h2 { font: 500 var(--step--2)/1 var(--ui); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); border: 0; padding: 0; margin: 0 0 6px; }
.rk-timeline { list-style: none; margin: 0; padding: 30px 4px 14px; gap: var(--s-4); scroll-snap-type: x proximity; }
.tl-card { position: relative; flex: 0 0 min(290px, 80%); scroll-snap-align: start; display: grid; gap: var(--s-3); align-content: start; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.tl-card::before { content: ""; position: absolute; top: -17px; left: -9px; right: -9px; height: 1px; background: var(--line-strong); }
.tl-dot { position: absolute; top: -22px; left: 18px; width: 11px; height: 11px; border-radius: 50%; background: var(--gold-strong); box-shadow: 0 0 0 4px rgba(201, 164, 100, .16); }
.tl-card time { font: .75rem var(--mono); color: var(--muted); }
.rk-timeline:focus-visible { outline-offset: 2px; border-radius: var(--radius); }

.rk-empty { display: grid; justify-items: center; gap: 10px; text-align: center; padding: clamp(40px, 7vw, 72px) 20px; border-radius: var(--radius-lg); background: radial-gradient(60% 90% at 50% 0%, rgba(201, 164, 100, .06), transparent 75%); color: var(--muted); }
.rk-empty strong { color: var(--text); font: 400 var(--step-2)/1.2 var(--display); }
.rk-empty span { max-width: 52ch; }
.rk-empty .btn { margin-top: 8px; }
.rk-illus { width: min(200px, 60%); height: auto; margin-bottom: 4px; opacity: .85; }
.rk-error strong { color: var(--danger); }

/* ---------- Player map ---------- */
.map-card { position: relative; isolation: isolate; overflow: hidden; min-height: clamp(220px, 28vw, 340px); display: grid; align-items: end; padding: clamp(24px, 4vw, 44px); border-radius: var(--radius-lg); background: radial-gradient(80% 120% at 70% 30%, rgba(201, 164, 100, .07), transparent 70%), var(--surface); }
.map-art { position: absolute; inset: 0; z-index: -1; display: grid; place-items: center; padding: 24px 24px 24px 18%; -webkit-mask-image: linear-gradient(90deg, transparent 10%, #000 50%); mask-image: linear-gradient(90deg, transparent 10%, #000 50%); }
.map-svg { display: block; width: 100%; height: 100%; max-height: 100%; }
.map-land { fill: rgba(201, 164, 100, .11); }
.map-glow { fill: var(--gold-strong); opacity: .85; filter: drop-shadow(0 0 1.5px rgba(228, 200, 143, .9)); }
.map-summary { display: grid; gap: 6px; justify-items: start; }
.map-count { font: 400 clamp(3.5rem, 8vw, 5.5rem)/1 var(--display); color: var(--gold-strong); letter-spacing: -.02em; }
.map-count-label { font-size: var(--step-1); color: var(--text); }
.map-updated { font-size: var(--step--1); color: var(--faint); }
.map-areas { padding-top: var(--s-6); }
.area-list { list-style: none; margin: 0; padding: 0; display: grid; }
.area { display: grid; grid-template-columns: minmax(140px, 1fr) minmax(0, 2fr) 56px; align-items: center; gap: var(--s-5); padding: 14px 0; border-bottom: 1px solid var(--line); }
.area-name { font-weight: 500; overflow-wrap: anywhere; }
.area-bar { height: 6px; border-radius: 6px; background: var(--surface-2); overflow: hidden; }
.area-bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #8a6c3a, var(--gold-strong)); transform-origin: left; animation: rk-grow .7s var(--ease-out) both; }
.area-n { text-align: right; color: var(--text); }
.area-muted .area-name, .area-muted .area-n { color: var(--muted); }
.area-muted .area-bar i { background: var(--line-strong); }
.map-quiet { display: grid; gap: 6px; padding: var(--s-5) 0; color: var(--muted); max-width: 60ch; }
.map-quiet strong { font: 400 var(--step-2)/1.2 var(--display); color: var(--text); }
.map-note { margin: var(--s-6) 0 0; color: var(--faint); font-size: var(--step--1); max-width: 70ch; }

/* ---------- Content database ---------- */
.db-bar { display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); flex-wrap: wrap; padding-bottom: var(--s-5); }
.db-kinds { display: inline-flex; gap: 4px; padding: 4px; border: 1px solid var(--line); border-radius: 999px; background: var(--bg-2); }
.db-kinds a { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 16px 0 13px; border-radius: 999px; color: var(--muted); font-size: .9375rem; font-weight: 500; }
@media (hover: hover) and (pointer: fine) { .db-kinds a:hover { color: var(--text); } }
.db-kinds a[aria-current="page"] { color: var(--gold-strong); background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--gold-line); }
.db-toolbar { display: flex; flex-wrap: wrap; gap: var(--s-2); flex: 1 1 520px; justify-content: flex-end; min-width: 0; }
.db-search { position: relative; flex: 1 1 240px; min-width: 0; max-width: 360px; color: var(--faint); }
.db-search .ic { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); pointer-events: none; }
.db-search .input { padding-left: 42px; height: 46px; border-radius: 999px; }
.db-toolbar select.input { flex: 0 1 200px; width: auto; min-width: 0; height: 46px; border-radius: 999px; }
.db-search .input::-webkit-search-cancel-button { filter: grayscale(1); }
.db-head { display: grid; grid-template-columns: minmax(0, 2.2fr) minmax(0, 1.4fr) 80px 120px; gap: var(--s-4); padding: 0 12px 12px; border-bottom: 1px solid var(--line); font: 500 var(--step--2)/1 var(--ui); letter-spacing: .12em; text-transform: uppercase; color: var(--faint); }
.db-head span:nth-child(3), .db-head span:nth-child(4) { text-align: right; }
.db-rows { list-style: none; margin: 0; padding: 0; }
.db-rows li { border-bottom: 1px solid var(--line); }
.db-row { display: grid; grid-template-columns: minmax(0, 2.2fr) minmax(0, 1.4fr) 80px 120px; gap: var(--s-4); align-items: center; padding: 10px 12px; border-radius: var(--radius-sm); transition: background-color .12s; }
@media (hover: hover) and (pointer: fine) { .db-row:hover { background: rgba(255, 255, 255, .03); } .db-row:hover strong { color: var(--gold-strong); } }
.db-row:active { background: rgba(255, 255, 255, .05); }
.db-name { display: flex; align-items: center; gap: 14px; min-width: 0; }
.db-ico { width: 40px; height: 40px; flex: none; display: grid; place-items: center; border: 1px solid var(--line-strong); border-radius: 10px; background: radial-gradient(circle at 30% 25%, #221d16, var(--bg)); overflow: hidden; }
.db-ico img { width: 36px; height: 36px; }
.db-ico b { font: 400 1.125rem/1 var(--display); color: var(--gold); }
.db-title { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; min-width: 0; }
.db-title strong { font-weight: 500; transition: color .15s; overflow-wrap: anywhere; }
.db-sub { display: none; flex-basis: 100%; color: var(--muted); font-size: var(--step--1); }
.db-name .seal { color: #f0b9aa; font-size: .6875rem; letter-spacing: .06em; text-transform: uppercase; border: 1px solid rgba(201, 104, 79, .45); border-radius: 99px; padding: 1px 7px; }
.db-type { color: var(--muted); font-size: var(--step--1); min-width: 0; overflow-wrap: anywhere; }
.db-lv { text-align: right; font: 500 var(--step-0)/1 var(--mono); }
.db-lv small { color: var(--faint); font-size: .75rem; margin-right: 4px; font-family: var(--ui); }
.db-extra { text-align: right; color: var(--muted); font-size: var(--step--1); }
.db-empty .empty { padding: var(--s-7) 12px; }
.db-crest { border-radius: var(--radius); }
.db-crest img { width: 48px; height: 48px; }
.db-text { margin: 0; white-space: pre-line; color: var(--text); max-width: 68ch; }
.db-tags { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--s-2); }
.db-tags li { border: 1px solid var(--line); border-radius: 999px; padding: 5px 13px; font-size: var(--step--1); color: var(--muted); }
.db-tags a { color: var(--gold); }
.db-tags a[aria-current="page"] { color: var(--text); }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .pillars { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split, .profile-grid, .account-grid { grid-template-columns: minmax(0, 1fr); }
  .auth { grid-template-columns: minmax(0, 1fr); }
  .auth-art { display: none; }
  .foot-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .foot-brand { grid-column: 1 / -1; }
  .rk-row { grid-template-columns: 40px minmax(0, 1fr) auto; }
  .rk-row .rk-stats { grid-column: 2 / -1; grid-row: 2; justify-content: flex-start; flex-wrap: wrap; gap: 4px 18px; padding-left: 52px; }
  .rk-stats > div { grid-auto-flow: column; align-items: baseline; justify-items: start; gap: 6px; min-width: 0; }
  .rk-row .rk-val { grid-column: 3; grid-row: 1; }
  .rk-rank { grid-row: 1; }
}
/* The main menu folds into a panel below this width (six entries, More, search and the account buttons no longer fit beside the logo). */
@media (max-width: 1040px) {
  .menu-btn { display: inline-grid; place-content: center; gap: 5px; width: 40px; height: 38px; background: none; border: 1px solid var(--line-strong); border-radius: 999px; cursor: pointer; }
  .menu-btn span { width: 16px; height: 1.5px; border-radius: 2px; background: var(--text); transition: transform .2s var(--ease-out); }
  .menu-btn[aria-expanded="true"] span:first-child { transform: translateY(3.25px) rotate(45deg); }
  .menu-btn[aria-expanded="true"] span:last-child { transform: translateY(-3.25px) rotate(-45deg); }
  .nav { display: none; position: absolute; left: 0; right: 0; top: calc(var(--header) + env(safe-area-inset-top, 0px)); flex-direction: column; align-items: stretch; gap: 0; padding: 8px var(--gutter) 24px; background: var(--bg); border-bottom: 1px solid var(--line); height: calc(100svh - var(--header) - env(safe-area-inset-top, 0px)); overflow-y: auto; overscroll-behavior: contain; }
  body.menu-open { overflow: hidden; }
  .more-menu a small { display: none; }
  .nav.open { display: flex; animation: fade-in .16s ease-out both; }
  .nav > a { height: auto; padding: 15px 4px; font-size: var(--step-1); border-radius: 0; border-bottom: 1px solid var(--line); }
  .nav > a[aria-current="page"]::after { display: none; }
  .more-btn { display: none; }
  .more-menu { position: static; width: auto; padding: 0; background: none; border: 0; box-shadow: none; opacity: 1; transform: none; visibility: visible; pointer-events: auto; transition: none; gap: 0; }
  .more-label { padding: 22px 4px 8px; }
  .more-menu a { padding: 12px 4px; border-radius: 0; border-bottom: 1px solid var(--line); }
  .more-menu a span { font-size: var(--step-1); color: var(--muted); }
  .more-menu a[aria-current="page"] span { color: var(--gold-strong); }
  .search-trigger span, .search-trigger kbd { display: none; }
  .search-trigger { width: 40px; justify-content: center; padding: 0; }
}
@media (max-width: 820px) {
  .profile-head { grid-template-columns: auto minmax(0, 1fr); }
  .level-block { grid-column: 1 / -1; text-align: left; display: flex; align-items: baseline; gap: var(--s-3); }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .news-item { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .hide-sm { display: none; }
  .db-head { display: none; }
  .db-row { grid-template-columns: minmax(0, 1fr) auto; }
  .db-type, .db-extra { display: none; }
  .db-sub { display: block; }
  .db-search { max-width: none; }
  .db-toolbar { justify-content: stretch; }
  .area { grid-template-columns: minmax(0, 1fr) 48px; gap: 8px var(--s-4); }
  .area-bar { grid-column: 1 / -1; grid-row: 2; }
}
@media (max-width: 720px) {
  .rk-summary { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-4); }
  .rk-sum, .rk-sum + .rk-sum { padding: 0; border: 0; }
  .rk-nav .shell { padding-block: 8px; }
  .rk-group { height: 36px; padding: 0 13px 0 11px; }
  .rk-title-ic { width: 42px; height: 42px; }
  .rk-controls, .rk-controls .segmented { width: 100%; }
  .rk-controls .segmented { border-radius: 20px; }
  .rk-controls .segmented button { flex: 1 1 auto; }
  .podium, .podium-sk { flex-direction: column; align-items: stretch; gap: var(--s-2); }
  .pod, .pod-gold, .pod-silver, .pod-bronze { flex: none; order: 0; max-width: none; grid-template-columns: auto minmax(0, 1fr) auto; justify-items: start; text-align: left; align-items: center; gap: 2px 14px; padding: 14px 16px; border-bottom: 1px solid color-mix(in srgb, var(--tone) 22%, transparent); border-radius: var(--radius); }
  .pod .emb-lg, .pod-gold .emb-lg { grid-column: 1; grid-row: 1 / span 2; width: 56px; height: 56px; margin: 0; }
  .pod .emb-lg b, .pod-gold .emb-lg b { font-size: 1.375rem; }
  .pod .emb-lg i { width: 20px; height: 20px; font-size: .6875rem; }
  .pod-crown, .pod-gold .pod-crown { display: none; }
  .pod .pod-step { position: absolute; top: 8px; left: 8px; z-index: 1; width: 22px; height: 22px; margin: 0; border-radius: 50%; border: 0; font: 600 .75rem/1 var(--mono); color: #17120a; background: var(--tone); }
  .pod-name { grid-column: 2; grid-row: 1; align-self: end; font-size: 1.25rem; max-width: 100%; }
  .pod .rk-meta { grid-column: 2; grid-row: 2; justify-content: flex-start; align-self: start; }
  .pod .rk-val { grid-column: 3; grid-row: 1 / span 2; justify-items: end; text-align: right; }
  .pod .rk-val b { font-size: var(--step-2); }
  .pod-sk { flex: none; height: 88px !important; max-width: none; border-radius: var(--radius); }
  .rk-row { padding: 12px 8px 12px 0; gap: 6px 12px; }
  .rk-row .rk-stats { padding-left: 0; }
  .place small, .place time { margin-left: 0; }
  .tl-card { flex-basis: 82%; }
  .live-strip { margin-top: -28px; }
  .ls-item { flex-basis: 100%; padding: 14px 20px; }
  .ls-item + .ls-item::before { left: 20px; right: 20px; top: 0; bottom: auto; width: auto; height: 1px; }
}
@media (max-width: 560px) {
  .top-row { gap: var(--s-3); }
  .brand img { height: 40px; }
  .pillars { grid-template-columns: minmax(0, 1fr); }
  .balances { grid-template-columns: minmax(0, 1fr); gap: var(--s-4); }
  .balances div, .balances div + div { border: 0; padding: 0; }
  .session-slot .btn-quiet { display: none; }
  .session-slot .btn { height: 38px; padding: 0 14px; }
  .hide-xs { display: none; }
  .hero-actions { width: 100%; flex-direction: column; }
  .hero-actions .btn { width: 100%; }
  .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); padding-block: var(--s-7) var(--s-6); }
  .db-kinds { width: 100%; }
  .db-kinds a { flex: 1 1 0; justify-content: center; padding: 0 10px; }
  .db-toolbar select.input { flex: 1 1 calc(50% - 4px); }
}
@media (max-width: 480px) {
  .pod .rk-val b, .rk-row .rk-val b { font-size: var(--step-0); letter-spacing: -.02em; }
  .pod .rk-val { max-width: 7.5rem; }
}
@media (max-width: 400px) {
  .rk-sum dd { font-size: var(--step-1); }
  .rk-facts { grid-template-columns: repeat(2, minmax(0, auto)); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  /* Gentler, not zero: keep a short cross-fade so state changes stay legible; drop all movement. */
  .view, .hero-inner > *, .live-strip, .cm-card, .form-error:not([hidden]), .toast, .nav.open, .search-layer { animation: fade-in .2s ease-out both !important; }
  .more-menu { transition: opacity .12s ease-out !important; transform: none !important; }
  .toast { transform: translateX(-50%); }
}
.view > .shell > .empty:first-child { padding-top: var(--s-9); }
.view > .shell:last-child > .section:last-child { padding-bottom: 0; }
@media (max-width: 720px) {
  .history-filter { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); }
  .history-filter::-webkit-scrollbar { display: none; }
  .filter-chip { flex: none; }
}

/* ---------- Launch phases (game idea W15): the bar above the header, the home countdown, the /beta page ---------- */
.phase-bar { background: var(--surface); border-bottom: 1px solid var(--line); padding-top: env(safe-area-inset-top, 0px); font-size: var(--step--1); }
.phase-row { display: flex; align-items: center; gap: var(--s-3) var(--s-4); flex-wrap: wrap; min-height: 40px; padding-block: 6px; }
.phase-badge { flex: none; display: inline-flex; align-items: center; height: 22px; padding: 0 10px; border-radius: 999px; border: 1px solid var(--gold-line); background: var(--gold-wash); color: var(--gold-strong); font: 600 .6875rem/1 var(--ui); letter-spacing: .08em; text-transform: uppercase; }
.phase-badge[data-phase="alpha"] { border-color: var(--line-strong); background: transparent; color: var(--muted); }
.phase-text { flex: 1 1 260px; color: var(--muted); min-width: 0; }
.phase-msg { color: var(--text); }
.phase-count { flex: none; color: var(--muted); }
.phase-count b { color: var(--gold-strong); font-size: var(--step-0); margin-left: 4px; }
.phase-link { flex: none; color: var(--gold); font-weight: 500; }
@media (hover: hover) and (pointer: fine) { .phase-link:hover { color: var(--gold-strong); } }
@media (max-width: 640px) { .phase-text { flex-basis: 100%; order: 3; } .phase-row { gap: 6px 12px; } }
.hero-phase { display: flex; flex-direction: column; align-items: center; gap: 2px; margin-block: var(--s-4) var(--s-5); }
.hero-phase-label { font: 500 var(--step--1)/1.4 var(--ui); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.hero-phase-time { font-size: var(--step-3); color: var(--gold-strong); letter-spacing: -.01em; }
.hero-phase-when { font-size: var(--step--1); color: var(--faint); }
.beta-now { margin-bottom: var(--s-6); }
.beta-msg { color: var(--text); margin: var(--s-2) 0 0; }
.beta-count { display: inline-flex; flex-direction: column; gap: 2px; margin-top: var(--s-4); padding: var(--s-4) var(--s-5); border: 1px solid var(--gold-line); border-radius: var(--radius); background: var(--gold-wash); }
.beta-count span { font: 500 var(--step--1)/1.4 var(--ui); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.beta-count b { font-size: var(--step-3); color: var(--gold-strong); line-height: 1.2; }
.beta-count small { color: var(--faint); }
.beta-ok { color: var(--online); }
.key-form { max-width: 460px; }
.key-form input { font-family: var(--mono); letter-spacing: .06em; text-transform: uppercase; }
.phase-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-3); }
.phase-step { padding: var(--s-4) var(--s-5); border: 1px solid var(--line); border-radius: var(--radius); }
.phase-step.now { border-color: var(--gold-line); background: var(--gold-wash); }
.phase-step p { margin: 4px 0 0; color: var(--muted); }
.launch-note { margin: 0 0 var(--s-4); padding: var(--s-3) var(--s-4); border: 1px solid var(--gold-line); border-radius: var(--radius-sm); background: var(--gold-wash); color: var(--text); font-size: var(--step--1); }
.launch-note-closed { border-color: rgba(224, 144, 124, .4); background: rgba(224, 144, 124, .08); color: var(--danger); }

/* ---------- Events calendar (game ideas F2, W2, S3): agenda and week, colour by category, time zone picker ---------- */
:root { --cat-pvp: #c9604a; --cat-boss: #9d86d1; --cat-tournament: var(--gold); --cat-bonus: var(--online); --cat-maintenance: #8a8174; --cat-event: #7fb0c9; }
.cal-tools { margin-bottom: var(--s-5); display: flex; flex-direction: column; gap: var(--s-3); }
.cal-row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-3) var(--s-4); }
.cal-zone { display: inline-flex; align-items: center; gap: var(--s-2); color: var(--muted); font-size: var(--step--1); }
.cal-zone select { max-width: 240px; }
.cal-weeknav { display: inline-flex; gap: var(--s-2); }
.cal-filters { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.cal-chip { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line-strong); background: transparent; color: var(--muted); cursor: pointer; font: 500 var(--step--1)/1 var(--ui); }
.cal-chip::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--cat, var(--muted)); }
.cal-chip[aria-pressed="false"] { opacity: .45; }
.cal-chip[aria-pressed="true"] { color: var(--text); border-color: var(--cat, var(--line-strong)); }
[data-cat="pvp"] { --cat: var(--cat-pvp); } [data-cat="boss"] { --cat: var(--cat-boss); } [data-cat="tournament"] { --cat: var(--cat-tournament); }
[data-cat="bonus"] { --cat: var(--cat-bonus); } [data-cat="maintenance"] { --cat: var(--cat-maintenance); } [data-cat="event"] { --cat: var(--cat-event); }
.cal-day { margin-bottom: var(--s-6); }
.cal-day h2 { font: 500 var(--step-1)/1.3 var(--ui); margin: 0 0 var(--s-3); display: flex; align-items: baseline; gap: var(--s-3); }
.cal-day h2 small { color: var(--faint); font-weight: 400; font-size: var(--step--1); }
.cal-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1px; border-top: 1px solid var(--line); }
.cal-entry { display: grid; grid-template-columns: 150px 1fr; gap: var(--s-4); padding: var(--s-4) 0; border-bottom: 1px solid var(--line); border-left: 3px solid var(--cat, var(--line)); padding-left: var(--s-4); }
.cal-time b { display: block; color: var(--text); font-size: var(--step-0); }
.cal-live { display: inline-block; margin-top: 4px; font: 600 .6875rem/1 var(--ui); letter-spacing: .08em; text-transform: uppercase; color: var(--online); }
.cal-body h3 { margin: 2px 0 2px; font: 500 var(--step-1)/1.35 var(--ui); }
.cal-body p { margin: 0; color: var(--muted); font-size: var(--step--1); }
.cal-cat { font: 600 .6875rem/1 var(--ui); letter-spacing: .08em; text-transform: uppercase; color: var(--cat, var(--muted)); }
.cal-shared { margin-top: 4px !important; color: var(--gold) !important; }
.cal-week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: var(--s-3); }
.cal-col { border: 1px solid var(--line); border-radius: var(--radius); padding: var(--s-3); min-height: 120px; }
.cal-col h3 { margin: 0 0 var(--s-2); font: 600 var(--step--1)/1.3 var(--ui); display: flex; justify-content: space-between; }
.cal-col h3 small { color: var(--faint); font-weight: 400; }
.cal-compact { border-top: 0; gap: 6px; }
.cal-compact .cal-entry { display: flex; flex-direction: column; gap: 0; padding: 4px 8px; border: 0; border-left: 3px solid var(--cat, var(--line)); background: var(--surface); border-radius: 0 6px 6px 0; font-size: var(--step--2); }
.cal-compact .cal-entry b { color: var(--muted); }
.cal-none { margin: 0; color: var(--faint); font-size: var(--step--2); }
.cal-feed { margin-top: var(--s-6); font-size: var(--step--1); }
@media (max-width: 900px) { .cal-week { grid-template-columns: 1fr; } .cal-col { min-height: 0; } }
@media (max-width: 600px) { .cal-entry { grid-template-columns: 1fr; gap: var(--s-2); } }
/* ---------- Art: the game's own pictures, kept quiet ----------
   Pictures sit behind or above text only under a dark gradient, never compete with the gold, and only fade in once
   (opacity). Everything below the fold is lazy-loaded with width/height set, so nothing shifts. */
@keyframes art-in { from { opacity: 0; } }

/* Page header on a picture (Events, Database, History, Download, Getting started) */
.banner { position: relative; isolation: isolate; overflow: hidden; }
.banner-img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; opacity: .78; animation: art-in .9s var(--ease-out) both; }
.banner::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(12, 11, 9, .92) 0%, rgba(12, 11, 9, .62) 42%, rgba(12, 11, 9, .12) 100%),
    linear-gradient(180deg, rgba(12, 11, 9, .55) 0%, transparent 28%, transparent 52%, var(--bg) 100%);
}

/* Rankings header */
.rk-hero-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 62%; opacity: .7; animation: art-in .9s var(--ease-out) both; }
.rk-hero-art .han { display: none; }
.rk-hero-art::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(12, 11, 9, .92) 0%, rgba(12, 11, 9, .62) 45%, rgba(12, 11, 9, .12) 100%),
    linear-gradient(180deg, rgba(12, 11, 9, .5) 0%, transparent 28%, transparent 50%, var(--bg) 100%);
}

/* Home: "Why Tianlu" points with a small picture each */
.pillar { padding-top: 0; border-top: 0; }
.pillar-img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); margin-bottom: var(--s-3); opacity: .88; transition: opacity .25s ease-out; }
@media (hover: hover) and (pointer: fine) { .pillar:hover .pillar-img { opacity: 1; } }

/* Home: the world strip */
.section-head > .section-links { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-5); }
.world { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-4); }
.world-card { position: relative; isolation: isolate; margin: 0; overflow: hidden; border-radius: var(--radius-lg); border: 1px solid var(--line); background: var(--surface); aspect-ratio: 4 / 3; }
.world-lead { grid-column: 1 / span 2; grid-row: 1 / span 2; aspect-ratio: auto; }
.world-card img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.world-card::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(12, 11, 9, .94) 0%, rgba(12, 11, 9, .7) 30%, rgba(12, 11, 9, .2) 58%, transparent 75%); }
.world-card figcaption { position: absolute; left: 0; right: 0; bottom: 0; display: grid; gap: 2px; padding: var(--s-4) var(--s-4) var(--s-3); }
.world-card strong { font: 400 var(--step-2)/1.15 var(--display); color: var(--text); }
.world-card span { font-size: var(--step--1); line-height: 1.4; color: var(--muted); text-wrap: balance; }
.world-lead figcaption { padding: var(--s-5); }
.world-lead strong { font-size: var(--step-3); }
.world-lead span { font-size: var(--step-0); }

/* Home: closing band */
.closing { position: relative; isolation: isolate; overflow: hidden; padding-block: clamp(88px, 12vw, 160px); text-align: center; }
.closing-img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: 50% 55%; opacity: .85; }
.closing::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, var(--bg) 0%, rgba(12, 11, 9, .1) 38%, rgba(12, 11, 9, .25) 75%, rgba(12, 11, 9, .7) 100%), radial-gradient(ellipse 55% 65% at 50% 52%, rgba(12, 11, 9, .6), transparent); }
.closing-inner { display: grid; justify-items: center; gap: var(--s-4); }
.closing-inner h2 { text-shadow: 0 2px 22px rgba(0, 0, 0, .85); }
.closing-inner .lede { text-align: center; text-shadow: 0 2px 18px rgba(0, 0, 0, .8); color: var(--text); opacity: .85; }
.closing-inner .hero-actions { margin-top: var(--s-3); }

/* Create-account page: the picture beside the form */
.auth-art-valley::before { background: url("/assets/art/auth-register.webp") 28% 30% / cover no-repeat; }

@media (max-width: 900px) {
  .world { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .world-lead { grid-column: 1 / -1; grid-row: auto; aspect-ratio: 4 / 3; }
}
@media (max-width: 720px) {
  .banner-img { opacity: .72; }
  .banner::after, .rk-hero-art::after { background: linear-gradient(180deg, rgba(12, 11, 9, .5) 0%, rgba(12, 11, 9, .72) 55%, var(--bg) 100%); }
  .rk-hero-art img { opacity: .62; }
}
@media (max-width: 560px) {
  .world { gap: var(--s-3); }
  .world-card:not(.world-lead) figcaption { padding: var(--s-3); }
  .world-card:not(.world-lead) strong { font-size: var(--step-1); }
  .world-card:not(.world-lead) span { display: none; }
  .world-lead figcaption { padding: var(--s-4); }
  .closing-inner .hero-actions { width: 100%; }
}

/* ---------- Official sources notice on the download page (game idea S15) ---------- */
.official-box { margin-top: var(--s-6); padding: var(--s-5); border: 1px solid var(--gold-line); border-radius: var(--radius); background: var(--gold-wash); }
.official-box h2 { margin: 0 0 var(--s-2); }
.official-box p { margin: 0 0 var(--s-2); }
.official-box .hash { display: block; overflow-wrap: anywhere; font-family: var(--mono); font-size: var(--step--1); color: var(--gold-strong); }

/* ---------- The 2026-10 redesign: level cap, facts, kings, feed, unique tracker, Discord, /info, /gallery (js/road.js) ---------- */
.hero-cap { display: inline-flex; align-items: center; gap: 12px; margin: calc(-1 * var(--s-3)) 0 0; padding: 7px 18px; border: 1px solid var(--gold-line); border-radius: 999px; background: rgba(12, 11, 9, .5); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); font: 500 var(--step--2)/1 var(--ui); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.hero-cap b { font: 400 1.5rem/1 var(--display); letter-spacing: 0; color: var(--gold-strong); }
.hero-cap span { white-space: nowrap; }
@media (max-width: 480px) { .hero-cap span:last-child { display: none; } }

/* Embers drifting up through the gate picture; still for people who ask for less motion. */
.embers { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.embers i { position: absolute; bottom: -12px; width: 6px; height: 6px; border-radius: 50%; background: radial-gradient(circle, #ffe0a0 0 25%, rgba(243, 160, 70, .5) 45%, transparent 70%); opacity: 0; animation: ember 11s linear infinite; }
.embers i:nth-child(1) { left: 6%; animation-delay: 0s; }
.embers i:nth-child(2) { left: 13%; animation-delay: 3.2s; animation-duration: 13s; }
.embers i:nth-child(3) { left: 21%; animation-delay: 6.1s; }
.embers i:nth-child(4) { left: 28%; animation-delay: 1.4s; animation-duration: 9s; }
.embers i:nth-child(5) { left: 35%; animation-delay: 8.3s; animation-duration: 12s; }
.embers i:nth-child(6) { left: 42%; animation-delay: 4.7s; }
.embers i:nth-child(7) { left: 49%; animation-delay: 9.9s; animation-duration: 14s; }
.embers i:nth-child(8) { left: 55%; animation-delay: 2.5s; animation-duration: 10s; }
.embers i:nth-child(9) { left: 61%; animation-delay: 7.2s; }
.embers i:nth-child(10) { left: 67%; animation-delay: 0.9s; animation-duration: 13s; }
.embers i:nth-child(11) { left: 73%; animation-delay: 5.5s; animation-duration: 9.5s; }
.embers i:nth-child(12) { left: 79%; animation-delay: 10.4s; }
.embers i:nth-child(13) { left: 85%; animation-delay: 3.9s; animation-duration: 12.5s; }
.embers i:nth-child(14) { left: 90%; animation-delay: 6.8s; }
.embers i:nth-child(15) { left: 95%; animation-delay: 1.9s; animation-duration: 10.5s; }
.embers i:nth-child(16) { left: 46%; animation-delay: 12s; animation-duration: 15s; }
.embers i:nth-child(3n) { width: 4px; height: 4px; }
.hero.calm .embers { display: none; }
@keyframes ember {
  0% { transform: translate(0, 0); opacity: 0; }
  10% { opacity: .9; }
  60% { opacity: .6; }
  100% { transform: translate(40px, -560px); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) { .embers { display: none; } }

/* Facts: six numbers in one row (two or three per row on small screens). */
.section-facts { padding-block: clamp(56px, 7vw, 96px) 0; }
.facts { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); margin: 0; border: 1px solid var(--line); border-radius: var(--radius-lg); background: linear-gradient(180deg, var(--surface), var(--bg-2)); overflow: hidden; }
.fact { display: grid; gap: 6px; align-content: start; padding: var(--s-5); min-width: 0; position: relative; }
.fact + .fact::before { content: ""; position: absolute; left: 0; top: 20px; bottom: 20px; width: 1px; background: var(--line); }
.fact dt { font: 500 var(--step--2)/1 var(--ui); letter-spacing: .14em; text-transform: uppercase; color: var(--faint); }
.fact dd { margin: 0; font: 400 var(--step-3)/1.1 var(--display); color: var(--gold-strong); }
.fact small { color: var(--muted); font-size: var(--step--1); line-height: 1.4; }
.fact:first-child dd { font-size: clamp(2.25rem, 4vw, 3rem); }
@media (max-width: 1040px) { .facts { grid-template-columns: repeat(3, minmax(0, 1fr)); } .fact:nth-child(4)::before { display: none; } .fact:nth-child(n+4) { border-top: 1px solid var(--line); } }
@media (max-width: 560px) { .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } .fact { padding: var(--s-4); } .fact:nth-child(4)::before { display: block; } .fact:nth-child(odd)::before { display: none; } .fact:nth-child(n+3) { border-top: 1px solid var(--line); } }

/* Kings of the road */
.kings { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: var(--s-3); padding-top: var(--s-5); }
.king { display: grid; gap: 4px; min-width: 0; padding: var(--s-4); border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); transition: border-color .15s, background-color .15s; }
@media (hover: hover) and (pointer: fine) { .king:hover { border-color: var(--gold-line); background: var(--surface-2); } }
.king .han { font-size: 1.375rem; line-height: 1; color: var(--gold); margin-bottom: var(--s-2); }
.king-label { font: 500 var(--step--2)/1 var(--ui); letter-spacing: .12em; text-transform: uppercase; color: var(--faint); }
.king strong { font: 400 var(--step-1)/1.25 var(--display); color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.king small { color: var(--muted); font-size: var(--step--1); }

/* On the road now */
.feed { list-style: none; margin: 0; padding: 0; }
.feed li { display: grid; grid-template-columns: 10px minmax(0, 1fr) auto; align-items: baseline; gap: var(--s-3); padding: 14px 0; border-bottom: 1px solid var(--line); }
.feed p { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.feed p a { color: var(--gold); }
.feed time { font-size: var(--step--1); color: var(--faint); white-space: nowrap; }
.feed-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); transform: translateY(-1px); }
.feed-dot[data-type="unique"] { background: var(--seal); }
.feed-dot[data-type="fortress"] { background: var(--online); }
.feed-dot[data-type="level"] { background: var(--silver); }

/* Unique tracker */
.tracker { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--s-5); }
.tracker li { display: grid; grid-template-columns: 34px minmax(0, 1fr); grid-template-rows: auto auto; column-gap: var(--s-3); padding: 10px 0; border-bottom: 1px solid var(--line); }
.tracker-lv { grid-row: 1 / 3; align-self: center; font-size: var(--step--1); color: var(--faint); text-align: right; }
.tracker strong { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tracker-when { font-size: var(--step--1); color: var(--muted); }
.tracker-when a { color: var(--gold); }
.tracker li.slain strong { color: var(--gold-strong); }
@media (max-width: 480px) { .tracker { grid-template-columns: minmax(0, 1fr); } }

/* Coming up */
.upcoming { list-style: none; margin: 0; padding: 0; }
.upcoming li { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: var(--s-4); padding: 14px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.upcoming-when { font: 500 var(--step--1)/1.4 var(--mono); color: var(--muted); }
.upcoming-when.now { color: var(--online); }

/* Discord band */
.discord-band { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: var(--s-5); padding: var(--s-6) var(--s-6); border: 1px solid rgba(88, 101, 242, .35); border-left: 3px solid #5865f2; border-radius: var(--radius-lg); background: var(--surface); }
.discord-mark { width: 64px; height: 64px; border-radius: 18px; display: grid; place-items: center; color: #fff; background: #5865f2; }
.discord-text { display: grid; gap: 6px; }
.discord-text p { margin: 0; color: var(--muted); }
.discord-count { display: flex; align-items: center; gap: 8px; color: var(--text) !important; }
.btn-discord { background: #5865f2; border-color: transparent; color: #fff; font-weight: 600; }
@media (hover: hover) and (pointer: fine) { .btn-discord:hover { background: #6a76f5; border-color: transparent; } }
@media (max-width: 720px) { .discord-band { grid-template-columns: minmax(0, 1fr); justify-items: start; padding: var(--s-5); } .discord-band .btn { width: 100%; } }
.discord-link { width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); transition: border-color .15s, color .15s; flex: none; }
@media (hover: hover) and (pointer: fine) { .discord-link:hover { color: #fff; border-color: rgba(88, 101, 242, .7); background: rgba(88, 101, 242, .18); } }
@media (max-width: 400px) { .discord-link { display: none; } }

/* /info */
.info-groups { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(32px, 5vw, 64px); }
.info-group h2 { padding-bottom: var(--s-4); border-bottom: 1px solid var(--line-strong); }
.info-table { margin: 0; }
.info-table > div { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: var(--s-4); padding: 14px 0; border-bottom: 1px solid var(--line); }
.info-table dt { color: var(--muted); }
.info-table dd { margin: 0; color: var(--text); }
@media (max-width: 820px) { .info-groups { grid-template-columns: minmax(0, 1fr); } }

/* /gallery */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: var(--s-4); }
.gallery-item { position: relative; isolation: isolate; padding: 0; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; background: var(--surface); cursor: zoom-in; aspect-ratio: 4 / 3; text-align: left; }
.gallery-item img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease-out); }
.gallery-item::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(12, 11, 9, .92) 0%, rgba(12, 11, 9, .35) 38%, transparent 62%); }
.gallery-item span { position: absolute; left: 0; right: 0; bottom: 0; display: grid; gap: 2px; padding: var(--s-4); }
.gallery-item strong { font: 400 var(--step-1)/1.2 var(--display); color: var(--text); }
.gallery-item small { color: var(--muted); font-size: var(--step--1); }
@media (hover: hover) and (pointer: fine) { .gallery-item:hover img { transform: scale(1.04); } .gallery-item:hover { border-color: var(--gold-line); } }
.lightbox { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 56px 16px; background: rgba(8, 7, 6, .94); animation: fade-in .2s var(--ease-out) both; }
.lightbox figure { margin: 0; display: grid; gap: var(--s-3); justify-items: center; max-width: min(1600px, 100%); }
.lightbox img { max-width: 100%; max-height: calc(100vh - 160px); max-height: calc(100svh - 160px); width: auto; height: auto; border-radius: var(--radius); }
.lightbox figcaption { font: 400 var(--step-1)/1.3 var(--display); color: var(--text); }
.lb-btn { position: absolute; width: 48px; height: 48px; display: grid; place-items: center; border: 1px solid var(--line-strong); border-radius: 50%; background: rgba(21, 19, 15, .8); color: var(--text); font-size: 1.75rem; line-height: 1; cursor: pointer; }
.lb-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 16px; top: 50%; transform: translateY(-50%); }
.lb-close { right: 16px; top: 16px; }
@media (max-width: 560px) { .lb-prev, .lb-next { top: auto; bottom: 16px; transform: none; } }
/* ---------- Languages (js/i18n.js) ---------- */
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.lang-slot { display: flex; }
.lang-pick { position: relative; display: flex; align-items: center; height: 38px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); transition: border-color .15s, color .15s; }
@media (hover: hover) and (pointer: fine) { .lang-pick:hover { border-color: var(--line-strong); color: var(--text); } }
.lang-pick svg { position: absolute; inset-inline-start: 11px; pointer-events: none; }
.lang-pick select { appearance: none; -webkit-appearance: none; height: 100%; padding-inline: 32px 12px; border: 0; border-radius: 999px; background: transparent; color: inherit; font: 500 var(--step--1)/1 var(--ui); cursor: pointer; }
.lang-pick select:focus-visible { outline: 2px solid var(--gold-strong); outline-offset: 2px; }
.lang-pick option { background: var(--surface); color: var(--text); }
@media (max-width: 560px) { .lang-pick select { width: 40px; padding-inline: 38px 0; color: transparent; } .lang-pick option { color: var(--text); } }

/* Right to left (Arabic): the layout mirrors through flex and grid; these fix the pieces placed by hand. */
[dir="rtl"] .arrow-link::after { content: "←"; }
@media (hover: hover) and (pointer: fine) { [dir="rtl"] .arrow-link:hover::after { transform: translateX(-3px); } }
[dir="rtl"] .ls-item + .ls-item::before, [dir="rtl"] .fact + .fact::before { left: auto; right: 0; }
[dir="rtl"] .discord-band { border-left-width: 1px; border-right: 3px solid #5865f2; }
[dir="rtl"] .num, [dir="rtl"] time, [dir="rtl"] [data-countdown] { direction: ltr; unicode-bidi: isolate; }
[dir="rtl"] body { font-family: "Geist", "Segoe UI", Tahoma, "Noto Sans Arabic", system-ui, sans-serif; }
[dir="rtl"] .h-display, [dir="rtl"] .h-section, [dir="rtl"] .h-sub, [dir="rtl"] .hero-tag { font-family: "Noto Naskh Arabic", "Amiri", Georgia, serif; }
/* ---------- Invite a friend: the account block and the /invite page (game idea H16; js/referrals.js) ---------- */
.ref-link { display: flex; gap: var(--s-3); align-items: stretch; flex-wrap: wrap; }
.ref-link .input { flex: 1 1 220px; min-width: 0; font-family: var(--mono); font-size: var(--step--1); text-overflow: ellipsis; }
.ref-count { margin: var(--s-4) 0 0; }
.ref-code { font-family: var(--mono); letter-spacing: .12em; color: var(--gold-strong); }
.ref-steps { list-style: none; margin: 0 0 var(--s-4); padding: 0; display: grid; gap: var(--s-4); counter-reset: ref; }
.ref-steps li { display: grid; gap: 2px; padding-left: var(--s-6); position: relative; counter-increment: ref; }
.ref-steps li::before { content: counter(ref); position: absolute; left: 0; top: 0; width: 1.5em; height: 1.5em; border-radius: 50%; border: 1px solid var(--gold-line); color: var(--gold-strong); font: 500 var(--step--1)/1.5em var(--ui); text-align: center; }
.ref-steps span { color: var(--muted); }
.ref-list { list-style: none; margin: 0; padding: 0; display: grid; }
.ref-friend { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--s-2) var(--s-4); align-items: center; padding: var(--s-3) 0; border-bottom: 1px solid var(--line); }
.ref-friend:last-child { border-bottom: 0; }
.ref-who { display: grid; }
.ref-who small { color: var(--muted); }
.ref-marks { grid-column: 1 / -1; display: flex; gap: var(--s-2); flex-wrap: wrap; }
.ref-mark { border-color: var(--gold-line); color: var(--gold-strong); }
[lang="he"] .h-display, [lang="he"] .h-section, [lang="he"] .h-sub, [lang="he"] .hero-tag { font-family: "Frank Ruhl Libre", "David", "Times New Roman", Georgia, serif; }
/* ---------- Vote for silk (/vote and the account page box; js/votes.js, Docs/gameplay-beta/vote-for-silk.md) ---------- */
.vote-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: var(--s-4); }
.vote-card { display: grid; gap: var(--s-4); align-content: space-between; min-width: 0; border: 1px solid var(--line); border-radius: var(--radius); padding: var(--s-5); background: var(--surface); animation: enter .4s var(--ease-out) both; }
.vote-head { display: grid; gap: 6px; }
.vote-head strong { font: 400 var(--step-2)/1.2 var(--display); overflow-wrap: anywhere; }
.vote-reward { color: var(--gold-strong); font-size: var(--step--1); }
.vote-reward b { font: 500 var(--step-1)/1 var(--mono); }
.vote-reward.vote-none { color: var(--faint); }
.vote-foot { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); flex-wrap: wrap; padding-top: var(--s-4); border-top: 1px solid var(--line); }
.vote-state { display: inline-flex; align-items: center; gap: 8px; font-size: var(--step--1); color: var(--muted); }
.vote-state b { color: var(--text); font-family: var(--mono); }
.vote-ready { color: var(--online); }
.vote-wait { color: var(--gold); }
.vote-note { margin: var(--s-5) 0 0; font-size: var(--step--1); }
@media (max-width: 560px) { .vote-foot .btn { width: 100%; justify-content: center; } }
.vote-page { display: grid; gap: clamp(40px, 5vw, 64px); padding-top: clamp(24px, 3vw, 40px); }
.vote-page .steps li { border-top: 0; padding-top: 0; }

/* ---------- Header and hero fit (2026-10-14): the account button stays on screen, the countdown and the buttons are in the first screen ---------- */
@media (max-width: 1440px) {
  .lang-pick select { width: 40px; padding-inline: 38px 0; color: transparent; }
  .lang-pick option { color: var(--text); }
  .search-trigger span, .search-trigger kbd { display: none; }
  .search-trigger { width: 40px; justify-content: center; padding: 0; }
  .nav > a, .more-btn { padding: 0 11px; }
  .nav > a[aria-current="page"]::after, .more-btn.current::after { left: 11px; right: 11px; }
}
.hero-inner { gap: var(--s-4); padding-block: calc(var(--header) + clamp(24px, 4.5vw, 64px)) clamp(76px, 8vw, 112px); }
.hero-logo { width: min(440px, 80vw); }
.hero-phase { margin-block: 0 var(--s-2); }
.hero-actions { margin-top: 0; }
@media (max-height: 760px) and (min-width: 721px) { .hero-logo { width: min(360px, 70vw); } .hero-tag { font-size: var(--step-1); } }
/* ---------- Alpha: "what waits on the road" instead of empty boards (js/road.js betaTeaser) ---------- */
.teaser { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(16px, 2.5vw, 32px); }
.teaser-card { display: grid; gap: var(--s-2); align-content: start; min-width: 0; }
.teaser-card img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); margin-bottom: var(--s-2); }
.teaser-card p { margin: 0; color: var(--muted); }
.teaser-count { display: grid; gap: 2px; justify-items: end; }
.teaser-count span { font: 500 var(--step--2)/1.4 var(--ui); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.teaser-count b { font-size: var(--step-3); color: var(--gold-strong); line-height: 1.1; }
[dir="rtl"] .teaser-count { justify-items: start; }
.split.split-one { grid-template-columns: minmax(0, 1fr); }
@media (max-width: 1040px) { .teaser { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .teaser { grid-template-columns: minmax(0, 1fr); } .teaser-count { justify-items: start; } }
/* ---------- /rules, /terms, /privacy (js/legal.js) ---------- */
.legal { max-width: 760px; padding-block: var(--s-7) var(--section); display: grid; gap: var(--s-6); }
.legal section { display: grid; gap: var(--s-3); }
.legal p, .legal li { color: var(--muted); line-height: 1.7; margin: 0; }
.legal ul { margin: 0; padding-inline-start: 1.2em; display: grid; gap: var(--s-2); }
.legal li::marker { color: var(--gold); }
.foot-legal { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.foot-legal a { color: var(--faint); transition: color .15s; }
@media (hover: hover) and (pointer: fine) { .foot-legal a:hover { color: var(--text); } }
/* ---------- Colour (2026-10-14): gold stays the main colour; four Silk Road colours mark categories, the way games colour item tiers ---------- */
:root {
  --red: #e0583c;      /* cinnabar: PvP, war, uniques */
  --jade: #4cc29a;     /* jade: growth, rates, hunters */
  --lapis: #5b8ff0;    /* lapis: guilds, mastery, knowledge */
  --violet: #a77cf0;   /* amethyst: thieves, rare things */
  --amber: #f0a43c;    /* amber: gold, trade */
}
[data-tone="gold"] { --tone: var(--gold-strong); }
[data-tone="red"] { --tone: var(--red); }
[data-tone="jade"] { --tone: var(--jade); }
[data-tone="lapis"] { --tone: var(--lapis); }
[data-tone="violet"] { --tone: var(--violet); }
[data-tone="amber"] { --tone: var(--amber); }

/* The hero gets a warm red and gold glow behind the logo. */
.hero-art::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse 45% 40% at 50% 34%, rgba(224, 88, 60, .16), transparent 70%); }
.hero-cap { border-color: rgba(224, 88, 60, .55); }
.hero-cap b { color: #ffcf7a; text-shadow: 0 0 18px rgba(240, 164, 60, .55); }

/* Facts: each number its own colour, with a coloured line on top. */
.fact { --tone: var(--gold-strong); }
.fact:nth-child(2) { --tone: var(--jade); }
.fact:nth-child(3) { --tone: var(--amber); }
.fact:nth-child(4) { --tone: var(--lapis); }
.fact:nth-child(5) { --tone: var(--red); }
.fact:nth-child(6) { --tone: var(--violet); }
.fact dd { color: var(--tone); }
.fact::after { content: ""; position: absolute; left: var(--s-5); top: 0; width: 28px; height: 2px; border-radius: 0 0 2px 2px; background: var(--tone); }
[dir="rtl"] .fact::after { left: auto; right: var(--s-5); }

/* Kings: the role's colour on the character and the edge. */
.king { --tone: var(--gold-strong); border-top: 2px solid var(--tone); }
.king .han { color: var(--tone); }
@media (hover: hover) and (pointer: fine) { .king:hover { border-color: var(--tone); } }

/* Unique tracker: the level badge coloured by tier. */
.tracker li[data-tier="low"] .tracker-lv { color: var(--jade); }
.tracker li[data-tier="mid"] .tracker-lv { color: var(--lapis); }
.tracker li[data-tier="high"] .tracker-lv { color: var(--red); }
.feed-dot[data-type="title"] { background: var(--violet); }
.feed-dot[data-type="achievement"] { background: var(--lapis); }

/* Beta teaser cards and "Why Tianlu" pillars: a colour each. */
.teaser-card:nth-child(1) { --tone: var(--red); }
.teaser-card:nth-child(2) { --tone: var(--amber); }
.teaser-card:nth-child(3) { --tone: var(--jade); }
.teaser-card:nth-child(4) { --tone: var(--lapis); }
.teaser-card img { border-bottom: 2px solid var(--tone); }
.teaser-card .h-card { color: var(--tone); }
.pillar:nth-child(1) .han { color: var(--red); }
.pillar:nth-child(2) .han { color: var(--lapis); }
.pillar:nth-child(3) .han { color: var(--jade); }
.pillar:nth-child(4) .han { color: var(--amber); }

/* The phase badge in the top bar: alpha red, closed beta amber, opening jade. */
.phase-badge[data-phase="alpha"] { color: #fff; background: var(--red); border-color: var(--red); }
.phase-badge[data-phase="closed_beta"] { color: #1a1206; background: var(--amber); border-color: var(--amber); }
.phase-badge[data-phase="grand_opening"] { color: #06140f; background: var(--jade); border-color: var(--jade); }
/* ---------- Header fit by measurement (app.js fitHeader): the same steps as the width rules, when the row still overflows ---------- */
.hdr-tight .lang-pick select { width: 40px; padding-inline: 38px 0; color: transparent; }
.hdr-tight .lang-pick option { color: var(--text); }
.hdr-tight .search-trigger span, .hdr-tight .search-trigger kbd { display: none; }
.hdr-tight .search-trigger { width: 40px; justify-content: center; padding: 0; }
.hdr-tight .nav > a, .hdr-tight .more-btn { padding: 0 11px; }
.hdr-tight .nav > a[aria-current="page"]::after, .hdr-tight .more-btn.current::after { left: 11px; right: 11px; }
.hdr-tight .top-row { gap: var(--s-4); }
.hdr-fold .menu-btn { display: inline-grid; place-content: center; gap: 5px; width: 40px; height: 38px; background: none; border: 1px solid var(--line-strong); border-radius: 999px; cursor: pointer; }
.hdr-fold .menu-btn span { width: 16px; height: 1.5px; border-radius: 2px; background: var(--text); transition: transform .2s var(--ease-out); }
.hdr-fold .menu-btn[aria-expanded="true"] span:first-child { transform: translateY(3.25px) rotate(45deg); }
.hdr-fold .menu-btn[aria-expanded="true"] span:last-child { transform: translateY(-3.25px) rotate(-45deg); }
.hdr-fold .nav { display: none; position: absolute; left: 0; right: 0; top: calc(var(--header) + env(safe-area-inset-top, 0px)); flex-direction: column; align-items: stretch; gap: 0; padding: 8px var(--gutter) 24px; background: var(--bg); border-bottom: 1px solid var(--line); height: calc(100svh - var(--header) - env(safe-area-inset-top, 0px)); overflow-y: auto; overscroll-behavior: contain; }
.hdr-fold .more-menu a small { display: none; }
.hdr-fold .nav.open { display: flex; animation: fade-in .16s ease-out both; }
.hdr-fold .nav > a { height: auto; padding: 15px 4px; font-size: var(--step-1); border-radius: 0; border-bottom: 1px solid var(--line); }
.hdr-fold .nav > a[aria-current="page"]::after { display: none; }
.hdr-fold .more-btn { display: none; }
.hdr-fold .more-menu { position: static; width: auto; padding: 0; background: none; border: 0; box-shadow: none; opacity: 1; transform: none; visibility: visible; pointer-events: auto; transition: none; gap: 0; }
.hdr-fold .more-label { padding: 22px 4px 8px; }
.hdr-fold .more-menu a { padding: 12px 4px; border-radius: 0; border-bottom: 1px solid var(--line); }
.hdr-fold .more-menu a span { font-size: var(--step-1); color: var(--muted); }
.hdr-fold .more-menu a[aria-current="page"] span { color: var(--gold-strong); }
