:root {
  --bg: #0a0a12;
  --surface: #12121a;
  --surface2: #1a1a26;
  --border: #2a2a3a;
  --border-hover: #3a3a50;
  --text: #e0e0e8;
  --text-dim: #8888a0;
  --text-muted: #555566;
  --accent: #6c5ce7;
  --accent-light: rgba(108,92,231,0.12);
  --accent2: #a29bfe;
  --green: #00d2d3;
  --orange: #ffa502;
  --pink: #ff6b9d;
  --blue: #0abde3;
  --red: #ff4757;
  --radius: 4px;
  --shadow: none;
  --font: 'JetBrains Mono', 'Fira Code', 'SF Mono', monospace;
  --glow: 0 0 12px rgba(108,92,231,0.3);
  --glow-green: 0 0 12px rgba(0,210,211,0.3);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  font-size: 14px;
  line-height: 1.6;
  /* subtle noise texture */
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
}

a { color: var(--accent2); text-decoration: none; }
a:hover { color: var(--accent); text-decoration: none; }

/* Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--border-hover); }

/* Blinking cursor animation */
@keyframes blink-cursor {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.cursor-blink::after {
  content: '_';
  animation: blink-cursor 1s step-end infinite;
  color: var(--accent);
}

/* Scanline animation */
@keyframes scanline {
  0% { transform: translateY(-100%); }
  100% { transform: translateY(100%); }
}

/* Nav */
nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 24px; background: var(--surface);
  border-bottom: 1px solid var(--accent); position: sticky; top: 0; z-index: 100;
}
.nav-logo {
  font-weight: 700; font-size: 0.95rem; color: var(--green);
  cursor: pointer; letter-spacing: -0.02em;
}
.nav-links { display: flex; gap: 20px; font-size: 0.82rem; font-weight: 500; color: var(--text-dim); }
.nav-links a {
  color: var(--text-dim); text-decoration: none; padding-bottom: 2px;
  transition: color 0.15s;
}
.nav-links a:hover { color: var(--text); }
.nav-links a.active { color: var(--accent2); border-bottom: 2px solid var(--accent); }
.nav-badge {
  background: var(--surface2); color: var(--green);
  padding: 4px 10px; border-radius: var(--radius); font-size: 0.72rem; font-weight: 600;
  border: 1px solid var(--border);
  font-variant-numeric: tabular-nums;
}
.nav-burger { display: none; background: none; border: none; font-size: 1.3rem; cursor: pointer; color: var(--text-dim); }

/* Main */
main { max-width: 1200px; margin: 0 auto; padding: 24px; }

/* Hero */
.hero {
  text-align: center; padding: 40px 24px 24px;
  background: var(--surface);
  border: 1px solid var(--accent);
  border-radius: var(--radius); margin-bottom: 24px;
  position: relative; overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(108,92,231,0.03) 2px,
    rgba(108,92,231,0.03) 4px
  );
  animation: scanline 8s linear infinite;
  pointer-events: none;
}
.hero h1 { font-size: 1.6rem; font-weight: 700; margin-bottom: 4px; color: var(--green); letter-spacing: -0.02em; }
.hero .subtitle { font-size: 0.85rem; color: var(--text-dim); margin-bottom: 16px; }
.hero-stats {
  display: inline-flex; gap: 0; background: var(--surface2);
  padding: 10px 20px; border-radius: var(--radius); border: 1px solid var(--border);
  font-variant-numeric: tabular-nums;
}
.hero-stat { text-align: center; padding: 0 16px; }
.hero-stat .value { font-size: 1.4rem; font-weight: 700; color: var(--accent2); }
.hero-stat .label { font-size: 0.68rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.08em; }
.hero-stats .divider { width: 1px; background: var(--border); }

/* Cards */
.card {
  background: var(--surface); border-radius: var(--radius);
  padding: 20px; border: 1px solid var(--border);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.card:hover {
  border-color: var(--border-hover);
}
.card-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 12px;
}
.card-header h2 { font-weight: 600; font-size: 0.9rem; color: var(--text); }
.card-header a { font-size: 0.75rem; color: var(--accent2); }

/* Grid */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 20px; }
.grid-full { grid-column: 1 / -1; }

/* Badges */
.badge {
  display: inline-block; padding: 2px 8px; border-radius: var(--radius);
  font-size: 0.7rem; font-weight: 600; border: 1px solid;
}
.badge-a { background: rgba(0,210,211,0.1); color: var(--green); border-color: rgba(0,210,211,0.3); }
.badge-b { background: rgba(10,189,227,0.1); color: var(--blue); border-color: rgba(10,189,227,0.3); }
.badge-c { background: rgba(255,165,2,0.1); color: var(--orange); border-color: rgba(255,165,2,0.3); }
.badge-tbd { background: var(--surface2); color: var(--text-muted); border-color: var(--border); }

/* Event list */
.event-item {
  display: flex; align-items: center; gap: 12px;
  padding: 10px; border-radius: var(--radius); border-left: 3px solid var(--border);
}
.event-item.next { border-left-color: var(--accent); }
.event-item .event-title { font-weight: 600; font-size: 0.85rem; }
.event-item .event-meta { font-size: 0.75rem; color: var(--text-dim); }

