:root {
  --panel: rgba(24, 18, 26, 0.88);
  --panel2: rgba(40, 30, 44, 0.9);
  --line: rgba(255, 255, 255, 0.1);
  --text: #eee3d6;
  --dim: #a8998c;
  --accent: #ff5a3c;
  --evil: #c04ade;
  --god: #7a6cff;
  --good: #5fd068;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; overflow: hidden; background: #141026; color: var(--text);
  font-family: 'Segoe UI', system-ui, sans-serif; font-size: 13px; }
button { font-family: inherit; }

#view { position: fixed; inset: 0; width: 100vw; height: 100vh; display: block; cursor: pointer; }
#overlay { position: fixed; inset: 0; pointer-events: none; overflow: hidden;
  background: radial-gradient(ellipse at center, transparent 55%, rgba(10, 5, 20, 0.45) 100%); }

.simLabel { position: absolute; left: 0; top: 0; display: flex; flex-direction: column; align-items: center;
  margin-left: -60px; width: 120px; margin-top: -46px; }
.simLabel .nm { font-size: 11px; font-weight: 600; color: #fff; text-shadow: 0 1px 3px #000, 0 0 2px #000; }
.simLabel.selected .nm { color: #7dff9a; }
.simLabel.visitor .nm { color: #9ad8ff; font-style: italic; }
.simLabel .thought { background: #fff; color: #000; border-radius: 14px; padding: 2px 8px; font-size: 15px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.4); margin-bottom: 2px; position: relative; }
.simLabel .thought::after { content: ''; position: absolute; bottom: -5px; left: 50%; margin-left: -4px;
  border: 4px solid transparent; border-top-color: #fff; border-bottom: 0; }
.objMark { position: absolute; left: 0; top: 0; margin: -12px 0 0 -10px; font-size: 16px; filter: drop-shadow(0 0 4px #b04ae0);
  animation: pulse 0.9s infinite alternate; }
.popup { position: absolute; left: 0; top: 0; font-weight: 800; font-size: 18px; margin-left: -20px;
  text-shadow: 0 2px 4px #000; }

#topbar { position: fixed; top: 8px; left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 14px;
  background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 6px 12px; white-space: nowrap; }
#topbar .brand { font-weight: 800; color: var(--accent); font-size: 15px; }
#topbar #score { color: #ffd166; font-weight: 700; }
#topbar .group { display: flex; gap: 4px; }
#topbar button { background: var(--panel2); color: var(--text); border: 1px solid var(--line); border-radius: 7px;
  padding: 4px 9px; cursor: pointer; }
#topbar button:hover { border-color: var(--accent); }
#topbar button.active { background: var(--accent); color: #fff; }

#portraits { position: fixed; top: 60px; left: 10px; display: flex; flex-direction: column; gap: 8px; }
.portrait { width: 46px; height: 46px; border-radius: 50%; border: 3px solid; display: flex; align-items: center; justify-content: center;
  cursor: pointer; position: relative; font-size: 18px; color: #fff; text-shadow: 0 1px 2px #000; overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.5); transition: transform 0.15s; }
.portrait:hover { transform: scale(1.08); }
.portrait.sel { outline: 3px solid #7dff9a; outline-offset: 2px; }
.portrait.dead { filter: grayscale(1) brightness(0.5); cursor: default; }
.portrait i { position: absolute; bottom: 0; left: 0; height: 5px; background: #ff4d4d; }

#queue { position: fixed; top: 60px; left: 70px; display: flex; gap: 6px; }
.qItem { position: relative; background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 5px 24px 5px 8px;
  display: flex; align-items: center; gap: 5px; overflow: hidden; max-width: 190px; }
.qItem.current { border-color: #7dff9a; }
.qItem.auto { opacity: 0.7; font-style: italic; }
.qItem .qi { font-size: 16px; }
.qItem .ql { font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.qItem i { position: absolute; left: 0; bottom: 0; height: 3px; background: #7dff9a; }
.qItem button { position: absolute; right: 3px; top: 50%; transform: translateY(-50%); background: none; border: none;
  color: var(--dim); cursor: pointer; font-size: 12px; }
.qItem button:hover { color: var(--accent); }

#simPanel { position: fixed; left: 10px; bottom: 10px; width: 470px; background: var(--panel); border: 1px solid var(--line);
  border-radius: 12px; padding: 10px 12px; }
#simPanel .empty { color: var(--dim); font-style: italic; }
.spHead { display: flex; align-items: center; gap: 8px; font-size: 16px; }
.spHead .dot { width: 14px; height: 14px; border-radius: 50%; }
.traits { display: flex; gap: 6px; margin: 6px 0 2px; }
.trait { background: var(--panel2); border: 1px solid var(--line); border-radius: 10px; padding: 2px 8px; font-size: 11px; cursor: help; }
.flags { color: #ffb347; font-size: 12px; min-height: 16px; margin-bottom: 4px; font-weight: 600; }
.cols { display: flex; gap: 14px; }
.col { flex: 1; min-width: 0; }
.bar { display: flex; align-items: center; gap: 6px; margin: 3px 0; }
.bar .bl { width: 78px; font-size: 11px; color: var(--dim); }
.track { flex: 1; height: 8px; background: rgba(0,0,0,0.45); border-radius: 4px; overflow: hidden; }
.fill { height: 100%; border-radius: 4px; transition: width 0.2s; }
.fill.ok { background: linear-gradient(90deg, #4fbf5a, #8be07a); }
.fill.low { background: linear-gradient(90deg, #d9442b, #ff8a4a); }
.fill.health { background: linear-gradient(90deg, #b3261e, #ff5a5a); }
.fill.evil { background: linear-gradient(90deg, #6a2a8a, #c04ade); }
.fill.sanity { background: linear-gradient(90deg, #2a6a9a, #5ac8e0); }
.trait.persona { background: #3a1d44; border-color: #8a3aa8; color: #f0d2ff; font-weight: 600; }
.trait.immortal { background: #3d3510; border-color: #c9a13b; color: #ffe07a; font-weight: 600; }
.modalBox button:disabled { opacity: 0.4; cursor: not-allowed; filter: none; }
.skills { font-size: 11px; color: var(--dim); margin: 3px 0 6px; display: flex; flex-wrap: wrap; gap: 2px 8px; }
.career { margin-top: 8px; padding-top: 7px; border-top: 1px solid var(--line); font-size: 12px; }
.career .jobRow { display: flex; justify-content: space-between; margin-bottom: 4px; }
.career .jobRow span { color: #8fe38a; font-weight: 700; }
.career .perfRow { display: flex; align-items: center; gap: 6px; }
.career .perfRow em { width: 26px; text-align: right; font-style: normal; }
.susFill.perf { background: linear-gradient(90deg, #4f8fbf, #7ad0ff); }
.career .jobState, .career .rentRow { color: var(--dim); margin-top: 4px; }
.career .urgent { color: #ff7a5c; font-weight: 700; }
.recruit .jobLine { font-size: 11px; color: #8fe38a; margin: 4px 0; }
.portrait.away { opacity: 0.45; }
.relTitle { font-size: 11px; color: var(--accent); margin-bottom: 2px; }
.rel { display: flex; align-items: center; gap: 6px; font-size: 11px; margin: 2px 0; }
.rel span { width: 70px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rel em { width: 28px; text-align: right; color: var(--dim); font-style: normal; }
.rtrack { flex: 1; height: 7px; background: rgba(0,0,0,0.45); border-radius: 4px; position: relative; }
.rtrack::after { content: ''; position: absolute; left: 50%; top: -1px; bottom: -1px; width: 1px; background: var(--dim); }
.rfill { position: absolute; top: 0; bottom: 0; }
.rfill.pos { background: #5fd068; }
.rfill.neg { background: #e0443b; }

#sidebar { position: fixed; right: 10px; top: 60px; bottom: 10px; width: 300px; background: var(--panel); border: 1px solid var(--line);
  border-radius: 12px; padding: 10px; display: flex; flex-direction: column; }
.sideTitle { color: var(--accent); font-weight: 700; margin: 2px 0 6px; }
#deaths { display: flex; gap: 6px; margin-bottom: 12px; }
.cause { width: 34px; height: 34px; border-radius: 8px; background: rgba(0,0,0,0.4); display: flex; align-items: center; justify-content: center;
  font-size: 18px; filter: grayscale(1) opacity(0.35); cursor: help; border: 1px solid var(--line); }
.cause.ever { filter: grayscale(0.4) opacity(0.7); }
.cause.now { filter: none; border-color: var(--accent); box-shadow: 0 0 8px rgba(255,90,60,0.5); }
#log { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 4px; font-size: 12px; }
.logLine { color: var(--dim); line-height: 1.35; }
.logLine .ts { color: #6d6070; font-size: 10px; }
.logLine.evil { color: #d79be8; }
.logLine.tool { color: #9d94ff; }
.logLine.death { color: #ff7a5c; font-weight: 700; }
.logLine.dim { color: #8a7d74; }

#pie { position: fixed; width: 0; height: 0; z-index: 5; }
#pie.hidden { display: none; }
.pieTitle { position: absolute; transform: translate(-50%, -50%); background: rgba(0,0,0,0.8); padding: 5px 10px; border-radius: 10px;
  white-space: nowrap; font-weight: 700; color: #ffd166; pointer-events: none; }
.pieItem { position: absolute; transform: translate(-50%, -50%); white-space: nowrap; background: #f4efe6; color: #222; border: 2px solid #fff;
  border-radius: 16px; padding: 6px 12px; cursor: pointer; font-size: 13px; box-shadow: 0 3px 10px rgba(0,0,0,0.45);
  animation: pop 0.14s ease-out; }
.pieItem:hover { background: #fff; transform: translate(-50%, -50%) scale(1.07); border-color: #7dff9a; }
.pieItem.evil { background: #3a1d44; color: #f0d2ff; border-color: #8a3aa8; }
.pieItem.evil:hover { background: #5a2a6a; border-color: #e07aff; }
.pieItem.god { background: #232050; color: #d6d2ff; border-color: #5a52d8; }
.pieItem.god:hover { background: #33307a; }
@keyframes pop { from { opacity: 0; transform: translate(-50%, -50%) scale(0.6); } }

#toast { position: fixed; top: 64px; left: 50%; transform: translateX(-50%); background: rgba(120, 20, 20, 0.92); color: #fff;
  font-weight: 700; font-size: 16px; padding: 10px 20px; border-radius: 12px; opacity: 0; pointer-events: none; }
#toast.show { animation: toast 3.5s ease-out; }
@keyframes toast { 0% { opacity: 0; transform: translate(-50%, -10px); } 8%, 80% { opacity: 1; transform: translate(-50%, 0); } 100% { opacity: 0; } }

.modal { position: fixed; inset: 0; background: rgba(8, 5, 12, 0.72); display: flex; align-items: center; justify-content: center; z-index: 10; }
.modal.hidden { display: none; }
.modalBox { background: #1e1622; border: 2px solid var(--accent); border-radius: 14px; padding: 22px 26px; max-width: 560px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.6); }
.modalBox h1 { color: var(--accent); margin: 0 0 10px; font-size: 24px; }
.modalBox .goal { color: #ffd166; font-weight: 700; }
.modalBox ul { padding-left: 18px; line-height: 1.5; }
.modalBox .keys { color: var(--dim); font-size: 12px; }
.godTag { background: #232050; color: #d6d2ff; border-radius: 6px; padding: 1px 6px; }
.modalBox button { margin-top: 10px; background: var(--accent); color: #fff; border: none; padding: 10px 20px; border-radius: 8px;
  font-size: 15px; font-weight: 700; cursor: pointer; }
.modalBox button:hover { filter: brightness(1.15); }

#topbar #cash { color: #8fe38a; font-weight: 700; }
#skipBanner { position: fixed; top: 60px; left: 50%; transform: translateX(-50%); z-index: 30; padding: 7px 16px; border-radius: 999px;
  background: rgba(20, 16, 38, 0.92); color: #cfe3ff; border: 1px solid rgba(122, 108, 255, 0.6); font: 600 13px 'Segoe UI', system-ui, sans-serif;
  cursor: pointer; box-shadow: 0 4px 18px rgba(0, 0, 0, 0.4); }
#skipBanner small { color: var(--dim); font-weight: 400; }
#skipBanner.hidden { display: none; }
#topbar #cash.broke { color: #ff6b5a; }
.logLine.warn { color: #ffb347; font-weight: 600; }

/* pie extras */
.pieItem small { display: block; font-size: 10px; opacity: 0.8; margin-top: 1px; }
.pieItem.warn { border-color: #ffb347; }
.pieItem.warn small { color: #ffb347; opacity: 1; font-weight: 700; }
.pieItem:disabled { opacity: 0.45; cursor: not-allowed; }

/* trap palette */
#trapBar { position: fixed; bottom: 10px; left: 50%; transform: translateX(-50%); display: flex; gap: 5px; align-items: center;
  background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 6px 8px; }
#trapBar:empty { display: none; }
#trapBar .barLabel { font-size: 11px; color: #9d94ff; font-weight: 700; margin-right: 4px; writing-mode: horizontal-tb; }
#trapBar button { display: flex; flex-direction: column; align-items: center; gap: 1px; width: 46px; padding: 4px 0; border-radius: 9px;
  background: #232050; border: 1px solid #3d3790; color: #d6d2ff; cursor: pointer; }
#trapBar button:hover { border-color: #9d94ff; transform: translateY(-2px); }
#trapBar button.armed { background: #5a52d8; border-color: #fff; box-shadow: 0 0 12px rgba(157, 148, 255, 0.8); }
#trapBar button.broke { opacity: 0.4; }
#trapBar .ti { font-size: 19px; }
#trapBar .tc { font-size: 9px; opacity: 0.85; }
#trapHint { position: fixed; bottom: 74px; left: 50%; transform: translateX(-50%); background: rgba(35, 32, 80, 0.95); color: #fff;
  border: 1px solid #9d94ff; border-radius: 10px; padding: 6px 12px; font-size: 13px; white-space: nowrap; }
#trapHint.hidden { display: none; }

/* contract HUD */
#contractHud { margin-bottom: 10px; }
#contractHud:empty { display: none; }
.hudTitle { font-weight: 800; color: #ffd166; font-size: 14px; margin-bottom: 3px; }
.deadline { font-size: 12px; color: var(--dim); margin-bottom: 4px; }
.deadline.urgent { color: #ff7a5c; font-weight: 700; }
.getaway { border: 1px solid #ff6a5a; border-radius: 8px; padding: 7px 8px; margin: 4px 0 8px; background: rgba(255, 90, 70, 0.08); font-size: 12px; }
.getaway .gaTitle { font-weight: 800; color: #ff7a5c; }
.getaway .gaPolice { color: #9fc4ff; font-weight: 700; margin: 2px 0; }
.getaway ul.objs { margin: 4px 0; }
.getaway li[data-cell] { cursor: pointer; }
.getaway li[data-cell]:hover { color: #fff; }
.getaway .gaRisk { color: #ffb36b; margin: 4px 0 6px; }
.getaway .gaRisk.safe { color: #7dff9a; }
.getaway .runBtn { width: 100%; padding: 6px 8px; border: 0; border-radius: 6px; background: #d9534a; color: #fff; font-weight: 800; cursor: pointer; }
.getaway .runBtn:hover:not(:disabled) { background: #ef6a5f; }
.getaway .runBtn:disabled { background: #4a3a3e; color: #9b8f95; }
.getaway .gaNote { display: block; color: var(--dim); margin-top: 3px; }
ul.objs { list-style: none; padding: 0; margin: 4px 0 8px; font-size: 12px; line-height: 1.55; }
ul.objs li.done { color: #7dff9a; }
ul.objs li.failed { color: #ff6a5a; text-decoration: line-through; }
ul.objs li.bonus { color: #ffd166; }
ul.objs li.missed { color: #6d6070; }
ul.objs li small { color: var(--dim); }
.recruit.self { opacity: 0.3; pointer-events: none; }
.bestLine { color: #ffd166; font-size: 12px; margin: 4px 0 0; }
.bestLine small { color: var(--dim); }
.personCard { grid-column: 1 / -1; font-size: 12px; line-height: 1.5; margin: -6px 0 4px; padding: 8px 10px; border-radius: 8px;
  background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.1); color: #e8e2f0; }
.personCard .pcRow { margin: 2px 0; }
.personCard .pcRow small { color: var(--dim); }
.pcTag { display: inline-block; margin: 1px 4px 1px 0; padding: 1px 7px; border-radius: 999px; background: rgba(255, 255, 255, 0.08); font-size: 11px; }
.pcTag.good { background: rgba(125, 255, 154, 0.16); color: #9dffb3; }
.pcTag.meh { background: rgba(255, 209, 102, 0.16); color: #ffd98a; }
.pcTag.bad { background: rgba(255, 106, 90, 0.18); color: #ff9a8e; }
#choiceOptions { display: grid; gap: 8px; margin-top: 12px; }
.diffRow { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 4px 0 14px; }
.diffRow .diffLabel { font-weight: 700; margin-right: 4px; }
.diffRow button { padding: 6px 12px; opacity: 0.6; }
.diffRow button.on { opacity: 1; outline: 2px solid #dde8a9; }
.diffRow small { flex-basis: 100%; color: var(--dim); }
.hudTitle small { font-size: 14px; }
ul.objs li.house { color: #b8c7ff; }
.intel.house small { display: block; color: var(--dim); margin-top: 3px; }
.personCard .pcRow.role { color: #b8c7ff; font-weight: 600; }
.personCard .pcRow.plan { color: #ffb38a; font-weight: 600; }
.choiceBtn { text-align: left; padding: 10px 12px; }
.choiceBtn small { display: block; font-size: 11px; opacity: 0.75; font-weight: 400; margin-top: 2px; }
.recruit .jobLine small { color: var(--dim); }
ul.objs li.extra { color: var(--dim); }
ul.objs.extras b { color: #ffd166; }
.susRow { display: flex; align-items: center; gap: 6px; font-size: 12px; }
.susRow em { width: 26px; text-align: right; font-style: normal; font-weight: 700; }
.susTrack { flex: 1; height: 9px; background: rgba(0,0,0,0.45); border-radius: 5px; position: relative; overflow: hidden; }
.susTrack i { position: absolute; top: 0; bottom: 0; width: 1px; background: rgba(255,255,255,0.35); }
.susFill { height: 100%; background: linear-gradient(90deg, #4fbf5a, #c9d44a); transition: width 0.3s; }
.susFill.warm { background: linear-gradient(90deg, #d9a42b, #ff8a4a); }
.susFill.hot { background: linear-gradient(90deg, #d9442b, #ff2a2a); animation: pulse 0.8s infinite alternate; }
@keyframes pulse { to { filter: brightness(1.4); } }

/* contracts board */
.modalBox.wide { max-width: 900px; width: calc(100vw - 40px); max-height: calc(100vh - 40px); overflow-y: auto; }
.modalBox .sub { color: var(--dim); margin-top: -4px; }
.resumeRow { margin-bottom: 10px; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 10px; margin: 12px 0; }
.card { background: var(--panel2); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; display: flex; flex-direction: column; gap: 5px; }
.card.done { border-color: rgba(255, 209, 102, 0.5); }
.card.locked { opacity: 0.45; }
.card.free { border-style: dashed; }
.cardHead { display: flex; justify-content: space-between; gap: 8px; }
.stars { color: #ffd166; letter-spacing: 1px; white-space: nowrap; }
.client { font-size: 11px; color: var(--accent); }
.brief { font-size: 12px; color: var(--text); flex: 1; line-height: 1.4; }
.cardFoot { display: flex; justify-content: space-between; align-items: center; font-size: 11px; color: var(--dim); }
.modalBox .card button, .modalBox .resumeRow button { margin: 0; padding: 6px 12px; font-size: 13px; }
details#howTo summary { cursor: pointer; color: #ffd166; font-weight: 700; }

/* black market + crew picker */
#topbar #money { color: #ffd166; font-weight: 700; }
.marketTitle { display: flex; align-items: center; gap: 12px; color: #d6d2ff; font-size: 18px; margin: 18px 0 8px; }
.wallet { font-size: 13px; color: #ffd166; font-weight: 700; }
.market { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 8px; }
.shopItem { display: flex; align-items: center; gap: 8px; background: #1d1a3a; border: 1px solid #3d3790; border-radius: 10px; padding: 7px 10px; }
.shopItem.owned { opacity: 0.55; }
.shopItem .si { font-size: 24px; }
.shopItem .sn { flex: 1; min-width: 0; }
.shopItem .sn small { display: block; color: var(--dim); font-size: 11px; line-height: 1.3; }
.modalBox .shopItem button { margin: 0; padding: 5px 10px; font-size: 12px; background: #5a52d8; white-space: nowrap; }
.modalBox .shopItem button:disabled { background: #333; cursor: not-allowed; }
.shopItem .got { font-size: 12px; color: #7dff9a; font-weight: 700; }
.req { font-size: 11px; color: #ffb347; }
.intelRow { display: flex; gap: 8px; flex-wrap: wrap; margin: 8px 0; }
.intel { background: #3a1616; border: 1px solid #a8412e; border-radius: 10px; padding: 8px 10px; flex: 1; min-width: 240px; }
.intel .must { color: #ffb347; font-size: 12px; }
.rosterGrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 8px; }
.recruit { background: var(--panel2); border: 2px solid var(--line); border-radius: 10px; padding: 8px 10px; cursor: pointer; display: flex; flex-direction: column; gap: 4px; }
.recruit:hover { border-color: #9d94ff; }
.recruit.chosen { border-color: #7dff9a; box-shadow: 0 0 12px rgba(125, 255, 154, 0.35); background: #1f3326; }
.recruit.locked { opacity: 0.4; cursor: not-allowed; }
.recruit .rHead { display: flex; justify-content: space-between; font-size: 13px; }
.recruit .rHead span { font-size: 11px; color: var(--dim); }
.recruit .tick { color: #7dff9a; visibility: hidden; }
.recruit.chosen .tick { visibility: visible; }
.recruit small { color: var(--dim); font-size: 11px; line-height: 1.35; }
.recruit .traits, .intel .traits { flex-wrap: wrap; }
.paper { background: #efe6d2; color: #1d1712; border-radius: 4px; padding: 10px 14px; margin: 6px 0 10px; font-family: Georgia, 'Times New Roman', serif;
  box-shadow: 0 4px 14px rgba(0,0,0,0.5); transform: rotate(-0.6deg); max-height: 240px; overflow-y: auto; }
.paper .masthead { text-align: center; font-weight: 900; letter-spacing: 3px; font-size: 13px; border-bottom: 2px solid #1d1712; padding-bottom: 3px; }
.paper .headline { font-size: 19px; font-weight: 900; line-height: 1.15; margin: 8px 0 5px; text-transform: uppercase; }
.paper .story { font-size: 13px; font-style: italic; margin-bottom: 6px; }
.paper .brief2 { font-size: 12px; border-top: 1px solid #b9ab8e; padding-top: 3px; margin-top: 3px; }
.payout { color: #ffd166; font-weight: 700; font-size: 16px; }
.payout small { color: var(--dim); font-weight: 400; }
.portrait u { position: absolute; top: -2px; right: -4px; font-size: 13px; text-decoration: none; }
.portrait { overflow: visible; }
.portrait i { border-radius: 0 0 20px 20px; }

/* result */
.btnRow { display: flex; gap: 8px; justify-content: flex-end; margin-top: 8px; }
.modalBox button.secondary { background: var(--panel2); border: 1px solid var(--line); }
.bigStars { font-size: 44px; color: #ffd166; text-align: center; letter-spacing: 6px; text-shadow: 0 0 12px rgba(255, 209, 102, 0.5); }
.failReason { color: #ff8a6a; font-weight: 700; font-size: 15px; }
.hintLine { color: var(--dim); font-size: 13px; }
.deathList { max-height: 200px; overflow-y: auto; font-size: 13px; line-height: 1.5; margin: 8px 0; }
.deathList em { color: var(--dim); }

@media (max-width: 1200px) {
  #sidebar { width: 240px; }
  #simPanel { width: 400px; }
  #topbar { gap: 8px; font-size: 12px; }
  #topbar .brand { display: none; }
  #trapBar { bottom: auto; top: 60px; left: auto; right: 258px; transform: none; flex-direction: column; }
  #trapBar .barLabel { display: none; }
  #trapHint { bottom: auto; top: 58px; }
}
