/* ─── RESET & BASE ─── */
* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html, body {
  height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: 'Instrument Sans', sans-serif;
  overflow: hidden;
}

/* ─── APP SHELL ─── */
#app { height: 100dvh; display: flex; flex-direction: column; }

/* ─── SCREENS ─── */
.screen {
  display: none;
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding-top: var(--safe-t);
  padding-bottom: calc(var(--nav-h) + var(--safe-b) + 32px);
  scroll-behavior: smooth;
}
.screen.active { display: block; }
.screen::-webkit-scrollbar { display: none; }

/* ─── SHARED LAYOUT ─── */
.section { padding: 20px 20px 0; }
.section-title {
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text3);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Instrument Sans', sans-serif;
  font-weight: 600;
}
.section-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.page-header {
  padding: calc(var(--safe-t) + 20px) 20px 0;
  margin-bottom: 4px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.page-title {
  font-family: 'Fraunces', serif;
  font-size: 32px;
  font-weight: 900;
  line-height: 1;
}
.page-subtitle { font-size: 13px; color: var(--text2); margin-top: 6px; font-style: italic; }

/* ─── SKELETON LOADING ─── */
.skeleton-card {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px;
  margin-bottom: 10px;
}
.skeleton {
  background: linear-gradient(90deg, var(--bg4) 0%, rgba(255,255,255,0.06) 50%, var(--bg4) 100%);
  background-size: 200% 100%;
  animation: shimmer 1.4s ease-in-out infinite;
  border-radius: 4px;
  height: 10px;
  margin-bottom: 8px;
}
.skeleton-line.wide { width: 70%; }
.skeleton-line.mid { width: 50%; }
.skeleton-line.slim { width: 30%; margin-bottom: 0; }
@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ─── FADE-IN ─── */
.fade-up {
  animation: fadeUp 0.35s ease both;
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ─── EMPTY STATE ─── */
.empty-state {
  padding: 60px 20px;
  text-align: center;
  color: var(--text3);
}
.empty-state .emoji { font-size: 32px; margin-bottom: 12px; display: block; }
.empty-state p { font-size: 13px; }

/* ─── BUTTON ─── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 16px;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: var(--bg4);
  color: var(--text);
  font-size: 12px;
  font-family: 'Instrument Sans', sans-serif;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s, background 0.15s;
}
.btn:active { transform: scale(0.96); }
.btn.primary {
  background: var(--accent);
  color: #080808;
  border-color: var(--accent);
}
