/**
 * Total Stats Dashboard — FROZEN (v7): 80% width, 3D gold label/numbers, white em
 * See FROZEN-SECTIONS.md — change only on explicit user request.
 */

.lobby > .kpi-bar {
  position: relative;
  margin-top: 14px;
  margin-left: 10%;
  margin-right: 10%;
  width: 80%;
  box-sizing: border-box;
  min-height: 124px;
  flex-shrink: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: stretch;
  gap: 0;
  padding: 14px 18px;
  border: none !important;
  border-radius: 8px;
  overflow: hidden;
  background: linear-gradient(90deg, #2b0508 0%, #140204 35%, #050203 100%) !important;
  box-shadow:
    inset 0 1px 0 rgba(168, 134, 77, 0.45),
    inset 0 -1px 0 rgba(45, 32, 14, 0.8),
    0 0 0 1px rgba(148, 119, 78, 0.4),
    0 4px 16px rgba(0, 0, 0, 0.5) !important;
}

.lobby > .kpi-bar::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 8px;
  padding: 1.5px;
  background: linear-gradient(180deg, #a8864d 0%, #6a5230 48%, #4d381a 100%);
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  z-index: 2;
}

.lobby > .kpi-bar .stats-item {
  position: relative;
  z-index: 1;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 14px !important;
  width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

.lobby > .kpi-bar .stats-item:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 56px;
  background: rgba(168, 134, 77, 0.25);
  pointer-events: none;
}

.lobby > .kpi-bar .stat-icon,
.lobby > .kpi-bar .part-kpi-ico {
  flex: 0 0 72px;
  width: 72px;
  height: 72px;
  min-width: 72px;
  min-height: 72px;
  object-fit: contain;
  object-position: center;
  filter:
    drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5))
    drop-shadow(0 1px 3px rgba(255, 210, 117, 0.28))
    contrast(1.12) !important;
}

.lobby > .kpi-bar .kpi__copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  text-align: left;
  min-width: 0;
  flex: 0 1 auto;
  max-width: calc(100% - 86px);
}

/* gold gradient → lobby-gold-type.css */

.lobby > .kpi-bar .kpi label {
  display: block;
  margin: 0;
  padding: 0;
  font-family: 'Oswald', sans-serif !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  line-height: 1.15 !important;
  letter-spacing: 0.05em !important;
  text-transform: uppercase !important;
}

.lobby > .kpi-bar .kpi-value,
.lobby > .kpi-bar .kpi strong {
  display: block;
  margin: 5px 0 0;
  padding: 0;
  font-family: 'Barlow Condensed', sans-serif !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  letter-spacing: 0.01em !important;
  white-space: nowrap;
}

.lobby > .kpi-bar .kpi-value--prize {
  font-size: 26px !important;
}

.lobby > .kpi-bar .kpi-value--num {
  font-size: 30px !important;
}

.lobby > .kpi-bar .kpi em {
  display: block;
  margin: 4px 0 0;
  font-family: 'Montserrat', sans-serif !important;
  font-size: 11px !important;
  font-weight: 400 !important;
  font-style: normal !important;
  line-height: 1.15 !important;
  letter-spacing: 0.02em !important;
  text-transform: none !important;
}
