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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: #FFF9F1;
  color: #4A3426;
  line-height: 1.7;
}

.lesson {
  max-width: 620px;
  margin: 0 auto;
  padding: 1.5rem;
}

/* Top nav */
.top-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
  background: #4FC3A1;
  border-radius: 12px;
  padding: 0.85rem 1.25rem;
}

.top-logo {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 24px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.5px;
  text-decoration: none;
}

.top-logo-img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  position: relative;
  top: 3px;
}

.home-btn {
  background: rgba(255, 255, 255, 0.2);
  border: 1.5px solid rgba(255, 255, 255, 0.5);
  border-radius: 8px;
  padding: 7px 16px;
  font-size: 13px;
  color: #ffffff;
  cursor: pointer;
  font-family: inherit;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
}

.home-btn:hover {
  background: rgba(255, 255, 255, 0.35);
}

/* Lesson header */
.lesson-header {
  background: #1B2B4B;
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.lesson-tag {
  font-size: 11px;
  font-weight: 700;
  color: #D99A2B;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 0.3rem;
}

.lesson-title {
  font-size: 18px;
  font-weight: 700;
  color: #ffffff;
}

/* Progress dots */
.progress-wrap {
  display: flex;
  gap: 5px;
}

.pdot {
  width: 22px;
  height: 6px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.2);
}

.pdot.done {
  background: #D99A2B;
}

/* Screens */
.screen {
  display: none;
}

.screen.active {
  display: block;
}

/* Cards */
.card {
  background: #ffffff;
  border-radius: 14px;
  padding: 1.5rem;
  border: 1.5px solid #f0e6cc;
  margin-bottom: 1rem;
}

.card-label {
  font-size: 11px;
  font-weight: 700;
  color: #4FC3A1;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 0.6rem;
}

.card-text {
  font-size: 16px;
  color: #4A3426;
  line-height: 1.7;
}

.card-text strong {
  color: #D99A2B;
}

/* Choices */
.choice-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 1.25rem;
}

.choice-btn {
  background: #FFF9F1;
  border: 2px solid #f0e6cc;
  border-radius: 10px;
  padding: 1rem 1.25rem;
  font-size: 15px;
  color: #4A3426;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  line-height: 1.5;
  transition: all 0.15s;
}

.choice-btn:hover {
  border-color: #D99A2B;
  background: #fff8ee;
}

/* Consequence card */
.consequence-card {
  background: #fff8ee;
  border-radius: 14px;
  padding: 1.5rem;
  border: 2px solid #D99A2B;
  margin-bottom: 1rem;
}

.consequence-emoji {
  font-size: 28px;
  margin-bottom: 0.5rem;
}

.consequence-label {
  font-size: 11px;
  font-weight: 700;
  color: #D99A2B;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 0.4rem;
}

.consequence-title {
  font-size: 17px;
  font-weight: 700;
  color: #4A3426;
  margin-bottom: 0.6rem;
}

.consequence-text {
  font-size: 15px;
  color: #4A3426;
  line-height: 1.7;
}

/* Highlight box */
.highlight-box {
  background: #fff8ee;
  border-radius: 8px;
  padding: 0.85rem 1rem;
  margin-top: 1rem;
  border-left: 3px solid #D99A2B;
  font-size: 14px;
  color: #4A3426;
  line-height: 1.6;
}

/* Reflect card */
.reflect-card {
  background: #ffffff;
  border-radius: 14px;
  padding: 1.5rem;
  border: 1.5px solid #f0e6cc;
  margin-bottom: 1rem;
}

.reflect-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 1rem;
}

.ref-btn {
  background: #FFF9F1;
  border: 2px solid #f0e6cc;
  border-radius: 10px;
  padding: 0.85rem 0.75rem;
  font-size: 14px;
  color: #4A3426;
  cursor: pointer;
  text-align: center;
  font-family: inherit;
  line-height: 1.4;
  transition: all 0.15s;
}

.ref-btn:hover {
  border-color: #4FC3A1;
  background: #f0faf6;
}

.ref-btn.picked {
  border-color: #4FC3A1;
  background: #f0faf6;
  color: #0F6E56;
  font-weight: 700;
}

.ref-result {
  display: none;
  background: #f0faf6;
  border-radius: 10px;
  padding: 1rem 1.25rem;
  margin-top: 1rem;
  font-size: 15px;
  color: #0F6E56;
  line-height: 1.7;
  border-left: 3px solid #4FC3A1;
}

.ref-result.show {
  display: block;
}

/* Mission box */
.mission-box {
  background: #1B2B4B;
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  margin-bottom: 1rem;
}

.mission-label {
  font-size: 11px;
  font-weight: 700;
  color: #D99A2B;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.mission-text {
  font-size: 15px;
  color: #ffffff;
  line-height: 1.7;
}

/* Parent box */
.parent-box {
  background: #F5E6CC;
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  margin-bottom: 1rem;
  border: 1.5px solid #e8d4b0;
}

.parent-label {
  font-size: 11px;
  font-weight: 700;
  color: #D99A2B;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.parent-text {
  font-size: 15px;
  color: #4A3426;
  line-height: 1.7;
}

/* CTA box */
.cta-box {
  background: #4FC3A1;
  border-radius: 12px;
  padding: 1.5rem;
  text-align: center;
  margin-bottom: 1rem;
}

.cta-text {
  font-size: 15px;
  color: #ffffff;
  margin-bottom: 1rem;
  line-height: 1.6;
}

.cta-btn {
  background: #D99A2B;
  color: #ffffff;
  border: none;
  border-radius: 8px;
  padding: 13px 28px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  text-decoration: none;
  display: inline-block;
}

.cta-btn:hover {
  background: #b87e20;
}

/* Button row */
.btn-row {
  display: flex;
  gap: 10px;
  margin-top: 0.25rem;
}

.next-btn {
  background: #D99A2B;
  color: #ffffff;
  border: none;
  border-radius: 10px;
  padding: 13px 28px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  flex: 1;
}

.next-btn:hover {
  background: #b87e20;
}

.restart-btn {
  background: #ffffff;
  color: #4A3426;
  border: 2px solid #f0e6cc;
  border-radius: 10px;
  padding: 13px 28px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  flex: 1;
}

.restart-btn:hover {
  border-color: #D99A2B;
  color: #D99A2B;
}

/* Mobile */
@media (max-width: 480px) {
  .reflect-grid {
    grid-template-columns: 1fr;
  }

  .lesson-title {
    font-size: 16px;
  }

  .top-logo {
    font-size: 20px;
  }

  .btn-row {
    flex-direction: column;
  }
}