/* === GROVE DESIGN SYSTEM === */
:root {
  --color-primary: #22c55e;
  --color-primary-hover: #16a34a;
  --color-primary-faint: rgba(34, 197, 94, 0.1);
  --color-bg: #fefdf8;
  --color-surface: #ffffff;
  --color-text: #1a1a1a;
  --color-text-muted: #6b7280;
  --color-text-faint: #9ca3af;
  --color-border: #e5e7eb;
  --color-success: #22c55e;
  --color-error: #ef4444;
  --color-warning: #eab308;
  --color-upvote: #22c55e;
  --color-downvote: #ef4444;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 2px 8px rgba(0,0,0,0.06);
  --shadow-lg: 0 8px 24px rgba(0,0,0,0.1);
  --transition: 0.2s ease;
  --max-width: 640px;
}

[data-theme="dark"] {
  --color-bg: #0f1a0f;
  --color-surface: #1a2e1a;
  --color-text: #e8f5e8;
  --color-text-muted: #9ca3af;
  --color-text-faint: #6b7280;
  --color-border: #2d4a2d;
  --shadow: 0 2px 8px rgba(0,0,0,0.3);
  --shadow-lg: 0 8px 24px rgba(0,0,0,0.4);
}

/* === RESET === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif; line-height: 1.6; color: var(--color-text); background: var(--color-bg); scroll-behavior: smooth; }
body { min-height: 100vh; display: flex; flex-direction: column; }
a { color: var(--color-primary); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }

/* === SKIP LINK === */
.skip-link { position: absolute; top: -100px; left: 50%; transform: translateX(-50%); background: var(--color-primary); color: white; padding: 0.5rem 1rem; border-radius: var(--radius-sm); z-index: 100; }
.skip-link:focus { top: 8px; }

/* === NAV === */
header { position: sticky; top: 0; z-index: 50; background: var(--color-surface); border-bottom: 1px solid var(--color-border); backdrop-filter: blur(8px); }
.nav-bar { max-width: 900px; margin: 0 auto; padding: 0 1rem; height: 56px; display: flex; align-items: center; justify-content: space-between; }
.logo { font-weight: 700; font-size: 1.2rem; color: var(--color-text); display: flex; align-items: center; gap: 0.4rem; }
.logo:hover { text-decoration: none; color: var(--color-primary); }
.logo-icon { font-size: 1.4rem; }
.nav-actions { display: flex; align-items: center; gap: 0.5rem; }
.nav-links { display: flex; gap: 0.25rem; }
.nav-links a { padding: 0.4rem 0.75rem; border-radius: var(--radius-sm); color: var(--color-text-muted); font-size: 0.9rem; font-weight: 500; transition: var(--transition); }
.nav-links a:hover { color: var(--color-text); background: var(--color-primary-faint); text-decoration: none; }
.nav-links a.active { color: var(--color-primary); background: var(--color-primary-faint); }

/* Theme toggle */
.theme-toggle { background: none; border: none; cursor: pointer; padding: 0.4rem; border-radius: var(--radius-sm); color: var(--color-text-muted); display: flex; align-items: center; }
.theme-toggle svg { width: 20px; height: 20px; }
.icon-sun { display: none; }
[data-theme="dark"] .icon-moon { display: none; }
[data-theme="dark"] .icon-sun { display: block; }

/* Hamburger */
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 0.5rem; width: 36px; height: 36px; position: relative; }
.nav-toggle span { display: block; width: 20px; height: 2px; background: var(--color-text); position: absolute; left: 8px; transition: var(--transition); }
.nav-toggle span:nth-child(1) { top: 11px; }
.nav-toggle span:nth-child(2) { top: 17px; }
.nav-toggle span:nth-child(3) { top: 23px; }
.nav-toggle.active span:nth-child(1) { transform: rotate(45deg); top: 17px; }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: rotate(-45deg); top: 17px; }

@media (max-width: 600px) {
  .nav-toggle { display: block; }
  .nav-links { display: none; position: absolute; top: 56px; left: 0; right: 0; background: var(--color-surface); border-bottom: 1px solid var(--color-border); flex-direction: column; padding: 0.5rem; box-shadow: var(--shadow-lg); }
  .nav-links.nav-open { display: flex; }
  .nav-links a { padding: 0.75rem 1rem; }
}

/* === MAIN === */
main { flex: 1; max-width: var(--max-width); margin: 0 auto; padding: 2rem 1rem; width: 100%; }

