.hero { text-align: center; padding: 24px 16px; background: linear-gradient(135deg, var(--primary), var(--primary-light)); color: #fff; }
.hero-school { opacity: 0.9; margin: 0; font-size: 0.85rem; }
.hero-title { font-size: 1.5rem; margin: 8px 0 4px; }
.hero-sub { opacity: 0.95; margin: 0 0 12px; }
.countdown-box { font-size: 1.1rem; font-weight: 600; margin: 8px 0; font-variant-numeric: tabular-nums; }
.hero .badge { background: rgba(255,255,255,0.25); color: #fff; }

.bento-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.bento-item { text-align: left; cursor: pointer; border: none; width: 100%; font: inherit; color: inherit; }
.bento-icon { font-size: 1.8rem; display: block; margin-bottom: 6px; }
.bento-item strong { display: block; font-size: 0.95rem; }
.bento-item small { color: var(--text-muted); font-size: 0.75rem; }

.hot-swiper { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 4px; scroll-snap-type: x mandatory; }
.hot-card { min-width: 140px; scroll-snap-align: start; cursor: pointer; text-align: center; }
.hot-rank { font-size: 1.5rem; }
.hot-card h3 { margin: 4px 0; font-size: 1rem; }

.dashboard-kpi { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 12px; }
.kpi { text-align: center; padding: 12px 8px; }
.kpi-val { display: block; font-size: 1.1rem; font-weight: 700; color: var(--primary); }
.kpi-label { font-size: 0.75rem; color: var(--text-muted); }

.progress-bar { height: 8px; background: #e2e8f0; border-radius: 999px; overflow: hidden; }
.progress-fill { height: 100%; border-radius: 999px; transition: width 0.6s ease; }

.tag { display: inline-block; padding: 2px 8px; border-radius: 999px; background: #eef2ff; color: var(--primary); font-size: 0.72rem; margin: 2px; }
.tag-chip { border: 1px solid var(--border); background: #fff; border-radius: 999px; padding: 4px 10px; font-size: 0.8rem; margin: 2px; cursor: pointer; }
.tag-chip.active { background: var(--primary); color: #fff; border-color: var(--primary); }

.search-bar { display: flex; gap: 8px; margin-bottom: 10px; }
.search-bar input { flex: 1; padding: 10px 12px; border: 1px solid var(--border); border-radius: 8px; }
.search-bar select { padding: 8px; border-radius: 8px; border: 1px solid var(--border); }

.timeline { list-style: none; padding: 0; margin: 0; border-left: 2px solid var(--accent); }
.timeline li { padding: 8px 0 8px 16px; position: relative; }
.timeline li::before { content: ''; width: 8px; height: 8px; background: var(--primary); border-radius: 50%; position: absolute; left: -5px; top: 14px; }

.chart-wrap { min-height: 120px; margin: 8px 0; }
.ring-wrap { display: flex; justify-content: center; }
.chart-legend { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 8px; }
.chart-legend-item { font-size: 0.75rem; display: flex; align-items: center; gap: 4px; }
.chart-legend-item i { width: 10px; height: 10px; border-radius: 2px; display: inline-block; }

.danmaku-layer { min-height: 80px; overflow: hidden; position: relative; margin-bottom: 12px; }
.danmaku-item {
  display: inline-block; white-space: nowrap; padding: 4px 12px; margin: 4px;
  background: #eef2ff; border-radius: 999px; font-size: 0.85rem;
  animation: danmaku 8s linear infinite;
}
@keyframes danmaku { from { transform: translateX(100vw); } to { transform: translateX(-100%); } }

.cheer-item p { margin: 0 0 4px; }
.cheer-item small { color: var(--text-muted); }

.reveal-box { text-align: center; padding: 16px; }
.reveal-countdown { font-size: 3rem; margin-bottom: 16px; }
.reveal-winner { padding: 8px; margin: 6px 0; background: #fef3c7; border-radius: 8px; }

.confetti-layer { pointer-events: none; position: fixed; inset: 0; z-index: 9998; overflow: hidden; }
.confetti-particle {
  position: absolute; width: 8px; height: 8px; border-radius: 2px;
  animation: confettiFall linear forwards;
}
@keyframes confettiFall {
  to { transform: translate(var(--dx), var(--dy)) rotate(var(--rot)); opacity: 0; }
}

@media (min-width: 480px) {
  .bento-grid { grid-template-columns: repeat(3, 1fr); }
}
