:root {
  --bg: #0b0a10;
  --paper: #ede3cf;
  --ink: #28231b;
  --cream: #f0e8d8;
  --muted: #9c95a6;
  --muted-light: #c0b8c7;
  --gold: #d4b474;
  --gold-bright: #f2dba9;
  --gold-dim: #9c7b48;
  --line: rgba(231, 211, 174, 0.15);
  --line-strong: rgba(231, 211, 174, 0.28);
  --serif: "Songti SC", "STSong", "Noto Serif SC", "Source Han Serif SC", "SimSun", serif;
  --sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 74% 16%, rgba(91, 68, 115, 0.16), transparent 28%),
    radial-gradient(circle at 18% 76%, rgba(100, 72, 48, 0.11), transparent 30%),
    var(--bg);
  color: var(--cream);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
}

button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--gold-bright);
  outline-offset: 4px;
}

::selection {
  color: #1a1711;
  background: var(--gold-bright);
}

[tabindex="-1"]:focus {
  outline: none;
}

.ambient {
  position: fixed;
  z-index: 0;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.aurora {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.5;
  animation: auroraDrift 16s ease-in-out infinite alternate;
}

.aurora-one {
  top: -20%;
  right: 2%;
  width: 50vw;
  height: 50vw;
  max-width: 720px;
  max-height: 720px;
  background: rgba(89, 57, 113, 0.22);
}

.aurora-two {
  bottom: -30%;
  left: -10%;
  width: 45vw;
  height: 45vw;
  max-width: 620px;
  max-height: 620px;
  background: rgba(111, 79, 45, 0.15);
  animation-delay: -7s;
}

.stars {
  position: absolute;
  inset: 0;
}

.star {
  position: absolute;
  width: var(--size, 2px);
  height: var(--size, 2px);
  border-radius: 50%;
  background: #f4e8cc;
  box-shadow: 0 0 8px rgba(244, 232, 204, 0.45);
  opacity: var(--opacity, 0.5);
  animation: twinkle var(--duration, 4s) ease-in-out var(--delay, 0s) infinite alternate;
}

.grain {
  position: absolute;
  inset: 0;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.82' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.75'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
}

.app {
  position: relative;
  z-index: 1;
  width: min(100%, 1440px);
  min-height: 100vh;
  margin: 0 auto;
  padding: 0 clamp(22px, 4.5vw, 72px);
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 94px;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--cream);
  text-decoration: none;
}

.brand-sigil {
  display: grid;
  width: 29px;
  height: 29px;
  place-items: center;
  border: 1px solid rgba(224, 193, 133, 0.46);
  border-radius: 50%;
  color: var(--gold-bright);
  font-size: 12px;
  transition: transform 0.45s var(--ease), border-color 0.3s ease;
}

.brand:hover .brand-sigil {
  transform: rotate(90deg);
  border-color: var(--gold-bright);
}

.brand-name {
  font-family: var(--serif);
  font-size: 17px;
  letter-spacing: 0.13em;
}

.brand-en {
  padding-left: 12px;
  border-left: 1px solid var(--line-strong);
  color: var(--muted);
  font-size: 8px;
  letter-spacing: 0.22em;
}

.top-note {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.14em;
}

.screen {
  display: none;
}

.screen.is-active {
  display: block;
  animation: screenIn 0.65s var(--ease) both;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  color: var(--gold);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

.eyebrow > span {
  display: inline-block;
  width: 28px;
  height: 1px;
  background: var(--gold);
}

.intro-screen {
  min-height: calc(100vh - 95px);
  padding: clamp(54px, 8vh, 100px) 0 68px;
}

.intro-screen.is-active {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(440px, 0.92fr);
  align-items: center;
  gap: clamp(28px, 5vw, 86px);
}

.intro-copy {
  position: relative;
  z-index: 2;
  padding-bottom: 8px;
}

.intro-copy .eyebrow {
  animation: fadeUp 0.8s var(--ease) 0.05s both;
}

.intro-copy h1 {
  margin: 26px 0 28px;
  font-family: var(--serif);
  font-size: clamp(52px, 6vw, 88px);
  font-weight: 500;
  letter-spacing: -0.055em;
  line-height: 1.08;
  text-wrap: balance;
  animation: fadeUp 0.9s var(--ease) 0.12s both;
}

.intro-copy h1 em {
  position: relative;
  color: var(--gold-bright);
  font-style: normal;
  white-space: nowrap;
}

.intro-copy h1 em::after {
  position: absolute;
  right: 1%;
  bottom: -9px;
  left: 3%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-dim) 18%, var(--gold-dim) 80%, transparent);
  content: "";
}

