:root {
  --ink: #24242e;
  --muted: #5d6b86;
  --line: #dce5f3;
  --soft-line: #edf3fb;
  --teal: #2ec19a;
  --teal-dark: #13a87f;
  --pink: #ef43ac;
  --violet: #8d45ee;
  --gold: #ffc93a;
  --gold-deep: #efa20f;
  --warm-bg: #fff7ed;
  --result-surface: rgba(252, 249, 245, .97);
  --result-surface-strong: #fdfbf7;
  --shadow: 0 18px 38px rgba(31, 42, 68, .12);
  --result-width: 900px;
  --result-shadow: 0 16px 38px rgba(74, 59, 43, .075), 0 2px 8px rgba(63, 50, 37, .045);
  --season-accent: #ad522c;
  --season-border: #dec4a9;
  --season-soft: #f4ebe1;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  overflow-y: scroll;
  scroll-behavior: smooth;
}

body {
  min-height: 100%;
  margin: 0;
  color: var(--ink);
  background: #fff;
  font-family: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", Arial, sans-serif;
  font-style: normal;
  -webkit-user-select: none;
  -moz-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
  -webkit-tap-highlight-color: transparent;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior-y: auto;
  -webkit-overflow-scrolling: touch;
}

input,
textarea,
[contenteditable] {
  -webkit-user-select: text;
  -moz-user-select: text;
  user-select: text;
}

.result-view,
.result-view * {
  font-style: normal !important;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

.app-shell {
  min-height: 100vh;
}

.site-footer {
  position: relative;
}

.hero {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 18px;
  width: min(708px, calc(100% - 32px));
  min-height: 100vh;
  margin: 0 auto;
  padding: 32px 0 64px;
  text-align: center;
}

.eyebrow {
  margin: 0;
  color: #38537b;
  font-size: 13px;
}

.eyebrow span {
  color: #f39b2e;
}

.hero h1 {
  margin: 0;
  color: #24242e;
  font-size: clamp(36px, 4.25vw, 58px);
  line-height: .98;
  letter-spacing: 0;
  font-weight: 900;
}

.hero h1 span {
  display: inline-block;
  color: transparent;
  background: linear-gradient(95deg, #e344af 12%, #9a43ee 56%, #f04d9f 94%);
  -webkit-background-clip: text;
  background-clip: text;
}

.hero-copy {
  width: min(640px, 100%);
  margin: -2px auto 2px;
  color: #3e587f;
  font-size: 15px;
  line-height: 1.52;
}

.pain-card,
.start-card,
.upload-card {
  width: min(552px, 100%);
  margin: 0 auto;
  border: 1px solid #e2eaf6;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 16px 42px rgba(34, 48, 78, .055);
}

.pain-card {
  width: min(708px, 100%);
  padding: 25px 40px 28px;
}

.pain-card h2 {
  margin: 0 0 24px;
  color: #050918;
  font-size: 18px;
  font-weight: 900;
}

.pain-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  text-align: left;
}

.pain-grid article {
  display: grid;
  grid-template-columns: 27px 1fr;
  gap: 10px;
  align-items: start;
}

.pain-icon {
  display: block;
  font-size: 23px;
  line-height: 1;
}

.pain-grid h3 {
  margin: 0 0 5px;
  color: #050918;
  font-size: 15px;
}

.pain-grid p {
  margin: 0;
  color: #536986;
  font-size: 11.5px;
  line-height: 1.54;
}

.start-card,
.upload-card {
  position: relative;
  width: min(708px, 100%);
  padding: 8px;
  border-style: dashed;
  border-color: #e3edf9;
  box-shadow: none;
}

.start-inner,
.drop-zone {
  display: grid;
  place-items: center;
  min-height: 186px;
  border: 2px solid #dfe8f5;
  border-radius: 12px;
  background: #fff;
}

.start-inner {
  align-content: center;
  gap: 8px;
}

.camera-mark {
  font-size: 31px;
  line-height: 1;
}

.start-inner h2 {
  margin: 0;
  color: #050918;
  font-size: 20px;
  font-weight: 900;
}

.start-inner p {
  margin: 0 0 7px;
  color: #63748d;
  font-size: 12px;
}

.primary-btn,
.secondary-btn,
.pink-btn,
.verify-btn {
  border: 0;
  border-radius: 999px;
  color: #fff;
  font-weight: 800;
  transition: transform .18s ease, box-shadow .18s ease, opacity .18s ease;
}

.primary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  text-decoration: none;
  min-width: 130px;
  min-height: 36px;
  padding: 0 22px;
  font-size: 13px;
  background: var(--teal);
  box-shadow: 0 10px 22px rgba(31, 174, 136, .28);
}

