/* Geometry and surface roles shared by the 430px reading canvas. */
html { background:#0D0C0B !important; }
html body { container: sjm-app / inline-size; color:#F2EDE4; background:#0D0C0B !important; }
body { --night-shadow:none; --night-line:rgba(212,175,55,.18); }
body :is(h1,h2,h3,h4,strong,summary) { text-shadow:none !important; }
body :is(input,select,textarea,button,a):focus-visible { outline-color:#D4AF37 !important; }
body .sjm-footer-links a, body .sjm-footer-business { font-size:12px !important; line-height:1.8; }
body .sjm-footer-business { margin-top:24px; color:#A39B8F; overflow-wrap:anywhere; }
body .sjm-footer-business p { margin:3px 0; }
body .sjm-footer-brand strong { color:#F2EDE4; }
body .sjm-header { border-bottom:1px solid rgba(212,175,55,.18); }
body .sjm-service-panel-grid { grid-template-columns:1fr; max-height:70vh; overflow-y:auto; }
body .sjm-bottom-nav { background:#0D0C0B !important; }
body :is(.primary-btn,.primary-button,.product-cta,#birth-submit-button,.service-intro-start) {
  background:#F2EDE4 !important; color:#0D0C0B !important; border-color:#F2EDE4 !important; box-shadow:none !important;
}
body :is(.primary-btn,.primary-button,.product-cta,#birth-submit-button):disabled { opacity:.55; cursor:not-allowed; }
body :is(.status-badge,.state-badge,.free-badge,.beta-badge,.label-badge) { color:#D4AF37 !important; background:#161412 !important; }
body :is(.element-bar,.saju-bar-fill,.manse-element-fill,.gauge-fill) { background:#D4AF37 !important; }
body :is(.advanced-settings,.reading-disclosure,.reading-topic) { border-color:rgba(212,175,55,.18) !important; }
body :is(.reading-topic-summary,.reading-summary) { color:#F2EDE4 !important; }
body :is(.hero-title,.hero-title span) { -webkit-text-fill-color:#F2EDE4 !important; }

/* The banner has its own space; the type never competes with the painting. */
body.sjm-home .home-hero { padding-bottom:30px; }
body.sjm-home .hero-scene { display:block; min-height:0; height:174px; overflow:hidden; }
body.sjm-home .hero-image { position:static; display:block; width:100%; height:100%; object-fit:cover; object-position:50% 50%; mask-image:linear-gradient(#000 70%,transparent); mix-blend-mode:multiply; }
body.sjm-home .hero-copy { position:static; padding:6px 24px 24px; text-align:center; text-shadow:none; }
body.sjm-home .hero-copy>p { color:#A39B8F; margin:0 0 9px; font-size:12px; }
body.sjm-home .hero-copy h1 { font-size:31px; line-height:1.5; color:#F2EDE4; }
body.sjm-home .hero-copy .hero-description { margin:12px 0 0; font-size:14px; line-height:1.8; letter-spacing:0; }
body.sjm-home .quick-start { padding:0 24px; }
.home-birth-fields { display:grid; grid-template-columns:minmax(0,1.3fr) 44px minmax(0,1fr); gap:12px; align-items:start; }
body.sjm-home .home-birth-fields label,.home-calendar { display:grid; gap:8px; margin:0; font-size:11px; color:#A39B8F; }
body.sjm-home .home-birth-fields input,.home-calendar strong { width:100%; min-width:0; height:44px; padding:8px 0; background:transparent; color:#F2EDE4; font:inherit; font-size:16px; border:0; border-bottom:1px solid #655D50; border-radius:0; }
.home-calendar strong { display:flex; align-items:center; font-size:14px; font-weight:400; }
.home-time-hint { margin:9px 0 0; font-size:11px; color:#A39B8F; }
body.sjm-home #home-birth-form>.button { width:100%; margin-top:16px; background:#F2EDE4; color:#0D0C0B; border:1px solid #F2EDE4; border-radius:3px; min-height:49px; font-size:15px; }
body.sjm-home .field-error:empty { display:none; }
body.sjm-home .full-edition-link { justify-content:center; padding-top:14px; color:#A39B8F; }
.home-values { list-style:none; display:flex; margin:28px 24px 0; padding:22px 0 0; border-top:1px solid rgba(212,175,55,.18); }
.home-values li { flex:1; text-align:center; min-width:0; }
.home-values li>span { display:block; font-family:"Batang",serif; font-size:23px; color:#D4AF37; margin-bottom:7px; }
.home-values strong,.home-values small { display:block; font-size:12px; font-weight:400; line-height:1.8; }
.home-values small { color:#A39B8F; font-size:10px; }
body.sjm-home .featured-reading { min-height:0; padding:22px; margin-bottom:18px; background:#161412; border:1px solid rgba(212,175,55,.18); border-radius:3px; }
body.sjm-home .featured-copy { max-width:100%; }
body.sjm-home .featured-reading h3 { font-size:24px; }
body.sjm-home .featured-tag { color:#D4AF37; }
body.sjm-home .poster-shelf { display:grid; grid-template-columns:1fr; overflow:visible; margin:0; padding:0; gap:0; }
body.sjm-home .service-poster { min-height:0; height:auto; padding:18px 0; border-bottom:1px solid rgba(212,175,55,.18); }
body.sjm-home .service-poster>div { padding:0; min-height:0; }
body.sjm-home .poster-category { font-size:19px; }
body.sjm-home .service-poster h3 { font-size:13px; }
body.sjm-home .service-poster>div>span { margin-top:8px; }
body.sjm-home .reading-panel>.button { color:#D4AF37; background:transparent; border-color:#D4AF37; }
body.sjm-home .reading-clear { color:#F2EDE4; }
body.sjm-home .sample-input { color:#A39B8F; font-size:12px; }

/* Content grids respond to the app, never to the desktop window behind it. */
body :is(.question-entry-grid,.dream-overview-card,.dream-choice-grid,.tarot-category-grid,.choice-grid,.saju-tabs,.lucky-grid) { grid-template-columns:minmax(0,1fr) !important; }
body[data-sjm-page="lifetime"] #input-panel .choice-grid { grid-template-columns:minmax(0,1fr) !important; }
body .dream-overview-card>div { padding:12px 0; }
@container sjm-app (min-width:370px) {
  body :is(.dream-choice-grid,.tarot-category-grid,.choice-grid,.saju-tabs,.lucky-grid),
  body[data-sjm-page="lifetime"] #input-panel .choice-grid { grid-template-columns:repeat(2,minmax(0,1fr)) !important; }
  body.sjm-home .poster-shelf { grid-template-columns:repeat(2,minmax(0,1fr)); column-gap:24px; }
  body .dream-overview-card { grid-template-columns:repeat(2,minmax(0,1fr)) !important; }
  body .dream-overview-card>div:last-child { grid-column:1/-1; }
}
@media (min-width:1024px) {
  body:has(.sjm-bottom-nav) { padding-bottom:0 !important; }
  body .sjm-bottom-nav, body .sjm-mobile-menu-button { display:none !important; }
  body .sjm-desktop-nav { display:flex !important; gap:11px; margin-left:auto; }
  body .sjm-desktop-nav :is(a,button) { font-size:11px; padding:10px 0; white-space:nowrap; }
  body .sjm-header-inner { gap:10px; }
  body .sjm-logo strong,body:not(.sjm-home) .sjm-logo strong { font-size:21px !important; }
  body .sjm-service-panel:not([hidden]) { display:block !important; left:0; right:0; width:100%; min-width:0; }
}

/* Actual four pillars and the complete map remain before the story. */
body[data-sjm-page="lifetime"] :is(#lifetime-natal-overview,#lifetime-map-overview) { margin:18px 24px; padding:18px 0; border-bottom:1px solid rgba(212,175,55,.18); background:transparent; }
body[data-sjm-page="lifetime"] :is(#lifetime-natal-overview,#lifetime-map-overview) h2 { margin:0 0 12px; font-family:"Sijeolmadi Serif","Batang",serif; font-size:22px; font-weight:500; }
body[data-sjm-page="lifetime"] #pillars { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)) !important; gap:5px; }
body[data-sjm-page="lifetime"] #pillars>div { background:#161412 !important; padding:12px 3px; border:1px solid rgba(212,175,55,.18); text-align:center; }
body[data-sjm-page="lifetime"] #pillars :is(strong,b) { font-size:21px; color:#F2EDE4 !important; }
body[data-sjm-page="lifetime"] #day-master-summary { font-size:14px; line-height:1.8; margin-top:12px; }
body[data-sjm-page="lifetime"] #lifetime-roadmap { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)) !important; gap:6px; }
body[data-sjm-page="lifetime"] #lifetime-roadmap .life-band-preview { margin:0; padding:10px 7px; background:#161412 !important; border:1px solid rgba(212,175,55,.18) !important; font-size:11px; }
body[data-sjm-page="lifetime"] #lifetime-roadmap .life-band-preview :is(h3,strong) { font-size:12px; }
body[data-sjm-page="lifetime"] #lifetime-roadmap .life-band-preview p { font-size:11px; margin:5px 0 0; line-height:1.6; }
body[data-sjm-page="lifetime"] .payment-preview-dialog[open] { display:flex; flex-direction:column; overflow:hidden; padding:24px 18px 0; }
body[data-sjm-page="lifetime"] #payment-preview-content { overflow-y:auto; min-height:0; flex:1; padding-bottom:18px; }
body[data-sjm-page="lifetime"] .lifetime-lock-footer { flex-shrink:0; padding:15px 0 max(16px,env(safe-area-inset-bottom)); border-top:1px solid rgba(212,175,55,.18); background:#0D0C0B; }
body[data-sjm-page="lifetime"] .lifetime-lock-footer .paid-launch-action { padding:0; background:transparent !important; box-shadow:none !important; border:0; }
body[data-sjm-page="lifetime"] .lifetime-purchase-terms { font-size:12px; line-height:1.8; color:#F2EDE4 !important; }
body[data-sjm-page="lifetime"] .lifetime-lock-footer button { width:100%; min-height:48px; margin-top:8px; background:#F2EDE4; color:#0D0C0B; border:0; }
body[data-sjm-page="lifetime"] .lifetime-lock-footer button:disabled { opacity:.55; }
body[data-sjm-page="lifetime"] :is(.story-r9-art,.story-r98-plane)::before { background-image:none !important; }

/* Ink card backs are not generic content-card surfaces. */
body[data-sjm-page="tarot"] .tarot-card-back { background:repeating-linear-gradient(90deg,transparent 0 4px,rgba(107,101,94,.025) 4px 5px),#161412 !important; color:#F2EDE4 !important; border:1px solid #655D50 !important; box-shadow:none !important; transform:none; }
body[data-sjm-page="tarot"] .tarot-card-back::before { border:1px solid #655D50 !important; border-radius:50% !important; inset:22% 16% !important; background:none !important; }
body[data-sjm-page="tarot"] .tarot-card-back::after { color:#D4AF37 !important; background:none !important; }
body[data-sjm-page="tarot"] .tarot-card-symbol { color:#F2EDE4 !important; }
body[data-sjm-page="tarot"] .tarot-face { background:#161412 !important; }
body[data-sjm-page="tarot"] .tarot-face::before { content:none; }
body[data-sjm-page="dream"] .dream-symbol-card { border-top:1px solid rgba(212,175,55,.18) !important; }
.service-intro-overlay { background:#0D0C0B; color:#F2EDE4; }
.service-intro-overlay::backdrop { background:#0D0C0B; }
.service-intro-frame { background:#0D0C0B; }
.service-intro-image { mix-blend-mode:multiply; opacity:1; }
.service-intro-shade { background:linear-gradient(180deg,rgba(13,12,11,.05),rgba(13,12,11,.05) 40%,#0D0C0B 100%); }
.service-intro-story-copy { padding:20px 0; background:rgba(13,12,11,.8); }
.service-intro-story-title { font-size:26px; }
.service-intro-skip { background:rgba(13,12,11,.85); color:#A39B8F; }
.service-intro-cover .service-intro-start { border-radius:3px; }

/* Legacy result layers used their own colours; scope the reset to these views. */
body[data-sjm-page="lifetime"] #v363-premium-story,
body[data-sjm-page="lifetime"] #v363-premium-story :is(div,section,article,header,footer,p,span,strong,small,h2,h3,li,button) {
  background-color:transparent !important; background-image:none !important; color:#F2EDE4 !important;
  border-color:rgba(212,175,55,.18) !important; box-shadow:none !important; text-shadow:none !important;
}
body[data-sjm-page="lifetime"] #v363-premium-story :is(.story-next-cue,.story-swipe-hint,.story-choice-card,.story-flow-list>li) { background:#161412 !important; }
body[data-sjm-page="lifetime"] #v363-premium-story :is(.story-r9-copy,.story-r913-copy-short) { width:100% !important; max-width:100% !important; padding:20px 0 !important; }
body[data-sjm-page="lifetime"] #v363-premium-story .story-r9-scene { width:100% !important; min-width:0 !important; grid-template-columns:1fr !important; }
body[data-sjm-page="lifetime"] #v363-premium-story :is(.story-r9-art,.story-r98-plane,.story-r98-image) { height:210px !important; min-height:0 !important; width:100% !important; background:transparent !important; }
body[data-sjm-page="lifetime"] #v363-premium-story .story-r98-image { object-fit:cover !important; mix-blend-mode:multiply; }
body[data-sjm-page="lifetime"] #v363-premium-story :is(.story-nav-button,.story-next-button) { width:auto !important; min-width:60px; min-height:44px; padding:10px 14px; white-space:nowrap; border-radius:3px !important; }
body[data-sjm-page="lifetime"] #v363-premium-story .story-next-button { background:#F2EDE4 !important; color:#0D0C0B !important; }
body[data-sjm-page="lifetime"] #v363-premium-story .story-next-button :is(span,strong) { color:inherit !important; }
body[data-sjm-page="lifetime"] #v363-premium-story :is(.story-r9-controls,.story-controls) { display:flex !important; align-items:center; justify-content:space-between; gap:8px; padding:12px 0 !important; }
body[data-sjm-page="lifetime"] #v363-premium-story :is(.story-dot,.story-dot.active,.story-dot.is-active) { background:#A39B8F !important; }
body[data-sjm-page="lifetime"] #lifetime-map-overview { margin:20px 0 0; padding:14px 0 0; border:0; }
body[data-sjm-page="lifetime"] #lifetime-map-overview>p { margin:6px 0 12px; font-size:12px; }
body[data-sjm-page="lifetime"] #lifetime-roadmap { display:flex; overflow-x:auto; gap:8px; padding-bottom:10px; scroll-snap-type:x proximity; }
body[data-sjm-page="lifetime"] #lifetime-roadmap .life-band-preview { display:block !important; flex:0 0 132px; min-width:0; padding:12px; scroll-snap-align:start; }
body[data-sjm-page="lifetime"] #lifetime-roadmap .band-preview-copy { display:block; width:100% !important; min-width:0; }
body[data-sjm-page="lifetime"] #lifetime-roadmap .band-preview-copy strong { display:block; font-size:12px; line-height:1.7; margin-top:7px; min-height:62px; }
body[data-sjm-page="lifetime"] #lifetime-roadmap .preview-access { display:block; width:auto; height:auto; padding:0; margin-top:7px; font-size:10px; background:transparent !important; color:#A39B8F !important; border:0; }
body[data-sjm-page="lifetime"] #lifetime-roadmap .preview-access::before { content:none; }
body[data-sjm-page="lifetime"] #lifetime-roadmap .life-band-preview.current { border-color:#D4AF37 !important; }
body[data-sjm-page="lifetime"] .payment-preview-dialog :is(.status-badge,.product-preview-kicker,.dialog-close,.product-answer-kicker,.preview-sample-tag) { background:#161412 !important; color:#D4AF37 !important; box-shadow:none !important; border-color:rgba(212,175,55,.18) !important; }
body[data-sjm-page="lifetime"] .payment-preview-dialog :is(span,small,b) { color:#A39B8F !important; }
body[data-sjm-page="lifetime"] .payment-preview-dialog :is(h2,h3) { font-family:"Sijeolmadi Serif","Batang",serif; font-weight:500; font-size:24px !important; line-height:1.5; }
body[data-sjm-page="lifetime"] .payment-preview-dialog :is(.product-answer-compare>article,.product-preview-card) { background:#161412 !important; border-color:rgba(212,175,55,.18) !important; box-shadow:none !important; }
body[data-sjm-page="lifetime"] .lifetime-lock-footer .paid-launch-action button { background:#F2EDE4 !important; color:#0D0C0B !important; border-radius:3px !important; box-shadow:none !important; }
body[data-sjm-page="lifetime"] .lifetime-lock-footer :is(p,small) { font-size:12px !important; line-height:1.7; }
body[data-sjm-page="lifetime"] .v36-service-nav a:nth-of-type(n+4) { display:none; }
body[data-sjm-page="lifetime"] .v36-service-nav { min-width:0; }
body .sjm-related-grid { display:grid; grid-template-columns:1fr !important; overflow:visible; gap:0; }
body .sjm-related-grid a { padding:14px 0 !important; min-height:0 !important; margin:0; }
body .sjm-related-strip { margin-top:20px !important; padding:22px 0 !important; }
body :is(.newyear-year-badge,.tarot-beta-badge,.dream-beta-badge,.newyear-year-chip,.saju-support-warning,.saju-support-points span,#dream-symbol-chips span) { color:#A39B8F !important; background:#161412 !important; border-color:rgba(212,175,55,.18) !important; }
body :is(.dream-meta,#dream-count,#tarot-pick-status,.tarot-card-number,.tarot-face-num,.tarot-face small,.tarot-pick-note,.tarot-deck-page-note,.newyear-section-head span,.newyear-text-link,.dream-section-head span,.product-second-image span) { color:#A39B8F !important; }
body :is(.dream-meta,.tarot-question-meta) { gap:12px; }
body #dream-count { white-space:nowrap; flex-shrink:0; }
body :is(.dream-reflection-card,.dream-action-card,.tarot-action-card,.newyear-action-card,.newyear-next-card) :is(small,span),
body :is(#tarot-result-category,#dream-result-category) { color:#D4AF37 !important; }
body :is(.newyear-scope-card,.tarot-scope-card,.dream-scope-card) span { color:#A39B8F !important; }
body .product-gallery>span { background:#161412 !important; color:#A39B8F !important; }
body[data-sjm-page="today"] main .detail-card, body[data-sjm-page="today"] main .detail-card::after { box-shadow:none !important; filter:none !important; }
body[data-sjm-page="tarot"] main .tarot-result-grid { display:grid; grid-template-columns:minmax(0,1fr) !important; overflow:visible; gap:26px; }
body[data-sjm-page="tarot"] main .tarot-reading-card { width:100%; min-width:0; }
body[data-sjm-page="tarot"] main .tarot-face { min-height:200px; }
body :is(.v35-series-head,.v35-quick-head,.v35-service-lab-head) h2 { font-size:26px !important; line-height:1.5 !important; letter-spacing:-.03em !important; }
body .v35-series-item h3 { font-size:25px !important; line-height:1.5 !important; }
body .v35-service-index { grid-template-columns:1fr !important; }
body .v35-service-index a { min-height:0; padding:14px; }
body .v35-service-lab-list a { grid-template-columns:36px minmax(0,1fr) !important; gap:12px; }
body .v35-service-lab-list a>span:last-child { grid-column:2; }
body :is(.manse-pillar-card,.saju-pillar) strong { font-size:19px !important; white-space:nowrap; }
body[data-sjm-page="lifetime"] #v363-premium-story .story-r9-scene:not([data-v36-exclude]) { grid-template-rows:210px auto !important; }
body[data-sjm-page="lifetime"] #v363-premium-story .story-r98-image { position:static !important; inset:auto !important; margin:0 !important; transform:none !important; }
body[data-sjm-page="lifetime"] .payment-preview-dialog .product-badge { color:#D4AF37 !important; background:#161412 !important; border-color:rgba(212,175,55,.18) !important; }
body :is(#lifetime-natal-overview,#lifetime-story-details,[id$="result-screen"]) { scroll-margin-top:78px; }
body .v35-service-lab-list :is(b,img) { width:32px; max-width:32px; font-size:22px; }
/* Supplied landscape paintings replace the old portrait sizing and overlays. */
body[data-sjm-page="lifetime"] #v363-premium-story .story-r98-plane { position:relative !important; inset:0 !important; transform:none !important; }
body[data-sjm-page="lifetime"] #v363-premium-story :is(.story-r9-art,.story-r98-plane)::before,
body[data-sjm-page="lifetime"] #v363-premium-story :is(.story-r9-art,.story-r98-plane)::after { content:none !important; }
body[data-sjm-page="lifetime"] #v363-premium-story .story-r98-image { filter:none !important; object-position:50% 50% !important; }
body[data-sjm-page="lifetime"] #v363-premium-story :is([data-story-scene="0"],[data-story-scene="3"]) .story-r98-image { object-position:50% 75% !important; }
body[data-sjm-page="lifetime"] #v363-premium-story .story-r9-copy { min-height:0 !important; height:auto !important; justify-content:flex-start !important; gap:12px; }
body[data-sjm-page="lifetime"] #v363-premium-story .story-r9-scene { transform:none !important; animation:none !important; }
body[data-sjm-page="lifetime"] #v363-premium-story .story-flow-list { display:grid; gap:12px; }
body[data-sjm-page="lifetime"] #v363-premium-story .story-flow-list>div { display:block; padding:12px 0 !important; }
body[data-sjm-page="lifetime"] #v363-premium-story .story-flow-list>div::after { content:none !important; }
body[data-sjm-page="lifetime"] #v363-premium-story .story-flow-list span { position:static; display:block; width:auto; min-width:0; padding:0; margin:0 0 7px; font-size:12px; color:#A39B8F !important; }
body[data-sjm-page="lifetime"] #v363-premium-story .story-flow-list strong { font-weight:400; font-size:15px; line-height:1.8; }
body[data-sjm-page="lifetime"] .story-selected-question a { color:#D4AF37 !important; }
body .v35-quick-grid>a { min-height:0; padding:20px; }
body .v35-quick-grid>a>strong { font-family:"Sijeolmadi Serif","Batang",serif; font-size:25px; line-height:1.5; font-weight:500; }
body .v35-quick-grid>a>span { position:static; display:block; margin-top:20px; }
body .v35-service-rule a { color:#F2EDE4; }
body .v35-service-lab-list { border-color:rgba(212,175,55,.18); }
body[data-sjm-page="lifetime"] #v363-premium-story .story-r9-scene-flow:not([data-v36-exclude]) { grid-template-rows:180px auto !important; }
body[data-sjm-page="lifetime"] #v363-premium-story .story-r9-scene-flow :is(.story-r9-art,.story-r98-plane,.story-r98-image) { height:180px !important; }
body[data-sjm-page="lifetime"] #v363-premium-story .story-flow-list>div { padding:8px 0 !important; }
