@font-face { font-family: 'Libre Caslon Text'; src: url(../fonts/libre-caslon-text-latin-400-normal.woff2) format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Libre Caslon Text'; src: url(../fonts/libre-caslon-text-latin-400-italic.woff2) format('woff2'); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: 'Libre Caslon Text'; src: url(../fonts/libre-caslon-text-latin-700-normal.woff2) format('woff2'); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: 'Nunito'; src: url(../fonts/nunito-latin-400-normal.woff2) format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Nunito'; src: url(../fonts/nunito-latin-600-normal.woff2) format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Nunito'; src: url(../fonts/nunito-latin-700-normal.woff2) format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Nunito'; src: url(../fonts/nunito-latin-800-normal.woff2) format('woff2'); font-weight: 800; font-display: swap; }
@font-face { font-family: 'Pixelify Sans'; src: url(../fonts/pixelify-sans-latin-400-normal.woff2) format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Pixelify Sans'; src: url(../fonts/pixelify-sans-latin-600-normal.woff2) format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Pixelify Sans'; src: url(../fonts/pixelify-sans-latin-700-normal.woff2) format('woff2'); font-weight: 700; font-display: swap; }
:root {
  --navy: #1e2240;
  --navy-2: #2b3160;
  --gold: #f2c14e;
  --ivory: #fff6e6;
  --ink: #2b2233;
  --pad: #fff4a3;
  --pad-line: #9cc3e6;
  --margin: #e0707a;
  --good: #3fae7a;
  --bad: #e0575b;
  --sky-a: #ffb26b;
  --sky-b: #5e7fc4;
  --display: 'Pixelify Sans', 'Nunito', system-ui, sans-serif;
  --body: 'Nunito', system-ui, -apple-system, sans-serif;
  --safe-t: env(safe-area-inset-top, 0px);
  --safe-b: env(safe-area-inset-bottom, 0px);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; overflow: hidden; background: var(--navy); font-family: var(--body); color: var(--ink); -webkit-tap-highlight-color: transparent; }
body { user-select: none; -webkit-user-select: none; touch-action: manipulation; }
[hidden] { display: none !important; }
button { font: inherit; cursor: pointer; }
button:focus-visible, input:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

#scene { position: fixed; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; image-rendering: pixelated; }

/* ── HUD ── */
#hud {
  position: fixed; top: calc(8px + var(--safe-t)); left: 8px; z-index: 5;
  display: flex; gap: 6px; flex-wrap: wrap; max-width: calc(100% - 140px);
}
#hud > div {
  background: var(--navy); color: var(--ivory); border: 2px solid var(--ink);
  border-radius: 999px; padding: 4px 11px; font-weight: 800; font-size: 14px;
  box-shadow: 0 3px 0 var(--ink);
}
#money { color: var(--gold) !important; }
.post-row { display: flex; gap: 8px; margin-top: 12px; }
.name-in { flex: 1; min-width: 0; font: 700 15px var(--body); padding: 9px 10px; border: 2px solid var(--ink); border-radius: 10px; background: #fff; }
.deadline {
  position: fixed; top: calc(84px + var(--safe-t)); left: 8px; z-index: 5;
  background: var(--gold); color: var(--ink); font-weight: 800; font-size: 13px;
  border: 2px solid var(--ink); border-radius: 8px; padding: 4px 10px; box-shadow: 0 3px 0 var(--ink);
}
#minimap { cursor: pointer;
  position: fixed; top: calc(8px + var(--safe-t)); right: 8px; z-index: 5;
  width: 120px; height: 96px; border: 2px solid var(--ink); border-radius: 10px;
  box-shadow: 0 3px 0 var(--ink); background: #a8cf78;
}
#bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 5;
  display: flex; gap: 6px; justify-content: center; padding: 8px 8px calc(8px + var(--safe-b));
  pointer-events: none;
}
#bar button {
  white-space: nowrap;
  pointer-events: auto; background: var(--ivory); color: var(--ink); font-weight: 800; font-size: 13px;
  border: 2px solid var(--ink); border-radius: 12px; padding: 9px 10px; box-shadow: 0 3px 0 var(--ink);
}
#bar button:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--ink); }

#toasts { position: fixed; top: calc(120px + var(--safe-t)); left: 50%; transform: translateX(-50%); z-index: 30; display: grid; gap: 6px; width: min(92vw, 420px); pointer-events: none; }
.toast { background: var(--ivory); border: 2px solid var(--ink); border-left: 8px solid var(--gold); border-radius: 10px; padding: 8px 12px; font-size: 14px; font-weight: 700; box-shadow: 0 3px 0 var(--ink); animation: tin .25s ease-out; }
.toast.out { opacity: 0; transition: opacity .5s; }
@keyframes tin { from { transform: translateY(-8px); opacity: 0; } }

/* ── dialogue ── */
#dialog { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; padding: 0 8px calc(10px + var(--safe-b)); }
#dportrait {
  width: 138px; height: 166px; margin: 0 0 -14px 10px; position: relative; z-index: 2;
  border: 3px solid var(--ink); border-radius: 14px 14px 4px 14px; overflow: hidden; background: var(--navy-2);
  box-shadow: 0 4px 0 var(--ink);
}
#dportrait svg { width: 100%; height: 100%; display: block; }
.dbox {
  background: var(--navy); color: var(--ivory); border: 3px solid var(--ink); border-top: 4px solid var(--gold);
  border-radius: 16px; padding: 16px 16px 14px; min-height: 124px; box-shadow: 0 5px 0 var(--ink);
  max-width: 720px; margin: 0 auto;
}
.dhead { display: flex; align-items: baseline; gap: 8px; margin-bottom: 6px; }
#dname { font-family: var(--display); color: var(--gold); font-size: 17px; }
#drole { font-size: 12px; color: #b7b3d6; font-weight: 700; }
#dtext { font-size: 17px; line-height: 1.55; font-weight: 700; min-height: 52px; }
#dtext.shout { font-family: var(--display); font-size: 22px; color: var(--gold); }
#dchoices { display: grid; gap: 8px; margin-top: 12px; }
#dchoices .btn { width: 100%; }
.shake { animation: shake .35s; }
.jolt { animation: jolt .4s; }
@keyframes shake { 20% { transform: translateX(-8px); } 40% { transform: translateX(7px); } 60% { transform: translateX(-5px); } 80% { transform: translateX(3px); } }
@keyframes jolt { 30% { transform: translate(-6px, 4px) rotate(-3deg); } 70% { transform: translate(3px, -2px) rotate(1deg); } }
#flash { position: fixed; inset: 0; background: #fff; opacity: 0; pointer-events: none; z-index: 40; }
#flash.go { animation: flash .45s ease-out; }
@keyframes flash { 0% { opacity: .9; } 100% { opacity: 0; } }

/* portrait idle life: faces stay still, bodies breathe, hair sways */
.pt-breathe { animation: breathe 3.6s ease-in-out infinite; transform-origin: 100px 240px; }
.pt-sway { animation: sway 4.4s ease-in-out infinite; transform-origin: 100px 90px; }
@keyframes breathe { 50% { transform: translateY(1.6px) scaleY(1.008); } }
@keyframes sway { 50% { transform: rotate(1.6deg); } }

/* ── buttons ── */
.btn {
  background: var(--ivory); color: var(--ink); border: 2px solid var(--ink); border-radius: 12px;
  padding: 11px 14px; font-weight: 800; font-size: 15px; box-shadow: 0 3px 0 var(--ink); text-align: left;
}
.btn:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--ink); }
.btn.primary { background: var(--gold); }
.btn.ghost { background: transparent; box-shadow: none; border-color: rgba(43, 34, 51, .35); }
#dialog .btn.ghost { color: var(--ivory); border-color: rgba(255, 246, 230, .4); }
.stack { display: grid; gap: 8px; margin-top: 12px; }

