:root {
  color-scheme: light;
  --paper: #f3efe7;
  --paper-deep: #e8e1d6;
  --ink: #171714;
  --muted: #6f6a61;
  --line: rgba(23, 23, 20, 0.16);
  --white: #fffdf8;
  --coral: #e85b4f;
  --amber: #d47a32;
  --sun: #f1c644;
  --moss: #6d895f;
  --teal: #2a8c86;
  --ocean: #315b7d;
  --twilight: #765a88;
  --blush: #d58c9b;
  --result-color: var(--teal);
  --result-ink: #fffdf8;
  --shadow: 0 18px 60px rgba(32, 28, 20, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--paper);
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(rgba(23, 23, 20, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23, 23, 20, 0.028) 1px, transparent 1px),
    var(--paper);
  background-size: 36px 36px;
  font-family:
    "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

button,
dialog {
  font: inherit;
}

button {
  color: inherit;
}

button:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 4px;
}

[hidden] {
  display: none !important;
}

.app-shell {
  position: relative;
  width: min(100%, 880px);
  min-height: 100svh;
  margin: 0 auto;
  padding: 0 44px;
  display: flex;
  flex-direction: column;
}

.topbar {
  min-height: 84px;
  display: grid;
  grid-template-columns: 48px 1fr 48px;
  align-items: center;
  gap: 16px;
  border-bottom: 1px solid var(--line);
}

.brand {
  grid-column: 2;
  grid-row: 1;
  justify-self: center;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 12px;
  letter-spacing: 0.14em;
  white-space: nowrap;
}

.brand-mark {
  width: 9px;
  height: 9px;
  background: conic-gradient(
    var(--coral),
    var(--sun),
    var(--moss),
    var(--teal),
    var(--ocean),
    var(--twilight),
    var(--blush),
    var(--coral)
  );
}

.icon-button {
  width: 42px;
  height: 42px;
  padding: 0;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255, 253, 248, 0.54);
  cursor: pointer;
  transition:
    background-color 160ms ease,
    border-color 160ms ease,
    transform 160ms ease;
}

#backButton {
  grid-column: 1;
  grid-row: 1;
}

#infoButton {
  grid-column: 3;
  grid-row: 1;
}

.icon-button:hover {
  background: var(--white);
  border-color: rgba(23, 23, 20, 0.34);
}

.icon-button:active {
  transform: scale(0.95);
}

.icon-button svg {
  width: 18px;
  height: 18px;
  stroke-width: 1.8;
}

.view {
  width: 100%;
  flex: 1;
}

.intro-view {
  padding: 58px 0 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: calc(100svh - 128px);
}

.unlock-view {
  min-height: calc(100svh - 128px);
  padding: 58px 0 32px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.86fr);
  grid-template-rows: auto auto 1fr;
  align-items: end;
  gap: 36px 46px;
}