/* Idea cards */
.idea-card {
  padding: 12px; background: var(--surface2); border-radius: var(--radius); cursor: pointer;
  transition: background 0.15s, box-shadow 0.2s;
  border: 1px solid transparent;
}
.idea-card:hover { background: rgba(108,92,231,0.08); border-color: var(--accent); box-shadow: var(--glow); }
.idea-card-top { display: flex; align-items: center; gap: 8px; }
.idea-card .idea-title { font-weight: 600; font-size: 0.85rem; }
.idea-card .idea-meta { font-size: 0.75rem; color: var(--text-dim); margin-top: 4px; }

/* People */
.person-chip {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 12px; background: var(--surface2); border-radius: var(--radius);
  border: 1px solid var(--border);
}
.person-avatar {
  width: 32px; height: 32px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.72rem; font-weight: 600; flex-shrink: 0;
  border: 2px solid;
  background: transparent !important;
  color: var(--text);
}
.person-name { font-size: 0.82rem; font-weight: 600; }
.person-role { font-size: 0.68rem; color: var(--text-muted); }

/* Tools page */
.tools-header { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 4px; }
.tools-count { font-size: 0.82rem; color: var(--text-muted); font-variant-numeric: tabular-nums; }
.tools-search {
  width: 100%; padding: 12px 16px; border: 1px solid var(--border);
  border-radius: var(--radius); font-size: 0.88rem; outline: none; margin-bottom: 16px;
  background: var(--surface); color: var(--text);
  font-family: var(--font);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.tools-search::placeholder { color: var(--text-muted); }
.tools-search:focus { border-color: var(--accent); box-shadow: var(--glow); }
.tools-tabs {
  display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 20px;
  padding-bottom: 16px; border-bottom: 1px solid var(--border);
}
.tools-tab {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 6px 12px; border-radius: var(--radius); border: 1px solid var(--border);
  background: transparent; font-size: 0.78rem; cursor: pointer;
  color: var(--text-dim); transition: all 0.15s; font-family: var(--font);
}
.tools-tab:hover { border-color: var(--accent); color: var(--text); box-shadow: var(--glow); }
.tools-tab.active { background: var(--accent); color: #fff; border-color: var(--accent); }
.tools-tab-icon { font-size: 0.9rem; }
.tools-tab-count {
  font-size: 0.65rem; background: rgba(255,255,255,0.06); padding: 1px 5px;
  border-radius: var(--radius); margin-left: 2px;
  font-variant-numeric: tabular-nums;
}
.tools-tab.active .tools-tab-count { background: rgba(255,255,255,0.25); }

.tools-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px;
}
.tool-tile {
  background: var(--surface); border-radius: var(--radius); padding: 20px 16px;
  cursor: pointer; transition: all 0.2s; border: 1px solid var(--border);
  display: flex; flex-direction: column; align-items: center; text-align: center;
  min-height: 140px;
}
.tool-tile:hover {
  border-color: var(--accent); transform: translateY(-2px);
  box-shadow: var(--glow);
}
.tool-tile-icon { font-size: 1.8rem; margin-bottom: 8px; }
.tool-tile-name { font-weight: 700; font-size: 0.88rem; margin-bottom: 4px; color: var(--text); }
.tool-tile-desc {
  font-size: 0.75rem; color: var(--text-dim); line-height: 1.4;
  margin-bottom: 8px; flex: 1;
}
.tool-tile-cat {
  font-size: 0.65rem; font-weight: 600; padding: 2px 8px;
  border-radius: var(--radius); border: 1px solid;
}

/* Keep old classes for other pages */
.tools-categories { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.cat-btn {
  padding: 6px 12px; border-radius: var(--radius); border: 1px solid var(--border);
  background: transparent; font-size: 0.8rem; cursor: pointer; color: var(--text-dim);
  font-family: var(--font);
}
.cat-btn.active { background: var(--accent); color: #fff; border-color: var(--accent); }
.tool-card {
  padding: 12px; background: var(--surface2); border-radius: var(--radius);
  cursor: pointer; transition: all 0.15s; border: 1px solid transparent;
}
.tool-card:hover { background: rgba(108,92,231,0.08); border-color: var(--accent); box-shadow: var(--glow); }

/* Schedule timeline */
.timeline { position: relative; padding-left: 24px; }
.timeline::before {
  content: ''; position: absolute; left: 8px; top: 0; bottom: 0;
  width: 2px; background: var(--border);
}
.timeline-item {
  position: relative; margin-bottom: 16px; padding: 12px;
  background: var(--surface); border-radius: var(--radius); border: 1px solid var(--border);
}
.timeline-item::before {
  content: ''; position: absolute; left: -20px; top: 16px;
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--border); border: 2px solid var(--bg);
}
.timeline-item.active::before { background: var(--accent); box-shadow: 0 0 8px rgba(108,92,231,0.5); }
.timeline-item.done::before { background: var(--green); }
.timeline-date { font-size: 0.75rem; color: var(--text-dim); font-weight: 600; font-variant-numeric: tabular-nums; }
.timeline-title { font-weight: 600; font-size: 0.9rem; margin-top: 2px; }
.timeline-focus { font-size: 0.82rem; color: var(--text-dim); margin-top: 2px; }

/* Section header */
.section-header {
  font-size: 1.3rem; font-weight: 700; margin-bottom: 16px; color: var(--text);
}

/* Rules page */
.rules-content { line-height: 1.7; font-size: 0.88rem; color: var(--text); }
.rules-content h2 { font-size: 1.1rem; margin-top: 24px; margin-bottom: 8px; color: var(--accent2); }
.rules-content h3 { font-size: 0.95rem; margin-top: 16px; margin-bottom: 4px; color: var(--green); }
.rules-content ul { padding-left: 20px; margin: 8px 0; }
.rules-content li { margin-bottom: 4px; color: var(--text); }
.rules-content li::marker { color: var(--accent); }
.rules-content table { width: 100%; border-collapse: collapse; margin: 12px 0; }
.rules-content th, .rules-content td {
  padding: 8px 12px; text-align: left; border-bottom: 1px solid var(--border);
}
.rules-content th { font-weight: 600; background: var(--surface2); color: var(--accent2); }
.rules-content td { color: var(--text); }
.rules-content code {
  background: var(--surface2); padding: 2px 6px; border-radius: var(--radius);
  font-size: 0.85em; color: var(--green); border: 1px solid var(--border);
}

/* Criteria cards */
.criteria-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; margin: 16px 0; }
.criteria-card {
  padding: 16px; background: var(--surface); border-radius: var(--radius);
  border: 1px solid var(--border); text-align: center;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.criteria-card:hover { border-color: var(--accent); box-shadow: var(--glow); }
.criteria-card .criteria-num { font-size: 1.5rem; font-weight: 700; color: var(--accent); font-variant-numeric: tabular-nums; }
.criteria-card .criteria-name { font-weight: 700; font-size: 0.9rem; margin: 4px 0; color: var(--text); }
.criteria-card .criteria-q { font-size: 0.78rem; color: var(--text-dim); }

/* Detail page */
.detail-back {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 0.85rem; color: var(--text-dim); margin-bottom: 16px; cursor: pointer;
}
.detail-back:hover { color: var(--accent2); }
.detail-title { font-size: 1.5rem; font-weight: 700; margin-bottom: 8px; color: var(--text); display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.detail-like { display: inline-flex; align-items: center; gap: 6px; margin-left: auto; }
.detail-meta { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.detail-section { margin-bottom: 20px; }
.detail-section h3 {
  font-size: 0.82rem; text-transform: uppercase; color: var(--text-dim);
  letter-spacing: 0.08em; margin-bottom: 8px;
}
.detail-section p { color: var(--text); line-height: 1.7; }

/* Chat */
.chat-fab {
  position: fixed; bottom: 24px; right: 24px;
  width: 52px; height: 52px; border-radius: var(--radius);
  background: var(--accent); color: #fff; font-size: 1.3rem;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; box-shadow: var(--glow);
  z-index: 200; transition: transform 0.2s, box-shadow 0.2s;
  border: 1px solid var(--accent);
}
.chat-fab:hover { transform: scale(1.05); box-shadow: 0 0 20px rgba(108,92,231,0.5); }
.chat-panel {
  position: fixed; top: 0; right: 0; bottom: 0; width: 400px;
  background: var(--surface); border-left: 1px solid var(--accent);
  display: flex; flex-direction: column; z-index: 300;
  transition: transform 0.3s ease;
}
.hidden { display: none; }
.chat-panel.hidden { display: block; transform: translateX(100%); pointer-events: none; }
.chat-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 16px; border-bottom: 1px solid var(--border);
  background: var(--surface2);
}
.chat-header-title { font-weight: 700; font-size: 0.9rem; color: var(--green); }
.chat-header-sub { font-size: 0.72rem; color: var(--text-muted); }
.chat-close { background: none; border: none; font-size: 1.2rem; cursor: pointer; color: var(--text-muted); font-family: var(--font); }
.chat-close:hover { color: var(--red); }
.chat-messages {
  flex: 1; overflow-y: auto; padding: 12px 16px;
  display: flex; flex-direction: column; gap: 10px;
  background: var(--bg);
}
.chat-msg {
  max-width: 85%; padding: 8px 12px;
  font-size: 0.82rem; line-height: 1.5;
}
.chat-msg.assistant {
  align-self: flex-start; background: var(--surface2);
  border-radius: var(--radius) var(--radius) var(--radius) 0;
  color: var(--text); border: 1px solid var(--border);
}
.chat-msg.user {
  align-self: flex-end; background: var(--accent); color: #fff;
  border-radius: var(--radius) var(--radius) 0 var(--radius);
}
.chat-msg a { color: inherit; text-decoration: underline; }
.chat-msg strong { font-weight: 600; }
.chat-msg ul, .chat-msg ol { padding-left: 16px; margin: 4px 0; }
.chat-input-area {
  display: flex; gap: 8px; padding: 12px;
  border-top: 1px solid var(--border);
  background: var(--surface);
}
.chat-input {
  flex: 1; padding: 8px 12px; border: 1px solid var(--border);
  border-radius: var(--radius); font-size: 0.85rem; outline: none;
  font-family: var(--font); resize: none;
  background: var(--surface2); color: var(--text);
}
.chat-input::placeholder { color: var(--text-muted); }
.chat-input:focus { border-color: var(--accent); box-shadow: var(--glow); }
.chat-send {
  width: 36px; height: 36px; border-radius: var(--radius);
  background: var(--accent); color: #fff; border: none;
  font-size: 1rem; cursor: pointer; display: flex;
  align-items: center; justify-content: center;
  font-family: var(--font);
  transition: background 0.15s, box-shadow 0.15s;
}
.chat-send:hover { background: #5b4bd5; box-shadow: var(--glow); }
.chat-send:disabled { opacity: 0.3; cursor: not-allowed; }

/* Flex helpers */
.flex-col { display: flex; flex-direction: column; gap: 10px; }
.flex-wrap { display: flex; flex-wrap: wrap; gap: 12px; }
.mb-20 { margin-bottom: 20px; }

/* Tabs */
.tabs { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 20px; }
.tab-btn {
  padding: 8px 16px; border-radius: var(--radius); border: 1px solid var(--border);
  background: transparent; font-size: 0.82rem; cursor: pointer; color: var(--text-dim);
  font-family: var(--font); transition: all 0.15s;
}
.tab-btn:hover { border-color: var(--accent); color: var(--text); }
.tab-btn.active { background: var(--accent); color: #fff; border-color: var(--accent); }

/* Loading */
.loading { text-align: center; padding: 40px; color: var(--text-muted); font-size: 0.9rem; }

/* Terminal prompt prefix */
.terminal-prompt { color: var(--green); }

/* Responsive */
@media (max-width: 768px) {
  .grid-2 { grid-template-columns: 1fr; }
  .hero h1 { font-size: 1.2rem; }
  .hero-stats { flex-wrap: wrap; gap: 0; }
  .hero-stats .divider { display: none; }
  nav { padding: 12px 16px; }
  .nav-links { display: none; }
  .nav-links.open {
    display: flex; flex-direction: column;
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--surface); padding: 16px;
    border-bottom: 1px solid var(--border);
  }
  .nav-burger { display: block; }
  .nav-badge { display: none; }
  main { padding: 16px; }
  .chat-panel { width: 100%; }
  .criteria-grid { grid-template-columns: 1fr 1fr; }
  .tools-grid { grid-template-columns: repeat(2, 1fr); }
  .tools-tabs { gap: 4px; }
  .tools-tab { font-size: 0.72rem; padding: 4px 8px; }
}
@media (max-width: 480px) {
  .tools-grid { grid-template-columns: 1fr; }
}

/* Hackathon Pulse */
.hack-stats {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 20px;
  position: relative; overflow: hidden;
}
.hack-stats::before {
  content: ''; position: absolute; top: -60px; right: -40px;
  width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(0,210,211,0.04) 0%, transparent 70%);
  pointer-events: none;
}
.stats-header {
  display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px;
}
.stats-title {
  font-size: 0.85rem; font-weight: 600; display: flex; align-items: center; gap: 8px;
}
.pulse-dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--green);
  animation: pulseDot 2s ease infinite;
}
@keyframes pulseDot {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(0,210,211,0.4); }
  50% { opacity: 0.7; box-shadow: 0 0 0 6px rgba(0,210,211,0); }
}
.stats-meta { text-align: right; }
.stats-period { font-size: 0.68rem; color: var(--text-muted); }
.stats-last-commit { font-size: 0.65rem; color: var(--text-muted); margin-top: 2px; }

