/* Von tools/gen-css-assets.js erzeugte Pixel-Kacheln & 9-Slice-Rahmen (Daten-URIs) */
:root {
  --frame-gold: url("data:image/svg+xml,<svg xmlns=%27http://www.w3.org/2000/svg%27 width=%2724%27 height=%2724%27 shape-rendering=%27crispEdges%27><rect x=%272%27 y=%270%27 width=%2720%27 height=%272%27 fill=%27%231a1006%27/><rect x=%270%27 y=%272%27 width=%274%27 height=%272%27 fill=%27%231a1006%27/><rect x=%274%27 y=%272%27 width=%2716%27 height=%272%27 fill=%27%23f6d878%27/><rect x=%2720%27 y=%272%27 width=%274%27 height=%272%27 fill=%27%231a1006%27/><rect x=%270%27 y=%274%27 width=%272%27 height=%272%27 fill=%27%231a1006%27/><rect x=%272%27 y=%274%27 width=%272%27 height=%272%27 fill=%27%23f6d878%27/><rect x=%274%27 y=%274%27 width=%2716%27 height=%272%27 fill=%27%23cf9d2e%27/><rect x=%2720%27 y=%274%27 width=%272%27 height=%272%27 fill=%27%238a5e1e%27/><rect x=%2722%27 y=%274%27 width=%272%27 height=%272%27 fill=%27%231a1006%27/><rect x=%270%27 y=%276%27 width=%272%27 height=%272%27 fill=%27%231a1006%27/><rect x=%272%27 y=%276%27 width=%272%27 height=%272%27 fill=%27%23f6d878%27/><rect x=%274%27 y=%276%27 width=%272%27 height=%272%27 fill=%27%23cf9d2e%27/><rect x=%276%27 y=%276%27 width=%2712%27 height=%272%27 fill=%27%234a3210%27/><rect x=%2718%27 y=%276%27 width=%272%27 height=%272%27 fill=%27%23cf9d2e%27/><rect x=%2720%27 y=%276%27 width=%272%27 height=%272%27 fill=%27%238a5e1e%27/><rect x=%2722%27 y=%276%27 width=%272%27 height=%272%27 fill=%27%231a1006%27/><rect x=%270%27 y=%278%27 width=%272%27 height=%272%27 fill=%27%231a1006%27/><rect x=%272%27 y=%278%27 width=%272%27 height=%272%27 fill=%27%23f6d878%27/><rect x=%274%27 y=%278%27 width=%272%27 height=%272%27 fill=%27%23cf9d2e%27/><rect x=%276%27 y=%278%27 width=%272%27 height=%272%27 fill=%27%234a3210%27/><rect x=%2716%27 y=%278%27 width=%272%27 height=%272%27 fill=%27%234a3210%27/><rect x=%2718%27 y=%278%27 width=%272%27 height=%272%27 fill=%27%23cf9d2e%27/><rect x=%2720%27 y=%278%27 width=%272%27 height=%272%27 fill=%27%238a5e1e%27/><rect x=%2722%27 y=%278%27 width=%272%27 height=%272%27 fill=%27%231a1006%27/><rect x=%270%27 y=%2710%27 width=%272%27 height=%272%27 fill=%27%231a1006%27/><rect x=%272%27 y=%2710%27 width=%272%27 height=%272%27 fill=%27%23f6d878%27/><rect x=%274%27 y=%2710%27 width=%272%27 height=%272%27 fill=%27%23cf9d2e%27/><rect x=%276%27 y=%2710%27 width=%272%27 height=%272%27 fill=%27%234a3210%27/><rect x=%2716%27 y=%2710%27 width=%272%27 height=%272%27 fill=%27%234a3210%27/><rect x=%2718%27 y=%2710%27 width=%272%27 height=%272%27 fill=%27%23cf9d2e%27/><rect x=%2720%27 y=%2710%27 width=%272%27 height=%272%27 fill=%27%238a5e1e%27/><rect x=%2722%27 y=%2710%27 width=%272%27 height=%272%27 fill=%27%231a1006%27/><rect x=%270%27 y=%2712%27 width=%272%27 height=%272%27 fill=%27%231a1006%27/><rect x=%272%27 y=%2712%27 width=%272%27 height=%272%27 fill=%27%23f6d878%27/><rect x=%274%27 y=%2712%27 width=%272%27 height=%272%27 fill=%27%23cf9d2e%27/><rect x=%276%27 y=%2712%27 width=%272%27 height=%272%27 fill=%27%234a3210%27/><rect x=%2716%27 y=%2712%27 width=%272%27 height=%272%27 fill=%27%234a3210%27/><rect x=%2718%27 y=%2712%27 width=%272%27 height=%272%27 fill=%27%23cf9d2e%27/><rect x=%2720%27 y=%2712%27 width=%272%27 height=%272%27 fill=%27%238a5e1e%27/><rect x=%2722%27 y=%2712%27 width=%272%27 height=%272%27 fill=%27%231a1006%27/><rect x=%270%27 y=%2714%27 width=%272%27 height=%272%27 fill=%27%231a1006%27/><rect x=%272%27 y=%2714%27 width=%272%27 height=%272%27 fill=%27%23f6d878%27/><rect x=%274%27 y=%2714%27 width=%272%27 height=%272%27 fill=%27%23cf9d2e%27/><rect x=%276%27 y=%2714%27 width=%272%27 height=%272%27 fill=%27%234a3210%27/><rect x=%2716%27 y=%2714%27 width=%272%27 height=%272%27 fill=%27%234a3210%27/><rect x=%2718%27 y=%2714%27 width=%272%27 height=%272%27 fill=%27%23cf9d2e%27/><rect x=%2720%27 y=%2714%27 width=%272%27 height=%272%27 fill=%27%238a5e1e%27/><rect x=%2722%27 y=%2714%27 width=%272%27 height=%272%27 fill=%27%231a1006%27/><rect x=%270%27 y=%2716%27 width=%272%27 height=%272%27 fill=%27%231a1006%27/><rect x=%272%27 y=%2716%27 width=%272%27 height=%272%27 fill=%27%23f6d878%27/><rect x=%274%27 y=%2716%27 width=%272%27 height=%272%27 fill=%27%23cf9d2e%27/><rect x=%276%27 y=%2716%27 width=%2712%27 height=%272%27 fill=%27%234a3210%27/><rect x=%2718%27 y=%2716%27 width=%272%27 height=%272%27 fill=%27%23cf9d2e%27/><rect x=%2720%27 y=%2716%27 width=%272%27 height=%272%27 fill=%27%238a5e1e%27/><rect x=%2722%27 y=%2716%27 width=%272%27 height=%272%27 fill=%27%231a1006%27/><rect x=%270%27 y=%2718%27 width=%272%27 height=%272%27 fill=%27%231a1006%27/><rect x=%272%27 y=%2718%27 width=%272%27 height=%272%27 fill=%27%23f6d878%27/><rect x=%274%27 y=%2718%27 width=%2716%27 height=%272%27 fill=%27%23cf9d2e%27/><rect x=%2720%27 y=%2718%27 width=%272%27 height=%272%27 fill=%27%238a5e1e%27/><rect x=%2722%27 y=%2718%27 width=%272%27 height=%272%27 fill=%27%231a1006%27/><rect x=%270%27 y=%2720%27 width=%274%27 height=%272%27 fill=%27%231a1006%27/><rect x=%274%27 y=%2720%27 width=%2716%27 height=%272%27 fill=%27%238a5e1e%27/><rect x=%2720%27 y=%2720%27 width=%274%27 height=%272%27 fill=%27%231a1006%27/><rect x=%272%27 y=%2722%27 width=%2720%27 height=%272%27 fill=%27%231a1006%27/></svg>");
  --frame-perg: url("data:image/svg+xml,<svg xmlns=%27http://www.w3.org/2000/svg%27 width=%2724%27 height=%2724%27 shape-rendering=%27crispEdges%27><rect x=%272%27 y=%270%27 width=%2720%27 height=%272%27 fill=%27%234a3414%27/><rect x=%270%27 y=%272%27 width=%274%27 height=%272%27 fill=%27%234a3414%27/><rect x=%274%27 y=%272%27 width=%2716%27 height=%272%27 fill=%27%23f4e6ba%27/><rect x=%2720%27 y=%272%27 width=%274%27 height=%272%27 fill=%27%234a3414%27/><rect x=%270%27 y=%274%27 width=%272%27 height=%272%27 fill=%27%234a3414%27/><rect x=%272%27 y=%274%27 width=%272%27 height=%272%27 fill=%27%23f4e6ba%27/><rect x=%274%27 y=%274%27 width=%2716%27 height=%272%27 fill=%27%23b89a5e%27/><rect x=%2720%27 y=%274%27 width=%272%27 height=%272%27 fill=%27%238a6d38%27/><rect x=%2722%27 y=%274%27 width=%272%27 height=%272%27 fill=%27%234a3414%27/><rect x=%270%27 y=%276%27 width=%272%27 height=%272%27 fill=%27%234a3414%27/><rect x=%272%27 y=%276%27 width=%272%27 height=%272%27 fill=%27%23f4e6ba%27/><rect x=%274%27 y=%276%27 width=%272%27 height=%272%27 fill=%27%23b89a5e%27/><rect x=%276%27 y=%276%27 width=%2712%27 height=%272%27 fill=%27%236a5228%27/><rect x=%2718%27 y=%276%27 width=%272%27 height=%272%27 fill=%27%23b89a5e%27/><rect x=%2720%27 y=%276%27 width=%272%27 height=%272%27 fill=%27%238a6d38%27/><rect x=%2722%27 y=%276%27 width=%272%27 height=%272%27 fill=%27%234a3414%27/><rect x=%270%27 y=%278%27 width=%272%27 height=%272%27 fill=%27%234a3414%27/><rect x=%272%27 y=%278%27 width=%272%27 height=%272%27 fill=%27%23f4e6ba%27/><rect x=%274%27 y=%278%27 width=%272%27 height=%272%27 fill=%27%23b89a5e%27/><rect x=%276%27 y=%278%27 width=%272%27 height=%272%27 fill=%27%236a5228%27/><rect x=%2716%27 y=%278%27 width=%272%27 height=%272%27 fill=%27%236a5228%27/><rect x=%2718%27 y=%278%27 width=%272%27 height=%272%27 fill=%27%23b89a5e%27/><rect x=%2720%27 y=%278%27 width=%272%27 height=%272%27 fill=%27%238a6d38%27/><rect x=%2722%27 y=%278%27 width=%272%27 height=%272%27 fill=%27%234a3414%27/><rect x=%270%27 y=%2710%27 width=%272%27 height=%272%27 fill=%27%234a3414%27/><rect x=%272%27 y=%2710%27 width=%272%27 height=%272%27 fill=%27%23f4e6ba%27/><rect x=%274%27 y=%2710%27 width=%272%27 height=%272%27 fill=%27%23b89a5e%27/><rect x=%276%27 y=%2710%27 width=%272%27 height=%272%27 fill=%27%236a5228%27/><rect x=%2716%27 y=%2710%27 width=%272%27 height=%272%27 fill=%27%236a5228%27/><rect x=%2718%27 y=%2710%27 width=%272%27 height=%272%27 fill=%27%23b89a5e%27/><rect x=%2720%27 y=%2710%27 width=%272%27 height=%272%27 fill=%27%238a6d38%27/><rect x=%2722%27 y=%2710%27 width=%272%27 height=%272%27 fill=%27%234a3414%27/><rect x=%270%27 y=%2712%27 width=%272%27 height=%272%27 fill=%27%234a3414%27/><rect x=%272%27 y=%2712%27 width=%272%27 height=%272%27 fill=%27%23f4e6ba%27/><rect x=%274%27 y=%2712%27 width=%272%27 height=%272%27 fill=%27%23b89a5e%27/><rect x=%276%27 y=%2712%27 width=%272%27 height=%272%27 fill=%27%236a5228%27/><rect x=%2716%27 y=%2712%27 width=%272%27 height=%272%27 fill=%27%236a5228%27/><rect x=%2718%27 y=%2712%27 width=%272%27 height=%272%27 fill=%27%23b89a5e%27/><rect x=%2720%27 y=%2712%27 width=%272%27 height=%272%27 fill=%27%238a6d38%27/><rect x=%2722%27 y=%2712%27 width=%272%27 height=%272%27 fill=%27%234a3414%27/><rect x=%270%27 y=%2714%27 width=%272%27 height=%272%27 fill=%27%234a3414%27/><rect x=%272%27 y=%2714%27 width=%272%27 height=%272%27 fill=%27%23f4e6ba%27/><rect x=%274%27 y=%2714%27 width=%272%27 height=%272%27 fill=%27%23b89a5e%27/><rect x=%276%27 y=%2714%27 width=%272%27 height=%272%27 fill=%27%236a5228%27/><rect x=%2716%27 y=%2714%27 width=%272%27 height=%272%27 fill=%27%236a5228%27/><rect x=%2718%27 y=%2714%27 width=%272%27 height=%272%27 fill=%27%23b89a5e%27/><rect x=%2720%27 y=%2714%27 width=%272%27 height=%272%27 fill=%27%238a6d38%27/><rect x=%2722%27 y=%2714%27 width=%272%27 height=%272%27 fill=%27%234a3414%27/><rect x=%270%27 y=%2716%27 width=%272%27 height=%272%27 fill=%27%234a3414%27/><rect x=%272%27 y=%2716%27 width=%272%27 height=%272%27 fill=%27%23f4e6ba%27/><rect x=%274%27 y=%2716%27 width=%272%27 height=%272%27 fill=%27%23b89a5e%27/><rect x=%276%27 y=%2716%27 width=%2712%27 height=%272%27 fill=%27%236a5228%27/><rect x=%2718%27 y=%2716%27 width=%272%27 height=%272%27 fill=%27%23b89a5e%27/><rect x=%2720%27 y=%2716%27 width=%272%27 height=%272%27 fill=%27%238a6d38%27/><rect x=%2722%27 y=%2716%27 width=%272%27 height=%272%27 fill=%27%234a3414%27/><rect x=%270%27 y=%2718%27 width=%272%27 height=%272%27 fill=%27%234a3414%27/><rect x=%272%27 y=%2718%27 width=%272%27 height=%272%27 fill=%27%23f4e6ba%27/><rect x=%274%27 y=%2718%27 width=%2716%27 height=%272%27 fill=%27%23b89a5e%27/><rect x=%2720%27 y=%2718%27 width=%272%27 height=%272%27 fill=%27%238a6d38%27/><rect x=%2722%27 y=%2718%27 width=%272%27 height=%272%27 fill=%27%234a3414%27/><rect x=%270%27 y=%2720%27 width=%274%27 height=%272%27 fill=%27%234a3414%27/><rect x=%274%27 y=%2720%27 width=%2716%27 height=%272%27 fill=%27%238a6d38%27/><rect x=%2720%27 y=%2720%27 width=%274%27 height=%272%27 fill=%27%234a3414%27/><rect x=%272%27 y=%2722%27 width=%2720%27 height=%272%27 fill=%27%234a3414%27/></svg>");
  --frame-holz: url("data:image/svg+xml,<svg xmlns=%27http://www.w3.org/2000/svg%27 width=%2724%27 height=%2724%27 shape-rendering=%27crispEdges%27><rect x=%272%27 y=%270%27 width=%2720%27 height=%272%27 fill=%27%230e0904%27/><rect x=%270%27 y=%272%27 width=%274%27 height=%272%27 fill=%27%230e0904%27/><rect x=%274%27 y=%272%27 width=%2716%27 height=%272%27 fill=%27%236b4226%27/><rect x=%2720%27 y=%272%27 width=%274%27 height=%272%27 fill=%27%230e0904%27/><rect x=%270%27 y=%274%27 width=%272%27 height=%272%27 fill=%27%230e0904%27/><rect x=%272%27 y=%274%27 width=%272%27 height=%272%27 fill=%27%236b4226%27/><rect x=%274%27 y=%274%27 width=%2716%27 height=%272%27 fill=%27%2342291a%27/><rect x=%2720%27 y=%274%27 width=%272%27 height=%272%27 fill=%27%23241408%27/><rect x=%2722%27 y=%274%27 width=%272%27 height=%272%27 fill=%27%230e0904%27/><rect x=%270%27 y=%276%27 width=%272%27 height=%272%27 fill=%27%230e0904%27/><rect x=%272%27 y=%276%27 width=%272%27 height=%272%27 fill=%27%236b4226%27/><rect x=%274%27 y=%276%27 width=%272%27 height=%272%27 fill=%27%2342291a%27/><rect x=%276%27 y=%276%27 width=%2712%27 height=%272%27 fill=%27%23170e06%27/><rect x=%2718%27 y=%276%27 width=%272%27 height=%272%27 fill=%27%2342291a%27/><rect x=%2720%27 y=%276%27 width=%272%27 height=%272%27 fill=%27%23241408%27/><rect x=%2722%27 y=%276%27 width=%272%27 height=%272%27 fill=%27%230e0904%27/><rect x=%270%27 y=%278%27 width=%272%27 height=%272%27 fill=%27%230e0904%27/><rect x=%272%27 y=%278%27 width=%272%27 height=%272%27 fill=%27%236b4226%27/><rect x=%274%27 y=%278%27 width=%272%27 height=%272%27 fill=%27%2342291a%27/><rect x=%276%27 y=%278%27 width=%272%27 height=%272%27 fill=%27%23170e06%27/><rect x=%2716%27 y=%278%27 width=%272%27 height=%272%27 fill=%27%23170e06%27/><rect x=%2718%27 y=%278%27 width=%272%27 height=%272%27 fill=%27%2342291a%27/><rect x=%2720%27 y=%278%27 width=%272%27 height=%272%27 fill=%27%23241408%27/><rect x=%2722%27 y=%278%27 width=%272%27 height=%272%27 fill=%27%230e0904%27/><rect x=%270%27 y=%2710%27 width=%272%27 height=%272%27 fill=%27%230e0904%27/><rect x=%272%27 y=%2710%27 width=%272%27 height=%272%27 fill=%27%236b4226%27/><rect x=%274%27 y=%2710%27 width=%272%27 height=%272%27 fill=%27%2342291a%27/><rect x=%276%27 y=%2710%27 width=%272%27 height=%272%27 fill=%27%23170e06%27/><rect x=%2716%27 y=%2710%27 width=%272%27 height=%272%27 fill=%27%23170e06%27/><rect x=%2718%27 y=%2710%27 width=%272%27 height=%272%27 fill=%27%2342291a%27/><rect x=%2720%27 y=%2710%27 width=%272%27 height=%272%27 fill=%27%23241408%27/><rect x=%2722%27 y=%2710%27 width=%272%27 height=%272%27 fill=%27%230e0904%27/><rect x=%270%27 y=%2712%27 width=%272%27 height=%272%27 fill=%27%230e0904%27/><rect x=%272%27 y=%2712%27 width=%272%27 height=%272%27 fill=%27%236b4226%27/><rect x=%274%27 y=%2712%27 width=%272%27 height=%272%27 fill=%27%2342291a%27/><rect x=%276%27 y=%2712%27 width=%272%27 height=%272%27 fill=%27%23170e06%27/><rect x=%2716%27 y=%2712%27 width=%272%27 height=%272%27 fill=%27%23170e06%27/><rect x=%2718%27 y=%2712%27 width=%272%27 height=%272%27 fill=%27%2342291a%27/><rect x=%2720%27 y=%2712%27 width=%272%27 height=%272%27 fill=%27%23241408%27/><rect x=%2722%27 y=%2712%27 width=%272%27 height=%272%27 fill=%27%230e0904%27/><rect x=%270%27 y=%2714%27 width=%272%27 height=%272%27 fill=%27%230e0904%27/><rect x=%272%27 y=%2714%27 width=%272%27 height=%272%27 fill=%27%236b4226%27/><rect x=%274%27 y=%2714%27 width=%272%27 height=%272%27 fill=%27%2342291a%27/><rect x=%276%27 y=%2714%27 width=%272%27 height=%272%27 fill=%27%23170e06%27/><rect x=%2716%27 y=%2714%27 width=%272%27 height=%272%27 fill=%27%23170e06%27/><rect x=%2718%27 y=%2714%27 width=%272%27 height=%272%27 fill=%27%2342291a%27/><rect x=%2720%27 y=%2714%27 width=%272%27 height=%272%27 fill=%27%23241408%27/><rect x=%2722%27 y=%2714%27 width=%272%27 height=%272%27 fill=%27%230e0904%27/><rect x=%270%27 y=%2716%27 width=%272%27 height=%272%27 fill=%27%230e0904%27/><rect x=%272%27 y=%2716%27 width=%272%27 height=%272%27 fill=%27%236b4226%27/><rect x=%274%27 y=%2716%27 width=%272%27 height=%272%27 fill=%27%2342291a%27/><rect x=%276%27 y=%2716%27 width=%2712%27 height=%272%27 fill=%27%23170e06%27/><rect x=%2718%27 y=%2716%27 width=%272%27 height=%272%27 fill=%27%2342291a%27/><rect x=%2720%27 y=%2716%27 width=%272%27 height=%272%27 fill=%27%23241408%27/><rect x=%2722%27 y=%2716%27 width=%272%27 height=%272%27 fill=%27%230e0904%27/><rect x=%270%27 y=%2718%27 width=%272%27 height=%272%27 fill=%27%230e0904%27/><rect x=%272%27 y=%2718%27 width=%272%27 height=%272%27 fill=%27%236b4226%27/><rect x=%274%27 y=%2718%27 width=%2716%27 height=%272%27 fill=%27%2342291a%27/><rect x=%2720%27 y=%2718%27 width=%272%27 height=%272%27 fill=%27%23241408%27/><rect x=%2722%27 y=%2718%27 width=%272%27 height=%272%27 fill=%27%230e0904%27/><rect x=%270%27 y=%2720%27 width=%274%27 height=%272%27 fill=%27%230e0904%27/><rect x=%274%27 y=%2720%27 width=%2716%27 height=%272%27 fill=%27%23241408%27/><rect x=%2720%27 y=%2720%27 width=%274%27 height=%272%27 fill=%27%230e0904%27/><rect x=%272%27 y=%2722%27 width=%2720%27 height=%272%27 fill=%27%230e0904%27/></svg>");
  --tile-wand: url("data:image/svg+xml,<svg xmlns=%27http://www.w3.org/2000/svg%27 width=%2748%27 height=%2748%27 shape-rendering=%27crispEdges%27><rect width=%2748%27 height=%2748%27 fill=%27%23161020%27/><rect x=%27-24%27 y=%270%27 width=%2722%27 height=%2710%27 fill=%27%23201830%27/><rect x=%27-24%27 y=%270%27 width=%2722%27 height=%272%27 fill=%27%23282040%27/><rect x=%27-14%27 y=%274%27 width=%272%27 height=%272%27 fill=%27%23100b18%27/><rect x=%270%27 y=%270%27 width=%2722%27 height=%2710%27 fill=%27%23201830%27/><rect x=%270%27 y=%270%27 width=%2722%27 height=%272%27 fill=%27%23282040%27/><rect x=%2716%27 y=%274%27 width=%272%27 height=%272%27 fill=%27%23100b18%27/><rect x=%2724%27 y=%270%27 width=%2722%27 height=%2710%27 fill=%27%23201830%27/><rect x=%2724%27 y=%270%27 width=%2722%27 height=%272%27 fill=%27%23282040%27/><rect x=%2748%27 y=%270%27 width=%2722%27 height=%2710%27 fill=%27%23201830%27/><rect x=%2748%27 y=%270%27 width=%2722%27 height=%272%27 fill=%27%23282040%27/><rect x=%2758%27 y=%274%27 width=%272%27 height=%272%27 fill=%27%23100b18%27/><rect x=%27-12%27 y=%2712%27 width=%2722%27 height=%2710%27 fill=%27%23201830%27/><rect x=%27-12%27 y=%2712%27 width=%2722%27 height=%272%27 fill=%27%23282040%27/><rect x=%270%27 y=%2716%27 width=%272%27 height=%272%27 fill=%27%23100b18%27/><rect x=%2712%27 y=%2712%27 width=%2722%27 height=%2710%27 fill=%27%23201830%27/><rect x=%2712%27 y=%2712%27 width=%2722%27 height=%272%27 fill=%27%23282040%27/><rect x=%2724%27 y=%2718%27 width=%272%27 height=%272%27 fill=%27%23100b18%27/><rect x=%2736%27 y=%2712%27 width=%2722%27 height=%2710%27 fill=%27%23201830%27/><rect x=%2736%27 y=%2712%27 width=%2722%27 height=%272%27 fill=%27%23282040%27/><rect x=%2740%27 y=%2716%27 width=%272%27 height=%272%27 fill=%27%23100b18%27/><rect x=%2760%27 y=%2712%27 width=%2722%27 height=%2710%27 fill=%27%23201830%27/><rect x=%2760%27 y=%2712%27 width=%2722%27 height=%272%27 fill=%27%23282040%27/><rect x=%27-24%27 y=%2724%27 width=%2722%27 height=%2710%27 fill=%27%23201830%27/><rect x=%27-24%27 y=%2724%27 width=%2722%27 height=%272%27 fill=%27%23282040%27/><rect x=%270%27 y=%2724%27 width=%2722%27 height=%2710%27 fill=%27%23201830%27/><rect x=%270%27 y=%2724%27 width=%2722%27 height=%272%27 fill=%27%23282040%27/><rect x=%2724%27 y=%2724%27 width=%2722%27 height=%2710%27 fill=%27%23201830%27/><rect x=%2724%27 y=%2724%27 width=%2722%27 height=%272%27 fill=%27%23282040%27/><rect x=%2730%27 y=%2728%27 width=%272%27 height=%272%27 fill=%27%23100b18%27/><rect x=%2748%27 y=%2724%27 width=%2722%27 height=%2710%27 fill=%27%23201830%27/><rect x=%2748%27 y=%2724%27 width=%2722%27 height=%272%27 fill=%27%23282040%27/><rect x=%27-12%27 y=%2736%27 width=%2722%27 height=%2710%27 fill=%27%23201830%27/><rect x=%27-12%27 y=%2736%27 width=%2722%27 height=%272%27 fill=%27%23282040%27/><rect x=%27-6%27 y=%2742%27 width=%272%27 height=%272%27 fill=%27%23100b18%27/><rect x=%2712%27 y=%2736%27 width=%2722%27 height=%2710%27 fill=%27%23201830%27/><rect x=%2712%27 y=%2736%27 width=%2722%27 height=%272%27 fill=%27%23282040%27/><rect x=%2736%27 y=%2736%27 width=%2722%27 height=%2710%27 fill=%27%23201830%27/><rect x=%2736%27 y=%2736%27 width=%2722%27 height=%272%27 fill=%27%23282040%27/><rect x=%2744%27 y=%2742%27 width=%272%27 height=%272%27 fill=%27%23100b18%27/><rect x=%2760%27 y=%2736%27 width=%2722%27 height=%2710%27 fill=%27%23201830%27/><rect x=%2760%27 y=%2736%27 width=%2722%27 height=%272%27 fill=%27%23282040%27/></svg>");
  --tile-holz: url("data:image/svg+xml,<svg xmlns=%27http://www.w3.org/2000/svg%27 width=%2748%27 height=%2748%27 shape-rendering=%27crispEdges%27><rect width=%2748%27 height=%2748%27 fill=%27%2333200f%27/><rect x=%270%27 y=%270%27 width=%2748%27 height=%272%27 fill=%27%231c1005%27/><rect x=%270%27 y=%272%27 width=%2748%27 height=%272%27 fill=%27%23422a14%27/><rect x=%270%27 y=%2712%27 width=%276%27 height=%272%27 fill=%27%2326160a%27/><rect x=%278%27 y=%2710%27 width=%278%27 height=%272%27 fill=%27%2326160a%27/><rect x=%2712%27 y=%2712%27 width=%2710%27 height=%272%27 fill=%27%2326160a%27/><rect x=%278%27 y=%272%27 width=%272%27 height=%2714%27 fill=%27%231c1005%27/><rect x=%270%27 y=%2716%27 width=%2748%27 height=%272%27 fill=%27%231c1005%27/><rect x=%270%27 y=%2718%27 width=%2748%27 height=%272%27 fill=%27%23422a14%27/><rect x=%2720%27 y=%2726%27 width=%278%27 height=%272%27 fill=%27%2326160a%27/><rect x=%2732%27 y=%2722%27 width=%276%27 height=%272%27 fill=%27%2326160a%27/><rect x=%2728%27 y=%2726%27 width=%274%27 height=%272%27 fill=%27%2326160a%27/><rect x=%2726%27 y=%2718%27 width=%272%27 height=%2714%27 fill=%27%231c1005%27/><rect x=%270%27 y=%2732%27 width=%2748%27 height=%272%27 fill=%27%231c1005%27/><rect x=%270%27 y=%2734%27 width=%2748%27 height=%272%27 fill=%27%23422a14%27/><rect x=%2726%27 y=%2740%27 width=%2710%27 height=%272%27 fill=%27%2326160a%27/><rect x=%2732%27 y=%2738%27 width=%278%27 height=%272%27 fill=%27%2326160a%27/><rect x=%2736%27 y=%2742%27 width=%278%27 height=%272%27 fill=%27%2326160a%27/><rect x=%2744%27 y=%2734%27 width=%272%27 height=%2714%27 fill=%27%231c1005%27/></svg>");
  --tile-perg: url("data:image/svg+xml,<svg xmlns=%27http://www.w3.org/2000/svg%27 width=%2748%27 height=%2748%27 shape-rendering=%27crispEdges%27><rect width=%2748%27 height=%2748%27 fill=%27%23e8d5a0%27/><rect x=%270%27 y=%270%27 width=%272%27 height=%272%27 fill=%27%23dcc48c%27/><rect x=%2726%27 y=%2712%27 width=%272%27 height=%272%27 fill=%27%23e0cb92%27/><rect x=%272%27 y=%2728%27 width=%272%27 height=%272%27 fill=%27%23dcc48c%27/><rect x=%2722%27 y=%2738%27 width=%272%27 height=%272%27 fill=%27%23d4bc82%27/><rect x=%274%27 y=%2738%27 width=%272%27 height=%272%27 fill=%27%23e0cb92%27/><rect x=%278%27 y=%2720%27 width=%272%27 height=%272%27 fill=%27%23e0cb92%27/><rect x=%2738%27 y=%2724%27 width=%272%27 height=%272%27 fill=%27%23dcc48c%27/><rect x=%2738%27 y=%2726%27 width=%272%27 height=%272%27 fill=%27%23dcc48c%27/><rect x=%2722%27 y=%274%27 width=%272%27 height=%272%27 fill=%27%23e0cb92%27/><rect x=%270%27 y=%2726%27 width=%272%27 height=%272%27 fill=%27%23e0cb92%27/></svg>");
}

