/* ==========================================================================
   The page standard (the Casino look) as shared pieces. pg- everything.
   A page wraps itself in .pg, uses these for the hero, the gold box, the
   "your move" strip, panels and rows, and keeps only what's its own in
   assets/css/p-<page>.css.
   ========================================================================== */
.pg { --g1: #f6dc9a; --g2: #d8a54a; --g3: #8a6220; --sv: #cfd6df; --bz: #d08b5b; --ok: #5fe08e; --no: #ff6b5e;
  --head: "Big Shoulders Display", "Oswald", Impact, sans-serif; display: grid; gap: 16px; min-width: 0; }
.pg *, .pg *::before, .pg *::after { box-sizing: border-box; }
.pg > * { min-width: 0; }
.pg form { margin: 0; }

/* ---- hero ---- */
.pg-hero { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 26px; align-items: center; min-height: 236px; padding: clamp(20px, 3.4vw, 36px); overflow: hidden;
  border: 1px solid color-mix(in oklab, var(--g2) 40%, transparent);
  background: linear-gradient(90deg, rgba(10, 6, 3, .96) 0%, rgba(10, 6, 3, .8) 46%, rgba(10, 6, 3, .34)), var(--page-img, linear-gradient(120deg, #17110a, #0b0a08)) center / cover no-repeat, #0e0b08; }
.pg-hero::before { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 50% 110% at 94% 50%, rgba(216, 165, 74, .2), transparent 70%); }
.pg-hero > * { position: relative; min-width: 0; }
.pg-eye { font: 700 11px/1.2 var(--font); letter-spacing: .2em; text-transform: uppercase; color: var(--g2); }
.pg-eye a { color: var(--g2); text-decoration: none; }
.pg .pg-hero h1 { margin: 8px 0 10px; font: 800 clamp(46px, 7vw, 88px)/.86 var(--head); letter-spacing: .01em; text-transform: uppercase; color: #fbf3e0; text-shadow: 0 4px 26px rgba(0, 0, 0, .7); }
.pg-hero p { margin: 0 0 16px; max-width: 54ch; font-size: 15px; line-height: 1.5; color: #e6dcc6; }
.pg-hero p b { color: #fff; }
.pg-stats { display: inline-flex; flex-wrap: wrap; max-width: 100%; border: 1px solid rgba(255, 255, 255, .14); background: rgba(0, 0, 0, .42); }
.pg-stats > div { display: grid; gap: 5px; align-content: center; min-width: 104px; padding: 9px 16px; border-right: 1px solid rgba(255, 255, 255, .1); }
.pg-stats > div:last-child { border-right: 0; }
.pg-stats b { font: 800 22px/1 var(--head); letter-spacing: .02em; color: var(--g1); white-space: nowrap; font-variant-numeric: tabular-nums; }
.pg-stats b small { font: 700 13px/1 var(--head); color: #a3987f; }
.pg-stats b > [data-countdown] { font: inherit; letter-spacing: inherit; text-transform: none; color: inherit; }
.pg-stats b.is-ok, .pg-stats b.t-ok { color: var(--ok); } .pg-stats b.is-no, .pg-stats b.t-no { color: var(--no); }
.pg-stats span { font: 600 10px/1 var(--font); letter-spacing: .14em; text-transform: uppercase; color: #a8a294; white-space: nowrap; }
.pg-stats a { color: inherit; text-decoration: none; }

/* ---- the gold box ---- */
.pg-pot { display: grid; grid-template-columns: minmax(0, 1fr); justify-items: center; gap: 3px; width: 300px; max-width: 100%; padding: 18px 20px 16px; text-align: center; background: rgba(18, 8, 4, .88); border: 2px solid var(--g2); box-shadow: 0 0 44px rgba(255, 180, 60, .22); }
.pg-pot > small { font: 700 11px/1.3 var(--font); letter-spacing: .24em; text-transform: uppercase; color: #ffd98a; }
.pg-pot > b { font: 800 clamp(38px, 4.6vw, 54px)/1 var(--head); letter-spacing: .01em; color: var(--g1); text-shadow: 0 0 22px rgba(255, 200, 90, .4); font-variant-numeric: tabular-nums; white-space: nowrap; }
.pg-pot > b.is-ok { color: var(--ok); text-shadow: 0 0 22px rgba(95, 224, 142, .3); }
.pg-pot > b.is-no { color: var(--no); text-shadow: 0 0 22px rgba(255, 107, 94, .3); }
.pg-pot > b.is-word { font-size: clamp(30px, 3.6vw, 40px); text-transform: uppercase; }
.pg-pot > em { font: normal 500 13px/1.4 var(--font); color: #e0d2b4; }
.pg-pot > em b { color: #fff; font-weight: 700; }
.pg-pot__clock { display: grid; gap: 4px; width: 100%; margin-top: 10px; padding-top: 10px; border-top: 1px solid rgba(216, 165, 74, .35); }
.pg-pot__clock span { font: 600 10px/1 var(--font); letter-spacing: .18em; text-transform: uppercase; color: #a8a294; }
.pg-pot__clock strong { font: 700 18px/1.1 var(--mono); color: #fff; font-variant-numeric: tabular-nums; }
.pg-pot__bar { width: 100%; height: 4px; margin-top: 8px; background: rgba(255, 255, 255, .1); }
.pg-pot__bar i { display: block; height: 100%; max-width: 100%; background: linear-gradient(90deg, var(--g3), var(--g1)); }
.pg-pot form, .pg-pot > .pg-go { width: 100%; margin-top: 10px; }
.pg-pot form + form { margin-top: 6px; }

/* ---- buttons: sit on top of .btn so every theme keeps its own gold ---- */
.pg.pg :is(a, button).btn.pg-go.pg-go { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px; font: 800 17px/1 var(--head); letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; border-radius: 0; text-decoration: none; }
.pg.pg :is(a, button).btn.pg-go.pg-go--full { display: flex; width: 100%; }
/* A long label in the gold box wraps instead of pushing the box wider than its frame. */
.pg.pg .pg-pot :is(a, button).btn.pg-go.pg-go { white-space: normal; padding-top: 8px; padding-bottom: 8px; line-height: 1.1; flex-wrap: wrap; }
.pg.pg :is(a, button).btn.pg-go.pg-go--sm { min-height: 34px; padding: 0 12px; font-size: 14.5px; }
.pg .pg-go small { font: 700 12px/1 var(--mono); letter-spacing: 0; opacity: .8; }
.pg .pg-go .ico { width: 16px; height: 16px; }
.pg .pg-go[disabled] { opacity: .4; pointer-events: none; }

/* ---- your move ---- */
.pg-you { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px 18px; align-items: center; padding: 14px 16px; border: 1px solid var(--line); border-left: 3px solid var(--g2); background: var(--panel); }
.pg-you--bad { border-left-color: var(--no); } .pg-you--ok { border-left-color: var(--ok); }
.pg-you__main { display: grid; gap: 4px; min-width: 0; }
.pg-you__main > b { font: 800 22px/1.1 var(--head); letter-spacing: .03em; text-transform: uppercase; color: #f6eedd; }
.pg-you__main > span { font-size: 13.5px; line-height: 1.45; color: var(--muted); }
.pg-you__main > span b { color: var(--text); }
.pg-you__acts { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }

/* ---- section heading ---- */
.pg-sec { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; margin-top: 6px; }
.pg .pg-sec h2 { margin: 0; font: 800 24px/1 var(--head); letter-spacing: .02em; text-transform: uppercase; color: #f6eedd; }
.pg-sec > span { font-size: 12.5px; color: var(--muted); }

/* ---- panels ---- */
.pg-cols { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 16px; align-items: start; }
.pg-cols > * { display: grid; gap: 16px; min-width: 0; }
.pg-box { border: 1px solid var(--line); background: var(--panel); min-width: 0; }
.pg-box__h { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 4px 10px; padding: 11px 16px; border-bottom: 1px solid var(--line); background: rgba(0, 0, 0, .24); }
.pg .pg-box__h h3 { display: flex; align-items: center; gap: 9px; margin: 0; font: 800 18px/1 var(--head); letter-spacing: .04em; text-transform: uppercase; color: #f6eedd; }
.pg-box__h h3 .ico { width: 17px; height: 17px; color: var(--g2); }
.pg-box__h > span { font-size: 12px; color: var(--muted); white-space: nowrap; }
.pg-box__b { padding: 14px 16px; }
.pg-note { margin: 0; font-size: 13px; line-height: 1.5; color: var(--muted); }
.pg-note b { color: var(--text); }
.pg-kv { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 9px 16px; border-top: 1px solid rgba(255, 255, 255, .05); font-size: 13.5px; }
.pg-kv:first-child { border-top: 0; }
.pg-kv > span { color: var(--muted); }
.pg-kv > b { font: 700 13.5px var(--mono); color: var(--text); font-variant-numeric: tabular-nums; text-align: right; }
.pg-kv.is-me { background: var(--accent-soft); box-shadow: inset 3px 0 0 var(--g2); }
.pg-kv.is-me > span { color: var(--text); font-weight: 600; } .pg-kv.is-me > b { color: var(--g1); }

/* ---- rows: who, a middle bit, an action ---- */
.pg-row { position: relative; display: grid; grid-template-columns: 40px minmax(0, 1fr) auto auto; gap: 12px; align-items: center; padding: 9px 16px; border-top: 1px solid rgba(255, 255, 255, .05); transition: background .15s; }
.pg-row:first-child { border-top: 0; }
.pg-row:hover { background: rgba(255, 255, 255, .03); }
.pg-row.is-me { background: var(--accent-soft); box-shadow: inset 3px 0 0 var(--g2); }
.pg-row__av { display: grid; place-items: center; width: 40px; height: 40px; overflow: hidden; border: 1px solid var(--line-2); background: #14120f; font: 800 17px/1 var(--head); color: var(--g2); }
.pg-row__av img { display: block; width: 100%; height: 100%; object-fit: cover; }
.pg-row__who { display: grid; gap: 2px; min-width: 0; }
.pg-row__who > a, .pg-row__who > b { font-size: 14.5px; font-weight: 700; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pg-row__who small { font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pg-row__num { display: grid; gap: 2px; justify-items: end; font: 700 15px/1 var(--mono); font-variant-numeric: tabular-nums; color: var(--text); white-space: nowrap; }
.pg-row__num small { font: 600 9.5px/1 var(--font); letter-spacing: .14em; text-transform: uppercase; color: var(--dim); }
.pg-medal { display: grid; place-items: center; width: 24px; height: 22px; font: normal 800 13px/1 var(--head); color: #15110a; background: var(--m, rgba(255, 255, 255, .1)); }
.pg-medal--1 { --m: var(--g2); } .pg-medal--2 { --m: var(--sv); } .pg-medal--3 { --m: var(--bz); }
.pg-medal--rest { color: var(--muted); }
.pg-none { margin: 0; padding: 26px 16px; text-align: center; font-size: 13.5px; font-style: italic; color: var(--muted); }
.pg-ok { color: var(--ok); } .pg-no { color: var(--no); } .pg-gold { color: var(--g1); }
.pg-tag { display: inline-block; padding: 2px 6px; font: 700 9.5px/1.2 var(--font); letter-spacing: .12em; text-transform: uppercase; color: #15110a; background: var(--g2); vertical-align: 1px; }
.pg-tag--ok { background: var(--ok); }

/* ---- tabs ---- */
.pg-tabs { display: flex; overflow-x: auto; border: 1px solid var(--line); background: var(--panel); scrollbar-width: none; }
.pg-tabs::-webkit-scrollbar { display: none; }
.pg-tabs a { flex: 1 0 auto; display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 13px 16px 11px; font: 800 16px/1 var(--head); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); text-decoration: none; white-space: nowrap; border-right: 1px solid var(--line); border-bottom: 2px solid transparent; }
.pg-tabs a:last-child { border-right: 0; }
.pg-tabs a:hover { color: var(--text); }
.pg-tabs a.is-on { color: var(--g1); border-bottom-color: var(--g2); background: rgba(216, 165, 74, .09); }
.pg-tabs a small { padding: 2px 5px; font: 700 11px/1 var(--mono); letter-spacing: 0; color: #15110a; background: var(--g2); }

/* ---- fields ---- */
.pg-field { display: grid; gap: 6px; min-width: 0; }
.pg-field > span { font: 600 10px/1 var(--font); letter-spacing: .16em; text-transform: uppercase; color: #a8a294; }
.pg.pg .pg-field :is(input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=color]), select, textarea), .pg.pg :is(input, select, textarea).pg-in { width: 100%; max-width: 100%; min-height: 44px; padding: 0 12px; border: 1px solid var(--line-2); border-radius: 0; background: rgba(0, 0, 0, .34); color: var(--text); font: 600 15px/1.3 var(--font); box-shadow: none; }
.pg.pg .pg-field textarea, .pg.pg textarea.pg-in { min-height: 104px; padding: 10px 12px; line-height: 1.5; resize: vertical; }
.pg.pg .pg-field :is(input, select, textarea):focus, .pg.pg :is(input, select, textarea).pg-in:focus { outline: 0; border-color: var(--g2); }
.pg.pg .pg-field :is(input, select, textarea)[disabled], .pg.pg .pg-in[disabled] { opacity: .45; }
.pg-form { display: flex; flex-wrap: wrap; gap: 10px; align-items: end; }
.pg-form > .pg-field, .pg-form > .pg-in { flex: 1 1 180px; }

/* ---- one thumb (8 Oct): a page is one screen, not a scroll. A slim top, the thing itself, and the buttons in a
        dock by your thumb. Anything you don't need every visit folds away. ---- */
.pg-hero--slim { min-height: 0; padding: clamp(14px, 2vw, 22px) clamp(16px, 2.6vw, 28px); gap: 18px; }
.pg .pg-hero--slim h1 { margin: 5px 0 8px; font-size: clamp(34px, 4.6vw, 56px); }
.pg-hero--slim p { margin-bottom: 12px; font-size: 14px; }
.pg-hero--slim .pg-pot { width: 260px; padding: 12px 14px; }
.pg-hero--slim .pg-pot > b { font-size: clamp(30px, 3.4vw, 40px); }
/* the dock: sticks to the bottom of the screen on a computer, sits just above the tab bar on a phone */
.pg-dock { position: sticky; bottom: 12px; z-index: 30; display: flex; gap: 8px; align-items: center; padding: 9px; border: 1px solid color-mix(in oklab, var(--g2) 55%, transparent);
  background: linear-gradient(180deg, rgba(34, 26, 14, .97), rgba(16, 12, 7, .97)); box-shadow: 0 14px 34px -10px #000; }
.pg-dock form { display: contents; }
.pg-dock__info { flex: 1 1 0; display: grid; gap: 2px; min-width: 0; padding: 0 6px; }
.pg-dock__info b { font: 800 17px/1.05 var(--head); letter-spacing: .04em; text-transform: uppercase; color: #f6eedd; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pg-dock__info span { font: 500 12px/1.2 var(--mono); color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pg-dock__info em { font-style: normal; color: var(--g1); }
.pg.pg .pg-dock :is(a, button).btn.pg-go.pg-go { min-height: 48px; flex: 0 0 auto; }
.pg.pg .pg-dock :is(a, button).btn.pg-go.pg-go--main { flex: 1 1 auto; min-width: 150px; font-size: 19px; }
.pg.pg .pg-dock :is(a, button).btn.btn--ghost.pg-go { padding: 0 14px; }
.pg-dock.is-done { border-color: var(--line); }
.ui-dock .pg-dock { bottom: 48px; }   /* clear of the chat strip along the bottom */
/* fold-outs: one line until you want it */
.pg-fold { border: 1px solid var(--line); background: var(--panel); }
.pg-fold > summary { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 11px 14px; cursor: pointer; list-style: none; font: 800 15px/1 var(--head); letter-spacing: .06em; text-transform: uppercase; color: #e9dfc8; }
.pg-fold > summary::-webkit-details-marker { display: none; }
.pg-fold > summary::after { content: "+"; font: 700 18px/1 var(--mono); color: var(--g2); }
.pg-fold[open] > summary::after { content: "\2212"; }
.pg-fold > summary span { margin-left: auto; font: 500 12px/1 var(--font); letter-spacing: 0; text-transform: none; color: var(--muted); }
.pg-fold > summary:hover { color: #fff; }
.pg-fold__b { padding: 0 14px 12px; }
/* views: one page, a few screens. Only the one you picked is on show (assets/js/app.js, [data-views]). */
.pg-seg { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); border: 1px solid var(--line); background: var(--panel); }
.pg-seg button { display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 42px; padding: 0 6px; border: 0; border-right: 1px solid var(--line); border-bottom: 2px solid transparent; background: none; color: var(--muted);
  font: 800 15px/1 var(--head); letter-spacing: .06em; text-transform: uppercase; cursor: pointer; white-space: nowrap; }
.pg-seg button:last-child { border-right: 0; }
.pg-seg button:hover { color: var(--text); }
.pg-seg button.is-on { color: var(--g1); border-bottom-color: var(--g2); background: rgba(216, 165, 74, .09); }
.pg-seg button small { padding: 2px 5px; font: 700 11px/1 var(--mono); letter-spacing: 0; color: #15110a; background: var(--g2); }
.pg-seg button small.is-ok { background: var(--ok); }
[data-view][hidden] { display: none !important; }
.is-busy { opacity: .6; pointer-events: none; transition: opacity .12s; }
.pg-only-m { display: none; }

@media (max-width: 1100px) {
  .pg-cols { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .pg { gap: 12px; }
  .pg-hero { grid-template-columns: 1fr; gap: 16px; min-height: 0;
    background: linear-gradient(180deg, rgba(10, 6, 3, .86) 0%, rgba(10, 6, 3, .95) 70%), var(--page-img, linear-gradient(120deg, #17110a, #0b0a08)) center / cover no-repeat, #0e0b08; }
  .pg-hero p { font-size: 14px; margin-bottom: 14px; }
  .pg-stats { display: flex; width: 100%; }
  .pg-stats > div { flex: 1 1 96px; min-width: 0; padding: 8px 10px; border-bottom: 1px solid rgba(255, 255, 255, .1); margin-bottom: -1px; }
  .pg-stats b { font-size: 19px; }
  .pg-stats span { white-space: normal; line-height: 1.25; }
  .pg-pot { width: 100%; }
  .pg-you { grid-template-columns: 1fr; }
  .pg-you__acts > * { flex: 1 1 auto; }
  .pg-row { padding: 9px 12px; gap: 10px; }
  .pg-box__b { padding: 12px; }
  .pg-kv { padding: 9px 12px; }
  .pg-tabs a { flex: 0 0 auto; padding: 12px 13px 10px; font-size: 15px; }
  .pg-only-d { display: none !important; }
  .pg-only-m { display: revert; }
  .pg-dock.pg-only-m { display: flex; }
  .pg.pg .pg-dock :is(a, button).btn.pg-go.pg-only-m { display: inline-flex; }
  .pg-hero--slim { padding: 12px 14px; gap: 10px; }
  .pg .pg-hero--slim h1 { font-size: 30px; margin: 3px 0 7px; }
  .pg-hero--slim .pg-stats > div { padding: 6px 10px; gap: 4px; }
  .pg-hero--slim .pg-stats b { font-size: 18px; }
  .pg-dock { position: fixed; left: 10px; right: 10px; bottom: calc(84px + env(safe-area-inset-bottom)); margin: 0; }
  .ui-dock .pg-dock { bottom: calc(108px + env(safe-area-inset-bottom)); }
  .ui-dock .pg--docked { padding-bottom: 96px; }
  .pg-dock__info { display: none; }
  .pg.pg .pg-dock :is(a, button).btn.pg-go.pg-go--main { min-width: 0; }
  .pg--docked { padding-bottom: 74px; }
  .pg-seg button { font-size: 14px; min-height: 44px; }
}

/* The 2008 look squeezes the page into a narrow middle window: stack what sits side by side. */
.theme-legacy .pg-cols { grid-template-columns: 1fr; }
.theme-legacy .pg-hero { min-height: 0; }
.theme-legacy .pg-dock { position: static; }

/* ---- job cards: used on the trader pages and on Missions (lib/alley_ui.php) ---- */
.shd-jobs { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 10px; }
.shd-job { display: grid; grid-template-rows: auto 1fr auto; align-content: start; gap: 10px; min-width: 0; padding: 14px; border: 1px solid var(--line); background: var(--panel); scroll-margin-top: 110px; }
.shd-job.is-on { border-color: var(--g3, #8a6220); box-shadow: inset 3px 0 0 var(--g2); }
.shd-job.is-ready { border-color: var(--ok); background: linear-gradient(120deg, rgba(95, 224, 142, .12), transparent 60%), var(--panel); box-shadow: inset 3px 0 0 var(--ok); }
.shd-job.is-paid { opacity: .6; }
.shd-job.is-locked { opacity: .55; }
.shd-job:target { outline: 2px solid var(--g2); outline-offset: -2px; }
.shd-job__top { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.shd-job__top b { font: 800 21px/1.05 var(--head); letter-spacing: .03em; text-transform: uppercase; color: #f6eedd; }
.shd-job__top i { flex: none; font-style: normal; }
.shd-job__lvl { font: 700 10px/1 var(--font); letter-spacing: .12em; text-transform: uppercase; color: var(--no); }
.shd-job > p { margin: 0; font: italic 500 13px/1.45 var(--font); color: #cfc8b8; }
.shd-job__pay { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid rgba(255, 255, 255, .1); background: rgba(0, 0, 0, .3); }
.shd-job__pay span { display: grid; gap: 4px; padding: 8px 10px; font: 600 9.5px/1 var(--font); letter-spacing: .14em; text-transform: uppercase; color: #a8a294; }
.shd-job__pay span + span { border-left: 1px solid rgba(255, 255, 255, .1); }
.shd-job__pay b { font: 800 18px/1 var(--head); letter-spacing: 0; color: var(--g1); font-variant-numeric: tabular-nums; }
.shd-job__bar { height: 6px; background: rgba(255, 255, 255, .08); }
.shd-job__bar i { display: block; height: 100%; max-width: 100%; background: linear-gradient(90deg, var(--g3, #8a6220), var(--g1)); }
.shd-job.is-ready .shd-job__bar i { background: var(--ok); }
.shd-job__n { margin-top: -6px; font: 700 11.5px/1 var(--mono); color: var(--muted); }
.shd-job__acts { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 6px; align-items: center; }
.shd-job__acts form { margin: 0; }
.shd-job__done { font-size: 12px; text-align: center; color: var(--muted); }
@media (max-width: 760px) { .shd-jobs { grid-template-columns: 1fr; gap: 8px; } }

/* ---- medals: the one drawing used in the Trophy Room, on profiles and in the profile editor (ach_medal_html in lib/achievements.php) ---- */
.tr-medal { --m1: #6d6a66; --m2: #3c3a37; --rb: #444; position: relative; display: inline-grid; place-items: center; flex: none; width: 56px; height: 64px; }
.tr-medal__ribbon { position: absolute; top: 0; left: 50%; width: 22px; height: 22px; transform: translateX(-50%); background: linear-gradient(90deg, var(--rb) 0 33%, rgba(255, 255, 255, .25) 33% 66%, var(--rb) 66%); clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 75%, 0 100%); opacity: .55; }
.tr-medal__disc { position: relative; display: grid; place-items: center; width: 48px; height: 48px; margin-top: 12px; border-radius: 50%; color: rgba(255, 255, 255, .5); background: radial-gradient(circle at 35% 30%, var(--m1), var(--m2) 70%); box-shadow: inset 0 0 0 3px rgba(0, 0, 0, .25), inset 0 0 0 5px rgba(255, 255, 255, .08), 0 4px 10px -4px #000; }
.tr-medal__disc .ico { width: 22px; height: 22px; }
.tr-medal.is-on .tr-medal__ribbon { opacity: 1; }
.tr-medal.is-on .tr-medal__disc { color: rgba(30, 18, 6, .85); box-shadow: inset 0 0 0 3px rgba(0, 0, 0, .25), inset 0 0 0 5px rgba(255, 255, 255, .22), 0 4px 14px -4px #000, 0 0 18px -4px var(--m1); }
.tr-medal--bronze.is-on { --m1: #f2b27a; --m2: #9a5523; --rb: #8a3b1c; }
.tr-medal--silver.is-on { --m1: #f4f6f9; --m2: #8e97a3; --rb: #2f4f7f; }
.tr-medal--gold.is-on { --m1: #ffe49a; --m2: #c58f1e; --rb: #7a1f1f; }
.tr-medal--legendary.is-on { --m1: #fff1b8; --m2: #b8860b; --rb: #8a5a0b; }
/* legendary is gold and holo, the same as a legendary card: a turning gold face with holo glints and a sheen across it */
.tr-medal--legendary.is-on .tr-medal__disc { overflow: hidden; background: conic-gradient(from 0deg, #5a3c08, #ffd66b 8%, #fff7d6 12%, #ff9f2e 18%, #7a520c 28%, #ffe9a6 38%, #ff7ad9 43%, #8fe8ff 47%, #fff7d6 51%, #b8860b 60%, #5a3c08 70%, #ffcf5a 80%, #c9a8ff 86%, #ffe08a 91%, #5a3c08); animation: tr-spin 6s linear infinite; box-shadow: inset 0 0 0 3px rgba(0, 0, 0, .25), inset 0 0 0 5px rgba(255, 255, 255, .28), 0 0 0 1px #ffd66b, 0 0 18px -2px rgba(255, 159, 46, .8); }
.tr-medal--legendary.is-on .tr-medal__disc::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, .7) 48%, transparent 62%); background-size: 260% 100%; mix-blend-mode: screen; animation: tr-sheen 2.6s ease-in-out infinite; }
.tr-medal--legendary.is-on .tr-medal__disc .ico { position: relative; z-index: 1; color: #2a1905; filter: drop-shadow(0 1px 0 rgba(255, 255, 255, .5)); animation: tr-spin 6s linear infinite reverse; }
@keyframes tr-sheen { 0%, 20% { background-position: 120% 0; } 80%, 100% { background-position: -60% 0; } }
@keyframes tr-spin { to { transform: rotate(360deg); } }
.tr-medal--xs { width: 30px; height: 34px; }
.tr-medal--xs .tr-medal__ribbon { width: 12px; height: 12px; }
.tr-medal--xs .tr-medal__disc { width: 26px; height: 26px; margin-top: 7px; }
.tr-medal--xs .tr-medal__disc .ico { width: 13px; height: 13px; }
.tr-medal--lg { width: 96px; height: 108px; margin: 6px 0 2px; --m1: #8a8173; --m2: #4a4338; --rb: var(--tc, #444); }
.tr-medal--lg .tr-medal__ribbon { width: 36px; height: 36px; opacity: .9; }
.tr-medal--lg .tr-medal__disc { width: 84px; height: 84px; margin-top: 20px; color: rgba(255, 255, 255, .78); box-shadow: inset 0 0 0 4px rgba(0, 0, 0, .3), inset 0 0 0 7px color-mix(in oklab, var(--tc, #fff) 45%, transparent), 0 6px 18px -6px #000; }
.tr-medal--lg .tr-medal__disc .ico { width: 38px; height: 38px; }
@media (prefers-reduced-motion: reduce) { .tr-medal--legendary.is-on .tr-medal__disc, .tr-medal--legendary.is-on .tr-medal__disc .ico, .tr-medal--legendary.is-on .tr-medal__disc::after { animation: none; } }

/* ---- the station bar: the same strip of rooms across every police page (lib/copdesk.php) ---- */
.copbar { display: flex; overflow-x: auto; border: 1px solid var(--line); background: #0d1218; scrollbar-width: none; }
.copbar::-webkit-scrollbar { display: none; }
.copbar a { position: relative; flex: 1 0 auto; display: grid; grid-template-columns: 18px auto; gap: 1px 9px; align-items: center; padding: 9px 14px 8px; color: var(--muted); text-decoration: none; border-right: 1px solid var(--line); border-bottom: 2px solid transparent; }
.copbar a:last-child { border-right: 0; }
.copbar .ico { grid-row: span 2; width: 18px; height: 18px; color: #7fa6d9; }
.copbar b { font: 800 15px/1 var(--head); letter-spacing: .06em; text-transform: uppercase; color: #dfe6ee; white-space: nowrap; }
.copbar small { font-size: 11px; line-height: 1.1; color: #8793a1; white-space: nowrap; }
.copbar a:hover { background: rgba(127, 166, 217, .08); text-decoration: none; }
.copbar a.is-on { border-bottom-color: #7fa6d9; background: rgba(127, 166, 217, .13); }
.copbar a.is-on b { color: #fff; }
.copbar b { display: flex; align-items: center; gap: 6px; }
.copbar i { min-width: 16px; padding: 2px 4px; font: 700 10.5px/1 var(--mono); font-style: normal; letter-spacing: 0; text-align: center; color: #fff; background: var(--no); }
@media (max-width: 760px) { .copbar a { flex: 0 0 auto; padding: 9px 12px 8px; } .copbar small { display: none; } .copbar a { grid-template-columns: 16px auto; } .copbar .ico { grid-row: auto; width: 16px; height: 16px; } }

/* ---- "how this works": steps across the top of a police room. Open while a cop is in field training, folded after ---- */
.cophow { border: 1px solid var(--line); background: rgba(0, 0, 0, .22); }
.cophow > summary { display: flex; align-items: center; gap: 8px; padding: 9px 14px; font: 800 14px/1 var(--head); letter-spacing: .08em; text-transform: uppercase; color: var(--g2); cursor: pointer; list-style: none; user-select: none; }
.cophow > summary::-webkit-details-marker { display: none; }
.cophow > summary .ico { width: 15px; height: 15px; }
.cophow > summary::after { content: "+"; margin-left: auto; font: 700 16px/1 var(--mono); color: var(--muted); }
.cophow[open] > summary::after { content: "\2212"; }
.cophow[open] > summary { border-bottom: 1px solid var(--line); }
.cophow__g { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cophow__g--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.cophow__g > div { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 3px 10px; align-content: start; padding: 12px 14px; border-left: 1px solid var(--line); }
.cophow__g > div:first-child { border-left: 0; }
.cophow__g i { grid-row: span 2; display: grid; place-items: center; width: 26px; height: 26px; font: 800 15px/1 var(--head); font-style: normal; color: #15110a; background: var(--g2); }
.cophow__g b { font: 800 16px/1.1 var(--head); letter-spacing: .04em; text-transform: uppercase; color: #f6eedd; }
.cophow__g span { font-size: 12.5px; line-height: 1.45; color: var(--muted); }
.cophow__g span b { font: inherit; font-weight: 700; letter-spacing: 0; text-transform: none; color: var(--text); }
.cophow__g span a { color: var(--g1); }
.cophow__g .is-warn i { background: var(--no); color: #fff; }
@media (max-width: 900px) { .cophow__g--4 { grid-template-columns: 1fr 1fr; } .cophow__g--4 > div:nth-child(odd) { border-left: 0; } .cophow__g--4 > div:nth-child(n+3) { border-top: 1px solid var(--line); } }
@media (max-width: 760px) { .cophow__g, .cophow__g--4 { grid-template-columns: 1fr; } .cophow__g > div { border-left: 0; border-top: 1px solid var(--line); } .cophow__g > div:first-child { border-top: 0; } }

/* ---- player names as you type (assets/js/namesuggest.js) ---- */
.ns-wrap { position: relative; display: block; min-width: 0; }
.ns-list { position: absolute; left: 0; right: 0; top: 100%; z-index: 40; display: grid; max-height: 240px; overflow-y: auto; border: 1px solid var(--g2, #d8a54a); border-top: 0; background: #14110c; box-shadow: 0 10px 24px rgba(0, 0, 0, .6); }
.ns-list[hidden] { display: none; }
.pg.pg .ns-list button, .ns-list button { all: unset; box-sizing: border-box; cursor: pointer; text-transform: none; letter-spacing: 0; padding: 9px 12px; font: 600 14px var(--font, sans-serif); color: var(--text, #eee); border-top: 1px solid rgba(255, 255, 255, .06); }
.ns-list button:first-child { border-top: 0; }
.ns-list button:hover, .ns-list button.is-on { color: #15110a; background: var(--g1, #f6dc9a); }

/* ==========================================================================
   Tighter pages (Brad, 6 Oct 2026: "they're all too large and have to scroll too much").
   The newest pages get a shorter banner, less air between sections and smaller panels. Add a page here by its body class.
   ========================================================================== */
body:is(.page-lab, .page-fields, .page-deal, .page-kennel, .page-dogpit, .page-pit) .pg { gap: 12px; }
body:is(.page-lab, .page-fields, .page-deal, .page-kennel, .page-dogpit, .page-pit) .pg-hero { min-height: 0; gap: 18px; padding: 16px 20px; }
body:is(.page-lab, .page-fields, .page-deal, .page-kennel, .page-dogpit, .page-pit) .pg .pg-hero h1 { margin: 4px 0 6px; font-size: clamp(34px, 4.4vw, 52px); }
body:is(.page-lab, .page-fields, .page-deal, .page-kennel, .page-dogpit, .page-pit) .pg-hero p { margin-bottom: 10px; font-size: 13.5px; line-height: 1.45; }
body:is(.page-lab, .page-fields, .page-deal, .page-kennel, .page-dogpit, .page-pit) .pg-stats > div { min-width: 86px; padding: 6px 12px; gap: 3px; }
body:is(.page-lab, .page-fields, .page-deal, .page-kennel, .page-dogpit, .page-pit) .pg-stats b { font-size: 18px; }
body:is(.page-lab, .page-fields, .page-deal, .page-kennel, .page-dogpit, .page-pit) .pg-pot { width: 250px; padding: 12px 14px; }
body:is(.page-lab, .page-fields, .page-deal, .page-kennel, .page-dogpit, .page-pit) .pg-pot > b { font-size: clamp(26px, 3.2vw, 36px); }
body:is(.page-lab, .page-fields, .page-deal, .page-kennel, .page-dogpit, .page-pit) .pg-pot > b.is-word { font-size: clamp(22px, 2.6vw, 30px); }
body:is(.page-lab, .page-fields, .page-deal, .page-kennel, .page-dogpit, .page-pit) .pg-pot > em { font-size: 12px; }
body:is(.page-lab, .page-fields, .page-deal, .page-kennel, .page-dogpit, .page-pit) .pg-sec { margin-top: 0; }
@media (max-width: 760px) {
  body:is(.page-lab, .page-fields, .page-deal, .page-kennel, .page-dogpit, .page-pit) .pg-hero { padding: 12px; gap: 10px; }
  body:is(.page-lab, .page-fields, .page-deal, .page-kennel, .page-dogpit, .page-pit) .pg-hero p { display: none; }
}

/* Havana (lib/havana.php): the warning on every page while you're there, and on its card on the travel page */
.hv-bar { position: sticky; top: var(--tb-h, 0px); z-index: 39; display: flex; align-items: center; gap: 6px 14px; flex-wrap: wrap; padding: 8px 14px; background: linear-gradient(90deg, #5b0f12, #3a0a0c); border-bottom: 1px solid #a3242a; color: #ffe1e1; font-size: 13px; }
.hv-bar > b { display: inline-flex; align-items: center; gap: 6px; font-family: var(--head); font-size: 15px; letter-spacing: .08em; text-transform: uppercase; color: #fff; }
.hv-bar__walk { white-space: nowrap; }
.hv-bar > b svg { width: 16px; height: 16px; }
.hv-bar span { flex: 1 1 auto; min-width: 0; }
.hv-bar span b { color: #fff; text-transform: uppercase; letter-spacing: .04em; }
.hv-bar a { color: #ffd0d0; text-decoration: underline; text-underline-offset: 2px; font-weight: 600; }
.hv-risk { display: flex; align-items: center; gap: 6px; margin: 8px 0 0; padding: 6px 10px; border: 1px solid #a3242a; background: rgba(163, 36, 42, .16); color: #ffd0d0; font-size: 13px; }
.hv-risk svg { width: 14px; height: 14px; flex: none; }
.hv-risk b { text-transform: uppercase; letter-spacing: .04em; color: #fff; }
.hv-bar__s { display: none; }
/* the middle line scrolls when it doesn't fit (assets/js/app.js), like the news ticker (Brad, 13 Oct: "cant read the information on that bar, make it scroll") */
.hv-bar .hv-tick { flex: 1 1 0; min-width: 0; overflow: hidden; white-space: nowrap; }
.hv-bar .hv-tick__t { display: inline-flex; flex: none; width: max-content; will-change: transform; }
.hv-bar .hv-tick__t > span { flex: none; }
.hv-tick.is-moving .hv-tick__t > span { padding-right: 48px; }
@media (max-width: 760px) {
  .hv-bar { flex-wrap: nowrap; gap: 8px; padding: 6px 12px; font-size: 12px; }
  .hv-bar > b { font-size: 13px; gap: 4px; }
  .hv-bar__sq { display: none; }
  .hv-bar__s { display: block; flex: 1 1 auto; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
}
.hv-bar__gate { white-space: nowrap; }
.hv-bar__gate b { font-family: var(--mono); color: #fff; }
.hv-note { margin: 0 0 12px; border-left-color: var(--no); }
.hv-note.is-on { border-left-color: var(--ok); }

/* Gear sets (lib/gearsets.php): inventory.php and havana.php */
.gs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.gs-set { display: grid; gap: 8px; align-content: start; padding: 10px; border: 1px solid var(--line); background: var(--panel); min-width: 0; }
.gs-set.is-empty { border-style: dashed; }
.gs-set.is-carry { border-color: #a3242a; box-shadow: inset 3px 0 0 #a3242a; }
.gs-set__h { display: grid; }
.gs-set__h small { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; }
.gs-set__h b { font-family: var(--head); font-size: 18px; letter-spacing: .03em; }
.gs-set__pics { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 3px; }
.gs-set__pics i { display: grid; place-items: center; aspect-ratio: 1; overflow: hidden; background: #0b0a09; border: 1px solid rgba(255, 255, 255, .06); color: rgba(255, 255, 255, .18); }
.gs-set__pics i.is-on { color: var(--g1); border-color: rgba(212, 175, 55, .35); }
.gs-set__pics img { display: block; width: 100%; height: 100%; object-fit: cover; }
.gs-set__pics svg { width: 14px; height: 14px; }
.gs-set__line { margin: 0; font-size: 12px; color: var(--muted); line-height: 1.35; }
.gs-set__f { display: grid; gap: 6px; }
.gs-set__f input[type=text] { width: 100%; min-width: 0; }
.gs-set__btns { display: flex; gap: 6px; flex-wrap: wrap; }
.gs-set__btns .btn { flex: 1 1 auto; }
.pg.pg .gs :is(a, button).btn.pg-go.pg-go { min-width: 0; max-width: 100%; white-space: normal; line-height: 1.1; padding: 8px 12px; font-size: 15px; flex-wrap: wrap; }
.pg.pg .gs .gs-carry button.btn.pg-go.pg-go { display: flex; width: 100%; gap: 4px 8px; }
.pg.pg .gs .gs-carry button.btn.pg-go.pg-go.is-on { background: rgba(163, 36, 42, .22); color: #ffb3ad; border: 1px solid #a3242a; box-shadow: none; }
.gs-carry .btn svg { width: 14px; height: 14px; }
@media (max-width: 760px) { .gs { grid-template-columns: 1fr; } }
/* the builder (Inventory > Gear sets, 13 Oct): a picker per slot, and a tick to bring it to Havana */
.gs-pick { display: grid; gap: 5px; }
.gs-pick label { display: grid; grid-template-columns: 74px minmax(0, 1fr); align-items: center; gap: 6px; margin: 0; }
.gs-pick label > span { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.gs-pick label > span svg { width: 13px; height: 13px; flex: none; }
.gs-pick select { width: 100%; min-width: 0; padding: 7px 8px; font-size: 13px; }
.gs-pick select:disabled { opacity: .5; }
.gs-tick { display: inline-grid; place-items: center; width: 18px; height: 18px; flex: none; border: 1.5px solid currentColor; border-radius: 4px; }
.pg.pg .gs .gs-tick svg { display: block; width: 13px; height: 13px; stroke-width: 3; }
.gs-set__hv { display: inline-flex; align-items: center; gap: 3px; color: #ff8a8a; font-weight: 700; }
.gs-set__hv svg { width: 11px; height: 11px; }
.gs-set__packed { display: flex; align-items: center; gap: 6px; margin: 0; font-size: 12px; color: #ffb3ad; }
.gs-set__packed svg { width: 13px; height: 13px; }
.hv-sets { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; margin: 0 0 10px; }
.hv-sets__s { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 2px 8px; align-items: center; padding: 10px 12px; border: 1px solid var(--line); background: var(--panel); color: inherit; text-decoration: none; }
.hv-sets__s svg { grid-row: span 2; width: 18px; height: 18px; color: var(--muted); }
.hv-sets__s b { font-family: var(--head); font-size: 16px; letter-spacing: .03em; }
.hv-sets__s small { color: var(--muted); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hv-sets__s.is-carry { border-color: #a3242a; box-shadow: inset 3px 0 0 #a3242a; }
.hv-sets__s.is-carry svg { color: #ff8a8a; }
.kit-tabs { margin: 12px 0; }
/* Havana skulls (lib/havana.php): a red line when you're skulled or about to be, a calm one when you keep your best three */
.hv-skull-line { position: relative; margin: 10px 0 0; padding: 8px 10px 8px 34px; border: 1px solid rgba(255, 255, 255, .1); background: rgba(255, 255, 255, .03); font-size: 13px; line-height: 1.45; }
.hv-skull-line svg { position: absolute; left: 10px; top: 10px; width: 16px; height: 16px; color: var(--g1); }
.hv-skull-line.is-skull { border-color: #a3242a; background: rgba(163, 36, 42, .16); }
.hv-skull-line.is-skull svg { color: #ff8a8a; }
.hv-bar__skull { white-space: nowrap; color: #fff; font-weight: 700; }
.hv-bar__skull svg { width: 13px; height: 13px; vertical-align: -2px; margin-right: 3px; }
@media (max-width: 760px) { .hv-bar__skull .hv-bar__w { display: none; } .hv-bar__skull { flex: none; } }

/* Before you go to Havana (havana_before_html): the travel page and the Havana page */
.hv-before { margin: 10px 0 0; border: 1px solid #a3242a; background: linear-gradient(180deg, rgba(163, 36, 42, .14), rgba(14, 12, 10, .5)); }
.hv-before__h { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-bottom: 1px solid rgba(163, 36, 42, .5); }
.hv-before__h svg { width: 16px; height: 16px; color: #ff8a8a; }
.hv-before__h b { font: 800 15px/1 var(--head, inherit); letter-spacing: .08em; text-transform: uppercase; color: #fff; }
.hv-before ul { list-style: none; margin: 0; padding: 6px 12px 10px; display: grid; gap: 7px; }
.hv-before li { position: relative; padding-left: 24px; font-size: 13px; line-height: 1.45; color: #e2d8c4; }
.hv-before li svg { position: absolute; left: 0; top: 2px; width: 15px; height: 15px; }
.hv-before li.is-bad svg { color: #ff6b6b; } .hv-before li.is-warn svg { color: var(--g1, #f6dc9a); } .hv-before li.is-ok svg { color: var(--ok, #5fe08e); }
.hv-before li b { color: #fff; }
.hv-before li a { color: var(--g1, #f6dc9a); font-weight: 700; white-space: nowrap; }
/* Havana: a page that's shut while you're there (header.php, lib/havana.php havana_shut_pages) */
.hv-shut { padding: 22px 20px; border: 1px solid #5a1d22; border-left: 4px solid #c8283a; border-radius: 10px; background: radial-gradient(ellipse at 0 0, rgba(200, 40, 58, .18), transparent 60%), #140c0d; }
.hv-shut__eye { display: flex; align-items: center; gap: 6px; font: 700 11px/1 var(--head, inherit); letter-spacing: .16em; text-transform: uppercase; color: #ff6b78; }
.hv-shut__eye svg { width: 14px; height: 14px; }
.hv-shut h1 { margin: 8px 0 6px; font-family: var(--head, inherit); font-size: clamp(26px, 6vw, 40px); line-height: 1; text-transform: uppercase; color: #fff4e6; }
.hv-shut p { margin: 0 0 16px; max-width: 54ch; font-size: 15px; line-height: 1.5; color: #e6dcc6; }
.hv-shut__go { display: flex; flex-wrap: wrap; gap: 8px; }
/* Build best on a gear set (assets/js/gearsets.js) */
.gs-best { display: grid; gap: 5px; padding: 8px; border: 1px dashed var(--line); background: rgba(255, 255, 255, .02); }
.gs-best > span { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.gs-best > div { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 5px; }
.pg.pg .gs .gs-best button.btn { min-height: 0; padding: 7px 6px; font-size: 13px; white-space: nowrap; }
.pg.pg .gs .gs-best button.btn.is-on { border-color: var(--g2); color: var(--g1); }
.gs-best__say { margin: 0; font-size: 12px; color: var(--g1); line-height: 1.35; }
.gs-pick select.is-new { border-color: var(--g2); box-shadow: 0 0 0 2px rgba(216, 165, 74, .25); }
/* Havana is a work in progress (Brad, 13 Oct): a WIP chip on the menu, the bar, the travel card and the page */
.badge--wip { background: transparent; color: #ffb547; border: 1px solid rgba(255, 181, 71, .55); font-family: var(--font); text-transform: uppercase; letter-spacing: .06em; font-size: 9.5px; line-height: 18px; padding: 0 5px; border-radius: 3px; }
.hv-wip { display: inline-block; margin-left: 6px; padding: 1px 5px; border: 1px solid rgba(255, 181, 71, .7); border-radius: 3px; font: 700 9.5px/1.4 var(--font); font-style: normal; letter-spacing: .08em; color: #ffcf85; vertical-align: 2px; }
.hv-wipnote { display: flex; align-items: flex-start; gap: 10px; margin: 10px 0; padding: 10px 12px; border: 1px solid rgba(255, 181, 71, .45); background: rgba(255, 181, 71, .08); font-size: 13.5px; line-height: 1.45; }
.hv-wipnote > b { flex: none; padding: 2px 6px; border-radius: 3px; background: #ffb547; color: #1a1206; font: 800 11px/1.4 var(--font); letter-spacing: .08em; }
.hv-wipnote a { color: #ffcf85; }
.hv-risk--ban { border-color: #a3242a; color: #ffb3ad; }
/* the world boss bar (header.php, lib/worldboss.php): on every page while he's on his way or here */
.wb-bar-top { position: sticky; top: var(--tb-h, 0px); z-index: 38; display: flex; align-items: center; gap: 8px 12px; padding: 8px 14px; background: linear-gradient(90deg, #2a0a0d, #4a1016 60%, #2a0a0d); border-bottom: 1px solid #a3242a; color: #ffe1e1; font-size: 13px; text-decoration: none; }
.wb-bar-top > svg { width: 16px; height: 16px; color: #ff6b6b; flex: none; }
.wb-bar-top > b { font-family: var(--head); font-size: 15px; letter-spacing: .08em; text-transform: uppercase; color: #fff; white-space: nowrap; }
.wb-bar-top span { flex: 1 1 auto; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wb-bar-top span b { color: #ffcf85; font-family: var(--mono, monospace); }
.wb-bar-top em { flex: none; padding: 4px 10px; border: 1px solid #ff6b6b; font-style: normal; font-weight: 700; color: #fff; text-transform: uppercase; letter-spacing: .06em; font-size: 12px; }
.wb-bar-top.is-live em { background: #c8283a; }

/* ---------- Doing time, in the hospital, on the road (lib/lockscreen.php), 14 Oct 2026 ----------
   A live scene fills the box (assets/js/lockscene.js), the name and the clock sit on it, travel adds the route along
   its foot, and one dock under it holds the way out and small links to what still works. */
.lk { gap: 8px; }
.lk-stage { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: 1fr auto; align-items: end; gap: 12px 24px; min-height: 340px; padding: 22px 24px 18px;
  overflow: hidden; border: 1px solid color-mix(in oklab, var(--g2) 40%, transparent); background: #0c0906; }
.lk-scene[data-scene] { position: absolute; inset: 0; height: auto; z-index: 0; background: #0c0906; }
.lk-scene[data-scene]::after { display: none; }
.lk-scene__cv { position: absolute; inset: 0; display: block; width: 100%; height: 100%; }
.lk-stage::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(90deg, rgba(8, 5, 3, .8) 0%, rgba(8, 5, 3, .35) 34%, rgba(8, 5, 3, 0) 55%); }
.lk-stage > :not(.lk-scene) { position: relative; z-index: 2; }
.lk-words { align-self: start; max-width: 420px; }
.pg .lk-stage h1 { margin: 6px 0 6px; font: 800 clamp(38px, 5vw, 60px)/.88 var(--head); text-transform: uppercase; color: #fbf3e0; text-shadow: 0 4px 26px rgba(0, 0, 0, .8); }
.lk-words p { margin: 0; font-size: 14px; line-height: 1.45; color: #e6dcc6; text-shadow: 0 1px 8px rgba(0, 0, 0, .9); }
.lk-words p b { color: #fff; }
.lk-clock { grid-column: 1; grid-row: 2; display: grid; justify-items: start; gap: 4px; }
.lk-clock b { font: 800 clamp(52px, 7vw, 84px)/.88 var(--head); letter-spacing: .02em; color: var(--g1); font-variant-numeric: tabular-nums; text-shadow: 0 0 30px rgba(255, 180, 60, .25), 0 4px 18px rgba(0, 0, 0, .9); }
.lk--jail .lk-clock b { color: #f4ecd8; }
.lk--hosp .lk-clock b { color: #ff8a80; text-shadow: 0 0 30px rgba(255, 90, 80, .3), 0 4px 18px rgba(0, 0, 0, .9); }
.lk-clock span { font: 700 10.5px/1 var(--font); letter-spacing: .2em; text-transform: uppercase; color: #c9bfa8; text-shadow: 0 1px 6px #000; }
/* the route along the foot of the scene; --p is how far along you are */
.lk-route { grid-column: 1 / -1; grid-row: 3; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 10px 14px; border: 1px solid rgba(255, 255, 255, .12); background: rgba(0, 0, 0, .62); }
.lk-route__end { font: 800 17px/1 var(--head); letter-spacing: .06em; text-transform: uppercase; color: #a3987f; white-space: nowrap; }
.lk-route__end--to { color: var(--g1); }
.lk-route__line { position: relative; height: 2px; background: repeating-linear-gradient(90deg, rgba(255, 255, 255, .25) 0 8px, transparent 8px 14px); }
.lk-route__done { position: absolute; left: 0; top: 0; bottom: 0; width: calc(var(--p, 0) * 100%); background: var(--g2); box-shadow: 0 0 10px rgba(255, 180, 60, .5); }
.lk-route__me { position: absolute; top: 50%; left: calc(var(--p, 0) * 100%); display: grid; place-items: center; width: 32px; height: 32px; margin: -16px 0 0 -16px; border-radius: 50%;
  color: #1a1206; background: var(--g2); box-shadow: 0 0 0 4px rgba(0, 0, 0, .55), 0 0 18px rgba(255, 180, 60, .45); }
.lk-route__me svg, .lk-route__me .ico { width: 18px; height: 18px; }
/* one dock: the way out, then small links */
.lk-dock { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 8px; border: 1px solid var(--line); background: var(--panel-solid, #16120e); }
.lk-acts { display: flex; flex: 1 1 340px; gap: 8px; }
.lk-acts form { display: contents; }
.lk-acts .btn { flex: 1 1 0; min-height: 48px; }
.lk-open { display: flex; flex: 1 1 auto; justify-content: space-around; gap: 4px; }
.lk-acts + .lk-open { flex: 0 1 auto; margin-left: auto; }
.lk-open a { display: grid; place-items: center; gap: 3px; min-width: 56px; padding: 6px 6px 5px; color: var(--muted); text-decoration: none; border: 1px solid transparent; }
.lk-open a .ico { width: 18px; height: 18px; color: var(--g2); }
.lk-open a span { font: 700 9.5px/1 var(--font); letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; }
.lk-open a:hover { color: var(--text); border-color: var(--line-2); }
.lk-note { margin: 0; padding: 0 4px; font-size: 13px; color: var(--muted); }
@media (max-width: 720px) {
  .lk-stage { min-height: 300px; padding: 14px 14px 12px; }
  .lk-stage::before { background: linear-gradient(180deg, rgba(8, 5, 3, .75) 0%, rgba(8, 5, 3, 0) 45%, rgba(8, 5, 3, .55) 100%); }
  .pg .lk-stage h1 { font-size: 34px; }
  .lk-words p { font-size: 12.5px; max-width: 26ch; }
  .lk-clock b { font-size: 54px; }
  .lk-route { gap: 10px; padding: 8px 10px; }
  .lk-route__end { font-size: 13px; }
  .lk-acts { flex-basis: 100%; flex-wrap: wrap; }
  .lk-acts .btn { flex-basis: 100%; }
  .lk-open { width: 100%; justify-content: space-between; margin: 0; }
  .lk-open a { flex: 1; min-width: 0; }
}
.theme-legacy .lk-stage { min-height: 260px; }
