.examples-page {
  background:
    radial-gradient(circle at 8% 12%, rgb(217 201 232 / 35%), transparent 30%),
    radial-gradient(circle at 90% 28%, rgb(223 196 171 / 38%), transparent 32%),
    linear-gradient(180deg, #faf2ea 0%, #f5e6da 55%, #eeddd0 100%);
}

.examples-shell {
  min-height: 100svh;
}

.examples-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0 20px;
}

.examples-back,
.examples-reset {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 18px;
  color: var(--accent-deep);
  font: 800 14px/1.2 var(--font-body);
  letter-spacing: 0.07em;
  text-transform: uppercase;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgb(255 249 244 / 74%);
}

.examples-reset {
  cursor: pointer;
}

.examples-reset[hidden] {
  display: none;
}

.examples-back:hover,
.examples-reset:hover {
  border-color: rgb(141 111 167 / 45%);
  background: rgb(255 252 249 / 92%);
}

.examples-main {
  max-width: 1040px;
  margin: 0 auto;
}

.examples-intro,
.examples-stage,
.examples-message {
  border: 1px solid rgb(255 255 255 / 72%);
  border-radius: var(--radius-xl);
  background: var(--paper-strong);
  backdrop-filter: blur(12px);
}

.examples-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(260px, 0.75fr);
  align-items: center;
  min-height: 610px;
  padding: clamp(30px, 6vw, 70px);
  overflow: hidden;
}

.examples-intro__copy {
  position: relative;
  z-index: 1;
  max-width: 650px;
}

.examples-eyebrow,
.scenario-eyebrow {
  margin: 0 0 12px;
  color: var(--sand-deep);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.examples-intro h1,
.examples-card h2 {
  margin: 0;
  color: var(--accent-deep);
  font-family: var(--font-body);
  font-size: clamp(34px, 5vw, 58px);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.08;
}

.examples-intro p,
.examples-card p {
  color: var(--muted);
  font-size: clamp(17px, 1.8vw, 20px);
  line-height: 1.68;
}

.examples-intro .examples-lead {
  margin: 24px 0 10px;
  color: var(--ink);
  font-size: clamp(20px, 2.2vw, 25px);
  font-weight: 700;
  line-height: 1.5;
}

.examples-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 14px 26px;
  color: var(--accent-deep);
  font: 800 16px/1.25 var(--font-body);
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgb(255 252 249 / 92%);
  cursor: pointer;
  transition: transform 180ms ease, background 180ms ease;
}

.examples-button:hover {
  transform: translateY(-2px);
}

.examples-button:focus-visible,
.examples-field:focus-visible,
.examples-back:focus-visible,
.examples-reset:focus-visible {
  outline: 3px solid rgb(141 111 167 / 34%);
  outline-offset: 3px;
}

.examples-button--primary {
  margin-top: 18px;
  color: #fff;
  border-color: transparent;
  background: linear-gradient(135deg, var(--sand-deep), var(--accent));
}

.examples-button[disabled] {
  opacity: 0.58;
  cursor: wait;
  transform: none;
}

.examples-intro__art {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 390px;
}

.examples-intro__art img {
  position: relative;
  z-index: 1;
  width: min(100%, 340px);
  height: auto;
  filter: drop-shadow(0 18px 22px rgb(46 53 81 / 10%));
}

.examples-intro__art .examples-intro__logo {
  border-radius: 50%;
}

.examples-player[hidden],
.examples-intro[hidden] {
  display: none;
}

.examples-selector {
  display: block;
  min-height: 0;
  padding: clamp(30px, 5vw, 58px);
}

.examples-selector__heading {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  align-items: center;
  gap: 26px;
  max-width: 840px;
  margin: 0 auto 34px;
}

.examples-selector__logo {
  width: 112px;
  height: 112px;
  border-radius: 50%;
}

.examples-selector .examples-lead {
  margin: 14px 0 0;
}

.situation-picker {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  max-width: 840px;
  margin: 0 auto;
}

.situation-choice {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-height: 220px;
  padding: 26px;
  text-align: left;
  border: 1px solid rgb(141 111 167 / 22%);
  border-radius: 28px;
  background: linear-gradient(145deg, rgb(255 253 250 / 98%), rgb(238 225 235 / 52%));
  box-shadow: 0 16px 36px rgb(76 54 91 / 8%);
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.situation-choice:hover {
  transform: translateY(-4px);
  border-color: rgb(141 111 167 / 48%);
  box-shadow: 0 20px 40px rgb(76 54 91 / 13%);
}

.situation-choice:focus-visible {
  outline: 3px solid rgb(141 111 167 / 34%);
  outline-offset: 4px;
}

.situation-choice__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 24px;
  color: #fff;
  font-size: 17px;
  font-weight: 800;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--sand-deep), var(--accent));
}

.situation-choice__description {
  margin-top: 20px;
  color: var(--ink);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.5;
}