/* Aurenthal — Fantasy-Pixel-Art-Interface.
   Paletten, Kacheln & 9-Slice-Rahmen: eigenes Pixel-Artwork (tools/gen-css-assets.js).
   Schriften: Jacquard 12 (Zier), Jersey 15 (UI), VT323 (Fließtext) — Google Fonts, OFL. */

:root {
  --nacht: #131020;
  --nacht-hell: #221a33;
  --holz-tief: #241408;
  --holz: #42291a;
  --holz-hell: #6b4226;
  --pergament: #e8d5a0;
  --pergament-dunkel: #cfb479;
  --tinte: #3a2414;
  --gold: #d9a833;
  --gold-hell: #ffd966;
  --gold-dunkel: #8a5e1e;
  --rot: #b0402e;
  --rot-dunkel: #6e2418;
  --gruen: #5d8a3c;
  --mana: #8f6fd4;
  --mana-hell: #cbb8ff;
  --schrift: #f0e2b8;
  --schrift-blass: #a8946e;
  --schatten: 0 6px 0 rgba(0, 0, 0, 0.45);
  /* Pixel-Ecken: einstufig (3px-Raster, Knöpfe) und zweistufig (4px-Raster, Tafeln) */
  --ecke3: polygon(0 6px, 3px 6px, 3px 3px, 6px 3px, 6px 0,
    calc(100% - 6px) 0, calc(100% - 6px) 3px, calc(100% - 3px) 3px, calc(100% - 3px) 6px, 100% 6px,
    100% calc(100% - 6px), calc(100% - 3px) calc(100% - 6px), calc(100% - 3px) calc(100% - 3px),
    calc(100% - 6px) calc(100% - 3px), calc(100% - 6px) 100%,
    6px 100%, 6px calc(100% - 3px), 3px calc(100% - 3px), 3px calc(100% - 6px), 0 calc(100% - 6px));
  --ecke4: polygon(0 8px, 4px 8px, 4px 4px, 8px 4px, 8px 0,
    calc(100% - 8px) 0, calc(100% - 8px) 4px, calc(100% - 4px) 4px, calc(100% - 4px) 8px, 100% 8px,
    100% calc(100% - 8px), calc(100% - 4px) calc(100% - 8px), calc(100% - 4px) calc(100% - 4px),
    calc(100% - 8px) calc(100% - 4px), calc(100% - 8px) 100%,
    8px 100%, 8px calc(100% - 4px), 4px calc(100% - 4px), 4px calc(100% - 8px), 0 calc(100% - 8px));
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { height: 100%; }

body {
  font-family: 'VT323', 'Courier New', monospace;
  font-size: 20px;
  background: var(--nacht);
  color: var(--schrift);
  overflow-x: hidden;
  image-rendering: pixelated;
}

h1, h2, h3, .btn, .btn-banner, #banner, .modal-title, .hotspot-label { font-family: 'Jersey 15', monospace; }
.fell, .brief, .zitat { font-family: 'VT323', monospace; }
button { cursor: pointer; }
[hidden] { display: none !important; }
img, svg { image-rendering: pixelated; }
::selection { background: var(--gold-dunkel); color: #fff; }

/* Pixel-Scrollbalken */
::-webkit-scrollbar { width: 14px; height: 14px; }
::-webkit-scrollbar-track { background: #171021; }
::-webkit-scrollbar-thumb { background: var(--holz-hell); border: 3px solid #171021; }
::-webkit-scrollbar-thumb:hover { background: var(--gold-dunkel); }

/* ————— Knöpfe: Pixel-Fase, gekappte Ecken ————— */
.btn {
  font-family: 'Jersey 15', monospace;
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 0.6px;
  color: var(--schrift);
  padding: 8px 16px;
  border: 3px solid #16100a;
  border-radius: 0;
  clip-path: var(--ecke3);
  background: linear-gradient(180deg, #5c3d22 0%, #5c3d22 50%, #3c2614 50%, #3c2614 100%);
  box-shadow: inset 0 3px 0 rgba(255, 236, 180, 0.22), inset 0 -3px 0 rgba(0, 0, 0, 0.4);
  text-shadow: 1px 2px 0 rgba(0, 0, 0, 0.65);
}
.btn:hover:not(:disabled) { filter: brightness(1.22); }
.btn:active:not(:disabled) { transform: translateY(2px); box-shadow: inset 0 -3px 0 rgba(255, 236, 180, 0.15), inset 0 3px 0 rgba(0, 0, 0, 0.4); }
.btn:disabled { opacity: 0.4; cursor: not-allowed; }
.btn-gold {
  background: linear-gradient(180deg, #f2ca5c 0%, #f2ca5c 50%, #c08a20 50%, #c08a20 100%);
  color: #2b1d05;
  text-shadow: 1px 1px 0 rgba(255, 240, 190, 0.5);
  box-shadow: inset 0 3px 0 rgba(255, 250, 220, 0.5), inset 0 -3px 0 rgba(90, 55, 0, 0.45);
}
.btn-rot {
  background: linear-gradient(180deg, #a04432 0%, #a04432 50%, #6e2418 50%, #6e2418 100%);
  color: #ffe8d8;
}
.btn-ghost { background: none; box-shadow: none; border-color: #4a3a20; }
.btn-big { font-size: 19px; padding: 13px 26px; }
.btn-mini { font-size: 14px; padding: 2px 9px; border-width: 2px; clip-path: none; }
.btn-klein { font-size: 15px; padding: 5px 11px; }

/* ————— Startmenü ————— */
.screen { min-height: 100vh; }
#screen-menu {
  display: flex; align-items: center; justify-content: center;
  background: #0a0818 url('/assets/menue.svg') center / cover no-repeat fixed;
  position: relative;
}
#screen-menu::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(rgba(10, 8, 24, 0.2), rgba(6, 4, 14, 0.5));
}
.menu-vignette { position: absolute; inset: 0; box-shadow: inset 0 0 0 6px #060410, inset 0 0 180px 40px rgba(0, 0, 0, 0.85); pointer-events: none; }
.menu-inner { width: min(720px, 94vw); padding: 44px 0; position: relative; }
.game-title { text-align: center; margin-bottom: 26px; }
.title-zier { color: var(--gold); letter-spacing: 6px; font-size: 15px; font-family: 'Jersey 15', monospace; text-shadow: 2px 2px 0 #000; }
.game-title h1 {
  font-family: 'Jacquard 12', 'Jersey 15', monospace;
  font-weight: 400;
  font-size: clamp(64px, 12vw, 120px);
  line-height: 0.95;
  letter-spacing: 2px;
  color: var(--gold-hell);
  text-shadow: 0 4px 0 var(--gold-dunkel), 0 8px 0 #3a2408, 0 12px 0 #000, 0 0 32px rgba(240, 138, 60, 0.45);
}
.subtitle { color: var(--schrift-blass); font-size: 20px; margin-top: 10px; text-shadow: 1px 2px 0 #000; }

.menu-card {
  background: var(--tile-holz);
  background-size: 72px 72px;
  border: 8px solid transparent;
  border-image: var(--frame-holz) 8 stretch;
  background-clip: padding-box;
  padding: 22px 26px;
  margin-bottom: 18px;
  box-shadow: var(--schatten);
  position: relative;
}
.menu-card::before { content: ''; position: absolute; inset: 0; background: rgba(10, 5, 14, 0.45); pointer-events: none; }
.menu-card > * { position: relative; }
.menu-card h2 { color: var(--gold-hell); font-size: 20px; margin-bottom: 14px; text-shadow: 2px 2px 0 #000; }
.setup-slot { display: flex; gap: 10px; align-items: center; padding: 6px 0; flex-wrap: wrap; }
.slot-farbe { width: 14px; height: 14px; background: var(--pc); border: 2px solid #0a0604; box-shadow: 0 0 0 2px var(--pc), 0 0 10px var(--pc); flex-shrink: 0; }
.setup-slot select, .setup-slot input, .setup-row select {
  background: #140d06; border: 2px solid #000; color: var(--schrift);
  box-shadow: 0 0 0 2px #5a4526;
  border-radius: 0; padding: 6px 9px; font-family: 'VT323', monospace; font-size: 18px;
}
.slot-name { flex: 1; min-width: 120px; }
.setup-row { display: flex; gap: 18px; margin: 16px 0 4px; flex-wrap: wrap; }
.setup-row label { display: flex; flex-direction: column; gap: 5px; font-size: 15px; color: var(--schrift-blass); font-family: 'Jersey 15', monospace; }
.menu-buttons { display: flex; gap: 12px; margin-top: 18px; flex-wrap: wrap; }
.llm-status { margin-top: 12px; font-size: 16px; color: var(--schrift-blass); }

/* ————— Banner ————— */
#screen-game { display: flex; flex-direction: column; height: 100vh; }
#banner {
  display: flex; align-items: center; gap: 14px;
  padding: 7px 14px;
  background: var(--tile-holz);
  background-size: 72px 72px;
  box-shadow: inset 0 0 0 100vmax rgba(14, 6, 0, 0.35), 0 3px 0 #000;
  border-bottom: 3px solid var(--gold-dunkel);
  flex-wrap: wrap;
  position: relative; z-index: 5;
}
#banner-taler {
  background: linear-gradient(180deg, #57431f 0%, #57431f 50%, #38290e 50%, #38290e 100%);
  border: 3px solid #16100a;
  clip-path: var(--ecke3);
  color: var(--gold-hell);
  font-family: 'Jersey 15', monospace; font-size: 17px;
  padding: 6px 14px;
  box-shadow: inset 0 3px 0 rgba(255, 236, 180, 0.2);
  text-shadow: 1px 2px 0 #000;
}
#banner-taler:hover { filter: brightness(1.25); }
#banner-taler.taler-minus { color: #ff8a72; animation: talerMinus 1.1s steps(2, end) infinite alternate; }
@keyframes talerMinus { from { border-color: #16100a; } to { border-color: var(--rot); } }
#banner-mitte { display: flex; gap: 16px; align-items: baseline; }
#hud-ort { color: var(--gold-hell); font-size: 18px; letter-spacing: 1px; text-shadow: 2px 2px 0 #000; }
#hud-jahr { color: var(--schrift-blass); font-size: 15px; text-shadow: 1px 1px 0 #000; }
#banner-spieler { flex: 1; text-align: center; font-size: 15px; color: var(--schrift); text-shadow: 1px 1px 0 #000; }
#banner-spieler b { color: var(--pc, var(--gold-hell)); }
#banner-spieler .amt { color: var(--schrift-blass); font-size: 14px; }
#banner-rechts { display: flex; gap: 6px; }
.btn-banner {
  background: rgba(10, 6, 2, 0.5); border: 2px solid #55401f; color: var(--schrift);
  border-radius: 0; padding: 4px 10px; font-size: 14px;
}
.btn-banner:hover { border-color: var(--gold); color: var(--gold-hell); }
.btn-endjahr { border-color: var(--gold-dunkel); color: var(--gold-hell); }

#buehne { flex: 1; min-height: 0; overflow: auto; position: relative; }
#brotkrumen {
  padding: 5px 14px; font-size: 16px; color: var(--schrift-blass);
  background: #171021;
  border-top: 3px solid #000;
  box-shadow: inset 0 3px 0 #2a2140;
}
#brotkrumen button { background: none; border: none; color: var(--gold); font-family: 'VT323', monospace; font-size: 16px; }
#brotkrumen button:hover { text-decoration: underline; }

/* ————— Szenen (Pixel-SVG-Räume) ————— */
.szene-wrap { height: 100%; display: flex; align-items: center; justify-content: center; background: #0a0714; }
.szene-wrap svg { width: 100%; height: 100%; max-height: calc(100vh - 90px); display: block; }
.hotspot { cursor: pointer; }
.hotspot .hotspot-flaeche { fill: transparent; }
.hotspot .hotspot-label {
  font-family: 'Jersey 15', monospace; font-size: 28px;
  fill: var(--gold-hell); text-anchor: middle;
  paint-order: stroke; stroke: #0a0714; stroke-width: 6px;
  opacity: 0; transition: opacity 0.1s steps(2, end);
  pointer-events: none;
}
.hotspot:hover .hotspot-label { opacity: 1; }
.hotspot:hover .hotspot-glanz { filter: brightness(1.3) drop-shadow(0 0 0 #000) drop-shadow(0 0 6px rgba(255, 217, 102, 0.55)); }

/* ————— Pergament-Screens ————— */
.pergament-screen {
  min-height: 100%;
  padding: 22px clamp(12px, 4vw, 48px);
  background: var(--tile-wand);
  background-size: 96px 96px;
  box-shadow: inset 0 0 0 100vmax rgba(8, 5, 14, 0.55);
}
.pergament {
  background: var(--tile-perg);
  background-size: 72px 72px;
  background-clip: padding-box;
  border: 8px solid transparent;
  border-image: var(--frame-perg) 8 stretch;
  color: var(--tinte);
  box-shadow: var(--schatten);
  padding: 20px clamp(14px, 3vw, 36px);
  max-width: 1080px;
  margin: 0 auto 20px;
  position: relative;
}
.pergament h2 { color: #6a3c10; font-size: 24px; margin-bottom: 4px; font-family: 'Jersey 15', monospace; text-shadow: 1px 1px 0 rgba(255, 245, 210, 0.6); }
.pergament h3 { color: #7a4a14; font-size: 17px; margin: 14px 0 6px; }
.pergament .untertitel { color: #8a6d3c; font-size: 18px; margin-bottom: 12px; }
.pergament table { width: 100%; border-collapse: collapse; font-size: 17px; }
.pergament th { text-align: left; font-size: 15px; font-family: 'Jersey 15', monospace; letter-spacing: 1px; color: #8a6d3c; padding: 4px 8px; border-bottom: 2px solid #a98c52; }
.pergament td { padding: 5px 8px; border-bottom: 2px solid #d8c48e; }
.pergament .btn {
  border-color: #4a3414;
  background: linear-gradient(180deg, #dcc07c 0%, #dcc07c 50%, #b8965a 50%, #b8965a 100%);
  color: #33220a;
  box-shadow: inset 0 3px 0 rgba(255, 248, 220, 0.5), inset 0 -3px 0 rgba(90, 60, 20, 0.35);
  text-shadow: none;
}
.pergament .btn-gold { background: linear-gradient(180deg, #f2ca5c 0%, #f2ca5c 50%, #c08a20 50%, #c08a20 100%); }
.pergament .btn-rot { background: linear-gradient(180deg, #b8563e 0%, #b8563e 50%, #8a3a2e 50%, #8a3a2e 100%); color: #fff0e0; }
.pergament select, .pergament input {
  background: #f4ecd4; color: var(--tinte); border: 2px solid #6a5228;
  border-radius: 0; padding: 4px 8px; font-family: 'VT323', monospace; font-size: 17px;
}
.hinweis { font-size: 17px; color: #8a6d3c; margin-top: 8px; line-height: 1.45; }

/* Warenleiste in der Niederlassung */
.warenleiste { display: grid; grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 10px; margin: 10px 0 16px; }
.ware-karte {
  background: linear-gradient(180deg, #f2e2b4 0%, #f2e2b4 60%, #dcc48c 60%, #dcc48c 100%);
  border: 3px solid #6a5228;
  clip-path: var(--ecke3);
  box-shadow: inset 0 -3px 0 rgba(120, 90, 40, 0.35);
  padding: 8px 6px; text-align: center; position: relative;
}
.ware-karte.gesperrt { opacity: 0.45; filter: grayscale(0.8); }
.ware-icon { font-size: 26px; display: block; }
.ware-preis { font-size: 19px; color: #4a3410; font-family: 'Jersey 15', monospace; }
.ware-bestand { font-size: 15px; color: #6a4a18; display: block; }
.ware-name { font-size: 15px; color: #8a6d3c; font-family: 'Jersey 15', monospace; }
.ring { position: absolute; top: 5px; right: 5px; width: 20px; height: 20px; }
.ware-karte .verkauf-knoepfe { display: flex; gap: 3px; justify-content: center; margin-top: 4px; }

/* Auftragsbuch */
.auftragsbuch {
  background: #f2e5c0;
  border: 3px solid #6a5228;
  box-shadow: inset 0 0 0 3px #d8c48e, var(--schatten);
  padding: 14px 18px; margin: 8px 0 14px;
}
.auftrag-zeile {
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
  font-family: 'VT323', monospace; font-size: 21px;
  padding: 9px 4px; border-bottom: 2px dashed #b39d6d;
}
.auftrag-zeile:last-child { border-bottom: none; }
.a-teil {
  background: rgba(180, 150, 80, 0.22);
  border: none; border-bottom: 3px solid #8a6d38;
  font-family: inherit; font-size: inherit; color: #4a3008;
  padding: 0 7px; cursor: pointer;
}
.a-teil:hover { background: rgba(200, 160, 70, 0.45); color: #2a1a00; }
.a-status { margin-left: auto; font-size: 22px; background: none; border: none; }
.a-status.moeglich { color: #4a7a2e; }
.a-status.unmoeglich { color: var(--rot); cursor: not-allowed; }
.a-prognose { font-size: 16px; color: #8a6d3c; width: 100%; font-family: 'VT323', monospace; }

/* Die Preisliste des Reiches: Waren × Städte, bester/schlechtester Markt markiert */
.karte-preisknopf { position: absolute; top: 14px; right: 18px; z-index: 5; }
.pl-rollen { overflow-x: auto; }
.preisliste { border-collapse: collapse; font-size: 14px; white-space: nowrap; }
.preisliste th { padding: 4px 3px; vertical-align: bottom; position: sticky; top: -22px; background: #f2e2b4; }
.preisliste thead th span { writing-mode: vertical-rl; transform: rotate(180deg); display: inline-block; font-size: 12px; letter-spacing: 1px; }
.preisliste td { padding: 3px 6px; text-align: right; border-top: 1px dashed #b39d6d; font-family: 'Jersey 15', monospace; }
.preisliste .pl-ware { text-align: left; white-space: nowrap; font-family: 'VT323', monospace; font-size: 16px; }
.preisliste .pl-punkte { display: block; font-size: 8px; line-height: 5px; color: #8a6d38; }
.pl-best { background: rgba(217, 168, 51, 0.35); font-weight: 700; }
.pl-mies { background: rgba(176, 64, 46, 0.25); color: #7a2d1e; }
.preisliste .pl-hier { box-shadow: inset 2px 0 0 #8a6d38, inset -2px 0 0 #8a6d38; }

/* Zielwahl fürs Auftragsbuch: alle Städte mit Preis der Ware auf einen Blick */
.ziel-liste { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 8px; margin-top: 10px; }
.ziel-wahl { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; text-align: left; font-size: 15px; }
.ziel-wahl .zw-preis { font-family: 'Jersey 15', monospace; white-space: nowrap; }
.ziel-best { border-color: var(--gold); box-shadow: 0 0 0 2px var(--gold), 4px 5px 0 rgba(0, 0, 0, 0.45); }

/* Steuericons unten */
.steuericons { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.steuericon { font-size: 15px;
  background: var(--tile-holz);
  background-size: 72px 72px;
  background-clip: padding-box;
  box-shadow: inset 0 0 0 100vmax rgba(16, 8, 0, 0.25), inset 0 3px 0 rgba(255, 230, 170, 0.14), var(--schatten);
  border: 3px solid #16100a;
  clip-path: var(--ecke3);
  color: var(--schrift); font-family: 'Jersey 15', monospace;
  padding: 10px 14px; text-align: center; min-width: 96px;
  text-shadow: 1px 1px 0 #000;
}
.steuericon:hover { filter: brightness(1.3); }
.steuericon .gross { font-size: 24px; display: block; }

/* Ämterbaum */
.aemterbaum { display: flex; flex-direction: column; gap: 14px; align-items: center; }
.aemter-reihe { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.amt-karte {
  background: linear-gradient(180deg, #f2e2b4 0%, #f2e2b4 55%, #dcc48c 55%, #dcc48c 100%);
  border: 3px solid #6a5228;
  clip-path: var(--ecke3);
  padding: 8px 12px; min-width: 150px; text-align: center; cursor: pointer;
  position: relative;
}
.amt-karte:hover { filter: brightness(1.08); border-color: var(--gold-dunkel); }
.amt-titel { font-size: 15px; color: #4a3410; font-family: 'Jersey 15', monospace; }
.amt-name { font-size: 16px; color: #33250f; }
.amt-name .du { color: var(--rot); font-weight: 700; }
.gunst-balken { height: 8px; background: #b8a276; border: 2px solid #8a6d38; margin-top: 5px; overflow: hidden; }
.gunst-wert { height: 100%; background: repeating-linear-gradient(90deg, #6a4a18 0 4px, #7a5a22 4px 8px); }
.amt-kreuz { position: absolute; top: 4px; right: 6px; font-size: 11px; color: #6a4a18; }
.amt-vakant { opacity: 0.6; }

/* Log/Berichte */
.bericht-liste { display: flex; flex-direction: column; gap: 6px; }
.bericht {
  padding: 7px 12px; border-left: 6px solid #8a6d38; background: rgba(190, 160, 90, 0.18);
  font-size: 18px; line-height: 1.4;
}
.bericht-gut { border-color: var(--gruen); }
.bericht-schlecht { border-color: var(--rot); }
.bericht-welt, .bericht-historie { border-color: #8a6d3c; color: inherit; }
.bericht-sieg { border-color: var(--gold); font-weight: 700; }

/* ————— Modale ————— */
#modal-root { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; }
#modal-backdrop { position: absolute; inset: 0; background: rgba(6, 4, 12, 0.8); }
#modal-box {
  position: relative; width: min(560px, 93vw); max-height: 88vh; overflow-y: auto;
  background: var(--tile-perg);
  background-size: 72px 72px;
  background-clip: padding-box;
  border: 8px solid transparent;
  border-image: var(--frame-gold) 8 stretch;
  color: var(--tinte);
  padding: 22px 30px;
  box-shadow: 0 10px 0 rgba(0, 0, 0, 0.55);
  animation: modalauf 0.22s steps(4, end);
}
.modal-wide { width: min(760px, 95vw) !important; }
@keyframes modalauf { from { transform: translateY(24px); opacity: 0; } to { transform: none; opacity: 1; } }
.modal-zier { text-align: center; color: #8a5e1e; letter-spacing: 7px; margin-bottom: 6px; font-size: 15px; }
.modal-title { text-align: center; color: #6a3c10; font-size: 22px; margin-bottom: 12px; text-shadow: 1px 1px 0 rgba(255, 245, 210, 0.6); }
.modal-body { font-size: 20px; line-height: 1.4; }
.modal-body p { margin-bottom: 10px; }
.modal-buttons { display: flex; gap: 10px; justify-content: center; margin-top: 18px; flex-wrap: wrap; }
#modal-box .btn {
  border-color: #4a3414;
  background: linear-gradient(180deg, #dcc07c 0%, #dcc07c 50%, #b8965a 50%, #b8965a 100%);
  color: #33220a; text-shadow: none;
  box-shadow: inset 0 3px 0 rgba(255, 248, 220, 0.5), inset 0 -3px 0 rgba(90, 60, 20, 0.35);
}
#modal-box .btn-gold { background: linear-gradient(180deg, #f2ca5c 0%, #f2ca5c 50%, #c08a20 50%, #c08a20 100%); font-weight: 700; }
#modal-box .btn-rot { background: linear-gradient(180deg, #b8563e 0%, #b8563e 50%, #8a3a2e 50%, #8a3a2e 100%); color: #fff0e0; }
#modal-box input, #modal-box select {
  background: #f4ecd4; color: var(--tinte); border: 2px solid #6a5228;
  border-radius: 0; padding: 5px 9px; font-family: 'VT323', monospace; font-size: 18px;
}
.brief { font-size: 21px; line-height: 1.42; color: #4a3008; }

/* Münzsäulen (Bezahlung) — gestapelte Pixel-Münzen */
.saeulen { display: flex; gap: 36px; justify-content: center; margin: 18px 0; flex-wrap: wrap; }
.saeule { text-align: center; }
.saeule .muenzen { height: 110px; display: flex; flex-direction: column-reverse; align-items: center; justify-content: start; }
.saeule .muenze {
  width: 52px; height: 10px; flex-shrink: 0;
  background: linear-gradient(180deg, #ffd966 0%, #ffd966 40%, #d9a833 40%, #d9a833 70%, #8a5e1e 70%, #8a5e1e 100%);
  border: 2px solid #4a3210;
  clip-path: polygon(0 4px, 4px 4px, 4px 0, calc(100% - 4px) 0, calc(100% - 4px) 4px, 100% 4px,
    100% calc(100% - 4px), calc(100% - 4px) calc(100% - 4px), calc(100% - 4px) 100%, 4px 100%, 4px calc(100% - 4px), 0 calc(100% - 4px));
  margin-top: -3px;
}
.saeule .wert { font-size: 24px; font-weight: 700; color: #4a3410; font-family: 'Jersey 15', monospace; }
.saeule .label { font-size: 15px; color: #8a6d3c; font-family: 'Jersey 15', monospace; }
.saeule .regler { display: flex; gap: 6px; justify-content: center; margin-top: 6px; }

/* Kampf */
#kampf-wrap { display: flex; flex-direction: column; height: 100%; background: #10130a; }
#kampf-feld { flex: 1; min-height: 0; }
#kampf-feld svg { width: 100%; height: 100%; display: block; shape-rendering: crispEdges; }
#kampf-feld text { shape-rendering: auto; }
#kampf-kopf {
  padding: 8px 14px; background: #171021; border-bottom: 3px solid #000;
  font-family: 'Jersey 15', monospace;
}
#kampf-leiste {
  display: flex; gap: 10px; align-items: center; padding: 8px 14px; flex-wrap: wrap;
  background: var(--tile-holz); background-size: 72px 72px;
  box-shadow: inset 0 0 0 100vmax rgba(16, 8, 0, 0.35);
  border-top: 3px solid var(--gold-dunkel);
  font-size: 15px;
}
#kampf-log { max-height: 60px; overflow-y: auto; flex: 1; min-width: 200px; font-size: 15px; color: var(--schrift-blass); font-family: 'VT323', monospace; }
.einheit { cursor: pointer; }
.einheit-gewaehlt .einheit-korpus { stroke: var(--gold-hell) !important; stroke-width: 4 !important; }
.taktik-menue { display: flex; gap: 5px; flex-wrap: wrap; align-items: center; }

/* Toast */
.toast {
  position: fixed; left: 50%; bottom: 60px; transform: translate(-50%, 16px);
  background: #221a33; border: 3px solid var(--rot); color: var(--schrift);
  padding: 8px 20px; font-size: 18px; font-family: 'VT323', monospace; z-index: 130;
  clip-path: var(--ecke3);
  box-shadow: inset 0 0 0 2px #000;
  opacity: 0; transition: opacity 0.2s steps(3, end), transform 0.2s steps(3, end);
  max-width: 90vw;
}
.toast-ok { border-color: var(--gruen); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* Karte */
.stadt-hotspot { cursor: pointer; }
.stadt-hotspot:hover .stadt-name { fill: var(--gold-hell); }
.stadt-name {
  font-family: 'Jersey 15', monospace; font-size: 18px; fill: #f4e8c4;
  text-anchor: middle; paint-order: stroke; stroke: #241505; stroke-width: 4px;
}
.spieler-faehnchen { pointer-events: none; }

@media (max-width: 900px) {
  #banner { font-size: 12px; }
  #banner-spieler { display: none; }
  .pergament { padding: 16px 12px; }
}

/* ————— Pixel-Icons (eigenes Artwork — als Farbmasken) ————— */
.gi {
  display: inline-block; width: 1em; height: 1em; vertical-align: -0.12em;
  background: currentColor;
  -webkit-mask: var(--gi) center / contain no-repeat;
  mask: var(--gi) center / contain no-repeat;
}
.ware-karte .gi { width: 32px; height: 32px; color: #4a3410; display: block; margin: 0 auto; }
.steuericon .gi { width: 24px; height: 24px; color: var(--gold); display: block; margin: 0 auto 4px; }

/* ————— Wahl-Sequenzen ————— */
.wahl-overlay {
  position: fixed; inset: 0; z-index: 95;
  background: rgba(6, 4, 12, 0.85);
  display: flex; align-items: center; justify-content: center;
  animation: einblenden 0.3s steps(4, end);
}
@keyframes einblenden { from { opacity: 0; } to { opacity: 1; } }
.wahl-buehne {
  width: min(920px, 96vw); max-height: 92vh; overflow-y: auto;
  border: 8px solid transparent;
  border-image: var(--frame-gold) 8 stretch;
  background-clip: padding-box;
  padding: 22px 28px; box-shadow: 0 10px 0 rgba(0, 0, 0, 0.5);
}
.wahl-kopf { display: flex; gap: 16px; align-items: center; color: var(--schrift); margin-bottom: 18px; }
.wahl-kopf h2 { color: var(--gold-hell); font-size: 21px; font-family: 'Jersey 15', monospace; text-shadow: 2px 2px 0 #000; }
.wahl-kopf p { color: var(--schrift-blass); font-size: 16px; }
.wahl-kopf .btn { margin-left: auto; }
.wahl-icon { width: 46px; height: 46px; background: var(--gold);
  -webkit-mask: var(--gi) center / contain no-repeat; mask: var(--gi) center / contain no-repeat; flex-shrink: 0; }
.wahl-kandidaten { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }
.wahl-kandidat {
  width: 170px; min-height: 150px; padding: 12px 10px 34px; position: relative;
  background: linear-gradient(180deg, #f2e2b4 0%, #f2e2b4 55%, #dcc48c 55%, #dcc48c 100%);
  border: 4px solid var(--pc, #6a5228); text-align: center; color: #33220a;
  clip-path: var(--ecke4);
  animation: kandidatAuftritt 0.4s steps(5, end) backwards;
  transition: transform 0.15s steps(2, end), filter 0.3s steps(3, end);
}
@keyframes kandidatAuftritt { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
.wk-figur { font-size: 40px; }
.wk-figur svg { width: 64px; height: 64px; image-rendering: pixelated; }
.wk-name { font-family: 'Jersey 15', monospace; font-size: 16px; margin-top: 4px; }
.wk-info { font-size: 14px; color: #6a4a18; margin-top: 2px; }
.wk-stimmen { display: flex; flex-direction: column; gap: 3px; margin-top: 8px; min-height: 20px; }
.wahl-stimme {
  font-size: 13px; background: rgba(140, 110, 50, 0.22); border: 2px solid #8a6d38;
  padding: 1px 8px; animation: stimmeFliegt 0.35s steps(4, end);
}
@keyframes stimmeFliegt { from { transform: translateY(-30px); opacity: 0; } to { transform: none; opacity: 1; } }
.wk-zaehler {
  position: absolute; bottom: 8px; left: 50%; transform: translateX(-50%);
  font-family: 'Jersey 15', monospace; font-size: 22px; color: #5a3c12;
}
.wk-zaehler.tick { animation: zaehlerTick 0.3s steps(2, end); }
@keyframes zaehlerTick { 50% { transform: translateX(-50%) scale(1.6); color: #8a5e1e; } }
.wahl-waehlbar { cursor: pointer; }
.wahl-waehlbar:hover { transform: translateY(-5px); box-shadow: 0 8px 0 rgba(0, 0, 0, 0.4), 0 0 18px rgba(217, 179, 85, 0.5); }
.wahl-los { box-shadow: 0 0 0 4px var(--gold-hell); }
.wahl-gewinner {
  box-shadow: 0 0 0 4px var(--gold-hell), 0 0 28px rgba(255, 217, 102, 0.8);
  border-color: var(--gold-hell);
  animation: gewinnerGlanz 0.9s steps(2, end) infinite alternate;
}
@keyframes gewinnerGlanz {
  from { box-shadow: 0 0 0 4px var(--gold-hell), 0 0 10px rgba(255, 217, 102, 0.5); }
  to { box-shadow: 0 0 0 4px var(--gold-hell), 0 0 30px rgba(255, 217, 102, 0.95); }
}
.wahl-verlierer { filter: grayscale(0.8) brightness(0.75); }
.wahl-status {
  margin-top: 18px; text-align: center; color: var(--schrift); font-size: 20px;
  min-height: 34px; font-family: 'VT323', monospace;
}

/* ————— Innenräume: Szene als Hintergrund, Pergament schwebt davor ————— */
.raum-screen { position: relative; min-height: 100%; }
.raum-hintergrund { position: absolute; inset: 0; overflow: hidden; }
.raum-hintergrund svg { width: 100%; height: 100%; display: block; }
.raum-inhalt { position: relative; z-index: 2; padding: 22px clamp(12px, 4vw, 48px); }
.raum-inhalt .pergament {
  max-width: 980px;
  box-shadow: 0 12px 0 rgba(0, 0, 0, 0.6);
}

/* ————— Netzwerkmodus: Lobby, Statusband, Zuschauer ————— */
#netz-card h2 { margin-bottom: 10px; }
.netz-hinweis { font-size: 16px; color: var(--schrift-blass); margin: 0 0 12px; }
.netz-zeile { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.netz-zeile input {
  background: #140d06; border: 2px solid #000; box-shadow: 0 0 0 2px #5a4526;
  border-radius: 0; color: var(--schrift); padding: 7px 10px;
  font-family: 'VT323', monospace; font-size: 18px; width: 130px;
}
#netz-code { width: 86px; text-transform: uppercase; letter-spacing: 3px; font-weight: 700; text-align: center; font-family: 'Jersey 15', monospace; }
.netz-oder { color: var(--schrift-blass); font-size: 15px; }
#btn-netz-wieder { margin-top: 10px; }
.netz-code-anzeige { font-size: 17px; margin: 4px 0 12px; }
.netz-code-anzeige b {
  font-family: 'Jersey 15', monospace; font-size: 22px; letter-spacing: 6px; color: var(--gold-hell);
  background: rgba(217, 179, 85, 0.12); border: 2px dashed #8a5e1e; padding: 2px 12px;
}
.netz-sitze { display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; }
.netz-sitz {
  display: flex; align-items: center; gap: 10px; padding: 7px 10px;
  background: rgba(10, 6, 2, 0.45); border: 2px solid #453314;
}
.netz-sitz-info { color: var(--schrift-blass); font-size: 15px; }
.netz-klienten { color: var(--schrift-blass); font-size: 15px; margin-bottom: 10px; }

#netz-band {
  position: fixed; left: 50%; bottom: 10px; transform: translateX(-50%);
  z-index: 9500; display: flex; align-items: center; gap: 8px;
  background: #171021; border: 3px solid var(--gold-dunkel);
  clip-path: var(--ecke3);
  color: var(--schrift); font-size: 16px; font-family: 'VT323', monospace; padding: 6px 16px;
  box-shadow: inset 0 0 0 2px #000;
  pointer-events: auto;
}
#netz-band b { color: var(--gold-hell); }
.netz-punkt {
  width: 10px; height: 10px; background: #7da05a; display: inline-block;
  border: 2px solid #0a0714;
  animation: netzPuls 2s steps(2, end) infinite;
}
.netz-punkt-regie { background: var(--gold); }
@keyframes netzPuls { 50% { opacity: 0.4; } }

/* Zuschauer: alles sichtbar, nichts anfassbar */
body.netz-zuschauer #screen-game,
body.netz-zuschauer #modal-root,
body.netz-zuschauer .wahl-overlay { pointer-events: none; user-select: none; }
body.netz-zuschauer #netz-band { pointer-events: auto; }
/* Fern-Abstimmung: DIESER Zuschauer hat Stimmrecht — die Wahl-Bühne wird anfassbar */
body.netz-zuschauer.netz-stimmrecht .wahl-overlay { pointer-events: auto; user-select: auto; }
body.netz-zuschauer.netz-stimmrecht .wahl-overlay .wahl-kandidat { cursor: pointer; }
body.netz-zuschauer.netz-stimmrecht::after {
  box-shadow: inset 0 0 0 5px rgba(255, 217, 102, 0.95);
  animation: netzPuls 1s steps(2, end) infinite;
}
body.netz-zuschauer::after {
  content: ''; position: fixed; inset: 0; z-index: 9000; pointer-events: none;
  box-shadow: inset 0 0 0 4px rgba(217, 179, 85, 0.4);
}
