.feast-shell {
  display: grid;
  gap: 24px;
}


.feast-hero {
  background: linear-gradient(135deg, rgba(192, 57, 43, 0.94), rgba(108, 43, 36, 0.96));
  color: #fff;
  border-radius: 28px;
  padding: clamp(28px, 5vw, 52px);
  box-shadow: 0 24px 55px rgba(192, 57, 43, 0.22);
  overflow: hidden;
  position: relative;
}


.feast-hero h2 {
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 0.95;
  margin: 16px 0;
}


.feast-hero p {
  max-width: 760px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.05rem;
}


.feast-round-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 24px 0;
}


.feast-round-list div,
.feast-result-panel {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 18px;
  padding: 16px;
}


.feast-round-list strong,
.feast-round-list span {
  display: block;
}


.feast-round-list span {
  color: rgba(255, 255, 255, 0.78);
  margin-top: 4px;
}


.feast-round-intro h3,
.feast-loading-card h3 {
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  margin: 4px 0 0;
}


.feast-round-chip,
.feast-loading-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: #f8fafc;
  color: #475569;
  font-weight: 800;
  font-size: 0.82rem;
  white-space: nowrap;
}


.feast-loading-pill {
  background: rgba(192, 57, 43, 0.08);
  color: #9f2f25;
}


.feast-spinner {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  border: 3px solid rgba(192, 57, 43, 0.18);
  border-top-color: #c0392b;
  animation: feast-spin 0.8s linear infinite;
}


@keyframes feast-spin {
  to { transform: rotate(360deg); }
}


.feast-game-card,
.feast-mc-card,
.feast-translation-card {
  min-height: 520px;
}


.feast-game-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}


.feast-timer {
  font-size: 1.6rem;
  font-variant-numeric: tabular-nums;
  color: #1e293b;
}


.feast-matching-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(20px, 6vw, 72px);
}


.feast-matching-grid h4 {
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #94a3b8;
  font-size: 0.78rem;
  margin-bottom: 14px;
}


.feast-card-stack {
  display: grid;
  gap: 12px;
}


.feast-match-card,
.feast-mc-option {
  width: 100%;
  border: 2px solid #eef2f7;
  background: #fff;
  border-radius: 18px;
  min-height: 62px;
  padding: 14px 18px;
  font-weight: 800;
  color: #1e293b;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease, color 0.18s ease;
}


.feast-match-card:hover,
.feast-mc-option:hover {
  transform: translateY(-1px);
  border-color: rgba(192, 57, 43, 0.4);
}


.feast-match-card.selected,
.feast-mc-option.is-pressed {
  background: #c0392b;
  border-color: #c0392b;
  color: #fff;
}


.feast-card-error {
  background: #fee2e2 !important;
  border-color: #ef4444 !important;
  color: #991b1b !important;
  animation: feast-shake 0.18s ease-in-out 0s 2;
}


@keyframes feast-shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  75% { transform: translateX(5px); }
}


.feast-card-leaving { opacity: 0; transform: scale(0.95); }

.feast-card-entering { animation: feast-pop 0.35s ease both; }


@keyframes feast-pop {
  from { opacity: 0; transform: scale(0.94); }
  to { opacity: 1; transform: scale(1); }
}


.feast-mc-card h3 {
  font-size: clamp(1.5rem, 3vw, 2.4rem);
  text-align: center;
  margin: 30px auto;
  max-width: 760px;
}


.feast-mc-options {
  display: grid;
  gap: 12px;
  max-width: 720px;
  margin: 0 auto;
}


.feast-mc-option {
  display: flex;
  justify-content: space-between;
  text-align: left;
}


.feast-source-box {
  display: grid;
  gap: 8px;
  padding: 18px;
  border-radius: 20px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  margin-bottom: 18px;
}


.feast-source-box span {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #64748b;
  font-weight: 800;
  font-size: 0.76rem;
}


.feast-source-box strong {
  font-size: 1.16rem;
  color: #0f172a;
}


.feast-translation-actions {
  justify-content: flex-end;
  margin-top: 18px;
}


.feast-results-hero {
  background: linear-gradient(135deg, #1f2937, #0f172a);
}


.feast-results-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}


.feast-result-panel {
  background: #fff;
  border-color: #e2e8f0;
  color: #1e293b;
}


.feast-result-panel h3 {
  margin-bottom: 12px;
}


.feast-result-panel table {
  width: 100%;
  border-collapse: collapse;
}


.feast-result-panel th,
.feast-result-panel td {
  text-align: left;
  padding: 8px 6px;
  border-bottom: 1px solid #edf2f7;
  font-size: 0.9rem;
}


@media (max-width: 760px) {
  .feast-round-list,
  .feast-results-grid,
  .feast-matching-grid {
    grid-template-columns: 1fr;
  }


  .feast-game-topbar {
    align-items: flex-start;
  }

}


.feast-hero-studio {
  min-height: auto;
  padding-bottom: clamp(34px, 5vw, 56px);
}

.feast-hero-studio .feast-round-list {
  align-items: stretch;
  margin-top: 28px;
}

.feast-hero-studio .feast-round-list > div {
  display: grid;
  gap: 8px;
  min-height: 92px;
  align-content: center;
}

.feast-hero-studio .inline-actions {
  margin-top: 22px;
}

@media (max-width: 820px) {
  .feast-hero-studio {
    padding: 32px 24px 38px;
  }

  .feast-hero-studio h2 {
    font-size: clamp(2.3rem, 12vw, 4.2rem);
    line-height: .98;
  }

  .feast-hero-studio .feast-round-list {
    grid-template-columns: 1fr;
  }

}


.feast-assessment-shell {
  justify-items: center;
}