/* === HERO === */
.hero { text-align: center; padding: 2rem 0 1rem; }
.hero h1 { font-size: 2rem; font-weight: 800; color: var(--color-text); }
.hero-sub { color: var(--color-text-muted); font-size: 1.05rem; margin-top: 0.5rem; }

/* === QUESTION SECTION === */
.question-section { padding: 1.5rem 0; }
.today-question { font-size: 1.4rem; font-weight: 700; color: var(--color-text); line-height: 1.4; margin-bottom: 1.5rem; text-align: center; }

/* === ANSWER FORM === */
.answer-form { max-width: 500px; margin: 0 auto; }
.input-wrapper { position: relative; margin-bottom: 1rem; }
.answer-form textarea { width: 100%; padding: 1rem; border: 2px solid var(--color-border); border-radius: var(--radius); font-size: 1rem; font-family: inherit; line-height: 1.5; resize: vertical; background: var(--color-surface); color: var(--color-text); transition: var(--transition); }
.answer-form textarea:focus { outline: none; border-color: var(--color-primary); box-shadow: 0 0 0 3px var(--color-primary-faint); }
.answer-form textarea.over-limit { border-color: var(--color-error); }
.word-count { text-align: right; font-size: 0.85rem; color: var(--color-text-muted); margin-top: 0.25rem; }
.word-count.warn { color: var(--color-warning); }
.word-count.over { color: var(--color-error); font-weight: 600; }
.form-error { color: var(--color-error); font-size: 0.9rem; margin-bottom: 0.75rem; }

/* === ANSWER SUCCESS === */
.answer-success { text-align: center; padding: 2rem 0; }
.answer-success h2 { font-size: 1.5rem; margin: 1rem 0 0.5rem; color: var(--color-primary); }
.answer-success p { color: var(--color-text-muted); margin-bottom: 1.5rem; }
.success-icon { display: inline-block; animation: pop 0.4s ease; }
@keyframes pop { 0% { transform: scale(0.5); opacity: 0; } 50% { transform: scale(1.2); } 100% { transform: scale(1); opacity: 1; } }

/* === BUTTONS === */
.btn { display: inline-block; padding: 0.7rem 1.5rem; border-radius: var(--radius-sm); font-weight: 600; font-size: 0.95rem; border: none; cursor: pointer; transition: var(--transition); text-align: center; text-decoration: none; }
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--color-primary); color: white; }
.btn-primary:hover { background: var(--color-primary-hover); }
.btn-primary:disabled { background: var(--color-border); color: var(--color-text-faint); cursor: not-allowed; }
.btn-secondary { background: transparent; color: var(--color-primary); border: 2px solid var(--color-primary); }
.btn-secondary:hover { background: var(--color-primary-faint); }
.btn-small { padding: 0.4rem 0.8rem; font-size: 0.85rem; }
.action-buttons { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; margin-top: 1.5rem; }

/* === FEED === */
.feed { max-width: 500px; margin: 0 auto; }
.feed-question { text-align: center; font-weight: 600; color: var(--color-text-muted); font-size: 0.95rem; margin-bottom: 0.5rem; }
.feed-progress { text-align: center; font-size: 0.8rem; color: var(--color-text-faint); margin-bottom: 1.5rem; }
.feed-loading, .feed-error, .feed-empty { text-align: center; padding: 3rem 0; color: var(--color-text-muted); }
.feed-empty h2 { margin-bottom: 0.75rem; color: var(--color-text); }
.feed-nav { text-align: center; margin-top: 1.5rem; }
.feed-done { text-align: center; }
.feed-done p { color: var(--color-text-muted); margin-bottom: 1rem; }
.feed-done-links { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* === ANSWER CARD === */
.answer-card { background: var(--color-surface); border: 2px solid var(--color-border); border-radius: var(--radius); padding: 1.5rem; text-align: center; transition: var(--transition); }
.answer-card.voted { border-color: var(--color-primary); }
.answer-text { font-size: 1.2rem; line-height: 1.5; font-weight: 500; color: var(--color-text); margin-bottom: 1.5rem; font-style: italic; }
.vote-buttons { display: flex; justify-content: center; gap: 2rem; }
.vote-btn { background: var(--color-surface); border: 2px solid var(--color-border); border-radius: 50%; width: 56px; height: 56px; display: flex; flex-direction: column; align-items: center; justify-content: center; cursor: pointer; transition: var(--transition); color: var(--color-text-muted); gap: 2px; }
.vote-btn:hover:not(:disabled) { border-color: var(--color-text-muted); transform: scale(1.1); }
.vote-btn:disabled { cursor: default; }
.vote-btn.upvote.active { border-color: var(--color-upvote); color: var(--color-upvote); background: rgba(34, 197, 94, 0.1); transform: scale(1.1); }
.vote-btn.downvote.active { border-color: var(--color-downvote); color: var(--color-downvote); background: rgba(239, 68, 68, 0.1); transform: scale(1.1); }
.vote-count { font-size: 0.7rem; font-weight: 700; }
.vote-hint { font-size: 0.85rem; color: var(--color-text-faint); margin-top: 1rem; }

/* === HOW IT WORKS === */
.how-it-works { padding: 2rem 0; }
.how-it-works h2 { text-align: center; font-size: 1.3rem; margin-bottom: 1.5rem; }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 1.5rem; }
.step { text-align: center; }
.step-icon { width: 40px; height: 40px; border-radius: 50%; background: var(--color-primary); color: white; display: flex; align-items: center; justify-content: center; font-weight: 700; margin: 0 auto 0.75rem; }
.step h3 { font-size: 1rem; margin-bottom: 0.25rem; }
.step p { font-size: 0.85rem; color: var(--color-text-muted); }

