/* ============================================
   每日大赛最新在线 - Emerald Minimal Live Theme
   Shared stylesheet for all pages
   ============================================ */

/* ---------- Reset & Base ---------- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --emerald: #059669;
  --emerald-light: #10b981;
  --emerald-lighter: #34d399;
  --emerald-dark: #064e3b;
  --mint-cream: #f0fdf4;
  --white: #ffffff;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-500: #6b7280;
  --gray-700: #374151;
  --gray-900: #111827;
  --red-live: #ef4444;
  --shadow-sm: 0 1px 2px rgba(6, 78, 59, 0.04);
  --shadow-md: 0 4px 16px rgba(6, 78, 59, 0.06);
  --shadow-lg: 0 12px 40px rgba(6, 78, 59, 0.08);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --border: 1px solid #e5e7eb;
  --border-emerald: 1px solid #d1fae5;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Segoe UI", "PingFang SC", -apple-system, BlinkMacSystemFont,
    "Helvetica Neue", Arial, sans-serif;
  background-color: var(--mint-cream);
  color: var(--gray-900);
  line-height: 1.6;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
}

a {
  color: var(--emerald);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--emerald-dark);
}

img {
  max-width: 100%;
  display: block;
}

ul {
  list-style: none;
}

/* ---------- Layout helpers ---------- */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 64px 0;
}

.section-sm {
  padding: 40px 0;
}

.text-center {
  text-align: center;
}

.mt-0 { margin-top: 0; }
.mt-2 { margin-top: 8px; }
.mt-3 { margin-top: 12px; }
.mt-4 { margin-top: 16px; }
.mt-6 { margin-top: 24px; }
.mt-8 { margin-top: 32px; }

/* ---------- Header / Navigation ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: var(--border-emerald);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 17px;
  color: var(--emerald-dark);
  letter-spacing: 0.3px;
  white-space: nowrap;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--emerald-light), var(--emerald-dark));
  display: grid;
  place-items: center;
  color: var(--white);
  font-size: 18px;
  font-weight: 800;
  box-shadow: var(--shadow-md);
}

.brand-mark::before {
  content: "D";
}

.brand small {
  display: block;
  font-size: 11px;
  font-weight: 500;
  color: var(--emerald);
  letter-spacing: 1px;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-menu a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--gray-700);
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s ease;
}

.nav-menu a:hover {
  background: var(--mint-cream);
  color: var(--emerald-dark);
}

.nav-menu a.active {
  background: var(--emerald);
  color: var(--white);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  border-radius: 999px;
  background: var(--emerald-dark);
  color: var(--white);
  font-size: 13px;
  font-weight: 600;
  transition: all 0.2s ease;
}

.nav-cta:hover {
  background: var(--emerald);
  color: var(--white);
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  background: transparent;
  border: var(--border);
  border-radius: 10px;
  width: 40px;
  height: 40px;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
}

.nav-toggle span {
  width: 18px;
  height: 2px;
  background: var(--emerald-dark);
  border-radius: 2px;
}

/* ---------- Live indicator (pulse dot) ---------- */
.live-dot {
  position: relative;
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--red-live);
  flex-shrink: 0;
}

.live-dot::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: var(--red-live);
  opacity: 0.5;
  animation: livePulse 1.6s ease-out infinite;
}

.live-dot.green {
  background: var(--emerald-light);
}

.live-dot.green::after {
  background: var(--emerald-light);
}

@keyframes livePulse {
  0% {
    transform: scale(0.6);
    opacity: 0.6;
  }
  100% {
    transform: scale(2.2);
    opacity: 0;
  }
}

.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px 4px 8px;
  border-radius: 999px;
  background: rgba(239, 68, 68, 0.1);
  color: var(--red-live);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

.live-badge.green {
  background: rgba(16, 185, 129, 0.12);
  color: var(--emerald);
}

.live-badge.solid {
  background: var(--red-live);
  color: var(--white);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
  font-family: inherit;
}

