html, body { margin: 0; overflow: hidden; background: #87c6ff; font-family: sans-serif; }
canvas { display: block; }
#viseur { position: fixed; left: 50%; top: 50%; width: 18px; height: 18px; margin: -9px; pointer-events: none;
  background: linear-gradient(#fff, #fff) center/2px 100% no-repeat, linear-gradient(#fff, #fff) center/100% 2px no-repeat; mix-blend-mode: difference; }
#hotbar { position: fixed; bottom: 14px; left: 50%; transform: translateX(-50%); display: flex; gap: 4px; padding: 4px; background: #0008; border-radius: 6px; }
.slot { width: 52px; height: 52px; border: 3px solid #666; box-sizing: border-box; image-rendering: pixelated; background-size: cover; position: relative; }
.slot.on { border-color: #fff; transform: scale(1.12); }
.slot span { position: absolute; left: 2px; top: 0; color: #fff; font-size: 12px; text-shadow: 1px 1px #000; }
#aide { position: fixed; top: 8px; left: 50%; transform: translateX(-50%); color: #fff; background: #0006; padding: 6px 10px; border-radius: 6px; font-size: 13px; text-align: center; pointer-events: none; max-width: 90vw; }
.slot em { position: absolute; right: 3px; bottom: 1px; color: #fff; font-size: 14px; font-style: normal; font-weight: bold; text-shadow: 1px 1px #000; }
#stats { position: fixed; bottom: 80px; left: 50%; transform: translateX(-50%); display: flex; gap: 24px; align-items: center; color: #fff; font-size: 18px; text-shadow: 1px 1px #000; }
#stats .coeurs { color: #e32; letter-spacing: 1px; }
#stats .faim { color: #c8832e; letter-spacing: 1px; }
#stats i { color: #444; font-style: normal; }
#stats .viande { font-size: 13px; background: #0006; padding: 3px 8px; border-radius: 6px; }
#mort { position: fixed; inset: 0; display: flex; align-items: center; justify-content: center; background: #a008; color: #fff; font-size: 32px; font-weight: bold; text-align: center; }
#mort[hidden] { display: none; }
#barre { position: fixed; left: 50%; top: calc(50% + 24px); width: 80px; height: 6px; margin-left: -40px; background: #0006; border-radius: 3px; pointer-events: none; }
#casse { height: 100%; width: 0; background: #fff; border-radius: 3px; }