/* ── sheets ── */
.sheet {
  position: fixed; left: 8px; right: 8px; bottom: calc(8px + var(--safe-b)); z-index: 25;
  max-height: min(78vh, 640px); display: flex; flex-direction: column;
  background: var(--ivory); border: 3px solid var(--ink); border-radius: 18px; box-shadow: 0 6px 0 var(--ink);
  max-width: 560px; margin: 0 auto;
}
.sheet-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 14px 16px 8px; border-bottom: 2px dashed rgba(43, 34, 51, .2); }
.sheet-head h2 { font-family: var(--display); font-size: 20px; font-weight: 400; }
#sheetClose { background: none; border: 2px solid var(--ink); border-radius: 999px; padding: 4px 12px; font-weight: 800; font-size: 13px; }
#sheetBody { overflow-y: auto; padding: 12px 16px 16px; font-size: 15px; line-height: 1.5; }
#sheetBody h4 { font-family: var(--display); font-weight: 400; margin: 14px 0 6px; font-size: 16px; }
.muted { color: #6a6378; font-size: 14px; }
.hours { font-weight: 800; }
.hours.open { color: var(--good); }
.hours.closed { color: var(--bad); }
.meter { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid rgba(43, 34, 51, .12); font-size: 14px; }
.meter span { color: #6a6378; font-weight: 700; flex: none; }
.meter b { text-align: right; }
.good { color: var(--good); } .bad { color: var(--bad); }
.screen .who { display: flex; gap: 12px; align-items: center; margin-bottom: 6px; }
.mini { width: 72px; height: 86px; border: 2px solid var(--ink); border-radius: 10px; overflow: hidden; flex: none; }
.mini svg { width: 100%; height: 100%; display: block; }
.ev { border: 2px solid var(--ink); border-radius: 12px; padding: 8px 12px; margin: 6px 0; background: #fff; }
.ev p { font-size: 14px; color: #4a4358; }
.ev.key { border-color: var(--gold); box-shadow: inset 6px 0 0 var(--gold); }
.ev.bad { box-shadow: inset 6px 0 0 var(--bad); }

.rb { margin: 12px 0; font-size: 14px; font-weight: 700; }
.track { position: relative; height: 16px; border: 2px solid var(--ink); border-radius: 999px; background: #eee6d6; margin-top: 4px; overflow: hidden; }
.track i { position: absolute; top: 0; bottom: 0; border-radius: 999px; transition: left .5s, width .5s; }
.track i.mine { background: var(--gold); }
.track i.theirs { background: #8aa4d6; }
.zone { font-weight: 800; font-size: 14px; }
.zone.yes { color: var(--good); } .zone.no { color: var(--bad); }
.demand { display: grid; gap: 6px; font-weight: 700; font-size: 14px; }
.demand input { width: 100%; accent-color: var(--gold); }
.toggle { display: flex; gap: 8px; align-items: center; font-weight: 700; }

.chip-note {
  margin-top: 10px; background: var(--pad); border: 2px solid var(--ink); border-radius: 999px;
  padding: 5px 12px; font-weight: 800; font-size: 13px; box-shadow: 0 2px 0 var(--ink);
}
.result h2 { font-family: var(--display); font-weight: 400; font-size: 24px; margin-bottom: 4px; }

/* ── law notes: yellow legal pad ── */
.sheet.paper, .pad {
  background:
    linear-gradient(90deg, transparent 30px, var(--margin) 30px, var(--margin) 32px, transparent 32px),
    repeating-linear-gradient(var(--pad) 0 27px, var(--pad-line) 27px 28px);
  background-color: var(--pad);
}
.sheet.paper #sheetBody, .pad { padding-left: 44px; }
.legal h3, .pad h3 { font-family: var(--display); font-weight: 400; font-size: 20px; margin-bottom: 6px; }
.legal p, .pad p { margin: 6px 0; }
.note-row { display: block; width: 100%; text-align: left; background: transparent; border: none; border-bottom: 1px solid var(--pad-line); padding: 8px 0; font-weight: 800; font-size: 15px; }
.note-row.locked { color: #9d9477; font-weight: 700; }
#explain { position: fixed; inset: 0; z-index: 35; display: grid; place-items: center; background: rgba(20, 18, 36, .55); padding: 16px; }
.pad {
  width: min(92vw, 420px); border: 3px solid var(--ink); border-radius: 6px 6px 16px 16px; padding: 18px 18px 16px 44px;
  box-shadow: 0 6px 0 var(--ink); line-height: 28px; position: relative;
}
.padtag { position: absolute; top: -14px; left: 40px; background: var(--bad); color: #fff; font-weight: 800; font-size: 12px; padding: 3px 10px; border: 2px solid var(--ink); border-radius: 999px; }
.pad .short { font-weight: 800; font-size: 16px; }
.pad .more p { font-size: 14px; }
.pad .row { display: flex; gap: 8px; justify-content: flex-end; margin-top: 10px; }
.pad .btn { line-height: 1.2; }

/* ── title: a court filing on pleading paper ── */
#title {
  position: fixed; inset: 0; z-index: 50; overflow-y: auto; display: grid; place-items: center;
  padding: calc(18px + var(--safe-t)) 14px calc(18px + var(--safe-b));
  background: radial-gradient(ellipse 90% 80% at 50% 40%, rgba(20, 16, 40, .05), rgba(20, 16, 40, .55));
}
.pleading {
  --paper: #fdfcf8; --rule: #b9443c; --lineno: #a7a3b4; --legal: 'Libre Caslon Text', Georgia, 'Times New Roman', serif;
  position: relative; width: min(100%, 460px);
  background: var(--paper); color: #1d1a24; font-family: var(--legal);
  padding: 26px 20px 24px 52px; border-radius: 3px;
  box-shadow: 0 1px 0 #e6e1d4, 0 18px 40px rgba(10, 8, 25, .45);
  transform: rotate(-.6deg);
  background-image:
    linear-gradient(90deg, transparent 38px, var(--rule) 38px, var(--rule) 39px, transparent 39px, transparent 42px, var(--rule) 42px, var(--rule) 43px, transparent 43px);
}
.lines { position: absolute; left: 0; top: 26px; bottom: 24px; width: 32px; list-style: none; display: grid; grid-auto-rows: 1fr; font: 11px/1 var(--legal); color: var(--lineno); text-align: right; }
.lines li { padding-right: 2px; }
.court { text-align: center; font-size: 12.5px; letter-spacing: .08em; text-transform: uppercase; line-height: 1.5; margin: 84px 0 16px; }
.caption { display: grid; grid-template-columns: 1fr auto 1fr; gap: 6px; font-size: 13px; line-height: 1.45; border-bottom: 1px solid #1d1a24; padding-bottom: 12px; }
.parties p { margin-bottom: 6px; }
.parties .v { margin-left: 18px; }
.role { font-style: italic; }
.bracket { line-height: 1.12; font-size: 14px; color: #1d1a24; }
.caseno { display: grid; align-content: start; gap: 4px; }
.caseno label { font-size: 13px; }
.caseno input {
  font: 700 17px var(--legal); color: #1d1a24; background: transparent; border: 0; border-bottom: 1.5px solid #1d1a24;
  padding: 3px 2px; text-transform: uppercase; width: 100%; border-radius: 0;
}
.caseno input::placeholder { color: #9a95a8; }
.caseno .hint { font-size: 11px; font-style: italic; color: #6a6378; line-height: 1.35; }
.doctitle { font-family: var(--legal); font-weight: 700; font-size: 16px; text-align: center; text-transform: uppercase; letter-spacing: .04em; margin: 16px 0 10px; text-decoration: underline; text-underline-offset: 4px; }
.body-text { font-size: 15px; line-height: 1.6; text-indent: 2em; }
.title-actions { display: grid; gap: 8px; margin-top: 18px; }
.file-btn, .resume-btn {
  font: 700 16px var(--legal); padding: 12px 14px; border-radius: 4px; cursor: pointer;
}
.file-btn { background: #1d1a24; color: var(--paper); border: 2px solid #1d1a24; }
.file-btn:active { transform: translateY(1px); }
.resume-btn { background: transparent; color: #1d1a24; border: 1.5px solid #1d1a24; }
.sig { margin-top: 18px; font-size: 13px; line-height: 1.5; }
.sig span { font-style: italic; font-size: 17px; border-bottom: 1px solid #1d1a24; padding: 0 30px 0 4px; }

/* the game's name, as the clerk's rubber stamp */
.stamp-logo, .filed {
  position: absolute; color: #c23a3a; border: 3px solid currentColor; border-radius: 6px; text-transform: uppercase;
  font-family: var(--legal); font-weight: 700; text-align: center; line-height: 1;
  -webkit-mask-image: var(--grit); mask-image: var(--grit); -webkit-mask-size: 180px; mask-size: 180px;
  mix-blend-mode: multiply;
}
.stamp-logo { top: 16px; right: 16px; padding: 7px 10px 6px; transform: rotate(-7deg); box-shadow: inset 0 0 0 2px var(--paper), inset 0 0 0 4px currentColor; }
.stamp-logo span { display: block; font-size: 17px; letter-spacing: .06em; }
.stamp-logo span + span { font-size: 26px; letter-spacing: .14em; margin-top: 2px; }
.stamp-logo small { display: block; font-size: 8.5px; letter-spacing: .18em; margin-top: 4px; font-weight: 400; }
.filed { left: 50%; top: 42%; width: 210px; padding: 10px 8px; transform: translate(-50%, -50%) rotate(-12deg); color: #2f4fa8; background: transparent; }
.filed b { display: block; font-size: 40px; letter-spacing: .2em; }
.filed span { display: block; font-size: 13px; margin-top: 6px; letter-spacing: .04em; text-transform: none; }
.filed small { display: block; font-size: 9px; letter-spacing: .2em; margin-top: 4px; }
.filed.slam { animation: slam .32s cubic-bezier(.2, 1.6, .4, 1) both; }
@keyframes slam {
  0% { transform: translate(-50%, -50%) rotate(-12deg) scale(2.2); opacity: 0; }
  100% { transform: translate(-50%, -50%) rotate(-12deg) scale(1); opacity: .92; }
}
.pleading.thud { animation: thud .3s .22s; }
@keyframes thud { 40% { transform: rotate(-.6deg) translateY(3px) scale(.995); } }

@media (min-width: 720px) {
  #dportrait { width: 170px; height: 204px; margin-left: calc(50% - 350px); }
  .sheet { bottom: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .pt-breathe, .pt-sway, .shake, .jolt, #flash.go, .filed.slam, .pleading.thud { animation: none; }
}

/* ── research terminal ── */
.terminal .tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 8px; }
.tab { background: transparent; border: 2px solid var(--ink); border-radius: 999px; padding: 5px 12px; font-weight: 800; font-size: 13px; }
.tab.on { background: var(--ink); color: var(--pad); }
.terminal .ev { background: rgba(255, 255, 255, .72); }
.terminal .ev p { margin: 3px 0; }
.cite { font-style: italic; font-size: 13px !important; }
.side { font-weight: 800; font-size: 13px !important; }
.face { font-weight: 800; }
.law-star { border-color: #c99a1e; box-shadow: inset 6px 0 0 var(--gold), 0 0 0 2px rgba(242, 193, 78, .45); }
.law-meh { box-shadow: inset 6px 0 0 #9aa3b5; }
.law-bad { box-shadow: inset 6px 0 0 var(--bad); }
.law-bad > b { text-decoration: line-through; text-decoration-color: var(--bad); }
.law-unk { border-style: dashed; }
.ev .row { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.ev .row .btn { padding: 7px 10px; font-size: 13px; }
.audio-row { display: grid; gap: 4px; }
.audio-row input[type=range] { width: 100%; accent-color: var(--gold); }
.law-warn { box-shadow: inset 6px 0 0 #e08a3a; }
.law-star.supreme { border-color: #b8860b; box-shadow: inset 6px 0 0 #b8860b, 0 0 0 3px rgba(242, 193, 78, .7); }

/* ── floating joystick ── */
.joystick { position: fixed; z-index: 4; width: 108px; height: 108px; margin: -54px 0 0 -54px; border-radius: 50%; border: 3px solid rgba(255, 246, 230, .85); background: rgba(30, 34, 64, .28); pointer-events: none; }
.joystick i { position: absolute; left: 50%; top: 50%; width: 46px; height: 46px; margin: -23px 0 0 -23px; border-radius: 50%; background: var(--gold); border: 3px solid var(--ink); box-shadow: 0 3px 0 var(--ink); }
.cf-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }
.roadmap { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; }
.roadmap span { font-size: 12px; font-weight: 800; padding: 3px 9px; border-radius: 999px; border: 2px solid var(--ink); background: #fff; }
.roadmap span.done { background: var(--good); color: #fff; }
.roadmap span.now { background: var(--gold); }
.dock-n { display: inline-block; min-width: 26px; font-weight: 800; color: #6a6378; }
.diff-row { display: flex; gap: 6px; }
.diff-row .btn { flex: 1; text-align: center; }
.loadchip { top: calc(118px + var(--safe-t)); background: var(--ivory); cursor: pointer; font-family: inherit; }
.loadchip.hot { background: var(--bad); color: #fff; animation: pulseChip 1.2s ease-in-out infinite; }
@keyframes pulseChip { 50% { transform: scale(1.04); } }
#toasts { top: calc(156px + var(--safe-t)); }

/* pixel world: talk button + room fade */
.pb-talk { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(76px + var(--safe-b)); z-index: 5; font: 600 16px var(--body);
  background: rgba(30, 34, 64, .92); color: var(--ivory); border: 2px solid var(--gold); border-radius: 10px; padding: 10px 18px; min-height: 46px;
  white-space: nowrap; box-shadow: 0 0 0 3px rgba(242, 193, 78, .2), 0 6px 18px rgba(0, 0, 0, .35); animation: pbglow 1.4s ease-in-out infinite; }
.pb-talk b { color: var(--gold); font-family: var(--display); font-weight: 600; }
.pb-talk[hidden] { display: none; }
@keyframes pbglow { 50% { box-shadow: 0 0 0 6px rgba(242, 193, 78, .3), 0 6px 18px rgba(0, 0, 0, .35); } }
.pb-fade { position: fixed; inset: 0; background: #000; opacity: 0; pointer-events: none; transition: opacity .22s; z-index: 3; }
.pb-fade.on { opacity: 1; }
.joystick[hidden] { display: none; }
@media (prefers-reduced-motion: reduce) { .pb-talk { animation: none; } }

.reqs { list-style: none; margin: 6px 0 8px; padding: 0; display: grid; gap: 3px; font-size: 14px; }
.reqs .ok { color: var(--good); }
.reqs .no { color: var(--bad); }

/* Pixelify's fi/fl ligatures read as other letters */
html, body, button, input { font-variant-ligatures: none; font-feature-settings: 'liga' 0, 'clig' 0; }

/* ════════ pixel skin: LimeZu Modern UI (Style 1) so the interface matches the town ════════ */
:root { --wood-ink: #3a2a1e; --cream: #efe0bf; --cream-ink: #3a2a1e; --brown: #5b4747; --accent: #f0b35a; --muted-ink: #6b5440; }
#hud > div, #bar button, .pb-talk, #loadChip {
  border: 0; border-radius: 0; box-shadow: none; background: none; image-rendering: pixelated;
  border-style: solid; border-width: 12px; border-image: url(../img/ui/pill_dark.png) 6 fill / 12px stretch;
  color: #f6ecd6; padding: 0 4px;
}
#hud > div { font-size: 14px; line-height: 20px; }
#money { color: var(--accent) !important; display: flex; align-items: center; gap: 4px; }
#money::before { content: ''; width: 16px; height: 15px; background: url(../img/ui/coin.png) center / contain no-repeat; image-rendering: pixelated; }
.deadline { border: 0; border-radius: 0; box-shadow: none; background: none; color: var(--cream-ink); image-rendering: pixelated;
  border-style: solid; border-width: 14px; border-image: url(../img/ui/btn_wood.png) 8 fill / 14px stretch; padding: 0 2px; line-height: 18px; }
#loadChip.deadline { color: #f6ecd6; }
#minimap { border: 0; border-radius: 0; box-shadow: none; border-style: solid; border-width: 16px;
  border-image: url(../img/ui/panel.png) 8 / 16px stretch; image-rendering: pixelated; width: 144px; height: 120px; padding: 0; }
#bar { gap: 4px; }
#bar button { font-weight: 700; font-size: 13px; display: flex; flex-direction: column; align-items: center; gap: 2px; line-height: 1; min-width: 64px; padding: 0 2px; }
#bar button::before { content: ''; width: 16px; height: 16px; background: center / contain no-repeat; image-rendering: pixelated; }
#btnFile::before { background-image: url(../img/ui/i_list.png) !important; }
#btnInbox::before { background-image: url(../img/ui/i_mail.png) !important; }
#btnNotes::before { background-image: url(../img/ui/i_edit.png) !important; }
#btnMenu::before { background-image: url(../img/ui/i_gear.png) !important; }
#bar button:active { transform: translateY(2px); box-shadow: none; }
.pb-talk { animation: none; box-shadow: none; font-size: 16px; line-height: 22px; bottom: calc(80px + var(--safe-b)); }
.pb-talk b { color: var(--accent); }
.pb-talk::after { content: ''; position: absolute; inset: -14px; border: 2px solid var(--accent); pointer-events: none; animation: pbglow2 1.4s ease-in-out infinite; }
@keyframes pbglow2 { 50% { opacity: .2; } }

.toast { border: 0; border-radius: 0; box-shadow: none; background: none; image-rendering: pixelated; color: var(--cream-ink);
  border-style: solid; border-width: 14px; border-image: url(../img/ui/card.png) 7 fill / 14px stretch; padding: 0 2px; }

/* dialogue: wood frame, cream paper */
#dportrait { border: 0; border-radius: 0; box-shadow: none; background: #d9c6a0; border-style: solid; border-width: 16px;
  border-image: url(../img/ui/panel.png) 8 / 16px stretch; image-rendering: pixelated; margin-bottom: -8px; }
.dbox { background: none; border: 0; border-radius: 0; box-shadow: none; color: var(--cream-ink); image-rendering: pixelated;
  border-style: solid; border-width: 24px; border-image: url(../img/ui/panel.png) 8 fill / 24px stretch; padding: 4px 6px 2px; }
#dname { color: #8a4b1f; }
#drole { color: var(--muted-ink); }
#dtext { font-weight: 600; }
#dtext.shout { color: #b0413e; }
#dialog .btn.ghost { color: var(--cream-ink); }

/* buttons */
.btn { border: 0; border-radius: 0; box-shadow: none; background: none; image-rendering: pixelated; color: var(--cream-ink); font-weight: 700;
  border-style: solid; border-width: 12px; border-image: url(../img/ui/pill_cream.png) 6 fill / 12px stretch; padding: 0 4px; line-height: 1.3; }
.btn.primary { border-width: 16px; border-image: url(../img/ui/btn_wood.png) 8 fill / 16px stretch; padding: 0 2px; }
.btn.ghost { border-image: url(../img/ui/card_dark.png) 7 fill / 12px stretch; color: var(--muted-ink); }
.btn:active { transform: translateY(2px); box-shadow: none; }

/* sheets and cards */
.sheet { background: none; border: 0; border-radius: 0; box-shadow: none; image-rendering: pixelated;
  border-style: solid; border-width: 24px; border-image: url(../img/ui/panel.png) 8 fill / 24px stretch; color: var(--cream-ink); }
.sheet-head { padding: 2px 4px 8px; border-bottom: 2px dashed rgba(58, 42, 30, .25); }
#sheetBody { padding: 10px 4px 4px; }
#sheetClose { border: 0; border-radius: 0; background: none; border-style: solid; border-width: 10px;
  border-image: url(../img/ui/chip.png) 6 fill / 10px stretch; image-rendering: pixelated; padding: 0 4px; line-height: 16px; }
.ev { border: 0; border-radius: 0; background: none; image-rendering: pixelated; border-style: solid; border-width: 14px;
  border-image: url(../img/ui/card.png) 7 fill / 14px stretch; padding: 0 2px; }
.ev p { color: #4e3d2f; }
.ev.key { border-image: url(../img/ui/btn_wood.png) 8 fill / 16px stretch; border-width: 16px; box-shadow: none; }
.ev.bad { box-shadow: none; }
.muted, .meter span { color: var(--muted-ink); }
.meter { border-bottom-color: rgba(58, 42, 30, .15); }
.chip-note { border: 0; border-radius: 0; box-shadow: none; background: none; image-rendering: pixelated; border-style: solid; border-width: 10px;
  border-image: url(../img/ui/chip.png) 6 fill / 10px stretch; padding: 0 4px; display: inline-block; }
.mini { border-radius: 0; }
.track { border-radius: 0; }
.track i { border-radius: 0; }
/* law notes keep their legal-pad paper, inside the same wood frame */
.sheet.paper { border-image: url(../img/ui/panel.png) 8 / 24px stretch; }
.pad { border: 0; border-radius: 0; box-shadow: none; border-style: solid; border-width: 24px; border-image: url(../img/ui/panel.png) 8 / 24px stretch; image-rendering: pixelated; }
.padtag { border-radius: 0; }
.ev.locked { opacity: .72; }

/* pixel dialogue portraits (LimeZu Portrait Generator on the speaker's sprite torso) */
#dportrait.px { width: 152px; height: 172px; background: #e8d8b4 radial-gradient(circle at 50% 58%, #f6ecd6 0, #dcc9a3 78%); }
#dportrait.px .pxface { width: 120px; height: 140px; display: block; image-rendering: pixelated; }
.mini .pxface { width: 72px; height: 84px; display: block; margin: 0 auto; image-rendering: pixelated; }
.mini:has(.pxface) { background: #e8d8b4; width: 76px; height: 88px; }
@media (min-width: 720px) {
  #dportrait.px { width: 176px; height: 200px; }
  #dportrait.px .pxface { width: 144px; height: 168px; }
}

/* zoom buttons under the minimap */
#zoomCtl { position: fixed; top: calc(136px + var(--safe-t)); right: 8px; z-index: 5; display: grid; gap: 4px; }
#zoomCtl[hidden] { display: none; }
#zoomCtl button { width: 44px; height: 44px; padding: 0; font: 700 24px/1 var(--display); color: #f6ecd6; background: none; image-rendering: pixelated;
  border-style: solid; border-width: 12px; border-image: url(../img/ui/pill_dark.png) 6 fill / 12px stretch; display: grid; place-items: center; }
#zoomCtl button:active { transform: translateY(2px); }
.btn:disabled { opacity: .45; }

/* ── board certification: Menu badge, persuasion bar, exam, certificate ── */
.cert-chip { display: flex; align-items: center; gap: 6px; margin-left: auto; margin-right: 6px; cursor: pointer; font: 600 13px/1.05 var(--display); color: #6b3f12; text-align: left;
  background: none; border-style: solid; border-width: 10px; border-image: url(../img/ui/btn_wood.png) 8 fill / 10px stretch; padding: 0 2px; image-rendering: pixelated; }
.cert-chip img { width: 36px; height: 33px; image-rendering: pixelated; animation: certshine 3s ease-in-out infinite; }
.cert-chip small { display: block; font: 700 10px var(--body); color: #8a6a45; letter-spacing: .04em; }
@keyframes certshine { 0%, 80%, 100% { filter: none; } 88% { filter: brightness(1.35); } }
.persuade { display: grid; gap: 6px; margin: 4px 0 8px; }
.persuade .meter { border: 0; padding: 0; }
.pbar { height: 14px; background: #5b4747; border: 2px solid #3a2a1e; position: relative; }
.pbar i { position: absolute; left: 0; top: 0; bottom: 0; background: #f0b35a; }
.pbar em { position: absolute; top: 0; bottom: 0; background: repeating-linear-gradient(45deg, #ffd98a 0 4px, #f0b35a 4px 8px); }
.exam .qn { font: 600 13px var(--display); color: #8a4b1f; letter-spacing: .04em; }
.exam .dots { display: flex; gap: 4px; margin: 6px 0 10px; }
.exam .dots i { flex: 1; max-width: 22px; height: 8px; background: #5b4747; border: 1px solid #3a2a1e; }
.exam .dots i.ok { background: #6fbf5a; } .exam .dots i.no { background: #c8553d; } .exam .dots i.now { background: #f0b35a; }
.exam .q { font-weight: 700; font-size: 16px; line-height: 1.5; margin-bottom: 10px; }
.exam .btn.locked { pointer-events: none; opacity: .6; }
.exam .btn.right { opacity: 1; box-shadow: inset 0 0 0 3px #4f9a3e; }
.exam .btn.right::before { content: '\2713  '; color: #3f7f31; font-weight: 800; }
.exam .btn.wrong { opacity: 1; box-shadow: inset 0 0 0 3px #b8452f; }
.exam .btn.wrong::before { content: '\2717  '; color: #a33b27; font-weight: 800; }
.exam .ev.bad-note b { color: #a33b27; }
#certView { position: fixed; inset: 0; z-index: 60; background: rgba(20, 16, 24, .82); display: grid; place-items: center; padding: 14px; overflow: auto; }
.cert { width: min(100%, 560px); background: #f4ead2; image-rendering: pixelated;
  border-style: solid; border-width: 24px; border-image: url(../img/ui/panel.png) 8 fill / 24px stretch; }
.cert-in { margin: 4px; padding: 22px 18px 18px; border: 3px double #8a6a45; outline: 1px solid #c9ad7c; outline-offset: -9px; text-align: center; color: #2e2418;
  background: radial-gradient(circle at 50% 40%, #fbf4e2 0, #f1e4c4 80%); font-family: 'Libre Caslon Text', Georgia, serif; }
.cert .org { font-size: 13px; letter-spacing: .28em; text-transform: uppercase; }
.cert .sub { font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: #6b5440; margin-top: 4px; }
.cert .rule { height: 2px; background: #8a6a45; margin: 14px auto; width: 60%; position: relative; }
.cert .rule::after { content: ''; position: absolute; left: 50%; top: -4px; width: 8px; height: 8px; background: #8a6a45; transform: translateX(-50%) rotate(45deg); }
.cert .lead { font-style: italic; font-size: 14px; color: #4a3a28; }
.cert .name { font-style: italic; font-size: 34px; line-height: 1.15; margin: 8px 0 6px; color: #1f1810; border-bottom: 1px solid #b89a6a; display: inline-block; padding: 0 10px 4px; overflow-wrap: anywhere; }
.cert .body { font-size: 13px; line-height: 1.6; max-width: 400px; margin: 6px auto 0; }
.cert .title { font-family: var(--display); font-size: 26px; line-height: 1.1; color: #8a4b1f; margin: 12px 0 4px; letter-spacing: .02em; }
.cert .stats { display: flex; justify-content: center; margin: 16px auto 6px; font: 700 11px var(--body); color: #6b5440; letter-spacing: .06em; text-transform: uppercase; }
.cert .stats span { padding: 0 8px; border-left: 1px solid #c9ad7c; } .cert .stats span:first-child { border: 0; }
.cert .stats b { display: block; font: 700 16px 'Libre Caslon Text', serif; color: #2e2418; letter-spacing: 0; text-transform: none; }
.cert .foot { display: grid; grid-template-columns: 1fr auto 1fr; align-items: end; gap: 8px; margin-top: 18px; }
.cert .sig { font-size: 11px; color: #6b5440; border-top: 1px solid #8a6a45; padding-top: 4px; letter-spacing: .06em; }
.cert .sig i { display: block; font-size: 17px; white-space: nowrap; color: #1f1810; letter-spacing: 0; margin-bottom: 2px; font-family: 'Libre Caslon Text', serif; }
.cert .seal { width: 96px; height: 88px; image-rendering: pixelated; filter: drop-shadow(0 3px 0 rgba(58, 42, 30, .35)); }
.cert .no { font: 600 10px var(--body); color: #8a6a45; letter-spacing: .12em; margin-top: 10px; }
.cert-actions { display: flex; justify-content: center; margin-top: 10px; }
@media (max-width: 420px) {
  .cert .stats { font-size: 9.5px; letter-spacing: .03em; } .cert .stats b { font-size: 15px; }
  .cert .sig { font-size: 10px; } .cert .sig i { font-size: 15px; } .cert .seal { width: 72px; height: 66px; } .cert-in { padding: 20px 12px 16px; }
}
@media (min-width: 720px) { .cert .name { font-size: 40px; } .cert .title { font-size: 30px; } .cert-in { padding: 28px 30px 22px; } }

/* Menu tabs */
.menu-tabs { display: flex; gap: 4px; margin: -4px 0 10px; position: sticky; top: -10px; z-index: 2; padding: 4px 0 6px; background: #d9c6a0; }
.mtab { flex: 1; min-width: 0; font: 600 14px/1 var(--display); color: var(--cream-ink); background: none; image-rendering: pixelated; cursor: pointer;
  border-style: solid; border-width: 10px; border-image: url(../img/ui/pill_cream.png) 6 fill / 10px stretch; padding: 2px 0; opacity: .75; }
.mtab.on { opacity: 1; color: #3a2a1e; border-image: url(../img/ui/btn_wood.png) 8 fill / 10px stretch; }
.menu-pane h4:first-child { margin-top: 2px; }

/* cutscenes: hide the HUD so the letterbox reads like a movie */
body.cinematic #hud, body.cinematic #bar, body.cinematic #minimap, body.cinematic #zoomCtl, body.cinematic #toasts, body.cinematic .deadline, body.cinematic .pb-talk { visibility: hidden; }
.ev.cmo { border-left: 6px solid #8a4b1f; }
.ev.cmo .meter { padding: 6px 0; }

/* ── mediation video call ── */
#callView { position: fixed; inset: 0; z-index: 70; display: flex; align-items: center; justify-content: center; padding: 10px; background: rgba(12, 10, 18, .78); animation: callin .28s ease-out; cursor: pointer; }
#callView.out { opacity: 0; transition: opacity .25s; }
@keyframes callin { from { transform: scale(.92); opacity: 0; } }
.call { width: 100%; max-width: 560px; min-width: 0; background: #1b1924; color: #eae6f2; font: 600 13px var(--body); image-rendering: pixelated;
  border-style: solid; border-width: 16px; border-image: url(../img/ui/panel.png) 8 fill / 16px stretch; }
.call.shake { animation: shake .35s; }
.call-top { display: flex; gap: 8px; align-items: center; justify-content: space-between; padding: 6px 8px; background: #121019; font-size: 11px; color: #b9b3c9; }
.call-top span:nth-child(2) { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.call-top .rec { color: #e8574a; font-weight: 800; animation: recblink 1.2s steps(2) infinite; }
@keyframes recblink { 50% { opacity: .35; } }
.call-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 6px; background: #121019; }
.tile { position: relative; aspect-ratio: 4 / 3; overflow: hidden; border: 2px solid #2a2635; display: grid; place-items: center; }
.tile.host { grid-column: span 2; aspect-ratio: 16 / 7; }
.tile canvas { height: 86%; image-rendering: pixelated; margin-top: 6%; }
.tile.host canvas { height: 96%; }
.tile.speaking { border-color: #6fbf5a; box-shadow: 0 0 0 1px #6fbf5a inset; }
.tile.mad { border-color: #e8574a; box-shadow: 0 0 12px rgba(232, 87, 74, .6) inset; animation: shake .5s infinite; }
.tname { position: absolute; left: 4px; bottom: 4px; display: flex; align-items: center; gap: 4px; max-width: calc(100% - 8px); padding: 2px 6px 2px 2px; background: rgba(10, 8, 16, .72); font: 700 10px var(--body); color: #f1ecf8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tname .mic { flex: none; width: 16px; height: 16px; background: url(../img/ui/call.png) -16px -64px / 128px 80px no-repeat; image-rendering: pixelated; }
.tname .mic.off { background-position: -32px -64px; }
.tile .react { position: absolute; right: 6px; top: 6px; width: 48px; height: 48px; background: url(../img/ui/call.png) 0 0 / 384px 240px no-repeat; image-rendering: pixelated; opacity: 0; pointer-events: none; }
.call-cap { min-height: 58px; overflow-wrap: anywhere; padding: 8px 10px; background: #0f0d15; font: 600 15px/1.4 var(--body); color: #fff; }
.call-cap b { display: block; font: 600 12px var(--display); color: #f0b35a; margin-bottom: 2px; }
.call-cap.muted span { color: #8f89a0; font-style: italic; }
.call-bar { display: flex; gap: 6px; align-items: center; padding: 8px; background: #121019; font: 700 11px var(--body); }
.call-bar .cb { padding: 5px 8px; background: #2a2635; color: #d7d2e2; border-radius: 3px; }
.call-bar .cb.leave { background: #b83b30; color: #fff; }
.call-bar .hint { margin-left: auto; color: #8f89a0; font-weight: 600; }
@media (min-width: 720px) { .call-grid { grid-template-columns: 1fr 1fr 1fr 1fr; } .tile.host { grid-column: span 4; aspect-ratio: 24 / 7; } }

/* health bar lives in the stress chip */

/* stat change card: shows exactly what an activity cost or gave you */
#statPop { position: fixed; inset: 0; z-index: 75; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(12, 10, 18, .55); animation: callin .25s ease-out; }
.sp-card { width: 100%; max-width: 360px; color: var(--cream-ink); image-rendering: pixelated; border-style: solid; border-width: 24px; border-image: url(../img/ui/panel.png) 8 fill / 24px stretch; display: grid; gap: 8px; }
.sp-card h3 { font: 600 18px var(--display); color: #8a4b1f; margin: 0 0 4px; }
.sp-row { display: grid; grid-template-columns: 84px 1fr 52px; align-items: center; gap: 8px; font-weight: 800; font-size: 14px; animation: sprow .5s ease-out both; }
.sp-row:nth-of-type(2) { animation-delay: .15s; } .sp-row:nth-of-type(3) { animation-delay: .3s; } .sp-row:nth-of-type(4) { animation-delay: .45s; } .sp-row:nth-of-type(5) { animation-delay: .6s; }
@keyframes sprow { from { transform: scale(1.35); opacity: 0; } }
.sp-row b { text-align: right; font-size: 17px; }
.sp-row.good b { color: #2f7d2a; } .sp-row.bad b { color: #b0413e; }
.sp-bar { height: 12px; background: #5b4747; border: 2px solid #3a2a1e; position: relative; }
.sp-bar i { position: absolute; left: 0; top: 0; bottom: 0; background: #f0b35a; transition: width .9s cubic-bezier(.3,1.4,.5,1) .35s; }
.sp-row.bad .sp-bar i { background: #d9604f; } .sp-row.good .sp-bar i { background: #6fbf5a; }

/* cutscene panel for dates, vices, checkups */
#cineView { position: fixed; inset: 0; z-index: 72; display: flex; flex-direction: column; justify-content: flex-end; cursor: pointer; animation: callin .3s ease-out; background: #0e0c14; transition: background .8s; }
#cineView.out { opacity: 0; transition: opacity .25s; }
.cine-stage { flex: 1; position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 16px; }
.cine-title { font: 600 15px var(--display); color: #f0b35a; letter-spacing: .06em; text-shadow: 0 2px 0 #000; }
.cine-cast { display: flex; gap: 14px; justify-content: center; align-items: flex-end; flex-wrap: wrap; }
.cine-actor { position: relative; display: grid; justify-items: center; gap: 4px; }
.cine-actor canvas { width: 120px; height: 140px; image-rendering: pixelated; filter: drop-shadow(0 6px 0 rgba(0,0,0,.35)); }
.cine-actor small { font: 700 11px var(--body); color: #eae6f2; background: rgba(0,0,0,.5); padding: 2px 6px; }
.cine-actor.speaking small { color: #f0b35a; }
.cine-actor .react { position: absolute; right: -6px; top: -6px; width: 48px; height: 48px; background: url(../img/ui/call.png) 0 0 / 384px 240px no-repeat; image-rendering: pixelated; opacity: 0; pointer-events: none; }
#cineView .call-cap { min-height: 76px; }
.cine-hint { background: #0f0d15; color: #8f89a0; font: 600 11px var(--body); text-align: right; padding: 0 12px calc(10px + var(--safe-b)); }
#cineView.bg-beach { background: linear-gradient(#7cc6e8 0 45%, #3b9fcf 45% 58%, #f1d38a 58%); }
#cineView.bg-icecream { background: repeating-linear-gradient(90deg, #f7c9d6 0 40px, #fff4e6 40px 80px); }
#cineView.bg-gym { background: linear-gradient(#5b6477, #2f3442); }
#cineView.bg-hospital { background: linear-gradient(#e8f1f7, #b9cfe0); }
#cineView.bg-hospital .cine-title { color: #2f6fb0; text-shadow: none; }
#cineView.bg-movie { background: radial-gradient(ellipse at 50% 10%, #8e97c2 0, #2a2a4a 30%, #07060c 62%); }
#cineView.bg-comedy { background: radial-gradient(circle at 30% 30%, rgba(255,210,120,.5) 0, #2a1510 45%, #0e0806 80%); }
#cineView.bg-lounge { background: linear-gradient(135deg, #2b1238, #13223f); }
#cineView.bg-party { background: #1b1030; }
#cineView.bg-party::before { content: ''; position: absolute; inset: 0; background: linear-gradient(135deg, #5a1b6e, #1b3a78, #0e6d5f); background-size: 400% 400%; animation: party 1.2s linear infinite; pointer-events: none; }
#cineView > * { position: relative; }
@keyframes party { 0% { background-position: 0 50%; filter: hue-rotate(0); } 100% { background-position: 100% 50%; filter: hue-rotate(90deg); } }
#cineView.bg-night { background: linear-gradient(#1b1733, #3a2548); }
#cineView.bg-black { background: #000; }
#cineView.bg-black .cine-cast { opacity: 0; transition: opacity .6s; }
#cineView.bg-morning { background: linear-gradient(#ffd9a8, #f7b27a); }
#cineView.bg-getaway { background: linear-gradient(#ffb37a 0 35%, #3fa7c9 35% 62%, #f3dca0 62%); }
#cineView.bg-flatline { background: #070508; }
#cineView.bg-flatline .cine-stage::after { content: ''; position: absolute; left: 10%; right: 10%; top: 28%; height: 3px; background: #e8574a; box-shadow: 0 0 10px #e8574a; animation: flat 2.4s linear forwards; }
@keyframes flat { 0% { clip-path: inset(0 100% 0 0); } 100% { clip-path: inset(0 0 0 0); } }
#cineView.fx-blur .cine-cast { animation: blurry 2.4s ease-in-out; }
#cineView.fx-shake .cine-stage { animation: cshake .45s steps(6); }
@keyframes cshake { 0%{transform:translate(0,0)} 20%{transform:translate(-8px,3px)} 40%{transform:translate(7px,-4px)} 60%{transform:translate(-5px,2px)} 80%{transform:translate(4px,-2px)} 100%{transform:translate(0,0)} }
#cineView.fx-flash::after { content:''; position:absolute; inset:0; pointer-events:none; animation: cflash .7s ease-out forwards; }
@keyframes cflash { 0%{background:rgba(255,255,255,.9)} 30%{background:rgba(255,80,80,.35)} 60%{background:rgba(80,120,255,.3)} 100%{background:transparent} }
@keyframes blurry { 30% { filter: blur(3px) hue-rotate(60deg); transform: rotate(-4deg) scale(1.05); } 60% { filter: blur(2px); transform: rotate(3deg); } }
#cineView.bg-jail { background: repeating-linear-gradient(90deg, #2b2a33 0 26px, #56545f 26px 34px), #2b2a33; }
#cineView.bg-jail .cine-cast { background: rgba(20, 18, 26, .55); padding: 10px 16px; }
#cineView.bg-chambers { background: linear-gradient(#5b3a26, #2e1d14); }
#cineView.bg-office { background: linear-gradient(#e9dcc0 0 62%, #b58a5a 62%); }
#cineView.bg-office .cine-title { color: #6b3f12; text-shadow: none; }
#cineView.bg-confetti { background: #2b2250; }
#cineView.bg-confetti::before { content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(#f0b35a 2px, transparent 3px), radial-gradient(#e8577a 2px, transparent 3px), radial-gradient(#6fbf5a 2px, transparent 3px), radial-gradient(#5ab0e8 2px, transparent 3px);
  background-size: 60px 60px, 80px 80px, 70px 70px, 90px 90px; background-position: 0 0, 20px 30px, 40px 10px, 10px 50px; animation: confetti 3s linear infinite; }
@keyframes confetti { to { background-position: 0 600px, 20px 830px, 40px 710px, 10px 950px; } }
#cineView.bg-rain { background: #1b2433; }
#cineView.bg-rain::before { content: ''; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: repeating-linear-gradient(105deg, transparent 0 18px, rgba(160,190,230,.5) 18px 19px); background-size: 120px 120px; animation: rain .5s linear infinite; }
@keyframes rain { to { background-position: -30px 120px; } }
@media (max-width: 420px) { .cine-actor canvas { width: 96px; height: 112px; } .cine-cast { gap: 8px; } }
@media (max-width: 420px) { .cine-cast:has(> :nth-child(4)) .cine-actor canvas { width: 76px; height: 89px; } .cine-cast:has(> :nth-child(4)) { gap: 4px; } }

/* ════════ stats box: cred, persuasion, stress, health. Tap it for the full panel ════════ */
#stats { display: flex; align-items: center; gap: 10px; cursor: pointer; font-size: 12px !important; }
#stats:hover { filter: brightness(1.12); }
#stats:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
#stats .st { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
#stats .sl { color: #d9c9a8; display: inline-flex; align-items: center; gap: 3px; }
#stats .st-health .sl::before, #stats .st-pers .sl::before { content: ''; width: 11px; height: 10px; background: center / contain no-repeat; image-rendering: pixelated; }
#stats .st-health .sl::before { background-image: url(../img/ui/heart.png); }
#stats .st-pers .sl::before { width: 8px; height: 11px; background-image: url(../img/ui/bolt.png); }
#stats .trk { display: block; width: 56px; height: 8px; background: #2a2030; border: 1px solid #1a1420; position: relative; overflow: hidden; }
#stats .trk em { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: var(--good); transition: width .4s, background .4s; }
#stats #persBar { background: #f0b35a; }
#stats #health { background: #e8577a; }
#stats em.warm { background: var(--gold) !important; }
#stats em.hot { background: var(--bad) !important; }
#stats #health.hot { animation: recblink 1s steps(2) infinite; }
#cred { display: inline-flex; gap: 1px; }
#cred span { display: inline-block; width: 12px; height: 11px; font-size: 0;
  background: url(../img/ui/star.png) center / contain no-repeat; image-rendering: pixelated; filter: grayscale(1) brightness(.5); opacity: .8; }
#cred span.on { filter: none; opacity: 1; }
@media (max-width: 720px) {
  #stats { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 8px; row-gap: 3px; line-height: 16px !important; flex: 1 1 100%; min-width: 0; box-sizing: border-box; }
  #stats .st { min-width: 0; gap: 4px; }
  #stats .sl { font-size: 10.5px; }
  #stats .trk { flex: 1; width: auto; min-width: 16px; }
  #stats { flex: 0 1 auto; width: calc(100vw - 166px); max-width: calc(100vw - 166px); }
}
.deadline { top: calc(var(--hudB, 84px) + 4px); }
.loadchip { top: calc(var(--hudB, 84px) + 40px); }

/* full stats panel */
.stat-card { display: grid; gap: 4px; padding: 10px 0; border-bottom: 1px dashed #c9ad7c; }
.stat-card:last-child { border-bottom: 0; }
.stat-card .sc-top { display: flex; align-items: center; gap: 8px; }
.stat-card h4 { margin: 0; flex: 1; display: inline-flex; align-items: center; gap: 6px; }
.stat-card h4 img { width: 16px; height: 15px; image-rendering: pixelated; object-fit: contain; }
.stat-card .sc-val { font-weight: 800; }
.stat-card .sc-bar { height: 10px; background: #5b4747; border: 2px solid #3a2a1e; position: relative; }
.stat-card .sc-bar i { position: absolute; left: 0; top: 0; bottom: 0; }
.stat-card .sc-stars img { width: 18px; height: 16px; image-rendering: pixelated; }
.stat-card .sc-stars img.off { filter: grayscale(1) brightness(.6); opacity: .7; }
.stat-card p { margin: 0; font-size: 13px; line-height: 1.45; }
.stat-card ul { margin: 2px 0 0; padding-left: 18px; font-size: 12.5px; line-height: 1.45; }

/* sign the complaint: your name on the title pleading */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.you-line input { font: 700 15px var(--legal); color: #1d1a24; background: rgba(255, 236, 150, .35); border: 0; border-bottom: 1.5px solid #1d1a24;
  padding: 2px 3px; text-transform: uppercase; width: calc(100% - 8px); border-radius: 0; }
.you-line input::placeholder { color: #a33; }
.you-line input.need { animation: needName .4s steps(4) 2; background: rgba(255, 120, 120, .35); }
@keyframes needName { 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }
.sig span#sigName { font-family: 'Libre Caslon Text', Georgia, serif; }

/* manual save: a two-second save screen, then a loud confirmation */
#saveView { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; background: rgba(14, 12, 20, .72); }
#saveView .sv { width: min(86vw, 320px); text-align: center; color: var(--cream-ink); image-rendering: pixelated;
  border-style: solid; border-width: 18px; border-image: url(../img/ui/panel.png) 8 fill / 18px stretch; padding: 6px 8px 10px; }
#saveView h3 { margin: 0 0 10px; font-family: var(--display); font-size: 20px; }
#saveView .svbar { height: 16px; background: #5b4747; border: 2px solid #3a2a1e; position: relative; overflow: hidden; }
#saveView .svbar i { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: repeating-linear-gradient(90deg, #6fbf5a 0 10px, #5aa84a 10px 12px); transition: width .85s linear; }
#saveView p { margin: 8px 0 0; font-size: 13px; }
#saveView.done .sv { animation: savedPop .45s ease-out; }
#saveView.done h3 { color: #3f8f3a; }
@keyframes savedPop { 0% { transform: scale(1); } 40% { transform: scale(1.12); } 100% { transform: scale(1); } }

/* ════════ the tower: elevator panel, elevator ride, the window view ════════ */
.elev-grid { display: grid; gap: 6px; }
.elev-grid .btn { display: flex; align-items: center; gap: 12px; text-align: left; }
.elev-grid .btn b { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: #3a2a1e; color: #f6ecd6; font-family: var(--display); flex: none; }
.elev-grid .btn.primary b { background: #f0b35a; color: #3a2a1e; }
#elevView { position: fixed; inset: 0; z-index: 75; display: grid; place-items: center; background: rgba(12, 10, 18, .78); animation: callin .2s ease-out; }
#elevView .ev-panel { display: grid; justify-items: center; gap: 6px; padding: 18px 30px; background: #1d1a24; border: 3px solid #7d7a8a; box-shadow: inset 0 0 0 3px #3a3744, 0 8px 0 rgba(0,0,0,.4); }
#elevView .ev-panel i { font-style: normal; color: #f0b35a; font-size: 20px; animation: recblink .8s steps(2) infinite; }
#elevView .ev-panel b { font: 700 64px/1 var(--display); color: #ff9a3c; text-shadow: 0 0 12px rgba(255, 140, 50, .7); min-width: 60px; text-align: center; }
#elevView .ev-panel small { color: #cfc8dc; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
#cityView { position: fixed; inset: 0; z-index: 70; cursor: pointer; animation: callin .8s ease-out; }
#cityView .vw-glass { position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(118deg, transparent 18%, rgba(255,255,255,.07) 20%, rgba(255,255,255,.02) 27%, transparent 28%, transparent 58%, rgba(255,255,255,.05) 60%, transparent 66%),
              radial-gradient(ellipse at center, transparent 55%, rgba(8, 10, 20, .45) 100%); }
#cityView.night .vw-glass { background: linear-gradient(118deg, transparent 18%, rgba(255,210,150,.06) 20%, transparent 28%, transparent 58%, rgba(255,210,150,.04) 60%, transparent 66%),
              radial-gradient(ellipse at center, transparent 50%, rgba(4, 6, 16, .6) 100%); }
#cityView .vw-frame { position: absolute; inset: 0; border: 22px solid #2d2b36; box-shadow: inset 0 0 0 4px #4a4757, inset 0 0 30px rgba(0,0,0,.45); pointer-events: none; }
#cityView .vw-frame i { position: absolute; top: 0; bottom: 0; width: 12px; background: #2d2b36; box-shadow: inset 2px 0 0 #4a4757, inset -2px 0 0 #1b1a22; }
#cityView .vw-frame i:first-child { left: calc(33.3% - 6px); } #cityView .vw-frame i:last-child { left: calc(66.6% - 6px); }
@media (max-width: 600px) { #cityView .vw-frame i:first-child { left: calc(50% - 6px); } #cityView .vw-frame i:last-child { display: none; } }
#cityView .vw-title { position: absolute; top: calc(34px + var(--safe-t, 0px)); left: 0; right: 0; text-align: center; color: rgba(255, 244, 220, .85);
  font: italic 15px 'Libre Caslon Text', Georgia, serif; letter-spacing: .06em; text-shadow: 0 1px 6px rgba(0,0,0,.6); }
#cityView .vw-cap { position: absolute; left: 12%; right: 12%; bottom: 70px; text-align: center; color: #fff4dc; font: italic 18px/1.5 'Libre Caslon Text', Georgia, serif;
  text-shadow: 0 1px 8px rgba(0,0,0,.8); opacity: 0; transition: opacity 1.4s ease; }
#cityView .vw-cap.on { opacity: 1; }
#cityView .vw-hint { position: absolute; bottom: 34px; left: 0; right: 0; text-align: center; color: rgba(255,244,220,.55); font-size: 12px; }
#cityView .sea-cv { position: absolute; left: 0; top: 0; image-rendering: pixelated; image-rendering: crisp-edges; }
#cityView:has(.sea-cv) { background: #0b0d18; }
#cityView.out { transition: opacity .6s; opacity: 0; }

/* ════════ the Books ════════ */
#money { cursor: pointer; }
.books { display: grid; gap: 12px; }
.bk-box { border: 3px solid #3a2a1e; background: #fbf4e2; padding: 10px 12px; box-shadow: 0 3px 0 rgba(58,42,30,.35); }
.bk-box h4 { margin: 0 0 8px; font-family: var(--display); font-size: 17px; color: #3a2a1e; text-transform: uppercase; letter-spacing: .04em; text-align: center; }
.bk-box h4 small { font: 600 11px var(--body); text-transform: none; color: #8a6a45; letter-spacing: 0; }
.bk-box h5 { margin: 4px 0 4px; font: 700 13px var(--display); text-transform: uppercase; text-decoration: underline; text-underline-offset: 3px; }
.bk-half { border: 2px solid #3a2a1e; padding: 6px 8px; margin-bottom: 6px; background: #fff; }
.bk-half.inc h5, .bk-half.inc .bk-line span { color: #2f7d3a; }
.bk-half.exp h5, .bk-half.exp .bk-line span { color: #b63a2a; }
.bk-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.bk-cols .bk-half { margin: 0; }
.bk-line { display: flex; justify-content: space-between; gap: 8px; font-size: 12.5px; line-height: 1.6; }
.bk-line span { font-weight: 700; text-transform: uppercase; font-size: 11px; letter-spacing: .02em; }
.bk-line b { white-space: nowrap; }
.bk-line.tot { border-top: 1px solid #c9ad7c; margin-top: 3px; padding-top: 2px; }
.bk-line.net { font-size: 14px; padding: 4px 2px 0; }
.bk-line.net.good b { color: #2f7d3a; } .bk-line.net.bad b { color: #b63a2a; }
.bk-line.plain b::before { content: ''; }
.bk-box.pattern.rich { border-color: #2f7d3a; } .bk-box.pattern.poor { border-color: #b63a2a; }
.bk-spark { display: flex; align-items: flex-end; gap: 2px; height: 46px; margin-top: 4px; }
.bk-spark i { flex: 1; background: #6fbf5a; min-height: 2px; } .bk-spark i.neg { background: #c8553d; }
@media (max-width: 420px) { .bk-cols { grid-template-columns: 1fr; } }

/* ── new career: the complaint flies off, the difficulty motion is underneath, it goes in the dumpster, you open your eyes ── */
#title > .pleading { grid-area: 1 / 1; }
.pleading.main { z-index: 2; }
.pleading.diff-sheet { z-index: 1; transform: rotate(.7deg); }
.pleading.fly-out { animation: flyOut .8s cubic-bezier(.55, -0.25, .75, .45) forwards; pointer-events: none; }
@keyframes flyOut { to { transform: translate(-34vw, -125vh) rotate(-32deg); } }
.diff-opts { display: grid; margin: 12px 0 2px; border-top: 1px solid #1d1a24; }
.diff-opt { display: grid; grid-template-columns: 22px 1fr; column-gap: 10px; text-align: left; font: 15px/1.35 var(--legal); color: #1d1a24;
  background: transparent; border: 0; border-bottom: 1px solid #cfc9da; padding: 10px 4px; cursor: pointer; transition: background .2s; }
.diff-opt .box { grid-row: 1 / span 2; width: 18px; height: 18px; border: 1.5px solid #1d1a24; margin-top: 2px; position: relative; }
.diff-opt.on .box::after { content: '\2715'; position: absolute; left: 1px; top: -5px; font: 700 21px/1 var(--legal); color: #2f4fa8; }
.diff-opt b { font-size: 16px; text-transform: uppercase; letter-spacing: .06em; }
.diff-opt b small { font-size: 11px; font-weight: 400; letter-spacing: .04em; text-transform: none; font-style: italic; color: #6a6378; margin-left: 6px; }
.diff-opt em { font-size: 13px; color: #5c5668; }
.diff-more { grid-column: 2; max-height: 0; overflow: hidden; font-size: 13.5px; line-height: 1.5; transition: max-height .35s ease, margin .35s; }
.diff-opt.on { background: rgba(255, 236, 150, .28); }
.diff-opt.on .diff-more { max-height: 260px; margin-top: 6px; }
.diff-sheet .file-btn:disabled { opacity: .35; cursor: default; }
.filed.granted { color: #b33a2e; top: 64%; width: auto; min-width: 0; max-width: 86%; }
/* the stamp sizes to the word and to the sheet: phone fonts run wider, and a fixed width clipped the ED off GRANTED */
.filed.granted b { white-space: nowrap; font-size: clamp(22px, 7.6vw, 36px); letter-spacing: .1em; padding: 0 .06em 0 .16em; }
#dumpster { position: fixed; left: 50%; bottom: calc(6px + var(--safe-b)); width: 124px; z-index: 55; image-rendering: pixelated; pointer-events: none;
  transform: translate(-50%, 150%); transition: transform .5s cubic-bezier(.2, 1.35, .4, 1); filter: drop-shadow(0 6px 8px rgba(0, 0, 0, .45)); }
#dumpster.up { transform: translate(-50%, 0); }
#dumpster.bump { animation: dumpBump .4s; }
@keyframes dumpBump { 30% { transform: translate(-50%, 7px) scale(1.06, .9); } 65% { transform: translate(-50%, -5px) scale(.97, 1.04); } }
#eyes { position: fixed; inset: 0; z-index: 96; pointer-events: none; opacity: 0; transition: opacity .45s; overflow: hidden; }
#eyes.shut { opacity: 1; }
#eyes .lid { position: absolute; left: -15%; right: -15%; height: 54%; background: #000; box-shadow: 0 0 60px 40px #000; }
#eyes .lid.top { top: 0; border-radius: 0 0 50% 50% / 0 0 26% 26%; }
#eyes .lid.bot { bottom: 0; border-radius: 50% 50% 0 0 / 26% 26% 0 0; }
#eyes.open .lid.top { animation: lidTop 3s ease-in-out forwards; }
#eyes.open .lid.bot { animation: lidBot 3s ease-in-out forwards; }
@keyframes lidTop { 0% { transform: translateY(0); } 15% { transform: translateY(-16%); } 25% { transform: translateY(0); } 45% { transform: translateY(-42%); } 56% { transform: translateY(-30%); } 100% { transform: translateY(-125%); } }
@keyframes lidBot { 0% { transform: translateY(0); } 15% { transform: translateY(16%); } 25% { transform: translateY(0); } 45% { transform: translateY(42%); } 56% { transform: translateY(30%); } 100% { transform: translateY(125%); } }
body.waking #scene { animation: waking 3.6s ease-out both; }
@keyframes waking { 0% { filter: blur(12px) brightness(.2) saturate(.4); } 45% { filter: blur(6px) brightness(.6) saturate(.7); } 75% { filter: blur(1.5px) brightness(.9); } 100% { filter: none; } }
body.waking #hud, body.waking #bar, body.waking #minimap, body.waking #zoomCtl { animation: wakeUI 1s 2.6s both; }
@keyframes wakeUI { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .pleading.fly-out { animation: none; opacity: 0; }
  #eyes.open .lid.top, #eyes.open .lid.bot { animation: none; opacity: 0; }
  body.waking #scene { animation: waking 1.2s ease-out both; }
}
.pleading .crease { position: absolute; inset: 0; pointer-events: none; z-index: 5; opacity: 0;
  background:
    radial-gradient(ellipse 60% 50% at 38% 34%, rgba(255, 255, 255, .35), transparent 60%),
    repeating-linear-gradient(33deg, transparent 0 22px, rgba(40, 30, 60, .22) 22px 26px, transparent 26px 41px),
    repeating-linear-gradient(-58deg, transparent 0 30px, rgba(40, 30, 60, .2) 30px 35px, transparent 35px 52px),
    repeating-linear-gradient(94deg, transparent 0 44px, rgba(255, 255, 255, .4) 44px 47px, transparent 47px 70px),
    radial-gradient(ellipse at 70% 80%, rgba(20, 16, 30, .45), transparent 65%); }
.diff-sheet .court { margin-top: 34px; }

/* three save files, as manila case folders on the title pleading */
.files { margin-top: 16px; }
.files-h { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 6px; border-bottom: 1px solid #1d1a24; padding-bottom: 3px; }
#fileRows { display: grid; gap: 6px; }
.file-row { display: grid; gap: 3px; }
.file-pick { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 10px; text-align: left; cursor: pointer;
  font: 13px/1.3 var(--legal); color: #1d1a24; background: #f1e1b6; border: 1px solid #b89a5a; border-radius: 3px 10px 3px 3px; padding: 7px 10px;
  box-shadow: 0 1px 0 #c9ad6c; }
.file-row.on .file-pick { background: #fbeec8; border-color: #1d1a24; box-shadow: 0 0 0 1px #1d1a24; cursor: default; }
.file-row.empty .file-pick { background: #f5f1e6; border-style: dashed; color: #6a6378; }
.file-no { display: grid; font-weight: 700; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; }
.file-info { display: grid; min-width: 0; }
.file-info b { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-info span { font-size: 11.5px; color: #5c5668; }
.file-pick em { font-size: 10.5px; font-weight: 400; letter-spacing: 0; text-transform: none; color: #2f4fa8; }
.file-erase { justify-self: end; font: 11.5px var(--legal); color: #a33; background: transparent; border: 1px solid #c99; border-radius: 3px; padding: 3px 9px; cursor: pointer; }
.file-erase.armed { background: #a33; color: #fff; border-color: #a33; }
/* the complaint flips over the top like a legal pad to reveal the Motion to Continue */
.pleading.cont-sheet { z-index: 1; transform: rotate(-.4deg); }
.cont-sheet .court { margin-top: 34px; }
.pleading.flip-away { transform-origin: 50% 0; animation: flipAway .7s cubic-bezier(.5, 0, .75, .4) forwards; pointer-events: none; }
@keyframes flipAway { 0% { transform: perspective(1400px) rotate(-.6deg) rotateX(0); } 55% { opacity: 1; } 100% { transform: perspective(1400px) translateY(-40px) rotateX(105deg); opacity: 0; } }
.pleading.flip-back { transform-origin: 50% 0; animation: flipBack .6s cubic-bezier(.25, .6, .4, 1) both; }
@keyframes flipBack { 0% { transform: perspective(1400px) translateY(-40px) rotateX(105deg); opacity: 0; } 45% { opacity: 1; } 100% { transform: perspective(1400px) rotate(-.6deg) rotateX(0); } }
.file-info span.open { color: #2f4fa8; }
.file-row.picked .file-pick { background: #fff3c4; box-shadow: 0 0 0 2px #2f4fa8; }
#contStamp { top: 72%; }
@media (prefers-reduced-motion: reduce) { .pleading.flip-away, .pleading.flip-back { animation: none; } }
.full-note { margin-top: 8px; font-size: 12.5px; font-style: italic; color: #a33; line-height: 1.4; }
.full-note.need { animation: needName .4s steps(4) 2; }
/* the caption repeats on every page of the filing */
.cap-ro .cap-name { font-size: 15px; text-transform: uppercase; border-bottom: 1.5px solid #1d1a24; padding: 0 3px; }
.cap-ro .caseno span { font-size: 13px; }
.cap-ro .cap-no { font: 700 17px var(--legal); border-bottom: 1.5px solid #1d1a24; padding: 3px 2px; text-transform: uppercase; }
.diff-sheet .court, .cont-sheet .court { margin: 24px 0 12px; }
.diff-sheet .doctitle, .cont-sheet .doctitle { margin-top: 12px; }

/* autosave note: top right, just under the minimap, beside the zoom buttons */
#autoNote { position: fixed; top: calc(138px + var(--safe-t)); right: 60px; z-index: 31; padding: 6px 12px 6px 30px; border-radius: 6px;
  font: 700 13px/1.2 var(--display, system-ui); color: #f6ecd6; background: rgba(34, 26, 38, .92); border: 2px solid #3a2a1e;
  box-shadow: 0 3px 0 rgba(0, 0, 0, .35); opacity: 0; transform: translateY(-6px); transition: opacity .25s, transform .25s; pointer-events: none; }
#autoNote.on { opacity: 1; transform: none; }
#autoNote::before { content: ''; position: absolute; left: 9px; top: 50%; width: 12px; height: 12px; margin-top: -6px; border-radius: 50%;
  border: 2px solid #e8c77a; border-right-color: transparent; animation: autospin .8s linear infinite; }
#autoNote.done::before { border: 0; width: 8px; height: 13px; margin-top: -8px; left: 12px; border-radius: 0; border-right: 3px solid #7fd46a; border-bottom: 3px solid #7fd46a; transform: rotate(45deg); animation: none; }
@keyframes autospin { to { transform: rotate(360deg); } }
body.cinematic #autoNote { visibility: hidden; }
.btn.warn { background: #b33a2e; color: #fff; }
@media (prefers-reduced-motion: reduce) { #autoNote::before { animation: none; } }

/* Hall of Fame */
.hof-tabs { margin: 6px 0 0; flex-wrap: wrap; }
.hof-tabs .btn { padding: 6px 10px; font-size: 13px; min-height: 0; }
.hof-list { margin-top: 8px; }
.hof-row span { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 6px; }
.hof-row em { font-style: normal; font-family: var(--display); color: #8a6a2a; min-width: 1.6em; }
.hof-row small { flex-basis: 100%; padding-left: calc(1.6em + 6px); color: rgba(43, 34, 51, .6); font-size: 11px; }
.hof-row.me { background: rgba(232, 199, 122, .28); border-radius: 4px; padding-left: 4px; padding-right: 4px; }
.hof-row.rip { opacity: .72; }
