:root {
  --bg-top: #f6efe4;
  --bg-bottom: #dce8f2;
  --panel: rgba(255, 252, 247, 0.88);
  --panel-strong: #fffdf9;
  --ink: #1b2230;
  --muted: #5f6674;
  --accent: #b0302f;
  --accent-dark: #7d1f20;
  --gold: #e8c16b;
  --line: rgba(27, 34, 48, 0.12);
  --correct: #2c8b57;
  --wrong: #c74c3c;
  --shadow: 0 18px 45px rgba(44, 62, 80, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Avenir Next", "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.75), transparent 35%),
    linear-gradient(160deg, var(--bg-top), var(--bg-bottom));
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: auto;
  z-index: -1;
  border-radius: 50%;
  filter: blur(8px);
}

body::before {
  width: 18rem;
  height: 18rem;
  top: 4rem;
  right: -3rem;
  background: rgba(176, 48, 47, 0.08);
}

body::after {
  width: 22rem;
  height: 22rem;
  bottom: -6rem;
  left: -5rem;
  background: rgba(232, 193, 107, 0.22);
}

.page-shell {
  width: min(1220px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 2rem 0 3rem;
}

.hero {
  padding: 1.25rem 1.5rem 1.75rem;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent);
}

.floating-point {
  width: 0.28rem;
  height: 0.28rem;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.7;
  animation: drift 3.2s ease-in-out infinite;
}

.floating-point:nth-of-type(2) {
  animation-delay: 1s;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 0;
  margin-top: 0.35rem;
  font-size: clamp(2.4rem, 6vw, 4.5rem);
  line-height: 0.96;
}

.intro {
  max-width: 56rem;
  margin: 0.9rem 0 0;
  font-size: 1.08rem;
  line-height: 1.5;
  color: var(--muted);
}

.layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.panel {
  background: var(--panel);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 28px;
  box-shadow: var(--shadow);
  padding: 1.25rem;
}

.instructions-list,
.success-criteria ul,
.model-list {
  margin: 1rem 0 0;
  padding-left: 1.2rem;
  line-height: 1.55;
}

.model-answer,
.success-criteria {
  margin-top: 1.2rem;
  padding: 1rem;
  border-radius: 20px;
  background: var(--panel-strong);
  border: 1px solid var(--line);
}

.model-answer-label {
  margin: 0;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.section-heading,
.activity-headings,
.card-actions,
.reflection-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.field-label,
.feedback,
.success-criteria li,
.model-answer p,
.activity-headings p,
.example-text,
.model-list {
  margin-bottom: 0;
}

.section-heading {
  align-items: center;
}

.completion-badge {
  margin: 0;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  background: rgba(176, 48, 47, 0.08);
  border: 1px solid rgba(176, 48, 47, 0.18);
  color: var(--accent-dark);
  font-size: 0.88rem;
  font-weight: 700;
  white-space: nowrap;
}

.activity-headings {
  margin-bottom: 1rem;
  align-items: end;
}

.activity-headings p {
  color: var(--muted);
}

.activity-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.example-card {
  display: grid;
  gap: 1rem;
  padding: 1rem;
  border-radius: 24px;
  border: 1px solid var(--line);
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.92), rgba(247, 244, 239, 0.92));
  transform: translateY(12px);
  opacity: 0;
  animation: rise-in 520ms ease forwards;
}

.example-card:nth-child(2) {
  animation-delay: 80ms;
}

.example-card:nth-child(3) {
  animation-delay: 160ms;
}

.example-card:nth-child(4) {
  animation-delay: 240ms;
}

.example-card:nth-child(5) {
  animation-delay: 320ms;
}

.example-copy {
  display: flex;
  flex-direction: column;
  min-height: 24rem;
}

.example-tag {
  margin: 0;
  font-family: "Menlo", "Consolas", monospace;
  font-size: 0.85rem;
  color: var(--accent);
}

.example-image {
  display: block;
  width: 100%;
  height: 15rem;
  margin-top: 0.85rem;
  object-fit: cover;
  object-position: top center;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: #fff;
}

.example-title {
  margin: 0.9rem 0 0;
  font-size: 1.05rem;
}

.example-text {
  margin-top: 0.45rem;
  font-size: 0.98rem;
  line-height: 1.5;
  color: var(--muted);
}

.response-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.9rem;
}

.field-label {
  display: block;
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--muted);
}

textarea {
  width: 100%;
  margin-top: 0.45rem;
  padding: 0.9rem 1rem;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  font: inherit;
  resize: vertical;
  min-height: 6rem;
}

.button {
  appearance: none;
  border: 0;
  border-radius: 999px;
  padding: 0.9rem 1.2rem;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, opacity 160ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
}

.button:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(176, 48, 47, 0.2);
  outline-offset: 2px;
}

.button-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 10px 24px rgba(176, 48, 47, 0.22);
}

.button-secondary {
  background: rgba(255, 255, 255, 0.8);
  color: var(--ink);
  border: 1px solid var(--line);
}

.button-download {
  width: auto;
  min-width: 13rem;
  padding: 1rem 1.4rem;
  background: linear-gradient(135deg, #1f8f57, #2da86a);
  color: #fff;
  box-shadow: 0 14px 28px rgba(45, 168, 106, 0.24);
}

.feedback {
  min-height: 1.4rem;
  font-size: 0.92rem;
  font-weight: 600;
}

.feedback.complete {
  color: var(--correct);
}

.feedback.partial {
  color: #9a6a12;
}

.feedback.empty {
  color: var(--wrong);
}

.scenario-model[hidden],
.model-answer[hidden] {
  display: none;
}

.model-subheading {
  margin-top: 0.85rem;
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--accent-dark);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.purpose-copy {
  line-height: 1.55;
}

.reflection-actions {
  margin-top: 1rem;
  justify-content: flex-start;
}

.export-panel {
  text-align: center;
  padding: 0.5rem 0 0;
}

@keyframes rise-in {
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes drift {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-2px);
  }
}

@media (max-width: 780px) {
  .activity-grid {
    grid-template-columns: 1fr;
  }

  .status-head,
  .section-heading,
  .activity-headings {
    align-items: flex-start;
    flex-direction: column;
  }

  .example-copy {
    min-height: auto;
  }

  .page-shell {
    width: min(100% - 1rem, 100%);
    padding-top: 1rem;
  }

  .hero {
    padding: 1rem;
  }

  .panel {
    border-radius: 22px;
    padding: 1rem;
  }

  .example-image {
    height: 12rem;
  }

}
