/* ---------- The app's own look (Nov 2026): a side menu, compact cards, dark or light ----------
   Only inside the app: static/app.js puts html.app-ui on the page and data-ui="dark" (the default) or "light", the player's pick.
   The pop-out (html.pip-ui) takes only the colour names, dark or light and the scheme, and its own rules at the end.
   The public pages (start page, guide and the rest before logging in) and the pop-out keep look.css as it is. Built after the
   big game trackers (OP.GG, Raider.IO, Wise Old Man): a menu down the side, the page's band as a banner with its town, cards
   with a small title instead of big coloured bars, more on one screen. The admin pages keep their own look (body.admin-ui).
   The colour names other stylesheets use (--f-*, --wood, --ink, Bootstrap's) are pointed at this look's own (--u-*). */
:is(html.app-ui, html.pip-ui)[data-ui="dark"] {
  --u-bg: #0d1220; --u-bg-2: #111a2c; --u-side: #090e19; --u-card: #141c2d; --u-card-2: #1a2438; --u-card-3: #213049;
  --u-line: #263450; --u-line-2: #1d283d; --u-head: #ffffff; --u-text: #dce5f2; --u-text-2: #94a5bf;
  --u-act: #ffcd2e; --u-act-hi: #ffdb5c; --u-act-ink: #1f1800; --u-link: #6cb8ff; --u-exp: #86e35f; --u-meso: #ffae58;
  --u-good: #5ad17a; --u-bad: #ff6f6f; --u-glow: #4cc3ff; --u-shadow: rgba(0, 0, 0, .35);
  color-scheme: dark;
}
:is(html.app-ui, html.pip-ui)[data-ui="light"] {
  --u-bg: #edf2f8; --u-bg-2: #e3ecf6; --u-side: #ffffff; --u-card: #ffffff; --u-card-2: #f3f7fb; --u-card-3: #e8f0f8;
  --u-line: #d5dfeb; --u-line-2: #e6edf5; --u-head: #0b1b2e; --u-text: #1b2a3b; --u-text-2: #5a6a7e;
  --u-act: #ffcd2e; --u-act-hi: #ffd84f; --u-act-ink: #231b00; --u-link: #0a68ad; --u-exp: #3b8a0c; --u-meso: #c25a00;
  --u-good: #2f8a1f; --u-bad: #c0392b; --u-glow: #2f93d1; --u-shadow: rgba(16, 50, 90, .12);
  color-scheme: light;
}
:is(html.app-ui, html.pip-ui)[data-ui] {
  --f-ground: var(--u-bg); --f-panel: var(--u-card); --f-panel-2: var(--u-card-2); --f-line: var(--u-line); --f-head: var(--u-head);
  --f-text: var(--u-text); --f-text-2: var(--u-text-2); --f-link: var(--u-link); --f-exp: var(--u-exp); --f-meso: var(--u-meso);
  --sky-top: var(--u-bg); --sky-bottom: var(--u-bg);
  --wood: var(--u-card); --wood-2: var(--u-card); --wood-3: var(--u-card-2); --wood-line: var(--u-line); --wood-line-2: var(--u-line-2);
  --ink: var(--u-text); --ink-2: var(--u-text-2); --muted: var(--u-text-2); --cream: var(--u-head); --ink-strong: var(--u-head);
  --exp: var(--u-exp); --meso: var(--u-meso); --gain: var(--u-good); --good: var(--u-good); --bad: var(--u-bad); --live: var(--u-good);
  --bs-body-bg: var(--u-bg); --bs-body-color: var(--u-text); --bs-heading-color: var(--u-head); --bs-emphasis-color: var(--u-head);
  --bs-secondary-color: var(--u-text-2); --bs-tertiary-color: var(--u-text-2); --bs-border-color: var(--u-line);
  --bs-link-color: var(--u-link); --bs-link-hover-color: var(--u-head);
  scrollbar-color: var(--u-line) var(--u-bg);
}
:is(html.app-ui, html.pip-ui[data-ui]) :is(.window, .stat, .game-card, .announce, .welcome, .kpi-card, .pip-body, .health-pill, .bu-sec, .prof-panel, .pcard, .hp-card,
  .gd-card, .rk-card:not(.look), .rk-you, .gl-hero, .live-goal, .support-card, .spots-lock-card) {
  --wood: var(--u-card); --wood-2: var(--u-card); --wood-3: var(--u-card-2); --wood-line: var(--u-line); --wood-line-2: var(--u-line-2);
  --ink: var(--u-text); --ink-2: var(--u-text-2); --muted: var(--u-text-2); --ink-strong: var(--u-head); --cream: var(--u-head);
  --exp: var(--u-exp); --meso: var(--u-meso); --gain: var(--u-good); --good: var(--u-good); --live: var(--u-good); --bad: var(--u-bad);
  --bs-body-color: var(--u-text); --bs-border-color: var(--u-line-2); --bs-link-color: var(--u-link); --bs-link-hover-color: var(--u-head);
  color: var(--u-text);
}
html.app-ui body:not(.admin-ui) { background: radial-gradient(1200px 500px at 70% -10%, var(--u-bg-2), transparent 70%) var(--u-bg); color: var(--u-text); }
html.app-ui body:not(.admin-ui)::before { display: none; }  /* (no clouds in here) */

/* ---------- the side menu ---------- */
@media (min-width: 992px) {
  html.app-ui body:not(.admin-ui) { padding-left: 240px; }
  html.app-ui body:not(.admin-ui) .site-header {
    position: fixed; z-index: 1040; left: 0; top: 0; bottom: 0; width: 240px; margin: 0;
    flex-direction: column; flex-wrap: nowrap; align-items: stretch; justify-content: flex-start; gap: 22px;
    padding: 22px 14px 16px; background: var(--u-side); border-right: 1px solid var(--u-line); border-bottom: 0; backdrop-filter: none; overflow-y: auto;
  }
  html.app-ui body:not(.admin-ui) .brand { padding: 0 8px; }
  html.app-ui body:not(.admin-ui) .brand-name { font-size: var(--fs-22, 22px); color: var(--u-head); }
  html.app-ui body:not(.admin-ui) .brand-sub { white-space: normal; color: var(--u-text-2); }
  html.app-ui body:not(.admin-ui) .brand-leaf { transition: transform .6s cubic-bezier(.16, 1, .3, 1); }
  html.app-ui body:not(.admin-ui) .brand:hover .brand-leaf { transform: rotate(-24deg) scale(1.1); }
  html.app-ui body:not(.admin-ui) .site-header .tabs { position: relative; flex-direction: column; align-items: stretch; flex-wrap: nowrap; gap: 2px; width: 100%; overflow: visible; }
  html.app-ui body:not(.admin-ui) .site-header .tab {
    position: relative; z-index: 1; flex-direction: row; justify-content: flex-start; gap: 12px; padding: 10px 12px; border-radius: 10px;
    font-size: var(--fs-14_5, 14.5px); font-weight: 600; color: var(--u-text-2); background: none; box-shadow: none; white-space: nowrap; transition: color .2s;
  }
  html.app-ui body:not(.admin-ui) .site-header .tab .bi { text-align: center; transition: transform .25s cubic-bezier(.16, 1, .3, 1); }
  html.app-ui body:not(.admin-ui) .site-header .tab:hover { color: var(--u-head); background: none; }
  html.app-ui body:not(.admin-ui) .site-header .tab:hover .bi { transform: scale(1.15); }
  html.app-ui body:not(.admin-ui) .site-header .tab.active { color: var(--u-head); background: none; box-shadow: none; border-radius: 10px; }
  html.app-ui body:not(.admin-ui) .site-header .tab .live-dot, html.app-ui body:not(.admin-ui) .site-header .tab .nav-count,
  html.app-ui body:not(.admin-ui) .site-header .tab .new-dot { position: static; margin: 0 0 0 auto; order: 9; }
  html.app-ui body:not(.admin-ui) .site-header .tab.discord-tab { width: auto; height: auto; flex: none; padding: 10px 12px; border-radius: 10px; justify-content: flex-start; }
  html.app-ui body:not(.admin-ui) .site-header .tab.discord-tab::after { content: "Discord"; font-size: var(--fs-14_5, 14.5px); font-weight: 600; }
  html.app-ui body:not(.admin-ui) .nav-glow {
    position: absolute; z-index: 0; left: 0; right: 0; top: 0; border-radius: 10px; pointer-events: none;
    background: linear-gradient(90deg, color-mix(in srgb, var(--u-act) 18%, transparent), color-mix(in srgb, var(--u-act) 4%, transparent));
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--u-act) 30%, transparent);
    transition: transform .45s cubic-bezier(.16, 1, .3, 1), height .3s;
  }
  html.app-ui body:not(.admin-ui) .site-header .user-chip { margin: 8px 0 0; align-self: stretch; justify-content: space-between; }
  html.app-ui body:not(.admin-ui) .test-site-bar { margin-left: -240px; padding-left: 252px; }
}
html.app-ui .nav-glow[hidden] { display: none; }
html.app-ui body:not(.admin-ui) .user-chip { background: var(--u-card-2); border: 1px solid var(--u-line); color: var(--u-text); }
html.app-ui .ui-theme {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 9px 12px; border-radius: 10px;
  font: 600 var(--fs-14, 14px) var(--font-body); color: var(--u-text); background: var(--u-card-2); border: 1px solid var(--u-line);
  cursor: var(--cursor-hand, pointer); transition: background-color .2s, border-color .2s;
}
html.app-ui .ui-theme:hover { background: var(--u-card-3); border-color: color-mix(in srgb, var(--u-act) 50%, var(--u-line)); }
html.app-ui .ui-theme .bi { color: var(--u-act); }
html.app-ui body.admin-ui .ui-theme { display: none; }
@media (max-width: 991.98px) {
  html.app-ui body:not(.admin-ui) .site-header { background: var(--u-side); border-bottom: 1px solid var(--u-line); }
  html.app-ui body:not(.admin-ui) .ui-theme { position: absolute; right: 12px; top: 12px; padding: 6px 10px; font-size: var(--fs-13, 13px); }
  html.app-ui body:not(.admin-ui) .site-header { position: relative; }
}

/* ---------- the page band as a banner ---------- */
html.app-ui body:not(.admin-ui) .app-band { border-bottom: 1px solid var(--u-line); }
html.app-ui body:not(.admin-ui) .app-band-art::before { top: auto; bottom: -20px; height: 300px; transform: translateY(var(--drift, 0px)); opacity: .9; }
html.app-ui[data-ui="dark"] body:not(.admin-ui) .app-band-art::before { filter: saturate(1.1) brightness(.75); }
html.app-ui[data-ui="dark"] body:not(.admin-ui) .app-band-art::after {
  background: linear-gradient(90deg, rgba(13, 18, 32, .97) 0%, rgba(13, 18, 32, .9) 38%, rgba(13, 18, 32, .45) 72%, rgba(13, 18, 32, .25) 100%),
    linear-gradient(0deg, var(--u-bg) 0, transparent 55%);
}
html.app-ui[data-ui="light"] body:not(.admin-ui) .app-band-art::after {
  background: linear-gradient(90deg, rgba(237, 242, 248, .97) 0%, rgba(237, 242, 248, .9) 38%, rgba(237, 242, 248, .4) 72%, rgba(237, 242, 248, .15) 100%),
    linear-gradient(0deg, var(--u-bg) 0, transparent 55%);
}
html.app-ui body:not(.admin-ui) .app-band-ground { display: none; }
html.app-ui body:not(.admin-ui) .app-band-in { max-width: 1320px; padding: 30px 28px 34px; }
html.app-ui body:not(.admin-ui) .app-band-in .page-title { color: var(--u-head); font-size: clamp(28px, 3.2vw, 40px); }
html.app-ui[data-ui="dark"] body:not(.admin-ui) .app-band-in .page-title { text-shadow: 0 2px 24px rgba(76, 195, 255, .25); }
html.app-ui body:not(.admin-ui) .app-band-in .page-sub { color: var(--u-text-2); }

/* ---------- the page ---------- */
html.app-ui body:not(.admin-ui) main.wrap:not(:has(> .fh)) { max-width: 1320px; padding: 22px 28px 90px; }
html.app-ui body:not(.admin-ui) .site-foot { background: transparent; border-top: 1px solid var(--u-line); color: var(--u-text-2); }
html.app-ui body:not(.admin-ui) .site-foot a { color: var(--u-link); }
html.app-ui body:not(.admin-ui) .made-by { color: var(--u-text); }
html.app-ui body:not(.admin-ui) :is(.page-title, .hero-title) { color: var(--u-head); }
html.app-ui body:not(.admin-ui) .page-sub { color: var(--u-text-2); }
html.app-ui body:not(.admin-ui) .text-muted-wood, html.app-ui body:not(.admin-ui) .text-ink-2 { color: var(--u-text-2) !important; }
html.app-ui body:not(.admin-ui) a:not(.btn):not(.tab):not(.brand):not(.session-item):not(.board-row) { color: var(--u-link); }

/* cards: a small title instead of a coloured bar, a soft lift */
html.app-ui body:not(.admin-ui) .window {
  background: var(--u-card); border: 1px solid var(--u-line); border-radius: 14px;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .03) inset, 0 12px 32px var(--u-shadow); transition: border-color .25s, box-shadow .25s;
}
html.app-ui body:not(.admin-ui) .window:hover { border-color: color-mix(in srgb, var(--u-glow) 35%, var(--u-line)); }
html.app-ui body:not(.admin-ui) :is(.window-title, .pip-head) { background: transparent; color: var(--u-head); border-bottom: 1px solid var(--u-line-2); padding: 13px 16px; }
html.app-ui body:not(.admin-ui) .window-title { --cream: var(--u-head); }
html.app-ui body:not(.admin-ui) .window-name, html.app-ui body:not(.admin-ui) .window-title :is(h1, h2, h3, strong, b) { color: var(--u-head); font-size: var(--fs-15_5, 15.5px); }
html.app-ui body:not(.admin-ui) :is(.window-aside, .window-title .small, .window-title .text-muted-wood) { color: var(--u-text-2); }
html.app-ui body:not(.admin-ui) .window-title a:not(.btn), html.app-ui body:not(.admin-ui) .window-title :is(.btn-link, .link-btn) { color: var(--u-link); --bs-btn-color: var(--u-link); --bs-btn-hover-color: var(--u-head); }
html.app-ui body:not(.admin-ui) .window :is(h1, h2, h3, .h4, strong, b) { color: var(--u-head); }
html.app-ui body:not(.admin-ui) :is(.stat, .game-card, .welcome, .kpi-card, .gd-card, .bu-sec, .prof-panel, .live-goal, .support-card, .sup-hero, .spots-lock-card) {
  background: var(--u-card); border-color: var(--u-line);
}
html.app-ui body:not(.admin-ui) .stat .value { color: var(--u-head); }
html.app-ui body:not(.admin-ui) :is(.alert, .announce, .board-ask, .well) { background: var(--u-card-2); color: var(--u-text); border: 1px solid var(--u-line); }
html.app-ui body:not(.admin-ui) .alert-warning, html.app-ui body:not(.admin-ui) .announce.warning { border-color: color-mix(in srgb, var(--u-act) 55%, var(--u-line)); }
html.app-ui body:not(.admin-ui) .alert-danger { border-color: color-mix(in srgb, var(--u-bad) 60%, var(--u-line)); }

/* buttons */
html.app-ui body:not(.admin-ui) :is(.btn-wood, .btn-outline-secondary, .btn-outline-primary, .btn-outline-danger, #view .btn-wood) {
  --bs-btn-color: var(--u-text); --bs-btn-bg: var(--u-card-2); --bs-btn-border-color: var(--u-line);
  --bs-btn-hover-color: var(--u-head); --bs-btn-hover-bg: var(--u-card-3); --bs-btn-hover-border-color: color-mix(in srgb, var(--u-glow) 45%, var(--u-line));
  --bs-btn-active-color: var(--u-head); --bs-btn-active-bg: var(--u-card-3); --bs-btn-active-border-color: var(--u-glow);
  --bs-btn-disabled-color: var(--u-text-2); --bs-btn-disabled-bg: var(--u-card-2); --bs-btn-disabled-border-color: var(--u-line-2);
}
html.app-ui body:not(.admin-ui) .btn-outline-danger { --bs-btn-color: var(--u-bad); }
html.app-ui body:not(.admin-ui) .btn-primary { transition: box-shadow .25s, transform .2s, background-color .2s; }
html.app-ui body:not(.admin-ui) .btn-primary:hover { transform: translateY(-1px); box-shadow: 0 0 0 3px color-mix(in srgb, var(--u-act) 25%, transparent), 0 10px 26px color-mix(in srgb, var(--u-act) 30%, transparent); }
html.app-ui body:not(.admin-ui) .btn:focus-visible { outline: 3px solid var(--f-link); outline-offset: 3px; }
html.app-ui body:not(.admin-ui) :is(.btn-check:checked + .btn-wood, .btn-wood.active) { color: var(--u-act-ink); background: var(--u-act); border-color: var(--u-act); }

/* forms and tables */
html.app-ui body:not(.admin-ui) :is(.form-control, .form-select) {
  background-color: var(--u-card-2); color: var(--u-text); border-color: var(--u-line);
}
html.app-ui body:not(.admin-ui) :is(.form-control, .form-select):focus { border-color: var(--u-glow); box-shadow: 0 0 0 3px color-mix(in srgb, var(--u-glow) 25%, transparent); }
html.app-ui body:not(.admin-ui) .form-control::placeholder { color: var(--u-text-2); }
html.app-ui body:not(.admin-ui) .form-check-input { background-color: var(--u-card-2); border-color: var(--u-line); }
html.app-ui body:not(.admin-ui) .table { --bs-table-bg: transparent; --bs-table-color: var(--u-text); --bs-table-border-color: var(--u-line-2);
  --bs-table-hover-bg: var(--u-card-2); --bs-table-hover-color: var(--u-head); --bs-table-striped-bg: var(--u-card-2); }
html.app-ui body:not(.admin-ui) .chip { background: var(--u-card-2); border-color: var(--u-line); }
html.app-ui body:not(.admin-ui) .map-table tr.best td { background: color-mix(in srgb, var(--u-act) 10%, transparent); }
html.app-ui body:not(.admin-ui) :is(.session-item:hover, a.board-row:hover, .drop-zone:hover, .drop-zone.over) { background: var(--u-card-2); }
html.app-ui body:not(.admin-ui) .drop-zone { background: var(--u-card-2); border-color: var(--u-line); color: var(--u-text); }
html.app-ui body:not(.admin-ui) .session-day { color: var(--u-act); }
html.app-ui body:not(.admin-ui) .fb-fab { background: var(--u-card-2); color: var(--u-head); border: 1px solid var(--u-line); box-shadow: 0 10px 26px var(--u-shadow); }

/* ---------- the overview and the start of the Live page ---------- */
html.app-ui body:not(.admin-ui) :is(.ov-big, .ov-tile, .ov-steps li, .fh-board) { background: var(--u-card); border-color: var(--u-line); box-shadow: 0 12px 32px var(--u-shadow); }
html.app-ui body:not(.admin-ui) .ov-avatar { background: var(--u-card-2); }
html.app-ui body:not(.admin-ui) .ov-rank, html.app-ui body:not(.admin-ui) .ov-rank a { color: var(--u-text); }
html.app-ui body:not(.admin-ui) .ov-rank a { color: var(--u-head) !important; }
html.app-ui body:not(.admin-ui) .fh-row.top { background: color-mix(in srgb, var(--u-act) 10%, transparent); }
html.app-ui body:not(.admin-ui) .fh-row + .fh-row { border-color: var(--u-line-2); }
html.app-ui body:not(.admin-ui) .fh-rank { background: var(--u-card-2); border-color: var(--u-line); color: var(--u-head); }
html.app-ui body:not(.admin-ui) .fh-row b, html.app-ui body:not(.admin-ui) .ov-cmp-map b, html.app-ui body:not(.admin-ui) .ov-steps b { color: var(--u-head); }
html.app-ui body:not(.admin-ui) .fh-rate, html.app-ui body:not(.admin-ui) .ov-cmp-rate b { color: var(--u-exp); }
html.app-ui body:not(.admin-ui) .ov-tab { color: var(--u-text-2); }
html.app-ui body:not(.admin-ui) .ov-tabs { background: var(--u-card-2); border: 1px solid var(--u-line); }
html.app-ui body:not(.admin-ui) .ov-tab.on { background: var(--u-act); color: var(--u-act-ink); }
html.app-ui body:not(.admin-ui) .ov-chart-sum b, html.app-ui body:not(.admin-ui) .ov-pct-txt b { color: var(--u-head); }
html.app-ui[data-ui="dark"] body:not(.admin-ui) .ov-bar:hover i { filter: brightness(1.15) drop-shadow(0 0 8px color-mix(in srgb, var(--u-exp) 60%, transparent)); }
html.app-ui body:not(.admin-ui) .ov-vs { background: var(--u-card-2); color: var(--u-text); }
html.app-ui body:not(.admin-ui) .ov-vs.up { background: color-mix(in srgb, var(--u-good) 14%, transparent); }
html.app-ui body:not(.admin-ui) .ov-vs.down { background: color-mix(in srgb, var(--u-bad) 14%, transparent); }
html.app-ui body:not(.admin-ui) .ov-pct-line i { background: var(--u-head); border-color: var(--u-card); }
html.app-ui body:not(.admin-ui) .ov-pct-txt { color: var(--u-text); }
html.app-ui body:not(.admin-ui) .session-map, html.app-ui body:not(.admin-ui) .ov-cmp-map img { background: var(--u-card-2); border-color: var(--u-line); }
html.app-ui body:not(.admin-ui) .session-item.better:hover { background: color-mix(in srgb, var(--u-good) 15%, transparent); }
html.app-ui body:not(.admin-ui) .session-item.worse:hover { background: color-mix(in srgb, var(--u-bad) 13%, transparent); }
html.app-ui body:not(.admin-ui) .session-vs.up { color: var(--u-good); } html.app-ui body:not(.admin-ui) .session-vs.down { color: var(--u-bad); }
html.app-ui body:not(.admin-ui) .ov-steps li::before { color: var(--u-act); }
html.app-ui body:not(.admin-ui) .lv-how h2, html.app-ui body:not(.admin-ui) .ov-first h2 { color: var(--u-head); }
html.app-ui body:not(.admin-ui) .wk-reward { background: color-mix(in srgb, var(--u-act) 10%, var(--u-card)); border-color: color-mix(in srgb, var(--u-act) 50%, transparent); color: var(--u-text); }

/* ---------- small effects ---------- */
/* cards you can click lift a little and catch the light */
html.app-ui body:not(.admin-ui) :is(a.session-item, .fh-row, .ov-steps li, .wk-card, a.stat) { transition: transform .25s cubic-bezier(.16, 1, .3, 1), background-color .2s, box-shadow .25s; }
html.app-ui body:not(.admin-ui) :is(a.session-item, .fh-row):hover { transform: translateX(3px); }
html.app-ui body:not(.admin-ui) .ov-steps li:hover { transform: translateY(-3px); box-shadow: 0 16px 36px var(--u-shadow), 0 0 0 1px color-mix(in srgb, var(--u-act) 35%, transparent); }
/* a light sweeping over bars that fill up */
html.app-ui body:not(.admin-ui) .map-bar span { position: relative; overflow: hidden; }
html.app-ui body:not(.admin-ui) .expbar-fill { overflow: hidden; }  /* (it stays absolute, style.css: relative left it no height) */
html.app-ui body:not(.admin-ui) :is(.expbar-fill, .map-bar span)::after {
  content: ""; position: absolute; inset: 0; transform: translateX(-100%);
  background: linear-gradient(100deg, transparent 20%, rgba(255, 255, 255, .45) 50%, transparent 80%); animation: ui-sweep 3.2s ease-in-out infinite;
}
@keyframes ui-sweep { 0%, 35% { transform: translateX(-100%); } 75%, 100% { transform: translateX(100%); } }
/* the chart's bars grow in one after another */
html.app-ui body:not(.admin-ui) .ov-bar i { transform-origin: bottom; animation: ui-grow .7s cubic-bezier(.16, 1, .3, 1) both; animation-delay: calc(var(--i, 0) * 25ms); }
@keyframes ui-grow { from { transform: scaleY(0); } to { transform: none; } }
/* live dots breathe */
html.app-ui body:not(.admin-ui) .live-dot:not(.paused), html.app-ui body:not(.admin-ui) .fh-live { animation: ui-breathe 2s ease-out infinite; }
@keyframes ui-breathe { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--u-good) 55%, transparent); } 100% { box-shadow: 0 0 0 10px transparent; } }
/* the overview's avatar catches a slow shine */
html.app-ui body:not(.admin-ui) .ov-avatar::after { position: absolute; background: linear-gradient(120deg, transparent 40%, rgba(255, 255, 255, .35) 50%, transparent 60%); }
@keyframes ui-shine { 0%, 60% { transform: translateX(-60%); } 100% { transform: translateX(60%); } }

@media (prefers-reduced-motion: reduce) {
  html.app-ui body:not(.admin-ui) :is(.expbar-fill, .map-bar span)::after, html.app-ui body:not(.admin-ui) .ov-avatar::after { animation: none; display: none; }
  html.app-ui body:not(.admin-ui) :is(.ov-bar i, .ov-hours i, .live-dot, .fh-live) { animation: none; }
  html.app-ui body:not(.admin-ui) .nav-glow { transition: none; }
  html.app-ui body:not(.admin-ui) .app-band-art::before { transform: none; }
}

/* ---------- dark: the older parts with light colours written into style.css ----------
   Players' looks (borders and colours they pick for the board, rankings and their card) and the rankings' cards were made
   for light: in the dark they stay light, as bright cards, with their own dark text (the light colour names inside). The
   rest of the light boxes take the dark card colours. Found by scanning each page for light backgrounds. */
