/* SOLOMON Rich Home V1 — presentation only; existing state machine untouched. */
#screen-spreads { --rich-gold:rgba(224,183,103,.8); }
#screen-spreads .spread-grid {display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:clamp(6px,1.6vw,12px)!important;max-width:100%!important;align-items:stretch;}
#screen-spreads .spread-card {min-width:0;container-type:inline-size;}
#screen-spreads .spread-card__button {isolation:isolate;display:flex!important;flex-direction:column;align-items:center;justify-content:space-between;min-height:0!important;height:100%;aspect-ratio: .65;padding:clamp(8px,2vw,16px)!important;border-radius:15px!important;overflow:hidden;position:relative;background:#070c1c!important;border:1px solid var(--rich-gold)!important;box-shadow:0 9px 28px #0009,inset 0 0 0 2px #e2b76718!important;}
#screen-spreads .spread-card__button::before{inset:0;width:auto;height:auto;border:0;border-radius:0;background:linear-gradient(180deg,rgba(3,6,20,.80) 0%,rgba(3,6,20,.08) 29%,rgba(3,6,20,.02) 58%,rgba(3,6,20,.90) 100%),var(--rich-art,linear-gradient(145deg,#101831,#35204b));background-position:center;background-size:cover;opacity:1;z-index:-1;pointer-events:none}
#screen-spreads .spread-card:nth-child(1) .spread-card__button {--rich-art:url('../assets/solomon-rich-home-v1/01_single_seal.webp')}
#screen-spreads .spread-card:nth-child(2) .spread-card__button {--rich-art:url('../assets/solomon-rich-home-v1/02_trinity_array.webp')}
#screen-spreads .spread-card:nth-child(3) .spread-card__button {--rich-art:url('../assets/solomon-rich-home-v1/03_cosmic_hexagram.webp')}
#screen-spreads .spread-card__button::after{width:24px;height:24px;opacity:.8}
#screen-spreads .spread-card__count {font-size:clamp(7px,1.3vw,11px)!important;line-height:1.3!important;letter-spacing:.06em!important;overflow-wrap:anywhere;color:#b1e5e3!important;}
#screen-spreads .spread-card__name {font-size:clamp(12px,2.3vw,25px)!important;line-height:1.25!important;letter-spacing:0!important;text-shadow:0 1px 10px #000!important;margin:4px 0!important;}
#screen-spreads .spread-card__name-en {font-size:clamp(6px,1.15vw,11px)!important;line-height:1.35!important;letter-spacing:.04em!important;overflow-wrap:anywhere}
#screen-spreads .spread-card__visual{flex:1;min-height:0!important;width:100%;opacity:0!important;pointer-events:none}
#screen-spreads .spread-card__summary{display:none!important}
#screen-spreads .spread-card__action{display:block;width:100%;padding:8px 2px!important;border:1px solid #d7ae6d99;border-radius:999px;background:#050b1bc9;color:#f2ddad;font-size:clamp(9px,1.55vw,13px)!important;white-space:nowrap;}
#screen-spreads .solomon-rich-secondary {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:clamp(9px,2vw,16px);margin-top:18px}
#screen-spreads .solomon-rich-secondary > section {min-width:0;min-height:clamp(210px,35vw,320px);margin:0!important;position:relative;isolation:isolate;overflow:hidden;border:1px solid var(--rich-gold);border-radius:18px;background:#081124!important;box-shadow:0 14px 36px #0008}
#screen-spreads .solomon-rich-secondary > section::after {position:absolute;inset:0;content:"";z-index:-1;pointer-events:none;background:linear-gradient(90deg,#040816cb,#04081636),var(--rich-art);background-size:cover;background-position:center;}
#screen-spreads #guardian-entry {--rich-art:url('../assets/solomon-rich-home-v1/04_guardian_summoning.webp')}
#screen-spreads #tree-of-life-entry {--rich-art:url('../assets/solomon-rich-home-v1/05_tree_of_life.webp')}
#screen-spreads .guardian-entry::before,#screen-spreads .tree-entry__sigil{display:none!important}
#screen-spreads .guardian-entry__content,#screen-spreads .tree-entry__content{position:relative;display:flex!important;flex-direction:column;justify-content:space-between;height:100%;padding:clamp(12px,2vw,24px)!important;max-width:none}
#screen-spreads .guardian-entry__lead,#screen-spreads .tree-entry__lead{font-size:clamp(10px,1.5vw,15px)!important;line-height:1.5}
#screen-spreads .guardian-entry h3,#screen-spreads .tree-entry h3{font-size:clamp(18px,3vw,30px)!important}
#screen-spreads .guardian-entry__eyebrow,#screen-spreads .tree-entry__eyebrow{font-size:clamp(8px,1.25vw,11px)!important}
#screen-spreads .guardian-entry__button,#screen-spreads .tree-entry__button{width:100%;min-width:0;font-size:clamp(10px,1.5vw,14px)!important;padding:9px 6px!important}
#screen-spreads .solomon-rich-library {margin-top:16px;position:relative;isolation:isolate;overflow:hidden;min-height:clamp(140px,27vw,250px);border:1px solid var(--rich-gold);border-radius:18px;background:#081124;}
#screen-spreads .solomon-rich-library::before{content:"";position:absolute;inset:0;z-index:-1;background:linear-gradient(90deg,#030812e8,#030812aa 46%,#03081222),url('../assets/solomon-rich-home-v1/06_selection_library.webp') center/cover}
#screen-spreads .solomon-rich-library__copy{padding:clamp(16px,3vw,32px);max-width:65%}
#screen-spreads .solomon-rich-library h3{color:#f2ddaf;font-size:clamp(22px,4vw,34px);margin:7px 0}
#screen-spreads .solomon-rich-library p{line-height:1.5}
#screen-spreads .solomon-rich-library a{cursor:pointer;border:1px solid #b6d7c8b3;background:#034451dd;color:white;border-radius:999px;padding:9px 25px;min-height:44px}
@media(max-width:520px){
#screen-spreads .spread-grid{gap:7px!important}
#screen-spreads .spread-card__button{padding:7px 4px!important;aspect-ratio:.56}
#screen-spreads .spread-card__count{font-size:7px!important}
#screen-spreads .spread-card__name{font-size:clamp(11px,3vw,15px)!important}
#screen-spreads .spread-card__name-en{display:none!important}
#screen-spreads .spread-card__action{padding:6px 0!important;font-size:9px!important}
#screen-spreads .guardian-entry__content,#screen-spreads .tree-entry__content{padding:12px!important}
#screen-spreads .guardian-entry__lead,#screen-spreads .tree-entry__lead{display:none!important}
#screen-spreads .solomon-rich-library__copy{max-width:82%}
}
@media(prefers-reduced-motion:reduce){#screen-spreads .spread-card__button{transition:none!important}}

/* V1.1 mobile refinement: preserve full Japanese names without overlapping art. */
#screen-spreads .spread-card__name {
  max-width:100%;
  overflow-wrap:anywhere;
  text-wrap:balance;
  position:relative;
  z-index:1;
}
#screen-spreads .spread-card__count,
#screen-spreads .spread-card__action {position:relative;z-index:1}
#screen-spreads .spread-card__button:focus-visible,
#screen-spreads .guardian-entry__button:focus-visible,
#screen-spreads .tree-entry__button:focus-visible,
#screen-spreads .solomon-rich-library a:focus-visible {
  outline:2px solid #f6d98b!important;
  outline-offset:3px;
}
#screen-spreads .spread-card__button {background-position:center;touch-action:manipulation}
#screen-spreads .spread-card:nth-child(1) .spread-card__button::before {background-position:center 46%}
#screen-spreads .spread-card:nth-child(2) .spread-card__button::before {background-position:center 50%}
#screen-spreads .spread-card:nth-child(3) .spread-card__button::before {background-position:center 43%}
#screen-spreads #guardian-entry::after {background-position:56% center}
#screen-spreads #tree-of-life-entry::after {background-position:52% center}
@media(max-width:420px) {
  #screen-spreads .spread-grid {gap:6px!important}
  #screen-spreads .spread-card__button {aspect-ratio:.60;min-height:185px!important;padding:9px 5px!important}
  #screen-spreads .spread-card__name {font-size:clamp(11px,3vw,14px)!important;line-height:1.3!important}
  #screen-spreads .spread-card__action {min-height:30px;display:flex;justify-content:center;align-items:center}
  #screen-spreads .solomon-rich-secondary > section {min-height:205px}
  #screen-spreads .guardian-entry__actions {gap:6px}
  #screen-spreads .guardian-entry__button,#screen-spreads .tree-entry__button {min-height:36px}
  #screen-spreads .solomon-rich-library {min-height:165px}
}
@media(max-width:340px) {
  #screen-spreads .spread-card__button {min-height:175px!important}
  #screen-spreads .spread-card__count {font-size:6px!important}
  #screen-spreads .spread-card__name {font-size:10.5px!important}
}