.primary-btn:hover,
.secondary-btn:hover,
.pink-btn:hover,
.verify-btn:hover {
  transform: translateY(-1px);
}

.drop-zone {
  min-height: 190px;
  color: #0c1728;
  cursor: pointer;
}

.drop-zone input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.upload-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 10px;
  border-radius: 50%;
  color: var(--teal);
  background: #e9faf5;
  font-size: 23px;
}

.drop-zone strong {
  display: block;
  font-size: 13px;
}

.drop-zone small {
  margin-top: 6px;
  color: #547093;
  font-size: 11px;
}

.drop-zone.is-dragging {
  border-color: var(--teal);
  background: #fbfffd;
}

.season-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
  width: min(708px, 100%);
  margin: 0 auto;
}

.season-grid article {
  min-height: 128px;
  padding: 17px 14px 15px;
  border: 1px solid #e2eaf6;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(34, 48, 78, .045);
}

.season-grid span {
  display: block;
  font-size: 25px;
  line-height: 1;
}

.season-grid h3 {
  margin: 8px 0 6px;
  color: #050918;
  font-size: 15px;
  font-weight: 900;
}

.season-grid p {
  margin: 0;
  color: #536986;
  font-size: 11px;
  line-height: 1.5;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(0, 0, 0, .47);
}

.code-dialog {
  position: relative;
  width: min(448px, 100%);
  padding: 28px 24px 40px;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 16px 46px rgba(0, 0, 0, .22);
  text-align: center;
}

.close-btn {
  position: absolute;
  top: 13px;
  right: 15px;
  width: 28px;
  height: 28px;
  border: 0;
  background: transparent;
  color: #545b67;
  font-size: 24px;
}

.code-dialog h2 {
  margin: 2px 0 14px;
  color: #050918;
  font-size: 22px;
  font-weight: 900;
}

.code-dialog p {
  margin: 0 0 28px;
  color: #65748a;
}

.code-dialog label {
  display: block;
  margin: 0 0 8px;
  color: #1d2838;
  text-align: left;
  font-size: 14px;
}

.code-dialog input {
  width: 100%;
  height: 42px;
  border: 3px solid #6ad6ba;
  border-radius: 8px;
  color: #203047;
  outline: 0;
  text-align: center;
}

.hint {
  margin: 14px 0 18px;
  padding: 12px 14px;
  border-radius: 8px;
  color: #64758d;
  background: #f5f8fb;
  font-size: 13px;
}

.verify-btn {
  width: 100%;
  min-height: 38px;
  border-radius: 6px;
  background: #8fdac7;
}

.verify-btn:not(:disabled) {
  background: var(--teal);
}

.form-error {
  min-height: 18px;
  margin: 12px 0 0;
  color: #d94949;
  font-size: 13px;
}

.toast {
  position: fixed;
  top: 28px;
  left: 50%;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 10px;
  width: min(356px, calc(100% - 32px));
  min-height: 54px;
  padding: 0 18px;
  border: 1px solid #b9f0cf;
  border-radius: 8px;
  color: #088a45;
  background: #ebfff3;
  box-shadow: 0 14px 32px rgba(30, 141, 88, .18);
  transform: translateX(-50%);
}

.toast span {
  display: grid;
  place-items: center;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  color: #fff;
  background: #06964d;
  font-size: 11px;
}

.save-preview {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(22, 18, 14, .54);
  backdrop-filter: blur(10px);
}

