:root {
  color-scheme: light;
  --ink: #171827;
  --muted: #6e7080;
  --line: #e8e4dc;
  --panel: #ffffff;
  --soft: #f7f3ea;
  --page: #f6d07f;
  --navy: #5a4a78;
  --navy-deep: #322943;
  --slate: #4f6b75;
  --gold: #f6c65b;
  --green: #33856f;
  --jade: #83c9b9;
  --sky: #8fd3ee;
  --lime: #cde977;
  --rose: #f77586;
  --card-blue: #e9f7fb;
  --card-green: #f0f8d5;
  --card-yellow: #fff0b9;
  --card-rose: #ffe2e8;
  --shadow: 0 24px 54px rgba(37, 28, 48, 0.14);
  --shadow-soft: 0 14px 34px rgba(37, 28, 48, 0.1);
  font-family:
    Pretendard, "Noto Sans KR", Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.48) 0 1px, transparent 1px 84px),
    linear-gradient(180deg, #fffdf3 0, var(--page) 440px, #f3f1eb 100%);
  background-size: 84px 84px, auto;
  color: var(--ink);
  font-weight: 720;
  animation: pageDrift 18s ease-in-out infinite alternate;
}

a {
  color: inherit;
}

h1,
h2,
h3,
p,
strong,
small,
span,
button,
a {
  word-break: keep-all;
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  width: min(1180px, calc(100% - 72px));
  min-height: 70px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 0 auto;
  border-bottom: 1px solid rgba(84, 89, 112, 0.14);
  background: rgba(251, 247, 232, 0.88);
  backdrop-filter: blur(16px);
}

.brand,
.nav-links {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.brand {
  min-width: 0;
  color: var(--ink);
  font-weight: 950;
  text-decoration: none;
}

.brand span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.brand__mark {
  display: grid;
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 8px;
  background: var(--navy-deep);
  color: #fff;
  font-size: 0.76rem;
  letter-spacing: 0;
  box-shadow: 0 10px 22px rgba(57, 66, 85, 0.16);
}

.nav-links {
  gap: 18px;
}

.nav-links a {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 850;
  text-decoration: none;
  white-space: nowrap;
}

.nav-links a:hover {
  color: var(--navy);
}

.today-chip {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  border-radius: 8px;
  padding: 0 14px;
  background: #fff;
  color: var(--navy-deep);
  font-size: 0.82rem;
  font-weight: 950;
  white-space: nowrap;
  box-shadow: inset 0 0 0 1px var(--line);
}

.app-shell {
  width: min(1180px, calc(100% - 72px));
  margin: 0 auto;
  padding: 22px 0 72px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.16fr) minmax(340px, 0.84fr);
  gap: 16px;
  align-items: stretch;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(225, 242, 236, 0.78)),
    var(--panel);
  color: var(--ink);
  overflow: hidden;
  box-shadow: var(--shadow);
  transform: translateZ(0);
}

.hero__content {
  position: relative;
  z-index: 1;
  padding: 26px;
}

.hero__content::before {
  content: "";
  position: absolute;
  inset: 36px 34px auto auto;
  width: 96px;
  height: 96px;
  border: 1px solid rgba(120, 182, 172, 0.26);
  border-radius: 8px;
  transform: rotate(8deg);
  pointer-events: none;
  animation: softTile 9s ease-in-out infinite;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 950;
  letter-spacing: 0;
}

.hero h1 {
  max-width: 780px;
  margin: 0;
  font-size: 2.35rem;
  line-height: 1.12;
  letter-spacing: 0;
}

.hero__lead {
  max-width: 760px;
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.96rem;
  font-weight: 760;
  line-height: 1.55;
}

.fortune-form {
  position: relative;
  z-index: 2;
  margin-top: 14px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 0.82fr;
  gap: 12px;
}

.fortune-form label {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.fortune-form label span {
  color: var(--navy-deep);
  font-size: 0.84rem;
  font-weight: 950;
}

.fortune-form input,
.fortune-form select {
  width: 100%;
  min-height: 48px;
  border: 1px solid #dfddd2;
  border-radius: 8px;
  padding: 0 16px;
  background: #fff;
  color: var(--ink);
  font-weight: 850;
  outline: none;
}

.fortune-form input:focus,
.fortune-form select:focus {
  border-color: var(--sky);
  box-shadow: 0 0 0 4px rgba(158, 220, 244, 0.24);
}

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

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 8px;
  padding: 0 22px;
  font-weight: 950;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background-color 180ms ease;
}

.button--primary {
  background: var(--navy-deep);
  color: #fff;
  box-shadow: 0 12px 24px rgba(57, 66, 85, 0.2);
}

.button--ghost {
  background: #fff;
  color: var(--navy-deep);
  box-shadow: inset 0 0 0 1px var(--line);
}

.button:hover {
  transform: translateY(-2px);
}

.hero__visual {
  display: grid;
  align-items: center;
  min-height: 100%;
  padding: 16px 16px 16px 0;
}

.dashboard-preview {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  width: 100%;
  gap: 10px;
  align-content: stretch;
  animation: previewFloat 6s ease-in-out infinite;
}

.preview-card,
.mini-facts {
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow-soft);
  transition:
    transform 220ms ease,
    box-shadow 220ms ease;
}

.preview-card {
  position: relative;
  min-height: auto;
  padding: 14px;
  overflow: hidden;
}

.preview-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 0 38%, rgba(255, 255, 255, 0.46) 48%, transparent 58% 100%);
  transform: translateX(-120%);
  animation: cardSheen 5.5s ease-in-out infinite;
  pointer-events: none;
}

.preview-card:hover,
.mini-facts:hover,
.summary-card:hover,
.fortune-metrics article:hover,
.dense-board article:hover,
.pillar-grid article:hover,
.zodiac-grid article:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 38px rgba(76, 82, 105, 0.14);
}

.preview-card--score {
  display: flex;
  min-height: 82px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.preview-card--score span,
.mini-facts article {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 950;
}

.preview-card--score strong {
  display: block;
  margin-top: 8px;
  color: var(--navy-deep);
  font-size: 2.2rem;
  line-height: 1;
}

.score-donut {
  --donut-score: 76%;
  flex: 0 0 auto;
  width: 58px;
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, #fff 0 48%, transparent 49%),
    conic-gradient(var(--sky) 0 var(--donut-score), var(--gold) var(--donut-score) 82%, #dadce8 82% 100%);
  box-shadow: inset 0 0 0 10px rgba(125, 131, 157, 0.09);
  animation: donutBreathe 3.6s ease-in-out infinite;
}

.preview-card--chart {
  position: relative;
  background:
    linear-gradient(90deg, rgba(125, 131, 157, 0.1) 0 1px, transparent 1px 16.66%),
    #fff;
}

.preview-card--chart::before {
  content: "";
  position: absolute;
  right: 24px;
  bottom: 52px;
  left: 24px;
  height: 56px;
  border-top: 4px solid rgba(158, 220, 244, 0.9);
  border-radius: 50%;
  transform: rotate(-8deg);
  transform-origin: center;
  animation: waveTravel 4.8s ease-in-out infinite;
}

.preview-card--chart::after {
  content: "";
  position: absolute;
  width: 12px;
  height: 12px;
  right: 60px;
  top: 46px;
  border-radius: 50%;
  background: #fff;
  box-shadow:
    0 0 0 6px rgba(158, 220, 244, 0.28),
    0 14px 20px rgba(76, 82, 105, 0.12);
  animation: dotGlide 4.8s ease-in-out infinite;
}

.chart-line {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  align-items: end;
  height: 74px;
  gap: 12px;
  padding-top: 12px;
}

.chart-line span {
  display: block;
  border-radius: 999px 999px 0 0;
  background: #e3e4ec;
  transform-origin: bottom;
  animation: barPulse 3.4s ease-in-out infinite;
}

.chart-line span:nth-child(1) {
  height: 42%;
}

.chart-line span:nth-child(2) {
  height: 62%;
  background: var(--sky);
  animation-delay: 0.2s;
}

.chart-line span:nth-child(3) {
  height: 48%;
  animation-delay: 0.4s;
}

.chart-line span:nth-child(4) {
  height: 74%;
  background: var(--lime);
  animation-delay: 0.6s;
}

.chart-line span:nth-child(5) {
  height: 56%;
  background: #f3e29b;
  animation-delay: 0.8s;
}

.chart-line span:nth-child(6) {
  height: 82%;
  background: var(--sky);
  animation-delay: 1s;
}

.chart-note {
  margin-top: 8px;
  color: var(--navy);
  font-weight: 950;
}

.mini-facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 10px;
}

.mini-facts article {
  display: flex;
  min-height: 38px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-radius: 8px;
  padding: 0 12px;
  background: #f7f6f0;
  transition:
    transform 180ms ease,
    background-color 180ms ease;
}

.mini-facts article:hover {
  background: #eef8fb;
  transform: translateX(3px);
}

.mini-facts span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 900;
}

.mini-facts strong {
  text-align: right;
  color: var(--navy-deep);
  font-size: 1rem;
}

.quick-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 16px 0 10px;
  padding: 12px 16px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 16px 30px rgba(20, 29, 54, 0.1);
}

.quick-strip span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 950;
}

.quick-strip button {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 16px;
  background: #fff;
  color: var(--navy);
  font-weight: 950;
  transition:
    transform 180ms ease,
    background-color 180ms ease,
    border-color 180ms ease;
}

.quick-strip button.is-active,
.quick-strip button:hover {
  border-color: var(--navy);
  background: var(--navy);
  color: #fff;
  transform: translateY(-1px);
}

.reading-nav {
  position: sticky;
  top: 76px;
  z-index: 20;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin: 0 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.76);
  border-radius: 8px;
  padding: 8px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 12px 28px rgba(76, 82, 105, 0.08);
  backdrop-filter: blur(12px);
}

.reading-nav a {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  border-radius: 7px;
  padding: 0 10px;
  color: var(--navy-deep);
  font-size: 0.84rem;
  font-weight: 950;
  text-align: center;
  text-decoration: none;
  transition:
    background-color 180ms ease,
    color 180ms ease,
    transform 180ms ease;
}

.reading-nav a:hover {
  background: var(--navy-deep);
  color: #fff;
  transform: translateY(-1px);
}

.section-heading > span {
  display: inline-flex;
  flex: 0 0 auto;
  min-height: 34px;
  align-items: center;
  border-radius: 999px;
  padding: 0 12px;
  background: #f7f6f0;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 950;
  white-space: nowrap;
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-bottom: 18px;
}

.summary-card,
.panel,
.side-panel,
.zodiac-panel,
.related-panel,
.faq {
  border-radius: 3px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.summary-card {
  min-height: 116px;
  padding: 18px;
  border-left: 6px solid var(--sky);
  transition:
    transform 220ms ease,
    box-shadow 220ms ease;
}

.summary-card span {
  display: block;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 950;
}

.summary-card strong {
  display: block;
  margin-top: 12px;
  color: var(--navy-deep);
  font-size: 1.7rem;
  line-height: 1;
  overflow-wrap: anywhere;
}

.summary-card small {
  display: block;
  margin-top: 12px;
  color: var(--muted);
  font-weight: 800;
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 18px;
  align-items: stretch;
}

.panel,
.side-panel,
.zodiac-panel,
.related-panel,
.faq {
  padding: 22px;
}

.panel__header,
.section-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
}

.panel__header h2,
.section-heading h2,
.side-panel h2 {
  margin: 0;
  font-size: 2rem;
  line-height: 1.08;
  letter-spacing: 0;
}

.tabs {
  display: inline-flex;
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.tabs button {
  min-height: 40px;
  border: 0;
  border-right: 1px solid var(--line);
  padding: 0 18px;
  background: #f8fafc;
  color: var(--muted);
  font-weight: 950;
}

.tabs button:last-child {
  border-right: 0;
}

.tabs button.is-active {
  background: var(--slate);
  color: #fff;
}

.fortune-main {
  display: grid;
  grid-template-columns: 136px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  border-radius: 8px;
  padding: 18px;
  background:
    linear-gradient(90deg, rgba(125, 131, 157, 0.08) 0 1px, transparent 1px 12.5%),
    linear-gradient(135deg, #ffffff, #f9f8f0);
  box-shadow: inset 0 0 0 1px var(--line);
}

.score-ring {
  display: grid;
  width: 122px;
  aspect-ratio: 1;
  place-items: center;
  justify-self: center;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, #fff 0 54%, transparent 55%),
    conic-gradient(var(--sky) var(--score), #e8e6db 0);
  box-shadow: inset 0 0 0 12px rgba(45, 122, 114, 0.08);
  animation: ringPulse 4s ease-in-out infinite;
}

.score-ring span,
.score-ring small {
  color: var(--muted);
  font-weight: 950;
}

.score-ring strong {
  margin-top: -22px;
  color: var(--navy-deep);
  font-size: 2.6rem;
  line-height: 1;
}

.score-ring small {
  margin-top: -30px;
}

.fortune-label {
  display: inline-flex;
  margin: 0 0 12px;
  border-radius: 8px;
  padding: 8px 12px;
  background: #eef8fb;
  color: var(--navy-deep);
  font-size: 0.82rem;
  font-weight: 950;
}

.fortune-main h3 {
  margin: 0;
  font-size: 1.55rem;
  line-height: 1.2;
}

.fortune-main p:last-child {
  margin: 14px 0 0;
  color: var(--muted);
  font-weight: 760;
  line-height: 1.6;
}

.fortune-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: 12px;
}

.fortune-metrics article {
  min-height: 96px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: #fff;
  transition:
    transform 220ms ease,
    box-shadow 220ms ease;
}

.fortune-metrics span {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 950;
}

.fortune-metrics strong {
  display: block;
  margin-top: 10px;
  color: var(--ink);
  font-size: 1.55rem;
}

.fortune-metrics div {
  height: 10px;
  margin-top: 14px;
  border-radius: 999px;
  background: #eaf0f7;
  overflow: hidden;
}

.fortune-metrics i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--sky), var(--lime), #f3e29b);
  transition: width 420ms ease;
  animation: fillGlow 3s ease-in-out infinite;
}

.fortune-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 12px;
}

.fortune-detail article {
  border-radius: 8px;
  padding: 14px;
  background: #f9f8f0;
  box-shadow: inset 0 0 0 1px var(--line);
}

.fortune-detail span {
  display: block;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 950;
}

.fortune-detail strong {
  display: block;
  margin-top: 10px;
  font-size: 1rem;
  line-height: 1.55;
}

.long-report {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.long-report .section-heading {
  margin-bottom: 2px;
}

.long-report article {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  background: #fff;
}

.long-report span {
  display: block;
  color: var(--navy-deep);
  font-size: 0.92rem;
  font-weight: 950;
}

.long-report p {
  margin: 10px 0 0;
  color: #4f5568;
  font-size: 0.98rem;
  font-weight: 720;
  line-height: 1.86;
}

.dense-board {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: 12px;
}

.dense-board article {
  min-height: 136px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: #fff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.5);
}

.dense-board span,
.time-grid span,
.month-grid span,
.side-data strong {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 950;
}

.dense-board strong {
  display: block;
  margin-top: 8px;
  color: var(--navy-deep);
  font-size: 1.32rem;
  line-height: 1.2;
}

.dense-board p {
  margin: 9px 0 0;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 760;
  line-height: 1.55;
}

.saju-report {
  margin-top: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  background: #fffef8;
}

.saju-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.saju-heading h3 {
  margin: 0;
  font-size: 1.35rem;
  line-height: 1.15;
}

.saju-heading > span {
  display: inline-flex;
  flex: 0 0 auto;
  min-height: 36px;
  align-items: center;
  border-radius: 8px;
  padding: 0 14px;
  background: #eef8fb;
  color: var(--navy-deep);
  font-size: 0.84rem;
  font-weight: 950;
}

.pillar-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.pillar-grid article {
  min-height: 92px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #fff;
  transition:
    transform 220ms ease,
    box-shadow 220ms ease;
}

.pillar-grid span,
.element-grid span {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 950;
}

.pillar-grid strong {
  display: block;
  margin-top: 10px;
  color: var(--navy-deep);
  font-size: 1.45rem;
}

.pillar-grid small {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-weight: 800;
}

.element-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  margin-top: 14px;
}

.element-grid article {
  border-radius: 8px;
  padding: 14px;
  background: #f7f6f0;
}

.element-grid div {
  height: 9px;
  margin-top: 12px;
  border-radius: 999px;
  background: #e2e8f0;
  overflow: hidden;
}

.element-grid i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--sky), var(--lime), #f3e29b);
  transition: width 420ms ease;
  animation: fillGlow 3s ease-in-out infinite;
}

#sajuAdvice {
  margin: 12px 0 0;
  color: var(--muted);
  font-weight: 790;
  line-height: 1.85;
}

.retention-panel {
  display: grid;
  gap: 14px;
  margin-top: 14px;
}

.retention-section {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  background: #fff;
}

.section-heading--compact {
  margin-bottom: 12px;
}

.section-heading--compact h3 {
  margin: 0;
  color: var(--navy-deep);
  font-size: 1.3rem;
  line-height: 1.2;
}

.time-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.time-grid article,
.month-grid article {
  border-radius: 8px;
  padding: 12px;
  background: #f9f8f0;
}

.time-grid strong {
  display: block;
  margin-top: 6px;
  color: var(--navy-deep);
  font-size: 1.65rem;
  line-height: 1;
}

.time-grid div {
  height: 8px;
  margin-top: 10px;
  border-radius: 999px;
  background: #e8e6db;
  overflow: hidden;
}

.time-grid i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--sky), var(--lime), #f3e29b);
  animation: fillGlow 3s ease-in-out infinite;
}

.time-grid p,
.month-grid p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 760;
  line-height: 1.68;
}

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

.month-grid article {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: start;
}

.month-grid strong {
  display: block;
  margin-top: 6px;
  color: var(--navy-deep);
  font-size: 1.12rem;
}

.month-grid b {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 8px;
  background: #fff;
  color: var(--navy-deep);
  font-size: 1rem;
}

.month-grid p {
  grid-column: 1 / -1;
}

.side-panel {
  align-self: stretch;
  position: sticky;
  top: 88px;
  max-height: calc(100vh - 110px);
  overflow-y: auto;
  background: var(--slate);
  color: #fff;
}

.side-panel .eyebrow {
  color: #f4e69f;
}

.side-panel h2 {
  font-size: 1.62rem;
}

.guide-list {
  display: grid;
  gap: 16px;
  margin: 18px 0;
  padding: 0;
  list-style: none;
}

.guide-list li {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 12px;
}

.guide-list li > span {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 8px;
  background: #fff;
  color: var(--navy-deep);
  font-weight: 950;
}

.guide-list strong {
  display: block;
  font-size: 1.05rem;
}

