/* ============================================================
   6班点名器 · 前台点名页
   ============================================================ */

.stage {
  max-width: 620px;
  margin: 0 auto;
  padding: 14px 16px calc(30px + env(safe-area-inset-bottom, 0));
  min-height: calc(100dvh - 56px);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* ---------- 名字展示卡 ---------- */

.roller {
  position: relative;
  flex: 1 1 auto;
  border-radius: var(--r-xl);
  padding: 30px 24px;
  min-height: min(46vh, 340px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  overflow: hidden;
  isolation: isolate;
}

/* 玻璃边缘的一圈静态高光，让卡片有厚度 */
.roller::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid rgba(255, 255, 255, 0.85);
  pointer-events: none;
  z-index: 1;
}

.roller-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--label-3);
  text-transform: uppercase;
  transition: color 0.4s var(--ease);
}
.roller.is-rolling .roller-label,
.roller.is-settled .roller-label { color: var(--accent); }

.roller-name {
  font-size: clamp(54px, 17vw, 104px);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.045em;
  text-align: center;
  word-break: break-word;
  max-width: 100%;
  will-change: filter, opacity, transform;
}
.roller-name.is-placeholder {
  color: var(--label-3);
  font-size: clamp(20px, 5.6vw, 28px);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.6;
}

/* 定格瞬间的轻微回弹 */
.roller.is-settled .roller-name { animation: settle 0.62s var(--ease-out); }
@keyframes settle {
  0%   { transform: scale(1); }
  22%  { transform: scale(1.042); }
  100% { transform: scale(1); }
}

.roller-meta {
  margin-top: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
  font-size: 14px;
  color: var(--label-2);
  min-height: 32px;
}
.roller-meta .dot {
  width: 3px; height: 3px;
  border-radius: 50%;
  background: var(--label-3);
}
.roller-meta .btn-plain { font-size: 14px; }

/* ---------- 操作区 ---------- */

.action { padding: 2px 0 2px; }

/* ---------- 最近点名 ---------- */

.history-list { padding-bottom: 4px; }

.history-item {
  display: flex;
  align-items: center;
  gap: 13px;
  min-height: 54px;
  padding: 0 18px;
  position: relative;
  animation: rowIn 0.45s var(--ease-out) both;
}
.history-item + .history-item::before {
  content: "";
  position: absolute;
  left: 56px; right: 0; top: 0;
  height: 1px;
  background: var(--sep);
}
@keyframes rowIn {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: none; }
}

.history-rank {
  width: 26px; height: 26px;
  flex: 0 0 auto;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  background: var(--fill-2);
  color: var(--label-3);
}
.history-item:first-child .history-rank {
  background: var(--accent-tint);
  color: var(--accent);
}
.history-name {
  flex: 1;
  min-width: 0;
  font-size: 17px;
  font-weight: 500;
  letter-spacing: -0.015em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.history-time {
  font-size: 13px;
  color: var(--label-3);
  flex: 0 0 auto;
  font-variant-numeric: tabular-nums;
}

@media (max-width: 420px) {
  .roller { min-height: 42vh; padding: 26px 18px; }
  .stage { gap: 12px; padding-top: 12px; }
}
