:root {
  --bg: var(--bg-body);
  --panel: var(--bg-card);
  --border: var(--border-color);
  --text: var(--text-body);
  --muted: var(--text-muted);
  --accent: #34d399;
  --accent-strong: #10b981;
  --accent-warm: #facc15;
  --shadow: 0 24px 48px rgba(2, 6, 23, 0.55);
  --radius: 20px;
  --radius-sm: 14px;
  --font-display: "Outfit", "Noto Sans TC", sans-serif;
  --font-body: "Noto Sans TC", system-ui, sans-serif;
}




.stat-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  box-shadow: var(--shadow);
}

.stat-label {
  font-size: 0.85rem;
  color: var(--muted);
}

.stat-value {
  font-size: 1.6rem;
  font-weight: 600;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.6rem;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.panel-header h2 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.3rem;
}

.panel-header p {
  color: var(--muted);
  font-size: 0.92rem;
}

textarea {
  width: 100%;
  min-height: 240px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
  background: var(--bg-glass);
  color: var(--text);
  padding: 1rem;
  font-size: 0.95rem;
  resize: vertical;
}

.panel-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}


.draw-panel {
  justify-content: space-between;
}

.draw-card {
  background: var(--bg-glass);
  border: 1px dashed var(--border-light);
  border-radius: var(--radius-sm);
  min-height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  font-weight: 600;
  text-align: center;
  padding: 1rem;
}

.slider-row {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.slider-row input[type="range"] {
  flex: 1;
}

.group-results {
  display: grid;
  gap: 1rem;
  margin-top: 0.5rem;
}

.group-card {
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
  background: var(--bg-glass);
  padding: 0.9rem 1.1rem;
}

.group-card h3 {
  font-size: 1rem;
  margin-bottom: 0.6rem;
  color: var(--accent);
}

.group-card ul {
  list-style: none;
  display: grid;
  gap: 0.35rem;
  font-size: 0.92rem;
  color: var(--muted);
}

@media (max-width: 768px) {
  .stat-card {
    width: 100%;
    justify-content: space-between;
  }
}

@media (max-width: 480px) {
  button {
    width: 100%;
  }

  .panel-actions {
    flex-direction: column;
  }
}