/* v140 multiplayer UI/card overlay polish */
.card.card-art-v118 .dynamic-cost-v124{
  z-index:20!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  padding:0!important;
  box-sizing:border-box!important;
  color:#fff!important;
  font-family:"Arial Narrow","Roboto Condensed","Helvetica Neue",Arial,sans-serif!important;
  font-stretch:condensed!important;
  font-weight:900!important;
  letter-spacing:0!important;
  text-indent:0!important;
  text-align:center!important;
  text-shadow:0 1px 2px #000,0 0 4px #001d33!important;
  pointer-events:none!important;
}
.card.card-art-v118 .dynamic-damage-v119.dynamic-damage-art-v120{
  z-index:19!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  padding:0!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  color:#fff!important;
  font-family:"Arial Narrow","Roboto Condensed","Helvetica Neue",Arial,sans-serif!important;
  font-stretch:condensed!important;
  font-weight:900!important;
  line-height:1!important;
  letter-spacing:-.025em!important;
  white-space:nowrap!important;
  text-shadow:0 1px 2px #000,0 0 4px #00131f!important;
  box-shadow:none!important;
  pointer-events:none!important;
}
.card-upgrade-v118{display:none!important}
.card-upgrade-name-v140,.upgrade-preview-plus-v140{
  position:absolute;
  z-index:22;
  left:var(--upgrade-x,70%);
  top:7.4%;
  transform:translate(-50%,-50%);
  color:#72ff9c!important;
  font:1000 18px/1 Arial,sans-serif!important;
  text-shadow:0 1px 2px #000,0 0 6px #00a83a;
  pointer-events:none;
}
.upgrade-grid-v140{display:grid;grid-template-columns:repeat(auto-fill,minmax(205px,1fr));gap:16px;align-items:start;overflow:visible;padding:8px 0 18px}
.upgrade-choice-v140{position:relative;display:flex;flex-direction:column;align-items:center;width:100%;min-height:320px;padding:8px;border:1px solid #36455d;border-radius:13px;background:#0c121b;overflow:visible;transition:.14s ease}
.upgrade-choice-v140:hover{z-index:90;transform:translateY(-4px);border-color:#68df8b;box-shadow:0 18px 42px rgba(0,0,0,.52)}
.upgrade-choice-v140 .card{width:174px!important;min-width:174px!important;height:254px!important;pointer-events:none}
.upgrade-name-v140{margin-top:7px;color:#eaf1fb;font-size:12px;font-weight:900;line-height:1.15}
.upgrade-name-v140 span,.text-plus-v140{margin-left:2px;color:#72ff9c;font-weight:1000}
.upgrade-compare-v140{position:absolute;left:calc(100% + 10px);top:8px;width:330px;padding:11px;border:1px solid #516580;border-radius:11px;background:#080e16;box-shadow:0 18px 48px rgba(0,0,0,.68);opacity:0;visibility:hidden;transform:translateX(-5px);transition:.12s ease;pointer-events:none;text-align:left}
.upgrade-choice-v140:hover .upgrade-compare-v140{opacity:1;visibility:visible;transform:none}
.upgrade-row-v140{padding:9px;border:1px solid #2c3b50;border-radius:8px;background:#111925}
.upgrade-row-v140+.upgrade-row-v140{margin-top:8px}
.upgrade-row-v140.after{border-color:#36744a;background:#0f2016}
.upgrade-row-v140 b{display:flex;justify-content:space-between;gap:8px;color:#aebbd0;font-size:10px;letter-spacing:.08em}
.upgrade-row-v140.after b{color:#80efa0}
.upgrade-row-v140 em{font-style:normal;color:#fff}
.upgrade-row-v140 p{margin:6px 0 0;color:#e0e6ef;font-size:11px;line-height:1.38}
.upgrade-hint-v140{color:#98a6ba;font-size:12px}
.start-event,.camp-panel,.camp-subpanel{overflow:visible!important}

.inventory-chip.item-v140,.relic-chip.relic-v140{
  position:relative!important;
  display:flex!important;
  align-items:flex-start!important;
  justify-content:flex-start!important;
  gap:8px!important;
  min-width:145px!important;
  max-width:180px!important;
  min-height:64px!important;
  padding:9px 10px!important;
  border-radius:10px!important;
  text-align:left!important;
  white-space:normal!important;
  transition:transform .14s ease,border-color .14s ease,box-shadow .14s ease!important;
}
.inventory-chip.item-v140:hover,.relic-chip.relic-v140:hover{
  transform:translateY(-3px) scale(1.025);
  border-color:#7088aa!important;
  box-shadow:0 12px 28px rgba(0,0,0,.42)!important;
  z-index:80;
}
.object-icon-v140{flex:0 0 auto;font-size:23px;line-height:1}
.object-copy-v140{display:block!important;min-width:0!important}
.object-copy-v140 b{display:block!important;font-size:11px!important;line-height:1.15}
.object-copy-v140 small{display:block!important;margin-top:5px!important;color:#b8c3d3!important;font-size:9px!important;line-height:1.3!important}
.item-actions-v140{display:flex;flex-wrap:wrap;gap:4px;width:100%}
.relic-tooltip-v140{
  position:absolute;
  left:50%;
  bottom:calc(100% + 8px);
  width:260px;
  padding:10px;
  transform:translateX(-50%) translateY(5px);
  border:1px solid #516783;
  border-radius:10px;
  background:#070c13;
  color:#eef5ff;
  font-size:11px;
  line-height:1.4;
  box-shadow:0 18px 44px rgba(0,0,0,.7);
  opacity:0;
  visibility:hidden;
  transition:.12s ease;
  pointer-events:none;
}
.relic-tooltip-v140 strong{display:block;margin-bottom:4px;color:#7fe6ff;font-size:10px;letter-spacing:.1em}
.relic-v140:hover .relic-tooltip-v140{opacity:1;visibility:visible;transform:translateX(-50%) translateY(0)}
body[data-phase="combat"] .inventory-panel{
  width:430px!important;
  padding:8px 10px!important;
  overflow:visible!important;
}
body[data-phase="combat"] .inventory-panel>div{margin-right:10px!important}
body[data-phase="combat"] .inventory-list,body[data-phase="combat"] .relic-list{display:flex!important;gap:7px!important;flex-wrap:wrap!important;overflow:visible!important}
body[data-phase="combat"] .inventory-chip,body[data-phase="combat"] .relic-chip{font-size:10px!important;max-width:180px!important}
.reward-object,.shop-offer.relic-offer{transition:transform .14s ease,border-color .14s ease,box-shadow .14s ease}
.reward-object:hover,.shop-offer.relic-offer:hover{transform:translateY(-3px) scale(1.02);border-color:#6d85aa!important;box-shadow:0 12px 28px rgba(0,0,0,.32)}
.reward-object{font-size:1.08em}
.shop-offer{min-height:112px!important;padding:14px!important}
.shop-offer>b{font-size:13px!important}
.shop-offer>span{font-size:11px!important;line-height:1.35!important}

body[data-phase="combat"] .party-panel{height:350px!important;overflow:visible!important}
body[data-phase="combat"] .party{align-items:flex-end!important;overflow:visible!important}
body[data-phase="combat"] .combat-player-v140{
  position:relative;
  width:190px!important;
  min-width:175px!important;
  height:330px!important;
  min-height:330px!important;
  padding:0!important;
  border:0!important;
  background:none!important;
  box-shadow:none!important;
  overflow:visible!important;
}
.field-figure-v140{position:absolute;inset:0;display:flex;align-items:flex-end;justify-content:center;overflow:visible}
.character-art-v140{position:absolute;left:50%;bottom:0;transform:translateX(-50%);width:180px;height:275px;object-fit:contain;object-position:center bottom;filter:drop-shadow(0 17px 21px rgba(0,0,0,.55));z-index:1}
.player-overlay-v140{
  position:absolute;
  left:2px;
  right:2px;
  top:0;
  z-index:5;
  padding:7px 8px;
  border:1px solid #455772;
  border-radius:9px;
  background:rgba(6,11,17,.83);
  backdrop-filter:blur(5px);
  box-shadow:0 7px 18px rgba(0,0,0,.30);
}
.player-overlay-head-v140{display:flex;justify-content:space-between;gap:5px;align-items:center;font-size:9px}
.player-overlay-head-v140 span{color:#9ba8ba;font-size:8px}
.player-hp-v140{position:relative;height:15px;margin-top:5px;border:1px solid #536078;border-radius:4px;background:#10151d;overflow:hidden}
.player-hp-v140>span{position:absolute;inset:0 auto 0 0;background:linear-gradient(90deg,#c92e4b,#fb627b)}
.player-hp-v140>b{position:absolute;inset:0;display:grid;place-items:center;color:#fff;font-size:9px;text-shadow:0 1px 2px #000}
.player-buffs-v140{display:flex;gap:4px;flex-wrap:wrap;justify-content:center;margin-top:5px}
.player-buffs-v140 span{padding:2px 4px;border:1px solid #3b4b63;border-radius:4px;background:rgba(9,16,25,.90);font-size:8px;color:#e3eaf4;white-space:nowrap}
.combat-player-v140.me .player-overlay-v140{border-color:#4587a5;box-shadow:0 0 0 1px rgba(65,199,255,.12),0 7px 18px rgba(0,0,0,.3)}
.field-figure-v140 .player-fx-layer{position:absolute;inset:0;z-index:8;pointer-events:none}

@media(max-width:1000px){
  body[data-phase="combat"] .inventory-panel{width:350px!important}
  body[data-phase="combat"] .combat-player-v140{width:160px!important;min-width:150px!important}
  .character-art-v140{width:155px;height:250px}
  .upgrade-compare-v140{left:50%;top:calc(100% + 8px);transform:translateX(-50%) translateY(-4px)}
  .upgrade-choice-v140:hover .upgrade-compare-v140{transform:translateX(-50%)}
}
