/* 연산마스터 공통 하단 상태바 */
body.has-ym-statusbar {
  padding-bottom: 64px;
}

footer.ym-statusbar,
footer.status-bar.ym-statusbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 70;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  gap: 10px;
  height: auto;
  min-height: 52px;
  padding: 8px 14px;
  margin: 0;
  background: rgba(21, 32, 43, .94);
  color: rgba(247, 243, 236, .88);
  border-top: 1px solid rgba(255, 255, 255, .08);
  backdrop-filter: blur(12px);
  font-family: "Pretendard Variable", Pretendard, "Malgun Gothic", sans-serif;
  font-size: 12px;
  line-height: 1.2;
  transform: translateY(110%);
  animation: ym-bar-in .45s ease .15s forwards;
}

.ym-statusbar a.home-mini {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  margin: 0;
  padding: 4px 6px 4px 2px;
  border-radius: 8px;
  text-decoration: none;
  color: rgba(247, 243, 236, .92);
  transition: background .15s ease, color .15s ease;
}
.ym-statusbar a.home-mini:hover {
  background: rgba(255, 255, 255, .08);
  color: #fff;
}
.ym-statusbar .logo-mini {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  flex: 0 0 auto;
  display: block;
}
.ym-statusbar .brand-mini {
  font-weight: 750;
  letter-spacing: .02em;
  white-space: nowrap;
  color: inherit;
}

.ym-statusbar .sep {
  width: 1px;
  height: 16px;
  background: rgba(255, 255, 255, .16);
  flex: 0 0 auto;
}

.ym-statusbar .tracks {
  display: flex;
  flex-wrap: nowrap;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
  flex: 1 1 auto;
  min-width: 0;
}
.ym-statusbar .tracks::-webkit-scrollbar { display: none; }

.ym-statusbar a.chip,
.ym-statusbar span.chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 9px;
  margin: 0;
  border-radius: 999px;
  white-space: nowrap;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .08);
  text-decoration: none;
  color: rgba(247, 243, 236, .78);
  font-weight: 650;
  font-size: 12px;
  line-height: 1;
}
.ym-statusbar a.chip.is-live {
  background: rgba(47, 107, 69, .22);
  border-color: rgba(95, 180, 120, .35);
  color: #d9f0e0;
}
.ym-statusbar a.chip.is-live:hover {
  background: rgba(47, 107, 69, .34);
  color: #d9f0e0;
}
.ym-statusbar a.chip.is-here {
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .22);
}
.ym-statusbar .chip .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #9a7a45;
  flex: 0 0 auto;
}
.ym-statusbar .chip.is-live .dot {
  background: #5fe3b0;
  box-shadow: 0 0 0 3px rgba(95, 227, 176, .18);
  animation: ym-pulse 1.8s ease infinite;
}
.ym-statusbar .chip em {
  font-style: normal;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .04em;
  opacity: .85;
}

.ym-statusbar .extras {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  margin-left: auto;
}
.ym-statusbar .extras:empty { display: none; }

.ym-statusbar .status-admin {
  display: inline-flex;
  align-items: center;
  height: auto;
  padding: 0;
  margin: 0;
  background: transparent;
  color: rgba(247, 241, 230, .35);
  text-decoration: none;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .02em;
  border: none;
  border-radius: 0;
  cursor: pointer;
}
.ym-statusbar .status-admin:hover {
  color: rgba(247, 241, 230, .7);
  background: transparent;
}
.ym-statusbar .status-admin.hidden { display: none !important; }

.ym-statusbar .zoom-label,
.ym-statusbar .zoom-hint,
.ym-statusbar .status-meta {
  color: rgba(247, 243, 236, .45);
  white-space: nowrap;
  font-size: 11px;
}
.ym-statusbar .zoom-hint { opacity: .75; }

.ym-statusbar .game-link {
  flex: 0 0 auto;
  margin: 0;
  padding: 5px 9px;
  border-radius: 999px;
  text-decoration: none;
  white-space: nowrap;
  font-weight: 700;
  font-size: 12px;
  color: rgba(247, 243, 236, .78);
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .1);
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.ym-statusbar .game-link:hover {
  color: #fff;
  background: rgba(196, 138, 58, .22);
  border-color: rgba(196, 138, 58, .4);
}
.ym-statusbar .game-link.is-here {
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .22);
  color: #f4efe6;
}

.ym-statusbar .clock {
  font-variant-numeric: tabular-nums;
  color: rgba(247, 243, 236, .45);
  white-space: nowrap;
  flex: 0 0 auto;
}

body.has-ym-statusbar .micro-admin {
  bottom: 60px;
}

@keyframes ym-bar-in {
  to { transform: none; }
}
@keyframes ym-pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(95, 227, 176, .18); }
  50% { box-shadow: 0 0 0 5px rgba(95, 227, 176, .08); }
}

@media (max-width: 720px) {
  footer.ym-statusbar,
  footer.status-bar.ym-statusbar {
    padding: 8px 10px;
    gap: 8px;
  }
  .ym-statusbar .sep-brand,
  .ym-statusbar .clock,
  .ym-statusbar .zoom-hint {
    display: none;
  }
}
