:root {
  --bg: #edf3ea;
  --paper: #fbfbf4;
  --surface: rgba(255, 255, 255, 0.78);
  --ink: #111111;
  --muted: #69706b;
  --line: rgba(17, 17, 17, 0.1);
  --green: #9eea23;
  --green-deep: #55c300;
  --yellow: #f3d029;
  --red: #e95555;
  --blue: #1e9ed8;
  --shadow: 0 18px 45px rgba(35, 45, 28, 0.14);
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 22%, rgba(158, 234, 35, 0.22), transparent 24px),
    radial-gradient(circle at 88% 18%, rgba(243, 208, 41, 0.24), transparent 28px),
    linear-gradient(180deg, #f8faf4 0%, var(--bg) 100%);
}

.desktop-layout {
  width: 100%;
}

.desktop-info {
  display: none;
}

button,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

button:disabled {
  cursor: default;
}

h1,
h2,
h3,
p,
strong,
span,
button,
textarea,
em {
  overflow-wrap: anywhere;
}

.app-shell {
  width: min(100%, 430px);
  min-height: 100svh;
  margin: 0 auto;
  position: relative;
  background:
    radial-gradient(circle at 14% 30%, rgba(95, 204, 16, 0.9) 0 7px, transparent 8px),
    radial-gradient(circle at 86% 28%, rgba(243, 208, 41, 0.9) 0 8px, transparent 9px),
    radial-gradient(circle at 82% 44%, rgba(95, 204, 16, 0.9) 0 6px, transparent 7px),
    linear-gradient(180deg, #fbfbf4 0%, #f4f6ed 100%);
  box-shadow: 0 0 0 1px rgba(17, 17, 17, 0.04), 0 24px 80px rgba(17, 17, 17, 0.12);
  overflow: hidden;
  transition: background 220ms ease, box-shadow 220ms ease;
}

.app-shell.is-challenge-mode {
  background:
    radial-gradient(circle at 14% 22%, rgba(233, 85, 85, 0.95) 0 7px, transparent 8px),
    radial-gradient(circle at 86% 28%, rgba(243, 208, 41, 0.95) 0 8px, transparent 9px),
    radial-gradient(circle at 82% 48%, rgba(158, 234, 35, 0.95) 0 6px, transparent 7px),
    linear-gradient(180deg, #181a17 0%, #25291f 100%);
  box-shadow: 0 0 0 1px rgba(17, 17, 17, 0.12), 0 24px 80px rgba(17, 17, 17, 0.26);
}

.app-shell.is-challenge-mode .status-row,
.app-shell.is-challenge-mode .page-header h2,
.app-shell.is-challenge-mode .compact-header h2 {
  color: #ffffff;
}

.app-shell.is-challenge-mode .page-header p {
  color: var(--yellow);
}

.app-shell.is-challenge-mode .pill {
  background: rgba(243, 208, 41, 0.95);
  border-color: rgba(243, 208, 41, 0.95);
}

.screen {
  display: none;
  min-height: 100svh;
  padding: 18px 22px 24px;
  position: relative;
}

.screen.is-active {
  display: flex;
  flex-direction: column;
}

.status-row {
  min-height: 22px;
  display: none;
  align-items: center;
  justify-content: space-between;
  color: #111111;
  font-size: 0.86rem;
  font-weight: 800;
}

.home-screen {
  text-align: center;
  justify-content: space-between;
  gap: 18px;
}

.home-copy {
  padding-top: 14px;
}

.home-copy h1 {
  margin: 0;
  font-size: clamp(2.35rem, 12vw, 3.75rem);
  line-height: 1.02;
  letter-spacing: 0;
  font-weight: 950;
}

.home-copy p {
  margin: 8px 0 0;
  font-size: clamp(1.08rem, 5.5vw, 1.52rem);
  line-height: 1.3;
  font-weight: 800;
}

.home-model {
  width: min(102%, 410px);
  height: clamp(230px, 34svh, 315px);
  align-self: center;
  position: relative;
  margin: -6px -8px 8px;
  touch-action: none;
}

.home-model canvas {
  width: 100%;
  height: 100%;
  display: block;
  filter: drop-shadow(0 16px 22px rgba(55, 82, 18, 0.16));
}

.home-model-loader {
  position: absolute;
  left: 50%;
  top: 50%;
  display: grid;
  justify-items: center;
  gap: 9px;
  transform: translate(-50%, -50%);
  padding: 12px 14px;
  color: #111111;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(17, 17, 17, 0.08);
  border-radius: 8px;
  font-size: 0.78rem;
  line-height: 1.2;
  font-weight: 900;
  pointer-events: none;
}

.home-model-loader i {
  width: 30px;
  height: 30px;
  display: block;
  border: 4px solid rgba(17, 17, 17, 0.12);
  border-top-color: var(--green-deep);
  border-right-color: var(--yellow);
  border-radius: 50%;
  animation: spin 760ms linear infinite;
}

.home-model.is-loaded .home-model-loader {
  opacity: 0;
  visibility: hidden;
  transition: opacity 180ms ease;
}

.home-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.home-steps article {
  min-height: 122px;
  display: grid;
  align-content: center;
  gap: 6px;
  padding: 12px 8px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(17, 17, 17, 0.08);
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(17, 17, 17, 0.08);
  backdrop-filter: blur(10px);
}

.home-steps strong {
  font-size: 1.06rem;
  line-height: 1.18;
}

.step-image {
  width: 62px;
  height: 62px;
  justify-self: center;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 8px 12px rgba(17, 17, 17, 0.08));
}

.big-cta {
  width: 100%;
  min-height: 62px;
  border: 0;
  border-radius: 999px;
  color: #111111;
  background: linear-gradient(180deg, #bdf346 0%, var(--green) 100%);
  box-shadow: 0 16px 30px rgba(95, 204, 16, 0.28);
  font-size: 1.35rem;
  font-weight: 950;
  letter-spacing: 0;
}

.page-screen {
  gap: 16px;
}

.page-header {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 10px;
  align-items: center;
  margin-top: 4px;
}

.compact-header {
  grid-template-columns: 42px 1fr auto;
}

.page-header p {
  margin: 0 0 2px;
  color: var(--green-deep);
  font-size: 0.8rem;
  font-weight: 950;
}

.page-header h2 {
  margin: 0;
  font-size: 1.72rem;
  line-height: 1.08;
  font-weight: 950;
}

.icon-button {
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: #111111;
  background: rgba(255, 255, 255, 0.74);
  box-shadow: 0 8px 18px rgba(17, 17, 17, 0.06);
  font-size: 1.85rem;
  line-height: 1;
  font-weight: 700;
}

.quiz-progress {
  display: grid;
  gap: 9px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(17, 17, 17, 0.08);
  border-radius: 8px;
}

.scan-progress-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.quiz-progress span {
  color: var(--green-deep);
  font-size: 0.82rem;
  font-weight: 950;
}

.quiz-progress strong {
  color: #111111;
  font-size: 0.74rem;
  letter-spacing: 0;
  font-weight: 950;
}

.scan-dots {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 5px;
}

.scan-dots i {
  height: 8px;
  display: block;
  background: rgba(17, 17, 17, 0.08);
  border-radius: 999px;
}

.scan-dots i.is-done {
  background: rgba(85, 195, 0, 0.52);
}

.scan-dots i.is-current {
  background: var(--green-deep);
  box-shadow: 0 0 0 3px rgba(158, 234, 35, 0.18);
}

.quiz-progress div {
  height: 12px;
  overflow: hidden;
  background: rgba(17, 17, 17, 0.08);
  border-radius: 999px;
}

.quiz-progress .scan-progress-top,
.quiz-progress .scan-dots {
  height: auto;
  overflow: visible;
  background: transparent;
  border-radius: 0;
}

.quiz-progress i {
  display: block;
  width: 12.5%;
  height: 100%;
  background: linear-gradient(90deg, var(--green-deep), var(--green));
  border-radius: 999px;
  transition: width 180ms ease;
}

.quiz-progress .scan-dots i {
  width: 100%;
  height: 8px;
  background: rgba(17, 17, 17, 0.08);
}

.quiz-progress .scan-dots i.is-done {
  background: rgba(85, 195, 0, 0.52);
}

.quiz-progress .scan-dots i.is-current {
  background: var(--green-deep);
  box-shadow: 0 0 0 3px rgba(158, 234, 35, 0.18);
}

.quiz-card {
  display: grid;
  gap: 12px;
  padding: 16px;
}

.quiz-scan-card {
  position: relative;
  overflow: visible;
  padding: 18px 16px 16px;
  background:
    linear-gradient(180deg, #fffef2 0%, #fffefa 100%),
    rgba(255, 255, 255, 0.76);
  box-shadow: 12px 12px 0 rgba(243, 208, 41, 0.42), 0 18px 42px rgba(48, 65, 28, 0.14);
}

.quiz-scan-card::before {
  content: "";
  width: 78px;
  height: 30px;
  position: absolute;
  left: 14px;
  top: -14px;
  background: rgba(243, 208, 41, 0.72);
  box-shadow: 0 8px 16px rgba(126, 115, 27, 0.1);
  transform: rotate(-12deg);
}

.quiz-scan-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.quiz-scan-topline strong {
  font-size: 0.86rem;
  line-height: 1;
  font-weight: 950;
}

.quiz-scan-topline span {
  padding: 5px 8px;
  color: #111111;
  background: rgba(158, 234, 35, 0.32);
  border: 1px solid rgba(85, 195, 0, 0.18);
  border-radius: 8px;
  font-size: 0.76rem;
  font-weight: 950;
}

.quiz-kicker-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.quiz-kicker-row em {
  flex: 0 0 auto;
  color: #6d746d;
  font-style: normal;
  font-size: 0.76rem;
  font-weight: 850;
}

.quiz-kicker,
.assessment-card > p:first-child {
  color: var(--green-deep);
  font-size: 0.78rem;
  font-weight: 950;
}

.quiz-card h3,
.assessment-card h3 {
  margin: 0;
  font-size: 1.72rem;
  line-height: 1.12;
  font-weight: 950;
}

.quiz-scene,
.quiz-note,
.assessment-card > p:not(:first-child) {
  margin: 0;
  color: #3f453f;
  line-height: 1.62;
}

.quiz-options {
  display: grid;
  gap: 10px;
}

.quiz-options.is-locked .quiz-option:not(.is-selected) {
  opacity: 0.45;
}

.quiz-option {
  min-height: 94px;
  padding: 12px;
  text-align: left;
  color: #111111;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(17, 17, 17, 0.1);
  border-radius: 8px;
  box-shadow: 0 8px 18px rgba(17, 17, 17, 0.04);
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, opacity 160ms ease;
}

.quiz-option.is-selected {
  transform: translateY(-2px);
  border-color: var(--green-deep);
  background: rgba(158, 234, 35, 0.22);
  box-shadow: inset 0 0 0 2px rgba(85, 195, 0, 0.12), 0 10px 22px rgba(85, 195, 0, 0.12);
}

.quiz-option span {
  display: inline-block;
  margin-bottom: 7px;
  padding: 5px 7px;
  border-radius: 6px;
  font-size: 0.74rem;
  font-weight: 950;
}

.quiz-option[data-quiz-value="habit"] span {
  background: rgba(233, 85, 85, 0.14);
}

.quiz-option[data-quiz-value="middle"] span {
  background: rgba(243, 208, 41, 0.24);
}

.quiz-option[data-quiz-value="reverse"] span {
  background: rgba(158, 234, 35, 0.24);
}

.quiz-option strong {
  display: block;
  line-height: 1.42;
  font-weight: 900;
}

.quiz-option em,
.quiz-option small {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.78rem;
  font-style: normal;
  line-height: 1.45;
}

.quiz-option em {
  margin: -29px 0 7px 36px;
  color: #2f5935;
  font-weight: 950;
}

.quiz-option small {
  font-weight: 800;
}

.quiz-reaction {
  display: none;
  margin: 0;
  padding: 10px 11px;
  color: #111111;
  background: rgba(158, 234, 35, 0.2);
  border: 1px solid rgba(85, 195, 0, 0.18);
  border-radius: 8px;
  font-size: 0.84rem;
  line-height: 1.45;
  font-weight: 900;
}

.quiz-reaction.is-visible {
  display: block;
}

.quiz-reaction[data-tone="habit"] {
  background: rgba(233, 85, 85, 0.1);
  border-color: rgba(233, 85, 85, 0.2);
}

.quiz-reaction[data-tone="middle"] {
  background: rgba(243, 208, 41, 0.24);
  border-color: rgba(190, 163, 33, 0.18);
}

.quiz-note {
  margin-top: auto;
  padding: 11px 12px;
  background: rgba(243, 208, 41, 0.2);
  border: 1px solid rgba(17, 17, 17, 0.08);
  border-radius: 8px;
  font-size: 0.86rem;
  font-weight: 850;
}

.assessment-card {
  display: grid;
  gap: 12px;
  padding: 16px;
}

.assessment-card > p:first-child {
  margin: 0;
}

.assessment-poster-card {
  display: grid;
  gap: 10px;
  padding: 10px;
}

.assessment-poster {
  min-height: 0;
  position: relative;
  overflow: hidden;
  display: grid;
  align-content: start;
  text-align: center;
  color: #111111;
  background:
    radial-gradient(circle at 88% 74%, rgba(158, 234, 35, 0.18), transparent 58px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.94) 0%, rgba(247, 250, 241, 0.88) 100%);
  border: 1px solid rgba(17, 17, 17, 0.08);
  border-radius: 8px;
}

.assessment-poster::after {
  content: "";
  position: absolute;
  inset: auto -40px -58px auto;
  width: 150px;
  height: 150px;
  background: rgba(85, 195, 0, 0.08);
  border-radius: 50%;
}

.assessment-poster div {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  gap: 5px;
  padding: 16px 14px 0;
}

.assessment-poster span {
  color: #2f3a2f;
  font-size: 0.9rem;
  font-weight: 850;
}

.assessment-poster strong {
  font-size: 2.4rem;
  line-height: 1.05;
  font-weight: 950;
}

.assessment-poster em {
  color: #247a16;
  font-style: normal;
  font-size: 1.45rem;
  line-height: 1;
  font-weight: 950;
}

.assessment-poster img {
  width: calc(100% - 24px);
  max-width: 520px;
  aspect-ratio: 4 / 3;
  height: auto;
  position: relative;
  z-index: 1;
  display: block;
  justify-self: center;
  object-fit: contain;
  object-position: center;
  margin: 8px 12px 0;
  background: rgba(255, 255, 255, 0.82);
  border-radius: 8px;
}

.assessment-poster p {
  position: relative;
  z-index: 1;
  align-self: end;
  margin: 8px 12px 14px;
  color: #3f453f;
  text-align: left;
  font-size: 0.82rem;
  line-height: 1.55;
  font-weight: 850;
}

.share-button {
  min-height: 44px;
  border: 0;
  border-radius: 8px;
  color: #ffffff;
  background: #41664a;
  box-shadow: 0 10px 22px rgba(35, 69, 42, 0.2);
  font-weight: 950;
}

.reentry-tip {
  margin: 0 0 2px;
  color: var(--muted);
  text-align: center;
  font-size: 0.72rem;
  line-height: 1.4;
  font-weight: 750;
}

.assessment-type {
  padding: 16px;
  color: #111111;
  background: var(--yellow);
  border: 1px solid rgba(17, 17, 17, 0.08);
  border-radius: 8px;
  box-shadow: 0 14px 24px rgba(243, 208, 41, 0.22);
}

.assessment-type span {
  display: inline-block;
  padding: 5px 9px;
  color: #ffffff;
  background: #111111;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 950;
}

.assessment-type strong {
  display: block;
  margin-top: 10px;
  font-size: 2rem;
  line-height: 1.08;
  font-weight: 950;
}

.assessment-detail-card {
  display: grid;
  gap: 10px;
  padding: 14px;
}

.assessment-detail-card h3 {
  margin: 0;
  color: #111111;
  font-size: 1rem;
  line-height: 1.25;
  font-weight: 950;
}

.assessment-detail-card p {
  margin: 0;
  color: #3f453f;
  line-height: 1.7;
  font-size: 0.9rem;
}

.dimension-list {
  display: grid;
  gap: 8px;
}

.dimension-item {
  padding: 11px;
  background: rgba(255, 255, 255, 0.66);
  border: 1px solid rgba(17, 17, 17, 0.08);
  border-radius: 8px;
}

.dimension-item header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.dimension-item strong {
  font-size: 0.9rem;
  line-height: 1.25;
  font-weight: 950;
}

.dimension-item em {
  flex: 0 0 auto;
  color: #2f5935;
  font-style: normal;
  font-size: 0.78rem;
  font-weight: 950;
}

.dimension-item p {
  margin: 6px 0 8px;
  color: #4f574f;
  font-size: 0.78rem;
  line-height: 1.48;
}

.dimension-meter {
  height: 8px;
  overflow: hidden;
  background: rgba(17, 17, 17, 0.08);
  border-radius: 999px;
}

.dimension-meter i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--green-deep), var(--green));
  border-radius: 999px;
}

