:root {
  color-scheme: light;
  --paper: #f2f0eb;
  --paper-deep: #e7e2da;
  --ink: #242420;
  --muted: #6d6a63;
  --line: rgba(36, 36, 32, 0.16);
  --line-strong: rgba(36, 36, 32, 0.3);
  --white: #fbfaf6;
  --dawn: #cfe1dc;
  --salt: #afced4;
  --cream: #e8d5b8;
  --apricot: #eeb49d;
  --forest: #a8b9a5;
  --blue: #9eb4ce;
  --lilac: #c0afcf;
  --rose: #d8abb2;
  --result-color: var(--dawn);
  --result-ink: #24322f;
  --shadow: 0 22px 70px rgba(42, 38, 31, 0.1);
}

* {
  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(36, 36, 32, 0.026) 1px, transparent 1px),
    linear-gradient(90deg, rgba(36, 36, 32, 0.026) 1px, transparent 1px),
    var(--paper);
  background-size: 40px 40px;
  font-family:
    "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

button,
dialog,
input {
  font: inherit;
}

button {
  color: inherit;
}

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

[hidden] {
  display: none !important;
}

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

.topbar {
  min-height: 86px;
  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: 12px;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 11px;
  letter-spacing: 0.16em;
  white-space: nowrap;
}

.brand-mark {
  width: 22px;
  height: 12px;
  display: flex;
  gap: 2px;
}

.brand-mark i {
  display: block;
  width: 4px;
  height: 100%;
}

.brand-mark i:nth-child(1) {
  background: var(--dawn);
}

.brand-mark i:nth-child(2) {
  background: var(--cream);
}

.brand-mark i:nth-child(3) {
  background: var(--forest);
}

.brand-mark i:nth-child(4) {
  background: var(--blue);
}

.icon-button {
  width: 42px;
  height: 42px;
  padding: 0;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(251, 250, 246, 0.56);
  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: var(--line-strong);
}

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

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

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

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

.unlock-view {
  min-height: calc(100svh - 142px);
  padding: 62px 0 38px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(310px, 0.82fr);
  grid-template-rows: auto auto 1fr;
  align-items: end;
  gap: 38px 54px;
}

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

.unlock-copy h1,
.intro-view h1 {
  margin: 0;
  font-family: "Songti SC", "STSong", "SimSun", serif;
  font-weight: 500;
  line-height: 1.06;
  letter-spacing: 0;
}

.unlock-copy h1 {
  max-width: 760px;
  font-size: 68px;
}

.unlock-copy h1 em {
  color: #769b93;
  font-style: normal;
}

.unlock-lead,
.intro-lead {
  margin: 28px 0 0;
  color: #4c4942;
  font-size: 16px;
  line-height: 1.85;
}

.unlock-panel {
  align-self: start;
  padding: 26px;
  border: 1px solid var(--line-strong);
  background: rgba(251, 250, 246, 0.6);
  animation: rise-in 580ms 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 var(--line-strong);
  border-radius: 6px;
  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: #9b978f;
}

.redeem-field input:focus {
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(36, 36, 32, 0.07);
}

.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: 6px;
  color: var(--white);
  background: var(--ink);
  cursor: pointer;
  transition:
    background-color 160ms ease,
    transform 160ms ease;
}

.redeem-button:hover {
  background: #3a3a34;
}

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

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

.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: #a4473c;
}

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

.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: 126px;
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 4px;
  animation: spectrum-in 760ms 160ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.unlock-spectrum span {
  position: relative;
  display: block;
  min-width: 0;
  border-radius: 4px 4px 0 0;
  overflow: hidden;
}

.unlock-spectrum i,
.unlock-spectrum b {
  position: absolute;
  left: 9px;
  color: rgba(30, 33, 30, 0.68);
  font-family: Georgia, "Times New Roman", serif;
  font-style: normal;
  font-weight: 400;
}

.unlock-spectrum i {
  top: 9px;
  font-size: 9px;
  letter-spacing: 0.08em;
}

.unlock-spectrum b {
  bottom: 10px;
  font-family: "Songti SC", "STSong", "SimSun", serif;
  font-size: 12px;
}

