:root {
  --midnight: #050815;
  --deep: #0c1232;
  --violet: #5b35a4;
  --gold: #e8bd66;
  --gold-soft: #fff0b5;
  --aqua: #8ff2ff;
  --paper: #fff8e8;
  --ink: #18182b;
  --muted: #b9c2df;
  --panel: rgba(9, 13, 35, .78);
  --panel-light: rgba(255, 250, 236, .94);
  --radius: 20px;
  --shadow: 0 24px 80px rgba(0, 0, 0, .38);
  --space: clamp(18px, 4vw, 30px);
}

* {
  box-sizing: border-box;
}

html {
  background: var(--midnight);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic", sans-serif;
  color: var(--paper);
  line-height: 1.8;
  background:
    linear-gradient(180deg, rgba(4, 7, 19, .16), rgba(4, 7, 19, .94) 68%, #050815),
    url("../assets/starfield.webp") center top / cover fixed,
    var(--midnight);
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 16%, rgba(255, 224, 144, .24), transparent 18rem),
    radial-gradient(circle at 74% 36%, rgba(155, 90, 255, .26), transparent 24rem),
    linear-gradient(180deg, rgba(4, 7, 20, .08), rgba(4, 7, 20, .86));
}

a {
  color: var(--gold-soft);
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.page {
  position: relative;
  z-index: 1;
}

.wrap {
  width: min(100%, 960px);
  margin: auto;
  padding: 0 18px;
}

.hero {
  position: relative;
  min-height: calc(100svh - 54px);
  padding: clamp(28px, 4vw, 46px) 0 clamp(26px, 5vw, 54px);
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(5, 8, 21, .08), rgba(5, 8, 21, .16) 42%, rgba(5, 8, 21, .92) 100%),
    url("../assets/hero.webp") center top / min(100%, 1122px) auto no-repeat;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 28%, rgba(119, 75, 205, .2), transparent 20rem),
    linear-gradient(90deg, rgba(5, 8, 21, .44), transparent 24%, transparent 76%, rgba(5, 8, 21, .44));
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: min(100% - 32px, 980px);
  margin: auto;
  padding-top: clamp(72px, 15vw, 142px);
  text-align: center;
}

.hero-copy {
  width: min(100%, 720px);
  margin: 0 auto clamp(190px, 30vw, 330px);
  text-shadow: 0 4px 22px rgba(0, 0, 0, .7);
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  color: var(--gold-soft);
  font-weight: 800;
  letter-spacing: .16em;
  font-size: .78rem;
}

.kicker::before,
.kicker::after {
  content: "";
  width: 28px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold));
}

.kicker::after {
  background: linear-gradient(90deg, var(--gold), transparent);
}

.h1 {
  font-size: clamp(2.5rem, 7.2vw, 5.1rem);
  line-height: 1.08;
  margin: .16em 0 .18em;
  color: #fff9dc;
  font-family: "Hiragino Mincho ProN", "Yu Mincho", serif;
  font-weight: 700;
  letter-spacing: 0;
  white-space: nowrap;
  text-shadow: 0 0 18px rgba(255, 236, 181, .52), 0 8px 28px rgba(0, 0, 0, .58);
}

.lead {
  max-width: 40rem;
  margin: 0 auto;
  color: #edf0ff;
  font-size: clamp(1rem, 2.2vw, 1.18rem);
}

.hero-features {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(12px, 2vw, 18px);
  margin: 0 auto clamp(28px, 4vw, 42px);
}

.feature-card {
  min-height: 176px;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 9px;
  padding: 20px 14px;
  border: 1px solid rgba(232, 189, 102, .46);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, .035)),
    rgba(12, 14, 48, .66);
  box-shadow: inset 0 0 32px rgba(119, 75, 205, .12), 0 14px 40px rgba(0, 0, 0, .18);
  backdrop-filter: blur(10px);
}

.feature-icon {
  width: 58px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--gold);
  font-size: 1.75rem;
  line-height: 1;
  background: radial-gradient(circle, rgba(232, 189, 102, .18), rgba(81, 54, 144, .24) 62%, rgba(6, 9, 31, .4));
}

.feature-card strong {
  color: #fff4c6;
  font-size: clamp(1rem, 2.2vw, 1.28rem);
  font-family: "Hiragino Mincho ProN", "Yu Mincho", serif;
}

.feature-card p {
  margin: 0;
  color: #f3efff;
  font-size: .92rem;
  line-height: 1.7;
}

.hero-actions {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, .9fr);
  gap: 22px;
  width: min(100%, 820px);
  margin: 0 auto clamp(34px, 5vw, 54px);
}

.hero-actions .btn {
  min-height: 94px;
  border-radius: 999px;
  gap: 18px;
  padding: 18px 28px;
  text-align: left;
}

.hero-actions .btn span:last-child {
  display: grid;
  line-height: 1.25;
}

.hero-actions .btn small {
  margin-top: 7px;
  font-size: .86rem;
  font-weight: 700;
  opacity: .78;
}

.btn-mark {
  width: 52px;
  aspect-ratio: 1;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(35, 22, 36, .42);
  font-size: 1.5rem;
  line-height: 1;
}

.btn-secondary .btn-mark {
  color: var(--gold);
  border-color: rgba(232, 189, 102, .35);
  background: rgba(255, 255, 255, .07);
}

.hero-hints {
  width: min(100%, 900px);
  margin: auto;
  padding: clamp(20px, 4vw, 30px);
  border: 1px solid rgba(232, 189, 102, .34);
  border-radius: 22px;
  background: rgba(14, 17, 55, .58);
  box-shadow: inset 0 0 44px rgba(119, 75, 205, .14);
  backdrop-filter: blur(10px);
}

.hero-hints h2 {
  margin: 0 0 22px;
  color: #fff4c6;
  font-family: "Hiragino Mincho ProN", "Yu Mincho", serif;
  font-size: clamp(1.25rem, 3.2vw, 1.9rem);
  font-weight: 700;
}

.hint-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.hint-grid span {
  display: grid;
  gap: 8px;
  justify-items: center;
  color: #fff8dc;
  font-family: "Hiragino Mincho ProN", "Yu Mincho", serif;
  font-size: clamp(.96rem, 2vw, 1.18rem);
}

.hint-grid b {
  width: 58px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--gold);
  font-family: system-ui, sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  background: radial-gradient(circle, rgba(232, 189, 102, .18), rgba(255, 255, 255, .06) 58%, rgba(255, 255, 255, .03));
}

.hero-disclaimer {
  margin: 24px auto 0;
  color: rgba(255, 255, 255, .72);
  font-size: .86rem;
}

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 22px 0;
}

.badge,
.chip {
  border: 1px solid rgba(232, 189, 102, .56);
  background: linear-gradient(180deg, rgba(255, 255, 255, .14), rgba(255, 255, 255, .05));
  color: #fff8dc;
  border-radius: 999px;
  padding: .44rem .78rem;
  font-weight: 800;
  font-size: .82rem;
  box-shadow: inset 0 0 18px rgba(232, 189, 102, .08);
}

.actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.btn {
  border: 0;
  border-radius: 999px;
  min-height: 50px;
  padding: .82rem 1.2rem;
  font-weight: 900;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, #fff8d9, var(--gold) 54%, #a86d25);
  color: #161022;
  box-shadow: 0 12px 30px rgba(232, 189, 102, .28);
}

.btn-secondary {
  background: rgba(8, 12, 35, .55);
  color: #fff8dc;
  border: 1px solid rgba(232, 189, 102, .4);
  box-shadow: inset 0 0 18px rgba(255, 255, 255, .06);
}

.screen {
  padding: clamp(24px, 5vw, 56px) 0;
}

.panel {
  position: relative;
  background: var(--panel-light);
  color: var(--ink);
  border-radius: var(--radius);
  padding: var(--space);
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 238, 179, .64);
  margin: 18px 0;
  overflow: hidden;
}

.panel::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(126, 81, 33, .1), inset 0 20px 60px rgba(255, 255, 255, .12);
}

.panel.dark {
  background:
    linear-gradient(180deg, rgba(12, 18, 50, .86), rgba(5, 8, 24, .86)),
    url("../assets/starfield.webp") center / cover;
  color: #fff8dc;
  border-color: rgba(232, 189, 102, .46);
}

.panel h2,
.panel h3 {
  line-height: 1.35;
  margin: .1em 0 .6em;
  font-family: "Hiragino Mincho ProN", "Yu Mincho", serif;
}

#profile-form {
  background:
    linear-gradient(180deg, rgba(255, 250, 236, .95), rgba(244, 233, 211, .94)),
    url("../assets/frame.webp") center 36% / min(96%, 680px) auto no-repeat;
}

.form-grid {
  display: grid;
  gap: 14px;
}

.field label {
  display: block;
  font-weight: 900;
  margin-bottom: 6px;
  color: #282241;
}

.field input,
.field select {
  width: 100%;
  min-height: 50px;
  border-radius: 14px;
  border: 1px solid rgba(123, 87, 41, .42);
  padding: .68rem .82rem;
  font-size: 16px;
  background: rgba(255, 255, 255, .86);
  color: #17172b;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .8);
}

.birth-number label {
  margin: 0;
}

.birth-number label > span {
  display: block;
  font-weight: 900;
  margin-bottom: 6px;
  color: #282241;
}

.birth-number input {
  min-height: 62px;
  font-size: 1.45rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.birth-number input::placeholder {
  color: rgba(40, 34, 65, .38);
}

.birth-help {
  margin: 7px 0 0;
  color: #665d78;
  font-size: .86rem;
  line-height: 1.6;
}

.note {
  font-size: .9rem;
  color: #5f6680;
}

.panel.dark .note {
  color: #dbe0ff;
}

.error {
  color: #b00020;
  font-weight: 800;
}

.loading-steps {
  min-height: 5rem;
  display: grid;
  place-items: center;
  text-align: center;
  color: #fff8dc;
  font-size: 1.15rem;
}

.result-head {
  position: sticky;
  top: 0;
  z-index: 5;
  margin: 0;
  padding: 10px 0;
  background: rgba(5, 8, 21, .84);
  backdrop-filter: blur(14px);
  border-block: 1px solid rgba(232, 189, 102, .28);
}

.mood-row,
.theme-row {
  display: flex;
  gap: 8px;
  overflow: auto;
  padding: 6px 0;
  scrollbar-width: none;
}

.mood-row::-webkit-scrollbar,
.theme-row::-webkit-scrollbar {
  display: none;
}

.mood-chip,
.theme-chip {
  white-space: nowrap;
  border-radius: 999px;
  border: 1px solid rgba(232, 189, 102, .46);
  background: rgba(255, 255, 255, .1);
  color: #fff8dc;
  padding: .48rem .74rem;
}

.type-card {
  text-align: center;
}

.type-card::after {
  content: "";
  position: absolute;
  inset: auto 50% 18px auto;
  width: min(62vw, 360px);
  aspect-ratio: 1;
  transform: translateX(50%);
  background: url("../assets/frame.webp") center / contain no-repeat;
  opacity: .13;
  pointer-events: none;
}

.type-name {
  font-size: clamp(2rem, 7vw, 3.4rem);
  font-family: "Hiragino Mincho ProN", "Yu Mincho", serif;
  color: #fff2b8;
  text-shadow: 0 0 18px rgba(255, 236, 181, .34);
}

.axis-grid {
  display: grid;
  gap: 11px;
}

.axis-meter {
  --v: 50%;
  background: rgba(22, 24, 54, .1);
  border: 1px solid rgba(126, 89, 44, .22);
  border-radius: 999px;
  height: 36px;
  position: relative;
  overflow: hidden;
}

.axis-meter::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--v);
  background: linear-gradient(90deg, #6fddeb, #8f65d7 52%, var(--gold));
}

.axis-meter b,
.axis-meter span {
  position: relative;
  z-index: 1;
  padding: 0 10px;
  line-height: 36px;
}

.axis-meter span {
  float: right;
}

.luck-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.luck {
  background: rgba(255, 255, 255, .09);
  border: 1px solid rgba(232, 189, 102, .28);
  border-radius: 16px;
  padding: 12px;
}

.luck span {
  display: block;
  color: #fff2b8;
  font-weight: 900;
}

.details-grid details {
  border-top: 1px solid rgba(31, 39, 64, .14);
  padding: 12px 0;
}

.details-grid summary {
  font-weight: 900;
  cursor: pointer;
}

.monshou {
  display: grid;
  place-items: center;
}

.monshou svg {
  width: min(72vw, 260px);
  height: auto;
  filter: drop-shadow(0 0 20px rgba(232, 189, 102, .28));
}

.share-canvas {
  width: 100%;
  height: auto;
  border-radius: 16px;
  background: #111;
  display: none;
}

.feedback {
  display: grid;
  gap: 8px;
}

.feedback-btn {
  border-radius: 14px;
  border: 1px solid rgba(123, 87, 41, .28);
  background: rgba(255, 255, 255, .8);
  padding: .76rem;
}

.tc-common-footer {
  position: relative;
  z-index: 1;
}

.tc-common-footer a {
  color: inherit;
}

@media (min-width: 760px) {
  .form-grid {
    grid-template-columns: 1fr 1fr;
  }

  .field.full {
    grid-column: 1 / -1;
  }

  .luck-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}