.guide-list p,
.notice-box p {
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-weight: 760;
  line-height: 1.65;
}

.notice-box {
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.1);
}

.side-data {
  margin-top: 14px;
  border-radius: 8px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.12);
}

.side-data strong {
  color: #fff;
}

.side-data ul {
  display: grid;
  gap: 10px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.side-data li {
  position: relative;
  padding-left: 18px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.9rem;
  font-weight: 780;
  line-height: 1.5;
}

.side-data li::before {
  content: "";
  position: absolute;
  top: 0.65em;
  left: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--lime);
}

.zodiac-panel,
.related-panel,
.faq {
  margin-top: 28px;
}

.zodiac-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.zodiac-grid article {
  min-height: 190px;
  border-radius: 3px;
  padding: 22px;
  background: #fffef8;
  box-shadow: inset 0 0 0 1px var(--line);
  transition:
    transform 220ms ease,
    box-shadow 220ms ease;
}

.zodiac-grid span {
  display: block;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 950;
}

.zodiac-grid strong {
  display: block;
  margin-top: 12px;
  color: var(--navy);
  font-size: 2rem;
}

.zodiac-grid p {
  margin: 14px 0 0;
  color: var(--muted);
  font-weight: 780;
  line-height: 1.65;
}

.related-panel {
  background:
    linear-gradient(135deg, #fff, rgba(237, 248, 251, 0.92)),
    #fff;
}

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

.related-grid button {
  position: relative;
  display: grid;
  min-height: 128px;
  align-content: space-between;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  background: #fff;
  color: var(--ink);
  text-align: left;
  overflow: hidden;
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

.related-grid button::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 5px;
  background: var(--sky);
}

.related-grid button:nth-child(2)::before,
.related-grid button:nth-child(5)::before {
  background: var(--card-yellow);
}

.related-grid button:nth-child(3)::before,
.related-grid button:nth-child(6)::before {
  background: var(--card-green);
}

.related-grid button:nth-child(4)::before {
  background: var(--slate);
}

.related-grid button:hover,
.related-grid button.is-active {
  border-color: rgba(57, 66, 85, 0.28);
  box-shadow: 0 16px 32px rgba(76, 82, 105, 0.12);
  transform: translateY(-2px);
}

.related-grid strong {
  display: block;
  margin-top: 4px;
  color: var(--navy-deep);
  font-size: 1.06rem;
  line-height: 1.25;
}

.related-grid small {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 780;
  line-height: 1.45;
}

.faq details {
  border-top: 1px solid var(--line);
  padding: 20px 0;
}

.faq details:last-child {
  border-bottom: 1px solid var(--line);
}

.faq summary {
  cursor: pointer;
  font-size: 1.12rem;
  font-weight: 950;
}

.faq p {
  margin: 12px 0 0;
  color: var(--muted);
  font-weight: 760;
  line-height: 1.7;
}

.site-footer {
  display: flex;
  width: min(1180px, calc(100% - 72px));
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 0 auto;
  border-top: 1px solid rgba(21, 21, 21, 0.1);
  padding: 28px 0 42px;
  color: var(--muted);
  font-weight: 850;
}

.site-footer strong {
  color: var(--ink);
}

/* Polish layer: tighter hierarchy, softer surfaces, and more finished service UI. */
.site-header {
  min-height: 64px;
  border: 1px solid rgba(255, 255, 255, 0.68);
  border-top: 0;
  border-radius: 0 0 8px 8px;
  padding: 0 12px;
  background: rgba(255, 252, 241, 0.84);
  box-shadow: 0 12px 30px rgba(76, 82, 105, 0.08);
}

.brand__mark {
  border-radius: 7px;
  background: linear-gradient(135deg, var(--navy-deep), var(--slate));
}

.nav-links {
  gap: 6px;
}

.nav-links a {
  border-radius: 999px;
  padding: 8px 10px;
  font-size: 0.88rem;
}

.nav-links a:hover {
  background: rgba(255, 255, 255, 0.72);
  color: var(--navy-deep);
}

.today-chip {
  box-shadow:
    inset 0 0 0 1px var(--line),
    0 8px 18px rgba(76, 82, 105, 0.08);
}

.hero {
  position: relative;
  border-color: rgba(255, 255, 255, 0.88);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.97), rgba(235, 248, 244, 0.84)),
    var(--panel);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(158, 220, 244, 0.15) 0 1px, transparent 1px 64px),
    linear-gradient(180deg, rgba(214, 238, 141, 0.15) 0 1px, transparent 1px 64px);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  pointer-events: none;
}

.hero h1 {
  color: #252a3a;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.hero-tags span {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  border-radius: 999px;
  padding: 0 10px;
  background: rgba(255, 255, 255, 0.74);
  color: var(--navy-deep);
  font-size: 0.78rem;
  font-weight: 900;
  box-shadow: inset 0 0 0 1px rgba(229, 226, 216, 0.9);
}

.fortune-form input,
.fortune-form select {
  background: rgba(255, 255, 255, 0.94);
}