/* === ALREADY ANSWERED === */
.already-answered { text-align: center; padding: 1rem 0; }
.already-answered p { color: var(--color-text-muted); margin-top: 0.75rem; }

/* === TREE === */
.tree-container { display: flex; flex-direction: column; align-items: center; }
.tree-label { text-align: center; margin-top: 0.5rem; }
.tree-name { font-weight: 700; font-size: 1rem; color: var(--color-text); margin-bottom: 0.15rem; }
.tree-stage { font-size: 0.9rem; color: var(--color-primary); font-weight: 600; }
.tree-upvotes { font-size: 0.8rem; color: var(--color-text-muted); }
.tree-next { font-size: 0.8rem; color: var(--color-text-faint); margin-top: 0.25rem; }
.tree-loading, .tree-empty { text-align: center; padding: 3rem 0; color: var(--color-text-muted); }

/* === MY TREE === */
.my-tree { text-align: center; }
.tree-stats { display: flex; justify-content: center; gap: 3rem; margin: 1.5rem 0; }
.stat { display: flex; flex-direction: column; }
.stat-value { font-size: 2rem; font-weight: 800; color: var(--color-primary); }
.stat-label { font-size: 0.85rem; color: var(--color-text-muted); }
.tree-name-edit { margin: 1rem 0; }
.name-edit-form { display: flex; gap: 0.5rem; justify-content: center; align-items: center; flex-wrap: wrap; }
.name-edit-form input { padding: 0.4rem 0.75rem; border: 2px solid var(--color-border); border-radius: var(--radius-sm); font-size: 0.9rem; background: var(--color-surface); color: var(--color-text); }
.name-edit-form input:focus { outline: none; border-color: var(--color-primary); }
.tree-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; margin-top: 2rem; }

/* === FOREST === */
.forest-loading, .forest-empty { text-align: center; padding: 3rem 0; color: var(--color-text-muted); }
.forest-empty h2 { margin-bottom: 0.75rem; color: var(--color-text); }
.forest-stats { display: flex; justify-content: center; gap: 2rem; font-size: 0.9rem; color: var(--color-text-muted); margin-bottom: 1.5rem; }
.forest-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 1rem; }
.forest-tree { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-sm); padding: 0.75rem; text-align: center; position: relative; transition: var(--transition); }
.forest-tree:hover { border-color: var(--color-primary); box-shadow: var(--shadow); }
.forest-rank { position: absolute; top: 4px; left: 8px; font-size: 0.7rem; font-weight: 700; color: var(--color-text-faint); }
.forest-answers { font-size: 0.7rem; color: var(--color-text-faint); margin-top: 0.25rem; }

/* === PAGE SECTION === */
.page-section { padding: 1rem 0; }
.page-section h1 { text-align: center; font-size: 1.8rem; font-weight: 800; }
.page-sub { text-align: center; color: var(--color-text-muted); margin: 0.5rem 0 2rem; }

/* === PROSE === */
.prose { max-width: 600px; margin: 0 auto; }
.prose h1 { font-size: 1.6rem; margin-bottom: 0.5rem; }
.prose h2 { font-size: 1.2rem; margin: 2rem 0 0.5rem; }
.prose p { margin-bottom: 1rem; color: var(--color-text-muted); }
.prose ul { margin: 0 0 1rem 1.5rem; color: var(--color-text-muted); }
.prose li { margin-bottom: 0.5rem; }
.prose code { background: var(--color-primary-faint); padding: 0.15rem 0.4rem; border-radius: 4px; font-size: 0.9em; }