@media (max-width: 759px) {
  body {
    background-attachment: scroll;
  }

  .hero {
    min-height: auto;
    background-size: 100% auto;
    background-position: center top;
  }

  .hero-inner {
    width: min(100% - 28px, 520px);
    padding-top: clamp(96px, 26vw, 140px);
  }

  .hero-copy {
    margin-bottom: clamp(172px, 54vw, 260px);
  }

  .hero-features {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .feature-card {
    min-height: 150px;
  }

  .hero-actions {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .hero-actions .btn {
    min-height: 82px;
  }

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

@media (max-width: 430px) {
  .wrap {
    padding: 0 14px;
  }

  .h1 {
    font-size: clamp(2rem, 8.7vw, 2.34rem);
  }

  .kicker {
    font-size: .7rem;
    letter-spacing: .1em;
  }

  .lead {
    font-size: .95rem;
  }

  .hero-copy {
    margin-bottom: clamp(142px, 48vw, 198px);
  }

  .hero-features {
    gap: 10px;
  }

  .feature-card {
    min-height: 140px;
    padding: 16px 10px;
  }

  .feature-icon,
  .hint-grid b {
    width: 48px;
  }

  .feature-card strong {
    font-size: .98rem;
  }

  .feature-card p {
    font-size: .8rem;
  }

  .hero-actions .btn {
    justify-content: flex-start;
    gap: 14px;
    padding: 15px 20px;
  }

  .hero-hints {
    padding: 18px 12px;
  }

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

  .btn {
    width: 100%;
  }

  .luck-grid {
    grid-template-columns: 1fr;
  }
}

/* Input and result experience */
.input-panel,
.result-screen .panel {
  border-radius: 8px;
}

.input-panel {
  width: min(100%, 820px);
  margin-inline: auto;
  padding: clamp(24px, 5vw, 44px);
  background: rgba(255, 250, 239, .97);
}

.form-heading {
  max-width: 620px;
  margin-bottom: 28px;
}

.form-heading h2,
.section-heading h2 {
  margin: 4px 0 8px;
}

.form-heading p,
.section-heading p {
  margin-block: 0;
}

.step-label,
.result-eyebrow {
  color: #8a5a16;
  font-size: .76rem;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.field-wide {
  grid-column: 1 / -1;
}

fieldset.field {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.field > label,
.field > legend {
  margin-bottom: 9px;
  color: #282241;
  font-weight: 900;
}

.field > legend {
  display: block;
  width: 100%;
}

.field > label span {
  color: #766f7f;
  font-size: .8rem;
  font-weight: 700;
}

.birth-selects {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 10px;
}

.birth-selects label {
  position: relative;
}

.birth-selects label > span {
  position: absolute;
  z-index: 1;
  top: 50%;
  right: 36px;
  transform: translateY(-50%);
  color: #6d6574;
  font-size: .86rem;
  pointer-events: none;
}

.birth-selects select {
  padding-right: 54px;
}

.choice-field {
  margin-top: 8px;
}

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

.choice-card {
  min-height: 92px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 7px;
  padding: 12px 6px;
  border: 1px solid #d6c9b5;
  border-radius: 8px;
  color: #373047;
  background: rgba(255, 255, 255, .76);
  box-shadow: 0 3px 12px rgba(57, 38, 23, .05);
}

.choice-card b {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  color: #966615;
  border-radius: 50%;
  background: #fff5d9;
  font-size: 1.14rem;
}

.choice-card span {
  font-size: .9rem;
  font-weight: 800;
  line-height: 1.3;
}

.choice-card:hover,
.choice-card:focus-visible {
  border-color: #a87824;
}

.choice-card.is-selected {
  border-color: #8d611b;
  color: #241b2f;
  background: #fff2c7;
  box-shadow: inset 0 0 0 2px #d6a443, 0 5px 16px rgba(141, 97, 27, .12);
}

.submit-reading {
  width: min(100%, 480px);
  min-height: 72px;
  display: grid;
  gap: 2px;
  margin: 30px auto 0;
  border-radius: 8px;
}

.submit-reading small {
  font-size: .76rem;
  font-weight: 700;
}

.result-screen {
  padding-top: 40px;
}

.result-intro {
  margin: 0 0 16px;
  text-align: center;
}

.result-intro p {
  margin: 0;
}

.result-intro #result-name {
  color: #fff;
  font-family: "Hiragino Mincho ProN", "Yu Mincho", serif;
  font-size: 1.15rem;
}

.type-card {
  padding-block: clamp(34px, 6vw, 58px);
}

.type-card::after {
  opacity: .08;
}

.result-catch,
#mirror-desc {
  position: relative;
  z-index: 1;
  max-width: 660px;
  margin-inline: auto;
}

.result-tags {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 20px 0 14px;
}

.rationale-panel,
.trait-panel {
  padding: clamp(24px, 5vw, 42px);
}

.mirror-readings {
  display: grid;
  gap: 0;
  margin-top: 28px;
  border-block: 1px solid #ded2c0;
}

.mirror-readings article {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 14px;
  padding: 20px 0;
  border-bottom: 1px solid #e8dfd1;
}

.mirror-readings article:last-child {
  border-bottom: 0;
}

.mirror-readings article > span {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid #c99b4a;
  border-radius: 50%;
  color: #8a5a16;
  font-family: "Hiragino Mincho ProN", "Yu Mincho", serif;
  font-weight: 900;
}

.mirror-readings h3,
.mirror-readings p {
  margin: 0;
}

.mirror-key {
  color: #805818;
  font-size: .88rem;
  font-weight: 900;
}

.synthesis {
  margin-top: 24px;
  padding: 20px;
  border-left: 4px solid #c49135;
  background: #fff4d8;
}

.synthesis p {
  margin: 6px 0 0;
}

.trait-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 24px;
}

.trait-grid article {
  padding: 18px;
  border: 1px solid #ddd1c0;
  border-radius: 8px;
  background: rgba(255, 255, 255, .52);
}

.trait-grid span {
  color: #a06b18;
  font-size: .76rem;
  font-weight: 900;
}

.trait-grid h3 {
  margin: 3px 0 8px;
  font-size: 1rem;
}

.trait-grid p {
  margin: 0;
  font-size: .92rem;
}

.detail-analysis,
.lucky-details {
  margin-top: 22px;
  border-top: 1px solid rgba(129, 92, 42, .25);
  padding-top: 14px;
}

.detail-analysis summary,
.lucky-details summary {
  cursor: pointer;
  font-weight: 900;
}

.detail-analysis .axis-grid {
  margin-top: 16px;
}

.today-panel {
  padding: clamp(26px, 5vw, 44px);
}

.today-panel .step-label {
  color: #e8bd66;
}

.today-message {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 16px;
  margin: 24px 0;
  padding: 20px;
  border: 1px solid rgba(232, 189, 102, .4);
  background: rgba(255, 255, 255, .07);
}

.today-message > span {
  color: var(--gold);
  font-size: 2rem;
}

.today-message h3,
.today-message p {
  margin: 0;
}

.action-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.action-pair article,
.focus-box {
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 8px;
  background: rgba(255, 255, 255, .06);
}

.action-pair h3,
.action-pair p,
.focus-box h3,
.focus-box p {
  margin: 0;
}

.focus-box {
  margin: 12px 0 20px;
  border-color: rgba(232, 189, 102, .38);
}

@media (max-width: 620px) {
  .type-name {
    font-size: clamp(1.55rem, 7vw, 1.8rem);
  }

  .choice-grid,
  .trait-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .birth-selects {
    gap: 7px;
  }

  .birth-selects label > span {
    display: none;
  }

  .birth-selects select {
    padding-inline: 9px 30px;
  }

  .choice-card {
    min-height: 82px;
  }

  .action-pair {
    grid-template-columns: 1fr;
  }
}

/* Simplified top flow */
.hero-features {
  gap: 1px;
  border-block: 1px solid rgba(232, 189, 102, .32);
  background: rgba(7, 10, 31, .5);
}

.feature-card {
  min-height: 118px;
  padding: 16px 10px;
  border: 0;
  border-right: 1px solid rgba(232, 189, 102, .2);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.feature-card:last-child {
  border-right: 0;
}

.feature-icon {
  width: 34px;
  font-size: 1.1rem;
  background: transparent;
}

.input-panel {
  border: 0;
  box-shadow: 0 18px 50px rgba(0, 0, 0, .22);
  background: #fffaf0;
}

.input-panel::before {
  display: none;
}

.theme-choice {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.theme-choice .choice-card,
.mood-choice .choice-card {
  min-height: 58px;
  display: flex;
  justify-content: center;
  gap: 7px;
  padding: 9px 10px;
  box-shadow: none;
}

.theme-choice .choice-card b,
.mood-choice .choice-card b {
  width: auto;
  height: auto;
  border-radius: 0;
  background: transparent;
  font-size: 1rem;
}

.mood-choice {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 2px 1px 8px;
  scrollbar-width: thin;
  scrollbar-color: #c8a55e transparent;
}

.mood-choice .choice-card {
  flex: 0 0 auto;
  min-width: 106px;
  min-height: 50px;
}

.choice-card.is-selected {
  background: #fff1c8;
  box-shadow: inset 0 0 0 1px #c99737;
}

.reading-guide {
  color: #f7f1e5;
  padding: clamp(46px, 8vw, 88px) 20px;
  background: rgba(4, 7, 20, .72);
  border-block: 1px solid rgba(232, 189, 102, .18);
}

.reading-guide-inner {
  width: min(100%, 760px);
  margin: auto;
}

.reading-guide h2 {
  margin: 5px 0 24px;
  color: #fff3c4;
  font-family: "Hiragino Mincho ProN", "Yu Mincho", serif;
  font-size: clamp(1.55rem, 4vw, 2.25rem);
  line-height: 1.5;
}

.reading-guide p:not(.step-label) {
  margin: 0 0 1.2em;
  color: #e2e2ec;
  line-height: 2;
}

.reading-guide p:last-child {
  margin-bottom: 0;
}

@media (max-width: 620px) {
  .hero-features {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .feature-card {
    min-height: 104px;
    border-bottom: 1px solid rgba(232, 189, 102, .2);
  }

  .theme-choice {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .theme-choice .choice-card {
    min-height: 62px;
    padding-inline: 4px;
  }

  .theme-choice .choice-card span {
    font-size: .8rem;
  }

  .mood-choice .choice-card {
    min-width: 100px;
  }
}


/* ==== fix5: 紋章・気分チップ・ローディング ==== */
.monshou { width: 132px; margin: 0 auto 14px; }
.monshou svg { width: 100%; height: auto; display: block; filter: drop-shadow(0 4px 18px rgba(120, 150, 255, .35)); }
.mood-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 4px; }
.mood-chip { font-family: inherit; font-size: 12.5px; padding: 7px 14px; border-radius: 999px; border: 1px solid rgba(217, 184, 111, .45); background: rgba(255, 255, 255, .06); color: inherit; cursor: pointer; min-height: 34px; }
.mood-chip.is-selected { background: #d9b86f; border-color: #d9b86f; color: #14213d; font-weight: 700; }

/* Result page art direction */
.sankyo-result-page {
  color: #fff7df;
  background:
    radial-gradient(circle at 50% 0%, rgba(168, 117, 42, .16), transparent 21rem),
    linear-gradient(180deg, rgba(4, 7, 19, .18), rgba(4, 7, 19, .92) 72%, #030716),
    url("../assets/result-ui/result-hero-frame.webp") center top / min(1380px, 150vw) auto repeat-y,
    #050815;
}

.sankyo-result-page::before {
  background:
    radial-gradient(circle at 14% 8%, rgba(247, 212, 126, .2), transparent 8rem),
    radial-gradient(circle at 50% 16%, rgba(255, 237, 183, .2), transparent 18rem),
    linear-gradient(180deg, rgba(5, 8, 21, .04), rgba(5, 8, 21, .72));
}

.sankyo-result-page .result-screen {
  padding: clamp(24px, 6vw, 44px) 0 52px;
}

.sankyo-result-page .wrap {
  width: min(100%, 860px);
  padding-inline: clamp(14px, 3vw, 22px);
}

.sankyo-result-page .result-intro {
  margin-bottom: 22px;
}

.sankyo-result-page .result-intro .step-label {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  color: #e9bd64;
  font-size: .9rem;
  letter-spacing: .18em;
  text-shadow: 0 0 18px rgba(232, 189, 102, .32);
}

.sankyo-result-page .result-intro .step-label::before,
.sankyo-result-page .result-intro .step-label::after {
  content: "";
  width: 50px;
  height: 1px;
  background: linear-gradient(90deg, transparent, #d7aa54, transparent);
}

.sankyo-result-page .result-intro h1 {
  margin: 6px 0 0;
  color: #fffbe8;
  font-family: "Hiragino Mincho ProN", "Yu Mincho", serif;
  font-size: clamp(2.35rem, 8vw, 4.2rem);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: .03em;
  text-shadow: 0 0 20px rgba(255, 244, 202, .5), 0 8px 28px rgba(0, 0, 0, .58);
}

.sankyo-result-page .result-intro #result-name {
  margin-top: 7px;
  color: rgba(255, 248, 226, .76);
  font-size: .95rem;
}

.sankyo-result-page .panel {
  border-radius: 20px;
  box-shadow: 0 18px 42px rgba(0, 0, 0, .28);
}

.sankyo-result-page .type-card {
  position: relative;
  min-height: 430px;
  display: grid;
  justify-items: center;
  align-content: center;
  padding: clamp(44px, 8vw, 72px) clamp(22px, 6vw, 62px);
  overflow: hidden;
  text-align: center;
  border: 1px solid rgba(244, 203, 105, .7);
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(8, 13, 45, .36), rgba(5, 8, 28, .84)),
    url("../assets/result-ui/result-hero-frame.webp") center center / cover no-repeat,
    #071032;
  box-shadow:
    inset 0 0 0 1px rgba(255, 238, 178, .38),
    inset 0 0 58px rgba(75, 65, 135, .45),
    0 22px 62px rgba(0, 0, 0, .42);
}

.sankyo-result-page .type-card::after {
  opacity: .28;
  background:
    radial-gradient(circle at 50% 36%, rgba(246, 213, 129, .16), transparent 13rem),
    linear-gradient(180deg, transparent, rgba(4, 7, 23, .2));
}

.sankyo-result-page .result-eyebrow {
  position: relative;
  z-index: 1;
  margin: 0 0 18px;
  color: #e7b75b;
  font-family: "Hiragino Mincho ProN", "Yu Mincho", serif;
  font-size: clamp(1rem, 3vw, 1.2rem);
  font-weight: 800;
}

.sankyo-result-page .monshou {
  position: relative;
  z-index: 1;
  width: clamp(108px, 24vw, 146px);
  margin-bottom: 20px;
  padding: 7px;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(255, 240, 180, .2), transparent 62%),
    linear-gradient(145deg, rgba(255, 238, 175, .86), rgba(155, 94, 33, .55));
  box-shadow: 0 0 22px rgba(245, 198, 96, .32), 0 10px 28px rgba(0, 0, 0, .35);
}

.sankyo-result-page .monshou svg {
  border-radius: 50%;
  background: rgba(9, 14, 45, .82);
  filter: drop-shadow(0 0 14px rgba(245, 214, 132, .35));
}

.sankyo-result-page .type-name {
  position: relative;
  z-index: 1;
  color: #fff6c8;
  font-family: "Hiragino Mincho ProN", "Yu Mincho", serif;
  font-size: clamp(2.2rem, 8.2vw, 4.45rem);
  font-weight: 500;
  line-height: 1.18;
  text-shadow: 0 0 18px rgba(255, 231, 154, .48);
}

.sankyo-result-page .result-catch,
.sankyo-result-page #mirror-desc {
  color: #fffaf0;
  font-size: clamp(1rem, 2.65vw, 1.16rem);
  font-weight: 700;
  line-height: 1.85;
}

.sankyo-result-page .result-tags {
  gap: 12px;
  margin: 16px 0 18px;
}

.sankyo-result-page .badge {
  min-width: 128px;
  border-color: rgba(232, 189, 102, .8);
  color: #ffe8a2;
  background: rgba(7, 10, 33, .38);
}

.sankyo-result-page .rationale-panel {
  margin-top: 22px;
  color: #15172d;
  border: 1px solid rgba(201, 154, 76, .44);
  background:
    linear-gradient(180deg, rgba(255, 251, 241, .84), rgba(255, 247, 229, .94)),
    url("../assets/result-ui/result-paper-card.webp") center center / cover no-repeat,
    #fff8e8;
}

.sankyo-result-page .rationale-panel .section-heading .step-label,
.sankyo-result-page .trait-panel .section-heading .step-label,
.sankyo-result-page .today-panel .step-label {
  color: #d8a84a;
  letter-spacing: .08em;
}

.sankyo-result-page .rationale-panel h2,
.sankyo-result-page .trait-panel h2 {
  color: #202149;
  font-family: "Hiragino Mincho ProN", "Yu Mincho", serif;
  font-size: clamp(1.55rem, 5vw, 2.25rem);
  line-height: 1.26;
}

.sankyo-result-page .mirror-readings {
  gap: 0;
  padding: 8px 22px;
  border: 1px solid rgba(201, 154, 76, .26);
  border-radius: 12px;
  background: rgba(255, 253, 246, .5);
  text-align: left;
}

.sankyo-result-page .mirror-readings article {
  grid-template-columns: 70px 1fr;
  gap: 18px;
  align-items: center;
  padding: 19px 0;
}

.sankyo-result-page .mirror-readings article > span {
  width: 58px;
  height: 58px;
  border: 2px solid #a9782c;
  color: #f3d06e;
  background:
    radial-gradient(circle at 52% 40%, rgba(255, 219, 119, .2), transparent 36%),
    #11164b;
  box-shadow: 0 5px 12px rgba(38, 24, 7, .18);
}

.sankyo-result-page .mirror-readings h3 {
  color: #242154;
  font-family: "Hiragino Mincho ProN", "Yu Mincho", serif;
  font-size: 1.18rem;
  text-align: left;
}

.sankyo-result-page .mirror-key {
  color: #9b6313;
  font-size: .94rem;
  text-align: left;
}

.sankyo-result-page .mirror-readings p {
  text-align: left;
}

.sankyo-result-page .synthesis {
  border: 1px solid rgba(197, 145, 53, .42);
  border-left-width: 1px;
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(255, 250, 234, .74), rgba(255, 244, 212, .88)),
    url("../assets/result-ui/result-paper-card.webp") right bottom / 78% auto no-repeat;
}

.sankyo-result-page .synthesis strong {
  color: #af7620;
  font-family: "Hiragino Mincho ProN", "Yu Mincho", serif;
}

.sankyo-result-page .trait-panel {
  margin-top: 18px;
  color: #fff9e8;
  border: 1px solid rgba(232, 189, 102, .28);
  background:
    linear-gradient(180deg, rgba(20, 15, 56, .74), rgba(11, 14, 44, .9)),
    url("../assets/result-ui/result-dark-card.webp") center center / cover no-repeat,
    #101333;
}

.sankyo-result-page .trait-panel .section-heading h2 {
  color: #fffce9;
  text-shadow: 0 0 14px rgba(255, 230, 166, .28);
}

.sankyo-result-page .trait-grid {
  gap: 14px;
}

.sankyo-result-page .trait-grid article {
  min-height: 180px;
  display: grid;
  align-content: start;
  padding: 20px 18px;
  color: #16172d;
  border: 1px solid rgba(199, 151, 67, .34);
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(255, 252, 244, .9), rgba(255, 246, 225, .96)),
    url("../assets/result-ui/result-paper-card.webp") center center / cover no-repeat;
}

.sankyo-result-page .trait-grid span {
  color: #2e2b62;
  font-size: .92rem;
}

.sankyo-result-page .trait-grid h3 {
  color: #1e1e43;
  font-family: "Hiragino Mincho ProN", "Yu Mincho", serif;
  font-size: 1.14rem;
}

.sankyo-result-page .detail-analysis summary {
  display: grid;
  place-items: center;
  min-height: 44px;
  color: #fff5d5;
  border: 1px solid rgba(232, 189, 102, .85);
  border-radius: 999px;
  background: rgba(10, 14, 42, .36);
}

.sankyo-result-page .today-panel {
  margin-top: 18px;
  overflow: hidden;
  border: 1px solid rgba(232, 189, 102, .3);
  background:
    linear-gradient(180deg, rgba(10, 14, 45, .78), rgba(5, 9, 30, .92)),
    url("../assets/result-ui/result-today-card.webp") center center / cover no-repeat,
    #081135;
}

.sankyo-result-page .today-panel h2 {
  color: #fffce9;
  font-family: "Hiragino Mincho ProN", "Yu Mincho", serif;
  font-size: clamp(1.65rem, 6vw, 2.7rem);
  line-height: 1.38;
}

.sankyo-result-page .mood-chips {
  flex-wrap: nowrap;
  overflow-x: auto;
  gap: 9px;
  padding-bottom: 2px;
  scrollbar-width: none;
}

.sankyo-result-page .mood-chips::-webkit-scrollbar {
  display: none;
}

.sankyo-result-page .mood-chip {
  flex: 0 0 auto;
  min-width: 76px;
  min-height: 40px;
  color: #fff6da;
  border-color: rgba(232, 189, 102, .58);
  background: rgba(8, 11, 37, .58);
}

.sankyo-result-page .mood-chip.is-selected {
  color: #2a1a28;
  background: linear-gradient(180deg, #ffeaa5, #d8a548);
}

.sankyo-result-page .today-message,
.sankyo-result-page .action-pair article,
.sankyo-result-page .focus-box {
  border-color: rgba(232, 189, 102, .58);
  border-radius: 12px;
  background: rgba(7, 10, 34, .52);
}

.sankyo-result-page .luck-grid {
  gap: 8px;
}

.sankyo-result-page .luck {
  border-color: rgba(232, 189, 102, .34);
  background: rgba(255, 255, 255, .06);
}

.sankyo-result-page #share-canvas,
.sankyo-result-page #native-share,
.sankyo-result-page #download-card,
.sankyo-result-page #copy-share {
  display: none;
}

.sankyo-result-page .panel:has(#share-x) {
  padding: clamp(24px, 5vw, 38px);
  border: 1px solid rgba(232, 189, 102, .34);
  background:
    linear-gradient(180deg, rgba(14, 20, 58, .78), rgba(6, 10, 32, .9)),
    url("../assets/result-ui/result-dark-card.webp") center center / cover no-repeat,
    #0b1236;
}

.sankyo-result-page .panel:has(#share-x) h2 {
  margin: 0 0 18px;
  color: #fffbe8;
  font-family: "Hiragino Mincho ProN", "Yu Mincho", serif;
  font-size: clamp(1.8rem, 7vw, 2.75rem);
}

.sankyo-result-page .panel:has(#share-x) .actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  width: min(100%, 430px);
}

.sankyo-result-page #share-x,
.sankyo-result-page #share-threads {
  min-height: 56px;
  border-radius: 999px;
  color: #fff8df;
  border-color: rgba(232, 189, 102, .52);
  background: rgba(8, 11, 37, .58);
}

.sankyo-result-page #share-x:hover,
.sankyo-result-page #share-threads:hover,
.sankyo-result-page #share-x:focus-visible,
.sankyo-result-page #share-threads:focus-visible {
  color: #2a1a28;
  background: linear-gradient(180deg, #ffeaa5, #d8a548);
}

.sankyo-result-page .detail-analysis {
  margin-top: 26px;
  padding: clamp(20px, 5vw, 34px);
  border: 1px solid rgba(232, 189, 102, .36);
  border-radius: 18px;
  background:
    radial-gradient(circle at 50% 9%, rgba(255, 231, 163, .13), transparent 9rem),
    linear-gradient(180deg, rgba(9, 14, 48, .82), rgba(5, 9, 30, .9)),
    url("../assets/result-ui/result-dark-card.webp") center center / cover no-repeat,
    #090f2d;
  box-shadow: inset 0 0 0 1px rgba(255, 240, 181, .1), 0 16px 34px rgba(0, 0, 0, .24);
}

.sankyo-result-page .detail-analysis summary {
  display: block;
  min-height: 0;
  margin: 0 0 24px;
  color: #fff4c8;
  border: 0;
  border-radius: 0;
  background: transparent;
  font-family: "Hiragino Mincho ProN", "Yu Mincho", serif;
  font-size: clamp(1.75rem, 6.6vw, 3rem);
  font-weight: 600;
  line-height: 1.24;
  text-align: center;
  text-shadow: 0 0 18px rgba(255, 235, 177, .42);
}

.sankyo-result-page .detail-analysis summary::-webkit-details-marker {
  display: none;
}

.sankyo-result-page .detail-analysis summary::before {
  content: "✦";
  display: block;
  color: #e5b95e;
  font-size: 1.2rem;
  line-height: 1;
  margin-bottom: 8px;
}

.sankyo-result-page .detail-analysis[open] summary {
  margin-bottom: 22px;
}

.sankyo-result-page .detail-analysis .axis-grid {
  display: grid;
  gap: 14px;
  margin: 0;
}

.sankyo-result-page .axis-meter {
  --v: 50%;
  position: relative;
  display: grid;
  grid-template-columns: 58px minmax(54px, .55fr) minmax(0, 2.2fr) minmax(54px, .55fr) 74px;
  align-items: center;
  gap: clamp(8px, 2vw, 16px);
  min-height: 96px;
  padding: 15px clamp(12px, 3vw, 18px);
  border: 1px solid rgba(232, 189, 102, .24);
  border-radius: 17px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .025)),
    rgba(7, 11, 36, .64);
  box-shadow: inset 0 0 34px rgba(72, 93, 180, .12);
}

