:root {
  --bg: #f3ede1;
  --panel: #fffaf0;
  --ink: #2f2a22;
  --muted: #7a6f5d;
  --line: #ddd2bd;
  --accent: #9a4f1f;
  --accent-ink: #fff;
  --ok: #3f7a3a;
  --short: #b0412e;
  --pause: #b07a1e;
  --bar: #d9cdb5;
  --bar-fill: #c06b2c;
  --away: #4a6f8f;
  --guide: #d9a441;
}
* { box-sizing: border-box; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 15px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
h1 { margin: 0; font-size: 22px; letter-spacing: .5px; }
h2 { margin: 0 0 8px; font-size: 15px; text-transform: uppercase; letter-spacing: .8px; color: var(--accent); }
h3 { margin: 0 0 4px; font-size: 15px; }
button {
  font: inherit; border: 1px solid var(--accent); background: var(--accent); color: var(--accent-ink);
  border-radius: 6px; padding: 5px 12px; cursor: pointer;
}
button.secondary { background: transparent; color: var(--accent); }
button:disabled { background: #cfc4ae; border-color: #cfc4ae; color: #fff; cursor: not-allowed; }
select { font: inherit; padding: 3px 4px; border-radius: 5px; border: 1px solid var(--line); background: #fff; max-width: 100%; width: 100%; }
textarea { width: 100%; font: 12px/1.3 ui-monospace, Consolas, monospace; border: 1px solid var(--line); border-radius: 6px; }
button:focus-visible, select:focus-visible, input:focus-visible { outline: 2px solid #1f5f99; outline-offset: 2px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }

.top { display: flex; justify-content: space-between; align-items: center; padding: 10px 16px; background: #3b2f22; color: #f6ead5; }
.top .sub { font-size: 13px; color: #d9c7a6; }
.top .muted { color: #cdbb99; font-size: 13px; margin-right: 8px; }
.top-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
.limit-note { background: #f7e3b5; border-bottom: 1px solid #e4c983; padding: 6px 16px; font-size: 13px; }

.layout { display: grid; grid-template-columns: minmax(300px, 1.15fr) minmax(260px, 1fr) minmax(280px, 1fr); gap: 12px; padding: 12px; align-items: start; }
@media (max-width: 1100px) { .layout { grid-template-columns: 1fr 1fr; } .col-village { grid-column: 1 / -1; } }
@media (max-width: 720px) { .layout { grid-template-columns: 1fr; padding: 8px; } .top { flex-direction: column; align-items: flex-start; gap: 6px; } }
.col { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 12px; }

/* scene */
.scene-panel { padding: 6px; }
#scene svg { width: 100%; height: auto; display: block; border-radius: 6px; }
#scene-caption { padding: 4px 6px 0; }
.smoke circle { animation: smoke 4s linear infinite; opacity: 0; }
.smoke circle:nth-child(2) { animation-delay: 1.3s; }
.smoke circle:nth-child(3) { animation-delay: 2.6s; }
@keyframes smoke { 0% { transform: translate(0, 0) scale(.6); opacity: .7; } 100% { transform: translate(10px, -40px) scale(1.6); opacity: 0; } }
.wheel.turning { animation: spin 6s linear infinite; transform-box: fill-box; transform-origin: center; }
@keyframes spin { to { transform: rotate(360deg); } }
.fire { animation: flicker .6s ease-in-out infinite alternate; transform-box: fill-box; transform-origin: bottom; }
@keyframes flicker { to { transform: scaleY(.75); } }
@media (prefers-reduced-motion: reduce) { .smoke circle, .wheel.turning, .fire { animation: none; } .smoke circle { opacity: .5; } }

/* stores */
.stores { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 4px 10px; }
.store { display: flex; justify-content: space-between; border-bottom: 1px dotted var(--line); padding: 1px 0; }
.store.zero { color: #b3a68e; }
.store.full b { color: var(--short); }
.held { margin-top: 8px; font-size: 13px; }

/* people and worksites */
.worker { border: 1px solid var(--line); border-radius: 8px; padding: 8px; margin-bottom: 8px; background: #fff; }
.worker.away { background: #eef3f7; border-color: #bfd0de; }
.w-head { display: flex; align-items: baseline; gap: 6px; margin-bottom: 4px; }
.badge { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; color: #fff; font-size: 12px; font-weight: 700; flex: none; }
.role { color: var(--muted); font-size: 13px; }
.blurb { font-size: 12.5px; color: var(--muted); margin: 0 0 6px; }
.status { font-size: 13px; margin-top: 4px; }
.status.working { color: var(--ok); }
.status.paused { color: var(--pause); font-weight: 600; }
.status.idle { color: var(--muted); }
.status.away { color: var(--away); }
.bar { height: 6px; background: var(--bar); border-radius: 3px; overflow: hidden; margin-top: 4px; }
.bar i { display: block; height: 100%; width: 0; background: var(--bar-fill); }
.bar.paused i { background: var(--pause); }
.bar.trip i { background: var(--away); }
.bar.big { height: 10px; }
.site { padding: 6px 0; border-bottom: 1px dotted var(--line); }
.site:last-child { border-bottom: 0; }
.site-head { display: flex; justify-content: space-between; gap: 8px; }
.slots { font-size: 13px; color: var(--muted); }
.slot-pill { display: inline-block; padding: 0 6px; border-radius: 9px; background: #efe6d4; margin: 2px 3px 0 0; font-size: 12.5px; color: var(--ink); }
.slot-pill.empty { background: transparent; border: 1px dashed #c9bb9f; color: var(--muted); }
.site-jobs { font-size: 12.5px; color: var(--muted); }
.locked-sites { font-size: 12.5px; color: var(--muted); margin-top: 6px; }

/* opening guidance: one quiet remark and one static emphasis, kept apart from focus (blue outline) and affordable cards (green) */
.guide-remark { font-size: 13.5px; color: #5d4a30; background: #fbf3df; border-left: 3px solid var(--guide); border-radius: 6px; padding: 6px 8px; margin: 0 0 8px; }
.guide-remark .badge { width: 18px; height: 18px; font-size: 10.5px; vertical-align: -3px; }
.guide-target { box-shadow: 0 0 0 2px var(--guide); }
.slots.guide-target { border-radius: 9px; padding: 0 6px; color: var(--ink); }

/* projects */
.card { border: 1px solid var(--line); border-radius: 8px; padding: 9px; margin-bottom: 8px; background: #fff; }
.card.locked { background: #f6f1e7; color: var(--muted); }
.card.ready { border-color: var(--ok); box-shadow: 0 0 0 1px var(--ok) inset; }
.card .change { font-style: italic; margin: 2px 0 4px; }
.card ul { margin: 2px 0 6px 18px; padding: 0; font-size: 13px; }
.tag { font-size: 11px; text-transform: uppercase; letter-spacing: .6px; padding: 1px 5px; border-radius: 4px; background: #e9dfca; color: var(--muted); margin-left: 4px; vertical-align: 2px; }
.cost { font-size: 13.5px; margin: 4px 0 6px; }
.cost .have { color: var(--ok); }
.cost .lack { color: var(--short); font-weight: 600; }
.why { font-size: 13px; color: var(--short); margin-top: 4px; }
.built-list { font-size: 13px; color: var(--muted); }
details.completed { border: 1px dashed var(--line); border-radius: 8px; padding: 6px 9px; margin: 4px 0 8px; background: #faf6ee; }
details.completed > summary { cursor: pointer; font-weight: 600; color: var(--muted); min-height: 28px; line-height: 28px; }
details.completed .done-item { border-top: 1px solid var(--line); padding: 6px 0; }
details.completed .done-item:first-of-type { border-top: 0; }
.trip-ready { margin-top: 8px; padding-top: 6px; border-top: 1px solid var(--line); font-size: 13px; }
.trip-ready ul { margin: 2px 0 0 18px; padding: 0; }
.note { font-size: 13px; color: var(--muted); margin: 0 0 8px; }

/* Hale's yard */
.yard { border: 1px solid #cbbd9f; border-radius: 8px; padding: 9px; margin-bottom: 10px; background: #f8f1e2; }
.yard-head { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; margin-bottom: 4px; }
.yard-mat { font-size: 13px; margin: 0 0 6px; }
.card.stage.started { border-color: var(--bar-fill); }
.card.stage.done { background: #f3f7ef; border-color: #b9d1b0; }
.card.stage .bar { margin: 4px 0; }

/* the village storehouse (PF-01/02): a supply table and one shared editor */
.storehouse { padding: 12px; margin-bottom: 10px; }
.storehouse[hidden] { display: none; }
.sh-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.sh-head h3 { font-size: 16px; margin: 0; }
.sh-head h3:focus { outline: none; }
.sh-stage { margin: 4px 0 0; font-size: 14px; }
.sh-intro { margin: 6px 0; padding: 6px 10px; border-left: 3px solid var(--line); font-style: italic; font-size: 14px; }
.sh-desc { margin: 0 0 4px; font-size: 14px; }
.sh-limit { color: var(--ok); margin: 2px 0 8px; font-weight: 600; }
table.sh-supplies { border-collapse: collapse; width: 100%; font-size: 14px; margin: 4px 0 8px; font-variant-numeric: tabular-nums; }
.sh-supplies th { font-weight: 400; font-size: 13px; color: var(--muted); text-align: left; padding: 0 0 3px; }
.sh-supplies td { padding: 5px 0; border-bottom: 1px solid var(--line); }
.sh-supplies td:last-child, .sh-supplies th:last-child { text-align: right; }
.sh-supplies tr.supplied td { color: var(--ok); }
.sh-supplies .tick { font-size: 13px; margin-left: 4px; }
.storehouse details > summary { cursor: pointer; display: flex; align-items: center; min-height: 44px; list-style: none; }
.storehouse details > summary::-webkit-details-marker { display: none; }
.storehouse details > summary::before { content: '+'; width: 18px; font-size: 18px; }
.storehouse details[open] > summary::before { content: '\2212'; }
.storehouse summary:focus-visible, .sh-ready:focus-visible { outline: 2px solid #1f5f99; outline-offset: 2px; }
details.sh-editor { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
details.sh-editor > summary { color: var(--accent); }
details.sh-note { background: #f7f0e1; border-radius: 8px; padding: 0 10px; margin: 0 0 6px; }
details.sh-note > summary { font-weight: 600; }
details.sh-note p { margin: 0 0 8px; font-size: 13px; }
.sh-editor form { padding: 0 0 8px; }
.sh-editor label { display: block; font-size: 13px; margin: 2px 0 3px; }
.sh-editor select, .sh-editor input { font: inherit; font-size: 16px; min-height: 44px; border: 1px solid var(--line); border-radius: 6px; padding: 6px 8px; background: #fff; color: var(--ink); }
.sh-info { margin: 4px 0 6px; font-size: 13px; }
.sh-keep { margin: -2px 0 6px; font-size: 13px; color: var(--muted); }
.sh-amounts { display: flex; gap: 6px; }
.sh-amounts input { width: 0; min-width: 0; flex: 1; }
.sh-amounts button { min-height: 44px; padding: 5px 12px; }
.storehouse button[aria-disabled="true"] { opacity: .55; cursor: not-allowed; }
.sh-commit { width: 100%; min-height: 44px; margin: 6px 0 0; }
.sh-short { color: var(--pause); font-weight: 600; font-size: 13px; margin: 4px 0 0; }
.sh-error { color: var(--short); font-size: 13px; margin: 4px 0 0; }
.sh-short:empty, .sh-error:empty, .sh-keep:empty { display: none; }
.storehouse input[aria-invalid="true"] { border-color: var(--short); }
.sh-bulk { width: 100%; text-align: left; margin: 10px 0 4px; padding: 8px 10px; min-height: 44px; }
.sh-bulk strong { display: block; font-weight: 600; }
.sh-bulk span { display: block; font-size: 13px; margin-top: 2px; line-height: 1.4; }
.sh-permanent { margin: 4px 0 0; font-size: 13px; }
.sh-permanent b { font-weight: 600; }
.sh-live { font-size: 13px; color: var(--ok); margin: 6px 0 0; }
.sh-live:empty { display: none; }
details.sh-details > summary { color: var(--muted); font-size: 13px; }
details.sh-details p { margin: 0 0 8px; font-size: 13px; }
.sh-ready { margin: 4px 0; padding: 6px 8px; border-left: 3px solid var(--ok); background: #f3f7ef; }
.sh-work { font-size: 13px; margin: 6px 0 0; }
.sh-preview { border: 1px dashed var(--line); border-radius: 8px; padding: 8px 10px; margin: 10px 0 0; }
.sh-preview h4 { margin: 0; font-size: 14px; }
.sh-preview-limit { margin: 2px 0 0; }
.sh-preview-wait { margin: 0; }
.sh-needs { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 14px; margin: 6px 0; font-size: 14px; font-variant-numeric: tabular-nums; }
.sh-needs > span { display: flex; justify-content: space-between; border-bottom: 1px solid var(--line); padding: 2px 0; }

/* expedition */
.hint { font-size: 13px; font-style: italic; color: #5d4a30; margin: 2px 0 6px; }
.modes { display: flex; gap: 6px; margin-bottom: 8px; flex-wrap: wrap; }
.modes label { border: 1px solid var(--line); border-radius: 6px; padding: 4px 8px; cursor: pointer; background: #fff; }
.modes input { margin-right: 4px; }
.facts { font-size: 13px; margin: 4px 0; display: grid; grid-template-columns: auto 1fr; gap: 1px 8px; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; }
.trip-box { border: 1px solid #bfd0de; background: #eef3f7; border-radius: 8px; padding: 9px; margin-bottom: 8px; }
.report { border: 1px solid var(--ok); background: #f0f6ec; border-radius: 8px; padding: 9px; margin-bottom: 8px; font-size: 14px; }
.warn { color: var(--pause); font-weight: 600; }

/* finds and journal */
.find { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 6px 0; }
.find.pending { background: #fbf0d3; border-radius: 6px; padding: 6px 8px; }
.journal { list-style: none; margin: 0; padding: 0; font-size: 13px; max-height: 220px; overflow: auto; }
.journal li { padding: 3px 0; border-bottom: 1px dotted var(--line); }
.journal .t { color: var(--muted); font-variant-numeric: tabular-nums; margin-right: 6px; }

/* toasts and modal */
#toasts { position: fixed; right: 12px; bottom: 12px; display: flex; flex-direction: column; gap: 6px; z-index: 20; max-width: min(360px, calc(100vw - 24px)); }
.toast { background: #3b2f22; color: #f6ead5; padding: 8px 12px; border-radius: 8px; font-size: 14px; box-shadow: 0 2px 8px rgba(0,0,0,.25); }
.modal { position: fixed; inset: 0; background: rgba(40, 30, 20, .55); display: grid; place-items: center; z-index: 30; padding: 16px; }
.modal[hidden] { display: none; }
.modal-box { background: var(--panel); border-radius: 12px; padding: 18px; max-width: 520px; width: 100%; max-height: 90vh; overflow: auto; box-shadow: 0 6px 30px rgba(0,0,0,.3); }
.modal-box h2 { font-size: 18px; text-transform: none; letter-spacing: 0; }
.modal-buttons { display: flex; gap: 8px; justify-content: flex-end; margin-top: 12px; flex-wrap: wrap; }
.story { font-size: 15px; }
.data-section { border-top: 1px solid var(--line); padding-top: 10px; margin-top: 10px; }
.msg-ok { color: var(--ok); font-weight: 600; }
.msg-bad { color: var(--short); font-weight: 600; }

/* offline progress */
.eta { font-size: 12px; color: var(--muted); margin-top: 3px; }
.eta:empty { display: none; }
.modal.stale { z-index: 40; }
.away-table { border-collapse: collapse; font-size: 13px; width: 100%; margin: 4px 0 8px; }
.away-table th, .away-table td { border-bottom: 1px solid rgba(0,0,0,.1); padding: 3px 5px; text-align: right; }
.away-table th:first-child, .away-table td:first-child { text-align: left; }
.find-wait { border-left: 3px solid var(--ok); padding-left: 8px; }

/* recovery screen: shown instead of the village when the stored save cannot be loaded */
.recovery { position: fixed; inset: 0; background: var(--bg, #f4ecdc); z-index: 25; overflow: auto; padding: 16px; }
.recovery[hidden] { display: none; }
.recovery-box { background: var(--panel); border-radius: 12px; padding: 18px; max-width: 620px; margin: 24px auto; box-shadow: 0 6px 30px rgba(0,0,0,.2); }
.recovery-box h2 { font-size: 18px; text-transform: none; letter-spacing: 0; }
.recovery-box textarea { width: 100%; box-sizing: border-box; }

/* Chapter 3: the river panel and the fishing outing view (ported from the accepted experiment; all
   rules are scoped to #river-panel, the notebook dialog's .fx wrapper and the #fishing view) */
.fx, #modal .fx {
  --fx-water: #9fc3cf; --fx-water-deep: #5f8fa3; --fx-bank: #b9c98f; --fx-bank-dark: #7f9a5a;
  --fx-float: #d9480f; --fx-hazard: #e9dfc9; --fx-panel: #fffaf0; --fx-ink: #2f2a22; --fx-line: #ddd2bd; --fx-muted: #7a6f5d;
}
.river-actions { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 6px; }
.river-lines { margin: 4px 0 0 18px; padding: 0; font-size: 13.5px; }
.river-lines li { margin: 2px 0; }
.fx { padding: 12px; max-width: 1180px; margin: 0 auto; }
.fx button { min-height: 40px; }
.fx kbd { font: 11px/1 ui-monospace, Consolas, monospace; border: 1px solid currentColor; border-radius: 3px; padding: 1px 4px; margin-left: 2px; opacity: .85; }
.fx button[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); font-weight: 600; }
.fx-bar { display: flex; flex-wrap: wrap; gap: 8px 16px; justify-content: space-between; align-items: center; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; }
.fx-bar h2 { margin: 0; }
.fx-bar p { margin: 2px 0 0; }
.fx-controls { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.fx-setting { display: flex; gap: 10px; align-items: center; border: 1px solid var(--line); border-radius: 8px; padding: 2px 10px; margin: 0; font-size: 14px; }
.fx-setting legend { padding: 0 4px; font-size: 12px; color: var(--muted); }
.fx-setting label { display: flex; gap: 4px; align-items: center; min-height: 32px; cursor: pointer; }
.fx-help { margin-top: 10px; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; }
.fx-help ol { padding-left: 20px; }
.fx-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 12px; margin-top: 12px; align-items: start; }
@media (max-width: 860px) { .fx-layout { grid-template-columns: minmax(0, 1fr); } }
.fx-water { min-width: 0; }
.fx-scene { width: 100%; height: auto; display: block; border-radius: 10px; border: 1px solid var(--line); }
.fx-scene .place { cursor: pointer; }
.fx-panel { margin-top: 10px; padding: 12px; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; }
.fx-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.fx-log { min-height: 1.5em; margin: 8px 0 10px; padding: 6px 10px; border-left: 4px solid var(--accent); background: var(--panel); border-radius: 0 8px 8px 0; }
.fx-log:empty { display: none; }
.fx-places, .fx-methods { border: 0; padding: 0; margin: 0 0 10px; display: grid; gap: 6px; }
.fx-places { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.fx-methods { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.fx-places legend, .fx-methods legend { font-weight: 600; margin-bottom: 4px; padding: 0; }
.fx .choice { text-align: left; display: block; width: 100%; background: #fff; color: var(--ink); border-color: var(--line); }
.fx .choice[aria-pressed="true"] { background: #f6e6d6; color: var(--ink); border-color: var(--accent); box-shadow: inset 0 0 0 2px var(--accent); }
.fx .choice .nm { font-weight: 600; display: block; }
.fx .choice .cue { display: block; font-size: 13px; color: var(--muted); }
.fx .choice .state { display: inline-block; font-size: 12px; border: 1px solid var(--line); border-radius: 999px; padding: 0 7px; margin-top: 3px; }
.fx-float-row { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.fx-float { width: 200px; max-width: 45%; height: auto; background: var(--fx-water); border-radius: 10px; flex: none; }
.fx-float-read { flex: 1 1 220px; min-width: 0; }
.fx-where { margin: 0; color: var(--muted); font-size: 14px; }
.fx-sign-word { font-size: 22px; font-weight: 700; margin: 2px 0; }
.fx-sign-text { margin: 0; }
.fx-float .bob { animation: fx-bob 1.2s ease-in-out infinite; }
.fx-float .shiver { animation: fx-shiver .25s linear infinite; }
@keyframes fx-bob { 50% { transform: translateY(10px); } }
@keyframes fx-shiver { 50% { transform: translateX(1.5px); } }
.fx-landing-head { margin: 0 0 8px; font-size: 16px; }
.fx-pull { display: inline-block; margin-left: 8px; padding: 0 8px; border: 2px solid var(--ink); border-radius: 6px; font-weight: 700; }
.fx-track { position: relative; height: 56px; border-radius: 8px; background: linear-gradient(90deg, var(--fx-hazard) 0 12%, var(--fx-water) 12% 88%, var(--fx-hazard) 88%); border: 1px solid var(--line); }
.fx-track .fx-mid { position: absolute; left: 50%; top: 6px; bottom: 6px; border-left: 2px dashed var(--fx-water-deep); }
.fx-edge { position: absolute; top: 4px; font-size: 12px; font-weight: 600; max-width: 12%; line-height: 1.1; }
.fx-edge-left { left: 4px; } .fx-edge-right { right: 4px; text-align: right; }
.fx-fishmark { position: absolute; top: 12px; font-size: 26px; line-height: 1; transform: translateX(-50%); }
.fx-land-status { margin: 8px 0; min-height: 1.4em; }
.fx-tire { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.fx-tire-bar { flex: 1; height: 12px; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; background: var(--bg); }
.fx-tire-bar span { display: block; height: 100%; background: var(--accent); }
.fx-hint { font-size: 13px; color: var(--muted); margin: 8px 0 0; }
.fx-notes { margin: 0; padding-left: 18px; }
.fx-notebook { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 12px; }
.fx-ask { border: 1px solid var(--line); border-radius: 8px; padding: 6px 10px; margin-bottom: 8px; background: #fff; }
.fx-ask .who { font-weight: 600; }
.fx-ask.done { opacity: .8; }
.fx-ask p { margin: 4px 0 0; }
.fx-badge { display: inline-block; font-size: 12px; font-weight: 600; border: 1px solid var(--ink); border-radius: 999px; padding: 0 7px; margin-left: 5px; }
.fx-entry { border-top: 1px solid var(--line); padding: 6px 0; }
.fx-entry h3 { margin: 0; font-size: 15px; }
.fx-entry p { margin: 2px 0; font-size: 14px; }
.fx-entry .unknown { color: var(--muted); font-style: italic; }
.fx details summary { cursor: pointer; font-weight: 600; padding: 4px 0; }
.fx-advice { padding-left: 18px; margin: 3px 0 8px; font-size: 14px; }
.fx-pause { position: fixed; inset: 0; background: rgba(40, 30, 20, .45); display: grid; place-items: center; padding: 16px; z-index: 28; }
.fx-pause[hidden] { display: none; }
.fx-pause-box { background: var(--panel); border-radius: 12px; padding: 18px 22px; max-width: 360px; text-align: center; box-shadow: 0 6px 30px rgba(0,0,0,.3); }
.fx .tip { margin: 8px 0 0; padding: 6px 10px; border: 1px dashed var(--accent); border-radius: 8px; font-size: 14px; background: #fff; }
.fx .tip .tip-who { font-weight: 700; }
.fx .tip .tip-off { min-height: 0; padding: 0 6px; margin-left: 6px; font-size: 12px; background: transparent; color: var(--accent); }
.fx-move { display: grid; grid-template-columns: auto auto 1fr; grid-template-areas: "step arrow word" "last last last"; align-items: center; gap: 3px 10px; padding: 8px 12px; border: 2px solid var(--line); border-radius: 8px; margin: 8px 0; }
.fx-move.fresh { border-color: var(--ink); animation: fx-freshmove .6s ease-out; }
.fx-move-step { grid-area: step; font-size: 13px; font-weight: 700; border: 1px solid var(--ink); border-radius: 999px; padding: 0 8px; }
.fx-move-arrow { grid-area: arrow; font-size: 34px; line-height: 1; font-weight: 700; }
.fx-move-word { grid-area: word; font-size: 20px; font-weight: 700; }
.fx-move-last { grid-area: last; font-size: 14px; color: var(--muted); }
@keyframes fx-freshmove { from { background: #fbf0d3; } to { background: transparent; } }
.fx-resp { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; }
.fx-resp .fx-r-sub { font-size: 12px; opacity: .8; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (max-width: 720px) { .fx { padding: 8px; } .fx-methods { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .fx-float .bob, .fx-float .shiver, .fx-move.fresh { animation: none; } }
#modal .fx { padding: 0; }
main.layout[hidden], .fx [hidden] { display: none !important; }
/* PF-17 Collections */
#open-collections[hidden] { display: none; }
.collection { list-style: none; margin: 0; padding: 0; }
.collect-row { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 6px 0; border-top: 1px solid var(--line); }
.collect-row:first-child { border-top: none; }
.new-mark { color: var(--ok); font-weight: 600; }