#screen-spreads .solomon-rich-library a{display:inline-flex;align-items:center;justify-content:center;text-decoration:none;box-sizing:border-box}

/* V1.2 user-reviewed iPhone typography / contrast, decorative layer only. */
#screen-spreads .spread-card__button::before{
 background-image:linear-gradient(180deg,rgba(3,6,20,.87) 0%,rgba(3,6,20,.16) 23%,rgba(3,6,20,0) 49%,rgba(3,6,20,.76) 83%,rgba(3,6,20,.91) 100%),var(--rich-art,linear-gradient(145deg,#101831,#35204b));
}
#screen-spreads .spread-card__name{font-weight:600!important;text-shadow:0 2px 12px #02020c,0 0 4px #02020c!important}
#screen-spreads .guardian-entry__content,#screen-spreads .tree-entry__content{text-shadow:0 2px 10px #030618}
#screen-spreads .solomon-rich-library__copy{display:flex;flex-direction:column;align-items:flex-start;justify-content:center;min-height:145px;gap:6px}
#screen-spreads .solomon-rich-library__copy h3{margin:0}
#screen-spreads .solomon-rich-library__copy p{margin:0 0 8px}
@media(max-width:420px){
 #screen-spreads .spread-card__name{font-size:clamp(12px,3.2vw,15px)!important}
 #screen-spreads .spread-card__action{font-size:clamp(9px,2.35vw,11px)!important}
 #screen-spreads .solomon-rich-library__copy{max-width:82%;min-height:150px;gap:3px}
 #screen-spreads .solomon-rich-library__copy p{font-size:12px!important}
 #screen-spreads .solomon-rich-library a{min-height:44px}
}

/* Respect runtime feature gates: never reveal disabled entries via CSS. */
#screen-spreads .solomon-rich-secondary > [hidden],
#screen-spreads .solomon-rich-secondary > [hidden] * {display:none!important}
#screen-spreads .solomon-rich-secondary:has(> [hidden]){grid-template-columns:minmax(0,1fr)}

/* V1.3 premium landscape stack: 3 magic circles + guardian + tree + library.
   Only presentation changes; retain existing button IDs and runtime feature gates. */
#screen-spreads .solomon-rich-secondary {
  display:grid!important;
  grid-template-columns:minmax(0,1fr)!important;
  gap:14px!important;
  margin-top:20px;
}
#screen-spreads .solomon-rich-secondary > section {
  box-sizing:border-box;
  width:100%;
  min-height:0!important;
  height:auto!important;
  aspect-ratio:auto!important;
  border-radius:19px;
}
#screen-spreads #guardian-entry,
#screen-spreads #tree-of-life-entry {
  min-height:188px!important;
}
#screen-spreads #guardian-entry::after {
  background-image:linear-gradient(90deg,#050915f5 0%,#060b1be8 37%,#060b1b40 72%,#05081522 100%),var(--rich-art);
  background-position:63% 42%;
}
#screen-spreads #tree-of-life-entry::after {
  background-image:linear-gradient(90deg,#050916f2 0%,#091227d6 48%,#0a102652 100%),var(--rich-art);
  background-position:68% 52%;
}
#screen-spreads .guardian-entry__content,
#screen-spreads .tree-entry__content {
  box-sizing:border-box;
  display:flex!important;
  flex-direction:column;
  justify-content:space-between;
  align-items:flex-start;
  padding:18px 19px!important;
  min-height:188px;
  height:auto!important;
  gap:8px;
}
#screen-spreads .guardian-entry__content > div:first-child {max-width:70%}
#screen-spreads .guardian-entry__eyebrow,
#screen-spreads .tree-entry__eyebrow {font-size:9px!important;letter-spacing:.11em;line-height:1.5}
#screen-spreads .guardian-entry h3,
#screen-spreads .tree-entry h3 {font-size:clamp(19px,4.2vw,27px)!important;line-height:1.22;margin:4px 0 7px}
#screen-spreads .guardian-entry__lead,
#screen-spreads .tree-entry__lead {display:block!important;font-size:11px!important;line-height:1.55;max-width:37ch;margin:0}
#screen-spreads .guardian-entry__status,
#screen-spreads .tree-entry__status {font-size:10px!important;line-height:1.4;display:block;margin-top:6px}
#screen-spreads .guardian-entry__actions {display:flex!important;flex-wrap:wrap;gap:8px;max-width:100%;align-items:center}
#screen-spreads .guardian-entry__button,
#screen-spreads .tree-entry__button {
  box-sizing:border-box;min-width:0!important;min-height:38px!important;
  width:auto!important;max-width:100%;padding:9px 14px!important;
  font-size:11px!important;line-height:1.2;white-space:normal;
  border-radius:999px;
}
#screen-spreads .tree-entry__content {max-width:none;align-items:flex-start}
#screen-spreads .tree-entry__lead {max-width:52ch}
#screen-spreads .solomon-rich-library {
  box-sizing:border-box;min-height:176px!important;
  margin-top:14px;border-radius:19px;
}
#screen-spreads .solomon-rich-library__copy {
  box-sizing:border-box;max-width:76%;min-height:176px!important;
  padding:20px!important;gap:6px;
}
#screen-spreads .solomon-rich-library h3 {font-size:clamp(21px,4.6vw,30px)!important}
#screen-spreads .solomon-rich-library p {font-size:11px;line-height:1.5}
#screen-spreads .solomon-rich-library a {font-size:11px;min-height:40px;padding:8px 19px}
@media(max-width:420px) {
  #screen-spreads .solomon-rich-secondary {gap:12px!important;margin-top:16px}
  #screen-spreads #guardian-entry,#screen-spreads #tree-of-life-entry {min-height:170px!important}
  #screen-spreads .guardian-entry__content,#screen-spreads .tree-entry__content {
    min-height:170px;padding:14px 15px!important;gap:6px;
  }
  #screen-spreads .guardian-entry__content > div:first-child {max-width:77%}
  #screen-spreads .guardian-entry h3,#screen-spreads .tree-entry h3 {font-size:21px!important;margin:3px 0 5px}
  #screen-spreads .guardian-entry__lead,#screen-spreads .tree-entry__lead {font-size:10px!important;line-height:1.45}
  #screen-spreads .guardian-entry__eyebrow,#screen-spreads .tree-entry__eyebrow {font-size:8px!important}
  #screen-spreads .guardian-entry__button,#screen-spreads .tree-entry__button {font-size:10px!important;min-height:36px!important;padding:8px 12px!important}
  #screen-spreads .guardian-entry__actions {gap:6px}
  #screen-spreads .solomon-rich-library {min-height:168px!important}
  #screen-spreads .solomon-rich-library__copy {min-height:168px!important;max-width:80%;padding:17px!important}
}
@media(max-width:340px) {
  #screen-spreads .guardian-entry__content > div:first-child {max-width:84%}
  #screen-spreads .guardian-entry__button,#screen-spreads .tree-entry__button {font-size:9px!important}
}
/* Neutralize legacy portrait card padding/flex sizing. */
#screen-spreads .solomon-rich-secondary > section {padding:0!important;}
#screen-spreads .guardian-entry__button {flex:0 1 auto!important;}
#screen-spreads .tree-entry__content {width:100%!important;padding-bottom:15px!important;}
#screen-spreads .guardian-entry__content {width:100%!important;}
#screen-spreads .solomon-rich-secondary > section::after {z-index:0;}
#screen-spreads .solomon-rich-secondary > section > .guardian-entry__content,
#screen-spreads .solomon-rich-secondary > section > .tree-entry__content {z-index:1;}

