:root { /* the Bureau, cold (late Oct 2026, the user's: the agency look, "not red: something dark and cold"); theme.css adds its details */
  --bg: #07090c; --panel: #0e1217; --panel2: #151a21; --line: #252c35;
  --text: #dde4ea; --muted: #7f8a96; --accent: #a2d7cf; --accent-ink: #061018; --frost: #e2f4ef;
  --ice: #9cc9e6; --mint: #a8e6b8; --accent-grad: linear-gradient(100deg, var(--ice), var(--mint)); /* the user's: light blue and light green, mixed */
  --external: #38c2ff; --mental: #b585ff; --physical: #ff6d4d;
  --good: #4ade80; --bad: #f87171; --warn: #e8b04a; --shield: #d6e4f5; /* a shield, after the health in its bar and ring (2026-10-30) */
  --r: 14px; /* round edges (the user's) */
  --display: 'Oswald', 'Arial Narrow', sans-serif;
  --font-body: 'Barlow', system-ui, sans-serif; --font-label: 'IBM Plex Mono', ui-monospace, monospace; --font-chip: var(--font-label);
  --btn-r: 10px; --chip-r: 999px; --tile-r: 12px; --hud-r: 16px; --hud-edge: #252c35; --hud-bg: #090c10f5;
  --chrome: #080a0e; --chrome-edge: #1c222a;
  --card-bg: linear-gradient(180deg, #10141a, #0c0f13);
  --card-shadow: 0 1px 0 #ffffff08 inset;
  --btn-bg: #151a21; --btn-edge: #323b46; --btn-tt: uppercase; --btn-ls: .06em;
  --primary-bg: var(--accent-grad); --primary-glow: 0 4px 16px #a2d7cf29; /* a soft glow: the square look's hard offset shadow made a primary button sit out of line with the one beside it */
  --tile-bg: #141920; --tile-edge: #2c343f;
  --bg-img: repeating-linear-gradient(0deg, #ffffff04 0 1px, #0000 1px 4px);
  color-scheme: dark;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }

/* ---------- app shell: desktop = top / nav · main · chat ---------- */
body {
  margin: 0; height: 100dvh; overflow: hidden;
  display: grid;
  grid-template: "top top top" auto "nav main chat" 1fr / 190px minmax(0, 1fr) 320px;
  font: var(--body-size, 15px)/1.45 var(--font-body, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif);
  background: var(--bg-img, none), var(--bg); color: var(--text);
  transition: background .6s;
}
body.night { --bg: #080a10; }
body.out { grid-template: "main" 1fr / minmax(0, 1fr); }
body.out .game-chrome { display: none; }

h1, h2, h3 { margin: 0; line-height: 1.2; }
h1 { font-size: 1.5rem; } h2 { font-size: 1.1rem; } h3 { font-size: 1rem; }
h1 small { font-size: .9rem; font-weight: 400; }
p { margin: 0; }
a { color: inherit; }
small, .muted { color: var(--muted); }
ul, ol { list-style: none; margin: 0; padding: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.topbar {
  grid-area: top; display: flex; align-items: center; gap: 8px;
  padding: 8px 12px; padding-top: max(8px, env(safe-area-inset-top));
  background: var(--chrome, var(--panel)); border-bottom: 1px solid var(--chrome-edge, var(--line));
}
.logo { font-weight: 900; letter-spacing: .04em; text-decoration: none; color: var(--accent); }
.online-count { margin-right: auto; font-size: .8rem; color: var(--muted); white-space: nowrap; }
.logo span { color: var(--text); font-weight: 400; }
.topbar .me { display: flex; align-items: center; gap: 8px; text-decoration: none; min-width: 0; }
.me-text { display: grid; gap: 3px; min-width: 80px; }
.avatar {
  display: grid; place-items: center; flex: none;
  width: 36px; height: 36px; border-radius: 50%; font-size: 20px;
  background: var(--panel2); border: 2px solid var(--accent);
}
.pill {
  display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px; white-space: nowrap;
  border-radius: var(--chip-r, 999px); background: var(--panel2); border: 1px solid var(--line); color: inherit; font: inherit; font-size: .9rem;
}
.chat-btn, .btn.chat-close { display: none; cursor: pointer; }

.sidenav {
  grid-area: nav; display: flex; flex-direction: column; gap: 4px; padding: 12px 8px;
  background: var(--chrome, var(--panel)); border-right: 1px solid var(--chrome-edge, var(--line));
}
.sidenav a, .sidenav button {
  display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 8px 12px;
  border-radius: var(--btn-r, 10px); text-decoration: none; color: var(--muted);
}
.sidenav a .i, .sidenav button .i { width: 20px; height: 20px; flex: none; }
.sidenav button { width: 100%; border: 0; background: none; font: inherit; text-align: left; cursor: pointer; }
.sidenav a:hover, .sidenav button:hover { background: var(--panel2); color: var(--text); }
.sidenav a[aria-current] { background: var(--panel2); color: var(--accent); }

main { grid-area: main; overflow-y: auto; padding: 16px; container-type: inline-size; }
.screen { display: grid; gap: 14px; align-content: start; max-width: 1100px; margin: 0 auto; scroll-margin: 16px; }

.chat { grid-area: chat; display: flex; flex-direction: column; gap: 8px; padding: 8px; background: var(--chrome, var(--panel)); border-left: 1px solid var(--chrome-edge, var(--line)); min-height: 0; }
.msgs { flex: 1; overflow-y: auto; display: grid; gap: 8px; align-content: end; padding: 4px; font-size: .9rem; }
.msgs .sys { color: var(--muted); font-size: .8rem; }
.msgs .chat-kept-head { display: flex; align-items: center; gap: 6px; padding-bottom: 4px; border-bottom: 1px dashed var(--line); } .msgs .chat-kept-head .i { width: 14px; height: 14px; }
.msgs li.kept { opacity: .6; } .msgs li.kept + li:not(.kept) { margin-top: 6px; padding-top: 8px; border-top: 1px solid var(--line); } /* restored from this browser: dimmed; the first new one ruled off */
.chat-input { display: flex; gap: 6px; }

/* tablet: chat becomes a drawer */
@media (max-width: 1199px) {
  body { grid-template: "top top" auto "nav main" 1fr / 190px minmax(0, 1fr); }
  .chat {
    position: fixed; inset: 0 0 0 auto; z-index: 30; width: min(340px, 88vw);
    transform: translateX(100%); transition: transform .2s; box-shadow: -10px 0 30px #0009;
  }
  body.chat-open .chat { transform: none; }
  .chat-btn, .btn.chat-close { display: inline-flex; }
  .chat-close { margin-left: 0; }
}
/* phone: bottom tab bar */
@media (max-width: 719px) {
  body { grid-template: "top" auto "main" 1fr "nav" auto / minmax(0, 1fr); font-size: 14px; }
  .logo, .online-count { display: none; }
  .topbar .me { margin-right: auto; }
  .sidenav {
    flex-direction: row; gap: 0; padding: 4px 4px max(4px, env(safe-area-inset-bottom));
    border-right: 0; border-top: 1px solid var(--line);
  }
  .sidenav a { flex: 1; flex-direction: column; gap: 0; padding: 4px 0; font-size: 11px; }
  main { padding: 12px; }
}
@media (max-width: 479px) { .me-text .bar, #top-energy small, #top-pts small { display: none; } .me-text { min-width: 0; } .me-text b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } } /* the cash stays: you need it in the shop */
@media (max-width: 719px) { .topbar .pill, .sound-btn { min-height: 34px; } .topbar { gap: 6px; } .topbar .pill { padding: 4px 8px; } }

/* ---------- components ---------- */
.card { display: grid; gap: 10px; align-content: start; padding: 14px; background: var(--card-bg, var(--panel)); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--card-shadow, none); }
.stack { display: grid; gap: 14px; align-content: start; }
.row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.between { justify-content: space-between; }
.end { justify-content: flex-end; }
.grid { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(min(var(--min, 200px), 100%), 1fr)); }
.list { display: grid; gap: 8px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 16px; border-radius: var(--btn-r, 10px); cursor: pointer;
  border: 1px solid var(--btn-edge, var(--line)); background: var(--btn-bg, var(--panel2)); color: var(--text);
  font: inherit; font-family: var(--font-btn, inherit); font-weight: 600; text-decoration: none; letter-spacing: var(--btn-ls, normal); text-transform: var(--btn-tt, none);
}
.btn:hover:not(:disabled) { border-color: var(--muted); }
.btn:disabled { opacity: .4; cursor: not-allowed; }
.btn.sm { min-height: 36px; padding: 0 12px; font-size: .85rem; }
.btn.primary { background: var(--primary-bg, var(--accent)); color: var(--accent-ink, var(--accent-ink)); border-color: transparent; box-shadow: var(--primary-glow, none); }
.btn.ghost { background: transparent; }
.btn[aria-pressed="true"] { border-color: var(--accent); color: var(--accent); }

.bar { display: block; height: 6px; border-radius: 99px; background: #ffffff14; overflow: hidden; }
.bar > i { display: block; height: 100%; width: calc(var(--v, 0) * 1%); background: var(--c, var(--good)); border-radius: inherit; transition: width .3s; }
.tags { display: flex; flex-wrap: wrap; gap: 4px; }
.tag { font-size: .72rem; padding: 2px 8px; border-radius: var(--chip-r, 999px); font-family: var(--font-chip, inherit); background: var(--panel2); border: 1px solid var(--line); color: var(--muted); white-space: nowrap; }
.badge { font-size: .75rem; padding: 2px 8px; border-radius: 6px; background: #a2d7cf22; color: var(--accent); white-space: nowrap; }
.badge.ai { background: #38c2ff22; color: var(--external); }
.code { font: 700 .7rem/1 ui-monospace, monospace; padding: 4px 5px; border-radius: 4px; background: var(--panel2); border: 1px solid var(--line); }
.external { --c: var(--external); } .mental { --c: var(--mental); } .physical { --c: var(--physical); }

input, select {
  width: 100%; min-height: 44px; padding: 0 12px; border-radius: 10px;
  font: inherit; color: inherit; background: var(--panel2); border: 1px solid var(--line);
}
label { display: grid; gap: 4px; }
.bond-bonus { display: flex; align-items: baseline; gap: 10px; width: max-content; max-width: 100%; margin-top: 8px; padding: 7px 14px; border: 1px solid var(--line); border-radius: 10px; background: #ffffff06; } /* what the bond gives a hired NPC beside you (2026-11-02) */
.bond-bonus .bs-h { display: inline-flex; align-items: center; gap: 6px; font-size: .7rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); } .bond-bonus .bs-h .i { width: 14px; height: 14px; }
.bonuses { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; } .bonuses .bond-bonus { margin-top: 0; } /* the bond's and marriage's side by side */
.bond-bonus.off { border-style: dashed; background: none; } .bond-bonus.off b { color: var(--muted); } /* the one that doesn't apply */
.bond-bonus b { font-size: 1rem; color: var(--accent); } .bond-bonus > span:last-child { font-size: .85rem; color: var(--muted); }
input[type=file] { padding: 6px 12px 6px 6px; color: var(--muted); cursor: pointer; } /* the chosen file's name */
input[type=file]::file-selector-button { margin-right: 12px; min-height: 30px; padding: 0 12px; border-radius: 8px; border: 1px solid var(--btn-edge, var(--line)); background: #ffffff14; color: var(--text); font: inherit; font-size: .85rem; font-weight: 600; cursor: pointer; } /* the browser's own took the box's colours (2026-11-02, the user's) */
input[type=file]::file-selector-button:hover { border-color: var(--muted); }
.buy input { width: 4.5em; min-height: 34px; padding: 0 6px; text-align: center; }
fieldset { margin: 0; padding: 8px 10px 10px; border: 1px solid var(--line); border-radius: 10px; }
.choices { display: flex; flex-wrap: wrap; gap: 6px; }
.choices label { position: relative; display: block; }
.choices input { position: absolute; opacity: 0; width: 1px; min-height: 0; }
.choices span { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 12px; border-radius: 10px; background: var(--panel2); border: 1px solid var(--line); border-left: 3px solid var(--c, var(--line)); cursor: pointer; }
.choices input:checked + span { border-color: var(--accent); background: #a2d7cf1a; }
.choices input:focus-visible + span { outline: 2px solid var(--accent); }
dialog { width: min(560px, 94vw); max-height: 90dvh; padding: 18px; color: var(--text); background: var(--panel); border: 1px solid var(--line); border-radius: 16px; }
dialog::backdrop { background: #000b; }

/* image placeholders: swap for <img> when art exists */
.art {
  position: relative; display: grid; place-items: center; overflow: hidden;
  aspect-ratio: 16 / 6; border-radius: var(--r); font-size: clamp(40px, 9cqi, 72px);
  background: linear-gradient(160deg, #3a6ea5, #18324f 60%, #0f1c2c);
}
.art::after {
  content: attr(data-label); position: absolute; left: 10px; bottom: 8px;
  font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: #fff9;
}
body.night .art.sky { background: linear-gradient(160deg, #1b2150, #0a0d1f 60%, #05060c); }
.art.map { aspect-ratio: 16 / 5; background: linear-gradient(160deg, #1d4d3c, #0f2a2c); }

/* ---------- loading screen (late Oct 2026): from the first paint until the game knows where you are ---------- */
.boot { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; background: radial-gradient(55% 45% at 72% 28%, #3b2c5233, transparent 70%), radial-gradient(45% 40% at 22% 82%, #c2783a1f, transparent 70%), #06080c; transition: opacity .5s ease, visibility .5s; }
.boot.done { opacity: 0; visibility: hidden; pointer-events: none; }
.boot-in { display: grid; gap: 20px; justify-items: center; width: min(320px, 80vw); }
.boot-mark { font: 600 clamp(2rem, 7vw, 3.25rem)/1 var(--display); letter-spacing: .32em; margin-right: -.32em; text-transform: uppercase; color: #f2efe9; animation: breathe 2.6s ease-in-out infinite; }
.boot-mark span, .wordmark span { font-size: .3em; letter-spacing: .16em; text-transform: none; color: #e3b36f; }
.boot-bar { width: 100%; height: 2px; border-radius: 2px; background: #ffffff14; overflow: hidden; }
.boot-bar i { display: block; height: 100%; width: calc(var(--p, .3) * 100%); background: linear-gradient(90deg, #e3b36f, var(--accent)); box-shadow: 0 0 12px #a2d7cf80; transition: width .45s ease; animation: creep 1.4s ease-out; }
.boot small { min-height: 1.2em; font: 600 .72rem/1.2 var(--display); letter-spacing: .26em; text-transform: uppercase; color: #8d95a3; text-align: center; }
@keyframes creep { from { width: 0; } }
@keyframes breathe { 50% { opacity: .7; } }

/* ---------- login (redesigned late Oct 2026): the photo drifting behind, sign-in on a glass card, the world right now beside it ---------- */
#login {
  position: fixed; inset: 0; z-index: 1; max-width: none; margin: 0; overflow-y: auto; isolation: isolate; background: #06080c;
  padding: clamp(24px, 6vw, 72px); grid-template-columns: minmax(0, 440px) minmax(0, 1fr) minmax(0, 290px); align-content: end; align-items: end; gap: 32px;
}
#login::before { content: ''; position: fixed; inset: -3%; z-index: -2; background: url(img/login.jpg) 60% 40% / cover; animation: drift 70s ease-in-out infinite alternate; }
#login::after { content: ''; position: fixed; inset: 0; z-index: -1; background: linear-gradient(90deg, #06080cf2 0%, #06080cb3 34%, #06080c1f 68%, #06080c99 100%), linear-gradient(0deg, #06080c 0%, #06080c00 45%), radial-gradient(120% 90% at 60% 40%, transparent 55%, #06080cb3 100%); }
@keyframes drift { from { transform: scale(1.02); } to { transform: scale(1.1) translate(-1.5%, -1%); } }
.login { display: grid; gap: 16px; justify-items: start; }
.eyebrow { font: 600 .75rem/1.2 var(--display); letter-spacing: .28em; text-transform: uppercase; color: #e3b36f; }
.login-live { display: inline-flex; align-items: center; margin: 0; }
.wordmark { font: 600 clamp(2.75rem, 9vw, 5rem)/.95 var(--display); letter-spacing: .32em; text-transform: uppercase; color: #f2efe9; margin: 0; }
.lead { max-width: 44ch; margin: 0; font-size: 1.05rem; color: #c8ccd4; }
.login-card { display: grid; gap: 12px; width: min(380px, 100%); margin-top: 10px; padding: 20px; border: 1px solid #ffffff1a; border-radius: 16px; background: #080a0ea6; backdrop-filter: blur(16px) saturate(1.2); -webkit-backdrop-filter: blur(16px) saturate(1.2); box-shadow: 0 24px 60px #00000099; }
.login-card .btn { justify-content: center; min-height: 46px; font-size: .95rem; }
.login-guest { display: grid; gap: 10px; }
.login-guest small { font-size: .75rem; color: #8d95a3; text-align: center; }
.or { display: flex; align-items: center; gap: 12px; font: 600 .7rem/1 var(--display); letter-spacing: .24em; text-transform: uppercase; color: #6f7786; }
.or::before, .or::after { content: ''; flex: 1; height: 1px; background: #ffffff1f; }
.google { background: #fff; color: #1f1f1f; border: 0; }
.google:hover:not(:disabled) { background: #ececec; }
.btn.outline { background: #06080c66; border-color: #ffffff4d; }
#login-note:empty { display: none; }
.world-now { grid-column: 3; display: grid; gap: 10px; width: 100%; padding: 16px 18px 8px; border: 1px solid #ffffff12; border-radius: 16px; background: #080a0e80; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.world-now .eyebrow { margin: 0; color: #8d95a3; }
.wn-city { display: grid; grid-template-columns: 20px minmax(0, 1fr) auto; column-gap: 12px; align-items: center; padding: 10px 0; border-top: 1px solid #ffffff17; }
.wn-city .i { grid-row: span 2; width: 18px; height: 18px; color: #e3b36f; }
.wn-city b { font: 600 .78rem/1.3 var(--display); letter-spacing: .14em; text-transform: uppercase; color: #e6e2da; }
.wn-city time { grid-row: span 2; font: 600 1rem/1 var(--display); font-variant-numeric: tabular-nums; color: #f2efe9; }
.wn-city small { font-size: .75rem; color: #8d95a3; }
.world-colossal { display: flex; gap: 10px; align-items: center; margin: 4px 0 0; padding: 10px 12px; border: 1px solid #f8717133; border-radius: 10px; background: #2a0d0d80; font-size: .8rem; color: #f0c4c4; }
.world-colossal .i { flex: none; color: #f87171; }
.world-colossal.world-turn { border-color: var(--line); background: #0d182080; color: var(--muted); } .world-turn .i { color: var(--accent); } .world-turn b { color: var(--text, #e8eef2); } /* the Recurrence's line: the Bureau's cold, not a warning */
.credit { position: fixed; right: 14px; bottom: 10px; font-size: .7rem; color: #ffffff59; }
.credit a { color: inherit; }
@media (max-width: 899px) {
  #login { grid-template-columns: minmax(0, 1fr); gap: 28px; padding-top: 44vh; }
  #login::before { inset: 0 0 auto; height: 62vh; background-position: 64% 30%; }
  #login::after { background: linear-gradient(0deg, #06080c 38%, #06080c00 75%), linear-gradient(180deg, #06080c99, transparent 30%); }
  .world-now { grid-column: auto; padding: 0; border: 0; background: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
  .world-status { display: grid; grid-template-columns: 1fr 1fr; column-gap: 18px; }
  .login-card { width: 100%; }
  .credit { position: static; justify-self: end; }
}
@media (prefers-reduced-motion: reduce) { #login::before, .boot-mark { animation: none; } }

/* ---------- characters ---------- */
.slot { display: grid; gap: 6px; justify-items: center; align-content: center; text-align: center; min-height: 190px; text-decoration: none; cursor: pointer; font: inherit; color: inherit; }
.slot .avatar { width: 64px; height: 64px; font-size: 34px; }
.slot-wrap { position: relative; display: grid; }
.slot-del { position: absolute; top: 6px; right: 6px; padding: 4px 6px; color: var(--muted); }
.slot-del:hover { color: var(--bad); }
.slot.empty { border-style: dashed; background: transparent; color: var(--muted); font-size: 1.5rem; }
.slot:hover { border-color: var(--accent); }

/* ---------- hub ---------- */
.cols { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; align-items: start; } .cols > .stack { grid-template-columns: minmax(0, 1fr); } /* columns that fit the screen: the tiles' labels and a case's one-line summary pushed the hub past a phone's width */
.tag.perk { white-space: normal; } /* a perk is a sentence: it wraps (one kept the hub wider than a phone) */
@container (min-width: 760px) { .cols { grid-template-columns: minmax(0, 2fr) minmax(260px, 1fr); } }
.daybar { position: relative; height: 8px; border-radius: 99px; background: linear-gradient(90deg, #c48a9a, #a9bde0 25%, #d98a6a 50%, #232a63 50%, #0b0f2e 75%, #232a63); } /* a cold day (2026-11-02, the user's: too warm to be eldritch) */
/* alignment (late Oct 2026): two crossing axes, law across, sanity up, a dot for you; the titles at the ends, in a grid so they can't drift */
.ax-plot > b.ax-cell { width: 20%; height: 20%; border-radius: 6px; cursor: help; -webkit-touch-callout: none; user-select: none; touch-action: manipulation; } /* a pair of titles' stretch: point at it, or hold it, for its perks */
.ax-plot > b.ax-cell:hover { background: #ffffff12; } .ax-plot > i { pointer-events: none; }
.align-axes { display: grid; grid-template-columns: auto min(180px, 48vw) auto; grid-template-rows: auto 140px auto; align-items: center; justify-content: center; gap: 4px 8px; margin: 8px auto 4px; }
.align-axes > small { color: var(--muted); font-size: 11px; line-height: 1; }
.ax-t { grid-area: 1 / 2; justify-self: center; } .ax-b { grid-area: 3 / 2; justify-self: center; } .ax-l { grid-area: 2 / 1; justify-self: end; } .ax-r { grid-area: 2 / 3; justify-self: start; }
.ax-plot { grid-area: 2 / 2; position: relative; height: 100%; }
.ax-plot > b { position: absolute; display: block; }
.ax-plot > b.x { left: 0; right: 0; top: 50%; height: 2px; margin-top: -1px; border-radius: 2px; background: linear-gradient(90deg, var(--bad), #ffffff40 50%, var(--external)); }
.ax-plot > b.y { top: 0; bottom: 0; left: 50%; width: 2px; margin-left: -1px; border-radius: 2px; background: linear-gradient(0deg, #8a5cff, #ffffff40 50%, #9fd8ff); }
.ax-plot > b.tx { top: 50%; width: 1px; height: 8px; margin-top: -4px; background: #ffffff59; } .ax-plot > b.ty { left: 50%; width: 8px; height: 1px; margin-left: -4px; background: #ffffff59; } /* where the titles change */
.ax-plot > i { position: absolute; z-index: 1; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; background: var(--text); box-shadow: 0 0 0 3px #06080caa, 0 0 10px #ffffff55; }
.align-bar { position: relative; height: 8px; border-radius: 99px; background: linear-gradient(90deg, var(--bad), var(--panel2) 50%, var(--external)); }
.align-bar > b { position: absolute; top: 0; bottom: 0; width: 2px; margin-left: -1px; background: #06080caa; } /* where the titles change */
.align-bar .seg { position: absolute; top: -8px; bottom: -8px; width: 20%; cursor: help; outline: none; } /* each title's stretch: point at it, or tap it, for its perks */
.align-bar .seg:hover, .align-bar .seg:focus { background: #ffffff14; border-radius: 6px; }
.seg-tip { display: none; position: absolute; top: calc(100% + 8px); left: 50%; transform: translateX(-50%); z-index: 20; width: 220px; padding: 8px 10px; gap: 3px;
  background: var(--panel); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 10px 28px #000c; font-size: .8rem; color: var(--muted); }
.seg-tip.first { left: 0; transform: none; } .seg-tip.last { left: auto; right: 0; transform: none; }
.seg-tip b { color: var(--text); } .seg-tip span::before { content: '· '; }
.align-bar .seg:hover .seg-tip, .align-bar .seg:focus .seg-tip { display: grid; }
.tag.perk { color: var(--text); border-color: #a2d7cf44; }
.align-bar i { position: absolute; top: -4px; left: calc(var(--v, 50) * 1%); width: 4px; height: 16px; margin-left: -2px; border-radius: 2px; background: #fff; box-shadow: 0 0 6px #fff; }
.btn.choice { display: grid; justify-content: stretch; justify-items: start; gap: 2px; text-align: left; padding: 10px 12px; }
.btn.choice small { font-weight: 400; } .btn.choice .maxed { opacity: .4; } /* a maxed hobby's XP: nothing to gain (the user's, 2026-10-30) */
.btn.choice.power { border-color: var(--accent); }
.span { grid-column: 1 / -1; }
.card.trinket { border-color: #a2d7cf55; }
#prices-dialog { width: min(560px, 94vw); }
.price-list { max-height: 55vh; overflow-y: auto; gap: 4px; }
.price-list li { display: flex; align-items: center; gap: 10px; padding: 6px 10px; background: var(--panel); border: 1px solid var(--line); border-radius: 8px; }
.price-list li.here { border-color: var(--accent); }
.price-list .grow { flex: 1; }
.msgs .avatar { display: inline-grid; width: 22px; height: 22px; font-size: 10px; border-width: 1px; vertical-align: middle; }
.daylabels { position: relative; height: 1.3em; } /* each word on its mark (0, 25, 50, 75, 100% of the bar), the ends kept inside */
.daylabels small { position: absolute; top: 0; left: calc(var(--at) * 1%); transform: translateX(-50%); white-space: nowrap; }
.daylabels small:first-child { transform: none; } .daylabels small:last-child { transform: translateX(-100%); }
.daybar i { position: absolute; top: -4px; left: calc(var(--v, 0) * 1%); width: 4px; height: 16px; margin-left: -2px; border-radius: 2px; background: #fff; box-shadow: 0 0 6px #fff; }
.forecast { display: flex; gap: 6px; overflow-x: auto; }
.forecast li { flex: 1; min-width: 60px; padding: 6px; text-align: center; font-size: .8rem; border-radius: 8px; background: var(--panel2); }
.act { display: grid; gap: 2px; align-content: center; min-height: 72px; padding: 12px; text-decoration: none; border-radius: var(--r); background: var(--act-bg, var(--panel)); border: 1px solid var(--line); }
.act:hover { border-color: var(--muted); }
.act.hot { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); } /* something waiting: a solid tile with a gold outline (a tinted wash read as faded) */
.act.hot b { color: var(--accent); }
.people li { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 6px 0; border-bottom: 1px solid var(--line); }
.people li:last-child { border-bottom: 0; }
.people .avatar { width: 32px; height: 32px; font-size: 17px; border-width: 1px; }
.who { flex: 1 1 120px; min-width: 0; display: grid; }
.who b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#party-card .who b { white-space: normal; } /* the party window is narrow: the name and its badges wrap, not cut to "NP…" (2026-11-03) */


/* ---------- powers & inventory: list + detail ---------- */
.split { display: grid; gap: 14px; align-items: start; }
.pow-pick { display: none; width: 100%; } /* powerwiki.net: a picker on a narrow screen, the list on a wide one (the user's, 2026-10-29: the list was a scroll box in a scrolling page, the power's page out of sight below it) */
@container (max-width: 699.98px) { .net-pow .pow-pick { display: block; } .net-pow > .pow-list-card { display: none; } }
@container (min-width: 700px) { .split { grid-template-columns: 220px minmax(0, 1fr); } .split.wide-right { grid-template-columns: minmax(0, 1fr) 280px; } }
.power-list { display: grid; gap: 6px; }
.power-list h3 { margin-top: 8px; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--c); }
.pw { justify-content: space-between; border-left: 3px solid var(--c); font-weight: 500; text-align: left; }
.pw[aria-pressed="true"] { background: color-mix(in srgb, var(--c) 20%, var(--panel2)); color: var(--text); border-color: var(--c); }
.pw.locked { color: var(--muted); }
@container (max-width: 699px) {
  .power-list { grid-auto-flow: column; grid-auto-columns: max-content; overflow-x: auto; padding-bottom: 4px; }
  .power-list h3 { display: none; }
}
.tier { display: grid; gap: 8px; padding-top: 10px; border-top: 1px dashed var(--line); }
.tier-head { display: flex; justify-content: space-between; font-size: .8rem; color: var(--muted); }
.tier.locked .skill { opacity: .45; }
.tier-skills { display: grid; gap: 8px; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); }
.skill { display: grid; gap: 6px; align-content: start; padding: 10px 12px; border-radius: 10px; background: var(--panel2); border: 1px solid var(--line); border-left: 3px solid var(--c); }
.skill-head { display: flex; align-items: center; gap: 8px; }
.skill-head b { margin-right: auto; }
.pips { color: var(--c); letter-spacing: 2px; font-size: .8rem; }
.plus { width: 36px; padding: 0; }
.skill p { font-size: .85rem; }

.ware .gs { position: absolute; left: 4px; top: 3px; font-size: .55rem; line-height: 1; color: var(--muted); } .ware:has(.gs), .ware:has(.kg) { padding-top: 13px; } .ware .kg { position: absolute; left: 4px; top: 3px; font-size: .55rem; line-height: 1; color: var(--muted); } /* a gear piece's slot, clear of its icon */
.big-icon { font-size: 48px; text-align: center; padding: 10px; border-radius: 12px; background: color-mix(in srgb, var(--rar) 20%, var(--panel2)); box-shadow: inset 0 0 0 2px var(--rar); }
/* rarity (redesigned late Oct 2026): the one colour a thing carries. Legendary is orange, so it never reads as the gold of a selection */
.common { --rar: #9ca3af; } .uncommon { --rar: #4ade80; } .rare { --rar: #60a5fa; } .epic { --rar: #c084fc; } .legendary { --rar: #fb923c; }
/* the bag (GDD §11, redesigned late Oct 2026): loadout, tabs by kind, named rows, the picked thing beside them */
.bag-layout { display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr) minmax(280px, 360px); align-items: start; }
@container (max-width: 699px) { .bag-layout { grid-template-columns: minmax(0, 1fr); } }
.bag-h { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin: 12px 2px 6px; font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); }
.card > .bag-h:first-child { margin-top: 0; } .bag-h small { text-transform: none; letter-spacing: 0; font-weight: 500; }
.bag-sh { display: flex; align-items: center; gap: 6px; margin: 10px 2px 6px; font-size: .8rem; font-weight: 600; }
.bag-sh .i { width: 14px; height: 14px; color: var(--muted); }
.loadout { display: grid; gap: 8px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
@container (max-width: 520px) { .loadout { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.lslot { display: grid; gap: 3px; align-content: start; min-height: 76px; padding: 8px 10px; border: 1px solid var(--line); border-left: 4px solid var(--rar); border-radius: 10px; background: var(--panel2); color: inherit; font: inherit; text-align: left; cursor: pointer; min-width: 0; }
.lslot.empty { border-style: dashed; border-left-width: 1px; background: transparent; }
.lslot b, .lslot small { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .lslot small { display: flex; gap: 6px; align-items: center; color: var(--muted); }
.ls-label { display: flex; align-items: center; gap: 5px; font-size: .66rem; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); } .ls-label .i { width: 13px; height: 13px; }
.bag-tabs { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; } .bag-tabs::-webkit-scrollbar { display: none; }
.bag-tabs .btn { flex: none; } .bag-tabs .btn small { margin-left: 2px; opacity: .65; }
@media (pointer: fine) { .bag-tabs, .net-tabs { flex-wrap: wrap; overflow: visible; } } /* a mouse can't swipe a row whose scrollbar is hidden: the tabs wrap instead (the user's, 2026-10-30: the Bag's ran out of the box) */
.bag-list { display: grid; gap: 6px; }
@container (min-width: 1000px) { .bag-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.irow { display: grid; grid-template-columns: 42px minmax(0, 1fr) auto; align-items: center; gap: 10px; width: 100%; min-width: 0; padding: 7px 10px 7px 8px; border: 1px solid var(--line); border-left: 4px solid var(--rar); border-radius: 10px; background: var(--panel); color: inherit; font: inherit; text-align: left; cursor: pointer; }
.irow:hover, .lslot:hover { background: color-mix(in srgb, var(--rar) 8%, var(--panel2)); }
.irow[aria-pressed="true"], .lslot[aria-pressed="true"] { box-shadow: 0 0 0 2px #fff; background: var(--panel2); } /* picked: a white ring, never a rarity's colour */
.irow .ico, .det-ico { display: grid; place-items: center; border-radius: 9px; background: color-mix(in srgb, var(--rar) 20%, var(--panel2)); color: color-mix(in srgb, var(--rar) 55%, #fff); }
.irow .ico { width: 42px; height: 42px; } .irow .ico .i { width: 22px; height: 22px; stroke-width: 1.75; }
.irow .nm { display: grid; gap: 2px; min-width: 0; } .irow .nm b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.irow .nm small { display: flex; align-items: center; gap: 6px; min-width: 0; color: var(--muted); white-space: nowrap; overflow: hidden; }
.brief { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.irow .ct { display: flex; align-items: center; gap: 8px; font-weight: 700; font-variant-numeric: tabular-nums; }
.need { display: inline-flex; align-items: center; gap: 3px; color: var(--bad); font-size: .75rem; } .need .i { width: 12px; height: 12px; }
.slot-chip { display: inline-flex; flex: none; align-items: center; gap: 4px; padding: 1px 7px 1px 5px; border-radius: 6px; background: #ffffff17; color: var(--text); font-size: .72rem; font-weight: 600; } /* what a gear piece is worn as */
.slot-chip .i { width: 12px; height: 12px; }
.mk { flex: none; padding: 0 5px; border: 1px solid var(--line); border-radius: 5px; color: var(--text); font-size: .68rem; font-weight: 700; line-height: 1.5; }
#item-detail { display: grid; gap: 10px; align-content: start; }
@container (max-width: 699px) { body #inventory #item-detail, body #workshop .ws-detail { max-height: 50vh; overflow-y: auto; background: #0e1217; border-color: #ffffff2e; box-shadow: 0 -12px 32px #000e; } } /* a phone: a solid sheet at the bottom (sticky, .item-detail); × closes it */
.det-head { display: grid; grid-template-columns: 60px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.det-head h3 { margin: 0; } .det-ico { width: 60px; height: 60px; border-radius: 14px; box-shadow: inset 0 0 0 2px var(--rar); } .det-ico .i { width: 32px; height: 32px; stroke-width: 1.6; }
.det-sub { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0; color: var(--muted); font-size: .85rem; } .det-sub .rar { color: var(--rar); }
.det-lines { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: .92rem; }
.det-lines li { position: relative; padding-left: 14px; } .det-lines li::before { content: ''; position: absolute; left: 2px; top: .55em; width: 6px; height: 6px; border-radius: 2px; background: var(--rar); }
.det-worn { display: grid; gap: 6px; padding: 8px 10px; border: 1px dashed var(--line); border-radius: 10px; } .det-worn > small { display: flex; align-items: center; gap: 5px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; font-size: .68rem; font-weight: 700; }
.worn-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding-left: 8px; border-left: 3px solid var(--rar); } .worn-row small { color: var(--muted); width: 100%; } .worn-row.empty { border-left-color: var(--line); }
.det-actions { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 4px; }
@container (min-width: 700px) { .item-detail { position: sticky; top: 0; } }
@container (max-width: 699px) { .item-detail { position: sticky; bottom: 0; box-shadow: 0 -8px 24px #000c; } }

/* ---------- travel ---------- */
.dest { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 12px; align-items: center; padding: 10px 14px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); }
.dest.here { border-color: var(--accent); }
.dest .info { grid-column: 1; display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: .85rem; color: var(--muted); }
.dest .lon-time { display: inline-flex; align-items: center; gap: 4px; min-width: 7.5ch; font-variant-numeric: tabular-nums; } /* the time's room kept while it loads, so nothing beside it moves (the user's, 2026-10-30) */
.lon-wait { width: 12px; height: 12px; border-radius: 50%; border: 2px solid #a2d7cf33; border-top-color: var(--accent); animation: lon-spin .8s linear infinite; } @keyframes lon-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .lon-wait { animation: breathe 1.6s ease-in-out infinite; } }
.dest .go { grid-column: 2; grid-row: 1 / 3; display: grid; gap: 6px; }
@container (max-width: 520px) { .dest { grid-template-columns: minmax(0, 1fr); } .dest .go { grid-column: 1; grid-row: auto; grid-auto-flow: column; } }

/* eldritch: raid bar, portals, monster art (GDD §19) */
.raid-strip { position: sticky; top: -16px; z-index: 6; display: flex; flex-direction: column; gap: 10px; margin: -16px -16px 14px; padding: 10px 16px; background: #1a0f12f2; border-bottom: 1px solid #f8717155; box-shadow: 0 6px 18px #0008; }
.raid-one { display: flex; align-items: center; gap: 12px; } /* one colossal; two holding the country stack (late Oct 2026) */
.raid-img { width: 48px; height: 48px; border-radius: 8px; object-fit: cover; border: 1px solid #f8717188; flex: none; }
.raid-info { flex: 1; min-width: 0; display: grid; gap: 4px; }
.raid-hp { height: 8px; }
.rank-badge { /* portal tier F…SSS (not .tier: that is the skill tree) */  display: inline-grid; place-items: center; min-width: 34px; height: 26px; padding: 0 6px; border-radius: 6px; font: 800 .8rem var(--display); letter-spacing: .04em; color: #080a0e; background: #9aa3b2; }
.t-e { background: #7bd389; } .t-d { background: #58c4c0; } .t-c { background: #5aa7f0; } .t-b { background: #a78bfa; } .t-a { background: #f59e5b; }
.t-s { background: #f87171; } .t-ss { background: #e11d48; color: #fff; } .t-sss { background: linear-gradient(135deg, #ffd966, #ff9f43); box-shadow: 0 0 10px #a2d7cf88; }
.stages { display: flex; gap: 6px; flex-wrap: wrap; }
.stages li { display: grid; justify-items: center; gap: 2px; min-width: 64px; padding: 8px; border-radius: 10px; background: var(--panel); border: 1px solid var(--line); color: var(--muted); }
.stages li.done { color: var(--good); border-color: #4ade8055; }
.stages li.now { color: var(--accent); border-color: var(--accent); }
.btn.choice.picked { border-color: var(--good); }
.tag.strong { border-color: var(--accent); color: var(--accent); }
a.tag.go { text-decoration: none; cursor: pointer; } a.tag.go:hover { border-color: var(--accent); color: var(--text); } /* a country you can travel to from the Internet (late Oct 2026) */
.count { color: var(--accent); font-weight: 700; margin-left: 2px; }
#chat-mute { margin-left: auto; }
#chat-mute[aria-pressed="true"] { color: var(--muted); }
.badge.danger { background: #f8717122; color: var(--bad); }
.dest.locked { opacity: .55; }
.dest .fav { margin-left: auto; padding: 4px; border: 0; border-radius: 999px; background: none; color: var(--muted); cursor: pointer; } .dest .fav:hover { color: var(--text); } .dest .fav.on { color: var(--accent); } .dest .fav.on .i { fill: currentColor; } /* a favourite place (2026-11-01) */
.log-list { display: grid; gap: 4px; font-size: .85rem; color: var(--muted); }
@media (max-width: 719px) { .raid-strip { top: -12px; margin: -12px -12px 12px; } .raid-one { flex-wrap: wrap; } }
.regen { margin-left: 4px; }
#top-energy, #top-pts, #top-cash { font-variant-numeric: tabular-nums; } .regen [data-ends] { display: inline-block; min-width: 4ch; font-variant-numeric: tabular-nums; } /* a ticking countdown keeps its width: the top bar's pills don't shift every second (the user's, 2026-10-29) */
@media (max-width: 479px) { .regen { display: none; } }
.targetable { border-color: var(--accent) !important; color: var(--accent); cursor: pointer; animation: pulse .8s ease-in-out infinite alternate; }
@keyframes pulse { to { box-shadow: 0 0 0 4px #a2d7cf40; } }
@media (prefers-reduced-motion: reduce) { .targetable { animation: none; } * { transition: none !important; } }
.prompt { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 8px 8px 8px 14px; border-radius: 10px; background: var(--accent); color: var(--accent-ink); font-weight: 600; }
.log ol { display: grid; gap: 4px; max-height: 260px; overflow-y: auto; font-size: .85rem; }
.log li { padding-bottom: 4px; border-bottom: 1px solid var(--line); }

/* ---------- live-game additions ---------- */
img.avatar { padding: 0; object-fit: cover; }
.flag { width: 24px; height: 18px; object-fit: cover; border-radius: 3px; vertical-align: middle; }
.flag.sm { width: 18px; height: 13px; }
.art img { height: clamp(48px, 16cqi, 150px); max-width: 80%; object-fit: contain; border-radius: 8px; box-shadow: 0 8px 30px #0008; }
.status-card, .job.current { border-color: var(--accent); }
.status-card { display: block; } /* one line of text with icons and bold bits, not a grid of fragments */
.status-card > .row { margin-top: 8px; }
.error { color: var(--bad); min-height: 1em; }
.good { color: var(--good); }
.bad { color: var(--bad); }
.act { color: inherit; font: inherit; text-align: left; cursor: pointer; }
.act:disabled { opacity: .45; cursor: not-allowed; }
.big-icon.sm { font-size: 26px; padding: 6px; }
/* flight screen (GDD §24) */
.fl-map-card { gap: 8px; }
.fl-map { width: 100%; height: auto; border-radius: 10px; background: #0b1a2b; display: block; } /* full width at the top: the biggest thing on the screen */
.fl-map .land { fill: #1d2a22; stroke: #3b4d40; stroke-width: .6; }
.fl-map .route { fill: none; stroke: var(--muted); stroke-width: 1.5; stroke-dasharray: 4 4; }
.fl-map .flown { fill: none; stroke: var(--accent); stroke-width: 2; }
.fl-map .plane use { fill: var(--bg); stroke: var(--accent); stroke-width: 2; stroke-linejoin: round; }
.fl-map circle { stroke: var(--bg); stroke-width: .15; }
.fl-map .end circle { fill: var(--text); } .fl-map .raid circle { fill: var(--bad); } .fl-map .portal circle { fill: var(--mental); }
.fl-map text { fill: var(--text); paint-order: stroke; stroke: #0b1a2b; stroke-width: .3; font-family: var(--display); }
.fl-map .raid text { fill: var(--bad); } .fl-map .portal text { fill: var(--mental); }
.card.incident { border-color: var(--bad); }
.result { justify-items: center; text-align: center; padding: 28px 14px; }
.result h2 { font-size: 1.8rem; }
.result .rewards { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.choices { display: grid; gap: 8px; margin: 8px 0; }
.fl-pair { display: grid; gap: 14px; }
@container (min-width: 760px) { .fl-pair { grid-template-columns: 1fr 1fr; } }
#fl-inc:empty { display: none; }
.fl-lines { display: grid; gap: 6px; }
.fl-lines .bar { margin-top: 6px; }
.shop-list { list-style: none; margin: 0; padding: 0; }
.shop-list li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line); }
.shop-list li:first-child { border-top: 0; padding-top: 0; }
.shop-list .name { display: grid; min-width: 0; }
.shop-list .name b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.shop-list .name small { color: var(--muted); }
.shop-list.priced li { grid-template-columns: auto minmax(0, 1fr) auto auto; }
.shop-list.priced .name small { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; } /* every row the same shape; the whole text is in the tooltip */
.shop-list .price { font-weight: 700; text-align: right; white-space: nowrap; }
.shop-list .sell { flex-wrap: nowrap; gap: 6px; }
.shop-list li.trinket .name b { color: #d8b86a; }
@container (max-width: 560px) { .shop-list.priced li { grid-template-columns: auto minmax(0, 1fr) auto; } .shop-list.priced .buy, .shop-list.priced .sell { grid-column: 2 / -1; justify-self: start; } }
.shop-list .big-icon.sm { padding: 5px; } .shop-list .big-icon.sm .i { width: 20px; height: 20px; }
.shop-list .buy { flex-wrap: nowrap; gap: 6px; } .shop-list .buy input { width: 3.2em; min-height: 32px; } .shop-list .buy button { min-width: 8.5em; } /* totals line up row to row */
.fl-log { margin: 0; padding-left: 18px; display: grid; gap: 4px; color: var(--muted); font-size: .85rem; }
.fl-log:empty { display: none; }
.fl-log li:first-child { color: var(--text); }
.portraits img.avatar { width: 48px; height: 48px; border: 0; }
.portraits span { padding: 4px; }
.phase.mine { color: var(--good); }
.toast { display: grid; gap: 8px; padding: 10px 14px; border-radius: 10px; background: var(--panel2); border: 1px solid var(--line); box-shadow: 0 8px 24px #000a; animation: toast-in .2s ease-out; }
.toast.bad { border-color: var(--bad); }
.toast.invite { border-color: var(--accent); }
#notes { position: fixed; z-index: 50; right: 16px; top: calc(64px + env(safe-area-inset-top)); display: grid; gap: 8px; width: min(360px, calc(100vw - 32px)); }
.toast { position: relative; padding-right: 40px; }
.toast .close { position: absolute; top: 6px; right: 6px; }
@keyframes toast-in { from { transform: translateY(8px); opacity: 0; } }
.me-text b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- icons (Lucide sprite: icons.svg) ---------- */
.i { width: 1.1em; height: 1.1em; flex: none; vertical-align: -.18em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.avatar .i { width: 55%; height: 55%; vertical-align: 0; }
.big-icon { display: grid; place-items: center; color: color-mix(in srgb, var(--rar, #9ca3af) 55%, #fff); }
.big-icon .i { width: 44px; height: 44px; stroke-width: 1.5; }
.big-icon.sm .i { width: 24px; height: 24px; }
.forecast .i { width: 20px; height: 20px; margin: 4px 0; }
.chips { display: flex; flex-wrap: wrap; gap: 3px; grid-column: 2; }
.chip { font-size: .6rem; line-height: 1.5; padding: 0 5px; border-radius: 4px; background: #ffffff14; color: var(--text); text-transform: uppercase; letter-spacing: .05em; }
.chip.warn { background: #e8b04a2e; color: var(--warn); }


/* ---------- avatars: uploaded photo over an initials monogram ---------- */
#top-avatar { display: contents; }
.avatar.mono { position: relative; overflow: hidden; font-size: 13px; font-weight: 700; letter-spacing: .04em; color: #ece9e2; background: hsl(var(--h, 210) 18% 30%); }
.avatar.mono img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.avatar.emo svg { width: 100%; height: 100%; } .avatar.emo text { font-size: 15px; letter-spacing: 0; font-family: 'Apple Color Emoji', 'Segoe UI Emoji', 'Noto Color Emoji', sans-serif; } /* an NPC's emoji (late Oct 2026): spacing would split its joined parts */
.slot .avatar.mono { font-size: 22px; }

/* ---------- top bar profile button; anyone's profile card ---------- */
.topbar button.me { background: none; border: 0; padding: 0; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.profile-pop { position: fixed; inset: auto; margin: 0; width: min(320px, calc(100vw - 16px)); padding: 14px; display: grid; gap: 12px;
  color: var(--text); background: var(--panel); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 18px 44px #000c; }
.profile-pop:not(:popover-open) { display: none; }
.profile-head { display: flex; gap: 14px; align-items: center; }
.profile-head .avatar { width: 72px; height: 72px; font-size: 26px; flex: none; }
.profile-head h2 { overflow-wrap: anywhere; }
.stack.tight { gap: 4px; }
code { font: 600 .85rem ui-monospace, monospace; padding: 2px 6px; border-radius: 6px; background: var(--panel2); border: 1px solid var(--line); }
.icon-btn { min-height: 28px; padding: 0 6px; }
.pm-note { padding: 6px 12px; }
.chat-name { padding: 0; border: 0; background: none; color: inherit; font: inherit; font-weight: 700; cursor: pointer; }
.chat-name:hover { text-decoration: underline; }
.motto { color: var(--muted); font-style: italic; margin-top: 4px; }
.said { display: block; }
.npc-more { flex-basis: 100%; padding-left: 40px; } /* an NPC's details in Friends, under their row */
.npc-more summary { cursor: pointer; color: var(--muted); font-size: .85em; }
.npc-more small { display: block; }
.npc-more small, .npc-more form { margin-top: 4px; }
.pf-links { display: grid; gap: 2px; border-top: 1px solid var(--line); padding-top: 8px; }
.name-change { display: grid; gap: 6px; padding: 10px 12px; border-radius: 10px; background: var(--panel2); border: 1px solid var(--line); margin: 8px 0; } /* a Deed Poll in the Bag; Shapeshifting's page */
.name-change input { min-height: 36px; flex: 1 1 170px; min-width: 0; } /* the button drops below when the column is narrow */
.menu-item { display: flex; align-items: center; gap: 10px; min-height: 40px; padding: 8px 12px; border: 0; border-radius: 10px; background: none;
  color: var(--muted); font: inherit; text-align: left; text-decoration: none; cursor: pointer; }
.menu-item:hover { background: var(--panel2); color: var(--text); }
.menu-item .i { width: 20px; height: 20px; }
.sidenav { overflow-y: auto; }
.sidenav .dot { width: 8px; height: 8px; margin-left: auto; border-radius: 50%; background: var(--accent); }
@media (max-width: 719px) { .sidenav .dot { position: absolute; margin: 0 0 0 14px; } .sidenav a { position: relative; } }

/* ---------- settings ---------- */
.switch { display: flex; align-items: center; gap: 10px; cursor: pointer; }
input[type=checkbox] { width: 20px; min-height: 20px; accent-color: var(--accent); }
input[type=range] { padding: 0; min-height: 32px; background: none; border: 0; accent-color: var(--accent); }

/* ---------- the animated weather sky fills the page background on every game screen ---------- */
#sky-canvas { display: none; }
body.sky #sky-canvas { display: block; grid-area: main; width: 100%; height: 100%; min-height: 0; }
/* a fight takes the whole screen: the menu goes, and the fight takes its place */
body.fighting .sidenav { display: none; }
.sidenav .jail-only { display: none; } body.jailed .sidenav .jail-only { display: flex; } /* jail (GDD §37): a menu of its own */
body.jailed .sidenav > a:not(.jail-only), body.jailed .nav-foot > :not(.jail-keep), body.jailed .raid-strip { display: none; }
.fight-only { display: none; } body.fighting .fight-only { display: inline-flex; cursor: pointer; } /* the menu's gone, so Settings sits in the top bar */
body.fighting main, body.fighting #sky-canvas { grid-row: main-start / nav-end; grid-column: nav-start / main-end; }
body.sky main { position: relative; z-index: 1; background: linear-gradient(180deg, #06080c00 30%, #06080c66); } /* explicitly above the sky canvas: Safari on Mac otherwise paints the canvas over the screen's content */
body.sky main .card { background: #0e1217c4; }
.weather-card { position: relative; min-height: 300px; align-content: end; padding: 14px 4px; }
body.sky main .weather-card { background: none; border: 0; box-shadow: none; }
.weather-card small, .weather-card .capital, .weather-card .tag { text-shadow: 0 1px 6px #000; }
.weather-card .tag, .weather-card .forecast li { background: #080a0eb0; }
.sound-btns { position: absolute; top: 12px; right: 12px; display: flex; gap: 6px; } .sound-btn { cursor: pointer; background: #06080c99; } /* music and the weather's, side by side */
.country-name { font: 600 clamp(2.1rem, 7cqi, 3.6rem)/1 var(--display); letter-spacing: .08em; text-transform: uppercase; color: #f2efe9; text-shadow: 0 2px 18px #000c; }
.capital { color: #d7dae0; margin-top: 4px; }
.weather-now { font: 600 1.2rem var(--display); letter-spacing: .04em; }

/* ---------- internet: a browser with four sites ---------- */
.browser { display: grid; grid-template-columns: minmax(0, 1fr); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: #080a0ed9; } /* the column may shrink: a wide table must not set the browser's width */
.net-tabs { display: flex; gap: 2px; padding: 6px 6px 0; background: #06080c; overflow-x: auto; }
.net-tab { display: flex; align-items: center; gap: 6px; padding: 8px 14px; border: 1px solid transparent; border-bottom: 0; border-radius: 8px 8px 0 0; background: none; color: var(--muted); font: inherit; font-size: .85rem; cursor: pointer; white-space: nowrap; }
.net-tab[aria-pressed=true] { background: var(--panel2); border-color: var(--line); color: var(--text); }
.net-bar { display: flex; align-items: center; gap: 8px; padding: 8px 10px; background: var(--panel2); border-bottom: 1px solid var(--line); }
.net-url { flex: 1; display: flex; align-items: center; gap: 6px; min-width: 0; padding: 6px 12px; border-radius: 999px; background: #06080c; color: var(--muted); font-size: .85rem; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.net-url b { color: var(--text); font-weight: 600; }
.net-url .i { color: var(--good); flex: none; }
.net-bar select { width: auto; max-width: 45%; }
.net-page { padding: 14px; min-width: 0; overflow-x: auto; } /* a table too wide for a phone scrolls inside the page */
.net-list li { display: flex; align-items: center; gap: 12px; padding: 10px 14px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); }
.net-list .grow { flex: 1; min-width: 0; }
.net-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.net-table tr.remote td:first-child { box-shadow: inset 2px 0 0 #38c2ff99; } .net-table tr.freelance td:first-child { box-shadow: inset 2px 0 0 #b585ff99; } .net-table .jc-tag { margin-left: 4px; vertical-align: 1px; } /* jobboard.net: remote jobs blue, as on the Jobs screen */
.net-table th { text-align: left; font-weight: 500; color: var(--muted); font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; }
.net-table th, .net-table td { padding: 6px 8px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.net-table tr.on td { background: #a2d7cf14; }
.forecast li.odd { box-shadow: inset 0 0 0 1px var(--accent); } /* inside its box: an outline was clipped by the row's scroll (late Oct 2026) */
.price-list li.pick { cursor: pointer; }
.price-list li.pick:hover { border-color: var(--muted); }
.nowrap { white-space: nowrap; }
.net-page h4 { margin: 4px 0 -4px; }
.raid-card { grid-template-columns: auto minmax(0, 1fr); align-items: start; }
.raid-img.big { width: 120px; height: 120px; border-radius: var(--r); object-fit: cover; }
@container (max-width: 560px) { .raid-card { grid-template-columns: 1fr; } }
.split.wide-left { grid-template-columns: minmax(0, 1fr); }
@container (min-width: 760px) { .split.wide-left { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); } }

.net-list li.pick { cursor: pointer; }
.pow-list { max-height: 70vh; overflow-x: hidden; }
.pow-list li > .i { color: var(--c); }
.net-list li.pick:hover, .net-list li.here { border-color: var(--accent); }

/* ---------- arena tournament bracket ---------- */
.bracket { display: flex; gap: 10px; overflow-x: auto; padding: 4px 0 10px; }
.b-round { display: flex; flex-direction: column; justify-content: space-around; gap: 6px; min-width: 150px; }
.b-round h4 { margin: 0 0 4px; font-size: .7rem; font-weight: 500; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.b-match { border: 1px solid var(--line); border-radius: 8px; background: var(--panel); overflow: hidden; }
.b-match.live { border-color: var(--bad); }
.b-match.champ { padding: 8px 10px; border-color: var(--accent); color: var(--accent); }
.b-slot { display: flex; justify-content: space-between; gap: 6px; padding: 3px 8px; font-size: .8rem; }
.b-slot + .b-slot { border-top: 1px solid var(--line); }
.b-slot span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.b-slot.npc { color: var(--muted); }
.b-slot.won { font-weight: 600; color: var(--text); }
.b-slot.lost { opacity: .45; text-decoration: line-through; }
.b-slot.me { background: #a2d7cf1f; }

/* ---------- portal votes: cards side by side ---------- */
.pick-cards { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 12px; padding-top: 10px; }
.pick-card { position: relative; display: grid; justify-items: center; align-content: start; gap: 8px; min-height: 230px; padding: 18px 12px 14px; text-align: center; font: inherit; color: inherit; cursor: pointer;
  border-radius: 14px; border: 1px solid var(--line); background: linear-gradient(180deg, #232b3a, #10141c); transition: transform .15s, border-color .15s, box-shadow .15s; }
.pick-card:hover:not(:disabled) { transform: translateY(-4px); border-color: var(--muted); }
.pick-card .pc-tier { font-size: .65rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.pick-card .pc-icon { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: #080a0e; border: 1px solid var(--line); }
.pick-card .pc-icon .i { width: 30px; height: 30px; }
.pick-card b { font: 600 1.05rem/1.2 var(--display); letter-spacing: .03em; }
.pick-card p { font-size: .8rem; color: var(--muted); }
.rb-fx { list-style: none; margin: 0; padding: 0; display: grid; gap: 3px; font-size: .85rem; font-weight: 700; color: var(--good); } /* a resort treatment: what you get, one effect a line */
.pick-card .pc-votes { margin-top: auto; padding: 2px 10px; border-radius: 999px; background: #080a0e; font-size: .72rem; color: var(--muted); }
.pick-card.enhanced { border-color: #a2d7cf88; background: linear-gradient(180deg, #2c2614, #10141c); box-shadow: inset 0 0 28px #a2d7cf1c; }
.pick-card.enhanced .pc-icon, .pick-card.enhanced .pc-tier { border-color: var(--accent); color: var(--accent); }
.pick-card.picked { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent), 0 10px 26px #000a; transform: translateY(-4px); }
/* the party's choice (portals, late Oct 2026): the winner rises and glows, the rest fall back, for the moment before it happens */
.pick-cards.decided .pick-card { cursor: default; }
.pick-card.won { border-color: var(--accent); animation: pick-won 1.9s cubic-bezier(.2, .7, .3, 1) forwards; }
.pick-card.won .pc-icon { border-color: var(--accent); color: var(--accent); animation: pick-won-icon 1.9s ease-out forwards; }
.pick-card.lost { animation: pick-lost .6s ease-out forwards; }
.pick-chosen { color: var(--accent); font-weight: 600; letter-spacing: .06em; text-transform: uppercase; animation: pick-chosen .5s ease-out both; }
@keyframes pick-won { 0% { transform: none; box-shadow: 0 0 0 0 var(--accent); } 25% { transform: translateY(-8px) scale(1.05); box-shadow: 0 0 0 3px var(--accent), 0 0 34px #a2d7cf66; }
  60% { transform: translateY(-8px) scale(1.04); box-shadow: 0 0 0 3px var(--accent), 0 0 22px #a2d7cf44; } 100% { transform: translateY(-6px) scale(1.04); box-shadow: 0 0 0 2px var(--accent), 0 0 26px #a2d7cf55; } }
@keyframes pick-won-icon { 0% { transform: scale(1); } 30% { transform: scale(1.18); } 100% { transform: scale(1.08); } }
@keyframes pick-lost { to { opacity: .32; filter: grayscale(.8); transform: scale(.96); } }
@keyframes pick-chosen { from { opacity: 0; transform: translateY(4px); } }
@media (prefers-reduced-motion: reduce) { .pick-card.won, .pick-card.won .pc-icon, .pick-card.lost, .pick-chosen { animation-duration: 1ms; } }
.pick-card.booked::after { content: 'Booked' !important; }
.pick-card.picked::after { content: 'Your vote'; position: absolute; top: -10px; left: 50%; transform: translateX(-50%); padding: 2px 10px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font-size: .7rem; font-weight: 700; white-space: nowrap; }
@container (max-width: 520px) { .pick-cards { gap: 6px; } .pick-card { min-height: 200px; padding: 14px 6px 10px; } .pick-card .pc-icon { width: 48px; height: 48px; } .pick-card p { font-size: .72rem; } }


/* ---------- mailbox ---------- */
.split.mailbox { grid-template-columns: minmax(0, 1fr); }
@container (min-width: 700px) { .split.mailbox { grid-template-columns: minmax(240px, 1fr) minmax(0, 2fr); } }
.mail-list { gap: 6px; }
.mail-row { display: grid; gap: 2px; width: 100%; padding: 10px 12px; text-align: left; font: inherit; color: var(--muted); background: var(--panel); border: 1px solid var(--line); border-radius: 10px; cursor: pointer; }
.mail-row b { font-weight: 500; }
.mail-row.unread { color: var(--text); border-left: 3px solid var(--accent); }
.mail-row.unread b { font-weight: 700; }
.mail-row.on { border-color: var(--accent); }
.mail-row .i { color: var(--accent); }
.mail-body { white-space: pre-wrap; line-height: 1.5; }
.gift { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 14px; border-radius: 10px; border: 1px solid #a2d7cf66; background: linear-gradient(135deg, #a2d7cf1a, var(--panel2)); }
.gift .i { color: var(--accent); }
.gift.claimed { opacity: .6; border-color: var(--line); background: var(--panel2); }

/* ---------- a profile's job line ---------- */
.pm-powers { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 6px; } /* a profile's powers, the origin outlined */
.pm-powers .chip { display: inline-flex; align-items: center; gap: 4px; padding: 1px 7px; font-size: .72rem; text-transform: none; letter-spacing: 0; }
.pm-powers .i { color: var(--c); }
.pm-job { display: flex; align-items: center; gap: 6px; padding: 6px 8px; margin-bottom: 4px; border-radius: 8px; background: var(--panel2); }

/* ---------- social ---------- */
.clan-tag { color: var(--accent); font-weight: 700; }
.presence { display: inline-block; width: 8px; height: 8px; margin-right: 6px; border-radius: 50%; background: var(--muted); opacity: .45; }
.presence.on { background: var(--good); opacity: 1; }
.btn.danger { color: var(--bad); }
.grow { flex: 1 1 180px; width: auto; }
.tag-input { width: 6.5em; text-transform: uppercase; }
#social-tabs .btn[aria-pressed="true"] { border-color: var(--accent); color: var(--accent); }

/* ---------- combat rework (GDD §8): intents, Guard, previews; stats; combat items and gadgets ---------- */
/* battle animations (battle-fx.js): a layer over everything that clicks pass through */
#fx-layer { position: fixed; inset: 0; z-index: 40; pointer-events: none; overflow: hidden; }
#fx-layer .fxp { position: absolute; display: block; border-radius: 50%; will-change: transform, opacity; }
#fx-layer .fxp.shard { border-radius: 1px; transform: rotate(45deg); }
#fx-layer .fxp.square { border-radius: 1px; }
#fx-layer .fxp.drop { border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%; }
#fx-layer .fxp.smoke { filter: blur(5px); opacity: .7; }
#fx-layer .fxp.ring { border: 2px solid; background: transparent; }
/* each power's particle (late Oct 2026, skill-fx.js) */
#fx-layer .fxp.leaf { border-radius: 0 80% 0 80%; }
#fx-layer .fxp.spark, #fx-layer .fxp.line { border-radius: 3px; }
#fx-layer .fxp.flake { border-radius: 0; clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%); }
#fx-layer .fxp.tri { border-radius: 0; clip-path: polygon(50% 0, 100% 100%, 0 100%); }
#fx-layer .fxp.hex { border-radius: 0; clip-path: polygon(25% 0, 75% 0, 100% 50%, 75% 100%, 25% 100%, 0 50%); }
#fx-layer .fxp.cube { border-radius: 2px; background: transparent !important; border: 2px solid currentColor; }
#fx-layer .fxp.bone { border-radius: 45% / 50%; }
#fx-layer .fxp.mote { filter: blur(1px); }
#fx-layer .fxp.glyph { background: none !important; box-shadow: none !important; border-radius: 0; font-weight: 700; line-height: 1; text-shadow: 0 0 6px currentColor; }
#fx-layer .fxp.line { transform-origin: 0 50%; }
#fx-layer .fxp.col { border-radius: 40% 40% 4px 4px; transform-origin: 50% 100%; }
#fx-layer svg.fx-svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
#fx-layer .fx-bolt { position: absolute; inset: 0; width: 100%; height: 100%; filter: drop-shadow(0 0 6px #ffe14d); }
/* the telegraph (late Oct 2026): a fighter of yours an enemy's next move is aimed at wears a reticle; a zone, a red dashed outline */
.tok .aim-mark { position: absolute; z-index: 2; left: 50%; top: -5px; width: calc(var(--sz, 64px) + 10px); height: calc(var(--sz, 64px) + 10px); transform: translateX(-50%); border-radius: 50%; border: 2px solid #ff5a4a; box-shadow: 0 0 10px #ff5a4a99; pointer-events: none; animation: aim-pulse 1.4s ease-in-out infinite; }
.tok .aim-mark::before, .tok .aim-mark::after { content: ''; position: absolute; left: 50%; top: -7px; bottom: -7px; width: 2px; margin-left: -1px; background: linear-gradient(#ff5a4a 0 7px, transparent 7px calc(100% - 7px), #ff5a4a calc(100% - 7px)); }
.tok .aim-mark::after { transform: rotate(90deg); }
.stage .aim-lines { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 3; pointer-events: none; overflow: visible; } /* the telegraph's lines, the turn long */
.stage .aim-lines line { stroke: #ff5a4a; stroke-width: 2; stroke-dasharray: 8 7; stroke-linecap: round; opacity: .75; filter: drop-shadow(0 0 3px #ff5a4a); animation: aim-dash .9s linear infinite; }
@keyframes aim-dash { to { stroke-dashoffset: -15; } } /* the dashes run towards the mark */
@media (prefers-reduced-motion: reduce) { .stage .aim-lines line { animation: none; } }
@keyframes aim-pulse { 50% { transform: translateX(-50%) scale(1.08); box-shadow: 0 0 16px #ff5a4acc; } }
@media (prefers-reduced-motion: reduce) { .tok .aim-mark { animation: none; } }
#fx-layer .fx-num { position: absolute; font-weight: 900; white-space: nowrap; text-shadow: 0 1px 2px #000, 0 0 8px #000a; }
/* the five stat tiles (GDD §6.3): two or three to a row on narrow screens */
.stat-tiles { display: grid; gap: 8px; grid-template-columns: repeat(5, minmax(0, 1fr)); margin-top: 10px; }
@container (max-width: 640px) { .stat-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@container (max-width: 380px) { .stat-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.stat-tile { display: grid; gap: 2px; justify-items: center; text-align: center; padding: 10px 6px; border-radius: 10px; background: var(--panel2); border: 1px solid var(--line); }
.stat-name { font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.stat-val { font-size: 1.7rem; line-height: 1.1; }
.stat-tile small { font-size: .72rem; }
.stat-placed { color: var(--accent); }
.stat-btns { display: flex; gap: 6px; margin-top: 6px; }
.stat-btns .btn { min-width: 44px; }
/* the combat sheet (late Oct 2026): every number added up, in groups */
.sheet { display: grid; gap: 12px 18px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); margin-top: 8px; }
.sh-group h4 { margin: 0 0 4px; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.sh-row { display: flex; justify-content: space-between; gap: 10px; padding: 3px 0; border-bottom: 1px dotted var(--line); font-size: .86rem; }
.sh-row b { font-variant-numeric: tabular-nums; text-align: right; }
.sh-row .muted { font-weight: 400; }
/* Info: the glossary */
.info-sec summary { cursor: pointer; list-style: none; }
.info-sec summary::-webkit-details-marker { display: none; }
.info-sec summary h2 { display: inline-flex; align-items: center; gap: 8px; margin: 0; }
.info-sec[open] summary { margin-bottom: 8px; }
.info-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.info-table tr { border-top: 1px solid var(--line); }
.info-table tr:first-child { border-top: 0; }
.info-table tr:nth-child(even) { background: #ffffff06; }
.info-table th, .info-table td { padding: 10px 12px; vertical-align: top; text-align: left; line-height: 1.5; }
.info-table th { width: 190px; font-weight: 600; white-space: normal; }
.info-table td { color: var(--muted); }
@container (max-width: 560px) { .info-table th, .info-table td { display: block; width: auto; } .info-table th { padding-bottom: 0; } }
.info-link { font-size: .8rem; }
.pw-empty { padding: 8px 12px; border: 1px dashed var(--line); border-radius: 10px; color: var(--muted); }
/* jobs: one compact row each */
.job-needs { display: flex; flex-wrap: wrap; gap: 4px; }
.job-needs .chip { text-transform: none; letter-spacing: 0; font-size: .7rem; }
.chip.met { background: #4ade8022; color: var(--good); }
.chip.unmet { background: #f8717122; color: var(--bad); }
.chip.main { outline: 1px solid currentColor; }
.chip.good { background: #4ade8022; color: var(--good); }

.chip { font-size: .66rem; }

/* ---------- the battle screen (GDD §8) ----------
   A battle lane: six zones of a fixed width on one floor; fighters are portrait tokens in a ring that drains with their health,
   Guard on the ring, status dots on it, the next move above enemies. Below: your bar, then a hotbar of skill tiles grouped by
   power, each power ending in its Ultimate's dial. Details are tooltips, so nothing on the field ever changes size. */
#battle { gap: 10px; }
.bt-head { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 12px; }
.bt-title { display: grid; min-width: 0; }
.bt-title h1 { margin: 0; font-size: 1.3rem; line-height: 1.15; }
.bt-title small { color: var(--muted); }
.bt-turn { display: grid; justify-items: center; min-width: 170px; padding: 6px 20px; border-radius: 999px; border: 1px solid var(--line); background: #080a0ed9; }
.bt-turn b { font: 800 .95rem/1.15 var(--display); letter-spacing: .1em; text-transform: uppercase; }
.bt-turn span { font-size: .72rem; line-height: 1.3; min-height: 1.3em; color: var(--muted); }
.bt-turn.t-go { border-color: var(--accent); box-shadow: 0 0 22px #a2d7cf33; }
.bt-turn.t-go b { color: var(--accent); }
.bt-turn.t-foe b { color: var(--bad); }
.bt-turn.t-wait b, .bt-turn.t-down b, .bt-turn.t-over b { color: var(--muted); }
.bt-env { grid-column: 1 / -1; grid-row: 2; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; } /* the weather and what it does, a strip of its own at the top (late Oct 2026) */
.bt-env .tag { font-size: .78rem; background: #080a0ecc; } .bt-env .tag.up { color: var(--good); border-color: #4ade8055; } .bt-env .tag.down { color: var(--bad); border-color: #f8717155; }
.stage-wrap { position: relative; } .stage-sky { position: absolute; inset: 0; z-index: 4; width: 100%; height: 100%; border-radius: 16px; pointer-events: none; opacity: .75; }
#field[hidden] + .stage-sky { display: none; }
.fear-eye { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 16px; pointer-events: none; opacity: 0; transition: opacity 1.4s; } .fear-eye.on { opacity: 1; } /* Fear Inducement's eye, behind the field (fear-eye.js) */
.stage-wrap:has(> #field[hidden]) .fear-eye { display: none; }
.stage-wrap:has(> .fear-eye.on) > .stage { background: radial-gradient(ellipse 60% 70% at 22% 105%, #38c2ff24, transparent 70%), radial-gradient(ellipse 60% 70% at 78% 105%, #f8717124, transparent 70%), linear-gradient(180deg, #080a0e33, #080a0e66 45%, #080a0ee6 85%); }
/* folding cards (late Oct 2026): Law and chaos, Here now */
details.fold > summary { display: flex; align-items: center; gap: 8px; cursor: pointer; list-style: none; } details.fold > summary::-webkit-details-marker { display: none; }
details.fold > summary h3 { margin: 0; margin-right: auto; } details.fold[open] > summary { margin-bottom: 10px; }
.fold-chev { flex: none; color: var(--muted); transition: transform .15s; } details.fold[open] > summary .fold-chev { transform: rotate(90deg); }
.fold-body { display: grid; gap: 10px; }

.stage { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) 28px repeat(3, minmax(0, 1fr)); height: 330px; border-radius: 16px; border: 1px solid #ffffff1a; overflow: hidden;
  background: radial-gradient(ellipse 60% 70% at 22% 105%, #38c2ff24, transparent 70%), radial-gradient(ellipse 60% 70% at 78% 105%, #f8717124, transparent 70%), linear-gradient(180deg, #080a0e80, #080a0eeb 75%); }
.stage::after { content: ''; position: absolute; inset: 0; z-index: 2; pointer-events: none; border-radius: inherit; transition: box-shadow .8s; }
.stage.tired::after { box-shadow: inset 0 0 calc(50px + 60px * var(--tired)) calc(8px + 16px * var(--tired)) rgb(130 30 8 / calc(.5 + .4 * var(--tired))); } /* Exhaustion: the edges darken as it grows (late Oct 2026) */
.bt-round { display: inline-block; margin-left: 2px; padding: 1px 8px; border-radius: 999px; font-weight: 700; } .bt-round.warn { color: #f0c46a; background: #e0b25a1f; border: 1px solid #e0b25a66; } .bt-round.tired { color: #ff9a6e; background: #ff6a3a26; border: 1px solid #ff6a3a8c; }
.stage::before { content: ''; position: absolute; left: 0; right: 0; bottom: 30px; height: 1px; background: linear-gradient(90deg, transparent, #ffffff26 20%, #ffffff26 80%, transparent); }
.zone { position: relative; min-width: 0; min-height: 0; display: grid; grid-template-rows: minmax(0, 1fr) 30px; transition: background .2s; }
.zone + .zone { box-shadow: inset 1px 0 #ffffff0d; }
.zone.line-l::before, .zone.line-r::after { content: ''; position: absolute; top: 4px; bottom: 4px; width: 3px; border-radius: 2px; background: repeating-linear-gradient(180deg, #f1e6c8 0 8px, transparent 8px 13px); pointer-events: none; } /* a line nothing is aimed across (late Oct 2026, Boundary Manipulation) */
.zone.line-l::before { left: 0; } .zone.line-r::after { right: 0; }
.zone.reach { background: linear-gradient(180deg, transparent, #a2d7cf14); }
.zone.reach .zlabel { color: var(--accent); }
.zone.aimed { background: linear-gradient(180deg, #ff5a4a14, #ff5a4a3d); box-shadow: inset 0 0 0 2px #ff5a4acc, inset 0 0 30px #ff5a4a40; animation: zone-aim 1.4s ease-in-out infinite; } .zone.aimed .zlabel { color: #ff8a7a; } /* a telegraphed zone, filled (2026-11-02, the user's): after .zone + .zone, whose divider took its outline off all but the first */
@keyframes zone-aim { 50% { background-color: #ff5a4a1c; } }
@media (prefers-reduced-motion: reduce) { .zone.aimed { animation: none; } }
.zone.tz { cursor: pointer; background: linear-gradient(180deg, #a2d7cf0a, #a2d7cf26); box-shadow: inset 0 0 0 2px #a2d7cfcc; }
.crowd { min-height: 0; display: flex; flex-wrap: wrap; align-content: center; justify-content: center; /* in the middle of the zone, however many */ gap: 22px 6px; padding: 28px 4px 6px; }
.zlabel { display: flex; justify-content: center; align-items: center; gap: 5px; padding: 0; font: inherit; font-size: .6rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: #ffffff59; background: none; border: 0; }
.zlabel .i { width: 12px; height: 12px; }
.zlabel small { padding: 0 6px; border-radius: 999px; background: #ffffff12; color: var(--muted); letter-spacing: 0; font-weight: 600; }
.zlabel.targetable { color: var(--accent); }
.vs { display: grid; place-items: center; background: linear-gradient(180deg, transparent, #ffffff0f 50%, transparent); }
.vs span { writing-mode: vertical-rl; font: 900 .66rem var(--display); letter-spacing: .4em; color: #ffffff3d; }

/* tokens: the zone sets the size (one fighter: big; two to four: medium; five or more: small) */
.zone.c1 { --sz: 76px; --tw: 96px; } .zone.c2 { --sz: 46px; --tw: 62px; } .zone.c3 { --sz: 34px; --tw: 44px; }
.tok { position: relative; display: grid; justify-items: center; gap: 4px; width: var(--tw); padding: 0; font: inherit; color: inherit; background: none; border: 0; cursor: default; }
.ring { position: relative; display: grid; place-items: center; border-radius: 50%; background: conic-gradient(var(--rc, var(--good)) var(--hp), var(--shield) 0 var(--hs, var(--hp)), #ffffff1f 0); transition: background .4s; }
.tok .ring { width: var(--sz); height: var(--sz); padding: 3px; }
.tok.enemy .ring { --rc: var(--bad); }
.tok.me .ring { box-shadow: 0 0 0 2px #a2d7cfcc, 0 0 16px #a2d7cf55; }
.tok.k-elite .ring { outline: 2px solid #b585ffcc; outline-offset: 2px; }
.tok.k-boss .ring, .tok.k-final .ring, .tok.k-raid .ring { outline: 2px solid #dfe6f0d9; outline-offset: 3px; } /* steel, not red: the red health ring inside it has to read (late Oct 2026, the user's) */
.zone.c1 .tok.k-boss, .zone.c1 .tok.k-final { --sz: 96px; }
.zone.c1 .tok.k-raid { --sz: 106px; --tw: 110px; } /* a raid boss: 40% bigger than an ordinary token */
.zone.c1 .tok.giant { --sz: 96px; } .zone.c2 .tok.giant { --sz: 58px; } .zone.c3 .tok.giant { --sz: 43px; } /* Giant: a boss's size (the user's, 2026-10-29); in a crowded zone the same 1.25x */
.zone.c1 .tok.k-boss.giant, .zone.c1 .tok.k-final.giant { --sz: 106px; --tw: 110px; } /* a boss that goes Giant: a raid boss's */
.pic { display: grid; place-items: center; width: 100%; height: 100%; border-radius: 50%; overflow: hidden; background: #080a0e; }
.pic img { width: 100%; height: 100%; object-fit: cover; }
.pic .avatar { width: 100%; height: 100%; border: 0; font-size: .9rem; }
.glyph { display: grid; place-items: center; width: 100%; height: 100%; color: var(--muted); }
.glyph .i { width: 52%; height: 52%; }
.tok .flank { max-width: 100%; overflow: hidden; padding: 0 6px; border-radius: 999px; border: 1px solid #ff5a4a77; background: #3a0f0ae6; color: #ffb4a8; font-size: .58rem; font-weight: 800; letter-spacing: .05em; line-height: 1.5; text-transform: uppercase; } /* flanked (late Oct 2026) */
.tok .tn { max-width: 100%; font-size: .7rem; font-weight: 700; line-height: 1.1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-shadow: 0 1px 3px #000; }
.zone.c3 .tok .tn { display: none; }
.tok .gd { position: absolute; right: -5px; bottom: -3px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 6px; background: #080a0e; border: 1px solid #ffffff4d; font-size: .6rem; font-weight: 800; line-height: 16px; text-align: center; }
.tok .gd.broken { background: var(--bad); border-color: var(--bad); color: #fff; }
.tok .dots { position: absolute; left: -3px; top: -3px; display: flex; gap: 2px; }
.tok .dots i { width: 9px; height: 9px; border-radius: 50%; border: 1.5px solid #080a0e; background: var(--sc); }
.tok .chant { position: absolute; top: -8px; right: 0; padding: 0 5px; border-radius: 6px; background: var(--accent); color: var(--accent-ink); font-size: .7rem; font-weight: 900; line-height: 14px; }
.st-ctl { --sc: #b585ff; } .st-hurt { --sc: #ff7a2f; } .st-good { --sc: #4ade80; } .st-cold { --sc: #9fe3ff; } .st-hide { --sc: #9aa3b2; }
.chip.st-ctl { color: #cdb8ff; } .chip.st-hurt { color: #ffa36b; } .chip.st-good { color: #86efac; } .chip.st-cold { color: #bfeeff; }
.tok .intent { position: absolute; bottom: calc(100% + 3px); left: 50%; transform: translateX(-50%); z-index: 2; max-width: 150px; padding: 2px 8px; border-radius: 999px; background: #1a1505eb; border: 1px solid #a2d7cf66; color: var(--accent); font-size: .62rem; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; pointer-events: none; }
.zone.c1 .tok .intent { max-width: 144px; } .zone.c2 .tok .intent { max-width: 76px; } .zone.c3 .tok .intent { max-width: 50px; } /* never wider than the zone */
.tok .i-brief, .tok .i-tiny, .zone.c2 .tok .i-full, .zone.c3 .tok .i-full { display: none; }
.zone.c2 .tok .i-brief { display: inline; }
.zone.c3 .tok .i-tiny { display: inline; }
.tok .preview { position: absolute; bottom: calc(100% + 3px); left: 50%; transform: translateX(-50%); z-index: 3; padding: 2px 8px; border-radius: 6px; background: var(--accent); color: var(--accent-ink); font-size: .62rem; font-weight: 800; white-space: nowrap; box-shadow: 0 2px 10px #000a; pointer-events: none; }
.tok:has(.preview) .intent { visibility: hidden; }
.tok.targetable { cursor: pointer; animation: none; color: inherit; }
.tok.targetable .ring { box-shadow: 0 0 0 3px var(--accent), 0 0 18px #a2d7cf99; animation: ringpulse .8s ease-in-out infinite alternate; }
@keyframes ringpulse { to { box-shadow: 0 0 0 5px #a2d7cf88, 0 0 26px #a2d7cfcc; } }
.tok.acted .ring { filter: saturate(.6) brightness(.85); }
.tok.down { opacity: .35; filter: grayscale(1); }

/* the HUD: your bar, the hotbar, the items tray */
.hud { display: grid; gap: 10px; padding: 10px 14px 12px; border-radius: var(--hud-r, 16px); border: 1px solid var(--hud-edge, #ffffff1a); background: var(--hud-bg, #080a0eeb); box-shadow: 0 10px 30px #0007; }
.hud.idle .hotbar { filter: saturate(.5); }
.hud .prompt { margin: -2px 0 0; }
.sky-pick { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.mebar { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; }
.mebar .ring { width: 54px; height: 54px; padding: 3px; box-shadow: 0 0 0 2px #a2d7cf66; }
.mb { display: grid; gap: 5px; min-width: 0; }
.mb-name { display: flex; align-items: baseline; gap: 8px; min-width: 0; }
.mb-name small { color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mb-bars { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 8px; }
.mbar { position: relative; display: block; height: 16px; border-radius: 5px; background: #ffffff14; overflow: hidden; }
.mbar i { position: absolute; inset: 0 auto 0 0; width: var(--v); background: var(--good); transition: width .35s ease-out; }
.mbar.fo i { background: var(--mental); }
.mbar.bad i { background: var(--bad); }
.mbar .sh { position: absolute; top: 0; bottom: 0; left: var(--hp); width: calc(var(--hs) - var(--hp)); background: var(--shield); transition: left .35s ease-out, width .35s ease-out; }
.mbar em { position: relative; display: block; padding: 0 8px; font-size: .7rem; font-weight: 700; font-style: normal; line-height: 16px; white-space: nowrap; text-shadow: 0 1px 2px #000; }
.mebar .chips { grid-column: auto; justify-content: flex-end; max-width: 280px; }
.hotbar { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 12px 14px; padding: 4px 2px 2px; } /* every power in view: the groups wrap onto a second row */
.grp { flex: none; display: grid; justify-items: center; gap: 5px; padding-left: 14px; border-left: 1px solid #ffffff14; }
.grp:first-child { padding-left: 0; border-left: 0; }
.zone.c1 .crowd { gap: 30px 6px; } .zone.c2 .crowd { gap: 22px 4px; } .zone.c3 .crowd { gap: 6px 3px; padding-top: 10px; }
.grp { max-width: 100%; } .grp .tiles { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px; } /* a group too wide for the bar wraps inside it (late Oct 2026) */
.gl { display: flex; align-items: center; gap: 4px; font-size: .6rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--c, var(--muted)); }
.gl .i { width: 12px; height: 12px; }
.tile { position: relative; display: grid; grid-template-rows: 28px minmax(0, 1fr); justify-items: center; align-items: center; gap: 2px; width: 66px; height: 66px; padding: 7px 4px 5px; font: inherit; color: var(--text);
  background: var(--tile-bg, linear-gradient(180deg, #ffffff12, #ffffff05)); border: 1px solid var(--tile-edge, #ffffff21); border-bottom: 3px solid var(--c, #ffffff38); border-radius: var(--tile-r, 11px); cursor: pointer; transition: transform .12s, box-shadow .12s, border-color .12s; }
.tile .ti .i { width: 24px; height: 24px; color: var(--c, var(--text)); }
.tile .tl { max-width: 100%; font-size: .58rem; font-weight: 600; line-height: 1.15; text-align: center; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.tile .cost { position: absolute; top: 3px; right: 3px; min-width: 18px; padding: 0 4px; border-radius: 999px; background: #080a0e; color: #c9b8ff; font-size: .56rem; font-weight: 800; line-height: 15px; text-align: center; }
.tile .cdn { position: absolute; inset: 0; display: grid; place-items: center; border-radius: 10px; background: #080a0ed1; font: 800 1.3rem var(--display); }
.tile:hover:not(:disabled), .tile:focus-visible { transform: translateY(-3px); border-color: var(--c, var(--accent)); box-shadow: 0 8px 18px #000a; }
.tile:disabled { opacity: .38; cursor: not-allowed; }
.tile:has(.cdn) { opacity: 1; }
.tile.picked, .dial.picked { box-shadow: 0 0 0 2px var(--accent), 0 0 16px #a2d7cf66; }
.tile.gadget { --c: var(--accent); }
.tile.arm, .tile.bag { --c: #9aa3b2; }
.tile.bag.open { border-color: var(--accent); background: #a2d7cf14; }
.dial { position: relative; display: grid; grid-template-rows: auto auto; place-content: center; justify-items: center; gap: 1px; width: 70px; height: 70px; margin-left: 4px; padding: 0; border: 0; border-radius: 50%; font: inherit; color: var(--text); cursor: pointer;
  background: conic-gradient(var(--accent) var(--m), #ffffff1a 0); }
.dial::before { content: ''; position: absolute; inset: 5px; border-radius: 50%; background: radial-gradient(circle at 50% 30%, #1c232c, #080a0e 75%); }
.dial > * { position: relative; }
.dial .ti .i { width: 22px; height: 22px; color: var(--accent); }
.dial .pc { font-size: .58rem; font-weight: 900; letter-spacing: .06em; color: var(--muted); }
.dial .tl { display: none; }
.dial.ready { box-shadow: 0 0 0 2px var(--accent), 0 0 22px #a2d7cf77; }
.dial.ready .pc { color: var(--accent); }
.dial.ready:not(:disabled) { animation: dialpulse 1.4s ease-in-out infinite alternate; }
@keyframes dialpulse { to { box-shadow: 0 0 0 3px var(--accent), 0 0 34px #a2d7cfbb; } }
.dial:disabled { cursor: not-allowed; }
.dial:hover:not(:disabled) { transform: scale(1.05); }
.tray { display: flex; flex-wrap: wrap; gap: 6px; padding: 8px; border-radius: 12px; background: #ffffff08; border: 1px dashed #ffffff26; }
.ticker { display: flex; align-items: center; gap: 8px; min-width: 0; padding: 7px 12px; border-radius: 10px; background: #080a0eb3; color: var(--muted); font-size: .8rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ticker .i { flex: none; }
#battle .log summary { cursor: pointer; font-weight: 700; color: var(--muted); }
#battle .log[open] summary { margin-bottom: 8px; }

/* tooltips */
.tip { position: fixed; z-index: 60; display: grid; gap: 6px; width: min(300px, calc(100vw - 16px)); padding: 10px 12px; border-radius: 12px; background: #0c0f14f7; border: 1px solid #ffffff2e; box-shadow: 0 14px 34px #000d; font-size: .82rem; pointer-events: none; }
.tip p { margin: 0; }
#tip.hoverable { pointer-events: auto; } /* a skill's details: point at their keywords (2026-10-30) */
#kw-tip { z-index: 70; width: min(260px, calc(100vw - 16px)); pointer-events: none; } /* a status word's: over the battle's own tooltip */
.kw { text-decoration: underline dotted; text-underline-offset: 3px; cursor: help; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; } /* a status in text (late Oct 2026, the user's) */
.kw.good { color: #86efac; } .kw.bad { color: #fca5a5; }
.chip[data-kw] { cursor: help; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.tip > b { display: flex; align-items: center; gap: 6px; }
.tip-head { display: flex; align-items: center; gap: 10px; }
.tip-head .ring { width: 46px; height: 46px; padding: 3px; flex: none; }
.tip-head > span:last-child { display: grid; min-width: 0; }
.tip-head small { color: var(--muted); }
.tip .intent { color: var(--accent); font-size: .78rem; }
.tip .guard { font-size: .74rem; color: var(--muted); }
.tip .chips { grid-column: auto; }

/* phones: the lane gets narrower and the tokens smaller; tap a token for its details; the HUD sticks to the bottom */
@container (max-width: 699px) {
  .bt-head { grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
  .bt-env { grid-column: 1 / -1; justify-content: flex-start; }
  .bt-turn { min-width: 0; padding: 5px 14px; }
  .stage { height: 236px; grid-template-columns: repeat(3, minmax(0, 1fr)) 12px repeat(3, minmax(0, 1fr)); border-radius: 12px; }
  .stage::before { bottom: 24px; }
  .zone { grid-template-rows: minmax(0, 1fr) 24px; }
  .zone.c1 { --sz: 46px; } .zone.c2 { --sz: 32px; } .zone.c3 { --sz: 24px; }
  .zone.c1 .tok.k-boss, .zone.c1 .tok.k-final { --sz: 54px; } .zone.c1 .tok.k-raid { --sz: 64px; --tw: 64px; }
  .zone.c1 { --tw: 54px; } .zone.c2 { --tw: 36px; } .zone.c3 { --tw: 26px; }
  .zone.c1 .tok.giant { --sz: 54px; } .zone.c2 .tok.giant { --sz: 40px; --tw: 40px; } .zone.c3 .tok.giant { --sz: 30px; --tw: 30px; } .zone.c1 .tok.k-boss.giant, .zone.c1 .tok.k-final.giant { --sz: 64px; --tw: 64px; }
  .tok { gap: 2px; }
  .tok .tn { font-size: .55rem; }
  .zone.c2 .tok .tn { display: none; }
  .tok .i-full, .tok .i-brief { display: none !important; }
  .tok .i-tiny { display: inline !important; }
  .tok .intent { padding: 1px 5px; font-size: .55rem; }
  .tok .gd { min-width: 14px; height: 14px; line-height: 12px; font-size: .5rem; right: -4px; }
  .tok .dots i { width: 7px; height: 7px; }
  .crowd { gap: 14px 2px; padding: 18px 1px 4px; }
  .zlabel { font-size: .48rem; letter-spacing: .06em; }
  .zlabel small { display: none; }
  .vs span { font-size: .5rem; letter-spacing: .2em; }
  .hud { position: sticky; bottom: 0; z-index: 3; margin: 0 -12px -12px; padding: 8px 10px 10px; border-radius: 14px 14px 0 0; box-shadow: 0 -10px 30px #000c; }
  .mebar { grid-template-columns: auto minmax(0, 1fr); gap: 10px; }
  .mebar .ring { width: 42px; height: 42px; }
  .mebar .chips { display: none; }
  .mb-name small { display: none; }
  .hotbar { flex-wrap: nowrap; gap: 10px; overflow-x: auto; scrollbar-width: thin; }
  .grp { max-width: none; } .grp .tiles { flex-wrap: nowrap; } /* phones: one row, scrolled sideways */
  .grp { padding-left: 10px; }
  .tile { width: 56px; height: 58px; padding: 5px 3px 4px; grid-template-rows: 24px minmax(0, 1fr); }
  .tile .ti .i { width: 20px; height: 20px; }
  .dial { width: 60px; height: 60px; }
}

/* ---------- the bottom of the side menu: guide, announcements, mailbox and the account; on phones it opens from More ---------- */
.nav-foot { position: static; inset: auto; width: auto; height: auto; margin: auto 0 0; padding: 8px 0 0; overflow: visible; display: flex; flex-direction: column; gap: 2px;
  color: inherit; background: none; border: 0; border-top: 1px solid var(--line); }
.sidenav .nav-foot a, .sidenav .nav-foot button { min-height: 38px; padding: 6px 12px; font-size: .9rem; }
.sidenav .nav-more { display: none; }
.sidenav .count { margin-left: auto; min-width: 20px; padding: 0 6px; border-radius: 999px; background: var(--bad); color: #fff; font-size: .72rem; line-height: 20px; text-align: center; }
@media (max-width: 719px) {
  .sidenav .nav-more { display: flex; flex: 1; flex-direction: column; gap: 0; padding: 4px 0; font-size: 11px; text-align: center; position: relative; }
  .nav-foot:not(:popover-open) { display: none; }
  .nav-foot { position: fixed; inset: auto 8px calc(64px + env(safe-area-inset-bottom)) auto; width: 240px; padding: 6px; color: var(--text); background: var(--panel); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 14px 36px #000c; }
  .sidenav .nav-foot a, .sidenav .nav-foot button { flex: none; flex-direction: row; gap: 10px; min-height: 42px; padding: 8px 12px; font-size: 14px; }
  .sidenav .nav-foot .dot { position: static; margin: 0 0 0 auto; }
  .sidenav > a .count { position: absolute; top: 0; left: 50%; margin-left: 4px; min-width: 18px; line-height: 18px; padding: 0 5px; font-size: .68rem; } /* on the tab bar's icon */
}
.notes { display: grid; gap: 6px; padding-left: 1.2em; list-style: disc; }

/* ---------- shop: every ware as a tile by category, the picked one beside it ---------- */
@container (min-width: 700px) { .split.wide-right.shop-split { grid-template-columns: minmax(0, 1fr) 300px; } }
.catalog { gap: 16px; }
.cat { display: grid; gap: 8px; }
.cat h3 { display: flex; align-items: center; gap: 6px; font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.cat h3 small { text-transform: none; letter-spacing: 0; }
.cat h3 .i { width: 16px; height: 16px; }
.wares { display: grid; gap: 6px; grid-template-columns: repeat(auto-fill, minmax(62px, 1fr)); }
.ware-row { display: grid; grid-template-columns: 74px minmax(0, 1fr); gap: 8px; align-items: center; }
.ware-row > small { font-weight: 600; }
.ware { position: relative; display: grid; place-items: center; align-content: center; gap: 4px; aspect-ratio: 1; padding: 4px 2px; cursor: pointer; font: inherit; color: inherit;
  border-radius: 10px; background: color-mix(in srgb, var(--rar) 12%, var(--panel2)); border: 1px solid var(--line); border-bottom: 4px solid var(--rar); } /* rarity: the bar and the tint, as in the Bag */
.ware .i { color: color-mix(in srgb, var(--rar) 55%, #fff); }
.ware .i { width: 24px; height: 24px; stroke-width: 1.75; }
.ware .wp { font-size: .68rem; font-weight: 700; line-height: 1; white-space: nowrap; }
.ware .wn { position: absolute; top: 3px; right: 5px; font-size: .6rem; font-weight: 700; color: var(--accent); }
.ware:hover { background: color-mix(in srgb, var(--rar) 16%, var(--panel2)); }
.ware[aria-pressed="true"] { box-shadow: 0 0 0 2px #fff; } /* picked: white, never a rarity's colour */
.ware.out { opacity: .35; }
.ware.trinket .wp { color: var(--accent); }
#shop-detail .price { font-size: 1.15rem; }
#shop-detail .buy { flex-wrap: nowrap; } #shop-detail .buy input { width: 4.5em; } #shop-detail .buy button { flex: 1; }
.btn.hot { border-color: #a2d7cf88; }
select.sm { width: auto; min-height: 36px; padding: 0 10px; font-size: .85rem; }
@container (max-width: 520px) { .ware-row { grid-template-columns: minmax(0, 1fr); gap: 4px; } .wares { grid-template-columns: repeat(auto-fill, minmax(52px, 1fr)); } .ware .i { width: 20px; height: 20px; } }

/* ---------- jobs: your job across the top, every job as a card on a board ---------- */
.job-current { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) auto; align-items: center; gap: 18px; }
.jc-who { display: flex; align-items: center; gap: 12px; min-width: 0; }
.jc-who .stack { flex: 1; min-width: 0; }
.jc-who .avatar { width: 44px; height: 44px; border-width: 1px; } .jc-who .avatar .i { width: 22px; height: 22px; }
.jc-act { flex-wrap: nowrap; }
@container (max-width: 760px) { .job-current { grid-template-columns: minmax(0, 1fr); gap: 10px; } }
.job-board { display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(min(205px, 100%), 1fr)); align-items: start; }
.card.job-card { gap: 6px; padding: 9px 11px; align-content: start; }
.job-card.current { border-color: var(--accent); }
.job-card.locked { opacity: .7; } .job-card.locked:hover { opacity: 1; }
.job-board.compact { grid-template-columns: repeat(auto-fill, minmax(min(180px, 100%), 1fr)); gap: 6px; }
.job-board.compact .job-card { padding: 7px 10px; gap: 4px; } .job-board.compact .jc-pay { font-size: .9rem; } .job-board.compact .jc-icon { width: 24px; height: 24px; }
.board-h { display: flex; align-items: center; gap: 6px; font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-top: 6px; }
.board-h small { text-transform: none; letter-spacing: 0; }
#joblist.stack { gap: 10px; }
.jc-head { display: flex; align-items: center; gap: 8px; min-width: 0; }
.jc-head .badge { font-size: .65rem; padding: 1px 6px; }
.jc-icon { display: grid; place-items: center; flex: none; width: 30px; height: 30px; border-radius: 8px; background: var(--panel2); }
.jc-icon .i { width: 18px; height: 18px; }
.jc-name { flex: 1; min-width: 0; line-height: 1.2; }
.job-card .job-needs { align-items: center; }
.job-card .job-needs > .btn, .job-card .job-needs > .badge { margin-left: auto; }
.jc-foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; }
.jc-foot .btn { flex: none; }
.jc-pay { margin-left: auto; font-size: 1.05rem; white-space: nowrap; } .jc-pay small { font-weight: 400; color: var(--muted); font-size: .75rem; }
/* the job board (late Oct 2026 redesign): quiet tiles, every one with its details and Take */
.jc-sub { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: .74rem; color: var(--muted); }
.jc-tag { padding: 0 6px; border-radius: 999px; border: 1px solid var(--line); font-size: .66rem; line-height: 1.5; color: var(--text); }
.jc-tag[data-kw], .jc-free[data-kw] { cursor: help; } /* a job's kind: its meaning on a pointer, a held finger or focus */
.jc-tag.hot { border-color: #a2d7cf66; color: var(--accent); } .jc-tag.remote { border-color: #38c2ff77; color: var(--external); } .jc-tag.free { border-color: #b585ff77; color: var(--mental); }
.job-card.remote { border-color: #38c2ff44; } .job-card.freelance { border-color: #b585ff44; } .jc-free { color: var(--mental); } .job-card.current { border-color: var(--accent); } .jc-remote { color: var(--external); } /* remote jobs: blue (late Oct 2026); yours stays gold */ .jc-tag.mine { border-color: var(--accent); color: var(--accent); }
.jc-bar { display: block; height: 3px; border-radius: 3px; background: #ffffff12; overflow: hidden; } .jc-bar i { display: block; height: 100%; width: var(--v); background: var(--muted); }
.job-card.current .jc-bar i { background: var(--accent); }
.jc-fit { display: grid; gap: 3px; } .jc-fit-row { display: grid; grid-template-columns: 14px minmax(0, 1fr) auto; gap: 7px; align-items: center; font-size: .78rem; }
.jc-fit-row .i { width: 13px; height: 13px; color: var(--muted); } .jc-fit-row span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .jc-fit-row b { font-variant-numeric: tabular-nums; font-weight: 600; }
.jc-fit-row.none { color: var(--muted); } .jc-fit-row.none b { font-weight: 400; }
.job-card .btn { justify-self: start; }

.preorder .pre-pick { display: grid; gap: 8px; padding: 10px 0 20px; border-top: 1px solid var(--line); position: sticky; bottom: -16px; background: var(--panel); z-index: 1; } /* the picked item stays in sight while the tiles scroll (late Oct 2026) */
.preorder .pre-pick .buy { flex-wrap: nowrap; } .preorder .pre-pick .buy input { width: 4.5em; } .preorder .pre-pick .buy button { flex: 1; }

/* ---------- crafting ---------- */
.sidenav .phone-only { display: none; } /* Crafting: in the side menu; on phones, under More (the tab bar is full) */
@media (max-width: 719px) { .sidenav .wide-only { display: none; } .sidenav .nav-foot .phone-only { display: flex; } }
.recipe .jc-icon { border: 2px solid var(--rar); }
.recipe .job-needs .chip .i { width: 11px; height: 11px; vertical-align: -1px; }
#craft-mats .wares { grid-template-columns: repeat(auto-fill, minmax(46px, 1fr)); }
#craft-mats .ware .i { width: 20px; height: 20px; }
@container (max-width: 699px) { #craft-mats.item-detail { position: static; box-shadow: none; } } /* not a sticky footer here: it's long */

/* ---------- portal biomes and story events ---------- */
.card.biome { gap: 6px; border-color: #b585ff55; }
.card.biome .tag { color: var(--text); }
p.story { font-size: .95rem; line-height: 1.5; color: #d9dde5; max-width: 62ch; }

/* ---------- the waiting room ---------- */
#no-battle .people .who { flex: 0 1 auto; } /* the button sits by the name; the answer goes to the right */
#no-battle .people .badge { margin-left: auto; }
.queue { display: grid; gap: 4px; }

.result .next-up { padding: 10px 12px; border-radius: 10px; background: #a2d7cf14; border: 1px solid #a2d7cf55; }

.cat h3 .btn { margin-left: auto; text-transform: none; letter-spacing: 0; } /* Sell all, beside its header */

.pow-list .grow { display: grid; min-width: 0; } .pow-list .grow small { font-size: .72rem; } /* the power, and the mutagen it comes from */

#fx-layer .fx-veil { position: absolute; border-radius: 16px; } /* an Ultimate: the field dims around its user */
#fx-layer .fx-ult { position: absolute; display: grid; justify-items: center; font-size: 1.7rem; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; text-shadow: 0 0 18px currentColor, 0 2px 4px #000; }
#fx-layer .fx-ult small { font-size: .62rem; letter-spacing: .4em; color: #ffffffcc; text-shadow: 0 1px 3px #000; }

/* status auras (GDD §8.13): each status keeps its own small animation on the token while it lasts; --clock keeps them running smoothly across redraws */
.auras { position: absolute; inset: 0; border-radius: 50%; pointer-events: none; }
.auras i { position: absolute; inset: 0; border-radius: 50%; }
.no-battle-fx .auras { display: none; }
@media (prefers-reduced-motion: reduce) { .auras i, .auras i::before, .auras i::after { animation: none !important; } }
@keyframes au-rise { 0% { transform: translate(-50%, 0); opacity: 0; } 20% { opacity: 1; } 100% { transform: translate(-50%, -34px); opacity: 0; } }
@keyframes au-fall { 0% { transform: translate(-50%, 0); opacity: 0; } 25% { opacity: 1; } 100% { transform: translate(-50%, 30px); opacity: 0; } }
@keyframes au-pulse { 50% { opacity: .45; } }
@keyframes au-turn { to { transform: rotate(360deg); } }
@keyframes au-orbit { from { transform: translateX(-50%) scaleY(.3) rotate(0); } to { transform: translateX(-50%) scaleY(.3) rotate(360deg); } }
@keyframes au-throb { 50% { box-shadow: 0 0 0 4px #ff6b4a55, 0 0 18px 4px #ff6b4a55; } }
@keyframes au-ghost { 0%, 100% { transform: translateX(0); opacity: 0; } 50% { transform: translateX(-8px); opacity: .9; } }
@keyframes au-streak { 0% { transform: translateX(6px); opacity: 0; } 30% { opacity: 1; } 100% { transform: translateX(-14px); opacity: 0; } }
@keyframes au-twinkle { 0%, 100% { opacity: .2; } 50% { opacity: 1; } }
@keyframes au-flicker { 50% { opacity: .35; } }
@keyframes au-sheen { from { background-position: 120% 0; } to { background-position: -120% 0; } }
/* rising motes: Burn (embers), Regen, Dmg+, a cleanse's sparkle */
.au-burn { --c: #ff7a2f; box-shadow: inset 0 -12px 14px -8px #ff7a2f88; }
.au-regen { --c: #5ee38a; }
.au-dmgUp { --c: #ff4fd8; box-shadow: 0 0 12px 1px #ff4fd855; }
.au-burn::before, .au-burn::after, .au-regen::before, .au-regen::after, .au-dmgUp::before, .au-dmgUp::after { content: ''; position: absolute; left: 50%; bottom: 14%; width: 4px; height: 4px; border-radius: 50%; background: var(--c); box-shadow: -14px 5px 0 -1px var(--c), 12px 2px 0 0 var(--c), -6px 9px 0 -1px var(--c); filter: drop-shadow(0 0 3px var(--c)); animation: au-rise 1.6s ease-out infinite; }
.au-burn::after, .au-regen::after, .au-dmgUp::after { margin-left: 5px; }
/* falling drops: Wet, Wounded (blood), Slow (heavy, slow motes) */
.au-wet { --c: #3fa9ff; } .au-wound { --c: #e0404f; } .au-slow { --c: #9ca3af; box-shadow: inset 0 0 10px 1px #9ca3af55; }
.au-wet::before, .au-wet::after, .au-wound::before, .au-wound::after, .au-slow::before { content: ''; position: absolute; left: 50%; top: 8%; width: 3px; height: 5px; border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%; background: var(--c); box-shadow: -12px 6px 0 0 var(--c), 11px 3px 0 0 var(--c); animation: au-fall 1.4s ease-in infinite; }
.au-wet::after, .au-wound::after { margin-left: 4px; }
.au-slow::before { border-radius: 50%; width: 4px; height: 4px; animation-duration: 2.6s; }
/* Stun: sparks circling over the head */
.au-stun::before { content: ''; position: absolute; left: 50%; top: -20%; z-index: 1; width: 66%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle at 50% 5%, #ffe14d 0 3px, transparent 3.5px), radial-gradient(circle at 7% 62%, #ffe14d 0 3px, transparent 3.5px), radial-gradient(circle at 93% 62%, #ffe14d 0 3px, transparent 3.5px); filter: drop-shadow(0 0 3px #ffe14d); animation: au-orbit 1.2s linear infinite; }
/* Root: something closing round the feet */
.au-root { box-shadow: inset 0 -9px 10px -6px #8fbf6a; }
.au-root::before { content: ''; position: absolute; left: 6%; right: 6%; bottom: -10%; height: 24%; border-radius: 50%; border: 2px solid #8fbf6a; border-top-color: transparent; animation: au-pulse 1.4s ease-in-out infinite; }
/* Silence: a dashed ring turning slowly */
.au-silence::before { content: ''; position: absolute; inset: -7%; border-radius: 50%; border: 2px dashed #b7a6d9cc; animation: au-turn 6s linear infinite; }
/* Blind: a dark band over the eyes */
.au-blind::before { content: ''; position: absolute; left: 4%; right: 4%; top: 24%; height: 24%; border-radius: 40%; background: #120d1cd9; filter: blur(2px); animation: au-pulse 2s ease-in-out infinite; }
/* Haste: speed lines trailing behind; Dodge: an afterimage */
.au-haste::before { content: ''; position: absolute; left: -22%; top: 32%; width: 30%; height: 2px; border-radius: 2px; background: #e8fbffcc; box-shadow: -5px 10px 0 #e8fbff99, 3px 20px 0 #e8fbff88; animation: au-streak .8s linear infinite; }
.au-dodge { border: 2px solid #22d3ee66; animation: au-ghost 1.6s ease-in-out infinite; }
/* Marked and Spotted: a sight on it */
.au-mark, .au-spot { --c: #ff5d5d; }
.au-spot { --c: #ffd75e; }
.au-mark::before, .au-spot::before { content: ''; position: absolute; inset: -12%; border-radius: 4px; background:
  linear-gradient(var(--c), var(--c)) top left / 10px 2px no-repeat, linear-gradient(var(--c), var(--c)) top left / 2px 10px no-repeat,
  linear-gradient(var(--c), var(--c)) top right / 10px 2px no-repeat, linear-gradient(var(--c), var(--c)) top right / 2px 10px no-repeat,
  linear-gradient(var(--c), var(--c)) bottom left / 10px 2px no-repeat, linear-gradient(var(--c), var(--c)) bottom left / 2px 10px no-repeat,
  linear-gradient(var(--c), var(--c)) bottom right / 10px 2px no-repeat, linear-gradient(var(--c), var(--c)) bottom right / 2px 10px no-repeat;
  filter: drop-shadow(0 0 3px var(--c)); animation: au-turn 8s linear infinite; }
/* Hidden: see-through, with a sheen passing over */
.tok.stealthed .ring { opacity: .55; }
.au-stealth { background: linear-gradient(110deg, transparent 35%, #ffffff40 50%, transparent 65%) 0 0 / 220% 100% no-repeat; animation: au-sheen 2.4s linear infinite; }
/* Taunt: a red throb */
.au-taunt { animation: au-throb 1.2s ease-in-out infinite; }
/* Def+: a steel glow; Shield: a bubble; Covered: a guard on one side */
.au-defUp { box-shadow: inset 0 0 0 2px #f5c54299, inset 0 0 14px 2px #f5c54255; animation: au-pulse 2s ease-in-out infinite; }
.auras .au-shield { inset: -8%; border: 2px solid #9fd8ff88; background: radial-gradient(circle, transparent 58%, #9fd8ff22 72%, #9fd8ff4d 100%); animation: au-pulse 2.2s ease-in-out infinite; }
.au-cover::before { content: ''; position: absolute; inset: -9%; border-radius: 50%; border: 3px solid transparent; border-left-color: #f1f5f9cc; animation: au-pulse 1.8s ease-in-out infinite; }
/* Chill: a frost rim and glints; Frozen: iced over */
.au-chill { box-shadow: inset 0 0 12px 2px #9fe3ff88; }
.au-chill::before, .au-frozen::before { content: ''; position: absolute; top: 14%; right: 16%; width: 4px; height: 4px; background: #e6f8ff; transform: rotate(45deg); box-shadow: -22px 18px 0 -1px #e6f8ff, -8px 32px 0 0 #cfefff; animation: au-twinkle 1.8s ease-in-out infinite; }
.au-frozen { background: linear-gradient(160deg, #7dd3fc73, #38bdf833 50%, #7dd3fc59); box-shadow: inset 0 0 0 2px #38bdf8cc, 0 0 14px 2px #38bdf888; }
/* Broken: a red flicker */
.au-broken { box-shadow: inset 0 0 16px 3px #ff4d4d99; animation: au-flicker .9s steps(2) infinite; }
/* after every shorthand above: the shared clock (and the second wave of motes and drops half a beat later) */
.auras [class^="au-"], .auras [class^="au-"]::before, .auras [class^="au-"]::after { animation-delay: var(--clock, 0s); }
.auras .au-burn::after, .auras .au-regen::after, .auras .au-dmgUp::after { animation-delay: calc(var(--clock, 0s) - .8s); }
.auras .au-wet::after, .auras .au-wound::after { animation-delay: calc(var(--clock, 0s) - .7s); }
/* status particles (late Oct 2026): six motes a status, moving in its own way; each mote is a full-size box (so % work) with its dot on ::before */
.ap { position: absolute; inset: 0; pointer-events: none; --pt: 1.8s; --sz: 6px; }
.ap b { position: absolute; inset: 0; }
.ap b::before { content: ''; position: absolute; width: var(--sz); height: var(--sz); margin: calc(var(--sz) / -2); border-radius: 50%; background: var(--pc); box-shadow: 0 0 8px 2px var(--pc), 0 0 2px 1px #fff6; opacity: 0; animation: var(--pk) var(--pt) ease-in-out infinite; }
.ap b:nth-child(1) { --x: 24%; --y: 82%; --a: 0deg;   --dx: -18px; --k: 0; }
.ap b:nth-child(2) { --x: 50%; --y: 90%; --a: 60deg;  --dx: 16px;  --k: .5; }
.ap b:nth-child(3) { --x: 76%; --y: 80%; --a: 120deg; --dx: -12px; --k: .17; }
.ap b:nth-child(4) { --x: 36%; --y: 66%; --a: 180deg; --dx: 20px;  --k: .67; }
.ap b:nth-child(5) { --x: 64%; --y: 70%; --a: 240deg; --dx: -16px; --k: .33; }
.ap b:nth-child(6) { --x: 50%; --y: 74%; --a: 300deg; --dx: 12px;  --k: .83; }
/* rise (and fall: the same, turned over) */
.ap-rise b::before, .ap-fall b::before { left: var(--x); top: var(--y); --pk: ap-rise; }
.ap-fall { transform: rotate(180deg); }
@keyframes ap-rise { 0% { transform: translate(0, 0) scale(.5); opacity: 0; } 25% { opacity: 1; } 100% { transform: translate(calc(var(--dx) / 3), -56px) scale(1.1); opacity: 0; } }
/* orbit: the box turns, the dot rides its rim */
.ap-orbit b { animation: ap-spin var(--pt) linear infinite; }
.ap-orbit b::before { left: 50%; top: -3%; opacity: .9; animation: au-twinkle calc(var(--pt) / 2) ease-in-out infinite; }
@keyframes ap-spin { from { transform: rotate(var(--a)); } to { transform: rotate(calc(var(--a) + 360deg)); } }
/* twinkle: glints that come and go round the rim (crown: only over the head) */
.ap-twinkle b, .ap-crown b { transform: rotate(var(--a)); }
.ap-crown b { transform: rotate(calc(var(--a) / 3 - 50deg)); }
.ap-twinkle b::before, .ap-crown b::before { left: 50%; top: 6%; border-radius: 1px; --pk: ap-glint; }
.ap-crown b::before { top: -14%; }
@keyframes ap-glint { 0%, 100% { transform: rotate(45deg) scale(.2); opacity: 0; } 50% { transform: rotate(45deg) scale(1.4); opacity: 1; } }
/* drift: smoke and motes leaving the body */
.ap-drift b { transform: rotate(var(--a)); }
.ap-drift b::before { left: 50%; top: 16%; --pk: ap-out; }
@keyframes ap-out { 0% { transform: translateY(0) scale(.6); opacity: 0; } 30% { opacity: .85; } 100% { transform: translateY(-24px) scale(1.9); opacity: 0; } }
/* in: closing on the feet */
.ap-in b::before { left: 50%; top: 94%; --pk: ap-in; }
@keyframes ap-in { 0% { transform: translateX(var(--dx)); opacity: 0; } 35% { opacity: 1; } 100% { transform: translateX(0) scale(.4); opacity: 0; } }
/* streak: speed lines left behind */
.ap-streak b::before { left: 68%; top: calc(var(--y) - 40%); width: 16px; height: 3px; margin: -1.5px -8px; border-radius: 2px; --pk: ap-streak; }
@keyframes ap-streak { 0% { transform: translateX(8px); opacity: 0; } 30% { opacity: 1; } 100% { transform: translateX(-44px); opacity: 0; } }
/* what each status is made of */
.apc-burn { --pc: #ff7a2f; --pt: 1.3s; } .apc-regen { --pc: #5ee38a; --pt: 2.2s; } .apc-dmgUp { --pc: #ff4fd8; --pt: 1.5s; --sz: 5px; }
.apc-wet { --pc: #3fa9ff; --pt: 1.2s; --sz: 5px; } .apc-wound { --pc: #e0404f; --pt: 1.6s; } .apc-slow { --pc: #9ca3af; --pt: 2.8s; --sz: 7px; }
.apc-taunt { --pc: #ff6b4a; --pt: 1.6s; } .apc-defUp { --pc: #f5c542; --pt: 3.2s; --sz: 5px; } .apc-shield { --pc: #9fd8ff; --pt: 4s; --sz: 5px; } .apc-cover { --pc: #f1f5f9; --pt: 3s; --sz: 5px; }
.apc-stun { --pc: #ffe14d; --pt: 1s; --sz: 7px; } .apc-chill { --pc: #e6f8ff; --pt: 2s; --sz: 6px; } .apc-frozen { --pc: #38bdf8; --pt: 2.6s; --sz: 7px; }
.apc-mark { --pc: #ff5d5d; --pt: 1.4s; --sz: 5px; } .apc-spot { --pc: #ffd75e; --pt: 1.6s; --sz: 5px; }
.apc-silence { --pc: #b7a6d9; --pt: 2.4s; } .apc-blind { --pc: #2a2238; --pt: 2.2s; --sz: 9px; } .apc-blind b::before { box-shadow: 0 0 6px 3px #2a2238cc; }
.apc-stealth { --pc: #ffffff66; --pt: 2.6s; --sz: 5px; } .apc-broken { --pc: #ff4d4d; --pt: .9s; --sz: 5px; } .apc-dodge { --pc: #22d3ee; --pt: 1.6s; --sz: 5px; }
.apc-charm { --pc: #f472b6; --pt: 2s; } .apc-sleep { --pc: #a5b4fc; --pt: 2.6s; } .apc-doom { --pc: #7c3aed; --pt: 2.4s; } .apc-echo { --pc: #a3e635; --pt: 1.2s; }
.apc-null { --pc: #94a3b8; --pt: 2s; } .apc-absorb { --pc: #93c5fd; --pt: 1.6s; } .apc-thorns { --pc: #84cc16; --pt: 1.4s; } /* late Oct 2026 */
.apc-weaken { --pc: #b5d63a; --pt: 2.2s; } .apc-counter { --pc: #ffb020; --pt: 1.2s; } /* the fifteen more powers' (late Oct 2026) */
.apc-airborne { --pc: #dbeafe; --pt: 2.4s; } .apc-deathless { --pc: #8b1e3f; --pt: 3s; } .apc-banish { --pc: #c084fc; --pt: 1.6s; } .apc-pocket { --pc: #0ea5a4; --pt: 1.7s; } .apc-bleed { --pc: #9b111e; --pt: 2.2s; } .apc-fold { --pc: #f0abfc; --pt: 2.2s; }
.apc-siphon { --pc: #fde047; --pt: 1.4s; } .apc-reflect { --pc: #2dd4bf; --pt: 1.8s; } .apc-redirect { --pc: #fb923c; --pt: 2s; } /* each power's own (late Oct 2026) */
.apc-frost { --pc: #7dd3fc; --pt: 2s; } .apc-tether { --pc: #818cf8; --pt: 1.3s; } .apc-lucky { --pc: #4ade80; --pt: 1.7s; } .apc-unlucky { --pc: #6b21a8; --pt: 2.6s; } .apc-jinx { --pc: #c026d3; --pt: 1.9s; }
.apc-orbit { --pc: #a8a29e; --pt: 1.5s; } .apc-foreseen { --pc: #e879f9; --pt: 2.2s; } .apc-rubber { --pc: #f97316; --pt: 1.8s; } .apc-stretch { --pc: #f43f5e; --pt: 1.1s; }
.apc-root { --pc: #8fbf6a; --pt: 1.8s; } .apc-haste { --pc: #e8fbff; --pt: .8s; }
.apc-dizzy { --pc: #f8fafc; --pt: 1.2s; } .apc-corrode { --pc: #b5651d; --pt: 2.4s; } .apc-gilded { --pc: #d4a017; --pt: 1.6s; } .apc-judged { --pc: #b45309; --pt: 2.6s; } .apc-giant { --pc: #a16207; --pt: 2.8s; --sz: 7px; } /* the ten colossal powers' (late Oct 2026) */
.apc-entropic { --pc: #78716c; --pt: 2.6s; } .apc-seal { --pc: #dc2626; --pt: 2s; } .apc-garbled { --pc: #14b8a6; --pt: 1.4s; } .apc-fear { --pc: #e2e8f0; --pt: 1.8s; }
.ap b::before, .ap b { animation-delay: calc(var(--clock, 0s) - var(--pt) * var(--k)); } /* after every shorthand above: staggered, and in step across redraws */
@media (prefers-reduced-motion: reduce) { .ap { display: none; } }
.lab-power { display: flex; flex-direction: column; gap: 10px; } /* Mutagen Lab: a power to remove; the button along the bottom whatever the name's length */
.lab-power > .row { flex-wrap: nowrap; align-items: flex-start; } .lab-power > .row b { min-width: 0; } .lab-power > .row .tag { flex: none; white-space: nowrap; }
.lab-power > .btn { margin-top: auto; }
.rare-loot { color: #38bdf8; } .epic-loot { color: #c084fc; } /* a bounty's better find, in its rarity's colour */
.pw-grip { display: inline-grid; place-items: center; margin-right: 4px; color: var(--muted); cursor: grab; touch-action: none; } /* drag a power by this to reorder */
.pw-grip .i { width: 14px; height: 14px; } [data-pw].dragging { opacity: .6; outline: 2px dashed var(--c); cursor: grabbing; }
/* summons and auras on the field (GDD §8.14) */
.tok.summon .ring { transform: scale(.82); } .tok.summon .pic { filter: saturate(.75); }
.tok .left { position: absolute; left: -4px; top: -4px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 9px; background: #1d2433; border: 1px solid var(--line); font-size: 11px; line-height: 16px; text-align: center; color: var(--text); }
.tok.aura .ring::after { content: ''; position: absolute; inset: -14%; border-radius: 50%; border: 2px solid #fde68a55; box-shadow: 0 0 14px 2px #fde68a33; animation: aura-breathe 3s ease-in-out infinite; pointer-events: none; }
@keyframes aura-breathe { 50% { opacity: .45; transform: scale(1.04); } }
@media (prefers-reduced-motion: reduce) { .tok.aura .ring::after { animation: none; } }
/* eldritch areas (GDD §33): an icon where a flag would be; their own heading on the travel list */
.area-flag { display: inline-grid; place-items: center; width: 24px; height: 16px; border-radius: 3px; background: #2a1f33; color: #c4b5fd; } .area-flag .i { width: 12px; height: 12px; }
/* Mutagen Lab (redesigned late Oct 2026): pick a vial, then the slot it goes into */
.vials, .pslots { display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(min(380px, 100%), 1fr)); } .lab-buy { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.vial, .pslot { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; align-items: center; gap: 10px; min-width: 0; padding: 8px 10px 8px 8px; border: 1px solid var(--line); border-left: 4px solid var(--rar, var(--c)); border-radius: 10px; background: var(--panel); color: inherit; font: inherit; text-align: left; }
.vial { cursor: pointer; } .vial .vq { font-variant-numeric: tabular-nums; } /* how many you carry (late Oct 2026) */ .vial[aria-pressed="true"] { box-shadow: 0 0 0 2px #fff; background: var(--panel2); }
.vial .ico, .pslot .ico { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 9px; background: color-mix(in srgb, var(--rar, var(--c)) 20%, var(--panel2)); color: color-mix(in srgb, var(--rar, var(--c)) 55%, #fff); }
.vial .nm, .pslot .nm { display: grid; gap: 2px; min-width: 0; } .vial .nm small, .pslot .nm small { color: var(--muted); }
.pslot .ps-act { display: flex; gap: 6px; flex-wrap: wrap; justify-content: end; }
.pslot.free, .pslot.locked { --c: var(--line); border-style: dashed; border-left-width: 1px; background: transparent; } .pslot.locked { color: var(--muted); }
.btn.danger { border-color: var(--bad); color: var(--bad); }
.dojo-reqs { gap: 8px; } .req.short { color: var(--bad); border-color: var(--bad); }
.dojo-pw { border-left: 3px solid var(--c); } .dojo-pw h3 { display: flex; align-items: center; gap: 6px; margin: 0 0 6px; }
.dojo-skill { padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: #0003; }
.deals-h { margin: 10px 0 4px; font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); } .deals-h small { text-transform: none; letter-spacing: 0; color: var(--muted); } /* duty-free: this flight's deals, then the rest */
.danger { display: inline-flex; gap: 1px; vertical-align: -2px; color: var(--accent); } .danger .i { width: 12px; height: 12px; fill: currentColor; } .danger.d3 { color: #f87171; } /* a bounty's danger: 1-3 stars */
/* the Mission Board (late Oct 2026 redesign): a job a row, what it is and where on the left; what it pays and its button in columns down the card (phones: under it) */
.board-list { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; column-gap: 14px; }
.board-list > li { display: grid; grid-column: 1 / -1; grid-template-columns: subgrid; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); }
.board-list > li:first-child { border-top: 0; padding-top: 0; } .board-list > li:last-child { padding-bottom: 0; }
.board-list > li > :first-child { min-width: 0; } .board-list > li > :first-child > small { display: block; margin-top: 3px; }
.board-list .pay { display: grid; justify-items: end; white-space: nowrap; } .board-list .chip { font-size: .72rem; }
@container (max-width: 520px) { .board-list > li { grid-template-columns: minmax(0, 1fr) auto; row-gap: 8px; } .board-list > li > :first-child { grid-column: 1 / -1; } .board-list .pay { display: flex; align-items: baseline; gap: 8px; } }
/* skill cards (late Oct 2026): what using it does as a list; a passive part boxed apart; a passive skill dashed; the next rank's changes only */
.skill .fx { margin: 0; padding-left: 18px; list-style: disc; font-size: .85rem; display: grid; gap: 2px; } .skill .fx li::marker { color: var(--c); }
.skill .always { display: grid; gap: 4px; padding: 6px 8px; border-radius: 8px; border: 1px dashed color-mix(in srgb, var(--c) 60%, transparent); background: color-mix(in srgb, var(--c) 9%, transparent); }
.skill.passive { border-left-style: dashed; } .skill.passive .always { border: 0; padding: 0; background: none; }
.pas-badge { display: inline-flex; align-items: center; gap: 4px; font-size: .68rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--c, var(--accent)); }
.abs-note { display: flex; align-items: center; gap: 5px; margin-top: 6px; color: #e3b94a; } /* an Absolute skill, or what it will be (late Oct 2026) */
.abs-note svg { width: 14px; height: 14px; flex: none; }
.skill-head .pas-badge { padding: 2px 7px; border-radius: 999px; border: 1px solid color-mix(in srgb, var(--c) 50%, transparent); }
.skill .next { display: flex; align-items: center; gap: 4px; color: var(--muted); }
/* a power's tier (late Oct 2026): 1 plain, 2 silver-blue, 3 gold */
.ptier { font-weight: 700; } .ptier.t2, .tname.t2 { color: #93c5fd; } .ptier.t3, .tname.t3 { color: #fbbf24; } /* a power's tier: its name's colour (tier 1 plain) */
.pow-list .pow-group { list-style: none; padding: 10px 6px 4px; border: 0; color: var(--c); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.stat-plus { margin-left: 4px; font-size: .62em; color: var(--good, #4ade80); vertical-align: .35em; } .stat-plus.neg { color: var(--bad, #f87171); } /* a stat: base and your points, then what gear (a resort, passives) adds or takes */
/* the +1/+5 preview (late Oct 2026): before → after, one row a thing; holding a button on a phone shows it, so no callout or selection */
.tip-rows { border-collapse: collapse; font-variant-numeric: tabular-nums; } .tip-rows td { padding: 2px 8px 2px 0; } .tip-rows td:nth-child(n+2) { text-align: right; } .tip-rows td:last-child { padding-right: 0; font-weight: 600; }
.stat-btns { -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; }

/* ---------- customisation (GDD §34): supporter looks. Real materials (metal, stone, wood), nothing that reads as a status in a fight ---------- */
.sidenav button:disabled { opacity: .45; cursor: default; } .sidenav button:disabled:hover { background: none; color: var(--muted); } /* Customise: not open yet */
/* portrait frames: the border shows the material; padding-box keeps the monogram's colour inside */
.avatar.framed { border-width: 2px; border-color: transparent; background: linear-gradient(hsl(var(--h, 210) 18% 30%) 0 0) padding-box, var(--fr) border-box; } /* a colour can't be a first layer */
.avatar.fr-bronze { --fr: linear-gradient(135deg, #e0a872, #8a5a2b 45%, #c98d55 70%, #6b4120); }
.avatar.fr-steel { --fr: linear-gradient(135deg, #e6ebf0, #7d8792 45%, #c3cad2 70%, #5b636c); }
.avatar.fr-silver { --fr: linear-gradient(135deg, #fff, #a9b0b8 40%, #eef1f4 60%, #8c939b); box-shadow: 0 0 6px #e6ebf055; }
.avatar.fr-jade { --fr: linear-gradient(135deg, #a8e6c2, #2f7d55 45%, #6fc093 70%, #1d5238); box-shadow: 0 0 6px #6fc09355; }
.avatar.fr-gold { --fr: linear-gradient(135deg, #fff1b8, #c9962b 40%, #ffe07a 60%, #8f6514); box-shadow: 0 0 8px #ffd25a66; }
.avatar.fr-obsidian { --fr: linear-gradient(135deg, #3b3547, #0c0b10 40%, #d9b65c 50%, #0c0b10 60%, #2a2533); box-shadow: 0 0 0 1px #d9b65c55, 0 0 8px #000; }
/* name colours; the top tier is a metal sheen (a drop shadow, as a text shadow would muddy it) */
.nc-amber { color: #f5b049; } .nc-sky { color: #7cc4ff; } .nc-sage { color: #9fd3a0; }
.nc-coral { color: #ff8f7a; } .nc-violet { color: #c4a3ff; } .nc-teal { color: #4fd6c8; }
.nc.nc-gilded, .nc.nc-frost, .nc.nc-ember { -webkit-text-fill-color: transparent; -webkit-background-clip: text; background-clip: text; text-shadow: none; filter: drop-shadow(0 1px 1px #000c); }
.nc-gilded { color: #ffd76a; background-image: linear-gradient(90deg, #fff1b8, #e0a92e 50%, #fff1b8); }
.nc-frost { color: #bfe6ff; background-image: linear-gradient(90deg, #fff, #8fd0ff 50%, #e6f6ff); }
.nc-ember { color: #ff9d4d; background-image: linear-gradient(90deg, #ffd27a, #ff6a2b 50%, #ffb35c); }
.nc .clan-tag { -webkit-text-fill-color: var(--accent); }
/* battle token bezels: a band just outside any health ring (token, battle bar, fighter card), past your own gold halo */
.ring.tk::before { content: ''; position: absolute; inset: -6px; border-radius: 50%; background: var(--tk); pointer-events: none;
  -webkit-mask: radial-gradient(closest-side, transparent calc(100% - 3px), #000 calc(100% - 2.5px)); mask: radial-gradient(closest-side, transparent calc(100% - 3px), #000 calc(100% - 2.5px)); }
.tk-brass { --tk: conic-gradient(from 30deg, #f0cd84, #8a6224, #e3b569, #6e4a18, #f0cd84); }
.tk-steel { --tk: conic-gradient(from 30deg, #eef2f6, #6f7a86, #c9d0d8, #4f5862, #eef2f6); }
.tk-silver { --tk: conic-gradient(from 30deg, #fff, #9aa3ad, #f2f4f7, #7f8892, #fff); }
.tk-walnut { --tk: conic-gradient(from 30deg, #a8754a, #5a3a20, #8f6038, #4a2e18, #a8754a); }
.tk-gold { --tk: conic-gradient(from 30deg, #fff3c2, #c18f22, #ffe285, #8c6210, #fff3c2); }
.tk-obsidian { --tk: conic-gradient(from 30deg, #6a6178, #16141b, #e0bf66 10%, #16141b 14%, #554d63, #16141b 70%, #e0bf66 80%, #16141b 84%, #6a6178); }
/* the Customise screen: a tile a look, previewed on your own photo and name */
.look-tile { justify-items: center; text-align: center; color: inherit; font: inherit; cursor: pointer; }
.look-tile:hover:not(:disabled) { border-color: var(--muted); }
.look-tile.on { border-color: var(--accent); cursor: default; }
.look-tile.locked { opacity: .5; cursor: not-allowed; }
.look-tile small { display: inline-flex; align-items: center; gap: 4px; min-height: 1.2em; color: var(--muted); }
.look-pre { display: grid; place-items: center; height: 72px; }
.look-pre .avatar { width: 56px; height: 56px; font-size: 20px; }
.look-pre .tok { --sz: 52px; --tw: 64px; }
.look-name { font-size: 1.05rem; }

/* hobbies (GDD §34) */
.hb-play { gap: 10px; }
.hb-bites { display: grid; gap: 2px; margin-top: 8px; color: var(--muted); }
.hb-bites b { color: var(--text); font-weight: 600; }
.hb-meter .bar { margin-top: 3px; }
.hb-fight { display: flex; gap: 16px; align-items: center; justify-content: center; }
.hb-water { width: 150px; height: 360px; border-radius: 10px; border: 1px solid #ffffff22; touch-action: none; user-select: none; -webkit-user-select: none; cursor: pointer; flex: none; }
.hb-steel { display: flex; align-items: center; gap: 8px; margin: 0; }
.hb-swatch { width: 26px; height: 26px; border-radius: 50%; border: 1px solid #ffffff33; box-shadow: 0 0 12px currentColor; }
/* the mine (late Oct 2026): the match-3 canvas, and the ores a mine digs (photos, public/img/ores) */
.mn-stage { gap: 10px; } .mn-canvas { display: block; width: 100%; aspect-ratio: 900 / 560; border-radius: 12px; background: #0b0908; touch-action: none; user-select: none; -webkit-user-select: none; cursor: pointer; }
.mn-ores { display: flex; flex-wrap: wrap; gap: 8px; }
.mn-top h3 { margin: 0; } /* the mine's screen (late Oct 2026): what's in the seam, the way down */
.mn-ore { display: grid; justify-items: center; gap: 3px; width: 104px; padding: 8px 6px 7px; border-radius: 10px; border: 1px solid var(--line); border-top: 3px solid var(--rar, #9aa3b2); background: var(--panel2); text-align: center; }
.mn-ore img { width: 56px; height: 56px; object-fit: contain; filter: drop-shadow(0 2px 3px #000); } .mn-ore b { font-size: .72rem; line-height: 1.15; } .mn-ore small { color: var(--rar, #9aa3b2); font-size: .7rem; } .mn-rich { display: inline-flex; align-items: center; gap: 3px; padding: 0 6px; border-radius: 999px; background: #a2d7cf22; color: var(--accent); font-weight: 700; } .mn-rich .i { width: 11px; height: 11px; }
/* the woods (late Oct 2026): leaf litter over the finds, one photo across the field; dug squares show the soil (img/woods) */
.wd-field { display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); grid-template-rows: repeat(var(--n), minmax(0, 1fr)); gap: 0; width: min(100%, 560px); aspect-ratio: 1; margin: 6px auto 2px; } /* equal squares, whatever is drawn in them */
.wd-field > * { min-width: 0; min-height: 0; overflow: hidden; }
.wd-sq { z-index: 2; min-width: 0; padding: 0; border: 0; border-radius: 0; background: url(img/woods/litter.jpg) calc(var(--x) * 10%) calc(var(--y) * 10%) / 1100% 1100%; box-shadow: inset 0 0 0 1px #00000070; } /* no gaps: nothing under the leaves shows between them */
button.wd-sq { cursor: pointer; } button.wd-sq:disabled { cursor: default; }
button.wd-sq:hover, .wd-sq.wd-aim { box-shadow: inset 0 0 0 2px #f5cf72, inset 0 0 14px #f5cf7266; filter: brightness(1.3); }
.wd-field.night .wd-sq { filter: brightness(.55) saturate(.65); } .wd-field.night .wd-sq.wd-aim, .wd-field.night button.wd-sq:hover { filter: brightness(.9); } /* the woods by night, under the moon */
.wd-sq.dug { z-index: 0; background-image: url(img/woods/soil.jpg); box-shadow: inset 0 2px 5px #000c; } .wd-sq.dug.wd-aim { z-index: 3; } /* the rake's reach shows over a find too */ .wd-sq.never { filter: brightness(.55) saturate(.6); }
.wd-find { z-index: 1; pointer-events: none; display: grid; place-items: center; align-content: center; gap: 2px; min-width: 0; border-radius: 6px; background: color-mix(in srgb, var(--rar) 24%, #00000055); box-shadow: inset 0 0 0 2px var(--rar), 0 0 16px color-mix(in srgb, var(--rar) 45%, transparent); text-align: center; pointer-events: none; }
.wd-find .i { width: min(44%, 46px); height: min(44%, 46px); color: var(--rar); filter: drop-shadow(0 1px 3px #000); } .wd-find small { font-size: .62rem; line-height: 1.1; color: #fff; text-shadow: 0 1px 3px #000; padding: 0 2px; }
.wd-find.small small { display: none; } .wd-find.missed { opacity: .5; box-shadow: inset 0 0 0 1px var(--rar); } .wd-find.part { background: color-mix(in srgb, var(--rar) 16%, #00000040); } /* under the leaves still covering it */
.nest { --rar: #f87171; }
.wd-find.reserve { outline: 2px dashed var(--accent); outline-offset: -5px; } .wd-find .wd-res { padding: 0 4px; border-radius: 3px; background: #000b; color: var(--accent); font-weight: 700; } /* a reserve's find, outlined where it's uncovered (late Oct 2026: a fence from the start) */
.wd-got { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 0; }
.hb-corners { display: flex; flex-wrap: wrap; gap: 4px 12px; margin: 0; padding-left: 18px; font-size: .85rem; }
.hb-corners .done { color: var(--muted); } .hb-corners .now { color: var(--accent); font-weight: 600; }

/* ---------- the Hobbies page (late Oct 2026): a card a hobby, its progress and where to do it; it grows a card a hobby ---------- */
.hb-cards { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(250px, 100%), 1fr)); }
.card.hb-card { gap: 8px; }
.hb-levels { display: grid; gap: 5px; } .hb-levels > small { color: var(--muted); } /* what each level gives (late Oct 2026) */
.hb-miles { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px; }
.hb-miles li { padding: 1px 8px; border-radius: 999px; border: 1px solid var(--line); background: var(--panel2); color: var(--muted); font-size: .74rem; }
.hb-miles li b { font: 700 .7rem var(--display); color: var(--text); } .hb-miles li.got { border-color: #4ade8066; color: var(--good); } .hb-miles li.got b { color: var(--good); }
.hb-lv { font-weight: 800; color: var(--accent); font-variant-numeric: tabular-nums; }
.hb-card small.good { color: var(--good); }
/* the forge: what each piece does, and what quality buys */
.hb-grades { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: .78rem; }
.hb-pieces { display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(min(240px, 100%), 1fr)); }
.card.hb-piece { gap: 6px; padding: 10px 12px; background: #ffffff08; }
.hb-piece > small { color: var(--muted); line-height: 1.35; }
.hb-piece > .btn { justify-self: end; }
/* ---------- jobs (late Oct 2026 redesign): your job and today's shift side by side; the board of tiles below ---------- */
.jobs-top { display: grid; gap: 14px; align-items: start; grid-template-columns: repeat(auto-fit, minmax(min(360px, 100%), 1fr)); }
.jobs-top:has(#job-shift:empty) { grid-template-columns: minmax(0, 1fr); }
.card.job-current { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.jc-icon.big { width: 44px; height: 44px; border-radius: 12px; } .jc-icon.big .i { width: 24px; height: 24px; }
.job-current .jc-who a { color: inherit; }
/* the travel toggle (late Oct 2026 redesign): Countries or Eldritch areas, two halves of one switch */
.seg-toggle { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border-radius: 14px; background: var(--panel); border: 1px solid var(--line); }
.seg-opt { display: flex; align-items: center; gap: 10px; min-width: 0; padding: 10px 12px; border: 1px solid transparent; border-radius: 10px; background: none; color: var(--muted); font: inherit; text-align: left; cursor: pointer; }
.seg-opt > .i { width: 22px; height: 22px; flex: none; }
.seg-opt span { display: grid; min-width: 0; } .seg-opt b { color: var(--text); } .seg-opt small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.seg-opt:hover { background: #ffffff08; }
.seg-opt[aria-selected="true"] { background: var(--panel2); border-color: var(--accent); color: var(--accent); }
.seg-opt.eld[aria-selected="true"] { border-color: var(--mental); color: var(--mental); }
/* ---------- cooking and the forge (late Oct 2026): the stations' steps under the stage (cook-game.js, forge-game.js) ---------- */
.ck-steps { display: flex; gap: 6px; flex-wrap: wrap; } .ck-steps span { padding: 2px 8px; border-radius: 999px; background: #ffffff0f; color: var(--muted); font-size: .75rem; }
.ck-steps .now { background: var(--accent); color: var(--accent-ink); font-weight: 700; } .ck-steps .done { color: var(--good); }
/* ---------- art (late Oct 2026, reworked): a gallery's wall, and the easel for one frame (art-ui.js) ---------- */
.gal-wall { display: grid; gap: 22px 18px; grid-template-columns: repeat(auto-fill, minmax(min(210px, 100%), 1fr)); padding: 22px 18px; border-radius: 12px;
  background: radial-gradient(120% 90% at 50% 0%, #3a352e, #24211d 70%); box-shadow: inset 0 1px 0 #ffffff12, inset 0 -30px 60px #0006; } /* a lit wall */
.gal-frame { display: grid; gap: 10px; margin: 0; justify-items: center; }
.gal-pic { display: block; width: 100%; padding: 12px; border: 0; border-radius: 3px; cursor: zoom-in; background: #efe9dc; /* the mat */
  box-shadow: 0 0 0 7px #2c1e12, 0 0 0 9px #8a6a3e, 0 10px 22px #000a; } /* a dark wooden frame with a gilt edge */
.gal-pic img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; box-shadow: inset 0 0 0 1px #0002; }
.gal-blank { cursor: default; } .gal-blank::before { content: ''; display: block; aspect-ratio: 4 / 3; border: 1px dashed #8a6a3e88; background: #e6dfd0; }
.gal-frame.mine .gal-pic { box-shadow: 0 0 0 7px #2c1e12, 0 0 0 9px var(--accent), 0 10px 22px #000a; }
.gal-plate { display: grid; justify-items: center; gap: 2px; min-width: 60%; padding: 5px 12px 6px; border-radius: 3px; text-align: center;
  background: linear-gradient(180deg, #cdb27a, #a88a52); color: #241a0c; box-shadow: 0 2px 4px #0007; } /* the brass plate */
.gal-plate b { font: 600 .8rem var(--display); letter-spacing: .04em; color: #241a0c; } .gal-plate small { color: #3d2e15; font-size: .72rem; }
.gal-plate .btn { margin-top: 4px; }
.art-view { width: min(900px, calc(100vw - 24px)); padding: 14px; } .art-view img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: contain; background: #efe9dc; border-radius: 4px; margin-bottom: 10px; }
.art-desk { gap: 10px; }
.art-canvas { width: 100%; max-width: 760px; aspect-ratio: 4 / 3; justify-self: center; border-radius: 2px; touch-action: none; cursor: crosshair; background: #f4f1e8;
  box-shadow: 0 0 0 7px #2c1e12, 0 0 0 9px #8a6a3e, 0 10px 22px #000a; margin: 9px; } /* painted in its frame */
.art-tools { gap: 6px; align-items: center; }
.art-swatch { width: 28px; height: 28px; border-radius: 50%; border: 2px solid #ffffff33; background: var(--sw); cursor: pointer; } .art-swatch[aria-pressed="true"] { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent); }
.crop-dlg { display: grid; gap: 10px; width: min(560px, 94vw); } .crop-dlg[open] { display: grid; }
.crop-stage { position: relative; width: min(100%, calc(62dvh * var(--ar))); margin: 0 auto; overflow: hidden; border-radius: 6px; background: #000; }
.crop-stage canvas { display: block; width: 100%; height: 100%; touch-action: none; cursor: grab; } .crop-stage canvas:active { cursor: grabbing; }
.crop-stage.round::after { content: ''; position: absolute; inset: 0; border-radius: 50%; box-shadow: 0 0 0 999px #000a; pointer-events: none; } /* a portrait shows round */
.crop-zoom { gap: 10px; align-items: center; } .crop-zoom input { flex: 1; }
.art-palette { flex-wrap: wrap; } /* the classic paint program's: the colour you have, two rows of 14, and any other */
.art-now { width: 46px; height: 46px; flex: none; border-radius: 4px; border: 2px solid #ffffff55; box-shadow: inset 0 0 0 2px #00000055; background: var(--sw); }
.art-swatches { display: grid; grid-template-columns: repeat(14, minmax(14px, 22px)); gap: 3px; }
.art-swatches .art-swatch { width: auto; height: auto; aspect-ratio: 1; border-radius: 3px; border: 1px solid #00000099; box-shadow: inset 0 0 0 1px #ffffff26; }
.art-swatches .art-swatch[aria-pressed="true"] { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent); }
.art-more { position: relative; overflow: hidden; } .art-more input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.art-prompt { display: flex; align-items: baseline; gap: 10px; margin: 0; padding: 8px 12px; border-radius: 10px; background: #ffffff0d; border: 1px solid var(--line); font-size: 1.05rem; } /* a prompted drawing: the prompt and its minute */
.art-prompt b { font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); } .art-prompt span:first-of-type { flex: 1; font-style: italic; }
.art-clock { font: 700 1.2rem ui-monospace, Consolas, monospace; color: var(--accent); } .art-desk.locked .art-canvas { cursor: not-allowed; opacity: .92; } .art-desk.locked .art-clock { color: var(--bad); }
.art-title-fixed { align-self: center; padding: 0 6px; } .gal-prompt { font-style: italic; opacity: .85; }
.art-sep { width: 1px; align-self: stretch; margin: 2px 4px; background: var(--line); }
.art-title { width: 200px; max-width: 100%; }
.art-dot { display: inline-block; width: var(--d); height: var(--d); border-radius: 50%; background: currentColor; vertical-align: middle; }
/* how to play a hobby (late Oct 2026) */
.hobby-guide { width: min(560px, calc(100vw - 24px)); }
/* the reward window (late Oct 2026): what the game gave you, a row each */
dialog.reward { width: min(520px, calc(100vw - 24px)); }
.rw-head { display: flex; align-items: center; gap: 10px; } .rw-head h2 { margin: 0; } .rw-head .i { width: 26px; height: 26px; color: var(--accent); }
.rw-text { margin: 0; color: var(--muted); }
.rw-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; } /* tiles side by side (late Oct 2026: a list down the window) */
.rw-row { width: 104px; display: grid; justify-items: center; align-content: start; gap: 4px; padding: 10px 6px 8px; text-align: center; border: 1px solid var(--line); border-top: 3px solid var(--rar, #9aa3b2); border-radius: 10px; background: var(--panel2); } /* grey unless a rarity or a kind colours it */
.rw-row small { color: var(--muted); line-height: 1.2; overflow-wrap: anywhere; }
.rw-row .ico { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 9px; background: color-mix(in srgb, var(--rar, #9aa3b2) 20%, var(--panel)); color: color-mix(in srgb, var(--rar, #9aa3b2) 55%, #fff); }
.rw-row b { font-variant-numeric: tabular-nums; } .rw-row.cash { --rar: var(--accent); } .rw-row.xp { --rar: #a78bfa; } .rw-row.level { --rar: var(--good); } .rw-row.energy { --rar: #facc15; }
.rw-row.law { --rar: #60a5fa; } .rw-row.chaos { --rar: var(--bad); }
.rw-notes { display: grid; gap: 2px; }
.hg-steps { margin: 0; padding-left: 22px; display: grid; gap: 8px; } .hg-tips { margin: 0; padding-left: 18px; color: var(--muted); display: grid; gap: 4px; }
/* facilityfinder.net (late Oct 2026): the facilities as grouped tiles */
.fac-groups { display: grid; gap: 10px; } .fac-groups h4 { margin: 0 0 6px; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.fac-tiles { display: grid; gap: 6px; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
.fac-tile { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 8px; align-items: center; padding: 8px 10px; border-radius: 10px; border: 1px solid var(--line); background: var(--panel); color: var(--text); font: inherit; text-align: left; cursor: pointer; }
.fac-tile > .i { grid-row: span 2; width: 20px; height: 20px; } .fac-tile small { color: var(--muted); } .fac-tile.here small { color: var(--good); }
.fac-tile:hover { border-color: var(--muted); } .fac-tile[aria-pressed="true"] { border-color: var(--accent); background: var(--panel2); }
/* the circuit's type racer (late Oct 2026) */
.hb-modes { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); }
.tr-lobby { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; } .tr-lobby li { display: flex; align-items: center; gap: 6px; }
.tr-results { margin: 0; padding-left: 22px; display: grid; gap: 4px; } .tr-results li small { margin-left: 8px; color: var(--muted); } .tr-results li.me b { color: var(--accent); }
/* the race (late Oct 2026, third pass): one road on a map, the start lights over it, the words in a panel that keeps its size */
.tr-head h3 { margin: 0; } .tr-stats { display: flex; gap: 6px; }
.tr-stats span { min-width: 58px; padding: 3px 10px; border-radius: 999px; border: 1px solid var(--line); background: var(--panel2); font: 700 .85rem/1.3 var(--display); text-align: center; font-variant-numeric: tabular-nums; }
.tr-stats .tr-place { color: var(--accent); }
.tr-stage { position: relative; } .tr-track { min-height: 232px; } /* the map's room is kept before it's drawn */
.tr-map { display: block; max-width: 100%; height: auto; margin: 0 auto; }
.tr-map path { fill: none; } .tr-kerb { stroke: #f2f2ef; stroke-width: 24; } .tr-kerb.red { stroke: #d2382e; stroke-dasharray: 6 6; }
.tr-edge { stroke: #ffffff8c; stroke-width: 19; stroke-linejoin: round; } .tr-asphalt { stroke: #2b3039; stroke-width: 16; stroke-linejoin: round; }
.tr-centre { stroke: #ffffff4d; stroke-width: 1.2; stroke-dasharray: 7 9; }
.tr-badge circle { fill: #11151c; stroke: #8d97a9; stroke-width: 1.2; } .tr-badge text { fill: var(--text); font: 700 10px var(--display); text-anchor: middle; dominant-baseline: central; }
.tr-badge.now circle { fill: var(--accent); stroke: var(--accent); } .tr-badge.now text { fill: #1a1505; } .tr-badge.done { opacity: .45; }
.tr-dot { stroke: #090b0f; stroke-width: 1.5; } .tr-dot.me { stroke: #fff; stroke-width: 2; filter: drop-shadow(0 0 4px #a2d7cf); }
.tr-drivers { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 6px; } /* a fixed grid: the places change, the rows don't (nothing below moves) */
.tr-drivers li span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tr-drivers li { --c: var(--muted); display: flex; align-items: center; gap: 6px; padding: 2px 10px 2px 3px; border-radius: 999px; border: 1px solid var(--line); background: var(--panel2); font-size: .8rem; }
.tr-drivers .pl { min-width: 26px; padding: 1px 0; border-radius: 999px; background: #090b0f; font: 700 .7rem/1.4 var(--display); text-align: center; color: var(--muted); }
.tr-drivers .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--c); } .tr-drivers li.me { border-color: #a2d7cf66; } .tr-drivers li.me span { color: var(--accent); font-weight: 700; }
/* the pedal (late Oct 2026; it was typed): the road ahead, each corner where it starts and how fast it's taken; the next corner said; the pedal itself */
.tr-ahead { display: grid; gap: 6px; }
.tr-road { position: relative; height: 34px; border-radius: 10px; overflow: hidden; background: linear-gradient(90deg, transparent calc(100% - 2px), #3a414e calc(100% - 2px)) 0 0 / calc(100% / 12) 100% repeat-x, #1b1f27; /* a mark every 3 lengths (25 m), moving past */ border: 1px solid var(--line); }
.tr-bend { position: absolute; top: 4px; bottom: 4px; min-width: 18px; display: grid; place-items: center; border-radius: 6px; font: 700 .78rem/1 var(--display); color: #080a0e; background: #facc15; }
.tr-bend.hairpin { background: #f87171; } .tr-bend.chicane { background: #fb923c; } .tr-bend.sweeper { background: #a3e635; } .tr-bend.kink { background: #4ade80; }
.tr-bend.hid { background: #3a414e; color: transparent; }
.tr-fogwall { position: absolute; top: 0; bottom: 0; right: 0; background: linear-gradient(90deg, #8d97a955, #8d97a9cc 40%); backdrop-filter: blur(2px); } /* fog, a whiteout, the dark: nothing seen past here */
.tr-me { position: absolute; left: 0; top: 50%; width: 10px; height: 18px; margin-top: -9px; border-radius: 3px; background: var(--accent); box-shadow: 0 0 8px #a2d7cf99; }
.tr-gauge { position: relative; height: 16px; margin: 14px 0 2px; border-radius: 8px; background: #1b1f27; border: 1px solid var(--line); } /* the speed bar: yours, and the next corner's mark (late Oct 2026) */
.tr-fill { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 8px; background: var(--accent); }
.tr-fill.ok { background: var(--good); }
.tr-mark { position: absolute; top: -5px; bottom: -5px; width: 3px; margin-left: -1px; border-radius: 2px; background: #fff; box-shadow: 0 0 4px #000; }
.tr-mark::after { content: attr(data-kmh); position: absolute; top: -15px; left: 50%; transform: translateX(-50%); font: 700 .65rem/1 var(--display); color: var(--muted); }
.tr-next { margin: 0; min-height: 2.6rem; padding: 6px 12px; border-radius: 10px; border: 1px solid var(--line); background: #080a0e; }
.tr-next .warn { color: var(--bad); }
.tr-next .tr-kind { display: block; font: 700 .72rem/1.75 var(--display); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.tr-pedal { display: grid; place-items: center; gap: 2px; width: 100%; min-height: 96px; border-radius: 16px; border: 2px solid #a2d7cf55; background: linear-gradient(#222733, #171a22); color: var(--text); font: inherit; cursor: pointer; touch-action: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.tr-pedal b { font: 800 1.2rem/1.2 var(--display); letter-spacing: .06em; text-transform: uppercase; } .tr-pedal small { color: var(--muted); }
.tr-pedal.on { border-color: var(--good); background: linear-gradient(#173322, #10241a); box-shadow: inset 0 3px 12px #000a; } .tr-pedal.on b::after { content: ' · go'; color: var(--good); }
.tr-pedal:disabled { opacity: .55; cursor: default; }
.tr-finish { position: absolute; inset: 0; z-index: 3; display: grid; place-content: center; justify-items: center; gap: 4px; border-radius: 12px; background: radial-gradient(ellipse at center, #080a0ee6 30%, #080a0e99); animation: tr-fin .45s ease-out; } /* over the line: your place (late Oct 2026) */
.tr-finish b { font: 800 3.4rem/1 var(--display); color: var(--text); text-shadow: 0 4px 18px #000; } .tr-finish span { font: 700 1rem/1.2 var(--display); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); } .tr-finish small { color: var(--muted); }
.tr-finish.p1 b { color: #ffd76e; } .tr-finish.p2 b { color: #d9dee8; } .tr-finish.p3 b { color: #e0a36a; }
.tr-flag { width: 72px; height: 22px; margin-bottom: 6px; border-radius: 3px; background: repeating-conic-gradient(#f2f2f2 0 25%, #16181d 0 50%) 0 0 / 11px 11px; box-shadow: 0 2px 8px #000a; }
.tr-done .tr-ahead, .tr-done .tr-pedal { opacity: .45; transition: opacity .4s; }
@keyframes tr-fin { from { opacity: 0; transform: scale(.94); } to { opacity: 1; transform: none; } }
.tr-stage.spin { animation: tr-spin .9s ease-out; } @keyframes tr-spin { 0%, 100% { box-shadow: none; } 15% { box-shadow: 0 0 0 3px var(--bad), 0 0 24px #f8717188; } }
.tr-parts { display: grid; gap: 8px; } .tr-part { display: grid; grid-template-columns: minmax(110px, 150px) 1fr; align-items: center; gap: 10px; }

/* ---------- an eldritch area's picture (late Oct 2026): behind its name on the hub, and along its row on Travel ---------- */
.weather-card.has-art { isolation: isolate; }
.weather-card.has-art::before { content: ''; position: absolute; inset: 0; z-index: -1; border-radius: 14px; background: linear-gradient(180deg, #06080c00 30%, #06080cd0 88%), var(--art) center 35% / cover no-repeat;
  -webkit-mask-image: radial-gradient(130% 110% at 50% 35%, #000 62%, #0000 100%); mask-image: radial-gradient(130% 110% at 50% 35%, #000 62%, #0000 100%); }
.dest.area { background: linear-gradient(90deg, var(--panel) 42%, #0e1217a8), var(--art) right 30% / 62% auto no-repeat, var(--panel); }
@container (max-width: 520px) { .dest.area { background: linear-gradient(90deg, var(--panel) 30%, #0e1217c8), var(--art) right center / cover no-repeat, var(--panel); } }
.pow-passive { margin: 0; padding: 8px 10px; border-radius: 8px; background: var(--panel2); border: 1px solid var(--line); } .pow-passive .i { color: var(--accent); }
.pf-rename { display: grid; gap: 4px; margin-top: 8px; } .pf-rename[hidden] { display: none; }
.pow-trait { margin: 0; } .pow-trait .i { color: var(--accent); }

/* a mail's gift (late Oct 2026): a row of icons, each with its count underneath */
.gift-tiles { --rar: var(--accent); display: flex; flex-wrap: wrap; gap: 8px; min-width: 0; } /* XP, cash and energy in gold; an item in its rarity colour */
.gift-tile { display: grid; justify-items: center; gap: 3px; min-width: 48px; }
.gift-tile .gt-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 10px; background: color-mix(in srgb, var(--rar) 16%, var(--panel2)); box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--rar) 70%, transparent); }
.gift-tile .gt-icon .i { width: 22px; height: 22px; color: var(--rar); }
.gift-tile small { font-weight: 700; font-variant-numeric: tabular-nums; color: var(--text); }
.tr-lights { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: grid; justify-items: center; gap: 8px; padding: 12px 18px 10px; border-radius: 16px; border: 1px solid var(--line); background: #090b10eb; box-shadow: 0 10px 30px #000b; pointer-events: none; } /* the start lights, over the map: a red lamp a second, then all green */
.tr-lamps { display: flex; gap: 10px; } .tr-lamps i { width: 24px; height: 24px; border-radius: 50%; background: #241212; box-shadow: inset 0 0 0 2px #3b1c1c; transition: background .12s, box-shadow .12s; }
.tr-lamps i.on { background: radial-gradient(circle at 40% 35%, #ff8a7a, #d81e12 60%, #7a0d08); box-shadow: 0 0 14px #ff3b2fcc; }
.tr-lights.go .tr-lamps i { background: radial-gradient(circle at 40% 35%, #a6ffc0, #1fbf55 60%, #0d5a28); box-shadow: 0 0 14px #3ccf6ecc; }
.tr-go { font: 800 .95rem/1 var(--display); letter-spacing: .3em; text-transform: uppercase; color: var(--muted); } .tr-lights.go .tr-go { color: #7dffa6; }
main .card.stack.cl-hero { gap: 10px; padding: 18px; background: linear-gradient(180deg, #0b0d1240, #0b0d12d9 75%), url(img/climb/valley.jpg) center 30% / cover; } /* the mountain: the view from its top behind it */
.cl-hero-top { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; } .cl-hero h2 { margin: 0; font-family: Georgia, serif; text-shadow: 0 1px 6px #000c; }
.cl-grade { display: inline-flex; gap: 4px; } .cl-grade i { width: 10px; height: 10px; border-radius: 50%; border: 1.5px solid var(--accent); } .cl-grade i.on { background: var(--accent); }
.cl-prog { position: relative; height: 6px; border-radius: 99px; background: #ffffff14; overflow: hidden; } /* how far up the route: a mark at each ledge */
.cl-prog i { position: absolute; inset: 0 auto 0 0; width: 0; background: var(--accent); transition: width .3s; } .cl-prog b { position: absolute; top: 0; bottom: 0; width: 2px; background: var(--panel); }
.ck-how kbd { padding: 0 5px; border: 1px solid #ffffff33; border-radius: 4px; font: inherit; font-size: .9em; }
.fg-stage { gap: 10px; } .fg-canvas { display: block; width: 100%; aspect-ratio: 16 / 9; border-radius: 12px; background: #0b0908; touch-action: none; user-select: none; -webkit-user-select: none; cursor: crosshair; outline: none; box-shadow: inset 0 0 0 1px var(--line); } .fg-canvas:focus-visible { box-shadow: 0 0 0 2px var(--accent); }
.saw-stage { scroll-margin: 64px 0; } .fg-canvas.saw-canvas { aspect-ratio: 700 / 1130; width: min(100%, calc((100dvh - 200px) * 700 / 1130)); margin: 0 auto; background: #1c130c; cursor: grab; } .saw-canvas:active { cursor: grabbing; } /* the woodshop's plank, upright: as tall as the screen allows */
.hb-piece.saw-locked { opacity: .55; } .hb-piece.picked { opacity: 1; grid-column: 1 / -1; box-shadow: 0 0 0 2px #fff; } /* picked: a white ring, as in the Bag */
.ww-pick { width: 100%; padding: 0; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; border-radius: 8px; } .ww-pick:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; } .ww-pick > svg { flex: none; color: var(--muted); transition: transform .15s; } .ww-pick[aria-expanded="true"] > svg { transform: rotate(90deg); }
.hb-pieces > .hb-later { grid-column: 1 / -1; } /* the later pieces under the rest, in the same columns */ .ww-more { display: flex; gap: 12px; align-items: center; } .furn-big { width: 112px; height: 112px; object-fit: contain; flex: none; filter: drop-shadow(0 3px 3px #0008); } .hb-piece .job-needs { align-items: center; } .hb-piece .job-needs > .btn { margin-left: auto; }

/* a common find from exploring (late Oct 2026): rises from the Explore button and fades */
.gain-float { position: fixed; z-index: 60; display: flex; gap: 6px; padding: 5px 12px; border-radius: 999px; border: 1px solid var(--line); background: #090b0fee; box-shadow: 0 6px 18px #0009; font: 700 .9rem/1.2 var(--display); white-space: nowrap; pointer-events: none; transform: translate(-50%, -100%); animation: gain-rise 2s ease-out forwards; }
.gain-float span { display: inline-flex; align-items: center; gap: 4px; } .gain-float .i { width: 15px; height: 15px; }
.gain-float .g-cash { color: var(--accent); } .gain-float .g-xp { color: #c4b5fd; } .gain-float .g-energy { color: #facc15; } .gain-float .g-sanity { color: #93c5fd; }
@keyframes gain-rise { 0% { opacity: 0; transform: translate(-50%, -70%); } 12% { opacity: 1; transform: translate(-50%, -100%); } 70% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, -190%); } }
@media (prefers-reduced-motion: reduce) { .gain-float { animation: gain-fade 2s linear forwards; } @keyframes gain-fade { 0%, 75% { opacity: 1; } 100% { opacity: 0; } } }
/* Jail (GDD §37; jail-ui.js): the routine, the plate shop, a night behind the poster, the yard */
.jl-meters { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; } .jl-meters label { display: grid; gap: 5px; font-weight: 700; font-size: .85rem; }
.jl-game:empty { display: none; } .jl-game { display: grid; gap: 10px; }
.jl-shop { position: relative; height: 150px; border-radius: 12px; overflow: hidden; touch-action: manipulation; user-select: none; -webkit-user-select: none; cursor: pointer; background: linear-gradient(#1b1d21, #121316 62%, #2a2c30 62%, #1d1f22 74%, #0e0f11 74%); }
.jl-belt { position: absolute; inset: auto 0 36px; height: 30px; }
.jl-plate { position: absolute; bottom: 0; width: 46px; height: 12px; transform: translateX(-50%); border-radius: 2px; background: linear-gradient(#c9ced6, #7d848f); box-shadow: 0 2px 2px #000a; }
.jl-press { position: absolute; left: 50%; top: 0; width: 62px; height: 70px; transform: translateX(-50%); border-radius: 0 0 4px 4px; background: linear-gradient(90deg, #3a3e45, #5d636c 50%, #3a3e45); box-shadow: 0 0 0 1px #000 inset; }
.jl-press::after { content: ''; position: absolute; inset: auto -4px -6px; height: 8px; background: #8a9099; border-radius: 2px; }
.jl-press.down { animation: jl-press .16s ease-out; } @keyframes jl-press { 40% { height: 96px; } }
.jl-shop::before { content: ''; position: absolute; left: 50%; bottom: 36px; width: 60px; height: 44px; transform: translateX(-50%); border-inline: 1px dashed #a2d7cf55; pointer-events: none; }
.jl-guard { position: absolute; left: 90%; top: 20%; z-index: 2; display: grid; place-items: center; width: 30px; height: 30px; transform: translate(-50%, -50%); border-radius: 50%; background: #2a2e35; box-shadow: 0 0 0 2px #0c0d0f, 0 2px 6px #000; color: #c9ced6; }
.jl-guard .i { width: 16px; height: 16px; }
.jl-gaze { position: absolute; left: 90%; top: 20%; z-index: 1; width: 62%; height: 110px; transform-origin: 0 50%; clip-path: polygon(0 50%, 100% 0, 100% 100%); background: linear-gradient(90deg, #fff1c8b0, #fff1c833 70%, #fff1c800); pointer-events: none; mix-blend-mode: screen; }
.jl-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.jl-acts { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px; } .jl-acts .btn { min-width: 140px; justify-content: center; touch-action: manipulation; } .jl-acts small { opacity: .65; }
@media (max-width: 600px) { .jl-acts .jl-score { flex-basis: 100%; text-align: center; } .jl-acts .btn { min-width: 0; flex: 1; } }
.jl-cell { position: relative; display: grid; grid-template-columns: 34% 1fr; height: 230px; border-radius: 12px; overflow: hidden; touch-action: none; user-select: none; -webkit-user-select: none; cursor: pointer; background: #0c0d0f; }
.jl-door { position: relative; margin: 14px 0 0 14px; border-radius: 3px 3px 0 0; background: linear-gradient(90deg, #2b2f35, #3b4047 45%, #2b2f35); box-shadow: 0 0 0 2px #15171a inset; }
.jl-slot { position: absolute; left: 22%; right: 22%; top: 30%; height: 14px; background: #08090a; box-shadow: 0 0 0 2px #50565f; transition: background .15s; }
.jl-cell.looking .jl-slot { background: linear-gradient(#e9d9a6, #b59a5c); box-shadow: 0 0 0 2px #50565f, 0 0 18px #e9d9a688; }
.jl-light { position: absolute; left: 0; right: 0; bottom: 0; height: 6px; background: #f3e2a9; opacity: var(--light, 0); box-shadow: 0 -4px 22px calc(var(--light, 0) * 16px) #f3e2a9aa; }
.jl-wall { position: relative; background: radial-gradient(circle at 30% 20%, #3a3936, #24231f 70%); }
.jl-hole { position: absolute; left: 50%; top: 62%; width: calc(16px + var(--hole, 0) * 90px); aspect-ratio: 1.1; transform: translate(-50%, -50%); border-radius: 46% 54% 40% 48%; background: radial-gradient(#000, #0d0c0a 70%, #2b2925); }
.jl-poster { position: absolute; left: 50%; top: 55%; width: 128px; height: 150px; transform: translate(-50%, -50%); transform-origin: 50% 0; border-radius: 2px; background: linear-gradient(160deg, #cdbf9f, #a99777 60%, #8d7c5f); box-shadow: 0 4px 10px #000a; transition: transform .3s ease-in; }
.jl-poster::after { content: ''; position: absolute; inset: 14px 16px 40px; background: linear-gradient(#5d5546, #3d382f); opacity: .6; }
.jl-cell.digging .jl-poster { transform: translate(-50%, -50%) perspective(400px) rotateX(78deg); transition-duration: .12s; } /* lifted off the wall toward you, from its top edge */
.jl-rock { position: absolute; right: 10px; bottom: 8px; color: var(--muted); }
.jl-yard svg { display: block; width: 100%; max-width: 560px; margin: 0 auto; border-radius: 10px; background: #0e1012; }
.jl-yard .ground { fill: #1b1e21; stroke: #0e1012; } .jl-yard .crate { fill: #5a4630; stroke: #2d2318; stroke-width: 3; } .jl-yard .seen { fill: #6b2a2a; stroke: #0e1012; } .jl-yard .lit { fill: #6e5a22; stroke: #0e1012; }
.jl-yard .opt { fill: transparent; stroke-width: 3; cursor: pointer; } .jl-yard .opt.safe { stroke: var(--good); fill: #4ade8026; } .jl-yard .opt.bad { stroke: var(--bad); stroke-dasharray: 5 4; } .jl-yard .opt.out { stroke: var(--accent); fill: #a2d7cf40; }
.jl-yard .opt:hover { stroke-width: 4; } .jl-yard .tunnel, .jl-yard .next { pointer-events: none; }
.jl-yard .fence { fill: #2a2e33; } .jl-yard .gap { fill: #24402c; } .jl-yard .tunnel { fill: #000; stroke: #3a3936; stroke-width: 3; }
.jl-yard .next { stroke: #c94a4a99; stroke-width: 3; stroke-dasharray: 4 3; }
.jl-yard.free svg { box-shadow: 0 0 0 3px var(--good); } .jl-yard.caught svg { box-shadow: 0 0 0 3px var(--bad); }
/* the pieces (late Oct 2026, the user's): you as your combat token and the guards, over the board; each slides to its square with a hop */
.jl-board { position: relative; max-width: 560px; margin: 0 auto; }
.jl-pieces { position: absolute; inset: 0; pointer-events: none; }
.jl-man { position: absolute; width: calc(100% / var(--w) * .72); aspect-ratio: 1; display: grid; place-items: center; border-radius: 50%; transform: translate(-50%, -50%); transition: left .3s ease-in-out, top .3s ease-in-out; }
.jl-man.guard { width: calc(100% / var(--w) * .62); background: #c94a4a; border: 3px solid #0e1012; color: #fde8e8; box-shadow: 0 2px 6px #0009; }
.jl-man.guard .i { width: 52%; height: 52%; }
.jl-man.you { z-index: 1; }
.jl-man.you .ring { width: 100%; height: 100%; padding: 2px; box-shadow: 0 0 0 2px #a2d7cfcc, 0 0 12px #a2d7cf55; }
.jl-man.hop { animation: jl-hop .3s ease-in-out; }
@keyframes jl-hop { 50% { transform: translate(-50%, -64%) scale(1.08); } }
.jl-yard.free .jl-man.you { top: -14% !important; opacity: 0; transition: top .7s ease-in, opacity .7s ease-in; } /* out through the gap */
.jl-yard.caught .jl-man.you { animation: jl-caught .45s ease-in-out 2; }
.jl-yard.caught .jl-man.you .ring { --rc: var(--bad); box-shadow: 0 0 0 2px var(--bad), 0 0 16px #f87171aa; }
.jl-yard.caught .jl-man.guard { animation: jl-alert .45s ease-in-out 2; }
@keyframes jl-caught { 25% { transform: translate(-60%, -50%); } 75% { transform: translate(-40%, -50%); } }
@keyframes jl-alert { 50% { transform: translate(-50%, -50%) scale(1.18); box-shadow: 0 0 16px #f87171; } }
@media (prefers-reduced-motion: reduce) { .jl-man { animation: none !important; } }
@media (max-width: 600px) { .jl-meters { grid-template-columns: 1fr; } }
.jl-cell.caught .jl-light { background: #f87171; }
/* the Workshop (late Oct 2026): the Bag's rows and detail; a step (the next Mark, a trait swap) under a line; a wrench on a row ready for its next Mark */
.ws-step { display: grid; gap: 8px; padding-top: 10px; border-top: 1px solid var(--line); } .ws-step h4 { display: flex; align-items: center; gap: 6px; margin: 0; }
.ws-ready { display: grid; place-items: center; color: var(--accent); }
/* worldweather.net (late Oct 2026): every country's weather; kinds to pick from, the abnormal marked */
.wx-kinds { gap: 6px; } .wx-kinds .btn small { color: var(--muted); }
.btn.wx-odd:not([aria-pressed="true"]) { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); } .price-list li.wx-odd:not(.here) { border-color: color-mix(in srgb, var(--accent) 35%, var(--line)); }
.pick-card.maxed { opacity: .45; filter: grayscale(1); } /* a resort treatment you're already at the most of (late Oct 2026) */
.refused { opacity: .45; filter: grayscale(1); } /* a Mission Board job or order that won't deal with you, greyed out whole (late Oct 2026) */
/* guildhouses (GDD §14.4, late Oct 2026): the defenders as combat tokens; an officer's pickers */
.gh-slots .tok { --sz: 44px; --tw: 48px; flex: none; } .gh-slots .people .pic .avatar { width: 100%; height: 100%; } .gh-slots .pic > .i { opacity: .35; }
.gh-slots .people .who, .gh-slots .people select { flex: 1; min-width: 0; } .gh-slots .row > select { max-width: 100%; }
.gh-kit { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; } /* what a defender wears: each piece's icon, its Mark on it (late Oct 2026) */
.gh-pc { position: relative; display: grid; place-items: center; width: 26px; height: 26px; border: 1px solid var(--line); border-radius: 7px; background: var(--panel2); color: var(--muted); }
.gh-pc .i { width: 15px; height: 15px; } .gh-pc i { position: absolute; right: -5px; bottom: -6px; padding: 0 3px; border-radius: 5px; border: 1px solid var(--line); background: #080a0e; color: var(--text); font-size: .7rem; font-style: normal; font-weight: 700; line-height: 1.25; }

/* ---------- homes (GDD §39): the plan from above, furniture standing on it, everyone in walking about as their token ---------- */
.hm-defs { position: absolute; width: 0; height: 0; }
.hm-thumb { display: block; width: 100%; max-height: 150px; border-radius: 8px; background: #22361b; }
.hm-mine .hm-thumb { max-height: 280px; }
.hm-card { display: grid; gap: 8px; padding: 10px; }
.hm-scroll { overflow: auto hidden; overscroll-behavior-x: contain; padding: 14px; border-radius: 10px; background: #22361b; } /* wide homes scroll sideways on a phone; never up and down (a name under a token at the door) */
.hm-board { position: relative; width: clamp(calc(var(--w) * 28px), 100%, calc(var(--w) * 54px)); margin: 0 auto; } /* a tile at least 28 px, for a thumb */
.hm-board svg { display: block; width: 100%; overflow: visible; cursor: pointer; touch-action: manipulation; } /* the garden round the house is drawn past the plan's edge */
.hm-grid .hm-t { stroke: #00000030; } /* furnishing: the tiles outlined */
.hm-pieces { position: absolute; inset: 0; pointer-events: none; }
.hm-furn { position: absolute; display: grid; place-items: center; }
.hm-furn img, .hm-ghost img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(2px 3px 2px #000a); } /* seen from above, filling its tiles; its shadow to the lower right, as the walls' */
.hm-furn:not(.ok) { border: 1px solid #4d4232; border-radius: 3px; background: linear-gradient(#cdbfa6, #a08e72); box-shadow: 0 4px 0 #6a5b45, 0 6px 8px #0007; transform: translateY(-4px); } /* no picture yet: a block where it stands */
.hm-furn small { max-width: 100%; padding: 0 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 9px; color: #2a2218; }
.hm-furn.ok small { display: none; }
.hm-tok { position: absolute; width: calc(100% / var(--w) * .84); aspect-ratio: 1; display: grid; place-items: center; transform: translate(-50%, -62%); transition: left .15s linear, top .15s linear; filter: drop-shadow(0 3px 3px #000a); }
.hm-tok[hidden] { display: none; }
.hm-tok .ring { width: 100%; height: 100%; padding: 2px; --rc: #cfd6df; }
.hm-tok.me .ring { --rc: var(--good); box-shadow: 0 0 0 2px #a2d7cfcc, 0 0 12px #a2d7cf55; }
.hm-tok .pic .avatar { font-size: 10px; }
.hm-tok small { position: absolute; top: 100%; left: 50%; transform: translateX(-50%); margin-top: 2px; padding: 0 4px; border-radius: 4px; background: #000b; color: #fff; font-size: 9px; line-height: 1.5; white-space: nowrap; }
.hm-tok.hop { animation: hm-hop .15s ease-in-out; }
@keyframes hm-hop { 50% { transform: translate(-50%, -74%); } }
@media (prefers-reduced-motion: reduce) { .hm-tok { animation: none !important; transition: none; } }
.hm-bar { display: grid; grid-template-columns: minmax(0, 1fr) auto; } /* the tabs scroll, Leave stays on the line (a nowrap flex row would widen the page) */
.hm-board svg rect, .hm-thumb rect { shape-rendering: crispEdges; } /* no hairline seams between tiles */
@media (max-width: 480px) { .hm-bar [data-hmtab]:not([aria-pressed="true"]) span { display: none; } } /* a phone: the tab you're on named, the rest their icons */
/* Furnish (H2): the tool row over the board, the ghost of the piece you picked (green fits, red not), a placed piece picked, the picker */
.hm-tool { gap: 6px; flex-wrap: wrap; justify-content: flex-end; min-height: 30px; margin-left: auto; } /* at the right even when it wraps under the floors */
.hm-ghost { position: absolute; z-index: 900; border-radius: 3px; pointer-events: none; }
.hm-ghost.ok { background: #4ade8040; outline: 2px solid var(--good); }
.hm-ghost.no { background: #f8717140; outline: 2px solid var(--bad); }
.hm-ghost img { opacity: .8; }
.hm-furn.sel { border-radius: 3px; background: #a2d7cf33; outline: 2px dashed var(--accent); }
.hm-picks { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); gap: 6px; }
.hm-pick { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; align-items: center; gap: 8px; padding: 6px 8px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel2); color: inherit; font: inherit; text-align: left; cursor: pointer; }
.hm-pick img { width: 48px; height: 48px; object-fit: contain; filter: drop-shadow(0 2px 2px #0008); }
.hm-pick b, .hm-pick small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hm-pick[aria-pressed="true"] { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.hm-pick:disabled { opacity: .45; cursor: not-allowed; }
/* Claims: a row a kind */
.hm-claims li { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.hm-claims li:last-child { border-bottom: 0; }
.hm-claims .ico { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; background: var(--panel2); color: var(--accent); }
.hm-claims .grow { flex: 1 1 160px; min-width: 0; }
.hm-claims b, .hm-claims small { display: block; }
.hm-trust { list-style: none; margin: 0; padding: 0; } /* the Trust Fund (design/cases.md §1) */
.hm-trust li { padding: 6px 0; border-bottom: 1px solid var(--line); }
.hm-trust li:last-child { border-bottom: 0; }
.hm-trust .grow { flex: 1 1 140px; min-width: 0; }
.hm-n { width: 4.5em; }
/* the spouse (M2): tap for a word, a speech bubble over them */
.hm-tok.sp { pointer-events: auto; cursor: pointer; transition-duration: .3s; }
.hm-tok.sp .ring { --rc: #e8b7c8; }
.hm-tok.talking { z-index: 950 !important; }
.hm-say { position: absolute; bottom: calc(100% + 8px); left: 50%; transform: translateX(-50%); width: max-content; max-width: min(220px, 70vw); padding: 6px 9px; border-radius: 10px; background: #f6f1e7; color: #1d1a16; font-size: 12px; line-height: 1.35; box-shadow: 0 4px 12px #0009; animation: hm-say .2s ease-out; }
.hm-say::after { content: ""; position: absolute; top: 100%; left: 50%; margin-left: -6px; border: 6px solid transparent; border-top-color: #f6f1e7; }
.hm-say.l { left: -4px; transform: none; } .hm-say.l::after { left: 18px; }
.hm-say.r { left: auto; right: -4px; transform: none; } .hm-say.r::after { left: auto; right: 12px; }
.hm-say.below { bottom: auto; top: calc(100% + 18px); } .hm-say.below::after { top: auto; bottom: 100%; border-top-color: transparent; border-bottom-color: #f6f1e7; }
@keyframes hm-say { from { opacity: 0; margin-bottom: -4px; } }
@media (prefers-reduced-motion: reduce) { .hm-say { animation: none; } }

/* ---------- the UX pass (late Oct 2026): a grand hub, facility banners, calmer lists ---------- */
.weather-card { min-height: 380px; }
.weather-card .country-name { font-size: clamp(2.6rem, 6vw, 4.4rem); letter-spacing: .07em; }
.hub-cta { display: flex; justify-content: flex-end; margin-top: 8px; }
.btn.hero-cta { font-size: 1.05rem; padding: 12px 30px; border-radius: 999px; gap: 8px; box-shadow: 0 8px 28px #ffc53d33; }
.hub-groups { display: grid; gap: 18px; }
.hub-group h3 { margin: 0 0 8px; font-size: .74rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.act.scene-tile { position: relative; overflow: hidden; isolation: isolate; min-height: 98px; align-content: end; background: linear-gradient(140deg, var(--tint) 0%, var(--panel) 78%); }
.scene-tile.g-town { --tint: #3d3017; } .scene-tile.g-train { --tint: #17294a; } .scene-tile.g-hobby { --tint: #19382a; }
.scene-tile .st-ico, .scene-head .st-ico, .hb-top .st-ico { position: absolute; z-index: -1; pointer-events: none; color: #fff; opacity: .08; }
.scene-tile .st-ico { right: -14px; top: -14px; } .scene-tile .st-ico .i { width: 96px; height: 96px; stroke-width: 1.2; }
.scene-tile.has-scene { background: linear-gradient(180deg, #0000 18%, #000d 96%), var(--scene) center / cover; } .scene-tile.has-scene .st-ico { display: none; }
.scene-tile b, .scene-tile small { position: relative; text-shadow: 0 1px 6px #000; }
.scene-tile:not(:disabled):hover { border-color: color-mix(in srgb, var(--accent) 55%, var(--line)); transform: translateY(-1px); }
.scene-tile.hot { border-color: var(--accent); }
.scene-head { position: relative; overflow: hidden; isolation: isolate; display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; min-height: 128px; padding: 16px 18px; margin-bottom: 12px; border-radius: var(--r); border: 1px solid var(--line); background: linear-gradient(120deg, #2c2416 0%, var(--panel) 72%); }
.scene-head.has-scene { min-height: 190px; background: linear-gradient(180deg, #0000 12%, #000c 94%), var(--scene) center 40% / cover; } .scene-head.has-scene .st-ico { display: none; }
.scene-head .st-ico { right: -24px; top: -36px; } .scene-head .st-ico .i { width: 210px; height: 210px; stroke-width: 1; }
.scene-head h1 { margin: 0; text-shadow: 0 2px 10px #000; } .scene-head .sh-text small { color: var(--muted); text-shadow: 0 1px 6px #000; }
.sh-right { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; align-items: center; }
.hb-cards { align-items: start; }
.hb-top { position: relative; overflow: hidden; isolation: isolate; display: flex; align-items: flex-end; justify-content: space-between; min-height: 64px; margin: -14px -14px 2px; padding: 12px 14px; border-radius: var(--r) var(--r) 0 0; background: linear-gradient(140deg, #19382a 0%, var(--panel) 80%); }
.hb-top.has-scene { min-height: 96px; background: linear-gradient(180deg, #0000 20%, #000c 95%), var(--scene) center / cover; } .hb-top.has-scene .st-ico { display: none; }
.hb-top h3 { margin: 0; text-shadow: 0 1px 6px #000; } .hb-top .st-ico { right: -10px; top: -14px; } .hb-top .st-ico .i { width: 80px; height: 80px; stroke-width: 1.2; }
.hb-card.here { border-color: color-mix(in srgb, var(--good) 45%, var(--line)); }
.hb-more summary, .hb-later summary { cursor: pointer; font-size: .8rem; color: var(--muted); padding: 4px 0; }
.hb-more[open] { display: grid; gap: 6px; }
.card.hb-facts { gap: 8px; margin-top: 12px; }
.furn-thumb { width: 48px; height: 48px; object-fit: contain; flex: none; filter: drop-shadow(0 2px 2px #0008); }
.hb-later { margin-top: 10px; }
#shop-catalog .wares { grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); }
#shop-catalog .ware { aspect-ratio: auto; min-height: 88px; padding: 8px 4px 6px; }
.ware .wname { max-width: 100%; padding: 0 2px; font-size: .6rem; line-height: 1.15; color: var(--muted); text-align: center; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
#craft-mats .ware .wname { display: none; }
@media (max-width: 719px) {
  .weather-card { min-height: 300px; } .hub-cta { justify-content: stretch; } .btn.hero-cta { width: 100%; justify-content: center; }
  .act.scene-tile { min-height: 66px; } .scene-tile .st-ico .i { width: 66px; height: 66px; }
  #events { grid-auto-flow: column; grid-auto-columns: 74%; grid-template-columns: none; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 4px; } #events > * { scroll-snap-align: start; }
  .scene-head { min-height: 100px; padding: 12px 14px; } .scene-head.has-scene { min-height: 140px; } .scene-head .st-ico .i { width: 150px; height: 150px; }
  #shop-catalog .wares { grid-template-columns: repeat(auto-fill, minmax(74px, 1fr)); }
}
/* Phones (late Oct 2026, the user's: mobile friendly): taps about 40 px, no words under 11 px, two frames to a gallery row, the battle bar fades where it scrolls on;
   a held finger shows what pointing does (app.js #hold-tip), so it mustn't select the words or open a copy menu */
@media (pointer: coarse) {
  [title]:not(input):not(textarea):not(select), [data-hold] { -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; }
  details.fold > summary { min-height: 40px; }
  .info-sec summary { padding: 8px 0; }
  .hb-more summary, .hb-later summary { padding: 11px 0; }
  .chat-name { padding: 8px 4px; margin: -8px -4px; }
  .switch { min-height: 40px; }
}
@media (max-width: 719px) {
  .ware .wp, .ware .wname, .ware .gs, .ware .wn, .ware .kg, .mk, .jc-tag, .ls-label, .pick-card .pc-tier, .bag-h small, .cat h3 small, .pas-badge { font-size: .7rem; }
  .ware:has(.gs), .ware:has(.kg) { padding-top: 15px; }
  .gal-wall { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 14px; padding: 16px 12px; }
  .gal-pic { padding: 6px; box-shadow: 0 0 0 4px #2c1e12, 0 0 0 6px #8a6a3e, 0 6px 14px #000a; }
  .gal-frame.mine .gal-pic { box-shadow: 0 0 0 4px #2c1e12, 0 0 0 6px var(--accent), 0 6px 14px #000a; }
  .gal-plate { min-width: 0; max-width: 100%; padding: 4px 8px 5px; }
  .gal-plate .gal-prompt { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .hotbar.more-r { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 40px), #0000); mask-image: linear-gradient(90deg, #000 calc(100% - 40px), #0000); }
  .hotbar.more-l { -webkit-mask-image: linear-gradient(270deg, #000 calc(100% - 40px), #0000); mask-image: linear-gradient(270deg, #000 calc(100% - 40px), #0000); }
  .hotbar.more-l.more-r { -webkit-mask-image: linear-gradient(90deg, #0000, #000 40px, #000 calc(100% - 40px), #0000); mask-image: linear-gradient(90deg, #0000, #000 40px, #000 calc(100% - 40px), #0000); }
}
#hold-tip { width: max-content; max-width: min(300px, calc(100vw - 16px)); font-size: .85rem; }
.md-how { display: grid; gap: 5px; margin: 2px 0 0; font-size: .9rem; counter-reset: md; } /* Meditation's steps, numbered (late Oct 2026) */
.md-how li { display: flex; gap: 9px; align-items: baseline; counter-increment: md; } .md-how li::before { content: counter(md); flex: none; display: grid; place-items: center; width: 19px; height: 19px; border: 1px solid var(--line); border-radius: 50%; font-size: .72rem; font-weight: 700; color: var(--text); }

.found-left { margin-left: auto; align-self: flex-end; font-variant-numeric: tabular-nums; } /* a find's time left, at the far right of its buttons (2026-10-30) */

/* the Casebook (design/cases.md §2; 2026-10-30, the user's: confidential, no icons): numbered files, classified documents, stamps and redactions */
.cb { display: grid; grid-template-columns: minmax(200px, 280px) 1fr; gap: 14px; align-items: start; }
@media (max-width: 760px) { .cb { grid-template-columns: 1fr; } }
.cb-files { display: grid; gap: 8px; }
.cb-file { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-left: 3px solid var(--line); border-radius: 10px; background: var(--panel); color: inherit; font: inherit; text-align: left; cursor: pointer; }
.cb-file[aria-pressed="true"] { border-left-color: var(--accent); background: var(--panel2); }
.cb-file.sealed { cursor: default; opacity: .7; }
.cb-file b { grid-column: 1; } .cb-file small { grid-column: 1; color: var(--muted); }
.cb-no, .cb-mark, .cb-head, .cb-from span, .cb-stamp { font-family: var(--font-label); text-transform: uppercase; letter-spacing: .14em; font-size: .68rem; }
.cb-no { grid-column: 1; color: var(--muted); }
.cb-mark { grid-column: 2; grid-row: 1 / span 3; align-self: center; color: var(--muted); }
.cb-mark.open { color: var(--accent); }
.cb-file .censor { font-family: var(--font-label); font-weight: 400; letter-spacing: -.06em; color: var(--text); opacity: .8; white-space: nowrap; overflow: hidden; } /* blacked out, as typed */
.cb-doc { position: relative; display: grid; gap: 10px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 12px; background: repeating-linear-gradient(0deg, transparent 0 27px, color-mix(in srgb, var(--line) 35%, transparent) 27px 28px), var(--panel); }
.cb-doc h3 { margin: 0; }
.cb-doc p { margin: 0; }
.cb-head { display: flex; justify-content: space-between; gap: 10px; padding-bottom: 8px; border-bottom: 1px dashed var(--line); color: var(--accent); }
.cb-from { color: var(--muted); } .cb-from span { margin-right: 6px; }
.cb-stamp { justify-self: start; display: inline-block; padding: 3px 10px; border: 2px solid var(--accent); border-radius: 4px; color: var(--accent); transform: rotate(-3deg); opacity: .85; }
.cb-stamp.sm { padding: 1px 6px; border-width: 1px; font-size: .62rem; }
.cb-scene { display: grid; gap: 8px; border-left: 2px solid var(--accent); padding: 4px 0 4px 12px; }
.cb-done summary { display: flex; align-items: center; gap: 10px; padding: 6px 0; cursor: pointer; }
.cb-done summary b { flex: 1; min-width: 0; }
.cb-done[open] { display: grid; gap: 6px; padding-bottom: 8px; border-bottom: 1px dashed var(--line); }
.cb-label { font-family: var(--font-label); font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); } /* the story so far, what to do now */
.cb-now { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; padding: 8px 10px; border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: 8px; background: var(--panel2); }
.cb-now .grow { flex: 1 1 200px; min-width: 0; }
.cb-notes { display: grid; gap: 4px; } .cb-notes ul { margin: 0; padding-left: 18px; display: grid; gap: 3px; }
.cb-story p { line-height: 1.55; }
.cb-ch summary { font-family: var(--font-label); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); cursor: pointer; padding: 4px 0; }
.cb-ch[open] summary { color: var(--accent); }
.cb-ch { display: grid; gap: 8px; } .cb-ch[open] { padding-bottom: 6px; border-bottom: 1px dashed var(--line); }
.cb-sum { flex: 1; min-width: 0; contain: inline-size; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); font-size: .9rem; } /* the hub fold's line: what to do, even folded */
.cb-track { display: grid; gap: 4px; padding: 6px 0; border-bottom: 1px dashed var(--line); } /* the hub's Cases fold */
.cb-track:last-child { border-bottom: 0; }
.cb-track .cb-no { text-decoration: none; }
.cb-story { margin: 0; font-size: .92rem; line-height: 1.45; } /* where a case's story stands, on the hub (2026-10-31) */
.sg-dir .row { gap: 8px; align-items: center; } /* the Recurrence on the hub (2026-11-04): a direction, its meter and the desk's gift */
.sg-past { display: grid; gap: 4px; padding-top: 8px; border-top: 1px dashed var(--line); } /* what the earlier acts came to */
.sg-art { display: flex; align-items: flex-end; min-height: 110px; padding: 10px 12px; border-radius: var(--r); border: 1px solid var(--line); background: linear-gradient(180deg, #0000 35%, #000c 96%), var(--art) center 45% / cover, var(--panel); } /* the situation's (or an ending's) painting (2026-11-04) */
.sg-art.tall { min-height: 180px; } .sg-art .cb-no { text-shadow: 0 1px 6px #000; }
/* the Hinge's board (design/cases.md §6.3) */
.hg-board h4 { margin: 6px 0 0; }
.hg-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.hg-m { display: flex; align-items: center; gap: 10px; padding: 6px 0; border-bottom: 1px solid var(--line); }
.hg-m:last-child { border-bottom: 0; }
.hg-m img { flex: none; width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
.hg-m .grow { flex: 1; min-width: 0; display: grid; gap: 3px; }
.hg-m.in { opacity: .5; }
/* ---------- the Cinema (GDD §42): the screen, what's on, the queue and who's watching beside it ---------- */
.cine { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; align-items: start; } /* the screen the whole width, Up next and Watching under it (the user's, 2026-11-01: "scale the cinema bigger") */
.cine-side.stack { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); align-items: start; }
.cine-screen { aspect-ratio: 16 / 9; background: #000; border-radius: calc(var(--r) - 4px); overflow: hidden; display: grid; place-items: center; }
.cine-screen iframe, .cine-screen > div { width: 100%; height: 100%; border: 0; }
.cine-msg, .cine-screen > .i { color: var(--muted); } .cine-screen > .i { width: 48px; height: 48px; opacity: .4; }
.cine-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.cine-now { display: grid; min-width: 0; } .cine-now b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cine-add input { flex: 1; min-width: 0; }
.cine-vol { gap: 8px; color: var(--muted); } .cine-vol input { flex: 1; max-width: 240px; } /* the cinema's volume (2026-11-01) */
.cine-queue { display: grid; gap: 8px; } .cine-queue li { display: flex; align-items: center; gap: 8px; }
.cine-queue img { width: 96px; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 8px; background: var(--panel2); }
