@font-face { font-family: 'UnifrakturMaguntia'; src: url('../fonts/UnifrakturMaguntia-Book.ttf') format('truetype'); }
@font-face { font-family: 'Constructium'; src: url('../fonts/Constructium.ttf') format('truetype'); unicode-range: U+F8D0-F8FF; }
@font-face { font-family: 'Sporniket Nostalgie 2 Console'; src: url('../fonts/Sporniket-Nostalgie2-Console.ttf') format('truetype'); }
@font-face { font-family: 'Alcarin Tengwar'; src: url('../fonts/AlcarinTengwar-Regular.otf') format('opentype'); unicode-range: U+E000-E0FF; }
body { font-family: Georgia, serif; background: #e9dfc8; color: #3a2614; margin: 24px; }
.gallery { display: flex; flex-wrap: wrap; gap: 16px; }
.gallery figure { margin: 0; }
.gallery img { display: block; background: #fff8; border: 1px solid #b8a27a; }
.gallery figcaption { font-size: 13px; margin-top: 4px; }
#blazor-error-ui { display: none; position: fixed; bottom: 0; left: 0; right: 0; padding: 8px; background: #fde; }
.screen-links { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; font-size: 13px; }
.stage { width: 1280px; height: 800px; }
.stage svg { display: block; }
.game-root { position: fixed; inset: 0; overflow: hidden; background: #2a1a0e; touch-action: none; user-select: none;
             -webkit-user-select: none; -webkit-touch-callout: none; -webkit-tap-highlight-color: transparent; }
html, body { overscroll-behavior: none; }
.loader { position: fixed; inset: 0; background: #2a1a0e; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; }
.loader-title { font-family: 'UnifrakturMaguntia', serif; font-size: 72px; color: #c9a24a; line-height: 1; }
.loader-bar { width: 280px; height: 6px; border-radius: 3px; background: rgba(201, 162, 74, 0.22); overflow: hidden; }
.loader-bar div { height: 100%; width: var(--blazor-load-percentage, 0%); background: #c9a24a; transition: width 0.2s; }
.game-stage { position: absolute; left: 0; top: 0; width: 1280px; height: 800px; transform-origin: 0 0; }
.game-stage .layer { position: absolute; left: 0; top: 0; width: 1280px; height: 800px; }
.game-stage .layer svg { display: block; }
.game-stage .layer + .layer { pointer-events: none; }
.game-root.on-desk { background: #2a1a0e url('../img/paper/wood.jpg') center / cover no-repeat; }
/* the parchment around the screen (its middle is transparent): it is scaled and moved with the screen */
.game-stage .surround { position: absolute; left: -340px; top: -130px; width: 1960px; height: 1060px; pointer-events: none; }
/* dialogs and the settings darken the paper and the desk around the screen as well */
.game-stage .dim { left: -6000px; top: -6000px; width: 13280px; height: 12800px; background: rgba(0, 0, 0, 0.588); }
.game-stage .dialog-dim { height: 6766px; }   /* dialogs leave the footer free */
/* the black and white look (WebDisplay.cs): the whole page as a negative in grey – light paper black, dark ink white;
   the pictures are already black and white dots (SVG filter); the dimming of dialogs lightens, so that it darkens */
.game-root.mono { background: #fff; filter: grayscale(1) invert(1) contrast(2); }
.game-root.mono .game-stage .dim { background: rgba(255, 255, 255, 0.588); }
.stage.mono { filter: grayscale(1) invert(1) contrast(2); }   /* /screens?…&mono */
.game-stage .roll { position: absolute; left: 0; top: 0; }
.game-stage .roll svg { overflow: visible; }