.pulse-metrics {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1px; background: var(--border); border-radius: var(--radius); overflow: hidden; margin-bottom: 16px;
}
.pulse-metric { background: var(--surface2); padding: 14px 12px; text-align: center; }
.pulse-val { font-size: 1.5rem; font-weight: 800; line-height: 1; }
.pulse-label { font-size: 0.6rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; margin-top: 4px; }

.pulse-section { margin-bottom: 16px; }
.pulse-section:last-of-type { margin-bottom: 0; }
.pulse-section-title { font-size: 0.7rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 8px; }

.pulse-lang-bar { display: flex; height: 8px; border-radius: 4px; overflow: hidden; gap: 1px; margin-bottom: 8px; }
.pulse-lang-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; }
.pulse-lang-item { display: flex; align-items: center; gap: 4px; font-size: 0.68rem; color: var(--text-dim); }
.pulse-lang-dot { width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; }

.pulse-heatmap {
  display: grid; grid-template-columns: 80px repeat(7, 1fr); gap: 2px; align-items: center;
}
.pulse-hm-corner { }
.pulse-hm-day { font-size: 0.55rem; color: var(--text-muted); text-align: center; }
a.pulse-hm-repo {
  font-size: 0.62rem; color: var(--text-dim); text-align: right; padding-right: 6px;
  overflow: hidden; min-width: 0;
  text-decoration: none; display: flex; flex-direction: column; justify-content: center;
  transition: color 0.2s;
}
.pulse-hm-name {
  display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
a.pulse-hm-repo:hover { color: var(--accent2); }
.pulse-hm-author {
  display: block; font-size: 0.52rem; color: var(--text-muted); line-height: 1.2;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.pulse-hm-cell {
  aspect-ratio: 2.5; border-radius: 2px; background: var(--surface2); min-height: 18px;
  position: relative; cursor: default;
  transition: background 0.2s, outline 0.2s;
  outline: 1px solid transparent;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.pulse-hm-cell:hover { outline: 1px solid rgba(108,92,231,0.4); }
.pulse-hm-cell.h1 { background: rgba(108,92,231,0.15); }
.pulse-hm-cell.h1:hover { background: rgba(108,92,231,0.22); }
.pulse-hm-cell.h2 { background: rgba(108,92,231,0.3); }
.pulse-hm-cell.h2:hover { background: rgba(108,92,231,0.38); }
.pulse-hm-cell.h3 { background: rgba(108,92,231,0.5); }
.pulse-hm-cell.h3:hover { background: rgba(108,92,231,0.58); }
.pulse-hm-cell.h4 { background: var(--accent); }
.pulse-hm-cell.h4:hover { background: rgba(108,92,231,0.85); }
.pulse-hm-cell .hm-val {
  font-size: 0.55rem;
  color: rgba(255,255,255,0.35);
  opacity: 0;
  transition: opacity 0.2s;
  pointer-events: none;
}
.pulse-hm-cell:hover .hm-val { opacity: 1; }
.pulse-hm-cell:not(.h1):not(.h2):not(.h3):not(.h4) .hm-val { display: none; }

.pulse-repos {
  display: flex; flex-wrap: wrap; gap: 6px;
  margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--border);
}
.pulse-repo-chip {
  display: inline-flex; align-items: center; gap: 4px;
  background: var(--surface2); border: 1px solid var(--border); border-radius: 3px;
  padding: 3px 8px; font-size: 0.68rem; color: var(--text-dim);
  text-decoration: none; transition: all 0.15s;
}
.pulse-repo-chip:hover { border-color: var(--accent); color: var(--text); }
.pulse-rc-dot { width: 5px; height: 5px; border-radius: 50%; }
.pulse-rc-num { color: var(--text-muted); font-size: 0.6rem; }

@media (max-width: 640px) {
  .pulse-metrics { grid-template-columns: repeat(2, 1fr); }
  .pulse-heatmap { grid-template-columns: 60px repeat(7, 1fr); }
}

/* Prize carousel */
.prize-tier { margin-bottom: 40px; }
.prize-tier-header {
  display: flex; align-items: center; gap: 12px; margin-bottom: 16px;
}
.prize-tier-badge {
  font-size: 1.1rem; font-weight: 800; width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center; border-radius: 8px;
}
.prize-tier-label { font-size: 0.85rem; font-weight: 600; }
.prize-tier-note { font-size: 0.68rem; color: var(--text-muted); margin-left: auto; }

.prize-carousel {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  transition: border-color 0.3s;
}
.prize-carousel:hover { border-color: var(--tier-border); }

.prize-stage {
  display: flex;
  transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}
.prize-slide {
  min-width: 100%;
  display: flex;
  align-items: center;
}
.prize-slide-img {
  width: 50%;
  display: flex; align-items: center; justify-content: center;
  padding: 12px;
  background: #fff;
  min-height: 300px;
}
.prize-slide-img img {
  max-width: 95%; max-height: 280px; object-fit: contain;
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.prize-slide.active .prize-slide-img img {
  animation: prizePop 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}
@keyframes prizePop {
  from { transform: scale(0.88) translateY(6px); opacity: 0.5; }
  to { transform: scale(1) translateY(0); opacity: 1; }
}
.prize-slide-info {
  width: 50%;
  padding: 32px 36px;
  display: flex; flex-direction: column; justify-content: center;
}
.prize-slide-name { font-size: 1.25rem; font-weight: 700; margin-bottom: 6px; line-height: 1.2; }
.prize-slide-desc { font-size: 0.82rem; color: var(--text-dim); margin-bottom: 14px; line-height: 1.5; }
.prize-slide-tag {
  display: inline-block; font-size: 0.68rem; padding: 3px 10px;
  border-radius: 3px; align-self: flex-start;
}

.prize-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--bg); border: 1px solid var(--border);
  color: var(--text-dim); font-size: 1rem; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  z-index: 5; transition: all 0.2s; font-family: var(--font);
}
.prize-nav:hover { border-color: var(--text-muted); color: var(--text); background: var(--surface2); }
.prize-prev { left: 12px; }
.prize-next { right: 12px; }

.prize-counter {
  position: absolute; top: 12px; right: 16px;
  font-size: 0.68rem; color: var(--text-muted); z-index: 5;
  background: var(--surface2); border: 1px solid var(--border);
  padding: 2px 8px; border-radius: 3px;
}

.prize-dots {
  display: flex; justify-content: center; gap: 6px;
  padding: 12px 0; background: var(--surface);
}
.prize-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--border); cursor: pointer; transition: all 0.3s; border: none;
}
.prize-dot.active { width: 20px; border-radius: 3px; background: var(--tier-color); }