.lede {
  max-width: 560px;
  margin: 0;
  color: var(--muted-light);
  font-size: clamp(14px, 1.2vw, 16px);
  letter-spacing: 0.025em;
  line-height: 2;
  animation: fadeUp 0.9s var(--ease) 0.2s both;
}

.intro-actions {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 42px;
  animation: fadeUp 0.9s var(--ease) 0.28s both;
}

.primary-button {
  display: inline-flex;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 0 26px;
  border: 1px solid rgba(255, 247, 226, 0.45);
  border-radius: 2px;
  background: linear-gradient(135deg, #f0dfb5 0%, #d2b075 100%);
  box-shadow: 0 10px 30px rgba(147, 110, 54, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.5);
  color: #262018;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  transition: transform 0.3s var(--ease), box-shadow 0.3s ease, filter 0.3s ease;
}

.primary-button svg {
  width: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.4;
  transition: transform 0.3s var(--ease);
}

.primary-button:hover {
  filter: brightness(1.04);
  box-shadow: 0 15px 38px rgba(147, 110, 54, 0.27), inset 0 1px 0 rgba(255, 255, 255, 0.6);
  transform: translateY(-2px);
}

.primary-button:hover svg {
  transform: translateX(4px);
}

.primary-button:active {
  transform: translateY(0);
}

.time-note {
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.12em;
}

.archive-note {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 44px;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.07em;
  animation: fadeUp 0.9s var(--ease) 0.36s both;
}

.archive-note p {
  margin: 0;
}

.archive-note strong {
  color: var(--muted-light);
  font-weight: 500;
}

.avatar-stack {
  display: flex;
}

.avatar-stack span {
  display: grid;
  width: 26px;
  height: 26px;
  margin-left: -6px;
  place-items: center;
  border: 1px solid rgba(226, 208, 174, 0.2);
  border-radius: 50%;
  background: #1b1822;
  color: #b5a88e;
  font-family: var(--serif);
  font-size: 10px;
}

.avatar-stack span:first-child {
  margin-left: 0;
}

.oracle-stage {
  position: relative;
  display: grid;
  min-height: 640px;
  place-items: center;
  animation: fadeIn 1.1s ease 0.2s both;
}

.orbit {
  position: absolute;
  border: 1px solid rgba(220, 195, 149, 0.11);
  border-radius: 50%;
}

.orbit-outer {
  width: min(37vw, 510px);
  height: min(37vw, 510px);
  animation: slowSpin 60s linear infinite;
}

.orbit-inner {
  width: min(29vw, 400px);
  height: min(29vw, 400px);
  border-style: dashed;
  border-color: rgba(220, 195, 149, 0.08);
  animation: slowSpin 45s linear infinite reverse;
}

.orbit-node {
  position: absolute;
  z-index: 1;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 14px rgba(229, 195, 127, 0.7);
}

.node-one {
  top: 18%;
  right: 19%;
}

.node-two {
  bottom: 23%;
  left: 11%;
  width: 3px;
  height: 3px;
}

.node-three {
  top: 32%;
  left: 10%;
  width: 2px;
  height: 2px;
}

.tarot-wrap {
  position: relative;
  z-index: 3;
  animation: cardFloat 7s ease-in-out infinite;
}

.tarot-shadow {
  position: absolute;
  z-index: -1;
  inset: 30px -35px -35px 35px;
  background: radial-gradient(ellipse, rgba(211, 172, 101, 0.14), transparent 65%);
  filter: blur(30px);
}

.tarot-card {
  position: relative;
  width: clamp(270px, 23.5vw, 334px);
  aspect-ratio: 0.66;
  padding: 11px;
  border: 1px solid rgba(232, 207, 159, 0.38);
  border-radius: 3px;
  background:
    linear-gradient(145deg, rgba(39, 31, 56, 0.96), rgba(15, 13, 22, 0.99) 63%),
    #16131e;
  box-shadow:
    0 42px 90px rgba(0, 0, 0, 0.54),
    0 0 0 1px rgba(255, 255, 255, 0.025) inset,
    0 0 70px rgba(139, 103, 160, 0.08);
  transform: rotate(-2.5deg);
}

.tarot-card::before,
.tarot-card::after {
  position: absolute;
  width: 18px;
  height: 18px;
  border-color: rgba(232, 207, 159, 0.6);
  content: "";
}

.tarot-card::before {
  top: -5px;
  left: -5px;
  border-top: 1px solid;
  border-left: 1px solid;
}

.tarot-card::after {
  right: -5px;
  bottom: -5px;
  border-right: 1px solid;
  border-bottom: 1px solid;
}

.tarot-frame {
  display: flex;
  height: 100%;
  flex-direction: column;
  padding: 16px 17px 18px;
  border: 1px solid rgba(226, 201, 154, 0.19);
  background:
    radial-gradient(circle at 50% 30%, rgba(137, 104, 159, 0.14), transparent 45%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.018), transparent);
}

