/* Shared controls and report structure */
body { margin: 0; color: #f6efff; color-scheme: dark; }
#saju-starlight { font-family: system-ui, -apple-system, "Apple SD Gothic Neo", "Noto Sans KR", sans-serif; }
#saju-starlight * { box-sizing: border-box; }
#saju-starlight [hidden] { display: none !important; }
#saju-starlight button { font: inherit; cursor: pointer; }
#saju-starlight button:focus-visible { outline: 3px solid var(--glow); outline-offset: 4px; }
#saju-starlight h2 { font-size: 21px; line-height: 1.4; margin: 7px 0 0; font-weight: 650; letter-spacing: -.5px; }
#saju-starlight h3 { font-size: 16px; line-height: 1.5; margin: 0; font-weight: 650; }
#saju-starlight summary { cursor: pointer; font-weight: 650; line-height: 1.5; }
#saju-starlight .eyebrow { margin: 0; }
#saju-starlight footer { border-top: 1px solid var(--line); font-size: 15px; letter-spacing: 2px; }
#saju-starlight footer a, #saju-starlight .name-reading a { color: inherit; }
#saju-starlight footer span { font-size: 11px; letter-spacing: .5px; }
#ss-input-error { color: #ffc1bc; }

#saju-starlight .profile label { display: block; font-size: 14px; }
#saju-starlight .profile input { display: block; margin-top: 6px; font: inherit; }
#saju-starlight .profile small { color: var(--sub); margin-left: 4px; }
#saju-starlight .birth-row { display: grid; grid-template-columns: minmax(0,1.65fr) minmax(0,1fr); gap: 10px; }
#saju-starlight .optional-hanja { font-size: 14px; color: var(--sub); }
#saju-starlight .optional-hanja summary { min-height: 44px; padding: 12px 0; font-weight: 500; }
#saju-starlight .optional-hanja label { margin-top: 3px; }
#saju-starlight .back {
  display: block; margin: 0 auto 18px; padding: 10px 12px; min-height: 44px;
  border: 0; border-radius: 10px; color: var(--sub); background: transparent; text-decoration: underline;
}
#saju-starlight .step-head h2 { overflow-wrap: anywhere; }
.report-actions { display: flex; justify-content: flex-start; flex-wrap: wrap; }
#saju-starlight .report-actions button { min-height: 44px; margin: 0; }
#saju-starlight .footnote { text-align: center; }
.report-actions + .footnote { text-align: left; }

#saju-starlight .element-panel { margin: 0 0 21px; background: color-mix(in srgb,var(--glow) 14%,var(--panel)); }
#saju-starlight .fortune[data-element] .element-panel {
  background: linear-gradient(135deg,color-mix(in srgb,var(--glow) 43%,var(--panel)),color-mix(in srgb,var(--glow) 13%,var(--panel)) 65%,var(--panel));
}
#saju-starlight .element-panel p { font-size: 14px; line-height: 1.65; margin: 6px 0 12px; color: var(--sub); }
#ss-element-counts { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; }
#ss-element-counts li strong { font-weight: 700; }
#saju-starlight .name-reading { margin: 0 0 20px; }
#saju-starlight .name-reading p, #saju-starlight .evidence p,
#saju-starlight .name-reading ul { margin: 9px 0; line-height: 1.7; font-size: 14px; }
#saju-starlight .name-reading ul { padding-left: 21px; }
#saju-starlight .name-reading h3 { margin-top: 14px; }
#saju-starlight .evidence { margin-top: 14px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; font-size: 14px; }
#saju-starlight .section-label { margin: 0 0 10px; }
#saju-starlight .categories button { border: 1px solid transparent; background: transparent; min-height: 44px; }
#saju-starlight .reading-head, #saju-starlight .deep-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
#saju-starlight .score-area { display: flex; align-items: center; }
#saju-starlight .score { --value: 78; flex-shrink: 0; width: 112px; height: 112px; border-radius: 50%; }
#saju-starlight .score > div { height: 100%; border-radius: 50%; display: flex; flex-flow: column; align-items: center; justify-content: center; }
#saju-starlight .score strong { font: 400 45px/1.1 Georgia,serif; }
#saju-starlight .score span, #saju-starlight .order-total del { font-size: 12px; color: var(--sub); }
#saju-starlight .small-star { display: block; margin-bottom: 7px; }
#saju-starlight .score-copy p { font-size: 12px; color: var(--sub); line-height: 1.7; margin: 7px 0 0; }
#saju-starlight .index-note, #saju-starlight .body-copy { margin: 0; }
#saju-starlight .divider { height: 1px; }
#saju-starlight .teaser { margin: 17px 0 0; padding-top: 14px; border-top: 1px dashed var(--line); line-height: 1.7; }
#saju-starlight .base-topics { display: grid; }
#saju-starlight .base-topics h3 { margin-bottom: 4px; }
#saju-starlight .base-topics h4 { line-height: 1.5; margin: 12px 0 5px; }
#saju-starlight .deep-head { margin-bottom: 18px; }
#saju-starlight .gold-badge { letter-spacing: 0; border-radius: 20px; padding: 5px 10px; }
#saju-starlight #ss-expanded h3 { margin-bottom: 10px; }
#saju-starlight .long-reading section, #saju-starlight .compat { border-top: 1px solid var(--line); }
#saju-starlight .long-reading .body-copy, #saju-starlight .compat .body-copy { margin-top: 8px; }
#saju-starlight .compat .index-note { margin-top: 12px; }
#saju-starlight .date-list, #saju-starlight .month-list { list-style: none; padding: 0; margin: 10px 0 0; display: grid; }
#saju-starlight .date-list li { font-size: 14px; line-height: 1.6; }
#saju-starlight .date-list strong { display: block; margin-bottom: 3px; }
#saju-starlight .date-list small { display: block; }
#saju-starlight .month-list li {
  display: grid; grid-template-columns: 3em 1fr; align-items: baseline; border-bottom: 1px solid var(--line);
  padding: 9px 0; font-size: 14px; line-height: 1.55;
}
#saju-starlight .month-list summary { line-height: 1.7; font-weight: 600; }
#saju-starlight .month-list p { margin: 7px 0; line-height: 1.8; }
#saju-starlight .lock-card { margin-top: 18px; }

#saju-starlight .order { margin: 18px 0; }
#saju-starlight .order-base, #saju-starlight .order-total { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
#saju-starlight .order-base p { color: var(--sub); }
#saju-starlight .order-options { display: grid; min-width: 0; padding: 0; border: 0; gap: 8px; }
#saju-starlight .order-options legend { padding: 0; margin-bottom: 10px; font-size: 14px; font-weight: 600; }
#saju-starlight .order-options label {
  display: grid; grid-template-columns: 20px 1fr auto; align-items: center;
  border: 1px solid var(--line); color: var(--ink); font-size: 14px; cursor: pointer;
}
#saju-starlight .order-options input { width: 17px; height: 17px; margin: 0; cursor: inherit; }
#saju-starlight .order-options small { display: inline-block; color: #f0cb8c; margin-left: 4px; }
#saju-starlight .order-options .option-sub { display: block; margin: 3px 0 0; color: var(--sub); }
#saju-starlight .order-total { border-top: 1px solid var(--line); font-size: 14px; }
#saju-starlight .order-total span { margin-right: auto; }
#saju-starlight .order-status { line-height: 1.5; }