.prize-footer {
  margin-top: 8px; padding: 16px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  font-size: 0.75rem; color: var(--text-dim);
}
.prize-footer-title {
  color: var(--text-muted); font-size: 0.65rem;
  text-transform: uppercase; letter-spacing: 1px; margin-bottom: 6px;
}
.prize-footer-intro { margin-bottom: 8px; color: var(--text); font-size: 0.82rem; }
.prize-footer-item { margin: 4px 0; line-height: 1.5; }
.prize-footer-item strong { color: var(--text); }
.prize-footer + .prize-footer { margin-top: 8px; }

@media (max-width: 640px) {
  .prize-slide { flex-direction: column; }
  .prize-slide-img, .prize-slide-info { width: 100%; }
  .prize-slide-img { min-height: 200px; }
  .prize-slide-info { padding: 20px; }
  .prize-counter { background: transparent; border-color: transparent; }
}

/* Idea tabs */
.idea-tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--border);
  margin-top: 8px;
}
.idea-tab {
  background: none;
  border: none;
  font-family: var(--font);
  font-size: 0.82rem;
  color: var(--text-muted);
  padding: 10px 18px;
  cursor: pointer;
  position: relative;
  transition: color 0.2s;
  display: flex;
  align-items: center;
  gap: 6px;
}
.idea-tab:hover { color: var(--text-dim); }
.idea-tab.active { color: var(--green); }
.idea-tab.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0; right: 0;
  height: 2px;
  background: var(--green);
}
.idea-tab .tab-badge {
  font-size: 0.62rem;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0 5px;
  color: var(--text-muted);
  line-height: 1.4;
}
.idea-tab.active .tab-badge {
  background: rgba(0,210,211,0.1);
  border-color: rgba(0,210,211,0.3);
  color: var(--green);
}
.idea-tab.has-content::before {
  content: '';
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--green);
  opacity: 0.4;
}
.idea-tab.active::before { opacity: 0; }