.button--primary {
  background: linear-gradient(135deg, var(--navy-deep), #59627c);
}

.button--ghost {
  background: rgba(255, 255, 255, 0.9);
}

.preview-card,
.mini-facts {
  background: rgba(255, 255, 255, 0.92);
}

.preview-card--score {
  background: linear-gradient(135deg, #fff, var(--card-blue, #edf8fb));
}

.preview-card--chart {
  background:
    linear-gradient(90deg, rgba(125, 131, 157, 0.1) 0 1px, transparent 1px 16.66%),
    linear-gradient(180deg, #fff, #fffdf7);
}

.quick-strip {
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 12px 28px rgba(20, 29, 54, 0.08);
  backdrop-filter: blur(12px);
}

.quick-strip button.is-active,
.quick-strip button:hover {
  background: var(--navy-deep);
}

.summary-card,
.panel,
.side-panel,
.zodiac-panel,
.related-panel,
.faq {
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
}

.summary-card {
  position: relative;
  border-left: 0;
  overflow: hidden;
}

.summary-card::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 5px;
  background: var(--sky);
}

.summary-card:nth-child(2)::before {
  background: var(--lime);
}

.summary-card:nth-child(3)::before {
  background: #f3e29b;
}

.summary-card:nth-child(4)::before {
  background: #d8d9e9;
}

.panel {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(255, 254, 248, 0.97)),
    #fff;
}

.tabs {
  background: rgba(255, 255, 255, 0.72);
}

.tabs button {
  background: transparent;
}

.fortune-main {
  border: 1px solid rgba(255, 255, 255, 0.84);
  background:
    linear-gradient(90deg, rgba(125, 131, 157, 0.08) 0 1px, transparent 1px 12.5%),
    linear-gradient(135deg, #ffffff, #f7fcfb);
  box-shadow:
    inset 0 0 0 1px rgba(229, 226, 216, 0.7),
    0 10px 24px rgba(76, 82, 105, 0.06);
}

.fortune-metrics article {
  background: linear-gradient(180deg, #fff, #fffdf7);
}

.fortune-metrics article:nth-child(1) {
  background: linear-gradient(180deg, #fff, var(--card-yellow, #fff5cf));
}

.fortune-metrics article:nth-child(2) {
  background: linear-gradient(180deg, #fff, #fff1f2);
}

.fortune-metrics article:nth-child(3) {
  background: linear-gradient(180deg, #fff, var(--card-green, #f1f8e7));
}

.fortune-metrics article:nth-child(4) {
  background: linear-gradient(180deg, #fff, var(--card-blue, #edf8fb));
}

.dense-board article,
.time-grid article,
.month-grid article,
.pillar-grid article {
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.55);
}

.dense-board article:nth-child(2),
.dense-board article:nth-child(4) {
  background: linear-gradient(180deg, #fff, #f4fbfb);
}

.retention-section {
  box-shadow: 0 10px 26px rgba(76, 82, 105, 0.07);
}

.related-panel {
  position: relative;
  overflow: hidden;
}

.related-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(158, 220, 244, 0.12) 0 1px, transparent 1px 76px),
    linear-gradient(180deg, rgba(214, 238, 141, 0.12) 0 1px, transparent 1px 76px);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  pointer-events: none;
}

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

.side-panel {
  background:
    linear-gradient(180deg, rgba(125, 131, 157, 0.96), rgba(94, 101, 124, 0.98)),
    var(--slate);
}

/* Reference dashboard layer: crisp cards, warm canvas, and stronger reading contrast. */
body {
  background:
    linear-gradient(135deg, transparent 0 58%, rgba(255, 255, 255, 0.32) 58% 72%, transparent 72%),
    linear-gradient(155deg, #f7cf7c 0 28%, #f5eadc 28% 54%, #dce5f4 54% 100%);
  color: var(--ink);
  animation: pageDrift 22s ease-in-out infinite alternate;
}

.site-header {
  width: min(1180px, calc(100% - 56px));
  min-height: 76px;
  margin-top: 18px;
  border: 8px solid rgba(255, 255, 255, 0.5);
  border-radius: 8px;
  padding: 0 18px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 24px 54px rgba(61, 45, 71, 0.18);
}

.brand {
  color: #151523;
}

.brand__mark {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: linear-gradient(135deg, #2f263e, #755dcc);
  box-shadow: 0 12px 28px rgba(74, 54, 118, 0.25);
}

.nav-links a {
  color: #6b6179;
}

.nav-links a:hover {
  background: #f4eefb;
  color: #332842;
}

.today-chip {
  min-height: 42px;
  background: #fff7df;
  color: #35283f;
}

.app-shell {
  width: min(1180px, calc(100% - 56px));
  padding-top: 20px;
}

.hero,
.panel,
.side-panel,
.zodiac-panel,
.related-panel,
.faq,
.summary-card,
.quick-strip,
.reading-nav {
  border-radius: 8px;
}

.hero {
  grid-template-columns: minmax(0, 1.05fr) minmax(340px, 0.95fr);
  gap: 18px;
  border: 8px solid rgba(255, 255, 255, 0.52);
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.98) 0 64%, rgba(255, 244, 214, 0.92) 64% 100%),
    #fff;
  box-shadow: 0 28px 68px rgba(61, 45, 71, 0.18);
}

.hero::before {
  background:
    linear-gradient(90deg, rgba(117, 93, 204, 0.09) 0 1px, transparent 1px 76px),
    linear-gradient(180deg, rgba(247, 117, 134, 0.08) 0 1px, transparent 1px 76px);
  opacity: 0.9;
}

.hero__content {
  padding: 34px 30px;
}

.hero__content::before {
  inset: 38px 24px auto auto;
  border-color: rgba(117, 93, 204, 0.18);
  background: rgba(255, 255, 255, 0.36);
}

.eyebrow {
  color: #33856f;
  font-size: 0.8rem;
}

.hero h1 {
  max-width: 620px;
  color: #171827;
  font-size: 2.55rem;
  line-height: 1.08;
}

.hero__lead {
  max-width: 590px;
  color: #5f6270;
  font-size: 1.02rem;
  line-height: 1.7;
}

.fortune-form {
  max-width: 760px;
  margin-top: 20px;
}

.fortune-form input,
.fortune-form select {
  min-height: 54px;
  border-color: #e1dcd1;
  background: #fff;
  box-shadow: 0 10px 22px rgba(37, 28, 48, 0.06);
}

.fortune-form input:focus,
.fortune-form select:focus {
  border-color: #755dcc;
  box-shadow:
    0 10px 22px rgba(37, 28, 48, 0.06),
    0 0 0 4px rgba(117, 93, 204, 0.16);
}

.button {
  min-height: 52px;
  border-radius: 8px;
}

.button--primary {
  background: linear-gradient(135deg, #332842, #755dcc);
  box-shadow: 0 16px 30px rgba(74, 54, 118, 0.25);
}

.button--ghost {
  background: #fff;
  color: #332842;
}

.hero-tags span {
  min-height: 34px;
  background: #f6f0ff;
  color: #4f3c73;
}

.hero-tags span:nth-child(2) {
  background: #edf9f5;
  color: #236d5a;
}

.hero-tags span:nth-child(3) {
  background: #ffe7ed;
  color: #904452;
}

.hero-tags span:nth-child(4) {
  background: #fff1c6;
  color: #75560f;
}

.hero__visual {
  padding: 22px 22px 22px 0;
}

.dashboard-preview {
  gap: 14px;
}

.preview-card,
.mini-facts {
  border: 1px solid rgba(255, 255, 255, 0.76);
  box-shadow: 0 18px 40px rgba(61, 45, 71, 0.14);
}

.preview-card {
  padding: 18px;
}

.preview-card--score {
  min-height: 112px;
  background: linear-gradient(135deg, #6952bd, #3f315c);
  color: #fff;
}

.preview-card--score span,
.preview-card--score strong {
  color: #fff;
}

.score-donut {
  width: 72px;
  background:
    radial-gradient(circle at center, #fff 0 47%, transparent 48%),
    conic-gradient(#8fd3ee 0 var(--donut-score), #f6c65b var(--donut-score) 82%, rgba(255, 255, 255, 0.34) 82% 100%);
}

.preview-card--chart {
  min-height: 156px;
  background:
    linear-gradient(90deg, rgba(117, 93, 204, 0.1) 0 1px, transparent 1px 16.66%),
    linear-gradient(135deg, #fff, #fff2c6);
}

.chart-line {
  height: 98px;
}

.mini-facts {
  background: #fff;
}

.mini-facts article {
  min-height: 48px;
  background: #f7f5f0;
}

.mini-facts article:nth-child(1) {
  background: #f6f0ff;
}

.mini-facts article:nth-child(2) {
  background: #fff1c6;
}

.mini-facts article:nth-child(3) {
  background: #ffe7ed;
}

.mini-facts article:nth-child(4) {
  background: #edf9f5;
}

.quick-strip,
.reading-nav {
  border: 1px solid rgba(255, 255, 255, 0.74);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 18px 40px rgba(61, 45, 71, 0.13);
}

.quick-strip {
  padding: 14px 16px;
}

.quick-strip button,
.reading-nav a {
  border-radius: 8px;
}

.quick-strip button {
  border-color: #e5dfd4;
  color: #332842;
}

.quick-strip button.is-active,
.quick-strip button:hover {
  border-color: #332842;
  background: #332842;
  color: #fff;
}

.reading-nav a:hover {
  background: #755dcc;
}

.summary-grid {
  gap: 14px;
}

.summary-card {
  min-height: 128px;
  border: 0;
  padding: 20px;
  background: #fff;
  box-shadow: 0 18px 40px rgba(61, 45, 71, 0.12);
}

.summary-card::before {
  height: 7px;
  background: #755dcc;
}

.summary-card:nth-child(2)::before {
  background: #83c9b9;
}

.summary-card:nth-child(3)::before {
  background: #f6c65b;
}

.summary-card:nth-child(4)::before {
  background: #f77586;
}

.summary-card strong {
  color: #171827;
  font-size: 1.9rem;
}

.content-grid {
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 20px;
}

.panel,
.zodiac-panel,
.related-panel,
.faq {
  border: 8px solid rgba(255, 255, 255, 0.52);
  background: #fff;
  box-shadow: 0 28px 68px rgba(61, 45, 71, 0.15);
}

.panel,
.side-panel,
.zodiac-panel,
.related-panel,
.faq {
  padding: 24px;
}

.panel__header h2,
.section-heading h2,
.side-panel h2 {
  color: #171827;
  font-size: 2.05rem;
}

.tabs {
  border-color: #e5dfd4;
  background: #f7f4ee;
}

.tabs button.is-active {
  background: #332842;
}

.fortune-main {
  grid-template-columns: 150px minmax(0, 1fr);
  border: 0;
  padding: 22px;
  background:
    linear-gradient(135deg, rgba(117, 93, 204, 0.1), rgba(255, 241, 198, 0.75)),
    #fff;
  box-shadow: inset 0 0 0 1px #ece7dc;
}

.score-ring {
  width: 132px;
  background:
    radial-gradient(circle at center, #fff 0 54%, transparent 55%),
    conic-gradient(#755dcc var(--score), #eee7dd 0);
  box-shadow:
    inset 0 0 0 12px rgba(117, 93, 204, 0.08),
    0 16px 28px rgba(74, 54, 118, 0.16);
}

.score-ring strong,
.fortune-main h3 {
  color: #171827;
}

.fortune-label {
  background: #332842;
  color: #fff;
}

.fortune-main p:last-child,
.long-report p,
.zodiac-grid p,
.faq p {
  color: #565969;
}

.fortune-metrics article,
.fortune-detail article,
.dense-board article,
.saju-report,
.retention-section,
.zodiac-grid article,
.related-grid button {
  border: 1px solid #ebe5da;
  background: #fff;
  box-shadow: 0 12px 26px rgba(61, 45, 71, 0.08);
}

.fortune-metrics article {
  min-height: 112px;
}

.fortune-metrics article:nth-child(1) {
  background: linear-gradient(180deg, #fff, #fff0b9);
}

.fortune-metrics article:nth-child(2) {
  background: linear-gradient(180deg, #fff, #ffe2e8);
}

.fortune-metrics article:nth-child(3) {
  background: linear-gradient(180deg, #fff, #f0f8d5);
}

.fortune-metrics article:nth-child(4) {
  background: linear-gradient(180deg, #fff, #e9f7fb);
}

.fortune-metrics i,
.element-grid i,
.time-grid i {
  background: linear-gradient(90deg, #755dcc, #f77586, #f6c65b);
}

.fortune-detail article:first-child {
  background: #fff1c6;
}

.fortune-detail article:last-child {
  background: #f6f0ff;
}

.long-report {
  gap: 12px;
}

.long-report article {
  position: relative;
  border: 0;
  border-left: 6px solid #755dcc;
  padding: 20px 22px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(61, 45, 71, 0.08);
}

.long-report article:nth-of-type(2) {
  border-left-color: #83c9b9;
}

.long-report article:nth-of-type(3) {
  border-left-color: #f6c65b;
}

.long-report article:nth-of-type(4) {
  border-left-color: #f77586;
}

.long-report article:nth-of-type(5) {
  border-left-color: #8fd3ee;
}

.long-report article:nth-of-type(6) {
  border-left-color: #332842;
}

.long-report span {
  color: #171827;
  font-size: 1rem;
}

.long-report p {
  font-size: 1rem;
  line-height: 1.9;
}

.dense-board {
  gap: 12px;
}

.dense-board article {
  min-height: 150px;
}

.saju-report {
  background: linear-gradient(180deg, #fff, #fffcf4);
}

.saju-heading > span,
.month-grid b {
  background: #332842;
  color: #fff;
}

.pillar-grid article,
.element-grid article {
  background: #f8f5ee;
}

.side-panel {
  border: 8px solid rgba(255, 255, 255, 0.42);
  background:
    linear-gradient(180deg, #332842, #4f3c73 58%, #4f6b75),
    #332842;
  box-shadow: 0 28px 68px rgba(61, 45, 71, 0.18);
}

.side-panel h2,
.side-panel .eyebrow {
  color: #fff;
}

.guide-list li > span {
  background: #f6c65b;
  color: #171827;
}

.notice-box,
.side-data {
  background: rgba(255, 255, 255, 0.12);
}

.zodiac-grid article:nth-child(1) {
  background: #f6f0ff;
}

.zodiac-grid article:nth-child(2) {
  background: #e9f7fb;
}

.zodiac-grid article:nth-child(3) {
  background: #fff1c6;
}

.zodiac-grid strong {
  color: #332842;
}

.related-panel {
  background: #fff;
}

.related-panel::before {
  background:
    linear-gradient(90deg, rgba(117, 93, 204, 0.1) 0 1px, transparent 1px 76px),
    linear-gradient(180deg, rgba(246, 198, 91, 0.16) 0 1px, transparent 1px 76px);
}

.related-grid button {
  min-height: 118px;
}

.related-grid button::before {
  height: 7px;
  background: #755dcc;
}

.related-grid button:nth-child(2)::before,
.related-grid button:nth-child(5)::before {
  background: #f6c65b;
}

.related-grid button:nth-child(3)::before,
.related-grid button:nth-child(6)::before {
  background: #83c9b9;
}

.site-footer {
  width: min(1180px, calc(100% - 56px));
  color: rgba(23, 24, 39, 0.7);
}

/* Desktop layout: turn the page into an app-style fortune dashboard. */
@media (min-width: 1120px) {
  .site-header {
    position: fixed;
    top: 24px;
    left: max(28px, calc((100vw - 1320px) / 2 + 28px));
    z-index: 40;
    display: flex;
    width: 232px;
    height: calc(100vh - 48px);
    min-height: 620px;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 22px;
    margin: 0;
    border: 8px solid rgba(255, 255, 255, 0.48);
    padding: 22px 18px;
    background:
      linear-gradient(180deg, rgba(51, 40, 66, 0.98), rgba(79, 60, 115, 0.98) 62%, rgba(79, 107, 117, 0.98)),
      #332842;
    color: #fff;
  }

  .brand {
    display: grid;
    grid-template-columns: 46px 1fr;
    gap: 12px;
    align-items: center;
    color: #fff;
  }

  .brand__mark {
    width: 46px;
    height: 46px;
    background: #fff;
    color: #332842;
    box-shadow: 0 14px 28px rgba(16, 12, 24, 0.22);
  }

  .brand span:last-child {
    white-space: normal;
    line-height: 1.25;
  }

  .nav-links {
    display: grid;
    width: 100%;
    gap: 9px;
    margin-top: 4px;
  }

  .nav-links a {
    position: relative;
    display: flex;
    min-height: 44px;
    align-items: center;
    border-radius: 8px;
    padding: 0 14px 0 32px;
    color: rgba(255, 255, 255, 0.76);
    font-size: 0.9rem;
  }

  .nav-links a::before {
    content: "";
    position: absolute;
    left: 14px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.38);
  }

  .nav-links a:hover {
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
  }

  .nav-links a:hover::before {
    background: #f6c65b;
  }

  .today-chip {
    width: 100%;
    min-height: 58px;
    justify-content: center;
    margin-top: auto;
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
    text-align: center;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
  }

  .app-shell,
  .site-footer {
    width: min(1038px, calc(100vw - 324px));
    margin-right: auto;
    margin-left: max(286px, calc((100vw - 1320px) / 2 + 286px));
  }

  .app-shell {
    padding-top: 24px;
  }

  .hero {
    grid-template-columns: minmax(0, 1.08fr) minmax(300px, 0.72fr);
    min-height: 560px;
  }

  .hero__content {
    display: flex;
    min-height: 100%;
    flex-direction: column;
    justify-content: center;
  }

  .hero h1 {
    max-width: 570px;
  }

  .hero__visual {
    padding: 24px 24px 24px 0;
  }

  .dashboard-preview {
    align-self: center;
  }

  .preview-card--score {
    min-height: 130px;
  }

  .preview-card--chart {
    min-height: 190px;
  }

  .chart-line {
    height: 124px;
  }

  .quick-strip {
    display: grid;
    grid-template-columns: auto repeat(7, minmax(0, 1fr));
    gap: 8px;
  }

  .quick-strip span {
    display: flex;
    align-items: center;
    white-space: nowrap;
  }

  .quick-strip button {
    min-width: 0;
    padding: 0 10px;
  }

  .reading-nav {
    top: 24px;
  }

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

  .content-grid {
    grid-template-columns: minmax(0, 1fr) 328px;
    align-items: start;
  }

  .side-panel {
    top: 24px;
    max-height: calc(100vh - 48px);
  }
}

@keyframes pageDrift {
  from {
    background-position: 0 0, 0 0;
  }

  to {
    background-position: 42px 18px, 0 0;
  }
}

@keyframes softTile {
  0%,
  100% {
    transform: rotate(8deg) translateY(0);
  }

  50% {
    transform: rotate(2deg) translateY(10px);
  }
}

@keyframes previewFloat {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-8px);
  }
}

@keyframes cardSheen {
  0%,
  58% {
    transform: translateX(-120%);
  }

  100% {
    transform: translateX(120%);
  }
}

@keyframes donutBreathe {
  0%,
  100% {
    transform: rotate(0deg) scale(1);
  }

  50% {
    transform: rotate(10deg) scale(1.06);
  }
}

@keyframes waveTravel {
  0%,
  100% {
    transform: translateX(-8px) rotate(-8deg);
    opacity: 0.72;
  }

  50% {
    transform: translateX(10px) rotate(-3deg);
    opacity: 1;
  }
}

@keyframes dotGlide {
  0%,
  100% {
    transform: translate(-64px, 28px);
  }

  50% {
    transform: translate(8px, -8px);
  }
}

@keyframes barPulse {
  0%,
  100% {
    transform: scaleY(0.88);
  }

  50% {
    transform: scaleY(1.05);
  }
}

@keyframes ringPulse {
  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.035);
  }
}

@keyframes fillGlow {
  0%,
  100% {
    filter: saturate(1);
  }

  50% {
    filter: saturate(1.22) brightness(1.03);
  }
}

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

@media (max-width: 980px) {
  .site-header,
  .app-shell,
  .site-footer {
    width: min(100% - 32px, 760px);
  }

  .site-header {
    min-height: auto;
    flex-wrap: wrap;
    padding: 14px 0;
  }

  .nav-links {
    order: 3;
    width: 100%;
    overflow-x: auto;
    padding-bottom: 2px;
  }

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

  .hero__content {
    padding: 24px 24px 16px;
  }

  .hero h1 {
    font-size: 2.2rem;
  }

  .panel__header h2,
  .section-heading h2 {
    font-size: 2.25rem;
  }

  .form-grid,
  .summary-grid,
  .fortune-metrics,
  .fortune-detail,
  .long-report,
  .dense-board,
  .time-grid,
  .month-grid,
  .zodiac-grid,
  .related-grid,
  .pillar-grid,
  .element-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .chart-line {
    height: 74px;
  }

  .fortune-main {
    grid-template-columns: 1fr;
    text-align: left;
  }

  .panel__header,
  .section-heading,
  .saju-heading,
  .site-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .tabs {
    width: 100%;
  }

  .tabs button {
    flex: 1;
    padding: 0 10px;
  }

  .side-panel {
    position: static;
    max-height: none;
  }

  .reading-nav {
    top: 126px;
    display: flex;
    overflow-x: auto;
    scroll-padding-inline: 8px;
  }

  .reading-nav a {
    flex: 0 0 auto;
    min-width: 108px;
  }
}

@media (max-width: 760px) {
  .hero {
    grid-template-columns: 1fr;
    border-width: 6px;
  }

  .hero__visual {
    padding: 0 24px 24px;
  }
}

@media (max-width: 560px) {
  .site-header,
  .app-shell,
  .site-footer {
    width: min(100% - 24px, 520px);
  }

  .today-chip {
    width: 100%;
    justify-content: center;
  }

  .hero h1 {
    font-size: 2rem;
    line-height: 1.12;
  }

  .site-header {
    margin-top: 10px;
    border-width: 5px;
    padding: 12px;
  }

  .hero__content {
    padding: 24px 20px 16px;
  }

  .panel,
  .side-panel,
  .zodiac-panel,
  .related-panel,
  .faq {
    border-width: 5px;
  }

  .summary-card strong {
    font-size: 1.8rem;
  }

  .fortune-main h3 {
    font-size: 1.55rem;
  }

  .hero__lead {
    font-size: 0.98rem;
  }

  .dashboard-preview {
    grid-template-columns: 1fr;
  }

  .preview-card--score,
  .preview-card--chart,
  .mini-facts {
    grid-column: auto;
    grid-row: auto;
  }

  .form-grid,
  .summary-grid,
  .fortune-metrics,
  .fortune-detail,
  .long-report,
  .dense-board,
  .time-grid,
  .month-grid,
  .zodiac-grid,
  .related-grid,
  .pillar-grid,
  .element-grid,
  .mini-facts {
    grid-template-columns: 1fr;
  }

  .form-actions .button {
    width: 100%;
  }

  .panel,
  .side-panel,
  .zodiac-panel,
  .related-panel,
  .faq {
    padding: 18px;
  }

  .quick-strip {
    padding: 16px;
  }

  .quick-strip button {
    flex: 1 1 auto;
  }

  .related-panel {
    padding: 18px;
  }

  .long-report article {
    padding: 18px;
  }

  .hero__visual {
    padding: 0 18px 18px;
  }

  .reading-nav {
    top: 132px;
    margin-right: -12px;
    margin-left: -12px;
    border-radius: 0;
    border-right: 0;
    border-left: 0;
  }
}

/* Fortune workspace v2: compact dashboard structure with richer reading depth. */
.top-workspace {
  display: grid;
  gap: 16px;
  margin-bottom: 20px;
}

.control-deck {
  display: grid;
  gap: 10px;
}

@media (min-width: 1120px) {
  .top-workspace {
    grid-template-columns: minmax(0, 1fr) 292px;
    grid-template-rows: auto auto;
    align-items: stretch;
    gap: 18px;
  }

  .top-workspace .hero {
    grid-column: 1;
    grid-row: 1;
    min-height: 520px;
    background:
      linear-gradient(90deg, rgba(255, 255, 255, 0.99) 0 61%, rgba(255, 242, 204, 0.96) 61% 100%),
      #fff;
  }

  .top-workspace .hero__content {
    justify-content: center;
    padding: 34px 32px;
  }

  .top-workspace .hero h1 {
    max-width: 610px;
    font-size: 2.42rem;
  }

  .top-workspace .hero__visual {
    padding: 22px 22px 22px 0;
  }

  .control-deck {
    grid-column: 1;
    grid-row: 2;
    border: 8px solid rgba(255, 255, 255, 0.5);
    border-radius: 8px;
    padding: 14px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 24px 54px rgba(61, 45, 71, 0.13);
  }

  .control-deck .quick-strip,
  .control-deck .reading-nav {
    position: static;
    margin: 0;
    border: 1px solid #ebe5da;
    background: #fff;
    box-shadow: none;
    backdrop-filter: none;
  }

  .control-deck .quick-strip {
    grid-template-columns: auto repeat(4, minmax(0, 1fr));
    padding: 12px;
  }

  .control-deck .quick-strip button {
    min-height: 42px;
  }

  .control-deck .reading-nav {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .top-workspace .summary-grid {
    grid-column: 2;
    grid-row: 1 / span 2;
    display: grid;
    grid-template-columns: 1fr;
    align-content: stretch;
    gap: 12px;
    margin: 0;
  }

  .top-workspace .summary-card {
    display: grid;
    min-height: 0;
    align-content: center;
    padding: 20px;
  }

  .top-workspace .summary-card strong {
    font-size: 1.62rem;
    line-height: 1.12;
  }

  .top-workspace .summary-card small {
    line-height: 1.45;
  }
}

@media (max-width: 1119px) {
  .control-deck {
    margin-bottom: 16px;
  }
}

/* Readability cleanup: prevent crowded cards and keep every dashboard block in its own lane. */
.hero,
.dashboard-preview,
.preview-card,
.mini-facts,
.summary-card,
.panel,
.side-panel,
.zodiac-panel,
.related-panel,
.faq,
.control-deck,
.quick-strip,
.reading-nav {
  min-width: 0;
}

.hero {
  align-items: start;
}

.hero__content::before {
  opacity: 0.42;
}

.hero h1,
.hero__lead,
.panel__header h2,
.section-heading h2,
.fortune-main h3,
.long-report p {
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.dashboard-preview {
  align-self: start;
}

.preview-card--chart::before,
.preview-card--chart::after {
  z-index: 1;
}

.chart-line,
.chart-note {
  position: relative;
  z-index: 2;
}

.quick-strip button,
.reading-nav a,
.tabs button {
  white-space: nowrap;
}

@media (min-width: 1120px) {
  .top-workspace {
    grid-template-columns: minmax(0, 1fr) 300px;
  }

  .top-workspace .hero {
    grid-template-columns: minmax(0, 1fr) 286px;
    min-height: auto;
  }

  .top-workspace .hero__content {
    padding: 30px;
  }

  .top-workspace .hero h1 {
    max-width: 560px;
    font-size: 2.26rem;
    line-height: 1.12;
  }

  .top-workspace .hero__lead {
    max-width: 560px;
    font-size: 0.98rem;
  }

  .top-workspace .hero__visual {
    padding: 22px 22px 22px 0;
  }

  .top-workspace .dashboard-preview {
    gap: 12px;
  }

  .top-workspace .preview-card {
    padding: 16px;
  }

  .top-workspace .preview-card--score {
    min-height: 104px;
  }

  .top-workspace .preview-card--chart {
    min-height: 138px;
  }

  .top-workspace .chart-line {
    height: 82px;
  }

  .top-workspace .score-donut {
    width: 66px;
  }

  .top-workspace .mini-facts {
    grid-template-columns: 1fr;
  }

  .top-workspace .mini-facts article {
    min-height: 42px;
  }

  .control-deck .quick-strip {
    grid-template-columns: auto repeat(4, minmax(0, 1fr));
  }

  .control-deck .quick-strip button:nth-of-type(n + 5) {
    grid-column: span 1;
  }

  .top-workspace .summary-card {
    padding: 18px;
  }

  .top-workspace .summary-card strong {
    margin-top: 10px;
    font-size: 1.5rem;
  }
}

@media (max-width: 1119px) {
  .site-header,
  .app-shell,
  .site-footer {
    width: min(100% - 32px, 860px);
  }

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

  .hero__visual {
    padding: 0 24px 24px;
  }

  .dashboard-preview {
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    align-items: stretch;
  }

  .preview-card--score {
    min-height: 118px;
  }

  .preview-card--chart {
    min-height: 118px;
  }

  .mini-facts {
    grid-column: 1 / -1;
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .quick-strip {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .quick-strip span {
    grid-column: 1 / -1;
  }

  .quick-strip button {
    width: 100%;
    min-width: 0;
    padding: 0 10px;
  }

  .reading-nav {
    position: static;
    margin-bottom: 16px;
  }
}

@media (max-width: 860px) {
  .site-header,
  .app-shell,
  .site-footer {
    width: min(100% - 24px, 720px);
  }

  .hero__content {
    padding: 24px;
  }

  .hero h1 {
    font-size: 2rem;
  }

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

  .form-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .form-actions .button {
    width: 100%;
  }

  .dashboard-preview {
    grid-template-columns: 1fr;
  }

  .preview-card--score,
  .preview-card--chart,
  .mini-facts {
    grid-column: auto;
  }

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

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

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

  .reading-nav a:last-child {
    grid-column: 1 / -1;
  }

  .summary-grid,
  .fortune-metrics,
  .fortune-detail,
  .dense-board,
  .time-grid,
  .month-grid,
  .zodiac-grid,
  .related-grid,
  .pillar-grid,
  .element-grid {
    grid-template-columns: 1fr;
  }

  .fortune-main {
    grid-template-columns: 1fr;
    text-align: left;
  }

  .score-ring {
    justify-self: start;
  }
}

@media (max-width: 560px) {
  .site-header,
  .app-shell,
  .site-footer {
    width: min(100% - 20px, 520px);
  }

  .hero {
    border-width: 5px;
  }

  .hero__content {
    padding: 22px 18px 16px;
  }

  .hero__visual {
    padding: 0 18px 18px;
  }

  .hero h1 {
    font-size: 1.72rem;
    line-height: 1.16;
  }

  .hero__lead {
    font-size: 0.94rem;
  }

  .form-actions,
  .quick-strip,
  .reading-nav,
  .mini-facts {
    grid-template-columns: 1fr;
  }

  .reading-nav a:last-child {
    grid-column: auto;
  }

  .preview-card--score {
    min-height: 100px;
  }

  .preview-card--chart {
    min-height: 112px;
  }

  .chart-line {
    height: 70px;
  }

  .panel__header,
  .section-heading {
    gap: 12px;
  }

  .panel__header h2,
  .section-heading h2,
  .side-panel h2 {
    font-size: 1.58rem;
    line-height: 1.18;
  }

  .tabs {
    display: grid;
    width: 100%;
    grid-template-columns: repeat(3, 1fr);
  }

  .tabs button {
    padding: 0 8px;
  }
}

/* Mobile polish: keep controls compact and inside the viewport. */
@media (max-width: 560px) {
  .form-actions,
  .quick-strip,
  .reading-nav,
  .mini-facts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .quick-strip span,
  .reading-nav a:last-child {
    grid-column: 1 / -1;
  }

  .quick-strip button,
  .reading-nav a,
  .form-actions .button {
    min-width: 0;
    padding-right: 8px;
    padding-left: 8px;
    font-size: 0.84rem;
  }

  .reading-nav {
    width: 100%;
    margin: 0 0 16px;
    border-right: 1px solid rgba(255, 255, 255, 0.76);
    border-left: 1px solid rgba(255, 255, 255, 0.76);
    border-radius: 8px;
  }

  .dashboard-preview {
    gap: 10px;
  }

  .mini-facts article {
    min-height: 58px;
    display: grid;
    align-content: center;
    justify-items: start;
    gap: 4px;
  }

  .mini-facts strong {
    text-align: left;
  }
}

/* Search-first redesign: calm, professional fortune lookup flow. */
:root {
  --ink: #111827;
  --muted: #667085;
  --line: #dbe3ef;
  --panel: #ffffff;
  --page: #eef4fb;
  --navy: #1d4ed8;
  --navy-deep: #0f172a;
  --slate: #243b53;
  --gold: #d89b23;
  --green: #0f766e;
  --jade: #2dd4bf;
  --sky: #38bdf8;
  --lime: #84cc16;
  --rose: #e11d48;
  --shadow: 0 24px 70px rgba(15, 23, 42, 0.11);
  --shadow-soft: 0 14px 34px rgba(15, 23, 42, 0.08);
}

body {
  background:
    linear-gradient(180deg, #f7fbff 0, #eef4fb 420px, #f5f7fb 100%);
  color: var(--ink);
  animation: none;
}

.site-header,
.app-shell,
.site-footer {
  width: min(1120px, calc(100% - 48px));
  margin-right: auto;
  margin-left: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  min-height: 72px;
  border: 0;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  padding: 0;
  background: rgba(247, 251, 255, 0.9);
  box-shadow: none;
  backdrop-filter: blur(14px);
}

.brand,
.nav-links a,
.today-chip {
  color: var(--ink);
}

.brand__mark {
  border-radius: 8px;
  background: linear-gradient(135deg, #0f172a, #1d4ed8);
  color: #fff;
}

.nav-links a {
  min-height: 38px;
  border-radius: 8px;
  padding: 0 10px;
  color: #64748b;
}

.nav-links a:hover {
  background: #eaf1fb;
  color: #1d4ed8;
}

.today-chip {
  background: #eaf8f6;
  color: #0f766e;
}

.app-shell {
  padding-top: 28px;
}

.top-workspace {
  display: block;
}

.hero {
  grid-template-columns: minmax(0, 1fr);
  max-width: 920px;
  min-height: auto;
  margin: 28px auto 22px;
  border: 1px solid rgba(219, 227, 239, 0.9);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 251, 255, 0.98)),
    #fff;
  box-shadow: 0 28px 80px rgba(15, 23, 42, 0.1);
  overflow: visible;
}

.hero__content {
  padding: 42px;
}

.hero__content::before,
.hero::before {
  display: none;
}

.eyebrow {
  color: #1d4ed8;
}

.hero h1 {
  max-width: 760px;
  color: #0f172a;
  font-size: clamp(2rem, 4.2vw, 3.2rem);
  line-height: 1.08;
}

.hero__lead {
  max-width: 720px;
  color: #5f6f86;
  font-size: 1.04rem;
  line-height: 1.72;
}

.fortune-form {
  margin-top: 28px;
  border: 1px solid #dbe3ef;
  border-radius: 8px;
  padding: 18px;
  background: #f8fbff;
}

.form-grid {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 180px;
}

.fortune-form label span {
  color: #334155;
}

.fortune-form input,
.fortune-form select {
  min-height: 54px;
  border-color: #cbd5e1;
  background: #fff;
  color: #0f172a;
  box-shadow: none;
}

.fortune-form input:focus,
.fortune-form select:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.14);
}

.button--primary {
  background: #1d4ed8;
  box-shadow: 0 14px 28px rgba(29, 78, 216, 0.22);
}

.button--ghost {
  background: #fff;
  color: #1d4ed8;
}

.ad-card {
  display: grid;
  min-height: 96px;
  align-items: center;
  margin-top: 18px;
  border: 1px dashed #b7c5d8;
  border-radius: 8px;
  padding: 14px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.88), rgba(239, 246, 255, 0.92)),
    #fff;
}

.ad-card span {
  margin-bottom: 8px;
  color: #94a3b8;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0;
}

.is-start .hero__visual,
.is-start .hero-tags,
.is-start .control-deck,
.is-start .summary-grid,
.is-start .content-grid,
.is-start .zodiac-panel,
.is-start .related-panel,
.is-start .faq {
  display: none;
}

.is-start .app-shell {
  min-height: calc(100vh - 116px);
}

.is-start .hero {
  margin-top: clamp(24px, 6vh, 72px);
}

.has-results .hero {
  max-width: none;
  margin-top: 18px;
  margin-bottom: 16px;
}

.has-results .hero__content {
  padding: 24px;
}

.has-results .hero h1 {
  font-size: clamp(1.7rem, 3vw, 2.35rem);
}

.has-results .hero__lead {
  max-width: 900px;
}

.has-results .ad-card,
.has-results .hero-tags,
.has-results .hero__visual {
  display: none;
}

.has-results .fortune-form {
  margin-top: 20px;
}

.control-deck {
  max-width: none;
  margin: 0 0 16px;
  border: 1px solid #dbe3ef;
  border-radius: 8px;
  padding: 14px;
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.quick-strip,
.reading-nav {
  box-shadow: none;
}

.quick-strip {
  margin: 0 0 10px;
  background: #f8fbff;
}

.reading-nav {
  position: static;
  margin: 0;
  background: #fff;
}

.quick-strip button,
.reading-nav a,
.tabs button,
.share-button {
  border-radius: 8px;
}

.quick-strip button.is-active,
.quick-strip button:hover,
.reading-nav a:hover,
.tabs button.is-active {
  background: #0f172a;
  color: #fff;
}

.summary-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0 0 18px;
}

.summary-card,
.panel,
.side-panel,
.zodiac-panel,
.related-panel,
.faq {
  border: 1px solid #dbe3ef;
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.summary-card {
  border-left: 0;
  padding: 20px;
}

.summary-card::before {
  background: #1d4ed8;
}

.summary-card strong,
.panel__header h2,
.section-heading h2,
.side-panel h2,
.fortune-main h3 {
  color: #0f172a;
}

.content-grid {
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 18px;
}

.panel-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.share-button {
  min-height: 42px;
  border: 1px solid #cbd5e1;
  padding: 0 16px;
  background: #fff;
  color: #1d4ed8;
  font-weight: 950;
}

.reset-button {
  min-height: 42px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 0 16px;
  background: #f8fafc;
  color: #0f172a;
  font-weight: 950;
}

.share-button:hover,
.reset-button:hover {
  border-color: #1d4ed8;
  background: #eff6ff;
}

.share-status {
  min-height: 20px;
  margin: -6px 0 12px;
  color: #0f766e;
  font-size: 0.84rem;
  font-weight: 850;
}

.fortune-main {
  border: 1px solid #dbe3ef;
  background: linear-gradient(135deg, #f8fbff, #ffffff);
  box-shadow: none;
}

.score-ring {
  background:
    radial-gradient(circle at center, #fff 0 54%, transparent 55%),
    conic-gradient(#1d4ed8 var(--score), #e2e8f0 0);
}

.fortune-label {
  background: #0f172a;
  color: #fff;
}

.fortune-metrics article,
.fortune-detail article,
.dense-board article,
.saju-report,
.retention-section,
.zodiac-grid article,
.related-grid button {
  border-color: #dbe3ef;
  background: #fff;
}

.fortune-metrics i,
.element-grid i,
.time-grid i {
  background: linear-gradient(90deg, #1d4ed8, #0f766e);
}

.side-panel {
  background:
    linear-gradient(180deg, #0f172a, #1e3a8a 68%, #0f766e),
    #0f172a;
  color: #fff;
}

.side-panel h2,
.side-panel .eyebrow {
  color: #fff;
}

.notice-box,
.side-data {
  background: rgba(255, 255, 255, 0.12);
}

.guide-list li > span {
  background: #dbeafe;
  color: #1d4ed8;
}

.zodiac-panel,
.related-panel,
.faq {
  margin-top: 18px;
}

@media (min-width: 1120px) {
  .site-header,
  .app-shell,
  .site-footer {
    width: min(1120px, calc(100% - 48px));
    margin-right: auto;
    margin-left: auto;
  }

  .site-header {
    position: sticky;
    top: 0;
    left: auto;
    display: flex;
    width: min(1120px, calc(100% - 48px));
    height: auto;
    min-height: 72px;
    flex-direction: row;
    align-items: center;
    gap: 18px;
    border: 0;
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
    padding: 0;
    background: rgba(247, 251, 255, 0.9);
    color: #0f172a;
  }

  .brand {
    display: inline-flex;
    grid-template-columns: none;
    color: #0f172a;
  }

  .brand__mark {
    background: linear-gradient(135deg, #0f172a, #1d4ed8);
    color: #fff;
  }

  .brand span:last-child {
    white-space: nowrap;
  }

  .nav-links {
    display: inline-flex;
    width: auto;
    gap: 10px;
    margin-top: 0;
  }

  .nav-links a {
    min-height: 38px;
    padding: 0 10px;
    color: #64748b;
  }

  .nav-links a::before {
    display: none;
  }

  .today-chip {
    width: auto;
    min-height: 38px;
    margin-top: 0;
    background: #eaf8f6;
    color: #0f766e;
    box-shadow: none;
  }

  .app-shell {
    padding-top: 28px;
  }

  .top-workspace {
    display: block;
  }

  .top-workspace .hero {
    grid-template-columns: 1fr;
    max-width: 920px;
    min-height: auto;
  }

  .has-results .top-workspace .hero {
    max-width: none;
  }

  .top-workspace .hero__content {
    justify-content: flex-start;
    padding: 42px;
  }

  .has-results .top-workspace .hero__content {
    padding: 24px;
  }

  .top-workspace .hero h1 {
    max-width: 760px;
    font-size: clamp(2rem, 4.2vw, 3.2rem);
  }

  .has-results .top-workspace .hero h1 {
    font-size: clamp(1.7rem, 3vw, 2.35rem);
  }

  .form-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 180px;
  }

  .top-workspace .summary-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin: 0 0 18px;
  }

  .top-workspace .summary-card {
    min-height: 124px;
  }
}

@media (max-width: 920px) {
  .site-header {
    flex-wrap: wrap;
    padding: 12px 0;
  }

  .nav-links {
    order: 3;
    width: 100%;
    overflow-x: auto;
  }

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

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

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

  .panel__header {
    flex-direction: column;
  }

  .panel-actions {
    width: 100%;
    justify-content: flex-start;
  }
}

@media (max-width: 560px) {
  .site-header,
  .app-shell,
  .site-footer {
    width: min(100% - 20px, 520px);
  }

  .hero__content,
  .top-workspace .hero__content,
  .has-results .top-workspace .hero__content {
    padding: 22px 18px;
  }

  .fortune-form {
    padding: 14px;
  }

  .form-actions,
  .summary-grid,
  .fortune-metrics,
  .fortune-detail,
  .dense-board,
  .time-grid,
  .month-grid,
  .zodiac-grid,
  .related-grid,
  .pillar-grid,
  .element-grid {
    grid-template-columns: 1fr;
  }

  .panel-actions,
  .tabs,
  .share-button {
    width: 100%;
  }
}

body.is-start .hero__visual,
body.is-start .hero-tags,
body.is-start .nav-links,
body.is-start .control-deck,
body.is-start .summary-grid,
body.is-start .content-grid,
body.is-start .zodiac-panel,
body.is-start .related-panel,
body.is-start .faq {
  display: none;
}

body.has-results .top-workspace {
  display: none;
}

body.has-results .app-shell {
  padding-top: 18px;
}

body.has-results .content-grid {
  margin-top: 0;
}

body.has-results .panel.result-panel {
  scroll-margin-top: 92px;
}

/* Final pass: make the first screen cleaner on the common desktop preview width. */
@media (min-width: 1120px) {
  .top-workspace {
    grid-template-columns: minmax(0, 1fr) 280px;
    align-items: start;
  }

  .top-workspace .hero {
    grid-template-columns: 1fr;
  }

  .top-workspace .hero__content {
    padding: 30px 30px 18px;
  }

  .top-workspace .hero h1 {
    max-width: 680px;
    font-size: 2.24rem;
  }

  .top-workspace .hero__lead {
    max-width: 680px;
  }

  .top-workspace .hero__visual {
    padding: 0 22px 22px;
  }

  .top-workspace .dashboard-preview {
    grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
    animation-duration: 7s;
  }

  .top-workspace .preview-card--chart {
    min-height: 104px;
  }

  .top-workspace .chart-line {
    height: 60px;
  }

  .top-workspace .mini-facts {
    grid-column: 1 / -1;
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .top-workspace .mini-facts article {
    display: grid;
    min-height: 42px;
    align-content: center;
    justify-items: start;
    gap: 4px;
  }

  .top-workspace .mini-facts strong {
    text-align: left;
  }

  .top-workspace .summary-grid {
    align-content: start;
  }

  .top-workspace .summary-card {
    min-height: 148px;
  }
}

/* Animated search backdrop and start-screen visual composition. */
body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
}

body::before {
  background:
    linear-gradient(115deg, rgba(29, 78, 216, 0.08) 0 1px, transparent 1px 128px),
    linear-gradient(25deg, rgba(15, 118, 110, 0.08) 0 1px, transparent 1px 112px),
    linear-gradient(180deg, #f8fbff 0, #edf4fb 48%, #f7f9fc 100%);
  background-size: 128px 128px, 112px 112px, auto;
  animation: fortuneBackdrop 24s linear infinite;
}

body::after {
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0) 0 62%, rgba(219, 234, 254, 0.38) 62% 100%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0));
}

.is-start .hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.56fr);
  max-width: 1120px;
  overflow: hidden;
  background:
    linear-gradient(90deg, #ffffff 0 64%, #0f172a 64% 100%),
    #fff;
}

.is-start .hero::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 38%;
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.08) 0 1px, transparent 1px 54px),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.06) 0 1px, transparent 1px 54px);
  opacity: 0.62;
  pointer-events: none;
  animation: panelGridDrift 18s linear infinite;
}

body.is-start .hero__visual {
  position: relative;
  z-index: 1;
  display: grid;
  min-height: 100%;
  align-items: stretch;
  padding: 28px;
}

body.is-start .result-visual {
  display: none;
}

.ambient-fortune {
  position: relative;
  display: grid;
  min-height: 520px;
  align-content: space-between;
  overflow: hidden;
  border: 1px solid rgba(219, 234, 254, 0.2);
  border-radius: 8px;
  padding: 22px;
  background:
    linear-gradient(145deg, rgba(30, 64, 175, 0.88), rgba(15, 23, 42, 0.96) 58%, rgba(15, 118, 110, 0.74)),
    #0f172a;
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.ambient-fortune::before,
.ambient-fortune::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.ambient-fortune::before {
  inset: 40px 34px auto auto;
  width: 180px;
  height: 180px;
  border: 1px solid rgba(219, 234, 254, 0.26);
  border-radius: 50%;
  box-shadow:
    inset 0 0 0 28px rgba(255, 255, 255, 0.04),
    inset 0 0 0 56px rgba(255, 255, 255, 0.03);
  animation: wheelBreathe 6s ease-in-out infinite;
}

.ambient-fortune::after {
  right: 24px;
  bottom: 26px;
  left: 24px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.52), transparent);
  animation: scanLine 4.5s ease-in-out infinite;
}

.ambient-fortune__top {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 8px;
}

.ambient-fortune__top span,
.ambient-cards span {
  color: rgba(219, 234, 254, 0.72);
  font-size: 0.76rem;
  font-weight: 950;
}

.ambient-fortune__top strong {
  max-width: 220px;
  font-size: 1.55rem;
  line-height: 1.18;
}

.fortune-wheel {
  position: relative;
  z-index: 1;
  display: grid;
  width: min(78%, 260px);
  aspect-ratio: 1;
  place-items: center;
  justify-self: center;
  margin: 20px 0;
  border: 1px solid rgba(219, 234, 254, 0.22);
  border-radius: 50%;
  background:
    radial-gradient(circle at center, rgba(255, 255, 255, 0.12) 0 20%, transparent 21%),
    conic-gradient(from 90deg, rgba(56, 189, 248, 0.52), rgba(45, 212, 191, 0.44), rgba(216, 155, 35, 0.54), rgba(56, 189, 248, 0.52));
  animation: wheelTurn 18s linear infinite;
}

.fortune-wheel span {
  position: absolute;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.72);
  color: #fff;
  font-weight: 950;
  animation: wheelTextHold 18s linear infinite;
}

.fortune-wheel span:nth-child(1) {
  transform: translateY(-102px);
}

.fortune-wheel span:nth-child(2) {
  transform: rotate(72deg) translateY(-102px) rotate(-72deg);
}

.fortune-wheel span:nth-child(3) {
  transform: rotate(144deg) translateY(-102px) rotate(-144deg);
}

.fortune-wheel span:nth-child(4) {
  transform: rotate(216deg) translateY(-102px) rotate(-216deg);
}

.fortune-wheel span:nth-child(5) {
  transform: rotate(288deg) translateY(-102px) rotate(-288deg);
}

.flow-lines {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 10px;
}

.flow-lines span {
  display: block;
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
}

.flow-lines span::before {
  content: "";
  display: block;
  width: 62%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #38bdf8, #2dd4bf);
  transform-origin: left;
  animation: lineFlow 3.8s ease-in-out infinite;
}

.flow-lines span:nth-child(2)::before {
  width: 82%;
  animation-delay: 0.3s;
}

.flow-lines span:nth-child(3)::before {
  width: 48%;
  animation-delay: 0.6s;
}

.flow-lines span:nth-child(4)::before {
  width: 70%;
  animation-delay: 0.9s;
}

.ambient-cards {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 10px;
}

.ambient-cards article {
  display: grid;
  gap: 4px;
  border: 1px solid rgba(219, 234, 254, 0.18);
  border-radius: 8px;
  padding: 13px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
  animation: cardLift 5s ease-in-out infinite;
}

.ambient-cards article:nth-child(2) {
  animation-delay: 0.5s;
}

.ambient-cards article:nth-child(3) {
  animation-delay: 1s;
}

.ambient-cards strong {
  color: #fff;
  font-size: 0.96rem;
}

@keyframes fortuneBackdrop {
  from {
    background-position: 0 0, 0 0, 0 0;
  }

  to {
    background-position: 128px 128px, -112px 112px, 0 0;
  }
}

@keyframes panelGridDrift {
  from {
    background-position: 0 0, 0 0;
  }

  to {
    background-position: 54px 0, 0 54px;
  }
}

@keyframes wheelBreathe {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.8;
  }

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

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

@keyframes wheelTextHold {
  to {
    rotate: -360deg;
  }
}

@keyframes lineFlow {
  0%,
  100% {
    transform: scaleX(0.72);
    filter: saturate(1);
  }

  50% {
    transform: scaleX(1);
    filter: saturate(1.35);
  }
}

@keyframes scanLine {
  0%,
  100% {
    transform: translateY(0);
    opacity: 0.35;
  }

  50% {
    transform: translateY(-180px);
    opacity: 0.76;
  }
}

@keyframes cardLift {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-4px);
  }
}

@media (max-width: 920px) {
  .is-start .hero {
    grid-template-columns: 1fr;
    background: #fff;
  }

  .is-start .hero::after {
    display: none;
  }

  body.is-start .hero__visual {
    padding: 0 22px 22px;
  }

  .ambient-fortune {
    min-height: 340px;
  }

  .fortune-wheel {
    width: min(58vw, 220px);
  }
}

@media (max-width: 560px) {
  body.is-start .hero__visual {
    padding: 0 18px 18px;
  }

  .ambient-fortune {
    min-height: 300px;
    padding: 18px;
  }

  .ambient-fortune__top strong {
    font-size: 1.28rem;
  }

  .fortune-wheel {
    width: min(62vw, 190px);
  }

  .fortune-wheel span {
    width: 36px;
    height: 36px;
  }

  .fortune-wheel span:nth-child(1) {
    transform: translateY(-76px);
  }

  .fortune-wheel span:nth-child(2) {
    transform: rotate(72deg) translateY(-76px) rotate(-72deg);
  }

  .fortune-wheel span:nth-child(3) {
    transform: rotate(144deg) translateY(-76px) rotate(-144deg);
  }

  .fortune-wheel span:nth-child(4) {
    transform: rotate(216deg) translateY(-76px) rotate(-216deg);
  }

  .fortune-wheel span:nth-child(5) {
    transform: rotate(288deg) translateY(-76px) rotate(-288deg);
  }
}

/* Refined visual panel: quieter, report-like motion instead of symbolic spinning. */
.ambient-fortune {
  min-height: 520px;
  align-content: start;
  gap: 18px;
  background:
    linear-gradient(180deg, rgba(15, 23, 42, 0.94), rgba(30, 41, 59, 0.98)),
    #0f172a;
}

.ambient-fortune::before {
  inset: auto 22px 22px auto;
  width: 180px;
  height: 180px;
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(148, 163, 184, 0.14) 0 1px, transparent 1px 36px),
    linear-gradient(180deg, rgba(148, 163, 184, 0.12) 0 1px, transparent 1px 36px);
  box-shadow: none;
  opacity: 0.48;
  animation: panelGridDrift 16s linear infinite;
}

.ambient-fortune::after {
  top: 118px;
  right: 22px;
  bottom: auto;
  left: 22px;
  background: linear-gradient(90deg, transparent, rgba(56, 189, 248, 0.6), transparent);
  animation: scanLineQuiet 6s ease-in-out infinite;
}

.ambient-fortune__top strong {
  max-width: 260px;
  font-size: 1.38rem;
}

.birth-panel {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 10px;
  margin-top: 8px;
}

.birth-panel article {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  min-height: 52px;
  align-items: center;
  gap: 12px;
  border: 1px solid rgba(203, 213, 225, 0.16);
  border-radius: 8px;
  padding: 0 12px;
  background: rgba(255, 255, 255, 0.07);
}

.birth-panel span {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 8px;
  background: rgba(219, 234, 254, 0.12);
  color: #bfdbfe;
  font-size: 0.82rem;
  font-weight: 950;
}

.birth-panel i {
  display: block;
  height: 6px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.22);
}

.birth-panel i::before {
  content: "";
  display: block;
  width: 64%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #93c5fd, #5eead4);
  animation: measuredLine 5.6s ease-in-out infinite;
}

.birth-panel article:nth-child(2) i::before {
  width: 78%;
  animation-delay: 0.4s;
}

.birth-panel article:nth-child(3) i::before {
  width: 54%;
  animation-delay: 0.8s;
}

.birth-panel article:nth-child(4) i::before {
  width: 70%;
  animation-delay: 1.2s;
}

.birth-panel strong {
  color: #f8fafc;
  font-size: 0.86rem;
  white-space: nowrap;
}

.quiet-chart {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  align-items: end;
  min-height: 116px;
  gap: 12px;
  border: 1px solid rgba(203, 213, 225, 0.15);
  border-radius: 8px;
  padding: 16px;
  background:
    linear-gradient(90deg, rgba(148, 163, 184, 0.1) 0 1px, transparent 1px 20%),
    rgba(255, 255, 255, 0.05);
}

.quiet-chart span {
  display: block;
  min-height: 34px;
  border-radius: 999px 999px 4px 4px;
  background: linear-gradient(180deg, #93c5fd, #1d4ed8);
  opacity: 0.9;
  animation: quietBar 6.5s ease-in-out infinite;
}

.quiet-chart span:nth-child(1) {
  height: 48%;
}

.quiet-chart span:nth-child(2) {
  height: 74%;
  background: linear-gradient(180deg, #5eead4, #0f766e);
  animation-delay: 0.35s;
}

.quiet-chart span:nth-child(3) {
  height: 56%;
  background: linear-gradient(180deg, #fde68a, #d89b23);
  animation-delay: 0.7s;
}

.quiet-chart span:nth-child(4) {
  height: 66%;
  background: linear-gradient(180deg, #c4b5fd, #4f46e5);
  animation-delay: 1.05s;
}

.quiet-chart span:nth-child(5) {
  height: 42%;
  background: linear-gradient(180deg, #bae6fd, #0284c7);
  animation-delay: 1.4s;
}

.ambient-cards {
  grid-template-columns: 1fr;
}

.ambient-cards article {
  animation: none;
}

.ambient-cards article:hover {
  transform: translateY(-2px);
}

@keyframes measuredLine {
  0%,
  100% {
    transform: scaleX(0.86);
    opacity: 0.82;
  }

  50% {
    transform: scaleX(1);
    opacity: 1;
  }
}

@keyframes quietBar {
  0%,
  100% {
    transform: scaleY(0.9);
  }

  50% {
    transform: scaleY(1);
  }
}

@keyframes scanLineQuiet {
  0%,
  100% {
    transform: translateY(0);
    opacity: 0.18;
  }

  50% {
    transform: translateY(258px);
    opacity: 0.48;
  }
}

@media (max-width: 560px) {
  .birth-panel article {
    grid-template-columns: 32px minmax(0, 1fr);
  }

  .birth-panel strong {
    grid-column: 2;
  }

  .quiet-chart {
    min-height: 92px;
  }
}

/* Brand mark refinement. */
.brand__mark {
  position: relative;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(147, 197, 253, 0.48);
  border-radius: 8px;
  background:
    radial-gradient(circle at center, #1d4ed8 0 42%, transparent 43%),
    linear-gradient(135deg, #0f172a, #1e3a8a);
  color: #fff;
  font-size: 1.02rem;
  font-weight: 950;
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.16);
}

.brand__mark::before,
.brand__mark::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.brand__mark::before {
  inset: 7px;
  border: 1px solid rgba(219, 234, 254, 0.6);
  border-radius: 50%;
}

.brand__mark::after {
  top: 7px;
  right: 7px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #5eead4;
  box-shadow: 0 0 0 4px rgba(94, 234, 212, 0.14);
}

/* Stronger first-screen atmosphere without distracting from the lookup form. */
body.is-start {
  background:
    linear-gradient(180deg, #f7fbff 0, #eef5fc 52%, #f6f8fb 100%);
}

body.is-start::before {
  background:
    linear-gradient(120deg, rgba(29, 78, 216, 0.11) 0 1px, transparent 1px 120px),
    linear-gradient(32deg, rgba(15, 118, 110, 0.1) 0 1px, transparent 1px 96px),
    linear-gradient(90deg, rgba(15, 23, 42, 0.045) 0 1px, transparent 1px 56px),
    linear-gradient(180deg, #f8fbff 0, #edf5fd 50%, #f7f9fc 100%);
  background-size: 120px 120px, 96px 96px, 56px 56px, auto;
  animation: startGridMove 28s linear infinite;
}

body.is-start::after {
  background:
    linear-gradient(118deg, transparent 0 18%, rgba(29, 78, 216, 0.09) 18% 31%, transparent 31% 100%),
    linear-gradient(62deg, transparent 0 54%, rgba(15, 118, 110, 0.09) 54% 67%, transparent 67% 100%),
    linear-gradient(90deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0));
  animation: startBandsMove 18s ease-in-out infinite alternate;
}

.is-start .app-shell {
  position: relative;
}

.is-start .app-shell::before,
.is-start .app-shell::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.is-start .app-shell::before {
  top: 18px;
  right: calc(50% - 620px);
  z-index: 0;
  width: 420px;
  height: 520px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(30, 64, 175, 0.1) 0 1px, transparent 1px 42px),
    linear-gradient(180deg, rgba(30, 64, 175, 0.08) 0 1px, transparent 1px 42px),
    rgba(255, 255, 255, 0.18);
  transform: rotate(-3deg);
  animation: analysisSheetFloat 8s ease-in-out infinite;
}

.is-start .app-shell::after {
  top: 148px;
  left: calc(50% - 690px);
  z-index: 0;
  width: 360px;
  height: 260px;
  border-top: 2px solid rgba(29, 78, 216, 0.26);
  border-bottom: 2px solid rgba(15, 118, 110, 0.22);
  background:
    linear-gradient(90deg, transparent 0 10%, rgba(29, 78, 216, 0.18) 10% 11%, transparent 11% 30%, rgba(15, 118, 110, 0.16) 30% 31%, transparent 31% 100%),
    repeating-linear-gradient(180deg, transparent 0 31px, rgba(15, 23, 42, 0.07) 31px 32px);
  opacity: 0.72;
  transform: rotate(4deg);
  animation: sideLedgerMove 9s ease-in-out infinite;
}

.is-start .top-workspace {
  position: relative;
  z-index: 1;
}

.is-start .hero {
  box-shadow:
    0 34px 90px rgba(15, 23, 42, 0.13),
    0 0 0 1px rgba(219, 227, 239, 0.72);
}

.is-start .hero::before {
  content: "";
  position: absolute;
  inset: auto 42% 0 0;
  display: block;
  height: 7px;
  background: linear-gradient(90deg, #1d4ed8, #0f766e, transparent);
  opacity: 0.75;
  animation: accentLineSlide 5.6s ease-in-out infinite;
  pointer-events: none;
}

@keyframes startGridMove {
  from {
    background-position: 0 0, 0 0, 0 0, 0 0;
  }

  to {
    background-position: 120px 120px, -96px 96px, 56px 0, 0 0;
  }
}

@keyframes startBandsMove {
  from {
    transform: translateX(-18px);
    opacity: 0.72;
  }

  to {
    transform: translateX(18px);
    opacity: 1;
  }
}

@keyframes analysisSheetFloat {
  0%,
  100% {
    transform: rotate(-3deg) translateY(0);
  }

  50% {
    transform: rotate(-2deg) translateY(14px);
  }
}

@keyframes sideLedgerMove {
  0%,
  100% {
    transform: rotate(4deg) translateY(0);
  }

  50% {
    transform: rotate(3deg) translateY(-12px);
  }
}

@keyframes accentLineSlide {
  0%,
  100% {
    transform: scaleX(0.64);
    transform-origin: left;
  }

  50% {
    transform: scaleX(1);
    transform-origin: left;
  }
}

@media (max-width: 920px) {
  .is-start .app-shell::before,
  .is-start .app-shell::after {
    display: none;
  }
}

/* Saju mood pass: paper, ink, seal-red accents, and myeongsik table rhythm. */
:root {
  --saju-ink: #16211e;
  --saju-green: #1f5f53;
  --saju-jade: #7fb7a6;
  --saju-paper: #fbfaf4;
  --saju-line: #d8c9aa;
  --saju-red: #a64233;
  --saju-gold: #bf8a2b;
}

body.is-start,
body.has-results {
  background:
    linear-gradient(180deg, #f7f4e9 0, #eef5f0 48%, #f8faf7 100%);
}

body.is-start::before,
body.has-results::before {
  background:
    linear-gradient(90deg, rgba(22, 33, 30, 0.045) 0 1px, transparent 1px 64px),
    linear-gradient(180deg, rgba(22, 33, 30, 0.04) 0 1px, transparent 1px 64px),
    linear-gradient(135deg, rgba(166, 66, 51, 0.055) 0 1px, transparent 1px 118px),
    linear-gradient(180deg, #fbfaf4 0, #eef5f0 100%);
  background-size: 64px 64px, 64px 64px, 118px 118px, auto;
  animation: sajuPaperDrift 32s linear infinite;
}

body.is-start::after,
body.has-results::after {
  background:
    linear-gradient(110deg, transparent 0 10%, rgba(31, 95, 83, 0.1) 10% 22%, transparent 22% 100%),
    linear-gradient(65deg, transparent 0 62%, rgba(166, 66, 51, 0.08) 62% 72%, transparent 72% 100%),
    repeating-linear-gradient(0deg, transparent 0 38px, rgba(191, 138, 43, 0.05) 38px 39px);
  animation: sajuInkLayer 20s ease-in-out infinite alternate;
}

.site-header {
  background: rgba(251, 250, 244, 0.9);
  border-bottom-color: rgba(88, 72, 49, 0.14);
}

.brand__mark {
  border-color: rgba(216, 201, 170, 0.72);
  background:
    radial-gradient(circle at center, var(--saju-red) 0 41%, transparent 42%),
    linear-gradient(135deg, #16211e, #1f5f53);
  box-shadow: 0 12px 26px rgba(22, 33, 30, 0.18);
}

.brand__mark::before {
  border-color: rgba(251, 250, 244, 0.72);
}

.brand__mark::after {
  background: #d8c9aa;
  box-shadow: 0 0 0 4px rgba(216, 201, 170, 0.16);
}

.today-chip {
  background: #eef7f2;
  color: var(--saju-green);
}

.hero,
.panel,
.zodiac-panel,
.related-panel,
.faq,
.summary-card {
  border-color: rgba(216, 201, 170, 0.82);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(251, 250, 244, 0.98)),
    var(--saju-paper);
}

.is-start .hero {
  background:
    linear-gradient(90deg, rgba(251, 250, 244, 0.98) 0 64%, rgba(22, 33, 30, 0.98) 64% 100%),
    var(--saju-paper);
}

.hero h1,
.panel__header h2,
.section-heading h2,
.fortune-main h3,
.summary-card strong {
  color: var(--saju-ink);
}

.eyebrow,
.hero-tags span,
.fortune-form label span {
  color: var(--saju-green);
}

.fortune-form,
.ad-card {
  border-color: rgba(216, 201, 170, 0.9);
  background:
    linear-gradient(90deg, rgba(216, 201, 170, 0.12) 0 1px, transparent 1px 32px),
    linear-gradient(180deg, rgba(216, 201, 170, 0.1) 0 1px, transparent 1px 32px),
    rgba(255, 255, 255, 0.78);
}

.fortune-form input,
.fortune-form select {
  border-color: #c9b894;
  background: #fffefa;
}

.fortune-form input:focus,
.fortune-form select:focus {
  border-color: var(--saju-green);
  box-shadow: 0 0 0 4px rgba(31, 95, 83, 0.14);
}

.button--primary {
  background: linear-gradient(135deg, var(--saju-green), #153d36);
  box-shadow: 0 16px 32px rgba(31, 95, 83, 0.22);
}

.button--ghost,
.share-button,
.reset-button {
  color: var(--saju-green);
  border-color: rgba(216, 201, 170, 0.95);
  background: #fffefa;
}

.button--ghost:hover,
.share-button:hover,
.reset-button:hover {
  border-color: var(--saju-green);
  background: #eef7f2;
}

.ambient-fortune,
.side-panel {
  background:
    linear-gradient(180deg, #16211e, #1f3f38 58%, #1f5f53),
    #16211e;
}

.ambient-fortune {
  border-color: rgba(216, 201, 170, 0.22);
}

.ambient-fortune__top span,
.ambient-cards span {
  color: rgba(216, 201, 170, 0.78);
}

.ambient-fortune__top strong {
  color: #fffefa;
}

.birth-panel article,
.quiet-chart,
.ambient-cards article {
  border-color: rgba(216, 201, 170, 0.22);
  background: rgba(251, 250, 244, 0.075);
}

.birth-panel span {
  background: rgba(216, 201, 170, 0.14);
  color: #f5e7c8;
}

.birth-panel i::before,
.quiet-chart span {
  background: linear-gradient(180deg, #d8c9aa, var(--saju-green));
}

.quiet-chart span:nth-child(2) {
  background: linear-gradient(180deg, #7fb7a6, #1f5f53);
}

.quiet-chart span:nth-child(3) {
  background: linear-gradient(180deg, #e0b35d, #bf8a2b);
}

.quiet-chart span:nth-child(4) {
  background: linear-gradient(180deg, #c87b6c, #a64233);
}

.quiet-chart span:nth-child(5) {
  background: linear-gradient(180deg, #9fb7c7, #405f70);
}

.is-start .app-shell::before {
  border-color: rgba(216, 201, 170, 0.48);
  background:
    linear-gradient(90deg, rgba(31, 95, 83, 0.11) 0 1px, transparent 1px 42px),
    linear-gradient(180deg, rgba(31, 95, 83, 0.09) 0 1px, transparent 1px 42px),
    rgba(251, 250, 244, 0.34);
}

.is-start .app-shell::after {
  border-top-color: rgba(166, 66, 51, 0.3);
  border-bottom-color: rgba(31, 95, 83, 0.24);
}

.is-start .hero::before {
  background: linear-gradient(90deg, var(--saju-green), var(--saju-red), transparent);
}

.score-ring {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  background:
    linear-gradient(180deg, #fffefa, #f8f3e7),
    #fffefa;
  box-shadow:
    inset 0 0 0 1px rgba(216, 201, 170, 0.9),
    inset 8px 0 0 var(--saju-red),
    0 16px 26px rgba(22, 33, 30, 0.08);
}

.score-ring::before {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(31, 95, 83, 0.2);
  border-radius: 6px;
}

.score-ring strong {
  color: var(--saju-ink);
}

.fortune-label {
  background: var(--saju-ink);
  color: #fffefa;
}

.fortune-metrics article:nth-child(1),
.fortune-detail article:first-child {
  background: linear-gradient(180deg, #fffefa, #fff5d7);
}

.fortune-metrics article:nth-child(2),
.fortune-detail article:last-child {
  background: linear-gradient(180deg, #fffefa, #f8e9e5);
}

.fortune-metrics article:nth-child(3) {
  background: linear-gradient(180deg, #fffefa, #edf6e9);
}

.fortune-metrics article:nth-child(4) {
  background: linear-gradient(180deg, #fffefa, #edf5f8);
}

.fortune-metrics i,
.element-grid i,
.time-grid i {
  background: linear-gradient(90deg, var(--saju-red), var(--saju-gold), var(--saju-green));
}

.long-report article {
  border-left-color: var(--saju-red);
  background:
    linear-gradient(90deg, rgba(166, 66, 51, 0.045) 0 1px, transparent 1px 34px),
    #fffefa;
}

.long-report article:nth-of-type(2),
.saju-report {
  border-left-color: var(--saju-green);
}

.long-report article:nth-of-type(3) {
  border-left-color: var(--saju-gold);
}

.side-panel {
  border-color: rgba(216, 201, 170, 0.28);
}

.guide-list li > span {
  background: #fff4d8;
  color: var(--saju-green);
}

.notice-box,
.side-data {
  border-color: rgba(216, 201, 170, 0.22);
  background: rgba(251, 250, 244, 0.1);
}

.side-data li::marker {
  color: #d8c9aa;
}

@keyframes sajuPaperDrift {
  from {
    background-position: 0 0, 0 0, 0 0, 0 0;
  }

  to {
    background-position: 64px 64px, -64px 64px, 118px 118px, 0 0;
  }
}

@keyframes sajuInkLayer {
  from {
    transform: translateX(-12px);
    opacity: 0.68;
  }

  to {
    transform: translateX(12px);
    opacity: 1;
  }
}

/* Final saju report direction */
body.is-start,
body.has-results {
  --report-ink: #17211d;
  --report-muted: #667064;
  --report-paper: #fffdf6;
  --report-paper-deep: #f5efe1;
  --report-green: #1d5b4f;
  --report-green-soft: #dcebe4;
  --report-red: #9b3f32;
  --report-gold: #b7852f;
  --report-line: #d9c8a6;
  color: var(--report-ink);
  background:
    linear-gradient(115deg, rgba(29, 91, 79, 0.08), transparent 28%),
    linear-gradient(245deg, rgba(155, 63, 50, 0.075), transparent 32%),
    linear-gradient(180deg, #f8f6ef 0%, #edf4f2 100%);
}

body.is-start::before,
body.has-results::before {
  background:
    linear-gradient(90deg, rgba(23, 33, 29, 0.045) 0 1px, transparent 1px 36px),
    linear-gradient(180deg, rgba(23, 33, 29, 0.035) 0 1px, transparent 1px 36px);
  opacity: 0.72;
  animation: sajuGridFloat 22s linear infinite;
}

body.is-start::after,
body.has-results::after {
  background:
    linear-gradient(118deg, transparent 0 18%, rgba(183, 133, 47, 0.12) 18% 18.6%, transparent 18.6% 100%),
    linear-gradient(62deg, transparent 0 64%, rgba(29, 91, 79, 0.11) 64% 64.6%, transparent 64.6% 100%),
    linear-gradient(180deg, rgba(255, 253, 246, 0.1), transparent 42%, rgba(155, 63, 50, 0.055));
  filter: none;
  opacity: 1;
  animation: sajuWashMove 18s ease-in-out infinite alternate;
}

.site-header {
  border-bottom: 1px solid rgba(217, 200, 166, 0.72);
  background: rgba(255, 253, 246, 0.9);
  backdrop-filter: blur(18px);
}

.brand {
  gap: 12px;
  color: var(--report-ink);
}

.brand__mark {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(29, 91, 79, 0.35);
  border-radius: 8px;
  background:
    linear-gradient(135deg, #1d5b4f, #17211d),
    #17211d;
  color: #fffdf6;
  font-size: 19px;
  font-weight: 900;
  box-shadow: 0 12px 26px rgba(23, 33, 29, 0.16);
}

.brand__mark::before,
.brand__mark::after {
  display: none;
}

.today-chip {
  border: 1px solid rgba(29, 91, 79, 0.22);
  background: #edf7f1;
  color: var(--report-green);
}

.nav-links a {
  color: #596559;
}

.nav-links a:hover {
  color: var(--report-green);
}

body.is-start .app-shell {
  width: min(1320px, calc(100% - 72px));
  max-width: 1320px;
  padding-top: 54px;
}

body.is-start .app-shell::before {
  inset: 24px 42px auto auto;
  width: min(42vw, 560px);
  height: 520px;
  border: 1px solid rgba(217, 200, 166, 0.58);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(183, 133, 47, 0.09) 0 1px, transparent 1px 46px),
    linear-gradient(180deg, rgba(183, 133, 47, 0.075) 0 1px, transparent 1px 46px),
    rgba(255, 253, 246, 0.46);
  transform: rotate(-1.5deg);
}

body.is-start .app-shell::after {
  inset: auto auto 70px 16px;
  width: 44vw;
  height: 260px;
  border-top: 1px solid rgba(155, 63, 50, 0.28);
  border-bottom: 1px solid rgba(29, 91, 79, 0.2);
  background:
    linear-gradient(90deg, transparent, rgba(29, 91, 79, 0.1), transparent),
    linear-gradient(180deg, rgba(255, 253, 246, 0.24), transparent);
  transform: rotate(2deg);
}

body.is-start .top-workspace {
  position: relative;
}

body.is-start .hero {
  width: 100%;
  max-width: none;
  grid-template-columns: minmax(0, 1.02fr) minmax(360px, 0.88fr);
  gap: 34px;
  align-items: stretch;
  border: 1px solid rgba(217, 200, 166, 0.82);
  border-radius: 8px;
  background:
    linear-gradient(100deg, rgba(255, 253, 246, 0.98) 0 58%, rgba(246, 239, 224, 0.84) 58% 100%),
    var(--report-paper);
  box-shadow: 0 30px 70px rgba(23, 33, 29, 0.12);
  overflow: hidden;
}

body.is-start .hero::before {
  width: 7px;
  height: 100%;
  background: linear-gradient(180deg, var(--report-green), var(--report-gold), var(--report-red));
  opacity: 1;
}

body.is-start .hero__content {
  padding: clamp(34px, 4vw, 62px) 0 clamp(34px, 4vw, 62px);
}

body.is-start .eyebrow {
  color: var(--report-green);
  letter-spacing: 0;
}

body.is-start .hero h1 {
  max-width: 760px;
  color: var(--report-ink);
  font-size: clamp(40px, 5.8vw, 78px);
  line-height: 1.04;
  letter-spacing: 0;
}

body.is-start .hero__lead {
  max-width: 700px;
  color: #606b61;
  font-size: clamp(18px, 2.1vw, 25px);
  line-height: 1.72;
}

body.is-start .fortune-form {
  margin-top: 34px;
  border: 1px solid rgba(217, 200, 166, 0.88);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(29, 91, 79, 0.05) 0 1px, transparent 1px 34px),
    linear-gradient(180deg, rgba(29, 91, 79, 0.04) 0 1px, transparent 1px 34px),
    rgba(255, 253, 246, 0.92);
  box-shadow: 0 18px 38px rgba(23, 33, 29, 0.08);
}

body.is-start .fortune-form label span {
  color: #39443d;
}

body.is-start .fortune-form input,
body.is-start .fortune-form select {
  height: 70px;
  border-radius: 8px;
  border-color: rgba(29, 91, 79, 0.26);
  background: #fffef9;
  color: var(--report-ink);
}

body.is-start .button {
  min-height: 64px;
  border-radius: 8px;
}

body.is-start .button--primary {
  background: linear-gradient(135deg, #1d5b4f, #173a34);
  box-shadow: 0 18px 34px rgba(29, 91, 79, 0.22);
}

body.is-start .button--ghost {
  border-color: rgba(217, 200, 166, 0.95);
  color: var(--report-green);
  background: #fffdf6;
}

body.is-start .ad-card {
  min-height: 0;
  height: 220px !important;
  max-height: 220px;
  overflow: hidden;
  border-radius: 8px;
  border-color: rgba(217, 200, 166, 0.8);
  background:
    linear-gradient(90deg, rgba(29, 91, 79, 0.04) 0 1px, transparent 1px 38px),
    linear-gradient(180deg, rgba(29, 91, 79, 0.035) 0 1px, transparent 1px 38px),
    rgba(249, 251, 248, 0.9);
}

body.is-start .hero-tags span {
  border-color: rgba(29, 91, 79, 0.16);
  background: #edf5ee;
  color: var(--report-green);
}

body.is-start .hero__visual {
  display: flex;
  align-items: stretch;
  min-height: 680px;
  padding: clamp(24px, 3vw, 42px);
  border-left: 1px solid rgba(217, 200, 166, 0.6);
  background:
    linear-gradient(90deg, rgba(255, 253, 246, 0.08) 0 1px, transparent 1px 42px),
    linear-gradient(180deg, rgba(255, 253, 246, 0.07) 0 1px, transparent 1px 42px),
    linear-gradient(160deg, #17332f, #1d5b4f 58%, #735528);
}

body.is-start .dashboard-preview {
  display: none;
}

body.is-start .ambient-fortune {
  width: 100%;
  min-height: 100%;
  padding: 30px;
  border: 1px solid rgba(255, 253, 246, 0.18);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(255, 253, 246, 0.055) 0 1px, transparent 1px 28px),
    linear-gradient(180deg, rgba(255, 253, 246, 0.045) 0 1px, transparent 1px 28px),
    rgba(12, 28, 25, 0.46);
  box-shadow: inset 0 0 0 1px rgba(217, 200, 166, 0.08);
}

body.is-start .ambient-fortune::before {
  inset: 22px 24px auto auto;
  width: 150px;
  height: 150px;
  border: 1px solid rgba(217, 200, 166, 0.36);
  border-radius: 50%;
  background:
    conic-gradient(from 40deg, rgba(217, 200, 166, 0.8), rgba(155, 63, 50, 0.55), rgba(29, 91, 79, 0.78), rgba(217, 200, 166, 0.8));
  opacity: 0.42;
  animation: sajuSlowTurn 20s linear infinite;
}

body.is-start .ambient-fortune::after {
  inset: auto auto 32px 28px;
  width: 78%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(217, 200, 166, 0.75), transparent);
  transform: none;
  animation: sajuLineBreath 4.5s ease-in-out infinite alternate;
}

body.is-start .ambient-fortune__top {
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(217, 200, 166, 0.24);
}

body.is-start .ambient-fortune__top span {
  color: #decfae;
  font-size: 14px;
}

body.is-start .ambient-fortune__top strong {
  max-width: 360px;
  color: #fffdf6;
  font-size: clamp(24px, 2.6vw, 34px);
  line-height: 1.22;
}

body.is-start .birth-panel {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 28px;
}

body.is-start .birth-panel article {
  min-height: 142px;
  padding: 20px;
  border-radius: 8px;
  border: 1px solid rgba(217, 200, 166, 0.18);
  background: rgba(255, 253, 246, 0.08);
}

body.is-start .birth-panel span {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: rgba(217, 200, 166, 0.14);
  color: #f5e8c8;
  font-size: 23px;
}

body.is-start .birth-panel strong {
  margin-top: 18px;
  color: #fffdf6;
}

body.is-start .five-elements-strip {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  margin-top: 20px;
}

body.is-start .five-elements-strip span {
  display: grid;
  place-items: center;
  height: 54px;
  border: 1px solid rgba(217, 200, 166, 0.22);
  border-radius: 8px;
  color: #f5e8c8;
  background: rgba(255, 253, 246, 0.075);
  font-size: 20px;
  font-weight: 900;
}

body.is-start .quiet-chart {
  height: 145px;
  align-items: end;
  margin-top: 20px;
  padding: 18px;
  border-radius: 8px;
}

body.is-start .quiet-chart span {
  border-radius: 3px 3px 0 0;
  animation: elementPulse 3.2s ease-in-out infinite alternate;
}

body.is-start .ambient-cards {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 20px;
}

body.is-start .ambient-cards article {
  display: grid;
  grid-template-columns: 1fr;
  align-content: center;
  min-height: 92px;
  border-radius: 8px;
}

body.is-start .ambient-cards span {
  color: #decfae;
}

body.is-start .ambient-cards strong {
  color: #fffdf6;
}

body.has-results .app-shell {
  width: min(1480px, calc(100% - 64px));
  max-width: 1480px;
  padding-top: 42px;
}

body.has-results .content-grid {
  grid-template-columns: minmax(0, 1fr) 340px;
  align-items: start;
  gap: 28px;
}

body.has-results .panel.result-panel {
  display: flex;
  flex-direction: column;
  gap: 22px;
  border: 1px solid rgba(217, 200, 166, 0.82);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(29, 91, 79, 0.035) 0 1px, transparent 1px 42px),
    linear-gradient(180deg, rgba(29, 91, 79, 0.03) 0 1px, transparent 1px 42px),
    var(--report-paper);
  box-shadow: 0 28px 64px rgba(23, 33, 29, 0.1);
}

body.has-results #result-panel > .panel__header {
  order: 1;
}

body.has-results #result-panel > .share-status {
  order: 2;
}

body.has-results #result-panel > .fortune-main {
  order: 3;
}

body.has-results #result-panel > .saju-report {
  order: 4;
}

body.has-results #result-panel > .result-related {
  order: 4;
}

body.has-results #result-panel > .fortune-metrics {
  order: 5;
}

body.has-results #result-panel > .fortune-detail {
  order: 6;
}

body.has-results #result-panel > .long-report {
  order: 7;
}

body.has-results #result-panel > .dense-board {
  order: 8;
}

body.has-results #result-panel > .retention-panel {
  order: 9;
}

body.has-results .panel__header {
  gap: 24px;
  padding-bottom: 22px;
  border-bottom: 1px solid rgba(217, 200, 166, 0.75);
}

body.has-results .panel__header h2 {
  max-width: 760px;
  color: var(--report-ink);
  font-size: clamp(36px, 4.5vw, 58px);
  line-height: 1.12;
}

body.has-results .panel-actions {
  align-items: flex-end;
}

body.has-results .reset-button,
body.has-results .share-button,
body.has-results .tabs button {
  min-height: 50px;
  border-radius: 8px;
}

body.has-results .share-button,
body.has-results .reset-button {
  border-color: rgba(29, 91, 79, 0.22);
  background: #fffdf6;
  color: var(--report-green);
}

body.has-results .tabs {
  border-radius: 8px;
  border-color: rgba(217, 200, 166, 0.78);
  background: #f4eddf;
}

body.has-results .tabs button.is-active {
  background: var(--report-ink);
  color: #fffdf6;
}

body.has-results .fortune-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 172px;
  gap: 28px;
  align-items: stretch;
  padding: clamp(24px, 3vw, 34px);
  border: 1px solid rgba(217, 200, 166, 0.72);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 253, 246, 0.98), rgba(246, 239, 224, 0.82)),
    var(--report-paper);
}

body.has-results .fortune-main > div:first-child {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

body.has-results .fortune-label {
  align-self: flex-start;
  border: 1px solid rgba(29, 91, 79, 0.16);
  border-radius: 8px;
  background: #e8f2ed;
  color: var(--report-green);
}

body.has-results .fortune-main h3 {
  max-width: 900px;
  margin-top: 18px;
  color: var(--report-ink);
  font-size: clamp(27px, 3.3vw, 44px);
  line-height: 1.32;
  letter-spacing: 0;
}

body.has-results .fortune-main p:last-child {
  max-width: 920px;
  margin-top: 20px;
  color: #555f56;
  font-size: clamp(18px, 1.65vw, 22px);
  line-height: 1.82;
}

body.has-results .score-ring {
  align-self: stretch;
  display: grid;
  min-height: 210px;
  width: auto;
  height: auto;
  aspect-ratio: auto;
  place-items: center;
  padding: 22px 14px;
  border-radius: 8px;
  border: 1px solid rgba(155, 63, 50, 0.28);
  background:
    linear-gradient(180deg, rgba(255, 253, 246, 0.96), rgba(245, 239, 225, 0.95)),
    #fffdf6;
  box-shadow: inset 7px 0 0 var(--report-red);
}

body.has-results .score-ring::before {
  inset: 12px;
  border-color: rgba(155, 63, 50, 0.16);
}

body.has-results .score-ring span {
  color: var(--report-red);
  font-size: 14px;
}

body.has-results .score-ring strong {
  color: var(--report-ink);
  font-size: clamp(54px, 5vw, 72px);
}

body.has-results .score-ring small {
  color: #6e756d;
}

body.has-results .saju-report {
  border: 1px solid rgba(217, 200, 166, 0.78);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(183, 133, 47, 0.06) 0 1px, transparent 1px 34px),
    linear-gradient(180deg, rgba(183, 133, 47, 0.05) 0 1px, transparent 1px 34px),
    #fffaf0;
}

body.has-results .saju-heading {
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(217, 200, 166, 0.62);
}

body.has-results .saju-heading h3 {
  color: var(--report-ink);
  font-size: clamp(26px, 2.8vw, 36px);
}

body.has-results #sajuBalanceLabel {
  border: 1px solid rgba(29, 91, 79, 0.18);
  border-radius: 8px;
  background: #e8f2ed;
  color: var(--report-green);
}

body.has-results .pillar-grid article {
  border-radius: 8px;
  border-color: rgba(217, 200, 166, 0.74);
  background: rgba(255, 253, 246, 0.86);
}

body.has-results .pillar-grid strong {
  color: var(--report-ink);
  font-size: clamp(30px, 3vw, 42px);
}

body.has-results .element-grid article {
  border-radius: 8px;
  background: rgba(255, 253, 246, 0.72);
}

body.has-results .element-grid span {
  color: var(--report-green);
}

body.has-results .element-grid i,
body.has-results .fortune-metrics i,
body.has-results .time-grid i {
  background: linear-gradient(90deg, var(--report-green), var(--report-gold), var(--report-red));
}

body.has-results #sajuAdvice {
  color: #555f56;
  line-height: 1.75;
}

body.has-results .fortune-metrics {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

body.has-results .fortune-metrics article {
  min-height: 168px;
  border: 1px solid rgba(217, 200, 166, 0.72);
  border-radius: 8px;
  background: #fffdf6;
}

body.has-results .fortune-metrics span {
  color: #5e695e;
}

body.has-results .fortune-metrics strong {
  color: var(--report-ink);
}

body.has-results .fortune-detail article {
  border-radius: 8px;
  border: 1px solid rgba(217, 200, 166, 0.7);
}

body.has-results .fortune-detail article:first-child {
  background: #fff6d7;
}

body.has-results .fortune-detail article:last-child {
  background: #f6ebe8;
}

body.has-results .long-report {
  display: block;
  border: 1px solid rgba(217, 200, 166, 0.78);
  border-radius: 8px;
  background: #fffdf6;
}

body.has-results .long-report .section-heading {
  margin-bottom: 18px;
}

body.has-results .long-report article {
  position: relative;
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 26px;
  padding: 26px 0;
  border: 0;
  border-top: 1px solid rgba(217, 200, 166, 0.58);
  border-left: 0;
  background: transparent;
  box-shadow: none;
}

body.has-results .long-report span {
  color: var(--report-green);
  font-size: 18px;
}

body.has-results .long-report p {
  color: #4d574f;
  font-size: clamp(18px, 1.55vw, 21px);
  line-height: 1.95;
}

body.has-results .dense-board article,
body.has-results .time-grid article,
body.has-results .month-grid article {
  border-radius: 8px;
  border-color: rgba(217, 200, 166, 0.7);
  background: rgba(255, 253, 246, 0.92);
}

body.has-results .side-panel {
  position: sticky;
  top: 92px;
  border: 1px solid rgba(217, 200, 166, 0.22);
  border-radius: 8px;
  background:
    linear-gradient(180deg, #17211d, #1d3f37 52%, #1d5b4f),
    #17211d;
  box-shadow: 0 28px 60px rgba(23, 33, 29, 0.18);
}

body.has-results .side-panel h2 {
  color: #fffdf6;
  font-size: clamp(29px, 2.8vw, 40px);
  line-height: 1.22;
}

body.has-results .side-panel .eyebrow {
  color: #decfae;
}

body.has-results .guide-list li {
  gap: 16px;
}

body.has-results .guide-list li > span {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  background: #f5e8c8;
  color: var(--report-green);
}

body.has-results .guide-list strong {
  color: #fffdf6;
}

body.has-results .guide-list p,
body.has-results .notice-box p,
body.has-results .side-data li {
  color: rgba(255, 253, 246, 0.78);
}

body.has-results .notice-box,
body.has-results .side-data {
  border-radius: 8px;
  border-color: rgba(217, 200, 166, 0.22);
  background: rgba(255, 253, 246, 0.08);
}

@media (max-width: 1180px) {
  body.is-start .hero {
    grid-template-columns: 1fr;
  }

  body.is-start .hero__visual {
    min-height: auto;
    border-left: 0;
  }

  body.has-results .content-grid {
    grid-template-columns: 1fr;
  }

  body.has-results .side-panel {
    position: static;
  }
}

@media (max-width: 900px) {
  body.is-start .hero {
    position: relative;
  }

  body.is-start .hero__content {
    position: relative;
    z-index: 2;
  }

  body.is-start .hero__lead {
    font-size: 17px;
    line-height: 1.58;
  }

  body.is-start .fortune-form {
    margin-top: 22px;
    padding: 18px;
  }

  body.is-start .fortune-form input,
  body.is-start .fortune-form select {
    height: 58px;
  }

  body.is-start .button {
    min-height: 56px;
  }

  body.is-start .ad-card {
    min-height: 180px;
  }

  body.is-start .hero__visual {
    position: absolute;
    inset: auto 0 0 0;
    z-index: 1;
    min-height: 0;
    height: 420px;
    padding: 14px;
    overflow: hidden;
    border-left: 0;
    opacity: 0.24;
    pointer-events: none;
  }

  body.is-start .ambient-fortune {
    height: 100%;
    padding: 18px;
    overflow: hidden;
  }

  body.is-start .ambient-fortune__top {
    padding-bottom: 14px;
  }

  body.is-start .ambient-fortune__top strong {
    max-width: 320px;
    font-size: 22px;
  }

  body.is-start .birth-panel {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 14px;
  }

  body.is-start .birth-panel article {
    min-height: 86px;
    padding: 12px;
  }

  body.is-start .birth-panel span {
    width: 34px;
    height: 34px;
    font-size: 18px;
  }

  body.is-start .birth-panel strong {
    margin-top: 10px;
    font-size: 13px;
  }

  body.is-start .five-elements-strip {
    margin-top: 12px;
  }

  body.is-start .five-elements-strip span {
    height: 36px;
    font-size: 15px;
  }

  body.is-start .quiet-chart {
    height: 78px;
    margin-top: 12px;
    padding: 10px;
  }

  body.is-start .ambient-cards {
    display: none;
  }
}

@media (max-width: 760px) {
  body.is-start .app-shell,
  body.has-results .app-shell {
    padding: 22px 14px 48px;
  }

  body.is-start .hero {
    gap: 22px;
  }

  body.is-start .hero__content {
    padding: 28px 0 0;
  }

  body.is-start .hero h1 {
    font-size: clamp(34px, 11vw, 48px);
  }

  body.is-start .hero__lead {
    font-size: 17px;
    line-height: 1.58;
  }

  body.is-start .fortune-form {
    margin-top: 22px;
    padding: 18px;
  }

  body.is-start .fortune-form input,
  body.is-start .fortune-form select {
    height: 58px;
  }

  body.is-start .button {
    min-height: 56px;
  }

  body.is-start .ad-card {
    min-height: 180px;
  }

  body.is-start .hero__visual {
    min-height: auto;
    height: 360px;
    padding: 14px;
    overflow: hidden;
  }

  body.is-start .ambient-fortune {
    height: 100%;
    padding: 18px;
    overflow: hidden;
  }

  body.is-start .ambient-fortune__top {
    padding-bottom: 14px;
  }

  body.is-start .ambient-fortune__top strong {
    max-width: 280px;
    font-size: 22px;
  }

  body.is-start .birth-panel {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 14px;
  }

  body.is-start .birth-panel article {
    min-height: 86px;
    padding: 12px;
  }

  body.is-start .birth-panel span {
    width: 34px;
    height: 34px;
    font-size: 18px;
  }

  body.is-start .birth-panel strong {
    margin-top: 10px;
    font-size: 13px;
  }

  body.is-start .five-elements-strip {
    margin-top: 12px;
  }

  body.is-start .five-elements-strip span {
    height: 36px;
    font-size: 15px;
  }

  body.is-start .quiet-chart {
    height: 78px;
    margin-top: 12px;
    padding: 10px;
  }

  body.is-start .ambient-cards {
    display: none;
  }

  body.has-results .panel__header,
  body.has-results .panel-actions {
    align-items: stretch;
  }

  body.has-results .panel-actions {
    width: 100%;
  }

  body.has-results .fortune-main {
    grid-template-columns: 1fr;
    padding: 20px;
  }

  body.has-results .score-ring {
    min-height: 150px;
  }

  body.has-results .fortune-metrics {
    grid-template-columns: 1fr 1fr;
  }

  body.has-results .long-report article {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}

@keyframes sajuGridFloat {
  from {
    background-position: 0 0, 0 0;
  }

  to {
    background-position: 72px 72px, 72px 72px;
  }
}

@keyframes sajuWashMove {
  from {
    transform: translate3d(-10px, 0, 0);
  }

  to {
    transform: translate3d(10px, -8px, 0);
  }
}

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

@keyframes sajuLineBreath {
  from {
    opacity: 0.35;
    transform: scaleX(0.82);
  }

  to {
    opacity: 0.95;
    transform: scaleX(1);
  }
}

@keyframes elementPulse {
  from {
    transform: scaleY(0.86);
  }

  to {
    transform: scaleY(1);
  }
}

/* First-screen correction: keep the saju landing page composed, not zoomed */
body.is-start .site-header {
  width: min(1180px, calc(100% - 48px));
  min-height: 70px;
  border-radius: 0 0 8px 8px;
  overflow: visible;
}

body.is-start .brand__mark {
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  font-size: 17px;
}

body.is-start .app-shell {
  width: min(1180px, calc(100% - 48px));
  max-width: 1180px;
  padding-top: 34px;
}

body.is-start .hero {
  width: 100%;
  max-width: none;
  grid-template-columns: minmax(0, 0.94fr) minmax(390px, 0.86fr);
  gap: 0;
  min-height: auto;
}

body.is-start .hero__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 660px;
  padding: 44px 46px;
}

body.is-start .hero h1 {
  max-width: 620px;
  font-size: clamp(34px, 3.45vw, 46px);
  line-height: 1.16;
  word-break: keep-all;
}

body.is-start .hero__lead {
  max-width: 620px;
  margin-top: 22px;
  font-size: clamp(17px, 1.45vw, 20px);
  line-height: 1.68;
  word-break: keep-all;
}

body.is-start .fortune-form {
  max-width: 660px;
  margin-top: 30px;
  padding: 22px;
}

body.is-start .fortune-form input,
body.is-start .fortune-form select {
  height: 58px;
  font-size: 18px;
}

body.is-start .form-actions {
  margin-top: 18px;
}

body.is-start .button {
  min-height: 56px;
  font-size: 17px;
}

body.is-start .ad-card {
  max-width: 660px;
  margin-top: 22px;
}

body.is-start .hero__visual {
  min-height: 660px;
  max-height: 700px;
  padding: 30px;
}

body.is-start .ambient-fortune {
  min-height: 0;
  height: 100%;
  padding: 26px;
}

body.is-start .ambient-fortune__top {
  padding-bottom: 22px;
}

body.is-start .ambient-fortune__top strong {
  max-width: 360px;
  font-size: clamp(24px, 2.2vw, 31px);
  line-height: 1.28;
}

body.is-start .birth-panel {
  gap: 12px;
  margin-top: 22px;
}

body.is-start .birth-panel article {
  min-height: 116px;
  padding: 16px;
}

body.is-start .birth-panel span {
  width: 38px;
  height: 38px;
  font-size: 20px;
}

body.is-start .birth-panel strong {
  margin-top: 12px;
  font-size: 14px;
}

body.is-start .five-elements-strip span {
  height: 44px;
  font-size: 18px;
}

body.is-start .quiet-chart {
  height: 116px;
  margin-top: 16px;
}

body.is-start .ambient-cards {
  gap: 10px;
  margin-top: 16px;
}

body.is-start .ambient-cards article {
  min-height: 76px;
  padding: 14px;
}

body.is-start .ambient-cards strong {
  font-size: 14px;
  line-height: 1.35;
}

@media (min-width: 1440px) {
  body.is-start .hero h1 {
    font-size: 46px;
  }

  body.is-start .hero__lead {
    font-size: 19px;
  }
}

@media (max-width: 1180px) {
  body.is-start .hero {
    grid-template-columns: 1fr;
  }

  body.is-start .hero__content {
    min-height: auto;
  }

  body.is-start .hero__visual {
    min-height: 360px;
    max-height: 420px;
  }
}

@media (max-width: 760px) {
  body.is-start .site-header {
    width: min(100% - 24px, 100%);
  }

  body.is-start .app-shell {
    width: min(100% - 24px, 100%);
    padding-top: 20px;
  }

  body.is-start .hero__content {
    padding: 28px 20px;
  }

  body.is-start .hero h1 {
    font-size: clamp(32px, 9vw, 42px);
  }

  body.is-start .form-grid {
    grid-template-columns: 1fr;
  }
}

/* Ad and form correction */
body.is-start .fortune-form {
  width: 100%;
  max-width: 560px;
}

body.is-start .form-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.82fr);
  gap: 14px;
}

body.is-start .form-grid label {
  min-width: 0;
}

body.is-start .form-grid label:first-child {
  grid-column: 1 / -1;
}

body.is-start .fortune-form input,
body.is-start .fortune-form select {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  padding-right: 44px;
}

body.is-start .hero .ad-card {
  display: none;
}

body.is-start .ad-wide-shell {
  width: 100%;
  height: auto;
  margin: 0;
  overflow: visible;
}

body.is-start .ad-placement {
  width: 100%;
  min-height: 280px;
  height: auto;
  margin: 18px 0 0;
  overflow: visible;
}

body.is-start .ad-card--wide {
  display: grid;
  width: 100%;
  max-width: none;
  min-height: 112px;
  height: auto !important;
  max-height: none;
  margin: 0;
  overflow: visible;
  border-radius: 8px;
  border: 1px dashed rgba(217, 200, 166, 0.9);
  background:
    linear-gradient(90deg, rgba(29, 91, 79, 0.04) 0 1px, transparent 1px 40px),
    linear-gradient(180deg, rgba(29, 91, 79, 0.035) 0 1px, transparent 1px 40px),
    rgba(255, 253, 246, 0.9);
}

body.is-start .ad-card--wide ins.adsbygoogle {
  min-height: 250px;
}

body.is-start .ad-placement:has(.adsbygoogle[data-ad-status="unfilled"]) {
  height: 0;
  min-height: 0;
  margin: 0;
  border: 0;
  overflow: hidden;
}

body.is-start .ad-placement:has(.adsbygoogle[data-ad-status="unfilled"]) .ad-card--wide {
  min-height: 0;
  height: 0 !important;
  padding: 0;
  border: 0;
  overflow: hidden;
}

body.is-start .hero {
  margin-bottom: 0;
}

@media (max-width: 760px) {
  body.is-start .form-grid {
    grid-template-columns: 1fr;
  }

  body.is-start .ad-card--wide {
    min-height: 250px;
  }

  body.is-start .ad-placement {
    min-height: 250px;
    height: auto;
  }
}

/* Recommended fortune block inside result */
body.has-results .result-related {
  display: block;
  border: 1px solid rgba(217, 200, 166, 0.78);
  border-radius: 8px;
  padding: 22px;
  background:
    linear-gradient(90deg, rgba(29, 91, 79, 0.035) 0 1px, transparent 1px 34px),
    linear-gradient(180deg, rgba(29, 91, 79, 0.03) 0 1px, transparent 1px 34px),
    #fffdf6;
  box-shadow: none;
}

body.has-results .result-related::before {
  display: none;
}

body.has-results .result-related .section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
}

body.has-results .result-related .section-heading h3 {
  margin: 4px 0 0;
  color: var(--report-ink);
  font-size: clamp(22px, 2vw, 28px);
  line-height: 1.28;
}

body.has-results .result-related .section-heading > span {
  flex: 0 0 auto;
  border: 1px solid rgba(29, 91, 79, 0.18);
  border-radius: 8px;
  padding: 8px 12px;
  background: #e8f2ed;
  color: var(--report-green);
  font-size: 14px;
  font-weight: 900;
}

body.has-results .result-related .related-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

body.has-results .result-related .related-grid button {
  min-height: 92px;
  border: 1px solid rgba(217, 200, 166, 0.72);
  border-radius: 8px;
  padding: 16px;
  background: rgba(255, 253, 246, 0.92);
  color: var(--report-ink);
  text-align: left;
  box-shadow: none;
}

body.has-results .result-related .related-grid button:hover {
  border-color: rgba(29, 91, 79, 0.38);
  background: #f4fbf6;
  transform: translateY(-1px);
}

body.has-results .result-related .related-grid strong {
  display: block;
  color: var(--report-ink);
  font-size: 17px;
  line-height: 1.35;
}

body.has-results .result-related .related-grid small {
  display: block;
  margin-top: 8px;
  color: #667064;
  font-size: 14px;
  line-height: 1.45;
}

@media (max-width: 900px) {
  body.has-results .result-related .related-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  body.has-results .result-related {
    padding: 18px;
  }

  body.has-results .result-related .section-heading {
    align-items: start;
    flex-direction: column;
  }

  body.has-results .result-related .related-grid {
    grid-template-columns: 1fr;
  }
}

/* Result-screen correction: make the report readable instead of poster-sized */
body.has-results .site-header {
  width: min(1180px, calc(100% - 48px));
  min-height: 70px;
}

body.has-results .brand__mark {
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  font-size: 17px;
}

body.has-results .app-shell {
  width: min(1320px, calc(100% - 56px));
  max-width: 1320px;
  padding-top: 28px;
}

body.has-results .content-grid {
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 24px;
}

body.has-results .panel.result-panel {
  padding: 28px;
  gap: 18px;
}

body.has-results .panel__header {
  align-items: start;
  gap: 18px;
  padding-bottom: 18px;
}

body.has-results .panel__header h2 {
  max-width: 620px;
  font-size: clamp(30px, 2.5vw, 40px);
  line-height: 1.18;
  letter-spacing: 0;
}

body.has-results .panel-actions {
  gap: 10px;
}

body.has-results .reset-button,
body.has-results .share-button,
body.has-results .tabs button {
  min-height: 44px;
  padding: 0 18px;
  font-size: 16px;
}

body.has-results .tabs button {
  min-width: 64px;
}

body.has-results .fortune-main {
  grid-template-columns: minmax(0, 1fr) 132px;
  gap: 22px;
  padding: 24px;
}

body.has-results .fortune-label {
  padding: 8px 12px;
  font-size: 15px;
}

body.has-results .fortune-main h3 {
  max-width: 720px;
  margin-top: 14px;
  font-size: clamp(26px, 2.3vw, 34px);
  line-height: 1.35;
}

body.has-results .fortune-main p:last-child {
  max-width: 760px;
  margin-top: 14px;
  font-size: clamp(16px, 1.25vw, 18px);
  line-height: 1.78;
}

body.has-results .score-ring {
  align-self: center;
  width: 132px;
  min-width: 132px;
  height: 168px;
  min-height: 168px;
  padding: 16px 10px;
}

body.has-results .score-ring strong {
  font-size: clamp(42px, 4vw, 56px);
}

body.has-results .score-ring span,
body.has-results .score-ring small {
  font-size: 13px;
}

body.has-results .saju-report {
  padding: 24px;
}

body.has-results .saju-heading {
  padding-bottom: 16px;
}

body.has-results .saju-heading h3 {
  font-size: clamp(24px, 2vw, 30px);
}

body.has-results #sajuBalanceLabel {
  padding: 8px 12px;
  font-size: 15px;
}

body.has-results .pillar-grid {
  gap: 12px;
}

body.has-results .pillar-grid article {
  min-height: 130px;
  padding: 18px;
}

body.has-results .pillar-grid strong {
  font-size: clamp(28px, 2.5vw, 36px);
}

body.has-results .element-grid {
  gap: 12px;
}

body.has-results .element-grid article {
  padding: 16px;
}

body.has-results #sajuAdvice {
  margin-top: 16px;
  font-size: 17px;
}

body.has-results .fortune-metrics {
  gap: 12px;
}

body.has-results .fortune-metrics article {
  min-height: 132px;
  padding: 18px;
}

body.has-results .fortune-metrics strong {
  font-size: clamp(32px, 3vw, 42px);
}

body.has-results .fortune-detail article {
  padding: 18px;
}

body.has-results .fortune-detail strong {
  font-size: clamp(20px, 2vw, 26px);
}

body.has-results .long-report {
  padding: 24px;
}

body.has-results .long-report article {
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 22px;
  padding: 22px 0;
}

body.has-results .long-report span {
  font-size: 16px;
}

body.has-results .long-report p {
  font-size: clamp(16px, 1.2vw, 18px);
  line-height: 1.85;
}

body.has-results .side-panel {
  top: 86px;
  width: 320px;
  max-height: calc(100vh - 110px);
  overflow: auto;
  padding: 26px;
}

body.has-results .side-panel h2 {
  font-size: clamp(26px, 2.4vw, 32px);
  line-height: 1.28;
}

body.has-results .guide-list {
  gap: 18px;
}

body.has-results .guide-list li > span {
  width: 42px;
  height: 42px;
  font-size: 18px;
}

body.has-results .guide-list strong {
  font-size: 17px;
  line-height: 1.45;
}

body.has-results .guide-list p,
body.has-results .notice-box p,
body.has-results .side-data li {
  font-size: 15px;
  line-height: 1.7;
}

body.has-results .notice-box,
body.has-results .side-data {
  padding: 18px;
}

@media (max-width: 1180px) {
  body.has-results .content-grid {
    grid-template-columns: 1fr;
  }

  body.has-results .side-panel {
    width: auto;
  }
}

@media (max-width: 760px) {
  body.has-results .site-header {
    width: min(100% - 24px, 100%);
  }

  body.has-results .app-shell {
    width: min(100% - 24px, 100%);
    padding-top: 20px;
  }

  body.has-results .panel.result-panel {
    padding: 20px;
  }

  body.has-results .panel__header h2 {
    font-size: clamp(28px, 8vw, 36px);
  }

  body.has-results .fortune-main {
    grid-template-columns: 1fr;
  }

  body.has-results .fortune-main h3 {
    font-size: clamp(24px, 7vw, 32px);
  }

  body.has-results .score-ring {
    min-height: 130px;
  }

  body.has-results .fortune-metrics {
    grid-template-columns: 1fr 1fr;
  }

  body.has-results .long-report article {
    grid-template-columns: 1fr;
  }
}

/* Header/content alignment and 四柱 seal mark */
body.is-start .site-header,
body.has-results .site-header,
body.is-start .app-shell,
body.has-results .app-shell {
  width: min(1320px, calc(100% - 56px));
  max-width: 1320px;
}

body.is-start .brand__mark,
body.has-results .brand__mark,
.brand__mark {
  display: inline-grid;
  place-items: center;
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(217, 200, 166, 0.5);
  border-radius: 8px;
  background:
    linear-gradient(135deg, #173a34, #0f211e),
    #173a34;
  color: #fff8df;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 13px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0;
  box-shadow:
    inset 0 0 0 2px rgba(255, 248, 223, 0.06),
    0 12px 26px rgba(23, 33, 29, 0.16);
}

body.is-start .brand__mark::before,
body.is-start .brand__mark::after,
body.has-results .brand__mark::before,
body.has-results .brand__mark::after,
.brand__mark::before,
.brand__mark::after {
  display: none;
}

body.has-results .content-grid {
  width: 100%;
  margin-right: 0;
  margin-left: 0;
}

body.has-results .panel.result-panel,
body.has-results .side-panel {
  margin-top: 0;
}

@media (max-width: 760px) {
  body.is-start .site-header,
  body.has-results .site-header,
  body.is-start .app-shell,
  body.has-results .app-shell {
    width: min(100% - 24px, 100%);
  }

  body.is-start .brand__mark,
  body.has-results .brand__mark,
  .brand__mark {
    flex-basis: 38px;
    width: 38px;
    height: 38px;
    font-size: 12px;
  }
}

/* Button polish: clearer actions with a saju seal tone */
.button,
.reset-button,
.share-button,
.tabs button,
.quick-strip button,
.reading-nav a,
.related-grid button {
  position: relative;
  isolation: isolate;
  border-radius: 8px;
  letter-spacing: 0;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background-color 160ms ease,
    color 160ms ease,
    box-shadow 160ms ease;
}

.button::after,
.reset-button::after,
.share-button::after,
.tabs button::after,
.quick-strip button::after,
.related-grid button::after {
  content: "";
  position: absolute;
  inset: 1px;
  z-index: -1;
  border-radius: 7px;
  background:
    linear-gradient(135deg, rgba(255, 248, 223, 0.18), transparent 42%),
    linear-gradient(315deg, rgba(29, 91, 79, 0.1), transparent 44%);
  opacity: 0;
  transition: opacity 160ms ease;
}

.button:hover,
.reset-button:hover,
.share-button:hover,
.tabs button:hover,
.quick-strip button:hover,
.reading-nav a:hover,
.related-grid button:hover {
  transform: translateY(-1px);
}

.button:active,
.reset-button:active,
.share-button:active,
.tabs button:active,
.quick-strip button:active,
.related-grid button:active {
  transform: translateY(0);
}

.button:hover::after,
.reset-button:hover::after,
.share-button:hover::after,
.tabs button:hover::after,
.quick-strip button:hover::after,
.related-grid button:hover::after {
  opacity: 1;
}

.button--primary {
  border: 1px solid rgba(217, 200, 166, 0.52);
  background:
    linear-gradient(135deg, #1d5b4f 0%, #143a34 64%, #10251f 100%);
  color: #fffdf6;
  box-shadow:
    inset 0 1px 0 rgba(255, 248, 223, 0.2),
    0 14px 28px rgba(23, 58, 52, 0.22);
}

.button--primary:hover {
  background:
    linear-gradient(135deg, #246b5d 0%, #173f38 64%, #10251f 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 248, 223, 0.24),
    0 18px 34px rgba(23, 58, 52, 0.26);
}

.button--ghost,
.reset-button,
.share-button,
.quick-strip button,
.reading-nav a {
  border: 1px solid rgba(29, 91, 79, 0.22);
  background:
    linear-gradient(180deg, #fffdf6, #f8f2e6);
  color: var(--report-green);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.7),
    0 8px 18px rgba(23, 33, 29, 0.06);
}

.button--ghost:hover,
.reset-button:hover,
.share-button:hover,
.quick-strip button:hover,
.reading-nav a:hover {
  border-color: rgba(29, 91, 79, 0.42);
  background:
    linear-gradient(180deg, #fffdf6, #eef7f1);
  color: #123d35;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.75),
    0 12px 24px rgba(23, 33, 29, 0.09);
}

.tabs {
  overflow: hidden;
  border-radius: 8px;
  background: #f5efe1;
  box-shadow: inset 0 0 0 1px rgba(217, 200, 166, 0.78);
}

.tabs button {
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #6b7280;
  box-shadow: none;
}

.tabs button + button {
  border-left: 1px solid rgba(217, 200, 166, 0.72);
}

.tabs button.is-active {
  border-radius: 8px;
  background:
    linear-gradient(135deg, #17211d, #123d35);
  color: #fffdf6;
  box-shadow:
    inset 0 1px 0 rgba(255, 248, 223, 0.18),
    0 8px 16px rgba(23, 33, 29, 0.16);
}

body.has-results .result-related .related-grid button {
  overflow: hidden;
  border-color: rgba(217, 200, 166, 0.82);
  background:
    linear-gradient(180deg, #fffdf6, #f8f2e6);
  box-shadow:
    inset 4px 0 0 rgba(29, 91, 79, 0.72),
    0 8px 18px rgba(23, 33, 29, 0.05);
}

body.has-results .result-related .related-grid button::before {
  content: "看";
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  margin-bottom: 10px;
  border-radius: 8px;
  background: #e8f2ed;
  color: var(--report-green);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 15px;
  font-weight: 900;
}

body.has-results .result-related .related-grid button:hover {
  border-color: rgba(29, 91, 79, 0.42);
  background:
    linear-gradient(180deg, #fffdf6, #edf6f1);
  box-shadow:
    inset 4px 0 0 var(--report-green),
    0 14px 26px rgba(23, 33, 29, 0.08);
}

body.has-results .result-related .related-grid button:nth-child(2n)::before {
  content: "財";
  background: #fff4d8;
  color: #8a5a13;
}

body.has-results .result-related .related-grid button:nth-child(3n)::before {
  content: "氣";
  background: #f4ebe5;
  color: #9b3f32;
}

body.has-results .result-related .related-grid button:nth-child(4)::before {
  content: "五";
}

body.has-results .result-related .related-grid button:nth-child(5)::before {
  content: "띠";
  font-family: inherit;
  font-size: 13px;
}

body.has-results .result-related .related-grid button:nth-child(6)::before {
  content: "星";
}

/* Result recommendation buttons: quiet editorial cards, no intrusive badges */
body.has-results .result-related .related-grid button {
  display: flex;
  min-height: 108px;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
  overflow: visible;
  padding: 22px 24px;
  border: 1px solid rgba(217, 200, 166, 0.9);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 253, 246, 0.98), rgba(250, 245, 234, 0.96));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.72),
    0 10px 24px rgba(23, 33, 29, 0.04);
}

body.has-results .result-related .related-grid button::before {
  content: none;
  display: none;
}

body.has-results .result-related .related-grid button::after {
  inset: 0;
  z-index: -1;
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(29, 91, 79, 0.08), transparent 52%),
    linear-gradient(180deg, rgba(255, 248, 223, 0.28), transparent);
}

body.has-results .result-related .related-grid button:hover {
  border-color: rgba(29, 91, 79, 0.42);
  background:
    linear-gradient(180deg, rgba(255, 253, 246, 1), rgba(245, 250, 246, 0.98));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.78),
    0 14px 28px rgba(23, 33, 29, 0.08);
}

body.has-results .result-related .related-grid strong {
  margin: 0;
  color: #14211d;
  font-size: 1.05rem;
  line-height: 1.32;
}

body.has-results .result-related .related-grid small {
  color: #657065;
  font-size: 0.88rem;
  line-height: 1.45;
}

/* Final reading flow and ad placement */
body.has-results #result-panel > .fortune-main {
  order: 3;
}

body.has-results #result-panel > .fortune-metrics {
  order: 4;
}

body.has-results #result-panel > .fortune-detail {
  order: 5;
}

body.has-results #result-panel > .result-related {
  order: 6;
}

body.has-results #result-panel > .result-ad-placement {
  order: 7;
}

body.has-results #result-panel > .long-report {
  order: 8;
}

body.has-results #result-panel > .saju-report {
  order: 9;
}

body.has-results #result-panel > .dense-board {
  order: 10;
}

body.has-results #result-panel > .retention-panel {
  order: 11;
}

