/* MYTHVEIL Public Demo 2.0 — unified dungeon / Keystone / boss HUD.
   CSS only: never mutates world geometry, combat events, skill data, or save schema.
   The game renders a 1280×720 logical canvas and scales #shell. */
#shell.mv20-dungeon #mv150CombatInfoRail {display:none!important}
#shell.mv25-hud.mv20-dungeon #mv15DungeonRoute {
  position:absolute!important;top:119px!important;left:1036px!important;right:auto!important;bottom:auto!important;
  width:228px!important;height:auto!important;min-height:0!important;max-height:427px!important;
  margin:0!important;padding:9px 11px 10px!important;box-sizing:border-box!important;
  display:flex!important;flex-direction:column!important;gap:6px!important;
  border:1px solid rgba(169,134,79,.84)!important;border-radius:10px!important;
  background:linear-gradient(155deg,rgba(9,28,32,.96),rgba(7,17,25,.94))!important;
  box-shadow:0 9px 30px rgba(0,0,0,.38),inset 0 0 0 1px rgba(236,192,110,.07)!important;
  color:#e4e4d9!important;font:10px/1.33 'Segoe UI',Arial,sans-serif!important;
  z-index:25!important;pointer-events:auto!important;overflow-y:auto!important;overflow-x:hidden!important;
  scrollbar-width:thin;scrollbar-color:rgba(176,151,101,.52) transparent;
}
#shell.mv25-hud #mv15DungeonRoute[hidden]{display:none!important}
#shell.mv20-dungeon #mv20TrackToolbar{display:flex;gap:5px;align-items:center;min-height:22px;flex:0 0 auto}
#shell.mv20-dungeon #mv20TrackLabel{font:800 9px/1.2 'Segoe UI',Arial,sans-serif;letter-spacing:.5px;color:#c2a679;flex:1;min-width:0}
#shell.mv20-dungeon .mv20-tool{width:23px;height:22px;flex:0 0 23px;border:1px solid rgba(152,130,88,.65);border-radius:4px;background:rgba(21,41,46,.75);color:#e4d0a8;font:700 12px/20px Arial,sans-serif;padding:0;cursor:pointer;pointer-events:auto}
#shell.mv20-dungeon .mv20-tool:hover,#shell.mv20-dungeon .mv20-tool:focus-visible{background:#39504b;border-color:#f0c57e;outline:1px solid #deb36e;outline-offset:1px}
#shell.mv20-dungeon .mv20-tool[aria-pressed="true"]{background:#4b4932;border-color:#edcb8b;color:#fff4d8}
#shell.mv20-dungeon #mv20ResetHud{display:none}
#shell.mv20-editing.mv20-dungeon #mv20ResetHud{display:block}
#shell.mv20-dungeon #mv20TrackDivider{height:1px;background:linear-gradient(90deg,rgba(216,174,99,.45),transparent);margin:0 0 1px}
#shell.mv20-dungeon #mv15DungeonTitle{flex:none!important;font:800 11px/1.3 Georgia,serif!important;color:#f2cf8d!important;letter-spacing:.35px!important}
#shell.mv20-dungeon #mv15DungeonStatus{font:10.5px/1.4 'Segoe UI','Microsoft YaHei',sans-serif!important;color:#e0e6df!important;max-height:29px!important;overflow:hidden!important;flex:none!important;display:-webkit-box!important;-webkit-box-orient:vertical!important;-webkit-line-clamp:2!important;line-clamp:2!important}
#shell.mv20-dungeon #mv20BossCount{flex:none!important;color:#b7cfc6;font:750 9px/1.25 'Segoe UI',sans-serif;letter-spacing:.25px}
#shell.mv20-dungeon #mv15BossTrack{flex:none!important;display:grid!important;grid-template-columns:repeat(3,1fr)!important;gap:5px!important;margin:0!important}
#shell.mv20-dungeon #mv15BossTrack span{display:flex!important;justify-content:center!important;align-items:center!important;padding:4px 0!important;border-radius:4px!important;border:1px solid rgba(125,111,81,.6)!important;background:#263735!important;color:#d8c49e!important;font:750 10px Georgia,serif!important;min-height:20px;box-sizing:border-box}
#shell.mv20-dungeon #mv15BossTrack span.done{background:rgba(37,92,77,.85)!important;color:#c5efdc!important;border-color:#68ae8a!important}
#shell.mv20-dungeon #mv15BossTrack span.active{background:#55442b!important;color:#fff0c7!important;outline:1px solid #e3b46a!important}
#shell.mv20-dungeon #mv16KeystoneHud{flex:none!important;display:flex!important;flex-direction:column!important;gap:4px!important;padding:8px 8px 7px!important;margin:1px 0 0!important;border:1px solid rgba(173,146,98,.55)!important;border-radius:6px!important;background:rgba(8,22,29,.76)!important;color:#ddded4!important}
#shell.mv20-dungeon #mv16KeystoneHud[hidden]{display:none!important}
#shell.mv20-dungeon #mv16KeystoneHud .mv16-head{display:flex!important;justify-content:space-between!important;align-items:baseline!important;gap:6px!important}
#shell.mv20-dungeon #mv16HudTitle{font:800 11px/1.2 Georgia,serif!important;color:#e8c184!important}
#shell.mv20-dungeon #mv16HudTime{font:800 13px/1.2 'Segoe UI',sans-serif!important;white-space:nowrap!important;color:#f5e6b7!important;font-variant-numeric:tabular-nums!important}
#shell.mv20-dungeon #mv16HudTime.mv16-late{color:#ffb59f!important}
#shell.mv20-dungeon #mv16ForceLabel{font:10px/1.3 'Segoe UI','Microsoft YaHei',sans-serif!important;color:#c9dad6!important}
#shell.mv20-dungeon #mv16ForceTrack{height:5px!important;margin:1px 0 2px!important;background:#17303a!important;border-radius:6px!important;overflow:hidden!important}
#shell.mv20-dungeon #mv16ForceFill{display:block!important;height:100%!important;background:linear-gradient(90deg,#428f8c,#e9c279)!important}
#shell.mv20-dungeon #mv16KeystoneMetrics{font:9px/1.35 'Segoe UI',sans-serif!important;color:#b5c8c5!important;white-space:normal!important;overflow-wrap:anywhere!important}
#shell.mv20-dungeon #mv16HudAffixes{font:9px/1.35 'Segoe UI',sans-serif!important;color:#c4b293!important;max-height:30px!important;overflow:hidden!important}
#shell.mv20-dungeon #mv15DungeonMap{display:block!important;box-sizing:border-box!important;align-self:center!important;margin:2px auto 0!important;width:104px!important;height:104px!important;max-width:104px!important;max-height:104px!important;border:1px solid rgba(123,146,120,.67)!important;border-radius:6px!important;background:#0c1c20!important;flex:none!important;pointer-events:none!important}
#shell.mv20-dungeon #mv15DungeonRouteTip{flex:none!important;font:9px/1.38 'Segoe UI','Microsoft YaHei',sans-serif!important;color:#a9c4b9!important;margin:1px 0 0!important;max-height:27px!important;min-height:0!important;overflow:hidden!important;display:-webkit-box!important;-webkit-box-orient:vertical!important;-webkit-line-clamp:2!important;line-clamp:2!important}
#shell.mv20-dungeon #mv20DetailsBtn{width:100%;height:24px;flex:none;position:sticky;bottom:0;border:1px solid rgba(156,135,94,.64);border-radius:5px;background:rgba(27,48,52,.60);color:#ecd9ae;font:700 10px/20px 'Segoe UI','Microsoft YaHei',sans-serif;cursor:pointer;pointer-events:auto}
#shell.mv20-dungeon #mv20DetailsBtn:hover,#shell.mv20-dungeon #mv20DetailsBtn:focus-visible{border-color:#dfb779;background:#3e554f;outline:1px solid #ad9363;outline-offset:1px}
#shell.mv20-dungeon.mv20-map-off #mv15DungeonMap{display:none!important}
#shell.mv20-dungeon.mv20-compact #mv15DungeonRouteTip{display:none!important}
#shell.mv20-dungeon.mv20-compact #mv15DungeonMap{width:86px!important;height:86px!important;max-width:86px!important;max-height:86px!important}
#shell.mv20-dungeon.mv20-compact #mv15DungeonStatus{-webkit-line-clamp:1!important;line-clamp:1!important;max-height:17px!important}
#shell.mv20-dungeon.mv20-compact #mv16HudAffixes{display:none!important}
/* Detail drawer is a deliberate optional overlay LEFT of the right-side HUD, never over its map. */
#shell.mv20-dungeon.mv142-in-combat #mv142Details{
 position:absolute!important;top:121px!important;left:806px!important;right:auto!important;bottom:auto!important;
 width:216px!important;max-height:320px!important;overflow-y:auto!important;z-index:29!important;
 border:1px solid rgba(181,147,90,.78)!important;border-radius:9px!important;
 background:linear-gradient(150deg,rgba(11,28,34,.98),rgba(7,15,25,.97))!important;
 box-shadow:0 10px 24px #000b!important;font:10px/1.46 'Segoe UI',Arial,sans-serif!important;
 padding:10px 11px!important;box-sizing:border-box!important;pointer-events:auto!important;
}
#shell.mv20-dungeon #mv142Details:not(.mv142-open){display:none!important}
/* Keep Class Chain independently anchored in its own nonoverlapping lower-right zone. */
#shell.mv20-dungeon.mv142-in-combat #mv12Chain{
 position:absolute!important;top:568px!important;left:1026px!important;bottom:auto!important;right:auto!important;
 width:238px!important;max-width:238px!important;min-height:0!important;
 border-radius:9px!important;padding:8px 10px!important;z-index:24!important;
 background:linear-gradient(145deg,rgba(13,28,36,.95),rgba(10,19,27,.96))!important;
 box-shadow:0 6px 20px #0009!important;
}
#shell.mv20-dungeon #mv12Chain #mv12ChainLine{font-size:11px!important;line-height:1.3!important}
/* Existing boss readouts are live from the original combat state machine. */
#shell.mv142-in-combat #mv142BossPanel.mv20-boss{
  top:15px!important;width:446px!important;height:86px!important;padding:9px 14px!important;
  border-color:rgba(211,164,95,.88)!important;background:linear-gradient(145deg,rgba(13,29,34,.97),rgba(6,17,27,.97))!important;
}
#shell #mv142BossPanel.mv20-boss #mv142BossMechanic{font-size:13px!important;line-height:27px!important;height:27px!important}
#shell #mv142BossPanel.mv20-boss .mv142-boss-top{gap:6px!important}
#shell #mv142BossPanel.mv20-boss #mv142BossName{max-width:257px!important}
#shell #mv20BossCue{display:none;font:800 9px 'Segoe UI',sans-serif;white-space:nowrap;padding:2px 5px;border:1px solid rgba(252,156,122,.75);border-radius:4px;color:#ffd3bb;background:rgba(102,35,27,.58);letter-spacing:.35px}
#shell #mv142BossPanel.mv20-boss.mv142-danger #mv20BossCue{display:inline-flex}
#shell #mv142BossPanel.mv20-boss.mv142-danger{border-color:#e4a171!important;box-shadow:0 0 0 1px #edb57a33,0 7px 26px #000a!important}
#shell #mv142BossPanel.mv20-boss.mv142-danger #mv142BossMechanic{color:#ffe0ad!important}
/* HUD edit overlay: movement controls appear only in explicit edit mode. */
#shell.mv20-editing.mv20-dungeon #mv15DungeonRoute,
#shell.mv20-editing.mv20-dungeon #mv12Chain,
#shell.mv20-editing.mv20-dungeon #mv142BossPanel:not(.hidden){outline:1px dashed #f0c77a!important;outline-offset:3px!important}
#shell.mv20-editing.mv20-dungeon #mv20TrackToolbar{cursor:move!important;touch-action:none;user-select:none}
#shell.mv20-editing.mv20-dungeon #mv12Chain,
#shell.mv20-editing.mv20-dungeon #mv142BossPanel:not(.hidden){pointer-events:auto!important;cursor:move!important;touch-action:none;user-select:none}
#shell.mv20-editing.mv20-dungeon #mv12Chain .mv12-chain-head{cursor:move}
#shell #mv20EditHint{display:none;position:absolute;right:15px;bottom:11px;z-index:30;max-width:235px;color:#f8e1a9;background:rgba(14,32,35,.94);border:1px solid #c9a16a;border-radius:7px;padding:5px 8px;font:10px/1.3 'Segoe UI',sans-serif;pointer-events:none}
#shell.mv20-editing.mv20-dungeon #mv20EditHint{display:block}
#shell.mv20-dungeon #mv20DetailsBtn[aria-expanded="true"]{background:#435644;color:#fff1c6}
@media (prefers-reduced-motion:reduce){#shell.mv20-dungeon *,#shell #mv142BossPanel.mv20-boss *{transition:none!important;animation:none!important}}
