@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;500;700&display=swap');

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: 'Poppins', sans-serif;
  background: #dff6ff;
}

.app {
  max-width: 400px;
  margin: auto;
  background: white;
  min-height: 100vh;
  padding-bottom: 78px;
}

.page {
  padding: 20px;
}

h2, h3 {
  color: #1d4ed8;
  margin-top: 0;
}

p {
  color: #334155;
  line-height: 1.5;
}

.hero {
  height: 180px;
  background: linear-gradient(135deg, #3b82f6, #22c55e);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 26px;
  font-weight: 700;
  border-radius: 12px;
  margin-bottom: 14px;
  padding: 20px;
}

.subtitle {
  text-align: center;
  margin-bottom: 16px;
}

.card {
  background: #f8fafc;
  padding: 14px;
  margin: 10px 0;
  border-radius: 10px;
  border: 1px solid #dbeafe;
}

.highlight {
  background: #eefaf2;
}

.stat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 12px 0;
}

.stat-box {
  background: #f8fafc;
  border: 1px solid #dbeafe;
  border-radius: 10px;
  padding: 12px;
  text-align: center;
}

.stat-number {
  display: block;
  font-size: 22px;
  font-weight: 700;
  color: #16a34a;
}

.label {
  font-size: 12px;
  color: #475569;
}

.progress-wrap {
  margin: 12px 0 16px;
}

.progress-label {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  color: #0f172a;
  margin-bottom: 6px;
}

.progress-bar {
  width: 100%;
  height: 10px;
  background: #dbeafe;
  border-radius: 999px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  border-radius: 999px;
  background: #22c55e;
}

.badge {
  display: inline-block;
  margin-top: 8px;
  padding: 6px 10px;
  background: #dcfce7;
  color: #166534;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
}

.friend {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: #f8fafc;
  border-radius: 10px;
  padding: 12px;
  margin: 10px 0;
  border: 1px solid #dbeafe;
}

.friend-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #3b82f6;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.friend-name {
  font-weight: 600;
  color: #0f172a;
}

.friend-meta {
  font-size: 12px;
  color: #64748b;
}

.friend-score {
  font-weight: 700;
  color: #1d4ed8;
}

input, textarea, button {
  width: 100%;
  padding: 12px;
  margin-top: 10px;
  border-radius: 10px;
  border: 1px solid #cbd5e1;
  font-family: inherit;
  font-size: 14px;
}

button {
  background: #3b82f6;
  color: white;
  border: none;
  font-weight: 600;
  cursor: pointer;
}

.quiz-option {
  margin-top: 10px;
  text-align: left;
  background: white;
  color: #0f172a;
  border: 1px solid #cbd5e1;
}

.quiz-result {
  margin-top: 14px;
  padding: 12px;
  border-radius: 10px;
  background: #ecfeff;
  color: #155e75;
  display: none;
}

.nav {
  position: fixed;
  bottom: 0;
  width: 100%;
  max-width: 400px;
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  background: #1e293b;
}

.nav a {
  padding: 10px 4px;
  color: white;
  text-align: center;
  text-decoration: none;
  font-size: 11px;
}

.center {
  text-align: center;
}

.app-photo { width: 100%; height: 180px; object-fit: cover; border-radius: 12px; margin: 10px 0 14px; border: 1px solid #dbeafe; }
.photo-caption { font-size: 12px; color: #64748b; margin-top: -6px; margin-bottom: 12px; }
