.codex-link{display:inline-flex;align-items:center;justify-content:center;gap:12px;min-height:44px;margin-top:12px;font-size:11px;letter-spacing:2px;color:#bca77c;border-bottom:1px solid #ac90573d}
.codex-link:hover{color:#e0c58f}
#view-codex{display:flex;width:100%;margin-top:8px;margin-bottom:8px;border:1px solid #ac90573d;background:#aa92530a;min-height:46px}
.deity-codex{width:calc(100% - 80px);max-width:1000px;margin:30px auto 85px;scroll-margin-top:25px;position:relative}
.deity-codex:focus{outline:none}
.codex-heading{text-align:center;margin-bottom:31px}
.codex-heading .eyebrow{font:9px Georgia,serif;letter-spacing:4px;color:#a18b61}
.codex-heading h2{font-size:32px;letter-spacing:7px;text-indent:7px;margin:13px 0 10px;color:#d9c18e}
.codex-heading p:last-child{font-family:var(--serif);font-size:13px;letter-spacing:2px;color:#a7a18f}
.codex-book{position:relative;padding:0 34px 0 43px;background:linear-gradient(90deg,#b49a5720 0,#11120f 4px,#b49a5718 8px,#12130f 12px,#11120e 100%);border:1px solid #b29a614f;box-shadow:0 16px 45px #0003,inset 0 0 0 5px #0b0e0c,inset 0 0 0 6px #ad925b18}
.codex-book:before,.codex-book:after{content:'';position:absolute;left:18px;right:18px;height:5px;border-top:1px solid #c5a86c44;border-bottom:1px solid #c5a86c22;pointer-events:none}.codex-book:before{top:12px}.codex-book:after{bottom:12px}
.codex-colophon{display:flex;align-items:center;justify-content:space-between;padding:27px 0 18px;font:9px Georgia,serif;letter-spacing:2px;color:#9f895d}
.codex-colophon span:last-child{font-family:var(--serif);letter-spacing:4px;font-size:10px}
.codex-chapter{border-top:1px solid #b69b6333}
.codex-chapter h3{margin:0;font-size:inherit}
.codex-trigger{display:flex;align-items:center;gap:24px;width:100%;min-height:104px;border:0;padding:22px 5px;background:transparent;text-align:left;color:#d5c8aa;touch-action:manipulation}
.codex-trigger:focus-visible{outline:1px solid #dcc38c;outline-offset:-4px;background:#b1975410}
.codex-number{flex:0 0 42px;align-self:center;font:26px Georgia,serif;color:#a38a57;text-align:center;font-weight:400}
.codex-titles{display:flex;flex:1;flex-direction:column;gap:7px;min-width:0}
.codex-english{font:9px Georgia,serif;letter-spacing:2px;line-height:1.6;color:#9d937a}
.codex-chinese{font-family:var(--serif);font-size:21px;line-height:1.6;letter-spacing:3px}
.codex-plus{flex:0 0 22px;position:relative;width:22px;height:22px;color:#c1a671}
.codex-plus:before,.codex-plus:after{content:'';position:absolute;top:10px;left:5px;width:12px;height:1px;background:currentColor;transition:transform .28s ease,opacity .28s ease}
.codex-plus:after{transform:rotate(90deg)}
.is-open .codex-plus:after{transform:rotate(0deg);opacity:0}
.is-open .codex-chinese,.codex-trigger:hover .codex-chinese{color:#e0c38b}
.codex-panel{height:0;overflow:hidden;transition:height .32s cubic-bezier(.22,.65,.3,1)}
.codex-body{padding:0 47px 30px 71px;font-family:var(--serif);font-size:15px;line-height:2.15;letter-spacing:.8px;color:#bbb8a9;opacity:0;transform:translateY(5px);transition:opacity .24s ease,transform .3s ease}
.is-open .codex-body{opacity:1;transform:translateY(0)}
.codex-body p+p{margin-top:15px}
.codex-body blockquote{margin:23px 0 0;padding:12px 0 12px 20px;border-left:2px solid #b69b64;background:linear-gradient(90deg,#b39a5810,transparent);color:#d6bc84;font-size:17px;letter-spacing:1.2px;line-height:1.9}
.codex-talents{margin:18px 0;display:grid;grid-template-columns:1fr 1fr;gap:14px 24px}
.codex-talents div{border-top:1px solid #a98e4d26;padding-top:10px}
.codex-talents dt{color:#cdb78c;letter-spacing:3px;font-size:14px}.codex-talents dd{margin:4px 0 0;font-size:13px;line-height:1.9;color:#aaa99a;letter-spacing:.5px}
.codex-endnote{text-align:center;padding:20px 0 29px;border-top:1px solid #b69b6333;font:8px Georgia,serif;letter-spacing:3px;color:#a39068}
.reduced-motion .codex-panel,.reduced-motion .codex-body,.reduced-motion .codex-plus:after{transition:none!important;transform:none}
@media(prefers-reduced-motion:reduce){.codex-panel,.codex-body,.codex-plus:before,.codex-plus:after{transition:none!important}.codex-body{transform:none}}
@media(max-width:700px){.deity-codex{width:calc(100% - 40px);margin:25px auto 52px;scroll-margin-top:20px}.codex-heading{margin-bottom:25px}.codex-heading h2{font-size:27px;letter-spacing:5px;text-indent:5px}.codex-heading p:last-child{font-size:11px;letter-spacing:1.5px}.codex-heading .eyebrow{font-size:8px;letter-spacing:3px}.codex-book{padding:0 16px 0 24px}.codex-colophon{padding-top:25px;font-size:8px;letter-spacing:1px}.codex-colophon span:last-child{font-size:9px;letter-spacing:2px}.codex-trigger{min-height:94px;padding:19px 0;gap:13px}.codex-number{flex-basis:29px;font-size:22px}.codex-chinese{font-size:18px;letter-spacing:2px}.codex-english{font-size:8px;letter-spacing:1.3px}.codex-plus{flex-basis:18px}.codex-body{padding:0 5px 25px 10px;font-size:14px;line-height:2.1;letter-spacing:.5px}.codex-body blockquote{font-size:16px;padding-left:14px}.codex-talents{gap:12px 17px}.codex-talents dd{font-size:12px}.codex-endnote{font-size:7px;letter-spacing:2px}}
@media(max-width:360px){.codex-chinese{font-size:17px;letter-spacing:1px}.codex-trigger{gap:10px}.codex-english{letter-spacing:.8px}.codex-talents{grid-template-columns:1fr}}