.btn-primary {
  background: var(--emerald);
  color: var(--white);
  box-shadow: 0 4px 14px rgba(5, 150, 105, 0.25);
}

.btn-primary:hover {
  background: var(--emerald-dark);
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(5, 150, 105, 0.32);
}

.btn-ghost {
  background: transparent;
  color: var(--emerald-dark);
  border: 1.5px solid var(--emerald-light);
}

.btn-ghost:hover {
  background: var(--mint-cream);
  color: var(--emerald-dark);
}

.btn-white {
  background: var(--white);
  color: var(--emerald-dark);
  box-shadow: var(--shadow-md);
}

.btn-white:hover {
  transform: translateY(-1px);
}

.btn-sm {
  padding: 7px 14px;
  font-size: 13px;
}

/* ---------- Card base ---------- */
.card {
  background: var(--white);
  border: var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: all 0.25s ease;
}

.card.hoverable:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: var(--emerald-lighter);
}

.card-pad {
  padding: 22px;
}

/* ---------- Section heading ---------- */
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 28px;
  gap: 16px;
  flex-wrap: wrap;
}

.section-title {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 22px;
  font-weight: 700;
  color: var(--gray-900);
  letter-spacing: -0.2px;
}

.section-title .ico {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: var(--mint-cream);
  display: grid;
  place-items: center;
  color: var(--emerald);
}

.section-sub {
  color: var(--gray-500);
  font-size: 13px;
  margin-top: 4px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--emerald);
  margin-bottom: 12px;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 80px 0 70px;
  overflow: hidden;
  background:
    radial-gradient(900px 400px at 85% -10%, rgba(52, 211, 153, 0.18), transparent 60%),
    radial-gradient(700px 360px at 10% 110%, rgba(16, 185, 129, 0.12), transparent 60%),
    var(--mint-cream);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.hero h1 {
  font-size: 46px;
  line-height: 1.12;
  font-weight: 800;
  color: var(--gray-900);
  letter-spacing: -1px;
  margin-bottom: 18px;
}

.hero h1 .accent {
  color: var(--emerald);
}

.hero p.lead {
  font-size: 17px;
  color: var(--gray-700);
  max-width: 520px;
  margin-bottom: 28px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.hero-stats {
  display: flex;
  gap: 32px;
  margin-top: 36px;
  flex-wrap: wrap;
}

.hero-stat .num {
  font-size: 26px;
  font-weight: 800;
  color: var(--emerald-dark);
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero-stat .lbl {
  font-size: 12px;
  color: var(--gray-500);
  margin-top: 2px;
}

/* hero visual card */
.hero-visual {
  background: var(--white);
  border: var(--border-emerald);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-lg);
  position: relative;
}

.hero-visual::before {
  content: "";
  position: absolute;
  top: -8px;
  right: 24px;
  width: 80px;
  height: 4px;
  background: var(--emerald-light);
  border-radius: 4px;
}

.hero-stream {
  background: linear-gradient(135deg, #064e3b, #065f46);
  border-radius: var(--radius-md);
  padding: 20px;
  color: var(--white);
  position: relative;
  overflow: hidden;
  min-height: 200px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.hero-stream::after {
  content: "";
  position: absolute;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(52, 211, 153, 0.35), transparent 70%);
  top: -60px;
  right: -60px;
  border-radius: 50%;
}

.hero-stream .top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  z-index: 2;
}

.hero-stream .title {
  font-size: 18px;
  font-weight: 700;
  position: relative;
  z-index: 2;
}

.hero-stream .meta {
  font-size: 12px;
  opacity: 0.85;
  position: relative;
  z-index: 2;
}

.hero-stream .wave {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 36px;
  position: relative;
  z-index: 2;
}

.hero-stream .wave span {
  width: 4px;
  background: var(--emerald-lighter);
  border-radius: 2px;
  animation: wave 1.2s ease-in-out infinite;
}

.hero-stream .wave span:nth-child(1) { height: 40%; animation-delay: 0s; }
.hero-stream .wave span:nth-child(2) { height: 70%; animation-delay: 0.15s; }
.hero-stream .wave span:nth-child(3) { height: 50%; animation-delay: 0.3s; }
.hero-stream .wave span:nth-child(4) { height: 90%; animation-delay: 0.45s; }
.hero-stream .wave span:nth-child(5) { height: 60%; animation-delay: 0.6s; }
.hero-stream .wave span:nth-child(6) { height: 80%; animation-delay: 0.75s; }
.hero-stream .wave span:nth-child(7) { height: 45%; animation-delay: 0.9s; }

@keyframes wave {
  0%, 100% { transform: scaleY(1); }
  50% { transform: scaleY(0.4); }
}

.hero-mini-row {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}

.hero-mini {
  flex: 1;
  background: var(--mint-cream);
  border-radius: var(--radius-sm);
  padding: 12px;
  border: var(--border-emerald);
}

.hero-mini .nm {
  font-size: 12px;
  color: var(--gray-500);
}

.hero-mini .vl {
  font-size: 15px;
  font-weight: 700;
  color: var(--emerald-dark);
  margin-top: 2px;
}

/* ---------- Grid helpers ---------- */
.grid {
  display: grid;
  gap: 20px;
}

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-auto { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }

/* ---------- Competition card ---------- */
.comp-card {
  background: var(--white);
  border: var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all 0.25s ease;
  display: flex;
  flex-direction: column;
}

.comp-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: var(--emerald-lighter);
}