.tab-panel {
  display: none;
  padding: 16px 0;
  animation: tabFade 0.2s ease;
}
.tab-panel.active { display: block; }
@keyframes tabFade {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Vote tab */
.vote-locked { text-align: center; padding: 40px 24px; }
.vote-date-badge {
  margin-top: 16px;
  display: inline-block;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 6px 16px;
  font-size: 0.78rem;
  color: var(--orange);
}
.vote-preview {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px dashed var(--border);
}
.vote-preview-label {
  font-size: 0.68rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 14px;
  text-align: center;
}
.link-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 3px 10px;
  font-size: 0.75rem;
  color: var(--green);
  text-decoration: none;
  transition: all 0.2s;
}
.link-pill:hover { border-color: var(--green); box-shadow: 0 0 8px rgba(0,210,211,0.15); }
.link-pill .lp-icon { opacity: 0.5; font-size: 0.65rem; }

@media (max-width: 640px) {
  .idea-tab { padding: 8px 12px; font-size: 0.75rem; }
  .vote-criteria { grid-template-columns: repeat(3, 1fr); }
}

/* Git stats — Terminal Grid */
.git-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin: 8px 0 16px;
}
.git-stat-cell {
  background: var(--surface);
  padding: 12px;
  text-align: center;
}
.git-stat-val {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--green);
  line-height: 1;
}
.git-stat-label {
  font-size: 0.65rem;
  color: var(--text-muted);
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.git-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 16px 0;
}
.git-lang-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 5px 0;
  font-size: 0.8rem;
}
.git-lang-name { width: 85px; color: var(--text-dim); text-align: right; font-size: 0.78rem; }
.git-lang-bg {
  flex: 1;
  height: 7px;
  background: var(--surface2);
  border-radius: 2px;
  overflow: hidden;
}
.git-lang-fill { height: 100%; border-radius: 2px; }
.git-lang-pct { width: 38px; color: var(--text-muted); font-size: 0.7rem; }