.sankyo-result-page .axis-meter::before {
  display: none;
}

.sankyo-result-page .axis-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(232, 189, 102, .38);
  border-radius: 50%;
  color: #f5d98d;
  font-size: 1.35rem;
  background: radial-gradient(circle, rgba(255, 233, 169, .13), rgba(10, 13, 43, .9));
  box-shadow: inset 0 0 18px rgba(255, 229, 160, .08);
}

.sankyo-result-page .axis-left,
.sankyo-result-page .axis-right {
  color: #fff7df;
  font-family: "Hiragino Mincho ProN", "Yu Mincho", serif;
  font-size: clamp(1.35rem, 5vw, 2rem);
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

.sankyo-result-page .axis-right {
  text-align: right;
}

.sankyo-result-page .axis-main {
  min-width: 0;
}

.sankyo-result-page .axis-label {
  display: grid;
  grid-template-columns: 22px 1fr 22px;
  align-items: center;
  gap: 8px;
  margin-bottom: 9px;
  color: #f1c978;
  font-family: "Hiragino Mincho ProN", "Yu Mincho", serif;
  font-size: clamp(.98rem, 3vw, 1.28rem);
  text-align: center;
  letter-spacing: .04em;
}

.sankyo-result-page .axis-track {
  position: relative;
  height: 16px;
  border: 1px solid rgba(196, 209, 255, .28);
  border-radius: 999px;
  background:
    linear-gradient(90deg, rgba(114, 162, 255, .34), rgba(255, 238, 180, .16) 50%, rgba(235, 191, 96, .34)),
    rgba(15, 22, 53, .82);
  box-shadow: inset 0 0 10px rgba(173, 192, 255, .2), 0 0 12px rgba(130, 150, 255, .13);
}

.sankyo-result-page .axis-track::before {
  content: "";
  position: absolute;
  top: -9px;
  bottom: -9px;
  left: 50%;
  width: 2px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: #fff2bf;
  box-shadow: 0 0 12px rgba(255, 226, 146, .65);
}

.sankyo-result-page .axis-track::after {
  content: "50";
  position: absolute;
  left: 50%;
  top: 22px;
  transform: translateX(-50%);
  color: rgba(255, 245, 204, .72);
  font-size: .68rem;
  font-weight: 800;
  line-height: 1;
}

.sankyo-result-page .axis-track i {
  position: absolute;
  top: 50%;
  left: var(--v);
  width: 22px;
  height: 22px;
  transform: translate(-50%, -50%) rotate(45deg);
  border: 2px solid #fff5cc;
  background: linear-gradient(135deg, #fffdf0, #d79f39);
  box-shadow: 0 0 12px rgba(255, 224, 140, .75);
}

.sankyo-result-page .axis-score {
  min-width: 68px;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 1px;
  border: 1px solid rgba(232, 189, 102, .55);
  border-radius: 999px;
  color: #f9d47b;
  background: rgba(7, 10, 32, .72);
}

.sankyo-result-page .axis-score span {
  color: inherit;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.7rem, 6vw, 2.35rem);
  line-height: 1;
}

.sankyo-result-page .axis-score em {
  font-style: normal;
  color: rgba(255, 242, 196, .72);
  font-size: .62rem;
  font-weight: 800;
  letter-spacing: .08em;
  line-height: 1;
}

@media (max-width: 620px) {
  .sankyo-result-page .result-screen {
    padding-top: 20px;
  }

  .sankyo-result-page .type-card {
    min-height: 386px;
    padding: 34px 20px;
  }

  .sankyo-result-page .result-intro .step-label::before,
  .sankyo-result-page .result-intro .step-label::after {
    width: 34px;
  }

  .sankyo-result-page .mirror-readings {
    padding-inline: 14px;
  }

  .sankyo-result-page .mirror-readings article {
    grid-template-columns: 54px 1fr;
    gap: 12px;
  }

  .sankyo-result-page .mirror-readings article > span {
    width: 48px;
    height: 48px;
  }

  .sankyo-result-page .trait-grid {
    grid-template-columns: 1fr;
  }

  .sankyo-result-page .trait-grid article {
    min-height: auto;
  }

  .sankyo-result-page .panel:has(#share-x) .actions {
    grid-template-columns: 1fr 1fr;
  }

  .sankyo-result-page .axis-meter {
    grid-template-columns: 42px 1fr 1fr 64px;
    gap: 8px;
    min-height: 116px;
  }

  .sankyo-result-page .axis-icon {
    width: 38px;
    height: 38px;
    font-size: 1.05rem;
  }

  .sankyo-result-page .axis-main {
    grid-column: 2 / -1;
    grid-row: 2;
  }

  .sankyo-result-page .axis-left,
  .sankyo-result-page .axis-right {
    font-size: 1.35rem;
  }

  .sankyo-result-page .axis-score {
    min-width: 58px;
    min-height: 40px;
  }
}

/* Result polish: quiet hierarchy and readable axis scores */
.sankyo-result-page {
  background:
    linear-gradient(180deg, rgba(4, 8, 24, .2), rgba(4, 8, 24, .94) 58%, #040817),
    url("../assets/result-ui/result-hero-frame.webp") center top / min(1180px, 145vw) auto no-repeat,
    #050817;
}

.sankyo-result-page .result-screen {
  padding-top: 20px;
}

.sankyo-result-page .wrap {
  width: min(100%, 780px);
}

.sankyo-result-page .result-intro {
  margin-bottom: 14px;
}

.sankyo-result-page .result-intro .step-label {
  font-size: .72rem;
  letter-spacing: .14em;
}

.sankyo-result-page .result-intro h1 {
  margin-top: 3px;
  font-size: clamp(1.7rem, 6vw, 2.65rem);
  line-height: 1.2;
}

.sankyo-result-page .panel {
  margin-top: 14px;
  border-radius: 12px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, .24);
}

.sankyo-result-page .type-card {
  min-height: 0;
  padding: clamp(30px, 7vw, 48px) clamp(20px, 6vw, 46px);
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(8, 13, 45, .56), rgba(5, 8, 28, .9)),
    url("../assets/result-ui/result-hero-frame.webp") center center / cover no-repeat,
    #071032;
}