body.has-results.ad-variant-report #result-panel > .result-ad-placement {
  order: 9;
}

body.has-results.ad-variant-report #result-panel > .saju-report {
  order: 10;
}

body.has-results.ad-variant-report #result-panel > .dense-board {
  order: 11;
}

body.has-results.ad-variant-report #result-panel > .retention-panel {
  order: 12;
}

body.has-results .result-ad-placement {
  display: block;
  width: 100%;
  min-height: 280px;
  height: auto;
  margin: 14px 0 0;
  overflow: visible;
}

body.has-results .ad-card--result {
  display: grid;
  min-height: 280px;
  height: auto !important;
  width: 100%;
  padding: 16px 18px;
  border: 1px dashed rgba(217, 200, 166, 0.9);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(29, 91, 79, 0.035) 0 1px, transparent 1px 40px),
    linear-gradient(180deg, rgba(29, 91, 79, 0.03) 0 1px, transparent 1px 40px),
    rgba(255, 253, 246, 0.94);
  box-shadow: none;
  overflow: visible;
}

body.has-results .ad-card--result ins.adsbygoogle {
  min-height: 250px;
}

body.has-results .result-ad-placement:has(.adsbygoogle[data-ad-status="unfilled"]) {
  height: 0;
  min-height: 0;
  margin: 0;
  overflow: hidden;
}

