/* Beefmaster. Layout: a burner-phone-meets-road-sign HUD. Status strip on top,
   market + services on the left, travel + texts on the right; stacks to one column on phones.
   Single committed look: wet Dublin night under sodium streetlights. */
:root {
  color-scheme: dark;
  --tarmac: #101518;      /* page */
  --slab: #182025;        /* cards */
  --slab-2: #1f2a30;      /* raised */
  --rule: #2c3a41;
  --fg: #e8e3d8;
  --muted: #8c9a9f;
  --sodium: #f2a33a;      /* accent: streetlight orange */
  --sodium-ink: #1b1206;
  --sign: #0d6b4c;        /* Irish road-sign green */
  --sign-ink: #ffffff;
  --sign-ga: #f6d34a;     /* Irish-language line */
  --good: #6cc28a;
  --bad: #e5604a;
  --cred: #8fb3ff;

  --f-display: 'Big Shoulders Display', 'Arial Narrow', Impact, sans-serif;
  --f-body: 'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --f-mono: 'IBM Plex Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;

  --r: 6px;
}

* { box-sizing: border-box; }
html, body { min-height: 100%; }
body {
  margin: 0;
  background:
    radial-gradient(1200px 500px at 85% -10%, rgba(242, 163, 58, 0.09), transparent 60%),
    var(--tarmac);
  color: var(--fg);
  font: 15px/1.5 var(--f-body);
}
#app {
  max-width: 1180px;
  margin: 0 auto;
  padding-block: 16px max(96px, calc(var(--abh, 80px) + 16px));   /* room under the action bar, however tall it wraps (js sets --abh) */
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
h1, h2, h3 { font-family: var(--f-display); font-weight: 800; letter-spacing: 0.01em; text-wrap: balance; margin: 0; }
p { margin: 0; }
.num { font-family: var(--f-mono); font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.warn { color: var(--sodium); font-weight: 600; }
.eyebrow { font: 600 12px/1 var(--f-mono); letter-spacing: 0.16em; text-transform: uppercase; color: var(--sodium); }

/* ---------- buttons ---------- */
.btn {
  appearance: none; border: 1px solid var(--rule); background: var(--slab-2); color: var(--fg);
  font: 600 14px/1.2 var(--f-body); padding: 10px 14px; border-radius: var(--r); cursor: pointer;
  display: inline-flex; flex-direction: column; align-items: flex-start; gap: 2px; text-align: left;
  transition: border-color 0.12s, background 0.12s, transform 0.06s;
}
.btn small { font: 500 11px/1.2 var(--f-mono); color: var(--muted); }
.btn:hover:not(:disabled) { border-color: var(--sodium); }
.btn:active:not(:disabled) { transform: translateY(1px); }
.btn:focus-visible, .build:focus-visible, input:focus-visible, .link:focus-visible { outline: 2px solid var(--sodium); outline-offset: 2px; }
.btn:disabled { opacity: 0.4; cursor: not-allowed; }
.btn.primary { background: var(--sodium); color: var(--sodium-ink); border-color: var(--sodium); }
.btn.primary small { color: rgba(27, 18, 6, 0.7); }
.btn.ghost { background: transparent; }
.btn.sm { padding: 7px 10px; font-size: 13px; }
.link { background: none; border: 0; color: var(--muted); font: 500 12px var(--f-body); text-decoration: underline; cursor: pointer; padding: 0; }
.link:hover { color: var(--fg); }

input.qty, .field input {
  background: var(--tarmac); color: var(--fg); border: 1px solid var(--rule); border-radius: var(--r);
  font: 500 14px var(--f-mono); padding: 7px 9px; width: 76px; min-width: 0;
}
.field { display: flex; flex-direction: column; gap: 6px; }
.field span { font: 600 11px var(--f-mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.field input { width: 100%; }
.field.big input { font: 600 20px var(--f-body); padding: 12px 14px; }

/* ---------- title ---------- */
.title-screen { min-height: 80vh; display: grid; place-items: center; text-align: center; }
.title-inner { display: grid; gap: 22px; justify-items: center; width: 100%; max-width: 640px; }
.title-inner .lede { margin: 0 auto; }
.logo { font-size: clamp(64px, 14vw, 148px); line-height: 0.86; text-transform: uppercase; color: var(--fg); }
.logo span, .brand span { color: var(--sodium); }
.lede { font-size: 19px; max-width: 46ch; color: var(--fg); }
.title-actions { display: grid; gap: 14px; justify-items: center; width: 100%; margin-top: 6px; }
.title-actions .title-main { width: min(100%, 300px); padding: 15px 20px; font-size: 17px; flex-direction: column; align-items: center; gap: 2px; }
.title-main small { font-weight: 500; opacity: 0.75; font-size: 13px; }
.title-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 0; }
.title-link { background: none; border: 0; color: var(--muted); font: 500 15px var(--f-body); padding: 8px 14px; cursor: pointer; }
.title-link + .title-link { border-left: 1px solid var(--rule); }
.title-link:hover, .title-link:focus-visible { color: var(--fg); }
.title-link:focus-visible { outline: 2px solid var(--sodium); outline-offset: 2px; border-radius: 4px; }
.scores { border-top: 1px solid var(--rule); padding-top: 14px; width: 100%; max-width: 480px; }
.title-inner .clips li { justify-content: center; text-align: center; }
.scores h3 { font-size: 18px; text-transform: uppercase; margin-bottom: 8px; color: var(--muted); }
.scores ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.scores li { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; }
.scores li em { color: var(--muted); font-style: normal; font-size: 12px; }
.scores li b { font-family: var(--f-mono); font-variant-numeric: tabular-nums; }

/* ---------- create ---------- */
.create { display: grid; gap: 22px; }
.create-head h1 { font-size: clamp(40px, 7vw, 64px); text-transform: uppercase; margin-top: 8px; }
.create .field.big { max-width: 420px; }
.builds { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.build {
  appearance: none; text-align: left; color: var(--fg); cursor: pointer;
  background: var(--slab); border: 1px solid var(--rule); border-radius: var(--r);
  padding: 18px; display: grid; gap: 10px; align-content: start; font: inherit;
}
.build:hover { border-color: var(--muted); }
.build.on { border-color: var(--sodium); box-shadow: inset 0 0 0 1px var(--sodium); background: linear-gradient(180deg, rgba(242, 163, 58, 0.08), transparent 40%), var(--slab); }
.build-top { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.build h2 { font-size: 34px; text-transform: uppercase; line-height: 1; }
.build .from { font: 500 12px var(--f-mono); color: var(--muted); }
.build .tagline { color: var(--sodium); font-weight: 600; }
.build .blurb { font-size: 14px; color: var(--fg); opacity: 0.88; }
.build ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 4px; font-size: 13px; }
.build li { padding-left: 18px; position: relative; }
.perks li::before { content: '+'; position: absolute; left: 2px; color: var(--good); font-weight: 700; }
.flaws li::before { content: '−'; position: absolute; left: 2px; color: var(--bad); font-weight: 700; }
.create-actions { display: flex; gap: 10px; justify-content: flex-end; }
.create-actions .btn { padding: 14px 22px; font-size: 16px; }

/* ---------- game HUD ---------- */
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 12px 20px; flex-wrap: wrap; padding-bottom: 14px; border-bottom: 1px solid var(--rule); }
.brand { font: 800 26px/1 var(--f-display); text-transform: uppercase; }
.clock { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.day { font-family: var(--f-display); font-size: 30px; line-height: 1; text-transform: uppercase; }
.day span { color: var(--muted); font-size: 20px; margin-left: 4px; }
.day em { font: 600 12px var(--f-mono); font-style: normal; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-left: 10px; vertical-align: 5px; }
.blocks { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.blocks li { font: 600 11px var(--f-mono); letter-spacing: 0.08em; text-transform: uppercase; padding: 5px 8px; border-radius: 3px; border: 1px solid var(--rule); color: var(--muted); }
.blocks li.past { opacity: 0.4; text-decoration: line-through; }
.blocks li.now { background: var(--sodium); color: var(--sodium-ink); border-color: var(--sodium); }
.who { font-size: 14px; display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.who em { font-style: normal; color: var(--sodium); font-weight: 600; }

.place { display: flex; gap: 18px; align-items: center; padding: 18px 0; flex-wrap: wrap; }
.sign {
  background: var(--sign); color: var(--sign-ink); border: 3px solid var(--sign-ink); outline: 3px solid var(--sign);
  border-radius: 8px; padding: 8px 18px 10px; display: grid; gap: 0; min-width: 220px; flex: 0 0 auto;
}
.sign .ga { font: italic 500 17px/1.2 var(--f-body); color: var(--sign-ga); }
.sign .en { font: 800 30px/1 var(--f-display); letter-spacing: 0.04em; }
.place-desc { flex: 1 1 320px; min-width: 0; color: var(--fg); opacity: 0.9; max-width: 70ch; }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(118px, 1fr)); gap: 1px; background: var(--rule); border: 1px solid var(--rule); border-radius: var(--r); overflow: hidden; }
.stat { background: var(--slab); padding: 10px 12px; display: grid; gap: 3px; align-content: start; min-width: 0; }
.stat .lbl { font: 600 10.5px var(--f-mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stat b { font-size: 19px; font-weight: 600; }
.stat .of { color: var(--muted); font-size: 13px; }
.stat small { font-size: 11px; color: var(--muted); line-height: 1.3; }
.stat.debt b { color: var(--sodium); }
.meter { height: 4px; background: var(--tarmac); border-radius: 2px; overflow: hidden; margin-top: 3px; }
.meter i { display: block; height: 100%; background: var(--good); transition: width 0.3s; }
.meter.bad i, .meter.heat i { background: var(--bad); }
.meter.cred i { background: var(--cred); }
.meter.bag i { background: var(--sodium); }

.grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 16px; margin-top: 16px; align-items: start; }
.col { display: grid; gap: 16px; min-width: 0; }
.card { background: var(--slab); border: 1px solid var(--rule); border-radius: var(--r); padding: 14px 16px 16px; min-width: 0; }
.card > header { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.card h3 { font-size: 22px; text-transform: uppercase; }
.card .sub { font: 500 11.5px var(--f-mono); color: var(--muted); }

/* ticker tape */
.tape { margin-top: 12px; overflow: hidden; border: 1px solid var(--rule); border-radius: var(--r); background: var(--slab); mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); }
.tape-track { display: flex; width: max-content; animation-name: tape; animation-timing-function: linear; animation-iteration-count: infinite; }
.tape:hover .tape-track { animation-play-state: paused; }
.tape-row { display: flex; flex: 0 0 auto; }
.tk { display: inline-flex; align-items: baseline; gap: 7px; padding: 8px 16px; white-space: nowrap; font-size: 13px; border-right: 1px solid var(--rule); }
.tk b { font: 600 11px var(--f-mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.tk.here b { color: var(--sodium); }
.tk.news b { color: var(--bad); }
.tk.news { color: var(--fg); }
@keyframes tape { from { transform: translateX(0); } to { transform: translateX(-50%); } }
i.up, i.down, i.flat { font: 600 11.5px var(--f-mono); font-style: normal; white-space: nowrap; }
i.up { color: var(--good); }
i.down { color: var(--bad); }
i.flat { color: var(--muted); }
.spark { display: block; overflow: visible; }
.spark.up { color: var(--good); }
.spark.down { color: var(--bad); }

/* widget tabs */
.tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; padding-bottom: 2px; }
.tabs::-webkit-scrollbar { display: none; }
.tab {
  appearance: none; flex: 0 0 auto; display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
  background: var(--slab); color: var(--muted); border: 1px solid var(--rule); border-radius: var(--r);
  font: 800 17px/1 var(--f-display); letter-spacing: 0.04em; text-transform: uppercase; padding: 10px 14px;
}
.tab:hover { color: var(--fg); border-color: var(--muted); }
.tab.on { background: var(--sodium); color: var(--sodium-ink); border-color: var(--sodium); }
.tab:focus-visible { outline: 2px solid var(--sodium); outline-offset: 2px; }
.tab .key { font: 600 10px var(--f-mono); border: 1px solid currentColor; border-radius: 3px; padding: 1px 4px; opacity: 0.6; }
.tab .badge { font: 700 11px var(--f-mono); background: var(--bad); color: #fff; border-radius: 10px; padding: 2px 7px; }
.tab .shut { font: 600 10px var(--f-mono); text-transform: uppercase; opacity: 0.7; }
.panel { margin-top: 10px; }
.panel .card { min-height: 240px; }
.panel .msgs { max-height: 62vh; }

/* prices widget */
.bests { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 10px; }
.best { background: var(--slab-2); border-radius: var(--r); padding: 10px 12px; display: grid; gap: 3px; font-size: 15px; }
.best b { font: 600 10.5px var(--f-mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.best em { font-style: normal; color: var(--sodium); font-weight: 600; }
.prices > p { margin-bottom: 10px; }
.tablewrap { overflow-x: auto; }
.ptable { border-collapse: collapse; width: 100%; min-width: 640px; font-size: 13.5px; }
.ptable th, .ptable td { padding: 7px 10px; text-align: left; border-top: 1px solid var(--rule); vertical-align: middle; white-space: nowrap; }
.ptable thead th { font: 600 10.5px var(--f-mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); border-top: 0; }
.ptable tbody th { font-weight: 600; }
.ptable tr.here th, .ptable tr.here td { background: rgba(242, 163, 58, 0.07); }
.ptable tr.here th { color: var(--sodium); }
.ptable .notes { white-space: normal; color: var(--muted); font-size: 12.5px; min-width: 140px; }

/* market rows */
.rows { display: grid; }
.row { display: grid; grid-template-columns: minmax(110px, 1.2fr) 96px 80px 80px minmax(0, 2fr); gap: 10px; align-items: center; padding: 10px 0; border-top: 1px solid var(--rule); }
.row:first-child { border-top: 0; }
.dname { display: grid; gap: 2px; min-width: 0; }
.dname b { font-size: 16px; }
.dname small { color: var(--muted); font-size: 12px; }
.price { display: grid; gap: 1px; }
.trend { display: grid; gap: 2px; justify-items: start; }
.price .lbl { font: 600 10px var(--f-mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.price .num { font-size: 15px; }
.na { color: var(--muted); font-size: 12px; }
.trade { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; min-width: 0; }
.tbtns { display: flex; gap: 4px; flex-wrap: wrap; }
.preview { flex-basis: 100%; font: 500 11.5px var(--f-mono); color: var(--sodium); min-height: 0; }
.preview:empty { display: none; }
.row.locked { grid-template-columns: minmax(0, 1fr) auto; opacity: 0.55; }
.lockpill, .pill { font: 600 10px var(--f-mono); letter-spacing: 0.1em; text-transform: uppercase; padding: 3px 7px; border-radius: 3px; border: 1px solid var(--rule); color: var(--muted); }
.pill { margin-left: 4px; vertical-align: 2px; }
.dname .pill { justify-self: start; margin-left: 0; }
.pill.glut { color: var(--good); border-color: var(--good); }
.pill.drought { color: var(--bad); border-color: var(--bad); }
.dessie .row { grid-template-columns: minmax(110px, 1.2fr) 80px minmax(0, 2fr); }
.dessie.closed p { font-style: italic; }
.dessie > p { margin-bottom: 6px; }

/* services */
.svc { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px solid var(--rule); flex-wrap: wrap; }
.svc:first-of-type { border-top: 0; padding-top: 0; }
.svc > div:first-child { display: grid; gap: 2px; min-width: 0; flex: 1 1 200px; }
.svc small { color: var(--muted); font-size: 12.5px; }
.svc.col { flex-direction: column; align-items: stretch; }
.svc.col > div:first-child { flex: 0 0 auto; }
.inline { display: flex; gap: 6px; flex-wrap: wrap; }
.bags { display: flex; gap: 6px; flex-wrap: wrap; }

/* travel */
.dests { list-style: none; margin: 0; padding: 0; display: grid; }
.dest { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 9px 0; border-top: 1px solid var(--rule); flex-wrap: wrap; }
.dest:first-child { border-top: 0; padding-top: 0; }
.dest-name { display: grid; gap: 1px; min-width: 0; }
.dest-name small { color: var(--muted); font-size: 12px; font-style: italic; }
.dest-btns { display: flex; gap: 6px; flex-wrap: wrap; }

/* phone */
.ring { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.msgs { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; max-height: 460px; overflow-y: auto; }
.msg { background: var(--slab-2); border-radius: 10px 10px 10px 2px; padding: 8px 11px; border-left: 3px solid var(--rule); }
.msg .meta { display: flex; justify-content: space-between; gap: 8px; font-size: 11.5px; margin-bottom: 2px; }
.msg .meta b { font-family: var(--f-mono); letter-spacing: 0.04em; }
.msg .meta span { color: var(--muted); font-family: var(--f-mono); }
.msg p { font-size: 14px; }
.msg.from-tadhg { border-left-color: var(--sodium); }
.msg.from-tadhg .meta b { color: var(--sodium); }
.msg.from-dessie { border-left-color: var(--good); }
.msg.from-dessie .meta b { color: var(--good); }
.msg.from-unknown { border-left-color: var(--bad); }
.msg.from-unknown .meta b { color: var(--bad); }
.msg.from-news .meta b, .msg.from-street .meta b { color: var(--cred); }
.msg.mate { border-left-color: var(--cred); }
.msg.mate .meta b { color: var(--cred); }
.msg.from-you { background: transparent; border: 1px dashed var(--rule); border-radius: 10px 10px 2px 10px; }
.msg.from-you p { font-style: italic; color: var(--muted); }

.actionbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 5;
  display: flex; justify-content: center; gap: 10px;
  padding: 10px max(16px, env(safe-area-inset-right, 0px)) calc(10px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px));
  background: rgba(16, 21, 24, 0.92); backdrop-filter: blur(8px); border-top: 1px solid var(--rule);
}
.actionbar .btn { min-width: 170px; }
/* The day controls: hard to miss. Head home is filled; the rest are outlined in the accent and glow on hover. */
.actionbar { border-top: 2px solid var(--sodium); box-shadow: 0 -6px 24px rgba(242, 163, 58, 0.18); }
.actionbar .btn { border: 2px solid var(--sodium); font-size: 15px; box-shadow: 0 0 0 1px rgba(242, 163, 58, 0.15), 0 4px 14px rgba(242, 163, 58, 0.18); }
.actionbar .btn:not(.primary) { background: rgba(242, 163, 58, 0.14); color: var(--sodium); }
.actionbar .btn:not(.primary) small { color: rgba(242, 163, 58, 0.75); }
.actionbar .btn:hover:not(:disabled) { background: var(--sodium); color: var(--sodium-ink); box-shadow: 0 0 0 1px var(--sodium), 0 6px 20px rgba(242, 163, 58, 0.35); }
.actionbar .btn:hover:not(:disabled) small { color: rgba(27, 18, 6, 0.7); }


/* ---------- v2 widgets ---------- */
.chip { font: 600 11px var(--f-mono); letter-spacing: 0.06em; text-transform: uppercase; padding: 5px 8px; border-radius: 3px; border: 1px solid var(--rule); color: var(--muted); white-space: nowrap; }
.chip.weather-rain { color: var(--cred); border-color: var(--cred); }
.chip.weather-dry { color: var(--sodium); border-color: var(--sodium); }
.chip.cal { color: var(--good); border-color: var(--good); }
.tab .badge.new { background: var(--good); color: #0b1a10; }
.tab .badge.soft { background: var(--slab-2); color: var(--fg); border: 1px solid var(--rule); }
.tab.on .badge.soft { background: rgba(27, 18, 6, 0.15); color: var(--sodium-ink); border-color: transparent; }
.hot { color: var(--good); font-weight: 600; font-style: normal; }
.tk small { font: 500 10.5px var(--f-mono); color: var(--muted); }
.spark-empty { display: block; width: 76px; height: 22px; border-bottom: 1px dashed var(--rule); }
.btn.danger { background: var(--bad); border-color: var(--bad); color: #fff; }
.btn.danger small { color: rgba(255, 255, 255, 0.8); }
.stat.firm b { color: var(--bad); }
.meter.standing i { background: var(--cred); }
.notes-line { font: 500 12px var(--f-mono); color: var(--sodium); margin-bottom: 4px; }
.dname small.warn { color: var(--sodium); }
.sub-h { font: 800 18px var(--f-display); text-transform: uppercase; margin: 18px 0 4px; }
.inline-kv { margin: 0 0 8px; grid-template-columns: auto 1fr; }
.msg.cust { border-left-color: var(--sodium); }
.msg.cust .meta b { color: var(--fg); }

/* orders */
.order { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 0; border-top: 1px solid var(--rule); }
.order:first-of-type { border-top: 0; }
.order.here { background: linear-gradient(90deg, rgba(108, 194, 138, 0.08), transparent 60%); }
.o-main { display: grid; gap: 2px; min-width: 0; flex: 1 1 260px; }
.o-main b { font-size: 16px; }
.o-main small { color: var(--muted); }
.o-main small b { font-size: inherit; color: var(--fg); }
.o-btns { display: flex; gap: 6px; flex-wrap: wrap; }
.roster { list-style: none; margin: 8px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 8px; }
.roster li { background: var(--slab-2); border-radius: var(--r); padding: 10px 12px; display: grid; gap: 6px; }
.roster li > div:first-child { display: grid; gap: 2px; }
.roster li small { color: var(--muted); font-size: 12px; }
.roster li.gone { opacity: 0.45; }
.loy { display: grid; gap: 2px; }
.loy .lbl { font: 600 10px var(--f-mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }

/* stashes */
.stash-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 10px; }
.stash { background: var(--slab-2); border: 1px solid transparent; border-radius: var(--r); padding: 12px 14px; display: grid; gap: 6px; align-content: start; }
.stash.owned { border-color: var(--rule); }
.stash.here { border-color: var(--sodium); }
.st-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.st-head b { font-size: 15px; }
.tagk { font: 600 10px var(--f-mono); letter-spacing: 0.08em; text-transform: uppercase; padding: 2px 6px; border-radius: 3px; border: 1px solid var(--rule); color: var(--muted); white-space: nowrap; }
.tagk.otherwise { color: var(--bad); border-color: var(--bad); }
.tagk.rent { color: var(--sodium); border-color: var(--sodium); }
.tagk.free, .tagk.home { color: var(--good); border-color: var(--good); }
.contents { font: 500 13px var(--f-mono); color: var(--fg); }
.st-move { display: grid; gap: 6px; }
.st-row { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.st-row > span:first-child { width: 52px; font-weight: 600; font-size: 13px; }
.st-row > span.muted { flex: 1 1 110px; }
.st-row input.qty { width: 64px; }
.st-row.quick { padding-top: 4px; }

/* prices chips */
.chips { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }
.chipbtn { appearance: none; cursor: pointer; background: var(--slab-2); color: var(--muted); border: 1px solid var(--rule); border-radius: 20px; padding: 6px 14px; font: 600 13px var(--f-body); }
.chipbtn.on { background: var(--fg); color: var(--tarmac); border-color: var(--fg); }
.chipbtn:focus-visible { outline: 2px solid var(--sodium); outline-offset: 2px; }
.best small { color: var(--muted); font: 500 11px var(--f-mono); }
.ptable td.age { color: var(--muted); font-size: 12px; }


/* ---------- justice ---------- */
:root { --paper: #f1ece1; --paper-ink: #1d1a16; --paper-rule: #c9c0ad; --paper-muted: #6b6253;
  --f-paper: 'Source Serif 4', Georgia, 'Times New Roman', serif; --f-mast: 'Old Standard TT', 'Times New Roman', serif; }
.create-row { display: flex; gap: 18px; flex-wrap: wrap; align-items: flex-end; }
.create-row .field.big { flex: 1 1 280px; max-width: 420px; }
.create-row .chips { margin: 0; }
.prison-sign { background: #3a3f44; outline-color: #3a3f44; }
.prison-sign .ga { color: #d7dde2; }
.prison-acts { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; margin-top: 10px; }
.prison-acts .btn { padding: 12px 14px; }
.prison p { margin-bottom: 8px; }
.charges { margin: 4px 0 12px; padding-left: 18px; display: grid; gap: 3px; }
.charges li { font-weight: 600; }
.scales { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-bottom: 8px; }
.scales > div { background: var(--slab-2); border-radius: var(--r); padding: 10px 12px; display: grid; gap: 3px; }
.scales .lbl { font: 600 10.5px var(--f-mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.scales b { font-size: 22px; }
.scales small { color: var(--muted); font-size: 12px; }
.case .bags .btn { max-width: 300px; }
.case p.warn, .case p.muted { margin-bottom: 8px; }
.rapsheet { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 4px; font-size: 13.5px; }
.rapsheet li { display: grid; grid-template-columns: 96px 1fr; gap: 10px; padding: 5px 0; border-top: 1px solid var(--rule); }
.rapsheet li span { font: 500 11.5px var(--f-mono); color: var(--muted); padding-top: 2px; }
.modal.tone-good { border-top-color: var(--good); }
.clips li { display: grid; gap: 1px; padding: 8px 0; border-top: 1px solid var(--rule); justify-content: start; }
.clip-date { font: 500 11px var(--f-mono); color: var(--muted); }
.clip-head { font: 700 17px/1.2 var(--f-mast); font-family: var(--f-mast) !important; }
.clip-meta { font-size: 12px; color: var(--muted); }

/* ---------- the newspaper ---------- */
.paper-wrap { display: grid; gap: 18px; padding-top: 8px; }
.paper { background: var(--paper); color: var(--paper-ink); border-radius: 2px; padding: 18px clamp(16px, 4vw, 40px) 24px; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55); transform: rotate(-0.4deg); max-width: 980px; width: 100%; justify-self: center; animation: paperIn 0.6s ease-out; }
@keyframes paperIn { from { transform: rotate(-6deg) scale(0.92); opacity: 0; } to { transform: rotate(-0.4deg); opacity: 1; } }
.masthead { text-align: center; border-bottom: 3px double var(--paper-ink); padding-bottom: 8px; margin-bottom: 16px; }
.mast-top { display: flex; justify-content: space-between; gap: 10px; font: 600 11px var(--f-paper); text-transform: uppercase; letter-spacing: 0.08em; border-bottom: 1px solid var(--paper-ink); padding-bottom: 6px; margin-bottom: 6px; }
.mast-name { font: 700 clamp(34px, 7vw, 68px)/1 var(--f-mast); letter-spacing: -0.01em; text-transform: none; color: var(--paper-ink); }
.mast-sub { font: italic 400 13px var(--f-paper); color: var(--paper-muted); margin-top: 4px; }
.paper-body { display: grid; grid-template-columns: minmax(0, 2.2fr) minmax(0, 1fr); gap: 24px; }
.kicker-paper { font: 700 11px var(--f-paper); letter-spacing: 0.14em; text-transform: uppercase; color: #9b1c12; margin-bottom: 4px; }
.headline { font: 700 clamp(28px, 5vw, 48px)/1.05 var(--f-mast); color: var(--paper-ink); text-transform: none; letter-spacing: -0.01em; margin-bottom: 10px; }
.standfirst { font: 600 18px/1.4 var(--f-paper); margin-bottom: 8px; }
.byline { font: italic 400 13px var(--f-paper); color: var(--paper-muted); border-top: 1px solid var(--paper-rule); border-bottom: 1px solid var(--paper-rule); padding: 5px 0; margin-bottom: 12px; }
.story { columns: 2 220px; column-gap: 22px; font: 400 15.5px/1.55 var(--f-paper); }
.story p { margin: 0 0 10px; break-inside: avoid-column; text-align: justify; hyphens: auto; }
.story p:first-child::first-letter { float: left; font: 700 52px/0.85 var(--f-mast); padding: 4px 6px 0 0; }
.sidebar { border-left: 1px solid var(--paper-rule); padding-left: 18px; font-family: var(--f-paper); min-width: 0; }
.sidebar h3 { font: 700 15px var(--f-paper); text-transform: uppercase; letter-spacing: 0.08em; border-bottom: 2px solid var(--paper-ink); padding-bottom: 4px; margin: 0 0 8px; color: var(--paper-ink); }
.facts { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; margin: 0 0 18px; font-size: 14px; }
.facts dt { color: var(--paper-muted); }
.facts dd { margin: 0; font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; }
.paper-sheet { margin: 0; padding: 0; list-style: none; display: grid; gap: 7px; font-size: 13px; line-height: 1.4; }
.paper-sheet b { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--paper-muted); }
.paper-foot { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; border-top: 3px double var(--paper-ink); margin-top: 18px; padding-top: 10px; font: 700 14px/1.3 var(--f-mast); }
.end-actions { justify-content: center; }
@media (max-width: 760px) {
  .paper-body { grid-template-columns: minmax(0, 1fr); }
  .sidebar { border-left: 0; padding-left: 0; border-top: 1px solid var(--paper-rule); padding-top: 14px; }
  .paper-foot { grid-template-columns: minmax(0, 1fr); }
  .scales { grid-template-columns: minmax(0, 1fr); }
  .paper { transform: none; }
}


/* ---------- reactive world ---------- */
.job { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; padding: 12px 14px; margin-bottom: 10px; border: 1px solid var(--bad); border-radius: var(--r); background: rgba(229, 96, 74, 0.07); }
.job .eyebrow { color: var(--bad); }
.contacts { margin: 0 0 12px; }
.filecell { min-width: 90px; }
.filecell .meter { width: 60px; display: inline-block; vertical-align: middle; margin: 0 6px 0 0; }
.filecell small { font: 500 11px var(--f-mono); color: var(--muted); }
.notice-paper { max-width: 640px; }
.notices { display: grid; gap: 14px; font-family: var(--f-paper); }
.notices h3 { font: 700 15px var(--f-paper); text-transform: uppercase; letter-spacing: 0.1em; border-bottom: 2px solid var(--paper-ink); padding-bottom: 4px; color: var(--paper-ink); }
.notice { font: 400 16px/1.6 var(--f-paper); border: 1px solid var(--paper-rule); padding: 14px 16px; }
.notice::first-line { font-weight: 700; }
.notice-aside { font: italic 400 14px/1.5 var(--f-paper); color: var(--paper-muted); }
.notices .facts { max-width: 320px; }

.bad-batch { color: var(--bad) !important; font-weight: 600; }
.dname small.hot { color: var(--good); }

/* crew */
.crew-card { background: var(--slab-2); border: 1px solid var(--rule); border-radius: var(--r); padding: 12px 14px; display: grid; gap: 6px; align-content: start; }
.crew-card.offered { border-color: var(--sodium); }
.crew-card.empty { border-style: dashed; background: transparent; }
.crew-card.gone { opacity: 0.5; }
.crew-card .kv .meter { width: 90px; margin-top: 6px; }

/* jobs */
.job-lead { background: var(--slab-2); border: 1px solid var(--rule); border-radius: var(--r); padding: 12px 14px; display: grid; gap: 6px; align-content: start; }
.job-lead.on { border-color: var(--sodium); }
.plan { border: 1px solid var(--sodium); border-radius: var(--r); padding: 4px 14px 14px; margin-top: 12px; display: grid; gap: 10px; }
.pick-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 6px; }
.pick { appearance: none; text-align: left; cursor: pointer; background: var(--slab-2); color: var(--fg); border: 1px solid var(--rule); border-radius: var(--r); padding: 8px 10px; display: grid; gap: 2px; font: inherit; }
.pick small { color: var(--muted); font-size: 11.5px; }
.pick.on { border-color: var(--sodium); box-shadow: inset 0 0 0 1px var(--sodium); }
.pick:disabled { opacity: 0.4; cursor: not-allowed; }
.pick:focus-visible { outline: 2px solid var(--sodium); outline-offset: 2px; }

.darkweb { border-top: 1px solid var(--rule); margin: 4px 0 12px; padding-top: 2px; display: grid; gap: 8px; }
.darkweb label { display: inline-flex; gap: 4px; align-items: center; color: var(--muted); }
.parcels { margin: 0; padding-left: 18px; color: var(--muted); }

/* transit map */
:root { --line-red: #e4473b; --line-green: #3fae5a; --line-dart: #29a7b8; --line-bus: #f2a33a; --stop-fill: #f4f1ea; }
.mapwrap { overflow-x: auto; margin: 0 -4px; }
.tmap { display: block; width: 100%; max-width: 860px; min-width: 620px; height: auto; margin: 0 auto; }
.mline { fill: none; stroke-width: 9; stroke-linecap: round; stroke-linejoin: round; }
.mline.red { stroke: var(--line-red); }
.mline.green { stroke: var(--line-green); }
.mline.dart { stroke: var(--line-dart); stroke-width: 7; }
.mline.bus { stroke: var(--line-bus); stroke-width: 6; stroke-dasharray: 2 12; }
.stop { cursor: pointer; outline: none; pointer-events: bounding-box; }
.stop .hit { fill: transparent; }
.stop .dot { fill: var(--stop-fill); stroke: var(--tarmac); stroke-width: 4; transition: r 0.15s; }
.stop.hub .dot { stroke-width: 5; }
.stop .dot-inner { fill: var(--tarmac); }
.stop .sname { fill: var(--fg); font: 800 21px var(--f-display); letter-spacing: 0.03em; text-transform: uppercase; }
.stop .sga { fill: var(--sign-ga); font: italic 500 13px var(--f-body); }
.stop .ssub { fill: var(--muted); font: 500 12px var(--f-mono); }
.stop .n-good { fill: var(--good); }
.stop .n-bad { fill: var(--bad); }
.stop .n-warn { fill: var(--sodium); }
.stop .n-muted { fill: var(--muted); }
.stop .n-sup { fill: var(--accent); font-weight: 700; }
.stop:hover .dot, .stop:focus-visible .dot { stroke: var(--sodium); stroke-width: 5; }
.stop:hover .sname, .stop:focus-visible .sname { fill: var(--sodium); }
.stop.far { cursor: not-allowed; }
.stop.far .dot { fill: var(--muted); }
.stop.far .sname, .stop.far .sga { opacity: 0.5; }
.stop.here { cursor: default; }
.stop.here .dot { fill: var(--sodium); }
.stop.here .ssub { fill: var(--sodium); font-weight: 600; }
.stop .pulse { fill: none; stroke: var(--sodium); stroke-width: 3; animation: pulse 1.8s ease-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes pulse { from { transform: scale(0.7); opacity: 0.9; } to { transform: scale(1.8); opacity: 0; } }
.legend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 8px; font-size: 12.5px; align-items: center; }
.leg { display: inline-flex; align-items: center; gap: 6px; }
.sw { display: inline-block; width: 22px; height: 6px; border-radius: 3px; }
.sw.red { background: var(--line-red); }
.sw.green { background: var(--line-green); }
.sw.dart { background: var(--line-dart); }
.sw.bus { background: repeating-linear-gradient(90deg, var(--line-bus) 0 3px, transparent 3px 9px); }

/* saves */
.loadpanel { border-top: 1px solid var(--rule); padding-top: 14px; max-width: 560px; display: grid; gap: 8px; }
.loadpanel h3 { font-size: 18px; text-transform: uppercase; color: var(--muted); }
.codebox { width: 100%; background: var(--tarmac); color: var(--fg); border: 1px solid var(--rule); border-radius: var(--r); font: 500 12px var(--f-mono); padding: 8px; resize: vertical; word-break: break-all; }
.filebtn { position: relative; overflow: hidden; }
.filebtn input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.filebtn:focus-within { outline: 2px solid var(--sodium); outline-offset: 2px; }
.who .link + .link { margin-left: 2px; }

/* Belfast */
:root { --line-g1: #8a4fd0; --line-g2: #d4479a; --line-metro: #f2a33a; --line-rail: #3f8bd8; --line-ent: #b9c3c7; --ni-plate: #f4f2ec; --ni-ink: #16191b; }
.mline.g1 { stroke: var(--line-g1); }
.mline.g2 { stroke: var(--line-g2); stroke-width: 7; }
.mline.metro, .mline.metro2 { stroke: var(--line-metro); stroke-width: 6; stroke-dasharray: 2 12; }
.mline.rail { stroke: var(--line-rail); stroke-width: 7; }
.mline.enterprise { stroke: var(--line-ent); stroke-width: 5; stroke-dasharray: 14 8; }
.sw.g1 { background: var(--line-g1); } .sw.g2 { background: var(--line-g2); } .sw.rail { background: var(--line-rail); }
.sw.metro { background: repeating-linear-gradient(90deg, var(--line-metro) 0 3px, transparent 3px 9px); }
.sw.enterprise { background: repeating-linear-gradient(90deg, var(--line-ent) 0 8px, transparent 8px 12px); }
.wall { stroke: var(--muted); stroke-width: 6; stroke-dasharray: 3 3; fill: none; }
.walllbl { fill: var(--muted); font: 600 11px var(--f-mono); letter-spacing: 0.1em; text-transform: uppercase; }
.stop .citybox { fill: var(--slab-2); stroke: var(--line-ent); stroke-width: 3; }
.stop.citylink:hover .citybox { stroke: var(--sodium); }
.sign.ni { background: var(--ni-plate); color: var(--ni-ink); border-color: var(--ni-ink); outline-color: var(--ni-plate); }
.sign.ni .ga { color: #2e6b4f; }
.stat.gbp b { color: var(--fg); }

.city-h { font: 800 24px var(--f-display); text-transform: uppercase; margin: 18px 0 2px; padding-top: 10px; border-top: 1px solid var(--rule); }
.city-h:first-of-type { border-top: 0; margin-top: 0; padding-top: 0; }

/* ---------- modal ---------- */
.scrim { position: fixed; inset: 0; z-index: 20; background: rgba(5, 8, 10, 0.72); display: grid; place-items: center; padding: max(16px, env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-right, 0px)) max(16px, env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px)); overflow-y: auto; }
.modal { width: min(560px, 100%); background: var(--slab); border: 1px solid var(--rule); border-top: 4px solid var(--sodium); border-radius: var(--r); padding: 20px 22px 22px; display: grid; gap: 12px; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5); animation: drop 0.18s ease-out; }
.modal.tone-danger { border-top-color: var(--bad); }
.modal .kicker { font: 600 11px var(--f-mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.modal h2 { font-size: 34px; text-transform: uppercase; line-height: 1; }
.modal-body { display: grid; gap: 10px; }
.modal-body i { color: var(--fg); opacity: 0.92; }
.choices { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 4px; }
.choices .btn { flex: 1 1 150px; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 4px 16px; margin: 0; font-size: 14px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; font-family: var(--f-mono); font-variant-numeric: tabular-nums; }
.help { margin: 0; padding-left: 18px; display: grid; gap: 8px; font-size: 14px; }
@keyframes drop { from { transform: translateY(-8px); opacity: 0.4; } to { transform: none; opacity: 1; } }

/* ---------- end ---------- */
.end { display: grid; gap: 18px; max-width: 720px; padding-top: 6vh; }
.end h1 { font-size: clamp(48px, 10vw, 96px); text-transform: uppercase; line-height: 0.9; }
.end.tone-danger h1 { color: var(--bad); }
.end.tone-good h1 { color: var(--good); }
.end.tone-ok h1 { color: var(--sodium); }
.end-kv { font-size: 16px; max-width: 420px; }

/* ---------- toast ---------- */
.toast { position: fixed; left: 50%; bottom: calc(84px + env(safe-area-inset-bottom, 0px)); transform: translate(-50%, 20px); opacity: 0; pointer-events: none; z-index: 60; background: var(--slab-2); border: 1px solid var(--rule); color: var(--fg); padding: 10px 16px; border-radius: var(--r); font-size: 14px; max-width: calc(100% - 32px); transition: opacity 0.2s, transform 0.2s; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.good { border-color: var(--good); }
.toast.bad { border-color: var(--bad); }

/* ---------- responsive ---------- */
@media (max-width: 1000px) {
}
@media (max-width: 760px) {
  .builds { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  body { font-size: 14px; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .row { grid-template-columns: minmax(0, 1fr) 70px 70px; }
  .row .trend { grid-column: 1 / -1; grid-row: 2; display: flex; align-items: center; gap: 8px; }
  .row .trade { grid-row: 3; }
  .dessie .row .trade { grid-row: auto; }
  .bests { grid-template-columns: minmax(0, 1fr); }
  .tab { font-size: 15px; padding: 9px 11px; }
  .tab .key { display: none; }
  .dessie .row { grid-template-columns: minmax(0, 1fr) 80px; }
  .row .trade { grid-column: 1 / -1; }
  .sign { min-width: 0; width: 100%; }
  .actionbar .btn { min-width: 0; flex: 1 1 0; }
  .modal h2 { font-size: 28px; }
  .create-actions { justify-content: stretch; }
  .create-actions .btn { flex: 1 1 0; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .tape { overflow-x: auto; mask-image: none; }
  .tape-row[aria-hidden] { display: none; }
}

/* Galway, Cork, Limerick and the intercity map */
:root { --line-gbus: #c8102e; --line-beb: #e8b04a; --line-cbus: #d22630; --line-crail: #3fae5a; --line-lbus: #00843d; --line-ulbus: #3f8bd8; }
.mline.gbus { stroke: var(--line-gbus); stroke-width: 8; }
.mline.beb { stroke: var(--line-beb); stroke-width: 6; stroke-dasharray: 2 12; }
.mline.cbus { stroke: var(--line-cbus); stroke-width: 8; }
.mline.crail { stroke: var(--line-crail); stroke-width: 7; }
.mline.lbus { stroke: var(--line-lbus); stroke-width: 8; }
.mline.ulbus { stroke: var(--line-ulbus); stroke-width: 6; stroke-dasharray: 2 12; }
.sw.gbus { background: var(--line-gbus); } .sw.cbus { background: var(--line-cbus); } .sw.crail { background: var(--line-crail); } .sw.lbus { background: var(--line-lbus); }
.sw.beb { background: repeating-linear-gradient(90deg, var(--line-beb) 0 3px, transparent 3px 9px); }
.sw.ulbus { background: repeating-linear-gradient(90deg, var(--line-ulbus) 0 3px, transparent 3px 9px); }
.waterlbl { fill: var(--line-dart); opacity: 0.55; font: italic 500 15px var(--f-body); letter-spacing: 0.08em; }
.imap { max-width: 440px; min-width: 300px; }
.iline { fill: none; stroke: var(--line-ent); stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; opacity: 0.55; }
.iline.coach { stroke-dasharray: 10 8; }
.iline.live { opacity: 1; stroke: var(--sodium); }
.sw.irail { background: var(--line-ent); }
.sw.icoach { background: repeating-linear-gradient(90deg, var(--line-ent) 0 8px, transparent 8px 12px); }
.stop.citylink.here .citybox { fill: var(--sodium); stroke: var(--sodium); }

/* the Sunday Clarion */
.paper-scrim { align-items: start; }
.paper-modal { width: min(1000px, 100%); display: grid; gap: 14px; padding: 8px 0 24px; }
.paper-modal .choices { justify-content: center; }
.paper.sunday { transform: rotate(0.3deg); }
.sec-h { font: 700 15px var(--f-paper); text-transform: uppercase; letter-spacing: 0.08em; color: var(--paper-ink); border-top: 3px double var(--paper-ink); padding-top: 8px; margin: 18px 0 8px; }
.briefs { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px 20px; font-family: var(--f-paper); }
.brief b { display: block; font: 700 17px/1.15 var(--f-mast); margin-bottom: 3px; }
.brief p { margin: 0; font-size: 14px; line-height: 1.45; }
.listings { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; font: 400 13.5px/1.4 var(--f-paper); }
.column { font: italic 400 15px/1.55 var(--f-paper); }
.column p { margin: 0 0 8px; }
.column .sig { font-style: normal; font-weight: 700; text-align: right; }
.whatson, .ads { margin: 0 0 16px; padding: 0; list-style: none; display: grid; gap: 9px; font-size: 13.5px; line-height: 1.4; }
.whatson b { display: block; font-size: 14px; }
.whatson small { display: block; color: var(--paper-muted); font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.05em; }
.whatson p { margin: 2px 0 0; }
.ads li { border-bottom: 1px dotted var(--paper-rule); padding-bottom: 6px; }
.sprices { width: 100%; border-collapse: collapse; font: 600 12.5px var(--f-paper); font-variant-numeric: tabular-nums; margin-bottom: 4px; }
.sprices th, .sprices td { padding: 3px 4px; text-align: right; border-bottom: 1px solid var(--paper-rule); }
.sprices th:first-child { text-align: left; }
.sprices thead th { font-size: 11px; text-transform: uppercase; color: var(--paper-muted); }
.fine { font-size: 11px; color: var(--paper-muted); margin: 0 0 16px; }
.sunday .small { font-size: 13.5px; }

/* Doyle's */
.bk-stake { flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 6px; }
.bk-stake label { font: 600 12px var(--f-mono); text-transform: uppercase; letter-spacing: 0.06em; }
.race { border-top: 1px solid var(--rule); padding: 10px 0; }
.race.run { opacity: 0.55; }
.race-h { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; margin-bottom: 6px; }
.race-h small { color: var(--muted); font-size: 12px; }
.runners { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 6px; }
.runner { justify-content: space-between; text-align: left; }
.runner span { display: inline-flex; align-items: center; gap: 6px; }
.trap { display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 3px; font: 700 11px var(--f-mono); font-style: normal; color: #fff; }
.trap.t1 { background: #d22630; } .trap.t2 { background: #1f4fa8; } .trap.t3 { background: #f4f1ea; color: #111; } .trap.t4 { background: #111; border: 1px solid #555; } .trap.t5 { background: #e8a33a; color: #111; } .trap.t6 { background: repeating-linear-gradient(90deg, #111 0 4px, #f4f1ea 4px 8px); color: #d22630; }
.sp-h { font: 700 11px var(--f-paper); text-transform: uppercase; letter-spacing: 0.08em; color: var(--paper-muted); margin: 6px 0 4px; }
.sunday .ads small { color: var(--paper-muted); }

/* Calendar */
:root { --k-debt: #e5604a; --k-law: #c77dff; --k-event: #3fae5a; --k-race: #f2a33a; --k-deal: #29a7b8; --k-order: #8fd14f; }
.cal-btn small { color: var(--sodium); font: 500 11px var(--f-mono); }
.calendar { margin: 0; }
.cal-nav { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 8px; }
.cal-nav b { font: 800 22px var(--f-display); text-transform: uppercase; }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.cal-grid > span { font: 600 11px var(--f-mono); text-transform: uppercase; color: var(--muted); text-align: center; padding-bottom: 2px; }
.cal-cell { appearance: none; font: inherit; color: var(--fg); background: var(--slab-2); border: 1px solid var(--rule); border-radius: 6px; min-height: 76px; padding: 4px 5px; text-align: left; display: flex; flex-direction: column; gap: 2px; cursor: pointer; min-width: 0; }
.cal-cell.blank { background: transparent; border-color: transparent; cursor: default; }
.cal-cell.past { opacity: 0.5; }
.cal-cell.pre { opacity: 0.25; cursor: default; }
.cal-cell.today { border-color: var(--sodium); box-shadow: inset 0 0 0 1px var(--sodium); }
.cal-cell.sel { background: rgba(242, 163, 58, 0.12); }
.cal-cell:focus-visible { outline: 2px solid var(--sodium); outline-offset: 1px; }
.cal-n { font: 800 16px var(--f-display); }
.cal-d { font: 500 9.5px var(--f-mono); color: var(--muted); }
.cal-dots { display: none; gap: 3px; }
.cal-dots i, .cal-legend i { width: 7px; height: 7px; border-radius: 50%; display: inline-block; }
.cal-t { display: grid; gap: 2px; min-width: 0; }
.cal-t em { font: normal 600 10.5px/1.2 var(--f-body); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; border-left: 3px solid currentColor; padding-left: 4px; color: var(--fg); }
.cal-t em.k-debt { border-color: var(--k-debt); } .cal-t em.k-law { border-color: var(--k-law); } .cal-t em.k-event { border-color: var(--k-event); } .cal-t em.k-race { border-color: var(--k-race); } .cal-t em.k-deal { border-color: var(--k-deal); } .cal-t em.k-order { border-color: var(--k-order); }
i.k-debt { background: var(--k-debt); } i.k-law { background: var(--k-law); } i.k-event { background: var(--k-event); } i.k-race { background: var(--k-race); } i.k-deal { background: var(--k-deal); } i.k-order { background: var(--k-order); }
.cal-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 10px 0; font-size: 12px; color: var(--muted); }
.cal-legend span { display: inline-flex; align-items: center; gap: 5px; }
.cal-split { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 0 24px; }
.cal-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.cal-list li { border-left: 3px solid var(--rule); padding-left: 10px; }
.cal-list li.k-debt { border-color: var(--k-debt); } .cal-list li.k-law { border-color: var(--k-law); } .cal-list li.k-event { border-color: var(--k-event); } .cal-list li.k-race { border-color: var(--k-race); } .cal-list li.k-deal { border-color: var(--k-deal); } .cal-list li.k-order { border-color: var(--k-order); }
.cal-list small { display: block; color: var(--muted); font: 500 11px var(--f-mono); }
.cal-list p { margin: 2px 0 0; font-size: 13.5px; }
@media (max-width: 640px) {
  .cal-cell { min-height: 48px; padding: 3px; }
  .cal-t, .cal-d { display: none; }
  .cal-dots { display: flex; flex-wrap: wrap; }
  .cal-btn small { display: none; }
}

/* Using your own supply */
.highs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.hchip { font: 600 12px var(--f-body); border: 1px solid var(--rule); border-radius: 999px; padding: 4px 10px; display: inline-flex; gap: 6px; align-items: baseline; }
.hchip small { font: 500 11px var(--f-mono); color: var(--muted); }
.hchip.on { border-color: #c77dff; color: #e3c4ff; }
.hchip.hook { border-color: var(--bad); color: var(--bad); }
.hchip.down { border-color: var(--muted); color: var(--muted); }

/* The bag, tappable */
.stat-btn { appearance: none; border: 0; text-align: left; font: inherit; color: inherit; cursor: pointer; }
.stat-btn:hover, .stat-btn:focus-visible { background: var(--slab-2); outline: 2px solid var(--sodium); outline-offset: -2px; }
.stat-btn .peek { font-style: normal; text-transform: none; letter-spacing: 0; color: var(--sodium); opacity: 0.8; }
.tablewrap { overflow-x: auto; }
.bagtable { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.bagtable th, .bagtable td { padding: 5px 6px; border-bottom: 1px solid var(--rule); text-align: left; white-space: nowrap; }
.bagtable thead th { font: 600 11px var(--f-mono); text-transform: uppercase; color: var(--muted); }
.bagtable td.small { white-space: normal; }
.baglist { margin: 10px 0 0; padding-left: 18px; font-size: 13.5px; display: grid; gap: 4px; }
.bagtable th small { display: block; font: 500 11px var(--f-mono); color: var(--muted); white-space: normal; }
.bagtable th, .bagtable td { white-space: normal; }

/* London */
:root { --line-jubilee: #a0a5a9; --line-overground: #ee7c0e; --line-victoria: #0098d4; --line-southern: #3f9c35; --line-southeastern: #1b3f94; --ldn-red: #d22630; }
.mline.jubilee { stroke: var(--line-jubilee); }
.mline.overground { stroke: var(--line-overground); stroke-width: 7; }
.mline.victoria { stroke: var(--line-victoria); }
.mline.southern { stroke: var(--line-southern); stroke-width: 6; }
.mline.southeastern { stroke: var(--line-southeastern); stroke-width: 6; stroke-dasharray: 14 8; }
.sw.jubilee { background: var(--line-jubilee); } .sw.overground { background: var(--line-overground); } .sw.victoria { background: var(--line-victoria); } .sw.southern { background: var(--line-southern); }
.sw.southeastern { background: repeating-linear-gradient(90deg, var(--line-southeastern) 0 8px, transparent 8px 12px); }
.sign.ldn { background: #f7f5f0; color: #1a1a1a; border-color: #1a1a1a; outline-color: #f7f5f0; border-bottom: 6px solid var(--ldn-red); }
.sign.ldn .ga { color: var(--ldn-red); font-style: normal; font-weight: 700; letter-spacing: 0.06em; }
.iline.sea { stroke-dasharray: 3 9; stroke-width: 4; }
.sw.isea { background: repeating-linear-gradient(90deg, var(--line-ent) 0 3px, transparent 3px 8px); }
.imap.wide { max-width: 560px; }

/* Glasgow */
:root { --line-subway: #ff6200; --line-scotrail: #1e3a8a; --line-firstbus: #c4007a; --saltire: #005eb8; }
.mline.subway { stroke: var(--line-subway); stroke-width: 8; }
.mline.scotrail { stroke: var(--line-scotrail); stroke-width: 7; }
.mline.firstbus, .mline.firstbus2 { stroke: var(--line-firstbus); stroke-width: 6; stroke-dasharray: 2 12; }
.sw.subway { background: var(--line-subway); } .sw.scotrail { background: var(--line-scotrail); }
.sw.firstbus { background: repeating-linear-gradient(90deg, var(--line-firstbus) 0 3px, transparent 3px 9px); }
.sign.sco { background: var(--saltire); color: #fff; border-color: #fff; outline-color: var(--saltire); }
.sign.sco .ga { color: #cfe3ff; }

/* Manchester */
:root { --line-metrolink: #f7d417; --line-magicbus: #e4473b; --line-mbus: #3fae5a; }
.mline.metrolink, .mline.metrolink2 { stroke: var(--line-metrolink); stroke-width: 8; }
.mline.magicbus { stroke: var(--line-magicbus); stroke-width: 6; stroke-dasharray: 2 12; }
.mline.mbus { stroke: var(--line-mbus); stroke-width: 6; stroke-dasharray: 2 12; }
.sw.metrolink { background: var(--line-metrolink); }
.sw.magicbus { background: repeating-linear-gradient(90deg, var(--line-magicbus) 0 3px, transparent 3px 9px); }
.sw.mbus { background: repeating-linear-gradient(90deg, var(--line-mbus) 0 3px, transparent 3px 9px); }
.sign.mcr { background: #111; color: #f7d417; border-color: #f7d417; outline-color: #111; }
.sign.lpl { background: #fff; color: #111; border-color: #c8102e; outline-color: #fff; }
.sign.lpl .ga { color: #c8102e; font-style: normal; font-weight: 700; }
.sign.mcr .ga { color: #f4f1ea; font-style: normal; font-weight: 700; }

/* The operation */
.reach { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 10px; }
.reach span { border: 1px solid var(--rule); border-radius: 999px; padding: 3px 10px; font-size: 12.5px; color: var(--muted); }
.reach b { color: var(--fg); font-family: var(--f-mono); }

/* Amsterdam */
:root { --line-gvbtram: #e2001a; --line-ametro: #0063d3; --line-ijferry: #00a6d6; --line-ns: #ffc917; }
.mline.gvbtram, .mline.gvbtram2 { stroke: var(--line-gvbtram); stroke-width: 7; }
.mline.ametro { stroke: var(--line-ametro); stroke-width: 8; }
.mline.ijferry { stroke: var(--line-ijferry); stroke-width: 6; stroke-dasharray: 10 8; }
.mline.ns { stroke: var(--line-ns); stroke-width: 8; }
.sw.gvbtram { background: var(--line-gvbtram); } .sw.ametro { background: var(--line-ametro); } .sw.ns { background: var(--line-ns); }
.sw.ijferry { background: repeating-linear-gradient(90deg, var(--line-ijferry) 0 6px, transparent 6px 10px); }
.sign.ams { background: #fff; color: #111; border-color: #c8102e; outline-color: #fff; }
.sign.ams .ga { color: #c8102e; font-style: normal; font-weight: 700; }

/* Marbella */
:root { --line-avanza: #00843d; --line-coastbus: #f39200; }
.mline.avanza { stroke: var(--line-avanza); stroke-width: 7; }
.mline.coastbus { stroke: var(--line-coastbus); stroke-width: 6; stroke-dasharray: 10 8; }
.sw.avanza { background: var(--line-avanza); }
.sw.coastbus { background: repeating-linear-gradient(90deg, var(--line-coastbus) 0 6px, transparent 6px 10px); }
.sign.esp { background: #fff; color: #0b3b8c; border-color: #0b3b8c; outline-color: #fff; }
.sign.esp .ga { color: #b45309; font-style: normal; font-weight: 700; }

/* Medellín */
:root { --line-metroa: #2f7d32; --line-metrob: #e97a00; --line-mcable: #00a0e3; --line-mtnbus: #b0b7c3; }
.mline.metroa { stroke: var(--line-metroa); stroke-width: 8; }
.mline.metrob { stroke: var(--line-metrob); stroke-width: 8; }
.mline.mcable { stroke: var(--line-mcable); stroke-width: 5; stroke-dasharray: 3 7; }
.mline.mtnbus { stroke: var(--line-mtnbus); stroke-width: 6; stroke-dasharray: 10 8; }
.sw.metroa { background: var(--line-metroa); } .sw.metrob { background: var(--line-metrob); }
.sw.mcable { background: repeating-linear-gradient(90deg, var(--line-mcable) 0 3px, transparent 3px 9px); }
.sw.mtnbus { background: repeating-linear-gradient(90deg, var(--line-mtnbus) 0 6px, transparent 6px 10px); }
.sign.col { background: #fcd116; color: #111; border-color: #003893; outline-color: #fcd116; }
.sign.col .ga { color: #ce1126; font-style: normal; font-weight: 700; }
.diff { display: flex; flex-wrap: wrap; gap: 8px; align-items: stretch; margin: 12px 0; }
.diff .lbl { width: 100%; font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.diff .btn { flex: 1 1 220px; text-align: left; }

/* After travelling or sleeping: the sign and the time of day catch the light */
.glisten { position: relative; overflow: hidden; }
.glisten::after { content: ''; position: absolute; inset: -20%; pointer-events: none;
  background: linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, .55) 50%, transparent 65%);
  transform: translateX(-120%); animation: glisten 1.1s ease-out .15s 2; }
.sign.glisten { animation: signglow 2.4s ease-out; }
.blocks li.now.glisten { animation: signglow 2.4s ease-out; }
@keyframes glisten { to { transform: translateX(120%); } }
@keyframes signglow { 0% { box-shadow: 0 0 0 rgba(255, 210, 120, 0); } 25% { box-shadow: 0 0 22px rgba(255, 210, 120, .7); } 100% { box-shadow: 0 0 0 rgba(255, 210, 120, 0); } }
@media (prefers-reduced-motion: reduce) { .glisten::after, .sign.glisten, .blocks li.now.glisten { animation: none; } }

/* The night: down to black and back up in a second */
#night-veil { position: fixed; inset: 0; background: #000; opacity: 0; pointer-events: none; z-index: 9999; display: grid; place-items: center; }
#night-veil.down { opacity: 1; pointer-events: auto; transition: opacity .35s ease-in; }
#night-veil.up { opacity: 0; pointer-events: none; transition: opacity .4s ease-out; }
#night-veil .zzz { font: 800 34px var(--f-display); color: var(--sodium); letter-spacing: .1em; opacity: 0; }
#night-veil.down .zzz { opacity: 1; transition: opacity .2s .15s; }
#night-veil .zzz i { display: inline-block; font-style: normal; animation: zfloat .9s ease-out infinite; }
#night-veil .zzz i:nth-child(2) { font-size: .8em; animation-delay: .12s; }
#night-veil .zzz i:nth-child(3) { font-size: .6em; animation-delay: .24s; }
@keyframes zfloat { from { transform: translateY(6px); opacity: .3; } to { transform: translateY(-10px); opacity: 1; } }

/* ---------- the developer's splash ---------- */
#splash { position: fixed; inset: 0; z-index: 10000; background: #050505; display: grid; place-items: center; align-content: center; gap: 14px; cursor: pointer; transition: opacity 0.7s ease; padding: 16px; }
#splash.out { opacity: 0; pointer-events: none; }
#splash .sp-tap { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); background: none; border: 0; color: #8a8a84; font: 600 13px/1 var(--f-mono); letter-spacing: 0.24em; text-transform: uppercase; cursor: pointer; animation: sp-pulse 1.6s ease-in-out infinite; padding: 16px; }
#splash.play .sp-tap { display: none; }
#splash .sp-mark { font: 800 clamp(48px, 15vw, 132px)/1 var(--f-display); letter-spacing: 0.02em; white-space: nowrap; display: flex; }
#splash .sp-l { display: inline-block; position: relative; opacity: 0; transform: translateY(0.25em) scale(1.08); filter: blur(6px); }
#splash .sp-l.a { color: #f2efe6; }
#splash .sp-l.b { color: var(--sodium, #f0a43a); }
#splash.play .sp-l { animation: sp-in 0.42s cubic-bezier(.2, .9, .3, 1.15) forwards; }
#splash .sp-dot { position: absolute; top: -0.06em; width: 0.13em; height: 0.13em; background: #f2efe6; border-radius: 0.02em; opacity: 0; transform: translateY(-0.9em); }
#splash .sp-dot.l { left: 0.08em; }
#splash .sp-dot.r { right: 0.08em; }
#splash.dots .sp-dot { animation: sp-drop 0.32s cubic-bezier(.5, 0, .7, 1.4) forwards; }
#splash.dots .sp-dot.r { animation-delay: 0.04s; }
#splash .sp-sub { font: 500 12px/1 var(--f-mono); letter-spacing: 0.4em; text-transform: uppercase; color: #6d6d68; opacity: 0; }
#splash.dots .sp-sub { animation: sp-fade 0.8s 0.9s ease forwards; }
@keyframes sp-in { to { opacity: 1; transform: none; filter: none; } }
@keyframes sp-drop { 0% { opacity: 0; transform: translateY(-0.9em); } 60% { opacity: 1; transform: translateY(0.04em); } 80% { transform: translateY(-0.03em); } 100% { opacity: 1; transform: none; } }
@keyframes sp-fade { to { opacity: 1; } }
@keyframes sp-pulse { 50% { opacity: 0.35; } }
@media (prefers-reduced-motion: reduce) { #splash .sp-l, #splash .sp-dot { animation-duration: 0.01s !important; filter: none; } }

/* ---------- save codes ---------- */
.codein { text-transform: uppercase; font: 600 15px/1.3 var(--f-mono); letter-spacing: 0.06em; }
input.codein { background: var(--tarmac); color: var(--fg); border: 1px solid var(--rule); border-radius: var(--r); padding: 8px 10px; min-width: 0; width: 15em; max-width: 100%; }
textarea.codein { font-size: 15px; min-height: 44px; }
.loadscreen .loadpanel { border-top: 0; padding-top: 0; }
.field small.muted { font-size: 12px; }

/* ---------- the final reckoning and GAME OVER ---------- */
.final { max-width: 1040px; margin: 0 auto; padding: 32px 16px 48px; display: grid; gap: 20px; }
.final h1 { font-size: clamp(34px, 6vw, 64px); text-transform: uppercase; line-height: 0.95; }
.final-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.final-sec { background: var(--slab); border: 1px solid var(--rule); border-radius: var(--r); padding: 16px; }
.final-sec h3 { font-size: 20px; text-transform: uppercase; margin-bottom: 10px; color: var(--sodium); }
.final-sec .end-kv { margin: 0; }
.final-sec .paper-sheet { margin: 0; padding-left: 20px; display: grid; gap: 6px; font-size: 14px; }
.gameover { position: fixed; inset: 0; z-index: 50; overflow-y: auto; min-height: 100vh; display: grid; grid-template-rows: auto 1fr auto; justify-items: center; gap: 16px; padding: 48px 16px 32px; background: #050505; text-align: center; }
.go-title { font: 800 clamp(56px, 14vw, 150px)/0.9 var(--f-display); text-transform: uppercase; color: #f2efe6; letter-spacing: 0.02em; animation: go-in 1.6s ease both; }
.credits { position: relative; width: min(560px, 100%); height: min(52vh, 440px); overflow: hidden; -webkit-mask-image: linear-gradient(transparent, #000 18%, #000 82%, transparent); mask-image: linear-gradient(transparent, #000 18%, #000 82%, transparent); }
.credits-roll { position: absolute; left: 0; right: 0; top: 100%; animation: roll 22s linear 1.2s forwards; display: grid; gap: 6px; }
.credits-roll p { margin: 0; }
.cr-logo { font: 800 44px/1 var(--f-display); text-transform: uppercase; color: #f2efe6; margin-bottom: 28px !important; }
.cr-logo span { color: var(--sodium); }
.cr-role { font: 600 12px/1.6 var(--f-mono); letter-spacing: 0.24em; text-transform: uppercase; color: #8a8a84; }
.cr-name { font: 800 30px/1.1 var(--f-display); text-transform: uppercase; color: #f2efe6; margin-bottom: 18px !important; }
.cr-gap { height: 56px; }
@keyframes roll { to { transform: translateY(calc(-100% - min(52vh, 440px))); } }
@keyframes go-in { from { opacity: 0; letter-spacing: 0.3em; } to { opacity: 1; letter-spacing: 0.02em; } }
@media (prefers-reduced-motion: reduce) { .credits-roll { animation: none; position: static; } .credits { height: auto; -webkit-mask-image: none; mask-image: none; } }

/* ---------- the Burner's contact list ---------- */
.contacts { list-style: none; margin: 0 0 12px; padding: 0; border: 1px solid var(--rule); border-radius: var(--r); background: var(--slab); }
.contact { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; padding: 10px 12px; }
.contact + .contact { border-top: 1px solid var(--rule); }
.contact .avatar { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font: 800 16px/1 var(--f-display); text-transform: uppercase; background: var(--slab-2); color: var(--sodium); border: 1px solid var(--rule); }
.contact .avatar.unknown { color: var(--muted); }
.contact .who { display: grid; gap: 2px; min-width: 0; }
.contact .who b { font-size: 15px; }
.contact .who small { font-size: 12px; line-height: 1.35; }
.contact .who small.bad { color: var(--bad); }
.contact.off .avatar, .contact.off .who { opacity: 0.55; }
.contact .call { min-width: 64px; }

/* ---------- Local Life: the main street ---------- */
.street { position: relative; border-radius: var(--r); overflow: hidden; border: 1px solid var(--rule); max-width: 440px; margin: 0 auto; }
.street.sky-morning { background: linear-gradient(#f2c48f 0%, #f7e2c4 55%, #cfd8d6 100%); }
.street.sky-afternoon { background: linear-gradient(#8fb9d8 0%, #c9dfe9 60%, #d8d8cf 100%); }
.street.sky-evening { background: linear-gradient(#3b2c4f 0%, #b0566b 55%, #e59a62 100%); }
.street.sky-night { background: linear-gradient(#05080f 0%, #0f1a2b 65%, #1b2433 100%); }
.street .fronts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding: 14px; max-height: min(64vh, 560px); overflow-y: auto; scrollbar-width: thin; }
.bldg { position: relative; aspect-ratio: 1 / 1; width: 100%; border: 0; border-radius: 18px; padding: 0; cursor: pointer; overflow: hidden;
  background: var(--face, #7d6a5a); box-shadow: inset 0 -8px 0 rgba(0,0,0,.18), 0 2px 8px rgba(0,0,0,.25); display: flex; flex-direction: column; align-items: center; transition: transform .15s, filter .15s; }
.bldg:hover, .bldg:focus-visible { transform: translateY(-2px); filter: brightness(1.08); }
.bldg:focus-visible { outline: 3px solid var(--sodium); outline-offset: 2px; }
.bldg .roof { position: absolute; top: 0; left: 0; right: 0; height: 12px; background: rgba(0,0,0,.28); }
.bldg .shop-sign { margin-top: 22px; max-width: 86%; padding: 5px 7px; background: #f4efe2; color: #1d1d1b; border-radius: 3px; font: 700 11px/1.15 var(--f-sans, sans-serif); text-align: center; box-shadow: 0 2px 0 rgba(0,0,0,.25); }
.bldg .shop-sign i { display: block; font-style: normal; font-size: 15px; line-height: 1.1; color: var(--accent, #c0392b); }
.bldg .windows { display: flex; gap: 14%; width: 100%; justify-content: center; margin-top: auto; margin-bottom: 8%; }
.bldg .windows span { width: 22%; aspect-ratio: 6 / 5; background: #ffe7a3; border: 3px solid rgba(0,0,0,.35); border-radius: 2px; }
.bldg .door { width: 22%; height: 26%; background: rgba(0,0,0,.45); border-radius: 14px 14px 0 0; }
.bldg.shut .windows span { background: #2a2f38; }
.bldg.shut { filter: saturate(.55) brightness(.75); }
.sky-night .bldg:not(.shut) .windows span { box-shadow: 0 0 12px #ffd76a; }
.look-bank  { --face: #2f6b52; --accent: #2f6b52; }
.look-hosp  { --face: #d9dde0; --accent: #c0392b; }
.look-garda { --face: #24426b; --accent: #24426b; }
.look-home  { --face: #8a6e5a; --accent: #8a6e5a; }
.look-video { --face: #4b2d6e; --accent: #6b3fa0; }
.look-food  { --face: #8c3b2c; --accent: #b5562e; }
.look-shop  { --face: #b05a7a; --accent: #b05a7a; }
.look-bus   { --face: #1f6f78; --accent: #1f6f78; }
.look-bet   { --face: #2e5d34; --accent: #2e5d34; }
.look-other { --face: #6a6f78; --accent: #3d4450; }
.look-deal  { --face: #3a3a30; --accent: #a8892f; }
.look-arms  { --face: #4a2b2b; --accent: #8f2f2f; }
.shop-sheet > .card { border: 0; padding: 0; margin: 0; background: transparent; box-shadow: none; }
.shop-scrim { position: fixed; inset: 0; z-index: 15; background: rgba(5, 8, 10, 0.6); display: grid; place-items: center; padding: 16px; overflow-y: auto; }
.shop-sheet { position: relative; width: min(620px, 100%); max-height: calc(100vh - 32px); overflow-y: auto; background: var(--slab); border: 1px solid var(--rule); border-top: 3px solid var(--sodium); border-radius: var(--r); padding: 22px 18px 18px; display: grid; gap: 10px; }
.shop-x { position: absolute; top: 8px; right: 8px; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--rule); background: var(--slab-2); color: var(--fg); font-size: 16px; cursor: pointer; }
@media (prefers-reduced-motion: reduce) { .bldg { transition: none; } .bldg:hover { transform: none; } }
@media (min-width: 720px) { .bldg .shop-sign { font-size: 13px; } }

/* Local Life: what each place is for. Hover on desktop; on a phone, the first tap pins it with Enter / Nevermind. */
.street .cell { position: relative; }
.street .cell .bldg { width: 100%; }
.street .tip { position: absolute; left: 8px; right: 8px; bottom: 8px; z-index: 2; background: rgba(13, 17, 20, 0.94); color: var(--fg); border: 1px solid var(--rule); border-radius: 12px; padding: 10px 12px; font-size: 13px; line-height: 1.35; opacity: 0; transform: translateY(6px); pointer-events: none; transition: opacity .15s, transform .15s; }
.street .tip p { margin: 0; }
.street .tip b { color: var(--bad); }
.street .tip-btns { display: flex; gap: 8px; margin-top: 10px; }
.street .tip-btns .btn { flex: 1; justify-content: center; }
@media (hover: hover) { .street .cell:hover .tip, .street .cell:focus-within .tip { opacity: 1; transform: none; } }
.street .cell.peek .tip { opacity: 1; transform: none; pointer-events: auto; }
.street .cell.peek .bldg { filter: brightness(.85); }
@media (prefers-reduced-motion: reduce) { .street .tip { transition: none; } }
.street .peek-bar { position: sticky; top: 0; z-index: 3; margin: 12px 12px 0; padding: 12px; display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: center; background: rgba(13, 17, 20, 0.95); color: var(--fg); border: 1px solid var(--sodium); border-radius: 14px; }
.street .peek-bar b { font-size: 15px; }
.street .peek-bar p { margin: 2px 0 0; font-size: 13px; line-height: 1.35; color: var(--muted); }
.street .peek-bar em { font-style: normal; color: var(--bad); }
.street .peek-bar .tip-btns { margin: 0; display: flex; gap: 8px; }
.street .cell.peek .bldg { outline: 3px solid var(--sodium); outline-offset: 2px; }
.street .cell.peek .tip { display: none; }
@media (max-width: 480px) { .street .peek-bar { grid-template-columns: 1fr; } .street .peek-bar .tip-btns .btn { flex: 1; justify-content: center; } .street .tip { font-size: 12px; } }
#splash .sp-choice { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 28px; opacity: 0; animation: sp-fade .5s ease forwards; }
#splash .sp-choice[hidden] { display: none; }
#splash .sp-btn { font: 600 15px/1 var(--f-sans, sans-serif); padding: 14px 22px; border-radius: 10px; border: 1px solid #f2a33a; background: #f2a33a; color: #111; cursor: pointer; }
#splash .sp-btn.ghost { background: transparent; color: #8a8a84; border-color: #3a3a36; }
#splash .sp-btn:focus-visible { outline: 3px solid #f2efe6; outline-offset: 3px; }
#splash.choose { cursor: default; }

/* Tappable names: on the Burner and in orders. */
.namelink { background: none; border: 0; padding: 0; font: inherit; color: inherit; cursor: pointer; text-decoration: underline dotted rgba(255,255,255,.35); text-underline-offset: 3px; }
.namelink:hover, .namelink:focus-visible { text-decoration-color: var(--sodium); color: var(--sodium); }

/* The People list on the Burner. */
.people-book { margin-top: 12px; }
.people-book > summary { cursor: pointer; list-style: none; }
.people-book > summary::-webkit-details-marker { display: none; }
.people-book > summary .sub-h::before { content: '▸ '; color: var(--muted); }
.people-book[open] > summary .sub-h::before { content: '▾ '; }
.people-h { margin: 12px 0 6px; font: 600 11px/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--sodium); }
.people { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 6px 14px; }
.people li { display: grid; gap: 1px; padding: 6px 0; border-bottom: 1px solid var(--rule); }
.people li small { font-size: 12px; }
.run-by { margin: 0 0 4px; }
.lede-small { font-size: 15px; }
.people .namelink { justify-self: start; text-align: left; font-weight: 600; }
.chip.weather-ice, .chip.weather-snow { color: #9fd3ff; border-color: #9fd3ff; }
.chip.weather-fog { color: var(--muted); border-color: var(--muted); border-style: dashed; }
.chip.weather-storm { color: var(--bad); border-color: var(--bad); }
.chip.weather-heatwave { color: #ff9a4d; border-color: #ff9a4d; }
.look-pub    { --face: #1f3d2b; --accent: #1f3d2b; }
.look-barber { --face: #2b4a6b; --accent: #c0392b; }
.look-van    { --face: #e8e4d8; --accent: #2b2b2b; }
.look-horse  { --face: #6b4a2b; --accent: #3a2614; }
.look-axis   { --face: #2d4f7c; --accent: #f2b33d; }
.look-college { --face: #5a3d6e; --accent: #f2b33d; }
.look-fair    { --face: #4f6b33; --accent: #e8d9a8; }
.look-market { --face: #7a5c3e; --accent: #e8d9a8; }
.look-juice  { --face: #9cc76a; --accent: #2f5d1e; }
.look-rockclinic { --face: #eef2f4; --accent: #2a6f97; }
.look-boat   { --face: #1d4e6b; --accent: #f4f1ea; }
.look-hill   { --face: #3f5e3a; --accent: #d9d2b6; }
.look-gate   { --face: #222; --accent: #d4af37; }
.look-hub    { --face: #dfe7ee; --accent: #2b2b2b; }
.look-hoops  { --face: #1c6b3a; --accent: #f4f1ea; }
.look-forecourt { --face: #d9dee3; --accent: #1f8a4c; }

/* ---------- the HUD: money on one line, the five stats as gauges in a row ---------- */
.stats.hud-top { display: grid; gap: 10px; background: var(--slab); padding: 10px 14px; grid-template-columns: minmax(0, 1fr); }
.hud-top .money-row { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 6px 18px; padding-bottom: 10px; border-bottom: 1px solid var(--rule); }
.hud-top .m { display: grid; gap: 1px; min-width: 0; align-content: start; }
.hud-top .m.grow { flex: 1 1 140px; }
.hud-top .lbl { font: 600 10px var(--f-mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.hud-top .m b { font-size: 18px; font-weight: 600; }
.hud-top .m small { font-size: 11px; color: var(--muted); line-height: 1.3; }
.hud-top .m.debt b { color: var(--sodium); }
.hud-top .m.firm b { color: var(--bad); }
.hud-top .m.gbp b { color: var(--fg); }
.hud-top .hud { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; }
.hud-top .g { display: grid; justify-items: center; align-content: start; gap: 3px; min-width: 0; padding: 2px 0; text-align: center; background: none; }
.hud-top .g .ic { display: block; width: 22px; height: 22px; color: var(--sodium); }
.hud-top .g .ic svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.hud-top .g b { font-size: 15px; font-weight: 600; }
.hud-top .g .of { color: var(--muted); font-size: 11px; }
.hud-top .g .meter { width: 100%; height: 5px; margin-top: 1px; }
.hud-top .g small { font-size: 10px; }
.hud-top .stat-btn { border-radius: var(--r); }
@media (min-width: 900px) {
  .stats.hud-top { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); align-items: center; gap: 18px; }
  .hud-top .money-row { padding-bottom: 0; border-bottom: 0; padding-right: 18px; border-right: 1px solid var(--rule); }
}

/* ---------- the top bar: one slim sticky line, a bit chunky ---------- */
.topbar.sticky-top {
  position: sticky; top: 0; z-index: 9; flex-wrap: nowrap; gap: 14px; justify-content: flex-start;
  margin: -16px calc(-1 * max(16px, env(safe-area-inset-right, 0px))) 0 calc(-1 * max(16px, env(safe-area-inset-left, 0px)));
  padding: 12px max(16px, env(safe-area-inset-right, 0px)) 12px max(16px, env(safe-area-inset-left, 0px));
  background: rgba(16, 21, 24, 0.96); backdrop-filter: blur(8px); border-bottom: 2px solid var(--sodium);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
}
.tb-day { font: 800 30px/1 var(--f-display); text-transform: uppercase; white-space: nowrap; }
.tb-day span { color: var(--muted); font-size: 19px; margin-left: 3px; }
.tb-now { display: grid; gap: 5px; min-width: 0; flex: 1 1 auto; }
.tb-now b { font: 700 14px var(--f-mono); color: var(--sodium); letter-spacing: 0.07em; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tb-now b i { font-style: normal; color: var(--muted); margin: 0 2px; }
.tb-now .tb-cal { font: 600 11px var(--f-mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--cred); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* Eight half blocks, in pairs: one bar per half, so the time left is a count, not a fill. */
.pips { display: flex; gap: 3px; }
.pips i { width: 10px; height: 7px; border-radius: 3px; background: var(--tarmac); border: 1px solid var(--rule); }
.pips i:nth-child(2n+1):not(:first-child) { margin-left: 4px; }
.pips i.past { background: rgba(242, 163, 58, 0.35); border-color: transparent; }
.pips i.now { background: var(--sodium); border-color: var(--sodium); }
.pips i.now.glisten { animation: signglow 2.4s ease-out; }
.tb-who { font-size: 14px; white-space: nowrap; color: var(--fg); }
.tb-who em, .tm-who em { font-style: normal; color: var(--sodium); font-weight: 600; }
.tb-menu-btn { appearance: none; margin-left: auto; flex: 0 0 auto; width: 46px; height: 46px; border-radius: 10px; border: 1px solid var(--rule); background: var(--slab-2); color: var(--fg); font-size: 22px; cursor: pointer; }
.tb-menu-btn:hover, .tb-menu-btn.on { border-color: var(--sodium); color: var(--sodium); }
.top-menu { position: absolute; right: max(16px, env(safe-area-inset-right, 0px)); top: calc(100% + 6px); min-width: 250px; max-width: calc(100vw - 32px); display: grid; gap: 4px; padding: 14px; background: var(--slab-2); border: 1px solid var(--rule); border-radius: var(--r); box-shadow: 0 14px 34px rgba(0, 0, 0, 0.55); }
.top-menu .tm-date { font: 600 11px var(--f-mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.top-menu .tm-who { font-size: 15px; padding-bottom: 6px; }
.top-menu .link { text-align: left; font-size: 15px; color: var(--fg); text-decoration: none; padding: 10px 0 4px; border-top: 1px solid var(--rule); }
.top-menu .link:hover { color: var(--sodium); }
.top-menu .cal-btn small { display: block; color: var(--muted); font-size: 12px; }
@media (max-width: 760px) {
  .tb-who { display: none; }
  .tb-day { font-size: 28px; }
  .tb-now b { font-size: 13px; }
}
.top-menu .cal-btn::before { content: '📅 '; }
.tb-row { display: flex; align-items: center; gap: 10px; min-width: 0; }
.tb-wx { font: 600 12px var(--f-mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tb-now b { font-size: 15px; }
.tk .tk-p { color: var(--muted); font-size: 11px; font-family: var(--f-mono); text-transform: uppercase; letter-spacing: 0.05em; }
.tk .tk-p .num { color: var(--fg); font-size: 13px; text-transform: none; letter-spacing: 0; }
.tk .tk-age { font: 600 10px var(--f-mono); letter-spacing: 0.06em; text-transform: uppercase; padding: 2px 6px; border-radius: 3px; border: 1px solid var(--rule); color: var(--muted); }
.tk .tk-age.live { color: var(--good); border-color: var(--good); }

/* ---------- the stash summary ---------- */
.stash-sum { margin-bottom: 14px; }
.ss-rows { display: grid; gap: 1px; background: var(--rule); border: 1px solid var(--rule); border-radius: var(--r); overflow: hidden; }
.ss-row { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 12px; align-items: center; background: var(--slab); padding: 9px 12px; }
.ss-drug { display: grid; gap: 1px; }
.ss-drug b { font-size: 15px; }
.ss-drug .num { font: 700 18px var(--f-mono); color: var(--sodium); }
.ss-where { display: flex; flex-wrap: wrap; gap: 6px; }
.ss-chip { font-size: 12.5px; padding: 4px 9px; border-radius: 999px; background: var(--slab-2); border: 1px solid var(--rule); white-space: nowrap; }
.ss-chip b { font-family: var(--f-mono); margin-left: 3px; }
.ss-chip.you { border-color: var(--sodium); }
.ss-places { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.ss-place { background: var(--slab-2); border: 1px solid var(--rule); border-radius: var(--r); padding: 10px 12px; display: grid; gap: 4px; }
.ss-ph { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; }
.ss-place .meter { height: 6px; }
.ss-place small { color: var(--muted); font-size: 12px; }
@media (max-width: 760px) { .ss-row { grid-template-columns: minmax(0, 1fr); gap: 6px; } .ss-drug { display: flex; justify-content: space-between; align-items: baseline; } }

/* ---------- traits ---------- */
.traits-wrap { margin-top: 18px; border-top: 1px solid var(--rule); padding-top: 16px; }
.traits-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.traits-head h3 { font-size: 22px; }
.t-points { font: 700 14px var(--f-mono); padding: 4px 10px; border-radius: 999px; border: 1px solid var(--good); color: var(--good); }
.t-points.neg { border-color: var(--bad); color: var(--bad); }
.traits-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.trait-list { display: grid; gap: 6px; }
.trait { appearance: none; text-align: left; display: grid; grid-template-columns: 28px 1fr auto; align-items: center; gap: 2px 8px; padding: 9px 12px; border-radius: var(--r); border: 1px solid var(--rule); background: var(--slab); color: var(--fg); font: inherit; cursor: pointer; }
.trait .t-ic { font-size: 18px; grid-row: span 2; }
.trait .t-name { font-weight: 700; }
.trait .t-cost { font: 700 13px var(--f-mono); }
.trait.good .t-cost { color: var(--good); }
.trait.bad .t-cost { color: var(--bad); }
.trait small { grid-column: 2 / -1; color: var(--muted); font-size: 12px; line-height: 1.35; }
.trait.on.good { border-color: var(--good); background: rgba(108, 196, 138, 0.1); }
.trait.on.bad { border-color: var(--bad); background: rgba(228, 90, 70, 0.1); }
.trait:disabled { opacity: 0.4; cursor: not-allowed; }
/* Hover only where there's a real pointer: on a phone, a finger scrolling the list shouldn't light a trait up. */
@media (hover: hover) and (pointer: fine) { .trait:hover:not(:disabled) { border-color: var(--sodium); } }
.trait { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
/* The points stay on screen while you scroll the list. */
.traits-head { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 5; background: var(--tarmac); padding: 10px 0; margin: -10px 0 0; border-bottom: 1px solid var(--rule); }
.t-meter { display: flex; gap: 3px; align-items: center; }
.t-spacer { flex: 1; }
@media (max-width: 560px) {
  .traits-head { flex-wrap: nowrap; gap: 8px; }
  .traits-head h3 { font-size: 18px; }
  .traits-head .t-points { font-size: 12px; padding: 3px 8px; white-space: nowrap; }
  .traits-head .btn.sm { padding: 6px 9px; font-size: 13px; }
  .t-meter i { width: 6px; height: 12px; }
}
@media (max-width: 380px) { .t-meter { display: none; } }
.t-meter i { width: 8px; height: 14px; border-radius: 2px; background: var(--rule); }
.t-meter i.on { background: var(--sodium); }
.t-meter i.neg { background: var(--bad); }
.top-menu .tm-traits { font-size: 13px; color: var(--muted); }
@media (max-width: 760px) { .traits-cols { grid-template-columns: 1fr; } .hud-top .g .lbl { font-size: 8.5px; letter-spacing: 0.04em; } }

/* Day buttons pinned under the top bar (☰ menu option) */
.controls-top .actionbar { position: sticky; top: var(--tbh, 70px); bottom: auto; z-index: 8; margin: 0 calc(-1 * max(16px, env(safe-area-inset-right, 0px))) 12px calc(-1 * max(16px, env(safe-area-inset-left, 0px))); border-top: 0; border-bottom: 2px solid var(--sodium); box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35); padding-top: 8px; padding-bottom: 8px; }
body.controls-top #app { padding-bottom: 120px; }   /* room to scroll clear of anything covering the bottom */

/* ---------- the morning, milestones ---------- */
.kv.recap { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; margin: 10px 0; font-size: 14px; }
.kv.recap span { color: var(--muted); font: 600 11px var(--f-mono); text-transform: uppercase; letter-spacing: .08em; padding-top: 3px; }
.kv.recap small.good { color: var(--good, #6fbf73); } .kv.recap small.bad { color: var(--bad, #e0745f); }
.milestones { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.milestones li { display: flex; justify-content: space-between; gap: 12px; color: var(--muted); }
.milestones li.got { color: var(--fg); } .milestones li.got b { color: var(--sodium); }

/* ---------- gauge tips ---------- */
.hud-top .g.stat-btn { padding: 2px 0; }
.hud-top .g.stat-btn.on { background: var(--slab-2); outline: 2px solid var(--sodium); outline-offset: -2px; }
.hud-tip { margin: 8px 0 0; padding: 8px 12px; border-radius: var(--r); background: var(--slab-2); border-left: 3px solid var(--sodium); font-size: 13px; line-height: 1.4; color: var(--fg); }
.hud-tip b { color: var(--sodium); margin-right: 4px; }
@media (hover: none) { .stat-btn:hover { background: none; outline: none; } .hud-top .g.stat-btn.on { background: var(--slab-2); outline: 2px solid var(--sodium); } }

/* ---------- new messages ---------- */
.new-msgs { margin: 4px 0 14px; padding: 10px; border-radius: var(--r); background: rgba(242, 163, 58, 0.06); border: 1px solid rgba(242, 163, 58, 0.35); }
.new-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.new-head .sub-h { margin: 0; color: var(--sodium); }
.new-msgs .msgs { max-height: none; }
.msg.unread { border-left-color: var(--sodium); background: #26333a; cursor: pointer; box-shadow: 0 0 0 1px rgba(242, 163, 58, 0.25); }
.msg.unread p { color: var(--fg); font-weight: 500; }
.msg.unread:focus-visible { outline: 2px solid var(--sodium); outline-offset: 2px; }
.new-pill { font-style: normal; font: 700 10px var(--f-mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--sodium-ink); background: var(--sodium); padding: 1px 5px; border-radius: 3px; }
.due-now { color: var(--sodium); font-weight: 600; }

/* ---------- portraits ---------- */
.portrait { display: block; width: 132px; height: 132px; object-fit: cover; border-radius: 10px; margin: 0 auto 12px; border: 2px solid var(--rule); box-shadow: 0 6px 18px rgba(0,0,0,.45); background: var(--slab-2); }

/* ---------- faces ---------- */
.face { position: relative; flex: none; display: inline-grid; place-items: center; border-radius: 50%; border: 2px solid var(--rule); background: var(--slab-2); }
.face img, .face .fi { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; object-position: 50% 30%; }
.face .fi { display: grid; place-items: center; font: 700 13px var(--f-mono); color: #fff; font-style: normal; }
.face-sm { width: 36px; height: 36px; } .face-sm .fi { font-size: 12px; }
.face-md { width: 46px; height: 46px; } .face-md .fi { font-size: 14px; }
.face-lg { width: 96px; height: 96px; } .face-lg .fi { font-size: 26px; }
.face.gold { border-color: #e8c04a; box-shadow: 0 0 0 2px rgba(232, 192, 74, 0.25); }
.face.red { border-color: var(--bad); box-shadow: 0 0 0 2px rgba(229, 96, 74, 0.25); }
.face.gone { filter: grayscale(1) brightness(0.7); }
.face .fb { position: absolute; right: -4px; bottom: -4px; font-style: normal; font-size: 12px; line-height: 1; background: var(--tarmac); border-radius: 50%; padding: 2px; }
.msg { display: grid; grid-template-columns: 36px 1fr; gap: 10px; align-items: start; }
.msg-body { min-width: 0; }
.order > .face { margin-right: 2px; }
.ro-who { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ro-who + small, .roster li > div:first-child small { display: block; }
.ro-who > small, .ro-who > button { flex-basis: 100%; }
.ro-who > .muted { flex: 1 1 140px; }
.roster li > div.ro-who { display: flex; }

/* ---------- conversations ---------- */
.scene-row { display: grid; grid-template-columns: 104px 1fr; gap: 14px; align-items: start; margin-top: 10px; }
.scene-who { display: grid; justify-items: center; gap: 6px; text-align: center; }
.scene-who b { font: 700 12px var(--f-mono); letter-spacing: .04em; color: var(--muted); }
.bubble { position: relative; background: var(--slab-2); border-radius: 4px 14px 14px 14px; padding: 10px 14px; border: 1px solid var(--rule); }
.bubble::before { content: ''; position: absolute; left: -8px; top: 14px; border: 8px solid transparent; border-right-color: var(--rule); border-left: 0; }
.scene-replies { display: grid; grid-template-columns: 1fr 46px; gap: 10px; align-items: end; margin-top: 14px; }
.scene-replies > .face { grid-column: 2; grid-row: 1; }
.scene-replies .choices { grid-column: 1; grid-row: 1; margin: 0; }
.btn.reply { border-radius: 14px 14px 4px 14px; text-align: left; }
.face.me { border-color: var(--sodium); }
@media (max-width: 480px) { .scene-row { grid-template-columns: 1fr; } .scene-who { grid-auto-flow: column; justify-content: start; align-items: center; } .scene-who .face-lg { width: 64px; height: 64px; } .bubble { border-radius: 14px; } .bubble::before { display: none; } }
.face-pick { display: grid; gap: 8px; } .face-opts { display: flex; flex-wrap: wrap; gap: 8px; }
.face-opt { appearance: none; padding: 0; border: 2px solid var(--rule); border-radius: 50%; width: 64px; height: 64px; overflow: hidden; cursor: pointer; background: none; }
.face-opt img { width: 100%; height: 100%; object-fit: cover; } .face-opt.on { border-color: var(--sodium); box-shadow: 0 0 0 3px rgba(242, 163, 58, .3); }
.bench-who { display: flex; gap: 10px; align-items: center; }
/* Round faces zoom in on the face, which also keeps the portraits' name labels out of the circle. */
.face img, .face-opt img { transform: scale(1.6); transform-origin: 50% 52%; }
.face, .face-opt { overflow: hidden; }
.face .fb { z-index: 1; }

/* your face, in the top bar and in the paper */
@media (min-width: 761px) { .tb-who { display: inline-flex; align-items: center; gap: 8px; } }
.tb-who .face-sm { width: 28px; height: 28px; }
.paper-photo { margin: 0 0 12px; }
.paper-photo .ph { width: 60%; max-width: 180px; aspect-ratio: 4 / 5; overflow: hidden; border: 1px solid #222; }
.paper-photo img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.6); transform-origin: 50% 50%; filter: grayscale(1) contrast(1.35) brightness(1.05); }
.paper-photo figcaption { font: italic 11px var(--f-mast, Georgia, serif); color: #333; margin-top: 3px; }
.top-menu .tm-who { display: flex; align-items: center; gap: 10px; }
.face-link { appearance: none; background: none; border: 0; padding: 0; margin: 0; cursor: pointer; border-radius: 50%; line-height: 0; flex: none; }
.face-link:focus-visible { outline: 2px solid var(--sodium); outline-offset: 2px; }
@media (hover: hover) and (pointer: fine) { .face-link:hover .face { border-color: var(--sodium); } }

/* ---------- area scenes: a two-colour picture strip with the area's sign on it ---------- */
.place.has-scene { position: relative; isolation: isolate; padding-top: 96px; }
.scene-strip { position: absolute; left: calc(-1 * max(16px, env(safe-area-inset-left, 0px))); right: calc(-1 * max(16px, env(safe-area-inset-right, 0px))); top: 0; height: 150px; z-index: -1; opacity: .9; pointer-events: none; background-size: cover; background-position: center 40%; }
.scene-strip::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(16, 21, 24, 0) 55%, var(--tarmac) 100%); }
.place.has-scene .sign { box-shadow: 0 6px 18px rgba(0, 0, 0, .55); }
/* The picture runs up behind a see-through top bar. */
.topbar.over-scene { background: rgba(16, 21, 24, 0.5); box-shadow: none; transition: background .25s; }
.topbar.over-scene.scrolled { background: rgba(16, 21, 24, 0.96); box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35); }
@media (max-width: 760px) {
  .place.has-scene { padding-top: 40px; }
  .place.has-scene .scene-strip { top: -72px; height: 210px; }
  /* Half the width, same proportions: everything on the sign scaled down together. */
  .place.has-scene .sign { width: 50%; min-width: 0; border-width: 2px; outline-width: 2px; outline-offset: 0; border-radius: 5px; padding: 4px 9px 5px; }
  .place.has-scene .sign .ga { font-size: 9px; }
  .place.has-scene .sign .en { font-size: 15px; letter-spacing: 0.03em; }
}
@media (min-width: 761px) {
  .place.has-scene { padding-top: 150px; }
  .scene-strip { left: 0; right: 0; height: 240px; border-radius: 10px 10px 0 0; }
  .place.has-scene .place-desc { text-shadow: 0 1px 3px rgba(0, 0, 0, .9); }
}

/* ---------- the person behind the counter ---------- */
.shop-host { display: grid; grid-template-columns: 76px 1fr; gap: 12px; align-items: start; margin: 0 28px 12px 0; }
.shop-host .face-lg { width: 76px; height: 76px; }
.sh-who { display: grid; gap: 6px; min-width: 0; padding-top: 4px; }
.sh-who > b .namelink { font: 700 13px var(--f-mono); letter-spacing: .04em; color: var(--sodium); }
.sh-said { margin: 0; font-size: 13.5px; padding: 8px 12px; }
.sh-said.bad { border-color: rgba(229, 96, 74, .5); }
.sh-said.good { border-color: rgba(108, 194, 138, .45); }

/* ---------- illustrated shopfronts (layout A: two across, trimmed to 4:3) ---------- */
.bldg.has-art { background-size: cover; background-position: center; display: block; aspect-ratio: 4 / 3; border-radius: 12px; }
.bldg.has-art .art-name { position: absolute; left: 0; right: 0; bottom: 0; padding: 14px 8px 6px; font: 700 11px var(--f-mono); letter-spacing: .04em; color: #fff; text-align: left; background: linear-gradient(180deg, transparent, rgba(0, 0, 0, .8)); }
/* Drawn buildings (To let, anything without art) match the shopfronts' shape. */
.street .fronts .bldg:not(.has-art) { aspect-ratio: 4 / 3; border-radius: 12px; }
.street .fronts .bldg:not(.has-art) .shop-sign { margin-top: 16px; }
.street .fronts .bldg:not(.has-art) .windows { margin-bottom: 6%; }

/* ---------- the hubs ---------- */
.tabs { display: block; }
.hubs { display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); gap: 6px; }
.hub { appearance: none; position: relative; display: grid; justify-items: center; gap: 2px; padding: 8px 2px 7px; border-radius: 12px; border: 1px solid var(--rule); background: var(--slab); color: var(--fg); font: 800 12px var(--f-display); letter-spacing: .06em; text-transform: uppercase; cursor: pointer; -webkit-tap-highlight-color: transparent; min-width: 0; }
.hub i { display: block; width: 24px; height: 24px; color: var(--sodium); }
.hub i svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.hub.on { background: var(--sodium); color: var(--sodium-ink); border-color: var(--sodium); }
.hub.on i { color: var(--sodium-ink); }
.hub:focus-visible, .hsub:focus-visible { outline: 2px solid var(--sodium); outline-offset: 2px; }
.hub .hb { position: absolute; top: -6px; right: -3px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--bad); color: #fff; font: 700 11px/18px var(--f-mono); }
.hub .hb.new { background: var(--good); }
.subs { display: flex; gap: 4px; margin: 8px 0 0; padding: 3px; border-radius: 10px; background: var(--slab); border: 1px solid var(--rule); overflow-x: auto; scrollbar-width: none; }
.hsub { appearance: none; border: 0; background: none; flex: 1 0 auto; padding: 5px 10px; border-radius: 7px; color: var(--muted); font: 700 12px var(--f-display); letter-spacing: .05em; text-transform: uppercase; white-space: nowrap; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.hsub.on { background: var(--slab-2); color: var(--fg); box-shadow: inset 0 -2px 0 var(--sodium); }
.hsub b { display: inline-block; margin-left: 5px; min-width: 16px; padding: 0 4px; border-radius: 8px; background: var(--bad); color: #fff; font: 700 10px/16px var(--f-mono); vertical-align: 1px; }
.hsub b.soft { background: var(--slab-2); color: var(--fg); border: 1px solid var(--rule); }
.hsub b.new { background: var(--good); }
@media (hover: hover) and (pointer: fine) { .hub:not(.on):hover { border-color: var(--sodium); } .hsub:not(.on):hover { color: var(--fg); } }
.supplier-strip { display: flex; align-items: center; gap: 12px; margin: 0 0 10px; padding: 8px 12px; border-radius: var(--r); background: var(--slab); border: 1px solid var(--rule); }
.supplier-strip b .namelink { font: 700 13px var(--f-mono); color: var(--sodium); }
.supplier-strip small { display: block; color: var(--muted); font-size: 12.5px; }

/* A customer's answer to an order button: their face and their words, over the bottom of the screen. */
.say-pop { position: fixed; left: 50%; bottom: calc(84px + env(safe-area-inset-bottom, 0px)); width: min(440px, calc(100% - 24px)); transform: translate(-50%, 24px); opacity: 0; pointer-events: none; z-index: 31; display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: center; background: var(--slab-2); border: 1px solid var(--rule); border-left-width: 4px; border-radius: 14px; padding: 12px 14px; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5); transition: opacity 0.22s, transform 0.22s; cursor: pointer; }
.say-pop.show { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.say-pop.good { border-color: var(--good); }
.say-pop.bad { border-color: var(--bad); }
.say-pop .face-lg { width: 64px; height: 64px; }
.say-pop .rp-body b { display: block; font-size: 13px; letter-spacing: 0.02em; color: var(--muted, #9aa); }
.say-pop .rp-body p { margin: 2px 0 0; font-size: 15px; line-height: 1.35; color: var(--fg); }
.say-pop .rp-body small { display: block; margin-top: 6px; font-size: 12px; color: var(--muted, #9aa); }
.say-pop.good .rp-body small { color: var(--good); }
.say-pop.bad .rp-body small { color: var(--bad); }
.say-pop.ma { border-color: #e58fb5; }
.say-pop.ma .rp-body small { color: #e58fb5; }
.say-pop.tip { border-color: #5aa9e6; }
.say-pop.tip .rp-body small { color: #5aa9e6; }

/* The burner, tinted by what each message is: a faint wash and a matching edge. */
.msg.k-tip { --kc: #5aa9e6; }
.msg.k-cust { --kc: #5fbf7f; }
.msg.k-rumour { --kc: #d9b84a; }
.msg.k-family { --kc: #e58fb5; }
.msg.k-threat { --kc: #e0625a; }
.msg.k-news { --kc: #7d8b90; }
.msg[class*=" k-"] { border-left-color: var(--kc); background-image: linear-gradient(90deg, color-mix(in srgb, var(--kc) 16%, transparent), color-mix(in srgb, var(--kc) 5%, transparent)); }
.msg[class*=" k-"] .meta b { color: var(--kc); }
.msg.unread[class*=" k-"] { border-left-width: 5px; }
.burner-key { display: flex; flex-wrap: wrap; gap: 4px 10px; margin: 0 0 8px; font-size: 11px; font-family: var(--f-mono); color: var(--muted); }
.burner-key i { display: inline-block; width: 8px; height: 8px; border-radius: 2px; margin-right: 4px; vertical-align: 0; background: var(--kc); }
:root { --k-tip: #5aa9e6; --k-cust: #5fbf7f; --k-rumour: #d9b84a; --k-family: #e58fb5; --k-threat: #e0625a; --k-news: #7d8b90; }
.stockup { margin: 0 0 10px; padding: 8px 11px; border-left: 3px solid var(--k-tip); background: color-mix(in srgb, var(--k-tip) 12%, transparent); border-radius: 8px; font-size: 13px; line-height: 1.4; }
/* Days where two known events stack. */
.cal-cell { position: relative; }
.cal-cell.stack { border-color: color-mix(in srgb, var(--k-event) 70%, var(--rule)); background: color-mix(in srgb, var(--k-event) 14%, var(--slab-2)); }
.cal-x { display: inline-block; font: 800 10px/1 var(--f-mono); color: #111; background: var(--k-event); border-radius: 4px; padding: 2px 4px; }
.cal-cell .cal-x { position: absolute; top: 3px; right: 3px; }
.cal-legend .cal-x { margin-right: 2px; }
.cal-stack { margin: 0 0 10px; padding: 8px 10px; border-left: 3px solid var(--k-event); background: color-mix(in srgb, var(--k-event) 12%, transparent); border-radius: 6px; font-size: 13px; line-height: 1.4; }
.post-opts { display: grid; gap: 6px; margin: 8px 0; }
.post-opt { display: flex; gap: 8px; align-items: flex-start; padding: 8px 10px; border: 1px solid var(--rule); border-radius: 8px; background: var(--slab-2); font-size: 13px; cursor: pointer; }
.post-opt small { display: block; color: var(--muted); font-size: 11.5px; margin-top: 2px; }
.post-opt:has(input:checked) { border-color: var(--sodium); }
/* Grow tent */
.grow-row { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 8px; }
.grow-stage { display: grid; grid-template-columns: auto auto 1fr; gap: 8px; align-items: center; margin-bottom: 4px; }
.grow-stage b { font-family: var(--f-display); text-transform: uppercase; letter-spacing: 0.03em; }
/* Production sites */
.site { display: grid; gap: 8px; padding: 10px 0; }
.site + .site { border-top: 1px solid var(--rule); }
.site-opts { display: grid; gap: 10px; }
.site-opts > div { display: grid; gap: 4px; padding: 8px 10px; border: 1px solid var(--rule); border-radius: 8px; background: var(--slab-2); }
.site-opts small { color: var(--muted); font-size: 12px; line-height: 1.4; }
.site-opts .btn { justify-self: start; }
.cook { margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--rule); display: grid; gap: 6px; }
/* Word on the street: a drug you can't get yet */
.row.tease { padding-left: 10px; padding-right: 6px; border-left: 3px solid var(--k-rumour); background: color-mix(in srgb, var(--k-rumour) 8%, transparent); }
.tease-pill { background: color-mix(in srgb, var(--k-rumour) 25%, transparent); color: var(--k-rumour); border: 1px solid color-mix(in srgb, var(--k-rumour) 60%, transparent); }
.body-line { margin: 4px 0 10px; font-size: 13px; color: var(--fg); border-left: 3px solid var(--bad); padding-left: 8px; }
/* Redrawn portraits have no name label to hide, and less headroom: a lighter zoom. */
.face.clean img { transform: scale(1.12); transform-origin: 50% 40%; }
.face.framed img, .face-opt.framed img { transform: scale(1.32); transform-origin: 50% 34%; }
/* Where are you from: the homes before Who are you? */
.homes .build h2 { font-size: 30px; }
.homes .build .flag { font-size: 26px; }
.from-line { margin: 4px 0 0; font-weight: 600; display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; }

/* Pockets: one item per line, its blurb under it, and the stash button under that */
.baglist.items li { margin-bottom: 10px; }
.baglist.items .item-blurb { display: block; margin: 2px 0 6px; line-height: 1.4; }
.st-items { margin-top: 8px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }

/* The helplines card: before the story, and in the menu. Compact, and every number is a tap-to-call link. */
.helplines { list-style: none; padding: 0; margin: 10px 0; display: grid; gap: 6px; }
.helplines li { display: grid; gap: 1px; padding: 7px 10px; border: 1px solid var(--line, rgba(255,255,255,.12)); border-radius: 8px; font-size: 14px; line-height: 1.3; }
.helplines .hl-num { font-weight: 700; color: var(--sodium); font-size: 15px; }
.helplines .hl-num a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.helplines small { opacity: .75; font-size: 12px; }

/* ---------- tester reports ---------- */
.report-note { display: block; width: 100%; box-sizing: border-box; margin: 8px 0; background: var(--tarmac); color: var(--fg); border: 1px solid var(--rule); border-radius: var(--r); padding: 8px 10px; font: 16px/1.4 var(--f-body); resize: vertical; }
#report-all { font: 12px/1.4 var(--f-mono); }

/* Drug names you can tap for the drug's profile card (js/drugcards.js). */
.dlink { cursor: pointer; text-decoration: underline dotted rgba(242, 163, 58, 0.6); text-underline-offset: 3px; }
.dc-aka { font-size: 14px; color: var(--muted); margin-top: -4px; }
.dc-aka b { color: var(--fg); font-weight: 600; }
.dc-h { font: 700 12px var(--f-mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--sodium); margin: 14px 0 6px; }
.harm { margin: 4px 0 8px; }
.hbar { display: grid; grid-template-columns: 9.5em 1fr 2em; align-items: center; gap: 8px; font-size: 13px; margin: 4px 0; }
.hbar i { display: block; height: 8px; border-radius: 4px; background: var(--sodium); }
.hbar.alc i { background: rgba(242, 163, 58, 0.35); }
.hbar b { font: 700 13px var(--f-mono); text-align: right; }

/* Where are you from? A line map of these islands, a flag on every home (renderFrom in game.js). */
.isles { margin: 4px 0 12px; }
.isles svg { width: 100%; height: 50vh; display: block; }
.isles.us svg { height: auto; max-height: 50vh; }
.isles .borders { fill: none; stroke: var(--muted); stroke-width: 0.5; stroke-dasharray: 2 2; opacity: 0.5; }
.isles .coast { fill: none; stroke: var(--muted); stroke-width: 0.9; stroke-linejoin: round; opacity: 0.85; }
.hpin { cursor: pointer; }
.hpin .hit { fill: transparent; }
.hpin .hflag { font-size: 12px; }
.hpin .hname { font: 600 8px var(--f-mono); fill: var(--fg); letter-spacing: 0.04em; text-transform: uppercase; paint-order: stroke; stroke: var(--bg, #111); stroke-width: 2.5px; }
.hpin .ring { fill: rgba(242, 163, 58, 0.18); stroke: var(--sodium); stroke-width: 1.2; }
.hpin.on .hname { fill: var(--sodium); }
.home-peek .btn { margin-top: 10px; width: 100%; }
.home-groups { display: grid; gap: 10px; margin: 6px 0 12px; }
.home-group h3 { font: 700 11px var(--f-mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin: 0 0 6px; }
.home-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.home-chip { font: 600 13px var(--f-mono); letter-spacing: 0.04em; text-transform: uppercase; padding: 8px 10px; min-height: 40px; border-radius: 6px; border: 1px solid var(--rule); background: transparent; color: var(--fg); cursor: pointer; }
.home-chip.on { border-color: var(--sodium); color: var(--sodium); background: rgba(242, 163, 58, 0.12); }
.home-hint { color: var(--muted); font-style: italic; margin: 8px 0 14px; }

/* Getting out (js/wayout.js) */
.wayout b { color: var(--sodium); }
.scores.gotout h3 { color: var(--sodium); }
.gotout-note { font: 600 14px var(--f-mono); letter-spacing: 0.04em; color: var(--sodium); margin: -6px 0 14px; }

/* ---------- the desktop layout (js: deskMode, from 1,000px): phone | play | the city ---------- */
@media (min-width: 1000px) {
  body.desk #app { max-width: 1720px; }
  .desk-grid { display: grid; grid-template-columns: 300px minmax(0, 1fr) 400px; gap: 18px; align-items: start; margin-top: 14px; }
  .desk-grid.no-right { grid-template-columns: 300px minmax(0, 1fr); }
  body.desk .stats.hud-top { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  body.desk .hud-top .money-row { padding-right: 0; border-right: 0; padding-bottom: 12px; border-bottom: 1px solid var(--rule); }
  .desk-mid { min-width: 0; }
  .desk-col { position: sticky; top: calc(var(--tbh, 72px) + 10px); max-height: calc(100vh - var(--tbh, 72px) - var(--abh, 80px) - 28px); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; display: grid; gap: 12px; align-content: start; }
  .desk-subs { display: flex; gap: 4px; position: sticky; top: 0; z-index: 2; background: var(--tarmac); padding-bottom: 6px; }
  .desk-subs .hsub { flex: 1; }
  .desk-col .card { margin: 0; }
  .desk-right .mapwrap { overflow-x: auto; }
  body.desk .desk-mid .place { margin-top: 0; }
  body.desk .actionbar { padding-left: calc(max(16px, (100vw - 1720px) / 2) + 318px); padding-right: calc(max(16px, (100vw - 1720px) / 2) + 418px); }
}
@media (min-width: 1600px) {
  .desk-grid { grid-template-columns: 340px minmax(0, 1fr) 560px; }
  .desk-grid.no-right { grid-template-columns: 340px minmax(0, 1fr); }
  body.desk .actionbar { padding-left: calc(max(16px, (100vw - 1720px) / 2) + 358px); padding-right: calc(max(16px, (100vw - 1720px) / 2) + 578px); }
  .desk-right .mapwrap svg { width: 100%; min-width: 0; }
}
@media (min-width: 1000px) and (max-width: 1279px) {
  .desk-grid { grid-template-columns: 300px minmax(0, 1fr); }
  .desk-grid .desk-right { grid-column: 1 / -1; position: static; max-height: none; }
  body.desk .actionbar { padding-left: 334px; padding-right: 16px; }
}
@media (min-width: 1000px) {
  body.desk .desk-mid .row:not(.locked) { grid-template-columns: minmax(110px, 1fr) 96px 80px 80px; }
  body.desk .desk-mid .dessie .row:not(.locked) { grid-template-columns: minmax(110px, 1fr) 80px; }
  body.desk .desk-mid .row .trade { grid-column: 1 / -1; justify-content: flex-end; flex-wrap: nowrap; }
}

/* ---------- tours (js/tour.js): everything dims but the bit being explained ---------- */
#tour-root { position: fixed; inset: 0; z-index: 60; }
#tour-root .tour-hole { position: fixed; border-radius: 10px; box-shadow: 0 0 0 200vmax rgba(6, 8, 10, 0.74); outline: 2px solid var(--sodium); transition: top 0.18s ease, left 0.18s ease, width 0.18s ease, height 0.18s ease; pointer-events: none; }
#tour-root .tour-card { position: fixed; background: var(--slab); border: 1px solid var(--rule); border-top: 3px solid var(--sodium); border-radius: var(--r); padding: 14px 16px 12px; display: grid; gap: 10px; box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5); }
#tour-root .tour-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
#tour-root .tour-head b { font-family: var(--f-display); font-size: 20px; text-transform: uppercase; letter-spacing: 0.02em; }
#tour-root .tour-n { font: 600 11px var(--f-mono); color: var(--muted); letter-spacing: 0.1em; text-transform: uppercase; white-space: nowrap; }
#tour-root .tour-btns { display: flex; gap: 8px; align-items: center; }
#tour-root .tour-gap { flex: 1; }
@media (prefers-reduced-motion: reduce) { #tour-root .tour-hole { transition: none; } }
html.tour-lock { overflow: hidden; overscroll-behavior: none; }
html.tour-lock .desk-col { overflow: hidden; }
.ptable td.age small { display: block; font-size: 11px; }
/* iPhone Safari zooms in on any text box under 16px when you tap it, and doesn't zoom back. 16px on touch screens stops it. */
@media (pointer: coarse) { input, select, textarea { font-size: 16px !important; } }
/* The T (USA branch, js/usa.js) */
:root { --line-tred: #da291c; --line-torange: #ed8b00; --line-tblue: #003da5; --line-tgreen: #00843d; --line-tsilver: #7c878e; }
.mline.tred, .mline.tmattapan { stroke: var(--line-tred); stroke-width: 8; } .mline.tmattapan { stroke-width: 5; stroke-dasharray: 10 6; }
.mline.torange { stroke: var(--line-torange); stroke-width: 8; } .mline.tblue { stroke: var(--line-tblue); stroke-width: 8; }
.mline.tgreen { stroke: var(--line-tgreen); stroke-width: 8; } .mline.tsilver, .mline.tsilver2 { stroke: var(--line-tsilver); stroke-width: 6; }
.sw.tred, .sw.tmattapan { background: var(--line-tred); } .sw.torange { background: var(--line-torange); } .sw.tblue { background: var(--line-tblue); } .sw.tgreen { background: var(--line-tgreen); } .sw.tsilver { background: var(--line-tsilver); }

/* Line colours for the US and Australian city maps (each line's id is its class). Real colours where a line has one. */
.mline { stroke: var(--line-bus, #8a8f98); }   /* a line with no colour of its own still shows */
.sw { background: #8a8f98; }
.mline.ny7 { stroke: #b933ad; } .mline.nynw, .mline.nyq { stroke: #fccc0a; } .mline.ny456 { stroke: #00933c; } .mline.nya { stroke: #0039a6; } .mline.nyl { stroke: #a7a9ac; } .mline.ny3 { stroke: #ee352e; }
.mline.nyq { stroke-width: 6; } .mline.nyferry { stroke: #f58220; stroke-width: 5; stroke-dasharray: 10 8; }
.sw.ny7 { background: #b933ad; } .sw.nynw, .sw.nyq { background: #fccc0a; } .sw.ny456 { background: #00933c; } .sw.nya { background: #0039a6; } .sw.nyl { background: #a7a9ac; } .sw.ny3 { background: #ee352e; } .sw.nyferry { background: #f58220; }
.mline.phmfl { stroke: #0076c0; } .mline.phbsl { stroke: #f58220; } .mline.phtrolley { stroke: #5a9a3c; } .mline.phrail { stroke: #6b7a8f; stroke-width: 6; } .mline.phpatco { stroke: #d7182a; stroke-width: 6; } .mline.ph15 { stroke: #5a9a3c; stroke-width: 5; stroke-dasharray: 10 6; }
.sw.phmfl { background: #0076c0; } .sw.phbsl { background: #f58220; } .sw.phtrolley, .sw.ph15 { background: #5a9a3c; } .sw.phrail { background: #6b7a8f; } .sw.phpatco { background: #d7182a; }
.mline.bmlight { stroke: #1f6fb2; } .mline.bmmetro { stroke: #3fa535; } .mline.bmorange { stroke: #f7941d; stroke-width: 6; } .mline.bmwater { stroke: #00a0b0; stroke-width: 5; stroke-dasharray: 10 8; } .mline.bmbus { stroke: #8a8f98; stroke-width: 5; stroke-dasharray: 2 12; }
.sw.bmlight { background: #1f6fb2; } .sw.bmmetro { background: #3fa535; } .sw.bmorange { background: #f7941d; } .sw.bmwater { background: #00a0b0; } .sw.bmbus { background: #8a8f98; }
.mline.mirail { stroke: #00a651; } .mline.mimover { stroke: #0072bc; stroke-width: 6; } .mline.mi8, .mline.micause { stroke: #8a8f98; stroke-width: 5; stroke-dasharray: 2 12; } .mline.mius1 { stroke: #c8102e; stroke-width: 5; stroke-dasharray: 10 8; }
.sw.mirail { background: #00a651; } .sw.mimover { background: #0072bc; } .sw.mi8, .sw.micause { background: #8a8f98; } .sw.mius1 { background: #c8102e; }
.mline.syt1 { stroke: #f99d1c; } .mline.syt2 { stroke: #0098cd; } .mline.syt4, .mline.syt4c { stroke: #005aa3; } .mline.sybus { stroke: #8a8f98; stroke-width: 5; stroke-dasharray: 2 12; } .mline.syferry { stroke: #00774b; stroke-width: 5; stroke-dasharray: 10 8; }
.sw.syt1 { background: #f99d1c; } .sw.syt2 { background: #0098cd; } .sw.syt4, .sw.syt4c { background: #005aa3; } .sw.sybus { background: #8a8f98; } .sw.syferry { background: #00774b; }
.mline.mlsun, .mline.mlpak { stroke: #16b4e8; } .mline.mlcraig { stroke: #ffbe00; } .mline.mlfrank { stroke: #159943; } .mline.mlsand { stroke: #f178af; } .mline.mltram96, .mline.mltram86, .mline.mltram1 { stroke: #78be20; stroke-width: 5; }
.sw.mlsun, .sw.mlpak { background: #16b4e8; } .sw.mlcraig { background: #ffbe00; } .sw.mlfrank { background: #159943; } .sw.mlsand { background: #f178af; } .sw.mltram96, .sw.mltram86, .sw.mltram1 { background: #78be20; }
.mline.blgrab { stroke: #00b14f; stroke-width: 6; } .mline.blbypass { stroke: #8a8f98; stroke-width: 7; } .mline.blbukit, .mline.blubud { stroke: #8a8f98; stroke-width: 5; stroke-dasharray: 10 8; }
.sw.blgrab { background: #00b14f; } .sw.blbypass, .sw.blbukit, .sw.blubud { background: #8a8f98; }
.mline.bkbts { stroke: #7fbb3f; } .mline.bkmrt, .mline.bkmrt2 { stroke: #1e4f9c; } .mline.bkboat { stroke: #f39c12; stroke-width: 5; stroke-dasharray: 10 8; } .mline.bkbus { stroke: #8a8f98; stroke-width: 5; stroke-dasharray: 2 12; }
.sw.bkbts { background: #7fbb3f; } .sw.bkmrt { background: #1e4f9c; } .sw.bkboat { background: #f39c12; } .sw.bkbus { background: #8a8f98; }