.sankyo-result-page .result-eyebrow {
  margin-bottom: 12px;
  font-size: clamp(.86rem, 2.8vw, 1rem);
}

.sankyo-result-page .monshou {
  width: clamp(78px, 20vw, 108px);
  margin-bottom: 12px;
  padding: 5px;
}

.sankyo-result-page .type-name {
  font-size: clamp(2rem, 8vw, 3.45rem);
}

.sankyo-result-page .result-catch {
  max-width: 580px;
  margin-top: 10px;
  font-size: clamp(.95rem, 2.6vw, 1.08rem);
  line-height: 1.75;
}

.sankyo-result-page #mirror-desc {
  width: min(100%, 600px);
  margin-top: 4px;
  padding-top: 16px;
  border-top: 1px solid rgba(232, 189, 102, .3);
  color: rgba(255, 250, 234, .84);
  font-size: .92rem;
  font-weight: 500;
  line-height: 1.75;
}

.sankyo-result-page .result-tags {
  margin: 14px 0;
}

.sankyo-result-page .badge {
  min-width: 0;
  padding-inline: 14px;
  font-size: .74rem;
}

.sankyo-result-page .rationale-panel,
.sankyo-result-page .trait-panel,
.sankyo-result-page .today-panel {
  padding: clamp(24px, 5vw, 36px);
}

