/* ============================================================================
 * Top-Center Calm Architectural Floor Plaque + Boss Monolith Bar
 * ========================================================================== */
.hud-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  flex: 1 1 0;
  min-width: 0;
  max-width: calc(100vw - 448px);
  pointer-events: none;
}

.floor-cluster {
  text-align: center;
  width: fit-content;
  max-width: min(560px, 100%);
  min-width: 0;
  padding: 8px 14px 9px;
  border-top: 2px solid var(--brass-dim);
  transition: border-color 220ms var(--ease-ui);
}

.floor-cluster.is-signature-floor {
  border-top-color: var(--brass);
}

.floor-cluster.is-signature-floor .algo-tag:not(.is-monster-house) {
  display: none;
}

.floor-cluster.is-danger-floor {
  border-top-color: var(--crimson);
  border-color: #5c2a30;
}

.floor-meta-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  flex-wrap: wrap;
}

.brass-sep {
  display: inline-block;
  width: 1px;
  height: 11px;
  background: var(--brass-dim);
  flex-shrink: 0;
}

.mode-badge {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--ink-muted);
  white-space: nowrap;
  flex-shrink: 0;
}

.mode-badge.is-daily {
  color: var(--soul-cyan);
}

.floor-progress {
  font-size: 12px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.03em;
  color: var(--brass);
  white-space: nowrap;
  flex-shrink: 0;
}

.floor-progress.is-abyss {
  color: #bfa9ef;
}

.floor-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink-main);
  white-space: nowrap;
}

.algo-tag {
  font-size: 11px;
  font-weight: 600;
  color: var(--ink-muted);
  padding-left: 8px;
  border-left: 1px solid var(--stone-edge);
  white-space: nowrap;
  flex-shrink: 0;
}

.algo-tag.is-monster-house {
  padding: 1px 6px;
  border-left: none;
  border-radius: var(--radius-inner);
  color: #ffe8e6;
  background: #6b2226;
  border: 1px solid var(--crimson);
}

.score-chip {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--ink-muted);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  flex-shrink: 0;
}

.score-chip strong {
  font-size: 12px;
  color: var(--ink-main);
}

.floor-sub-row {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 3px;
  max-width: 100%;
}

.sig-badge {
  display: inline-flex;
  align-items: center;
  padding: 1px 6px;
  border-radius: var(--radius-inner);
  background: var(--stone-deep);
  border: 1px solid var(--brass-dim);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--brass);
  white-space: nowrap;
  flex-shrink: 0;
}

.anomaly-badge {
  display: inline-flex;
  align-items: center;
  padding: 1px 7px;
  border-radius: var(--radius-inner);
  background: var(--stone-deep);
  border: 1px solid var(--stone-edge);
  border-left: 2px solid var(--brass);
  font-size: 10px;
  font-weight: 700;
  color: var(--ink-main);
  white-space: nowrap;
  flex-shrink: 0;
  pointer-events: auto;
  cursor: help;
}

.anomaly-badge[data-tone="crimson"] {
  border-color: #632826;
  border-left-color: #e05246;
  color: #f8c4be;
  background: #211314;
}

.anomaly-badge[data-tone="fog"] {
  border-color: #2c5261;
  border-left-color: #62cbe0;
  color: #cff2fa;
  background: #121c22;
}

.anomaly-badge[data-tone="gold"] {
  border-color: var(--brass-dim);
  border-left-color: var(--brass-bright);
  color: #f6dc8d;
  background: #1d180e;
}

.floor-sub {
  font-size: 11px;
  color: var(--ink-muted);
}

.milestone-tag {
  display: inline-flex;
  align-items: center;
  padding: 1px 6px;
  border-radius: var(--radius-inner);
  background: var(--stone-deep);
  border: 1px solid #2b3140;
  font-size: 10px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--ink-muted);
  white-space: nowrap;
  flex-shrink: 0;
}

.milestone-tag.is-imminent {
  color: var(--brass);
  border-color: var(--brass-dim);
}

.boss-banner {
  margin-top: 5px;
  padding: 2px 8px;
  border-radius: var(--radius-inner);
  background: #35181c;
  border: 1px solid #753038;
  color: #f4b2b0;
  font-size: 11px;
  font-weight: 600;
}

/* Boss Monolith Health Bar (Glow reserved strictly for Phase 2 Enrage) */
.boss-bar {
  width: min(460px, 100%);
  padding: 10px 14px 11px;
  background: #141218;
  border: 1px solid #592a32;
  border-top: 2px solid var(--crimson);
  border-bottom: 2px solid var(--stone-ledge);
  box-shadow: 0 5px 0 var(--stone-ledge);
  pointer-events: none;
  opacity: 0;
  transform: translateY(-6px) scale(0.985);
  transition:
    opacity 220ms var(--ease-ui),
    transform 260ms var(--ease-ui),
    border-color 240ms var(--ease-ui),
    box-shadow 240ms var(--ease-ui);
}

.boss-bar.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.boss-bar.phase-2 {
  border-color: var(--crimson-enrage);
  border-top-color: var(--brass);
  box-shadow: 0 5px 0 var(--stone-ledge), 0 0 20px rgba(232, 72, 92, 0.34);
}

.boss-bar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 7px;
}

.boss-bar-title-wrap {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
}

.boss-crest {
  width: 7px;
  height: 7px;
  flex-shrink: 0;
  background: var(--brass);
  transform: rotate(45deg);
  transition: background-color 220ms var(--ease-ui);
}

.boss-bar.phase-2 .boss-crest {
  background: var(--crimson-enrage);
}

.boss-level-badge {
  flex-shrink: 0;
  padding: 1px 6px;
  border-radius: var(--radius-inner);
  font-size: 10px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: var(--brass);
  background: var(--stone-deep);
  border: 1px solid var(--brass-dim);
}

.boss-bar-title {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--ink-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.boss-phase-badge {
  flex-shrink: 0;
  padding: 1px 6px;
  border-radius: var(--radius-inner);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: #fff0f2;
  background: #731d2b;
  border: 1px solid var(--crimson-enrage);
}

.boss-bar-hp {
  flex-shrink: 0;
  font-size: 12px;
  font-weight: 700;
  color: #e3c2ba;
  font-variant-numeric: tabular-nums;
}

.boss-track {
  position: relative;
  height: 11px;
  border-radius: var(--radius-inner);
  background: var(--stone-deep);
  border: 1px solid #352026;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.8);
  overflow: hidden;
}

.boss-trail,
.boss-fill {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
}

.boss-trail {
  background: rgba(214, 166, 70, 0.52);
  transition: width 520ms var(--ease-ui) 110ms;
}

.boss-fill {
  background: linear-gradient(180deg, #dc4c4c 0%, #a8242e 100%);
  transition: width 130ms var(--ease-ui), background 240ms var(--ease-ui);
}

.boss-bar.phase-2 .boss-fill {
  background: linear-gradient(180deg, #f25573 0%, #b51f3e 100%);
}

.boss-phase-notch {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  transform: translateX(-50%);
  background: var(--brass);
  pointer-events: none;
}