/* === FOOTER === */
footer { text-align: center; padding: 2rem 1rem; border-top: 1px solid var(--color-border); color: var(--color-text-muted); font-size: 0.85rem; margin-top: auto; }
.footer-links { display: flex; gap: 1rem; justify-content: center; margin: 0.5rem 0; }
.footer-links a { color: var(--color-text-muted); }
.footer-small { font-size: 0.75rem; color: var(--color-text-faint); }

/* === 3D TREE / FOREST === */
.tree-3d-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 1.5rem auto;
  max-width: 400px;
}
.tree-3d-container canvas {
  border-radius: var(--radius);
  cursor: grab;
  display: block;
}
.tree-3d-container canvas:active { cursor: grabbing; }

.forest-3d-container {
  margin: 1.5rem 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--color-surface);
  box-shadow: var(--shadow);
}
.forest-3d-container canvas {
  display: block;
  width: 100%;
  cursor: grab;
}
.forest-3d-container canvas:active { cursor: grabbing; }
.forest-3d-hint {
  text-align: center;
  font-size: 0.8rem;
  color: var(--color-text-faint);
  padding: 0.5rem;
  margin: 0;
}

/* === TREE PROFILE === */
.tree-profile {
  background: var(--color-surface);
  border: 2px solid var(--color-primary);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin: 1.5rem 0;
  position: relative;
  animation: slideDown 0.25s ease;
}
@keyframes slideDown {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}
.tree-profile-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--color-text-muted);
  padding: 0.25rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.tree-profile-close:hover { color: var(--color-text); background: var(--color-primary-faint); }
.tree-profile h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 0.25rem;
}
.tree-profile-stats {
  display: flex;
  gap: 1rem;
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-bottom: 1rem;
}
.tree-profile-loading, .tree-profile-empty {
  text-align: center;
  color: var(--color-text-faint);
  padding: 1rem 0;
  font-size: 0.9rem;
}
.tree-profile-answers {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-height: 400px;
  overflow-y: auto;
}
.tree-profile-answer {
  padding: 0.75rem;
  background: var(--color-bg);
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
}
.tree-profile-question {
  font-size: 0.8rem;
  color: var(--color-text-faint);
  margin-bottom: 0.35rem;
  font-weight: 500;
}
.tree-profile-text {
  font-size: 1rem;
  color: var(--color-text);
  font-style: italic;
  line-height: 1.5;
  margin-bottom: 0.35rem;
}
.tree-profile-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.tree-profile-votes {
  font-size: 0.75rem;
  color: var(--color-text-muted);
}
.forest-tree.selected {
  border-color: var(--color-primary);
  background: var(--color-primary-faint);
  box-shadow: var(--shadow);
}

/* === INSIGHTS === */
.insights-loading, .insights-empty {
  text-align: center;
  padding: 3rem 0;
  color: var(--color-text-muted);
}
.insights-empty h2 { margin-bottom: 0.75rem; color: var(--color-text); }

.insights-day-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.insights-day-label {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--color-text);
  min-width: 50px;
  text-align: center;
}
.insights-question {
  text-align: center;
  margin-bottom: 1.5rem;
}
.insights-question p {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--color-text);
  line-height: 1.4;
  font-style: italic;
}
.insights-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}
.insights-stat {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 1rem;
  text-align: center;
  display: flex;
  flex-direction: column;
}
.insights-stat-value {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--color-primary);
}
.insights-stat-label {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  margin-top: 0.25rem;
}
.insights-section {
  margin-bottom: 2rem;
}
.insights-section h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--color-primary-faint);
}

/* Sentiment bar */
.sentiment-bar-container {
  display: flex;
  border-radius: var(--radius-sm);
  overflow: hidden;
  height: 32px;
  margin-bottom: 0.75rem;
}
.sentiment-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  color: white;
  min-width: 28px;
  transition: width 0.5s ease;
}
.sentiment-bar.positive { background: var(--color-success); }
.sentiment-bar.neutral { background: var(--color-warning); }
.sentiment-bar.negative { background: var(--color-error); }
.sentiment-legend {
  display: flex;
  gap: 1.25rem;
  font-size: 0.8rem;
  color: var(--color-text-muted);
}
.legend-item { display: flex; align-items: center; gap: 0.35rem; }
.legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}
.legend-dot.positive { background: var(--color-success); }
.legend-dot.neutral { background: var(--color-warning); }
.legend-dot.negative { background: var(--color-error); }