.comp-thumb {
  position: relative;
  height: 140px;
  background: linear-gradient(135deg, #064e3b, #047857);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.comp-thumb.alt-1 { background: linear-gradient(135deg, #065f46, #10b981); }
.comp-thumb.alt-2 { background: linear-gradient(135deg, #047857, #34d399); }
.comp-thumb.alt-3 { background: linear-gradient(135deg, #064e3b, #059669); }
.comp-thumb.alt-4 { background: linear-gradient(135deg, #065f46, #6ee7b7); }

.comp-thumb .glyph {
  font-size: 38px;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 700;
  letter-spacing: 2px;
}

.comp-thumb .overlay-top {
  position: absolute;
  top: 12px;
  left: 12px;
  right: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.comp-thumb .viewers {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(0, 0, 0, 0.4);
  color: var(--white);
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  backdrop-filter: blur(4px);
}

.comp-thumb::after {
  content: "";
  position: absolute;
  width: 180px;
  height: 180px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.18), transparent 70%);
  border-radius: 50%;
  top: -60px;
  right: -60px;
}

.comp-body {
  padding: 16px 18px 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.comp-cat {
  font-size: 11px;
  font-weight: 600;
  color: var(--emerald);
  letter-spacing: 0.6px;
  text-transform: uppercase;
}

.comp-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--gray-900);
  line-height: 1.4;
}

.comp-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  color: var(--gray-500);
  margin-top: auto;
  padding-top: 8px;
  border-top: 1px dashed var(--gray-200);
}

.comp-meta span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* ---------- Results feed ---------- */
.feed {
  background: var(--white);
  border: var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.feed-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--gray-100);
  transition: background 0.2s ease;
}

.feed-item:last-child {
  border-bottom: none;
}

.feed-item:hover {
  background: var(--mint-cream);
}

.feed-rank {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--mint-cream);
  color: var(--emerald-dark);
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 14px;
  flex-shrink: 0;
}

.feed-rank.gold {
  background: linear-gradient(135deg, #fde68a, #f59e0b);
  color: #78350f;
}

.feed-rank.silver {
  background: linear-gradient(135deg, #e5e7eb, #9ca3af);
  color: #1f2937;
}

.feed-rank.bronze {
  background: linear-gradient(135deg, #fed7aa, #fb923c);
  color: #7c2d12;
}

.feed-content {
  flex: 1;
  min-width: 0;
}

.feed-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--gray-900);
}

.feed-sub {
  font-size: 12px;
  color: var(--gray-500);
  margin-top: 2px;
}

.feed-time {
  font-size: 12px;
  color: var(--gray-500);
  white-space: nowrap;
  text-align: right;
}

.feed-score {
  font-size: 14px;
  font-weight: 700;
  color: var(--emerald);
  white-space: nowrap;
}

/* ---------- Countdown ---------- */
.countdown {
  display: flex;
  gap: 8px;
  align-items: center;
}

.cd-unit {
  background: var(--emerald-dark);
  color: var(--white);
  border-radius: 8px;
  padding: 8px 10px;
  min-width: 44px;
  text-align: center;
}

.cd-unit .num {
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
  display: block;
}

.cd-unit .lbl {
  font-size: 9px;
  opacity: 0.8;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 3px;
  display: block;
}

.cd-sep {
  color: var(--emerald-dark);
  font-weight: 700;
}

.countdown.light .cd-unit {
  background: var(--mint-cream);
  color: var(--emerald-dark);
  border: var(--border-emerald);
}

/* ---------- Table ---------- */
.table-wrap {
  background: var(--white);
  border: var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

table.data {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

table.data thead {
  background: var(--mint-cream);
}

table.data th {
  text-align: left;
  padding: 14px 18px;
  font-size: 12px;
  font-weight: 600;
  color: var(--gray-500);
  letter-spacing: 0.6px;
  text-transform: uppercase;
  border-bottom: var(--border);
}

table.data td {
  padding: 16px 18px;
  border-bottom: 1px solid var(--gray-100);
  color: var(--gray-700);
}

table.data tbody tr:last-child td {
  border-bottom: none;
}

table.data tbody tr {
  transition: background 0.2s ease;
}

table.data tbody tr:hover {
  background: var(--mint-cream);
}

table.data .player {
  display: flex;
  align-items: center;
  gap: 12px;
}

.avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--emerald-light), var(--emerald-dark));
  color: var(--white);
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 700;
  flex-shrink: 0;
}

.avatar.a2 { background: linear-gradient(135deg, #34d399, #059669); }
.avatar.a3 { background: linear-gradient(135deg, #6ee7b7, #10b981); }
.avatar.a4 { background: linear-gradient(135deg, #065f46, #064e3b); }

.score-pill {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--mint-cream);
  color: var(--emerald-dark);
  font-weight: 700;
  font-size: 13px;
}

.movement {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 12px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 999px;
}

.movement.up {
  background: rgba(16, 185, 129, 0.12);
  color: var(--emerald);
}

.movement.down {
  background: rgba(239, 68, 68, 0.1);
  color: var(--red-live);
}

.movement.same {
  background: var(--gray-100);
  color: var(--gray-500);
}

/* ---------- Badges & chips ---------- */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--mint-cream);
  color: var(--emerald-dark);
  font-size: 12px;
  font-weight: 600;
  border: var(--border-emerald);
}

.chip.solid {
  background: var(--emerald);
  color: var(--white);
  border-color: var(--emerald);
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-bar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.filter-bar button {
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--white);
  border: var(--border);
  color: var(--gray-700);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
}

.filter-bar button:hover {
  border-color: var(--emerald-lighter);
  color: var(--emerald);
}

.filter-bar button.active {
  background: var(--emerald);
  border-color: var(--emerald);
  color: var(--white);
}

/* ---------- Chat mockup ---------- */
.chat {
  background: var(--white);
  border: var(--border);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 460px;
  overflow: hidden;
}

.chat-head {
  padding: 16px 18px;
  border-bottom: var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.chat-head h4 {
  font-size: 14px;
  font-weight: 700;
  color: var(--gray-900);
  display: flex;
  align-items: center;
  gap: 8px;
}

.chat-online {
  font-size: 12px;
  color: var(--gray-500);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.chat-body {
  flex: 1;
  padding: 16px 18px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.chat-msg {
  display: flex;
  gap: 10px;
  font-size: 13px;
}

.chat-msg .av {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--emerald-light), var(--emerald));
  color: var(--white);
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
}

.chat-msg .av.b { background: linear-gradient(135deg, #34d399, #065f46); }
.chat-msg .av.c { background: linear-gradient(135deg, #6ee7b7, #047857); }
.chat-msg .av.d { background: linear-gradient(135deg, #064e3b, #10b981); }

.chat-msg .nm {
  font-weight: 600;
  color: var(--emerald-dark);
  margin-right: 6px;
}

.chat-msg .tx {
  color: var(--gray-700);
  word-break: break-word;
}

.chat-msg.sys {
  justify-content: center;
}

.chat-msg.sys span {
  font-size: 11px;
  color: var(--gray-500);
  background: var(--mint-cream);
  padding: 3px 10px;
  border-radius: 999px;
}

.chat-input {
  padding: 12px 14px;
  border-top: var(--border);
  display: flex;
  gap: 8px;
}

.chat-input input {
  flex: 1;
  border: var(--border);
  border-radius: 999px;
  padding: 9px 14px;
  font-size: 13px;
  font-family: inherit;
  outline: none;
  transition: border 0.2s ease;
}

.chat-input input:focus {
  border-color: var(--emerald-light);
}

.chat-input button {
  background: var(--emerald);
  color: var(--white);
  border: none;
  border-radius: 999px;
  padding: 9px 16px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
}

/* ---------- Calendar / schedule ---------- */
.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
}

.cal-day {
  background: var(--white);
  border: var(--border);
  border-radius: var(--radius-sm);
  padding: 12px;
  min-height: 110px;
  transition: all 0.2s ease;
}

.cal-day:hover {
  border-color: var(--emerald-lighter);
  box-shadow: var(--shadow-md);
}

.cal-day.off {
  background: var(--gray-50);
  opacity: 0.5;
}

.cal-day.today {
  border: 2px solid var(--emerald);
  background: var(--mint-cream);
}

.cal-day .dnum {
  font-size: 16px;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 8px;
}

.cal-day.today .dnum {
  color: var(--emerald);
}

.cal-event {
  font-size: 10px;
  background: var(--emerald);
  color: var(--white);
  padding: 3px 6px;
  border-radius: 4px;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cal-event.alt {
  background: var(--emerald-lighter);
  color: var(--emerald-dark);
}

.cal-head {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
  margin-bottom: 8px;
}

.cal-head div {
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  color: var(--gray-500);
  padding: 8px 0;
}

/* ---------- Timeline ---------- */
.timeline {
  position: relative;
  padding-left: 28px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 4px;
  bottom: 4px;
  width: 2px;
  background: var(--gray-200);
}

.tl-item {
  position: relative;
  padding-bottom: 28px;
}

.tl-item:last-child {
  padding-bottom: 0;
}

.tl-dot {
  position: absolute;
  left: -27px;
  top: 2px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--white);
  border: 3px solid var(--emerald);
}

.tl-item.live .tl-dot {
  border-color: var(--red-live);
  background: var(--red-live);
}

.tl-item.live .tl-dot::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: var(--red-live);
  opacity: 0.4;
  animation: livePulse 1.6s ease-out infinite;
}

.tl-time {
  font-size: 11px;
  font-weight: 600;
  color: var(--emerald);
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

.tl-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--gray-900);
  margin: 4px 0;
}

.tl-desc {
  font-size: 13px;
  color: var(--gray-500);
}

/* ---------- Stat cards ---------- */
.stat-card {
  background: var(--white);
  border: var(--border);
  border-radius: var(--radius-md);
  padding: 22px;
  transition: all 0.2s ease;
}

.stat-card:hover {
  border-color: var(--emerald-lighter);
  box-shadow: var(--shadow-md);
}

.stat-card .lbl {
  font-size: 12px;
  color: var(--gray-500);
  font-weight: 500;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

.stat-card .val {
  font-size: 30px;
  font-weight: 800;
  color: var(--emerald-dark);
  margin-top: 6px;
  line-height: 1;
}

.stat-card .delta {
  font-size: 12px;
  margin-top: 8px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--emerald);
  font-weight: 600;
}

.stat-card .delta.down {
  color: var(--red-live);
}

/* ---------- Bar chart (CSS) ---------- */
.bars {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  height: 160px;
  padding-top: 16px;
}

.bar-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  height: 100%;
  justify-content: flex-end;
}

.bar {
  width: 100%;
  max-width: 36px;
  background: linear-gradient(180deg, var(--emerald-lighter), var(--emerald));
  border-radius: 6px 6px 0 0;
  transition: all 0.3s ease;
  position: relative;
}

.bar:hover {
  filter: brightness(1.1);
}

.bar-lbl {
  font-size: 11px;
  color: var(--gray-500);
}

/* ---------- Donut (CSS) ---------- */
.donut {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: conic-gradient(
    var(--emerald) 0% 42%,
    var(--emerald-lighter) 42% 68%,
    var(--emerald-light) 68% 88%,
    var(--mint-cream) 88% 100%
  );
  display: grid;
  place-items: center;
  position: relative;
  margin: 0 auto;
}

.donut::after {
  content: "";
  width: 90px;
  height: 90px;
  background: var(--white);
  border-radius: 50%;
  position: absolute;
}

.donut .center {
  position: relative;
  z-index: 2;
  text-align: center;
}

.donut .center .big {
  font-size: 22px;
  font-weight: 800;
  color: var(--emerald-dark);
  line-height: 1;
}

.donut .center .sm {
  font-size: 10px;
  color: var(--gray-500);
  margin-top: 4px;
}

.legend {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 16px;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--gray-700);
}

.legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 3px;
}

/* ---------- Winner spotlight ---------- */
.winner-card {
  background: linear-gradient(135deg, #064e3b, #047857);
  border-radius: var(--radius-lg);
  padding: 32px;
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.winner-card::before {
  content: "";
  position: absolute;
  width: 260px;
  height: 260px;
  background: radial-gradient(circle, rgba(52, 211, 153, 0.3), transparent 70%);
  top: -100px;
  right: -80px;
  border-radius: 50%;
}

.winner-card .crown {
  font-size: 11px;
  letter-spacing: 1.5px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--emerald-lighter);
  position: relative;
  z-index: 2;
}

.winner-card .name {
  font-size: 30px;
  font-weight: 800;
  margin: 8px 0 4px;
  position: relative;
  z-index: 2;
}

.winner-card .cat {
  font-size: 13px;
  opacity: 0.8;
  position: relative;
  z-index: 2;
}

.winner-stats {
  display: flex;
  gap: 28px;
  margin-top: 24px;
  position: relative;
  z-index: 2;
  flex-wrap: wrap;
}

.winner-stat .v {
  font-size: 22px;
  font-weight: 800;
}

.winner-stat .l {
  font-size: 11px;
  opacity: 0.75;
  margin-top: 2px;
}

/* ---------- Two col layout ---------- */
.two-col {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 28px;
  align-items: start;
}

.sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: sticky;
  top: 92px;
}

/* ---------- Feature card (about) ---------- */
.feature {
  background: var(--white);
  border: var(--border);
  border-radius: var(--radius-md);
  padding: 28px;
  transition: all 0.25s ease;
  height: 100%;
}

.feature:hover {
  border-color: var(--emerald-lighter);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.feature .ico {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--mint-cream);
  color: var(--emerald);
  display: grid;
  place-items: center;
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 16px;
}

.feature h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 8px;
}

.feature p {
  font-size: 14px;
  color: var(--gray-500);
  line-height: 1.65;
}

/* ---------- Steps ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  counter-reset: step;
}

.step {
  position: relative;
  padding: 24px;
  background: var(--white);
  border: var(--border);
  border-radius: var(--radius-md);
  counter-increment: step;
}

.step::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  top: 18px;
  right: 20px;
  font-size: 32px;
  font-weight: 800;
  color: var(--mint-cream);
  line-height: 1;
}

.step h4 {
  font-size: 15px;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 8px;
}

.step p {
  font-size: 13px;
  color: var(--gray-500);
}

/* ---------- Page header ---------- */
.page-head {
  padding: 56px 0 32px;
  background:
    radial-gradient(700px 280px at 80% -20%, rgba(52, 211, 153, 0.15), transparent 60%),
    var(--mint-cream);
  border-bottom: var(--border-emerald);
}

.page-head .eyebrow {
  margin-bottom: 8px;
}

.page-head h1 {
  font-size: 34px;
  font-weight: 800;
  color: var(--gray-900);
  letter-spacing: -0.5px;
}

.page-head p {
  font-size: 15px;
  color: var(--gray-500);
  margin-top: 10px;
  max-width: 620px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--gray-500);
  margin-bottom: 16px;
}

.breadcrumb a {
  color: var(--gray-500);
}

.breadcrumb a:hover {
  color: var(--emerald);
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--emerald-dark);
  color: rgba(255, 255, 255, 0.8);
  padding: 56px 0 28px;
  margin-top: 64px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  color: var(--white);
  font-weight: 700;
  font-size: 16px;
}

.footer-grid p {
  font-size: 13px;
  line-height: 1.7;
  opacity: 0.75;
  max-width: 320px;
}

.footer-grid h5 {
  color: var(--white);
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 14px;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

.footer-grid ul li {
  margin-bottom: 9px;
}

.footer-grid ul li a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 13px;
  transition: color 0.2s ease;
}

.footer-grid ul li a:hover {
  color: var(--emerald-lighter);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  opacity: 0.7;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-social {
  display: flex;
  gap: 10px;
}

.footer-social a {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.8);
  font-size: 12px;
  font-weight: 700;
  transition: all 0.2s ease;
}

.footer-social a:hover {
  background: var(--emerald-light);
  border-color: var(--emerald-light);
  color: var(--white);
}

/* ---------- Icons (CSS line icons) ---------- */
.ico {
  display: inline-grid;
  place-items: center;
}

.ico svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ico-sm svg { width: 14px; height: 14px; }
.ico-lg svg { width: 22px; height: 22px; }

/* ---------- Utility ---------- */
.flex { display: flex; }
.flex-between { display: flex; justify-content: space-between; align-items: center; }
.flex-center { display: flex; align-items: center; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.gap-4 { gap: 16px; }
.text-muted { color: var(--gray-500); }
.text-emerald { color: var(--emerald); }
.text-sm { font-size: 13px; }
.text-xs { font-size: 12px; }
.fw-700 { font-weight: 700; }
.mt-auto { margin-top: auto; }
.rounded { border-radius: var(--radius-md); }
.hidden { display: none; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero-grid,
  .two-col {
    grid-template-columns: 1fr;
  }
  .sidebar {
    position: static;
  }
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
  }
  .steps {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 760px) {
  .nav-menu,
  .nav-cta {
    display: none;
  }
  .nav-toggle {
    display: flex;
  }
  .nav-menu.open {
    display: flex;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 16px;
    gap: 4px;
    border-bottom: var(--border-emerald);
    box-shadow: var(--shadow-lg);
  }
  .nav-menu.open a {
    width: 100%;
    padding: 12px 16px;
  }
  .hero {
    padding: 56px 0 48px;
  }
  .hero h1 {
    font-size: 32px;
  }
  .hero p.lead {
    font-size: 15px;
  }
  .grid-3,
  .grid-2 {
    grid-template-columns: 1fr;
  }
  .grid-4 {
    grid-template-columns: 1fr;
  }
  .section {
    padding: 44px 0;
  }
  .cal-grid,
  .cal-head {
    grid-template-columns: repeat(2, 1fr);
  }
  .container {
    padding: 0 16px;
  }
  .page-head h1 {
    font-size: 26px;
  }
  .winner-card .name {
    font-size: 24px;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 480px) {
  .hero-stats {
    gap: 20px;
  }
  .hero-stat .num {
    font-size: 22px;
  }
  .countdown {
    flex-wrap: wrap;
  }
}
