.chakra-page {
  --active: #b35258;
  width: min(1056px, calc(100% - 56px));
  margin: 0 auto;
  padding: clamp(24px, 4vw, 54px) 0 68px;
}
.chakra-page [hidden] { display: none !important; }
.ch-intro { margin: 0 0 clamp(20px, 3vw, 32px); }
.ch-intro h1 { font-size: clamp(38px, 5.4vw, 67px); line-height: 1.08; letter-spacing: -.054em; margin: 0; }
.ch-intro h1 em { color: #80668b; }
.ch-intro p, .ch-overview p, .ch-detail p { max-width: 63ch; line-height: 1.65; color: #695c6e; }
.ch-intro p { margin: 10px 0 0; }
.ch-workbench {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.25fr);
  background: var(--surface);
  border: 1px solid #e0d5df;
  border-radius: 26px;
  overflow: hidden;
}
.ch-plate {
  margin: 0;
  background: radial-gradient(ellipse at 50% 40%, #f2e5eb, #e6d5e0);
  border-inline-end: 1px solid #e0d5df;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: clamp(14px, 2.4vw, 32px);
}
.ch-drawing { position: relative; isolation: isolate; width: min(100%, 375px); }
.ch-drawing::before {
  content: ''; position: absolute; z-index: -1; pointer-events: none;
  width: 97%; aspect-ratio: 1; left: 49.6%; top: 40%; transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle closest-side,
    #fff1ddab 0%, #fff1dd50 calc(43% - 1px), #bb94ab 43%, transparent calc(43% + 1px),
    transparent calc(61% - 1px), #ba977a 61%, transparent calc(61% + 1px),
    transparent calc(80% - 1px), #ad85a3 80%, transparent calc(80% + 1px),
    transparent calc(99% - 1px), #c9a993 99%, transparent 100%);
}
.ch-drawing img {
  display: block; width: 100%; height: auto; aspect-ratio: 4 / 5;
}
.ch-point {
  --intensity: .8;
  position: absolute; inset-inline-start: 49.6%; top: var(--y);
  transform: translate(-50%, -50%); padding: 0; border: 0;
  width: 30px; height: 30px; display: grid; place-items: center;
  border-radius: 50%; background: transparent;
}
.ch-point:disabled { cursor: default; }
.ch-point::before {
  content: ''; width: 9px; height: 9px; border-radius: 50%; background: var(--tone);
  border: 1.5px solid #fffaf1; opacity: var(--intensity);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--tone) 40%, transparent);
}
.ch-point.is-selected::after {
  content: ''; position: absolute; inset: 1px;
  border: 1px solid var(--tone); border-radius: 50%;
  animation: ch-ring 2.4s ease-in-out 2;
}
.ch-plate figcaption { display: flex; align-items: center; gap: 10px; margin-top: 12px; }
.ch-caption-dot { width: 11px; height: 11px; border-radius: 50%; background: var(--active); box-shadow: 0 0 0 4px #fff8; }
.ch-plate figcaption strong, .ch-plate figcaption small { display: block; }
.ch-plate figcaption strong { font-size: 14px; font-weight: 600; }
.ch-plate figcaption small { font-size: 12px; color: #65576b; }
.ch-pane { min-width: 0; padding: clamp(24px, 3.6vw, 46px); align-self: center; }
.ch-step { display: flex; justify-content: space-between; gap: 10px; align-items: center; }
#ch-count, .ch-kicker { color: #6e586e; font-size: 12px; font-weight: 650; letter-spacing: .04em; }
#ch-theme { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; color: #604e63; }
#ch-theme::before, .ch-score-name::before, .ch-guide li i {
  content: ''; display: inline-block; width: 9px; height: 9px; flex-shrink: 0; border-radius: 50%; background: var(--tone, var(--active));
}
#ch-progress {
  display: block; width: 100%; height: 4px; margin: 11px 0 26px; appearance: none;
  background: #ede5ed; border: 0; border-radius: 8px; overflow: hidden; accent-color: var(--active);
}
#ch-progress::-webkit-progress-bar { background: #ede5ed; }
#ch-progress::-webkit-progress-value { background: var(--active); border-radius: 8px; }
#ch-progress::-moz-progress-bar { background: var(--active); }
.ch-pane h2, .ch-detail h2, .ch-overview h2 { font-size: clamp(26px, 3vw, 39px); line-height: 1.16; letter-spacing: -.035em; margin: 0; }
.ch-instruction { color: var(--muted); font-size: 14px; margin: 10px 0 20px; }
.ch-options { display: grid; gap: 7px; }
.ch-answer {
  display: flex; align-items: center; gap: 13px; text-align: start; min-height: 45px;
  padding: 9px 15px; background: #fffcfa; color: var(--ink);
  border: 1px solid #e2d9e2; border-radius: 12px; font-size: 15px; font-weight: 500;
}
.ch-radio { width: 17px; height: 17px; border: 1.5px solid #b4a5b7; border-radius: 50%; flex: 0 0 17px; }
@media (hover:hover) {
  .ch-answer:enabled:hover, .ch-score:hover { background: #f5eff6; border-color: #ba9ebf; }
}
.ch-answer[aria-pressed=true] { border-color: #8d7195; background: #f1e8f1; }
.ch-answer[aria-pressed=true] .ch-radio { background: #74567c; border-color: #74567c; box-shadow: inset 0 0 0 3px #f8f2f8; }
.ch-link { border: 0; background: transparent; color: #5e466a; min-height: 44px; padding: 7px 0; font-size: 14px; font-weight: 550; }
#ch-back { margin-top: 6px; }
.ch-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.ch-loading { text-align: center; padding-block: 58px; }
.ch-loading p { margin: 12px 0 0; color: var(--muted); }
.chakra-page[data-stage="loading"] .ch-plate figcaption { display: none; }
.chakra-page[data-stage="loading"] .ch-drawing { animation: ch-breathing 4s ease-in-out both; }
.chakra-page[data-stage="loading"] .ch-point::before {
  animation: ch-light 1s ease-in-out calc(100ms + var(--i) * 430ms) both;
}
.chakra-page[data-stage="loading"] .ch-point::after {
  content: ''; position: absolute; inset: 1px; border: 1px solid var(--tone); border-radius: 50%;
  animation: ch-ripple 1.15s ease-out calc(100ms + var(--i) * 430ms) both;
}
.ch-orbit { position: relative; width: 108px; aspect-ratio: 1; margin: 0 auto 32px; border: 1px solid #d9c7dc; border-radius: 50%; animation: ch-turn 6s linear infinite; }
.ch-orbit::before { content: '✦'; position: absolute; inset: 14%; display: grid; place-items: center; border: 1px solid #dfcddc; border-radius: 50%; background: radial-gradient(#f0dde9, #fff9f4); color: #957197; font: 36px Georgia,serif; }
.ch-orbit i { position: absolute; top: 50%; left: 50%; width: 10px; height: 10px; margin: -5px; border-radius: 50%; background: var(--tone); transform: rotate(calc(var(--i)*360deg/7)) translateY(-54px); }
.ch-overview { display: flex; justify-content: space-between; gap: 16px; align-items: center; margin-bottom: 18px; padding: clamp(20px,3vw,32px); border: 1px solid #dfd2de; border-radius: 24px; background: linear-gradient(108deg,#f0e6f0,#faf2e8); }
.ch-overview .ch-kicker, .ch-detail .ch-kicker { margin: 0 0 6px; }
.ch-overview p:last-child { margin: 9px 0 0; }
.ch-share-actions { margin-top: 18px; max-width: 58ch; }
#ch-share { display: inline-flex; align-items: center; gap: 9px; min-height: 44px; padding: 9px 18px; }
#ch-share-status, .ch-share-manual { display: block; color: #614b68; font-size: 14px; }
#ch-share-status:not(:empty), .ch-share-manual { margin-top: 9px; }
.ch-share-manual textarea { display: block; width: 100%; margin-top: 5px; padding: 8px; border: 1px solid var(--line); border-radius: 8px; font: inherit; }
.ch-average { display: grid; justify-items: center; flex-shrink: 0; padding-inline: 16px; border-inline-start: 1px solid #ded1df; }
.ch-average span { font-size: 12px; color: #65546b; }
.ch-average strong { font: normal clamp(28px,4vw,46px)/1.2 Georgia,serif; }
.ch-scores { display: grid; gap: 3px; }
.ch-score { border: 1px solid transparent; border-radius: 10px; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 4px 12px; padding: 7px 10px; min-height: 44px; background: transparent; text-align: start; }
.ch-score[aria-pressed=true] { background: #f6eff5; border-color: #e3d6e4; }
.ch-score-name { display: flex; align-items: center; gap: 9px; font-size: 14px; font-weight: 550; }
.ch-score strong { color: #68596e; font-size: 13px; font-variant-numeric: tabular-nums; }
.ch-track { grid-column: 1/-1; height: 4px; border-radius: 8px; background: #ede7ed; overflow: hidden; }
.ch-track i { display: block; height: 100%; width: var(--fill); border-radius: inherit; background: var(--tone); }
#ch-strongest { font-size: 13px; line-height: 1.5; color: #66566c; margin: 15px 0 0; }
.ch-detail { display: grid; grid-template-columns: .85fr 1.25fr; gap: 24px; margin: 18px 0 4px; padding: clamp(20px,3vw,32px); border-radius: 22px; border: 1px solid var(--line); background: var(--surface); }
.ch-detail h2 { font-size: clamp(24px,2.3vw,32px); }
.ch-detail h3 { margin: 0 0 5px; font-size: 21px; }
.ch-detail p { margin: 8px 0 16px; }
.ch-detail blockquote { margin: 8px 0 0; padding-inline-start: 14px; border-inline-start: 2px solid var(--active); font: italic 20px/1.5 Georgia,serif; color: #715672; }
.ch-daily, .ch-numerology, .ch-app {
  padding: clamp(20px, 3vw, 32px); border: 1px solid var(--line); border-radius: 22px;
}
.ch-daily { margin-top: 18px; background: var(--surface); }
.ch-daily .ch-kicker { display: flex; align-items: center; gap: 8px; margin: 0 0 7px; }
.ch-daily .ch-kicker::before { content: ''; width: 9px; height: 9px; border-radius: 50%; background: var(--active); }
#ch-next h2 { margin: 0; font-size: clamp(26px, 2.7vw, 34px); line-height: 1.15; letter-spacing: -.035em; }
.ch-daily ol { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin: 20px 0 0; padding: 0; list-style: none; }
.ch-daily li { padding: 12px 2px 0; border-top: 2px solid #d3c3d4; }
.ch-daily li:first-child { border-color: #cfb995; }
.ch-daily li:last-child { border-color: #b2a3c2; }
.ch-daily h3 { margin: 0; font-size: 21px; line-height: 1.3; }
.ch-daily li p, .ch-more p { color: #695c6e; line-height: 1.55; font-size: 15px; margin: 7px 0 0; }
.ch-more { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.3fr); gap: 16px; margin-block: 18px 6px; }
.ch-numerology { display: flex; align-items: flex-start; flex-direction: column; background: linear-gradient(130deg,#fffaf2,#f2eaf0); }
.ch-numerology img, .ch-app-icon { margin-bottom: 14px; }
.ch-num-link { display: inline-flex; align-items: center; gap: 10px; padding-block: 10px; min-height: 44px; margin-top: auto; color: #563f61; font-size: 14px; font-weight: 600; text-underline-offset: 4px; }
.ch-app { display: grid; grid-template-columns: minmax(0, 1fr) minmax(88px, 24%); align-items: center; gap: 16px; background: linear-gradient(125deg,#f6f0ec,#eadff0); }
.ch-app-icon { border-radius: 10px; }
.ch-phone { display: block; width: 100%; max-width: 136px; justify-self: center; height: auto; border: 3px solid #443449; border-radius: 17px; box-shadow: 0 8px 18px #42254826; transform: rotate(3deg); }
.ch-stores { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.ch-stores .button { gap: 6px; min-height: 44px; padding: 8px 14px; }
.ch-stores svg { width: 16px; height: 19px; fill: currentColor; }
@media (max-width: 800px) {
  .ch-more { grid-template-columns: 1fr; }
  .ch-num-link { margin-top: 8px; }
}
.ch-guide { margin: 28px auto 0; border-block: 1px solid var(--line); }
.ch-guide + .ch-guide { margin-top: 0; border-top: 0; }
.ch-guide summary { cursor: pointer; font: 21px/1.4 Georgia,serif; padding: 18px 4px; }
.ch-guide > p { max-width: 68ch; color: #695c6e; line-height: 1.65; }
.ch-guide ul { padding: 0; list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 14px 32px; }
.ch-guide li { display: flex; align-items: baseline; gap: 10px; }
.ch-guide li strong { font-size: 14px; }
.ch-guide li p { margin: 3px 0 8px; font-size: 14px; color: #695c6e; }
.chakra-page h2[tabindex="-1"]:focus { outline: none; }
@keyframes ch-ring { 50% { transform: scale(1.22); opacity: .6; } }
@keyframes ch-turn { to { transform: rotate(360deg); } }
@keyframes ch-breathing { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.045); } }
@keyframes ch-light {
  0% { opacity: .55; transform: scale(.85); }
  55% { opacity: 1; transform: scale(1.65); box-shadow: 0 0 12px 4px var(--tone); }
  100% { opacity: 1; transform: scale(1.1); }
}
@keyframes ch-ripple { from { opacity: 0; transform: scale(.35); } 25% { opacity: .8; } to { opacity: 0; transform: scale(1.5); } }
@media (max-width: 680px) {
  .chakra-page { width: calc(100% - 32px); padding-block: 23px 44px; }
  .ch-intro { margin-bottom: 16px; }
  .ch-intro p { font-size: 14px; }
  .ch-workbench { grid-template-columns: 1fr; border-radius: 20px; }
  .ch-plate { border: 0; border-bottom: 1px solid #e0d5df; }
  .chakra-page[data-stage="quiz"] .ch-plate { flex-direction: row; justify-content: flex-start; gap: 16px; padding: 0 20px; background: linear-gradient(100deg,#e8d9e4,#f6edf0); }
  .chakra-page[data-stage="quiz"] .ch-drawing { width: 82px; }
  .chakra-page[data-stage="quiz"] .ch-point { width: 4px; height: 4px; }
  .chakra-page[data-stage="quiz"] .ch-point::before { width: 3px; height: 3px; border: 0; box-shadow: none; }
  .chakra-page[data-stage="quiz"] .ch-point.is-selected::after { inset: -3px; }
  .chakra-page[data-stage="loading"] .ch-drawing { width: min(100%, 34vh, 228px); }
  .ch-loading .ch-orbit { display: none; }
  .ch-plate figcaption { margin: 0; }
  .ch-pane { padding: 20px; }
  #ch-progress { margin: 8px 0 18px; }
  .ch-instruction { font-size: 13px; margin: 8px 0 15px; }
  .ch-overview { align-items: flex-start; flex-direction: column; }
  .ch-average { display: flex; align-items: baseline; gap: 10px; border: 0; padding: 0; }
  .ch-average strong { font-size: 24px; }
  [data-stage="results"] .ch-drawing { width: min(100%, 278px); }
  [data-stage="results"] .ch-plate figcaption { margin-top: 8px; }
  .ch-detail, .ch-guide ul { grid-template-columns: 1fr; gap: 8px; }
  .ch-daily ol { grid-template-columns: 1fr; gap: 12px; }
  .ch-app { grid-template-columns: minmax(0, 1fr) minmax(64px, 22%); gap: 12px; }
  .ch-loading { padding: 22px 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .ch-orbit, .ch-point.is-selected::after { animation: none; }
  .chakra-page[data-stage="loading"] .ch-drawing,
  .chakra-page[data-stage="loading"] .ch-point::before,
  .chakra-page[data-stage="loading"] .ch-point::after { animation: none; }
  .chakra-page[data-stage="loading"] .ch-point::after { content: none; }
}
