/* Mittelland — Interface im Stil alter Ölgemälde und dunkler Kontore */

:root {
  --nacht: #12100c;
  --holz: #241a10;
  --holz-hell: #3a2c1a;
  --pergament: #e8d9b0;
  --pergament-dunkel: #cbb887;
  --tinte: #2a1f10;
  --gold: #d9b355;
  --gold-hell: #f2dc9b;
  --gold-dunkel: #8f6f28;
  --rot: #a33b2e;
  --gruen: #5d7d4a;
  --schrift: #ead9b4;
  --schrift-blass: #b3a077;
  --schatten: 0 12px 46px rgba(0, 0, 0, 0.7);
}

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

body {
  font-family: 'Alegreya', Georgia, serif;
  background: var(--nacht);
  color: var(--schrift);
  overflow-x: hidden;
}

h1, h2, h3, .btn, .btn-banner, #banner, .modal-title { font-family: 'Cinzel', serif; }
.fell, .brief, .zitat { font-family: 'IM Fell English', 'Alegreya', serif; }
button { cursor: pointer; }
[hidden] { display: none !important; }

/* ————— Knöpfe ————— */
.btn {
  border: 1px solid #503c20;
  background: linear-gradient(180deg, #4a3820, #33250f);
  color: var(--schrift);
  padding: 9px 18px;
  border-radius: 6px;
  font-size: 14.5px;
  letter-spacing: 0.4px;
  transition: filter 0.15s, transform 0.12s;
  box-shadow: inset 0 1px 0 rgba(255, 230, 170, 0.12), 0 2px 6px rgba(0,0,0,0.5);
}
.btn:hover:not(:disabled) { filter: brightness(1.2); transform: translateY(-1px); }
.btn:disabled { opacity: 0.4; cursor: not-allowed; }
.btn-gold {
  background: linear-gradient(180deg, #ecd28a, var(--gold) 45%, var(--gold-dunkel));
  color: #2b1d05; font-weight: 700;
  border-color: var(--gold-dunkel);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.3);
}
.btn-rot { background: linear-gradient(180deg, #8a3a2e, #5e2318); border-color: #a04a3a; }
.btn-ghost { background: transparent; }
.btn-big { font-size: 18px; padding: 13px 28px; }
.btn-mini { font-size: 12px; padding: 3px 10px; border-radius: 5px; }
.btn-klein { font-size: 13px; padding: 6px 12px; }

/* ————— Startmenü ————— */
.screen { min-height: 100vh; }
#screen-menu {
  display: flex; align-items: center; justify-content: center;
  background:
    radial-gradient(ellipse at 30% 20%, rgba(217, 179, 85, 0.18), transparent 55%),
    radial-gradient(ellipse at 75% 85%, rgba(120, 60, 20, 0.3), transparent 60%),
    linear-gradient(rgba(16, 10, 3, 0.82), rgba(8, 5, 2, 0.92)),
    url('/assets/texturen/wand.jpg');
  background-size: auto, auto, auto, 720px;
  position: relative;
}
.menu-vignette { position: absolute; inset: 0; box-shadow: inset 0 0 220px 60px rgba(0,0,0,0.85); pointer-events: none; }
.menu-inner { width: min(700px, 94vw); padding: 44px 0; position: relative; }
.game-title { text-align: center; margin-bottom: 26px; }
.title-zier { color: var(--gold); letter-spacing: 8px; font-size: 15px; font-family: 'Cinzel', serif; }
.game-title h1 {
  font-size: clamp(48px, 9vw, 88px); font-weight: 900; letter-spacing: 4px;
  background: linear-gradient(180deg, var(--gold-hell), var(--gold) 50%, #7a5a1d);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 4px 18px rgba(217, 179, 85, 0.35));
}
.subtitle { color: var(--schrift-blass); font-style: italic; font-size: 17px; margin-top: 8px; }

.menu-card {
  background:
    linear-gradient(180deg, rgba(44, 32, 17, 0.90), rgba(22, 15, 8, 0.94)),
    url('/assets/texturen/moebel.jpg');
  background-size: auto, 480px;
  border: 1px solid #5a4526;
  border-radius: 10px;
  padding: 26px 30px;
  box-shadow: var(--schatten);
}
.menu-card h2 { color: var(--gold); font-size: 19px; margin-bottom: 14px; }
.setup-slot { display: flex; gap: 10px; align-items: center; padding: 6px 0; flex-wrap: wrap; }
.slot-farbe { width: 16px; height: 16px; border-radius: 50%; background: var(--pc); box-shadow: 0 0 8px var(--pc); flex-shrink: 0; }
.setup-slot select, .setup-slot input, .setup-row select {
  background: #1a130a; border: 1px solid #55401f; color: var(--schrift);
  border-radius: 6px; padding: 7px 9px; font-family: inherit; font-size: 14px;
}
.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: 12.5px; color: var(--schrift-blass); }
.menu-buttons { display: flex; gap: 12px; margin-top: 18px; flex-wrap: wrap; }
.llm-status { margin-top: 12px; font-size: 12.5px; color: var(--schrift-blass); font-style: italic; }

/* ————— Banner ————— */
#screen-game { display: flex; flex-direction: column; height: 100vh; }
#banner {
  display: flex; align-items: center; gap: 14px;
  padding: 7px 14px;
  background:
    linear-gradient(180deg, rgba(240, 210, 140, 0.16), rgba(10, 5, 0, 0.55)),
    url('/assets/texturen/moebel.jpg');
  background-size: auto, 420px;
  border-bottom: 2px solid var(--gold-dunkel);
  box-shadow: 0 3px 18px rgba(0, 0, 0, 0.6);
  flex-wrap: wrap;
}
#banner-taler {
  background: linear-gradient(180deg, #57431f, #3a2b10);
  border: 1px solid var(--gold-dunkel);
  color: var(--gold-hell);
  font-family: 'Cinzel', serif; font-weight: 700; font-size: 15px;
  padding: 6px 14px; border-radius: 6px;
}
#banner-taler:hover { filter: brightness(1.25); }
#banner-mitte { display: flex; gap: 16px; align-items: baseline; }
#hud-ort { color: var(--gold); font-size: 16px; font-weight: 700; letter-spacing: 1px; }
#hud-jahr { color: var(--schrift-blass); font-size: 13.5px; }
#banner-spieler { flex: 1; text-align: center; font-size: 14px; color: var(--schrift); }
#banner-spieler b { color: var(--pc, var(--gold-hell)); }
#banner-spieler .amt { color: var(--schrift-blass); font-size: 12.5px; }
#banner-rechts { display: flex; gap: 6px; }
.btn-banner {
  background: transparent; border: 1px solid #55401f; color: var(--schrift);
  border-radius: 6px; padding: 5px 10px; font-size: 13px;
}
.btn-banner:hover { border-color: var(--gold); color: var(--gold-hell); }
.btn-endjahr { border-color: var(--gold-dunkel); color: var(--gold-hell); font-weight: 700; }

#buehne { flex: 1; min-height: 0; overflow: auto; position: relative; }
#brotkrumen {
  padding: 5px 14px; font-size: 12.5px; color: var(--schrift-blass);
  background: linear-gradient(rgba(20, 12, 4, 0.92), rgba(20, 12, 4, 0.92)), url('/assets/texturen/moebel.jpg');
  background-size: auto, 420px;
  border-top: 1px solid #33250f;
}
#brotkrumen button { background: none; border: none; color: var(--gold); font-family: inherit; font-size: 12.5px; }
#brotkrumen button:hover { text-decoration: underline; }