body.has-results .result-ad-placement:has(.adsbygoogle[data-ad-status="unfilled"]) .ad-card--result {
  min-height: 0;
  height: 0 !important;
  padding: 0;
  border: 0;
  overflow: hidden;
}

/* More composed first screen graphic */
body.is-start .top-workspace {
  position: relative;
  isolation: isolate;
}

body.is-start .top-workspace::before,
body.is-start .top-workspace::after {
  content: "";
  position: absolute;
  z-index: -1;
  pointer-events: none;
}

body.is-start .top-workspace::before {
  inset: 86px 5% auto;
  height: 210px;
  border-top: 1px solid rgba(29, 91, 79, 0.09);
  border-bottom: 1px solid rgba(217, 200, 166, 0.42);
  background:
    repeating-linear-gradient(
      90deg,
      transparent 0 84px,
      rgba(29, 91, 79, 0.055) 84px 85px
    );
  transform: skewX(-10deg);
}

body.is-start .top-workspace::after {
  right: 7%;
  bottom: 22px;
  width: min(460px, 42vw);
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(29, 91, 79, 0.2), transparent);
}

body.is-start .hero__visual {
  overflow: hidden;
}

body.is-start .ambient-fortune {
  border-color: rgba(217, 200, 166, 0.26);
  background:
    linear-gradient(180deg, rgba(18, 61, 53, 0.94), rgba(29, 91, 79, 0.86) 58%, rgba(94, 74, 36, 0.68)),
    #123d35;
}

