:root {
  --pink: #ff5fa2;
  --violet: #7c6cff;
  --bg: #f9fafb;
  --card: #ffffff;
  --text: #0f172a;
  --muted: #64748b;
  --radius: 18px;
}

* {
  box-sizing: border-box;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body {
  margin: 0;
  background: linear-gradient(135deg, #fff0f6, #ffffff, #f3f0ff);
  color: var(--text);
}

.container {
  max-width: 1100px;
  margin: auto;
  padding: 24px;
}

header h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 6px;
}

header p {
  color: var(--muted);
  max-width: 520px;
}

.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 24px 0 32px;
}

.search {
  flex: 1;
  min-width: 220px;
}

.search input {
  width: 100%;
  padding: 12px 16px;
  border-radius: var(--radius);
  border: 1px solid #e5e7eb;
  font-size: 14px;
  outline: none;
}

.tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.tag-btn {
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid #e5e7eb;
  background: white;
  cursor: pointer;
  font-size: 13px;
  transition: all 0.2s ease;
}

.tag-btn.active {
  background: linear-gradient(135deg, var(--pink), var(--violet));
  color: white;
  border: none;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}

.card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.06);
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  animation: fadeIn 0.4s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px rgba(0,0,0,0.08);
}

.top-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.emoji {
  font-size: 28px;
}

.level {
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 999px;
  background: #ede9fe;
  color: #5b21b6;
  font-weight: 600;
}

.title {
  font-weight: 700;
  font-size: 16px;
}

.desc {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.4;
}

.bottom-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 6px;
}

.hash {
  font-size: 12px;
  font-weight: 600;
  color: var(--pink);
}

.start-btn {
  padding: 8px 14px;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  color: white;
  background: linear-gradient(135deg, var(--pink), var(--violet));
}

.empty {
  text-align: center;
  margin-top: 60px;
  color: var(--muted);
}

footer {
  margin-top: 60px;
  text-align: center;
  font-size: 13px;
  color: var(--muted);
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}