.feast-hero-assessment {
  width: min(100%, 1120px);
  background:
    radial-gradient(circle at 12% 0%, rgba(253, 237, 236, .9), transparent 34%),
    linear-gradient(180deg, #ffffff 0%, #fffafa 100%) !important;
  color: #111827 !important;
  border: 1px solid rgba(226, 232, 240, .95);
  box-shadow: 0 22px 60px rgba(15, 23, 42, .08) !important;
  text-align: center;
  padding: clamp(34px, 5vw, 64px) clamp(22px, 5vw, 58px) !important;
}

.feast-hero-assessment .shell-context-pill {
  margin-inline: auto;
  background: #fff1ee;
  color: var(--color-primary);
}

.feast-hero-assessment h2 {
  display: grid;
  gap: 0;
  margin: 18px auto 16px !important;
  max-width: 13ch;
  font-size: clamp(2.8rem, 7vw, 5.6rem) !important;
  line-height: .9 !important;
  letter-spacing: -.06em;
}

.feast-hero-assessment h2 span {
  color: var(--color-primary);
  font-family: "Playfair Display", var(--font-serif);
  font-style: italic;
  font-weight: 900;
}

.feast-hero-assessment h2 strong {
  color: #111827;
  font-family: "Space Grotesk", var(--font-sans);
  font-weight: 950;
}

.feast-hero-assessment p {
  margin-inline: auto;
  max-width: 680px !important;
  color: rgba(255, 255, 255, .78) !important;
  font-weight: 700;
  line-height: 1.65;
}

.feast-assessment-rounds {
  margin: clamp(28px, 5vw, 44px) auto 0 !important;
  max-width: 980px;
}

.feast-assessment-rounds > div {
  position: relative;
  min-height: 210px;
  display: grid !important;
  align-content: center;
  justify-items: start;
  gap: 8px !important;
  padding: 28px !important;
  text-align: left;
  background: rgba(255, 255, 255, .92) !important;
  border: 1px solid rgba(226, 232, 240, .95) !important;
  box-shadow: 0 18px 45px rgba(15, 23, 42, .06);
}

.feast-assessment-rounds > div:nth-child(2) {
  border-color: rgba(192, 57, 43, .22) !important;
  box-shadow: 0 20px 48px rgba(192, 57, 43, .10);
}

.feast-round-number {
  position: absolute;
  top: 18px;
  right: 20px;
  color: rgba(100, 116, 139, .14) !important;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.feast-round-icon {
  width: 54px;
  height: 54px;
  display: grid !important;
  place-items: center;
  border-radius: 18px;
  background: #f8fafc;
  border: 1px solid #eef2f7;
  color: var(--color-primary) !important;
  font-weight: 950;
  font-size: 1.25rem;
}

.feast-assessment-rounds strong {
  color: #111827 !important;
  font-size: 1.35rem;
  font-weight: 950;
}

.feast-assessment-rounds small {
  color: #64748b;
  font-weight: 800;
  line-height: 1.45;
}

.feast-assessment-actions {
  justify-content: center;
  margin-top: clamp(24px, 4vw, 36px) !important;
}

@media (max-width: 820px) {
  .feast-hero-assessment h2 {
    font-size: clamp(2.4rem, 13vw, 4.2rem) !important;
  }

  .feast-assessment-rounds > div {
    min-height: auto;
  }

}


/* FEAST page composition */
[data-page-content="placement-test"].student-page.card {
  padding: 0 !important;
  background:
    radial-gradient(circle at 50% 14%, rgba(253, 237, 236, .85), transparent 34%),
    linear-gradient(180deg, #ffffff 0%, #fffafa 100%) !important;
  border: 1px solid rgba(226, 232, 240, .9) !important;
  box-shadow: 0 24px 64px rgba(15, 23, 42, .08) !important;
  overflow: visible !important;
}


[data-page-content="placement-test"] #placement-test-root {
  min-height: calc(100vh - 290px);
  display: grid;
  align-items: center;
}


.feast-assessment-shell {
  min-height: inherit;
  align-items: center;
  justify-items: center;
}


.feast-hero-assessment {
  width: 100% !important;
  max-width: 1180px !important;
  border: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
  border-radius: 0 !important;
  padding: clamp(52px, 6vw, 84px) clamp(24px, 5vw, 64px) clamp(44px, 5vw, 72px) !important;
}


.feast-hero-assessment .shell-context-pill {
  position: relative;
  z-index: 2;
  box-shadow: 0 10px 26px rgba(192, 57, 43, .08);
}


.feast-hero-assessment h2 {
  margin-top: 22px !important;
}


.feast-hero-assessment p {
  max-width: 660px !important;
  line-height: 1.65;
}


.feast-assessment-rounds {
  width: min(100%, 920px);
  margin: clamp(28px, 5vw, 48px) auto 0 !important;
  gap: 18px !important;
}


.feast-assessment-rounds > div {
  background: rgba(255, 255, 255, .94) !important;
  border: 1px solid rgba(214, 225, 245, .92) !important;
  box-shadow: 0 18px 44px rgba(15, 23, 42, .06) !important;
  text-align: left;
  min-height: 170px !important;
  padding: 24px 28px !important;
  position: relative;
  overflow: hidden;
}


.feast-assessment-rounds > div:nth-child(2) {
  border-color: rgba(192, 57, 43, .24) !important;
}


.feast-round-number {
  position: absolute;
  top: 20px;
  right: 22px;
  color: rgba(15, 23, 42, .18) !important;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: .12em;
}


.feast-round-icon {
  width: 58px;
  height: 58px;
  display: grid !important;
  place-items: center;
  margin: 0 0 20px !important;
  border-radius: 18px;
  background: #f8fafc;
  color: var(--color-primary) !important;
  border: 1px solid rgba(226, 232, 240, .9);
  font-size: .95rem;
  font-weight: 950;
  letter-spacing: .04em;
}


.feast-assessment-rounds strong {
  color: #111827 !important;
  font-size: 1.25rem;
  line-height: 1.1;
}


.feast-assessment-rounds small {
  display: block;
  margin-top: 8px;
  color: #64748b;
  font-weight: 850;
  line-height: 1.35;
}


.feast-assessment-shell .inline-actions {
  justify-content: center;
  margin-top: 32px;
}


@media (max-width: 860px) {
  [data-page-content="placement-test"] #placement-test-root {
    align-items: start;
  }


  .feast-hero-assessment {
    padding: 42px 18px 44px !important;
  }


  .feast-assessment-rounds {
    grid-template-columns: 1fr !important;
  }


  .feast-assessment-rounds > div {
    min-height: 132px !important;
  }

}


.feast-assessment-rounds > div {
  isolation: isolate;
}


.feast-round-number {
  color: rgba(159, 47, 37, .78) !important;
  background: rgba(253, 237, 236, .92) !important;
  border: 1px solid rgba(192, 57, 43, .16) !important;
  border-radius: 999px !important;
  padding: 6px 10px !important;
  font-size: .72rem !important;
  line-height: 1 !important;
  z-index: 2 !important;
}


.feast-round-icon {
  background: #fff4f1 !important;
  border-color: rgba(192, 57, 43, .18) !important;
  color: #9f2f25 !important;
  box-shadow: 0 12px 28px rgba(192, 57, 43, .12) !important;
  z-index: 2 !important;
}


.feast-matching-grid h4 {
  color: #475569 !important;
}


.feast-round-intro-shell,
.feast-loading-shell {
  min-height: inherit;
  display: grid;
  align-items: center;
}


.feast-round-intro-card {
  min-height: min(620px, calc(100vh - 300px));
  display: grid;
  align-items: center;
  border: 1px solid rgba(226, 232, 240, .92);
  background:
    radial-gradient(circle at 90% 8%, rgba(253, 237, 236, .95), transparent 30%),
    linear-gradient(180deg, #ffffff 0%, #fffafa 100%);
  box-shadow: 0 24px 62px rgba(15, 23, 42, .08);
}


.feast-round-intro-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(250px, .75fr);
  gap: clamp(22px, 5vw, 54px);
  align-items: stretch;
}


.feast-round-intro-copy {
  display: grid;
  align-content: center;
  gap: 18px;
}


.feast-round-intro-copy h3 {
  max-width: 13ch;
  font-size: clamp(2.4rem, 6vw, 5.1rem) !important;
  line-height: .92 !important;
  letter-spacing: -.07em;
  color: #111827;
}


.feast-round-intro-copy .meta {
  max-width: 680px;
  font-size: 1.02rem;
  line-height: 1.75;
}


.feast-round-intro-actions {
  margin-top: 12px;
}


.feast-round-intro-status {
  display: grid;
  align-content: center;
  justify-items: start;
  gap: 16px;
  padding: clamp(20px, 4vw, 34px);
  border-radius: 28px;
  background: rgba(255, 255, 255, .88);
  border: 1px solid rgba(226, 232, 240, .95);
  box-shadow: 0 18px 44px rgba(15, 23, 42, .06);
}


.feast-round-intro-status strong {
  color: #111827;
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  line-height: 1.05;
}


.feast-round-intro-status span:last-child {
  color: #64748b;
  font-weight: 750;
  line-height: 1.55;
}


.feast-game-instruction {
  margin: 10px 0 18px;
  font-weight: 700;
  line-height: 1.6;
}


.feast-game-topbar {
  gap: 10px;
  flex-wrap: wrap;
}


.feast-loading-card {
  min-height: 360px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 18px;
  text-align: center;
}


.feast-loading-card .meta {
  max-width: 620px;
  line-height: 1.7;
}


@media (max-width: 860px) {
  .feast-round-intro-card {
    min-height: auto;
  }


  .feast-round-intro-layout {
    grid-template-columns: 1fr;
  }


  .feast-round-intro-copy h3 {
    max-width: 15ch;
    font-size: clamp(2rem, 12vw, 3.4rem) !important;
  }

}


.feast-round-intro-card {
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  padding: clamp(34px, 5vw, 58px) !important;
}


.feast-round-intro-status {
  min-height: 270px;
}


.feast-game-shell {
  min-height: inherit;
  display: grid;
  align-items: center;
}


.feast-game-card-flat,
.feast-game-empty {
  width: 100%;
  min-height: min(620px, calc(100vh - 300px));
  padding: clamp(24px, 4vw, 42px);
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}


.feast-game-empty {
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 14px;
  text-align: center;
}


.feast-game-empty h3 {
  margin: 0;
  color: #111827;
  font-size: clamp(1.6rem, 4vw, 2.4rem);
}


.feast-game-empty .meta {
  max-width: 620px;
  line-height: 1.7;
}


.feast-matching-grid {
  align-items: start;
  margin-top: clamp(20px, 4vw, 38px);
}


.feast-card-stack {
  min-height: 420px;
}


.feast-match-card {
  min-height: 68px;
  text-align: center;
}


@media (max-width: 860px) {
  .feast-round-intro-card,
  .feast-game-card-flat,
  .feast-game-empty {
    padding: 28px 18px !important;
  }


  .feast-round-intro-status,
  .feast-game-card-flat,
  .feast-game-empty {
    min-height: auto;
  }


  .feast-card-stack {
    min-height: 0;
  }

}


.feast-round-intro-shell {
  justify-items: center;
}


.feast-round-intro-card {
  width: min(100%, 1180px);
}


.feast-round-intro-layout {
  align-items: center;
}


.feast-round-intro-status {
  min-height: 0 !important;
  align-content: center;
  padding: clamp(10px, 2vw, 18px) !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}


.feast-round-intro-status .feast-round-chip {
  background: #fff1ee;
  color: #9f2f25;
}


.feast-round-intro-status strong {
  max-width: 12ch;
}


.feast-game-card-flat {
  width: min(100%, 1180px);
  justify-self: center;
}


.feast-match-card.feast-pair-resolved {
  pointer-events: none;
  transform: translateY(-1px) scale(.99);
}


.feast-match-card.feast-pair-resolved-a {
  background: #DBEAFE !important;
  border-color: #93C5FD !important;
  color: #1D4ED8 !important;
}


.feast-match-card.feast-pair-resolved-b {
  background: #F3E8FF !important;
  border-color: #C084FC !important;
  color: #7E22CE !important;
}


.feast-match-card.feast-pair-resolved-correct {
  background: #DCFCE7 !important;
  border-color: #86EFAC !important;
  color: #166534 !important;
}


.feast-match-card.feast-pair-resolved span::after {
  content: ' ✓';
  font-weight: 950;
}


@media (max-width: 860px) {
  .feast-round-intro-status strong {
    max-width: none;
  }

}


.feast-match-card {
  will-change: transform, opacity;
}


.feast-mc-card {
  display: grid;
  align-content: center;
}


.feast-mc-prompt-card {
  max-width: 820px;
  width: 100%;
  margin: 24px auto 24px;
  padding: clamp(22px, 4vw, 34px);
  border-radius: 28px;
  background:
    radial-gradient(circle at 12% 0%, rgba(253, 237, 236, .88), transparent 42%),
    linear-gradient(180deg, #ffffff 0%, #fffafa 100%);
  border: 1px solid rgba(226, 232, 240, .92);
  box-shadow: 0 20px 50px rgba(15, 23, 42, .06);
  text-align: center;
}


.feast-mc-prompt-card > span {
  display: inline-flex;
  margin-bottom: 14px;
  padding: 7px 11px;
  border-radius: 999px;
  background: #fff1ee;
  color: #9f2f25;
  font-size: .72rem;
  font-weight: 950;
  letter-spacing: .12em;
  text-transform: uppercase;
}


.feast-mc-card .feast-mc-prompt-card h3 {
  margin: 0 auto !important;
  max-width: 780px;
  min-height: 96px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  line-height: 1.22;
}


.feast-mc-blank {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 132px;
  min-height: 42px;
  padding: 7px 18px;
  border-radius: 999px;
  border: 2px dashed rgba(192, 57, 43, .42);
  background: rgba(253, 237, 236, .92);
  color: #9f2f25;
  font-size: .78rem;
  font-weight: 950;
  letter-spacing: .08em;
  text-transform: uppercase;
  vertical-align: middle;
}


.feast-mc-options {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
  max-width: 820px !important;
  gap: 14px !important;
}


.feast-mc-option {
  min-height: 78px !important;
  height: 100%;
  align-items: center;
}


.feast-mc-option span:first-child {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}


.feast-loading-card {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}


.feast-loading-card h3 {
  margin: 0;
  color: #111827;
}


.feast-translation-source-box {
  position: relative;
  overflow: hidden;
  padding: clamp(20px, 4vw, 32px) !important;
  background:
    radial-gradient(circle at 85% 0%, rgba(253, 237, 236, .88), transparent 38%),
    linear-gradient(180deg, #ffffff 0%, #fffafa 100%) !important;
  border-color: rgba(192, 57, 43, .16) !important;
  box-shadow: 0 18px 42px rgba(15, 23, 42, .05);
}


.feast-translation-source-box strong {
  font-size: clamp(1.25rem, 2.4vw, 2rem) !important;
  line-height: 1.3;
}


.feast-translation-editor-wrap {
  position: relative;
  z-index: 1;
  min-width: 0;
  max-width: 100%;
}


@media (max-width: 760px) {
  .feast-mc-options {
    grid-template-columns: 1fr;
  }


  .feast-mc-card .feast-mc-prompt-card h3 {
    min-height: 72px;
  }

}


.feast-mc-options {
  max-width: min(1080px, 100%) !important;
  width: min(1080px, 100%);
  grid-template-columns: repeat(2, minmax(300px, 1fr)) !important;
  grid-auto-rows: minmax(108px, auto);
  gap: clamp(16px, 2.4vw, 24px) !important;
}


.feast-mc-option {
  min-height: 108px !important;
  padding: 20px 24px !important;
  border-radius: 24px !important;
  font-size: 1rem;
  line-height: 1.3;
}


.feast-mc-option span:first-child {
  -webkit-line-clamp: 3;
}


@media (max-width: 760px) {
  .feast-mc-options {
    grid-template-columns: 1fr !important;
    grid-auto-rows: minmax(92px, auto);
  }


  .feast-mc-option {
    min-height: 92px !important;
  }

}

.feast-results-why {
  max-width: 920px;
  margin: 0;
  color: rgba(255,255,255,.84);
  font-size: clamp(1rem, 1.7vw, 1.25rem);
  line-height: 1.55;
}


.feast-results-why strong {
  color: #fff;
}


.feast-results-actions {
  margin-top: 52px;
  flex-shrink: 0;
}

.feast-result-card-mc {
  background: linear-gradient(180deg, #fff 0%, #f8fbff 100%);
}


.feast-result-card-translation {
  background: linear-gradient(180deg, #fff 0%, #fbfff8 100%);
}


.feast-result-card-radar {
  background: radial-gradient(circle at 88% 8%, rgba(253, 237, 236, .78), transparent 30%), #fff;
}


.feast-result-card-head span {
  display: inline-flex;
  width: fit-content;
  padding: 7px 11px;
  border-radius: 999px;
  background: #fff1ee;
  color: #9f2f25;
  font-size: .72rem;
  font-weight: 950;
  letter-spacing: .1em;
  text-transform: uppercase;
}


.feast-result-card-head h3 {
  margin: 12px 0 0;
  font-size: clamp(1.3rem, 2vw, 1.8rem);
  letter-spacing: -0.03em;
}


.feast-result-bars,
.feast-result-percent-bars {
  display: grid;
  align-content: center;
  gap: 14px;
}


.feast-result-bar-row,
.feast-result-percent-row {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 86px;
  align-items: center;
  gap: 12px;
  color: #334155;
}


.feast-result-bar-row > span,
.feast-result-percent-row > span {
  font-weight: 950;
  color: #111827;
}


.feast-result-bar-row > strong,
.feast-result-percent-row > strong {
  text-align: right;
  font-size: .9rem;
}


.feast-result-bar-track,
.feast-result-percent-track {
  height: 18px;
  border-radius: 999px;
  background: #eef2f7;
  overflow: hidden;
}


.feast-result-bar-track i,
.feast-result-percent-track i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #c0392b, #f97360);
}


.feast-result-bar-track i.bar-mc {
  background: linear-gradient(90deg, #2563eb, #7dd3fc);
}


.feast-result-percent-track i {
  background: linear-gradient(90deg, #16a34a, #bbf7d0);
}


.feast-radar-wrap {
  display: grid;
  place-items: center;
  min-height: 260px;
}


.feast-radar-wrap svg {
  width: min(100%, 430px);
  height: auto;
  overflow: visible;
}


.feast-radar-grid-ring {
  fill: none;
  stroke: rgba(148, 163, 184, .42);
  stroke-width: 1;
}


.feast-radar-spoke {
  stroke: rgba(148, 163, 184, .35);
  stroke-width: 1;
}


.feast-radar-shape {
  fill: rgba(192, 57, 43, .22);
  stroke: #c0392b;
  stroke-width: 3;
}


.feast-radar-label {
  fill: #334155;
  font-size: 8.4px;
  font-weight: 800;
}


.feast-radar-empty {
  align-self: center;
  padding: 18px;
  border-radius: 20px;
  background: #f8fafc;
  color: #64748b;
  font-weight: 700;
}


.feast-mc-options {
  width: min(1180px, 100%) !important;
  max-width: min(1180px, 100%) !important;
  grid-template-columns: repeat(2, minmax(380px, 1fr)) !important;
  justify-content: center;
}


.feast-mc-option {
  min-height: 126px !important;
  padding: 24px 30px !important;
  border-radius: 28px !important;
}


@media (max-width: 960px) {

.feast-results-actions {
    margin-top: 0;
  }


  .feast-mc-options {
    grid-template-columns: 1fr !important;
  }

}


/* FEAST card sizing and result layout refinements */
.feast-card-stack {
  display: grid;
  grid-template-rows: repeat(6, 78px);
  gap: 12px;
  align-content: start;
}

.feast-match-card {
  height: 78px !important;
  min-height: 78px !important;
  max-height: 78px;
  overflow: hidden;
}

.feast-match-card span {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.feast-mc-card .feast-mc-prompt-card h3 {
  font-size: clamp(1.8rem, 4vw, 3.4rem) !important;
  min-height: 72px !important;
}

.feast-mc-options {
  width: min(880px, 100%) !important;
  max-width: min(880px, 100%) !important;
  grid-template-columns: repeat(2, minmax(240px, 1fr)) !important;
  gap: 14px !important;
}

.feast-mc-option {
  min-height: 82px !important;
  padding: 18px 22px !important;
  border-radius: 24px !important;
}

.feast-result-card-matching {
  grid-column: 1 / span 3;
}

.feast-result-card-mc {
  grid-column: 4 / span 3;
}

.feast-result-card-translation {
  grid-column: 1 / span 2;
}

.feast-result-card-grammar {
  grid-column: 3 / span 2;
}

.feast-result-card-topics {
  grid-column: 5 / span 2;
  background: linear-gradient(180deg, #fff 0%, #fffaf6 100%);
}

.feast-result-card-matching,
.feast-result-card-mc {
  min-height: 330px;
}

.feast-result-card-translation,
.feast-result-card-grammar,
.feast-result-card-topics {
  min-height: 380px;
}

@media (max-width: 980px) {

.feast-result-card-matching,
  .feast-result-card-mc,
  .feast-result-card-translation,
  .feast-result-card-grammar,
  .feast-result-card-topics {
    grid-column: auto;
  }

  .feast-mc-options {
    grid-template-columns: 1fr !important;
  }

}

@media (max-width: 860px) {
  .feast-card-stack {
    grid-template-rows: none;
  }

}


.feast-matching-grid.feast-matching-grid-animate .feast-match-card {
  animation: feastCardSoftShuffle .26s ease;
}

@keyframes feastCardSoftShuffle {
  0% { opacity: .72; transform: translateY(8px) scale(.985); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

.feast-assessment-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 24px 0;
}

.feast-assessment-summary div {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 18px;
  padding: 16px;
}

.feast-assessment-summary strong,
.feast-assessment-summary span {
  display: block;
}

.feast-assessment-summary span,
.feast-assessment-summary small {
  color: rgba(255, 255, 255, 0.78);
  margin-top: 4px;
}

.feast-assessment-status {
  min-height: 34px;
  color: rgba(255, 255, 255, 0.88);
  font-weight: 800;
}

.feast-assessment-footer-actions {
  justify-content: flex-end;
  margin-top: 20px;
}

.feast-assessment-footer-actions .action-button[aria-busy="true"] {
  cursor: wait;
  opacity: 0.78;
}



.feast-results-visibility-note {
  max-width: 920px;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, .78);
  font-size: .96rem;
  line-height: 1.55;
}

.feast-result-metric-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.feast-result-metric-card {
  border: 1px solid rgba(226, 232, 240, .92);
  border-radius: 24px;
  padding: 18px 20px;
  background: linear-gradient(180deg, #fff 0%, #fffafa 100%);
  box-shadow: 0 14px 32px rgba(15, 23, 42, .055);
}

.feast-result-metric-card span,
.feast-result-metric-card small {
  display: block;
}

.feast-result-metric-card span {
  color: #64748b;
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.feast-result-metric-card strong {
  display: block;
  margin: 8px 0 5px;
  color: #111827;
  font-size: clamp(1.55rem, 3vw, 2.45rem);
  letter-spacing: -.04em;
}

.feast-result-metric-card small {
  color: #64748b;
  font-weight: 700;
}

.feast-result-accuracy-list,
.feast-result-area-list {
  display: grid;
  align-content: start;
  gap: 14px;
}

.feast-result-accuracy-row,
.feast-result-area-card {
  display: grid;
  gap: 7px;
  border: 1px solid rgba(226, 232, 240, .86);
  border-radius: 18px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, .78);
}

.feast-result-accuracy-row-head,
.feast-result-area-card > div:first-child {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: baseline;
}

.feast-result-accuracy-row-head strong,
.feast-result-area-card strong {
  color: #111827;
}

.feast-result-accuracy-row-head span,
.feast-result-area-card b {
  color: #0f766e;
  font-weight: 950;
}

.feast-result-accuracy-track {
  height: 12px;
  border-radius: 999px;
  overflow: hidden;
  background: #fee2e2;
}

.feast-result-accuracy-track i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #16a34a, #bbf7d0);
}

.feast-result-accuracy-meta,
.feast-result-area-card span,
.feast-result-area-card small {
  color: #64748b;
  font-size: .84rem;
  font-weight: 750;
}

.feast-result-area-card b {
  justify-self: start;
  font-size: 1.15rem;
}



/* FEAST intro product surface */
.feast-intro-surface {
  width: min(100%, 1240px);
  justify-self: center;
  display: grid;
  gap: clamp(20px, 3vw, 32px);
  padding: clamp(8px, 1.4vw, 16px) 0 clamp(28px, 4vw, 48px);
}

.feast-intro-hero {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, .46fr);
  gap: clamp(22px, 4vw, 46px);
  align-items: stretch;
  padding: clamp(30px, 5vw, 58px);
  border: 1px solid rgba(248, 196, 188, .7);
  border-radius: 34px;
  background:
    radial-gradient(circle at 86% 12%, rgba(251, 207, 196, .72), transparent 32%),
    radial-gradient(circle at 14% 92%, rgba(255, 245, 236, .9), transparent 38%),
    linear-gradient(135deg, #fffaf7 0%, #fff1eb 46%, #ffffff 100%);
  box-shadow: 0 28px 70px rgba(159, 47, 37, .1);
}

.feast-intro-hero::after {
  content: '';
  position: absolute;
  inset: auto -110px -150px auto;
  width: 300px;
  height: 300px;
  border-radius: 999px;
  background: rgba(192, 57, 43, .1);
  pointer-events: none;
}

.feast-intro-hero-copy {
  position: relative;
  z-index: 1;
  display: grid;
  align-content: center;
  justify-items: start;
  gap: 16px;
  text-align: left;
}

.feast-intro-hero-copy .shell-context-pill {
  margin-inline: 0;
}

.feast-intro-hero-copy h2 {
  max-width: 12.5ch !important;
  margin: 0 !important;
  color: #111827 !important;
  font-size: clamp(2.45rem, 5vw, 4.8rem) !important;
  line-height: .94 !important;
  letter-spacing: -.07em !important;
}

.feast-intro-hero-copy p {
  margin: 0 !important;
  max-width: 680px !important;
  color: #475569 !important;
  font-size: clamp(1rem, 1.4vw, 1.12rem) !important;
  line-height: 1.75 !important;
}

.feast-intro-actions {
  justify-content: flex-start !important;
  margin-top: 8px !important;
}

.feast-intro-status-card {
  position: relative;
  z-index: 1;
  display: grid;
  align-content: center;
  gap: 14px;
  min-height: 240px;
  padding: clamp(20px, 3vw, 30px);
  border: 1px solid rgba(255, 255, 255, .82);
  border-radius: 28px;
  background: rgba(255, 255, 255, .74);
  box-shadow: 0 20px 54px rgba(159, 47, 37, .11);
  backdrop-filter: blur(10px);
}

.feast-intro-status-label {
  justify-self: start;
  border-radius: 999px;
  padding: 6px 10px;
  background: #fff1ee;
  color: #9f2f25;
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.feast-intro-status {
  color: #111827;
  font-size: clamp(1.15rem, 2vw, 1.55rem);
  font-weight: 900;
  line-height: 1.25;
}

.feast-intro-status .feast-loading-pill {
  justify-self: start;
}

.feast-intro-status-card p {
  margin: 0;
  color: #64748b;
  font-weight: 750;
  line-height: 1.6;
}

.feast-intro-support-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 2.4vw, 24px);
}

.feast-intro-support-card {
  position: relative;
  display: grid;
  gap: 10px;
  align-content: start;
  min-height: 230px;
  padding: clamp(18px, 2.6vw, 28px);
  border: 1px solid rgba(226, 232, 240, .95);
  border-radius: 28px;
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 18px 46px rgba(15, 23, 42, .06);
}

.feast-intro-support-card .feast-round-number {
  position: static;
  justify-self: start;
}

.feast-intro-support-card .feast-round-icon {
  margin: 8px 0 4px !important;
}

.feast-intro-support-card h3 {
  margin: 0;
  color: #111827;
  font-size: clamp(1.15rem, 1.8vw, 1.45rem);
  line-height: 1.15;
}

.feast-intro-support-card p {
  margin: 0;
  color: #64748b;
  font-weight: 720;
  line-height: 1.65;
}

@media (max-width: 980px) {
  .feast-intro-hero,
  .feast-intro-support-grid {
    grid-template-columns: 1fr;
  }

  .feast-intro-status-card,
  .feast-intro-support-card {
    min-height: 0;
  }
}

@media (max-width: 620px) {
  .feast-intro-surface {
    padding-top: 0;
  }

  .feast-intro-hero {
    padding: 28px 18px;
    border-radius: 26px;
  }

  .feast-intro-hero-copy h2 {
    font-size: clamp(2.1rem, 12vw, 3.2rem) !important;
  }

  .feast-intro-actions {
    width: 100%;
  }

  .feast-intro-actions .action-button {
    width: 100%;
  }
}

/* FEAST question readability */
.feast-game-shell .feast-mc-card {
  width: min(100%, 1240px);
  justify-self: center;
  align-content: start;
  min-height: min(640px, calc(100vh - 260px));
  padding: clamp(22px, 4vw, 42px);
}

.feast-mc-prompt-card {
  width: min(100%, 1080px) !important;
  max-width: min(100%, 1080px) !important;
  margin: clamp(18px, 3vw, 28px) auto clamp(16px, 2.4vw, 24px) !important;
  padding: clamp(20px, 3vw, 36px) !important;
}

.feast-mc-card .feast-mc-prompt-card h3.feast-mc-question {
  width: 100%;
  max-width: 980px !important;
  min-height: 0 !important;
  margin: 0 auto !important;
  text-wrap: balance;
  overflow-wrap: anywhere;
  font-size: clamp(1.6rem, 2.7vw, 2.8rem) !important;
  line-height: 1.18;
}

.feast-mc-card .feast-mc-prompt-card h3.feast-mc-question-medium {
  max-width: 1040px !important;
  font-size: clamp(1.35rem, 2.15vw, 2.15rem) !important;
  line-height: 1.24;
}

.feast-mc-card .feast-mc-prompt-card h3.feast-mc-question-long {
  max-width: 1100px !important;
  font-size: clamp(1.12rem, 1.65vw, 1.65rem) !important;
  line-height: 1.32;
}

.feast-mc-prompt-card-long .feast-mc-blank {
  min-width: 104px;
  min-height: 36px;
  padding: 5px 14px;
  font-size: .7rem;
}

.feast-mc-options {
  width: min(100%, 1080px) !important;
  max-width: min(100%, 1080px) !important;
  grid-template-columns: repeat(2, minmax(260px, 1fr)) !important;
  grid-auto-rows: minmax(78px, auto) !important;
}

.feast-mc-option {
  min-height: 78px !important;
}

@media (max-width: 760px) {
  .feast-game-shell .feast-mc-card {
    min-height: auto;
    padding: 18px;
  }

  .feast-mc-card .feast-mc-prompt-card h3.feast-mc-question,
  .feast-mc-card .feast-mc-prompt-card h3.feast-mc-question-medium,
  .feast-mc-card .feast-mc-prompt-card h3.feast-mc-question-long {
    font-size: clamp(1.08rem, 6vw, 1.55rem) !important;
    line-height: 1.32;
  }

  .feast-mc-options {
    grid-template-columns: 1fr !important;
    grid-auto-rows: minmax(72px, auto) !important;
  }

  .feast-mc-option {
    min-height: 72px !important;
    padding: 16px 18px !important;
  }
}

.feast-level-decision-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: center;
  margin: 1.25rem 0;
  padding: 1.2rem;
  border: 1px solid rgba(185, 28, 28, 0.18);
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(255, 247, 237, 0.94), rgba(255, 255, 255, 0.98));
  box-shadow: 0 18px 45px rgba(127, 29, 29, 0.08);
}

.feast-level-decision-panel h3 {
  margin: 0.35rem 0;
  font-size: clamp(1.15rem, 1rem + 0.7vw, 1.65rem);
  color: #7f1d1d;
}

.feast-level-decision-panel p {
  margin: 0;
  max-width: 68ch;
  color: #6b4c4c;
}

.feast-level-decision-panel.resolved {
  grid-template-columns: 1fr;
  background: rgba(255, 255, 255, 0.94);
}

.feast-level-decision-status {
  margin-top: 0.65rem !important;
  font-weight: 700;
  color: #9f1239 !important;
}

.feast-level-decision-actions {
  justify-content: flex-end;
  flex-wrap: wrap;
}

@media (max-width: 760px) {
  .feast-level-decision-panel {
    grid-template-columns: 1fr;
  }

  .feast-level-decision-actions {
    justify-content: stretch;
  }

  .feast-level-decision-actions .action-button {
    width: 100%;
  }
}

/* Student FEAST metric visual normalization */
.feast-result-metric-card {
  display: grid;
  align-content: start;
  min-height: 150px;
}

.feast-result-metric-card-review {
  border-color: rgba(254, 202, 202, .95);
  background: linear-gradient(180deg, #fff 0%, #fff7f7 100%);
}

.feast-result-metric-card-complete {
  border-color: rgba(187, 247, 208, .95);
  background: linear-gradient(180deg, #fff 0%, #f7fff9 100%);
}

.feast-result-accuracy-row.is-zero,
.feast-result-area-card.is-zero {
  border-color: rgba(254, 202, 202, .95);
  background: linear-gradient(180deg, rgba(255, 255, 255, .92), rgba(255, 247, 247, .92));
}

.feast-result-accuracy-track[role="progressbar"] {
  position: relative;
  min-width: 100%;
  outline: 1px solid rgba(226, 232, 240, .82);
  outline-offset: 0;
}

.feast-result-accuracy-row.is-zero .feast-result-accuracy-track::after,
.feast-result-area-card.is-zero .feast-result-accuracy-track::after {
  content: "0%";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #991b1b;
  font-size: .68rem;
  font-weight: 950;
  letter-spacing: .04em;
}

.feast-result-accuracy-meta,
.feast-result-area-card small {
  overflow-wrap: anywhere;
}

.feast-result-metric-grid-balanced {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
  gap: clamp(16px, 2vw, 24px);
}

.feast-result-metric-grid-balanced .feast-result-metric-card {
  min-width: 0;
  height: 100%;
}



.feast-learning-card-list {
  display: grid;
  gap: 14px;
}

.feast-learning-card {
  display: grid;
  gap: 10px;
  padding: 16px;
  border: 1px solid rgba(226, 232, 240, .92);
  border-radius: 20px;
  background: linear-gradient(180deg, #ffffff 0%, #fffaf6 100%);
}

.feast-learning-card-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.feast-learning-card-topline strong {
  color: #111827;
  font-size: 1rem;
}

.feast-learning-card-topline span,
.feast-review-tags span,
.feast-review-status {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border-radius: 999px;
  padding: 5px 9px;
  font-size: .72rem;
  font-weight: 950;
  letter-spacing: .03em;
}

.feast-learning-card-topline span {
  background: #fff1ee;
  color: #9f2f25;
}

.feast-learning-card p,
.feast-learning-empty {
  margin: 0;
  color: rgba(255, 255, 255, .9);
  line-height: 1.55;
  font-weight: 700;
}

.feast-learning-card small {
  color: #64748b;
  font-weight: 850;
}

.feast-learning-card-example {
  display: grid;
  gap: 6px;
  padding: 10px 12px;
  border-radius: 14px;
  background: #f8fafc;
  color: #334155;
  font-size: .86rem;
  font-weight: 750;
}

.feast-question-review-panel {
  gap: 18px;
}

.feast-question-review-heading {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
}

.feast-question-review-heading p {
  margin: 2px 0 0;
  color: #64748b;
  font-weight: 900;
}

.feast-question-review-list {
  display: grid;
  gap: 14px;
}

.feast-question-review-item {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid rgba(226, 232, 240, .92);
  border-radius: 22px;
  background: #fff;
}

.feast-question-review-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.feast-question-review-topline strong {
  color: #111827;
}

.feast-review-status.is-correct {
  background: #dcfce7;
  color: #166534;
}

.feast-review-status.needs-review {
  background: #fee2e2;
  color: #991b1b;
}

.feast-review-prompt {
  margin: 0;
  color: #1f2937;
  font-weight: 800;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.feast-review-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.feast-review-tags span {
  background: #f1f5f9;
  color: #334155;
}

.feast-review-detail-disclosure {
  width: fit-content;
}

.feast-review-detail-disclosure summary {
  cursor: pointer;
  color: #9f2f25;
  font-size: .85rem;
  font-weight: 900;
}

.feast-review-tags-extra {
  margin-top: 8px;
}

.feast-review-answer-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.feast-review-answer {
  display: grid;
  gap: 5px;
  min-width: 0;
  padding: 12px;
  border-radius: 16px;
  overflow-wrap: anywhere;
}

.feast-review-answer span {
  font-size: .74rem;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: .07em;
}

.feast-review-answer strong {
  font-size: .96rem;
  line-height: 1.35;
}

.feast-review-answer-correct {
  background: #16a34a;
  color: #fff;
}

.feast-review-answer-incorrect {
  background: #dc2626;
  color: #fff;
}

.feast-review-answer-expected {
  background: #f1f5f9;
  color: #111827;
  border: 1px solid rgba(203, 213, 225, .9);
}

.feast-question-review-pagination {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

@media (max-width: 980px) {

.feast-question-review-heading,
  .feast-question-review-topline {
    display: grid;
  }

  .feast-question-review-pagination {
    justify-content: stretch;
  }

  .feast-question-review-pagination .action-button {
    flex: 1 1 180px;
  }
}

.feast-learning-card-heading,
.feast-question-review-heading {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
}

.feast-learning-card-heading p,
.feast-question-review-heading p {
  margin: 2px 0 0;
  color: #64748b;
  font-weight: 900;
  white-space: nowrap;
}

.feast-learning-scope-note {
  margin: -4px 0 4px;
  color: #64748b;
  font-size: .9rem;
  font-weight: 750;
  line-height: 1.45;
}

.feast-learning-card[data-current-result-page],
.feast-question-review-item[data-current-result-page] {
  min-height: 260px;
}

.feast-result-pagination {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.feast-result-pagination .action-button[aria-disabled="true"] {
  opacity: .55;
}

@media (max-width: 980px) {

.feast-learning-card-heading p,
  .feast-question-review-heading p {
    white-space: normal;
  }

  .feast-result-pagination {
    justify-content: stretch;
  }

  .feast-result-pagination .action-button {
    flex: 1 1 180px;
  }
}

/* FEAST results current layout contract */
.feast-results-page {
  width: 100%;
  display: grid;
  align-content: start;
}

.feast-results-summary,
.feast-results-main,
.feast-results-feedback,
.feast-results-review {
  min-width: 0;
  box-sizing: border-box;
}

.feast-results-main {
  width: 100%;
}

[data-feast-results-paginated-region] {
  min-width: 0;
}

[data-feast-pagination-item][hidden],
[data-feast-pagination-item][data-feast-pagination-hidden],
.feast-pagination-item-hidden {
  display: none !important;
}

[data-feast-pagination-single-page] [data-feast-pagination-controls] {
  display: none !important;
}

/* FEAST page canvas composition */
.feast-page-canvas {
  --feast-results-card-radius: 28px;
  --feast-results-card-border: rgba(226, 232, 240, .88);
  --feast-results-card-shadow: 0 18px 48px rgba(15, 23, 42, .065);
  --feast-results-soft-shadow: 0 12px 28px rgba(15, 23, 42, .045);
  width: 100%;
  max-width: min(100%, 1240px);
  margin-inline: auto;
  align-content: start;
  gap: clamp(18px, 2.2vw, 28px);
  box-sizing: border-box;
  min-width: 0;
  container-type: inline-size;
  container-name: feast-results-canvas;
}

.feast-results-overview {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: clamp(16px, 2vw, 24px);
  align-items: stretch;
  min-width: 0;
  width: 100%;
}

.feast-results-hero-card {
  display: grid;
  align-content: space-between;
  gap: clamp(18px, 2vw, 24px);
  min-height: 100%;
  padding: clamp(24px, 3cqw, 38px);
  min-width: 0;
  box-sizing: border-box;
  border-radius: var(--feast-results-card-radius);
  color: #111827;
  background:
    radial-gradient(circle at 90% 10%, rgba(255, 255, 255, .82), transparent 32%),
    linear-gradient(135deg, #fff7ed 0%, #ffffff 58%, #f8fafc 100%);
  border: 1px solid rgba(254, 215, 170, .78);
  box-shadow: var(--feast-results-card-shadow);
}

.feast-results-hero-card h2 {
  max-width: 100%;
  margin: 12px 0 10px;
  color: #111827;
  font-size: clamp(1.9rem, 4.8cqw, 3rem);
  line-height: 1.04;
  letter-spacing: -.045em;
  overflow-wrap: anywhere;
}

.feast-results-hero-card .shell-context-pill {
  background: #fff;
  color: #9f2f25;
  border: 1px solid rgba(254, 202, 202, .8);
}

.feast-results-hero-card .feast-results-why,
.feast-results-hero-card .feast-results-visibility-note {
  max-width: 100%;
  color: #475569;
  overflow-wrap: anywhere;
}

.feast-results-hero-card .feast-results-actions {
  margin-top: 0;
  align-self: end;
  justify-content: flex-start;
}

.feast-results-summary-grid {
  grid-template-columns: 1fr;
  align-content: stretch;
  gap: clamp(12px, 1.5vw, 16px);
}

.feast-results-summary-grid .feast-result-metric-card {
  display: grid;
  align-content: center;
  min-height: 0;
  height: auto;
  padding: clamp(18px, 2vw, 24px);
  border-radius: 24px;
  background: #fff;
  box-shadow: var(--feast-results-soft-shadow);
}

.feast-results-grid {
  display: grid;
  grid-template-columns: minmax(0, .88fr) minmax(0, 1.24fr);
  min-width: 0;
  width: 100%;
  gap: clamp(18px, 2.2vw, 28px);
  align-items: start;
}

.feast-results-feedback-column,
.feast-results-review-column {
  min-width: 0;
}

.feast-results-panel {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: clamp(16px, 2vw, 22px);
  min-height: 0;
  width: 100%;
  box-sizing: border-box;
  padding: clamp(20px, 2.6vw, 30px);
  border: 1px solid var(--feast-results-card-border);
  border-radius: var(--feast-results-card-radius);
  background: rgba(255, 255, 255, .96);
  box-shadow: var(--feast-results-card-shadow);
}

.feast-learning-card-panel {
  background:
    radial-gradient(circle at 92% 12%, rgba(254, 215, 170, .22), transparent 34%),
    rgba(255, 255, 255, .96);
}

.feast-question-review-panel {
  background:
    radial-gradient(circle at 94% 8%, rgba(219, 234, 254, .36), transparent 34%),
    rgba(255, 255, 255, .96);
}

.feast-results-panel .feast-learning-card,
.feast-results-panel .feast-question-review-item {
  border-radius: 20px;
  box-shadow: none;
}

.feast-results-panel .feast-learning-card[data-current-result-page],
.feast-results-panel .feast-question-review-item[data-current-result-page] {
  min-height: clamp(210px, 28vw, 300px);
}

.feast-results-panel .feast-result-pagination {
  align-self: end;
}

@container feast-results-canvas (max-width: 980px) {
  .feast-results-overview,
  .feast-results-grid {
    grid-template-columns: 1fr;
  }

  .feast-results-summary-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 1180px) {
  .feast-page-canvas {
    width: 100%;
  }

  .feast-results-overview,
  .feast-results-grid {
    grid-template-columns: 1fr;
  }

  .feast-results-summary-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .feast-page-canvas {
    gap: clamp(14px, 4vw, 20px);
  }

  .feast-results-hero-card,
  .feast-results-panel {
    border-radius: 24px;
  }

  .feast-results-summary-grid {
    grid-template-columns: 1fr;
  }
}

/* FEAST result summary and learning card hierarchy */
.feast-results-summary-grid .feast-result-summary-card {
  position: relative;
  overflow: hidden;
  gap: 6px;
  border-color: rgba(226, 232, 240, .82);
}

.feast-results-summary-grid .feast-result-summary-card::after {
  content: '';
  position: absolute;
  inset: auto 18px 14px auto;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: rgba(15, 23, 42, .035);
  pointer-events: none;
}

.feast-result-summary-card-level::after {
  background: rgba(254, 215, 170, .46);
}

.feast-result-summary-card-evidence::after {
  background: rgba(219, 234, 254, .52);
}

.feast-result-summary-card-review::after {
  background: rgba(254, 226, 226, .48);
}

.feast-learning-card-list[data-feast-learning-recommendation-list] {
  gap: 12px;
}

.feast-learning-recommendation-card {
  align-content: start;
  min-height: 0;
  border-color: rgba(226, 232, 240, .78);
  background: rgba(255, 255, 255, .76);
}

.feast-learning-recommendation-card[data-current-result-page] {
  border-color: rgba(251, 146, 60, .34);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .98) 0%, rgba(255, 247, 237, .72) 100%);
}

.feast-learning-recommendation-card .feast-learning-card-topline {
  align-items: flex-start;
}

.feast-learning-recommendation-card .feast-learning-card-topline > div {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.feast-learning-recommendation-card .feast-card-kicker {
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: #64748b;
  font-size: .72rem;
  font-weight: 950;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.feast-results-panel .feast-learning-recommendation-card[data-current-result-page] {
  min-height: clamp(190px, 24vw, 260px);
}

.feast-results-panel .feast-learning-recommendation-card .feast-learning-card-example {
  margin-top: 2px;
  border: 1px solid rgba(226, 232, 240, .76);
  background: rgba(248, 250, 252, .82);
}

.feast-results-summary-grid [data-feast-pagination-item],
.feast-results-summary-grid [data-feast-learning-card],
.feast-results-summary-grid [data-feast-review-item] {
  display: none !important;
}

/* FEAST question review list hierarchy */
.feast-question-review-panel {
  align-content: start;
}

.feast-review-scope-note {
  margin: -6px 0 0;
  color: #64748b;
  font-size: .92rem;
  font-weight: 800;
  line-height: 1.45;
}

.feast-question-review-list[data-feast-question-review-list] {
  display: grid;
  gap: 12px;
}

.feast-question-review-list-item {
  align-content: start;
  gap: 14px;
  min-height: 0;
  padding: clamp(16px, 2vw, 20px);
  border-color: rgba(226, 232, 240, .78);
  background: rgba(255, 255, 255, .82);
}

.feast-question-review-list-item[data-current-result-page] {
  min-height: clamp(220px, 26vw, 300px);
  border-color: rgba(96, 165, 250, .34);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .98) 0%, rgba(239, 246, 255, .76) 100%);
}

.feast-question-review-list-item .feast-question-review-topline {
  align-items: flex-start;
}

.feast-question-review-list-item .feast-question-review-topline > div {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.feast-question-review-list-item .feast-question-review-topline strong {
  color: #111827;
  line-height: 1.42;
  overflow-wrap: anywhere;
}

.feast-review-status.is-correct {
  background: #dcfce7;
  color: #166534;
}

.feast-review-status.is-needs-review {
  background: #fee2e2;
  color: #991b1b;
}

.feast-review-status.is-not-answered {
  background: #fef3c7;
  color: #92400e;
}

.feast-review-answer-list {
  display: grid;
  gap: 8px;
}

.feast-review-answer-line {
  display: grid;
  grid-template-columns: minmax(120px, .34fr) minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 11px 12px;
  border: 1px solid rgba(226, 232, 240, .78);
  border-radius: 14px;
  background: rgba(248, 250, 252, .82);
  overflow-wrap: anywhere;
}

.feast-review-answer-line span {
  color: #64748b;
  font-size: .72rem;
  font-weight: 950;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.feast-review-answer-line strong {
  color: #111827;
  font-size: .94rem;
  line-height: 1.36;
}

.feast-review-answer-line.feast-review-answer-correct {
  border-color: rgba(34, 197, 94, .32);
  background: rgba(240, 253, 244, .82);
}

.feast-review-answer-line.feast-review-answer-learner {
  border-color: rgba(251, 146, 60, .3);
  background: rgba(255, 247, 237, .76);
}

.feast-review-answer-line.feast-review-answer-expected {
  border-color: rgba(96, 165, 250, .28);
  background: rgba(239, 246, 255, .76);
}

.feast-review-guidance {
  margin: 0;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(15, 23, 42, .035);
  color: #334155;
  font-size: .94rem;
  font-weight: 800;
  line-height: 1.45;
}

@media (max-width: 720px) {
  .feast-review-answer-line {
    grid-template-columns: 1fr;
  }
}

/* FEAST results dashboard restoration */
.feast-results-dashboard {
  position: relative;
  isolation: isolate;
  overflow-x: clip;
  overflow-y: visible;
  min-width: 0;
  max-width: 100%;
  padding: 10px;
  box-sizing: border-box;
}

.feast-results-dashboard::before {
  content: '';
  position: absolute;
  inset: 0;
  height: min(360px, 42cqw);
  border-radius: 34px;
  background:
    radial-gradient(circle at 18% 8%, rgba(255, 237, 213, .82), transparent 32%),
    radial-gradient(circle at 88% 18%, rgba(219, 234, 254, .72), transparent 32%);
  pointer-events: none;
  z-index: 0;
}

.feast-results-dashboard .feast-results-overview,
.feast-results-dashboard .feast-results-main,
.feast-results-dashboard .feast-level-decision-panel {
  position: relative;
  z-index: 1;
}

.feast-results-dashboard .feast-results-main {
  align-items: stretch;
}

.feast-results-dashboard .feast-results-overview > *,
.feast-results-dashboard .feast-results-main > *,
.feast-results-dashboard .feast-result-metric-card {
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

.feast-results-dashboard .feast-result-metric-grid {
  min-width: 0;
  max-width: 100%;
}

@container feast-results-canvas (max-width: 760px) {
  .feast-results-dashboard::before {
    height: 100%;
  }

  .feast-results-hero-card h2 {
    font-size: clamp(1.85rem, 9cqw, 2.45rem);
  }

  .feast-results-summary-grid {
    grid-template-columns: 1fr;
  }
}

.feast-results-dashboard .feast-results-feedback-column,
.feast-results-dashboard .feast-results-review-column {
  display: grid;
  align-content: start;
}

.feast-results-dashboard .feast-results-panel {
  height: 100%;
}

.feast-results-dashboard .feast-review-context-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(180px, .65fr);
  gap: 10px;
}

.feast-results-dashboard .feast-review-context-card {
  display: grid;
  gap: 6px;
  min-width: 0;
  padding: 12px 14px;
  border: 1px solid rgba(226, 232, 240, .82);
  border-radius: 16px;
  background: rgba(255, 255, 255, .72);
}
.feast-results-dashboard .feast-review-context-grid.target-skill-only {
  grid-template-columns: minmax(0, 1fr);
}


.feast-results-dashboard .feast-review-context-card span {
  color: #64748b;
  font-size: .72rem;
  font-weight: 950;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.feast-results-dashboard .feast-review-context-card strong {
  color: #111827;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.feast-results-dashboard .feast-result-pagination {
  padding-top: 2px;
}

.feast-results-dashboard .feast-result-pagination .action-button:focus-visible {
  outline: 3px solid rgba(37, 99, 235, .42);
  outline-offset: 3px;
}

@media (max-width: 760px) {
  .feast-results-dashboard::before {
    inset-inline: -8px;
  }

  .feast-results-dashboard .feast-review-context-grid {
    grid-template-columns: 1fr;
  }
}