.save-preview-panel {
  position: relative;
  display: grid;
  justify-items: center;
  width: min(420px, 100%);
  max-height: min(88vh, 780px);
  padding: 22px 18px 18px;
  border: 1px solid rgba(255, 223, 130, .6);
  border-radius: 18px;
  background: rgba(255, 255, 255, .97);
  box-shadow: 0 28px 70px rgba(0, 0, 0, .26);
  text-align: center;
}

.save-preview-panel h2 {
  margin: 0 0 6px;
  color: #141b2b;
  font-size: 20px;
  font-weight: 900;
}

.save-preview-panel p {
  margin: 0 0 14px;
  color: #66758d;
  font-size: 13px;
}

.save-preview-panel img {
  display: block;
  width: min(300px, 82vw);
  max-height: 58vh;
  border-radius: 14px;
  object-fit: contain;
  background: #fff9ea;
  box-shadow: 0 18px 42px rgba(83, 61, 31, .18);
  -webkit-touch-callout: default;
  user-select: auto;
}

.save-download-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 128px;
  min-height: 38px;
  margin-top: 16px;
  padding: 0 22px;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(95deg, #ef5bb9, #e93694);
  box-shadow: 0 12px 24px rgba(222, 55, 139, .24);
  text-decoration: none;
  font-size: 13px;
  font-weight: 800;
}

.analysis-view {
  position: fixed;
  inset: 0;
  z-index: 15;
  display: grid;
  place-items: center;
  padding: 16px;
  background: rgba(255, 250, 244, .62);
  backdrop-filter: blur(8px);
}

.analysis-panel {
  position: relative;
  overflow: hidden;
  display: grid;
  justify-items: center;
  width: min(338px, 100%);
  padding: 28px 26px 30px;
  border: 1px solid rgba(230, 221, 209, .92);
  border-radius: 14px;
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 18px 48px rgba(64, 47, 32, .12);
  text-align: center;
}

.analysis-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(115deg, transparent 0 35%, rgba(98, 217, 194, .12) 45%, rgba(255, 255, 255, .72) 50%, rgba(239, 91, 185, .12) 56%, transparent 68%),
    radial-gradient(circle at 50% 22%, rgba(46, 193, 154, .12), transparent 35%);
  transform: translateX(-115%);
  animation: analysis-scan 2.8s ease-in-out infinite;
}

.analysis-panel::after {
  content: "";
  position: absolute;
  inset: 18px;
  pointer-events: none;
  border: 1px solid rgba(46, 193, 154, .12);
  border-radius: 12px;
  opacity: .7;
  animation: panel-breathe 2.4s ease-in-out infinite;
}

.analysis-panel > * {
  position: relative;
  z-index: 1;
}

