* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg: #fafaf6;
  --green: #5f7e5f;
  --green-dark: #46603f;
  --text: #2a2a2a;
  --muted: #8a8a85;
  --line: #ececea;
}

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  justify-content: center;
}

.phone {
  width: 100%;
  max-width: 430px;
  background: var(--bg);
  position: relative;
  min-height: 100vh;
  padding-bottom: 90px;
}

.statusbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 28px 4px;
  font-size: 14px;
  font-weight: 600;
}

.content { padding: 8px 22px; }

.page-head {
  margin-left: -22px;
  margin-right: -22px;
  padding: 32px 22px 28px;
  background-image: url('public/banner-mountains.png');
  background-size: cover;
  background-position: right center;
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 8px;
}
.head-text h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 30px;
  font-weight: 500;
  letter-spacing: 1px;
  line-height: 1.2;
  margin-bottom: 8px;
  color: var(--text);
}
.head-text p { color: var(--muted); font-size: 13px; line-height: 1.5; }
.head-circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #f0f4f0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}
.head-circle svg {
  width: 100%;
  height: 100%;
  stroke: var(--green);
  color: var(--green);
}

.section { margin-top: 24px; }
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}
.section-head h2 {
  font-size: 12px;
  letter-spacing: 1.5px;
  font-weight: 600;
}
.see-all { color: var(--muted); font-size: 12px; cursor: pointer; }

.tools-row {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 4px 0 14px;
  margin-left: -22px;
  margin-right: -22px;
  padding-left: 22px;
  padding-right: 22px;
}
.tools-row::-webkit-scrollbar { display: none; }
.tool {
  flex: 0 0 140px;
  border-radius: 20px;
  padding: 18px 14px;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
  transition: transform 0.2s, box-shadow 0.2s;
}
.tool:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.05);
}
.tool-icon-wrapper {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  padding: 10px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
}
.tool-svg {
  width: 100%;
  height: 100%;
}
.tool h4 {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 8px;
  color: var(--text);
}
.tool small {
  font-size: 10px;
  color: var(--muted);
  line-height: 1.4;
  margin-bottom: 36px;
  display: block;
}
.tool-go {
  position: absolute;
  bottom: 16px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  transition: background 0.2s, color 0.2s;
}
.tool-go svg {
  width: 100%;
  height: 100%;
}
.tool-go:hover {
  background: var(--green);
  color: #fff !important;
}

/* Card theme colors */
.t1 { background: #eef4ee; color: #5f7e5f; }
.t1 .tool-svg { stroke: #5f7e5f; }
.t1 .tool-go { color: #5f7e5f; }

.t2 { background: #f5f0f9; color: #8a6fb0; }
.t2 .tool-svg { stroke: #8a6fb0; }
.t2 .tool-go { color: #8a6fb0; }

.t3 { background: #faf2ea; color: #c07a50; }
.t3 .tool-svg { stroke: #c07a50; }
.t3 .tool-go { color: #c07a50; }

.t4 { background: #ebf3f7; color: #4b7fa0; }
.t4 .tool-svg { stroke: #4b7fa0; }
.t4 .tool-go { color: #4b7fa0; }

.t5 { background: #f0f3f0; color: #5f7e5f; }
.t5 .tool-svg { stroke: #5f7e5f; }
.t5 .tool-go { color: #5f7e5f; }

.challenge {
  background: linear-gradient(to left, #fafaf6 0%, #fafaf6 45%, rgba(250, 250, 246, 0.9) 60%, rgba(250, 250, 246, 0) 85%), url('public/challenge.jpg');
  background-size: cover;
  background-position: center;
  justify-content: flex-end;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  min-height: 160px;
}
.challenge-img-container {
  width: 40%;
  position: relative;
}
.challenge-img-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.challenge-body {
  width: 60%;
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.challenge h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text);
}
.challenge p { font-size: 11px; color: var(--muted); line-height: 1.4; margin-bottom: 12px; }
.challenge-row { display: flex; gap: 10px; align-items: center; justify-content: space-between; }
.chip {
  background: #f4f6f3;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 11px;
  color: var(--green);
  border: 1px solid rgba(95, 126, 95, 0.15);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.chip-ico {
  width: 12px;
  height: 12px;
  stroke: var(--green);
}
.join-btn {
  background: var(--green);
  color: #fff;
  border: none;
  padding: 8px 16px;
  border-radius: 24px;
  font-size: 11px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s;
}
.join-btn:hover {
  background: var(--green-dark);
}

.history {
  background: #fff;
  border-radius: 16px;
  padding: 6px 16px;
  border: 1px solid var(--line);
}
.hist-item {
  display: flex;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  gap: 14px;
}
.hist-item:last-child { border-bottom: none; }
.hist-icon {
  width: 38px; height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  flex-shrink: 0;
}
.hist-icon.i1 { background: #eef4ee; color: #5f7e5f; }
.hist-icon.i2 { background: #f5f0f9; color: #8a6fb0; }
.hist-icon.i3 { background: #ebf3f7; color: #4b7fa0; }
.hist-icon.i4 { background: #fdf0f0; color: #c05050; }
.hist-icon svg { width: 100%; height: 100%; }

.hist-body {
  flex: 1;
}
.hist-body h4 { font-size: 13px; font-weight: 600; margin-bottom: 2px; color: var(--text); }
.hist-body small { font-size: 11px; color: var(--muted); }
.dur { font-size: 11px; color: var(--muted); font-weight: 500; }

.discover {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 4px 0 14px;
  margin-left: -22px;
  margin-right: -22px;
  padding-left: 22px;
  padding-right: 22px;
}
.discover::-webkit-scrollbar { display: none; }
.disc-card {
  flex: 0 0 200px;
  border-radius: 16px;
  padding: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--line);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.01);
}
.disc-icon-box {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  flex-shrink: 0;
}
.disc-icon-box svg {
  width: 100%;
  height: 100%;
}
.disc-text {
  flex: 1;
}
.disc-card h4 { font-size: 12px; font-weight: 600; margin-bottom: 2px; color: var(--text); }
.disc-card p { font-size: 10px; color: var(--muted); line-height: 1.3; }

.d1 { background: #ebf3f7; }
.d1 .disc-icon-box { background: #fff; color: #4b7fa0; }
.d2 { background: #eef4ee; }
.d2 .disc-icon-box { background: #fff; color: #5f7e5f; }
.d3 { background: #faf2ea; }
.d3 .disc-icon-box { background: #fff; color: #c07a50; }
.d4 { background: #fdf0f0; }
.d4 .disc-icon-box { background: #fff; color: #c05050; }

.bottom-spacer { height: 20px; }

.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  background: #fff;
  display: flex;
  justify-content: space-around;
  padding: 10px 0 16px;
  border-top: 1px solid var(--line);
  z-index: 100;
}
.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  color: var(--muted);
  cursor: pointer;
  font-size: 16px;
  text-decoration: none;
}
.nav-item small { font-size: 10px; }
.nav-item.active { color: var(--green); font-weight: 600; }

.nav-icon {
  width: 22px;
  height: 22px;
  margin-bottom: 2px;
}
.nav-item.active .nav-icon path {
  fill: currentColor;
}