/* Front cover and navigation */
@font-face {
  font-family: "Nacre Folio Serif";
  src: url("./art/myeongjo.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

body { background: #151118; }
#saju-starlight {
  --glow: #af80ff;
  --cover-width: 1240px;
  --cover-edge: clamp(22px, 5.5vw, 86px);
  --gilt: #e5c398;
  --display: "Nacre Folio Serif", "Nanum Myeongjo", AppleMyungjo, Batang, Georgia, serif;
  padding: 0;
  color: #faf0e6;
  background: radial-gradient(ellipse at 83% 12%, #4b315277, transparent 48%), #17131c;
}
#saju-starlight .fortune {
  min-height: 100vh;
  overflow: clip;
  --page: #17121b;
  --panel: #211a25;
  --ink: #f5ece7;
  --sub: #c3b1c3;
  --line: #49394a;
}
#saju-starlight .brand {
  display: block;
  padding: 0 var(--cover-edge);
  border-bottom: 1px solid #49363e;
  background: #1b1520;
  color: #efd8aa;
}
.brand-inner {
  height: 74px;
  max-width: var(--cover-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
#saju-starlight .wordmark {
  display: inline-flex;
  align-items: center;
  gap: .32em;
  padding: 0;
  border: 0;
  color: #f8e9d0;
  background: transparent;
  font: 400 32px/1 var(--display);
  letter-spacing: -.07em;
}
.wordmark small { font: 400 12px/1 var(--display); color: #c8a881; letter-spacing: .18em; margin: 6px 0 0 4px; }
.north-star {
  display: inline-block;
  width: 25px;
  height: 29px;
  background: currentColor;
  clip-path: polygon(50% 0,57% 34%,80% 19%,66% 42%,100% 50%,66% 57%,82% 81%,57% 67%,50% 100%,43% 67%,19% 82%,34% 57%,0 50%,34% 42%,19% 19%,43% 34%);
}
.wordmark .north-star { width: 25px; height: 30px; margin-right: 3px; color: #eac48f; }
.brand nav { display: flex; align-items: center; gap: 26px; }
.brand nav a, #saju-starlight .brand nav button { font: 500 14px/1.4 system-ui,sans-serif; text-decoration: none; }
.brand nav a { color: #d5c6ce; padding: 12px 0; }
#saju-starlight .brand nav button { min-height: 44px; padding: 0 18px; border: 1px solid #806551; background: #3b2d2b55; color: #f2dcc1; border-radius: 5px; }
.brand nav a:hover { color: #fff5df; }
#saju-starlight .brand nav button:hover { border-color: #d4b28b; }
#saju-starlight .library-link:focus-visible, .wordmark:focus-visible { outline: 2px solid var(--gilt); outline-offset: 3px; }
#saju-starlight .hero {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0,.92fr) minmax(0,1.08fr);
  align-items: stretch;
  width: min(calc(100% - 2 * var(--cover-edge)),var(--cover-width));
  margin: clamp(22px,3.3vw,48px) auto 0;
  padding: 0;
  text-align: left;
  background: radial-gradient(ellipse at 4% 85%,#49374e,transparent 55%),linear-gradient(110deg,#332637,#221a2a 60%,#261c25);
  border: 1px solid #846b69;
  box-shadow: 0 15px 52px #08060d45;
  overflow: hidden;
}
.cover-copy {position:relative;z-index:1;align-self:center;padding:clamp(27px,3.4vw,54px) 0 clamp(29px,3.6vw,58px) clamp(28px,3.8vw,60px);}
.era { display: flex; align-items: center; gap: 12px; color: #ddc3a2; font-size: 14px; margin: 0; letter-spacing: .035em; }
.era span { font: 400 16px/1 var(--display); letter-spacing: .16em; padding-right: 13px; border-right: 1px solid #866951; }
#saju-starlight .hero h1 {
  margin: clamp(14px,1.7vw,26px) 0 14px;
  font: 400 clamp(50px,5.6vw,84px)/1.15 var(--display);
  letter-spacing: -.073em;
  word-break: keep-all;
  color: #fff2e3;
}
.hero h1 em {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.15em;
  font-weight: 400;
  font-style: italic;
  letter-spacing: -.055em;
  color: #e8c292;
  margin-right: .03em;
}
#saju-starlight .hero .intro { font-size: clamp(16px,1.24vw,18px); line-height: 1.75; color: #e0d5e0; margin: 0; letter-spacing: -.025em; word-break:keep-all; }
.cover-action { margin-top: clamp(22px,2.65vw,40px); }
#saju-starlight .hero .unlock {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 0;
  min-height: 52px;
  width: auto;
  max-width: none;
  padding: 0 26px;
  border: 1px solid #f1d6ad;
  border-radius: 6px;
  background: linear-gradient(118deg,#f5dcb4,#e4c7a4 66%,#ddbaa2);
  box-shadow: inset 0 1px #fff3,0 6px 24px #1b080f33;
  color: #2a1c25;
  font-size: 16px;
  font-weight: 670;
  letter-spacing: -.035em;
  transition: transform .2s,box-shadow .2s;
}
#saju-starlight .hero .unlock:hover { transform: translateY(-2px); box-shadow: 0 8px 28px #d6ad701d; }
.hero .unlock .north-star { width: 15px; height: 19px; }
.product-choices { display:flex; align-items:center; flex-wrap:wrap; gap:8px; }
#saju-starlight .hero .life-start {
  min-height:52px;border:1px solid #ae929d;border-radius:6px;padding:0 24px;
  color:#faeddf;background:#302434;font-size:16px;font-weight:600;letter-spacing:-.035em;
}
#saju-starlight .hero .life-start:hover {background:#49354a;border-color:#e8cfaf}
#saju-starlight .hero button:focus-visible,.match-invitation-link:focus-visible,#saju-starlight .chapter-cover:focus-visible {outline:2px solid #f8d9ac;outline-offset:3px}
.match-link {
  display:inline-flex; align-items:center; justify-content:center; min-height:48px;
  padding:0 17px; border:1px solid #96787a; border-radius:6px;
  color:#f3d6cc; font-size:1rem; font-weight:550; text-decoration:none;
  background:linear-gradient(115deg,#442a37,#362532);
}
.match-link:hover { border-color:#e4b7b3; }
.compat .match-link { margin-top:13px; }
@media(max-width:360px){
  #saju-starlight .library-link {display:none}
}
.cover-price { font-size: 14px; line-height: 1.5; color: #deced6; margin: 12px 0 0 1px; }
.cover-price span { color: #b18d70; margin: 0 3px; }
.cover-plate { position:relative;margin:0;min-height:0;isolation:isolate; }
.cover-plate picture,.cover-plate img {display:block;width:100%;height:100%;}
.cover-plate picture{position:absolute;inset:0;mask-image:linear-gradient(90deg,transparent,#000 18%)}
.cover-plate img {position:absolute;inset:0;object-fit:cover;object-position:50% 47%;}
.plate-rule {position:absolute;z-index:1;inset:9px 9px 9px auto;width:22%;border:solid #e1c6a65c;border-width:1px 1px 1px 0;pointer-events:none;}
.hero::after{content:"";position:absolute;pointer-events:none;inset:8px auto 8px 8px;width:18px;border:solid #cda98466;border-width:1px 0 1px 1px;}
.match-invitation{width:min(calc(100% - 2 * var(--cover-edge)),var(--cover-width));margin:14px auto 0}
.fortune:not([data-view=cover]) .match-invitation,
.fortune:not([data-view=cover]) .reading-library { display: none; }
.match-invitation-link{display:grid;grid-template-columns:clamp(95px,12vw,176px) minmax(0,1fr) auto;align-items:center;gap:clamp(15px,2.4vw,36px);
  min-height:88px;padding:0 clamp(16px,2.4vw,36px) 0 0;text-decoration:none;color:#f7e7dc;
  background:linear-gradient(110deg,#342235,#2d2133 54%,#251c2a);border:1px solid #71566a;border-radius:2px;}
.match-invitation-link:hover{border-color:#c59fa7;background:linear-gradient(110deg,#3c2a3d,#322437 54%,#2a2030)}
.match-invitation-link img{display:block;width:100%;height:88px;object-fit:cover;object-position:50% 47%;mask-image:linear-gradient(90deg,#000 55%,transparent)}
.match-invitation-copy{display:grid;gap:3px;padding:9px 0}
.match-invitation-copy strong{font:400 clamp(22px,2vw,29px)/1.25 var(--display);letter-spacing:-.055em}
.match-invitation-copy>span{font-size:15px;color:#d7c6d4;line-height:1.55;word-break:keep-all}
.match-invitation-price{display:grid;justify-items:end;gap:2px;font-weight:600;color:#f0d7b0;font-size:16px}
.match-invitation-price b{color:#d4bfcc;font-size:14px;font-weight:400}
.reading-library {
  max-width: var(--cover-width); width:calc(100% - 2 * var(--cover-edge)); margin:0 auto;
  padding: clamp(28px,3vw,44px) 0 24px;
  scroll-margin-top: 18px;
}
.library-head {display:flex;align-items:baseline;justify-content:space-between;gap:10px;margin-bottom:19px; }
#saju-starlight .library-head h2 { font: 400 clamp(23px,2.25vw,33px)/1.4 var(--display); letter-spacing:-.07em;color:#f0e0d3;margin:0; }
.library-head p { margin:0; color:#cbbacb; font-size:14px; }
.library-price {margin:13px 0 0;color:#cbbacb;font-size:14px;line-height:1.65;word-break:keep-all;}
.chapter-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:12px; }
#saju-starlight .chapter-cover { display:flex; align-items:center; position:relative; isolation:isolate; overflow:hidden; text-align:left; padding:18px 10px; min-height:110px; gap:9px; border:1px solid #493847; border-radius:7px; background:linear-gradient(130deg,#251b29,#1b151e); color:#f2e4d8; transition:border-color .2s,background .2s; }
.chapter-cover img { display:block;width:clamp(49px,5.4vw,83px);height:auto;aspect-ratio:1;object-fit:contain;mix-blend-mode:lighten; }
.chapter-type {display:flex;flex-direction:column;gap:6px;min-width:0}
.chapter-type strong {font:400 clamp(18px,1.5vw,23px)/1.2 var(--display);letter-spacing:-.05em;}
.chapter-type small {color:#bcaebe;font:400 13px/1.45 system-ui,sans-serif;word-break:keep-all;}
.chapter-plus {width:9px;height:9px;margin-left:auto;margin-right:5px;position:relative;flex:none;color:#c8a785;}
.chapter-plus::before,.chapter-plus::after{content:"";position:absolute;background:currentColor;top:4px;left:0;width:9px;height:1px;}
.chapter-plus::after{transform:rotate(90deg)}
#saju-starlight .chapter-cover:hover,#saju-starlight .chapter-cover[aria-expanded=true]{border-color:#a78b76;background:#302331}
.chapter-cover[aria-expanded=true] .chapter-plus::after{transform:none}
.chapter-sample{padding:19px 23px;background:#211a25;border:1px solid #594550;border-left:2px solid #cbaa80;border-radius:3px;margin-top:13px;}
#saju-starlight #ss-sample-start {
  min-height:44px; margin:18px 0 0; padding:9px 16px;
  color:#2c202b; background:#ecd8ba; border:1px solid #c6aa81; border-radius:7px;
  font:inherit; font-weight:650; cursor:pointer;
}
#ss-sample-start:focus-visible { outline:2px solid #fff2d8; outline-offset:3px; }
#ss-report .categories button small { display:block; font-size:.72rem; line-height:1.5; font-weight:400; }
.reading-terms dl { margin:10px 0; }
.reading-terms dt { margin-top:10px; font-weight:650; }
.reading-terms dd { margin:3px 0 0; line-height:1.65; }
#saju-starlight .chapter-sample h3{font-size:14px;color:#dec39f}.chapter-sample p{max-width:72ch;font-size:16px;color:#efe3e9;line-height:1.8;margin:8px 0 0;word-break:keep-all}
#saju-starlight .content {max-width:var(--cover-width);width:calc(100% - 2 * var(--cover-edge));padding:0;margin:0 auto;}
#saju-starlight .fortune[data-view=form] .content {max-width:680px;padding-top:36px}
#saju-starlight .fortune[data-view=report] .content {max-width:900px;padding-top:32px}
#saju-starlight footer { border-color:#4b3947; padding:20px 0 25px; color:#bcacb9; }
#saju-starlight .footer-brand {font:400 20px/1.3 var(--display);color:#dcc3a9}
.footer-brand small{font-size:11px}
@media(max-width:980px) and (min-width:721px){
 #saju-starlight .hero{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
 .cover-copy{padding-left:24px}
 #saju-starlight .hero .unlock,#saju-starlight .hero .life-start{padding:0 16px}
 #saju-starlight .chapter-cover{padding:13px 7px;gap:5px;}
 .chapter-type small{font-size:12px}
}
@media(max-width:720px){
 #saju-starlight{--cover-edge:clamp(18px,5vw,30px)}
 .brand-inner{height:59px}.wordmark small{font-size:10px}#saju-starlight .wordmark{font-size:27px}
 .wordmark .north-star{width:20px;height:25px}
 .brand nav{gap:15px}.brand nav a{min-height:44px}.brand nav a,#saju-starlight .brand nav button{font-size:13px}
 #saju-starlight .brand nav button{min-height:44px;padding:0 12px}
 #saju-starlight .hero{grid-template-columns:1fr;gap:0;margin:15px auto 0;padding:0;width:min(calc(100% - 2 * var(--cover-edge)),520px)}
 .cover-plate {grid-row:1;aspect-ratio:1.86;}
 .cover-plate picture{mask-image:linear-gradient(0deg,transparent,#000 13%)}
 .cover-plate img{object-position:50% 8%}
 .hero::after{inset:7px auto 7px 7px;width:13px}
 .plate-rule{inset:7px 7px auto auto;height:40%;width:20%;border-bottom:0}
 .cover-copy{padding:17px clamp(16px,4.5vw,28px) 21px}
 .era{font-size:14px;gap:9px}.era span{font-size:14px}
 #saju-starlight .hero h1{font-size:clamp(39px,8.4vw,50px);margin:10px 0;line-height:1.16;}
 #saju-starlight .hero h1 br{display:none}#saju-starlight .hero h1 br::after{content:" "}
 #saju-starlight .hero .intro{font-size:16px;line-height:1.6}
 .cover-action{margin-top:16px;display:block}
 #saju-starlight .hero .unlock,#saju-starlight .hero .life-start{padding:0 16px;font-size:15px;min-height:46px}
 .cover-price{font-size:14px;margin:9px 0 0}
 .match-invitation{margin-top:11px;width:min(calc(100% - 2 * var(--cover-edge)),520px)}
 .match-invitation-link{grid-template-columns:clamp(48px,12vw,75px) minmax(0,1fr) auto;gap:9px;padding-right:12px;min-height:80px}
 .match-invitation-link img{height:100%;max-height:110px;min-height:80px;object-position:57% 50%;mask-image:linear-gradient(90deg,#000 65%,transparent)}
 .match-invitation-copy strong{font-size:21px}.match-invitation-copy>span{font-size:14px;line-height:1.4}
 .match-invitation-price{font-size:14px}.match-invitation-price b{font-size:13px}
 .reading-library{padding:24px 0 19px;width:min(calc(100% - 2 * var(--cover-edge)),520px)}
 .library-head{margin-bottom:13px;flex-wrap:wrap;gap:2px 15px}
 .library-head p{font-size:14px}
 .chapter-grid{grid-template-columns:1fr 1fr;gap:8px}
 #saju-starlight .chapter-cover{min-height:78px;padding:8px 7px;gap:5px}
 .chapter-cover img{width:clamp(41px,10.6vw,56px)}
 .chapter-type{gap:4px}.chapter-type strong{font-size:18px}.chapter-type small{font-size:12px}
 .chapter-plus{width:7px;margin-right:1px}
 #saju-starlight .fortune[data-view=form] .content,#saju-starlight .fortune[data-view=report] .content{padding-top:20px;width:calc(100% - 22px)}
}
@media(max-width:480px) {
  #saju-starlight .hero h1 br { display: initial; }
  .product-choices { display: grid; grid-template-columns: auto 1fr; }
  .cover-price { margin-top: 8px; }
  .match-invitation-link {
    grid-template-columns: clamp(44px,12vw,58px) minmax(0,1fr);
    gap: 4px 10px; min-height: 90px;
  }
  .match-invitation-link img { grid-row: 1 / 3; align-self: stretch; max-height: none; }
  .match-invitation-copy { align-self: end; padding: 10px 0 0; }
  .match-invitation-price { display: flex; align-items: baseline; gap: 9px; padding: 0 0 11px; }
}
@media(prefers-reduced-motion:reduce){#saju-starlight *,#saju-starlight *::before,#saju-starlight *::after{scroll-behavior:auto;transition:none!important;animation:none!important}}
#saju-starlight .content footer {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 0;
  padding: 21px 0 26px;
  text-align: left;
}
#saju-starlight .content footer span { display: inline; margin: 0; }
#saju-starlight .content footer .footer-brand { margin-right: auto; }
#saju-starlight .fortune[data-view=report] footer, #saju-starlight .fortune[data-view=form] footer {margin-top:24px}
@media(max-width:720px){
  #saju-starlight .content footer { gap:6px 12px; }
  #saju-starlight .content footer .footer-brand { flex-basis:100%; }
}

/* Interior pages follow the gold rules and ink palette of the cover. */
#ss-profile, #ss-report {
  --folio-serif: "Nanum Myeongjo", "AppleMyungjo", "Batang", Georgia, serif;
  --folio-gold: #e9c38d;
  --folio-ink: #f6eee8;
  --folio-muted: #c2b5c5;
  --folio-panel: #201826;
  --folio-rule: #4e3c51;
  --folio-accent: color-mix(in srgb, var(--glow, #ad90ad) 58%, #e4c4b2);
  color: var(--folio-ink);
  word-break: keep-all;
  overflow-wrap: anywhere;
}

#saju-starlight #ss-profile,
#saju-starlight #ss-report > .reading,
#saju-starlight #ss-report > .order,
#saju-starlight #ss-report > .deep {
  position: relative;
  border: 1px solid var(--folio-rule);
  border-radius: 20px;
  background: linear-gradient(145deg, #271d2b, var(--folio-panel) 50%, #1c1622);
  padding: clamp(22px, 4.5vw, 44px);
  box-shadow: 0 16px 48px #09060e26;
}

#saju-starlight #ss-profile h2,
#saju-starlight #ss-report h2,
#saju-starlight #ss-report .order-base h3 {
  font: 500 clamp(26px, 4.6vw, 36px)/1.35 var(--folio-serif);
  letter-spacing: -.055em;
  color: #fff4df;
}
#saju-starlight #ss-profile h2 { margin: 0 0 10px; }
#saju-starlight #ss-profile .profile-note,
#saju-starlight #ss-report .index-note,
#saju-starlight #ss-report .footnote {
  color: var(--folio-muted);
  font-size: .84rem;
  line-height: 1.75;
}
#saju-starlight #ss-profile .profile-note:empty,
#saju-starlight #ss-report .order-status:empty { display: none; }
#saju-starlight #ss-profile label { color: #f2e7e6; font-weight: 550; margin-top: 16px; }
#saju-starlight #ss-profile label small { color: var(--folio-muted); font-size: .76rem; font-weight: 400; }
#saju-starlight #ss-profile :is(input:not([type="checkbox"]), select) {
  width: 100%;
  min-height: 48px;
  min-width: 0;
  padding: 10px 13px;
  background-color: #17131e;
  border: 1px solid #5a475d;
  border-radius: 9px;
  font-size: 1rem;
  color: var(--folio-ink);
  transition: border-color .15s;
}
#saju-starlight #ss-profile select {
  appearance: none;
  padding-right: 33px;
  background-image: linear-gradient(45deg, transparent 52%, #cbb7ca 52%), linear-gradient(135deg, #cbb7ca 48%, transparent 48%);
  background-position: calc(100% - 18px) center, calc(100% - 13px) center;
  background-size: 5px 5px;
  background-repeat: no-repeat;
}
#saju-starlight #ss-profile input::placeholder { color: #a696a9; }
#saju-starlight #ss-profile input:read-only,
#saju-starlight #ss-profile input:disabled {
  background-color: #201925;
  color: #c6b8c8;
}
#saju-starlight #ss-profile input[type="checkbox"],
#saju-starlight #ss-report .order-options input { accent-color: var(--folio-gold); }
#saju-starlight #ss-profile .optional-hanja {
  border: 1px solid var(--folio-rule);
  background: #1c1622;
  border-radius: 9px;
  padding: 0 13px;
  margin-top: 14px;
}
#saju-starlight #ss-profile .optional-hanja[open] { padding-bottom: 12px; }
#saju-starlight #ss-profile .optional-hanja summary { color: #e6d9d9; }
#saju-starlight #ss-profile .bd-fieldset:disabled { opacity: .7; }
#saju-starlight #ss-profile :focus-visible,
#saju-starlight #ss-report :is(button, a, select, input, summary, textarea):focus-visible {
  outline: 2px solid var(--folio-gold);
  outline-offset: 3px;
}
#saju-starlight #ss-profile .unlock,
#saju-starlight #ss-report .unlock {
  display: block;
  width: 100%;
  min-height: 49px;
  padding: 12px 20px;
  margin: 20px 0 0;
  border-radius: 9px;
  border: 1px solid #f1d49f;
  background: linear-gradient(100deg, #e6bc81, #f0d7ab 58%, #d7af7b);
  color: #291c23;
  font-weight: 750;
  font-size: 1rem;
  box-shadow: 0 5px 18px #0d08193d;
}
#saju-starlight #ss-profile .unlock:hover,
#saju-starlight #ss-report .unlock:hover { filter: brightness(1.06); }

#saju-starlight #ss-report .step-head .eyebrow,
#saju-starlight #ss-report .reading-head .eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--folio-gold);
  letter-spacing: .15em;
  font-size: .78rem;
}
#saju-starlight #ss-report .step-head .eyebrow::before,
#saju-starlight #ss-report .reading-head .eyebrow::before {
  content: "";
  width: 25px;
  height: 1px;
  background: var(--folio-gold);
}
#saju-starlight #ss-report .step-head h2 { margin-top: 10px; font-size: clamp(29px,5.2vw,44px); }
#saju-starlight #ss-report .report-actions { gap: 5px 12px; }
#saju-starlight #ss-report .report-actions button { padding: 8px 2px; color: #d5c7d4; font-size: .85rem; text-underline-offset: 3px; }
#saju-starlight #ss-report #ss-storage-note { margin: 1px 0 17px; }
#saju-starlight #ss-report #ss-element-title {
  font: 500 clamp(21px,3.2vw,30px)/1.48 var(--folio-serif);
  letter-spacing: -.045em;
  color: #fff2dd;
}
#saju-starlight #ss-report #ss-element-counts { gap: 6px; }
#saju-starlight #ss-report #ss-element-counts li {
  padding: 6px 10px;
  border-radius: 5px;
  border: 1px solid #705d6b;
  background: #18131d;
  font-size: .85rem;
  color: #ede2e8;
}
#saju-starlight #ss-report #ss-element-counts strong { color: var(--folio-accent); }
#saju-starlight #ss-report .bd-chart caption { color: #ead2aa; font-size: .96rem; padding-bottom: 3px; }
#saju-starlight #ss-report .bd-chart :is(th,td) { border-color: var(--folio-rule); }
#saju-starlight #ss-report .bd-chart thead { background: #ffffff06; }
#saju-starlight #ss-report .bd-chart .bd-glyph { font-size: clamp(23px,3.3vw,34px); font-family: var(--folio-serif); margin: 4px 0; }
#saju-starlight #ss-report .bd-chart summary { padding: 12px 0; min-height: 44px; }
#saju-starlight #ss-report .bd-chart .bd-luck li { background: #17131e; border-color: var(--folio-rule); }
#saju-starlight #ss-report > .name-reading { padding: 0 clamp(16px,3.5vw,30px); }
#saju-starlight #ss-report .name-reading > summary { min-height: 48px; padding: 13px 0; }
#saju-starlight #ss-report .name-reading[open] { padding-bottom: 16px; }
#saju-starlight #ss-report .extra-tools details,
#saju-starlight #ss-report .evidence {
  border: 1px solid var(--folio-rule);
  background: #211a28;
  border-radius: 10px;
}
#saju-starlight #ss-report .extra-tools summary,
#saju-starlight #ss-report .extra-actions :is(button,a) { min-height: 44px; }
#saju-starlight #ss-report .extra-tools { margin: 13px 0; gap: 6px; }

#saju-starlight #ss-report #ss-access-summary { margin: 23px 0 10px; font-size: .85rem; color: #cdbac9; }
#saju-starlight #ss-report .categories {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 4px;
  padding: 5px;
  background: #19141e;
  border: 1px solid var(--folio-rule);
  border-radius: 13px;
  margin-bottom: 15px;
}
#saju-starlight #ss-report .categories button { color: #d4c8d5; border-radius: 8px; font-size: .9rem; white-space: normal; padding: 8px 2px; }
#saju-starlight #ss-report .categories button[aria-pressed="true"] {
  background: color-mix(in srgb, var(--glow) 17%, #29222e);
  border-color: color-mix(in srgb, var(--glow) 46%, #39303e);
  color: #fff4e7;
  font-weight: 650;
}
#saju-starlight #ss-report .reading-head { align-items: flex-end; }
#saju-starlight #ss-report .reading-head .sample { color: #cfbccd; font-size: .77rem; white-space: nowrap; }
#saju-starlight #ss-report .score-area { gap: clamp(14px,3.5vw,26px); margin: 22px 0 12px; }
#saju-starlight #ss-report .score {
  padding: 3px;
  background: conic-gradient(from 215deg, var(--folio-gold), var(--folio-accent) calc(var(--value)*1%), #4e4050 0);
  box-shadow: 0 0 28px color-mix(in srgb,var(--glow) 13%,transparent);
}
#saju-starlight #ss-report .score > div { background: #211a27; box-shadow: inset 0 0 0 5px #ffffff05; }
#saju-starlight #ss-report .score strong { color: #f9e7c8; }
#saju-starlight #ss-report .score-copy h3 { font: 550 clamp(18px,3vw,24px)/1.45 var(--folio-serif); color: #faf0e2; }
#saju-starlight #ss-report .score-copy .small-star { color: var(--folio-gold); }
#saju-starlight #ss-report .body-copy,
#saju-starlight #ss-report .base-topics p,
#saju-starlight #ss-report .long-reading p,
#saju-starlight #ss-report .compat p {
  color: #e9dfe8;
  font-size: 1rem;
  line-height: 1.93;
  letter-spacing: -.012em;
}
#saju-starlight #ss-report #ss-story-opening { margin: 14px 0; }
#saju-starlight #ss-report .divider {
  margin: 23px 0;
  background: linear-gradient(90deg, var(--folio-accent), #514053 35%, #51405355);
}
#saju-starlight #ss-report .section-label { color: #e3c8a7; font-size: .86rem; }
#saju-starlight #ss-report .teaser {
  border-color: var(--folio-rule);
  color: #e7d0ac;
  font-size: .94rem;
}
#saju-starlight #ss-report .base-topics { margin-top: 22px; gap: 12px; }
#saju-starlight #ss-report .base-topics section {
  padding: clamp(15px, 3.2vw, 22px);
  border: 1px solid #514152;
  border-left: 2px solid var(--folio-accent);
  background: linear-gradient(110deg, #312635, #28202c);
  border-radius: 4px 11px 11px 4px;
}
#saju-starlight #ss-report .base-topics h3,
#saju-starlight #ss-report .long-reading h3,
#saju-starlight #ss-report #ss-story-title {
  font: 550 clamp(18px,3vw,22px)/1.5 var(--folio-serif);
  color: #f7e6cc;
  letter-spacing: -.04em;
}
#saju-starlight #ss-report .base-topics h4 { color: var(--folio-accent); }
#saju-starlight #ss-report #ss-deep {
  margin-top: 18px;
  border-color: #735a49;
  background: radial-gradient(ellipse at 85% 0%, #76553a24, transparent 480px), #211a25;
}
#saju-starlight #ss-report .deep-head { letter-spacing: .14em; color: var(--folio-gold); font-size: .78rem; }
#saju-starlight #ss-report .gold-badge { font-size: .77rem; background: #3b302e; color: #efcca0; border: 1px solid #716049; }
#saju-starlight #ss-report .long-reading section, #saju-starlight #ss-report .compat { margin-top: 23px; padding-top: 21px; border-color: var(--folio-rule); }
#saju-starlight #ss-report .date-list { gap: 1px; border: 1px solid var(--folio-rule); border-radius: 10px; overflow: hidden; background: var(--folio-rule); }
#saju-starlight #ss-report .date-list li { border: 0; border-radius: 0; background: #251d2a; color: #dfd3df; padding: 12px; }
#saju-starlight #ss-report .date-list strong { color: #ead1ad; }
#saju-starlight #ss-report .date-list small { color: var(--folio-muted); font-size: .8rem; }
#saju-starlight #ss-report .month-list li { border-color: var(--folio-rule); color: #e5d6d7; gap: 5px; }
#saju-starlight #ss-report .month-list li > strong { color: var(--folio-gold); }
#saju-starlight #ss-report .month-list summary { padding: 5px 0; font-size: .94rem; }
#saju-starlight #ss-report .month-list .index-note { font-size: .83rem; color: var(--folio-muted); }

#saju-starlight #ss-report .order-base > strong,
#saju-starlight #ss-report .order-total > strong {
  font: 600 clamp(20px,4vw,29px)/1.2 var(--folio-serif);
  color: #f2d5a7;
  white-space: nowrap;
}
#saju-starlight #ss-report .order-options legend { color: #ecd6b8; }
#saju-starlight #ss-report .order-options label {
  min-width: 0;
  min-height: 58px;
  padding: 10px 12px;
  gap: 9px;
  background: #1c1722;
  border-color: #554357;
  border-radius: 9px;
}
#saju-starlight #ss-report .order-options label:has(input:checked) {
  border-color: #bb9b74;
  background: linear-gradient(110deg, #403130, #33282f);
}
#saju-starlight #ss-report .order-options .order-all { background: #2c2329; border-color: #7d6454; }
#saju-starlight #ss-report .order-options strong { color: #edcda3; }
#saju-starlight #ss-report .order-total { border-color: #6c5548; padding-top: 18px; }
#saju-starlight #ss-report .lock-card h3 { color: #f4dfc0; }
#saju-starlight #ss-report .footnote { margin: 16px 0; }
#saju-starlight .content footer { color: #c8b6c9; border-color: #483749; }
#saju-starlight .content footer a { text-underline-offset: 3px; }

@media (min-width: 660px) {
  #saju-starlight #ss-report .categories { grid-template-columns: repeat(6,minmax(0,1fr)); }
  #saju-starlight #ss-report .extra-tools { grid-template-columns: repeat(2,minmax(0,1fr)); align-items: start; }
  #saju-starlight #ss-report .date-list { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 380px) {
  #saju-starlight #ss-profile,
  #saju-starlight #ss-report > :is(.reading,.order,.element-panel,.deep) { padding: 18px 14px; border-radius: 15px; }
  #saju-starlight #ss-report > .name-reading { padding: 0 14px; }
  #saju-starlight #ss-report .score { width: 80px; height: 80px; }
  #saju-starlight #ss-report .score strong { font-size: 34px; }
  #saju-starlight #ss-report .reading-head { flex-wrap: wrap; }
  #saju-starlight #ss-report .order-options label { padding: 9px 7px; gap: 6px; grid-template-columns: 18px minmax(0,1fr) auto; }
  #saju-starlight #ss-report .bd-chart .bd-luck { grid-template-columns: repeat(3,minmax(0,1fr)); }
}
@media (prefers-reduced-motion: reduce) {
  #saju-starlight #ss-profile input { transition: none; }
}
#saju-starlight #ss-report .step-head {
  margin: 4px 0 15px;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(22px,4vw,38px);
  border: 1px solid #634c55;
  border-radius: 11px;
  background: linear-gradient(115deg,#2a1c2b,#261b27 60%,#33232c);
}
#saju-starlight #ss-report .step-head::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0 0 0 auto;
  width: 45%;
  background: url("./art/moon-deer-small.webp") 51% 35% / cover;
  opacity: .64;
  mask-image: linear-gradient(90deg,transparent,#000 72%);
}
#saju-starlight #ss-report .step-head h2 { position:relative;max-width:85%;text-wrap:balance;scroll-margin-top:32px;text-shadow:0 2px 12px #181018; }

#saju-starlight .fortune[data-folio] {
  background: radial-gradient(ellipse 90% 720px at 70% 0%, var(--silk), transparent 90%),
    linear-gradient(160deg, var(--lacquer), #151219 1000px);
}
#saju-starlight [data-folio] #ss-report {
  --folio-accent: var(--inlay);
  --folio-rule: color-mix(in srgb, var(--inlay) 33%, var(--lacquer));
  --folio-panel: color-mix(in srgb,var(--lacquer) 68%,#211b24);
}
#saju-starlight [data-folio] #ss-report .step-head {
  display: grid;
  grid-template-columns: minmax(0,1.14fr) minmax(0,1fr);
  padding: 0;
  border: 1px solid var(--folio-rule);
  border-radius: 12px;
  background: linear-gradient(130deg,var(--silk),var(--lacquer) 69%);
  scroll-margin-top: 14px;
}
#saju-starlight [data-folio] #ss-report .step-head::after { content:none; }
#saju-starlight [data-folio] .step-copy { align-self:center; padding: clamp(24px,4vw,43px); }
#saju-starlight [data-folio] #ss-report .step-head :is(.eyebrow,#ss-cover-caption) { color: var(--inlay); }
#saju-starlight [data-folio] #ss-report .step-head .eyebrow::before { background:var(--inlay); }
#saju-starlight [data-folio] #ss-report .step-head h2 { max-width:100%; margin:12px 0 20px; }
#saju-starlight .folio-legend { padding-top:14px; border-top:1px solid var(--folio-rule); }
#ss-cover-caption { font: 550 1.12rem/1.5 var(--folio-serif); margin:0 0 5px; }
#ss-cover-reason { font-size:.9rem; line-height:1.68; color:#ede4df; margin:0; }
#saju-starlight .folio-art {
  position:relative; min-height:220px; aspect-ratio:1.5; align-self:stretch;
  overflow:hidden; background:var(--lacquer);
  border-left:1px solid var(--folio-rule);
}
#saju-starlight .folio-art img { position:absolute; inset:0; width:100%; height:100%; display:block; object-fit:cover; }
#saju-starlight .folio-art::after { content:""; position:absolute;inset:7px;border:1px solid color-mix(in srgb,var(--inlay) 36%,transparent);pointer-events:none; }
#saju-starlight [data-folio] #ss-report :is(.reading,.deep,.element-panel) {
  border-color:var(--folio-rule);
  background:linear-gradient(130deg,color-mix(in srgb,var(--silk) 50%,#201922),var(--folio-panel) 70%);
}
#saju-starlight [data-folio] #ss-report .base-topics section { background:linear-gradient(105deg,color-mix(in srgb,var(--silk) 65%,#251f28),var(--folio-panel)); }
#saju-starlight [data-folio] #ss-report .score { background: conic-gradient(from 215deg,#ede0c8,var(--inlay) calc(var(--value)*1%),var(--folio-rule) 0); }
#saju-starlight [data-folio] #ss-report .categories button[aria-pressed="true"] { background:var(--silk);border-color:var(--inlay); }
@media(max-width:620px){
  #saju-starlight [data-folio] #ss-report .step-head { grid-template-columns:1fr; }
  #saju-starlight [data-folio] .folio-art { grid-row:1; width:100%; aspect-ratio:1.51;min-height:0;border-left:0;border-bottom:1px solid var(--folio-rule); }
  #saju-starlight [data-folio] .step-copy { padding:19px 22px 22px; }
  #saju-starlight [data-folio] #ss-report .step-head h2 { margin:9px 0 15px; }
}

/* Each tied element owns an equal stop in the lacquer and inlay gradients. */
#saju-starlight .fortune[data-blended] {
  background: linear-gradient(to bottom,transparent 0,#151219 960px),linear-gradient(112deg,var(--folio-inks));
}
#saju-starlight [data-blended] #ss-report .step-head {
  border:1px solid transparent;
  background:linear-gradient(112deg,var(--folio-silks)) padding-box,
             linear-gradient(112deg,var(--folio-inlays)) border-box;
}
#saju-starlight [data-blended] #ss-report .folio-legend {
  border:0;
  background:linear-gradient(90deg,var(--folio-inlays)) 0 0 / 100% 1px no-repeat;
}
#saju-starlight [data-blended] #ss-report :is(.reading,.deep,.element-panel) {
  background:linear-gradient(110deg,var(--folio-inks));
}
#saju-starlight [data-blended] #ss-report .categories button[aria-pressed="true"] {
  background:linear-gradient(110deg,var(--folio-silks));
}
#saju-starlight [data-blended] #ss-report .score {
  background:conic-gradient(from 215deg,var(--folio-ring),var(--folio-rule) 0);
}
#saju-starlight .folio-art:is([data-panels="3"],[data-panels="4"],[data-panels="5"]) {
  display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:2px;
  background:linear-gradient(100deg,var(--folio-inlays));
}
#saju-starlight .folio-art[data-panels="3"] {grid-template-columns:repeat(3,minmax(0,1fr));}
#saju-starlight .folio-art:not([data-panels="1"]) img {position:static;min-width:0;min-height:0;}

#ss-element-story {
  margin: 24px 0;
  padding: clamp(17px, 3.2vw, 26px);
  background: linear-gradient(100deg,var(--folio-inlays)) 0 0 / 100% 2px no-repeat, #ffffff05;
}
#saju-starlight #ss-element-story h3 {
  margin: 0 0 12px;
  font: 550 clamp(20px,3vw,25px)/1.5 var(--folio-serif);
  color: #fff2dd;
}
#saju-starlight #ss-element-story h4 {
  margin: 18px 0 4px;
  font-size: 1rem;
  color: var(--inlay);
}
#saju-starlight #ss-element-story p {margin: 0;}
#saju-starlight #ss-element-story .index-note {margin-top: 16px;}
#saju-starlight .pair-example {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--folio-rule);
}
#saju-starlight .pair-example span {
  display: block;
  margin-bottom: 4px;
  font-size: .9rem;
  color: var(--inlay);
}

/* Birth form and purchase options */
#saju-starlight .fortune[data-view=form] .content{max-width:1020px}
#saju-starlight #ss-profile{
  --intake-picture:url("./art/moon-deer-small.webp");
  display:grid;grid-template-columns:minmax(0,.82fr) minmax(0,1.18fr);
  padding:0;overflow:hidden;border-radius:13px;border-color:#5c485e;
  background:linear-gradient(135deg,#2f2337,#201a27 60%);
}
#saju-starlight #ss-profile[hidden]{display:none}
#saju-starlight #ss-profile[data-book="life"]{--intake-picture:url("./art/folio-wood.webp")}
.intake-cover{
  display:flex;flex-direction:column;justify-content:space-between;isolation:isolate;position:relative;overflow:hidden;
  min-height:200px;padding:clamp(23px,3.6vw,44px);border-right:1px solid #604d62;
  background:linear-gradient(150deg,#30233d,#211821 65%);
}
.intake-cover::before{content:"";position:absolute;z-index:-1;inset:0;background:
  linear-gradient(180deg,#251a30 0%,#251a3070 24%,transparent 53%,#171120b8 91%,#211825),
  var(--intake-picture) center 55% / cover no-repeat;opacity:.95}
.intake-cover::after{content:"";position:absolute;inset:8px;border:1px solid #e9c7a02e;pointer-events:none}
#saju-starlight #ss-form-title{font:400 clamp(29px,3.9vw,46px)/1.25 var(--display);letter-spacing:-.065em;color:#ffedd3;margin:0 0 12px;scroll-margin-top:24px}
.intake-copy{max-width:27ch;text-shadow:0 1px 9px #201423}
.intake-copy p{margin:0;font-size:1rem;line-height:1.7;color:#f4e6e3}
.intake-steps{display:flex;gap:4px 17px;flex-wrap:wrap;padding:0;margin:30px 0 0;list-style:none;font-size:.88rem;color:#e1d1de}
.intake-steps li{padding-top:6px;border-top:1px solid #998390}
.intake-steps [aria-current]{color:#ffe1a8;border-color:#e9c17e}
.intake-fields{min-width:0;padding:clamp(20px,3.6vw,42px)}
.intake-group{border:0;min-width:0;margin:0;padding:0}
.intake-group+ .intake-group{margin-top:25px}
.intake-group>legend{width:100%;margin:0;padding:0 0 8px;color:#fae5ca;border-bottom:1px solid #5d475b;font:400 22px/1.5 var(--display)}
.intake-group>legend small{font:400 .85rem/1 system-ui,sans-serif}
#saju-starlight #ss-profile .profile-note{margin:7px 0 0}
#saju-starlight #ss-profile .intake-save{text-align:center;margin:12px 0 0}
#saju-starlight #ss-profile .back{margin:4px auto 0}
#saju-starlight #ss-profile .bd-check{margin-top:6px}
#saju-starlight #ss-profile .bd-cal-row .bd-check{padding-bottom:3px}
#saju-starlight #ss-profile .optional-hanja summary{min-height:44px;align-content:center}
#saju-starlight #ss-profile :is(input,select){color-scheme:dark}
#saju-starlight #ss-report .order-base{align-items:baseline;gap:16px;padding-bottom:15px;border-bottom:1px solid #5d485c}
#saju-starlight #ss-report .order-base p{max-width:48ch;font-size:1rem;line-height:1.7;margin:8px 0 0}
#saju-starlight #ss-report .order-base>strong{font-size:clamp(16px,2vw,21px);white-space:nowrap}
.order-layout{display:grid;grid-template-columns:minmax(0,1.24fr) minmax(0,.85fr);align-items:start;gap:clamp(16px,3vw,32px);margin-top:20px}
#saju-starlight #ss-report .order-options{grid-template-columns:minmax(0,1fr);margin:0}
#saju-starlight #ss-report .order-options label{gap:10px;min-height:62px;padding:10px 13px}
#saju-starlight #ss-report .order-options label span{font-weight:600}
#saju-starlight #ss-report .order-options .option-sub{font-size:.87rem;font-weight:400;line-height:1.5}
#saju-starlight #ss-report .order-all small{font-size:.82rem}
.order-receipt{border:1px solid #776075;border-radius:9px;padding:clamp(16px,2vw,23px);background:linear-gradient(150deg,#382a3d,#241d29)}
.order-receipt h4{margin:0 0 13px;color:#f2d6b2;font:400 22px/1.4 var(--display)}
.receipt-lines{list-style:none;margin:0;padding:0}
.receipt-lines li{display:flex;justify-content:space-between;align-items:baseline;gap:10px;font-size:.92rem;color:#ecdee8;padding:5px 0}
.receipt-lines li>span:last-child{white-space:nowrap;font-variant-numeric:tabular-nums}
.receipt-lines .receipt-discount{color:#f4c98d}
#saju-starlight #ss-report .order-total{margin-top:12px;padding-top:13px}
#saju-starlight #ss-report .order-receipt .unlock{margin:14px 0 0}
.receipt-note{font-size:.85rem;line-height:1.65;color:#d3c2d2;margin:10px 0 0}
#saju-starlight #ss-report .order-status{font-size:.9rem;color:#f1d4ac;margin:10px 0 0}
@media(max-width:760px){
  #saju-starlight .fortune[data-view=form] .content{max-width:600px}
  #saju-starlight #ss-profile{grid-template-columns:1fr}
  .intake-cover{min-height:172px;border:0;border-bottom:1px solid #5d495d;padding:22px}
  .intake-cover::before{background:linear-gradient(90deg,#251a30 12%,#251a30b5 58%,#251a3010),var(--intake-picture) 100% 44% / min(65%,380px) auto no-repeat}
  .intake-steps{margin:18px 0 0}
  .intake-copy{max-width:72%}
  .order-layout{grid-template-columns:1fr}
}
@media(max-width:410px){
  #saju-starlight #ss-report .order-base{display:block}
  #saju-starlight #ss-report .order-base>strong{display:block;margin-top:10px}
}

/* Reading index and monthly chapters */
#saju-starlight #ss-report .step-copy:has(#ss-folio-opening:not([hidden])) #ss-page-title {
  max-width: 100%;
  margin: 8px 0;
  font: 550 .97rem/1.55 var(--folio-serif);
  color: #f1d6b9;
}
#saju-starlight #ss-folio-opening { position: relative; max-width: 38rem; }
#saju-starlight #ss-folio-headline {
  margin: 9px 0 13px;
  font: 550 clamp(26px, 4.4vw, 39px)/1.38 var(--folio-serif);
  letter-spacing: -.065em;
  color: #fff3dd;
  text-wrap: balance;
}
#saju-starlight #ss-folio-lead {
  margin: 0;
  font-size: 1rem;
  line-height: 1.85;
  color: #f4e8e7;
}
#saju-starlight #ss-report .folio-legend { margin-top: 18px; }
#saju-starlight .fortune:not([data-folio]) #ss-report .step-head:has(#ss-folio-opening:not([hidden]))::after {
  width: 55%; opacity: .35;
}
#saju-starlight .folio-chart-drawer,
#saju-starlight #ss-folio-index {
  border: 1px solid var(--folio-rule);
  border-radius: 10px;
  margin: 11px 0;
  background: var(--folio-panel);
}
#saju-starlight .folio-chart-drawer > summary,
#saju-starlight #ss-folio-index > summary {
  cursor: pointer;
  padding: 13px 17px;
  color: #efdec4;
  font-size: .96rem;
  font-weight: 600;
}
#saju-starlight #ss-report .folio-chart-drawer #ss-elements {
  margin: 0; padding: 8px clamp(13px,3vw,25px) 18px;
  border: 0; border-radius: 0 0 10px 10px;
}
#saju-starlight #ss-report #ss-folio-index { margin: 0 0 14px; }
#saju-starlight #ss-folio-links {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 0 18px;
  padding: 0 clamp(12px,3vw,22px) 12px;
}
#saju-starlight #ss-folio-links a {
  display: flex; align-items: center; min-width: 0; min-height: 42px;
  padding: 6px 1px; border-top: 1px solid var(--folio-rule);
  color: #eadbc9; font-size: .93rem; line-height: 1.55;
  text-decoration: underline; text-underline-offset: 4px;
  text-decoration-color: color-mix(in srgb,var(--folio-accent) 45%,transparent);
}
#saju-starlight #ss-report [data-folio-link],
#saju-starlight #ss-report .month-list details { scroll-margin-top: 16px; }
#saju-starlight #ss-report [data-folio-link]:focus-visible { outline: 2px solid var(--folio-gold); outline-offset: 4px; }
#saju-starlight #ss-folio-topic-love { --topic-art: url("./art/love.webp"); }
#saju-starlight #ss-folio-topic-work { --topic-art: url("./art/work.webp"); }
#saju-starlight #ss-folio-topic-money { --topic-art: url("./art/money.webp"); }
#saju-starlight #ss-folio-topic-health { --topic-art: url("./art/health.webp"); }
#saju-starlight #ss-base-topics section > h3 {
  display: flex; align-items: center; gap: 12px;
  margin: 0 0 8px; color: #fff0d5;
  font-size: clamp(21px,3vw,26px);
}
#saju-starlight #ss-base-topics section > h3::before {
  content: ""; width: 47px; height: 47px; flex: none;
  border: 1px solid var(--folio-rule); border-radius: 50%;
  background: #19151c var(--topic-art) center/cover;
}
#saju-starlight #ss-base-topics .topic-passage h4 { font-size: .96rem; }
#saju-starlight #ss-season-picks {
  margin: 22px 0; padding: 17px clamp(14px,3vw,24px);
  border: 1px solid var(--folio-rule); border-radius: 9px;
  background: color-mix(in srgb,var(--folio-accent) 6%,var(--folio-panel));
}
#saju-starlight #ss-season-picks h3 { margin: 0; color: #ffe9c9; font: 550 1.2rem/1.55 var(--folio-serif); }
#saju-starlight #ss-season-picks > p { margin: 4px 0 12px; font-size: .91rem; line-height: 1.72; color: var(--folio-muted); }
#saju-starlight #ss-season-links { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 15px; }
#saju-starlight #ss-season-links a { display: block; padding: 8px 0; border-top: 1px solid var(--folio-rule); color: var(--folio-ink); text-decoration: none; }
#saju-starlight #ss-season-links strong,#saju-starlight #ss-season-links span { display: block; }
#saju-starlight #ss-season-links strong { color: var(--folio-accent); font-size: .9rem; }
#saju-starlight #ss-season-links span { margin-top: 2px; font-size: .98rem; line-height: 1.65; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--folio-rule); }
#saju-starlight #ss-report .folio-month-picker {
  display: flex; align-items: center; flex-wrap: wrap; gap: 10px;
  margin: 12px 0 16px; color:var(--folio-muted); font-size:.94rem;
}
#saju-starlight #ss-report .folio-month-picker select {
  min-width: 110px; min-height: 42px; padding: 5px 12px; border: 1px solid var(--folio-rule);
  border-radius: 6px; background: var(--folio-panel); color: var(--folio-ink); font: inherit;
}
@media (min-width: 780px) {
  #saju-starlight #ss-base-topics section {
    display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); column-gap: clamp(20px,3vw,38px);
  }
  #saju-starlight #ss-base-topics h3, #saju-starlight #ss-base-topics .pair-example { grid-column: 1/-1; }
  #saju-starlight #ss-base-topics .topic-passage { min-width: 0; }
}
@media (max-width: 620px) {
  #saju-starlight #ss-report .folio-art { max-height: 195px; }
}

/* Calendar controls and chart */
#saju-starlight .bd-cal-row{display:flex;align-items:flex-end;gap:1rem}
#saju-starlight .bd-cal-row>label:first-child{flex:1}
#saju-starlight .profile select{display:block;width:100%;min-width:0;min-height:44px;margin-top:6px;padding:8px 12px;border:1px solid var(--line);border-radius:10px;background:var(--page);color:var(--ink);font:inherit;font-size:16px}
#saju-starlight .profile .bd-check{display:flex;align-items:center;gap:8px;min-height:40px}
#saju-starlight .profile .bd-check input{width:18px;height:18px;min-height:0;margin:0;accent-color:#a77ace}
#saju-starlight .bd-fieldset{border:0;margin:0;padding:0}
#saju-starlight .bd-fieldset legend{font-size:14px;padding:10px 0 0}
#saju-starlight .bd-chart{margin-top:18px}
#saju-starlight .bd-chart table{border-collapse:collapse;table-layout:fixed;width:100%;text-align:center;font-size:14px}
#saju-starlight .bd-chart caption{text-align:left;font-size:16px;font-weight:650;margin:8px 0}
#saju-starlight .bd-chart th,#saju-starlight .bd-chart td{padding:9px 1px;overflow-wrap:anywhere;border-bottom:1px solid var(--line)}
#saju-starlight .bd-chart th{font-weight:550}
#saju-starlight .bd-chart .bd-glyph{display:block;font-size:22px;font-family:serif}
#saju-starlight .bd-chart .bd-glyph[data-el="목"]{color:#a4dda6}
#saju-starlight .bd-chart .bd-glyph[data-el="화"]{color:#ffc6ac}
#saju-starlight .bd-chart .bd-glyph[data-el="토"]{color:#eac47b}
#saju-starlight .bd-chart .bd-glyph[data-el="금"]{color:#dccded}
#saju-starlight .bd-chart .bd-glyph[data-el="수"]{color:#a9d5fb}
#saju-starlight .bd-chart summary{cursor:pointer;font-size:14px;padding:10px 0}
#saju-starlight .bd-chart .bd-luck{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));padding:0;list-style:none;gap:4px;font-size:13px}
#saju-starlight .bd-luck li{text-align:center;padding:6px 0;border:1px solid var(--line);border-radius:8px}
#saju-starlight .bd-luck strong{display:block}

/* Daily reading and sharing */
#saju-starlight .extra-tools{display:grid;gap:8px;margin:16px 0}
#saju-starlight .extra-tools details{background:var(--panel);border:1px solid var(--line);border-radius:16px;color:var(--ink)}
#saju-starlight .extra-tools summary{padding:12px 16px;font-size:15px;cursor:pointer;font-weight:650}
#saju-starlight .extra-inner{padding:0 16px 16px}
#saju-starlight .extra-inner h3{font-size:17px;line-height:1.5;margin:12px 0 4px}
#saju-starlight .extra-tools p{font-size:15px;line-height:1.7;margin:8px 0}
#saju-starlight .extra-muted{color:var(--sub)}
#saju-starlight .extra-inner img{display:block;width:min(100%,280px);height:auto;border-radius:15px;margin:0 auto 12px}
#saju-starlight .extra-actions{display:flex;flex-wrap:wrap;align-items:end;gap:8px}
#saju-starlight .extra-actions button,#saju-starlight .extra-actions a{display:inline-block;padding:11px 15px;border:1px solid var(--line);background:var(--panel);color:var(--ink);border-radius:12px;font:inherit;font-size:14px;text-decoration:none;cursor:pointer}
#saju-starlight .extra-tools [hidden],#saju-starlight .extra-tools[hidden],
#saju-starlight .extra-inner [role=status]:empty { display: none; }
#saju-starlight .extra-share textarea{width:100%;margin:8px 0;color:var(--ink);background:var(--page);font:inherit}
#saju-starlight #ss-report .extra-tools:has(.extra-share[hidden]){grid-template-columns:1fr}
#saju-starlight .score-method{border-top:1px solid var(--folio-rule);margin-top:12px}
#saju-starlight .score-method summary{align-content:center;min-height:44px;color:var(--folio-muted)}

/* The three book covers link to independent readings. */
#saju-starlight .new-books{padding-block:clamp(24px,3.8vw,46px);border-top:0}
#saju-starlight .book-shelf{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:clamp(12px,2vw,25px)}
.book-shelf>a{display:grid;grid-template-rows:auto 1fr;overflow:hidden;min-width:0;border:1px solid #665261;border-radius:6px;background:linear-gradient(150deg,#302434,#211b26);color:#f4e6d5;text-decoration:none}
.book-shelf>a:hover,.book-shelf>a:focus-visible{border-color:#d8af83}
.book-shelf>a:focus-visible{outline:2px solid #e9c69d;outline-offset:3px}
.book-shelf img{display:block;width:100%;height:clamp(116px,14vw,181px);object-fit:cover;object-position:center 51%;border-bottom:1px solid #6b5560}
.book-shelf>a>span{display:flex;align-content:start;align-items:baseline;flex-wrap:wrap;gap:4px 12px;padding:15px clamp(13px,1.8vw,24px) 18px}
.book-shelf strong{font:400 clamp(22px,2.3vw,29px)/1.35 var(--display);letter-spacing:-.055em}
.book-shelf small{font-size:14px;color:#ecc8a1}
.book-shelf>a>span>span{width:100%;margin-top:3px;font-size:15px;line-height:1.65;color:#d1c4d2;word-break:keep-all}
@media(max-width:720px){
 #saju-starlight .book-shelf{grid-template-columns:1fr;gap:9px}
 .book-shelf>a{grid-template:1fr / clamp(77px,24vw,125px) minmax(0,1fr)}
 .book-shelf img{height:100%;min-height:99px;max-height:145px;border:0;border-right:1px solid #5d4b5b}
 .book-shelf>a>span{padding:11px 14px;gap:1px 8px}
 .book-shelf strong{font-size:22px}.book-shelf small{font-size:13px}
 .book-shelf>a>span>span{font-size:14px;line-height:1.5}
}

#ss-preview-link {display:inline-block;color:#f0d2a2;text-underline-offset:4px;margin-top:10px;padding:5px 0;}
#ss-sample-body h4 {margin:18px 0 4px;color:#e6c99f;}

#ss-turn-page { margin:20px 0 10px; }
#ss-next-chapter { width:100%; min-height:48px; padding:12px 18px; background:#ecdbc3; border:1px solid #d0b78f; border-radius:8px; color:#281e27; }
#ss-to-top { position:fixed; right:max(12px,env(safe-area-inset-right)); bottom:max(14px,env(safe-area-inset-bottom)); z-index:5; min-height:44px; padding:8px 13px; border:1px solid #b59c83; border-radius:24px; background:#302630; color:#fff1db; box-shadow:0 2px 10px #17121655; }
[data-view="report"] footer { padding-bottom:max(68px,calc(env(safe-area-inset-bottom) + 58px)); }
@media print { #ss-to-top,#ss-turn-page {display:none!important;} }

.bundle-checkout { max-width: 32rem; margin: 0 auto; }
.bundle-checkout .bundle-includes { margin: 12px 0 8px; }
#saju-starlight #ss-report .bundle-checkout .unlock { width: 100%; min-height: 48px; margin: 0; }
.cover-readings {display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:22px;max-width:360px}
.cover-readings a,.shelf-life button {display:flex;align-items:center;justify-content:center;min-height:46px;color:#f5dfc5;background:#302431;border:1px solid #a4887c;border-radius:6px;text-decoration:none;font:600 16px/1.3 system-ui,sans-serif}
#saju-starlight .cover-readings #ss-start {grid-column:1/-1;width:100%;justify-content:space-between}
.shelf-life {display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px;margin-bottom:16px;padding:18px;border:1px solid #826c64;border-radius:6px;background:linear-gradient(125deg,#392c36,#251d2a)}
.shelf-life h3 {margin:0;color:#f6dfbe;font:400 23px/1.4 var(--display)}
.shelf-life p {margin:4px 0 0;color:#dcced7;font-size:14px}
#saju-starlight .shelf-life button {padding:0 16px}
@media(max-width:720px){
 #saju-starlight #ss-hero {display:grid;grid-template-columns:1fr;align-items:end;min-height:clamp(360px,61svh,530px);background:#241c28}
 #ss-hero .cover-plate {position:absolute;inset:0;aspect-ratio:auto;z-index:-1}
 #ss-hero .cover-plate picture {mask-image:linear-gradient(to bottom,#000 20%,#0008 54%,transparent 87%)}
 #ss-hero .cover-plate img {object-position:center 12%}
 #ss-hero .cover-copy {align-self:end;padding:24px 18px;width:100%;box-sizing:border-box;background:linear-gradient(transparent,#221a2499 55%)}
 #saju-starlight #ss-hero h1 {font-size:54px;letter-spacing:-.055em;margin:7px 0}
 #ss-hero .cover-readings {margin-top:16px;max-width:none}
}