body.is-start .ambient-fortune__top strong {
  max-width: 620px;
  letter-spacing: 0;
}

body.is-start .birth-panel article {
  background: rgba(255, 253, 246, 0.075);
  transition:
    transform 240ms ease,
    background-color 240ms ease,
    border-color 240ms ease;
}

body.is-start .birth-panel article:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 248, 223, 0.28);
  background: rgba(255, 253, 246, 0.11);
}

body.is-start .birth-panel i {
  transform-origin: left center;
  animation: sajuPulse 3.8s ease-in-out infinite;
}

body.is-start .birth-panel article:nth-child(2) i {
  animation-delay: 0.4s;
}

body.is-start .birth-panel article:nth-child(3) i {
  animation-delay: 0.8s;
}

body.is-start .birth-panel article:nth-child(4) i {
  animation-delay: 1.2s;
}

body.is-start .five-elements-strip span {
  transition:
    transform 180ms ease,
    background-color 180ms ease;
}

body.is-start .five-elements-strip span:hover {
  transform: translateY(-2px);
  background: rgba(255, 248, 223, 0.14);
}

@keyframes sajuPulse {
  0%,
  100% {
    transform: scaleX(0.56);
    opacity: 0.42;
  }
  50% {
    transform: scaleX(1);
    opacity: 0.86;
  }
}

