/* Karva Online page CSS: only what the kit lacks (live blocks, stat cards, rates, shots, form, rankings, events). */

/* ---- live status pill (hero) and its dot, shared with the status card */
.status-pill { display: inline-flex; align-items: center; gap: var(--s-2); height: 32px; padding: 0 var(--s-3); margin: 0 0 var(--s-4);
  border: 1px solid rgb(255 255 255 / .28); border-radius: 999px; font-size: var(--t-small); font-weight: 500; color: #fff; background: rgb(10 13 20 / .55); }
.status-pill__dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: #8f98a8; }
[data-status-state="up"] .status-pill__dot, .status-pill[data-status-state="up"] .status-pill__dot { background: #4cd08a; box-shadow: 0 0 0 0 rgb(76 208 138 / .5); animation: kv-ping 2.4s ease-out infinite; }
[data-status-state="down"] .status-pill__dot, .status-pill[data-status-state="down"] .status-pill__dot { background: #e5675d; }
@keyframes kv-ping { 0% { box-shadow: 0 0 0 0 rgb(76 208 138 / .5); } 70%, 100% { box-shadow: 0 0 0 8px rgb(76 208 138 / 0); } }
@media (prefers-reduced-motion: reduce) { .status-pill__dot { animation: none !important; } }
.hero__facts dd { color: #fff; }

/* ---- status section */
.grid.fill { align-items: stretch; }
.status-main { padding: var(--s-7); justify-content: center; gap: var(--s-3);
  background: radial-gradient(120% 90% at 85% 0%, color-mix(in oklab, var(--accent) 16%, var(--card)), var(--card) 62%); }
.card > .status-main__label { display: flex; align-items: center; gap: var(--s-2); margin: 0; font-size: var(--t-small); font-weight: 500; color: var(--muted); }
.card > .status-main__num { margin: 0; font: var(--display-weight) clamp(64px, 7vw, 104px)/1 var(--font-display); letter-spacing: var(--display-tracking-xl); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.card > .status-main__unit { margin: 0; font-size: var(--t-lead); font-weight: 500; }
.card > .status-main__note { margin: var(--s-4) 0 0; color: var(--ink); max-width: 44ch; }
.stat-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-5); }
.sc { padding: var(--s-6); justify-content: space-between; min-height: 150px; }
.card > .sc__label { margin: 0; font-size: var(--t-small); color: var(--muted); font-weight: 500; }
.card > .sc__num { margin: 0; font: var(--display-weight) clamp(28px, 2.6vw, 40px)/1.1 var(--font-display); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }

/* ---- rates */
.rate-grid { row-gap: var(--s-5); }
.rate { padding: var(--s-6) var(--s-6); gap: var(--s-1); }
.card > .rate__num { margin: 0 0 var(--s-2); font: var(--display-weight) clamp(44px, 4.6vw, 64px)/1 var(--font-display); letter-spacing: var(--display-tracking-xl);
  color: var(--accent); font-variant-numeric: tabular-nums; }
.card.rate > p:last-child { color: var(--muted); }


/* ---- register */
.reg-rules { margin: 0; padding: 0; list-style: none; }
.reg-card { padding: var(--s-7); gap: 0; }
.reg { display: grid; gap: var(--s-4); }
.reg .field label { font-size: var(--t-label); font-weight: 500; }
.reg .field input { border-radius: var(--r-sm); }
.reg .field input:focus-visible { outline: 2px solid var(--action); outline-offset: 1px; }
.reg .field input[aria-invalid="true"] { border-color: #e5675d; }
/* show/hide password: the eye sits inside the field's right edge, a 44px target; the field pads for it */
.pw { position: relative; display: block; }
.reg .field .pw input { padding-right: 52px; }
.pw__peek { position: absolute; top: 50%; right: 2px; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: calc(var(--r-sm) - 2px); background: transparent; color: var(--muted); cursor: pointer; transform: translateY(-50%); transition: color 160ms var(--kv-ease); }
.pw__peek .i { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform 160ms var(--kv-ease); }
.pw__peek:active .i { transform: scale(0.9); }
.pw__peek[aria-pressed="true"] { color: var(--ink); }
.pw__peek:focus-visible { outline: 2px solid var(--action); outline-offset: -2px; }
@media (hover: hover) and (pointer: fine) { .pw__peek:hover { color: var(--ink); } }
.pw input::-ms-reveal, .pw input::-ms-clear { display: none; } /* Edge's own eye would sit on top of ours */
/* "Keep me signed in": a whole-row 44px target */
.check { display: flex; align-items: center; gap: var(--s-3); min-height: 44px; font-size: var(--t-small); cursor: pointer; }
.check input { width: 18px; height: 18px; margin: 0; flex: none; accent-color: var(--accent); cursor: pointer; }
.check input:focus-visible { outline: 2px solid var(--action); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { .pw__peek, .pw__peek .i { transition: none; } }
.field__err { margin: 0; font-size: var(--t-small); font-weight: 400; color: #ff8d83; overflow-wrap: anywhere; }
.field__err--form { padding: var(--s-3); border: 1px solid #e5675d; border-radius: var(--r-sm); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; opacity: 0; pointer-events: none; }
.reg .btn[disabled] { opacity: .6; cursor: progress; }
.reg-done { display: grid; gap: var(--s-4); justify-items: start; }
.reg-done:focus { outline: none; }
.reg-done h3 { margin: 0; font: 500 var(--t-h3)/1.2 var(--font-text); overflow-wrap: anywhere; }
.reg-done__name { color: var(--accent); }
.reg-done p { margin: 0; }

/* ---- rankings */
.rk-tabs { margin-bottom: var(--s-5); }

/* ---- events */
.ev-list { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-5); }
.ev { display: flex; flex-direction: column; gap: var(--s-2); padding: var(--s-5); min-height: 200px; min-width: 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); }
.ev.is-live { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.ev__top { display: flex; justify-content: space-between; gap: var(--s-3); font-size: var(--t-small); color: var(--muted); }
.ev__kind { color: var(--accent); font-weight: 500; overflow-wrap: anywhere; }
.ev__name { margin: 0; font: 500 var(--t-card)/1.3 var(--font-text); overflow-wrap: anywhere; }
.ev__blurb { margin: 0; flex: 1; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.ev__count { margin: 0; font-weight: 500; font-variant-numeric: tabular-nums; }

/* ---- tablet and phone */
@media (max-width: 1023px) {
  .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .status-main { padding: var(--s-6); }
  .ev-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 639px) {
  .status-main, .reg-card { padding: var(--s-5); }
  .sc { padding: var(--s-4); min-height: 110px; }
  .rate { padding: var(--s-4); }
  .ev-list { grid-template-columns: minmax(0, 1fr); gap: var(--s-3); }
  .ev { min-height: 0; }
}

/* ---- register left column and fuller empty states */
.reg-left { display: grid; gap: var(--s-6); align-content: start; }
.reg-shot { height: 220px; }

/* ---- check fixes: tighter rows, quiet states on the left line, figures never above the h2 */
.card > .rate__num { font-size: clamp(32px, 3.1vw, 44px); }
.reg-shot { height: 200px; }
.stat-grid { gap: var(--gutter, 24px); }
@media (max-width: 1023px) { .status-main, .stat-grid { grid-column: 1 / -1; } .stat-grid { margin-top: var(--s-5); } }
@media (max-width: 639px) {
  .rate { grid-column: span 6; }
  .card > .rate__num { font-size: 30px; }
  .reg-shot, .reg-rules p { display: none; }
  .stat-grid { gap: var(--s-3); }
}

/* ======================================================================
   Account page, CTA band, motion, touch targets (2026-11-28)
   Motion rules: transform and opacity only, 150-300 ms, ease-out. Nothing scroll-triggered.
   ====================================================================== */
:root { --kv-ease: cubic-bezier(.23, 1, .32, 1); }
html { scroll-padding-top: 72px; }
img { max-width: 100%; height: auto; }

/* ---- home CTA band (replaces the old register section) */
.cta-band { display: flex; align-items: center; justify-content: space-between; gap: var(--s-6); padding: var(--s-7);
  background: radial-gradient(120% 140% at 100% 0%, color-mix(in oklab, var(--accent) 14%, var(--card)), var(--card) 60%); }
.cta-band__text { min-width: 0; max-width: 62ch; }
.cta-band h2 { margin: 0 0 var(--s-3); overflow-wrap: anywhere; }
.cta-band p { margin: 0; color: var(--muted); }
.cta-band .btn-row { flex: none; }

/* ---- account page */
.acct { padding-top: clamp(96px, 12vw, 148px); }
.acct h1 { margin: 0 0 var(--s-4); font: var(--display-weight) clamp(34px, 4.4vw, 56px)/1.05 var(--font-display); letter-spacing: var(--display-tracking-xl); overflow-wrap: anywhere; }
.acct-intro { display: grid; gap: var(--s-6); align-content: start; min-width: 0; }
.acct-intro .t-lead { margin: 0; }
.acct-card { padding: var(--s-6); gap: var(--s-5); min-width: 0; overflow: hidden; }
.acct-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-2); position: relative; }
.acct-tabs .tab { min-height: 48px; justify-content: center; text-align: center; white-space: nowrap; padding-inline: var(--s-3); }
.acct-tabs { flex-wrap: nowrap; }
.acct-tabs .tab { flex: 1 1 0; min-width: 0; }
.acct-panel { min-width: 0; }
.acct-panel[hidden] { display: none; }
.acct-note { margin: 0; padding: var(--s-3); border: 1px solid color-mix(in oklab, var(--accent) 55%, transparent); border-radius: var(--r-sm); overflow-wrap: anywhere; }
.acct-note[hidden] { display: none; }
.reg .field input { min-height: 48px; font-size: 16px; } /* 16px stops iOS zoom on focus */

/* ---- signed-in panel */
.me { display: grid; gap: var(--s-5); min-width: 0; }
.me[hidden] { display: none; }
.me:focus { outline: none; }
.me__head { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--s-4); }
.me__who { min-width: 0; }
.me__label { margin: 0 0 var(--s-1); font-size: var(--t-small); color: var(--muted); }
.me__name { margin: 0; font: 500 var(--t-h3)/1.15 var(--font-text); overflow-wrap: anywhere; color: var(--accent); }
.me__silk { margin: 0; display: grid; gap: var(--s-1); padding: var(--s-4); border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--bg); }
.me__silk dt { font-size: var(--t-small); color: var(--muted); }
.me__silk dd { margin: 0; font: var(--display-weight) clamp(32px, 6vw, 48px)/1.05 var(--font-display); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.me__h { margin: 0; font: 500 var(--t-card)/1.3 var(--font-text); }
.me__empty { margin: 0; color: var(--muted); }
.me__empty[hidden] { display: none; }
.me .btn { justify-self: start; }

/* ---- buttons: spinner state, hover lift (pointer devices only), press */
.btn--wide { width: 100%; }
.btn { transition-property: background-color, color, border-color, transform; transition-duration: 160ms; transition-timing-function: var(--kv-ease); }
@media (hover: hover) and (pointer: fine) { .btn:hover { transform: translateY(-1px); } }
.btn:active { transform: scale(.97); transition-duration: 100ms; }
.btn.is-loading { cursor: progress; }
.btn.is-loading::before { content: ""; flex: none; width: 14px; height: 14px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: kv-spin .6s linear infinite; }
.btn[disabled]:not(.is-loading) { opacity: .6; }
@keyframes kv-spin { to { transform: rotate(360deg); } }

/* ---- state transitions: errors and notes ease in, nothing jumps */
.field__err:not([hidden]), .acct-note:not([hidden]), .me:not([hidden]) { animation: kv-in 200ms var(--kv-ease) both; }
.reg .field input { transition: border-color 160ms var(--kv-ease), box-shadow 160ms var(--kv-ease); }
.reg .field input[aria-invalid="true"] { box-shadow: 0 0 0 1px #e5675d; }
@keyframes kv-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ---- hero entrance: transform and opacity, once, staggered 50 ms */
.hero__text > * { animation: kv-rise 320ms var(--kv-ease) both; }
.hero__text > :nth-child(2) { animation-delay: 40ms; }
.hero__text > :nth-child(3) { animation-delay: 90ms; }
.hero__text > :nth-child(4) { animation-delay: 140ms; }
.hero__facts { animation: kv-rise 320ms var(--kv-ease) 190ms both; }
@keyframes kv-rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ---- touch targets: 44 px minimum on every control */
.tab, .rk-tabs .tab, .btn--sm { min-height: 44px; }
.footer__col a, .closing__links .nav__logo { display: inline-flex; align-items: center; min-height: 44px; }
.nav__toggle { min-width: 44px; min-height: 44px; }
.nav__link { min-height: 44px; }

/* ---- long values never break the layout (break-ui) */
.rk__name, .ev__name, .status-main__note, .footer__lede { overflow-wrap: anywhere; }
.sc__num, .status-main__num, .rate__num { max-width: 100%; }
.rk-list, .ev-list, .chars, .stat-grid { min-width: 0; }

/* ---- responsive */
@media (max-width: 1023px) {
  .acct { padding-top: 96px; }
  .acct-intro, .acct-card { grid-column: 1 / -1 !important; }
  .cta-band { flex-direction: column; align-items: flex-start; padding: var(--s-6); }
}
@media (max-width: 639px) {
  .acct { padding-top: 88px; }
  .acct-card { padding: var(--s-4); }
  .cta-band { padding: var(--s-5); }
  .cta-band .btn-row, .cta-band .btn-row .btn { width: 100%; }
  .btn-row .btn { flex: 1 1 auto; }
  .me__head { flex-direction: column; }
  .rk-tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .rk-tabs::-webkit-scrollbar { display: none; }
  .rk-tabs .tab { flex: none; }
}

/* ---- reduced motion: nothing travels; the spinner becomes a slow pulse, state changes are instant */
@media (prefers-reduced-motion: reduce) {
  .hero__text > *, .hero__facts, .field__err:not([hidden]), .acct-note:not([hidden]), .me:not([hidden]) { animation: none; }
  .btn, .btn:hover, .btn:active { transition-duration: .01ms; transform: none; }
  .btn.is-loading::before { animation: kv-pulse 1.2s ease-in-out infinite; }
  .shot img { transition: none; }
  .shot:hover img { transform: none; }
}
@keyframes kv-pulse { 50% { opacity: .35; } }

/* ---- Turnstile: the widget's height is reserved so nothing shifts when it mounts */
.ts { min-height: 65px; width: 100%; max-width: 100%; overflow: hidden; }
.ts iframe { max-width: 100%; }

/* ---- narrow phones (320-374): the bar is logo + main button + menu button on one line */
.nav__logo { min-height: 44px; }
@media (max-width: 374px) {
  .nav__logo { font-size: 15px; gap: 5px; }
  .nav:not(.is-open) .nav__actions .btn { padding-inline: 10px; font-size: 13px; }
}
@media (max-width: 339px) { .nav__bar .nav__logo .mark { display: none; } }

/* ---- sections are as tall as their content with one padding rhythm (the kit pinned each one to N screens, which left empty gaps and let tall content run over the next section) */
main > :is(section, .section):not(.hero, .section--hero), footer.closing { height: auto; min-height: 0; padding-block: clamp(56px, 7vw, 96px); }
main > :is(section, .section):not(.hero, .section--hero) > :is(.wrap, .container), footer.closing > .wrap { height: auto; min-height: 0; }
main > section.acct.acct, main > section.docpage.docpage { padding-top: clamp(96px, 12vw, 148px); }
@media (max-width: 639px) { main > :is(section, .section):not(.hero, .section--hero), footer.closing { padding-block: var(--s-8, 48px) var(--s-7); } main > section.acct.acct { padding-top: 88px; } }

/* ---- brand icons and the Discord band */
.ico-discord { flex: none; width: 20px; height: 20px; }
.ft-icon { display: inline-flex; align-items: center; gap: var(--s-2); }
.btn .ico-discord { margin-right: 2px; }
.cta-band--discord { margin-top: var(--s-7); }
@media (max-width: 400px) { .acct-card { padding: 12px; } }

/* ---- character view (signed-in) */
.acct.is-in .acct-intro, .acct.is-in .acct-tabs { display: none; }
.acct.is-in .acct-card { grid-column: 1 / -1; }
.cv { display: grid; gap: var(--s-5); min-width: 0; }
.cv:empty { display: none; }
.cv-tabs { display: flex; gap: var(--s-2); overflow-x: auto; padding-bottom: 2px; scrollbar-width: thin; }
.cv-tabs[hidden] { display: none; }
.cv-tab { flex: none; min-height: 44px; max-width: 70vw; padding: 0 var(--s-4); border: 1px solid var(--line); border-radius: 999px; background: var(--bg); color: var(--muted); font: 500 var(--t-small)/1 var(--font-text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; cursor: pointer; transition: background-color 160ms var(--kv-ease), color 160ms var(--kv-ease), border-color 160ms var(--kv-ease), transform 160ms var(--kv-ease); }
.cv-tab[aria-selected="true"] { color: var(--accent-ink); background: var(--accent); border-color: var(--accent); }
.cv-tab:active { transform: scale(0.97); }
.cv__head { display: grid; gap: var(--s-3); min-width: 0; }
.cv__name { margin: 0; font: 500 var(--t-h3)/1.15 var(--font-text); overflow-wrap: anywhere; }
.cv__meta { margin: var(--s-2) 0 0; display: flex; flex-wrap: wrap; gap: var(--s-2); }
.chip { display: inline-flex; align-items: center; min-height: 28px; max-width: 100%; padding: 0 var(--s-3); border: 1px solid var(--line); border-radius: 999px; font-size: var(--t-small); color: var(--muted); overflow-wrap: anywhere; line-height: 1.2; }
.chip--lv { color: var(--accent-ink); background: var(--accent); border-color: var(--accent); font-variant-numeric: tabular-nums; white-space: nowrap; }
.chip--race::before { content: ""; width: 8px; height: 8px; margin-right: 6px; border-radius: 50%; background: #e5675d; flex: none; }
.chip--race.is-eu::before { background: #6aa9ff; }
.chip--btn { min-height: 44px; background: transparent; cursor: pointer; font-family: inherit; transition: background-color 160ms var(--kv-ease), color 160ms var(--kv-ease), transform 160ms var(--kv-ease); }
.chip--btn[aria-pressed="true"] { color: var(--accent-ink); background: var(--accent); border-color: var(--accent); }
.chip--btn:active { transform: scale(0.97); }
.cv__exp { display: grid; gap: var(--s-2); }
.cv__exp-label { margin: 0; font-size: var(--t-small); color: var(--muted); font-variant-numeric: tabular-nums; }
.bar { display: block; height: 8px; border-radius: 999px; background: var(--line); overflow: hidden; }
.bar--thin { height: 6px; }
.bar__fill { display: block; height: 100%; width: 100%; border-radius: inherit; background: var(--accent); transform-origin: left center; transform: scaleX(var(--p, 0)); animation: kv-fill 300ms var(--kv-ease) both; }
@keyframes kv-fill { from { transform: scaleX(0); } }
.stats { margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 130px), 1fr)); gap: var(--s-3); }
.stat { display: grid; gap: var(--s-1); padding: var(--s-3) var(--s-4); min-width: 0; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--bg); }
.stat__label { font-size: var(--t-small); color: var(--muted); }
.stat__num { margin: 0; font: var(--display-weight) 24px/1.1 var(--font-display); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.stat__short { display: none; }
.cv__sec { display: grid; gap: var(--s-3); min-width: 0; }
.cv__h { margin: 0; font: 500 var(--t-card)/1.3 var(--font-text); }
.mast { margin: 0; padding: 0; list-style: none; display: grid; gap: var(--s-2); }
.mast__row { display: grid; grid-template-columns: minmax(0, 9em) minmax(0, 1fr) 3ch; align-items: center; gap: var(--s-3); font-size: var(--t-small); }
.mast__name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mast__lv { text-align: right; color: var(--muted); font-variant-numeric: tabular-nums; }
.gear, .bag { --cell: 56px; display: grid; grid-template-columns: repeat(auto-fill, minmax(44px, var(--cell))); justify-content: start; gap: 6px; }
.gear:not(.gear--avatars, .gear--job) { grid-template-columns: repeat(6, minmax(44px, var(--cell))); }
.bag[hidden], .slot[hidden], .bag__empty[hidden], .chips[hidden] { display: none; }
.bag__top { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s-3); }
.bag__count { font-size: var(--t-small); color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.bag__empty { margin: 0; color: var(--muted); font-size: var(--t-small); }
.chips { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.slot { position: relative; display: grid; place-items: center; aspect-ratio: 1; min-width: 44px; min-height: 44px; padding: 0; border: 1px solid var(--line); border-radius: 6px; background: linear-gradient(180deg, #161b26, #0b0e14); box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.05), inset 0 -2px 6px rgb(0 0 0 / 0.55); color: inherit; cursor: pointer; transition: border-color 160ms var(--kv-ease), transform 160ms var(--kv-ease); }
.slot:active { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) { .slot:hover { border-color: var(--line-strong); } }
.slot--empty { border-style: dashed; opacity: 0.55; cursor: default; }
.slot--rare { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), 0 0 12px color-mix(in oklab, var(--accent) 45%, transparent); }
.slot__plus { position: absolute; top: 2px; left: 3px; font-size: 11px; font-weight: 600; line-height: 1; color: var(--accent); text-shadow: 0 1px 2px #000; font-variant-numeric: tabular-nums; }
.slot__count { position: absolute; right: 3px; bottom: 2px; max-width: calc(100% - 6px); font-size: 11px; font-weight: 600; line-height: 1; color: #fff; text-shadow: 0 1px 2px #000; font-variant-numeric: tabular-nums; overflow: hidden; }
.slot__name { position: absolute; inset: auto 2px 2px; font-size: 9px; line-height: 1; color: var(--muted); text-align: center; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.blues { position: absolute; left: 3px; bottom: 3px; display: flex; gap: 2px; }
.blues i { width: 5px; height: 5px; border-radius: 50%; background: #4aa3ff; }
.ic { display: grid; place-items: center; width: 100%; height: 100%; max-width: 48px; max-height: 48px; }
.ic__img { width: 72%; height: 72%; max-width: 40px; max-height: 40px; border-radius: 3px; box-shadow: 0 0 0 1px rgb(0 0 0 / 0.6); object-fit: contain; image-rendering: auto; }
.ic--none::before { content: ""; width: 40%; height: 40%; border: 2px solid var(--line-strong); border-radius: 4px; transform: rotate(45deg); }
.ic--lg { width: 48px; height: 48px; flex: none; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--bg); }
.ic--lg .ic__img { width: 40px; height: 40px; }
.cv__foot { margin: 0; font-size: var(--t-small); color: var(--muted); overflow-wrap: anywhere; }
.sheet { width: min(420px, calc(100vw - 24px)); max-height: 80dvh; padding: var(--s-5); border: 1px solid var(--line-strong); border-radius: var(--r-lg); background: var(--card); color: inherit; overflow: auto; animation: kv-in 200ms var(--kv-ease); }
.sheet::backdrop { background: rgb(0 0 0 / 0.6); }
.sheet[open] { display: grid; gap: var(--s-4); }
.sheet__head { display: flex; align-items: center; flex-wrap: wrap; gap: var(--s-3); min-width: 0; }
.sheet__title { margin: 0; flex: 1 1 0; min-width: 0; font: 500 var(--t-card)/1.25 var(--font-text); overflow-wrap: anywhere; }
.sheet__rows { margin: 0; display: grid; gap: var(--s-2); }
.sheet__row { display: flex; justify-content: space-between; gap: var(--s-4); padding-bottom: var(--s-2); border-bottom: 1px solid var(--line); font-size: var(--t-small); }
.sheet__row dt { color: var(--muted); }
.sheet__row dd { margin: 0; text-align: right; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.sheet__none { margin: 0; color: var(--muted); }
.tag { display: inline-flex; padding: 2px var(--s-2); border-radius: 999px; font-size: var(--t-small); }
.tag--rare { color: var(--accent-ink); background: var(--accent); }
@media (max-width: 639px) {
  .stat__full { display: none; }
  .stat__short { display: inline; }
  .mast__row { grid-template-columns: minmax(0, 7em) minmax(0, 1fr) 3ch; }
  .sheet { position: fixed; inset: auto 0 0 0; width: 100%; max-width: none; margin: 0; border-radius: var(--r-lg) var(--r-lg) 0 0; border-bottom: 0; padding-bottom: calc(var(--s-5) + env(safe-area-inset-bottom)); animation: kv-sheet 220ms var(--kv-ease); }
}
@keyframes kv-sheet { from { transform: translateY(100%); } }
@media (prefers-reduced-motion: reduce) { .bar__fill, .sheet { animation: none; } .slot, .cv-tab, .chip--btn { transition: none; } }

/* ---- public character page (/character/): search, suggestions, the item tooltip, linked ranking names */
.chars .wrap { max-width: 960px; }
.chars__out { display: grid; gap: var(--s-4); margin-top: var(--s-6); }
.search { position: relative; display: grid; gap: var(--s-2); margin-top: var(--s-6); max-width: 560px; }
.search__label { font-size: var(--t-small); font-weight: 500; color: var(--muted); }
.search__row { display: flex; gap: var(--s-2); }
.search__field { flex: 1 1 auto; min-width: 0; display: flex; }
.search__field input { width: 100%; min-height: 48px; padding: 0 var(--s-4); border: 1px solid var(--line-strong); border-radius: var(--r-sm); background: var(--bg); color: var(--ink); font: 400 16px/1.4 var(--font-text); transition: border-color 160ms var(--kv-ease); }
.search__field input::-webkit-search-cancel-button { display: none; }
.search__field input:focus-visible { outline: 2px solid var(--action); outline-offset: 1px; }
.search__row .btn { flex: none; min-height: 48px; }
.results { position: absolute; z-index: 20; top: calc(100% + 6px); left: 0; right: 0; margin: 0; padding: var(--s-1); list-style: none; border: 1px solid var(--line-strong); border-radius: var(--r-sm); background: var(--card); box-shadow: 0 16px 40px rgb(0 0 0 / 0.45); transform-origin: top center; transition: opacity 150ms var(--kv-ease), transform 150ms var(--kv-ease); }
@starting-style { .results:not([hidden]) { opacity: 0; transform: scale(0.98); } }
.results[hidden] { display: none; }
.results__item { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s-3); min-height: 44px; padding: var(--s-2) var(--s-3); border-radius: calc(var(--r-sm) - 2px); color: inherit; text-decoration: none; }
.results__item[aria-selected="true"], .results__item:focus-visible { background: color-mix(in oklab, var(--ink) 9%, transparent); outline: none; }
@media (hover: hover) and (pointer: fine) { .results__item:hover { background: color-mix(in oklab, var(--ink) 9%, transparent); } }
.results__name { min-width: 0; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.results__meta { flex: none; font-size: var(--t-small); color: var(--muted); font-variant-numeric: tabular-nums; }
.results__none { padding: var(--s-3); font-size: var(--t-small); color: var(--muted); }
.cv--public .cv__h { font: 500 var(--t-card)/1.3 var(--font-text); }

.tip { position: fixed; z-index: 60; top: 0; left: 0; width: max-content; max-width: min(300px, calc(100vw - 16px)); padding: var(--s-3) var(--s-4); border: 1px solid var(--line-strong); border-radius: var(--r-sm); background: var(--card); box-shadow: 0 16px 40px rgb(0 0 0 / 0.5); pointer-events: none; font-size: var(--t-small); line-height: 1.4; transition: opacity 150ms var(--kv-ease), transform 150ms var(--kv-ease); }
@starting-style { .tip:not([hidden]) { opacity: 0; transform: scale(0.97); } }
.tip[hidden] { display: none; }
.tip.is-instant { transition: none; }
.tip__name { margin: 0 0 var(--s-2); font-weight: 600; overflow-wrap: anywhere; }
.tip__name.is-seal, .il__meta.is-seal { color: var(--accent); }
.il { margin: var(--s-2) 0 0; padding: 0; list-style: none; display: grid; gap: 2px; }
.il li { display: flex; justify-content: space-between; gap: var(--s-4); }
.il__k { min-width: 0; overflow-wrap: anywhere; }
.il__v { flex: none; font-variant-numeric: tabular-nums; }
.il--white .il__k { color: var(--muted); }
.il--blue li { color: #4aa3ff; }
.il__meta { margin: 0; color: var(--muted); }
.il__req { margin: var(--s-2) 0 0; padding-top: var(--s-2); border-top: 1px solid var(--line); color: var(--muted); }
.sheet .il { margin-top: 0; }

/* a 25px name gets a 45px tall hit area without moving the row: padding out, the same margin back in */
a.rk__name { color: inherit; text-decoration: none; text-underline-offset: 3px; border-radius: 2px; min-width: 44px; padding-block: 10px; margin-block: -10px; }
a.rk__name:focus-visible { outline: 2px solid var(--action); outline-offset: 2px; }
@media (hover: hover) and (pointer: fine) { a.rk__name:hover { text-decoration: underline; text-decoration-color: var(--accent); } }
@media (max-width: 639px) { .search__row { flex-direction: column; } .search__row .btn { width: 100%; } }
@media (prefers-reduced-motion: reduce) { .tip, .results, .search__field input { transition: none; } }

/* ---- content pages (guide, features) and the home FAQ */
.docpage { padding-top: clamp(96px, 12vw, 148px); }
.doc { max-width: 760px; min-width: 0; }
.doc h1 { margin: var(--s-4) 0; font: var(--display-weight) clamp(32px, 4.2vw, 52px)/1.08 var(--font-display); letter-spacing: var(--display-tracking-xl); overflow-wrap: anywhere; }
.doc h2 { margin: var(--s-8, 56px) 0 var(--s-3); font: 500 var(--t-h3)/1.2 var(--font-text); overflow-wrap: anywhere; }
.doc h3 { margin: 0 0 var(--s-1); font: 500 var(--t-card)/1.3 var(--font-text); }
.doc p, .doc li { overflow-wrap: anywhere; }
.doc .t-lead { margin: 0 0 var(--s-5); }
.doc a:not(.btn) { color: var(--accent); text-underline-offset: 3px; }
.doc .btn-row { margin-bottom: var(--s-4); }
.crumbs { display: flex; flex-wrap: wrap; gap: var(--s-2); font-size: var(--t-small); color: var(--muted); }
.crumbs a { color: var(--muted); display: inline-flex; align-items: center; min-height: 44px; }
.crumbs span:last-child { align-self: center; }
.steps { margin: 0; padding: 0; list-style: none; counter-reset: s; display: grid; gap: var(--s-4); }
.steps li { counter-increment: s; position: relative; padding: var(--s-4) var(--s-4) var(--s-4) 64px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--card); min-width: 0; }
.steps li::before { content: counter(s); position: absolute; left: var(--s-4); top: var(--s-4); width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font-weight: 600; }
.steps p { margin: 0; color: var(--muted); }
.kv { margin: 0; display: grid; }
.kv > div { display: grid; grid-template-columns: minmax(0, 13em) minmax(0, 1fr); gap: var(--s-4); padding: var(--s-3) 0; border-bottom: 1px solid var(--line); }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; overflow-wrap: anywhere; }
.doc__shot { margin: var(--s-5) 0; }
.doc__shot img { display: block; width: 100%; height: auto; border: 1px solid var(--line); border-radius: var(--r-lg); }
.faq { display: grid; gap: var(--s-3); max-width: 820px; }
.faq__item { border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--card); min-width: 0; }
.faq__item summary { display: flex; align-items: center; min-height: 52px; padding: var(--s-3) var(--s-4); cursor: pointer; font-weight: 500; overflow-wrap: anywhere; }
.faq__item p { margin: 0; padding: 0 var(--s-4) var(--s-4); color: var(--muted); overflow-wrap: anywhere; }
.faq__more { margin: var(--s-4) 0 0; color: var(--muted); }
.faq__more a { color: var(--accent); }
@media (max-width: 639px) { .kv > div { grid-template-columns: 1fr; gap: 2px; } .steps li { padding-left: 56px; } }

/* ======================================================================
   UI polish (2026-11-28): icons, centred buttons, stat cards, rows that never crop, ranking table, states.
   ====================================================================== */

/* ---- icons: one sprite (img/icons.svg), stroke icons take the text colour; #i-discord brings its own fill */
.i { flex: none; width: 1.15em; height: 1.15em; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.i--brand { stroke: none; }
/* icons carry meaning only (download arrow, Discord mark): 18px, a 2px stroke so their weight matches the 600 label */
.btn .i, .tab .i { width: 18px; height: 18px; stroke-width: 2; }
.btn--sm .i { width: 16px; height: 16px; }

/* ---- every button and tab: the label sits dead centre.
   Epilogue's ink sits 1.5 px above its line box (ascent .81em, descent .25em), so flex centring alone leaves the word high.
   padding-top .19em moves the content box centre down by .095em (1.5 px at 16 px); an icon takes the same amount back as a negative margin. */
.btn, .tab, .nav__link, .cv-tab, .chip--btn { padding-top: .19em; }
.btn > .i, .tab > .i, .nav__link > .i, .btn > svg, .tab > svg { margin-top: -.19em; }
.btn, .tab { display: inline-flex; align-items: center; justify-content: center; line-height: 1; text-align: center; gap: var(--s-2); }
.btn:focus-visible, .tab:focus-visible, .nav__link:focus-visible, .nav__toggle:focus-visible, .cv-tab:focus-visible, .faq__item summary:focus-visible { outline: 2px solid var(--action, #e9b44c); outline-offset: 3px; }

/* ---- status pill */
[data-status-source="snapshot"] .status-pill__dot, .status-pill[data-status-source="snapshot"] .status-pill__dot { animation: none; }

/* ---- section heading icon tile (inline in the h2) and card icon tiles */
.sh-icon { display: inline-grid; place-items: center; width: 1.05em; height: 1.05em; margin-right: .32em; vertical-align: -.14em; border-radius: .3em;
  color: var(--accent); background: color-mix(in oklab, var(--accent) 14%, transparent); border: 1px solid color-mix(in oklab, var(--accent) 32%, transparent); }
.sh-icon > .i { width: .58em; height: .58em; }

/* ---- hero stat cards: glass, a real icon, the number is the biggest thing in the card */
.hero--photo[data-calm] .hero__facts.stat-row { border: 0; padding: 0; gap: var(--gutter); }
.stat-row > .fact { grid-column: auto / span 3; position: relative; display: grid; align-content: start; gap: var(--s-3); min-width: 0; padding: var(--s-4) var(--s-5);
  border: 1px solid rgb(255 255 255 / .14); border-radius: var(--r-lg);
  background: linear-gradient(rgb(255 255 255 / .09), rgb(255 255 255 / .03)); -webkit-backdrop-filter: blur(14px) saturate(140%); backdrop-filter: blur(14px) saturate(140%);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .1), 0 14px 32px -16px rgb(0 0 0 / .7);
  transition: transform 220ms var(--kv-ease), border-color 220ms var(--kv-ease), background-color 220ms var(--kv-ease); }
.fact dt { display: flex; align-items: center; gap: var(--s-2); font-size: var(--t-small); font-weight: 500; color: rgb(233 237 243 / .8); }
.fact dd { margin: 0; display: flex; flex-wrap: wrap; align-items: baseline; column-gap: var(--s-2); row-gap: 2px; min-width: 0; }
.fact__num { font: var(--display-weight) clamp(30px, 3vw, 44px)/1 var(--font-display); letter-spacing: var(--display-tracking-xl); font-variant-numeric: tabular-nums; color: #fff; }
.fact__sub { font-size: var(--t-small); font-weight: 400; color: rgb(233 237 243 / .72); }
/* tablet and phone: the photo layer sits above, so the cards follow the buttons as a 2 x 2 grid */
@media (max-width: 1023px) {
  .hero--photo[data-calm] .hero__facts.stat-row { display: grid; position: static; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-3); margin-top: var(--s-6); }
  .stat-row > .fact { grid-column: auto; padding: var(--s-3) var(--s-4); gap: var(--s-2); }
}
@media (max-width: 374px) { .stat-row > .fact { padding: var(--s-3); } .fact dt { font-size: 13px; } }

/* ---- feature rows and screenshot rows: each picture keeps its own proportions (flex-grow = aspect ratio), so a row has one
   height, nothing is cropped, and no picture is drawn larger than its pixels (max-width = the file's native width) */
.frow, .srow { display: flex; gap: var(--gutter, 24px); align-items: flex-start; }
.frow + .frow { margin-top: var(--s-8, 56px); }
.srow + .srow { margin-top: var(--gutter, 24px); }
.feat { flex: var(--a) 1 0; min-width: 0; display: grid; align-content: start; gap: var(--s-3); padding: 0; }
.feat .panel, .shot { border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); background: var(--surface); line-height: 0; transition: transform 300ms var(--kv-ease), border-color 300ms var(--kv-ease); }
.feat .panel img, .shot img { display: block; width: 100%; height: auto; max-width: calc(var(--w) * 1px); margin-inline: auto; }
.shot { flex: var(--a) 1 0; min-width: 0; }
.shot img { transition: transform 500ms var(--kv-ease); }
.feat h3 { display: flex; align-items: center; gap: var(--s-2); margin: 0; }
.feat h3 > .i { width: 20px; height: 20px; color: var(--accent); }
.card.feat > p { margin: 0; color: var(--muted); }
@media (hover: hover) and (pointer: fine) {
  .feat:hover .panel { transform: translateY(-3px); border-color: color-mix(in oklab, var(--accent) 45%, transparent); }
  .shot:hover { border-color: color-mix(in oklab, var(--accent) 45%, transparent); }
  .shot:hover img { transform: scale(1.025); }
}
@media (max-width: 1023px) {
  .frow, .srow { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .srow > :last-child:nth-child(odd) { grid-column: 1 / -1; width: min(100%, calc(var(--w) * 1px)); justify-self: center; }
}
@media (max-width: 639px) {
  .frow, .srow { grid-template-columns: minmax(0, 1fr); gap: var(--s-6); }
  .srow { gap: var(--s-4); }
  .frow + .frow { margin-top: var(--s-6); }
}

/* ---- states: one polished card for empty, error and loading, never bare text */
.state { display: flex; align-items: center; flex-wrap: wrap; gap: var(--s-4); padding: var(--s-5) var(--s-6); border: 1px solid var(--line); border-radius: var(--r-lg);
  background: radial-gradient(120% 160% at 0% 0%, color-mix(in oklab, var(--accent) 10%, var(--card)), var(--card) 65%); }
.state__icon { flex: none; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; color: var(--accent);
  background: color-mix(in oklab, var(--accent) 14%, transparent); border: 1px solid color-mix(in oklab, var(--accent) 30%, transparent); }
.state__icon > .i { width: 24px; height: 24px; }
.state--error { border-color: color-mix(in oklab, #e5675d 45%, var(--line)); background: radial-gradient(120% 160% at 0% 0%, color-mix(in oklab, #e5675d 12%, var(--card)), var(--card) 65%); }
.state--error .state__icon { color: #ff8d83; background: color-mix(in oklab, #e5675d 16%, transparent); border-color: color-mix(in oklab, #e5675d 38%, transparent); }
.state__body { flex: 1 1 240px; min-width: 0; }
.state__title { margin: 0; font: 500 var(--t-card)/1.3 var(--font-text); }
.state__text { margin: var(--s-1) 0 0; color: var(--muted); overflow-wrap: anywhere; }
.state .btn { margin-left: auto; }
.state[hidden], .skel[hidden], .rk-table[hidden], .ev-list[hidden], .ev-note[hidden] { display: none; }
.skel { display: grid; gap: 8px; }
.skel__row { display: block; height: 52px; border-radius: var(--r-sm); background: linear-gradient(90deg, var(--card) 30%, color-mix(in oklab, var(--ink) 8%, var(--card)) 50%, var(--card) 70%); background-size: 300% 100%; animation: kv-shimmer 1.4s linear infinite; }
@keyframes kv-shimmer { from { background-position: 100% 0; } to { background-position: 0 0; } }
@media (prefers-reduced-motion: reduce) { .skel__row { animation: none; } .stat-row > .fact, .feat .panel, .shot, .shot img { transition: none; } .stat-row > .fact:hover, .feat:hover .panel, .shot:hover img { transform: none; } }

/* ---- events */
.ev-note { margin: 0 0 var(--s-4); font-size: var(--t-small); color: var(--muted); }
.ev__kind { display: inline-flex; align-items: center; gap: 6px; }
.ev__kind > .i, .ev__count > .i { width: 16px; height: 16px; }
.ev__count { display: flex; align-items: center; gap: 6px; }
.ev__count > .i { color: var(--accent); }
.ev.is-live .ev__count > .i { color: #4cd08a; }

/* ---- rankings: a table with a sticky header, zebra rows, medals for the top three; a card list on a phone */
.rk-table { max-height: min(70vh, 640px); overflow: auto; overscroll-behavior: contain; scrollbar-width: thin; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--card); }
.rk-table:focus-visible { outline: 2px solid var(--action, #e9b44c); outline-offset: 2px; }
.rk-table table { width: 100%; table-layout: fixed; border-collapse: separate; border-spacing: 0; }
.rk-table th { position: sticky; top: 0; z-index: 1; padding: var(--s-3) var(--s-4); text-align: left; font-size: var(--t-small); font-weight: 500; color: var(--muted);
  background: color-mix(in oklab, var(--card) 90%, var(--ink) 10%); border-bottom: 1px solid var(--line-strong); }
.rk-table th.rk__pos, .rk-table td.rk__pos { width: 64px; }
.rk-table th.rk__who, .rk-table td.rk__who { width: 38%; }
.rk-table th.rk__value, .rk-table td.rk__value { width: 120px; text-align: right; }
.rk td { height: 52px; padding: 0 var(--s-4); border-bottom: 1px solid var(--line); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rk:last-child td { border-bottom: 0; }
.rk-table tbody tr:nth-child(even) td { background: color-mix(in oklab, var(--ink) 3.5%, transparent); }
@media (hover: hover) and (pointer: fine) { .rk-table tbody tr:hover td { background: color-mix(in oklab, var(--accent) 9%, transparent); } }
.rk__badge { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; font-size: 13px; font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; }
.rk--1 .rk__badge { color: #2a1a00; background: linear-gradient(145deg, #fbe39a, #d99a1e); box-shadow: inset 0 0 0 1px #f5d070, 0 4px 14px -4px rgb(233 180 76 / .6); }
.rk--2 .rk__badge { color: #1b222c; background: linear-gradient(145deg, #f1f4f9, #98a3b4); box-shadow: inset 0 0 0 1px #dfe5ee, 0 4px 14px -4px rgb(200 210 225 / .4); }
.rk--3 .rk__badge { color: #2b1405; background: linear-gradient(145deg, #f0b583, #a05a2a); box-shadow: inset 0 0 0 1px #e9a672, 0 4px 14px -4px rgb(200 120 60 / .45); }
.rk__av { display: inline-grid; place-items: center; width: 30px; height: 30px; margin-right: 10px; border-radius: 50%; vertical-align: middle; font-size: 13px; font-weight: 600; color: #fff; background: hsl(var(--h, 210) 42% 36%); }
td.rk__who .rk__name { display: inline-block; max-width: calc(100% - 44px); overflow: hidden; text-overflow: ellipsis; vertical-align: middle; font-weight: 500; }
@media (max-width: 1023px) { .rk-table th.rk__who, .rk-table td.rk__who { width: 45%; } }
@media (max-width: 639px) {
  .rk-table { max-height: none; overflow: visible; border: 0; background: none; }
  .rk-table table, .rk-table tbody { display: block; }
  .rk-table thead { display: none; }
  .rk-table tr.rk { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; grid-template-areas: "pos who value" "pos meta value"; align-items: center; column-gap: var(--s-3); row-gap: 2px;
    margin-bottom: var(--s-2); padding: var(--s-3) var(--s-4); border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--card); }
  .rk-table td, .rk-table tbody tr:nth-child(even) td { display: block; height: auto; width: auto; padding: 0; border: 0; background: none; }
  .rk-table td.rk__pos { grid-area: pos; width: auto; }
  .rk-table td.rk__who { grid-area: who; width: auto; }
  .rk-table td.rk__meta { grid-area: meta; padding-left: 40px; font-size: var(--t-small); color: var(--muted); }
  .rk-table td.rk__value { grid-area: value; width: auto; }
  .rk-table td.rk__value::after { content: attr(data-label); display: block; font-size: 11px; font-weight: 400; color: var(--muted); }
  .rk--1 { border-color: color-mix(in oklab, #e9b44c 45%, var(--line)); }
}
.rk__meta { color: var(--muted); font-size: var(--t-small); }

/* ---- hero: the stat cards follow the buttons in the flow (never docked over them); the text column is wide enough for three buttons in a row */
@media (min-width: 1024px) {
  .hero--photo[data-calm] .hero__facts.stat-row { position: static; margin-top: var(--s-7); }
  .hero--photo .hero__text { width: min(100%, 720px); }
}
@media (min-width: 1024px) and (max-height: 760px) { .hero--photo h1 { font-size: clamp(44px, 7vh, 64px); } .hero--photo[data-calm] .hero__facts.stat-row { margin-top: var(--s-5); } }

/* phones: the bar's button drops its icon so the logo, button and menu button fit 320 */
@media (max-width: 639px) { .nav:not(.is-open) .nav__actions .btn > .i { display: none; } }
@media (max-width: 399px) { .acct-tabs .tab > .i { display: none; } }

/* ---- phone header: the main button is a compact pill (36px, 14px type) with a 44px tap area; under 380px it moves into the menu */
@media (max-width: 639px) {
  .nav:not(.is-open) .nav__actions .btn { position: relative; height: 36px; min-height: 36px; padding-inline: 14px; font-size: 14px; border-radius: 999px; }
  .nav:not(.is-open) .nav__actions .btn::after { content: ""; position: absolute; inset: -4px -2px; }
  /* the hero's secondary actions are real buttons, like the primary */
  .btn-row > .btn--secondary { background: color-mix(in oklab, var(--ink) 9%, transparent); border: 1px solid var(--line-strong); text-decoration: none; }
}
@media (max-width: 379px) {
  .nav:not(.is-open) .nav__actions { display: none; }
  .nav:not(.is-open) .nav__actions + .nav__toggle { margin-left: auto; }
}

/* sections are auto-height now: a .fill takes its content's height (flex-basis 0 would collapse it to nothing and let it spill over the next section) */
main > :is(section, .section) > .wrap > .fill, .group > .fill { flex: 1 1 auto; min-height: auto; }

/* a screenshot panel is exactly its image: the kit's .panel min-height (264-340px) and mesh ground drew a
   blurred band under every wide shot on a phone (the Item Mall shot is ~177px tall at 412) */
:root:root .feat > .panel.panel.panel { min-height: 0; flex: none; margin: 0; background: var(--surface); background-image: none; }
:root:root .feat > .panel.panel.panel::before { content: none; }

/* a section heading's icon is a 44px tile on its own line above the words: inline at 1.05em it sat on the first
   line and the heading wrapped round it ("[icon] Create your / free account") */
:root:root h2 > .sh-icon { display: grid; width: 44px; height: 44px; margin: 0 0 var(--s-4, 16px); border-radius: 12px; vertical-align: 0; }
:root:root h2 > .sh-icon > .i { width: 22px; height: 22px; }

/* phone rhythm: 80px between sections, not 112 */
@media (max-width: 639px) {
  /* the page-title sections (.acct, .docpage) keep their own top padding: they must clear the fixed nav */
  :root:root main > :is(section, .section):not(.hero, .section--hero, .acct, .docpage), :root:root footer.closing { padding-block: 48px 32px; }
}

/* rankings: the #1 crown stays beside the name, and the phone card never cuts the guild/level line */
td.rk__who .rk__name { max-width: calc(100% - 44px); }
.rk--1 td.rk__who .rk__name { max-width: calc(100% - 68px); }
@media (max-width: 639px) {
  :root:root .rk-table td.rk__who { display: flex; align-items: center; gap: 0; min-width: 0; }
  :root:root .rk-table td.rk__who .rk__name { max-width: none; min-width: 0; flex: 0 1 auto; }
  :root:root .rk-table td.rk__meta { padding-left: 40px; white-space: normal; overflow: visible; text-overflow: clip; }
}

/* ---- footer: brand + follow row, Play / Server / Community, and "More apps" (the same block the app sites carry) */
.kf { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(0, 1.7fr); gap: var(--s-7, 40px) var(--s-6, 32px); padding-top: var(--s-8, 56px); }
.kf__brand { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: var(--s-5) var(--s-7); padding-bottom: var(--s-7, 40px); border-bottom: 1px solid var(--line); }
.kf__id { display: grid; gap: var(--s-3); max-width: 46ch; }
.kf__id .footer__lede { margin: 0; color: var(--muted); line-height: 1.55; }
.kf__h { margin: 0 0 var(--s-3); font-size: 13px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--ink); }
.kf ul { list-style: none; margin: 0; padding: 0; }
.kf__col li a { display: inline-flex; align-items: center; min-height: 44px; color: var(--muted); text-decoration: none; transition: color .16s ease-out; }
@media (hover: hover) and (pointer: fine) { .kf__col li a:hover { color: var(--accent); } }
.kf__social { display: flex; flex-wrap: wrap; gap: 8px; }
.kf__social a { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line); background: var(--card, var(--surface)); color: var(--muted);
  transition: color .16s ease-out, border-color .16s ease-out, transform .12s ease-out; }
.kf__social svg { fill: currentColor; }
.kf__social svg .cut { fill: none; stroke: var(--card, var(--surface)); stroke-width: 2.9; }
.kf__social .i { width: 22px; height: 22px; }
@media (hover: hover) and (pointer: fine) { .kf__social a:hover { color: var(--b, var(--ink)); border-color: color-mix(in oklab, var(--b, var(--ink)) 45%, transparent); } }
.kf__social a:focus-visible { color: var(--b, var(--ink)); }
.kf__social a:active { transform: scale(.94); }
.kf__apps { display: grid; gap: 2px; }
.kf__apps a { display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 4px 0; color: inherit; text-decoration: none; transition: transform .12s ease-out; }
.kf__apps a:active { transform: scale(.98); }
.kf__apps img { flex: none; width: 40px; height: 40px; border-radius: 10px; box-shadow: 0 0 0 1px var(--line); }
.kf__apps span { display: grid; gap: 1px; min-width: 0; line-height: 1.35; }
.kf__apps b { color: var(--ink); font-weight: 600; font-size: 15px; transition: color .16s ease-out; }
.kf__apps small { color: var(--muted); font-size: 13px; }
@media (hover: hover) and (pointer: fine) { .kf__apps a:hover b { color: var(--accent); } }
.kf__base { grid-column: 1 / -1; margin: 0; padding-top: var(--s-5, 24px); border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.kf__base a { color: var(--ink); text-decoration: none; }
@media (hover: hover) and (pointer: fine) { .kf__base a:hover { color: var(--accent); } }
@media (max-width: 1023px) { .kf { grid-template-columns: repeat(3, minmax(0, 1fr)); } .kf__more { grid-column: 1 / -1; } .kf__more .kf__apps { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--s-6); } }
@media (max-width: 639px) {
  .kf { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-6, 32px) var(--s-4); padding-top: var(--s-7, 40px); }
  .kf__brand { align-items: flex-start; flex-direction: column; }
  .kf__col li a { min-height: 44px; }
  .kf__col:nth-of-type(3) { grid-column: 1 / -1; }
  .kf__more .kf__apps { grid-template-columns: minmax(0, 1fr); }
}
/* the footer logo is the nav's logo (the kit shrinks a footer mark to .8em, a dot beside the name); the follow tiles
   are one row (the kit's footer list rules stacked them) */
:root:root .kf .nav__logo { display: inline-flex; align-items: center; gap: 10px; font-size: 20px; }
:root:root .kf .nav__logo .mark { width: 28px; height: 28px; margin: 0; vertical-align: 0; font-size: 16px; }
:root:root .kf ul.kf__social { display: flex; flex-flow: row wrap; gap: 8px; }
:root:root .kf ul.kf__social > li { display: block; margin: 0; padding: 0; }
:root:root .kf .kf__brand { align-items: center; }
@media (max-width: 639px) { :root:root .kf .kf__brand { align-items: flex-start; } }
/* the Discord band is a row (words left, button right); the kit's .card column centred the words in a narrow block */
:root:root .cta-band.card { flex-direction: row; align-items: center; justify-content: space-between; text-align: left; }
:root:root .cta-band.card > .cta-band__text { flex: 1 1 auto; }
@media (max-width: 1023px) { :root:root .cta-band.card { flex-direction: column; align-items: stretch; } }

/* ---- rates as a spec sheet, not six boxed cards: hairline above each cell, the gold number leads (2026-11-28) */
:root:root .rate-grid { row-gap: 0; }
:root:root .card.rate { background: none; border: 0; border-top: 1px solid var(--line); border-radius: 0; box-shadow: none; padding: var(--s-6) var(--s-5) var(--s-7) 0; }
:root:root .card.rate h3 { margin-top: var(--s-1); }
@media (max-width: 639px) { :root:root .card.rate { padding: var(--s-5) var(--s-3) var(--s-5) 0; } }


/* ranking rows open the character */
.rk--link { cursor: pointer; }
@media (hover: hover) and (pointer: fine) { .rk--link:hover a.rk__name { text-decoration: underline; text-decoration-color: var(--accent); } }
/* job section: type chip coloured like the in-game suit */
.job__top { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2) var(--s-4); }
.job__top .cv__meta { margin: 0; }
.chip--job { font-weight: 600; }
.chip--job::before { content: ""; width: 8px; height: 8px; margin-right: 6px; border-radius: 50%; flex: none; background: var(--muted); }
.chip--job.is-hunter { color: #8fd694; border-color: color-mix(in oklab, #6fcf75 40%, var(--line)); }
.chip--job.is-hunter::before { background: #6fcf75; }
.chip--job.is-thief { color: #f19a92; border-color: color-mix(in oklab, #e5675d 40%, var(--line)); }
.chip--job.is-thief::before { background: #e5675d; }
.chip--job.is-trader { color: #f0cd7a; border-color: color-mix(in oklab, #e9b44c 40%, var(--line)); }
.chip--job.is-trader::before { background: #e9b44c; }

/* #1 crown: one inline-flex box with the name, centred on it */
.rk__id { display: inline-flex; align-items: center; gap: 6px; max-width: calc(100% - 44px); min-width: 0; vertical-align: middle; }
td.rk__who .rk__id .rk__name { max-width: none; min-width: 0; }
td.rk__who .rk__id > .i--crown { flex: none; width: 16px; height: 16px; margin: 0; color: #e9b44c; filter: drop-shadow(0 1px 4px rgb(233 180 76 / .45)); }
.search--rank { margin: 0 0 var(--s-5); }