.card-topline {
  display: flex;
  justify-content: space-between;
  color: #a89b82;
  font-family: var(--serif);
  font-size: 7px;
  letter-spacing: 0.16em;
}

.card-sky {
  position: relative;
  display: grid;
  flex: 1;
  min-height: 0;
  margin-top: 10px;
  place-items: center;
  overflow: hidden;
}

.card-sky::before {
  position: absolute;
  width: 76%;
  aspect-ratio: 1;
  border: 1px solid rgba(215, 186, 129, 0.14);
  border-radius: 50%;
  content: "";
}

.card-sky::after {
  position: absolute;
  width: 64%;
  aspect-ratio: 1;
  border: 1px dashed rgba(215, 186, 129, 0.09);
  border-radius: 50%;
  content: "";
}

.card-moon {
  position: relative;
  z-index: 2;
  width: 45%;
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle at 36% 31%, rgba(255, 250, 230, 0.94), transparent 16%),
    radial-gradient(circle at 66% 68%, rgba(162, 129, 79, 0.35), transparent 17%),
    radial-gradient(circle at 40% 43%, #f2e3bf, #d1b078 57%, #9a7744 100%);
  box-shadow:
    inset -22px -16px 35px rgba(62, 44, 27, 0.25),
    0 0 62px rgba(225, 192, 125, 0.24);
}

.card-moon::after {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255, 248, 224, 0.25);
  border-radius: inherit;
  content: "";
}

.constellation {
  position: absolute;
  z-index: 3;
  inset: 6% 0 0;
  width: 100%;
  height: 100%;
}

.constellation path {
  stroke: rgba(231, 208, 163, 0.5);
  stroke-width: 0.65;
}

.constellation circle {
  fill: #e8d3a7;
  filter: drop-shadow(0 0 4px rgba(246, 224, 181, 0.8));
}

.star-mark {
  position: absolute;
  z-index: 4;
  color: var(--gold-bright);
  text-shadow: 0 0 12px rgba(244, 220, 171, 0.75);
}

.star-mark-one {
  top: 16%;
  left: 12%;
  font-size: 9px;
}

.star-mark-two {
  right: 10%;
  bottom: 15%;
  font-size: 11px;
}

.star-mark-three {
  top: 8%;
  right: 24%;
  font-size: 18px;
}

.card-title {
  position: relative;
  z-index: 2;
  padding: 12px 0 8px;
  color: #e8dac0;
  font-family: var(--serif);
  font-size: clamp(24px, 2.3vw, 34px);
  letter-spacing: 0.02em;
  line-height: 0.88;
  text-align: center;
}

.card-title i {
  color: var(--gold);
  font-style: italic;
}

.card-divider {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 0;
  color: var(--gold);
  font-size: 7px;
}

.card-divider span {
  height: 1px;
  flex: 1;
  background: rgba(212, 180, 116, 0.26);
}

.card-caption {
  margin: 0;
  color: #998b73;
  font-size: 8px;
  letter-spacing: 0.28em;
  text-align: center;
}

