/* The registers open as paper spreads, with the ranking written into the pages. */
.pantheon-view #pantheon-ledger{
 color-scheme:light;width:min(1080px,94vw);max-width:none;max-height:91svh;
 padding:12px 12px 16px;margin:auto;overflow:auto;border:0;border-radius:5px 9px 9px 5px;
 background:linear-gradient(90deg,#29150f,#61412a 3%,#3d241a 49%,#20150f 50%,#4e3021 97%,#28170f);
 color:#352c20;font:15px/1.45 Georgia,serif;text-shadow:none;
 box-shadow:0 25px 75px #000c,0 0 0 1px #aa824a70,0 5px 0 #6a5337,0 8px 0 #25190f;
}
#pantheon-ledger::backdrop{background:#050604dd;backdrop-filter:blur(3px)}
#pantheon-ledger[open]{animation:book-arrive .5s ease-out both}
#pantheon-ledger[open] .book-frontispiece{transform-origin:right center;animation:book-leaf .5s ease-out both}
.book-spread{display:grid;grid-template-columns:1fr 1.1fr;min-height:590px;perspective:1300px}
.book-page{position:relative;padding:42px 35px 25px;min-width:0;
 background:linear-gradient(100deg,#b3a17b,#cebd99 12%,#c6b58f 85%,#aa956e);
 box-shadow:inset 0 0 0 1px #624a2f66;
}
.book-frontispiece{display:flex;flex-direction:column;align-items:center;text-align:center;
 background:linear-gradient(90deg,#b6a27d,#c8b790 8%,#cdbb95 80%,#ae9871 96%,#6b5439);
 border-radius:3px 0 0 3px;
}
.book-frontispiece:before{content:'';position:absolute;inset:22px 24px;border:1px solid #6f583841;pointer-events:none}
.book-members{display:flex;flex-direction:column;border-radius:0 5px 5px 0;transform-origin:left center;
 background:linear-gradient(90deg,#766044,#baa680 5%,#cfbf9c 16%,#cbbb96 94%,#a68f68);
}
.book-volume{display:block;font:18px Georgia,serif;letter-spacing:.14em;color:#735333;border-bottom:1px solid #7b62484d;padding:0 18px 8px;margin:10px 0 20px}
#pantheon-ledger #ledger-title{font:normal clamp(23px,2.6vw,34px)/1.2 Georgia,serif;color:#38291d;margin:0 0 12px;letter-spacing:0}
.book-dedication{font-size:13px;font-style:italic;color:#6a5035;margin:0 0 30px}
#book-podium{display:flex;align-items:flex-end;justify-content:center;gap:12px;width:100%;margin:10px 0 0}
#book-podium .podium-medal{width:90px;flex:1;max-width:110px}
#book-podium .place-1{width:110px;margin-bottom:23px}
#book-podium .place-2{order:1}#book-podium .place-3{order:3}
#book-podium .podium-portrait{width:70px;height:70px;background:#635e49;color:#d7c6a1;border-width:2px;box-shadow:0 0 0 3px #ac9873,0 0 0 4px #756344,0 5px 8px #42342140;font-size:26px}
#book-podium .place-1 .podium-portrait{width:90px;height:90px;box-shadow:0 0 0 3px #bca77b,0 0 0 4px #987137,0 5px 8px #42342140}
#book-podium .podium-place{background:#ad966c;color:#352618;border-color:#715731;box-shadow:0 2px 4px #45301d38}
#book-podium figcaption{color:#392e20;font-size:12px;line-height:1.4;margin-top:12px;min-height:42px}
#book-podium .podium-xp{color:#705333;font-size:10px}
#book-podium-note{font-size:12px;color:#6d573a}
#pantheon-ledger button:hover{color:#351f12;background:#86613618}
#pantheon-ledger button:focus-visible{outline:2px dashed #6f4b28;outline-offset:3px}
#pantheon-ledger #ledger-close{position:absolute;z-index:4;right:28px;top:18px;font:12px Georgia,serif;color:#5e4228;background:none;padding:6px 9px;border:0}
#pantheon-ledger #pantheon-period{text-align:center;text-transform:uppercase;letter-spacing:.16em;color:#745735;font:11px Georgia,serif;margin:12px 0 16px;padding:0 0 16px;border-bottom:1px solid #8d704b70}
#pantheon-ledger #pantheon-ranking{margin:0;padding:0;flex:1;list-style:none}
#pantheon-ledger #pantheon-ranking li{display:flex;align-items:center;gap:10px;padding:10px 0;border-bottom:1px solid #80664238;background:none;min-height:53px}
#pantheon-ledger .rank-number{font:15px Georgia,serif;width:38px;min-width:38px;text-align:center;color:#765937}
#pantheon-ledger .rank-trophy{height:42px;font-size:0;color:transparent;background-position:center;background-repeat:no-repeat;flex:none}
#pantheon-ledger .rank-trophy-1{background-image:url('/assets/trophy-gold.svg');background-size:35px 42px}
#pantheon-ledger .rank-trophy-2{background-image:url('/assets/trophy-silver.svg');background-size:27px 34px}
#pantheon-ledger .rank-trophy-3{background-image:url('/assets/trophy-bronze.svg');background-size:21px 28px}
#pantheon-ledger[data-period=allTime] .rank-number{width:52px;min-width:52px}
#pantheon-ledger[data-period=allTime] .rank-trophy-1{background-image:url('/assets/trophy-eternal-emerald.svg');background-size:52px 64px;height:64px}
#pantheon-ledger[data-period=allTime] .rank-trophy-2{background-image:url('/assets/trophy-eternal-diamond.svg');background-size:46px 58px;height:58px}
#pantheon-ledger[data-period=allTime] .rank-trophy-3{background-image:url('/assets/trophy-eternal-gold.svg');background-size:42px 52px;height:52px}
.rank-avatar{flex:none;display:grid;place-items:center;width:32px;height:32px;overflow:hidden;border:1px solid #8c7655;border-radius:50%;background:#625c47;color:#ddd0ad;font:15px Georgia,serif}
.rank-avatar img{display:block;width:100%;height:100%;object-fit:cover}
#pantheon-ledger #pantheon-ranking strong{font:normal 14px/1.3 Georgia,serif;color:#3b2c1d;min-width:0}
#pantheon-ledger #pantheon-ranking small{color:#7a6344;font:10px Georgia,serif;margin-top:4px}
#pantheon-ledger .rank-score{font:11px Georgia,serif;color:#725334;white-space:nowrap;margin-left:auto}
#pantheon-ledger #pantheon-state{color:#705736;font:13px/1.6 Georgia,serif}
.book-pagination{display:flex;justify-content:space-between;align-items:center;margin-top:18px;color:#826745;font:12px Georgia,serif}
#pantheon-ledger .book-pagination button{color:#5b4025;font:20px Georgia,serif;padding:3px 13px}
#pantheon-ledger .book-pagination button:disabled{opacity:.25;cursor:default;background:none}
@keyframes book-arrive{from{opacity:0;transform:translateY(18px) scale(.96)}to{opacity:1;transform:none}}
@keyframes book-leaf{from{transform:rotateY(45deg)}to{transform:rotateY(0)}}
@media(max-width:750px){
 .pantheon-view #pantheon-ledger{width:95vw;max-height:91svh;padding:8px 8px 11px}
 .book-spread{grid-template-columns:1fr;min-height:0}
 .book-page{padding:35px 23px 22px}
 .book-frontispiece{background:linear-gradient(100deg,#baa67f,#cdbb95 55%,#b29b74);border-radius:3px 3px 0 0}
 .book-frontispiece:before{inset:16px}.book-volume{margin:0 0 12px;padding-bottom:6px}
 #pantheon-ledger #ledger-title{font-size:26px}.book-dedication{margin-bottom:16px}
 #book-podium{gap:10px;margin-top:5px}#book-podium .podium-portrait{width:62px;height:62px}#book-podium .place-1 .podium-portrait{width:78px;height:78px}
 #book-podium figcaption{font-size:11px}
 .book-members{padding-top:12px;border-radius:0 0 3px 3px;background:linear-gradient(#ad9670,#cdbb95 18%,#cbbb96);border-top:1px solid #8e7351}
 #pantheon-ledger #ledger-close{right:18px;top:12px;font-size:11px}
 #pantheon-ledger #pantheon-ranking strong{font-size:13px}#pantheon-ledger #pantheon-ranking li{gap:8px}
 .rank-avatar{width:29px;height:29px}
 #pantheon-ledger[open] .book-frontispiece{animation:none}
}
@media(prefers-reduced-motion:reduce){#pantheon-ledger[open],#pantheon-ledger[open] .book-frontispiece{animation:none}}
