:root{--grund:#24391c;--papier:#f3ead6;--papier-dunkel:#e3d5b4;--tinte:#2a2118;--tinte-hell:#5c4d3c;--akzent:#b5321f;--akzent-dunkel:#8e2416;--gold:#e0b43a;--rand:#1c140e;--leiste:#241c14eb;--leiste-text:#f6efdf;--abstand:12px;color:var(--tinte);-webkit-tap-highlight-color:transparent;font-family:system-ui,-apple-system,Segoe UI,Roboto,sans-serif}*{box-sizing:border-box}html,body{background:var(--grund);overscroll-behavior:none;height:100%;margin:0;overflow:hidden}.versteckt{display:none!important}button,select,input{font:inherit;border-radius:6px;min-height:44px}button{border:2px solid var(--rand);background:var(--papier-dunkel);color:var(--tinte);cursor:pointer;touch-action:manipulation;padding:6px 14px;font-weight:600}button:active{transform:translateY(1px)}button.haupt{background:var(--akzent);color:#fff}button.haupt:hover{background:var(--akzent-dunkel)}button.gefahr{color:#fff;background:#6d2b1f}button.an{background:var(--gold)}button.gross{width:100%;min-height:52px;font-size:1.1rem}input,select{border:2px solid var(--rand);color:var(--tinte);background:#fffaf0;min-width:0;padding:6px 10px}#lobby{background:radial-gradient(circle at 30% 20%,#ffffff0f,#0000 50%),linear-gradient(#2f4a25,#1b2c15);height:100%;padding:16px;overflow-y:auto}.titelbild{border:3px solid var(--rand);background:#2f4a25;border-radius:10px;width:min(100%,960px,98vh);height:auto;margin:0 auto;display:block;box-shadow:0 8px #00000059}.titelbild+.karte{margin-top:16px}.karte{background:var(--papier);border:3px solid var(--rand);border-radius:10px;flex-direction:column;gap:12px;max-width:560px;margin:4vh auto;padding:20px;display:flex;box-shadow:0 8px #00000059}.karte h1{letter-spacing:.01em;margin:0;font-size:1.7rem}.karte h2{margin:8px 0 4px;font-size:1.1rem}.karte .unter{color:var(--tinte-hell);margin:-6px 0 6px}.karte label{font-weight:600}.karte .fehlerhinweis{color:#9b2c1f;margin:-4px 0 0;font-weight:600}.karte .fehlerhinweis:empty{display:none}.karte section{flex-direction:column;gap:8px;display:flex}.eintrag,.platz{border:2px solid var(--papier-dunkel);background:#fbf5e6;border-radius:8px;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:8px;padding:8px;display:flex}.platz.meiner{border-color:var(--gold)}.platz .platzname{flex:1;min-width:120px}.punkt,.ich i,.mitspieler i{border:2px solid var(--rand);vertical-align:middle;border-radius:50%;flex:none;width:14px;height:14px;margin-right:6px;display:inline-block}.reihe{align-items:center;gap:8px;display:flex}.reihe input{flex:1}.klein{color:var(--tinte-hell);font-size:.9rem}.plaetze{flex-direction:column;gap:8px;display:flex}#spiel{position:fixed;inset:0}.buehne{position:absolute;inset:0}.buehne canvas{display:block}.kopf{padding:calc(6px + env(safe-area-inset-top)) 10px 6px;background:var(--leiste);color:var(--leiste-text);border-bottom:2px solid var(--rand);pointer-events:auto;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:4px 16px;display:flex;position:absolute;top:0;left:0;right:0}.kopf .zeile{flex-wrap:wrap;align-items:center;gap:12px;display:flex}.kopf .ich{white-space:nowrap;font-weight:700}.kopf .lager{gap:12px;display:flex}.kopf .ware{white-space:nowrap;align-items:center;gap:4px;display:inline-flex}.kopf .ware img{width:20px;height:12px;image-rendering:pixelated}.kopf .ware small{opacity:.75}.kopf .kurz{display:none}.kopf .ware img.figur{object-fit:contain;width:14px;height:16px}.lagerliste.leute .lagerware{background:#0000000a;border-radius:4px;align-items:center;gap:4px;min-height:34px;padding:2px 6px;display:flex}.lagerliste.leute .lagerware img{width:18px;height:20px}.lagerliste.leute .lagerware i{opacity:.7;font-size:.85em}.kopf button{min-height:38px;padding:4px 10px}.kopf .knoepfe{gap:6px;display:flex}.mitspielerliste{flex-wrap:wrap;gap:10px;font-size:.9rem;display:flex}.mitspieler.weg,.mitspieler.aus{opacity:.55;text-decoration:line-through}.banner{border:2px solid var(--rand);text-align:center;pointer-events:none;border-radius:8px;max-width:calc(100% - 32px);padding:10px 16px;font-weight:700;position:absolute;top:100px;left:50%;transform:translate(-50%)}.banner.warnung{background:var(--gold);color:var(--tinte)}.banner.pause{color:#fff;background:#6d2b1f}.banner.ende{background:var(--leiste);color:var(--gold);font-weight:700}.zoomknoepfe{right:10px;bottom:calc(10px + env(safe-area-inset-bottom));flex-direction:column;gap:6px;display:flex;position:absolute}.zoomknoepfe button{background:var(--papier);width:48px;height:48px;padding:0;font-size:1.4rem}.leiste{left:10px;right:70px;bottom:calc(10px + env(safe-area-inset-bottom));background:var(--papier);border:3px solid var(--rand);border-radius:10px;max-width:640px;max-height:55vh;padding:12px;position:absolute;overflow-y:auto;box-shadow:0 6px #00000059}.leiste h2{margin:0 0 4px;font-size:1.1rem}.leiste p{margin:4px 0}.leiste .knoepfe{flex-wrap:wrap;gap:8px;margin-top:8px;display:flex}.leiste button.bau{flex-direction:column;align-items:flex-start;min-width:130px;line-height:1.2;display:flex}.leiste button.bau small{color:var(--tinte-hell);font-weight:400}.baureiter{flex-wrap:wrap;gap:4px;margin:6px 0 8px;display:flex}.baureiter button{flex:auto;min-height:40px;padding:4px 10px;font-size:.95rem}.baureiter button.an{background:var(--akzent);color:#fff}.bauliste{grid-template-columns:repeat(auto-fill,minmax(min(200px,100%),1fr));gap:6px;display:grid}.baueintrag{min-width:0;display:flex;position:relative}.bauliste button.bauwahl{text-align:left;background:var(--papier);flex:auto;align-items:center;gap:8px;min-width:0;min-height:64px;padding:4px 8px;font-weight:400;display:flex}.bauwahl img,.bauwahl .ohnebild{object-fit:contain;width:56px;height:52px;image-rendering:pixelated;flex:none}.bauwahl .text{flex-direction:column;min-width:0;line-height:1.2;display:flex}.bauwahl b{-webkit-hyphens:auto;hyphens:auto;overflow-wrap:break-word;font-weight:700}.bauwahl small{color:var(--tinte-hell)}.bauwahl small .fehlt{color:var(--akzent);font-weight:600}.bauwahl small.hinweis{font-style:italic}.bauwahl small{padding-right:28px}.baueintrag .infoknopf{border-radius:50%;width:30px;height:30px;min-height:30px;padding:0;font-family:Georgia,serif;font-size:1.05rem;font-style:italic;line-height:1;position:absolute;bottom:4px;right:4px}.infokopf{align-items:center;gap:10px;display:flex}.infokopf img{object-fit:contain;width:72px;height:64px;image-rendering:pixelated;flex:none}.infokopf h2{margin:0}.infoteil{margin-top:8px}.infoteil h3{color:var(--akzent-dunkel);margin:0 0 2px;font-size:.95rem}.infoteil p,.infoteil ul{margin:2px 0}.infoteil ul{padding-left:18px}.infoteil ul.kette,.infoteil ul.kette ul{padding-left:14px;list-style:none}.infoteil ul.kette{padding-left:0}.infoteil ul.kette ul{border-left:2px solid var(--papier-dunkel);margin-left:6px}.infoteil ul.kette li{margin:2px 0}.uebersicht{background:var(--leiste);border:2px solid var(--rand);border-radius:8px;padding:4px;display:none;position:absolute;top:90px;right:10px;box-shadow:0 2px 8px #00000059}.uebersicht.bereit{display:block}.uebersichtsbild{aspect-ratio:2;cursor:crosshair;width:260px;display:block}.uebersicht .zu,.zoomknoepfe .kartenknopf{display:none}.zoomknoepfe .kartenknopf.an{background:var(--gold)}@media (max-width:767px){.uebersicht.bereit{display:none}.uebersicht.bereit.offen{display:block;left:10px;right:10px}.uebersicht.offen .uebersichtsbild{width:100%}.uebersicht .zu{border-radius:50%;width:40px;height:40px;padding:0;font-size:1.4rem;line-height:1;display:block;position:absolute;top:-16px;right:-8px}.zoomknoepfe .kartenknopf{justify-content:center;align-items:center;display:flex}}.begriff{color:#5b4630;margin:2px 0 4px;font-size:.9rem}.bauwahl small.allgemein{opacity:.85;font-style:italic}.lagerliste{grid-template-columns:repeat(auto-fill,minmax(104px,1fr));gap:4px;margin:6px 0;display:grid}.leiste button.lagerware{text-align:left;align-items:center;gap:4px;min-height:34px;padding:2px 6px;font-weight:400;display:flex;overflow:hidden}.lagerware img{object-fit:contain;width:26px;height:16px;image-rendering:pixelated;flex:none}.lagerware small{text-overflow:ellipsis;white-space:nowrap;flex:1;min-width:0;overflow:hidden}.lagerware i{flex:none;font-style:normal}.lagerware.leer b,.lagerware.leer small,.lagerware.leer img{opacity:.45}.lagerware.sperren{background:#e9d9c9}.lagerware.aus{background:#dfe8cf}.reiter{gap:6px;margin:6px 0;display:flex}.reiter button{flex:1}.warenwahl{flex-wrap:wrap;gap:6px;margin:6px 0;display:flex}.warenwahl button{align-items:center;gap:6px;display:inline-flex}.warenwahl img,.rangliste img{object-fit:contain;width:26px;height:16px;image-rendering:pixelated}.rangliste{flex-direction:column;gap:4px;margin:6px 0;padding:0;list-style:none;display:flex}.rangliste li{border:2px solid var(--rand);background:#fbf5e6;border-radius:6px;align-items:center;gap:6px;padding:3px 3px 3px 8px;display:flex}.rangliste .rang{width:1.4em;color:var(--tinte-hell);flex:none;font-weight:700}.rangliste .name{text-overflow:ellipsis;white-space:nowrap;flex:1;min-width:0;overflow:hidden}.rangliste button{flex:none;width:44px;padding:0}.rangliste{position:relative}.rangliste li.mit-griff{padding-left:0}.rangliste .griff{width:34px;color:var(--tinte-hell);cursor:grab;touch-action:none;-webkit-user-select:none;user-select:none;-webkit-touch-callout:none;flex:none;justify-content:center;align-self:stretch;align-items:center;margin:-3px 0;font-size:1.5rem;line-height:1;display:flex}.rangliste .griff:hover{color:var(--tinte)}.rangliste.zieht{-webkit-user-select:none;user-select:none}.rangliste.zieht li{transition:transform .12s}.rangliste.zieht li.gezogen{z-index:2;border-color:var(--gold);background:#fffaf0;transition:none;position:relative;box-shadow:0 8px 14px #00000059}.rangliste.zieht li.gezogen .griff,.rangliste.zieht li.gezogen .griff:hover{cursor:grabbing;color:var(--tinte)}.rangliste li.gezogen.abbruch{opacity:.55;box-shadow:none}.rangliste.ohne-gleiten li{transition:none}.rangliste li.einfuegestelle{z-index:1;border:2px dashed var(--gold);pointer-events:none;background:#e0b43a2e;padding:0;position:absolute;left:0;right:0}.reglerliste li{padding:3px 8px}.reglerliste .name{flex:0 7.5em}.reglerliste input[type=range]{min-width:4.5em;accent-color:var(--akzent);flex:6em;margin:0}.reglerliste .zahl{text-align:right;font-variant-numeric:tabular-nums;flex:none;width:1.6em;font-weight:700}.reglerliste .anteil{text-align:right;width:3.2em;color:var(--tinte-hell);font-variant-numeric:tabular-nums;flex:none}button:disabled{opacity:.4;cursor:default}#toast{background:var(--leiste);color:var(--leiste-text);border:2px solid var(--rand);opacity:0;pointer-events:none;z-index:10;text-align:center;border-radius:8px;max-width:calc(100% - 32px);padding:10px 16px;transition:opacity .2s,transform .2s;position:fixed;bottom:30%;left:50%;transform:translate(-50%,20px)}#toast.sichtbar{opacity:1;transform:translate(-50%)}#toast.fehler{background:#6d2b1f}@media (max-width:640px){.kopf{gap:4px;font-size:.9rem}.kopf .ware small,.kopf .lang{display:none}.kopf .kurz{display:inline}.kopf .zeile{display:contents}.kopf .lager{flex:1 0 100%;order:1;justify-content:space-between;gap:3px}.kopf .ich{flex:0 auto;order:2;align-items:center;gap:4px;min-width:0;display:flex;overflow:hidden}.kopf .ich .name{text-overflow:ellipsis;min-width:0;overflow:hidden}.kopf .ich .volk{display:none}.kopf .ware{gap:2px}.kopf .ware img{width:16px}.kopf .ware img.figur{width:11px;height:14px}.lagerliste{grid-template-columns:repeat(auto-fill,minmax(86px,1fr))}.mitspielerliste{flex-wrap:nowrap;flex:auto;order:3;gap:6px;min-width:0;margin-left:6px;overflow:hidden}.mitspieler .name,.mitspieler.selbst{display:none}.kopf .knoepfe{flex:none;order:4}.kopf button{min-height:36px;padding:2px 8px}.banner{font-size:.9rem;top:96px}.leiste{right:66px}.leiste button.bau{text-align:left;flex:calc(50% - 4px);min-width:min-content;padding:6px 8px;font-size:.9rem}.leiste.breit{right:10px}.bauliste{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}.bauliste button.bauwahl{gap:6px;padding:4px 6px;font-size:.88rem}.bauwahl img,.bauwahl .ohnebild{width:40px;height:40px}.baureiter button{padding:4px 6px;font-size:.88rem}}.besatzung{flex-wrap:wrap;gap:4px;margin:4px 0;display:flex}.besatzung .soldat{background:#0000000d;border-radius:6px;flex-direction:column;align-items:center;width:52px;min-height:62px;padding:3px 2px;display:flex}.besatzung .soldat img{object-fit:contain;width:22px;height:26px;image-rendering:pixelated}.besatzung .soldat .punkte{gap:2px;margin:2px 0;display:flex}.besatzung .soldat .punkte i{background:#00000026;border:1px solid #00000059;border-radius:50%;width:6px;height:6px}.besatzung .soldat small{text-align:center;text-overflow:ellipsis;max-width:100%;font-size:.68rem;line-height:1.1;overflow:hidden}.besatzung .soldat.leer{color:#6b5a44;background:0 0;border:1px dashed #0000004d;justify-content:center;font-weight:700}.sold{flex-wrap:wrap;align-items:center;gap:6px;display:flex}.sold img{object-fit:contain;width:26px;height:16px;image-rendering:pixelated}.sold.aus img,.sold.aus b{opacity:.45}.sold button{min-height:34px}.erklaerung{background:#f4d03f2e;border-radius:6px;margin:4px 0;padding:6px 8px;font-size:.88rem}.erklaerung p{margin:3px 0}.leiste .reihe.angriff{flex-basis:100%;justify-content:center}.leiste .reihe.angriff button{min-width:52px;min-height:44px;font-size:1.3rem}.leiste .reihe.angriff .anzahl{text-align:center;min-width:6.5em}.schalter{cursor:pointer;align-items:center;gap:12px;min-height:44px;margin:4px 0 12px;display:flex}.schalter input{width:24px;height:24px;min-height:0;accent-color:var(--akzent);flex:none;margin:0}.schalter span{flex-direction:column;display:flex}.schalter small{color:var(--tinte-hell)}.schalter.gesperrt{cursor:default}.kopf button.tonknopf{min-width:40px;font-size:1.15rem;line-height:1}.kopf button.tonknopf.aus{opacity:.55;text-decoration:line-through}.tonfeld{z-index:30;background:var(--leiste);min-width:200px;color:var(--leiste-text);border:2px solid var(--rand);border-radius:8px;flex-direction:column;gap:8px;padding:10px;display:flex;position:fixed;box-shadow:0 6px #0000004d}.tonfeld button{text-align:left}.tonfeld .regler{flex-direction:column;gap:4px;font-size:.9rem;display:flex}.tonfeld input[type=range]{min-height:32px;accent-color:var(--gold);background:0 0;border:none;padding:0}.tonfeld small{opacity:.8;max-width:220px}
