/* Brawl in-fight HUD (gauntlet piece brawl_stage): an action-RPG layout. Portrait plate top-left, stage plate, minimap
   and objective tracker top-right, a keyed skill bar bottom-centre and a full-width progress strip along the bottom edge. */
.bw.gx { --gx-ink: rgba(8, 12, 26, .82); --gx-edge: rgba(150, 190, 255, .35); --gx-gold: #f3c75a; font-family: Nunito, sans-serif; }
.bw.gx .bw-help { display: none; }

/* ---- portrait plate */
.bw.gx .bw-top { top: 8px; left: 8px; right: 10px; }
.bw.gx .bw-me { position: relative; background: none; padding: 0; gap: 0; align-items: flex-start; filter: drop-shadow(0 3px 6px rgba(0,0,0,.55)); }
.bw.gx .bw-frame { position: relative; z-index: 2; width: 104px; height: 104px; flex: none; clip-path: polygon(14% 0, 100% 0, 86% 100%, 0 100%);
  background: linear-gradient(160deg, #ffe7a0, #b8862a 45%, #6b4a10); padding: 4px; }
.bw.gx .bw-pic { width: 100%; height: 100%; border: 0; border-radius: 0; clip-path: polygon(14% 0, 100% 0, 86% 100%, 0 100%);
  background-color: #1a2a5a; background-size: 210% auto; background-position: center 10%; box-shadow: inset 0 -30px 30px rgba(0,0,0,.35); }
.bw.gx .bw-frame::after { content: ''; position: absolute; inset: 4px; clip-path: polygon(14% 0, 100% 0, 86% 100%, 0 100%); background: linear-gradient(180deg, rgba(255,255,255,.18), transparent 35%, rgba(0,0,30,.45)); pointer-events: none; }
.bw.gx .bw-lv { position: absolute; left: 4px; bottom: 2px; z-index: 3; font: italic 13px 'Lilita One'; color: #ffe39a; text-shadow: 0 2px 0 #3a2400, 0 0 6px #000; letter-spacing: .5px; }
.bw.gx .bw-lv b { font-size: 22px; margin-left: 2px; color: #fff; }
.bw.gx .bw-bars { width: 290px; margin: 8px 0 0 -16px; padding: 6px 14px 8px 26px; background: linear-gradient(90deg, var(--gx-ink) 70%, rgba(8,12,26,0));
  clip-path: polygon(0 0, 100% 0, 94% 100%, 0 100%); border-top: 1px solid var(--gx-edge); }
.bw.gx .bw-name { display: flex; align-items: baseline; gap: 7px; }
.bw.gx .bw-name b { font: 17px 'Lilita One'; color: #fff; text-shadow: 0 2px 0 #000; display: inline; }
.bw.gx .bw-name i { font: 900 9px Nunito; font-style: normal; letter-spacing: 1px; padding: 1px 5px; border-radius: 3px; color: #04110a; background: #8dffb0; }
.bw.gx .bw-name i.t-BRAWL { background: #ff9a5a; } .bw.gx .bw-name i.t-SHOT { background: #7ac8ff; }
.bw.gx .bw-name small { margin-left: auto; color: var(--gx-gold); font-size: 11px; letter-spacing: -1px; text-shadow: 0 1px 0 #000; }
.bw.gx .bw-bar { border-radius: 2px; border: 1px solid rgba(0,0,0,.9); box-shadow: 0 0 0 1px rgba(255,255,255,.14); background: linear-gradient(#0b0f1c, #1d2236); margin-top: 4px; }
.bw.gx .bw-bar i, .bw.gx .bw-bar u { position: absolute; left: 0; top: 0; bottom: 0; }
.bw.gx .bw-bar span { font: 900 10px/1 Nunito; display: flex; align-items: center; justify-content: flex-end; padding-right: 6px; text-shadow: 0 1px 0 #000, 0 0 3px #000; letter-spacing: .3px; }
.bw.gx .bw-me .hp { height: 17px; width: 94%; }
.bw.gx .bw-me .hp span { z-index: 1; font-size: 11px; }
.bw.gx .bw-me .hp i { background: linear-gradient(180deg, #ff9a7a 0%, #ff3a2a 35%, #c0101a 70%, #7a0610 100%); transition: width .08s; }
.bw.gx .bw-me .hp u { background: #ffe9c0; opacity: .85; transition: none; }
.bw.gx .bw-me .hp::after, .bw.gx .bw-me .mp::after { content: ''; position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(90deg, transparent 0 calc(10% - 1px), rgba(0,0,0,.45) calc(10% - 1px) 10%), linear-gradient(rgba(255,255,255,.28), transparent 45%); }
.bw.gx .bw-me .hp.low i { animation: gxLow .5s infinite alternate; }
@keyframes gxLow { to { filter: brightness(1.6) saturate(1.3); } }
.bw.gx .bw-me .mp { height: 11px; width: 88%; }
.bw.gx .bw-me .mp i { background: linear-gradient(180deg, #9fe6ff, #2a8aff 50%, #0d3fb0); }
.bw.gx .bw-me .mp span { font-size: 8.5px; }
.bw.gx .bw-me .sg { height: 7px; width: 70%; }
.bw.gx .bw-me .sg i { background: linear-gradient(90deg, #ff8a1a, #ffe14a, #fff6c0); }
.bw.gx .bw-me .sg span { font-size: 7px; justify-content: flex-start; padding-left: 4px; color: #ffe7a0; letter-spacing: 1px; }

/* ---- buttons, stage plate, minimap, objectives */
.bw.gx .bw-btns { position: absolute; top: 0; right: 0; gap: 5px; }
.bw.gx .bw-btns .btn { padding: 3px 9px; font-size: 13px; min-height: 0; border-radius: 4px; }
.bw.gx .bw-side { position: absolute; top: 38px; right: 10px; width: 250px; display: flex; flex-direction: column; align-items: stretch; gap: 0; filter: drop-shadow(0 3px 6px rgba(0,0,0,.5)); }
.bw.gx .bw-stage { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; padding: 5px 12px 5px 22px; background: linear-gradient(90deg, rgba(8,12,26,0), var(--gx-ink) 18%);
  clip-path: polygon(6% 0, 100% 0, 100% 100%, 0 100%); border-bottom: 1px solid var(--gx-edge); }
.bw.gx .bw-stage b { font: 15px 'Lilita One'; color: #fff; text-shadow: 0 1px 0 #000; white-space: nowrap; }
.bw.gx .bw-stage em { font: 800 10.5px Nunito; font-style: normal; color: #ffd27a; white-space: nowrap; }
.bw.gx .bw-map { position: relative; height: 70px; background: linear-gradient(180deg, rgba(16,40,64,.88), rgba(6,14,28,.9)); border: 1px solid rgba(0,0,0,.8); box-shadow: inset 0 0 0 1px rgba(150,200,255,.18); }
.bw.gx .bw-map::before { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(0deg, rgba(120,190,255,.05) 0 1px, transparent 1px 8px), repeating-linear-gradient(90deg, rgba(120,190,255,.05) 0 1px, transparent 1px 8px); }
.bw.gx .bw-map canvas { position: relative; display: block; width: 100%; height: 100%; }
.bw.gx .bw-quest { margin-top: 10px; padding: 0 2px 0 8px; text-align: left; }
.bw.gx .bw-quest p { margin: 0; text-shadow: 0 1px 0 #000, 0 0 4px #000, 0 0 2px #000; }
.bw.gx .bw-quest .q-h { font: 800 13.5px Nunito; color: #ffd84a; display: flex; align-items: center; gap: 6px; }
.bw.gx .bw-quest .q-h i { font-style: normal; display: grid; place-items: center; width: 17px; height: 17px; border-radius: 50%; background: radial-gradient(#3a2a00, #000); border: 1.5px solid #ffd84a; font-size: 10px; }
.bw.gx .bw-quest .q-b { color: #ff9ae8; margin-top: 7px; } .bw.gx .bw-quest .q-b i { border-color: #ff9ae8; color: #ff9ae8; }
.bw.gx .bw-quest .q-s { font: 700 12px Nunito; color: #f2f5ff; padding-left: 23px; }
.bw.gx .bw-quest .q-s span { color: #fff; font-weight: 900; }
.bw.gx .bw-quest .q-s.done span { color: #7dff9a; }

/* ---- skill bar */
.bw.gx .bw-skills { position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 5px; }
.bw.gx .bw-legend { font: 700 11px Nunito; color: #dfe8ff; padding: 3px 14px; background: linear-gradient(90deg, transparent, rgba(30,26,8,.75) 15%, rgba(30,26,8,.75) 85%, transparent); border-top: 1px solid rgba(255,214,90,.4); border-bottom: 1px solid rgba(255,214,90,.4); text-shadow: 0 1px 0 #000; white-space: nowrap; }
.bw.gx kbd { font: 900 9px Nunito; display: inline-block; min-width: 14px; padding: 0 3px; margin: 0 1px; border-radius: 3px; background: #e9edf6; color: #111; box-shadow: 0 2px 0 #6a7488; text-align: center; line-height: 13px; }
.bw.gx .bw-slots { display: flex; align-items: flex-end; gap: 5px; padding: 6px 9px 7px; background: linear-gradient(180deg, rgba(20,24,38,.88), rgba(6,8,16,.92)); border: 1px solid #000;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.12), 0 4px 10px rgba(0,0,0,.5); clip-path: polygon(3% 0, 97% 0, 100% 100%, 0 100%); }
.bw.gx .bw-sep { width: 2px; align-self: stretch; margin: 4px 4px; background: linear-gradient(transparent, rgba(255,214,90,.6), transparent); }
.bw.gx .bw-slot { position: relative; width: 52px; height: 52px; padding: 0; border: 1px solid #000; border-radius: 3px; overflow: hidden; cursor: pointer;
  background: radial-gradient(circle at 50% 40%, #33405e, #121828 75%); box-shadow: inset 0 0 0 1px rgba(255,255,255,.22), inset 0 -10px 14px rgba(0,0,0,.4); }
.bw.gx .bw-slot.big { width: 60px; height: 60px; background: radial-gradient(circle at 50% 40%, #5a2a2a, #1a0c10 75%); }
.bw.gx .bw-slot.sk { background: radial-gradient(circle at 50% 40%, #234a7a, #0a1428 75%); }
.bw.gx .bw-slot.spc { background: radial-gradient(circle at 50% 40%, #6a4a10, #1e1204 75%); }
.bw.gx .bw-slot svg { position: absolute; inset: 7px 7px 11px; width: calc(100% - 14px); height: calc(100% - 18px); filter: drop-shadow(0 0 3px var(--c)) drop-shadow(0 1px 0 #000); }
.bw.gx .bw-slot kbd { position: absolute; left: 2px; top: 2px; margin: 0; font-size: 8.5px; line-height: 11px; min-width: 11px; z-index: 2; }
.bw.gx .bw-slot em { position: absolute; right: 2px; top: 2px; font: 900 8px Nunito; font-style: normal; color: #9fd8ff; text-shadow: 0 1px 0 #000; z-index: 2; }
.bw.gx .bw-slot span { position: absolute; left: 0; right: 0; bottom: 1px; font: 800 8.5px/1.05 Nunito; color: #fff; text-shadow: 0 1px 0 #000, 0 0 3px #000; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding: 0 2px; z-index: 2; }
.bw.gx .bw-slot s { position: absolute; left: 0; right: 0; top: 0; height: 0; background: rgba(4,6,14,.72); z-index: 1; text-decoration: none; transition: height .1s; }
.bw.gx .bw-slot.dim svg { filter: grayscale(1) brightness(.6); }
.bw.gx .bw-slot.ready { box-shadow: inset 0 0 0 2px #ffd84a, 0 0 12px #ffb000; animation: pulse .6s infinite; }
.bw.gx .bw-slot.act, .bw.gx .bw-slot.on { box-shadow: inset 0 0 0 2px #fff, inset 0 0 16px rgba(255,255,255,.4); }
.bw.gx .bw-slot.act svg { filter: drop-shadow(0 0 6px var(--c)) brightness(1.4); }

/* ---- progress strip along the bottom edge */
.bw.gx .bw-strip { position: absolute; left: 0; right: 0; bottom: 0; height: 15px; display: flex; align-items: center; gap: 8px; padding: 0 10px; background: linear-gradient(#141826, #05070d); border-top: 1px solid rgba(255,255,255,.18); font: 800 9.5px Nunito; color: #c8d2ea; }
.bw.gx .bw-strip span { letter-spacing: 1px; color: #8fa0c8; }
.bw.gx .bw-strip em { font-style: normal; color: #fff; min-width: 30px; }
.bw.gx .bw-prog { position: relative; flex: 1; height: 5px; background: #000; border: 1px solid rgba(255,255,255,.15); }
.bw.gx .bw-prog i { position: absolute; left: 0; top: 0; bottom: 0; background: linear-gradient(90deg, #f0a020, #ffe46a); box-shadow: 0 0 6px rgba(255,200,60,.6); }
.bw.gx .bw-prog b { position: absolute; top: -2px; bottom: -2px; width: 1px; background: rgba(255,255,255,.5); left: 33.3%; } .bw.gx .bw-prog b + b { left: 66.6%; }

/* ---- boss bar, foe bars and the rest re-dressed to match */
.bw.gx .bw-boss { top: 10px; width: min(460px, 38vw); filter: drop-shadow(0 3px 6px rgba(0,0,0,.6)); }
.bw.gx .bw-boss b { font: 16px 'Lilita One'; color: #fff; text-shadow: 0 2px 0 #4a0000, 0 0 8px #ff2a1a; }
.bw.gx .bw-boss .bw-bar.hp { height: 16px; } .bw.gx .bw-boss .bw-bar.hp i { background: linear-gradient(180deg, #ff8a6a, #e0141a 45%, #6a0008); }
.bw.gx .bw-ehp { height: 5px; width: 64px; margin-left: -32px; border-radius: 1px; border: 1px solid #000; box-shadow: 0 0 0 1px rgba(255,255,255,.2); }
.bw.gx .bw-combo { top: 46%; right: 270px; }
.bw.gx .bw-go { top: 44%; }

/* small screens and touch: the pad replaces the skill bar; the side panel shrinks */
.bw.gx.touch .bw-skills, .bw.gx.touch .bw-strip { display: none; }
@media (max-width: 900px) {
  .bw.gx .bw-side { width: 190px; } .bw.gx .bw-map { height: 54px; } .bw.gx .bw-quest { display: none; }
  .bw.gx .bw-frame { width: 78px; height: 78px; } .bw.gx .bw-bars { width: 220px; }
  .bw.gx .bw-combo { right: 18px; }
}
@media (max-width: 600px) {
  .bw.gx .bw-side { top: 40px; width: 150px; } .bw.gx .bw-map { display: none; }
  .bw.gx .bw-bars { width: 52vw; } .bw.gx .bw-frame { width: 64px; height: 64px; }
  .bw.gx .bw-boss { top: 112px; width: calc(100% - 24px); }
}
