/* Grave Shift HUD — moonlit blues with lantern gold. Bottom corners stay free for touch controls. */
:root { --gs-top: 50px; }
@media (max-width: 640px) { :root { --gs-top: 84px; } }
.gs-xp { position: absolute; top: var(--gs-top); left: 14px; right: 14px; height: 12px; border-radius: 8px; background: rgba(8, 12, 28, .7); border: 1px solid rgba(160, 190, 255, .22); overflow: hidden; }
.gs-xp i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #4fd0ff, #9ff7d4); box-shadow: 0 0 12px #5fe0ff; transition: width .12s; }
.gs-lvl { position: absolute; top: calc(var(--gs-top) + 16px); left: 16px; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: #bfe6ff; }
.gs-clock { position: absolute; top: calc(var(--gs-top) + 18px); left: 50%; transform: translateX(-50%); text-align: center; }
.gs-clock b { display: block; font-size: 34px; font-weight: 800; letter-spacing: .04em; font-variant-numeric: tabular-nums; line-height: 1; }
.gs-night { position: relative; width: 190px; height: 6px; margin: 8px auto 0; border-radius: 4px; background: linear-gradient(90deg, #1a2a5c, #33407e 60%, #b9788a 86%, #ffc27a); border: 1px solid rgba(255, 255, 255, .18); }
.gs-night i { position: absolute; top: 50%; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; background: #f1f5ff; box-shadow: 0 0 10px #cfe0ff; }
.gs-night u { position: absolute; top: -3px; width: 2px; height: 12px; background: rgba(255, 110, 110, .85); }
.gs-kills { position: absolute; top: calc(var(--gs-top) + 20px); right: 14px; display: flex; align-items: center; gap: 8px; font-size: 18px; font-variant-numeric: tabular-nums; padding: 4px 12px 4px 6px !important; }
.gs-kills img { width: 30px; height: 30px; }
.gs-slots { position: absolute; top: calc(var(--gs-top) + 42px); left: 14px; display: grid; gap: 6px; }
.gs-slots div { display: flex; gap: 5px; min-height: 42px; }
.gs-slot { position: relative; width: 42px; height: 42px; border-radius: 10px; background: rgba(12, 17, 38, .72); border: 1px solid rgba(160, 190, 255, .25); }
.gs-slot.evo { border-color: #ffc94d; box-shadow: 0 0 10px rgba(255, 201, 77, .55) inset; }
.gs-slot.pas { width: 34px; height: 34px; border-radius: 8px; }
.gs-slot img { width: 100%; height: 100%; display: block; }
.gs-slot s { position: absolute; left: 3px; right: 3px; bottom: 2px; display: flex; gap: 2px; text-decoration: none; }
.gs-slot s i { flex: 1; height: 3px; border-radius: 2px; background: rgba(255, 255, 255, .2); }
.gs-slot s i.on { background: #ffc94d; }
.gs-hp { position: absolute; bottom: calc(26px + env(safe-area-inset-bottom, 0px)); left: 50%; transform: translateX(-50%); width: min(320px, 44vw); }
.gs-hp .bar { height: 16px; border-radius: 9px; background: rgba(8, 12, 28, .75); border: 1px solid rgba(255, 255, 255, .22); overflow: hidden; position: relative; }
.gs-hp .bar i { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, #ff5d6e, #ff9a6a); transition: width .1s; }
.gs-hp .bar span { position: absolute; inset: 0; text-align: center; font-size: 11px; line-height: 15px; letter-spacing: .05em; }
.gs-dash { margin: 6px auto 0; width: 46%; height: 5px; border-radius: 3px; background: rgba(8, 12, 28, .75); overflow: hidden; }
.gs-dash i { display: block; height: 100%; width: 100%; background: #8fd6ff; }
.gs-dash.ready i { background: #c9f4ff; box-shadow: 0 0 8px #8fd6ff; }
.gs-boss { position: absolute; bottom: 74px; left: 50%; transform: translateX(-50%); width: min(520px, 70vw); text-align: center; display: none; }
.gs-boss b { font-size: 15px; letter-spacing: .14em; text-transform: uppercase; color: #ffd0c0; }
.gs-boss .bar { margin-top: 5px; height: 12px; border-radius: 7px; background: rgba(20, 6, 10, .8); border: 1px solid rgba(255, 140, 120, .5); overflow: hidden; }
.gs-boss .bar i { display: block; height: 100%; background: linear-gradient(90deg, #b3122e, #ff5a3c); transition: width .12s; }
.gs-banner { position: absolute; top: 27%; left: 0; right: 0; text-align: center; opacity: 0; transition: opacity .35s; }
.gs-banner.show { opacity: 1; }
.gs-banner b { display: block; font-size: clamp(26px, 4.6vw, 50px); font-weight: 900; letter-spacing: .1em; text-transform: uppercase; color: #ffe9c4; text-shadow: 0 0 3px #000, 0 2px 4px #000, 0 0 24px rgba(255, 140, 60, .7), 0 4px 16px #000; }
.gs-banner span { display: block; margin-top: 6px; font-size: 16px; letter-spacing: .16em; text-transform: uppercase; color: #dfe6ff; text-shadow: 0 0 3px #000, 0 2px 8px #000; }
.gs-note { position: absolute; top: calc(var(--gs-top) + 76px); left: 50%; transform: translateX(-50%); padding: 6px 14px; border-radius: 12px; background: rgba(10, 14, 32, .72); border: 1px solid rgba(160, 190, 255, .25); font-size: 15px; color: #e8eeff; white-space: nowrap; opacity: 0; transition: opacity .3s; }
.gs-note.show { opacity: 1; }
.gs-hurt { position: fixed; inset: 0; pointer-events: none; z-index: 9; opacity: 0; background: radial-gradient(ellipse at center, rgba(255, 0, 30, 0) 45%, rgba(255, 20, 40, .55) 100%); }
.gs-nums { position: absolute; inset: 0; overflow: hidden; }
.gs-nums b { position: absolute; left: 0; top: 0; font-size: 17px; font-weight: 800; color: #fff; text-shadow: 0 0 3px #000, 0 2px 3px #000; will-change: transform; display: none; white-space: nowrap; }
.gs-nums b.crit { font-size: 25px; color: #ffd84a; }
.gs-nums b.hurt { font-size: 22px; color: #ff6b7d; }
.gs-nums b.heal { color: #7dffb0; }
.gs-nums b.xp { color: #9fe8ff; font-size: 15px; }

.overlay.gs-up { background: rgba(4, 7, 18, .68); }
.gs-up-wrap { width: min(100%, 860px); text-align: center; }
.gs-up-wrap h1 { font-size: clamp(26px, 4vw, 40px); letter-spacing: .1em; text-transform: uppercase; color: #ffe9c4; text-shadow: 0 0 22px rgba(255, 150, 60, .6); margin-bottom: 4px; }
.gs-up-wrap p { color: var(--muted); margin: 0 0 18px; }
.gs-cards { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.gs-card { position: relative; flex: 1 1 200px; max-width: 260px; min-height: 250px; padding: 16px 14px 14px; border-radius: 18px; cursor: pointer; text-align: center; color: var(--text); font: inherit;
  background: linear-gradient(180deg, rgba(40, 52, 98, .95), rgba(16, 20, 44, .96)); border: 1px solid rgba(160, 190, 255, .35); box-shadow: 0 16px 44px rgba(0, 0, 0, .55); transition: transform .12s, border-color .12s, box-shadow .12s; }
.gs-card:hover, .gs-card:focus-visible { transform: translateY(-6px); border-color: #ffc94d; box-shadow: 0 20px 50px rgba(0, 0, 0, .6), 0 0 26px rgba(255, 201, 77, .35); outline: none; }
.gs-card img { width: 96px; height: 96px; margin: 2px auto 6px; display: block; filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .6)); }
.gs-card h2 { font-size: 19px; margin: 0 0 4px; }
.gs-card em { display: inline-block; font-style: normal; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; padding: 2px 9px; border-radius: 8px; background: rgba(95, 208, 255, .16); color: #9fe8ff; margin-bottom: 8px; }
.gs-card.new em { background: rgba(95, 242, 192, .16); color: #7dffc8; }
.gs-card.evo { background: linear-gradient(180deg, rgba(120, 82, 20, .96), rgba(44, 26, 10, .97)); border-color: #ffc94d; }
.gs-card.evo em { background: rgba(255, 201, 77, .22); color: #ffd978; }
.gs-card p { font-size: 14px; line-height: 1.35; color: #d5dcf5; margin: 0; }
.gs-card kbd { position: absolute; top: 10px; left: 12px; font: 700 12px var(--font); padding: 2px 7px; border-radius: 6px; background: rgba(255, 255, 255, .12); color: var(--muted); }
.gs-card.static { cursor: default; }
.gs-up-wrap .btn { margin-top: 18px; min-width: 190px; }
@media (max-width: 640px) {
  .gs-card { min-height: 0; flex-basis: 100%; max-width: none; display: grid; grid-template-columns: 64px 1fr; column-gap: 12px; text-align: left; padding: 12px; }
  .gs-card img { width: 64px; height: 64px; grid-row: span 3; margin: 0; } .gs-card kbd { display: none; }
  .gs-clock b { font-size: 26px; } .gs-night { width: 130px; } .gs-slot { width: 34px; height: 34px; } .gs-slot.pas { width: 28px; height: 28px; }
}
/* phones held upright: the stick and Dash button own the bottom corners, so the health bar sits just above them and the
   guardian's bar moves under the weapon slots instead of across the controls */
@media (max-width: 640px) and (pointer: coarse) {
  .gs-hp { bottom: calc(166px + env(safe-area-inset-bottom, 0px)); width: 60vw; }
  .gs-boss { bottom: auto; top: calc(var(--gs-top) + 126px); width: 90vw; }
  .gs-boss b { font-size: 12px; }
  .gs-banner { top: 33%; }
}
