@font-face{font-family:'Arkon Hand';src:url('../assets/fonts/allura/Allura-Regular.ttf') format('truetype');font-weight:400;font-style:normal;font-display:swap}
/* An in-game book; every rule is scoped to avoid changing the lobby or tutorial. */
#manual-panel{--book-ink:#182a30;--paper:#f2e5c8;--book-red:#80253c;position:fixed;inset:0;z-index:60;display:grid;place-items:center;background:#03131cb8;backdrop-filter:blur(6px);padding:48px 22px 15px;color:var(--book-ink)}
#manual-panel[hidden],#manual-panel [hidden]{display:none!important}
#manual-panel .manual-shell{position:relative;width:min(1120px,100%);min-width:0}
#manual-panel .manual-shell.single{max-width:535px}
#manual-panel #close-book{position:absolute;right:0;top:-42px;z-index:8}
#manual-panel .book{position:relative;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));height:min(730px,calc(100dvh - 120px));margin:auto;perspective:1800px;filter:drop-shadow(0 12px 20px #0009);isolation:isolate;outline:none}
#manual-panel .book.single{grid-template-columns:minmax(0,1fr);max-width:535px}
#manual-panel .page{position:relative;min-width:0;min-height:0;display:flex;flex-direction:column;padding:22px 28px 12px;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#94794e #ecdebc;background:var(--paper);background-image:radial-gradient(#876c3910 .6px,transparent .9px);background-size:5px 5px;border:1px solid #c0ac7c;box-shadow:inset 0 0 24px #68542f18;border-radius:5px;color:var(--book-ink);font:15px/1.45 Arial,sans-serif}
#manual-panel .left-page{border-radius:5px 0 0 5px;padding-right:34px;background-image:linear-gradient(90deg,transparent 94%,#6a503033),radial-gradient(#876c3910 .6px,transparent .9px);background-size:100% 100%,5px 5px}
#manual-panel .right-page{border-radius:0 5px 5px 0;padding-left:34px;background-image:linear-gradient(90deg,#6a503033,transparent 6%),radial-gradient(#876c3910 .6px,transparent .9px);background-size:100% 100%,5px 5px}
#manual-panel h1,#manual-panel h2,#manual-panel h3{font-family:Impact,'Arial Black','Arial Narrow',sans-serif;font-weight:normal;text-transform:uppercase;line-height:1.07;margin:0;color:var(--book-red);letter-spacing:.01em}
#manual-panel h2{font-size:clamp(26px,3vw,42px);margin:0 0 10px}
#manual-panel h3{font-size:19px;margin:7px 0 5px}
#manual-panel p{font:15px/1.45 Arial,sans-serif;margin:8px 0;color:var(--book-ink)}
#manual-panel .deck{font:italic 16px/1.35 Georgia,serif;margin:0 0 12px}

#manual-panel .page>footer{margin-top:auto;padding-top:12px;display:flex;align-items:end;justify-content:space-between;gap:12px;font:bold 8px/1.3 Arial,sans-serif;letter-spacing:.05em}
#manual-panel .page>footer span{font:22px Impact,'Arial Black',sans-serif;color:var(--book-red)}
#manual-panel .cover{padding:0!important;overflow:hidden;background:#5d1024;border:0}
#manual-panel .cover-art{display:block;width:100%;height:100%;object-fit:contain}
#manual-panel .manual-shell.cover-view{width:min(535px,calc((100dvh - 125px)*.75),100%)}
#manual-panel .cover-view .book{height:auto;aspect-ratio:3/4}

