:root { --fg:#000; --bg:#fff; --mid:#555; --soft:#ececec; --dis:#9a9a9a; }
* { box-sizing:border-box; }
[hidden] { display:none !important; }
html { overflow-x:hidden; max-width:100%; }
body { overflow-x:hidden; margin:0 auto; padding:14px 14px 48px; max-width:520px; background:var(--bg); color:var(--fg); font:16px/1.45 Georgia,"Times New Roman",serif; -webkit-text-size-adjust:100%; }
h1 { font-weight:normal; letter-spacing:.4em; font-size:26px; margin:0 0 10px; padding-bottom:8px; border-bottom:2px solid var(--fg); }
h2 { font-weight:normal; font-size:18px; margin:24px 0 8px; padding-bottom:4px; border-bottom:1px solid var(--fg); }
p { margin:8px 0; }
table { width:100%; border-collapse:collapse; }
td, th { border:1px solid var(--fg); padding:7px 9px; text-align:left; font-weight:normal; }
th { background:var(--soft); color:var(--mid); font-size:14px; }
td.r, th.r { text-align:right; }
tr.ich td { font-weight:bold; background:var(--soft); }
button { width:100%; padding:12px; background:var(--fg); color:var(--bg); border:0; font:inherit; }
button:disabled { background:var(--dis); }
button.zweit { background:var(--bg); color:var(--fg); border:1px solid var(--fg); }
button.zweit:disabled { color:var(--dis); border-color:var(--dis); }
/* 1.170.9: Knopf „Transport“ (Schnellwahl eigene Insel) zeigt beim Antippen die Farbe wechseln */
button.fx { width:auto; display:inline-block; float:right; margin:-2px 0 0 8px; padding:0 8px; line-height:24px; font-size:18px; background:var(--bg); color:var(--fg); border:1px solid var(--fg); border-radius:50%; min-width:26px; }
button.fx:active { background:var(--fg); color:var(--bg); }
button.zweit[data-nach]:active { background:var(--fg); color:var(--bg); }
input { width:100%; padding:12px; margin:8px 0; border:1px solid var(--fg); border-radius:0; font:inherit; background:var(--bg); color:var(--fg); }
nav { display:flex; border:1px solid var(--fg); margin-bottom:12px; }
nav button { flex:1; background:var(--bg); color:var(--fg); padding:10px 1px; font-size:13px; border:0; border-right:1px solid var(--fg); }
nav button:last-child { border-right:0; }
nav button.an { background:var(--fg); color:var(--bg); }
.klein { color:var(--mid); font-size:14px; }
.fehler { border:1px solid var(--fg); padding:10px; }
#meldung { position:fixed; left:0; right:0; top:0; z-index:21; background:var(--fg); color:var(--bg); padding:calc(12px + env(safe-area-inset-top)) 14px 12px; text-align:center; } /* 1.170.3: über allen Fenstern; die Lage setzt melde() (util.js), damit kein Werbebanner sie verdeckt */
.kopf { display:flex; flex-direction:column; gap:8px; align-items:stretch; margin-bottom:6px; }
svg.sym { width:26px; height:26px; flex:none; fill:none; stroke:var(--fg); stroke-width:1.6; stroke-linecap:round; stroke-linejoin:round; }
.geb { border:1px solid var(--fg); padding:10px; margin-bottom:10px; scroll-margin-top:12px; }
.geb.hervor { outline:3px solid var(--fg); outline-offset:2px; }
.gk { display:flex; align-items:center; gap:10px; font-size:17px; }
.gk .gn { flex:1; }
.gk .gs { color:var(--mid); font-size:14px; }
.geb .info { margin:6px 0 2px; font-size:14px; }
.geb .klein { margin:2px 0 8px; white-space:pre-line; }
.geb .bau { margin:6px 0 8px; font-size:14px; }
.geb .bau .leiste { height:6px; border:1px solid var(--fg); margin-top:4px; }
.geb .bau .leiste i { display:block; height:100%; background:var(--fg); width:0; }
.pfeile { display:flex; flex-wrap:wrap; gap:6px; margin:8px 0; }
.pfeile button { flex:1 1 0; min-width:max-content; max-width:100%; } /* seit 1.158.0: bricht um statt die Seite zu verbreitern */
#kar { width:100%; max-width:380px; margin:0 auto; display:block; }
#kar svg { width:100%; height:auto; display:block; border:1px solid var(--fg); }
#kdetail { border:1px solid var(--fg); padding:10px; margin:8px 0; min-height:60px; }
.pw { display:flex; align-items:center; gap:8px; margin:0 0 8px; font-size:15px; }
.pw input { width:auto; margin:0; }
nav { flex-wrap:wrap; }
nav button { flex:1 0 20%; border-bottom:1px solid var(--fg); }
label.klein { display:block; margin-top:6px; }
textarea { width:100%; padding:12px; margin:8px 0; border:1px solid var(--fg); border-radius:0; font:inherit; background:var(--bg); color:var(--fg); resize:vertical; }
select { width:100%; padding:12px; margin:8px 0; border:1px solid var(--fg); border-radius:0; font:inherit; background:var(--bg); color:var(--fg); }
.gefahr { border:2px solid var(--fg); padding:10px; margin-top:8px; }
h1 { display:flex; align-items:center; justify-content:space-between; }
.zahn { width:auto; background:none; color:var(--fg); padding:0 2px; line-height:0; letter-spacing:0; }
.zahn svg { width:21px; height:21px; fill:none; stroke:currentColor; stroke-width:1.6; stroke-linecap:round; stroke-linejoin:round; }
svg.inselbild { width:224px; height:auto; flex:none; display:block; margin:0; fill:none; }
.kopf { margin:2px 0 6px; }
.namenzeile { display:flex; align-items:center; justify-content:space-between; gap:10px; margin:0 0 8px; }
.kontoname { font-size:20px; margin:0; flex:1 1 auto; min-width:0; overflow-wrap:anywhere; } /* 1.105.7: Kontoname über den Reitern, in allen Ansichten */
.kontoname:empty { display:none; }
button.vollknopf { position:absolute; top:4px; right:4px; z-index:2; opacity:.9; width:20px; height:20px; padding:0; display:flex; align-items:center; justify-content:center; background:var(--bg); color:var(--fg); border:1px solid var(--fg); cursor:zoom-in; touch-action:manipulation; }
button.vollknopf svg { width:12px; height:12px; fill:none; stroke:currentColor; stroke-width:2; stroke-linecap:round; stroke-linejoin:round; }
body { padding-top:calc(14px + env(safe-area-inset-top)); padding-bottom:calc(48px + env(safe-area-inset-bottom)); }
.schalter { display:flex; align-items:center; gap:10px; font-size:16px; margin:10px 0; }
.schalter input { width:auto; margin:0; transform:scale(1.4); }

details.abs { border:1px solid var(--fg); margin:0 0 8px; }
details.abs > summary { list-style:none; cursor:pointer; padding:12px 38px 12px 12px; position:relative; font-size:17px; display:flex; flex-direction:column; gap:1px; -webkit-tap-highlight-color:transparent; }
details.abs > summary::-webkit-details-marker { display:none; }
details.abs > summary small { color:var(--mid); font-size:13px; }
details.abs > summary small.warn { color:var(--fg); font-weight:bold; }
details.abs > summary::after { content:""; position:absolute; right:15px; top:50%; width:8px; height:8px; border-right:1.5px solid var(--fg); border-bottom:1.5px solid var(--fg); transform:translateY(-70%) rotate(45deg); transition:transform .15s; }
details.abs[open] > summary::after { transform:translateY(-30%) rotate(-135deg); }
details.abs[open] > summary { background:var(--soft); border-bottom:1px solid var(--fg); }
details.abs > .inh { padding:4px 12px 12px; }
details.abs > summary .ungel { color:var(--ungel); font-weight:800; margin-left:6px; }
:root[data-design="dunkel"] details.abs > summary .ungel { color:var(--ungel-hell); }
.konto { display:flex; align-items:center; gap:8px; border:1px solid var(--fg); padding:8px 10px; margin:8px 0; }
.konto.an { background:var(--soft); }
.konto .kn { flex:1; min-width:0; overflow-wrap:anywhere; }
.konto button { width:auto; padding:8px 10px; font-size:14px; }

/* 1.9.0 */
@media (max-width:400px) { svg.inselbild { width:196px; } }
@media (max-width:350px) { svg.inselbild { width:168px; } }
#intro { position:fixed; inset:0; z-index:10; background:rgba(0,0,0,.6); display:flex; align-items:center; justify-content:center; padding:16px; }
.introbox { background:var(--bg); border:2px solid var(--fg); padding:16px; max-width:420px; width:100%; max-height:90vh; overflow:auto; }
.introbox ol { margin:8px 0; padding-left:20px; }
.introbox li { margin:6px 0; }
.neu { font-size:13px; }
.zul { margin:1px 0 0; font-size:12px; font-weight:normal; }
.zul.on { color:var(--fg); }

/* 1.10.0 */
.kopfknoepfe { display:flex; align-items:center; gap:10px; letter-spacing:0; }
#pushhilfe { white-space:pre-line; }
:root[data-design="dunkel"] { --fg:#f2f2f2; --bg:#000; --mid:#a6a6a6; --soft:#1e1e1e; --dis:#666; }
/* 1.181.4: Kein Farbfilter mehr im Dunkelmodus (invert, brightness und contrast kosten auf einfachen Handys bei jedem Neuzeichnen Leistung). Karte, Minikarte und Legende nutzen die Farbvariablen --k0 bis --k6 (hell: die bisherigen Grautöne, dunkel: deren Umkehrung, also genau das Bild, das der Filter erzeugt hat). Das Inselbild bekommt seine Dunkelfarben aus symbole.js (--ib-*). */
:root { --k0:#000; --k1:#fff; --k2:#ddd; --k3:#bbb; --k4:#999; --k5:#e6e6e6; --k6:#f3f3f3; }
:root[data-design="dunkel"] { --k0:#fff; --k1:#000; --k2:#222; --k3:#444; --k4:#666; --k5:#191919; --k6:#0c0c0c; }
#kar svg, #kmini svg, #klegende svg { fill:var(--k0); } /* Grundfarbe für Elemente ohne eigene Füllung (früher schwarz, im Dunkelmodus durch den Filter weiß) */

/* 1.11.0 */
.zahn { padding:3px; }
.zahn.an { background:var(--fg); color:var(--bg); }

/* 1.12.0 */
html.hulle #kg { display:none; } /* nur Android-Hülle ohne Google-Anmeldung (alte App-Version oder google-services.json fehlt) */

/* 1.13.0 */
.merk { display:flex; align-items:center; gap:10px; margin-top:8px; font-size:15px; }
.merk input { width:15px; height:15px; margin:0; flex:none; accent-color:#2fb344; }

/* 1.14.0 */
.fuss { margin-top:36px; padding-top:12px; border-top:1px solid var(--soft); text-align:center; font-size:13px; color:var(--mid); }
.fuss a { color:var(--fg); }

/* 1.20.0 */
button.gesperrt { background:var(--dis); }
.popbg { position:fixed; left:0; top:0; width:100%; height:100%; box-sizing:border-box; overflow-x:hidden; z-index:12; background:rgba(0,0,0,.6); display:flex; align-items:center; justify-content:center; padding:16px; }
.popbox { box-sizing:border-box; min-width:0; background:var(--bg); border:2px solid var(--fg); padding:16px; max-width:420px; width:100%; max-height:90vh; overflow:auto; }
.popbox p { margin:8px 0 12px; }
.titel { display:inline-flex; align-items:center; }
.punkt { display:inline-block; width:5px; height:5px; border-radius:50%; background:#2fb344; margin-left:8px; flex:none; letter-spacing:0; }
.punkt.aus { background:#d33; }
#offlinebar { margin:0 0 10px; font-size:14px; }
svg.inselbild { cursor:default; } /* 1.104.0: Vollbild nur über den Knopf button.vollknopf */
#undo { position:fixed; left:0; right:0; bottom:0; z-index:8; display:flex; flex-direction:column; gap:8px; padding:10px 14px calc(10px + env(safe-area-inset-bottom)); background:var(--fg); color:var(--bg); }
#undo .undozeile { display:flex; align-items:center; gap:10px; }
#undo span { flex:1; font-size:15px; }
#undo button { width:auto; padding:8px 14px; background:var(--bg); color:var(--fg); }
#vbsperre { position:fixed; inset:0; z-index:10; background:var(--bg); touch-action:none; }
#vollbild { position:fixed; inset:0; z-index:11; background:var(--bg); overflow:hidden; touch-action:none; user-select:none; -webkit-user-select:none; }
#vbinhalt { position:absolute; left:0; top:0; width:100%; height:100%; transform-origin:0 0; }
svg.inselbild .namen { display:none; } /* Beschriftung nie in der Miniatur; in der Vollbild-Insel nur per Knopf */
#vbinhalt.namen svg.inselbild .namen { display:inline; }
.vbk[aria-pressed="true"] { background:var(--fg); color:var(--bg); }
#vbinhalt .detail { display:none; }
#vbinhalt.fein .detail { display:inline; }
#vbinhalt .treffer { cursor:pointer; }
#vbinhalt svg.inselbild { width:100%; height:100%; max-width:none; cursor:grab; }
.vbk { position:absolute; width:46px; height:46px; padding:0; font-size:24px; line-height:1; background:var(--bg); color:var(--fg); border:1px solid var(--fg); touch-action:manipulation; }
#vbzu { top:calc(12px + env(safe-area-inset-top)); right:12px; }
#vbleiste .vbk { position:static; display:block; margin-top:8px; font-size:20px; }
#vbleiste { position:absolute; right:12px; bottom:calc(16px + env(safe-area-inset-bottom)); }
#vbhinweis { position:absolute; left:12px; bottom:calc(16px + env(safe-area-inset-bottom)); max-width:60%; font-size:12px; color:var(--mid); pointer-events:none; }

/* Ladebalken (auch in index.html eingebettet, damit er vor dem Laden dieser Datei erscheint) */
#ladeanzeige { position:fixed; left:0; right:0; top:0; z-index:12; background:var(--bg); color:var(--fg); padding:calc(10px + env(safe-area-inset-top)) 14px 8px; border-bottom:1px solid var(--fg); }
#ladeanzeige .balken { margin:8px 0 0; }

/* 1.25.0 */
button.gesperrt { background:var(--dis); color:var(--bg); border:0; }
h3.gruppe { font-weight:normal; font-size:13px; letter-spacing:.08em; text-transform:uppercase; color:var(--mid); margin:22px 0 6px; padding-bottom:3px; border-bottom:1px solid var(--soft); }
.vorschlag { display:flex; flex-wrap:wrap; gap:6px; margin:-2px 0 8px; }
.vorschlag button { width:auto; padding:6px 12px; font-size:14px; }
.wartet { color:var(--mid); font-size:14px; }
.praemie { margin-top:10px; }
a.knopf { display:block; padding:12px; background:var(--fg); color:var(--bg); text-align:center; text-decoration:none; }

/* 1.25.2 */
.praemie { position:relative; display:block; }
.praemie button.ex { position:absolute; top:0; right:0; width:44px; height:100%; padding:0; background:none; color:var(--bg); font-size:30px; line-height:1; }

/* Kaserne (Stufe 5): Kapazitätszeile und Fortschrittsbalken in der Ausbildungsliste */
#kasinfo { white-space:pre-line; }
td .bau { margin:4px 0 0; }
td .bau .leiste { height:6px; border:1px solid var(--fg); }
td .bau .leiste i { display:block; height:100%; background:var(--fg); width:0; }

/* Stufe 10: Rangliste mit Punkteaufteilung auch auf schmalen Smartphones */
.rlbox { overflow-x:auto; -webkit-overflow-scrolling:touch; }
.rlbox table { min-width:430px; font-size:13px; }
.rlbox th, .rlbox td { padding:4px 3px; }
#rl tr[data-u] { cursor:pointer; }

/* Durchsuchbares Spielhandbuch */
.hilfe-suche { margin:4px 0 14px; }
.hilfe-suche label { display:block; margin:0 0 6px; }
.hilfe-suche input { width:100%; box-sizing:border-box; padding:12px; border:1px solid var(--fg); border-radius:0; font:inherit; color:var(--fg); background:var(--bg); }
.hilfe-suche .klein { margin:6px 0 12px; }
.hilfegruppe { margin:16px 0 20px; }
.hilfegruppe h3 { font-size:14px; font-weight:600; margin:0 0 8px; }
.hilfekapitel[hidden], .hilfegruppe[hidden] { display:none !important; }

/* Durchsuchte Hilfe: Treffer gut sichtbar markieren. */
.hilfe-treffer { color:#d00000; text-decoration:underline; text-decoration-color:#d00000; text-decoration-thickness:2px; text-underline-offset:2px; background:transparent; font-weight:700; }
/* Rangliste: Spaltenüberschriften zum Sortieren (seit 1.46.0) */
.rlbox th .sortk { cursor:pointer; user-select:none; -webkit-user-select:none; display:inline-block; padding:2px 0; white-space:nowrap; }
.rlbox th .sortk.aktiv { color:var(--fg); font-weight:bold; text-decoration:underline; }
.rlbox th .sortk:focus-visible { outline:2px solid var(--fg); outline-offset:1px; }
/* Konten auf diesem Gerät: Namensformular unter der Kontozeile (seit 1.51.0) */
.kblock { margin:8px 0; }
.kblock .konto { margin:0; flex-wrap:wrap; }
.konto .kb { display:flex; gap:6px; flex-wrap:wrap; }
/* 1.51.1: Bei Konten ohne „aktiv“ (drei Knöpfe) schrumpfte der Namensblock auf Breite 0 und der Text stand senkrecht. Jetzt hat er eine Mindestbreite; die Knöpfe rutschen bei Platzmangel in die nächste Zeile. */
.kblock .konto .kn { flex:1 1 140px; min-width:140px; }
.kblock .konto .kb { flex:1 1 auto; }
/* 1.51.1: zweite Menüleiste (Insel, Karte, Forschung …) am Seitenende */
nav.unten { margin:0; } /* seit 1.164.0: Die untere Anzeige steht direkt über der unteren Reiterleiste; der Abstand zur Ansicht kommt von #ansicht */
#ansicht { margin-bottom:16px; }
.teilenknopf { display:block; width:100%; margin:8px 0 12px; padding:6px 8px; font-size:13px; }
.konto .kvor:empty { display:none; }
.nform { border:1px solid var(--fg); border-top:0; padding:8px 10px; }
.nform[hidden] { display:none; }

/* Karte per Finger verschieben (seit 1.57.0): Waagerechtes Wischen verschiebt die Karte; seit 1.107.1 (pan-y) scrollt senkrechtes Wischen die Seite, auch wenn der Finger auf der Karte liegt. Text wird nicht markiert. */
#kar { touch-action: pan-y; user-select: none; -webkit-user-select: none; cursor: grab; }
#kar.zieht { cursor: grabbing; }

/* 1.60.0: Rohstoff-Symbole, Video-Knopf mit Gold-Verlauf, Zoom der Karte */
.rn { display:inline-flex; align-items:center; gap:8px; }
svg.sym.res { width:16px; height:16px; }
button.werbung { display:flex; align-items:center; justify-content:center; flex-wrap:nowrap; white-space:nowrap; gap:4px 7px; width:100%; padding:11px 10px; border:1px solid #ecdc9a; border-radius:16px; color:#4a3500; overflow:hidden;
  background:linear-gradient(180deg,#fffef4 0%,#fffad2 55%,#fff3b4 100%); box-shadow:inset 0 1px 0 rgba(255,255,255,.8), 0 1px 2px rgba(0,0,0,.22); font-size:clamp(12px,3.7vw,15px); line-height:1.2; }
button.werbung:active { background:linear-gradient(180deg,#fff8c8 0%,#fff0a6 100%); }
button.werbung:disabled { opacity:.55; }
button.werbung svg.play { width:26px; height:26px; flex:none; }
button.werbung .wt { flex:none; }
button.werbung .wicons { display:inline-flex; gap:3px; flex:none; }
button.werbung svg.sym.res { width:16px; height:16px; }
/* 1.62.0: farbige Rohstoff-Symbole (Farben stehen im Symbol; keine Linienfarbe des Designs) und Kosten mit Symbolen in den Bau-Kacheln */
svg.sym.res { stroke:none; fill:none; }
.geb .kk { display:flex; flex-wrap:wrap; align-items:center; gap:2px 12px; margin:6px 0 2px; font-size:14px; }
.geb .kk .kr { display:inline-flex; align-items:center; gap:4px; }
.geb .kk svg.sym.res { width:16px; height:16px; }
.geb .klein .kr { display:inline-flex; align-items:center; gap:4px; margin-right:10px; vertical-align:middle; }
.geb .klein svg.sym.res { width:16px; height:16px; }
.nur-sr { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; }
/* 1.66.0: farbige Symbole für Schiffe und Landeinheiten; der Beschleunigen-Knopf nutzt den Stil des Werbeknopfs */
svg.sym.einh { stroke:none; fill:none; }
td svg.sym.einh { width:22px; height:22px; }

/* 1.70.0: Werbeknöpfe im Dunkelmodus dunkler, Häkchen „Mitteilungen eingeschaltet“ grün wie das Vormerk-Kästchen der Inselansicht, Schnellauswahl für das Konto in der Kopfzeile */
:root[data-design="dunkel"] button.werbung { background:linear-gradient(180deg,#4b3c0d 0%,#3a2e09 55%,#2d2407 100%); border-color:#6f5b1a; color:#ffe9a6; box-shadow:inset 0 1px 0 rgba(255,233,166,.14), 0 1px 2px rgba(0,0,0,.6); }
:root[data-design="dunkel"] button.werbung:active { background:linear-gradient(180deg,#3a2e09 0%,#2a2106 100%); }
:root[data-design="dunkel"] button.werbung svg.play path { fill:#2d2407; }
.schalter input.pushk { width:15px; height:15px; transform:none; flex:none; accent-color:#2fb344; }
/* 1.78.0: Zähler in den Reitern und bei „Eingang“ leuchtend rot, aber ohne Schein (der Schein ließ das Rot rosa wirken). Gesättigtes Rot ohne Weißanteil;
   auf dunklem Grund (aktiver Reiter im hellen Design, normaler Reiter im dunklen Design) ein etwas helleres, immer noch reines Rot. */
:root { --ungel:#ff0020; --ungel-hell:#ff2a3c; }
.hauptnav .ungel, .pfeile button.zweit .ungel { color:var(--ungel); font-weight:800; }
nav button.an .ungel, .pfeile button:not(.zweit) .ungel { color:var(--ungel-hell); font-weight:800; }
:root[data-design="dunkel"] .hauptnav .ungel, :root[data-design="dunkel"] .pfeile button.zweit .ungel { color:var(--ungel-hell); }
:root[data-design="dunkel"] nav button.an .ungel, :root[data-design="dunkel"] .pfeile button:not(.zweit) .ungel { color:var(--ungel); }
.kopfknoepfe { position:relative; }
.kontomenue { position:absolute; right:0; top:calc(100% + 12px); z-index:11; min-width:190px; max-width:72vw; display:flex; flex-direction:column; background:var(--bg); border:1px solid var(--fg); box-shadow:0 4px 14px rgba(0,0,0,.35); font-size:16px; letter-spacing:0; }
.kmeintrag { width:100%; padding:12px 14px; text-align:left; background:var(--bg); color:var(--fg); border:0; border-bottom:1px solid var(--soft); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.kmeintrag:last-child { border-bottom:0; }
.kmeintrag.an { background:var(--soft); font-weight:bold; }
.kmeintrag .kzeit { display:block; font-size:12px; font-weight:normal; opacity:.75; margin-top:2px; overflow:hidden; text-overflow:ellipsis; }
.kmeintrag .kzeit:empty { display:none; }

/* 1.71.0: Einheiten-Symbole in Forschung (Reihe unter dem Titel) und Fahrten (vor jedem Eingabefeld) */
.einhreihe { display:flex; flex-wrap:wrap; gap:6px; margin:4px 0 2px; }
.einhreihe svg.sym.einh { width:24px; height:24px; }
label.klein svg.sym.einh { width:20px; height:20px; }
/* Einheiten-Symbole im Fließtext (seit 1.72.0): Symbol und Wort bleiben zusammen, das Symbol steht auf Schrifthöhe. */
.sw { white-space:nowrap; }
svg.sym.einh.imtext { width:1.25em; height:1.25em; vertical-align:-0.3em; margin:0 .15em 0 0; display:inline-block; }
/* Wappen der Allianzen (seit 1.72.0): feste Farben im Symbol, keine Linienfarbe des Themas. */
svg.sym.wappen { stroke:none; fill:none; width:26px; height:26px; }
svg.sym.wappen.gross { width:44px; height:44px; }
.geb b svg.sym.wappen { width:22px; height:22px; vertical-align:middle; margin:0 4px; }
td svg.sym.wappen { width:22px; height:22px; vertical-align:middle; margin-right:6px; }
.wk { display:flex; align-items:center; gap:10px; }
.wappenwahl { display:grid; grid-template-columns:repeat(6, 1fr); gap:6px; margin:8px 0; }
.wappenwahl button { padding:5px; display:flex; justify-content:center; align-items:center; }
.wappenwahl button svg.sym.wappen { width:34px; height:34px; margin:0; }
.wappenwahl button.an { border-width:3px; padding:3px; }

/* 1.76.0: Symbol des benötigten Gebäudes vor dem Namen in „Benötigt …“ (Kacheln von Gebäuden, Forschung und Hafen): auf Schrifthöhe wie die Einheiten-Symbole im Text. */
svg.sym.imtext { width:1.3em; height:1.3em; vertical-align:-0.32em; margin:0 .18em 0 0; display:inline-block; }
/* 1.76.0: Der Name über der Insel blinkt einmal kurz auf (beim Öffnen der App und nach dem Kontowechsel; Dauer BLITZ_MS in insel.js). */
@keyframes namenblitz { 0% { opacity:.15; } 30% { opacity:1; color:#ffb400; text-shadow:0 0 6px #ffb400, 0 0 14px rgba(255,180,0,.85); } 100% { opacity:1; color:inherit; text-shadow:none; } }
.kontoname.blitz { animation:namenblitz 1.1s ease-out 1; }
@media (prefers-reduced-motion: reduce) { .kontoname.blitz { animation:none; } }
/* Angeschwemmte Kiste (seit 1.77.0): treibt 20 Sekunden auf dem Meer neben der Insel; Tipp = bergen */
.bildbox { position:relative; flex:none; width:100%; line-height:0; }
.kopf svg.inselbild { width:100%; } /* 1.99.3: Inselbild füllt die ganze Breite; Text steht darüber, Bevölkerung darunter */
.kopf details.abs { margin:0; }
button.kiste { position:absolute; z-index:3; width:46px; height:46px; padding:0; border:0; background:transparent; color:var(--fg); cursor:pointer; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:2px; -webkit-tap-highlight-color:transparent; }
button.kiste.einflug { animation:kisteein 1.4s ease-out 1; }
button.kiste.p0 { left:0; top:0; --von:-70px; } button.kiste.p1 { right:0; top:0; --von:70px; }
button.kiste.p2 { left:0; bottom:0; --von:-70px; } button.kiste.p3 { right:0; bottom:0; --von:70px; }
button.kiste .kk { display:block; width:36px; height:32px; animation:kistewippen 2.6s ease-in-out infinite alternate; }
button.kiste svg { width:100%; height:100%; display:block; fill:var(--bg); stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }
button.kiste:disabled { opacity:.6; cursor:default; background:transparent; }
button.kiste .kbalken { display:block; width:30px; height:3px; border:1px solid var(--fg); }
button.kiste .kbalken b { display:block; height:100%; background:var(--fg); }
button.kiste.geht { animation:kisteblink .7s steps(2,jump-none) infinite; }
@keyframes kisteein { from { opacity:0; transform:translateX(var(--von)) rotate(-14deg); } to { opacity:1; transform:none; } }
@keyframes kistewippen { from { transform:translateY(-2px) rotate(-4deg); } to { transform:translateY(2px) rotate(4deg); } }
@keyframes kisteblink { from { opacity:1; } to { opacity:.35; } }
@media (prefers-reduced-motion: reduce) { button.kiste, button.kiste.einflug, button.kiste .kk, button.kiste.geht { animation:none; } }
/* Klick-Ertrag (seit 1.100.0): Das Rohstoff-Symbol springt an der Tippstelle hoch und dreht sich wie eine geworfene Münze (äußeres Element: Sprung, inneres <i>: Drehung um die waagerechte Achse). */
.muenze { position:fixed; width:20px; height:20px; margin:-10px 0 0 -10px; pointer-events:none; z-index:12; animation:muenzesprung .75s forwards; }
.muenze i { display:block; width:100%; height:100%; animation:muenzedreh .75s linear forwards; }
.muenze svg.sym.res { width:100%; height:100%; display:block; }
@keyframes muenzesprung {
  0% { transform:translate(0,0); opacity:1; animation-timing-function:cubic-bezier(.2,.7,.4,1); }
  45% { transform:translate(calc(var(--dx) * .5),-96px); opacity:1; animation-timing-function:cubic-bezier(.6,0,.8,.4); }
  88% { transform:translate(var(--dx),-6px); opacity:1; }
  100% { transform:translate(var(--dx),0); opacity:0; }
}
/* Händler-Tausch (seit 1.102.0): Nach „OK“ purzeln Rohstoffsymbole in das Lager (effekte.js, Web Animations). */
.purzel { position:fixed; width:26px; height:26px; margin:-13px 0 0 -13px; pointer-events:none; z-index:13; }
.purzel i { display:block; width:100%; height:100%; }
.purzel svg.sym.res { width:100%; height:100%; display:block; }
svg.inselbild { touch-action:manipulation; } /* schnelle Tipps auf Rohstoffgebäude lösen keinen Doppeltipp-Zoom der Seite aus */
@keyframes muenzedreh { from { transform:perspective(180px) rotateX(0deg); } to { transform:perspective(180px) rotateX(1080deg); } }
.muenze-text { position:fixed; transform:translateX(-50%); pointer-events:none; z-index:12; width:max-content; max-width:70vw; text-align:center; padding:2px 10px; border-radius:10px; font-weight:bold; font-size:.9rem; background:var(--fg); color:var(--bg); animation:muenzetext 1.9s ease-out forwards; }
@keyframes muenzetext { from { opacity:1; margin-top:-40px; } 70% { opacity:1; } to { opacity:0; margin-top:-100px; } }
@media (prefers-reduced-motion: reduce) { .muenze, .muenze i { animation:none; } .muenze { margin-top:-45px; } .muenze-text { animation:none; margin-top:-70px; } }
/* Seit 1.80.0: Zahl im Reiter in rotem Kreis mit weißer Schrift (statt Klammern) */
.zahlkreis { display:inline-block; box-sizing:border-box; min-width:14px; height:14px; padding:0 4px; border-radius:7px; background:var(--ungel); color:#fff; font-size:9px; font-weight:800; line-height:14px; text-align:center; vertical-align:middle; }
nav button.an .zahlkreis { background:var(--ungel-hell); color:#fff; }

/* 1.83.0: Erstbau-Bonus in den Kacheln farbig (hell: warmes Braun-Orange, dunkel: sanftes Gold), Hafen-Überschrift mit Symbol, Zeile „Bau fertig“ in der Kachel */
:root { --erstbau:#9a5a00; }
:root[data-design="dunkel"] { --erstbau:#e9be5c; }
.erstbau { color:var(--erstbau); font-weight:bold; }
h2.ortkopf { display:flex; align-items:center; gap:10px; }
h2.ortkopf svg.sym { width:24px; height:24px; }

/* 1.87.0: Welten (Umschalter und Eintragungs-Hinweis; ohne offene Welt unsichtbar) */
#weltmenue[hidden], #kontomenue[hidden] { display:none; }
.weltwahl { display:flex; flex-wrap:wrap; gap:8px; margin-bottom:8px; }
.weltwahl button { width:auto; flex:1 1 40%; }
.weltwahl button.an { background:var(--fg); color:var(--bg); }
.weltbox { border:1px solid var(--fg); padding:12px 14px; margin-bottom:12px; }
.weltbox p { margin:6px 0; }
.weltbox button { margin-top:6px; }
.weltbox { position:relative; }
.weltbox > b { display:block; padding-right:44px; }
/* ✕ an Hinweisfenstern (seit 1.99.2) */
.hinweiszeile { display:flex; gap:6px; margin-bottom:12px; }
.hinweiszeile[hidden] { display:none; }
.hinweiszeile > button { margin:0; }
.hinweiszeile > button:first-child { flex:1; }
button.hzu { flex:none; width:44px; padding-left:0; padding-right:0; }
.weltbox button.hzuoben { position:absolute; top:6px; right:6px; margin:0; width:36px; height:36px; padding:0; }
/* Bevölkerungszeile der Insel immer in einer Zeile */
.einwzeile { font-size:clamp(10px,3.2vw,12.5px); white-space:pre-line; margin:0 0 8px; }
.einwzeile:empty { display:none; }

/* 1.94.0: Laufende Aufträge (Bau und Forschung) sind in Schwarz-Weiß hervorgehoben: die Zeile in der Auftragstabelle ist umgekehrt (Schrift hell auf schwarz, im Dunkelmodus umgekehrt),
   die Kachel des Gebäudes bzw. der Technologie hat einen dicken Rahmen und den weichen Grauton. Wartende Aufträge bleiben normal. */
tr.laeuft td { background:var(--fg); color:var(--bg); }
tr.laeuft td svg { filter:invert(1); }
.geb.laeuft { border-width:4px; background:var(--soft); padding:7px; }
.geb.laeuft .gk .gn { font-weight:bold; }
/* Rohstoff-Vorrat blinkt nach dem Bestätigen der Kiste (seit 1.94.0) */
td.plus { animation:kisteplus 2.4s ease-out 1; }
@keyframes kisteplus { 0%,40% { background:var(--fg); color:var(--bg); } 100% { background:transparent; color:inherit; } }
@media (prefers-reduced-motion:reduce) { td.plus { animation:none; font-weight:bold; } }
/* Laufender Auftrag in der Forschung: Fortschrittsbalken wie in den Gebäudekacheln (seit 1.94.0) */
.bau { margin:6px 0 8px; font-size:14px; }
.bau .leiste { height:6px; border:1px solid var(--fg); margin-top:4px; }
.bau .leiste i { display:block; height:100%; background:var(--fg); width:0; }
/* Auftrag abbrechen: kleines „✕“ hinter jedem Auftrag (seit 1.98.0); erbt die Farbe der Zeile, damit es auch in der hervorgehobenen laufenden Zeile sichtbar bleibt */
td.x { width:1%; white-space:nowrap; }
button.x { width:auto; min-width:26px; padding:1px 6px; background:transparent; color:inherit; border:1px solid currentColor; font-size:12px; line-height:1.2; } /* 1.99.3: kleiner */
button.x:disabled { background:transparent; opacity:.45; }

/* 1.99.5: Kopfangaben der Insel in zwei Spalten und zwei Zeilen */
/* 1.99.5: Werbeplätze im Spielfluss; die Höhe setzt die Android-Hülle über werbung.js (ohne geladene Anzeige 0) */
.werbeplatz { height:0; overflow:hidden; margin:0; padding:0; }
.werbeplatz[data-slot="oben"] { height:var(--wh-oben,0px); }
.werbeplatz[data-slot="mitte"] { height:var(--wh-mitte,0px); }
.werbeplatz[data-slot="unten"] { height:var(--wh-unten,0px); }
.werbeplatz[data-slot="lager"] { height:var(--wh-lager,0px); }
.werbeplatz[data-slot="kaserne"] { height:var(--wh-kaserne,0px); }
.werbeplatz[data-slot="karte"] { height:var(--wh-karte,0px); }
.werbeplatz[data-slot="segel"] { height:var(--wh-segel,0px); }
.werbeplatz[data-slot="bogen"] { height:var(--wh-bogen,0px); }
.werbeplatz[data-slot="handel"] { height:var(--wh-handel,0px); }
.werbeplatz[data-slot="schiffe"] { height:var(--wh-schiffe,0px); }
.werbeplatz[data-slot="bevoelkerung"] { height:var(--wh-bevoelkerung,0px); }
.werbeplatz[data-slot="inseln"] { height:var(--wh-inseln,0px); }

/* 1.101.0: Wanderhändler auf der Zeile „Vorräte“ */
/* 1.104.0: Die Überschrift „Vorräte“ ist nur noch hoch, solange der Händler unterwegs ist (Klasse haendlerda, haendler.js); sonst keine große Lücke zum Werbebanner darüber. */
h2.vorkopf { position:relative; margin-top:12px; display:flex; align-items:flex-end; overflow:hidden; transition:min-height .35s ease; }
h2.vorkopf.haendlerda { min-height:58px; }
@media (prefers-reduced-motion: reduce) { h2.vorkopf { transition:none; } }
button.haendler { position:absolute; bottom:0; left:-80px; z-index:3; width:76px; height:48px; padding:0; border:0; background:transparent; color:var(--fg); cursor:pointer; animation:haendlerlauf 30s linear 1 forwards; animation-delay:var(--vorlauf, 0s); }
button.haendler svg { display:block; width:100%; height:100%; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; animation:haendlerwippen .5s ease-in-out infinite alternate; }
@keyframes haendlerlauf { from { left:-80px; } to { left:100%; } }
@keyframes haendlerwippen { from { transform:translateY(0); } to { transform:translateY(-2px); } }
@media (prefers-reduced-motion: reduce) { button.haendler svg { animation:none; } }
/* 1.105.3: Konfettiregen beim Aufstieg auf Platz 1 der Rangliste (effekte.js, Web Animations) */
.konfetti { position:fixed; top:0; left:0; pointer-events:none; z-index:14; border-radius:1px; }
/* 1.105.4: Statuszeile (Welt · Hauptinsel · Schutz · Inseln) in einer Zeile unter der Kopfzeile, in allen Ansichten; die Schrift schrumpft mit der Breite */
.statuszeile { font-size:clamp(10px,3.1vw,13px); color:var(--mid); white-space:pre-line; text-align:right; margin:0 0 0 auto; flex:0 1 auto; max-width:60%; }

/* 1.106.1: Beschriftung und Eingabefeld gehören sichtbar zusammen. Die Beschriftung steht fett und mit Balken links direkt über ihrem Feld;
   der Abstand zwischen zwei Paaren ist deutlich größer als der zwischen Beschriftung und Feld. */
.geb label.klein, .popbox label:not(.schalter):not(.merk) { display:block; margin:16px 0 0; padding-left:8px; border-left:3px solid var(--fg); color:var(--fg); font-weight:600; }
.geb label.klein + input, .geb label.klein + select, .popbox label:not(.schalter):not(.merk) + input, .popbox label:not(.schalter):not(.merk) + select { margin-top:4px; }
.geb label.klein:first-child { margin-top:8px; }
/* 1.113.0: Karte – Sprungknöpfe, Koordinaten, Minikarte */
.kmeine { margin:0 0 8px; }
.kmeine:empty { display:none; }
.kmeineliste { display:flex; flex-wrap:nowrap; gap:6px; overflow-x:auto; -webkit-overflow-scrolling:touch; }
.kmeineliste button { width:auto; flex:none; white-space:nowrap; padding:8px 12px; }
#kmini { width:100%; max-width:200px; margin:10px auto 0; touch-action:none; user-select:none; -webkit-user-select:none; cursor:pointer; }
#kmini svg { width:100%; height:auto; display:block; }

/* 1.115.2: Minikarte links, Legende mit Symbolen rechts daneben; Pfeiltasten entfallen, Gedrückthalten verschiebt in alle Richtungen */
.kzeile { display:flex; gap:8px; align-items:flex-start; margin:8px 0; }
.kzeile #kmini { flex:0 0 42%; width:42%; max-width:170px; margin:0; }
.kleg { display:flex; align-items:center; gap:4px; margin:0 0 5px; }
.kleg svg { flex:0 0 24px; }
.kleg span { min-width:0; overflow-wrap:anywhere; }
/* 1.163.0: Karte oben, Ausschnittzeile darüber; Minikarte links neben der Infokarte; eine Suchzeile; Legende eingeklappt */
#kinfo { margin:0 0 4px; font-size:12px; }
/* 1.172.9: linke Spalte: Minikarte, darunter die Fahrzeit-Kachel (füllt den freien Platz neben der Infokarte) */
.kspalte { flex:0 0 42%; width:42%; max-width:170px; display:flex; flex-direction:column; gap:8px; }
.kspalte #kmini { flex:none; width:100%; max-width:none; }
#kfahrz { border:1px solid var(--fg); padding:6px 8px; font-size:12px; line-height:1.4; color:var(--fg); overflow-wrap:anywhere; }
#kfahrz[hidden] { display:none; }
#kfahrz .sw { white-space:normal; } /* seit 1.176.4: Schiffsnamen mit mehreren Wörtern (Kleine Handelskogge) dürfen in der schmalen Spalte umbrechen; sonst ragt der Text aus dem Rahmen */
#kfahrz .klein { margin:2px 0 0; }
#kdetail { flex:1 1 0; min-width:0; border:1px solid var(--fg); padding:6px 8px; font-size:12.5px; line-height:1.4; color:var(--fg); overflow-wrap:anywhere; }
#kdetail button { padding:8px; font-size:13px; }
.ksuchzeile { display:flex; gap:6px; align-items:stretch; margin:0 0 6px; }
.ksuchzeile input { flex:1 1 0; min-width:0; margin:0; }
.ksuchzeile button { flex:none; width:auto; padding:0 20px; margin:0; white-space:nowrap; }
#ktreffer:empty { display:none; }
details.kleg-box { margin:8px 0; }
details.kleg-box > summary { font-size:14px; padding:9px 38px 9px 10px; }
#klegende { display:grid; grid-template-columns:1fr 1fr; gap:0 10px; padding:8px 10px 4px; font-size:11px; line-height:1.25; margin:0; }
#kar.halten { touch-action:none; outline:2px solid var(--fg); outline-offset:1px; cursor:grabbing; }

/* Flaschenpost (seit 1.116.0): Papyrusrolle als eigener Dialog, Farben bewusst unabhängig vom Hell-/Dunkelmodus (ein Gegenstand, kein Teil der Oberfläche) */
.fpbg { position:fixed; inset:0; z-index:20; background:rgba(0,0,0,.62); display:flex; align-items:center; justify-content:center; padding:12px; overflow:auto; }
.fprolle { position:relative; width:min(340px,100%); aspect-ratio:340/420; container-type:inline-size; margin:auto; animation:fpauf .45s ease-out 1; transform-origin:50% 0; }
@keyframes fpauf { from { transform:scaleY(.12); opacity:0; } to { transform:scaleY(1); opacity:1; } }
@media (prefers-reduced-motion:reduce) { .fprolle { animation:none; } }
.fpbild { position:absolute; inset:0; width:100%; height:100%; display:block; }
.fptext { position:absolute; left:17%; right:17%; top:14.5%; bottom:25%; color:#3b2410; font-family:Georgia,"Times New Roman",serif; text-align:center; display:flex; flex-direction:column; align-items:center; }
.fptext h2 { margin:0; padding:0; border:0; font-style:italic; font-weight:700; font-size:20px; font-size:6.3cqw; line-height:1.15; color:#3b2410; letter-spacing:0; }
.fpzier { display:block; width:36%; height:auto; margin:1.5cqw 0; flex:none; }
.fpsatz { margin:0; font-size:13px; font-size:3.95cqw; line-height:1.38; color:#3b2410; }
svg.fpschiff { display:block; flex:1 1 0; min-height:0; width:100%; margin:1cqw 0 0; }
.fplabel { margin-top:auto; font-size:11px; font-size:3.35cqw; opacity:.85; }
button.fpcode { width:auto; min-width:46cqw; margin:1cqw 0 0; padding:1.6cqw 3cqw; background:rgba(122,78,28,.12); color:#3b2410; border:1.4px solid #5A3510; outline:1px solid rgba(90,53,16,.6); outline-offset:-4px; border-radius:3px; font-family:"Courier New",monospace; font-weight:700; font-size:14px; font-size:4.3cqw; letter-spacing:.12em; }
button.fpcode:disabled { background:rgba(122,78,28,.12); color:#3b2410; }
.fpknoepfe { position:absolute; left:15.3%; top:77.4%; width:55%; display:flex; gap:2.4cqw; }
button.fpknopf { width:auto; flex:1.55; padding:1.9cqw 1cqw; background:#6B4423; color:#F6E7BB; border:1.2px solid #3b2410; border-radius:99px; font:12px/1.2 sans-serif; font-size:3.5cqw; box-shadow:inset 0 0 0 2px rgba(201,160,101,.35); }
button.fpknopf.fpzweit { flex:1; background:transparent; color:#4A2A0C; border:1.4px solid #6B4423; box-shadow:none; }
button.fpknopf:disabled { opacity:.55; background:#6B4423; color:#F6E7BB; }
button.fpknopf.fpzweit:disabled { background:transparent; color:#4A2A0C; }
button.fpzu { position:absolute; top:3.4%; right:9%; width:7.4cqw; min-width:24px; height:7.4cqw; min-height:24px; padding:0; border-radius:50%; background:rgba(60,36,16,.2); color:#F6E7BB; border:0; font:700 20px/1 sans-serif; font-size:5.4cqw; }
svg.fpflasche { display:block; width:84px; height:38px; margin:0 auto 6px; color:#2b2b2b; }
:root[data-design="dunkel"] svg.fpflasche { color:#ddd; }
/* 1.145.0: Spielhilfe mit drei getrennten Einträgen (Kurzeinstieg, Ausführliches Tutorial, Regeln nachschlagen) */
.hilfemenue { margin:4px 0 8px; }
button.hilfezeile { display:flex; align-items:center; gap:12px; width:100%; text-align:left; padding:14px 12px; margin:0 0 8px; background:var(--bg); color:var(--fg); border:1px solid var(--fg); }
.hilfeicon { flex:0 0 auto; width:44px; height:44px; display:flex; align-items:center; justify-content:center; background:var(--soft); }
.hilfeicon svg { width:24px; height:24px; fill:none; stroke:currentColor; stroke-width:1.7; stroke-linecap:round; stroke-linejoin:round; }
.hilfetext { flex:1 1 auto; min-width:0; display:flex; flex-direction:column; gap:3px; }
.hilfetext b { font-size:17px; }
.hilfetext > span { color:var(--mid); font-size:14px; line-height:1.35; }
.hilfebadge { align-self:flex-start; margin-top:4px; padding:3px 10px; border-radius:999px; font-style:normal; font-size:13px; font-weight:bold; color:#12803a; background:#e3f4e9; }
:root[data-design="dunkel"] .hilfebadge { color:#3ddc84; background:#12301f; }
.hilfepfeil { flex:0 0 auto; width:8px; height:8px; border-right:1.5px solid var(--mid); border-top:1.5px solid var(--mid); transform:rotate(45deg); margin-right:4px; }
.hilfeansicht h3 { margin:14px 0 6px; }
.hilfeansicht h4 { margin:16px 0 4px; font-size:16px; }
.hilfeansicht p { margin:6px 0; line-height:1.45; }
.hilfeliste { margin:6px 0; padding-left:20px; }
.hilfeliste li { margin:4px 0; line-height:1.4; }
.hilfetipp { margin:18px 0 12px; padding:10px 12px; border:1px solid var(--fg); background:var(--soft); }
.hilfetipp p { margin:4px 0 0; }
details.hilfetut > summary { font-weight:bold; }
button.hilfezurueck { margin:6px 0 10px; }
#intro .introbox p { margin:10px 0; }
/* 1.145.7: Schiffstabelle im Hafen passt auch bei großer Systemschrift in die Breite (Schiffsname bricht um, engere Zellen); Seite folgt beim Wischen dem Finger (touch-action, siehe wischNavigation in app.js) */
table.flotte td, table.flotte th { padding:7px 6px; }
table.flotte th { font-size:12px; }
table.flotte td:first-child { overflow-wrap:anywhere; hyphens:auto; }
table.flotte .rn { gap:6px; }
#ansicht { touch-action:pan-y pinch-zoom; }
/* Piraten-Dublonen, Oberfläche B (seit 1.152.0): Umschaltung Gesamt | Dublonen in der Rangliste */
.rlumschalt { display:flex; gap:8px; justify-content:center; margin:6px 0; }
.rlumschalt button.aktiv { background:var(--fg); color:var(--bg); }
.gruppe2 { margin:14px 0 2px; font-size:13px; font-weight:700; text-transform:uppercase; letter-spacing:.04em; opacity:.7; }

/* 1.160.0: Schatzmeister des Atolls (Regelwerk 35.20), reine Optik. Name gold (hell dunkles Gold, dunkel sanftes Gold), Rahmen und Flagge am Inselbild; die Karten-SVGs nutzen seit 1.181.4 die Farbvariablen statt eines Filters. */
:root { --schatz:#9a6b00; }
:root[data-design="dunkel"] { --schatz:#e9be5c; }
.schatzname { color:var(--schatz); font-weight:bold; }
.bildbox.schatz { outline:3px solid var(--schatz); outline-offset:-3px; }
.schatzflagge { position:absolute; left:6px; top:4px; z-index:2; padding:1px 8px; line-height:1.4; font-size:13px; font-weight:bold; background:var(--bg); color:var(--schatz); border:1px solid var(--schatz); }
svg text.schatzgold { fill:var(--schatz); }
/* Dublonen-Münze (seit 1.162.0): Die Münzfarben stehen fest im Symbol und sind in beiden Designs gleich (seit 1.181.4 ohne Filter, deshalb keine gegengleichen Sonderfarben mehr). */

/* Aktive Insel (seit 1.170.7): pulsierender Ring auf der Karte, in der Minikarte und in der Legende */
.kpuls { transform-box: fill-box; transform-origin: center; animation: kpuls 2s ease-out infinite; pointer-events: none; }
.kpuls.p2 { animation-delay: -1s; }
@keyframes kpuls { from { transform: scale(1); opacity: .9; } to { transform: scale(1.8); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .kpuls { animation: none; transform: scale(1.25); opacity: .8; } .kpuls.p2 { display: none; } }

/* Ladeanzeige der Knöpfe (seit 1.170.7, util.js mitLadeanzeige) */
button.laedt { cursor: progress; }
.spin { display: inline-block; width: .9em; height: .9em; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; margin-right: 8px; vertical-align: -.12em; animation: laedtdreh .8s linear infinite; }
@keyframes laedtdreh { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spin { animation-duration: 2.4s; } }
.dubpruef { display: flex; align-items: center; font-weight: 600; }
/* Berichte (seit 1.170.7): jeder Bericht ist eingeklappt, bis man ihn antippt */
/* 1.170.9: Verluste in Berichten: feindliche (vf, grün) und eigene (ve, rot) */
.vf { color:#1a7f37; font-weight:600; } .ve { color:#c62828; font-weight:600; }
:root[data-design="dunkel"] .vf { color:#4ade80; } :root[data-design="dunkel"] .ve { color:#ff6b6b; }
details.bdet > summary { list-style: none; cursor: pointer; position: relative; padding-right: 26px; -webkit-tap-highlight-color: transparent; }
details.bdet > summary::-webkit-details-marker { display: none; }
details.bdet > summary .klein { margin-bottom: 0; }
details.bdet[open] > summary .klein { margin-bottom: 8px; }
details.bdet > summary::after { content: ""; position: absolute; right: 4px; top: 6px; width: 8px; height: 8px; border-right: 1.5px solid var(--fg); border-bottom: 1.5px solid var(--fg); transform: rotate(45deg); transition: transform .15s; }
details.bdet[open] > summary::after { transform: translateY(4px) rotate(-135deg); }

/* ---- 1.172.2: Tippflächen mindestens 44 px (Android empfiehlt 48 dp); die Optik bleibt, nur die Trefferfläche wächst ---- */
:root { --tipp:44px; }
.kopfknoepfe { gap:2px; }
.zahn { min-width:var(--tipp); min-height:var(--tipp); display:inline-flex; align-items:center; justify-content:center; box-sizing:border-box; }
h1 .kopfknoepfe { margin:-8px -8px -8px 0; }                 /* größere Knöpfe verlängern die Kopfzeile nicht */
button.vollknopf { overflow:visible; }
button.vollknopf::after { content:""; position:absolute; top:-12px; right:-12px; bottom:-12px; left:-12px; }
.rlbox th .sortk { position:relative; }
.rlbox th .sortk::after { content:""; position:absolute; left:-3px; right:-3px; top:-14px; bottom:-14px; }
.fuss a { display:inline-block; padding:15px 4px; }
.fuss { padding-top:0; }
.schalter, .merk { min-height:var(--tipp); margin-top:0; margin-bottom:0; }

/* ---- 1.172.2: Rangliste auf schmalen Handys: Rang und Name bleiben links stehen, ein Schatten rechts zeigt, dass die Tabelle weiterläuft ---- */
.rlwrap { position:relative; }
.rlwrap.mehr::after { content:""; position:absolute; top:0; right:0; bottom:0; width:22px; pointer-events:none; z-index:3; background:linear-gradient(to left, rgba(128,128,128,.6), rgba(128,128,128,0)); }
.rlbox th:nth-child(1), .rlbox td:nth-child(1), .rlbox th:nth-child(2), .rlbox td:nth-child(2) { position:sticky; z-index:1; background:var(--bg); }
/* 1.173.6: getrennte Rahmen statt border-collapse, sonst wandern die Linien der festgesetzten Spalten nicht mit und beim Wischen scheinen Streifen der darunter laufenden Spalten durch */
.rlbox table { border-collapse:separate; border-spacing:0; border-top:1px solid var(--fg); }
.rlbox th, .rlbox td { border-width:0 1px 1px 0; }
.rlbox th:nth-child(1), .rlbox td:nth-child(1) { border-left-width:1px; }
.rlbox th:nth-child(1), .rlbox td:nth-child(1) { left:0; width:58px; min-width:58px; max-width:58px; box-sizing:border-box; }
.rlbox th:nth-child(2), .rlbox td:nth-child(2) { left:58px; box-shadow:2px 0 0 var(--fg), 6px 0 6px -4px rgba(128,128,128,.6); }
.rlbox th:nth-child(1), .rlbox th:nth-child(2) { background:var(--soft); }
.rlbox tr.ich td:nth-child(1), .rlbox tr.ich td:nth-child(2) { background:var(--soft); }

/* ---- 1.172.2: Inselansicht: Gebäude als kompakte Zeilen in Gruppen, Beschreibung klappt auf ---- */
.gfilter { margin:2px 0 4px; }
.gfilter button { width:auto; flex:1 1 0; max-width:50%; min-height:var(--tipp); }
h3.gruppe[hidden], .geb[hidden] { display:none; }
.geb { padding:4px 10px 10px; margin-bottom:8px; }
.geb.laeuft { padding:1px 7px 7px; }
button.gauf { display:flex; align-items:center; justify-content:space-between; gap:10px; width:100%; min-height:var(--tipp); padding:4px 0; background:none; color:var(--fg); border:0; text-align:left; font:inherit; font-size:17px; }
button.gauf .gk { flex:1; min-width:0; }
button.gauf .gk { flex-wrap:wrap; gap:0 10px; } /* 1.172.8: lange Bestandszeile (Hafen/Kaserne) bricht unter den Namen, statt ihn auf Buchstabenbreite zu quetschen */
button.gauf .gn { flex:1 1 auto; min-width:8em; overflow-wrap:break-word; }
button.gauf .gs { flex:0 1 auto; min-width:0; }
.gpfeil { flex:none; color:var(--mid); transition:transform .2s; }
.geb.offen .gpfeil { transform:rotate(180deg); }
.gzeile { display:flex; align-items:center; justify-content:space-between; gap:10px; margin-top:2px; }
.gzeile .kk { flex:1 1 auto; min-width:0; margin:0; }
.gzeile > button { width:auto; flex:none; max-width:48%; min-height:var(--tipp); padding:8px 12px; font-size:15px; line-height:1.2; }
/* 1.172.3: Forschung, Hafen und Fahrten nutzen dieselben eingeklappten Kacheln; im Hafen steht die Menge in einer Zeile über Kosten und Knopf */
.gmenge { display:flex; align-items:center; justify-content:space-between; gap:10px; margin-top:2px; }
.gmenge label { flex:1 1 auto; min-width:0; color:var(--mid); font-size:14px; }
.gmenge input { flex:none; width:84px; margin:0; padding:8px 10px; }
.geb > button[data-is] { margin-top:6px; } /* Inselforschung: Knöpfe unter der Kostenzeile */
.geb .gdetail { display:none; margin-top:6px; padding-top:6px; border-top:1px solid var(--soft); }
.geb.offen .gdetail, .geb.hervor .gdetail { display:block; }
@media (prefers-reduced-motion:reduce) { .gpfeil { transition:none; } }
/* Forum.
   Nur Variablen verwenden (--fg --bg --mid --soft --dis --ungel), damit der dunkle Entwurf (data-design="dunkel") ohne Zusatzregeln stimmt. */
svg.fo-i { width:16px; height:16px; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; vertical-align:-3px; flex:none; }
.fo-leise { width:auto; padding:4px 8px; background:none; color:inherit; border:0; font:inherit; cursor:pointer; }
.fo-kopf { display:flex; align-items:center; gap:10px; }
.fo-kopf h2 { flex:1; margin:0; border:0; padding:0; }
.fo-kopf button { width:auto; padding:8px 12px; }
.fo-such { position:relative; margin-top:10px; }
.fo-such svg { position:absolute; left:10px; top:50%; margin-top:-8px; color:var(--mid); }
.fo-such input { padding-left:34px; margin:0; }
.fo-chips { display:flex; flex-wrap:wrap; gap:6px; margin:8px 0; }
.fo-chip { width:auto; padding:5px 10px; font-size:13px; background:var(--bg); color:var(--fg); border:1px solid var(--dis); }
.fo-chip.an { background:var(--fg); color:var(--bg); border-color:var(--fg); }
.fo-leiste { display:flex; justify-content:space-between; align-items:center; font-size:13px; color:var(--mid); }
.fo-leiste button { width:auto; padding:0; background:none; color:var(--mid); border:0; text-decoration:underline; font-size:13px; }
.fo-grp { font-size:12px; letter-spacing:.06em; color:var(--mid); margin:14px 0 2px; padding-bottom:3px; border-bottom:1px solid var(--soft); }
.fo-th { padding:11px 0 11px 9px; border-bottom:1px solid var(--soft); border-left:3px solid transparent; cursor:pointer; }
.fo-th.neu { border-left-color:var(--fg); }
.fo-tt { font-weight:700; display:flex; gap:6px; align-items:flex-start; overflow-wrap:anywhere; }
.fo-tt > span { flex:1; }
.fo-vor { color:var(--mid); font-size:14px; margin:2px 0 6px; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; overflow-wrap:anywhere; }
.fo-meta { display:flex; flex-wrap:wrap; gap:3px 10px; align-items:center; font-size:13px; color:var(--mid); }
.fo-av { width:22px; height:22px; border-radius:50%; border:1px solid var(--fg); display:inline-flex; align-items:center; justify-content:center; font-size:11px; color:var(--fg); flex:none; }
.fo-av.op { background:var(--fg); color:var(--bg); }
.fo-marke { background:var(--fg); color:var(--bg); font-size:11px; padding:1px 6px; font-weight:400; }
.fo-kat { font-size:12px; border:1px solid var(--dis); padding:0 6px; color:var(--mid); }
.fo-kat.op { background:var(--fg); color:var(--bg); border-color:var(--fg); }
.fo-post { padding:12px 0; border-bottom:1px solid var(--soft); }
.fo-post.eigen { background:var(--soft); padding-left:8px; padding-right:8px; }
.fo-antw { margin-left:10px; border-left:2px solid var(--dis); padding-left:12px; }
.fo-pk { display:flex; gap:8px; align-items:center; }
.fo-pk .w { flex:1; min-width:0; }
.fo-pk .fo-leise { font-size:20px; line-height:1; }
.fo-txt { margin:8px 0 6px; white-space:pre-wrap; overflow-wrap:anywhere; }
.fo-post.start .fo-txt { font-size:17px; }
.fo-akt { display:flex; gap:14px; font-size:13px; color:var(--mid); }
.fo-akt .fo-leise { padding:2px 0; }
.fo-akt .an { color:var(--fg); font-weight:700; }
.fo-zit { border-left:3px solid var(--dis); padding:2px 8px; margin:8px 0 0; color:var(--mid); font-size:14px; overflow-wrap:anywhere; }
.fo-menue { display:flex; flex-direction:column; border:1px solid var(--dis); margin-top:6px; font-size:14px; }
.fo-menue button { width:auto; text-align:left; padding:9px 10px; background:var(--bg); color:var(--fg); border:0; border-bottom:1px solid var(--soft); }
.fo-menue button:last-child { border-bottom:0; }
.fo-neu-strich { display:flex; align-items:center; gap:8px; font-size:12px; color:var(--ungel); margin:10px 0 0; }
.fo-neu-strich i { flex:1; height:1px; background:currentColor; }
:root[data-design="dunkel"] .fo-neu-strich { color:var(--ungel-hell); }
.fo-sprung { background:var(--bg); color:var(--fg); border:1px solid var(--fg); padding:8px 10px; font-size:13px; margin:8px 0; }
.fo-antwortleiste { position:sticky; bottom:0; z-index:2; background:var(--bg); border-top:2px solid var(--fg); margin-top:12px; padding:10px 0 4px; }
.fo-fuss { display:flex; align-items:center; gap:10px; margin-top:8px; }
.fo-fuss > span { flex:1; font-size:13px; color:var(--mid); }
.fo-fuss button { width:auto; padding:9px 16px; }
.fo-sk { height:12px; background:var(--soft); margin:8px 0; }
.fo-leer { text-align:center; padding:36px 12px; }
.fo-leer svg.fo-i { width:36px; height:36px; color:var(--mid); }
.fo-leer p { margin:6px 0; }
.fo-h2 { overflow-wrap:anywhere; }
.fo-oben { margin-top:6px; }
.fo-zl { margin:0 0 8px; }
.fo-p0 { margin:0; }
.fo-rechts { text-align:right; }
.fo-melde { margin-top:8px; font-size:14px; }
.fo-sel { width:100%; margin:6px 0; }
.fo-edit textarea { margin:6px 0 0; }
/* Nachrichten.
   Nur Variablen verwenden (--fg --bg --mid --soft --dis --ungel), damit der dunkle Entwurf (data-design="dunkel") ohne Zusatzregeln stimmt.
   Das Symbol-Styling (svg.fo-i) und die Klassen .fo-leise, .fo-chip, .fo-menue stammen aus dem Forum (style.css ab Zeile 593) und werden mitbenutzt. */
.po-tabs { display:flex; border:1px solid var(--fg); margin-bottom:12px; }
.po-tabs button { flex:1; width:auto; padding:10px 6px; background:var(--bg); color:var(--fg); border:0; border-right:1px solid var(--fg); }
.po-tabs button:last-child { border-right:0; }
.po-tabs button.an { background:var(--fg); color:var(--bg); }
.po-kopf { display:flex; align-items:center; gap:8px; }
.po-kopf .po-such { flex:1; margin:0; }
.po-kopf button { width:auto; min-width:40px; min-height:40px; padding:8px 10px; }
.po-such { position:relative; }
.po-such svg { position:absolute; left:10px; top:50%; margin-top:-8px; color:var(--mid); }
.po-such input { padding-left:34px; margin:0; }
.po-leiste { display:flex; justify-content:space-between; align-items:center; font-size:13px; color:var(--mid); margin:10px 0 2px; }
.po-leiste button { width:auto; padding:0; background:none; color:var(--mid); border:0; text-decoration:underline; font-size:13px; }
.po-zeile { display:flex; gap:10px; align-items:flex-start; padding:11px 0 11px 9px; border-bottom:1px solid var(--soft); border-left:3px solid transparent; cursor:pointer; min-height:40px; }
.po-zeile.neu { border-left-color:var(--fg); }
.po-zeile.arch { opacity:.7; }
.po-av { width:34px; height:34px; border-radius:50%; border:1px solid var(--fg); display:inline-flex; align-items:center; justify-content:center; font-size:14px; color:var(--fg); flex:none; }
.po-av.team { background:var(--fg); color:var(--bg); }
.po-zeile .w { flex:1; min-width:0; }
.po-z1 { display:flex; gap:8px; align-items:baseline; }
.po-name { flex:1; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.po-zeile.neu .po-name { font-weight:700; }
.po-zeit { font-size:12px; color:var(--mid); flex:none; }
.po-vor { color:var(--mid); font-size:14px; margin-top:2px; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; overflow-wrap:anywhere; }
.po-zeile.neu .po-vor { color:var(--fg); }
.po-marke { background:var(--fg); color:var(--bg); font-size:11px; padding:1px 6px; }
.po-sk { height:52px; margin:8px 0; background:var(--soft); }
.po-kopf2 { display:flex; align-items:center; gap:10px; padding-bottom:10px; border-bottom:1px solid var(--fg); }
.po-kopf2 .w { flex:1; min-width:0; }
.po-kopf2 .po-name { font-weight:700; display:block; }
.po-kopf2 .po-sub { font-size:12px; color:var(--mid); }
.po-kopf2 button { width:auto; min-width:40px; min-height:40px; }
.po-verlauf { padding:10px 0 6px; display:flex; flex-direction:column; gap:3px; }
.po-tag { align-self:center; font-size:12px; color:var(--mid); margin:12px 0 6px; padding:0 10px; background:var(--bg); }
.po-blase { max-width:82%; padding:8px 11px; border:1px solid var(--dis); background:var(--bg); color:var(--fg); align-self:flex-start; overflow-wrap:anywhere; }
.po-blase.mein { align-self:flex-end; background:var(--fg); color:var(--bg); border-color:var(--fg); }
.po-blase.fehl { border-style:dashed; background:var(--bg); color:var(--fg); border-color:var(--ungel); }
.po-txt { white-space:pre-wrap; }
.po-meta { display:flex; gap:6px; align-items:center; justify-content:flex-end; font-size:11px; margin-top:3px; opacity:.75; }
.po-blase:not(.mein) .po-meta { justify-content:flex-start; }
.po-meta .po-gel { color:var(--bg); opacity:1; }
.po-meta button { width:auto; padding:0 4px; background:none; color:inherit; border:0; font-size:16px; line-height:1; min-height:24px; }
.po-zit { border-left:3px solid var(--dis); padding:2px 8px; margin:0 0 4px; font-size:13px; opacity:.85; overflow-wrap:anywhere; }
.po-blase.mein .po-zit { border-left-color:var(--bg); }
.po-neu-strich { display:flex; align-items:center; gap:8px; font-size:12px; color:var(--ungel); margin:10px 0 4px; }
.po-neu-strich::before, .po-neu-strich::after { content:""; flex:1; border-top:1px solid var(--ungel); }
.po-mehr { align-self:center; width:auto; padding:6px 12px; background:none; color:var(--mid); border:1px solid var(--dis); font-size:13px; }
.po-menue { display:flex; flex-direction:column; border:1px solid var(--dis); margin:6px 0; font-size:14px; background:var(--bg); }
.po-menue button { width:auto; text-align:left; padding:10px; background:var(--bg); color:var(--fg); border:0; border-bottom:1px solid var(--soft); min-height:40px; }
.po-menue button:last-child { border-bottom:0; }
.po-antwort { position:sticky; bottom:0; background:var(--bg); border-top:1px solid var(--fg); padding:8px 0 4px; margin-top:8px; }
.po-antwort textarea { width:100%; box-sizing:border-box; padding:10px; border:1px solid var(--fg); border-radius:0; font:inherit; background:var(--bg); color:var(--fg); resize:none; min-height:44px; max-height:140px; }
.po-fuss { display:flex; justify-content:space-between; align-items:center; gap:10px; margin-top:6px; font-size:12px; color:var(--mid); }
.po-fuss button { width:auto; min-width:96px; padding:8px 14px; }
.po-hinweis { border:1px solid var(--dis); padding:10px; margin-top:8px; font-size:14px; color:var(--mid); }
.po-hinweis button { margin-top:8px; }
.po-chips { display:flex; flex-wrap:wrap; gap:6px; margin:8px 0; }
.po-leer { text-align:center; padding:28px 12px; color:var(--mid); }
.po-leer svg { width:34px; height:34px; margin-bottom:6px; }
.po-leer b { display:block; color:var(--fg); margin-bottom:4px; }
.po-leer button { width:auto; margin-top:12px; padding:10px 16px; }
.po-sperre { padding:10px 0; border-bottom:1px solid var(--soft); display:flex; align-items:center; gap:10px; }
.po-sperre .w { flex:1; min-width:0; overflow-wrap:anywhere; }
.po-sperre button { width:auto; padding:8px 12px; }
.po-kopier { position:fixed; left:-9999px; top:0; opacity:0; }
.po-meta .po-erneut { font-size:12px; text-decoration:underline; min-height:24px; }
.po-fuss .po-sicon svg { width:16px; height:16px; vertical-align:-3px; }
.po-kopf input { flex:1; margin:0; }
.po-chips[hidden] { display:none; }
/* Transportmaske (seit 1.180.1): Platz auf der Zielinsel rechts im Label, Hinweis unter dem Feld */
.geb label.klein.pz, label.klein.pz { display:flex; flex-wrap:wrap; justify-content:space-between; align-items:center; column-gap:8px; }
.platzam { font-size:13px; font-weight:400; color:var(--mid); }
.platzhinweis { display:flex; align-items:center; justify-content:space-between; gap:8px; margin:6px 0 0; padding:8px 10px; border:1px solid var(--fg); border-left-width:4px; font-size:13px; line-height:1.4; }
.platzhinweis[hidden] { display:none; }
.platzhinweis button { width:auto; min-height:40px; padding:4px 10px; font-size:13px; white-space:nowrap; flex:none; }
.platzhinweis.kein { border-color:var(--ungel); color:var(--ungel); }
:root[data-design="dunkel"] .platzhinweis.kein { border-color:var(--ungel-hell); color:var(--ungel-hell); }