.assessment-actions {
  display: grid;
  gap: 10px;
  margin-top: 2px;
}

.mini-hero,
.form-section,
.quiz-card,
.assessment-card,
.assessment-poster-card,
.assessment-detail-card,
.dungeon-card,
.meter-card,
.level-card,
.report-card {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(17, 17, 17, 0.08);
  border-radius: 8px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.mini-hero {
  display: grid;
  grid-template-columns: 82px 1fr;
  gap: 14px;
  align-items: center;
  padding: 14px;
}

.mini-boss {
  width: 82px;
  height: 82px;
  position: relative;
  background: linear-gradient(135deg, #efe044 0%, #91dc22 60%);
  border-radius: 8px;
  box-shadow: inset -10px -10px 0 rgba(17, 17, 17, 0.05);
}

.mini-boss::before,
.mini-boss::after {
  content: "";
  position: absolute;
  top: 19px;
  width: 22px;
  height: 28px;
  background: #ffffff;
  border-radius: 50%;
  box-shadow: inset 0 -6px 0 rgba(17, 17, 17, 0.08);
}

.mini-boss::before {
  left: 18px;
}

.mini-boss::after {
  left: 42px;
}

.mini-boss span,
.mini-boss i {
  position: absolute;
  z-index: 1;
  top: 29px;
  width: 8px;
  height: 8px;
  background: #111111;
  border-radius: 50%;
}

.mini-boss span {
  left: 29px;
}

.mini-boss i {
  left: 53px;
}

.mini-hero span,
.field-heading span,
.meter-card span,
.score-strip span,
.report-stats span {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.mini-hero strong {
  display: block;
  margin-top: 2px;
  color: var(--green-deep);
  font-size: 1.45rem;
  line-height: 1.1;
  font-weight: 950;
}

.mini-hero p {
  margin: 6px 0 0;
  color: #3f453f;
  font-size: 0.88rem;
  line-height: 1.45;
}

.choice-grid {
  display: grid;
  gap: 9px;
}

.mbti-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.choice-button {
  min-height: 66px;
  padding: 9px 7px;
  text-align: left;
  color: #111111;
  background: rgba(255, 255, 255, 0.66);
  border: 1px solid rgba(17, 17, 17, 0.1);
  border-radius: 8px;
  box-shadow: 0 8px 18px rgba(17, 17, 17, 0.04);
}

.choice-button.is-active {
  background: rgba(178, 240, 59, 0.22);
  border-color: var(--green-deep);
  box-shadow: inset 0 0 0 2px rgba(85, 195, 0, 0.14), 0 10px 22px rgba(85, 195, 0, 0.1);
}

.choice-button strong {
  display: block;
  font-size: 0.9rem;
  line-height: 1.15;
  font-weight: 950;
}

.choice-button span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.68rem;
  line-height: 1.2;
}

.form-section {
  padding: 14px;
}

.field-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.field-heading strong {
  color: var(--green-deep);
  font-weight: 950;
}

.state-grid,
.intensity-grid {
  grid-template-columns: 1fr;
}

.state-grid .choice-button,
.intensity-grid .choice-button {
  min-height: 58px;
}

.field-label {
  display: block;
  margin-bottom: 8px;
  color: #111111;
  font-size: 0.95rem;
  font-weight: 950;
}

textarea {
  width: 100%;
  min-height: 112px;
  resize: none;
  padding: 13px;
  color: #111111;
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(17, 17, 17, 0.1);
  border-radius: 8px;
  line-height: 1.55;
}

.quick-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-top: 10px;
}

.quick-row button {
  min-height: 38px;
  border: 1px solid rgba(17, 17, 17, 0.1);
  border-radius: 8px;
  color: #111111;
  background: rgba(243, 208, 41, 0.22);
  font-weight: 850;
}

.sticky-cta {
  margin-top: auto;
}

.loading-panel {
  display: none;
  gap: 12px;
  align-items: center;
  padding: 13px;
  color: #111111;
  background:
    linear-gradient(90deg, rgba(158, 234, 35, 0.28), rgba(243, 208, 41, 0.34)),
    rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(17, 17, 17, 0.1);
  border-radius: 8px;
}

.loading-panel.is-visible {
  display: flex;
}

.loading-panel span {
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
  border: 3px solid rgba(17, 17, 17, 0.12);
  border-top-color: var(--green-deep);
  border-radius: 50%;
  animation: spin 760ms linear infinite;
}

.loading-panel strong {
  display: block;
  font-weight: 950;
}

.loading-panel p {
  margin: 2px 0 0;
  color: #4c514b;
  font-size: 0.78rem;
}

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

.dungeon-card {
  overflow: hidden;
}

.task-card-stage {
  min-height: 428px;
  position: relative;
  overflow: visible;
  display: grid;
  align-items: center;
  padding: 28px 10px 26px;
  background: transparent;
  border: 0;
  box-shadow: none;
  backdrop-filter: none;
}

.dungeon-card.is-dimmed {
  opacity: 0.45;
}

.task-card-paper {
  width: min(94%, 344px);
  min-height: 326px;
  position: relative;
  z-index: 1;
  justify-self: center;
  display: grid;
  gap: 12px;
  padding: 24px 24px 26px;
  color: #111111;
  background:
    linear-gradient(180deg, #fffef2, #fffefa),
    #fffefa;
  border: 1px solid rgba(17, 17, 17, 0.12);
  border-radius: 8px;
  box-shadow: 16px 16px 0 rgba(243, 208, 41, 0.88), 0 18px 42px rgba(48, 65, 28, 0.18);
  transform: rotate(-2.5deg);
}

.task-card-paper::before {
  content: "";
  position: absolute;
  inset: -12px -12px -16px -12px;
  z-index: -1;
  background: rgba(243, 208, 41, 0.62);
  border-radius: 8px;
  transform: rotate(4deg);
  box-shadow: 0 18px 35px rgba(120, 132, 42, 0.12);
}

.task-card-paper::after {
  content: "";
  position: absolute;
  left: 20px;
  right: 20px;
  top: 72px;
  height: 1px;
  background: rgba(17, 17, 17, 0.16);
  box-shadow: 0 91px 0 rgba(17, 17, 17, 0.12);
}

.task-card-topline {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-weight: 950;
}

.task-card-topline strong {
  font-size: 0.9rem;
  white-space: nowrap;
}

.task-card-topline span {
  font-size: 0.86rem;
}

.task-card-block {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 5px;
}

.task-card-block span,
.task-meter span {
  color: #333b33;
  font-size: 0.82rem;
  font-weight: 950;
}

.boss-block h3 {
  margin: 0;
  font-size: 2rem;
  line-height: 1.02;
  font-weight: 950;
}

.mission-block div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.mission-block em {
  flex: 0 0 auto;
  color: #6d746d;
  font-style: normal;
  font-size: 0.78rem;
  font-weight: 850;
}

.mission-block p {
  margin: 0;
  color: #111111;
  font-size: 1rem;
  line-height: 1.4;
  font-weight: 850;
}

.task-meter {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 7px;
}

.task-meter div:first-child {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.task-meter strong {
  color: #2f5935;
  font-size: 0.88rem;
  font-weight: 950;
}

.task-meter .boss-meter i {
  background: linear-gradient(90deg, var(--green-deep), var(--green));
}

.task-meta-row {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.task-meta-row span {
  padding: 6px 8px;
  color: #111111;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(17, 17, 17, 0.08);
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 900;
}

.task-tags {
  position: relative;
  z-index: 1;
  margin-top: 0;
}

.task-tape {
  width: 90px;
  height: 38px;
  position: absolute;
  left: 28px;
  top: 46px;
  z-index: 2;
  background: rgba(243, 208, 41, 0.74);
  box-shadow: 0 8px 16px rgba(126, 115, 27, 0.12);
  transform: rotate(-17deg);
}

.task-dot {
  width: 14px;
  height: 14px;
  position: absolute;
  z-index: 3;
  background: var(--green-deep);
  border-radius: 50%;
  box-shadow: 0 5px 10px rgba(85, 195, 0, 0.22);
}

.dot-a {
  right: 62px;
  top: 64px;
}

.dot-b {
  right: 38px;
  top: 64px;
}

.warning-mark {
  width: 32px;
  height: 30px;
  position: absolute;
  z-index: 4;
  display: grid;
  place-items: end center;
  padding-bottom: 4px;
  color: #ffffff;
  background: var(--red);
  clip-path: polygon(50% 0, 100% 92%, 0 92%);
  font-size: 0.85rem;
  line-height: 1;
  font-weight: 950;
  filter: drop-shadow(0 7px 8px rgba(233, 85, 85, 0.22));
}

.warning-mark::before {
  content: "";
  position: absolute;
  inset: 6px 7px 5px;
  border: 2px solid rgba(255, 255, 255, 0.9);
  clip-path: polygon(50% 0, 100% 92%, 0 92%);
}

.mark-a {
  right: 24px;
  top: 74px;
  transform: rotate(12deg);
}

.mark-b {
  right: 18px;
  top: 162px;
  transform: rotate(-12deg);
}

.task-mascot {
  width: 106px;
  height: 126px;
  position: absolute;
  right: 0;
  bottom: 10px;
  z-index: 5;
  filter: drop-shadow(0 12px 15px rgba(43, 76, 27, 0.2));
}

.mascot-face {
  width: 86px;
  height: 76px;
  position: absolute;
  left: 14px;
  bottom: 28px;
  background: linear-gradient(135deg, #a8ed32 0%, #4fbe18 100%);
  border-radius: 8px;
  box-shadow: inset -8px -8px 0 rgba(30, 91, 16, 0.08);
}

.mascot-face::before,
.mascot-face::after {
  content: "";
  width: 14px;
  height: 18px;
  position: absolute;
  top: 24px;
  background: #111111;
  border-radius: 50%;
}

.mascot-face::before {
  left: 23px;
}

.mascot-face::after {
  right: 23px;
}

.mascot-face i {
  width: 11px;
  height: 7px;
  position: absolute;
  left: 23px;
  top: 16px;
  border-top: 4px solid #111111;
  transform: rotate(24deg);
}

.mascot-face b {
  width: 30px;
  height: 13px;
  position: absolute;
  left: 28px;
  top: 49px;
  overflow: hidden;
  background: #321915;
  border-radius: 0 0 18px 18px;
}

.mascot-face b::after {
  content: "";
  width: 18px;
  height: 7px;
  position: absolute;
  left: 6px;
  bottom: -2px;
  background: #ff8b85;
  border-radius: 50%;
}

.mascot-arm,
.mascot-leg {
  position: absolute;
  background: #58c91b;
  border-radius: 999px;
}

.arm-left {
  width: 17px;
  height: 42px;
  left: 3px;
  bottom: 60px;
  transform: rotate(26deg);
}

.arm-right {
  width: 16px;
  height: 52px;
  right: 4px;
  bottom: 68px;
  transform: rotate(-22deg);
}

.leg-left,
.leg-right {
  width: 18px;
  height: 32px;
  bottom: 0;
}

.leg-left {
  left: 30px;
}

.leg-right {
  right: 28px;
}

.mascot-flag {
  width: 40px;
  height: 27px;
  position: absolute;
  right: -5px;
  top: 8px;
  background: var(--red);
  border-radius: 4px 0 0 4px;
  transform: rotate(-6deg);
}

.mascot-flag::before {
  content: "";
  width: 4px;
  height: 66px;
  position: absolute;
  left: -4px;
  top: 2px;
  background: #bd843c;
  border-radius: 999px;
}

#dungeonScreen .sticky-cta {
  margin-top: 6px;
}

.dungeon-visual {
  min-height: 230px;
  position: relative;
  background: #e7eddf;
}

.dungeon-visual img {
  width: 100%;
  height: 230px;
  display: block;
  object-fit: cover;
}

.boss-chip {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  padding: 10px 12px;
  color: #111111;
  background: rgba(251, 251, 244, 0.86);
  border: 1px solid rgba(17, 17, 17, 0.08);
  border-radius: 8px;
  box-shadow: 0 8px 18px rgba(17, 17, 17, 0.08);
}

.boss-chip span {
  color: var(--green-deep);
  font-size: 0.76rem;
  font-weight: 950;
}

.boss-chip strong {
  display: block;
  margin-top: 2px;
  font-size: 1.25rem;
  font-weight: 950;
}

.dungeon-copy {
  padding: 14px;
}

.dungeon-copy p,
.report-card > p {
  margin: 0 0 7px;
  color: var(--green-deep);
  font-size: 0.78rem;
  font-weight: 950;
}

.dungeon-copy h2 {
  margin: 0;
  font-size: 1.72rem;
  line-height: 1.1;
  font-weight: 950;
}

.dungeon-copy > span {
  display: block;
  margin-top: 8px;
  color: #3f453f;
  line-height: 1.55;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 12px;
}

.tag-row span,
.pill {
  padding: 6px 8px;
  color: #111111;
  background: rgba(158, 234, 35, 0.22);
  border: 1px solid rgba(85, 195, 0, 0.2);
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 850;
}

.meter-card {
  display: grid;
  gap: 12px;
  padding: 14px;
}

.boss-meter {
  height: 15px;
  margin-top: 8px;
  overflow: hidden;
  background: rgba(17, 17, 17, 0.08);
  border-radius: 999px;
}

.boss-meter i {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--red);
  border-radius: 999px;
  transition: width 220ms ease, background 220ms ease;
}

.boss-meter i[data-state="hurt"] {
  background: var(--yellow);
}

.boss-meter i[data-state="weak"] {
  background: var(--green-deep);
}

.score-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.score-strip article {
  min-height: 64px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.64);
  border: 1px solid rgba(17, 17, 17, 0.08);
  border-radius: 8px;
}

.score-strip strong {
  display: block;
  margin-top: 4px;
  font-size: 1.18rem;
  font-weight: 950;
}

.level-area {
  display: flex;
  min-height: 0;
  flex: 1;
}

.level-card {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 14px;
}

.task-play-card {
  min-height: 0;
  position: relative;
  overflow: visible;
  flex: 1;
  justify-content: center;
  padding: 26px 6px 0;
  background: transparent;
  border: 0;
  box-shadow: none;
  backdrop-filter: none;
}

.level-paper {
  width: min(96%, 350px);
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-self: center;
  padding: 22px 20px 20px;
  color: #111111;
  background:
    linear-gradient(180deg, #fffef2 0%, #fffefa 100%),
    #fffefa;
  border: 1px solid rgba(17, 17, 17, 0.12);
  border-radius: 8px;
  box-shadow: 13px 13px 0 rgba(243, 208, 41, 0.84), 0 18px 42px rgba(48, 65, 28, 0.16);
  transform: rotate(-1.2deg);
}

.level-paper::before {
  content: "";
  position: absolute;
  inset: -11px -11px -15px -11px;
  z-index: -1;
  background: rgba(243, 208, 41, 0.5);
  border-radius: 8px;
  transform: rotate(2.8deg);
}

.level-paper::after {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  top: 67px;
  height: 1px;
  background: rgba(17, 17, 17, 0.12);
  box-shadow: 0 205px 0 rgba(17, 17, 17, 0.08);
}

.level-status-panel {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 10px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(17, 17, 17, 0.08);
  border-radius: 8px;
}

.level-boss-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.level-boss-row span {
  color: #333b33;
  font-size: 0.82rem;
  font-weight: 950;
}

.level-boss-row strong {
  color: var(--red);
  font-size: 0.9rem;
  font-weight: 950;
}

.level-status-panel .boss-meter {
  height: 12px;
  margin-top: 0;
}

.level-status-panel .boss-meter i {
  background: linear-gradient(90deg, var(--green-deep), var(--green));
}

.level-tape {
  left: 24px;
  top: 58px;
  z-index: 2;
}

.level-dot-a {
  right: 62px;
  top: 78px;
}

.level-dot-b {
  right: 38px;
  top: 78px;
}

.level-mark {
  right: 18px;
  top: 132px;
  transform: rotate(-12deg);
}

.level-topline {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: baseline;
}

.level-topline span {
  color: var(--green-deep);
  font-size: 0.86rem;
  font-weight: 950;
}

.level-topline strong {
  font-size: 1.45rem;
  line-height: 1.25;
  font-weight: 950;
  text-align: right;
}

.level-scene {
  position: relative;
  z-index: 1;
  margin: 0;
  color: #3f453f;
  line-height: 1.62;
  font-size: 0.92rem;
  font-weight: 780;
}

.option-grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 9px;
}

.option-button {
  min-height: 76px;
  padding: 11px 12px;
  text-align: left;
  color: #111111;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(17, 17, 17, 0.1);
  border-radius: 8px;
  box-shadow: 0 8px 18px rgba(17, 17, 17, 0.04);
}

.option-button span {
  display: inline-block;
  margin-bottom: 6px;
  padding: 5px 7px;
  color: #111111;
  background: rgba(158, 234, 35, 0.24);
  border-radius: 6px;
  font-size: 0.74rem;
  font-weight: 950;
}

.option-button strong {
  display: block;
  line-height: 1.42;
  font-weight: 900;
}

.option-button[data-choice="habit"].is-selected {
  border-color: rgba(233, 85, 85, 0.48);
  background: rgba(233, 85, 85, 0.12);
}

.option-button[data-choice="playful"].is-selected {
  border-color: rgba(243, 208, 41, 0.8);
  background: rgba(243, 208, 41, 0.26);
}

.option-button[data-choice="brave"].is-selected {
  border-color: var(--green-deep);
  background: rgba(158, 234, 35, 0.28);
}

.task-play-card.has-feedback .option-button:not(.is-selected) {
  display: none;
}

.task-play-card.has-feedback .option-button {
  min-height: 66px;
}

.feedback-box {
  position: relative;
  z-index: 1;
  margin-top: 0;
  padding: 12px;
  color: #111111;
  border: 1px solid rgba(17, 17, 17, 0.08);
  border-radius: 8px;
}

.feedback-box span {
  display: block;
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 950;
}

.feedback-box strong {
  line-height: 1.5;
}

.feedback-box.brave {
  background: rgba(158, 234, 35, 0.2);
}

.feedback-box.playful {
  background: rgba(243, 208, 41, 0.24);
}

.feedback-box.habit {
  background: rgba(233, 85, 85, 0.08);
}

.hint-text {
  position: relative;
  z-index: 1;
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.5;
  font-weight: 850;
}

.level-card .primary-button {
  position: relative;
  z-index: 1;
  width: 100%;
  min-height: 54px;
  border: 0;
  border-radius: 999px;
  color: #111111;
  background: var(--green);
  font-weight: 950;
}

.result-screen {
  justify-content: flex-start;
}

.report-card {
  width: 100%;
  padding: 16px;
}

.report-type-image {
  width: 100%;
  aspect-ratio: 4 / 3;
  height: auto;
  display: block;
  object-fit: contain;
  object-position: center;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(17, 17, 17, 0.08);
  border-radius: 8px;
  margin-bottom: 12px;
}

.report-card h2 {
  margin: 14px 0 8px;
  font-size: 1.45rem;
  line-height: 1.2;
  font-weight: 950;
}

.report-card > p:not(:first-child) {
  margin: 0;
  color: #3f453f;
  line-height: 1.62;
}

.basis-line {
  margin-top: 8px !important;
  padding: 10px 11px;
  color: #111111 !important;
  background: rgba(243, 208, 41, 0.18);
  border: 1px solid rgba(17, 17, 17, 0.08);
  border-radius: 8px;
  font-size: 0.86rem;
  font-weight: 850;
}

.type-card {
  padding: 16px;
  color: #111111;
  background: var(--yellow);
  border: 1px solid rgba(17, 17, 17, 0.08);
  border-radius: 8px;
  box-shadow: 0 14px 24px rgba(243, 208, 41, 0.22);
}

.type-card span {
  display: inline-block;
  padding: 5px 9px;
  color: #ffffff;
  background: #111111;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 950;
}

.type-card strong {
  display: block;
  margin-top: 10px;
  font-size: 2rem;
  line-height: 1.08;
  font-weight: 950;
}

.type-card em {
  display: block;
  margin-top: 10px;
  color: #3f453f;
  font-style: normal;
  line-height: 1.55;
  font-weight: 850;
}

.report-stats {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.report-stats div {
  padding: 11px;
  background: rgba(255, 255, 255, 0.66);
  border: 1px solid rgba(17, 17, 17, 0.08);
  border-radius: 8px;
}

.report-stats strong {
  display: block;
  margin-top: 5px;
  line-height: 1.45;
  font-weight: 900;
}

.result-roast {
  margin-top: 12px !important;
  padding: 11px;
  color: #111111 !important;
  background: rgba(158, 234, 35, 0.18);
  border: 1px solid rgba(85, 195, 0, 0.18);
  border-radius: 8px;
  font-weight: 850;
}

blockquote {
  margin: 14px 0;
  padding: 12px;
  color: #111111;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(17, 17, 17, 0.08);
  border-radius: 8px;
  line-height: 1.52;
  font-weight: 950;
}

.result-actions {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 8px;
}

.ghost-button {
  min-height: 56px;
  border: 1px solid rgba(17, 17, 17, 0.1);
  border-radius: 999px;
  color: #111111;
  background: rgba(255, 255, 255, 0.74);
  font-weight: 950;
}

.is-hidden {
  display: none !important;
}

@media (min-width: 520px) {
  body {
    display: grid;
    place-items: center;
    padding: 24px 0;
  }

  .app-shell {
    height: min(860px, calc(100vh - 48px));
    min-height: 860px;
    border: 10px solid #111111;
    border-radius: 44px;
    overflow: hidden;
  }

  .screen {
    height: 100%;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .screen::-webkit-scrollbar {
    width: 0;
    height: 0;
  }
}

@media (min-width: 960px) {
  body {
    display: block;
    padding: 22px 28px;
    overflow-x: hidden;
  }

  .desktop-layout {
    min-height: calc(100vh - 44px);
    max-width: 1260px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 430px minmax(420px, 680px);
    justify-content: space-between;
    align-items: start;
    gap: clamp(28px, 4.4vw, 58px);
    padding-block: clamp(16px, 3vh, 30px);
  }

  .app-shell {
    height: 860px;
    min-height: 0;
    margin: 0;
    justify-self: start;
  }

  .desktop-info {
    display: flex;
    flex-direction: column;
    gap: 14px;
    position: relative;
    color: var(--ink);
    justify-self: stretch;
    max-width: 680px;
  }

  .desktop-info::before,
  .desktop-info::after {
    content: "";
    position: absolute;
    border-radius: 999px;
    pointer-events: none;
  }

  .desktop-info::before {
    width: 14px;
    height: 14px;
    right: 18px;
    top: 22px;
    background: var(--yellow);
    box-shadow: -132px 178px 0 var(--green-deep), -72px 518px 0 var(--green);
  }

  .desktop-info::after {
    width: 10px;
    height: 10px;
    left: -24px;
    bottom: 122px;
    background: var(--green);
  }

  .desktop-title-block {
    position: relative;
    padding: 0 10px 4px 0;
  }

  .desktop-kicker {
    color: var(--green-deep);
    font-size: 0.86rem;
    font-weight: 950;
    letter-spacing: 0;
    text-transform: uppercase;
  }

  .desktop-info h2 {
    margin: 8px 0 0;
    font-size: clamp(3.35rem, 5.2vw, 4.75rem);
    line-height: 0.98;
    letter-spacing: 0;
  }

  .desktop-lead {
    max-width: 30em;
    margin: 12px 0 0;
    color: #303832;
    font-size: 1.12rem;
    line-height: 1.62;
    font-weight: 850;
  }

  .desktop-task-note {
    position: relative;
    overflow: hidden;
    padding: 22px 24px 20px;
    border: 1px solid rgba(17, 17, 17, 0.12);
    border-radius: 8px;
    background:
      radial-gradient(circle at 94% 18%, rgba(233, 85, 85, 0.96) 0 8px, transparent 9px),
      radial-gradient(circle at 82% 78%, rgba(85, 195, 0, 0.88) 0 7px, transparent 8px),
      linear-gradient(176deg, #ffe761 0%, #f4d12e 76%);
    box-shadow: 0 22px 48px rgba(117, 106, 16, 0.18);
    transform: rotate(-1deg);
  }

  .desktop-task-note::before {
    content: "";
    position: absolute;
    left: 28px;
    top: -12px;
    width: 142px;
    height: 38px;
    background: rgba(255, 226, 74, 0.85);
    transform: rotate(-10deg);
    box-shadow: 0 10px 20px rgba(117, 106, 16, 0.12);
  }

  .desktop-note-top {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    position: relative;
    z-index: 1;
    padding-bottom: 12px;
    border-bottom: 2px solid rgba(17, 17, 17, 0.14);
    color: #111111;
    font-size: 0.9rem;
    font-weight: 950;
  }

  .desktop-task-note h3 {
    position: relative;
    z-index: 1;
    margin: 16px 0 0;
    font-size: clamp(1.75rem, 3vw, 2.35rem);
    line-height: 1.08;
    letter-spacing: 0;
  }

  .desktop-task-note p {
    position: relative;
    z-index: 1;
    max-width: 29em;
    margin: 12px 0 0;
    color: rgba(17, 17, 17, 0.72);
    font-size: 1rem;
    line-height: 1.55;
    font-weight: 850;
  }

  .desktop-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }

  .desktop-tags span {
    padding: 9px 13px;
    border: 1px solid rgba(85, 195, 0, 0.22);
    border-radius: 8px;
    background: rgba(224, 255, 205, 0.8);
    color: #20391a;
    font-size: 0.9rem;
    font-weight: 950;
  }

  .desktop-steps-panel {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
  }

  .desktop-steps-panel article {
    display: flex;
    min-height: 150px;
    flex-direction: column;
    justify-content: space-between;
    gap: 14px;
    padding: 16px 14px 15px;
    border: 1px solid rgba(17, 17, 17, 0.08);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.72);
    box-shadow: 0 14px 34px rgba(35, 45, 28, 0.08);
  }

  .desktop-steps-panel article > span {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    background: var(--green);
    color: #111111;
    font-size: 1.25rem;
    font-weight: 950;
    box-shadow: inset 0 -2px 0 rgba(17, 17, 17, 0.08);
  }

  .desktop-steps-panel strong,
  .desktop-qr-card strong {
    display: block;
    font-size: 1.04rem;
    line-height: 1.25;
    font-weight: 950;
  }

  .desktop-qr-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
  }

  .desktop-qr-heading a {
    flex: 0 1 auto;
    padding: 6px 8px;
    border: 1px solid rgba(17, 17, 17, 0.16);
    border-radius: 8px;
    color: #111111;
    background: rgba(255, 255, 255, 0.74);
    font-size: 0.72rem;
    line-height: 1;
    font-weight: 950;
    text-decoration: none;
  }

  .desktop-steps-panel p,
  .desktop-qr-card p {
    margin: 5px 0 0;
    color: var(--muted);
    font-size: 0.86rem;
    line-height: 1.45;
    font-weight: 820;
  }

  .desktop-qr-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
    gap: 12px;
  }

  .desktop-qr-card {
    display: flex;
    min-height: 254px;
    flex-direction: column;
    justify-content: space-between;
    gap: 14px;
    position: relative;
    overflow: hidden;
    padding: 16px;
    border: 1px solid rgba(17, 17, 17, 0.1);
    border-radius: 8px;
    box-shadow: 0 18px 42px rgba(35, 45, 28, 0.12);
  }

  .desktop-qr-card-primary {
    background:
      radial-gradient(circle at 90% 15%, rgba(158, 234, 35, 0.78) 0 10px, transparent 11px),
      linear-gradient(180deg, #f5d934 0%, #f1cc22 100%);
  }

  .desktop-qr-card-wechat {
    background:
      radial-gradient(circle at 90% 18%, rgba(243, 208, 41, 0.8) 0 8px, transparent 9px),
      linear-gradient(180deg, rgba(255, 255, 255, 0.86) 0%, rgba(248, 250, 244, 0.94) 100%);
  }

  .desktop-qr-card-primary p {
    color: rgba(17, 17, 17, 0.66);
  }

  .desktop-qr-card img {
    width: min(100%, 178px);
    aspect-ratio: 1;
    align-self: center;
    padding: 9px;
    border: 1px solid rgba(17, 17, 17, 0.12);
    border-radius: 8px;
    background: #ffffff;
    image-rendering: pixelated;
  }

  .desktop-qr-card-wechat img {
    width: min(100%, 190px);
    padding: 8px;
    image-rendering: auto;
  }
}

@media (min-width: 960px) and (max-width: 1120px) {
  .desktop-steps-panel {
    grid-template-columns: 1fr;
  }

  .desktop-steps-panel article {
    min-height: 0;
    display: grid;
    grid-template-columns: 42px 1fr;
    justify-content: start;
  }

  .desktop-qr-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 370px) {
  .screen {
    padding-inline: 16px;
  }

  .home-steps strong {
    font-size: 0.95rem;
  }

  .mbti-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
