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

:root {
  --bg: #000;
  --card: #0f0f0f;
  --card-border: #1f1f1f;
  --inner: #0a0a0a;
  --inner-border: #1a1a1a;
  --text: #fff;
  --muted: #666;
  --dimmer: #444;
  --green: #57f287;
  --yellow: #faa81a;
  --red: #ed4245;
}

html, body {
  height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: 'Space Mono', monospace;
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
}

canvas#stars {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

#intro {
  position: fixed;
  inset: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: opacity 0.7s ease;
}

#intro span {
  font-size: 20px;
  color: #fff;
  letter-spacing: 0.1em;
  user-select: none;
}

#intro.out {
  opacity: 0;
  pointer-events: none;
}

#app {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  transition: opacity 0.8s ease;
}

#app.visible {
  opacity: 1;
}

.card {
  width: 100%;
  max-width: 580px;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 14px;
  padding: 28px;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
}

.nav-tabs {
  display: flex;
  gap: 20px;
}

.nav-tab {
  background: none;
  border: none;
  color: var(--muted);
  font-family: inherit;
  font-size: 13px;
  cursor: pointer;
  padding: 0 0 3px;
  border-bottom: 1px solid transparent;
  transition: color 0.15s, border-color 0.15s;
}

.nav-tab:hover {
  color: var(--text);
}

.nav-tab.active {
  color: var(--text);
}

.nav-counter {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
}

.nav-counter svg {
  width: 14px;
  height: 14px;
  fill: var(--muted);
}

.content {
  opacity: 1;
  transition: opacity 0.15s;
}

.content.fade {
  opacity: 0;
}

.items {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.item {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--inner);
  border: 1px solid var(--inner-border);
  border-radius: 8px;
  padding: 12px 14px;
  text-decoration: none;
  color: inherit;
}

.item.item-bare {
  background: transparent;
  border-color: transparent;
  padding-left: 0;
  padding-right: 0;
  padding-top: 0;
  align-items: center;
}

.item-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  background: #1a1a1a;
}

.item-avatar-wrap {
  position: relative;
  flex-shrink: 0;
  width: 36px;
  height: 36px;
}

.item-bare .item-avatar-wrap {
  width: 52px;
  height: 52px;
}

.item-bare .item-avatar {
  width: 52px;
  height: 52px;
}

.item-bare .item-name {
  font-size: 18px;
  margin-bottom: 3px;
}

.item-bare .item-handle {
  font-size: 13px;
}

.status-dot {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid var(--inner);
}

.item-bare .status-dot {
  width: 14px;
  height: 14px;
  border: 3px solid var(--card);
}

.status-dot.online  { background: var(--green); }
.status-dot.idle    { background: var(--yellow); }
.status-dot.dnd     { background: var(--red); }
.status-dot.offline { background: #555; }

.item-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: #1a1a1a;
  border: 1px solid #2a2a2a;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
  color: var(--text);
}

.item-info {
  flex: 1;
  min-width: 0;
}

.item-name {
  font-size: 13px;
  font-weight: 700;
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.item-handle {
  font-size: 12px;
  color: var(--muted);
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.item-sub {
  font-size: 11px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}

.dot-green {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  display: inline-block;
}

.dot-grey {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--dimmer);
  display: inline-block;
}

.sep {
  color: var(--dimmer);
}

.join-btn {
  background: #1e1e1e;
  border: 1px solid #333;
  color: var(--text);
  font-family: inherit;
  font-size: 12px;
  padding: 6px 14px;
  border-radius: 6px;
  cursor: pointer;
  text-decoration: none;
  flex-shrink: 0;
  transition: background 0.15s, border-color 0.15s;
}

.join-btn:hover {
  background: #2a2a2a;
  border-color: #444;
}

.activity-art {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
  background: #1a1a1a;
}

.activity-art-blank {
  background: #1a1a1a;
}

.activity-label {
  font-size: 10px;
  color: var(--muted);
  display: block;
  margin-bottom: 2px;
  text-transform: lowercase;
}

.about-text {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.8;
}

.about-text p {
  margin-bottom: 12px;
}

.about-text p:last-child {
  margin-bottom: 0;
}

.projects-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.project-item {
  background: var(--inner);
  border: 1px solid var(--inner-border);
  border-radius: 8px;
  padding: 14px;
  text-decoration: none;
  color: inherit;
  display: block;
  transition: border-color 0.15s;
}

.project-item:hover {
  border-color: #333;
}

.project-name {
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 4px;
}

.project-desc {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 10px;
}

.project-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.tag {
  font-size: 11px;
  color: var(--dimmer);
  background: #111;
  border: 1px solid #222;
  border-radius: 4px;
  padding: 2px 8px;
}

.socials-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.socials-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--inner);
  border: 1px solid var(--inner-border);
  border-radius: 8px;
  padding: 12px 14px;
  text-decoration: none;
  color: var(--text);
  font-size: 13px;
  transition: border-color 0.15s;
}

.socials-link:hover {
  border-color: #333;
}

.socials-link span:last-child {
  color: var(--muted);
  font-size: 12px;
}

@media (max-width: 480px) {
  .card {
    padding: 18px;
  }
}