/* Reading-first result surface */
body.has-results .fortune-main {
  min-height: 0;
}

body.has-results .fortune-main h3 {
  max-width: 820px;
  font-size: clamp(25px, 2.5vw, 36px);
  line-height: 1.36;
}

body.has-results .fortune-main p:last-child {
  font-size: clamp(17px, 1.35vw, 20px);
  line-height: 1.86;
}

body.has-results .score-ring {
  min-height: 188px;
}

body.has-results .result-related {
  padding: 24px;
  background:
    linear-gradient(180deg, rgba(255, 253, 246, 0.98), rgba(250, 245, 234, 0.96));
}

body.has-results .result-related .section-heading > span {
  background: #f6f0df;
}

body.has-results .result-related .related-grid button {
  min-height: 116px;
}

body.has-results .result-related .related-grid button:hover strong {
  color: var(--report-green);
}

body.has-results .long-report article {
  grid-template-columns: 160px minmax(0, 1fr);
}

@media (max-width: 1180px) {
  body.has-results .content-grid {
    grid-template-columns: 1fr;
  }

  body.has-results .side-panel {
    position: static;
  }
}

@media (max-width: 760px) {
  body.has-results .panel__header {
    gap: 16px;
  }

  body.has-results .panel-actions {
    align-items: stretch;
    width: 100%;
  }

  body.has-results .reset-button,
  body.has-results .share-button {
    width: 100%;
  }

  body.has-results .tabs {
    width: 100%;
  }

  body.has-results .tabs button {
    min-width: 0;
  }

  body.has-results .fortune-main {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 22px;
  }

  body.has-results .score-ring {
    min-height: 132px;
  }

  body.has-results .fortune-metrics,
  body.has-results .fortune-detail {
    grid-template-columns: 1fr;
  }

  body.has-results .long-report article {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  body.has-results .result-ad-placement,
  body.has-results .ad-card--result {
    min-height: 250px;
  }
}

@media (max-width: 560px) {
  body.is-start .top-workspace::before,
  body.is-start .top-workspace::after {
    display: none;
  }

  body.has-results .result-related {
    padding: 18px;
  }

  body.has-results .result-related .related-grid button {
    min-height: 98px;
    padding: 18px;
  }
}

/* SEO guide and mobile retention actions */
.seo-guide {
  margin-top: 28px;
  padding: clamp(22px, 3vw, 34px);
  border: 1px solid rgba(217, 200, 166, 0.82);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 253, 246, 0.96), rgba(248, 242, 230, 0.94));
  box-shadow: 0 18px 44px rgba(23, 33, 29, 0.06);
}