html.app-ui[data-ui="dark"] :is(.look, .rk-card, .rk-you) {
  --u-card: #ffffff; --u-card-2: #f3f7fb; --u-card-3: #e8f0f8; --u-line: #d5dfeb; --u-line-2: #e6edf5;
  --u-head: #0b1b2e; --u-text: #1b2a3b; --u-text-2: #5a6a7e; --u-link: #0a68ad; --u-exp: #3b8a0c; --u-meso: #c25a00; --u-good: #2f8a1f; --u-bad: #c0392b;
  --wood: #ffffff; --wood-2: #ffffff; --wood-3: #f3f7fb; --wood-line: #d5dfeb; --wood-line-2: #e6edf5;
  --ink: #1b2a3b; --ink-2: #5a6a7e; --muted: #5a6a7e; --cream: #0b1b2e; --ink-strong: #0b1b2e;
  --exp: #3b8a0c; --meso: #c25a00; --bs-body-color: #1b2a3b; --bs-link-color: #0a68ad;
  color: #1b2a3b;
}
html.app-ui[data-ui="dark"] body:not(.admin-ui) :is(.look, .rk-card, .rk-you) :is(b, strong, h1, h2, h3, .feed-name, .podium-name) { color: #0b1b2e; }
html.app-ui[data-ui="dark"] body:not(.admin-ui) :is(.wk-tile, .pf-levels > div, .gd-tier, .gd-fix, .spot-row, .mob-chip, .support-code, .perk,
  .ach-pill, .seg, .sc-switch, .prof-border-now, .gs-card-ic, .update-pic, .pcard, .rk-filters button, .rk-classes button, .feed-row:not(.look), .achc-wear) {
  background: var(--u-card-2); border-color: var(--u-line); color: var(--u-text);
}
html.app-ui[data-ui="dark"] body:not(.admin-ui) :is(.wk-best, .gd-note, .ach-note, .spot-row.top, .gs-card.start, .achc-pts, .ach-band-reward.done) {
  background: color-mix(in srgb, var(--u-act) 12%, var(--u-card)); border-color: color-mix(in srgb, var(--u-act) 40%, var(--u-line)); color: var(--u-text);
}
/* the live page's monsters line under the character and map: the card's colours (it was the old site's cream in both looks) */
html.app-ui[data-ui] body:not(.admin-ui) .game-mobs { background: color-mix(in srgb, var(--u-card-2) 55%, var(--u-card)); border-top-color: var(--u-line-2); }
html.app-ui[data-ui] body:not(.admin-ui) .game-mobs .mob-chip { background: var(--u-card); border-color: var(--u-line); color: var(--u-text); }
html.app-ui[data-ui] body:not(.admin-ui) .game-mobs .mob-chip b { color: var(--u-text-2); }
html.app-ui[data-ui="dark"] body:not(.admin-ui) .gs-card.join { background: color-mix(in srgb, var(--u-glow) 10%, var(--u-card)); border-color: var(--u-line); color: var(--u-text); }
html.app-ui[data-ui="dark"] body:not(.admin-ui) .pf-bar { background: var(--u-card-3); }
html.app-ui[data-ui="dark"] body:not(.admin-ui) :is(.wk-tile, .pf-levels > div, .gd-tier, .gd-fix, .spot-row, .perk, .wk-best, .gd-note, .ach-note) :is(b, strong) { color: var(--u-head); }
html.app-ui[data-ui="dark"] body:not(.admin-ui) .seg button.active { color: var(--u-act-ink); background: var(--u-act); }
html.app-ui[data-ui="dark"] body:not(.admin-ui) :is(.pcard-stats > div, .bu-tiles a) { background: var(--u-card-2); border-color: var(--u-line); color: var(--u-text); }
html.app-ui[data-ui="dark"] body:not(.admin-ui) .bu-tiles a b { color: var(--u-head); }
html.app-ui[data-ui="dark"] body:not(.admin-ui) .bu-tiles a small { color: var(--u-text-2); }

/* dark: text with a dark colour written into style.css, found by scanning for dark text on dark */
html.app-ui[data-ui="dark"] body:not(.admin-ui) :is(.wk-v, .gd-card strong, .gs-card h2, .perk-title, .spot-name, .support-code-v, .pcard-map-n, .guide-checks strong) { color: var(--u-head); }
html.app-ui[data-ui="dark"] body:not(.admin-ui) :is(.gs-card p, .pcard-k) { color: var(--u-text-2); }
html.app-ui[data-ui="dark"] body:not(.admin-ui) .wk-delta.down { color: var(--u-bad); }
html.app-ui[data-ui="dark"] body:not(.admin-ui) kbd { color: var(--u-head); background: var(--u-card-3); border: 1px solid var(--u-line); }

/* ================================================================ round three: the full layout (C:\Coding\tracker-redesign\PROMPT.md)
   The side menu in groups with an own colour per icon, the overview's hero with tabs in the banner, stat cards with a line of
   the last values, sessions as match cards, a 7 x 24 activity grid, loading skeletons and a tab bar on phones. */
:is(html.app-ui, html.pip-ui)[data-ui] { --u-plus: #c48bff; }
:is(html.app-ui, html.pip-ui)[data-ui="light"] { --u-plus: #7a3fd0; }

/* the menu's groups and colours */
html.app-ui body:not(.admin-ui) .nav-k { display: none; }
@media (min-width: 992px) {
  html.app-ui body:not(.admin-ui) .site-header .nav-k {
    display: block; margin: 14px 12px 4px; font-size: var(--fs-11_5, 11.5px); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--u-text-2); opacity: .75;
  }
  html.app-ui body:not(.admin-ui) .site-header .nav-k:first-of-type { margin-top: 0; }
  html.app-ui body:not(.admin-ui) .site-header .tab .bi { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; font-size: var(--fs-16, 16px);
    color: var(--ni, var(--u-text-2)); background: color-mix(in srgb, var(--ni, var(--u-text-2)) 14%, transparent); }
  html.app-ui body:not(.admin-ui) .site-header .tab.active .bi { color: var(--u-act-ink, #1f1800); background: var(--ni, var(--u-act)); }
}
html.app-ui .tab[data-nav="home"] { --ni: #ffcd2e; } html.app-ui .tab[data-nav="live"] { --ni: #5ad17a; }
html.app-ui .tab[data-nav="board"] { --ni: #ffae58; } html.app-ui .tab[data-nav="rankings"] { --ni: #6cb8ff; }
html.app-ui .tab[data-nav="guild"] { --ni: #8fa8ff; } html.app-ui .tab[data-nav="spots"] { --ni: #ff7a9a; }
html.app-ui .tab[data-nav="records"] { --ni: #ffd479; } html.app-ui .tab[data-nav="achievements"] { --ni: #ffcf4d; }
html.app-ui .tab[data-nav="profile"] { --ni: #c48bff; } html.app-ui .tab[data-nav="guide"] { --ni: #4fd1c5; }
html.app-ui .tab[data-nav="updates"] { --ni: #f5a3ff; } html.app-ui .tab[data-nav="admin"] { --ni: #94a5bf; }
html.app-ui .tab[data-nav="supporters"] { --ni: #ff6f91; } html.app-ui .tab.discord-tab { --ni: #8c95ff; }
html.app-ui[data-ui="light"] .tab[data-nav] { --ni-dark: 1; }

/* ---------- the overview's hero, in the banner ---------- */
html.app-ui body:not(.admin-ui) #band-in:has(.ov-head) { padding-bottom: 0; }
html.app-ui body:not(.admin-ui) .ov-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 18px 24px; }
html.app-ui body:not(.admin-ui) .ov-id { align-items: center; gap: 20px; }
html.app-ui body:not(.admin-ui) .ov-avatar { width: 92px; height: 92px; border-radius: 22px; position: relative; }
html.app-ui body:not(.admin-ui) .ov-avatar img { width: 48px; height: 48px; }
html.app-ui body:not(.admin-ui) .ov-avatar::after { inset: 0; border-radius: 19px; }
html.app-ui body:not(.admin-ui) .ov-lv { position: absolute; bottom: -10px; left: 50%; transform: translateX(-50%); padding: 1px 9px; border-radius: 999px;
  font-size: var(--fs-12_5, 12.5px); font-weight: 800; color: #1f1800; background: var(--u-act); border: 2px solid var(--u-bg-2); white-space: nowrap; font-variant-numeric: tabular-nums; }
html.app-ui body:not(.admin-ui) .ov-who .page-title { font-size: clamp(30px, 3.4vw, 40px); }
html.app-ui body:not(.admin-ui) .ov-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin-top: 4px; font-size: var(--fs-14_5, 14.5px); color: var(--u-text-2); }
html.app-ui body:not(.admin-ui) .ov-class { font-weight: 700; color: var(--cc); }
html.app-ui body:not(.admin-ui) .ov-meta .ov-rank { margin: 0; font-size: var(--fs-14_5, 14.5px); }
html.app-ui body:not(.admin-ui) .ov-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
html.app-ui body:not(.admin-ui) .ov-tags:empty { display: none; }
html.app-ui body:not(.admin-ui) .ov-tag { display: inline-flex; align-items: center; gap: 6px; padding: 3px 11px 3px 9px; border-radius: 999px; font-size: var(--fs-12_5, 12.5px); font-weight: 700;
  color: var(--u-head); border: 1px solid color-mix(in srgb, var(--u-glow) 40%, var(--u-line)); cursor: help; }
html.app-ui body:not(.admin-ui) .ov-head .ov-acts { margin: 0 0 6px; }

/* tabs (in the banner, at its bottom edge) with a line that glides */
html.app-ui body:not(.admin-ui) .ov-tabs-row { grid-column: 1 / -1; position: relative; display: flex; gap: 4px; margin-top: 6px; border-bottom: 1px solid var(--u-line); }
html.app-ui body:not(.admin-ui) .pt { display: inline-flex; align-items: center; gap: 8px; padding: 12px 16px; border: 0; background: none; font: 600 var(--fs-15, 15px) var(--font-body);
  color: var(--u-text-2); cursor: var(--cursor-hand, pointer); transition: color .2s; }
html.app-ui body:not(.admin-ui) .pt:hover { color: var(--u-head); }
html.app-ui body:not(.admin-ui) .pt.on { color: var(--u-head); }
html.app-ui body:not(.admin-ui) .pt .bi { font-size: var(--fs-15, 15px); }
html.app-ui body:not(.admin-ui) .pt.on .bi { color: var(--u-act); }
html.app-ui body:not(.admin-ui) .pt-line { position: absolute; left: 0; bottom: -1px; height: 3px; width: 0; border-radius: 3px 3px 0 0; background: var(--u-act);
  box-shadow: 0 0 14px color-mix(in srgb, var(--u-act) 60%, transparent); transition: transform .4s cubic-bezier(.16, 1, .3, 1), width .4s cubic-bezier(.16, 1, .3, 1); }
html.app-ui body:not(.admin-ui) .ov-pane { display: flex; flex-direction: column; gap: 18px; }
html.app-ui body:not(.admin-ui) .ov-pane[hidden] { display: none; }

/* stat cards with a line of the last values: plain cards with a line of their colour on top (no pastel gradient, glowing
   icon tile or tilt under the cursor: that read as "made by AI"; Timmie, Nov 23) */
html.app-ui body:not(.admin-ui) .sc-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
html.app-ui body:not(.admin-ui) .sc { position: relative; overflow: hidden; padding: 16px 18px 12px; border-radius: 14px; background: var(--u-card);
  border: 1px solid var(--u-line); box-shadow: inset 0 3px 0 var(--sc); transition: border-color .2s; }
html.app-ui body:not(.admin-ui) .sc:hover { border-color: color-mix(in srgb, var(--sc) 45%, var(--u-line)); }
html.app-ui body:not(.admin-ui) .sc::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 80px; pointer-events: none;
  background: radial-gradient(120% 90% at 0% 0%, color-mix(in srgb, var(--sc) 16%, transparent), transparent 70%); }
html.app-ui body:not(.admin-ui) .sc-top { position: relative; display: flex; align-items: center; gap: 10px; }
html.app-ui body:not(.admin-ui) .sc-ic { display: grid; place-items: center; border-radius: 10px; font-size: var(--fs-15, 15px); color: var(--sc); }
html.app-ui body:not(.admin-ui) .sc-top small { font-size: var(--fs-12, 12px); font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--u-text-2); }
html.app-ui body:not(.admin-ui) .sc > b { position: relative; display: block; margin-top: 12px; font-size: var(--fs-32, 32px); font-weight: 800; line-height: 1; color: var(--u-head); font-variant-numeric: tabular-nums; }
html.app-ui body:not(.admin-ui) .sc-foot { position: relative; margin-top: 6px; font-size: var(--fs-13, 13px); color: var(--u-text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
html.app-ui body:not(.admin-ui) .sc-d { color: var(--u-text-2); }
html.app-ui body:not(.admin-ui) .sc-d.up { color: var(--u-good); font-weight: 700; } html.app-ui body:not(.admin-ui) .sc-d.down { color: var(--u-bad); font-weight: 700; }
html.app-ui body:not(.admin-ui) .spark { display: block; width: 100%; height: 34px; margin-top: 8px; }
html.app-ui body:not(.admin-ui) .spark polyline { stroke-dasharray: 400; stroke-dashoffset: 400; animation: ui-draw 1.2s cubic-bezier(.16, 1, .3, 1) .2s forwards; }
@keyframes ui-draw { to { stroke-dashoffset: 0; } }

/* when you grind: 7 days x 24 hours */
html.app-ui body:not(.admin-ui) .hm { display: grid; grid-template-columns: 34px repeat(24, minmax(0, 1fr)); gap: 3px; align-items: center; }
html.app-ui body:not(.admin-ui) .hm i { aspect-ratio: 1; border-radius: 3px;
  animation: ui-pop .4s ease-out both; animation-delay: calc(var(--i) * 2ms); }
html.app-ui body:not(.admin-ui) .hm i:hover { outline: 2px solid var(--u-act); outline-offset: 1px; }
html.app-ui body:not(.admin-ui) .hm-d { font-size: var(--fs-11_5, 11.5px); color: var(--u-text-2); }
html.app-ui body:not(.admin-ui) .hm-h { font-size: var(--fs-11, 11px); color: var(--u-text-2); margin-top: 4px; }
@keyframes ui-pop { from { opacity: 0; transform: scale(.4); } to { opacity: 1; transform: none; } }

/* sessions as match cards: the result strip, the map, the big number, the tags */
html.app-ui body:not(.admin-ui) .session-item { display: grid; grid-template-columns: 84px 48px minmax(0, 1fr) auto; align-items: center; gap: 0 14px;
  padding: 0 16px 0 0; min-height: 74px; margin-bottom: 8px; border-radius: 12px; overflow: hidden; background: var(--u-card-2); border: 1px solid var(--u-line-2); }
html.app-ui body:not(.admin-ui) .session-res { align-self: stretch; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 2px;
  background: color-mix(in srgb, var(--u-text-2) 10%, transparent); border-right: 1px solid var(--u-line-2); }
html.app-ui body:not(.admin-ui) .session-res b { font-size: var(--fs-17, 17px); font-weight: 800; color: var(--u-head); font-variant-numeric: tabular-nums; }
html.app-ui body:not(.admin-ui) .session-res small { font-size: var(--fs-11, 11px); font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--u-text-2); }
html.app-ui body:not(.admin-ui) .session-item.better { background: color-mix(in srgb, var(--u-good) 7%, var(--u-card-2)); border-color: color-mix(in srgb, var(--u-good) 25%, var(--u-line-2)); }
html.app-ui body:not(.admin-ui) .session-item.better .session-res b { color: var(--u-good); }
html.app-ui body:not(.admin-ui) .session-item.worse { background: color-mix(in srgb, var(--u-bad) 6%, var(--u-card-2)); border-color: color-mix(in srgb, var(--u-bad) 22%, var(--u-line-2)); }
html.app-ui body:not(.admin-ui) .session-item.worse .session-res b { color: var(--u-bad); }
html.app-ui body:not(.admin-ui) .session-item .session-icon { margin: 0 auto; }
html.app-ui body:not(.admin-ui) .session-item .score-value { font-size: var(--fs-22, 22px); color: var(--u-exp); }
html.app-ui body:not(.admin-ui) .session-item .session-vs { display: none; }  /* (the strip on the left says it) */
html.app-ui body:not(.admin-ui) .session-scroll.recent { max-height: none; }

/* loading skeletons */
html.app-ui .skel { display: flex; flex-direction: column; gap: 12px; }
html.app-ui .skel-row { display: grid; grid-template-columns: 34px minmax(0, 1fr) 64px; gap: 12px; align-items: center; }
html.app-ui .skel-row i, html.app-ui .skel-row b { display: block; height: 14px; border-radius: 6px; background: var(--u-card-2); position: relative; overflow: hidden; }
html.app-ui .skel-row > i:first-child { height: 34px; border-radius: 50%; }
html.app-ui .skel-row span { display: flex; flex-direction: column; gap: 7px; }
html.app-ui .skel-row span b:last-child { width: 60%; height: 10px; }
html.app-ui .skel-row i::after, html.app-ui .skel-row b::after { content: ""; position: absolute; inset: 0; transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--u-head) 8%, transparent), transparent); animation: ui-skel 1.4s ease-in-out infinite; }
@keyframes ui-skel { to { transform: translateX(100%); } }

/* the phone's tab bar */
html.app-ui .bottom-bar { display: none; }
@media (max-width: 991.98px) {
  html.app-ui body:not(.admin-ui) .bottom-bar {
    position: fixed; z-index: 1035; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: repeat(5, 1fr);
    padding: 6px 6px calc(6px + env(safe-area-inset-bottom)); background: color-mix(in srgb, var(--u-side) 94%, transparent); backdrop-filter: blur(10px);
    border-top: 1px solid var(--u-line);
  }
  html.app-ui body:not(.admin-ui) .bottom-bar a { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 0; border-radius: 10px;
    font-size: var(--fs-11_5, 11.5px); font-weight: 600; color: var(--u-text-2) !important; text-decoration: none; }
  html.app-ui body:not(.admin-ui) .bottom-bar a .bi { font-size: var(--fs-19, 19px); }
  html.app-ui body:not(.admin-ui) .bottom-bar a.active { color: var(--u-head) !important; background: color-mix(in srgb, var(--u-act) 14%, transparent); }
  html.app-ui body:not(.admin-ui) .bottom-bar a.active .bi { color: var(--u-act); }
  html.app-ui body:not(.admin-ui) .site-foot { padding-bottom: 96px; }
  html.app-ui body:not(.admin-ui) .fb-fab { bottom: 84px; }
  html.app-ui body:not(.admin-ui) .sc-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  html.app-ui body:not(.admin-ui) .ov-head { grid-template-columns: 1fr; }
  html.app-ui body:not(.admin-ui) .ov-tabs-row { overflow-x: auto; scrollbar-width: none; }
}
@media (max-width: 575.98px) {
  html.app-ui body:not(.admin-ui) .sc > b { font-size: var(--fs-24, 24px); }
  html.app-ui body:not(.admin-ui) .ov-avatar { width: 68px; height: 68px; }
  html.app-ui body:not(.admin-ui) .session-item { grid-template-columns: 64px 40px minmax(0, 1fr); }
  html.app-ui body:not(.admin-ui) .session-item .session-score { grid-column: 3; padding-bottom: 10px; text-align: left; }
  html.app-ui body:not(.admin-ui) .pt { padding: 10px 12px; font-size: var(--fs-14, 14px); }
}
@media (prefers-reduced-motion: reduce) {
  html.app-ui body:not(.admin-ui) .spark polyline { animation: none; stroke-dashoffset: 0; }
  html.app-ui body:not(.admin-ui) .hm i, html.app-ui .skel-row i::after, html.app-ui .skel-row b::after { animation: none; }
  html.app-ui body:not(.admin-ui) .pt-line { transition: none; }
}

/* ================================================================ colour schemes (data-pal on <html>; ?pal=... tries one)
   Each scheme only sets the colour names; the layout stays. "classic" is the navy of round three. The cards, charts and
   banner below take more colour in every scheme: stat cards filled with their own colour, chart bars in a gradient,
   card titles with a coloured icon tile. */
:is(html.app-ui, html.pip-ui)[data-ui="dark"][data-pal="sunset"] {   /* Maple Sunset: deep plum night, orange and pink */
  --u-bg: #1a0f2e; --u-bg-2: #2a1546; --u-side: #140b24; --u-card: #24163d; --u-card-2: #2e1d4c; --u-card-3: #3a2560;
  --u-line: #4a2f72; --u-line-2: #34204f; --u-text: #f1e6ff; --u-text-2: #b9a3d9; --u-glow: #ff7ab6;
  --u-act: #ffb238; --u-exp: #9cf26a; --u-meso: #ff9d4d; --u-shadow: rgba(10, 0, 25, .5);
  --p1: #ff7ab6; --p2: #ffb238; --p3: #8c7bff; --p4: #4fd6ff;
}
:is(html.app-ui, html.pip-ui)[data-ui="dark"][data-pal="ellinia"] {  /* Ellinia: deep forest teal, lime and gold */
  --u-bg: #071d1c; --u-bg-2: #0c2b28; --u-side: #051615; --u-card: #0f2d2a; --u-card-2: #143934; --u-card-3: #1b4842;
  --u-line: #23574f; --u-line-2: #19403b; --u-text: #e3f7ef; --u-text-2: #93c4b4; --u-glow: #3ee6c1;
  --u-act: #ffd23f; --u-exp: #a8f05a; --u-meso: #ffad4a; --u-shadow: rgba(0, 12, 10, .5);
  --p1: #3ee6c1; --p2: #a8f05a; --p3: #ffd23f; --p4: #6fb7ff;
}
:is(html.app-ui, html.pip-ui)[data-ui="dark"][data-pal="ludi"] {     /* Ludibrium: toy-box navy with candy colours */
  --u-bg: #0d1330; --u-bg-2: #161f4d; --u-side: #0a0f27; --u-card: #151d45; --u-card-2: #1c2656; --u-card-3: #25316b;
  --u-line: #2e3b7d; --u-line-2: #212c62; --u-text: #eef0ff; --u-text-2: #a6aee0; --u-glow: #5ee1ff;
  --u-act: #ffd84a; --u-exp: #7dff8f; --u-meso: #ff9f5a; --u-shadow: rgba(3, 5, 25, .5);
  --p1: #ff6fb1; --p2: #5ee1ff; --p3: #ffd84a; --p4: #a98bff;
}
:is(html.app-ui, html.pip-ui)[data-ui="light"][data-pal="henesys"] { /* Henesys day: bright sky, leaf green and mushroom orange */
  --u-bg: #e6f4ff; --u-bg-2: #c9e8ff; --u-side: #ffffff; --u-card: #ffffff; --u-card-2: #f1f8ff; --u-card-3: #e2f1ff;
  --u-line: #bfdcf3; --u-line-2: #ddebf7; --u-text: #17304a; --u-text-2: #4f6c86; --u-glow: #1d9bf0;
  --u-act: #ffc21a; --u-exp: #2f9e1f; --u-meso: #e86a00; --u-shadow: rgba(20, 80, 140, .14);
  --p1: #ff8a3d; --p2: #2fbf71; --p3: #1d9bf0; --p4: #b65cff;
}
:is(html.app-ui, html.pip-ui)[data-ui="light"][data-pal="sunset"] {  /* Maple Sunset by day: a peach dawn, pink and orange */
  --u-bg: #fff1ec; --u-bg-2: #ffe0d6; --u-side: #ffffff; --u-card: #ffffff; --u-card-2: #fff5f1; --u-card-3: #ffe9e1;
  --u-line: #f3cfc3; --u-line-2: #f8e2da; --u-head: #2a0f20; --u-text: #3a1a2e; --u-text-2: #7a5468; --u-glow: #e8528f;
  --u-act: #ffb238; --u-exp: #2f8f2a; --u-meso: #d35400; --u-link: #c2306b; --u-shadow: rgba(140, 40, 70, .12);
  --p1: #e8528f; --p2: #ff9a3c; --p3: #8c6bff; --p4: #20a9d6;
}
:is(html.app-ui, html.pip-ui)[data-ui="light"][data-pal="ludi"] {     /* Ludibrium by day: toy-box lilac and blue, candy colours */
  --u-bg: #eef0ff; --u-bg-2: #dde2ff; --u-side: #ffffff; --u-card: #ffffff; --u-card-2: #f5f6ff; --u-card-3: #e8ebff;
  --u-line: #cdd3f5; --u-line-2: #e3e6fa; --u-head: #10163a; --u-text: #1c2350; --u-text-2: #5a6194; --u-glow: #3d7bff;
  --u-act: #ffcd2e; --u-exp: #23963a; --u-meso: #d9620c; --u-link: #2d5fd6; --u-shadow: rgba(40, 50, 140, .12);
  --p1: #ff5fa2; --p2: #19b6e6; --p3: #f5b800; --p4: #8c6bff;
}
:is(html.app-ui, html.pip-ui)[data-ui="light"][data-pal="ellinia"] {  /* Ellinia by day: mint forest, leaf green and gold */
  --u-bg: #ecf8f1; --u-bg-2: #d6f0e2; --u-side: #ffffff; --u-card: #ffffff; --u-card-2: #f2fbf6; --u-card-3: #e2f4ea;
  --u-line: #c4e3d2; --u-line-2: #dcefe4; --u-head: #0a2a1f; --u-text: #123a2c; --u-text-2: #4c7564; --u-glow: #13a389;
  --u-act: #ffc21a; --u-exp: #2c8a12; --u-meso: #c45c00; --u-link: #0d7d69; --u-shadow: rgba(20, 90, 60, .12);
  --p1: #13a389; --p2: #6cbf2a; --p3: #e0a400; --p4: #3a8ee0;
}
:is(html.app-ui, html.pip-ui)[data-ui] { --p1: #ff7ab6; --p2: #ffcd2e; --p3: #4cc3ff; --p4: #86e35f; }

/* ---------- more colour, in every scheme ---------- */
/* each stat card its own colour (the line on top, the icon) */
html.app-ui body:not(.admin-ui) .sc-row .sc:nth-child(1) { --sc: var(--u-exp); }
html.app-ui body:not(.admin-ui) .sc-row .sc:nth-child(2) { --sc: var(--p3); }
html.app-ui body:not(.admin-ui) .sc-row .sc:nth-child(3) { --sc: var(--p2); }
html.app-ui body:not(.admin-ui) .sc-row .sc:nth-child(4) { --sc: var(--p1); }
/* card titles: a quiet icon before the name, no coloured tile */
html.app-ui body:not(.admin-ui) .window-name .bi { display: inline; color: var(--u-text-2); font-size: var(--fs-15, 15px); }
/* chart bars in a gradient, the activity grid in two colours */
html.app-ui body:not(.admin-ui) .ov-bar i { background: linear-gradient(0deg, var(--p3), var(--u-exp)); }
html.app-ui body:not(.admin-ui) .hm i { background: color-mix(in srgb, color-mix(in srgb, var(--p1) calc(var(--a) * 100%), var(--p3)) calc(var(--a) * 100%), var(--u-card-2)); }
/* the banner glows in the scheme's colours */
html.app-ui body:not(.admin-ui) .app-band { background: radial-gradient(900px 300px at 15% 0%, color-mix(in srgb, var(--p1) 28%, transparent), transparent 70%),
  radial-gradient(700px 260px at 85% 100%, color-mix(in srgb, var(--p3) 24%, transparent), transparent 70%), var(--u-bg-2); }
html.app-ui body:not(.admin-ui) .ov-tag:nth-child(1) { --tg: var(--p1); } html.app-ui body:not(.admin-ui) .ov-tag:nth-child(2) { --tg: var(--p3); }
html.app-ui body:not(.admin-ui) .ov-tag:nth-child(3) { --tg: var(--p2); }
html.app-ui body:not(.admin-ui) .ov-tag { background: color-mix(in srgb, var(--tg, var(--u-glow)) 22%, var(--u-card)); border-color: color-mix(in srgb, var(--tg, var(--u-glow)) 55%, transparent); }
html.app-ui body:not(.admin-ui) .ov-tag .bi { color: var(--tg, var(--u-act)); }
/* the result strip of the match cards a little bolder */
html.app-ui body:not(.admin-ui) .session-item.better .session-res { background: linear-gradient(180deg, color-mix(in srgb, var(--u-good) 32%, transparent), color-mix(in srgb, var(--u-good) 14%, transparent)); }
html.app-ui body:not(.admin-ui) .session-item.worse .session-res { background: linear-gradient(180deg, color-mix(in srgb, var(--u-bad) 30%, transparent), color-mix(in srgb, var(--u-bad) 12%, transparent)); }

/* the banner's wash takes the scheme's own colour, the town a little softer */
html.app-ui[data-ui] body:not(.admin-ui) .app-band-art::after {
  background: linear-gradient(90deg, color-mix(in srgb, var(--u-bg-2) 97%, transparent) 0%, color-mix(in srgb, var(--u-bg-2) 90%, transparent) 38%, color-mix(in srgb, var(--u-bg-2) 55%, transparent) 72%, color-mix(in srgb, var(--u-bg-2) 30%, transparent) 100%),
    linear-gradient(0deg, var(--u-bg) 0, transparent 60%);
}
html.app-ui[data-ui] body:not(.admin-ui) .app-band-art::before { opacity: .75; }

/* ================================================================ the colour picker, and more effects ================ */
@media (min-width: 992px) { html.app-ui body:not(.admin-ui) .ui-look { margin-top: auto; display: flex; flex-direction: column; gap: 10px; } html.app-ui body:not(.admin-ui) .ui-theme { margin-top: 0; } }
html.app-ui .ui-pal { display: flex; justify-content: center; gap: 10px; }
html.app-ui .ui-pal button { width: 26px; height: 26px; border-radius: 50%; padding: 0; cursor: var(--cursor-hand, pointer);
  background: conic-gradient(var(--pb) 0 50%, var(--pa) 50% 100%); border: 2px solid var(--u-line); transition: transform .25s cubic-bezier(.16, 1, .3, 1), box-shadow .25s; }
html.app-ui .ui-pal button:hover { transform: scale(1.15) rotate(20deg); }
html.app-ui .ui-pal button[aria-pressed="true"] { border-color: var(--u-head); box-shadow: 0 0 0 3px color-mix(in srgb, var(--pb) 45%, transparent); }
@media (max-width: 991.98px) { html.app-ui body:not(.admin-ui) .ui-pal { position: absolute; right: 108px; top: 16px; gap: 6px; } html.app-ui body:not(.admin-ui) .ui-pal button { width: 20px; height: 20px; } }
html.app-ui.ui-fading, html.app-ui.ui-fading body, html.app-ui.ui-fading :is(.window, .sc, .site-header, .app-band, .session-item, .btn, .tab, .chip) {
  transition: background-color .5s ease, border-color .5s ease, color .5s ease, box-shadow .5s ease !important;
}

/* a light that follows the pointer over cards */
html.app-ui body:not(.admin-ui) :is(.window, .session-item, .ov-steps li) {
  background-image: radial-gradient(420px circle at var(--mx, -400px) var(--my, -400px), color-mix(in srgb, var(--p1, var(--u-glow)) 9%, transparent), transparent 60%);
}

/* no ripple where you press any more (Nov 23): app.js still adds one, kept out of sight */
html.app-ui body:not(.admin-ui) :is(.btn, .pt, .ov-tab, .ui-theme) { position: relative; overflow: hidden; }
html.app-ui .ripple { display: none; }

/* cards further down come in as you scroll; session cards slide in when their tab opens */
html.app-ui body:not(.admin-ui) .rv { opacity: 0; transform: translateY(26px) scale(.97); filter: blur(6px); }
html.app-ui body:not(.admin-ui) .rv.rv-in { opacity: 1; transform: none; filter: none;
  transition: opacity .7s cubic-bezier(.16, 1, .3, 1), transform .7s cubic-bezier(.16, 1, .3, 1), filter .7s; }
html.app-ui body:not(.admin-ui) .sc.rv { transform: none; }  /* (stat cards only fade in: they don't move) */
html.app-ui body:not(.admin-ui) .session-item.slide-in { animation: ui-slide .5s cubic-bezier(.16, 1, .3, 1) both; animation-delay: calc(var(--k, 0) * 40ms); }
@keyframes ui-slide { from { opacity: 0; transform: translateX(-24px); } to { opacity: 1; transform: none; } }

/* maple leaves (snow in winter) drifting down the banner */
html.app-ui body:not(.admin-ui) .band-fx { position: absolute; inset: 0; z-index: 1; pointer-events: none; overflow: hidden; }
html.app-ui body:not(.admin-ui) .band-fx i { position: absolute; top: -30px; left: var(--x); width: 18px; height: 18px; opacity: 0;
  animation: ui-fall var(--d) linear var(--w) infinite; transform: scale(var(--s)); }
html.app-ui body:not(.admin-ui) .band-fx i.leaf { background: url("/static/items/icons/4031134.png") center / contain no-repeat; image-rendering: pixelated; }
html.app-ui body:not(.admin-ui) .band-fx i.flake { width: 7px; height: 7px; border-radius: 50%; background: #fff; box-shadow: 0 0 6px rgba(255, 255, 255, .8); }
@keyframes ui-fall {
  0% { opacity: 0; transform: translate(0, 0) rotate(0) scale(var(--s)); }
  10% { opacity: .85; }
  50% { transform: translate(40px, 120px) rotate(160deg) scale(var(--s)); }
  90% { opacity: .7; }
  100% { opacity: 0; transform: translate(-20px, 260px) rotate(340deg) scale(var(--s)); }
}
html.app-ui body:not(.admin-ui) .app-band[data-page="live"] .band-fx { display: none; }  /* (calm next to the game) */

/* the avatar's ring turns slowly, the start button breathes, menu icons wiggle */
html.app-ui body:not(.admin-ui) .ov-avatar::before { position: absolute; inset: -7px; border-radius: 26px; z-index: -1;
  background: conic-gradient(from var(--spin, 0deg), var(--cc, var(--u-act)), var(--p1, #ff7ab6), var(--p3, #4cc3ff), var(--cc, var(--u-act)));
  filter: blur(6px); opacity: .7; }
@property --spin { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@keyframes ui-spin { to { --spin: 360deg; } }
html.app-ui body:not(.admin-ui) .ov-acts .btn-primary { animation: ui-call 3s ease-in-out infinite; }
@keyframes ui-call { 0%, 100% { box-shadow: 0 6px 18px color-mix(in srgb, var(--u-act) 25%, transparent); } 50% { box-shadow: 0 6px 30px color-mix(in srgb, var(--u-act) 60%, transparent), 0 0 0 4px color-mix(in srgb, var(--u-act) 15%, transparent); } }
@media (min-width: 992px) {
  html.app-ui body:not(.admin-ui) .site-header .tab:hover .bi { animation: ui-wiggle .5s ease-in-out; }
}
@keyframes ui-wiggle { 25% { transform: rotate(-12deg) scale(1.12); } 60% { transform: rotate(8deg) scale(1.12); } 100% { transform: scale(1.12); } }
/* playstyle tags pop in one by one */
html.app-ui body:not(.admin-ui) .ov-tag { animation: ui-tag .5s cubic-bezier(.34, 1.56, .64, 1) both; }
html.app-ui body:not(.admin-ui) .ov-tag:nth-child(2) { animation-delay: .1s; } html.app-ui body:not(.admin-ui) .ov-tag:nth-child(3) { animation-delay: .2s; }
@keyframes ui-tag { from { opacity: 0; transform: translateY(6px) scale(.8); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  html.app-ui body:not(.admin-ui) :is(.band-fx, .ov-avatar::before) { display: none; }
  html.app-ui body:not(.admin-ui) :is(.ov-acts .btn-primary, .ov-tag, .session-item.slide-in, .ov-avatar::before) { animation: none; }
  html.app-ui body:not(.admin-ui) .rv { opacity: 1; transform: none; filter: none; }
}
html.app-ui body:not(.admin-ui) .ov-avatar { isolation: isolate; }

/* ================================================================ the Live page, the folding menu, tab-like controls ===== */
/* the four big live numbers: the lines don't redraw with every reading */
html.app-ui body:not(.admin-ui) #live-hero { margin-bottom: 18px; }
html.app-ui body:not(.admin-ui) .sc-row.live .spark polyline { animation: none; stroke-dashoffset: 0; stroke-dasharray: none; }
html.app-ui body:not(.admin-ui) .sc-row.live .sc > b { font-size: var(--fs-36, 36px); }
html.app-ui body:not(.admin-ui) .sc-wait { color: var(--u-text-2); animation: ui-blink 1.2s ease-in-out infinite; }
@keyframes ui-blink { 50% { opacity: .3; } }
/* the live page's two columns: wider main, the side as a column of cards */
html.app-ui body:not(.admin-ui) .lv-split { gap: 18px; }
/* the setup check before tracking */
html.app-ui body:not(.admin-ui) .lv-check { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-bottom: 26px; }
html.app-ui body:not(.admin-ui) .lv-check-i { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 14px; background: var(--u-card);
  border: 1px solid var(--u-line); box-shadow: 0 10px 26px var(--u-shadow); }
html.app-ui body:not(.admin-ui) .lv-check-i > .bi { display: grid; place-items: center; flex: none; width: 34px; height: 34px; border-radius: 10px; font-size: var(--fs-17, 17px);
  color: #10131c; background: var(--p3, var(--u-glow)); }
html.app-ui body:not(.admin-ui) .lv-check-i.ok > .bi { background: var(--u-good); }
html.app-ui body:not(.admin-ui) .lv-check-i.bad > .bi { background: var(--u-bad); }
html.app-ui body:not(.admin-ui) .lv-check-i b { display: block; font-size: var(--fs-15, 15px); color: var(--u-head); }
html.app-ui body:not(.admin-ui) .lv-check-i span { font-size: var(--fs-13_5, 13.5px); color: var(--u-text-2); }

/* the side menu folded to a rail of icons */
html.app-ui .ui-rail { display: none; }
@media (min-width: 992px) {
  html.app-ui body:not(.admin-ui) .ui-rail { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 8px; border-radius: 10px; border: 0;
    background: none; color: var(--u-text-2); font: 600 var(--fs-13, 13px) var(--font-body); cursor: var(--cursor-hand, pointer); }
  html.app-ui body:not(.admin-ui) .ui-rail:hover { color: var(--u-head); background: var(--u-card-2); }
  html.app-ui.nav-rail body:not(.admin-ui) { padding-left: 76px; }
  html.app-ui.nav-rail body:not(.admin-ui) .site-header { width: 76px; padding: 18px 10px; }
  html.app-ui.nav-rail body:not(.admin-ui) :is(.brand > span, .nav-k, .ui-pal, .user-chip .user-name, .ui-theme span) { display: none; }
  html.app-ui.nav-rail body:not(.admin-ui) .brand { justify-content: center; padding: 0; }
  html.app-ui.nav-rail body:not(.admin-ui) .site-header .tab { justify-content: center; padding: 8px 0; font-size: 0; gap: 0; }
  html.app-ui.nav-rail body:not(.admin-ui) .site-header .tab .bi { font-size: var(--fs-17, 17px); }
  html.app-ui.nav-rail body:not(.admin-ui) .site-header .tab :is(.nav-count, .new-dot, .live-dot) { position: absolute; top: 2px; right: 6px; margin: 0; }
  html.app-ui.nav-rail body:not(.admin-ui) .site-header .tab.discord-tab::after { content: none; }
  html.app-ui.nav-rail body:not(.admin-ui) .user-chip { justify-content: center; }
  html.app-ui.nav-rail body:not(.admin-ui) .test-site-bar { margin-left: -76px; padding-left: 88px; }
  html.app-ui body:not(.admin-ui), html.app-ui body:not(.admin-ui) .site-header { transition: padding-left .35s cubic-bezier(.16, 1, .3, 1), width .35s cubic-bezier(.16, 1, .3, 1); }
}

/* the other pages' own switches (board: live / today, rankings: classes, achievements: tiers, profile) as tab pills */
html.app-ui body:not(.admin-ui) :is(.seg, .btn-group) { gap: 4px; padding: 4px; border-radius: 12px; background: var(--u-card-2); border: 1px solid var(--u-line); }
html.app-ui body:not(.admin-ui) :is(.seg button, .btn-group > .btn) { border: 0 !important; border-radius: 9px !important; background: none; color: var(--u-text-2); font-weight: 600;
  transition: background-color .25s, color .25s, transform .2s; }
html.app-ui body:not(.admin-ui) :is(.seg button, .btn-group > .btn):hover { color: var(--u-head); background: var(--u-card-3); }
html.app-ui body:not(.admin-ui) :is(.seg button.active, .btn-group > .btn.active, .btn-check:checked + .btn) { color: #1f1800 !important; background: var(--u-act) !important;
  box-shadow: 0 4px 14px color-mix(in srgb, var(--u-act) 35%, transparent); }
html.app-ui body:not(.admin-ui) :is(.ach-pill, .rk-classes button, .board-filters .btn) { border-radius: 999px; transition: transform .2s, background-color .25s; }
html.app-ui body:not(.admin-ui) :is(.ach-pill, .rk-classes button):hover { transform: translateY(-1px); }
@media (max-width: 991.98px) { html.app-ui body:not(.admin-ui) .lv-check { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { html.app-ui body:not(.admin-ui) .sc-wait { animation: none; } }
/* chips and statuses on the dark player cards (look-dark) keep their own see-through look, in both themes */
html.app-ui body:not(.admin-ui) .look-dark :is(.chip.badge-record, .chip.badge-hours, .chip.badge-months, .board-status) { color: #fff; background: rgba(255, 255, 255, .16); border-color: rgba(255, 255, 255, .4); }
html.app-ui body:not(.admin-ui) .look-dark .board-status.idle { color: #ffcd2e; }
html.app-ui body:not(.admin-ui) .look-dark .board-status.live { color: #7dff9b; }
/* the Plus chip and the record chip keep their own colours in the app look */
html.app-ui body:not(.admin-ui) .chip.plus { color: #3b2a1a; background: linear-gradient(135deg, #ffe08a, #f4b73a); border-color: #c98a1a; }
html.app-ui body:not(.admin-ui) .chip.pb { color: #7a4a00; background: #ffe9a8; border-color: #f0c860; }
html.app-ui body:not(.admin-ui) .look-dark .chip.lvlup { background: rgba(255, 207, 77, .22); }
html.app-ui body:not(.admin-ui) .chip.supporter { color: #fff; background: #e0457b; border-color: #b02a5c; }
html.app-ui body:not(.admin-ui) .sc-switch button.on { background: var(--u-act); color: #1f1800; }

/* ================================================================ Rankings (characters and guilds) ===================== */
/* the head in the band: title, its own buttons, the Characters / Guilds tabs under them */
html.app-ui body:not(.admin-ui) .rk-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 10px 20px; }
html.app-ui body:not(.admin-ui) .rk-head-acts { display: flex; gap: 8px; }
html.app-ui body:not(.admin-ui) .rk-tabs .pt { text-decoration: none; }
html.app-ui body:not(.admin-ui) .rk-stats { margin-bottom: 18px; }
html.app-ui body:not(.admin-ui) .rk-acts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
html.app-ui body:not(.admin-ui) .rk-mix { display: flex; gap: 2px; height: 8px; margin-top: 12px; overflow: hidden; border-radius: 999px; }
html.app-ui body:not(.admin-ui) .rk-mix i { min-width: 4px; transform-origin: left; animation: rk-grow .9s cubic-bezier(.16, 1, .3, 1) both; }
@keyframes rk-grow { from { transform: scaleX(0); } }

/* the top 3: three plain cards in a row, 1 to 3 from the left, the same cards as the rest of the app. The place in its
   medal colour is the one accent; the class colour stays on the avatar and the class dot. Players' looks stay their own. */
html.app-ui body:not(.admin-ui) .rk-stage { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-bottom: 18px; }
html.app-ui body:not(.admin-ui) .rk-stage[hidden] { display: none; }
html.app-ui body:not(.admin-ui) .rk-spot { min-width: 0; }
html.app-ui body:not(.admin-ui) .rk-stage .rk-card { --medal: #b9c2cf; display: flex; flex-direction: column; align-items: stretch; gap: 14px; height: 100%; margin: 0;
  padding: 16px 18px 18px; border-radius: 16px; text-align: left; transition: border-color .2s, background-color .2s; }
html.app-ui body:not(.admin-ui) .rk-stage .p1 .rk-card { --medal: #f2bf3a; }
html.app-ui body:not(.admin-ui) .rk-stage .p3 .rk-card { --medal: #d28a55; }
html.app-ui[data-ui="light"] body:not(.admin-ui) .rk-stage .rk-card { --medal: #66717f; }
html.app-ui[data-ui="light"] body:not(.admin-ui) .rk-stage .p1 .rk-card { --medal: #b07d00; }
html.app-ui[data-ui="light"] body:not(.admin-ui) .rk-stage .p3 .rk-card { --medal: #a65a24; }
html.app-ui body:not(.admin-ui) .rk-stage .rk-card:not(.look) {
  --u-card: inherit; --u-card-2: inherit; --u-card-3: inherit; --u-line: inherit; --u-line-2: inherit; --u-head: inherit; --u-text: inherit; --u-text-2: inherit;
  --u-link: inherit; --u-exp: inherit; --u-meso: inherit; --u-good: inherit; --u-bad: inherit; --exp: inherit; --meso: inherit;
  --wood: var(--u-card); --wood-2: var(--u-card); --wood-3: var(--u-card-2); --wood-line: var(--u-line); --wood-line-2: var(--u-line-2);
  --ink: var(--u-text); --ink-2: var(--u-text-2); --muted: var(--u-text-2); --ink-strong: var(--u-head); --cream: var(--u-head);
  color: var(--u-text); background: var(--u-card); border: 1px solid var(--u-line); box-shadow: 0 10px 26px var(--u-shadow);
}
html.app-ui body:not(.admin-ui) .rk-stage .rk-card.has-card:not(.look):hover { border-color: var(--u-text-2); }
html.app-ui body:not(.admin-ui) .rk-stage .rk-card.mine:not(.look) { border-color: var(--u-act); }
html.app-ui body:not(.admin-ui) .rk-stage .rk-card:not(.look) :is(b, strong, .rk-name, .rk-name *) { color: var(--u-head); }
html.app-ui body:not(.admin-ui) .rk-card-top { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
html.app-ui body:not(.admin-ui) .rk-place { font: 700 var(--fs-34, 34px)/1 var(--font-display); color: var(--medal); font-variant-numeric: tabular-nums; }
html.app-ui body:not(.admin-ui) .rk-place small { margin-left: 2px; font-size: var(--fs-15, 15px); }
html.app-ui body:not(.admin-ui) .rk-stage .rk-lv { font-size: var(--fs-22, 22px); line-height: 1; color: var(--u-act); font-variant-numeric: tabular-nums; }
html.app-ui[data-ui="light"] body:not(.admin-ui) .rk-stage .rk-card:not(.look) .rk-lv { color: #c45a08; }
html.app-ui body:not(.admin-ui) .rk-card-who { display: flex; align-items: center; gap: 12px; min-width: 0; }
html.app-ui body:not(.admin-ui) .rk-card-id { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; min-width: 0; }
html.app-ui body:not(.admin-ui) .rk-stage .rk-av { width: 46px; height: 46px; font-size: var(--fs-20, 20px); border-width: 2px; box-shadow: none; }
html.app-ui body:not(.admin-ui) .rk-stage .rk-name { font-size: var(--fs-18, 18px); line-height: 1.2; }
html.app-ui body:not(.admin-ui) .rk-stage .rk-job { font-size: var(--fs-13, 13px); font-weight: 600; color: var(--u-text-2); }
html.app-ui body:not(.admin-ui) .rk-stage .rk-guild { margin: 0; }
html.app-ui body:not(.admin-ui) .rk-stage .title-tag { align-self: flex-start; margin: -4px 0 0; }
html.app-ui body:not(.admin-ui) .rk-stage .rk-exp { width: auto; margin: auto 0 0; }
@media (max-width: 767.98px) {
  html.app-ui body:not(.admin-ui) .rk-stage { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  html.app-ui body:not(.admin-ui) .rk-stage .rk-card { gap: 10px; padding: 12px 14px 14px; }
  html.app-ui body:not(.admin-ui) .rk-place { font-size: var(--fs-26, 26px); }
  html.app-ui body:not(.admin-ui) .rk-stage .rk-lv { font-size: var(--fs-17, 17px); }
  html.app-ui body:not(.admin-ui) .rk-stage .rk-av { width: 38px; height: 38px; font-size: var(--fs-17, 17px); }
  html.app-ui body:not(.admin-ui) .rk-stage .rk-name { font-size: var(--fs-16, 16px); }
}

/* the class filters: each in its class colour, with how many */
html.app-ui body:not(.admin-ui) .rk-tools { gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--u-line); }
html.app-ui body:not(.admin-ui) .rk-classes { gap: 6px; }
html.app-ui body:not(.admin-ui) .rk-classes button { display: inline-flex; align-items: center; gap: 6px; padding: 5px 8px 5px 12px; font-size: var(--fs-13_5, 13.5px); font-weight: 700;
  color: var(--u-text); background: var(--u-card-2); border: 1px solid var(--u-line); }
html.app-ui body:not(.admin-ui) .rk-classes button .bi { color: var(--cc); }
html.app-ui body:not(.admin-ui) .rk-classes button:hover { border-color: color-mix(in srgb, var(--cc) 60%, transparent); }
html.app-ui body:not(.admin-ui) .rk-classes button.active { color: #10131c !important; background: var(--cc) !important; border-color: transparent !important;
  box-shadow: 0 6px 16px color-mix(in srgb, var(--cc) 35%, transparent); }
html.app-ui body:not(.admin-ui) .rk-classes button.active .bi { color: inherit; }
html.app-ui body:not(.admin-ui) .rk-n { min-width: 22px; padding: 1px 7px; border-radius: 999px; font: 700 var(--fs-11_5, 11.5px)/16px var(--font-body); font-variant-numeric: tabular-nums; text-align: center;
  background: color-mix(in srgb, var(--cc) 20%, transparent); }
html.app-ui body:not(.admin-ui) .rk-classes button.active .rk-n { background: rgba(0, 0, 0, .16); }
html.app-ui body:not(.admin-ui) .rk-find { position: relative; flex: 0 1 230px; min-width: 170px; margin: 0; }
html.app-ui body:not(.admin-ui) .rk-find .bi { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); color: var(--u-text-2); pointer-events: none; }
html.app-ui body:not(.admin-ui) .rk-find .rk-search { width: 100%; padding-left: 32px; border-radius: 10px; }

/* the table: columns with a header, the place a medal for 1 to 3, you outlined in gold */
html.app-ui body:not(.admin-ui) .rk-thead { display: grid; grid-template-columns: 30px 36px minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, 1fr) 150px; gap: 14px; }
html.app-ui body:not(.admin-ui) .rk-thead .r { text-align: right; }
html.app-ui body:not(.admin-ui) .rk-thead[hidden] { display: none; }
html.app-ui body:not(.admin-ui) .rk-feed { display: flex; flex-direction: column; }
html.app-ui body:not(.admin-ui) .rk-feed .rk-row { display: grid; grid-template-columns: 30px 36px minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, 1fr) 150px; gap: 14px;
  align-items: center; padding: 9px 14px; border-radius: 12px; position: relative;
  transition: transform .25s cubic-bezier(.16, 1, .3, 1), border-color .25s, box-shadow .25s; }
html.app-ui body:not(.admin-ui) .rk-feed .rk-row:hover { transform: translateX(4px); border-color: color-mix(in srgb, var(--u-act) 45%, transparent); }
html.app-ui body:not(.admin-ui) .rk-feed .rk-row.mine { box-shadow: 0 0 0 2px var(--u-act), 0 8px 22px color-mix(in srgb, var(--u-act) 22%, transparent); }
html.app-ui body:not(.admin-ui) .rk-feed .rk-row .rank { position: relative; z-index: 2; }
html.app-ui body:not(.admin-ui) .rk-feed .rk-row .rank:not(.r1, .r2, .r3) { background: none; color: var(--u-text-2); font-variant-numeric: tabular-nums; }
html.app-ui body:not(.admin-ui) .rk-feed .rk-row .feed-name { font-size: var(--fs-16, 16px); }
html.app-ui body:not(.admin-ui) .rk-col { position: relative; z-index: 2; display: flex; align-items: center; gap: 6px; min-width: 0; font-size: var(--fs-13_5, 13.5px); color: var(--u-text-2); }
html.app-ui body:not(.admin-ui) .rk-col .job-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
html.app-ui body:not(.admin-ui) .rk-col .rk-guild { margin-left: 0; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
html.app-ui body:not(.admin-ui) .rk-none { opacity: .5; }
html.app-ui body:not(.admin-ui) .rk-feed .rk-right { flex: none; }
html.app-ui body:not(.admin-ui) .rk-feed .rk-row-lv { color: var(--u-act); font-variant-numeric: tabular-nums; }
html.app-ui[data-ui="light"] body:not(.admin-ui) .rk-feed .rk-row-lv { color: #c45a08; }
html.app-ui body:not(.admin-ui) .rk-empty { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 34px 16px; color: var(--u-text-2); }
html.app-ui body:not(.admin-ui) .rk-pager button { border-radius: 10px; background: var(--u-card-2); color: var(--u-text); border-color: var(--u-line); }
html.app-ui body:not(.admin-ui) .rk-pager button.active { color: #1f1800; background: var(--u-act); border-color: transparent; }
@media (min-width: 992px) { html.app-ui body:not(.admin-ui) .rk-feed .rk-sub { display: none; } }
@media (max-width: 991.98px) {
  html.app-ui body:not(.admin-ui) :is(.rk-thead, .rk-col) { display: none !important; }
  html.app-ui body:not(.admin-ui) .rk-feed .rk-row { padding: 8px 10px; }
  html.app-ui body:not(.admin-ui) .rk-feed .rk-right { width: 104px; }
  html.app-ui body:not(.admin-ui) .rk-head { grid-template-columns: minmax(0, 1fr); }
  html.app-ui body:not(.admin-ui) .rk-find { flex: 1 1 100%; }
}

/* you, at the bottom of the screen while your row is out of sight */
html.app-ui body:not(.admin-ui) .rk-mebar:not([hidden]) { position: fixed; z-index: 1030; bottom: 18px; left: calc(240px + (100vw - 240px) / 2); width: min(760px, calc(100vw - 240px - 400px));
  transform: translateX(-50%); display: grid; grid-template-columns: 30px 36px minmax(0, 1fr) auto 120px auto; align-items: center; gap: 12px; padding: 10px 12px 10px 14px;
  border-radius: 16px; border: 1px solid var(--u-act); background: color-mix(in srgb, var(--u-card) 90%, transparent); backdrop-filter: blur(12px);
  box-shadow: 0 18px 44px var(--u-shadow), 0 0 0 4px color-mix(in srgb, var(--u-act) 14%, transparent); animation: rk-up .45s cubic-bezier(.16, 1, .3, 1) both; }
@keyframes rk-up { from { opacity: 0; transform: translate(-50%, 24px); } }
html.app-ui.nav-rail body:not(.admin-ui) .rk-mebar:not([hidden]) { left: calc(76px + (100vw - 76px) / 2); width: min(760px, calc(100vw - 76px - 400px)); }
html.app-ui body:not(.admin-ui) .rk-mebar .rank { background: var(--u-act); color: #1f1800; font-variant-numeric: tabular-nums; }
html.app-ui body:not(.admin-ui) .rk-me-who { display: flex; flex-direction: column; min-width: 0; line-height: 1.2; }
html.app-ui body:not(.admin-ui) .rk-me-who b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--u-head); font: 700 var(--fs-16, 16px) var(--font-display); }
html.app-ui body:not(.admin-ui) .rk-me-who small { color: var(--u-text-2); font-size: var(--fs-12_5, 12.5px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
html.app-ui body:not(.admin-ui) .rk-me-lv { font: 700 var(--fs-17, 17px) var(--font-display); color: var(--u-act); }
html.app-ui body:not(.admin-ui) .rk-mebar .rk-exp { margin: 0; }
@media (max-width: 991.98px) {
  html.app-ui body:not(.admin-ui) .rk-mebar:not([hidden]) { left: 12px; right: 12px; width: auto; transform: none; bottom: calc(76px + env(safe-area-inset-bottom));
    grid-template-columns: 30px minmax(0, 1fr) auto auto; gap: 10px; animation-name: rk-up-m; }
  html.app-ui body:not(.admin-ui) .rk-mebar :is(.rk-av, .rk-exp) { display: none; }
}
@keyframes rk-up-m { from { opacity: 0; transform: translateY(24px); } }
@media (prefers-reduced-motion: reduce) {
  html.app-ui body:not(.admin-ui) :is(.rk-mix i, .rk-mebar) { animation: none !important; }
  html.app-ui body:not(.admin-ui) .rk-feed .rk-row:hover { transform: none; }
}
@media (max-width: 991.98px) {
  /* the colour dots sit next to the Light / Dark button, clear of the name at the top */
  html.app-ui body:not(.admin-ui) .ui-look { display: flex; align-items: center; gap: 12px; }
  html.app-ui body:not(.admin-ui) .ui-look .ui-pal { position: static; }
  html.app-ui body:not(.admin-ui) .ui-look .ui-theme { margin: 0; }
  /* rankings on a phone: your place across the top, the other numbers under it, texts that wrap */
  html.app-ui body:not(.admin-ui) .rk-stats .sc:first-child { grid-column: 1 / -1; }
  html.app-ui body:not(.admin-ui) .rk-stats .sc-foot { white-space: normal; }
}
html.app-ui body:not(.admin-ui) .rk-card .rk-guild { max-width: 100%; margin-left: 0; overflow: hidden; text-overflow: ellipsis; }
/* in the light look, the class colours and the gold are too pale for the level numbers: darker */
html.app-ui[data-ui="light"] body:not(.admin-ui) .rk-me-lv { color: #c45a08; }

/* ================================================================ the guild ranking ===== */
/* 1 to 3 from the left, all the same size; the town scenes stay (they're the guilds' own banners) */
html.app-ui body:not(.admin-ui) .gr-podium { align-items: stretch; }
html.app-ui body:not(.admin-ui) .gr-spot { border: 1px solid var(--u-line); border-radius: 16px; background: var(--u-card); color: var(--u-text); box-shadow: 0 10px 26px var(--u-shadow); }
html.app-ui body:not(.admin-ui) .gr-spot.p1 { padding-bottom: 14px; border-color: var(--u-line); box-shadow: 0 10px 26px var(--u-shadow); }
html.app-ui body:not(.admin-ui) .gr-spot b { color: var(--u-head); }
html.app-ui body:not(.admin-ui) .gr-spot small { color: var(--u-text-2); opacity: 1; }
html.app-ui body:not(.admin-ui) .gr-place { width: auto; height: auto; padding: 2px 10px; border-radius: 8px; font-size: var(--fs-16, 16px); background: rgba(10, 12, 20, .72); color: #f2bf3a; }
html.app-ui body:not(.admin-ui) .gr-spot.p2 .gr-place { background: rgba(10, 12, 20, .72); color: #d3d9e2; }
html.app-ui body:not(.admin-ui) .gr-spot.p3 .gr-place { background: rgba(10, 12, 20, .72); color: #e3a06d; }
html.app-ui body:not(.admin-ui) .gr-week { display: inline-flex; gap: 4px; letter-spacing: 0; }
html.app-ui body:not(.admin-ui) .gr-week i { width: 10px; height: 10px; border-radius: 3px; background: var(--u-card-3, var(--u-card-2)); border: 1px solid var(--u-line); }
html.app-ui body:not(.admin-ui) .gr-week i.on { background: var(--u-good); border-color: transparent; }
@media (max-width: 640px) { html.app-ui body:not(.admin-ui) .gr-week { display: none; } }

/* ================================================================ achievements ===== */
/* Calmer cards: no glow, no shine sweeping over them, no spinning medal. The tier colour shows on the medal of the ones you
   earned; the ones still to get have a plain medal and their progress bar. The one you wear and new ones get a plain outline. */
html.app-ui body:not(.admin-ui) .ac-tier .achc { --tier: #5fae35; gap: 12px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--u-line); background: var(--u-card-2);
  box-shadow: none; animation: none; transition: border-color .2s; }
html.app-ui body:not(.admin-ui) .ac-tier .achc.t-medium { --tier: #e9a21c; }
html.app-ui body:not(.admin-ui) .ac-tier .achc.t-hard { --tier: #e0524a; }
html.app-ui body:not(.admin-ui) .ac-tier .achc.t-extreme { --tier: #9a6ae8; }
html.app-ui body:not(.admin-ui) .ac-tier .achc:hover { transform: none; box-shadow: none; border-color: var(--u-text-2); }
html.app-ui body:not(.admin-ui) .ac-tier .achc::after { content: none; }
html.app-ui body:not(.admin-ui) .ac-tier .achc.earned, html.app-ui body:not(.admin-ui) .ac-tier .achc.earned.t-extreme { background: var(--u-card-2); border-color: var(--u-line); box-shadow: none; }
html.app-ui body:not(.admin-ui) .ac-tier .achc .achc-medal { width: 44px; height: 44px; font-size: var(--fs-19, 19px); box-shadow: none; animation: none; color: var(--u-text-2); background: var(--u-card); border: 1px solid var(--u-line); }
html.app-ui body:not(.admin-ui) .ac-tier .achc.earned .achc-medal { color: #fff; background: var(--tier); border-color: transparent; }
html.app-ui body:not(.admin-ui) .ac-tier .achc .achc-top b, html.app-ui body:not(.admin-ui) .ac-tier .achc.t-extreme b { color: var(--u-head); }
html.app-ui body:not(.admin-ui) .ac-tier .achc :is(p, .achc-left), html.app-ui body:not(.admin-ui) .ac-tier .achc.t-extreme :is(p, .achc-left) { color: var(--u-text-2); }
html.app-ui body:not(.admin-ui) .ac-tier .achc .achc-bar { height: 6px; background: var(--u-card); }
html.app-ui body:not(.admin-ui) .ac-tier .achc .achc-bar i { background: var(--tier); }
html.app-ui body:not(.admin-ui) .ac-tier .achc .achc-done, html.app-ui body:not(.admin-ui) .ac-tier .achc.earned.t-extreme .achc-done { color: var(--u-good); }
html.app-ui body:not(.admin-ui) .ac-tier .achc-pts { padding: 0 7px; color: var(--u-text-2); background: none; border: 1px solid var(--u-line); }
html.app-ui body:not(.admin-ui) .ac-tier .achc.earned .achc-pts { color: var(--u-head); }
html.app-ui body:not(.admin-ui) .ac-tier .achc-wear { color: var(--u-head); background: none; border: 1px solid var(--u-line); }
html.app-ui body:not(.admin-ui) .ac-tier .achc-wear:hover { border-color: var(--u-act); background: none; }
html.app-ui body:not(.admin-ui) .ac-tier .achc-worn { color: var(--u-act); }
html.app-ui body:not(.admin-ui) .ac-tier .achc.secret.locked { background: none; border: 1px dashed var(--u-line); }
html.app-ui body:not(.admin-ui) .ac-tier .achc.secret.locked .achc-medal { background: none; }
html.app-ui body:not(.admin-ui) .ac-tier .achc.worn { border-color: var(--u-act); box-shadow: inset 0 0 0 1px var(--u-act); }
html.app-ui body:not(.admin-ui) .ac-tier .achc.fresh { border-color: var(--u-act); box-shadow: none; animation: ach-new .5s ease-out both; }
@keyframes ach-new { from { opacity: 0; transform: translateY(6px); } }
html.app-ui[data-ui="light"] body:not(.admin-ui) .ac-tier .achc { background: var(--u-card); }
html.app-ui[data-ui="light"] body:not(.admin-ui) .ac-tier .achc .achc-medal { background: var(--u-card-2); }
html.app-ui[data-ui="light"] body:not(.admin-ui) .ac-tier .achc.earned .achc-medal { background: var(--tier); }
@media (prefers-reduced-motion: reduce) { html.app-ui body:not(.admin-ui) .ac-tier .achc.fresh { animation: none; } }

/* the banner with the confetti (a level up, a new achievement): a plain card at the top, not a glowing headline over the page
   (the pop-out keeps its own) */
html.app-ui .confetti .levelup-banner { top: 96px; padding: 12px 22px; border-radius: 14px; font: 700 var(--fs-20, 20px)/1.2 var(--font-display); letter-spacing: 0; text-transform: lowercase;
  color: var(--u-head, #fff); background: var(--u-card, #1b1f2e); border: 1px solid var(--u-act, #ffcd2e); text-shadow: none; box-shadow: 0 18px 40px rgba(0, 0, 0, .3);
  animation: ui-banner 3.6s cubic-bezier(.16, 1, .3, 1) forwards; }
@keyframes ui-banner { 0% { opacity: 0; transform: translate(-50%, -16px); } 10% { opacity: 1; transform: translate(-50%, 0); } 85% { opacity: 1; transform: translate(-50%, 0); }
  100% { opacity: 0; transform: translate(-50%, -8px); } }
html.app-ui .confetti .levelup-banner::first-letter { text-transform: uppercase; }
/* the trophy hall: the rank medal flat in its ring, no glow or bobbing; the rank you're at a plain gold step */
html.app-ui body:not(.admin-ui) .ac-ring { width: 112px; height: 112px; padding: 7px; background: conic-gradient(var(--ring) calc(var(--p) * 1%), var(--u-card-2) 0); box-shadow: none; }
html.app-ui body:not(.admin-ui) .ac-ring.rank .ach-medal { font-size: var(--fs-40, 40px); border: 0; box-shadow: none; animation: none; background: var(--u-card); color: #e9a21c; }
html.app-ui body:not(.admin-ui) .ac-ring.rank .ach-medal.r1, html.app-ui body:not(.admin-ui) .ac-ring.rank .ach-medal.r2 { color: #c7ccd4; }
html.app-ui body:not(.admin-ui) .ac-ring.rank .ach-medal.r0 { color: #c08a5a; }
html.app-ui body:not(.admin-ui) .ac-ring.rank .ach-medal.r5, html.app-ui body:not(.admin-ui) .ac-ring.rank .ach-medal.r6 { color: #5aa9ff; }
html.app-ui body:not(.admin-ui) .ac-ladder li::before { height: 3px; background: var(--u-line); }
html.app-ui body:not(.admin-ui) .ac-ladder li.done::before, html.app-ui body:not(.admin-ui) .ac-ladder li.here::before { background: var(--u-good); }
html.app-ui body:not(.admin-ui) .ac-ladder li.here .ac-step { width: 34px; height: 34px; margin-top: 0; box-shadow: none; background: var(--u-act); border-color: transparent; color: #1f1800; }
html.app-ui body:not(.admin-ui) .ac-ladder li.done .ac-step { background: var(--u-good); border-color: transparent; }
html.app-ui body:not(.admin-ui) .ac-tr { background: var(--u-card-2); border-color: var(--u-line); }
html.app-ui body:not(.admin-ui) .ac-tr .ac-ring { width: 50px; height: 50px; padding: 4px; }

/* ================================================================ guild start, spots ===== */
/* the two guild cards: plain cards, without the emoji badges hanging off their corners */
html.app-ui body:not(.admin-ui) .gs-card-ic { display: none; }
html.app-ui[data-ui] body:not(.admin-ui) :is(.gs-card.join, .gs-card.start) { border-radius: 16px; border: 1px solid var(--u-line); background: var(--u-card); color: var(--u-text);
  box-shadow: 0 10px 26px var(--u-shadow); }
html.app-ui body:not(.admin-ui) .gs-card h2 { color: var(--u-head); }
html.app-ui body:not(.admin-ui) .gs-card p { color: var(--u-text-2); }
/* the training spots: the top 3 like the others, their place in its medal colour does the work */
html.app-ui[data-ui] body:not(.admin-ui) .spot-row.top { background: var(--u-card-2); border-color: var(--u-line); }
/* the board's buttons at the top: on one line each, wrapping on a phone */
html.app-ui body:not(.admin-ui) #board-me { flex-wrap: wrap; }
html.app-ui body:not(.admin-ui) #board-me .btn { white-space: nowrap; }

/* ================================================================ the guide ===== */
/* the road: a thin line with plain numbered-style markers instead of a yellow dashed road and glowing yellow circles */
html.app-ui body:not(.admin-ui) .gd-road::before { left: 25px; width: 2px; border-radius: 1px; background: var(--u-line); }
html.app-ui body:not(.admin-ui) .gd-sign { width: 44px; height: 44px; left: -62px; font-size: var(--fs-19, 19px); color: var(--u-act); background: var(--u-card); border: 1px solid var(--u-line); box-shadow: none; }
@media (max-width: 800px) {
  html.app-ui body:not(.admin-ui) .gd-road::before { left: 17px; }
  html.app-ui body:not(.admin-ui) .gd-sign { left: -52px; width: 36px; height: 36px; font-size: var(--fs-16, 16px); }
}
html.app-ui[data-ui="light"] body:not(.admin-ui) .gd-sign { color: #b86e00; }

/* your theme banner at the top of the Overview: in place of the band's town, the page's fade over it kept for the words */
html.app-ui body:not(.admin-ui) .app-band.has-tb .app-band-art::before { content: none; }
html.app-ui body:not(.admin-ui) .app-band.has-tb .app-band-art .tb { border-radius: 0; }
html.app-ui body:not(.admin-ui) .tb-pick:hover { border-color: var(--u-text-2); }
html.app-ui body:not(.admin-ui) .tb-pick.picked { border-color: var(--u-act); }
html.app-ui body:not(.admin-ui) .tb-group-k { color: var(--u-head); }
html.app-ui body:not(.admin-ui) .tb-group-k small { color: var(--u-text-2); }
/* (with your banner the wash is lighter: your town shows, the words on the left stay readable) */
html.app-ui[data-ui] body:not(.admin-ui) .app-band.has-tb .app-band-art::after {
  background: linear-gradient(90deg, color-mix(in srgb, var(--u-bg-2) 82%, transparent) 0%, color-mix(in srgb, var(--u-bg-2) 55%, transparent) 40%, transparent 75%),
    linear-gradient(0deg, var(--u-bg) 0, transparent 45%);
}

/* ================================================================ session cards that open in place ===== */
html.app-ui body:not(.admin-ui) .session-card { position: relative; margin-bottom: 8px; }
html.app-ui body:not(.admin-ui) .session-card > .session-item { margin-bottom: 0; padding-right: 60px; }
html.app-ui body:not(.admin-ui) .session-more { position: absolute; z-index: 2; top: 20px; right: 14px; width: 34px; height: 34px; display: grid; place-items: center;
  padding: 0; border-radius: 10px; border: 1px solid var(--u-line); background: var(--u-card); color: var(--u-text-2); cursor: var(--cursor-hand, pointer);
  transition: color .2s, border-color .2s, transform .25s cubic-bezier(.16, 1, .3, 1); }
html.app-ui body:not(.admin-ui) .session-more:hover { color: var(--u-head); border-color: var(--u-text-2); }
html.app-ui body:not(.admin-ui) .session-more .bi { transition: transform .3s cubic-bezier(.16, 1, .3, 1); }
html.app-ui body:not(.admin-ui) .session-card.open .session-more .bi { transform: rotate(180deg); }
html.app-ui body:not(.admin-ui) .session-card.open > .session-item { border-bottom-left-radius: 0; border-bottom-right-radius: 0; transform: none; }
html.app-ui body:not(.admin-ui) .session-open { padding: 14px 16px 16px; border: 1px solid var(--u-line-2); border-top: 0; border-radius: 0 0 12px 12px; background: var(--u-card);
  animation: so-open .3s cubic-bezier(.16, 1, .3, 1) both; }
@keyframes so-open { from { opacity: 0; transform: translateY(-6px); } }
html.app-ui body:not(.admin-ui) .so-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 18px; }
html.app-ui body:not(.admin-ui) .so-k { margin-bottom: 6px; font-size: var(--fs-12, 12px); font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--u-text-2); }
html.app-ui body:not(.admin-ui) .so-key { margin-left: 8px; font-weight: 700; text-transform: none; letter-spacing: 0; }
html.app-ui body:not(.admin-ui) .so-key::before { content: ""; display: inline-block; width: 10px; height: 2px; margin-right: 4px; vertical-align: middle; }
html.app-ui body:not(.admin-ui) .so-key.up::before { background: var(--u-act); } html.app-ui body:not(.admin-ui) .so-key.death::before { background: var(--u-bad); }
html.app-ui body:not(.admin-ui) .so-chart { display: block; width: 100%; height: 96px; border-radius: 8px; background: var(--u-card-2); }
html.app-ui body:not(.admin-ui) .so-area { fill: color-mix(in srgb, var(--u-exp) 22%, transparent); }
html.app-ui body:not(.admin-ui) .so-line { fill: none; stroke: var(--u-exp); stroke-width: 2; stroke-linejoin: round; }
html.app-ui body:not(.admin-ui) .so-up { stroke: var(--u-act); stroke-width: 1.5; stroke-dasharray: 3 3; }
html.app-ui body:not(.admin-ui) .so-death { stroke: var(--u-bad); stroke-width: 1.5; stroke-dasharray: 3 3; }
html.app-ui body:not(.admin-ui) .so-side { display: flex; flex-direction: column; min-width: 0; }
html.app-ui body:not(.admin-ui) .so-facts { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-bottom: 12px; }
html.app-ui body:not(.admin-ui) .so-facts span { display: flex; flex-direction: column; line-height: 1.15; }
html.app-ui body:not(.admin-ui) .so-facts b { font: 700 var(--fs-17, 17px) var(--font-display); color: var(--u-head); font-variant-numeric: tabular-nums; }
html.app-ui body:not(.admin-ui) .so-facts small { font-size: var(--fs-12, 12px); color: var(--u-text-2); }
html.app-ui body:not(.admin-ui) .so-items { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
html.app-ui body:not(.admin-ui) .so-item { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; padding: 3px 10px 3px 5px; border-radius: 8px; font-size: var(--fs-13, 13px); font-weight: 600;
  color: var(--u-text); background: var(--u-card-2); border: 1px solid var(--u-line-2); }
html.app-ui body:not(.admin-ui) .so-item img { width: 22px; height: 22px; object-fit: contain; image-rendering: pixelated; }
html.app-ui body:not(.admin-ui) .so-item .bi { width: 22px; text-align: center; color: var(--u-meso); }
html.app-ui body:not(.admin-ui) .so-item small { color: var(--u-text-2); }
html.app-ui body:not(.admin-ui) .so-none { font-size: var(--fs-13, 13px); color: var(--u-text-2); }
html.app-ui body:not(.admin-ui) .so-go { align-self: flex-start; margin-top: auto; }
@media (max-width: 767.98px) {
  html.app-ui body:not(.admin-ui) .so-grid { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  html.app-ui body:not(.admin-ui) .session-more { top: 10px; right: 10px; }
}
@media (prefers-reduced-motion: reduce) { html.app-ui body:not(.admin-ui) .session-open { animation: none; } }
/* (picking two to compare: the chevron steps aside) */
html.app-ui body:not(.admin-ui) .picking .session-more { display: none; }
/* picking two sessions to compare: a dashed line round each, the picked ones lit in the button colour with a tick
   (the old pink wash was light, and in dark the light text on it couldn't be read) */
html.app-ui body:not(.admin-ui) .session-scroll.picking .session-item { outline: 2px dashed color-mix(in srgb, var(--u-act) 55%, transparent); outline-offset: -2px; cursor: pointer; }
html.app-ui body:not(.admin-ui) .session-scroll.picking .session-item.picked { position: relative; outline: 2px solid var(--u-act);
  background: color-mix(in srgb, var(--u-act) 14%, var(--u-card)); }
html.app-ui body:not(.admin-ui) .session-scroll.picking .session-item.picked::after { content: "\F26A"; position: absolute; top: 8px; right: 10px;
  font: normal 18px/1 "bootstrap-icons"; color: var(--u-act); }
html.app-ui body:not(.admin-ui) .so-foot { display: flex; justify-content: space-between; margin-top: 4px; font-size: var(--fs-12, 12px); color: var(--u-text-2); font-variant-numeric: tabular-nums; }
html.app-ui body:not(.admin-ui) .so-foot span:nth-child(2) { color: var(--u-exp); font-weight: 700; }
@media (max-width: 575.98px) {
  /* (on a phone the chevron is smaller, top right, with the name and time making room for it) */
  html.app-ui body:not(.admin-ui) .session-card > .session-item { padding-right: 10px; }
  html.app-ui body:not(.admin-ui) .session-more { top: 8px; right: 8px; width: 30px; height: 30px; }
  html.app-ui body:not(.admin-ui) .session-card :is(.session-name, .session-meta) { padding-right: 34px; }
}

/* the achievements: a tab per tier with how many you have, then what to show and which kind in one row */
html.app-ui body:not(.admin-ui) .ac-tabs { margin-top: 0; }
html.app-ui body:not(.admin-ui) .pt-n { padding: 1px 7px; border-radius: 999px; font: 700 var(--fs-11_5, 11.5px)/16px var(--font-body); font-variant-numeric: tabular-nums;
  color: var(--u-text-2); background: var(--u-card-2); }
html.app-ui body:not(.admin-ui) .pt.on .pt-n { color: #1f1800; background: var(--u-act); }
html.app-ui body:not(.admin-ui) .ac-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; }
html.app-ui body:not(.admin-ui) .ac-bar .seg small { margin-left: 4px; opacity: .75; font-variant-numeric: tabular-nums; }
html.app-ui body:not(.admin-ui) .ac-kind { display: flex; align-items: center; gap: 8px; margin: 0; font-size: var(--fs-13, 13px); font-weight: 700; color: var(--u-text-2); }
html.app-ui body:not(.admin-ui) .ac-kind .form-select { width: auto; min-width: 160px; }
html.app-ui body:not(.admin-ui) .ac-main { gap: 14px; }
/* earned ones softly in their tier's colour, the ones still to get a step back */
html.app-ui[data-ui] body:not(.admin-ui) .ac-tier .achc.earned:not(.worn):not(.fresh) { border-color: color-mix(in srgb, var(--tier) 38%, var(--u-line));
  background: color-mix(in srgb, var(--tier) 7%, var(--u-card-2)); }
html.app-ui body:not(.admin-ui) .ac-tier .achc.locked .achc-top b { color: var(--u-text); }
html.app-ui body:not(.admin-ui) .ac-tier .achc.locked :is(p, .achc-pts) { opacity: .8; }
html.app-ui body:not(.admin-ui) .ac-tier .achc.locked .achc-medal { opacity: .75; }
html.app-ui body:not(.admin-ui) .ac-tabs { overflow-x: auto; scrollbar-width: none; }
html.app-ui body:not(.admin-ui) .ac-tabs .pt { flex: none; white-space: nowrap; }
@media (max-width: 575.98px) { html.app-ui body:not(.admin-ui) .ac-tabs .pt { padding: 10px 10px; gap: 6px; } html.app-ui body:not(.admin-ui) .ac-tabs .pt > .bi { display: none; } }

/* ================================================================ the locked teaser ===== */
/* (players without the tier: the real layout blurred with made-up numbers, a lock, one line, the way to get it) */
html.app-ui body:not(.admin-ui) .lock-tz { --tz: #ffcd2e; position: relative; overflow: hidden; min-height: 280px; border-radius: 16px; border: 1px solid var(--u-line);
  background: var(--u-card); box-shadow: 0 10px 26px var(--u-shadow); }
html.app-ui body:not(.admin-ui) .lock-tz.t-lite { --tz: #4fd1c5; }
html.app-ui body:not(.admin-ui) .lock-tz.t-supporter { --tz: #ff7ab6; }
html.app-ui body:not(.admin-ui) .lock-tz-preview { padding: 14px; filter: blur(5px) saturate(.85); opacity: .55; pointer-events: none; user-select: none; }
html.app-ui body:not(.admin-ui) .lock-tz-preview .window { margin: 0; box-shadow: none; }
html.app-ui body:not(.admin-ui) .lock-tz-card { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  padding: 22px; text-align: center; background: radial-gradient(60% 70% at 50% 50%, color-mix(in srgb, var(--u-card) 92%, transparent), color-mix(in srgb, var(--u-card) 45%, transparent)); }
html.app-ui body:not(.admin-ui) .lock-tz-ic { display: grid; place-items: center; width: 46px; height: 46px; margin-bottom: 2px; border-radius: 14px; font-size: var(--fs-20, 20px);
  color: var(--tz); background: var(--u-card-2); border: 1px solid color-mix(in srgb, var(--tz) 45%, var(--u-line)); }
html.app-ui body:not(.admin-ui) .lock-tz-k { font-size: var(--fs-12, 12px); font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--tz); }
html.app-ui[data-ui="light"] body:not(.admin-ui) .lock-tz-k { color: color-mix(in srgb, var(--tz) 70%, #000); }
html.app-ui[data-ui="light"] body:not(.admin-ui) .lock-tz-ic { color: color-mix(in srgb, var(--tz) 75%, #000); }
html.app-ui body:not(.admin-ui) .lock-tz-card h2 { margin: 2px 0 0; font: 700 var(--fs-22, 22px)/1.2 var(--font-display); color: var(--u-head); }
html.app-ui body:not(.admin-ui) .lock-tz-card p { max-width: 440px; margin: 0; font-size: var(--fs-14_5, 14.5px); color: var(--u-text-2); }
html.app-ui body:not(.admin-ui) .lock-tz-btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 10px; }
html.app-ui body:not(.admin-ui) .lock-tz.h-100, html.app-ui body:not(.admin-ui) .row > [class*="col"] > .lock-tz { height: 100%; }
html.app-ui body:not(.admin-ui) .ach-lock-tz { min-height: 380px; }
html.app-ui body:not(.admin-ui) .lock-fake-goal { display: flex; flex-direction: column; gap: 6px; }
html.app-ui body:not(.admin-ui) .lock-fake-goal b { font: 700 var(--fs-30, 30px) var(--font-display); color: var(--u-head); }
@media (max-width: 575.98px) { html.app-ui body:not(.admin-ui) .lock-tz { min-height: 320px; } html.app-ui body:not(.admin-ui) .lock-tz-card h2 { font-size: var(--fs-19, 19px); } }
/* the list of what supporters and members get (Progress tab): plain cards in the page's colours, a small lock in the tier's */
html.app-ui[data-ui] body:not(.admin-ui) .teaser, html.app-ui[data-ui] body:not(.admin-ui) .teaser.member { background: var(--u-card-2); border: 1px solid var(--u-line); }
html.app-ui body:not(.admin-ui) .teaser .perk-title { color: var(--u-head); }
html.app-ui body:not(.admin-ui) .teaser .perk-text { color: var(--u-text-2); }
html.app-ui body:not(.admin-ui) .teaser .teaser-lock { color: #ff7ab6; } html.app-ui body:not(.admin-ui) .teaser.member .teaser-lock { color: #ffcd2e; }
html.app-ui[data-ui="light"] body:not(.admin-ui) .teaser .teaser-lock { color: #c2306b; } html.app-ui[data-ui="light"] body:not(.admin-ui) .teaser.member .teaser-lock { color: #b07d00; }

/* ================================================================ empty, error and loading states ===== */
/* empty: a monster of the game, one sentence, and the way on where there is one (the old icon steps aside) */
html.app-ui body:not(.admin-ui) .empty:not(.rk-empty) { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 24px 16px; text-align: center;
  font-size: var(--fs-14_5, 14.5px); color: var(--u-text-2); }
html.app-ui body:not(.admin-ui) .empty[hidden] { display: none !important; }
html.app-ui body:not(.admin-ui) .empty:not(.rk-empty)::before { content: ""; width: 56px; height: 44px; background: url("/static/mobs/100100-stand.gif") center bottom / contain no-repeat;
  image-rendering: pixelated; }
html.app-ui body:not(.admin-ui) .empty:has(> .bi-map, > .bi-geo-alt)::before { background-image: url("/static/mobs/1210102-stand.gif"); }
html.app-ui body:not(.admin-ui) .empty:has(> .bi-trophy, > .bi-award, > .bi-bullseye)::before { background-image: url("/static/mobs/2230101-stand.gif"); }
html.app-ui body:not(.admin-ui) .empty:has(> .bi-moon-stars, > .bi-calendar-week)::before { background-image: url("/static/mobs/130100-stand.gif"); }
html.app-ui body:not(.admin-ui) .empty:has(> .bi-gem, > .bi-bag)::before { background-image: url("/static/mobs/1210100-stand.gif"); }
html.app-ui body:not(.admin-ui) .empty:has(> .bi-person, > .bi-bar-chart-line)::before { background-image: url("/static/mobs/210100-stand.gif"); }
html.app-ui body:not(.admin-ui) .empty > .bi:first-child { display: none; }
html.app-ui body:not(.admin-ui) .empty .btn { margin-top: 4px; }
html.app-ui body:not(.admin-ui) .empty.py-2::before { width: 40px; height: 32px; }
/* an error: one sentence on what went wrong, and Try again */
html.app-ui body:not(.admin-ui) .ui-error { display: flex; flex-direction: column; align-items: center; gap: 6px; max-width: 520px; margin: 30px auto; padding: 28px 22px;
  text-align: center; border-radius: 16px; border: 1px solid color-mix(in srgb, var(--u-bad) 35%, var(--u-line)); background: var(--u-card); }
html.app-ui body:not(.admin-ui) .ui-error img { image-rendering: pixelated; object-fit: contain; }
html.app-ui body:not(.admin-ui) .ui-error b { font: 700 var(--fs-20, 20px) var(--font-display); color: var(--u-head); }
html.app-ui body:not(.admin-ui) .ui-error p { margin: 0 0 8px; color: var(--u-text-2); }
/* a page in grey while it loads */
html.app-ui body:not(.admin-ui) .ui-page-skel { display: flex; flex-direction: column; gap: 14px; padding-top: 8px; }
html.app-ui body:not(.admin-ui) .ui-page-skel i { position: relative; display: block; overflow: hidden; border-radius: 14px; background: var(--u-card); border: 1px solid var(--u-line-2); }
html.app-ui body:not(.admin-ui) .ui-page-skel i::after { content: ""; position: absolute; inset: 0; transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--u-head) 6%, transparent), transparent); animation: ui-skel 1.4s ease-in-out infinite; }
html.app-ui body:not(.admin-ui) .ui-page-skel .sk-title { width: min(340px, 70%); height: 40px; border-radius: 10px; }
html.app-ui body:not(.admin-ui) .ui-page-skel .sk-sub { width: min(520px, 90%); height: 16px; margin-top: -4px; border-radius: 8px; }
html.app-ui body:not(.admin-ui) .ui-page-skel .sk-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: 8px; }
html.app-ui body:not(.admin-ui) .ui-page-skel .sk-cards i { height: 128px; }
html.app-ui body:not(.admin-ui) .ui-page-skel .sk-win { height: 260px; }
html.app-ui body:not(.admin-ui) .ui-page-skel .sk-win.short { height: 160px; }
@media (max-width: 767.98px) { html.app-ui body:not(.admin-ui) .ui-page-skel .sk-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (prefers-reduced-motion: reduce) { html.app-ui body:not(.admin-ui) .ui-page-skel i::after { animation: none; } }
html.app-ui body:not(.admin-ui) .ui-error-btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }

/* ================================================================ a session's own page ===== */
/* the head: the map, the name (rename), when and how long, the character and the party; three big numbers; then tabs */
html.app-ui body:not(.admin-ui) .ss-head .back { display: inline-flex; align-items: center; margin-bottom: 12px; font-size: var(--fs-14, 14px); font-weight: 700; color: var(--u-text-2); text-decoration: none; }
html.app-ui body:not(.admin-ui) .ss-head .back:hover { color: var(--u-head); }
html.app-ui body:not(.admin-ui) .ss-id { display: flex; align-items: center; gap: 18px; min-width: 0; }
html.app-ui body:not(.admin-ui) .ss-map { flex: none; width: 84px; height: 84px; object-fit: contain; padding: 6px; border-radius: 18px; background: var(--u-card);
  border: 1px solid var(--u-line); image-rendering: pixelated; box-shadow: 0 10px 24px var(--u-shadow); }
html.app-ui body:not(.admin-ui) .ss-map.none { display: grid; place-items: center; font-size: var(--fs-30, 30px); color: var(--u-text-2); }
html.app-ui body:not(.admin-ui) .ss-who { min-width: 0; }
html.app-ui body:not(.admin-ui) .ss-title { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
html.app-ui body:not(.admin-ui) .ss-title .page-title { margin: 0; }
html.app-ui body:not(.admin-ui) .ss-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; margin-top: 8px; font-size: var(--fs-14, 14px); color: var(--u-text-2); }
html.app-ui body:not(.admin-ui) .ss-meta .bi { margin-right: 6px; }
html.app-ui body:not(.admin-ui) .ss-party { display: inline-flex; align-items: center; gap: 2px; margin: 0; }
html.app-ui body:not(.admin-ui) .ss-party .form-select { width: auto; padding-top: 3px; padding-bottom: 3px; font-size: var(--fs-13_5, 13.5px); }
html.app-ui body:not(.admin-ui) .ss-big { margin: 4px 0 18px; }
html.app-ui body:not(.admin-ui) .ss-tabs { margin: 0 0 16px; }
html.app-ui body:not(.admin-ui) .ss-pane > .window + .window, html.app-ui body:not(.admin-ui) .ss-pane > .window + .row { margin-top: 16px; }
html.app-ui body:not(.admin-ui) .ss-foot { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; margin-top: 18px; }
@media (max-width: 575.98px) {
  html.app-ui body:not(.admin-ui) .ss-id { gap: 12px; align-items: flex-start; }
  html.app-ui body:not(.admin-ui) .ss-map { width: 56px; height: 56px; padding: 4px; border-radius: 14px; }
  html.app-ui body:not(.admin-ui) .ss-tabs { overflow-x: auto; scrollbar-width: none; }
  html.app-ui body:not(.admin-ui) .ss-tabs .pt { flex: none; }
}

/* ================================================================ training spots ===== */
/* the controls in one bar: the level stepper, solo / party, the classes in their colours */
html.app-ui body:not(.admin-ui) .spot-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-bottom: 18px; padding-bottom: 16px; border-bottom: 1px solid var(--u-line); }
/* a class's 2nd jobs, under the classes (Top training spots): a row of its own, smaller */
html.app-ui body:not(.admin-ui) .spot-jobs { flex-basis: 100%; margin-top: -4px; padding-left: 12px; border-left: 2px solid var(--u-line); }
html.app-ui body:not(.admin-ui) .spot-jobs button { padding: 4px 8px 4px 11px; font-size: var(--fs-13, 13px); }
html.app-ui body:not(.admin-ui) .spot-level { display: flex; align-items: center; gap: 10px; margin: 0; font-weight: 700; color: var(--u-head); }
html.app-ui body:not(.admin-ui) .spot-stepper { display: inline-flex; align-items: center; overflow: hidden; border-radius: 12px; border: 1px solid var(--u-line); background: var(--u-card-2); }
html.app-ui body:not(.admin-ui) .spot-stepper .btn { width: 36px; height: 36px; padding: 0; border: 0 !important; border-radius: 0 !important; background: none; color: var(--u-text); font-size: var(--fs-18, 18px); }
html.app-ui body:not(.admin-ui) .spot-stepper .btn:hover { background: var(--u-card-3, var(--u-card)); color: var(--u-head); }
html.app-ui body:not(.admin-ui) .spot-stepper input { width: 58px; height: 36px; padding: 0; border: 0; border-radius: 0; text-align: center; font: 700 var(--fs-17, 17px) var(--font-display);
  background: none; color: var(--u-head); -moz-appearance: textfield; }
html.app-ui body:not(.admin-ui) .spot-stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
html.app-ui body:not(.admin-ui) .spot-class { display: flex; flex-wrap: wrap; gap: 6px; }
html.app-ui body:not(.admin-ui) .spot-class button { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; font-size: var(--fs-13_5, 13.5px); font-weight: 700;
  color: var(--u-text); background: var(--u-card-2); border: 1px solid var(--u-line); cursor: var(--cursor-hand, pointer); }
html.app-ui body:not(.admin-ui) .spot-range { margin-left: auto; font-size: var(--fs-13, 13px); color: var(--u-text-2); }
/* the top 3 as cards: the place, EXP/h big, the map, its monsters, then the rest of the numbers */
html.app-ui body:not(.admin-ui) .sp-stage { margin-bottom: 14px; }
html.app-ui body:not(.admin-ui) .sp-exp { font: 700 var(--fs-26, 26px)/1 var(--font-display); color: var(--u-exp); font-variant-numeric: tabular-nums; }
html.app-ui body:not(.admin-ui) .sp-exp small { margin-left: 4px; font: 700 var(--fs-12, 12px) var(--font-body); color: var(--u-text-2); }
html.app-ui body:not(.admin-ui) .sp-card .sp-map { flex: none; width: 64px; height: 64px; object-fit: contain; padding: 3px; border-radius: 12px; background: var(--u-card-2);
  border: 1px solid var(--u-line); image-rendering: pixelated; }
html.app-ui body:not(.admin-ui) .sp-card .rk-name { white-space: normal; font-size: var(--fs-17, 17px); }
html.app-ui body:not(.admin-ui) .sp-card .rk-job { font-weight: 600; }
html.app-ui body:not(.admin-ui) .sp-card .spot-mobs { display: flex; flex-wrap: wrap; gap: 5px; margin: 0; }
html.app-ui body:not(.admin-ui) .sp-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-top: auto; padding-top: 12px; border-top: 1px solid var(--u-line); }
html.app-ui body:not(.admin-ui) .sp-facts span { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
html.app-ui body:not(.admin-ui) .sp-facts b { font: 700 var(--fs-15, 15px) var(--font-display); color: var(--u-head); font-variant-numeric: tabular-nums; }
html.app-ui body:not(.admin-ui) .sp-facts b.sp-meso { color: var(--u-meso); }
html.app-ui body:not(.admin-ui) .sp-facts small { font-size: var(--fs-11_5, 11.5px); color: var(--u-text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* the rest as rows, like the rankings' rows */
html.app-ui[data-ui] body:not(.admin-ui) .spot-row { border-radius: 12px; background: var(--u-card-2); border: 1px solid var(--u-line-2); }
html.app-ui body:not(.admin-ui) .spot-row .rank.sm { background: none; color: var(--u-text-2); font-variant-numeric: tabular-nums; }
html.app-ui body:not(.admin-ui) .spot-row .spot-exp { color: var(--u-exp); }
html.app-ui body:not(.admin-ui) .spot-row .spot-meso { color: var(--u-meso); }
@media (max-width: 767.98px) { html.app-ui body:not(.admin-ui) .spot-range { margin-left: 0; width: 100%; } }
@media (max-width: 767.98px) {
  html.app-ui body:not(.admin-ui) .spot-filters > * { flex: 1 1 100%; }
  html.app-ui body:not(.admin-ui) .spot-filters .seg { display: flex; } html.app-ui body:not(.admin-ui) .spot-filters .seg button { flex: 1; }
  html.app-ui body:not(.admin-ui) .spot-class button { flex: none; }
  html.app-ui body:not(.admin-ui) .sp-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 575.98px) {
  /* (a phone: the rows keep the place, the map's name with its monsters, and the numbers; the small map and who tracked step aside) */
  html.app-ui body:not(.admin-ui) .spot-list .spot-row { gap: 8px 10px; padding: 10px 12px; }
  html.app-ui body:not(.admin-ui) .spot-list .spot-row :is(.spot-minimap, .spot-who) { display: none; }
}
@media (max-width: 575.98px) {
  html.app-ui body:not(.admin-ui) .spot-list .spot-row { grid-template-columns: 26px minmax(0, 1fr); }
  html.app-ui body:not(.admin-ui) .spot-list .spot-row .spot-rates { grid-column: 2; display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 12px; text-align: left; }
}

/* ================================================================ the guild hall ===== */
/* the banner as the hero, without the thick white frame */
html.app-ui body:not(.admin-ui) .gh-hero { border: 1px solid var(--u-line); border-radius: 18px; box-shadow: 0 14px 34px var(--u-shadow); }
/* its parts as tabs with a line under the one you're on, like the other pages (not a cream bar of big icons) */
html.app-ui body:not(.admin-ui) .gh-tabs { padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; }
html.app-ui body:not(.admin-ui) .gh-tabs-in { display: flex; gap: 2px; min-width: max-content; border-bottom: 1px solid var(--u-line); }
html.app-ui body:not(.admin-ui) .gh-tab { flex-direction: row; gap: 7px; min-height: 0; border-radius: 0; color: var(--u-text-2); font: 600 var(--fs-14_5, 14.5px) var(--font-body);
  background: none; transition: color .2s, box-shadow .25s; }
html.app-ui body:not(.admin-ui) .gh-tab:hover { color: var(--u-head); background: none; transform: none; }
html.app-ui body:not(.admin-ui) .gh-tab.on { color: var(--u-head); background: none; box-shadow: inset 0 -3px 0 var(--u-act); }
html.app-ui body:not(.admin-ui) :is(.gh-tab-ic, .gh-tab-link .bi) { font-size: var(--fs-15, 15px); }
html.app-ui body:not(.admin-ui) .gh-tab.on .gh-tab-ic { transform: none; }
html.app-ui body:not(.admin-ui) .gh-tab .gh-count { position: static; padding: 1px 7px; border-radius: 999px; font: 700 var(--fs-11_5, 11.5px)/16px var(--font-body); color: var(--u-text-2); background: var(--u-card-2); }
html.app-ui body:not(.admin-ui) .gh-tab .gh-count.hot { color: #1f1800; background: var(--u-act); }
html.app-ui body:not(.admin-ui) .gh-tab-link { margin-left: auto; color: var(--u-text-2); }
html.app-ui body:not(.admin-ui) .gh-tab-link + .gh-tab-link { margin-left: 0; }
html.app-ui body:not(.admin-ui) .gh-tab-link:first-of-type::before { content: none; }
/* the message of the day: a card with the quote mark in the scheme's colour */
html.app-ui[data-ui] body:not(.admin-ui) .gh-motd { border-radius: 14px; border: 1px solid color-mix(in srgb, var(--u-act) 40%, var(--u-line)); background: var(--u-card); color: var(--u-text); }
html.app-ui body:not(.admin-ui) .gh-motd b { color: var(--u-act); }
html.app-ui[data-ui="light"] body:not(.admin-ui) .gh-motd b { color: #9a6a00; }
html.app-ui body:not(.admin-ui) .gh-q { color: var(--u-act); }
/* the hall of fame: the week's top 3 as rows, their place in its medal colour */
html.app-ui body:not(.admin-ui) .gh-top3 { display: flex; flex-direction: column; gap: 6px; margin-bottom: 8px; }
html.app-ui body:not(.admin-ui) .gh-top { --medal: #b9c2cf; display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 12px; background: var(--u-card-2); border: 1px solid var(--u-line-2); }
html.app-ui body:not(.admin-ui) .gh-top.p1 { --medal: #f2bf3a; } html.app-ui body:not(.admin-ui) .gh-top.p3 { --medal: #d28a55; }
html.app-ui[data-ui="light"] body:not(.admin-ui) .gh-top { --medal: #66717f; } html.app-ui[data-ui="light"] body:not(.admin-ui) .gh-top.p1 { --medal: #b07d00; }
html.app-ui[data-ui="light"] body:not(.admin-ui) .gh-top.p3 { --medal: #a65a24; }
html.app-ui body:not(.admin-ui) .gh-top-n { width: 18px; font: 700 var(--fs-18, 18px) var(--font-display); color: var(--medal); text-align: center; }
html.app-ui body:not(.admin-ui) .gh-top-who { display: flex; flex-direction: column; min-width: 0; flex: 1; }
html.app-ui body:not(.admin-ui) .gh-top-who b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--u-head); }
html.app-ui body:not(.admin-ui) .gh-top-exp { font: 700 var(--fs-15, 15px) var(--font-display); color: var(--u-exp); font-variant-numeric: tabular-nums; }
html.app-ui body:not(.admin-ui) .gh-top-exp small { margin-left: 3px; font: 700 var(--fs-11, 11px) var(--font-body); color: var(--u-text-2); }
/* (the guild hall's tabs fit: the guild ranking and How guilds work as icons at the end) */
html.app-ui body:not(.admin-ui) .gh-tab { padding: 12px 12px; }
html.app-ui body:not(.admin-ui) .gh-tab-link { font-size: 0; gap: 0; padding: 12px 10px; }
html.app-ui body:not(.admin-ui) .gh-tab-link .bi { font-size: var(--fs-17, 17px); }
/* a weekly challenge that's done: green in the page's colours, its words readable */
html.app-ui[data-ui] body:not(.admin-ui) .wk-card.done { border-color: color-mix(in srgb, var(--u-good) 55%, var(--u-line)); background: color-mix(in srgb, var(--u-good) 12%, var(--u-card-2)); }
html.app-ui[data-ui] body:not(.admin-ui) .wk-card.done :is(b, strong, .wk-name, .wk-t) { color: var(--u-head); }
html.app-ui[data-ui] body:not(.admin-ui) .wk-card.done :is(small, .wk-of, .wk-sub) { color: var(--u-text-2); }

/* ================================================================ compare two sessions ===== */
/* each session's head (orange and blue), the difference between them, then a row per number with a bar each side */
html.app-ui body:not(.admin-ui) { --cmp-a: #ff8a3d; --cmp-b: #6cb8ff; }
html.app-ui[data-ui="light"] body:not(.admin-ui) { --cmp-a: #e0660c; --cmp-b: #2f72d8; }
html.app-ui body:not(.admin-ui) .cmp-top .back { display: inline-flex; margin-bottom: 10px; font-size: var(--fs-14, 14px); font-weight: 700; color: var(--u-text-2); text-decoration: none; }
html.app-ui body:not(.admin-ui) .cmp-dot.a, html.app-ui body:not(.admin-ui) .cmp-line.a { background: var(--cmp-a); stroke: var(--cmp-a); }
html.app-ui body:not(.admin-ui) .cmp-dot.b, html.app-ui body:not(.admin-ui) .cmp-line.b { background: var(--cmp-b); stroke: var(--cmp-b); }
html.app-ui body:not(.admin-ui) .cmp-line { background: none !important; }
html.app-ui body:not(.admin-ui) .cmp-axis { stroke: var(--u-line); } html.app-ui body:not(.admin-ui) .cmp-label { fill: var(--u-text-2); }
html.app-ui body:not(.admin-ui) .cmp-legend { color: var(--u-text-2); }
html.app-ui body:not(.admin-ui) .cmp-heads { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 14px; margin-bottom: 18px; }
html.app-ui body:not(.admin-ui) .cmp-head { --c: var(--cmp-a); display: flex; align-items: center; gap: 14px; min-width: 0; padding: 14px 16px; border-radius: 16px; text-decoration: none;
  background: var(--u-card); border: 1px solid var(--u-line); box-shadow: inset 0 3px 0 var(--c), 0 10px 26px var(--u-shadow); transition: border-color .2s; }
html.app-ui body:not(.admin-ui) .cmp-head.b { --c: var(--cmp-b); flex-direction: row-reverse; text-align: right; }
html.app-ui body:not(.admin-ui) .cmp-head:hover { border-color: var(--c); }
html.app-ui body:not(.admin-ui) .cmp-map { flex: none; width: 56px; height: 56px; object-fit: contain; padding: 3px; border-radius: 12px; background: var(--u-card-2); border: 1px solid var(--u-line);
  image-rendering: pixelated; }
html.app-ui body:not(.admin-ui) .cmp-map.none { display: grid; place-items: center; color: var(--u-text-2); font-size: var(--fs-22, 22px); }
html.app-ui body:not(.admin-ui) .cmp-head-t { display: flex; flex-direction: column; min-width: 0; flex: 1; line-height: 1.25; }
html.app-ui body:not(.admin-ui) .cmp-head-t b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 700 var(--fs-17, 17px) var(--font-display); color: var(--u-head); }
html.app-ui body:not(.admin-ui) .cmp-head-t small { font-size: var(--fs-12_5, 12.5px); color: var(--u-text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
html.app-ui body:not(.admin-ui) .cmp-big { flex: none; display: flex; flex-direction: column; align-items: inherit; font: 700 var(--fs-26, 26px)/1 var(--font-display); color: var(--c); font-variant-numeric: tabular-nums; }
html.app-ui body:not(.admin-ui) .cmp-head.a .cmp-big { align-items: flex-end; } html.app-ui body:not(.admin-ui) .cmp-head.b .cmp-big { align-items: flex-start; }
html.app-ui body:not(.admin-ui) .cmp-big small { margin-top: 4px; font: 700 var(--fs-11_5, 11.5px) var(--font-body); color: var(--u-text-2); }
html.app-ui body:not(.admin-ui) .cmp-vs { display: grid; place-items: center; min-width: 64px; height: 40px; padding: 0 10px; border-radius: 999px; font: 700 var(--fs-16, 16px) var(--font-display);
  color: var(--u-text-2); background: var(--u-card-2); border: 1px solid var(--u-line); }
html.app-ui body:not(.admin-ui) .cmp-vs.up { color: var(--u-good); } html.app-ui body:not(.admin-ui) .cmp-vs.down { color: var(--u-bad); }
html.app-ui body:not(.admin-ui) .cmp-rows { display: flex; flex-direction: column; gap: 4px; }
html.app-ui body:not(.admin-ui) .cmp-row { display: grid; grid-template-columns: 110px minmax(0, 1fr) 130px minmax(0, 1fr) 110px; align-items: center; gap: 12px; padding: 8px 4px;
  border-bottom: 1px solid var(--u-line-2); }
html.app-ui body:not(.admin-ui) .cmp-row:last-child { border-bottom: 0; }
html.app-ui body:not(.admin-ui) .cmp-k { text-align: center; font-size: var(--fs-13, 13px); font-weight: 700; color: var(--u-text-2); }
html.app-ui body:not(.admin-ui) .cmp-v { display: flex; align-items: center; gap: 6px; font: 700 var(--fs-16, 16px) var(--font-display); color: var(--u-text); font-variant-numeric: tabular-nums; }
html.app-ui body:not(.admin-ui) .cmp-v.a { justify-content: flex-end; } html.app-ui body:not(.admin-ui) .cmp-v.b { justify-content: flex-start; }
html.app-ui body:not(.admin-ui) .cmp-v.win { color: var(--u-head); } html.app-ui body:not(.admin-ui) .cmp-v .bi { font-size: var(--fs-13, 13px); color: var(--u-good); }
html.app-ui body:not(.admin-ui) .cmp-bar { display: flex; height: 10px; border-radius: 999px; background: var(--u-card-2); overflow: hidden; }
html.app-ui body:not(.admin-ui) .cmp-bar.a { justify-content: flex-end; }
html.app-ui body:not(.admin-ui) .cmp-bar i { display: block; height: 100%; border-radius: 999px; transform-origin: var(--o, left); animation: cmp-grow .8s cubic-bezier(.16, 1, .3, 1) both; }
html.app-ui body:not(.admin-ui) .cmp-bar.a i { --o: right; background: var(--cmp-a); } html.app-ui body:not(.admin-ui) .cmp-bar.b i { background: var(--cmp-b); }
@keyframes cmp-grow { from { transform: scaleX(0); } }
@media (max-width: 767.98px) {
  html.app-ui body:not(.admin-ui) .cmp-heads { grid-template-columns: minmax(0, 1fr); }
  html.app-ui body:not(.admin-ui) .cmp-head.b { flex-direction: row; text-align: left; } html.app-ui body:not(.admin-ui) .cmp-head.b .cmp-big { align-items: flex-end; }
  html.app-ui body:not(.admin-ui) .cmp-vs { justify-self: center; }
  html.app-ui body:not(.admin-ui) .cmp-row { grid-template-columns: 1fr 1fr; gap: 4px 10px; }
  html.app-ui body:not(.admin-ui) .cmp-k { grid-column: 1 / -1; grid-row: 1; }
  html.app-ui body:not(.admin-ui) .cmp-bar { display: none; }
  html.app-ui body:not(.admin-ui) .cmp-v.a { justify-content: flex-start; } html.app-ui body:not(.admin-ui) .cmp-v.b { justify-content: flex-end; }
}
@media (prefers-reduced-motion: reduce) { html.app-ui body:not(.admin-ui) .cmp-bar i { animation: none; } }
html.app-ui body:not(.admin-ui) .cmp-chart { max-height: 320px; }

/* ================================================================ your profile ===== */
/* a tab per choice above the panel; the facts under your name open their tab; the previews stay in view on the side */
html.app-ui body:not(.admin-ui) .prof-tabs { margin: 0 0 14px; overflow-x: auto; scrollbar-width: none; }
html.app-ui body:not(.admin-ui) .prof-tabs .pt { flex: none; }
html.app-ui body:not(.admin-ui) .prof-facts > button { font: inherit; color: inherit; cursor: var(--cursor-hand, pointer); }
html.app-ui body:not(.admin-ui) .prof-facts > :is(a, button, span) { background: var(--u-card-2); border: 1px solid var(--u-line); color: var(--u-text-2); transition: border-color .2s; }
html.app-ui body:not(.admin-ui) .prof-facts > :is(a, button):hover { border-color: var(--u-act); }
html.app-ui body:not(.admin-ui) .prof-facts b { color: var(--u-head); }
html.app-ui body:not(.admin-ui) .prof-facts .bi { color: var(--u-act); }
html.app-ui body:not(.admin-ui) .prof-now { padding: 2px 10px; border-radius: 999px; font-size: var(--fs-12_5, 12.5px); color: var(--u-head); background: var(--u-card-2); border: 1px solid var(--u-line); }
html.app-ui body:not(.admin-ui) .prof-panel-win .prof-sec:first-child { padding-top: 0; }
html.app-ui body:not(.admin-ui) .prof-side { top: 16px; display: flex; flex-direction: column; gap: 16px; }
html.app-ui body:not(.admin-ui) .prof-side > .window { margin: 0; }
@media (max-width: 575.98px) { html.app-ui body:not(.admin-ui) .prof-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
html.app-ui[data-ui] body:not(.admin-ui) .prof-tabs { padding: 0; border-radius: 0; background: none; box-shadow: none; border: 0; border-bottom: 1px solid var(--u-line); }

/* ================================================================ checks on a phone ===== */
/* (the profile's panel no longer grows to the width of its tab row) */
html.app-ui body:not(.admin-ui) :is(.prof-main, .prof-side) { min-width: 0; }
/* (the ladder of ranks scrolls sideways on a phone instead of running off the page) */
@media (max-width: 767.98px) {
  html.app-ui body:not(.admin-ui) .ac-hall-body { min-width: 0; }
  html.app-ui body:not(.admin-ui) .ac-hall-body > * { min-width: 0; }
  html.app-ui body:not(.admin-ui) .ac-ladder { overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; }
  html.app-ui body:not(.admin-ui) .ac-ladder li { flex: 0 0 78px; }
}
/* (a guild's name on its banner stays white, or gold, in the light look too: it sits on the banner, not on the page) */
html.app-ui[data-ui] body:not(.admin-ui) .gh-hero .gh-name :is(h1, h3):not(.gh-gold) { color: #fff; }
html.app-ui[data-ui] body:not(.admin-ui) .gh-hero .gh-name :is(h1, h3).gh-gold:not(.gh-shimmer) { color: transparent; -webkit-text-fill-color: transparent;
  background: linear-gradient(90deg, #fff3b0, #ffd24a, #fff3b0); -webkit-background-clip: text; background-clip: text; }

/* ================================================================ the Support page ===== */
/* the tier you're on: its column outlined in the scheme's colour, with "You're here" over it */
html.app-ui body:not(.admin-ui) .sup-table th.mine, html.app-ui body:not(.admin-ui) .sup-table td.mine { box-shadow: inset 2px 0 0 var(--u-act), inset -2px 0 0 var(--u-act); }
html.app-ui body:not(.admin-ui) .sup-table thead tr:first-child th.mine { position: relative; box-shadow: inset 2px 0 0 var(--u-act), inset -2px 0 0 var(--u-act), inset 0 2px 0 var(--u-act);
  border-radius: 12px 12px 0 0; padding-top: 22px; }
html.app-ui body:not(.admin-ui) .sup-table tfoot td.mine { box-shadow: inset 2px 0 0 var(--u-act), inset -2px 0 0 var(--u-act), inset 0 -2px 0 var(--u-act); border-radius: 0 0 12px 12px; }
html.app-ui body:not(.admin-ui) .sup-you { position: absolute; top: 4px; left: 50%; transform: translateX(-50%); padding: 0 8px; border-radius: 999px; white-space: nowrap;
  font: 800 var(--fs-10_5, 10.5px)/17px var(--font-body); letter-spacing: .03em; color: #1f1800; background: var(--u-act); }
html.app-ui body:not(.admin-ui) .sup-table :is(th, td) { border-bottom-color: var(--u-line-2); }
html.app-ui body:not(.admin-ui) .sup-table :is(thead th, tbody th) { color: var(--u-head); }
html.app-ui body:not(.admin-ui) .sup-table .sup-price td { color: var(--u-text-2); }

/* the avatar on the Overview: a plain ring in your class's colour (no turning rainbow glow, no shine running past its edge) */
html.app-ui body:not(.admin-ui) .ov-avatar::before, html.app-ui body:not(.admin-ui) .ov-avatar::after { content: none; animation: none; }
html.app-ui body:not(.admin-ui) .ov-avatar { overflow: visible; border: 2px solid var(--cc, var(--u-act));
  box-shadow: 0 0 0 5px color-mix(in srgb, var(--cc, var(--u-act)) 14%, transparent), 0 12px 26px var(--u-shadow); }

/* ================================================================ type that grows with the screen ===== */
/* Every font size in the stylesheets reads var(--fs-N, Npx) (N its size on a laptop): here, inside the app, each is a little
   smaller on a phone and a little bigger on a wide screen, in a straight line between 375px and 1920px wide; titles and big
   numbers move more than body text. Elsewhere (the public pages, the pop-out, the admin pages) the plain px size stays. */
html.app-ui body:not(.admin-ui) {
  --fs-7: clamp(6.72px, 6.58px + 0.036vw, 7.28px);
  --fs-8: clamp(7.68px, 7.52px + 0.041vw, 8.32px);
  --fs-9: clamp(8.64px, 8.47px + 0.047vw, 9.36px);
  --fs-9_5: clamp(9.12px, 8.94px + 0.049vw, 9.88px);
  --fs-10: clamp(9.60px, 9.41px + 0.052vw, 10.40px);
  --fs-10_5: clamp(10.08px, 9.88px + 0.054vw, 10.92px);
  --fs-11: clamp(10.56px, 10.35px + 0.057vw, 11.44px);
  --fs-11_5: clamp(11.04px, 10.82px + 0.060vw, 11.96px);
  --fs-12: clamp(11.52px, 11.29px + 0.062vw, 12.48px);
  --fs-12_5: clamp(12.00px, 11.76px + 0.065vw, 13.00px);
  --fs-13: clamp(12.48px, 12.23px + 0.067vw, 13.52px);
  --fs-13_5: clamp(12.96px, 12.70px + 0.070vw, 14.04px);
  --fs-14: clamp(13.16px, 12.79px + 0.100vw, 14.70px);
  --fs-14_5: clamp(13.63px, 13.24px + 0.103vw, 15.23px);
  --fs-15: clamp(14.10px, 13.70px + 0.107vw, 15.75px);
  --fs-15_5: clamp(14.57px, 14.16px + 0.110vw, 16.28px);
  --fs-16: clamp(15.04px, 14.61px + 0.114vw, 16.80px);
  --fs-17: clamp(15.98px, 15.53px + 0.121vw, 17.85px);
  --fs-18: clamp(15.84px, 15.05px + 0.210vw, 19.08px);
  --fs-19: clamp(16.72px, 15.89px + 0.221vw, 20.14px);
  --fs-20: clamp(17.60px, 16.73px + 0.233vw, 21.20px);
  --fs-21: clamp(18.48px, 17.56px + 0.245vw, 22.26px);
  --fs-22: clamp(19.36px, 18.40px + 0.256vw, 23.32px);
  --fs-24: clamp(19.20px, 17.57px + 0.435vw, 25.92px);
  --fs-25: clamp(20.00px, 18.30px + 0.453vw, 27.00px);
  --fs-26: clamp(20.80px, 19.03px + 0.471vw, 28.08px);
  --fs-27: clamp(21.60px, 19.77px + 0.489vw, 29.16px);
  --fs-28: clamp(22.40px, 20.50px + 0.507vw, 30.24px);
  --fs-29: clamp(23.20px, 21.23px + 0.526vw, 31.32px);
  --fs-30: clamp(24.00px, 21.96px + 0.544vw, 32.40px);
  --fs-32: clamp(25.60px, 23.43px + 0.580vw, 34.56px);
  --fs-34: clamp(27.20px, 24.89px + 0.616vw, 36.72px);
  --fs-36: clamp(28.80px, 26.35px + 0.652vw, 38.88px);
  --fs-38: clamp(30.40px, 27.82px + 0.689vw, 41.04px);
  --fs-40: clamp(32.00px, 29.28px + 0.725vw, 43.20px);
  --fs-44: clamp(35.20px, 32.21px + 0.797vw, 47.52px);
  --fs-46: clamp(36.80px, 33.67px + 0.834vw, 49.68px);
  --fs-50: clamp(40.00px, 36.60px + 0.906vw, 54.00px);
  --fs-52: clamp(41.60px, 38.07px + 0.942vw, 56.16px);
  --fs-54: clamp(43.20px, 39.53px + 0.979vw, 58.32px);
  --fs-56: clamp(44.80px, 40.99px + 1.015vw, 60.48px);
}

/* ================================================================ the OBS overlay's colours ===== */
html.app-ui body:not(.admin-ui) .obs-pick { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 10px 20px; align-items: start; margin-bottom: 14px; }
html.app-ui body:not(.admin-ui) .obs-themes { display: flex; flex-wrap: wrap; gap: 6px; align-content: flex-start; }
html.app-ui body:not(.admin-ui) .obs-theme { display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px 6px 8px; border-radius: 999px; font-size: var(--fs-13_5, 13.5px); font-weight: 600;
  color: var(--u-text); background: var(--u-card-2); border: 1px solid var(--u-line); cursor: var(--cursor-hand, pointer); }
html.app-ui body:not(.admin-ui) .obs-theme i { width: 16px; height: 16px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .3); }
html.app-ui body:not(.admin-ui) .obs-theme.t-night i { background: #141c2d; } html.app-ui body:not(.admin-ui) .obs-theme.t-sunset i { background: linear-gradient(135deg, #24163d 50%, #ff7ab6 50%); }
html.app-ui body:not(.admin-ui) .obs-theme.t-ludi i { background: linear-gradient(135deg, #151d45 50%, #5ee1ff 50%); }
html.app-ui body:not(.admin-ui) .obs-theme.t-ellinia i { background: linear-gradient(135deg, #0f2d2a 50%, #a8f05a 50%); }
html.app-ui body:not(.admin-ui) .obs-theme.t-light i { background: #fff; border-color: #c5d2e0; }
html.app-ui body:not(.admin-ui) .obs-theme.t-glass i { background: repeating-conic-gradient(#9aa8bb 0 25%, #e3e9f1 0 50%) 50% / 8px 8px; }
html.app-ui body:not(.admin-ui) .obs-theme.on { color: #1f1800; background: var(--u-act); border-color: transparent; }
html.app-ui body:not(.admin-ui) .obs-compact { grid-column: 1; display: flex; align-items: center; gap: 8px; margin: 0; font-size: var(--fs-13_5, 13.5px); color: var(--u-text-2); }
html.app-ui body:not(.admin-ui) .obs-preview { grid-column: 2; grid-row: 1 / span 2; padding: 14px; border-radius: 14px;
  background: url("/static/guild_towns/ellinia.jpg") center / cover; }
@media (max-width: 991.98px) { html.app-ui body:not(.admin-ui) .obs-pick { grid-template-columns: minmax(0, 1fr); } html.app-ui body:not(.admin-ui) .obs-preview { grid-column: 1; grid-row: auto; } }

/* ================================================================ Rankings: the list as a stats table ===== */
/* one line per character, every column lined up: place, class icon, character, class, guild, level, EXP as a thin bar */
html.app-ui body:not(.admin-ui) :is(.rk-thead, .rk-feed .rk-row) { grid-template-columns: 44px 36px minmax(0, 2fr) minmax(0, 1.1fr) minmax(0, 1.2fr) 64px 190px; gap: 0 16px; }
html.app-ui body:not(.admin-ui) .rk-thead { align-items: center; height: 40px; margin: 0; padding: 0 20px; background: var(--u-card-2); border-bottom: 1px solid var(--u-line);
  font: 600 var(--fs-11_5, 11.5px) var(--font-body); letter-spacing: .08em; text-transform: uppercase; color: var(--u-text-2); }
html.app-ui body:not(.admin-ui) .rk-feed { gap: 0; padding: 0 0 6px; }
html.app-ui[data-ui] body:not(.admin-ui) .rk-feed .rk-row:not(.look) { min-height: 58px; margin: 0; padding: 8px 20px; border: 0; border-bottom: 1px solid var(--u-line-2); border-radius: 0;
  background: transparent; box-shadow: none; }
html.app-ui[data-ui="dark"] body:not(.admin-ui) .rk-feed .rk-row:not(.look):nth-child(even) { background: rgba(255, 255, 255, .018); }
html.app-ui[data-ui="light"] body:not(.admin-ui) .rk-feed .rk-row:not(.look):nth-child(even) { background: rgba(10, 40, 80, .022); }
html.app-ui[data-ui] body:not(.admin-ui) .rk-feed .rk-row:hover { transform: none; }
html.app-ui[data-ui] body:not(.admin-ui) .rk-feed .rk-row:not(.look):hover { background: var(--u-card-2); }
html.app-ui[data-ui] body:not(.admin-ui) .rk-feed .rk-row.look { margin: 6px 12px; padding: 8px; border-radius: 12px; }
html.app-ui[data-ui] body:not(.admin-ui) .rk-feed .rk-row.mine:not(.look) { background: rgba(255, 205, 46, .08); box-shadow: inset 3px 0 0 var(--u-act); }
html.app-ui[data-ui] body:not(.admin-ui) .rk-feed .rk-row.mine.look { box-shadow: 0 0 0 2px var(--u-act); }
html.app-ui body:not(.admin-ui) .rk-pl { position: relative; z-index: 2; font: 700 var(--fs-17, 17px) var(--font-display); color: var(--u-text-2); font-variant-numeric: tabular-nums; }
html.app-ui body:not(.admin-ui) .rk-pl.r1 { color: #f2bf3a; } html.app-ui body:not(.admin-ui) .rk-pl.r2 { color: #c7ced8; } html.app-ui body:not(.admin-ui) .rk-pl.r3 { color: #d28a55; }
html.app-ui[data-ui="light"] body:not(.admin-ui) .rk-pl.r1 { color: #b07d00; } html.app-ui[data-ui="light"] body:not(.admin-ui) .rk-pl.r2 { color: #66717f; }
html.app-ui[data-ui="light"] body:not(.admin-ui) .rk-pl.r3 { color: #a65a24; }
html.app-ui body:not(.admin-ui) .rk-tile { position: relative; z-index: 2; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; font-size: 15px;
  color: var(--cc); background: var(--u-card-2); border: 1px solid var(--u-line); }
html.app-ui[data-ui="light"] body:not(.admin-ui) .rk-tile { color: #10131c; background: var(--cc); border-color: transparent; }
html.app-ui body:not(.admin-ui) .rk-you-tag { margin-left: 8px; padding: 1px 7px; border-radius: 6px; vertical-align: 2px; font: 700 var(--fs-11, 11px) var(--font-body); letter-spacing: .04em;
  text-transform: uppercase; color: #1f1800; background: var(--u-act); }
html.app-ui body:not(.admin-ui) .rk-lvc { position: relative; z-index: 2; text-align: right; font: 700 var(--fs-18, 18px) var(--font-display); color: var(--u-head); font-variant-numeric: tabular-nums; }
html.app-ui body:not(.admin-ui) .rk-expc { position: relative; z-index: 2; display: flex; align-items: center; gap: 10px; }
html.app-ui body:not(.admin-ui) .rk-thin { flex: 1; height: 6px; overflow: hidden; border-radius: 999px; background: var(--u-card-3, var(--u-card-2)); }
html.app-ui body:not(.admin-ui) .rk-thin i { display: block; height: 100%; border-radius: 999px; background: var(--u-exp); }
html.app-ui body:not(.admin-ui) .rk-expc > span:last-child { width: 50px; text-align: right; font-size: var(--fs-13, 13px); color: var(--u-text-2); font-variant-numeric: tabular-nums; }
html.app-ui body:not(.admin-ui) .rk-row.look :is(.rk-lvc, .rk-pl, .rk-expc > span:last-child) { color: inherit; }
@media (max-width: 991.98px) {
  html.app-ui body:not(.admin-ui) .rk-feed .rk-row { grid-template-columns: 28px 34px minmax(0, 1fr) 44px; gap: 4px 10px; }
  html.app-ui[data-ui] body:not(.admin-ui) .rk-feed .rk-row:not(.look) { padding: 10px 12px; }
  html.app-ui body:not(.admin-ui) .rk-feed .rk-expc { grid-column: 3 / 5; }
}
/* (rows wearing a player's look: their place, level and % in the look's own text colour, light on the dark looks) */
html.app-ui[data-ui] body:not(.admin-ui) .rk-row.look:not(.look-dark) :is(.rk-pl, .rk-lvc, .rk-expc > span:last-child) { color: #1b2a3b; }
html.app-ui[data-ui] body:not(.admin-ui) .rk-row.look-dark :is(.rk-pl, .rk-lvc, .rk-expc > span:last-child) { color: #fff; text-shadow: 0 1px 3px rgba(0, 0, 0, .5); }
html.app-ui[data-ui] body:not(.admin-ui) .rk-row.look .rk-thin { background: rgba(0, 0, 0, .18); }
html.app-ui[data-ui] body:not(.admin-ui) .rk-row.look-dark .rk-thin { background: rgba(255, 255, 255, .2); }

/* ================================================================ the live board as a live table ===== */
html.app-ui body:not(.admin-ui) :is(.bd-thead, .bd-feed .bd-row) { display: grid; grid-template-columns: 52px minmax(0, 1.7fr) minmax(0, 1.5fr) 92px 78px 200px 96px 104px;
  align-items: center; gap: 0 14px; }
html.app-ui body:not(.admin-ui) .bd-thead { height: 40px; padding: 0 20px; background: var(--u-card-2); border-top: 1px solid var(--u-line); border-bottom: 1px solid var(--u-line);
  font: 600 var(--fs-11_5, 11.5px) var(--font-body); letter-spacing: .08em; text-transform: uppercase; color: var(--u-text-2); }
html.app-ui body:not(.admin-ui) .bd-thead .r { text-align: right; }
html.app-ui body:not(.admin-ui) .bd-feed { display: flex; flex-direction: column; padding-bottom: 6px; }
html.app-ui[data-ui] body:not(.admin-ui) .bd-feed .bd-row:not(.look) { position: relative; min-height: 62px; margin: 0; padding: 8px 20px; border: 0; border-bottom: 1px solid var(--u-line-2);
  border-radius: 0; background: transparent; box-shadow: none; transition: background-color .3s; }
html.app-ui[data-ui="dark"] body:not(.admin-ui) .bd-feed .bd-row:not(.look):nth-child(even) { background: rgba(255, 255, 255, .018); }
html.app-ui[data-ui="light"] body:not(.admin-ui) .bd-feed .bd-row:not(.look):nth-child(even) { background: rgba(10, 40, 80, .022); }
html.app-ui[data-ui] body:not(.admin-ui) .bd-feed .bd-row:not(.look):hover { background: var(--u-card-2); }
html.app-ui[data-ui] body:not(.admin-ui) .bd-feed .bd-row.look { margin: 6px 12px; padding: 8px; border-radius: 12px; }
html.app-ui[data-ui] body:not(.admin-ui) .bd-feed .bd-row.mine:not(.look) { background: rgba(255, 205, 46, .08); box-shadow: inset 3px 0 0 var(--u-act); }
html.app-ui[data-ui] body:not(.admin-ui) .bd-feed .bd-row.mine.look { box-shadow: 0 0 0 2px var(--u-act); }
html.app-ui body:not(.admin-ui) .bd-row > :not(.look-fx) { position: relative; z-index: 2; min-width: 0; }
html.app-ui body:not(.admin-ui) .bd-row .rk-pl { display: flex; align-items: center; gap: 4px; }
html.app-ui body:not(.admin-ui) .bd-who .feed-name { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: var(--fs-15_5, 15.5px); }
html.app-ui body:not(.admin-ui) .bd-who .rk-you-tag { margin-left: 0; }
html.app-ui body:not(.admin-ui) .bd-sub { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 6px; margin-top: 2px; font-size: var(--fs-12_5, 12.5px); color: var(--u-text-2); }
html.app-ui body:not(.admin-ui) .bd-sub .chip { font-size: var(--fs-11, 11px); }
html.app-ui body:not(.admin-ui) .bd-sub-map { display: none; }
html.app-ui body:not(.admin-ui) .bd-mapc { display: flex; align-items: center; gap: 10px; color: var(--u-text); }
html.app-ui body:not(.admin-ui) .bd-mapc span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
html.app-ui body:not(.admin-ui) .bd-mapc .board-minimap { width: 46px; height: 32px; border-radius: 8px; background: var(--u-card-3, var(--u-card-2)); border-color: var(--u-line); }
html.app-ui body:not(.admin-ui) :is(.bd-party, .bd-time) { font-size: var(--fs-13, 13px); color: var(--u-text-2); font-variant-numeric: tabular-nums; }
html.app-ui body:not(.admin-ui) .bd-rate { display: grid; grid-template-columns: minmax(0, 1fr) 64px; align-items: center; gap: 10px; }
html.app-ui body:not(.admin-ui) .bd-rate b { text-align: right; font: 700 var(--fs-16, 16px) var(--font-display); color: var(--u-exp); font-variant-numeric: tabular-nums; }
html.app-ui body:not(.admin-ui) .bd-meso { text-align: right; font-weight: 600; color: var(--u-meso); font-variant-numeric: tabular-nums; }
html.app-ui body:not(.admin-ui) .bd-st { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
html.app-ui body:not(.admin-ui) .bd-st .card-pill { font-size: var(--fs-11, 11px); }
html.app-ui body:not(.admin-ui) .bd-row.look :is(.rk-pl, .bd-party, .bd-time, .bd-mapc) { color: inherit; }

/* the effects: a place won or lost, an EXP/h that rose or fell, a player who just came on, a level up, a live dot that breathes */
html.app-ui body:not(.admin-ui) .bd-move { font-style: normal; font-size: var(--fs-11, 11px); font-weight: 700; animation: bd-move 8s ease-out forwards; }
html.app-ui body:not(.admin-ui) .bd-move.up { color: var(--u-good); }
html.app-ui body:not(.admin-ui) .bd-move.down { color: var(--u-bad); }
@keyframes bd-move { 0% { opacity: 0; transform: translateY(4px); } 8%, 75% { opacity: 1; transform: none; } 100% { opacity: 0; } }
html.app-ui body:not(.admin-ui) .bd-rate.up b { animation: bd-up 1.6s ease-out; }
html.app-ui body:not(.admin-ui) .bd-rate.down b { animation: bd-down 1.6s ease-out; }
@keyframes bd-up { 0% { color: #fff; text-shadow: 0 0 14px var(--u-good); transform: translateY(-2px); } 100% { text-shadow: none; transform: none; } }
@keyframes bd-down { 0% { color: var(--u-bad); text-shadow: 0 0 12px var(--u-bad); } 100% { text-shadow: none; } }
html.app-ui body:not(.admin-ui) .bd-rate.up::after, html.app-ui body:not(.admin-ui) .bd-rate.down::after { position: absolute; right: -14px; font-size: 10px; animation: bd-move 3s ease-out forwards; }
html.app-ui body:not(.admin-ui) .bd-rate.up::after { content: "\25B2"; color: var(--u-good); }
html.app-ui body:not(.admin-ui) .bd-rate.down::after { content: "\25BC"; color: var(--u-bad); }
html.app-ui body:not(.admin-ui) .bd-row.bd-new { animation: bd-new 1.4s cubic-bezier(.16, 1, .3, 1); }
@keyframes bd-new { 0% { opacity: 0; transform: translateX(-16px); background: rgba(90, 209, 122, .22); } 40% { opacity: 1; transform: none; } }
html.app-ui body:not(.admin-ui) .bd-row.bd-new .rk-thin i { animation: rk-grow 1s cubic-bezier(.16, 1, .3, 1) both; transform-origin: left; }
html.app-ui[data-ui] body:not(.admin-ui) .bd-feed .bd-row.leveled:not(.look) { background: linear-gradient(90deg, rgba(255, 205, 46, .16), transparent 60%); }
html.app-ui body:not(.admin-ui) .bd-row.leveled::after { content: ""; position: absolute; z-index: 1; inset: 0; pointer-events: none;
  background: linear-gradient(100deg, transparent 30%, rgba(255, 220, 120, .22) 50%, transparent 70%) -100% 0 / 200% 100% no-repeat; animation: bd-shine 3s ease-in-out infinite; }
@keyframes bd-shine { 0%, 30% { background-position: 150% 0; } 100% { background-position: -50% 0; } }
html.app-ui body:not(.admin-ui) .bd-st .board-status.live { position: relative; padding-left: 16px; }
html.app-ui body:not(.admin-ui) .bd-st .board-status.live::before { content: ""; position: absolute; left: 6px; top: 50%; width: 6px; height: 6px; margin-top: -3px; border-radius: 50%;
  background: var(--u-good); animation: bd-breathe 1.8s ease-in-out infinite; }
@keyframes bd-breathe { 50% { box-shadow: 0 0 0 4px rgba(90, 209, 122, .25); } }
/* the events above the table as a row of chips */
html.app-ui body:not(.admin-ui) .board-levelups { flex-direction: row; flex-wrap: wrap; gap: 8px; padding: 10px 16px 12px; }
html.app-ui[data-ui] body:not(.admin-ui) .board-levelup { display: inline-flex; align-items: center; gap: 8px; width: auto; padding: 5px 12px; border-radius: 999px; font-size: var(--fs-13, 13px);
  background: var(--u-card-2); border: 1px solid var(--u-line); color: var(--u-text); }
html.app-ui body:not(.admin-ui) .board-levelup .ago { margin-left: 4px; color: var(--u-text-2); }
@media (max-width: 991.98px) {
  html.app-ui body:not(.admin-ui) .bd-thead { display: none !important; }
  html.app-ui body:not(.admin-ui) .bd-feed .bd-row { grid-template-columns: 30px minmax(0, 1fr) auto; gap: 4px 10px; }
  html.app-ui[data-ui] body:not(.admin-ui) .bd-feed .bd-row:not(.look) { padding: 10px 12px; }
  html.app-ui body:not(.admin-ui) .bd-row :is(.bd-mapc, .bd-party, .bd-time, .bd-meso) { display: none; }
  html.app-ui body:not(.admin-ui) .bd-sub-map { display: inline; }
  html.app-ui body:not(.admin-ui) .bd-rate { grid-column: 2 / 3; grid-row: 2; }
  html.app-ui body:not(.admin-ui) .bd-st { grid-column: 3; grid-row: 1 / span 2; }
}
@media (prefers-reduced-motion: reduce) {
  html.app-ui body:not(.admin-ui) :is(.bd-move, .bd-rate b, .bd-rate::after, .bd-row.bd-new, .bd-row.bd-new .rk-thin i, .bd-row.leveled::after, .board-status.live::before) { animation: none !important; }
}
/* (rows wearing a player's look: their place, party, time and map in the look's own text colour, light on the dark looks) */
html.app-ui[data-ui] body:not(.admin-ui) .bd-row.look:not(.look-dark) :is(.rk-pl, .bd-party, .bd-time, .bd-mapc) { color: #1b2a3b; }
html.app-ui[data-ui] body:not(.admin-ui) .bd-row.look-dark :is(.rk-pl, .bd-party, .bd-time, .bd-mapc) { color: #fff; text-shadow: 0 1px 3px rgba(0, 0, 0, .5); }
html.app-ui[data-ui] body:not(.admin-ui) .bd-row.look .rk-thin { background: rgba(0, 0, 0, .18); }
html.app-ui[data-ui] body:not(.admin-ui) .bd-row.look-dark .rk-thin { background: rgba(255, 255, 255, .2); }
html.app-ui[data-ui] body:not(.admin-ui) .bd-row.look-dark .bd-rate b { color: #b6f27a; text-shadow: 0 1px 3px rgba(0, 0, 0, .5); }
html.app-ui[data-ui] body:not(.admin-ui) .bd-row.look-dark .bd-meso { color: #ffc27a; }


/* ================================================================ the character card (click a name) ===== */
/* Laid out like a stats site's player page: their banner across the top with the avatar, name, title and their place on
   Rankings; six numbers in one row with lines between; tabs; under them Overview (best maps and the climb side by side),
   Maps, Levels and Badges. Wide in the window over the page; a container query stacks it in a narrow spot (the side of
   the profile, a phone), so the same card works in both. */
html.app-ui[data-ui] body:not(.admin-ui) .pcard { --pc-purple: #b48cff; container: pcard / inline-size;
  overflow: hidden; border-radius: 22px; color: var(--u-text); background: var(--u-card); border: 1px solid var(--u-line); box-shadow: 0 24px 60px rgba(0, 0, 0, .45); }
html.app-ui[data-ui="light"] body:not(.admin-ui) .pcard { --pc-purple: #7a4fd0; box-shadow: 0 24px 60px rgba(16, 50, 90, .22); }
/* the head: the banner (theirs, their look, their picture, or the site's colours) fading into the card at the bottom */
html.app-ui[data-ui] body:not(.admin-ui) .pcard-head { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: end; gap: 18px;
  min-height: 0; padding: 74px 22px 20px; border: 0 !important; border-radius: 0 !important; }
html.app-ui[data-ui] body:not(.admin-ui) .pcard-head:not(.look):not(.has-tb):not(.has-pic) {
  background: radial-gradient(120% 140% at 0% 0%, color-mix(in srgb, var(--p3, #4cc3ff) 45%, var(--u-card)), transparent 60%),
    radial-gradient(120% 140% at 100% 0%, color-mix(in srgb, var(--p1, #ff7ab6) 40%, var(--u-card)), transparent 60%), var(--u-card-2); }
html.app-ui[data-ui] body:not(.admin-ui) .pcard-head::after { content: ""; position: absolute; z-index: 1; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(8, 12, 24, .12), rgba(8, 12, 24, .5) 40%, rgba(8, 12, 24, .88)); }
html.app-ui[data-ui] body:not(.admin-ui) .pcard-head:not(.look):not(.has-tb):not(.has-pic)::after { content: none; }
html.app-ui[data-ui] body:not(.admin-ui) .pcard-head > :is(.pcard-ava, .pcard-who, .pcard-ranks) { position: relative; z-index: 2; }
html.app-ui[data-ui] body:not(.admin-ui) .pcard-ava { width: 96px; height: 96px; border-radius: 26px; border: 3px solid var(--u-card); box-shadow: 0 12px 28px rgba(0, 0, 0, .4); overflow: hidden; }
html.app-ui[data-ui] body:not(.admin-ui) .pcard-ava svg { width: 66px; height: 66px; }
html.app-ui[data-ui] body:not(.admin-ui) .pcard-ava .prof-own-pic { width: 100%; height: 100%; object-fit: cover; }
html.app-ui[data-ui] body:not(.admin-ui) .pcard-who { min-width: 0; padding-bottom: 2px; }
html.app-ui[data-ui] body:not(.admin-ui) .pcard-name { font-size: var(--fs-34, 34px); line-height: 1; color: #fff; text-shadow: 0 2px 12px rgba(0, 0, 0, .45);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
html.app-ui[data-ui] body:not(.admin-ui) .pcard-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin-top: 10px; }
html.app-ui[data-ui] body:not(.admin-ui) .pcard-meta .title-tag { margin: 0; }
html.app-ui[data-ui] body:not(.admin-ui) .pcard-job { margin: 0; font-size: var(--fs-14, 14px); font-weight: 600; color: rgba(255, 255, 255, .88) !important; text-shadow: 0 1px 6px rgba(0, 0, 0, .5); }
html.app-ui[data-ui] body:not(.admin-ui) .pcard-bio { margin: 10px 0 0; padding: 0; border: 0 !important; background: none !important; font-style: italic;
  font-size: var(--fs-13_5, 13.5px); color: rgba(255, 255, 255, .82); text-shadow: 0 1px 6px rgba(0, 0, 0, .5); }
/* (on the site's own colours, without a banner: the card's own ink) */
html.app-ui[data-ui] body:not(.admin-ui) .pcard-head:not(.look):not(.has-tb):not(.has-pic) .pcard-name:not(.plus-name) { color: var(--u-head); text-shadow: none; }
html.app-ui[data-ui] body:not(.admin-ui) .pcard-head:not(.look):not(.has-tb):not(.has-pic) :is(.pcard-job, .pcard-bio) { color: var(--u-text) !important; text-shadow: none; }
/* their place on Rankings: two dark glass badges, the number in gold */
html.app-ui[data-ui] body:not(.admin-ui) .pcard-ranks { display: flex; gap: 8px; padding-bottom: 2px; }
html.app-ui[data-ui] body:not(.admin-ui) .pcard-rank { min-width: 78px; padding: 9px 14px 8px; border-radius: 16px; text-align: center; background: rgba(8, 12, 24, .62);
  border: 1px solid rgba(255, 255, 255, .14); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
html.app-ui[data-ui] body:not(.admin-ui) .pcard-rank b { display: block; font: 700 var(--fs-24, 24px)/1.05 var(--font-display); color: #ffd25a !important; font-variant-numeric: tabular-nums; }
html.app-ui[data-ui] body:not(.admin-ui) .pcard-rank small { font-size: var(--fs-12, 12px); font-weight: 600; color: #c3cde0 !important; }
/* six numbers in one row, lines between */
html.app-ui[data-ui] body:not(.admin-ui) .pcard-stats { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 0; padding: 0;
  border-top: 1px solid var(--u-line); border-bottom: 1px solid var(--u-line); }
html.app-ui[data-ui] body:not(.admin-ui) .pcard-stats > div { min-width: 0; padding: 15px 18px; border: 0; border-right: 1px solid var(--u-line-2); border-radius: 0; background: none; }
html.app-ui[data-ui] body:not(.admin-ui) .pcard-stats > div:last-child { border-right: 0; }
html.app-ui[data-ui] body:not(.admin-ui) .pcard-stats b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font: 700 var(--fs-21, 21px)/1.15 var(--font-display); color: var(--u-head); font-variant-numeric: tabular-nums; }
html.app-ui[data-ui] body:not(.admin-ui) .pcard-stats b.exp { color: var(--u-exp); }
html.app-ui[data-ui] body:not(.admin-ui) .pcard-stats b.txt { font-size: var(--fs-15, 15px); line-height: 1.6; }
html.app-ui[data-ui] body:not(.admin-ui) .pcard-stats span { display: block; margin-top: 2px; font-size: var(--fs-12, 12px); color: var(--u-text-2); }
/* the tabs: a line under the one that's open */
html.app-ui[data-ui] body:not(.admin-ui) .pcard-tabs { display: flex; gap: 4px; padding: 0 16px; overflow-x: auto; border-bottom: 1px solid var(--u-line); scrollbar-width: none; }
html.app-ui[data-ui] body:not(.admin-ui) .pcard-tabs button { flex: none; padding: 13px 14px 12px; border: 0; background: none; font: 600 var(--fs-14, 14px) var(--font-body);
  color: var(--u-text-2); box-shadow: inset 0 -3px 0 transparent; transition: color .2s, box-shadow .2s; }
html.app-ui[data-ui] body:not(.admin-ui) .pcard-tabs button:hover { color: var(--u-head); }
html.app-ui[data-ui] body:not(.admin-ui) .pcard-tabs button.on { color: var(--u-head); box-shadow: inset 0 -3px 0 var(--u-act); }
html.app-ui[data-ui] body:not(.admin-ui) .pcard-tabs button:focus-visible { outline: 2px solid var(--u-act); outline-offset: -4px; border-radius: 8px; }
html.app-ui[data-ui] body:not(.admin-ui) .pcard-pane { padding: 18px 22px 22px; }
html.app-ui[data-ui] body:not(.admin-ui) .pcard-pane.on { animation: pcard-pane .3s ease-out both; }
@keyframes pcard-pane { from { opacity: 0; transform: translateY(4px); } }
html.app-ui[data-ui] body:not(.admin-ui) .pcard-two { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 20px; }
html.app-ui[data-ui] body:not(.admin-ui) .pcard-k { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding: 0 0 10px;
  font: 700 var(--fs-11_5, 11.5px) var(--font-body); letter-spacing: .08em; text-transform: uppercase; color: var(--u-text-2); }
html.app-ui[data-ui] body:not(.admin-ui) .pcard-climb { font-size: var(--fs-13, 13px); letter-spacing: 0; text-transform: none; color: var(--u-exp); }
html.app-ui[data-ui] body:not(.admin-ui) .pcard-line { display: block; width: 100%; height: 118px; margin: 0; padding: 10px; border-radius: 14px; background: var(--u-card-2); }
html.app-ui[data-ui] body:not(.admin-ui) .pcard-line.big { height: 190px; }
html.app-ui[data-ui] body:not(.admin-ui) .pcard-line polyline { stroke: var(--pc-purple); stroke-width: 2.5; }
html.app-ui[data-ui] body:not(.admin-ui) .pcard-area { fill: color-mix(in srgb, var(--pc-purple) 20%, transparent); stroke: none; }
html.app-ui[data-ui] body:not(.admin-ui) .pcard-line-k { padding: 6px 2px 0; color: var(--u-text-2); }
html.app-ui[data-ui] body:not(.admin-ui) .pcard-maps { display: flex; flex-direction: column; gap: 8px; padding: 0; }
html.app-ui[data-ui] body:not(.admin-ui) .pcard-map { grid-template-columns: 64px minmax(0, 1fr) auto auto; padding: 8px; border-radius: 14px; background: var(--u-card-2); border: 0; }
html.app-ui[data-ui] body:not(.admin-ui) .pcard-map-pic { width: 64px; height: 46px; border-radius: 10px; }
html.app-ui[data-ui] body:not(.admin-ui) .pcard-map-n { color: var(--u-head); }
html.app-ui[data-ui] body:not(.admin-ui) .pcard-map b { color: var(--u-exp); font-variant-numeric: tabular-nums; }
html.app-ui[data-ui] body:not(.admin-ui) .pcard-badges { display: flex; flex-wrap: wrap; gap: 6px; padding: 0; }
html.app-ui[data-ui] body:not(.admin-ui) .pcard-none { padding: 18px 14px; border-radius: 14px; text-align: center; font-size: var(--fs-13, 13px); color: var(--u-text-2); background: var(--u-card-2); }
html.app-ui[data-ui] body:not(.admin-ui) .pcard-note { margin: 0 22px 20px; border-radius: 12px; }
/* narrow (the side of the profile, a phone): the head stacks, the numbers go three by two, the panes one under the other */
@container pcard (max-width: 640px) {
  html.app-ui[data-ui] body:not(.admin-ui) .pcard-head { grid-template-columns: auto minmax(0, 1fr); gap: 14px; padding: 58px 16px 16px; }
  html.app-ui[data-ui] body:not(.admin-ui) .pcard-ava { width: 72px; height: 72px; border-radius: 20px; }
  html.app-ui[data-ui] body:not(.admin-ui) .pcard-ava svg { width: 50px; height: 50px; }
  html.app-ui[data-ui] body:not(.admin-ui) .pcard-name { font-size: var(--fs-26, 26px); }
  html.app-ui[data-ui] body:not(.admin-ui) .pcard-ranks { grid-column: 1 / -1; }
  html.app-ui[data-ui] body:not(.admin-ui) .pcard-rank { flex: 1; padding: 7px 10px; }
  html.app-ui[data-ui] body:not(.admin-ui) .pcard-rank b { font-size: var(--fs-20, 20px); }
  html.app-ui[data-ui] body:not(.admin-ui) .pcard-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  html.app-ui[data-ui] body:not(.admin-ui) .pcard-stats > div { padding: 12px 14px; border-bottom: 1px solid var(--u-line-2); }
  html.app-ui[data-ui] body:not(.admin-ui) .pcard-stats > div:nth-child(3n) { border-right: 0; }
  html.app-ui[data-ui] body:not(.admin-ui) .pcard-stats > div:nth-child(n + 4) { border-bottom: 0; }
  html.app-ui[data-ui] body:not(.admin-ui) .pcard-stats b { font-size: var(--fs-18, 18px); }
  html.app-ui[data-ui] body:not(.admin-ui) .pcard-tabs { padding: 0 8px; }
  html.app-ui[data-ui] body:not(.admin-ui) .pcard-pane { padding: 16px; }
  html.app-ui[data-ui] body:not(.admin-ui) .pcard-two { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  html.app-ui[data-ui] body:not(.admin-ui) .pcard-map { grid-template-columns: 56px minmax(0, 1fr) auto; }
  html.app-ui[data-ui] body:not(.admin-ui) .pcard-map-pic { width: 56px; height: 40px; }
  html.app-ui[data-ui] body:not(.admin-ui) .pcard-race { grid-column: 1 / -1; padding-block: 5px; }
  html.app-ui[data-ui] body:not(.admin-ui) .pcard-head::after { background: linear-gradient(180deg, rgba(8, 12, 24, .35), rgba(8, 12, 24, .62) 35%, rgba(8, 12, 24, .9)); }
}
@container pcard (max-width: 380px) {
  html.app-ui[data-ui] body:not(.admin-ui) .pcard-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  html.app-ui[data-ui] body:not(.admin-ui) .pcard-stats > div { border-bottom: 1px solid var(--u-line-2) !important; border-right: 1px solid var(--u-line-2) !important; }
  html.app-ui[data-ui] body:not(.admin-ui) .pcard-stats > div:nth-child(2n) { border-right: 0 !important; }
  html.app-ui[data-ui] body:not(.admin-ui) .pcard-stats > div:nth-child(n + 5) { border-bottom: 0 !important; }
}
/* over the page: a blurred dark veil, the card rising into view, a round close button on the banner */
html.app-ui body:not(.admin-ui) .pcard-modal { background: rgba(6, 8, 16, .68); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); animation: pcard-veil .25s ease-out both; }
@keyframes pcard-veil { from { opacity: 0; } }
html.app-ui body:not(.admin-ui) .pcard-box { width: min(860px, 100%); animation: pcard-rise .45s cubic-bezier(.16, 1, .3, 1) both; }
@keyframes pcard-rise { from { opacity: 0; transform: translateY(18px) scale(.97); } }
html.app-ui body:not(.admin-ui) .pcard-close { top: 14px; right: 14px; width: 34px; height: 34px; padding: 0; border-radius: 50%; opacity: 1;
  background: rgba(0, 0, 0, .45) var(--bs-btn-close-bg) center / 12px auto no-repeat; filter: invert(1) grayscale(1) brightness(2); }
@media (prefers-reduced-motion: reduce) { html.app-ui body:not(.admin-ui) :is(.pcard-modal, .pcard-box, .pcard-pane.on) { animation: none; } }

/* how rare an achievement is: a small line under how it's earned; gold when under 5% have it, purple under 1% */
html.app-ui body:not(.admin-ui) .achc-rarity { display: inline-flex; align-items: center; gap: 5px; margin: -2px 0 6px; font-size: var(--fs-12, 12px); font-weight: 600;
  color: var(--u-text-2); }
html.app-ui body:not(.admin-ui) .achc-rarity .bi { font-size: 11px; opacity: .8; }
html.app-ui body:not(.admin-ui) .achc-rarity.rare { color: #d99a00; }
html.app-ui body:not(.admin-ui) .achc-rarity.mythic { color: #9a66ff; }
html.app-ui[data-ui="dark"] body:not(.admin-ui) .achc-rarity.rare { color: #ffcf4d; }
html.app-ui[data-ui="dark"] body:not(.admin-ui) .achc-rarity.mythic { color: #c4a2ff; }

/* parses: a session's EXP/hour as a percentile, in a raid parse's colours */
html.app-ui body:not(.admin-ui) :is(.parse-chip, .parse-badge) { --pc: #9aa3b2; }
html.app-ui body:not(.admin-ui) :is(.parse-chip, .parse-badge).p-green { --pc: #1eff00; }
html.app-ui body:not(.admin-ui) :is(.parse-chip, .parse-badge).p-blue { --pc: #0070ff; }
html.app-ui body:not(.admin-ui) :is(.parse-chip, .parse-badge).p-purple { --pc: #a335ee; }
html.app-ui body:not(.admin-ui) :is(.parse-chip, .parse-badge).p-orange { --pc: #ff8000; }
html.app-ui body:not(.admin-ui) :is(.parse-chip, .parse-badge).p-gold { --pc: #e5cc80; }
html.app-ui[data-ui="light"] body:not(.admin-ui) .parse-chip.p-green, html.app-ui[data-ui="light"] body:not(.admin-ui) .parse-badge.p-green { --pc: #1f9e10; }
html.app-ui[data-ui="light"] body:not(.admin-ui) :is(.parse-chip, .parse-badge).p-gold { --pc: #b8901f; }
html.app-ui body:not(.admin-ui) .parse-chip { display: inline-grid; place-items: center; min-width: 30px; padding: 1px 7px; border-radius: 999px;
  font: 800 var(--fs-12, 12px)/1.5 var(--font-display); color: var(--pc); background: color-mix(in srgb, var(--pc) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--pc) 55%, transparent); font-variant-numeric: tabular-nums; }
html.app-ui body:not(.admin-ui) .parse-badge { display: inline-flex; align-items: center; gap: 10px; margin-left: 6px; padding: 5px 12px 5px 6px; border-radius: 14px;
  background: color-mix(in srgb, var(--pc) 12%, var(--u-card)); border: 1px solid color-mix(in srgb, var(--pc) 50%, transparent); }
html.app-ui body:not(.admin-ui) .parse-badge b { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px;
  font: 700 var(--fs-20, 20px)/1 var(--font-display); color: #10131c; background: var(--pc); font-variant-numeric: tabular-nums; }
html.app-ui body:not(.admin-ui) .parse-badge span { display: flex; flex-direction: column; font-size: var(--fs-12, 12px); color: var(--u-text-2); line-height: 1.3; }
html.app-ui body:not(.admin-ui) .parse-badge strong { font-size: var(--fs-14, 14px); color: var(--pc); }

/* the collection book: a card per map, the items found there as icons (yours lit, the rest a dim silhouette) */
html.app-ui body:not(.admin-ui) .cbk-sum { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 28px; margin-bottom: 10px; }
html.app-ui body:not(.admin-ui) .cbk-sum > div b { display: block; font: 700 var(--fs-28, 28px)/1 var(--font-display); color: var(--u-head); }
html.app-ui body:not(.admin-ui) .cbk-sum > div span { font-size: var(--fs-12, 12px); color: var(--u-text-2); }
html.app-ui body:not(.admin-ui) .cbk-near { margin: 0; padding: 8px 12px; border-radius: 12px; font-size: var(--fs-13, 13px); color: var(--u-text);
  background: color-mix(in srgb, var(--u-act) 14%, transparent); }
html.app-ui body:not(.admin-ui) .cbk-near .bi { margin-right: 6px; color: var(--u-act); }
html.app-ui body:not(.admin-ui) .cbk-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
html.app-ui body:not(.admin-ui) .cbk-map { padding: 12px; border-radius: 16px; background: var(--u-card-2); border: 1px solid var(--u-line-2); }
html.app-ui body:not(.admin-ui) .cbk-map.cbk-done { border-color: color-mix(in srgb, #f2bf3a 70%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, #f2bf3a 30%, transparent); }
html.app-ui body:not(.admin-ui) .cbk-map-head { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 10px; }
html.app-ui body:not(.admin-ui) .cbk-map-pic { display: grid; place-items: center; width: 48px; height: 36px; border-radius: 8px; object-fit: contain; image-rendering: pixelated;
  background: #0f1422; border: 1px solid var(--u-line); color: var(--u-text-2); }
html.app-ui body:not(.admin-ui) .cbk-map-head b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--u-head); }
html.app-ui body:not(.admin-ui) .cbk-map-head small { color: var(--u-text-2); font-size: var(--fs-12, 12px); }
html.app-ui body:not(.admin-ui) .cbk-map-n { font: 700 var(--fs-14, 14px) var(--font-display); color: var(--u-head); font-variant-numeric: tabular-nums; }
html.app-ui body:not(.admin-ui) .cbk-map.cbk-done .cbk-map-n { color: #e0a800; }
html.app-ui body:not(.admin-ui) .cbk-bar { height: 6px; margin: 10px 0; border-radius: 3px; background: var(--u-line-2); overflow: hidden; }
html.app-ui body:not(.admin-ui) .cbk-bar i { display: block; height: 100%; border-radius: 3px; background: var(--u-exp); }
html.app-ui body:not(.admin-ui) .cbk-map.cbk-done .cbk-bar i { background: #f2bf3a; }
html.app-ui body:not(.admin-ui) .cbk-items { display: flex; flex-wrap: wrap; gap: 6px; }
html.app-ui body:not(.admin-ui) .cbk-item { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: var(--u-card); border: 1px solid var(--u-line-2); }
html.app-ui body:not(.admin-ui) .cbk-item img { width: 32px; height: 32px; image-rendering: pixelated; object-fit: contain; }
html.app-ui body:not(.admin-ui) .cbk-item.miss img { filter: brightness(0) opacity(.35); }
html.app-ui[data-ui="dark"] body:not(.admin-ui) .cbk-item.miss img { filter: brightness(0) invert(1) opacity(.18); }
html.app-ui body:not(.admin-ui) .cbk-item.miss { border-style: dashed; }

/* the streak card: the last 7 days as flames, today ringed */
html.app-ui body:not(.admin-ui) .sc-flames { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; margin-top: 10px; }
html.app-ui body:not(.admin-ui) .sc-flames span { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 4px 0; border-radius: 10px; color: var(--u-text-2); }
html.app-ui body:not(.admin-ui) .sc-flames span .bi { font-size: 15px; opacity: .45; }
html.app-ui body:not(.admin-ui) .sc-flames span.on .bi { font-size: 18px; opacity: 1; color: #ff8a3d; filter: drop-shadow(0 0 6px rgba(255, 138, 61, .55)); }
html.app-ui body:not(.admin-ui) .sc-flames span.today { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--u-meso) 60%, transparent); }
html.app-ui body:not(.admin-ui) .sc-flames small { font-size: var(--fs-10, 10px); font-weight: 700; }
html.app-ui body:not(.admin-ui) .sc-keep { color: #ff8a3d; font-weight: 700; }
html.app-ui body:not(.admin-ui) .sc:has(.sc-flames) .sc-foot { white-space: normal; overflow: visible; text-overflow: clip; }

/* weekly league: the division's badge, the move-up rows green, the move-down rows red, your row lit */
html.app-ui body:not(.admin-ui) .lg-head { --lg: #cd7f32; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; margin-bottom: 12px; }
html.app-ui body:not(.admin-ui) .lg-head.lg-silver { --lg: #c0c7d2; }
html.app-ui body:not(.admin-ui) .lg-head.lg-gold { --lg: #f2bf3a; }
html.app-ui body:not(.admin-ui) .lg-head.lg-platinum { --lg: #6fd6c9; }
html.app-ui body:not(.admin-ui) .lg-head.lg-diamond { --lg: #7cc4ff; }
html.app-ui body:not(.admin-ui) .lg-badge { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; font-size: 22px; color: #10131c;
  background: linear-gradient(145deg, color-mix(in srgb, var(--lg) 70%, #fff), var(--lg)); box-shadow: 0 6px 18px color-mix(in srgb, var(--lg) 40%, transparent); }
html.app-ui body:not(.admin-ui) .lg-head b { display: block; font: 700 var(--fs-20, 20px) var(--font-display); color: var(--u-head); }
html.app-ui body:not(.admin-ui) .lg-head small { color: var(--u-text-2); }
html.app-ui body:not(.admin-ui) .lg-rules { display: flex; flex-direction: column; gap: 2px; font-size: var(--fs-12, 12px); font-weight: 600; text-align: right; }
html.app-ui body:not(.admin-ui) .lg-rules .up { color: var(--u-good, #4cc36a); } html.app-ui body:not(.admin-ui) .lg-rules .down { color: var(--u-bad, #e5484d); }
html.app-ui body:not(.admin-ui) .lg-list { display: flex; flex-direction: column; gap: 4px; max-height: 420px; overflow-y: auto; padding-right: 4px; }
html.app-ui body:not(.admin-ui) .lg-row { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 12px;
  background: var(--u-card-2); border-left: 3px solid transparent; }
html.app-ui body:not(.admin-ui) .lg-row.up { border-left-color: var(--u-good, #4cc36a); }
html.app-ui body:not(.admin-ui) .lg-row.down { border-left-color: var(--u-bad, #e5484d); opacity: .85; }
html.app-ui body:not(.admin-ui) .lg-row.mine { outline: 2px solid var(--u-act); background: color-mix(in srgb, var(--u-act) 12%, var(--u-card-2)); }
html.app-ui body:not(.admin-ui) .lg-n { font: 700 var(--fs-14, 14px) var(--font-display); color: var(--u-text-2); text-align: center; }
html.app-ui body:not(.admin-ui) .lg-who b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--u-head); }
html.app-ui body:not(.admin-ui) .lg-who small, html.app-ui body:not(.admin-ui) .lg-score small { color: var(--u-text-2); font-size: var(--fs-11_5, 11.5px); }
html.app-ui body:not(.admin-ui) .lg-score { text-align: right; font: 700 var(--fs-15, 15px) var(--font-display); color: var(--u-exp); font-variant-numeric: tabular-nums; }
html.app-ui body:not(.admin-ui) .lg-score small { display: block; font-family: var(--font-body); font-weight: 500; }
@media (max-width: 575.98px) { html.app-ui body:not(.admin-ui) .lg-head { grid-template-columns: auto minmax(0, 1fr); } html.app-ui body:not(.admin-ui) .lg-rules { grid-column: 1 / -1; text-align: left; } }

/* the league's own page (/league). The climb: a staircase of grass platforms, Bronze up to Legend, each with its item
   from the game lying on it, and you on yours. The race: the week's standings of your group in lanes, as long as each
   score, with the lines to get over or stay above. How it works, folded away. And the one small card on the Overview
   that leads there. (--lg: the league's own colour) */
html.app-ui body:not(.admin-ui) .lg-climb { --lg: #cd7f32; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 28px; align-items: end;
  padding: 24px 26px 0; border-radius: 16px; background: var(--u-card); border: 1px solid var(--u-line); overflow: hidden; }
html.app-ui body:not(.admin-ui) .lg-bronze { --lg: #cd7f32; } html.app-ui body:not(.admin-ui) .lg-silver { --lg: #c0c7d2; } html.app-ui body:not(.admin-ui) .lg-gold { --lg: #f2bf3a; }
html.app-ui body:not(.admin-ui) .lg-platinum { --lg: #6fd6c9; } html.app-ui body:not(.admin-ui) .lg-diamond { --lg: #7cc4ff; } html.app-ui body:not(.admin-ui) .lg-legend { --lg: #b58cff; }
html.app-ui body:not(.admin-ui) .lg-top .rk-head-acts { flex-wrap: wrap; justify-content: flex-end; }
html.app-ui body:not(.admin-ui) .lg-you { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding-bottom: 24px; }
html.app-ui body:not(.admin-ui) .lg-league { margin: 0; font: 700 var(--fs-20, 20px)/1.2 var(--font-display); color: var(--u-head); }
html.app-ui body:not(.admin-ui) .lg-moved { display: inline-flex; align-items: center; gap: 5px; margin: 0; font: 600 var(--fs-13, 13px) var(--font-body); }
html.app-ui body:not(.admin-ui) .lg-moved.up { color: color-mix(in srgb, var(--u-good) 70%, var(--u-head)); } html.app-ui body:not(.admin-ui) .lg-moved.down { color: color-mix(in srgb, var(--u-bad) 70%, var(--u-head)); }
html.app-ui body:not(.admin-ui) .lg-place { margin: 8px 0 0; font: 800 clamp(40px, 5vw, 60px)/1 var(--font-display); color: var(--u-head); font-variant-numeric: tabular-nums; }
html.app-ui body:not(.admin-ui) .lg-place small { font-size: .4em; font-weight: 700; vertical-align: super; }
html.app-ui body:not(.admin-ui) .lg-place span { font-size: .38em; font-weight: 600; color: var(--u-text-2); }
html.app-ui body:not(.admin-ui) .lg-mine-score { margin: 0; font: 700 var(--fs-22, 22px) var(--font-display); color: var(--u-exp); font-variant-numeric: tabular-nums; }
html.app-ui body:not(.admin-ui) .lg-mine-score small { margin-left: 6px; font: 500 var(--fs-13, 13px) var(--font-body); color: var(--u-text-2); }
html.app-ui body:not(.admin-ui) .lg-goal { margin: 6px 0 0; max-width: 34em; color: var(--u-text); font-size: var(--fs-15, 15px); line-height: 1.45; }
html.app-ui body:not(.admin-ui) .lg-goal b { color: var(--u-head); }
html.app-ui body:not(.admin-ui) .lg-why { margin: 2px 0 0; max-width: 34em; color: var(--u-text-2); font-size: var(--fs-14, 14px); line-height: 1.45; }
html.app-ui body:not(.admin-ui) .lg-acts { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 18px; margin-top: 14px; }
html.app-ui body:not(.admin-ui) .lg-you > .btn { margin-top: 14px; }
html.app-ui body:not(.admin-ui) .lg-ends { display: inline-flex; align-items: baseline; gap: 6px; font: 600 var(--fs-14, 14px) var(--font-body); color: var(--u-head); }
html.app-ui body:not(.admin-ui) .lg-ends i { align-self: center; color: var(--u-text-2); } html.app-ui body:not(.admin-ui) .lg-ends small { font-weight: 500; font-size: var(--fs-13, 13px); color: var(--u-text-2); }
/* (an item from the game: its own pixels, twice or three times as big, never smoothed) */
html.app-ui body:not(.admin-ui) .lg-item { flex: none; width: calc(var(--w, 26) * var(--k, 2) * 1px); height: calc(var(--h, 26) * var(--k, 2) * 1px); image-rendering: pixelated; }
html.app-ui body:not(.admin-ui) .lg-stairs { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); align-items: end; gap: 10px; margin: 0; padding: 0 6px; list-style: none; }
html.app-ui body:not(.admin-ui) .lg-step { display: flex; flex-direction: column; align-items: center; min-width: 0; }
html.app-ui body:not(.admin-ui) .lg-step .lg-item { position: relative; z-index: 1; margin-bottom: -2px; opacity: .5; }  /* (it lies on the grass; the leagues above you: dimmed) */
html.app-ui body:not(.admin-ui) .lg-step:is(.done, .here) .lg-item { opacity: 1; }
html.app-ui body:not(.admin-ui) .lg-step.here .lg-item { --k: 3; }
html.app-ui body:not(.admin-ui) .lg-flag { margin-bottom: 6px; padding: 3px 10px; border-radius: 999px; background: var(--u-act); color: var(--u-act-ink); font: 700 var(--fs-12, 12px) var(--font-body); white-space: nowrap; }
/* (a platform: a slab of grass over the earth, the earth in the league's colour) */
html.app-ui body:not(.admin-ui) .lg-block { position: relative; display: flex; justify-content: center; width: 100%; height: calc(42px + var(--h) * 19px); padding-top: 15px; border-radius: 3px 3px 0 0;
  background: color-mix(in srgb, var(--lg) 14%, var(--u-card-2)); }
html.app-ui body:not(.admin-ui) .lg-block::before { content: ""; position: absolute; top: -5px; left: -4px; right: -4px; height: 11px; border-radius: 6px;
  background: color-mix(in srgb, #6cc04a 60%, var(--u-card-2)); }
html.app-ui body:not(.admin-ui) .lg-step.done .lg-block { background: color-mix(in srgb, var(--lg) 22%, var(--u-card-2)); }
html.app-ui body:not(.admin-ui) .lg-step.here .lg-block { background: color-mix(in srgb, var(--lg) 36%, var(--u-card-2)); }
html.app-ui body:not(.admin-ui) .lg-step:is(.done, .here) .lg-block::before { background: #6cc04a; box-shadow: inset 0 3px 0 #93dc6a, inset 0 -2px 0 #4a9a36; }
html.app-ui body:not(.admin-ui) .lg-block b { font: 700 var(--fs-13, 13px) var(--font-display); color: color-mix(in srgb, var(--u-text-2) 65%, var(--u-head)); white-space: nowrap; }
html.app-ui body:not(.admin-ui) .lg-step.here .lg-block b { color: var(--u-head); }
html.app-ui body:not(.admin-ui) .lg-step.fresh .lg-item { animation: lg-drop .75s cubic-bezier(.2, .8, .2, 1) both; }  /* (you climbed: it drops onto your step, as items do) */
@keyframes lg-drop { 0% { transform: translateY(-54px); opacity: 0; } 50% { transform: translateY(0); opacity: 1; } 68% { transform: translateY(-10px); } 100% { transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) { html.app-ui body:not(.admin-ui) .lg-step.fresh .lg-item { animation: none; } }
html.app-ui body:not(.admin-ui) .lg-race { margin-top: 16px; padding: 18px 20px 16px; border-radius: 16px; background: var(--u-card); border: 1px solid var(--u-line); }
html.app-ui body:not(.admin-ui) .lg-race-h { display: flex; align-items: baseline; flex-wrap: wrap; gap: 2px 10px; margin-bottom: 10px; }
html.app-ui body:not(.admin-ui) .lg-race-t { margin: 0; font: 700 var(--fs-18, 18px) var(--font-display); color: var(--u-head); }
html.app-ui body:not(.admin-ui) .lg-race-h p { margin: 0; font-size: var(--fs-13, 13px); color: var(--u-text-2); }
html.app-ui body:not(.admin-ui) .lg-lanes { display: flex; flex-direction: column; gap: 3px; margin: 0; padding: 0; list-style: none; }
html.app-ui body:not(.admin-ui) .lg-lane { display: grid; grid-template-columns: 26px minmax(0, 280px) minmax(0, 1fr) 62px; align-items: center; gap: 12px; min-height: 36px; padding: 4px 12px; border-radius: 10px; background: var(--u-card-2); }
html.app-ui body:not(.admin-ui) .lg-lane.up { background: color-mix(in srgb, var(--u-good) 11%, var(--u-card-2)); }
html.app-ui body:not(.admin-ui) .lg-lane.down { background: color-mix(in srgb, var(--u-bad) 9%, var(--u-card-2)); }
html.app-ui body:not(.admin-ui) .lg-lane.mine { outline: 2px solid var(--u-act); outline-offset: -2px; }
html.app-ui body:not(.admin-ui) .lg-lane :is(.lg-n, .lg-who small) { color: color-mix(in srgb, var(--u-text-2) 70%, var(--u-head)); }
html.app-ui body:not(.admin-ui) .lg-lane .lg-who { display: flex; align-items: baseline; gap: 8px; min-width: 0; }
html.app-ui body:not(.admin-ui) .lg-lane .lg-who b { flex: 0 1 auto; min-width: 0; }
html.app-ui body:not(.admin-ui) .lg-lane .lg-who small { flex: 1 1 0; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: var(--fs-13, 13px); }
/* (a Tracker Plus member's name, which opens their card: their colour, mixed toward the text colour so it reads on a lane in
   every look. On the board a name sits on its own look's background; here it's on the lane) */
html.app-ui body:not(.admin-ui) .lg-lane .plus-name { --nc: #e9a21c; background: none; -webkit-text-fill-color: currentColor; color: color-mix(in srgb, var(--nc) 46%, var(--u-head)); text-shadow: none; }
html.app-ui body:not(.admin-ui) .lg-lane .plus-name.ncol-fire { --nc: #ff5a1f; } html.app-ui body:not(.admin-ui) .lg-lane .plus-name.ncol-ice { --nc: #2f9ff0; } html.app-ui body:not(.admin-ui) .lg-lane .plus-name.ncol-pink { --nc: #e0457b; }
html.app-ui body:not(.admin-ui) .lg-lane .plus-name.ncol-purple { --nc: #8a5cf0; } html.app-ui body:not(.admin-ui) .lg-lane .plus-name.ncol-teal { --nc: #1d9e75; } html.app-ui body:not(.admin-ui) .lg-lane .plus-name.ncol-green { --nc: #3f8f2a; }
html.app-ui body:not(.admin-ui) .lg-lane .plus-name.ncol-rainbow { -webkit-text-fill-color: transparent; -webkit-background-clip: text; background-clip: text;
  background-image: linear-gradient(90deg, color-mix(in srgb, #ff6b6b 46%, var(--u-head)), color-mix(in srgb, #e8a500 46%, var(--u-head)), color-mix(in srgb, #3fae55 46%, var(--u-head)), color-mix(in srgb, #4d96ff 46%, var(--u-head)), color-mix(in srgb, #c77dff 46%, var(--u-head))); }
html.app-ui body:not(.admin-ui) .lg-lane .name-btn { text-decoration-color: color-mix(in srgb, var(--u-text-2) 70%, transparent); }
html.app-ui body:not(.admin-ui) .lg-lane .name-btn:hover { text-decoration-style: solid; }
html.app-ui body:not(.admin-ui) .lg-tag { flex: none; align-self: center; padding: 0 7px; border-radius: 999px; background: var(--u-act); color: var(--u-act-ink); font: 700 var(--fs-12, 12px)/1.6 var(--font-body); }
html.app-ui body:not(.admin-ui) .lg-lane .lg-score { font-size: var(--fs-16, 16px); color: var(--u-head); }  /* (the bar is the green) */
/* (no trough behind a bar: it isn't a meter that fills up, it's as long as the score. --line: where the place to beat ends) */
html.app-ui body:not(.admin-ui) .lg-track { position: relative; display: block; height: 12px; }
html.app-ui body:not(.admin-ui) .lg-track i { display: block; height: 100%; border-radius: 3px; background: var(--u-exp); }
html.app-ui body:not(.admin-ui) .lg-track.over i { border-radius: 3px 0 0 3px; clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 50%, calc(100% - 8px) 100%, 0 100%); }
html.app-ui body:not(.admin-ui) .lg-lanes.lined .lg-track::after { content: ""; position: absolute; top: -13px; bottom: -13px; left: var(--line); border-left: 2px dotted color-mix(in srgb, var(--u-head) 42%, transparent); }
html.app-ui body:not(.admin-ui) .lg-line { display: flex; align-items: center; gap: 10px; margin: 4px 0; font: 700 var(--fs-12, 12px) var(--font-body); letter-spacing: .03em; text-transform: uppercase; }
html.app-ui body:not(.admin-ui) .lg-line::before, html.app-ui body:not(.admin-ui) .lg-line::after { content: ""; flex: 1; height: 0; border-top: 2px dashed currentColor; opacity: .55; }
html.app-ui body:not(.admin-ui) .lg-line.up { color: var(--u-good); } html.app-ui body:not(.admin-ui) .lg-line.down { color: var(--u-bad); }
html.app-ui body:not(.admin-ui) .lg-line span { color: var(--u-head); } html.app-ui body:not(.admin-ui) .lg-line.up i { color: var(--u-good); } html.app-ui body:not(.admin-ui) .lg-line.down i { color: var(--u-bad); }
html.app-ui body:not(.admin-ui) .lg-line i { margin-right: 5px; }
html.app-ui body:not(.admin-ui) .lg-gap button { display: flex; align-items: center; justify-content: center; gap: 6px; width: 100%; min-height: 30px; padding: 2px 12px; border: 1px dashed var(--u-line-2, var(--u-line)); border-radius: 10px;
  background: none; color: color-mix(in srgb, var(--u-text-2) 70%, var(--u-head)); font: 600 var(--fs-13, 13px) var(--font-body); cursor: pointer; }
html.app-ui body:not(.admin-ui) .lg-gap button:hover { color: var(--u-head); border-color: var(--u-text-2); }
html.app-ui body:not(.admin-ui) .lg-all { display: block; margin: 12px auto 0; }
html.app-ui body:not(.admin-ui) .lg-how { margin-top: 16px; border-radius: 16px; background: var(--u-card); border: 1px solid var(--u-line); }
html.app-ui body:not(.admin-ui) .lg-how summary { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 20px; border-radius: 16px; cursor: pointer; list-style: none;
  font: 700 var(--fs-16, 16px) var(--font-display); color: var(--u-head); }
html.app-ui body:not(.admin-ui) .lg-how summary::-webkit-details-marker { display: none; }
html.app-ui body:not(.admin-ui) .lg-how summary span { display: inline-flex; align-items: center; gap: 8px; }
html.app-ui body:not(.admin-ui) .lg-how summary i { color: var(--u-text-2); } html.app-ui body:not(.admin-ui) .lg-how summary > i { transition: transform .2s ease-out; }
html.app-ui body:not(.admin-ui) .lg-how[open] summary > i { transform: rotate(180deg); }
html.app-ui body:not(.admin-ui) .lg-how dl { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px 32px; margin: 0; padding: 4px 20px 20px; }
html.app-ui body:not(.admin-ui) .lg-how dt { margin-bottom: 2px; font: 700 var(--fs-14, 14px) var(--font-display); color: var(--u-head); }
html.app-ui body:not(.admin-ui) .lg-how dd { margin: 0; font-size: var(--fs-14, 14px); line-height: 1.5; color: var(--u-text); }
@media (prefers-reduced-motion: reduce) { html.app-ui body:not(.admin-ui) .lg-how summary > i { transition: none; } }
html.app-ui body:not(.admin-ui) .lg-mini { --lg: #cd7f32; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 16px;
  background: var(--u-card); border: 1px solid var(--u-line); color: var(--u-text); text-decoration: none; }
html.app-ui body:not(.admin-ui) .lg-mini:hover, html.app-ui body:not(.admin-ui) .lg-mini:focus-visible { border-color: var(--lg); }
html.app-ui body:not(.admin-ui) .lg-mini .lg-badge:has(.lg-item) { width: auto; height: auto; background: none; }
html.app-ui body:not(.admin-ui) .lg-mini-t b { display: block; font: 700 var(--fs-16, 16px) var(--font-display); color: var(--u-head); }
html.app-ui body:not(.admin-ui) .lg-mini-t small { color: var(--u-text-2); font-size: var(--fs-13, 13px); }
html.app-ui body:not(.admin-ui) .lg-mini-t .up { color: var(--u-good); white-space: nowrap; } html.app-ui body:not(.admin-ui) .lg-mini-t .down { color: var(--u-bad); white-space: nowrap; }
html.app-ui body:not(.admin-ui) .lg-mini-go { display: inline-flex; align-items: center; font-weight: 600; color: var(--u-head); white-space: nowrap; }
@media (max-width: 991.98px) { html.app-ui body:not(.admin-ui) .lg-climb { grid-template-columns: minmax(0, 1fr); gap: 8px; } html.app-ui body:not(.admin-ui) .lg-you { padding-bottom: 10px; }
  html.app-ui body:not(.admin-ui) .lg-how dl { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 575.98px) { html.app-ui body:not(.admin-ui) .lg-climb { padding: 18px 14px 0; } html.app-ui body:not(.admin-ui) .lg-stairs { gap: 5px; padding: 0 2px; }
  html.app-ui body:not(.admin-ui) .lg-step .lg-item { --k: 1; } html.app-ui body:not(.admin-ui) .lg-step.here .lg-item { --k: 2; }
  html.app-ui body:not(.admin-ui) .lg-block { height: calc(34px + var(--h) * 13px); padding-top: 12px; } html.app-ui body:not(.admin-ui) .lg-block b { font-size: var(--fs-12, 12px); }
  html.app-ui body:not(.admin-ui) .lg-step:not(.here):not(.next) .lg-block b { display: none; }  /* (six names don't fit side by side: yours and the one above it) */
  html.app-ui body:not(.admin-ui) .lg-race { padding: 14px 12px 14px; }
  html.app-ui body:not(.admin-ui) .lg-lane { grid-template-columns: 22px minmax(0, 1fr) auto; gap: 3px 10px; padding: 6px 10px; } html.app-ui body:not(.admin-ui) .lg-track { grid-column: 1 / -1; grid-row: 2; height: 6px; }
  html.app-ui body:not(.admin-ui) .lg-lanes.lined .lg-track::after { display: none; }  /* (the bar sits under the name there: no line to draw through the lanes) */
  html.app-ui body:not(.admin-ui) .lg-how dl { grid-template-columns: minmax(0, 1fr); }
  html.app-ui body:not(.admin-ui) .lg-mini { grid-template-columns: auto minmax(0, 1fr); } html.app-ui body:not(.admin-ui) .lg-mini-go { grid-column: 1 / -1; justify-content: flex-end; } }

/* (which days the EXP chart's sum covers, next to it) */
html.app-ui body:not(.admin-ui) .ov-chart-span { margin-left: 4px; font-size: var(--fs-12, 12px); color: var(--u-text-2); }

/* the profile's banner: a dark wash on the left, under the name, so it reads on any town (gold on Henesys' stones didn't) */
html.app-ui body:not(.admin-ui) :is(.prof-hero.has-tb, .prof-hero.has-pic)::before { content: ""; position: absolute; z-index: 1; inset: 0; pointer-events: none;
  border-radius: inherit; background: linear-gradient(90deg, rgba(8, 12, 24, .72), rgba(8, 12, 24, .35) 45%, transparent 75%),
    linear-gradient(0deg, rgba(8, 12, 24, .5), transparent 60%); }
html.app-ui body:not(.admin-ui) :is(.prof-hero.has-tb, .prof-hero.has-pic) > .look-fx { z-index: 1; }

/* How you compare / When you grind: each as tall as it needs (How you compare, with too few players on the map, was half empty) */
html.app-ui body:not(.admin-ui) .ov-row:has(#ov-compare) { align-items: start; }
html.app-ui body:not(.admin-ui) .ov-row > #ov-compare > .window { height: auto; }

/* contrast in light (the audit, Nov 23): yellow, green and orange text on white read at 1.5 to 3.8; darker shades of
   the same colours, 4.5 and up */
html.app-ui[data-ui="light"] body:not(.admin-ui) .ac-tier .achc-worn { color: #7a5200; }
html.app-ui[data-ui="light"] body:not(.admin-ui) .ac-tier .achc .achc-done,
html.app-ui[data-ui="light"] body:not(.admin-ui) .ac-tier .achc.earned.t-extreme .achc-done { color: #1d6e16; }
html.app-ui[data-ui="light"] body:not(.admin-ui) .chip.exp { color: #1d6e16; }
html.app-ui[data-ui="light"] body:not(.admin-ui) .chip.meso { color: #a54500; }

/* click targets at least 24px high (the audit): the period and size switches, links set as buttons in card corners,
   achievements' filters and pins */
html.app-ui body:not(.admin-ui) :is(.ov-tab, .sc-switch button, .achc-pin, .seg-sm button, .rk-filters button) { min-height: 24px; }
html.app-ui body:not(.admin-ui) .achc-pin { min-width: 26px; min-height: 26px !important; display: inline-grid; place-items: center; }
html.app-ui body:not(.admin-ui) .window-aside a { display: inline-flex; align-items: center; min-height: 24px; }

/* ================================================================ Rankings' top 3: a podium, number 1 on top ===== */
/* (the live board's top 3 stand on the same one: .bd-stage, its own few rules after these) */
/* 2 – 1 – 3, number 1 in the middle, wider and standing taller: its own dark card with a gold rim, a gold tag on top,
   the place, avatar and name bigger. 2 and 3 stay calm, in their silver and bronze. On a phone: 1 first, full width. */
html.app-ui body:not(.admin-ui) :is(#rk-stage, .bd-stage) { grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr) minmax(0, 1fr); align-items: end; padding-top: 14px; }
html.app-ui body:not(.admin-ui) :is(#rk-stage, .bd-stage) .p1 { order: 2; } html.app-ui body:not(.admin-ui) :is(#rk-stage, .bd-stage) .p2 { order: 1; }
html.app-ui body:not(.admin-ui) :is(#rk-stage, .bd-stage) .p3 { order: 3; }
html.app-ui body:not(.admin-ui) :is(#rk-stage, .bd-stage) .p1 .rk-card { position: relative; gap: 16px; padding: 30px 22px 22px; border-radius: 20px; }
html.app-ui body:not(.admin-ui) :is(#rk-stage, .bd-stage) .p1 .rk-card:not(.look) { --u-head: #fff; --u-text: #e6ebf5; --u-text-2: #b7c1d4; --u-line: rgba(255, 255, 255, .14);
  --u-line-2: rgba(255, 255, 255, .1); --u-card-2: rgba(255, 255, 255, .08); --medal: #f2bf3a;
  color: #e6ebf5; background: linear-gradient(170deg, #2b2346 0%, #171330 70%); border: 2px solid #e2ac2b;
  box-shadow: 0 22px 48px rgba(20, 12, 40, .35), inset 0 1px 0 rgba(255, 255, 255, .12); }
html.app-ui body:not(.admin-ui) :is(#rk-stage, .bd-stage) .p1 .rk-card.look { border-width: 2px; box-shadow: 0 22px 48px rgba(20, 12, 40, .35); }
html.app-ui body:not(.admin-ui) :is(#rk-stage, .bd-stage) .p1 .rk-card:not(.look) .rk-lv { color: #ffd25a; }
html.app-ui body:not(.admin-ui) :is(#rk-stage, .bd-stage) .p1 .rk-place { font-size: var(--fs-56, 56px); color: #f2bf3a; text-shadow: 0 2px 14px rgba(242, 191, 58, .35); }
html.app-ui body:not(.admin-ui) :is(#rk-stage, .bd-stage) .p1 .rk-place small { font-size: var(--fs-20, 20px); }
html.app-ui body:not(.admin-ui) :is(#rk-stage, .bd-stage) .p1 .rk-lv { font-size: var(--fs-28, 28px); }
html.app-ui body:not(.admin-ui) :is(#rk-stage, .bd-stage) .p1 .rk-av { width: 62px; height: 62px; font-size: var(--fs-26, 26px); border-color: #f2bf3a; }
html.app-ui body:not(.admin-ui) :is(#rk-stage, .bd-stage) .p1 .rk-name { font-size: var(--fs-24, 24px); }
/* the gold tag across the top edge */
html.app-ui body:not(.admin-ui) :is(#rk-stage, .bd-stage) .p1 { position: relative; }
html.app-ui body:not(.admin-ui) .rk-crown { position: absolute; z-index: 5; top: 0; left: 50%; transform: translate(-50%, -55%); display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 14px; border-radius: 999px; white-space: nowrap; font: 700 var(--fs-12_5, 12.5px) var(--font-body); letter-spacing: .04em; text-transform: uppercase;
  color: #2b1d00; background: linear-gradient(180deg, #ffd86b, #e8a816); box-shadow: 0 6px 16px rgba(226, 172, 43, .4); }
/* 2 and 3: a step lower, as on a podium */
html.app-ui body:not(.admin-ui) :is(#rk-stage, .bd-stage) :is(.p2, .p3) .rk-card { margin-top: 26px; }
@media (max-width: 767.98px) {
  html.app-ui body:not(.admin-ui) :is(#rk-stage, .bd-stage) { grid-template-columns: minmax(0, 1fr); padding-top: 12px; }
  html.app-ui body:not(.admin-ui) :is(#rk-stage, .bd-stage) .p1 { order: 0; } html.app-ui body:not(.admin-ui) :is(#rk-stage, .bd-stage) .p2 { order: 1; }
  html.app-ui body:not(.admin-ui) :is(#rk-stage, .bd-stage) :is(.p2, .p3) .rk-card { margin-top: 0; }
  html.app-ui body:not(.admin-ui) :is(#rk-stage, .bd-stage) .p1 .rk-card { padding: 26px 16px 16px; }
  html.app-ui body:not(.admin-ui) :is(#rk-stage, .bd-stage) .p1 .rk-place { font-size: var(--fs-40, 40px); }
}

/* ================================================================ class icons ===== */
/* Each job's own weapon as the game draws it (app.js classIcon), at its own size so every pixel stays a pixel, in a slot
   in the class's colour: on the podiums, in Rankings' rows and its class filter. */
html.app-ui body:not(.admin-ui) .cls-ic { flex: none; width: auto; height: auto; max-width: none; image-rendering: pixelated; }
html.app-ui body:not(.admin-ui) .rk-av { border-radius: 14px; color: inherit; background: color-mix(in srgb, var(--cc, #9a8a74) 20%, var(--u-card));
  border: 2px solid color-mix(in srgb, var(--cc, #9a8a74) 75%, transparent); box-shadow: inset 0 -6px 10px color-mix(in srgb, var(--cc, #9a8a74) 14%, transparent); }
html.app-ui body:not(.admin-ui) .rk-av.sm { border-radius: 10px; }
html.app-ui body:not(.admin-ui) :is(#rk-stage, .bd-stage) .p1 .rk-av { width: 72px; height: 72px; border-radius: 18px; background: color-mix(in srgb, var(--cc, #9a8a74) 30%, #1d1838); }
html.app-ui body:not(.admin-ui) :is(#rk-stage, .bd-stage) .p1 .rk-av .cls-ic { transform: scale(2); }
html.app-ui body:not(.admin-ui) .rk-card.look .rk-av { background: color-mix(in srgb, var(--cc, #9a8a74) 22%, #fff); }
html.app-ui body:not(.admin-ui) .rk-tile, html.app-ui[data-ui="light"] body:not(.admin-ui) .rk-tile { background: color-mix(in srgb, var(--cc, #9a8a74) 20%, var(--u-card));
  border: 1px solid color-mix(in srgb, var(--cc, #9a8a74) 55%, transparent); }
html.app-ui body:not(.admin-ui) .rk-row.look .rk-tile { background: color-mix(in srgb, var(--cc, #9a8a74) 22%, #fff); }
html.app-ui body:not(.admin-ui) .rk-classes button .cls-ic { width: 22px; height: 22px; margin: -3px 0; object-fit: contain; image-rendering: auto; }
@media (max-width: 767.98px) {
  html.app-ui body:not(.admin-ui) :is(#rk-stage, .bd-stage) .p1 .rk-av { width: 60px; height: 60px; border-radius: 16px; }
  html.app-ui body:not(.admin-ui) :is(#rk-stage, .bd-stage) .p1 .rk-av .cls-ic { transform: scale(1.5); image-rendering: auto; }
}

/* The live board's top 3, on the podium above: it stands inside the Players window (room for the gold tag, a line over
   it), has the EXP/h where Rankings has the level, the map as a picture with its name on it (its scene, or its town's),
   and a line of how long, mesos and party under that. */
html.app-ui body:not(.admin-ui) :is(#rk-stage, .bd-stage).bd-stage { margin: 0; padding: 30px 16px 18px; border-top: 1px solid var(--u-line); }
html.app-ui body:not(.admin-ui) .bd-stage .bd-top-rate { display: flex; flex-direction: column; align-items: flex-end; gap: 5px; }
html.app-ui body:not(.admin-ui) .bd-stage .bd-top-rate small { font: 600 var(--fs-11, 11px)/1 var(--font-body); letter-spacing: .06em; text-transform: uppercase; color: var(--u-text-2); }
html.app-ui body:not(.admin-ui) .bd-stage .rk-name { display: flex; align-items: center; gap: 6px; max-width: 100%; }
html.app-ui body:not(.admin-ui) .bd-stage .rk-job { flex-wrap: wrap; gap: 5px 7px; }
html.app-ui body:not(.admin-ui) .bd-top-art { position: relative; flex: none; height: 78px; margin-top: auto; overflow: hidden; border-radius: 12px;
  background: color-mix(in srgb, var(--cc, #8a6ae0) 35%, #1b1730); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12); }
html.app-ui body:not(.admin-ui) .bd-stage .p1 .bd-top-art { height: 104px; }
html.app-ui body:not(.admin-ui) .bd-top-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
html.app-ui body:not(.admin-ui) .bd-top-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(14, 10, 30, 0) 30%, rgba(14, 10, 30, .82)); }
html.app-ui body:not(.admin-ui) .bd-top-art .bd-top-map { position: absolute; z-index: 1; left: 10px; right: 10px; bottom: 8px; display: flex; align-items: center; gap: 6px;
  font: 700 var(--fs-13_5, 13.5px) var(--font-body); color: #fff; text-shadow: 0 1px 3px rgba(0, 0, 0, .7); }
html.app-ui body:not(.admin-ui) .bd-top-art .bd-top-map span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
html.app-ui body:not(.admin-ui) .bd-top-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px;
  font: 600 var(--fs-13, 13px) var(--font-body); color: var(--u-text-2); font-variant-numeric: tabular-nums; }
html.app-ui body:not(.admin-ui) .bd-top-foot > span { display: inline-flex; align-items: center; gap: 5px; min-width: 0; }
html.app-ui body:not(.admin-ui) .bd-top-foot .m { color: color-mix(in srgb, var(--u-meso) 72%, var(--u-head)); }
html.app-ui body:not(.admin-ui) .bd-top-foot .board-status { margin-left: auto; }
/* a Tracker Plus look on the card: its own light or dark, as on the member's row (.bd-row.look) */
html.app-ui[data-ui] body:not(.admin-ui) .bd-stage .rk-card.look:not(.look-dark) :is(.bd-top-foot, .bd-top-rate small) { color: #1b2a3b; }
html.app-ui[data-ui] body:not(.admin-ui) .bd-stage .rk-card.look:not(.look-dark) .bd-top-foot .m { color: #8a4a00; }
html.app-ui[data-ui] body:not(.admin-ui) .bd-stage .rk-card.look-dark :is(.bd-top-foot, .bd-top-rate small) { color: #fff; text-shadow: 0 1px 3px rgba(0, 0, 0, .5); }
html.app-ui[data-ui] body:not(.admin-ui) .bd-stage .rk-card.look-dark .bd-top-foot .m { color: #ffc27a; }
/* number 1's own card is dark in the light look too: its status as on a dark look */
html.app-ui body:not(.admin-ui) .bd-stage .p1 .rk-card:not(.look) .board-status { color: #fff; background: rgba(255, 255, 255, .16); border-color: rgba(255, 255, 255, .4); }
html.app-ui body:not(.admin-ui) .bd-stage .p1 .rk-card:not(.look) .board-status.live { color: #7dff9b; }
html.app-ui body:not(.admin-ui) .bd-stage .p1 .rk-card:not(.look) .board-status.idle { color: #ffcd2e; }
html.app-ui body:not(.admin-ui) .bd-stage .p1 .rk-card:not(.look) .bd-top-foot .m { color: #ffc27a; }
@media (max-width: 767.98px) {
  html.app-ui body:not(.admin-ui) :is(#rk-stage, .bd-stage).bd-stage { padding: 26px 10px 12px; }
}

/* ================================================================ the pop-out (html.pip-ui, app.js pipLook)
   The app's look in the pop-out: dark or light and the colours picked, switched with the page. Only the colour names come
   along (the blocks at the top); these are its own rules, as no page's rules apply in it (their class names clash). */
html.pip-ui[data-ui] body.pip-body { background: radial-gradient(600px 260px at 75% -20%, var(--u-bg-2), transparent 70%) var(--u-bg); color: var(--u-text); }
html.pip-ui[data-ui] body.pip-body::before, html.pip-ui[data-ui] body.pip-body::after { display: none; }  /* (no season's clouds or snow: the app's look) */
html.pip-ui[data-ui] body.pip-body .window {
  background: var(--u-card); border: 1px solid var(--u-line); border-radius: 14px; box-shadow: 0 8px 22px var(--u-shadow); color: var(--u-text);
}
html.pip-ui[data-ui] body.pip-body .window::before, html.pip-ui[data-ui] body.pip-body .window::after { display: none; }
html.pip-ui[data-ui] body.pip-body .window-title { background: transparent; color: var(--u-head); border-bottom: 1px solid var(--u-line-2); text-shadow: none; }
html.pip-ui[data-ui] body.pip-body .window-title :is(b, strong) { color: var(--u-head); }
/* the compact one */
html.pip-ui[data-ui] body.pip-body .cp-dot { box-shadow: 0 0 0 2px color-mix(in srgb, var(--u-good) 25%, transparent); background: var(--u-good); }
html.pip-ui[data-ui] body.pip-body .cp-big, html.pip-ui[data-ui] body.pip-body .cp-side { color: var(--u-head); }
html.pip-ui[data-ui] body.pip-body :is(.cp-unit, .cp-side small, .cp-cell small, .cp-cell em, .cp-chart span, .cp-map) { color: var(--u-text-2); }
html.pip-ui[data-ui] body.pip-body .cp-cell { background: var(--u-card-2); border-color: var(--u-line-2); }
html.pip-ui[data-ui] body.pip-body .cp-cell b { color: var(--u-head); }
html.pip-ui[data-ui] body.pip-body .cp-cell.meso b { color: var(--u-meso); }
html.pip-ui[data-ui="light"] body.pip-body .cp-cell.meso b { color: color-mix(in srgb, var(--u-meso) 72%, var(--u-head)); }  /* (the bright orange doesn't read on white) */
html.pip-ui[data-ui="light"] body.pip-body .cp-float { color: color-mix(in srgb, var(--u-exp) 72%, var(--u-head)); text-shadow: 0 0 3px #fff, 0 0 2px #fff; }
html.pip-ui[data-ui] body.pip-body .cp-cell.pot b { color: var(--u-bad); }
html.pip-ui[data-ui] body.pip-body .cp-chart i { background: var(--u-exp); }
html.pip-ui[data-ui] body.pip-body .cp-chart i:last-child { background: var(--u-act); }
html.pip-ui[data-ui] body.pip-body .cp-bar { background: var(--u-card-3); border-color: var(--u-line); }
html.pip-ui[data-ui] body.pip-body .cp-bar i { background: linear-gradient(90deg, var(--u-exp), color-mix(in srgb, var(--u-exp) 55%, #d6f56a)); }
html.pip-ui[data-ui="light"] body.pip-body .cp-bar span { color: var(--u-head); text-shadow: 0 0 3px var(--u-card), 0 0 2px var(--u-card); }
html.pip-ui[data-ui] body.pip-body .cp-mobs { color: var(--u-text-2); }
/* the whole card: its colour names pointed at the app's (the theme on it still picks the light or dark details) */
html.pip-ui[data-ui] :is(.ov, [data-ov-theme]) {
  --ov-bg: var(--u-card); --ov-cell: var(--u-card-2); --ov-line: var(--u-line); --ov-track: var(--u-card-3); --ov-page: var(--u-bg);
  --ov-head: var(--u-head); --ov-text: var(--u-text); --ov-text-2: var(--u-text-2); --ov-act: var(--u-act); --ov-act-ink: var(--u-act-ink);
  --ov-exp: var(--u-exp); --ov-meso: var(--u-meso); --ov-good: var(--u-good); --ov-bad: var(--u-bad); --ov-shadow: 0 10px 28px var(--u-shadow);
}
html.pip-ui[data-ui] .pip-ach-row { background: var(--u-card); }
html.pip-ui[data-ui] :is(.pip-ach-empty, .pip-ach-top span, .pip-ach-how, .pip-ach-off) { color: var(--u-text-2); }
html.pip-ui[data-ui] .pip-ach-empty b { color: var(--u-head); }
html.pip-ui[data-ui] .pip-ach-empty .bi { color: var(--u-act); }
html.pip-ui[data-ui="light"] .pip-ach-empty .bi { color: color-mix(in srgb, var(--u-act) 70%, #8a5a00); }
/* the gear and its list */
html.pip-ui[data-ui] .pip-size { background: var(--u-card-2); border: 1px solid var(--u-line); line-height: 20px; }
html.pip-ui[data-ui] .pip-size:hover { background: var(--u-card-3); }
html.pip-ui[data-ui] .pip-gear { color: var(--u-act); }
html.pip-ui[data-ui="light"] .pip-gear { color: color-mix(in srgb, var(--u-act) 70%, #8a5a00); }
html.pip-ui[data-ui] .pip-parts { color: var(--u-text); background: var(--u-card); border-color: var(--u-line); box-shadow: 0 12px 30px var(--u-shadow); }
html.pip-ui[data-ui] .pip-parts b { color: var(--u-text-2); }
html.pip-ui[data-ui] .pip-presets button { color: var(--u-text); background: var(--u-card-2); border-color: var(--u-line); }
html.pip-ui[data-ui] .pip-presets button:hover { background: color-mix(in srgb, var(--u-act) 22%, var(--u-card-2)); border-color: var(--u-act); }
/* Items found (test sites) */
html.pip-ui[data-ui] body.pip-body { --t2-accent: var(--u-act); --t2-accent-line: color-mix(in srgb, var(--u-act) 70%, #000); --t2-on: var(--u-act-ink); }
html.pip-ui[data-ui] body.pip-body .t2-chat { background: var(--u-card-2); border-color: var(--u-line); color: var(--u-text); }
/* other players' level-ups at the top and the crowns feed at the bottom: cards in the app's colours, not the old purple ones */
html.pip-ui[data-ui] .pip-mention { color: var(--u-head); background: var(--u-card); border-color: var(--u-act); box-shadow: 0 8px 22px var(--u-shadow); }
html.pip-ui[data-ui] .pip-mention .bi, html.pip-ui[data-ui] .pip-kill .k { color: var(--u-act); }
html.pip-ui[data-ui] .pip-kill { color: var(--u-head); background: var(--u-card); box-shadow: 0 6px 16px var(--u-shadow); }
html.pip-ui[data-ui] .pip-kill .you { color: var(--u-bad); } html.pip-ui[data-ui] .pip-kill .m { color: var(--u-text-2); }
html.pip-ui[data-ui="light"] .pip-mention .bi { color: color-mix(in srgb, var(--u-act) 70%, #8a5a00); }
html.pip-ui[data-ui="light"] .pip-kill .k { color: color-mix(in srgb, var(--u-act) 30%, #5a3800); }  /* (the crown is a letter: dark gold to read on white) */
html.pip-ui[data-ui="light"] .pip-mention .plus-name:not([class*="ncol-"]) { background: none; -webkit-text-fill-color: color-mix(in srgb, var(--u-act) 30%, #5a3800); }
/* the banner with the confetti (a level up, a new record): the app's plain card, in the pop-out's size (the glowing gold
   headline didn't read on a light pop-out) */
html.pip-ui[data-ui] .confetti .levelup-banner { top: 38%; padding: 9px 16px; border-radius: 12px; font: 700 18px/1.2 var(--font-display); letter-spacing: 0;
  color: var(--u-head); background: var(--u-card); border: 1px solid var(--u-act); text-shadow: none; box-shadow: 0 14px 30px var(--u-shadow); }

/* ---------- party rooms (/party): the party side by side, each card in its class's colour ---------- */
html.app-ui body:not(.admin-ui) .pr-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
html.app-ui body:not(.admin-ui) .pr-card { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 16px; border-radius: 16px;
  background: var(--u-card); border: 1px solid var(--u-line); border-top: 4px solid var(--cc, var(--u-line)); color: var(--u-text); }
html.app-ui body:not(.admin-ui) .pr-card.me { box-shadow: 0 0 0 2px color-mix(in srgb, var(--u-act) 70%, transparent); }
html.app-ui body:not(.admin-ui) .pr-card.off { border-top-color: var(--u-line); opacity: .85; }
html.app-ui body:not(.admin-ui) .pr-top { display: flex; align-items: center; gap: 8px; min-width: 0; }
html.app-ui body:not(.admin-ui) .pr-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--u-head); font: 700 var(--fs-18, 18px)/1.2 var(--font-display); }
html.app-ui body:not(.admin-ui) .pr-owner { color: var(--u-act); }
html.app-ui body:not(.admin-ui) .pr-you { padding: 1px 7px; border-radius: 6px; background: var(--u-act); color: var(--u-act-ink); font-size: var(--fs-11, 11px); font-weight: 800; }
html.app-ui body:not(.admin-ui) .pr-dot { flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--u-text-2); }
html.app-ui body:not(.admin-ui) .pr-card.live .pr-dot { background: var(--u-good); box-shadow: 0 0 0 4px color-mix(in srgb, var(--u-good) 22%, transparent); animation: pr-live 2s ease-in-out infinite; }
html.app-ui body:not(.admin-ui) .pr-card.idle .pr-dot { background: var(--u-act); }
@keyframes pr-live { 50% { box-shadow: 0 0 0 7px color-mix(in srgb, var(--u-good) 8%, transparent); } }
html.app-ui body:not(.admin-ui) .pr-who, html.app-ui body:not(.admin-ui) .pr-off, html.app-ui body:not(.admin-ui) .pr-status { margin: 0; color: var(--u-text-2); font-size: var(--fs-13, 13px); }
html.app-ui body:not(.admin-ui) .pr-who .bi { color: var(--cc); }
html.app-ui body:not(.admin-ui) .pr-big { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
html.app-ui body:not(.admin-ui) .pr-big b { color: var(--u-exp); font: 800 var(--fs-32, 32px)/1 var(--font-display); font-variant-numeric: tabular-nums; }
html.app-ui body:not(.admin-ui) .pr-big small { color: var(--u-text-2); font-weight: 700; }
html.app-ui body:not(.admin-ui) .pr-big span { margin-left: auto; color: var(--u-text); font-weight: 700; font-variant-numeric: tabular-nums; }
html.app-ui body:not(.admin-ui) .pr-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 12px; padding-top: 8px; border-top: 1px solid var(--u-line); }
html.app-ui body:not(.admin-ui) .pr-facts div { display: flex; flex-direction: column; min-width: 0; }
html.app-ui body:not(.admin-ui) .pr-facts small { color: var(--u-text-2); font-size: var(--fs-12, 12px); }
html.app-ui body:not(.admin-ui) .pr-facts b { color: var(--u-head); font-variant-numeric: tabular-nums; }
html.app-ui body:not(.admin-ui) .pr-facts span { color: var(--u-text-2); font-size: var(--fs-12, 12px); }
html.app-ui body:not(.admin-ui) .pr-finds { display: flex; flex-wrap: wrap; gap: 6px; }
html.app-ui body:not(.admin-ui) .pr-finds span { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; background: var(--u-card-2); border: 1px solid var(--u-line); }
html.app-ui body:not(.admin-ui) .pr-finds img { image-rendering: pixelated; }
html.app-ui body:not(.admin-ui) .pr-status { margin-top: auto; }
html.app-ui body:not(.admin-ui) .pr-free { align-items: center; justify-content: center; min-height: 160px; border: 2px dashed var(--u-line); border-top-width: 2px;
  background: none; color: var(--u-text-2); text-align: center; }
html.app-ui body:not(.admin-ui) .pr-free .bi { font-size: 1.6rem; }
html.app-ui body:not(.admin-ui) .pr-sum { display: flex; flex-wrap: wrap; gap: 10px 28px; padding: 14px 18px; border-radius: 14px; background: var(--u-card); border: 1px solid var(--u-line); }
html.app-ui body:not(.admin-ui) .pr-sum div { display: flex; flex-direction: column; }
html.app-ui body:not(.admin-ui) .pr-sum small { color: var(--u-text-2); font-size: var(--fs-12, 12px); font-weight: 700; }
html.app-ui body:not(.admin-ui) .pr-sum b { color: var(--u-head); font: 800 var(--fs-22, 22px)/1.1 var(--font-display); font-variant-numeric: tabular-nums; }
html.app-ui body:not(.admin-ui) .pr-join { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; padding: 16px 18px; border-radius: 14px;
  background: color-mix(in srgb, var(--u-act) 12%, var(--u-card)); border: 1px solid color-mix(in srgb, var(--u-act) 45%, var(--u-line)); }
html.app-ui body:not(.admin-ui) .pr-join b { color: var(--u-head); font-size: var(--fs-16, 16px); }
html.app-ui body:not(.admin-ui) .pr-join p { margin: 2px 0 0; max-width: 62ch; color: var(--u-text-2); font-size: var(--fs-13_5, 13.5px); }
html.app-ui body:not(.admin-ui) .pr-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; }
html.app-ui body:not(.admin-ui) .pr-steps div { display: flex; flex-direction: column; gap: 4px; padding: 16px; border-radius: 14px; background: var(--u-card); border: 1px solid var(--u-line); }
html.app-ui body:not(.admin-ui) .pr-steps .bi { color: var(--u-act); font-size: 1.4rem; }
html.app-ui body:not(.admin-ui) .pr-steps b { color: var(--u-head); }
html.app-ui body:not(.admin-ui) .pr-steps span { color: var(--u-text-2); font-size: var(--fs-13_5, 13.5px); }
@media (prefers-reduced-motion: reduce) { html.app-ui body:not(.admin-ui) .pr-card.live .pr-dot { animation: none; } }
