html, body { margin: 0; height: 100%; overflow: hidden; background: #1c2a24; font-family: "Trebuchet MS", "Segoe UI", sans-serif; }
#game { width: 100%; height: 100%; display: block; outline: none; cursor: crosshair; touch-action: none; }
#loading { position: fixed; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: radial-gradient(circle at 50% 40%, #35594a, #14221c); color: #f4e6bd; z-index: 10; transition: opacity .6s; }
#loading .title { font-size: 44px; letter-spacing: 6px; text-transform: uppercase; text-shadow: 0 0 24px #ff9a3c88; }
#loadmsg { margin-top: 14px; opacity: .8; }
#hud { position: fixed; inset: 0; pointer-events: none; color: #fff7de; text-shadow: 0 1px 4px #000a; }
#hud .zone { position: absolute; top: 18px; left: 24px; font-size: 22px; letter-spacing: 3px; text-transform: uppercase; }
#hud .help { position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%); font-size: 14px; background: #0007; padding: 7px 16px; border-radius: 20px; }
#floaters { position: fixed; inset: 0; pointer-events: none; overflow: hidden; }
.bar { position: absolute; width: 70px; height: 8px; margin-left: -35px; background: #000a; border: 1px solid #000; border-radius: 4px; overflow: hidden; }
.bar > div { height: 100%; background: linear-gradient(#ff7a4a, #c4281e); transition: width .15s; }
.dmg { position: absolute; font-weight: bold; font-size: 22px; color: #ffd34d; text-shadow: 0 0 4px #7a1b00, 0 2px 3px #000; animation: rise .9s ease-out forwards; }
@keyframes rise { from { transform: translate(-50%, 0); opacity: 1; } to { transform: translate(-50%, -50px); opacity: 0; } }
#errors { position: fixed; top: 0; left: 0; right: 0; color: #fff; background: #b00020cc; font: 12px monospace; white-space: pre-wrap; z-index: 20; }
.dmg.burn { font-size: 14px; color: #ff9a3c; animation-duration: .8s; }
#soundhint { position: absolute; top: 18px; right: 24px; font-size: 13px; background: #0007; padding: 6px 12px; border-radius: 14px; animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .55; } }
#audiopanel { position: absolute; top: 14px; right: 20px; pointer-events: auto; text-align: right; }
#sndbtn { background: #0008; color: #fff7de; border: 1px solid #fff3; border-radius: 14px; padding: 5px 12px; font: 13px "Trebuchet MS", sans-serif; cursor: pointer; }
#sndbtn:hover { background: #000b; }
#sndmenu { margin-top: 6px; background: #000c; border: 1px solid #fff2; border-radius: 10px; padding: 10px 14px; width: 190px; text-align: left; font-size: 13px; }
#sndmenu[hidden] { display: none; }
#sndmenu label { display: flex; justify-content: space-between; align-items: center; margin: 5px 0; gap: 10px; }
#sndmenu input[type=range] { width: 100px; accent-color: #ff9a3c; cursor: pointer; }
#sndmenu .chk { justify-content: flex-start; margin-top: 8px; cursor: pointer; }
#soundhint { top: 54px !important; }
#musicrow { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
#nexttrack { background: #fff2; color: #fff7de; border: 1px solid #fff3; border-radius: 10px; padding: 3px 9px; font: 12px "Trebuchet MS", sans-serif; cursor: pointer; }
#nexttrack:hover { background: #fff4; }
#musicstatus { font-size: 11px; opacity: .75; }
#nowplaying { position: absolute; left: 24px; bottom: 56px; font-size: 13px; letter-spacing: .5px; background: #0007; padding: 6px 14px; border-radius: 14px; opacity: 0; transform: translateY(6px); transition: opacity 1.2s, transform 1.2s; }
#nowplaying.show { opacity: .92; transform: none; }
#sndmenu select { background: #fff2; color: #fff7de; border: 1px solid #fff3; border-radius: 8px; padding: 2px 6px; font: 12px "Trebuchet MS", sans-serif; }
#sndmenu select option { color: #111; }
#profilenote { font-size: 11px; opacity: .7; margin: -2px 0 6px; line-height: 1.3; }

/* ===== GIGA UPDATE: gameplay HUD ===== */
#gamehud { position: absolute; inset: 0; pointer-events: none; font-family: "Trebuchet MS", "Segoe UI", sans-serif; }
#gamehud .hidden { display: none !important; }
.hud-vitals { position: absolute; left: 24px; bottom: 24px; width: 250px; }
.vbar { position: relative; height: 16px; margin-top: 6px; background: #0009; border: 1px solid #fff3; border-radius: 8px; overflow: hidden; }
.vbar > div { height: 100%; transition: width .12s; } .vbar.hp > div { background: linear-gradient(#6fe08a, #2f9b4a); } .vbar.chi > div { background: linear-gradient(#7fd6ff, #2a78c9); }
.vbar > span { position: absolute; inset: 0; text-align: center; font-size: 11px; line-height: 16px; color: #fff; text-shadow: 0 1px 2px #000; }
.hud-abilities { position: absolute; left: 50%; bottom: 62px; transform: translateX(-50%); display: flex; gap: 10px; }
.slot { position: relative; width: 58px; height: 58px; background: #0008; border: 2px solid #fff4; border-radius: 12px; overflow: hidden; text-align: center; color: #fff; }
.slot .ic { display: block; font-style: normal; font-size: 24px; line-height: 40px; } .slot .key { position: absolute; top: 2px; left: 5px; font-size: 11px; opacity: .85; }
.slot .nm { position: absolute; bottom: 2px; left: 0; right: 0; font-size: 9px; text-decoration: none; opacity: .9; } .slot .cd { position: absolute; left: 0; right: 0; bottom: 0; background: #000a; }
.slot.fire { border-color: #ff9a4a; } .slot.water { border-color: #5fc8ff; } .slot.earth { border-color: #d3a35e; } .slot.wind { border-color: #aef0cf; }
.slot.nochi { opacity: .55; } .slot.active { box-shadow: 0 0 12px #fff8; } .slot.empty { opacity: .15; }
.hud-elements { position: absolute; left: 50%; bottom: 128px; transform: translateX(-50%); display: flex; gap: 6px; }
.etab { font-size: 11px; padding: 3px 10px; border-radius: 10px; background: #0007; color: #fff9; border: 1px solid #fff2; } .etab b { margin-right: 5px; opacity: .8; }
.etab.on { color: #fff; border-color: #fff9; } .etab.fire.on { background: #b9441f; } .etab.water.on { background: #1f6fa8; } .etab.earth.on { background: #8a6a33; } .etab.wind.on { background: #3f8f73; }
.hud-mastery { position: absolute; left: 50%; bottom: 150px; transform: translateX(-50%); font-size: 11px; color: #fff9; text-shadow: 0 1px 2px #000; }
.hud-combo { position: absolute; right: 40px; top: 38%; text-align: right; color: #fff; text-shadow: 0 2px 8px #000; }
.hud-combo .cn { font-size: 34px; font-weight: bold; letter-spacing: 2px; } .hud-combo .cs { height: 5px; width: 160px; margin: 4px 0 0 auto; background: #fff3; border-radius: 3px; position: relative; } .hud-combo .cs::after { content: ""; position: absolute; inset: 0; width: var(--w, 0%); background: #ffd34d; border-radius: 3px; }
.hud-combo.t2 .cn { color: #ffb347; font-size: 40px; } .hud-combo.t3 .cn { color: #ff7a3a; font-size: 48px; } .hud-combo.t4 .cn { color: #ff4a4a; font-size: 56px; }
.hud-combo.pop .cn { animation: cpop .22s ease-out; } @keyframes cpop { from { transform: scale(1.5); } to { transform: scale(1); } } .hud-combo.end .cn { opacity: .6; font-size: 22px; }
.hud-notes { position: absolute; top: 90px; left: 50%; transform: translateX(-50%); text-align: center; }
.note { font-size: 20px; font-weight: bold; letter-spacing: 2px; color: #fff; text-shadow: 0 2px 6px #000; margin: 4px 0; animation: nin .25s ease-out; transition: opacity .5s; } .note.out { opacity: 0; } .note.perfect { color: #8ff0ff; font-size: 26px; } .note.milestone { color: #ffd34d; font-size: 26px; } .note.boss { color: #ff7a5a; font-size: 28px; } .note.good { color: #9fffb0; }
@keyframes nin { from { transform: translateY(-8px) scale(1.2); opacity: 0; } to { transform: none; opacity: 1; } }
.dmgtotal { position: absolute; left: 0; top: 0; font-weight: 900; text-shadow: 0 0 6px #000, 0 2px 3px #000; transition: opacity .4s; white-space: nowrap; transform-origin: 50% 100%; will-change: transform; }
.dmgtotal .n { font-size: 28px; } .dmgtotal .x { font-size: 13px; margin-left: 4px; color: #fff; opacity: .85; } .dmgtotal.fade { opacity: 0; } .dmgtotal.crit .n { font-size: 34px; }
.ebar { position: absolute; left: 0; top: 0; width: 60px; height: 7px; background: #000a; border: 1px solid #000; border-radius: 4px; overflow: hidden; will-change: transform; } .ebar > div { height: 100%; background: linear-gradient(#ff7a4a, #c4281e); } .ebar.lock { border-color: #ffe45e; box-shadow: 0 0 6px #ffe45e; }
.hud-boss { position: absolute; top: 20px; left: 50%; transform: translateX(-50%); width: 520px; text-align: center; color: #fff; text-shadow: 0 2px 4px #000; }
.hud-boss .bn { font-size: 20px; letter-spacing: 3px; margin-bottom: 4px; } .hud-boss .bb { position: relative; height: 16px; background: #000b; border: 2px solid #fff6; border-radius: 9px; overflow: hidden; }
.hud-boss .bd { position: absolute; left: 0; top: 0; bottom: 0; background: #ffffffaa; } .hud-boss .bf { position: absolute; left: 0; top: 0; bottom: 0; background: linear-gradient(#ff6a4a, #a81818); z-index: 2; } .hud-boss .mk { position: absolute; top: 0; bottom: 0; width: 2px; background: #fff; z-index: 3; }
.hud-boss .bp { margin-top: 4px; font-size: 11px; display: flex; justify-content: center; gap: 8px; } .hud-boss .bp span { opacity: .45; } .hud-boss .bp span.on { opacity: 1; color: #ffd34d; }
.hud-flash { position: fixed; inset: 0; pointer-events: none; opacity: 0; z-index: 5; } .hud-flash.go { animation: hflash .28s ease-out; } @keyframes hflash { from { opacity: .16; } to { opacity: 0; } }
#crosshair { position: absolute; left: 50%; top: 50%; width: 22px; height: 22px; margin: -11px 0 0 -11px; border: 2px solid #ffe9a8cc; border-radius: 50%; box-shadow: 0 0 6px #000a; pointer-events: none; } #crosshair::after { content: ""; position: absolute; left: 8px; top: 8px; width: 2px; height: 2px; background: #fff; }
#hud .help { bottom: 6px !important; font-size: 11px !important; padding: 4px 12px !important; opacity: .8; } .hud-vitals { bottom: 34px !important; } .hud-abilities { bottom: 44px !important; } .hud-elements { bottom: 110px !important; } .hud-mastery { bottom: 132px !important; }