.swatch-dawn,
.mood-dawn {
  background: var(--dawn);
}

.swatch-salt,
.mood-salt {
  background: var(--salt);
}

.swatch-cream,
.mood-cream {
  background: var(--cream);
}

.swatch-apricot,
.mood-apricot {
  background: var(--apricot);
}

.swatch-forest,
.mood-forest {
  background: var(--forest);
}

.swatch-blue,
.mood-blue {
  background: var(--blue);
}

.swatch-lilac,
.mood-lilac {
  background: var(--lilac);
}

.swatch-rose,
.mood-rose {
  background: var(--rose);
}

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

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

.intro-view h1 {
  max-width: 760px;
  font-size: 76px;
}

.intro-view h1 em {
  color: #b17874;
  font-style: normal;
}

.intro-lead {
  font-size: 17px;
}

.atmosphere-portrait {
  height: 176px;
  margin: 44px 0 40px;
  display: grid;
  grid-template-columns: 1.04fr 0.72fr 0.94fr 1.22fr 0.86fr 1.14fr 0.78fr 1.02fr;
  align-items: end;
  gap: 5px;
  overflow: hidden;
  animation: spectrum-in 820ms 140ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.atmosphere-portrait span {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 5px 5px 0 0;
}

.atmosphere-portrait span:nth-child(1),
.atmosphere-portrait span:nth-child(7) {
  height: 76%;
}

.atmosphere-portrait span:nth-child(2),
.atmosphere-portrait span:nth-child(8) {
  height: 89%;
}

.atmosphere-portrait span:nth-child(3),
.atmosphere-portrait span:nth-child(5) {
  height: 68%;
}

.atmosphere-portrait i {
  position: absolute;
  right: 8px;
  bottom: 8px;
  color: rgba(35, 36, 31, 0.58);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 9px;
  font-style: normal;
  letter-spacing: 0.08em;
}

.intro-actions {
  display: flex;
  align-items: center;
  gap: 24px;
}

.primary-button,
.secondary-button,
.text-button {
  min-height: 52px;
  border-radius: 6px;
  cursor: pointer;
}

.primary-button {
  min-width: 186px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border: 1px solid var(--ink);
  color: var(--white);
  background: var(--ink);
  transition:
    background-color 160ms ease,
    transform 160ms ease;
}

.primary-button:hover {
  background: #3a3a34;
}

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

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

.secondary-button {
  min-width: 126px;
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 1px solid var(--line-strong);
  background: transparent;
  transition:
    background-color 160ms ease,
    transform 160ms ease;
}

.secondary-button:hover {
  background: rgba(251, 250, 246, 0.7);
}

.micro-copy {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
}

.quiz-view {
  padding: 58px 0 44px;
}

.quiz-header {
  max-width: 760px;
  margin: 0 auto;
}

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

.progress-meta span:last-child {
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  letter-spacing: 0;
}

.progress-track {
  width: 100%;
  height: 2px;
  overflow: hidden;
  background: var(--line);
}

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

.question-stage {
  max-width: 760px;
  margin: 72px auto 0;
  animation: question-in 300ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.question-kicker {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.08em;
}

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

.option-list {
  margin-top: 42px;
  display: grid;
  gap: 10px;
}

.option-button {
  width: 100%;
  min-height: 68px;
  padding: 12px 16px 12px 12px;
  display: grid;
  grid-template-columns: 38px 1fr 28px;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  text-align: left;
  background: rgba(251, 250, 246, 0.45);
  cursor: pointer;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background-color 160ms ease;
}

.option-button:hover:not(:disabled) {
  transform: translateX(3px);
  border-color: var(--line-strong);
  background: var(--white);
}

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

.option-button.is-selected {
  border-color: var(--ink);
  background: var(--white);
}

.option-letter {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--muted);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 10px;
}

.option-button.is-selected .option-letter {
  border-color: var(--ink);
  color: var(--white);
  background: var(--ink);
}

.option-text {
  padding: 5px 0;
  font-size: 15px;
  line-height: 1.65;
}

.option-arrow {
  display: inline-grid;
  place-items: center;
  opacity: 0.38;
}

.option-arrow svg {
  width: 16px;
  height: 16px;
}

.option-button.is-selected .option-arrow {
  opacity: 1;
}

.keyboard-hint {
  max-width: 760px;
  margin: 24px auto 0;
  color: #8b877f;
  font-size: 10px;
}

.loading-view {
  min-height: calc(100svh - 170px);
  padding: 90px 0 56px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

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

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

.exposure-scale {
  height: 92px;
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  align-items: end;
  gap: 4px;
}

.exposure-scale span {
  display: block;
  width: 100%;
  height: 24%;
  animation: exposure 1.4s ease-in-out infinite alternate;
}

.exposure-scale span:nth-child(1) {
  background: var(--dawn);
}

.exposure-scale span:nth-child(2) {
  background: var(--salt);
  animation-delay: 80ms;
}

.exposure-scale span:nth-child(3) {
  background: var(--cream);
  animation-delay: 160ms;
}

.exposure-scale span:nth-child(4) {
  background: var(--apricot);
  animation-delay: 240ms;
}

.exposure-scale span:nth-child(5) {
  background: var(--forest);
  animation-delay: 320ms;
}

.exposure-scale span:nth-child(6) {
  background: var(--blue);
  animation-delay: 400ms;
}

.exposure-scale span:nth-child(7) {
  background: var(--lilac);
  animation-delay: 480ms;
}

.exposure-scale span:nth-child(8) {
  background: var(--rose);
  animation-delay: 560ms;
}

.result-view {
  padding: 34px 0 28px;
}

.result-hero {
  position: relative;
  min-height: 430px;
  padding: 34px 36px;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(36, 36, 32, 0.12);
  overflow: hidden;
  background-image: linear-gradient(rgba(36, 36, 32, 0.055) 1px, transparent 1px);
  background-size: 100% 58px;
  animation: result-in 620ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.result-hero::after {
  content: "";
  position: absolute;
  right: 36px;
  bottom: 54px;
  width: 108px;
  height: 108px;
  border: 1px solid currentColor;
  border-radius: 50%;
  opacity: 0.26;
}

.result-topline {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  color: currentColor;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 9px;
  letter-spacing: 0.13em;
  opacity: 0.78;
}

.result-name-wrap {
  position: relative;
  z-index: 1;
  margin-top: auto;
  max-width: 650px;
}

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

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

.result-tagline {
  margin: 18px 0 0;
  font-size: 15px;
  line-height: 1.75;
}

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

.keyword {
  padding: 5px 10px;
  border: 1px solid currentColor;
  border-radius: 999px;
  font-size: 10px;
  opacity: 0.82;
}

.result-hex {
  position: absolute;
  right: 36px;
  bottom: 20px;
  color: currentColor;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 10px;
  letter-spacing: 0.12em;
  opacity: 0.6;
}

.result-content {
  padding: 0 2px;
}

.composition-section,
.result-section {
  padding: 46px 0;
  border-bottom: 1px solid var(--line);
}

.composition-section {
  padding-top: 38px;
}

.section-heading {
  display: flex;
  align-items: baseline;
  gap: 13px;
}

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

.section-heading h3 {
  margin: 0;
  font-family: "Songti SC", "STSong", "SimSun", serif;
  font-size: 19px;
  font-weight: 500;
  letter-spacing: 0;
}

.composition-bar {
  width: 100%;
  height: 52px;
  margin-top: 24px;
  display: flex;
  overflow: hidden;
  background: var(--paper-deep);
}

.composition-bar span {
  display: block;
  height: 100%;
}

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

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

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

.result-body {
  max-width: 720px;
  margin: 22px 0 0 31px;
  color: #45423d;
  font-size: 15px;
  line-height: 1.95;
}

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

.two-column-section .result-body {
  margin-left: 0;
  margin-top: 18px;
  font-size: 14px;
  line-height: 1.9;
}

.energy-section blockquote {
  margin: 30px 0 0 31px;
  padding: 23px 0 0 24px;
  border-top: 1px solid var(--line);
  border-left: 3px solid var(--result-color);
  color: var(--ink);
  font-family: "Songti SC", "STSong", "SimSun", serif;
  font-size: 24px;
  font-weight: 500;
  line-height: 1.55;
  letter-spacing: 0;
}

.compatible-section {
  padding: 35px 0;
  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: 11px;
}

.compatible-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.compatible-chip {
  padding: 7px 11px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 11px;
  background: rgba(251, 250, 246, 0.48);
}

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

.result-actions {
  padding: 38px 0 24px;
  display: flex;
  gap: 10px;
}

.result-note {
  margin: 0;
  color: #858078;
  font-size: 10px;
  line-height: 1.7;
}

.site-footer {
  min-height: 58px;
  padding: 18px 0;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid var(--line);
  color: #858078;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 9px;
  letter-spacing: 0.08em;
}

.site-footer span:last-child {
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  letter-spacing: 0;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 26px;
  z-index: 20;
  max-width: calc(100vw - 36px);
  padding: 11px 16px;
  border: 1px solid rgba(251, 250, 246, 0.13);
  border-radius: 999px;
  color: var(--white);
  background: var(--ink);
  font-size: 11px;
  line-height: 1.5;
  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(100vw - 36px), 520px);
  padding: 26px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  color: var(--ink);
  background: var(--paper);
  box-shadow: var(--shadow);
}

.info-dialog::backdrop {
  background: rgba(30, 30, 27, 0.28);
  backdrop-filter: blur(5px);
}

.dialog-topline {
  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.14em;
}

.dialog-topline .icon-button {
  width: 34px;
  height: 34px;
}

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

.info-dialog p {
  margin: 0 0 14px;
  color: #4c4942;
  font-size: 13px;
  line-height: 1.85;
}

.text-button {
  margin-top: 18px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  gap: 40px;
  border: 1px solid var(--ink);
  color: var(--white);
  background: var(--ink);
}

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

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

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

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

@keyframes exposure {
  from {
    height: 24%;
    opacity: 0.62;
  }
  to {
    height: 100%;
    opacity: 1;
  }
}

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

  .topbar {
    min-height: 76px;
  }

  .brand {
    gap: 9px;
    font-size: 9px;
  }

  .unlock-view {
    min-height: calc(100svh - 120px);
    padding: 44px 0 28px;
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
    gap: 30px;
  }

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

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

  .unlock-panel {
    width: 100%;
    padding: 20px;
  }

  .unlock-spectrum {
    grid-column: 1;
    height: 96px;
  }

  .unlock-spectrum i,
  .unlock-spectrum b {
    left: 5px;
  }

  .unlock-spectrum b {
    display: none;
  }

  .intro-view {
    min-height: calc(100svh - 120px);
    padding: 48px 0 28px;
  }

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

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

  .atmosphere-portrait {
    height: 138px;
    margin: 36px 0 30px;
  }

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

  .quiz-view {
    padding: 42px 0 32px;
  }

  .question-stage {
    margin-top: 48px;
  }

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

  .option-list {
    margin-top: 30px;
  }

  .option-button {
    min-height: 64px;
    grid-template-columns: 34px 1fr 20px;
    gap: 9px;
    padding: 10px 12px 10px 10px;
  }

  .option-text {
    font-size: 14px;
  }

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

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

  .result-hero {
    min-height: 390px;
    padding: 25px 22px;
  }

  .result-hero::after {
    right: 22px;
    bottom: 58px;
    width: 84px;
    height: 84px;
  }

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

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

  .result-hex {
    right: 22px;
    bottom: 18px;
  }

  .composition-section,
  .result-section {
    padding: 38px 0;
  }

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

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

  .energy-section blockquote {
    margin-left: 0;
    font-size: 21px;
  }

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

  .compatible-list {
    justify-content: flex-start;
  }

  .result-actions {
    align-items: stretch;
    flex-direction: column;
  }

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

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
  }
}

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

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

  .redeem-button {
    width: 100%;
  }

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

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

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

  .result-topline {
    flex-direction: column;
    gap: 6px;
  }

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

  .result-hero {
    min-height: 410px;
  }

  .composition-bar {
    height: 42px;
  }

  .site-footer span:last-child {
    line-height: 1.7;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
