* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: #111; overflow: hidden; font-family: "Trebuchet MS", Verdana, sans-serif; }
#game { position: absolute; left: 50%; top: 50%; width: 1280px; height: 720px; transform-origin: center; overflow: hidden; }
canvas { position: absolute; inset: 0; display: block; }

#hud { position: absolute; left: 0; right: 0; top: 0; padding: 8px 16px 9px; background: rgba(10,10,14,.78); color: #fff; font-size: 18px; border-bottom: 2px solid #000; }
#hud .row { display: flex; gap: 22px; align-items: center; white-space: nowrap; }
#hud .stats { font-size: 14px; color: #ddd; margin-top: 6px; gap: 18px; }
#hud i { display: inline-block; height: 10px; background: #333; border: 1px solid #777; vertical-align: middle; margin-left: 6px; }
#hud b { display: block; height: 100%; transition: width .3s; }
#hud .bar i { width: 110px; height: 12px; }
#hud .stat i { width: 90px; }
#hud .lv { color: #ffd23f; font-weight: bold; }
#hud .lv i { width: 90px; } #hud .lv b { background: #ffd23f; }
#h-cash { color: #8f8; font-weight: bold; } #h-bank { color: #9cf; } #h-where { margin-left: auto; color: #fc3; }

#toasts { position: absolute; left: 14px; top: 104px; width: 520px; display: flex; flex-direction: column; gap: 6px; pointer-events: none; }
.toast { background: rgba(0,0,0,.8); color: #fff; padding: 7px 12px; border-left: 4px solid #fc3; font-size: 15px; transition: opacity .6s; }
#help { position: absolute; left: 0; right: 0; bottom: 0; padding: 5px; text-align: center; color: #bbb; background: rgba(0,0,0,.6); font-size: 13px; }

#menu { position: absolute; left: 50%; top: 53%; transform: translate(-50%, -50%); width: 620px; max-height: 590px; overflow: auto;
  background: #fffdf3; border: 4px solid #111; box-shadow: 8px 8px 0 #111; padding: 16px 22px; color: #111; }
#menu.hidden { display: none; }
#menu.wide { width: 900px; }
#menu h2 { margin: 0 0 8px; font-size: 26px; }
#m-text { margin: 0 0 12px; font-size: 16px; white-space: pre-line; }
#menu ol { margin: 0; padding: 0; list-style: none; }
#menu li { padding: 7px 10px; margin: 3px 0; font-size: 18px; border: 2px solid transparent; cursor: pointer; display: flex; justify-content: space-between; gap: 12px; }
#menu li .k { color: #777; width: 24px; display: inline-block; }
#menu li .c { color: #666; font-size: 14px; text-align: right; }
#menu li.sel { border-color: #111; background: #ffe680; }
#menu li.off { color: #aaa; }
#menu .hint { margin-top: 10px; font-size: 12px; color: #888; }

.meter { position: relative; height: 34px; background: #ddd; border: 2px solid #111; margin: 10px 0; }
.meter .zone { position: absolute; top: 0; bottom: 0; background: #6c6; }
.meter .mark { position: absolute; top: -4px; bottom: -4px; width: 6px; background: #111; }
.hpbar { height: 16px; background: #ddd; border: 2px solid #111; margin: 2px 0 8px; }
.hpbar b { display: block; height: 100%; }
.flog { min-height: 22px; font-weight: bold; }
.cards { display: flex; gap: 14px; margin: 4px 0 10px; }
.cards span { width: 64px; height: 88px; border: 3px solid #111; border-radius: 8px; background: #fff; display: flex; align-items: center; justify-content: center; font-size: 32px; font-weight: bold; }
.cards span.back { background: repeating-linear-gradient(45deg, #a33, #a33 6px, #c55 6px, #c55 12px); color: #fff; }

/* character sheet */
#m-text .xp { font-weight: bold; color: #a80; margin-bottom: 10px; }
#m-text .st { display: grid; grid-template-columns: 90px 40px 300px 1fr; align-items: center; gap: 12px; padding: 7px 0; border-bottom: 1px solid #e4dfcc; white-space: normal; }
#m-text .sn { font-weight: bold; font-size: 18px; }
#m-text .sv { font-size: 22px; font-weight: bold; }
#m-text .sb { position: relative; height: 16px; background: #e6e2d3; border: 2px solid #111; }
#m-text .sb b { display: block; height: 100%; }
#m-text .sb i { position: absolute; top: -3px; bottom: -3px; width: 2px; background: #111; opacity: .35; }
#m-text .sd { font-size: 14px; line-height: 1.35; }
#m-text .sd span { color: #777; font-size: 13px; }
#m-text .jobs { width: 100%; border-collapse: collapse; margin: 10px 0; font-size: 14px; white-space: normal; }
#m-text .jobs td { padding: 4px 6px; border-bottom: 1px solid #eee; vertical-align: top; }
#m-text .jobs td:first-child { font-weight: bold; width: 70px; }
#m-text .jobs td:nth-child(2) { width: 210px; }
#m-text .perks { font-size: 14px; margin: 6px 0; white-space: normal; }
#m-text .perks span { display: inline-block; background: #ffd23f; border: 2px solid #111; padding: 1px 8px; margin: 2px; font-weight: bold; }
#m-text .rec { font-size: 13px; color: #555; white-space: normal; }
#m-text .jobs tr.cur td { background: #fff3b0; }
#h-job { color: #ffd23f; } #h-car { color: #9cf; font-size: 15px; }
#hud .info { font-size: 13px; color: #cde; margin-top: 4px; gap: 22px; }
#h-quest { color: #ffd23f; } #h-mute { margin-left: auto; color: #888; }
#menu.fight { left: auto; right: 24px; top: auto; bottom: 40px; transform: none; width: 340px; padding: 12px 16px; }
#menu.fight h2 { font-size: 20px; } #menu.fight #m-text { font-size: 14px; }
#menu.fight li { font-size: 16px; padding: 5px 8px; }
.swatches { display: flex; gap: 8px; margin: 12px 0 4px; }
.swatches span { width: 30px; height: 30px; border: 2px solid #111; display: inline-block; }
#m-text .quests { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 18px; white-space: normal; font-size: 14px; }
#m-text .quests div { padding: 4px 0; border-bottom: 1px solid #e4dfcc; }
#m-text .quests .done { color: #3a8a3a; } #m-text .quests span { color: #777; font-size: 12.5px; } #m-text .quests i { color: #a80; }
#m-text .legacy { font-size: 15px; margin-bottom: 10px; white-space: normal; }
#m-text .board { width: 100%; border-collapse: collapse; font-size: 15px; } #m-text .board td { padding: 4px 8px; border-bottom: 1px solid #eee; }