.sankyo-result-page .section-heading {
  max-width: 620px;
}

.sankyo-result-page .rationale-panel h2,
.sankyo-result-page .trait-panel h2,
.sankyo-result-page .today-panel h2 {
  margin-top: 3px;
  font-size: clamp(1.35rem, 5vw, 1.9rem);
}

.sankyo-result-page .mirror-readings {
  margin-top: 22px;
  padding: 0;
  border: 0;
  border-block: 1px solid rgba(116, 90, 52, .22);
  border-radius: 0;
  background: transparent;
}

.sankyo-result-page .mirror-readings article {
  grid-template-columns: 46px 1fr;
  gap: 13px;
  padding: 18px 0;
}

.sankyo-result-page .mirror-readings article > span {
  width: 42px;
  height: 42px;
  border-width: 1px;
  font-size: .95rem;
}

.sankyo-result-page .mirror-readings h3 {
  font-size: 1.05rem;
}

.sankyo-result-page .mirror-key,
.sankyo-result-page .mirror-readings p {
  line-height: 1.65;
}

.sankyo-result-page .synthesis {
  margin-top: 20px;
  padding: 18px;
  border-radius: 8px;
  background: rgba(255, 246, 220, .72);
}

.sankyo-result-page .trait-grid {
  gap: 10px;
  margin-top: 20px;
}

