
@font-face {
  font-family: "Cinzel Decorative";
  src: url("assets/fonts/CinzelDecorative-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Cinzel Decorative";
  src: url("assets/fonts/CinzelDecorative-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Crimson Text";
  src: url("assets/fonts/CrimsonText-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Crimson Text";
  src: url("assets/fonts/CrimsonText-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Crimson Text";
  src: url("assets/fonts/CrimsonText-Italic.ttf") format("truetype");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "IM Fell French Canon";
  src: url("assets/fonts/IMFellFrenchCanon-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* Adventures + Healer’s Tent — dark fantasy gold chrome (aligned with training) */

/* Shared world chrome — leather pouch, no HUD brackets */
body.world-ui {
  background:
    radial-gradient(900px 480px at 50% -10%, rgba(120, 80, 36, 0.35) 0%, transparent 55%),
    radial-gradient(1100px 520px at 30% 50%, rgba(60, 110, 70, 0.14) 0%, transparent 50%),
    linear-gradient(180deg, #2a1c12 0%, #1a120c 55%, #120c08 100%);
  color: #f3e6d0;
}
body.world-ui .brand h1 {
  font-family: "Cinzel Decorative", Georgia, serif;
  color: #f3e2b8;
  text-shadow: 0 2px 0 #3a2410, 0 0 18px rgba(255, 180, 60, 0.25);
}
body.world-ui .brand .tag {
  font-family: "Crimson Text", Georgia, serif;
  text-transform: none;
  letter-spacing: 0.02em;
  color: #c4a574;
}
body.world-ui .nav a { color: #b89868; font-family: "Crimson Text", Georgia, serif; }
body.world-ui .nav a.active { color: #f0e0c0; text-shadow: none; }

.pouch-hud {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  padding: 10px 14px;
  margin-bottom: 12px;
  background: linear-gradient(180deg, #5a3e28 0%, #3a2818 100%);
  border: 2px solid #8a6238;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 220, 160, 0.15);
}
.pouch-hud .hud-cell .label {
  display: block;
  font-family: "Crimson Text", Georgia, serif;
  font-size: 0.72rem;
  color: #d4b888;
  text-transform: none;
  letter-spacing: 0.02em;
}
.pouch-hud .hud-cell strong {
  font-family: "IM Fell French Canon", Georgia, serif;
  font-size: 1.1rem;
  color: #f8ecd0;
}
.pouch-hud .hud-cell.gems strong { color: #f5c542; }
.pouch-hud .hud-cell.soft strong { color: #c8e8a8; }
.pouch-hud .hud-cell.goldish strong { color: #f0d78c; }

body.world-ui .tab-row { gap: 10px; }
body.world-ui .tab {
  padding: 10px 18px;
  min-height: 44px;
  border-radius: 6px 6px 0 0;
  border: 2px solid #6a4a28;
  background: #3a2818;
  color: #d4b888;
  font-family: "IM Fell French Canon", "Crimson Text", Georgia, serif;
  font-weight: 700;
  font-size: 1rem;
}
body.world-ui .tab.active {
  background: linear-gradient(180deg, #7a5430, #5a3a1c);
  color: #fff6e0;
  border-color: #c49048;
  box-shadow: 0 -2px 12px rgba(255, 180, 60, 0.2);
}

.parchment-modal {
  position: relative;
  width: min(420px, 100%);
  padding: 24px 20px 18px;
  background: linear-gradient(165deg, #f0e0c0, #d4b888);
  border: 3px solid #6a4a28;
  border-radius: 6px 16px;
  color: #2a1a0c;
  font-family: "Crimson Text", Georgia, serif;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}
.parchment-modal h3 {
  margin: 0 0 8px;
  font-family: "Cinzel Decorative", Georgia, serif;
  color: #3a2410;
}
.parchment-modal p { color: #4a3420; }

.event-rush-banner {
  font-family: "Crimson Text", Georgia, serif;
  background: linear-gradient(135deg, #6a3a18, #4a2818) !important;
  border-color: #c49048 !important;
  color: #f8ecd0 !important;
}

:root {
  --bg: #0b0d12;
  --bg2: #12151d;
  --panel: #161a24;
  --line: #2a3142;
  --text: #e8ecf4;
  --muted: #8b93a7;
  --accent: #7c5cff;
  --accent2: #3de7c2;
  --danger: #ff5c7a;
  --gold: #f5c542;
  --good: #5ddea8;
  --warn: #f0c14a;
  --crimson: #c43c55;
  --radius: 14px;
  --frame-gold: #d4b04a;
  --frame-gold-bright: #f0d78c;
  --frame-gold-dim: rgba(212, 176, 74, 0.55);
  --shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
  --human: #c4a574;
  --elf: #5ddea8;
  --ork: #c43c55;
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }
html, body {
  margin: 0;
  height: 100%;
  overflow: hidden;   /* ns2: lock page scroll; sheets/lists keep contained scroll */
  min-height: 0;
  background:
    radial-gradient(900px 480px at 50% -10%, rgba(56, 42, 18, 0.45) 0%, transparent 55%),
    radial-gradient(1100px 520px at 30% 50%, rgba(40, 90, 70, 0.12) 0%, transparent 50%),
    radial-gradient(1100px 520px at 50% -8%, #1a1430 0%, var(--bg) 55%);
  color: var(--text);
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
a { color: var(--accent2); text-decoration: none; }
a:hover { text-decoration: underline; }
button { font: inherit; cursor: pointer; }
button:disabled { opacity: 0.45; cursor: not-allowed; }
code { font-size: 0.85em; color: var(--frame-gold-bright); }
em { font-style: italic; color: var(--muted); }

.app {
  max-width: 980px;
  margin: 0 auto;
  padding: 12px 14px 56px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.brand h1 {
  margin: 0;
  font-size: 1.35rem;
  letter-spacing: 0.04em;
  text-shadow: 0 0 18px rgba(245, 197, 66, 0.2);
}
.brand .tag {
  display: inline-block;
  margin-top: 2px;
  font-size: 0.7rem;
  color: var(--frame-gold-dim);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.nav { display: flex; gap: 10px; flex-wrap: wrap; font-size: 0.85rem; }
.nav a { color: var(--muted); }
.nav a.active {
  color: var(--frame-gold-bright);
  font-weight: 600;
  text-shadow: 0 0 10px rgba(245, 197, 66, 0.25);
}

.chrome {
  position: relative;
  background: linear-gradient(165deg, rgba(28, 24, 38, 0.96), rgba(14, 16, 24, 0.98));
  border: 1px solid var(--frame-gold-dim);
  border-radius: var(--radius);
  box-shadow: var(--shadow), inset 0 0 0 1px rgba(245, 197, 66, 0.06);
}
.chrome .c-tr, .chrome .c-bl {
  position: absolute;
  width: 18px; height: 18px;
  pointer-events: none;
  border-color: var(--frame-gold);
  border-style: solid;
  opacity: 0.85;
}
.chrome .c-tr { top: 6px; right: 6px; border-width: 2px 2px 0 0; }
.chrome .c-bl { bottom: 6px; left: 6px; border-width: 0 0 2px 2px; }

.player-hud {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  padding: 10px 14px;
  margin-bottom: 12px;
}
.hud-cell .label {
  display: block;
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}
.hud-cell strong { font-size: 1.05rem; }
.hud-cell.gems strong { color: var(--gold); }
.hud-cell.soft strong { color: var(--accent2); }
.hud-cell.goldish strong { color: var(--frame-gold-bright); }
.hud-cell.acct-pow strong { color: var(--frame-gold-bright); }

.unlock-note {
  padding: 10px 14px;
  margin-bottom: 12px;
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.45;
}
.unlock-note strong { color: var(--warn); }

.tab-row {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.tab {
  padding: 8px 14px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--muted);
  font-weight: 600;
  font-size: 0.88rem;
}
.tab.active {
  border-color: var(--frame-gold-dim);
  color: var(--frame-gold-bright);
  background: linear-gradient(135deg, #3a2e12 0%, #2a2210 100%);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--text);
  font-weight: 600;
  font-size: 0.88rem;
  transition: transform 0.08s, border-color 0.15s, background 0.15s;
}
.btn:hover:not(:disabled) { border-color: var(--frame-gold-dim); }
.btn:active:not(:disabled) { transform: scale(0.97); }
.btn.sm { padding: 6px 10px; font-size: 0.78rem; }
.btn.gold {
  background: linear-gradient(135deg, #3a2e12 0%, #2a2210 100%);
  border-color: var(--frame-gold-dim);
  color: var(--frame-gold-bright);
}
.btn.ghost {
  background: transparent;
  border-color: rgba(212, 176, 74, 0.28);
  color: var(--muted);
}
.btn.danger {
  background: #2a1218;
  border-color: #7a3044;
  color: var(--danger);
}
.btn.good {
  background: #153528;
  border-color: #2a6b4e;
  color: var(--good);
}
.btn.primary {
  background: linear-gradient(135deg, #2a1f4a 0%, #1a2240 100%);
  border-color: rgba(124, 92, 255, 0.45);
  color: #c4b5fd;
}

.hall {
  padding: 16px 16px 20px;
  margin-bottom: 14px;
  overflow: hidden;
}
.hall::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% 100%, rgba(40, 70, 50, 0.28) 0%, transparent 70%),
    linear-gradient(180deg, rgba(30, 24, 48, 0.4) 0%, transparent 40%);
  pointer-events: none;
}
.healer-hall::before {
  background:
    radial-gradient(ellipse 80% 50% at 50% 100%, rgba(80, 40, 50, 0.28) 0%, transparent 70%),
    linear-gradient(180deg, rgba(30, 24, 48, 0.4) 0%, transparent 40%);
}
.hall-banner {
  position: relative;
  text-align: center;
  margin-bottom: 16px;
}
.hall-banner h2 {
  margin: 0;
  font-size: 1.45rem;
  letter-spacing: 0.06em;
  color: var(--frame-gold-bright);
}
.hall-banner .sub {
  margin: 6px 0 0;
  font-size: 0.82rem;
  color: var(--muted);
}

.slot-strip, .beds-strip {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}
.slot-card, .bed-card {
  width: 150px;
  min-height: 170px;
  padding: 10px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(212, 176, 74, 0.22);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.slot-card.locked, .bed-card.locked {
  opacity: 0.55;
  border-style: dashed;
}
.slot-card .thumb, .bed-card .thumb {
  width: 64px;
  height: 64px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--frame-gold-dim);
  background: #0e1018;
}
.slot-card .thumb img, .bed-card .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}
.slot-card .name, .bed-card .name { font-weight: 600; font-size: 0.85rem; }
.slot-card .meta, .bed-card .meta { font-size: 0.72rem; color: var(--muted); }
.slot-card .timer, .bed-card .timer { font-size: 0.9rem; color: var(--accent2); font-weight: 700; }
.slot-buy-row {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 12px;
  flex-wrap: wrap;
}
.slot-buy-row .hint { font-size: 0.78rem; color: var(--muted); }

.cols {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 12px;
  margin-bottom: 14px;
}
@media (max-width: 720px) {
  .cols { grid-template-columns: 1fr; }
}

.panel {
  padding: 14px 14px 16px;
  margin-bottom: 14px;
}
.panel-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}
.panel-head h3 {
  margin: 0;
  font-size: 1rem;
  color: var(--frame-gold-bright);
}
.panel-head .hint { font-size: 0.72rem; color: var(--muted); }

.roster {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 420px;
  overflow-y: auto;
}
.roster-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  border-radius: 10px;
  border: 1px solid transparent;
  background: rgba(0, 0, 0, 0.25);
  cursor: pointer;
  text-align: left;
  color: inherit;
  width: 100%;
}
.roster-card:hover { border-color: rgba(212, 176, 74, 0.35); }
.roster-card.selected {
  border-color: var(--frame-gold);
  box-shadow: 0 0 12px rgba(245, 197, 66, 0.18);
}
.roster-card.busy { opacity: 0.55; }
.roster-card .r-thumb {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
  border: 1px solid var(--line);
  background: #0e1018;
}
.roster-card .r-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}
.roster-card .r-info { flex: 1; min-width: 0; }
.roster-card .r-name { font-weight: 600; font-size: 0.88rem; }
.roster-card .r-meta { font-size: 0.72rem; color: var(--muted); }
.roster-card .badge {
  font-size: 0.65rem;
  padding: 2px 6px;
  border-radius: 6px;
  background: #2a1f4a;
  color: #c4b5fd;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.roster-card .badge.wounded { background: #3a1520; color: var(--danger); }
.roster-card .badge.out { background: #153528; color: var(--good); }
.roster-card .badge.train { background: #2a2210; color: var(--warn); }

.mission-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
@media (max-width: 520px) {
  .mission-grid { grid-template-columns: 1fr; }
}
.mission-card {
  padding: 12px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(212, 176, 74, 0.18);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.mission-card.hard { border-color: rgba(255, 92, 122, 0.35); }
.mission-card strong {
  color: var(--frame-gold-bright);
  font-size: 0.95rem;
}
.mission-card .tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.mission-card .tag-pill {
  font-size: 0.65rem;
  padding: 2px 6px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--muted);
}
.mission-card .tag-pill.diff-hard { color: var(--danger); background: rgba(255, 92, 122, 0.12); }
.mission-card .tag-pill.diff-easy { color: var(--good); background: rgba(93, 222, 168, 0.1); }
.mission-card p {
  margin: 0;
  font-size: 0.75rem;
  color: var(--muted);
  line-height: 1.4;
  flex: 1;
}

.blessing-strip {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-bottom: 10px;
  min-height: 28px;
}
.bless-flag {
  font-size: 0.72rem;
  padding: 4px 10px;
  border-radius: 8px;
  border: 1px solid rgba(124, 92, 255, 0.4);
  background: rgba(42, 31, 74, 0.6);
  color: #c4b5fd;
}
.bless-flag.off { opacity: 0.35; border-style: dashed; }
.fatigue-row {
  position: relative;
  text-align: center;
  font-size: 0.78rem;
  color: var(--muted);
  margin-bottom: 12px;
}
.fatigue-row.strained { color: var(--danger); }

.healer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
@media (max-width: 720px) {
  .healer-grid { grid-template-columns: 1fr; }
}
.healer-card {
  padding: 12px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(212, 176, 74, 0.2);
}
.healer-card[data-race="human"] { border-top: 3px solid var(--human); }
.healer-card[data-race="elf"] { border-top: 3px solid var(--elf); }
.healer-card[data-race="ork"] { border-top: 3px solid var(--ork); }
.healer-card h4 {
  margin: 0 0 4px;
  font-size: 0.95rem;
  color: var(--frame-gold-bright);
}
.healer-card .role {
  font-size: 0.72rem;
  color: var(--muted);
  margin-bottom: 8px;
}
.healer-card .status-line {
  font-size: 0.78rem;
  margin-bottom: 8px;
}
.healer-card .status-line.on { color: var(--good); }
.healer-card .status-line.off { color: var(--muted); }
.tree-nodes {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.tree-node {
  padding: 8px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  font-size: 0.72rem;
}
.tree-node.owned {
  border-color: rgba(93, 222, 168, 0.4);
  background: rgba(21, 53, 40, 0.35);
}
.tree-node .node-name { font-weight: 600; color: var(--text); display: block; margin-bottom: 2px; }
.tree-node .node-cost { color: var(--muted); }
.tree-node .btn { margin-top: 6px; width: 100%; }

.wounded-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-height: 40px;
}
.wounded-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 10px;
  background: rgba(42, 18, 24, 0.6);
  border: 1px solid #7a3044;
  font-size: 0.78rem;
}
.wounded-chip img {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  object-fit: cover;
  object-position: top center;
}

.lab-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.lab-note {
  margin: 12px 0 0;
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.45;
}

.toast {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 50;
  max-width: 90vw;
  padding: 10px 16px;
  border-radius: 10px;
  background: #1e1835;
  border: 1px solid var(--frame-gold-dim);
  color: var(--text);
  font-size: 0.88rem;
  box-shadow: var(--shadow);
}
.toast.err {
  border-color: #7a3044;
  background: #2a1218;
  color: #ffb0be;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.65);
  padding: 16px;
}
.modal[hidden] { display: none !important; }
.modal-card {
  position: relative;
  width: min(420px, 100%);
  padding: 20px 18px 16px;
}
.modal-x {
  position: absolute;
  top: 8px; right: 10px;
  border: none;
  background: transparent;
  color: var(--muted);
  font-size: 1.4rem;
  line-height: 1;
  padding: 4px 8px;
}
.modal-card h3 {
  margin: 0 0 8px;
  color: var(--frame-gold-bright);
}
.modal-card p {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.45;
}
.modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.event-rush-banner {
  margin: 0 0 0.75rem;
  padding: 0.65rem 0.9rem;
  border-radius: 10px;
  border: 1px solid rgba(212, 168, 75, 0.45);
  background: linear-gradient(135deg, rgba(80, 40, 20, 0.85), rgba(30, 20, 40, 0.9));
  color: #f3e6c8;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.92rem;
}
.event-live-tag {
  display: inline-block;
  padding: 0.15rem 0.45rem;
  border-radius: 6px;
  background: #a33;
  color: #fff;
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}


/* ——— Healer’s Tent: inside the canvas (not a dashboard) ——— */
body.on-healer .unlock-note { display: none; }
body.on-healer .app {
  max-width: 1280px;
  padding-bottom: 24px;
}
/* healer pouch handled by .pouch-hud */
body.on-healer .player-hud .label {
  font-family: "Crimson Text", Georgia, serif;
  text-transform: none;
  letter-spacing: 0.02em;
  color: #c4a574;
}
body.on-healer .tab-row .tab {
  font-family: "IM Fell French Canon", "Crimson Text", Georgia, serif;
  background: #2a1c10;
  border-color: #6a4a28;
  color: #c9b08a;
  border-radius: 4px 4px 0 0;
}
body.on-healer .tab-row .tab.active {
  background: linear-gradient(180deg, #5a3e22, #3a2814);
  color: #f0e0c0;
  border-color: #a07840;
}

#viewHealer {
  margin: 0 -6px 12px;
}

.tent-scene {
  position: relative;
  min-height: min(78vh, 760px);
  border-radius: 10px;
  overflow: hidden;
  border: 3px solid #5a3a1c;
  box-shadow:
    0 0 0 1px #2a180c,
    0 18px 48px rgba(0, 0, 0, 0.55),
    inset 0 0 80px rgba(40, 18, 8, 0.35);
  background: #1a1008;
}

.tent-bg {
  position: absolute;
  inset: 0;
  background:
    url("assets/town/rooms/room_healers_tent.png") center 28% / cover no-repeat;
  filter: saturate(1.08) contrast(1.02) brightness(1.05);
  transform: scale(1.04);
  background-position: center 40%;
}

.tent-vignet {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 75% 60% at 50% 38%, rgba(255, 180, 80, 0.08) 0%, transparent 55%),
    linear-gradient(180deg, rgba(40, 22, 10, 0.25) 0%, transparent 20%, transparent 50%, rgba(20, 10, 4, 0.55) 100%);
}

.tent-sign {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 14px 16px 6px;
  pointer-events: none;
}
.tent-sign h2 {
  margin: 0;
  font-family: "Cinzel Decorative", "IM Fell French Canon", Georgia, serif;
  font-size: clamp(1.35rem, 4vw, 2rem);
  font-weight: 700;
  color: #f3e2b8;
  letter-spacing: 0.06em;
  text-shadow:
    0 2px 0 #3a2410,
    0 0 18px rgba(255, 180, 60, 0.35),
    0 8px 24px rgba(0, 0, 0, 0.7);
}
.tent-mood {
  margin: 4px 0 0;
  font-family: "Crimson Text", Georgia, serif;
  font-style: italic;
  font-size: 0.95rem;
  color: #d8c4a0;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
}

.seal-rail {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  padding: 4px 12px 8px;
  min-height: 28px;
}
.bless-seal {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px 5px 8px;
  font-family: "IM Fell French Canon", "Crimson Text", Georgia, serif;
  font-size: 0.78rem;
  color: #f0e0c4;
  background:
    radial-gradient(circle at 18% 50%, #8b1e2a 0 10px, transparent 11px),
    linear-gradient(180deg, #4a3220 0%, #2e1c10 100%);
  border: 1px solid #8a6238;
  border-radius: 3px 12px 12px 3px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.45);
  letter-spacing: 0.02em;
}
.bless-seal::before {
  content: "";
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #e85858, #7a1420 70%);
  box-shadow: inset 0 0 0 1px rgba(255, 220, 160, 0.35);
  flex-shrink: 0;
}
.bless-seal.off {
  opacity: 0.38;
  filter: grayscale(0.4);
}
.bless-seal.on {
  opacity: 1;
}

.tent-plaque {
  position: relative;
  z-index: 2;
  margin: 0 auto 8px;
  max-width: 420px;
  padding: 6px 14px;
  text-align: center;
  font-family: "Crimson Text", Georgia, serif;
  font-size: 0.88rem;
  color: #3a2814;
  background: linear-gradient(180deg, #d8c49a, #c4a878);
  border: 2px solid #6a4a28;
  border-radius: 4px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.4);
}
.tent-plaque.strained {
  color: #5a1010;
  background: linear-gradient(180deg, #e0b090, #c88868);
  border-color: #8a3030;
}

/* Healer stations overlaid on tent midground */
.healer-stations {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding: 4px 10px 8px;
  max-width: 980px;
  margin: 0 auto;
}
@media (max-width: 640px) {
  .healer-stations {
    grid-template-columns: repeat(3, 1fr);
    max-width: 100%;
    gap: 4px;
    padding: 2px 6px 6px;
  }
  .healer-station { padding: 4px 2px 6px; }
  .healer-station .station-nameplate strong { font-size: 0.58rem; }
  .healer-station .station-nameplate span { display: none; }
  .healer-station .station-hint { font-size: 0.62rem; padding: 1px 4px; }
}

.healer-station {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 8px 6px 10px;
  cursor: pointer;
  background: transparent;
  border: none;
  color: inherit;
  font: inherit;
  -webkit-tap-highlight-color: transparent;
}
.healer-station:focus-visible {
  outline: 2px solid #f0d78c;
  outline-offset: 2px;
}
.healer-station .station-frame {
  position: relative;
  width: min(148px, 38vw);
  height: min(168px, 44vw);
  border-radius: 8px 8px 4px 4px;
  overflow: hidden;
  border: 3px solid #6a4a28;
  box-shadow:
    0 8px 20px rgba(0, 0, 0, 0.55),
    inset 0 0 0 1px rgba(255, 220, 160, 0.2);
  background: #1a1008;
}
.healer-station[data-race="human"] .station-frame {
  border-color: #a07848;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.55), 0 0 16px rgba(196, 165, 116, 0.25);
}
.healer-station[data-race="elf"] .station-frame {
  border-color: #4a8a68;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.55), 0 0 16px rgba(80, 180, 120, 0.28);
}
.healer-station[data-race="ork"] .station-frame {
  border-color: #8a3840;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.55), 0 0 16px rgba(180, 60, 70, 0.28);
}
.healer-station.locked .station-frame {
  filter: grayscale(0.55) brightness(0.7);
  opacity: 0.85;
}
.healer-station .station-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}
.healer-station .station-glow {
  position: absolute;
  inset: auto 0 0;
  height: 40%;
  background: linear-gradient(transparent, rgba(255, 160, 40, 0.22));
  pointer-events: none;
}
.healer-station .station-nameplate {
  max-width: 160px;
  padding: 4px 10px 5px;
  text-align: center;
  background: linear-gradient(180deg, #3a2818, #24180e);
  border: 1px solid #8a6238;
  border-radius: 3px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}
.healer-station .station-nameplate strong {
  display: block;
  font-family: "Cinzel Decorative", "IM Fell French Canon", Georgia, serif;
  font-size: 0.72rem;
  color: #f0e0c0;
  letter-spacing: 0.03em;
  line-height: 1.25;
}
.healer-station .station-nameplate span {
  display: block;
  font-family: "Crimson Text", Georgia, serif;
  font-size: 0.7rem;
  color: #b89868;
  font-style: italic;
}
.healer-station .station-hint {
  font-family: "Crimson Text", Georgia, serif;
  font-size: 0.72rem;
  color: #e8d4a8;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9);
  background: rgba(20, 10, 4, 0.55);
  padding: 2px 8px;
  border-radius: 3px;
}
.healer-station.locked .station-hint { color: #c9a070; }

/* Cot bay — wooden shelf of beds */
.cot-bay {
  position: relative;
  z-index: 3;
  margin: 6px 10px 10px;
  padding: 10px 10px 14px;
  background:
    linear-gradient(180deg, rgba(58, 38, 20, 0.68), rgba(28, 16, 8, 0.75));
  border: 2px solid #6a4a28;
  border-radius: 6px;
  box-shadow: inset 0 1px 0 rgba(255, 220, 160, 0.12), 0 8px 24px rgba(0, 0, 0, 0.4);
}
.cot-bay-title, .bench-title {
  margin: 0 0 8px;
  text-align: center;
  font-family: "Cinzel Decorative", Georgia, serif;
  font-size: 0.95rem;
  color: #e8d4a8;
  letter-spacing: 0.08em;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}
.cot-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.cot-slot {
  width: 148px;
  min-height: 196px;
  padding: 8px 8px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  background:
    linear-gradient(165deg, #cbb892 0%, #b89a6a 40%, #9a7a4a 100%);
  border: 2px solid #5a3a1c;
  border-radius: 4px;
  box-shadow:
    inset 0 0 0 1px rgba(255, 240, 200, 0.25),
    0 4px 12px rgba(0, 0, 0, 0.4);
  color: #2a1a0c;
  text-align: center;
  font-family: "Crimson Text", Georgia, serif;
}
.cot-slot.locked {
  opacity: 0.55;
  background: linear-gradient(165deg, #8a7860, #6a5a48);
  border-style: dashed;
}
.cot-slot.empty .cot-empty-mark {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-style: italic;
  color: #5a4028;
  font-size: 0.9rem;
}
.cot-slot .cot-label {
  font-family: "IM Fell French Canon", Georgia, serif;
  font-size: 0.72rem;
  color: #5a3a1c;
  letter-spacing: 0.04em;
}
.cot-slot .cot-portrait {
  width: 72px;
  height: 72px;
  border-radius: 50% 50% 8px 8px;
  overflow: hidden;
  border: 2px solid #4a3018;
  background: #1a1008;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
}
.cot-slot .cot-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}
.cot-slot .cot-name {
  font-family: "IM Fell French Canon", Georgia, serif;
  font-weight: 700;
  font-size: 0.95rem;
  color: #2a1808;
}
.cot-slot .cot-tier {
  font-size: 0.78rem;
  color: #6a3020;
  font-style: italic;
}
.cot-slot .cot-tier.bruise { color: #5a4a20; }
.cot-slot .cot-tier.wound { color: #7a2818; }
.cot-slot .cot-tier.critical { color: #8a1010; font-weight: 700; }

/* Candle progress — burns down as heal completes */
.candle-timer {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  margin-top: 2px;
}
.candle-timer .candle-body {
  position: relative;
  width: 18px;
  height: 36px;
  background: linear-gradient(90deg, #e8d8a8, #f5ecd0 40%, #d4c080);
  border-radius: 2px 2px 1px 1px;
  border: 1px solid #8a7040;
  overflow: hidden;
  box-shadow: 0 0 8px rgba(255, 180, 40, 0.35);
}
.candle-timer .candle-wax {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  background: linear-gradient(180deg, #fff6d0, #e8c878);
  transition: height 0.4s linear;
}
.candle-timer .candle-flame {
  width: 10px;
  height: 14px;
  margin-bottom: -2px;
  background: radial-gradient(ellipse at 50% 70%, #fff6a0 0%, #ff9a20 45%, transparent 70%);
  border-radius: 50% 50% 40% 40%;
  animation: flame-flicker 0.9s ease-in-out infinite alternate;
}
@keyframes flame-flicker {
  from { transform: scaleY(1) translateY(0); opacity: 1; }
  to { transform: scaleY(1.15) translateY(-1px); opacity: 0.85; }
}
.candle-timer .candle-time {
  font-size: 0.78rem;
  font-weight: 700;
  color: #3a2810;
}

.wax-seal-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  margin-top: 4px;
  padding: 6px 12px;
  min-height: 34px;
  border: none;
  border-radius: 50% / 42%;
  background:
    radial-gradient(circle at 35% 30%, #c44048, #7a1820 70%);
  color: #f8e8c8;
  font-family: "IM Fell French Canon", Georgia, serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  cursor: pointer;
  box-shadow:
    0 2px 0 #4a0c10,
    0 4px 10px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 200, 180, 0.25);
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.5);
}
.wax-seal-btn:hover:not(:disabled) {
  filter: brightness(1.08);
}
.wax-seal-btn:active:not(:disabled) {
  transform: translateY(1px);
}
.wax-seal-btn.good {
  background: radial-gradient(circle at 35% 30%, #4a9a68, #1a5a38 70%);
  box-shadow: 0 2px 0 #0c3020, 0 4px 10px rgba(0, 0, 0, 0.4);
}
.wax-seal-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.waiting-bench {
  position: relative;
  z-index: 3;
  margin: 0 10px 14px;
  padding: 8px 10px 12px;
  background: rgba(30, 18, 10, 0.72);
  border: 1px solid #5a3a1c;
  border-radius: 6px;
}
.waiting-bench .wounded-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  min-height: 36px;
}
.waiting-bench .wounded-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 10px 5px 5px;
  background: linear-gradient(180deg, #4a3020, #2a1810);
  border: 1px solid #8a5838;
  border-radius: 4px;
  color: #f0e0c4;
  font-family: "Crimson Text", Georgia, serif;
  font-size: 0.85rem;
}
.waiting-bench .wounded-chip img {
  width: 34px;
  height: 34px;
  border-radius: 4px;
  object-fit: cover;
  object-position: top center;
  border: 1px solid #6a4a28;
}
.waiting-bench .bench-empty {
  font-family: "Crimson Text", Georgia, serif;
  font-style: italic;
  color: #a89070;
  font-size: 0.88rem;
}

/* Parchment upgrade scroll */
.scroll-overlay {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(10, 5, 2, 0.72);
}
.scroll-overlay[hidden] { display: none !important; }
.parchment-scroll {
  position: relative;
  width: min(420px, 100%);
  max-height: min(86vh, 720px);
  overflow-y: auto;
  padding: 28px 22px 22px;
  background:
    radial-gradient(ellipse at 20% 10%, rgba(255, 240, 200, 0.35), transparent 50%),
    linear-gradient(165deg, #f0e0c0 0%, #e0c898 45%, #d4b888 100%);
  border: 3px solid #6a4a28;
  border-radius: 4px 18px 4px 18px;
  box-shadow:
    0 20px 50px rgba(0, 0, 0, 0.55),
    inset 0 0 40px rgba(120, 80, 30, 0.12);
  color: #2a1a0c;
  font-family: "Crimson Text", Georgia, serif;
}
.parchment-scroll::before,
.parchment-scroll::after {
  content: "";
  position: absolute;
  left: 8px; right: 8px;
  height: 10px;
  background: repeating-linear-gradient(
    90deg,
    #5a3a1c 0 6px,
    #8a6238 6px 10px
  );
  opacity: 0.55;
  border-radius: 2px;
  pointer-events: none;
}
.parchment-scroll::before { top: 8px; }
.parchment-scroll::after { bottom: 8px; }
.scroll-close {
  position: absolute;
  top: 10px; right: 12px;
  border: none;
  background: transparent;
  color: #5a3a1c;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  padding: 4px 8px;
}
.parchment-scroll .scroll-healer {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 12px;
}
.parchment-scroll .scroll-healer img {
  width: 72px;
  height: 88px;
  object-fit: cover;
  object-position: top center;
  border: 2px solid #5a3a1c;
  border-radius: 4px;
  background: #1a1008;
}
.parchment-scroll h3#scrollTitle,
.parchment-scroll .scroll-title {
  margin: 0;
  font-family: "Cinzel Decorative", Georgia, serif;
  font-size: 1.15rem;
  color: #3a2410;
  letter-spacing: 0.03em;
}
.parchment-scroll .scroll-role {
  margin: 2px 0 0;
  font-style: italic;
  color: #6a4a28;
  font-size: 0.9rem;
}
.parchment-scroll .scroll-status {
  margin: 8px 0 12px;
  padding: 6px 10px;
  background: rgba(90, 58, 28, 0.12);
  border-left: 3px solid #8a6238;
  font-size: 0.9rem;
}
.tree-ink {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.tree-ink-node {
  position: relative;
  padding: 10px 12px;
  background: rgba(255, 250, 230, 0.45);
  border: 1px solid #a07848;
  border-radius: 3px;
  box-shadow: 1px 2px 0 rgba(90, 58, 28, 0.15);
}
.tree-ink-node.owned {
  background: rgba(80, 140, 90, 0.18);
  border-color: #3a7a48;
}
.tree-ink-node.locked-req {
  opacity: 0.55;
}
.tree-ink-node .node-name {
  display: block;
  font-family: "IM Fell French Canon", Georgia, serif;
  font-size: 1rem;
  color: #2a1808;
  margin-bottom: 2px;
}
.tree-ink-node .node-cost {
  display: block;
  font-size: 0.82rem;
  color: #5a4028;
  margin-bottom: 6px;
}
.tree-ink-node .node-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.ink-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 5px 12px;
  border: 1px solid #6a4a28;
  border-radius: 3px;
  background: linear-gradient(180deg, #e8d4a8, #c8a878);
  color: #2a1808;
  font-family: "IM Fell French Canon", Georgia, serif;
  font-size: 0.82rem;
  cursor: pointer;
  box-shadow: 0 2px 0 #5a3a1c;
}
.ink-btn:hover { filter: brightness(1.05); }
.ink-btn.gem {
  background: linear-gradient(180deg, #d8c0e8, #a878c0);
  border-color: #6a4080;
  color: #2a1030;
}
.ink-btn.recruit {
  background: linear-gradient(180deg, #c8e0b8, #88b070);
  border-color: #3a6a30;
}

/* Dev drawer — tucked at bottom */
.dev-drawer {
  margin: 8px 0 0;
  border: 1px dashed #3a4255;
  border-radius: 8px;
  background: rgba(14, 16, 24, 0.85);
  color: var(--muted);
  font-size: 0.78rem;
}
.dev-drawer summary {
  cursor: pointer;
  padding: 6px 12px;
  font-family: ui-monospace, monospace;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: lowercase;
  color: #6a7388;
  list-style: none;
}
.dev-drawer summary::-webkit-details-marker { display: none; }
.dev-drawer[open] summary { border-bottom: 1px solid #2a3142; color: #8b93a7; }
.dev-drawer-body { padding: 10px 12px 12px; }
body.on-healer .dev-drawer {
  border-color: #5a3a1c;
  background: rgba(20, 12, 6, 0.85);
}
body.on-healer .dev-drawer summary { color: #8a7048; }

/* Phone portrait squeeze */
@media (max-width: 420px) {
  .tent-scene { min-height: 70vh; border-width: 2px; }
  .cot-slot { width: calc(50% - 8px); min-width: 132px; }
  .healer-station .station-frame {
    width: min(120px, 36vw);
    height: min(140px, 42vw);
  }
  .parchment-scroll { padding: 24px 16px 18px; }
}

@media (min-width: 1100px) {
  .tent-scene { min-height: 720px; }
  .healer-stations { padding-top: 12px; gap: 18px; }
  .healer-station .station-frame { width: 160px; height: 190px; }
}


/* ——— Bounty Desk: warm clerk office ——— */
#viewBoard { margin: 0 -6px 12px; }

.desk-scene {
  position: relative;
  min-height: min(78vh, 760px);
  border-radius: 10px;
  overflow: hidden;
  border: 3px solid #6a4a28;
  box-shadow: 0 0 0 1px #2a180c, 0 18px 48px rgba(0, 0, 0, 0.45);
  background: #2a1c10;
}

.desk-bg {
  position: absolute;
  inset: 0;
  background: url("assets/town/rooms/room_bounty_desk.png") center 42% / cover no-repeat;
  filter: saturate(1.12) brightness(1.1);
}

.desk-vignet {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 80% 55% at 50% 30%, rgba(255, 200, 100, 0.1) 0%, transparent 55%),
    linear-gradient(180deg, rgba(30, 18, 8, 0.2) 0%, transparent 18%, transparent 45%, rgba(18, 10, 4, 0.65) 100%);
}

.desk-sign {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 14px 16px 4px;
}
.desk-sign h2 {
  margin: 0;
  font-family: "Cinzel Decorative", Georgia, serif;
  font-size: clamp(1.35rem, 4vw, 2rem);
  color: #fff6e0;
  letter-spacing: 0.05em;
  text-shadow: 0 2px 0 #3a2410, 0 0 20px rgba(255, 190, 80, 0.4), 0 8px 24px rgba(0, 0, 0, 0.6);
}
.desk-mood {
  margin: 4px 0 0;
  font-family: "Crimson Text", Georgia, serif;
  font-style: italic;
  font-size: 0.98rem;
  color: #f0e0c0;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.85);
}

.clerk-row {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: flex-end;
  gap: 12px;
  padding: 6px 14px 10px;
  max-width: 720px;
  margin: 0 auto;
}
.clerk-figure {
  margin: 0;
  flex-shrink: 0;
  text-align: center;
}
.clerk-figure img {
  width: 96px;
  height: 112px;
  object-fit: cover;
  object-position: top center;
  border-radius: 8px;
  border: 3px solid #c49048;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.45);
  background: #1a1008;
  display: block;
}
.clerk-figure figcaption {
  margin-top: 4px;
  font-family: "IM Fell French Canon", Georgia, serif;
  font-size: 0.78rem;
  color: #f0e0c0;
  text-shadow: 0 1px 3px #000;
}
.clerk-bubble {
  flex: 1;
  margin: 0 0 18px;
  padding: 12px 16px;
  background: linear-gradient(180deg, #f8ecd0, #e8d4a8);
  border: 2px solid #8a6238;
  border-radius: 16px 16px 16px 4px;
  color: #3a2410;
  font-family: "Crimson Text", Georgia, serif;
  font-size: 1.02rem;
  line-height: 1.35;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
  min-height: 48px;
}

.party-rail, .roster-plank, .notice-board {
  position: relative;
  z-index: 3;
  margin: 6px 10px 10px;
  padding: 12px 12px 14px;
  background: linear-gradient(180deg, rgba(72, 48, 28, 0.72), rgba(36, 22, 12, 0.78));
  border: 2px solid #8a6238;
  border-radius: 8px;
  box-shadow: inset 0 1px 0 rgba(255, 220, 160, 0.12), 0 8px 24px rgba(0, 0, 0, 0.35);
}
.rail-title {
  margin: 0 0 4px;
  text-align: center;
  font-family: "Cinzel Decorative", Georgia, serif;
  font-size: 1rem;
  color: #f3e2b8;
  letter-spacing: 0.06em;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.7);
}
.plank-hint {
  margin: 0 0 10px;
  text-align: center;
  font-family: "Crimson Text", Georgia, serif;
  font-style: italic;
  font-size: 0.88rem;
  color: #d4b888;
}

@media (max-width: 720px) {
  .clerk-figure img { width: 76px; height: 90px; }
  .clerk-bubble { font-size: 0.95rem; padding: 10px 12px; }
}

/* Adventure berths — hourglass slots */
.slot-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}
.berth-card {
  width: 150px;
  min-height: 188px;
  padding: 10px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  background: linear-gradient(165deg, #e8d4a8, #c8a878);
  border: 2px solid #6a4a28;
  border-radius: 6px;
  color: #2a1a0c;
  text-align: center;
  font-family: "Crimson Text", Georgia, serif;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
}
.berth-card.locked {
  opacity: 0.55;
  background: linear-gradient(165deg, #9a8870, #7a6858);
  border-style: dashed;
}
.berth-card .berth-label {
  font-family: "IM Fell French Canon", Georgia, serif;
  font-size: 0.75rem;
  color: #5a3a1c;
  letter-spacing: 0.04em;
}
.berth-card .berth-portrait {
  width: 68px;
  height: 68px;
  border-radius: 50% 50% 8px 8px;
  overflow: hidden;
  border: 2px solid #4a3018;
  background: #1a1008;
}
.berth-card .berth-portrait img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: top center;
}
.berth-card .berth-name {
  font-family: "IM Fell French Canon", Georgia, serif;
  font-size: 0.95rem;
  font-weight: 700;
}
.berth-card .berth-meta {
  font-size: 0.78rem;
  color: #5a4028;
  font-style: italic;
}
.berth-card .berth-empty {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-style: italic;
  color: #6a5030;
  font-size: 0.92rem;
}

.hourglass {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  margin: 2px 0;
}
.hourglass .hg-frame {
  width: 28px;
  height: 36px;
  position: relative;
  background:
    linear-gradient(180deg, transparent 0 4%, #d4b888 4% 46%, transparent 46% 54%, #d4b888 54% 96%, transparent 96%),
    linear-gradient(90deg, #8a6238 0 3px, transparent 3px calc(100% - 3px), #8a6238 calc(100% - 3px));
  border-radius: 4px;
  border: 2px solid #5a3a1c;
  overflow: hidden;
}
.hourglass .hg-sand {
  position: absolute;
  left: 3px; right: 3px; bottom: 3px;
  background: linear-gradient(180deg, #e8c060, #c49030);
  transition: height 0.4s linear;
  border-radius: 1px;
}
.hourglass .hg-time {
  font-size: 0.78rem;
  font-weight: 700;
  color: #3a2810;
}

.slot-buy-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 12px;
  flex-wrap: wrap;
}
.slot-buy-row .hint {
  font-family: "Crimson Text", Georgia, serif;
  font-size: 0.88rem;
  color: #d4b888;
}

/* Roster on plank */
.roster-plank .roster {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 380px;
  overflow-y: auto;
}
.hero-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 56px;
  padding: 8px 10px;
  border-radius: 8px;
  border: 2px solid #6a4a28;
  background: linear-gradient(180deg, #f0e0c0, #d8c090);
  color: #2a1a0c;
  cursor: pointer;
  text-align: left;
  font: inherit;
  font-family: "Crimson Text", Georgia, serif;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
  -webkit-tap-highlight-color: transparent;
}
.hero-chip:hover { border-color: #c49048; }
.hero-chip.selected {
  border-color: #e8b040;
  box-shadow: 0 0 0 3px rgba(232, 176, 64, 0.35), 0 4px 12px rgba(0, 0, 0, 0.3);
  background: linear-gradient(180deg, #fff6d8, #f0d890);
}
.hero-chip.busy { opacity: 0.55; }
.hero-chip .r-thumb {
  width: 48px; height: 48px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
  border: 2px solid #5a3a1c;
  background: #1a1008;
}
.hero-chip .r-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: top center;
}
.hero-chip .r-info { flex: 1; min-width: 0; }
.hero-chip .r-name {
  font-family: "IM Fell French Canon", Georgia, serif;
  font-weight: 700;
  font-size: 1rem;
}
.hero-chip .r-meta {
  font-size: 0.8rem;
  color: #5a4028;
}
.hero-chip .badge {
  font-size: 0.72rem;
  padding: 4px 8px;
  border-radius: 999px;
  background: #5a3a1c;
  color: #f0e0c0;
  font-family: "Crimson Text", Georgia, serif;
  white-space: nowrap;
}
.hero-chip .badge.wounded { background: #8a2828; }
.hero-chip .badge.out { background: #2a6a48; }
.hero-chip .badge.train { background: #6a5020; }

/* Mission notices — pinned parchment */
.mission-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
@media (max-width: 520px) {
  .mission-grid { grid-template-columns: 1fr; }
}
.notice-card {
  position: relative;
  padding: 14px 12px 12px;
  min-height: 150px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  background:
    radial-gradient(circle at 12% 8%, #8a2828 0 5px, transparent 6px),
    linear-gradient(165deg, #f8ecd0 0%, #e8d4a8 55%, #d8c090 100%);
  border: 1px solid #8a6238;
  border-radius: 2px 8px 2px 8px;
  color: #2a1a0c;
  font-family: "Crimson Text", Georgia, serif;
  box-shadow: 2px 3px 8px rgba(0, 0, 0, 0.3);
  transform: rotate(-0.4deg);
}
.notice-card:nth-child(2) { transform: rotate(0.6deg); }
.notice-card:nth-child(3) { transform: rotate(-0.8deg); }
.notice-card:nth-child(4) { transform: rotate(0.3deg); }
.notice-card.hard {
  background:
    radial-gradient(circle at 12% 8%, #6a1010 0 5px, transparent 6px),
    linear-gradient(165deg, #f0d8c0 0%, #e0b898 55%, #d0a080 100%);
  border-color: #8a3830;
}
.notice-card .notice-title {
  font-family: "IM Fell French Canon", Georgia, serif;
  font-size: 1.05rem;
  color: #2a1808;
  margin: 0;
  padding-right: 36px;
  line-height: 1.2;
}
.notice-card .diff-seal {
  position: absolute;
  top: 8px; right: 8px;
  width: 36px; height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "IM Fell French Canon", Georgia, serif;
  font-size: 0.62rem;
  font-weight: 700;
  color: #f8ecd0;
  letter-spacing: 0.02em;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 220, 180, 0.3);
}
.notice-card .diff-seal.easy {
  background: radial-gradient(circle at 35% 30%, #5aaa68, #2a6a38 70%);
}
.notice-card .diff-seal.hard {
  background: radial-gradient(circle at 35% 30%, #c44848, #7a1818 70%);
}
.notice-card .notice-blurb {
  margin: 0;
  font-size: 0.85rem;
  color: #5a4028;
  line-height: 1.35;
  flex: 1;
}
.notice-card .loot-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 2px 0 4px;
}
.loot-icon {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(90, 58, 28, 0.12);
  border: 1px solid rgba(90, 58, 28, 0.25);
  font-size: 0.75rem;
  color: #3a2810;
}
.loot-icon .ico {
  width: 14px; height: 14px;
  border-radius: 3px;
  display: inline-block;
  flex-shrink: 0;
}
.loot-icon.planks .ico { background: linear-gradient(135deg, #8a6030, #5a3a18); }
.loot-icon.silver .ico { background: linear-gradient(135deg, #d0d8e0, #8898a8); }
.loot-icon.coin .ico { background: linear-gradient(135deg, #e8c060, #a87820); }
.loot-icon.gold .ico { background: linear-gradient(135deg, #f5d060, #c49020); box-shadow: 0 0 4px rgba(245, 200, 60, 0.5); }
.loot-icon.xp .ico { background: linear-gradient(135deg, #80c090, #408050); }
.notice-send {
  width: 100%;
  min-height: 44px;
  margin-top: 4px;
  padding: 10px 12px;
  border: none;
  border-radius: 6px;
  background: linear-gradient(180deg, #6aaa58, #3a7a38);
  color: #f8fff0;
  font-family: "IM Fell French Canon", Georgia, serif;
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 3px 0 #2a5a28, 0 4px 10px rgba(0, 0, 0, 0.25);
  letter-spacing: 0.02em;
}
.notice-send:hover:not(:disabled) { filter: brightness(1.06); }
.notice-send:active:not(:disabled) { transform: translateY(1px); box-shadow: 0 1px 0 #2a5a28; }
.notice-send:disabled {
  background: linear-gradient(180deg, #9a8870, #7a6858);
  box-shadow: none;
  color: #e8dcc8;
  cursor: not-allowed;
  opacity: 0.7;
}

@media (max-width: 420px) {
  .desk-scene { min-height: 70vh; }
  .berth-card { width: calc(50% - 8px); min-width: 132px; }
}
@media (min-width: 1100px) {
  .desk-scene { min-height: 720px; }
  .clerk-figure img { width: 110px; height: 128px; }
}

/* phone compact world */

@media (max-width: 420px) {
  .desk-sign { padding: 10px 10px 2px; }
  .desk-sign h2 { font-size: 1.25rem; }
  .desk-mood { font-size: 0.85rem; }
  .clerk-row { padding: 2px 8px 6px; gap: 8px; }
  .clerk-figure img { width: 64px; height: 76px; }
  .clerk-bubble { margin-bottom: 8px; font-size: 0.88rem; padding: 8px 10px; }
  .party-rail { margin: 4px 8px 8px; padding: 8px 8px 10px; }
  .berth-card { width: calc(33.33% - 6px); min-width: 100px; min-height: 140px; padding: 6px 4px; }
  .berth-card .berth-portrait { width: 48px; height: 48px; }
  .desk-cols { margin: 0 8px 10px; gap: 8px; }
  .roster-plank, .notice-board { padding: 8px; }
  .hero-chip { min-height: 48px; padding: 6px 8px; }
  .notice-card { min-height: 0; padding: 12px 10px 10px; }
  .tent-sign { padding: 10px 10px 4px; }
  .tent-sign h2 { font-size: 1.25rem; }
  .cot-bay { margin: 4px 8px 8px; padding: 8px; }
  .waiting-bench { margin: 0 8px 10px; }
  .seal-rail { padding: 2px 8px 4px; gap: 4px; }
  .bless-seal { font-size: 0.68rem; padding: 3px 8px 3px 6px; }
  .tent-plaque { font-size: 0.8rem; padding: 4px 10px; margin-bottom: 4px; }
}

/* Bounty stacked: heroes strip → notices → berths */
.roster-strip {
  margin: 4px 10px 8px;
}
.roster-strip .roster {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: 8px;
  max-height: none;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 4px;
  -webkit-overflow-scrolling: touch;
}
.roster-strip .hero-chip {
  flex: 0 0 auto;
  width: 148px;
  flex-direction: column;
  align-items: center;
  text-align: center;
  min-height: 0;
  padding: 8px 8px 10px;
  gap: 4px;
}
.roster-strip .hero-chip .r-thumb {
  width: 56px;
  height: 56px;
}
.roster-strip .hero-chip .r-info { width: 100%; }
.roster-strip .hero-chip .badge { margin-top: 2px; }

.notice-board {
  margin: 4px 10px 8px;
}
@media (min-width: 860px) {
  .notice-board .mission-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* Clearer hourglass */
.hourglass .hg-frame {
  width: 22px;
  height: 34px;
  background: #e8d4a8;
  border: 2px solid #5a3a1c;
  border-radius: 3px;
  clip-path: polygon(0 0, 100% 0, 58% 50%, 100% 100%, 0 100%, 42% 50%);
  overflow: hidden;
}
.hourglass .hg-sand {
  left: 0; right: 0;
  background: linear-gradient(180deg, #e8c060, #a87820);
}

/* Let room art breathe — lighter panels */
.party-rail, .roster-plank, .notice-board, .cot-bay, .waiting-bench {
  backdrop-filter: blur(1px);
}

/* Toast less "system" */
.toast {
  background: linear-gradient(180deg, #5a3e28, #3a2818) !important;
  border: 2px solid #c49048 !important;
  color: #f8ecd0 !important;
  font-family: "Crimson Text", Georgia, serif !important;
  border-radius: 8px !important;
}
.toast.err {
  background: linear-gradient(180deg, #6a2828, #3a1414) !important;
  border-color: #c44848 !important;
  color: #f8d0d0 !important;
}


/* ===== Pass 3: slim bar, visible rooms, wood signs ===== */
body.world-ui {
  background: #1a120c;
}
.app {
  max-width: 1280px !important;
  margin: 0 auto;
  padding: 8px 10px 40px !important;
}

.slim-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 4px;
  margin-bottom: 8px;
  position: relative;
  z-index: 20;
}
.back-town {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, #8a6238, #5a3a1c);
  border: 2px solid #e8c878;
  color: #fff6e0;
  font-size: 1.25rem;
  text-decoration: none !important;
  box-shadow: 0 3px 8px rgba(0,0,0,0.35);
  flex-shrink: 0;
}
.back-town:hover { filter: brightness(1.08); }

.coin-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  flex: 1;
  justify-content: flex-end;
  min-width: 0;
}
.coin-pills .pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 10px;
  min-height: 36px;
  border-radius: 999px;
  background: linear-gradient(180deg, #5a3e28, #3a2818);
  border: 1.5px solid #c49048;
  color: #f8ecd0;
  font-family: "IM Fell French Canon", Georgia, serif;
  font-size: 0.92rem;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}
.coin-pills .pill strong { font-weight: 700; color: #fff6e0; }
.coin-pills .pill.gems strong { color: #f5c542; }
.coin-pills .pill.gold strong { color: #f0d78c; }

.pouch-btn, .menu-btn {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  border: 2px solid #c49048;
  background: linear-gradient(180deg, #6a4a28, #3a2818);
  color: #f8ecd0;
  cursor: pointer;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  font-size: 1.1rem;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
  padding: 0;
}
.pouch-btn { width: auto; padding: 0 10px; min-width: 52px; gap: 1px; }
.pouch-btn .pouch-icon {
  width: 16px; height: 14px;
  border-radius: 3px 3px 6px 6px;
  background: linear-gradient(180deg, #c49048, #8a6238);
  border: 1px solid #e8c878;
  display: block;
}
.pouch-btn .pouch-label {
  font-family: "Crimson Text", Georgia, serif;
  font-size: 0.62rem;
  letter-spacing: 0.04em;
  color: #e8d4a8;
}
.menu-wrap { position: relative; }
.page-menu {
  position: absolute;
  right: 0; top: calc(100% + 6px);
  min-width: 180px;
  padding: 8px;
  background: linear-gradient(180deg, #f8ecd0, #e0c898);
  border: 2px solid #6a4a28;
  border-radius: 8px;
  box-shadow: 0 12px 28px rgba(0,0,0,0.45);
  z-index: 40;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.page-menu[hidden] { display: none !important; }
.page-menu a {
  display: block;
  padding: 10px 12px;
  min-height: 40px;
  color: #3a2410 !important;
  font-family: "IM Fell French Canon", Georgia, serif;
  font-size: 1rem;
  text-decoration: none !important;
  border-radius: 4px;
}
.page-menu a:hover { background: rgba(90,58,28,0.12); }

.soft-pouch {
  margin: 0 0 10px;
  padding: 10px 14px;
  background: linear-gradient(180deg, #5a3e28, #3a2818);
  border: 2px solid #c49048;
  border-radius: 10px;
  box-shadow: 0 6px 16px rgba(0,0,0,0.35);
}
.soft-pouch[hidden] { display: none !important; }
.soft-pouch .pouch-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  justify-content: center;
  font-family: "Crimson Text", Georgia, serif;
  color: #f0e0c0;
  font-size: 0.95rem;
}
.soft-pouch strong { color: #fff6e0; margin-left: 4px; }

/* Resource icons */
.ico-gem, .ico-coin, .ico-gold, .ico-wood, .ico-silver, .ico-pow, .res-ico {
  display: inline-block;
  width: 14px; height: 14px;
  border-radius: 3px;
  vertical-align: -2px;
  flex-shrink: 0;
}
.ico-gem, .res-ico.gems { background: radial-gradient(circle at 35% 30%, #a8f0ff, #3a78c8 70%); border-radius: 50% 50% 40% 40%; }
.ico-coin, .res-ico.coin { background: linear-gradient(135deg, #e8c060, #a87820); border-radius: 50%; }
.ico-gold, .res-ico.gold { background: linear-gradient(135deg, #ffe080, #d4a020); border-radius: 50%; box-shadow: 0 0 4px rgba(255,200,60,0.5); }
.ico-wood, .res-ico.planks { background: linear-gradient(135deg, #8a6030, #5a3a18); }
.ico-silver, .res-ico.silver { background: linear-gradient(135deg, #d0d8e0, #8898a8); border-radius: 50%; }
.ico-pow, .res-ico.pow { background: linear-gradient(135deg, #f0d78c, #a07840); }

/* Hide old chrome leftovers if any */
.topbar, .player-hud, .pouch-hud, .tab-row, .unlock-note { display: none !important; }

/* Wood walk signs between desk ↔ tent */
.wood-sign {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 8px auto 0;
  padding: 8px 16px;
  min-height: 40px;
  border: 2px solid #3a2410;
  border-radius: 4px;
  background:
    linear-gradient(180deg, rgba(255,220,160,0.15), transparent 40%),
    linear-gradient(180deg, #8a6238, #5a3a1c);
  color: #fff6e0;
  font-family: "IM Fell French Canon", Georgia, serif;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  cursor: pointer;
  box-shadow: 0 4px 0 #2a1808, 0 6px 14px rgba(0,0,0,0.35);
  text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}
.wood-sign:hover { filter: brightness(1.06); }
.wood-sign:active { transform: translateY(2px); box-shadow: 0 2px 0 #2a1808; }
.walk-sign { pointer-events: auto; }

.wood-hang {
  position: relative;
  z-index: 3;
  display: inline-block;
  margin: 4px auto 8px;
  padding: 6px 14px;
  background: linear-gradient(180deg, #c4a878, #9a7a48);
  border: 2px solid #5a3a1c;
  border-radius: 3px;
  color: #2a1808;
  font-family: "Crimson Text", Georgia, serif;
  font-size: 0.88rem;
  box-shadow: 0 3px 8px rgba(0,0,0,0.35);
  text-align: center;
}
.wood-hang.strained {
  background: linear-gradient(180deg, #e0a080, #c07050);
  color: #4a1010;
}
.wood-hang[hidden] { display: none !important; }

/* Tent: full-bleed room, light overlays */
#viewHealer, #viewBoard {
  margin: 0 -4px 8px;
}
.tent-scene, .desk-scene {
  min-height: min(86vh, 820px);
  border-radius: 12px;
  border: 3px solid #6a4a28;
  overflow: hidden;
  position: relative;
}
.tent-bg {
  position: absolute !important;
  inset: 0 !important;
  background: url("assets/town/rooms/room_healers_tent.png") center 45% / cover no-repeat !important;
  filter: saturate(1.15) brightness(1.18) contrast(1.02) !important;
  transform: none !important;
  opacity: 1 !important;
}
.tent-vignet {
  background:
    linear-gradient(180deg, rgba(40, 22, 10, 0.18) 0%, transparent 14%, transparent 62%, rgba(20, 10, 4, 0.35) 100%) !important;
  pointer-events: none;
}
.desk-bg {
  background: url("assets/town/rooms/room_bounty_desk.png") center 40% / cover no-repeat !important;
  filter: saturate(1.15) brightness(1.14) !important;
}
.desk-vignet {
  background:
    linear-gradient(180deg, rgba(30, 18, 8, 0.15) 0%, transparent 16%, transparent 58%, rgba(18, 10, 4, 0.4) 100%) !important;
}

.tent-sign, .desk-sign {
  pointer-events: none;
}
.tent-sign .wood-sign, .desk-sign .wood-sign {
  pointer-events: auto;
  display: flex;
}

/* Healer stations — fit 3 on phone, stand in scene */
.healer-stations {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 6px !important;
  padding: 4px 8px 10px !important;
  max-width: 100% !important;
  margin: 0 auto !important;
  width: 100%;
  box-sizing: border-box;
}
.healer-station {
  min-width: 0 !important;
  padding: 4px 2px 6px !important;
  width: 100%;
}
.healer-station .station-frame {
  width: 100% !important;
  max-width: 140px;
  height: auto !important;
  aspect-ratio: 3 / 3.6;
  margin: 0 auto;
  border-radius: 10px 10px 6px 6px !important;
  border-width: 2px !important;
  background: transparent !important;
  box-shadow:
    0 10px 22px rgba(0,0,0,0.45),
    0 0 0 1px rgba(255, 220, 160, 0.2) !important;
}
.healer-station .station-frame img {
  object-fit: cover;
  object-position: top center;
  background: linear-gradient(180deg, transparent 55%, rgba(20,10,4,0.35));
}
.healer-station .station-nameplate {
  max-width: 100%;
  padding: 3px 6px 4px !important;
}
.healer-station .station-nameplate strong {
  font-size: clamp(0.55rem, 2.6vw, 0.72rem) !important;
  line-height: 1.15;
}
.healer-station .station-nameplate span {
  font-size: 0.62rem !important;
}
.healer-station .station-hint {
  font-size: 0.68rem !important;
}

/* Lighter panels so room shows */
.cot-bay, .waiting-bench, .party-rail, .roster-plank, .notice-board {
  background: linear-gradient(180deg, rgba(72, 48, 28, 0.55), rgba(36, 22, 12, 0.62)) !important;
  border-color: rgba(196, 144, 72, 0.65) !important;
}

/* Cost chips in scroll */
.cost-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 4px 0 8px;
}
.cost-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(90, 58, 28, 0.12);
  border: 1px solid rgba(90, 58, 28, 0.28);
  font-size: 0.82rem;
  color: #3a2410;
  font-family: "Crimson Text", Georgia, serif;
}
.bless-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 10px 0 4px;
}
.bless-row .bless-seal {
  font-size: 0.72rem;
}

/* Toast at top, short */
.toast {
  position: fixed !important;
  top: 12px !important;
  bottom: auto !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  z-index: 80 !important;
  max-width: min(92vw, 420px);
  padding: 10px 16px !important;
  background: linear-gradient(180deg, #6a4a28, #3a2818) !important;
  border: 2px solid #e8c878 !important;
  color: #fff6e0 !important;
  font-family: "Crimson Text", Georgia, serif !important;
  font-size: 0.95rem !important;
  border-radius: 10px !important;
  box-shadow: 0 10px 28px rgba(0,0,0,0.45) !important;
  text-align: center;
  pointer-events: none;
}
.toast.err {
  background: linear-gradient(180deg, #8a3030, #4a1414) !important;
  border-color: #e87878 !important;
}

@media (max-width: 420px) {
  .coin-pills .pill { padding: 5px 8px; font-size: 0.82rem; }
  .slim-bar { gap: 6px; }
  .healer-station .station-nameplate span { display: none; }
  .healer-station .station-hint { display: none; }
  .tent-sign h2, .desk-sign h2 { font-size: 1.2rem; }
  .tent-mood, .desk-mood { font-size: 0.82rem; }
  .wood-sign { font-size: 0.85rem; padding: 7px 12px; }
}
@media (min-width: 900px) {
  .healer-station .station-frame { max-width: 168px; }
}

/* Pass 3b fixes */
.event-rush-banner[hidden],
.soft-pouch[hidden],
.page-menu[hidden] {
  display: none !important;
}
.event-rush-banner {
  margin: 0 0 8px !important;
}
.slim-bar {
  margin-bottom: 6px !important;
}
/* room art more visible — soften vignette further */
.tent-vignet, .desk-vignet {
  background:
    linear-gradient(180deg, rgba(30, 16, 8, 0.12) 0%, transparent 12%, transparent 70%, rgba(16, 8, 4, 0.28) 100%) !important;
}
.tent-bg {
  background-position: 50% 22% !important;
  background-size: cover !important;
  filter: saturate(1.2) brightness(1.22) contrast(1.0) !important;
}
.desk-bg {
  filter: saturate(1.18) brightness(1.16) !important;
}
/* healers fit phone: no clip */
.healer-stations {
  padding: 2px 6px 8px !important;
  gap: 4px !important;
}
.healer-station .station-frame {
  max-width: min(112px, 28vw) !important;
  width: 100% !important;
}
@media (max-width: 420px) {
  .healer-station .station-frame {
    max-width: 100% !important;
  }
  .healer-stations {
    padding-left: 4px !important;
    padding-right: 4px !important;
  }
  .back-town::after {
    content: none;
  }
}
.cot-bay {
  background: linear-gradient(180deg, rgba(72, 48, 28, 0.42), rgba(36, 22, 12, 0.5)) !important;
}

/* ork-safe-pad */
.healer-stations { padding-left: 8px !important; padding-right: 8px !important; box-sizing: border-box; }
.healer-station .station-frame { box-sizing: border-box; }
.app { overflow-x: hidden; }
#viewHealer, .tent-scene { overflow-x: hidden; }

/* ==========================================================
   Reward popup (adv4) — parchment scroll on wooden rods, wax seal,
   rewards pop in one by one; stays until the big Collect is pressed.
   ========================================================== */
body.reward-open { overflow: hidden; }
.reward-overlay {
  position: fixed;
  inset: 0;
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: max(12px, env(safe-area-inset-top)) 12px max(12px, env(safe-area-inset-bottom));
  background: radial-gradient(ellipse at 50% 45%, rgba(40, 24, 10, 0.55), rgba(8, 5, 2, 0.86) 70%);
  opacity: 0;
  transition: opacity 0.25s ease;
  touch-action: none;
  -webkit-tap-highlight-color: transparent;
}
.reward-overlay[hidden] { display: none !important; }
.reward-overlay.open { opacity: 1; }
.reward-overlay.closing { opacity: 0; transition-duration: 0.45s; }
.reward-glow {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(1100px, 190vw);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  pointer-events: none;
  background: repeating-conic-gradient(from 0deg, rgba(255, 214, 120, 0.13) 0deg 9deg, transparent 9deg 22deg);
  -webkit-mask: radial-gradient(circle, #000 18%, transparent 62%);
          mask: radial-gradient(circle, #000 18%, transparent 62%);
  animation: rewardSpin 38s linear infinite;
}
@keyframes rewardSpin { to { transform: translate(-50%, -50%) rotate(360deg); } }

.reward-card {
  position: relative;
  width: min(720px, 100%);
  max-height: calc(100dvh - 24px);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  transform: translateY(24px) scale(0.86);
  opacity: 0;
  transition: transform 0.42s cubic-bezier(0.2, 1.5, 0.4, 1), opacity 0.25s ease;
  filter: drop-shadow(0 26px 40px rgba(0, 0, 0, 0.6));
}
.reward-overlay.open .reward-card { transform: none; opacity: 1; }
.reward-overlay.claiming .reward-card { transform: scale(0.96); transition-duration: 0.3s; }

/* wooden rods with knobs */
.reward-rod {
  position: relative;
  z-index: 2;
  height: 22px;
  margin: 0 -14px;
  border-radius: 11px;
  background:
    linear-gradient(180deg, #b07a44 0%, #7a4c22 45%, #4e2e12 100%);
  box-shadow: inset 0 2px 0 rgba(255, 220, 170, 0.35), inset 0 -2px 0 rgba(0, 0, 0, 0.35), 0 4px 8px rgba(0, 0, 0, 0.45);
  flex: 0 0 auto;
}
.reward-rod::before, .reward-rod::after {
  content: "";
  position: absolute;
  top: -5px;
  width: 30px;
  height: 32px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #d8a868, #7a4a1e 60%, #3e220c);
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.5);
}
.reward-rod::before { left: -16px; }
.reward-rod::after { right: -16px; }

.reward-parchment {
  position: relative;
  z-index: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 34px 26px 24px;
  margin: -4px 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  color: #2e1c0c;
  font-family: "Crimson Text", Georgia, serif;
  background:
    radial-gradient(ellipse at 20% 10%, rgba(255, 250, 230, 0.7), transparent 45%),
    radial-gradient(ellipse at 85% 90%, rgba(150, 100, 50, 0.22), transparent 50%),
    linear-gradient(175deg, #f6e6c4 0%, #ecd4a4 55%, #dcbc84 100%);
  box-shadow:
    inset 0 0 0 2px rgba(120, 80, 40, 0.25),
    inset 0 0 42px rgba(120, 70, 20, 0.35),
    inset 12px 0 18px -10px rgba(90, 50, 15, 0.35),
    inset -12px 0 18px -10px rgba(90, 50, 15, 0.35);
}
.reward-seal {
  position: absolute;
  top: 6px;
  right: 18px;
  width: 58px;
  height: 58px;
  border-radius: 46% 54% 50% 50% / 52% 46% 54% 48%;
  background: radial-gradient(circle at 36% 30%, #e0505a, #9a1c26 58%, #5e0c12);
  box-shadow: 0 3px 0 #4a080c, 0 6px 12px rgba(0, 0, 0, 0.35), inset 0 2px 3px rgba(255, 190, 180, 0.35);
  transform: rotate(-12deg);
}
.reward-seal span {
  position: absolute;
  inset: 11px;
  border-radius: 50%;
  border: 2px solid rgba(255, 200, 190, 0.35);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.35);
}
.reward-seal span::after {
  content: "";
  position: absolute;
  inset: 8px;
  background: rgba(255, 210, 200, 0.4);
  clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
}

.reward-head {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding-right: 60px;
  margin-bottom: 6px;
}
.reward-hero {
  flex: 0 0 auto;
  width: 76px;
  height: 76px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid #7a4c22;
  background: radial-gradient(circle at 50% 35%, #fff4d8, #c9a46a);
  box-shadow: 0 3px 8px rgba(60, 30, 5, 0.35);
}
.reward-hero img { width: 100%; height: 140%; object-fit: cover; object-position: 50% 8%; display: block; }
.reward-kicker {
  margin: 0;
  font-family: "IM Fell French Canon", Georgia, serif;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #8a5a24;
}
.reward-head h2 {
  margin: 0;
  font-family: "Cinzel Decorative", Georgia, serif;
  font-size: clamp(1.35rem, 4.6vw, 1.9rem);
  line-height: 1.1;
  color: #3a200a;
}
.reward-sub { margin: 2px 0 0; font-size: 1.1rem; color: #5a3a1a; font-style: italic; }
.reward-hurt {
  width: 100%;
  margin: 6px 0 2px;
  padding: 7px 12px;
  border-radius: 8px;
  background: rgba(150, 40, 40, 0.12);
  border: 1px dashed rgba(140, 40, 30, 0.55);
  color: #7a1c14;
  font-weight: 700;
  font-size: 1rem;
  text-align: center;
}

.reward-grid {
  list-style: none;
  margin: 16px 0 20px;
  padding: 0;
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px 12px;
}
.reward-grid > .reward-tile { width: 124px; }
.reward-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 8px 8px 10px;
  border-radius: 14px;
  background: linear-gradient(180deg, #fff6de, #efd9a8);
  border: 3px solid #8a5a2a;
  box-shadow: 0 4px 0 #5a3614, 0 8px 14px rgba(60, 30, 5, 0.3), inset 0 1px 0 #fffaf0;
  opacity: 0;
  transform: scale(0.2) translateY(20px);
}
.reward-tile.in { animation: rewardPop 0.62s cubic-bezier(0.2, 1.6, 0.35, 1) forwards; }
@keyframes rewardPop {
  0% { opacity: 0; transform: scale(0.2) translateY(20px); }
  55% { opacity: 1; transform: scale(1.16) translateY(-6px); }
  75% { transform: scale(0.95) translateY(0); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}
.reward-tile.kind-gold, .reward-tile.kind-gems, .reward-tile.kind-item {
  border-color: #c8962a;
  box-shadow: 0 4px 0 #7a5410, 0 0 18px rgba(255, 200, 60, 0.45), 0 8px 14px rgba(60, 30, 5, 0.3), inset 0 1px 0 #fffaf0;
}
.reward-pic {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  border-radius: 10px;
  overflow: hidden;
  background: #ead3a0;
  box-shadow: inset 0 0 0 1px rgba(120, 80, 40, 0.3);
}
.reward-pic img { width: 100%; height: 100%; object-fit: cover; display: block; user-select: none; -webkit-user-drag: none; }
.reward-shine {
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, 0.75) 48%, transparent 62%);
  transform: translateX(-120%);
  pointer-events: none;
}
.reward-tile.in .reward-shine { animation: rewardShine 0.9s ease 0.35s 1 forwards; }
@keyframes rewardShine { to { transform: translateX(120%); } }
.reward-amt {
  margin-top: 6px;
  font-family: "Cinzel Decorative", Georgia, serif;
  font-weight: 700;
  font-size: 1.6rem;
  line-height: 1;
  color: #2a6a2a;
  text-shadow: 0 1px 0 #fff8e0;
}
.reward-tile.kind-xp .reward-amt { color: #6a4a10; }
.reward-lbl {
  margin-top: 3px;
  font-family: "IM Fell French Canon", Georgia, serif;
  font-size: 1.05rem;
  color: #4a2e12;
}

.reward-collect {
  position: relative;
  flex: 0 0 auto;
  min-width: min(320px, 100%);
  min-height: 64px;
  padding: 12px 40px;
  border: 4px solid #6a3e18;
  border-radius: 16px;
  background:
    radial-gradient(ellipse at 50% 20%, rgba(255, 190, 170, 0.45), transparent 55%),
    linear-gradient(180deg, #c8363e 0%, #9a1c24 60%, #6e1016 100%);
  color: #fff4dc;
  font-family: "Cinzel Decorative", Georgia, serif;
  font-weight: 700;
  font-size: 1.7rem;
  letter-spacing: 0.06em;
  text-shadow: 0 2px 0 rgba(60, 5, 5, 0.7);
  box-shadow: 0 5px 0 #4a2a0c, 0 10px 20px rgba(0, 0, 0, 0.35), inset 0 2px 0 rgba(255, 210, 190, 0.4);
  cursor: pointer;
  opacity: 0.45;
  transform: scale(0.94);
  transition: opacity 0.25s ease, transform 0.25s cubic-bezier(0.2, 1.6, 0.4, 1), filter 0.15s;
  touch-action: manipulation;
}
.reward-collect.ready { opacity: 1; transform: scale(1); animation: rewardNudge 1.8s ease-in-out 0.6s infinite; }
.reward-collect:disabled { cursor: default; }
.reward-collect.ready:hover { filter: brightness(1.08); }
.reward-collect.ready:active { transform: translateY(3px) scale(0.99); box-shadow: 0 2px 0 #4a2a0c, 0 5px 10px rgba(0, 0, 0, 0.35); animation: none; }
.reward-collect:focus-visible { outline: 3px solid #f5d27a; outline-offset: 3px; }
@keyframes rewardNudge { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.04); } }
.reward-overlay.claiming .reward-collect { animation: none; opacity: 0.6; }
.reward-overlay.claiming .reward-tile .reward-pic img { opacity: 0.25; transition: opacity 0.2s; }

.reward-ghost {
  position: fixed;
  z-index: 9500;
  border-radius: 12px;
  pointer-events: none;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.55, -0.1, 0.7, 0.4), opacity 0.6s ease;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.45);
  will-change: transform;
}
.reward-bump { animation: rewardBump 0.45s cubic-bezier(0.2, 1.8, 0.4, 1); }
@keyframes rewardBump { 0% { transform: scale(1); } 40% { transform: scale(1.25); filter: brightness(1.4); } 100% { transform: scale(1); } }

@media (max-width: 520px) {
  .reward-overlay { padding-left: 10px; padding-right: 10px; }
  .reward-rod { height: 18px; margin: 0 -6px; }
  .reward-rod::before, .reward-rod::after { width: 24px; height: 26px; top: -4px; }
  .reward-rod::before { left: -8px; }
  .reward-rod::after { right: -8px; }
  .reward-parchment { padding: 26px 14px 18px; }
  .reward-seal { width: 46px; height: 46px; top: 4px; right: 10px; }
  .reward-seal span { inset: 8px; }
  .reward-head { gap: 10px; padding-right: 44px; }
  .reward-hero { width: 60px; height: 60px; }
  .reward-kicker { font-size: 0.8rem; }
  .reward-sub { font-size: 1rem; }
  .reward-grid { display: grid; grid-template-columns: repeat(3, 1fr); justify-content: center; gap: 10px; margin: 12px 0 16px; }
  .reward-grid > .reward-tile { width: auto; }
  .reward-grid[data-count="1"] { grid-template-columns: minmax(0, 130px); }
  .reward-grid[data-count="2"], .reward-grid[data-count="4"] { grid-template-columns: repeat(2, minmax(0, 140px)); }
  .reward-tile { padding: 6px 6px 8px; border-width: 2px; border-radius: 12px; }
  .reward-amt { font-size: 1.35rem; }
  .reward-lbl { font-size: 0.95rem; }
  .reward-collect { width: 100%; min-height: 60px; font-size: 1.5rem; }
}
@media (prefers-reduced-motion: reduce) {
  .reward-glow, .reward-collect.ready { animation: none; }
  .reward-tile.in { animation: none; opacity: 1; transform: none; }
  .reward-card { transition: none; }
}

/* ——— adv5 · Bounty Office voice: WANTED posters (parchment, nails, wax) ——— */
.notice-card.wanted-poster {
  align-items: center;
  text-align: center;
  padding: 18px 14px 14px;
  gap: 4px;
  background:
    radial-gradient(circle at 50% 7px, #4a3420 0 4px, #8a7050 4.5px, transparent 6px),
    radial-gradient(ellipse at 20% 15%, rgba(255, 250, 230, 0.55), transparent 55%),
    radial-gradient(ellipse at 85% 90%, rgba(120, 80, 30, 0.22), transparent 60%),
    linear-gradient(170deg, #f6e6c2 0%, #e8d0a0 60%, #d6b880 100%);
  border: 1px solid #7a5530;
  border-radius: 3px;
  box-shadow: 3px 4px 10px rgba(0, 0, 0, 0.38), inset 0 0 18px rgba(110, 70, 25, 0.25);
}
.notice-card.wanted-poster.hard {
  background:
    radial-gradient(circle at 50% 7px, #4a3420 0 4px, #8a7050 4.5px, transparent 6px),
    radial-gradient(ellipse at 20% 15%, rgba(255, 240, 220, 0.45), transparent 55%),
    radial-gradient(ellipse at 85% 90%, rgba(120, 40, 20, 0.25), transparent 60%),
    linear-gradient(170deg, #f2dcc0 0%, #e2bd94 60%, #cfa276 100%);
  border-color: #7a3020;
}
.wanted-poster .wanted-head {
  margin: 2px 0 0;
  font-family: "IM Fell French Canon", Georgia, serif;
  font-size: 1.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  line-height: 1;
  color: #3a1a08;
  border-bottom: 2px solid rgba(58, 26, 8, 0.55);
  padding: 0 6px 3px;
}
.wanted-poster.hard .wanted-head { color: #6a120c; border-bottom-color: rgba(106, 18, 12, 0.55); }
.notice-card.wanted-poster .notice-title {
  padding: 0 34px;
  font-size: 1.15rem;
  line-height: 1.15;
  color: #2a1406;
}
.notice-card.wanted-poster .notice-blurb {
  font-size: 0.9rem;
  color: #3e2a14;
}
.wanted-poster .wanted-call { display: block; margin-top: 3px; font-style: italic; font-weight: 700; color: #5a1e0e; }
.wanted-poster .wanted-reward {
  margin: 4px 0 0;
  font-family: "IM Fell French Canon", Georgia, serif;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #6a4a10;
}
.notice-card.wanted-poster .loot-row { justify-content: center; }
.notice-card.wanted-poster .diff-seal {
  width: 44px; height: 44px;
  font-size: 0.66rem;
  top: 10px; right: 8px;
  transform: rotate(-12deg);
  border: 2px solid rgba(60, 10, 5, 0.35);
}
.notice-card.wanted-poster .notice-send {
  min-height: 52px;
  font-size: 1.15rem;
  margin-top: 6px;
}
.desk-mood#crierLine { font-style: italic; }
@media (max-width: 420px) {
  .wanted-poster .wanted-head { font-size: 1.45rem; }
  .notice-card.wanted-poster { padding: 16px 10px 12px; }
}

/* ——— adv7 · WANTED portrait + real reward amounts ——— */
.wanted-poster .wanted-face {
  position: relative;
  width: 118px;
  height: 132px;
  margin: 4px auto 2px;
  border: 3px double rgba(58, 30, 10, 0.7);
  background-color: #efdcb4;
  box-shadow: inset 0 0 14px rgba(90, 55, 20, 0.35), 0 1px 0 rgba(255, 245, 220, 0.6);
  overflow: hidden;
  transform: rotate(-1deg);
}
.wanted-poster:nth-child(even) .wanted-face { transform: rotate(1.2deg); }
/* Placeholder: charcoal silhouette sketch, hatched, until Arena Art's <n>.png lands */
.wanted-poster .wanted-face.no-art,
.wanted-poster .wanted-face:not(.has-art) {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 118 132'%3E%3Cdefs%3E%3Cpattern id='h' width='5' height='5' patternUnits='userSpaceOnUse' patternTransform='rotate(35)'%3E%3Cline x1='0' y1='0' x2='0' y2='5' stroke='%232a1808' stroke-width='1.3' stroke-opacity='.55'/%3E%3C/pattern%3E%3CradialGradient id='v' cx='50%25' cy='40%25' r='70%25'%3E%3Cstop offset='55%25' stop-color='%23000' stop-opacity='0'/%3E%3Cstop offset='100%25' stop-color='%233a220c' stop-opacity='.35'/%3E%3C/radialGradient%3E%3C/defs%3E%3Cpath d='M59 22c-15 0-25 11-25 27 0 10 4 18 9 23l-1 9c-15 4-27 12-31 26l-2 25h100l-2-25c-4-14-16-22-31-26l-1-9c5-5 9-13 9-23 0-16-10-27-25-27z' fill='url(%23h)' stroke='%232a1808' stroke-width='1.6' stroke-linejoin='round' stroke-opacity='.8'/%3E%3Cpath d='M30 38c6-16 22-24 40-20 10 2 18 8 20 16' fill='none' stroke='%232a1808' stroke-width='1.2' stroke-opacity='.55' stroke-dasharray='5 3'/%3E%3Cpath d='M46 50l8 2M64 52l8-2' stroke='%232a1808' stroke-width='2.2' stroke-linecap='round' stroke-opacity='.85'/%3E%3Ctext x='59' y='121' text-anchor='middle' font-family='Georgia,serif' font-size='11' font-style='italic' fill='%232a1808' fill-opacity='.7'%3Elikeness pending%3C/text%3E%3Crect width='118' height='132' fill='url(%23v)'/%3E%3C/svg%3E");
  background-size: 100% 100%;
}
.wanted-poster .wanted-face-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  display: block;
  filter: sepia(0.35) contrast(1.08);
  mix-blend-mode: multiply;
}
.wanted-poster .wanted-reward-box {
  width: 100%;
  margin-top: 4px;
  padding: 6px 6px 4px;
  border-top: 1px dashed rgba(90, 58, 28, 0.5);
  border-bottom: 1px dashed rgba(90, 58, 28, 0.5);
}
.wanted-poster .wanted-reward { margin: 0 0 2px; }
.wanted-poster .wanted-amounts {
  margin: 0;
  font-family: "IM Fell French Canon", Georgia, serif;
  font-size: 1.12rem;
  font-weight: 700;
  line-height: 1.3;
  color: #2a1406;
}
.wanted-poster .wanted-amounts .amt { white-space: nowrap; }
.wanted-poster .wanted-amounts .dot { color: #8a6238; }
.wanted-poster .ico {
  display: inline-block;
  width: 13px; height: 13px;
  margin-right: 4px;
  border-radius: 3px;
  vertical-align: -1px;
}
.wanted-poster .amt.planks .ico { background: linear-gradient(135deg, #8a6030, #5a3a18); }
.wanted-poster .amt.silver .ico { background: linear-gradient(135deg, #d0d8e0, #8898a8); }
.wanted-poster .amt.coin .ico { background: linear-gradient(135deg, #e8c060, #a87820); border-radius: 50%; }
.wanted-poster .wanted-gold {
  margin: 2px 0 0;
  font-family: "IM Fell French Canon", Georgia, serif;
  font-size: 1.02rem;
  font-weight: 700;
  font-style: italic;
  color: #8a5a00;
}
.wanted-poster .wanted-gold .ico {
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff0a0, #d8a020 60%, #8a5a08);
  box-shadow: 0 0 5px rgba(245, 200, 60, 0.7);
}
.wanted-poster .wanted-xp {
  margin: 2px 0 0;
  font-size: 0.82rem;
  color: #3a5a30;
  font-weight: 700;
}
@media (max-width: 420px) {
  .wanted-poster .wanted-face { width: 104px; height: 116px; }
  .wanted-poster .wanted-amounts { font-size: 1.05rem; }
}

/* ——— adv8 · face queue posters, Call Back, Bounty Book ——— */
.desk-sign-row { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.book-sign { position: relative; }
.book-badge {
  position: absolute; top: -8px; right: -8px;
  min-width: 22px; height: 22px; padding: 0 5px; border-radius: 11px;
  background: radial-gradient(circle at 35% 30%, #e05050, #8a1414 70%);
  color: #fff4e0; font: 700 0.8rem/22px Georgia, serif; text-align: center;
  box-shadow: 0 2px 4px rgba(0,0,0,.45);
}
.notice-card.empty-poster { opacity: 0.8; filter: saturate(0.7); }
.wanted-poster .wanted-face.empty { background-image: none !important; background: repeating-linear-gradient(35deg, rgba(90,58,28,.12) 0 3px, transparent 3px 8px), #ecd8b0; }
.recall-btn {
  margin-top: 4px; min-height: 34px; padding: 4px 10px; width: 100%;
  border: 1px solid #7a5530; border-radius: 6px;
  background: linear-gradient(180deg, #e8d4a8, #c8a870); color: #3a2410;
  font: 700 0.85rem "Crimson Text", Georgia, serif; cursor: pointer;
}
.recall-btn.armed { background: linear-gradient(180deg, #d86a50, #9a2e1c); color: #fff4e0; border-color: #6a1a0c; }

.book-overlay {
  position: fixed; inset: 0; z-index: 60;
  display: flex; align-items: center; justify-content: center;
  padding: 16px; background: rgba(20, 10, 4, 0.72);
}
.book-overlay[hidden] { display: none; }
.book-card {
  position: relative; width: min(980px, 100%); max-height: calc(100vh - 32px);
  display: flex; flex-direction: column;
  border-radius: 10px; padding: 16px 16px 14px;
  background:
    radial-gradient(ellipse at 15% 10%, rgba(255,250,230,.6), transparent 55%),
    linear-gradient(170deg, #f4e2bc, #e2c794 60%, #d0ae78);
  border: 10px solid #5a3a1c;
  border-image: linear-gradient(180deg, #7a5230, #4a2c12) 1;
  box-shadow: 0 16px 40px rgba(0,0,0,.6), inset 0 0 30px rgba(110,70,25,.3);
  color: #2a1406;
}
.book-headbar { text-align: center; }
.book-headbar h2 { margin: 0; font: 700 1.9rem "IM Fell French Canon", Georgia, serif; letter-spacing: .06em; }
.book-count { margin: 0; font: italic 1rem "Crimson Text", Georgia, serif; color: #6a4a20; }
.book-tabs { display: flex; gap: 8px; justify-content: center; margin: 10px 0; }
.book-tabs button, .lb-tabs button {
  min-height: 44px; padding: 6px 16px; border-radius: 6px;
  border: 1px solid #6a4420; background: linear-gradient(180deg, #a87a48, #6a4420);
  color: #f8ecd0; font: 700 1rem "IM Fell French Canon", Georgia, serif; cursor: pointer;
}
.book-tabs button.on, .lb-tabs button.on { background: linear-gradient(180deg, #c44848, #7a1818); border-color: #5a0c0c; }
.book-body { overflow-y: auto; padding: 4px 2px 6px; }
.book-hint, .book-empty { text-align: center; margin: 0 0 8px; font: italic 1rem "Crimson Text", Georgia, serif; color: #5a3a18; }
.book-empty { padding: 30px 10px; font-size: 1.1rem; }
.book-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.book-poster {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 3px;
  padding: 10px 8px 8px; border: 1px solid #7a5530; border-radius: 3px;
  background: linear-gradient(170deg, #f6e6c2, #dcc08a); color: #2a1406;
  box-shadow: 2px 3px 8px rgba(0,0,0,.35); cursor: pointer; font-family: "Crimson Text", Georgia, serif;
  transition: transform .35s ease;
}
.book-poster:nth-child(odd) { transform: rotate(-1deg); }
.book-poster:nth-child(even) { transform: rotate(0.8deg); }
.book-poster:active { transform: scale(.97); }
.book-poster .bp-head { font: 700 1.2rem "IM Fell French Canon", Georgia, serif; letter-spacing: .12em; }
.book-poster .wanted-face { width: 110px; height: 122px; margin: 2px auto; }
.book-poster .bp-name { font: 700 1rem "IM Fell French Canon", Georgia, serif; line-height: 1.15; text-align: center; }
.book-poster .bp-meta { font-size: .8rem; color: #5a4028; }
/* big red painted X over the face */
.book-poster .bp-x {
  position: absolute; left: 50%; top: 34px; width: 150px; height: 140px; margin-left: -75px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 150 140'%3E%3Cfilter id='r'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' seed='4'/%3E%3CfeDisplacementMap in='SourceGraphic' scale='7'/%3E%3C/filter%3E%3Cg filter='url(%23r)' stroke='%23b0120c' stroke-linecap='round' fill='none' opacity='.88'%3E%3Cpath d='M18 14 Q70 66 134 128' stroke-width='15'/%3E%3Cpath d='M136 16 Q78 70 16 126' stroke-width='13'/%3E%3Cpath d='M24 20 Q72 70 128 122' stroke-width='5' stroke='%23d8301c'/%3E%3C/g%3E%3C/svg%3E") center / 100% 100% no-repeat;
  pointer-events: none; opacity: 0; transform: scale(1.3) rotate(-6deg);
  transition: opacity .25s ease, transform .3s cubic-bezier(.3,1.6,.5,1);
}
.book-poster .bp-stamp {
  position: absolute; left: 50%; top: 92px;
  padding: 2px 12px; border: 4px double #a01010; border-radius: 6px;
  color: #a01010; font: 700 1.5rem "IM Fell French Canon", Georgia, serif; letter-spacing: .12em;
  background: rgba(246, 230, 194, .35);
  pointer-events: none; opacity: 0; transform: translateX(-50%) scale(1.8) rotate(-14deg);
  transition: opacity .2s ease .1s, transform .3s cubic-bezier(.3,1.6,.5,1) .1s;
  mix-blend-mode: multiply;
}
.book-poster.caught .bp-x { opacity: 1; transform: none; }
.book-poster.caught .bp-stamp { opacity: .92; transform: translateX(-50%) rotate(-14deg); }
/* trophies: wax-seal badges */
.trophy-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.trophy { text-align: center; padding: 10px 6px 8px; border-radius: 8px; background: rgba(255, 248, 225, .4); border: 1px dashed rgba(90,58,28,.4); }
.trophy-seal {
  width: 96px; height: 96px; margin: 0 auto 6px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; padding: 10px;
  background: radial-gradient(circle at 35% 30%, #e05a4a, #9a1a14 58%, #5a0808);
  box-shadow: 0 3px 6px rgba(0,0,0,.45), inset 0 2px 0 rgba(255,210,180,.35), inset 0 -4px 8px rgba(60,0,0,.5);
  clip-path: polygon(50% 0, 61% 6%, 74% 3%, 81% 14%, 94% 18%, 94% 31%, 100% 42%, 95% 55%, 99% 68%, 88% 76%, 85% 90%, 72% 91%, 62% 100%, 50% 95%, 38% 100%, 28% 91%, 15% 90%, 12% 76%, 1% 68%, 5% 55%, 0 42%, 6% 31%, 6% 18%, 19% 14%, 26% 3%, 39% 6%);
}
.trophy-seal span {
  width: 72px; height: 72px; border-radius: 50%; border: 2px solid rgba(255, 220, 190, .45);
  display: flex; align-items: center; justify-content: center;
  color: #fff0dc; font: 700 .82rem/1.05 "IM Fell French Canon", Georgia, serif; text-shadow: 0 1px 1px rgba(0,0,0,.5);
}
.trophy.locked .trophy-seal { filter: grayscale(1) brightness(.85); opacity: .55; }
.trophy.claimed .trophy-seal { background: radial-gradient(circle at 35% 30%, #f0d070, #b88a20 58%, #6a4a08); }
.trophy-need { margin: 0; font: .9rem "Crimson Text", Georgia, serif; color: #3a2410; }
.trophy-give { margin: 2px 0 4px; font: 700 .95rem "Crimson Text", Georgia, serif; color: #2a5a28; }
.trophy-done { margin: 0; font: italic .85rem "Crimson Text", Georgia, serif; color: #6a4a20; }
.trophy-claim {
  min-height: 44px; width: 100%; border: none; border-radius: 6px; cursor: pointer;
  background: linear-gradient(180deg, #6aaa58, #3a7a38); color: #f8fff0;
  font: 700 1.05rem "IM Fell French Canon", Georgia, serif; box-shadow: 0 3px 0 #2a5a28;
}
/* Most Outlaws Caught */
.lb-tabs { display: flex; gap: 8px; justify-content: center; margin-bottom: 8px; }
.lb-list { list-style: none; margin: 0 auto; padding: 0; max-width: 520px; }
.lb-list li {
  display: flex; align-items: center; gap: 10px; padding: 8px 12px; margin-bottom: 4px;
  border-radius: 6px; background: rgba(255, 248, 225, .5); border: 1px solid rgba(90,58,28,.25);
  font: 1.02rem "Crimson Text", Georgia, serif;
}
.lb-list li.me { background: linear-gradient(90deg, #f0d070, #e8c060); border-color: #8a6a18; font-weight: 700; }
.lb-rank { width: 30px; text-align: center; font: 700 1.1rem "IM Fell French Canon", Georgia, serif; color: #7a1818; }
.lb-name { flex: 1; }
.lb-n { font-weight: 700; }
.lb-n::after { content: " caught"; font-weight: 400; font-size: .85rem; color: #5a4028; }
.lb-you { margin-top: 10px; border-top: 1px dashed rgba(90,58,28,.5); padding-top: 8px; }
@media (max-width: 520px) {
  .book-overlay { padding: 6px; }
  .book-card { padding: 12px 8px 10px; border-width: 7px; max-height: calc(100vh - 12px); }
  .book-headbar h2 { font-size: 1.5rem; }
  .book-tabs button { padding: 6px 10px; font-size: .95rem; }
  .book-grid, .trophy-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .book-poster .wanted-face { width: 96px; height: 108px; }
  .book-poster .bp-x { width: 130px; height: 124px; margin-left: -65px; }
  .book-poster .bp-stamp { top: 84px; font-size: 1.25rem; }
}

/* ——— bounty_simple (adv11) · three posters, one rider, one status card ——— */
.desk-scene { min-height: auto; padding-bottom: 18px; }
.notice-board { margin: 6px 14px 4px; }
.mission-grid.poster-row,
.notice-board .mission-grid.poster-row {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px;
  max-width: 900px; margin: 0 auto; position: relative; z-index: 2;
}
button.notice-card.wanted-poster {
  font: inherit; color: #2a1406; cursor: pointer; width: 100%; min-height: 0;
  padding: 20px 12px 14px; gap: 6px;
  transition: transform .15s ease, box-shadow .15s ease;
}
button.notice-card.wanted-poster > * { pointer-events: none; }
button.notice-card.wanted-poster:hover { transform: rotate(0deg) translateY(-3px); box-shadow: 5px 8px 16px rgba(0,0,0,.45), inset 0 0 18px rgba(110,70,25,.25); }
button.notice-card.wanted-poster:active { transform: translateY(1px) scale(.99); }
button.notice-card.wanted-poster:focus-visible { outline: 4px solid #f0c060; outline-offset: 3px; }
.poster-row .wanted-poster .wanted-face { width: min(170px, 100%); height: auto; aspect-ratio: 324 / 360; }
.poster-row .notice-card.wanted-poster .notice-title { padding: 0 4px; font-size: 1.3rem; font-weight: 700; }
.poster-reward { width: 100%; padding: 6px 4px 4px; border-top: 1px dashed rgba(90,58,28,.5); border-bottom: 1px dashed rgba(90,58,28,.5); }
.poster-reward ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 2px 12px; font: 1.05rem "Crimson Text", Georgia, serif; color: #3a2410; }
.poster-reward li { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.poster-reward li b { font-weight: 700; }
.poster-reward li.gold { color: #7a5208; font-style: italic; }
.poster-reward .ico { width: 14px; height: 14px; border-radius: 3px; display: inline-block; }
.poster-foot {
  display: block; width: 100%; margin-top: 4px; padding: 10px 6px; border-radius: 6px;
  background: radial-gradient(circle at 30% 30%, #c24a3a, #7a1c12 70%); color: #fff2dc;
  font: 700 1.15rem "IM Fell French Canon", Georgia, serif; letter-spacing: .03em;
  box-shadow: inset 0 -3px 0 rgba(0,0,0,.25), 0 2px 4px rgba(0,0,0,.3); text-shadow: 0 1px 1px rgba(0,0,0,.5);
}
.poster-foot.quiet { background: none; color: #6a4a20; box-shadow: none; text-shadow: none; font-style: italic; font-weight: 400; font-size: 1rem; }
.rider-out .poster-foot { background: linear-gradient(180deg, #8a6238, #5a3a1c); }

/* the wooden tag over the posters while a rider is out */
.rider-tag {
  position: relative; z-index: 2; display: flex; flex-direction: column; gap: 4px; align-items: center;
  margin: 6px auto 12px; padding: 8px 18px; min-height: 52px; max-width: calc(100% - 28px); cursor: pointer;
  border: 2px solid #3a2410; border-radius: 6px; color: #fff6e0;
  background: linear-gradient(180deg, rgba(255,220,160,.18), transparent 40%), linear-gradient(180deg, #8a6238, #5a3a1c);
  box-shadow: 0 4px 0 #2a1808, 0 6px 14px rgba(0,0,0,.35);
  font: 700 1.1rem "IM Fell French Canon", Georgia, serif; text-shadow: 0 1px 2px rgba(0,0,0,.5);
}
.rider-tag[hidden] { display: none; }
.rider-tag > * { pointer-events: none; }
.rt-row { display: inline-flex; align-items: center; gap: 10px; font-variant-numeric: tabular-nums; }
.rt-row .hero-bust { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; object-position: center 15%; border: 2px solid #f0d090; background-color: #2a1838; }
.rt-row.phase-home { color: #ffe07a; }

/* sheets: send + status */
body.sheet-open { overflow: hidden; }
.ride-overlay {
  position: fixed; inset: 0; z-index: 55; display: flex; align-items: center; justify-content: center;
  padding: 16px; background: rgba(20, 10, 4, .7);
}
.ride-overlay[hidden] { display: none; }
.ride-sheet {
  position: relative; width: min(560px, 100%); max-height: calc(100vh - 32px); overflow-y: auto;
  padding: 22px 18px 18px; border-radius: 8px; color: #2a1406;
  background:
    radial-gradient(ellipse at 15% 10%, rgba(255,250,230,.6), transparent 55%),
    radial-gradient(ellipse at 85% 95%, rgba(120,80,30,.22), transparent 60%),
    linear-gradient(170deg, #f6e6c2, #e6cc98 60%, #d6b880);
  border: 8px solid #5a3a1c; border-image: linear-gradient(180deg, #8a5a30, #4a2c12) 1;
  box-shadow: 0 16px 40px rgba(0,0,0,.6), inset 0 0 26px rgba(110,70,25,.3);
  font-family: "Crimson Text", Georgia, serif;
}
.ride-sheet .scroll-close { position: absolute; top: 6px; right: 8px; z-index: 3; }

.send-head { display: flex; gap: 14px; align-items: center; padding-bottom: 10px; border-bottom: 2px solid rgba(90,58,28,.35); }
.send-head .wanted-face { flex: 0 0 auto; width: 104px; height: 116px; margin: 0; }
.send-head-text { min-width: 0; flex: 1; }
.send-kicker { margin: 0; font: 700 .95rem "IM Fell French Canon", Georgia, serif; letter-spacing: .14em; text-transform: uppercase; color: #6a120c; }
.send-head h3 { margin: 0 0 2px; font: 700 1.45rem "IM Fell French Canon", Georgia, serif; line-height: 1.1; }
.send-did { margin: 0 0 4px; font-size: 1rem; color: #4a3018; }
.send-head .poster-reward { border: 0; padding: 0; }
.send-head .poster-reward .wanted-reward { display: none; }
.send-head .poster-reward ul { justify-content: flex-start; font-size: 1rem; }
.send-ask { margin: 12px 0 8px; font: 700 1.3rem "IM Fell French Canon", Georgia, serif; text-align: center; }
.send-ask span { display: block; font: italic 400 .95rem "Crimson Text", Georgia, serif; color: #6a4a20; }
.send-list { display: flex; flex-direction: column; gap: 10px; }
.send-hero {
  display: flex; align-items: center; gap: 12px; width: 100%; min-height: 72px; padding: 8px 10px; text-align: left;
  border: 2px solid #7a5530; border-radius: 8px; background: linear-gradient(180deg, #fbf1d8, #ead2a0); color: #2a1406;
  font: inherit; box-shadow: 0 3px 0 #6b4a1c;
}
button.send-hero { cursor: pointer; }
button.send-hero:hover { filter: brightness(1.04); }
button.send-hero:active { transform: translateY(2px); box-shadow: 0 1px 0 #6b4a1c; }
.send-hero > * { pointer-events: none; }
.send-hero.away > .hs-link { pointer-events: auto; }
.send-hero .hero-bust { width: 54px; height: 54px; border-radius: 50%; object-fit: cover; object-position: center 15%; border: 2px solid #8a6238; background-color: #2a1838; flex: 0 0 auto; }
.sh-name { font: 700 1.3rem "IM Fell French Canon", Georgia, serif; }
.sh-odds { margin-left: auto; padding: 4px 10px; border-radius: 999px; font: 700 1rem "Crimson Text", Georgia, serif; white-space: nowrap; border: 1px solid rgba(0,0,0,.2); }
.sh-odds.great { background: #d8ecc0; color: #1e4a10; }
.sh-odds.good { background: #e6efc4; color: #3a5010; }
.sh-odds.fair { background: #f4e2a8; color: #6a4a08; }
.sh-odds.long { background: #f2c8b8; color: #7a1c10; }
.sh-go {
  padding: 10px 16px; border-radius: 6px; color: #fff2dc; font: 700 1.15rem "IM Fell French Canon", Georgia, serif;
  background: radial-gradient(circle at 30% 30%, #c24a3a, #7a1c12 70%); box-shadow: inset 0 -3px 0 rgba(0,0,0,.25);
}
.send-none { text-align: center; font: italic 1.1rem "Crimson Text", Georgia, serif; color: #6a4a20; }
.send-away { display: flex; flex-direction: column; gap: 6px; margin-top: 12px; padding-top: 10px; border-top: 1px dashed rgba(90,58,28,.5); }
.send-hero.away { min-height: 52px; padding: 4px 8px; opacity: .78; filter: grayscale(.45); box-shadow: none; background: rgba(240,224,190,.6); flex-wrap: wrap; }
.send-hero.away .hero-bust { width: 38px; height: 38px; }
.send-hero.away .sh-name { font-size: 1.05rem; }
.send-hero.away .hs-link, .send-hero.away .sh-busy { margin-left: auto; }
.send-hire-row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; justify-content: center; }
.send-hire { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 3px 10px 3px 4px; cursor: pointer; border: 1px solid #7a5530; border-radius: 999px; background: rgba(250,236,200,.8); font: 600 .9rem "Crimson Text", Georgia, serif; color: #4a3018; }
.send-hire .hero-bust { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; object-position: center 15%; }

.ride-note { margin: 0 0 10px; padding: 8px 10px; border-radius: 6px; background: rgba(255,240,200,.7); border: 1px dashed #8a6238; text-align: center; font-style: italic; }
.ride-card { text-align: center; }
.ride-card + .ride-card { margin-top: 14px; padding-top: 14px; border-top: 2px solid rgba(90,58,28,.35); }
.ride-faces { display: flex; align-items: center; justify-content: center; gap: 14px; }
.ride-faces figure { margin: 0; position: relative; }
.ride-faces figcaption { margin-top: 4px; font: 700 1.1rem "IM Fell French Canon", Georgia, serif; max-width: 130px; line-height: 1.1; }
.ride-hero .hero-bust { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; object-position: center 15%; border: 3px solid #8a6238; background-color: #2a1838; box-shadow: 0 3px 8px rgba(0,0,0,.3); }
.ride-outlaw.wanted-poster .wanted-face { width: 92px; height: 102px; margin: 0 auto; }
.ride-vs { font: italic 1.1rem "Crimson Text", Georgia, serif; color: #6a4a20; }
.ride-x { position: absolute; left: 50%; top: 0; width: 92px; height: 102px; transform: translateX(-50%); pointer-events: none;
  background:
    linear-gradient(45deg, transparent 46%, rgba(170,20,10,.85) 46% 54%, transparent 54%),
    linear-gradient(-45deg, transparent 46%, rgba(170,20,10,.85) 46% 54%, transparent 54%); }
.ride-x.miss { background: none; }
.ride-state { margin: 12px 0 0; font: 700 1.9rem "IM Fell French Canon", Georgia, serif; }
.ride-left { margin: 4px 0 0; font-size: 1.3rem; font-variant-numeric: tabular-nums; }
.ride-left b { font-size: 1.5rem; }
.ride-said { margin: 4px 0 0; font-size: 1.15rem; }
.ride-home { margin: 2px 0 0; font: italic 1.05rem "Crimson Text", Georgia, serif; color: #5a3a18; font-variant-numeric: tabular-nums; }
.ride-stamp {
  display: inline-block; margin: 12px 0 0; padding: 2px 18px; transform: rotate(-4deg);
  font: 700 2.4rem "IM Fell French Canon", Georgia, serif; letter-spacing: .14em;
  border: 4px double currentColor; border-radius: 6px;
}
.ride-stamp.won { color: #2a6a1a; background: rgba(210,240,190,.45); }
.ride-stamp.lost { color: #9a1a10; background: rgba(250,210,200,.45); }
.ride-loot { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 12px; }
.ride-loot li { display: inline-flex; align-items: center; gap: 4px; font-size: 1.05rem; }
.ride-loot img { width: 30px; height: 30px; object-fit: contain; }
.ride-trail { display: flex; align-items: center; gap: 8px; margin: 14px 4px 0; }
.rt-end { font: 700 .9rem "IM Fell French Canon", Georgia, serif; color: #5a3a18; }
.rt-track { position: relative; flex: 1; height: 14px; border-radius: 8px; background: repeating-linear-gradient(90deg, #b89060 0 10px, #a88050 10px 20px); border: 2px solid #6a4422; box-shadow: inset 0 2px 3px rgba(0,0,0,.3); }
.rt-fill { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 6px; background: linear-gradient(180deg, #e8c070, #b8862e); transition: width .45s linear; }
.phase-back .rt-fill { left: auto; right: 0; }
.hero-bust.rt-rider { position: absolute; top: 50%; width: 34px; height: 34px; border-radius: 50%; object-fit: cover; object-position: center 15%; transform: translate(-50%, -50%); border: 2px solid #fff2d0; background-color: #2a1838; box-shadow: 0 2px 4px rgba(0,0,0,.4); transition: left .45s linear; }
.ride-speed { margin-top: 16px; padding-top: 10px; border-top: 1px dashed rgba(90,58,28,.5); display: flex; flex-direction: column; gap: 8px; }
.ride-speed-head { margin: 0; font: 700 1.1rem "IM Fell French Canon", Georgia, serif; color: #5a3a18; }
.ride-big {
  display: flex; align-items: center; justify-content: center; gap: 6px; width: 100%; min-height: 56px; padding: 8px 14px; cursor: pointer;
  border: 2px solid #3a2410; border-radius: 8px; font: 700 1.25rem "IM Fell French Canon", Georgia, serif; color: #fff6e0;
  background: linear-gradient(180deg, rgba(255,220,160,.18), transparent 40%), linear-gradient(180deg, #8a6238, #5a3a1c);
  box-shadow: 0 4px 0 #2a1808; text-shadow: 0 1px 2px rgba(0,0,0,.5);
}
.ride-big:active { transform: translateY(2px); box-shadow: 0 2px 0 #2a1808; }
.ride-big.good { margin-top: 14px; background: radial-gradient(circle at 30% 30%, #4a9a3a, #1e5a14 70%); }
.ride-big.gem { background: linear-gradient(180deg, rgba(255,255,255,.15), transparent 40%), linear-gradient(180deg, #4a7aa8, #23466e); }
.ride-speed .tale-btn.ride-tale { display: flex; width: 100%; min-height: 56px; justify-content: center; font-size: 1.1rem; }
.hero-bust { display: inline-block; flex: 0 0 auto; border-radius: 50%; background-color: #2a1838; background-repeat: no-repeat; background-size: auto 340%; background-position: 50% 4%; }
.ride-hero .hero-bust { display: block; margin: 0 auto; }
.ride-card.hs-focus { animation: none; outline: none; }

@media (max-width: 640px) {
  .mission-grid.poster-row, .notice-board .mission-grid.poster-row { gap: 8px; }
  .notice-board { margin: 4px 8px; }
  button.notice-card.wanted-poster { padding: 14px 5px 8px; gap: 4px; }
  .poster-row .wanted-poster .wanted-head { font-size: .92rem; letter-spacing: .04em; padding: 0 2px 2px; margin-right: 18px; }
  .poster-row .notice-card.wanted-poster .notice-title { font-size: .95rem; }
  .poster-row .notice-card.wanted-poster .diff-seal { width: 30px; height: 30px; font-size: .46rem; top: -6px; right: -6px; }
  .poster-reward { padding: 4px 0; }
  .poster-reward .wanted-reward { font-size: .72rem; letter-spacing: .12em; }
  .poster-reward ul { flex-direction: column; align-items: center; gap: 0; font-size: .86rem; }
  .poster-foot { font-size: .9rem; padding: 8px 2px; }
  .rider-tag { font-size: .98rem; padding: 6px 12px; }
  .ride-sheet { padding: 20px 12px 14px; }
  .send-head .wanted-face { width: 78px; height: 88px; }
  .send-head h3 { font-size: 1.2rem; }
  .send-head .poster-reward ul { flex-direction: row; justify-content: flex-start; gap: 0 10px; }
  .sh-name { font-size: 1.1rem; }
  .sh-odds { font-size: .9rem; padding: 3px 7px; }
  .sh-go { padding: 9px 11px; font-size: 1rem; }
  .send-hero { gap: 8px; }
  .send-hero .hero-bust { width: 46px; height: 46px; }
  .ride-hero .hero-bust { width: 80px; height: 80px; }
}

/* rescue_v1: one separate Missing persons notice under the 3-poster board */
.missing-notice { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 2px; width: min(92%, 360px); margin: 12px auto 4px; padding: 12px 14px 10px;
  text-decoration: none; color: #2a1a0c; background: linear-gradient(180deg, #efe0bb, #d6bf8e); border-radius: 3px; box-shadow: 0 6px 16px rgba(0,0,0,.55); transform: rotate(.8deg); }
.missing-notice .mn-pin { position: absolute; top: -5px; left: 50%; width: 12px; height: 12px; margin-left: -6px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #ff7a6a, #9a1a12); }
.missing-notice .mn-head { font-family: "Cinzel Decorative", Georgia, serif; font-size: 1.15rem; color: #8a1e14; letter-spacing: .04em; }
.missing-notice .mn-sub { font-family: "Crimson Text", Georgia, serif; font-size: 1rem; }
.book-poster .bp-loot { display: inline-flex; align-items: center; gap: 5px; margin-top: 3px; font-size: .85rem; color: #4a3018; }
.book-poster .bp-loot i { width: 15px; height: 15px; display: inline-grid; place-items: center; font-style: normal; font-size: 12px; line-height: 1; border: 1.5px solid #4a3018; border-radius: 3px; background: #fff8e6; color: #1f5a1c; }
.book-poster .bp-loot.on { color: #1f5a1c; font-weight: 700; }

/* ===== wardendesk_v1 (Brandon 2026-10-02): the Warden's desk is the first screen; Wanted Posters / Rescue Missions / story lead ===== */
.warden-desk{display:none;position:relative;z-index:3;flex-direction:column;gap:12px;width:min(560px,calc(100% - 20px));margin:4px auto 0;padding:0 0 12px}
body.bo-desk .warden-desk{display:flex}
body.bo-desk .notice-board,body.bo-desk .missing-notice,body.bo-desk #crierLine{display:none !important}
body.bo-posters .missing-notice,body.bo-story .missing-notice{display:none !important}
.wd-top{display:flex;align-items:flex-end;gap:10px}
.wd-bust{flex:none;width:clamp(110px,30vw,170px);aspect-ratio:3/4;border-radius:16px 16px 10px 10px;overflow:hidden;border:3px solid #c9a24a;background:radial-gradient(circle at 50% 70%,#8a5a2a,#3e2616);box-shadow:0 6px 16px rgba(0,0,0,.5)}
.wd-bust img{width:100%;height:100%;object-fit:cover;object-position:center top}
.wd-talk{position:relative;flex:1;min-width:0;padding:10px 14px;border-radius:16px;background:linear-gradient(180deg,#fbf0d6,#e6cf9c);border:2px solid #a07a40;color:#2e1d10;box-shadow:0 4px 12px rgba(0,0,0,.4);margin-bottom:12px}
.wd-talk::before{content:"";position:absolute;left:-11px;bottom:16px;border:10px solid transparent;border-right-color:#a07a40;border-left:0}
.wd-name{display:block;font:700 .9rem 'Cinzel Decorative',Georgia,serif;color:#6b4226}
.wd-say{margin:2px 0 0;font:400 clamp(1.02rem,4.2vw,1.2rem)/1.3 'Crimson Text',Georgia,serif}
.wd-choices{display:flex;flex-direction:column;gap:10px}
.wd-choice{position:relative;display:flex;align-items:center;gap:12px;min-height:66px;padding:8px 16px 8px 10px;border-radius:16px;border:3px solid #6b4226;background:linear-gradient(180deg,#f6e2b4,#d7b474);
  color:#2e1d10;text-align:left;cursor:pointer;box-shadow:0 5px 0 #4a2c14,0 8px 16px rgba(0,0,0,.45);font:700 clamp(1.1rem,4.6vw,1.3rem)/1.15 'Crimson Text',Georgia,serif;text-decoration:none}
.wd-choice:active{transform:translateY(3px);box-shadow:0 2px 0 #4a2c14,0 4px 10px rgba(0,0,0,.4)}
.wd-choice .wd-ic{flex:none;width:48px;height:48px;border-radius:12px;display:grid;place-items:center;background:#3e2616;color:#ffd86a;font-size:1.6rem}
.wd-choice small{display:block;font:400 .92rem/1.2 'Crimson Text',Georgia,serif;color:#5a4228}
.wd-choice.story{border-color:#8a5a10;background:linear-gradient(180deg,#fff4c8,#e8c060);box-shadow:0 5px 0 #6b4210,0 0 0 3px rgba(255,216,106,.7),0 8px 18px rgba(0,0,0,.45)}
.wd-choice.story .wd-ic{background:linear-gradient(180deg,#ffd86a,#c08a1e);color:#3e2616}
.wd-choice.story .wd-rib{position:absolute;top:-10px;right:12px;padding:0 9px;border-radius:6px;background:linear-gradient(180deg,#ffd86a,#c08a1e);color:#3e2616;font:700 .7rem 'Cinzel Decorative',Georgia,serif}
.wd-choice.story.sighting .wd-rib{background:linear-gradient(180deg,#ffb36a,#c0561e)}
.desk-back{display:none}
body.bo-posters .desk-back,body.bo-story .desk-back{display:flex}
/* the single story poster */
.poster-row.story-only{justify-content:center}
.notice-card.story-poster{border-color:#c9a24a;box-shadow:0 0 0 3px rgba(255,216,106,.75),0 8px 18px rgba(0,0,0,.5)}
.notice-card.story-poster .diff-seal{background:linear-gradient(180deg,#ffd86a,#c08a1e);color:#3e2616}
.notice-card.story-poster .story-tag{position:absolute;top:-10px;left:8px;padding:0 8px;border-radius:6px;background:linear-gradient(180deg,#ffd86a,#c08a1e);color:#3e2616;font:700 .7rem 'Cinzel Decorative',Georgia,serif;z-index:2}
.notice-card.story-poster.sighting .story-tag{background:linear-gradient(180deg,#ffb36a,#c0561e)}
.notice-card.story-poster .story-line{margin:2px 0 4px;font:400 .86rem/1.2 'Crimson Text',Georgia,serif;color:#3e2616}
/* dev drawer out of the page flow (it made the Bounty page 63px too tall at desktop) */
.dev-drawer{position:fixed !important;left:6px;bottom:6px;z-index:60;margin:0 !important;max-width:calc(100vw - 12px);max-height:70vh;overflow:auto}
body.bo-desk .desk-back{display:none !important}
/* Warden reveal: empty desk (dimmed Osric until warden_office_empty art exists); office art replaces the bust */
.warden-desk.wd-empty .wd-bust img{filter:grayscale(1) brightness(.35) blur(1px);opacity:.55}
.warden-desk.wd-empty .wd-bust{border-style:dashed}
.wd-bust{position:relative}
.warden-desk.wd-empty .wd-bust img.wd-maren{filter:none;opacity:1;width:46%;height:auto}
.wd-bust img.wd-maren{height:auto;position:absolute;right:4px;bottom:4px;width:46%;aspect-ratio:1;border-radius:50%;object-fit:cover;object-position:center top;border:3px solid #c9a24a;box-shadow:0 3px 8px rgba(0,0,0,.6);background:#3e2616}
.warden-desk.wd-office .wd-bust{visibility:hidden;width:clamp(60px,14vw,120px)}
/* desk mode keeps the room tall; the new Warden's office scene stays visible with the talk + choices on the right */
body.bo-desk .desk-scene{min-height:min(600px,calc(100dvh - 86px))}
@media (min-width:700px){
  .warden-desk.wd-office{margin:4px 2.5% 0 auto;width:min(440px,40%)}
  .warden-desk.wd-office .wd-bust{display:none}
  .warden-desk.wd-office .wd-talk::before{display:none}
  body.bo-desk .desk-bg{background-position:center 22% !important}
}
/* races_v1: other-race heroes wait for their alliance */
.send-hire.locked-race { cursor: default; opacity: .7; flex-direction: row; text-align: left; }
.send-hire.locked-race small { display: block; font-size: .78rem; color: #7a1414; margin-left: 4px; }
/* claims_v1: "they claim they're innocent" exchange on the reward card (hero line, then the Warden's face + answer) */
.reward-talk { margin: 4px 0 2px; padding: 6px 10px; border-radius: 12px; background: rgba(255,248,226,.7); border: 1px solid #c9a24a; }
.reward-talk[hidden] { display: none; }
.reward-talk .rt-hero { margin: 0 0 4px; font-size: 1rem; line-height: 1.25; color: #3e2616; }
.reward-talk .st-speak { margin: 0; }
.reward-talk .st-sface { width: 38px; height: 38px; }
/* tent3_v1: station anchors from assets/town/rooms/healer_tent_layout.json (only when ready: true) */
.healer-stations.anchored { position: absolute; inset: 0; display: block; max-width: none; padding: 0; z-index: 3; pointer-events: none; }
.healer-stations.anchored .healer-station { position: absolute; transform: translate(-50%, -100%); pointer-events: auto; }
.healer-stations.anchored .healer-station .station-frame img { width: 100%; height: auto; }

/* ==========================================================
   tent_v2 (Brandon 7:01 PM): full-screen Healer's Tent room.
   Stage = 2560x1440 canvas (base_empty + layout.json), scaled by JS.
   Cots + waiting bench ride as a compact strip over the rug. No scroll.
   ========================================================== */
body.on-healer { overflow: hidden; overscroll-behavior: none; }
body.on-healer .app { padding-bottom: 0; }
body.on-healer .slim-bar { position: relative; z-index: 30; }
body.on-healer #viewHealer { margin: 0; }
body.on-healer .tent-scene {
  position: fixed; inset: 0; z-index: 5; min-height: 0;
  border: none; border-radius: 0; box-shadow: none; background: #120a05;
  overflow: hidden;
}
.tent2-view { position: absolute; inset: 0; overflow: hidden; }
.tent2-stage {
  position: absolute; left: 0; top: 0; width: 2560px; height: 1440px;
  transform-origin: 0 0;
  background: #2a1a0c url("assets/town/healer_tent_v2/base_empty.webp") 0 0 / 100% 100% no-repeat;
  transition: transform 0.35s ease;
}
.tent2-stage > img, .tent2-stage .t2-layer > div, .tent2-stage > div { position: absolute; pointer-events: none; }
.t2-layer { position: absolute; inset: 0; }
.t2-glow {
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 176, 70, 0.55) 0%, rgba(255, 140, 40, 0.24) 38%, rgba(255, 120, 30, 0) 70%);
  mix-blend-mode: screen;
  animation: t2Flicker 2.6s ease-in-out infinite alternate;
}
.t2-glow.small { opacity: 0.85; }
@keyframes t2Flicker { 0% { opacity: 0.82; transform: scale(0.97); } 60% { opacity: 1; transform: scale(1.03); } 100% { opacity: 0.9; transform: scale(1); } }
.t2-fire { animation: t2Fire 0.9s ease-in-out infinite alternate; transform-origin: 50% 90%; }
@keyframes t2Fire { 0% { transform: scaleY(0.96); } 100% { transform: scaleY(1.04) scaleX(0.98); } }
.t2-shadow { border-radius: 50%; background: radial-gradient(ellipse, rgba(10, 5, 2, 0.55) 0%, rgba(10, 5, 2, 0) 70%); }
.tent2-stage .healer-station.t2-station {
  position: absolute; display: block; padding: 0; margin: 0; gap: 0;
  background: transparent; border: 0; cursor: pointer; pointer-events: auto;
  -webkit-tap-highlight-color: transparent;
}
.t2-station .t2-figure { position: absolute; pointer-events: none; filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.45)); transition: filter 0.2s, transform 0.2s; transform-origin: 50% 100%; }
.t2-station.lit:hover .t2-figure, .t2-station.lit:active .t2-figure { filter: drop-shadow(0 0 22px rgba(255, 210, 120, 0.9)) brightness(1.08); }
.t2-station.lit:active .t2-figure { transform: scale(1.02); }
.t2-station:focus-visible { outline: 6px solid #f0d78c; outline-offset: 4px; border-radius: 20px; }
.t2-plate {
  position: absolute; left: 50%; bottom: -12px; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; white-space: nowrap;
  padding: 10px 30px 12px; border-radius: 10px;
  background: linear-gradient(180deg, #e2cd9c, #b89462); border: 5px solid #5a3a1c;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.55);
  color: #2a1a0c; font-family: "IM Fell French Canon", "Crimson Text", Georgia, serif;
}
.t2-plate { white-space: normal; max-width: 290px; width: max-content; text-align: center; padding: 6px 18px 8px; border-width: 4px; }
.t2-plate strong { font-size: 30px; line-height: 1.05; }
.t2-plate em { font-size: 24px; font-style: normal; color: #6a2a10; font-weight: 700; }
.t2-plate.locked { top: 50%; bottom: auto; transform: translate(-50%, -50%); background: linear-gradient(180deg, rgba(60, 40, 22, 0.86), rgba(30, 18, 10, 0.9)); border-color: rgba(196, 144, 72, 0.7); color: #e8d4a8; }
.t2-plate.locked em { color: #f0c070; }
.tent2-view.phone .t2-plate strong { font-size: 36px; }
.tent2-view.phone .t2-plate em { font-size: 28px; }
.t2-plate.locked { max-width: 380px; }
.tent2-pan {
  position: absolute; top: 33%; z-index: 8; width: 50px; height: 76px;
  border: 2px solid #a07840; border-radius: 12px; cursor: pointer;
  background: linear-gradient(180deg, rgba(90, 62, 34, 0.9), rgba(42, 26, 14, 0.92));
  color: #f3e2b8; font-size: 2.4rem; line-height: 1; box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5);
}
.tent2-pan.left { left: 6px; } .tent2-pan.right { right: 6px; }
.tent2-pan[hidden] { display: none; }

/* sign + back button: top, just under the slim bar */
body.on-healer .tent-sign { position: absolute; z-index: 9; left: 0; right: 0; top: 58px; padding: 0 12px; pointer-events: none; }
body.on-healer .tent-sign h2 { font-size: clamp(1.2rem, 3.4vw, 1.9rem); }
body.on-healer .tent-mood { display: none; }
body.on-healer .tent-sign .walk-sign { position: absolute; left: 10px; top: 0; pointer-events: auto; min-height: 44px; }
@media (max-width: 640px) { body.on-healer .tent-sign h2 { margin-top: 56px; } }
body.on-healer #fatigueRow { position: absolute; z-index: 9; left: 50%; transform: translateX(-50%); top: 104px; margin: 0; max-width: 92vw; }

/* compact cot strip over the rug */
body.on-healer .cot-bay, body.on-healer .waiting-bench {
  position: absolute; z-index: 9; margin: 0; padding: 6px 8px 8px; box-sizing: border-box;
  background: linear-gradient(180deg, rgba(48, 30, 16, 0.78), rgba(24, 14, 6, 0.86)) !important;
}
body.on-healer .cot-bay { left: 50%; transform: translateX(-50%); bottom: calc(50px + env(safe-area-inset-bottom)); width: min(620px, calc(100vw - 12px)); }
body.on-healer .waiting-bench { left: 50%; transform: translateX(-50%); bottom: calc(6px + env(safe-area-inset-bottom)); width: min(620px, calc(100vw - 12px)); padding: 4px 8px; display: flex; align-items: center; gap: 8px; min-height: 40px; }
body.on-healer .cot-bay-title { display: none; }
body.on-healer .bench-title { margin: 0; font-size: 0.8rem; flex: none; }
body.on-healer .waiting-bench .wounded-list { flex: 1; display: flex; gap: 6px; overflow: hidden; flex-wrap: nowrap; margin: 0; padding: 0; }
body.on-healer .waiting-bench .wounded-chip img { width: 26px; height: 26px; }
body.on-healer .cot-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; flex-wrap: nowrap; }
body.on-healer .cot-slot {
  width: auto; min-height: 0; padding: 5px 6px; gap: 2px; box-sizing: border-box;
  display: grid; grid-template-columns: 44px 1fr; grid-auto-rows: auto; column-gap: 6px; align-items: center; text-align: left;
}
body.on-healer .cot-slot > * { grid-column: 2; min-width: 0; }
body.on-healer .cot-slot .cot-portrait { grid-column: 1; grid-row: 1 / span 4; width: 44px; height: 44px; }
body.on-healer .cot-slot.empty, body.on-healer .cot-slot.locked { display: flex; flex-direction: column; justify-content: center; text-align: center; }
body.on-healer .cot-slot .cot-label { font-size: 0.66rem; }
body.on-healer .cot-slot .cot-name { font-size: 0.8rem; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
body.on-healer .cot-slot .cot-tier { font-size: 0.66rem; }
body.on-healer .cot-slot .cot-empty-mark { flex: none; font-size: 0.82rem; }
body.on-healer .cot-slot .candle-timer { display: flex; align-items: center; gap: 4px; }
body.on-healer .cot-slot .candle-flame, body.on-healer .cot-slot .candle-body { display: none; }
body.on-healer .cot-slot .candle-time { font-size: 0.74rem; font-weight: 700; }
body.on-healer .cot-slot .wax-seal-btn { grid-column: 1 / span 2; min-height: 36px; font-size: 0.72rem; padding: 4px 6px; width: 100%; }
.t2-station.apprentice .t2-figure { transform: scaleX(-1); filter: drop-shadow(0 6px 10px rgba(0,0,0,0.45)) saturate(0.9) brightness(0.96); }
.t2-station.apprentice:active .t2-figure { transform: scaleX(-1) scale(1.02); }
/* short screens (phone landscape): one slim cot row so the healers' feet and plates stay clear */
@media (max-height: 520px) {
  body.on-healer .cot-bay { bottom: calc(40px + env(safe-area-inset-bottom)); width: min(560px, calc(100vw - 120px)); padding: 3px 6px; }
  body.on-healer .waiting-bench { min-height: 30px; padding: 2px 8px; width: min(560px, calc(100vw - 120px)); bottom: calc(4px + env(safe-area-inset-bottom)); }
  body.on-healer .cot-slot { padding: 2px 5px; }
  body.on-healer .cot-slot .cot-tier, body.on-healer .cot-slot .cot-label { display: none; }
  body.on-healer .cot-slot .cot-portrait { width: 30px; height: 30px; grid-row: 1 / span 3; }
  body.on-healer .cot-slot { grid-template-columns: 30px 1fr; }
  body.on-healer .cot-slot .wax-seal-btn { min-height: 30px; }
  body.on-healer .tent-sign { top: 50px; }
  body.on-healer .tent-sign h2 { margin-top: 0; }
}
/* night1: one-row HUD on phones + Warden's desk fits a ~664px-tall phone without page scroll */
@media (max-width: 560px) {
  .coin-pills { flex-wrap: nowrap; gap: 4px; }
  .coin-pills .pill { padding: 4px 7px; min-height: 34px; font-size: .8rem; white-space: nowrap; }
  .slim-bar { gap: 5px; }
  .pouch-btn .pouch-label { display: none; }
}
@media (max-height: 760px) and (max-width: 899px) {
  body.bo-desk .desk-scene { min-height: 0; }
  .warden-desk { gap: 8px; padding-bottom: 6px; }
  .wd-bust { width: clamp(84px, 24vw, 120px); }
  .wd-say { font-size: 1rem; }
  .wd-talk { margin-bottom: 6px; padding: 8px 12px; }
  .wd-choice { min-height: 60px; padding: 6px 12px 6px 8px; }
  .wd-choice .wd-ic { width: 40px; height: 40px; font-size: 1.3rem; }
  .wd-choice small { font-size: .85rem; }
}
.wd-choice small.wd-lead { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
/* night1: Bounty Book fits without scrolling: 3x3 trophy seals, tighter Most Caught rows */
.trophy-grid { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; gap: 6px !important; }
.trophy { padding: 4px 3px 5px; }
.trophy-seal { width: 64px; height: 64px; padding: 6px; margin-bottom: 2px; }
.trophy-seal span { width: 50px; height: 50px; font-size: .64rem; }
.trophy-need { font-size: .78rem; line-height: 1.1; }
.trophy-give { font-size: .8rem; margin: 1px 0 2px; }
.trophy-done { font-size: .74rem; }
.trophy-claim { min-height: 36px; font-size: .9rem; }
.lb-list li { padding: 4px 10px; margin-bottom: 3px; font-size: .95rem; }
.lb-you { margin-top: 4px; padding-top: 4px; }
@media (min-width: 900px) { .trophy-seal { width: 84px; height: 84px; } .trophy-seal span { width: 64px; height: 64px; font-size: .76rem; } }