.eye-orb {
  position: relative;
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  margin-bottom: 18px;
  border-radius: 50%;
  color: #55c8b1;
  background: linear-gradient(180deg, #edf9f5, #e2f4ef);
  font-size: 43px;
  line-height: 1;
  box-shadow: 0 0 0 0 rgba(46, 193, 154, .22), 0 14px 28px rgba(46, 193, 154, .14);
  animation: eye-float 2.6s ease-in-out infinite;
}

.eye-orb::before,
.eye-orb::after {
  content: "";
  position: absolute;
  inset: -8px;
  border: 1px solid rgba(46, 193, 154, .28);
  border-radius: 50%;
  animation: eye-ring 2.3s ease-out infinite;
}

.eye-orb::after {
  inset: -16px;
  animation-delay: .78s;
}

.analysis-panel h2 {
  margin: 0 0 9px;
  color: #242936;
  font-size: 20px;
  font-weight: 900;
  background: linear-gradient(90deg, #242936 0%, #242936 35%, #1fb993 50%, #242936 65%, #242936 100%);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  animation: title-sheen 2.9s ease-in-out infinite;
}

.analysis-panel p {
  margin: 0 0 18px;
  color: #8b97a8;
  font-size: 13px;
  animation: soft-fade 1.8s ease-in-out infinite;
}

.step-dots {
  display: flex;
  gap: 7px;
  margin-bottom: 18px;
}

.step-dots span {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #e8f0f7;
  animation: dot-rise 1.45s ease-in-out infinite;
}

.step-dots span:first-child {
  width: 24px;
  background: var(--teal);
  animation-name: dot-stretch;
}

.step-dots span:nth-child(2) {
  animation-delay: .18s;
}

.step-dots span:nth-child(3) {
  animation-delay: .36s;
}

.step-dots span:nth-child(4) {
  animation-delay: .54s;
}

.spinner {
  width: 18px;
  height: 18px;
  margin-bottom: 18px;
  border: 2px solid #d8f3ed;
  border-top-color: var(--teal);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

.analysis-panel small {
  color: #758296;
  font-size: 12px;
  line-height: 1.55;
  animation: small-glow 2.5s ease-in-out infinite;
}

.result-view {
  min-height: 100vh;
  padding: 48px 0 52px;
  background: #fff7ed;
}

.result-view[data-season="spring"] {
  --season-accent: #b97826;
  --season-border: #e5cba3;
  --season-soft: #f5eddf;
}

.result-view[data-season="summer"] {
  --season-accent: #647c9e;
  --season-border: #cbd3df;
  --season-soft: #eef0f3;
}

.result-view[data-season="autumn"] {
  --season-accent: #ad522c;
  --season-border: #dec4a9;
  --season-soft: #f4ebe1;
}

.result-view[data-season="winter"] {
  --season-accent: #575479;
  --season-border: #cecbd9;
  --season-soft: #efedf2;
}

.result-view > * {
  width: min(var(--result-width), calc(100% - 56px));
  margin-left: auto;
  margin-right: auto;
}

.result-hero,
.score-card,
.radar-card,
.scheme-photo,
.recommend-grid article,
.advice-stack article {
  border: 1px solid rgba(198, 185, 170, .48);
  border-radius: 20px;
  background: var(--result-surface);
  box-shadow: var(--result-shadow);
}

.result-hero {
  display: grid;
  grid-template-columns: 210px 1fr;
  gap: 40px;
  align-items: center;
  padding: 44px 44px 36px;
  border: 2px solid var(--season-border);
  border-bottom: 0;
  border-radius: 22px 22px 0 0;
  background:
    linear-gradient(180deg, rgba(255, 253, 250, .99), rgba(250, 246, 240, .98)),
    var(--result-surface-strong);
  box-shadow: 0 18px 44px rgba(76, 58, 40, .09);
}

.portrait-wrap {
  position: relative;
  justify-self: center;
}

.portrait-wrap img {
  width: 192px;
  height: 192px;
  border-radius: 50%;
  object-fit: cover;
  border: 5px solid rgba(255, 255, 255, .94);
  box-shadow: 0 9px 22px rgba(46, 37, 28, .16);
}

.portrait-wrap span {
  position: absolute;
  left: 50%;
  bottom: -18px;
  min-width: 112px;
  padding: 9px 14px;
  border-radius: 999px;
  color: #fff;
  background: var(--season-accent);
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
  transform: translateX(-50%);
}

.result-title h2 {
  margin: 0;
  color: #212735;
  font-size: 36px;
  line-height: 1.05;
  font-style: normal;
  font-weight: 900;
}

.result-title p {
  margin: 4px 0 13px;
  color: #66758d;
  font-size: 20px;
  font-style: italic !important;
  font-weight: 500;
}

.result-title blockquote {
  margin: 0 0 22px;
  color: #5f718d;
  font-size: 15px;
  font-style: italic !important;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-row span {
  padding: 6px 12px 7px;
  border-radius: 999px;
  color: #fff;
  background: var(--season-accent);
  font-size: 12px;
  font-weight: 800;
}

.trait-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: -1px;
  padding: 28px 40px 22px;
  border-left: 2px solid var(--season-border);
  border-right: 2px solid var(--season-border);
  border-top: 1px solid rgba(205, 193, 178, .38);
  background: var(--result-surface);
  box-shadow: 0 18px 42px rgba(76, 58, 40, .065);
}

.trait-strip article {
  padding: 8px 10px;
  border: 0;
  background: transparent;
}

.trait-strip article h3 {
  margin: 0 0 10px;
  font-size: 13.5px;
  font-weight: 900;
}

.trait-strip article p {
  margin: 0;
  color: #607088;
  font-size: 11.4px;
  line-height: 1.74;
}

.palette-block {
  margin-top: 0;
  margin-bottom: 64px;
  padding: 16px 40px 40px;
  border: 2px solid var(--season-border);
  border-top: 0;
  border-radius: 0 0 24px 24px;
  background: var(--result-surface);
  text-align: center;
  box-shadow: 0 20px 46px rgba(76, 58, 40, .085);
}

.palette-block h3,
.section-title,
.radar-card h3 {
  margin: 0 0 18px;
  color: #222938;
  text-align: center;
  font-size: 20px;
  line-height: 1.2;
  font-style: normal;
  font-weight: 900;
  transform: none;
  letter-spacing: 0;
}

.palette-subtitle {
  margin: -9px 0 34px;
  color: #7c899d;
  font-size: 13px;
}

.swatch-grid,
.mini-palette {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px 78px;
}

.swatch-grid {
  gap: 16px;
}

.swatch-grid .color-chip {
  padding: 10px 8px;
  border: 0;
  background: transparent;
}

.color-chip {
  display: grid;
  justify-items: center;
  gap: 10px;
  color: #5d687b;
  font-size: 11.5px;
}

.color-chip i {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: 1px solid rgba(76, 62, 48, .10);
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, .26),
    0 5px 12px rgba(93, 69, 42, .12);
}

.color-chip strong {
  color: #293244;
  font-size: 13.5px;
}

.section-title {
  width: min(var(--result-width), calc(100% - 40px));
  min-height: 32px;
  margin: 0 auto 24px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  white-space: nowrap;
  font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
  font-style: normal !important;
  transform: none !important;
  writing-mode: horizontal-tb;
}

.score-card {
  margin-bottom: 24px;
  padding: 36px;
}

.score-row {
  margin-bottom: 22px;
}

.score-row:last-child {
  margin-bottom: 0;
}

.score-head {
  display: flex;
  justify-content: space-between;
  margin-bottom: 9px;
  color: #2f394a;
  font-size: 14px;
  font-weight: 800;
}

.score-track {
  height: 12px;
  border-radius: 999px;
  background: #dff1eb;
  overflow: hidden;
}

.score-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #33bf9a;
}

.score-row small {
  display: block;
  margin-top: 7px;
  color: #8b97a8;
  font-size: 13px;
}

.radar-card {
  margin-top: 0;
  margin-bottom: 64px;
  padding: 38px 28px 36px;
  text-align: center;
}

.radar-card canvas {
  display: block;
  width: min(470px, 100%);
  height: auto;
  margin: 0 auto;
}

.radar-card p {
  margin: 16px 0 0;
  color: #7b8798;
  font-size: 13.5px;
}

.scheme-photo {
  margin-bottom: 32px;
  padding: 32px 26px;
  text-align: center;
  background: linear-gradient(180deg, #fdfbf8, #faf6f0);
}

.scheme-photo img {
  width: min(420px, 100%);
  aspect-ratio: 3 / 4;
  border-radius: 16px;
  object-fit: cover;
  box-shadow: 0 14px 34px rgba(67, 53, 38, .14);
}

.recommend-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-top: 0;
  margin-bottom: 64px;
}

.recommend-grid article {
  padding: 34px 28px 38px;
  background: var(--result-surface);
}

.recommend-grid h3 {
  margin: 0 0 26px;
  color: #222938;
  font-size: 18px;
}

.mini-palette {
  grid-template-columns: repeat(4, 1fr);
  align-items: start;
  gap: 30px 14px;
}

.mini-palette .color-chip {
  align-content: start;
  gap: 8px;
  font-size: 11px;
}

.mini-palette .color-chip i {
  width: min(84px, 100%);
  height: auto;
  aspect-ratio: 1;
  border-radius: 15px;
  box-shadow: 0 7px 15px rgba(102, 77, 48, .10);
}

.mini-palette .color-chip.avoid i {
  opacity: .62;
  transition: opacity .2s ease;
}

.mini-palette .color-chip.avoid i:hover {
  opacity: 1;
}

.mini-palette .color-chip strong {
  font-size: 13px;
}

.mini-palette .color-chip span {
  color: #8490a3;
  font-size: 11px;
}

.advice-stack {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.advice-stack article:nth-child(-n+4) {
  grid-column: 1 / -1;
}

.advice-stack article {
  padding: 38px 30px 40px;
  background: var(--result-surface);
}

.advice-stack h3 {
  margin: 0 0 18px;
  color: #263143;
  font-size: 20px;
}

.advice-stack p {
  margin: 0;
  color: #5c6b82;
  font-size: 15.5px;
  line-height: 1.95;
}

.advice-stack b,
.color-word.recommended {
  color: #e36f34;
}

.color-word.avoid {
  color: #e02c62;
}

.action-row {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 32px;
}

.secondary-btn,
.pink-btn {
  min-height: 40px;
  padding: 0 23px;
  box-shadow: 0 10px 18px rgba(160, 84, 73, .18);
}

.secondary-btn {
  background: linear-gradient(180deg, #ffc93a, #efa20f);
}

.pink-btn {
  min-width: 144px;
  background: linear-gradient(95deg, #ef5bb9, #e93694);
}

.pink-btn span {
  display: inline-block;
  margin-left: 4px;
  padding: 2px 5px;
  border-radius: 999px;
  color: #d15b00;
  background: #ffe45d;
  font-size: 10px;
}

.site-footer {
  border-top: 1px solid #e3e8f0;
  padding: 28px 16px;
  color: #93a0b1;
  background: var(--warm-bg);
  text-align: center;
  font-size: 12px;
}

.site-footer a {
  color: #8794a8;
  text-decoration: none;
}

.site-footer a:hover {
  color: #5f7290;
}

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

.mobile-scrollbar {
  display: none;
}

.mobile-scrollbar-thumb {
  display: block;
  width: 100%;
  min-height: 44px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(36, 36, 46, .38);
  box-shadow: 0 1px 5px rgba(0, 0, 0, .12);
  touch-action: none;
}

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

@keyframes analysis-scan {
  0% {
    transform: translateX(-115%);
    opacity: 0;
  }

  18%,
  72% {
    opacity: 1;
  }

  100% {
    transform: translateX(115%);
    opacity: 0;
  }
}

@keyframes panel-breathe {
  0%,
  100% {
    transform: scale(.985);
    opacity: .38;
  }

  50% {
    transform: scale(1);
    opacity: .78;
  }
}

@keyframes eye-float {
  0%,
  100% {
    transform: translateY(0);
    box-shadow: 0 0 0 0 rgba(46, 193, 154, .2), 0 14px 28px rgba(46, 193, 154, .14);
  }

  50% {
    transform: translateY(-4px);
    box-shadow: 0 0 0 12px rgba(46, 193, 154, 0), 0 20px 34px rgba(46, 193, 154, .18);
  }
}

@keyframes eye-ring {
  0% {
    transform: scale(.76);
    opacity: .58;
  }

  80%,
  100% {
    transform: scale(1.28);
    opacity: 0;
  }
}

@keyframes title-sheen {
  0%,
  35% {
    background-position: 120% 0;
  }

  70%,
  100% {
    background-position: -120% 0;
  }
}

@keyframes soft-fade {
  0%,
  100% {
    opacity: .68;
  }

  50% {
    opacity: 1;
  }
}

@keyframes dot-rise {
  0%,
  100% {
    transform: translateY(0);
    background: #e8f0f7;
  }

  50% {
    transform: translateY(-3px);
    background: #bdeee4;
  }
}

@keyframes dot-stretch {
  0%,
  100% {
    width: 24px;
    opacity: .82;
  }

  50% {
    width: 32px;
    opacity: 1;
  }
}

@keyframes small-glow {
  0%,
  100% {
    color: #758296;
  }

  50% {
    color: #4f8f87;
  }
}

@media (max-width: 780px) {
  .mobile-scrollbar {
    position: fixed;
    top: 10vh;
    right: 4px;
    bottom: 10vh;
    z-index: 12;
    display: block;
    width: 12px;
    padding: 2px;
    border-radius: 999px;
    background: rgba(36, 36, 46, .08);
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s ease;
  }

  .mobile-scrollbar.is-scrollable {
    opacity: 1;
    pointer-events: auto;
  }

  .mobile-scrollbar.is-dragging {
    opacity: 1;
  }

  .hero {
    width: calc(100% - 24px);
    padding-top: 28px;
    padding-bottom: 48px;
    gap: 16px;
  }

  .hero-copy {
    font-size: 15px;
    line-height: 1.6;
  }

  .pain-card {
    padding: 22px 18px 24px;
  }

  .pain-card h2 {
    font-size: 16px;
    margin-bottom: 18px;
  }

  .pain-grid,
  .recommend-grid,
  .trait-strip,
  .result-hero,
  .advice-stack {
    grid-template-columns: 1fr;
  }

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

  .advice-stack article:nth-child(-n+4) {
    grid-column: auto;
  }

  .pain-grid {
    gap: 18px;
  }

  .pain-grid h3 {
    font-size: 14px;
  }

  .pain-grid p {
    font-size: 11.5px;
  }

  .start-inner,
  .drop-zone {
    min-height: 220px;
  }

  .start-inner h2 {
    font-size: 18px;
  }

  .start-inner p {
    font-size: 12px;
  }

  .season-grid {
    gap: 12px;
  }

  .season-grid article {
    min-height: 116px;
    padding: 14px 12px;
  }

  .season-grid h3 {
    font-size: 14px;
  }

  .season-grid p {
    font-size: 10.5px;
  }

  .result-view > * {
    width: calc(100% - 24px);
  }

  .result-hero {
    text-align: center;
    padding: 30px 20px 24px;
  }

  .tag-row {
    justify-content: center;
  }

  .trait-strip,
  .palette-block {
    padding-left: 20px;
    padding-right: 20px;
  }

  .swatch-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
  }

  .action-row {
    flex-direction: column;
    align-items: stretch;
  }

  .section-title {
    font-size: 18px;
    white-space: normal;
    line-height: 1.4;
  }

  .result-title h2 {
    font-size: 32px;
  }

  .result-title p {
    font-size: 17px;
  }

  .palette-block,
  .score-card,
  .radar-card,
  .recommend-grid article,
  .advice-stack article {
    padding-left: 22px;
    padding-right: 22px;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 36px;
  }

  .hero-copy {
    font-size: 14px;
  }

  .pain-card {
    padding: 20px 16px 22px;
  }

  .pain-card h2 {
    font-size: 15px;
  }

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

  .start-inner,
  .drop-zone {
    min-height: 200px;
  }

  .start-inner h2 {
    font-size: 17px;
  }

  .season-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .season-grid article {
    min-height: 108px;
    padding: 12px 10px;
  }

  .season-grid h3 {
    font-size: 13px;
  }

  .season-grid p {
    font-size: 10px;
  }
}

@media (max-width: 420px) {
  .hero h1 {
    font-size: 32px;
  }

  .start-inner h2 {
    font-size: 16px;
  }

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

  .mini-palette .color-chip i {
    width: min(92px, 100%);
    height: auto;
  }

  .scheme-photo {
    padding: 20px;
  }

  .primary-btn,
  .secondary-btn,
  .pink-btn,
  .verify-btn {
    font-size: 13px;
  }

  .result-title h2 {
    font-size: 28px;
  }

  .result-title p {
    font-size: 16px;
  }

  .section-title {
    font-size: 17px;
    white-space: normal;
    line-height: 1.4;
    padding: 0 8px;
  }

  .portrait-wrap img {
    width: 150px;
    height: 150px;
  }

  .palette-block,
  .score-card,
  .radar-card {
    padding-left: 20px;
    padding-right: 20px;
  }
}
