/* Jungle Rally - paper HUD: cream card tags with a dark-brown cut line and a short warm shadow, never glossy */
html, body { margin: 0; height: 100%; overflow: hidden; background: #cfe0c4; font-family: Georgia, 'Times New Roman', serif; color: #2b2416; }
canvas.game { display: block; width: 100%; height: 100%; }
.hidden { display: none !important; }
#hud { position: fixed; inset: 0; pointer-events: none; user-select: none; }
.tag { position: absolute; background: #f2e3c0; border: 2px solid #4a3220; border-radius: 6px; padding: 8px 14px;
       box-shadow: 3px 4px 0 rgba(58, 40, 14, .35); display: flex; align-items: baseline; gap: 8px; }
.tag b { font-size: 26px; font-variant-numeric: tabular-nums; margin-right: 10px; }
.tag b:last-child { margin-right: 0; }
.lbl { font-size: 12px; letter-spacing: .14em; color: #7a5a38; }
.tl { left: 18px; top: 16px; transform: rotate(-1.2deg); }
.tr { right: 18px; top: 16px; transform: rotate(1deg); }
.bl { left: 18px; bottom: 18px; flex-direction: column; align-items: stretch; gap: 6px; min-width: 210px; transform: rotate(.8deg); }
.br { right: 18px; bottom: 18px; padding: 4px; transform: rotate(-1deg); }
.speed b { font-size: 46px; line-height: 1; margin-right: 6px; }
.nos { display: flex; align-items: center; gap: 8px; }
.bar { flex: 1; height: 14px; background: #d9c8a0; border: 2px solid #4a3220; border-radius: 4px; overflow: hidden; }
.bar i { display: block; height: 100%; width: 100%; background: #3c8fb0; transition: background .15s; }
.bar i.on { background: #e2503a; }
#msg { position: absolute; left: 50%; top: 20%; transform: translateX(-50%) rotate(-2deg); background: #f2b33d; border: 2px solid #4a3220;
       border-radius: 6px; padding: 8px 22px; font-size: 28px; font-weight: bold; box-shadow: 3px 4px 0 rgba(58, 40, 14, .35);
       opacity: 0; transition: opacity .25s; white-space: nowrap; }
#msg.show { opacity: 1; }
#count { position: absolute; left: 50%; top: 38%; transform: translate(-50%, -50%); font-size: 150px; font-weight: bold; color: #f2e3c0;
         -webkit-text-stroke: 3px #4a3220; text-shadow: 5px 6px 0 rgba(58, 40, 14, .4); }
.sheet { position: fixed; left: 50%; top: 50%; transform: translate(-50%, -50%) rotate(-.6deg); background: #f2e3c0; border: 3px solid #4a3220;
         border-radius: 10px; padding: 26px 40px 30px; box-shadow: 6px 8px 0 rgba(58, 40, 14, .35); text-align: center; max-width: 92vw; }
.sheet h1 { margin: 0 0 4px; font-size: 54px; color: #e2503a; -webkit-text-stroke: 1.5px #4a3220; letter-spacing: .02em; }
.sheet .sub { margin: 0 0 16px; font-style: italic; color: #5a4a30; white-space: pre-line; }
.sheet table { margin: 0 auto 20px; border-spacing: 10px 6px; text-align: left; font-size: 15px; }
kbd { display: inline-block; min-width: 20px; text-align: center; padding: 2px 7px; background: #fff7e4; border: 2px solid #4a3220;
      border-radius: 4px; box-shadow: 1px 2px 0 #4a3220; font: bold 13px Georgia, serif; }
button { font: bold 24px Georgia, serif; color: #f2e3c0; background: #2f6b4f; border: 3px solid #4a3220; border-radius: 8px; padding: 10px 44px;
         box-shadow: 3px 4px 0 #4a3220; cursor: pointer; }
button:disabled { background: #8a927a; cursor: wait; }
button:not(:disabled):hover { background: #3f8a5a; }
button:not(:disabled):active { transform: translate(2px, 3px); box-shadow: 1px 1px 0 #4a3220; }