.floating-tag {
  position: absolute;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: rgba(19, 16, 26, 0.72);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
  color: #b8ab92;
  font-size: 9px;
  letter-spacing: 0.12em;
  backdrop-filter: blur(12px);
}

.tag-left {
  bottom: 16%;
  left: 1%;
  animation: tagFloat 6s ease-in-out infinite;
}

.tag-right {
  top: 19%;
  right: 1%;
  animation: tagFloat 6s ease-in-out 1.6s infinite;
}

.tag-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #d1b77e;
  box-shadow: 0 0 9px rgba(209, 183, 126, 0.8);
}

.tag-icon {
  color: var(--gold);
  font-size: 14px;
}

/* Quiz */
.quiz-screen {
  padding: clamp(36px, 6vh, 72px) 0 34px;
}

.quiz-screen.is-active {
  min-height: calc(100vh - 95px);
}

.quiz-shell {
  display: flex;
  width: min(100%, 1220px);
  min-height: calc(100vh - 205px);
  margin: 0 auto;
  flex-direction: column;
}

.quiz-top {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr) 88px;
  align-items: center;
  gap: clamp(24px, 4vw, 64px);
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

.back-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 0;
  border: 0;
  background: none;
  color: var(--muted);
  cursor: pointer;
  font-size: 10px;
  letter-spacing: 0.1em;
  transition: color 0.25s ease;
}

.back-button svg {
  width: 17px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.3;
  transition: transform 0.25s var(--ease);
}

.back-button:hover {
  color: var(--cream);
}

.back-button:hover svg {
  transform: translateX(-3px);
}

.back-button:disabled {
  cursor: default;
  opacity: 0.28;
}

.progress-meta {
  display: flex;
  justify-content: space-between;
  margin-bottom: 9px;
  color: var(--muted);
  font-size: 9px;
  letter-spacing: 0.14em;
}

.progress-track {
  position: relative;
  height: 2px;
  overflow: hidden;
  background: rgba(226, 205, 168, 0.1);
}

.progress-fill {
  width: 12.5%;
  height: 100%;
  background: linear-gradient(90deg, var(--gold-dim), var(--gold-bright));
  box-shadow: 0 0 14px rgba(226, 194, 132, 0.4);
  transition: width 0.55s var(--ease);
}

.question-index {
  display: flex;
  align-items: baseline;
  justify-content: flex-end;
  gap: 5px;
  color: #716a79;
  font-family: var(--serif);
  font-size: 12px;
}

.question-index span:first-child {
  color: var(--gold-bright);
  font-size: 22px;
}

.question-index i {
  font-style: normal;
  opacity: 0.5;
}

.question-layout {
  display: grid;
  flex: 1;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: clamp(28px, 6vw, 92px);
  padding: clamp(42px, 7vh, 78px) 0 38px;
}

.question-aside {
  display: flex;
  align-items: center;
  flex-direction: column;
  padding-top: 8px;
}

.question-aside p {
  margin: 0;
  color: #7e7588;
  font-size: 7px;
  letter-spacing: 0.23em;
  line-height: 1.8;
  text-align: center;
}

.aside-line {
  width: 1px;
  height: 72px;
  margin: 21px 0;
  background: linear-gradient(var(--line-strong), transparent);
}

.aside-number {
  color: rgba(226, 207, 170, 0.13);
  font-family: var(--serif);
  font-size: 58px;
  line-height: 1;
  writing-mode: vertical-rl;
}

.aside-star {
  margin-top: 22px;
  color: rgba(212, 180, 116, 0.4);
  font-size: 9px;
}

.question-content {
  width: min(100%, 1000px);
}

.question-content.is-changing {
  animation: questionIn 0.45s var(--ease) both;
}

.question-kicker {
  margin: 0 0 17px;
  color: var(--gold);
  font-size: 9px;
  letter-spacing: 0.28em;
}

.question-title {
  max-width: 1000px;
  margin: 0;
  color: var(--cream);
  font-family: var(--serif);
  font-size: clamp(30px, 3.35vw, 47px);
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 1.35;
  text-wrap: balance;
}

.options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: clamp(34px, 5vh, 52px);
}