/* ————— Szenen (SVG-Räume) ————— */
.szene-wrap { height: 100%; display: flex; align-items: center; justify-content: center; background: #0b0906; }
.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: 'Cinzel', serif; font-size: 21px; font-weight: 700;
  fill: var(--gold-hell); text-anchor: middle;
  paint-order: stroke; stroke: rgba(10, 6, 0, 0.9); stroke-width: 5px;
  opacity: 0; transition: opacity 0.15s;
  pointer-events: none;
}
.hotspot:hover .hotspot-label { opacity: 1; }
.hotspot:hover .hotspot-glanz { filter: brightness(1.35) drop-shadow(0 0 12px rgba(240, 210, 130, 0.5)); }

/* ————— Pergament-Screens ————— */
.pergament-screen {
  min-height: 100%;
  padding: 22px clamp(12px, 4vw, 48px);
  background:
    radial-gradient(ellipse at 50% 0%, rgba(217, 179, 85, 0.10), transparent 60%),
    linear-gradient(rgba(14, 10, 4, 0.88), rgba(10, 7, 3, 0.92)),
    url('/assets/texturen/wand.jpg');
  background-size: auto, auto, 640px;
}
.pergament {
  background:
    radial-gradient(ellipse at 20% 10%, rgba(120, 90, 40, 0.18), transparent 50%),
    linear-gradient(175deg, rgba(232, 217, 176, 0.82), rgba(203, 184, 135, 0.86)),
    url('/assets/texturen/pergament.jpg');
  background-size: auto, auto, 512px;
  border: 1px solid #7a6236;
  color: var(--tinte);
  border-radius: 6px;
  box-shadow: var(--schatten), inset 0 0 60px rgba(120, 90, 30, 0.25);
  padding: 24px clamp(16px, 3vw, 40px);
  max-width: 1080px;
  margin: 0 auto 20px;
  position: relative;
}
.pergament h2 { color: #5a3c12; font-size: 22px; margin-bottom: 4px; }
.pergament h3 { color: #6a4a18; font-size: 16px; margin: 14px 0 6px; }
.pergament .untertitel { font-style: italic; color: #7a6236; font-size: 14px; margin-bottom: 12px; }
.pergament table { width: 100%; border-collapse: collapse; font-size: 14px; }
.pergament th { text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: 1px; color: #7a6236; padding: 4px 8px; border-bottom: 1px solid #b39d6d; }
.pergament td { padding: 6px 8px; border-bottom: 1px solid #cdbb8d; }
.pergament .btn { border-color: #8a6d35; background: linear-gradient(180deg, #d7c188, #b89c5c); color: #33220a; box-shadow: 0 2px 5px rgba(60, 40, 10, 0.4); }
.pergament .btn-gold { background: linear-gradient(180deg, #ecd28a, var(--gold) 45%, var(--gold-dunkel)); }
.pergament .btn-rot { background: linear-gradient(180deg, #b56a56, #8a3a2e); color: #fff0e0; }
.pergament select, .pergament input {
  background: #f4ecd4; color: var(--tinte); border: 1px solid #a08850;
  border-radius: 4px; padding: 5px 8px; font-family: inherit; font-size: 14px;
}
.hinweis { font-size: 12.5px; color: #7a6236; font-style: italic; margin-top: 8px; line-height: 1.5; }

/* Warenleiste in der Niederlassung */
.warenleiste { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; margin: 10px 0 16px; }
.ware-karte {
  background: linear-gradient(180deg, #f2e7c8, #dcc994);
  border: 1px solid #a8905a; border-radius: 8px;
  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-weight: 700; font-size: 15px; color: #4a3410; }
.ware-bestand { font-size: 12.5px; color: #6a4a18; }
.ware-name { font-size: 11px; color: #7a6236; }
.ring { position: absolute; top: 4px; right: 4px; width: 20px; height: 20px; }
.ware-karte .verkauf-knoepfe { display: flex; gap: 3px; justify-content: center; margin-top: 4px; }

/* Auftragsbuch */
.auftragsbuch {
  background: linear-gradient(180deg, #f7efd8, #e7d8ae);
  border: 1px solid #a8905a; border-radius: 8px;
  padding: 14px 18px; margin: 8px 0 14px;
  box-shadow: inset 0 0 30px rgba(140, 110, 50, 0.18);
}
.auftrag-zeile {
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
  font-family: 'IM Fell English', serif; font-size: 17px;
  padding: 9px 4px; border-bottom: 1px dashed #b39d6d;
}
.auftrag-zeile:last-child { border-bottom: none; }
.a-teil {
  background: rgba(180, 150, 80, 0.18);
  border: none; border-bottom: 2px solid #a8905a;
  font-family: inherit; font-size: inherit; color: #4a3008;
  padding: 1px 7px; border-radius: 4px 4px 0 0; cursor: pointer;
}
.a-teil:hover { background: rgba(200, 160, 70, 0.4); color: #2a1a00; }
.a-status { margin-left: auto; font-size: 20px; background: none; border: none; }
.a-status.moeglich { color: #5d7d4a; }
.a-status.unmoeglich { color: #a33b2e; cursor: not-allowed; }
.a-prognose { font-size: 12px; color: #7a6236; width: 100%; font-family: 'Alegreya', serif; }

/* Steuericons unten */
.steuericons { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.steuericon {
  background:
    linear-gradient(180deg, rgba(74, 56, 32, 0.75), rgba(30, 20, 9, 0.88)),
    url('/assets/texturen/moebel.jpg');
  background-size: auto, 300px;
  border: 1px solid #6a5228; border-radius: 8px;
  color: var(--schrift); font-family: 'Alegreya', serif;
  padding: 10px 14px; font-size: 13px; text-align: center; min-width: 92px;
}
.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, #f2e7c8, #dcc994);
  border: 1px solid #a8905a; border-radius: 8px;
  padding: 8px 12px; min-width: 150px; text-align: center; cursor: pointer;
  position: relative;
}
.amt-karte:hover { box-shadow: 0 0 12px rgba(160, 120, 40, 0.6); }
.amt-titel { font-weight: 700; font-size: 13.5px; color: #4a3410; font-family: 'Cinzel', serif; }
.amt-name { font-size: 13px; color: #33250f; }
.amt-name .du { color: var(--rot); font-weight: 700; }
.gunst-balken { height: 7px; background: #c9b788; border-radius: 4px; margin-top: 5px; overflow: hidden; }
.gunst-wert { height: 100%; background: linear-gradient(90deg, #3a2a10, #6a4a18); }
.amt-kreuz { position: absolute; top: 4px; right: 6px; font-size: 11px; color: #6a4a18; }
.amt-vakant { opacity: 0.6; font-style: italic; }

/* Log/Berichte */
.bericht-liste { display: flex; flex-direction: column; gap: 6px; }
.bericht {
  padding: 7px 12px; border-left: 3px solid #a8905a; background: rgba(200, 170, 100, 0.14);
  border-radius: 0 6px 6px 0; font-size: 14.5px; line-height: 1.45;
}
.bericht-gut { border-color: var(--gruen); }
.bericht-schlecht { border-color: var(--rot); }
.bericht-welt, .bericht-historie { border-color: #7a6236; font-style: italic; }
.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(5, 3, 0, 0.8); backdrop-filter: blur(3px); }
#modal-box {
  position: relative; width: min(560px, 93vw); max-height: 88vh; overflow-y: auto;
  background:
    linear-gradient(175deg, rgba(232, 217, 176, 0.84), rgba(203, 184, 135, 0.88)),
    url('/assets/texturen/pergament.jpg');
  background-size: auto, 512px;
  color: var(--tinte);
  border: 2px solid var(--gold-dunkel); border-radius: 8px;
  padding: 26px 32px;
  box-shadow: 0 0 80px rgba(217, 179, 85, 0.2), var(--schatten), inset 0 0 60px rgba(120, 90, 30, 0.25);
  animation: modalauf 0.3s cubic-bezier(0.2, 0.9, 0.3, 1.1);
}
.modal-wide { width: min(760px, 95vw) !important; }
@keyframes modalauf { from { transform: translateY(20px) scale(0.95); opacity: 0; } to { transform: none; opacity: 1; } }
.modal-zier { text-align: center; color: #8f6f28; letter-spacing: 7px; margin-bottom: 6px; font-size: 15px; }
.modal-title { text-align: center; color: #5a3c12; font-size: 21px; margin-bottom: 12px; }
.modal-body { font-size: 15.5px; line-height: 1.55; }
.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: #8a6d35; background: linear-gradient(180deg, #d7c188, #b89c5c); color: #33220a; }
#modal-box .btn-gold { background: linear-gradient(180deg, #ecd28a, var(--gold) 45%, var(--gold-dunkel)); font-weight: 700; }
#modal-box .btn-rot { background: linear-gradient(180deg, #b56a56, #8a3a2e); color: #fff0e0; }
#modal-box input, #modal-box select {
  background: #f4ecd4; color: var(--tinte); border: 1px solid #a08850;
  border-radius: 4px; padding: 6px 9px; font-family: inherit; font-size: 15px;
}
.brief { font-size: 16.5px; line-height: 1.6; font-style: italic; }

/* Münzsäulen (Bezahlung) */
.saeulen { display: flex; gap: 36px; justify-content: center; margin: 18px 0; flex-wrap: wrap; }
.saeule { text-align: center; }
.saeule .muenzen { font-size: 40px; letter-spacing: -6px; display: block; height: 110px; display: flex; flex-direction: column-reverse; align-items: center; }
.saeule .muenze { width: 52px; height: 11px; border-radius: 50%; background: radial-gradient(ellipse at 40% 35%, #f2dc9b, #a8842e); border: 1px solid #7a5a1d; margin-top: -4px; }
.saeule .wert { font-size: 26px; font-weight: 700; color: #4a3410; font-family: 'Cinzel', serif; }
.saeule .label { font-size: 13px; color: #7a6236; }
.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; }
#kampf-leiste {
  display: flex; gap: 10px; align-items: center; padding: 8px 14px; flex-wrap: wrap;
  background: linear-gradient(180deg, #2c1e0c, #171008); border-top: 1px solid var(--gold-dunkel);
  font-size: 13.5px;
}
#kampf-log { max-height: 60px; overflow-y: auto; flex: 1; min-width: 200px; font-size: 12px; color: var(--schrift-blass); }
.einheit { cursor: pointer; }
.einheit-gewaehlt circle { stroke: var(--gold-hell) !important; stroke-width: 3 !important; }
.taktik-menue { display: flex; gap: 5px; flex-wrap: wrap; }

/* Toast */
.toast {
  position: fixed; left: 50%; bottom: 60px; transform: translate(-50%, 16px);
  background: #2c1e0c; border: 1px solid var(--rot); color: var(--schrift);
  padding: 9px 20px; border-radius: 999px; font-size: 14px; z-index: 130;
  opacity: 0; transition: opacity 0.25s, transform 0.25s; box-shadow: var(--schatten);
  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: 'Cinzel', serif; font-weight: 700; font-size: 16px; fill: #e8d9b0;
  text-anchor: middle; paint-order: stroke; stroke: rgba(20, 12, 2, 0.85); stroke-width: 4px;
}
.spieler-faehnchen { pointer-events: none; }

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

/* ————— Fantasy-Icons (game-icons.net, CC BY 3.0 — 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: 34px; height: 34px; color: #4a3410; display: block; margin: 0 auto; }
.steuericon .gi { width: 26px; height: 26px; color: var(--gold); display: block; margin: 0 auto 4px; }

/* ————— Wahl-Sequenzen ————— */
.wahl-overlay {
  position: fixed; inset: 0; z-index: 95;
  background: rgba(5, 3, 0, 0.85); backdrop-filter: blur(3px);
  display: flex; align-items: center; justify-content: center;
  animation: einblenden 0.35s ease;
}
@keyframes einblenden { from { opacity: 0; } to { opacity: 1; } }
.wahl-buehne {
  width: min(920px, 96vw); max-height: 92vh; overflow-y: auto;
  border: 2px solid var(--gold-dunkel); border-radius: 14px;
  padding: 22px 28px; box-shadow: 0 0 90px rgba(217, 179, 85, 0.18), var(--schatten);
}
.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: 'Cinzel', serif; }
.wahl-kopf p { color: var(--schrift-blass); font-size: 13px; }
.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, #f2e7c8, #d8c48e);
  border: 2px solid var(--pc, #8a6d35); border-radius: 12px; text-align: center; color: #33220a;
  animation: kandidatAuftritt 0.5s ease backwards;
  transition: transform 0.2s, box-shadow 0.3s, filter 0.4s;
}
@keyframes kandidatAuftritt { from { transform: translateY(40px) scale(0.9); opacity: 0; } to { transform: none; opacity: 1; } }
.wk-figur { font-size: 40px; }
.wk-name { font-family: 'Cinzel', serif; font-weight: 700; font-size: 14.5px; margin-top: 4px; }
.wk-info { font-size: 11.5px; color: #6a4a18; margin-top: 2px; }
.wk-stimmen { display: flex; flex-direction: column; gap: 3px; margin-top: 8px; min-height: 20px; }
.wahl-stimme {
  font-size: 11px; background: rgba(140, 110, 50, 0.22); border: 1px solid #a8905a;
  border-radius: 999px; padding: 1px 8px; animation: stimmeFliegt 0.5s cubic-bezier(0.2, 0.9, 0.3, 1.2);
}
@keyframes stimmeFliegt { from { transform: translateY(-30px) scale(0.6); opacity: 0; } to { transform: none; opacity: 1; } }
.wk-zaehler {
  position: absolute; bottom: 8px; left: 50%; transform: translateX(-50%);
  font-family: 'Cinzel', serif; font-weight: 900; font-size: 19px; color: #5a3c12;
}
.wk-zaehler.tick { animation: zaehlerTick 0.35s ease; }
@keyframes zaehlerTick { 50% { transform: translateX(-50%) scale(1.6); color: #8f6f28; } }
.wahl-waehlbar { cursor: pointer; }
.wahl-waehlbar:hover { transform: translateY(-5px) scale(1.04); box-shadow: 0 8px 28px rgba(217, 179, 85, 0.5); }
.wahl-los { box-shadow: 0 0 24px rgba(217, 179, 85, 0.9); transform: scale(1.05); }
.wahl-gewinner {
  box-shadow: 0 0 36px rgba(217, 179, 85, 0.95); transform: scale(1.08);
  border-color: var(--gold-hell);
  animation: gewinnerGlanz 1.2s ease infinite alternate;
}
@keyframes gewinnerGlanz { from { box-shadow: 0 0 20px rgba(217,179,85,0.6); } to { box-shadow: 0 0 44px rgba(242,220,155,1); } }
.wahl-verlierer { filter: grayscale(0.8) brightness(0.75); transform: scale(0.95); }
.wahl-status {
  margin-top: 18px; text-align: center; color: var(--schrift); font-size: 15.5px;
  min-height: 34px; font-family: 'IM Fell English', serif;
}


/* ————— 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 24px 80px rgba(0, 0, 0, 0.85), inset 0 0 60px rgba(120, 90, 30, 0.25);
}


/* ————— Netzwerkmodus: Lobby, Statusband, Zuschauer ————— */
#netz-card h2 { margin-bottom: 10px; }
.netz-hinweis { font-size: 13.5px; color: var(--schrift-blass); margin: 0 0 12px; }
.netz-zeile { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.netz-zeile input {
  background: rgba(14, 10, 4, 0.6); border: 1px solid #55401f; border-radius: 6px;
  color: var(--schrift); padding: 8px 10px; font-family: inherit; font-size: 14px; width: 130px;
}
#netz-code { width: 76px; text-transform: uppercase; letter-spacing: 3px; font-weight: 700; text-align: center; }
.netz-oder { color: var(--schrift-blass); font-size: 13px; }
#btn-netz-wieder { margin-top: 10px; }
.netz-code-anzeige { font-size: 15px; margin: 4px 0 12px; }
.netz-code-anzeige b {
  font-family: 'Cinzel', serif; font-size: 22px; letter-spacing: 6px; color: var(--gold-hell, #f2dc9b);
  background: rgba(217, 179, 85, 0.12); border: 1px dashed #8f6f28; border-radius: 8px; 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(14, 10, 4, 0.45); border: 1px solid #453314; border-radius: 8px;
}
.netz-sitz-info { color: var(--schrift-blass); font-size: 13px; }
.netz-klienten { color: var(--schrift-blass); font-size: 13.5px; 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: rgba(20, 13, 4, 0.94); border: 1px solid #8f6f28; border-radius: 999px;
  color: var(--schrift); font-size: 13.5px; padding: 6px 16px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.6);
  pointer-events: auto;
}
#netz-band b { color: var(--gold-hell, #f2dc9b); }
.netz-punkt {
  width: 9px; height: 9px; border-radius: 50%; background: #7da05a; display: inline-block;
  animation: netzPuls 2s ease infinite;
}
.netz-punkt-regie { background: var(--gold, #d9b355); }
@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; }
body.netz-zuschauer::after {
  content: ''; position: fixed; inset: 0; z-index: 9000; pointer-events: none;
  box-shadow: inset 0 0 0 3px rgba(217, 179, 85, 0.35);
}