.unlock-copy {
  grid-column: 1 / -1;
  animation: rise-in 560ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.unlock-copy h1 {
  max-width: 680px;
  margin: 0;
  font-family: "Songti SC", "STSong", "SimSun", serif;
  font-size: 66px;
  font-weight: 500;
  line-height: 1.06;
  letter-spacing: 0;
}

.unlock-copy h1 em {
  color: var(--teal);
  font-style: normal;
}

.unlock-lead {
  margin: 26px 0 0;
  color: #47433d;
  font-size: 16px;
  line-height: 1.8;
}

.unlock-panel {
  align-self: start;
  padding: 26px;
  border: 1px solid var(--line);
  background: rgba(255, 253, 248, 0.62);
  animation: rise-in 560ms 120ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.redeem-form label {
  display: block;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.08em;
}

.redeem-field {
  display: flex;
  gap: 8px;
}

.redeem-field input {
  width: 100%;
  min-width: 0;
  height: 54px;
  padding: 0 14px;
  border: 1px solid rgba(23, 23, 20, 0.28);
  border-radius: 8px;
  outline: none;
  color: var(--ink);
  background: var(--white);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 15px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease;
}

.redeem-field input::placeholder {
  color: #9a958b;
}

.redeem-field input:focus {
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(23, 23, 20, 0.08);
}

.redeem-button {
  min-width: 142px;
  height: 54px;
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border: 1px solid var(--ink);
  border-radius: 8px;
  color: var(--white);
  background: var(--ink);
  cursor: pointer;
  transition:
    background-color 160ms ease,
    transform 160ms ease;
}

.redeem-button:hover {
  background: #34342f;
}

.redeem-button:active {
  transform: translateY(1px);
}

.redeem-button:disabled {
  cursor: wait;
  opacity: 0.7;
}

.redeem-button svg {
  width: 17px;
  height: 17px;
  stroke-width: 1.8;
}

.redeem-status {
  min-height: 21px;
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.6;
}

.redeem-status.is-error {
  color: #a93c31;
}

.redeem-status.is-success {
  color: #26745d;
}

.unlock-notes {
  margin-top: 24px;
  padding-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  border-top: 1px solid var(--line);
}

.unlock-notes span {
  padding: 5px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 10px;
}

.unlock-spectrum {
  grid-column: 1;
  align-self: end;
  height: 72px;
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 4px;
  animation: spectrum-in 700ms 180ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.unlock-spectrum span {
  border-radius: 3px 3px 0 0;
}

.unlock-spectrum .coral {
  background: var(--coral);
}

.unlock-spectrum .amber {
  background: var(--amber);
}

.unlock-spectrum .sun {
  background: var(--sun);
}

.unlock-spectrum .moss {
  background: var(--moss);
}

.unlock-spectrum .teal {
  background: var(--teal);
}

.unlock-spectrum .ocean {
  background: var(--ocean);
}

.unlock-spectrum .twilight {
  background: var(--twilight);
}

.unlock-spectrum .blush {
  background: var(--blush);
}

.intro-copy {
  animation: rise-in 560ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.eyebrow {
  margin: 0 0 24px;
  color: var(--muted);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 11px;
  letter-spacing: 0.16em;
}

.intro-view h1 {
  max-width: 650px;
  margin: 0;
  font-family: "Songti SC", "STSong", "SimSun", serif;
  font-size: 76px;
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: 0;
}

.intro-view h1 em {
  font-style: normal;
  color: var(--coral);
}

.intro-lead {
  margin: 30px 0 0;
  color: #47433d;
  font-size: 17px;
  line-height: 1.75;
}

.color-portrait {
  height: 108px;
  margin: 48px 0;
  display: grid;
  grid-template-columns: 1.08fr 0.66fr 0.9fr 1.3fr 0.76fr 1.18fr 0.82fr 1.02fr;
  align-items: end;
  gap: 5px;
  overflow: hidden;
  animation: spectrum-in 800ms 160ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.color-band {
  display: block;
  width: 100%;
  border-radius: 4px 4px 0 0;
}

.color-band.coral {
  height: 76%;
  background: var(--coral);
}

.color-band.amber {
  height: 100%;
  background: var(--amber);
}

.color-band.sun {
  height: 54%;
  background: var(--sun);
}

.color-band.moss {
  height: 86%;
  background: var(--moss);
}

.color-band.teal {
  height: 68%;
  background: var(--teal);
}

.color-band.ocean {
  height: 100%;
  background: var(--ocean);
}

.color-band.twilight {
  height: 46%;
  background: var(--twilight);
}

.color-band.blush {
  height: 80%;
  background: var(--blush);
}

.intro-actions {
  display: flex;
  align-items: center;
  gap: 24px;
  animation: rise-in 560ms 260ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.primary-button,
.secondary-button,
.text-button {
  min-height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  border-radius: 8px;
  cursor: pointer;
  transition:
    transform 160ms ease,
    background-color 160ms ease,
    color 160ms ease,
    border-color 160ms ease;
}

.primary-button {
  min-width: 204px;
  padding: 0 24px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--white);
  font-weight: 600;
}

.primary-button:hover {
  background: #34342f;
}

.primary-button:active,
.secondary-button:active,
.text-button:active {
  transform: translateY(1px);
}

.primary-button svg,
.secondary-button svg,
.text-button svg {
  width: 18px;
  height: 18px;
  stroke-width: 1.8;
}

.secondary-button {
  padding: 0 22px;
  border: 1px solid var(--line);
  background: transparent;
}

.secondary-button:hover {
  background: rgba(255, 253, 248, 0.7);
  border-color: rgba(23, 23, 20, 0.34);
}

.micro-copy {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.quiz-view {
  padding: 48px 0 28px;
  display: flex;
  flex-direction: column;
}

.quiz-header {
  margin-bottom: 58px;
}

.progress-meta {
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
  color: var(--muted);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 11px;
  letter-spacing: 0.12em;
}

#questionTopic {
  font-family:
    "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", system-ui, sans-serif;
  letter-spacing: 0.06em;
}

.progress-track {
  height: 3px;
  overflow: hidden;
  background: rgba(23, 23, 20, 0.12);
}

.progress-track span {
  display: block;
  width: 8.333%;
  height: 100%;
  background: var(--ink);
  transition: width 320ms cubic-bezier(0.22, 1, 0.36, 1);
}

.question-stage {
  max-width: 690px;
  min-height: 440px;
  animation: question-in 360ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.question-kicker {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 12px;
}

.question-stage h2 {
  max-width: 650px;
  margin: 0 0 42px;
  font-family: "Songti SC", "STSong", "SimSun", serif;
  font-size: 42px;
  font-weight: 500;
  line-height: 1.32;
  letter-spacing: 0;
}

.option-list {
  border-top: 1px solid var(--line);
}

.option-button {
  position: relative;
  width: 100%;
  min-height: 72px;
  padding: 16px 20px 16px 0;
  display: grid;
  grid-template-columns: 28px 1fr 28px;
  align-items: center;
  gap: 16px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  text-align: left;
  cursor: pointer;
  transition:
    padding 180ms ease,
    background-color 180ms ease;
}

.option-button:hover {
  padding-left: 14px;
  background: rgba(255, 253, 248, 0.66);
}

.option-letter {
  color: var(--muted);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 12px;
}

.option-text {
  font-size: 16px;
  line-height: 1.65;
}

.option-arrow {
  justify-self: end;
  opacity: 0;
  transform: translateX(-6px);
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

.option-arrow svg {
  width: 18px;
  height: 18px;
  stroke-width: 1.7;
}

.option-button:hover .option-arrow,
.option-button.is-selected .option-arrow {
  opacity: 1;
  transform: translateX(0);
}

.option-button.is-selected {
  padding-left: 14px;
  background: rgba(255, 253, 248, 0.9);
}

.option-button.is-selected::before {
  position: absolute;
  inset: 10px auto 10px 0;
  width: 3px;
  content: "";
  background: var(--ink);
}

.option-button:disabled {
  cursor: default;
}

.keyboard-hint {
  margin: auto 0 0;
  padding-top: 28px;
  color: var(--muted);
  font-size: 11px;
}

.loading-view {
  min-height: calc(100svh - 128px);
  padding: 60px 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.loading-copy {
  width: 100%;
  max-width: 650px;
  margin-bottom: 48px;
}

.loading-copy h2 {
  margin: 0;
  font-family: "Songti SC", "STSong", "SimSun", serif;
  font-size: 66px;
  font-weight: 500;
  line-height: 1.16;
  letter-spacing: 0;
}

.loading-copy > p:last-child {
  margin: 28px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.mixing-bars {
  width: 100%;
  height: 58px;
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 4px;
}

.mixing-bars span {
  display: block;
  height: 100%;
  transform: scaleY(0.08);
  transform-origin: bottom;
  animation: mix-bar 1.25s cubic-bezier(0.76, 0, 0.24, 1) forwards;
}

.mixing-bars span:nth-child(1) {
  background: var(--coral);
  animation-delay: 40ms;
}

.mixing-bars span:nth-child(2) {
  background: var(--amber);
  animation-delay: 90ms;
}

.mixing-bars span:nth-child(3) {
  background: var(--sun);
  animation-delay: 140ms;
}

.mixing-bars span:nth-child(4) {
  background: var(--moss);
  animation-delay: 190ms;
}

.mixing-bars span:nth-child(5) {
  background: var(--teal);
  animation-delay: 240ms;
}

.mixing-bars span:nth-child(6) {
  background: var(--ocean);
  animation-delay: 290ms;
}

.mixing-bars span:nth-child(7) {
  background: var(--twilight);
  animation-delay: 340ms;
}

.mixing-bars span:nth-child(8) {
  background: var(--blush);
  animation-delay: 390ms;
}

.result-view {
  padding: 24px 0 40px;
  animation: result-in 520ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.result-hero {
  position: relative;
  min-height: 430px;
  padding: 30px 34px 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  color: var(--result-ink);
  background: var(--result-color);
}

.result-hero::after {
  position: absolute;
  right: -52px;
  bottom: -116px;
  width: 290px;
  height: 290px;
  border: 1px solid currentColor;
  border-radius: 50%;
  opacity: 0.16;
  content: "";
}

.result-topline {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 10px;
  letter-spacing: 0.14em;
  opacity: 0.82;
}

.result-name-wrap {
  position: relative;
  z-index: 1;
  margin: 34px 0 30px;
}

.result-name-wrap > p:first-child {
  margin: 0 0 8px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 13px;
  letter-spacing: 0.16em;
  opacity: 0.8;
}

.result-name-wrap h2 {
  margin: 0;
  font-family: "Songti SC", "STSong", "SimSun", serif;
  font-size: 74px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0;
}

.result-tagline {
  margin: 16px 0 0;
  font-size: 17px;
  line-height: 1.5;
}

.result-keywords {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.keyword {
  padding: 7px 12px;
  border: 1px solid currentColor;
  border-radius: 999px;
  font-size: 12px;
  line-height: 1;
  opacity: 0.92;
}

.result-hex {
  position: absolute;
  right: 30px;
  bottom: 30px;
  z-index: 1;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 11px;
  letter-spacing: 0.12em;
  opacity: 0.8;
}

.result-content {
  border-right: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.result-content > section {
  padding: 40px 34px;
  border-bottom: 1px solid var(--line);
}

.section-heading {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 22px;
}

.section-heading > span {
  color: var(--muted);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 10px;
  letter-spacing: 0.08em;
}

.section-heading h3 {
  margin: 0;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.result-body {
  margin: 0;
  color: #3c3933;
  font-size: 15px;
  line-height: 1.95;
}

.composition-bar {
  min-height: 22px;
  display: flex;
  overflow: hidden;
  border-radius: 4px;
}

.composition-bar span {
  display: block;
  min-width: 3px;
  transition: width 700ms cubic-bezier(0.22, 1, 0.36, 1);
}

.composition-legend {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
}

.legend-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 11px;
}

.legend-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}

.two-column-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 44px;
}

.energy-section blockquote {
  margin: 26px 0 0;
  padding: 18px 0 18px 22px;
  border-left: 3px solid var(--result-color);
  font-family: "Songti SC", "STSong", "SimSun", serif;
  font-size: 20px;
  line-height: 1.65;
}

.compatible-section {
  padding: 30px 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid var(--line);
}

.compatible-section > p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.compatible-list {
  display: flex;
  align-items: center;
  gap: 8px;
}

.compatible-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 11px;
}

.compatible-chip i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}

.result-actions {
  padding: 36px 34px 4px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.result-note {
  margin: 26px 0 0;
  padding: 0 34px 34px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.7;
}

.site-footer {
  min-height: 72px;
  padding: 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: var(--muted);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 9px;
  letter-spacing: 0.1em;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: max(22px, env(safe-area-inset-bottom));
  z-index: 20;
  max-width: calc(100% - 32px);
  padding: 12px 18px;
  border-radius: 8px;
  color: var(--white);
  background: var(--ink);
  font-size: 13px;
  line-height: 1.5;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 12px);
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.info-dialog {
  width: min(calc(100% - 32px), 500px);
  padding: 0;
  border: 0;
  border-radius: 8px;
  color: var(--ink);
  background: var(--paper);
  box-shadow: var(--shadow);
}

.info-dialog::backdrop {
  background: rgba(18, 17, 14, 0.52);
  backdrop-filter: blur(3px);
}

.info-dialog[open] {
  animation: dialog-in 220ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.dialog-topline {
  padding: 20px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 9px;
  letter-spacing: 0.12em;
}

.info-dialog h2 {
  margin: 30px 28px 18px;
  font-family: "Songti SC", "STSong", "SimSun", serif;
  font-size: 30px;
  font-weight: 500;
}

.info-dialog p {
  margin: 0 28px 16px;
  color: #47433d;
  font-size: 14px;
  line-height: 1.85;
}

.text-button {
  min-height: 48px;
  margin: 16px 28px 28px;
  padding: 0;
  gap: 10px;
  border: 0;
  border-bottom: 1px solid var(--ink);
  border-radius: 0;
  background: transparent;
}

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

@keyframes spectrum-in {
  from {
    opacity: 0;
    transform: translateY(20px) scaleY(0.5);
    transform-origin: bottom;
  }
  to {
    opacity: 1;
    transform: translateY(0) scaleY(1);
  }
}

@keyframes question-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes mix-bar {
  0% {
    transform: scaleY(0.08);
  }
  64% {
    transform: scaleY(1);
  }
  100% {
    transform: scaleY(0.72);
  }
}

@keyframes result-in {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes dialog-in {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 700px) {
  .app-shell {
    padding: 0 20px;
  }

  .topbar {
    min-height: 68px;
    grid-template-columns: 40px 1fr 40px;
  }

  .icon-button {
    width: 38px;
    height: 38px;
  }

  .brand {
    font-size: 10px;
  }

  .intro-view {
    min-height: calc(100svh - 104px);
    padding: 40px 0 22px;
  }

  .unlock-view {
    min-height: calc(100svh - 104px);
    padding: 40px 0 22px;
    grid-template-columns: 1fr;
    grid-template-rows: auto auto 1fr;
    align-items: start;
    gap: 30px;
  }

  .unlock-copy {
    grid-column: 1;
  }

  .unlock-copy h1 {
    font-size: 48px;
  }

  .unlock-lead {
    margin-top: 20px;
    font-size: 14px;
  }

  .unlock-panel {
    padding: 20px;
  }

  .redeem-field {
    flex-direction: column;
  }

  .redeem-button {
    width: 100%;
  }

  .unlock-spectrum {
    grid-column: 1;
    height: 54px;
    align-self: end;
  }

  .eyebrow {
    margin-bottom: 18px;
    font-size: 9px;
  }

  .intro-view h1 {
    font-size: 54px;
  }

  .intro-lead {
    margin-top: 24px;
    font-size: 15px;
  }

  .color-portrait {
    height: 82px;
    margin: 36px 0;
    gap: 3px;
  }

  .intro-actions {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .primary-button {
    width: 100%;
    min-height: 52px;
    justify-content: space-between;
  }

  .quiz-view {
    padding: 34px 0 22px;
  }

  .quiz-header {
    margin-bottom: 38px;
  }

  .question-stage {
    min-height: 430px;
  }

  .question-stage h2 {
    margin-bottom: 30px;
    font-size: 30px;
    line-height: 1.42;
  }

  .option-button {
    min-height: 74px;
    padding: 14px 8px 14px 0;
    grid-template-columns: 20px 1fr 22px;
    gap: 10px;
  }

  .option-button:hover,
  .option-button.is-selected {
    padding-left: 8px;
  }

  .option-text {
    font-size: 15px;
    line-height: 1.55;
  }

  .keyboard-hint {
    display: none;
  }

  .loading-view {
    min-height: calc(100svh - 104px);
    padding: 40px 0;
    align-items: stretch;
  }

  .loading-copy {
    margin-bottom: 38px;
  }

  .loading-copy h2 {
    font-size: 48px;
  }

  .result-view {
    padding-top: 16px;
  }

  .result-hero {
    min-height: 390px;
    padding: 24px 20px 26px;
  }

  .result-name-wrap {
    margin: 32px 0 24px;
  }

  .result-name-wrap h2 {
    font-size: 58px;
  }

  .result-tagline {
    font-size: 15px;
  }

  .result-hex {
    right: 20px;
    bottom: 26px;
  }

  .result-content > section {
    padding: 32px 20px;
  }

  .result-body {
    font-size: 14px;
    line-height: 1.9;
  }

  .two-column-section {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .energy-section blockquote {
    font-size: 18px;
  }

  .compatible-section {
    padding: 24px 20px;
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }

  .result-actions {
    padding: 28px 20px 2px;
  }

  .result-actions .primary-button {
    width: 100%;
  }

  .secondary-button {
    width: 100%;
  }

  .result-note {
    padding: 22px 20px 28px;
  }

  .site-footer {
    min-height: 62px;
    font-size: 8px;
  }
}

@media (max-width: 390px) {
  .app-shell {
    padding: 0 16px;
  }

  .intro-view h1 {
    font-size: 48px;
  }

  .unlock-copy h1 {
    font-size: 42px;
  }

  .question-stage h2 {
    font-size: 27px;
  }

  .result-name-wrap h2 {
    font-size: 52px;
  }

  .result-topline {
    font-size: 9px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
