:root {
  --bg: #F7F1E3;
  --ink: #141414;
  --ink-soft: #5A5A4F;
  --yellow: #FFD400;
  --mint: #3FCE9E;
  --mint-dark: #1F8C67;
  --card: #FFFDF8;
  --red: #E5484D;
  --border-w: 2px;
  --radius: 12px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

body { padding: 16px 16px 60px; }

.wrap { max-width: 720px; margin: 0 auto; }

a { color: inherit; }

/* ===== TOPBAR ===== */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.hamburger {
  width: 44px;
  height: 44px;
  border: var(--border-w) solid var(--ink);
  border-radius: var(--radius);
  background: var(--card);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
}

.hamburger span { display: block; width: 18px; height: 2px; background: var(--ink); position: relative; }
.hamburger span::before, .hamburger span::after {
  content: ''; position: absolute; left: 0; width: 18px; height: 2px; background: var(--ink);
}
.hamburger span::before { top: -5px; }
.hamburger span::after { top: 5px; }

.topbar-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 15px;
}

.topbar-brand .dot { width: 9px; height: 9px; background: var(--yellow); border: 1.5px solid var(--ink); border-radius: 3px; }

/* ===== NAV OVERLAY / SIDEBAR ===== */
.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(20,20,20,0.55);
  z-index: 200;
}
.nav-overlay.open { display: block; }

.nav-panel {
  position: fixed;
  top: 0;
  left: 0;
  height: 100%;
  width: 78%;
  max-width: 300px;
  background: var(--card);
  border-right: var(--border-w) solid var(--ink);
  z-index: 201;
  transform: translateX(-105%);
  transition: transform 0.25s ease;
  overflow-y: auto;
}
.nav-panel.open { transform: translateX(0); }

.nav-head {
  background: var(--mint);
  color: #063D2C;
  padding: 18px 16px;
  border-bottom: var(--border-w) solid var(--ink);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-head-brand { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 16px; }
.nav-head-brand .pill { background: #063D2C; color: var(--mint); font-size: 10px; font-weight: 800; padding: 2px 8px; border-radius: 999px; }

.nav-close {
  width: 30px; height: 30px;
  border: var(--border-w) solid var(--ink);
  border-radius: 8px;
  background: var(--card);
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
}

.nav-body { padding: 16px; }

.nav-section-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--ink-soft);
  text-transform: uppercase;
  margin: 16px 0 8px;
}
.nav-section-label:first-child { margin-top: 0; }

.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 12px;
  border: var(--border-w) solid var(--ink);
  border-radius: 10px;
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 600;
  background: var(--card);
  cursor: pointer;
  text-decoration: none;
}
.nav-item .ic { font-size: 15px; width: 18px; text-align: center; flex-shrink: 0; }
.nav-item.active { background: var(--mint); color: #063D2C; }
.nav-item:hover { background: #EFE8D6; }
.nav-item.active:hover { background: var(--mint); }

/* ===== SHARED CARD LOOK ===== */
.card {
  border: var(--border-w) solid var(--ink);
  border-radius: var(--radius);
  background: var(--card);
  padding: 16px;
  margin-bottom: 14px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: var(--border-w) solid var(--ink);
  border-radius: 999px;
  padding: 3px 10px 3px 8px;
  font-size: 11px;
  font-weight: 600;
  background: var(--yellow);
  color: #141414;
}
.status-pill .blip {
  width: 6px; height: 6px; border-radius: 50%; background: #141414;
  animation: blink 1.4s infinite;
}
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.2; } }

.btn {
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  padding: 10px 14px;
  border: var(--border-w) solid var(--ink);
  border-radius: 10px;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.btn-ink { background: var(--ink); color: #fff; }
.btn-ink:hover { background: #000; }
.btn-mint { background: var(--mint); color: #063D2C; }
.btn-yellow { background: var(--yellow); color: #141414; }
.btn-card { background: var(--card); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: 0.55; cursor: default; }

.icon {
  width: 16px;
  height: 16px;
  vertical-align: -3px;
  flex-shrink: 0;
}
.icon-sm { width: 13px; height: 13px; vertical-align: -2px; }
.icon-lg { width: 22px; height: 22px; }

/* ===== JOIN POPUP ===== */
.join-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(20,20,20,0.6);
  z-index: 250;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.join-overlay.open { display: flex; }

.join-card {
  position: relative;
  width: 100%;
  max-width: 340px;
  background: var(--card);
  border: var(--border-w) solid var(--ink);
  border-radius: var(--radius);
  box-shadow: 5px 5px 0 var(--ink);
  padding: 26px 20px 20px;
  text-align: center;
}

.join-card .nav-close { position: absolute; top: 10px; right: 10px; }

.join-icon {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--mint);
  border: var(--border-w) solid var(--ink);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 14px;
  color: #063D2C;
}

.join-title { font-size: 16px; font-weight: 800; margin: 0 0 8px; }
.join-desc { font-size: 12px; color: var(--ink-soft); line-height: 1.6; margin: 0 0 16px; }

.join-btn { width: 100%; margin-bottom: 8px; }

.join-skip {
  width: 100%;
  background: none;
  border: none;
  font-family: inherit;
  font-size: 11.5px;
  color: var(--ink-soft);
  padding: 6px;
  cursor: pointer;
  text-decoration: underline;
}