/* V1.4: restore Tree of Life artwork hidden by legacy tree-entry overlays. */
#screen-spreads #tree-of-life-entry::before {display:none!important;}
#screen-spreads #tree-of-life-entry::after {
  opacity:1!important;
  z-index:0!important;
  background-image:linear-gradient(90deg,rgba(4,9,24,.90) 0%,rgba(6,11,26,.67) 40%,rgba(4,9,24,.08) 85%),url('../assets/solomon-rich-home-v1/05_tree_of_life.webp')!important;
  background-position:center,65% 48%!important;
  background-size:cover!important;
}
#screen-spreads #tree-of-life-entry .tree-entry__content {position:relative;z-index:1!important;}

/* Home-only cleanup: keep the Falling Light application/runtime intact. */
#screen-spreads #daikou-entry { display:none!important; }

/* V1.6 — Tree of Life: crisp illustration rather than legacy frosted glass. */
#screen-spreads #tree-of-life-entry::before {display:none!important;}
#screen-spreads #tree-of-life-entry::after {
  opacity:1!important;
  filter:none!important;
  backdrop-filter:none!important;
  -webkit-backdrop-filter:none!important;
  background-image:linear-gradient(90deg,rgba(5,9,22,.76) 0%,rgba(5,9,22,.42) 38%,rgba(5,9,22,.06) 80%),url('../assets/solomon-rich-home-v1/05_tree_of_life.webp')!important;
  background-position:center,66% 48%!important;
  background-size:cover!important;
}
#screen-spreads #tree-of-life-entry .tree-entry__content {
  backdrop-filter:none!important;
  -webkit-backdrop-filter:none!important;
  filter:none!important;
  background:transparent!important;
}