.sankyo-result-page .trait-grid article {
  min-height: 0;
  padding: 17px;
  border-radius: 8px;
  background: rgba(255, 250, 238, .96);
}

.sankyo-result-page .trait-grid h3 {
  margin-bottom: 6px;
  font-size: 1rem;
}

.sankyo-result-page .detail-analysis {
  margin-top: 24px;
  padding: 22px 0 0;
  border: 0;
  border-top: 1px solid rgba(232, 189, 102, .32);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.sankyo-result-page .detail-analysis summary {
  margin-bottom: 20px;
  font-size: clamp(1.25rem, 5vw, 1.7rem);
  text-align: left;
  text-shadow: none;
}

.sankyo-result-page .detail-analysis summary::before {
  display: inline;
  margin-right: 8px;
  font-size: .8rem;
}

.sankyo-result-page .detail-analysis .axis-grid {
  gap: 10px;
}

.sankyo-result-page .axis-meter {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px 14px;
  width: 100%;
  height: auto;
  min-height: 0;
  padding: 15px 16px 13px;
  overflow: visible;
  border-radius: 8px;
  background: rgba(7, 11, 36, .54);
}

.sankyo-result-page .axis-head {
  grid-column: 1;
  display: grid;
  grid-template-columns: minmax(42px, 1fr) auto minmax(42px, 1fr);
  align-items: end;
  gap: 8px;
  color: #fff7df;
  font-size: .88rem;
  font-weight: 800;
}

.sankyo-result-page .axis-head b {
  color: #e9c471;
  font-family: "Hiragino Mincho ProN", "Yu Mincho", serif;
  font-size: .92rem;
  text-align: center;
}

.sankyo-result-page .axis-head span:last-child {
  text-align: right;
}

.sankyo-result-page .axis-head span,
.sankyo-result-page .axis-head b,
.sankyo-result-page .axis-score span {
  float: none;
  padding: 0;
  line-height: 1.2;
}

.sankyo-result-page .axis-main {
  grid-column: 1;
  min-width: 0;
}

.sankyo-result-page .axis-track {
  height: 10px;
  background: rgba(18, 24, 56, .88);
  box-shadow: inset 0 0 7px rgba(173, 192, 255, .14);
}

.sankyo-result-page .axis-track::before {
  top: -5px;
  bottom: -5px;
  background: rgba(255, 242, 191, .8);
}

.sankyo-result-page .axis-track::after {
  display: none;
}

.sankyo-result-page .axis-track i {
  width: 17px;
  height: 17px;
}

.sankyo-result-page .axis-center {
  margin-top: 6px;
  color: rgba(255, 245, 204, .62);
  font-size: .62rem;
  font-weight: 700;
  text-align: center;
}

.sankyo-result-page .axis-score {
  grid-column: 2;
  grid-row: 1 / span 2;
  min-width: 72px;
  min-height: 58px;
  border-radius: 8px;
}

.sankyo-result-page .axis-score span {
  font-size: 1.55rem;
}

.sankyo-result-page .axis-score em {
  max-width: 68px;
  font-size: .64rem;
  letter-spacing: 0;
  text-align: center;
}

.sankyo-result-page .today-panel {
  margin-top: 14px;
}

.sankyo-result-page .today-panel .note {
  color: rgba(255, 248, 225, .68);
  font-size: .75rem;
}

.sankyo-result-page .mood-chips {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
  margin: 18px 0 10px;
  padding: 0;
  overflow: visible;
}

.sankyo-result-page .mood-chip {
  min-width: 0;
  min-height: 70px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 5px;
  padding: 8px 4px;
  border-radius: 8px;
  font-size: .72rem;
  line-height: 1.2;
  white-space: normal;
}

.sankyo-result-page .mood-chip::before {
  content: "○";
  display: block;
  color: #e9c36f;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.35rem;
  font-weight: 400;
  line-height: 1;
}

.sankyo-result-page .mood-chip[data-mood-label="前向き"]::before { content: "✦"; }
.sankyo-result-page .mood-chip[data-mood-label="普通"]::before { content: "−"; }
.sankyo-result-page .mood-chip[data-mood-label="少し疲れている"]::before { content: "☾"; }
.sankyo-result-page .mood-chip[data-mood-label="不安"]::before { content: "△"; }
.sankyo-result-page .mood-chip[data-mood-label="モヤモヤしている"]::before { content: "≋"; }
.sankyo-result-page .mood-chip[data-mood-label="誰かと話したい"]::before { content: "◌"; }
.sankyo-result-page .mood-chip[data-mood-label="静かに過ごしたい"]::before { content: "○"; }

.sankyo-result-page .mood-chip.is-selected {
  color: #24182a;
  border-color: #f0ca72;
  background: #f2cd72;
  box-shadow: 0 6px 16px rgba(0, 0, 0, .18);
}

.sankyo-result-page .mood-chip.is-selected::before {
  color: #24182a;
}

.sankyo-result-page .today-message {
  grid-template-columns: 30px 1fr;
  gap: 10px;
  margin: 18px 0 12px;
  padding: 16px 0;
  border: 0;
  border-block: 1px solid rgba(232, 189, 102, .3);
  border-radius: 0;
  background: transparent;
}

.sankyo-result-page .today-message > span {
  font-size: 1.35rem;
}

.sankyo-result-page .action-pair article,
.sankyo-result-page .focus-box {
  border-radius: 8px;
}

.sankyo-result-page .panel.share-panel:has(#share-x) {
  padding: 22px;
  text-align: center;
}

.sankyo-result-page .panel.share-panel:has(#share-x) h2 {
  margin-bottom: 14px;
  font-size: 1.35rem;
}

.sankyo-result-page .panel.share-panel:has(#share-x) .actions {
  margin-inline: auto;
}

.sankyo-result-page .result-support-panel {
  padding: 22px;
  color: rgba(255, 248, 228, .82);
  border: 1px solid rgba(232, 189, 102, .2);
  background: rgba(8, 12, 34, .72);
}

.sankyo-result-page .result-support-panel h2 {
  margin: 0 0 8px;
  color: #fff6da;
  font-size: 1.12rem;
}

.sankyo-result-page .result-support-panel p {
  font-size: .84rem;
  line-height: 1.7;
}

.sankyo-result-page .feedback {
  gap: 8px;
}

.sankyo-result-page .feedback-btn {
  color: #fff6df;
  border-color: rgba(232, 189, 102, .28);
  border-radius: 8px;
  background: rgba(255, 255, 255, .06);
}

.sankyo-result-page .feedback-btn:hover,
.sankyo-result-page .feedback-btn:focus-visible {
  color: #22182d;
  border-color: #e5ba64;
  background: #f5d783;
}

.sankyo-result-page .result-notice #delete-profile {
  width: auto;
  min-height: 42px;
  margin-top: 8px;
  padding: 8px 14px;
  color: rgba(255, 248, 228, .78);
  border-color: rgba(255, 255, 255, .24);
  background: transparent;
  font-size: .8rem;
}

