/* Shared controls: quiet idle states, clear selection, no boxed arrow backgrounds. */
:root{--control-text:#a4aaae;--control-surface:#ffffff06;--control-hover:#ffffff0d;--control-selected:#ffffff12;--control-shadow:0 6px 16px #0003}
/* Primary pages are selected from the header; inner-content arrows stay available. */
:root body .rail-navigation,:root body.chapter-site .chapter-meter button.chapter-up,:root body.chapter-site .chapter-meter button.chapter-down{display:none!important}
body header nav a span{display:block!important;font-size:11px!important;line-height:1.3;letter-spacing:.05em;font-weight:500;color:#969fa4}
body header nav a strong{font-size:clamp(14px,1.15vw,20px)!important;font-weight:650!important;line-height:1.3;letter-spacing:.035em}
body header nav a{display:grid;gap:6px;align-content:center;min-height:50px}
body header nav a.selected span{color:#d6dde0}
body :is(.rail-prev,.rail-next,.dock-prev,.dock-next,.chapter-up,.chapter-down,.role-controls button,.godrop-role-controls button,#lore-prev,#lore-next,.ticket-scroll){filter:drop-shadow(0 0 3px #ffffff40)}
body :is(.rail-prev,.rail-next,.dock-prev,.dock-next,.chapter-up,.chapter-down,.role-controls button,.godrop-role-controls button,#lore-prev,#lore-next,.ticket-scroll):not(:disabled){opacity:.45}
body :is(.rail-prev,.rail-next,.dock-prev,.dock-next,.chapter-up,.chapter-down,.role-controls button,.godrop-role-controls button,#lore-prev,#lore-next,.ticket-scroll):hover:not(:disabled){opacity:1}
body :is(.rail-prev,.rail-next,.dock-prev,.dock-next,.chapter-up,.chapter-down,.role-controls button,.godrop-role-controls button,#lore-prev,#lore-next,.ticket-scroll):focus-visible{outline:1px solid #ffffff80;outline-offset:4px}
:root body :is(.ship-factions,.lore-tabs,.game-language-options,.role-languages) button{
 position:relative;border:0;border-radius:0;background:var(--control-surface);color:var(--control-text);
 font-family:inherit;font-size:clamp(14px,1vw,18px);font-weight:600;line-height:1.4;letter-spacing:.035em;
 padding:13px 22px;min-height:46px;box-shadow:none;transition:background .18s,color .18s,box-shadow .18s;
}
:root body :is(.ship-factions,.lore-tabs,.game-language-options,.role-languages) button:hover:not(:disabled){background:var(--control-hover);color:#fff;box-shadow:var(--control-shadow)}
:root body :is(.ship-factions,.lore-tabs,.game-language-options,.role-languages) button[aria-pressed=true]{background:var(--control-selected);color:#fff;box-shadow:var(--control-shadow)}
:root body :is(.ship-factions,.lore-tabs,.game-language-options,.role-languages) button[aria-pressed=true]:after{content:'';position:absolute;left:22px;bottom:7px;width:18px;height:2px;background:var(--accent,#eee);opacity:.85;pointer-events:none}
:root body :is(.ship-factions,.lore-tabs,.game-language-options,.role-languages) button:focus-visible{outline:1px solid #ffffff90;outline-offset:3px}
body .ship-factions{gap:8px}
body .lore-tabs{gap:8px}
body .game-language-options{border:0;box-shadow:0 12px 30px #0008;padding:8px;gap:4px}
body .game-language-options button{font-size:14px;padding:12px 16px}
body .game-language-options button[aria-pressed=true]:after{left:16px}
@media(max-width:900px){:root body :is(.ship-factions,.lore-tabs,.role-languages) button{font-size:13px;padding:10px 13px;min-height:40px}:root body :is(.ship-factions,.lore-tabs,.role-languages) button[aria-pressed=true]:after{left:13px;bottom:5px}}
@media(prefers-reduced-motion:reduce){:root body :is(.ship-factions,.lore-tabs,.game-language-options,.role-languages) button{transition:none}}