/* News is visually independent from the four primary experience rows. */
#screen-spreads .solomon-news {
  margin-top:28px;padding:18px;border:1px solid rgba(213,171,82,.62);
  border-radius:20px;background:linear-gradient(160deg,rgba(32,24,33,.97),rgba(8,11,25,.98));
  box-shadow:0 12px 40px rgba(0,0,0,.35),inset 0 1px rgba(255,224,153,.12);
}
#screen-spreads .solomon-news__heading {
  display:flex;justify-content:space-between;align-items:center;gap:12px;
  padding:3px 2px 15px;
}
#screen-spreads .solomon-news__eyebrow {
  color:#b99b64;font-size:9px;letter-spacing:.23em;margin:0 0 5px;
}
#screen-spreads .solomon-news h3 {
  font-size:clamp(18px,4.5vw,26px);font-weight:500;letter-spacing:.13em;
  margin:0;color:#f9e4b5;
}
#screen-spreads .solomon-news__badge {
  font:600 9px/1.3 ui-monospace,monospace;letter-spacing:.12em;color:#fbe5a5;
  border:1px solid rgba(249,210,133,.48);border-radius:99px;padding:8px 10px;
  background:rgba(94,62,20,.28);white-space:nowrap;
}
#screen-spreads .solomon-news__feature {
  overflow:hidden;position:relative;margin:0;border-radius:14px;
  border:1px solid rgba(246,207,120,.45);background:#190d0b;
}
#screen-spreads .solomon-news__feature img {
  display:block;width:100%;height:auto;aspect-ratio:3/2;object-fit:contain;
}
#screen-spreads .solomon-news__feature figcaption {
  padding:11px 13px 14px;display:flex;flex-direction:column;gap:5px;
  background:linear-gradient(110deg,#180e15,#22202a);
}
#screen-spreads .solomon-news__feature figcaption span {
  font-size:9px;letter-spacing:.12em;color:#c9a769;
}
#screen-spreads .solomon-news__feature figcaption strong {
  font-size:clamp(14px,3.6vw,19px);font-weight:500;color:#fbe5bf;
}
#screen-spreads .solomon-news__feature figcaption small {
  font-size:10px;color:#d3c3ab;line-height:1.5;
}
@media(max-width:420px) {
 #screen-spreads .solomon-news {margin-top:22px;padding:12px;border-radius:18px}
 #screen-spreads .solomon-news__badge {font-size:8px;padding:7px 8px}
}
