:root {
  color-scheme: dark;
  --bg: #090b13;
  --panel: rgba(19, 24, 54, 0.95);
  --panel-soft: rgba(22, 28, 71, 0.95);
  --text: #f8f9ff;
  --muted: #b4b8ff;
  --border: rgba(255, 255, 255, 0.08);
  --accent: #7c88ff;
  --accent-strong: #dd84ff;
  --success: #7de7a6;
  --warning: #ffd57a;
  --danger: #ff7f7f;
}

* {
  box-sizing: border-box;
}

a{
    text-decoration: none;
}

html, body {
  margin: 0;
  min-height: 100%;
  font-family: Inter, system-ui, sans-serif;
  background: radial-gradient(circle at top left, rgba(124, 136, 255, 0.18), transparent 25%),
              radial-gradient(circle at bottom right, rgba(221, 132, 255, 0.15), transparent 20%),
              linear-gradient(180deg, #06081a 0%, #0d1224 100%);
  color: var(--text);
}

body {
  padding: 1.5rem;
}

.page-shell {
  max-width: 1440px;
  margin: 0 auto;
  display: grid;
  gap: 1.5rem;
}

.hero {
  display: grid;
  gap: 1.2rem;
  padding: 2.5rem;
  border: 1px solid var(--border);
  border-radius: 32px;
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.02));
  backdrop-filter: blur(18px);
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.24em;
  color: var(--accent);
  font-size: 0.9rem;
  margin: 0 0 0.5rem;
}

.hero h1 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.3rem);
  line-height: 1.05;
}

.hero-copy {
  margin: 0;
  max-width: 55ch;
  color: var(--muted);
}

.hero-links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.button {
  border: none;
  border-radius: 999px;
  padding: 0.95rem 1.4rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

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

.primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: #0d1224;
}

.secondary {
  background: rgba(255,255,255,0.08);
  color: var(--text);
}

.tertiary {
  background: rgba(255,255,255,0.06);
  color: var(--text);
}

.controls {
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
}

.search-label {
  display: grid;
  gap: 0.5rem;
  font-size: 0.95rem;
}

.search-label input {
  width: 100%;
  padding: 0.95rem 1rem;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.04);
  color: var(--text);
}

.table-shell {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 28px;
  background: var(--panel);
}

.mood-table {
  width: 100%;
  min-width: 980px;
  border-collapse: collapse;
}

.mood-table th,
.mood-table td {
  padding: 1rem 1.2rem;
  text-align: left;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.mood-table th {
  color: var(--muted);
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.mood-table tbody tr {
  transition: transform 0.2s ease, background 0.2s ease;
}

.mood-table tbody tr:hover {
  transform: translateY(-2px);
  background: rgba(255,255,255,0.04);
}

.avatar-cell {
  width: 64px;
}

.avatar-cell img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.08);
}

.username-link {
  color: var(--text);
  font-weight: 700;
  text-decoration: none;
}

.username-link:hover {
  text-decoration: underline;
}

.emojis-cell {
  font-size: 1.6rem;
  text-align: center;
}

.badge {
  display: inline-flex;
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 700;
  color: #0d1224;
  max-width: 13rem;
  background: linear-gradient(135deg, rgba(255,255,255,0.95), rgba(255,255,255,0.65));
}

.row-description {
  max-width: 33rem;
  color: var(--muted);
}

.footer-card {
  padding: 1.8rem;
  border-radius: 28px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
}

code {
  color: var(--accent);
  background: rgba(255,255,255,0.08);
  padding: 0.12rem 0.3rem;
  border-radius: 6px;
}

@media (max-width: 840px) {
  .controls {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .mood-table {
    min-width: 100%;
  }

  .mood-table th,
  .mood-table td {
    padding: 0.85rem 0.9rem;
  }
}