.examples-progress {
  max-width: 820px;
  margin: 0 auto 18px;
}

.examples-progress__task {
  margin: 0 0 8px;
  color: var(--accent-deep);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.examples-progress__task:empty {
  display: none;
}

.examples-progress__meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 9px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.05em;
}

.examples-progress__track {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: rgb(141 111 167 / 13%);
}

.examples-progress__track span {
  display: block;
  width: 17%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--sand-deep), var(--accent));
  transition: width 350ms ease;
}

.examples-stage {
  max-width: 820px;
  min-height: 560px;
  margin: 0 auto;
  padding: clamp(26px, 5vw, 54px);
}

.examples-card {
  animation: examples-enter 260ms ease both;
}

.examples-card__back {
  display: flex;
  width: fit-content;
  min-height: 38px;
  align-items: center;
  margin: 0 auto 24px 0;
  padding: 8px 14px;
  color: var(--accent-deep);
  font: 800 13px/1.2 var(--font-body);
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgb(255 252 249 / 78%);
  cursor: pointer;
}

.examples-card__back:hover {
  border-color: rgb(141 111 167 / 45%);
  background: #fffdfb;
}

.examples-card__back:focus-visible {
  outline: 3px solid rgb(141 111 167 / 34%);
  outline-offset: 3px;
}

@keyframes examples-enter {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.scenario-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 190px;
  align-items: center;
  gap: 28px;
}

.scenario-head h2,
.question-card h2,
.result-card h2,
.complete-card h2 {
  font-size: clamp(28px, 4vw, 42px);
}

.scenario-art {
  width: 190px;
  height: auto;
}

.scenario-head--wide {
  grid-template-columns: 1fr;
  align-items: start;
}

.scenario-art--wide {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  border-radius: 24px;
}

.scenario-condition {
  margin: 28px 0;
  padding: 24px 26px;
  color: var(--ink) !important;
  border-left: 4px solid var(--accent-soft);
  border-radius: 0 22px 22px 0;
  background: rgb(217 201 232 / 16%);
}

.question-condition {
  margin: 22px 0 28px;
  padding: 20px 22px;
  border-left: 4px solid var(--accent-soft);
  border-radius: 0 20px 20px 0;
  background: rgb(217 201 232 / 14%);
}

.question-condition > span {
  display: block;
  margin-bottom: 8px;
  color: var(--accent-deep);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.question-condition p {
  margin: 0;
  color: var(--ink);
  font-size: clamp(15px, 1.7vw, 18px);
  line-height: 1.65;
}

.math-form,
.answer-form {
  margin-top: 28px;
}

.examples-label {
  display: block;
  margin-bottom: 10px;
  color: var(--ink);
  font-size: 16px;
  font-weight: 800;
}

.examples-field {
  width: 100%;
  padding: 15px 17px;
  color: var(--ink);
  font: 600 17px/1.5 var(--font-body);
  border: 1px solid rgb(141 111 167 / 27%);
  border-radius: 16px;
  background: #fffdfb;
}

textarea.examples-field {
  min-height: 150px;
  resize: vertical;
}

.math-input-row {
  display: flex;
  align-items: stretch;
  gap: 12px;
}

.math-input-row .examples-field {
  max-width: 220px;
}

.math-input-row .examples-button {
  min-height: 0;
  margin-top: 0;
}

.field-meta {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin: 8px 2px 0;
  color: var(--muted);
  font-size: 13px;
}

.form-feedback {
  min-height: 26px;
  margin: 12px 0 0 !important;
  color: #9a5260 !important;
  font-size: 15px !important;
  font-weight: 700;
  line-height: 1.5 !important;
}

.form-feedback--success {
  position: relative;
  min-height: 0;
  margin-top: 18px !important;
  padding: 15px 18px 15px 50px;
  color: #356443 !important;
  font-size: 17px !important;
  border: 1px solid rgb(81 116 93 / 22%);
  border-radius: 16px;
  background: linear-gradient(135deg, rgb(217 232 223 / 78%), rgb(255 252 249 / 88%));
}

.form-feedback--success::before {
  position: absolute;
  top: 50%;
  left: 17px;
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  color: #fff;
  font-size: 15px;
  line-height: 1;
  content: "✓";
  border-radius: 50%;
  background: #668a70;
  transform: translateY(-50%);
}

.math-form .form-feedback--success + [data-math-next] {
  margin-top: 18px;
}

.question-kicker {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-bottom: 20px;
}

.question-kicker .scenario-eyebrow {
  margin: 0;
}

.question-number {
  display: grid;
  flex: 0 0 44px;
  place-items: center;
  width: 44px;
  height: 44px;
  color: #fff;
  font-weight: 800;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--sand-deep), var(--accent));
}

.privacy-note {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin: 18px 0 0 !important;
  color: var(--muted) !important;
  font-size: 13px !important;
  line-height: 1.55 !important;
}

