* {
  box-sizing: border-box;
  margin: 0;
}

html,
body {
  margin: 0;
  padding: 0;
  background: transparent;
  overflow: hidden;
  font-family: "Rajdhani", "Segoe UI", sans-serif;
}

:root {
  --blue: #2db8ff;
  --blue-glow: rgba(45, 184, 255, 0.65);
  --panel: #000;
  --label: #9eb8cc;
  --stack-w: 340px;
}

.stack {
  width: var(--stack-w);
  border: 2px solid var(--blue);
  border-top: none;
  box-shadow: 0 0 14px rgba(45, 184, 255, 0.25);
  background: var(--panel);
}

.stack.stale {
  opacity: 0.85;
}

.row-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0;
  padding: 6px 14px;
  min-height: 40px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.sep {
  width: 2px;
  align-self: stretch;
  margin: 2px 12px;
  background: var(--blue);
  flex-shrink: 0;
}

.rank-big {
  font-size: 1.75rem;
  line-height: 1;
  color: var(--blue);
  text-shadow: 0 0 12px var(--blue-glow);
  flex: 0 0 auto;
  transition: transform 0.3s ease;
}

.rank-big.pulse {
  animation: rankPop 0.8s ease;
}

@keyframes rankPop {
  0% { transform: scale(1); }
  40% { transform: scale(1.12); }
  100% { transform: scale(1); }
}

.pts-cell {
  flex: 1 1 auto;
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 8px;
}

.pts-cell .lbl {
  color: var(--label);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
}

.pts-cell .val {
  font-size: 1.35rem;
  color: #fff;
  letter-spacing: 0.02em;
}

.clock {
  flex: 0 0 auto;
  font-size: 1.35rem;
  color: var(--blue);
  text-shadow: 0 0 10px var(--blue-glow);
  letter-spacing: 0.04em;
}

.stack.urgent .clock {
  color: #ff6b6b;
  text-shadow: 0 0 10px rgba(255, 107, 107, 0.5);
}
