.battle-arena {
  position: relative;
  margin-top: 0 !important;
  padding-top: 0 !important;
}
.monster-stage {
  position: relative;
  margin-top: 8px !important;
}
html body .container > .battle-arena:not(.dungeon-run) .monster-stage {
  margin-top: 0 !important;
  padding-top: 10px !important;
}
.battle-arena.dungeon-run .monster-stage {
  margin-top: 8px !important;
  min-height: 0;
  overflow: hidden !important;
  border-radius: 14px;
  isolation: isolate;
}
html body .container .monster {
  transform: none !important;
}
html body .container .hp-panel {
  transform: none !important;
}
html body .container > .battle-arena:not(.dungeon-run) .monster,
html body .container > #battle-arena:not(.dungeon-run) .monster {
  transform: translateY(-20px) !important;
}
html body .container > .battle-arena:not(.dungeon-run) .hp-panel,
html body .container > #battle-arena:not(.dungeon-run) .hp-panel {
  transform: translateY(-20px) !important;
}
.party-hud {
  position: relative;
  z-index: 40;
  gap: 4px;
  padding: 0 2px 0 !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}
.battle-arena.dungeon-run .party-hud {
  margin-top: 0 !important;
  margin-bottom: 2px !important;
  z-index: 50 !important;
  background: transparent;
}
.party-chip {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 8px;
  min-height: 22px;
  height: 22px;
  padding: 0 8px !important;
  border-width: 1px;
  background: #16141c !important;
}
.party-chip.me {
  border: 3px solid #fbbf24 !important;
  box-shadow: 0 0 0 1px rgba(251,191,36,.45), inset 0 0 0 1px rgba(251,191,36,.25);
  background: #2a2414 !important;
}
.party-top {
  display: contents;
}
.party-nick {
  order: 1;
  font-size: .78rem !important;
  font-weight: 800 !important;
  line-height: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
  flex: 0 1 auto;
}
.party-hp {
  order: 2;
  flex: 1 1 auto !important;
  height: 4px !important;
  background: #3f1d1d !important;
  margin: 0 !important;
  min-width: 48px;
  border-radius: 99px;
  overflow: hidden;
}
.party-hp .hp-red,
.party-hp > span {
  display: block;
  height: 100%;
  background: #f87171;
  border-radius: 99px;
}
.party-hp-num {
  order: 3;
  display: inline !important;
  flex-shrink: 0;
  margin: 0 !important;
  font-size: .7rem !important;
  font-weight: 800;
  color: #fecaca;
  font-variant-numeric: tabular-nums;
}
.float-heal {
  color: #4ade80 !important;
  font-size: 2.4rem !important;
}
.float-crit {
  color: #fbbf24 !important;
  font-size: 3.2rem !important;
}
.leader-row.me {
  background: rgba(251,191,36,.2);
  outline: 1px solid rgba(251,191,36,.55);
  border-radius: 8px;
}
.intro-ver .intro-beta {
  margin-left: .35em;
  color: #fbbf24;
  font-weight: 800;
  letter-spacing: .08em;
}
html body .container {
  row-gap: 0 !important;
  gap: 0 !important;
}
html body .container > header {
  margin-bottom: 6px !important;
  padding-bottom: 0 !important;
  position: relative;
  z-index: 40;
}
html body .container > .battle-arena:not(.dungeon-run),
html body .container > #battle-arena:not(.dungeon-run) {
  margin-top: 0 !important;
  min-height: 42dvh !important;
}
html body .container > .video-wrap {
  min-height: 0;
}
html body:not(:has(.dungeon-run)) .video-wrap {
  min-height: calc(38dvh + 20px) !important;
  margin-top: 0 !important;
}
html body:has(.dungeon-run) .battle-arena,
html body:has(.dungeon-run) #battle-arena {
  margin-top: 0 !important;
  min-height: 0 !important;
}
html body.in-fight .visit-count,
html body.in-fight #visit-counter,
html body .visit-count,
html body #visit-counter {
  visibility: visible !important;
  opacity: 1 !important;
  display: flex !important;
}
html body .frame-guide,
html body.in-fight .frame-guide,
html body .frame-guide.hidden {
  display: block !important;
  inset: 6px !important;
  border: 6px dashed rgba(253, 230, 138, .72) !important;
  border-radius: 12px !important;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.35), 0 0 10px rgba(253,230,138,.28) !important;
}
html body .frame-guide.ok {
  border-color: rgba(74, 222, 128, .92) !important;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.25), 0 0 14px rgba(74,222,128,.45) !important;
}
.mode-card-off{opacity:.42;filter:grayscale(1);pointer-events:none;cursor:not-allowed}
.fight-countdown {
  position: absolute;
  inset: 0;
  z-index: 35;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(4.6rem, 28vw, 7.2rem);
  font-weight: 900;
  line-height: 1;
  color: #fde68a;
  text-shadow: 0 0 28px rgba(251,191,36,.6), 0 10px 0 #7c4a00;
  pointer-events: none;
  letter-spacing: -0.06em;
}
.fight-countdown.go {
  font-size: clamp(2.4rem, 14vw, 3.6rem);
  letter-spacing: 0.02em;
}
.fight-countdown.hidden { display: none !important; }
