/* Moonlit chamber: home-only atmosphere, independent of reading and table styles. */
body[data-view="home"]{background:radial-gradient(ellipse at 50% 0%,#26183a 0%,#120d1c 56%)}
body[data-view="home"]>.site-header{background:transparent;border-bottom-color:#c9ad7722}
.portal-home{--chamber-ink:#f4ead7;--chamber-muted:#cdc0d6;--chamber-gold:#c9ad77;max-width:1200px;padding:12px 30px 72px;color:var(--chamber-ink)}

/* Chamber hero: storybook watercolor scene */
.portal-chamber{position:relative;isolation:isolate;display:flex;align-items:center;justify-content:space-between;gap:28px;min-height:540px;padding:44px 48px;margin:0;overflow:hidden;background:#150e22;border:1px solid #c9ad7730;border-radius:14px;box-shadow:0 24px 60px #08041080,inset 0 1px 0 #f4ead714}
.portal-scene{position:absolute;inset:0;z-index:-2;display:block}
.portal-scene img{display:block;width:100%;height:100%;max-width:none;object-fit:cover;object-position:50% 55%}
.portal-chamber:after{content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;background:linear-gradient(90deg,#130d1f38,transparent 55%)}
.portal-copy{width:46%;max-width:470px;position:relative;z-index:2}
.portal-copy .tiny{color:#d8be8a;font-size:var(--text-caption);letter-spacing:.2em;margin:0 0 18px}
.portal-copy h1{font-size:clamp(32px,3.4vw,46px);line-height:1.42;letter-spacing:2px;margin:0 0 20px;color:var(--chamber-ink);text-shadow:0 4px 26px #090510cc}
.portal-copy .portal-invitation{color:var(--chamber-muted);font-size:var(--text-control);line-height:1.85;margin:0}
.portal-mobile-break{display:none}

/* Dual peer entries */
.portal-choices{position:relative;display:grid;grid-template-columns:1fr 1fr;gap:22px;border:0;margin:26px auto 0;max-width:1200px}
.portal-choices article{position:relative;isolation:isolate;display:flex;flex-direction:column;justify-content:space-between;padding:28px 30px 30px;border:1px solid #c9ad7728;background:linear-gradient(180deg,#1e142ecc 0%,#160f23cc 100%);border-radius:12px;box-shadow:0 12px 30px #08041044;transition:border-color .22s ease,transform .22s ease,background .22s ease}
.portal-choices article+article{border-left:1px solid #c9ad7728;background:linear-gradient(180deg,#1e142ecc 0%,#160f23cc 100%)}
.portal-choices article:hover{border-color:#c9ad7766;transform:translateY(-2px);background:linear-gradient(180deg,#251838e0 0%,#1a112ae0 100%)}
.portal-entry-heading{display:flex;align-items:center;gap:14px}
.portal-choices .portal-symbol{width:34px;height:34px;display:inline-flex;align-items:center;justify-content:center;border-radius:50%;border:1px solid #c9ad7744;background:#c9ad7710;color:#dfc48e;flex-shrink:0}
.portal-choices .portal-symbol svg{width:19px;height:19px;display:block}
.portal-choices h2{font-size:25px;margin:0;letter-spacing:1px}
.portal-choices p{font-size:var(--text-control);color:var(--chamber-muted);line-height:1.8;margin:14px 0 22px}
.portal-choices .primary{align-self:flex-start;border:1px solid var(--gold);border-radius:var(--control-radius);box-shadow:none;min-height:48px;padding:11px 26px;font-size:var(--text-control);transition:background .18s,border-color .18s,transform .18s}
.portal-choices .primary:focus-visible{outline:2px solid #eee3cd;outline-offset:4px}
.portal-daily .primary{background:var(--gold);color:var(--deep)}
.portal-daily .primary:hover{background:#e2c994;border-color:#e2c994}
.portal-explore .primary{background:#2b1c3b;color:#f4ead7;border-color:#c9ad77aa}
.portal-explore .primary:hover{background:#3c2752;border-color:#e2c994}

.portal-home .return-panel{padding:0;max-width:1200px;margin:22px auto 0}

/* Staggered collector showcase for 78-card preview */
.portal-home .portal-gallery{margin-top:54px;padding:38px 24px 40px;border-top:1px solid #c9ad7724;background:radial-gradient(ellipse at 50% 35%,#27183a66 0%,transparent 72%);border-radius:12px}
.portal-gallery>div{display:flex;justify-content:center;align-items:flex-end;gap:18px;margin:30px 0 32px;padding:12px 0}
.portal-gallery .cat-art{width:132px;padding:0;transition:transform .28s cubic-bezier(.22,.8,.26,1),box-shadow .28s ease,border-color .28s ease}
.portal-gallery .cat-art:nth-child(1){transform:rotate(-7deg) translateY(8px)}
.portal-gallery .cat-art:nth-child(2){transform:translateY(-8px) scale(1.05);z-index:2;box-shadow:0 16px 36px #07030e99}
.portal-gallery .cat-art:nth-child(3){transform:rotate(7deg) translateY(8px)}
.portal-gallery .cat-art:hover{transform:translateY(-14px) scale(1.08) rotate(0deg);z-index:5;border-color:#e4c992;box-shadow:0 20px 42px #07030ecc}

@media(max-width:760px){
  .portal-home{padding:8px 18px 40px}
  .portal-chamber{min-height:340px;padding:28px 24px;border-radius:12px}
  .portal-copy{width:58%}
  .portal-copy h1{font-size:30px;line-height:1.42}
  .portal-copy .tiny{margin-bottom:14px}
  .portal-choices{gap:16px;margin-top:20px}
  .portal-choices article{padding:22px 20px 24px}
  .portal-choices h2{font-size:22px}
  .portal-choices p{font-size:var(--text-label);margin:12px 0 18px}
}
@media(max-width:600px){
  .portal-home{padding:0 14px 32px}
  .portal-chamber{min-height:286px;height:auto;padding:22px 18px;margin:0;border-radius:12px}
  .portal-scene img{object-position:70% 55%}
  .portal-chamber:after{background:linear-gradient(90deg,#130d1fe0 0%,#130d1fa8 44%,transparent 76%),linear-gradient(0deg,#120d1ce6 0%,transparent 28%,transparent 90%,#120d1c50)}
  .portal-copy{width:66%;max-width:255px}
  .portal-copy .tiny{margin-bottom:10px}
  .portal-copy h1{font-size:clamp(23px,6.4vw,27px);line-height:1.4;letter-spacing:0;margin-bottom:12px}
  .portal-copy .portal-invitation{font-size:var(--text-label);line-height:1.7}
  .portal-mobile-break{display:inline}
  /* Keep 360x800 first screen focused on hero + both primary entries above bottom nav */
  .portal-choices{grid-template-columns:1fr;gap:14px;margin-top:16px}
  .portal-choices article,.portal-choices article+article{padding:18px 18px 20px;border:1px solid #c9ad7728;border-radius:10px}
  .portal-choices h2{display:block;font-size:21px;margin:0}
  .portal-choices .portal-symbol{width:30px;height:30px}
  .portal-choices .portal-symbol svg{width:16px;height:16px}
  .portal-choices p{margin:10px 0 16px;font-size:var(--text-label);line-height:1.75}
  .portal-choices .primary{width:100%;min-height:46px;padding:9px 16px}
  .portal-home .portal-gallery{margin-top:34px;padding:28px 12px 30px}
  .portal-gallery>div{gap:10px;margin:22px 0 24px}
  .portal-gallery .cat-art{width:29%;max-width:112px}
}
@media(max-width:360px){
  .portal-copy h1{font-size:22px}
  .portal-chamber{min-height:228px;padding:18px 16px}
  .portal-choices article{padding:16px 15px 18px}
  .portal-choices h2{font-size:20px}
}
@media(prefers-reduced-motion:reduce){
  .portal-choices article,.portal-choices .primary,.portal-gallery .cat-art{transition:none}
  .portal-choices article:hover,.portal-gallery .cat-art:hover{transform:none}
}
html[data-reduce-motion="true"] .portal-choices article,
html[data-reduce-motion="true"] .portal-choices .primary,
html[data-reduce-motion="true"] .portal-gallery .cat-art{transition:none!important}
html[data-reduce-motion="true"] .portal-choices article:hover,
html[data-reduce-motion="true"] .portal-gallery .cat-art:hover{transform:none}
