:root{--fx-accent:#ffd27a;--fx-accent2:#8fa8ff;--fx-fore:#eef0fb;--fx-back:#0b0e1c;--fx-chart3:#ff9ec7}
#themes{
  scroll-margin-top:6rem;
  background:var(--card);
  border:1px solid var(--line);
  border-radius:16px;
  padding:clamp(20px,3vw,32px);
}
#themes h3{font-size:clamp(1.35rem,2.4vw,1.8rem);margin:0 0 8px}
#themes h4{font-size:1.05rem;margin:0 0 6px}
#themes p{max-width:none}
#themes .theme-intro{color:var(--muted);margin:0 0 20px}
#themes .theme-eyebrow{color:var(--accent);font-size:.77rem;font-weight:800;letter-spacing:.1em;text-transform:uppercase;margin:0 0 7px}
#themes .theme-categories{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;list-style:none;padding:0;margin:0 0 22px}
#themes .theme-category{overflow:hidden;background:var(--band);border:1px solid var(--line);border-radius:12px;min-width:0}
#themes .theme-category-art{height:88px;position:relative;overflow:hidden}
#themes .theme-category-art::after{content:"";position:absolute;inset:18px 20px 14px;border-radius:8px;background:#fff;box-shadow:0 7px 16px #0003}
#themes .theme-category-art--colors{background:linear-gradient(125deg,#e3b4c9 0 25%,#abcaec 25% 50%,#b7d3b6 50% 75%,#e3d0a6 75%)}
#themes .theme-category-art--motion{background:radial-gradient(circle at 15% 68%,#91b8ff9c,transparent 38%),radial-gradient(circle at 84% 15%,#d18af3ac,transparent 42%),#1e294e}
#themes .theme-category-art--motion::after{background:#243862;box-shadow:0 0 0 2px #8ab0ff,0 7px 16px #0007}
#themes .theme-category-art--spatial{background:#4a2d13 url('library-room.webp') center/cover}
#themes .theme-category-art--spatial::after{background:#392a1be8;box-shadow:0 10px 15px #0009}
#themes .theme-category-copy{padding:10px 13px 12px}
#themes .theme-category-copy strong{display:block;line-height:1.3}
#themes .theme-category-copy span{display:block;color:var(--dim);font-size:.83rem;margin-top:2px}
#themes .theme-demos{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px}
#themes .theme-demo{display:grid;grid-template-columns:180px minmax(0,1fr);align-items:center;gap:16px;background:#e9edf5;border:1px solid #c8d2e9;border-radius:14px;padding:16px;min-width:0}
#themes .theme-demo h4{color:#202735}
#themes .theme-demo p{font-size:.89rem;line-height:1.55;color:#4b5567;margin:0}
#themes .theme-demo p.theme-preview-status{font-size:.78rem;margin-top:7px;min-height:1.2em}
#themes .theme-demo-button{font:inherit;font-size:.84rem;font-weight:700;line-height:1.2;color:#fff;background:#2f53ce;border:1px solid #2445b7;border-radius:8px;min-height:40px;padding:8px 12px;margin-top:12px;cursor:pointer}
#themes .theme-demo-button:hover{background:#2445b7}
#themes .theme-demo-button:focus-visible{outline:3px solid #2f53ce;outline-offset:3px}
#themes .theme-demo-button[disabled]{cursor:wait;opacity:.65}
#themes .theme-phone{position:relative;width:180px;height:260px;margin:auto;border:6px solid #202735;border-radius:22px;overflow:hidden;isolation:isolate;box-shadow:0 10px 24px #20273533}
#themes .theme-phone--motion{background:radial-gradient(circle at 80% 15%,#2a2a52,#151a2e 58%,#0b0e1c);color:#eef0fb}
#themes #themeMotionParticles{position:absolute;inset:0;width:100%;height:100%;pointer-events:none}
#themes .theme-phone-ui{position:relative;z-index:1;height:100%;padding:16px 10px 10px}
#themes .theme-phone-brand{font-size:.68rem;font-weight:700;letter-spacing:.04em;color:#eef0fb}
#themes .theme-phone-title{font-size:1.25rem;font-weight:800;margin:20px 0 1px;letter-spacing:-.03em;line-height:1.2}
#themes .theme-phone-date{font-size:.6rem;color:#bcc2de}
#themes .theme-motion-card{margin-top:18px;padding:11px 9px;border-radius:11px;background:#1e2540e8;border:1px solid #8e7b55;box-shadow:0 7px 18px #0007;position:relative}
#themes .theme-motion-card strong{display:block;font-size:.76rem;line-height:1.3}
#themes .theme-motion-card small{display:block;font-size:.57rem;color:#bcc2de;margin-top:4px}
#themes .theme-phone-tabs{position:absolute;left:8px;right:8px;bottom:10px;display:flex;justify-content:space-around;padding-top:8px;border-top:1px solid #8e7b5544;font-size:.55rem;color:#bcc2de}
#themes .theme-phone-tabs b{color:#fff;border-bottom:2px solid #ffd27a;padding-bottom:4px}
#themes .theme-phone--spatial{background:#4a2d13 url('library-room.webp') center/cover;color:#fff;touch-action:none}
#themes .theme-phone--spatial:focus-visible{outline:3px solid var(--accent);outline-offset:3px}
#themes #stage{position:absolute;inset:0;width:100%;height:100%;z-index:0}
#themes #stage canvas{display:block}
#themes .theme-spatial-brand{position:absolute;z-index:2;left:12px;top:9px;color:#fff;font-size:.63rem;font-weight:700;text-shadow:0 1px 4px #000a;pointer-events:none}
#themes .theme-spatial-card{position:absolute;z-index:2;left:12px;right:12px;top:96px;padding:11px 10px 10px;border:1px solid #e8bd7b78;border-radius:12px;background:linear-gradient(145deg,#493423f5,#261b16fa);color:#f8ead6;box-shadow:0 5px 0 #100c0bd9,0 8px 20px #000a;transform:perspective(380px) rotateX(var(--card-rx,0deg)) rotateY(var(--card-ry,0deg));transform-style:preserve-3d;transition:transform .12s ease-out;pointer-events:none}
#themes .theme-spatial-card::after{content:"";position:absolute;left:8px;right:8px;bottom:-7px;height:7px;background:#1c130fe8;border-radius:0 0 9px 9px;transform:skewX(-20deg)}
#themes .theme-spatial-meta{display:flex;justify-content:space-between;gap:4px;font-size:.55rem;color:#e9c792;font-weight:750}
#themes .theme-spatial-title{font-size:.82rem;line-height:1.2;font-weight:800;color:#fff;margin-top:7px}
#themes .theme-spatial-sub{font-size:.58rem;color:#ead9c4;margin-top:5px}
#themes .theme-settings{margin-top:22px;background:var(--band);border:1px solid var(--line);border-radius:12px;padding:18px}
#themes .theme-settings ul{margin:7px 0 0;padding-left:1.3rem}
#themes .theme-settings li{margin:.4rem 0;max-width:none}
#themes .theme-disclosure{font-size:.78rem;color:var(--dim);margin:15px 0 0}
@media(max-width:980px){#themes .theme-demos{grid-template-columns:1fr}#themes .theme-demo{grid-template-columns:180px minmax(0,1fr)}}
@media(max-width:600px){#themes .theme-categories{gap:7px}#themes .theme-category-art{height:62px}#themes .theme-category-art::after{inset:13px 7px 10px}#themes .theme-category-copy{padding:8px}#themes .theme-category-copy strong{font-size:.72rem}#themes .theme-category-copy span{font-size:.68rem}#themes .theme-demo{grid-template-columns:1fr;gap:12px}#themes .theme-demo-copy{text-align:center}}
@media(prefers-reduced-motion:reduce){#themes .theme-spatial-card{transition:none}}