.git-sparkline {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 48px;
}
.git-spark-bar {
  flex: 1;
  background: var(--accent);
  border-radius: 2px 2px 0 0;
  min-height: 2px;
  opacity: 0.7;
  transition: opacity 0.2s;
}
.git-spark-bar:hover { opacity: 1; }
.git-spark-days {
  display: flex;
  gap: 3px;
  margin-top: 2px;
}
.git-spark-day {
  flex: 1;
  text-align: center;
  font-size: 8px;
  color: var(--text-muted);
}

.git-commit-list { margin: 8px 0; }
.git-commit-row {
  display: flex;
  gap: 12px;
  padding: 5px 0;
  border-bottom: 1px solid rgba(42,42,58,0.4);
  font-size: 0.78rem;
  align-items: baseline;
}
.git-commit-row:last-child { border: none; }
.git-commit-time { color: var(--text-muted); width: 55px; flex-shrink: 0; font-size: 0.7rem; }
.git-commit-msg { color: var(--text); flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.git-commit-sha { color: var(--accent2); font-size: 0.68rem; opacity: 0.6; flex-shrink: 0; }
.git-commit-author { color: var(--text-dim); font-size: 0.7rem; flex-shrink: 0; }

@media (max-width: 640px) {
  .git-stats-grid { grid-template-columns: repeat(2, 1fr); }
  .git-two-col { grid-template-columns: 1fr; }
}

.btn-edit {
  background: transparent;
  border: 1px solid var(--accent);
  color: var(--accent2);
  font-family: var(--font);
  font-size: 0.78rem;
  padding: 3px 10px;
  cursor: pointer;
  border-radius: var(--radius);
  margin-left: 12px;
  vertical-align: middle;
}
.btn-edit:hover { background: var(--accent-light); }

.edit-form textarea,
.edit-form input[type="text"],
.edit-form input[type="url"] {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  font-family: var(--font);
  font-size: 0.85rem;
  padding: 8px;
  border-radius: var(--radius);
  margin-top: 4px;
  box-sizing: border-box;
}
.edit-form textarea { min-height: 100px; resize: vertical; }
.edit-form textarea:focus,
.edit-form input:focus { border-color: var(--accent); outline: none; }
.edit-form label {
  display: block;
  margin-top: 14px;
  color: var(--green);
  font-size: 0.82rem;
  font-weight: 600;
}
.btn-save {
  background: var(--accent);
  border: none;
  color: #fff;
  padding: 6px 18px;
  cursor: pointer;
  font-family: var(--font);
  font-size: 0.85rem;
  border-radius: var(--radius);
}
.btn-save:hover { opacity: 0.85; }
.btn-save:disabled { opacity: 0.5; cursor: default; }
.btn-cancel {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-dim);
  padding: 6px 18px;
  cursor: pointer;
  font-family: var(--font);
  font-size: 0.85rem;
  border-radius: var(--radius);
}
.btn-cancel:hover { border-color: var(--text-muted); }