/* Themes */
.themes-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.theme-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 1rem;
}
.theme-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}
.theme-name {
  font-weight: 700;
  color: var(--color-primary);
  font-size: 1rem;
}
.theme-count {
  font-size: 0.8rem;
  color: var(--color-text-faint);
}
.theme-examples {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.theme-example {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  font-style: italic;
  line-height: 1.4;
  padding-left: 0.75rem;
  border-left: 2px solid var(--color-primary-faint);
}

/* Word cloud */
.word-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.75rem;
  justify-content: center;
  padding: 1rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
}
.word-cloud-item {
  color: var(--color-primary);
  font-weight: 600;
  line-height: 1.2;
  transition: transform 0.15s ease;
  cursor: default;
}
.word-cloud-item:hover { transform: scale(1.15); }

/* Top answers */
.top-answers-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.top-answer {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  padding: 0.75rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
}
.top-answer-rank {
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--color-text-faint);
  min-width: 28px;
  padding-top: 2px;
}
.top-answer-body { flex: 1; }
.top-answer-text {
  font-style: italic;
  color: var(--color-text);
  line-height: 1.5;
  margin-bottom: 0.35rem;
}
.top-answer-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
}
.top-answer-votes { color: var(--color-text-muted); }
.top-answer-sentiment { font-weight: 600; font-size: 0.75rem; }

/* Day picker grid */
.insights-nav-days {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  justify-content: center;
}
.day-btn {
  width: 36px;
  height: 36px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-surface);
  color: var(--color-text-muted);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}
.day-btn:hover { border-color: var(--color-primary); color: var(--color-text); }
.day-btn.active {
  background: var(--color-primary);
  color: white;
  border-color: var(--color-primary);
}

/* === SPECIES SHOP === */
.species-shop {
  margin-top: 2rem;
  padding: 1.5rem;
  background: var(--color-surface);
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
}
.species-shop h3 { margin: 0 0 1rem; }
.species-promo {
  text-align: center;
  padding: 1rem;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, rgba(251,191,36,0.1), rgba(244,114,182,0.1));
  border-radius: var(--radius);
  border: 1px dashed var(--color-primary);
}
.species-promo p { margin: 0 0 0.75rem; }
.species-buy-btn {
  background: linear-gradient(135deg, #f59e0b, #ec4899) !important;
  border: none !important;
  color: white !important;
  font-weight: 600;
  font-size: 1rem;
  padding: 0.75rem 1.5rem;
}
.species-buy-btn:hover { opacity: 0.9; transform: translateY(-1px); }
.species-unlocked-msg {
  text-align: center;
  color: var(--color-primary);
  font-weight: 500;
  margin-bottom: 1rem;
}
.species-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 0.75rem;
}
.species-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  padding: 0.75rem;
  border-radius: var(--radius);
  border: 2px solid var(--color-border);
  background: var(--color-bg);
  cursor: pointer;
  transition: var(--transition);
  position: relative;
}
.species-card:hover:not(.locked):not(:disabled) {
  border-color: var(--color-primary);
  transform: translateY(-2px);
}
.species-card.current {
  border-color: var(--color-primary);
  background: rgba(34,197,94,0.08);
}
.species-card.locked { opacity: 0.5; cursor: not-allowed; }
.species-preview {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  position: relative;
  overflow: hidden;
}
.species-trunk {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 8px;
  height: 30px;
  border-radius: 2px;
}
.species-name { font-weight: 600; font-size: 0.85rem; }
.species-desc { font-size: 0.7rem; color: var(--color-text-faint); text-align: center; line-height: 1.3; }
.species-lock, .species-active {
  position: absolute;
  top: 4px;
  right: 4px;
  font-size: 0.6rem;
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  font-weight: 600;
}
.species-lock { background: var(--color-border); color: var(--color-text-faint); }
.species-active { background: var(--color-primary); color: white; }

/* Species promo banner (used on feed/forest) */
.species-banner {
  text-align: center;
  padding: 0.75rem 1rem;
  margin: 1rem 0;
  background: linear-gradient(135deg, rgba(251,191,36,0.08), rgba(244,114,182,0.08));
  border-radius: var(--radius);
  border: 1px solid rgba(251,191,36,0.2);
  font-size: 0.9rem;
}
.species-banner a {
  color: var(--color-primary);
  font-weight: 600;
  text-decoration: underline;
}

/* === PRINT === */
@media print {
  header, footer, .nav-bar, .theme-toggle, .nav-toggle, .btn, .vote-buttons { display: none !important; }
  body { background: white; color: black; }
}