.option {
  position: relative;
  display: grid;
  min-height: 92px;
  grid-template-columns: 30px minmax(0, 1fr) 22px;
  align-items: center;
  gap: 15px;
  padding: 19px 19px 19px 21px;
  overflow: hidden;
  border: 1px solid rgba(225, 204, 166, 0.13);
  border-radius: 2px;
  background: linear-gradient(130deg, rgba(255, 255, 255, 0.026), rgba(255, 255, 255, 0.008));
  color: #d5cdd7;
  cursor: pointer;
  text-align: left;
  transition:
    border-color 0.3s ease,
    background 0.3s ease,
    transform 0.3s var(--ease),
    color 0.3s ease;
}

.option::after {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 2px;
  background: var(--gold);
  content: "";
  opacity: 0;
  transform: scaleY(0.35);
  transition: opacity 0.3s ease, transform 0.3s var(--ease);
}

.option:hover {
  border-color: rgba(225, 196, 139, 0.36);
  background: linear-gradient(130deg, rgba(227, 193, 130, 0.075), rgba(255, 255, 255, 0.016));
  color: var(--cream);
  transform: translateY(-2px);
}

.option:hover::after,
.option.is-selected::after {
  opacity: 1;
  transform: scaleY(1);
}

.option.is-selected {
  border-color: rgba(235, 207, 151, 0.55);
  background: linear-gradient(130deg, rgba(226, 190, 121, 0.13), rgba(255, 255, 255, 0.018));
  color: #fff7e6;
}

.option:disabled {
  cursor: default;
}

.option-number {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 1px solid rgba(226, 203, 162, 0.18);
  border-radius: 50%;
  color: #8e8498;
  font-family: var(--serif);
  font-size: 9px;
  transition: color 0.3s ease, border-color 0.3s ease;
}

.option:hover .option-number,
.option.is-selected .option-number {
  border-color: rgba(239, 214, 163, 0.42);
  color: var(--gold-bright);
}

.option-text {
  font-size: 13px;
  letter-spacing: 0.025em;
  line-height: 1.65;
}

.option-arrow {
  color: rgba(229, 206, 165, 0.33);
  font-size: 15px;
  opacity: 0;
  transform: translateX(-5px);
  transition: opacity 0.3s ease, transform 0.3s var(--ease);
}

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

.quiz-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.quiz-footer p,
.quiz-footer span {
  margin: 0;
  color: #746d7d;
  font-size: 9px;
  letter-spacing: 0.09em;
}

/* Result */
.result-screen {
  padding: clamp(42px, 6.5vh, 76px) 0 80px;
}

.result-heading {
  max-width: 760px;
  margin: 0 auto clamp(38px, 6vh, 60px);
  text-align: center;
}

.result-heading .eyebrow {
  justify-content: center;
}

.result-heading h2 {
  margin: 22px 0 10px;
  font-family: var(--serif);
  font-size: clamp(34px, 4vw, 54px);
  font-weight: 400;
  letter-spacing: -0.035em;
}

.heading-dot {
  color: var(--gold);
}

.heading-result {
  color: var(--gold-bright);
  white-space: nowrap;
}

.result-heading > p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.08em;
}

.result-layout {
  display: grid;
  width: min(100%, 1160px);
  grid-template-columns: minmax(340px, 440px) minmax(0, 1fr);
  align-items: start;
  gap: clamp(42px, 6vw, 88px);
  margin: 0 auto;
}

