* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; overflow: hidden; background: #14100d; }
#c { width: 100%; height: 100%; display: block; touch-action: none; outline: none; }

body {
  font: 13px/1.5 ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  color: #efe6da;
}

#hud {
  position: fixed; top: 14px; left: 16px;
  padding: 10px 14px; border-radius: 10px;
  background: rgba(20,16,13,.72); backdrop-filter: blur(8px);
  border: 1px solid rgba(239,230,218,.10);
}
#clock { font-size: 15px; letter-spacing: .02em; }
#where { color: #a89880; font-size: 12px; margin-top: 2px; text-transform: capitalize; }

#menu {
  position: fixed; padding: 5px; border-radius: 9px; min-width: 148px;
  background: rgba(28,23,19,.95); border: 1px solid rgba(239,230,218,.14);
  box-shadow: 0 12px 32px rgba(0,0,0,.5);
}
#menu .title { padding: 6px 10px 7px; color: #a89880; font-size: 11px;
  border-bottom: 1px solid rgba(239,230,218,.08); margin-bottom: 4px; }
#menu button {
  display: block; width: 100%; text-align: left; padding: 7px 10px;
  background: none; border: 0; color: #efe6da; font: inherit; cursor: pointer; border-radius: 6px;
}
#menu button:hover { background: rgba(226,168,90,.18); }

#panel {
  position: fixed; top: 14px; right: 16px; width: 264px; padding: 16px 18px 18px;
  border-radius: 12px; background: rgba(20,16,13,.88); backdrop-filter: blur(10px);
  border: 1px solid rgba(239,230,218,.10); max-height: calc(100vh - 28px); overflow: auto;
}
#panel h2 { margin: 0; font-size: 17px; font-weight: 600; }
#panel h3 { margin: 16px 0 6px; font-size: 10px; letter-spacing: .14em;
  text-transform: uppercase; color: #7d6f5e; font-weight: 600; }
#close { position: absolute; top: 10px; right: 12px; background: none; border: 0;
  color: #7d6f5e; font-size: 19px; cursor: pointer; line-height: 1; }
.muted { color: #a89880; font-size: 12px; }
#p-doing { margin-top: 9px; color: #e2a85a; font-size: 12.5px; min-height: 18px; }

.need { display: flex; align-items: center; gap: 9px; margin-top: 5px; }
.need span { width: 54px; color: #a89880; font-size: 11px; }
.need i { flex: 1; height: 4px; border-radius: 3px; background: rgba(239,230,218,.12); overflow: hidden; }
.need i b { display: block; height: 100%; background: #7fa87f; border-radius: 3px; }
.need.low i b { background: #c9694e; }

.why { display: flex; justify-content: space-between; gap: 10px; padding: 3px 0;
  color: #a89880; font-size: 11.5px; }
.why:first-child { color: #efe6da; }
.why b { font-weight: 500; }

#feed {
  position: fixed; left: 16px; bottom: 40px; width: 330px; max-height: 34vh; overflow: hidden;
  display: flex; flex-direction: column-reverse; gap: 3px; pointer-events: none;
}
#feed div { padding: 5px 10px; border-radius: 7px; font-size: 12px;
  background: rgba(20,16,13,.66); color: #cbbca6; }
#feed div em { color: #7d6f5e; font-style: normal; margin-right: 7px; }
#feed div.t1 { color: #efe6da; border-left: 2px solid #e2a85a; }

#hint { position: fixed; bottom: 13px; left: 16px; color: #6b5f51; font-size: 11.5px; }