.meeting-link {
  color: var(--green);
  font-size: 0.78rem;
  text-decoration: none;
  opacity: 0.7;
  transition: opacity 0.2s;
}
.meeting-link:hover {
  opacity: 1;
  text-decoration: underline;
}

/* === Voting: Ideas list === */
.ideas-sort { display: flex; gap: 8px; align-items: center; }
.ideas-sort-label { font-size: 0.75rem; color: var(--text-muted); }
.ideas-sort-btn {
  background: none; border: 1px solid var(--border); color: var(--text-dim);
  padding: 4px 10px; border-radius: var(--radius); font-size: 0.75rem;
  font-family: var(--font); cursor: pointer;
}
.ideas-sort-btn.active { color: var(--accent2); border-color: var(--accent); }

.idea-card { cursor: pointer; display: flex; justify-content: space-between; align-items: flex-start; transition: border-color 0.2s, box-shadow 0.2s; }
.idea-card-left { flex: 1; }
.idea-card-right { display: flex; gap: 16px; align-items: center; flex-shrink: 0; margin-left: 16px; }

.idea-card-score { text-align: center; min-width: 48px; }
.idea-score-val { font-size: 1.3rem; font-weight: 700; }
.idea-score-label { font-size: 0.65rem; color: var(--text-muted); margin-top: 2px; }

.idea-card-like { text-align: center; min-width: 40px; }
.like-btn {
  background: rgba(255,107,157,0.06); border: 1px solid rgba(255,107,157,0.25); border-radius: var(--radius);
  padding: 6px 12px; cursor: pointer; font-size: 1.2rem; transition: all 0.15s;
  color: var(--pink); font-family: var(--font); opacity: 0.7;
  animation: like-pulse 2s ease-in-out infinite;
}
.like-btn:hover { border-color: var(--pink); opacity: 1; background: rgba(255,107,157,0.12); animation: none; }
.like-btn.liked { color: var(--pink); border-color: rgba(255,107,157,0.5); background: rgba(255,107,157,0.15); cursor: default; opacity: 1; animation: none; }

@keyframes like-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255,107,157,0); opacity: 0.7; }
  50% { box-shadow: 0 0 8px 2px rgba(255,107,157,0.3); opacity: 1; }
}
.like-count { font-size: 0.75rem; color: var(--text-dim); margin-top: 4px; }