.profession-card {
  position: relative;
  padding: 10px;
  border: 1px solid rgba(237, 217, 177, 0.18);
  border-radius: 3px;
  background: linear-gradient(145deg, #ece0c9, #d9c8aa);
  box-shadow:
    0 40px 90px rgba(0, 0, 0, 0.45),
    0 0 90px rgba(172, 129, 63, 0.08);
  color: var(--ink);
  transform: rotate(-0.8deg);
  animation: resultCardIn 0.95s var(--ease) 0.08s both;
}

.profession-card::before,
.profession-card::after {
  position: absolute;
  width: 18px;
  height: 18px;
  border-color: rgba(66, 53, 34, 0.4);
  content: "";
}

.profession-card::before {
  top: -5px;
  left: -5px;
  border-top: 1px solid;
  border-left: 1px solid;
}

.profession-card::after {
  right: -5px;
  bottom: -5px;
  border-right: 1px solid;
  border-bottom: 1px solid;
}

.profession-card-inner {
  position: relative;
  min-height: 610px;
  padding: 21px 22px 18px;
  border: 1px solid rgba(66, 53, 34, 0.2);
  background:
    radial-gradient(circle at 50% 29%, rgba(255, 250, 239, 0.68), transparent 31%),
    linear-gradient(160deg, rgba(255, 255, 255, 0.19), transparent 60%);
}

.profession-card-inner::before {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.75' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.45'/%3E%3C/svg%3E");
  content: "";
  mix-blend-mode: multiply;
  opacity: 0.045;
  pointer-events: none;
}

.card-meta {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  padding-bottom: 11px;
  border-bottom: 1px solid rgba(67, 54, 34, 0.2);
  color: rgba(47, 40, 29, 0.65);
  font-size: 6.5px;
  letter-spacing: 0.16em;
}

.profession-visual {
  position: relative;
  display: grid;
  height: 246px;
  place-items: center;
}

.visual-ring {
  position: absolute;
  border: 1px solid rgba(62, 48, 29, 0.18);
  border-radius: 50%;
}

.ring-one {
  width: 205px;
  height: 205px;
}

.ring-two {
  width: 169px;
  height: 169px;
  border-style: dashed;
  opacity: 0.7;
}

.visual-star {
  position: absolute;
  color: rgba(73, 56, 32, 0.42);
  font-size: 12px;
}

.star-a {
  top: 21%;
  right: 18%;
}

.star-b {
  bottom: 21%;
  left: 18%;
  font-size: 9px;
}

.profession-glyph {
  display: grid;
  width: 132px;
  height: 132px;
  place-items: center;
  border: 1px solid rgba(51, 40, 24, 0.35);
  border-radius: 50%;
  background:
    radial-gradient(circle at 37% 32%, rgba(255, 250, 237, 0.88), transparent 42%),
    rgba(211, 191, 156, 0.42);
  box-shadow: inset 0 0 30px rgba(94, 70, 38, 0.08), 0 8px 24px rgba(84, 62, 32, 0.08);
  color: #393024;
  font-family: var(--serif);
  font-size: 64px;
  line-height: 1;
}

.profession-era {
  position: absolute;
  bottom: 4px;
  margin: 0;
  color: rgba(45, 37, 25, 0.52);
  font-size: 7px;
  letter-spacing: 0.18em;
}

.profession-name-wrap {
  position: relative;
  z-index: 1;
  text-align: center;
}

.profession-en {
  margin: 0 0 7px;
  color: rgba(61, 48, 30, 0.56);
  font-size: 7px;
  letter-spacing: 0.2em;
}

.profession-name-wrap h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: 48px;
  font-weight: 500;
  letter-spacing: 0.06em;
  line-height: 1.2;
}

.profession-subtitle {
  max-width: 310px;
  margin: 11px auto 0;
  color: rgba(45, 37, 25, 0.7);
  font-size: 10px;
  letter-spacing: 0.05em;
  line-height: 1.75;
}

.keyword-row {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 7px;
  margin-top: 20px;
}

.keyword {
  padding: 6px 12px;
  border: 1px solid rgba(57, 45, 28, 0.25);
  border-radius: 999px;
  color: rgba(41, 34, 23, 0.78);
  font-size: 8px;
  letter-spacing: 0.1em;
}

.profession-card-footer {
  position: absolute;
  right: 22px;
  bottom: 18px;
  left: 22px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding-top: 12px;
  border-top: 1px solid rgba(67, 54, 34, 0.18);
  color: rgba(47, 40, 29, 0.45);
  font-size: 6px;
  letter-spacing: 0.16em;
}

.profession-card-footer span:nth-child(2) {
  color: rgba(64, 50, 29, 0.55);
  font-size: 7px;
}

.profession-card-footer span:last-child {
  margin-left: auto;
}

.result-details {
  padding-top: 4px;
  animation: fadeUp 0.85s var(--ease) 0.28s both;
}

.result-quote {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 7px;
  margin: 0 0 23px;
}

.result-quote > span {
  color: var(--gold-dim);
  font-family: var(--serif);
  font-size: 45px;
  line-height: 0.9;
}

