/* Shared site chrome. Native game windows retain their own fonts and textures. */
body>header:not(.site-header),body>.site-header{background:#151310f5;border-bottom:1px solid #80704b88;box-shadow:none;backdrop-filter:blur(12px);z-index:80}
/* A viewport-fixed presentation header keeps focus/scroll-into-view operations
   on its controls from moving the chapter currently being read. */
body[data-layout=chronicle]{padding-block-start:70px}
body[data-layout=chronicle]>header{position:fixed;inset-block-start:0;inset-inline:0;width:100%}
body>header:not(.site-header){height:70px;min-height:70px;padding:8px max(24px,calc((100vw - 1230px)/2));gap:24px}
body>header .brand{width:132px;min-width:0;flex:0 0 132px}
body>header .brand img{width:132px;height:48px;object-fit:contain}
body>header nav a,body>header .site-primary-nav a,body>header .language,body>header #language-toggle{font:14px/1.4 Tahoma,Arial,sans-serif;letter-spacing:0;text-transform:none;color:#dbc9a5}
body>header nav{gap:22px}
body>header .nav-register{padding:9px 15px;border:1px solid #a98b53;border-radius:0;background:#52301f;color:#f1d49a!important}
body>header .language summary,body>header #language-toggle{border:1px solid #76623f;border-radius:0;padding:9px;min-height:38px;background:transparent;color:#dbc9a5}
body>header .language img{width:21px;height:15px;object-fit:contain}
body>.site-header .topbar{height:70px;min-height:70px;width:min(100%,1278px);padding:8px 24px;flex-wrap:nowrap;gap:24px}
.site-header .site-brand img{width:132px;height:48px}
.site-primary-nav{display:flex;align-items:center;gap:22px;margin-inline-start:auto}
#wiki-site-menu{display:none}
body>.site-header .nav-account{margin-inline-start:0;flex-wrap:nowrap}
body>header .language-options,body>header #language-list{background:#1c1914;border:1px solid #80704b;box-shadow:0 10px 24px #0008}
.presentation-site-links{display:flex;flex-wrap:wrap;gap:8px;border-bottom:1px solid #80704b88;padding:0 0 14px;margin-bottom:14px}
.presentation-site-links a{padding:10px 13px!important;border:1px solid #80704b88!important;flex:1;text-align:center;font:14px Tahoma,Arial,sans-serif!important}
.discord-claim{display:inline-flex;align-items:center;min-height:40px;margin-top:12px;padding:8px 14px;border:1px solid #a98b53;color:#f2d594;font:14px/1.5 Tahoma,Arial,sans-serif;text-decoration:none}
.discord-claim:hover{background:#654328;color:#fff1cf}
.discord-claim:focus-visible{outline:2px solid #e3c17d;outline-offset:3px}
#search-toggle{display:none}
.site-legal{background:#151310;color:#ece5d5;font:16px/1.75 Tahoma,Arial,sans-serif}
.site-legal main{max-width:900px;width:100%;margin-inline:auto;padding:32px 24px 60px}
.site-legal main h1{font:normal clamp(30px,4vw,42px)/1.2 Georgia,serif;color:#ebce96;margin-top:12px}
.site-legal main h2{font:normal 25px/1.35 Georgia,serif;color:#ebce96;margin-top:34px}
.site-legal .legal-section-nav{display:flex;flex-wrap:wrap;gap:10px 22px;padding:0 0 24px;margin-bottom:28px;border-bottom:1px solid #5e5139}
.site-legal .legal-section-nav a{font-size:14px;color:#dbc9a5;text-decoration:none}
.site-legal .legal-section-nav a[aria-current=page]{color:#ffe1a3;text-decoration:underline;text-underline-offset:6px}
.site-legal footer{display:block;max-width:852px;margin:0 auto 30px;padding:24px 0;border-top:1px solid #5e5139;font:12px/1.8 Tahoma,Arial,sans-serif;color:#c9bfa8;overflow-wrap:anywhere}
.site-legal .card{border-radius:0;background:#211e17;border:1px solid #5e5139;padding:22px;margin-block:24px}
.site-legal p,.site-legal li{overflow-wrap:anywhere}
.site-legal a[href^="tel:"],.site-legal a[href^="mailto:"]{display:inline-block;direction:ltr;unicode-bidi:isolate}
@media(max-width:900px){
 body[data-layout=chronicle]{padding-block-start:64px}
 body>header:not(.site-header){padding-inline:16px;gap:16px}
 body>header nav{gap:14px}
 .site-primary-nav{gap:14px}
 body>.site-header .topbar{padding-inline:16px;gap:16px}
}
@media(max-width:900px){
 body>header:not(.site-header){height:64px;min-height:64px;gap:12px;padding:6px 16px;justify-content:flex-start}
 body>header .brand{width:112px;flex-basis:112px}
 body>header .brand img{width:112px;height:44px}
 body>header .menu-toggle{display:inline-flex!important;align-items:center;justify-content:center;min-height:40px;max-width:110px;margin-inline-start:auto;padding:7px 10px;border:1px solid #76623f;background:#211b13;color:#dfc992;font:13px/1.3 Tahoma,Arial,sans-serif}
 body>header:not(.site-header)>nav,body>.site-header .site-primary-nav{display:none!important;position:absolute;top:100%;inset-inline:0;margin:0;padding:12px 16px;background:#191610;border-bottom:1px solid #80704b;max-height:70svh;overflow:auto}
 body>header.menu-open:not(.site-header)>nav,body>.site-header.menu-open .site-primary-nav{display:flex!important;flex-direction:column;align-items:stretch;gap:2px}
 body>header.menu-open nav a,body>.site-header.menu-open .site-primary-nav a{display:block!important;min-height:44px;padding:12px;font-size:14px}
 body>header .language{margin:0;font-size:13px}
 body>header .language summary{padding:8px;min-width:44px;min-height:40px}
 body>header .language summary>span:not(:last-child){display:none}
 body>.site-header .topbar{height:64px;min-height:64px;padding:6px 16px;gap:12px}
 .site-header .site-brand img{width:112px;height:44px}
 #language-toggle{min-height:40px}
 .site-legal #legal-language{margin:0}
 .site-legal #legal-language select{width:92px;min-height:40px;max-width:28vw;color:#dbc9a5;background:#211b13;border:1px solid #76623f;font:12px Tahoma,Arial,sans-serif}
 body[data-layout=chronicle] .poster-contents{top:64px!important}
}
@media(max-width:760px){
 .wiki-detail .wiki-rail{padding:8px 10px}
 .wiki-detail .rail-heading{padding:0;gap:8px;min-height:40px;flex-wrap:wrap}
 .wiki-detail #wiki-home{font-size:13px;white-space:nowrap;margin-inline-end:auto}
 .wiki-detail #search-toggle{display:inline-flex;min-height:36px;padding:6px 9px;font-size:13px;white-space:nowrap}
 .wiki-detail .wiki-rail:not(:has(#search-toggle[aria-expanded=true])) .wiki-search{display:none}
 .wiki-detail #menu-toggle{min-height:36px;padding:6px 9px;font-size:13px}
 .wiki-detail .wiki-search{margin-top:10px}
 .wiki-detail .layout{gap:10px;padding-top:12px}
 .site-legal main{padding:24px 18px 40px}
 .site-legal footer{margin-inline:18px}
 .portal-beta-reward .discord-claim{font-size:13px;padding:8px 10px}
}