.idea-place-badge {
  font-size: 0.72rem; font-weight: 700; padding: 2px 8px; border-radius: var(--radius); margin-right: 4px;
}
.idea-place-badge.place-gold { background: rgba(255,215,0,0.12); color: #ffd700; border: 1px solid rgba(255,215,0,0.3); }
.idea-place-badge.place-silver { background: rgba(184,184,204,0.08); color: #b8b8cc; border: 1px solid rgba(184,184,204,0.2); }
.idea-place-badge.place-bronze { background: rgba(205,127,50,0.1); color: #cd7f32; border: 1px solid rgba(205,127,50,0.2); }

.card.place-gold { border-color: rgba(255,215,0,0.3); }
.card.place-silver { border-color: rgba(184,184,204,0.2); }
.card.place-bronze { border-color: rgba(205,127,50,0.2); }

/* === Voting: Detail tab === */
.vote-jury-badge {
  display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 0.75rem;
  color: var(--orange); background: rgba(255,165,2,0.08); border: 1px solid rgba(255,165,2,0.2);
  padding: 4px 10px; border-radius: var(--radius); margin: 0 auto 16px;
  max-width: fit-content;
}

.vote-criteria { display: flex; flex-direction: column; gap: 12px; max-width: 700px; margin: 0 auto; }
.vote-criterion {
  display: flex; align-items: center; gap: 16px; padding: 12px 16px;
  background: var(--surface2); border: 1px solid var(--border); border-radius: var(--radius);
}
.vote-crit-num { font-size: 0.7rem; color: var(--text-muted); min-width: 24px; }
.vote-crit-info { flex: 1; }
.vote-crit-name { font-size: 0.85rem; color: var(--text); font-weight: 600; }
.vote-crit-q { font-size: 0.75rem; color: var(--text-muted); margin-top: 2px; }
.vote-stars { display: flex; gap: 4px; }
.vote-star {
  width: 32px; height: 32px; border-radius: var(--radius); border: 1px solid var(--border);
  background: var(--surface); display: flex; align-items: center; justify-content: center;
  cursor: pointer; font-size: 0.8rem; color: var(--text-muted); font-family: var(--font);
  transition: all 0.15s;
}
.vote-star:hover { border-color: var(--orange); }
.vote-star.filled { background: rgba(255,165,2,0.12); border-color: rgba(255,165,2,0.4); color: var(--orange); }

.vote-save-row { display: flex; align-items: center; gap: 12px; margin-top: 20px; max-width: 700px; margin-left: auto; margin-right: auto; justify-content: center; }
.vote-save-btn {
  background: var(--accent-light); border: 1px solid var(--accent); color: var(--accent2);
  padding: 8px 20px; border-radius: var(--radius); font-family: var(--font); font-size: 0.85rem; cursor: pointer;
}
.vote-save-btn:hover { background: rgba(108,92,231,0.25); }
.vote-save-btn:disabled { opacity: 0.5; cursor: default; }
.vote-save-status { font-size: 0.8rem; }

.vote-results { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--border); max-width: 700px; margin-left: auto; margin-right: auto; }
.vote-results-title { font-size: 0.82rem; color: var(--text-muted); margin-bottom: 12px; }

.vote-result-row { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.vote-result-name { font-size: 0.8rem; color: var(--text-dim); width: 160px; }
.vote-result-bar-bg { flex: 1; height: 6px; background: var(--surface2); border-radius: 3px; }
.vote-result-bar { height: 100%; border-radius: 3px; background: var(--orange); }
.vote-result-val { font-size: 0.8rem; color: var(--orange); font-weight: 600; min-width: 30px; text-align: right; }

.vote-result-avg {
  display: flex; align-items: center; gap: 8px; margin-top: 12px; padding: 10px 16px;
  background: rgba(255,165,2,0.06); border: 1px solid rgba(255,165,2,0.15); border-radius: var(--radius);
}
.vote-result-avg-val { font-size: 1.4rem; font-weight: 700; color: var(--orange); }
.vote-result-avg-label { font-size: 0.8rem; color: var(--text-dim); }
.vote-result-avg-voters { font-size: 0.75rem; color: var(--text-muted); margin-left: auto; }

/* === Ideas toolbar === */
.ideas-toolbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.ideas-toolbar-right { display: flex; gap: 8px; align-items: center; }

.scores-toggle-btn {
  background: var(--surface2);
  border: 1px solid var(--border);
  color: var(--text-dim);
  padding: 4px 10px;
  border-radius: var(--radius);
  font-size: 0.75rem;
  font-family: var(--font);
  cursor: pointer;
  transition: all 0.15s;
}
.scores-toggle-btn:hover {
  border-color: var(--accent);
  color: var(--text);
}
.scores-toggle-btn:disabled {
  opacity: 0.5;
  cursor: wait;
}
.shuffle-btn {
  font-size: 0.8rem; color: var(--accent2); border: 1px solid var(--accent);
  padding: 4px 12px; border-radius: var(--radius); background: var(--accent-light);
  font-family: var(--font); cursor: pointer; font-weight: 600; transition: all 0.15s;
}
.shuffle-btn:hover { background: rgba(108,92,231,0.25); }
.shuffle-btn:disabled { opacity: 0.5; cursor: default; }

.idea-order-badge {
  font-size: 0.72rem; font-weight: 700; color: var(--text-muted); background: var(--surface2);
  border: 1px solid var(--border); padding: 1px 6px; border-radius: var(--radius);
  min-width: 22px; text-align: center;
}

.jury-results-link {
  font-size: 0.8rem; color: var(--orange); border: 1px solid rgba(255,165,2,0.3);
  padding: 4px 12px; border-radius: var(--radius); background: rgba(255,165,2,0.08);
  text-decoration: none; font-weight: 600; transition: all 0.15s;
}
.jury-results-link:hover { background: rgba(255,165,2,0.15); border-color: var(--orange); }

/* === Jury Results Table === */
.jury-table-wrap { overflow-x: auto; }
.jury-table {
  width: 100%; border-collapse: separate; border-spacing: 0;
  font-size: 0.82rem;
}
.jury-table th {
  background: var(--surface2); color: var(--text-dim); font-weight: 600;
  padding: 10px 8px; text-align: center; border-bottom: 1px solid var(--border);
  font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.02em;
  position: sticky; top: 0; z-index: 1;
}
.jury-th-place { width: 36px; }
.jury-th-name { text-align: left; min-width: 180px; }
.jury-th-crit { width: 80px; }
.jury-th-avg { width: 80px; }
.jury-th-likes { width: 40px; }

.jury-table td {
  padding: 10px 8px; border-bottom: 1px solid var(--border); text-align: center;
  vertical-align: middle;
}
.jury-td-place { color: var(--text-muted); font-size: 0.75rem; }
.jury-td-name { text-align: left; font-weight: 600; }
.jury-td-name a { color: var(--text); text-decoration: none; }
.jury-td-name a:hover { color: var(--accent2); }

.jury-td-score {
  border-left: 1px solid var(--border); font-weight: 700; font-size: 0.9rem;
  color: var(--text); transition: background 0.2s;
}
.jury-score-main { }
.jury-score-my { font-size: 0.65rem; color: var(--text-muted); font-weight: 400; margin-top: 2px; }

.jury-td-avg {
  font-weight: 700; font-size: 0.95rem; color: var(--text);
  border-left: 1px solid var(--border);
}
.jury-td-total { color: var(--orange); }
.jury-td-likes { color: var(--pink); font-weight: 600; border-left: 1px solid var(--border); }

.jury-table tbody tr:hover { background: rgba(108,92,231,0.05); }