.result-quote p {
  margin: 0;
  color: #e3d7c2;
  font-family: var(--serif);
  font-size: clamp(21px, 2.1vw, 28px);
  letter-spacing: 0.015em;
  line-height: 1.55;
}

.result-description {
  margin: 0;
  color: #a9a1b1;
  font-size: 12px;
  letter-spacing: 0.035em;
  line-height: 1.95;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 28px;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.stat-item {
  display: flex;
  min-height: 78px;
  flex-direction: column;
  justify-content: center;
  gap: 7px;
  padding: 13px 18px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.stat-item span {
  color: #766f80;
  font-size: 8px;
  letter-spacing: 0.16em;
}

.stat-item strong {
  color: #d6c7ad;
  font-family: var(--serif);
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.07em;
}

.memory-fragment {
  position: relative;
  margin-top: 22px;
  padding: 18px 20px 18px 24px;
  border-left: 1px solid rgba(212, 180, 116, 0.42);
  background: linear-gradient(90deg, rgba(212, 180, 116, 0.055), transparent 78%);
}

.memory-label {
  color: var(--gold-dim);
  font-size: 8px;
  letter-spacing: 0.2em;
}

.memory-fragment p {
  margin: 8px 0 0;
  color: #aea5b5;
  font-family: var(--serif);
  font-size: 12px;
  letter-spacing: 0.02em;
  line-height: 1.85;
}

.result-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 27px;
}

.result-actions .primary-button {
  min-height: 50px;
  padding: 0 22px;
}

.ghost-button {
  min-height: 50px;
  padding: 0 21px;
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  background: transparent;
  color: #b6adbd;
  cursor: pointer;
  font-size: 11px;
  letter-spacing: 0.1em;
  transition: border-color 0.25s ease, color 0.25s ease, background 0.25s ease;
}

.ghost-button:hover {
  border-color: rgba(226, 203, 162, 0.48);
  background: rgba(255, 255, 255, 0.025);
  color: var(--cream);
}

.toast {
  position: fixed;
  z-index: 20;
  bottom: 28px;
  left: 50%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 18px;
  border: 1px solid rgba(225, 198, 141, 0.34);
  border-radius: 2px;
  background: rgba(23, 20, 30, 0.92);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
  color: #e4d8c2;
  font-size: 11px;
  letter-spacing: 0.08em;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 14px);
  transition: opacity 0.3s ease, transform 0.4s var(--ease);
  backdrop-filter: blur(16px);
}

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

.toast-star {
  color: var(--gold);
  font-size: 9px;
}

.noscript-note {
  position: fixed;
  z-index: 99;
  right: 20px;
  bottom: 20px;
  left: 20px;
  margin: 0;
  padding: 14px;
  background: #f0dfb5;
  color: #231e16;
  font-size: 13px;
  text-align: center;
}

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

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@keyframes resultCardIn {
  from {
    opacity: 0;
    transform: translateY(24px) rotate(-2deg);
  }
  to {
    opacity: 1;
    transform: translateY(0) rotate(-0.8deg);
  }
}

@keyframes cardFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-13px);
  }
}

@keyframes tagFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-7px);
  }
}

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

@keyframes twinkle {
  from {
    opacity: calc(var(--opacity, 0.5) * 0.3);
  }
  to {
    opacity: var(--opacity, 0.5);
  }
}

@keyframes auroraDrift {
  from {
    transform: translate3d(-2%, -1%, 0) scale(0.96);
  }
  to {
    transform: translate3d(3%, 2%, 0) scale(1.05);
  }
}

@media (max-width: 1120px) {
  .intro-screen.is-active {
    grid-template-columns: minmax(0, 1.1fr) minmax(360px, 0.9fr);
  }

  .oracle-stage {
    min-height: 560px;
  }

  .orbit-outer {
    width: 390px;
    height: 390px;
  }

  .orbit-inner {
    width: 310px;
    height: 310px;
  }

  .floating-tag {
    display: none;
  }

  .result-layout {
    grid-template-columns: minmax(320px, 400px) minmax(0, 1fr);
    gap: 52px;
  }

  .profession-card-inner {
    min-height: 590px;
  }
}

