html, body { margin: 0; height: 100%; overflow: hidden; background: #000; font-family: "Trebuchet MS", sans-serif; color: #fff; }
canvas { display: block; }
#hud { position: fixed; inset: 0; pointer-events: none; }
#goal { position: absolute; top: 16px; left: 16px; font-size: 20px; text-shadow: 0 0 6px #000; max-width: 60vw; }
#stage { position: absolute; top: 60px; right: 16px; font-size: 18px; color: #ff7a2a; text-shadow: 0 0 6px #000; }
#stamina { position: absolute; bottom: 20px; left: 50%; width: 200px; height: 8px; margin-left: -100px; background: #0008; border: 1px solid #fff5; }
#staminaFill { height: 100%; width: 100%; background: #ffd34a; }
#toast { position: absolute; bottom: 70px; width: 100%; text-align: center; font-size: 24px; text-shadow: 0 0 8px #000; opacity: 0; transition: opacity .4s; }
#vignette { position: absolute; inset: 0; background: radial-gradient(transparent 45%, #000 120%); }
#screen { position: fixed; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; background: #000d; text-align: center; padding: 20px; z-index: 5; }
#screen h1 { font-size: 48px; color: #ff7a2a; margin: 0 0 12px; }
#screen p { max-width: 560px; font-size: 18px; line-height: 1.5; }
#screen button { font-size: 22px; padding: 12px 28px; background: #ff7a2a; border: 0; border-radius: 8px; cursor: pointer; }
#dl { position: absolute; top: 60px; left: 16px; display: none; font-size: 16px; text-shadow: 0 0 6px #000; }
#dlBar { width: 220px; height: 10px; margin-top: 4px; background: #0008; border: 1px solid #fff5; }
#dlFill { height: 100%; width: 0; background: #33aaff; }
#settings { margin: 0 0 18px; font-size: 20px; }
#settings button { font-size: 20px; width: 36px; padding: 2px; background: #ff7a2a; border: 0; border-radius: 6px; cursor: pointer; }
#gear { position: fixed; top: 12px; right: 12px; z-index: 4; padding: 8px 14px; font-size: 18px; background: #000a; color: #fff; border: 1px solid #fff5; border-radius: 8px; cursor: pointer; }
#menu { position: fixed; top: 64px; right: 12px; z-index: 6; display: none; width: 260px; padding: 14px; background: #000e; border: 1px solid #ff7a2a; border-radius: 10px; font-size: 18px; }
#menu h2 { margin: 0 0 10px; color: #ff7a2a; }
#menu p { font-size: 14px; color: #ccc; }
#menu button { font-size: 18px; padding: 6px 14px; background: #ff7a2a; border: 0; border-radius: 6px; cursor: pointer; }
#btns { display: flex; gap: 12px; }
#tutoBtn { background: #33c8ff !important; }
#tuto { position: fixed; inset: 0; z-index: 8; display: none; flex-direction: column; align-items: center; justify-content: center; background: #000f; padding: 20px; overflow: auto; }
#tuto h2 { color: #ff7a2a; font-size: 36px; margin: 0 0 10px; }
#tuto p { max-width: 640px; font-size: 17px; line-height: 1.4; margin: 6px 0; }
#tuto button { margin-top: 12px; font-size: 20px; padding: 10px 26px; background: #ff7a2a; border: 0; border-radius: 8px; cursor: pointer; }