@media (max-width: 620px) {
  .sankyo-result-page .result-intro .step-label::before,
  .sankyo-result-page .result-intro .step-label::after {
    width: 22px;
  }

  .sankyo-result-page .type-card {
    min-height: 0;
    padding: 28px 18px;
  }

  .sankyo-result-page .rationale-panel,
  .sankyo-result-page .trait-panel,
  .sankyo-result-page .today-panel {
    padding: 22px 18px;
  }

  .sankyo-result-page .mirror-readings article {
    grid-template-columns: 40px 1fr;
    gap: 10px;
  }

  .sankyo-result-page .mirror-readings article > span {
    width: 36px;
    height: 36px;
  }

  .sankyo-result-page .axis-meter {
    grid-template-columns: minmax(0, 1fr) 66px;
    gap: 8px 10px;
    min-height: 0;
    padding: 14px 12px 12px;
  }

  .sankyo-result-page .axis-head {
    font-size: .78rem;
  }

  .sankyo-result-page .axis-head b {
    font-size: .78rem;
  }

  .sankyo-result-page .axis-score {
    min-width: 64px;
    min-height: 54px;
  }

  .sankyo-result-page .mood-chips {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-right: 0;
    padding-right: 0;
  }

  .sankyo-result-page .mood-chip {
    min-height: 64px;
    font-size: .68rem;
  }

  .sankyo-result-page .feedback {
    grid-template-columns: 1fr 1fr;
  }
}
#loading-overlay { position: fixed; inset: 0; z-index: 50; display: flex; align-items: center; justify-content: center; background: rgba(5, 12, 32, .92); }
#loading-overlay[hidden] { display: none; }
.loading-inner { text-align: center; color: #f3ecd8; font-size: 15px; letter-spacing: .08em; }
.loading-ring { width: 54px; height: 54px; margin: 0 auto 18px; border-radius: 50%; border: 3px solid rgba(217, 184, 111, .25); border-top-color: #d9b86f; animation: sk-spin 1s linear infinite; }
@keyframes sk-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .loading-ring { animation: none; } }