@media (max-width: 860px) {
  .topbar {
    min-height: 78px;
  }

  .brand-en,
  .top-note {
    display: none;
  }

  .intro-screen.is-active {
    display: block;
    min-height: 0;
    padding-top: 54px;
  }

  .intro-copy h1 {
    font-size: clamp(45px, 11vw, 70px);
  }

  .oracle-stage {
    min-height: 540px;
    margin-top: 34px;
  }

  .tarot-card {
    width: min(72vw, 310px);
  }

  .orbit-outer {
    width: min(88vw, 480px);
    height: min(88vw, 480px);
  }

  .orbit-inner {
    width: min(70vw, 380px);
    height: min(70vw, 380px);
  }

  .quiz-top {
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 20px;
  }

  .back-button span {
    display: none;
  }

  .question-layout {
    display: block;
    padding-top: 45px;
  }

  .question-aside {
    display: none;
  }

  .result-layout {
    grid-template-columns: minmax(0, 440px);
    justify-content: center;
  }

  .result-details {
    padding-top: 8px;
  }
}

@media (max-width: 620px) {
  .app {
    padding: 0 19px;
  }

  .topbar {
    min-height: 70px;
  }

  .brand-name {
    font-size: 15px;
  }

  .intro-screen {
    padding-top: 42px;
  }

  .intro-screen.is-active {
    padding-bottom: 38px;
  }

  .intro-copy h1 {
    margin: 21px 0 22px;
    font-size: clamp(41px, 12.4vw, 60px);
    line-height: 1.15;
  }

  .intro-copy h1 em {
    white-space: normal;
  }

  .lede {
    font-size: 13px;
    line-height: 1.9;
  }

  .intro-actions {
    align-items: flex-start;
    flex-direction: column;
    gap: 13px;
    margin-top: 31px;
  }

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

  .archive-note {
    margin-top: 30px;
  }

  .oracle-stage {
    min-height: 465px;
    margin-top: 18px;
  }

  .tarot-card {
    width: min(72vw, 278px);
  }

  .card-title {
    font-size: 27px;
  }

  .orbit-outer {
    width: min(98vw, 410px);
    height: min(98vw, 410px);
  }

  .orbit-inner {
    width: min(76vw, 320px);
    height: min(76vw, 320px);
  }

  .quiz-screen {
    padding-top: 30px;
  }

  .quiz-top {
    gap: 13px;
  }

  .progress-meta {
    font-size: 8px;
  }

  .question-index {
    font-size: 10px;
  }

  .question-index span:first-child {
    font-size: 18px;
  }

  .question-layout {
    padding: 35px 0 30px;
  }

  .question-title {
    font-size: clamp(27px, 7.8vw, 36px);
    line-height: 1.4;
  }

  .options {
    grid-template-columns: 1fr;
    gap: 9px;
    margin-top: 29px;
  }

  .option {
    min-height: 78px;
    padding: 16px 15px 16px 17px;
  }

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

  .quiz-footer {
    justify-content: center;
  }

  .quiz-footer span {
    display: none;
  }

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

  .result-heading h2 {
    font-size: 34px;
  }

  .result-heading > p:last-child {
    line-height: 1.8;
  }

  .profession-card {
    transform: rotate(0);
  }

  .profession-card-inner {
    min-height: 570px;
    padding: 18px 17px 17px;
  }

  .profession-visual {
    height: 225px;
  }

  .ring-one {
    width: 185px;
    height: 185px;
  }

  .ring-two {
    width: 153px;
    height: 153px;
  }

  .profession-glyph {
    width: 120px;
    height: 120px;
    font-size: 58px;
  }

  .profession-name-wrap h3 {
    font-size: 43px;
  }

  .profession-card-footer {
    right: 17px;
    bottom: 17px;
    left: 17px;
  }

  .result-quote {
    grid-template-columns: 18px minmax(0, 1fr);
  }

  .result-quote p {
    font-size: 21px;
  }

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

  .stat-item {
    min-height: 65px;
  }

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

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

  .toast {
    right: 19px;
    bottom: 19px;
    left: 19px;
    justify-content: center;
    transform: translateY(14px);
  }

  .toast.is-visible {
    transform: translateY(0);
  }
}

@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;
  }
}