.seo-guide .section-heading {
  align-items: end;
  gap: 18px;
  margin-bottom: 22px;
}

.seo-guide .section-heading h2 {
  color: var(--report-ink);
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.22;
}

.seo-guide .section-heading > span {
  flex: 0 0 auto;
  padding: 8px 12px;
  border: 1px solid rgba(29, 91, 79, 0.18);
  border-radius: 8px;
  background: #e8f2ed;
  color: var(--report-green);
  font-size: 14px;
  font-weight: 900;
}

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

.seo-guide__grid article {
  min-height: 240px;
  padding: 22px;
  border: 1px solid rgba(217, 200, 166, 0.74);
  border-radius: 8px;
  background: rgba(255, 253, 246, 0.84);
}

.seo-guide__grid span {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 30px;
  border-radius: 8px;
  background: #173a34;
  color: #fff8df;
  font-size: 13px;
  font-weight: 950;
}

.seo-guide__grid h3 {
  margin: 18px 0 12px;
  color: var(--report-ink);
  font-size: clamp(20px, 1.7vw, 25px);
  line-height: 1.36;
}

.seo-guide__grid p,
.seo-guide__notice {
  margin: 0;
  color: #566157;
  font-size: 16px;
  font-weight: 760;
  line-height: 1.78;
}

.seo-guide__notice {
  margin-top: 16px;
  padding: 18px 20px;
  border: 1px solid rgba(29, 91, 79, 0.14);
  border-radius: 8px;
  background: rgba(232, 242, 237, 0.64);
}

.fortune-route-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(217, 200, 166, 0.62);
}

.fortune-route-links a {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(29, 91, 79, 0.18);
  border-radius: 8px;
  padding: 8px 12px;
  background: rgba(255, 253, 246, 0.82);
  color: var(--report-green);
  font-size: 14px;
  font-weight: 900;
  text-decoration: none;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background-color 160ms ease;
}

.fortune-route-links a:hover {
  transform: translateY(-1px);
  border-color: rgba(29, 91, 79, 0.42);
  background: #e8f2ed;
}

.mobile-action-bar {
  display: none;
}

@media (max-width: 980px) {
  .seo-guide__grid {
    grid-template-columns: 1fr;
  }

  .seo-guide__grid article {
    min-height: 0;
  }
}

@media (max-width: 760px) {
  body.has-results {
    padding-bottom: 84px;
  }

  body.has-results .mobile-action-bar {
    position: fixed;
    right: 12px;
    bottom: 12px;
    left: 12px;
    z-index: 30;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    padding: 8px;
    border: 1px solid rgba(217, 200, 166, 0.8);
    border-radius: 8px;
    background: rgba(255, 253, 246, 0.94);
    box-shadow: 0 16px 36px rgba(23, 33, 29, 0.18);
    backdrop-filter: blur(14px);
  }

  .mobile-action-bar a,
  .mobile-action-bar button {
    display: grid;
    min-height: 46px;
    place-items: center;
    border: 1px solid rgba(29, 91, 79, 0.2);
    border-radius: 8px;
    background: #fffdf6;
    color: var(--report-green);
    font: inherit;
    font-size: 14px;
    font-weight: 950;
    text-decoration: none;
  }

  .mobile-action-bar button {
    background: linear-gradient(135deg, #1d5b4f, #123d35);
    color: #fffdf6;
  }

  .seo-guide {
    padding: 22px 18px;
  }

  .seo-guide .section-heading {
    align-items: start;
    flex-direction: column;
  }
}