.privacy-note::before {
  flex: none;
  content: "";
  width: 8px;
  height: 8px;
  margin-top: 6px;
  border-radius: 50%;
  background: var(--accent-soft);
}

.result-category {
  display: inline-flex;
  margin: 20px 0 6px;
  padding: 9px 14px;
  color: var(--accent-deep);
  font-size: 14px;
  font-weight: 800;
  border-radius: 999px;
  background: rgb(217 201 232 / 35%);
}

.review-note {
  margin: 26px 0 0 !important;
  font-size: 15px !important;
  font-weight: 700;
}

.bubble-chart {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 32px 0 24px;
  padding: 0;
  list-style: none;
}

.bubble {
  display: grid;
  place-items: center;
  width: var(--bubble-size);
  height: var(--bubble-size);
  padding: 12px;
  color: var(--ink);
  text-align: center;
  border: 1px solid rgb(255 255 255 / 70%);
  border-radius: 50%;
  background: var(--bubble-color, rgb(217 201 232 / 65%));
}

.bubble--mine {
  outline: 4px solid rgb(141 111 167 / 32%);
  outline-offset: 3px;
}

.bubble__label {
  display: block;
  font-size: clamp(11px, 1.4vw, 14px);
  font-weight: 800;
  line-height: 1.25;
}

.bubble__percent {
  display: block;
  margin-top: 5px;
  color: var(--accent-deep);
  font-size: clamp(17px, 2vw, 22px);
  font-weight: 800;
  line-height: 1;
}

.result-summary {
  text-align: center;
}

.result-actions,
.complete-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 28px;
  flex-wrap: wrap;
}

.complete-actions .examples-button {
  margin-top: 0;
}

.complete-card,
.coming-soon-card {
  width: 100%;
  margin: 0;
  text-align: center;
}

.complete-card > p:not(.scenario-eyebrow),
.coming-soon-card > p:not(.scenario-eyebrow) {
  max-width: 650px;
  margin-right: auto;
  margin-left: auto;
}

.complete-mark {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  margin: 0 auto 22px;
  color: #fff;
  font-size: 34px;
  font-weight: 800;
  border-radius: 50%;
  background: linear-gradient(135deg, #a7bfae, var(--accent));
}

.examples-message {
  padding: 26px;
  color: var(--muted);
  text-align: center;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
  }

  .examples-card,
  .examples-progress__track span,
  .examples-button {
    animation: none;
    transition: none;
  }
}

@media (max-width: 760px) {
  .examples-shell {
    width: min(100% - 24px, 1180px);
    padding-top: 16px;
  }

  .examples-header {
    padding-bottom: 14px;
  }

  .examples-back,
  .examples-reset {
    min-height: 38px;
    padding: 9px 13px;
    font-size: 11px;
    letter-spacing: 0.045em;
  }

  .examples-intro {
    grid-template-columns: 1fr;
    min-height: 0;
    padding: 28px 22px 18px;
    border-radius: 28px;
  }

  .examples-selector {
    display: block;
    padding: 28px 22px;
  }

  .examples-selector__heading {
    grid-template-columns: 76px minmax(0, 1fr);
    gap: 16px;
    margin-bottom: 26px;
  }

  .examples-selector__logo {
    width: 76px;
    height: 76px;
  }

  .situation-picker {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .situation-choice {
    min-height: 0;
    padding: 22px;
    border-radius: 22px;
  }

  .situation-choice__description {
    margin-top: 16px;
    font-size: 15px;
  }

  .examples-intro__art {
    min-height: 245px;
    margin-top: 10px;
  }

  .examples-intro__art img {
    width: 235px;
  }

  .examples-stage {
    min-height: 500px;
    padding: 26px 20px;
    border-radius: 28px;
  }

  .scenario-head {
    grid-template-columns: 1fr 110px;
    gap: 12px;
  }

  .scenario-art {
    width: 110px;
  }

  .scenario-head--wide {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .scenario-art--wide {
    width: 100%;
    max-height: 340px;
  }

  .scenario-condition {
    margin: 22px 0;
    padding: 18px;
  }

  .math-input-row {
    flex-direction: column;
  }

  .math-input-row .examples-field,
  .math-input-row .examples-button {
    width: 100%;
    max-width: none;
  }

  .bubble-chart {
    gap: 10px;
  }

  .bubble {
    width: min(var(--bubble-size), 140px);
    height: min(var(--bubble-size), 140px);
  }
}

@media (max-width: 430px) {
  .scenario-head {
    grid-template-columns: 1fr;
  }

  .scenario-art {
    width: 135px;
    margin: 0 auto;
    order: -1;
  }

  .scenario-art--wide {
    width: 100%;
    max-height: 250px;
    margin: 0;
    order: 0;
    border-radius: 18px;
  }

  .examples-button {
    width: 100%;
  }

  .field-meta {
    font-size: 11px;
  }
}
