@import url("https://fonts.googleapis.com/css2?family=Noto+Serif+SC:wght@600;700&family=Noto+Sans+SC:wght@400;500;700&display=swap");

:root {
  --bg: #1a1410;
  --bg-2: #221c16;
  --paper: #e8dcc4;
  --paper-2: #cbb896;
  --ink: #1a1410;
  --cream: #f4ead6;
  --muted: #8a7d68;
  --line: #3d3428;
  --cinnabar: #b43228;
  --cinnabar-2: #e24a3a;
  --moss: #3d6b48;
  --gold: #d4b45a;
  --block: #6a9ad8;
}

* { box-sizing: border-box; }
html, body, #app { margin: 0; height: 100%; min-height: 100%; overflow: hidden; background: var(--bg); color: var(--cream); }
#fx-layer {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 200;
}
body {
  font: 15px/1.5 "Noto Sans SC", sans-serif;
  background:
    radial-gradient(1200px 500px at 50% -10%, #2c241c, transparent 60%),
    var(--bg);
}
button {
  font: 14px/1.4 "Noto Sans SC", sans-serif;
  color: var(--cream);
  background: var(--bg-2);
  border: 1px solid var(--line);
  padding: 10px 16px;
  cursor: pointer;
}
button:hover { border-color: var(--gold); color: var(--gold); }
button:disabled { opacity: 0.4; cursor: default; }
button.primary {
  background: var(--cinnabar);
  color: var(--cream);
  border-color: #e8b4a4;
}
button.primary:hover { color: #fff; }
button.ghost {
  background: transparent;
  border-color: transparent;
  color: var(--muted);
  padding: 4px 8px;
}
.row { display: flex; gap: 10px; flex-wrap: wrap; }
.kicker {
  color: var(--gold);
  letter-spacing: 0.18em;
  font-size: 11px;
  font-weight: 700;
}
h1 {
  font-family: "Noto Serif SC", serif;
  font-size: 72px;
  margin: 8px 0 12px;
  letter-spacing: 0.16em;
}
.lead { font-size: 16px; max-width: 640px; }
.lead.dim, .dim, .hint, .crime { color: var(--muted); }
.hint { font-size: 13px; margin-top: 14px; }

.screen { min-height: 100vh; }
.center { max-width: 760px; margin: 0 auto; padding: 7vh 24px 40px; }
.center.wide { max-width: 980px; }

.roster { display: grid; gap: 12px; margin: 28px 0; }
.hero {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 16px;
  padding: 12px 16px;
  background:
    linear-gradient(#2a221c, #1a1410);
  border: 1px solid var(--gold);
  align-items: center;
  box-shadow: inset 0 0 0 1px #3a3228;
}
.hero.locked { opacity: 0.45; border-color: var(--line); }
.hero h3 {
  font-family: "Noto Serif SC", serif;
  margin: 4px 0;
  font-size: 22px;
}
.verb { color: var(--gold); margin: 0 0 6px; font-size: 13px; }
.hero p { margin: 0 0 6px; }
.hero-fig { width: 88px; height: 110px; overflow: hidden; border: 1px solid var(--gold); background: #120e0c; }
.hero-fig.rail { color: var(--gold); }
.hero.open { border-color: var(--gold); }

h2 {
  font-family: "Noto Serif SC", serif;
  font-size: 36px;
  letter-spacing: 0.12em;
  margin: 8px 0 20px;
}

.picks {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin: 28px 0;
}
.heart-pick, .card.reward {
  text-align: left;
  background: var(--paper);
  color: var(--ink);
  border: 3px solid #2a2018;
  padding: 16px;
}
.heart-pick h3, .card.reward h3 {
  font-family: "Noto Serif SC", serif;
  margin: 6px 0 8px;
  font-size: 24px;
}
.heart-pick .flavor, .card.reward .flavor { color: #6a5a40; }
.heart-pick:hover, .card.reward:hover {
  border-color: var(--gold);
  color: var(--ink);
}
.reward-row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}
.card.reward {
  width: 196px;
  height: auto;
  margin: 0;
  padding: 6px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  position: relative;
  text-align: center;
  background: linear-gradient(#3a2e22, #1a1410);
  border: 1px solid var(--gold);
}
.card.reward .art {
  height: 88px;
  color: var(--paper-2);
}
.card.reward .text, .card.reward .flavor { color: var(--ink); background: var(--paper); margin: 0; padding: 6px 10px; }
.card.reward h3 { background: var(--paper); margin: 0; padding: 8px 8px 0; }
.card.reward.technique .banner { background: var(--gold); color: var(--ink); }
.card.reward.upgrade .banner { background: #5a2018; }
.card.reward.replace .banner { background: var(--moss); }
.card.reward.add .banner { background: #3d4a6b; }
.reward-compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  padding: 0 8px 4px;
  background: var(--paper);
  text-align: left;
}
.reward-compare span {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 6px;
  border: 1px solid var(--line, #3a342c);
  font-size: 12px;
  color: var(--ink);
}
.reward-compare em {
  font-style: normal;
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--muted, #9a8f7c);
}
.reward-compare .was { opacity: 0.72; }
.reward-compare .now { border-color: var(--brass, #c4a35a); }
.reward-compare small {
  color: var(--muted, #9a8f7c);
  line-height: 1.35;
}
.codex-panel {
  max-height: min(78vh, 720px);
  overflow: auto;
}
.codex-row {
  display: grid;
  grid-template-columns: minmax(4em, auto) auto 1fr;
  gap: 8px 12px;
  align-items: baseline;
}
.codex-row em {
  font-style: normal;
  color: var(--muted, #9a8f7c);
  font-size: 12px;
}
.codex-row.locked {
  opacity: 0.45;
}
.codex-school { margin-top: 10px; }
.relic.on {
  border-style: solid;
  border-color: var(--gold);
  color: var(--gold);
  width: 32px;
  height: 32px;
}
.tech-ico { width: 18px; height: 18px; display: block; }
.cell.trapped { box-shadow: inset 0 0 0 2px #8a6230; }
.fig.trap { color: #c4a070; font-size: 18px; padding-bottom: 12px; }
.tile.cache { background: #4a3824; box-shadow: inset 0 0 0 4px #2a2018; }
.tile.cache.open { background: #3a2e22; box-shadow: none; }
.tile.portal { box-shadow: inset 0 0 0 3px var(--gold); }
.tile.brazier { background: #4a2818; box-shadow: inset 0 0 0 7px #c45a28; }
.tile.item { background: #3a2e22; box-shadow: inset 0 0 0 6px var(--gold); }
.actor.npc.talk { color: #c4b890; z-index: 2; }
/* 洛阳 NPC 色板：同轮廓换滤镜，不增 PNG */
.actor.npc.pal-yamenInk img,
img.pal-yamenInk { filter: sepia(0.35) hue-rotate(-15deg) saturate(1.35) brightness(0.82); }
.actor.npc.pal-yanboRouge img,
img.pal-yanboRouge { filter: sepia(0.25) hue-rotate(-40deg) saturate(1.2) brightness(1.05); }
.actor.npc.pal-taibaiEarth img,
img.pal-taibaiEarth { filter: sepia(0.45) hue-rotate(5deg) saturate(0.9) brightness(0.95); }
.actor.npc.pal-martialIron img,
img.pal-martialIron { filter: grayscale(0.45) contrast(1.15) brightness(0.9); }
.actor.npc.pal-merchantOchre img,
img.pal-merchantOchre { filter: sepia(0.55) hue-rotate(15deg) saturate(1.1) brightness(0.95); }
.actor.npc.pal-postOchre img,
img.pal-postOchre { filter: sepia(0.5) hue-rotate(25deg) saturate(1.05) brightness(0.92); }
.actor.npc.pal-clergyOchre img,
img.pal-clergyOchre { filter: sepia(0.4) hue-rotate(8deg) saturate(0.7) brightness(1.05); }
.actor.npc.pal-folkInk img,
img.pal-folkInk { filter: sepia(0.3) saturate(0.55) brightness(0.92); }
.actor.npc.pal-foreignSand img,
img.pal-foreignSand { filter: sepia(0.6) hue-rotate(30deg) saturate(1.15) brightness(0.98); }
/* 年龄/性别轮廓走独立 SVG，禁止 scale 冒充 */
.actor.npc .npc-sil-wrap {
  display: block;
  width: 36px;
  height: 44px;
  margin-top: -4px;
  pointer-events: none;
}
.actor.npc .npc-sil-wrap svg.npc-sil {
  display: block;
  width: 36px;
  height: 44px;
  overflow: visible;
}
/* 对话富文本 */
.dlg-bold { font-weight: 700; color: #e8dcc0; }
.dlg-danger { color: #8b2a24; font-weight: 600; }
.fy-lines .clue { font-style: normal; font-weight: 700; color: #e8dcc0; }
.overworld.alley .tile.floor { background: #32281e; }
.overworld.alley .tile.seal,
.overworld.court .tile.seal {
  border-radius: 0;
}
.actor.npc.hauler { color: #8a9aa0; }
.actor.npc.alley { color: #d08060; }
.actor.npc.trapper { color: #8a7a40; }
.actor.npc.delay { color: #8a80b0; }
.actor.npc.twin { color: #c0b8a0; }
.actor.npc.lord { color: var(--gold); }

.combat {
  height: 100%;
  min-height: 0;
  max-height: 100%;
  overflow: hidden;
  display: grid;
  grid-template-rows: auto 1fr auto;
}

.topbar {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 8px 16px;
  background: #120e0c;
  border-bottom: 1px solid var(--gold);
}
.floor strong {
  font-family: "Noto Serif SC", serif;
  margin: 0 8px;
}
.floor em { color: var(--muted); font-style: normal; font-size: 13px; }
.top-stats { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.stat-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background: #2a221c;
  border: 1px solid var(--line);
  font-variant-numeric: tabular-nums;
}
.stat-chip.gold { color: var(--gold); }
.stat-chip.hp { color: var(--cinnabar-2); }
.ico { width: 14px; height: 14px; display: block; }
.potion, .relic {
  width: 28px;
  height: 28px;
  border: 1px dashed var(--line);
  color: var(--muted);
  font-size: 11px;
  display: grid;
  place-items: center;
}
.potion { border-radius: 50%; }

.arena {
  display: grid;
  grid-template-columns: 210px 1fr 210px;
  gap: 12px;
  padding: 16px 18px 8px;
  align-items: end;
}
.fighter { text-align: center; }
.portrait-frame {
  width: 168px;
  height: 224px;
  margin: 0 auto 8px;
  background: #120e0c;
  border: 3px solid var(--gold);
  box-shadow: inset 0 0 0 1px #5a4828, 0 8px 18px #0008;
  overflow: hidden;
}
.portrait-frame.foe { border-color: var(--cinnabar-2); }
.portrait-frame .stand {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 8%;
}
.fig-lg { width: 120px; margin: 0 auto; }
.fig-lg.you { color: var(--gold); }
.fig-lg.foe { color: var(--cinnabar-2); }
.ink { width: 100%; height: auto; display: block; }
.nameplate {
  background: linear-gradient(#2a2018, #1a1410);
  border: 1px solid var(--gold);
  padding: 6px 8px 8px;
  margin: 0 8px;
}
.nameplate b {
  display: block;
  font-family: "Noto Serif SC", serif;
  font-size: 20px;
  color: var(--gold);
}
.foe-side .nameplate { border-color: var(--cinnabar-2); }
.foe-side .nameplate b { color: var(--cinnabar-2); }
.nameplate span { color: var(--muted); font-size: 12px; }
.hp-read { font-size: 12px; color: var(--muted); margin-top: 4px; }
.bar {
  height: 10px;
  background: #2a221c;
  margin: 8px 8px 0;
  overflow: hidden;
  border: 1px solid var(--line);
}
.bar i { display: block; height: 100%; background: linear-gradient(180deg, #d2b896, #b89a6a 55%, #a88858); box-shadow: inset 0 -1px 0 #8a7048; }
.bar.danger i { background: linear-gradient(180deg, #c4a882, #b89a6a 55%, #9a7850); box-shadow: inset 0 -1px 0 #7a6040; }
.bar.qi { height: 7px; margin-top: 3px; }
.bar.qi i { background: linear-gradient(180deg, #e8dcc4, #c4a882 60%, #b89a6a); box-shadow: inset 0 -1px 0 #8a7450; }
.you-side .bar i { background: linear-gradient(180deg, #d2b896, #b89a6a 55%, #a88858); box-shadow: inset 0 -1px 0 #8a7048; }
.you-side .bar.qi i { background: linear-gradient(180deg, #e8dcc4, #c4a882 60%, #b89a6a); }
.foe-side .bar.qi i { background: linear-gradient(180deg, #e8dcc4, #c4a882 60%, #b89a6a); }
.intent-big {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--cinnabar);
  color: #fff;
  padding: 4px 10px;
  font-weight: 700;
  margin-bottom: 8px;
}
.intent-ico { width: 16px; height: 16px; }

.stage-core { min-width: 0; }
.stage-label {
  text-align: center;
  color: var(--gold);
  letter-spacing: 0.2em;
  font-size: 12px;
  margin-bottom: 8px;
}
.strip {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}
.cell {
  position: relative;
  min-height: 168px;
  background: #2a221a;
  border: 1px solid #4a3e30;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding-bottom: 8px;
}
.cell em {
  position: absolute;
  top: 6px;
  left: 7px;
  font-size: 11px;
  font-style: normal;
  color: var(--muted);
}
.cell.staked { background: #2a2418; }
.fig.stake { color: var(--moss); width: 40px; }
.cell.red { box-shadow: inset 0 0 0 2px var(--cinnabar-2); background: #3a1c16; }
.cell.wall {
  background: #2c2820;
  background-image: repeating-linear-gradient(-45deg, transparent, transparent 7px, #3a342c 7px, #3a342c 8px);
}
.cell.ghost { border-color: var(--gold); }
.fig { width: 72px; color: var(--cream); text-align: center; }
.fig.you { color: var(--gold); }
.fig.foe { color: var(--cinnabar-2); }
.fig.ghost { color: var(--gold); }
.fig .stand.board {
  width: 64px;
  height: 88px;
  object-fit: contain;
  object-position: bottom;
  display: block;
  margin: 0 auto;
  border: none;
  background: transparent;
}
.fig span, .wall-label {
  display: block;
  font-size: 11px;
  color: var(--muted);
  margin-top: 2px;
}
.intent-float {
  position: absolute;
  top: 4px;
  right: 4px;
  display: flex;
  align-items: center;
  gap: 2px;
  background: var(--cinnabar);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 1px 5px;
}

.preview {
  margin: 0;
  padding: 8px 12px;
  min-height: 42px;
  box-sizing: border-box;
  border: 1px solid var(--line);
  color: var(--muted);
  text-align: center;
  background: #16110e;
  line-height: 1.4;
}
.preview.live { border-color: var(--gold); color: var(--gold); }
.preview.bad { border-color: var(--cinnabar); color: #e8b4ac; }
.coach { text-align: center; margin-top: 8px; font-size: 14px; }

.bottombar {
  display: grid;
  grid-template-columns: 210px 1fr 210px;
  grid-template-areas:
    "you mid foe"
    "preview preview preview";
  gap: 12px;
  align-items: end;
  padding: 8px 18px 10px;
  background: #120e0c;
  border-top: 1px solid var(--line);
}
.bottom-you { grid-area: you; display: flex; justify-content: center; align-items: end; }
.bottom-mid {
  grid-area: mid;
  display: grid;
  grid-template-columns: 72px 1fr 72px;
  gap: 8px;
  align-items: end;
  min-width: 0;
}
.bottom-foe { grid-area: foe; display: flex; flex-direction: column; justify-content: end; min-width: 0; }
.bottombar .hand { grid-area: auto; }
.bottombar #preview-slot {
  grid-area: preview;
  min-height: 42px;
}
.bottombar .preview { width: 100%; }
.pile {
  height: 72px;
  width: 64px;
  background: #2a221a;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-family: "Noto Serif SC", serif;
}
.pile small { font-size: 11px; color: var(--muted); font-family: "Noto Sans SC", sans-serif; }
.energy {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: var(--gold);
  padding-bottom: 8px;
}
.energy.across {
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  padding: 8px 0 0;
}
.energy.across span {
  width: auto;
  font-size: 12px;
}
.fy-combat .energy.across {
  flex-wrap: nowrap;
  padding: 0;
}
.energy i {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid var(--gold);
  display: block;
}
.energy i.on { background: var(--gold); }

.hand {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 10px;
  height: 268px;
  padding-top: 28px;
}
.card {
  position: relative;
  width: 172px;
  height: 238px;
  margin: 0;
  padding: 5px;
  text-align: center;
  background:
    linear-gradient(#3a2e22, #1a1410);
  color: var(--ink);
  border: 1px solid var(--gold);
  box-shadow: inset 0 0 0 1px #5a4030, 0 8px 16px #0006;
  display: flex;
  flex-direction: column;
  transition: transform 0.14s ease, z-index 0s, border-color 0.14s ease, opacity 0.14s ease;
  z-index: 1;
}
.card:hover, .card.hot {
  transform: translateY(-36px);
  z-index: 6;
  color: var(--ink);
  border-color: #f4ead6;
}
.card.dead {
  opacity: 0.48;
  filter: grayscale(0.2);
  transform: none;
  z-index: 1;
}
.card.dead:hover {
  transform: none;
  z-index: 1;
  border-color: var(--gold);
}
.card .cost {
  position: absolute;
  top: 8px;
  left: 8px;
  width: 26px;
  height: 26px;
  background: var(--gold);
  color: var(--ink);
  font-family: "Noto Serif SC", serif;
  font-weight: 700;
  display: grid;
  place-items: center;
  border: 1px solid #5a2018;
  box-shadow: 0 0 0 2px var(--gold);
  z-index: 2;
}
.card .art {
  height: 72px;
  flex: 0 0 72px;
  margin: 0 2px;
  background: #1a1410;
  overflow: hidden;
  border: 1px solid #5a4030;
}
.card-art { width: 100%; height: 100%; display: block; }
.banner {
  background: #5a2018;
  color: var(--cream);
  font-size: 11px;
  letter-spacing: 0.28em;
  padding: 3px 0 2px;
  font-family: "Noto Serif SC", serif;
}
.card.skill .banner { background: var(--moss); }
.card h3 {
  font-family: "Noto Serif SC", serif;
  margin: 0;
  padding: 8px 8px 2px;
  font-size: 22px;
  background: var(--paper);
}
.card .text {
  margin: 0;
  padding: 0 10px 4px;
  font-size: 12px;
  line-height: 1.35;
  flex: 1;
  min-height: 0;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  background: var(--paper);
}
.card .flavor {
  margin: 0;
  padding: 2px 10px 10px;
  font-size: 11px;
  color: #6a5a40;
  font-style: italic;
  background: var(--paper);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 0 0 auto;
}
.card .hotkey {
  position: absolute;
  right: 8px;
  bottom: 6px;
  color: #8a7a60;
  font-size: 11px;
}

.endturn {
  height: 72px;
  background: var(--cinnabar);
  color: #fff;
  border-color: #e8b4a4;
  font-family: "Noto Serif SC", serif;
  font-size: 18px;
}
.endturn:hover { color: #fff; }

.log {
  margin: 18px 0;
  max-height: 180px;
  overflow: auto;
  border: 1px solid var(--line);
  padding: 10px 12px;
  color: var(--muted);
  font-size: 13px;
}

@media (max-width: 1100px) {
  h1 { font-size: 48px; }
  .arena { grid-template-columns: 1fr; }
  .fy-combat .arena {
    grid-template-columns: 168px 1fr 168px;
  }
  .fy-combat .bottombar {
    grid-template-columns: 72px max-content minmax(0, 1fr) 64px max-content 72px;
    gap: 4px 6px;
  }
  .hand { height: auto; flex-wrap: nowrap; }
  .fy-combat .card { margin-left: -36px; }
  .fy-combat .card:first-child { margin-left: 0; }
}

.overworld {
  height: 100%;
  min-height: 100%;
  display: grid;
  grid-template-rows: auto 1fr auto;
  position: relative;
}
.map-stage {
  display: block;
  padding: 0;
  overflow: hidden;
  min-height: 0;
  position: relative;
}
.map {
  position: absolute;
  left: 0;
  top: 0;
  image-rendering: pixelated;
  background: #0e0c0a;
  transform-origin: 0 0;
}
.atlas {
  flex: 0 0 auto;
  width: 112px;
  height: 56px;
  background: #3a3228;
  border: 1px solid #c4b070;
  pointer-events: none;
  image-rendering: auto;
}
.tiles {
  display: grid;
  gap: 0;
}
.tile {
  width: 40px;
  height: 40px;
  box-sizing: border-box;
}
.tile.floor { background: #3a2e22; }
.tile.wall { background: #1a1612; }
.tile.water { background: #1a2a2c; }
.tile.seal { background: #3a2e22; box-shadow: inset 0 0 0 8px #3a2e22, inset 0 0 0 14px var(--cinnabar); }
.tile.seal.lit { box-shadow: inset 0 0 0 8px #3a2e22, inset 0 0 0 14px var(--gold); }
.tile.gate { background: var(--cinnabar); }
.tile.gate.open { background: #3a2e22; }
.tile.ring { background: #2a2418; box-shadow: inset 0 0 0 3px var(--gold); }
.tile.sign { background: #3a2e22; box-shadow: inset 6px 8px 0 0 #cbb896; }
.tile.exit { background: #1a2a2c; }
.tile.exit.ready { background: #2a3a20; box-shadow: inset 0 0 0 3px var(--gold); }
.actors { position: absolute; inset: 0; pointer-events: none; z-index: 3; }
.actor {
  position: absolute;
  top: 0;
  left: 0;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  overflow: visible;
  transition: transform 0.12s linear;
}
.actor.you { color: var(--gold); z-index: 3; }
.actor.crate { color: #8a6230; z-index: 2; }
.actor.prop { z-index: 1; }
.actor.prop.barrel { color: #7a5a30; }
.actor.prop.crate { color: #8a6230; }
.actor.prop.lantern { color: #d4b45a; }
.actor.prop.coil { color: #6a7a70; }
.actor.prop.post { color: #5a4a38; }
.actor.prop.bench { color: #6a5030; }
.actor.prop.jar { color: #8a7060; }
.actor.prop.empty { color: #c4b890; }
.actor.prop.tree {
  z-index: 4;
  overflow: visible;
}
.actor.prop.tree .sprite {
  width: 54px;
  height: 68px;
  margin-left: -7px;
  margin-top: -28px;
  object-fit: contain;
}
.actor.prop.tree .sprite.bush {
  width: 40px;
  height: 46px;
  margin-left: 0;
  margin-top: -14px;
}
.actor.prop.tree .sprite.tree-pine {
  width: 48px;
  height: 76px;
  margin-left: -4px;
  margin-top: -34px;
}
.actor.prop.tree .sprite.tree-gold {
  width: 58px;
  height: 62px;
  margin-left: -9px;
  margin-top: -24px;
}
.actor.prop.tree .sprite.tree-olive {
  width: 52px;
  height: 70px;
  margin-left: -6px;
  margin-top: -30px;
}
.actor .tag {
  position: absolute;
  top: calc(100% - 2px);
  left: 50%;
  transform: translateX(-50%);
  font-size: 10px;
  line-height: 1.2;
  color: var(--cream);
  text-shadow: 0 1px 2px #120e0c, 0 0 4px #120e0c;
  white-space: nowrap;
  font-family: "Noto Serif SC", serif;
  /* 标签在浮动层统一置顶；此处作回退 */
  z-index: 5;
}
/* 文本标签强制最顶层：不被树/墙/人物遮挡；锚点底部居中 */
.float-labels {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  overflow: visible;
}
.float-labels .float-label {
  position: absolute;
  left: 0;
  top: 0;
  font-size: 11px;
  line-height: 1.2;
  white-space: nowrap;
  font-family: "Noto Serif SC", serif;
  color: #1a1410;
  text-shadow: 0 1px 0 #f4ead6, 0 0 4px #f4ead6, 0 0 8px #e8dcc4;
  transform: translate(-50%, -100%);
  z-index: 9999;
}
.float-labels .float-label.door {
  color: var(--gold, #c4a35a);
  font-weight: 600;
}
.float-labels .float-label.you {
  color: #ffe14a;
}
.float-labels .float-label.gate-scale {
  transform: translate(-50%, -100%);
}
.float-labels .float-label.landmark {
  font-size: 15px;
  line-height: 1.2;
  font-weight: 600;
  color: #fff;
  background: none;
  border: none;
  -webkit-text-stroke: 1px #1a1410;
  paint-order: stroke fill;
  text-shadow: none;
}
.actor.prop.tree { z-index: 0; }
.actor.prop { z-index: 1; }
.actor.npc { z-index: 3; }
.actor.door { z-index: 4; }
.actor.you { z-index: 5; }
.actors { z-index: 3; }
.actor.you .tag { color: var(--gold); }
.actor.door .tag { color: var(--gold); }
.actor.fire { color: #e24a3a; z-index: 2; }
.actor.fire .tag { color: #e8b070; }
.actor.loot .tag { color: var(--gold); }
.actor.prop.empty .tag { color: #c4b890; }
.actor.npc.foe .tag { color: var(--cinnabar-2); }
.actor.npc.foe {
  z-index: 2;
  pointer-events: auto;
  cursor: pointer;
}
.actor.npc.talk .tag { color: var(--cream); }
.actor.npc.catcher { color: var(--cinnabar-2); z-index: 2; }
.actor.npc.escort { color: #c4a070; z-index: 2; }
.actor.npc.piler { color: var(--moss); z-index: 2; }
.actor svg { width: 28px; height: 32px; display: block; }
.actor.crate svg, .actor.prop svg, .actor.fire svg, .actor.door svg {
  width: 46px;
  height: 50px;
  display: block;
  margin-top: -10px;
  overflow: visible;
}
.stand.map {
  width: 44px;
  height: 62px;
  object-fit: contain;
  object-position: bottom;
  margin-top: -28px;
  display: block;
  border: none;
  background: none;
  box-shadow: none;
}
.stand.hero {
  width: 88px;
  height: 110px;
  object-fit: cover;
  object-position: 50% 8%;
  display: block;
}
.dialogue {
  flex: 1;
  margin: 0;
  padding: 7px 14px;
  background: var(--paper);
  color: var(--ink);
  font-family: "Noto Serif SC", serif;
  font-size: 15px;
  line-height: 1.45;
  border: 1px solid var(--gold);
  box-shadow: inset 0 0 0 1px #cbb896;
}
.legend {
  text-align: center;
  color: var(--muted);
  font-size: 12px;
  padding: 4px;
}
.voicebar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px 7px;
  background: #120e0c;
  border-top: 1px solid var(--gold);
}

/* —— 江湖风云录 layout —— */
html, body, #app {
  background: #cbb896;
  color: #1a1410;
}
body {
  background:
    radial-gradient(1200px 500px at 50% -10%, #e8dcc4, transparent 60%),
    #cbb896;
}
button {
  color: #2a2018;
  background: #e8dcc4;
  border: 2px solid #2a2018;
}
button:hover { border-color: #8b2a24; color: #8b2a24; }
button.primary {
  background: #8b2a24;
  color: #f4ead6;
  border-color: #2a2018;
}
button.ghost { color: #5a4030; border-color: transparent; background: transparent; }

.fy-title {
  position: relative;
  background-size: cover;
  background-position: center;
  overflow: hidden;
}
.fy-title::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #e8dcc4ee 0%, #e8dcc4aa 46%, transparent 78%);
  pointer-events: none;
}
.fy-title-art {
  position: absolute;
  right: 2%;
  bottom: -4%;
  height: 92%;
  z-index: 1;
  pointer-events: none;
}
.fy-title-art .stand {
  height: 100%;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 12px 20px #0006);
}
.fy-plaque {
  position: relative;
  z-index: 2;
  background: #f4ead6ee;
  border: 3px solid #2a2018;
  box-shadow: inset 0 0 0 1px #cbb896, 0 12px 28px #0004;
  padding: 28px 32px 36px;
}
.fy-plaque h1 { color: #1a1410; }
.fy-plaque .lead { color: #2a2018; }

.title-screen.fy-title {
  height: 100vh;
  min-height: 100vh;
  max-height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
}
.title-screen .center {
  padding: 3vh 20px 2vh;
  width: 100%;
}
.title-screen .fy-plaque {
  padding: 16px 24px 18px;
}
.title-screen h1 {
  font-size: clamp(36px, 5.6vh, 52px);
  margin: 2px 0 6px;
  letter-spacing: 0.14em;
}
.title-screen .lead {
  font-size: 14px;
  line-height: 1.45;
  margin: 0 0 6px;
  max-width: none;
}
.title-screen .roster {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 10px 0 14px;
}
.title-screen .hero {
  grid-template-columns: 56px 1fr;
  gap: 8px;
  padding: 8px 10px;
  align-items: start;
}
.title-screen .hero-fig {
  width: 52px;
  height: 66px;
}
.title-screen .stand.hero {
  width: 52px;
  height: 66px;
}
.title-screen .hero.open { cursor: pointer; }
.title-screen .hero.picked {
  border-color: var(--cinnabar);
  box-shadow: inset 0 0 0 2px var(--cinnabar);
}
.title-screen .hero h3 { font-size: 15px; margin: 0 0 2px; }
.title-screen .verb { font-size: 12px; margin: 0 0 4px; }
.title-screen .hero p { font-size: 12px; line-height: 1.35; margin: 0; }
.title-screen .crime { display: none; }
.title-screen .hint { margin-top: 10px; font-size: 12px; text-align: center; }
.title-screen .row {
  justify-content: center;
  margin-top: 4px;
}
.title-screen #btn-start {
  min-width: 240px;
  height: 54px;
  padding: 0 40px;
  font-size: 22px;
  letter-spacing: 0.22em;
  font-family: "Noto Serif SC", serif;
}
.hero {
  background: #efe4cc;
  border: 2px solid #2a2018;
  box-shadow: none;
}
.hero-fig { border: none; background: transparent; overflow: visible; }

.fy-top {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 6px 14px;
  background:
    linear-gradient(180deg, #f2e6cc 0%, #e4d4b4 72%, #dcc8a4 100%);
  border-bottom: 3px solid #2a2018;
  box-shadow: inset 0 -1px 0 #cbb896, 0 1px 0 #1a141033;
  color: #1a1410;
}
.fy-place em {
  display: block;
  color: #8b2a24;
  font-style: normal;
  font-size: 11px;
  letter-spacing: 0.28em;
  font-weight: 700;
}
.fy-place b {
  font-family: "Noto Serif SC", serif;
  font-size: 22px;
}
.fy-stats {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.fy-quests {
  display: flex;
  gap: 8px;
  flex: 0 0 auto;
  width: 280px;
  margin: 0 8px;
}
.fy-quest {
  flex: 1 1 0;
  min-width: 0;
  width: 136px;
  height: 34px;
  margin: 0;
  padding: 0 8px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 1px;
  background:
    linear-gradient(165deg, #f6ecd8 0%, #efe4cc 55%, #e4d4b4 100%);
  border: 2px solid #2a2018;
  box-shadow:
    inset 0 0 0 1px #cbb896aa,
    1px 1px 0 #1a141055;
  clip-path: polygon(1.5px 0, calc(100% - 1.5px) 0, 100% 1.5px, 100% calc(100% - 2px), calc(100% - 2px) 100%, 2px 100%, 0 calc(100% - 1.5px), 0 1.5px);
  color: #1a1410;
  font: inherit;
  cursor: pointer;
  text-align: left;
}
.fy-quest:hover {
  border-color: #5a2018;
  color: #1a1410;
  background: linear-gradient(165deg, #faf2e2, #efe0c4);
}
.fy-quest em {
  font-style: normal;
  font-size: 10px;
  letter-spacing: 0.2em;
  color: #8b2a24;
  line-height: 1;
}
.fy-quest b {
  font-weight: 700;
  font-size: 13px;
  line-height: 1.15;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}
.fy-quest span {
  position: absolute;
  top: 2px;
  right: 6px;
  font-size: 11px;
  font-weight: 700;
  color: #8b2a24;
  white-space: nowrap;
}
.quest-main {
  margin: 8px 0 16px;
  font-family: "Noto Serif SC", serif;
}
.quest-sheet .quest-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 8px;
  max-height: min(58vh, 420px);
  overflow-y: auto;
  padding-right: 2px;
}
.quest-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 12px 14px;
  background:
    linear-gradient(165deg, #f8f0de 0%, #f2e6cc 48%, #eadcb8 100%);
  border: 2px solid #2a2018;
  box-shadow:
    inset 0 0 0 1px #cbb896aa,
    1px 1px 0 #1a141044;
  clip-path: polygon(2px 0, calc(100% - 2px) 0, 100% 2px, 100% calc(100% - 2.5px), calc(100% - 2.5px) 100%, 2.5px 100%, 0 calc(100% - 2px), 0 2px);
}
.quest-card + .quest-card {
  border-top-width: 2px;
}
.quest-card header {
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.quest-card header em {
  flex: 0 0 auto;
  font-style: normal;
  font-size: 11px;
  letter-spacing: 0.18em;
  color: #8b2a24;
}
.quest-card header b {
  font-family: "Noto Serif SC", serif;
  font-size: 18px;
  font-weight: 700;
  color: #1a1410;
  letter-spacing: 0.08em;
}
.quest-card.side header em {
  color: #5a4030;
}
.quest-reward {
  margin: 4px 0 0;
  font-size: 13px;
  color: #6a4a28;
}
.quest-reward em {
  font-style: normal;
  letter-spacing: 0.1em;
  margin-right: 6px;
  color: #8a5a28;
  font-size: 11px;
  font-weight: 700;
}
.quest-flip-nav,
.party-flip-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 14px;
}
.quest-flip-nav button,
.party-flip-nav button {
  min-width: 44px;
  font: inherit;
  cursor: pointer;
  border: 2px solid #2a2018;
  background: #efe4ce;
  color: #2a2018;
  padding: 4px 10px;
}
.quest-flip-nav button:disabled,
.party-flip-nav button:disabled {
  opacity: 0.35;
  cursor: default;
}
.quest-flip-nav span,
.party-flip-nav span {
  font-size: 13px;
  color: #5a4030;
  letter-spacing: 0.08em;
}
.party-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
  min-height: 280px;
}
.party-stand {
  width: min(220px, 70%);
  margin: 4px 0 8px;
}
.party-stand .stand {
  width: 100%;
  height: auto;
  display: block;
  image-rendering: auto;
}
.party-meta {
  margin: 0;
  color: #5a4030;
  font-size: 14px;
}
.party-bio {
  margin: 8px 0 0;
  max-width: 28em;
  color: #3a2a1c;
  font-size: 14px;
  line-height: 1.55;
}
.party-kick {
  margin-top: 10px;
}
.quest-blurb {
  margin: 0;
  font-family: "Noto Sans SC", sans-serif;
  font-size: 13px;
  line-height: 1.5;
  color: #3a2418;
}
.quest-guide {
  margin: 2px 0 0;
  padding: 8px 10px;
  font-family: "Noto Serif SC", serif;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.45;
  color: #5a2018;
  background: #ebe0c688;
  border-left: 3px solid #8b2a24;
}
.quest-guide span {
  display: inline-block;
  margin-right: 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: #8b2a24;
  vertical-align: middle;
}
.quest-empty {
  margin: 12px 0 0;
  color: #5a4030;
  font-size: 14px;
}
.fy-btn {
  width: 76px;
  min-width: 76px;
  height: 34px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  box-sizing: border-box;
  background:
    linear-gradient(165deg, #f6ecd8 0%, #f4ead6 50%, #e8dcc4 100%);
  border: 2px solid #2a2018;
  box-shadow:
    inset 0 0 0 1px #cbb896aa,
    1px 1px 0 #1a141055;
  clip-path: polygon(1.5px 0, calc(100% - 1.5px) 0, 100% 1.5px, 100% calc(100% - 2px), calc(100% - 2px) 100%, 2px 100%, 0 calc(100% - 1.5px), 0 1.5px);
  color: #1a1410;
  font: inherit;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
}
.fy-btn:hover {
  border-color: #5a2018;
  color: #1a1410;
  background: linear-gradient(165deg, #faf2e2, #efe0c4);
}
.fy-btn.hp {
  cursor: default;
  width: 76px;
  min-width: 76px;
  color: #8b2a24;
  font-size: 12px;
}
.fy-btn.hp:hover { background: #f4ead6; }
.fy-btn.test-cam-btn {
  width: auto;
  min-width: 88px;
  padding: 0 10px;
  font-size: 13px;
  color: #5a2018;
}
.fy-btn .ico { width: 15px; height: 15px; }
.stat-chip {
  background: linear-gradient(165deg, #f6ecd8, #f4ead6);
  border: 2px solid #2a2018;
  box-shadow: inset 0 0 0 1px #cbb896aa, 1px 1px 0 #1a141055;
  color: #1a1410;
}
.stat-chip.gold { color: #6a4020; }
.stat-chip.hp { color: #8b2a24; }

.overworld.fy { background: #2a2418; }
.map {
  image-rendering: auto;
  background: #050508;
}
.tiles { position: relative; z-index: 1; }
.fog-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 2;
  image-rendering: auto;
}
.tile {
  position: relative;
  width: 40px;
  height: 40px;
  padding: 0;
  overflow: visible;
  background: #2b4e0a;
  box-shadow: none !important;
}
.tile:not(.fog) { cursor: pointer; }
.tile.fog { cursor: default; overflow: hidden; }
.tile .tex {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  pointer-events: none;
}
.tile.wall {
  overflow: visible;
  z-index: 2;
  background: transparent;
}
.tile.wall .tex.under {
  inset: 0;
  z-index: 0;
}
.tile .tex.bar-h,
.tile .tex.bar-v,
.tile .tex.arm-n,
.tile .tex.arm-e,
.tile .tex.arm-s,
.tile .tex.arm-w,
.tile .tex.post {
  inset: auto;
  object-fit: contain;
  z-index: 1;
  opacity: 1;
  filter: none;
  image-rendering: auto;
}
.tile .tex.bar-h {
  left: 0;
  width: 100%;
  height: 46%;
  top: 27%;
}
.tile .tex.bar-v {
  top: 0;
  height: 100%;
  width: 46%;
  left: 27%;
}
.tile .tex.arm-n {
  left: 27%;
  width: 46%;
  top: 0;
  height: 56%;
  object-position: bottom;
}
.tile .tex.arm-s {
  left: 27%;
  width: 46%;
  bottom: 0;
  height: 56%;
  object-position: top;
}
.tile .tex.arm-w {
  top: 27%;
  height: 46%;
  left: 0;
  width: 56%;
  object-position: right;
}
.tile .tex.arm-e {
  top: 27%;
  height: 46%;
  right: 0;
  width: 56%;
  object-position: left;
}
.actor.loot .sprite.loot {
  width: 28px;
  height: 28px;
  object-fit: contain;
  filter: drop-shadow(0 1px 0 #1a1410);
}
.tile .tex.post {
  width: 48%;
  height: 48%;
  left: 26%;
  top: 26%;
  object-fit: contain;
  z-index: 2;
}
.tile .tex.sheet {
  background-repeat: repeat;
  background-size: 640px 640px;
  image-rendering: auto;
}
.tile .tex.sheet.blend {
  -webkit-mask-size: 640px 640px;
  mask-size: 640px 640px;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
}
.tile .tex.atlas {
  background-repeat: no-repeat;
  background-size: 640px 640px;
  image-rendering: auto;
}
.tile .tex.atlas.overlay {
  z-index: 1;
  filter: none;
}
.tile.hill,
.tile.rock {
  overflow: visible;
  z-index: 2;
}
.tile.hill > .tex:first-child,
.tile.rock > .tex:first-child {
  filter: none;
  transform: none;
}
.tile.hill > .tex.hill-core,
.tile.rock > .tex.hill-core {
  /* 参考图直接铺满一格，不缩小塞进模型 */
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: none;
  transform-origin: center center;
  filter: drop-shadow(0 2px 0 rgba(42, 32, 24, 0.28));
  z-index: 2;
}
.tile.hill::after {
  display: none;
}
.tile .stamp.crag,
.tile .stamp.tuft {
  z-index: 2;
}
.tile .stamp {
  position: absolute;
  inset: -20% -10% 0 -10%;
  width: 120%;
  height: 120%;
  object-fit: contain;
  pointer-events: none;
  z-index: 3;
  overflow: visible;
}
.tile.floor, .tile.wall, .tile.hill, .tile.rock, .tile.road, .tile.pack, .tile.gate, .tile.gate.open,
.tile.seal, .tile.seal.lit, .tile.sign, .tile.portal, .tile.brazier,
.tile.cache, .tile.item { background: #2b4e0a; box-shadow: none !important; }
.tile.water { background: #1a3a48; box-shadow: none !important; }
.map-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  pointer-events: none;
  opacity: 0.7;
}
.ink-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}
.tiles { position: relative; z-index: 1; }
.tile { background: transparent !important; box-shadow: none !important; }
.tile.fog .tex, .tile.fog .stamp { display: none; }
.tile.floor, .tile.wall, .tile.water, .tile.hill, .tile.rock, .tile.road, .tile.pack, .tile.gate, .tile.gate.open,
.tile.seal, .tile.seal.lit, .tile.sign, .tile.portal, .tile.brazier,
.tile.cache, .tile.item { background: transparent !important; box-shadow: none !important; }
.overworld.alley .tile.floor,
.overworld.court .tile.floor { background: transparent !important; }
.tile.seal,
.overworld.alley .tile.seal,
.overworld.court .tile.seal {
  background: transparent !important;
  border-radius: 0 !important;
  overflow: hidden;
}
.tile.seal.lit .stamp.seal { filter: drop-shadow(0 0 5px rgba(196, 58, 40, 0.55)); }
.tile .stamp.seal {
  inset: -4px;
  width: auto;
  height: auto;
  object-fit: contain;
}
.tile.gate { background: transparent; }
.tile.gate.open { background: transparent; box-shadow: none; }
.tile.sign { background: rgba(244, 234, 214, 0.28); box-shadow: inset 5px 7px 0 0 rgba(90, 50, 30, 0.35); }
.tile.portal { box-shadow: none; }
.tile.brazier { background: rgba(196, 80, 40, 0.45); box-shadow: none; }
.tile.cache { background: transparent; box-shadow: none; }
.tile.item { background: transparent; box-shadow: none; }
.overworld.alley .tile.floor,
.overworld.court .tile.floor { background: transparent; }

.actor .tag {
  top: calc(100% - 2px);
  font-size: 11px;
  color: #1a1410;
  background: none;
  border: none;
  padding: 0;
  text-shadow: 0 1px 0 #f4ead6, 0 0 4px #f4ead6, 0 0 8px #e8dcc4;
}
.actor.you .tag { color: #ffe14a; }
.actor.npc.foe {
  pointer-events: auto;
  cursor: pointer;
}
.actor.npc.foe .tag { color: #8b2a24; }
.actor.npc.talk .tag { color: #1a1410; }

.actor img.sprite {
  width: 36px;
  height: 40px;
  object-fit: contain;
  object-position: bottom;
  margin-top: -8px;
  display: block;
  border: none;
  background: none;
  box-shadow: none;
  mix-blend-mode: normal;
  filter: drop-shadow(0 1px 1px #0008);
}
.actor img.sprite.obj {
  width: 40px;
  height: 40px;
  margin-top: 0;
  object-fit: contain;
  background: transparent;
}
.actor.prop.house img.sprite.obj,
.actor.prop.stall img.sprite.obj {
  width: 52px;
  height: 56px;
  margin-top: -22px;
  margin-left: -8px;
}
.actor.prop.arch.edge-h img.sprite.obj {
  width: 56px;
  height: 48px;
  margin-top: -20px;
  margin-left: -10px;
  filter: drop-shadow(0 2px 2px #0008);
}
.actor.prop.arch.edge-v img.sprite.obj {
  width: 40px;
  height: 64px;
  margin-top: -28px;
  margin-left: -2px;
  filter: drop-shadow(0 2px 2px #0008);
}
.actor.door.paifang.edge-h img.sprite.obj.door {
  width: 56px;
  height: 48px;
  margin-top: -20px;
  margin-left: -8px;
}
.actor.door.paifang.edge-v img.sprite.obj.door {
  width: 40px;
  height: 64px;
  margin-top: -30px;
  margin-left: -2px;
}
.actor.prop.arch .tag {
  top: -28px;
  color: var(--gold);
  opacity: 0.9;
}
.actor.seal img.sprite.obj,
.actor.fire img.sprite.obj {
  width: 40px;
  height: 40px;
  margin-top: -8px;
  margin-left: -4px;
}
.actor.seal.lit img.sprite.obj {
  filter: drop-shadow(0 0 5px rgba(196, 58, 40, 0.55));
}
.actor.prop.cart img.sprite.obj,
.actor.prop.well img.sprite.obj {
  width: 38px;
  height: 38px;
  margin-top: -6px;
}
.actor.prop.span-2x1 img.sprite.obj {
  width: 72px;
  height: 40px;
  margin-top: -8px;
  margin-left: -4px;
  object-fit: contain;
}
.actor.prop.span-3x1 img.sprite.obj {
  width: 104px;
  height: 40px;
  margin-top: -8px;
  margin-left: -4px;
  object-fit: contain;
}
.actor.prop.arch.landmark img.sprite.obj {
  width: 64px;
  height: 72px;
  margin-top: -36px;
  margin-left: -12px;
  filter: drop-shadow(0 2px 3px #000a);
}
.actor.door {
  overflow: visible;
  z-index: 2;
}
.actor.door .tag {
  top: -22px;
  z-index: 4;
  background: #efe4cc;
  border: 1px solid #2a2018;
  color: #1a1410;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.06em;
  line-height: 16px;
  padding: 0 5px;
  text-shadow: none;
}
.actor.door.pass .tag {
  top: -18px;
}
.actor.door.hall .tag { top: -26px; }
.actor.door.ferry .tag,
.actor.door.post .tag,
.actor.door.wine .tag,
.actor.door.camp .tag,
.actor.door.shrine .tag { top: -28px; }
.actor.door.shut .tag { opacity: 0.78; }
.actor.area-label {
  pointer-events: none;
  overflow: visible;
  z-index: 3;
}
.actor.area-label .tag.area {
  position: absolute;
  left: 50%;
  top: -4px;
  transform: translateX(-50%);
  white-space: nowrap;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.14em;
  padding: 2px 8px;
  color: #fff8ec;
  background: transparent;
  border: none;
  text-shadow:
    0 0 3px #1a1410,
    0 1px 0 #1a1410,
    1px 0 0 #1a1410,
    -1px 0 0 #1a1410,
    0 -1px 0 #1a1410;
  pointer-events: none;
}
.actor.door img.sprite.obj.door {
  width: 64px;
  height: 52px;
  margin-top: -22px;
  margin-left: -12px;
  object-fit: contain;
  object-position: bottom;
  opacity: 1;
  filter: drop-shadow(0 2px 2px #0008);
}
.actor.door.hut img.sprite.obj.door,
.actor.prop.house img.sprite.obj {
  opacity: 1 !important;
  mix-blend-mode: normal;
  /* keep hut solid — shut doors elsewhere dim with brightness */
  filter: drop-shadow(0 2px 2px #0008) !important;
}
.actor.door.hut img.sprite.obj.door {
  width: 68px;
  height: 52px;
  margin-top: -22px;
  margin-left: -14px;
}
.actor.door.hut.shut img.sprite.obj.door {
  filter: drop-shadow(0 2px 2px #0008) brightness(0.92) !important;
}
.actor.door.paifang img.sprite.obj.door {
  width: 56px;
  height: 56px;
  margin-top: -28px;
  margin-left: -8px;
}
.actor.door.shut img.sprite.obj.door { filter: drop-shadow(0 2px 2px #0008) brightness(0.72); }
.actor.door.open img.sprite.obj.door { filter: drop-shadow(0 2px 2px #0008) brightness(1.05); }
.stand.bust {
  width: 78px;
  height: 96px;
  object-fit: contain;
  object-position: 50% 8%;
  display: block;
  mix-blend-mode: normal;
  border: none;
  background: none;
}
.stand.board {
  width: 64px;
  height: 88px;
  object-fit: contain;
  object-position: bottom;
  display: block;
  margin: 0 auto;
  border: none;
  background: transparent;
  mix-blend-mode: normal;
  filter: drop-shadow(0 2px 2px #0004);
}
.stand.side {
  width: 168px;
  height: 236px;
  object-fit: contain;
  object-position: bottom center;
  display: block;
  margin: 0 auto;
  mix-blend-mode: normal;
  filter: drop-shadow(0 8px 12px #0005);
}
.fy-combat .stand.side {
  width: 100%;
  height: 100%;
  max-width: none;
}
.stand.hero {
  width: 88px;
  height: 110px;
  object-fit: contain;
  mix-blend-mode: normal;
  border: none;
}

.fy-talk {
  display: flex;
  align-items: stretch;
  gap: 10px;
  padding: 6px 12px 6px;
  height: 100px;
  min-height: 100px;
  max-height: 100px;
  box-sizing: border-box;
  background:
    linear-gradient(180deg, #f2e6cc 0%, #e4d4b4 72%, #dcc8a4 100%);
  border-top: 3px solid #2a2018;
  box-shadow: inset 0 1px 0 #cbb896, 0 -1px 0 #1a141033;
}
html[data-display="fullscreen"] .fy-talk,
#app[data-display="fullscreen"] .fy-talk {
  height: 140px;
  min-height: 140px;
  max-height: 140px;
}
html[data-display="windowed"] #app,
#app[data-display="windowed"] {
  max-width: 1100px;
  margin: 0 auto;
}
.bag-cell {
  position: relative;
}
.bag-cell[title]:hover::after {
  content: attr(title);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 6px);
  transform: translateX(-50%);
  z-index: 5;
  width: max-content;
  max-width: 12em;
  padding: 6px 8px;
  font-size: 11px;
  line-height: 1.35;
  color: #1a1410;
  background: #f4ead6;
  border: 1px solid #8b2a24;
  pointer-events: none;
  animation: bag-tip 0.05s linear 0.5s both;
}
@keyframes bag-tip {
  from { opacity: 0; }
  to { opacity: 1; }
}
.atlas {
  width: 112px;
  height: 56px;
  align-self: center;
  background:
    linear-gradient(165deg, #e0d4b4, #d4c6a4);
  border: 2px solid #2a2018;
  box-shadow: inset 0 0 0 1px #cbb896aa, 1px 1px 0 #1a141055;
  clip-path: polygon(2px 0, calc(100% - 2px) 0, 100% 2px, 100% calc(100% - 2px), calc(100% - 2px) 100%, 2px 100%, 0 calc(100% - 2px), 0 2px);
}
.fy-bust {
  flex: 0 0 84px;
  width: 84px;
  height: 86px;
  background: none;
  border: none;
  overflow: hidden;
  display: grid;
  place-items: center;
  align-self: center;
}
.fy-bust .stand.bust {
  width: 76px;
  height: 86px;
}
.fy-words {
  flex: 0 1 auto;
  width: min(44rem, calc((100% - 14rem) * 0.7));
  min-width: 18rem;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.fy-name {
  font-family: "Noto Serif SC", serif;
  font-size: 15px;
  font-weight: 700;
  color: #8b2a24;
  align-self: flex-start;
  background: none;
  border: none;
  padding: 0 0 2px;
  line-height: 1.3;
  letter-spacing: 0.12em;
}
.fy-panel {
  flex: 1;
  min-height: 0;
  height: 100%;
  margin: 0;
  padding: 6px 10px;
  background:
    linear-gradient(165deg, #f8f0de 0%, #f4ead6 48%, #eadcb8 100%);
  border: 2px solid #2a2018;
  box-shadow:
    inset 0 0 0 1px #cbb896aa,
    1px 1px 0 #1a141055;
  clip-path: polygon(2px 0, calc(100% - 2px) 0, 100% 2px, 100% calc(100% - 2.5px), calc(100% - 2.5px) 100%, 2.5px 100%, 0 calc(100% - 2px), 0 2px);
  box-sizing: border-box;
  display: flex;
  flex-direction: row;
  align-items: stretch;
  gap: 8px;
  position: relative;
}
.fy-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.fy-lines {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  overflow: hidden;
}
.fy-lines .line-said,
.fy-lines .line-thought {
  overflow: hidden;
  text-overflow: clip;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}
.fy-picks {
  flex: 0 0 auto;
  width: auto;
  min-width: 4.5em;
  max-width: min(52vw, 28rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: stretch;
  gap: 4px;
  margin: 0;
  padding-left: 8px;
  border-left: 1px solid #c8b89688;
}
.fy-picks.many {
  display: grid;
  grid-template-rows: repeat(2, auto);
  grid-auto-flow: column;
  grid-auto-columns: max-content;
  align-content: center;
  justify-content: start;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: thin;
}
.fy-picks.solo {
  flex: 0 0 auto;
  width: auto;
  min-width: 4.5em;
  padding-left: 8px;
  border-left: 1px solid #c8b89688;
  align-items: center;
  justify-content: center;
}
.fy-picks.solo .fy-pick {
  min-width: 4.5em;
}
.fy-pick {
  flex: 0 0 auto;
  min-height: 28px;
  height: 28px;
  font-family: "Noto Serif SC", serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: #3a2418;
  background:
    linear-gradient(165deg, #f6ecd8 0%, #efe4cc 55%, #e6d6b4 100%);
  border: 2px solid #2a2018;
  box-shadow:
    inset 0 0 0 1px #cbb896aa,
    1px 1px 0 #1a141044;
  clip-path: polygon(1.5px 0, calc(100% - 1.5px) 0, 100% 1.5px, 100% calc(100% - 2px), calc(100% - 2px) 100%, 2px 100%, 0 calc(100% - 1.5px), 0 1.5px);
  padding: 0 14px;
  line-height: 1;
  cursor: pointer;
  text-align: center;
  white-space: nowrap;
}
.fy-pick.idle {
  opacity: 0.72;
  cursor: default;
}
.fy-pick:hover {
  background: linear-gradient(165deg, #faf2e2, #f7eed8);
  color: #8b2a24;
}
.fy-pick.idle:hover {
  background: linear-gradient(165deg, #f6ecd8, #efe4cc);
  color: #3a2418;
}
.fy-talk .dialogue,
.line-said,
.line-thought {
  margin: 0;
  padding: 0;
  background: none;
  border: none;
  box-shadow: none;
}
.line-said {
  color: #1a1410;
  font-family: "Noto Serif SC", serif;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.5;
}
.line-said.you {
  color: #5a2018;
}
.line-thought {
  color: #5a4030;
  font-family: "Noto Sans SC", sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
}
.line-thought .clue,
.line-said .clue,
.fy-pick .clue {
  color: #8b2a24;
  font-style: normal;
  font-weight: 700;
}
.place-ink {
  position: absolute;
  top: 10%;
  left: 50%;
  transform: translateX(-50%);
  z-index: 8;
  pointer-events: none;
  text-align: center;
  animation: place-ink 3s ease forwards;
}
.place-ink.quest-ink {
  right: 18px;
  left: auto;
  transform: none;
  text-align: right;
}
.actor.npc.foe.bounty-mark {
  outline: 2px solid #8b2a24;
  outline-offset: 2px;
  border-radius: 4px;
}
.actor.prop.flag img.sprite.obj,
.actor.prop.post.flag img.sprite.obj {
  width: 40px;
  height: 40px;
  background: transparent;
}
.place-ink em {
  display: block;
  font-style: normal;
  font-family: "Noto Serif SC", serif;
  font-size: 14px;
  letter-spacing: 0.46em;
  text-indent: 0.46em;
  color: #f4f0e6;
  text-shadow:
    0 1px 2px #0a0806cc,
    0 0 10px #0a080699;
}
.place-ink b {
  display: block;
  font-family: "Noto Serif SC", serif;
  font-size: 42px;
  letter-spacing: 0.42em;
  text-indent: 0.42em;
  font-weight: 700;
  color: #f7f3ea;
  text-shadow:
    0 1px 0 #1a1410,
    0 2px 4px #0a0806cc,
    0 0 14px #0a080688;
}
@keyframes place-ink {
  0% { opacity: 0; }
  12% { opacity: 0.8; }
  72% { opacity: 0.8; }
  100% { opacity: 0; }
}

.fy-combat {
  position: relative;
  height: 100%;
  overflow: hidden;
  background-size: cover;
  background-position: center;
}
.fy-combat.hit-shake {
  animation: hit-shake 0.16s ease-out;
}
@keyframes hit-shake {
  0%, 100% { transform: translate(0, 0); }
  20% { transform: translate(-7px, 3px); }
  40% { transform: translate(7px, -2px); }
  60% { transform: translate(-4px, 2px); }
  80% { transform: translate(4px, 0); }
}
.fy-combat::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(#f4ead6cc, #e8dcc4aa 40%, #e8dcc4d0);
  pointer-events: none;
  z-index: 0;
}
.fy-combat > * { position: relative; z-index: 1; }
.fy-stand-wrap { min-height: 0; }
.fy-combat .arena {
  grid-template-columns: 188px 1fr 188px;
  align-items: end;
  gap: 14px;
  padding: 10px 18px 2px;
  overflow: visible;
}
.fy-combat .fighter {
  width: 188px;
  min-height: 0;
  overflow: visible;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  text-align: center;
}
.fy-combat .fighter.foe-side {
  z-index: 2;
}
.fy-combat .intent-slot {
  flex: 0 0 34px;
  width: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  margin-bottom: 6px;
  min-height: 34px;
}
.fy-combat .foe-side .intent-slot {
  overflow: visible;
  z-index: 6;
}
.fy-combat .intent-wrap {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  max-width: 100%;
}
.fy-combat .foe-side .intent-big {
  position: relative;
  z-index: 4;
  margin: 0;
  white-space: nowrap;
  max-width: 100%;
  cursor: help;
  overflow: visible;
}
.fy-combat .intent-wrap .intent-tip {
  position: absolute;
  top: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  width: 12em;
  max-width: min(12em, 70vw);
  box-sizing: border-box;
  background: #1a1410;
  color: #f4ead6;
  border: 1px solid #d4b45a;
  padding: 6px 8px;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.4;
  white-space: normal;
  word-break: break-word;
  overflow-wrap: anywhere;
  opacity: 0;
  pointer-events: none;
  z-index: 50;
  transition: opacity 0.08s linear;
  text-align: left;
}
.fy-combat .intent-wrap:hover .intent-tip,
.fy-combat .intent-wrap:focus-within .intent-tip {
  opacity: 1;
  transition-delay: 0.2s;
}
.fy-combat .fy-stand-wrap {
  position: relative;
  width: 168px;
  height: min(236px, 32vh);
  flex: 0 0 auto;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.fy-combat .fy-stand-wrap.foe,
.fy-combat .fy-stand-wrap.you {
  width: 168px;
  height: min(236px, 32vh);
  padding-top: 0;
}
.fy-combat .fy-stand-wrap .stand {
  position: relative;
  z-index: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: contain;
  object-position: bottom center;
}
/* 双方共用墨渍底座 */
.fy-combat .fy-stand-wrap::after {
  content: "";
  position: absolute;
  left: 8%;
  right: 8%;
  bottom: 2px;
  height: 18px;
  background:
    radial-gradient(ellipse 70% 100% at 50% 80%, #0a0806ee 0%, #1a1410aa 42%, transparent 72%),
    radial-gradient(ellipse 40% 80% at 28% 90%, #1a1410cc 0%, transparent 70%),
    radial-gradient(ellipse 36% 70% at 72% 88%, #1a1410bb 0%, transparent 68%);
  pointer-events: none;
  z-index: 1;
}
.fy-combat .nameplate {
  width: 168px;
  box-sizing: border-box;
  margin: 8px 0 0;
  padding: 7px 10px 8px;
  background: #f4ead6;
  text-align: center;
}
.fy-combat .nameplate b {
  color: #1a1410;
  font-size: 18px;
  line-height: 1.2;
}
.fy-combat .foe-side .nameplate b { color: #8b2a24; }
.fy-combat .nameplate span {
  display: block;
  margin-top: 2px;
  color: #5a4030;
  font-size: 11px;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.fy-combat .hp-read {
  display: none;
}
.fy-combat .you-side .tech-list,
.fy-combat .you-side .swap-row {
  width: 168px;
  box-sizing: border-box;
  justify-content: center;
}
.fy-combat .bar {
  position: relative;
  width: 168px;
  height: 18px;
  margin: 8px 0 0;
  box-sizing: border-box;
  background: #2a221c;
  border: 2px solid #2a2018;
  overflow: hidden;
}
.fy-combat .bar.qi {
  height: 16px;
  margin-top: 5px;
  background: #3a3228;
}
.fy-combat .bar i {
  display: block;
  height: 100%;
  background: linear-gradient(180deg, #d2b896, #b89a6a 55%, #a88858);
  box-shadow: inset 0 -1px 0 #8a7048;
}
.fy-combat .bar.qi i {
  background: linear-gradient(90deg, #e8dcc4, #d2b896 55%, #c4a882);
}
.fy-combat .bar .bar-read {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #f4ead6;
  text-shadow: 0 1px 0 #1a1410, 0 0 2px #1a1410;
  pointer-events: none;
  font-variant-numeric: tabular-nums;
}
.fy-combat .bar.qi .bar-read {
  color: #2a2018;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.35);
}
.fy-combat .fy-top {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}
.fy-ink {
  margin: 0;
  font-family: "Noto Serif SC", serif;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 0.42em;
  text-indent: 0.42em;
  color: #8b2a24;
  text-shadow:
    0 0 0 #2a2018,
    1px 1px 0 #efe4cc,
    -1px 0 0 #2a2018,
    1px 0 0 #2a2018,
    0 1px 0 #2a2018;
}
.fy-combat .fy-stats { margin-left: 0; justify-self: end; }
.ear-btn {
  font: 12px/1 "Noto Serif SC", serif;
  padding: 4px 8px;
  border: 2px solid #2a2018;
  background: #efe4cc;
  color: #5a4030;
  cursor: pointer;
}
.ear-btn.on {
  background: #8b2a24;
  color: #f4ead6;
}
.fy-title .ear-btn {
  background: #1a1410;
  color: #c4b890;
  border-color: #5a4030;
}
.fy-title .ear-btn.on {
  background: #8b2a24;
  color: #f4ead6;
  border-color: #2a2018;
}
.settings-sheet .settings-block {
  margin: 14px 0 0;
  padding-top: 10px;
  border-top: 1px solid #cbb89688;
}
.settings-sheet .settings-block:first-of-type {
  border-top: 0;
  padding-top: 0;
}
.settings-label {
  font: 700 14px/1.2 "Noto Serif SC", serif;
  letter-spacing: 0.2em;
  color: #8b2a24;
  margin-bottom: 6px;
}
.settings-note {
  margin: 0 0 8px;
  font-size: 13px;
  color: #5a4030;
  line-height: 1.45;
}
.settings-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.diff-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.diff-pick {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  text-align: left;
  padding: 10px 12px;
  border: 2px solid #2a2018;
  background: #f6ecd8;
  color: #1a1410;
  cursor: pointer;
  font-family: "Noto Serif SC", serif;
}
.diff-pick b {
  letter-spacing: 0.18em;
  font-size: 15px;
}
.diff-pick span {
  font-size: 12px;
  color: #5a4030;
  line-height: 1.4;
}
.diff-pick.on {
  background: #8b2a24;
  color: #f4ead6;
}
.diff-pick.on span {
  color: #e8d8b8;
}
.save-toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  z-index: 40;
  padding: 8px 18px;
  font: 14px/1.3 "Noto Serif SC", serif;
  letter-spacing: 0.12em;
  color: #f4ead6;
  background: #1a1410ee;
  border: 2px solid #cbb896;
  pointer-events: none;
}
.fy-log {
  list-style: none;
  margin: 6px 0 0;
  padding: 4px 6px;
  max-height: 52px;
  overflow: auto;
  background: #efe4cc;
  border: 2px solid #2a2018;
  color: #1a1410;
  font-size: 11px;
  line-height: 1.35;
  text-align: left;
}
.fy-combat .draw-col .weapon-plate,
.fy-combat .foe-col .weapon-plate {
  width: 68px;
  margin-bottom: 2px;
}
.fy-combat .draw-col .weapon-plate .weapon-art,
.fy-combat .foe-col .weapon-plate .weapon-art {
  height: 72px;
}
.fy-combat .draw-col .weapon-caption,
.fy-combat .foe-col .weapon-caption {
  font-size: 10px;
  padding: 2px 1px 3px;
}
.pile-card {
  width: 72px;
  min-height: 92px;
  padding: 8px 6px;
  text-align: center;
  background:
    linear-gradient(#efe4cc, #e0d0b0);
  border: 2px solid #2a2018;
  color: #1a1410;
  box-shadow: 3px 3px 0 #cbb896, 6px 6px 0 #2a2018;
  cursor: pointer;
  font: inherit;
}
.pile-card:hover {
  background: #f4ead6;
}
.sheet-hint-inline {
  margin: 8px 0 0;
  color: #5a4030;
  font-size: 12px;
  cursor: pointer;
}
.fy-log li + li { margin-top: 2px; }
.fy-log li:last-child { color: #8b2a24; font-weight: 600; }
.pile-card em {
  display: block;
  font-style: normal;
  font-family: "Noto Serif SC", serif;
  font-size: 13px;
  letter-spacing: 0.12em;
}
.pile-card b {
  display: block;
  font-size: 26px;
  line-height: 1.1;
  margin: 4px 0 2px;
}
.pile-card small {
  display: block;
  font-size: 11px;
  color: #5a4030;
}
.pile-card.discard {
  box-shadow: -3px 3px 0 #cbb896, -6px 6px 0 #2a2018;
}
.fy-combat .cell {
  background: #e8dcc4cc;
  border: 2px solid #5a4030;
  min-height: 0;
  height: 158px;
  overflow: hidden;
}
.fy-combat .fig { width: 96px; }
.fy-combat .fig .stand.board,
.fy-combat .stand.board {
  width: 88px;
  height: 118px;
}
.fy-combat .cell.red { background: #e8c8bcc8; }
.fy-combat .cell.wall { background: #c4b8a0; }
.fy-combat .preview {
  background: #f4ead6cc;
  border: 2px solid #2a2018;
  color: #5a4030;
  min-height: 0;
  padding: 4px 10px;
  font-size: 13px;
  line-height: 1.25;
}
.fy-combat .preview.idle { color: #5a4030; }
.fy-combat .preview.live { border-color: #8b2a24; color: #8b2a24; }
.fy-combat .preview.bad { border-color: #8b2a24; color: #8b2a24; }
.fy-combat .bottombar {
  background: #e0d0b0ee;
  border-top: 3px solid #2a2018;
  grid-template-columns: 84px max-content minmax(0, 1fr) 88px max-content 84px;
  grid-template-areas:
    "draw youstat hand foepow foestat foe"
    "preview preview preview preview preview preview";
  padding: 6px 14px 4px;
  align-items: start;
  gap: 6px 8px;
}
.fy-combat .draw-col {
  grid-area: draw;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
}
.fy-combat .you-status { grid-area: youstat; }
.fy-combat .foe-status { grid-area: foestat; }
.fy-combat .foe-pow { grid-area: foepow; }
.fy-combat .pow-col {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  min-width: 88px;
  width: 88px;
  padding-bottom: 0;
  gap: 8px;
  align-self: start;
}
.fy-combat .foe-pow .endturn {
  width: 100%;
  min-height: 48px;
  height: auto;
  margin: 0;
  padding: 12px 10px;
  font-size: 18px;
  line-height: 1.2;
  letter-spacing: 0.28em;
}
.fy-combat .status-col {
  display: flex;
  flex-direction: column;
  gap: 4px;
  justify-content: flex-start;
  align-items: stretch;
  padding-top: 0;
  padding-bottom: 0;
  min-width: 7.5em;
  width: max-content;
  max-width: 14em;
  align-self: start;
}
.fy-combat .you-status {
  align-items: flex-start;
  justify-self: start;
}
.fy-combat .foe-status {
  align-items: flex-end;
  justify-self: end;
}
.fy-combat .status-col.empty { min-height: 1px; }
.fy-combat .status-chip {
  position: relative;
  background: #efe4cc;
  border: 2px solid #2a2018;
  color: #1a1410;
  padding: 5px 8px 4px;
  display: inline-flex;
  align-items: center;
  gap: 0.75em;
  font-size: 12px;
  line-height: 1.2;
  min-height: 28px;
  width: max-content;
  max-width: 100%;
  box-shadow: inset 0 0 0 1px #cbb896;
  box-sizing: border-box;
}
.fy-combat .status-chip b {
  font-weight: 700;
  letter-spacing: 0.04em;
  flex: 0 0 auto;
}
.fy-combat .status-chip em {
  font-style: normal;
  color: #8b2a24;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  flex: 0 0 auto;
  margin-left: 0;
}
.fy-combat .status-chip .status-tip {
  position: absolute;
  top: 50%;
  left: calc(100% + 8px);
  transform: translateY(-50%);
  width: 11.5em;
  max-width: 11.5em;
  box-sizing: border-box;
  background: #1a1410;
  color: #f4ead6;
  border: 1px solid #d4b45a;
  padding: 6px 8px;
  font-size: 12px;
  line-height: 1.4;
  font-weight: 500;
  white-space: normal;
  word-break: break-word;
  overflow-wrap: anywhere;
  opacity: 0;
  pointer-events: none;
  z-index: 40;
  transition: opacity 0.08s linear;
}
.fy-combat .foe-status .status-chip .status-tip {
  left: auto;
  right: calc(100% + 8px);
}
.fy-combat .status-chip:hover .status-tip {
  opacity: 1;
  transition-delay: 0.35s;
}
.fy-combat .hand {
  grid-area: hand;
  height: 196px;
  padding-top: 18px;
  gap: 0;
  justify-content: center;
  align-items: flex-end;
  align-self: end;
}
.fy-combat .foe-col {
  grid-area: foe;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
}
.fy-combat .card {
  height: 190px;
  width: 138px;
  overflow: hidden;
  margin: 0 0 0 -42px;
  z-index: calc(var(--i, 0) + 1);
}
.fy-combat .card:first-child {
  margin-left: 0;
}
.fy-combat .card:hover,
.fy-combat .card.hot {
  transform: translateY(-28px);
  z-index: 30;
}
.fy-combat .card.dead {
  z-index: calc(var(--i, 0) + 1);
}
.fy-combat .card.dead:hover {
  transform: none;
  z-index: calc(var(--i, 0) + 1);
}
.fy-combat .card .art { height: 52px; flex: 0 0 52px; }
.fy-combat .card h3 { font-size: 16px; padding: 2px 8px 0; flex: 0 0 auto; }
.fy-combat .card .text {
  font-size: 12px;
  line-height: 1.3;
  padding: 2px 8px 0;
  overflow: hidden;
  flex: 1 1 auto;
  min-height: 0;
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
}
.fy-combat .card .flavor {
  font-size: 10px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding: 2px 22px 6px 8px;
  flex: 0 0 auto;
}
.fy-combat .card .hotkey { z-index: 2; }
.fy-combat .pile-card { min-height: 0; height: 72px; width: 76px; }
.fy-combat .pile {
  background: #efe4cc;
  border: 2px solid #2a2018;
  color: #1a1410;
}
.fy-combat .energy {
  color: #8b2a24;
  padding-bottom: 0;
  flex-direction: column;
  align-items: center;
  flex-wrap: nowrap;
  gap: 4px;
}
.fy-combat .energy.across {
  flex-direction: column;
  flex-wrap: nowrap;
  padding: 0;
  gap: 4px;
}
.fy-combat .energy span {
  width: auto;
  text-align: center;
  font-size: 11px;
  letter-spacing: 0.06em;
  color: #5a4030;
  white-space: nowrap;
}
.fy-combat .energy .pips {
  display: flex;
  flex-direction: row;
  gap: 4px;
  justify-content: center;
}
.fy-combat .energy i {
  width: 12px;
  height: 12px;
  border-color: #8b2a24;
}
.fy-combat .energy i.on { background: #8b2a24; }
.foe-energy span { color: #5a4030; }
.card {
  background: linear-gradient(#efe4cc, #e8dcc4);
  border: 2px solid #2a2018;
  box-shadow: inset 0 0 0 1px #cbb896, 0 8px 16px #0003;
}
.card .cost {
  background: #8b2a24;
  color: #f4ead6;
  border-color: #2a2018;
  box-shadow: 0 0 0 2px #e8dcc4;
}
.card .art { background: #d8cbb0; border-color: #5a4030; }

.relic.on { border-color: #8b2a24; color: #8b2a24; }
.tech-list {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin: 6px 8px 0;
  justify-content: center;
}
.tech-chip {
  display: inline-block;
  padding: 2px 8px;
  border: 2px solid #2a2018;
  background: #efe4cc;
  color: #8b2a24;
  font-size: 12px;
  letter-spacing: 0.08em;
}
.kicker { color: #8b2a24; }

.atlas-hit {
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
  flex: 0 0 auto;
}
.sheet-mask {
  position: absolute;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  background: #120e0ccc;
}
.sheet-mask.atlas-mask {
  padding: 2vh 2vw;
}
.atlas-zoom-wrap {
  position: relative;
  width: min(70vw, 960px);
  height: min(70vh, 640px);
  display: grid;
  place-items: center;
}
.atlas-zoom-wrap canvas {
  width: 100%;
  height: 100%;
  background: #d4c6a4;
  border: 3px solid #2a2018;
  cursor: pointer;
  box-shadow: 0 8px 28px #00000066;
}
.atlas-zoom-hint {
  position: absolute;
  bottom: -28px;
  left: 0;
  right: 0;
  margin: 0;
  text-align: center;
  color: #f4ead6;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-shadow: 0 1px 2px #000;
  pointer-events: none;
}
.sheet-mask canvas {
  background: #d4c6a4;
  border: 3px solid #2a2018;
  cursor: pointer;
}
.flee {
  margin: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 10px;
  min-height: 28px;
  font-family: "Noto Serif SC", serif;
  font-size: 13px;
  letter-spacing: 0.18em;
  background: linear-gradient(165deg, #efe4cc, #e0d0b0);
  color: #5a4030;
  border: 2px solid #2a2018;
  cursor: pointer;
  box-shadow: inset 0 0 0 1px #cbb896aa;
}
.flee.top-flee {
  flex: 0 0 auto;
}
.flee:disabled {
  opacity: 0.4;
  cursor: default;
}
.flee:not(:disabled):hover {
  color: #8b2a24;
}
.fy-combat .flee.top-flee {
  margin-left: 2px;
}
.sheet-hint {
  position: absolute;
  bottom: 24px;
  color: #f4ead6;
  text-shadow: 0 1px 2px #000;
}
.sheet-panel {
  position: relative;
  width: min(420px, 90vw);
  background:
    linear-gradient(165deg, #f6ecd8 0%, #efe4cc 48%, #e4d4b4 100%);
  border: 3px solid #2a2018;
  box-shadow:
    inset 0 0 0 1px #cbb896aa,
    2px 2px 0 #1a141044;
  clip-path: polygon(2px 0, calc(100% - 2px) 0, 100% 2px, 100% calc(100% - 3px), calc(100% - 3px) 100%, 3px 100%, 0 calc(100% - 2px), 0 2px);
  padding: 18px 56px 18px 22px;
  color: #1a1410;
}
.sheet-close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  padding: 4px 12px;
  font-family: "Noto Serif SC", serif;
  font-size: 15px;
  letter-spacing: 0.18em;
  background: linear-gradient(165deg, #f6ecd8, #efe4cc);
  color: #8b2a24;
  border: 2px solid #2a2018;
  box-shadow: inset 0 0 0 1px #cbb896aa;
  cursor: pointer;
}
.sheet-mask > .sheet-close {
  top: 18px;
  right: 18px;
  background: #efe4cc;
}
.pile-sheet {
  width: min(440px, 78vw);
  max-height: min(520px, 70vh);
  overflow: auto;
  padding: 14px 18px 16px;
}
.pile-sheet h2 {
  font-size: 22px;
  letter-spacing: 0.24em;
  margin: 2px 0 6px;
}
.pile-sheet > p {
  margin: 0 0 10px;
  font-size: 15px;
  color: #2a2018;
}
.pile-sheet .pack-list {
  margin: 0 0 8px;
}
.pile-sheet .pack-list li {
  margin: 0 0 8px;
  font-size: 16px;
}
.pile-sheet .pack-list li b {
  font-size: 17px;
}
.pile-sheet .pack-list li span {
  font-size: 14px;
  color: #2a2018;
}
.pack-list {
  margin: 8px 0 16px;
  padding-left: 1.2em;
}
.pack-list li span {
  display: block;
  color: #5a4030;
  font-size: 13px;
}
.pack-currency {
  display: flex;
  gap: 12px;
  align-items: center;
  margin: 6px 0 10px;
}
.tongbao-chip {
  font-size: 14px;
  letter-spacing: 0.08em;
  color: #5a3018;
  border: 1px solid #8a5a28;
  padding: 2px 8px;
  background: linear-gradient(180deg, #f0d8a8, #e0c078);
}
.tongbao-chip b {
  margin-left: 4px;
}
.bag-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: 8px 0 12px;
}
.bag-cell {
  position: relative;
  min-height: 64px;
  border: 2px solid #2a2018;
  background: #efe4ce;
  font: inherit;
  cursor: pointer;
  padding: 6px 4px 8px;
  text-align: center;
  color: #2a2018;
}
.bag-cell.empty {
  opacity: 0.35;
  cursor: default;
  background: #e8dcc4;
}
.bag-cell i {
  display: block;
  width: 28px;
  height: 28px;
  margin: 0 auto 4px;
  border: 2px solid #2a2018;
  background: #c4a574;
}
.bag-cell .bag-art {
  display: block;
  width: 40px;
  height: 40px;
  margin: 0 auto 4px;
  border: none;
  background: transparent;
  object-fit: contain;
  image-rendering: auto;
}
.bag-cell b {
  display: block;
  font-size: 12px;
  letter-spacing: 0.06em;
}
.bag-cell em {
  display: block;
  font-style: normal;
  font-size: 12px;
  color: #5a4030;
}
.bag-fight-btn .bag-art,
.bag-art-sm {
  width: 22px;
  height: 22px;
  border: none;
  background: transparent;
  object-fit: contain;
  flex: 0 0 auto;
}
.bag-ico-herb i { background: #6a8a4a; }
.bag-ico-hide i { background: #8a6040; }
.bag-ico-sulfur i { background: #d4c040; }
.bag-ico-charcoal i { background: #3a3a38; }
.bag-ico-nitre i { background: #d8d8d0; }
.bag-ico-salve i { background: #c05050; }
.bag-ico-dart i { background: #708090; }
.bag-ico-powder i { background: #c06030; }
.bag-ico-tonic i { background: #5078a0; }
.bag-ico-greens i { background: #4a9a4a; }
.bag-ico-dish i { background: #b87838; }
.bag-ico-copper i { background: #b06030; }
.bag-ico-silk i { background: #c8a0b0; }
.pack-hint,
.pack-note {
  margin: 0 0 10px;
  font-size: 13px;
  color: #5a4030;
}
.bag-fight {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  align-items: center;
  margin-top: 6px;
}
.bag-fight.muted {
  font-size: 12px;
  color: #6a5848;
}
.bag-fight small {
  font-size: 11px;
  color: #6a5848;
}
.bag-fight-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: 1px solid #2a2018;
  background: #efe4ce;
  font: inherit;
  font-size: 12px;
  padding: 2px 6px;
  cursor: pointer;
}
.pack-btn {
  cursor: pointer;
  border: 2px solid #2a2018;
  background: #f4ead6;
  font: inherit;
}
.swap-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}
.swap-btn {
  font: inherit;
  font-size: 12px;
  padding: 4px 8px;
  border: 2px solid #2a2018;
  background: #efe4cc;
  cursor: pointer;
}
.swap-btn small { display: block; color: #5a4030; }
.swap-btn:disabled { opacity: 0.45; cursor: default; }
.pile-read {
  min-width: 52px;
  text-align: center;
  font-weight: 700;
  color: #1a1410;
}
.pile-read small { display: block; font-weight: 400; font-size: 11px; color: #5a4030; }
.fy-combat .pile-read { color: #1a1410; }


/* —— ink combat / silver / journal —— */
.ink-combat .ink-frame {
  border: 3px solid #2a2018;
  background:
    linear-gradient(165deg, #2a221c 0%, #14100c 55%, #1a1410 100%);
  box-shadow:
    inset 0 0 0 1px #cbb89688,
    2px 3px 0 #1a141066;
  /* 水墨斜切，别方方正正 */
  clip-path: polygon(
    4px 0,
    calc(100% - 7px) 0,
    100% 5px,
    100% calc(100% - 9px),
    calc(100% - 6px) 100%,
    8px 100%,
    0 calc(100% - 6px),
    0 6px
  );
}
.ink-combat .ink-plate {
  border: 2px solid #2a2018;
  background: linear-gradient(180deg, #f6ecd8 0%, #efe4cc 100%);
  box-shadow:
    inset 0 0 0 1px #cbb896aa,
    1px 2px 0 #1a141044;
  clip-path: polygon(
    3px 0,
    calc(100% - 5px) 0,
    100% 3px,
    100% calc(100% - 4px),
    calc(100% - 4px) 100%,
    5px 100%,
    0 calc(100% - 3px),
    0 4px
  );
}
.ink-combat .bar {
  height: 18px;
  border: 2px solid #2a2018;
  background: #120e0c;
  box-shadow: inset 0 0 0 1px #5a4a38;
  clip-path: polygon(
    2px 0,
    calc(100% - 4px) 0,
    100% 2px,
    100% calc(100% - 2px),
    calc(100% - 3px) 100%,
    3px 100%,
    0 calc(100% - 2px),
    0 2px
  );
  overflow: hidden;
}
.ink-combat .bar i {
  height: 100%;
  background: linear-gradient(90deg, #a88858, #c4a882 50%, #d2b896);
  box-shadow: inset 0 -1px 0 #7a6040;
}
.ink-combat .bar.danger i {
  background: linear-gradient(90deg, #9a7850, #b89a6a 50%, #c4a882);
}
.ink-combat .bar.qi {
  height: 16px;
}
.ink-combat .bar.qi i {
  background: linear-gradient(90deg, #e8dcc4, #d2b896 55%, #c4a882);
}
.ink-combat .ink-intent {
  position: relative;
  border: 2px solid #5a2018;
  box-shadow: 2px 2px 0 #1a1410;
  cursor: help;
}
.ink-combat .ink-intent::before {
  content: "";
  position: absolute;
  inset: 0;
  clip-path: polygon(
    2px 0,
    calc(100% - 4px) 0,
    100% 3px,
    100% calc(100% - 2px),
    calc(100% - 3px) 100%,
    4px 100%,
    0 calc(100% - 3px),
    0 2px
  );
  pointer-events: none;
}
.ink-combat .hand .card {
  border: 3px solid #2a2018;
  box-shadow: 3px 3px 0 rgba(0,0,0,0.35);
  clip-path: polygon(
    2px 0,
    calc(100% - 3px) 0,
    100% 2px,
    100% calc(100% - 4px),
    calc(100% - 3px) 100%,
    3px 100%,
    0 calc(100% - 3px),
    0 2px
  );
}
.journal-list li.j-you span { color: #e8dcc4; }
.journal-list li.j-foe span { color: #e24a3a; }
.journal-list li b {
  display: inline-block;
  min-width: 1.5em;
  margin-right: 6px;
  color: var(--gold);
}
/* 战记开在羊皮纸面板上：我方用墨色，敌方用硃砂，避免浅色糊掉 */
.pile-sheet .journal-list li {
  color: #1a1410;
}
.pile-sheet .journal-list li.j-you b,
.pile-sheet .journal-list li.j-you span {
  color: #1a1410;
}
.pile-sheet .journal-list li.j-foe b,
.pile-sheet .journal-list li.j-foe span {
  color: #8b2a24;
}
.pile-sheet .pack-list li span {
  color: #2a2018;
}
.foe-energy i { background: #3d2018; }
.foe-energy i.on { background: #e24a3a; }
.foe-energy span { color: #e8b4a4; }
.weapon-chip {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--cream);
  margin-bottom: 4px;
  max-width: 120px;
}
.weapon-glyph {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  border: 2px solid #2a2018;
  background: #cbb896;
  box-shadow: inset 0 0 0 1px #8a7d68;
}
.weapon-glyph.school-palm { background: #cbb896; }
.weapon-glyph.school-saber { background: #b43228; }
.weapon-glyph.school-spear { background: #3d6b48; }
.weapon-glyph.school-sword { background: #6a9ad8; }
.weapon-glyph.school-staff { background: #8a6a40; }
.weapon-glyph.school-hook { background: #5a4a68; }
.silver-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 10px;
  box-sizing: border-box;
  background:
    linear-gradient(165deg, #f6ecd8 0%, #f4ead6 50%, #e8dcc4 100%);
  border: 2px solid #2a2018;
  box-shadow:
    inset 0 0 0 1px #cbb896aa,
    1px 1px 0 #1a141055;
  clip-path: polygon(1.5px 0, calc(100% - 1.5px) 0, 100% 1.5px, 100% calc(100% - 2px), calc(100% - 2px) 100%, 2px 100%, 0 calc(100% - 1.5px), 0 1.5px);
  font-family: "Noto Serif SC", serif;
  font-size: 14px;
  font-weight: 700;
  color: #6a4020;
  line-height: 1;
}
.silver-chip .coin-ico,
.silver-chip .ico {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  color: #8a6a28;
}
.silver-chip b {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: #3a2418;
}
.fy-combat .silver-chip {
  height: 30px;
  background: #2a221c;
  border-color: #cbb896;
  color: #d4b45a;
  box-shadow: inset 0 0 0 1px #5a4a38;
  clip-path: none;
}
.fy-combat .silver-chip .coin-ico,
.fy-combat .silver-chip .ico {
  color: #d4b45a;
}
.fy-combat .silver-chip b {
  color: #e8dcc4;
}
.status .chip.bury {
  border-color: var(--cinnabar-2);
  color: var(--cinnabar-2);
  font-weight: 700;
}

.weapon-art-wrap {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  width: 56px;
  flex: 0 0 56px;
  gap: 2px;
}
.weapon-art {
  width: 100%;
  height: 84px;
  display: block;
  object-fit: cover;
  object-position: center;
}
.weapon-art-empty {
  background: #1a1410;
  border: 2px solid #2a2018;
  height: 84px;
}
.weapon-plate {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: 76px;
  height: auto;
  margin: 0 auto 6px;
  padding: 0;
  border: 3px solid #2a2018;
  background: #1a1410;
  box-shadow:
    inset 0 0 0 1px #cbb896,
    1px 1px 0 #1a141066;
  clip-path: polygon(2px 0, calc(100% - 2px) 0, 100% 2px, 100% calc(100% - 2.5px), calc(100% - 2.5px) 100%, 2.5px 100%, 0 calc(100% - 2px), 0 2px);
  cursor: pointer;
  overflow: hidden;
}
.weapon-plate:hover {
  border-color: #8b2a24;
}
.weapon-plate .weapon-art {
  width: 100%;
  height: 96px;
  object-fit: cover;
  object-position: center top;
}
.weapon-grade {
  position: absolute;
  top: 4px;
  right: 4px;
  z-index: 1;
  min-width: 1.4em;
  padding: 1px 4px;
  font: 700 11px/1.2 "Noto Serif SC", serif;
  text-align: center;
  color: #f4ead6;
  background: #8b2a24;
  border: 1.5px solid #2a2018;
  font-style: normal;
  pointer-events: none;
}
.weapon-caption {
  display: block;
  padding: 3px 2px 4px;
  font: 700 11px/1.2 "Noto Serif SC", serif;
  letter-spacing: 0.06em;
  color: #f4ead6;
  background: #1a1410;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.weapon-art-wrap .weapon-grade,
.weapon-art-wrap .weapon-caption {
  display: none;
}
.weapon-sheet {
  width: min(360px, 86vw);
  text-align: center;
}
.weapon-sheet-art {
  position: relative;
  width: 140px;
  height: 210px;
  margin: 8px auto 12px;
  border: 3px solid #2a2018;
  box-shadow: inset 0 0 0 1px #cbb896;
  overflow: hidden;
  background: #1a1410;
}
.weapon-sheet-art .weapon-art {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.weapon-sheet-art .weapon-grade {
  top: 8px;
  right: 8px;
  font-size: 14px;
  padding: 2px 6px;
}
.weapon-sheet-art .weapon-caption {
  display: none;
}
.weapon-school {
  color: #8b2a24;
  letter-spacing: 0.18em;
  margin: 0 0 8px;
}
.weapon-chip {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--cream);
  margin-bottom: 4px;
  max-width: 140px;
}
.weapon-chip span {
  line-height: 1.2;
}
.weapon-row {
  display: flex;
  gap: 10px;
  align-items: center;
}
.weapon-row .weapon-art-wrap {
  width: 48px;
  height: 72px;
  flex: 0 0 48px;
}
.weapon-row div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.actor.cargo-follow {
  z-index: 4;
  pointer-events: none;
  opacity: 0.95;
}
.actor.cargo-follow .ink-prop {
  transform: scale(0.72);
  transform-origin: bottom center;
}

.pill-pick {
  margin: 10px 0;
  padding: 10px;
  border: 2px solid #2a2018;
  background: #f4ead6;
}
.pill-pick p { margin: 0 0 8px; color: #1a1410; font-size: 14px; }
.pill-mates {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
}
.pill-mate {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  padding: 8px 10px;
  border: 2px solid #2a2018;
  background: #efe4cc;
  cursor: pointer;
  font: inherit;
  color: #1a1410;
}
.pill-mate small { color: #5a4030; font-size: 11px; }
.pill-mate:hover { background: #e8dcc4; }
