.help-main,.help-window{--help-gold:#c4a15c;--help-ink:#e8d6ae;--help-ground:#131b10;color:var(--help-ink);font-family:Georgia,serif}.help-main{padding:22px;border:1px solid #8d7139;background:linear-gradient(120deg,#1e2518f5,#11190ff5);box-shadow:inset 0 0 25px #0009}.help-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap}.help-heading h1{margin:2px 0 12px}.help-eyebrow{font-variant:small-caps;letter-spacing:.12em;color:var(--help-gold);font-size:12px}.help-main button,.help-window button,.help-restore,.help-main a,.help-window a{font:inherit}.help-main button,.help-window button,.help-restore{border:1px solid #9b7a3f;color:#efddad;background:linear-gradient(#394027,#192014);padding:9px 12px;cursor:pointer;border-radius:3px}.help-main button:hover,.help-window button:hover,.help-restore:hover{background:#4b4b2c}.help-main a,.help-window a{color:#e1c17b;text-decoration:underline;text-underline-offset:3px}.help-main :focus-visible,.help-window :focus-visible,.help-restore:focus-visible{outline:2px solid #ffe3a3;outline-offset:3px}.help-book{min-height:0;display:flex;flex-direction:column;gap:13px}.help-chapters{display:flex;gap:8px;flex-wrap:wrap;border-bottom:1px solid #705c30;padding:12px 0}.help-chapters button[aria-pressed=true]{background:#66522c;border-color:#e3c07b}.help-reader{overflow:auto;overscroll-behavior:contain;scrollbar-color:#88713f #182014;min-height:0;padding:0 16px 14px 3px;line-height:1.65}.help-main .help-reader{max-height:65vh;min-height:240px}.help-reader article{display:flow-root}.help-reader [hidden],.help-window[hidden],.help-restore[hidden],[data-help-open][hidden]{display:none!important}.help-reader h2{font-size:25px;color:#efd59b;line-height:1.25}.help-reader h3{font-size:18px;color:#e6c888;line-height:1.4;border-bottom:1px solid #6b582d;padding-bottom:7px;margin-top:28px}.help-reader p{margin:10px 0}.help-home{float:right;width:42%;max-width:250px;margin:10px 0 20px 18px;text-align:center;background:radial-gradient(ellipse,#42513660,transparent 70%)}.help-home img{display:block;width:100%;height:200px;object-fit:contain}.help-home figcaption{font-size:12px;color:#cdb582}.help-facts{clear:both;padding:13px 16px;background:#51452533;border-left:3px solid var(--help-gold);margin:24px 0}.help-shortcuts{display:flex;flex-wrap:wrap;gap:10px 18px;padding:16px 0;border-top:1px solid #705c30}.help-window{position:fixed;z-index:1100;right:22px;top:90px;width:440px;height:580px;max-width:calc(100vw - 16px);max-height:calc(100dvh - 16px);min-width:min(280px,calc(100vw - 16px));min-height:min(240px,calc(100dvh - 16px));border:2px solid #a38243;background:linear-gradient(130deg,#242b1d,#10170e);box-shadow:0 15px 55px #000b,inset 0 0 25px #0008;border-radius:5px;display:flex;flex-direction:column}.help-window-bar{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 12px;background:linear-gradient(#4b3820,#241c11);border-bottom:1px solid #9b7a3f;cursor:move;touch-action:none;user-select:none}.help-window-bar>span{font-size:20px;color:#f0d597}.help-window-bar>div{display:flex;align-items:center;gap:7px}.help-window-bar a{font-size:12px}.help-window-bar button{padding:3px 9px;font-size:20px;min-width:32px}.help-window-content{flex:1;min-height:0;padding:0 14px;display:flex;flex-direction:column}.help-window-content>.help-book{flex:1}.help-window-content .help-reader{flex:1}.help-window .help-chapters button{font-size:13px;padding:8px}.help-window .help-home{max-width:160px}.help-window .help-home img{height:150px}.help-window-foot{display:flex;align-items:center;justify-content:space-between;font-size:10px;color:#bca775;padding:3px 6px 3px 12px;border-top:1px solid #5e4e2b}.help-window-foot button{padding:0 6px;font-size:19px;cursor:nwse-resize;touch-action:none}.help-restore{position:fixed;right:18px;bottom:18px;z-index:1101;box-shadow:0 5px 20px #0009}.help-admin fieldset{padding:18px;border:1px solid #8c713b;margin:22px 0}.help-admin label{display:block;margin:14px 0}.help-admin textarea,.help-admin select{display:block;box-sizing:border-box;width:100%;margin-top:8px;max-width:100%;font:inherit}.help-admin textarea{resize:vertical;line-height:1.5;padding:10px}.help-empty{padding:20px}.help-dragging{user-select:none}
@media(max-width:900px),(pointer:coarse){.help-window{left:auto!important;right:8px!important;top:auto!important;bottom:8px!important;width:min(460px,calc(100vw - 16px))!important;height:min(640px,78dvh)!important;min-width:0;min-height:0}.help-window-bar{cursor:default;touch-action:auto}.help-window-foot{display:none}.help-window-bar>span{font-size:17px}.help-main{padding:14px}.help-main .help-reader{max-height:65dvh}.help-window-content{padding:0 10px}}
@media(max-width:420px){.help-home{float:none;width:65%;margin:10px auto}.help-window-bar{padding:8px;gap:5px}.help-window-bar>div{gap:4px}.help-window-bar a{font-size:11px}.help-chapters button{width:100%}}

.right .right-game-menu [data-help-open]{display:flex;align-items:center;justify-content:center;box-sizing:border-box;min-height:53px;width:100%;padding:13px 15px;border:0;border-radius:0;background:url('/assets/minagon-button-0.1.4.png') center/100% 100% no-repeat;color:#f4e5ba;font:18px/1.15 Georgia,serif;text-shadow:0 2px 3px #000,0 0 4px #000;cursor:pointer}.right .right-game-menu [data-help-open]:hover{filter:brightness(1.18)}

.help-window .help-chapters {
    max-height: 40%;
    overflow-y: auto;
    overscroll-behavior: contain;
    flex-shrink: 0;
}