#manual-panel .book-navigation{display:flex;justify-content:center;align-items:center;gap:16px;padding:14px 0 0;margin:auto}
#manual-panel .book-navigation button{border:1px solid #f2e5c866;border-radius:2px;background:#102a34e8;color:var(--paper);padding:8px 14px;font:bold 11px Arial,sans-serif;letter-spacing:.1em;min-height:36px}
#manual-panel .book-navigation button:disabled{opacity:.3;cursor:default}
#manual-panel #book-status{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}
#manual-panel .turn-leaf{position:absolute;z-index:3;top:0;bottom:0;right:0;width:50%;transform-origin:left center;pointer-events:none;transform-style:preserve-3d}
#manual-panel .turn-leaf.reverse{right:auto;left:0;transform-origin:right center}
#manual-panel .turn-leaf>.page{height:100%;overflow:hidden;backface-visibility:hidden}
#manual-panel .turn-leaf::after{content:'';position:absolute;inset:0;background:linear-gradient(90deg,#cbb991,#f2e5c8 25%,#f7ecd2);transform:rotateY(180deg);backface-visibility:hidden;border:1px solid #c0ac7c}
#manual-panel .book.single .turn-leaf{width:100%}
@media(max-width:760px){#manual-panel{padding:47px 12px 12px}#manual-panel .manual-shell{max-width:535px}#manual-panel .book{grid-template-columns:1fr;height:calc(100dvh - 115px)}#manual-panel .page,#manual-panel .left-page,#manual-panel .right-page{padding:20px 20px 12px;border-radius:5px}#manual-panel .page.cover{padding:0}#manual-panel h2{font-size:32px}#manual-panel .book .turn-leaf{width:100%}#manual-panel #close-book{right:0}}
@media(max-height:650px) and (min-width:761px){#manual-panel{padding-top:46px}#manual-panel .book{height:calc(100dvh - 115px)}#manual-panel h2{font-size:30px}#manual-panel .page{padding-top:16px}}

@media(min-width:761px) and (max-height:800px){#manual-panel h2{font-size:32px}#manual-panel .page{padding-top:18px}}

/* Arkon correspondence follows the cover's burgundy and gilt binding. */
#manual-panel .introduction-page,#manual-panel .regulations-page{padding:35px 38px 24px;border:0;border-radius:3px;background-color:#f1e5c9;background-image:url('../assets/ui/manual/arkon-letter-border.svg'),radial-gradient(ellipse at 50% 35%,#fff9e8b0,transparent 70%),repeating-linear-gradient(0deg,#8c713308 0 1px,transparent 1px 4px);background-size:100% 100%,100% 100%,4px 4px;box-shadow:inset -8px 0 15px #72572a22}
#manual-panel .letterhead{text-align:center;margin:0 0 14px}
#manual-panel .letterhead h2{font:bold 26px/1.1 Georgia,'Times New Roman',serif;letter-spacing:.09em;color:#6a2332;margin:0;text-shadow:0 1px #fff9e8}
#manual-panel .letter-flourish{display:flex;align-items:center;justify-content:center;gap:12px;color:#aa8036;font-size:9px;margin:10px auto 0;width:65%}
#manual-panel .letter-flourish::before,#manual-panel .letter-flourish::after{content:'';height:1px;flex:1;background:linear-gradient(90deg,transparent,#b68f4a)}
#manual-panel .letter-flourish::after{transform:rotate(180deg)}
#manual-panel .marshal-letter p{font:20px/1.08 'Arkon Hand','Segoe Script',cursive;color:#30261f;margin:0 0 5px}
#manual-panel .marshal-letter p:first-child{font-size:25px;margin-bottom:9px}
#manual-panel .marshal-signoff{display:flex;align-items:center;justify-content:space-between;gap:18px;margin:5px 18px 0 0;flex-shrink:0}
#manual-panel .marshal-signoff strong{display:block;font:32px/1 'Arkon Hand','Segoe Script',cursive;color:#6a2332}
#manual-panel .marshal-signoff span{display:block;font:20px/1.05 'Arkon Hand','Segoe Script',cursive;margin:3px 0}
#manual-panel .marshal-signoff em{font:19px/1.1 'Arkon Hand','Segoe Script',cursive;color:#49372a}
#manual-panel .marshal-signoff img{width:78px;height:78px;transform:rotate(-8deg);opacity:.82}
#manual-panel .regulations-page>footer{justify-content:center;padding-top:5px}
#manual-panel .regulations-page>footer span{font:11px Georgia,serif;color:#997239}
@media(max-width:760px){#manual-panel .introduction-page{padding:32px 31px 24px}#manual-panel .letterhead h2{font-size:22px}#manual-panel .marshal-signoff{margin-right:0;gap:12px}#manual-panel .marshal-signoff strong{font-size:29px}#manual-panel .marshal-signoff img{width:76px;height:76px}}

/* Illustrated regulations: engraved plates, not interface instructions. */
#manual-panel .regulations-heading{text-align:center;margin:0 0 10px}
#manual-panel .regulations-heading>span{font:10px Georgia,serif;letter-spacing:.18em;color:#947035}
#manual-panel .regulations-heading h2{font:bold 32px/1.1 Georgia,serif;color:#6a2332;letter-spacing:.05em;margin:7px 0 0;text-transform:uppercase}
#manual-panel .regulations-figures{display:grid;grid-template-columns:1fr 1fr;gap:14px 22px}
#manual-panel .regulations-figures figure{margin:0;min-width:0}
#manual-panel .regulations-figures img{display:block;width:100%;height:100px;object-fit:contain;margin-bottom:6px}
#manual-panel .regulations-page h3{font:bold 13px/1.25 Georgia,serif;color:#6a2332;letter-spacing:.02em;text-transform:none;margin:0 0 6px;font-variant:small-caps}
#manual-panel .regulations-page p{font:13px/1.4 Georgia,serif;color:#362c26;margin:0}
#manual-panel .regulations-score{border-top:1px solid #b79759;border-bottom:1px solid #b79759;margin-top:16px;padding:10px 0 8px;text-align:center}
#manual-panel .regulations-score>p{max-width:340px;margin:auto}
#manual-panel .par-examples{display:grid;grid-template-columns:repeat(3,1fr);margin:8px 0 7px}
#manual-panel .par-examples>div+div{border-left:1px solid #b7975966}
#manual-panel .par-examples b{display:block;font:27px/1 Georgia,serif;color:#6a2332}
#manual-panel .par-examples span{display:block;font:10px Georgia,serif;letter-spacing:.1em;margin:7px 0 4px}
#manual-panel .par-examples small{font:italic 11px Georgia,serif;color:#67513c}
#manual-panel .regulations-score .example-label{font:8px Georgia,serif;letter-spacing:.12em;color:#80643d}
@media(max-width:760px){#manual-panel .regulations-page{padding:32px 31px 24px}#manual-panel .regulations-figures{gap:18px 14px}#manual-panel .regulations-heading h2{font-size:27px}}

#manual-panel .regulation-lead{text-align:center;font:italic 13px/1.4 Georgia,serif;margin:0 0 13px;color:#67513c}
#manual-panel .target-figures img{height:155px}
#manual-panel .trap-figures{gap:20px 20px}
#manual-panel .trap-figures img{height:153px}
#manual-panel .ordinance{border-top:1px solid #b7975966;padding-top:12px;margin-top:16px}
#manual-panel .formal-note{font:italic 12px/1.5 Georgia,serif;text-align:center;color:#67513c;border-top:1px solid #b79759;margin-top:20px;padding-top:12px}
#manual-panel .fatality-record{display:grid;grid-template-columns:64px 1fr;gap:8px 14px;border:1px solid #b79759;padding:15px;margin-top:20px}
#manual-panel .fatality-record>span{grid-column:1/-1;font:10px Georgia,serif;letter-spacing:.15em;color:#6a2332}
#manual-panel .fatality-record>strong{font:40px/1.2 Georgia,serif;color:#6a2332}
#manual-panel .fatality-record>b{grid-column:1/-1;font:italic 12px Georgia,serif;color:#67513c}
#manual-panel .ledger-plate{display:block;width:100%;height:185px;object-fit:contain}
#manual-panel .record-definitions{margin-top:17px}
#manual-panel .official-score-table{width:100%;margin-top:22px;border-collapse:collapse;font:13px Georgia,serif;color:#493b2d;text-align:center}
#manual-panel .official-score-table caption{font:10px Georgia,serif;letter-spacing:.12em;padding-bottom:9px;color:#6a2332}
#manual-panel .official-score-table th,#manual-panel .official-score-table td{padding:10px 5px;border:1px solid #b7975980}
#manual-panel .official-score-table td{font-size:20px}
#manual-panel .route-plate{display:block;width:100%;height:220px;object-fit:contain;margin:8px 0}
#manual-panel .victory-plate{margin:0;min-height:0;flex:1;display:flex;flex-direction:column}
#manual-panel .victory-plate img{display:block;width:100%;height:0;min-height:0;flex:1;object-fit:contain;mix-blend-mode:multiply}
#manual-panel .victory-plate figcaption{text-align:center;font:italic 13px Georgia,serif;color:#67513c;margin-top:14px}
#manual-panel .victory-closing{text-align:center;font:14px/1.5 Georgia,serif;margin:14px 0 12px;color:#6a2332}
#manual-panel .victory-page>footer{margin-top:0}
@media(max-width:760px){#manual-panel .trap-figures img{height:130px}#manual-panel .target-figures img{height:120px}#manual-panel .route-plate{height:185px}}

#manual-panel .introduction-page{isolation:isolate}
#manual-panel .marshal-watermark{position:absolute;z-index:-1;right:22px;top:82px;width:78%;height:calc(100% - 150px);object-fit:contain;object-position:right center;opacity:.18;mix-blend-mode:multiply;pointer-events:none;mask-image:radial-gradient(ellipse at 58% 46%,#000 25%,#0009 63%,transparent 79%)}
#manual-panel .marshal-letter,#manual-panel .marshal-signoff{position:relative}
